entities listlengths 1 8.61k | max_stars_repo_path stringlengths 7 172 | max_stars_repo_name stringlengths 5 89 | max_stars_count int64 0 82k | content stringlengths 14 1.05M | id stringlengths 2 6 | new_content stringlengths 15 1.05M | modified bool 1 class | references stringlengths 29 1.05M |
|---|---|---|---|---|---|---|---|---|
[
{
"context": "# Copyright 2011 Mark Cavage <mcavage@gmail.com> All rights reserved.\n\n#/--- G",
"end": 28,
"score": 0.9998739957809448,
"start": 17,
"tag": "NAME",
"value": "Mark Cavage"
},
{
"context": "# Copyright 2011 Mark Cavage <mcavage@gmail.com> All rights reserved.\n\n#/--- ... | deps/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/reader.coffee | lxe/io.coffee | 0 | # Copyright 2011 Mark Cavage <mcavage@gmail.com> All rights reserved.
#/--- Globals
#/--- API
Reader = (data) ->
throw new TypeError("data must be a node Buffer") if not data or not Buffer.isBuffer(data)
@_buf = data
@_size = data.length
# These hold the "current" state
@_len = 0
@_offset = 0
self = this
@__defineGetter__ "length", ->
self._len
@__defineGetter__ "offset", ->
self._offset
@__defineGetter__ "remain", ->
self._size - self._offset
@__defineGetter__ "buffer", ->
self._buf.slice self._offset
return
assert = require("assert")
ASN1 = require("./types")
errors = require("./errors")
newInvalidAsn1Error = errors.newInvalidAsn1Error
###*
Reads a single byte and advances offset; you can pass in `true` to make this
a "peek" operation (i.e., get the byte, but don't advance the offset).
@param {Boolean} peek true means don't move offset.
@return {Number} the next byte, null if not enough data.
###
Reader::readByte = (peek) ->
return null if @_size - @_offset < 1
b = @_buf[@_offset] & 0xff
@_offset += 1 unless peek
b
Reader::peek = ->
@readByte true
###*
Reads a (potentially) variable length off the BER buffer. This call is
not really meant to be called directly, as callers have to manipulate
the internal buffer afterwards.
As a result of this call, you can call `Reader.length`, until the
next thing called that does a readLength.
@return {Number} the amount of offset to advance the buffer.
@throws {InvalidAsn1Error} on bad ASN.1
###
Reader::readLength = (offset) ->
offset = @_offset if offset is `undefined`
return null if offset >= @_size
lenB = @_buf[offset++] & 0xff
return null if lenB is null
if (lenB & 0x80) is 0x80
lenB &= 0x7f
throw newInvalidAsn1Error("Indefinite length not supported") if lenB is 0
throw newInvalidAsn1Error("encoding too long") if lenB > 4
return null if @_size - offset < lenB
@_len = 0
i = 0
while i < lenB
@_len = (@_len << 8) + (@_buf[offset++] & 0xff)
i++
else
# Wasn't a variable length
@_len = lenB
offset
###*
Parses the next sequence in this BER buffer.
To get the length of the sequence, call `Reader.length`.
@return {Number} the sequence's tag.
###
Reader::readSequence = (tag) ->
seq = @peek()
return null if seq is null
throw newInvalidAsn1Error("Expected 0x" + tag.toString(16) + ": got 0x" + seq.toString(16)) if tag isnt `undefined` and tag isnt seq
o = @readLength(@_offset + 1) # stored in `length`
return null if o is null
@_offset = o
seq
Reader::readInt = ->
@_readTag ASN1.Integer
Reader::readBoolean = ->
(if @_readTag(ASN1.Boolean) is 0 then false else true)
Reader::readEnumeration = ->
@_readTag ASN1.Enumeration
Reader::readString = (tag, retbuf) ->
tag = ASN1.OctetString unless tag
b = @peek()
return null if b is null
throw newInvalidAsn1Error("Expected 0x" + tag.toString(16) + ": got 0x" + b.toString(16)) if b isnt tag
o = @readLength(@_offset + 1) # stored in `length`
return null if o is null
return null if @length > @_size - o
@_offset = o
return "" if @length is 0
str = @_buf.slice(@_offset, @_offset + @length)
@_offset += @length
(if retbuf then str else str.toString("utf8"))
Reader::readOID = (tag) ->
tag = ASN1.OID unless tag
b = @peek()
return null if b is null
throw newInvalidAsn1Error("Expected 0x" + tag.toString(16) + ": got 0x" + b.toString(16)) if b isnt tag
o = @readLength(@_offset + 1) # stored in `length`
return null if o is null
return null if @length > @_size - o
@_offset = o
values = []
value = 0
i = 0
while i < @length
byte = @_buf[@_offset++] & 0xff
value <<= 7
value += byte & 0x7f
if (byte & 0x80) is 0
values.push value
value = 0
i++
value = values.shift()
values.unshift value % 40
values.unshift (value / 40) >> 0
values.join "."
Reader::_readTag = (tag) ->
assert.ok tag isnt `undefined`
b = @peek()
return null if b is null
throw newInvalidAsn1Error("Expected 0x" + tag.toString(16) + ": got 0x" + b.toString(16)) if b isnt tag
o = @readLength(@_offset + 1) # stored in `length`
return null if o is null
throw newInvalidAsn1Error("Integer too long: " + @length) if @length > 4
return null if @length > @_size - o
@_offset = o
fb = @_buf[@_offset++]
value = 0
value = fb & 0x7f
i = 1
while i < @length
value <<= 8
value |= (@_buf[@_offset++] & 0xff)
i++
value = -value if (fb & 0x80) is 0x80
value
#/--- Exported API
module.exports = Reader
| 136795 | # Copyright 2011 <NAME> <<EMAIL>> All rights reserved.
#/--- Globals
#/--- API
Reader = (data) ->
throw new TypeError("data must be a node Buffer") if not data or not Buffer.isBuffer(data)
@_buf = data
@_size = data.length
# These hold the "current" state
@_len = 0
@_offset = 0
self = this
@__defineGetter__ "length", ->
self._len
@__defineGetter__ "offset", ->
self._offset
@__defineGetter__ "remain", ->
self._size - self._offset
@__defineGetter__ "buffer", ->
self._buf.slice self._offset
return
assert = require("assert")
ASN1 = require("./types")
errors = require("./errors")
newInvalidAsn1Error = errors.newInvalidAsn1Error
###*
Reads a single byte and advances offset; you can pass in `true` to make this
a "peek" operation (i.e., get the byte, but don't advance the offset).
@param {Boolean} peek true means don't move offset.
@return {Number} the next byte, null if not enough data.
###
Reader::readByte = (peek) ->
return null if @_size - @_offset < 1
b = @_buf[@_offset] & 0xff
@_offset += 1 unless peek
b
Reader::peek = ->
@readByte true
###*
Reads a (potentially) variable length off the BER buffer. This call is
not really meant to be called directly, as callers have to manipulate
the internal buffer afterwards.
As a result of this call, you can call `Reader.length`, until the
next thing called that does a readLength.
@return {Number} the amount of offset to advance the buffer.
@throws {InvalidAsn1Error} on bad ASN.1
###
Reader::readLength = (offset) ->
offset = @_offset if offset is `undefined`
return null if offset >= @_size
lenB = @_buf[offset++] & 0xff
return null if lenB is null
if (lenB & 0x80) is 0x80
lenB &= 0x7f
throw newInvalidAsn1Error("Indefinite length not supported") if lenB is 0
throw newInvalidAsn1Error("encoding too long") if lenB > 4
return null if @_size - offset < lenB
@_len = 0
i = 0
while i < lenB
@_len = (@_len << 8) + (@_buf[offset++] & 0xff)
i++
else
# Wasn't a variable length
@_len = lenB
offset
###*
Parses the next sequence in this BER buffer.
To get the length of the sequence, call `Reader.length`.
@return {Number} the sequence's tag.
###
Reader::readSequence = (tag) ->
seq = @peek()
return null if seq is null
throw newInvalidAsn1Error("Expected 0x" + tag.toString(16) + ": got 0x" + seq.toString(16)) if tag isnt `undefined` and tag isnt seq
o = @readLength(@_offset + 1) # stored in `length`
return null if o is null
@_offset = o
seq
Reader::readInt = ->
@_readTag ASN1.Integer
Reader::readBoolean = ->
(if @_readTag(ASN1.Boolean) is 0 then false else true)
Reader::readEnumeration = ->
@_readTag ASN1.Enumeration
Reader::readString = (tag, retbuf) ->
tag = ASN1.OctetString unless tag
b = @peek()
return null if b is null
throw newInvalidAsn1Error("Expected 0x" + tag.toString(16) + ": got 0x" + b.toString(16)) if b isnt tag
o = @readLength(@_offset + 1) # stored in `length`
return null if o is null
return null if @length > @_size - o
@_offset = o
return "" if @length is 0
str = @_buf.slice(@_offset, @_offset + @length)
@_offset += @length
(if retbuf then str else str.toString("utf8"))
Reader::readOID = (tag) ->
tag = ASN1.OID unless tag
b = @peek()
return null if b is null
throw newInvalidAsn1Error("Expected 0x" + tag.toString(16) + ": got 0x" + b.toString(16)) if b isnt tag
o = @readLength(@_offset + 1) # stored in `length`
return null if o is null
return null if @length > @_size - o
@_offset = o
values = []
value = 0
i = 0
while i < @length
byte = @_buf[@_offset++] & 0xff
value <<= 7
value += byte & 0x7f
if (byte & 0x80) is 0
values.push value
value = 0
i++
value = values.shift()
values.unshift value % 40
values.unshift (value / 40) >> 0
values.join "."
Reader::_readTag = (tag) ->
assert.ok tag isnt `undefined`
b = @peek()
return null if b is null
throw newInvalidAsn1Error("Expected 0x" + tag.toString(16) + ": got 0x" + b.toString(16)) if b isnt tag
o = @readLength(@_offset + 1) # stored in `length`
return null if o is null
throw newInvalidAsn1Error("Integer too long: " + @length) if @length > 4
return null if @length > @_size - o
@_offset = o
fb = @_buf[@_offset++]
value = 0
value = fb & 0x7f
i = 1
while i < @length
value <<= 8
value |= (@_buf[@_offset++] & 0xff)
i++
value = -value if (fb & 0x80) is 0x80
value
#/--- Exported API
module.exports = Reader
| true | # Copyright 2011 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> All rights reserved.
#/--- Globals
#/--- API
Reader = (data) ->
throw new TypeError("data must be a node Buffer") if not data or not Buffer.isBuffer(data)
@_buf = data
@_size = data.length
# These hold the "current" state
@_len = 0
@_offset = 0
self = this
@__defineGetter__ "length", ->
self._len
@__defineGetter__ "offset", ->
self._offset
@__defineGetter__ "remain", ->
self._size - self._offset
@__defineGetter__ "buffer", ->
self._buf.slice self._offset
return
assert = require("assert")
ASN1 = require("./types")
errors = require("./errors")
newInvalidAsn1Error = errors.newInvalidAsn1Error
###*
Reads a single byte and advances offset; you can pass in `true` to make this
a "peek" operation (i.e., get the byte, but don't advance the offset).
@param {Boolean} peek true means don't move offset.
@return {Number} the next byte, null if not enough data.
###
Reader::readByte = (peek) ->
return null if @_size - @_offset < 1
b = @_buf[@_offset] & 0xff
@_offset += 1 unless peek
b
Reader::peek = ->
@readByte true
###*
Reads a (potentially) variable length off the BER buffer. This call is
not really meant to be called directly, as callers have to manipulate
the internal buffer afterwards.
As a result of this call, you can call `Reader.length`, until the
next thing called that does a readLength.
@return {Number} the amount of offset to advance the buffer.
@throws {InvalidAsn1Error} on bad ASN.1
###
Reader::readLength = (offset) ->
offset = @_offset if offset is `undefined`
return null if offset >= @_size
lenB = @_buf[offset++] & 0xff
return null if lenB is null
if (lenB & 0x80) is 0x80
lenB &= 0x7f
throw newInvalidAsn1Error("Indefinite length not supported") if lenB is 0
throw newInvalidAsn1Error("encoding too long") if lenB > 4
return null if @_size - offset < lenB
@_len = 0
i = 0
while i < lenB
@_len = (@_len << 8) + (@_buf[offset++] & 0xff)
i++
else
# Wasn't a variable length
@_len = lenB
offset
###*
Parses the next sequence in this BER buffer.
To get the length of the sequence, call `Reader.length`.
@return {Number} the sequence's tag.
###
Reader::readSequence = (tag) ->
seq = @peek()
return null if seq is null
throw newInvalidAsn1Error("Expected 0x" + tag.toString(16) + ": got 0x" + seq.toString(16)) if tag isnt `undefined` and tag isnt seq
o = @readLength(@_offset + 1) # stored in `length`
return null if o is null
@_offset = o
seq
Reader::readInt = ->
@_readTag ASN1.Integer
Reader::readBoolean = ->
(if @_readTag(ASN1.Boolean) is 0 then false else true)
Reader::readEnumeration = ->
@_readTag ASN1.Enumeration
Reader::readString = (tag, retbuf) ->
tag = ASN1.OctetString unless tag
b = @peek()
return null if b is null
throw newInvalidAsn1Error("Expected 0x" + tag.toString(16) + ": got 0x" + b.toString(16)) if b isnt tag
o = @readLength(@_offset + 1) # stored in `length`
return null if o is null
return null if @length > @_size - o
@_offset = o
return "" if @length is 0
str = @_buf.slice(@_offset, @_offset + @length)
@_offset += @length
(if retbuf then str else str.toString("utf8"))
Reader::readOID = (tag) ->
tag = ASN1.OID unless tag
b = @peek()
return null if b is null
throw newInvalidAsn1Error("Expected 0x" + tag.toString(16) + ": got 0x" + b.toString(16)) if b isnt tag
o = @readLength(@_offset + 1) # stored in `length`
return null if o is null
return null if @length > @_size - o
@_offset = o
values = []
value = 0
i = 0
while i < @length
byte = @_buf[@_offset++] & 0xff
value <<= 7
value += byte & 0x7f
if (byte & 0x80) is 0
values.push value
value = 0
i++
value = values.shift()
values.unshift value % 40
values.unshift (value / 40) >> 0
values.join "."
Reader::_readTag = (tag) ->
assert.ok tag isnt `undefined`
b = @peek()
return null if b is null
throw newInvalidAsn1Error("Expected 0x" + tag.toString(16) + ": got 0x" + b.toString(16)) if b isnt tag
o = @readLength(@_offset + 1) # stored in `length`
return null if o is null
throw newInvalidAsn1Error("Integer too long: " + @length) if @length > 4
return null if @length > @_size - o
@_offset = o
fb = @_buf[@_offset++]
value = 0
value = fb & 0x7f
i = 1
while i < @length
value <<= 8
value |= (@_buf[@_offset++] & 0xff)
i++
value = -value if (fb & 0x80) is 0x80
value
#/--- Exported API
module.exports = Reader
|
[
{
"context": "b')\r\n\r\n extractCounts: (result) ->\r\n keyRe = /(\\w+)Total$/\r\n\r\n _.chain(result?.d?.results or [])\r\n .",
"end": 3860,
"score": 0.9120305180549622,
"start": 3850,
"tag": "KEY",
"value": "w+)Total$/"
}
] | src/search.coffee | Cryptix720/Bing-AI | 0 | _ = require 'underscore'
async = require 'async'
debug = require('debug') 'bing-search'
request = require 'request'
url = require 'url'
markets = require './markets'
BING_SEARCH_ENDPOINT = 'api.cognitive.microsoft.com/bing/v7.0/entities'
API_KEY = 'ENTER_YOUR_APIKEY_HERE'
class Search
@SOURCES = ['web', 'image', 'video', 'news', 'spell', 'audio', 'relatedsearch']
@PAGE_SIZE = 150
constructor: (@accountKey, @parallel = 10, @useGzip = true) ->
requestOptions: (options) ->
reqOptions =
Query: @quoted options.query
$top: options.top or 10
$skip: options.skip or 0
# Filter out unsupported sources
sources = (s for s in options.sources or [] when s in Search.SOURCES)
reqOptions.Sources = @quoted sources if sources.length
reqOptions.Market = @quoted(options.market) if options.market in markets
reqOptions
# Given a list of strings, generates a string wrapped in single quotes with
# the list entries separated by a `+`.
quoted: (values) ->
values = [values] unless _.isArray values
values = (v.replace "'", "''" for v in values)
"'#{values.join '+'}'"
# Generates a sequence of numbers no larger than the page size which the sum
# of the list equal to numResults.
generateTops: (numResults, pageSize = Search.PAGE_SIZE) ->
tops = [numResults % pageSize] if numResults % pageSize isnt 0
tops or= []
(pageSize for i in [0...Math.floor(numResults / pageSize)]).concat tops
# Generate a sequence of offsets as a multiple of page size starting at
# skipStart and ending before skipStart + numResults.
generateSkips: (numResults, skipStart) ->
skips = [skipStart]
for count in @generateTops(numResults)[...-1]
skips.push skips[skips.length - 1] + count
skips
parallelSearch: (vertical, options, callback) ->
opts = _.extend {}, {top: Search.PAGE_SIZE, skip: 0}, options
# Generate search options for each of the search requests.
pairs = _.zip @generateTops(opts.top), @generateSkips(opts.top, opts.skip)
requestOptions = _.map pairs, ([top, skip]) ->
_.defaults {top, skip}, options
search = (options, callback) =>
@search vertical, options, callback
async.mapLimit requestOptions, @parallel, search, callback
search: (vertical, options, callback) ->
requestOptions =
uri: "#{BING_SEARCH_ENDPOINT}/#{vertical}"
qs: _.extend @requestOptions(options),
$format: 'json'
auth:
user: @accountKey
pass: @accountKey
json: true
gzip: @useGzip
req = request requestOptions, (err, res, body) ->
unless err or res.statusCode is 200
err or= new Error "Bad Bing AI API response #{res.statusCode}"
return callback err if err
callback null, body
debug url.format req.uri
counts: (query, callback) ->
getCounts = (options, callback) =>
options = _.extend {}, options, {query, sources: Search.SOURCES}
@search 'Composite', options, (err, result) =>
return callback err if err
callback null, @extractCounts result
# Two requests are needed. The first request is to get an accurate
# web results count and the second request is to get an accurate count
# for the rest of the verticals.
#
# The 4,000 value comes from empirical data. It seems that after 600
# results, the accuracy gets quite consistent and accurate. I picked 4,000
# just to be in the clear. It also doesn't matter if there are fewer than
# 4,000 results.
async.map [{skip: 4000}, {}], getCounts, (err, results) ->
return callback err if err
callback null, _.extend results[1], _.pick(results[0], 'web')
extractCounts: (result) ->
keyRe = /(\w+)Total$/
_.chain(result?.d?.results or [])
.first()
.pairs()
.filter ([key, value]) ->
# Eg. WebTotal, ImageTotal, ...
keyRe.test key
.map ([key, value]) ->
# Eg. WebTotal => web
key = keyRe.exec(key)[1].toLowerCase()
value = Number value
switch key
when 'spellingsuggestions' then ['spelling', value]
else [key, value]
.object()
.value()
verticalSearch: (vertical, verticalResultParser, query, options, callback) ->
[callback, options] = [options, {}] if _.compact(arguments).length is 4
@parallelSearch vertical, _.extend({}, options, {query}), (err, result) ->
return callback err if err
callback null, verticalResultParser result
mapResults: (results, fn) ->
_.chain(results)
.pluck('d')
.pluck('results')
.flatten()
.map fn
.value()
web: (query, options, callback) ->
@verticalSearch 'Web', _.bind(@extractWebResults, this), query, options,
callback
extractWebResults: (results) ->
@mapResults results, ({ID, Title, Description, DisplayUrl, Url}) ->
id: ID
title: Title
description: Description
displayUrl: DisplayUrl
url: Url
images: (query, options, callback) ->
@verticalSearch 'Image', _.bind(@extractImageResults, this), query, options,
callback
extractImageResults: (results) ->
@mapResults results, (entry) =>
id: entry.ID
title: entry.Title
url: entry.MediaUrl
sourceUrl: entry.SourceUrl
displayUrl: entry.DisplayUrl
width: Number entry.Width
height: Number entry.Height
size: Number entry.FileSize
type: entry.ContentType
thumbnail: @extractThumbnail entry
extractThumbnail: ({Thumbnail}) ->
url: Thumbnail.MediaUrl
type: Thumbnail.ContentType
width: Number Thumbnail.Width
height: Number Thumbnail.Height
size: Number Thumbnail.FileSize
videos: (query, options, callback) ->
@verticalSearch 'Video', _.bind(@extractVideoResults, this), query, options,
callback
extractVideoResults: (results) ->
@mapResults results,
(entry) =>
id: entry.ID
title: entry.Title
url: entry.MediaUrl
displayUrl: entry.DisplayUrl
runtime: Number entry.RunTime
thumbnail: @extractThumbnail entry
news: (query, options, callback) ->
@verticalSearch 'News', _.bind(@extractNewsResults, this), query, options,
callback
extractNewsResults: (results) ->
@mapResults results, (entry) ->
id: entry.ID
title: entry.Title
source: entry.Source
url: entry.Url
description: entry.Description
date: new Date entry.Date
spelling: (query, options, callback) ->
@verticalSearch 'SpellingSuggestions', _.bind(@extractSpellResults, this),
query, options, callback
extractSpellResults: (results) ->
@mapResults results, ({Value}) ->
Value
related: (query, options, callback) ->
@verticalSearch 'RelatedSearch', _.bind(@extractRelatedResults, this),
query, options, callback
extractRelatedResults: (results) ->
@mapResults results, ({Title, BingUrl}) ->
query: Title
url: BingUrl
composite: (query, options, callback) ->
[callback, options] = [options, {}] if arguments.length is 2
options = _.defaults {}, options, {query, sources: Search.SOURCES}
@parallelSearch 'Composite', options, (err, results) =>
return callback err if err
convertToSingleSource = (results, source) ->
{d: {results: r.d.results[0][source]}} for r in results
callback null,
web: @extractWebResults convertToSingleSource results, 'Web'
images: @extractImageResults convertToSingleSource results, 'Image'
videos: @extractVideoResults convertToSingleSource results, 'Video'
news: @extractNewsResults convertToSingleSource results, 'News'
spelling: @extractSpellResults convertToSingleSource results,
'SpellingSuggestions'
related: @extractRelatedResults convertToSingleSource results,
'RelatedSearch'
module.exports = Search
| 62729 | _ = require 'underscore'
async = require 'async'
debug = require('debug') 'bing-search'
request = require 'request'
url = require 'url'
markets = require './markets'
BING_SEARCH_ENDPOINT = 'api.cognitive.microsoft.com/bing/v7.0/entities'
API_KEY = 'ENTER_YOUR_APIKEY_HERE'
class Search
@SOURCES = ['web', 'image', 'video', 'news', 'spell', 'audio', 'relatedsearch']
@PAGE_SIZE = 150
constructor: (@accountKey, @parallel = 10, @useGzip = true) ->
requestOptions: (options) ->
reqOptions =
Query: @quoted options.query
$top: options.top or 10
$skip: options.skip or 0
# Filter out unsupported sources
sources = (s for s in options.sources or [] when s in Search.SOURCES)
reqOptions.Sources = @quoted sources if sources.length
reqOptions.Market = @quoted(options.market) if options.market in markets
reqOptions
# Given a list of strings, generates a string wrapped in single quotes with
# the list entries separated by a `+`.
quoted: (values) ->
values = [values] unless _.isArray values
values = (v.replace "'", "''" for v in values)
"'#{values.join '+'}'"
# Generates a sequence of numbers no larger than the page size which the sum
# of the list equal to numResults.
generateTops: (numResults, pageSize = Search.PAGE_SIZE) ->
tops = [numResults % pageSize] if numResults % pageSize isnt 0
tops or= []
(pageSize for i in [0...Math.floor(numResults / pageSize)]).concat tops
# Generate a sequence of offsets as a multiple of page size starting at
# skipStart and ending before skipStart + numResults.
generateSkips: (numResults, skipStart) ->
skips = [skipStart]
for count in @generateTops(numResults)[...-1]
skips.push skips[skips.length - 1] + count
skips
parallelSearch: (vertical, options, callback) ->
opts = _.extend {}, {top: Search.PAGE_SIZE, skip: 0}, options
# Generate search options for each of the search requests.
pairs = _.zip @generateTops(opts.top), @generateSkips(opts.top, opts.skip)
requestOptions = _.map pairs, ([top, skip]) ->
_.defaults {top, skip}, options
search = (options, callback) =>
@search vertical, options, callback
async.mapLimit requestOptions, @parallel, search, callback
search: (vertical, options, callback) ->
requestOptions =
uri: "#{BING_SEARCH_ENDPOINT}/#{vertical}"
qs: _.extend @requestOptions(options),
$format: 'json'
auth:
user: @accountKey
pass: @accountKey
json: true
gzip: @useGzip
req = request requestOptions, (err, res, body) ->
unless err or res.statusCode is 200
err or= new Error "Bad Bing AI API response #{res.statusCode}"
return callback err if err
callback null, body
debug url.format req.uri
counts: (query, callback) ->
getCounts = (options, callback) =>
options = _.extend {}, options, {query, sources: Search.SOURCES}
@search 'Composite', options, (err, result) =>
return callback err if err
callback null, @extractCounts result
# Two requests are needed. The first request is to get an accurate
# web results count and the second request is to get an accurate count
# for the rest of the verticals.
#
# The 4,000 value comes from empirical data. It seems that after 600
# results, the accuracy gets quite consistent and accurate. I picked 4,000
# just to be in the clear. It also doesn't matter if there are fewer than
# 4,000 results.
async.map [{skip: 4000}, {}], getCounts, (err, results) ->
return callback err if err
callback null, _.extend results[1], _.pick(results[0], 'web')
extractCounts: (result) ->
keyRe = /(\<KEY>
_.chain(result?.d?.results or [])
.first()
.pairs()
.filter ([key, value]) ->
# Eg. WebTotal, ImageTotal, ...
keyRe.test key
.map ([key, value]) ->
# Eg. WebTotal => web
key = keyRe.exec(key)[1].toLowerCase()
value = Number value
switch key
when 'spellingsuggestions' then ['spelling', value]
else [key, value]
.object()
.value()
verticalSearch: (vertical, verticalResultParser, query, options, callback) ->
[callback, options] = [options, {}] if _.compact(arguments).length is 4
@parallelSearch vertical, _.extend({}, options, {query}), (err, result) ->
return callback err if err
callback null, verticalResultParser result
mapResults: (results, fn) ->
_.chain(results)
.pluck('d')
.pluck('results')
.flatten()
.map fn
.value()
web: (query, options, callback) ->
@verticalSearch 'Web', _.bind(@extractWebResults, this), query, options,
callback
extractWebResults: (results) ->
@mapResults results, ({ID, Title, Description, DisplayUrl, Url}) ->
id: ID
title: Title
description: Description
displayUrl: DisplayUrl
url: Url
images: (query, options, callback) ->
@verticalSearch 'Image', _.bind(@extractImageResults, this), query, options,
callback
extractImageResults: (results) ->
@mapResults results, (entry) =>
id: entry.ID
title: entry.Title
url: entry.MediaUrl
sourceUrl: entry.SourceUrl
displayUrl: entry.DisplayUrl
width: Number entry.Width
height: Number entry.Height
size: Number entry.FileSize
type: entry.ContentType
thumbnail: @extractThumbnail entry
extractThumbnail: ({Thumbnail}) ->
url: Thumbnail.MediaUrl
type: Thumbnail.ContentType
width: Number Thumbnail.Width
height: Number Thumbnail.Height
size: Number Thumbnail.FileSize
videos: (query, options, callback) ->
@verticalSearch 'Video', _.bind(@extractVideoResults, this), query, options,
callback
extractVideoResults: (results) ->
@mapResults results,
(entry) =>
id: entry.ID
title: entry.Title
url: entry.MediaUrl
displayUrl: entry.DisplayUrl
runtime: Number entry.RunTime
thumbnail: @extractThumbnail entry
news: (query, options, callback) ->
@verticalSearch 'News', _.bind(@extractNewsResults, this), query, options,
callback
extractNewsResults: (results) ->
@mapResults results, (entry) ->
id: entry.ID
title: entry.Title
source: entry.Source
url: entry.Url
description: entry.Description
date: new Date entry.Date
spelling: (query, options, callback) ->
@verticalSearch 'SpellingSuggestions', _.bind(@extractSpellResults, this),
query, options, callback
extractSpellResults: (results) ->
@mapResults results, ({Value}) ->
Value
related: (query, options, callback) ->
@verticalSearch 'RelatedSearch', _.bind(@extractRelatedResults, this),
query, options, callback
extractRelatedResults: (results) ->
@mapResults results, ({Title, BingUrl}) ->
query: Title
url: BingUrl
composite: (query, options, callback) ->
[callback, options] = [options, {}] if arguments.length is 2
options = _.defaults {}, options, {query, sources: Search.SOURCES}
@parallelSearch 'Composite', options, (err, results) =>
return callback err if err
convertToSingleSource = (results, source) ->
{d: {results: r.d.results[0][source]}} for r in results
callback null,
web: @extractWebResults convertToSingleSource results, 'Web'
images: @extractImageResults convertToSingleSource results, 'Image'
videos: @extractVideoResults convertToSingleSource results, 'Video'
news: @extractNewsResults convertToSingleSource results, 'News'
spelling: @extractSpellResults convertToSingleSource results,
'SpellingSuggestions'
related: @extractRelatedResults convertToSingleSource results,
'RelatedSearch'
module.exports = Search
| true | _ = require 'underscore'
async = require 'async'
debug = require('debug') 'bing-search'
request = require 'request'
url = require 'url'
markets = require './markets'
BING_SEARCH_ENDPOINT = 'api.cognitive.microsoft.com/bing/v7.0/entities'
API_KEY = 'ENTER_YOUR_APIKEY_HERE'
class Search
@SOURCES = ['web', 'image', 'video', 'news', 'spell', 'audio', 'relatedsearch']
@PAGE_SIZE = 150
constructor: (@accountKey, @parallel = 10, @useGzip = true) ->
requestOptions: (options) ->
reqOptions =
Query: @quoted options.query
$top: options.top or 10
$skip: options.skip or 0
# Filter out unsupported sources
sources = (s for s in options.sources or [] when s in Search.SOURCES)
reqOptions.Sources = @quoted sources if sources.length
reqOptions.Market = @quoted(options.market) if options.market in markets
reqOptions
# Given a list of strings, generates a string wrapped in single quotes with
# the list entries separated by a `+`.
quoted: (values) ->
values = [values] unless _.isArray values
values = (v.replace "'", "''" for v in values)
"'#{values.join '+'}'"
# Generates a sequence of numbers no larger than the page size which the sum
# of the list equal to numResults.
generateTops: (numResults, pageSize = Search.PAGE_SIZE) ->
tops = [numResults % pageSize] if numResults % pageSize isnt 0
tops or= []
(pageSize for i in [0...Math.floor(numResults / pageSize)]).concat tops
# Generate a sequence of offsets as a multiple of page size starting at
# skipStart and ending before skipStart + numResults.
generateSkips: (numResults, skipStart) ->
skips = [skipStart]
for count in @generateTops(numResults)[...-1]
skips.push skips[skips.length - 1] + count
skips
parallelSearch: (vertical, options, callback) ->
opts = _.extend {}, {top: Search.PAGE_SIZE, skip: 0}, options
# Generate search options for each of the search requests.
pairs = _.zip @generateTops(opts.top), @generateSkips(opts.top, opts.skip)
requestOptions = _.map pairs, ([top, skip]) ->
_.defaults {top, skip}, options
search = (options, callback) =>
@search vertical, options, callback
async.mapLimit requestOptions, @parallel, search, callback
search: (vertical, options, callback) ->
requestOptions =
uri: "#{BING_SEARCH_ENDPOINT}/#{vertical}"
qs: _.extend @requestOptions(options),
$format: 'json'
auth:
user: @accountKey
pass: @accountKey
json: true
gzip: @useGzip
req = request requestOptions, (err, res, body) ->
unless err or res.statusCode is 200
err or= new Error "Bad Bing AI API response #{res.statusCode}"
return callback err if err
callback null, body
debug url.format req.uri
counts: (query, callback) ->
getCounts = (options, callback) =>
options = _.extend {}, options, {query, sources: Search.SOURCES}
@search 'Composite', options, (err, result) =>
return callback err if err
callback null, @extractCounts result
# Two requests are needed. The first request is to get an accurate
# web results count and the second request is to get an accurate count
# for the rest of the verticals.
#
# The 4,000 value comes from empirical data. It seems that after 600
# results, the accuracy gets quite consistent and accurate. I picked 4,000
# just to be in the clear. It also doesn't matter if there are fewer than
# 4,000 results.
async.map [{skip: 4000}, {}], getCounts, (err, results) ->
return callback err if err
callback null, _.extend results[1], _.pick(results[0], 'web')
extractCounts: (result) ->
keyRe = /(\PI:KEY:<KEY>END_PI
_.chain(result?.d?.results or [])
.first()
.pairs()
.filter ([key, value]) ->
# Eg. WebTotal, ImageTotal, ...
keyRe.test key
.map ([key, value]) ->
# Eg. WebTotal => web
key = keyRe.exec(key)[1].toLowerCase()
value = Number value
switch key
when 'spellingsuggestions' then ['spelling', value]
else [key, value]
.object()
.value()
verticalSearch: (vertical, verticalResultParser, query, options, callback) ->
[callback, options] = [options, {}] if _.compact(arguments).length is 4
@parallelSearch vertical, _.extend({}, options, {query}), (err, result) ->
return callback err if err
callback null, verticalResultParser result
mapResults: (results, fn) ->
_.chain(results)
.pluck('d')
.pluck('results')
.flatten()
.map fn
.value()
web: (query, options, callback) ->
@verticalSearch 'Web', _.bind(@extractWebResults, this), query, options,
callback
extractWebResults: (results) ->
@mapResults results, ({ID, Title, Description, DisplayUrl, Url}) ->
id: ID
title: Title
description: Description
displayUrl: DisplayUrl
url: Url
images: (query, options, callback) ->
@verticalSearch 'Image', _.bind(@extractImageResults, this), query, options,
callback
extractImageResults: (results) ->
@mapResults results, (entry) =>
id: entry.ID
title: entry.Title
url: entry.MediaUrl
sourceUrl: entry.SourceUrl
displayUrl: entry.DisplayUrl
width: Number entry.Width
height: Number entry.Height
size: Number entry.FileSize
type: entry.ContentType
thumbnail: @extractThumbnail entry
extractThumbnail: ({Thumbnail}) ->
url: Thumbnail.MediaUrl
type: Thumbnail.ContentType
width: Number Thumbnail.Width
height: Number Thumbnail.Height
size: Number Thumbnail.FileSize
videos: (query, options, callback) ->
@verticalSearch 'Video', _.bind(@extractVideoResults, this), query, options,
callback
extractVideoResults: (results) ->
@mapResults results,
(entry) =>
id: entry.ID
title: entry.Title
url: entry.MediaUrl
displayUrl: entry.DisplayUrl
runtime: Number entry.RunTime
thumbnail: @extractThumbnail entry
news: (query, options, callback) ->
@verticalSearch 'News', _.bind(@extractNewsResults, this), query, options,
callback
extractNewsResults: (results) ->
@mapResults results, (entry) ->
id: entry.ID
title: entry.Title
source: entry.Source
url: entry.Url
description: entry.Description
date: new Date entry.Date
spelling: (query, options, callback) ->
@verticalSearch 'SpellingSuggestions', _.bind(@extractSpellResults, this),
query, options, callback
extractSpellResults: (results) ->
@mapResults results, ({Value}) ->
Value
related: (query, options, callback) ->
@verticalSearch 'RelatedSearch', _.bind(@extractRelatedResults, this),
query, options, callback
extractRelatedResults: (results) ->
@mapResults results, ({Title, BingUrl}) ->
query: Title
url: BingUrl
composite: (query, options, callback) ->
[callback, options] = [options, {}] if arguments.length is 2
options = _.defaults {}, options, {query, sources: Search.SOURCES}
@parallelSearch 'Composite', options, (err, results) =>
return callback err if err
convertToSingleSource = (results, source) ->
{d: {results: r.d.results[0][source]}} for r in results
callback null,
web: @extractWebResults convertToSingleSource results, 'Web'
images: @extractImageResults convertToSingleSource results, 'Image'
videos: @extractVideoResults convertToSingleSource results, 'Video'
news: @extractNewsResults convertToSingleSource results, 'News'
spelling: @extractSpellResults convertToSingleSource results,
'SpellingSuggestions'
related: @extractRelatedResults convertToSingleSource results,
'RelatedSearch'
module.exports = Search
|
[
{
"context": "tions) ->\n username = options.pgUser\n password = options.pgPassword\n if username and password\n if checkAuth(usern",
"end": 451,
"score": 0.9631214141845703,
"start": 433,
"tag": "PASSWORD",
"value": "options.pgPassword"
}
] | accounts-pg_server.coffee | Raynes/meteor-accounts-pg | 1 | pg = Npm.require 'pg'
connectSync = Meteor.wrapAsync pg.connect, pg
checkAuth = (user, pass) ->
url = Meteor.settings.PG.url
connectionString = "postgres://#{user}:#{pass}@#{url}"
try
connectSync connectionString
true
catch e
false
Meteor.server.publish null, ->
if this.userId
Meteor.users.find _id: this.userId
Accounts.registerLoginHandler 'pg', (options) ->
username = options.pgUser
password = options.pgPassword
if username and password
if checkAuth(username, password)
Meteor.users.upsert user: username,
$set:
user: username
newUser = Meteor.users.findOne user: username
userId: newUser._id
else
throw new Meteor.Error(403, "PG auth failed!")
| 158657 | pg = Npm.require 'pg'
connectSync = Meteor.wrapAsync pg.connect, pg
checkAuth = (user, pass) ->
url = Meteor.settings.PG.url
connectionString = "postgres://#{user}:#{pass}@#{url}"
try
connectSync connectionString
true
catch e
false
Meteor.server.publish null, ->
if this.userId
Meteor.users.find _id: this.userId
Accounts.registerLoginHandler 'pg', (options) ->
username = options.pgUser
password = <PASSWORD>
if username and password
if checkAuth(username, password)
Meteor.users.upsert user: username,
$set:
user: username
newUser = Meteor.users.findOne user: username
userId: newUser._id
else
throw new Meteor.Error(403, "PG auth failed!")
| true | pg = Npm.require 'pg'
connectSync = Meteor.wrapAsync pg.connect, pg
checkAuth = (user, pass) ->
url = Meteor.settings.PG.url
connectionString = "postgres://#{user}:#{pass}@#{url}"
try
connectSync connectionString
true
catch e
false
Meteor.server.publish null, ->
if this.userId
Meteor.users.find _id: this.userId
Accounts.registerLoginHandler 'pg', (options) ->
username = options.pgUser
password = PI:PASSWORD:<PASSWORD>END_PI
if username and password
if checkAuth(username, password)
Meteor.users.upsert user: username,
$set:
user: username
newUser = Meteor.users.findOne user: username
userId: newUser._id
else
throw new Meteor.Error(403, "PG auth failed!")
|
[
{
"context": "test_option_personnummer: ->\n label = 'personnummer'\n description = 'big brother demands i",
"end": 3247,
"score": 0.661247968673706,
"start": 3235,
"tag": "NAME",
"value": "personnummer"
},
{
"context": "label = 'personnummer'\n descr... | clients/data/webshop/test/jstest_products_any.coffee | jacob22/accounting | 0 | /*
Copyright 2019 Open End AB
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
Tests = new Deferred()
require(['signals', 'data/webshop/products'], (signals, ProductData) ->
class JsLink
makeLink: ->
make_option = (label, description, type, mandatory, typedata) ->
field = [label, description, type, mandatory, typedata].join('\x1f')
return new ProductData.Option(field)
Tests.callback(
test_constructor: ->
products = new ProductData.Products()
aok(products.sections)
ais(products.sections.length, 0)
test_query: ->
products = new ProductData.Products(new JsLink(), 'myorgid')
products.start()
ais(products.query.tocName, 'members.Product')
test_sections: ->
products = new ProductData.Products(new JsLink(), 'myorgid')
products.start()
products.query.toiData = {
1: {
tags: []
},
2: {
tags: ['foo']
},
3: {
tags: ['foo', 'bar']
}
}
signals.signal(products.query, 'update')
console.log(products.sections)
ais(products.sections.length, 3)
test_option: ->
label = 'name'
description = 'fill in your name'
type = 'text'
mandatory = '1'
typedata = ''
option = make_option(label, description, type, mandatory, typedata)
ais(option.label, label)
ais(option.description, description)
ais(option.type, 'text')
ais(option.mandatory, true)
ais(option.typedata, typedata)
mandatory = '0'
typedata = 'foobar'
option = make_option(label, description, type, mandatory, typedata)
ais(option.label, 'name')
ais(option.description, 'fill in your name')
ais(option.type, 'text')
ais(option.mandatory, false)
ais(option.typedata, 'foobar')
test_option_is_valid_mandatory: ->
label = 'name'
description = 'fill in your name'
type = 'text'
mandatory = '0'
typedata = ''
option = make_option(label, description, type, mandatory, typedata)
aok(option.is_valid(''))
aok(option.is_valid('some data'))
mandatory = '1'
option = make_option(label, description, type, mandatory, typedata)
aok(!option.is_valid(''))
aok(option.is_valid('some data'))
test_option_personnummer: ->
label = 'personnummer'
description = 'big brother demands it'
type = 'personnummer'
mandatory = '1'
typedata = ''
option = make_option(label, description, type, mandatory, typedata)
aok(!option.is_valid(''))
aok(!option.is_valid('some data'))
aok(!option.is_valid('123456-7890'))
aok(option.is_valid('460430-0014'))
test_product: ->
id = '1234' # toid
data =
name: ['foo']
price: ['100.0000']
description: ['an exceptional foo']
optionFields: []
currentStock: [3]
product = new ProductData.Product(id, data)
ais(product.name, 'foo')
ais(product.price, 10000)
ais(product.description, 'an exceptional foo')
ais(product.currentStock, 3)
aisDeeply(product.options, [])
)
)
| 71381 | /*
Copyright 2019 Open End AB
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
Tests = new Deferred()
require(['signals', 'data/webshop/products'], (signals, ProductData) ->
class JsLink
makeLink: ->
make_option = (label, description, type, mandatory, typedata) ->
field = [label, description, type, mandatory, typedata].join('\x1f')
return new ProductData.Option(field)
Tests.callback(
test_constructor: ->
products = new ProductData.Products()
aok(products.sections)
ais(products.sections.length, 0)
test_query: ->
products = new ProductData.Products(new JsLink(), 'myorgid')
products.start()
ais(products.query.tocName, 'members.Product')
test_sections: ->
products = new ProductData.Products(new JsLink(), 'myorgid')
products.start()
products.query.toiData = {
1: {
tags: []
},
2: {
tags: ['foo']
},
3: {
tags: ['foo', 'bar']
}
}
signals.signal(products.query, 'update')
console.log(products.sections)
ais(products.sections.length, 3)
test_option: ->
label = 'name'
description = 'fill in your name'
type = 'text'
mandatory = '1'
typedata = ''
option = make_option(label, description, type, mandatory, typedata)
ais(option.label, label)
ais(option.description, description)
ais(option.type, 'text')
ais(option.mandatory, true)
ais(option.typedata, typedata)
mandatory = '0'
typedata = 'foobar'
option = make_option(label, description, type, mandatory, typedata)
ais(option.label, 'name')
ais(option.description, 'fill in your name')
ais(option.type, 'text')
ais(option.mandatory, false)
ais(option.typedata, 'foobar')
test_option_is_valid_mandatory: ->
label = 'name'
description = 'fill in your name'
type = 'text'
mandatory = '0'
typedata = ''
option = make_option(label, description, type, mandatory, typedata)
aok(option.is_valid(''))
aok(option.is_valid('some data'))
mandatory = '1'
option = make_option(label, description, type, mandatory, typedata)
aok(!option.is_valid(''))
aok(option.is_valid('some data'))
test_option_personnummer: ->
label = '<NAME>'
description = '<NAME> demands it'
type = 'personnummer'
mandatory = '1'
typedata = ''
option = make_option(label, description, type, mandatory, typedata)
aok(!option.is_valid(''))
aok(!option.is_valid('some data'))
aok(!option.is_valid('123456-7890'))
aok(option.is_valid('460430-0014'))
test_product: ->
id = '1234' # toid
data =
name: ['<NAME>']
price: ['100.0000']
description: ['an exceptional foo']
optionFields: []
currentStock: [3]
product = new ProductData.Product(id, data)
ais(product.name, 'foo')
ais(product.price, 10000)
ais(product.description, 'an exceptional foo')
ais(product.currentStock, 3)
aisDeeply(product.options, [])
)
)
| true | /*
Copyright 2019 Open End AB
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
Tests = new Deferred()
require(['signals', 'data/webshop/products'], (signals, ProductData) ->
class JsLink
makeLink: ->
make_option = (label, description, type, mandatory, typedata) ->
field = [label, description, type, mandatory, typedata].join('\x1f')
return new ProductData.Option(field)
Tests.callback(
test_constructor: ->
products = new ProductData.Products()
aok(products.sections)
ais(products.sections.length, 0)
test_query: ->
products = new ProductData.Products(new JsLink(), 'myorgid')
products.start()
ais(products.query.tocName, 'members.Product')
test_sections: ->
products = new ProductData.Products(new JsLink(), 'myorgid')
products.start()
products.query.toiData = {
1: {
tags: []
},
2: {
tags: ['foo']
},
3: {
tags: ['foo', 'bar']
}
}
signals.signal(products.query, 'update')
console.log(products.sections)
ais(products.sections.length, 3)
test_option: ->
label = 'name'
description = 'fill in your name'
type = 'text'
mandatory = '1'
typedata = ''
option = make_option(label, description, type, mandatory, typedata)
ais(option.label, label)
ais(option.description, description)
ais(option.type, 'text')
ais(option.mandatory, true)
ais(option.typedata, typedata)
mandatory = '0'
typedata = 'foobar'
option = make_option(label, description, type, mandatory, typedata)
ais(option.label, 'name')
ais(option.description, 'fill in your name')
ais(option.type, 'text')
ais(option.mandatory, false)
ais(option.typedata, 'foobar')
test_option_is_valid_mandatory: ->
label = 'name'
description = 'fill in your name'
type = 'text'
mandatory = '0'
typedata = ''
option = make_option(label, description, type, mandatory, typedata)
aok(option.is_valid(''))
aok(option.is_valid('some data'))
mandatory = '1'
option = make_option(label, description, type, mandatory, typedata)
aok(!option.is_valid(''))
aok(option.is_valid('some data'))
test_option_personnummer: ->
label = 'PI:NAME:<NAME>END_PI'
description = 'PI:NAME:<NAME>END_PI demands it'
type = 'personnummer'
mandatory = '1'
typedata = ''
option = make_option(label, description, type, mandatory, typedata)
aok(!option.is_valid(''))
aok(!option.is_valid('some data'))
aok(!option.is_valid('123456-7890'))
aok(option.is_valid('460430-0014'))
test_product: ->
id = '1234' # toid
data =
name: ['PI:NAME:<NAME>END_PI']
price: ['100.0000']
description: ['an exceptional foo']
optionFields: []
currentStock: [3]
product = new ProductData.Product(id, data)
ais(product.name, 'foo')
ais(product.price, 10000)
ais(product.description, 'an exceptional foo')
ais(product.currentStock, 3)
aisDeeply(product.options, [])
)
)
|
[
{
"context": "# Copyright (c) Markus Kohlhase, 2011\n\n# a little helper\nhelper =\n\n fill: (src, ",
"end": 31,
"score": 0.9998877644538879,
"start": 16,
"tag": "NAME",
"value": "Markus Kohlhase"
}
] | dataforms/src/strophe.x.coffee | calendar42/strophejs-plugins | 0 | # Copyright (c) Markus Kohlhase, 2011
# a little helper
helper =
fill: (src, target, klass) -> for f in src
target.push if f instanceof klass then f else new klass f
createHtmlFieldCouple: (f) ->
div = $ "<div>"
id = "Strophe.x.Field-#{ f.type }-#{f.var}"
div
.append("<label for='#{id}'>#{f.label or ''}</label>")
.append( $(f.toHTML()).attr("id", id ) )
.append("<br />")
div.children()
getHtmlFields: (html) ->
html = $ html
[html.find("input")..., html.find("select")..., html.find("textarea")...]
class Form
@_types: ["form","submit","cancel","result"]
constructor: (opt) ->
@fields = []
@items = []
@reported = []
if opt
@type = opt.type if opt.type in Form._types
@title = opt.title
@instructions = opt.instructions
helper.fill = (src, target, klass) -> for f in src
target.push if f instanceof klass then f else new klass f
if opt.fields
helper.fill opt.fields, @fields, Field if opt.fields
else if opt.items
helper.fill opt.items, @items, Item if opt.items
for i in @items
for f in i.fields
@reported.push f.var if not (f.var in @reported)
type: "form"
title: null
instructions: null
toXML: =>
xml = ($build "x", { xmlns: "jabber:x:data", @type })
xml.c("title").t(@title.toString()).up() if @title
xml.c("instructions").t(@instructions.toString()).up() if @instructions
if @fields.length > 0
for f in @fields
xml.cnode(f.toXML()).up()
else if @items.length > 0
xml.c("reported")
for r in @reported
xml.c("field",{var: r}).up()
xml.up()
for i in @items
xml.cnode(i.toXML()).up()
xml.tree()
toJSON: =>
json = {@type}
json.title = @title if @title
json.instructions = @instructions if @instructions
if @fields.length > 0
json.fields = []
for f in @fields
json.fields.push f.toJSON()
else if @items.length > 0
json.items = []
json.reported = @reported
json.items.push i.toJSON() for i in @items
json
toHTML: =>
form = $("<form data-type='#{@type}'>")
form.append("<h1>#{@title}</h1>") if @title
form.append("<p>#{@instructions}</p>") if @instructions
if @fields.length > 0
(helper.createHtmlFieldCouple f).appendTo form for f in @fields
else if @items.length > 0
($ i.toHTML()).appendTo form for i in @items
form[0]
@fromXML: (xml) ->
xml = $ xml
f = new Form
type: xml.attr "type"
title = xml.find "title"
if title.length is 1
f.title = title.text()
instr = xml.find "instructions"
if instr.length is 1
f.instructions = instr.text()
fields = xml.find "field"
items = xml.find "item"
if items.length > 0
f.items = ( Item.fromXML i for i in items)
else if fields.length > 0
f.fields = ( Field.fromXML j for j in fields)
reported = xml.find "reported"
if reported.length is 1
fields = reported.find "field"
f.reported = ( ($ r).attr("var") for r in fields)
f
@fromHTML: (html) ->
html = $ html
f = new Form
type: html.attr "data-type"
title = html.find("h1").text()
f.title = title if title
instructions = html.find("p").text()
f.instructions = instructions if instructions
items = html.find "fieldset"
fields = helper.getHtmlFields html
if items.length > 0
f.items = ( Item.fromHTML i for i in items)
for item in f.items
for field in item.fields
f.reported.push field.var if not (field.var in f.reported)
else if fields.length > 0
f.fields = ( Field.fromHTML j for j in fields )
f
class Field
@_types: ["boolean","fixed","hidden","jid-multi","jid-single","list-multi",
"list-single", "text-multi", "text-private", "text-single"]
@_multiTypes = ["list-multi", "jid-multi", "text-multi", "hidden"]
constructor: (opt) ->
@options = []
@values = []
if opt
@type = opt.type.toString() if opt.type in Field._types
@desc = opt.desc.toString() if opt.desc
@label = opt.label.toString() if opt.label
@var = opt.var?.toString() or "_no_var_was_defined_"
@required = opt.required is true or opt.required is "true"
@addOptions opt.options if opt.options
opt.values = [ opt.value ] if opt.value
@addValues opt.values if opt.values
type: "text-single"
desc: null
label: null
var: "_no_var_was_defined_"
required: false
addValue: (val) => @addValues [val]
addValues: (vals) =>
multi = @type in Field._multiTypes
if multi or ( not multi and vals.length is 1 )
@values = [@values..., (v.toString() for v in vals)...]
@
addOption: (opt) => @addOptions [opt]
addOptions: (opts) =>
if @type is "list-single" or @type is "list-multi"
if typeof opts[0] isnt "object"
opts = (new Option { value: o.toString() } for o in opts)
helper.fill opts, @options, Option
@
toJSON: =>
json = { @type, @var, @required }
json.desc = @desc if @desc
json.label = @label if @label
json.values = @values if @values
if @options
json.options = []
for o in @options
json.options.push o.toJSON()
json
toXML: =>
attrs = {@type, @var}
attrs.label = @label if @label
xml = ($build "field", attrs )
xml.c("desc").t(@desc).up() if @desc
xml.c("required").up() if @required
if @values
for v in @values
xml.c("value").t(v.toString()).up()
if @options
for o in @options
xml.cnode(o.toXML()).up()
xml.tree()
toHTML: =>
switch @type.toLowerCase()
when 'list-single', 'list-multi'
el = ($ "<select>")
el.attr 'multiple', 'multiple' if @type is 'list-multi'
if @options.length > 0
for opt in @options when opt
o = $ opt.toHTML()
for k in @values
o.attr 'selected', 'selected' if k.toString() is opt.value.toString()
o.appendTo el
when 'text-multi', 'jid-multi'
el = $ "<textarea>"
txt = (line for line in @values).join '\n'
el.text txt if txt
when 'text-single', 'boolean','text-private', 'hidden', 'fixed', 'jid-single'
el = $ "<input>"
el.val @values[0] if @values
switch @type.toLowerCase()
when 'text-single'
el.attr 'type', 'text'
el.attr 'placeholder', @desc
when 'boolean'
el.attr 'type', 'checkbox'
val = @values[0]?.toString?()
el.attr('checked','checked') if val and ( val is "true" or val is "1" )
when 'text-private'
el.attr 'type', 'password'
when 'hidden'
el.attr 'type', 'hidden'
when 'fixed'
el.attr('type','text').attr('readonly','readonly')
when 'jid-single'
el.attr 'type', 'email'
else
el = $ "<input type='text'>"
el.attr('name', @var )
el.attr('required', @required ) if @required
el[0]
@fromXML: (xml) ->
xml = $ xml
new Field
type: xml.attr "type"
var: xml.attr "var"
label: xml.attr "label"
desc: xml.find("desc").text()
required: (xml.find("required").length is 1)
values: ( ($ v).text() for v in xml.find "value" )
options: ( Option.fromXML o for o in xml.find "option" )
@_htmlElementToFieldType: (el) ->
el = $ el
switch el[0].nodeName.toLowerCase()
when "textarea"
type = "text-multi" # or jid-multi
when "select"
if el.attr("multiple") is "multiple"
type = "list-multi"
else
type = "list-single"
when "input"
switch el.attr "type"
when "checkbox"
type = "boolean"
when "email"
type = "jid-single"
when "hidden"
type = "hidden"
when "password"
type = "text-private"
when "text"
r = (el.attr "readonly" is "readonly")
if r
type = "fixed"
else
type = "text-single"
type
@fromHTML: (html) ->
html = $ html
type = Field._htmlElementToFieldType html
f = new Field
type:type
var: html.attr "name"
required: (html.attr("required") is "required")
switch type
when "list-multi","list-single"
f.values = ( ($ el).val() for el in html.find "option:selected" )
f.options= ( Option.fromHTML el for el in html.find "option" )
when "text-multi","jid-multi"
txt = html.text()
f.values = txt.split('\n') if txt.trim() isnt ""
when 'text-single', 'boolean','text-private', 'hidden', 'fixed', 'jid-single'
f.values = [ html.val() ] if html.val().trim() isnt ""
f
class Option
constructor: (opt) ->
if opt
@label = opt.label.toString() if opt.label
@value = opt.value.toString() if opt.value
label: ""
value: ""
toXML: => ($build "option", { label: @label })
.c("value")
.t(@value.toString())
.tree()
toJSON: => { @label, @value }
toHTML: => ($ "<option>").attr('value', @value ).text( @label or @value )[0]
@fromXML: (xml) ->
new Option { label: ($ xml).attr("label"), value: ($ xml).text() }
@fromHTML: (html) ->
new Option { value: ($ html).attr("value"), label: ($ html).text() }
class Item
constructor: (opts) ->
@fields = []
helper.fill opts.fields, @fields, Field if opts?.fields
toXML: =>
xml = $build "item"
for f in @fields
xml.cnode( f.toXML() ).up()
xml.tree()
toJSON: =>
json = {}
if @fields
json.fields = []
for f in @fields
json.fields.push f.toJSON()
json
toHTML: =>
fieldset = $ "<fieldset>"
(helper.createHtmlFieldCouple f).appendTo fieldset for f in @fields
fieldset[0]
@fromXML: (xml) ->
xml = $ xml
fields = xml.find "field"
new Item
fields: ( Field.fromXML f for f in fields)
@fromHTML: (html) ->
new Item fields: ( Field.fromHTML f for f in helper.getHtmlFields(html))
Strophe.x =
Form: Form
Field: Field
Option:Option
Item:Item
$form = (opt) -> new Strophe.x.Form opt
$field = (opt) -> new Strophe.x.Field opt
$opt = (opt) -> new Strophe.x.Option opt
$item = (opts) -> new Strophe.x.Item opts
Strophe.addConnectionPlugin 'x',
init : (conn) ->
Strophe.addNamespace 'DATA', 'jabber:x:data'
conn.disco.addFeature Strophe.NS.DATA if conn.disco
parseFromResult: (result) ->
if result.nodeName.toLowerCase() is "x"
Form.fromXML result
else
Form.fromXML ($ result).find("x")?[0]
| 73790 | # Copyright (c) <NAME>, 2011
# a little helper
helper =
fill: (src, target, klass) -> for f in src
target.push if f instanceof klass then f else new klass f
createHtmlFieldCouple: (f) ->
div = $ "<div>"
id = "Strophe.x.Field-#{ f.type }-#{f.var}"
div
.append("<label for='#{id}'>#{f.label or ''}</label>")
.append( $(f.toHTML()).attr("id", id ) )
.append("<br />")
div.children()
getHtmlFields: (html) ->
html = $ html
[html.find("input")..., html.find("select")..., html.find("textarea")...]
class Form
@_types: ["form","submit","cancel","result"]
constructor: (opt) ->
@fields = []
@items = []
@reported = []
if opt
@type = opt.type if opt.type in Form._types
@title = opt.title
@instructions = opt.instructions
helper.fill = (src, target, klass) -> for f in src
target.push if f instanceof klass then f else new klass f
if opt.fields
helper.fill opt.fields, @fields, Field if opt.fields
else if opt.items
helper.fill opt.items, @items, Item if opt.items
for i in @items
for f in i.fields
@reported.push f.var if not (f.var in @reported)
type: "form"
title: null
instructions: null
toXML: =>
xml = ($build "x", { xmlns: "jabber:x:data", @type })
xml.c("title").t(@title.toString()).up() if @title
xml.c("instructions").t(@instructions.toString()).up() if @instructions
if @fields.length > 0
for f in @fields
xml.cnode(f.toXML()).up()
else if @items.length > 0
xml.c("reported")
for r in @reported
xml.c("field",{var: r}).up()
xml.up()
for i in @items
xml.cnode(i.toXML()).up()
xml.tree()
toJSON: =>
json = {@type}
json.title = @title if @title
json.instructions = @instructions if @instructions
if @fields.length > 0
json.fields = []
for f in @fields
json.fields.push f.toJSON()
else if @items.length > 0
json.items = []
json.reported = @reported
json.items.push i.toJSON() for i in @items
json
toHTML: =>
form = $("<form data-type='#{@type}'>")
form.append("<h1>#{@title}</h1>") if @title
form.append("<p>#{@instructions}</p>") if @instructions
if @fields.length > 0
(helper.createHtmlFieldCouple f).appendTo form for f in @fields
else if @items.length > 0
($ i.toHTML()).appendTo form for i in @items
form[0]
@fromXML: (xml) ->
xml = $ xml
f = new Form
type: xml.attr "type"
title = xml.find "title"
if title.length is 1
f.title = title.text()
instr = xml.find "instructions"
if instr.length is 1
f.instructions = instr.text()
fields = xml.find "field"
items = xml.find "item"
if items.length > 0
f.items = ( Item.fromXML i for i in items)
else if fields.length > 0
f.fields = ( Field.fromXML j for j in fields)
reported = xml.find "reported"
if reported.length is 1
fields = reported.find "field"
f.reported = ( ($ r).attr("var") for r in fields)
f
@fromHTML: (html) ->
html = $ html
f = new Form
type: html.attr "data-type"
title = html.find("h1").text()
f.title = title if title
instructions = html.find("p").text()
f.instructions = instructions if instructions
items = html.find "fieldset"
fields = helper.getHtmlFields html
if items.length > 0
f.items = ( Item.fromHTML i for i in items)
for item in f.items
for field in item.fields
f.reported.push field.var if not (field.var in f.reported)
else if fields.length > 0
f.fields = ( Field.fromHTML j for j in fields )
f
class Field
@_types: ["boolean","fixed","hidden","jid-multi","jid-single","list-multi",
"list-single", "text-multi", "text-private", "text-single"]
@_multiTypes = ["list-multi", "jid-multi", "text-multi", "hidden"]
constructor: (opt) ->
@options = []
@values = []
if opt
@type = opt.type.toString() if opt.type in Field._types
@desc = opt.desc.toString() if opt.desc
@label = opt.label.toString() if opt.label
@var = opt.var?.toString() or "_no_var_was_defined_"
@required = opt.required is true or opt.required is "true"
@addOptions opt.options if opt.options
opt.values = [ opt.value ] if opt.value
@addValues opt.values if opt.values
type: "text-single"
desc: null
label: null
var: "_no_var_was_defined_"
required: false
addValue: (val) => @addValues [val]
addValues: (vals) =>
multi = @type in Field._multiTypes
if multi or ( not multi and vals.length is 1 )
@values = [@values..., (v.toString() for v in vals)...]
@
addOption: (opt) => @addOptions [opt]
addOptions: (opts) =>
if @type is "list-single" or @type is "list-multi"
if typeof opts[0] isnt "object"
opts = (new Option { value: o.toString() } for o in opts)
helper.fill opts, @options, Option
@
toJSON: =>
json = { @type, @var, @required }
json.desc = @desc if @desc
json.label = @label if @label
json.values = @values if @values
if @options
json.options = []
for o in @options
json.options.push o.toJSON()
json
toXML: =>
attrs = {@type, @var}
attrs.label = @label if @label
xml = ($build "field", attrs )
xml.c("desc").t(@desc).up() if @desc
xml.c("required").up() if @required
if @values
for v in @values
xml.c("value").t(v.toString()).up()
if @options
for o in @options
xml.cnode(o.toXML()).up()
xml.tree()
toHTML: =>
switch @type.toLowerCase()
when 'list-single', 'list-multi'
el = ($ "<select>")
el.attr 'multiple', 'multiple' if @type is 'list-multi'
if @options.length > 0
for opt in @options when opt
o = $ opt.toHTML()
for k in @values
o.attr 'selected', 'selected' if k.toString() is opt.value.toString()
o.appendTo el
when 'text-multi', 'jid-multi'
el = $ "<textarea>"
txt = (line for line in @values).join '\n'
el.text txt if txt
when 'text-single', 'boolean','text-private', 'hidden', 'fixed', 'jid-single'
el = $ "<input>"
el.val @values[0] if @values
switch @type.toLowerCase()
when 'text-single'
el.attr 'type', 'text'
el.attr 'placeholder', @desc
when 'boolean'
el.attr 'type', 'checkbox'
val = @values[0]?.toString?()
el.attr('checked','checked') if val and ( val is "true" or val is "1" )
when 'text-private'
el.attr 'type', 'password'
when 'hidden'
el.attr 'type', 'hidden'
when 'fixed'
el.attr('type','text').attr('readonly','readonly')
when 'jid-single'
el.attr 'type', 'email'
else
el = $ "<input type='text'>"
el.attr('name', @var )
el.attr('required', @required ) if @required
el[0]
@fromXML: (xml) ->
xml = $ xml
new Field
type: xml.attr "type"
var: xml.attr "var"
label: xml.attr "label"
desc: xml.find("desc").text()
required: (xml.find("required").length is 1)
values: ( ($ v).text() for v in xml.find "value" )
options: ( Option.fromXML o for o in xml.find "option" )
@_htmlElementToFieldType: (el) ->
el = $ el
switch el[0].nodeName.toLowerCase()
when "textarea"
type = "text-multi" # or jid-multi
when "select"
if el.attr("multiple") is "multiple"
type = "list-multi"
else
type = "list-single"
when "input"
switch el.attr "type"
when "checkbox"
type = "boolean"
when "email"
type = "jid-single"
when "hidden"
type = "hidden"
when "password"
type = "text-private"
when "text"
r = (el.attr "readonly" is "readonly")
if r
type = "fixed"
else
type = "text-single"
type
@fromHTML: (html) ->
html = $ html
type = Field._htmlElementToFieldType html
f = new Field
type:type
var: html.attr "name"
required: (html.attr("required") is "required")
switch type
when "list-multi","list-single"
f.values = ( ($ el).val() for el in html.find "option:selected" )
f.options= ( Option.fromHTML el for el in html.find "option" )
when "text-multi","jid-multi"
txt = html.text()
f.values = txt.split('\n') if txt.trim() isnt ""
when 'text-single', 'boolean','text-private', 'hidden', 'fixed', 'jid-single'
f.values = [ html.val() ] if html.val().trim() isnt ""
f
class Option
constructor: (opt) ->
if opt
@label = opt.label.toString() if opt.label
@value = opt.value.toString() if opt.value
label: ""
value: ""
toXML: => ($build "option", { label: @label })
.c("value")
.t(@value.toString())
.tree()
toJSON: => { @label, @value }
toHTML: => ($ "<option>").attr('value', @value ).text( @label or @value )[0]
@fromXML: (xml) ->
new Option { label: ($ xml).attr("label"), value: ($ xml).text() }
@fromHTML: (html) ->
new Option { value: ($ html).attr("value"), label: ($ html).text() }
class Item
constructor: (opts) ->
@fields = []
helper.fill opts.fields, @fields, Field if opts?.fields
toXML: =>
xml = $build "item"
for f in @fields
xml.cnode( f.toXML() ).up()
xml.tree()
toJSON: =>
json = {}
if @fields
json.fields = []
for f in @fields
json.fields.push f.toJSON()
json
toHTML: =>
fieldset = $ "<fieldset>"
(helper.createHtmlFieldCouple f).appendTo fieldset for f in @fields
fieldset[0]
@fromXML: (xml) ->
xml = $ xml
fields = xml.find "field"
new Item
fields: ( Field.fromXML f for f in fields)
@fromHTML: (html) ->
new Item fields: ( Field.fromHTML f for f in helper.getHtmlFields(html))
Strophe.x =
Form: Form
Field: Field
Option:Option
Item:Item
$form = (opt) -> new Strophe.x.Form opt
$field = (opt) -> new Strophe.x.Field opt
$opt = (opt) -> new Strophe.x.Option opt
$item = (opts) -> new Strophe.x.Item opts
Strophe.addConnectionPlugin 'x',
init : (conn) ->
Strophe.addNamespace 'DATA', 'jabber:x:data'
conn.disco.addFeature Strophe.NS.DATA if conn.disco
parseFromResult: (result) ->
if result.nodeName.toLowerCase() is "x"
Form.fromXML result
else
Form.fromXML ($ result).find("x")?[0]
| true | # Copyright (c) PI:NAME:<NAME>END_PI, 2011
# a little helper
helper =
fill: (src, target, klass) -> for f in src
target.push if f instanceof klass then f else new klass f
createHtmlFieldCouple: (f) ->
div = $ "<div>"
id = "Strophe.x.Field-#{ f.type }-#{f.var}"
div
.append("<label for='#{id}'>#{f.label or ''}</label>")
.append( $(f.toHTML()).attr("id", id ) )
.append("<br />")
div.children()
getHtmlFields: (html) ->
html = $ html
[html.find("input")..., html.find("select")..., html.find("textarea")...]
class Form
@_types: ["form","submit","cancel","result"]
constructor: (opt) ->
@fields = []
@items = []
@reported = []
if opt
@type = opt.type if opt.type in Form._types
@title = opt.title
@instructions = opt.instructions
helper.fill = (src, target, klass) -> for f in src
target.push if f instanceof klass then f else new klass f
if opt.fields
helper.fill opt.fields, @fields, Field if opt.fields
else if opt.items
helper.fill opt.items, @items, Item if opt.items
for i in @items
for f in i.fields
@reported.push f.var if not (f.var in @reported)
type: "form"
title: null
instructions: null
toXML: =>
xml = ($build "x", { xmlns: "jabber:x:data", @type })
xml.c("title").t(@title.toString()).up() if @title
xml.c("instructions").t(@instructions.toString()).up() if @instructions
if @fields.length > 0
for f in @fields
xml.cnode(f.toXML()).up()
else if @items.length > 0
xml.c("reported")
for r in @reported
xml.c("field",{var: r}).up()
xml.up()
for i in @items
xml.cnode(i.toXML()).up()
xml.tree()
toJSON: =>
json = {@type}
json.title = @title if @title
json.instructions = @instructions if @instructions
if @fields.length > 0
json.fields = []
for f in @fields
json.fields.push f.toJSON()
else if @items.length > 0
json.items = []
json.reported = @reported
json.items.push i.toJSON() for i in @items
json
toHTML: =>
form = $("<form data-type='#{@type}'>")
form.append("<h1>#{@title}</h1>") if @title
form.append("<p>#{@instructions}</p>") if @instructions
if @fields.length > 0
(helper.createHtmlFieldCouple f).appendTo form for f in @fields
else if @items.length > 0
($ i.toHTML()).appendTo form for i in @items
form[0]
@fromXML: (xml) ->
xml = $ xml
f = new Form
type: xml.attr "type"
title = xml.find "title"
if title.length is 1
f.title = title.text()
instr = xml.find "instructions"
if instr.length is 1
f.instructions = instr.text()
fields = xml.find "field"
items = xml.find "item"
if items.length > 0
f.items = ( Item.fromXML i for i in items)
else if fields.length > 0
f.fields = ( Field.fromXML j for j in fields)
reported = xml.find "reported"
if reported.length is 1
fields = reported.find "field"
f.reported = ( ($ r).attr("var") for r in fields)
f
@fromHTML: (html) ->
html = $ html
f = new Form
type: html.attr "data-type"
title = html.find("h1").text()
f.title = title if title
instructions = html.find("p").text()
f.instructions = instructions if instructions
items = html.find "fieldset"
fields = helper.getHtmlFields html
if items.length > 0
f.items = ( Item.fromHTML i for i in items)
for item in f.items
for field in item.fields
f.reported.push field.var if not (field.var in f.reported)
else if fields.length > 0
f.fields = ( Field.fromHTML j for j in fields )
f
class Field
@_types: ["boolean","fixed","hidden","jid-multi","jid-single","list-multi",
"list-single", "text-multi", "text-private", "text-single"]
@_multiTypes = ["list-multi", "jid-multi", "text-multi", "hidden"]
constructor: (opt) ->
@options = []
@values = []
if opt
@type = opt.type.toString() if opt.type in Field._types
@desc = opt.desc.toString() if opt.desc
@label = opt.label.toString() if opt.label
@var = opt.var?.toString() or "_no_var_was_defined_"
@required = opt.required is true or opt.required is "true"
@addOptions opt.options if opt.options
opt.values = [ opt.value ] if opt.value
@addValues opt.values if opt.values
type: "text-single"
desc: null
label: null
var: "_no_var_was_defined_"
required: false
addValue: (val) => @addValues [val]
addValues: (vals) =>
multi = @type in Field._multiTypes
if multi or ( not multi and vals.length is 1 )
@values = [@values..., (v.toString() for v in vals)...]
@
addOption: (opt) => @addOptions [opt]
addOptions: (opts) =>
if @type is "list-single" or @type is "list-multi"
if typeof opts[0] isnt "object"
opts = (new Option { value: o.toString() } for o in opts)
helper.fill opts, @options, Option
@
toJSON: =>
json = { @type, @var, @required }
json.desc = @desc if @desc
json.label = @label if @label
json.values = @values if @values
if @options
json.options = []
for o in @options
json.options.push o.toJSON()
json
toXML: =>
attrs = {@type, @var}
attrs.label = @label if @label
xml = ($build "field", attrs )
xml.c("desc").t(@desc).up() if @desc
xml.c("required").up() if @required
if @values
for v in @values
xml.c("value").t(v.toString()).up()
if @options
for o in @options
xml.cnode(o.toXML()).up()
xml.tree()
toHTML: =>
switch @type.toLowerCase()
when 'list-single', 'list-multi'
el = ($ "<select>")
el.attr 'multiple', 'multiple' if @type is 'list-multi'
if @options.length > 0
for opt in @options when opt
o = $ opt.toHTML()
for k in @values
o.attr 'selected', 'selected' if k.toString() is opt.value.toString()
o.appendTo el
when 'text-multi', 'jid-multi'
el = $ "<textarea>"
txt = (line for line in @values).join '\n'
el.text txt if txt
when 'text-single', 'boolean','text-private', 'hidden', 'fixed', 'jid-single'
el = $ "<input>"
el.val @values[0] if @values
switch @type.toLowerCase()
when 'text-single'
el.attr 'type', 'text'
el.attr 'placeholder', @desc
when 'boolean'
el.attr 'type', 'checkbox'
val = @values[0]?.toString?()
el.attr('checked','checked') if val and ( val is "true" or val is "1" )
when 'text-private'
el.attr 'type', 'password'
when 'hidden'
el.attr 'type', 'hidden'
when 'fixed'
el.attr('type','text').attr('readonly','readonly')
when 'jid-single'
el.attr 'type', 'email'
else
el = $ "<input type='text'>"
el.attr('name', @var )
el.attr('required', @required ) if @required
el[0]
@fromXML: (xml) ->
xml = $ xml
new Field
type: xml.attr "type"
var: xml.attr "var"
label: xml.attr "label"
desc: xml.find("desc").text()
required: (xml.find("required").length is 1)
values: ( ($ v).text() for v in xml.find "value" )
options: ( Option.fromXML o for o in xml.find "option" )
@_htmlElementToFieldType: (el) ->
el = $ el
switch el[0].nodeName.toLowerCase()
when "textarea"
type = "text-multi" # or jid-multi
when "select"
if el.attr("multiple") is "multiple"
type = "list-multi"
else
type = "list-single"
when "input"
switch el.attr "type"
when "checkbox"
type = "boolean"
when "email"
type = "jid-single"
when "hidden"
type = "hidden"
when "password"
type = "text-private"
when "text"
r = (el.attr "readonly" is "readonly")
if r
type = "fixed"
else
type = "text-single"
type
@fromHTML: (html) ->
html = $ html
type = Field._htmlElementToFieldType html
f = new Field
type:type
var: html.attr "name"
required: (html.attr("required") is "required")
switch type
when "list-multi","list-single"
f.values = ( ($ el).val() for el in html.find "option:selected" )
f.options= ( Option.fromHTML el for el in html.find "option" )
when "text-multi","jid-multi"
txt = html.text()
f.values = txt.split('\n') if txt.trim() isnt ""
when 'text-single', 'boolean','text-private', 'hidden', 'fixed', 'jid-single'
f.values = [ html.val() ] if html.val().trim() isnt ""
f
class Option
constructor: (opt) ->
if opt
@label = opt.label.toString() if opt.label
@value = opt.value.toString() if opt.value
label: ""
value: ""
toXML: => ($build "option", { label: @label })
.c("value")
.t(@value.toString())
.tree()
toJSON: => { @label, @value }
toHTML: => ($ "<option>").attr('value', @value ).text( @label or @value )[0]
@fromXML: (xml) ->
new Option { label: ($ xml).attr("label"), value: ($ xml).text() }
@fromHTML: (html) ->
new Option { value: ($ html).attr("value"), label: ($ html).text() }
class Item
constructor: (opts) ->
@fields = []
helper.fill opts.fields, @fields, Field if opts?.fields
toXML: =>
xml = $build "item"
for f in @fields
xml.cnode( f.toXML() ).up()
xml.tree()
toJSON: =>
json = {}
if @fields
json.fields = []
for f in @fields
json.fields.push f.toJSON()
json
toHTML: =>
fieldset = $ "<fieldset>"
(helper.createHtmlFieldCouple f).appendTo fieldset for f in @fields
fieldset[0]
@fromXML: (xml) ->
xml = $ xml
fields = xml.find "field"
new Item
fields: ( Field.fromXML f for f in fields)
@fromHTML: (html) ->
new Item fields: ( Field.fromHTML f for f in helper.getHtmlFields(html))
Strophe.x =
Form: Form
Field: Field
Option:Option
Item:Item
$form = (opt) -> new Strophe.x.Form opt
$field = (opt) -> new Strophe.x.Field opt
$opt = (opt) -> new Strophe.x.Option opt
$item = (opts) -> new Strophe.x.Item opts
Strophe.addConnectionPlugin 'x',
init : (conn) ->
Strophe.addNamespace 'DATA', 'jabber:x:data'
conn.disco.addFeature Strophe.NS.DATA if conn.disco
parseFromResult: (result) ->
if result.nodeName.toLowerCase() is "x"
Form.fromXML result
else
Form.fromXML ($ result).find("x")?[0]
|
[
{
"context": "'scopeName': 'source.yorick'\n'name': 'Yorick'\n'fileTypes': ['i']\n'patterns': [\n { # Numeric",
"end": 44,
"score": 0.5235261917114258,
"start": 39,
"tag": "NAME",
"value": "orick"
}
] | grammars/yorick.cson | fabricevidal/language-yorick | 0 | 'scopeName': 'source.yorick'
'name': 'Yorick'
'fileTypes': ['i']
'patterns': [
{ # Numeric match ORANGE
'match': '\\b(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))\\b'
'name': 'constant.numeric.yorick' # First rule
},
{ # Numeric match RED
'match': '\\b(avg|rms|min|max|sum|ptp|mnx|mxx|cum|dif|zcen|pcen|uncp|random)\\b'
'name': 'variable.language.yorick' # First rule
},
{ # func + funcname match VIOLET BLUE
'match': '\\b(func)\\s+(\\w+)\\s*\\(.*\\)'
'captures':
'1':
'name': 'keyword.control.yorick'
'2':
'name': 'entity.name.function.yorick'
'name': 'meta.function.yorick'
},
{ # single quote '' rule GREEN
'begin': '\''
'end': '\''
'name': 'string.quoted.single.yorick'
},
{ # double quote "" rule
'begin': '\"'
'end': '\"'
'name': 'string.quoted.single.yorick'
},
{ # /* */ comments rule GREEN
'begin': '/\\*'
'beginCaptures':
'0':
'name': 'string.triple.comment.begin.yorick'
'end': '\\*/'
'endCaptures':
'0':
'name': 'string.triple.comment.end.yorick'
'name': 'string.triple.comment.yorick'
},
{ # modifiers rule VIOLET
'match': '\\b(pause|roll|palette|plg|plmesh|fma|limits| range| logxy| window|winkill| animate| plm|plc|plf| plv| pli| pldj| plt|allof|anyof|noneof|nallof|where|where2|transpose|interp|integ|print|info|dimsof|orgsof|numberof|typeof|structof|is_array|is_func|is_void|is_range|is_stream|am_subroutine|array|span|span1|grow|median|sort|extern|local|if|else|while|do|write|swrite|read|sread|return|continue)\\b'
'name': 'storage.modifier.yorick'
},
{ #
'begin': '//'
'beginCaptures':
'0':
'name': 'punctuation.definition.comment.yorick'
'end': '\\n'
'name': 'comment.line.double-slash.yorick'
'patterns': [
{
'include': '#line_continuation_character'
}
]
},
{ # #include, require VIOLET
'match': '\\b(?:(#include)|(include)|(require)|(struct))\\b'
'name': 'keyword.control.include.yorick'
},
{ # RED
'match': '\\b(?:(exit)|(quit)|(error)|(system)|(break))\\b'
'name': 'support.variable.yorick'
},
{
'match': '\\b(?:(str)|(int)|(float)|(double)|(char)|(short)|(complex)|(long)|sin|cos|tan|asin|acos|atan|exp|log|log10|asinh|acosh|atanh|sinh|cosh|tanh|sech|csch|abs|sign|floor|ceil|conj)\\b'
'name': 'support.function.builtin.yorick'
}
]
| 66418 | 'scopeName': 'source.yorick'
'name': 'Y<NAME>'
'fileTypes': ['i']
'patterns': [
{ # Numeric match ORANGE
'match': '\\b(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))\\b'
'name': 'constant.numeric.yorick' # First rule
},
{ # Numeric match RED
'match': '\\b(avg|rms|min|max|sum|ptp|mnx|mxx|cum|dif|zcen|pcen|uncp|random)\\b'
'name': 'variable.language.yorick' # First rule
},
{ # func + funcname match VIOLET BLUE
'match': '\\b(func)\\s+(\\w+)\\s*\\(.*\\)'
'captures':
'1':
'name': 'keyword.control.yorick'
'2':
'name': 'entity.name.function.yorick'
'name': 'meta.function.yorick'
},
{ # single quote '' rule GREEN
'begin': '\''
'end': '\''
'name': 'string.quoted.single.yorick'
},
{ # double quote "" rule
'begin': '\"'
'end': '\"'
'name': 'string.quoted.single.yorick'
},
{ # /* */ comments rule GREEN
'begin': '/\\*'
'beginCaptures':
'0':
'name': 'string.triple.comment.begin.yorick'
'end': '\\*/'
'endCaptures':
'0':
'name': 'string.triple.comment.end.yorick'
'name': 'string.triple.comment.yorick'
},
{ # modifiers rule VIOLET
'match': '\\b(pause|roll|palette|plg|plmesh|fma|limits| range| logxy| window|winkill| animate| plm|plc|plf| plv| pli| pldj| plt|allof|anyof|noneof|nallof|where|where2|transpose|interp|integ|print|info|dimsof|orgsof|numberof|typeof|structof|is_array|is_func|is_void|is_range|is_stream|am_subroutine|array|span|span1|grow|median|sort|extern|local|if|else|while|do|write|swrite|read|sread|return|continue)\\b'
'name': 'storage.modifier.yorick'
},
{ #
'begin': '//'
'beginCaptures':
'0':
'name': 'punctuation.definition.comment.yorick'
'end': '\\n'
'name': 'comment.line.double-slash.yorick'
'patterns': [
{
'include': '#line_continuation_character'
}
]
},
{ # #include, require VIOLET
'match': '\\b(?:(#include)|(include)|(require)|(struct))\\b'
'name': 'keyword.control.include.yorick'
},
{ # RED
'match': '\\b(?:(exit)|(quit)|(error)|(system)|(break))\\b'
'name': 'support.variable.yorick'
},
{
'match': '\\b(?:(str)|(int)|(float)|(double)|(char)|(short)|(complex)|(long)|sin|cos|tan|asin|acos|atan|exp|log|log10|asinh|acosh|atanh|sinh|cosh|tanh|sech|csch|abs|sign|floor|ceil|conj)\\b'
'name': 'support.function.builtin.yorick'
}
]
| true | 'scopeName': 'source.yorick'
'name': 'YPI:NAME:<NAME>END_PI'
'fileTypes': ['i']
'patterns': [
{ # Numeric match ORANGE
'match': '\\b(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))\\b'
'name': 'constant.numeric.yorick' # First rule
},
{ # Numeric match RED
'match': '\\b(avg|rms|min|max|sum|ptp|mnx|mxx|cum|dif|zcen|pcen|uncp|random)\\b'
'name': 'variable.language.yorick' # First rule
},
{ # func + funcname match VIOLET BLUE
'match': '\\b(func)\\s+(\\w+)\\s*\\(.*\\)'
'captures':
'1':
'name': 'keyword.control.yorick'
'2':
'name': 'entity.name.function.yorick'
'name': 'meta.function.yorick'
},
{ # single quote '' rule GREEN
'begin': '\''
'end': '\''
'name': 'string.quoted.single.yorick'
},
{ # double quote "" rule
'begin': '\"'
'end': '\"'
'name': 'string.quoted.single.yorick'
},
{ # /* */ comments rule GREEN
'begin': '/\\*'
'beginCaptures':
'0':
'name': 'string.triple.comment.begin.yorick'
'end': '\\*/'
'endCaptures':
'0':
'name': 'string.triple.comment.end.yorick'
'name': 'string.triple.comment.yorick'
},
{ # modifiers rule VIOLET
'match': '\\b(pause|roll|palette|plg|plmesh|fma|limits| range| logxy| window|winkill| animate| plm|plc|plf| plv| pli| pldj| plt|allof|anyof|noneof|nallof|where|where2|transpose|interp|integ|print|info|dimsof|orgsof|numberof|typeof|structof|is_array|is_func|is_void|is_range|is_stream|am_subroutine|array|span|span1|grow|median|sort|extern|local|if|else|while|do|write|swrite|read|sread|return|continue)\\b'
'name': 'storage.modifier.yorick'
},
{ #
'begin': '//'
'beginCaptures':
'0':
'name': 'punctuation.definition.comment.yorick'
'end': '\\n'
'name': 'comment.line.double-slash.yorick'
'patterns': [
{
'include': '#line_continuation_character'
}
]
},
{ # #include, require VIOLET
'match': '\\b(?:(#include)|(include)|(require)|(struct))\\b'
'name': 'keyword.control.include.yorick'
},
{ # RED
'match': '\\b(?:(exit)|(quit)|(error)|(system)|(break))\\b'
'name': 'support.variable.yorick'
},
{
'match': '\\b(?:(str)|(int)|(float)|(double)|(char)|(short)|(complex)|(long)|sin|cos|tan|asin|acos|atan|exp|log|log10|asinh|acosh|atanh|sinh|cosh|tanh|sech|csch|abs|sign|floor|ceil|conj)\\b'
'name': 'support.function.builtin.yorick'
}
]
|
[
{
"context": " REDIS:\n HOST: process.env.DB_REDIS_HOST or '127.0.0.1'\n PORT: process.env.DB_REDIS_PORT or 6379\n ",
"end": 276,
"score": 0.9997556209564209,
"start": 267,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": "IX: 'carbon:'\n EXPRESS:\n SESSION:\n... | config.coffee | mauriciodelrio/carbon | 0 | require('./_env') if require('fs').existsSync './_env.coffee'
CONFIG =
NAME: 'Carbon'
URL: process.env.URL or ''
STATIC_URL: process.env.STATIC_URL or '' # do not include ending slash
ROOT: __dirname
DB:
REDIS:
HOST: process.env.DB_REDIS_HOST or '127.0.0.1'
PORT: process.env.DB_REDIS_PORT or 6379
USER: process.env.DB_REDIS_USER or ''
PASSWORD: process.env.DB_REDIS_PASSWORD or ''
URL: process.env.REDIS_URL or ''
PREFIX: 'carbon:'
EXPRESS:
SESSION:
KEY: 'carbon.s'
SECRET: '7s0ARiQ0kh7U8kYlwTcOBLyNtQHoUVkO740yrjB5I1gHxarMHqWD2dPesMaJ'
MAIL:
SENDER_ADDRESS: 'Carbon <noreply@carbon.cl>'
TEMPLATES:
'bienvenida':
subject: 'Bienvenid@ a Carbon!'
text: "Hola {{name}},\n\nEsta es tu primera vez en Carbon, gracias por ser parte de nuestro servicio"
SIGNATURE: "\n\n--\nSaludos\nEl Equipo de Carbon\nhttps://carbon.cl/\n"
exports.CONFIG = CONFIG | 115394 | require('./_env') if require('fs').existsSync './_env.coffee'
CONFIG =
NAME: 'Carbon'
URL: process.env.URL or ''
STATIC_URL: process.env.STATIC_URL or '' # do not include ending slash
ROOT: __dirname
DB:
REDIS:
HOST: process.env.DB_REDIS_HOST or '127.0.0.1'
PORT: process.env.DB_REDIS_PORT or 6379
USER: process.env.DB_REDIS_USER or ''
PASSWORD: process.env.DB_REDIS_PASSWORD or ''
URL: process.env.REDIS_URL or ''
PREFIX: 'carbon:'
EXPRESS:
SESSION:
KEY: '<KEY>'
SECRET: '<KEY>'
MAIL:
SENDER_ADDRESS: 'Carbon <<EMAIL>>'
TEMPLATES:
'bienvenida':
subject: 'Bienvenid@ a Carbon!'
text: "Hola {{name}},\n\nEsta es tu primera vez en Carbon, gracias por ser parte de nuestro servicio"
SIGNATURE: "\n\n--\nSaludos\nEl Equipo de Carbon\nhttps://carbon.cl/\n"
exports.CONFIG = CONFIG | true | require('./_env') if require('fs').existsSync './_env.coffee'
CONFIG =
NAME: 'Carbon'
URL: process.env.URL or ''
STATIC_URL: process.env.STATIC_URL or '' # do not include ending slash
ROOT: __dirname
DB:
REDIS:
HOST: process.env.DB_REDIS_HOST or '127.0.0.1'
PORT: process.env.DB_REDIS_PORT or 6379
USER: process.env.DB_REDIS_USER or ''
PASSWORD: process.env.DB_REDIS_PASSWORD or ''
URL: process.env.REDIS_URL or ''
PREFIX: 'carbon:'
EXPRESS:
SESSION:
KEY: 'PI:KEY:<KEY>END_PI'
SECRET: 'PI:KEY:<KEY>END_PI'
MAIL:
SENDER_ADDRESS: 'Carbon <PI:EMAIL:<EMAIL>END_PI>'
TEMPLATES:
'bienvenida':
subject: 'Bienvenid@ a Carbon!'
text: "Hola {{name}},\n\nEsta es tu primera vez en Carbon, gracias por ser parte de nuestro servicio"
SIGNATURE: "\n\n--\nSaludos\nEl Equipo de Carbon\nhttps://carbon.cl/\n"
exports.CONFIG = CONFIG |
[
{
"context": "- Learn by Building 14 Apps\"\nEMAIL = \"your@email.com\"\nPASSWORD = \"p@$$word\"\nDOWNLOAD_DIR ",
"end": 253,
"score": 0.9999175071716309,
"start": 239,
"tag": "EMAIL",
"value": "your@email.com"
},
{
"context": " = \"your@email.com\"\... | course_scraper.coffee | clekstro/fedora_course_scraper | 2 | fs = require('fs')
############# Configure to your heart's content ###########################
FEDORA_SCHOOL_URL = "http://bitfountain.io"
COURSE_TITLE = "The Complete iOS 7 Course - Learn by Building 14 Apps"
EMAIL = "your@email.com"
PASSWORD = "p@$$word"
DOWNLOAD_DIR = "/path/to/download/directory/#{COURSE_TITLE}"
DOWNLOADED_FILES = fs.list(DOWNLOAD_DIR).slice(2)
############################################################################
casper = require('casper').create(
waitTimeout: 1000
pageSettings:
userAgent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.10 (KHTML, like Gecko) Chrome/23.0.1262.0 Safari/537.10"
loadImages: false
webSecurityEnabled: no
loadPlugins: false
logLevel: "debug"
)
x = require('casper').selectXPath
lessonPages = []
lessonPageUrl = ''
videoLlink = ''
videoTitle = ''
videoIndex = 0
index = ''
casper.start FEDORA_SCHOOL_URL, ->
@echo "Visiting site"
casper.then ->
casper.waitForText('Login', ->
casper.click(x('//*[text()="Login"]'))
)
casper.then ->
@echo "Logging in..."
@fill('form#target', { email: EMAIL, pw: PASSWORD }, true)
casper.then ->
@echo "Accessing course #{COURSE_TITLE}"
casper.click(x("//*[text()='#{COURSE_TITLE}']"))
casper.then ->
fs.makeDirectory DOWNLOAD_DIR unless fs.exists(DOWNLOAD_DIR)
casper.then ->
@echo "Finding lessons..."
lessonPages = @evaluate ->
lessons = __utils__.findAll('tr.lecture_tr')
Array.prototype.map.call(lessons, (lesson) ->
return lesson.getAttribute('onclick').match(/(http\:\/\/[\w+./-]+)/)[0]
)
casper.then ->
casper.eachThen(lessonPages, (page) ->
index = ("000" + (videoIndex += 1)).substr(-3,3)
alreadyDownloaded = ->
Array.prototype.some.call(DOWNLOADED_FILES, (file) ->
return file.slice(0,3) == index
)
if alreadyDownloaded()
@echo "Skipping video #{index}"
else
casper.thenOpen(page.data, ->
videoLink = @evaluate ->
return __utils__.findOne('div.well a').getAttribute('href')
videoTitle = @evaluate ->
return __utils__.findOne('#lecture_heading').textContent.slice(2)
path = "#{DOWNLOAD_DIR}/#{index}_#{videoTitle}.mp4"
@echo "Downloading to #{path}..."
@download(videoLink, path)
)
)
casper.run ->
@exit()
| 144091 | fs = require('fs')
############# Configure to your heart's content ###########################
FEDORA_SCHOOL_URL = "http://bitfountain.io"
COURSE_TITLE = "The Complete iOS 7 Course - Learn by Building 14 Apps"
EMAIL = "<EMAIL>"
PASSWORD = "<PASSWORD>"
DOWNLOAD_DIR = "/path/to/download/directory/#{COURSE_TITLE}"
DOWNLOADED_FILES = fs.list(DOWNLOAD_DIR).slice(2)
############################################################################
casper = require('casper').create(
waitTimeout: 1000
pageSettings:
userAgent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.10 (KHTML, like Gecko) Chrome/23.0.1262.0 Safari/537.10"
loadImages: false
webSecurityEnabled: no
loadPlugins: false
logLevel: "debug"
)
x = require('casper').selectXPath
lessonPages = []
lessonPageUrl = ''
videoLlink = ''
videoTitle = ''
videoIndex = 0
index = ''
casper.start FEDORA_SCHOOL_URL, ->
@echo "Visiting site"
casper.then ->
casper.waitForText('Login', ->
casper.click(x('//*[text()="Login"]'))
)
casper.then ->
@echo "Logging in..."
@fill('form#target', { email: EMAIL, pw: PASSWORD }, true)
casper.then ->
@echo "Accessing course #{COURSE_TITLE}"
casper.click(x("//*[text()='#{COURSE_TITLE}']"))
casper.then ->
fs.makeDirectory DOWNLOAD_DIR unless fs.exists(DOWNLOAD_DIR)
casper.then ->
@echo "Finding lessons..."
lessonPages = @evaluate ->
lessons = __utils__.findAll('tr.lecture_tr')
Array.prototype.map.call(lessons, (lesson) ->
return lesson.getAttribute('onclick').match(/(http\:\/\/[\w+./-]+)/)[0]
)
casper.then ->
casper.eachThen(lessonPages, (page) ->
index = ("000" + (videoIndex += 1)).substr(-3,3)
alreadyDownloaded = ->
Array.prototype.some.call(DOWNLOADED_FILES, (file) ->
return file.slice(0,3) == index
)
if alreadyDownloaded()
@echo "Skipping video #{index}"
else
casper.thenOpen(page.data, ->
videoLink = @evaluate ->
return __utils__.findOne('div.well a').getAttribute('href')
videoTitle = @evaluate ->
return __utils__.findOne('#lecture_heading').textContent.slice(2)
path = "#{DOWNLOAD_DIR}/#{index}_#{videoTitle}.mp4"
@echo "Downloading to #{path}..."
@download(videoLink, path)
)
)
casper.run ->
@exit()
| true | fs = require('fs')
############# Configure to your heart's content ###########################
FEDORA_SCHOOL_URL = "http://bitfountain.io"
COURSE_TITLE = "The Complete iOS 7 Course - Learn by Building 14 Apps"
EMAIL = "PI:EMAIL:<EMAIL>END_PI"
PASSWORD = "PI:PASSWORD:<PASSWORD>END_PI"
DOWNLOAD_DIR = "/path/to/download/directory/#{COURSE_TITLE}"
DOWNLOADED_FILES = fs.list(DOWNLOAD_DIR).slice(2)
############################################################################
casper = require('casper').create(
waitTimeout: 1000
pageSettings:
userAgent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.10 (KHTML, like Gecko) Chrome/23.0.1262.0 Safari/537.10"
loadImages: false
webSecurityEnabled: no
loadPlugins: false
logLevel: "debug"
)
x = require('casper').selectXPath
lessonPages = []
lessonPageUrl = ''
videoLlink = ''
videoTitle = ''
videoIndex = 0
index = ''
casper.start FEDORA_SCHOOL_URL, ->
@echo "Visiting site"
casper.then ->
casper.waitForText('Login', ->
casper.click(x('//*[text()="Login"]'))
)
casper.then ->
@echo "Logging in..."
@fill('form#target', { email: EMAIL, pw: PASSWORD }, true)
casper.then ->
@echo "Accessing course #{COURSE_TITLE}"
casper.click(x("//*[text()='#{COURSE_TITLE}']"))
casper.then ->
fs.makeDirectory DOWNLOAD_DIR unless fs.exists(DOWNLOAD_DIR)
casper.then ->
@echo "Finding lessons..."
lessonPages = @evaluate ->
lessons = __utils__.findAll('tr.lecture_tr')
Array.prototype.map.call(lessons, (lesson) ->
return lesson.getAttribute('onclick').match(/(http\:\/\/[\w+./-]+)/)[0]
)
casper.then ->
casper.eachThen(lessonPages, (page) ->
index = ("000" + (videoIndex += 1)).substr(-3,3)
alreadyDownloaded = ->
Array.prototype.some.call(DOWNLOADED_FILES, (file) ->
return file.slice(0,3) == index
)
if alreadyDownloaded()
@echo "Skipping video #{index}"
else
casper.thenOpen(page.data, ->
videoLink = @evaluate ->
return __utils__.findOne('div.well a').getAttribute('href')
videoTitle = @evaluate ->
return __utils__.findOne('#lecture_heading').textContent.slice(2)
path = "#{DOWNLOAD_DIR}/#{index}_#{videoTitle}.mp4"
@echo "Downloading to #{path}..."
@download(videoLink, path)
)
)
casper.run ->
@exit()
|
[
{
"context": "ge:\"Retrieve succeeded\", data:[\n [1, \"TEST1\", \"Nathan Stitt\", \"swell guy\"]\n [2, \"TEST2\", \"Nathan Stitt\", \"",
"end": 133,
"score": 0.9998877048492432,
"start": 121,
"tag": "NAME",
"value": "Nathan Stitt"
},
{
"context": "\", \"Nathan Stitt\", \"swell... | spec/hippo/components/grid/PopoverEditorSpec.coffee | argosity/hippo | 3 | #= require hippo/components/grid
DATA = {total:2, success:true, message:"Retrieve succeeded", data:[
[1, "TEST1", "Nathan Stitt", "swell guy"]
[2, "TEST2", "Nathan Stitt", "Dupe of id #1"]
]}
Model = Hippo.Test.defineModel(
props: {id: 'integer', code: 'string', name: 'string', notes: 'string'}
)
LAST_ROW_SELECTOR = '.grid-body .r:last-child'
ADD_ROW_SELECTOR = 'button.add-row'
describe "Hippo.Components.Grid.PopoverEditor", ->
beforeEach (done) ->
LT.syncRespondWith(DATA)
@query = new Hippo.Models.Query(
src: Model, fields: [ 'id', 'code', 'name', 'notes' ]
)
@query.ensureLoaded().then =>
@grid = LT.renderComponent(LC.Grid, props: {
allowCreate: true, editor: Hippo.Components.Grid.PopoverEditor, query: @query
})
done()
it "edits", (done) ->
_.dom(@grid).qs(LAST_ROW_SELECTOR).click(clientX: 5)
editor = Hippo.Test.Utils.findRenderedComponentWithType(
@grid, Hippo.Components.Grid.PopoverEditor
)
_.dom(editor).qs('.field:nth-of-type(3) input').setValue('BOB')
_.dom(editor).qs('.btn.save').click()
expect( @query.results.rowAt(1)[2] ).toEqual('BOB')
done()
it 'adds row', (done) ->
_.dom(@grid).qs(ADD_ROW_SELECTOR).click()
editor = Hippo.Test.Utils.findRenderedComponentWithType(
@grid, Hippo.Components.Grid.PopoverEditor
)
_.dom(editor).qs('.field:nth-of-type(3) input').setValue('BOB')
_.dom(editor).qs('.btn.save').click()
expect( @query.results.rowAt(0)[2] ).toEqual('BOB')
done()
| 146897 | #= require hippo/components/grid
DATA = {total:2, success:true, message:"Retrieve succeeded", data:[
[1, "TEST1", "<NAME>", "swell guy"]
[2, "TEST2", "<NAME>", "Dupe of id #1"]
]}
Model = Hippo.Test.defineModel(
props: {id: 'integer', code: 'string', name: 'string', notes: 'string'}
)
LAST_ROW_SELECTOR = '.grid-body .r:last-child'
ADD_ROW_SELECTOR = 'button.add-row'
describe "Hippo.Components.Grid.PopoverEditor", ->
beforeEach (done) ->
LT.syncRespondWith(DATA)
@query = new Hippo.Models.Query(
src: Model, fields: [ 'id', 'code', 'name', 'notes' ]
)
@query.ensureLoaded().then =>
@grid = LT.renderComponent(LC.Grid, props: {
allowCreate: true, editor: Hippo.Components.Grid.PopoverEditor, query: @query
})
done()
it "edits", (done) ->
_.dom(@grid).qs(LAST_ROW_SELECTOR).click(clientX: 5)
editor = Hippo.Test.Utils.findRenderedComponentWithType(
@grid, Hippo.Components.Grid.PopoverEditor
)
_.dom(editor).qs('.field:nth-of-type(3) input').setValue('BOB')
_.dom(editor).qs('.btn.save').click()
expect( @query.results.rowAt(1)[2] ).toEqual('BOB')
done()
it 'adds row', (done) ->
_.dom(@grid).qs(ADD_ROW_SELECTOR).click()
editor = Hippo.Test.Utils.findRenderedComponentWithType(
@grid, Hippo.Components.Grid.PopoverEditor
)
_.dom(editor).qs('.field:nth-of-type(3) input').setValue('BOB')
_.dom(editor).qs('.btn.save').click()
expect( @query.results.rowAt(0)[2] ).toEqual('BOB')
done()
| true | #= require hippo/components/grid
DATA = {total:2, success:true, message:"Retrieve succeeded", data:[
[1, "TEST1", "PI:NAME:<NAME>END_PI", "swell guy"]
[2, "TEST2", "PI:NAME:<NAME>END_PI", "Dupe of id #1"]
]}
Model = Hippo.Test.defineModel(
props: {id: 'integer', code: 'string', name: 'string', notes: 'string'}
)
LAST_ROW_SELECTOR = '.grid-body .r:last-child'
ADD_ROW_SELECTOR = 'button.add-row'
describe "Hippo.Components.Grid.PopoverEditor", ->
beforeEach (done) ->
LT.syncRespondWith(DATA)
@query = new Hippo.Models.Query(
src: Model, fields: [ 'id', 'code', 'name', 'notes' ]
)
@query.ensureLoaded().then =>
@grid = LT.renderComponent(LC.Grid, props: {
allowCreate: true, editor: Hippo.Components.Grid.PopoverEditor, query: @query
})
done()
it "edits", (done) ->
_.dom(@grid).qs(LAST_ROW_SELECTOR).click(clientX: 5)
editor = Hippo.Test.Utils.findRenderedComponentWithType(
@grid, Hippo.Components.Grid.PopoverEditor
)
_.dom(editor).qs('.field:nth-of-type(3) input').setValue('BOB')
_.dom(editor).qs('.btn.save').click()
expect( @query.results.rowAt(1)[2] ).toEqual('BOB')
done()
it 'adds row', (done) ->
_.dom(@grid).qs(ADD_ROW_SELECTOR).click()
editor = Hippo.Test.Utils.findRenderedComponentWithType(
@grid, Hippo.Components.Grid.PopoverEditor
)
_.dom(editor).qs('.field:nth-of-type(3) input').setValue('BOB')
_.dom(editor).qs('.btn.save').click()
expect( @query.results.rowAt(0)[2] ).toEqual('BOB')
done()
|
[
{
"context": "finition' };\n# });\n#\n# Copyright (C) 2011-2012 Nikolay Nemshilov\n#\nLovely = ->\n args = A(arguments)\n current",
"end": 372,
"score": 0.9998982548713684,
"start": 355,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | stl/core/src/lovely.coffee | lovely-io/lovely.io-stl | 2 | #
# The top function, handles async modules loading/definition
#
# :js
# Lovely(['module1', 'module2'], function(module1, module2) {
# // do stuff
# });
#
# Modules Definition:
#
# :js
# Lovely('module-name', ['dep1', 'dep2'], function(dep1, dep2) {
# return { module: 'definition' };
# });
#
# Copyright (C) 2011-2012 Nikolay Nemshilov
#
Lovely = ->
args = A(arguments)
current = if isString(args[0]) then args.shift() else null
options = if isObject(args[0]) then args.shift() else {}
modules = if isArray(args[0]) then args.shift() else []
callback = if isFunction(args[0]) then args.shift() else ->
# setting up the options
'hostUrl' of options || (options.hostUrl = Lovely.hostUrl || find_host_url())
'baseUrl' of options || (options.baseUrl = Lovely.baseUrl || options.hostUrl)
'waitSeconds' of options || (options.waitSeconds = Lovely.waitSeconds)
options.hostUrl[options.hostUrl.length - 1] is '/' || (options.hostUrl += '/')
options.baseUrl[options.baseUrl.length - 1] is '/' || (options.baseUrl += '/')
for name, i in modules
if name of Lovely.bundle
modules[i] = "#{name}-#{Lovely.bundle[name]}"
check_modules_load = modules_load_listener_for(modules, callback, current)
unless check_modules_load() # checking maybe they are already loaded
modules_load_listeners.push(check_modules_load)
header = document.getElementsByTagName('head')[0]
# inserting the actual scripts on the page
for module, i in modules
url = (
if module[0] is '.' then options.baseUrl else options.hostUrl
) + module + ".js"
# stripping out the '../' and './' things to get the clean module name
module = modules[i] = modules[i].replace(/^[\.\/]+/, '')
if !(find_module(module) or find_module(module, Lovely.loading)) and module.indexOf('~') is -1
script = document.createElement('script')
script.src = url.replace(/([^:])\/\//g, '$1/')
script.async = true
script.type = "text/javascript"
script.onload = check_all_waiting_loaders
header.appendChild(script)
Lovely.loading[module] = script
return # nothing
# modules load_listeners registery
modules_load_listeners = []
#
# Checks all the awaiting module loaders in the registery
#
check_all_waiting_loaders = ->
setTimeout ->
clean_list = []
for listener, i in modules_load_listeners
unless listener() # if not yet loaded
clean_list.push(listener)
# if some modules were loaded, then check the rest of them again
if clean_list.length != modules_load_listeners.length
modules_load_listeners = clean_list
check_all_waiting_loaders()
return # nothing
, 0 # using an async call to let the script run
#
# Builds an event listener that checks if the modules are
# loaded and if so then calls the callback
#
# @param {Array} modules list
# @param {Function} callback
# @param {String} currently awaiting module name
# @return {Function} listener
#
modules_load_listener_for = (modules, callback, name)->
->
packages=[]
for module in modules
if (module = find_module(module))
packages.push(module)
else
return false # some modules are not loaded yet
# registering the current module if needed
if (result = callback.apply(global, packages)) && name
# saving the module with the version
Lovely.modules[name] = result
delete(Lovely.loading[name])
check_all_waiting_loaders() # double checking in case of local modules
return true # successfully loaded everything
#
# Searches for an already loaded module
#
# @param {String} full module name (including the version)
# @param {Object} modules registery
# @param {Object} matching module
#
find_module = (module, registry)->
registry = registry || Lovely.modules
module = module.replace(/~/g, '')
version = (module.match(/\-\d+\.\d+\.\d+.*$/) || [''])[0]
name = module.substr(0, module.length - version.length)
version = version.substr(1)
unless module = registry[module]
versions = [] # tring to find the latest version manually
for key of registry
if (match = key.match(/^(.+?)-(\d+\.\d+\.\d+.*?)$/))
if match[1] is name
versions.push(key)
module = registry[versions.sort()[versions.length - 1]]
module
#
# Searches for the Lovely hosting url from the scripts 'src' attribute
#
# @return {String} location
#
find_host_url = ->
if global.document
scripts = document.getElementsByTagName('script')
re = /^(.*?\/?)core(-.+)?\.js/
for script in scripts
if (match = (script.getAttribute('src') || '').match(re))
return Lovely.hostUrl = match[1]
Lovely.hostUrl
| 95356 | #
# The top function, handles async modules loading/definition
#
# :js
# Lovely(['module1', 'module2'], function(module1, module2) {
# // do stuff
# });
#
# Modules Definition:
#
# :js
# Lovely('module-name', ['dep1', 'dep2'], function(dep1, dep2) {
# return { module: 'definition' };
# });
#
# Copyright (C) 2011-2012 <NAME>
#
Lovely = ->
args = A(arguments)
current = if isString(args[0]) then args.shift() else null
options = if isObject(args[0]) then args.shift() else {}
modules = if isArray(args[0]) then args.shift() else []
callback = if isFunction(args[0]) then args.shift() else ->
# setting up the options
'hostUrl' of options || (options.hostUrl = Lovely.hostUrl || find_host_url())
'baseUrl' of options || (options.baseUrl = Lovely.baseUrl || options.hostUrl)
'waitSeconds' of options || (options.waitSeconds = Lovely.waitSeconds)
options.hostUrl[options.hostUrl.length - 1] is '/' || (options.hostUrl += '/')
options.baseUrl[options.baseUrl.length - 1] is '/' || (options.baseUrl += '/')
for name, i in modules
if name of Lovely.bundle
modules[i] = "#{name}-#{Lovely.bundle[name]}"
check_modules_load = modules_load_listener_for(modules, callback, current)
unless check_modules_load() # checking maybe they are already loaded
modules_load_listeners.push(check_modules_load)
header = document.getElementsByTagName('head')[0]
# inserting the actual scripts on the page
for module, i in modules
url = (
if module[0] is '.' then options.baseUrl else options.hostUrl
) + module + ".js"
# stripping out the '../' and './' things to get the clean module name
module = modules[i] = modules[i].replace(/^[\.\/]+/, '')
if !(find_module(module) or find_module(module, Lovely.loading)) and module.indexOf('~') is -1
script = document.createElement('script')
script.src = url.replace(/([^:])\/\//g, '$1/')
script.async = true
script.type = "text/javascript"
script.onload = check_all_waiting_loaders
header.appendChild(script)
Lovely.loading[module] = script
return # nothing
# modules load_listeners registery
modules_load_listeners = []
#
# Checks all the awaiting module loaders in the registery
#
check_all_waiting_loaders = ->
setTimeout ->
clean_list = []
for listener, i in modules_load_listeners
unless listener() # if not yet loaded
clean_list.push(listener)
# if some modules were loaded, then check the rest of them again
if clean_list.length != modules_load_listeners.length
modules_load_listeners = clean_list
check_all_waiting_loaders()
return # nothing
, 0 # using an async call to let the script run
#
# Builds an event listener that checks if the modules are
# loaded and if so then calls the callback
#
# @param {Array} modules list
# @param {Function} callback
# @param {String} currently awaiting module name
# @return {Function} listener
#
modules_load_listener_for = (modules, callback, name)->
->
packages=[]
for module in modules
if (module = find_module(module))
packages.push(module)
else
return false # some modules are not loaded yet
# registering the current module if needed
if (result = callback.apply(global, packages)) && name
# saving the module with the version
Lovely.modules[name] = result
delete(Lovely.loading[name])
check_all_waiting_loaders() # double checking in case of local modules
return true # successfully loaded everything
#
# Searches for an already loaded module
#
# @param {String} full module name (including the version)
# @param {Object} modules registery
# @param {Object} matching module
#
find_module = (module, registry)->
registry = registry || Lovely.modules
module = module.replace(/~/g, '')
version = (module.match(/\-\d+\.\d+\.\d+.*$/) || [''])[0]
name = module.substr(0, module.length - version.length)
version = version.substr(1)
unless module = registry[module]
versions = [] # tring to find the latest version manually
for key of registry
if (match = key.match(/^(.+?)-(\d+\.\d+\.\d+.*?)$/))
if match[1] is name
versions.push(key)
module = registry[versions.sort()[versions.length - 1]]
module
#
# Searches for the Lovely hosting url from the scripts 'src' attribute
#
# @return {String} location
#
find_host_url = ->
if global.document
scripts = document.getElementsByTagName('script')
re = /^(.*?\/?)core(-.+)?\.js/
for script in scripts
if (match = (script.getAttribute('src') || '').match(re))
return Lovely.hostUrl = match[1]
Lovely.hostUrl
| true | #
# The top function, handles async modules loading/definition
#
# :js
# Lovely(['module1', 'module2'], function(module1, module2) {
# // do stuff
# });
#
# Modules Definition:
#
# :js
# Lovely('module-name', ['dep1', 'dep2'], function(dep1, dep2) {
# return { module: 'definition' };
# });
#
# Copyright (C) 2011-2012 PI:NAME:<NAME>END_PI
#
Lovely = ->
args = A(arguments)
current = if isString(args[0]) then args.shift() else null
options = if isObject(args[0]) then args.shift() else {}
modules = if isArray(args[0]) then args.shift() else []
callback = if isFunction(args[0]) then args.shift() else ->
# setting up the options
'hostUrl' of options || (options.hostUrl = Lovely.hostUrl || find_host_url())
'baseUrl' of options || (options.baseUrl = Lovely.baseUrl || options.hostUrl)
'waitSeconds' of options || (options.waitSeconds = Lovely.waitSeconds)
options.hostUrl[options.hostUrl.length - 1] is '/' || (options.hostUrl += '/')
options.baseUrl[options.baseUrl.length - 1] is '/' || (options.baseUrl += '/')
for name, i in modules
if name of Lovely.bundle
modules[i] = "#{name}-#{Lovely.bundle[name]}"
check_modules_load = modules_load_listener_for(modules, callback, current)
unless check_modules_load() # checking maybe they are already loaded
modules_load_listeners.push(check_modules_load)
header = document.getElementsByTagName('head')[0]
# inserting the actual scripts on the page
for module, i in modules
url = (
if module[0] is '.' then options.baseUrl else options.hostUrl
) + module + ".js"
# stripping out the '../' and './' things to get the clean module name
module = modules[i] = modules[i].replace(/^[\.\/]+/, '')
if !(find_module(module) or find_module(module, Lovely.loading)) and module.indexOf('~') is -1
script = document.createElement('script')
script.src = url.replace(/([^:])\/\//g, '$1/')
script.async = true
script.type = "text/javascript"
script.onload = check_all_waiting_loaders
header.appendChild(script)
Lovely.loading[module] = script
return # nothing
# modules load_listeners registery
modules_load_listeners = []
#
# Checks all the awaiting module loaders in the registery
#
check_all_waiting_loaders = ->
setTimeout ->
clean_list = []
for listener, i in modules_load_listeners
unless listener() # if not yet loaded
clean_list.push(listener)
# if some modules were loaded, then check the rest of them again
if clean_list.length != modules_load_listeners.length
modules_load_listeners = clean_list
check_all_waiting_loaders()
return # nothing
, 0 # using an async call to let the script run
#
# Builds an event listener that checks if the modules are
# loaded and if so then calls the callback
#
# @param {Array} modules list
# @param {Function} callback
# @param {String} currently awaiting module name
# @return {Function} listener
#
modules_load_listener_for = (modules, callback, name)->
->
packages=[]
for module in modules
if (module = find_module(module))
packages.push(module)
else
return false # some modules are not loaded yet
# registering the current module if needed
if (result = callback.apply(global, packages)) && name
# saving the module with the version
Lovely.modules[name] = result
delete(Lovely.loading[name])
check_all_waiting_loaders() # double checking in case of local modules
return true # successfully loaded everything
#
# Searches for an already loaded module
#
# @param {String} full module name (including the version)
# @param {Object} modules registery
# @param {Object} matching module
#
find_module = (module, registry)->
registry = registry || Lovely.modules
module = module.replace(/~/g, '')
version = (module.match(/\-\d+\.\d+\.\d+.*$/) || [''])[0]
name = module.substr(0, module.length - version.length)
version = version.substr(1)
unless module = registry[module]
versions = [] # tring to find the latest version manually
for key of registry
if (match = key.match(/^(.+?)-(\d+\.\d+\.\d+.*?)$/))
if match[1] is name
versions.push(key)
module = registry[versions.sort()[versions.length - 1]]
module
#
# Searches for the Lovely hosting url from the scripts 'src' attribute
#
# @return {String} location
#
find_host_url = ->
if global.document
scripts = document.getElementsByTagName('script')
re = /^(.*?\/?)core(-.+)?\.js/
for script in scripts
if (match = (script.getAttribute('src') || '').match(re))
return Lovely.hostUrl = match[1]
Lovely.hostUrl
|
[
{
"context": "al result, true\n # App.Post.exists authorName: \"David\", (error, result) -> assert.equal result, true\n ",
"end": 496,
"score": 0.9991015195846558,
"start": 491,
"tag": "NAME",
"value": "David"
},
{
"context": "al result, true\n # App.Post.exists authorName: \"Ma... | test/cases/model/shared/findersTest.coffee | jivagoalves/tower | 1 | describe "Tower.ModelFinders", ->
beforeEach (done) ->
# @todo I have no idea why adding this makes it work
# (b/c it's also in test/server.coffee beforeEach hook)
if Tower.isServer
Tower.store.clean =>
done()
else
App.Post.store().constructor.clean(done)
#test 'exists', ->
# App.Post.exists 1, (error, result) -> assert.equal result, true
# App.Post.exists "1", (error, result) -> assert.equal result, true
# App.Post.exists authorName: "David", (error, result) -> assert.equal result, true
# App.Post.exists authorName: "Mary", approved: true, (error, result) -> assert.equal result, true
# App.Post.exists 45, (error, result) -> assert.equal result, false
# App.Post.exists (error, result) -> assert.equal result, true
# App.Post.exists null, (error, result) -> assert.equal result, false
describe 'basics', ->
beforeEach (done) ->
App.Post.insert [{rating: 8}, {rating: 10}], done
test 'all', (done) ->
App.Post.all (error, records) =>
assert.equal records.length, 2
done()
test 'first', (done) ->
App.Post.asc("rating").first (error, record) =>
assert.equal record.get('rating'), 8
done()
test 'last', (done) ->
App.Post.asc("rating").last (error, record) =>
assert.equal record.get('rating'), 10
done()
test 'count', (done) ->
App.Post.count (error, count) =>
assert.equal count, 2
done()
test 'exists', (done) ->
App.Post.exists (error, value) =>
assert.equal value, true
done()
describe '$gt', ->
describe 'integer > value (8, 10)', ->
beforeEach (done) ->
App.Post.insert [{rating: 8}, {rating: 10}], =>
done()
test 'where(rating: ">": 10)', (done) ->
App.Post.where(rating: ">": 10).count (error, count) =>
assert.equal count, 0
done()
test 'where(rating: ">": 8)', (done) ->
App.Post.where(rating: ">": 8).count (error, count) =>
assert.equal count, 1
done()
test 'where(rating: ">": 7)', (done) ->
App.Post.where(rating: ">": 7).count (error, count) =>
assert.equal count, 2
done()
describe 'date > value', ->
beforeEach (done) ->
App.Post.insert rating: 1, someDate: new Date, done
test 'where(someDate: ">": Dec 25, 1995)', (done) ->
App.Post.where(someDate: ">": _.toDate("Dec 25, 1995")).count (error, count) =>
assert.equal count, 1
done()
test 'where(createdAt: ">": Dec 25, 1995)', (done) ->
App.Post.where(createdAt: ">": _.toDate("Dec 25, 1995")).count (error, count) =>
assert.equal count, 1
done()
test 'where(createdAt: ">": Dec 25, 2050)', (done) ->
App.Post.where(createdAt: ">": _.toDate("Dec 25, 2050")).count (error, count) =>
assert.equal count, 0
done()
describe '$gte', ->
describe 'integer >= value (8, 10)', ->
beforeEach (done) ->
App.Post.insert [{rating: 8}, {rating: 10}], done
test 'where(rating: ">=": 11)', (done) ->
App.Post.where(rating: ">=": 11).count (error, count) =>
assert.equal count, 0
done()
test 'where(rating: ">=": 10)', (done) ->
App.Post.where(rating: ">=": 10).count (error, count) =>
assert.equal count, 1
done()
test 'where(rating: ">=": 8)', (done) ->
App.Post.where(rating: ">=": 8).count (error, count) =>
assert.equal count, 2
done()
test 'where(rating: ">=": 7)', (done) ->
App.Post.where(rating: ">=": 7).count (error, count) =>
assert.equal count, 2
done()
describe '$lt', ->
describe "integer < value", ->
beforeEach (done) ->
App.Post.insert [{rating: 8}, {rating: 10}], =>
done()
test 'where(rating: "<": 11)', (done) ->
App.Post.where(rating: "<": 11).count (error, count) =>
assert.equal count, 2
done()
test 'where(rating: "<": 10)', (done) ->
App.Post.where(rating: "<": 10).count (error, count) =>
assert.equal count, 1
done()
test 'where(rating: "<": 8)', (done) ->
App.Post.where(rating: "<": 8).count (error, count) =>
assert.equal count, 0
done()
describe 'date < value', ->
beforeEach (done) ->
App.Post.insert rating: 1, someDate: new Date, done
test 'where(someDate: "<": Dec 25, 2050)', (done) ->
App.Post.where(someDate: "<": _.toDate("Dec 25, 2050")).count (error, count) =>
assert.equal count, 1
done()
test 'where(createdAt: "<": Dec 25, 2050)', (done) ->
App.Post.where(createdAt: "<": _.toDate("Dec 25, 2050")).count (error, count) =>
assert.equal count, 1
done()
test 'where(createdAt: "<": Dec 25, 1995)', (done) ->
App.Post.where(createdAt: "<": _.toDate("Dec 25, 1995")).count (error, count) =>
assert.equal count, 0
done()
describe '$lte', ->
describe 'integer <= value', ->
beforeEach (done) ->
attributes = []
attributes.push rating: 8
attributes.push rating: 10
App.Post.insert(attributes, done)
test 'where(rating: "<=": 11)', (done) ->
App.Post.where(rating: "<=": 11).count (error, count) =>
assert.equal count, 2
done()
test 'where(rating: "<=": 10)', (done) ->
App.Post.where(rating: "<=": 10).count (error, count) =>
assert.equal count, 2
done()
test 'where(rating: "<=": 8)', (done) ->
App.Post.where(rating: "<=": 8).count (error, count) =>
assert.equal count, 1
done()
test 'where(rating: "<=": 7)', (done) ->
App.Post.where(rating: "<=": 7).count (error, count) =>
assert.equal count, 0
done()
test 'date <= value', ->
beforeEach (done) ->
App.Post.insert(rating: 1, someDate: new Date, done)
test 'where(someDate: "<=": Dec 25, 2050)', (done) ->
App.Post.where(someDate: "<=": _.toDate("Dec 25, 2050")).count (error, count) =>
assert.equal count, 1
done()
test 'where(createdAt: "<=": Dec 25, 2050)', (done) ->
App.Post.where(createdAt: "<=": _.toDate("Dec 25, 2050")).count (error, count) =>
assert.equal count, 1
done()
test 'where(createdAt: "<=": Dec 25, 1995)', (done) ->
App.Post.where(createdAt: "<=": _.toDate("Dec 25, 1995")).count (error, count) =>
assert.equal count, 0
done()
describe '$match', ->
describe '$notMatch', ->
describe '$in', ->
describe 'string in array', ->
beforeEach (done) ->
attributes = []
attributes.push rating: 8, tags: ["ruby", "javascript"]
attributes.push rating: 9, tags: ["nodejs", "javascript"]
App.Post.insert(attributes, done)
test 'where(tags: "$in": ["javascript"])', (done) ->
App.Post.where(tags: "$in": ["javascript"]).count (error, count) =>
assert.equal count, 2
done()
test 'where(tags: "$in": ["asp"])', (done) ->
App.Post.where(tags: "$in": ["asp"]).count (error, count) =>
assert.equal count, 0
done()
test 'where(tags: "$in": ["nodejs"])', (done) ->
App.Post.where(tags: "$in": ["nodejs"]).count (error, count) =>
assert.equal count, 1
done()
describe '$any', ->
describe 'string in array', ->
beforeEach (done) ->
attributes = []
attributes.push rating: 8, tags: ["ruby", "javascript"], slug: 'ruby-javascript'
attributes.push rating: 9, tags: ["nodejs", "javascript"], slug: 'nodejs-javascript'
App.Post.insert(attributes, done)
test 'anyIn(tags: ["ruby-javascript", "c++"]', (done) ->
App.Post.anyIn(slug: ["ruby-javascript", "c++"]).count (err, count) =>
assert.equal count, 1
done()
test 'anyIn(tags: ["javascript"])', (done) ->
App.Post.anyIn(tags: ["javascript"]).count (error, count) =>
assert.equal count, 2
done()
test 'anyIn(tags: ["asp"])', (done) ->
App.Post.anyIn(tags: ["asp"]).count (error, count) =>
assert.equal count, 0
done()
test 'anyIn(tags: ["nodejs"])', (done) ->
App.Post.anyIn(tags: ["nodejs"]).count (error, count) =>
assert.equal count, 1
done()
test 'anyIn(tags: ["nodejs", "ruby"])', (done) ->
App.Post.anyIn(tags: ["nodejs", "ruby"]).count (error, count) =>
assert.equal count, 2
done()
test 'anyIn(tags: ["nodejs", "asp"])', (done) ->
App.Post.anyIn(tags: ["nodejs", "asp"]).count (error, count) =>
assert.equal count, 1
done()
describe '$nin', ->
beforeEach (done) ->
attributes = []
attributes.push rating: 8, tags: ["ruby", "javascript"]
attributes.push rating: 9, tags: ["nodejs", "javascript"]
App.Post.insert(attributes, done)
test 'notIn(tags: ["javascript"])', (done) ->
App.Post.notIn(tags: ["javascript"]).count (error, count) =>
assert.equal count, 0
done()
test 'notIn(tags: ["asp"])', (done) ->
App.Post.notIn(tags: ["asp"]).count (error, count) =>
assert.equal count, 2
done()
test 'notIn(tags: ["nodejs"])', (done) ->
App.Post.notIn(tags: ["nodejs"]).count (error, count) =>
assert.equal count, 1
done()
describe '$all', ->
beforeEach (done) ->
attributes = []
attributes.push rating: 8, tags: ["ruby", "javascript"]
attributes.push rating: 9, tags: ["nodejs", "javascript"]
App.Post.insert(attributes, done)
describe 'string in array', ->
test 'allIn(tags: ["javascript"])', (done) ->
App.Post.allIn(tags: ["javascript"]).count (error, count) =>
assert.equal count, 2
done()
test 'allIn(tags: ["asp"])', (done) ->
App.Post.allIn(tags: ["asp"]).count (error, count) =>
assert.equal count, 0
done()
test 'allIn(tags: ["nodejs"])', (done) ->
App.Post.allIn(tags: ["nodejs"]).count (error, count) =>
assert.equal count, 1
done()
test 'allIn(tags: ["nodejs", "javascript"])', (done) ->
App.Post.allIn(tags: ["nodejs", "javascript"]).count (error, count) =>
assert.equal count, 1
done()
test 'allIn(tags: ["nodejs", "ruby"])', (done) ->
App.Post.allIn(tags: ["nodejs", "ruby"]).count (error, count) =>
assert.equal count, 0
done()
describe '$null', ->
describe '$notNull', ->
describe '$eq', ->
describe 'string', ->
beforeEach (done) ->
attributes = []
attributes.push title: "Ruby", rating: 8
attributes.push title: "JavaScript", rating: 10
App.Post.insert(attributes, done)
test 'where(title: $eq: "Ruby")', (done) ->
App.Post.where(title: $eq: "Ruby").count (error, count) =>
assert.equal count, 1
done()
test 'where(title: /R/)', (done) ->
App.Post.where(title: /R/).count (error, count) =>
assert.equal count, 1
done()
test 'where(title: /[Rr]/)', (done) ->
App.Post.where(title: /[Rr]/).count (error, count) =>
assert.equal count, 2
done()
describe '$neq', ->
describe 'pagination', ->
beforeEach (done) ->
Tower.ModelCursor::defaultLimit = 5
callbacks = []
i = 0
while i < 18
i++
do (i) ->
callbacks.push (next) =>
title = (new Array(i + 1)).join("a")
App.Post.insert title: title, rating: 8, (error, post) =>
next()
_.series callbacks, done
afterEach ->
Tower.ModelCursor::defaultLimit = 20
test 'limit(1)', (done) ->
App.Post.limit(1).all (error, posts) =>
assert.equal posts.length, 1
done()
test 'limit(0) should not do anything', (done) ->
App.Post.limit(0).all (error, posts) =>
assert.equal posts.length, 18
done()
test 'page(2) middle of set', (done) ->
App.Post.page(2).asc("title").all (error, posts) =>
assert.equal posts.length, 5
assert.equal posts[0].get('title').length, 6
assert.equal posts[4].get('title').length, 10
done()
test 'page(4) end of set', (done) ->
App.Post.page(4).asc("title").all (error, posts) =>
assert.equal posts.length, 3
done()
test 'page(20) if page is greater than count, should return 0', (done) ->
App.Post.page(20).all (error, posts) =>
assert.equal posts.length, 0
done()
test 'desc', (done) ->
App.Post.page(2).desc('title').all (error, posts) =>
assert.equal posts[0].get('title').length, 13
done()
test 'asc', (done) ->
App.Post.page(2).asc('title').all (error, posts) =>
assert.equal posts[0].get('title').length, 6
done()
# @todo
if Tower.isServer && Tower.store.className() == 'Memory'
test 'returns array/cursor', ->
posts = App.Post.all()#page(2).asc('title').all()
assert.equal posts.length, 18
assert.isTrue posts.isCursor, 'posts.isCursor'
# assert iterate
for post, index in posts
assert.ok post instanceof Tower.Model
assert.equal index, 18
| 110357 | describe "Tower.ModelFinders", ->
beforeEach (done) ->
# @todo I have no idea why adding this makes it work
# (b/c it's also in test/server.coffee beforeEach hook)
if Tower.isServer
Tower.store.clean =>
done()
else
App.Post.store().constructor.clean(done)
#test 'exists', ->
# App.Post.exists 1, (error, result) -> assert.equal result, true
# App.Post.exists "1", (error, result) -> assert.equal result, true
# App.Post.exists authorName: "<NAME>", (error, result) -> assert.equal result, true
# App.Post.exists authorName: "<NAME>", approved: true, (error, result) -> assert.equal result, true
# App.Post.exists 45, (error, result) -> assert.equal result, false
# App.Post.exists (error, result) -> assert.equal result, true
# App.Post.exists null, (error, result) -> assert.equal result, false
describe 'basics', ->
beforeEach (done) ->
App.Post.insert [{rating: 8}, {rating: 10}], done
test 'all', (done) ->
App.Post.all (error, records) =>
assert.equal records.length, 2
done()
test 'first', (done) ->
App.Post.asc("rating").first (error, record) =>
assert.equal record.get('rating'), 8
done()
test 'last', (done) ->
App.Post.asc("rating").last (error, record) =>
assert.equal record.get('rating'), 10
done()
test 'count', (done) ->
App.Post.count (error, count) =>
assert.equal count, 2
done()
test 'exists', (done) ->
App.Post.exists (error, value) =>
assert.equal value, true
done()
describe '$gt', ->
describe 'integer > value (8, 10)', ->
beforeEach (done) ->
App.Post.insert [{rating: 8}, {rating: 10}], =>
done()
test 'where(rating: ">": 10)', (done) ->
App.Post.where(rating: ">": 10).count (error, count) =>
assert.equal count, 0
done()
test 'where(rating: ">": 8)', (done) ->
App.Post.where(rating: ">": 8).count (error, count) =>
assert.equal count, 1
done()
test 'where(rating: ">": 7)', (done) ->
App.Post.where(rating: ">": 7).count (error, count) =>
assert.equal count, 2
done()
describe 'date > value', ->
beforeEach (done) ->
App.Post.insert rating: 1, someDate: new Date, done
test 'where(someDate: ">": Dec 25, 1995)', (done) ->
App.Post.where(someDate: ">": _.toDate("Dec 25, 1995")).count (error, count) =>
assert.equal count, 1
done()
test 'where(createdAt: ">": Dec 25, 1995)', (done) ->
App.Post.where(createdAt: ">": _.toDate("Dec 25, 1995")).count (error, count) =>
assert.equal count, 1
done()
test 'where(createdAt: ">": Dec 25, 2050)', (done) ->
App.Post.where(createdAt: ">": _.toDate("Dec 25, 2050")).count (error, count) =>
assert.equal count, 0
done()
describe '$gte', ->
describe 'integer >= value (8, 10)', ->
beforeEach (done) ->
App.Post.insert [{rating: 8}, {rating: 10}], done
test 'where(rating: ">=": 11)', (done) ->
App.Post.where(rating: ">=": 11).count (error, count) =>
assert.equal count, 0
done()
test 'where(rating: ">=": 10)', (done) ->
App.Post.where(rating: ">=": 10).count (error, count) =>
assert.equal count, 1
done()
test 'where(rating: ">=": 8)', (done) ->
App.Post.where(rating: ">=": 8).count (error, count) =>
assert.equal count, 2
done()
test 'where(rating: ">=": 7)', (done) ->
App.Post.where(rating: ">=": 7).count (error, count) =>
assert.equal count, 2
done()
describe '$lt', ->
describe "integer < value", ->
beforeEach (done) ->
App.Post.insert [{rating: 8}, {rating: 10}], =>
done()
test 'where(rating: "<": 11)', (done) ->
App.Post.where(rating: "<": 11).count (error, count) =>
assert.equal count, 2
done()
test 'where(rating: "<": 10)', (done) ->
App.Post.where(rating: "<": 10).count (error, count) =>
assert.equal count, 1
done()
test 'where(rating: "<": 8)', (done) ->
App.Post.where(rating: "<": 8).count (error, count) =>
assert.equal count, 0
done()
describe 'date < value', ->
beforeEach (done) ->
App.Post.insert rating: 1, someDate: new Date, done
test 'where(someDate: "<": Dec 25, 2050)', (done) ->
App.Post.where(someDate: "<": _.toDate("Dec 25, 2050")).count (error, count) =>
assert.equal count, 1
done()
test 'where(createdAt: "<": Dec 25, 2050)', (done) ->
App.Post.where(createdAt: "<": _.toDate("Dec 25, 2050")).count (error, count) =>
assert.equal count, 1
done()
test 'where(createdAt: "<": Dec 25, 1995)', (done) ->
App.Post.where(createdAt: "<": _.toDate("Dec 25, 1995")).count (error, count) =>
assert.equal count, 0
done()
describe '$lte', ->
describe 'integer <= value', ->
beforeEach (done) ->
attributes = []
attributes.push rating: 8
attributes.push rating: 10
App.Post.insert(attributes, done)
test 'where(rating: "<=": 11)', (done) ->
App.Post.where(rating: "<=": 11).count (error, count) =>
assert.equal count, 2
done()
test 'where(rating: "<=": 10)', (done) ->
App.Post.where(rating: "<=": 10).count (error, count) =>
assert.equal count, 2
done()
test 'where(rating: "<=": 8)', (done) ->
App.Post.where(rating: "<=": 8).count (error, count) =>
assert.equal count, 1
done()
test 'where(rating: "<=": 7)', (done) ->
App.Post.where(rating: "<=": 7).count (error, count) =>
assert.equal count, 0
done()
test 'date <= value', ->
beforeEach (done) ->
App.Post.insert(rating: 1, someDate: new Date, done)
test 'where(someDate: "<=": Dec 25, 2050)', (done) ->
App.Post.where(someDate: "<=": _.toDate("Dec 25, 2050")).count (error, count) =>
assert.equal count, 1
done()
test 'where(createdAt: "<=": Dec 25, 2050)', (done) ->
App.Post.where(createdAt: "<=": _.toDate("Dec 25, 2050")).count (error, count) =>
assert.equal count, 1
done()
test 'where(createdAt: "<=": Dec 25, 1995)', (done) ->
App.Post.where(createdAt: "<=": _.toDate("Dec 25, 1995")).count (error, count) =>
assert.equal count, 0
done()
describe '$match', ->
describe '$notMatch', ->
describe '$in', ->
describe 'string in array', ->
beforeEach (done) ->
attributes = []
attributes.push rating: 8, tags: ["ruby", "javascript"]
attributes.push rating: 9, tags: ["nodejs", "javascript"]
App.Post.insert(attributes, done)
test 'where(tags: "$in": ["javascript"])', (done) ->
App.Post.where(tags: "$in": ["javascript"]).count (error, count) =>
assert.equal count, 2
done()
test 'where(tags: "$in": ["asp"])', (done) ->
App.Post.where(tags: "$in": ["asp"]).count (error, count) =>
assert.equal count, 0
done()
test 'where(tags: "$in": ["nodejs"])', (done) ->
App.Post.where(tags: "$in": ["nodejs"]).count (error, count) =>
assert.equal count, 1
done()
describe '$any', ->
describe 'string in array', ->
beforeEach (done) ->
attributes = []
attributes.push rating: 8, tags: ["ruby", "javascript"], slug: 'ruby-javascript'
attributes.push rating: 9, tags: ["nodejs", "javascript"], slug: 'nodejs-javascript'
App.Post.insert(attributes, done)
test 'anyIn(tags: ["ruby-javascript", "c++"]', (done) ->
App.Post.anyIn(slug: ["ruby-javascript", "c++"]).count (err, count) =>
assert.equal count, 1
done()
test 'anyIn(tags: ["javascript"])', (done) ->
App.Post.anyIn(tags: ["javascript"]).count (error, count) =>
assert.equal count, 2
done()
test 'anyIn(tags: ["asp"])', (done) ->
App.Post.anyIn(tags: ["asp"]).count (error, count) =>
assert.equal count, 0
done()
test 'anyIn(tags: ["nodejs"])', (done) ->
App.Post.anyIn(tags: ["nodejs"]).count (error, count) =>
assert.equal count, 1
done()
test 'anyIn(tags: ["nodejs", "ruby"])', (done) ->
App.Post.anyIn(tags: ["nodejs", "ruby"]).count (error, count) =>
assert.equal count, 2
done()
test 'anyIn(tags: ["nodejs", "asp"])', (done) ->
App.Post.anyIn(tags: ["nodejs", "asp"]).count (error, count) =>
assert.equal count, 1
done()
describe '$nin', ->
beforeEach (done) ->
attributes = []
attributes.push rating: 8, tags: ["ruby", "javascript"]
attributes.push rating: 9, tags: ["nodejs", "javascript"]
App.Post.insert(attributes, done)
test 'notIn(tags: ["javascript"])', (done) ->
App.Post.notIn(tags: ["javascript"]).count (error, count) =>
assert.equal count, 0
done()
test 'notIn(tags: ["asp"])', (done) ->
App.Post.notIn(tags: ["asp"]).count (error, count) =>
assert.equal count, 2
done()
test 'notIn(tags: ["nodejs"])', (done) ->
App.Post.notIn(tags: ["nodejs"]).count (error, count) =>
assert.equal count, 1
done()
describe '$all', ->
beforeEach (done) ->
attributes = []
attributes.push rating: 8, tags: ["ruby", "javascript"]
attributes.push rating: 9, tags: ["nodejs", "javascript"]
App.Post.insert(attributes, done)
describe 'string in array', ->
test 'allIn(tags: ["javascript"])', (done) ->
App.Post.allIn(tags: ["javascript"]).count (error, count) =>
assert.equal count, 2
done()
test 'allIn(tags: ["asp"])', (done) ->
App.Post.allIn(tags: ["asp"]).count (error, count) =>
assert.equal count, 0
done()
test 'allIn(tags: ["nodejs"])', (done) ->
App.Post.allIn(tags: ["nodejs"]).count (error, count) =>
assert.equal count, 1
done()
test 'allIn(tags: ["nodejs", "javascript"])', (done) ->
App.Post.allIn(tags: ["nodejs", "javascript"]).count (error, count) =>
assert.equal count, 1
done()
test 'allIn(tags: ["nodejs", "ruby"])', (done) ->
App.Post.allIn(tags: ["nodejs", "ruby"]).count (error, count) =>
assert.equal count, 0
done()
describe '$null', ->
describe '$notNull', ->
describe '$eq', ->
describe 'string', ->
beforeEach (done) ->
attributes = []
attributes.push title: "Ruby", rating: 8
attributes.push title: "JavaScript", rating: 10
App.Post.insert(attributes, done)
test 'where(title: $eq: "Ruby")', (done) ->
App.Post.where(title: $eq: "Ruby").count (error, count) =>
assert.equal count, 1
done()
test 'where(title: /R/)', (done) ->
App.Post.where(title: /R/).count (error, count) =>
assert.equal count, 1
done()
test 'where(title: /[Rr]/)', (done) ->
App.Post.where(title: /[Rr]/).count (error, count) =>
assert.equal count, 2
done()
describe '$neq', ->
describe 'pagination', ->
beforeEach (done) ->
Tower.ModelCursor::defaultLimit = 5
callbacks = []
i = 0
while i < 18
i++
do (i) ->
callbacks.push (next) =>
title = (new Array(i + 1)).join("a")
App.Post.insert title: title, rating: 8, (error, post) =>
next()
_.series callbacks, done
afterEach ->
Tower.ModelCursor::defaultLimit = 20
test 'limit(1)', (done) ->
App.Post.limit(1).all (error, posts) =>
assert.equal posts.length, 1
done()
test 'limit(0) should not do anything', (done) ->
App.Post.limit(0).all (error, posts) =>
assert.equal posts.length, 18
done()
test 'page(2) middle of set', (done) ->
App.Post.page(2).asc("title").all (error, posts) =>
assert.equal posts.length, 5
assert.equal posts[0].get('title').length, 6
assert.equal posts[4].get('title').length, 10
done()
test 'page(4) end of set', (done) ->
App.Post.page(4).asc("title").all (error, posts) =>
assert.equal posts.length, 3
done()
test 'page(20) if page is greater than count, should return 0', (done) ->
App.Post.page(20).all (error, posts) =>
assert.equal posts.length, 0
done()
test 'desc', (done) ->
App.Post.page(2).desc('title').all (error, posts) =>
assert.equal posts[0].get('title').length, 13
done()
test 'asc', (done) ->
App.Post.page(2).asc('title').all (error, posts) =>
assert.equal posts[0].get('title').length, 6
done()
# @todo
if Tower.isServer && Tower.store.className() == 'Memory'
test 'returns array/cursor', ->
posts = App.Post.all()#page(2).asc('title').all()
assert.equal posts.length, 18
assert.isTrue posts.isCursor, 'posts.isCursor'
# assert iterate
for post, index in posts
assert.ok post instanceof Tower.Model
assert.equal index, 18
| true | describe "Tower.ModelFinders", ->
beforeEach (done) ->
# @todo I have no idea why adding this makes it work
# (b/c it's also in test/server.coffee beforeEach hook)
if Tower.isServer
Tower.store.clean =>
done()
else
App.Post.store().constructor.clean(done)
#test 'exists', ->
# App.Post.exists 1, (error, result) -> assert.equal result, true
# App.Post.exists "1", (error, result) -> assert.equal result, true
# App.Post.exists authorName: "PI:NAME:<NAME>END_PI", (error, result) -> assert.equal result, true
# App.Post.exists authorName: "PI:NAME:<NAME>END_PI", approved: true, (error, result) -> assert.equal result, true
# App.Post.exists 45, (error, result) -> assert.equal result, false
# App.Post.exists (error, result) -> assert.equal result, true
# App.Post.exists null, (error, result) -> assert.equal result, false
describe 'basics', ->
beforeEach (done) ->
App.Post.insert [{rating: 8}, {rating: 10}], done
test 'all', (done) ->
App.Post.all (error, records) =>
assert.equal records.length, 2
done()
test 'first', (done) ->
App.Post.asc("rating").first (error, record) =>
assert.equal record.get('rating'), 8
done()
test 'last', (done) ->
App.Post.asc("rating").last (error, record) =>
assert.equal record.get('rating'), 10
done()
test 'count', (done) ->
App.Post.count (error, count) =>
assert.equal count, 2
done()
test 'exists', (done) ->
App.Post.exists (error, value) =>
assert.equal value, true
done()
describe '$gt', ->
describe 'integer > value (8, 10)', ->
beforeEach (done) ->
App.Post.insert [{rating: 8}, {rating: 10}], =>
done()
test 'where(rating: ">": 10)', (done) ->
App.Post.where(rating: ">": 10).count (error, count) =>
assert.equal count, 0
done()
test 'where(rating: ">": 8)', (done) ->
App.Post.where(rating: ">": 8).count (error, count) =>
assert.equal count, 1
done()
test 'where(rating: ">": 7)', (done) ->
App.Post.where(rating: ">": 7).count (error, count) =>
assert.equal count, 2
done()
describe 'date > value', ->
beforeEach (done) ->
App.Post.insert rating: 1, someDate: new Date, done
test 'where(someDate: ">": Dec 25, 1995)', (done) ->
App.Post.where(someDate: ">": _.toDate("Dec 25, 1995")).count (error, count) =>
assert.equal count, 1
done()
test 'where(createdAt: ">": Dec 25, 1995)', (done) ->
App.Post.where(createdAt: ">": _.toDate("Dec 25, 1995")).count (error, count) =>
assert.equal count, 1
done()
test 'where(createdAt: ">": Dec 25, 2050)', (done) ->
App.Post.where(createdAt: ">": _.toDate("Dec 25, 2050")).count (error, count) =>
assert.equal count, 0
done()
describe '$gte', ->
describe 'integer >= value (8, 10)', ->
beforeEach (done) ->
App.Post.insert [{rating: 8}, {rating: 10}], done
test 'where(rating: ">=": 11)', (done) ->
App.Post.where(rating: ">=": 11).count (error, count) =>
assert.equal count, 0
done()
test 'where(rating: ">=": 10)', (done) ->
App.Post.where(rating: ">=": 10).count (error, count) =>
assert.equal count, 1
done()
test 'where(rating: ">=": 8)', (done) ->
App.Post.where(rating: ">=": 8).count (error, count) =>
assert.equal count, 2
done()
test 'where(rating: ">=": 7)', (done) ->
App.Post.where(rating: ">=": 7).count (error, count) =>
assert.equal count, 2
done()
describe '$lt', ->
describe "integer < value", ->
beforeEach (done) ->
App.Post.insert [{rating: 8}, {rating: 10}], =>
done()
test 'where(rating: "<": 11)', (done) ->
App.Post.where(rating: "<": 11).count (error, count) =>
assert.equal count, 2
done()
test 'where(rating: "<": 10)', (done) ->
App.Post.where(rating: "<": 10).count (error, count) =>
assert.equal count, 1
done()
test 'where(rating: "<": 8)', (done) ->
App.Post.where(rating: "<": 8).count (error, count) =>
assert.equal count, 0
done()
describe 'date < value', ->
beforeEach (done) ->
App.Post.insert rating: 1, someDate: new Date, done
test 'where(someDate: "<": Dec 25, 2050)', (done) ->
App.Post.where(someDate: "<": _.toDate("Dec 25, 2050")).count (error, count) =>
assert.equal count, 1
done()
test 'where(createdAt: "<": Dec 25, 2050)', (done) ->
App.Post.where(createdAt: "<": _.toDate("Dec 25, 2050")).count (error, count) =>
assert.equal count, 1
done()
test 'where(createdAt: "<": Dec 25, 1995)', (done) ->
App.Post.where(createdAt: "<": _.toDate("Dec 25, 1995")).count (error, count) =>
assert.equal count, 0
done()
describe '$lte', ->
describe 'integer <= value', ->
beforeEach (done) ->
attributes = []
attributes.push rating: 8
attributes.push rating: 10
App.Post.insert(attributes, done)
test 'where(rating: "<=": 11)', (done) ->
App.Post.where(rating: "<=": 11).count (error, count) =>
assert.equal count, 2
done()
test 'where(rating: "<=": 10)', (done) ->
App.Post.where(rating: "<=": 10).count (error, count) =>
assert.equal count, 2
done()
test 'where(rating: "<=": 8)', (done) ->
App.Post.where(rating: "<=": 8).count (error, count) =>
assert.equal count, 1
done()
test 'where(rating: "<=": 7)', (done) ->
App.Post.where(rating: "<=": 7).count (error, count) =>
assert.equal count, 0
done()
test 'date <= value', ->
beforeEach (done) ->
App.Post.insert(rating: 1, someDate: new Date, done)
test 'where(someDate: "<=": Dec 25, 2050)', (done) ->
App.Post.where(someDate: "<=": _.toDate("Dec 25, 2050")).count (error, count) =>
assert.equal count, 1
done()
test 'where(createdAt: "<=": Dec 25, 2050)', (done) ->
App.Post.where(createdAt: "<=": _.toDate("Dec 25, 2050")).count (error, count) =>
assert.equal count, 1
done()
test 'where(createdAt: "<=": Dec 25, 1995)', (done) ->
App.Post.where(createdAt: "<=": _.toDate("Dec 25, 1995")).count (error, count) =>
assert.equal count, 0
done()
describe '$match', ->
describe '$notMatch', ->
describe '$in', ->
describe 'string in array', ->
beforeEach (done) ->
attributes = []
attributes.push rating: 8, tags: ["ruby", "javascript"]
attributes.push rating: 9, tags: ["nodejs", "javascript"]
App.Post.insert(attributes, done)
test 'where(tags: "$in": ["javascript"])', (done) ->
App.Post.where(tags: "$in": ["javascript"]).count (error, count) =>
assert.equal count, 2
done()
test 'where(tags: "$in": ["asp"])', (done) ->
App.Post.where(tags: "$in": ["asp"]).count (error, count) =>
assert.equal count, 0
done()
test 'where(tags: "$in": ["nodejs"])', (done) ->
App.Post.where(tags: "$in": ["nodejs"]).count (error, count) =>
assert.equal count, 1
done()
describe '$any', ->
describe 'string in array', ->
beforeEach (done) ->
attributes = []
attributes.push rating: 8, tags: ["ruby", "javascript"], slug: 'ruby-javascript'
attributes.push rating: 9, tags: ["nodejs", "javascript"], slug: 'nodejs-javascript'
App.Post.insert(attributes, done)
test 'anyIn(tags: ["ruby-javascript", "c++"]', (done) ->
App.Post.anyIn(slug: ["ruby-javascript", "c++"]).count (err, count) =>
assert.equal count, 1
done()
test 'anyIn(tags: ["javascript"])', (done) ->
App.Post.anyIn(tags: ["javascript"]).count (error, count) =>
assert.equal count, 2
done()
test 'anyIn(tags: ["asp"])', (done) ->
App.Post.anyIn(tags: ["asp"]).count (error, count) =>
assert.equal count, 0
done()
test 'anyIn(tags: ["nodejs"])', (done) ->
App.Post.anyIn(tags: ["nodejs"]).count (error, count) =>
assert.equal count, 1
done()
test 'anyIn(tags: ["nodejs", "ruby"])', (done) ->
App.Post.anyIn(tags: ["nodejs", "ruby"]).count (error, count) =>
assert.equal count, 2
done()
test 'anyIn(tags: ["nodejs", "asp"])', (done) ->
App.Post.anyIn(tags: ["nodejs", "asp"]).count (error, count) =>
assert.equal count, 1
done()
describe '$nin', ->
beforeEach (done) ->
attributes = []
attributes.push rating: 8, tags: ["ruby", "javascript"]
attributes.push rating: 9, tags: ["nodejs", "javascript"]
App.Post.insert(attributes, done)
test 'notIn(tags: ["javascript"])', (done) ->
App.Post.notIn(tags: ["javascript"]).count (error, count) =>
assert.equal count, 0
done()
test 'notIn(tags: ["asp"])', (done) ->
App.Post.notIn(tags: ["asp"]).count (error, count) =>
assert.equal count, 2
done()
test 'notIn(tags: ["nodejs"])', (done) ->
App.Post.notIn(tags: ["nodejs"]).count (error, count) =>
assert.equal count, 1
done()
describe '$all', ->
beforeEach (done) ->
attributes = []
attributes.push rating: 8, tags: ["ruby", "javascript"]
attributes.push rating: 9, tags: ["nodejs", "javascript"]
App.Post.insert(attributes, done)
describe 'string in array', ->
test 'allIn(tags: ["javascript"])', (done) ->
App.Post.allIn(tags: ["javascript"]).count (error, count) =>
assert.equal count, 2
done()
test 'allIn(tags: ["asp"])', (done) ->
App.Post.allIn(tags: ["asp"]).count (error, count) =>
assert.equal count, 0
done()
test 'allIn(tags: ["nodejs"])', (done) ->
App.Post.allIn(tags: ["nodejs"]).count (error, count) =>
assert.equal count, 1
done()
test 'allIn(tags: ["nodejs", "javascript"])', (done) ->
App.Post.allIn(tags: ["nodejs", "javascript"]).count (error, count) =>
assert.equal count, 1
done()
test 'allIn(tags: ["nodejs", "ruby"])', (done) ->
App.Post.allIn(tags: ["nodejs", "ruby"]).count (error, count) =>
assert.equal count, 0
done()
describe '$null', ->
describe '$notNull', ->
describe '$eq', ->
describe 'string', ->
beforeEach (done) ->
attributes = []
attributes.push title: "Ruby", rating: 8
attributes.push title: "JavaScript", rating: 10
App.Post.insert(attributes, done)
test 'where(title: $eq: "Ruby")', (done) ->
App.Post.where(title: $eq: "Ruby").count (error, count) =>
assert.equal count, 1
done()
test 'where(title: /R/)', (done) ->
App.Post.where(title: /R/).count (error, count) =>
assert.equal count, 1
done()
test 'where(title: /[Rr]/)', (done) ->
App.Post.where(title: /[Rr]/).count (error, count) =>
assert.equal count, 2
done()
describe '$neq', ->
describe 'pagination', ->
beforeEach (done) ->
Tower.ModelCursor::defaultLimit = 5
callbacks = []
i = 0
while i < 18
i++
do (i) ->
callbacks.push (next) =>
title = (new Array(i + 1)).join("a")
App.Post.insert title: title, rating: 8, (error, post) =>
next()
_.series callbacks, done
afterEach ->
Tower.ModelCursor::defaultLimit = 20
test 'limit(1)', (done) ->
App.Post.limit(1).all (error, posts) =>
assert.equal posts.length, 1
done()
test 'limit(0) should not do anything', (done) ->
App.Post.limit(0).all (error, posts) =>
assert.equal posts.length, 18
done()
test 'page(2) middle of set', (done) ->
App.Post.page(2).asc("title").all (error, posts) =>
assert.equal posts.length, 5
assert.equal posts[0].get('title').length, 6
assert.equal posts[4].get('title').length, 10
done()
test 'page(4) end of set', (done) ->
App.Post.page(4).asc("title").all (error, posts) =>
assert.equal posts.length, 3
done()
test 'page(20) if page is greater than count, should return 0', (done) ->
App.Post.page(20).all (error, posts) =>
assert.equal posts.length, 0
done()
test 'desc', (done) ->
App.Post.page(2).desc('title').all (error, posts) =>
assert.equal posts[0].get('title').length, 13
done()
test 'asc', (done) ->
App.Post.page(2).asc('title').all (error, posts) =>
assert.equal posts[0].get('title').length, 6
done()
# @todo
if Tower.isServer && Tower.store.className() == 'Memory'
test 'returns array/cursor', ->
posts = App.Post.all()#page(2).asc('title').all()
assert.equal posts.length, 18
assert.isTrue posts.isCursor, 'posts.isCursor'
# assert iterate
for post, index in posts
assert.ok post instanceof Tower.Model
assert.equal index, 18
|
[
{
"context": "---\n---\n\n### Ben Scott # 2015-10-12 # Mania ###\n\n'use strict' # just lik",
"end": 22,
"score": 0.9997327923774719,
"start": 13,
"tag": "NAME",
"value": "Ben Scott"
},
{
"context": "gt` \\<**real**,**real**\\> : target position\n - `@max_v` **real** : maximum speed... | js/mania.coffee | evan-erdos/evan-erdos.github.io | 1 | ---
---
### Ben Scott # 2015-10-12 # Mania ###
'use strict' # just like JavaScript
### `P5.js` Main class
This is our instance of the main class in the `P5.js` library.
The argument is the link between the library and this code, and
the special functions we override in the class definition are
callbacks for P5.js events.
###
myp = new p5 (p) ->
### Input ###
mouse = [p.mouseX,p.mouseY]
lastMouse = [p.pmouseX,p.pmouseY]
### Library ###
rand = p.random
### DOM ###
[container,canvas] = [null,null]
### Assets ###
[bg_img,dope_img] = [null,null]
### Mania ###
manic = false
[max_v,max_f,dope_rate] = [3,0.05,60]
[receptors,transmitters] = [[],[]]
### `Neurotransmitter`
This class represents a generic neurotransmitter, which
the dopamine and amphetamine classes extend.
- `@a` **real** : acceleration (m^2/ms)
- `@v` **real** : velocity (m/ms)
- `@m` **int** : mass (kg)
- `@t` **real** : lifetime (ms)
- `@pos` \<**real**,**real**\> : current position
- `@tgt` \<**real**,**real**\> : target position
###
class Neurotransmitter
constructor: (@pos,@tgt,@m=1,@t=1024) ->
@a = p.createVector(0,0)
@v = p.createVector(rand(-1,1), rand(-1,1))
@tgt = p.createVector(p.width/2,p.height/2)
unless (@pos?)
@pos = p.createVector(
p.width/2+p.random(-50,50),-10)
@v.y = p.random(1,2)
run: (group) ->
@flock(group)
@update()
@bounds()
@draw()
applyForce: (list...) ->
@a.add(force)/@m for force in list
flock: (group) ->
@applyForce(
@separate(group).mult(1.5)
@align(group).mult(1)
@cohesion(group).mult(1))
seek: (tgt) ->
@tgt = tgt
len = p5.Vector.sub(tgt,@pos)
len.normalize()
len.mult(max_v)
dir = p5.Vector.sub(len,@v)
dir.limit(0.05)
return dir
bounds: ->
return if (-10<@pos.x<p.width+10)
unless (-10<@pos.y<p.height+10)
transmitters.remove(this)
delete this
update: ->
@v.add(@a)
@v.limit(max_v)
@pos.add(@v)
@a = p.createVector(0,0)
draw: ->
p.push()
polygon(@pos.x,@pos.y,5,6)
p.pop()
### `Dopamine`
This is a class which represents the neurotransmitter
Dopamine, which is responsible for pleasure and euphoria.
- `@a` **real** : acceleration (m^2/ms)
- `@v` **real** : velocity (m/ms)
- `@m` **int** : mass (kg)
- `@t` **real** : lifetime (ms)
- `@r` **int** : radius (pixel)
- `@pos` \<**real**,**real**\> : current position
- `@tgt` \<**real**,**real**\> : target position
- `@max_v` **real** : maximum speed
- `@max_f` **real** : maximum force
###
class Dopamine extends Neurotransmitter
flock: (group) ->
super
final_steer = @seek(
p.createVector(p.width/2,p.height*2))
final_steer.mult(0.5)
@applyForce(final_steer)
draw: ->
p.push()
value = p.map(value,0,255,60,120)
p.fill(value,180,180)
p.stroke(180)
p.strokeWeight(2)
if (manic && @pos.y>p.height/3)
p.translate(rand(3),rand(3))
p.line(@pos.x,@pos.y,@pos.x-8,@pos.y-4)
p.line(@pos.x,@pos.y,@pos.x-8,@pos.y+4)
p.line(@pos.x,@pos.y,@pos.x+8,@pos.y-4)
p.line(@pos.x+8,@pos.y-4,@pos.x+12,@pos.y-2)
polygon(@pos.x,@pos.y,5,6)
p.pop()
separate: (group) ->
[tgt,n] = [20,0]
dir = p.createVector(0,0)
for elem in group
d = p5.Vector.dist(@pos,elem.pos)
if (0<d<tgt)
diff = p5.Vector.sub(@pos,elem.pos)
diff.normalize()
diff.div(d)
dir.add(diff)
n++
dir.div(n) if (n>0)
if (0<dir.mag())
dir.normalize()
dir.mult(max_v)
dir.sub(@v)
dir.limit(0.05)
return dir
align: (group) ->
[len,n] = [50.0,0]
sum = p.createVector(0,0)
for elem in group
d = p5.Vector.dist(@pos,elem.pos)
if (0<d<len)
sum.add(elem.v)
n++
if (n>0)
sum.div(n)
sum.normalize()
sum.mult(max_v)
dir = p5.Vector.sub(sum,@v)
dir.limit(0.05)
return dir
else return p.createVector(0,0)
cohesion: (group) ->
[len,n] = [50,0]
dir = p.createVector(0,0)
for elem in group
d = p5.Vector.dist(@pos,elem.pos)
if (0<d<=len)
dir.add(elem.pos)
n++
if (n>0)
dir.div(n)
return @seek(dir)
else return p.createVector(0,0)
### `Cocaine`
This is a class which represents Cocaine, a dopamine
reuptake inhibitor (obviously this is what it's known for)
- `@a` **real** : acceleration (m^2/ms)
- `@v` **real** : velocity (m/ms)
- `@m` **int** : mass (kg)
- `@t` **real** : lifetime (ms)
- `@pos` \<**real**,**real**\> : current position
- `@tgt` \<**real**,**real**\> : target position
- `@n_tgt` \<**real**,**real**\> : clearing behaviour
###
class Cocaine extends Dopamine
@n_tgt = null
constructor: ->
super
@t = 512+p.random(-128,128)
@mass = 3
@pos = p.createVector(p.mouseX,p.mouseY)
@n_tgt = p.createVector(
p.width/2+rand(-128,128)
p.height/2+rand(-50,50))
update: ->
super
@t--
if (@t<0)
@applyForce(@seek(p.createVector(
p.width*2, rand(-30,30))).mult(3))
draw: ->
p.push()
p.fill(255)
p.stroke(200)
p.line(@pos.x,@pos.y,@pos.x,@pos.y-8)
p.line(@pos.x,@pos.y-8,@pos.x+2,@pos.y-12)
p.line(@pos.x,@pos.y,@pos.x+8,@pos.y+4)
p.line(@pos.x+8,@pos.y+4,@pos.x+12,@pos.y+6)
polygon(@pos.x-4,@pos.y,5,6,30)
polygon(@pos.x+4,@pos.y,5,6,30)
p.pop()
flock: (group) ->
@applyForce(
@separate(group)
@seek(@n_tgt))
separate: (group) ->
[tgt,n] = [20,0]
dir = p.createVector(0,0)
for elem in group
d = p5.Vector.dist(@pos,elem.pos)
if (0<d<tgt)
diff = p5.Vector.sub(elem.pos,@pos)
diff.normalize()
diff.div(d)
dir.add(diff)
n++
unless (elem instanceof Cocaine)
elem.applyForce(diff.normalize())
else elem.applyForce(
p.createVector())
dir.div(n) if (n>0)
if (0<dir.mag())
dir.normalize()
dir.mult(-1)
dir.sub(@v)
dir.limit(0.5)
return dir
### `Amphetamine`
The same neuron! Now with amphetamines! Amphetamines act
as a releasing agent for dopamine, and are much easier
to animate!
- `@a` **real** : acceleration (m^2/ms)
- `@v` **real** : velocity (m/ms)
- `@m` **int** : mass (kg)
- `@t` **real** : lifetime (ms)
- `@pos` \<**real**,**real**\> : current position
- `@tgt` \<**real**,**real**\> : target position
- `@n_tgt` \<**real**,**real**\> : clearing behaviour
###
class Amphetamine extends Dopamine
@n_tgt = null
constructor: (@pos,@tgt,@m=1,@t=1024) ->
super
@pos = p.createVector(p.mouseX,p.mouseY)
@n_tgt = p.createVector(
p.width/2-128+rand(-2,2)
p.height/2-100+rand(-2,2))
if (p.width/3<@pos.x)
@n_tgt = p.createVector(
p.width/2+128+rand(-2,2)
p.height/2-100+rand(-2,2))
update: ->
super
@t--
if (@t<0)
if (rand(2)>1)
@applyForce(@seek(p.createVector(
p.width*2, rand(-30,30))).mult(3))
else @applyForce(@seek(p.createVector(
p.width/2,-p.height).mult(3)))
draw: ->
p.push()
p.fill(255,180,180)
p.stroke(180)
p.strokeWeight(2)
p.line(@pos.x,@pos.y,@pos.x+8,@pos.y-4)
p.line(@pos.x+8,@pos.y-4,@pos.x+12,@pos.y-2)
polygon(@pos.x,@pos.y,5,6)
p.pop()
flock: (group) ->
super
@applyForce(@seek(@n_tgt))
separate: (group) ->
[tgt,n] = [20,0]
dir = p.createVector(0,0)
for elem in group
d = p5.Vector.dist(@pos,elem.pos)
if (0<d<tgt)
diff = p5.Vector.sub(elem.pos,@pos)
diff.normalize()
diff.div(d)
dir.add(diff)
unless (elem instanceof Cocaine)
elem.applyForce(diff.normalize())
n++
dir.div(n) if (n>0)
if (0<dir.mag())
dir.normalize()
dir.mult(3)
dir.sub(@v)
dir.limit(0.1)
return dir
align: (group) -> return p.createVector(0,0)
cohesion: (group) -> return p.createVector(0,0)
### `Events`
These functions are automatic callbacks for `P5.js` events:
- `p.preload` is called once, immediately before `setup`
- `p.setup` is called once, at the beginning of execution
- `p.draw` is called as frequently as `p.framerate`
- `p.keyPressed` is called on every key input event
- `p.mousePressed` is called on mouse down
- `p.windowResized` keeps window full
- `p.remove` destroys everything in the sketch
###
p.preload = ->
bg_img = p.loadImage("/rsc/sketch/synapse.png")
p.setup = ->
setupDOM()
p.noStroke()
p.frameRate(60)
p.draw = ->
drawDOM()
getInput()
manic = (dope_rate<60)
drawReceptors()
dope_rate++ if (dope_rate<60 && p.frameCount%60==0)
if (p.frameCount%dope_rate==0 && transmitters.length<100)
n = if (dope_rate<55) then 20 else 5
for i in [0..rand(2,n)]
transmitters.push(new Dopamine())
for dope in transmitters
dope?.run(transmitters)
p.keyPressed = ->
alt = !alt if (p.keyCode is p.ALT)
p.mouseDragged = ->
mouse = [p.mouseX,p.mouseY]
lastMouse = [p.pmouseX,p.pmouseY]
p.mousePressed = ->
if (p.width/3<p.mouseX<2*p.width/3)
if (p.height/3<p.mouseY<2*p.height/3)
transmitters.unshift(new Cocaine())
else transmitters.unshift(new Amphetamine())
dope_rate-- if (dope_rate>30)
#p.windowResized = ->
# p.resizeCanvas(p.windowWidth, p.windowHeight);
#p.remove = -> p5 = null
### Library Functions
These functions I've included from other files. They're the
sort of generic utilities that would constitute a library.
- 'Array::Remove' takes an element out of a standard array
- `@e`: element to remove
- `polygon` draws a regular polygon.
- `@x,@y` \<**int**,**int**\> : center
- `@r` **int** : radius
- `@n` **int** : number of points
- `@o` **real** : offset theta
###
Array::remove = (e) ->
@[t..t] = [] if (t=@indexOf(e))>-1
polygon = (x,y,r=1,n=3,o=0) ->
theta = p.TWO_PI/n
p.beginShape()
for i in [0..p.TWO_PI] by theta
p.vertex(
x+p.cos(i+o)*r
y+p.sin(i+o)*r)
p.endShape(p.CLOSE)
### DOM Functions
These functions initialize and position the DOM objects
and the main canvas.
- `setupDOM`: creates DOM objects & canvas
- `drawDOM`: draws all DOM objects to the canvas
- `getInput`: collects input data, processes it, and in
the case of `p.mouseIsPressed`, it calls the mouse
event callback (otherwise it single-clicks)
###
setupDOM = ->
canvas = p.createCanvas(756,512)
canvas.parent('CoffeeSketch')
canvas.class("entry")
canvas.style("max-width", "100%")
drawDOM = ->
p.clear()
p.background(bg_img)
getInput = ->
mouse = [p.mouseX,p.mouseY]
lastMouse = [p.pmouseX,p.pmouseY]
### Mania Functions
These functions draw the stars, the planets, and carry out
the logic of the game / sketch.
- `drawReceptors`: draws the reuptake receptors on the axon
###
drawReceptors = ->
p.push()
p.translate(p.width/2-128,p.height/2-100)
p.rotate(60)
p.ellipse(0,0,30,40)
p.fill(240)
p.ellipse(10,0,10,30)
p.ellipse(-10,0,10,30)
p.pop()
p.push()
p.translate(p.width/2+128,p.height/2-100)
p.rotate(-60)
p.ellipse(0,0,30,40)
p.fill(240)
p.ellipse(10,0,10,30)
p.ellipse(-10,0,10,30)
p.pop()
| 105748 | ---
---
### <NAME> # 2015-10-12 # Mania ###
'use strict' # just like JavaScript
### `P5.js` Main class
This is our instance of the main class in the `P5.js` library.
The argument is the link between the library and this code, and
the special functions we override in the class definition are
callbacks for P5.js events.
###
myp = new p5 (p) ->
### Input ###
mouse = [p.mouseX,p.mouseY]
lastMouse = [p.pmouseX,p.pmouseY]
### Library ###
rand = p.random
### DOM ###
[container,canvas] = [null,null]
### Assets ###
[bg_img,dope_img] = [null,null]
### Mania ###
manic = false
[max_v,max_f,dope_rate] = [3,0.05,60]
[receptors,transmitters] = [[],[]]
### `Neurotransmitter`
This class represents a generic neurotransmitter, which
the dopamine and amphetamine classes extend.
- `@a` **real** : acceleration (m^2/ms)
- `@v` **real** : velocity (m/ms)
- `@m` **int** : mass (kg)
- `@t` **real** : lifetime (ms)
- `@pos` \<**real**,**real**\> : current position
- `@tgt` \<**real**,**real**\> : target position
###
class Neurotransmitter
constructor: (@pos,@tgt,@m=1,@t=1024) ->
@a = p.createVector(0,0)
@v = p.createVector(rand(-1,1), rand(-1,1))
@tgt = p.createVector(p.width/2,p.height/2)
unless (@pos?)
@pos = p.createVector(
p.width/2+p.random(-50,50),-10)
@v.y = p.random(1,2)
run: (group) ->
@flock(group)
@update()
@bounds()
@draw()
applyForce: (list...) ->
@a.add(force)/@m for force in list
flock: (group) ->
@applyForce(
@separate(group).mult(1.5)
@align(group).mult(1)
@cohesion(group).mult(1))
seek: (tgt) ->
@tgt = tgt
len = p5.Vector.sub(tgt,@pos)
len.normalize()
len.mult(max_v)
dir = p5.Vector.sub(len,@v)
dir.limit(0.05)
return dir
bounds: ->
return if (-10<@pos.x<p.width+10)
unless (-10<@pos.y<p.height+10)
transmitters.remove(this)
delete this
update: ->
@v.add(@a)
@v.limit(max_v)
@pos.add(@v)
@a = p.createVector(0,0)
draw: ->
p.push()
polygon(@pos.x,@pos.y,5,6)
p.pop()
### `Dopamine`
This is a class which represents the neurotransmitter
Dopamine, which is responsible for pleasure and euphoria.
- `@a` **real** : acceleration (m^2/ms)
- `@v` **real** : velocity (m/ms)
- `@m` **int** : mass (kg)
- `@t` **real** : lifetime (ms)
- `@r` **int** : radius (pixel)
- `@pos` \<**real**,**real**\> : current position
- `@tgt` \<**real**,**real**\> : target position
- `@max_v` **real** : maximum speed
- `@max_f` **real** : maximum force
###
class Dopamine extends Neurotransmitter
flock: (group) ->
super
final_steer = @seek(
p.createVector(p.width/2,p.height*2))
final_steer.mult(0.5)
@applyForce(final_steer)
draw: ->
p.push()
value = p.map(value,0,255,60,120)
p.fill(value,180,180)
p.stroke(180)
p.strokeWeight(2)
if (manic && @pos.y>p.height/3)
p.translate(rand(3),rand(3))
p.line(@pos.x,@pos.y,@pos.x-8,@pos.y-4)
p.line(@pos.x,@pos.y,@pos.x-8,@pos.y+4)
p.line(@pos.x,@pos.y,@pos.x+8,@pos.y-4)
p.line(@pos.x+8,@pos.y-4,@pos.x+12,@pos.y-2)
polygon(@pos.x,@pos.y,5,6)
p.pop()
separate: (group) ->
[tgt,n] = [20,0]
dir = p.createVector(0,0)
for elem in group
d = p5.Vector.dist(@pos,elem.pos)
if (0<d<tgt)
diff = p5.Vector.sub(@pos,elem.pos)
diff.normalize()
diff.div(d)
dir.add(diff)
n++
dir.div(n) if (n>0)
if (0<dir.mag())
dir.normalize()
dir.mult(max_v)
dir.sub(@v)
dir.limit(0.05)
return dir
align: (group) ->
[len,n] = [50.0,0]
sum = p.createVector(0,0)
for elem in group
d = p5.Vector.dist(@pos,elem.pos)
if (0<d<len)
sum.add(elem.v)
n++
if (n>0)
sum.div(n)
sum.normalize()
sum.mult(max_v)
dir = p5.Vector.sub(sum,@v)
dir.limit(0.05)
return dir
else return p.createVector(0,0)
cohesion: (group) ->
[len,n] = [50,0]
dir = p.createVector(0,0)
for elem in group
d = p5.Vector.dist(@pos,elem.pos)
if (0<d<=len)
dir.add(elem.pos)
n++
if (n>0)
dir.div(n)
return @seek(dir)
else return p.createVector(0,0)
### `Cocaine`
This is a class which represents Cocaine, a dopamine
reuptake inhibitor (obviously this is what it's known for)
- `@a` **real** : acceleration (m^2/ms)
- `@v` **real** : velocity (m/ms)
- `@m` **int** : mass (kg)
- `@t` **real** : lifetime (ms)
- `@pos` \<**real**,**real**\> : current position
- `@tgt` \<**real**,**real**\> : target position
- `@n_tgt` \<**real**,**real**\> : clearing behaviour
###
class Cocaine extends Dopamine
@n_tgt = null
constructor: ->
super
@t = 512+p.random(-128,128)
@mass = 3
@pos = p.createVector(p.mouseX,p.mouseY)
@n_tgt = p.createVector(
p.width/2+rand(-128,128)
p.height/2+rand(-50,50))
update: ->
super
@t--
if (@t<0)
@applyForce(@seek(p.createVector(
p.width*2, rand(-30,30))).mult(3))
draw: ->
p.push()
p.fill(255)
p.stroke(200)
p.line(@pos.x,@pos.y,@pos.x,@pos.y-8)
p.line(@pos.x,@pos.y-8,@pos.x+2,@pos.y-12)
p.line(@pos.x,@pos.y,@pos.x+8,@pos.y+4)
p.line(@pos.x+8,@pos.y+4,@pos.x+12,@pos.y+6)
polygon(@pos.x-4,@pos.y,5,6,30)
polygon(@pos.x+4,@pos.y,5,6,30)
p.pop()
flock: (group) ->
@applyForce(
@separate(group)
@seek(@n_tgt))
separate: (group) ->
[tgt,n] = [20,0]
dir = p.createVector(0,0)
for elem in group
d = p5.Vector.dist(@pos,elem.pos)
if (0<d<tgt)
diff = p5.Vector.sub(elem.pos,@pos)
diff.normalize()
diff.div(d)
dir.add(diff)
n++
unless (elem instanceof Cocaine)
elem.applyForce(diff.normalize())
else elem.applyForce(
p.createVector())
dir.div(n) if (n>0)
if (0<dir.mag())
dir.normalize()
dir.mult(-1)
dir.sub(@v)
dir.limit(0.5)
return dir
### `Amphetamine`
The same neuron! Now with amphetamines! Amphetamines act
as a releasing agent for dopamine, and are much easier
to animate!
- `@a` **real** : acceleration (m^2/ms)
- `@v` **real** : velocity (m/ms)
- `@m` **int** : mass (kg)
- `@t` **real** : lifetime (ms)
- `@pos` \<**real**,**real**\> : current position
- `@tgt` \<**real**,**real**\> : target position
- `@n_tgt` \<**real**,**real**\> : clearing behaviour
###
class Amphetamine extends Dopamine
@n_tgt = null
constructor: (@pos,@tgt,@m=1,@t=1024) ->
super
@pos = p.createVector(p.mouseX,p.mouseY)
@n_tgt = p.createVector(
p.width/2-128+rand(-2,2)
p.height/2-100+rand(-2,2))
if (p.width/3<@pos.x)
@n_tgt = p.createVector(
p.width/2+128+rand(-2,2)
p.height/2-100+rand(-2,2))
update: ->
super
@t--
if (@t<0)
if (rand(2)>1)
@applyForce(@seek(p.createVector(
p.width*2, rand(-30,30))).mult(3))
else @applyForce(@seek(p.createVector(
p.width/2,-p.height).mult(3)))
draw: ->
p.push()
p.fill(255,180,180)
p.stroke(180)
p.strokeWeight(2)
p.line(@pos.x,@pos.y,@pos.x+8,@pos.y-4)
p.line(@pos.x+8,@pos.y-4,@pos.x+12,@pos.y-2)
polygon(@pos.x,@pos.y,5,6)
p.pop()
flock: (group) ->
super
@applyForce(@seek(@n_tgt))
separate: (group) ->
[tgt,n] = [20,0]
dir = p.createVector(0,0)
for elem in group
d = p5.Vector.dist(@pos,elem.pos)
if (0<d<tgt)
diff = p5.Vector.sub(elem.pos,@pos)
diff.normalize()
diff.div(d)
dir.add(diff)
unless (elem instanceof Cocaine)
elem.applyForce(diff.normalize())
n++
dir.div(n) if (n>0)
if (0<dir.mag())
dir.normalize()
dir.mult(3)
dir.sub(@v)
dir.limit(0.1)
return dir
align: (group) -> return p.createVector(0,0)
cohesion: (group) -> return p.createVector(0,0)
### `Events`
These functions are automatic callbacks for `P5.js` events:
- `p.preload` is called once, immediately before `setup`
- `p.setup` is called once, at the beginning of execution
- `p.draw` is called as frequently as `p.framerate`
- `p.keyPressed` is called on every key input event
- `p.mousePressed` is called on mouse down
- `p.windowResized` keeps window full
- `p.remove` destroys everything in the sketch
###
p.preload = ->
bg_img = p.loadImage("/rsc/sketch/synapse.png")
p.setup = ->
setupDOM()
p.noStroke()
p.frameRate(60)
p.draw = ->
drawDOM()
getInput()
manic = (dope_rate<60)
drawReceptors()
dope_rate++ if (dope_rate<60 && p.frameCount%60==0)
if (p.frameCount%dope_rate==0 && transmitters.length<100)
n = if (dope_rate<55) then 20 else 5
for i in [0..rand(2,n)]
transmitters.push(new Dopamine())
for dope in transmitters
dope?.run(transmitters)
p.keyPressed = ->
alt = !alt if (p.keyCode is p.ALT)
p.mouseDragged = ->
mouse = [p.mouseX,p.mouseY]
lastMouse = [p.pmouseX,p.pmouseY]
p.mousePressed = ->
if (p.width/3<p.mouseX<2*p.width/3)
if (p.height/3<p.mouseY<2*p.height/3)
transmitters.unshift(new Cocaine())
else transmitters.unshift(new Amphetamine())
dope_rate-- if (dope_rate>30)
#p.windowResized = ->
# p.resizeCanvas(p.windowWidth, p.windowHeight);
#p.remove = -> p5 = null
### Library Functions
These functions I've included from other files. They're the
sort of generic utilities that would constitute a library.
- 'Array::Remove' takes an element out of a standard array
- `@e`: element to remove
- `polygon` draws a regular polygon.
- `@x,@y` \<**int**,**int**\> : center
- `@r` **int** : radius
- `@n` **int** : number of points
- `@o` **real** : offset theta
###
Array::remove = (e) ->
@[t..t] = [] if (t=@indexOf(e))>-1
polygon = (x,y,r=1,n=3,o=0) ->
theta = p.TWO_PI/n
p.beginShape()
for i in [0..p.TWO_PI] by theta
p.vertex(
x+p.cos(i+o)*r
y+p.sin(i+o)*r)
p.endShape(p.CLOSE)
### DOM Functions
These functions initialize and position the DOM objects
and the main canvas.
- `setupDOM`: creates DOM objects & canvas
- `drawDOM`: draws all DOM objects to the canvas
- `getInput`: collects input data, processes it, and in
the case of `p.mouseIsPressed`, it calls the mouse
event callback (otherwise it single-clicks)
###
setupDOM = ->
canvas = p.createCanvas(756,512)
canvas.parent('CoffeeSketch')
canvas.class("entry")
canvas.style("max-width", "100%")
drawDOM = ->
p.clear()
p.background(bg_img)
getInput = ->
mouse = [p.mouseX,p.mouseY]
lastMouse = [p.pmouseX,p.pmouseY]
### Mania Functions
These functions draw the stars, the planets, and carry out
the logic of the game / sketch.
- `drawReceptors`: draws the reuptake receptors on the axon
###
drawReceptors = ->
p.push()
p.translate(p.width/2-128,p.height/2-100)
p.rotate(60)
p.ellipse(0,0,30,40)
p.fill(240)
p.ellipse(10,0,10,30)
p.ellipse(-10,0,10,30)
p.pop()
p.push()
p.translate(p.width/2+128,p.height/2-100)
p.rotate(-60)
p.ellipse(0,0,30,40)
p.fill(240)
p.ellipse(10,0,10,30)
p.ellipse(-10,0,10,30)
p.pop()
| true | ---
---
### PI:NAME:<NAME>END_PI # 2015-10-12 # Mania ###
'use strict' # just like JavaScript
### `P5.js` Main class
This is our instance of the main class in the `P5.js` library.
The argument is the link between the library and this code, and
the special functions we override in the class definition are
callbacks for P5.js events.
###
myp = new p5 (p) ->
### Input ###
mouse = [p.mouseX,p.mouseY]
lastMouse = [p.pmouseX,p.pmouseY]
### Library ###
rand = p.random
### DOM ###
[container,canvas] = [null,null]
### Assets ###
[bg_img,dope_img] = [null,null]
### Mania ###
manic = false
[max_v,max_f,dope_rate] = [3,0.05,60]
[receptors,transmitters] = [[],[]]
### `Neurotransmitter`
This class represents a generic neurotransmitter, which
the dopamine and amphetamine classes extend.
- `@a` **real** : acceleration (m^2/ms)
- `@v` **real** : velocity (m/ms)
- `@m` **int** : mass (kg)
- `@t` **real** : lifetime (ms)
- `@pos` \<**real**,**real**\> : current position
- `@tgt` \<**real**,**real**\> : target position
###
class Neurotransmitter
constructor: (@pos,@tgt,@m=1,@t=1024) ->
@a = p.createVector(0,0)
@v = p.createVector(rand(-1,1), rand(-1,1))
@tgt = p.createVector(p.width/2,p.height/2)
unless (@pos?)
@pos = p.createVector(
p.width/2+p.random(-50,50),-10)
@v.y = p.random(1,2)
run: (group) ->
@flock(group)
@update()
@bounds()
@draw()
applyForce: (list...) ->
@a.add(force)/@m for force in list
flock: (group) ->
@applyForce(
@separate(group).mult(1.5)
@align(group).mult(1)
@cohesion(group).mult(1))
seek: (tgt) ->
@tgt = tgt
len = p5.Vector.sub(tgt,@pos)
len.normalize()
len.mult(max_v)
dir = p5.Vector.sub(len,@v)
dir.limit(0.05)
return dir
bounds: ->
return if (-10<@pos.x<p.width+10)
unless (-10<@pos.y<p.height+10)
transmitters.remove(this)
delete this
update: ->
@v.add(@a)
@v.limit(max_v)
@pos.add(@v)
@a = p.createVector(0,0)
draw: ->
p.push()
polygon(@pos.x,@pos.y,5,6)
p.pop()
### `Dopamine`
This is a class which represents the neurotransmitter
Dopamine, which is responsible for pleasure and euphoria.
- `@a` **real** : acceleration (m^2/ms)
- `@v` **real** : velocity (m/ms)
- `@m` **int** : mass (kg)
- `@t` **real** : lifetime (ms)
- `@r` **int** : radius (pixel)
- `@pos` \<**real**,**real**\> : current position
- `@tgt` \<**real**,**real**\> : target position
- `@max_v` **real** : maximum speed
- `@max_f` **real** : maximum force
###
class Dopamine extends Neurotransmitter
flock: (group) ->
super
final_steer = @seek(
p.createVector(p.width/2,p.height*2))
final_steer.mult(0.5)
@applyForce(final_steer)
draw: ->
p.push()
value = p.map(value,0,255,60,120)
p.fill(value,180,180)
p.stroke(180)
p.strokeWeight(2)
if (manic && @pos.y>p.height/3)
p.translate(rand(3),rand(3))
p.line(@pos.x,@pos.y,@pos.x-8,@pos.y-4)
p.line(@pos.x,@pos.y,@pos.x-8,@pos.y+4)
p.line(@pos.x,@pos.y,@pos.x+8,@pos.y-4)
p.line(@pos.x+8,@pos.y-4,@pos.x+12,@pos.y-2)
polygon(@pos.x,@pos.y,5,6)
p.pop()
separate: (group) ->
[tgt,n] = [20,0]
dir = p.createVector(0,0)
for elem in group
d = p5.Vector.dist(@pos,elem.pos)
if (0<d<tgt)
diff = p5.Vector.sub(@pos,elem.pos)
diff.normalize()
diff.div(d)
dir.add(diff)
n++
dir.div(n) if (n>0)
if (0<dir.mag())
dir.normalize()
dir.mult(max_v)
dir.sub(@v)
dir.limit(0.05)
return dir
align: (group) ->
[len,n] = [50.0,0]
sum = p.createVector(0,0)
for elem in group
d = p5.Vector.dist(@pos,elem.pos)
if (0<d<len)
sum.add(elem.v)
n++
if (n>0)
sum.div(n)
sum.normalize()
sum.mult(max_v)
dir = p5.Vector.sub(sum,@v)
dir.limit(0.05)
return dir
else return p.createVector(0,0)
cohesion: (group) ->
[len,n] = [50,0]
dir = p.createVector(0,0)
for elem in group
d = p5.Vector.dist(@pos,elem.pos)
if (0<d<=len)
dir.add(elem.pos)
n++
if (n>0)
dir.div(n)
return @seek(dir)
else return p.createVector(0,0)
### `Cocaine`
This is a class which represents Cocaine, a dopamine
reuptake inhibitor (obviously this is what it's known for)
- `@a` **real** : acceleration (m^2/ms)
- `@v` **real** : velocity (m/ms)
- `@m` **int** : mass (kg)
- `@t` **real** : lifetime (ms)
- `@pos` \<**real**,**real**\> : current position
- `@tgt` \<**real**,**real**\> : target position
- `@n_tgt` \<**real**,**real**\> : clearing behaviour
###
class Cocaine extends Dopamine
@n_tgt = null
constructor: ->
super
@t = 512+p.random(-128,128)
@mass = 3
@pos = p.createVector(p.mouseX,p.mouseY)
@n_tgt = p.createVector(
p.width/2+rand(-128,128)
p.height/2+rand(-50,50))
update: ->
super
@t--
if (@t<0)
@applyForce(@seek(p.createVector(
p.width*2, rand(-30,30))).mult(3))
draw: ->
p.push()
p.fill(255)
p.stroke(200)
p.line(@pos.x,@pos.y,@pos.x,@pos.y-8)
p.line(@pos.x,@pos.y-8,@pos.x+2,@pos.y-12)
p.line(@pos.x,@pos.y,@pos.x+8,@pos.y+4)
p.line(@pos.x+8,@pos.y+4,@pos.x+12,@pos.y+6)
polygon(@pos.x-4,@pos.y,5,6,30)
polygon(@pos.x+4,@pos.y,5,6,30)
p.pop()
flock: (group) ->
@applyForce(
@separate(group)
@seek(@n_tgt))
separate: (group) ->
[tgt,n] = [20,0]
dir = p.createVector(0,0)
for elem in group
d = p5.Vector.dist(@pos,elem.pos)
if (0<d<tgt)
diff = p5.Vector.sub(elem.pos,@pos)
diff.normalize()
diff.div(d)
dir.add(diff)
n++
unless (elem instanceof Cocaine)
elem.applyForce(diff.normalize())
else elem.applyForce(
p.createVector())
dir.div(n) if (n>0)
if (0<dir.mag())
dir.normalize()
dir.mult(-1)
dir.sub(@v)
dir.limit(0.5)
return dir
### `Amphetamine`
The same neuron! Now with amphetamines! Amphetamines act
as a releasing agent for dopamine, and are much easier
to animate!
- `@a` **real** : acceleration (m^2/ms)
- `@v` **real** : velocity (m/ms)
- `@m` **int** : mass (kg)
- `@t` **real** : lifetime (ms)
- `@pos` \<**real**,**real**\> : current position
- `@tgt` \<**real**,**real**\> : target position
- `@n_tgt` \<**real**,**real**\> : clearing behaviour
###
class Amphetamine extends Dopamine
@n_tgt = null
constructor: (@pos,@tgt,@m=1,@t=1024) ->
super
@pos = p.createVector(p.mouseX,p.mouseY)
@n_tgt = p.createVector(
p.width/2-128+rand(-2,2)
p.height/2-100+rand(-2,2))
if (p.width/3<@pos.x)
@n_tgt = p.createVector(
p.width/2+128+rand(-2,2)
p.height/2-100+rand(-2,2))
update: ->
super
@t--
if (@t<0)
if (rand(2)>1)
@applyForce(@seek(p.createVector(
p.width*2, rand(-30,30))).mult(3))
else @applyForce(@seek(p.createVector(
p.width/2,-p.height).mult(3)))
draw: ->
p.push()
p.fill(255,180,180)
p.stroke(180)
p.strokeWeight(2)
p.line(@pos.x,@pos.y,@pos.x+8,@pos.y-4)
p.line(@pos.x+8,@pos.y-4,@pos.x+12,@pos.y-2)
polygon(@pos.x,@pos.y,5,6)
p.pop()
flock: (group) ->
super
@applyForce(@seek(@n_tgt))
separate: (group) ->
[tgt,n] = [20,0]
dir = p.createVector(0,0)
for elem in group
d = p5.Vector.dist(@pos,elem.pos)
if (0<d<tgt)
diff = p5.Vector.sub(elem.pos,@pos)
diff.normalize()
diff.div(d)
dir.add(diff)
unless (elem instanceof Cocaine)
elem.applyForce(diff.normalize())
n++
dir.div(n) if (n>0)
if (0<dir.mag())
dir.normalize()
dir.mult(3)
dir.sub(@v)
dir.limit(0.1)
return dir
align: (group) -> return p.createVector(0,0)
cohesion: (group) -> return p.createVector(0,0)
### `Events`
These functions are automatic callbacks for `P5.js` events:
- `p.preload` is called once, immediately before `setup`
- `p.setup` is called once, at the beginning of execution
- `p.draw` is called as frequently as `p.framerate`
- `p.keyPressed` is called on every key input event
- `p.mousePressed` is called on mouse down
- `p.windowResized` keeps window full
- `p.remove` destroys everything in the sketch
###
p.preload = ->
bg_img = p.loadImage("/rsc/sketch/synapse.png")
p.setup = ->
setupDOM()
p.noStroke()
p.frameRate(60)
p.draw = ->
drawDOM()
getInput()
manic = (dope_rate<60)
drawReceptors()
dope_rate++ if (dope_rate<60 && p.frameCount%60==0)
if (p.frameCount%dope_rate==0 && transmitters.length<100)
n = if (dope_rate<55) then 20 else 5
for i in [0..rand(2,n)]
transmitters.push(new Dopamine())
for dope in transmitters
dope?.run(transmitters)
p.keyPressed = ->
alt = !alt if (p.keyCode is p.ALT)
p.mouseDragged = ->
mouse = [p.mouseX,p.mouseY]
lastMouse = [p.pmouseX,p.pmouseY]
p.mousePressed = ->
if (p.width/3<p.mouseX<2*p.width/3)
if (p.height/3<p.mouseY<2*p.height/3)
transmitters.unshift(new Cocaine())
else transmitters.unshift(new Amphetamine())
dope_rate-- if (dope_rate>30)
#p.windowResized = ->
# p.resizeCanvas(p.windowWidth, p.windowHeight);
#p.remove = -> p5 = null
### Library Functions
These functions I've included from other files. They're the
sort of generic utilities that would constitute a library.
- 'Array::Remove' takes an element out of a standard array
- `@e`: element to remove
- `polygon` draws a regular polygon.
- `@x,@y` \<**int**,**int**\> : center
- `@r` **int** : radius
- `@n` **int** : number of points
- `@o` **real** : offset theta
###
Array::remove = (e) ->
@[t..t] = [] if (t=@indexOf(e))>-1
polygon = (x,y,r=1,n=3,o=0) ->
theta = p.TWO_PI/n
p.beginShape()
for i in [0..p.TWO_PI] by theta
p.vertex(
x+p.cos(i+o)*r
y+p.sin(i+o)*r)
p.endShape(p.CLOSE)
### DOM Functions
These functions initialize and position the DOM objects
and the main canvas.
- `setupDOM`: creates DOM objects & canvas
- `drawDOM`: draws all DOM objects to the canvas
- `getInput`: collects input data, processes it, and in
the case of `p.mouseIsPressed`, it calls the mouse
event callback (otherwise it single-clicks)
###
setupDOM = ->
canvas = p.createCanvas(756,512)
canvas.parent('CoffeeSketch')
canvas.class("entry")
canvas.style("max-width", "100%")
drawDOM = ->
p.clear()
p.background(bg_img)
getInput = ->
mouse = [p.mouseX,p.mouseY]
lastMouse = [p.pmouseX,p.pmouseY]
### Mania Functions
These functions draw the stars, the planets, and carry out
the logic of the game / sketch.
- `drawReceptors`: draws the reuptake receptors on the axon
###
drawReceptors = ->
p.push()
p.translate(p.width/2-128,p.height/2-100)
p.rotate(60)
p.ellipse(0,0,30,40)
p.fill(240)
p.ellipse(10,0,10,30)
p.ellipse(-10,0,10,30)
p.pop()
p.push()
p.translate(p.width/2+128,p.height/2-100)
p.rotate(-60)
p.ellipse(0,0,30,40)
p.fill(240)
p.ellipse(10,0,10,30)
p.ellipse(-10,0,10,30)
p.pop()
|
[
{
"context": "rg/TR/websockets).\n#\n# * Copyright (C) 2010-2012 [Jeff Mesnil](http://jmesnil.net/)\n# * Copyright (C) 2012 [Fus",
"end": 165,
"score": 0.9998102784156799,
"start": 154,
"tag": "NAME",
"value": "Jeff Mesnil"
}
] | src/main/webapp/assets/lib/stomp/src/stomp.coffee | xwgx107/xwgx107 | 28 | # **STOMP Over Web Socket** is a JavaScript STOMP Client using
# [HTML5 Web Sockets API](http://www.w3.org/TR/websockets).
#
# * Copyright (C) 2010-2012 [Jeff Mesnil](http://jmesnil.net/)
# * Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
#
# This library supports:
#
# * [STOMP 1.0](http://stomp.github.com/stomp-specification-1.0.html)
# * [STOMP 1.1](http://stomp.github.com/stomp-specification-1.1.html)
#
# The library is accessed through the `Stomp` object that is set on the `window`
# when running in a Web browser.
# Define constants for bytes used throughout the code.
Byte =
# LINEFEED byte (octet 10)
LF: '\x0A'
# NULL byte (octet 0)
NULL: '\x00'
# Representation of a [STOMP frame](http://stomp.github.com/stomp-specification-1.1.html#STOMP_Frames)
class Frame
# Frame constructor
constructor: (@command, @headers={}, @body='') ->
# Provides a textual representation of the frame
# suitable to be sent to the server
toString: ->
lines = [@command]
for own name, value of @headers
lines.push("#{name}:#{value}")
lines.push("content-length:#{('' + @body).length}") if @body
lines.push(Byte.LF + @body)
return lines.join(Byte.LF)
# Unmarshall a single STOMP frame from a `data` string
@_unmarshallSingle: (data) ->
# search for 2 consecutives LF byte to split the command
# and headers from the body
divider = data.search(///#{Byte.LF}#{Byte.LF}///)
headerLines = data.substring(0, divider).split(Byte.LF)
command = headerLines.shift()
headers = {}
# utility function to trim any whitespace before and after a string
trim= (str) ->
str.replace(/^\s+|\s+$/g,'')
# Parse headers
line = idx = null
for i in [0...headerLines.length]
line = headerLines[i]
idx = line.indexOf(':')
headers[trim(line.substring(0, idx))] = trim(line.substring(idx + 1))
# Parse body
# check for content-length or topping at the first NULL byte found.
body = ''
# skip the 2 LF bytes that divides the headers from the body
start = divider + 2
if headers['content-length']
len = parseInt headers['content-length']
body = ('' + data).substring(start, start + len)
else
chr = null
for i in [start...data.length]
chr = data.charAt(i)
break if chr is Byte.NULL
body += chr
return new Frame(command, headers, body)
# Split the data before unmarshalling every single STOMP frame.
# Web socket servers can send multiple frames in a single websocket message.
#
# `datas` is a string.
#
# returns an *array* of Frame objects
@unmarshall: (datas) ->
# Ugly list comprehension to split and unmarshall *multiple STOMP frames*
# contained in a *single WebSocket frame*.
# The data are splitted when a NULL byte (follwode by zero or many LF bytes) is found
return (Frame._unmarshallSingle(data) for data in datas.split(///#{Byte.NULL}#{Byte.LF}*///) when data?.length > 0)
# Marshall a Stomp frame
@marshall: (command, headers, body) ->
frame = new Frame(command, headers, body)
return frame.toString() + Byte.NULL
# This class represent the STOMP client.
#
# All STOMP protocol is exposed as methods of this class (`connect()`,
# `send()`, etc.)
#
# For debugging purpose, it is possible to set a `debug(message)` method
# on a client instance to receive debug messages (including the actual
# transmission of the STOMP frames over the WebSocket:
#
# client.debug = function(str) {
# // append the debug log to a #debug div
# $("#debug").append(str + "\n");
# };
class Client
constructor: (@ws) ->
@ws.binaryType = "arraybuffer"
# used to index subscribers
@counter = 0
@connected = false
# Heartbeat properties of the client
@heartbeat = {
# send heartbeat every 10s by default (value is in ms)
outgoing: 10000
# expect to receive server heartbeat at least every 10s by default
# (value in ms)
incoming: 10000
}
# subscription callbacks indexed by subscriber's ID
@subscriptions = {}
_transmit: (command, headers, body) ->
out = Frame.marshall(command, headers, body)
@debug? ">>> " + out
@ws.send(out)
_setupHeartbeat: (headers) ->
return unless headers.version in [Stomp.VERSIONS.V1_1, Stomp.VERSIONS.V1_2]
# heart-beat header received from the server looks like:
#
# heart-beat: sx, sy
[serverOutgoing, serverIncoming] = (parseInt(v) for v in headers['heart-beat'].split(","))
unless @heartbeat.outgoing == 0 or serverIncoming == 0
ttl = Math.max(@heartbeat.outgoing, serverIncoming)
@debug? "send PING every #{ttl}ms"
@pinger = window?.setInterval(=>
@ws.send Byte.LF
@debug? ">>> PING"
, ttl)
unless @heartbeat.incoming == 0 or serverOutgoing == 0
ttl = Math.max(@heartbeat.incoming, serverOutgoing)
@debug? "check PONG every #{ttl}ms"
@ponger = window?.setInterval(=>
delta = Date.now() - @serverActivity
# We wait twice the TTL to be flexible on window's setInterval calls
if delta > ttl * 2
@debug? "did not receive server activity for the last #{delta}ms"
@_cleanUp()
, ttl)
# [CONNECT Frame](http://stomp.github.com/stomp-specification-1.1.html#CONNECT_or_STOMP_Frame)
connect: (login,
passcode,
@connectCallback,
errorCallback,
vhost) ->
@debug? "Opening Web Socket..."
@ws.onmessage = (evt) =>
data = if typeof(ArrayBuffer) != 'undefined' and evt.data instanceof ArrayBuffer
# the data is stored inside an ArrayBuffer, we decode it to get the
# data as a String
arr = new Uint8Array(evt.data)
@debug? "--- got data length: #{arr.length}"
# Return a string formed by all the char codes stored in the Uint8array
(String.fromCharCode(c) for c in arr).join('')
else
# take the data directly from the WebSocket `data` field
evt.data
@serverActivity = Date.now()
if data == Byte.LF # heartbeat
@debug? "<<< PONG"
return
@debug? "<<< #{data}"
# Handle STOMP frames received from the server
for frame in Frame.unmarshall(data)
switch frame.command
# [CONNECTED Frame](http://stomp.github.com/stomp-specification-1.1.html#CONNECTED_Frame)
when "CONNECTED"
@debug? "connected to server #{frame.headers.server}"
@connected = true
@_setupHeartbeat(frame.headers)
@connectCallback? frame
# [MESSAGE Frame](http://stomp.github.com/stomp-specification-1.1.html#MESSAGE)
when "MESSAGE"
# the `onreceive` callback is registered when the client calls `subscribe()`
onreceive = @subscriptions[frame.headers.subscription]
onreceive? frame
# [RECEIPT Frame](http://stomp.github.com/stomp-specification-1.1.html#RECEIPT)
#
# The client instance can set its `onreceipt` field to a function taking
# a frame argument that will be called when a receipt is received from
# the server:
#
# client.onreceipt = function(frame) {
# receiptID = frame.headers['receipt-id'];
# ...
# }
when "RECEIPT"
@onreceipt?(frame)
# [ERROR Frame](http://stomp.github.com/stomp-specification-1.1.html#ERROR)
when "ERROR"
errorCallback?(frame)
else
@debug? "Unhandled frame: #{frame}"
@ws.onclose = =>
msg = "Whoops! Lost connection to #{@ws.url}"
@debug?(msg)
errorCallback?(msg)
@ws.onopen = =>
@debug?('Web Socket Opened...')
headers = {
"accept-version": Stomp.VERSIONS.supportedVersions()
"heart-beat": [@heartbeat.outgoing, @heartbeat.incoming].join(',')
}
headers.host = vhost if vhost
headers.login = login if login
headers.passcode = passcode if passcode
@_transmit "CONNECT", headers
# [DISCONNECT Frame](http://stomp.github.com/stomp-specification-1.1.html#DISCONNECT)
disconnect: (disconnectCallback) ->
@_transmit "DISCONNECT"
# Discard the onclose callback to avoid calling the errorCallback when
# the client is properly disconnected.
@ws.onclose = null
@_cleanUp()
disconnectCallback?()
# Clean up client resources when it is disconnected or the server did not
# send heart beats in a timely fashion
_cleanUp: () ->
@ws.close()
@connected = false
window?.clearInterval(@pinger) if @pinger
window?.clearInterval(@ponger) if @ponger
# [SEND Frame](http://stomp.github.com/stomp-specification-1.1.html#SEND)
#
# * `destination` is MANDATORY.
send: (destination, headers={}, body='') ->
headers.destination = destination
@_transmit "SEND", headers, body
# [SUBSCRIBE Frame](http://stomp.github.com/stomp-specification-1.1.html#SUBSCRIBE)
subscribe: (destination, callback, headers={}) ->
# for convenience if the `id` header is not set, we create a new one for this client
# that will be returned to be able to unsubscribe this subscription
unless headers.id
headers.id = "sub-" + @counter++
headers.destination = destination
@subscriptions[headers.id] = callback
@_transmit "SUBSCRIBE", headers
return headers.id
# [UNSUBSCRIBE Frame](http://stomp.github.com/stomp-specification-1.1.html#UNSUBSCRIBE)
#
# * `id` is MANDATORY.
unsubscribe: (id) ->
delete @subscriptions[id]
@_transmit "UNSUBSCRIBE", {
id: id
}
# [BEGIN Frame](http://stomp.github.com/stomp-specification-1.1.html#BEGIN)
#
# * `transaction` is MANDATORY.
begin: (transaction) ->
@_transmit "BEGIN", {
transaction: transaction
}
# [COMMIT Frame](http://stomp.github.com/stomp-specification-1.1.html#COMMIT)
#
# * `transaction` is MANDATORY.
commit: (transaction) ->
@_transmit "COMMIT", {
transaction: transaction
}
# [ABORT Frame](http://stomp.github.com/stomp-specification-1.1.html#ABORT)
#
# * `transaction` is MANDATORY.
abort: (transaction) ->
@_transmit "ABORT", {
transaction: transaction
}
# [ACK Frame](http://stomp.github.com/stomp-specification-1.1.html#ACK)
#
# * `messageID` & `subscription` are MANDATORY.
ack: (messageID, subscription, headers = {}) ->
headers["message-id"] = messageID
headers.subscription = subscription
@_transmit "ACK", headers
# [NACK Frame](http://stomp.github.com/stomp-specification-1.1.html#NACK)
#
# * `messageID` & `subscription` are MANDATORY.
nack: (messageID, subscription, headers = {}) ->
headers["message-id"] = messageID
headers.subscription = subscription
@_transmit "NACK", headers
Stomp =
# Version of the JavaScript library. This can be used to check what has
# changed in the release notes
libVersion: "2.0.0"
VERSIONS:
V1_0: '1.0'
V1_1: '1.1'
V1_2: '1.2'
# Versions of STOMP specifications supported
supportedVersions: ->
'1.1,1.0'
# This method creates a WebSocket client that is connected to
# the STOMP server located at the url.
client: (url, protocols = ['v10.stomp', 'v11.stomp']) ->
# This is a hack to allow another implementation than the standard
# HTML5 WebSocket class.
#
# It is possible to use another class by calling
#
# Stomp.WebSocketClass = MozWebSocket
#
# *prior* to call `Stomp.client()`.
#
# This hack is deprecated and `Stomp.over()` method should be used
# instead.
klass = Stomp.WebSocketClass || WebSocket
ws = new klass(url, protocols)
new Client ws
# This method is an alternative to `Stomp.client()` to let the user
# specify the WebSocket to use (either a standard HTML5 WebSocket or
# a similar object).
over: (ws) ->
new Client ws
# For testing purpose, expose the Frame class inside Stomp to be able to
# marshall/unmarshall frames
Frame: Frame
if window?
window.Stomp = Stomp
else
exports.Stomp = Stomp
Stomp.WebSocketClass = require('./test/server.mock.js').StompServerMock
| 94291 | # **STOMP Over Web Socket** is a JavaScript STOMP Client using
# [HTML5 Web Sockets API](http://www.w3.org/TR/websockets).
#
# * Copyright (C) 2010-2012 [<NAME>](http://jmesnil.net/)
# * Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
#
# This library supports:
#
# * [STOMP 1.0](http://stomp.github.com/stomp-specification-1.0.html)
# * [STOMP 1.1](http://stomp.github.com/stomp-specification-1.1.html)
#
# The library is accessed through the `Stomp` object that is set on the `window`
# when running in a Web browser.
# Define constants for bytes used throughout the code.
Byte =
# LINEFEED byte (octet 10)
LF: '\x0A'
# NULL byte (octet 0)
NULL: '\x00'
# Representation of a [STOMP frame](http://stomp.github.com/stomp-specification-1.1.html#STOMP_Frames)
class Frame
# Frame constructor
constructor: (@command, @headers={}, @body='') ->
# Provides a textual representation of the frame
# suitable to be sent to the server
toString: ->
lines = [@command]
for own name, value of @headers
lines.push("#{name}:#{value}")
lines.push("content-length:#{('' + @body).length}") if @body
lines.push(Byte.LF + @body)
return lines.join(Byte.LF)
# Unmarshall a single STOMP frame from a `data` string
@_unmarshallSingle: (data) ->
# search for 2 consecutives LF byte to split the command
# and headers from the body
divider = data.search(///#{Byte.LF}#{Byte.LF}///)
headerLines = data.substring(0, divider).split(Byte.LF)
command = headerLines.shift()
headers = {}
# utility function to trim any whitespace before and after a string
trim= (str) ->
str.replace(/^\s+|\s+$/g,'')
# Parse headers
line = idx = null
for i in [0...headerLines.length]
line = headerLines[i]
idx = line.indexOf(':')
headers[trim(line.substring(0, idx))] = trim(line.substring(idx + 1))
# Parse body
# check for content-length or topping at the first NULL byte found.
body = ''
# skip the 2 LF bytes that divides the headers from the body
start = divider + 2
if headers['content-length']
len = parseInt headers['content-length']
body = ('' + data).substring(start, start + len)
else
chr = null
for i in [start...data.length]
chr = data.charAt(i)
break if chr is Byte.NULL
body += chr
return new Frame(command, headers, body)
# Split the data before unmarshalling every single STOMP frame.
# Web socket servers can send multiple frames in a single websocket message.
#
# `datas` is a string.
#
# returns an *array* of Frame objects
@unmarshall: (datas) ->
# Ugly list comprehension to split and unmarshall *multiple STOMP frames*
# contained in a *single WebSocket frame*.
# The data are splitted when a NULL byte (follwode by zero or many LF bytes) is found
return (Frame._unmarshallSingle(data) for data in datas.split(///#{Byte.NULL}#{Byte.LF}*///) when data?.length > 0)
# Marshall a Stomp frame
@marshall: (command, headers, body) ->
frame = new Frame(command, headers, body)
return frame.toString() + Byte.NULL
# This class represent the STOMP client.
#
# All STOMP protocol is exposed as methods of this class (`connect()`,
# `send()`, etc.)
#
# For debugging purpose, it is possible to set a `debug(message)` method
# on a client instance to receive debug messages (including the actual
# transmission of the STOMP frames over the WebSocket:
#
# client.debug = function(str) {
# // append the debug log to a #debug div
# $("#debug").append(str + "\n");
# };
class Client
constructor: (@ws) ->
@ws.binaryType = "arraybuffer"
# used to index subscribers
@counter = 0
@connected = false
# Heartbeat properties of the client
@heartbeat = {
# send heartbeat every 10s by default (value is in ms)
outgoing: 10000
# expect to receive server heartbeat at least every 10s by default
# (value in ms)
incoming: 10000
}
# subscription callbacks indexed by subscriber's ID
@subscriptions = {}
_transmit: (command, headers, body) ->
out = Frame.marshall(command, headers, body)
@debug? ">>> " + out
@ws.send(out)
_setupHeartbeat: (headers) ->
return unless headers.version in [Stomp.VERSIONS.V1_1, Stomp.VERSIONS.V1_2]
# heart-beat header received from the server looks like:
#
# heart-beat: sx, sy
[serverOutgoing, serverIncoming] = (parseInt(v) for v in headers['heart-beat'].split(","))
unless @heartbeat.outgoing == 0 or serverIncoming == 0
ttl = Math.max(@heartbeat.outgoing, serverIncoming)
@debug? "send PING every #{ttl}ms"
@pinger = window?.setInterval(=>
@ws.send Byte.LF
@debug? ">>> PING"
, ttl)
unless @heartbeat.incoming == 0 or serverOutgoing == 0
ttl = Math.max(@heartbeat.incoming, serverOutgoing)
@debug? "check PONG every #{ttl}ms"
@ponger = window?.setInterval(=>
delta = Date.now() - @serverActivity
# We wait twice the TTL to be flexible on window's setInterval calls
if delta > ttl * 2
@debug? "did not receive server activity for the last #{delta}ms"
@_cleanUp()
, ttl)
# [CONNECT Frame](http://stomp.github.com/stomp-specification-1.1.html#CONNECT_or_STOMP_Frame)
connect: (login,
passcode,
@connectCallback,
errorCallback,
vhost) ->
@debug? "Opening Web Socket..."
@ws.onmessage = (evt) =>
data = if typeof(ArrayBuffer) != 'undefined' and evt.data instanceof ArrayBuffer
# the data is stored inside an ArrayBuffer, we decode it to get the
# data as a String
arr = new Uint8Array(evt.data)
@debug? "--- got data length: #{arr.length}"
# Return a string formed by all the char codes stored in the Uint8array
(String.fromCharCode(c) for c in arr).join('')
else
# take the data directly from the WebSocket `data` field
evt.data
@serverActivity = Date.now()
if data == Byte.LF # heartbeat
@debug? "<<< PONG"
return
@debug? "<<< #{data}"
# Handle STOMP frames received from the server
for frame in Frame.unmarshall(data)
switch frame.command
# [CONNECTED Frame](http://stomp.github.com/stomp-specification-1.1.html#CONNECTED_Frame)
when "CONNECTED"
@debug? "connected to server #{frame.headers.server}"
@connected = true
@_setupHeartbeat(frame.headers)
@connectCallback? frame
# [MESSAGE Frame](http://stomp.github.com/stomp-specification-1.1.html#MESSAGE)
when "MESSAGE"
# the `onreceive` callback is registered when the client calls `subscribe()`
onreceive = @subscriptions[frame.headers.subscription]
onreceive? frame
# [RECEIPT Frame](http://stomp.github.com/stomp-specification-1.1.html#RECEIPT)
#
# The client instance can set its `onreceipt` field to a function taking
# a frame argument that will be called when a receipt is received from
# the server:
#
# client.onreceipt = function(frame) {
# receiptID = frame.headers['receipt-id'];
# ...
# }
when "RECEIPT"
@onreceipt?(frame)
# [ERROR Frame](http://stomp.github.com/stomp-specification-1.1.html#ERROR)
when "ERROR"
errorCallback?(frame)
else
@debug? "Unhandled frame: #{frame}"
@ws.onclose = =>
msg = "Whoops! Lost connection to #{@ws.url}"
@debug?(msg)
errorCallback?(msg)
@ws.onopen = =>
@debug?('Web Socket Opened...')
headers = {
"accept-version": Stomp.VERSIONS.supportedVersions()
"heart-beat": [@heartbeat.outgoing, @heartbeat.incoming].join(',')
}
headers.host = vhost if vhost
headers.login = login if login
headers.passcode = passcode if passcode
@_transmit "CONNECT", headers
# [DISCONNECT Frame](http://stomp.github.com/stomp-specification-1.1.html#DISCONNECT)
disconnect: (disconnectCallback) ->
@_transmit "DISCONNECT"
# Discard the onclose callback to avoid calling the errorCallback when
# the client is properly disconnected.
@ws.onclose = null
@_cleanUp()
disconnectCallback?()
# Clean up client resources when it is disconnected or the server did not
# send heart beats in a timely fashion
_cleanUp: () ->
@ws.close()
@connected = false
window?.clearInterval(@pinger) if @pinger
window?.clearInterval(@ponger) if @ponger
# [SEND Frame](http://stomp.github.com/stomp-specification-1.1.html#SEND)
#
# * `destination` is MANDATORY.
send: (destination, headers={}, body='') ->
headers.destination = destination
@_transmit "SEND", headers, body
# [SUBSCRIBE Frame](http://stomp.github.com/stomp-specification-1.1.html#SUBSCRIBE)
subscribe: (destination, callback, headers={}) ->
# for convenience if the `id` header is not set, we create a new one for this client
# that will be returned to be able to unsubscribe this subscription
unless headers.id
headers.id = "sub-" + @counter++
headers.destination = destination
@subscriptions[headers.id] = callback
@_transmit "SUBSCRIBE", headers
return headers.id
# [UNSUBSCRIBE Frame](http://stomp.github.com/stomp-specification-1.1.html#UNSUBSCRIBE)
#
# * `id` is MANDATORY.
unsubscribe: (id) ->
delete @subscriptions[id]
@_transmit "UNSUBSCRIBE", {
id: id
}
# [BEGIN Frame](http://stomp.github.com/stomp-specification-1.1.html#BEGIN)
#
# * `transaction` is MANDATORY.
begin: (transaction) ->
@_transmit "BEGIN", {
transaction: transaction
}
# [COMMIT Frame](http://stomp.github.com/stomp-specification-1.1.html#COMMIT)
#
# * `transaction` is MANDATORY.
commit: (transaction) ->
@_transmit "COMMIT", {
transaction: transaction
}
# [ABORT Frame](http://stomp.github.com/stomp-specification-1.1.html#ABORT)
#
# * `transaction` is MANDATORY.
abort: (transaction) ->
@_transmit "ABORT", {
transaction: transaction
}
# [ACK Frame](http://stomp.github.com/stomp-specification-1.1.html#ACK)
#
# * `messageID` & `subscription` are MANDATORY.
ack: (messageID, subscription, headers = {}) ->
headers["message-id"] = messageID
headers.subscription = subscription
@_transmit "ACK", headers
# [NACK Frame](http://stomp.github.com/stomp-specification-1.1.html#NACK)
#
# * `messageID` & `subscription` are MANDATORY.
nack: (messageID, subscription, headers = {}) ->
headers["message-id"] = messageID
headers.subscription = subscription
@_transmit "NACK", headers
Stomp =
# Version of the JavaScript library. This can be used to check what has
# changed in the release notes
libVersion: "2.0.0"
VERSIONS:
V1_0: '1.0'
V1_1: '1.1'
V1_2: '1.2'
# Versions of STOMP specifications supported
supportedVersions: ->
'1.1,1.0'
# This method creates a WebSocket client that is connected to
# the STOMP server located at the url.
client: (url, protocols = ['v10.stomp', 'v11.stomp']) ->
# This is a hack to allow another implementation than the standard
# HTML5 WebSocket class.
#
# It is possible to use another class by calling
#
# Stomp.WebSocketClass = MozWebSocket
#
# *prior* to call `Stomp.client()`.
#
# This hack is deprecated and `Stomp.over()` method should be used
# instead.
klass = Stomp.WebSocketClass || WebSocket
ws = new klass(url, protocols)
new Client ws
# This method is an alternative to `Stomp.client()` to let the user
# specify the WebSocket to use (either a standard HTML5 WebSocket or
# a similar object).
over: (ws) ->
new Client ws
# For testing purpose, expose the Frame class inside Stomp to be able to
# marshall/unmarshall frames
Frame: Frame
if window?
window.Stomp = Stomp
else
exports.Stomp = Stomp
Stomp.WebSocketClass = require('./test/server.mock.js').StompServerMock
| true | # **STOMP Over Web Socket** is a JavaScript STOMP Client using
# [HTML5 Web Sockets API](http://www.w3.org/TR/websockets).
#
# * Copyright (C) 2010-2012 [PI:NAME:<NAME>END_PI](http://jmesnil.net/)
# * Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
#
# This library supports:
#
# * [STOMP 1.0](http://stomp.github.com/stomp-specification-1.0.html)
# * [STOMP 1.1](http://stomp.github.com/stomp-specification-1.1.html)
#
# The library is accessed through the `Stomp` object that is set on the `window`
# when running in a Web browser.
# Define constants for bytes used throughout the code.
Byte =
# LINEFEED byte (octet 10)
LF: '\x0A'
# NULL byte (octet 0)
NULL: '\x00'
# Representation of a [STOMP frame](http://stomp.github.com/stomp-specification-1.1.html#STOMP_Frames)
class Frame
# Frame constructor
constructor: (@command, @headers={}, @body='') ->
# Provides a textual representation of the frame
# suitable to be sent to the server
toString: ->
lines = [@command]
for own name, value of @headers
lines.push("#{name}:#{value}")
lines.push("content-length:#{('' + @body).length}") if @body
lines.push(Byte.LF + @body)
return lines.join(Byte.LF)
# Unmarshall a single STOMP frame from a `data` string
@_unmarshallSingle: (data) ->
# search for 2 consecutives LF byte to split the command
# and headers from the body
divider = data.search(///#{Byte.LF}#{Byte.LF}///)
headerLines = data.substring(0, divider).split(Byte.LF)
command = headerLines.shift()
headers = {}
# utility function to trim any whitespace before and after a string
trim= (str) ->
str.replace(/^\s+|\s+$/g,'')
# Parse headers
line = idx = null
for i in [0...headerLines.length]
line = headerLines[i]
idx = line.indexOf(':')
headers[trim(line.substring(0, idx))] = trim(line.substring(idx + 1))
# Parse body
# check for content-length or topping at the first NULL byte found.
body = ''
# skip the 2 LF bytes that divides the headers from the body
start = divider + 2
if headers['content-length']
len = parseInt headers['content-length']
body = ('' + data).substring(start, start + len)
else
chr = null
for i in [start...data.length]
chr = data.charAt(i)
break if chr is Byte.NULL
body += chr
return new Frame(command, headers, body)
# Split the data before unmarshalling every single STOMP frame.
# Web socket servers can send multiple frames in a single websocket message.
#
# `datas` is a string.
#
# returns an *array* of Frame objects
@unmarshall: (datas) ->
# Ugly list comprehension to split and unmarshall *multiple STOMP frames*
# contained in a *single WebSocket frame*.
# The data are splitted when a NULL byte (follwode by zero or many LF bytes) is found
return (Frame._unmarshallSingle(data) for data in datas.split(///#{Byte.NULL}#{Byte.LF}*///) when data?.length > 0)
# Marshall a Stomp frame
@marshall: (command, headers, body) ->
frame = new Frame(command, headers, body)
return frame.toString() + Byte.NULL
# This class represent the STOMP client.
#
# All STOMP protocol is exposed as methods of this class (`connect()`,
# `send()`, etc.)
#
# For debugging purpose, it is possible to set a `debug(message)` method
# on a client instance to receive debug messages (including the actual
# transmission of the STOMP frames over the WebSocket:
#
# client.debug = function(str) {
# // append the debug log to a #debug div
# $("#debug").append(str + "\n");
# };
class Client
constructor: (@ws) ->
@ws.binaryType = "arraybuffer"
# used to index subscribers
@counter = 0
@connected = false
# Heartbeat properties of the client
@heartbeat = {
# send heartbeat every 10s by default (value is in ms)
outgoing: 10000
# expect to receive server heartbeat at least every 10s by default
# (value in ms)
incoming: 10000
}
# subscription callbacks indexed by subscriber's ID
@subscriptions = {}
_transmit: (command, headers, body) ->
out = Frame.marshall(command, headers, body)
@debug? ">>> " + out
@ws.send(out)
_setupHeartbeat: (headers) ->
return unless headers.version in [Stomp.VERSIONS.V1_1, Stomp.VERSIONS.V1_2]
# heart-beat header received from the server looks like:
#
# heart-beat: sx, sy
[serverOutgoing, serverIncoming] = (parseInt(v) for v in headers['heart-beat'].split(","))
unless @heartbeat.outgoing == 0 or serverIncoming == 0
ttl = Math.max(@heartbeat.outgoing, serverIncoming)
@debug? "send PING every #{ttl}ms"
@pinger = window?.setInterval(=>
@ws.send Byte.LF
@debug? ">>> PING"
, ttl)
unless @heartbeat.incoming == 0 or serverOutgoing == 0
ttl = Math.max(@heartbeat.incoming, serverOutgoing)
@debug? "check PONG every #{ttl}ms"
@ponger = window?.setInterval(=>
delta = Date.now() - @serverActivity
# We wait twice the TTL to be flexible on window's setInterval calls
if delta > ttl * 2
@debug? "did not receive server activity for the last #{delta}ms"
@_cleanUp()
, ttl)
# [CONNECT Frame](http://stomp.github.com/stomp-specification-1.1.html#CONNECT_or_STOMP_Frame)
connect: (login,
passcode,
@connectCallback,
errorCallback,
vhost) ->
@debug? "Opening Web Socket..."
@ws.onmessage = (evt) =>
data = if typeof(ArrayBuffer) != 'undefined' and evt.data instanceof ArrayBuffer
# the data is stored inside an ArrayBuffer, we decode it to get the
# data as a String
arr = new Uint8Array(evt.data)
@debug? "--- got data length: #{arr.length}"
# Return a string formed by all the char codes stored in the Uint8array
(String.fromCharCode(c) for c in arr).join('')
else
# take the data directly from the WebSocket `data` field
evt.data
@serverActivity = Date.now()
if data == Byte.LF # heartbeat
@debug? "<<< PONG"
return
@debug? "<<< #{data}"
# Handle STOMP frames received from the server
for frame in Frame.unmarshall(data)
switch frame.command
# [CONNECTED Frame](http://stomp.github.com/stomp-specification-1.1.html#CONNECTED_Frame)
when "CONNECTED"
@debug? "connected to server #{frame.headers.server}"
@connected = true
@_setupHeartbeat(frame.headers)
@connectCallback? frame
# [MESSAGE Frame](http://stomp.github.com/stomp-specification-1.1.html#MESSAGE)
when "MESSAGE"
# the `onreceive` callback is registered when the client calls `subscribe()`
onreceive = @subscriptions[frame.headers.subscription]
onreceive? frame
# [RECEIPT Frame](http://stomp.github.com/stomp-specification-1.1.html#RECEIPT)
#
# The client instance can set its `onreceipt` field to a function taking
# a frame argument that will be called when a receipt is received from
# the server:
#
# client.onreceipt = function(frame) {
# receiptID = frame.headers['receipt-id'];
# ...
# }
when "RECEIPT"
@onreceipt?(frame)
# [ERROR Frame](http://stomp.github.com/stomp-specification-1.1.html#ERROR)
when "ERROR"
errorCallback?(frame)
else
@debug? "Unhandled frame: #{frame}"
@ws.onclose = =>
msg = "Whoops! Lost connection to #{@ws.url}"
@debug?(msg)
errorCallback?(msg)
@ws.onopen = =>
@debug?('Web Socket Opened...')
headers = {
"accept-version": Stomp.VERSIONS.supportedVersions()
"heart-beat": [@heartbeat.outgoing, @heartbeat.incoming].join(',')
}
headers.host = vhost if vhost
headers.login = login if login
headers.passcode = passcode if passcode
@_transmit "CONNECT", headers
# [DISCONNECT Frame](http://stomp.github.com/stomp-specification-1.1.html#DISCONNECT)
disconnect: (disconnectCallback) ->
@_transmit "DISCONNECT"
# Discard the onclose callback to avoid calling the errorCallback when
# the client is properly disconnected.
@ws.onclose = null
@_cleanUp()
disconnectCallback?()
# Clean up client resources when it is disconnected or the server did not
# send heart beats in a timely fashion
_cleanUp: () ->
@ws.close()
@connected = false
window?.clearInterval(@pinger) if @pinger
window?.clearInterval(@ponger) if @ponger
# [SEND Frame](http://stomp.github.com/stomp-specification-1.1.html#SEND)
#
# * `destination` is MANDATORY.
send: (destination, headers={}, body='') ->
headers.destination = destination
@_transmit "SEND", headers, body
# [SUBSCRIBE Frame](http://stomp.github.com/stomp-specification-1.1.html#SUBSCRIBE)
subscribe: (destination, callback, headers={}) ->
# for convenience if the `id` header is not set, we create a new one for this client
# that will be returned to be able to unsubscribe this subscription
unless headers.id
headers.id = "sub-" + @counter++
headers.destination = destination
@subscriptions[headers.id] = callback
@_transmit "SUBSCRIBE", headers
return headers.id
# [UNSUBSCRIBE Frame](http://stomp.github.com/stomp-specification-1.1.html#UNSUBSCRIBE)
#
# * `id` is MANDATORY.
unsubscribe: (id) ->
delete @subscriptions[id]
@_transmit "UNSUBSCRIBE", {
id: id
}
# [BEGIN Frame](http://stomp.github.com/stomp-specification-1.1.html#BEGIN)
#
# * `transaction` is MANDATORY.
begin: (transaction) ->
@_transmit "BEGIN", {
transaction: transaction
}
# [COMMIT Frame](http://stomp.github.com/stomp-specification-1.1.html#COMMIT)
#
# * `transaction` is MANDATORY.
commit: (transaction) ->
@_transmit "COMMIT", {
transaction: transaction
}
# [ABORT Frame](http://stomp.github.com/stomp-specification-1.1.html#ABORT)
#
# * `transaction` is MANDATORY.
abort: (transaction) ->
@_transmit "ABORT", {
transaction: transaction
}
# [ACK Frame](http://stomp.github.com/stomp-specification-1.1.html#ACK)
#
# * `messageID` & `subscription` are MANDATORY.
ack: (messageID, subscription, headers = {}) ->
headers["message-id"] = messageID
headers.subscription = subscription
@_transmit "ACK", headers
# [NACK Frame](http://stomp.github.com/stomp-specification-1.1.html#NACK)
#
# * `messageID` & `subscription` are MANDATORY.
nack: (messageID, subscription, headers = {}) ->
headers["message-id"] = messageID
headers.subscription = subscription
@_transmit "NACK", headers
Stomp =
# Version of the JavaScript library. This can be used to check what has
# changed in the release notes
libVersion: "2.0.0"
VERSIONS:
V1_0: '1.0'
V1_1: '1.1'
V1_2: '1.2'
# Versions of STOMP specifications supported
supportedVersions: ->
'1.1,1.0'
# This method creates a WebSocket client that is connected to
# the STOMP server located at the url.
client: (url, protocols = ['v10.stomp', 'v11.stomp']) ->
# This is a hack to allow another implementation than the standard
# HTML5 WebSocket class.
#
# It is possible to use another class by calling
#
# Stomp.WebSocketClass = MozWebSocket
#
# *prior* to call `Stomp.client()`.
#
# This hack is deprecated and `Stomp.over()` method should be used
# instead.
klass = Stomp.WebSocketClass || WebSocket
ws = new klass(url, protocols)
new Client ws
# This method is an alternative to `Stomp.client()` to let the user
# specify the WebSocket to use (either a standard HTML5 WebSocket or
# a similar object).
over: (ws) ->
new Client ws
# For testing purpose, expose the Frame class inside Stomp to be able to
# marshall/unmarshall frames
Frame: Frame
if window?
window.Stomp = Stomp
else
exports.Stomp = Stomp
Stomp.WebSocketClass = require('./test/server.mock.js').StompServerMock
|
[
{
"context": "e 'Chrono Jigga'\n expect(album.author).toBe '2 Mello'\n expect(album.license).toBe 'by-nc'\n e",
"end": 837,
"score": 0.9829649925231934,
"start": 830,
"tag": "NAME",
"value": "2 Mello"
}
] | test/index.coffee | 59naga/band-camp | 2 | # Dependencies
bandcamp= require '../src'
# Environment
jasmine.DEFAULT_TIMEOUT_INTERVAL= 5000
# Specs
describe 'bandcamp',->
it '.summaries',(done)->
expect(bandcamp.summaries).toBe bandcamp
bandcamp 'vgm'
.then (summaries)->
expect(summaries.length).toBe 40
summary= summaries[summaries.length-1]
expect(summary.url).toBeTruthy()
expect(summary.thumbnail).toBeTruthy()
expect(summary.title).toBeTruthy()
expect(summary.author).toBeTruthy()
done()
it '.albums',(done)->
bandcamp.albums [
'https://2mellomakes.bandcamp.com/album/chrono-jigga'
]
.then (albums)->
album= albums[0]
expect(album.url).toBe 'https://2mellomakes.bandcamp.com/album/chrono-jigga'
expect(album.title).toBe 'Chrono Jigga'
expect(album.author).toBe '2 Mello'
expect(album.license).toBe 'by-nc'
expect(album.artwork).toBe 'https://f1.bcbits.com/img/a2173525289_10.jpg'
expect(album.thumbnail).toBe 'https://f1.bcbits.com/img/a2173525289_16.jpg'
expect(album.tracks.length).toBe 12
expect(album.tracks[0].title).toBe 'Intro'
expect(album.tracks[0].url).toMatch '//popplers5.bandcamp.com/'
expect(album.tracks[0].time).toBe '00:19'
expect(album.tracks[11].title).toBe 'Outro'
expect(album.tracks[11].url).toMatch '//popplers5.bandcamp.com/'
expect(album.tracks[11].time).toBe '01:07'
expect(album.fans.length).toBe 0
expect(album.description).toBeTruthy()
expect(album.credits).toBeTruthy()
done()
it '.search',(done)->
keys= ['type','url','heading','subhead','genre','tags','released']
types= ['ARTIST','ALBUM','TRACK','FAN']
bandcamp.search '初音ミク'
.then (items)->
for item in items
expect(keys).toEqual jasmine.arrayContaining Object.keys item
expect(types).toEqual jasmine.arrayContaining [item.type]
expect(item.url).toBeTruthy()
expect(item.heading).toBeTruthy()
done()
it '.tags',(done)->
bandcamp.tags()
.then ({tags,locations})->
expect(tags.length).toBeGreaterThan 300
expect(locations.length).toBeGreaterThan 300
done()
describe 'issues',->
it '#1',(done)->
bandcamp '初音ミク'
.then (summaries)->
expect(summaries.length).toBeGreaterThan 1
summary= summaries[summaries.length-1]
expect(summary.url).toBeTruthy()
expect(summary.thumbnail).toBeTruthy()
expect(summary.title).toBeTruthy()
expect(summary.author).toBeTruthy()
done()
| 109694 | # Dependencies
bandcamp= require '../src'
# Environment
jasmine.DEFAULT_TIMEOUT_INTERVAL= 5000
# Specs
describe 'bandcamp',->
it '.summaries',(done)->
expect(bandcamp.summaries).toBe bandcamp
bandcamp 'vgm'
.then (summaries)->
expect(summaries.length).toBe 40
summary= summaries[summaries.length-1]
expect(summary.url).toBeTruthy()
expect(summary.thumbnail).toBeTruthy()
expect(summary.title).toBeTruthy()
expect(summary.author).toBeTruthy()
done()
it '.albums',(done)->
bandcamp.albums [
'https://2mellomakes.bandcamp.com/album/chrono-jigga'
]
.then (albums)->
album= albums[0]
expect(album.url).toBe 'https://2mellomakes.bandcamp.com/album/chrono-jigga'
expect(album.title).toBe 'Chrono Jigga'
expect(album.author).toBe '<NAME>'
expect(album.license).toBe 'by-nc'
expect(album.artwork).toBe 'https://f1.bcbits.com/img/a2173525289_10.jpg'
expect(album.thumbnail).toBe 'https://f1.bcbits.com/img/a2173525289_16.jpg'
expect(album.tracks.length).toBe 12
expect(album.tracks[0].title).toBe 'Intro'
expect(album.tracks[0].url).toMatch '//popplers5.bandcamp.com/'
expect(album.tracks[0].time).toBe '00:19'
expect(album.tracks[11].title).toBe 'Outro'
expect(album.tracks[11].url).toMatch '//popplers5.bandcamp.com/'
expect(album.tracks[11].time).toBe '01:07'
expect(album.fans.length).toBe 0
expect(album.description).toBeTruthy()
expect(album.credits).toBeTruthy()
done()
it '.search',(done)->
keys= ['type','url','heading','subhead','genre','tags','released']
types= ['ARTIST','ALBUM','TRACK','FAN']
bandcamp.search '初音ミク'
.then (items)->
for item in items
expect(keys).toEqual jasmine.arrayContaining Object.keys item
expect(types).toEqual jasmine.arrayContaining [item.type]
expect(item.url).toBeTruthy()
expect(item.heading).toBeTruthy()
done()
it '.tags',(done)->
bandcamp.tags()
.then ({tags,locations})->
expect(tags.length).toBeGreaterThan 300
expect(locations.length).toBeGreaterThan 300
done()
describe 'issues',->
it '#1',(done)->
bandcamp '初音ミク'
.then (summaries)->
expect(summaries.length).toBeGreaterThan 1
summary= summaries[summaries.length-1]
expect(summary.url).toBeTruthy()
expect(summary.thumbnail).toBeTruthy()
expect(summary.title).toBeTruthy()
expect(summary.author).toBeTruthy()
done()
| true | # Dependencies
bandcamp= require '../src'
# Environment
jasmine.DEFAULT_TIMEOUT_INTERVAL= 5000
# Specs
describe 'bandcamp',->
it '.summaries',(done)->
expect(bandcamp.summaries).toBe bandcamp
bandcamp 'vgm'
.then (summaries)->
expect(summaries.length).toBe 40
summary= summaries[summaries.length-1]
expect(summary.url).toBeTruthy()
expect(summary.thumbnail).toBeTruthy()
expect(summary.title).toBeTruthy()
expect(summary.author).toBeTruthy()
done()
it '.albums',(done)->
bandcamp.albums [
'https://2mellomakes.bandcamp.com/album/chrono-jigga'
]
.then (albums)->
album= albums[0]
expect(album.url).toBe 'https://2mellomakes.bandcamp.com/album/chrono-jigga'
expect(album.title).toBe 'Chrono Jigga'
expect(album.author).toBe 'PI:NAME:<NAME>END_PI'
expect(album.license).toBe 'by-nc'
expect(album.artwork).toBe 'https://f1.bcbits.com/img/a2173525289_10.jpg'
expect(album.thumbnail).toBe 'https://f1.bcbits.com/img/a2173525289_16.jpg'
expect(album.tracks.length).toBe 12
expect(album.tracks[0].title).toBe 'Intro'
expect(album.tracks[0].url).toMatch '//popplers5.bandcamp.com/'
expect(album.tracks[0].time).toBe '00:19'
expect(album.tracks[11].title).toBe 'Outro'
expect(album.tracks[11].url).toMatch '//popplers5.bandcamp.com/'
expect(album.tracks[11].time).toBe '01:07'
expect(album.fans.length).toBe 0
expect(album.description).toBeTruthy()
expect(album.credits).toBeTruthy()
done()
it '.search',(done)->
keys= ['type','url','heading','subhead','genre','tags','released']
types= ['ARTIST','ALBUM','TRACK','FAN']
bandcamp.search '初音ミク'
.then (items)->
for item in items
expect(keys).toEqual jasmine.arrayContaining Object.keys item
expect(types).toEqual jasmine.arrayContaining [item.type]
expect(item.url).toBeTruthy()
expect(item.heading).toBeTruthy()
done()
it '.tags',(done)->
bandcamp.tags()
.then ({tags,locations})->
expect(tags.length).toBeGreaterThan 300
expect(locations.length).toBeGreaterThan 300
done()
describe 'issues',->
it '#1',(done)->
bandcamp '初音ミク'
.then (summaries)->
expect(summaries.length).toBeGreaterThan 1
summary= summaries[summaries.length-1]
expect(summary.url).toBeTruthy()
expect(summary.thumbnail).toBeTruthy()
expect(summary.title).toBeTruthy()
expect(summary.author).toBeTruthy()
done()
|
[
{
"context": "\n\nvm = new Vue({\n el: '#app',\n data:\n name: 'Taylor' # Change me to something else!\n })\n",
"end": 77,
"score": 0.999528706073761,
"start": 71,
"tag": "NAME",
"value": "Taylor"
}
] | src/app.coffee | taylorzane/skeletons | 0 | require './app.scss'
vm = new Vue({
el: '#app',
data:
name: 'Taylor' # Change me to something else!
})
| 211373 | require './app.scss'
vm = new Vue({
el: '#app',
data:
name: '<NAME>' # Change me to something else!
})
| true | require './app.scss'
vm = new Vue({
el: '#app',
data:
name: 'PI:NAME:<NAME>END_PI' # Change me to something else!
})
|
[
{
"context": "###\nJeannie\n@class Jeannie\n@author Jan Sanchez\n###\n\n###\n# Module dependencies.\n###\n\nyaml = requi",
"end": 46,
"score": 0.9998604655265808,
"start": 35,
"tag": "NAME",
"value": "Jan Sanchez"
}
] | source/coffee/package/lib/jeannie.coffee | jansanchez/jeannie | 0 | ###
Jeannie
@class Jeannie
@author Jan Sanchez
###
###
# Module dependencies.
###
yaml = require('js-yaml')
hbs = require('handlebars')
path = require('path')
fs = require('fs')
extend = require('util')._extend
###
# Library.
###
Jeannie = (opts) ->
@defaults = {}
@settings = {}
@json = {}
@output = []
@setDefaults()
@toExtend(opts)
@getJson()
@toProcess('header')
return @
Jeannie::setDefaults = ()->
@defaults = {
debug: false,
path: {
header : __dirname + '../../../../templates/header.hbs'
implementation: __dirname + '../../../../templates/implementation.hbs'
}
}
return
Jeannie::toExtend = (opts)->
@settings = extend(@defaults, opts)
if @settings.debug
console.log(@settings)
return
Jeannie::getJson = ()->
@json = yaml.safeLoad(@settings.content)
if @settings.debug
console.log(@json)
return
Jeannie::toProcess= (type)->
pathTemplate = path.join(@settings.path[type])
source = fs.readFileSync(pathTemplate).toString()
template = hbs.compile(source)
@output[type] = (template(@json))
if @settings.debug
console.log(@output)
return
###
# Expose library
###
module.exports = Jeannie
| 173879 | ###
Jeannie
@class Jeannie
@author <NAME>
###
###
# Module dependencies.
###
yaml = require('js-yaml')
hbs = require('handlebars')
path = require('path')
fs = require('fs')
extend = require('util')._extend
###
# Library.
###
Jeannie = (opts) ->
@defaults = {}
@settings = {}
@json = {}
@output = []
@setDefaults()
@toExtend(opts)
@getJson()
@toProcess('header')
return @
Jeannie::setDefaults = ()->
@defaults = {
debug: false,
path: {
header : __dirname + '../../../../templates/header.hbs'
implementation: __dirname + '../../../../templates/implementation.hbs'
}
}
return
Jeannie::toExtend = (opts)->
@settings = extend(@defaults, opts)
if @settings.debug
console.log(@settings)
return
Jeannie::getJson = ()->
@json = yaml.safeLoad(@settings.content)
if @settings.debug
console.log(@json)
return
Jeannie::toProcess= (type)->
pathTemplate = path.join(@settings.path[type])
source = fs.readFileSync(pathTemplate).toString()
template = hbs.compile(source)
@output[type] = (template(@json))
if @settings.debug
console.log(@output)
return
###
# Expose library
###
module.exports = Jeannie
| true | ###
Jeannie
@class Jeannie
@author PI:NAME:<NAME>END_PI
###
###
# Module dependencies.
###
yaml = require('js-yaml')
hbs = require('handlebars')
path = require('path')
fs = require('fs')
extend = require('util')._extend
###
# Library.
###
Jeannie = (opts) ->
@defaults = {}
@settings = {}
@json = {}
@output = []
@setDefaults()
@toExtend(opts)
@getJson()
@toProcess('header')
return @
Jeannie::setDefaults = ()->
@defaults = {
debug: false,
path: {
header : __dirname + '../../../../templates/header.hbs'
implementation: __dirname + '../../../../templates/implementation.hbs'
}
}
return
Jeannie::toExtend = (opts)->
@settings = extend(@defaults, opts)
if @settings.debug
console.log(@settings)
return
Jeannie::getJson = ()->
@json = yaml.safeLoad(@settings.content)
if @settings.debug
console.log(@json)
return
Jeannie::toProcess= (type)->
pathTemplate = path.join(@settings.path[type])
source = fs.readFileSync(pathTemplate).toString()
template = hbs.compile(source)
@output[type] = (template(@json))
if @settings.debug
console.log(@output)
return
###
# Expose library
###
module.exports = Jeannie
|
[
{
"context": "me_state, x=0, y=0, frame='cactus') ->\n key = 'atlas'\n frame = \"terrain/#{frame}\"\n super @game, ",
"end": 117,
"score": 0.934410035610199,
"start": 112,
"tag": "KEY",
"value": "atlas"
}
] | src/coffeescripts/game/sprites/Terrain.coffee | rongierlach/gunfight-game | 0 | class Terrain extends Phaser.Sprite
constructor: (@game, @game_state, x=0, y=0, frame='cactus') ->
key = 'atlas'
frame = "terrain/#{frame}"
super @game, x, y, key, frame
# set physics body
@game.physics.enable @, Phaser.Physics.ARCADE
@body.immovable = true
# clean up
@game.add.existing @
# add crop rect
@cropRect = @game.add.graphics()
return @
deform: (collision_y) ->
height = collision_y - @y
# deform body
@body.setSize @width, @height - height, 0, height
@drawRect height
reload: -> @cropRect.clear()
drawRect: (height) ->
@cropRect.lineStyle 0
@cropRect.beginFill "0x000000"
@cropRect.drawRect @x, @y, @width, height
@cropRect.endFill()
@game.world.bringToTop @cropRect
module.exports = Terrain
| 136806 | class Terrain extends Phaser.Sprite
constructor: (@game, @game_state, x=0, y=0, frame='cactus') ->
key = '<KEY>'
frame = "terrain/#{frame}"
super @game, x, y, key, frame
# set physics body
@game.physics.enable @, Phaser.Physics.ARCADE
@body.immovable = true
# clean up
@game.add.existing @
# add crop rect
@cropRect = @game.add.graphics()
return @
deform: (collision_y) ->
height = collision_y - @y
# deform body
@body.setSize @width, @height - height, 0, height
@drawRect height
reload: -> @cropRect.clear()
drawRect: (height) ->
@cropRect.lineStyle 0
@cropRect.beginFill "0x000000"
@cropRect.drawRect @x, @y, @width, height
@cropRect.endFill()
@game.world.bringToTop @cropRect
module.exports = Terrain
| true | class Terrain extends Phaser.Sprite
constructor: (@game, @game_state, x=0, y=0, frame='cactus') ->
key = 'PI:KEY:<KEY>END_PI'
frame = "terrain/#{frame}"
super @game, x, y, key, frame
# set physics body
@game.physics.enable @, Phaser.Physics.ARCADE
@body.immovable = true
# clean up
@game.add.existing @
# add crop rect
@cropRect = @game.add.graphics()
return @
deform: (collision_y) ->
height = collision_y - @y
# deform body
@body.setSize @width, @height - height, 0, height
@drawRect height
reload: -> @cropRect.clear()
drawRect: (height) ->
@cropRect.lineStyle 0
@cropRect.beginFill "0x000000"
@cropRect.drawRect @x, @y, @width, height
@cropRect.endFill()
@game.world.bringToTop @cropRect
module.exports = Terrain
|
[
{
"context": "ecret'\n authentication['refresh_token'] = 'abc123'\n authentication['access_token'] = 'def123",
"end": 574,
"score": 0.8817922472953796,
"start": 568,
"tag": "PASSWORD",
"value": "abc123"
},
{
"context": "abc123'\n authentication['access_token'] = ... | test/auth/set-cookies-spec.coffee | theodorick/ocelot | 13 | assert = require('assert')
setCookies = require('../../src/auth/set-cookies')
crypt = require('../../src/auth/crypt')
res = {}
route = {}
authentication = {}
auth = {}
beforeEach ->
res = {}
route = {}
authentication = {}
auth = {}
describe 'set cookies', ->
it 'returns tokens with path equal to route key', ->
res.setHeader = (name, value) ->
@[name] = value
route['cookie-name'] = 'mycookie'
route['route'] = 'domain/abc'
route['client-secret'] = 'secret'
authentication['refresh_token'] = 'abc123'
authentication['access_token'] = 'def123'
authentication['id_token'] = 'ghi123'
setCookies.setAuthCookies res, route, authentication
.then ->
assert.equal res['Set-Cookie'].indexOf('mycookie=def123; path=/abc') > -1, true
assert.equal res['Set-Cookie'].indexOf("mycookie_rt=#{crypt.encrypt(authentication.refresh_token, route['client-secret'])};HttpOnly; path=/abc") > -1, true
it 'overrides the route key if you have a cookie path on your route', ->
res.setHeader = (name, value) ->
@[name] = value
route['cookie-name'] = 'mycookie'
route['cookie-path'] = '/zzz'
route['route'] = 'abc'
route['client-secret'] = 'secret'
authentication['refresh_token'] = 'abc123'
authentication['access_token'] = 'def123'
setCookies.setAuthCookies res, route, authentication
.then ->
assert.equal res['Set-Cookie'].indexOf('mycookie=def123; path=/zzz') > -1, true
assert.equal res['Set-Cookie'].indexOf("mycookie_rt=#{crypt.encrypt(authentication.refresh_token, route['client-secret'])};HttpOnly; path=/zzz") > -1, true
it 'allows you to set a cookie domain on your route', ->
res.setHeader = (name, value) ->
@[name] = value
route['cookie-name'] = 'mycookie'
route['cookie-path'] = '/zzz'
route['cookie-domain'] = 'xyz'
route['route'] = 'abc'
route['client-secret'] = 'secret'
authentication['refresh_token'] = 'abc123'
authentication['access_token'] = 'def123'
setCookies.setAuthCookies res, route, authentication
.then ->
assert.equal res['Set-Cookie'].indexOf('mycookie=def123; path=/zzz; domain=xyz') > -1, true
| 65597 | assert = require('assert')
setCookies = require('../../src/auth/set-cookies')
crypt = require('../../src/auth/crypt')
res = {}
route = {}
authentication = {}
auth = {}
beforeEach ->
res = {}
route = {}
authentication = {}
auth = {}
describe 'set cookies', ->
it 'returns tokens with path equal to route key', ->
res.setHeader = (name, value) ->
@[name] = value
route['cookie-name'] = 'mycookie'
route['route'] = 'domain/abc'
route['client-secret'] = 'secret'
authentication['refresh_token'] = '<PASSWORD>'
authentication['access_token'] = '<PASSWORD>'
authentication['id_token'] = '<PASSWORD>'
setCookies.setAuthCookies res, route, authentication
.then ->
assert.equal res['Set-Cookie'].indexOf('mycookie=def123; path=/abc') > -1, true
assert.equal res['Set-Cookie'].indexOf("mycookie_rt=#{crypt.encrypt(authentication.refresh_token, route['client-secret'])};HttpOnly; path=/abc") > -1, true
it 'overrides the route key if you have a cookie path on your route', ->
res.setHeader = (name, value) ->
@[name] = value
route['cookie-name'] = 'mycookie'
route['cookie-path'] = '/zzz'
route['route'] = 'abc'
route['client-secret'] = 'secret'
authentication['refresh_token'] = '<PASSWORD>'
authentication['access_token'] = '<PASSWORD>'
setCookies.setAuthCookies res, route, authentication
.then ->
assert.equal res['Set-Cookie'].indexOf('mycookie=def123; path=/zzz') > -1, true
assert.equal res['Set-Cookie'].indexOf("mycookie_rt=#{crypt.encrypt(authentication.refresh_token, route['client-secret'])};HttpOnly; path=/zzz") > -1, true
it 'allows you to set a cookie domain on your route', ->
res.setHeader = (name, value) ->
@[name] = value
route['cookie-name'] = 'mycookie'
route['cookie-path'] = '/zzz'
route['cookie-domain'] = 'xyz'
route['route'] = 'abc'
route['client-secret'] = 'secret'
authentication['refresh_token'] = '<PASSWORD>'
authentication['access_token'] = '<PASSWORD>'
setCookies.setAuthCookies res, route, authentication
.then ->
assert.equal res['Set-Cookie'].indexOf('mycookie=def123; path=/zzz; domain=xyz') > -1, true
| true | assert = require('assert')
setCookies = require('../../src/auth/set-cookies')
crypt = require('../../src/auth/crypt')
res = {}
route = {}
authentication = {}
auth = {}
beforeEach ->
res = {}
route = {}
authentication = {}
auth = {}
describe 'set cookies', ->
it 'returns tokens with path equal to route key', ->
res.setHeader = (name, value) ->
@[name] = value
route['cookie-name'] = 'mycookie'
route['route'] = 'domain/abc'
route['client-secret'] = 'secret'
authentication['refresh_token'] = 'PI:PASSWORD:<PASSWORD>END_PI'
authentication['access_token'] = 'PI:PASSWORD:<PASSWORD>END_PI'
authentication['id_token'] = 'PI:PASSWORD:<PASSWORD>END_PI'
setCookies.setAuthCookies res, route, authentication
.then ->
assert.equal res['Set-Cookie'].indexOf('mycookie=def123; path=/abc') > -1, true
assert.equal res['Set-Cookie'].indexOf("mycookie_rt=#{crypt.encrypt(authentication.refresh_token, route['client-secret'])};HttpOnly; path=/abc") > -1, true
it 'overrides the route key if you have a cookie path on your route', ->
res.setHeader = (name, value) ->
@[name] = value
route['cookie-name'] = 'mycookie'
route['cookie-path'] = '/zzz'
route['route'] = 'abc'
route['client-secret'] = 'secret'
authentication['refresh_token'] = 'PI:PASSWORD:<PASSWORD>END_PI'
authentication['access_token'] = 'PI:PASSWORD:<PASSWORD>END_PI'
setCookies.setAuthCookies res, route, authentication
.then ->
assert.equal res['Set-Cookie'].indexOf('mycookie=def123; path=/zzz') > -1, true
assert.equal res['Set-Cookie'].indexOf("mycookie_rt=#{crypt.encrypt(authentication.refresh_token, route['client-secret'])};HttpOnly; path=/zzz") > -1, true
it 'allows you to set a cookie domain on your route', ->
res.setHeader = (name, value) ->
@[name] = value
route['cookie-name'] = 'mycookie'
route['cookie-path'] = '/zzz'
route['cookie-domain'] = 'xyz'
route['route'] = 'abc'
route['client-secret'] = 'secret'
authentication['refresh_token'] = 'PI:PASSWORD:<PASSWORD>END_PI'
authentication['access_token'] = 'PI:PASSWORD:<PASSWORD>END_PI'
setCookies.setAuthCookies res, route, authentication
.then ->
assert.equal res['Set-Cookie'].indexOf('mycookie=def123; path=/zzz; domain=xyz') > -1, true
|
[
{
"context": "url: \"https://docs.google.com/spreadsheet/ccc?key=0Au4e-jj1-69ZdEloMW03UExKLXI3cGRlbkJteGZFSUE#gid=0\"\n\nFunction.prototype.toString=null\n\n#WidLib",
"end": 913,
"score": 0.9997633099555969,
"start": 869,
"tag": "KEY",
"value": "0Au4e-jj1-69ZdEloMW03UExKLXI3cGRlbkJteGZFSUE"
... | examples/full_spec.js.coffee | ulitiy/WidLib | 1 | Widlib.templateEngines=[]
widget=new Widlib.Widget template: "pizza" # default, фолдбэк к совсем стандартному
widget.setRemoteScript
pages:
default:
template: "default" #default
body: "default"
inputs: -> @data "defaultInputs"
inputs: [{name: "phone", type: "text", placeholder: "+7 xxx xx xx"},{type: "submit", value: "Далее"}]
image: -> @imagePath @session("type")
onSubmit: "selectSize" #default, next
onSubmit: ->
@pushData "orders", @session()
"success"
onLeave: ->
onEnter: ->
ways: ["p1","p2"]
set: "type" #default
data:
types: [
{ value: "Маргарита", type: "link", name: "pizza_type", body: "Маргарита", price: 350, description: "" }
]
sizes: [ 30, 40, 50 ]
orders:
type: "spreadsheet"
url: "https://docs.google.com/spreadsheet/ccc?key=0Au4e-jj1-69ZdEloMW03UExKLXI3cGRlbkJteGZFSUE#gid=0"
Function.prototype.toString=null
#WidLib codeless framework for interactive apps
#session можно не хранить в БД, просто держать в памяти. Можно во временной БД.
#А как же долгое взаимодействие?
#session может хранить любые переменные или объекты
#remoteScript работает удаленно, если это возможно.
#localScript работает всегда локально.
#widlib template engines
# inputs ФОРМАТ???
# как сохраняются ответы? в виде inputs? В виде value! м.б. ассоциативный массив value: {}, тогда будет довольно просто его получить.
# session - как работает на клиенте, а как на сервере? Синхронизация при каждом запросе.
# Как работает сохранение сессии? см. выше.
# data - как на сервере/клиенте? на клиенте - только локальные данные.
# RPC неявные вставки. ок.
# Везде геттеры/сеттеры. Где везде? Data и Session
# Как работать с вложенными объектами mongodb?
# НИКАКОГО ДОСТУПА с клиентсайда и всё. Хочешь получить серверные данные - запрашивай серверную страницу.
# сессия - наоборот, полный доступ из всех мест. А точнее даже, отправляется при каждом действии (а если сейчас работаем локально???).
# local.onSubmit session.sync() зачем? хочешь синхронизироваться - делай онлайн.
# м.б. сделать 3 типа - local (всё локально), remote (темплейты локально, а код - на сервере), protected (все на сервере). Но чем поможет локальный темплейт,
# если данные не успевают. М.б. тогда проще отдельно явно обращаться к remote
# ДА! Важна возможность явного обращения к remote!!!
d=@data("type").create/get
d.set(1,2)
d.get(1)
+underscore
binding? page!!!
1 database per script/user?
Structure
widget
local
pages
inputs
data
remote
Structure inner
widget (local/remote)
pages of type Page
data of type Adapter | 15551 | Widlib.templateEngines=[]
widget=new Widlib.Widget template: "pizza" # default, фолдбэк к совсем стандартному
widget.setRemoteScript
pages:
default:
template: "default" #default
body: "default"
inputs: -> @data "defaultInputs"
inputs: [{name: "phone", type: "text", placeholder: "+7 xxx xx xx"},{type: "submit", value: "Далее"}]
image: -> @imagePath @session("type")
onSubmit: "selectSize" #default, next
onSubmit: ->
@pushData "orders", @session()
"success"
onLeave: ->
onEnter: ->
ways: ["p1","p2"]
set: "type" #default
data:
types: [
{ value: "Маргарита", type: "link", name: "pizza_type", body: "Маргарита", price: 350, description: "" }
]
sizes: [ 30, 40, 50 ]
orders:
type: "spreadsheet"
url: "https://docs.google.com/spreadsheet/ccc?key=<KEY>#gid=0"
Function.prototype.toString=null
#WidLib codeless framework for interactive apps
#session можно не хранить в БД, просто держать в памяти. Можно во временной БД.
#А как же долгое взаимодействие?
#session может хранить любые переменные или объекты
#remoteScript работает удаленно, если это возможно.
#localScript работает всегда локально.
#widlib template engines
# inputs ФОРМАТ???
# как сохраняются ответы? в виде inputs? В виде value! м.б. ассоциативный массив value: {}, тогда будет довольно просто его получить.
# session - как работает на клиенте, а как на сервере? Синхронизация при каждом запросе.
# Как работает сохранение сессии? см. выше.
# data - как на сервере/клиенте? на клиенте - только локальные данные.
# RPC неявные вставки. ок.
# Везде геттеры/сеттеры. Где везде? Data и Session
# Как работать с вложенными объектами mongodb?
# НИКАКОГО ДОСТУПА с клиентсайда и всё. Хочешь получить серверные данные - запрашивай серверную страницу.
# сессия - наоборот, полный доступ из всех мест. А точнее даже, отправляется при каждом действии (а если сейчас работаем локально???).
# local.onSubmit session.sync() зачем? хочешь синхронизироваться - делай онлайн.
# м.б. сделать 3 типа - local (всё локально), remote (темплейты локально, а код - на сервере), protected (все на сервере). Но чем поможет локальный темплейт,
# если данные не успевают. М.б. тогда проще отдельно явно обращаться к remote
# ДА! Важна возможность явного обращения к remote!!!
d=@data("type").create/get
d.set(1,2)
d.get(1)
+underscore
binding? page!!!
1 database per script/user?
Structure
widget
local
pages
inputs
data
remote
Structure inner
widget (local/remote)
pages of type Page
data of type Adapter | true | Widlib.templateEngines=[]
widget=new Widlib.Widget template: "pizza" # default, фолдбэк к совсем стандартному
widget.setRemoteScript
pages:
default:
template: "default" #default
body: "default"
inputs: -> @data "defaultInputs"
inputs: [{name: "phone", type: "text", placeholder: "+7 xxx xx xx"},{type: "submit", value: "Далее"}]
image: -> @imagePath @session("type")
onSubmit: "selectSize" #default, next
onSubmit: ->
@pushData "orders", @session()
"success"
onLeave: ->
onEnter: ->
ways: ["p1","p2"]
set: "type" #default
data:
types: [
{ value: "Маргарита", type: "link", name: "pizza_type", body: "Маргарита", price: 350, description: "" }
]
sizes: [ 30, 40, 50 ]
orders:
type: "spreadsheet"
url: "https://docs.google.com/spreadsheet/ccc?key=PI:KEY:<KEY>END_PI#gid=0"
Function.prototype.toString=null
#WidLib codeless framework for interactive apps
#session можно не хранить в БД, просто держать в памяти. Можно во временной БД.
#А как же долгое взаимодействие?
#session может хранить любые переменные или объекты
#remoteScript работает удаленно, если это возможно.
#localScript работает всегда локально.
#widlib template engines
# inputs ФОРМАТ???
# как сохраняются ответы? в виде inputs? В виде value! м.б. ассоциативный массив value: {}, тогда будет довольно просто его получить.
# session - как работает на клиенте, а как на сервере? Синхронизация при каждом запросе.
# Как работает сохранение сессии? см. выше.
# data - как на сервере/клиенте? на клиенте - только локальные данные.
# RPC неявные вставки. ок.
# Везде геттеры/сеттеры. Где везде? Data и Session
# Как работать с вложенными объектами mongodb?
# НИКАКОГО ДОСТУПА с клиентсайда и всё. Хочешь получить серверные данные - запрашивай серверную страницу.
# сессия - наоборот, полный доступ из всех мест. А точнее даже, отправляется при каждом действии (а если сейчас работаем локально???).
# local.onSubmit session.sync() зачем? хочешь синхронизироваться - делай онлайн.
# м.б. сделать 3 типа - local (всё локально), remote (темплейты локально, а код - на сервере), protected (все на сервере). Но чем поможет локальный темплейт,
# если данные не успевают. М.б. тогда проще отдельно явно обращаться к remote
# ДА! Важна возможность явного обращения к remote!!!
d=@data("type").create/get
d.set(1,2)
d.get(1)
+underscore
binding? page!!!
1 database per script/user?
Structure
widget
local
pages
inputs
data
remote
Structure inner
widget (local/remote)
pages of type Page
data of type Adapter |
[
{
"context": " debug :\n host : '127.0.0.1'\n port : 1111\n runInBac",
"end": 5166,
"score": 0.9997713565826416,
"start": 5157,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": " compiled :\n host ... | Gruntfile.coffee | dashersw/spark | 1 | module.exports = (grunt) ->
grunt.initConfig
clean :
all :
options :
force : yes
src : 'build'
mkdir :
all :
options :
create : [
'src/lib'
'src/externs'
'src/images'
'src/themes/edge'
'src/lib/templates'
'src/third-party'
'build/css'
'build/compiled'
'build/images'
]
copy :
examples :
expand : yes
cwd : 'src/examples'
src : '**'
dest : 'build/docs/examples'
allJS :
src : 'build/compiled/compiled.js'
dest : 'build/docs/compiled.js'
allCSS :
src : 'build/css/spark.css'
dest : 'build/docs/spark.css'
coffee :
all :
options :
bare : yes
files : [
expand : yes
cwd : 'src'
src : [ 'lib/**/*.coffee', 'tests/**/*.coffee' ]
dest : 'build/js/'
ext : '.js'
]
examples :
options :
bare : yes
files : [
expand : yes
cwd : 'src/examples'
src : [ '**/*.coffee' ]
dest : 'src/examples'
ext : '.js'
]
coffee2closure :
all :
files : [
expand : yes
src : [ 'build/js/lib/**/*.js', '!build/js/lib/templates/**/*.js' ]
ext : '.js'
]
stylus :
options :
'include css' : yes
all :
files : [
compress : no
expand : yes
cwd : 'src/themes/edge'
src : [ '**/*.styl', '!imports.styl' ]
dest : 'build/css'
ext : '.css'
]
concat :
files : [
expand : yes
cwd : 'src/themes/edge'
src : 'imports.styl'
dest : 'build/css/'
ext : '.css'
]
examples :
files : [
compress : yes
expand : yes
cwd : 'src/examples'
src : [ '**/*.styl' ]
dest : 'src/examples'
ext : '.css'
]
templates :
all :
src : 'src/lib/templates/**/*.soy'
dest : 'build/js/lib/templates/'
deps :
all :
options :
outputFile : 'build/deps.js'
prefix : '../../../../'
root : [
'bower_components/closure-library'
'bower_components/closure-templates'
'build/js/'
]
karma :
headless :
configFile : 'karma.headless.conf.js'
local :
configFile : 'karma.local.conf.js'
sauceLabs :
configFile : 'karma.saucelabs.conf.js'
compiled :
configFile : 'karma.compiled.conf.js'
builder :
all :
options :
namespace : '*'
outputFilePath : 'build/compiled/compiled.js'
options :
root : '<%= deps.all.options.root %>'
depsPath : '<%= deps.all.options.outputFile %>'
# namespace : 'spark.Bootstrapper'
compilerFlags : [
'--output_wrapper="(function(){%output%})();"'
'--compilation_level="ADVANCED_OPTIMIZATIONS"'
'--warning_level="VERBOSE"'
'--generate_exports'
# '--formatting=PRETTY_PRINT'
# '--externs=src/externs/externs.js'
'--create_source_map="build/compiled/source_map.js"'
'--property_renaming_report="build/compiled/properties.out"'
'--variable_renaming_report="build/compiled/variables.out"'
'--jscomp_error=accessControls'
'--jscomp_error=checkRegExp'
'--jscomp_error=checkTypes'
'--jscomp_error=checkVars'
'--jscomp_error=invalidCasts'
'--jscomp_error=missingProperties'
'--jscomp_error=nonStandardJsDocs'
'--jscomp_error=strictModuleDepCheck'
'--jscomp_error=undefinedVars'
'--jscomp_error=unknownDefines'
'--jscomp_error=visibility'
]
'http-server' :
debug :
host : '127.0.0.1'
port : 1111
runInBackground : yes
compiled :
host : '127.0.0.1'
port : 2222
open :
dev :
path : 'http://localhost:1111/public/debug'
app : 'Google Chrome'
examples :
path : 'http://localhost:1111/build/docs/examples/'
app : 'Google Chrome'
coverage :
path : 'http://localhost:1111/build/coverage/PhantomJS 1.9.8 (Mac OS X)/lcov-report/index.html'
app : 'Google Chrome'
build :
path : 'http://localhost:2222/public/compiled'
app : 'Google Chrome'
watch :
options :
livereload : yes
interrupt : yes
configFiles :
files : [ 'Gruntfile.coffee', 'karma.conf.js' ]
options :
reload : yes
html :
files : [ 'public/**/*.html' ]
src :
files : [ 'src/lib/**/*.coffee', 'src/tests/**/*.coffee' ]
tasks : [ 'coffee:all', 'coffee2closure', 'deps', 'karma:headless' ]
styl :
files : [ 'src/themes/edge/**/*.styl' ]
tasks : [ 'stylus:all', 'stylus:concat' ]
images :
files : [ 'src/images/**/*.png' ]
tasks : [ 'stylus:all', 'styl:concat' ]
examples :
files : [ 'src/examples/**/*.styl', 'src/examples/**/*.coffee' ]
tasks : [ 'stylus:examples', 'coffee:examples', 'copy' ]
jsdoc :
dist :
src : [ 'build/js/lib/**/*.js', 'README.md', '!build/js/lib/Bootstrapper.js' ],
options :
destination : 'build/docs'
template : 'node_modules/grunt-jsdoc/node_modules/ink-docstrap/template',
configure : 'jsdoc.conf.json'
'gh-pages' :
src : '**/*'
options :
base : 'build/docs'
message : 'Same as last commit with changes'
repo : "https://#{process.env.GH_TOKEN}@github.com/fatihacet/spark.git"
silent : yes
dotfiles : no
user :
name : 'Fatih Acet'
email : 'fatih@fatihacet.com'
php :
dist :
options :
port : 1111
require('load-grunt-tasks')(grunt)
grunt.registerTask 'ci', 'Compile code and run tests for compiled and uncompiled code.', ->
grunt.task.run [
'clean'
'mkdir'
'stylus'
'coffee'
'coffee2closure'
'deps'
'karma:headless'
'builder'
'karma:compiled'
'jsdoc'
'copy'
'gh-pages'
]
grunt.registerTask 'build', 'Compile code and run tests.', ->
grunt.task.run [
'clean'
'mkdir'
'stylus'
'templates'
'coffee'
'coffee2closure'
'deps'
'builder'
'karma:compiled'
'open:build'
'http-server:compiled'
]
grunt.registerTask 'examples', 'Compile and open examples directory', ->
grunt.task.run [
'coffee'
'coffee2closure'
'deps'
'builder'
'jsdoc'
'coffee:examples'
'stylus'
'copy'
'open:examples'
'http-server:debug'
'watch:examples'
]
grunt.registerTask 'default', 'Run tests and watch the stack for changes', ->
grunt.task.run [
'clean'
'mkdir'
'stylus'
'templates'
'coffee'
'coffee2closure'
'deps'
'karma:headless'
'http-server:debug'
# 'php'
'open:dev'
'open:coverage'
'watch'
]
| 128869 | module.exports = (grunt) ->
grunt.initConfig
clean :
all :
options :
force : yes
src : 'build'
mkdir :
all :
options :
create : [
'src/lib'
'src/externs'
'src/images'
'src/themes/edge'
'src/lib/templates'
'src/third-party'
'build/css'
'build/compiled'
'build/images'
]
copy :
examples :
expand : yes
cwd : 'src/examples'
src : '**'
dest : 'build/docs/examples'
allJS :
src : 'build/compiled/compiled.js'
dest : 'build/docs/compiled.js'
allCSS :
src : 'build/css/spark.css'
dest : 'build/docs/spark.css'
coffee :
all :
options :
bare : yes
files : [
expand : yes
cwd : 'src'
src : [ 'lib/**/*.coffee', 'tests/**/*.coffee' ]
dest : 'build/js/'
ext : '.js'
]
examples :
options :
bare : yes
files : [
expand : yes
cwd : 'src/examples'
src : [ '**/*.coffee' ]
dest : 'src/examples'
ext : '.js'
]
coffee2closure :
all :
files : [
expand : yes
src : [ 'build/js/lib/**/*.js', '!build/js/lib/templates/**/*.js' ]
ext : '.js'
]
stylus :
options :
'include css' : yes
all :
files : [
compress : no
expand : yes
cwd : 'src/themes/edge'
src : [ '**/*.styl', '!imports.styl' ]
dest : 'build/css'
ext : '.css'
]
concat :
files : [
expand : yes
cwd : 'src/themes/edge'
src : 'imports.styl'
dest : 'build/css/'
ext : '.css'
]
examples :
files : [
compress : yes
expand : yes
cwd : 'src/examples'
src : [ '**/*.styl' ]
dest : 'src/examples'
ext : '.css'
]
templates :
all :
src : 'src/lib/templates/**/*.soy'
dest : 'build/js/lib/templates/'
deps :
all :
options :
outputFile : 'build/deps.js'
prefix : '../../../../'
root : [
'bower_components/closure-library'
'bower_components/closure-templates'
'build/js/'
]
karma :
headless :
configFile : 'karma.headless.conf.js'
local :
configFile : 'karma.local.conf.js'
sauceLabs :
configFile : 'karma.saucelabs.conf.js'
compiled :
configFile : 'karma.compiled.conf.js'
builder :
all :
options :
namespace : '*'
outputFilePath : 'build/compiled/compiled.js'
options :
root : '<%= deps.all.options.root %>'
depsPath : '<%= deps.all.options.outputFile %>'
# namespace : 'spark.Bootstrapper'
compilerFlags : [
'--output_wrapper="(function(){%output%})();"'
'--compilation_level="ADVANCED_OPTIMIZATIONS"'
'--warning_level="VERBOSE"'
'--generate_exports'
# '--formatting=PRETTY_PRINT'
# '--externs=src/externs/externs.js'
'--create_source_map="build/compiled/source_map.js"'
'--property_renaming_report="build/compiled/properties.out"'
'--variable_renaming_report="build/compiled/variables.out"'
'--jscomp_error=accessControls'
'--jscomp_error=checkRegExp'
'--jscomp_error=checkTypes'
'--jscomp_error=checkVars'
'--jscomp_error=invalidCasts'
'--jscomp_error=missingProperties'
'--jscomp_error=nonStandardJsDocs'
'--jscomp_error=strictModuleDepCheck'
'--jscomp_error=undefinedVars'
'--jscomp_error=unknownDefines'
'--jscomp_error=visibility'
]
'http-server' :
debug :
host : '127.0.0.1'
port : 1111
runInBackground : yes
compiled :
host : '127.0.0.1'
port : 2222
open :
dev :
path : 'http://localhost:1111/public/debug'
app : 'Google Chrome'
examples :
path : 'http://localhost:1111/build/docs/examples/'
app : 'Google Chrome'
coverage :
path : 'http://localhost:1111/build/coverage/PhantomJS 1.9.8 (Mac OS X)/lcov-report/index.html'
app : 'Google Chrome'
build :
path : 'http://localhost:2222/public/compiled'
app : 'Google Chrome'
watch :
options :
livereload : yes
interrupt : yes
configFiles :
files : [ 'Gruntfile.coffee', 'karma.conf.js' ]
options :
reload : yes
html :
files : [ 'public/**/*.html' ]
src :
files : [ 'src/lib/**/*.coffee', 'src/tests/**/*.coffee' ]
tasks : [ 'coffee:all', 'coffee2closure', 'deps', 'karma:headless' ]
styl :
files : [ 'src/themes/edge/**/*.styl' ]
tasks : [ 'stylus:all', 'stylus:concat' ]
images :
files : [ 'src/images/**/*.png' ]
tasks : [ 'stylus:all', 'styl:concat' ]
examples :
files : [ 'src/examples/**/*.styl', 'src/examples/**/*.coffee' ]
tasks : [ 'stylus:examples', 'coffee:examples', 'copy' ]
jsdoc :
dist :
src : [ 'build/js/lib/**/*.js', 'README.md', '!build/js/lib/Bootstrapper.js' ],
options :
destination : 'build/docs'
template : 'node_modules/grunt-jsdoc/node_modules/ink-docstrap/template',
configure : 'jsdoc.conf.json'
'gh-pages' :
src : '**/*'
options :
base : 'build/docs'
message : 'Same as last commit with changes'
repo : "https://#{process.env.GH_TOKEN}@github.com/fatihacet/spark.git"
silent : yes
dotfiles : no
user :
name : '<NAME>'
email : '<EMAIL>'
php :
dist :
options :
port : 1111
require('load-grunt-tasks')(grunt)
grunt.registerTask 'ci', 'Compile code and run tests for compiled and uncompiled code.', ->
grunt.task.run [
'clean'
'mkdir'
'stylus'
'coffee'
'coffee2closure'
'deps'
'karma:headless'
'builder'
'karma:compiled'
'jsdoc'
'copy'
'gh-pages'
]
grunt.registerTask 'build', 'Compile code and run tests.', ->
grunt.task.run [
'clean'
'mkdir'
'stylus'
'templates'
'coffee'
'coffee2closure'
'deps'
'builder'
'karma:compiled'
'open:build'
'http-server:compiled'
]
grunt.registerTask 'examples', 'Compile and open examples directory', ->
grunt.task.run [
'coffee'
'coffee2closure'
'deps'
'builder'
'jsdoc'
'coffee:examples'
'stylus'
'copy'
'open:examples'
'http-server:debug'
'watch:examples'
]
grunt.registerTask 'default', 'Run tests and watch the stack for changes', ->
grunt.task.run [
'clean'
'mkdir'
'stylus'
'templates'
'coffee'
'coffee2closure'
'deps'
'karma:headless'
'http-server:debug'
# 'php'
'open:dev'
'open:coverage'
'watch'
]
| true | module.exports = (grunt) ->
grunt.initConfig
clean :
all :
options :
force : yes
src : 'build'
mkdir :
all :
options :
create : [
'src/lib'
'src/externs'
'src/images'
'src/themes/edge'
'src/lib/templates'
'src/third-party'
'build/css'
'build/compiled'
'build/images'
]
copy :
examples :
expand : yes
cwd : 'src/examples'
src : '**'
dest : 'build/docs/examples'
allJS :
src : 'build/compiled/compiled.js'
dest : 'build/docs/compiled.js'
allCSS :
src : 'build/css/spark.css'
dest : 'build/docs/spark.css'
coffee :
all :
options :
bare : yes
files : [
expand : yes
cwd : 'src'
src : [ 'lib/**/*.coffee', 'tests/**/*.coffee' ]
dest : 'build/js/'
ext : '.js'
]
examples :
options :
bare : yes
files : [
expand : yes
cwd : 'src/examples'
src : [ '**/*.coffee' ]
dest : 'src/examples'
ext : '.js'
]
coffee2closure :
all :
files : [
expand : yes
src : [ 'build/js/lib/**/*.js', '!build/js/lib/templates/**/*.js' ]
ext : '.js'
]
stylus :
options :
'include css' : yes
all :
files : [
compress : no
expand : yes
cwd : 'src/themes/edge'
src : [ '**/*.styl', '!imports.styl' ]
dest : 'build/css'
ext : '.css'
]
concat :
files : [
expand : yes
cwd : 'src/themes/edge'
src : 'imports.styl'
dest : 'build/css/'
ext : '.css'
]
examples :
files : [
compress : yes
expand : yes
cwd : 'src/examples'
src : [ '**/*.styl' ]
dest : 'src/examples'
ext : '.css'
]
templates :
all :
src : 'src/lib/templates/**/*.soy'
dest : 'build/js/lib/templates/'
deps :
all :
options :
outputFile : 'build/deps.js'
prefix : '../../../../'
root : [
'bower_components/closure-library'
'bower_components/closure-templates'
'build/js/'
]
karma :
headless :
configFile : 'karma.headless.conf.js'
local :
configFile : 'karma.local.conf.js'
sauceLabs :
configFile : 'karma.saucelabs.conf.js'
compiled :
configFile : 'karma.compiled.conf.js'
builder :
all :
options :
namespace : '*'
outputFilePath : 'build/compiled/compiled.js'
options :
root : '<%= deps.all.options.root %>'
depsPath : '<%= deps.all.options.outputFile %>'
# namespace : 'spark.Bootstrapper'
compilerFlags : [
'--output_wrapper="(function(){%output%})();"'
'--compilation_level="ADVANCED_OPTIMIZATIONS"'
'--warning_level="VERBOSE"'
'--generate_exports'
# '--formatting=PRETTY_PRINT'
# '--externs=src/externs/externs.js'
'--create_source_map="build/compiled/source_map.js"'
'--property_renaming_report="build/compiled/properties.out"'
'--variable_renaming_report="build/compiled/variables.out"'
'--jscomp_error=accessControls'
'--jscomp_error=checkRegExp'
'--jscomp_error=checkTypes'
'--jscomp_error=checkVars'
'--jscomp_error=invalidCasts'
'--jscomp_error=missingProperties'
'--jscomp_error=nonStandardJsDocs'
'--jscomp_error=strictModuleDepCheck'
'--jscomp_error=undefinedVars'
'--jscomp_error=unknownDefines'
'--jscomp_error=visibility'
]
'http-server' :
debug :
host : '127.0.0.1'
port : 1111
runInBackground : yes
compiled :
host : '127.0.0.1'
port : 2222
open :
dev :
path : 'http://localhost:1111/public/debug'
app : 'Google Chrome'
examples :
path : 'http://localhost:1111/build/docs/examples/'
app : 'Google Chrome'
coverage :
path : 'http://localhost:1111/build/coverage/PhantomJS 1.9.8 (Mac OS X)/lcov-report/index.html'
app : 'Google Chrome'
build :
path : 'http://localhost:2222/public/compiled'
app : 'Google Chrome'
watch :
options :
livereload : yes
interrupt : yes
configFiles :
files : [ 'Gruntfile.coffee', 'karma.conf.js' ]
options :
reload : yes
html :
files : [ 'public/**/*.html' ]
src :
files : [ 'src/lib/**/*.coffee', 'src/tests/**/*.coffee' ]
tasks : [ 'coffee:all', 'coffee2closure', 'deps', 'karma:headless' ]
styl :
files : [ 'src/themes/edge/**/*.styl' ]
tasks : [ 'stylus:all', 'stylus:concat' ]
images :
files : [ 'src/images/**/*.png' ]
tasks : [ 'stylus:all', 'styl:concat' ]
examples :
files : [ 'src/examples/**/*.styl', 'src/examples/**/*.coffee' ]
tasks : [ 'stylus:examples', 'coffee:examples', 'copy' ]
jsdoc :
dist :
src : [ 'build/js/lib/**/*.js', 'README.md', '!build/js/lib/Bootstrapper.js' ],
options :
destination : 'build/docs'
template : 'node_modules/grunt-jsdoc/node_modules/ink-docstrap/template',
configure : 'jsdoc.conf.json'
'gh-pages' :
src : '**/*'
options :
base : 'build/docs'
message : 'Same as last commit with changes'
repo : "https://#{process.env.GH_TOKEN}@github.com/fatihacet/spark.git"
silent : yes
dotfiles : no
user :
name : 'PI:NAME:<NAME>END_PI'
email : 'PI:EMAIL:<EMAIL>END_PI'
php :
dist :
options :
port : 1111
require('load-grunt-tasks')(grunt)
grunt.registerTask 'ci', 'Compile code and run tests for compiled and uncompiled code.', ->
grunt.task.run [
'clean'
'mkdir'
'stylus'
'coffee'
'coffee2closure'
'deps'
'karma:headless'
'builder'
'karma:compiled'
'jsdoc'
'copy'
'gh-pages'
]
grunt.registerTask 'build', 'Compile code and run tests.', ->
grunt.task.run [
'clean'
'mkdir'
'stylus'
'templates'
'coffee'
'coffee2closure'
'deps'
'builder'
'karma:compiled'
'open:build'
'http-server:compiled'
]
grunt.registerTask 'examples', 'Compile and open examples directory', ->
grunt.task.run [
'coffee'
'coffee2closure'
'deps'
'builder'
'jsdoc'
'coffee:examples'
'stylus'
'copy'
'open:examples'
'http-server:debug'
'watch:examples'
]
grunt.registerTask 'default', 'Run tests and watch the stack for changes', ->
grunt.task.run [
'clean'
'mkdir'
'stylus'
'templates'
'coffee'
'coffee2closure'
'deps'
'karma:headless'
'http-server:debug'
# 'php'
'open:dev'
'open:coverage'
'watch'
]
|
[
{
"context": "rs'\nfs = require 'fs'\n\n# Firebase secure token for duelyst-dev.firebaseio.com\nLogger.module(\"Script\").lo",
"end": 723,
"score": 0.5154337882995605,
"start": 720,
"tag": "EMAIL",
"value": "due"
}
] | scripts/user_scripts/one_offs/20160202_give_users_gold_arena_ticket.coffee | willroberts/duelyst | 5 |
###
give_all_gold_arena_ticket - Gives all current users gold / arena ticket
Examples:
give_all_gold_arena_ticket # does a dry run to see what the results will be
give_all_gold_arena_ticket commit # ...
###
# region Requires
# Configuration object
#config = require("../../config/config.js")
config = require("../../../config/config.js")
Firebase = require("firebase")
_ = require("underscore")
fbRef = new Firebase(config.get("firebase"))
moment = require('moment')
Logger = require '../../../app/common/logger.coffee'
Promise = require 'bluebird'
knex = require '../../../server/lib/data_access/knex'
ProgressBar = require 'progress'
colors = require 'colors'
fs = require 'fs'
# Firebase secure token for duelyst-dev.firebaseio.com
Logger.module("Script").log "loading modules..."
GiftCrateModule = require '../../../server/lib/data_access/gift_crate.coffee'
GiftCrateLookup = require '../../../app/sdk/giftCrates/giftCrateLookup.coffee'
Logger.module("Script").log "loading modules... DONE"
# endregion Requires
Logger.enabled = false
scriptId = 'feb-2016-server-lag-gift-crate3'
resultsLogFile = fs.createWriteStream("#{__dirname}/#{scriptId}.#{moment.utc().valueOf()}.log.txt");
storeResults = true
results = {
numUsers: 0
numUsersProcessed: 0
knownToHaveSucceeded: []
}
batchIndex = 0
batchSize = 20
bar = null
dryRun = true
give_all_gold_arena_ticket = () ->
if dryRun
scriptId = scriptId + "-dry"
Logger.module("Script").log "STARTING"
bar = new ProgressBar('Giving rewards [:bar] :percent :etas', {
complete: '=',
incomplete: ' ',
width: 40,
total: 1 # Filled in later
})
return knex("script_run_records").where('id',scriptId).first()
.then (scriptRecordRow)->
if not scriptRecordRow
Logger.module("Script").log "creating script record row in DB"
return knex("script_run_records").insert(
id:scriptId
)
else if scriptRecordRow.is_complete
throw new Error("Looks like this script is marked as COMPLETE")
else
batchIndex = scriptRecordRow.last_batch_processed
results.knownToHaveSucceeded = scriptRecordRow.succeeded_in_batch || []
.then ()->
Logger.module("Script").log "Counting records left starting at batch #{batchIndex}"
return knex('users')
.count('id')
.then (results)->
return results[0].count
.then (userCount) ->
startOffset = batchIndex * batchSize
userCount -= startOffset
Logger.module("Script").log "Records Left to Process: #{userCount}\n"
numUsers = userCount
bar.total = numUsers
results.numUsers = numUsers
.then ()->
return _processNextSetOfUsers(batchIndex)
_processNextSetOfUsers = (batchIndex) ->
startOffset = batchIndex * batchSize
Logger.module("Script").log "Processing BATCH #{batchIndex} ... #{startOffset} to #{startOffset + batchSize}".yellow
return knex('users')
.select('id')
.orderBy('id','asc')
.offset(startOffset)
.limit(batchSize)
.bind {}
.then (users) ->
Logger.module("Script").log "Processing BATCH #{batchIndex}. count: #{users.length}"
numUsers = users.length
@.succeededInBatch = []
@.errors = []
# detect completion
if numUsers == 0
Logger.module("Script").log "Found ZERO in Batch. Marking self as DONE."
return Promise.resolve(false)
return Promise.map(users, (userData) =>
userId = userData.id
if _.contains(results.knownToHaveSucceeded,userId)
Logger.module("Script").debug "SKIPPING already processed user #{userId.green}"
@.succeededInBatch.push(userId)
return Promise.resolve()
else
return Promise.resolve()
.bind @
.then ()->
if dryRun
if Math.random() > 0.995
Logger.module("Script").debug "Errored at #{userId.red}"
throw new Error("RANDOM ERROR!")
return knex("users").first().where('id',userId)
else
txPromise = knex.transaction (tx)->
tx("users").first('id').where('id',userId).forUpdate()
.then (userRow)->
return GiftCrateModule.addGiftCrateToUser(txPromise,tx,userId,GiftCrateLookup.FebruaryLag2016)
.then tx.commit
.catch tx.rollback
return
return txPromise
.then ()->
resultsLogFile.write("#{userId}\n");
Logger.module("Script").debug "processed #{userId.blue}"
results.numUsersProcessed += 1
@.succeededInBatch.push(userId)
if not dryRun
bar.tick()
.catch (e)->
@.errors.push(e)
console.error "ERROR on user #{userId}: #{e.message}.".red
,{concurrency:8})
.catch (e)->
@.errors.push(e)
.then (needsMoreProcessing) ->
if @.succeededInBatch.length != batchSize or @.errors.length > 0
if @.errors.length > 0
console.error "ERROR: #{@.errors[0].message}. Processed #{results.numUsersProcessed}/#{results.numUsers}. Stopped at Batch: #{batchIndex} (starting at #{batchIndex * batchSize})"
@.needsMoreProcessing = needsMoreProcessing
Logger.module("Script").debug "Updating Script Run Record"
complete = !@.needsMoreProcessing
listSucceeded = null
if @.errors.length > 0
complete = false
listSucceeded = @.succeededInBatch
return knex("script_run_records").where('id',scriptId).update(
last_batch_processed: batchIndex
updated_at: moment().utc().toDate()
succeeded_in_batch: listSucceeded
is_complete: complete
)
.then ()->
if @.errors.length > 0
console.error "ERROR count #{@.errors.length}"
console.error @.errors
resultsLogFile.end()
throw new Error("ABORTING")
if @.needsMoreProcessing
batchIndex += 1
return _processNextSetOfUsers(batchIndex)
else
resultsLogFile.end()
return Promise.resolve()
# Check usage, either must have 2 args (coffee and script name) or third parameter must be commit
if process.argv.length > 3 || (process.argv[2] != undefined && process.argv[2] != "commit")
console.log("Unexpected usage.")
console.log("Given: " + process.argv)
console.log("Expected: coffee give_allUsers_winter_2015_crate {commit}'")
throw new Error("Invalid usage")
process.exit(1)
# check whether a dry run
if process.argv[2] == 'commit'
dryRun = false
Logger.enabled = false
else
dryRun = true
Logger.enabled = true
console.log("---------------------------------------------------------------------")
console.log("Performing dry run, no changes will be made to user data")
console.log("Run give_all_gold_arena_ticket with 'commit' to perform changes")
console.log("---------------------------------------------------------------------")
# Begin script execution
# console.log process.argv
give_all_gold_arena_ticket()
.then () ->
Logger.module("Script").log(("give_all_gold_arena_ticket() -> completed\n").blue)
if dryRun
console.log("---------------------------------------------------------------------")
console.log("Completed dry run, no changes were made to user data")
console.log("---------------------------------------------------------------------")
console.dir(results)
process.exit(1);
module.exports = give_all_gold_arena_ticket
| 208884 |
###
give_all_gold_arena_ticket - Gives all current users gold / arena ticket
Examples:
give_all_gold_arena_ticket # does a dry run to see what the results will be
give_all_gold_arena_ticket commit # ...
###
# region Requires
# Configuration object
#config = require("../../config/config.js")
config = require("../../../config/config.js")
Firebase = require("firebase")
_ = require("underscore")
fbRef = new Firebase(config.get("firebase"))
moment = require('moment')
Logger = require '../../../app/common/logger.coffee'
Promise = require 'bluebird'
knex = require '../../../server/lib/data_access/knex'
ProgressBar = require 'progress'
colors = require 'colors'
fs = require 'fs'
# Firebase secure token for <EMAIL>lyst-dev.firebaseio.com
Logger.module("Script").log "loading modules..."
GiftCrateModule = require '../../../server/lib/data_access/gift_crate.coffee'
GiftCrateLookup = require '../../../app/sdk/giftCrates/giftCrateLookup.coffee'
Logger.module("Script").log "loading modules... DONE"
# endregion Requires
Logger.enabled = false
scriptId = 'feb-2016-server-lag-gift-crate3'
resultsLogFile = fs.createWriteStream("#{__dirname}/#{scriptId}.#{moment.utc().valueOf()}.log.txt");
storeResults = true
results = {
numUsers: 0
numUsersProcessed: 0
knownToHaveSucceeded: []
}
batchIndex = 0
batchSize = 20
bar = null
dryRun = true
give_all_gold_arena_ticket = () ->
if dryRun
scriptId = scriptId + "-dry"
Logger.module("Script").log "STARTING"
bar = new ProgressBar('Giving rewards [:bar] :percent :etas', {
complete: '=',
incomplete: ' ',
width: 40,
total: 1 # Filled in later
})
return knex("script_run_records").where('id',scriptId).first()
.then (scriptRecordRow)->
if not scriptRecordRow
Logger.module("Script").log "creating script record row in DB"
return knex("script_run_records").insert(
id:scriptId
)
else if scriptRecordRow.is_complete
throw new Error("Looks like this script is marked as COMPLETE")
else
batchIndex = scriptRecordRow.last_batch_processed
results.knownToHaveSucceeded = scriptRecordRow.succeeded_in_batch || []
.then ()->
Logger.module("Script").log "Counting records left starting at batch #{batchIndex}"
return knex('users')
.count('id')
.then (results)->
return results[0].count
.then (userCount) ->
startOffset = batchIndex * batchSize
userCount -= startOffset
Logger.module("Script").log "Records Left to Process: #{userCount}\n"
numUsers = userCount
bar.total = numUsers
results.numUsers = numUsers
.then ()->
return _processNextSetOfUsers(batchIndex)
_processNextSetOfUsers = (batchIndex) ->
startOffset = batchIndex * batchSize
Logger.module("Script").log "Processing BATCH #{batchIndex} ... #{startOffset} to #{startOffset + batchSize}".yellow
return knex('users')
.select('id')
.orderBy('id','asc')
.offset(startOffset)
.limit(batchSize)
.bind {}
.then (users) ->
Logger.module("Script").log "Processing BATCH #{batchIndex}. count: #{users.length}"
numUsers = users.length
@.succeededInBatch = []
@.errors = []
# detect completion
if numUsers == 0
Logger.module("Script").log "Found ZERO in Batch. Marking self as DONE."
return Promise.resolve(false)
return Promise.map(users, (userData) =>
userId = userData.id
if _.contains(results.knownToHaveSucceeded,userId)
Logger.module("Script").debug "SKIPPING already processed user #{userId.green}"
@.succeededInBatch.push(userId)
return Promise.resolve()
else
return Promise.resolve()
.bind @
.then ()->
if dryRun
if Math.random() > 0.995
Logger.module("Script").debug "Errored at #{userId.red}"
throw new Error("RANDOM ERROR!")
return knex("users").first().where('id',userId)
else
txPromise = knex.transaction (tx)->
tx("users").first('id').where('id',userId).forUpdate()
.then (userRow)->
return GiftCrateModule.addGiftCrateToUser(txPromise,tx,userId,GiftCrateLookup.FebruaryLag2016)
.then tx.commit
.catch tx.rollback
return
return txPromise
.then ()->
resultsLogFile.write("#{userId}\n");
Logger.module("Script").debug "processed #{userId.blue}"
results.numUsersProcessed += 1
@.succeededInBatch.push(userId)
if not dryRun
bar.tick()
.catch (e)->
@.errors.push(e)
console.error "ERROR on user #{userId}: #{e.message}.".red
,{concurrency:8})
.catch (e)->
@.errors.push(e)
.then (needsMoreProcessing) ->
if @.succeededInBatch.length != batchSize or @.errors.length > 0
if @.errors.length > 0
console.error "ERROR: #{@.errors[0].message}. Processed #{results.numUsersProcessed}/#{results.numUsers}. Stopped at Batch: #{batchIndex} (starting at #{batchIndex * batchSize})"
@.needsMoreProcessing = needsMoreProcessing
Logger.module("Script").debug "Updating Script Run Record"
complete = !@.needsMoreProcessing
listSucceeded = null
if @.errors.length > 0
complete = false
listSucceeded = @.succeededInBatch
return knex("script_run_records").where('id',scriptId).update(
last_batch_processed: batchIndex
updated_at: moment().utc().toDate()
succeeded_in_batch: listSucceeded
is_complete: complete
)
.then ()->
if @.errors.length > 0
console.error "ERROR count #{@.errors.length}"
console.error @.errors
resultsLogFile.end()
throw new Error("ABORTING")
if @.needsMoreProcessing
batchIndex += 1
return _processNextSetOfUsers(batchIndex)
else
resultsLogFile.end()
return Promise.resolve()
# Check usage, either must have 2 args (coffee and script name) or third parameter must be commit
if process.argv.length > 3 || (process.argv[2] != undefined && process.argv[2] != "commit")
console.log("Unexpected usage.")
console.log("Given: " + process.argv)
console.log("Expected: coffee give_allUsers_winter_2015_crate {commit}'")
throw new Error("Invalid usage")
process.exit(1)
# check whether a dry run
if process.argv[2] == 'commit'
dryRun = false
Logger.enabled = false
else
dryRun = true
Logger.enabled = true
console.log("---------------------------------------------------------------------")
console.log("Performing dry run, no changes will be made to user data")
console.log("Run give_all_gold_arena_ticket with 'commit' to perform changes")
console.log("---------------------------------------------------------------------")
# Begin script execution
# console.log process.argv
give_all_gold_arena_ticket()
.then () ->
Logger.module("Script").log(("give_all_gold_arena_ticket() -> completed\n").blue)
if dryRun
console.log("---------------------------------------------------------------------")
console.log("Completed dry run, no changes were made to user data")
console.log("---------------------------------------------------------------------")
console.dir(results)
process.exit(1);
module.exports = give_all_gold_arena_ticket
| true |
###
give_all_gold_arena_ticket - Gives all current users gold / arena ticket
Examples:
give_all_gold_arena_ticket # does a dry run to see what the results will be
give_all_gold_arena_ticket commit # ...
###
# region Requires
# Configuration object
#config = require("../../config/config.js")
config = require("../../../config/config.js")
Firebase = require("firebase")
_ = require("underscore")
fbRef = new Firebase(config.get("firebase"))
moment = require('moment')
Logger = require '../../../app/common/logger.coffee'
Promise = require 'bluebird'
knex = require '../../../server/lib/data_access/knex'
ProgressBar = require 'progress'
colors = require 'colors'
fs = require 'fs'
# Firebase secure token for PI:EMAIL:<EMAIL>END_PIlyst-dev.firebaseio.com
Logger.module("Script").log "loading modules..."
GiftCrateModule = require '../../../server/lib/data_access/gift_crate.coffee'
GiftCrateLookup = require '../../../app/sdk/giftCrates/giftCrateLookup.coffee'
Logger.module("Script").log "loading modules... DONE"
# endregion Requires
Logger.enabled = false
scriptId = 'feb-2016-server-lag-gift-crate3'
resultsLogFile = fs.createWriteStream("#{__dirname}/#{scriptId}.#{moment.utc().valueOf()}.log.txt");
storeResults = true
results = {
numUsers: 0
numUsersProcessed: 0
knownToHaveSucceeded: []
}
batchIndex = 0
batchSize = 20
bar = null
dryRun = true
give_all_gold_arena_ticket = () ->
if dryRun
scriptId = scriptId + "-dry"
Logger.module("Script").log "STARTING"
bar = new ProgressBar('Giving rewards [:bar] :percent :etas', {
complete: '=',
incomplete: ' ',
width: 40,
total: 1 # Filled in later
})
return knex("script_run_records").where('id',scriptId).first()
.then (scriptRecordRow)->
if not scriptRecordRow
Logger.module("Script").log "creating script record row in DB"
return knex("script_run_records").insert(
id:scriptId
)
else if scriptRecordRow.is_complete
throw new Error("Looks like this script is marked as COMPLETE")
else
batchIndex = scriptRecordRow.last_batch_processed
results.knownToHaveSucceeded = scriptRecordRow.succeeded_in_batch || []
.then ()->
Logger.module("Script").log "Counting records left starting at batch #{batchIndex}"
return knex('users')
.count('id')
.then (results)->
return results[0].count
.then (userCount) ->
startOffset = batchIndex * batchSize
userCount -= startOffset
Logger.module("Script").log "Records Left to Process: #{userCount}\n"
numUsers = userCount
bar.total = numUsers
results.numUsers = numUsers
.then ()->
return _processNextSetOfUsers(batchIndex)
_processNextSetOfUsers = (batchIndex) ->
startOffset = batchIndex * batchSize
Logger.module("Script").log "Processing BATCH #{batchIndex} ... #{startOffset} to #{startOffset + batchSize}".yellow
return knex('users')
.select('id')
.orderBy('id','asc')
.offset(startOffset)
.limit(batchSize)
.bind {}
.then (users) ->
Logger.module("Script").log "Processing BATCH #{batchIndex}. count: #{users.length}"
numUsers = users.length
@.succeededInBatch = []
@.errors = []
# detect completion
if numUsers == 0
Logger.module("Script").log "Found ZERO in Batch. Marking self as DONE."
return Promise.resolve(false)
return Promise.map(users, (userData) =>
userId = userData.id
if _.contains(results.knownToHaveSucceeded,userId)
Logger.module("Script").debug "SKIPPING already processed user #{userId.green}"
@.succeededInBatch.push(userId)
return Promise.resolve()
else
return Promise.resolve()
.bind @
.then ()->
if dryRun
if Math.random() > 0.995
Logger.module("Script").debug "Errored at #{userId.red}"
throw new Error("RANDOM ERROR!")
return knex("users").first().where('id',userId)
else
txPromise = knex.transaction (tx)->
tx("users").first('id').where('id',userId).forUpdate()
.then (userRow)->
return GiftCrateModule.addGiftCrateToUser(txPromise,tx,userId,GiftCrateLookup.FebruaryLag2016)
.then tx.commit
.catch tx.rollback
return
return txPromise
.then ()->
resultsLogFile.write("#{userId}\n");
Logger.module("Script").debug "processed #{userId.blue}"
results.numUsersProcessed += 1
@.succeededInBatch.push(userId)
if not dryRun
bar.tick()
.catch (e)->
@.errors.push(e)
console.error "ERROR on user #{userId}: #{e.message}.".red
,{concurrency:8})
.catch (e)->
@.errors.push(e)
.then (needsMoreProcessing) ->
if @.succeededInBatch.length != batchSize or @.errors.length > 0
if @.errors.length > 0
console.error "ERROR: #{@.errors[0].message}. Processed #{results.numUsersProcessed}/#{results.numUsers}. Stopped at Batch: #{batchIndex} (starting at #{batchIndex * batchSize})"
@.needsMoreProcessing = needsMoreProcessing
Logger.module("Script").debug "Updating Script Run Record"
complete = !@.needsMoreProcessing
listSucceeded = null
if @.errors.length > 0
complete = false
listSucceeded = @.succeededInBatch
return knex("script_run_records").where('id',scriptId).update(
last_batch_processed: batchIndex
updated_at: moment().utc().toDate()
succeeded_in_batch: listSucceeded
is_complete: complete
)
.then ()->
if @.errors.length > 0
console.error "ERROR count #{@.errors.length}"
console.error @.errors
resultsLogFile.end()
throw new Error("ABORTING")
if @.needsMoreProcessing
batchIndex += 1
return _processNextSetOfUsers(batchIndex)
else
resultsLogFile.end()
return Promise.resolve()
# Check usage, either must have 2 args (coffee and script name) or third parameter must be commit
if process.argv.length > 3 || (process.argv[2] != undefined && process.argv[2] != "commit")
console.log("Unexpected usage.")
console.log("Given: " + process.argv)
console.log("Expected: coffee give_allUsers_winter_2015_crate {commit}'")
throw new Error("Invalid usage")
process.exit(1)
# check whether a dry run
if process.argv[2] == 'commit'
dryRun = false
Logger.enabled = false
else
dryRun = true
Logger.enabled = true
console.log("---------------------------------------------------------------------")
console.log("Performing dry run, no changes will be made to user data")
console.log("Run give_all_gold_arena_ticket with 'commit' to perform changes")
console.log("---------------------------------------------------------------------")
# Begin script execution
# console.log process.argv
give_all_gold_arena_ticket()
.then () ->
Logger.module("Script").log(("give_all_gold_arena_ticket() -> completed\n").blue)
if dryRun
console.log("---------------------------------------------------------------------")
console.log("Completed dry run, no changes were made to user data")
console.log("---------------------------------------------------------------------")
console.dir(results)
process.exit(1);
module.exports = give_all_gold_arena_ticket
|
[
{
"context": "om, automatically generated\n# Generator created by Renato \"Hii\" Garcia\n'.source.pwn, .source.inc':\n 'IsBulle",
"end": 74,
"score": 0.997606098651886,
"start": 68,
"tag": "NAME",
"value": "Renato"
},
{
"context": "atically generated\n# Generator created by Renato \... | snippets/weapon-config.cson | Wuzi/language-pawn | 4 | # Snippets for Atom, automatically generated
# Generator created by Renato "Hii" Garcia
'.source.pwn, .source.inc':
'IsBulletWeapon':
'prefix': 'IsBulletWeapon'
'body': 'IsBulletWeapon(${1:weaponid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'IsHighRateWeapon':
'prefix': 'IsHighRateWeapon'
'body': 'IsHighRateWeapon(${1:weaponid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'IsMeleeWeapon':
'prefix': 'IsMeleeWeapon'
'body': 'IsMeleeWeapon(${1:weaponid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'IsPlayerSpawned':
'prefix': 'IsPlayerSpawned'
'body': 'IsPlayerSpawned(${1:playerid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'AverageShootRate':
'prefix': 'AverageShootRate'
'body': 'AverageShootRate(${1:playerid}, ${2:shots}, ${3:&multiple_weapons = 0})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'AverageHitRate':
'prefix': 'AverageHitRate'
'body': 'AverageHitRate(${1:playerid}, ${2:hits}, ${3:&multiple_weapons = 0})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetRespawnTime':
'prefix': 'SetRespawnTime'
'body': 'SetRespawnTime(${1:ms})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetRespawnTime':
'prefix': 'GetRespawnTime'
'body': 'GetRespawnTime()'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'ReturnWeaponName':
'prefix': 'ReturnWeaponName'
'body': 'ReturnWeaponName(${1:weaponid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetWeaponDamage':
'prefix': 'SetWeaponDamage'
'body': 'SetWeaponDamage(${1:weaponid}, ${2:damage_type}, ${3:Float:amount}, ${4:Float:...})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetCustomArmourRules':
'prefix': 'SetCustomArmourRules'
'body': 'SetCustomArmourRules(${1:bool:armour_rules}, ${2:bool:torso_rules = false})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetWeaponArmourRule':
'prefix': 'SetWeaponArmourRule'
'body': 'SetWeaponArmourRule(${1:weaponid}, ${2:bool:affects_armour}, ${3:bool:torso_only = false})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetDamageSounds':
'prefix': 'SetDamageSounds'
'body': 'SetDamageSounds(${1:taken}, ${2:given})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetCbugAllowed':
'prefix': 'SetCbugAllowed'
'body': 'SetCbugAllowed(${1:bool:enabled})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetCbugAllowed':
'prefix': 'GetCbugAllowed'
'body': 'GetCbugAllowed()'
'leftLabel': 'bool'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetCustomFallDamage':
'prefix': 'SetCustomFallDamage'
'body': 'SetCustomFallDamage(${1:bool:toggle}, ${2:Float:damage_multiplier = 25.0}, ${3:Float:death_velocity = -0.6})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetVehiclePassengerDamage':
'prefix': 'SetVehiclePassengerDamage'
'body': 'SetVehiclePassengerDamage(${1:bool:toggle})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetVehicleUnoccupiedDamage':
'prefix': 'SetVehicleUnoccupiedDamage'
'body': 'SetVehicleUnoccupiedDamage(${1:bool:toggle})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetDamageFeedForPlayer':
'prefix': 'SetDamageFeedForPlayer'
'body': 'SetDamageFeedForPlayer(${1:playerid}, ${2:toggle = -1})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'IsDamageFeedActive':
'prefix': 'IsDamageFeedActive'
'body': 'IsDamageFeedActive(${1:playerid = -1})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetDamageFeed':
'prefix': 'SetDamageFeed'
'body': 'SetDamageFeed(${1:bool:toggle})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetWeaponShootRate':
'prefix': 'SetWeaponShootRate'
'body': 'SetWeaponShootRate(${1:weaponid}, ${2:max_rate})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'IsPlayerDying':
'prefix': 'IsPlayerDying'
'body': 'IsPlayerDying(${1:playerid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetWeaponMaxRange':
'prefix': 'SetWeaponMaxRange'
'body': 'SetWeaponMaxRange(${1:weaponid}, ${2:Float:range})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetPlayerMaxHealth':
'prefix': 'SetPlayerMaxHealth'
'body': 'SetPlayerMaxHealth(${1:playerid}, ${2:Float:value})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetPlayerMaxArmour':
'prefix': 'SetPlayerMaxArmour'
'body': 'SetPlayerMaxArmour(${1:playerid}, ${2:Float:value})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetPlayerMaxHealth':
'prefix': 'GetPlayerMaxHealth'
'body': 'GetPlayerMaxHealth(${1:playerid})'
'leftLabel': 'Float'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetPlayerMaxArmour':
'prefix': 'GetPlayerMaxArmour'
'body': 'GetPlayerMaxArmour(${1:playerid})'
'leftLabel': 'Float'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetLastDamageHealth':
'prefix': 'GetLastDamageHealth'
'body': 'GetLastDamageHealth(${1:playerid})'
'leftLabel': 'Float'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetLastDamageArmour':
'prefix': 'GetLastDamageArmour'
'body': 'GetLastDamageArmour(${1:playerid})'
'leftLabel': 'Float'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'DamagePlayer':
'prefix': 'DamagePlayer'
'body': 'DamagePlayer(${1:playerid}, ${2:Float:amount}, ${3:issuerid = INVALID_PLAYER_ID}, ${4:weaponid = WEAPON_UNKNOWN}, ${5:bodypart = BODY_PART_UNKNOWN}, ${6:bool:ignore_armour = false})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetRejectedHit':
'prefix': 'GetRejectedHit'
'body': 'GetRejectedHit(${1:playerid}, ${2:idx}, ${3:output[]}, ${4:maxlength = sizeof(output})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'ResyncPlayer':
'prefix': 'ResyncPlayer'
'body': 'ResyncPlayer(${1:playerid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetWeaponName':
'prefix': 'SetWeaponName'
'body': 'SetWeaponName(${1:weaponid}, ${2:const name[]})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
| 23786 | # Snippets for Atom, automatically generated
# Generator created by <NAME> "<NAME>" <NAME>
'.source.pwn, .source.inc':
'IsBulletWeapon':
'prefix': 'IsBulletWeapon'
'body': 'IsBulletWeapon(${1:weaponid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'IsHighRateWeapon':
'prefix': 'IsHighRateWeapon'
'body': 'IsHighRateWeapon(${1:weaponid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'IsMeleeWeapon':
'prefix': 'IsMeleeWeapon'
'body': 'IsMeleeWeapon(${1:weaponid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'IsPlayerSpawned':
'prefix': 'IsPlayerSpawned'
'body': 'IsPlayerSpawned(${1:playerid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'AverageShootRate':
'prefix': 'AverageShootRate'
'body': 'AverageShootRate(${1:playerid}, ${2:shots}, ${3:&multiple_weapons = 0})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'AverageHitRate':
'prefix': 'AverageHitRate'
'body': 'AverageHitRate(${1:playerid}, ${2:hits}, ${3:&multiple_weapons = 0})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetRespawnTime':
'prefix': 'SetRespawnTime'
'body': 'SetRespawnTime(${1:ms})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetRespawnTime':
'prefix': 'GetRespawnTime'
'body': 'GetRespawnTime()'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'ReturnWeaponName':
'prefix': 'ReturnWeaponName'
'body': 'ReturnWeaponName(${1:weaponid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetWeaponDamage':
'prefix': 'SetWeaponDamage'
'body': 'SetWeaponDamage(${1:weaponid}, ${2:damage_type}, ${3:Float:amount}, ${4:Float:...})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetCustomArmourRules':
'prefix': 'SetCustomArmourRules'
'body': 'SetCustomArmourRules(${1:bool:armour_rules}, ${2:bool:torso_rules = false})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetWeaponArmourRule':
'prefix': 'SetWeaponArmourRule'
'body': 'SetWeaponArmourRule(${1:weaponid}, ${2:bool:affects_armour}, ${3:bool:torso_only = false})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetDamageSounds':
'prefix': 'SetDamageSounds'
'body': 'SetDamageSounds(${1:taken}, ${2:given})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetCbugAllowed':
'prefix': 'SetCbugAllowed'
'body': 'SetCbugAllowed(${1:bool:enabled})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetCbugAllowed':
'prefix': 'GetCbugAllowed'
'body': 'GetCbugAllowed()'
'leftLabel': 'bool'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetCustomFallDamage':
'prefix': 'SetCustomFallDamage'
'body': 'SetCustomFallDamage(${1:bool:toggle}, ${2:Float:damage_multiplier = 25.0}, ${3:Float:death_velocity = -0.6})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetVehiclePassengerDamage':
'prefix': 'SetVehiclePassengerDamage'
'body': 'SetVehiclePassengerDamage(${1:bool:toggle})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetVehicleUnoccupiedDamage':
'prefix': 'SetVehicleUnoccupiedDamage'
'body': 'SetVehicleUnoccupiedDamage(${1:bool:toggle})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetDamageFeedForPlayer':
'prefix': 'SetDamageFeedForPlayer'
'body': 'SetDamageFeedForPlayer(${1:playerid}, ${2:toggle = -1})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'IsDamageFeedActive':
'prefix': 'IsDamageFeedActive'
'body': 'IsDamageFeedActive(${1:playerid = -1})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetDamageFeed':
'prefix': 'SetDamageFeed'
'body': 'SetDamageFeed(${1:bool:toggle})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetWeaponShootRate':
'prefix': 'SetWeaponShootRate'
'body': 'SetWeaponShootRate(${1:weaponid}, ${2:max_rate})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'IsPlayerDying':
'prefix': 'IsPlayerDying'
'body': 'IsPlayerDying(${1:playerid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetWeaponMaxRange':
'prefix': 'SetWeaponMaxRange'
'body': 'SetWeaponMaxRange(${1:weaponid}, ${2:Float:range})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetPlayerMaxHealth':
'prefix': 'SetPlayerMaxHealth'
'body': 'SetPlayerMaxHealth(${1:playerid}, ${2:Float:value})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetPlayerMaxArmour':
'prefix': 'SetPlayerMaxArmour'
'body': 'SetPlayerMaxArmour(${1:playerid}, ${2:Float:value})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetPlayerMaxHealth':
'prefix': 'GetPlayerMaxHealth'
'body': 'GetPlayerMaxHealth(${1:playerid})'
'leftLabel': 'Float'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetPlayerMaxArmour':
'prefix': 'GetPlayerMaxArmour'
'body': 'GetPlayerMaxArmour(${1:playerid})'
'leftLabel': 'Float'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetLastDamageHealth':
'prefix': 'GetLastDamageHealth'
'body': 'GetLastDamageHealth(${1:playerid})'
'leftLabel': 'Float'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetLastDamageArmour':
'prefix': 'GetLastDamageArmour'
'body': 'GetLastDamageArmour(${1:playerid})'
'leftLabel': 'Float'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'DamagePlayer':
'prefix': 'DamagePlayer'
'body': 'DamagePlayer(${1:playerid}, ${2:Float:amount}, ${3:issuerid = INVALID_PLAYER_ID}, ${4:weaponid = WEAPON_UNKNOWN}, ${5:bodypart = BODY_PART_UNKNOWN}, ${6:bool:ignore_armour = false})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetRejectedHit':
'prefix': 'GetRejectedHit'
'body': 'GetRejectedHit(${1:playerid}, ${2:idx}, ${3:output[]}, ${4:maxlength = sizeof(output})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'ResyncPlayer':
'prefix': 'ResyncPlayer'
'body': 'ResyncPlayer(${1:playerid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetWeaponName':
'prefix': 'SetWeaponName'
'body': 'SetWeaponName(${1:weaponid}, ${2:const name[]})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
| true | # Snippets for Atom, automatically generated
# Generator created by PI:NAME:<NAME>END_PI "PI:NAME:<NAME>END_PI" PI:NAME:<NAME>END_PI
'.source.pwn, .source.inc':
'IsBulletWeapon':
'prefix': 'IsBulletWeapon'
'body': 'IsBulletWeapon(${1:weaponid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'IsHighRateWeapon':
'prefix': 'IsHighRateWeapon'
'body': 'IsHighRateWeapon(${1:weaponid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'IsMeleeWeapon':
'prefix': 'IsMeleeWeapon'
'body': 'IsMeleeWeapon(${1:weaponid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'IsPlayerSpawned':
'prefix': 'IsPlayerSpawned'
'body': 'IsPlayerSpawned(${1:playerid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'AverageShootRate':
'prefix': 'AverageShootRate'
'body': 'AverageShootRate(${1:playerid}, ${2:shots}, ${3:&multiple_weapons = 0})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'AverageHitRate':
'prefix': 'AverageHitRate'
'body': 'AverageHitRate(${1:playerid}, ${2:hits}, ${3:&multiple_weapons = 0})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetRespawnTime':
'prefix': 'SetRespawnTime'
'body': 'SetRespawnTime(${1:ms})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetRespawnTime':
'prefix': 'GetRespawnTime'
'body': 'GetRespawnTime()'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'ReturnWeaponName':
'prefix': 'ReturnWeaponName'
'body': 'ReturnWeaponName(${1:weaponid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetWeaponDamage':
'prefix': 'SetWeaponDamage'
'body': 'SetWeaponDamage(${1:weaponid}, ${2:damage_type}, ${3:Float:amount}, ${4:Float:...})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetCustomArmourRules':
'prefix': 'SetCustomArmourRules'
'body': 'SetCustomArmourRules(${1:bool:armour_rules}, ${2:bool:torso_rules = false})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetWeaponArmourRule':
'prefix': 'SetWeaponArmourRule'
'body': 'SetWeaponArmourRule(${1:weaponid}, ${2:bool:affects_armour}, ${3:bool:torso_only = false})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetDamageSounds':
'prefix': 'SetDamageSounds'
'body': 'SetDamageSounds(${1:taken}, ${2:given})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetCbugAllowed':
'prefix': 'SetCbugAllowed'
'body': 'SetCbugAllowed(${1:bool:enabled})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetCbugAllowed':
'prefix': 'GetCbugAllowed'
'body': 'GetCbugAllowed()'
'leftLabel': 'bool'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetCustomFallDamage':
'prefix': 'SetCustomFallDamage'
'body': 'SetCustomFallDamage(${1:bool:toggle}, ${2:Float:damage_multiplier = 25.0}, ${3:Float:death_velocity = -0.6})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetVehiclePassengerDamage':
'prefix': 'SetVehiclePassengerDamage'
'body': 'SetVehiclePassengerDamage(${1:bool:toggle})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetVehicleUnoccupiedDamage':
'prefix': 'SetVehicleUnoccupiedDamage'
'body': 'SetVehicleUnoccupiedDamage(${1:bool:toggle})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetDamageFeedForPlayer':
'prefix': 'SetDamageFeedForPlayer'
'body': 'SetDamageFeedForPlayer(${1:playerid}, ${2:toggle = -1})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'IsDamageFeedActive':
'prefix': 'IsDamageFeedActive'
'body': 'IsDamageFeedActive(${1:playerid = -1})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetDamageFeed':
'prefix': 'SetDamageFeed'
'body': 'SetDamageFeed(${1:bool:toggle})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetWeaponShootRate':
'prefix': 'SetWeaponShootRate'
'body': 'SetWeaponShootRate(${1:weaponid}, ${2:max_rate})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'IsPlayerDying':
'prefix': 'IsPlayerDying'
'body': 'IsPlayerDying(${1:playerid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetWeaponMaxRange':
'prefix': 'SetWeaponMaxRange'
'body': 'SetWeaponMaxRange(${1:weaponid}, ${2:Float:range})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetPlayerMaxHealth':
'prefix': 'SetPlayerMaxHealth'
'body': 'SetPlayerMaxHealth(${1:playerid}, ${2:Float:value})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetPlayerMaxArmour':
'prefix': 'SetPlayerMaxArmour'
'body': 'SetPlayerMaxArmour(${1:playerid}, ${2:Float:value})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetPlayerMaxHealth':
'prefix': 'GetPlayerMaxHealth'
'body': 'GetPlayerMaxHealth(${1:playerid})'
'leftLabel': 'Float'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetPlayerMaxArmour':
'prefix': 'GetPlayerMaxArmour'
'body': 'GetPlayerMaxArmour(${1:playerid})'
'leftLabel': 'Float'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetLastDamageHealth':
'prefix': 'GetLastDamageHealth'
'body': 'GetLastDamageHealth(${1:playerid})'
'leftLabel': 'Float'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetLastDamageArmour':
'prefix': 'GetLastDamageArmour'
'body': 'GetLastDamageArmour(${1:playerid})'
'leftLabel': 'Float'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'DamagePlayer':
'prefix': 'DamagePlayer'
'body': 'DamagePlayer(${1:playerid}, ${2:Float:amount}, ${3:issuerid = INVALID_PLAYER_ID}, ${4:weaponid = WEAPON_UNKNOWN}, ${5:bodypart = BODY_PART_UNKNOWN}, ${6:bool:ignore_armour = false})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'GetRejectedHit':
'prefix': 'GetRejectedHit'
'body': 'GetRejectedHit(${1:playerid}, ${2:idx}, ${3:output[]}, ${4:maxlength = sizeof(output})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'ResyncPlayer':
'prefix': 'ResyncPlayer'
'body': 'ResyncPlayer(${1:playerid})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
'SetWeaponName':
'prefix': 'SetWeaponName'
'body': 'SetWeaponName(${1:weaponid}, ${2:const name[]})'
'description': 'Function from: weapon-config'
'descriptionMoreURL': 'https://github.com/oscar-broman/samp-weapon-config'
|
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero G",
"end": 27,
"score": 0.5469404458999634,
"start": 21,
"tag": "NAME",
"value": "ty Ltd"
},
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Pub... | resources/assets/coffee/_classes/form-placeholder-hide.coffee | osu-katakuna/osu-katakuna-web | 5 | # Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
class @FormPlaceholderHide
constructor: ->
$(document).on 'focus', '.js-form-placeholder-hide', @onFocus
$(document).on 'blur', '.js-form-placeholder-hide', @onBlur
onBlur: (e) ->
return unless e.target._origPlaceholder
e.target.setAttribute 'placeholder', e.target._origPlaceholder
e.target._origPlaceholder = null
onFocus: (e) ->
e.target._origPlaceholder = e.target.getAttribute 'placeholder'
e.target.setAttribute 'placeholder', ''
| 176481 | # Copyright (c) ppy P<NAME> <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
class @FormPlaceholderHide
constructor: ->
$(document).on 'focus', '.js-form-placeholder-hide', @onFocus
$(document).on 'blur', '.js-form-placeholder-hide', @onBlur
onBlur: (e) ->
return unless e.target._origPlaceholder
e.target.setAttribute 'placeholder', e.target._origPlaceholder
e.target._origPlaceholder = null
onFocus: (e) ->
e.target._origPlaceholder = e.target.getAttribute 'placeholder'
e.target.setAttribute 'placeholder', ''
| true | # Copyright (c) ppy PPI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
class @FormPlaceholderHide
constructor: ->
$(document).on 'focus', '.js-form-placeholder-hide', @onFocus
$(document).on 'blur', '.js-form-placeholder-hide', @onBlur
onBlur: (e) ->
return unless e.target._origPlaceholder
e.target.setAttribute 'placeholder', e.target._origPlaceholder
e.target._origPlaceholder = null
onFocus: (e) ->
e.target._origPlaceholder = e.target.getAttribute 'placeholder'
e.target.setAttribute 'placeholder', ''
|
[
{
"context": "###\n * quad\n * https://github.com/1egoman/quad\n *\n * Copyright (c) 2015 Ryan Gaus\n * Licens",
"end": 41,
"score": 0.9957389831542969,
"start": 34,
"tag": "USERNAME",
"value": "1egoman"
},
{
"context": "//github.com/1egoman/quad\n *\n * Copyright (c) 2015 Ryan Gaus\... | quadpi/src/models/schema.coffee | 1egoman/quad | 0 | ###
* quad
* https://github.com/1egoman/quad
*
* Copyright (c) 2015 Ryan Gaus
* Licensed under the MIT license.
###
mongoose = require 'mongoose'
schema = mongoose.Schema
name: String
module.exports = mongoose.model 'Schema', schema
| 66797 | ###
* quad
* https://github.com/1egoman/quad
*
* Copyright (c) 2015 <NAME>
* Licensed under the MIT license.
###
mongoose = require 'mongoose'
schema = mongoose.Schema
name: String
module.exports = mongoose.model 'Schema', schema
| true | ###
* quad
* https://github.com/1egoman/quad
*
* Copyright (c) 2015 PI:NAME:<NAME>END_PI
* Licensed under the MIT license.
###
mongoose = require 'mongoose'
schema = mongoose.Schema
name: String
module.exports = mongoose.model 'Schema', schema
|
[
{
"context": ".sessions)\n }\n {\n key: \"Filtradas\"\n values: ([k, v.filtered] for own k, v ",
"end": 1159,
"score": 0.6619096994400024,
"start": 1153,
"tag": "NAME",
"value": "tradas"
}
] | app/scripts/controllers/party.coffee | vitorbaptista/coesao-parlamentar | 0 | "use strict"
angular.module("votacoesCamaraApp")
.controller "PartyCtrl", ($state, $scope, $location, $http) ->
$http.get("data/#{$state.params.party_id}.json").success (party) ->
$scope.party = party
$scope.showLabels = $scope.party.id == "mensaleiros"
lastAvailableYear = $scope.party.years[$scope.party.years.length - 1]
$scope.year = $location.search().year || lastAvailableYear
$scope.orderId = $location.search().order_id || "party"
$scope.quartiles = [
{
key: "Primeiro quartil"
values: ([k, v[0]] for own k, v of party.quartiles)
}
{
key: "Mediana"
values: ([k, v[1]] for own k, v of party.quartiles)
}
{
key: "Segundo quartil"
values: ([k, v[2]] for own k, v of party.quartiles)
}
]
$scope.deputados = [
{
key: "Deputados"
values: ([k, v] for own k, v of party.deputados)
}
]
$scope.sessions = [
{
key: "Totais"
values: ([k, v.total] for own k, v of party.sessions)
}
{
key: "Filtradas"
values: ([k, v.filtered] for own k, v of party.sessions)
}
]
$scope.$watch "year", (year) ->
return unless year?
$scope.filepath = "data/#{$scope.party.id}-#{year}.json"
$location.search("year", year)
$http.get($scope.filepath).success (graph) ->
$scope.graph = graph
$scope.year = year
$scope.$watch "orderId", (orderId) ->
$location.search("order_id", orderId)
| 191497 | "use strict"
angular.module("votacoesCamaraApp")
.controller "PartyCtrl", ($state, $scope, $location, $http) ->
$http.get("data/#{$state.params.party_id}.json").success (party) ->
$scope.party = party
$scope.showLabels = $scope.party.id == "mensaleiros"
lastAvailableYear = $scope.party.years[$scope.party.years.length - 1]
$scope.year = $location.search().year || lastAvailableYear
$scope.orderId = $location.search().order_id || "party"
$scope.quartiles = [
{
key: "Primeiro quartil"
values: ([k, v[0]] for own k, v of party.quartiles)
}
{
key: "Mediana"
values: ([k, v[1]] for own k, v of party.quartiles)
}
{
key: "Segundo quartil"
values: ([k, v[2]] for own k, v of party.quartiles)
}
]
$scope.deputados = [
{
key: "Deputados"
values: ([k, v] for own k, v of party.deputados)
}
]
$scope.sessions = [
{
key: "Totais"
values: ([k, v.total] for own k, v of party.sessions)
}
{
key: "Fil<NAME>"
values: ([k, v.filtered] for own k, v of party.sessions)
}
]
$scope.$watch "year", (year) ->
return unless year?
$scope.filepath = "data/#{$scope.party.id}-#{year}.json"
$location.search("year", year)
$http.get($scope.filepath).success (graph) ->
$scope.graph = graph
$scope.year = year
$scope.$watch "orderId", (orderId) ->
$location.search("order_id", orderId)
| true | "use strict"
angular.module("votacoesCamaraApp")
.controller "PartyCtrl", ($state, $scope, $location, $http) ->
$http.get("data/#{$state.params.party_id}.json").success (party) ->
$scope.party = party
$scope.showLabels = $scope.party.id == "mensaleiros"
lastAvailableYear = $scope.party.years[$scope.party.years.length - 1]
$scope.year = $location.search().year || lastAvailableYear
$scope.orderId = $location.search().order_id || "party"
$scope.quartiles = [
{
key: "Primeiro quartil"
values: ([k, v[0]] for own k, v of party.quartiles)
}
{
key: "Mediana"
values: ([k, v[1]] for own k, v of party.quartiles)
}
{
key: "Segundo quartil"
values: ([k, v[2]] for own k, v of party.quartiles)
}
]
$scope.deputados = [
{
key: "Deputados"
values: ([k, v] for own k, v of party.deputados)
}
]
$scope.sessions = [
{
key: "Totais"
values: ([k, v.total] for own k, v of party.sessions)
}
{
key: "FilPI:NAME:<NAME>END_PI"
values: ([k, v.filtered] for own k, v of party.sessions)
}
]
$scope.$watch "year", (year) ->
return unless year?
$scope.filepath = "data/#{$scope.party.id}-#{year}.json"
$location.search("year", year)
$http.get($scope.filepath).success (graph) ->
$scope.graph = graph
$scope.year = year
$scope.$watch "orderId", (orderId) ->
$location.search("order_id", orderId)
|
[
{
"context": "js\n\n PXL.js\n Benjamin Blundell - ben@pxljs.com\n http://pxljs.",
"end": 215,
"score": 0.9998496174812317,
"start": 198,
"tag": "NAME",
"value": "Benjamin Blundell"
},
{
"context": " PXL.js\n ... | src/interact/touch.coffee | OniDaito/pxljs | 1 | ###
.__
_________ __| |
\____ \ \/ / |
| |_> > <| |__
| __/__/\_ \____/
|__| \/ js
PXL.js
Benjamin Blundell - ben@pxljs.com
http://pxljs.com
This software is released under the MIT Licence. See LICENCE.txt for details
###
util = require "../util/util"
{Vec2} = require "../math/math"
{Signal} = require "../util/signal"
DISTANCE_LIMIT = 1
GESTURE_FLICK_TIME = 280
GESTURE_FLICK_LIMIT = 0.001
FINGER_UP_LIMIT = 60
# ## TouchEmitter
# Attaches to the App / Context and listens for DOM Touch events then emmits
TouchEmitter = {}
TouchEmitter["pauseTouchEmitter"] = (force) ->
@touchPinch.pause(force)
@touchTap.pause(force)
@touchSpread.pause(force)
@touchFlick.pause(force)
@touchDrag.pause(force)
@touchDone.pause(force)
# ## makeTouchEmitter
# function to make an object listen on the dom for touch events
# This function extends another object with many utility functions that deal with
# touches starting, ending and such. It determines what the gesture may or may not be
# For now, we assume no scrolling at that the view encompasses the entire screen on the
# touch device (that way we can get the position of the touches correct with the canvas)
makeTouchEmitter = (obj) ->
if obj.canvas?
util.extend obj,TouchEmitter
obj.touchPinch = new Signal()
obj.touchTap = new Signal()
obj.touchSpread = new Signal()
obj.touchDrag = new Signal()
obj.touchFlick = new Signal()
obj.touchDone = new Signal()
obj.ongoingTouches = []
obj._lastTouchTime = Date.now()
ongoingTouchIndexById = (idToFind) ->
PXL.Context.switchContext obj
if obj.ongoingTouches.length > 0
for i in [0..obj.ongoingTouches.length-1]
touch = obj.ongoingTouches[i]
id = touch.identifier
if id == idToFind
return i
return -1
obj["_onTouchStart"] = (evt) =>
PXL.Context.switchContext obj
evt.preventDefault()
touches = evt.changedTouches
for touch in touches
idx = ongoingTouchIndexById touch.identifier
if idx == -1
touch.ppos = new Vec2 touch.clientX, touch.clientY
touch.cpos = new Vec2 touch.clientX, touch.clientY
touch.spos = new Vec2 touch.clientX, touch.clientY
touch.moved = false
touch.timeStart = touch.timeNow = touch.timePrev = Date.now();
obj.ongoingTouches.push touch
if PXL.Context.debug
console.log "Touch Start ", obj.ongoingTouches
obj.canvas.ontouchstart = obj["_onTouchStart"]
obj["_onTouchMove"] = (evt) ->
PXL.Context.switchContext obj
evt.preventDefault()
touches = evt.changedTouches
for newtouch in touches
idx = ongoingTouchIndexById newtouch.identifier
touch = obj.ongoingTouches[idx]
touch.ppos.x = touch.cpos.x
touch.ppos.y = touch.cpos.y
touch.cpos.x = newtouch.clientX
touch.cpos.y = newtouch.clientY
touch.timePrev = touch.timeNow
touch.timeNow = Date.now()
if touch.ppos.x != touch.cpos.x or touch.ppos.y || touch.cpos.y
touch.moved = true
else
touch.moved = false
# Check for pinch / spread
if obj.ongoingTouches.length == 2 and touch.moved
d0 = obj.ongoingTouches[0].cpos.dist(obj.ongoingTouches[1].cpos)
d1 = obj.ongoingTouches[0].ppos.dist(obj.ongoingTouches[1].ppos)
evt.ddist = d0 - d1
dd0 = Vec2.sub obj.ongoingTouches[0].cpos, obj.ongoingTouches[0].ppos
dd1 = Vec2.sub obj.ongoingTouches[1].cpos, obj.ongoingTouches[1].ppos
cosa = dd0.dot(dd1) / (dd0.length() * dd1.length())
if Math.abs(evt.ddist) > DISTANCE_LIMIT
if cosa > 0.5
# Mostly aligned so two finger swipe
evt.currentPos = obj.ongoingTouches[0].cpos
evt.previousPos = obj.ongoingTouches[0].ppos
evt.fingers = 2
obj.touchSwipe.dispatch evt
else
evt.center = Vec2.add obj.ongoingTouches[0].cpos, obj.ongoingTouches[1].cpos
evt.center.multScalar 0.5
if d0 > d1
obj.touchSpread.dispatch evt
else
obj.touchPinch.dispatch evt
# Check for swipes with one finger
else if obj.ongoingTouches.length == 1
if Date.now() - obj._lastTouchTime > FINGER_UP_LIMIT
touch = obj.ongoingTouches[0]
speed = touch.cpos.distanceTo(touch.ppos) / (Date.now() - touch.timeStart)
if speed <= GESTURE_FLICK_LIMIT or touch.timeNow - touch.timeStart > GESTURE_FLICK_TIME
if touch.cpos.distanceTo( touch.ppos ) > 0
evt.currentPos = touch.cpos.copy()
evt.previousPos = touch.ppos.copy()
evt.startPos = touch.spos.copy()
evt.fingers = 1
# TODO - Potentially use touch.force in this equation to make it more likely?
obj.touchDrag.dispatch(evt)
#for touch in touches
# idx = ongoingTouchIndexById touch.identifier
# obj.ongoingTouches.splice idx, 1, touch # swap in the new touch record
obj.canvas.ontouchmove = obj["_onTouchMove"]
obj["_touchEnd"] = (evt) ->
PXL.Context.switchContext obj
evt.preventDefault()
touches = evt.changedTouches
if obj.ongoingTouches.length == 1
if Date.now() - obj._lastTouchTime > FINGER_UP_LIMIT
tp = new Vec2 touches[0].clientX, touches[0].clientY
speed = tp.distanceTo(obj.ongoingTouches[0].ppos) / (Date.now() - obj.ongoingTouches[0].timeStart)
if speed >= GESTURE_FLICK_LIMIT
touch = obj.ongoingTouches[0]
evt.currentPos = touch.cpos.copy()
evt.previousPos = touch.ppos.copy()
evt.startPos = touch.spos.copy()
evt.fingers = 1
obj.touchFlick.dispatch(evt)
for newtouch in touches
idx = ongoingTouchIndexById(newtouch.identifier)
if obj.ongoingTouches[idx].moved ==fa lse and Date.now() - obj._lastTouchTime > FINGER_UP_LIMIT
if PXL.Context.debug
console.log(evt)
evt.currentPos = obj.ongoingTouches[idx].cpos.copy()
evt.fingers = 1
obj.touchTap.dispatch evt
obj.ongoingTouches.splice(idx, 1)
else
for newtouch in touches
idx = ongoingTouchIndexById newtouch.identifier
obj.ongoingTouches.splice idx, 1
if PXL.Context.debug
console.log "Touch End ", obj.ongoingTouches
obj._lastTouchTime = Date.now()
if obj.ongoingTouches.length == 0
obj.touchDone.dispatch(evt)
obj.canvas.ontouchend = obj["_touchEnd"]
obj.canvas.ontouchcancel = obj["_touchEnd"]
# ## removeTouchEmitter
# - obj - a DOM object - Required
removeTouchEmitter = (obj) ->
obj.canvas.removeEventListener "touchend", obj["_onTouchEnd"]
obj.canvas.removeEventListener "touchcancel", obj["_onTouchEnd"]
obj.canvas.removeEventListener "touchmove", obj["_onTouchMove"]
obj.canvas.removeEventListener "touchstart", obj["_onTouchStart"]
module.exports =
makeTouchEmitter : makeTouchEmitter
removeTouchEmitter : removeTouchEmitter
| 68351 | ###
.__
_________ __| |
\____ \ \/ / |
| |_> > <| |__
| __/__/\_ \____/
|__| \/ js
PXL.js
<NAME> - <EMAIL>
http://pxljs.com
This software is released under the MIT Licence. See LICENCE.txt for details
###
util = require "../util/util"
{Vec2} = require "../math/math"
{Signal} = require "../util/signal"
DISTANCE_LIMIT = 1
GESTURE_FLICK_TIME = 280
GESTURE_FLICK_LIMIT = 0.001
FINGER_UP_LIMIT = 60
# ## TouchEmitter
# Attaches to the App / Context and listens for DOM Touch events then emmits
TouchEmitter = {}
TouchEmitter["pauseTouchEmitter"] = (force) ->
@touchPinch.pause(force)
@touchTap.pause(force)
@touchSpread.pause(force)
@touchFlick.pause(force)
@touchDrag.pause(force)
@touchDone.pause(force)
# ## makeTouchEmitter
# function to make an object listen on the dom for touch events
# This function extends another object with many utility functions that deal with
# touches starting, ending and such. It determines what the gesture may or may not be
# For now, we assume no scrolling at that the view encompasses the entire screen on the
# touch device (that way we can get the position of the touches correct with the canvas)
makeTouchEmitter = (obj) ->
if obj.canvas?
util.extend obj,TouchEmitter
obj.touchPinch = new Signal()
obj.touchTap = new Signal()
obj.touchSpread = new Signal()
obj.touchDrag = new Signal()
obj.touchFlick = new Signal()
obj.touchDone = new Signal()
obj.ongoingTouches = []
obj._lastTouchTime = Date.now()
ongoingTouchIndexById = (idToFind) ->
PXL.Context.switchContext obj
if obj.ongoingTouches.length > 0
for i in [0..obj.ongoingTouches.length-1]
touch = obj.ongoingTouches[i]
id = touch.identifier
if id == idToFind
return i
return -1
obj["_onTouchStart"] = (evt) =>
PXL.Context.switchContext obj
evt.preventDefault()
touches = evt.changedTouches
for touch in touches
idx = ongoingTouchIndexById touch.identifier
if idx == -1
touch.ppos = new Vec2 touch.clientX, touch.clientY
touch.cpos = new Vec2 touch.clientX, touch.clientY
touch.spos = new Vec2 touch.clientX, touch.clientY
touch.moved = false
touch.timeStart = touch.timeNow = touch.timePrev = Date.now();
obj.ongoingTouches.push touch
if PXL.Context.debug
console.log "Touch Start ", obj.ongoingTouches
obj.canvas.ontouchstart = obj["_onTouchStart"]
obj["_onTouchMove"] = (evt) ->
PXL.Context.switchContext obj
evt.preventDefault()
touches = evt.changedTouches
for newtouch in touches
idx = ongoingTouchIndexById newtouch.identifier
touch = obj.ongoingTouches[idx]
touch.ppos.x = touch.cpos.x
touch.ppos.y = touch.cpos.y
touch.cpos.x = newtouch.clientX
touch.cpos.y = newtouch.clientY
touch.timePrev = touch.timeNow
touch.timeNow = Date.now()
if touch.ppos.x != touch.cpos.x or touch.ppos.y || touch.cpos.y
touch.moved = true
else
touch.moved = false
# Check for pinch / spread
if obj.ongoingTouches.length == 2 and touch.moved
d0 = obj.ongoingTouches[0].cpos.dist(obj.ongoingTouches[1].cpos)
d1 = obj.ongoingTouches[0].ppos.dist(obj.ongoingTouches[1].ppos)
evt.ddist = d0 - d1
dd0 = Vec2.sub obj.ongoingTouches[0].cpos, obj.ongoingTouches[0].ppos
dd1 = Vec2.sub obj.ongoingTouches[1].cpos, obj.ongoingTouches[1].ppos
cosa = dd0.dot(dd1) / (dd0.length() * dd1.length())
if Math.abs(evt.ddist) > DISTANCE_LIMIT
if cosa > 0.5
# Mostly aligned so two finger swipe
evt.currentPos = obj.ongoingTouches[0].cpos
evt.previousPos = obj.ongoingTouches[0].ppos
evt.fingers = 2
obj.touchSwipe.dispatch evt
else
evt.center = Vec2.add obj.ongoingTouches[0].cpos, obj.ongoingTouches[1].cpos
evt.center.multScalar 0.5
if d0 > d1
obj.touchSpread.dispatch evt
else
obj.touchPinch.dispatch evt
# Check for swipes with one finger
else if obj.ongoingTouches.length == 1
if Date.now() - obj._lastTouchTime > FINGER_UP_LIMIT
touch = obj.ongoingTouches[0]
speed = touch.cpos.distanceTo(touch.ppos) / (Date.now() - touch.timeStart)
if speed <= GESTURE_FLICK_LIMIT or touch.timeNow - touch.timeStart > GESTURE_FLICK_TIME
if touch.cpos.distanceTo( touch.ppos ) > 0
evt.currentPos = touch.cpos.copy()
evt.previousPos = touch.ppos.copy()
evt.startPos = touch.spos.copy()
evt.fingers = 1
# TODO - Potentially use touch.force in this equation to make it more likely?
obj.touchDrag.dispatch(evt)
#for touch in touches
# idx = ongoingTouchIndexById touch.identifier
# obj.ongoingTouches.splice idx, 1, touch # swap in the new touch record
obj.canvas.ontouchmove = obj["_onTouchMove"]
obj["_touchEnd"] = (evt) ->
PXL.Context.switchContext obj
evt.preventDefault()
touches = evt.changedTouches
if obj.ongoingTouches.length == 1
if Date.now() - obj._lastTouchTime > FINGER_UP_LIMIT
tp = new Vec2 touches[0].clientX, touches[0].clientY
speed = tp.distanceTo(obj.ongoingTouches[0].ppos) / (Date.now() - obj.ongoingTouches[0].timeStart)
if speed >= GESTURE_FLICK_LIMIT
touch = obj.ongoingTouches[0]
evt.currentPos = touch.cpos.copy()
evt.previousPos = touch.ppos.copy()
evt.startPos = touch.spos.copy()
evt.fingers = 1
obj.touchFlick.dispatch(evt)
for newtouch in touches
idx = ongoingTouchIndexById(newtouch.identifier)
if obj.ongoingTouches[idx].moved ==fa lse and Date.now() - obj._lastTouchTime > FINGER_UP_LIMIT
if PXL.Context.debug
console.log(evt)
evt.currentPos = obj.ongoingTouches[idx].cpos.copy()
evt.fingers = 1
obj.touchTap.dispatch evt
obj.ongoingTouches.splice(idx, 1)
else
for newtouch in touches
idx = ongoingTouchIndexById newtouch.identifier
obj.ongoingTouches.splice idx, 1
if PXL.Context.debug
console.log "Touch End ", obj.ongoingTouches
obj._lastTouchTime = Date.now()
if obj.ongoingTouches.length == 0
obj.touchDone.dispatch(evt)
obj.canvas.ontouchend = obj["_touchEnd"]
obj.canvas.ontouchcancel = obj["_touchEnd"]
# ## removeTouchEmitter
# - obj - a DOM object - Required
removeTouchEmitter = (obj) ->
obj.canvas.removeEventListener "touchend", obj["_onTouchEnd"]
obj.canvas.removeEventListener "touchcancel", obj["_onTouchEnd"]
obj.canvas.removeEventListener "touchmove", obj["_onTouchMove"]
obj.canvas.removeEventListener "touchstart", obj["_onTouchStart"]
module.exports =
makeTouchEmitter : makeTouchEmitter
removeTouchEmitter : removeTouchEmitter
| true | ###
.__
_________ __| |
\____ \ \/ / |
| |_> > <| |__
| __/__/\_ \____/
|__| \/ js
PXL.js
PI:NAME:<NAME>END_PI - PI:EMAIL:<EMAIL>END_PI
http://pxljs.com
This software is released under the MIT Licence. See LICENCE.txt for details
###
util = require "../util/util"
{Vec2} = require "../math/math"
{Signal} = require "../util/signal"
DISTANCE_LIMIT = 1
GESTURE_FLICK_TIME = 280
GESTURE_FLICK_LIMIT = 0.001
FINGER_UP_LIMIT = 60
# ## TouchEmitter
# Attaches to the App / Context and listens for DOM Touch events then emmits
TouchEmitter = {}
TouchEmitter["pauseTouchEmitter"] = (force) ->
@touchPinch.pause(force)
@touchTap.pause(force)
@touchSpread.pause(force)
@touchFlick.pause(force)
@touchDrag.pause(force)
@touchDone.pause(force)
# ## makeTouchEmitter
# function to make an object listen on the dom for touch events
# This function extends another object with many utility functions that deal with
# touches starting, ending and such. It determines what the gesture may or may not be
# For now, we assume no scrolling at that the view encompasses the entire screen on the
# touch device (that way we can get the position of the touches correct with the canvas)
makeTouchEmitter = (obj) ->
if obj.canvas?
util.extend obj,TouchEmitter
obj.touchPinch = new Signal()
obj.touchTap = new Signal()
obj.touchSpread = new Signal()
obj.touchDrag = new Signal()
obj.touchFlick = new Signal()
obj.touchDone = new Signal()
obj.ongoingTouches = []
obj._lastTouchTime = Date.now()
ongoingTouchIndexById = (idToFind) ->
PXL.Context.switchContext obj
if obj.ongoingTouches.length > 0
for i in [0..obj.ongoingTouches.length-1]
touch = obj.ongoingTouches[i]
id = touch.identifier
if id == idToFind
return i
return -1
obj["_onTouchStart"] = (evt) =>
PXL.Context.switchContext obj
evt.preventDefault()
touches = evt.changedTouches
for touch in touches
idx = ongoingTouchIndexById touch.identifier
if idx == -1
touch.ppos = new Vec2 touch.clientX, touch.clientY
touch.cpos = new Vec2 touch.clientX, touch.clientY
touch.spos = new Vec2 touch.clientX, touch.clientY
touch.moved = false
touch.timeStart = touch.timeNow = touch.timePrev = Date.now();
obj.ongoingTouches.push touch
if PXL.Context.debug
console.log "Touch Start ", obj.ongoingTouches
obj.canvas.ontouchstart = obj["_onTouchStart"]
obj["_onTouchMove"] = (evt) ->
PXL.Context.switchContext obj
evt.preventDefault()
touches = evt.changedTouches
for newtouch in touches
idx = ongoingTouchIndexById newtouch.identifier
touch = obj.ongoingTouches[idx]
touch.ppos.x = touch.cpos.x
touch.ppos.y = touch.cpos.y
touch.cpos.x = newtouch.clientX
touch.cpos.y = newtouch.clientY
touch.timePrev = touch.timeNow
touch.timeNow = Date.now()
if touch.ppos.x != touch.cpos.x or touch.ppos.y || touch.cpos.y
touch.moved = true
else
touch.moved = false
# Check for pinch / spread
if obj.ongoingTouches.length == 2 and touch.moved
d0 = obj.ongoingTouches[0].cpos.dist(obj.ongoingTouches[1].cpos)
d1 = obj.ongoingTouches[0].ppos.dist(obj.ongoingTouches[1].ppos)
evt.ddist = d0 - d1
dd0 = Vec2.sub obj.ongoingTouches[0].cpos, obj.ongoingTouches[0].ppos
dd1 = Vec2.sub obj.ongoingTouches[1].cpos, obj.ongoingTouches[1].ppos
cosa = dd0.dot(dd1) / (dd0.length() * dd1.length())
if Math.abs(evt.ddist) > DISTANCE_LIMIT
if cosa > 0.5
# Mostly aligned so two finger swipe
evt.currentPos = obj.ongoingTouches[0].cpos
evt.previousPos = obj.ongoingTouches[0].ppos
evt.fingers = 2
obj.touchSwipe.dispatch evt
else
evt.center = Vec2.add obj.ongoingTouches[0].cpos, obj.ongoingTouches[1].cpos
evt.center.multScalar 0.5
if d0 > d1
obj.touchSpread.dispatch evt
else
obj.touchPinch.dispatch evt
# Check for swipes with one finger
else if obj.ongoingTouches.length == 1
if Date.now() - obj._lastTouchTime > FINGER_UP_LIMIT
touch = obj.ongoingTouches[0]
speed = touch.cpos.distanceTo(touch.ppos) / (Date.now() - touch.timeStart)
if speed <= GESTURE_FLICK_LIMIT or touch.timeNow - touch.timeStart > GESTURE_FLICK_TIME
if touch.cpos.distanceTo( touch.ppos ) > 0
evt.currentPos = touch.cpos.copy()
evt.previousPos = touch.ppos.copy()
evt.startPos = touch.spos.copy()
evt.fingers = 1
# TODO - Potentially use touch.force in this equation to make it more likely?
obj.touchDrag.dispatch(evt)
#for touch in touches
# idx = ongoingTouchIndexById touch.identifier
# obj.ongoingTouches.splice idx, 1, touch # swap in the new touch record
obj.canvas.ontouchmove = obj["_onTouchMove"]
obj["_touchEnd"] = (evt) ->
PXL.Context.switchContext obj
evt.preventDefault()
touches = evt.changedTouches
if obj.ongoingTouches.length == 1
if Date.now() - obj._lastTouchTime > FINGER_UP_LIMIT
tp = new Vec2 touches[0].clientX, touches[0].clientY
speed = tp.distanceTo(obj.ongoingTouches[0].ppos) / (Date.now() - obj.ongoingTouches[0].timeStart)
if speed >= GESTURE_FLICK_LIMIT
touch = obj.ongoingTouches[0]
evt.currentPos = touch.cpos.copy()
evt.previousPos = touch.ppos.copy()
evt.startPos = touch.spos.copy()
evt.fingers = 1
obj.touchFlick.dispatch(evt)
for newtouch in touches
idx = ongoingTouchIndexById(newtouch.identifier)
if obj.ongoingTouches[idx].moved ==fa lse and Date.now() - obj._lastTouchTime > FINGER_UP_LIMIT
if PXL.Context.debug
console.log(evt)
evt.currentPos = obj.ongoingTouches[idx].cpos.copy()
evt.fingers = 1
obj.touchTap.dispatch evt
obj.ongoingTouches.splice(idx, 1)
else
for newtouch in touches
idx = ongoingTouchIndexById newtouch.identifier
obj.ongoingTouches.splice idx, 1
if PXL.Context.debug
console.log "Touch End ", obj.ongoingTouches
obj._lastTouchTime = Date.now()
if obj.ongoingTouches.length == 0
obj.touchDone.dispatch(evt)
obj.canvas.ontouchend = obj["_touchEnd"]
obj.canvas.ontouchcancel = obj["_touchEnd"]
# ## removeTouchEmitter
# - obj - a DOM object - Required
removeTouchEmitter = (obj) ->
obj.canvas.removeEventListener "touchend", obj["_onTouchEnd"]
obj.canvas.removeEventListener "touchcancel", obj["_onTouchEnd"]
obj.canvas.removeEventListener "touchmove", obj["_onTouchMove"]
obj.canvas.removeEventListener "touchstart", obj["_onTouchStart"]
module.exports =
makeTouchEmitter : makeTouchEmitter
removeTouchEmitter : removeTouchEmitter
|
[
{
"context": "ent\n server.io handler in client\n\n copyright mark hahn 2013\n MIT license\n https://github.com/mark-",
"end": 92,
"score": 0.9998024702072144,
"start": 83,
"tag": "NAME",
"value": "mark hahn"
},
{
"context": " hahn 2013\n MIT license\n https://githu... | src/client/socket-client.coffee | mark-hahn/bace | 1 | ###
file: src/client/socket-client
server.io handler in client
copyright mark hahn 2013
MIT license
https://github.com/mark-hahn/bace/
###
bace = (window.bace ?= {})
user = (bace.user ?= {})
bace.server = server = io.connect '/'
$ ->
user.init server
server.on 'refresh', -> window.location = '/'
| 107265 | ###
file: src/client/socket-client
server.io handler in client
copyright <NAME> 2013
MIT license
https://github.com/mark-hahn/bace/
###
bace = (window.bace ?= {})
user = (bace.user ?= {})
bace.server = server = io.connect '/'
$ ->
user.init server
server.on 'refresh', -> window.location = '/'
| true | ###
file: src/client/socket-client
server.io handler in client
copyright PI:NAME:<NAME>END_PI 2013
MIT license
https://github.com/mark-hahn/bace/
###
bace = (window.bace ?= {})
user = (bace.user ?= {})
bace.server = server = io.connect '/'
$ ->
user.init server
server.on 'refresh', -> window.location = '/'
|
[
{
"context": "###\n Copyright (c) 2016, Mollie B.V.\n All rights reserved.\n\n Redistribution and use",
"end": 36,
"score": 0.9898766279220581,
"start": 26,
"tag": "NAME",
"value": "Mollie B.V"
},
{
"context": "source.org/licenses/bsd-license.php\n @author Mollie B.V. <info@... | src/lib/mollie/api/resource/customers/subscriptions.coffee | veselinoskih/mollie-test | 0 | ###
Copyright (c) 2016, Mollie B.V.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
@license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php
@author Mollie B.V. <info@mollie.com>
@copyright Mollie B.V.
@link https://www.mollie.com
###
Base = require("../base");
Subscription = require("../../object/subscription");
module.exports = class Subscriptions extends Base
this.resource = "customers_subscriptions";
this.object = Subscription;
| 167349 | ###
Copyright (c) 2016, <NAME>.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
@license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php
@author <NAME>. <<EMAIL>>
@copyright Mollie B.V.
@link https://www.mollie.com
###
Base = require("../base");
Subscription = require("../../object/subscription");
module.exports = class Subscriptions extends Base
this.resource = "customers_subscriptions";
this.object = Subscription;
| true | ###
Copyright (c) 2016, PI:NAME:<NAME>END_PI.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
@license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php
@author PI:NAME:<NAME>END_PI. <PI:EMAIL:<EMAIL>END_PI>
@copyright Mollie B.V.
@link https://www.mollie.com
###
Base = require("../base");
Subscription = require("../../object/subscription");
module.exports = class Subscriptions extends Base
this.resource = "customers_subscriptions";
this.object = Subscription;
|
[
{
"context": "hclaw/pawn-sublime-language\n# Converter created by Renato \"Hii\" Garcia\n# Repo: https://github.com/Renato-Ga",
"end": 172,
"score": 0.9996718764305115,
"start": 166,
"tag": "NAME",
"value": "Renato"
},
{
"context": "n-sublime-language\n# Converter created by Renato \... | snippets/SIF.ItemArrayData.pwn.cson | Wuzi/language-pawn | 4 | # SIF.ItemArrayData.pwn snippets for Atom converted from Sublime Completions converted from https://github.com/Southclaw/pawn-sublime-language
# Converter created by Renato "Hii" Garcia
# Repo: https://github.com/Renato-Garcia/sublime-completions-to-atom-snippets
'.source.pwn, .source.inc':
'SetItemExtraData(%0,%1)':
'prefix': 'SetItemExtraData(%0,%1)'
'body': 'SetItemExtraData(${1:0},${2:1})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'GetItemExtraData(%0)':
'prefix': 'GetItemExtraData(%0)'
'body': 'GetItemExtraData(${1:0})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'SetItemTypeMaxArrayData':
'prefix': 'SetItemTypeMaxArrayData'
'body': 'SetItemTypeMaxArrayData(${1:ItemType:itemtype}, ${2:size}, ${3:bool:protect = false})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'GetItemTypeArrayDataSize':
'prefix': 'GetItemTypeArrayDataSize'
'body': 'GetItemTypeArrayDataSize(${1:ItemType:itemtype})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'SetItemArrayData':
'prefix': 'SetItemArrayData'
'body': 'SetItemArrayData(${1:itemid}, ${2:data[]}, ${3:length}, ${4:call = 1}, ${5:bool:force = false})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'GetItemArrayData':
'prefix': 'GetItemArrayData'
'body': 'GetItemArrayData(${1:itemid}, ${2:data[]})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'SetItemArrayDataAtCell':
'prefix': 'SetItemArrayDataAtCell'
'body': 'SetItemArrayDataAtCell(${1:itemid}, ${2:data}, ${3:cell}, ${4:autoadjustsize = 0}, ${5:call = 1}, ${6:bool:force = false})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'GetItemArrayDataAtCell':
'prefix': 'GetItemArrayDataAtCell'
'body': 'GetItemArrayDataAtCell(${1:itemid}, ${2:cell})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'SetItemArrayDataSize':
'prefix': 'SetItemArrayDataSize'
'body': 'SetItemArrayDataSize(${1:itemid}, ${2:size}, ${3:bool:force = false})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'GetItemArrayDataSize':
'prefix': 'GetItemArrayDataSize'
'body': 'GetItemArrayDataSize(${1:itemid})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'GetItemTypeArrayDataMax':
'prefix': 'GetItemTypeArrayDataMax'
'body': 'GetItemTypeArrayDataMax(${1:ItemType:itemtype})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'AppendItemArray':
'prefix': 'AppendItemArray'
'body': 'AppendItemArray(${1:itemid}, ${2:data[]}, ${3:length})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'AppendItemArrayCell':
'prefix': 'AppendItemArrayCell'
'body': 'AppendItemArrayCell(${1:itemid}, ${2:data})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'SetItemArrayDataLength':
'prefix': 'SetItemArrayDataLength'
'body': 'SetItemArrayDataLength(${1:itemid}, ${2:length}, ${3:bool:force = false})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'RemoveItemArrayData':
'prefix': 'RemoveItemArrayData'
'body': 'RemoveItemArrayData(${1:itemid})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'SetItemNoResetArrayData':
'prefix': 'SetItemNoResetArrayData'
'body': 'SetItemNoResetArrayData(${1:itemid}, ${2:bool:toggle})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'OnItemArrayDataChanged':
'prefix': 'OnItemArrayDataChanged'
'body': 'OnItemArrayDataChanged(${1:itemid})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
| 138221 | # SIF.ItemArrayData.pwn snippets for Atom converted from Sublime Completions converted from https://github.com/Southclaw/pawn-sublime-language
# Converter created by <NAME> "<NAME>
# Repo: https://github.com/Renato-Garcia/sublime-completions-to-atom-snippets
'.source.pwn, .source.inc':
'SetItemExtraData(%0,%1)':
'prefix': 'SetItemExtraData(%0,%1)'
'body': 'SetItemExtraData(${1:0},${2:1})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'GetItemExtraData(%0)':
'prefix': 'GetItemExtraData(%0)'
'body': 'GetItemExtraData(${1:0})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'SetItemTypeMaxArrayData':
'prefix': 'SetItemTypeMaxArrayData'
'body': 'SetItemTypeMaxArrayData(${1:ItemType:itemtype}, ${2:size}, ${3:bool:protect = false})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'GetItemTypeArrayDataSize':
'prefix': 'GetItemTypeArrayDataSize'
'body': 'GetItemTypeArrayDataSize(${1:ItemType:itemtype})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'SetItemArrayData':
'prefix': 'SetItemArrayData'
'body': 'SetItemArrayData(${1:itemid}, ${2:data[]}, ${3:length}, ${4:call = 1}, ${5:bool:force = false})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'GetItemArrayData':
'prefix': 'GetItemArrayData'
'body': 'GetItemArrayData(${1:itemid}, ${2:data[]})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'SetItemArrayDataAtCell':
'prefix': 'SetItemArrayDataAtCell'
'body': 'SetItemArrayDataAtCell(${1:itemid}, ${2:data}, ${3:cell}, ${4:autoadjustsize = 0}, ${5:call = 1}, ${6:bool:force = false})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'GetItemArrayDataAtCell':
'prefix': 'GetItemArrayDataAtCell'
'body': 'GetItemArrayDataAtCell(${1:itemid}, ${2:cell})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'SetItemArrayDataSize':
'prefix': 'SetItemArrayDataSize'
'body': 'SetItemArrayDataSize(${1:itemid}, ${2:size}, ${3:bool:force = false})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'GetItemArrayDataSize':
'prefix': 'GetItemArrayDataSize'
'body': 'GetItemArrayDataSize(${1:itemid})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'GetItemTypeArrayDataMax':
'prefix': 'GetItemTypeArrayDataMax'
'body': 'GetItemTypeArrayDataMax(${1:ItemType:itemtype})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'AppendItemArray':
'prefix': 'AppendItemArray'
'body': 'AppendItemArray(${1:itemid}, ${2:data[]}, ${3:length})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'AppendItemArrayCell':
'prefix': 'AppendItemArrayCell'
'body': 'AppendItemArrayCell(${1:itemid}, ${2:data})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'SetItemArrayDataLength':
'prefix': 'SetItemArrayDataLength'
'body': 'SetItemArrayDataLength(${1:itemid}, ${2:length}, ${3:bool:force = false})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'RemoveItemArrayData':
'prefix': 'RemoveItemArrayData'
'body': 'RemoveItemArrayData(${1:itemid})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'SetItemNoResetArrayData':
'prefix': 'SetItemNoResetArrayData'
'body': 'SetItemNoResetArrayData(${1:itemid}, ${2:bool:toggle})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'OnItemArrayDataChanged':
'prefix': 'OnItemArrayDataChanged'
'body': 'OnItemArrayDataChanged(${1:itemid})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
| true | # SIF.ItemArrayData.pwn snippets for Atom converted from Sublime Completions converted from https://github.com/Southclaw/pawn-sublime-language
# Converter created by PI:NAME:<NAME>END_PI "PI:NAME:<NAME>END_PI
# Repo: https://github.com/Renato-Garcia/sublime-completions-to-atom-snippets
'.source.pwn, .source.inc':
'SetItemExtraData(%0,%1)':
'prefix': 'SetItemExtraData(%0,%1)'
'body': 'SetItemExtraData(${1:0},${2:1})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'GetItemExtraData(%0)':
'prefix': 'GetItemExtraData(%0)'
'body': 'GetItemExtraData(${1:0})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'SetItemTypeMaxArrayData':
'prefix': 'SetItemTypeMaxArrayData'
'body': 'SetItemTypeMaxArrayData(${1:ItemType:itemtype}, ${2:size}, ${3:bool:protect = false})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'GetItemTypeArrayDataSize':
'prefix': 'GetItemTypeArrayDataSize'
'body': 'GetItemTypeArrayDataSize(${1:ItemType:itemtype})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'SetItemArrayData':
'prefix': 'SetItemArrayData'
'body': 'SetItemArrayData(${1:itemid}, ${2:data[]}, ${3:length}, ${4:call = 1}, ${5:bool:force = false})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'GetItemArrayData':
'prefix': 'GetItemArrayData'
'body': 'GetItemArrayData(${1:itemid}, ${2:data[]})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'SetItemArrayDataAtCell':
'prefix': 'SetItemArrayDataAtCell'
'body': 'SetItemArrayDataAtCell(${1:itemid}, ${2:data}, ${3:cell}, ${4:autoadjustsize = 0}, ${5:call = 1}, ${6:bool:force = false})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'GetItemArrayDataAtCell':
'prefix': 'GetItemArrayDataAtCell'
'body': 'GetItemArrayDataAtCell(${1:itemid}, ${2:cell})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'SetItemArrayDataSize':
'prefix': 'SetItemArrayDataSize'
'body': 'SetItemArrayDataSize(${1:itemid}, ${2:size}, ${3:bool:force = false})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'GetItemArrayDataSize':
'prefix': 'GetItemArrayDataSize'
'body': 'GetItemArrayDataSize(${1:itemid})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'GetItemTypeArrayDataMax':
'prefix': 'GetItemTypeArrayDataMax'
'body': 'GetItemTypeArrayDataMax(${1:ItemType:itemtype})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'AppendItemArray':
'prefix': 'AppendItemArray'
'body': 'AppendItemArray(${1:itemid}, ${2:data[]}, ${3:length})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'AppendItemArrayCell':
'prefix': 'AppendItemArrayCell'
'body': 'AppendItemArrayCell(${1:itemid}, ${2:data})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'SetItemArrayDataLength':
'prefix': 'SetItemArrayDataLength'
'body': 'SetItemArrayDataLength(${1:itemid}, ${2:length}, ${3:bool:force = false})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'RemoveItemArrayData':
'prefix': 'RemoveItemArrayData'
'body': 'RemoveItemArrayData(${1:itemid})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'SetItemNoResetArrayData':
'prefix': 'SetItemNoResetArrayData'
'body': 'SetItemNoResetArrayData(${1:itemid}, ${2:bool:toggle})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
'OnItemArrayDataChanged':
'prefix': 'OnItemArrayDataChanged'
'body': 'OnItemArrayDataChanged(${1:itemid})'
'description': 'Function from: SIF'
'descriptionMoreURL': 'https://github.com/Southclaw/SIF'
|
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9984648823738098,
"start": 12,
"tag": "NAME",
"value": "Joyent"
},
{
"context": "end()\n request++\n return\n).listen(common.PORT, \"127.0.0.1\", ->\n opts = url.parse(\"ht... | test/simple/test-http-agent-no-protocol.coffee | lxe/io.coffee | 0 | # Copyright Joyent, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
common = require("../common")
assert = require("assert")
http = require("http")
url = require("url")
request = 0
response = 0
process.on "exit", ->
assert.equal 1, request, "http server \"request\" callback was not called"
assert.equal 1, response, "http client \"response\" callback was not called"
return
server = http.createServer((req, res) ->
res.end()
request++
return
).listen(common.PORT, "127.0.0.1", ->
opts = url.parse("http://127.0.0.1:" + common.PORT + "/")
# remove the `protocol` field… the `http` module should fall back
# to "http:", as defined by the global, default `http.Agent` instance.
opts.agent = new http.Agent()
opts.agent.protocol = null
http.get opts, (res) ->
response++
res.resume()
server.close()
return
return
)
| 54038 | # Copyright <NAME>, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
common = require("../common")
assert = require("assert")
http = require("http")
url = require("url")
request = 0
response = 0
process.on "exit", ->
assert.equal 1, request, "http server \"request\" callback was not called"
assert.equal 1, response, "http client \"response\" callback was not called"
return
server = http.createServer((req, res) ->
res.end()
request++
return
).listen(common.PORT, "127.0.0.1", ->
opts = url.parse("http://127.0.0.1:" + common.PORT + "/")
# remove the `protocol` field… the `http` module should fall back
# to "http:", as defined by the global, default `http.Agent` instance.
opts.agent = new http.Agent()
opts.agent.protocol = null
http.get opts, (res) ->
response++
res.resume()
server.close()
return
return
)
| true | # Copyright PI:NAME:<NAME>END_PI, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
common = require("../common")
assert = require("assert")
http = require("http")
url = require("url")
request = 0
response = 0
process.on "exit", ->
assert.equal 1, request, "http server \"request\" callback was not called"
assert.equal 1, response, "http client \"response\" callback was not called"
return
server = http.createServer((req, res) ->
res.end()
request++
return
).listen(common.PORT, "127.0.0.1", ->
opts = url.parse("http://127.0.0.1:" + common.PORT + "/")
# remove the `protocol` field… the `http` module should fall back
# to "http:", as defined by the global, default `http.Agent` instance.
opts.agent = new http.Agent()
opts.agent.protocol = null
http.get opts, (res) ->
response++
res.resume()
server.close()
return
return
)
|
[
{
"context": "twork.getFiles\n#\t\twifiSsid: 'foobar'\n#\t\twifiKey: 'hello'\n###\nexports.getFiles = (options = {}) ->\n\n\tif no",
"end": 395,
"score": 0.9461119771003723,
"start": 390,
"tag": "KEY",
"value": "hello"
}
] | lib/network.coffee | balena-io/resin-network-conf | 2 | _ = require('lodash')
settings = require('./settings')
###*
# @summary Get network configuration files
# @function
# @public
#
# @param {Object} [options={}] - options
# @param {String} [options.wifiSsid] - wifi ssid
# @param {String} [options.wifiKey] - wifi key
#
# @returns {Object} Network configuration files
#
# @example
# files = network.getFiles
# wifiSsid: 'foobar'
# wifiKey: 'hello'
###
exports.getFiles = (options = {}) ->
if not _.isPlainObject(options)
throw new Error("Invalid options: #{options}")
return {
'network/settings': settings.main
'network/network.config': settings.getHomeSettings(options)
}
| 151656 | _ = require('lodash')
settings = require('./settings')
###*
# @summary Get network configuration files
# @function
# @public
#
# @param {Object} [options={}] - options
# @param {String} [options.wifiSsid] - wifi ssid
# @param {String} [options.wifiKey] - wifi key
#
# @returns {Object} Network configuration files
#
# @example
# files = network.getFiles
# wifiSsid: 'foobar'
# wifiKey: '<KEY>'
###
exports.getFiles = (options = {}) ->
if not _.isPlainObject(options)
throw new Error("Invalid options: #{options}")
return {
'network/settings': settings.main
'network/network.config': settings.getHomeSettings(options)
}
| true | _ = require('lodash')
settings = require('./settings')
###*
# @summary Get network configuration files
# @function
# @public
#
# @param {Object} [options={}] - options
# @param {String} [options.wifiSsid] - wifi ssid
# @param {String} [options.wifiKey] - wifi key
#
# @returns {Object} Network configuration files
#
# @example
# files = network.getFiles
# wifiSsid: 'foobar'
# wifiKey: 'PI:KEY:<KEY>END_PI'
###
exports.getFiles = (options = {}) ->
if not _.isPlainObject(options)
throw new Error("Invalid options: #{options}")
return {
'network/settings': settings.main
'network/network.config': settings.getHomeSettings(options)
}
|
[
{
"context": "ert.deepEqual(\n result,\n {account_id: \"54321\"}\n )\n assert.equal(\n matcher.match(\"/b",
"end": 684,
"score": 0.972741961479187,
"start": 680,
"tag": "KEY",
"value": "4321"
},
{
"context": "nts/54321/channels/abcdefg\"),\n {account_id: \"5... | test/path_matcher_test.coffee | patchboard/patchboard | 38 | assert = require("assert")
Testify = require "testify"
matchers = require("../src/server/matchers")
PathMatcher = matchers.Path
Testify.test "Path matching", (context) ->
context.test "for '/'", ->
matcher = new PathMatcher(path: "/")
assert.deepEqual(
matcher.match("/"),
{}
)
assert.equal(
matcher.match("/foo"),
false
)
context.test "capturing last component", ->
matcher = new PathMatcher(template: "/accounts/:account_id")
assert.deepEqual(
matcher.pattern,
["accounts", {name: "account_id"}]
)
result = matcher.match("/accounts/54321",)
assert.deepEqual(
result,
{account_id: "54321"}
)
assert.equal(
matcher.match("/bogus/12345"),
false
)
assert.equal(
matcher.match("/accounts/12345/channels"),
false
)
context.test "capturing middle component", ->
matcher = new PathMatcher(template: "/accounts/:account_id/channels")
assert.deepEqual(
matcher.pattern,
["accounts", {name: "account_id"}, "channels"]
)
context.test "capturing multiple components", ->
matcher = new PathMatcher(template: "/accounts/:account_id/channels/:channel_id")
assert.deepEqual(
matcher.pattern,
["accounts", {name: "account_id"}, "channels", {name: "channel_id"}]
)
assert.deepEqual(
matcher.match("/accounts/54321/channels/abcdefg"),
{account_id: "54321", channel_id: "abcdefg"}
)
| 31621 | assert = require("assert")
Testify = require "testify"
matchers = require("../src/server/matchers")
PathMatcher = matchers.Path
Testify.test "Path matching", (context) ->
context.test "for '/'", ->
matcher = new PathMatcher(path: "/")
assert.deepEqual(
matcher.match("/"),
{}
)
assert.equal(
matcher.match("/foo"),
false
)
context.test "capturing last component", ->
matcher = new PathMatcher(template: "/accounts/:account_id")
assert.deepEqual(
matcher.pattern,
["accounts", {name: "account_id"}]
)
result = matcher.match("/accounts/54321",)
assert.deepEqual(
result,
{account_id: "5<KEY>"}
)
assert.equal(
matcher.match("/bogus/12345"),
false
)
assert.equal(
matcher.match("/accounts/12345/channels"),
false
)
context.test "capturing middle component", ->
matcher = new PathMatcher(template: "/accounts/:account_id/channels")
assert.deepEqual(
matcher.pattern,
["accounts", {name: "account_id"}, "channels"]
)
context.test "capturing multiple components", ->
matcher = new PathMatcher(template: "/accounts/:account_id/channels/:channel_id")
assert.deepEqual(
matcher.pattern,
["accounts", {name: "account_id"}, "channels", {name: "channel_id"}]
)
assert.deepEqual(
matcher.match("/accounts/54321/channels/abcdefg"),
{account_id: "<KEY>", channel_id: "abcdefg"}
)
| true | assert = require("assert")
Testify = require "testify"
matchers = require("../src/server/matchers")
PathMatcher = matchers.Path
Testify.test "Path matching", (context) ->
context.test "for '/'", ->
matcher = new PathMatcher(path: "/")
assert.deepEqual(
matcher.match("/"),
{}
)
assert.equal(
matcher.match("/foo"),
false
)
context.test "capturing last component", ->
matcher = new PathMatcher(template: "/accounts/:account_id")
assert.deepEqual(
matcher.pattern,
["accounts", {name: "account_id"}]
)
result = matcher.match("/accounts/54321",)
assert.deepEqual(
result,
{account_id: "5PI:KEY:<KEY>END_PI"}
)
assert.equal(
matcher.match("/bogus/12345"),
false
)
assert.equal(
matcher.match("/accounts/12345/channels"),
false
)
context.test "capturing middle component", ->
matcher = new PathMatcher(template: "/accounts/:account_id/channels")
assert.deepEqual(
matcher.pattern,
["accounts", {name: "account_id"}, "channels"]
)
context.test "capturing multiple components", ->
matcher = new PathMatcher(template: "/accounts/:account_id/channels/:channel_id")
assert.deepEqual(
matcher.pattern,
["accounts", {name: "account_id"}, "channels", {name: "channel_id"}]
)
assert.deepEqual(
matcher.match("/accounts/54321/channels/abcdefg"),
{account_id: "PI:KEY:<KEY>END_PI", channel_id: "abcdefg"}
)
|
[
{
"context": "cariest moment is always just before you start.\" ― Stephen King'\n '\"There is nothing to writing. All you",
"end": 2146,
"score": 0.9996320605278015,
"start": 2134,
"tag": "NAME",
"value": "Stephen King"
},
{
"context": "l you do is sit down at a typewriter a... | assets/coffee/apps/post/list/list_view.coffee | ravigupta112/laravel-wardrobecms-cabinet | 0 | @Wardrobe.module "PostApp.List", (List, App, Backbone, Marionette, $, _) ->
class List.PostItem extends App.Views.ItemView
template: "post/list/templates/item"
tagName: "tr"
attributes: ->
if String(@model.get("active")) is "1" and @model.get("publish_date") > moment().format('YYYY-MM-DD HH:mm:ss')
class: "post-item scheduled post-#{@model.id}"
else if String(@model.get("active")) is "1"
class: "post-item published post-#{@model.id}"
else
class: "post-item draft post-#{@model.id}"
triggers:
"click .delete" : "post:delete:clicked"
events:
"click .details" : "edit"
"click .preview" : "preview"
onShow: ->
allUsers = App.request "get:all:users"
$emEl = @$("em")
if allUsers.length is 1
$emEl.hide()
else
user = @model.get("user")
$emEl.text "by #{user.first_name} #{user.last_name}"
@$('.js-format-date').formatDates()
templateHelpers:
status: ->
if parseInt(@active) is 1 and @publish_date > moment().format('YYYY-MM-DD HH:mm:ss')
Lang.post_scheduled
else if parseInt(@active) is 1
Lang.post_active
else
Lang.post_draft
edit: (e) ->
e.preventDefault()
App.vent.trigger "post:item:clicked", @model
preview: (e) ->
e.preventDefault()
storage = new Storage
id: @model.id
storage.put @model.toJSON()
window.open("#{App.request("get:url:blog")}/post/preview/#{@model.id}",'_blank')
class List.Empty extends App.Views.ItemView
template: "post/list/templates/empty"
tagName: "tr"
class List.Posts extends App.Views.CompositeView
template: "post/list/templates/grid"
itemView: List.PostItem
emptyView: List.Empty
itemViewContainer: "tbody"
events:
"click .js-filter" : "filterPosts"
"keyup #js-filter" : "search"
onCompositeCollectionRendered: ->
@doFilter "draft"
showEmpty: (type) ->
if not @$("td:visible").length
quotes = [
'"The scariest moment is always just before you start." ― Stephen King'
'"There is nothing to writing. All you do is sit down at a typewriter and bleed." ― Ernest Hemingway'
'"Start writing, no matter what. The water does not flow until the faucet is turned on." ― Louis L\'Amour'
'"All you have to do is write one true sentence. Write the truest sentence that you know." ― Ernest Hemingway'
'"Being a writer is a very peculiar sort of a job: it\'s always you versus a blank sheet of paper (or a blank screen) and quite often the blank piece of paper wins." ― Neil Gaiman'
]
@$(".js-quote").text quotes[_.random(quotes.length-1)]
@$("table").addClass "hide"
@$(".no-posts").removeClass("hide").find('span').text type
hideAll: ->
@$el.find(".post-item").hide()
filterPosts: (e) ->
e.preventDefault()
@$("table").removeClass "hide"
@$(".no-posts").addClass "hide"
$item = $(e.currentTarget)
type = $item.data "type"
@$(".page-header").find(".active").removeClass("active")
$item.addClass "active"
@doFilter type
doFilter: (type) ->
@hideAll()
@$("tr.#{type}").show()
if @$("tr.#{type}").length is 0
@showEmpty(type)
search: (e) ->
@handleFilter()
handleFilter: ->
@hideAll()
filter = @$("#js-filter").val()
return @$el.find(".post-item").show() if filter is ""
@collection.filter (post) =>
@isMatch(post, filter)
isMatch: (post, filter) ->
pattern = new RegExp(filter,"gi")
foundId = pattern.test post.get("title")
@$el.find(".post-#{post.id}").show() if foundId
| 41317 | @Wardrobe.module "PostApp.List", (List, App, Backbone, Marionette, $, _) ->
class List.PostItem extends App.Views.ItemView
template: "post/list/templates/item"
tagName: "tr"
attributes: ->
if String(@model.get("active")) is "1" and @model.get("publish_date") > moment().format('YYYY-MM-DD HH:mm:ss')
class: "post-item scheduled post-#{@model.id}"
else if String(@model.get("active")) is "1"
class: "post-item published post-#{@model.id}"
else
class: "post-item draft post-#{@model.id}"
triggers:
"click .delete" : "post:delete:clicked"
events:
"click .details" : "edit"
"click .preview" : "preview"
onShow: ->
allUsers = App.request "get:all:users"
$emEl = @$("em")
if allUsers.length is 1
$emEl.hide()
else
user = @model.get("user")
$emEl.text "by #{user.first_name} #{user.last_name}"
@$('.js-format-date').formatDates()
templateHelpers:
status: ->
if parseInt(@active) is 1 and @publish_date > moment().format('YYYY-MM-DD HH:mm:ss')
Lang.post_scheduled
else if parseInt(@active) is 1
Lang.post_active
else
Lang.post_draft
edit: (e) ->
e.preventDefault()
App.vent.trigger "post:item:clicked", @model
preview: (e) ->
e.preventDefault()
storage = new Storage
id: @model.id
storage.put @model.toJSON()
window.open("#{App.request("get:url:blog")}/post/preview/#{@model.id}",'_blank')
class List.Empty extends App.Views.ItemView
template: "post/list/templates/empty"
tagName: "tr"
class List.Posts extends App.Views.CompositeView
template: "post/list/templates/grid"
itemView: List.PostItem
emptyView: List.Empty
itemViewContainer: "tbody"
events:
"click .js-filter" : "filterPosts"
"keyup #js-filter" : "search"
onCompositeCollectionRendered: ->
@doFilter "draft"
showEmpty: (type) ->
if not @$("td:visible").length
quotes = [
'"The scariest moment is always just before you start." ― <NAME>'
'"There is nothing to writing. All you do is sit down at a typewriter and bleed." ― <NAME>'
'"Start writing, no matter what. The water does not flow until the faucet is turned on." ― <NAME>'
'"All you have to do is write one true sentence. Write the truest sentence that you know." ― <NAME>'
'"Being a writer is a very peculiar sort of a job: it\'s always you versus a blank sheet of paper (or a blank screen) and quite often the blank piece of paper wins." ― <NAME>'
]
@$(".js-quote").text quotes[_.random(quotes.length-1)]
@$("table").addClass "hide"
@$(".no-posts").removeClass("hide").find('span').text type
hideAll: ->
@$el.find(".post-item").hide()
filterPosts: (e) ->
e.preventDefault()
@$("table").removeClass "hide"
@$(".no-posts").addClass "hide"
$item = $(e.currentTarget)
type = $item.data "type"
@$(".page-header").find(".active").removeClass("active")
$item.addClass "active"
@doFilter type
doFilter: (type) ->
@hideAll()
@$("tr.#{type}").show()
if @$("tr.#{type}").length is 0
@showEmpty(type)
search: (e) ->
@handleFilter()
handleFilter: ->
@hideAll()
filter = @$("#js-filter").val()
return @$el.find(".post-item").show() if filter is ""
@collection.filter (post) =>
@isMatch(post, filter)
isMatch: (post, filter) ->
pattern = new RegExp(filter,"gi")
foundId = pattern.test post.get("title")
@$el.find(".post-#{post.id}").show() if foundId
| true | @Wardrobe.module "PostApp.List", (List, App, Backbone, Marionette, $, _) ->
class List.PostItem extends App.Views.ItemView
template: "post/list/templates/item"
tagName: "tr"
attributes: ->
if String(@model.get("active")) is "1" and @model.get("publish_date") > moment().format('YYYY-MM-DD HH:mm:ss')
class: "post-item scheduled post-#{@model.id}"
else if String(@model.get("active")) is "1"
class: "post-item published post-#{@model.id}"
else
class: "post-item draft post-#{@model.id}"
triggers:
"click .delete" : "post:delete:clicked"
events:
"click .details" : "edit"
"click .preview" : "preview"
onShow: ->
allUsers = App.request "get:all:users"
$emEl = @$("em")
if allUsers.length is 1
$emEl.hide()
else
user = @model.get("user")
$emEl.text "by #{user.first_name} #{user.last_name}"
@$('.js-format-date').formatDates()
templateHelpers:
status: ->
if parseInt(@active) is 1 and @publish_date > moment().format('YYYY-MM-DD HH:mm:ss')
Lang.post_scheduled
else if parseInt(@active) is 1
Lang.post_active
else
Lang.post_draft
edit: (e) ->
e.preventDefault()
App.vent.trigger "post:item:clicked", @model
preview: (e) ->
e.preventDefault()
storage = new Storage
id: @model.id
storage.put @model.toJSON()
window.open("#{App.request("get:url:blog")}/post/preview/#{@model.id}",'_blank')
class List.Empty extends App.Views.ItemView
template: "post/list/templates/empty"
tagName: "tr"
class List.Posts extends App.Views.CompositeView
template: "post/list/templates/grid"
itemView: List.PostItem
emptyView: List.Empty
itemViewContainer: "tbody"
events:
"click .js-filter" : "filterPosts"
"keyup #js-filter" : "search"
onCompositeCollectionRendered: ->
@doFilter "draft"
showEmpty: (type) ->
if not @$("td:visible").length
quotes = [
'"The scariest moment is always just before you start." ― PI:NAME:<NAME>END_PI'
'"There is nothing to writing. All you do is sit down at a typewriter and bleed." ― PI:NAME:<NAME>END_PI'
'"Start writing, no matter what. The water does not flow until the faucet is turned on." ― PI:NAME:<NAME>END_PI'
'"All you have to do is write one true sentence. Write the truest sentence that you know." ― PI:NAME:<NAME>END_PI'
'"Being a writer is a very peculiar sort of a job: it\'s always you versus a blank sheet of paper (or a blank screen) and quite often the blank piece of paper wins." ― PI:NAME:<NAME>END_PI'
]
@$(".js-quote").text quotes[_.random(quotes.length-1)]
@$("table").addClass "hide"
@$(".no-posts").removeClass("hide").find('span').text type
hideAll: ->
@$el.find(".post-item").hide()
filterPosts: (e) ->
e.preventDefault()
@$("table").removeClass "hide"
@$(".no-posts").addClass "hide"
$item = $(e.currentTarget)
type = $item.data "type"
@$(".page-header").find(".active").removeClass("active")
$item.addClass "active"
@doFilter type
doFilter: (type) ->
@hideAll()
@$("tr.#{type}").show()
if @$("tr.#{type}").length is 0
@showEmpty(type)
search: (e) ->
@handleFilter()
handleFilter: ->
@hideAll()
filter = @$("#js-filter").val()
return @$el.find(".post-item").show() if filter is ""
@collection.filter (post) =>
@isMatch(post, filter)
isMatch: (post, filter) ->
pattern = new RegExp(filter,"gi")
foundId = pattern.test post.get("title")
@$el.find(".post-#{post.id}").show() if foundId
|
[
{
"context": "\thostname: 'localhost',\n\tport: 25565,\n\tusername: 'admin',\n\tpassword: 'demo',\n\tonConnection: function(err,",
"end": 69,
"score": 0.9987353682518005,
"start": 64,
"tag": "USERNAME",
"value": "admin"
},
{
"context": "t',\n\tport: 25565,\n\tusername: 'admin',\n\tpa... | sdk/js/jsonapi-v3.coffee | NationsGlory/ngjsonapi | 109 |
###
opts = {
hostname: 'localhost',
port: 25565,
username: 'admin',
password: 'demo',
onConnection: function(err, jsonapi){}
}
###
class JSONAPI
constructor: (opts) ->
opts = opts || {}
@host = opts.hostname || 'localhost'
@port = opts.port || 25565
@username = opts.username || 'admin'
@password = opts.password || 'changeme'
@queue = []
@handlers = {}
connect: () ->
@socket = new WebSocket "ws://#{@host}:#{@port}/api/2/websocket"
@socket.onopen = () =>
if @queue.length > 0
for item in @queue
# @handlers[item.tag] = item.callback
@send item.line
@queue = []
@socket.onerror = (e) -> throw e
@socket.onmessage = (data) =>
return console.log data
data = data.data
for line in data.toString().trim().split("\r\n")
json = JSON.parse line
if typeof json.tag isnt "undefined" and @handlers[json.tag]
@handlers[json.tag](json)
else
throw "JSONAPI is out of date. JSONAPI 5.3.0+ is required."
send: (data) ->
if @socket.readyState is WebSocket.OPEN
@socket.send(data)
else
@queue.push line: data
j = new JSONAPI
j.connect()
setInterval () ->
j.send('test')
, 15000
# if exports or module or not window
# module.exports = exports = JSONAPI | 185267 |
###
opts = {
hostname: 'localhost',
port: 25565,
username: 'admin',
password: '<PASSWORD>',
onConnection: function(err, jsonapi){}
}
###
class JSONAPI
constructor: (opts) ->
opts = opts || {}
@host = opts.hostname || 'localhost'
@port = opts.port || 25565
@username = opts.username || 'admin'
@password = opts.password || '<PASSWORD>'
@queue = []
@handlers = {}
connect: () ->
@socket = new WebSocket "ws://#{@host}:#{@port}/api/2/websocket"
@socket.onopen = () =>
if @queue.length > 0
for item in @queue
# @handlers[item.tag] = item.callback
@send item.line
@queue = []
@socket.onerror = (e) -> throw e
@socket.onmessage = (data) =>
return console.log data
data = data.data
for line in data.toString().trim().split("\r\n")
json = JSON.parse line
if typeof json.tag isnt "undefined" and @handlers[json.tag]
@handlers[json.tag](json)
else
throw "JSONAPI is out of date. JSONAPI 5.3.0+ is required."
send: (data) ->
if @socket.readyState is WebSocket.OPEN
@socket.send(data)
else
@queue.push line: data
j = new JSONAPI
j.connect()
setInterval () ->
j.send('test')
, 15000
# if exports or module or not window
# module.exports = exports = JSONAPI | true |
###
opts = {
hostname: 'localhost',
port: 25565,
username: 'admin',
password: 'PI:PASSWORD:<PASSWORD>END_PI',
onConnection: function(err, jsonapi){}
}
###
class JSONAPI
constructor: (opts) ->
opts = opts || {}
@host = opts.hostname || 'localhost'
@port = opts.port || 25565
@username = opts.username || 'admin'
@password = opts.password || 'PI:PASSWORD:<PASSWORD>END_PI'
@queue = []
@handlers = {}
connect: () ->
@socket = new WebSocket "ws://#{@host}:#{@port}/api/2/websocket"
@socket.onopen = () =>
if @queue.length > 0
for item in @queue
# @handlers[item.tag] = item.callback
@send item.line
@queue = []
@socket.onerror = (e) -> throw e
@socket.onmessage = (data) =>
return console.log data
data = data.data
for line in data.toString().trim().split("\r\n")
json = JSON.parse line
if typeof json.tag isnt "undefined" and @handlers[json.tag]
@handlers[json.tag](json)
else
throw "JSONAPI is out of date. JSONAPI 5.3.0+ is required."
send: (data) ->
if @socket.readyState is WebSocket.OPEN
@socket.send(data)
else
@queue.push line: data
j = new JSONAPI
j.connect()
setInterval () ->
j.send('test')
, 15000
# if exports or module or not window
# module.exports = exports = JSONAPI |
[
{
"context": "ample Payload'\n key = (process.argv?[3]) ? 'amqp-demo-queue'\n exchange_name = (process.argv?[4]) ? 'foobar' ",
"end": 6071,
"score": 0.9932276606559753,
"start": 6056,
"tag": "KEY",
"value": "amqp-demo-queue"
}
] | lib/amqp-producer.coffee | intellinote/amqp-util | 1 | fs = require 'fs'
path = require 'path'
HOME_DIR = path.join __dirname, '..'
LIB_COV = path.join HOME_DIR, 'lib-cov'
LIB = path.join HOME_DIR, 'lib'
LIB_DIR = if fs.existsSync(LIB_COV) then LIB_COV else LIB
################################################################################
amqp = require 'amqp'
RandomUtil = require('inote-util').RandomUtil
AsyncUtil = require('inote-util').AsyncUtil
LogUtil = require('inote-util').LogUtil
process = require 'process'
################################################################################
AmqpBase = require(path.join(LIB_DIR, 'amqp-base')).AmqpBase
################################################################################
DEBUG = /(^|,)((all)|(amqp-?util)|(amqp-?producer))(,|$)/i.test process.env.NODE_DEBUG # add `amqp-util` or `amqp-producer` to NODE_DEBUG to enable debugging output
LogUtil = LogUtil.init({debug:DEBUG, prefix: "AmqpProducer:"})
class AmqpProducer extends AmqpBase
constructor:(args...)->
super(args...)
# **default_routing_key** - *the default key value to use in `publish`.*
default_routing_key: null
# **default_publish_options** - *map of the default publishing options for `publish`.*
default_publish_options: null
# **set_default_publish_option** - *sets one of the default publishing options.*
set_default_publish_option:(name,value)=>
@default_publish_options ?= {}
@default_publish_options[name] = value
# **set_default_publish_header** - *sets one of the default publishing headers.*
set_default_publish_header:(name,value)=>
@default_publish_options ?= {}
@default_publish_options.headers ?= {}
@default_publish_options.headers[name] = value
# **payload_converter** - *a utility method used to convert the payload before publishing.*
#
# (The default method is the identity function, no conversion occurs.)
payload_converter:(payload)=>payload
_on_connect:(callback)=>
@exchanges_by_name ?= { }
callback?()
_on_disconnect:(callback)=>
@exchanges_by_name = undefined
callback?()
# args:
# - exchange_name
# - exchange_options
# - callback
create_exchange:(exchange_name, exchange_options, callback)=>
if typeof exchange_options is 'function' and not callback?
callback = exchange_options
exchange_options = undefined#
unless @connection?
callback? new Error("Not connected.")
return undefined
else
LogUtil.tpdebug "Creating (or fetching) the exchange named `#{exchange_name}`..."
if @exchanges_by_name[exchange_name]?
LogUtil.tpdebug "...found in cache."
callback?(undefined,@exchanges_by_name[exchange_name],exchange_name,true)
else
LogUtil.tpdebug "...not found in cache, creating or fetching from AMQP server..."
exchange = @connection.exchange exchange_name, exchange_options, (x...)=>
LogUtil.tpdebug "...created or fetched."
exchange.__amqp_util_exchange_name = exchange_name
@exchanges_by_name[exchange_name] = exchange
callback?(undefined,exchange,exchange_name,false)
return exchange_name
get_exchange:(exchange_name, exchange_options, callback)=>
@create_exchange exchange_name, exchange_options, callback
# args: exchange_or_exchange_name, payload, routing_key, publish_options, callback
publish:(args...)=>
if args?.length > 0 and (typeof args[0] is 'string' or not args[0]?)
exchange_or_exchange_name = args.shift()
else if args?.length > 0 and typeof args[0] is 'object' and @_object_is_exchange(args[0])
exchange_or_exchange_name = args.shift()
if args?.length > 0
payload = args.shift()
if args?.length > 0 and (typeof args[0] is 'string' or not args[0]?)
routing_key = args.shift()
if args?.length > 0 and (typeof args[0] is 'object' or not args[0]?)
publish_options = args.shift()
if args?.length > 0 and (typeof args[0] is 'function' or not args[0]?)
callback = args.shift()
#
@_maybe_create_exchange exchange_or_exchange_name, (err, exchange, exchange_name)=>
if err?
callback?(err)
else
unless routing_key?
routing_key = @default_routing_key
unless publish_options?
publish_options = @default_publish_options
payload = @payload_converter(payload)
LogUtil.tpdebug "Publishing a payload of type `#{typeof payload}` to the exchange named `#{exchange_name}` with routing key `#{routing_key}`."
exchange.publish routing_key, payload, publish_options, (error_occured)=>
if error_occured
callback?(error_occured)
else
callback?(null)
get_exchange_by_name:(exchange_name)=>
return @exchanges_by_name[exchange_name]
_maybe_create_exchange:(exchange_or_exchange_name, args..., callback)=>
[exchange, exchange_name] = @_to_exchange_exchange_name_pair exchange_or_exchange_name
if exchange?
callback? undefined, exchange, exchange_name, true
else
@create_exchange exchange_name, args..., callback
_to_exchange_exchange_name_pair:(exchange_or_exchange_name)=>
if typeof exchange_or_exchange_name is 'string'
exchange_name = exchange_or_exchange_name
exchange = @exchanges_by_name[exchange_or_exchange_name] ? undefined
else if @_object_is_exchange exchange_or_exchange_name
exchange = exchange_or_exchange_name
exchange_name = exchange?.__amqp_util_exchange_name ? undefined
else
exchange_name = undefined
exchange = undefined
return [exchange, exchange_name]
# Exported as `AMQPProducer`.
exports.AMQPProducer = exports.AmqpProducer = AmqpProducer
# When loaded directly, use `AMQPProducer` to publish a simple message.
#
# Accepts up to 4 command line parameters:
# - the payload (message contents)
# - the routing key
# - the exchange name
# - the broker URI
#
if require.main is module
payload = (process.argv?[2]) ? 'Example Payload'
key = (process.argv?[3]) ? 'amqp-demo-queue'
exchange_name = (process.argv?[4]) ? 'foobar' #'amq.topic'
broker_url = (process.argv?[5]) ? 'amqp://guest:guest@localhost:5672'
producer = new AmqpProducer()
# producer.set_default_publish_option("confirm", true)
producer.connect broker_url, (err)->
if err?
console.error err
process.exit 1
else
console.log "AmqpProducer connected to broker at \"#{broker_url}\"."
producer.create_exchange exchange_name, {confirm:true}, (err)->
if err?
console.error err
process.exit 1
else
console.log "AmqpProducer fetched or created exchange \"#{exchange_name}\"."
producer.publish exchange_name, payload, key, {}, ()=>
console.log "Confirmed."
process.exit()
| 58688 | fs = require 'fs'
path = require 'path'
HOME_DIR = path.join __dirname, '..'
LIB_COV = path.join HOME_DIR, 'lib-cov'
LIB = path.join HOME_DIR, 'lib'
LIB_DIR = if fs.existsSync(LIB_COV) then LIB_COV else LIB
################################################################################
amqp = require 'amqp'
RandomUtil = require('inote-util').RandomUtil
AsyncUtil = require('inote-util').AsyncUtil
LogUtil = require('inote-util').LogUtil
process = require 'process'
################################################################################
AmqpBase = require(path.join(LIB_DIR, 'amqp-base')).AmqpBase
################################################################################
DEBUG = /(^|,)((all)|(amqp-?util)|(amqp-?producer))(,|$)/i.test process.env.NODE_DEBUG # add `amqp-util` or `amqp-producer` to NODE_DEBUG to enable debugging output
LogUtil = LogUtil.init({debug:DEBUG, prefix: "AmqpProducer:"})
class AmqpProducer extends AmqpBase
constructor:(args...)->
super(args...)
# **default_routing_key** - *the default key value to use in `publish`.*
default_routing_key: null
# **default_publish_options** - *map of the default publishing options for `publish`.*
default_publish_options: null
# **set_default_publish_option** - *sets one of the default publishing options.*
set_default_publish_option:(name,value)=>
@default_publish_options ?= {}
@default_publish_options[name] = value
# **set_default_publish_header** - *sets one of the default publishing headers.*
set_default_publish_header:(name,value)=>
@default_publish_options ?= {}
@default_publish_options.headers ?= {}
@default_publish_options.headers[name] = value
# **payload_converter** - *a utility method used to convert the payload before publishing.*
#
# (The default method is the identity function, no conversion occurs.)
payload_converter:(payload)=>payload
_on_connect:(callback)=>
@exchanges_by_name ?= { }
callback?()
_on_disconnect:(callback)=>
@exchanges_by_name = undefined
callback?()
# args:
# - exchange_name
# - exchange_options
# - callback
create_exchange:(exchange_name, exchange_options, callback)=>
if typeof exchange_options is 'function' and not callback?
callback = exchange_options
exchange_options = undefined#
unless @connection?
callback? new Error("Not connected.")
return undefined
else
LogUtil.tpdebug "Creating (or fetching) the exchange named `#{exchange_name}`..."
if @exchanges_by_name[exchange_name]?
LogUtil.tpdebug "...found in cache."
callback?(undefined,@exchanges_by_name[exchange_name],exchange_name,true)
else
LogUtil.tpdebug "...not found in cache, creating or fetching from AMQP server..."
exchange = @connection.exchange exchange_name, exchange_options, (x...)=>
LogUtil.tpdebug "...created or fetched."
exchange.__amqp_util_exchange_name = exchange_name
@exchanges_by_name[exchange_name] = exchange
callback?(undefined,exchange,exchange_name,false)
return exchange_name
get_exchange:(exchange_name, exchange_options, callback)=>
@create_exchange exchange_name, exchange_options, callback
# args: exchange_or_exchange_name, payload, routing_key, publish_options, callback
publish:(args...)=>
if args?.length > 0 and (typeof args[0] is 'string' or not args[0]?)
exchange_or_exchange_name = args.shift()
else if args?.length > 0 and typeof args[0] is 'object' and @_object_is_exchange(args[0])
exchange_or_exchange_name = args.shift()
if args?.length > 0
payload = args.shift()
if args?.length > 0 and (typeof args[0] is 'string' or not args[0]?)
routing_key = args.shift()
if args?.length > 0 and (typeof args[0] is 'object' or not args[0]?)
publish_options = args.shift()
if args?.length > 0 and (typeof args[0] is 'function' or not args[0]?)
callback = args.shift()
#
@_maybe_create_exchange exchange_or_exchange_name, (err, exchange, exchange_name)=>
if err?
callback?(err)
else
unless routing_key?
routing_key = @default_routing_key
unless publish_options?
publish_options = @default_publish_options
payload = @payload_converter(payload)
LogUtil.tpdebug "Publishing a payload of type `#{typeof payload}` to the exchange named `#{exchange_name}` with routing key `#{routing_key}`."
exchange.publish routing_key, payload, publish_options, (error_occured)=>
if error_occured
callback?(error_occured)
else
callback?(null)
get_exchange_by_name:(exchange_name)=>
return @exchanges_by_name[exchange_name]
_maybe_create_exchange:(exchange_or_exchange_name, args..., callback)=>
[exchange, exchange_name] = @_to_exchange_exchange_name_pair exchange_or_exchange_name
if exchange?
callback? undefined, exchange, exchange_name, true
else
@create_exchange exchange_name, args..., callback
_to_exchange_exchange_name_pair:(exchange_or_exchange_name)=>
if typeof exchange_or_exchange_name is 'string'
exchange_name = exchange_or_exchange_name
exchange = @exchanges_by_name[exchange_or_exchange_name] ? undefined
else if @_object_is_exchange exchange_or_exchange_name
exchange = exchange_or_exchange_name
exchange_name = exchange?.__amqp_util_exchange_name ? undefined
else
exchange_name = undefined
exchange = undefined
return [exchange, exchange_name]
# Exported as `AMQPProducer`.
exports.AMQPProducer = exports.AmqpProducer = AmqpProducer
# When loaded directly, use `AMQPProducer` to publish a simple message.
#
# Accepts up to 4 command line parameters:
# - the payload (message contents)
# - the routing key
# - the exchange name
# - the broker URI
#
if require.main is module
payload = (process.argv?[2]) ? 'Example Payload'
key = (process.argv?[3]) ? '<KEY>'
exchange_name = (process.argv?[4]) ? 'foobar' #'amq.topic'
broker_url = (process.argv?[5]) ? 'amqp://guest:guest@localhost:5672'
producer = new AmqpProducer()
# producer.set_default_publish_option("confirm", true)
producer.connect broker_url, (err)->
if err?
console.error err
process.exit 1
else
console.log "AmqpProducer connected to broker at \"#{broker_url}\"."
producer.create_exchange exchange_name, {confirm:true}, (err)->
if err?
console.error err
process.exit 1
else
console.log "AmqpProducer fetched or created exchange \"#{exchange_name}\"."
producer.publish exchange_name, payload, key, {}, ()=>
console.log "Confirmed."
process.exit()
| true | fs = require 'fs'
path = require 'path'
HOME_DIR = path.join __dirname, '..'
LIB_COV = path.join HOME_DIR, 'lib-cov'
LIB = path.join HOME_DIR, 'lib'
LIB_DIR = if fs.existsSync(LIB_COV) then LIB_COV else LIB
################################################################################
amqp = require 'amqp'
RandomUtil = require('inote-util').RandomUtil
AsyncUtil = require('inote-util').AsyncUtil
LogUtil = require('inote-util').LogUtil
process = require 'process'
################################################################################
AmqpBase = require(path.join(LIB_DIR, 'amqp-base')).AmqpBase
################################################################################
DEBUG = /(^|,)((all)|(amqp-?util)|(amqp-?producer))(,|$)/i.test process.env.NODE_DEBUG # add `amqp-util` or `amqp-producer` to NODE_DEBUG to enable debugging output
LogUtil = LogUtil.init({debug:DEBUG, prefix: "AmqpProducer:"})
class AmqpProducer extends AmqpBase
constructor:(args...)->
super(args...)
# **default_routing_key** - *the default key value to use in `publish`.*
default_routing_key: null
# **default_publish_options** - *map of the default publishing options for `publish`.*
default_publish_options: null
# **set_default_publish_option** - *sets one of the default publishing options.*
set_default_publish_option:(name,value)=>
@default_publish_options ?= {}
@default_publish_options[name] = value
# **set_default_publish_header** - *sets one of the default publishing headers.*
set_default_publish_header:(name,value)=>
@default_publish_options ?= {}
@default_publish_options.headers ?= {}
@default_publish_options.headers[name] = value
# **payload_converter** - *a utility method used to convert the payload before publishing.*
#
# (The default method is the identity function, no conversion occurs.)
payload_converter:(payload)=>payload
_on_connect:(callback)=>
@exchanges_by_name ?= { }
callback?()
_on_disconnect:(callback)=>
@exchanges_by_name = undefined
callback?()
# args:
# - exchange_name
# - exchange_options
# - callback
create_exchange:(exchange_name, exchange_options, callback)=>
if typeof exchange_options is 'function' and not callback?
callback = exchange_options
exchange_options = undefined#
unless @connection?
callback? new Error("Not connected.")
return undefined
else
LogUtil.tpdebug "Creating (or fetching) the exchange named `#{exchange_name}`..."
if @exchanges_by_name[exchange_name]?
LogUtil.tpdebug "...found in cache."
callback?(undefined,@exchanges_by_name[exchange_name],exchange_name,true)
else
LogUtil.tpdebug "...not found in cache, creating or fetching from AMQP server..."
exchange = @connection.exchange exchange_name, exchange_options, (x...)=>
LogUtil.tpdebug "...created or fetched."
exchange.__amqp_util_exchange_name = exchange_name
@exchanges_by_name[exchange_name] = exchange
callback?(undefined,exchange,exchange_name,false)
return exchange_name
get_exchange:(exchange_name, exchange_options, callback)=>
@create_exchange exchange_name, exchange_options, callback
# args: exchange_or_exchange_name, payload, routing_key, publish_options, callback
publish:(args...)=>
if args?.length > 0 and (typeof args[0] is 'string' or not args[0]?)
exchange_or_exchange_name = args.shift()
else if args?.length > 0 and typeof args[0] is 'object' and @_object_is_exchange(args[0])
exchange_or_exchange_name = args.shift()
if args?.length > 0
payload = args.shift()
if args?.length > 0 and (typeof args[0] is 'string' or not args[0]?)
routing_key = args.shift()
if args?.length > 0 and (typeof args[0] is 'object' or not args[0]?)
publish_options = args.shift()
if args?.length > 0 and (typeof args[0] is 'function' or not args[0]?)
callback = args.shift()
#
@_maybe_create_exchange exchange_or_exchange_name, (err, exchange, exchange_name)=>
if err?
callback?(err)
else
unless routing_key?
routing_key = @default_routing_key
unless publish_options?
publish_options = @default_publish_options
payload = @payload_converter(payload)
LogUtil.tpdebug "Publishing a payload of type `#{typeof payload}` to the exchange named `#{exchange_name}` with routing key `#{routing_key}`."
exchange.publish routing_key, payload, publish_options, (error_occured)=>
if error_occured
callback?(error_occured)
else
callback?(null)
get_exchange_by_name:(exchange_name)=>
return @exchanges_by_name[exchange_name]
_maybe_create_exchange:(exchange_or_exchange_name, args..., callback)=>
[exchange, exchange_name] = @_to_exchange_exchange_name_pair exchange_or_exchange_name
if exchange?
callback? undefined, exchange, exchange_name, true
else
@create_exchange exchange_name, args..., callback
_to_exchange_exchange_name_pair:(exchange_or_exchange_name)=>
if typeof exchange_or_exchange_name is 'string'
exchange_name = exchange_or_exchange_name
exchange = @exchanges_by_name[exchange_or_exchange_name] ? undefined
else if @_object_is_exchange exchange_or_exchange_name
exchange = exchange_or_exchange_name
exchange_name = exchange?.__amqp_util_exchange_name ? undefined
else
exchange_name = undefined
exchange = undefined
return [exchange, exchange_name]
# Exported as `AMQPProducer`.
exports.AMQPProducer = exports.AmqpProducer = AmqpProducer
# When loaded directly, use `AMQPProducer` to publish a simple message.
#
# Accepts up to 4 command line parameters:
# - the payload (message contents)
# - the routing key
# - the exchange name
# - the broker URI
#
if require.main is module
payload = (process.argv?[2]) ? 'Example Payload'
key = (process.argv?[3]) ? 'PI:KEY:<KEY>END_PI'
exchange_name = (process.argv?[4]) ? 'foobar' #'amq.topic'
broker_url = (process.argv?[5]) ? 'amqp://guest:guest@localhost:5672'
producer = new AmqpProducer()
# producer.set_default_publish_option("confirm", true)
producer.connect broker_url, (err)->
if err?
console.error err
process.exit 1
else
console.log "AmqpProducer connected to broker at \"#{broker_url}\"."
producer.create_exchange exchange_name, {confirm:true}, (err)->
if err?
console.error err
process.exit 1
else
console.log "AmqpProducer fetched or created exchange \"#{exchange_name}\"."
producer.publish exchange_name, payload, key, {}, ()=>
console.log "Confirmed."
process.exit()
|
[
{
"context": "###\nForm field validation service\n@author Antonio Mendes <webaholicson@gmail.com>\n###\n",
"end": 56,
"score": 0.9998775720596313,
"start": 42,
"tag": "NAME",
"value": "Antonio Mendes"
},
{
"context": " field validation service\n@author Antonio Mendes <webaholicson@gm... | vendor/assets/javascripts/validators.coffee | Webaholicson/automall | 0 | ###
Form field validation service
@author Antonio Mendes <webaholicson@gmail.com>
###
| 22731 | ###
Form field validation service
@author <NAME> <<EMAIL>>
###
| true | ###
Form field validation service
@author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
###
|
[
{
"context": "if casper.cli.has(0) then casper.cli.get(0) else \"zuck\"\nfilePath = \"parsed/#{user}.json\"\nskipScraping = ",
"end": 895,
"score": 0.5794696807861328,
"start": 891,
"tag": "USERNAME",
"value": "zuck"
},
{
"context": "\n email: _env.fb_user\n pas... | scrape.coffee | patniharshit/fb-scraper | 1 | # fb-scraper
#
# IMPORTANT: run casperjs with --ignore-ssl-errors=yes --cookies-file=cookies.txt
_env = require("system").env
fs = require("fs")
casper = require("casper").create({
# verbose: true, # useful for debug
logLevel: "debug",
userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22",
pageSettings: { # Save resources (set to true if you'd like to take screenshots)
loadImages: false,
loadPlugins: false
}
})
cheerio = require("cheerio") # Library to parse HTML with a jQuery-like API
# Check that credentials exist
unless _env.hasOwnProperty("fb_user") and _env.hasOwnProperty("fb_pass")
casper.echo "Missing environment variables. Do `source .env` first."
casper.exit()
# Define the user to fetch
user = if casper.cli.has(0) then casper.cli.get(0) else "zuck"
filePath = "parsed/#{user}.json"
skipScraping = casper.cli.has("parse-only")
# @todo: --parse-only is implemented in a very hacky, last-minute way
# and should be just a big if-else with better separated functions,
# at the moment it runs Casper for nothing.
# Also the 'parser' of posts should be a class/single function.
###*
* This transforms elements of a single post into a JSON object
* @param {object} item The current status item
* @return {object}
###
parseFacebookPost = (item) ->
###*
* Count number of shares on a post
* @param {Cheerio} el The full status element
* @return {int} Number of shares
###
countShares = (el) ->
return 0 if el('.UFIShareLink').length is 0
return parseInt(el('.UFIShareLink').first().text().match(/[0-9]+/), 10)
###*
* Count number of likes on a post
* @param {Cheerio} el The full status element
* @return {int} Number of likes
###
countLikes = (el) ->
return 0 if el('._1g5v').length is 0
return parseInt(el('._1g5v').text().match(/[0-9]+/), 10)
###*
* Count number of comments on a post
* NOTE: at the moment this doesn't count comment replies on purpose
* if you do want to count them... exercise left to the reader!
*
* @param {Cheerio} el The full status element
* @return {int} Number of comments
###
countComments = (el) ->
total = 0
total += el('span.UFICommentBody').length # comment blocks
unless el('.UFIPagerRow').length is 0 # comment pager ("show 12 more comments")
total += parseInt(el('.UFIPagerRow').first().text().match(/[0-9]+/), 10)
return total
if !item.html then return null
$ = cheerio.load(item.html)
# Determine whether the post contains a link/photo, and if it has any textual content
# If yes, just skip it (this can be modified if you want to keep it)
if $('.userContent').first().text() == "" or $('.mtm').length > 0
return null
return {
content: $('.userContent').first().text()
permalink: $('abbr').first().parents('a').attr('href')
time: $('abbr').first().text()
timestamp: $('abbr').first().data('utime')
likes: countLikes($)
shares: countShares($)
comments: countComments($)
isFriendPost: $('.mhs').length > 0
}
# Let's try to authenticate first
casper.start "https://www.facebook.com", ->
if skipScraping then return
pageTitle = @getTitle()
# note: you may have to change this if your locale isn't English
if pageTitle is "Facebook - Log In or Sign Up"
casper.echo "Attempting to log in..."
query =
email: _env.fb_user
pass: _env.fb_pass
@fill "#login_form", query, true
# Because we keep cookies, you might remain logged in from PhantomJS
else if pageTitle is "Facebook"
casper.echo "Already logged in"
else
casper.echo "Oops, something unexpected happened. Page title: #{pageTitle}"
casper.exit()
# else if @getTitle() is "Redirecting..."
# casper.echo "Logged in"
# Once we're logged in, we move on to the profile
casper.thenOpen "https://www.facebook.com/#{ user }"
currentPage = 1
hasClickedAllStories = false
casper.then ->
if skipScraping then return
casper.echo "Now on https://www.facebook.com/#{ user }"
casper.echo @getTitle()
# Recursive function that keeps scrolling down
tryAndScroll = ->
casper.waitFor ->
casper.scrollToBottom()
true
, ->
unless hasClickedAllStories
# Click on Visible Highlights to show all stories
if casper.visible '#u_jsonp_6_4'
casper.click '#u_jsonp_6_4'
casper.echo '[clicked Visible Highlights]'
hasClickedAllStories = true
# When we see the "Born" block, then we'll stop. Until then keep scrolling!
# @todo: sometimes it never shows and the script keeps chugging along merrily on inexistent pages. The current terrible fix is to stop it regardless at 150 pages but it should just check if there's nothing new that was added.
unless currentPage > 150 or casper.visible { type: "xpath", path: "//a[@class and starts-with(.,'Born')]" }
casper.echo "Loaded page #{ currentPage++ }"
tryAndScroll()
tryAndScroll()
# Once the first part has finished: we have reached the bottom of the page,
# so we take all the elements in the page, parse them & save them
casper.then ->
casper.echo "Reached end of profile, parsing and saving to #{ filePath }"
# take all the <div> with class .userContentWrapper on our big page
# and store them into elements, then save that file
if !skipScraping
elements = @getElementsInfo '.userContentWrapper'
fs.write(filePath + ".raw", JSON.stringify(elements))
else # or load it (if --parse-only)
elements = JSON.parse(fs.read(filePath + ".raw"))
# Then one by one we'll run our parseFacebookPost() function on every div
# and add it to an array
parsedPosts = []
for key, item of elements
if (p = parseFacebookPost(item)) isnt null
parsedPosts.push p
# And we write our array to a file.
fs.write(filePath, JSON.stringify(parsedPosts), "w")
casper.echo "Done!"
casper.run() | 190259 | # fb-scraper
#
# IMPORTANT: run casperjs with --ignore-ssl-errors=yes --cookies-file=cookies.txt
_env = require("system").env
fs = require("fs")
casper = require("casper").create({
# verbose: true, # useful for debug
logLevel: "debug",
userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22",
pageSettings: { # Save resources (set to true if you'd like to take screenshots)
loadImages: false,
loadPlugins: false
}
})
cheerio = require("cheerio") # Library to parse HTML with a jQuery-like API
# Check that credentials exist
unless _env.hasOwnProperty("fb_user") and _env.hasOwnProperty("fb_pass")
casper.echo "Missing environment variables. Do `source .env` first."
casper.exit()
# Define the user to fetch
user = if casper.cli.has(0) then casper.cli.get(0) else "zuck"
filePath = "parsed/#{user}.json"
skipScraping = casper.cli.has("parse-only")
# @todo: --parse-only is implemented in a very hacky, last-minute way
# and should be just a big if-else with better separated functions,
# at the moment it runs Casper for nothing.
# Also the 'parser' of posts should be a class/single function.
###*
* This transforms elements of a single post into a JSON object
* @param {object} item The current status item
* @return {object}
###
parseFacebookPost = (item) ->
###*
* Count number of shares on a post
* @param {Cheerio} el The full status element
* @return {int} Number of shares
###
countShares = (el) ->
return 0 if el('.UFIShareLink').length is 0
return parseInt(el('.UFIShareLink').first().text().match(/[0-9]+/), 10)
###*
* Count number of likes on a post
* @param {Cheerio} el The full status element
* @return {int} Number of likes
###
countLikes = (el) ->
return 0 if el('._1g5v').length is 0
return parseInt(el('._1g5v').text().match(/[0-9]+/), 10)
###*
* Count number of comments on a post
* NOTE: at the moment this doesn't count comment replies on purpose
* if you do want to count them... exercise left to the reader!
*
* @param {Cheerio} el The full status element
* @return {int} Number of comments
###
countComments = (el) ->
total = 0
total += el('span.UFICommentBody').length # comment blocks
unless el('.UFIPagerRow').length is 0 # comment pager ("show 12 more comments")
total += parseInt(el('.UFIPagerRow').first().text().match(/[0-9]+/), 10)
return total
if !item.html then return null
$ = cheerio.load(item.html)
# Determine whether the post contains a link/photo, and if it has any textual content
# If yes, just skip it (this can be modified if you want to keep it)
if $('.userContent').first().text() == "" or $('.mtm').length > 0
return null
return {
content: $('.userContent').first().text()
permalink: $('abbr').first().parents('a').attr('href')
time: $('abbr').first().text()
timestamp: $('abbr').first().data('utime')
likes: countLikes($)
shares: countShares($)
comments: countComments($)
isFriendPost: $('.mhs').length > 0
}
# Let's try to authenticate first
casper.start "https://www.facebook.com", ->
if skipScraping then return
pageTitle = @getTitle()
# note: you may have to change this if your locale isn't English
if pageTitle is "Facebook - Log In or Sign Up"
casper.echo "Attempting to log in..."
query =
email: _env.fb_user
pass: <PASSWORD>
@fill "#login_form", query, true
# Because we keep cookies, you might remain logged in from PhantomJS
else if pageTitle is "Facebook"
casper.echo "Already logged in"
else
casper.echo "Oops, something unexpected happened. Page title: #{pageTitle}"
casper.exit()
# else if @getTitle() is "Redirecting..."
# casper.echo "Logged in"
# Once we're logged in, we move on to the profile
casper.thenOpen "https://www.facebook.com/#{ user }"
currentPage = 1
hasClickedAllStories = false
casper.then ->
if skipScraping then return
casper.echo "Now on https://www.facebook.com/#{ user }"
casper.echo @getTitle()
# Recursive function that keeps scrolling down
tryAndScroll = ->
casper.waitFor ->
casper.scrollToBottom()
true
, ->
unless hasClickedAllStories
# Click on Visible Highlights to show all stories
if casper.visible '#u_jsonp_6_4'
casper.click '#u_jsonp_6_4'
casper.echo '[clicked Visible Highlights]'
hasClickedAllStories = true
# When we see the "Born" block, then we'll stop. Until then keep scrolling!
# @todo: sometimes it never shows and the script keeps chugging along merrily on inexistent pages. The current terrible fix is to stop it regardless at 150 pages but it should just check if there's nothing new that was added.
unless currentPage > 150 or casper.visible { type: "xpath", path: "//a[@class and starts-with(.,'Born')]" }
casper.echo "Loaded page #{ currentPage++ }"
tryAndScroll()
tryAndScroll()
# Once the first part has finished: we have reached the bottom of the page,
# so we take all the elements in the page, parse them & save them
casper.then ->
casper.echo "Reached end of profile, parsing and saving to #{ filePath }"
# take all the <div> with class .userContentWrapper on our big page
# and store them into elements, then save that file
if !skipScraping
elements = @getElementsInfo '.userContentWrapper'
fs.write(filePath + ".raw", JSON.stringify(elements))
else # or load it (if --parse-only)
elements = JSON.parse(fs.read(filePath + ".raw"))
# Then one by one we'll run our parseFacebookPost() function on every div
# and add it to an array
parsedPosts = []
for key, item of elements
if (p = parseFacebookPost(item)) isnt null
parsedPosts.push p
# And we write our array to a file.
fs.write(filePath, JSON.stringify(parsedPosts), "w")
casper.echo "Done!"
casper.run() | true | # fb-scraper
#
# IMPORTANT: run casperjs with --ignore-ssl-errors=yes --cookies-file=cookies.txt
_env = require("system").env
fs = require("fs")
casper = require("casper").create({
# verbose: true, # useful for debug
logLevel: "debug",
userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22",
pageSettings: { # Save resources (set to true if you'd like to take screenshots)
loadImages: false,
loadPlugins: false
}
})
cheerio = require("cheerio") # Library to parse HTML with a jQuery-like API
# Check that credentials exist
unless _env.hasOwnProperty("fb_user") and _env.hasOwnProperty("fb_pass")
casper.echo "Missing environment variables. Do `source .env` first."
casper.exit()
# Define the user to fetch
user = if casper.cli.has(0) then casper.cli.get(0) else "zuck"
filePath = "parsed/#{user}.json"
skipScraping = casper.cli.has("parse-only")
# @todo: --parse-only is implemented in a very hacky, last-minute way
# and should be just a big if-else with better separated functions,
# at the moment it runs Casper for nothing.
# Also the 'parser' of posts should be a class/single function.
###*
* This transforms elements of a single post into a JSON object
* @param {object} item The current status item
* @return {object}
###
parseFacebookPost = (item) ->
###*
* Count number of shares on a post
* @param {Cheerio} el The full status element
* @return {int} Number of shares
###
countShares = (el) ->
return 0 if el('.UFIShareLink').length is 0
return parseInt(el('.UFIShareLink').first().text().match(/[0-9]+/), 10)
###*
* Count number of likes on a post
* @param {Cheerio} el The full status element
* @return {int} Number of likes
###
countLikes = (el) ->
return 0 if el('._1g5v').length is 0
return parseInt(el('._1g5v').text().match(/[0-9]+/), 10)
###*
* Count number of comments on a post
* NOTE: at the moment this doesn't count comment replies on purpose
* if you do want to count them... exercise left to the reader!
*
* @param {Cheerio} el The full status element
* @return {int} Number of comments
###
countComments = (el) ->
total = 0
total += el('span.UFICommentBody').length # comment blocks
unless el('.UFIPagerRow').length is 0 # comment pager ("show 12 more comments")
total += parseInt(el('.UFIPagerRow').first().text().match(/[0-9]+/), 10)
return total
if !item.html then return null
$ = cheerio.load(item.html)
# Determine whether the post contains a link/photo, and if it has any textual content
# If yes, just skip it (this can be modified if you want to keep it)
if $('.userContent').first().text() == "" or $('.mtm').length > 0
return null
return {
content: $('.userContent').first().text()
permalink: $('abbr').first().parents('a').attr('href')
time: $('abbr').first().text()
timestamp: $('abbr').first().data('utime')
likes: countLikes($)
shares: countShares($)
comments: countComments($)
isFriendPost: $('.mhs').length > 0
}
# Let's try to authenticate first
casper.start "https://www.facebook.com", ->
if skipScraping then return
pageTitle = @getTitle()
# note: you may have to change this if your locale isn't English
if pageTitle is "Facebook - Log In or Sign Up"
casper.echo "Attempting to log in..."
query =
email: _env.fb_user
pass: PI:PASSWORD:<PASSWORD>END_PI
@fill "#login_form", query, true
# Because we keep cookies, you might remain logged in from PhantomJS
else if pageTitle is "Facebook"
casper.echo "Already logged in"
else
casper.echo "Oops, something unexpected happened. Page title: #{pageTitle}"
casper.exit()
# else if @getTitle() is "Redirecting..."
# casper.echo "Logged in"
# Once we're logged in, we move on to the profile
casper.thenOpen "https://www.facebook.com/#{ user }"
currentPage = 1
hasClickedAllStories = false
casper.then ->
if skipScraping then return
casper.echo "Now on https://www.facebook.com/#{ user }"
casper.echo @getTitle()
# Recursive function that keeps scrolling down
tryAndScroll = ->
casper.waitFor ->
casper.scrollToBottom()
true
, ->
unless hasClickedAllStories
# Click on Visible Highlights to show all stories
if casper.visible '#u_jsonp_6_4'
casper.click '#u_jsonp_6_4'
casper.echo '[clicked Visible Highlights]'
hasClickedAllStories = true
# When we see the "Born" block, then we'll stop. Until then keep scrolling!
# @todo: sometimes it never shows and the script keeps chugging along merrily on inexistent pages. The current terrible fix is to stop it regardless at 150 pages but it should just check if there's nothing new that was added.
unless currentPage > 150 or casper.visible { type: "xpath", path: "//a[@class and starts-with(.,'Born')]" }
casper.echo "Loaded page #{ currentPage++ }"
tryAndScroll()
tryAndScroll()
# Once the first part has finished: we have reached the bottom of the page,
# so we take all the elements in the page, parse them & save them
casper.then ->
casper.echo "Reached end of profile, parsing and saving to #{ filePath }"
# take all the <div> with class .userContentWrapper on our big page
# and store them into elements, then save that file
if !skipScraping
elements = @getElementsInfo '.userContentWrapper'
fs.write(filePath + ".raw", JSON.stringify(elements))
else # or load it (if --parse-only)
elements = JSON.parse(fs.read(filePath + ".raw"))
# Then one by one we'll run our parseFacebookPost() function on every div
# and add it to an array
parsedPosts = []
for key, item of elements
if (p = parseFacebookPost(item)) isnt null
parsedPosts.push p
# And we write our array to a file.
fs.write(filePath, JSON.stringify(parsedPosts), "w")
casper.echo "Done!"
casper.run() |
[
{
"context": "ail: \" + email)\n\n params = {\n submittedBy: 'robo@noreply.io',\n startDate: startDate,\n endDate: endD",
"end": 8806,
"score": 0.9999058842658997,
"start": 8791,
"tag": "EMAIL",
"value": "robo@noreply.io"
}
] | app/packages/grits-net-meteor/server/publications.coffee | billdmcconnell/fliightData | 4 | Future = Npm.require('fibers/future')
_FLIRT_SIMULATOR_URL = process.env.FLIRT_SIMULATOR_URL
if !_FLIRT_SIMULATOR_URL
throw new Error('You must set FLIRT_SIMULATOR_URL environment variable, ex: http://localhost:45000/simulator')
_useAggregation = true # enable/disable using the aggregation framework
_useSeatProjection = false # if _useAggregation and _useSeatProjection is enabled, seatsOverInterval will be projected using an aggregate method
_profile = false # enable/disable recording method performance to the collection 'profiling'
_activeAirports = null
# collection to record profiling results
Profiling = new Mongo.Collection('profiling')
# records a profile document to mongo when profiling is enabled
#
# @param [String] methodName, the name of the method that is being profiled
# @param [Integer] elsapsedTime, the elapsed time in milliseconds
recordProfile = (methodName, elapsedTime) ->
Profiling.insert({methodName: methodName, elapsedTime: elapsedTime, created: new Date()})
return
regexEscape = (s)->
# Based on bobince's regex escape function.
# source: http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript/3561711#3561711
s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&')
# extends the query object to ensure that all flights are filtered by current
# dates
#
# @param [Object] query, the incoming query object
# @param [String] lastId, the lastId for performing limit/offset by sorted _id
# @return [Object] query, the outgoing query object
extendQuery = (query, lastId) ->
# all flights are filtered by current date being past the discontinuedDate
# or before the effectiveDate
now = new Date()
if !_.isUndefined(query.effectiveDate)
query.effectiveDate.$lte = new Date(query.effectiveDate.$lte)
else
query.effectiveDate = {$lte: now}
if !_.isUndefined(query.discontinuedDate)
query.discontinuedDate.$gte = new Date(query.discontinuedDate.$gte)
else
query.discontinuedDate = {$gte: now}
# offset
if !(_.isUndefined(lastId) or _.isNull(lastId))
offsetFilter = _id: $gt: lastId
_.extend query, offsetFilter
# cache the results of calling the given function for a period of time.
tempCache = (func) ->
ONE_DAY_IN_MILLISECONDS = 1000 * 60 * 60 * 24
cache = {}
return (args...) ->
key = args.join(',')
if key of cache
[result, timestamp] = cache[key]
if (new Date() - timestamp) < ONE_DAY_IN_MILLISECONDS
return result
result = func.apply(this, args)
cache[key] = [result, new Date()]
return result
# builds the mongo options object that contains sort and limit clauses
#
# @param [Integer] limit, the amout to limit the results
# @return [Object] options, mongodb query options
buildOptions = (limit) ->
options =
sort:
_id: 1
# limit
if !(_.isUndefined(limit) or _.isNull(limit))
limitClause =
limit: limit
_.extend options, limitClause
return options
# the query keys should have the most selective filters first, this method
# places the date keys prior to any other keys used in the filter.
#
# @param [Object] query, the incoming query object
# @return [Array] keys, arranged by selectiveness
arrangeQueryKeys = (query) ->
keys = Object.keys(query)
effectiveDateIdx = _.indexOf(keys, 'effectiveDate')
if effectiveDateIdx > 0
keys.splice(effectiveDateIdx, 1)
keys.unshift('effectiveDate')
discontinuedDateIdx = _.indexOf(keys, 'discontinuedDate')
if discontinuedDateIdx > 0
keys.splice(discontinuedDateIdx, 1)
keys.unshift('discontinuedDate')
return keys
# calculate TotalSeats over an interval, this is done server-side to avoid
# having the client process the correct totalSeats twice (within the node
# converFlight method and path convertFlight methods)
#
# @param [Array] flights, an array of fights
# @param [Object] query, the query from the client
_calculateSeatsOverInterval = (flights, query) ->
if flights.length == 0
return flights
# the query's start date is the discontinuedDate
startDate = moment.utc(query.discontinuedDate.$gte)
# the query's end date is the effectiveDate
endDate = moment.utc(query.effectiveDate.$lte)
# iterate over each flight and calculate the totalSeats
_.each(flights, (flight) ->
# the default is 0, which represents a single date range
flight.seatsOverInterval = 0
flight.flightsOverInterval = 0
flightEffectiveDate = moment.utc(flight.effectiveDate)
flightDiscontinuedDate = moment.utc(flight.discontinuedDate)
# default the range is based off the query params
rangeStart = moment.utc(startDate)
rangeEnd = moment.utc(endDate)
# determine if the flight is discontinued before the endDate to determine
# if the rangeEnd should be updated
discontinuedRange = moment.range(flightDiscontinuedDate, endDate)
daysDiscontinuedBeforeEnd = discontinuedRange.diff('days')
if daysDiscontinuedBeforeEnd > 0
# if days is greater than zero the rangeEnd should be the flightDiscontinuedDate
rangeEnd = flightDiscontinuedDate
# determine if the flight is started after the endDate to determine if the
# rangeStart should be updated
effectiveRange = moment.range(startDate, flightEffectiveDate)
daysEffectiveAfterStart = effectiveRange.diff('days')
if daysEffectiveAfterStart > 0
# if days is greater than zero the rangeStart should be the flightEffectiveDate
rangeStart = flightEffectiveDate
# now that rangeStart and rangeEnd are updated, determine the range for
# calculating totalSeats
range = moment.range(rangeStart, rangeEnd)
rangeDays = range.diff('days')
# do not calculate seatsOverInterval for invalid range
if rangeDays < 0
return
# if the flight happens every day of the week (dow) multiple by the rangeDays
if flight.weeklyFrequency == 7
if rangeDays > 0
flight.seatsOverInterval = flight.totalSeats * rangeDays
flight.flightsOverInterval = rangeDays
# determine which days are valid and increment flightsOverInterval
else
if rangeDays > 0
validDays = [
flight.day7
flight.day1
flight.day2
flight.day3
flight.day4
flight.day5
flight.day6
]
flightsOverInterval = 0
# iterate over the range of days, if valid increment the flightsOverInterval
range.by('days', (d) ->
console.assert(not _.isUndefined(validDays[d.day()]))
if validDays[d.day()]
flightsOverInterval++
)
flight.flightsOverInterval = flightsOverInterval
if flightsOverInterval > 0
flight.seatsOverInterval = flight.totalSeats * flightsOverInterval
else
flight.seatsOverInterval = flight.totalSeats
)
return flights
# find flights with an optional limit and offset
#
# @param [Object] query, a mongodb query object
# @param [Integer] limit, the amount of records to limit
# @param [Integer] skip, the amount of records to skip
# @return [Array] an array of flights
flightsByQuery = (query, limit, skip) ->
if _profile
start = new Date()
if _.isUndefined(query) or _.isEmpty(query)
return []
if _.isUndefined(limit)
limit = 1000
if _.isUndefined(skip)
skip = 0
# make sure dates are set
extendQuery(query, null)
matches = []
matches = Flights.find(query, {
limit: limit
skip: skip
transform: null
}).fetch()
totalRecords = Flights.find(query, {transform: null}).count()
matches = _calculateSeatsOverInterval(matches, query)
if _profile
recordProfile('flightsByQuery', new Date() - start)
return {
flights: matches
totalRecords: totalRecords
}
# finds airports that have flights
#
# @return [Array] airports, an array of airport document
findActiveAirports = tempCache () ->
if _activeAirports isnt null
return _activeAirports
rawFlights = Flights.rawCollection()
rawDistinct = Meteor.wrapAsync(rawFlights.distinct, rawFlights)
_activeAirports = Airports.find({'_id': {$in: rawDistinct("departureAirport._id")}}).fetch()
return _activeAirports
# finds a single airport document
#
# @param [String] id, the airport code to retrieve
# @return [Object] airport, an airport document
findAirportById = (id) ->
if _.isUndefined(id) or _.isEmpty(id)
return []
return Airports.findOne({'_id': id})
startSimulation = (simPas, startDate, endDate, origins, email) ->
console.log ("DEBUG: Flight Sim Url: " + _FLIRT_SIMULATOR_URL)
console.log ("DEBUG: simPas: " + simPas)
console.log ("DEBUG: startDate: " + startDate)
console.log ("DEBUG: endDate: " + endDate)
console.log ("DEBUG: origins: " + origins)
console.log ("DEBUG: email: " + email)
params = {
submittedBy: 'robo@noreply.io',
startDate: startDate,
endDate: endDate,
departureNodes: origins,
numberPassengers: simPas
}
if email
params.notificationEmail = email
future = new Future();
HTTP.post(_FLIRT_SIMULATOR_URL, {
params: params
}, (err, res) ->
if err
console.log ("ERROR: " + JSON.stringify(err) )
future.throw(err)
return
console.log( "NO ERROR" )
future.return(JSON.parse(res.content))
)
return future.wait()
# finds nearby airports through geo $near
#
# @param [String] id, the airport code to use as the center/base of search
# @return [Array] airports, an array of airports
findNearbyAirports = (id, miles) ->
if _profile
start = new Date()
if _.isUndefined(id) or _.isEmpty(id)
return []
miles = parseInt(miles, 10)
if _.isUndefined(miles) or _.isNaN(miles)
return []
metersToMiles = 1609.344
airport = Airports.findOne({'_id': id})
if _.isUndefined(airport) or _.isEmpty(airport)
return []
coordinates = airport.loc.coordinates
value =
$geometry:
type: 'Point'
coordinates: coordinates
$minDistance: 0
$maxDistance: metersToMiles * miles
query =
loc: {$near: value}
airports = Airports.find(query, {transform: null}).fetch()
if _profile
recordProfile('findNearbyAirports', new Date() - start)
return airports
# finds the min and max date range of a 'Date' key to the flights collection
#
# @param [String] the key of the flight documents the contains a date value
# @return [Array] array of two dates, defaults to 'null' if not found [min, max]
findMinMaxDateRange = tempCache (key) ->
if _profile
start = new Date()
# determine minimum date by sort ascending
minDate = null
minResults = Flights.find({}, {sort: {"#{key}": 1}, limit: 1, transform: null}).fetch()
if !(_.isUndefined(minResults) || _.isEmpty(minResults))
min = minResults[0]
if min.hasOwnProperty(key)
minDate = min[key]
# determine maximum date by sort descending
maxDate = null
maxResults = Flights.find({}, {sort: {"#{key}": -1}, limit: 1, transform: null}).fetch()
if !(_.isUndefined(maxResults) || _.isEmpty(maxResults))
max = maxResults[0]
if max.hasOwnProperty(key)
maxDate = max[key]
if _profile
recordProfile('findMinMaxDateRange', new Date() - start)
return [minDate, maxDate]
# determines if the runtime environment is for testing
#
# @return [Boolean] isTest, true or false
isTestEnvironment = () ->
return process.env.hasOwnProperty('VELOCITY_MAIN_APP_PATH')
# finds airports that match the search
#
# @param [String] search, the string to search for matches
# @param [Integer] skip, the amount of documents to skip in limit/offset
# @return [Array] airports, an array of airport documents
typeaheadAirport = (search, skip) ->
if _profile
start = new Date()
if typeof skip == 'undefined'
skip = 0
fields = []
for fieldName, matcher of Airport.typeaheadMatcher()
field = {}
field[fieldName] = {$regex: new RegExp(matcher.regexSearch({search: search}), matcher.regexOptions)}
fields.push(field)
matches = []
if _useAggregation
pipeline = [
{$match: {$or: fields}},
]
matches = Airports.aggregate(pipeline)
else
query = { $or: fields }
matches = Airports.find(query, {transform: null}).fetch()
matches = _floatMatchingAirport(search, matches)
propMatches = {}
if search.length > 3
searchRegExp = new RegExp('^' + regexEscape(search), 'i')
else
searchRegExp = new RegExp('^' + regexEscape(search) + '$', 'i')
for match in matches
for prop in ['city', 'countryName', 'stateName']
if searchRegExp.test(match[prop])
propMatches[prop + '=' + match[prop]] = {
_id: match[prop]
propertyMatch: prop
}
matches = _.values(propMatches).concat(matches)
count = matches.length
matches = matches.slice(skip, skip + 10)
if _profile
recordProfile('typeaheadAirport', new Date() - start)
return {
results: matches
count: count
}
# moves the airport with a code matching the search term to the beginning of the
# returned array
#
# @param [String] search, the string to search for matches
# @param [Array] airports, an array of airport documents
# @return [Array] airports, an array of airport documents searched code first if found
_floatMatchingAirport = (search, airports) ->
exactMatchIndex = null
i = 0
while i <= airports.length
if _.isUndefined(airports[i])
i++
continue
else if airports[i]["_id"].toUpperCase() is search.toUpperCase()
exactMatchIndex = i
break
i++
if exactMatchIndex isnt null
matchElement = [airports[exactMatchIndex]]
airports.splice(exactMatchIndex, 1)
airports = matchElement.concat(airports)
return airports
Meteor.publish 'SimulationItineraries', (simId) ->
# query options
options = {
fields:
simulationId: 1
origin: 1
destination: 1
transform:
null
}
if _.isEmpty(simId)
return []
console.log('Subscribed SimulationItineraries -- simId:%j --options: %j', simId, options)
return Itineraries.find({simulationId: simId}, options)
# find a simulation by simId
#
# @param [String] simId
# @return [Object] simulations, a simulation documents
findSimulationBySimId = (simId) ->
if _.isUndefined(simId) or _.isEmpty(simId)
return {}
return Simulations.findOne({'simId': simId})
# Public API
Meteor.methods
startSimulation: startSimulation
flightsByQuery: flightsByQuery
findActiveAirports: findActiveAirports
findAirportById: findAirportById
findNearbyAirports: findNearbyAirports
findMinMaxDateRange: findMinMaxDateRange
isTestEnvironment: isTestEnvironment
typeaheadAirport: typeaheadAirport
findSimulationBySimId: findSimulationBySimId
| 46747 | Future = Npm.require('fibers/future')
_FLIRT_SIMULATOR_URL = process.env.FLIRT_SIMULATOR_URL
if !_FLIRT_SIMULATOR_URL
throw new Error('You must set FLIRT_SIMULATOR_URL environment variable, ex: http://localhost:45000/simulator')
_useAggregation = true # enable/disable using the aggregation framework
_useSeatProjection = false # if _useAggregation and _useSeatProjection is enabled, seatsOverInterval will be projected using an aggregate method
_profile = false # enable/disable recording method performance to the collection 'profiling'
_activeAirports = null
# collection to record profiling results
Profiling = new Mongo.Collection('profiling')
# records a profile document to mongo when profiling is enabled
#
# @param [String] methodName, the name of the method that is being profiled
# @param [Integer] elsapsedTime, the elapsed time in milliseconds
recordProfile = (methodName, elapsedTime) ->
Profiling.insert({methodName: methodName, elapsedTime: elapsedTime, created: new Date()})
return
regexEscape = (s)->
# Based on bobince's regex escape function.
# source: http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript/3561711#3561711
s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&')
# extends the query object to ensure that all flights are filtered by current
# dates
#
# @param [Object] query, the incoming query object
# @param [String] lastId, the lastId for performing limit/offset by sorted _id
# @return [Object] query, the outgoing query object
extendQuery = (query, lastId) ->
# all flights are filtered by current date being past the discontinuedDate
# or before the effectiveDate
now = new Date()
if !_.isUndefined(query.effectiveDate)
query.effectiveDate.$lte = new Date(query.effectiveDate.$lte)
else
query.effectiveDate = {$lte: now}
if !_.isUndefined(query.discontinuedDate)
query.discontinuedDate.$gte = new Date(query.discontinuedDate.$gte)
else
query.discontinuedDate = {$gte: now}
# offset
if !(_.isUndefined(lastId) or _.isNull(lastId))
offsetFilter = _id: $gt: lastId
_.extend query, offsetFilter
# cache the results of calling the given function for a period of time.
tempCache = (func) ->
ONE_DAY_IN_MILLISECONDS = 1000 * 60 * 60 * 24
cache = {}
return (args...) ->
key = args.join(',')
if key of cache
[result, timestamp] = cache[key]
if (new Date() - timestamp) < ONE_DAY_IN_MILLISECONDS
return result
result = func.apply(this, args)
cache[key] = [result, new Date()]
return result
# builds the mongo options object that contains sort and limit clauses
#
# @param [Integer] limit, the amout to limit the results
# @return [Object] options, mongodb query options
buildOptions = (limit) ->
options =
sort:
_id: 1
# limit
if !(_.isUndefined(limit) or _.isNull(limit))
limitClause =
limit: limit
_.extend options, limitClause
return options
# the query keys should have the most selective filters first, this method
# places the date keys prior to any other keys used in the filter.
#
# @param [Object] query, the incoming query object
# @return [Array] keys, arranged by selectiveness
arrangeQueryKeys = (query) ->
keys = Object.keys(query)
effectiveDateIdx = _.indexOf(keys, 'effectiveDate')
if effectiveDateIdx > 0
keys.splice(effectiveDateIdx, 1)
keys.unshift('effectiveDate')
discontinuedDateIdx = _.indexOf(keys, 'discontinuedDate')
if discontinuedDateIdx > 0
keys.splice(discontinuedDateIdx, 1)
keys.unshift('discontinuedDate')
return keys
# calculate TotalSeats over an interval, this is done server-side to avoid
# having the client process the correct totalSeats twice (within the node
# converFlight method and path convertFlight methods)
#
# @param [Array] flights, an array of fights
# @param [Object] query, the query from the client
_calculateSeatsOverInterval = (flights, query) ->
if flights.length == 0
return flights
# the query's start date is the discontinuedDate
startDate = moment.utc(query.discontinuedDate.$gte)
# the query's end date is the effectiveDate
endDate = moment.utc(query.effectiveDate.$lte)
# iterate over each flight and calculate the totalSeats
_.each(flights, (flight) ->
# the default is 0, which represents a single date range
flight.seatsOverInterval = 0
flight.flightsOverInterval = 0
flightEffectiveDate = moment.utc(flight.effectiveDate)
flightDiscontinuedDate = moment.utc(flight.discontinuedDate)
# default the range is based off the query params
rangeStart = moment.utc(startDate)
rangeEnd = moment.utc(endDate)
# determine if the flight is discontinued before the endDate to determine
# if the rangeEnd should be updated
discontinuedRange = moment.range(flightDiscontinuedDate, endDate)
daysDiscontinuedBeforeEnd = discontinuedRange.diff('days')
if daysDiscontinuedBeforeEnd > 0
# if days is greater than zero the rangeEnd should be the flightDiscontinuedDate
rangeEnd = flightDiscontinuedDate
# determine if the flight is started after the endDate to determine if the
# rangeStart should be updated
effectiveRange = moment.range(startDate, flightEffectiveDate)
daysEffectiveAfterStart = effectiveRange.diff('days')
if daysEffectiveAfterStart > 0
# if days is greater than zero the rangeStart should be the flightEffectiveDate
rangeStart = flightEffectiveDate
# now that rangeStart and rangeEnd are updated, determine the range for
# calculating totalSeats
range = moment.range(rangeStart, rangeEnd)
rangeDays = range.diff('days')
# do not calculate seatsOverInterval for invalid range
if rangeDays < 0
return
# if the flight happens every day of the week (dow) multiple by the rangeDays
if flight.weeklyFrequency == 7
if rangeDays > 0
flight.seatsOverInterval = flight.totalSeats * rangeDays
flight.flightsOverInterval = rangeDays
# determine which days are valid and increment flightsOverInterval
else
if rangeDays > 0
validDays = [
flight.day7
flight.day1
flight.day2
flight.day3
flight.day4
flight.day5
flight.day6
]
flightsOverInterval = 0
# iterate over the range of days, if valid increment the flightsOverInterval
range.by('days', (d) ->
console.assert(not _.isUndefined(validDays[d.day()]))
if validDays[d.day()]
flightsOverInterval++
)
flight.flightsOverInterval = flightsOverInterval
if flightsOverInterval > 0
flight.seatsOverInterval = flight.totalSeats * flightsOverInterval
else
flight.seatsOverInterval = flight.totalSeats
)
return flights
# find flights with an optional limit and offset
#
# @param [Object] query, a mongodb query object
# @param [Integer] limit, the amount of records to limit
# @param [Integer] skip, the amount of records to skip
# @return [Array] an array of flights
flightsByQuery = (query, limit, skip) ->
if _profile
start = new Date()
if _.isUndefined(query) or _.isEmpty(query)
return []
if _.isUndefined(limit)
limit = 1000
if _.isUndefined(skip)
skip = 0
# make sure dates are set
extendQuery(query, null)
matches = []
matches = Flights.find(query, {
limit: limit
skip: skip
transform: null
}).fetch()
totalRecords = Flights.find(query, {transform: null}).count()
matches = _calculateSeatsOverInterval(matches, query)
if _profile
recordProfile('flightsByQuery', new Date() - start)
return {
flights: matches
totalRecords: totalRecords
}
# finds airports that have flights
#
# @return [Array] airports, an array of airport document
findActiveAirports = tempCache () ->
if _activeAirports isnt null
return _activeAirports
rawFlights = Flights.rawCollection()
rawDistinct = Meteor.wrapAsync(rawFlights.distinct, rawFlights)
_activeAirports = Airports.find({'_id': {$in: rawDistinct("departureAirport._id")}}).fetch()
return _activeAirports
# finds a single airport document
#
# @param [String] id, the airport code to retrieve
# @return [Object] airport, an airport document
findAirportById = (id) ->
if _.isUndefined(id) or _.isEmpty(id)
return []
return Airports.findOne({'_id': id})
startSimulation = (simPas, startDate, endDate, origins, email) ->
console.log ("DEBUG: Flight Sim Url: " + _FLIRT_SIMULATOR_URL)
console.log ("DEBUG: simPas: " + simPas)
console.log ("DEBUG: startDate: " + startDate)
console.log ("DEBUG: endDate: " + endDate)
console.log ("DEBUG: origins: " + origins)
console.log ("DEBUG: email: " + email)
params = {
submittedBy: '<EMAIL>',
startDate: startDate,
endDate: endDate,
departureNodes: origins,
numberPassengers: simPas
}
if email
params.notificationEmail = email
future = new Future();
HTTP.post(_FLIRT_SIMULATOR_URL, {
params: params
}, (err, res) ->
if err
console.log ("ERROR: " + JSON.stringify(err) )
future.throw(err)
return
console.log( "NO ERROR" )
future.return(JSON.parse(res.content))
)
return future.wait()
# finds nearby airports through geo $near
#
# @param [String] id, the airport code to use as the center/base of search
# @return [Array] airports, an array of airports
findNearbyAirports = (id, miles) ->
if _profile
start = new Date()
if _.isUndefined(id) or _.isEmpty(id)
return []
miles = parseInt(miles, 10)
if _.isUndefined(miles) or _.isNaN(miles)
return []
metersToMiles = 1609.344
airport = Airports.findOne({'_id': id})
if _.isUndefined(airport) or _.isEmpty(airport)
return []
coordinates = airport.loc.coordinates
value =
$geometry:
type: 'Point'
coordinates: coordinates
$minDistance: 0
$maxDistance: metersToMiles * miles
query =
loc: {$near: value}
airports = Airports.find(query, {transform: null}).fetch()
if _profile
recordProfile('findNearbyAirports', new Date() - start)
return airports
# finds the min and max date range of a 'Date' key to the flights collection
#
# @param [String] the key of the flight documents the contains a date value
# @return [Array] array of two dates, defaults to 'null' if not found [min, max]
findMinMaxDateRange = tempCache (key) ->
if _profile
start = new Date()
# determine minimum date by sort ascending
minDate = null
minResults = Flights.find({}, {sort: {"#{key}": 1}, limit: 1, transform: null}).fetch()
if !(_.isUndefined(minResults) || _.isEmpty(minResults))
min = minResults[0]
if min.hasOwnProperty(key)
minDate = min[key]
# determine maximum date by sort descending
maxDate = null
maxResults = Flights.find({}, {sort: {"#{key}": -1}, limit: 1, transform: null}).fetch()
if !(_.isUndefined(maxResults) || _.isEmpty(maxResults))
max = maxResults[0]
if max.hasOwnProperty(key)
maxDate = max[key]
if _profile
recordProfile('findMinMaxDateRange', new Date() - start)
return [minDate, maxDate]
# determines if the runtime environment is for testing
#
# @return [Boolean] isTest, true or false
isTestEnvironment = () ->
return process.env.hasOwnProperty('VELOCITY_MAIN_APP_PATH')
# finds airports that match the search
#
# @param [String] search, the string to search for matches
# @param [Integer] skip, the amount of documents to skip in limit/offset
# @return [Array] airports, an array of airport documents
typeaheadAirport = (search, skip) ->
if _profile
start = new Date()
if typeof skip == 'undefined'
skip = 0
fields = []
for fieldName, matcher of Airport.typeaheadMatcher()
field = {}
field[fieldName] = {$regex: new RegExp(matcher.regexSearch({search: search}), matcher.regexOptions)}
fields.push(field)
matches = []
if _useAggregation
pipeline = [
{$match: {$or: fields}},
]
matches = Airports.aggregate(pipeline)
else
query = { $or: fields }
matches = Airports.find(query, {transform: null}).fetch()
matches = _floatMatchingAirport(search, matches)
propMatches = {}
if search.length > 3
searchRegExp = new RegExp('^' + regexEscape(search), 'i')
else
searchRegExp = new RegExp('^' + regexEscape(search) + '$', 'i')
for match in matches
for prop in ['city', 'countryName', 'stateName']
if searchRegExp.test(match[prop])
propMatches[prop + '=' + match[prop]] = {
_id: match[prop]
propertyMatch: prop
}
matches = _.values(propMatches).concat(matches)
count = matches.length
matches = matches.slice(skip, skip + 10)
if _profile
recordProfile('typeaheadAirport', new Date() - start)
return {
results: matches
count: count
}
# moves the airport with a code matching the search term to the beginning of the
# returned array
#
# @param [String] search, the string to search for matches
# @param [Array] airports, an array of airport documents
# @return [Array] airports, an array of airport documents searched code first if found
_floatMatchingAirport = (search, airports) ->
exactMatchIndex = null
i = 0
while i <= airports.length
if _.isUndefined(airports[i])
i++
continue
else if airports[i]["_id"].toUpperCase() is search.toUpperCase()
exactMatchIndex = i
break
i++
if exactMatchIndex isnt null
matchElement = [airports[exactMatchIndex]]
airports.splice(exactMatchIndex, 1)
airports = matchElement.concat(airports)
return airports
Meteor.publish 'SimulationItineraries', (simId) ->
# query options
options = {
fields:
simulationId: 1
origin: 1
destination: 1
transform:
null
}
if _.isEmpty(simId)
return []
console.log('Subscribed SimulationItineraries -- simId:%j --options: %j', simId, options)
return Itineraries.find({simulationId: simId}, options)
# find a simulation by simId
#
# @param [String] simId
# @return [Object] simulations, a simulation documents
findSimulationBySimId = (simId) ->
if _.isUndefined(simId) or _.isEmpty(simId)
return {}
return Simulations.findOne({'simId': simId})
# Public API
Meteor.methods
startSimulation: startSimulation
flightsByQuery: flightsByQuery
findActiveAirports: findActiveAirports
findAirportById: findAirportById
findNearbyAirports: findNearbyAirports
findMinMaxDateRange: findMinMaxDateRange
isTestEnvironment: isTestEnvironment
typeaheadAirport: typeaheadAirport
findSimulationBySimId: findSimulationBySimId
| true | Future = Npm.require('fibers/future')
_FLIRT_SIMULATOR_URL = process.env.FLIRT_SIMULATOR_URL
if !_FLIRT_SIMULATOR_URL
throw new Error('You must set FLIRT_SIMULATOR_URL environment variable, ex: http://localhost:45000/simulator')
_useAggregation = true # enable/disable using the aggregation framework
_useSeatProjection = false # if _useAggregation and _useSeatProjection is enabled, seatsOverInterval will be projected using an aggregate method
_profile = false # enable/disable recording method performance to the collection 'profiling'
_activeAirports = null
# collection to record profiling results
Profiling = new Mongo.Collection('profiling')
# records a profile document to mongo when profiling is enabled
#
# @param [String] methodName, the name of the method that is being profiled
# @param [Integer] elsapsedTime, the elapsed time in milliseconds
recordProfile = (methodName, elapsedTime) ->
Profiling.insert({methodName: methodName, elapsedTime: elapsedTime, created: new Date()})
return
regexEscape = (s)->
# Based on bobince's regex escape function.
# source: http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript/3561711#3561711
s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&')
# extends the query object to ensure that all flights are filtered by current
# dates
#
# @param [Object] query, the incoming query object
# @param [String] lastId, the lastId for performing limit/offset by sorted _id
# @return [Object] query, the outgoing query object
extendQuery = (query, lastId) ->
# all flights are filtered by current date being past the discontinuedDate
# or before the effectiveDate
now = new Date()
if !_.isUndefined(query.effectiveDate)
query.effectiveDate.$lte = new Date(query.effectiveDate.$lte)
else
query.effectiveDate = {$lte: now}
if !_.isUndefined(query.discontinuedDate)
query.discontinuedDate.$gte = new Date(query.discontinuedDate.$gte)
else
query.discontinuedDate = {$gte: now}
# offset
if !(_.isUndefined(lastId) or _.isNull(lastId))
offsetFilter = _id: $gt: lastId
_.extend query, offsetFilter
# cache the results of calling the given function for a period of time.
tempCache = (func) ->
ONE_DAY_IN_MILLISECONDS = 1000 * 60 * 60 * 24
cache = {}
return (args...) ->
key = args.join(',')
if key of cache
[result, timestamp] = cache[key]
if (new Date() - timestamp) < ONE_DAY_IN_MILLISECONDS
return result
result = func.apply(this, args)
cache[key] = [result, new Date()]
return result
# builds the mongo options object that contains sort and limit clauses
#
# @param [Integer] limit, the amout to limit the results
# @return [Object] options, mongodb query options
buildOptions = (limit) ->
options =
sort:
_id: 1
# limit
if !(_.isUndefined(limit) or _.isNull(limit))
limitClause =
limit: limit
_.extend options, limitClause
return options
# the query keys should have the most selective filters first, this method
# places the date keys prior to any other keys used in the filter.
#
# @param [Object] query, the incoming query object
# @return [Array] keys, arranged by selectiveness
arrangeQueryKeys = (query) ->
keys = Object.keys(query)
effectiveDateIdx = _.indexOf(keys, 'effectiveDate')
if effectiveDateIdx > 0
keys.splice(effectiveDateIdx, 1)
keys.unshift('effectiveDate')
discontinuedDateIdx = _.indexOf(keys, 'discontinuedDate')
if discontinuedDateIdx > 0
keys.splice(discontinuedDateIdx, 1)
keys.unshift('discontinuedDate')
return keys
# calculate TotalSeats over an interval, this is done server-side to avoid
# having the client process the correct totalSeats twice (within the node
# converFlight method and path convertFlight methods)
#
# @param [Array] flights, an array of fights
# @param [Object] query, the query from the client
_calculateSeatsOverInterval = (flights, query) ->
if flights.length == 0
return flights
# the query's start date is the discontinuedDate
startDate = moment.utc(query.discontinuedDate.$gte)
# the query's end date is the effectiveDate
endDate = moment.utc(query.effectiveDate.$lte)
# iterate over each flight and calculate the totalSeats
_.each(flights, (flight) ->
# the default is 0, which represents a single date range
flight.seatsOverInterval = 0
flight.flightsOverInterval = 0
flightEffectiveDate = moment.utc(flight.effectiveDate)
flightDiscontinuedDate = moment.utc(flight.discontinuedDate)
# default the range is based off the query params
rangeStart = moment.utc(startDate)
rangeEnd = moment.utc(endDate)
# determine if the flight is discontinued before the endDate to determine
# if the rangeEnd should be updated
discontinuedRange = moment.range(flightDiscontinuedDate, endDate)
daysDiscontinuedBeforeEnd = discontinuedRange.diff('days')
if daysDiscontinuedBeforeEnd > 0
# if days is greater than zero the rangeEnd should be the flightDiscontinuedDate
rangeEnd = flightDiscontinuedDate
# determine if the flight is started after the endDate to determine if the
# rangeStart should be updated
effectiveRange = moment.range(startDate, flightEffectiveDate)
daysEffectiveAfterStart = effectiveRange.diff('days')
if daysEffectiveAfterStart > 0
# if days is greater than zero the rangeStart should be the flightEffectiveDate
rangeStart = flightEffectiveDate
# now that rangeStart and rangeEnd are updated, determine the range for
# calculating totalSeats
range = moment.range(rangeStart, rangeEnd)
rangeDays = range.diff('days')
# do not calculate seatsOverInterval for invalid range
if rangeDays < 0
return
# if the flight happens every day of the week (dow) multiple by the rangeDays
if flight.weeklyFrequency == 7
if rangeDays > 0
flight.seatsOverInterval = flight.totalSeats * rangeDays
flight.flightsOverInterval = rangeDays
# determine which days are valid and increment flightsOverInterval
else
if rangeDays > 0
validDays = [
flight.day7
flight.day1
flight.day2
flight.day3
flight.day4
flight.day5
flight.day6
]
flightsOverInterval = 0
# iterate over the range of days, if valid increment the flightsOverInterval
range.by('days', (d) ->
console.assert(not _.isUndefined(validDays[d.day()]))
if validDays[d.day()]
flightsOverInterval++
)
flight.flightsOverInterval = flightsOverInterval
if flightsOverInterval > 0
flight.seatsOverInterval = flight.totalSeats * flightsOverInterval
else
flight.seatsOverInterval = flight.totalSeats
)
return flights
# find flights with an optional limit and offset
#
# @param [Object] query, a mongodb query object
# @param [Integer] limit, the amount of records to limit
# @param [Integer] skip, the amount of records to skip
# @return [Array] an array of flights
flightsByQuery = (query, limit, skip) ->
if _profile
start = new Date()
if _.isUndefined(query) or _.isEmpty(query)
return []
if _.isUndefined(limit)
limit = 1000
if _.isUndefined(skip)
skip = 0
# make sure dates are set
extendQuery(query, null)
matches = []
matches = Flights.find(query, {
limit: limit
skip: skip
transform: null
}).fetch()
totalRecords = Flights.find(query, {transform: null}).count()
matches = _calculateSeatsOverInterval(matches, query)
if _profile
recordProfile('flightsByQuery', new Date() - start)
return {
flights: matches
totalRecords: totalRecords
}
# finds airports that have flights
#
# @return [Array] airports, an array of airport document
findActiveAirports = tempCache () ->
if _activeAirports isnt null
return _activeAirports
rawFlights = Flights.rawCollection()
rawDistinct = Meteor.wrapAsync(rawFlights.distinct, rawFlights)
_activeAirports = Airports.find({'_id': {$in: rawDistinct("departureAirport._id")}}).fetch()
return _activeAirports
# finds a single airport document
#
# @param [String] id, the airport code to retrieve
# @return [Object] airport, an airport document
findAirportById = (id) ->
if _.isUndefined(id) or _.isEmpty(id)
return []
return Airports.findOne({'_id': id})
startSimulation = (simPas, startDate, endDate, origins, email) ->
console.log ("DEBUG: Flight Sim Url: " + _FLIRT_SIMULATOR_URL)
console.log ("DEBUG: simPas: " + simPas)
console.log ("DEBUG: startDate: " + startDate)
console.log ("DEBUG: endDate: " + endDate)
console.log ("DEBUG: origins: " + origins)
console.log ("DEBUG: email: " + email)
params = {
submittedBy: 'PI:EMAIL:<EMAIL>END_PI',
startDate: startDate,
endDate: endDate,
departureNodes: origins,
numberPassengers: simPas
}
if email
params.notificationEmail = email
future = new Future();
HTTP.post(_FLIRT_SIMULATOR_URL, {
params: params
}, (err, res) ->
if err
console.log ("ERROR: " + JSON.stringify(err) )
future.throw(err)
return
console.log( "NO ERROR" )
future.return(JSON.parse(res.content))
)
return future.wait()
# finds nearby airports through geo $near
#
# @param [String] id, the airport code to use as the center/base of search
# @return [Array] airports, an array of airports
findNearbyAirports = (id, miles) ->
if _profile
start = new Date()
if _.isUndefined(id) or _.isEmpty(id)
return []
miles = parseInt(miles, 10)
if _.isUndefined(miles) or _.isNaN(miles)
return []
metersToMiles = 1609.344
airport = Airports.findOne({'_id': id})
if _.isUndefined(airport) or _.isEmpty(airport)
return []
coordinates = airport.loc.coordinates
value =
$geometry:
type: 'Point'
coordinates: coordinates
$minDistance: 0
$maxDistance: metersToMiles * miles
query =
loc: {$near: value}
airports = Airports.find(query, {transform: null}).fetch()
if _profile
recordProfile('findNearbyAirports', new Date() - start)
return airports
# finds the min and max date range of a 'Date' key to the flights collection
#
# @param [String] the key of the flight documents the contains a date value
# @return [Array] array of two dates, defaults to 'null' if not found [min, max]
findMinMaxDateRange = tempCache (key) ->
if _profile
start = new Date()
# determine minimum date by sort ascending
minDate = null
minResults = Flights.find({}, {sort: {"#{key}": 1}, limit: 1, transform: null}).fetch()
if !(_.isUndefined(minResults) || _.isEmpty(minResults))
min = minResults[0]
if min.hasOwnProperty(key)
minDate = min[key]
# determine maximum date by sort descending
maxDate = null
maxResults = Flights.find({}, {sort: {"#{key}": -1}, limit: 1, transform: null}).fetch()
if !(_.isUndefined(maxResults) || _.isEmpty(maxResults))
max = maxResults[0]
if max.hasOwnProperty(key)
maxDate = max[key]
if _profile
recordProfile('findMinMaxDateRange', new Date() - start)
return [minDate, maxDate]
# determines if the runtime environment is for testing
#
# @return [Boolean] isTest, true or false
isTestEnvironment = () ->
return process.env.hasOwnProperty('VELOCITY_MAIN_APP_PATH')
# finds airports that match the search
#
# @param [String] search, the string to search for matches
# @param [Integer] skip, the amount of documents to skip in limit/offset
# @return [Array] airports, an array of airport documents
typeaheadAirport = (search, skip) ->
if _profile
start = new Date()
if typeof skip == 'undefined'
skip = 0
fields = []
for fieldName, matcher of Airport.typeaheadMatcher()
field = {}
field[fieldName] = {$regex: new RegExp(matcher.regexSearch({search: search}), matcher.regexOptions)}
fields.push(field)
matches = []
if _useAggregation
pipeline = [
{$match: {$or: fields}},
]
matches = Airports.aggregate(pipeline)
else
query = { $or: fields }
matches = Airports.find(query, {transform: null}).fetch()
matches = _floatMatchingAirport(search, matches)
propMatches = {}
if search.length > 3
searchRegExp = new RegExp('^' + regexEscape(search), 'i')
else
searchRegExp = new RegExp('^' + regexEscape(search) + '$', 'i')
for match in matches
for prop in ['city', 'countryName', 'stateName']
if searchRegExp.test(match[prop])
propMatches[prop + '=' + match[prop]] = {
_id: match[prop]
propertyMatch: prop
}
matches = _.values(propMatches).concat(matches)
count = matches.length
matches = matches.slice(skip, skip + 10)
if _profile
recordProfile('typeaheadAirport', new Date() - start)
return {
results: matches
count: count
}
# moves the airport with a code matching the search term to the beginning of the
# returned array
#
# @param [String] search, the string to search for matches
# @param [Array] airports, an array of airport documents
# @return [Array] airports, an array of airport documents searched code first if found
_floatMatchingAirport = (search, airports) ->
exactMatchIndex = null
i = 0
while i <= airports.length
if _.isUndefined(airports[i])
i++
continue
else if airports[i]["_id"].toUpperCase() is search.toUpperCase()
exactMatchIndex = i
break
i++
if exactMatchIndex isnt null
matchElement = [airports[exactMatchIndex]]
airports.splice(exactMatchIndex, 1)
airports = matchElement.concat(airports)
return airports
Meteor.publish 'SimulationItineraries', (simId) ->
# query options
options = {
fields:
simulationId: 1
origin: 1
destination: 1
transform:
null
}
if _.isEmpty(simId)
return []
console.log('Subscribed SimulationItineraries -- simId:%j --options: %j', simId, options)
return Itineraries.find({simulationId: simId}, options)
# find a simulation by simId
#
# @param [String] simId
# @return [Object] simulations, a simulation documents
findSimulationBySimId = (simId) ->
if _.isUndefined(simId) or _.isEmpty(simId)
return {}
return Simulations.findOne({'simId': simId})
# Public API
Meteor.methods
startSimulation: startSimulation
flightsByQuery: flightsByQuery
findActiveAirports: findActiveAirports
findAirportById: findAirportById
findNearbyAirports: findNearbyAirports
findMinMaxDateRange: findMinMaxDateRange
isTestEnvironment: isTestEnvironment
typeaheadAirport: typeaheadAirport
findSimulationBySimId: findSimulationBySimId
|
[
{
"context": "e = 3\n config =\n auth:\n username: \"dorgarbash\"\n password: \"dorIsGarbash1\"\n subdomai",
"end": 256,
"score": 0.9996861219406128,
"start": 246,
"tag": "USERNAME",
"value": "dorgarbash"
},
{
"context": " username: \"dorgarbash\"\n ... | modules/log._coffee | CyberCRI/KnowNodes | 5 | BaseModule = require './baseModule'
LogDB = require '../DB/LogDB'
loggly = require 'loggly'
module.exports = class Log extends BaseModule
constructor: (user) ->
super user
@currentStage = 3
config =
auth:
username: "dorgarbash"
password: "dorIsGarbash1"
subdomain: "knownodes"
@client = loggly.createClient config
saveLogToDB: (title, content) =>
@client.log '0bf69f08-e6f2-4c42-8f39-4b5a606c8c90', "#{title}: #{content}"
logActivity: (title, content, _) =>
title = "Activity: #{title}"
console.log title + '-' + content
if @currentStage > 2
@saveLogToDB title, content
logError: (title, content, _) =>
title = "ERROR: #{title}"
console.log title + '-' + content
@saveLogToDB title, content
logDebug: (title, content, _) =>
title = "DEBUG: #{title}"
console.log title + '-' + content
if @currentStage > 1
@saveLogToDB title, content | 38368 | BaseModule = require './baseModule'
LogDB = require '../DB/LogDB'
loggly = require 'loggly'
module.exports = class Log extends BaseModule
constructor: (user) ->
super user
@currentStage = 3
config =
auth:
username: "dorgarbash"
password: "<PASSWORD>"
subdomain: "knownodes"
@client = loggly.createClient config
saveLogToDB: (title, content) =>
@client.log '0bf69f08-e6f2-4c42-8f39-4b5a606c8c90', "#{title}: #{content}"
logActivity: (title, content, _) =>
title = "Activity: #{title}"
console.log title + '-' + content
if @currentStage > 2
@saveLogToDB title, content
logError: (title, content, _) =>
title = "ERROR: #{title}"
console.log title + '-' + content
@saveLogToDB title, content
logDebug: (title, content, _) =>
title = "DEBUG: #{title}"
console.log title + '-' + content
if @currentStage > 1
@saveLogToDB title, content | true | BaseModule = require './baseModule'
LogDB = require '../DB/LogDB'
loggly = require 'loggly'
module.exports = class Log extends BaseModule
constructor: (user) ->
super user
@currentStage = 3
config =
auth:
username: "dorgarbash"
password: "PI:PASSWORD:<PASSWORD>END_PI"
subdomain: "knownodes"
@client = loggly.createClient config
saveLogToDB: (title, content) =>
@client.log '0bf69f08-e6f2-4c42-8f39-4b5a606c8c90', "#{title}: #{content}"
logActivity: (title, content, _) =>
title = "Activity: #{title}"
console.log title + '-' + content
if @currentStage > 2
@saveLogToDB title, content
logError: (title, content, _) =>
title = "ERROR: #{title}"
console.log title + '-' + content
@saveLogToDB title, content
logDebug: (title, content, _) =>
title = "DEBUG: #{title}"
console.log title + '-' + content
if @currentStage > 1
@saveLogToDB title, content |
[
{
"context": "\nsummary: \"\"\ndate: <date>\nauthors:\n -\n name: \"Kurtis Rainbolt-Greene\"\n email: \"me@kurtisrainboltgreene.name\"\n av",
"end": 322,
"score": 0.999897301197052,
"start": 300,
"tag": "NAME",
"value": "Kurtis Rainbolt-Greene"
},
{
"context": " -\n name... | _mdwriter.cson | dragonlang/dragonlang.github.io | 1 | siteEngine: "jekyll"
siteLocalDir: "/Users/krainboltgreene/code/beelang/beelang.github.io"
siteDraftsDir: "_drafts/"
sitePostsDir: "_posts/"
siteImagesDir: "/"
siteUrl: "http://beelang.github.io"
frontMatter: """
---
layout: <layout>
title: "<title>"
summary: ""
date: <date>
authors:
-
name: "Kurtis Rainbolt-Greene"
email: "me@kurtisrainboltgreene.name"
avatar: "http://github.com/krainboltgreene.png"
---
"""
| 6270 | siteEngine: "jekyll"
siteLocalDir: "/Users/krainboltgreene/code/beelang/beelang.github.io"
siteDraftsDir: "_drafts/"
sitePostsDir: "_posts/"
siteImagesDir: "/"
siteUrl: "http://beelang.github.io"
frontMatter: """
---
layout: <layout>
title: "<title>"
summary: ""
date: <date>
authors:
-
name: "<NAME>"
email: "<EMAIL>"
avatar: "http://github.com/krainboltgreene.png"
---
"""
| true | siteEngine: "jekyll"
siteLocalDir: "/Users/krainboltgreene/code/beelang/beelang.github.io"
siteDraftsDir: "_drafts/"
sitePostsDir: "_posts/"
siteImagesDir: "/"
siteUrl: "http://beelang.github.io"
frontMatter: """
---
layout: <layout>
title: "<title>"
summary: ""
date: <date>
authors:
-
name: "PI:NAME:<NAME>END_PI"
email: "PI:EMAIL:<EMAIL>END_PI"
avatar: "http://github.com/krainboltgreene.png"
---
"""
|
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public Li",
"end": 43,
"score": 0.9999092221260071,
"start": 29,
"tag": "EMAIL",
"value": "contact@ppy.sh"
},
{
"context": " a\n key: 'mapper'\n ... | resources/assets/coffee/react/_components/beatmapset-panel.coffee | osu-katakuna/osu-katakuna-web | 5 | # Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import { BeatmapIcon } from 'beatmap-icon'
import { Img2x } from 'img2x'
import * as React from 'react'
import { a, div, i, span, strong } from 'react-dom-factories'
import { StringWithComponent } from 'string-with-component'
el = React.createElement
export class BeatmapsetPanel extends React.PureComponent
constructor: (props) ->
super props
@eventId = "beatmapsetPanel-#{props.beatmap.beatmapset_id}-#{osu.uuid()}"
@state =
preview: 'ended'
previewDuration: 0
componentDidMount: =>
$.subscribe "osuAudio:initializing.#{@eventId}", @previewInitializing
$.subscribe "osuAudio:playing.#{@eventId}", @previewStart
$.subscribe "osuAudio:ended.#{@eventId}", @previewStop
$(document).on "turbolinks:before-cache.#{@eventId}", @componentWillUnmount
componentWillUnmount: =>
@previewStop()
$.unsubscribe ".#{@eventId}"
$(document).off ".#{@eventId}"
hideImage: (e) ->
# hides img elements that have errored (hides native browser broken-image icons)
e.currentTarget.style.display = 'none'
render: =>
# this is actually "beatmapset"
beatmapset = @props.beatmap
showHypeCounts = _.includes ['wip', 'pending', 'graveyard'], beatmapset.status
if showHypeCounts
currentHype = osu.formatNumber(beatmapset.hype.current)
requiredHype = osu.formatNumber(beatmapset.hype.required)
currentNominations = osu.formatNumber(beatmapset.nominations.current)
requiredNominations = osu.formatNumber(beatmapset.nominations.required)
playCount = osu.formatNumber(beatmapset.play_count)
favouriteCount = osu.formatNumber(beatmapset.favourite_count)
# arbitrary number
maxDisplayedDifficulty = 10
condenseDifficulties = beatmapset.beatmaps.length > maxDisplayedDifficulty
groupedBeatmaps = BeatmapHelper.group beatmapset.beatmaps
difficulties =
for mode in BeatmapHelper.modes
beatmaps = groupedBeatmaps[mode]
continue unless beatmaps?
if condenseDifficulties
[
el BeatmapIcon, key: "#{mode}-icon", beatmap: _.last(beatmaps), showTitle: false
span
className: 'beatmapset-panel__difficulty-count'
key: "#{mode}-count", beatmaps.length
]
else
for b in beatmaps
div
className: 'beatmapset-panel__difficulty-icon'
key: b.id
el BeatmapIcon, beatmap: b
div
className: "beatmapset-panel#{if @state.preview != 'ended' then ' beatmapset-panel--previewing' else ''}"
div className: 'beatmapset-panel__panel',
a
href: laroute.route('beatmapsets.show', beatmapset: beatmapset.id)
className: 'beatmapset-panel__header',
el Img2x,
className: 'beatmapset-panel__image'
onError: @hideImage
src: beatmapset.covers.card
div className: 'beatmapset-panel__image-overlay'
div className: 'beatmapset-panel__status-container',
if beatmapset.video
div className: 'beatmapset-panel__extra-icon',
i className: 'fas fa-film fa-fw'
if beatmapset.storyboard
div className: 'beatmapset-panel__extra-icon',
i className: 'fas fa-image fa-fw'
div className: 'beatmapset-status', osu.trans("beatmapsets.show.status.#{beatmapset.status}")
div className: 'beatmapset-panel__title-artist-box',
div className: 'u-ellipsis-overflow beatmapset-panel__header-text beatmapset-panel__header-text--title',
beatmapset.title
div className: 'beatmapset-panel__header-text',
beatmapset.artist
div className: 'beatmapset-panel__counts-box',
if showHypeCounts
div null,
div className: 'beatmapset-panel__count', title: osu.trans('beatmaps.hype.required_text', {current: currentHype, required: requiredHype}),
span className: 'beatmapset-panel__count-number', currentHype
i className: 'fas fa-bullhorn fa-fw'
div className: 'beatmapset-panel__count', title: osu.trans('beatmaps.nominations.required_text', {current: currentNominations, required: requiredNominations}),
span className: 'beatmapset-panel__count-number', currentNominations
i className: 'fas fa-thumbs-up fa-fw'
else
div className: 'beatmapset-panel__count', title: osu.trans('beatmaps.panel.playcount', count: playCount),
span className: 'beatmapset-panel__count-number', playCount
i className: 'fas fa-fw fa-play-circle'
div className: 'beatmapset-panel__count', title: osu.trans('beatmaps.panel.favourites', count: favouriteCount),
span className: 'beatmapset-panel__count-number', favouriteCount
i className: 'fas fa-fw fa-heart'
div
className: 'beatmapset-panel__preview-bar'
style:
transitionDuration: "#{@state.previewDuration}s"
width: "#{if @state.preview == 'playing' then '100%' else 0}"
div className: 'beatmapset-panel__content',
div className: 'beatmapset-panel__row',
div className: 'beatmapset-panel__mapper-source-box',
div
className: 'u-ellipsis-overflow'
el StringWithComponent,
pattern: osu.trans 'beatmapsets.show.details.mapped_by'
mappings:
':mapper':
a
key: 'mapper'
href: laroute.route('users.show', user: beatmapset.user_id)
className: 'js-usercard'
'data-user-id': beatmapset.user_id
strong null, beatmapset.creator
div
className: 'u-ellipsis-overflow'
if beatmapset.status in ['graveyard', 'wip', 'pending']
span dangerouslySetInnerHTML: __html:
osu.trans 'beatmapsets.show.details.updated_timeago',
timeago: osu.timeago(beatmapset.last_updated)
else
beatmapset.source
div className: 'beatmapset-panel__icons-box',
if currentUser?.id
if beatmapset.availability.download_disabled
div
title: osu.trans('beatmapsets.availability.disabled')
className: 'beatmapset-panel__icon beatmapset-panel__icon--disabled'
i className: 'fas fa-lg fa-download'
else
a
href: laroute.route 'beatmapsets.download', beatmapset: beatmapset.id
title: osu.trans('beatmapsets.show.details.download._')
className: 'beatmapset-panel__icon js-beatmapset-download-link'
'data-turbolinks': 'false'
i className: 'fas fa-lg fa-download'
div className: 'beatmapset-panel__difficulties', difficulties
a
href: '#'
className: 'beatmapset-panel__play js-audio--play'
'data-audio-url': beatmapset.preview_url
i className: "fas fa-#{if @state.preview == 'ended' then 'play' else 'stop'}"
div className: 'beatmapset-panel__shadow'
previewInitializing: (_e, {url, player}) =>
if url != @props.beatmap.preview_url
return @previewStop()
@setState
preview: 'initializing'
previewDuration: 0
previewStart: (_e, {url, player}) =>
if url != @props.beatmap.preview_url
return @previewStop()
@setState
preview: 'playing'
previewDuration: player.duration
previewStop: =>
return if @state.preview == 'ended'
@setState
preview: 'ended'
previewDuration: 0
| 83458 | # Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import { BeatmapIcon } from 'beatmap-icon'
import { Img2x } from 'img2x'
import * as React from 'react'
import { a, div, i, span, strong } from 'react-dom-factories'
import { StringWithComponent } from 'string-with-component'
el = React.createElement
export class BeatmapsetPanel extends React.PureComponent
constructor: (props) ->
super props
@eventId = "beatmapsetPanel-#{props.beatmap.beatmapset_id}-#{osu.uuid()}"
@state =
preview: 'ended'
previewDuration: 0
componentDidMount: =>
$.subscribe "osuAudio:initializing.#{@eventId}", @previewInitializing
$.subscribe "osuAudio:playing.#{@eventId}", @previewStart
$.subscribe "osuAudio:ended.#{@eventId}", @previewStop
$(document).on "turbolinks:before-cache.#{@eventId}", @componentWillUnmount
componentWillUnmount: =>
@previewStop()
$.unsubscribe ".#{@eventId}"
$(document).off ".#{@eventId}"
hideImage: (e) ->
# hides img elements that have errored (hides native browser broken-image icons)
e.currentTarget.style.display = 'none'
render: =>
# this is actually "beatmapset"
beatmapset = @props.beatmap
showHypeCounts = _.includes ['wip', 'pending', 'graveyard'], beatmapset.status
if showHypeCounts
currentHype = osu.formatNumber(beatmapset.hype.current)
requiredHype = osu.formatNumber(beatmapset.hype.required)
currentNominations = osu.formatNumber(beatmapset.nominations.current)
requiredNominations = osu.formatNumber(beatmapset.nominations.required)
playCount = osu.formatNumber(beatmapset.play_count)
favouriteCount = osu.formatNumber(beatmapset.favourite_count)
# arbitrary number
maxDisplayedDifficulty = 10
condenseDifficulties = beatmapset.beatmaps.length > maxDisplayedDifficulty
groupedBeatmaps = BeatmapHelper.group beatmapset.beatmaps
difficulties =
for mode in BeatmapHelper.modes
beatmaps = groupedBeatmaps[mode]
continue unless beatmaps?
if condenseDifficulties
[
el BeatmapIcon, key: "#{mode}-icon", beatmap: _.last(beatmaps), showTitle: false
span
className: 'beatmapset-panel__difficulty-count'
key: "#{mode}-count", beatmaps.length
]
else
for b in beatmaps
div
className: 'beatmapset-panel__difficulty-icon'
key: b.id
el BeatmapIcon, beatmap: b
div
className: "beatmapset-panel#{if @state.preview != 'ended' then ' beatmapset-panel--previewing' else ''}"
div className: 'beatmapset-panel__panel',
a
href: laroute.route('beatmapsets.show', beatmapset: beatmapset.id)
className: 'beatmapset-panel__header',
el Img2x,
className: 'beatmapset-panel__image'
onError: @hideImage
src: beatmapset.covers.card
div className: 'beatmapset-panel__image-overlay'
div className: 'beatmapset-panel__status-container',
if beatmapset.video
div className: 'beatmapset-panel__extra-icon',
i className: 'fas fa-film fa-fw'
if beatmapset.storyboard
div className: 'beatmapset-panel__extra-icon',
i className: 'fas fa-image fa-fw'
div className: 'beatmapset-status', osu.trans("beatmapsets.show.status.#{beatmapset.status}")
div className: 'beatmapset-panel__title-artist-box',
div className: 'u-ellipsis-overflow beatmapset-panel__header-text beatmapset-panel__header-text--title',
beatmapset.title
div className: 'beatmapset-panel__header-text',
beatmapset.artist
div className: 'beatmapset-panel__counts-box',
if showHypeCounts
div null,
div className: 'beatmapset-panel__count', title: osu.trans('beatmaps.hype.required_text', {current: currentHype, required: requiredHype}),
span className: 'beatmapset-panel__count-number', currentHype
i className: 'fas fa-bullhorn fa-fw'
div className: 'beatmapset-panel__count', title: osu.trans('beatmaps.nominations.required_text', {current: currentNominations, required: requiredNominations}),
span className: 'beatmapset-panel__count-number', currentNominations
i className: 'fas fa-thumbs-up fa-fw'
else
div className: 'beatmapset-panel__count', title: osu.trans('beatmaps.panel.playcount', count: playCount),
span className: 'beatmapset-panel__count-number', playCount
i className: 'fas fa-fw fa-play-circle'
div className: 'beatmapset-panel__count', title: osu.trans('beatmaps.panel.favourites', count: favouriteCount),
span className: 'beatmapset-panel__count-number', favouriteCount
i className: 'fas fa-fw fa-heart'
div
className: 'beatmapset-panel__preview-bar'
style:
transitionDuration: "#{@state.previewDuration}s"
width: "#{if @state.preview == 'playing' then '100%' else 0}"
div className: 'beatmapset-panel__content',
div className: 'beatmapset-panel__row',
div className: 'beatmapset-panel__mapper-source-box',
div
className: 'u-ellipsis-overflow'
el StringWithComponent,
pattern: osu.trans 'beatmapsets.show.details.mapped_by'
mappings:
':mapper':
a
key: '<KEY>'
href: laroute.route('users.show', user: beatmapset.user_id)
className: 'js-usercard'
'data-user-id': beatmapset.user_id
strong null, beatmapset.creator
div
className: 'u-ellipsis-overflow'
if beatmapset.status in ['graveyard', 'wip', 'pending']
span dangerouslySetInnerHTML: __html:
osu.trans 'beatmapsets.show.details.updated_timeago',
timeago: osu.timeago(beatmapset.last_updated)
else
beatmapset.source
div className: 'beatmapset-panel__icons-box',
if currentUser?.id
if beatmapset.availability.download_disabled
div
title: osu.trans('beatmapsets.availability.disabled')
className: 'beatmapset-panel__icon beatmapset-panel__icon--disabled'
i className: 'fas fa-lg fa-download'
else
a
href: laroute.route 'beatmapsets.download', beatmapset: beatmapset.id
title: osu.trans('beatmapsets.show.details.download._')
className: 'beatmapset-panel__icon js-beatmapset-download-link'
'data-turbolinks': 'false'
i className: 'fas fa-lg fa-download'
div className: 'beatmapset-panel__difficulties', difficulties
a
href: '#'
className: 'beatmapset-panel__play js-audio--play'
'data-audio-url': beatmapset.preview_url
i className: "fas fa-#{if @state.preview == 'ended' then 'play' else 'stop'}"
div className: 'beatmapset-panel__shadow'
previewInitializing: (_e, {url, player}) =>
if url != @props.beatmap.preview_url
return @previewStop()
@setState
preview: 'initializing'
previewDuration: 0
previewStart: (_e, {url, player}) =>
if url != @props.beatmap.preview_url
return @previewStop()
@setState
preview: 'playing'
previewDuration: player.duration
previewStop: =>
return if @state.preview == 'ended'
@setState
preview: 'ended'
previewDuration: 0
| true | # Copyright (c) ppy Pty Ltd <PI:EMAIL:<EMAIL>END_PI>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import { BeatmapIcon } from 'beatmap-icon'
import { Img2x } from 'img2x'
import * as React from 'react'
import { a, div, i, span, strong } from 'react-dom-factories'
import { StringWithComponent } from 'string-with-component'
el = React.createElement
export class BeatmapsetPanel extends React.PureComponent
constructor: (props) ->
super props
@eventId = "beatmapsetPanel-#{props.beatmap.beatmapset_id}-#{osu.uuid()}"
@state =
preview: 'ended'
previewDuration: 0
componentDidMount: =>
$.subscribe "osuAudio:initializing.#{@eventId}", @previewInitializing
$.subscribe "osuAudio:playing.#{@eventId}", @previewStart
$.subscribe "osuAudio:ended.#{@eventId}", @previewStop
$(document).on "turbolinks:before-cache.#{@eventId}", @componentWillUnmount
componentWillUnmount: =>
@previewStop()
$.unsubscribe ".#{@eventId}"
$(document).off ".#{@eventId}"
hideImage: (e) ->
# hides img elements that have errored (hides native browser broken-image icons)
e.currentTarget.style.display = 'none'
render: =>
# this is actually "beatmapset"
beatmapset = @props.beatmap
showHypeCounts = _.includes ['wip', 'pending', 'graveyard'], beatmapset.status
if showHypeCounts
currentHype = osu.formatNumber(beatmapset.hype.current)
requiredHype = osu.formatNumber(beatmapset.hype.required)
currentNominations = osu.formatNumber(beatmapset.nominations.current)
requiredNominations = osu.formatNumber(beatmapset.nominations.required)
playCount = osu.formatNumber(beatmapset.play_count)
favouriteCount = osu.formatNumber(beatmapset.favourite_count)
# arbitrary number
maxDisplayedDifficulty = 10
condenseDifficulties = beatmapset.beatmaps.length > maxDisplayedDifficulty
groupedBeatmaps = BeatmapHelper.group beatmapset.beatmaps
difficulties =
for mode in BeatmapHelper.modes
beatmaps = groupedBeatmaps[mode]
continue unless beatmaps?
if condenseDifficulties
[
el BeatmapIcon, key: "#{mode}-icon", beatmap: _.last(beatmaps), showTitle: false
span
className: 'beatmapset-panel__difficulty-count'
key: "#{mode}-count", beatmaps.length
]
else
for b in beatmaps
div
className: 'beatmapset-panel__difficulty-icon'
key: b.id
el BeatmapIcon, beatmap: b
div
className: "beatmapset-panel#{if @state.preview != 'ended' then ' beatmapset-panel--previewing' else ''}"
div className: 'beatmapset-panel__panel',
a
href: laroute.route('beatmapsets.show', beatmapset: beatmapset.id)
className: 'beatmapset-panel__header',
el Img2x,
className: 'beatmapset-panel__image'
onError: @hideImage
src: beatmapset.covers.card
div className: 'beatmapset-panel__image-overlay'
div className: 'beatmapset-panel__status-container',
if beatmapset.video
div className: 'beatmapset-panel__extra-icon',
i className: 'fas fa-film fa-fw'
if beatmapset.storyboard
div className: 'beatmapset-panel__extra-icon',
i className: 'fas fa-image fa-fw'
div className: 'beatmapset-status', osu.trans("beatmapsets.show.status.#{beatmapset.status}")
div className: 'beatmapset-panel__title-artist-box',
div className: 'u-ellipsis-overflow beatmapset-panel__header-text beatmapset-panel__header-text--title',
beatmapset.title
div className: 'beatmapset-panel__header-text',
beatmapset.artist
div className: 'beatmapset-panel__counts-box',
if showHypeCounts
div null,
div className: 'beatmapset-panel__count', title: osu.trans('beatmaps.hype.required_text', {current: currentHype, required: requiredHype}),
span className: 'beatmapset-panel__count-number', currentHype
i className: 'fas fa-bullhorn fa-fw'
div className: 'beatmapset-panel__count', title: osu.trans('beatmaps.nominations.required_text', {current: currentNominations, required: requiredNominations}),
span className: 'beatmapset-panel__count-number', currentNominations
i className: 'fas fa-thumbs-up fa-fw'
else
div className: 'beatmapset-panel__count', title: osu.trans('beatmaps.panel.playcount', count: playCount),
span className: 'beatmapset-panel__count-number', playCount
i className: 'fas fa-fw fa-play-circle'
div className: 'beatmapset-panel__count', title: osu.trans('beatmaps.panel.favourites', count: favouriteCount),
span className: 'beatmapset-panel__count-number', favouriteCount
i className: 'fas fa-fw fa-heart'
div
className: 'beatmapset-panel__preview-bar'
style:
transitionDuration: "#{@state.previewDuration}s"
width: "#{if @state.preview == 'playing' then '100%' else 0}"
div className: 'beatmapset-panel__content',
div className: 'beatmapset-panel__row',
div className: 'beatmapset-panel__mapper-source-box',
div
className: 'u-ellipsis-overflow'
el StringWithComponent,
pattern: osu.trans 'beatmapsets.show.details.mapped_by'
mappings:
':mapper':
a
key: 'PI:KEY:<KEY>END_PI'
href: laroute.route('users.show', user: beatmapset.user_id)
className: 'js-usercard'
'data-user-id': beatmapset.user_id
strong null, beatmapset.creator
div
className: 'u-ellipsis-overflow'
if beatmapset.status in ['graveyard', 'wip', 'pending']
span dangerouslySetInnerHTML: __html:
osu.trans 'beatmapsets.show.details.updated_timeago',
timeago: osu.timeago(beatmapset.last_updated)
else
beatmapset.source
div className: 'beatmapset-panel__icons-box',
if currentUser?.id
if beatmapset.availability.download_disabled
div
title: osu.trans('beatmapsets.availability.disabled')
className: 'beatmapset-panel__icon beatmapset-panel__icon--disabled'
i className: 'fas fa-lg fa-download'
else
a
href: laroute.route 'beatmapsets.download', beatmapset: beatmapset.id
title: osu.trans('beatmapsets.show.details.download._')
className: 'beatmapset-panel__icon js-beatmapset-download-link'
'data-turbolinks': 'false'
i className: 'fas fa-lg fa-download'
div className: 'beatmapset-panel__difficulties', difficulties
a
href: '#'
className: 'beatmapset-panel__play js-audio--play'
'data-audio-url': beatmapset.preview_url
i className: "fas fa-#{if @state.preview == 'ended' then 'play' else 'stop'}"
div className: 'beatmapset-panel__shadow'
previewInitializing: (_e, {url, player}) =>
if url != @props.beatmap.preview_url
return @previewStop()
@setState
preview: 'initializing'
previewDuration: 0
previewStart: (_e, {url, player}) =>
if url != @props.beatmap.preview_url
return @previewStop()
@setState
preview: 'playing'
previewDuration: player.duration
previewStop: =>
return if @state.preview == 'ended'
@setState
preview: 'ended'
previewDuration: 0
|
[
{
"context": "xtensions: [\n contentful(\n access_token: 'YOUR_ACCESS_TOKEN'\n space_id: 'aqzq2qya2jm4'\n ",
"end": 174,
"score": 0.4484958350658417,
"start": 170,
"tag": "PASSWORD",
"value": "YOUR"
}
] | test/fixtures/single_entry_multi/app.coffee | viksoh/roots-contentful-GAR | 90 | S = require 'string'
contentful = require '../../..'
module.exports =
ignores: ["**/_*", "**/.DS_Store"]
extensions: [
contentful(
access_token: 'YOUR_ACCESS_TOKEN'
space_id: 'aqzq2qya2jm4'
content_types: [
{
id: '6BYT1gNiIEyIw8Og8aQAO6'
name: 'blog_posts'
template: 'views/_blog_post.jade'
path: (e) -> ("#{lang}/#{S(e.title).slugify().s}" for lang in ['en', 'fr'])
}
]
)
]
locals:
wow: 'such local'
| 179685 | S = require 'string'
contentful = require '../../..'
module.exports =
ignores: ["**/_*", "**/.DS_Store"]
extensions: [
contentful(
access_token: '<PASSWORD>_ACCESS_TOKEN'
space_id: 'aqzq2qya2jm4'
content_types: [
{
id: '6BYT1gNiIEyIw8Og8aQAO6'
name: 'blog_posts'
template: 'views/_blog_post.jade'
path: (e) -> ("#{lang}/#{S(e.title).slugify().s}" for lang in ['en', 'fr'])
}
]
)
]
locals:
wow: 'such local'
| true | S = require 'string'
contentful = require '../../..'
module.exports =
ignores: ["**/_*", "**/.DS_Store"]
extensions: [
contentful(
access_token: 'PI:PASSWORD:<PASSWORD>END_PI_ACCESS_TOKEN'
space_id: 'aqzq2qya2jm4'
content_types: [
{
id: '6BYT1gNiIEyIw8Og8aQAO6'
name: 'blog_posts'
template: 'views/_blog_post.jade'
path: (e) -> ("#{lang}/#{S(e.title).slugify().s}" for lang in ['en', 'fr'])
}
]
)
]
locals:
wow: 'such local'
|
[
{
"context": "###\n mixin-js-ref-count.js 0.1.5\n (c) 2011, 2012 Kevin Malakoff - http://kmalakoff.github.com/mixin/\n License: M",
"end": 65,
"score": 0.9998390078544617,
"start": 51,
"tag": "NAME",
"value": "Kevin Malakoff"
},
{
"context": "js 0.1.5\n (c) 2011, 2012 Kevin Malak... | src/lib/mixin-js-ref-count.coffee | kmalakoff/mixin | 14 | ###
mixin-js-ref-count.js 0.1.5
(c) 2011, 2012 Kevin Malakoff - http://kmalakoff.github.com/mixin/
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Dependencies: Mixin.Core
###
Mixin.RefCount or= {}
Mixin.RefCount._mixin_info =
mixin_name: 'RefCount'
initialize: (release_callback) ->
Mixin.instanceData(this, 'RefCount', {ref_count: 1, release_callback: release_callback})
mixin_object: {
retain: ->
instance_data = Mixin.instanceData(this, 'RefCount')
throw new Error("Mixin.RefCount: ref_count is corrupt: #{instance_data.ref_count}") if instance_data.ref_count<=0
instance_data.ref_count++
return this
release: ->
instance_data = Mixin.instanceData(this, 'RefCount')
throw new Error("Mixin.RefCount: ref_count is corrupt: #{instance_data.ref_count}") if instance_data.ref_count<=0
instance_data.ref_count--
instance_data.release_callback(this) if (instance_data.ref_count==0) and instance_data.release_callback
return this
refCount: -> return Mixin.instanceData(this, 'RefCount').ref_count
}
####################################################
# Make mixin available
####################################################
Mixin.registerMixin(Mixin.RefCount._mixin_info) | 21007 | ###
mixin-js-ref-count.js 0.1.5
(c) 2011, 2012 <NAME> - http://kmalakoff.github.com/mixin/
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Dependencies: Mixin.Core
###
Mixin.RefCount or= {}
Mixin.RefCount._mixin_info =
mixin_name: 'RefCount'
initialize: (release_callback) ->
Mixin.instanceData(this, 'RefCount', {ref_count: 1, release_callback: release_callback})
mixin_object: {
retain: ->
instance_data = Mixin.instanceData(this, 'RefCount')
throw new Error("Mixin.RefCount: ref_count is corrupt: #{instance_data.ref_count}") if instance_data.ref_count<=0
instance_data.ref_count++
return this
release: ->
instance_data = Mixin.instanceData(this, 'RefCount')
throw new Error("Mixin.RefCount: ref_count is corrupt: #{instance_data.ref_count}") if instance_data.ref_count<=0
instance_data.ref_count--
instance_data.release_callback(this) if (instance_data.ref_count==0) and instance_data.release_callback
return this
refCount: -> return Mixin.instanceData(this, 'RefCount').ref_count
}
####################################################
# Make mixin available
####################################################
Mixin.registerMixin(Mixin.RefCount._mixin_info) | true | ###
mixin-js-ref-count.js 0.1.5
(c) 2011, 2012 PI:NAME:<NAME>END_PI - http://kmalakoff.github.com/mixin/
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Dependencies: Mixin.Core
###
Mixin.RefCount or= {}
Mixin.RefCount._mixin_info =
mixin_name: 'RefCount'
initialize: (release_callback) ->
Mixin.instanceData(this, 'RefCount', {ref_count: 1, release_callback: release_callback})
mixin_object: {
retain: ->
instance_data = Mixin.instanceData(this, 'RefCount')
throw new Error("Mixin.RefCount: ref_count is corrupt: #{instance_data.ref_count}") if instance_data.ref_count<=0
instance_data.ref_count++
return this
release: ->
instance_data = Mixin.instanceData(this, 'RefCount')
throw new Error("Mixin.RefCount: ref_count is corrupt: #{instance_data.ref_count}") if instance_data.ref_count<=0
instance_data.ref_count--
instance_data.release_callback(this) if (instance_data.ref_count==0) and instance_data.release_callback
return this
refCount: -> return Mixin.instanceData(this, 'RefCount').ref_count
}
####################################################
# Make mixin available
####################################################
Mixin.registerMixin(Mixin.RefCount._mixin_info) |
[
{
"context": "ds:\n# hubot gos(ling)? me - Receive a programmer Ryan Gosling meme\n# hubot gos(ling)? bomb N - Receive N prog",
"end": 208,
"score": 0.6207062005996704,
"start": 196,
"tag": "NAME",
"value": "Ryan Gosling"
},
{
"context": " hubot gos(ling)? bomb N - Receive N pro... | src/scripts/gosling.coffee | Reelhouse/hubot-scripts | 9 | # Description:
# Pulls a random programmer Ryan Gosling image
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_TUMBLR_API_KEY
#
# Commands:
# hubot gos(ling)? me - Receive a programmer Ryan Gosling meme
# hubot gos(ling)? bomb N - Receive N programmer Ryan Gosling memes
#
# Author:
# jessedearing
api_key = process.env.HUBOT_TUMBLR_API_KEY
getRandomGoslingImageUrl = (msg, rand) ->
msg.http("http://api.tumblr.com/v2/blog/programmerryangosling.tumblr.com/posts?api_key=#{api_key}&offset=#{rand}&limit=1").get() (err, res, body) ->
post = JSON.parse(body)
msg.send(post.response.posts[0].photos[0].original_size.url)
getGoslingImage = (msg) ->
msg.http("http://api.tumblr.com/v2/blog/programmerryangosling.tumblr.com/info?api_key=#{api_key}").get() (err, res, body) ->
total_posts = JSON.parse(body).response.blog.posts
rand = Math.floor(Math.random() * total_posts)
getRandomGoslingImageUrl(msg, rand)
module.exports = (robot) ->
robot.respond /gos(ling)? me/, (msg) ->
getGoslingImage(msg)
robot.respond /gos(ling)? bomb (\d+)/, (msg) ->
count = msg.match[2] || 5
for num in [count..1]
getGoslingImage(msg)
| 67931 | # Description:
# Pulls a random programmer Ryan Gosling image
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_TUMBLR_API_KEY
#
# Commands:
# hubot gos(ling)? me - Receive a programmer <NAME> meme
# hubot gos(ling)? bomb N - Receive N programmer R<NAME> Gosling memes
#
# Author:
# jessedearing
api_key = process.env.HUBOT_TUMBLR_API_KEY
getRandomGoslingImageUrl = (msg, rand) ->
msg.http("http://api.tumblr.com/v2/blog/programmerryangosling.tumblr.com/posts?api_key=#{api_key}&offset=#{rand}&limit=1").get() (err, res, body) ->
post = JSON.parse(body)
msg.send(post.response.posts[0].photos[0].original_size.url)
getGoslingImage = (msg) ->
msg.http("http://api.tumblr.com/v2/blog/programmerryangosling.tumblr.com/info?api_key=#{api_key}").get() (err, res, body) ->
total_posts = JSON.parse(body).response.blog.posts
rand = Math.floor(Math.random() * total_posts)
getRandomGoslingImageUrl(msg, rand)
module.exports = (robot) ->
robot.respond /gos(ling)? me/, (msg) ->
getGoslingImage(msg)
robot.respond /gos(ling)? bomb (\d+)/, (msg) ->
count = msg.match[2] || 5
for num in [count..1]
getGoslingImage(msg)
| true | # Description:
# Pulls a random programmer Ryan Gosling image
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_TUMBLR_API_KEY
#
# Commands:
# hubot gos(ling)? me - Receive a programmer PI:NAME:<NAME>END_PI meme
# hubot gos(ling)? bomb N - Receive N programmer RPI:NAME:<NAME>END_PI Gosling memes
#
# Author:
# jessedearing
api_key = process.env.HUBOT_TUMBLR_API_KEY
getRandomGoslingImageUrl = (msg, rand) ->
msg.http("http://api.tumblr.com/v2/blog/programmerryangosling.tumblr.com/posts?api_key=#{api_key}&offset=#{rand}&limit=1").get() (err, res, body) ->
post = JSON.parse(body)
msg.send(post.response.posts[0].photos[0].original_size.url)
getGoslingImage = (msg) ->
msg.http("http://api.tumblr.com/v2/blog/programmerryangosling.tumblr.com/info?api_key=#{api_key}").get() (err, res, body) ->
total_posts = JSON.parse(body).response.blog.posts
rand = Math.floor(Math.random() * total_posts)
getRandomGoslingImageUrl(msg, rand)
module.exports = (robot) ->
robot.respond /gos(ling)? me/, (msg) ->
getGoslingImage(msg)
robot.respond /gos(ling)? bomb (\d+)/, (msg) ->
count = msg.match[2] || 5
for num in [count..1]
getGoslingImage(msg)
|
[
{
"context": "\n deepEqual route.paramsFromPath(path), { name: 'Hello World', path }\n\ntest \"routes with optional segments sho",
"end": 6658,
"score": 0.9815789461135864,
"start": 6647,
"tag": "NAME",
"value": "Hello World"
}
] | tests/batman/routes/route_test.coffee | davidcornu/batman | 3 | QUnit.module "Batman.Route",
test "routes should match and dispatch", 3, ->
@route = new Batman.CallbackActionRoute "/why/where/what", {callback: spy = createSpy()}
ok @route.test "/why/where/what"
ok !@route.test "/when/how"
[path, params] = @route.pathAndParamsFromArgument "/why/where/what"
@route.dispatch params
deepEqual spy.lastCallArguments, [{path}]
test "routes should test against params hashes", 4, ->
@route = new Batman.ControllerActionRoute "/products/:id/edit", {controller: 'products', action: 'edit'}
ok @route.test {path: "/products/10/edit"}
ok @route.test {controller: 'products', action: 'edit', id: 10}
ok !@route.test {controller: 'products', action: 'edit'}
ok !@route.test {controller: 'products', action: 'show', id: 10}
test "routes with extra parameters should match and dispatch", 1, ->
@route = new Batman.CallbackActionRoute "/why/where/what", {handy: true, callback: spy = createSpy()}
[path, params] = @route.pathAndParamsFromArgument "/why/where/what"
@route.dispatch params
deepEqual spy.lastCallArguments, [{path, handy:true}]
test "routes with named parameters should match and dispatch", 5, ->
@route = new Batman.CallbackActionRoute "/products/:id", {callback: spy = createSpy()}
ok @route.test "/products/10"
ok @route.test "/products/20"
ok !@route.test "/products/"
ok !@route.test "/products"
[path, params] = @route.pathAndParamsFromArgument "/products/10"
@route.dispatch params
deepEqual spy.lastCallArguments, [{id: '10', path: "/products/10"}]
test "routes with splat parameters should match and dispatch", 9, ->
@route = new Batman.CallbackActionRoute "/books/*categories/all", {callback: spy = createSpy()}
ok @route.test "/books/fiction/fantasy/vampires/all"
ok @route.test "/books/non-fiction/biography/all"
ok @route.test "/books/non-fiction/all"
ok @route.test "/books//all"
ok !@route.test "/books/"
ok !@route.test "/books/a/b/c"
[path, params] = @route.pathAndParamsFromArgument "/books/non-fiction/biography/all"
@route.dispatch params
deepEqual spy.lastCallArguments, [{categories: 'non-fiction/biography', path}]
[path, params] = @route.pathAndParamsFromArgument "/books/non-fiction/all"
@route.dispatch params
deepEqual spy.lastCallArguments, [{categories: 'non-fiction', path}]
[path, params] = @route.pathAndParamsFromArgument "/books//all"
@route.dispatch params
deepEqual spy.lastCallArguments, [{categories: '', path}]
test "routes should build paths without named parameters", 1, ->
@route = new Batman.Route "/products", {}
equal @route.pathFromParams({}), "/products"
test "routes should build paths with named parameters", 3, ->
@route = new Batman.Route "/products/:id", {}
equal @route.pathFromParams({id:1}), "/products/1"
equal @route.pathFromParams({id:10}), "/products/10"
@route = new Batman.Route "/products/:product_id/images/:id", {}
equal @route.pathFromParams({product_id: 10, id:20}), "/products/10/images/20"
test "routes should build paths with splat parameters", 2, ->
@route = new Batman.Route "/books/*categories/all", {}
equal @route.pathFromParams({categories: ""}), "/books//all"
equal @route.pathFromParams({categories: "fiction/fantasy"}), "/books/fiction/fantasy/all"
test "routes should build paths with query parameters", 3, ->
@route = new Batman.Route "/books/:id", {}
equal @route.pathFromParams({id: 1, page: 3, limit: 10}), "/books/1?page=3&limit=10"
@route = new Batman.Route "/books/:page", {}
equal @route.pathFromParams({id: 1, page: 3, limit: 10}), "/books/3?id=1&limit=10"
@route = new Batman.Route "/welcome", {}
equal @route.pathFromParams({"the phrase": "a phrase with spaces"}), "/welcome?the+phrase=a+phrase+with+spaces"
test "routes should build paths with hashes", 1, ->
@route = new Batman.Route "/books/:id", {}
equal @route.pathFromParams({id: 1, '#': 'foo'}), "/books/1#foo"
test "routes should build paths with query parameters and hashes", 1, ->
@route = new Batman.Route "/books/:id", {}
equal @route.pathFromParams({id: 1, page: 3, limit: 10, '#': 'foo'}), "/books/1?page=3&limit=10#foo"
test "routes should parse paths with query parameters", ->
route = new Batman.Route "/welcome", {}
path = "/welcome?the%20phrase=a+phrase+with+spaces+and+a+plus+%2B"
expectedParams =
path: "/welcome"
"the phrase": "a phrase with spaces and a plus +"
deepEqual route.paramsFromPath(path), expectedParams
test "controller action routes should match", ->
App = Batman
dispatcher: Batman
controllers: Batman
products: Batman
dispatch: productSpy = createSpy()
savedSearches: Batman
dispatch: searchSpy = createSpy()
@route = new Batman.ControllerActionRoute "/products/:id/edit",
controller: 'products'
action: 'edit'
app: App
ok @route.test "/products/10/edit"
ok !@route.test "/products/10"
@route = new Batman.ControllerActionRoute "/saved_searches/:id/duplicate",
controller: 'savedSearches'
action: 'duplicate'
app: App
ok @route.test "/saved_searches/10/duplicate"
ok !@route.test "/saved_searches/10"
test "controller/action routes should call the controller's dispatch function", ->
App = Batman
dispatcher: Batman
controllers: Batman
products: Batman
dispatch: productSpy = createSpy()
savedSearches: Batman
dispatch: searchSpy = createSpy()
@route = new Batman.ControllerActionRoute "/products/:id/edit",
controller: 'products'
action: 'edit'
app: App
[path, params] = @route.pathAndParamsFromArgument "/products/10/edit"
@route.dispatch params
equal productSpy.lastCallArguments[0], "edit"
equal productSpy.lastCallArguments[1].id, "10"
@route = new Batman.ControllerActionRoute "/saved_searches/:id/duplicate",
controller: 'savedSearches'
action: 'duplicate'
app: App
[path, params] = @route.pathAndParamsFromArgument "/saved_searches/20/duplicate"
@route.dispatch params
equal searchSpy.lastCallArguments[0], "duplicate"
equal searchSpy.lastCallArguments[1].id, "20"
test "routes should build paths with optional segments", 3, ->
route = new Batman.Route "/calendar(/:type(/:date))", {}
equal route.pathFromParams({}), "/calendar"
equal route.pathFromParams({type: "m"}), "/calendar/m"
equal route.pathFromParams({type: "m", date: "2012-11"}), "/calendar/m/2012-11"
test "routes should decode URI components when parsing params", ->
route = new Batman.Route("/users/:name", {})
path = '/users/Hello%20World'
deepEqual route.paramsFromPath(path), { name: 'Hello World', path }
test "routes with optional segments should parse params", ->
type = 'm'
date = '2012-11'
route = new Batman.Route "/calendar(/:type(/:date))", {}
path = "/calendar/#{type}/#{date}"
deepEqual route.paramsFromPath(path), { path, type, date }
path = "/calendar/#{type}"
deepEqual route.paramsFromPath(path), { path, type }
path = "/calendar"
deepEqual route.paramsFromPath(path), { path }
| 151782 | QUnit.module "Batman.Route",
test "routes should match and dispatch", 3, ->
@route = new Batman.CallbackActionRoute "/why/where/what", {callback: spy = createSpy()}
ok @route.test "/why/where/what"
ok !@route.test "/when/how"
[path, params] = @route.pathAndParamsFromArgument "/why/where/what"
@route.dispatch params
deepEqual spy.lastCallArguments, [{path}]
test "routes should test against params hashes", 4, ->
@route = new Batman.ControllerActionRoute "/products/:id/edit", {controller: 'products', action: 'edit'}
ok @route.test {path: "/products/10/edit"}
ok @route.test {controller: 'products', action: 'edit', id: 10}
ok !@route.test {controller: 'products', action: 'edit'}
ok !@route.test {controller: 'products', action: 'show', id: 10}
test "routes with extra parameters should match and dispatch", 1, ->
@route = new Batman.CallbackActionRoute "/why/where/what", {handy: true, callback: spy = createSpy()}
[path, params] = @route.pathAndParamsFromArgument "/why/where/what"
@route.dispatch params
deepEqual spy.lastCallArguments, [{path, handy:true}]
test "routes with named parameters should match and dispatch", 5, ->
@route = new Batman.CallbackActionRoute "/products/:id", {callback: spy = createSpy()}
ok @route.test "/products/10"
ok @route.test "/products/20"
ok !@route.test "/products/"
ok !@route.test "/products"
[path, params] = @route.pathAndParamsFromArgument "/products/10"
@route.dispatch params
deepEqual spy.lastCallArguments, [{id: '10', path: "/products/10"}]
test "routes with splat parameters should match and dispatch", 9, ->
@route = new Batman.CallbackActionRoute "/books/*categories/all", {callback: spy = createSpy()}
ok @route.test "/books/fiction/fantasy/vampires/all"
ok @route.test "/books/non-fiction/biography/all"
ok @route.test "/books/non-fiction/all"
ok @route.test "/books//all"
ok !@route.test "/books/"
ok !@route.test "/books/a/b/c"
[path, params] = @route.pathAndParamsFromArgument "/books/non-fiction/biography/all"
@route.dispatch params
deepEqual spy.lastCallArguments, [{categories: 'non-fiction/biography', path}]
[path, params] = @route.pathAndParamsFromArgument "/books/non-fiction/all"
@route.dispatch params
deepEqual spy.lastCallArguments, [{categories: 'non-fiction', path}]
[path, params] = @route.pathAndParamsFromArgument "/books//all"
@route.dispatch params
deepEqual spy.lastCallArguments, [{categories: '', path}]
test "routes should build paths without named parameters", 1, ->
@route = new Batman.Route "/products", {}
equal @route.pathFromParams({}), "/products"
test "routes should build paths with named parameters", 3, ->
@route = new Batman.Route "/products/:id", {}
equal @route.pathFromParams({id:1}), "/products/1"
equal @route.pathFromParams({id:10}), "/products/10"
@route = new Batman.Route "/products/:product_id/images/:id", {}
equal @route.pathFromParams({product_id: 10, id:20}), "/products/10/images/20"
test "routes should build paths with splat parameters", 2, ->
@route = new Batman.Route "/books/*categories/all", {}
equal @route.pathFromParams({categories: ""}), "/books//all"
equal @route.pathFromParams({categories: "fiction/fantasy"}), "/books/fiction/fantasy/all"
test "routes should build paths with query parameters", 3, ->
@route = new Batman.Route "/books/:id", {}
equal @route.pathFromParams({id: 1, page: 3, limit: 10}), "/books/1?page=3&limit=10"
@route = new Batman.Route "/books/:page", {}
equal @route.pathFromParams({id: 1, page: 3, limit: 10}), "/books/3?id=1&limit=10"
@route = new Batman.Route "/welcome", {}
equal @route.pathFromParams({"the phrase": "a phrase with spaces"}), "/welcome?the+phrase=a+phrase+with+spaces"
test "routes should build paths with hashes", 1, ->
@route = new Batman.Route "/books/:id", {}
equal @route.pathFromParams({id: 1, '#': 'foo'}), "/books/1#foo"
test "routes should build paths with query parameters and hashes", 1, ->
@route = new Batman.Route "/books/:id", {}
equal @route.pathFromParams({id: 1, page: 3, limit: 10, '#': 'foo'}), "/books/1?page=3&limit=10#foo"
test "routes should parse paths with query parameters", ->
route = new Batman.Route "/welcome", {}
path = "/welcome?the%20phrase=a+phrase+with+spaces+and+a+plus+%2B"
expectedParams =
path: "/welcome"
"the phrase": "a phrase with spaces and a plus +"
deepEqual route.paramsFromPath(path), expectedParams
test "controller action routes should match", ->
App = Batman
dispatcher: Batman
controllers: Batman
products: Batman
dispatch: productSpy = createSpy()
savedSearches: Batman
dispatch: searchSpy = createSpy()
@route = new Batman.ControllerActionRoute "/products/:id/edit",
controller: 'products'
action: 'edit'
app: App
ok @route.test "/products/10/edit"
ok !@route.test "/products/10"
@route = new Batman.ControllerActionRoute "/saved_searches/:id/duplicate",
controller: 'savedSearches'
action: 'duplicate'
app: App
ok @route.test "/saved_searches/10/duplicate"
ok !@route.test "/saved_searches/10"
test "controller/action routes should call the controller's dispatch function", ->
App = Batman
dispatcher: Batman
controllers: Batman
products: Batman
dispatch: productSpy = createSpy()
savedSearches: Batman
dispatch: searchSpy = createSpy()
@route = new Batman.ControllerActionRoute "/products/:id/edit",
controller: 'products'
action: 'edit'
app: App
[path, params] = @route.pathAndParamsFromArgument "/products/10/edit"
@route.dispatch params
equal productSpy.lastCallArguments[0], "edit"
equal productSpy.lastCallArguments[1].id, "10"
@route = new Batman.ControllerActionRoute "/saved_searches/:id/duplicate",
controller: 'savedSearches'
action: 'duplicate'
app: App
[path, params] = @route.pathAndParamsFromArgument "/saved_searches/20/duplicate"
@route.dispatch params
equal searchSpy.lastCallArguments[0], "duplicate"
equal searchSpy.lastCallArguments[1].id, "20"
test "routes should build paths with optional segments", 3, ->
route = new Batman.Route "/calendar(/:type(/:date))", {}
equal route.pathFromParams({}), "/calendar"
equal route.pathFromParams({type: "m"}), "/calendar/m"
equal route.pathFromParams({type: "m", date: "2012-11"}), "/calendar/m/2012-11"
test "routes should decode URI components when parsing params", ->
route = new Batman.Route("/users/:name", {})
path = '/users/Hello%20World'
deepEqual route.paramsFromPath(path), { name: '<NAME>', path }
test "routes with optional segments should parse params", ->
type = 'm'
date = '2012-11'
route = new Batman.Route "/calendar(/:type(/:date))", {}
path = "/calendar/#{type}/#{date}"
deepEqual route.paramsFromPath(path), { path, type, date }
path = "/calendar/#{type}"
deepEqual route.paramsFromPath(path), { path, type }
path = "/calendar"
deepEqual route.paramsFromPath(path), { path }
| true | QUnit.module "Batman.Route",
test "routes should match and dispatch", 3, ->
@route = new Batman.CallbackActionRoute "/why/where/what", {callback: spy = createSpy()}
ok @route.test "/why/where/what"
ok !@route.test "/when/how"
[path, params] = @route.pathAndParamsFromArgument "/why/where/what"
@route.dispatch params
deepEqual spy.lastCallArguments, [{path}]
test "routes should test against params hashes", 4, ->
@route = new Batman.ControllerActionRoute "/products/:id/edit", {controller: 'products', action: 'edit'}
ok @route.test {path: "/products/10/edit"}
ok @route.test {controller: 'products', action: 'edit', id: 10}
ok !@route.test {controller: 'products', action: 'edit'}
ok !@route.test {controller: 'products', action: 'show', id: 10}
test "routes with extra parameters should match and dispatch", 1, ->
@route = new Batman.CallbackActionRoute "/why/where/what", {handy: true, callback: spy = createSpy()}
[path, params] = @route.pathAndParamsFromArgument "/why/where/what"
@route.dispatch params
deepEqual spy.lastCallArguments, [{path, handy:true}]
test "routes with named parameters should match and dispatch", 5, ->
@route = new Batman.CallbackActionRoute "/products/:id", {callback: spy = createSpy()}
ok @route.test "/products/10"
ok @route.test "/products/20"
ok !@route.test "/products/"
ok !@route.test "/products"
[path, params] = @route.pathAndParamsFromArgument "/products/10"
@route.dispatch params
deepEqual spy.lastCallArguments, [{id: '10', path: "/products/10"}]
test "routes with splat parameters should match and dispatch", 9, ->
@route = new Batman.CallbackActionRoute "/books/*categories/all", {callback: spy = createSpy()}
ok @route.test "/books/fiction/fantasy/vampires/all"
ok @route.test "/books/non-fiction/biography/all"
ok @route.test "/books/non-fiction/all"
ok @route.test "/books//all"
ok !@route.test "/books/"
ok !@route.test "/books/a/b/c"
[path, params] = @route.pathAndParamsFromArgument "/books/non-fiction/biography/all"
@route.dispatch params
deepEqual spy.lastCallArguments, [{categories: 'non-fiction/biography', path}]
[path, params] = @route.pathAndParamsFromArgument "/books/non-fiction/all"
@route.dispatch params
deepEqual spy.lastCallArguments, [{categories: 'non-fiction', path}]
[path, params] = @route.pathAndParamsFromArgument "/books//all"
@route.dispatch params
deepEqual spy.lastCallArguments, [{categories: '', path}]
test "routes should build paths without named parameters", 1, ->
@route = new Batman.Route "/products", {}
equal @route.pathFromParams({}), "/products"
test "routes should build paths with named parameters", 3, ->
@route = new Batman.Route "/products/:id", {}
equal @route.pathFromParams({id:1}), "/products/1"
equal @route.pathFromParams({id:10}), "/products/10"
@route = new Batman.Route "/products/:product_id/images/:id", {}
equal @route.pathFromParams({product_id: 10, id:20}), "/products/10/images/20"
test "routes should build paths with splat parameters", 2, ->
@route = new Batman.Route "/books/*categories/all", {}
equal @route.pathFromParams({categories: ""}), "/books//all"
equal @route.pathFromParams({categories: "fiction/fantasy"}), "/books/fiction/fantasy/all"
test "routes should build paths with query parameters", 3, ->
@route = new Batman.Route "/books/:id", {}
equal @route.pathFromParams({id: 1, page: 3, limit: 10}), "/books/1?page=3&limit=10"
@route = new Batman.Route "/books/:page", {}
equal @route.pathFromParams({id: 1, page: 3, limit: 10}), "/books/3?id=1&limit=10"
@route = new Batman.Route "/welcome", {}
equal @route.pathFromParams({"the phrase": "a phrase with spaces"}), "/welcome?the+phrase=a+phrase+with+spaces"
test "routes should build paths with hashes", 1, ->
@route = new Batman.Route "/books/:id", {}
equal @route.pathFromParams({id: 1, '#': 'foo'}), "/books/1#foo"
test "routes should build paths with query parameters and hashes", 1, ->
@route = new Batman.Route "/books/:id", {}
equal @route.pathFromParams({id: 1, page: 3, limit: 10, '#': 'foo'}), "/books/1?page=3&limit=10#foo"
test "routes should parse paths with query parameters", ->
route = new Batman.Route "/welcome", {}
path = "/welcome?the%20phrase=a+phrase+with+spaces+and+a+plus+%2B"
expectedParams =
path: "/welcome"
"the phrase": "a phrase with spaces and a plus +"
deepEqual route.paramsFromPath(path), expectedParams
test "controller action routes should match", ->
App = Batman
dispatcher: Batman
controllers: Batman
products: Batman
dispatch: productSpy = createSpy()
savedSearches: Batman
dispatch: searchSpy = createSpy()
@route = new Batman.ControllerActionRoute "/products/:id/edit",
controller: 'products'
action: 'edit'
app: App
ok @route.test "/products/10/edit"
ok !@route.test "/products/10"
@route = new Batman.ControllerActionRoute "/saved_searches/:id/duplicate",
controller: 'savedSearches'
action: 'duplicate'
app: App
ok @route.test "/saved_searches/10/duplicate"
ok !@route.test "/saved_searches/10"
test "controller/action routes should call the controller's dispatch function", ->
App = Batman
dispatcher: Batman
controllers: Batman
products: Batman
dispatch: productSpy = createSpy()
savedSearches: Batman
dispatch: searchSpy = createSpy()
@route = new Batman.ControllerActionRoute "/products/:id/edit",
controller: 'products'
action: 'edit'
app: App
[path, params] = @route.pathAndParamsFromArgument "/products/10/edit"
@route.dispatch params
equal productSpy.lastCallArguments[0], "edit"
equal productSpy.lastCallArguments[1].id, "10"
@route = new Batman.ControllerActionRoute "/saved_searches/:id/duplicate",
controller: 'savedSearches'
action: 'duplicate'
app: App
[path, params] = @route.pathAndParamsFromArgument "/saved_searches/20/duplicate"
@route.dispatch params
equal searchSpy.lastCallArguments[0], "duplicate"
equal searchSpy.lastCallArguments[1].id, "20"
test "routes should build paths with optional segments", 3, ->
route = new Batman.Route "/calendar(/:type(/:date))", {}
equal route.pathFromParams({}), "/calendar"
equal route.pathFromParams({type: "m"}), "/calendar/m"
equal route.pathFromParams({type: "m", date: "2012-11"}), "/calendar/m/2012-11"
test "routes should decode URI components when parsing params", ->
route = new Batman.Route("/users/:name", {})
path = '/users/Hello%20World'
deepEqual route.paramsFromPath(path), { name: 'PI:NAME:<NAME>END_PI', path }
test "routes with optional segments should parse params", ->
type = 'm'
date = '2012-11'
route = new Batman.Route "/calendar(/:type(/:date))", {}
path = "/calendar/#{type}/#{date}"
deepEqual route.paramsFromPath(path), { path, type, date }
path = "/calendar/#{type}"
deepEqual route.paramsFromPath(path), { path, type }
path = "/calendar"
deepEqual route.paramsFromPath(path), { path }
|
[
{
"context": "ic Quo Module\n\n@namespace Quo\n@class Ajax\n\n@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi\n###\n\"use strict\"\n\n\n",
"end": 79,
"score": 0.999849796295166,
"start": 58,
"tag": "NAME",
"value": "Javier Jimenez Villar"
},
{
"context": "e Quo\n@class Aj... | source/quo.ajax.coffee | TNT-RoX/QuoJS | 1 | ###
Basic Quo Module
@namespace Quo
@class Ajax
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
DEFAULT =
TYPE: "GET"
MIME: "json"
MIME_TYPES =
script: "text/javascript, application/javascript"
json : "application/json"
xml : "application/xml, text/xml"
html : "text/html"
text : "text/plain"
JSONP_ID = 0
$$.ajaxSettings =
type : DEFAULT.TYPE
async : true
success : {}
error : {}
context : null
dataType : DEFAULT.MIME
headers : {}
xhr : -> new window.XMLHttpRequest()
crossDomain : false
timeout : 0
###
Perform an asynchronous HTTP (Ajax) request.
@method ajax
@param {object} A set of key/value pairs that configure the Ajax request
###
$$.ajax = (options) ->
settings = $$.mix($$.ajaxSettings, options)
if settings.type is DEFAULT.TYPE
settings.url += $$.serialize(settings.data, "?")
else
settings.data = $$.serialize(settings.data)
return _jsonp(settings) if _isJsonP(settings.url)
xhr = settings.xhr()
xhr.onreadystatechange = ->
if xhr.readyState is 4
clearTimeout abortTimeout
_xhrStatus xhr, settings
xhr.open settings.type, settings.url, settings.async
_xhrHeaders xhr, settings
if settings.timeout > 0
abortTimeout = setTimeout((-> _xhrTimeout xhr, settings ), settings.timeout)
try
xhr.send settings.data
catch error
xhr = error
_xhrError "Resource not found", xhr, settings
xhr
###
Load data from the server using a HTTP GET request.
@method get
@param {string} A string containing the URL to which the request is sent.
@param {string} [OPTIONAL] A plain object or string that is sent to the server with the request.
@param {string} [OPTIONAL] A callback function that is executed if the request succeeds.
@param {string} [OPTIONAL] The type of data expected from the server
###
$$.get = (url, data, success, dataType) ->
$$.ajax
url : url
data : data
success : success
dataType: dataType
###
Load data from the server using a HTTP POST request.
@method post
@param {string} A string containing the URL to which the request is sent.
@param {string} [OPTIONAL] A plain object or string that is sent to the server with the request.
@param {string} [OPTIONAL] A callback function that is executed if the request succeeds.
@param {string} [OPTIONAL] The type of data expected from the server
###
$$.post = (url, data, success, dataType) ->
_xhrForm("POST", url, data, success, dataType)
###
Load data from the server using a HTTP PPUTOST request.
@method put
@param {string} A string containing the URL to which the request is sent.
@param {string} [OPTIONAL] A plain object or string that is sent to the server with the request.
@param {string} [OPTIONAL] A callback function that is executed if the request succeeds.
@param {string} [OPTIONAL] The type of data expected from the server
###
$$.put = (url, data, success, dataType) ->
_xhrForm("PUT", url, data, success, dataType)
###
Load data from the server using a HTTP DELETE request.
@method delete
@param {string} A string containing the URL to which the request is sent.
@param {string} [OPTIONAL] A plain object or string that is sent to the server with the request.
@param {string} [OPTIONAL] A callback function that is executed if the request succeeds.
@param {string} [OPTIONAL] The type of data expected from the server
###
$$.delete = (url, data, success, dataType) ->
_xhrForm("DELETE", url, data, success, dataType)
###
Load JSON-encoded data from the server using a GET HTTP request.
@method json
@param {string} A string containing the URL to which the request is sent.
@param {string} [OPTIONAL] A plain object or string that is sent to the server with the request.
@param {string} [OPTIONAL] A callback function that is executed if the request succeeds.
###
$$.json = (url, data, success) ->
$$.ajax
url: url
data: data
success: success
###
Encode a set of form elements as a string for submission.
@method serialize
@param {object}
###
$$.serialize = (parameters, character="") ->
serialize = character
for parameter of parameters
if parameters.hasOwnProperty(parameter)
serialize += "&" if serialize isnt character
serialize += "#{encodeURIComponent parameter}=#{encodeURIComponent parameters[parameter]}"
(if (serialize is character) then "" else serialize)
# ---------------------------------------------------------------------------
# Private Methods
# ---------------------------------------------------------------------------
_jsonp = (settings) ->
if settings.async
callbackName = "jsonp" + (++JSONP_ID)
script = document.createElement("script")
xhr = abort: ->
$$(script).remove()
window[callbackName] = {} if callbackName of window
abortTimeout = undefined
window[callbackName] = (response) ->
clearTimeout abortTimeout
$$(script).remove()
delete window[callbackName]
_xhrSuccess response, xhr, settings
script.src = settings.url.replace(RegExp("=\\?"), "=" + callbackName)
$$("head").append script
if settings.timeout > 0
abortTimeout = setTimeout((-> _xhrTimeout xhr, settings), settings.timeout)
xhr
else
console.error "QuoJS.ajax: Unable to make jsonp synchronous call."
_xhrStatus = (xhr, settings) ->
if (xhr.status >= 200 and xhr.status < 300) or xhr.status is 0
if settings.async
_xhrSuccess _parseResponse(xhr, settings), xhr, settings
return
else
_xhrError "QuoJS.ajax: Unsuccesful request", xhr, settings
return
_xhrSuccess = (response, xhr, settings) ->
settings.success.call settings.context, response, xhr
return
_xhrError = (type, xhr, settings) ->
settings.error.call settings.context, type, xhr, settings
return
_xhrHeaders = (xhr, settings) ->
settings.headers["Content-Type"] = settings.contentType if settings.contentType
settings.headers["Accept"] = MIME_TYPES[settings.dataType] if settings.dataType
for header of settings.headers
xhr.setRequestHeader header, settings.headers[header]
return
_xhrTimeout = (xhr, settings) ->
xhr.onreadystatechange = {}
xhr.abort()
_xhrError "QuoJS.ajax: Timeout exceeded", xhr, settings
return
_xhrForm = (method, url, data, success, dataType) ->
$$.ajax
type : method
url : url
data : data
success : success
dataType : dataType
contentType : "application/x-www-form-urlencoded"
_isJsonP = (url) ->
RegExp("=\\?").test url
_parseResponse = (xhr, settings) ->
response = xhr
if xhr.responseText
if settings.dataType is DEFAULT.MIME
try
response = JSON.parse xhr.responseText
catch error
response = error
_xhrError "QuoJS.ajax: Parse Error", xhr, settings
response = xhr.responseXML if settings.dataType is "xml"
response
| 213462 | ###
Basic Quo Module
@namespace Quo
@class Ajax
@author <NAME> <<EMAIL>> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
DEFAULT =
TYPE: "GET"
MIME: "json"
MIME_TYPES =
script: "text/javascript, application/javascript"
json : "application/json"
xml : "application/xml, text/xml"
html : "text/html"
text : "text/plain"
JSONP_ID = 0
$$.ajaxSettings =
type : DEFAULT.TYPE
async : true
success : {}
error : {}
context : null
dataType : DEFAULT.MIME
headers : {}
xhr : -> new window.XMLHttpRequest()
crossDomain : false
timeout : 0
###
Perform an asynchronous HTTP (Ajax) request.
@method ajax
@param {object} A set of key/value pairs that configure the Ajax request
###
$$.ajax = (options) ->
settings = $$.mix($$.ajaxSettings, options)
if settings.type is DEFAULT.TYPE
settings.url += $$.serialize(settings.data, "?")
else
settings.data = $$.serialize(settings.data)
return _jsonp(settings) if _isJsonP(settings.url)
xhr = settings.xhr()
xhr.onreadystatechange = ->
if xhr.readyState is 4
clearTimeout abortTimeout
_xhrStatus xhr, settings
xhr.open settings.type, settings.url, settings.async
_xhrHeaders xhr, settings
if settings.timeout > 0
abortTimeout = setTimeout((-> _xhrTimeout xhr, settings ), settings.timeout)
try
xhr.send settings.data
catch error
xhr = error
_xhrError "Resource not found", xhr, settings
xhr
###
Load data from the server using a HTTP GET request.
@method get
@param {string} A string containing the URL to which the request is sent.
@param {string} [OPTIONAL] A plain object or string that is sent to the server with the request.
@param {string} [OPTIONAL] A callback function that is executed if the request succeeds.
@param {string} [OPTIONAL] The type of data expected from the server
###
$$.get = (url, data, success, dataType) ->
$$.ajax
url : url
data : data
success : success
dataType: dataType
###
Load data from the server using a HTTP POST request.
@method post
@param {string} A string containing the URL to which the request is sent.
@param {string} [OPTIONAL] A plain object or string that is sent to the server with the request.
@param {string} [OPTIONAL] A callback function that is executed if the request succeeds.
@param {string} [OPTIONAL] The type of data expected from the server
###
$$.post = (url, data, success, dataType) ->
_xhrForm("POST", url, data, success, dataType)
###
Load data from the server using a HTTP PPUTOST request.
@method put
@param {string} A string containing the URL to which the request is sent.
@param {string} [OPTIONAL] A plain object or string that is sent to the server with the request.
@param {string} [OPTIONAL] A callback function that is executed if the request succeeds.
@param {string} [OPTIONAL] The type of data expected from the server
###
$$.put = (url, data, success, dataType) ->
_xhrForm("PUT", url, data, success, dataType)
###
Load data from the server using a HTTP DELETE request.
@method delete
@param {string} A string containing the URL to which the request is sent.
@param {string} [OPTIONAL] A plain object or string that is sent to the server with the request.
@param {string} [OPTIONAL] A callback function that is executed if the request succeeds.
@param {string} [OPTIONAL] The type of data expected from the server
###
$$.delete = (url, data, success, dataType) ->
_xhrForm("DELETE", url, data, success, dataType)
###
Load JSON-encoded data from the server using a GET HTTP request.
@method json
@param {string} A string containing the URL to which the request is sent.
@param {string} [OPTIONAL] A plain object or string that is sent to the server with the request.
@param {string} [OPTIONAL] A callback function that is executed if the request succeeds.
###
$$.json = (url, data, success) ->
$$.ajax
url: url
data: data
success: success
###
Encode a set of form elements as a string for submission.
@method serialize
@param {object}
###
$$.serialize = (parameters, character="") ->
serialize = character
for parameter of parameters
if parameters.hasOwnProperty(parameter)
serialize += "&" if serialize isnt character
serialize += "#{encodeURIComponent parameter}=#{encodeURIComponent parameters[parameter]}"
(if (serialize is character) then "" else serialize)
# ---------------------------------------------------------------------------
# Private Methods
# ---------------------------------------------------------------------------
_jsonp = (settings) ->
if settings.async
callbackName = "jsonp" + (++JSONP_ID)
script = document.createElement("script")
xhr = abort: ->
$$(script).remove()
window[callbackName] = {} if callbackName of window
abortTimeout = undefined
window[callbackName] = (response) ->
clearTimeout abortTimeout
$$(script).remove()
delete window[callbackName]
_xhrSuccess response, xhr, settings
script.src = settings.url.replace(RegExp("=\\?"), "=" + callbackName)
$$("head").append script
if settings.timeout > 0
abortTimeout = setTimeout((-> _xhrTimeout xhr, settings), settings.timeout)
xhr
else
console.error "QuoJS.ajax: Unable to make jsonp synchronous call."
_xhrStatus = (xhr, settings) ->
if (xhr.status >= 200 and xhr.status < 300) or xhr.status is 0
if settings.async
_xhrSuccess _parseResponse(xhr, settings), xhr, settings
return
else
_xhrError "QuoJS.ajax: Unsuccesful request", xhr, settings
return
_xhrSuccess = (response, xhr, settings) ->
settings.success.call settings.context, response, xhr
return
_xhrError = (type, xhr, settings) ->
settings.error.call settings.context, type, xhr, settings
return
_xhrHeaders = (xhr, settings) ->
settings.headers["Content-Type"] = settings.contentType if settings.contentType
settings.headers["Accept"] = MIME_TYPES[settings.dataType] if settings.dataType
for header of settings.headers
xhr.setRequestHeader header, settings.headers[header]
return
_xhrTimeout = (xhr, settings) ->
xhr.onreadystatechange = {}
xhr.abort()
_xhrError "QuoJS.ajax: Timeout exceeded", xhr, settings
return
_xhrForm = (method, url, data, success, dataType) ->
$$.ajax
type : method
url : url
data : data
success : success
dataType : dataType
contentType : "application/x-www-form-urlencoded"
_isJsonP = (url) ->
RegExp("=\\?").test url
_parseResponse = (xhr, settings) ->
response = xhr
if xhr.responseText
if settings.dataType is DEFAULT.MIME
try
response = JSON.parse xhr.responseText
catch error
response = error
_xhrError "QuoJS.ajax: Parse Error", xhr, settings
response = xhr.responseXML if settings.dataType is "xml"
response
| true | ###
Basic Quo Module
@namespace Quo
@class Ajax
@author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
DEFAULT =
TYPE: "GET"
MIME: "json"
MIME_TYPES =
script: "text/javascript, application/javascript"
json : "application/json"
xml : "application/xml, text/xml"
html : "text/html"
text : "text/plain"
JSONP_ID = 0
$$.ajaxSettings =
type : DEFAULT.TYPE
async : true
success : {}
error : {}
context : null
dataType : DEFAULT.MIME
headers : {}
xhr : -> new window.XMLHttpRequest()
crossDomain : false
timeout : 0
###
Perform an asynchronous HTTP (Ajax) request.
@method ajax
@param {object} A set of key/value pairs that configure the Ajax request
###
$$.ajax = (options) ->
settings = $$.mix($$.ajaxSettings, options)
if settings.type is DEFAULT.TYPE
settings.url += $$.serialize(settings.data, "?")
else
settings.data = $$.serialize(settings.data)
return _jsonp(settings) if _isJsonP(settings.url)
xhr = settings.xhr()
xhr.onreadystatechange = ->
if xhr.readyState is 4
clearTimeout abortTimeout
_xhrStatus xhr, settings
xhr.open settings.type, settings.url, settings.async
_xhrHeaders xhr, settings
if settings.timeout > 0
abortTimeout = setTimeout((-> _xhrTimeout xhr, settings ), settings.timeout)
try
xhr.send settings.data
catch error
xhr = error
_xhrError "Resource not found", xhr, settings
xhr
###
Load data from the server using a HTTP GET request.
@method get
@param {string} A string containing the URL to which the request is sent.
@param {string} [OPTIONAL] A plain object or string that is sent to the server with the request.
@param {string} [OPTIONAL] A callback function that is executed if the request succeeds.
@param {string} [OPTIONAL] The type of data expected from the server
###
$$.get = (url, data, success, dataType) ->
$$.ajax
url : url
data : data
success : success
dataType: dataType
###
Load data from the server using a HTTP POST request.
@method post
@param {string} A string containing the URL to which the request is sent.
@param {string} [OPTIONAL] A plain object or string that is sent to the server with the request.
@param {string} [OPTIONAL] A callback function that is executed if the request succeeds.
@param {string} [OPTIONAL] The type of data expected from the server
###
$$.post = (url, data, success, dataType) ->
_xhrForm("POST", url, data, success, dataType)
###
Load data from the server using a HTTP PPUTOST request.
@method put
@param {string} A string containing the URL to which the request is sent.
@param {string} [OPTIONAL] A plain object or string that is sent to the server with the request.
@param {string} [OPTIONAL] A callback function that is executed if the request succeeds.
@param {string} [OPTIONAL] The type of data expected from the server
###
$$.put = (url, data, success, dataType) ->
_xhrForm("PUT", url, data, success, dataType)
###
Load data from the server using a HTTP DELETE request.
@method delete
@param {string} A string containing the URL to which the request is sent.
@param {string} [OPTIONAL] A plain object or string that is sent to the server with the request.
@param {string} [OPTIONAL] A callback function that is executed if the request succeeds.
@param {string} [OPTIONAL] The type of data expected from the server
###
$$.delete = (url, data, success, dataType) ->
_xhrForm("DELETE", url, data, success, dataType)
###
Load JSON-encoded data from the server using a GET HTTP request.
@method json
@param {string} A string containing the URL to which the request is sent.
@param {string} [OPTIONAL] A plain object or string that is sent to the server with the request.
@param {string} [OPTIONAL] A callback function that is executed if the request succeeds.
###
$$.json = (url, data, success) ->
$$.ajax
url: url
data: data
success: success
###
Encode a set of form elements as a string for submission.
@method serialize
@param {object}
###
$$.serialize = (parameters, character="") ->
serialize = character
for parameter of parameters
if parameters.hasOwnProperty(parameter)
serialize += "&" if serialize isnt character
serialize += "#{encodeURIComponent parameter}=#{encodeURIComponent parameters[parameter]}"
(if (serialize is character) then "" else serialize)
# ---------------------------------------------------------------------------
# Private Methods
# ---------------------------------------------------------------------------
_jsonp = (settings) ->
if settings.async
callbackName = "jsonp" + (++JSONP_ID)
script = document.createElement("script")
xhr = abort: ->
$$(script).remove()
window[callbackName] = {} if callbackName of window
abortTimeout = undefined
window[callbackName] = (response) ->
clearTimeout abortTimeout
$$(script).remove()
delete window[callbackName]
_xhrSuccess response, xhr, settings
script.src = settings.url.replace(RegExp("=\\?"), "=" + callbackName)
$$("head").append script
if settings.timeout > 0
abortTimeout = setTimeout((-> _xhrTimeout xhr, settings), settings.timeout)
xhr
else
console.error "QuoJS.ajax: Unable to make jsonp synchronous call."
_xhrStatus = (xhr, settings) ->
if (xhr.status >= 200 and xhr.status < 300) or xhr.status is 0
if settings.async
_xhrSuccess _parseResponse(xhr, settings), xhr, settings
return
else
_xhrError "QuoJS.ajax: Unsuccesful request", xhr, settings
return
_xhrSuccess = (response, xhr, settings) ->
settings.success.call settings.context, response, xhr
return
_xhrError = (type, xhr, settings) ->
settings.error.call settings.context, type, xhr, settings
return
_xhrHeaders = (xhr, settings) ->
settings.headers["Content-Type"] = settings.contentType if settings.contentType
settings.headers["Accept"] = MIME_TYPES[settings.dataType] if settings.dataType
for header of settings.headers
xhr.setRequestHeader header, settings.headers[header]
return
_xhrTimeout = (xhr, settings) ->
xhr.onreadystatechange = {}
xhr.abort()
_xhrError "QuoJS.ajax: Timeout exceeded", xhr, settings
return
_xhrForm = (method, url, data, success, dataType) ->
$$.ajax
type : method
url : url
data : data
success : success
dataType : dataType
contentType : "application/x-www-form-urlencoded"
_isJsonP = (url) ->
RegExp("=\\?").test url
_parseResponse = (xhr, settings) ->
response = xhr
if xhr.responseText
if settings.dataType is DEFAULT.MIME
try
response = JSON.parse xhr.responseText
catch error
response = error
_xhrError "QuoJS.ajax: Parse Error", xhr, settings
response = xhr.responseXML if settings.dataType is "xml"
response
|
[
{
"context": " '*.json' '!excluded/folder'\\n\\n\" +\n \"(C) 2012, Andrey Tarantsov -- https://github.com/andreyvit/pathspec.js\\n\\n\"\n",
"end": 801,
"score": 0.9998884797096252,
"start": 785,
"tag": "NAME",
"value": "Andrey Tarantsov"
},
{
"context": "\"(C) 2012, Andrey Tarants... | windows/backend/node_modules/livereload-core/node_modules/fsmonitor/node_modules/pathspec/lib/cli.coffee | Acidburn0zzz/LiveReload | 723 | Path = require 'path'
fs = require 'fs'
{ EventEmitter } = require 'events'
RelPathList = require './relpathlist'
TreeStream = require './treestream'
usage = ->
process.stderr.write "" +
"Similar to find(1), but uses pathspec.js for filtering.\n\n" +
"Usage: pathspec-find [-v|--verbose] /path/to/dir spec1 spec2...\n" +
" or: pathspec-find [-v|--verbose] - spec1 spec2...\n\n" +
"The first argument is the folder to look in. Pass a single dash ('-') to read the list of\n" +
"files from stdin, one path per line.\n\n" +
"The remaining arguments are .gitignore-style masks. At least one is required.\n\n" +
"Examples:\n" +
" pathspec-find . '*.json'\n" +
" find . | pathspec-find - '*.json' '!excluded/folder'\n\n" +
"(C) 2012, Andrey Tarantsov -- https://github.com/andreyvit/pathspec.js\n\n"
process.exit 41
createLineStream = require './util/linestream'
createStdinFileStream = (list) ->
result = new EventEmitter()
stream = createLineStream(process.stdin)
stream.on 'line', (line) ->
if list.matches(line)
result.emit 'file', line
stream.on 'end', ->
result.emit 'end'
process.stdin.resume()
return result
module.exports = (argv) ->
usage() if argv.length < 2 or '--help' in argv
verbose = no
absolute = no
argv = argv.filter (arg) ->
if arg in ['-v', '--verbose']
verbose = yes; return no
if arg in ['-a', '--absolute']
absolute = yes; return no
return yes
rootPath = argv.shift()
list = RelPathList.parse(argv)
process.stderr.write "Path List: #{list}\n" if verbose
if rootPath is '-'
stream = createStdinFileStream(list)
else
unless fs.statSync(rootPath)
process.stderr.write "Root path does not exist: #{rootPath}\n"
process.exit 2
stream = new TreeStream(list).visit(rootPath)
stream.on 'file', (path, absPath) ->
o = (if absolute then absPath else path)
process.stdout.write "#{o}\n"
if verbose
stream.on 'folder', (path, absPath) ->
o = (if absolute then absPath else path)
process.stderr.write "Folder: #{o}/\n"
stream.on 'error', (err) ->
process.stderr.write "Error: #{err.stack || err.message || err}\n"
process.exit 1
| 202374 | Path = require 'path'
fs = require 'fs'
{ EventEmitter } = require 'events'
RelPathList = require './relpathlist'
TreeStream = require './treestream'
usage = ->
process.stderr.write "" +
"Similar to find(1), but uses pathspec.js for filtering.\n\n" +
"Usage: pathspec-find [-v|--verbose] /path/to/dir spec1 spec2...\n" +
" or: pathspec-find [-v|--verbose] - spec1 spec2...\n\n" +
"The first argument is the folder to look in. Pass a single dash ('-') to read the list of\n" +
"files from stdin, one path per line.\n\n" +
"The remaining arguments are .gitignore-style masks. At least one is required.\n\n" +
"Examples:\n" +
" pathspec-find . '*.json'\n" +
" find . | pathspec-find - '*.json' '!excluded/folder'\n\n" +
"(C) 2012, <NAME> -- https://github.com/andreyvit/pathspec.js\n\n"
process.exit 41
createLineStream = require './util/linestream'
createStdinFileStream = (list) ->
result = new EventEmitter()
stream = createLineStream(process.stdin)
stream.on 'line', (line) ->
if list.matches(line)
result.emit 'file', line
stream.on 'end', ->
result.emit 'end'
process.stdin.resume()
return result
module.exports = (argv) ->
usage() if argv.length < 2 or '--help' in argv
verbose = no
absolute = no
argv = argv.filter (arg) ->
if arg in ['-v', '--verbose']
verbose = yes; return no
if arg in ['-a', '--absolute']
absolute = yes; return no
return yes
rootPath = argv.shift()
list = RelPathList.parse(argv)
process.stderr.write "Path List: #{list}\n" if verbose
if rootPath is '-'
stream = createStdinFileStream(list)
else
unless fs.statSync(rootPath)
process.stderr.write "Root path does not exist: #{rootPath}\n"
process.exit 2
stream = new TreeStream(list).visit(rootPath)
stream.on 'file', (path, absPath) ->
o = (if absolute then absPath else path)
process.stdout.write "#{o}\n"
if verbose
stream.on 'folder', (path, absPath) ->
o = (if absolute then absPath else path)
process.stderr.write "Folder: #{o}/\n"
stream.on 'error', (err) ->
process.stderr.write "Error: #{err.stack || err.message || err}\n"
process.exit 1
| true | Path = require 'path'
fs = require 'fs'
{ EventEmitter } = require 'events'
RelPathList = require './relpathlist'
TreeStream = require './treestream'
usage = ->
process.stderr.write "" +
"Similar to find(1), but uses pathspec.js for filtering.\n\n" +
"Usage: pathspec-find [-v|--verbose] /path/to/dir spec1 spec2...\n" +
" or: pathspec-find [-v|--verbose] - spec1 spec2...\n\n" +
"The first argument is the folder to look in. Pass a single dash ('-') to read the list of\n" +
"files from stdin, one path per line.\n\n" +
"The remaining arguments are .gitignore-style masks. At least one is required.\n\n" +
"Examples:\n" +
" pathspec-find . '*.json'\n" +
" find . | pathspec-find - '*.json' '!excluded/folder'\n\n" +
"(C) 2012, PI:NAME:<NAME>END_PI -- https://github.com/andreyvit/pathspec.js\n\n"
process.exit 41
createLineStream = require './util/linestream'
createStdinFileStream = (list) ->
result = new EventEmitter()
stream = createLineStream(process.stdin)
stream.on 'line', (line) ->
if list.matches(line)
result.emit 'file', line
stream.on 'end', ->
result.emit 'end'
process.stdin.resume()
return result
module.exports = (argv) ->
usage() if argv.length < 2 or '--help' in argv
verbose = no
absolute = no
argv = argv.filter (arg) ->
if arg in ['-v', '--verbose']
verbose = yes; return no
if arg in ['-a', '--absolute']
absolute = yes; return no
return yes
rootPath = argv.shift()
list = RelPathList.parse(argv)
process.stderr.write "Path List: #{list}\n" if verbose
if rootPath is '-'
stream = createStdinFileStream(list)
else
unless fs.statSync(rootPath)
process.stderr.write "Root path does not exist: #{rootPath}\n"
process.exit 2
stream = new TreeStream(list).visit(rootPath)
stream.on 'file', (path, absPath) ->
o = (if absolute then absPath else path)
process.stdout.write "#{o}\n"
if verbose
stream.on 'folder', (path, absPath) ->
o = (if absolute then absPath else path)
process.stderr.write "Folder: #{o}/\n"
stream.on 'error', (err) ->
process.stderr.write "Error: #{err.stack || err.message || err}\n"
process.exit 1
|
[
{
"context": "\n# Test CSV - Copyright David Worms <open@adaltas.com> (MIT Licensed)\n\nfs = require('",
"end": 35,
"score": 0.9998601675033569,
"start": 24,
"tag": "NAME",
"value": "David Worms"
},
{
"context": "\n# Test CSV - Copyright David Worms <open@adaltas.com> (MIT Licensed)\... | csv-import/node_modules/csv/test/buffer.coffee | codeforamerica/boston-scrapers | 1 |
# Test CSV - Copyright David Worms <open@adaltas.com> (MIT Licensed)
fs = require('fs')
assert = require('assert')
csv = require('csv')
module.exports =
'Buffer smaller than in': ->
csv()
.fromPath("#{__dirname}/buffer/smaller.in",
bufferSize: 1024
)
.toPath("#{__dirname}/buffer/smaller.tmp")
.transform( (data) ->
assert.ok data instanceof Object
data
)
.on('end', ->
assert.equal(
fs.readFileSync("#{__dirname}/buffer/smaller.out").toString(),
fs.readFileSync("#{__dirname}/buffer/smaller.tmp").toString()
)
fs.unlink "#{__dirname}/buffer/smaller.tmp"
)
'Buffer same as in': ->
csv()
.fromPath("#{__dirname}/buffer/same.in",
bufferSize: 1024
)
.toPath("#{__dirname}/buffer/same.tmp")
.transform( (data) ->
assert.ok data instanceof Object
data
)
.on('end', ->
assert.equal(
fs.readFileSync("#{__dirname}/buffer/same.out").toString(),
fs.readFileSync("#{__dirname}/buffer/same.tmp").toString()
)
fs.unlink "#{__dirname}/buffer/same.tmp"
)
| 164784 |
# Test CSV - Copyright <NAME> <<EMAIL>> (MIT Licensed)
fs = require('fs')
assert = require('assert')
csv = require('csv')
module.exports =
'Buffer smaller than in': ->
csv()
.fromPath("#{__dirname}/buffer/smaller.in",
bufferSize: 1024
)
.toPath("#{__dirname}/buffer/smaller.tmp")
.transform( (data) ->
assert.ok data instanceof Object
data
)
.on('end', ->
assert.equal(
fs.readFileSync("#{__dirname}/buffer/smaller.out").toString(),
fs.readFileSync("#{__dirname}/buffer/smaller.tmp").toString()
)
fs.unlink "#{__dirname}/buffer/smaller.tmp"
)
'Buffer same as in': ->
csv()
.fromPath("#{__dirname}/buffer/same.in",
bufferSize: 1024
)
.toPath("#{__dirname}/buffer/same.tmp")
.transform( (data) ->
assert.ok data instanceof Object
data
)
.on('end', ->
assert.equal(
fs.readFileSync("#{__dirname}/buffer/same.out").toString(),
fs.readFileSync("#{__dirname}/buffer/same.tmp").toString()
)
fs.unlink "#{__dirname}/buffer/same.tmp"
)
| true |
# Test CSV - Copyright PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> (MIT Licensed)
fs = require('fs')
assert = require('assert')
csv = require('csv')
module.exports =
'Buffer smaller than in': ->
csv()
.fromPath("#{__dirname}/buffer/smaller.in",
bufferSize: 1024
)
.toPath("#{__dirname}/buffer/smaller.tmp")
.transform( (data) ->
assert.ok data instanceof Object
data
)
.on('end', ->
assert.equal(
fs.readFileSync("#{__dirname}/buffer/smaller.out").toString(),
fs.readFileSync("#{__dirname}/buffer/smaller.tmp").toString()
)
fs.unlink "#{__dirname}/buffer/smaller.tmp"
)
'Buffer same as in': ->
csv()
.fromPath("#{__dirname}/buffer/same.in",
bufferSize: 1024
)
.toPath("#{__dirname}/buffer/same.tmp")
.transform( (data) ->
assert.ok data instanceof Object
data
)
.on('end', ->
assert.equal(
fs.readFileSync("#{__dirname}/buffer/same.out").toString(),
fs.readFileSync("#{__dirname}/buffer/same.tmp").toString()
)
fs.unlink "#{__dirname}/buffer/same.tmp"
)
|
[
{
"context": "###\n# Copyright (C) 2014 Andrey Antukh <niwi@niwi.be>\n# Copyright (C) 2014 Jesús Espino ",
"end": 38,
"score": 0.9998875856399536,
"start": 25,
"tag": "NAME",
"value": "Andrey Antukh"
},
{
"context": "###\n# Copyright (C) 2014 Andrey Antukh <niwi@niwi.be>\n# Copyright... | public/taiga-front/app/coffee/modules/common/wisiwyg.coffee | mabotech/maboss | 0 | ###
# Copyright (C) 2014 Andrey Antukh <niwi@niwi.be>
# Copyright (C) 2014 Jesús Espino Garcia <jespinog@gmail.com>
# Copyright (C) 2014 David Barragán Merino <bameda@dbarragan.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# File: modules/common/wisiwyg.coffee
###
taiga = @.taiga
bindOnce = @.taiga.bindOnce
module = angular.module("taigaCommon")
#############################################################################
## WYSIWYG markitup editor directive
#############################################################################
tgMarkitupDirective = ($rootscope, $rs, $tr, $selectedText) ->
previewTemplate = _.template("""
<div class="preview">
<div class="actions">
<a href="#" title="Edit" class="icon icon-edit edit"></a>
</div>
<div class="content wysiwyg">
<%= data %>
</div>
</div>
""")
link = ($scope, $el, $attrs, $model) ->
element = angular.element($el)
previewDomNode = $("<div/>", {class: "preview"})
#openHelp = ->
# window.open($rootscope.urls.wikiHelpUrl(), "_blank")
closePreviewMode = ->
element.parents(".markdown").find(".preview").remove()
element.parents(".markItUp").show()
$scope.$on "markdown-editor:submit", ->
closePreviewMode()
preview = ->
markdownDomNode = element.parents(".markdown")
markItUpDomNode = element.parents(".markItUp")
$rs.mdrender.render($scope.projectId, $model.$modelValue).then (data) ->
markdownDomNode.append(previewTemplate({data: data.data}))
markItUpDomNode.hide()
markdown = element.closest(".markdown")
markdown.on "mouseup.preview", ".preview", (event) ->
event.preventDefault()
target = angular.element(event.target)
if !target.is('a') and $selectedText.get().length
return
markdown.off(".preview")
closePreviewMode()
markdownCaretPositon = false
setCaretPosition = (elm, caretPos) ->
if elm.createTextRange
range = elm.createTextRange()
range.move("character", caretPos)
range.select()
else if elm.selectionStart
elm.focus()
elm.setSelectionRange(caretPos, caretPos)
removeEmptyLine = (textarea, line, currentCaretPosition) ->
lines = textarea.value.split("\n")
removedLineLength = lines[line].length
lines[line] = ""
textarea.value = lines.join("\n")
#return the new position
return currentCaretPosition - removedLineLength + 1
markdownSettings =
nameSpace: "markdown"
onShiftEnter: {keepDefault:false, openWith:"\n\n"}
onEnter:
keepDefault: false
replaceWith: (data) =>
lines = data.textarea.value.split("\n")
cursorLine = data.textarea.value[0..(data.caretPosition - 1)].split("\n").length
newLineContent = data.textarea.value[data.caretPosition..].split("\n")[0]
lastLine = lines[cursorLine - 1]
# unordered list -
match = lastLine.match /^(\s*- ).*/
if match
emptyListItem = lastLine.match /^(\s*)\-\s$/
if emptyListItem
markdownCaretPositon = removeEmptyLine(data.textarea, lines.length - 1, data.caretPosition)
else
breakLineAtBeginning = newLineContent.match /^(\s*)\-\s/
if !breakLineAtBeginning
return "\n#{match[1]}" if match
# unordered list *
match = lastLine.match /^(\s*\* ).*/
if match
emptyListItem = lastLine.match /^(\s*\* )$/
if emptyListItem
markdownCaretPositon = removeEmptyLine(data.textarea, lines.length - 1, data.caretPosition)
else
breakLineAtBeginning = newLineContent.match /^(\s*)\*\s/
if !breakLineAtBeginning
return "\n#{match[1]}" if match
# ordered list
match = lastLine.match /^(\s*)(\d+)\.\s/
if match
emptyListItem = lastLine.match /^(\s*)(\d+)\.\s$/
if emptyListItem
markdownCaretPositon = removeEmptyLine(data.textarea, lines.length - 1, data.caretPosition)
else
breakLineAtBeginning = newLineContent.match /^(\s*)(\d+)\.\s/
if !breakLineAtBeginning
return "\n#{match[1] + (parseInt(match[2], 10) + 1)}. "
return "\n"
afterInsert: (data) ->
# Calculate the scroll position
if markdownCaretPositon
setCaretPosition(data.textarea, markdownCaretPositon)
caretPosition = markdownCaretPositon
markdownCaretPositon = false
else
caretPosition = data.caretPosition
totalLines = data.textarea.value.split("\n").length
line = data.textarea.value[0..(caretPosition - 1)].split("\n").length
scrollRelation = line / totalLines
$el.scrollTop((scrollRelation * $el[0].scrollHeight) - ($el.height() / 2))
markupSet: [
{
name: $tr.t("markdown-editor.heading-1")
key: "1"
placeHolder: $tr.t("markdown-editor.placeholder")
closeWith: (markItUp) -> markdownTitle(markItUp, "=")
},
{
name: $tr.t("markdown-editor.heading-2")
key: "2"
placeHolder: $tr.t("markdown-editor.placeholder")
closeWith: (markItUp) -> markdownTitle(markItUp, "-")
},
{
name: $tr.t("markdown-editor.heading-3")
key: "3"
openWith: "### "
placeHolder: $tr.t("markdown-editor.placeholder")
},
{
separator: "---------------"
},
{
name: $tr.t("markdown-editor.bold")
key: "B"
openWith: "**"
closeWith: "**"
},
{
name: $tr.t("markdown-editor.italic")
key: "I"
openWith: "_"
closeWith: "_"
},
{
name: $tr.t("markdown-editor.strike")
key: "S"
openWith: "~~"
closeWith: "~~"
},
{
separator: "---------------"
},
{
name: $tr.t("markdown-editor.bulleted-list")
openWith: "- "
},
{
name: $tr.t("markdown-editor.numeric-list")
openWith: (markItUp) -> markItUp.line+". "
},
{
separator: "---------------"
},
{
name: $tr.t("markdown-editor.picture")
key: "P"
replaceWith: '![[![Alternative text]!]]([![Url:!:http://]!] "[![Title]!]")'
},
{
name: $tr.t("markdown-editor.link")
key: "L"
openWith: "["
closeWith: ']([![Url:!:http://]!] "[![Title]!]")'
placeHolder: $tr.t("markdown-editor.link-placeholder")
},
{
separator: "---------------"
},
{
name: $tr.t("markdown-editor.quotes")
openWith: "> "
},
{
name: $tr.t("markdown-editor.code-block")
openWith: "```\n"
closeWith: "\n```"
},
{
separator: "---------------"
},
{
name: $tr.t("markdown-editor.preview")
call: preview
className: "preview-icon"
},
# {
# separator: "---------------"
# },
# {
# name: $tr.t("markdown-editor.help")
# call: openHelp
# className: "help"
# }
]
afterInsert: (event) ->
target = angular.element(event.textarea)
$model.$setViewValue(target.val())
markdownTitle = (markItUp, char) ->
heading = ""
n = $.trim(markItUp.selection or markItUp.placeHolder).length
for i in [0..n-1]
heading += char
return "\n"+heading+"\n"
element.markItUp(markdownSettings)
element.on "keypress", (event) ->
$scope.$apply()
$scope.$on "$destroy", ->
$el.off()
return {link:link, require:"ngModel"}
module.directive("tgMarkitup", ["$rootScope", "$tgResources", "$tgI18n", "$selectedText", tgMarkitupDirective])
| 107786 | ###
# Copyright (C) 2014 <NAME> <<EMAIL>>
# Copyright (C) 2014 <NAME> <<EMAIL>>
# Copyright (C) 2014 <NAME> <<EMAIL>>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# File: modules/common/wisiwyg.coffee
###
taiga = @.taiga
bindOnce = @.taiga.bindOnce
module = angular.module("taigaCommon")
#############################################################################
## WYSIWYG markitup editor directive
#############################################################################
tgMarkitupDirective = ($rootscope, $rs, $tr, $selectedText) ->
previewTemplate = _.template("""
<div class="preview">
<div class="actions">
<a href="#" title="Edit" class="icon icon-edit edit"></a>
</div>
<div class="content wysiwyg">
<%= data %>
</div>
</div>
""")
link = ($scope, $el, $attrs, $model) ->
element = angular.element($el)
previewDomNode = $("<div/>", {class: "preview"})
#openHelp = ->
# window.open($rootscope.urls.wikiHelpUrl(), "_blank")
closePreviewMode = ->
element.parents(".markdown").find(".preview").remove()
element.parents(".markItUp").show()
$scope.$on "markdown-editor:submit", ->
closePreviewMode()
preview = ->
markdownDomNode = element.parents(".markdown")
markItUpDomNode = element.parents(".markItUp")
$rs.mdrender.render($scope.projectId, $model.$modelValue).then (data) ->
markdownDomNode.append(previewTemplate({data: data.data}))
markItUpDomNode.hide()
markdown = element.closest(".markdown")
markdown.on "mouseup.preview", ".preview", (event) ->
event.preventDefault()
target = angular.element(event.target)
if !target.is('a') and $selectedText.get().length
return
markdown.off(".preview")
closePreviewMode()
markdownCaretPositon = false
setCaretPosition = (elm, caretPos) ->
if elm.createTextRange
range = elm.createTextRange()
range.move("character", caretPos)
range.select()
else if elm.selectionStart
elm.focus()
elm.setSelectionRange(caretPos, caretPos)
removeEmptyLine = (textarea, line, currentCaretPosition) ->
lines = textarea.value.split("\n")
removedLineLength = lines[line].length
lines[line] = ""
textarea.value = lines.join("\n")
#return the new position
return currentCaretPosition - removedLineLength + 1
markdownSettings =
nameSpace: "markdown"
onShiftEnter: {keepDefault:false, openWith:"\n\n"}
onEnter:
keepDefault: false
replaceWith: (data) =>
lines = data.textarea.value.split("\n")
cursorLine = data.textarea.value[0..(data.caretPosition - 1)].split("\n").length
newLineContent = data.textarea.value[data.caretPosition..].split("\n")[0]
lastLine = lines[cursorLine - 1]
# unordered list -
match = lastLine.match /^(\s*- ).*/
if match
emptyListItem = lastLine.match /^(\s*)\-\s$/
if emptyListItem
markdownCaretPositon = removeEmptyLine(data.textarea, lines.length - 1, data.caretPosition)
else
breakLineAtBeginning = newLineContent.match /^(\s*)\-\s/
if !breakLineAtBeginning
return "\n#{match[1]}" if match
# unordered list *
match = lastLine.match /^(\s*\* ).*/
if match
emptyListItem = lastLine.match /^(\s*\* )$/
if emptyListItem
markdownCaretPositon = removeEmptyLine(data.textarea, lines.length - 1, data.caretPosition)
else
breakLineAtBeginning = newLineContent.match /^(\s*)\*\s/
if !breakLineAtBeginning
return "\n#{match[1]}" if match
# ordered list
match = lastLine.match /^(\s*)(\d+)\.\s/
if match
emptyListItem = lastLine.match /^(\s*)(\d+)\.\s$/
if emptyListItem
markdownCaretPositon = removeEmptyLine(data.textarea, lines.length - 1, data.caretPosition)
else
breakLineAtBeginning = newLineContent.match /^(\s*)(\d+)\.\s/
if !breakLineAtBeginning
return "\n#{match[1] + (parseInt(match[2], 10) + 1)}. "
return "\n"
afterInsert: (data) ->
# Calculate the scroll position
if markdownCaretPositon
setCaretPosition(data.textarea, markdownCaretPositon)
caretPosition = markdownCaretPositon
markdownCaretPositon = false
else
caretPosition = data.caretPosition
totalLines = data.textarea.value.split("\n").length
line = data.textarea.value[0..(caretPosition - 1)].split("\n").length
scrollRelation = line / totalLines
$el.scrollTop((scrollRelation * $el[0].scrollHeight) - ($el.height() / 2))
markupSet: [
{
name: $tr.t("markdown-editor.heading-1")
key: "1"
placeHolder: $tr.t("markdown-editor.placeholder")
closeWith: (markItUp) -> markdownTitle(markItUp, "=")
},
{
name: $tr.t("markdown-editor.heading-2")
key: "2"
placeHolder: $tr.t("markdown-editor.placeholder")
closeWith: (markItUp) -> markdownTitle(markItUp, "-")
},
{
name: $tr.t("markdown-editor.heading-3")
key: "3"
openWith: "### "
placeHolder: $tr.t("markdown-editor.placeholder")
},
{
separator: "---------------"
},
{
name: $tr.t("markdown-editor.bold")
key: "B"
openWith: "**"
closeWith: "**"
},
{
name: $tr.t("markdown-editor.italic")
key: "I"
openWith: "_"
closeWith: "_"
},
{
name: $tr.t("markdown-editor.strike")
key: "S"
openWith: "~~"
closeWith: "~~"
},
{
separator: "---------------"
},
{
name: $tr.t("markdown-editor.bulleted-list")
openWith: "- "
},
{
name: $tr.t("markdown-editor.numeric-list")
openWith: (markItUp) -> markItUp.line+". "
},
{
separator: "---------------"
},
{
name: $tr.t("markdown-editor.picture")
key: "P"
replaceWith: '![[![Alternative text]!]]([![Url:!:http://]!] "[![Title]!]")'
},
{
name: $tr.t("markdown-editor.link")
key: "L"
openWith: "["
closeWith: ']([![Url:!:http://]!] "[![Title]!]")'
placeHolder: $tr.t("markdown-editor.link-placeholder")
},
{
separator: "---------------"
},
{
name: $tr.t("markdown-editor.quotes")
openWith: "> "
},
{
name: $tr.t("markdown-editor.code-block")
openWith: "```\n"
closeWith: "\n```"
},
{
separator: "---------------"
},
{
name: $tr.t("markdown-editor.preview")
call: preview
className: "preview-icon"
},
# {
# separator: "---------------"
# },
# {
# name: $tr.t("markdown-editor.help")
# call: openHelp
# className: "help"
# }
]
afterInsert: (event) ->
target = angular.element(event.textarea)
$model.$setViewValue(target.val())
markdownTitle = (markItUp, char) ->
heading = ""
n = $.trim(markItUp.selection or markItUp.placeHolder).length
for i in [0..n-1]
heading += char
return "\n"+heading+"\n"
element.markItUp(markdownSettings)
element.on "keypress", (event) ->
$scope.$apply()
$scope.$on "$destroy", ->
$el.off()
return {link:link, require:"ngModel"}
module.directive("tgMarkitup", ["$rootScope", "$tgResources", "$tgI18n", "$selectedText", tgMarkitupDirective])
| true | ###
# Copyright (C) 2014 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
# Copyright (C) 2014 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
# Copyright (C) 2014 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# File: modules/common/wisiwyg.coffee
###
taiga = @.taiga
bindOnce = @.taiga.bindOnce
module = angular.module("taigaCommon")
#############################################################################
## WYSIWYG markitup editor directive
#############################################################################
tgMarkitupDirective = ($rootscope, $rs, $tr, $selectedText) ->
previewTemplate = _.template("""
<div class="preview">
<div class="actions">
<a href="#" title="Edit" class="icon icon-edit edit"></a>
</div>
<div class="content wysiwyg">
<%= data %>
</div>
</div>
""")
link = ($scope, $el, $attrs, $model) ->
element = angular.element($el)
previewDomNode = $("<div/>", {class: "preview"})
#openHelp = ->
# window.open($rootscope.urls.wikiHelpUrl(), "_blank")
closePreviewMode = ->
element.parents(".markdown").find(".preview").remove()
element.parents(".markItUp").show()
$scope.$on "markdown-editor:submit", ->
closePreviewMode()
preview = ->
markdownDomNode = element.parents(".markdown")
markItUpDomNode = element.parents(".markItUp")
$rs.mdrender.render($scope.projectId, $model.$modelValue).then (data) ->
markdownDomNode.append(previewTemplate({data: data.data}))
markItUpDomNode.hide()
markdown = element.closest(".markdown")
markdown.on "mouseup.preview", ".preview", (event) ->
event.preventDefault()
target = angular.element(event.target)
if !target.is('a') and $selectedText.get().length
return
markdown.off(".preview")
closePreviewMode()
markdownCaretPositon = false
setCaretPosition = (elm, caretPos) ->
if elm.createTextRange
range = elm.createTextRange()
range.move("character", caretPos)
range.select()
else if elm.selectionStart
elm.focus()
elm.setSelectionRange(caretPos, caretPos)
removeEmptyLine = (textarea, line, currentCaretPosition) ->
lines = textarea.value.split("\n")
removedLineLength = lines[line].length
lines[line] = ""
textarea.value = lines.join("\n")
#return the new position
return currentCaretPosition - removedLineLength + 1
markdownSettings =
nameSpace: "markdown"
onShiftEnter: {keepDefault:false, openWith:"\n\n"}
onEnter:
keepDefault: false
replaceWith: (data) =>
lines = data.textarea.value.split("\n")
cursorLine = data.textarea.value[0..(data.caretPosition - 1)].split("\n").length
newLineContent = data.textarea.value[data.caretPosition..].split("\n")[0]
lastLine = lines[cursorLine - 1]
# unordered list -
match = lastLine.match /^(\s*- ).*/
if match
emptyListItem = lastLine.match /^(\s*)\-\s$/
if emptyListItem
markdownCaretPositon = removeEmptyLine(data.textarea, lines.length - 1, data.caretPosition)
else
breakLineAtBeginning = newLineContent.match /^(\s*)\-\s/
if !breakLineAtBeginning
return "\n#{match[1]}" if match
# unordered list *
match = lastLine.match /^(\s*\* ).*/
if match
emptyListItem = lastLine.match /^(\s*\* )$/
if emptyListItem
markdownCaretPositon = removeEmptyLine(data.textarea, lines.length - 1, data.caretPosition)
else
breakLineAtBeginning = newLineContent.match /^(\s*)\*\s/
if !breakLineAtBeginning
return "\n#{match[1]}" if match
# ordered list
match = lastLine.match /^(\s*)(\d+)\.\s/
if match
emptyListItem = lastLine.match /^(\s*)(\d+)\.\s$/
if emptyListItem
markdownCaretPositon = removeEmptyLine(data.textarea, lines.length - 1, data.caretPosition)
else
breakLineAtBeginning = newLineContent.match /^(\s*)(\d+)\.\s/
if !breakLineAtBeginning
return "\n#{match[1] + (parseInt(match[2], 10) + 1)}. "
return "\n"
afterInsert: (data) ->
# Calculate the scroll position
if markdownCaretPositon
setCaretPosition(data.textarea, markdownCaretPositon)
caretPosition = markdownCaretPositon
markdownCaretPositon = false
else
caretPosition = data.caretPosition
totalLines = data.textarea.value.split("\n").length
line = data.textarea.value[0..(caretPosition - 1)].split("\n").length
scrollRelation = line / totalLines
$el.scrollTop((scrollRelation * $el[0].scrollHeight) - ($el.height() / 2))
markupSet: [
{
name: $tr.t("markdown-editor.heading-1")
key: "1"
placeHolder: $tr.t("markdown-editor.placeholder")
closeWith: (markItUp) -> markdownTitle(markItUp, "=")
},
{
name: $tr.t("markdown-editor.heading-2")
key: "2"
placeHolder: $tr.t("markdown-editor.placeholder")
closeWith: (markItUp) -> markdownTitle(markItUp, "-")
},
{
name: $tr.t("markdown-editor.heading-3")
key: "3"
openWith: "### "
placeHolder: $tr.t("markdown-editor.placeholder")
},
{
separator: "---------------"
},
{
name: $tr.t("markdown-editor.bold")
key: "B"
openWith: "**"
closeWith: "**"
},
{
name: $tr.t("markdown-editor.italic")
key: "I"
openWith: "_"
closeWith: "_"
},
{
name: $tr.t("markdown-editor.strike")
key: "S"
openWith: "~~"
closeWith: "~~"
},
{
separator: "---------------"
},
{
name: $tr.t("markdown-editor.bulleted-list")
openWith: "- "
},
{
name: $tr.t("markdown-editor.numeric-list")
openWith: (markItUp) -> markItUp.line+". "
},
{
separator: "---------------"
},
{
name: $tr.t("markdown-editor.picture")
key: "P"
replaceWith: '![[![Alternative text]!]]([![Url:!:http://]!] "[![Title]!]")'
},
{
name: $tr.t("markdown-editor.link")
key: "L"
openWith: "["
closeWith: ']([![Url:!:http://]!] "[![Title]!]")'
placeHolder: $tr.t("markdown-editor.link-placeholder")
},
{
separator: "---------------"
},
{
name: $tr.t("markdown-editor.quotes")
openWith: "> "
},
{
name: $tr.t("markdown-editor.code-block")
openWith: "```\n"
closeWith: "\n```"
},
{
separator: "---------------"
},
{
name: $tr.t("markdown-editor.preview")
call: preview
className: "preview-icon"
},
# {
# separator: "---------------"
# },
# {
# name: $tr.t("markdown-editor.help")
# call: openHelp
# className: "help"
# }
]
afterInsert: (event) ->
target = angular.element(event.textarea)
$model.$setViewValue(target.val())
markdownTitle = (markItUp, char) ->
heading = ""
n = $.trim(markItUp.selection or markItUp.placeHolder).length
for i in [0..n-1]
heading += char
return "\n"+heading+"\n"
element.markItUp(markdownSettings)
element.on "keypress", (event) ->
$scope.$apply()
$scope.$on "$destroy", ->
$el.off()
return {link:link, require:"ngModel"}
module.directive("tgMarkitup", ["$rootScope", "$tgResources", "$tgI18n", "$selectedText", tgMarkitupDirective])
|
[
{
"context": "##############################################\n#\n# Markus 1/23/2017\n#\n#####################################",
"end": 75,
"score": 0.9984375238418579,
"start": 69,
"tag": "NAME",
"value": "Markus"
},
{
"context": "\n\n\t\tuser =\n\t\t\temail: invitation.email\n\t\t\t... | server/methods/onboarding.coffee | MooqitaSFH/worklearn | 0 | ################################################################
#
# Markus 1/23/2017
#
################################################################
################################################################
Meteor.methods
onboard_organization: () ->
user = Meteor.user()
if not user
throw new Meteor.Error "Not authorized"
org = get_my_document Organizations
if not org
org_id = gen_organization()
else
org_id = org._id
return org_id
onboard_job: (data, org_id) ->
pattern =
role:Match.Optional(String)
idea:Match.Optional(Number)
team:Match.Optional(Number)
process:Match.Optional(Number)
strategic:Match.Optional(Number)
contributor:Match.Optional(Number)
social: Match.Optional(Number)
check data, pattern
user = Meteor.user()
if not user
throw new Meteor.Error "Not authorized"
org = Organizations.findOne(org_id)
if not org
org_id = gen_organization()
else
org_id = org._id
data["organization_id"] = org_id
job_id = gen_job data
return job_id
add_job: (organization_id) ->
check organization_id, String
user = Meteor.user()
if not user
throw new Meteor.Error "Not authorized"
job =
organization_id: organization_id
job_id = gen_job job
return job_id
find_user: (mail) ->
user_id = Meteor.userId()
if not user_id
throw new Meteor.Error "Not authorised"
check mail, String
if mail.length < 4
return []
reg = new RegExp mail
filter =
"emails.address":
$regex: reg
options =
skip: 0
limit: 10
fields:
emails: 1
crs = Meteor.users.find filter, options
return crs.fetch()
invite_team_member: (organization_id, emails) ->
check emails, [String]
check organization_id, String
host_id = Meteor.userId()
if not host_id
throw new Meteor.Error "Not authorised"
if not is_owner Organizations, organization_id, host_id
throw new Meteor.Error "Not authorised"
ids = []
host_name = get_profile_name undefined, false, false
for email in emails
invitation_id = gen_invitation organization_id, email, host_id, host_name
ids.push invitation_id
return ids
register_to_accept_invitation: (invitation_id, password) ->
pattern =
algorithm: String
digest: String
check password, pattern
invitation = Invitations.findOne invitation_id
if not invitation
throw new Meteor.error "Invitation not found."
organization = Organizations.findOne invitation.organization_id
host_id = invitation.host_id
if not is_owner Organizations, organization._id, host_id
throw new Meteor.Error "The host is not authorized to invite members."
user =
email: invitation.email
password: password
gen_user user, "employee"
org_id = accept_invitation invitation_id
return org_id
accept_invitation: (invitation_id) ->
user_id = Meteor.userId()
if not user_id
throw new Meteor.Error "Not authorised"
check invitation_id, String
org_id = accept_invitation invitation_id
return org_id
| 55542 | ################################################################
#
# <NAME> 1/23/2017
#
################################################################
################################################################
Meteor.methods
onboard_organization: () ->
user = Meteor.user()
if not user
throw new Meteor.Error "Not authorized"
org = get_my_document Organizations
if not org
org_id = gen_organization()
else
org_id = org._id
return org_id
onboard_job: (data, org_id) ->
pattern =
role:Match.Optional(String)
idea:Match.Optional(Number)
team:Match.Optional(Number)
process:Match.Optional(Number)
strategic:Match.Optional(Number)
contributor:Match.Optional(Number)
social: Match.Optional(Number)
check data, pattern
user = Meteor.user()
if not user
throw new Meteor.Error "Not authorized"
org = Organizations.findOne(org_id)
if not org
org_id = gen_organization()
else
org_id = org._id
data["organization_id"] = org_id
job_id = gen_job data
return job_id
add_job: (organization_id) ->
check organization_id, String
user = Meteor.user()
if not user
throw new Meteor.Error "Not authorized"
job =
organization_id: organization_id
job_id = gen_job job
return job_id
find_user: (mail) ->
user_id = Meteor.userId()
if not user_id
throw new Meteor.Error "Not authorised"
check mail, String
if mail.length < 4
return []
reg = new RegExp mail
filter =
"emails.address":
$regex: reg
options =
skip: 0
limit: 10
fields:
emails: 1
crs = Meteor.users.find filter, options
return crs.fetch()
invite_team_member: (organization_id, emails) ->
check emails, [String]
check organization_id, String
host_id = Meteor.userId()
if not host_id
throw new Meteor.Error "Not authorised"
if not is_owner Organizations, organization_id, host_id
throw new Meteor.Error "Not authorised"
ids = []
host_name = get_profile_name undefined, false, false
for email in emails
invitation_id = gen_invitation organization_id, email, host_id, host_name
ids.push invitation_id
return ids
register_to_accept_invitation: (invitation_id, password) ->
pattern =
algorithm: String
digest: String
check password, pattern
invitation = Invitations.findOne invitation_id
if not invitation
throw new Meteor.error "Invitation not found."
organization = Organizations.findOne invitation.organization_id
host_id = invitation.host_id
if not is_owner Organizations, organization._id, host_id
throw new Meteor.Error "The host is not authorized to invite members."
user =
email: invitation.email
password: <PASSWORD>
gen_user user, "employee"
org_id = accept_invitation invitation_id
return org_id
accept_invitation: (invitation_id) ->
user_id = Meteor.userId()
if not user_id
throw new Meteor.Error "Not authorised"
check invitation_id, String
org_id = accept_invitation invitation_id
return org_id
| true | ################################################################
#
# PI:NAME:<NAME>END_PI 1/23/2017
#
################################################################
################################################################
Meteor.methods
onboard_organization: () ->
user = Meteor.user()
if not user
throw new Meteor.Error "Not authorized"
org = get_my_document Organizations
if not org
org_id = gen_organization()
else
org_id = org._id
return org_id
onboard_job: (data, org_id) ->
pattern =
role:Match.Optional(String)
idea:Match.Optional(Number)
team:Match.Optional(Number)
process:Match.Optional(Number)
strategic:Match.Optional(Number)
contributor:Match.Optional(Number)
social: Match.Optional(Number)
check data, pattern
user = Meteor.user()
if not user
throw new Meteor.Error "Not authorized"
org = Organizations.findOne(org_id)
if not org
org_id = gen_organization()
else
org_id = org._id
data["organization_id"] = org_id
job_id = gen_job data
return job_id
add_job: (organization_id) ->
check organization_id, String
user = Meteor.user()
if not user
throw new Meteor.Error "Not authorized"
job =
organization_id: organization_id
job_id = gen_job job
return job_id
find_user: (mail) ->
user_id = Meteor.userId()
if not user_id
throw new Meteor.Error "Not authorised"
check mail, String
if mail.length < 4
return []
reg = new RegExp mail
filter =
"emails.address":
$regex: reg
options =
skip: 0
limit: 10
fields:
emails: 1
crs = Meteor.users.find filter, options
return crs.fetch()
invite_team_member: (organization_id, emails) ->
check emails, [String]
check organization_id, String
host_id = Meteor.userId()
if not host_id
throw new Meteor.Error "Not authorised"
if not is_owner Organizations, organization_id, host_id
throw new Meteor.Error "Not authorised"
ids = []
host_name = get_profile_name undefined, false, false
for email in emails
invitation_id = gen_invitation organization_id, email, host_id, host_name
ids.push invitation_id
return ids
register_to_accept_invitation: (invitation_id, password) ->
pattern =
algorithm: String
digest: String
check password, pattern
invitation = Invitations.findOne invitation_id
if not invitation
throw new Meteor.error "Invitation not found."
organization = Organizations.findOne invitation.organization_id
host_id = invitation.host_id
if not is_owner Organizations, organization._id, host_id
throw new Meteor.Error "The host is not authorized to invite members."
user =
email: invitation.email
password: PI:PASSWORD:<PASSWORD>END_PI
gen_user user, "employee"
org_id = accept_invitation invitation_id
return org_id
accept_invitation: (invitation_id) ->
user_id = Meteor.userId()
if not user_id
throw new Meteor.Error "Not authorised"
check invitation_id, String
org_id = accept_invitation invitation_id
return org_id
|
[
{
"context": "rn unless @supermodel.finished()\n\n keys = (item.id for item in @items.models)\n itemMap = _.zipObj",
"end": 1972,
"score": 0.7941579818725586,
"start": 1970,
"tag": "KEY",
"value": "id"
}
] | app/views/game-menu/InventoryView.coffee | flowabuse/codecombat | 0 | CocoView = require 'views/kinds/CocoView'
template = require 'templates/game-menu/inventory-view'
{me} = require 'lib/auth'
ThangType = require 'models/ThangType'
CocoCollection = require 'collections/CocoCollection'
ItemView = require './ItemView'
module.exports = class InventoryView extends CocoView
id: 'inventory-view'
className: 'tab-pane'
template: template
slots: ['head', 'eyes', 'neck', 'torso', 'wrists', 'gloves', 'left-ring', 'right-ring', 'right-hand', 'left-hand', 'waist', 'feet', 'spellbook', 'programming-book', 'pet', 'minion', 'misc-0', 'misc-1', 'misc-2', 'misc-3', 'misc-4']
events:
'click .item-slot': 'onItemSlotClick'
'click #available-equipment .list-group-item': 'onAvailableItemClick'
'dblclick #available-equipment .list-group-item': 'onAvailableItemDoubleClick'
'dblclick .item-slot .item-view': 'onEquippedItemDoubleClick'
'click #swap-button': 'onClickSwapButton'
shortcuts:
'esc': 'clearSelection'
initialize: (options) ->
super(arguments...)
@items = new CocoCollection([], {model: ThangType})
@equipment = options.equipment or @options.session?.get('heroConfig')?.inventory or {}
@items.url = '/db/thang.type?view=items&project=name,description,components,original'
@supermodel.loadCollection(@items, 'items')
onLoaded: ->
super()
getRenderData: (context={}) ->
context = super(context)
context.equipped = _.values(@equipment)
context.items = @items.models
for item in @items.models
item.classes = item.getAllowedSlots()
item.classes.push 'equipped' if item.get('original') in context.equipped
context.slots = @slots
context.equipment = _.clone @equipment
for slot, itemOriginal of context.equipment
item = _.find @items.models, (item) -> item.get('original') is itemOriginal
context.equipment[slot] = item
context
afterRender: ->
super()
return unless @supermodel.finished()
keys = (item.id for item in @items.models)
itemMap = _.zipObject keys, @items.models
# Fill in equipped items
for slottedItemStub in @$el.find('.replace-me')
itemID = $(slottedItemStub).data('item-id')
item = itemMap[itemID]
itemView = new ItemView({item: item, includes: {name: true}})
itemView.render()
$(slottedItemStub).replaceWith(itemView.$el)
@registerSubView(itemView)
for availableItemEl in @$el.find('#available-equipment .list-group-item')
itemID = $(availableItemEl).data('item-id')
item = itemMap[itemID]
itemView = new ItemView({item: item, includes: {name: true}})
itemView.render()
$(availableItemEl).append(itemView.$el)
@registerSubView(itemView)
@delegateEvents()
clearSelection: ->
@$el.find('.panel-info').removeClass('panel-info')
@$el.find('.list-group-item').removeClass('active')
@onSelectionChanged()
onItemSlotClick: (e) ->
slot = $(e.target).closest('.panel')
wasActive = slot.hasClass('panel-info')
@unselectAllSlots()
@unselectAllAvailableEquipment() if slot.hasClass('disabled')
@selectSlot(slot) unless wasActive and not $(e.target).closest('.item-view')[0]
@onSelectionChanged()
onAvailableItemClick: (e) ->
itemContainer = $(e.target).closest('.list-group-item')
@unselectAllAvailableEquipment()
@selectAvailableItem(itemContainer)
@onSelectionChanged()
onAvailableItemDoubleClick: (e) ->
slot = @getSelectedSlot()
slot = @$el.find('.panel:not(.disabled):first') if not slot.length
@unequipItemFromSlot(slot)
@equipSelectedItemToSlot(slot)
@onSelectionChanged()
onEquippedItemDoubleClick: (e) ->
@unselectAllAvailableEquipment()
slot = $(e.target).closest('.item-slot')
@selectAvailableItem(@unequipItemFromSlot(slot))
@onSelectionChanged()
onClickSwapButton: ->
slot = @getSelectedSlot()
selectedItemContainer = @$el.find('#available-equipment .list-group-item.active')
return unless slot[0] or selectedItemContainer[0]
slot = @$el.find('.panel:not(.disabled):first') if not slot.length
itemContainer = @unequipItemFromSlot(slot)
@equipSelectedItemToSlot(slot)
@selectAvailableItem(itemContainer)
@selectSlot(slot)
@onSelectionChanged()
getSelectedSlot: ->
@$el.find('#equipped .item-slot.panel-info')
unselectAllAvailableEquipment: ->
@$el.find('#available-equipment .list-group-item').removeClass('active')
unselectAllSlots: ->
@$el.find('#equipped .panel').removeClass('panel-info')
selectSlot: (slot) ->
slot.addClass('panel-info')
getSlot: (name) ->
@$el.find(".item-slot[data-slot=#{name}]")
getSelectedAvailableItemContainer: ->
@$el.find('#available-equipment .list-group-item.active')
getAvailableItemContainer: (itemID) ->
@$el.find("#available-equipment .list-group-item[data-item-id='#{itemID}']")
selectAvailableItem: (itemContainer) ->
itemContainer?.addClass('active')
unequipItemFromSlot: (slot) ->
itemIDToUnequip = slot.find('.item-view').data('item-id')
return unless itemIDToUnequip
slot.find('.item-view').detach()
for el in @$el.find('#available-equipment .list-group-item')
itemID = $(el).find('.item-view').data('item-id')
if itemID is itemIDToUnequip
return $(el).removeClass('equipped')
equipSelectedItemToSlot: (slot) ->
selectedItemContainer = @getSelectedAvailableItemContainer()
newItemHTML = selectedItemContainer.html()
selectedItemContainer .addClass('equipped')
slotContainer = slot.find('.panel-body')
slotContainer.html(newItemHTML)
slotContainer.find('.item-view').data('item-id', selectedItemContainer.find('.item-view').data('item-id'))
@$el.find('.list-group-item').removeClass('active')
onSelectionChanged: ->
@$el.find('.item-slot').show()
selectedSlot = @$el.find('.panel.panel-info')
selectedItem = @$el.find('#available-equipment .list-group-item.active')
if selectedSlot.length
@$el.find('#available-equipment .list-group-item').hide()
@$el.find("#available-equipment .list-group-item.#{selectedSlot.data('slot')}").show()
selectedSlotItemID = selectedSlot.find('.item-view').data('item-id')
if selectedSlotItemID
item = _.find @items.models, {id:selectedSlotItemID}
@showSelectedSlotItem(item)
else
@hideSelectedSlotItem()
else
@$el.find('#available-equipment .list-group-item').show()
@$el.find('#available-equipment .list-group-item.equipped').hide()
@$el.find('.item-slot').removeClass('disabled')
if selectedItem.length
item = _.find @items.models, {id:selectedItem.find('.item-view').data('item-id')}
# update which slots are enabled
allowedSlots = item.getAllowedSlots()
for slotEl in @$el.find('.item-slot')
slotName = $(slotEl).data('slot')
if slotName not in allowedSlots
$(slotEl).addClass('disabled')
@showSelectedAvailableItem(item)
else
@hideSelectedAvailableItem()
@delegateEvents()
showSelectedSlotItem: (item) ->
if not @selectedEquippedItemView
@selectedEquippedItemView = new ItemView({
item: item, includes: {name: true, stats: true}})
@insertSubView(@selectedEquippedItemView, @$el.find('#selected-equipped-item .item-view-stub'))
else
@selectedEquippedItemView.$el.show()
@selectedEquippedItemView.item = item
@selectedEquippedItemView.render()
hideSelectedSlotItem: ->
@selectedEquippedItemView?.$el.hide()
showSelectedAvailableItem: (item) ->
if not @selectedAvailableItemView
@selectedAvailableItemView = new ItemView({
item: item, includes: {name: true, stats: true}})
@insertSubView(@selectedAvailableItemView, @$el.find('#selected-available-item .item-view-stub'))
else
@selectedAvailableItemView.$el.show()
@selectedAvailableItemView.item = item
@selectedAvailableItemView.render()
hideSelectedAvailableItem: ->
@selectedAvailableItemView?.$el.hide()
getCurrentEquipmentConfig: ->
config = {}
for slot in @$el.find('.item-slot')
slotName = $(slot).data('slot')
slotItemID = $(slot).find('.item-view').data('item-id')
continue unless slotItemID
item = _.find @items.models, {id:slotItemID}
config[slotName] = item.get('original')
config
onHidden: ->
inventory = @getCurrentEquipmentConfig()
heroConfig = @options.session.get('heroConfig') ? {}
unless _.isEqual inventory, heroConfig.inventory
heroConfig.inventory = inventory
heroConfig.thangType ?= '529ffbf1cf1818f2be000001' # Temp: assign Tharin as the hero
@options.session.set 'heroConfig', heroConfig
@options.session.patch()
| 189808 | CocoView = require 'views/kinds/CocoView'
template = require 'templates/game-menu/inventory-view'
{me} = require 'lib/auth'
ThangType = require 'models/ThangType'
CocoCollection = require 'collections/CocoCollection'
ItemView = require './ItemView'
module.exports = class InventoryView extends CocoView
id: 'inventory-view'
className: 'tab-pane'
template: template
slots: ['head', 'eyes', 'neck', 'torso', 'wrists', 'gloves', 'left-ring', 'right-ring', 'right-hand', 'left-hand', 'waist', 'feet', 'spellbook', 'programming-book', 'pet', 'minion', 'misc-0', 'misc-1', 'misc-2', 'misc-3', 'misc-4']
events:
'click .item-slot': 'onItemSlotClick'
'click #available-equipment .list-group-item': 'onAvailableItemClick'
'dblclick #available-equipment .list-group-item': 'onAvailableItemDoubleClick'
'dblclick .item-slot .item-view': 'onEquippedItemDoubleClick'
'click #swap-button': 'onClickSwapButton'
shortcuts:
'esc': 'clearSelection'
initialize: (options) ->
super(arguments...)
@items = new CocoCollection([], {model: ThangType})
@equipment = options.equipment or @options.session?.get('heroConfig')?.inventory or {}
@items.url = '/db/thang.type?view=items&project=name,description,components,original'
@supermodel.loadCollection(@items, 'items')
onLoaded: ->
super()
getRenderData: (context={}) ->
context = super(context)
context.equipped = _.values(@equipment)
context.items = @items.models
for item in @items.models
item.classes = item.getAllowedSlots()
item.classes.push 'equipped' if item.get('original') in context.equipped
context.slots = @slots
context.equipment = _.clone @equipment
for slot, itemOriginal of context.equipment
item = _.find @items.models, (item) -> item.get('original') is itemOriginal
context.equipment[slot] = item
context
afterRender: ->
super()
return unless @supermodel.finished()
keys = (item.<KEY> for item in @items.models)
itemMap = _.zipObject keys, @items.models
# Fill in equipped items
for slottedItemStub in @$el.find('.replace-me')
itemID = $(slottedItemStub).data('item-id')
item = itemMap[itemID]
itemView = new ItemView({item: item, includes: {name: true}})
itemView.render()
$(slottedItemStub).replaceWith(itemView.$el)
@registerSubView(itemView)
for availableItemEl in @$el.find('#available-equipment .list-group-item')
itemID = $(availableItemEl).data('item-id')
item = itemMap[itemID]
itemView = new ItemView({item: item, includes: {name: true}})
itemView.render()
$(availableItemEl).append(itemView.$el)
@registerSubView(itemView)
@delegateEvents()
clearSelection: ->
@$el.find('.panel-info').removeClass('panel-info')
@$el.find('.list-group-item').removeClass('active')
@onSelectionChanged()
onItemSlotClick: (e) ->
slot = $(e.target).closest('.panel')
wasActive = slot.hasClass('panel-info')
@unselectAllSlots()
@unselectAllAvailableEquipment() if slot.hasClass('disabled')
@selectSlot(slot) unless wasActive and not $(e.target).closest('.item-view')[0]
@onSelectionChanged()
onAvailableItemClick: (e) ->
itemContainer = $(e.target).closest('.list-group-item')
@unselectAllAvailableEquipment()
@selectAvailableItem(itemContainer)
@onSelectionChanged()
onAvailableItemDoubleClick: (e) ->
slot = @getSelectedSlot()
slot = @$el.find('.panel:not(.disabled):first') if not slot.length
@unequipItemFromSlot(slot)
@equipSelectedItemToSlot(slot)
@onSelectionChanged()
onEquippedItemDoubleClick: (e) ->
@unselectAllAvailableEquipment()
slot = $(e.target).closest('.item-slot')
@selectAvailableItem(@unequipItemFromSlot(slot))
@onSelectionChanged()
onClickSwapButton: ->
slot = @getSelectedSlot()
selectedItemContainer = @$el.find('#available-equipment .list-group-item.active')
return unless slot[0] or selectedItemContainer[0]
slot = @$el.find('.panel:not(.disabled):first') if not slot.length
itemContainer = @unequipItemFromSlot(slot)
@equipSelectedItemToSlot(slot)
@selectAvailableItem(itemContainer)
@selectSlot(slot)
@onSelectionChanged()
getSelectedSlot: ->
@$el.find('#equipped .item-slot.panel-info')
unselectAllAvailableEquipment: ->
@$el.find('#available-equipment .list-group-item').removeClass('active')
unselectAllSlots: ->
@$el.find('#equipped .panel').removeClass('panel-info')
selectSlot: (slot) ->
slot.addClass('panel-info')
getSlot: (name) ->
@$el.find(".item-slot[data-slot=#{name}]")
getSelectedAvailableItemContainer: ->
@$el.find('#available-equipment .list-group-item.active')
getAvailableItemContainer: (itemID) ->
@$el.find("#available-equipment .list-group-item[data-item-id='#{itemID}']")
selectAvailableItem: (itemContainer) ->
itemContainer?.addClass('active')
unequipItemFromSlot: (slot) ->
itemIDToUnequip = slot.find('.item-view').data('item-id')
return unless itemIDToUnequip
slot.find('.item-view').detach()
for el in @$el.find('#available-equipment .list-group-item')
itemID = $(el).find('.item-view').data('item-id')
if itemID is itemIDToUnequip
return $(el).removeClass('equipped')
equipSelectedItemToSlot: (slot) ->
selectedItemContainer = @getSelectedAvailableItemContainer()
newItemHTML = selectedItemContainer.html()
selectedItemContainer .addClass('equipped')
slotContainer = slot.find('.panel-body')
slotContainer.html(newItemHTML)
slotContainer.find('.item-view').data('item-id', selectedItemContainer.find('.item-view').data('item-id'))
@$el.find('.list-group-item').removeClass('active')
onSelectionChanged: ->
@$el.find('.item-slot').show()
selectedSlot = @$el.find('.panel.panel-info')
selectedItem = @$el.find('#available-equipment .list-group-item.active')
if selectedSlot.length
@$el.find('#available-equipment .list-group-item').hide()
@$el.find("#available-equipment .list-group-item.#{selectedSlot.data('slot')}").show()
selectedSlotItemID = selectedSlot.find('.item-view').data('item-id')
if selectedSlotItemID
item = _.find @items.models, {id:selectedSlotItemID}
@showSelectedSlotItem(item)
else
@hideSelectedSlotItem()
else
@$el.find('#available-equipment .list-group-item').show()
@$el.find('#available-equipment .list-group-item.equipped').hide()
@$el.find('.item-slot').removeClass('disabled')
if selectedItem.length
item = _.find @items.models, {id:selectedItem.find('.item-view').data('item-id')}
# update which slots are enabled
allowedSlots = item.getAllowedSlots()
for slotEl in @$el.find('.item-slot')
slotName = $(slotEl).data('slot')
if slotName not in allowedSlots
$(slotEl).addClass('disabled')
@showSelectedAvailableItem(item)
else
@hideSelectedAvailableItem()
@delegateEvents()
showSelectedSlotItem: (item) ->
if not @selectedEquippedItemView
@selectedEquippedItemView = new ItemView({
item: item, includes: {name: true, stats: true}})
@insertSubView(@selectedEquippedItemView, @$el.find('#selected-equipped-item .item-view-stub'))
else
@selectedEquippedItemView.$el.show()
@selectedEquippedItemView.item = item
@selectedEquippedItemView.render()
hideSelectedSlotItem: ->
@selectedEquippedItemView?.$el.hide()
showSelectedAvailableItem: (item) ->
if not @selectedAvailableItemView
@selectedAvailableItemView = new ItemView({
item: item, includes: {name: true, stats: true}})
@insertSubView(@selectedAvailableItemView, @$el.find('#selected-available-item .item-view-stub'))
else
@selectedAvailableItemView.$el.show()
@selectedAvailableItemView.item = item
@selectedAvailableItemView.render()
hideSelectedAvailableItem: ->
@selectedAvailableItemView?.$el.hide()
getCurrentEquipmentConfig: ->
config = {}
for slot in @$el.find('.item-slot')
slotName = $(slot).data('slot')
slotItemID = $(slot).find('.item-view').data('item-id')
continue unless slotItemID
item = _.find @items.models, {id:slotItemID}
config[slotName] = item.get('original')
config
onHidden: ->
inventory = @getCurrentEquipmentConfig()
heroConfig = @options.session.get('heroConfig') ? {}
unless _.isEqual inventory, heroConfig.inventory
heroConfig.inventory = inventory
heroConfig.thangType ?= '529ffbf1cf1818f2be000001' # Temp: assign Tharin as the hero
@options.session.set 'heroConfig', heroConfig
@options.session.patch()
| true | CocoView = require 'views/kinds/CocoView'
template = require 'templates/game-menu/inventory-view'
{me} = require 'lib/auth'
ThangType = require 'models/ThangType'
CocoCollection = require 'collections/CocoCollection'
ItemView = require './ItemView'
module.exports = class InventoryView extends CocoView
id: 'inventory-view'
className: 'tab-pane'
template: template
slots: ['head', 'eyes', 'neck', 'torso', 'wrists', 'gloves', 'left-ring', 'right-ring', 'right-hand', 'left-hand', 'waist', 'feet', 'spellbook', 'programming-book', 'pet', 'minion', 'misc-0', 'misc-1', 'misc-2', 'misc-3', 'misc-4']
events:
'click .item-slot': 'onItemSlotClick'
'click #available-equipment .list-group-item': 'onAvailableItemClick'
'dblclick #available-equipment .list-group-item': 'onAvailableItemDoubleClick'
'dblclick .item-slot .item-view': 'onEquippedItemDoubleClick'
'click #swap-button': 'onClickSwapButton'
shortcuts:
'esc': 'clearSelection'
initialize: (options) ->
super(arguments...)
@items = new CocoCollection([], {model: ThangType})
@equipment = options.equipment or @options.session?.get('heroConfig')?.inventory or {}
@items.url = '/db/thang.type?view=items&project=name,description,components,original'
@supermodel.loadCollection(@items, 'items')
onLoaded: ->
super()
getRenderData: (context={}) ->
context = super(context)
context.equipped = _.values(@equipment)
context.items = @items.models
for item in @items.models
item.classes = item.getAllowedSlots()
item.classes.push 'equipped' if item.get('original') in context.equipped
context.slots = @slots
context.equipment = _.clone @equipment
for slot, itemOriginal of context.equipment
item = _.find @items.models, (item) -> item.get('original') is itemOriginal
context.equipment[slot] = item
context
afterRender: ->
super()
return unless @supermodel.finished()
keys = (item.PI:KEY:<KEY>END_PI for item in @items.models)
itemMap = _.zipObject keys, @items.models
# Fill in equipped items
for slottedItemStub in @$el.find('.replace-me')
itemID = $(slottedItemStub).data('item-id')
item = itemMap[itemID]
itemView = new ItemView({item: item, includes: {name: true}})
itemView.render()
$(slottedItemStub).replaceWith(itemView.$el)
@registerSubView(itemView)
for availableItemEl in @$el.find('#available-equipment .list-group-item')
itemID = $(availableItemEl).data('item-id')
item = itemMap[itemID]
itemView = new ItemView({item: item, includes: {name: true}})
itemView.render()
$(availableItemEl).append(itemView.$el)
@registerSubView(itemView)
@delegateEvents()
clearSelection: ->
@$el.find('.panel-info').removeClass('panel-info')
@$el.find('.list-group-item').removeClass('active')
@onSelectionChanged()
onItemSlotClick: (e) ->
slot = $(e.target).closest('.panel')
wasActive = slot.hasClass('panel-info')
@unselectAllSlots()
@unselectAllAvailableEquipment() if slot.hasClass('disabled')
@selectSlot(slot) unless wasActive and not $(e.target).closest('.item-view')[0]
@onSelectionChanged()
onAvailableItemClick: (e) ->
itemContainer = $(e.target).closest('.list-group-item')
@unselectAllAvailableEquipment()
@selectAvailableItem(itemContainer)
@onSelectionChanged()
onAvailableItemDoubleClick: (e) ->
slot = @getSelectedSlot()
slot = @$el.find('.panel:not(.disabled):first') if not slot.length
@unequipItemFromSlot(slot)
@equipSelectedItemToSlot(slot)
@onSelectionChanged()
onEquippedItemDoubleClick: (e) ->
@unselectAllAvailableEquipment()
slot = $(e.target).closest('.item-slot')
@selectAvailableItem(@unequipItemFromSlot(slot))
@onSelectionChanged()
onClickSwapButton: ->
slot = @getSelectedSlot()
selectedItemContainer = @$el.find('#available-equipment .list-group-item.active')
return unless slot[0] or selectedItemContainer[0]
slot = @$el.find('.panel:not(.disabled):first') if not slot.length
itemContainer = @unequipItemFromSlot(slot)
@equipSelectedItemToSlot(slot)
@selectAvailableItem(itemContainer)
@selectSlot(slot)
@onSelectionChanged()
getSelectedSlot: ->
@$el.find('#equipped .item-slot.panel-info')
unselectAllAvailableEquipment: ->
@$el.find('#available-equipment .list-group-item').removeClass('active')
unselectAllSlots: ->
@$el.find('#equipped .panel').removeClass('panel-info')
selectSlot: (slot) ->
slot.addClass('panel-info')
getSlot: (name) ->
@$el.find(".item-slot[data-slot=#{name}]")
getSelectedAvailableItemContainer: ->
@$el.find('#available-equipment .list-group-item.active')
getAvailableItemContainer: (itemID) ->
@$el.find("#available-equipment .list-group-item[data-item-id='#{itemID}']")
selectAvailableItem: (itemContainer) ->
itemContainer?.addClass('active')
unequipItemFromSlot: (slot) ->
itemIDToUnequip = slot.find('.item-view').data('item-id')
return unless itemIDToUnequip
slot.find('.item-view').detach()
for el in @$el.find('#available-equipment .list-group-item')
itemID = $(el).find('.item-view').data('item-id')
if itemID is itemIDToUnequip
return $(el).removeClass('equipped')
equipSelectedItemToSlot: (slot) ->
selectedItemContainer = @getSelectedAvailableItemContainer()
newItemHTML = selectedItemContainer.html()
selectedItemContainer .addClass('equipped')
slotContainer = slot.find('.panel-body')
slotContainer.html(newItemHTML)
slotContainer.find('.item-view').data('item-id', selectedItemContainer.find('.item-view').data('item-id'))
@$el.find('.list-group-item').removeClass('active')
onSelectionChanged: ->
@$el.find('.item-slot').show()
selectedSlot = @$el.find('.panel.panel-info')
selectedItem = @$el.find('#available-equipment .list-group-item.active')
if selectedSlot.length
@$el.find('#available-equipment .list-group-item').hide()
@$el.find("#available-equipment .list-group-item.#{selectedSlot.data('slot')}").show()
selectedSlotItemID = selectedSlot.find('.item-view').data('item-id')
if selectedSlotItemID
item = _.find @items.models, {id:selectedSlotItemID}
@showSelectedSlotItem(item)
else
@hideSelectedSlotItem()
else
@$el.find('#available-equipment .list-group-item').show()
@$el.find('#available-equipment .list-group-item.equipped').hide()
@$el.find('.item-slot').removeClass('disabled')
if selectedItem.length
item = _.find @items.models, {id:selectedItem.find('.item-view').data('item-id')}
# update which slots are enabled
allowedSlots = item.getAllowedSlots()
for slotEl in @$el.find('.item-slot')
slotName = $(slotEl).data('slot')
if slotName not in allowedSlots
$(slotEl).addClass('disabled')
@showSelectedAvailableItem(item)
else
@hideSelectedAvailableItem()
@delegateEvents()
showSelectedSlotItem: (item) ->
if not @selectedEquippedItemView
@selectedEquippedItemView = new ItemView({
item: item, includes: {name: true, stats: true}})
@insertSubView(@selectedEquippedItemView, @$el.find('#selected-equipped-item .item-view-stub'))
else
@selectedEquippedItemView.$el.show()
@selectedEquippedItemView.item = item
@selectedEquippedItemView.render()
hideSelectedSlotItem: ->
@selectedEquippedItemView?.$el.hide()
showSelectedAvailableItem: (item) ->
if not @selectedAvailableItemView
@selectedAvailableItemView = new ItemView({
item: item, includes: {name: true, stats: true}})
@insertSubView(@selectedAvailableItemView, @$el.find('#selected-available-item .item-view-stub'))
else
@selectedAvailableItemView.$el.show()
@selectedAvailableItemView.item = item
@selectedAvailableItemView.render()
hideSelectedAvailableItem: ->
@selectedAvailableItemView?.$el.hide()
getCurrentEquipmentConfig: ->
config = {}
for slot in @$el.find('.item-slot')
slotName = $(slot).data('slot')
slotItemID = $(slot).find('.item-view').data('item-id')
continue unless slotItemID
item = _.find @items.models, {id:slotItemID}
config[slotName] = item.get('original')
config
onHidden: ->
inventory = @getCurrentEquipmentConfig()
heroConfig = @options.session.get('heroConfig') ? {}
unless _.isEqual inventory, heroConfig.inventory
heroConfig.inventory = inventory
heroConfig.thangType ?= '529ffbf1cf1818f2be000001' # Temp: assign Tharin as the hero
@options.session.set 'heroConfig', heroConfig
@options.session.patch()
|
[
{
"context": "odelA\n table: 'CLASS_A'\n id:\n name: 'idA'\n column: 'A_ID'\n domain: domains.s",
"end": 5223,
"score": 0.9200849533081055,
"start": 5220,
"tag": "NAME",
"value": "idA"
},
{
"context": "odelG\n table: 'CLASS_G'\n id:\n name: 'id... | test/mapping.coffee | smbape/node-dblayer | 0 | _ = require 'lodash'
moment = require 'moment'
Backbone = require 'backbone'
mapping = exports
domains = {
serial:
type: 'increments'
short_label:
type: 'varchar'
type_args: [31]
medium_label:
type: 'varchar'
type_args: [63]
long_label:
type: 'varchar'
type_args: [255]
comment:
type: 'varchar'
type_args: [1024]
version:
type: 'varchar'
type_args: [10]
nullable: false
handlers:
insert: (value, model, options)->
'1.0'
update: (value, model, options)->
if 'major' is model.get('semver')
return (parseInt(value.split('.')[0], 10) + 1) + '.0'
else
value = value.split('.')
value[1] = 1 + parseInt(value[1], 10)
return value.join('.')
datetime:
type: 'timestamp'
nullable: false
handlers:
insert: (model, options, extra)->
new Date()
read: (value, model, options)->
moment.utc(moment(value).format 'YYYY-MM-DD HH:mm:ss.SSS').toDate()
write: (value, model, options)->
moment(value).utc().format 'YYYY-MM-DD HH:mm:ss.SSS'
email:
type: 'varchar'
type_args: [63]
code:
type: 'varchar'
type_args: [31]
}
domains.mdate = _.defaults {
lock: true
update: (model, options, extra)->
new Date()
}, domains.datetime
mapping['Data'] =
table: 'BASIC_DATA'
ctor: Backbone.Model.extend {className: 'Data'}
id:
name: 'id'
column: 'DAT_ID'
domain: domains.serial
properties:
title: className: 'Property'
author:
column: 'AOR_ID'
className: 'User'
fk: 'AUTHOR'
delegator:
column: 'DOR_ID'
className: 'User'
fk: 'DELEGATOR'
operator:
column: 'OOR_ID'
className: 'User'
fk: 'OPERATOR'
cdate:
column: 'DAT_CDATE'
domain: domains.datetime
mdate:
lock: true
column: 'DAT_MDATE'
domain: domains.mdate
version:
column: 'DAT_VERSION'
domain: domains.version
mapping['User'] =
table: 'USERS'
id: className: 'Data'
properties:
name:
column: 'USE_NAME'
domain: domains.medium_label
firstName:
column: 'USE_FIRST_NAME'
domain: domains.long_label
email:
column: 'USE_EMAIL'
domain: domains.email
login:
column: 'USE_LOGIN'
domain: domains.short_label
password:
column: 'USE_PASSWORD'
domain: domains.long_label
country: className: 'Country'
occupation:
column: 'USE_OCCUPATION'
domain: domains.long_label
language: className: 'Language'
constraints: [
{type: 'unique', name: 'LOGIN', properties: ['login']}
{type: 'unique', name: 'EMAIL', properties: ['email']}
]
mapping['Property'] =
table: 'PROPERTIES'
id:
name: 'id'
column: 'LPR_ID'
domain: domains.serial
properties:
code:
column: 'LPR_CODE'
domain: domains.code
nullable: false
constraints: {type: 'unique', properties: ['code']}
mapping['Language'] =
table: 'LANGUAGES'
id:
name: 'id'
column: 'LNG_ID'
domain: domains.serial
properties:
code:
column: 'LNG_CODE'
domain: domains.short_label
key:
column: 'LNG_KEY'
domain: domains.short_label
label:
column: 'LNG_LABEL'
domain: domains.medium_label
property: className: 'Property'
constraints: {type: 'unique', properties: ['code']}
mapping['Translation'] =
table: 'TRANSLATIONS'
id:
name: 'id'
column: 'TRL_ID'
domain: domains.serial
properties:
value:
column: 'TRL_VALUE'
domain: domains.comment
language:
className: 'Language'
nullable: false
# since the unique index starts with this property
# there is no need for a separate index to make joinction on foreign key faster
# this is the default behaviour on mysql
fkindex: false
property:
className: 'Property'
nullable: false
constraints: {type: 'unique', properties: ['language', 'property']}
mapping['Country'] =
table: 'COUNTRIES'
id:
name: 'id'
column: 'CRY_ID'
domain: domains.serial
properties:
code:
column: 'CRY_CODE'
domain: domains.code
nullable: false
property: className: 'Property'
{PersistenceManager} = require('../')
Model = PersistenceManager::Model
class ModelA extends Model
className: 'ClassA'
mapping['ClassA'] =
ctor: ModelA
table: 'CLASS_A'
id:
name: 'idA'
column: 'A_ID'
domain: domains.serial
properties:
propA1:
column: 'PROP_A1'
domain: domains.short_label
propA2:
column: 'PROP_A2'
domain: domains.short_label
propA3:
column: 'PROP_A3'
domain: domains.short_label
creationDate:
column: 'CREATION_DATE'
domain: domains.datetime
modificationDate:
column: 'MODIFICATION_DATE'
domain: domains.mdate
version:
lock: true
column: 'VERSION'
domain: domains.version
class ModelB extends Model
className: 'ClassB'
mapping['ClassB'] =
ctor: ModelB
table: 'CLASS_B'
id: className: 'ClassA'
properties:
propB1:
column: 'PROP_B1'
domain: domains.short_label
propB2:
column: 'PROP_B2'
domain: domains.short_label
propB3:
column: 'PROP_B3'
domain: domains.short_label
class ModelC extends Model
className: 'ClassC'
mapping['ClassC'] =
ctor: ModelC
table: 'CLASS_C'
id:
name: 'idC'
column: 'C_ID'
domain: domains.serial
properties:
propC1:
column: 'PROP_C1'
domain: domains.short_label
propC2:
column: 'PROP_C2'
domain: domains.short_label
propC3:
column: 'PROP_C3'
domain: domains.short_label
class ModelD extends Model
className: 'ClassD'
mapping['ClassD'] =
ctor: ModelD
table: 'CLASS_D'
id: className: 'ClassA'
mixins: 'ClassC'
properties:
propD1:
column: 'PROP_D1'
domain: domains.short_label
propD2:
column: 'PROP_D2'
domain: domains.short_label
propD3:
column: 'PROP_D3'
domain: domains.short_label
class ModelE extends Model
className: 'ClassE'
mapping['ClassE'] =
ctor: ModelE
table: 'CLASS_E'
id: className: 'ClassB'
mixins: 'ClassC'
properties:
propE1:
column: 'PROP_E1'
domain: domains.short_label
propE2:
column: 'PROP_E2'
domain: domains.short_label
propE3:
column: 'PROP_E3'
domain: domains.short_label
class ModelF extends Model
className: 'ClassF'
mapping['ClassF'] =
ctor: ModelF
table: 'CLASS_F'
id:
className: 'ClassC'
pk: 'CUSTOM'
properties:
propF1:
column: 'PROP_F1'
domain: domains.short_label
propF2:
column: 'PROP_F2'
domain: domains.short_label
propF3:
column: 'PROP_F3'
domain: domains.short_label
propClassD:
column: 'A_ID'
className: 'ClassD'
fk: 'CUSTOM'
propClassE:
column: 'CLA_A_ID'
className: 'ClassE'
class ModelG extends Model
className: 'ClassG'
mapping['ClassG'] =
ctor: ModelG
table: 'CLASS_G'
id:
name: 'idG'
column: 'G_ID'
domain: domains.serial
constraints: {type: 'unique', properties: ['propG1', 'propG2']}
properties:
propG1:
column: 'PROP_G1'
domain: domains.short_label
propG2:
column: 'PROP_G2'
domain: domains.short_label
propG3:
column: 'PROP_G3'
domain: domains.short_label
class ModelH extends Model
className: 'ClassH'
mapping['ClassH'] =
ctor: ModelH
table: 'CLASS_H'
mixins: ['ClassD', 'ClassG']
properties:
propH1:
column: 'PROP_H1'
domain: domains.short_label
propH2:
column: 'PROP_H2'
domain: domains.short_label
propH3:
column: 'PROP_H3'
domain: domains.short_label
class ModelI extends Model
className: 'ClassI'
mapping['ClassI'] =
ctor: ModelI
table: 'CLASS_I'
id: className: 'ClassG'
class ModelJ extends Model
className: 'ClassJ'
mapping['ClassJ'] =
ctor: ModelJ
table: 'CLASS_J'
id:
className: 'ClassC'
properties:
propJ1:
column: 'PROP_J1'
domain: domains.short_label
propJ2:
column: 'PROP_J2'
domain: domains.short_label
propJ3:
column: 'PROP_J3'
domain: domains.short_label
propJ4:
column: 'PROP_J4'
domain: domains.short_label
defaultValue: 'default value'
propClassD:
column: 'PROP_J5'
className: 'ClassD'
propClassE:
column: 'PROP_J6'
className: 'ClassE'
mapping.numeric_types =
id:
name: 'id'
type: 'smallincrements'
properties:
tinyint:
column: 'tinyint'
type: 'tinyint'
smallint:
column: 'smallint'
type: 'smallint'
integer:
column: 'integer'
type: 'integer'
bigint:
column: 'bigint'
type: 'bigint'
numeric:
column: 'numeric'
type: 'numeric'
'numeric(11,3)':
column: 'numeric(11,3)'
type: 'numeric'
type_args: [11, 3]
float:
column: 'float'
type: 'float'
double:
column: 'double'
type: 'double'
mapping.character_types =
id:
name: 'id'
type: 'increments'
properties:
char:
column: 'char'
type: 'char'
varchar:
column: 'varchar'
type: 'varchar'
tinytext:
column: 'tinytext'
type: 'tinytext'
mediumtext:
column: 'mediumtext'
type: 'mediumtext'
text:
column: 'text'
type: 'text'
mapping.date_time_types =
id:
name: 'id'
type: 'bigincrements'
properties:
date:
column: 'date'
type: 'date'
datetime:
column: 'datetime'
type: 'datetime'
timestamp:
column: 'timestamp'
type: 'timestamp'
time:
column: 'time'
type: 'time'
mapping.other_types =
id:
name: 'id'
type: 'smallincrements'
properties:
bool:
column: 'bool'
type: 'bool'
enum:
column: 'enum'
type: 'enum'
type_args: ['a', 'b', 'c', 'd']
binary:
column: 'binary'
type: 'binary'
varbinary:
column: 'varbinary'
type: 'varbinary'
bit:
column: 'bit'
type: 'bit'
varbit:
column: 'varbit'
type: 'varbit'
xml:
column: 'xml'
type: 'xml'
json:
column: 'json'
type: 'json'
jsonb:
column: 'jsonb'
type: 'jsonb'
uuid:
column: 'uuid'
type: 'uuid'
| 158726 | _ = require 'lodash'
moment = require 'moment'
Backbone = require 'backbone'
mapping = exports
domains = {
serial:
type: 'increments'
short_label:
type: 'varchar'
type_args: [31]
medium_label:
type: 'varchar'
type_args: [63]
long_label:
type: 'varchar'
type_args: [255]
comment:
type: 'varchar'
type_args: [1024]
version:
type: 'varchar'
type_args: [10]
nullable: false
handlers:
insert: (value, model, options)->
'1.0'
update: (value, model, options)->
if 'major' is model.get('semver')
return (parseInt(value.split('.')[0], 10) + 1) + '.0'
else
value = value.split('.')
value[1] = 1 + parseInt(value[1], 10)
return value.join('.')
datetime:
type: 'timestamp'
nullable: false
handlers:
insert: (model, options, extra)->
new Date()
read: (value, model, options)->
moment.utc(moment(value).format 'YYYY-MM-DD HH:mm:ss.SSS').toDate()
write: (value, model, options)->
moment(value).utc().format 'YYYY-MM-DD HH:mm:ss.SSS'
email:
type: 'varchar'
type_args: [63]
code:
type: 'varchar'
type_args: [31]
}
domains.mdate = _.defaults {
lock: true
update: (model, options, extra)->
new Date()
}, domains.datetime
mapping['Data'] =
table: 'BASIC_DATA'
ctor: Backbone.Model.extend {className: 'Data'}
id:
name: 'id'
column: 'DAT_ID'
domain: domains.serial
properties:
title: className: 'Property'
author:
column: 'AOR_ID'
className: 'User'
fk: 'AUTHOR'
delegator:
column: 'DOR_ID'
className: 'User'
fk: 'DELEGATOR'
operator:
column: 'OOR_ID'
className: 'User'
fk: 'OPERATOR'
cdate:
column: 'DAT_CDATE'
domain: domains.datetime
mdate:
lock: true
column: 'DAT_MDATE'
domain: domains.mdate
version:
column: 'DAT_VERSION'
domain: domains.version
mapping['User'] =
table: 'USERS'
id: className: 'Data'
properties:
name:
column: 'USE_NAME'
domain: domains.medium_label
firstName:
column: 'USE_FIRST_NAME'
domain: domains.long_label
email:
column: 'USE_EMAIL'
domain: domains.email
login:
column: 'USE_LOGIN'
domain: domains.short_label
password:
column: 'USE_PASSWORD'
domain: domains.long_label
country: className: 'Country'
occupation:
column: 'USE_OCCUPATION'
domain: domains.long_label
language: className: 'Language'
constraints: [
{type: 'unique', name: 'LOGIN', properties: ['login']}
{type: 'unique', name: 'EMAIL', properties: ['email']}
]
mapping['Property'] =
table: 'PROPERTIES'
id:
name: 'id'
column: 'LPR_ID'
domain: domains.serial
properties:
code:
column: 'LPR_CODE'
domain: domains.code
nullable: false
constraints: {type: 'unique', properties: ['code']}
mapping['Language'] =
table: 'LANGUAGES'
id:
name: 'id'
column: 'LNG_ID'
domain: domains.serial
properties:
code:
column: 'LNG_CODE'
domain: domains.short_label
key:
column: 'LNG_KEY'
domain: domains.short_label
label:
column: 'LNG_LABEL'
domain: domains.medium_label
property: className: 'Property'
constraints: {type: 'unique', properties: ['code']}
mapping['Translation'] =
table: 'TRANSLATIONS'
id:
name: 'id'
column: 'TRL_ID'
domain: domains.serial
properties:
value:
column: 'TRL_VALUE'
domain: domains.comment
language:
className: 'Language'
nullable: false
# since the unique index starts with this property
# there is no need for a separate index to make joinction on foreign key faster
# this is the default behaviour on mysql
fkindex: false
property:
className: 'Property'
nullable: false
constraints: {type: 'unique', properties: ['language', 'property']}
mapping['Country'] =
table: 'COUNTRIES'
id:
name: 'id'
column: 'CRY_ID'
domain: domains.serial
properties:
code:
column: 'CRY_CODE'
domain: domains.code
nullable: false
property: className: 'Property'
{PersistenceManager} = require('../')
Model = PersistenceManager::Model
class ModelA extends Model
className: 'ClassA'
mapping['ClassA'] =
ctor: ModelA
table: 'CLASS_A'
id:
name: '<NAME>'
column: 'A_ID'
domain: domains.serial
properties:
propA1:
column: 'PROP_A1'
domain: domains.short_label
propA2:
column: 'PROP_A2'
domain: domains.short_label
propA3:
column: 'PROP_A3'
domain: domains.short_label
creationDate:
column: 'CREATION_DATE'
domain: domains.datetime
modificationDate:
column: 'MODIFICATION_DATE'
domain: domains.mdate
version:
lock: true
column: 'VERSION'
domain: domains.version
class ModelB extends Model
className: 'ClassB'
mapping['ClassB'] =
ctor: ModelB
table: 'CLASS_B'
id: className: 'ClassA'
properties:
propB1:
column: 'PROP_B1'
domain: domains.short_label
propB2:
column: 'PROP_B2'
domain: domains.short_label
propB3:
column: 'PROP_B3'
domain: domains.short_label
class ModelC extends Model
className: 'ClassC'
mapping['ClassC'] =
ctor: ModelC
table: 'CLASS_C'
id:
name: 'idC'
column: 'C_ID'
domain: domains.serial
properties:
propC1:
column: 'PROP_C1'
domain: domains.short_label
propC2:
column: 'PROP_C2'
domain: domains.short_label
propC3:
column: 'PROP_C3'
domain: domains.short_label
class ModelD extends Model
className: 'ClassD'
mapping['ClassD'] =
ctor: ModelD
table: 'CLASS_D'
id: className: 'ClassA'
mixins: 'ClassC'
properties:
propD1:
column: 'PROP_D1'
domain: domains.short_label
propD2:
column: 'PROP_D2'
domain: domains.short_label
propD3:
column: 'PROP_D3'
domain: domains.short_label
class ModelE extends Model
className: 'ClassE'
mapping['ClassE'] =
ctor: ModelE
table: 'CLASS_E'
id: className: 'ClassB'
mixins: 'ClassC'
properties:
propE1:
column: 'PROP_E1'
domain: domains.short_label
propE2:
column: 'PROP_E2'
domain: domains.short_label
propE3:
column: 'PROP_E3'
domain: domains.short_label
class ModelF extends Model
className: 'ClassF'
mapping['ClassF'] =
ctor: ModelF
table: 'CLASS_F'
id:
className: 'ClassC'
pk: 'CUSTOM'
properties:
propF1:
column: 'PROP_F1'
domain: domains.short_label
propF2:
column: 'PROP_F2'
domain: domains.short_label
propF3:
column: 'PROP_F3'
domain: domains.short_label
propClassD:
column: 'A_ID'
className: 'ClassD'
fk: 'CUSTOM'
propClassE:
column: 'CLA_A_ID'
className: 'ClassE'
class ModelG extends Model
className: 'ClassG'
mapping['ClassG'] =
ctor: ModelG
table: 'CLASS_G'
id:
name: '<NAME>'
column: 'G_ID'
domain: domains.serial
constraints: {type: 'unique', properties: ['propG1', 'propG2']}
properties:
propG1:
column: 'PROP_G1'
domain: domains.short_label
propG2:
column: 'PROP_G2'
domain: domains.short_label
propG3:
column: 'PROP_G3'
domain: domains.short_label
class ModelH extends Model
className: 'ClassH'
mapping['ClassH'] =
ctor: ModelH
table: 'CLASS_H'
mixins: ['ClassD', 'ClassG']
properties:
propH1:
column: 'PROP_H1'
domain: domains.short_label
propH2:
column: 'PROP_H2'
domain: domains.short_label
propH3:
column: 'PROP_H3'
domain: domains.short_label
class ModelI extends Model
className: 'ClassI'
mapping['ClassI'] =
ctor: ModelI
table: 'CLASS_I'
id: className: 'ClassG'
class ModelJ extends Model
className: 'ClassJ'
mapping['ClassJ'] =
ctor: ModelJ
table: 'CLASS_J'
id:
className: 'ClassC'
properties:
propJ1:
column: 'PROP_J1'
domain: domains.short_label
propJ2:
column: 'PROP_J2'
domain: domains.short_label
propJ3:
column: 'PROP_J3'
domain: domains.short_label
propJ4:
column: 'PROP_J4'
domain: domains.short_label
defaultValue: 'default value'
propClassD:
column: 'PROP_J5'
className: 'ClassD'
propClassE:
column: 'PROP_J6'
className: 'ClassE'
mapping.numeric_types =
id:
name: 'id'
type: 'smallincrements'
properties:
tinyint:
column: 'tinyint'
type: 'tinyint'
smallint:
column: 'smallint'
type: 'smallint'
integer:
column: 'integer'
type: 'integer'
bigint:
column: 'bigint'
type: 'bigint'
numeric:
column: 'numeric'
type: 'numeric'
'numeric(11,3)':
column: 'numeric(11,3)'
type: 'numeric'
type_args: [11, 3]
float:
column: 'float'
type: 'float'
double:
column: 'double'
type: 'double'
mapping.character_types =
id:
name: 'id'
type: 'increments'
properties:
char:
column: 'char'
type: 'char'
varchar:
column: 'varchar'
type: 'varchar'
tinytext:
column: 'tinytext'
type: 'tinytext'
mediumtext:
column: 'mediumtext'
type: 'mediumtext'
text:
column: 'text'
type: 'text'
mapping.date_time_types =
id:
name: 'id'
type: 'bigincrements'
properties:
date:
column: 'date'
type: 'date'
datetime:
column: 'datetime'
type: 'datetime'
timestamp:
column: 'timestamp'
type: 'timestamp'
time:
column: 'time'
type: 'time'
mapping.other_types =
id:
name: 'id'
type: 'smallincrements'
properties:
bool:
column: 'bool'
type: 'bool'
enum:
column: 'enum'
type: 'enum'
type_args: ['a', 'b', 'c', 'd']
binary:
column: 'binary'
type: 'binary'
varbinary:
column: 'varbinary'
type: 'varbinary'
bit:
column: 'bit'
type: 'bit'
varbit:
column: 'varbit'
type: 'varbit'
xml:
column: 'xml'
type: 'xml'
json:
column: 'json'
type: 'json'
jsonb:
column: 'jsonb'
type: 'jsonb'
uuid:
column: 'uuid'
type: 'uuid'
| true | _ = require 'lodash'
moment = require 'moment'
Backbone = require 'backbone'
mapping = exports
domains = {
serial:
type: 'increments'
short_label:
type: 'varchar'
type_args: [31]
medium_label:
type: 'varchar'
type_args: [63]
long_label:
type: 'varchar'
type_args: [255]
comment:
type: 'varchar'
type_args: [1024]
version:
type: 'varchar'
type_args: [10]
nullable: false
handlers:
insert: (value, model, options)->
'1.0'
update: (value, model, options)->
if 'major' is model.get('semver')
return (parseInt(value.split('.')[0], 10) + 1) + '.0'
else
value = value.split('.')
value[1] = 1 + parseInt(value[1], 10)
return value.join('.')
datetime:
type: 'timestamp'
nullable: false
handlers:
insert: (model, options, extra)->
new Date()
read: (value, model, options)->
moment.utc(moment(value).format 'YYYY-MM-DD HH:mm:ss.SSS').toDate()
write: (value, model, options)->
moment(value).utc().format 'YYYY-MM-DD HH:mm:ss.SSS'
email:
type: 'varchar'
type_args: [63]
code:
type: 'varchar'
type_args: [31]
}
domains.mdate = _.defaults {
lock: true
update: (model, options, extra)->
new Date()
}, domains.datetime
mapping['Data'] =
table: 'BASIC_DATA'
ctor: Backbone.Model.extend {className: 'Data'}
id:
name: 'id'
column: 'DAT_ID'
domain: domains.serial
properties:
title: className: 'Property'
author:
column: 'AOR_ID'
className: 'User'
fk: 'AUTHOR'
delegator:
column: 'DOR_ID'
className: 'User'
fk: 'DELEGATOR'
operator:
column: 'OOR_ID'
className: 'User'
fk: 'OPERATOR'
cdate:
column: 'DAT_CDATE'
domain: domains.datetime
mdate:
lock: true
column: 'DAT_MDATE'
domain: domains.mdate
version:
column: 'DAT_VERSION'
domain: domains.version
mapping['User'] =
table: 'USERS'
id: className: 'Data'
properties:
name:
column: 'USE_NAME'
domain: domains.medium_label
firstName:
column: 'USE_FIRST_NAME'
domain: domains.long_label
email:
column: 'USE_EMAIL'
domain: domains.email
login:
column: 'USE_LOGIN'
domain: domains.short_label
password:
column: 'USE_PASSWORD'
domain: domains.long_label
country: className: 'Country'
occupation:
column: 'USE_OCCUPATION'
domain: domains.long_label
language: className: 'Language'
constraints: [
{type: 'unique', name: 'LOGIN', properties: ['login']}
{type: 'unique', name: 'EMAIL', properties: ['email']}
]
mapping['Property'] =
table: 'PROPERTIES'
id:
name: 'id'
column: 'LPR_ID'
domain: domains.serial
properties:
code:
column: 'LPR_CODE'
domain: domains.code
nullable: false
constraints: {type: 'unique', properties: ['code']}
mapping['Language'] =
table: 'LANGUAGES'
id:
name: 'id'
column: 'LNG_ID'
domain: domains.serial
properties:
code:
column: 'LNG_CODE'
domain: domains.short_label
key:
column: 'LNG_KEY'
domain: domains.short_label
label:
column: 'LNG_LABEL'
domain: domains.medium_label
property: className: 'Property'
constraints: {type: 'unique', properties: ['code']}
mapping['Translation'] =
table: 'TRANSLATIONS'
id:
name: 'id'
column: 'TRL_ID'
domain: domains.serial
properties:
value:
column: 'TRL_VALUE'
domain: domains.comment
language:
className: 'Language'
nullable: false
# since the unique index starts with this property
# there is no need for a separate index to make joinction on foreign key faster
# this is the default behaviour on mysql
fkindex: false
property:
className: 'Property'
nullable: false
constraints: {type: 'unique', properties: ['language', 'property']}
mapping['Country'] =
table: 'COUNTRIES'
id:
name: 'id'
column: 'CRY_ID'
domain: domains.serial
properties:
code:
column: 'CRY_CODE'
domain: domains.code
nullable: false
property: className: 'Property'
{PersistenceManager} = require('../')
Model = PersistenceManager::Model
class ModelA extends Model
className: 'ClassA'
mapping['ClassA'] =
ctor: ModelA
table: 'CLASS_A'
id:
name: 'PI:NAME:<NAME>END_PI'
column: 'A_ID'
domain: domains.serial
properties:
propA1:
column: 'PROP_A1'
domain: domains.short_label
propA2:
column: 'PROP_A2'
domain: domains.short_label
propA3:
column: 'PROP_A3'
domain: domains.short_label
creationDate:
column: 'CREATION_DATE'
domain: domains.datetime
modificationDate:
column: 'MODIFICATION_DATE'
domain: domains.mdate
version:
lock: true
column: 'VERSION'
domain: domains.version
class ModelB extends Model
className: 'ClassB'
mapping['ClassB'] =
ctor: ModelB
table: 'CLASS_B'
id: className: 'ClassA'
properties:
propB1:
column: 'PROP_B1'
domain: domains.short_label
propB2:
column: 'PROP_B2'
domain: domains.short_label
propB3:
column: 'PROP_B3'
domain: domains.short_label
class ModelC extends Model
className: 'ClassC'
mapping['ClassC'] =
ctor: ModelC
table: 'CLASS_C'
id:
name: 'idC'
column: 'C_ID'
domain: domains.serial
properties:
propC1:
column: 'PROP_C1'
domain: domains.short_label
propC2:
column: 'PROP_C2'
domain: domains.short_label
propC3:
column: 'PROP_C3'
domain: domains.short_label
class ModelD extends Model
className: 'ClassD'
mapping['ClassD'] =
ctor: ModelD
table: 'CLASS_D'
id: className: 'ClassA'
mixins: 'ClassC'
properties:
propD1:
column: 'PROP_D1'
domain: domains.short_label
propD2:
column: 'PROP_D2'
domain: domains.short_label
propD3:
column: 'PROP_D3'
domain: domains.short_label
class ModelE extends Model
className: 'ClassE'
mapping['ClassE'] =
ctor: ModelE
table: 'CLASS_E'
id: className: 'ClassB'
mixins: 'ClassC'
properties:
propE1:
column: 'PROP_E1'
domain: domains.short_label
propE2:
column: 'PROP_E2'
domain: domains.short_label
propE3:
column: 'PROP_E3'
domain: domains.short_label
class ModelF extends Model
className: 'ClassF'
mapping['ClassF'] =
ctor: ModelF
table: 'CLASS_F'
id:
className: 'ClassC'
pk: 'CUSTOM'
properties:
propF1:
column: 'PROP_F1'
domain: domains.short_label
propF2:
column: 'PROP_F2'
domain: domains.short_label
propF3:
column: 'PROP_F3'
domain: domains.short_label
propClassD:
column: 'A_ID'
className: 'ClassD'
fk: 'CUSTOM'
propClassE:
column: 'CLA_A_ID'
className: 'ClassE'
class ModelG extends Model
className: 'ClassG'
mapping['ClassG'] =
ctor: ModelG
table: 'CLASS_G'
id:
name: 'PI:NAME:<NAME>END_PI'
column: 'G_ID'
domain: domains.serial
constraints: {type: 'unique', properties: ['propG1', 'propG2']}
properties:
propG1:
column: 'PROP_G1'
domain: domains.short_label
propG2:
column: 'PROP_G2'
domain: domains.short_label
propG3:
column: 'PROP_G3'
domain: domains.short_label
class ModelH extends Model
className: 'ClassH'
mapping['ClassH'] =
ctor: ModelH
table: 'CLASS_H'
mixins: ['ClassD', 'ClassG']
properties:
propH1:
column: 'PROP_H1'
domain: domains.short_label
propH2:
column: 'PROP_H2'
domain: domains.short_label
propH3:
column: 'PROP_H3'
domain: domains.short_label
class ModelI extends Model
className: 'ClassI'
mapping['ClassI'] =
ctor: ModelI
table: 'CLASS_I'
id: className: 'ClassG'
class ModelJ extends Model
className: 'ClassJ'
mapping['ClassJ'] =
ctor: ModelJ
table: 'CLASS_J'
id:
className: 'ClassC'
properties:
propJ1:
column: 'PROP_J1'
domain: domains.short_label
propJ2:
column: 'PROP_J2'
domain: domains.short_label
propJ3:
column: 'PROP_J3'
domain: domains.short_label
propJ4:
column: 'PROP_J4'
domain: domains.short_label
defaultValue: 'default value'
propClassD:
column: 'PROP_J5'
className: 'ClassD'
propClassE:
column: 'PROP_J6'
className: 'ClassE'
mapping.numeric_types =
id:
name: 'id'
type: 'smallincrements'
properties:
tinyint:
column: 'tinyint'
type: 'tinyint'
smallint:
column: 'smallint'
type: 'smallint'
integer:
column: 'integer'
type: 'integer'
bigint:
column: 'bigint'
type: 'bigint'
numeric:
column: 'numeric'
type: 'numeric'
'numeric(11,3)':
column: 'numeric(11,3)'
type: 'numeric'
type_args: [11, 3]
float:
column: 'float'
type: 'float'
double:
column: 'double'
type: 'double'
mapping.character_types =
id:
name: 'id'
type: 'increments'
properties:
char:
column: 'char'
type: 'char'
varchar:
column: 'varchar'
type: 'varchar'
tinytext:
column: 'tinytext'
type: 'tinytext'
mediumtext:
column: 'mediumtext'
type: 'mediumtext'
text:
column: 'text'
type: 'text'
mapping.date_time_types =
id:
name: 'id'
type: 'bigincrements'
properties:
date:
column: 'date'
type: 'date'
datetime:
column: 'datetime'
type: 'datetime'
timestamp:
column: 'timestamp'
type: 'timestamp'
time:
column: 'time'
type: 'time'
mapping.other_types =
id:
name: 'id'
type: 'smallincrements'
properties:
bool:
column: 'bool'
type: 'bool'
enum:
column: 'enum'
type: 'enum'
type_args: ['a', 'b', 'c', 'd']
binary:
column: 'binary'
type: 'binary'
varbinary:
column: 'varbinary'
type: 'varbinary'
bit:
column: 'bit'
type: 'bit'
varbit:
column: 'varbit'
type: 'varbit'
xml:
column: 'xml'
type: 'xml'
json:
column: 'json'
type: 'json'
jsonb:
column: 'jsonb'
type: 'jsonb'
uuid:
column: 'uuid'
type: 'uuid'
|
[
{
"context": " draggable part of the unit\n#\n# Copyright (C) 2011 Nikolay Nemshilov\n#\nDraggable =\n # default options\n Options:\n ",
"end": 75,
"score": 0.999887228012085,
"start": 58,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | stl/dnd/src/draggable.coffee | lovely-io/lovely.io-stl | 2 | #
# The draggable part of the unit
#
# Copyright (C) 2011 Nikolay Nemshilov
#
Draggable =
# default options
Options:
handle: null # a handle element that will start the drag
snap: 0 # a number in pixels or [x,y]
axis: null # null or 'x' or 'y' or 'vertical' or 'horizontal'
range: null # {x: [min, max], y: [min, max]} or reference to another element
dragClass: 'dragging' # the in-process class name
clone: false # if should keep a clone in place
revert: false # marker if the object should be moved back on finish
revertDuration: 'normal' # the moving back fx duration
scroll: true # if it should automatically scroll
scrollSensitivity: 32 # the scrolling area size in pixels
zIndex: 999999999 # the element's z-index
moveOut: false # marker if the draggable should be moved out of it's context (for overflown
# currently dragged element reference
current: null
#
# Switches on/off the draggability
#
# @param {Object|Boolean} options or `true|false` to switch on/off
# @return {Element} this
#
draggable: (options)->
if options is false
delete(@__draggable)
else if !('__draggable' of @)
@__draggable = make_draggable(this, options)
return @
# private
# x,y offsets from the cursor and relative scope
draggable_offset_x = 0
draggable_offset_y = 0
draggable_offset_rx = 0
draggable_offset_ry = 0
#
# Makes a draggable unit
#
# @param
#
make_draggable = (element, options)->
options = merge('draggable', element, options)
# finding the handle element
options.handle = $(options.handle) if isString(options.handle)
options.handle = options.handle[0] if isArray(options.handle)
options.handle = options.handle || element
if isArray(options.snap)
options.snapX = options.snap[0]
options.snapY = options.snap[1]
else
options.snapX = options.snapY = options.snap || 0
options.axisX = options.axis in ['x', 'horizontal']
options.axisY = options.axis in ['y', 'vertical']
return options
#
# Precalculates the movement constraints
#
draggable_calc_constraints = (element, options)->
options.ranged = false
if range = options.range
options.ranged = true
# if the range is defined by another element
range_element = $(range)
if range_element.position
position = range_element.position()
range =
x: [position.x, position.x + range_element.size().x]
y: [position.y, position.y + range_element.size().y]
if isObject(range)
if 'x' of range
options.minX = range.x[0]
options.maxX = range.x[1] - element.size().x
if 'y' of range
options.minY = range.y[0]
options.maxY = range.y[1] - element.size().y
return #nothing
#
# Starts the drag process
#
# @param {dom.Event} event
# @param {dom.Element} draggable
#
draggable_start = (event, element)->
return if event.which > 1 # triggered only by right click
event.type = 'beforedragstart'
element.emit event
droppable_prepare_targets()
options = element.__draggable
position = element.position()
# getting the cursor position offset
draggable_offset_x = event.pageX - position.x
draggable_offset_y = event.pageY - position.y
# grabbing the relative position diffs for nested spaces
draggable_offset_rx = 0
draggable_offset_ry = 0
parent = element.parent()
while parent instanceof $.Element
if parent.style('position') isnt 'static'
parent = parent.position()
draggable_offset_rx = parent.x
draggable_offset_ry = parent.y
break
parent = parent.parent()
# preserving the element sizes
size = element.style('width,height')
size.width = element.size().x + 'px' if size.width is 'auto'
size.height = element.size().y + 'px' if size.height is 'auto'
# building a clone element if necessary
if options.clone or options.revert
options._clone = element.clone().style({
visibility: if options.clone then 'visible' else 'hidden'
}).insertTo(element, 'after')
# reinserting the element to the body so it was over all the other elements
element.style({
position: 'absolute',
zIndex: Draggable.Options.zIndex++,
top: position.y - draggable_offset_ry + 'px',
left: position.x - draggable_offset_rx + 'px',
width: size.x,
height: size.y
}).addClass(options.dragClass)
element.insertTo(document.body) if options.moveOut
# caching the window scrolls
options.winScrolls = $(window).scrolls();
options.winSizes = $(window).size();
draggable_calc_constraints(element, options)
Draggable.current = element
element.emit('dragstart')
#
# Moves the draggable unit
#
# @param {dom.Event} event
# @param {dom.Element} draggable
#
draggable_move = (event, element)->
options = element.__draggable
page_x = event.pageX
page_y = event.pageY
x = page_x - draggable_offset_x
y = page_y - draggable_offset_y
# checking the range
if options.ranged
x = options.minX if options.minX > x
x = options.maxX if options.maxX < x
y = options.minY if options.minY > y
y = options.maxY if options.maxY < y
# checking the scrolls
if options.scroll
scrolls = x: options.winScrolls.x, y: options.winScrolls.y
sensitivity = options.scrollSensitivity
if (page_y - scrolls.y) < sensitivity
scrolls.y = page_y - sensitivity
else if (scrolls.y + options.winSizes.y - page_y) < sensitivity
scrolls.y = page_y - options.winSizes.y + sensitivity
if (page_x - scrolls.x) < sensitivity
scrolls.x = page_x - sensitivity
else if (scrolls.x + options.winSizes.x - page_x) < sensitivity
scrolls.x = page_x - options.winSizes.x + sensitivity
scrolls.y = 0 if scrolls.y < 0
scrolls.x = 0 if scrolls.x < 0
if scrolls.y < options.winScrolls.y || scrolls.y > options.winScrolls.y ||
scrolls.x < options.winScrolls.x || scrolls.x > options.winScrolls.x
$(window).scrolls(options.winScrolls = scrolls)
# checking the snaps
x = x - x % options.snapX if options.snapX
y = y - y % options.snapY if options.snapY
# checking the constraints
element._.style.left = x - draggable_offset_rx + 'px' unless options.axisY
element._.style.top = y - draggable_offset_ry + 'px' unless options.axisX
event.type = 'drag'
element.emit event
#
# Finishes the drag
#
# @param {dom.Event} event
# @param {dom.Element} element
#
draggable_drop = (event, element)->
options = element.__draggable
element.removeClass(options.dragClass)
# notifying the droppables for the drop
droppable_check_drop(event, element)
if options.revert
draggable_revert(element, options)
else
Draggable.current = null
event.type = 'dragend'
element.emit(event)
#
# Moves the element's position and size back
#
# @param {dom.Element} element
# @param {Object} options
#
draggable_revert = (element, options)->
position = options._clone.position();
end_style =
top: position.y - draggable_offset_ry + 'px'
left: position.x - draggable_offset_rx + 'px'
if options.revertDuration and element.animate
element.animate end_style,
duration: options.revertDuration
finish: -> draggable_swap_back(element, options)
else
element.style(end_style)
draggable_swap_back(element, options)
return # nothing
#
# Swaps back the element and it's clone
#
# @param {dom.Element} element
# @param {Object} options
#
#
draggable_swap_back = (element, options)->
if options._clone
element.style options._clone.style('width,height,position,zIndex')
options._clone.replace(element)
Draggable.current = null | 152839 | #
# The draggable part of the unit
#
# Copyright (C) 2011 <NAME>
#
Draggable =
# default options
Options:
handle: null # a handle element that will start the drag
snap: 0 # a number in pixels or [x,y]
axis: null # null or 'x' or 'y' or 'vertical' or 'horizontal'
range: null # {x: [min, max], y: [min, max]} or reference to another element
dragClass: 'dragging' # the in-process class name
clone: false # if should keep a clone in place
revert: false # marker if the object should be moved back on finish
revertDuration: 'normal' # the moving back fx duration
scroll: true # if it should automatically scroll
scrollSensitivity: 32 # the scrolling area size in pixels
zIndex: 999999999 # the element's z-index
moveOut: false # marker if the draggable should be moved out of it's context (for overflown
# currently dragged element reference
current: null
#
# Switches on/off the draggability
#
# @param {Object|Boolean} options or `true|false` to switch on/off
# @return {Element} this
#
draggable: (options)->
if options is false
delete(@__draggable)
else if !('__draggable' of @)
@__draggable = make_draggable(this, options)
return @
# private
# x,y offsets from the cursor and relative scope
draggable_offset_x = 0
draggable_offset_y = 0
draggable_offset_rx = 0
draggable_offset_ry = 0
#
# Makes a draggable unit
#
# @param
#
make_draggable = (element, options)->
options = merge('draggable', element, options)
# finding the handle element
options.handle = $(options.handle) if isString(options.handle)
options.handle = options.handle[0] if isArray(options.handle)
options.handle = options.handle || element
if isArray(options.snap)
options.snapX = options.snap[0]
options.snapY = options.snap[1]
else
options.snapX = options.snapY = options.snap || 0
options.axisX = options.axis in ['x', 'horizontal']
options.axisY = options.axis in ['y', 'vertical']
return options
#
# Precalculates the movement constraints
#
draggable_calc_constraints = (element, options)->
options.ranged = false
if range = options.range
options.ranged = true
# if the range is defined by another element
range_element = $(range)
if range_element.position
position = range_element.position()
range =
x: [position.x, position.x + range_element.size().x]
y: [position.y, position.y + range_element.size().y]
if isObject(range)
if 'x' of range
options.minX = range.x[0]
options.maxX = range.x[1] - element.size().x
if 'y' of range
options.minY = range.y[0]
options.maxY = range.y[1] - element.size().y
return #nothing
#
# Starts the drag process
#
# @param {dom.Event} event
# @param {dom.Element} draggable
#
draggable_start = (event, element)->
return if event.which > 1 # triggered only by right click
event.type = 'beforedragstart'
element.emit event
droppable_prepare_targets()
options = element.__draggable
position = element.position()
# getting the cursor position offset
draggable_offset_x = event.pageX - position.x
draggable_offset_y = event.pageY - position.y
# grabbing the relative position diffs for nested spaces
draggable_offset_rx = 0
draggable_offset_ry = 0
parent = element.parent()
while parent instanceof $.Element
if parent.style('position') isnt 'static'
parent = parent.position()
draggable_offset_rx = parent.x
draggable_offset_ry = parent.y
break
parent = parent.parent()
# preserving the element sizes
size = element.style('width,height')
size.width = element.size().x + 'px' if size.width is 'auto'
size.height = element.size().y + 'px' if size.height is 'auto'
# building a clone element if necessary
if options.clone or options.revert
options._clone = element.clone().style({
visibility: if options.clone then 'visible' else 'hidden'
}).insertTo(element, 'after')
# reinserting the element to the body so it was over all the other elements
element.style({
position: 'absolute',
zIndex: Draggable.Options.zIndex++,
top: position.y - draggable_offset_ry + 'px',
left: position.x - draggable_offset_rx + 'px',
width: size.x,
height: size.y
}).addClass(options.dragClass)
element.insertTo(document.body) if options.moveOut
# caching the window scrolls
options.winScrolls = $(window).scrolls();
options.winSizes = $(window).size();
draggable_calc_constraints(element, options)
Draggable.current = element
element.emit('dragstart')
#
# Moves the draggable unit
#
# @param {dom.Event} event
# @param {dom.Element} draggable
#
draggable_move = (event, element)->
options = element.__draggable
page_x = event.pageX
page_y = event.pageY
x = page_x - draggable_offset_x
y = page_y - draggable_offset_y
# checking the range
if options.ranged
x = options.minX if options.minX > x
x = options.maxX if options.maxX < x
y = options.minY if options.minY > y
y = options.maxY if options.maxY < y
# checking the scrolls
if options.scroll
scrolls = x: options.winScrolls.x, y: options.winScrolls.y
sensitivity = options.scrollSensitivity
if (page_y - scrolls.y) < sensitivity
scrolls.y = page_y - sensitivity
else if (scrolls.y + options.winSizes.y - page_y) < sensitivity
scrolls.y = page_y - options.winSizes.y + sensitivity
if (page_x - scrolls.x) < sensitivity
scrolls.x = page_x - sensitivity
else if (scrolls.x + options.winSizes.x - page_x) < sensitivity
scrolls.x = page_x - options.winSizes.x + sensitivity
scrolls.y = 0 if scrolls.y < 0
scrolls.x = 0 if scrolls.x < 0
if scrolls.y < options.winScrolls.y || scrolls.y > options.winScrolls.y ||
scrolls.x < options.winScrolls.x || scrolls.x > options.winScrolls.x
$(window).scrolls(options.winScrolls = scrolls)
# checking the snaps
x = x - x % options.snapX if options.snapX
y = y - y % options.snapY if options.snapY
# checking the constraints
element._.style.left = x - draggable_offset_rx + 'px' unless options.axisY
element._.style.top = y - draggable_offset_ry + 'px' unless options.axisX
event.type = 'drag'
element.emit event
#
# Finishes the drag
#
# @param {dom.Event} event
# @param {dom.Element} element
#
draggable_drop = (event, element)->
options = element.__draggable
element.removeClass(options.dragClass)
# notifying the droppables for the drop
droppable_check_drop(event, element)
if options.revert
draggable_revert(element, options)
else
Draggable.current = null
event.type = 'dragend'
element.emit(event)
#
# Moves the element's position and size back
#
# @param {dom.Element} element
# @param {Object} options
#
draggable_revert = (element, options)->
position = options._clone.position();
end_style =
top: position.y - draggable_offset_ry + 'px'
left: position.x - draggable_offset_rx + 'px'
if options.revertDuration and element.animate
element.animate end_style,
duration: options.revertDuration
finish: -> draggable_swap_back(element, options)
else
element.style(end_style)
draggable_swap_back(element, options)
return # nothing
#
# Swaps back the element and it's clone
#
# @param {dom.Element} element
# @param {Object} options
#
#
draggable_swap_back = (element, options)->
if options._clone
element.style options._clone.style('width,height,position,zIndex')
options._clone.replace(element)
Draggable.current = null | true | #
# The draggable part of the unit
#
# Copyright (C) 2011 PI:NAME:<NAME>END_PI
#
Draggable =
# default options
Options:
handle: null # a handle element that will start the drag
snap: 0 # a number in pixels or [x,y]
axis: null # null or 'x' or 'y' or 'vertical' or 'horizontal'
range: null # {x: [min, max], y: [min, max]} or reference to another element
dragClass: 'dragging' # the in-process class name
clone: false # if should keep a clone in place
revert: false # marker if the object should be moved back on finish
revertDuration: 'normal' # the moving back fx duration
scroll: true # if it should automatically scroll
scrollSensitivity: 32 # the scrolling area size in pixels
zIndex: 999999999 # the element's z-index
moveOut: false # marker if the draggable should be moved out of it's context (for overflown
# currently dragged element reference
current: null
#
# Switches on/off the draggability
#
# @param {Object|Boolean} options or `true|false` to switch on/off
# @return {Element} this
#
draggable: (options)->
if options is false
delete(@__draggable)
else if !('__draggable' of @)
@__draggable = make_draggable(this, options)
return @
# private
# x,y offsets from the cursor and relative scope
draggable_offset_x = 0
draggable_offset_y = 0
draggable_offset_rx = 0
draggable_offset_ry = 0
#
# Makes a draggable unit
#
# @param
#
make_draggable = (element, options)->
options = merge('draggable', element, options)
# finding the handle element
options.handle = $(options.handle) if isString(options.handle)
options.handle = options.handle[0] if isArray(options.handle)
options.handle = options.handle || element
if isArray(options.snap)
options.snapX = options.snap[0]
options.snapY = options.snap[1]
else
options.snapX = options.snapY = options.snap || 0
options.axisX = options.axis in ['x', 'horizontal']
options.axisY = options.axis in ['y', 'vertical']
return options
#
# Precalculates the movement constraints
#
draggable_calc_constraints = (element, options)->
options.ranged = false
if range = options.range
options.ranged = true
# if the range is defined by another element
range_element = $(range)
if range_element.position
position = range_element.position()
range =
x: [position.x, position.x + range_element.size().x]
y: [position.y, position.y + range_element.size().y]
if isObject(range)
if 'x' of range
options.minX = range.x[0]
options.maxX = range.x[1] - element.size().x
if 'y' of range
options.minY = range.y[0]
options.maxY = range.y[1] - element.size().y
return #nothing
#
# Starts the drag process
#
# @param {dom.Event} event
# @param {dom.Element} draggable
#
draggable_start = (event, element)->
return if event.which > 1 # triggered only by right click
event.type = 'beforedragstart'
element.emit event
droppable_prepare_targets()
options = element.__draggable
position = element.position()
# getting the cursor position offset
draggable_offset_x = event.pageX - position.x
draggable_offset_y = event.pageY - position.y
# grabbing the relative position diffs for nested spaces
draggable_offset_rx = 0
draggable_offset_ry = 0
parent = element.parent()
while parent instanceof $.Element
if parent.style('position') isnt 'static'
parent = parent.position()
draggable_offset_rx = parent.x
draggable_offset_ry = parent.y
break
parent = parent.parent()
# preserving the element sizes
size = element.style('width,height')
size.width = element.size().x + 'px' if size.width is 'auto'
size.height = element.size().y + 'px' if size.height is 'auto'
# building a clone element if necessary
if options.clone or options.revert
options._clone = element.clone().style({
visibility: if options.clone then 'visible' else 'hidden'
}).insertTo(element, 'after')
# reinserting the element to the body so it was over all the other elements
element.style({
position: 'absolute',
zIndex: Draggable.Options.zIndex++,
top: position.y - draggable_offset_ry + 'px',
left: position.x - draggable_offset_rx + 'px',
width: size.x,
height: size.y
}).addClass(options.dragClass)
element.insertTo(document.body) if options.moveOut
# caching the window scrolls
options.winScrolls = $(window).scrolls();
options.winSizes = $(window).size();
draggable_calc_constraints(element, options)
Draggable.current = element
element.emit('dragstart')
#
# Moves the draggable unit
#
# @param {dom.Event} event
# @param {dom.Element} draggable
#
draggable_move = (event, element)->
options = element.__draggable
page_x = event.pageX
page_y = event.pageY
x = page_x - draggable_offset_x
y = page_y - draggable_offset_y
# checking the range
if options.ranged
x = options.minX if options.minX > x
x = options.maxX if options.maxX < x
y = options.minY if options.minY > y
y = options.maxY if options.maxY < y
# checking the scrolls
if options.scroll
scrolls = x: options.winScrolls.x, y: options.winScrolls.y
sensitivity = options.scrollSensitivity
if (page_y - scrolls.y) < sensitivity
scrolls.y = page_y - sensitivity
else if (scrolls.y + options.winSizes.y - page_y) < sensitivity
scrolls.y = page_y - options.winSizes.y + sensitivity
if (page_x - scrolls.x) < sensitivity
scrolls.x = page_x - sensitivity
else if (scrolls.x + options.winSizes.x - page_x) < sensitivity
scrolls.x = page_x - options.winSizes.x + sensitivity
scrolls.y = 0 if scrolls.y < 0
scrolls.x = 0 if scrolls.x < 0
if scrolls.y < options.winScrolls.y || scrolls.y > options.winScrolls.y ||
scrolls.x < options.winScrolls.x || scrolls.x > options.winScrolls.x
$(window).scrolls(options.winScrolls = scrolls)
# checking the snaps
x = x - x % options.snapX if options.snapX
y = y - y % options.snapY if options.snapY
# checking the constraints
element._.style.left = x - draggable_offset_rx + 'px' unless options.axisY
element._.style.top = y - draggable_offset_ry + 'px' unless options.axisX
event.type = 'drag'
element.emit event
#
# Finishes the drag
#
# @param {dom.Event} event
# @param {dom.Element} element
#
draggable_drop = (event, element)->
options = element.__draggable
element.removeClass(options.dragClass)
# notifying the droppables for the drop
droppable_check_drop(event, element)
if options.revert
draggable_revert(element, options)
else
Draggable.current = null
event.type = 'dragend'
element.emit(event)
#
# Moves the element's position and size back
#
# @param {dom.Element} element
# @param {Object} options
#
draggable_revert = (element, options)->
position = options._clone.position();
end_style =
top: position.y - draggable_offset_ry + 'px'
left: position.x - draggable_offset_rx + 'px'
if options.revertDuration and element.animate
element.animate end_style,
duration: options.revertDuration
finish: -> draggable_swap_back(element, options)
else
element.style(end_style)
draggable_swap_back(element, options)
return # nothing
#
# Swaps back the element and it's clone
#
# @param {dom.Element} element
# @param {Object} options
#
#
draggable_swap_back = (element, options)->
if options._clone
element.style options._clone.style('width,height,position,zIndex')
options._clone.replace(element)
Draggable.current = null |
[
{
"context": "key: 'kbd-macro'\n\npatterns: [\n\n # Matches either the kbd or btn ",
"end": 15,
"score": 0.6324081420898438,
"start": 6,
"tag": "KEY",
"value": "kbd-macro"
}
] | grammars/repositories/inlines/kbd-macro-grammar.cson | andrewcarver/atom-language-asciidoc | 45 | key: 'kbd-macro'
patterns: [
# Matches either the kbd or btn inline macro.
#
# Examples
#
# kbd:[F3]
# kbd:[Ctrl+Shift+T]
# kbd:[Ctrl+\]]
# kbd:[Ctrl,T]
# btn:[Save]
#
name: 'markup.macro.kbd.asciidoc'
match: '(?<!\\\\)(kbd|btn):(\\[)((?:\\\\\\]|[^\\]])+?)(\\])'
captures:
1: name: 'entity.name.function.asciidoc'
3: name: 'string.unquoted.asciidoc'
]
| 38067 | key: '<KEY>'
patterns: [
# Matches either the kbd or btn inline macro.
#
# Examples
#
# kbd:[F3]
# kbd:[Ctrl+Shift+T]
# kbd:[Ctrl+\]]
# kbd:[Ctrl,T]
# btn:[Save]
#
name: 'markup.macro.kbd.asciidoc'
match: '(?<!\\\\)(kbd|btn):(\\[)((?:\\\\\\]|[^\\]])+?)(\\])'
captures:
1: name: 'entity.name.function.asciidoc'
3: name: 'string.unquoted.asciidoc'
]
| true | key: 'PI:KEY:<KEY>END_PI'
patterns: [
# Matches either the kbd or btn inline macro.
#
# Examples
#
# kbd:[F3]
# kbd:[Ctrl+Shift+T]
# kbd:[Ctrl+\]]
# kbd:[Ctrl,T]
# btn:[Save]
#
name: 'markup.macro.kbd.asciidoc'
match: '(?<!\\\\)(kbd|btn):(\\[)((?:\\\\\\]|[^\\]])+?)(\\])'
captures:
1: name: 'entity.name.function.asciidoc'
3: name: 'string.unquoted.asciidoc'
]
|
[
{
"context": " stock price\n#\n# Author:\n# Symphony Integration by Vinay Mistry\nEntities = require('html-entities').XmlEntities\ne",
"end": 1065,
"score": 0.9998654723167419,
"start": 1053,
"tag": "NAME",
"value": "Vinay Mistry"
}
] | src/scripts/stock.coffee | Mohannrajk/Github-raj | 0 | #
#
#
# Copyright 2016 Symphony Communication Services, LLC
#
# Licensed to Symphony Communication Services, LLC under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
#
#
# Description
# Get a stock price
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# stock <ticker> [1d|5d|2w|1mon|1y] - Get a stock price
#
# Author:
# Symphony Integration by Vinay Mistry
Entities = require('html-entities').XmlEntities
entities = new Entities()
module.exports = (robot) ->
robot.hear /stock (?:info|price|quote)?\s?(?:for|me)?\s?@?([A-Za-z0-9.-_]+)\s?(\d+\w+)?/i, (msg) ->
ticker = escape(msg.match[1])
time = msg.match[2] || '5d'
msg.http('http://finance.google.com/finance/info?client=ig&q=' + ticker)
.get() (err, res, body) ->
if err
msg.send "Failed to look up #{ticker}"
else
try
result = JSON.parse(body.replace(/\/\/ /, ''))
url = "http://chart.finance.yahoo.com/z?s=#{ticker}&t=#{time}&q=l&l=on&z=l&a=v&p=s&lang=en-US®ion=US#.png"
msg.send {
format: 'MESSAGEML'
text: "<messageML><cash tag=\"#{ticker.toUpperCase()}\"/> <b>@ $#{entities.encode(result[0].l_cur)} #{result[0].c} #{result[0].ltt}</b><br/><a href=\"#{entities.encode(url)}\"/></messageML>"
}
| 40018 | #
#
#
# Copyright 2016 Symphony Communication Services, LLC
#
# Licensed to Symphony Communication Services, LLC under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
#
#
# Description
# Get a stock price
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# stock <ticker> [1d|5d|2w|1mon|1y] - Get a stock price
#
# Author:
# Symphony Integration by <NAME>
Entities = require('html-entities').XmlEntities
entities = new Entities()
module.exports = (robot) ->
robot.hear /stock (?:info|price|quote)?\s?(?:for|me)?\s?@?([A-Za-z0-9.-_]+)\s?(\d+\w+)?/i, (msg) ->
ticker = escape(msg.match[1])
time = msg.match[2] || '5d'
msg.http('http://finance.google.com/finance/info?client=ig&q=' + ticker)
.get() (err, res, body) ->
if err
msg.send "Failed to look up #{ticker}"
else
try
result = JSON.parse(body.replace(/\/\/ /, ''))
url = "http://chart.finance.yahoo.com/z?s=#{ticker}&t=#{time}&q=l&l=on&z=l&a=v&p=s&lang=en-US®ion=US#.png"
msg.send {
format: 'MESSAGEML'
text: "<messageML><cash tag=\"#{ticker.toUpperCase()}\"/> <b>@ $#{entities.encode(result[0].l_cur)} #{result[0].c} #{result[0].ltt}</b><br/><a href=\"#{entities.encode(url)}\"/></messageML>"
}
| true | #
#
#
# Copyright 2016 Symphony Communication Services, LLC
#
# Licensed to Symphony Communication Services, LLC under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
#
#
# Description
# Get a stock price
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# stock <ticker> [1d|5d|2w|1mon|1y] - Get a stock price
#
# Author:
# Symphony Integration by PI:NAME:<NAME>END_PI
Entities = require('html-entities').XmlEntities
entities = new Entities()
module.exports = (robot) ->
robot.hear /stock (?:info|price|quote)?\s?(?:for|me)?\s?@?([A-Za-z0-9.-_]+)\s?(\d+\w+)?/i, (msg) ->
ticker = escape(msg.match[1])
time = msg.match[2] || '5d'
msg.http('http://finance.google.com/finance/info?client=ig&q=' + ticker)
.get() (err, res, body) ->
if err
msg.send "Failed to look up #{ticker}"
else
try
result = JSON.parse(body.replace(/\/\/ /, ''))
url = "http://chart.finance.yahoo.com/z?s=#{ticker}&t=#{time}&q=l&l=on&z=l&a=v&p=s&lang=en-US®ion=US#.png"
msg.send {
format: 'MESSAGEML'
text: "<messageML><cash tag=\"#{ticker.toUpperCase()}\"/> <b>@ $#{entities.encode(result[0].l_cur)} #{result[0].c} #{result[0].ltt}</b><br/><a href=\"#{entities.encode(url)}\"/></messageML>"
}
|
[
{
"context": "# Copyright 2015 SASAKI, Shunsuke. All rights reserved.\n#\n# Licensed under",
"end": 23,
"score": 0.966882586479187,
"start": 17,
"tag": "NAME",
"value": "SASAKI"
},
{
"context": "# Copyright 2015 SASAKI, Shunsuke. All rights reserved.\n#\n# Licensed under the Apac",
... | test/test_raw_driver.coffee | erukiti/cerebrums | 7 | # Copyright 2015 SASAKI, Shunsuke. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
assert = require 'power-assert'
sinon = require 'sinon'
Rx = require 'rx'
RawDriver = require '../src/raw_driver.coffee'
describe 'RawDriver', ->
it '#writeBlob', ->
dummyObservable = {}
rxfs = {writeFile: -> null}
stub = sinon.stub(rxfs, 'writeFile')
stub.withArgs('/path/blob/1234', 'hoge').returns(dummyObservable)
rawDriver = new RawDriver(rxfs, {basePath: '/path'})
assert rawDriver.writeBlob('1234', 'hoge') == dummyObservable
assert stub.calledOnce
# mock.verify()
it '#writePointer', ->
dummyObservable = {}
rxfs = {writeFile: -> null}
stub = sinon.stub(rxfs, 'writeFile')
stub.withArgs('/path/pointer/1234', 'hoge').returns(dummyObservable)
rawDriver = new RawDriver(rxfs, {basePath: '/path'})
assert rawDriver.writePointer('1234', 'hoge') == dummyObservable
assert stub.calledOnce
it '#readBlob', ->
dummyObservable = {}
rxfs = {readFile: -> null}
stub = sinon.stub(rxfs, 'readFile')
stub.withArgs('/path/blob/1234').returns(dummyObservable)
rawDriver = new RawDriver(rxfs, {basePath: '/path'})
assert rawDriver.readBlob('1234') == dummyObservable
assert stub.calledOnce
it '#readPointer', ->
dummyObservable = {}
rxfs = {readFile: -> null}
stub = sinon.stub(rxfs, 'readFile')
stub.withArgs("/path/pointer/1234").returns(dummyObservable)
rawDriver = new RawDriver(rxfs, {basePath: '/path'})
assert rawDriver.readPointer('1234') == dummyObservable
assert stub.calledOnce
it '#getAllPointer', ->
dummyObservable = {}
dummyFunc = -> null
rxfs = {readDir: dummyFunc}
stubReaddir = sinon.stub(rxfs, 'readDir')
stubReaddir.withArgs('/path/pointer').returns(Rx.Observable.just(['/path/pointer/1111']))
rawDriver = new RawDriver(rxfs, {basePath: '/path'})
rawDriver.getAllPointer().toArray().subscribe (uuids) ->
assert.deepEqual uuids, ['1111']
assert stubReaddir.calledOnce
| 86859 | # Copyright 2015 <NAME>, <NAME>. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
assert = require 'power-assert'
sinon = require 'sinon'
Rx = require 'rx'
RawDriver = require '../src/raw_driver.coffee'
describe 'RawDriver', ->
it '#writeBlob', ->
dummyObservable = {}
rxfs = {writeFile: -> null}
stub = sinon.stub(rxfs, 'writeFile')
stub.withArgs('/path/blob/1234', 'hoge').returns(dummyObservable)
rawDriver = new RawDriver(rxfs, {basePath: '/path'})
assert rawDriver.writeBlob('1234', 'hoge') == dummyObservable
assert stub.calledOnce
# mock.verify()
it '#writePointer', ->
dummyObservable = {}
rxfs = {writeFile: -> null}
stub = sinon.stub(rxfs, 'writeFile')
stub.withArgs('/path/pointer/1234', 'hoge').returns(dummyObservable)
rawDriver = new RawDriver(rxfs, {basePath: '/path'})
assert rawDriver.writePointer('1234', 'hoge') == dummyObservable
assert stub.calledOnce
it '#readBlob', ->
dummyObservable = {}
rxfs = {readFile: -> null}
stub = sinon.stub(rxfs, 'readFile')
stub.withArgs('/path/blob/1234').returns(dummyObservable)
rawDriver = new RawDriver(rxfs, {basePath: '/path'})
assert rawDriver.readBlob('1234') == dummyObservable
assert stub.calledOnce
it '#readPointer', ->
dummyObservable = {}
rxfs = {readFile: -> null}
stub = sinon.stub(rxfs, 'readFile')
stub.withArgs("/path/pointer/1234").returns(dummyObservable)
rawDriver = new RawDriver(rxfs, {basePath: '/path'})
assert rawDriver.readPointer('1234') == dummyObservable
assert stub.calledOnce
it '#getAllPointer', ->
dummyObservable = {}
dummyFunc = -> null
rxfs = {readDir: dummyFunc}
stubReaddir = sinon.stub(rxfs, 'readDir')
stubReaddir.withArgs('/path/pointer').returns(Rx.Observable.just(['/path/pointer/1111']))
rawDriver = new RawDriver(rxfs, {basePath: '/path'})
rawDriver.getAllPointer().toArray().subscribe (uuids) ->
assert.deepEqual uuids, ['1111']
assert stubReaddir.calledOnce
| true | # Copyright 2015 PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
assert = require 'power-assert'
sinon = require 'sinon'
Rx = require 'rx'
RawDriver = require '../src/raw_driver.coffee'
describe 'RawDriver', ->
it '#writeBlob', ->
dummyObservable = {}
rxfs = {writeFile: -> null}
stub = sinon.stub(rxfs, 'writeFile')
stub.withArgs('/path/blob/1234', 'hoge').returns(dummyObservable)
rawDriver = new RawDriver(rxfs, {basePath: '/path'})
assert rawDriver.writeBlob('1234', 'hoge') == dummyObservable
assert stub.calledOnce
# mock.verify()
it '#writePointer', ->
dummyObservable = {}
rxfs = {writeFile: -> null}
stub = sinon.stub(rxfs, 'writeFile')
stub.withArgs('/path/pointer/1234', 'hoge').returns(dummyObservable)
rawDriver = new RawDriver(rxfs, {basePath: '/path'})
assert rawDriver.writePointer('1234', 'hoge') == dummyObservable
assert stub.calledOnce
it '#readBlob', ->
dummyObservable = {}
rxfs = {readFile: -> null}
stub = sinon.stub(rxfs, 'readFile')
stub.withArgs('/path/blob/1234').returns(dummyObservable)
rawDriver = new RawDriver(rxfs, {basePath: '/path'})
assert rawDriver.readBlob('1234') == dummyObservable
assert stub.calledOnce
it '#readPointer', ->
dummyObservable = {}
rxfs = {readFile: -> null}
stub = sinon.stub(rxfs, 'readFile')
stub.withArgs("/path/pointer/1234").returns(dummyObservable)
rawDriver = new RawDriver(rxfs, {basePath: '/path'})
assert rawDriver.readPointer('1234') == dummyObservable
assert stub.calledOnce
it '#getAllPointer', ->
dummyObservable = {}
dummyFunc = -> null
rxfs = {readDir: dummyFunc}
stubReaddir = sinon.stub(rxfs, 'readDir')
stubReaddir.withArgs('/path/pointer').returns(Rx.Observable.just(['/path/pointer/1111']))
rawDriver = new RawDriver(rxfs, {basePath: '/path'})
rawDriver.getAllPointer().toArray().subscribe (uuids) ->
assert.deepEqual uuids, ['1111']
assert stubReaddir.calledOnce
|
[
{
"context": "an.com/doita-f.html#top and originally compiled by Chris Morton.\n#\n# Author:\n# jenrzzz\n\n\nString.prototype.capit",
"end": 562,
"score": 0.9997608661651611,
"start": 550,
"tag": "NAME",
"value": "Chris Morton"
},
{
"context": "iginally compiled by Chris Morton.\n#... | src/scripts/do-it.coffee | contolini/hubot-scripts | 1,450 | # Description:
# Ask hubot how people do it.
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot how do <group/occupation> do it? -- tells you how they do it (e.g. hubot how do hackers do it?)
# hubot <people> do it <method> -- tells hubot how <people> do it (e.g. hubot GitHubbers do it in Campfire.)
# hubot do it -- tells you a random way in which random people do it
#
# Notes:
# Node.js programmers do it asynchronously.
# List taken from http://www.dkgoodman.com/doita-f.html#top and originally compiled by Chris Morton.
#
# Author:
# jenrzzz
String.prototype.capitalize ||= -> @.charAt(0).toUpperCase() + @.slice(1)
module.exports = (robot) ->
unless robot.brain.do_it?.grouped_responses?
do_it_responses = DO_IT.split('\n')
robot.brain.do_it =
responses: do_it_responses
grouped_responses: compile_list(do_it_responses)
robot.respond /do it$/i, (msg) ->
msg.send msg.random(robot.brain.do_it.responses)
robot.respond /how (?:do|does) (.+) do it\??/i, (msg) ->
group = msg.match[1].toLowerCase().trim()
if robot.brain.do_it.grouped_responses[group]?
msg.send msg.random robot.brain.do_it.grouped_responses[group]
else
msg.send "Hmmm, I'm not sure how they do it."
robot.respond /(.+) (?:do|does) it (?:.+)/i, (msg) ->
group = msg.match[1].toLowerCase().trim()
robot.brain.do_it.responses.push msg.match[0]
robot.brain.do_it.grouped_responses[group] ||= []
robot.brain.do_it.grouped_responses[group].push msg.match[0].slice(msg.match[0].indexOf(' ') + 1).capitalize()
compile_list = (responses) ->
grouped = {}
responses.forEach (r) ->
if /do it/.test(r)
group_name = r.slice(0, r.indexOf('do it')).toLowerCase().trim()
else
group_name = r.slice(0, r.indexOf(' ')).toLowerCase().trim()
grouped[group_name] ||= []
grouped[group_name].push r
return grouped
DO_IT = '''A king does it with his official seal.
Accountants are good with figures.
Accountants do it for profit.
Accountants do it with balance.
Accountants do it with double entry.
Accy majors do it in numbers.
Acrophobes get down.
Actors do it in the limelight.
Actors do it on camera.
Actors do it on cue.
Actors do it on stage.
Actors play around.
Actors pretend doing it.
Actuaries probably do it
Actuaries do it continuously and discretely.
Actuaries do it with varying rates of interest.
Actuaries do it with models.
Actuaries do it on tables.
Actuaries do it with frequency and severity.
Actuaries do it until death or disability, whichever comes first.
Acupuncturists do it with a small prick.
Ada programmers do it by committee.
Ada programmers do it in packages.
Advertisers use the "new, improved" method.
Advertising majors do it with style.
Aerobics instructors do it until it hurts.
Aerospace engineers do it with lift and thrust.
Agents do it undercover.
AI hackers do it artificially.
AI hackers do it breast first.
AI hackers do it depth first.
AI hackers do it robotically.
AI hackers do it with robots.
AI hackers do it with rules.
AI hackers make a big production out of it.
AI people do it with a lisp.
Air couriers do it all over the world in big jets.
Air traffic controllers do it by radar.
Air traffic controllers do it in the dark.
Air traffic controllers do it with their tongue.
Air traffic controllers tell pilots how to do it.
Air traffic, getting things down safely.
Airlifters penetrate further, linger longer, and drop a bigger load.
Airline pilots do it at incredible heights.
Alexander Portnoy does it alone.
Algebraists do it with homomorphisms.
Algorithmic analysts do it with a combinatorial explosion.
Alpinists do it higher.
Alvin Toffler will do it in the future.
AM disc jockeys do it with modulated amplitude.
Amateur radio operators do it with frequency.
Ambulance drivers come quicker.
America finds it at Waldenbooks.
Anaesthetists do it until you fall asleep.
Analog hackers do it continuously.
Anarchists do it revoltingly.
Anesthetists do it painlessly.
Anglers do it with worms.
Animators do it 24 times a second.
Announcers broadcast.
ANSI does it in the standard way.
Anthropologists do it with culture.
APL programmers are functional.
APL programmers do it backwards.
APL programmers do it in a line.
APL programmers do it in the workspace.
APL programmers do it with stile.
Apologists do it orally.
Archaeologists do it in the dirt.
Archaeologists do it with mummies.
Archaeologists like it old.
Archers use longer shafts.
Architects are responsible for the tallest erections.
Architects do it late.
Architects have great plans.
Architectural historians can tell you who put it up and how big it was.
Architecture majors stay up all night.
Arlo Guthrie does it on his motorcycle.
Arsonists do it with fire.
Art historians can tell you who did it, where they did it, what they.
Artillerymen do it with a burst.
Artists are exhibitionists.
Artists do it by design.
Artists do it in the buff.
Artists do it with creativity.
Artists do it with emotion.
Assassins do it from behind.
Assembly line workers do it over and over.
Assembly programmers do it a byte at a time.
Assembly programmers only get a little bit to play with.
Astronauts do it in orbit.
Astronauts do it on re-entry.
Astronauts do it on the moon.
Astronomers can't do it with the lights on.
Astronomers do it all night.
Astronomers do it from light-years away.
Astronomers do it in the dark.
Astronomers do it only at night.
Astronomers do it under the stars.
Astronomers do it whenever they can find a hole in the clouds.
Astronomers do it while gazing at Uranus.
Astronomers do it with all the stars.
Astronomers do it with a big bang.
Astronomers do it with heavenly bodies.
Astronomers do it with long tubes.
Astronomers do it with stars.
Astronomers do it with their telescopes.
Astronomers do it with Uranus.
Astrophysicists do it with a big bang.
AT&T does it in long lines.
Attorneys make better motions.
Auditors like to examine figures.
Australians do it down under.
Authors do it by rote.
Auto makers do it with optional equipment.
Auto makers do it with standard equipment.
Auto mechanics do it under hoods, using oil and grease.
Babies do it in their pants.
Babysitters charge by the hour.
Bach did it with the organ.
Bailiffs always come to order.
Bakers do it for the dough.
Bakers knead it daily.
Ballerinas do it en point.
Ballet dancers do it on tip-toe.
Ballet dancers do it with toes.
Banana pickers do it in bunches.
Band members do it all night.
Band members do it in a parade.
Band members do it in front of 100,000 people.
Band members do it in public.
Band members do it in sectionals.
Band members do it on the football field.
Band members play all night.
Banjo players pluck with a stiff pick.
Bank tellers do it with interest. Penalty for early withdrawl.
Bankers do it for money, but there is a penalty for early withdrawal.
Bankers do it with interest, but pay for early withdrawl.
Baptists do it under water.
Barbarians do it with anything. (So do orcs.)
Barbers do it and end up with soaping hair.
Barbers do it with Brylcreem.
Barbers do it with shear pleasure.
Bartenders do it on the rocks.
Baseball players do it for a lot of money.
Baseball players do it in teams.
Baseball players do it with their bats.
Baseball players hit more home runs.
Baseball players make it to first base.
Basic programmers do it all over the place.
Basic programmers goto it.
Basketball players score more often.
Bass players just pluck at it.
Bassists do it with their fingers.
Batman does it with Robin.
Bayseians probably do it.
Beekeepers like to eat their honey.
Beer brewers do it with more hops.
Beer drinkers get more head.
Beethoven did it apassionately.
Beethoven was the first to do it with a full orchestra.
Bell labs programmers do it with Unix.
Bell-ringers pull it themselves.
Beta testers do it looking for mistakes.
Bicyclists do it with 10 speeds.
Biologists do it with clones.
Birds do it, bees do it, even chimpanzees do it.
Blind people do it in the dark.
Bloggers do it with comments.
Blondes do it with a Thermos.
Bo Jackson knows doing it.
Boardheads do it with stiff masts.
Body-builders do it with muscle.
Bookkeepers are well balanced.
Bookkeepers do it for the record.
Bookkeepers do it with double entry.
Bookworms only read about it.
Bosses delegate the task to others.
Bowlers do it in the alley.
Bowlers have bigger balls.
Boxers do it with fists.
Boy scouts do it in the woods.
Bricklayers lay all day.
Bridge players do it with finesse.
Bridge players try to get a rubber.
Buddhists imagine doing it.
Building inspectors do it under the table.
Bulimics do it after every meal.
Burglars do it without protection.
Bus drivers come early and pull out on time.
Bus drivers do it in transit.
Businessmen screw you the best they can.
Butchers have better meat.
C programmers continue it.
C programmers switch and then break it.
C programmers switch often.
C++ programmers do it with class.
C++ programmers do it with private members and public objects.
C++ programmers do it with their friends, in private.
Calculus majors do it in increments.
Calculus students do it by parts.
Californians do it laid back.
Campers do it in a tent.
Car customisers do it with a hot rod.
Car mechanics jack it.
Cardiologists do it halfheartedly.
Carpenters do it tongue in groove.
Carpenters hammer it harder.
Carpenters nail harder.
Carpet fitters do it on their knees.
Carpet layers do it on the floor.
Cartoonists do it with just a few good strokes.
Catholics do it a lot.
Catholics talk about it afterwards.
Cavaliers do it mounted.
Cavers do it in the mud.
CB'ers do it on the air.
Cellists give better hand jobs.
Cheerleaders do it enthusiastically.
Cheerleaders do it with more enthusiasm.
Chefs do it for dessert.
Chefs do it in the kitchen.
Chemical engineers do it in packed beds.
Chemical engineers do it under a fume hood.
Chemists do it in an excited state.
Chemists do it in test tubes.
Chemists do it in the fume hood.
Chemists do it periodically on table.
Chemists do it reactively.
Chemists like to experiment.
Chess players check their mates.
Chess players do it in their minds.
Chess players do it with knights/kings/queens/bishops/mates.
Chess players mate better.
Chessplayers check their mates.
Chiropractors do it by manipulation.
Chiropractors do it, but they x-ray it first.
Choir boys do it unaccompanied.
Circuit designers have a very low rise time.
City planners do it with their eyes shut.
City street repairmen do it with three supervisors watching.
Civil engineers do it by reinforcing it.
Civil engineers do it in the dirt.
Civil engineers do it with an erection.
Clerics do it with their gods.
Climbers do it on rope.
Clinton does it with flowers.
Clock makers do it mechanically.
Clowns do it for laughs.
Cluster analysts do it in groups.
Coaches whistle while they work.
Cobol hackers do it by committee.
Cobol programmers are self-documenting.
Cobol programmers do it very slowly.
Cobol programmers do it with bugs.
Cockroaches have done it for millions of years, without apparent ill-effects.
Cocktail waitresses serve highballs.
Collectors do it in sets.
Colonel Sanders does it, then licks his fingers.
Comedians do it for laughs.
Commodities traders do it in the pits.
Communications engineers do it 'til it hertz.
Communists do it without class.
Compiler writers optimize it, but they never get around to doing it.
Complexity freaks do it with minimum space.
Composers do it by numbers.
Composers do it with a quill and a staff.
Composers do it with entire orchestras.
Composers leave it unfinished.
Computer engineers do it with minimum delay.
Computer game players just can't stop.
Computer nerds just simulate it.
Computer operators do it upon mount requests.
Computer operators do it with hard drives.
Computer operators get the most out of their software.
Computer operators peek before they poke.
Computer programmers do it bit by bit.
Computer programmers do it interactively.
Computer programmers do it logically.
Computer programmers do it one byte at a time.
Computer science students do it with hard drives.
Computer scientists do it bit by bit.
Computer scientists do it on command.
Computer scientists simulate doing it.
Computers do it in ascii, except ibm's which use ebcdic.
Conductors do it rhythmically.
Conductors do it with the orchestras.
Conductors wave it up and down.
Confectioners do it sweetly.
Congregationalists do it in groups.
Congressmen do it in the house.
Construction workers do it higher.
Construction workers lay a better foundation.
Consultants tell others how to do it.
Cooks do it with grease and a lot of heat.
Cooks do it with oil, sugar and salt.
Copier repairmen do it with duplicity.
Cops do it arrestingly.
Cops do it at gun-point.
Cops do it by the book.
Cops do it with cuffs.
Cops do it with electric rods.
Cops do it with nightsticks.
Cops have bigger guns.
Cowboys handle anything horny.
Cowgirls like to ride bareback.
Cows do it in leather.
Crane operators have swinging balls.
Credit managers always collect.
Cross-word players do it crossly.
Cross-word players do it horizontally and vertically.
Crosscountry runners do it in open fields.
Cryonicists stay stiff longer.
Cryptographers do it secretly.
Cuckoos do it by proxy.Dan quayle does it in the dark.
Dan quayle does it with a potatoe [sic].
Dancers do it in leaps and bounds.
Dancers do it to music.
Dancers do it with grace.
Dancers do it with their high heels on.
Dark horses do it come-from-behind.
Data processors do it in batches.
DB people do it with persistence.
Deadheads do it with Jerry.
Debaters do it in their briefs.
Deep-sea divers do it under extreme pressure.
Deer hunters will do anything for a buck.
Delivery men do it at the rear entrance.
Democratic presidential candidates do it and make you pay for it later.
Democratic presidential candidates do it underwater.
Democratic presidential candidates do it until they can't remember.
Demonstraters do it on the street.
Dental hygenists do it till it hurts.
Dentists do it in your mouth.
Dentists do it orally.
Dentists do it prophylactically.
Dentists do it with drills and on chairs.
Dentists do it with filling.
Deprogrammers do it with sects.
Detectives do it under cover.
Didgeridoo players do it with big sticks.
Didgeridoo players do it with hollow logs.
Dieticians eat better.
Digital hackers do it off and on.
Direct mailers get it in the sack.
Discover gives you cash back.
Dispatchers do it with frequency.
Ditch diggers do it in a damp hole.
Divers always do it with buddies.
Divers always use rubbers.
Divers bring flashlights to see better down there.
Divers can stay down there for a long time.
Divers do it deeper.
Divers do it for a score.
Divers do it in an hour.
Divers do it under pressure.
Divers do it underwater.
Divers do it with a twist.
Divers explore crevices.
Divers go down all the time.
Divers go down for hidden treasures.
Divers have a license to do it.
Divers like groping in the dark.
Divers like to take pictures down there.
Divers train to do it.
DJs do it on request.
DJs do it on the air.
Doctors do it in the O.R.
Doctors do it with injection.
Doctors do it with patience.
Doctors do it with pills.
Doctors do it with stethoscopes.
Doctors take two aspirins and do it in the morning.
Domino's does it in 30 minutes or less.
Don't do it with a banker. Most of them are tellers.
Donors do it for life.
Drama students do it with an audience.
Drivers do it with their cars.
Druggists fill your prescription.
Druids do it in the bushes.
Druids do it with animals.
Druids leave no trace.
Drummers always have hard sticks.
Drummers beat it.
Drummers do it in 4/4 time.
Drummers do it longer.
Drummers do it louder.
Drummers do it with a better beat.
Drummers do it with both hands and feet.
Drummers do it with great rhythm.
Drummers do it with rhythm.
Drummers do it with their wrists.
Drummers have faster hands.
Drummers pound it.
Drywallers are better bangers.
Dungeon masters do it any way they feel like.
Dungeon masters do it anywhere they damn well please.
Dungeon masters do it behind a screen.
Dungeon masters do it in ways contrary to the laws of physics.
Dungeon masters do it to you real good.
Dungeon masters do it whether you like it or not.
Dungeon masters do it with dice.
Dungeon masters have better encounters.
Dyslexic particle physicists do it with hadrons.
E. E. Cumming does it with ease.
Economists do it at bliss point.
Economists do it cyclically.
Economists do it in an edgeworth box.
Economists do it on demand.
Economists do it with a dual.
Economists do it with an atomistic competitor.
Economists do it with interest.
Ee cummings does it with ease.
El ed majors teach it by example.
Electrical education majors teach it by example.
Electrical engineers are shocked when they do it.
Electrical engineers do it on an impulse.
Electrical engineers do it with faster rise time.
Electrical engineers do it with large capacities.
Electrical engineers do it with more frequency and less resistance.
Electrical engineers do it with more power and at higher frequency.
Electrical engineers do it with super position.
Electrical engineers do it without shorts.
Electrical engineers resonate until it hertz.
Electrician undo your shorts for you.
Electricians are qualified to remove your shorts.
Electricians check your shorts.
Electricians do it in their shorts.
Electricians do it just to plug it in.
Electricians do it until it hertz.
Electricians do it with 'no shorts'.
Electricians do it with spark.
Electrochemists have greater potential.
Electron microscopists do it 100,000 times.
Elevator men do it up and down.
Elves do it in fairy rings.
Employers do it to employees.
EMT's do it in ambulances.
Energizer bunny keeps going, and going, and going . . .
Engineers are erectionist perfectionists.
Engineers charge by the hour.
Engineers do it any way they can.
Engineers do it at calculated angles.
Engineers do it in practice.
Engineers do it precisely.
Engineers do it roughly.
Engineers do it to a first order approximation.
Engineers do it with less energy and greater efficiency.
Engineers do it with precision.
Engineers simply neglect it.
English majors do it with an accent.
English majors do it with style.
Entomologists do it with insects.
Entrepreneurs do it with creativity and originality.
Entymologists do it with bugs.
Evangelists do it with Him watching.
Evolutionary biologists do it with increasing complexity.
Executives do it in briefs.
Executives do it in three piece suits.
Executives have large staffs.
Existentialists do it alone.
F.B.I. does it under cover.
Factor analysts rotate their principal components.
Faith healers do it with whatever they can lay their hands on.
Fan makers are the best blowers in the business.
Fantasy roleplayers do it all night.
Fantasy roleplayers do it all weekend.
Fantasy roleplayers do it in a dungeon.
Fantasy roleplayers do it in a group.
Farmers do it all over the countryside.
Farmers do it in the dirt.
Farmers do it on a corn field.
Farmers plant it deep.
Farmers spread it around.
Fed-Ex agents will absolutely, positively do it overnight.
Fencers do it in a full lunge.
Fencers do it with a thrust.
Fencers do it with three feet of sword.
Fetuses do it in-vitro.
Firemen are always in heat.
Firemen do it wearing rubber.
Firemen do it with a big hose.
Firemen find `em hot, and leave `em wet.
Fishermen are proud of their rods.
Fishermen do it for reel.
Flagpole sitters do it in the air.
Flautists blow crosswise.
Flyers do it in the air.
Flyers do it on top, upside down, or rolling.
FM disc jockeys do it in stereo and with high fidelity.
Football players are measured by the yard.
Football players do it offensively/defensively.
Foresters do it in trees.
Forgers do it hot.
Formula one racers come too fast and in laps.
Forth programmers do it from behind.
Fortran programmers do it with double precision.
Fortran programmers do it with soap.
Fortran programmers just do it.
Four-wheelers eat more bush.
Frank Sinatra does it his way.
Fraternity men do it with their little sisters.
Frustrated hackers use self-modifying infinite perversion.
Furriers appreciate good beaver.
Fuzzy theorists both do it and don't do it.
Gamblers do it on a hunch.
Garbagemen come once a week.
Gardeners do it by trimming your bush.
Gardeners do it in bed.
Gardeners do it on the bushes.
Gardeners do it twice a year and then mulch it.
Gardeners have 50 foot hoses.
Gas station attendants pump all day.
Geeks do it in front of Windows.
Generals have something to do with the stars.
Genetecists do it with sick genes.
Geographers do it around the world.
Geographers do it everywhere.
Geographers do it globally.
Geologists are great explorers.
Geologists do it eruptively, with glow, and always smoke afterwards.
Geologists do it in folded beds.
Geologists do it to get their rocks off.
Geologists know how to make the bedrock.
Geometers do it constructively.
Gerald Ford does it on his face.
Gnomes are too short to do it.
Gnu programmers do it for free and they don't give a damn about look & feel.
Golfers always sink their putts.
Golfers do it in 18 holes.
Golfers do it with long shafts.
Golfers hit their balls with shafts.
Graduates do it by degrees.
Gravediggers die to do it.
Greeks do it with their brothers and sisters.
Guitar players do it with a g-string.
Guitar players had their licks.
Guitar players have their pick.
Guitarists strum it with their pick.
Gymnasts do it with grace.
Gymnasts mount and dismount well.
Gynecologists mostly sniff, watch and finger.
Hackers appreciate virtual dresses.
Hackers are I/O experts.
Hackers avoid deadly embrace.
Hackers discover the powers of two.
Hackers do it a little bit.
Hackers do it absolutely.
Hackers do it all night.
Hackers do it at link time.
Hackers do it attached.
Hackers do it automatically.
Hackers do it bottom up.
Hackers do it bug-free.
Hackers do it by the numbers.
Hackers do it concurrently.
Hackers do it conditionally.
Hackers do it detached.
Hackers do it digitally.
Hackers do it discretely.
Hackers do it during downtime.
Hackers do it during PM.
Hackers do it efficiently.
Hackers do it faster.
Hackers do it forever even when they're not supposed to.
Hackers do it globally.
Hackers do it graphically.
Hackers do it immediately.
Hackers do it in batches.
Hackers do it in dumps.
Hackers do it in less space.
Hackers do it in libraries.
Hackers do it in loops.
Hackers do it in parallel.
Hackers do it in stacks.
Hackers do it in the microcode.
Hackers do it in the software.
Hackers do it in trees.
Hackers do it in two states.
Hackers do it indirectly.
Hackers do it interactively.
Hackers do it iteratively.
Hackers do it loaded.
Hackers do it locally.
Hackers do it randomly.
Hackers do it recursively.
Hackers do it reentrantly.
Hackers do it relocatably.
Hackers do it sequentially.
Hackers do it synchronously.
Hackers do it top down.
Hackers do it with all sorts of characters.
Hackers do it with bugs.
Hackers do it with computers.
Hackers do it with daemons.
Hackers do it with DDT.
Hackers do it with demons.
Hackers do it with editors.
Hackers do it with fewer instructions.
Hackers do it with high priority.
Hackers do it with insertion sorts.
Hackers do it with interrupts.
Hackers do it with key strokes.
Hackers do it with open windows.
Hackers do it with phantoms.
Hackers do it with quick sorts.
Hackers do it with recursive descent.
Hackers do it with side effects.
Hackers do it with simultaneous access.
Hackers do it with slaves.
Hackers do it with their fingers.
Hackers do it with words.
Hackers do it without a net.
Hackers do it without arguments.
Hackers do it without detaching.
Hackers do it without proof of termination.
Hackers do it without protection.
Hackers do it without you even knowing it.
Hackers don't do it -- they're hacking all the time.
Hackers get off on tight loops.
Hackers get overlaid.
Hackers have better software tools.
Hackers have faster access routines.
Hackers have good hardware.
Hackers have high bawd rates.
Hackers have it where it counts.
Hackers have response time.
Hackers know all the right movs.
Hackers know what to diddle.
Hackers make it quick.
Hackers multiply with stars.
Hackers stay logged in longer.
Hackers stay up longer.
Hackers take big bytes.
Hair stylists are shear pleasure.
Hairdressers give the best blow jobs.
Ham operators do it with frequency.
Ham radio operators do it till their gigahertz.
Ham radio operators do it with higher frequency.
Ham radio operators do it with more frequency.
Handymen do it with whatever is available.
Handymen like good screws.
Hang-gliders do it in the air.
Hardware buffs do it in nanoseconds.
Hardware designers' performance is hardware dependant.
Hardware hackers are a charge.
Hardware hackers do it closely coupled.
Hardware hackers do it electrically.
Hardware hackers do it intermittently.
Hardware hackers do it noisily.
Hardware hackers do it on a bus.
Hardware hackers do it over a wide temperature range.
Hardware hackers do it with AC and DC.
Hardware hackers do it with bus drivers.
Hardware hackers do it with charge.
Hardware hackers do it with connections.
Hardware hackers do it with emitter-coupled logic.
Hardware hackers do it with female banana plugs.
Hardware hackers do it with male connectors.
Hardware hackers do it with maximum ratings.
Hardware hackers do it with power.
Hardware hackers do it with resistance.
Hardware hackers do it with transceivers.
Hardware hackers do it with uncommon emitters into open collectors.
Hardware hackers have faster rise times.
Hardware hackers have sensitive probes.
Harpists do it by pulling strings.
Hawaiians do it volcanicly.
Hedgehogs do it cautiously.
Heinz does it with great relish.
Heisenberg might have done it.
Helicopter pilots do it while hovering.
Helicopter pilots do it with autorotation.
Hermits do it alone.
Hewlett packard does it with precision.
Hikers do it naturally.
Historians did it.
Historians do it for old times' sake.
Historians do it for prosperity.
Historians do it over long periods of time.
Historians study who did it.
Hobbits do it only if it isn't dangerous.
Hockey-players do it; so what?.
Horn players do it French style.
Horseback riders stay in the saddle longer.
Hunters do it in the bush.
Hunters do it with a bang.
Hunters do it with a big gun.
Hunters eat what they shoot.
Hunters go deeper into the bush.
Hurdlers do it every 10 meters.
Hydrogeologists do it till they're all wet.
Hypertrichologists do it with intensity.
I do it, but nobody else is ever there... so nobody believes me.
I just do it.
I/O hackers do it without interrupt.
I/O hackers have to condition their device first.
Illusionists fake it.
Illusionists only look like they're doing it.
Individualist does it with himself.
Inductors dissipate after doing it.
Infantrymen do it in the trench.
Infectious disease researchers do it with breeding and culture.
Information theorists analyze it with wiener filters.
Insurance salesmen are premium lovers.
Interior decorators do it all over the house.
Interpreters do it manually and orally.
Introverts do it alone.
Inventors find a way to do it.
Irs does it everywhere.
Irs does it to everyone.
Italians do it better. (This line was obviously written by an Italian).
Janitors clean up afterwards.
Janitors do it with a plunger.
Jedi knights do it forcefully.
Jedi masters do it with even more force.
Jewelers mount real gems.
Jews worry about doing it.
Jockeys do it at the gate.
Jockeys do it on the horse-back.
Jockeys do it with their horses.
Jockeys do it with whips and saddles.
Joggers do it on the run.
Judges do it in chambers.
Judges watch it and give scores.
Jugglers do it in a flash.
Jugglers do it with more balls.
Jugglers do it with their balls in the air.
Kayakers do it, roll over, and do it again.
Keyboardists use all their fingers.
Keyboardists use both their hands on one organ.
Landlords do it every month.
Landscapers plant it deeper.
Laser printers do it without making an impression.
Lawyers do it in their briefs.
Lawyers do it on a table.
Lawyers do it on a trial basis.
Lawyers do it to you.
Lawyers do it with clause.
Lawyers do it with extensions in their briefs.
Lawyers do it, which is a great pity.
Lawyers lie about doing it and charge you for believing them.
Lawyers would do it but for 'hung jury'.
Left handers do it right.
Let a gardener trim your bush today.
Let an electrician undo your shorts for you.
Librarians do it by the book.
Librarians do it in the stacks.
Librarians do it on the shelfs.
Librarians do it quietly.
Lifeguards do it on the beach.
Linguists do it with their tongues.
Lions do it with pride.
Lisp hackers are thweet.
Lisp hackers do it in lambda functions.
Lisp hackers do it with rplacd.
Lisp programmers do it by recursion.
Lisp programmers do it without unexpected side effects.
Lisp programmers have to stop and collect garbage.
Locksmiths can get into anything.
Logic programmers do it with unification/resolution.
Logicians do it consistently and completely.
Logicians do it or they do not do it.
Long distance runners last longer.
Long jumpers do it with a running start.
Long-distance runners do it on a predetermined route.
Luddites do it with their hands.
Mac programmers do it in windows.
Mac users do it with mice.
Machine coders do it in bytes.
Machine language programmers do it very fast.
Machinists do it with screw drivers.
Machinists drill often.
Machinists make the best screws.
MacIntosh programmers do it in Windows.
Mages do it with their familiars.
Magic users do it with their hands.
Magic users have crystal balls.
Magicians are quicker than the eye.
Magicians do it with mirrors.
Magicians do it with rabbits.
Mailmen do it at the mail boxes.
Maintenance men sweep 'em off their feet.
Malingerers do it as long as they can't get out of it.
Mall walkers do it slowly.
Managers do it by delegation.
Managers have someone do it for them.
Managers make others do it.
Managers supervise others.
Marketing reps do it on commission.
Married people do it with frozen access.
Masons do it secretively.
Match makers do it with singles.
Match makers do it with sticks.
Math majors do it by example.
Math majors do it by induction.
Math majors do it with a pencil.
Mathematicians do it as a finite sum of an infinite series.
Mathematicians do it as continuous function.
Mathematicians do it associatively.
Mathematicians do it commutatively.
Mathematicians do it constantly.
Mathematicians do it continuously.
Mathematicians do it discretely.
Mathematicians do it exponentially.
Mathematicians do it forever if they can do one and can do one more.
Mathematicians do it functionally.
Mathematicians do it homologically.
Mathematicians do it in fields.
Mathematicians do it in groups.
Mathematicians do it in imaginary domain.
Mathematicians do it in imaginary planes.
Mathematicians do it in numbers.
Mathematicians do it in theory.
Mathematicians do it on smooth contours.
Mathematicians do it over and under the curves.
Mathematicians do it parallel and perpendicular.
Mathematicians do it partially.
Mathematicians do it rationally.
Mathematicians do it reflexively.
Mathematicians do it symmetrically.
Mathematicians do it to prove themselves.
Mathematicians do it to their limits.
Mathematicians do it totally.
Mathematicians do it transcendentally.
Mathematicians do it transitively.
Mathematicians do it variably.
Mathematicians do it with imaginary parts.
Mathematicians do it with linear pairs.
Mathematicians do it with logs.
Mathematicians do it with Nobel's wife.
Mathematicians do it with odd functions.
Mathematicians do it with prime roots.
Mathematicians do it with relations.
Mathematicians do it with rings.
Mathematicians do it with their real parts.
Mathematicians do it without limit.
Mathematicians do over an open unmeasurable interval.
Mathematicians have to prove they did it.
Mathematicians prove they did it.
Mathematicians take it to the limit.
Mds only do it if you have appropriate insurance.
Mechanical engineering majors do it in gear.
Mechanical engineers do it automatically.
Mechanical engineers do it with fluid dynamics.
Mechanical engineers do it with stress and strain.
Mechanics do it from underneath.
Mechanics do it on their backs.
Mechanics do it with oils.
Mechanics have to jack it up and then do it.
Medical researchers do it with mice.
Medical researchers make mice do it first.
Medievalists do it with fake, fluffy weapons.
Merchants do it to customers.
Mermaids can't do it.
Metallurgists are screw'n edge.
Metallurgists do it in the street.
Meteorologists do it unpredictably.
Methodists do it by numbers.
Milkmen deliver twice a week.
Millionaires pay to have it done.
Milton Berle does it in his BVDs.
Mimes do it without a sound.
Mimes don't do it; everyone hates a mime.
Miners do it deeper than divers.
Miners sink deeper shafts.
Ministers do it on Sundays.
Ministers do it vicariously.
Missile engineers do it in stages.
Missilemen have better thrust.
Mobius strippers never show you their back side.
Models do it beautifully.
Models do it in any position.
Models do it with all kinds of fancy dresses on.
Modem manufacturers do it with all sorts of characters.
Molecular biologists do it with hot probes.
Monks do it by hand.
Moonies do it within sects.
Morticians do it gravely.
Most of the graduate students get aids.
Mothers do it with their children.
Motorcyclists do it with spread legs.
Motorcyclists like something hot between their legs.
Moto-X'ers do it in the dirt.
Mountain climbers do it on the rocks.
Mountaineers do it with ropes.
Movie stars do it on film.
Mudders do it over the internet.
Multitaskers do it everywhere: concurrently.
Music hackers do it at 3 am.
Music hackers do it audibly.
Music hackers do it in concert.
Music hackers do it in scores.
Music hackers do it with more movements.
Music hackers do it with their organs.
Music hackers want to do it in realtime.
Music majors do it in a chord.
Musicians do it rhythmically.
Musicians do it with rhythm.
Native Amazonians do it with poison tips down along narrow tubes.
Native Americans do it with reservations.
Navigators can show you the way.
Necrophiliacs do it cryptically.
Necrophiliacs do it until they are dead tired.
Nerds do it in rot13.
Network hackers know how to communicate.
Network managers do it in many places at once.
New users do it after reading the helpfile.
New users do it after receiving advice.
Newsmen do it at six and eleven.
Newspaper boys do it in front of every door.
Nike just does it.
Nike wants you to just do it.
Ninjas do it silently.
Ninjas do it in articulated sock.s
Non-smokers do it without huffing and puffing.
Novices do it with instructions.
Nuclear engineers do it hotter than anyone else.
Nukes do it with more power.
Number theorists do it "69".
Nuns do it out of habit.
Nuns do it with the holy spirit.
Nurses are prepared to resuscitate.
Nurses call the shots.
Nurses do it as the doctor ordered.
Nurses do it painlessly.
Nurses do it to patients.
Nurses do it with aseptic technique.
Nurses do it with care.
Nurses do it with fluid restriction.
Nurses do it with TLC.
Oarsmen stroke till it hurts.
Obsessive-compulsive people do it habitually.
Oceanographers do it down under.
Operator does it automatically.
Operator does it in the cty.
Operators do it person-to-person.
Operators mount everything.
Operators really know how to mount it.
Optimists do it without a doubt.
Optometrists do it eyeball-to-eyeball, since they always see eye-to-eye.
Optometrists do it face-to-face.
Organists do it with both hands and both feet.
Organists pull out all the stops and do it with their feet.
Orthodontists do it with braces.
OS people would do it if only they didn't 'deadlock'.
Osteopaths do it until you feel no pain.
Painters do it out in the field with brightly coloured sticky substances.
Painters do it with longer strokes.
Paladins do it good or not at all.
Paladins don't do it.
Pantomimists do it silently.
Paramedics can revive anything.
Paratroopers do it by vertical insertion.
Particle physicists do it energetically.
Particle physicists to it with *charm*.
Pascal programmers are better structured.
Pascal programmers repeat it.
Pascal users do it with runtime support.
Pastors do it with spirit.
Pathologists do it with corpses.
Patients do it in bed, sometimes with great pain.
Pediatricians do it with children.
Penguins do it down south.
Perfectionists do it better.
Perverted hackers do it with pops.
Pessimists can't do it.
Pessimists do it with a sigh.
Pharmacologists do it by prescription.
Pharmacologists do it via the oral route.
Pharmacologists do it with affinity.
Philosophers do it for pure reasons.
Philosophers do it in their minds.
Philosophers do it with their minds.
Philosophers go deep.
Philosophers think about doing it.
Philosophers think they do it.
Philosophers wonder why they did it.
Photographers are better developed.
Photographers do it at 68 degrees or not at all.
Photographers do it in the dark.
Photographers do it while exposing.
Photographers do it with "enlargers."
Photographers do it with a flash.
Photographers do it with a zoom.
Phototherapists do it with the lights on.
Physicists do it a quantum at a time.
Physicists do it at the speed of light.
Physicists do it at two places in the universe at one time.
Physicists do it attractively.
Physicists do it energetically.
Physicists do it in black holes.
Physicists do it in waves.
Physicists do it like Einstein.
Physicists do it magnetically.
Physicists do it on accelerated frames.
Physicists do it particularly.
Physicists do it repulsively.
Physicists do it strangely.
Physicists do it up and down, with charming color, but strange!
Physicists do it with black bodies.
Physicists do it with charm.
Physicists do it with large expensive machinery.
Physicists do it with rigid bodies.
Physicists do it with tensors.
Physicists do it with their vectors.
Physicists do it with uniform harmonic motion.
Physicists get a big bang.
Physics majors do it at the speed of light.
Piano players have faster fingers.
Piano students learn on their teachers' instruments.
Pilots do it higher.
Pilots do it in the cockpit.
Pilots do it on the wing.
Pilots do it to get high.
Pilots do it with flare.
Pilots keep it up longer.
Pilots stay up longer.
Ping-pong players always smash balls.
Pirates do it for the booty.
Pirates do it with stumps.
Pizza delivery boys come in 30 minutes, or it's free.
Plasma physicists do it with everything stripped off.
Plasterers to it hard.
Players do it in a team.
Plumbers do it under the sink.
Plumbers do it with plumber's friends.
Podiatrists do it with someone else's feet.
Poker players do it with their own hand.
Polaroid does it in one step.
Polaroid does it in seconds.
Pole vaulters do it with long, flexible instruments.
Policemen like big busts.
Policemen never cop out.
Politicians do it for 4 years then have to get re-elected.
Politicians do it for 4 years then have to get re-erected.
Politicians do it to everyone.
Politicians do it to make the headlines.
Politicians do it with everyone.
Politicians do it, but they stay in too long and make you pay for it afterwards.
Polymer chemists do it in chains.
Pool cleaners do it wet.
Popes do it in the woods.
Post office workers do it overnight, guaranteed for $8.90.
Postmen are first class males.
Postmen come slower.
Presbyterians do it decently and in order.
Priests do it with amazing grace.
Prince Charles does it in succession.
Printers do it without wrinkling the sheets.
Printers reproduce the fastest.
Probate lawyers do it willingly.
Procrastinators do it later.
Procrastinators do it tomorrow.
Procrastinators will do it tomorrow.
Procrastinators will do it when they get around to it.
Proctologists do it in the end.
Proctologists do it with a finger up where the sun don't shine.
Professors do it by the book.
Professors do it from a grant.
Professors do it with class.
Professors don't do it; they leave it as an exercise for their students.
Professors forget to do it.
Programmers cycle forever, until you make them exit.
Programmers do it all night.
Programmers do it bottom-up.
Programmers do it by pushing and popping.
Programmers do it in higher levels.
Programmers do it in loops.
Programmers do it in software.
Programmers do it on command.
Programmers do it top down.
Programmers do it with bugs.
Programmers do it with disks.
Programmers have: bigger disks.
Programmers peek before they poke.
Programmers repeat it until done.
Programmers will do it all night, but only if you are debugged.
Prolog programmers are a cut above the rest.
Promiscuous hackers share resources.
Prostitutes do it at illegal addresses.
Prostitutes do it for profit.
Protestants do it unwillingly.
Psychiatrists do it for at least fifty dollars per session.
Psychiatrists do it on the couch.
Psychologists do it with rats.
Psychologists think they do it.
Public speakers do it orally.
Pyrotechnicians do it with flare.
Pyrotechnicians do it with a blinding flash.
Quakers do it quietly.
Quantum mechanics do it in leaps.
Quantum physicists do it on time.
Racers do it with their horses.
Racers like to come in first.
Racquetball players do it off the wall.
Radio amateurs do it with more frequency.
Radio amateurs do it with two meters.
Radio and TV announcers broadcast it.
Radio engineers do it till it megahertz.
Radio engineers do it with frequency.
Radiocasters do it in the air.
Radiologists do it with high frequency.
Railroaders do it on track.
Rally drivers do it sideways.
Rangers do it in the woods.
Rangers do it with all the animals in the woods.
Raquetball players do it with blue balls.
Real estate people know all the prime spots.
Receptionists do it over the phone.
Recyclers do it again and again and again.
Reporters do it daily.
Reporters do it for a story.
Reporters do it for the sensation it causes.
Republicans do as their lobbyists tell them to.
Republicans do it to poor people.
Research professors do it only if they get grants.
Researchers are still looking for it.
Researchers do it with control.
Retailers move their merchandise.
RISC assembly programmers do it 1073741824 times a second.
Robots do it mechanically.
Rocket scientists do it with higher thrust.
Rocketeers do it on impulse.
Roller-skaters like to roll around.
Rolling Stones magazine does it where they rock.
Roofers do it on top.
Roosters do it coquettishly.
Royal guards do it in uniforms.
Rugby players do it with leather balls.
Runners do it with vigor.
Runners get into more pants.
Sailors do it ad nauseam.
Sailors do it after cruising the seven seas.
Sailors get blown off shore.
Sailors like to be blown.
Salespeople have a way with their tongues.
Sax players are horny.
Saxophonists have curved ones.
Sceptics doubt it can be done.
Scientists discovered it.
Scientists do it experimentally.
Scientists do it with plenty of research.
Scotsmen do it with amazing grace.
Scuba divers do it deeper.
Sculptors beat at it until bits fall off.
Second fiddles do it vilely.
Secretaries do it from 9 to 5.
Seismologists do it when the earth shakes.
Seismologists make the earth move.
Semanticists do it with meaning.
Senators do it on the floor.
Sergeants do it privately.
Set theorists do it with cardinals.
Shakespearean scholars do it... Or don't do it, that is the question....
Sheep do it when led astray.
Shubert didn't finish it.
Simulation hackers do it with models.
Singers do it with microphones.
Skaters do it on ice.
Skeet shooters do it 25 times in 9 different positions.
Skeletons do it with a bone.
Skeptics doubt about it.
Skiers do it spread eagled.
Skiers do it with poles.
Skiers go down fast.
Skunks do it instinctively.
Sky divers do it in the air.
Sky divers never do it without a chute.
Skydivers are good till the last drop.
Skydivers do it at great heights.
Skydivers do it in the air.
Skydivers do it sequentially.
Skydivers go down faster.
Skydivers go in harder.
Skydivers never do it without a chute.
Slaves do it for the masters.
Small boat sailors do it by pumping, rocking, and ooching.
Smalltalk programmers have more methods.
Snakes do it in the grass.
Soap manufacturers do it with Lava.
Soap manufacturers do it with Zest.
Soccer players do it for kicks.
Soccer players do it in 90 minutes.
Soccer players have leather balls.
Sociologists do it with class.
Sociologists do it with standard deviations.
Software designers do it over and over until they get it right.
Software designers do it with system.
Software reliablity specialists keep it up longer.
Software testers do it over and over again.
Solar astronomers do it all day.
Soldiers do it standing erect.
Soldiers do it with a machine gun.
Soldiers do it with shoot.
Sonarmen do it aurally.
Sopranos do it in unison.
Soviet hardline leaders do it with tanks.
Sparrows do it for a lark.
Speakers do it with pointers.
Speaking clocks do it on the third stroke.
Spectroscopists do it until it hertz.
Spectroscopists do it with frequency and intensity.
Speech pathologists are oral specialists.
Speleologists make a science of going deeper.
Spellcasters do it with their rods/staves/wands.
Spelunkers do it in narrow dark places.
Spelunkers do it underground.
Spelunkers do it while wearing heavy rubber protective devices.
Spies do it under cover.
Sportscasters like an instant replay.
Sprinters do it after years of conditioning.
Sprinters do it in less than 10 seconds.
Squatter girls do it with crowbars.
St. Matthew did it passionately.
Stage hands do it behind the scenes.
Stage hands do it in the dark.
Stage hands do it on cue.
Statisticians do it continuously but discretely.
Statisticians do it when it counts.
Statisticians do it with 95% confidence.
Statisticians do it with large numbers.
Statisticians do it with only a 5% chance of being rejected.
Statisticians do it. After all, it's only normal.
Statisticians probably do it.
Steamfitters do it with a long hot pipe.
Stewardesses do it in the air.
Stragglers do it in the rear.
Students do it as exercises.
Students do it on a guaranteed loan.
Students do it with their students.
Students use their heads.
Submariners do it deeper.
Submariners use their torpedoes.
Supercomputer users do it in parallel.
Surfers do it in waves.
Surfers do it standing up.
Surfers do it with their wives, or, if unmarried, with their girl friends.
Surgeons are smooth operators.
Surgeons do it incisively.
Swashbucklers do it with three feet of steel.
Swimmers do it in the lanes.
Swimmers do it in the water.
Swimmers do it under water.
Swimmers do it with a breast stroke.
Swimmers do it with better strokes.
Sysops do it with their computers.
System hackers are always ready.
System hackers get it up quicker.
System hackers keep it up longer.
System hackers know where to poke.
System hackers swap on demand.
System managers do it with pencils.
Systems go down on their hackers.
Systems have black boxes.
Systems programmers keep it up longer.
Tailors come with no strings attached.
Tailors make it fit.
Tap dancers do it with their feet.
Taxi cab drivers come faster.
Taxi cab drivers do it all over town.
Taxi drivers do it all over town.
Taxidermists mount anything.
Teacher assistants do it with class.
Teachers do it 50 times after class.
Teachers do it repeatedly.
Teachers do it with class.
Teachers make _you_ do it till you get it right.
Technical writers do it manually.
Technicians do it with frequency.
Technicians do it with greater frequency.
Technicians do it with high voltage probes.
Technicians do it with mechanical assistance.
Teddy bears do it with small children.
Teddy Roosevelt did it softly, but with a big stick.
Telephone Co. employees let their fingers do the walking.
Tellers can handle all deposits and withdrawals.
Tennis players do it in sets.
Tennis players do it in their shorts.
Tennis players have fuzzy balls.
Test makers do it sometimes/always/never.
Testators do it willingly.
Texans do it with oil.
The Air Force, aims high, shoots low.
The Army does it being all that they can be.
The Energizer bunny does it and keeps going and going, and going, and going.
The FBI does it under cover.
Theater majors do it with an audience.
Theater techies do it in the dark, on cue.
Theoretical astronomers only *think* about it.
Theoreticians do it conceptually.
Theoreticians do it with a proof.
Thieves do it in leather.
Thieves do it when you're not looking.
Thieves do it with their lock picks.
Thieves do it with tools.
Trainees do it as practice.
Trampoline acrobats do it in the air.
Trampoline acrobats do it over a net.
Trampoline acrobats do it swinging from bars.
Trampoline acrobats do it under the big top.
Tree men do it in more crotches than anyone else.
Tribiological engineers do it by using lubricants.
Trombone players are constantly sliding it in and out.
Trombone players do it faster.
Trombone players do it in 7 positions.
Trombone players do it with slide action finger control.
Trombone players do it with slide oil.
Trombone players have something that's always long and hard.
Trombone players slide it in and out.
Trombone players use more positions.
Trombones do it faster.
Trombonists use more positions.
Truck drivers carry bigger loads.
Truck drivers do it on the road.
Truck drivers have bigger dipsticks.
Truckers have moving experiences.
Trump does it with cash.
Trumpet players blow the best.
Trumpeters blow hard.
Tuba players do it with big horns.
Tubas do it deeper.
TV evangalists do more than lay people.
TV repairmen do it in sync.
TV repairmen do it with a vertical hold.
Twin Peaks fans do it with logs.
Two meter operators do it with very high frequency.
Typesetters do it between periods.
Typists do it in triplicate.
Typographers do it to the letter.
Typographers do it with tight kerning.
Ultimate players do it horizontally.
Undertakers do it with corpses.
Unix don't do it.
Unix hackers go down all the time.
Unix programmers must c her's.
Urologists do it in a bottle.
Usenet freaks do it with hard drives.
Usenet news freaks do it with many groups at once.
Ushers do it in the dark.
Usurers do it with high interests.
Vacationers do it in a leisure way.
Vagrants do it everywhere.
Valuers really know the price.
Vampires do it 'til the sun comes up.
Vanguard do it ahead of everyone else.
Vegetarians don't do it with meats.
Vendors try hard to sell it.
Verifiers check on it.
Versifiers write poems for it.
Veterans have much more experience than the fresh-handed.
Veterinarians are pussy lovers.
Veterinarians do it with animals.
Veterinarians do it with sick animals.
Vicars do it with amazing grace.
Vicars substitute others to.
Vice principals do it with discipline.
Victims are those who got it.
Victors know how hard to win it.
Viewers do it with eyes.
Vilifiers say others don't do it well.
Villagers do it provincially.
Violinists do it gently.
Violinists prefer odd positions.
Violoncellists do it low.
Virtuosi appreciate it.
Visa, its everywhere you want to be.
Visitors come and see it.
Vocalists are good in their mouths.
Volcanologists know how violent it can be.
Voles dick through it.
Volleyball players keep it up.
Volunteers do it willingly.
Votarists decide to contribute themself.
Voters will decide who can do it.
Voyagers do it in between the sea and the sky.
Vulcans do it logically.
Waiters and waitresses do it for tips.
Waitresses do it with chopsticks.
Waitresses serve it hot.
Waitresses serve it piping hot.
Water skiers come down harder.
Water skiers do it with cuts.
Weather forecasters do it with crystal balls.
Weathermen do it with crystal balls.
Welders do it with hot rods.
Welders fill all cracks.
Well diggers do it in a hole.
Werewolves do it as man or beast.
Werewolves do it by the light of the full moon.
Weathermen do it with lightning strokes.
Woodwind players have better tonguing.
Wrestlers know the best holds.
Wrestlers try not to do it on their backs.
Writers have novel ways.
WW I GIs did it over there.
X-ray astronomers do it with high energy.
Xerox does it again and again and again and again.
Zen buddhists do it because they don't want to do it because they want to do it.
Zen monks do it and don't do it.
Zippermakers do it on the fly.
Zippy does it on his lunch break.
Zoologists do it with animals.'''
| 15672 | # Description:
# Ask hubot how people do it.
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot how do <group/occupation> do it? -- tells you how they do it (e.g. hubot how do hackers do it?)
# hubot <people> do it <method> -- tells hubot how <people> do it (e.g. hubot GitHubbers do it in Campfire.)
# hubot do it -- tells you a random way in which random people do it
#
# Notes:
# Node.js programmers do it asynchronously.
# List taken from http://www.dkgoodman.com/doita-f.html#top and originally compiled by <NAME>.
#
# Author:
# jenrzzz
String.prototype.capitalize ||= -> @.charAt(0).toUpperCase() + @.slice(1)
module.exports = (robot) ->
unless robot.brain.do_it?.grouped_responses?
do_it_responses = DO_IT.split('\n')
robot.brain.do_it =
responses: do_it_responses
grouped_responses: compile_list(do_it_responses)
robot.respond /do it$/i, (msg) ->
msg.send msg.random(robot.brain.do_it.responses)
robot.respond /how (?:do|does) (.+) do it\??/i, (msg) ->
group = msg.match[1].toLowerCase().trim()
if robot.brain.do_it.grouped_responses[group]?
msg.send msg.random robot.brain.do_it.grouped_responses[group]
else
msg.send "Hmmm, I'm not sure how they do it."
robot.respond /(.+) (?:do|does) it (?:.+)/i, (msg) ->
group = msg.match[1].toLowerCase().trim()
robot.brain.do_it.responses.push msg.match[0]
robot.brain.do_it.grouped_responses[group] ||= []
robot.brain.do_it.grouped_responses[group].push msg.match[0].slice(msg.match[0].indexOf(' ') + 1).capitalize()
compile_list = (responses) ->
grouped = {}
responses.forEach (r) ->
if /do it/.test(r)
group_name = r.slice(0, r.indexOf('do it')).toLowerCase().trim()
else
group_name = r.slice(0, r.indexOf(' ')).toLowerCase().trim()
grouped[group_name] ||= []
grouped[group_name].push r
return grouped
DO_IT = '''A king does it with his official seal.
Accountants are good with figures.
Accountants do it for profit.
Accountants do it with balance.
Accountants do it with double entry.
Accy majors do it in numbers.
Acrophobes get down.
Actors do it in the limelight.
Actors do it on camera.
Actors do it on cue.
Actors do it on stage.
Actors play around.
Actors pretend doing it.
Actuaries probably do it
Actuaries do it continuously and discretely.
Actuaries do it with varying rates of interest.
Actuaries do it with models.
Actuaries do it on tables.
Actuaries do it with frequency and severity.
Actuaries do it until death or disability, whichever comes first.
Acupuncturists do it with a small prick.
Ada programmers do it by committee.
Ada programmers do it in packages.
Advertisers use the "new, improved" method.
Advertising majors do it with style.
Aerobics instructors do it until it hurts.
Aerospace engineers do it with lift and thrust.
Agents do it undercover.
AI hackers do it artificially.
AI hackers do it breast first.
AI hackers do it depth first.
AI hackers do it robotically.
AI hackers do it with robots.
AI hackers do it with rules.
AI hackers make a big production out of it.
AI people do it with a lisp.
Air couriers do it all over the world in big jets.
Air traffic controllers do it by radar.
Air traffic controllers do it in the dark.
Air traffic controllers do it with their tongue.
Air traffic controllers tell pilots how to do it.
Air traffic, getting things down safely.
Airlifters penetrate further, linger longer, and drop a bigger load.
Airline pilots do it at incredible heights.
<NAME> does it alone.
Algebraists do it with homomorphisms.
Algorithmic analysts do it with a combinatorial explosion.
Alpinists do it higher.
<NAME> will do it in the future.
AM disc jockeys do it with modulated amplitude.
Amateur radio operators do it with frequency.
Ambulance drivers come quicker.
America finds it at Waldenbooks.
Anaesthetists do it until you fall asleep.
Analog hackers do it continuously.
Anarchists do it revoltingly.
Anesthetists do it painlessly.
Anglers do it with worms.
Animators do it 24 times a second.
Announcers broadcast.
ANSI does it in the standard way.
Anthropologists do it with culture.
APL programmers are functional.
APL programmers do it backwards.
APL programmers do it in a line.
APL programmers do it in the workspace.
APL programmers do it with stile.
Apologists do it orally.
Archaeologists do it in the dirt.
Archaeologists do it with mummies.
Archaeologists like it old.
Archers use longer shafts.
Architects are responsible for the tallest erections.
Architects do it late.
Architects have great plans.
Architectural historians can tell you who put it up and how big it was.
Architecture majors stay up all night.
<NAME> does it on his motorcycle.
Arsonists do it with fire.
Art historians can tell you who did it, where they did it, what they.
Artillerymen do it with a burst.
Artists are exhibitionists.
Artists do it by design.
Artists do it in the buff.
Artists do it with creativity.
Artists do it with emotion.
Assassins do it from behind.
Assembly line workers do it over and over.
Assembly programmers do it a byte at a time.
Assembly programmers only get a little bit to play with.
Astronauts do it in orbit.
Astronauts do it on re-entry.
Astronauts do it on the moon.
Astronomers can't do it with the lights on.
Astronomers do it all night.
Astronomers do it from light-years away.
Astronomers do it in the dark.
Astronomers do it only at night.
Astronomers do it under the stars.
Astronomers do it whenever they can find a hole in the clouds.
Astronomers do it while gazing at Uranus.
Astronomers do it with all the stars.
Astronomers do it with a big bang.
Astronomers do it with heavenly bodies.
Astronomers do it with long tubes.
Astronomers do it with stars.
Astronomers do it with their telescopes.
Astronomers do it with Uranus.
Astrophysicists do it with a big bang.
AT&T does it in long lines.
Attorneys make better motions.
Auditors like to examine figures.
Australians do it down under.
Authors do it by rote.
Auto makers do it with optional equipment.
Auto makers do it with standard equipment.
Auto mechanics do it under hoods, using oil and grease.
Babies do it in their pants.
Babysitters charge by the hour.
Bach did it with the organ.
Bailiffs always come to order.
Bakers do it for the dough.
Bakers knead it daily.
Ballerinas do it en point.
Ballet dancers do it on tip-toe.
Ballet dancers do it with toes.
Banana pickers do it in bunches.
Band members do it all night.
Band members do it in a parade.
Band members do it in front of 100,000 people.
Band members do it in public.
Band members do it in sectionals.
Band members do it on the football field.
Band members play all night.
Banjo players pluck with a stiff pick.
Bank tellers do it with interest. Penalty for early withdrawl.
Bankers do it for money, but there is a penalty for early withdrawal.
Bankers do it with interest, but pay for early withdrawl.
Baptists do it under water.
Barbarians do it with anything. (So do orcs.)
Barbers do it and end up with soaping hair.
Barbers do it with Brylcreem.
Barbers do it with shear pleasure.
Bartenders do it on the rocks.
Baseball players do it for a lot of money.
Baseball players do it in teams.
Baseball players do it with their bats.
Baseball players hit more home runs.
Baseball players make it to first base.
Basic programmers do it all over the place.
Basic programmers goto it.
Basketball players score more often.
Bass players just pluck at it.
Bassists do it with their fingers.
Batman does it with Robin.
Bayseians probably do it.
Beekeepers like to eat their honey.
Beer brewers do it with more hops.
Beer drinkers get more head.
Beethoven did it apassionately.
Beethoven was the first to do it with a full orchestra.
Bell labs programmers do it with Unix.
Bell-ringers pull it themselves.
Beta testers do it looking for mistakes.
Bicyclists do it with 10 speeds.
Biologists do it with clones.
Birds do it, bees do it, even chimpanzees do it.
Blind people do it in the dark.
Bloggers do it with comments.
Blondes do it with a Thermos.
Bo Jackson knows doing it.
Boardheads do it with stiff masts.
Body-builders do it with muscle.
Bookkeepers are well balanced.
Bookkeepers do it for the record.
Bookkeepers do it with double entry.
Bookworms only read about it.
Bosses delegate the task to others.
Bowlers do it in the alley.
Bowlers have bigger balls.
Boxers do it with fists.
Boy scouts do it in the woods.
Bricklayers lay all day.
Bridge players do it with finesse.
Bridge players try to get a rubber.
Buddhists imagine doing it.
Building inspectors do it under the table.
Bulimics do it after every meal.
Burglars do it without protection.
Bus drivers come early and pull out on time.
Bus drivers do it in transit.
Businessmen screw you the best they can.
Butchers have better meat.
C programmers continue it.
C programmers switch and then break it.
C programmers switch often.
C++ programmers do it with class.
C++ programmers do it with private members and public objects.
C++ programmers do it with their friends, in private.
Calculus majors do it in increments.
Calculus students do it by parts.
Californians do it laid back.
Campers do it in a tent.
Car customisers do it with a hot rod.
Car mechanics jack it.
Cardiologists do it halfheartedly.
Carpenters do it tongue in groove.
Carpenters hammer it harder.
Carpenters nail harder.
Carpet fitters do it on their knees.
Carpet layers do it on the floor.
Cartoonists do it with just a few good strokes.
Catholics do it a lot.
Catholics talk about it afterwards.
Cavaliers do it mounted.
Cavers do it in the mud.
CB'ers do it on the air.
Cellists give better hand jobs.
Cheerleaders do it enthusiastically.
Cheerleaders do it with more enthusiasm.
Chefs do it for dessert.
Chefs do it in the kitchen.
Chemical engineers do it in packed beds.
Chemical engineers do it under a fume hood.
Chemists do it in an excited state.
Chemists do it in test tubes.
Chemists do it in the fume hood.
Chemists do it periodically on table.
Chemists do it reactively.
Chemists like to experiment.
Chess players check their mates.
Chess players do it in their minds.
Chess players do it with knights/kings/queens/bishops/mates.
Chess players mate better.
Chessplayers check their mates.
Chiropractors do it by manipulation.
Chiropractors do it, but they x-ray it first.
Choir boys do it unaccompanied.
Circuit designers have a very low rise time.
City planners do it with their eyes shut.
City street repairmen do it with three supervisors watching.
Civil engineers do it by reinforcing it.
Civil engineers do it in the dirt.
Civil engineers do it with an erection.
Clerics do it with their gods.
Climbers do it on rope.
Clinton does it with flowers.
Clock makers do it mechanically.
Clowns do it for laughs.
Cluster analysts do it in groups.
Coaches whistle while they work.
Cobol hackers do it by committee.
Cobol programmers are self-documenting.
Cobol programmers do it very slowly.
Cobol programmers do it with bugs.
Cockroaches have done it for millions of years, without apparent ill-effects.
Cocktail waitresses serve highballs.
Collectors do it in sets.
<NAME> does it, then licks his fingers.
Comedians do it for laughs.
Commodities traders do it in the pits.
Communications engineers do it 'til it hertz.
Communists do it without class.
Compiler writers optimize it, but they never get around to doing it.
Complexity freaks do it with minimum space.
Composers do it by numbers.
Composers do it with a quill and a staff.
Composers do it with entire orchestras.
Composers leave it unfinished.
Computer engineers do it with minimum delay.
Computer game players just can't stop.
Computer nerds just simulate it.
Computer operators do it upon mount requests.
Computer operators do it with hard drives.
Computer operators get the most out of their software.
Computer operators peek before they poke.
Computer programmers do it bit by bit.
Computer programmers do it interactively.
Computer programmers do it logically.
Computer programmers do it one byte at a time.
Computer science students do it with hard drives.
Computer scientists do it bit by bit.
Computer scientists do it on command.
Computer scientists simulate doing it.
Computers do it in ascii, except ibm's which use ebcdic.
Conductors do it rhythmically.
Conductors do it with the orchestras.
Conductors wave it up and down.
Confectioners do it sweetly.
Congregationalists do it in groups.
Congressmen do it in the house.
Construction workers do it higher.
Construction workers lay a better foundation.
Consultants tell others how to do it.
Cooks do it with grease and a lot of heat.
Cooks do it with oil, sugar and salt.
Copier repairmen do it with duplicity.
Cops do it arrestingly.
Cops do it at gun-point.
Cops do it by the book.
Cops do it with cuffs.
Cops do it with electric rods.
Cops do it with nightsticks.
Cops have bigger guns.
Cowboys handle anything horny.
Cowgirls like to ride bareback.
Cows do it in leather.
Crane operators have swinging balls.
Credit managers always collect.
Cross-word players do it crossly.
Cross-word players do it horizontally and vertically.
Crosscountry runners do it in open fields.
Cryonicists stay stiff longer.
Cryptographers do it secretly.
Cuckoos do it by proxy.Dan quayle does it in the dark.
Dan quayle does it with a potatoe [sic].
Dancers do it in leaps and bounds.
Dancers do it to music.
Dancers do it with grace.
Dancers do it with their high heels on.
Dark horses do it come-from-behind.
Data processors do it in batches.
DB people do it with persistence.
Deadheads do it with Jerry.
Debaters do it in their briefs.
Deep-sea divers do it under extreme pressure.
Deer hunters will do anything for a buck.
Delivery men do it at the rear entrance.
Democratic presidential candidates do it and make you pay for it later.
Democratic presidential candidates do it underwater.
Democratic presidential candidates do it until they can't remember.
Demonstraters do it on the street.
Dental hygenists do it till it hurts.
Dentists do it in your mouth.
Dentists do it orally.
Dentists do it prophylactically.
Dentists do it with drills and on chairs.
Dentists do it with filling.
Deprogrammers do it with sects.
Detectives do it under cover.
Didgeridoo players do it with big sticks.
Didgeridoo players do it with hollow logs.
Dieticians eat better.
Digital hackers do it off and on.
Direct mailers get it in the sack.
Discover gives you cash back.
Dispatchers do it with frequency.
Ditch diggers do it in a damp hole.
Divers always do it with buddies.
Divers always use rubbers.
Divers bring flashlights to see better down there.
Divers can stay down there for a long time.
Divers do it deeper.
Divers do it for a score.
Divers do it in an hour.
Divers do it under pressure.
Divers do it underwater.
Divers do it with a twist.
Divers explore crevices.
Divers go down all the time.
Divers go down for hidden treasures.
Divers have a license to do it.
Divers like groping in the dark.
Divers like to take pictures down there.
Divers train to do it.
DJs do it on request.
DJs do it on the air.
Doctors do it in the O.R.
Doctors do it with injection.
Doctors do it with patience.
Doctors do it with pills.
Doctors do it with stethoscopes.
Doctors take two aspirins and do it in the morning.
Domino's does it in 30 minutes or less.
Don't do it with a banker. Most of them are tellers.
Donors do it for life.
Drama students do it with an audience.
Drivers do it with their cars.
Druggists fill your prescription.
Druids do it in the bushes.
Druids do it with animals.
Druids leave no trace.
Drummers always have hard sticks.
Drummers beat it.
Drummers do it in 4/4 time.
Drummers do it longer.
Drummers do it louder.
Drummers do it with a better beat.
Drummers do it with both hands and feet.
Drummers do it with great rhythm.
Drummers do it with rhythm.
Drummers do it with their wrists.
Drummers have faster hands.
Drummers pound it.
Drywallers are better bangers.
Dungeon masters do it any way they feel like.
Dungeon masters do it anywhere they damn well please.
Dungeon masters do it behind a screen.
Dungeon masters do it in ways contrary to the laws of physics.
Dungeon masters do it to you real good.
Dungeon masters do it whether you like it or not.
Dungeon masters do it with dice.
Dungeon masters have better encounters.
Dyslexic particle physicists do it with hadrons.
E. E. Cumming does it with ease.
Economists do it at bliss point.
Economists do it cyclically.
Economists do it in an edgeworth box.
Economists do it on demand.
Economists do it with a dual.
Economists do it with an atomistic competitor.
Economists do it with interest.
Ee cummings does it with ease.
El ed majors teach it by example.
Electrical education majors teach it by example.
Electrical engineers are shocked when they do it.
Electrical engineers do it on an impulse.
Electrical engineers do it with faster rise time.
Electrical engineers do it with large capacities.
Electrical engineers do it with more frequency and less resistance.
Electrical engineers do it with more power and at higher frequency.
Electrical engineers do it with super position.
Electrical engineers do it without shorts.
Electrical engineers resonate until it hertz.
Electrician undo your shorts for you.
Electricians are qualified to remove your shorts.
Electricians check your shorts.
Electricians do it in their shorts.
Electricians do it just to plug it in.
Electricians do it until it hertz.
Electricians do it with 'no shorts'.
Electricians do it with spark.
Electrochemists have greater potential.
Electron microscopists do it 100,000 times.
Elevator men do it up and down.
Elves do it in fairy rings.
Employers do it to employees.
EMT's do it in ambulances.
Energizer bunny keeps going, and going, and going . . .
Engineers are erectionist perfectionists.
Engineers charge by the hour.
Engineers do it any way they can.
Engineers do it at calculated angles.
Engineers do it in practice.
Engineers do it precisely.
Engineers do it roughly.
Engineers do it to a first order approximation.
Engineers do it with less energy and greater efficiency.
Engineers do it with precision.
Engineers simply neglect it.
English majors do it with an accent.
English majors do it with style.
Entomologists do it with insects.
Entrepreneurs do it with creativity and originality.
Entymologists do it with bugs.
Evangelists do it with Him watching.
Evolutionary biologists do it with increasing complexity.
Executives do it in briefs.
Executives do it in three piece suits.
Executives have large staffs.
Existentialists do it alone.
F.B.I. does it under cover.
Factor analysts rotate their principal components.
Faith healers do it with whatever they can lay their hands on.
Fan makers are the best blowers in the business.
Fantasy roleplayers do it all night.
Fantasy roleplayers do it all weekend.
Fantasy roleplayers do it in a dungeon.
Fantasy roleplayers do it in a group.
Farmers do it all over the countryside.
Farmers do it in the dirt.
Farmers do it on a corn field.
Farmers plant it deep.
Farmers spread it around.
Fed-Ex agents will absolutely, positively do it overnight.
Fencers do it in a full lunge.
Fencers do it with a thrust.
Fencers do it with three feet of sword.
Fetuses do it in-vitro.
Firemen are always in heat.
Firemen do it wearing rubber.
Firemen do it with a big hose.
Firemen find `em hot, and leave `em wet.
Fishermen are proud of their rods.
Fishermen do it for reel.
Flagpole sitters do it in the air.
Flautists blow crosswise.
Flyers do it in the air.
Flyers do it on top, upside down, or rolling.
FM disc jockeys do it in stereo and with high fidelity.
Football players are measured by the yard.
Football players do it offensively/defensively.
Foresters do it in trees.
Forgers do it hot.
Formula one racers come too fast and in laps.
Forth programmers do it from behind.
Fortran programmers do it with double precision.
Fortran programmers do it with soap.
Fortran programmers just do it.
Four-wheelers eat more bush.
<NAME> does it his way.
Fraternity men do it with their little sisters.
Frustrated hackers use self-modifying infinite perversion.
Furriers appreciate good beaver.
Fuzzy theorists both do it and don't do it.
Gamblers do it on a hunch.
Garbagemen come once a week.
Gardeners do it by trimming your bush.
Gardeners do it in bed.
Gardeners do it on the bushes.
Gardeners do it twice a year and then mulch it.
Gardeners have 50 foot hoses.
Gas station attendants pump all day.
Geeks do it in front of Windows.
Generals have something to do with the stars.
Genetecists do it with sick genes.
Geographers do it around the world.
Geographers do it everywhere.
Geographers do it globally.
Geologists are great explorers.
Geologists do it eruptively, with glow, and always smoke afterwards.
Geologists do it in folded beds.
Geologists do it to get their rocks off.
Geologists know how to make the bedrock.
Geometers do it constructively.
Gerald Ford does it on his face.
Gnomes are too short to do it.
Gnu programmers do it for free and they don't give a damn about look & feel.
Golfers always sink their putts.
Golfers do it in 18 holes.
Golfers do it with long shafts.
Golfers hit their balls with shafts.
Graduates do it by degrees.
Gravediggers die to do it.
Greeks do it with their brothers and sisters.
Guitar players do it with a g-string.
Guitar players had their licks.
Guitar players have their pick.
Guitarists strum it with their pick.
Gymnasts do it with grace.
Gymnasts mount and dismount well.
Gynecologists mostly sniff, watch and finger.
Hackers appreciate virtual dresses.
Hackers are I/O experts.
Hackers avoid deadly embrace.
Hackers discover the powers of two.
Hackers do it a little bit.
Hackers do it absolutely.
Hackers do it all night.
Hackers do it at link time.
Hackers do it attached.
Hackers do it automatically.
Hackers do it bottom up.
Hackers do it bug-free.
Hackers do it by the numbers.
Hackers do it concurrently.
Hackers do it conditionally.
Hackers do it detached.
Hackers do it digitally.
Hackers do it discretely.
Hackers do it during downtime.
Hackers do it during PM.
Hackers do it efficiently.
Hackers do it faster.
Hackers do it forever even when they're not supposed to.
Hackers do it globally.
Hackers do it graphically.
Hackers do it immediately.
Hackers do it in batches.
Hackers do it in dumps.
Hackers do it in less space.
Hackers do it in libraries.
Hackers do it in loops.
Hackers do it in parallel.
Hackers do it in stacks.
Hackers do it in the microcode.
Hackers do it in the software.
Hackers do it in trees.
Hackers do it in two states.
Hackers do it indirectly.
Hackers do it interactively.
Hackers do it iteratively.
Hackers do it loaded.
Hackers do it locally.
Hackers do it randomly.
Hackers do it recursively.
Hackers do it reentrantly.
Hackers do it relocatably.
Hackers do it sequentially.
Hackers do it synchronously.
Hackers do it top down.
Hackers do it with all sorts of characters.
Hackers do it with bugs.
Hackers do it with computers.
Hackers do it with daemons.
Hackers do it with DDT.
Hackers do it with demons.
Hackers do it with editors.
Hackers do it with fewer instructions.
Hackers do it with high priority.
Hackers do it with insertion sorts.
Hackers do it with interrupts.
Hackers do it with key strokes.
Hackers do it with open windows.
Hackers do it with phantoms.
Hackers do it with quick sorts.
Hackers do it with recursive descent.
Hackers do it with side effects.
Hackers do it with simultaneous access.
Hackers do it with slaves.
Hackers do it with their fingers.
Hackers do it with words.
Hackers do it without a net.
Hackers do it without arguments.
Hackers do it without detaching.
Hackers do it without proof of termination.
Hackers do it without protection.
Hackers do it without you even knowing it.
Hackers don't do it -- they're hacking all the time.
Hackers get off on tight loops.
Hackers get overlaid.
Hackers have better software tools.
Hackers have faster access routines.
Hackers have good hardware.
Hackers have high bawd rates.
Hackers have it where it counts.
Hackers have response time.
Hackers know all the right movs.
Hackers know what to diddle.
Hackers make it quick.
Hackers multiply with stars.
Hackers stay logged in longer.
Hackers stay up longer.
Hackers take big bytes.
Hair stylists are shear pleasure.
Hairdressers give the best blow jobs.
Ham operators do it with frequency.
Ham radio operators do it till their gigahertz.
Ham radio operators do it with higher frequency.
Ham radio operators do it with more frequency.
Handymen do it with whatever is available.
Handymen like good screws.
Hang-gliders do it in the air.
Hardware buffs do it in nanoseconds.
Hardware designers' performance is hardware dependant.
Hardware hackers are a charge.
Hardware hackers do it closely coupled.
Hardware hackers do it electrically.
Hardware hackers do it intermittently.
Hardware hackers do it noisily.
Hardware hackers do it on a bus.
Hardware hackers do it over a wide temperature range.
Hardware hackers do it with AC and DC.
Hardware hackers do it with bus drivers.
Hardware hackers do it with charge.
Hardware hackers do it with connections.
Hardware hackers do it with emitter-coupled logic.
Hardware hackers do it with female banana plugs.
Hardware hackers do it with male connectors.
Hardware hackers do it with maximum ratings.
Hardware hackers do it with power.
Hardware hackers do it with resistance.
Hardware hackers do it with transceivers.
Hardware hackers do it with uncommon emitters into open collectors.
Hardware hackers have faster rise times.
Hardware hackers have sensitive probes.
Harpists do it by pulling strings.
Hawaiians do it volcanicly.
Hedgehogs do it cautiously.
Heinz does it with great relish.
Heisenberg might have done it.
Helicopter pilots do it while hovering.
Helicopter pilots do it with autorotation.
Hermits do it alone.
Hewlett packard does it with precision.
Hikers do it naturally.
Historians did it.
Historians do it for old times' sake.
Historians do it for prosperity.
Historians do it over long periods of time.
Historians study who did it.
Hobbits do it only if it isn't dangerous.
Hockey-players do it; so what?.
Horn players do it French style.
Horseback riders stay in the saddle longer.
Hunters do it in the bush.
Hunters do it with a bang.
Hunters do it with a big gun.
Hunters eat what they shoot.
Hunters go deeper into the bush.
Hurdlers do it every 10 meters.
Hydrogeologists do it till they're all wet.
Hypertrichologists do it with intensity.
I do it, but nobody else is ever there... so nobody believes me.
I just do it.
I/O hackers do it without interrupt.
I/O hackers have to condition their device first.
Illusionists fake it.
Illusionists only look like they're doing it.
Individualist does it with himself.
Inductors dissipate after doing it.
Infantrymen do it in the trench.
Infectious disease researchers do it with breeding and culture.
Information theorists analyze it with wiener filters.
Insurance salesmen are premium lovers.
Interior decorators do it all over the house.
Interpreters do it manually and orally.
Introverts do it alone.
Inventors find a way to do it.
Irs does it everywhere.
Irs does it to everyone.
Italians do it better. (This line was obviously written by an Italian).
Janitors clean up afterwards.
Janitors do it with a plunger.
Jedi knights do it forcefully.
Jedi masters do it with even more force.
Jewelers mount real gems.
Jews worry about doing it.
Jockeys do it at the gate.
Jockeys do it on the horse-back.
Jockeys do it with their horses.
Jockeys do it with whips and saddles.
Joggers do it on the run.
Judges do it in chambers.
Judges watch it and give scores.
Jugglers do it in a flash.
Jugglers do it with more balls.
Jugglers do it with their balls in the air.
Kayakers do it, roll over, and do it again.
Keyboardists use all their fingers.
Keyboardists use both their hands on one organ.
Landlords do it every month.
Landscapers plant it deeper.
Laser printers do it without making an impression.
Lawyers do it in their briefs.
Lawyers do it on a table.
Lawyers do it on a trial basis.
Lawyers do it to you.
Lawyers do it with clause.
Lawyers do it with extensions in their briefs.
Lawyers do it, which is a great pity.
Lawyers lie about doing it and charge you for believing them.
Lawyers would do it but for 'hung jury'.
Left handers do it right.
Let a gardener trim your bush today.
Let an electrician undo your shorts for you.
Librarians do it by the book.
Librarians do it in the stacks.
Librarians do it on the shelfs.
Librarians do it quietly.
Lifeguards do it on the beach.
Linguists do it with their tongues.
Lions do it with pride.
Lisp hackers are thweet.
Lisp hackers do it in lambda functions.
Lisp hackers do it with rplacd.
Lisp programmers do it by recursion.
Lisp programmers do it without unexpected side effects.
Lisp programmers have to stop and collect garbage.
Locksmiths can get into anything.
Logic programmers do it with unification/resolution.
Logicians do it consistently and completely.
Logicians do it or they do not do it.
Long distance runners last longer.
Long jumpers do it with a running start.
Long-distance runners do it on a predetermined route.
Luddites do it with their hands.
Mac programmers do it in windows.
Mac users do it with mice.
Machine coders do it in bytes.
Machine language programmers do it very fast.
Machinists do it with screw drivers.
Machinists drill often.
Machinists make the best screws.
MacIntosh programmers do it in Windows.
Mages do it with their familiars.
Magic users do it with their hands.
Magic users have crystal balls.
Magicians are quicker than the eye.
Magicians do it with mirrors.
Magicians do it with rabbits.
Mailmen do it at the mail boxes.
Maintenance men sweep 'em off their feet.
Malingerers do it as long as they can't get out of it.
Mall walkers do it slowly.
Managers do it by delegation.
Managers have someone do it for them.
Managers make others do it.
Managers supervise others.
Marketing reps do it on commission.
Married people do it with frozen access.
Masons do it secretively.
Match makers do it with singles.
Match makers do it with sticks.
Math majors do it by example.
Math majors do it by induction.
Math majors do it with a pencil.
Mathematicians do it as a finite sum of an infinite series.
Mathematicians do it as continuous function.
Mathematicians do it associatively.
Mathematicians do it commutatively.
Mathematicians do it constantly.
Mathematicians do it continuously.
Mathematicians do it discretely.
Mathematicians do it exponentially.
Mathematicians do it forever if they can do one and can do one more.
Mathematicians do it functionally.
Mathematicians do it homologically.
Mathematicians do it in fields.
Mathematicians do it in groups.
Mathematicians do it in imaginary domain.
Mathematicians do it in imaginary planes.
Mathematicians do it in numbers.
Mathematicians do it in theory.
Mathematicians do it on smooth contours.
Mathematicians do it over and under the curves.
Mathematicians do it parallel and perpendicular.
Mathematicians do it partially.
Mathematicians do it rationally.
Mathematicians do it reflexively.
Mathematicians do it symmetrically.
Mathematicians do it to prove themselves.
Mathematicians do it to their limits.
Mathematicians do it totally.
Mathematicians do it transcendentally.
Mathematicians do it transitively.
Mathematicians do it variably.
Mathematicians do it with imaginary parts.
Mathematicians do it with linear pairs.
Mathematicians do it with logs.
Mathematicians do it with Nobel's wife.
Mathematicians do it with odd functions.
Mathematicians do it with prime roots.
Mathematicians do it with relations.
Mathematicians do it with rings.
Mathematicians do it with their real parts.
Mathematicians do it without limit.
Mathematicians do over an open unmeasurable interval.
Mathematicians have to prove they did it.
Mathematicians prove they did it.
Mathematicians take it to the limit.
Mds only do it if you have appropriate insurance.
Mechanical engineering majors do it in gear.
Mechanical engineers do it automatically.
Mechanical engineers do it with fluid dynamics.
Mechanical engineers do it with stress and strain.
Mechanics do it from underneath.
Mechanics do it on their backs.
Mechanics do it with oils.
Mechanics have to jack it up and then do it.
Medical researchers do it with mice.
Medical researchers make mice do it first.
Medievalists do it with fake, fluffy weapons.
Merchants do it to customers.
Mermaids can't do it.
Metallurgists are screw'n edge.
Metallurgists do it in the street.
Meteorologists do it unpredictably.
Methodists do it by numbers.
Milkmen deliver twice a week.
Millionaires pay to have it done.
<NAME> does it in his BVDs.
Mimes do it without a sound.
Mimes don't do it; everyone hates a mime.
Miners do it deeper than divers.
Miners sink deeper shafts.
Ministers do it on Sundays.
Ministers do it vicariously.
Missile engineers do it in stages.
Missilemen have better thrust.
Mobius strippers never show you their back side.
Models do it beautifully.
Models do it in any position.
Models do it with all kinds of fancy dresses on.
Modem manufacturers do it with all sorts of characters.
Molecular biologists do it with hot probes.
Monks do it by hand.
Moonies do it within sects.
Morticians do it gravely.
Most of the graduate students get aids.
Mothers do it with their children.
Motorcyclists do it with spread legs.
Motorcyclists like something hot between their legs.
Moto-X'ers do it in the dirt.
Mountain climbers do it on the rocks.
Mountaineers do it with ropes.
Movie stars do it on film.
Mudders do it over the internet.
Multitaskers do it everywhere: concurrently.
Music hackers do it at 3 am.
Music hackers do it audibly.
Music hackers do it in concert.
Music hackers do it in scores.
Music hackers do it with more movements.
Music hackers do it with their organs.
Music hackers want to do it in realtime.
Music majors do it in a chord.
Musicians do it rhythmically.
Musicians do it with rhythm.
Native Amazonians do it with poison tips down along narrow tubes.
Native Americans do it with reservations.
Navigators can show you the way.
Necrophiliacs do it cryptically.
Necrophiliacs do it until they are dead tired.
Nerds do it in rot13.
Network hackers know how to communicate.
Network managers do it in many places at once.
New users do it after reading the helpfile.
New users do it after receiving advice.
Newsmen do it at six and eleven.
Newspaper boys do it in front of every door.
Nike just does it.
Nike wants you to just do it.
Ninjas do it silently.
Ninjas do it in articulated sock.s
Non-smokers do it without huffing and puffing.
Novices do it with instructions.
Nuclear engineers do it hotter than anyone else.
Nukes do it with more power.
Number theorists do it "69".
Nuns do it out of habit.
Nuns do it with the holy spirit.
Nurses are prepared to resuscitate.
Nurses call the shots.
Nurses do it as the doctor ordered.
Nurses do it painlessly.
Nurses do it to patients.
Nurses do it with aseptic technique.
Nurses do it with care.
Nurses do it with fluid restriction.
Nurses do it with TLC.
Oarsmen stroke till it hurts.
Obsessive-compulsive people do it habitually.
Oceanographers do it down under.
Operator does it automatically.
Operator does it in the cty.
Operators do it person-to-person.
Operators mount everything.
Operators really know how to mount it.
Optimists do it without a doubt.
Optometrists do it eyeball-to-eyeball, since they always see eye-to-eye.
Optometrists do it face-to-face.
Organists do it with both hands and both feet.
Organists pull out all the stops and do it with their feet.
Orthodontists do it with braces.
OS people would do it if only they didn't 'deadlock'.
Osteopaths do it until you feel no pain.
Painters do it out in the field with brightly coloured sticky substances.
Painters do it with longer strokes.
Paladins do it good or not at all.
Paladins don't do it.
Pantomimists do it silently.
Paramedics can revive anything.
Paratroopers do it by vertical insertion.
Particle physicists do it energetically.
Particle physicists to it with *charm*.
Pascal programmers are better structured.
Pascal programmers repeat it.
Pascal users do it with runtime support.
Pastors do it with spirit.
Pathologists do it with corpses.
Patients do it in bed, sometimes with great pain.
Pediatricians do it with children.
Penguins do it down south.
Perfectionists do it better.
Perverted hackers do it with pops.
Pessimists can't do it.
Pessimists do it with a sigh.
Pharmacologists do it by prescription.
Pharmacologists do it via the oral route.
Pharmacologists do it with affinity.
Philosophers do it for pure reasons.
Philosophers do it in their minds.
Philosophers do it with their minds.
Philosophers go deep.
Philosophers think about doing it.
Philosophers think they do it.
Philosophers wonder why they did it.
Photographers are better developed.
Photographers do it at 68 degrees or not at all.
Photographers do it in the dark.
Photographers do it while exposing.
Photographers do it with "enlargers."
Photographers do it with a flash.
Photographers do it with a zoom.
Phototherapists do it with the lights on.
Physicists do it a quantum at a time.
Physicists do it at the speed of light.
Physicists do it at two places in the universe at one time.
Physicists do it attractively.
Physicists do it energetically.
Physicists do it in black holes.
Physicists do it in waves.
Physicists do it like Einstein.
Physicists do it magnetically.
Physicists do it on accelerated frames.
Physicists do it particularly.
Physicists do it repulsively.
Physicists do it strangely.
Physicists do it up and down, with charming color, but strange!
Physicists do it with black bodies.
Physicists do it with charm.
Physicists do it with large expensive machinery.
Physicists do it with rigid bodies.
Physicists do it with tensors.
Physicists do it with their vectors.
Physicists do it with uniform harmonic motion.
Physicists get a big bang.
Physics majors do it at the speed of light.
Piano players have faster fingers.
Piano students learn on their teachers' instruments.
Pilots do it higher.
Pilots do it in the cockpit.
Pilots do it on the wing.
Pilots do it to get high.
Pilots do it with flare.
Pilots keep it up longer.
Pilots stay up longer.
Ping-pong players always smash balls.
Pirates do it for the booty.
Pirates do it with stumps.
Pizza delivery boys come in 30 minutes, or it's free.
Plasma physicists do it with everything stripped off.
Plasterers to it hard.
Players do it in a team.
Plumbers do it under the sink.
Plumbers do it with plumber's friends.
Podiatrists do it with someone else's feet.
Poker players do it with their own hand.
Polaroid does it in one step.
Polaroid does it in seconds.
Pole vaulters do it with long, flexible instruments.
Policemen like big busts.
Policemen never cop out.
Politicians do it for 4 years then have to get re-elected.
Politicians do it for 4 years then have to get re-erected.
Politicians do it to everyone.
Politicians do it to make the headlines.
Politicians do it with everyone.
Politicians do it, but they stay in too long and make you pay for it afterwards.
Polymer chemists do it in chains.
Pool cleaners do it wet.
Popes do it in the woods.
Post office workers do it overnight, guaranteed for $8.90.
Postmen are first class males.
Postmen come slower.
Presbyterians do it decently and in order.
Priests do it with amazing grace.
<NAME> does it in succession.
Printers do it without wrinkling the sheets.
Printers reproduce the fastest.
Probate lawyers do it willingly.
Procrastinators do it later.
Procrastinators do it tomorrow.
Procrastinators will do it tomorrow.
Procrastinators will do it when they get around to it.
Proctologists do it in the end.
Proctologists do it with a finger up where the sun don't shine.
Professors do it by the book.
Professors do it from a grant.
Professors do it with class.
Professors don't do it; they leave it as an exercise for their students.
Professors forget to do it.
Programmers cycle forever, until you make them exit.
Programmers do it all night.
Programmers do it bottom-up.
Programmers do it by pushing and popping.
Programmers do it in higher levels.
Programmers do it in loops.
Programmers do it in software.
Programmers do it on command.
Programmers do it top down.
Programmers do it with bugs.
Programmers do it with disks.
Programmers have: bigger disks.
Programmers peek before they poke.
Programmers repeat it until done.
Programmers will do it all night, but only if you are debugged.
Prolog programmers are a cut above the rest.
Promiscuous hackers share resources.
Prostitutes do it at illegal addresses.
Prostitutes do it for profit.
Protestants do it unwillingly.
Psychiatrists do it for at least fifty dollars per session.
Psychiatrists do it on the couch.
Psychologists do it with rats.
Psychologists think they do it.
Public speakers do it orally.
Pyrotechnicians do it with flare.
Pyrotechnicians do it with a blinding flash.
Quakers do it quietly.
Quantum mechanics do it in leaps.
Quantum physicists do it on time.
Racers do it with their horses.
Racers like to come in first.
Racquetball players do it off the wall.
Radio amateurs do it with more frequency.
Radio amateurs do it with two meters.
Radio and TV announcers broadcast it.
Radio engineers do it till it megahertz.
Radio engineers do it with frequency.
Radiocasters do it in the air.
Radiologists do it with high frequency.
Railroaders do it on track.
Rally drivers do it sideways.
Rangers do it in the woods.
Rangers do it with all the animals in the woods.
Raquetball players do it with blue balls.
Real estate people know all the prime spots.
Receptionists do it over the phone.
Recyclers do it again and again and again.
Reporters do it daily.
Reporters do it for a story.
Reporters do it for the sensation it causes.
Republicans do as their lobbyists tell them to.
Republicans do it to poor people.
Research professors do it only if they get grants.
Researchers are still looking for it.
Researchers do it with control.
Retailers move their merchandise.
RISC assembly programmers do it 1073741824 times a second.
Robots do it mechanically.
Rocket scientists do it with higher thrust.
Rocketeers do it on impulse.
Roller-skaters like to roll around.
Rolling Stones magazine does it where they rock.
Roofers do it on top.
Roosters do it coquettishly.
Royal guards do it in uniforms.
Rugby players do it with leather balls.
Runners do it with vigor.
Runners get into more pants.
Sailors do it ad nauseam.
Sailors do it after cruising the seven seas.
Sailors get blown off shore.
Sailors like to be blown.
Salespeople have a way with their tongues.
Sax players are horny.
Saxophonists have curved ones.
Sceptics doubt it can be done.
Scientists discovered it.
Scientists do it experimentally.
Scientists do it with plenty of research.
Scotsmen do it with amazing grace.
Scuba divers do it deeper.
Sculptors beat at it until bits fall off.
Second fiddles do it vilely.
Secretaries do it from 9 to 5.
Seismologists do it when the earth shakes.
Seismologists make the earth move.
Semanticists do it with meaning.
Senators do it on the floor.
Sergeants do it privately.
Set theorists do it with cardinals.
Shakespearean scholars do it... Or don't do it, that is the question....
Sheep do it when led astray.
Shubert didn't finish it.
Simulation hackers do it with models.
Singers do it with microphones.
Skaters do it on ice.
Skeet shooters do it 25 times in 9 different positions.
Skeletons do it with a bone.
Skeptics doubt about it.
Skiers do it spread eagled.
Skiers do it with poles.
Skiers go down fast.
Skunks do it instinctively.
Sky divers do it in the air.
Sky divers never do it without a chute.
Skydivers are good till the last drop.
Skydivers do it at great heights.
Skydivers do it in the air.
Skydivers do it sequentially.
Skydivers go down faster.
Skydivers go in harder.
Skydivers never do it without a chute.
Slaves do it for the masters.
Small boat sailors do it by pumping, rocking, and ooching.
Smalltalk programmers have more methods.
Snakes do it in the grass.
Soap manufacturers do it with Lava.
Soap manufacturers do it with Zest.
Soccer players do it for kicks.
Soccer players do it in 90 minutes.
Soccer players have leather balls.
Sociologists do it with class.
Sociologists do it with standard deviations.
Software designers do it over and over until they get it right.
Software designers do it with system.
Software reliablity specialists keep it up longer.
Software testers do it over and over again.
Solar astronomers do it all day.
Soldiers do it standing erect.
Soldiers do it with a machine gun.
Soldiers do it with shoot.
Sonarmen do it aurally.
Sopranos do it in unison.
Soviet hardline leaders do it with tanks.
Sparrows do it for a lark.
Speakers do it with pointers.
Speaking clocks do it on the third stroke.
Spectroscopists do it until it hertz.
Spectroscopists do it with frequency and intensity.
Speech pathologists are oral specialists.
Speleologists make a science of going deeper.
Spellcasters do it with their rods/staves/wands.
Spelunkers do it in narrow dark places.
Spelunkers do it underground.
Spelunkers do it while wearing heavy rubber protective devices.
Spies do it under cover.
Sportscasters like an instant replay.
Sprinters do it after years of conditioning.
Sprinters do it in less than 10 seconds.
Squatter girls do it with crowbars.
St. <NAME> did it passionately.
Stage hands do it behind the scenes.
Stage hands do it in the dark.
Stage hands do it on cue.
Statisticians do it continuously but discretely.
Statisticians do it when it counts.
Statisticians do it with 95% confidence.
Statisticians do it with large numbers.
Statisticians do it with only a 5% chance of being rejected.
Statisticians do it. After all, it's only normal.
Statisticians probably do it.
Steamfitters do it with a long hot pipe.
Stewardesses do it in the air.
Stragglers do it in the rear.
Students do it as exercises.
Students do it on a guaranteed loan.
Students do it with their students.
Students use their heads.
Submariners do it deeper.
Submariners use their torpedoes.
Supercomputer users do it in parallel.
Surfers do it in waves.
Surfers do it standing up.
Surfers do it with their wives, or, if unmarried, with their girl friends.
Surgeons are smooth operators.
Surgeons do it incisively.
Swashbucklers do it with three feet of steel.
Swimmers do it in the lanes.
Swimmers do it in the water.
Swimmers do it under water.
Swimmers do it with a breast stroke.
Swimmers do it with better strokes.
Sysops do it with their computers.
System hackers are always ready.
System hackers get it up quicker.
System hackers keep it up longer.
System hackers know where to poke.
System hackers swap on demand.
System managers do it with pencils.
Systems go down on their hackers.
Systems have black boxes.
Systems programmers keep it up longer.
Tailors come with no strings attached.
Tailors make it fit.
Tap dancers do it with their feet.
Taxi cab drivers come faster.
Taxi cab drivers do it all over town.
Taxi drivers do it all over town.
Taxidermists mount anything.
Teacher assistants do it with class.
Teachers do it 50 times after class.
Teachers do it repeatedly.
Teachers do it with class.
Teachers make _you_ do it till you get it right.
Technical writers do it manually.
Technicians do it with frequency.
Technicians do it with greater frequency.
Technicians do it with high voltage probes.
Technicians do it with mechanical assistance.
Teddy bears do it with small children.
Teddy Roosevelt did it softly, but with a big stick.
Telephone Co. employees let their fingers do the walking.
Tellers can handle all deposits and withdrawals.
Tennis players do it in sets.
Tennis players do it in their shorts.
Tennis players have fuzzy balls.
Test makers do it sometimes/always/never.
Testators do it willingly.
Texans do it with oil.
The Air Force, aims high, shoots low.
The Army does it being all that they can be.
The Energizer bunny does it and keeps going and going, and going, and going.
The FBI does it under cover.
Theater majors do it with an audience.
Theater techies do it in the dark, on cue.
Theoretical astronomers only *think* about it.
Theoreticians do it conceptually.
Theoreticians do it with a proof.
Thieves do it in leather.
Thieves do it when you're not looking.
Thieves do it with their lock picks.
Thieves do it with tools.
Trainees do it as practice.
Trampoline acrobats do it in the air.
Trampoline acrobats do it over a net.
Trampoline acrobats do it swinging from bars.
Trampoline acrobats do it under the big top.
Tree men do it in more crotches than anyone else.
Tribiological engineers do it by using lubricants.
Trombone players are constantly sliding it in and out.
Trombone players do it faster.
Trombone players do it in 7 positions.
Trombone players do it with slide action finger control.
Trombone players do it with slide oil.
Trombone players have something that's always long and hard.
Trombone players slide it in and out.
Trombone players use more positions.
Trombones do it faster.
Trombonists use more positions.
Truck drivers carry bigger loads.
Truck drivers do it on the road.
Truck drivers have bigger dipsticks.
Truckers have moving experiences.
Trump does it with cash.
Trumpet players blow the best.
Trumpeters blow hard.
Tuba players do it with big horns.
Tubas do it deeper.
TV evangalists do more than lay people.
TV repairmen do it in sync.
TV repairmen do it with a vertical hold.
Twin Peaks fans do it with logs.
Two meter operators do it with very high frequency.
Typesetters do it between periods.
Typists do it in triplicate.
Typographers do it to the letter.
Typographers do it with tight kerning.
Ultimate players do it horizontally.
Undertakers do it with corpses.
Unix don't do it.
Unix hackers go down all the time.
Unix programmers must c her's.
Urologists do it in a bottle.
Usenet freaks do it with hard drives.
Usenet news freaks do it with many groups at once.
Ushers do it in the dark.
Usurers do it with high interests.
Vacationers do it in a leisure way.
Vagrants do it everywhere.
Valuers really know the price.
Vampires do it 'til the sun comes up.
Vanguard do it ahead of everyone else.
Vegetarians don't do it with meats.
Vendors try hard to sell it.
Verifiers check on it.
Versifiers write poems for it.
Veterans have much more experience than the fresh-handed.
Veterinarians are pussy lovers.
Veterinarians do it with animals.
Veterinarians do it with sick animals.
Vicars do it with amazing grace.
Vicars substitute others to.
Vice principals do it with discipline.
Victims are those who got it.
Victors know how hard to win it.
Viewers do it with eyes.
Vilifiers say others don't do it well.
Villagers do it provincially.
Violinists do it gently.
Violinists prefer odd positions.
Violoncellists do it low.
Virtuosi appreciate it.
Visa, its everywhere you want to be.
Visitors come and see it.
Vocalists are good in their mouths.
Volcanologists know how violent it can be.
Voles dick through it.
Volleyball players keep it up.
Volunteers do it willingly.
Votarists decide to contribute themself.
Voters will decide who can do it.
Voyagers do it in between the sea and the sky.
Vulcans do it logically.
Waiters and waitresses do it for tips.
Waitresses do it with chopsticks.
Waitresses serve it hot.
Waitresses serve it piping hot.
Water skiers come down harder.
Water skiers do it with cuts.
Weather forecasters do it with crystal balls.
Weathermen do it with crystal balls.
Welders do it with hot rods.
Welders fill all cracks.
Well diggers do it in a hole.
Werewolves do it as man or beast.
Werewolves do it by the light of the full moon.
Weathermen do it with lightning strokes.
Woodwind players have better tonguing.
Wrestlers know the best holds.
Wrestlers try not to do it on their backs.
Writers have novel ways.
WW I GIs did it over there.
X-ray astronomers do it with high energy.
Xerox does it again and again and again and again.
Zen buddhists do it because they don't want to do it because they want to do it.
Zen monks do it and don't do it.
Zippermakers do it on the fly.
Zippy does it on his lunch break.
Zoologists do it with animals.'''
| true | # Description:
# Ask hubot how people do it.
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot how do <group/occupation> do it? -- tells you how they do it (e.g. hubot how do hackers do it?)
# hubot <people> do it <method> -- tells hubot how <people> do it (e.g. hubot GitHubbers do it in Campfire.)
# hubot do it -- tells you a random way in which random people do it
#
# Notes:
# Node.js programmers do it asynchronously.
# List taken from http://www.dkgoodman.com/doita-f.html#top and originally compiled by PI:NAME:<NAME>END_PI.
#
# Author:
# jenrzzz
String.prototype.capitalize ||= -> @.charAt(0).toUpperCase() + @.slice(1)
module.exports = (robot) ->
unless robot.brain.do_it?.grouped_responses?
do_it_responses = DO_IT.split('\n')
robot.brain.do_it =
responses: do_it_responses
grouped_responses: compile_list(do_it_responses)
robot.respond /do it$/i, (msg) ->
msg.send msg.random(robot.brain.do_it.responses)
robot.respond /how (?:do|does) (.+) do it\??/i, (msg) ->
group = msg.match[1].toLowerCase().trim()
if robot.brain.do_it.grouped_responses[group]?
msg.send msg.random robot.brain.do_it.grouped_responses[group]
else
msg.send "Hmmm, I'm not sure how they do it."
robot.respond /(.+) (?:do|does) it (?:.+)/i, (msg) ->
group = msg.match[1].toLowerCase().trim()
robot.brain.do_it.responses.push msg.match[0]
robot.brain.do_it.grouped_responses[group] ||= []
robot.brain.do_it.grouped_responses[group].push msg.match[0].slice(msg.match[0].indexOf(' ') + 1).capitalize()
compile_list = (responses) ->
grouped = {}
responses.forEach (r) ->
if /do it/.test(r)
group_name = r.slice(0, r.indexOf('do it')).toLowerCase().trim()
else
group_name = r.slice(0, r.indexOf(' ')).toLowerCase().trim()
grouped[group_name] ||= []
grouped[group_name].push r
return grouped
DO_IT = '''A king does it with his official seal.
Accountants are good with figures.
Accountants do it for profit.
Accountants do it with balance.
Accountants do it with double entry.
Accy majors do it in numbers.
Acrophobes get down.
Actors do it in the limelight.
Actors do it on camera.
Actors do it on cue.
Actors do it on stage.
Actors play around.
Actors pretend doing it.
Actuaries probably do it
Actuaries do it continuously and discretely.
Actuaries do it with varying rates of interest.
Actuaries do it with models.
Actuaries do it on tables.
Actuaries do it with frequency and severity.
Actuaries do it until death or disability, whichever comes first.
Acupuncturists do it with a small prick.
Ada programmers do it by committee.
Ada programmers do it in packages.
Advertisers use the "new, improved" method.
Advertising majors do it with style.
Aerobics instructors do it until it hurts.
Aerospace engineers do it with lift and thrust.
Agents do it undercover.
AI hackers do it artificially.
AI hackers do it breast first.
AI hackers do it depth first.
AI hackers do it robotically.
AI hackers do it with robots.
AI hackers do it with rules.
AI hackers make a big production out of it.
AI people do it with a lisp.
Air couriers do it all over the world in big jets.
Air traffic controllers do it by radar.
Air traffic controllers do it in the dark.
Air traffic controllers do it with their tongue.
Air traffic controllers tell pilots how to do it.
Air traffic, getting things down safely.
Airlifters penetrate further, linger longer, and drop a bigger load.
Airline pilots do it at incredible heights.
PI:NAME:<NAME>END_PI does it alone.
Algebraists do it with homomorphisms.
Algorithmic analysts do it with a combinatorial explosion.
Alpinists do it higher.
PI:NAME:<NAME>END_PI will do it in the future.
AM disc jockeys do it with modulated amplitude.
Amateur radio operators do it with frequency.
Ambulance drivers come quicker.
America finds it at Waldenbooks.
Anaesthetists do it until you fall asleep.
Analog hackers do it continuously.
Anarchists do it revoltingly.
Anesthetists do it painlessly.
Anglers do it with worms.
Animators do it 24 times a second.
Announcers broadcast.
ANSI does it in the standard way.
Anthropologists do it with culture.
APL programmers are functional.
APL programmers do it backwards.
APL programmers do it in a line.
APL programmers do it in the workspace.
APL programmers do it with stile.
Apologists do it orally.
Archaeologists do it in the dirt.
Archaeologists do it with mummies.
Archaeologists like it old.
Archers use longer shafts.
Architects are responsible for the tallest erections.
Architects do it late.
Architects have great plans.
Architectural historians can tell you who put it up and how big it was.
Architecture majors stay up all night.
PI:NAME:<NAME>END_PI does it on his motorcycle.
Arsonists do it with fire.
Art historians can tell you who did it, where they did it, what they.
Artillerymen do it with a burst.
Artists are exhibitionists.
Artists do it by design.
Artists do it in the buff.
Artists do it with creativity.
Artists do it with emotion.
Assassins do it from behind.
Assembly line workers do it over and over.
Assembly programmers do it a byte at a time.
Assembly programmers only get a little bit to play with.
Astronauts do it in orbit.
Astronauts do it on re-entry.
Astronauts do it on the moon.
Astronomers can't do it with the lights on.
Astronomers do it all night.
Astronomers do it from light-years away.
Astronomers do it in the dark.
Astronomers do it only at night.
Astronomers do it under the stars.
Astronomers do it whenever they can find a hole in the clouds.
Astronomers do it while gazing at Uranus.
Astronomers do it with all the stars.
Astronomers do it with a big bang.
Astronomers do it with heavenly bodies.
Astronomers do it with long tubes.
Astronomers do it with stars.
Astronomers do it with their telescopes.
Astronomers do it with Uranus.
Astrophysicists do it with a big bang.
AT&T does it in long lines.
Attorneys make better motions.
Auditors like to examine figures.
Australians do it down under.
Authors do it by rote.
Auto makers do it with optional equipment.
Auto makers do it with standard equipment.
Auto mechanics do it under hoods, using oil and grease.
Babies do it in their pants.
Babysitters charge by the hour.
Bach did it with the organ.
Bailiffs always come to order.
Bakers do it for the dough.
Bakers knead it daily.
Ballerinas do it en point.
Ballet dancers do it on tip-toe.
Ballet dancers do it with toes.
Banana pickers do it in bunches.
Band members do it all night.
Band members do it in a parade.
Band members do it in front of 100,000 people.
Band members do it in public.
Band members do it in sectionals.
Band members do it on the football field.
Band members play all night.
Banjo players pluck with a stiff pick.
Bank tellers do it with interest. Penalty for early withdrawl.
Bankers do it for money, but there is a penalty for early withdrawal.
Bankers do it with interest, but pay for early withdrawl.
Baptists do it under water.
Barbarians do it with anything. (So do orcs.)
Barbers do it and end up with soaping hair.
Barbers do it with Brylcreem.
Barbers do it with shear pleasure.
Bartenders do it on the rocks.
Baseball players do it for a lot of money.
Baseball players do it in teams.
Baseball players do it with their bats.
Baseball players hit more home runs.
Baseball players make it to first base.
Basic programmers do it all over the place.
Basic programmers goto it.
Basketball players score more often.
Bass players just pluck at it.
Bassists do it with their fingers.
Batman does it with Robin.
Bayseians probably do it.
Beekeepers like to eat their honey.
Beer brewers do it with more hops.
Beer drinkers get more head.
Beethoven did it apassionately.
Beethoven was the first to do it with a full orchestra.
Bell labs programmers do it with Unix.
Bell-ringers pull it themselves.
Beta testers do it looking for mistakes.
Bicyclists do it with 10 speeds.
Biologists do it with clones.
Birds do it, bees do it, even chimpanzees do it.
Blind people do it in the dark.
Bloggers do it with comments.
Blondes do it with a Thermos.
Bo Jackson knows doing it.
Boardheads do it with stiff masts.
Body-builders do it with muscle.
Bookkeepers are well balanced.
Bookkeepers do it for the record.
Bookkeepers do it with double entry.
Bookworms only read about it.
Bosses delegate the task to others.
Bowlers do it in the alley.
Bowlers have bigger balls.
Boxers do it with fists.
Boy scouts do it in the woods.
Bricklayers lay all day.
Bridge players do it with finesse.
Bridge players try to get a rubber.
Buddhists imagine doing it.
Building inspectors do it under the table.
Bulimics do it after every meal.
Burglars do it without protection.
Bus drivers come early and pull out on time.
Bus drivers do it in transit.
Businessmen screw you the best they can.
Butchers have better meat.
C programmers continue it.
C programmers switch and then break it.
C programmers switch often.
C++ programmers do it with class.
C++ programmers do it with private members and public objects.
C++ programmers do it with their friends, in private.
Calculus majors do it in increments.
Calculus students do it by parts.
Californians do it laid back.
Campers do it in a tent.
Car customisers do it with a hot rod.
Car mechanics jack it.
Cardiologists do it halfheartedly.
Carpenters do it tongue in groove.
Carpenters hammer it harder.
Carpenters nail harder.
Carpet fitters do it on their knees.
Carpet layers do it on the floor.
Cartoonists do it with just a few good strokes.
Catholics do it a lot.
Catholics talk about it afterwards.
Cavaliers do it mounted.
Cavers do it in the mud.
CB'ers do it on the air.
Cellists give better hand jobs.
Cheerleaders do it enthusiastically.
Cheerleaders do it with more enthusiasm.
Chefs do it for dessert.
Chefs do it in the kitchen.
Chemical engineers do it in packed beds.
Chemical engineers do it under a fume hood.
Chemists do it in an excited state.
Chemists do it in test tubes.
Chemists do it in the fume hood.
Chemists do it periodically on table.
Chemists do it reactively.
Chemists like to experiment.
Chess players check their mates.
Chess players do it in their minds.
Chess players do it with knights/kings/queens/bishops/mates.
Chess players mate better.
Chessplayers check their mates.
Chiropractors do it by manipulation.
Chiropractors do it, but they x-ray it first.
Choir boys do it unaccompanied.
Circuit designers have a very low rise time.
City planners do it with their eyes shut.
City street repairmen do it with three supervisors watching.
Civil engineers do it by reinforcing it.
Civil engineers do it in the dirt.
Civil engineers do it with an erection.
Clerics do it with their gods.
Climbers do it on rope.
Clinton does it with flowers.
Clock makers do it mechanically.
Clowns do it for laughs.
Cluster analysts do it in groups.
Coaches whistle while they work.
Cobol hackers do it by committee.
Cobol programmers are self-documenting.
Cobol programmers do it very slowly.
Cobol programmers do it with bugs.
Cockroaches have done it for millions of years, without apparent ill-effects.
Cocktail waitresses serve highballs.
Collectors do it in sets.
PI:NAME:<NAME>END_PI does it, then licks his fingers.
Comedians do it for laughs.
Commodities traders do it in the pits.
Communications engineers do it 'til it hertz.
Communists do it without class.
Compiler writers optimize it, but they never get around to doing it.
Complexity freaks do it with minimum space.
Composers do it by numbers.
Composers do it with a quill and a staff.
Composers do it with entire orchestras.
Composers leave it unfinished.
Computer engineers do it with minimum delay.
Computer game players just can't stop.
Computer nerds just simulate it.
Computer operators do it upon mount requests.
Computer operators do it with hard drives.
Computer operators get the most out of their software.
Computer operators peek before they poke.
Computer programmers do it bit by bit.
Computer programmers do it interactively.
Computer programmers do it logically.
Computer programmers do it one byte at a time.
Computer science students do it with hard drives.
Computer scientists do it bit by bit.
Computer scientists do it on command.
Computer scientists simulate doing it.
Computers do it in ascii, except ibm's which use ebcdic.
Conductors do it rhythmically.
Conductors do it with the orchestras.
Conductors wave it up and down.
Confectioners do it sweetly.
Congregationalists do it in groups.
Congressmen do it in the house.
Construction workers do it higher.
Construction workers lay a better foundation.
Consultants tell others how to do it.
Cooks do it with grease and a lot of heat.
Cooks do it with oil, sugar and salt.
Copier repairmen do it with duplicity.
Cops do it arrestingly.
Cops do it at gun-point.
Cops do it by the book.
Cops do it with cuffs.
Cops do it with electric rods.
Cops do it with nightsticks.
Cops have bigger guns.
Cowboys handle anything horny.
Cowgirls like to ride bareback.
Cows do it in leather.
Crane operators have swinging balls.
Credit managers always collect.
Cross-word players do it crossly.
Cross-word players do it horizontally and vertically.
Crosscountry runners do it in open fields.
Cryonicists stay stiff longer.
Cryptographers do it secretly.
Cuckoos do it by proxy.Dan quayle does it in the dark.
Dan quayle does it with a potatoe [sic].
Dancers do it in leaps and bounds.
Dancers do it to music.
Dancers do it with grace.
Dancers do it with their high heels on.
Dark horses do it come-from-behind.
Data processors do it in batches.
DB people do it with persistence.
Deadheads do it with Jerry.
Debaters do it in their briefs.
Deep-sea divers do it under extreme pressure.
Deer hunters will do anything for a buck.
Delivery men do it at the rear entrance.
Democratic presidential candidates do it and make you pay for it later.
Democratic presidential candidates do it underwater.
Democratic presidential candidates do it until they can't remember.
Demonstraters do it on the street.
Dental hygenists do it till it hurts.
Dentists do it in your mouth.
Dentists do it orally.
Dentists do it prophylactically.
Dentists do it with drills and on chairs.
Dentists do it with filling.
Deprogrammers do it with sects.
Detectives do it under cover.
Didgeridoo players do it with big sticks.
Didgeridoo players do it with hollow logs.
Dieticians eat better.
Digital hackers do it off and on.
Direct mailers get it in the sack.
Discover gives you cash back.
Dispatchers do it with frequency.
Ditch diggers do it in a damp hole.
Divers always do it with buddies.
Divers always use rubbers.
Divers bring flashlights to see better down there.
Divers can stay down there for a long time.
Divers do it deeper.
Divers do it for a score.
Divers do it in an hour.
Divers do it under pressure.
Divers do it underwater.
Divers do it with a twist.
Divers explore crevices.
Divers go down all the time.
Divers go down for hidden treasures.
Divers have a license to do it.
Divers like groping in the dark.
Divers like to take pictures down there.
Divers train to do it.
DJs do it on request.
DJs do it on the air.
Doctors do it in the O.R.
Doctors do it with injection.
Doctors do it with patience.
Doctors do it with pills.
Doctors do it with stethoscopes.
Doctors take two aspirins and do it in the morning.
Domino's does it in 30 minutes or less.
Don't do it with a banker. Most of them are tellers.
Donors do it for life.
Drama students do it with an audience.
Drivers do it with their cars.
Druggists fill your prescription.
Druids do it in the bushes.
Druids do it with animals.
Druids leave no trace.
Drummers always have hard sticks.
Drummers beat it.
Drummers do it in 4/4 time.
Drummers do it longer.
Drummers do it louder.
Drummers do it with a better beat.
Drummers do it with both hands and feet.
Drummers do it with great rhythm.
Drummers do it with rhythm.
Drummers do it with their wrists.
Drummers have faster hands.
Drummers pound it.
Drywallers are better bangers.
Dungeon masters do it any way they feel like.
Dungeon masters do it anywhere they damn well please.
Dungeon masters do it behind a screen.
Dungeon masters do it in ways contrary to the laws of physics.
Dungeon masters do it to you real good.
Dungeon masters do it whether you like it or not.
Dungeon masters do it with dice.
Dungeon masters have better encounters.
Dyslexic particle physicists do it with hadrons.
E. E. Cumming does it with ease.
Economists do it at bliss point.
Economists do it cyclically.
Economists do it in an edgeworth box.
Economists do it on demand.
Economists do it with a dual.
Economists do it with an atomistic competitor.
Economists do it with interest.
Ee cummings does it with ease.
El ed majors teach it by example.
Electrical education majors teach it by example.
Electrical engineers are shocked when they do it.
Electrical engineers do it on an impulse.
Electrical engineers do it with faster rise time.
Electrical engineers do it with large capacities.
Electrical engineers do it with more frequency and less resistance.
Electrical engineers do it with more power and at higher frequency.
Electrical engineers do it with super position.
Electrical engineers do it without shorts.
Electrical engineers resonate until it hertz.
Electrician undo your shorts for you.
Electricians are qualified to remove your shorts.
Electricians check your shorts.
Electricians do it in their shorts.
Electricians do it just to plug it in.
Electricians do it until it hertz.
Electricians do it with 'no shorts'.
Electricians do it with spark.
Electrochemists have greater potential.
Electron microscopists do it 100,000 times.
Elevator men do it up and down.
Elves do it in fairy rings.
Employers do it to employees.
EMT's do it in ambulances.
Energizer bunny keeps going, and going, and going . . .
Engineers are erectionist perfectionists.
Engineers charge by the hour.
Engineers do it any way they can.
Engineers do it at calculated angles.
Engineers do it in practice.
Engineers do it precisely.
Engineers do it roughly.
Engineers do it to a first order approximation.
Engineers do it with less energy and greater efficiency.
Engineers do it with precision.
Engineers simply neglect it.
English majors do it with an accent.
English majors do it with style.
Entomologists do it with insects.
Entrepreneurs do it with creativity and originality.
Entymologists do it with bugs.
Evangelists do it with Him watching.
Evolutionary biologists do it with increasing complexity.
Executives do it in briefs.
Executives do it in three piece suits.
Executives have large staffs.
Existentialists do it alone.
F.B.I. does it under cover.
Factor analysts rotate their principal components.
Faith healers do it with whatever they can lay their hands on.
Fan makers are the best blowers in the business.
Fantasy roleplayers do it all night.
Fantasy roleplayers do it all weekend.
Fantasy roleplayers do it in a dungeon.
Fantasy roleplayers do it in a group.
Farmers do it all over the countryside.
Farmers do it in the dirt.
Farmers do it on a corn field.
Farmers plant it deep.
Farmers spread it around.
Fed-Ex agents will absolutely, positively do it overnight.
Fencers do it in a full lunge.
Fencers do it with a thrust.
Fencers do it with three feet of sword.
Fetuses do it in-vitro.
Firemen are always in heat.
Firemen do it wearing rubber.
Firemen do it with a big hose.
Firemen find `em hot, and leave `em wet.
Fishermen are proud of their rods.
Fishermen do it for reel.
Flagpole sitters do it in the air.
Flautists blow crosswise.
Flyers do it in the air.
Flyers do it on top, upside down, or rolling.
FM disc jockeys do it in stereo and with high fidelity.
Football players are measured by the yard.
Football players do it offensively/defensively.
Foresters do it in trees.
Forgers do it hot.
Formula one racers come too fast and in laps.
Forth programmers do it from behind.
Fortran programmers do it with double precision.
Fortran programmers do it with soap.
Fortran programmers just do it.
Four-wheelers eat more bush.
PI:NAME:<NAME>END_PI does it his way.
Fraternity men do it with their little sisters.
Frustrated hackers use self-modifying infinite perversion.
Furriers appreciate good beaver.
Fuzzy theorists both do it and don't do it.
Gamblers do it on a hunch.
Garbagemen come once a week.
Gardeners do it by trimming your bush.
Gardeners do it in bed.
Gardeners do it on the bushes.
Gardeners do it twice a year and then mulch it.
Gardeners have 50 foot hoses.
Gas station attendants pump all day.
Geeks do it in front of Windows.
Generals have something to do with the stars.
Genetecists do it with sick genes.
Geographers do it around the world.
Geographers do it everywhere.
Geographers do it globally.
Geologists are great explorers.
Geologists do it eruptively, with glow, and always smoke afterwards.
Geologists do it in folded beds.
Geologists do it to get their rocks off.
Geologists know how to make the bedrock.
Geometers do it constructively.
Gerald Ford does it on his face.
Gnomes are too short to do it.
Gnu programmers do it for free and they don't give a damn about look & feel.
Golfers always sink their putts.
Golfers do it in 18 holes.
Golfers do it with long shafts.
Golfers hit their balls with shafts.
Graduates do it by degrees.
Gravediggers die to do it.
Greeks do it with their brothers and sisters.
Guitar players do it with a g-string.
Guitar players had their licks.
Guitar players have their pick.
Guitarists strum it with their pick.
Gymnasts do it with grace.
Gymnasts mount and dismount well.
Gynecologists mostly sniff, watch and finger.
Hackers appreciate virtual dresses.
Hackers are I/O experts.
Hackers avoid deadly embrace.
Hackers discover the powers of two.
Hackers do it a little bit.
Hackers do it absolutely.
Hackers do it all night.
Hackers do it at link time.
Hackers do it attached.
Hackers do it automatically.
Hackers do it bottom up.
Hackers do it bug-free.
Hackers do it by the numbers.
Hackers do it concurrently.
Hackers do it conditionally.
Hackers do it detached.
Hackers do it digitally.
Hackers do it discretely.
Hackers do it during downtime.
Hackers do it during PM.
Hackers do it efficiently.
Hackers do it faster.
Hackers do it forever even when they're not supposed to.
Hackers do it globally.
Hackers do it graphically.
Hackers do it immediately.
Hackers do it in batches.
Hackers do it in dumps.
Hackers do it in less space.
Hackers do it in libraries.
Hackers do it in loops.
Hackers do it in parallel.
Hackers do it in stacks.
Hackers do it in the microcode.
Hackers do it in the software.
Hackers do it in trees.
Hackers do it in two states.
Hackers do it indirectly.
Hackers do it interactively.
Hackers do it iteratively.
Hackers do it loaded.
Hackers do it locally.
Hackers do it randomly.
Hackers do it recursively.
Hackers do it reentrantly.
Hackers do it relocatably.
Hackers do it sequentially.
Hackers do it synchronously.
Hackers do it top down.
Hackers do it with all sorts of characters.
Hackers do it with bugs.
Hackers do it with computers.
Hackers do it with daemons.
Hackers do it with DDT.
Hackers do it with demons.
Hackers do it with editors.
Hackers do it with fewer instructions.
Hackers do it with high priority.
Hackers do it with insertion sorts.
Hackers do it with interrupts.
Hackers do it with key strokes.
Hackers do it with open windows.
Hackers do it with phantoms.
Hackers do it with quick sorts.
Hackers do it with recursive descent.
Hackers do it with side effects.
Hackers do it with simultaneous access.
Hackers do it with slaves.
Hackers do it with their fingers.
Hackers do it with words.
Hackers do it without a net.
Hackers do it without arguments.
Hackers do it without detaching.
Hackers do it without proof of termination.
Hackers do it without protection.
Hackers do it without you even knowing it.
Hackers don't do it -- they're hacking all the time.
Hackers get off on tight loops.
Hackers get overlaid.
Hackers have better software tools.
Hackers have faster access routines.
Hackers have good hardware.
Hackers have high bawd rates.
Hackers have it where it counts.
Hackers have response time.
Hackers know all the right movs.
Hackers know what to diddle.
Hackers make it quick.
Hackers multiply with stars.
Hackers stay logged in longer.
Hackers stay up longer.
Hackers take big bytes.
Hair stylists are shear pleasure.
Hairdressers give the best blow jobs.
Ham operators do it with frequency.
Ham radio operators do it till their gigahertz.
Ham radio operators do it with higher frequency.
Ham radio operators do it with more frequency.
Handymen do it with whatever is available.
Handymen like good screws.
Hang-gliders do it in the air.
Hardware buffs do it in nanoseconds.
Hardware designers' performance is hardware dependant.
Hardware hackers are a charge.
Hardware hackers do it closely coupled.
Hardware hackers do it electrically.
Hardware hackers do it intermittently.
Hardware hackers do it noisily.
Hardware hackers do it on a bus.
Hardware hackers do it over a wide temperature range.
Hardware hackers do it with AC and DC.
Hardware hackers do it with bus drivers.
Hardware hackers do it with charge.
Hardware hackers do it with connections.
Hardware hackers do it with emitter-coupled logic.
Hardware hackers do it with female banana plugs.
Hardware hackers do it with male connectors.
Hardware hackers do it with maximum ratings.
Hardware hackers do it with power.
Hardware hackers do it with resistance.
Hardware hackers do it with transceivers.
Hardware hackers do it with uncommon emitters into open collectors.
Hardware hackers have faster rise times.
Hardware hackers have sensitive probes.
Harpists do it by pulling strings.
Hawaiians do it volcanicly.
Hedgehogs do it cautiously.
Heinz does it with great relish.
Heisenberg might have done it.
Helicopter pilots do it while hovering.
Helicopter pilots do it with autorotation.
Hermits do it alone.
Hewlett packard does it with precision.
Hikers do it naturally.
Historians did it.
Historians do it for old times' sake.
Historians do it for prosperity.
Historians do it over long periods of time.
Historians study who did it.
Hobbits do it only if it isn't dangerous.
Hockey-players do it; so what?.
Horn players do it French style.
Horseback riders stay in the saddle longer.
Hunters do it in the bush.
Hunters do it with a bang.
Hunters do it with a big gun.
Hunters eat what they shoot.
Hunters go deeper into the bush.
Hurdlers do it every 10 meters.
Hydrogeologists do it till they're all wet.
Hypertrichologists do it with intensity.
I do it, but nobody else is ever there... so nobody believes me.
I just do it.
I/O hackers do it without interrupt.
I/O hackers have to condition their device first.
Illusionists fake it.
Illusionists only look like they're doing it.
Individualist does it with himself.
Inductors dissipate after doing it.
Infantrymen do it in the trench.
Infectious disease researchers do it with breeding and culture.
Information theorists analyze it with wiener filters.
Insurance salesmen are premium lovers.
Interior decorators do it all over the house.
Interpreters do it manually and orally.
Introverts do it alone.
Inventors find a way to do it.
Irs does it everywhere.
Irs does it to everyone.
Italians do it better. (This line was obviously written by an Italian).
Janitors clean up afterwards.
Janitors do it with a plunger.
Jedi knights do it forcefully.
Jedi masters do it with even more force.
Jewelers mount real gems.
Jews worry about doing it.
Jockeys do it at the gate.
Jockeys do it on the horse-back.
Jockeys do it with their horses.
Jockeys do it with whips and saddles.
Joggers do it on the run.
Judges do it in chambers.
Judges watch it and give scores.
Jugglers do it in a flash.
Jugglers do it with more balls.
Jugglers do it with their balls in the air.
Kayakers do it, roll over, and do it again.
Keyboardists use all their fingers.
Keyboardists use both their hands on one organ.
Landlords do it every month.
Landscapers plant it deeper.
Laser printers do it without making an impression.
Lawyers do it in their briefs.
Lawyers do it on a table.
Lawyers do it on a trial basis.
Lawyers do it to you.
Lawyers do it with clause.
Lawyers do it with extensions in their briefs.
Lawyers do it, which is a great pity.
Lawyers lie about doing it and charge you for believing them.
Lawyers would do it but for 'hung jury'.
Left handers do it right.
Let a gardener trim your bush today.
Let an electrician undo your shorts for you.
Librarians do it by the book.
Librarians do it in the stacks.
Librarians do it on the shelfs.
Librarians do it quietly.
Lifeguards do it on the beach.
Linguists do it with their tongues.
Lions do it with pride.
Lisp hackers are thweet.
Lisp hackers do it in lambda functions.
Lisp hackers do it with rplacd.
Lisp programmers do it by recursion.
Lisp programmers do it without unexpected side effects.
Lisp programmers have to stop and collect garbage.
Locksmiths can get into anything.
Logic programmers do it with unification/resolution.
Logicians do it consistently and completely.
Logicians do it or they do not do it.
Long distance runners last longer.
Long jumpers do it with a running start.
Long-distance runners do it on a predetermined route.
Luddites do it with their hands.
Mac programmers do it in windows.
Mac users do it with mice.
Machine coders do it in bytes.
Machine language programmers do it very fast.
Machinists do it with screw drivers.
Machinists drill often.
Machinists make the best screws.
MacIntosh programmers do it in Windows.
Mages do it with their familiars.
Magic users do it with their hands.
Magic users have crystal balls.
Magicians are quicker than the eye.
Magicians do it with mirrors.
Magicians do it with rabbits.
Mailmen do it at the mail boxes.
Maintenance men sweep 'em off their feet.
Malingerers do it as long as they can't get out of it.
Mall walkers do it slowly.
Managers do it by delegation.
Managers have someone do it for them.
Managers make others do it.
Managers supervise others.
Marketing reps do it on commission.
Married people do it with frozen access.
Masons do it secretively.
Match makers do it with singles.
Match makers do it with sticks.
Math majors do it by example.
Math majors do it by induction.
Math majors do it with a pencil.
Mathematicians do it as a finite sum of an infinite series.
Mathematicians do it as continuous function.
Mathematicians do it associatively.
Mathematicians do it commutatively.
Mathematicians do it constantly.
Mathematicians do it continuously.
Mathematicians do it discretely.
Mathematicians do it exponentially.
Mathematicians do it forever if they can do one and can do one more.
Mathematicians do it functionally.
Mathematicians do it homologically.
Mathematicians do it in fields.
Mathematicians do it in groups.
Mathematicians do it in imaginary domain.
Mathematicians do it in imaginary planes.
Mathematicians do it in numbers.
Mathematicians do it in theory.
Mathematicians do it on smooth contours.
Mathematicians do it over and under the curves.
Mathematicians do it parallel and perpendicular.
Mathematicians do it partially.
Mathematicians do it rationally.
Mathematicians do it reflexively.
Mathematicians do it symmetrically.
Mathematicians do it to prove themselves.
Mathematicians do it to their limits.
Mathematicians do it totally.
Mathematicians do it transcendentally.
Mathematicians do it transitively.
Mathematicians do it variably.
Mathematicians do it with imaginary parts.
Mathematicians do it with linear pairs.
Mathematicians do it with logs.
Mathematicians do it with Nobel's wife.
Mathematicians do it with odd functions.
Mathematicians do it with prime roots.
Mathematicians do it with relations.
Mathematicians do it with rings.
Mathematicians do it with their real parts.
Mathematicians do it without limit.
Mathematicians do over an open unmeasurable interval.
Mathematicians have to prove they did it.
Mathematicians prove they did it.
Mathematicians take it to the limit.
Mds only do it if you have appropriate insurance.
Mechanical engineering majors do it in gear.
Mechanical engineers do it automatically.
Mechanical engineers do it with fluid dynamics.
Mechanical engineers do it with stress and strain.
Mechanics do it from underneath.
Mechanics do it on their backs.
Mechanics do it with oils.
Mechanics have to jack it up and then do it.
Medical researchers do it with mice.
Medical researchers make mice do it first.
Medievalists do it with fake, fluffy weapons.
Merchants do it to customers.
Mermaids can't do it.
Metallurgists are screw'n edge.
Metallurgists do it in the street.
Meteorologists do it unpredictably.
Methodists do it by numbers.
Milkmen deliver twice a week.
Millionaires pay to have it done.
PI:NAME:<NAME>END_PI does it in his BVDs.
Mimes do it without a sound.
Mimes don't do it; everyone hates a mime.
Miners do it deeper than divers.
Miners sink deeper shafts.
Ministers do it on Sundays.
Ministers do it vicariously.
Missile engineers do it in stages.
Missilemen have better thrust.
Mobius strippers never show you their back side.
Models do it beautifully.
Models do it in any position.
Models do it with all kinds of fancy dresses on.
Modem manufacturers do it with all sorts of characters.
Molecular biologists do it with hot probes.
Monks do it by hand.
Moonies do it within sects.
Morticians do it gravely.
Most of the graduate students get aids.
Mothers do it with their children.
Motorcyclists do it with spread legs.
Motorcyclists like something hot between their legs.
Moto-X'ers do it in the dirt.
Mountain climbers do it on the rocks.
Mountaineers do it with ropes.
Movie stars do it on film.
Mudders do it over the internet.
Multitaskers do it everywhere: concurrently.
Music hackers do it at 3 am.
Music hackers do it audibly.
Music hackers do it in concert.
Music hackers do it in scores.
Music hackers do it with more movements.
Music hackers do it with their organs.
Music hackers want to do it in realtime.
Music majors do it in a chord.
Musicians do it rhythmically.
Musicians do it with rhythm.
Native Amazonians do it with poison tips down along narrow tubes.
Native Americans do it with reservations.
Navigators can show you the way.
Necrophiliacs do it cryptically.
Necrophiliacs do it until they are dead tired.
Nerds do it in rot13.
Network hackers know how to communicate.
Network managers do it in many places at once.
New users do it after reading the helpfile.
New users do it after receiving advice.
Newsmen do it at six and eleven.
Newspaper boys do it in front of every door.
Nike just does it.
Nike wants you to just do it.
Ninjas do it silently.
Ninjas do it in articulated sock.s
Non-smokers do it without huffing and puffing.
Novices do it with instructions.
Nuclear engineers do it hotter than anyone else.
Nukes do it with more power.
Number theorists do it "69".
Nuns do it out of habit.
Nuns do it with the holy spirit.
Nurses are prepared to resuscitate.
Nurses call the shots.
Nurses do it as the doctor ordered.
Nurses do it painlessly.
Nurses do it to patients.
Nurses do it with aseptic technique.
Nurses do it with care.
Nurses do it with fluid restriction.
Nurses do it with TLC.
Oarsmen stroke till it hurts.
Obsessive-compulsive people do it habitually.
Oceanographers do it down under.
Operator does it automatically.
Operator does it in the cty.
Operators do it person-to-person.
Operators mount everything.
Operators really know how to mount it.
Optimists do it without a doubt.
Optometrists do it eyeball-to-eyeball, since they always see eye-to-eye.
Optometrists do it face-to-face.
Organists do it with both hands and both feet.
Organists pull out all the stops and do it with their feet.
Orthodontists do it with braces.
OS people would do it if only they didn't 'deadlock'.
Osteopaths do it until you feel no pain.
Painters do it out in the field with brightly coloured sticky substances.
Painters do it with longer strokes.
Paladins do it good or not at all.
Paladins don't do it.
Pantomimists do it silently.
Paramedics can revive anything.
Paratroopers do it by vertical insertion.
Particle physicists do it energetically.
Particle physicists to it with *charm*.
Pascal programmers are better structured.
Pascal programmers repeat it.
Pascal users do it with runtime support.
Pastors do it with spirit.
Pathologists do it with corpses.
Patients do it in bed, sometimes with great pain.
Pediatricians do it with children.
Penguins do it down south.
Perfectionists do it better.
Perverted hackers do it with pops.
Pessimists can't do it.
Pessimists do it with a sigh.
Pharmacologists do it by prescription.
Pharmacologists do it via the oral route.
Pharmacologists do it with affinity.
Philosophers do it for pure reasons.
Philosophers do it in their minds.
Philosophers do it with their minds.
Philosophers go deep.
Philosophers think about doing it.
Philosophers think they do it.
Philosophers wonder why they did it.
Photographers are better developed.
Photographers do it at 68 degrees or not at all.
Photographers do it in the dark.
Photographers do it while exposing.
Photographers do it with "enlargers."
Photographers do it with a flash.
Photographers do it with a zoom.
Phototherapists do it with the lights on.
Physicists do it a quantum at a time.
Physicists do it at the speed of light.
Physicists do it at two places in the universe at one time.
Physicists do it attractively.
Physicists do it energetically.
Physicists do it in black holes.
Physicists do it in waves.
Physicists do it like Einstein.
Physicists do it magnetically.
Physicists do it on accelerated frames.
Physicists do it particularly.
Physicists do it repulsively.
Physicists do it strangely.
Physicists do it up and down, with charming color, but strange!
Physicists do it with black bodies.
Physicists do it with charm.
Physicists do it with large expensive machinery.
Physicists do it with rigid bodies.
Physicists do it with tensors.
Physicists do it with their vectors.
Physicists do it with uniform harmonic motion.
Physicists get a big bang.
Physics majors do it at the speed of light.
Piano players have faster fingers.
Piano students learn on their teachers' instruments.
Pilots do it higher.
Pilots do it in the cockpit.
Pilots do it on the wing.
Pilots do it to get high.
Pilots do it with flare.
Pilots keep it up longer.
Pilots stay up longer.
Ping-pong players always smash balls.
Pirates do it for the booty.
Pirates do it with stumps.
Pizza delivery boys come in 30 minutes, or it's free.
Plasma physicists do it with everything stripped off.
Plasterers to it hard.
Players do it in a team.
Plumbers do it under the sink.
Plumbers do it with plumber's friends.
Podiatrists do it with someone else's feet.
Poker players do it with their own hand.
Polaroid does it in one step.
Polaroid does it in seconds.
Pole vaulters do it with long, flexible instruments.
Policemen like big busts.
Policemen never cop out.
Politicians do it for 4 years then have to get re-elected.
Politicians do it for 4 years then have to get re-erected.
Politicians do it to everyone.
Politicians do it to make the headlines.
Politicians do it with everyone.
Politicians do it, but they stay in too long and make you pay for it afterwards.
Polymer chemists do it in chains.
Pool cleaners do it wet.
Popes do it in the woods.
Post office workers do it overnight, guaranteed for $8.90.
Postmen are first class males.
Postmen come slower.
Presbyterians do it decently and in order.
Priests do it with amazing grace.
PI:NAME:<NAME>END_PI does it in succession.
Printers do it without wrinkling the sheets.
Printers reproduce the fastest.
Probate lawyers do it willingly.
Procrastinators do it later.
Procrastinators do it tomorrow.
Procrastinators will do it tomorrow.
Procrastinators will do it when they get around to it.
Proctologists do it in the end.
Proctologists do it with a finger up where the sun don't shine.
Professors do it by the book.
Professors do it from a grant.
Professors do it with class.
Professors don't do it; they leave it as an exercise for their students.
Professors forget to do it.
Programmers cycle forever, until you make them exit.
Programmers do it all night.
Programmers do it bottom-up.
Programmers do it by pushing and popping.
Programmers do it in higher levels.
Programmers do it in loops.
Programmers do it in software.
Programmers do it on command.
Programmers do it top down.
Programmers do it with bugs.
Programmers do it with disks.
Programmers have: bigger disks.
Programmers peek before they poke.
Programmers repeat it until done.
Programmers will do it all night, but only if you are debugged.
Prolog programmers are a cut above the rest.
Promiscuous hackers share resources.
Prostitutes do it at illegal addresses.
Prostitutes do it for profit.
Protestants do it unwillingly.
Psychiatrists do it for at least fifty dollars per session.
Psychiatrists do it on the couch.
Psychologists do it with rats.
Psychologists think they do it.
Public speakers do it orally.
Pyrotechnicians do it with flare.
Pyrotechnicians do it with a blinding flash.
Quakers do it quietly.
Quantum mechanics do it in leaps.
Quantum physicists do it on time.
Racers do it with their horses.
Racers like to come in first.
Racquetball players do it off the wall.
Radio amateurs do it with more frequency.
Radio amateurs do it with two meters.
Radio and TV announcers broadcast it.
Radio engineers do it till it megahertz.
Radio engineers do it with frequency.
Radiocasters do it in the air.
Radiologists do it with high frequency.
Railroaders do it on track.
Rally drivers do it sideways.
Rangers do it in the woods.
Rangers do it with all the animals in the woods.
Raquetball players do it with blue balls.
Real estate people know all the prime spots.
Receptionists do it over the phone.
Recyclers do it again and again and again.
Reporters do it daily.
Reporters do it for a story.
Reporters do it for the sensation it causes.
Republicans do as their lobbyists tell them to.
Republicans do it to poor people.
Research professors do it only if they get grants.
Researchers are still looking for it.
Researchers do it with control.
Retailers move their merchandise.
RISC assembly programmers do it 1073741824 times a second.
Robots do it mechanically.
Rocket scientists do it with higher thrust.
Rocketeers do it on impulse.
Roller-skaters like to roll around.
Rolling Stones magazine does it where they rock.
Roofers do it on top.
Roosters do it coquettishly.
Royal guards do it in uniforms.
Rugby players do it with leather balls.
Runners do it with vigor.
Runners get into more pants.
Sailors do it ad nauseam.
Sailors do it after cruising the seven seas.
Sailors get blown off shore.
Sailors like to be blown.
Salespeople have a way with their tongues.
Sax players are horny.
Saxophonists have curved ones.
Sceptics doubt it can be done.
Scientists discovered it.
Scientists do it experimentally.
Scientists do it with plenty of research.
Scotsmen do it with amazing grace.
Scuba divers do it deeper.
Sculptors beat at it until bits fall off.
Second fiddles do it vilely.
Secretaries do it from 9 to 5.
Seismologists do it when the earth shakes.
Seismologists make the earth move.
Semanticists do it with meaning.
Senators do it on the floor.
Sergeants do it privately.
Set theorists do it with cardinals.
Shakespearean scholars do it... Or don't do it, that is the question....
Sheep do it when led astray.
Shubert didn't finish it.
Simulation hackers do it with models.
Singers do it with microphones.
Skaters do it on ice.
Skeet shooters do it 25 times in 9 different positions.
Skeletons do it with a bone.
Skeptics doubt about it.
Skiers do it spread eagled.
Skiers do it with poles.
Skiers go down fast.
Skunks do it instinctively.
Sky divers do it in the air.
Sky divers never do it without a chute.
Skydivers are good till the last drop.
Skydivers do it at great heights.
Skydivers do it in the air.
Skydivers do it sequentially.
Skydivers go down faster.
Skydivers go in harder.
Skydivers never do it without a chute.
Slaves do it for the masters.
Small boat sailors do it by pumping, rocking, and ooching.
Smalltalk programmers have more methods.
Snakes do it in the grass.
Soap manufacturers do it with Lava.
Soap manufacturers do it with Zest.
Soccer players do it for kicks.
Soccer players do it in 90 minutes.
Soccer players have leather balls.
Sociologists do it with class.
Sociologists do it with standard deviations.
Software designers do it over and over until they get it right.
Software designers do it with system.
Software reliablity specialists keep it up longer.
Software testers do it over and over again.
Solar astronomers do it all day.
Soldiers do it standing erect.
Soldiers do it with a machine gun.
Soldiers do it with shoot.
Sonarmen do it aurally.
Sopranos do it in unison.
Soviet hardline leaders do it with tanks.
Sparrows do it for a lark.
Speakers do it with pointers.
Speaking clocks do it on the third stroke.
Spectroscopists do it until it hertz.
Spectroscopists do it with frequency and intensity.
Speech pathologists are oral specialists.
Speleologists make a science of going deeper.
Spellcasters do it with their rods/staves/wands.
Spelunkers do it in narrow dark places.
Spelunkers do it underground.
Spelunkers do it while wearing heavy rubber protective devices.
Spies do it under cover.
Sportscasters like an instant replay.
Sprinters do it after years of conditioning.
Sprinters do it in less than 10 seconds.
Squatter girls do it with crowbars.
St. PI:NAME:<NAME>END_PI did it passionately.
Stage hands do it behind the scenes.
Stage hands do it in the dark.
Stage hands do it on cue.
Statisticians do it continuously but discretely.
Statisticians do it when it counts.
Statisticians do it with 95% confidence.
Statisticians do it with large numbers.
Statisticians do it with only a 5% chance of being rejected.
Statisticians do it. After all, it's only normal.
Statisticians probably do it.
Steamfitters do it with a long hot pipe.
Stewardesses do it in the air.
Stragglers do it in the rear.
Students do it as exercises.
Students do it on a guaranteed loan.
Students do it with their students.
Students use their heads.
Submariners do it deeper.
Submariners use their torpedoes.
Supercomputer users do it in parallel.
Surfers do it in waves.
Surfers do it standing up.
Surfers do it with their wives, or, if unmarried, with their girl friends.
Surgeons are smooth operators.
Surgeons do it incisively.
Swashbucklers do it with three feet of steel.
Swimmers do it in the lanes.
Swimmers do it in the water.
Swimmers do it under water.
Swimmers do it with a breast stroke.
Swimmers do it with better strokes.
Sysops do it with their computers.
System hackers are always ready.
System hackers get it up quicker.
System hackers keep it up longer.
System hackers know where to poke.
System hackers swap on demand.
System managers do it with pencils.
Systems go down on their hackers.
Systems have black boxes.
Systems programmers keep it up longer.
Tailors come with no strings attached.
Tailors make it fit.
Tap dancers do it with their feet.
Taxi cab drivers come faster.
Taxi cab drivers do it all over town.
Taxi drivers do it all over town.
Taxidermists mount anything.
Teacher assistants do it with class.
Teachers do it 50 times after class.
Teachers do it repeatedly.
Teachers do it with class.
Teachers make _you_ do it till you get it right.
Technical writers do it manually.
Technicians do it with frequency.
Technicians do it with greater frequency.
Technicians do it with high voltage probes.
Technicians do it with mechanical assistance.
Teddy bears do it with small children.
Teddy Roosevelt did it softly, but with a big stick.
Telephone Co. employees let their fingers do the walking.
Tellers can handle all deposits and withdrawals.
Tennis players do it in sets.
Tennis players do it in their shorts.
Tennis players have fuzzy balls.
Test makers do it sometimes/always/never.
Testators do it willingly.
Texans do it with oil.
The Air Force, aims high, shoots low.
The Army does it being all that they can be.
The Energizer bunny does it and keeps going and going, and going, and going.
The FBI does it under cover.
Theater majors do it with an audience.
Theater techies do it in the dark, on cue.
Theoretical astronomers only *think* about it.
Theoreticians do it conceptually.
Theoreticians do it with a proof.
Thieves do it in leather.
Thieves do it when you're not looking.
Thieves do it with their lock picks.
Thieves do it with tools.
Trainees do it as practice.
Trampoline acrobats do it in the air.
Trampoline acrobats do it over a net.
Trampoline acrobats do it swinging from bars.
Trampoline acrobats do it under the big top.
Tree men do it in more crotches than anyone else.
Tribiological engineers do it by using lubricants.
Trombone players are constantly sliding it in and out.
Trombone players do it faster.
Trombone players do it in 7 positions.
Trombone players do it with slide action finger control.
Trombone players do it with slide oil.
Trombone players have something that's always long and hard.
Trombone players slide it in and out.
Trombone players use more positions.
Trombones do it faster.
Trombonists use more positions.
Truck drivers carry bigger loads.
Truck drivers do it on the road.
Truck drivers have bigger dipsticks.
Truckers have moving experiences.
Trump does it with cash.
Trumpet players blow the best.
Trumpeters blow hard.
Tuba players do it with big horns.
Tubas do it deeper.
TV evangalists do more than lay people.
TV repairmen do it in sync.
TV repairmen do it with a vertical hold.
Twin Peaks fans do it with logs.
Two meter operators do it with very high frequency.
Typesetters do it between periods.
Typists do it in triplicate.
Typographers do it to the letter.
Typographers do it with tight kerning.
Ultimate players do it horizontally.
Undertakers do it with corpses.
Unix don't do it.
Unix hackers go down all the time.
Unix programmers must c her's.
Urologists do it in a bottle.
Usenet freaks do it with hard drives.
Usenet news freaks do it with many groups at once.
Ushers do it in the dark.
Usurers do it with high interests.
Vacationers do it in a leisure way.
Vagrants do it everywhere.
Valuers really know the price.
Vampires do it 'til the sun comes up.
Vanguard do it ahead of everyone else.
Vegetarians don't do it with meats.
Vendors try hard to sell it.
Verifiers check on it.
Versifiers write poems for it.
Veterans have much more experience than the fresh-handed.
Veterinarians are pussy lovers.
Veterinarians do it with animals.
Veterinarians do it with sick animals.
Vicars do it with amazing grace.
Vicars substitute others to.
Vice principals do it with discipline.
Victims are those who got it.
Victors know how hard to win it.
Viewers do it with eyes.
Vilifiers say others don't do it well.
Villagers do it provincially.
Violinists do it gently.
Violinists prefer odd positions.
Violoncellists do it low.
Virtuosi appreciate it.
Visa, its everywhere you want to be.
Visitors come and see it.
Vocalists are good in their mouths.
Volcanologists know how violent it can be.
Voles dick through it.
Volleyball players keep it up.
Volunteers do it willingly.
Votarists decide to contribute themself.
Voters will decide who can do it.
Voyagers do it in between the sea and the sky.
Vulcans do it logically.
Waiters and waitresses do it for tips.
Waitresses do it with chopsticks.
Waitresses serve it hot.
Waitresses serve it piping hot.
Water skiers come down harder.
Water skiers do it with cuts.
Weather forecasters do it with crystal balls.
Weathermen do it with crystal balls.
Welders do it with hot rods.
Welders fill all cracks.
Well diggers do it in a hole.
Werewolves do it as man or beast.
Werewolves do it by the light of the full moon.
Weathermen do it with lightning strokes.
Woodwind players have better tonguing.
Wrestlers know the best holds.
Wrestlers try not to do it on their backs.
Writers have novel ways.
WW I GIs did it over there.
X-ray astronomers do it with high energy.
Xerox does it again and again and again and again.
Zen buddhists do it because they don't want to do it because they want to do it.
Zen monks do it and don't do it.
Zippermakers do it on the fly.
Zippy does it on his lunch break.
Zoologists do it with animals.'''
|
[
{
"context": " Copyright (c) <%= grunt.template.today(\"yyyy\") %> Gerasev Kirill | MIT License | Copyright (c) 2015 Gias Kay Lee |",
"end": 3709,
"score": 0.9997570514678955,
"start": 3695,
"tag": "NAME",
"value": "Gerasev Kirill"
},
{
"context": " Gerasev Kirill | MIT License | Cop... | Gruntfile.coffee | gerasev-kirill/angular-gdpr-storage | 0 | 'use strict'
module.exports = (grunt) ->
browsers = [
'Chrome'
#'PhantomJS'
#'Firefox'
]
if process.env.TRAVIS
browsers = [ 'PhantomJS' ]
jsTopWrapper = """
(function(root, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['angular'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('angular'));
} else {
factory(root.angular);
}
})(this, function(angular) {
//-----------------------------------------
"""
jsBottomWrapper = """
//-----------------------------------------
});
"""
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
coffee:
options:
bare: true
test:
options:
bare: true
sourceMap: true
files:
'test/spec.js': 'test/spec.coffee'
src:{
expand: true,
cwd: 'src',
src: ['**/*.coffee'],
dest: 'src',
ext: '.js'
}
srcThirdPartyInfo:{
expand: true,
cwd: 'src/thirdPartyInfo',
src: ['**/*.coffee'],
dest: 'src/thirdPartyInfo',
ext: '.js'
}
concat:
dist:{
src: ['src/module.js', 'src/directive.js', 'src/thirdPartyInfo/config.js']
dest: 'dist/gdprStorage.js'
}
distWithTranslations:{
src: ['src/module.js', 'src/directive.js', 'src/thirdPartyInfo/config.js', 'po/translations.js']
dest: 'dist/gdprStorage-withTranslations.js'
}
less:{
src: ['src/style.less']
dest: 'dist/style.less'
}
karma:
storages:
options: files: [
'components/angular/angular.js'
'components/angular-mocks/angular-mocks.js'
'components/chai/chai.js'
'dist/gdprStorage.js'
'test/spec.js'
]
preprocessors: 'dist/*.js': [ 'sourcemap' ]
frameworks: [ 'mocha' ]
browsers: browsers
singleRun: true
gdpr:
options: files: [
'components/angular/angular.js'
'components/angular-mocks/angular-mocks.js'
'components/chai/chai.js'
'dist/gdprStorage.js'
'test/gdprSpec.js'
]
preprocessors: 'dist/*.js': [ 'sourcemap' ]
frameworks: [ 'mocha' ]
browsers: browsers
singleRun: true
ngAnnotate: files:
cwd: 'src'
expand: true
src: [ '**/*.js' ]
dest: 'src'
file_append: gdprStorage:
files: [ {
prepend: jsTopWrapper
append: jsBottomWrapper
input: 'dist/gdprStorage.js'
output: 'dist/gdprStorage.js'
},{
prepend: jsTopWrapper
append: jsBottomWrapper
input: 'dist/gdprStorage-withTranslations.js'
output: 'dist/gdprStorage-withTranslations.js'
} ]
uglify:
options: banner: '/*! <%= pkg.name %> <%= pkg.version %> | Copyright (c) <%= grunt.template.today("yyyy") %> Gerasev Kirill | MIT License | Copyright (c) 2015 Gias Kay Lee | MIT License */\n'
build:
src: 'dist/gdprStorage.js'
dest: 'dist/gdprStorage.min.js'
buildWithTranslations:
src: 'dist/gdprStorage-withTranslations.js'
dest: 'dist/gdprStorage-withTranslations.min.js'
wiredep:
index: {
src: [ './doc/*' ],
options: {
cwd: './',
ignorePath: '..',
#ignorePath: '../bower_components',
dependencies: true,
devDependencies: false,
bowerJson: grunt.file.readJSON('./bower.json')
}
},
'http-server':
dev: {
root: './'
port: 8000
host: 'localhost'
ext: 'html'
runInBackground: false
}
watch:
dev:{
files: ['src/*.js', 'doc/*.js', 'doc/*.pug']
tasks: ['wiredep', 'replace']
}
replace:
options:{},
files:{
expand: true,
cwd: 'src',
src: ['**/*.js', '**/*.html'],
dest: 'src',
}
angular_template_inline_js:
options:{
basePath: __dirname
},
files:{
cwd: 'src',
expand: true,
src: ['*.js'],
dest: 'src'
}
nggettext_extract:
pot: {
files: {
'po/template.pot': ['src/*html', 'src/*.js']
'po/thirdPartyTemplate.pot': ['src/thirdPartyInfo/*html', 'src/thirdPartyInfo/*.js']
}
}
nggettext_compile:
all: {
options:{
module: 'storage.gdpr'
}
files: {
'po/translations.js': ['po/*.po']
}
}
grunt.loadNpmTasks 'grunt-karma'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-ng-annotate'
grunt.loadNpmTasks 'grunt-file-append'
grunt.loadNpmTasks 'grunt-wiredep'
grunt.loadNpmTasks 'grunt-http-server'
grunt.loadNpmTasks 'grunt-simple-watch'
grunt.loadNpmTasks 'grunt-replace'
grunt.loadNpmTasks 'grunt-contrib-concat'
grunt.loadNpmTasks 'grunt-angular-template-inline-js'
grunt.loadNpmTasks 'grunt-angular-gettext'
grunt.registerTask 'test', [
'coffee'
'replace'
'angular_template_inline_js'
'ngAnnotate'
'concat'
'file_append'
'karma'
]
grunt.registerTask 'build', [
'coffee'
'nggettext_extract'
'replace'
'angular_template_inline_js'
'ngAnnotate'
'nggettext_compile'
'concat'
'file_append'
'uglify'
]
grunt.registerTask 'default', [
'coffee'
'test'
'ngAnnotate'
'uglify'
]
return
| 88084 | 'use strict'
module.exports = (grunt) ->
browsers = [
'Chrome'
#'PhantomJS'
#'Firefox'
]
if process.env.TRAVIS
browsers = [ 'PhantomJS' ]
jsTopWrapper = """
(function(root, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['angular'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('angular'));
} else {
factory(root.angular);
}
})(this, function(angular) {
//-----------------------------------------
"""
jsBottomWrapper = """
//-----------------------------------------
});
"""
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
coffee:
options:
bare: true
test:
options:
bare: true
sourceMap: true
files:
'test/spec.js': 'test/spec.coffee'
src:{
expand: true,
cwd: 'src',
src: ['**/*.coffee'],
dest: 'src',
ext: '.js'
}
srcThirdPartyInfo:{
expand: true,
cwd: 'src/thirdPartyInfo',
src: ['**/*.coffee'],
dest: 'src/thirdPartyInfo',
ext: '.js'
}
concat:
dist:{
src: ['src/module.js', 'src/directive.js', 'src/thirdPartyInfo/config.js']
dest: 'dist/gdprStorage.js'
}
distWithTranslations:{
src: ['src/module.js', 'src/directive.js', 'src/thirdPartyInfo/config.js', 'po/translations.js']
dest: 'dist/gdprStorage-withTranslations.js'
}
less:{
src: ['src/style.less']
dest: 'dist/style.less'
}
karma:
storages:
options: files: [
'components/angular/angular.js'
'components/angular-mocks/angular-mocks.js'
'components/chai/chai.js'
'dist/gdprStorage.js'
'test/spec.js'
]
preprocessors: 'dist/*.js': [ 'sourcemap' ]
frameworks: [ 'mocha' ]
browsers: browsers
singleRun: true
gdpr:
options: files: [
'components/angular/angular.js'
'components/angular-mocks/angular-mocks.js'
'components/chai/chai.js'
'dist/gdprStorage.js'
'test/gdprSpec.js'
]
preprocessors: 'dist/*.js': [ 'sourcemap' ]
frameworks: [ 'mocha' ]
browsers: browsers
singleRun: true
ngAnnotate: files:
cwd: 'src'
expand: true
src: [ '**/*.js' ]
dest: 'src'
file_append: gdprStorage:
files: [ {
prepend: jsTopWrapper
append: jsBottomWrapper
input: 'dist/gdprStorage.js'
output: 'dist/gdprStorage.js'
},{
prepend: jsTopWrapper
append: jsBottomWrapper
input: 'dist/gdprStorage-withTranslations.js'
output: 'dist/gdprStorage-withTranslations.js'
} ]
uglify:
options: banner: '/*! <%= pkg.name %> <%= pkg.version %> | Copyright (c) <%= grunt.template.today("yyyy") %> <NAME> | MIT License | Copyright (c) 2015 <NAME> | MIT License */\n'
build:
src: 'dist/gdprStorage.js'
dest: 'dist/gdprStorage.min.js'
buildWithTranslations:
src: 'dist/gdprStorage-withTranslations.js'
dest: 'dist/gdprStorage-withTranslations.min.js'
wiredep:
index: {
src: [ './doc/*' ],
options: {
cwd: './',
ignorePath: '..',
#ignorePath: '../bower_components',
dependencies: true,
devDependencies: false,
bowerJson: grunt.file.readJSON('./bower.json')
}
},
'http-server':
dev: {
root: './'
port: 8000
host: 'localhost'
ext: 'html'
runInBackground: false
}
watch:
dev:{
files: ['src/*.js', 'doc/*.js', 'doc/*.pug']
tasks: ['wiredep', 'replace']
}
replace:
options:{},
files:{
expand: true,
cwd: 'src',
src: ['**/*.js', '**/*.html'],
dest: 'src',
}
angular_template_inline_js:
options:{
basePath: __dirname
},
files:{
cwd: 'src',
expand: true,
src: ['*.js'],
dest: 'src'
}
nggettext_extract:
pot: {
files: {
'po/template.pot': ['src/*html', 'src/*.js']
'po/thirdPartyTemplate.pot': ['src/thirdPartyInfo/*html', 'src/thirdPartyInfo/*.js']
}
}
nggettext_compile:
all: {
options:{
module: 'storage.gdpr'
}
files: {
'po/translations.js': ['po/*.po']
}
}
grunt.loadNpmTasks 'grunt-karma'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-ng-annotate'
grunt.loadNpmTasks 'grunt-file-append'
grunt.loadNpmTasks 'grunt-wiredep'
grunt.loadNpmTasks 'grunt-http-server'
grunt.loadNpmTasks 'grunt-simple-watch'
grunt.loadNpmTasks 'grunt-replace'
grunt.loadNpmTasks 'grunt-contrib-concat'
grunt.loadNpmTasks 'grunt-angular-template-inline-js'
grunt.loadNpmTasks 'grunt-angular-gettext'
grunt.registerTask 'test', [
'coffee'
'replace'
'angular_template_inline_js'
'ngAnnotate'
'concat'
'file_append'
'karma'
]
grunt.registerTask 'build', [
'coffee'
'nggettext_extract'
'replace'
'angular_template_inline_js'
'ngAnnotate'
'nggettext_compile'
'concat'
'file_append'
'uglify'
]
grunt.registerTask 'default', [
'coffee'
'test'
'ngAnnotate'
'uglify'
]
return
| true | 'use strict'
module.exports = (grunt) ->
browsers = [
'Chrome'
#'PhantomJS'
#'Firefox'
]
if process.env.TRAVIS
browsers = [ 'PhantomJS' ]
jsTopWrapper = """
(function(root, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['angular'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('angular'));
} else {
factory(root.angular);
}
})(this, function(angular) {
//-----------------------------------------
"""
jsBottomWrapper = """
//-----------------------------------------
});
"""
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
coffee:
options:
bare: true
test:
options:
bare: true
sourceMap: true
files:
'test/spec.js': 'test/spec.coffee'
src:{
expand: true,
cwd: 'src',
src: ['**/*.coffee'],
dest: 'src',
ext: '.js'
}
srcThirdPartyInfo:{
expand: true,
cwd: 'src/thirdPartyInfo',
src: ['**/*.coffee'],
dest: 'src/thirdPartyInfo',
ext: '.js'
}
concat:
dist:{
src: ['src/module.js', 'src/directive.js', 'src/thirdPartyInfo/config.js']
dest: 'dist/gdprStorage.js'
}
distWithTranslations:{
src: ['src/module.js', 'src/directive.js', 'src/thirdPartyInfo/config.js', 'po/translations.js']
dest: 'dist/gdprStorage-withTranslations.js'
}
less:{
src: ['src/style.less']
dest: 'dist/style.less'
}
karma:
storages:
options: files: [
'components/angular/angular.js'
'components/angular-mocks/angular-mocks.js'
'components/chai/chai.js'
'dist/gdprStorage.js'
'test/spec.js'
]
preprocessors: 'dist/*.js': [ 'sourcemap' ]
frameworks: [ 'mocha' ]
browsers: browsers
singleRun: true
gdpr:
options: files: [
'components/angular/angular.js'
'components/angular-mocks/angular-mocks.js'
'components/chai/chai.js'
'dist/gdprStorage.js'
'test/gdprSpec.js'
]
preprocessors: 'dist/*.js': [ 'sourcemap' ]
frameworks: [ 'mocha' ]
browsers: browsers
singleRun: true
ngAnnotate: files:
cwd: 'src'
expand: true
src: [ '**/*.js' ]
dest: 'src'
file_append: gdprStorage:
files: [ {
prepend: jsTopWrapper
append: jsBottomWrapper
input: 'dist/gdprStorage.js'
output: 'dist/gdprStorage.js'
},{
prepend: jsTopWrapper
append: jsBottomWrapper
input: 'dist/gdprStorage-withTranslations.js'
output: 'dist/gdprStorage-withTranslations.js'
} ]
uglify:
options: banner: '/*! <%= pkg.name %> <%= pkg.version %> | Copyright (c) <%= grunt.template.today("yyyy") %> PI:NAME:<NAME>END_PI | MIT License | Copyright (c) 2015 PI:NAME:<NAME>END_PI | MIT License */\n'
build:
src: 'dist/gdprStorage.js'
dest: 'dist/gdprStorage.min.js'
buildWithTranslations:
src: 'dist/gdprStorage-withTranslations.js'
dest: 'dist/gdprStorage-withTranslations.min.js'
wiredep:
index: {
src: [ './doc/*' ],
options: {
cwd: './',
ignorePath: '..',
#ignorePath: '../bower_components',
dependencies: true,
devDependencies: false,
bowerJson: grunt.file.readJSON('./bower.json')
}
},
'http-server':
dev: {
root: './'
port: 8000
host: 'localhost'
ext: 'html'
runInBackground: false
}
watch:
dev:{
files: ['src/*.js', 'doc/*.js', 'doc/*.pug']
tasks: ['wiredep', 'replace']
}
replace:
options:{},
files:{
expand: true,
cwd: 'src',
src: ['**/*.js', '**/*.html'],
dest: 'src',
}
angular_template_inline_js:
options:{
basePath: __dirname
},
files:{
cwd: 'src',
expand: true,
src: ['*.js'],
dest: 'src'
}
nggettext_extract:
pot: {
files: {
'po/template.pot': ['src/*html', 'src/*.js']
'po/thirdPartyTemplate.pot': ['src/thirdPartyInfo/*html', 'src/thirdPartyInfo/*.js']
}
}
nggettext_compile:
all: {
options:{
module: 'storage.gdpr'
}
files: {
'po/translations.js': ['po/*.po']
}
}
grunt.loadNpmTasks 'grunt-karma'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-ng-annotate'
grunt.loadNpmTasks 'grunt-file-append'
grunt.loadNpmTasks 'grunt-wiredep'
grunt.loadNpmTasks 'grunt-http-server'
grunt.loadNpmTasks 'grunt-simple-watch'
grunt.loadNpmTasks 'grunt-replace'
grunt.loadNpmTasks 'grunt-contrib-concat'
grunt.loadNpmTasks 'grunt-angular-template-inline-js'
grunt.loadNpmTasks 'grunt-angular-gettext'
grunt.registerTask 'test', [
'coffee'
'replace'
'angular_template_inline_js'
'ngAnnotate'
'concat'
'file_append'
'karma'
]
grunt.registerTask 'build', [
'coffee'
'nggettext_extract'
'replace'
'angular_template_inline_js'
'ngAnnotate'
'nggettext_compile'
'concat'
'file_append'
'uglify'
]
grunt.registerTask 'default', [
'coffee'
'test'
'ngAnnotate'
'uglify'
]
return
|
[
{
"context": "ez/////Ke+vpgAAAK1JREFUSMft1sENhDAMBdFIrmBboAjuaWFrsNN/CRwAgUPsTAH556c5WVFKQyuLLYbZf/MLmDHW5yJmjHW5kBljPhczY8zlEmaMvXMZM8ZeuZQZY08uZzZh5dqen+XNhLFBbsiEsW9uzISxTy5gwlifi5gw1uVCJoz5XMyEMZdLmASs/s5NnkFl7M7NmDJ25aZMGTtzc6aMtcqYMtYqY8pYq4wpY60ypuvnsNizA+E6656TNMZlAAAAAElFTkSuQmCC\"\n\t\t\tlayer = new L... | test/tests/LayerTest.coffee | ig-la/Framer | 3,817 | assert = require "assert"
{expect} = require "chai"
simulate = require "simulate"
describe "Layer", ->
# afterEach ->
# Utils.clearAll()
# beforeEach ->
# Framer.Utils.reset()
describe "Defaults", ->
it "should reset nested defaults", ->
Framer.Defaults.DeviceComponent.animationOptions.curve = "spring"
Framer.resetDefaults()
Framer.Defaults.DeviceComponent.animationOptions.curve.should.equal "ease-in-out"
it "should reset width and height to their previous values", ->
previousWidth = Framer.Defaults.Layer.width
previousHeight = Framer.Defaults.Layer.height
Framer.Defaults.Layer.width = 123
Framer.Defaults.Layer.height = 123
Framer.resetDefaults()
Framer.Defaults.Layer.width.should.equal previousWidth
Framer.Defaults.Layer.height.should.equal previousHeight
it "should set defaults", ->
width = Utils.randomNumber(0, 400)
height = Utils.randomNumber(0, 400)
Framer.Defaults =
Layer:
width: width
height: height
layer = new Layer()
layer.width.should.equal width
layer.height.should.equal height
Framer.resetDefaults()
layer = new Layer()
layer.width.should.equal 100
layer.height.should.equal 100
it "should set default background color", ->
# if the default background color is not set the content layer of scrollcomponent is not hidden when layers are added
layer = new Layer()
layer.backgroundColor.should.equalColor Framer.Defaults.Layer.backgroundColor
Framer.Defaults =
Layer:
backgroundColor: "red"
layer = new Layer()
layer.style.backgroundColor.should.equal new Color("red").toString()
Framer.resetDefaults()
it "should set defaults with override", ->
layer = new Layer x: 50, y: 60
layer.x.should.equal 50
layer.y.should.equal 60
it "should have default animationOptions", ->
layer = new Layer
layer.animationOptions.should.eql {}
describe "Properties", ->
it "should set defaults", ->
layer = new Layer()
layer.x.should.equal 0
layer.y.should.equal 0
layer.z.should.equal 0
layer.width.should.equal 100
layer.height.should.equal 100
it "should set width", ->
layer = new Layer width: 200
layer.width.should.equal 200
layer.style.width.should.equal "200px"
it "should set x not to scientific notation", ->
n = 0.000000000000002
n.toString().should.equal("2e-15")
layer = new Layer
layer.x = n
layer.y = 100
layer.style.webkitTransform.should.equal "translate3d(0px, 100px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should set x, y and z to really small values", ->
layer = new Layer
layer.x = 10
layer.y = 10
layer.z = 10
layer.x = 1e-5
layer.y = 1e-6
layer.z = 1e-7
layer.x.should.equal 1e-5
layer.y.should.equal 1e-6
layer.z.should.equal 1e-7
# layer.style.webkitTransform.should.equal "matrix(1, 0, 0, 1, 100, 0)"
layer.style.webkitTransform.should.equal "translate3d(0.00001px, 0.000001px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should handle scientific notation in scaleX, Y and Z", ->
layer = new Layer
layer.scaleX = 2
layer.scaleY = 2
layer.scaleZ = 3
layer.scaleX = 1e-7
layer.scaleY = 1e-8
layer.scaleZ = 1e-9
layer.scale = 1e-10
layer.scaleX.should.equal 1e-7
layer.scaleY.should.equal 1e-8
layer.scaleZ.should.equal 1e-9
layer.scale.should.equal 1e-10
# layer.style.webkitTransform.should.equal "matrix(1, 0, 0, 1, 100, 0)"
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(0, 0, 0) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should handle scientific notation in skew", ->
layer = new Layer
layer.skew = 2
layer.skewX = 2
layer.skewY = 3
layer.skew = 1e-5
layer.skewX = 1e-6
layer.skewY = 1e-7
layer.skew.should.equal 1e-5
layer.skewX.should.equal 1e-6
layer.skewY.should.equal 1e-7
# layer.style.webkitTransform.should.equal "matrix(1, 0, 0, 1, 100, 0)"
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(1, 1, 1) skew(0.00001deg, 0.00001deg) skewX(0.000001deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should set x and y", ->
layer = new Layer
layer.x = 100
layer.x.should.equal 100
layer.y = 50
layer.y.should.equal 50
# layer.style.webkitTransform.should.equal "matrix(1, 0, 0, 1, 100, 0)"
layer.style.webkitTransform.should.equal "translate3d(100px, 50px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should handle midX and midY when width and height are 0", ->
box = new Layer
midX: 200
midY: 300
width: 0
height: 0
box.x.should.equal 200
box.y.should.equal 300
it "should set scale", ->
layer = new Layer
layer.scaleX = 100
layer.scaleY = 100
layer.scaleZ = 100
# layer.style.webkitTransform.should.equal "matrix(1, 0, 0, 1, 100, 50)"
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(100, 100, 100) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should set origin", ->
layer = new Layer
originZ: 80
layer.style.webkitTransformOrigin.should.equal "50% 50%"
layer.originX = 0.1
layer.originY = 0.2
layer.style.webkitTransformOrigin.should.equal "10% 20%"
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(80px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(-80px)"
layer.originX = 0.5
layer.originY = 0.5
layer.style.webkitTransformOrigin.should.equal "50% 50%"
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(80px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(-80px)"
it "should preserve 3D by default", ->
layer = new Layer
layer._element.style.webkitTransformStyle.should.equal "preserve-3d"
it "should flatten layer", ->
layer = new Layer
flat: true
layer._element.style.webkitTransformStyle.should.equal "flat"
it "should set local image", ->
prefix = "../"
imagePath = "static/test.png"
fullPath = prefix + imagePath
layer = new Layer
layer.image = fullPath
layer.image.should.equal fullPath
image = layer.props.image
layer.props.image.should.equal fullPath
layer.style["background-image"].indexOf(imagePath).should.not.equal(-1)
layer.style["background-image"].indexOf("file://").should.not.equal(-1)
layer.style["background-image"].indexOf("?nocache=").should.not.equal(-1)
it "should set local image when listening to load events", (done) ->
prefix = "../"
imagePath = "static/test.png"
fullPath = prefix + imagePath
layer = new Layer
layer.on Events.ImageLoaded, ->
layer.style["background-image"].indexOf(imagePath).should.not.equal(-1)
layer.style["background-image"].indexOf("file://").should.not.equal(-1)
layer.style["background-image"].indexOf("?nocache=").should.not.equal(-1)
done()
layer.image = fullPath
layer.image.should.equal fullPath
image = layer.props.image
layer.props.image.should.equal fullPath
layer.style["background-image"].indexOf(imagePath).should.equal(-1)
layer.style["background-image"].indexOf("file://").should.equal(-1)
layer.style["background-image"].indexOf("?nocache=").should.equal(-1)
#layer.computedStyle()["background-size"].should.equal "cover"
#layer.computedStyle()["background-repeat"].should.equal "no-repeat"
it "should not append nocache to a base64 encoded image", ->
fullPath = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMBAMAAAA1uUwYAAAAAXNSR0IArs4c6QAAABVQTFRFKK/6LFj/g9n/lNf9lqz/wez/////Ke+vpgAAAK1JREFUSMft1sENhDAMBdFIrmBboAjuaWFrsNN/CRwAgUPsTAH556c5WVFKQyuLLYbZf/MLmDHW5yJmjHW5kBljPhczY8zlEmaMvXMZM8ZeuZQZY08uZzZh5dqen+XNhLFBbsiEsW9uzISxTy5gwlifi5gw1uVCJoz5XMyEMZdLmASs/s5NnkFl7M7NmDJ25aZMGTtzc6aMtcqYMtYqY8pYq4wpY60ypuvnsNizA+E6656TNMZlAAAAAElFTkSuQmCC"
layer = new Layer
layer.image = fullPath
layer.image.should.equal fullPath
image = layer.props.image
image.should.equal fullPath
layer.style["background-image"].indexOf(fullPath).should.not.equal(-1)
layer.style["background-image"].indexOf("data:").should.not.equal(-1)
layer.style["background-image"].indexOf("?nocache=").should.equal(-1)
it "should append nocache with an ampersand if url params already exist", (done) ->
prefix = "../"
imagePath = "static/test.png?param=foo"
fullPath = prefix + imagePath
layer = new Layer
layer.on Events.ImageLoaded, ->
layer.style["background-image"].indexOf(imagePath).should.not.equal(-1)
layer.style["background-image"].indexOf("file://").should.not.equal(-1)
layer.style["background-image"].indexOf("&nocache=").should.not.equal(-1)
done()
layer.image = fullPath
layer.image.should.equal fullPath
it "should cancel loading when setting image to null", (done) ->
prefix = "../"
imagePath = "static/test.png"
fullPath = prefix + imagePath
#First set the image directly to something
layer = new Layer
image: "static/test2.png"
#Now add event handlers
layer.on Events.ImageLoadCancelled, ->
layer.style["background-image"].indexOf(imagePath).should.equal(-1)
layer.style["background-image"].indexOf("file://").should.equal(-1)
layer.style["background-image"].indexOf("?nocache=").should.equal(-1)
done()
#so we preload the next image
layer.image = fullPath
#set the image no null to cancel the loading
layer.image = null
it "should set image", ->
imagePath = "../static/test.png"
layer = new Layer image: imagePath
layer.image.should.equal imagePath
it "should unset image with null", ->
layer = new Layer image: "../static/test.png"
layer.image = null
layer.image.should.equal ""
it "should unset image with empty string", ->
layer = new Layer image: "../static/test.png"
layer.image = ""
layer.image.should.equal ""
it "should test image property type", ->
f = ->
layer = new Layer
layer.image = {}
f.should.throw()
it "should set name on create", ->
layer = new Layer name: "Test"
layer.name.should.equal "Test"
layer._element.getAttribute("name").should.equal "Test"
it "should set name after create", ->
layer = new Layer
layer.name = "Test"
layer.name.should.equal "Test"
layer._element.getAttribute("name").should.equal "Test"
it "should handle false layer names correctly", ->
layer = new Layer
name: 0
layer.name.should.equal "0"
layer._element.getAttribute("name").should.equal "0"
it "should handle background color with image", ->
# We want the background color to be there until an images
# is set UNLESS we set another backgroundColor explicitly
imagePath = "../static/test.png"
layer = new Layer image: imagePath
assert.equal layer.backgroundColor.color, null
layer = new Layer
layer.image = imagePath
assert.equal layer.backgroundColor.color, null
layer = new Layer backgroundColor: "red"
layer.image = imagePath
layer.backgroundColor.should.equalColor "red"
layer = new Layer
layer.backgroundColor = "red"
layer.image = imagePath
layer.backgroundColor.should.equalColor "red"
describe "should set the background size", ->
it "cover", ->
layer = new Layer backgroundSize: "cover"
layer.style["background-size"].should.equal "cover"
it "contain", ->
layer = new Layer backgroundSize: "contain"
layer.style["background-size"].should.equal "contain"
it "percentage", ->
layer = new Layer backgroundSize: "100%"
layer.style["background-size"].should.equal "100%"
it "other", ->
layer = new Layer backgroundSize: "300px, 5em 10%"
layer.style["background-size"].should.equal "300px, 5em 10%"
it "fill", ->
layer = new Layer backgroundSize: "fill"
layer.style["background-size"].should.equal "cover"
it "fit", ->
layer = new Layer backgroundSize: "fit"
layer.style["background-size"].should.equal "contain"
it "stretch", ->
layer = new Layer backgroundSize: "stretch"
# This should be "100% 100%", but phantomjs doest return that when you set it
layer.style["background-size"].should.equal "100%"
it "should set visible", ->
layer = new Layer
layer.visible.should.equal true
layer.style["display"].should.equal "block"
layer.visible = false
layer.visible.should.equal false
layer.style["display"].should.equal "none"
it "should set clip", ->
layer = new Layer
layer.clip.should.equal false
layer.style["overflow"].should.equal "visible"
layer.clip = true
layer.style["overflow"].should.equal "hidden"
it "should set scroll", ->
layer = new Layer
layer.scroll.should.equal false
layer.style["overflow"].should.equal "visible"
layer.scroll = true
layer.scroll.should.equal true
layer.style["overflow"].should.equal "scroll"
layer.ignoreEvents.should.equal false
layer.scroll = false
layer.scroll.should.equal false
layer.style["overflow"].should.equal "visible"
it "should set scroll from properties", ->
layer = new Layer
layer.props = {scroll: false}
layer.scroll.should.equal false
layer.props = {scroll: true}
layer.scroll.should.equal true
it "should set scrollHorizontal", ->
layer = new Layer
layer.scroll.should.equal false
layer.style["overflow"].should.equal "visible"
layer.ignoreEvents.should.equal true
layer.scroll = true
layer.scroll.should.equal true
layer.style["overflow"].should.equal "scroll"
layer.ignoreEvents.should.equal false
it "should disable ignore events when scroll is set from constructor", ->
layerA = new Layer
scroll: true
layerA.ignoreEvents.should.equal false
it "should set style properties on create", ->
layer = new Layer backgroundColor: "red"
layer.backgroundColor.isEqual(new Color("red")).should.equal true
layer.style["backgroundColor"].should.equal new Color("red").toString()
it "should check value type", ->
f = ->
layer = new Layer
layer.x = "hello"
f.should.throw()
it "should set perspective", ->
layer = new Layer
layer.perspective = 500
layer.style["-webkit-perspective"].should.equal("500")
it "should have a default perspective of 0", ->
layer = new Layer
layer._element.style["webkitPerspective"].should.equal "none"
layer.perspective.should.equal 0
it "should allow the perspective to be changed", ->
layer = new Layer
layer.perspective = 800
layer.perspective.should.equal 800
layer._element.style["webkitPerspective"].should.equal "800"
it "should set the perspective to 'none' if set to 0", ->
layer = new Layer
layer.perspective = 0
layer.perspective.should.equal 0
layer._element.style["webkitPerspective"].should.equal "none"
it "should set the perspective to 'none' if set to none", ->
layer = new Layer
layer.perspective = "none"
layer.perspective.should.equal "none"
layer._element.style["webkitPerspective"].should.equal "none"
it "should set the perspective to 'none' if set to null", ->
layer = new Layer
layer.perspective = null
layer.perspective.should.equal 0
layer._element.style["webkitPerspective"].should.equal "none"
it "should not allow setting the perspective to random string", ->
layer = new Layer
(-> layer.perspective = "bla").should.throw("Layer.perspective: value 'bla' of type 'string' is not valid")
layer.perspective.should.equal 0
layer._element.style["webkitPerspective"].should.equal "none"
it "should have its backface visible by default", ->
layer = new Layer
layer.style["webkitBackfaceVisibility"].should.equal "visible"
it "should allow backface to be hidden", ->
layer = new Layer
layer.backfaceVisible = false
layer.style["webkitBackfaceVisibility"].should.equal "hidden"
it "should set rotation", ->
layer = new Layer
rotationX: 200
rotationY: 200
rotationZ: 200
layer.rotationX.should.equal(200)
layer.rotationY.should.equal(200)
layer.rotationZ.should.equal(200)
it "should proxy rotation", ->
layer = new Layer
layer.rotation = 200
layer.rotation.should.equal(200)
layer.rotationZ.should.equal(200)
layer.rotationZ = 100
layer.rotation.should.equal(100)
layer.rotationZ.should.equal(100)
it "should only set name when explicitly set", ->
layer = new Layer
layer.__framerInstanceInfo = {name: "aap"}
layer.name.should.equal ""
it "it should show the variable name in toInspect()", ->
layer = new Layer
layer.__framerInstanceInfo = {name: "aap"}
(_.startsWith layer.toInspect(), "<Layer aap id:").should.be.true
it "should set htmlIntrinsicSize", ->
layer = new Layer
assert.equal layer.htmlIntrinsicSize, null
layer.htmlIntrinsicSize = "aap"
assert.equal layer.htmlIntrinsicSize, null
layer.htmlIntrinsicSize =
width: 10
assert.equal layer.htmlIntrinsicSize, null
layer.htmlIntrinsicSize =
width: 10
height: 20
layer.htmlIntrinsicSize.should.eql({width: 10, height: 20})
layer.htmlIntrinsicSize = null
assert.equal layer.htmlIntrinsicSize, null
describe "Border Radius", ->
it "should set borderRadius", ->
testBorderRadius = (layer, value) ->
if layer.style["border-top-left-radius"] is "#{value}"
layer.style["border-top-left-radius"].should.equal "#{value}"
layer.style["border-top-right-radius"].should.equal "#{value}"
layer.style["border-bottom-left-radius"].should.equal "#{value}"
layer.style["border-bottom-right-radius"].should.equal "#{value}"
else
layer.style["border-top-left-radius"].should.equal "#{value} #{value}"
layer.style["border-top-right-radius"].should.equal "#{value} #{value}"
layer.style["border-bottom-left-radius"].should.equal "#{value} #{value}"
layer.style["border-bottom-right-radius"].should.equal "#{value} #{value}"
layer = new Layer
layer.borderRadius = 10
layer.borderRadius.should.equal 10
testBorderRadius(layer, "10px")
layer.borderRadius = "50%"
layer.borderRadius.should.equal "50%"
testBorderRadius(layer, "50%")
it "should set borderRadius with objects", ->
testBorderRadius = (layer, tl, tr, bl, br) ->
layer.style["border-top-left-radius"].should.equal "#{tl}"
layer.style["border-top-right-radius"].should.equal "#{tr}"
layer.style["border-bottom-left-radius"].should.equal "#{bl}"
layer.style["border-bottom-right-radius"].should.equal "#{br}"
layer = new Layer
# No matching keys is an error
layer.borderRadius = {aap: 10, noot: 20, mies: 30}
layer.borderRadius.should.equal 0
testBorderRadius(layer, "0px", "0px", "0px", "0px")
# Arrays are not supported either
layer.borderRadius = [1, 2, 3, 4]
layer.borderRadius.should.equal 0
testBorderRadius(layer, "0px", "0px", "0px", "0px")
layer.borderRadius = {topLeft: 10}
layer.borderRadius.topLeft.should.equal 10
testBorderRadius(layer, "10px", "0px", "0px", "0px")
layer.borderRadius = {topLeft: 1, topRight: 2, bottomLeft: 3, bottomRight: 4}
layer.borderRadius.topLeft.should.equal 1
layer.borderRadius.bottomRight.should.equal 4
testBorderRadius(layer, "1px", "2px", "3px", "4px")
it "should copy borderRadius when set with an object", ->
layer = new Layer
borderRadius = {topLeft: 100}
layer.borderRadius = borderRadius
borderRadius.bottomRight = 100
layer.borderRadius.bottomRight.should.equal 0
it "should set sub-properties of borderRadius", ->
layer = new Layer
borderRadius: {topLeft: 100}
layer.borderRadius.bottomRight = 100
layer.borderRadius.topLeft.should.equal(100)
layer.borderRadius.bottomRight.should.equal(100)
layer.style["border-top-left-radius"].should.equal "100px"
layer.style["border-bottom-right-radius"].should.equal "100px"
describe "Border Width", ->
it "should copy borderWidth when set with an object", ->
layer = new Layer
borderWidth = {top: 100}
layer.borderWidth = borderWidth
borderWidth.bottom = 100
layer.borderWidth.bottom.should.equal 0
it "should set sub-properties of borderWidth", ->
layer = new Layer
borderWidth: {top: 10}
layer.borderWidth.bottom = 10
layer.borderWidth.top.should.equal(10)
layer.borderWidth.bottom.should.equal(10)
layer._elementBorder.style["border-top-width"].should.equal "10px"
layer._elementBorder.style["border-bottom-width"].should.equal "10px"
describe "Gradient", ->
it "should set gradient", ->
layer = new Layer
layer.gradient = new Gradient
start: "blue"
end: "red"
angle: 42
layer.gradient.start.isEqual("blue").should.be.true
layer.gradient.end.isEqual("red").should.be.true
layer.gradient.angle.should.equal(42)
layer.style["background-image"].should.equal("linear-gradient(42deg, rgb(0, 0, 255), rgb(255, 0, 0))")
layer.gradient =
start: "yellow"
end: "purple"
layer.gradient.angle.should.equal(0)
layer.style["background-image"].should.equal("linear-gradient(0deg, rgb(255, 255, 0), rgb(128, 0, 128))")
layer.gradient = null
layer.style["background-image"].should.equal("")
it "should copy gradients when set with an object", ->
layer = new Layer
gradient = new Gradient
start: "blue"
layer.gradient = gradient
gradient.start = "yellow"
layer.gradient.start.isEqual("blue").should.be.true
it "should set sub-properties of gradients", ->
layer = new Layer
gradient:
start: "blue"
layer.gradient.end = "yellow"
layer.gradient.start.isEqual("blue").should.be.true
layer.gradient.end.isEqual("yellow").should.be.true
layer.style["background-image"].should.equal("linear-gradient(0deg, rgb(0, 0, 255), rgb(255, 255, 0))")
describe "Filter Properties", ->
it "should set nothing on defaults", ->
layer = new Layer
layer.style.webkitFilter.should.equal ""
it "should set only the filter that is non default", ->
layer = new Layer
layer.blur = 10
layer.blur.should.equal 10
layer.style.webkitFilter.should.equal "blur(10px)"
layer.contrast = 50
layer.contrast.should.equal 50
layer.style.webkitFilter.should.equal "blur(10px) contrast(50%)"
describe "Backdrop properties", ->
it "should set backgroundBlur", ->
l = new Layer
backgroundBlur: 50
l.style.webkitBackdropFilter.should.equal "blur(50px)"
it "should take dpr into account when setting blur", ->
device = new DeviceComponent()
device.deviceType = "apple-iphone-7-black"
device.context.run ->
l = new Layer
blur: 20
backgroundBlur: 30
l.context.devicePixelRatio.should.equal 2
l.style.webkitFilter.should.equal "blur(40px)"
l.style.webkitBackdropFilter.should.equal "blur(60px)"
it "should set backgroundBrightness", ->
l = new Layer
backgroundBrightness: 50
l.style.webkitBackdropFilter.should.equal "brightness(50%)"
it "should set backgroundSaturate", ->
l = new Layer
backgroundSaturate: 50
l.style.webkitBackdropFilter.should.equal "saturate(50%)"
it "should set backgroundHueRotate", ->
l = new Layer
backgroundHueRotate: 50
l.style.webkitBackdropFilter.should.equal "hue-rotate(50deg)"
it "should set backgroundContrast", ->
l = new Layer
backgroundContrast: 50
l.style.webkitBackdropFilter.should.equal "contrast(50%)"
it "should set backgroundInvert", ->
l = new Layer
backgroundInvert: 50
l.style.webkitBackdropFilter.should.equal "invert(50%)"
it "should set backgroundGrayscale", ->
l = new Layer
backgroundGrayscale: 50
l.style.webkitBackdropFilter.should.equal "grayscale(50%)"
it "should set backgroundSepia", ->
l = new Layer
backgroundSepia: 50
l.style.webkitBackdropFilter.should.equal "sepia(50%)"
it "should support multiple filters", ->
l = new Layer
backgroundBlur: 50
backgroundHueRotate: 20
backgroundSepia: 10
l.style.webkitBackdropFilter.should.equal "blur(50px) hue-rotate(20deg) sepia(10%)"
describe "Blending", ->
it "Should work with every blending mode", ->
l = new Layer
for key, value of Blending
l.blending = value
l.style.mixBlendMode.should.equal value
describe "Shadow Properties", ->
it "should set nothing on defaults", ->
layer = new Layer
layer.style.boxShadow.should.equal ""
it "should set the shadow", ->
layer = new Layer
layer.shadowX = 10
layer.shadowY = 10
layer.shadowBlur = 10
layer.shadowSpread = 10
layer.shadowX.should.equal 10
layer.shadowY.should.equal 10
layer.shadowBlur.should.equal 10
layer.shadowSpread.should.equal 10
layer.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 10px 10px 10px"
# Only after we set a color a shadow should be drawn
layer.shadowColor = "red"
layer.shadowColor.r.should.equal 255
layer.shadowColor.g.should.equal 0
layer.shadowColor.b.should.equal 0
layer.shadowColor.a.should.equal 1
layer.style.boxShadow.should.equal "rgb(255, 0, 0) 10px 10px 10px 10px"
# Only after we set a color a shadow should be drawn
layer.shadowColor = null
layer.style.boxShadow.should.equal "rgba(0, 0, 0, 0) 10px 10px 10px 10px"
it "should add multiple shadows by passing an array into the shadows property", ->
l = new Layer
shadows: [{blur: 10, color: "red"}, {x: 1, color: "blue"}, {y: 10, color: "green", type: "inset"}]
l.style.boxShadow.should.equal "rgb(255, 0, 0) 0px 0px 10px 0px, rgb(0, 0, 255) 1px 0px 0px 0px, rgb(0, 128, 0) 0px 10px 0px 0px inset"
it "should be able to access shadow properties through properties", ->
l = new Layer
l.shadow1 = x: 10
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px"
it "should change the shadow when a shadow property is changed", ->
l = new Layer
l.shadow2 = x: 10
l.shadow2.x = 5
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 5px 0px 0px 0px"
it "should change the shadow when another shadow property is changed", ->
l = new Layer
l.shadow2 = x: 10
l.shadow2.y = 5
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 5px 0px 0px"
it "should get the same shadow that is set", ->
l = new Layer
l.shadow1 = x: 10
l.shadow1.x.should.equal 10
it "should let the shadow be set in the constructor", ->
l = new Layer
shadow1:
x: 10
color: "red"
l.shadow1.x.should.equal 10
l.shadow1.color.toString().should.equal "rgb(255, 0, 0)"
it "should convert color strings to color objects when set via shadows", ->
l = new Layer
shadows: [{blur: 10, color: "red"}]
l.style.boxShadow.should.equal "rgb(255, 0, 0) 0px 0px 10px 0px"
it "should change the first shadow when a shadow property is changed", ->
l = new Layer
l.shadow1.x = 10
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px"
it "should ignore the first shadow when the second shadow property is changed", ->
l = new Layer
l.shadow2.y = 10
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 0px 10px 0px 0px"
it "should animate shadows through a shadow property", (done) ->
l = new Layer
a = l.animate
shadow1:
blur: 100
Utils.delay a.time / 2, ->
l.shadow1.color.a.should.be.above 0
l.shadow1.color.a.should.be.below 0.5
l.shadow1.blur.should.be.above 10
l.shadow1.blur.should.be.below 90
l.onAnimationEnd ->
l.shadow1.blur.should.equal 100
done()
it "should animate shadow colors", (done) ->
l = new Layer
shadow1:
color: "red"
l.animate
shadow1:
color: "blue"
l.onAnimationEnd ->
l.shadow1.color.toString().should.equal "rgb(0, 0, 255)"
done()
it "should remove a shadow when a shadow property is set to null", ->
l = new Layer
l.shadow1 = x: 10
l.shadow2 = y: 10
l.shadow3 = blur: 10
l.shadow2 = null
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px, rgba(123, 123, 123, 0.498039) 0px 0px 10px 0px"
it "should should change all shadows when shadowColor, shadowX, shadowY are changed", ->
l = new Layer
shadows: [{blur: 10, color: "red"}, {x: 1, color: "blue"}, {y: 10, color: "green", type: "inset"}]
l.shadowColor = "yellow"
l.shadowX = 10
l.shadowY = 20
l.shadowBlur = 30
l.shadowSpread = 40
l.style.boxShadow.should.equal "rgb(255, 255, 0) 10px 20px 30px 40px, rgb(255, 255, 0) 10px 20px 30px 40px, rgb(255, 255, 0) 10px 20px 30px 40px inset"
it "should create a shadow if a shadowColor is set when there aren't any shadows", ->
l = new Layer
l.shadows = []
l.shadowColor = "yellow"
l.shadows.length.should.equal 1
l.shadows[0].color.should.equalColor "yellow"
it "should copy shadows if you copy a layer", ->
l = new Layer
shadows: [{blur: 10, color: "red"}, {x: 1, color: "blue"}, {y: 10, color: "green", type: "inset"}]
l2 = l.copy()
l2.style.boxShadow.should.equal "rgb(255, 0, 0) 0px 0px 10px 0px, rgb(0, 0, 255) 1px 0px 0px 0px, rgb(0, 128, 0) 0px 10px 0px 0px inset"
l2.shadows.should.eql l.shadows
l2.shadows.should.not.equal l.shadows
it "should not change shadows after copying a layer", ->
l = new Layer
shadows: [{blur: 10, color: "red"}, {x: 1, color: "blue"}, {y: 10, color: "green", type: "inset"}]
l2 = l.copy()
l.shadow1.x = 100
l2.shadow1.should.not.equal l.shadow1
l2.shadow1.x.should.not.equal 100
it "should be able to handle more then 10 shadows", ->
shadows = []
result = []
for i in [1...16]
shadows.push {x: i}
result.push "rgba(123, 123, 123, 0.498039) #{i}px 0px 0px 0px"
l = new Layer
shadows: shadows
l.style.boxShadow.should.equal result.join(", ")
l.shadows.length.should.equal 15
l.shadows[14].y = 10
l.updateShadowStyle()
result[14] = "rgba(123, 123, 123, 0.498039) 15px 10px 0px 0px"
l.style.boxShadow.should.equal result.join(", ")
it "should handle multiple shadow types", ->
l = new Layer
shadows: [{type: "box", x: 10}, {type: "text", x: 5}, {type: "inset", y: 3}, {type: "drop", y: 15}]
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px, rgba(123, 123, 123, 0.498039) 0px 3px 0px 0px inset"
l.style.textShadow.should.equal "rgba(123, 123, 123, 0.498039) 5px 0px 0px"
l.style.webkitFilter.should.equal "drop-shadow(rgba(123, 123, 123, 0.498039) 0px 15px 0px)"
it "should use outer as an alias for box shadow", ->
l = new Layer
l.shadow1 =
type: "outer"
x: 10
l.shadow1.type.should.equal "outer"
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px"
it "should use outer as an alias for drop shadow when image is set", ->
l = new Layer
image: "static/test2.png"
l.shadow1 =
type: "outer"
x: 10
l.shadow1.type.should.equal "outer"
l.style.webkitFilter.should.equal "drop-shadow(rgba(123, 123, 123, 0.498039) 10px 0px 0px)"
it "should use inner as an alias for inset shadow", ->
l = new Layer
l.shadow1 =
type: "inner"
x: 10
l.shadow1.type.should.equal "inner"
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px inset"
it "should use inner as an alias for inset shadow in the constructor", ->
l = new Layer
shadowType: "inner"
shadowColor: "red"
shadowY: 10
shadowBlur: 10
l.shadow1.type.should.equal "inner"
l.style.boxShadow.should.equal "rgb(255, 0, 0) 0px 10px 10px 0px inset"
it "should change the shadowType of all shadows using shadowType", ->
l = new Layer
shadows: [
blur: 10
type: "inset"
color: "red"
]
l.shadowType = "box"
l.shadow1.type.should.equal "box"
l.style.boxShadow.should.equal "rgb(255, 0, 0) 0px 0px 10px 0px"
it "should reflect the current value throught the shadow<prop> properties", ->
layer = new Layer
shadow1:
x: 5
y: 20
color: "blue"
blur: 10
shadow2:
x: 10
y: 20
color: "red"
layer.shadowX.should.equal 5
layer.shadowY.should.equal 20
layer.shadowColor.should.equalColor "blue"
layer.shadowBlur.should.equal 10
layer.shadowType.should.equal "box"
layer.shadowX = 2
layer.shadowX.should.equal 2
it "should return null for the shadow<prop> properties initially", ->
layer = new Layer
expect(layer.shadowX).to.equal null
expect(layer.shadowY).to.equal null
expect(layer.shadowColor).to.equal null
expect(layer.shadowBlur).to.equal null
expect(layer.shadowType).to.equal null
describe "Events", ->
it "should remove all events", ->
layerA = new Layer
handler = -> console.log "hello"
layerA.on("test", handler)
layerA.removeAllListeners("test")
layerA.listeners("test").length.should.equal 0
it "should add and clean up dom events", ->
layerA = new Layer
handler = -> console.log "hello"
layerA.on(Events.Click, handler)
layerA.on(Events.Click, handler)
layerA.on(Events.Click, handler)
layerA.on(Events.Click, handler)
# But never more then one
layerA._domEventManager.listeners(Events.Click).length.should.equal(1)
layerA.removeAllListeners(Events.Click)
# And on removal, we should get rid of the dom event
layerA._domEventManager.listeners(Events.Click).length.should.equal(0)
it "should work with event helpers", (done) ->
layer = new Layer
layer.onMouseOver (event, aLayer) ->
aLayer.should.equal(layer)
@should.equal(layer)
done()
simulate.mouseover(layer._element)
it "should only pass dom events to the event manager", ->
layer = new Layer
layer.on Events.Click, ->
layer.on Events.Move, ->
layer._domEventManager.listenerEvents().should.eql([Events.Click])
describe "Hierarchy", ->
it "should insert in dom", ->
layer = new Layer
assert.equal layer._element.parentNode.id, "FramerContextRoot-Default"
assert.equal layer.superLayer, null
it "should check superLayer", ->
f = -> layer = new Layer superLayer: 1
f.should.throw()
it "should add child", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
assert.equal layerB._element.parentNode, layerA._element
assert.equal layerB.superLayer, layerA
it "should remove child", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerB.superLayer = null
assert.equal layerB._element.parentNode.id, "FramerContextRoot-Default"
assert.equal layerB.superLayer, null
it "should list children", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerA
assert.deepEqual layerA.children, [layerB, layerC]
layerB.superLayer = null
assert.equal layerA.children.length, 1
assert.deepEqual layerA.children, [layerC]
layerC.superLayer = null
assert.deepEqual layerA.children, []
it "should ignore a hidden SVGLayer", ->
layerA = new Layer
layerB = new Layer
parent: layerA
svgLayer = new SVGLayer
parent: layerA
name: ".SVGLayer"
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="62" height="62"><path d="M 31 0 C 48.121 0 62 13.879 62 31 C 62 48.121 48.121 62 31 62 C 13.879 62 0 48.121 0 31 C 0 13.879 13.879 0 31 0 Z" name="Oval"></path></svg>'
svgLayer2 = new SVGLayer
parent: layerA
name: ".SVGLayer",
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="62" height="62"><path d="M 31 0 L 40.111 18.46 L 60.483 21.42 L 45.741 35.79 L 49.221 56.08 L 31 46.5 L 12.779 56.08 L 16.259 35.79 L 1.517 21.42 L 21.889 18.46 Z" name="Star"></path></svg>'
layerA.children.length.should.equal 3
layerA.children.should.eql [layerB, svgLayer.children[0], svgLayer2.children[0]]
it "should list sibling root layers", ->
layerA = new Layer
layerB = new Layer
layerC = new Layer
assert layerB in layerA.siblingLayers, true
assert layerC in layerA.siblingLayers, true
it "should list sibling layers", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerA
assert.deepEqual layerB.siblingLayers, [layerC]
assert.deepEqual layerC.siblingLayers, [layerB]
it "should list ancestors", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerB
assert.deepEqual layerC.ancestors(), [layerB, layerA]
it "should list descendants deeply", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerB
layerA.descendants.should.eql [layerB, layerC]
it "should list descendants", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerA
layerA.descendants.should.eql [layerB, layerC]
it "should set super/parent with property", ->
layerA = new Layer
layerB = new Layer
layerB.superLayer = layerA
layerA.children.should.eql [layerB]
layerA.subLayers.should.eql [layerB]
it "should set super/parent with with constructor", ->
layerA = new Layer
layerB = new Layer
superLayer: layerA
layerA.children.should.eql [layerB]
layerA.subLayers.should.eql [layerB]
describe "Layering", ->
it "should set at creation", ->
layer = new Layer index: 666
layer.index.should.equal 666
it "should change index", ->
layer = new Layer
layer.index = 666
layer.index.should.equal 666
it "should be in front for root", ->
layerA = new Layer
layerB = new Layer
assert.equal layerB.index, layerA.index + 1
it "should be in front", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerA
assert.equal layerB.index, 0
assert.equal layerC.index, 1
it "should send back and front", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerA
layerC.sendToBack()
assert.equal layerB.index, 0
assert.equal layerC.index, -1
layerC.bringToFront()
assert.equal layerB.index, 0
assert.equal layerC.index, 1
it "should take the layer index below the mininum layer index", ->
layerA = new Layer
layerB = new Layer
parent: layerA
index: 10
layerC = new Layer
parent: layerA
index: 11
layerC.sendToBack()
assert.equal layerB.index, 10
assert.equal layerC.index, 9
it "should handle negative values correctly when sending to back", ->
layerA = new Layer
layerB = new Layer
parent: layerA
index: -3
layerC = new Layer
parent: layerA
index: -2
layerC.sendToBack()
assert.equal layerB.index, -3
assert.equal layerC.index, -4
it "should leave the index alone if it is the only layer", ->
layerA = new Layer
layerB = new Layer
parent: layerA
index: 10
layerB.sendToBack()
layerB.bringToFront()
assert.equal layerB.index, 10
it "should place in front", ->
layerA = new Layer
layerB = new Layer superLayer: layerA # 0
layerC = new Layer superLayer: layerA # 1
layerD = new Layer superLayer: layerA # 2
layerB.placeBefore layerC
assert.equal layerB.index, 1
assert.equal layerC.index, 0
assert.equal layerD.index, 2
it "should place behind", ->
layerA = new Layer
layerB = new Layer superLayer: layerA # 0
layerC = new Layer superLayer: layerA # 1
layerD = new Layer superLayer: layerA # 2
layerC.placeBehind layerB
# TODO: Still something fishy here, but it works
assert.equal layerB.index, 1
assert.equal layerC.index, 0
assert.equal layerD.index, 3
it "should get a children by name", ->
layerA = new Layer
layerB = new Layer name: "B", superLayer: layerA
layerC = new Layer name: "C", superLayer: layerA
layerD = new Layer name: "C", superLayer: layerA
layerA.childrenWithName("B").should.eql [layerB]
layerA.childrenWithName("C").should.eql [layerC, layerD]
it "should get a siblinglayer by name", ->
layerA = new Layer
layerB = new Layer name: "B", superLayer: layerA
layerC = new Layer name: "C", superLayer: layerA
layerD = new Layer name: "C", superLayer: layerA
layerB.siblingLayersByName("C").should.eql [layerC, layerD]
layerD.siblingLayersByName("B").should.eql [layerB]
it "should get a ancestors", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerB
layerC.ancestors().should.eql [layerB, layerA]
describe "Select Layer", ->
beforeEach ->
Framer.CurrentContext.reset()
it "should select the layer named B", ->
layerA = new Layer name: 'A'
layerB = new Layer name: 'B', parent: layerA
layerA.selectChild('B').should.equal layerB
it "should select the layer named C", ->
layerA = new Layer name: 'A'
layerB = new Layer name: 'B', parent: layerA
layerC = new Layer name: 'C', parent: layerB
layerA.selectChild('B > *').should.equal layerC
it "should have a static method `select`", ->
layerA = new Layer name: 'A'
layerB = new Layer name: 'B', parent: layerA
layerC = new Layer name: 'C', parent: layerB
Layer.select('B > *').should.equal layerC
it "should have a method `selectAllChildren`", ->
layerA = new Layer name: 'A'
layerB = new Layer name: 'B', parent: layerA
layerC = new Layer name: 'C', parent: layerB
layerD = new Layer name: 'D', parent: layerB
layerA.selectAllChildren('B > *').should.eql [layerC, layerD]
it "should have a static method `selectAll`", ->
layerA = new Layer name: 'A'
layerB = new Layer name: 'B', parent: layerA # asdas
layerC = new Layer name: 'C', parent: layerB
layerD = new Layer name: 'D', parent: layerB
Layer.selectAll('A *').should.eql [layerB, layerC, layerD]
describe "Frame", ->
it "should set on create", ->
layer = new Layer frame: {x: 111, y: 222, width: 333, height: 444}
assert.equal layer.x, 111
assert.equal layer.y, 222
assert.equal layer.width, 333
assert.equal layer.height, 444
it "should set after create", ->
layer = new Layer
layer.frame = {x: 111, y: 222, width: 333, height: 444}
assert.equal layer.x, 111
assert.equal layer.y, 222
assert.equal layer.width, 333
assert.equal layer.height, 444
it "should set minX on creation", ->
layer = new Layer minX: 200, y: 100, width: 100, height: 100
layer.x.should.equal 200
it "should set midX on creation", ->
layer = new Layer midX: 200, y: 100, width: 100, height: 100
layer.x.should.equal 150
it "should set maxX on creation", ->
layer = new Layer maxX: 200, y: 100, width: 100, height: 100
layer.x.should.equal 100
it "should set minY on creation", ->
layer = new Layer x: 100, minY: 200, width: 100, height: 100
layer.y.should.equal 200
it "should set midY on creation", ->
layer = new Layer x: 100, midY: 200, width: 100, height: 100
layer.y.should.equal 150
it "should set maxY on creation", ->
layer = new Layer x: 100, maxY: 200, width: 100, height: 100
layer.y.should.equal 100
it "should set minX", ->
layer = new Layer y: 100, width: 100, height: 100
layer.minX = 200
layer.x.should.equal 200
it "should set midX", ->
layer = new Layer y: 100, width: 100, height: 100
layer.midX = 200
layer.x.should.equal 150
it "should set maxX", ->
layer = new Layer y: 100, width: 100, height: 100
layer.maxX = 200
layer.x.should.equal 100
it "should set minY", ->
layer = new Layer x: 100, width: 100, height: 100
layer.minY = 200
layer.y.should.equal 200
it "should set midY", ->
layer = new Layer x: 100, width: 100, height: 100
layer.midY = 200
layer.y.should.equal 150
it "should set maxY", ->
layer = new Layer x: 100, width: 100, height: 100
layer.maxY = 200
layer.y.should.equal 100
it "should get and set canvasFrame", ->
layerA = new Layer x: 100, y: 100, width: 100, height: 100
layerB = new Layer x: 300, y: 300, width: 100, height: 100, superLayer: layerA
assert.equal layerB.canvasFrame.x, 400
assert.equal layerB.canvasFrame.y, 400
layerB.canvasFrame = {x: 1000, y: 1000}
assert.equal layerB.canvasFrame.x, 1000
assert.equal layerB.canvasFrame.y, 1000
assert.equal layerB.x, 900
assert.equal layerB.y, 900
layerB.superLayer = null
assert.equal layerB.canvasFrame.x, 900
assert.equal layerB.canvasFrame.y, 900
it "should calculate scale", ->
layerA = new Layer scale: 0.9
layerB = new Layer scale: 0.8, superLayer: layerA
layerB.screenScaleX().should.equal 0.9 * 0.8
layerB.screenScaleY().should.equal 0.9 * 0.8
it "should calculate scaled frame", ->
layerA = new Layer x: 100, width: 500, height: 900, scale: 0.5
layerA.scaledFrame().should.eql {"x": 225, "y": 225, "width": 250, "height": 450}
it "should calculate scaled screen frame", ->
layerA = new Layer x: 100, width: 500, height: 900, scale: 0.5
layerB = new Layer y: 50, width: 600, height: 600, scale: 0.8, superLayer: layerA
layerC = new Layer y: -60, width: 800, height: 700, scale: 1.2, superLayer: layerB
layerA.screenScaledFrame().should.eql {"x": 225, "y": 225, "width": 250, "height": 450}
layerB.screenScaledFrame().should.eql {"x": 255, "y": 280, "width": 240, "height": 240}
layerC.screenScaledFrame().should.eql {"x": 223, "y": 228, "width": 384, "height": 336}
it "should accept point shortcut", ->
layer = new Layer point: 10
layer.x.should.equal 10
layer.y.should.equal 10
it "should accept size shortcut", ->
layer = new Layer size: 10
layer.width.should.equal 10
layer.height.should.equal 10
describe "Center", ->
it "should center", ->
layerA = new Layer width: 200, height: 200
layerB = new Layer width: 100, height: 100, superLayer: layerA
layerB.center()
assert.equal layerB.x, 50
assert.equal layerB.y, 50
it "should center with offset", ->
layerA = new Layer width: 200, height: 200
layerB = new Layer width: 100, height: 100, superLayer: layerA
layerB.centerX(50)
layerB.centerY(50)
assert.equal layerB.x, 100
assert.equal layerB.y, 100
it "should center return layer", ->
layerA = new Layer width: 200, height: 200
layerA.center().should.equal layerA
layerA.centerX().should.equal layerA
layerA.centerY().should.equal layerA
it "should center pixel align", ->
layerA = new Layer width: 200, height: 200
layerB = new Layer width: 111, height: 111, superLayer: layerA
layerB.center().pixelAlign()
assert.equal layerB.x, 44
assert.equal layerB.y, 44
it "should center with border", ->
layer = new Layer
width: 200
height: 200
layer.borderColor = "green"
layer.borderWidth = 30
layer.center()
layerB = new Layer
superLayer: layer
backgroundColor: "red"
layerB.center()
layerB.frame.should.eql {x: 20, y: 20, width: 100, height: 100}
it "should center within outer frame", ->
layerA = new Layer width: 10, height: 10
layerA.center()
assert.equal layerA.x, 195
assert.equal layerA.y, 145
it "should center correctly with dpr set", ->
device = new DeviceComponent()
device.deviceType = "apple-iphone-7-black"
device.context.run ->
layerA = new Layer size: 100
layerA.center()
layerA.context.devicePixelRatio.should.equal 2
layerA.x.should.equal 137
layerA.y.should.equal 283
describe "midPoint", ->
it "should accept a midX/midY value", ->
l = new Layer
midPoint:
midX: 123
midY: 459
l.midX.should.equal 123
l.midY.should.equal 459
it "should accept a x/y value", ->
l = new Layer
midPoint:
x: 123
y: 459
l.midX.should.equal 123
l.midY.should.equal 459
it "should accept a single number", ->
l = new Layer
midPoint: 234
l.midX.should.equal 234
l.midY.should.equal 234
it "should pick midX/midY over x/y", ->
l = new Layer
midPoint:
midX: 123
midY: 459
x: 653
y: 97
l.midX.should.equal 123
l.midY.should.equal 459
it "should not change the object passed in", ->
l =
x: 100
y: 200
m = new Layer
midPoint: l
m.midX.should.equal l.x
m.midY.should.equal l.y
l.x.should.equal 100
l.y.should.equal 200
describe "CSS", ->
it "classList should work", ->
layer = new Layer
layer.classList.add "test"
assert.equal layer.classList.contains("test"), true
assert.equal layer._element.classList.contains("test"), true
describe "DOM", ->
it "should destroy", ->
before = Object.keys(Framer.CurrentContext.domEventManager._elements).length
layer = new Layer
layer.destroy()
(layer in Framer.CurrentContext.layers).should.be.false
assert.equal layer._element.parentNode, null
assert.equal before, Object.keys(Framer.CurrentContext.domEventManager._elements).length
it "should set text", ->
layer = new Layer
layer.html = "Hello"
layer._element.childNodes[0].should.equal layer._elementHTML
layer._elementHTML.innerHTML.should.equal "Hello"
layer.ignoreEvents.should.equal true
it "should not effect children", ->
layer = new Layer
layer.html = "Hello"
Child = new Layer superLayer: layer
Child._element.offsetTop.should.equal 0
it "should set interactive html and allow pointer events", ->
tags = ["input", "select", "textarea", "option"]
html = ""
for tag in tags
html += "<#{tag}></#{tag}>"
layer = new Layer
layer.html = html
for tag in tags
element = layer.querySelectorAll(tag)[0]
style = window.getComputedStyle(element)
style["pointer-events"].should.equal "auto"
# style["-webkit-user-select"].should.equal "auto"
it "should work with querySelectorAll", ->
layer = new Layer
layer.html = "<input type='button' id='hello'>"
inputElements = layer.querySelectorAll("input")
inputElements.length.should.equal 1
inputElement = _.head(inputElements)
inputElement.getAttribute("id").should.equal "hello"
describe "Force 2D", ->
it "should switch to 2d rendering", ->
layer = new Layer
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
layer.force2d = true
layer.style.webkitTransform.should.equal "translate(0px, 0px) scale(1, 1) skew(0deg, 0deg) rotate(0deg)"
describe "Matrices", ->
it "should have the correct matrix", ->
layer = new Layer
scale: 2
rotation: 45
x: 200
y: 120
skew: 21
layer.matrix.toString().should.eql "matrix(1.957079, 1.957079, -0.871348, 0.871348, 200.000000, 120.000000)"
it "should have the correct matrix when 2d is forced", ->
layer = new Layer
scale: 2
rotation: 45
x: 200
y: 120
skew: 21
force2d: true
layer.matrix.toString().should.eql "matrix(2.165466, 1.957079, -1.079734, 0.871348, 200.000000, 120.000000)"
it "should have the correct transform matrix", ->
layer = new Layer
scale: 20
rotation: 5
rotationY: 20
x: 200
y: 120
skew: 21
layer.transformMatrix.toString().should.eql "matrix3d(19.391455, 8.929946, -0.340719, 0.000000, 6.010074, 19.295128, 0.029809, 0.000000, 6.840403, 2.625785, 0.939693, 0.000000, -1020.076470, -1241.253701, 15.545482, 1.000000)"
it "should have the correct screen point", ->
layer = new Layer
rotation: 5
x: 200
y: 120
skew: 21
roundX = Math.round(layer.convertPointToScreen().x)
roundX.should.eql 184
it "should have the correct screen frame", ->
layer = new Layer
rotation: 5
x: 200
y: 120
skew: 21
boundingBox = layer.screenFrame
boundingBox.x.should.eql 184
boundingBox.y.should.eql 98
boundingBox.width.should.eql 132
boundingBox.height.should.eql 144
it "should use Framer.Defaults when setting the screen frame", ->
Framer.Defaults.Layer.width = 300
Framer.Defaults.Layer.height = 400
box = new Layer
screenFrame:
x: 123
box.stateCycle()
box.x.should.equal 123
box.width.should.equal 300
box.height.should.equal 400
Framer.resetDefaults()
it "should have the correct canvas frame", ->
layer = new Layer
rotation: 5
x: 200
y: 120
skew: 21
boundingBox = layer.canvasFrame
boundingBox.x.should.eql 184
boundingBox.y.should.eql 98
boundingBox.width.should.eql 132
boundingBox.height.should.eql 144
describe "Copy", ->
it "copied Layer should hold set props", ->
X = 100
Y = 200
IMAGE = "../static/test.png"
BORDERRADIUS = 20
layer = new Layer
x: X
y: Y
image: IMAGE
layer.borderRadius = BORDERRADIUS
layer.x.should.eql X
layer.y.should.eql Y
layer.image.should.eql IMAGE
layer.borderRadius.should.eql BORDERRADIUS
copy = layer.copy()
copy.x.should.eql X
copy.y.should.eql Y
copy.image.should.eql IMAGE
copy.borderRadius.should.eql BORDERRADIUS
it "copied Layer should have defaults", ->
layer = new Layer
copy = layer.copy()
copy.width.should.equal 100
copy.height.should.equal 100
it "copied Layer should also copy styles", ->
layer = new Layer
style:
"font-family": "-apple-system"
"font-size": "1.2em"
"text-align": "right"
copy = layer.copy()
copy.style["font-family"].should.equal "-apple-system"
copy.style["font-size"].should.equal "1.2em"
copy.style["text-align"].should.equal "right"
describe "Point conversion", ->
it "should correctly convert points from layer to Screen", ->
point =
x: 200
y: 300
layer = new Layer point: point
screenPoint = layer.convertPointToScreen()
screenPoint.x.should.equal point.x
screenPoint.y.should.equal point.y
it "should correctly convert points from Screen to layer", ->
point =
x: 300
y: 200
layer = new Layer point: point
layerPoint = Screen.convertPointToLayer({}, layer)
layerPoint.x.should.equal -point.x
layerPoint.y.should.equal -point.y
it "should correctly convert points from layer to layer", ->
layerBOffset =
x: 200
y: 400
layerA = new Layer
layerB = new Layer point: layerBOffset
layerAToLayerBPoint = layerA.convertPointToLayer({}, layerB)
layerAToLayerBPoint.x.should.equal -layerBOffset.x
layerAToLayerBPoint.y.should.equal -layerBOffset.y
it "should correctly convert points when layers are nested", ->
layerBOffset =
x: 0
y: 200
layerA = new Layer
layerB = new Layer
parent: layerA
point: layerBOffset
rotation: 90
originX: 0
originY: 0
layerAToLayerBPoint = layerA.convertPointToLayer({}, layerB)
layerAToLayerBPoint.x.should.equal -layerBOffset.y
it "should correctly convert points between multiple layers and transforms", ->
layerA = new Layer
x: 275
layerB = new Layer
y: 400
x: 400
scale: 2
parent: layerA
layerC = new Layer
x: -200
y: 100
rotation: 180
originX: 0
originY: 0
parent: layerB
screenToLayerCPoint = Screen.convertPointToLayer(null, layerC)
screenToLayerCPoint.x.should.equal 112.5
screenToLayerCPoint.y.should.equal 275
it "should correctly convert points from the Canvas to a layer", ->
layerA = new Layer
scale: 2
layerB = new Layer
parent: layerA
originY: 1
rotation: 90
canvasToLayerBPoint = Canvas.convertPointToLayer({}, layerB)
canvasToLayerBPoint.x.should.equal -25
canvasToLayerBPoint.y.should.equal 125
describe "Device Pixel Ratio", ->
it "should default to 1", ->
a = new Layer
a.context.devicePixelRatio.should.equal 1
it "should change all of a layers children", ->
context = new Framer.Context(name: "Test")
context.run ->
a = new Layer
b = new Layer
parent: a
c = new Layer
parent: b
a.context.devicePixelRatio = 3
for l in [a, b, c]
l._element.style.width.should.equal "300px"
describe "containers", ->
it "should return empty when called on rootLayer", ->
a = new Layer name: "a"
a.containers().should.deep.equal []
it "should return all ancestors", ->
a = new Layer name: "a"
b = new Layer parent: a, name: "b"
c = new Layer parent: b, name: "c"
d = new Layer parent: c, name: "d"
names = d.containers().map (l) -> l.name
names.should.deep.equal ["c", "b", "a"]
it "should include the device return all ancestors", ->
device = new DeviceComponent()
device.context.run ->
a = new Layer name: "a"
b = new Layer parent: a, name: "b"
c = new Layer parent: b, name: "c"
d = new Layer parent: c, name: "d"
containers = d.containers(true)
containers.length.should.equal 9
names = containers.map((l) -> l.name)
names.should.eql ["c", "b", "a", undefined, "viewport", "screen", "phone", "hands", undefined]
describe "constraintValues", ->
it "layout should not break constraints", ->
l = new Layer
x: 100
constraintValues:
aspectRatioLocked: true
l.x.should.equal 100
l.layout()
l.x.should.equal 0
assert.notEqual l.constraintValues, null
it "should break all constraints when setting x", ->
l = new Layer
x: 100
constraintValues:
aspectRatioLocked: true
l.x.should.equal 100
assert.notEqual l.constraintValues, null
l.x = 50
assert.equal l.constraintValues, null
it "should break all constraints when setting y", ->
l = new Layer
y: 100
constraintValues:
aspectRatioLocked: true
l.y.should.equal 100
assert.notEqual l.constraintValues, null
l.y = 50
assert.equal l.constraintValues, null
it "should update the width constraint when setting width", ->
l = new Layer
width: 100
constraintValues:
aspectRatioLocked: true
l.width.should.equal 100
assert.notEqual l.constraintValues, null
l.width = 50
l.constraintValues.width.should.equal 50
it "should update the height constraint when setting height", ->
l = new Layer
height: 100
constraintValues:
aspectRatioLocked: true
l.height.should.equal 100
assert.notEqual l.constraintValues, null
l.height = 50
l.constraintValues.height.should.equal 50
it "should disable the aspectRatioLock and widthFactor constraint when setting width", ->
l = new Layer
constraintValues:
aspectRatioLocked: true
widthFactor: 0.5
width: null
l.layout()
l.width.should.equal 200
assert.notEqual l.constraintValues, null
l.width = 50
l.constraintValues.aspectRatioLocked.should.equal false
assert.equal l.constraintValues.widthFactor, null
it "should disable the aspectRatioLock and heightFactor constraint when setting height", ->
l = new Layer
constraintValues:
aspectRatioLocked: true
heightFactor: 0.5
height: null
l.layout()
l.height.should.equal 150
assert.notEqual l.constraintValues, null
l.height = 50
assert.equal l.constraintValues.heightFactor, null
it "should update the x position when changing width", ->
l = new Layer
width: 100
constraintValues:
left: null
right: 20
l.layout()
l.width.should.equal 100
l.x.should.equal 280
assert.notEqual l.constraintValues, null
l.width = 50
l.x.should.equal 330
it "should update the y position when changing height", ->
l = new Layer
height: 100
constraintValues:
top: null
bottom: 20
l.layout()
l.height.should.equal 100
l.y.should.equal 180
assert.notEqual l.constraintValues, null
l.height = 50
l.y.should.equal 230
it "should update to center the layer when center() is called", ->
l = new Layer
constraintValues:
aspectRatioLocked: true
l.layout()
l.center()
l.x.should.equal 150
l.y.should.equal 100
assert.equal l.constraintValues.left, null
assert.equal l.constraintValues.right, null
assert.equal l.constraintValues.top, null
assert.equal l.constraintValues.bottom, null
assert.equal l.constraintValues.centerAnchorX, 0.5
assert.equal l.constraintValues.centerAnchorY, 0.5
it "should update to center the layer vertically when centerX() is called", ->
l = new Layer
constraintValues:
aspectRatioLocked: true
l.layout()
l.x.should.equal 0
l.centerX()
l.x.should.equal 150
assert.equal l.constraintValues.left, null
assert.equal l.constraintValues.right, null
assert.equal l.constraintValues.centerAnchorX, 0.5
it "should update to center the layer horizontally when centerY() is called", ->
l = new Layer
constraintValues:
aspectRatioLocked: true
l.layout()
l.y.should.equal 0
l.centerY()
l.y.should.equal 100
assert.equal l.constraintValues.top, null
assert.equal l.constraintValues.bottom, null
assert.equal l.constraintValues.centerAnchorY, 0.5
describe "when no constraints are set", ->
it "should not set the width constraint when setting the width", ->
l = new Layer
width: 100
l.width.should.equal 100
assert.equal l.constraintValues, null
l.width = 50
assert.equal l.constraintValues, null
it "should not set the height constraint when setting the height", ->
l = new Layer
height: 100
l.height.should.equal 100
assert.equal l.constraintValues, null
l.height = 50
assert.equal l.constraintValues, null
| 114432 | assert = require "assert"
{expect} = require "chai"
simulate = require "simulate"
describe "Layer", ->
# afterEach ->
# Utils.clearAll()
# beforeEach ->
# Framer.Utils.reset()
describe "Defaults", ->
it "should reset nested defaults", ->
Framer.Defaults.DeviceComponent.animationOptions.curve = "spring"
Framer.resetDefaults()
Framer.Defaults.DeviceComponent.animationOptions.curve.should.equal "ease-in-out"
it "should reset width and height to their previous values", ->
previousWidth = Framer.Defaults.Layer.width
previousHeight = Framer.Defaults.Layer.height
Framer.Defaults.Layer.width = 123
Framer.Defaults.Layer.height = 123
Framer.resetDefaults()
Framer.Defaults.Layer.width.should.equal previousWidth
Framer.Defaults.Layer.height.should.equal previousHeight
it "should set defaults", ->
width = Utils.randomNumber(0, 400)
height = Utils.randomNumber(0, 400)
Framer.Defaults =
Layer:
width: width
height: height
layer = new Layer()
layer.width.should.equal width
layer.height.should.equal height
Framer.resetDefaults()
layer = new Layer()
layer.width.should.equal 100
layer.height.should.equal 100
it "should set default background color", ->
# if the default background color is not set the content layer of scrollcomponent is not hidden when layers are added
layer = new Layer()
layer.backgroundColor.should.equalColor Framer.Defaults.Layer.backgroundColor
Framer.Defaults =
Layer:
backgroundColor: "red"
layer = new Layer()
layer.style.backgroundColor.should.equal new Color("red").toString()
Framer.resetDefaults()
it "should set defaults with override", ->
layer = new Layer x: 50, y: 60
layer.x.should.equal 50
layer.y.should.equal 60
it "should have default animationOptions", ->
layer = new Layer
layer.animationOptions.should.eql {}
describe "Properties", ->
it "should set defaults", ->
layer = new Layer()
layer.x.should.equal 0
layer.y.should.equal 0
layer.z.should.equal 0
layer.width.should.equal 100
layer.height.should.equal 100
it "should set width", ->
layer = new Layer width: 200
layer.width.should.equal 200
layer.style.width.should.equal "200px"
it "should set x not to scientific notation", ->
n = 0.000000000000002
n.toString().should.equal("2e-15")
layer = new Layer
layer.x = n
layer.y = 100
layer.style.webkitTransform.should.equal "translate3d(0px, 100px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should set x, y and z to really small values", ->
layer = new Layer
layer.x = 10
layer.y = 10
layer.z = 10
layer.x = 1e-5
layer.y = 1e-6
layer.z = 1e-7
layer.x.should.equal 1e-5
layer.y.should.equal 1e-6
layer.z.should.equal 1e-7
# layer.style.webkitTransform.should.equal "matrix(1, 0, 0, 1, 100, 0)"
layer.style.webkitTransform.should.equal "translate3d(0.00001px, 0.000001px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should handle scientific notation in scaleX, Y and Z", ->
layer = new Layer
layer.scaleX = 2
layer.scaleY = 2
layer.scaleZ = 3
layer.scaleX = 1e-7
layer.scaleY = 1e-8
layer.scaleZ = 1e-9
layer.scale = 1e-10
layer.scaleX.should.equal 1e-7
layer.scaleY.should.equal 1e-8
layer.scaleZ.should.equal 1e-9
layer.scale.should.equal 1e-10
# layer.style.webkitTransform.should.equal "matrix(1, 0, 0, 1, 100, 0)"
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(0, 0, 0) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should handle scientific notation in skew", ->
layer = new Layer
layer.skew = 2
layer.skewX = 2
layer.skewY = 3
layer.skew = 1e-5
layer.skewX = 1e-6
layer.skewY = 1e-7
layer.skew.should.equal 1e-5
layer.skewX.should.equal 1e-6
layer.skewY.should.equal 1e-7
# layer.style.webkitTransform.should.equal "matrix(1, 0, 0, 1, 100, 0)"
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(1, 1, 1) skew(0.00001deg, 0.00001deg) skewX(0.000001deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should set x and y", ->
layer = new Layer
layer.x = 100
layer.x.should.equal 100
layer.y = 50
layer.y.should.equal 50
# layer.style.webkitTransform.should.equal "matrix(1, 0, 0, 1, 100, 0)"
layer.style.webkitTransform.should.equal "translate3d(100px, 50px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should handle midX and midY when width and height are 0", ->
box = new Layer
midX: 200
midY: 300
width: 0
height: 0
box.x.should.equal 200
box.y.should.equal 300
it "should set scale", ->
layer = new Layer
layer.scaleX = 100
layer.scaleY = 100
layer.scaleZ = 100
# layer.style.webkitTransform.should.equal "matrix(1, 0, 0, 1, 100, 50)"
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(100, 100, 100) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should set origin", ->
layer = new Layer
originZ: 80
layer.style.webkitTransformOrigin.should.equal "50% 50%"
layer.originX = 0.1
layer.originY = 0.2
layer.style.webkitTransformOrigin.should.equal "10% 20%"
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(80px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(-80px)"
layer.originX = 0.5
layer.originY = 0.5
layer.style.webkitTransformOrigin.should.equal "50% 50%"
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(80px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(-80px)"
it "should preserve 3D by default", ->
layer = new Layer
layer._element.style.webkitTransformStyle.should.equal "preserve-3d"
it "should flatten layer", ->
layer = new Layer
flat: true
layer._element.style.webkitTransformStyle.should.equal "flat"
it "should set local image", ->
prefix = "../"
imagePath = "static/test.png"
fullPath = prefix + imagePath
layer = new Layer
layer.image = fullPath
layer.image.should.equal fullPath
image = layer.props.image
layer.props.image.should.equal fullPath
layer.style["background-image"].indexOf(imagePath).should.not.equal(-1)
layer.style["background-image"].indexOf("file://").should.not.equal(-1)
layer.style["background-image"].indexOf("?nocache=").should.not.equal(-1)
it "should set local image when listening to load events", (done) ->
prefix = "../"
imagePath = "static/test.png"
fullPath = prefix + imagePath
layer = new Layer
layer.on Events.ImageLoaded, ->
layer.style["background-image"].indexOf(imagePath).should.not.equal(-1)
layer.style["background-image"].indexOf("file://").should.not.equal(-1)
layer.style["background-image"].indexOf("?nocache=").should.not.equal(-1)
done()
layer.image = fullPath
layer.image.should.equal fullPath
image = layer.props.image
layer.props.image.should.equal fullPath
layer.style["background-image"].indexOf(imagePath).should.equal(-1)
layer.style["background-image"].indexOf("file://").should.equal(-1)
layer.style["background-image"].indexOf("?nocache=").should.equal(-1)
#layer.computedStyle()["background-size"].should.equal "cover"
#layer.computedStyle()["background-repeat"].should.equal "no-repeat"
it "should not append nocache to a base64 encoded image", ->
fullPath = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMBAMAAAA1uUwYAAAAAXNSR0IArs4c6QAAABVQTFRFKK/6LFj/g9n/lNf9lqz/wez/////Ke+vpgAAAK1JREFUSMft1sENhDAMBdFIrmBboAjuaWF<KEY>"
layer = new Layer
layer.image = fullPath
layer.image.should.equal fullPath
image = layer.props.image
image.should.equal fullPath
layer.style["background-image"].indexOf(fullPath).should.not.equal(-1)
layer.style["background-image"].indexOf("data:").should.not.equal(-1)
layer.style["background-image"].indexOf("?nocache=").should.equal(-1)
it "should append nocache with an ampersand if url params already exist", (done) ->
prefix = "../"
imagePath = "static/test.png?param=foo"
fullPath = prefix + imagePath
layer = new Layer
layer.on Events.ImageLoaded, ->
layer.style["background-image"].indexOf(imagePath).should.not.equal(-1)
layer.style["background-image"].indexOf("file://").should.not.equal(-1)
layer.style["background-image"].indexOf("&nocache=").should.not.equal(-1)
done()
layer.image = fullPath
layer.image.should.equal fullPath
it "should cancel loading when setting image to null", (done) ->
prefix = "../"
imagePath = "static/test.png"
fullPath = prefix + imagePath
#First set the image directly to something
layer = new Layer
image: "static/test2.png"
#Now add event handlers
layer.on Events.ImageLoadCancelled, ->
layer.style["background-image"].indexOf(imagePath).should.equal(-1)
layer.style["background-image"].indexOf("file://").should.equal(-1)
layer.style["background-image"].indexOf("?nocache=").should.equal(-1)
done()
#so we preload the next image
layer.image = fullPath
#set the image no null to cancel the loading
layer.image = null
it "should set image", ->
imagePath = "../static/test.png"
layer = new Layer image: imagePath
layer.image.should.equal imagePath
it "should unset image with null", ->
layer = new Layer image: "../static/test.png"
layer.image = null
layer.image.should.equal ""
it "should unset image with empty string", ->
layer = new Layer image: "../static/test.png"
layer.image = ""
layer.image.should.equal ""
it "should test image property type", ->
f = ->
layer = new Layer
layer.image = {}
f.should.throw()
it "should set name on create", ->
layer = new Layer name: "Test"
layer.name.should.equal "Test"
layer._element.getAttribute("name").should.equal "Test"
it "should set name after create", ->
layer = new Layer
layer.name = "Test"
layer.name.should.equal "Test"
layer._element.getAttribute("name").should.equal "Test"
it "should handle false layer names correctly", ->
layer = new Layer
name: 0
layer.name.should.equal "0"
layer._element.getAttribute("name").should.equal "0"
it "should handle background color with image", ->
# We want the background color to be there until an images
# is set UNLESS we set another backgroundColor explicitly
imagePath = "../static/test.png"
layer = new Layer image: imagePath
assert.equal layer.backgroundColor.color, null
layer = new Layer
layer.image = imagePath
assert.equal layer.backgroundColor.color, null
layer = new Layer backgroundColor: "red"
layer.image = imagePath
layer.backgroundColor.should.equalColor "red"
layer = new Layer
layer.backgroundColor = "red"
layer.image = imagePath
layer.backgroundColor.should.equalColor "red"
describe "should set the background size", ->
it "cover", ->
layer = new Layer backgroundSize: "cover"
layer.style["background-size"].should.equal "cover"
it "contain", ->
layer = new Layer backgroundSize: "contain"
layer.style["background-size"].should.equal "contain"
it "percentage", ->
layer = new Layer backgroundSize: "100%"
layer.style["background-size"].should.equal "100%"
it "other", ->
layer = new Layer backgroundSize: "300px, 5em 10%"
layer.style["background-size"].should.equal "300px, 5em 10%"
it "fill", ->
layer = new Layer backgroundSize: "fill"
layer.style["background-size"].should.equal "cover"
it "fit", ->
layer = new Layer backgroundSize: "fit"
layer.style["background-size"].should.equal "contain"
it "stretch", ->
layer = new Layer backgroundSize: "stretch"
# This should be "100% 100%", but phantomjs doest return that when you set it
layer.style["background-size"].should.equal "100%"
it "should set visible", ->
layer = new Layer
layer.visible.should.equal true
layer.style["display"].should.equal "block"
layer.visible = false
layer.visible.should.equal false
layer.style["display"].should.equal "none"
it "should set clip", ->
layer = new Layer
layer.clip.should.equal false
layer.style["overflow"].should.equal "visible"
layer.clip = true
layer.style["overflow"].should.equal "hidden"
it "should set scroll", ->
layer = new Layer
layer.scroll.should.equal false
layer.style["overflow"].should.equal "visible"
layer.scroll = true
layer.scroll.should.equal true
layer.style["overflow"].should.equal "scroll"
layer.ignoreEvents.should.equal false
layer.scroll = false
layer.scroll.should.equal false
layer.style["overflow"].should.equal "visible"
it "should set scroll from properties", ->
layer = new Layer
layer.props = {scroll: false}
layer.scroll.should.equal false
layer.props = {scroll: true}
layer.scroll.should.equal true
it "should set scrollHorizontal", ->
layer = new Layer
layer.scroll.should.equal false
layer.style["overflow"].should.equal "visible"
layer.ignoreEvents.should.equal true
layer.scroll = true
layer.scroll.should.equal true
layer.style["overflow"].should.equal "scroll"
layer.ignoreEvents.should.equal false
it "should disable ignore events when scroll is set from constructor", ->
layerA = new Layer
scroll: true
layerA.ignoreEvents.should.equal false
it "should set style properties on create", ->
layer = new Layer backgroundColor: "red"
layer.backgroundColor.isEqual(new Color("red")).should.equal true
layer.style["backgroundColor"].should.equal new Color("red").toString()
it "should check value type", ->
f = ->
layer = new Layer
layer.x = "hello"
f.should.throw()
it "should set perspective", ->
layer = new Layer
layer.perspective = 500
layer.style["-webkit-perspective"].should.equal("500")
it "should have a default perspective of 0", ->
layer = new Layer
layer._element.style["webkitPerspective"].should.equal "none"
layer.perspective.should.equal 0
it "should allow the perspective to be changed", ->
layer = new Layer
layer.perspective = 800
layer.perspective.should.equal 800
layer._element.style["webkitPerspective"].should.equal "800"
it "should set the perspective to 'none' if set to 0", ->
layer = new Layer
layer.perspective = 0
layer.perspective.should.equal 0
layer._element.style["webkitPerspective"].should.equal "none"
it "should set the perspective to 'none' if set to none", ->
layer = new Layer
layer.perspective = "none"
layer.perspective.should.equal "none"
layer._element.style["webkitPerspective"].should.equal "none"
it "should set the perspective to 'none' if set to null", ->
layer = new Layer
layer.perspective = null
layer.perspective.should.equal 0
layer._element.style["webkitPerspective"].should.equal "none"
it "should not allow setting the perspective to random string", ->
layer = new Layer
(-> layer.perspective = "bla").should.throw("Layer.perspective: value 'bla' of type 'string' is not valid")
layer.perspective.should.equal 0
layer._element.style["webkitPerspective"].should.equal "none"
it "should have its backface visible by default", ->
layer = new Layer
layer.style["webkitBackfaceVisibility"].should.equal "visible"
it "should allow backface to be hidden", ->
layer = new Layer
layer.backfaceVisible = false
layer.style["webkitBackfaceVisibility"].should.equal "hidden"
it "should set rotation", ->
layer = new Layer
rotationX: 200
rotationY: 200
rotationZ: 200
layer.rotationX.should.equal(200)
layer.rotationY.should.equal(200)
layer.rotationZ.should.equal(200)
it "should proxy rotation", ->
layer = new Layer
layer.rotation = 200
layer.rotation.should.equal(200)
layer.rotationZ.should.equal(200)
layer.rotationZ = 100
layer.rotation.should.equal(100)
layer.rotationZ.should.equal(100)
it "should only set name when explicitly set", ->
layer = new Layer
layer.__framerInstanceInfo = {name: "aap"}
layer.name.should.equal ""
it "it should show the variable name in toInspect()", ->
layer = new Layer
layer.__framerInstanceInfo = {name: "aap"}
(_.startsWith layer.toInspect(), "<Layer aap id:").should.be.true
it "should set htmlIntrinsicSize", ->
layer = new Layer
assert.equal layer.htmlIntrinsicSize, null
layer.htmlIntrinsicSize = "aap"
assert.equal layer.htmlIntrinsicSize, null
layer.htmlIntrinsicSize =
width: 10
assert.equal layer.htmlIntrinsicSize, null
layer.htmlIntrinsicSize =
width: 10
height: 20
layer.htmlIntrinsicSize.should.eql({width: 10, height: 20})
layer.htmlIntrinsicSize = null
assert.equal layer.htmlIntrinsicSize, null
describe "Border Radius", ->
it "should set borderRadius", ->
testBorderRadius = (layer, value) ->
if layer.style["border-top-left-radius"] is "#{value}"
layer.style["border-top-left-radius"].should.equal "#{value}"
layer.style["border-top-right-radius"].should.equal "#{value}"
layer.style["border-bottom-left-radius"].should.equal "#{value}"
layer.style["border-bottom-right-radius"].should.equal "#{value}"
else
layer.style["border-top-left-radius"].should.equal "#{value} #{value}"
layer.style["border-top-right-radius"].should.equal "#{value} #{value}"
layer.style["border-bottom-left-radius"].should.equal "#{value} #{value}"
layer.style["border-bottom-right-radius"].should.equal "#{value} #{value}"
layer = new Layer
layer.borderRadius = 10
layer.borderRadius.should.equal 10
testBorderRadius(layer, "10px")
layer.borderRadius = "50%"
layer.borderRadius.should.equal "50%"
testBorderRadius(layer, "50%")
it "should set borderRadius with objects", ->
testBorderRadius = (layer, tl, tr, bl, br) ->
layer.style["border-top-left-radius"].should.equal "#{tl}"
layer.style["border-top-right-radius"].should.equal "#{tr}"
layer.style["border-bottom-left-radius"].should.equal "#{bl}"
layer.style["border-bottom-right-radius"].should.equal "#{br}"
layer = new Layer
# No matching keys is an error
layer.borderRadius = {aap: 10, noot: 20, mies: 30}
layer.borderRadius.should.equal 0
testBorderRadius(layer, "0px", "0px", "0px", "0px")
# Arrays are not supported either
layer.borderRadius = [1, 2, 3, 4]
layer.borderRadius.should.equal 0
testBorderRadius(layer, "0px", "0px", "0px", "0px")
layer.borderRadius = {topLeft: 10}
layer.borderRadius.topLeft.should.equal 10
testBorderRadius(layer, "10px", "0px", "0px", "0px")
layer.borderRadius = {topLeft: 1, topRight: 2, bottomLeft: 3, bottomRight: 4}
layer.borderRadius.topLeft.should.equal 1
layer.borderRadius.bottomRight.should.equal 4
testBorderRadius(layer, "1px", "2px", "3px", "4px")
it "should copy borderRadius when set with an object", ->
layer = new Layer
borderRadius = {topLeft: 100}
layer.borderRadius = borderRadius
borderRadius.bottomRight = 100
layer.borderRadius.bottomRight.should.equal 0
it "should set sub-properties of borderRadius", ->
layer = new Layer
borderRadius: {topLeft: 100}
layer.borderRadius.bottomRight = 100
layer.borderRadius.topLeft.should.equal(100)
layer.borderRadius.bottomRight.should.equal(100)
layer.style["border-top-left-radius"].should.equal "100px"
layer.style["border-bottom-right-radius"].should.equal "100px"
describe "Border Width", ->
it "should copy borderWidth when set with an object", ->
layer = new Layer
borderWidth = {top: 100}
layer.borderWidth = borderWidth
borderWidth.bottom = 100
layer.borderWidth.bottom.should.equal 0
it "should set sub-properties of borderWidth", ->
layer = new Layer
borderWidth: {top: 10}
layer.borderWidth.bottom = 10
layer.borderWidth.top.should.equal(10)
layer.borderWidth.bottom.should.equal(10)
layer._elementBorder.style["border-top-width"].should.equal "10px"
layer._elementBorder.style["border-bottom-width"].should.equal "10px"
describe "Gradient", ->
it "should set gradient", ->
layer = new Layer
layer.gradient = new Gradient
start: "blue"
end: "red"
angle: 42
layer.gradient.start.isEqual("blue").should.be.true
layer.gradient.end.isEqual("red").should.be.true
layer.gradient.angle.should.equal(42)
layer.style["background-image"].should.equal("linear-gradient(42deg, rgb(0, 0, 255), rgb(255, 0, 0))")
layer.gradient =
start: "yellow"
end: "purple"
layer.gradient.angle.should.equal(0)
layer.style["background-image"].should.equal("linear-gradient(0deg, rgb(255, 255, 0), rgb(128, 0, 128))")
layer.gradient = null
layer.style["background-image"].should.equal("")
it "should copy gradients when set with an object", ->
layer = new Layer
gradient = new Gradient
start: "blue"
layer.gradient = gradient
gradient.start = "yellow"
layer.gradient.start.isEqual("blue").should.be.true
it "should set sub-properties of gradients", ->
layer = new Layer
gradient:
start: "blue"
layer.gradient.end = "yellow"
layer.gradient.start.isEqual("blue").should.be.true
layer.gradient.end.isEqual("yellow").should.be.true
layer.style["background-image"].should.equal("linear-gradient(0deg, rgb(0, 0, 255), rgb(255, 255, 0))")
describe "Filter Properties", ->
it "should set nothing on defaults", ->
layer = new Layer
layer.style.webkitFilter.should.equal ""
it "should set only the filter that is non default", ->
layer = new Layer
layer.blur = 10
layer.blur.should.equal 10
layer.style.webkitFilter.should.equal "blur(10px)"
layer.contrast = 50
layer.contrast.should.equal 50
layer.style.webkitFilter.should.equal "blur(10px) contrast(50%)"
describe "Backdrop properties", ->
it "should set backgroundBlur", ->
l = new Layer
backgroundBlur: 50
l.style.webkitBackdropFilter.should.equal "blur(50px)"
it "should take dpr into account when setting blur", ->
device = new DeviceComponent()
device.deviceType = "apple-iphone-7-black"
device.context.run ->
l = new Layer
blur: 20
backgroundBlur: 30
l.context.devicePixelRatio.should.equal 2
l.style.webkitFilter.should.equal "blur(40px)"
l.style.webkitBackdropFilter.should.equal "blur(60px)"
it "should set backgroundBrightness", ->
l = new Layer
backgroundBrightness: 50
l.style.webkitBackdropFilter.should.equal "brightness(50%)"
it "should set backgroundSaturate", ->
l = new Layer
backgroundSaturate: 50
l.style.webkitBackdropFilter.should.equal "saturate(50%)"
it "should set backgroundHueRotate", ->
l = new Layer
backgroundHueRotate: 50
l.style.webkitBackdropFilter.should.equal "hue-rotate(50deg)"
it "should set backgroundContrast", ->
l = new Layer
backgroundContrast: 50
l.style.webkitBackdropFilter.should.equal "contrast(50%)"
it "should set backgroundInvert", ->
l = new Layer
backgroundInvert: 50
l.style.webkitBackdropFilter.should.equal "invert(50%)"
it "should set backgroundGrayscale", ->
l = new Layer
backgroundGrayscale: 50
l.style.webkitBackdropFilter.should.equal "grayscale(50%)"
it "should set backgroundSepia", ->
l = new Layer
backgroundSepia: 50
l.style.webkitBackdropFilter.should.equal "sepia(50%)"
it "should support multiple filters", ->
l = new Layer
backgroundBlur: 50
backgroundHueRotate: 20
backgroundSepia: 10
l.style.webkitBackdropFilter.should.equal "blur(50px) hue-rotate(20deg) sepia(10%)"
describe "Blending", ->
it "Should work with every blending mode", ->
l = new Layer
for key, value of Blending
l.blending = value
l.style.mixBlendMode.should.equal value
describe "Shadow Properties", ->
it "should set nothing on defaults", ->
layer = new Layer
layer.style.boxShadow.should.equal ""
it "should set the shadow", ->
layer = new Layer
layer.shadowX = 10
layer.shadowY = 10
layer.shadowBlur = 10
layer.shadowSpread = 10
layer.shadowX.should.equal 10
layer.shadowY.should.equal 10
layer.shadowBlur.should.equal 10
layer.shadowSpread.should.equal 10
layer.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 10px 10px 10px"
# Only after we set a color a shadow should be drawn
layer.shadowColor = "red"
layer.shadowColor.r.should.equal 255
layer.shadowColor.g.should.equal 0
layer.shadowColor.b.should.equal 0
layer.shadowColor.a.should.equal 1
layer.style.boxShadow.should.equal "rgb(255, 0, 0) 10px 10px 10px 10px"
# Only after we set a color a shadow should be drawn
layer.shadowColor = null
layer.style.boxShadow.should.equal "rgba(0, 0, 0, 0) 10px 10px 10px 10px"
it "should add multiple shadows by passing an array into the shadows property", ->
l = new Layer
shadows: [{blur: 10, color: "red"}, {x: 1, color: "blue"}, {y: 10, color: "green", type: "inset"}]
l.style.boxShadow.should.equal "rgb(255, 0, 0) 0px 0px 10px 0px, rgb(0, 0, 255) 1px 0px 0px 0px, rgb(0, 128, 0) 0px 10px 0px 0px inset"
it "should be able to access shadow properties through properties", ->
l = new Layer
l.shadow1 = x: 10
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px"
it "should change the shadow when a shadow property is changed", ->
l = new Layer
l.shadow2 = x: 10
l.shadow2.x = 5
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 5px 0px 0px 0px"
it "should change the shadow when another shadow property is changed", ->
l = new Layer
l.shadow2 = x: 10
l.shadow2.y = 5
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 5px 0px 0px"
it "should get the same shadow that is set", ->
l = new Layer
l.shadow1 = x: 10
l.shadow1.x.should.equal 10
it "should let the shadow be set in the constructor", ->
l = new Layer
shadow1:
x: 10
color: "red"
l.shadow1.x.should.equal 10
l.shadow1.color.toString().should.equal "rgb(255, 0, 0)"
it "should convert color strings to color objects when set via shadows", ->
l = new Layer
shadows: [{blur: 10, color: "red"}]
l.style.boxShadow.should.equal "rgb(255, 0, 0) 0px 0px 10px 0px"
it "should change the first shadow when a shadow property is changed", ->
l = new Layer
l.shadow1.x = 10
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px"
it "should ignore the first shadow when the second shadow property is changed", ->
l = new Layer
l.shadow2.y = 10
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 0px 10px 0px 0px"
it "should animate shadows through a shadow property", (done) ->
l = new Layer
a = l.animate
shadow1:
blur: 100
Utils.delay a.time / 2, ->
l.shadow1.color.a.should.be.above 0
l.shadow1.color.a.should.be.below 0.5
l.shadow1.blur.should.be.above 10
l.shadow1.blur.should.be.below 90
l.onAnimationEnd ->
l.shadow1.blur.should.equal 100
done()
it "should animate shadow colors", (done) ->
l = new Layer
shadow1:
color: "red"
l.animate
shadow1:
color: "blue"
l.onAnimationEnd ->
l.shadow1.color.toString().should.equal "rgb(0, 0, 255)"
done()
it "should remove a shadow when a shadow property is set to null", ->
l = new Layer
l.shadow1 = x: 10
l.shadow2 = y: 10
l.shadow3 = blur: 10
l.shadow2 = null
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px, rgba(123, 123, 123, 0.498039) 0px 0px 10px 0px"
it "should should change all shadows when shadowColor, shadowX, shadowY are changed", ->
l = new Layer
shadows: [{blur: 10, color: "red"}, {x: 1, color: "blue"}, {y: 10, color: "green", type: "inset"}]
l.shadowColor = "yellow"
l.shadowX = 10
l.shadowY = 20
l.shadowBlur = 30
l.shadowSpread = 40
l.style.boxShadow.should.equal "rgb(255, 255, 0) 10px 20px 30px 40px, rgb(255, 255, 0) 10px 20px 30px 40px, rgb(255, 255, 0) 10px 20px 30px 40px inset"
it "should create a shadow if a shadowColor is set when there aren't any shadows", ->
l = new Layer
l.shadows = []
l.shadowColor = "yellow"
l.shadows.length.should.equal 1
l.shadows[0].color.should.equalColor "yellow"
it "should copy shadows if you copy a layer", ->
l = new Layer
shadows: [{blur: 10, color: "red"}, {x: 1, color: "blue"}, {y: 10, color: "green", type: "inset"}]
l2 = l.copy()
l2.style.boxShadow.should.equal "rgb(255, 0, 0) 0px 0px 10px 0px, rgb(0, 0, 255) 1px 0px 0px 0px, rgb(0, 128, 0) 0px 10px 0px 0px inset"
l2.shadows.should.eql l.shadows
l2.shadows.should.not.equal l.shadows
it "should not change shadows after copying a layer", ->
l = new Layer
shadows: [{blur: 10, color: "red"}, {x: 1, color: "blue"}, {y: 10, color: "green", type: "inset"}]
l2 = l.copy()
l.shadow1.x = 100
l2.shadow1.should.not.equal l.shadow1
l2.shadow1.x.should.not.equal 100
it "should be able to handle more then 10 shadows", ->
shadows = []
result = []
for i in [1...16]
shadows.push {x: i}
result.push "rgba(123, 123, 123, 0.498039) #{i}px 0px 0px 0px"
l = new Layer
shadows: shadows
l.style.boxShadow.should.equal result.join(", ")
l.shadows.length.should.equal 15
l.shadows[14].y = 10
l.updateShadowStyle()
result[14] = "rgba(123, 123, 123, 0.498039) 15px 10px 0px 0px"
l.style.boxShadow.should.equal result.join(", ")
it "should handle multiple shadow types", ->
l = new Layer
shadows: [{type: "box", x: 10}, {type: "text", x: 5}, {type: "inset", y: 3}, {type: "drop", y: 15}]
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px, rgba(123, 123, 123, 0.498039) 0px 3px 0px 0px inset"
l.style.textShadow.should.equal "rgba(123, 123, 123, 0.498039) 5px 0px 0px"
l.style.webkitFilter.should.equal "drop-shadow(rgba(123, 123, 123, 0.498039) 0px 15px 0px)"
it "should use outer as an alias for box shadow", ->
l = new Layer
l.shadow1 =
type: "outer"
x: 10
l.shadow1.type.should.equal "outer"
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px"
it "should use outer as an alias for drop shadow when image is set", ->
l = new Layer
image: "static/test2.png"
l.shadow1 =
type: "outer"
x: 10
l.shadow1.type.should.equal "outer"
l.style.webkitFilter.should.equal "drop-shadow(rgba(123, 123, 123, 0.498039) 10px 0px 0px)"
it "should use inner as an alias for inset shadow", ->
l = new Layer
l.shadow1 =
type: "inner"
x: 10
l.shadow1.type.should.equal "inner"
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px inset"
it "should use inner as an alias for inset shadow in the constructor", ->
l = new Layer
shadowType: "inner"
shadowColor: "red"
shadowY: 10
shadowBlur: 10
l.shadow1.type.should.equal "inner"
l.style.boxShadow.should.equal "rgb(255, 0, 0) 0px 10px 10px 0px inset"
it "should change the shadowType of all shadows using shadowType", ->
l = new Layer
shadows: [
blur: 10
type: "inset"
color: "red"
]
l.shadowType = "box"
l.shadow1.type.should.equal "box"
l.style.boxShadow.should.equal "rgb(255, 0, 0) 0px 0px 10px 0px"
it "should reflect the current value throught the shadow<prop> properties", ->
layer = new Layer
shadow1:
x: 5
y: 20
color: "blue"
blur: 10
shadow2:
x: 10
y: 20
color: "red"
layer.shadowX.should.equal 5
layer.shadowY.should.equal 20
layer.shadowColor.should.equalColor "blue"
layer.shadowBlur.should.equal 10
layer.shadowType.should.equal "box"
layer.shadowX = 2
layer.shadowX.should.equal 2
it "should return null for the shadow<prop> properties initially", ->
layer = new Layer
expect(layer.shadowX).to.equal null
expect(layer.shadowY).to.equal null
expect(layer.shadowColor).to.equal null
expect(layer.shadowBlur).to.equal null
expect(layer.shadowType).to.equal null
describe "Events", ->
it "should remove all events", ->
layerA = new Layer
handler = -> console.log "hello"
layerA.on("test", handler)
layerA.removeAllListeners("test")
layerA.listeners("test").length.should.equal 0
it "should add and clean up dom events", ->
layerA = new Layer
handler = -> console.log "hello"
layerA.on(Events.Click, handler)
layerA.on(Events.Click, handler)
layerA.on(Events.Click, handler)
layerA.on(Events.Click, handler)
# But never more then one
layerA._domEventManager.listeners(Events.Click).length.should.equal(1)
layerA.removeAllListeners(Events.Click)
# And on removal, we should get rid of the dom event
layerA._domEventManager.listeners(Events.Click).length.should.equal(0)
it "should work with event helpers", (done) ->
layer = new Layer
layer.onMouseOver (event, aLayer) ->
aLayer.should.equal(layer)
@should.equal(layer)
done()
simulate.mouseover(layer._element)
it "should only pass dom events to the event manager", ->
layer = new Layer
layer.on Events.Click, ->
layer.on Events.Move, ->
layer._domEventManager.listenerEvents().should.eql([Events.Click])
describe "Hierarchy", ->
it "should insert in dom", ->
layer = new Layer
assert.equal layer._element.parentNode.id, "FramerContextRoot-Default"
assert.equal layer.superLayer, null
it "should check superLayer", ->
f = -> layer = new Layer superLayer: 1
f.should.throw()
it "should add child", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
assert.equal layerB._element.parentNode, layerA._element
assert.equal layerB.superLayer, layerA
it "should remove child", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerB.superLayer = null
assert.equal layerB._element.parentNode.id, "FramerContextRoot-Default"
assert.equal layerB.superLayer, null
it "should list children", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerA
assert.deepEqual layerA.children, [layerB, layerC]
layerB.superLayer = null
assert.equal layerA.children.length, 1
assert.deepEqual layerA.children, [layerC]
layerC.superLayer = null
assert.deepEqual layerA.children, []
it "should ignore a hidden SVGLayer", ->
layerA = new Layer
layerB = new Layer
parent: layerA
svgLayer = new SVGLayer
parent: layerA
name: ".SVGLayer"
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="62" height="62"><path d="M 31 0 C 48.121 0 62 13.879 62 31 C 62 48.121 48.121 62 31 62 C 13.879 62 0 48.121 0 31 C 0 13.879 13.879 0 31 0 Z" name="Oval"></path></svg>'
svgLayer2 = new SVGLayer
parent: layerA
name: ".SVGLayer",
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="62" height="62"><path d="M 31 0 L 40.111 18.46 L 60.483 21.42 L 45.741 35.79 L 49.221 56.08 L 31 46.5 L 12.779 56.08 L 16.259 35.79 L 1.517 21.42 L 21.889 18.46 Z" name="Star"></path></svg>'
layerA.children.length.should.equal 3
layerA.children.should.eql [layerB, svgLayer.children[0], svgLayer2.children[0]]
it "should list sibling root layers", ->
layerA = new Layer
layerB = new Layer
layerC = new Layer
assert layerB in layerA.siblingLayers, true
assert layerC in layerA.siblingLayers, true
it "should list sibling layers", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerA
assert.deepEqual layerB.siblingLayers, [layerC]
assert.deepEqual layerC.siblingLayers, [layerB]
it "should list ancestors", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerB
assert.deepEqual layerC.ancestors(), [layerB, layerA]
it "should list descendants deeply", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerB
layerA.descendants.should.eql [layerB, layerC]
it "should list descendants", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerA
layerA.descendants.should.eql [layerB, layerC]
it "should set super/parent with property", ->
layerA = new Layer
layerB = new Layer
layerB.superLayer = layerA
layerA.children.should.eql [layerB]
layerA.subLayers.should.eql [layerB]
it "should set super/parent with with constructor", ->
layerA = new Layer
layerB = new Layer
superLayer: layerA
layerA.children.should.eql [layerB]
layerA.subLayers.should.eql [layerB]
describe "Layering", ->
it "should set at creation", ->
layer = new Layer index: 666
layer.index.should.equal 666
it "should change index", ->
layer = new Layer
layer.index = 666
layer.index.should.equal 666
it "should be in front for root", ->
layerA = new Layer
layerB = new Layer
assert.equal layerB.index, layerA.index + 1
it "should be in front", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerA
assert.equal layerB.index, 0
assert.equal layerC.index, 1
it "should send back and front", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerA
layerC.sendToBack()
assert.equal layerB.index, 0
assert.equal layerC.index, -1
layerC.bringToFront()
assert.equal layerB.index, 0
assert.equal layerC.index, 1
it "should take the layer index below the mininum layer index", ->
layerA = new Layer
layerB = new Layer
parent: layerA
index: 10
layerC = new Layer
parent: layerA
index: 11
layerC.sendToBack()
assert.equal layerB.index, 10
assert.equal layerC.index, 9
it "should handle negative values correctly when sending to back", ->
layerA = new Layer
layerB = new Layer
parent: layerA
index: -3
layerC = new Layer
parent: layerA
index: -2
layerC.sendToBack()
assert.equal layerB.index, -3
assert.equal layerC.index, -4
it "should leave the index alone if it is the only layer", ->
layerA = new Layer
layerB = new Layer
parent: layerA
index: 10
layerB.sendToBack()
layerB.bringToFront()
assert.equal layerB.index, 10
it "should place in front", ->
layerA = new Layer
layerB = new Layer superLayer: layerA # 0
layerC = new Layer superLayer: layerA # 1
layerD = new Layer superLayer: layerA # 2
layerB.placeBefore layerC
assert.equal layerB.index, 1
assert.equal layerC.index, 0
assert.equal layerD.index, 2
it "should place behind", ->
layerA = new Layer
layerB = new Layer superLayer: layerA # 0
layerC = new Layer superLayer: layerA # 1
layerD = new Layer superLayer: layerA # 2
layerC.placeBehind layerB
# TODO: Still something fishy here, but it works
assert.equal layerB.index, 1
assert.equal layerC.index, 0
assert.equal layerD.index, 3
it "should get a children by name", ->
layerA = new Layer
layerB = new Layer name: "B", superLayer: layerA
layerC = new Layer name: "C", superLayer: layerA
layerD = new Layer name: "C", superLayer: layerA
layerA.childrenWithName("B").should.eql [layerB]
layerA.childrenWithName("C").should.eql [layerC, layerD]
it "should get a siblinglayer by name", ->
layerA = new Layer
layerB = new Layer name: "B", superLayer: layerA
layerC = new Layer name: "C", superLayer: layerA
layerD = new Layer name: "C", superLayer: layerA
layerB.siblingLayersByName("C").should.eql [layerC, layerD]
layerD.siblingLayersByName("B").should.eql [layerB]
it "should get a ancestors", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerB
layerC.ancestors().should.eql [layerB, layerA]
describe "Select Layer", ->
beforeEach ->
Framer.CurrentContext.reset()
it "should select the layer named B", ->
layerA = new Layer name: 'A'
layerB = new Layer name: 'B', parent: layerA
layerA.selectChild('B').should.equal layerB
it "should select the layer named C", ->
layerA = new Layer name: 'A'
layerB = new Layer name: 'B', parent: layerA
layerC = new Layer name: 'C', parent: layerB
layerA.selectChild('B > *').should.equal layerC
it "should have a static method `select`", ->
layerA = new Layer name: 'A'
layerB = new Layer name: 'B', parent: layerA
layerC = new Layer name: 'C', parent: layerB
Layer.select('B > *').should.equal layerC
it "should have a method `selectAllChildren`", ->
layerA = new Layer name: 'A'
layerB = new Layer name: 'B', parent: layerA
layerC = new Layer name: 'C', parent: layerB
layerD = new Layer name: 'D', parent: layerB
layerA.selectAllChildren('B > *').should.eql [layerC, layerD]
it "should have a static method `selectAll`", ->
layerA = new Layer name: 'A'
layerB = new Layer name: 'B', parent: layerA # asdas
layerC = new Layer name: 'C', parent: layerB
layerD = new Layer name: 'D', parent: layerB
Layer.selectAll('A *').should.eql [layerB, layerC, layerD]
describe "Frame", ->
it "should set on create", ->
layer = new Layer frame: {x: 111, y: 222, width: 333, height: 444}
assert.equal layer.x, 111
assert.equal layer.y, 222
assert.equal layer.width, 333
assert.equal layer.height, 444
it "should set after create", ->
layer = new Layer
layer.frame = {x: 111, y: 222, width: 333, height: 444}
assert.equal layer.x, 111
assert.equal layer.y, 222
assert.equal layer.width, 333
assert.equal layer.height, 444
it "should set minX on creation", ->
layer = new Layer minX: 200, y: 100, width: 100, height: 100
layer.x.should.equal 200
it "should set midX on creation", ->
layer = new Layer midX: 200, y: 100, width: 100, height: 100
layer.x.should.equal 150
it "should set maxX on creation", ->
layer = new Layer maxX: 200, y: 100, width: 100, height: 100
layer.x.should.equal 100
it "should set minY on creation", ->
layer = new Layer x: 100, minY: 200, width: 100, height: 100
layer.y.should.equal 200
it "should set midY on creation", ->
layer = new Layer x: 100, midY: 200, width: 100, height: 100
layer.y.should.equal 150
it "should set maxY on creation", ->
layer = new Layer x: 100, maxY: 200, width: 100, height: 100
layer.y.should.equal 100
it "should set minX", ->
layer = new Layer y: 100, width: 100, height: 100
layer.minX = 200
layer.x.should.equal 200
it "should set midX", ->
layer = new Layer y: 100, width: 100, height: 100
layer.midX = 200
layer.x.should.equal 150
it "should set maxX", ->
layer = new Layer y: 100, width: 100, height: 100
layer.maxX = 200
layer.x.should.equal 100
it "should set minY", ->
layer = new Layer x: 100, width: 100, height: 100
layer.minY = 200
layer.y.should.equal 200
it "should set midY", ->
layer = new Layer x: 100, width: 100, height: 100
layer.midY = 200
layer.y.should.equal 150
it "should set maxY", ->
layer = new Layer x: 100, width: 100, height: 100
layer.maxY = 200
layer.y.should.equal 100
it "should get and set canvasFrame", ->
layerA = new Layer x: 100, y: 100, width: 100, height: 100
layerB = new Layer x: 300, y: 300, width: 100, height: 100, superLayer: layerA
assert.equal layerB.canvasFrame.x, 400
assert.equal layerB.canvasFrame.y, 400
layerB.canvasFrame = {x: 1000, y: 1000}
assert.equal layerB.canvasFrame.x, 1000
assert.equal layerB.canvasFrame.y, 1000
assert.equal layerB.x, 900
assert.equal layerB.y, 900
layerB.superLayer = null
assert.equal layerB.canvasFrame.x, 900
assert.equal layerB.canvasFrame.y, 900
it "should calculate scale", ->
layerA = new Layer scale: 0.9
layerB = new Layer scale: 0.8, superLayer: layerA
layerB.screenScaleX().should.equal 0.9 * 0.8
layerB.screenScaleY().should.equal 0.9 * 0.8
it "should calculate scaled frame", ->
layerA = new Layer x: 100, width: 500, height: 900, scale: 0.5
layerA.scaledFrame().should.eql {"x": 225, "y": 225, "width": 250, "height": 450}
it "should calculate scaled screen frame", ->
layerA = new Layer x: 100, width: 500, height: 900, scale: 0.5
layerB = new Layer y: 50, width: 600, height: 600, scale: 0.8, superLayer: layerA
layerC = new Layer y: -60, width: 800, height: 700, scale: 1.2, superLayer: layerB
layerA.screenScaledFrame().should.eql {"x": 225, "y": 225, "width": 250, "height": 450}
layerB.screenScaledFrame().should.eql {"x": 255, "y": 280, "width": 240, "height": 240}
layerC.screenScaledFrame().should.eql {"x": 223, "y": 228, "width": 384, "height": 336}
it "should accept point shortcut", ->
layer = new Layer point: 10
layer.x.should.equal 10
layer.y.should.equal 10
it "should accept size shortcut", ->
layer = new Layer size: 10
layer.width.should.equal 10
layer.height.should.equal 10
describe "Center", ->
it "should center", ->
layerA = new Layer width: 200, height: 200
layerB = new Layer width: 100, height: 100, superLayer: layerA
layerB.center()
assert.equal layerB.x, 50
assert.equal layerB.y, 50
it "should center with offset", ->
layerA = new Layer width: 200, height: 200
layerB = new Layer width: 100, height: 100, superLayer: layerA
layerB.centerX(50)
layerB.centerY(50)
assert.equal layerB.x, 100
assert.equal layerB.y, 100
it "should center return layer", ->
layerA = new Layer width: 200, height: 200
layerA.center().should.equal layerA
layerA.centerX().should.equal layerA
layerA.centerY().should.equal layerA
it "should center pixel align", ->
layerA = new Layer width: 200, height: 200
layerB = new Layer width: 111, height: 111, superLayer: layerA
layerB.center().pixelAlign()
assert.equal layerB.x, 44
assert.equal layerB.y, 44
it "should center with border", ->
layer = new Layer
width: 200
height: 200
layer.borderColor = "green"
layer.borderWidth = 30
layer.center()
layerB = new Layer
superLayer: layer
backgroundColor: "red"
layerB.center()
layerB.frame.should.eql {x: 20, y: 20, width: 100, height: 100}
it "should center within outer frame", ->
layerA = new Layer width: 10, height: 10
layerA.center()
assert.equal layerA.x, 195
assert.equal layerA.y, 145
it "should center correctly with dpr set", ->
device = new DeviceComponent()
device.deviceType = "apple-iphone-7-black"
device.context.run ->
layerA = new Layer size: 100
layerA.center()
layerA.context.devicePixelRatio.should.equal 2
layerA.x.should.equal 137
layerA.y.should.equal 283
describe "midPoint", ->
it "should accept a midX/midY value", ->
l = new Layer
midPoint:
midX: 123
midY: 459
l.midX.should.equal 123
l.midY.should.equal 459
it "should accept a x/y value", ->
l = new Layer
midPoint:
x: 123
y: 459
l.midX.should.equal 123
l.midY.should.equal 459
it "should accept a single number", ->
l = new Layer
midPoint: 234
l.midX.should.equal 234
l.midY.should.equal 234
it "should pick midX/midY over x/y", ->
l = new Layer
midPoint:
midX: 123
midY: 459
x: 653
y: 97
l.midX.should.equal 123
l.midY.should.equal 459
it "should not change the object passed in", ->
l =
x: 100
y: 200
m = new Layer
midPoint: l
m.midX.should.equal l.x
m.midY.should.equal l.y
l.x.should.equal 100
l.y.should.equal 200
describe "CSS", ->
it "classList should work", ->
layer = new Layer
layer.classList.add "test"
assert.equal layer.classList.contains("test"), true
assert.equal layer._element.classList.contains("test"), true
describe "DOM", ->
it "should destroy", ->
before = Object.keys(Framer.CurrentContext.domEventManager._elements).length
layer = new Layer
layer.destroy()
(layer in Framer.CurrentContext.layers).should.be.false
assert.equal layer._element.parentNode, null
assert.equal before, Object.keys(Framer.CurrentContext.domEventManager._elements).length
it "should set text", ->
layer = new Layer
layer.html = "Hello"
layer._element.childNodes[0].should.equal layer._elementHTML
layer._elementHTML.innerHTML.should.equal "Hello"
layer.ignoreEvents.should.equal true
it "should not effect children", ->
layer = new Layer
layer.html = "Hello"
Child = new Layer superLayer: layer
Child._element.offsetTop.should.equal 0
it "should set interactive html and allow pointer events", ->
tags = ["input", "select", "textarea", "option"]
html = ""
for tag in tags
html += "<#{tag}></#{tag}>"
layer = new Layer
layer.html = html
for tag in tags
element = layer.querySelectorAll(tag)[0]
style = window.getComputedStyle(element)
style["pointer-events"].should.equal "auto"
# style["-webkit-user-select"].should.equal "auto"
it "should work with querySelectorAll", ->
layer = new Layer
layer.html = "<input type='button' id='hello'>"
inputElements = layer.querySelectorAll("input")
inputElements.length.should.equal 1
inputElement = _.head(inputElements)
inputElement.getAttribute("id").should.equal "hello"
describe "Force 2D", ->
it "should switch to 2d rendering", ->
layer = new Layer
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
layer.force2d = true
layer.style.webkitTransform.should.equal "translate(0px, 0px) scale(1, 1) skew(0deg, 0deg) rotate(0deg)"
describe "Matrices", ->
it "should have the correct matrix", ->
layer = new Layer
scale: 2
rotation: 45
x: 200
y: 120
skew: 21
layer.matrix.toString().should.eql "matrix(1.957079, 1.957079, -0.871348, 0.871348, 200.000000, 120.000000)"
it "should have the correct matrix when 2d is forced", ->
layer = new Layer
scale: 2
rotation: 45
x: 200
y: 120
skew: 21
force2d: true
layer.matrix.toString().should.eql "matrix(2.165466, 1.957079, -1.079734, 0.871348, 200.000000, 120.000000)"
it "should have the correct transform matrix", ->
layer = new Layer
scale: 20
rotation: 5
rotationY: 20
x: 200
y: 120
skew: 21
layer.transformMatrix.toString().should.eql "matrix3d(19.391455, 8.929946, -0.340719, 0.000000, 6.010074, 19.295128, 0.029809, 0.000000, 6.840403, 2.625785, 0.939693, 0.000000, -1020.076470, -1241.253701, 15.545482, 1.000000)"
it "should have the correct screen point", ->
layer = new Layer
rotation: 5
x: 200
y: 120
skew: 21
roundX = Math.round(layer.convertPointToScreen().x)
roundX.should.eql 184
it "should have the correct screen frame", ->
layer = new Layer
rotation: 5
x: 200
y: 120
skew: 21
boundingBox = layer.screenFrame
boundingBox.x.should.eql 184
boundingBox.y.should.eql 98
boundingBox.width.should.eql 132
boundingBox.height.should.eql 144
it "should use Framer.Defaults when setting the screen frame", ->
Framer.Defaults.Layer.width = 300
Framer.Defaults.Layer.height = 400
box = new Layer
screenFrame:
x: 123
box.stateCycle()
box.x.should.equal 123
box.width.should.equal 300
box.height.should.equal 400
Framer.resetDefaults()
it "should have the correct canvas frame", ->
layer = new Layer
rotation: 5
x: 200
y: 120
skew: 21
boundingBox = layer.canvasFrame
boundingBox.x.should.eql 184
boundingBox.y.should.eql 98
boundingBox.width.should.eql 132
boundingBox.height.should.eql 144
describe "Copy", ->
it "copied Layer should hold set props", ->
X = 100
Y = 200
IMAGE = "../static/test.png"
BORDERRADIUS = 20
layer = new Layer
x: X
y: Y
image: IMAGE
layer.borderRadius = BORDERRADIUS
layer.x.should.eql X
layer.y.should.eql Y
layer.image.should.eql IMAGE
layer.borderRadius.should.eql BORDERRADIUS
copy = layer.copy()
copy.x.should.eql X
copy.y.should.eql Y
copy.image.should.eql IMAGE
copy.borderRadius.should.eql BORDERRADIUS
it "copied Layer should have defaults", ->
layer = new Layer
copy = layer.copy()
copy.width.should.equal 100
copy.height.should.equal 100
it "copied Layer should also copy styles", ->
layer = new Layer
style:
"font-family": "-apple-system"
"font-size": "1.2em"
"text-align": "right"
copy = layer.copy()
copy.style["font-family"].should.equal "-apple-system"
copy.style["font-size"].should.equal "1.2em"
copy.style["text-align"].should.equal "right"
describe "Point conversion", ->
it "should correctly convert points from layer to Screen", ->
point =
x: 200
y: 300
layer = new Layer point: point
screenPoint = layer.convertPointToScreen()
screenPoint.x.should.equal point.x
screenPoint.y.should.equal point.y
it "should correctly convert points from Screen to layer", ->
point =
x: 300
y: 200
layer = new Layer point: point
layerPoint = Screen.convertPointToLayer({}, layer)
layerPoint.x.should.equal -point.x
layerPoint.y.should.equal -point.y
it "should correctly convert points from layer to layer", ->
layerBOffset =
x: 200
y: 400
layerA = new Layer
layerB = new Layer point: layerBOffset
layerAToLayerBPoint = layerA.convertPointToLayer({}, layerB)
layerAToLayerBPoint.x.should.equal -layerBOffset.x
layerAToLayerBPoint.y.should.equal -layerBOffset.y
it "should correctly convert points when layers are nested", ->
layerBOffset =
x: 0
y: 200
layerA = new Layer
layerB = new Layer
parent: layerA
point: layerBOffset
rotation: 90
originX: 0
originY: 0
layerAToLayerBPoint = layerA.convertPointToLayer({}, layerB)
layerAToLayerBPoint.x.should.equal -layerBOffset.y
it "should correctly convert points between multiple layers and transforms", ->
layerA = new Layer
x: 275
layerB = new Layer
y: 400
x: 400
scale: 2
parent: layerA
layerC = new Layer
x: -200
y: 100
rotation: 180
originX: 0
originY: 0
parent: layerB
screenToLayerCPoint = Screen.convertPointToLayer(null, layerC)
screenToLayerCPoint.x.should.equal 112.5
screenToLayerCPoint.y.should.equal 275
it "should correctly convert points from the Canvas to a layer", ->
layerA = new Layer
scale: 2
layerB = new Layer
parent: layerA
originY: 1
rotation: 90
canvasToLayerBPoint = Canvas.convertPointToLayer({}, layerB)
canvasToLayerBPoint.x.should.equal -25
canvasToLayerBPoint.y.should.equal 125
describe "Device Pixel Ratio", ->
it "should default to 1", ->
a = new Layer
a.context.devicePixelRatio.should.equal 1
it "should change all of a layers children", ->
context = new Framer.Context(name: "Test")
context.run ->
a = new Layer
b = new Layer
parent: a
c = new Layer
parent: b
a.context.devicePixelRatio = 3
for l in [a, b, c]
l._element.style.width.should.equal "300px"
describe "containers", ->
it "should return empty when called on rootLayer", ->
a = new Layer name: "a"
a.containers().should.deep.equal []
it "should return all ancestors", ->
a = new Layer name: "a"
b = new Layer parent: a, name: "b"
c = new Layer parent: b, name: "c"
d = new Layer parent: c, name: "d"
names = d.containers().map (l) -> l.name
names.should.deep.equal ["c", "b", "a"]
it "should include the device return all ancestors", ->
device = new DeviceComponent()
device.context.run ->
a = new Layer name: "a"
b = new Layer parent: a, name: "b"
c = new Layer parent: b, name: "c"
d = new Layer parent: c, name: "d"
containers = d.containers(true)
containers.length.should.equal 9
names = containers.map((l) -> l.name)
names.should.eql ["c", "b", "a", undefined, "viewport", "screen", "phone", "hands", undefined]
describe "constraintValues", ->
it "layout should not break constraints", ->
l = new Layer
x: 100
constraintValues:
aspectRatioLocked: true
l.x.should.equal 100
l.layout()
l.x.should.equal 0
assert.notEqual l.constraintValues, null
it "should break all constraints when setting x", ->
l = new Layer
x: 100
constraintValues:
aspectRatioLocked: true
l.x.should.equal 100
assert.notEqual l.constraintValues, null
l.x = 50
assert.equal l.constraintValues, null
it "should break all constraints when setting y", ->
l = new Layer
y: 100
constraintValues:
aspectRatioLocked: true
l.y.should.equal 100
assert.notEqual l.constraintValues, null
l.y = 50
assert.equal l.constraintValues, null
it "should update the width constraint when setting width", ->
l = new Layer
width: 100
constraintValues:
aspectRatioLocked: true
l.width.should.equal 100
assert.notEqual l.constraintValues, null
l.width = 50
l.constraintValues.width.should.equal 50
it "should update the height constraint when setting height", ->
l = new Layer
height: 100
constraintValues:
aspectRatioLocked: true
l.height.should.equal 100
assert.notEqual l.constraintValues, null
l.height = 50
l.constraintValues.height.should.equal 50
it "should disable the aspectRatioLock and widthFactor constraint when setting width", ->
l = new Layer
constraintValues:
aspectRatioLocked: true
widthFactor: 0.5
width: null
l.layout()
l.width.should.equal 200
assert.notEqual l.constraintValues, null
l.width = 50
l.constraintValues.aspectRatioLocked.should.equal false
assert.equal l.constraintValues.widthFactor, null
it "should disable the aspectRatioLock and heightFactor constraint when setting height", ->
l = new Layer
constraintValues:
aspectRatioLocked: true
heightFactor: 0.5
height: null
l.layout()
l.height.should.equal 150
assert.notEqual l.constraintValues, null
l.height = 50
assert.equal l.constraintValues.heightFactor, null
it "should update the x position when changing width", ->
l = new Layer
width: 100
constraintValues:
left: null
right: 20
l.layout()
l.width.should.equal 100
l.x.should.equal 280
assert.notEqual l.constraintValues, null
l.width = 50
l.x.should.equal 330
it "should update the y position when changing height", ->
l = new Layer
height: 100
constraintValues:
top: null
bottom: 20
l.layout()
l.height.should.equal 100
l.y.should.equal 180
assert.notEqual l.constraintValues, null
l.height = 50
l.y.should.equal 230
it "should update to center the layer when center() is called", ->
l = new Layer
constraintValues:
aspectRatioLocked: true
l.layout()
l.center()
l.x.should.equal 150
l.y.should.equal 100
assert.equal l.constraintValues.left, null
assert.equal l.constraintValues.right, null
assert.equal l.constraintValues.top, null
assert.equal l.constraintValues.bottom, null
assert.equal l.constraintValues.centerAnchorX, 0.5
assert.equal l.constraintValues.centerAnchorY, 0.5
it "should update to center the layer vertically when centerX() is called", ->
l = new Layer
constraintValues:
aspectRatioLocked: true
l.layout()
l.x.should.equal 0
l.centerX()
l.x.should.equal 150
assert.equal l.constraintValues.left, null
assert.equal l.constraintValues.right, null
assert.equal l.constraintValues.centerAnchorX, 0.5
it "should update to center the layer horizontally when centerY() is called", ->
l = new Layer
constraintValues:
aspectRatioLocked: true
l.layout()
l.y.should.equal 0
l.centerY()
l.y.should.equal 100
assert.equal l.constraintValues.top, null
assert.equal l.constraintValues.bottom, null
assert.equal l.constraintValues.centerAnchorY, 0.5
describe "when no constraints are set", ->
it "should not set the width constraint when setting the width", ->
l = new Layer
width: 100
l.width.should.equal 100
assert.equal l.constraintValues, null
l.width = 50
assert.equal l.constraintValues, null
it "should not set the height constraint when setting the height", ->
l = new Layer
height: 100
l.height.should.equal 100
assert.equal l.constraintValues, null
l.height = 50
assert.equal l.constraintValues, null
| true | assert = require "assert"
{expect} = require "chai"
simulate = require "simulate"
describe "Layer", ->
# afterEach ->
# Utils.clearAll()
# beforeEach ->
# Framer.Utils.reset()
describe "Defaults", ->
it "should reset nested defaults", ->
Framer.Defaults.DeviceComponent.animationOptions.curve = "spring"
Framer.resetDefaults()
Framer.Defaults.DeviceComponent.animationOptions.curve.should.equal "ease-in-out"
it "should reset width and height to their previous values", ->
previousWidth = Framer.Defaults.Layer.width
previousHeight = Framer.Defaults.Layer.height
Framer.Defaults.Layer.width = 123
Framer.Defaults.Layer.height = 123
Framer.resetDefaults()
Framer.Defaults.Layer.width.should.equal previousWidth
Framer.Defaults.Layer.height.should.equal previousHeight
it "should set defaults", ->
width = Utils.randomNumber(0, 400)
height = Utils.randomNumber(0, 400)
Framer.Defaults =
Layer:
width: width
height: height
layer = new Layer()
layer.width.should.equal width
layer.height.should.equal height
Framer.resetDefaults()
layer = new Layer()
layer.width.should.equal 100
layer.height.should.equal 100
it "should set default background color", ->
# if the default background color is not set the content layer of scrollcomponent is not hidden when layers are added
layer = new Layer()
layer.backgroundColor.should.equalColor Framer.Defaults.Layer.backgroundColor
Framer.Defaults =
Layer:
backgroundColor: "red"
layer = new Layer()
layer.style.backgroundColor.should.equal new Color("red").toString()
Framer.resetDefaults()
it "should set defaults with override", ->
layer = new Layer x: 50, y: 60
layer.x.should.equal 50
layer.y.should.equal 60
it "should have default animationOptions", ->
layer = new Layer
layer.animationOptions.should.eql {}
describe "Properties", ->
it "should set defaults", ->
layer = new Layer()
layer.x.should.equal 0
layer.y.should.equal 0
layer.z.should.equal 0
layer.width.should.equal 100
layer.height.should.equal 100
it "should set width", ->
layer = new Layer width: 200
layer.width.should.equal 200
layer.style.width.should.equal "200px"
it "should set x not to scientific notation", ->
n = 0.000000000000002
n.toString().should.equal("2e-15")
layer = new Layer
layer.x = n
layer.y = 100
layer.style.webkitTransform.should.equal "translate3d(0px, 100px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should set x, y and z to really small values", ->
layer = new Layer
layer.x = 10
layer.y = 10
layer.z = 10
layer.x = 1e-5
layer.y = 1e-6
layer.z = 1e-7
layer.x.should.equal 1e-5
layer.y.should.equal 1e-6
layer.z.should.equal 1e-7
# layer.style.webkitTransform.should.equal "matrix(1, 0, 0, 1, 100, 0)"
layer.style.webkitTransform.should.equal "translate3d(0.00001px, 0.000001px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should handle scientific notation in scaleX, Y and Z", ->
layer = new Layer
layer.scaleX = 2
layer.scaleY = 2
layer.scaleZ = 3
layer.scaleX = 1e-7
layer.scaleY = 1e-8
layer.scaleZ = 1e-9
layer.scale = 1e-10
layer.scaleX.should.equal 1e-7
layer.scaleY.should.equal 1e-8
layer.scaleZ.should.equal 1e-9
layer.scale.should.equal 1e-10
# layer.style.webkitTransform.should.equal "matrix(1, 0, 0, 1, 100, 0)"
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(0, 0, 0) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should handle scientific notation in skew", ->
layer = new Layer
layer.skew = 2
layer.skewX = 2
layer.skewY = 3
layer.skew = 1e-5
layer.skewX = 1e-6
layer.skewY = 1e-7
layer.skew.should.equal 1e-5
layer.skewX.should.equal 1e-6
layer.skewY.should.equal 1e-7
# layer.style.webkitTransform.should.equal "matrix(1, 0, 0, 1, 100, 0)"
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(1, 1, 1) skew(0.00001deg, 0.00001deg) skewX(0.000001deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should set x and y", ->
layer = new Layer
layer.x = 100
layer.x.should.equal 100
layer.y = 50
layer.y.should.equal 50
# layer.style.webkitTransform.should.equal "matrix(1, 0, 0, 1, 100, 0)"
layer.style.webkitTransform.should.equal "translate3d(100px, 50px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should handle midX and midY when width and height are 0", ->
box = new Layer
midX: 200
midY: 300
width: 0
height: 0
box.x.should.equal 200
box.y.should.equal 300
it "should set scale", ->
layer = new Layer
layer.scaleX = 100
layer.scaleY = 100
layer.scaleZ = 100
# layer.style.webkitTransform.should.equal "matrix(1, 0, 0, 1, 100, 50)"
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(100, 100, 100) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should set origin", ->
layer = new Layer
originZ: 80
layer.style.webkitTransformOrigin.should.equal "50% 50%"
layer.originX = 0.1
layer.originY = 0.2
layer.style.webkitTransformOrigin.should.equal "10% 20%"
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(80px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(-80px)"
layer.originX = 0.5
layer.originY = 0.5
layer.style.webkitTransformOrigin.should.equal "50% 50%"
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(80px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(-80px)"
it "should preserve 3D by default", ->
layer = new Layer
layer._element.style.webkitTransformStyle.should.equal "preserve-3d"
it "should flatten layer", ->
layer = new Layer
flat: true
layer._element.style.webkitTransformStyle.should.equal "flat"
it "should set local image", ->
prefix = "../"
imagePath = "static/test.png"
fullPath = prefix + imagePath
layer = new Layer
layer.image = fullPath
layer.image.should.equal fullPath
image = layer.props.image
layer.props.image.should.equal fullPath
layer.style["background-image"].indexOf(imagePath).should.not.equal(-1)
layer.style["background-image"].indexOf("file://").should.not.equal(-1)
layer.style["background-image"].indexOf("?nocache=").should.not.equal(-1)
it "should set local image when listening to load events", (done) ->
prefix = "../"
imagePath = "static/test.png"
fullPath = prefix + imagePath
layer = new Layer
layer.on Events.ImageLoaded, ->
layer.style["background-image"].indexOf(imagePath).should.not.equal(-1)
layer.style["background-image"].indexOf("file://").should.not.equal(-1)
layer.style["background-image"].indexOf("?nocache=").should.not.equal(-1)
done()
layer.image = fullPath
layer.image.should.equal fullPath
image = layer.props.image
layer.props.image.should.equal fullPath
layer.style["background-image"].indexOf(imagePath).should.equal(-1)
layer.style["background-image"].indexOf("file://").should.equal(-1)
layer.style["background-image"].indexOf("?nocache=").should.equal(-1)
#layer.computedStyle()["background-size"].should.equal "cover"
#layer.computedStyle()["background-repeat"].should.equal "no-repeat"
it "should not append nocache to a base64 encoded image", ->
fullPath = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMBAMAAAA1uUwYAAAAAXNSR0IArs4c6QAAABVQTFRFKK/6LFj/g9n/lNf9lqz/wez/////Ke+vpgAAAK1JREFUSMft1sENhDAMBdFIrmBboAjuaWFPI:KEY:<KEY>END_PI"
layer = new Layer
layer.image = fullPath
layer.image.should.equal fullPath
image = layer.props.image
image.should.equal fullPath
layer.style["background-image"].indexOf(fullPath).should.not.equal(-1)
layer.style["background-image"].indexOf("data:").should.not.equal(-1)
layer.style["background-image"].indexOf("?nocache=").should.equal(-1)
it "should append nocache with an ampersand if url params already exist", (done) ->
prefix = "../"
imagePath = "static/test.png?param=foo"
fullPath = prefix + imagePath
layer = new Layer
layer.on Events.ImageLoaded, ->
layer.style["background-image"].indexOf(imagePath).should.not.equal(-1)
layer.style["background-image"].indexOf("file://").should.not.equal(-1)
layer.style["background-image"].indexOf("&nocache=").should.not.equal(-1)
done()
layer.image = fullPath
layer.image.should.equal fullPath
it "should cancel loading when setting image to null", (done) ->
prefix = "../"
imagePath = "static/test.png"
fullPath = prefix + imagePath
#First set the image directly to something
layer = new Layer
image: "static/test2.png"
#Now add event handlers
layer.on Events.ImageLoadCancelled, ->
layer.style["background-image"].indexOf(imagePath).should.equal(-1)
layer.style["background-image"].indexOf("file://").should.equal(-1)
layer.style["background-image"].indexOf("?nocache=").should.equal(-1)
done()
#so we preload the next image
layer.image = fullPath
#set the image no null to cancel the loading
layer.image = null
it "should set image", ->
imagePath = "../static/test.png"
layer = new Layer image: imagePath
layer.image.should.equal imagePath
it "should unset image with null", ->
layer = new Layer image: "../static/test.png"
layer.image = null
layer.image.should.equal ""
it "should unset image with empty string", ->
layer = new Layer image: "../static/test.png"
layer.image = ""
layer.image.should.equal ""
it "should test image property type", ->
f = ->
layer = new Layer
layer.image = {}
f.should.throw()
it "should set name on create", ->
layer = new Layer name: "Test"
layer.name.should.equal "Test"
layer._element.getAttribute("name").should.equal "Test"
it "should set name after create", ->
layer = new Layer
layer.name = "Test"
layer.name.should.equal "Test"
layer._element.getAttribute("name").should.equal "Test"
it "should handle false layer names correctly", ->
layer = new Layer
name: 0
layer.name.should.equal "0"
layer._element.getAttribute("name").should.equal "0"
it "should handle background color with image", ->
# We want the background color to be there until an images
# is set UNLESS we set another backgroundColor explicitly
imagePath = "../static/test.png"
layer = new Layer image: imagePath
assert.equal layer.backgroundColor.color, null
layer = new Layer
layer.image = imagePath
assert.equal layer.backgroundColor.color, null
layer = new Layer backgroundColor: "red"
layer.image = imagePath
layer.backgroundColor.should.equalColor "red"
layer = new Layer
layer.backgroundColor = "red"
layer.image = imagePath
layer.backgroundColor.should.equalColor "red"
describe "should set the background size", ->
it "cover", ->
layer = new Layer backgroundSize: "cover"
layer.style["background-size"].should.equal "cover"
it "contain", ->
layer = new Layer backgroundSize: "contain"
layer.style["background-size"].should.equal "contain"
it "percentage", ->
layer = new Layer backgroundSize: "100%"
layer.style["background-size"].should.equal "100%"
it "other", ->
layer = new Layer backgroundSize: "300px, 5em 10%"
layer.style["background-size"].should.equal "300px, 5em 10%"
it "fill", ->
layer = new Layer backgroundSize: "fill"
layer.style["background-size"].should.equal "cover"
it "fit", ->
layer = new Layer backgroundSize: "fit"
layer.style["background-size"].should.equal "contain"
it "stretch", ->
layer = new Layer backgroundSize: "stretch"
# This should be "100% 100%", but phantomjs doest return that when you set it
layer.style["background-size"].should.equal "100%"
it "should set visible", ->
layer = new Layer
layer.visible.should.equal true
layer.style["display"].should.equal "block"
layer.visible = false
layer.visible.should.equal false
layer.style["display"].should.equal "none"
it "should set clip", ->
layer = new Layer
layer.clip.should.equal false
layer.style["overflow"].should.equal "visible"
layer.clip = true
layer.style["overflow"].should.equal "hidden"
it "should set scroll", ->
layer = new Layer
layer.scroll.should.equal false
layer.style["overflow"].should.equal "visible"
layer.scroll = true
layer.scroll.should.equal true
layer.style["overflow"].should.equal "scroll"
layer.ignoreEvents.should.equal false
layer.scroll = false
layer.scroll.should.equal false
layer.style["overflow"].should.equal "visible"
it "should set scroll from properties", ->
layer = new Layer
layer.props = {scroll: false}
layer.scroll.should.equal false
layer.props = {scroll: true}
layer.scroll.should.equal true
it "should set scrollHorizontal", ->
layer = new Layer
layer.scroll.should.equal false
layer.style["overflow"].should.equal "visible"
layer.ignoreEvents.should.equal true
layer.scroll = true
layer.scroll.should.equal true
layer.style["overflow"].should.equal "scroll"
layer.ignoreEvents.should.equal false
it "should disable ignore events when scroll is set from constructor", ->
layerA = new Layer
scroll: true
layerA.ignoreEvents.should.equal false
it "should set style properties on create", ->
layer = new Layer backgroundColor: "red"
layer.backgroundColor.isEqual(new Color("red")).should.equal true
layer.style["backgroundColor"].should.equal new Color("red").toString()
it "should check value type", ->
f = ->
layer = new Layer
layer.x = "hello"
f.should.throw()
it "should set perspective", ->
layer = new Layer
layer.perspective = 500
layer.style["-webkit-perspective"].should.equal("500")
it "should have a default perspective of 0", ->
layer = new Layer
layer._element.style["webkitPerspective"].should.equal "none"
layer.perspective.should.equal 0
it "should allow the perspective to be changed", ->
layer = new Layer
layer.perspective = 800
layer.perspective.should.equal 800
layer._element.style["webkitPerspective"].should.equal "800"
it "should set the perspective to 'none' if set to 0", ->
layer = new Layer
layer.perspective = 0
layer.perspective.should.equal 0
layer._element.style["webkitPerspective"].should.equal "none"
it "should set the perspective to 'none' if set to none", ->
layer = new Layer
layer.perspective = "none"
layer.perspective.should.equal "none"
layer._element.style["webkitPerspective"].should.equal "none"
it "should set the perspective to 'none' if set to null", ->
layer = new Layer
layer.perspective = null
layer.perspective.should.equal 0
layer._element.style["webkitPerspective"].should.equal "none"
it "should not allow setting the perspective to random string", ->
layer = new Layer
(-> layer.perspective = "bla").should.throw("Layer.perspective: value 'bla' of type 'string' is not valid")
layer.perspective.should.equal 0
layer._element.style["webkitPerspective"].should.equal "none"
it "should have its backface visible by default", ->
layer = new Layer
layer.style["webkitBackfaceVisibility"].should.equal "visible"
it "should allow backface to be hidden", ->
layer = new Layer
layer.backfaceVisible = false
layer.style["webkitBackfaceVisibility"].should.equal "hidden"
it "should set rotation", ->
layer = new Layer
rotationX: 200
rotationY: 200
rotationZ: 200
layer.rotationX.should.equal(200)
layer.rotationY.should.equal(200)
layer.rotationZ.should.equal(200)
it "should proxy rotation", ->
layer = new Layer
layer.rotation = 200
layer.rotation.should.equal(200)
layer.rotationZ.should.equal(200)
layer.rotationZ = 100
layer.rotation.should.equal(100)
layer.rotationZ.should.equal(100)
it "should only set name when explicitly set", ->
layer = new Layer
layer.__framerInstanceInfo = {name: "aap"}
layer.name.should.equal ""
it "it should show the variable name in toInspect()", ->
layer = new Layer
layer.__framerInstanceInfo = {name: "aap"}
(_.startsWith layer.toInspect(), "<Layer aap id:").should.be.true
it "should set htmlIntrinsicSize", ->
layer = new Layer
assert.equal layer.htmlIntrinsicSize, null
layer.htmlIntrinsicSize = "aap"
assert.equal layer.htmlIntrinsicSize, null
layer.htmlIntrinsicSize =
width: 10
assert.equal layer.htmlIntrinsicSize, null
layer.htmlIntrinsicSize =
width: 10
height: 20
layer.htmlIntrinsicSize.should.eql({width: 10, height: 20})
layer.htmlIntrinsicSize = null
assert.equal layer.htmlIntrinsicSize, null
describe "Border Radius", ->
it "should set borderRadius", ->
testBorderRadius = (layer, value) ->
if layer.style["border-top-left-radius"] is "#{value}"
layer.style["border-top-left-radius"].should.equal "#{value}"
layer.style["border-top-right-radius"].should.equal "#{value}"
layer.style["border-bottom-left-radius"].should.equal "#{value}"
layer.style["border-bottom-right-radius"].should.equal "#{value}"
else
layer.style["border-top-left-radius"].should.equal "#{value} #{value}"
layer.style["border-top-right-radius"].should.equal "#{value} #{value}"
layer.style["border-bottom-left-radius"].should.equal "#{value} #{value}"
layer.style["border-bottom-right-radius"].should.equal "#{value} #{value}"
layer = new Layer
layer.borderRadius = 10
layer.borderRadius.should.equal 10
testBorderRadius(layer, "10px")
layer.borderRadius = "50%"
layer.borderRadius.should.equal "50%"
testBorderRadius(layer, "50%")
it "should set borderRadius with objects", ->
testBorderRadius = (layer, tl, tr, bl, br) ->
layer.style["border-top-left-radius"].should.equal "#{tl}"
layer.style["border-top-right-radius"].should.equal "#{tr}"
layer.style["border-bottom-left-radius"].should.equal "#{bl}"
layer.style["border-bottom-right-radius"].should.equal "#{br}"
layer = new Layer
# No matching keys is an error
layer.borderRadius = {aap: 10, noot: 20, mies: 30}
layer.borderRadius.should.equal 0
testBorderRadius(layer, "0px", "0px", "0px", "0px")
# Arrays are not supported either
layer.borderRadius = [1, 2, 3, 4]
layer.borderRadius.should.equal 0
testBorderRadius(layer, "0px", "0px", "0px", "0px")
layer.borderRadius = {topLeft: 10}
layer.borderRadius.topLeft.should.equal 10
testBorderRadius(layer, "10px", "0px", "0px", "0px")
layer.borderRadius = {topLeft: 1, topRight: 2, bottomLeft: 3, bottomRight: 4}
layer.borderRadius.topLeft.should.equal 1
layer.borderRadius.bottomRight.should.equal 4
testBorderRadius(layer, "1px", "2px", "3px", "4px")
it "should copy borderRadius when set with an object", ->
layer = new Layer
borderRadius = {topLeft: 100}
layer.borderRadius = borderRadius
borderRadius.bottomRight = 100
layer.borderRadius.bottomRight.should.equal 0
it "should set sub-properties of borderRadius", ->
layer = new Layer
borderRadius: {topLeft: 100}
layer.borderRadius.bottomRight = 100
layer.borderRadius.topLeft.should.equal(100)
layer.borderRadius.bottomRight.should.equal(100)
layer.style["border-top-left-radius"].should.equal "100px"
layer.style["border-bottom-right-radius"].should.equal "100px"
describe "Border Width", ->
it "should copy borderWidth when set with an object", ->
layer = new Layer
borderWidth = {top: 100}
layer.borderWidth = borderWidth
borderWidth.bottom = 100
layer.borderWidth.bottom.should.equal 0
it "should set sub-properties of borderWidth", ->
layer = new Layer
borderWidth: {top: 10}
layer.borderWidth.bottom = 10
layer.borderWidth.top.should.equal(10)
layer.borderWidth.bottom.should.equal(10)
layer._elementBorder.style["border-top-width"].should.equal "10px"
layer._elementBorder.style["border-bottom-width"].should.equal "10px"
describe "Gradient", ->
it "should set gradient", ->
layer = new Layer
layer.gradient = new Gradient
start: "blue"
end: "red"
angle: 42
layer.gradient.start.isEqual("blue").should.be.true
layer.gradient.end.isEqual("red").should.be.true
layer.gradient.angle.should.equal(42)
layer.style["background-image"].should.equal("linear-gradient(42deg, rgb(0, 0, 255), rgb(255, 0, 0))")
layer.gradient =
start: "yellow"
end: "purple"
layer.gradient.angle.should.equal(0)
layer.style["background-image"].should.equal("linear-gradient(0deg, rgb(255, 255, 0), rgb(128, 0, 128))")
layer.gradient = null
layer.style["background-image"].should.equal("")
it "should copy gradients when set with an object", ->
layer = new Layer
gradient = new Gradient
start: "blue"
layer.gradient = gradient
gradient.start = "yellow"
layer.gradient.start.isEqual("blue").should.be.true
it "should set sub-properties of gradients", ->
layer = new Layer
gradient:
start: "blue"
layer.gradient.end = "yellow"
layer.gradient.start.isEqual("blue").should.be.true
layer.gradient.end.isEqual("yellow").should.be.true
layer.style["background-image"].should.equal("linear-gradient(0deg, rgb(0, 0, 255), rgb(255, 255, 0))")
describe "Filter Properties", ->
it "should set nothing on defaults", ->
layer = new Layer
layer.style.webkitFilter.should.equal ""
it "should set only the filter that is non default", ->
layer = new Layer
layer.blur = 10
layer.blur.should.equal 10
layer.style.webkitFilter.should.equal "blur(10px)"
layer.contrast = 50
layer.contrast.should.equal 50
layer.style.webkitFilter.should.equal "blur(10px) contrast(50%)"
describe "Backdrop properties", ->
it "should set backgroundBlur", ->
l = new Layer
backgroundBlur: 50
l.style.webkitBackdropFilter.should.equal "blur(50px)"
it "should take dpr into account when setting blur", ->
device = new DeviceComponent()
device.deviceType = "apple-iphone-7-black"
device.context.run ->
l = new Layer
blur: 20
backgroundBlur: 30
l.context.devicePixelRatio.should.equal 2
l.style.webkitFilter.should.equal "blur(40px)"
l.style.webkitBackdropFilter.should.equal "blur(60px)"
it "should set backgroundBrightness", ->
l = new Layer
backgroundBrightness: 50
l.style.webkitBackdropFilter.should.equal "brightness(50%)"
it "should set backgroundSaturate", ->
l = new Layer
backgroundSaturate: 50
l.style.webkitBackdropFilter.should.equal "saturate(50%)"
it "should set backgroundHueRotate", ->
l = new Layer
backgroundHueRotate: 50
l.style.webkitBackdropFilter.should.equal "hue-rotate(50deg)"
it "should set backgroundContrast", ->
l = new Layer
backgroundContrast: 50
l.style.webkitBackdropFilter.should.equal "contrast(50%)"
it "should set backgroundInvert", ->
l = new Layer
backgroundInvert: 50
l.style.webkitBackdropFilter.should.equal "invert(50%)"
it "should set backgroundGrayscale", ->
l = new Layer
backgroundGrayscale: 50
l.style.webkitBackdropFilter.should.equal "grayscale(50%)"
it "should set backgroundSepia", ->
l = new Layer
backgroundSepia: 50
l.style.webkitBackdropFilter.should.equal "sepia(50%)"
it "should support multiple filters", ->
l = new Layer
backgroundBlur: 50
backgroundHueRotate: 20
backgroundSepia: 10
l.style.webkitBackdropFilter.should.equal "blur(50px) hue-rotate(20deg) sepia(10%)"
describe "Blending", ->
it "Should work with every blending mode", ->
l = new Layer
for key, value of Blending
l.blending = value
l.style.mixBlendMode.should.equal value
describe "Shadow Properties", ->
it "should set nothing on defaults", ->
layer = new Layer
layer.style.boxShadow.should.equal ""
it "should set the shadow", ->
layer = new Layer
layer.shadowX = 10
layer.shadowY = 10
layer.shadowBlur = 10
layer.shadowSpread = 10
layer.shadowX.should.equal 10
layer.shadowY.should.equal 10
layer.shadowBlur.should.equal 10
layer.shadowSpread.should.equal 10
layer.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 10px 10px 10px"
# Only after we set a color a shadow should be drawn
layer.shadowColor = "red"
layer.shadowColor.r.should.equal 255
layer.shadowColor.g.should.equal 0
layer.shadowColor.b.should.equal 0
layer.shadowColor.a.should.equal 1
layer.style.boxShadow.should.equal "rgb(255, 0, 0) 10px 10px 10px 10px"
# Only after we set a color a shadow should be drawn
layer.shadowColor = null
layer.style.boxShadow.should.equal "rgba(0, 0, 0, 0) 10px 10px 10px 10px"
it "should add multiple shadows by passing an array into the shadows property", ->
l = new Layer
shadows: [{blur: 10, color: "red"}, {x: 1, color: "blue"}, {y: 10, color: "green", type: "inset"}]
l.style.boxShadow.should.equal "rgb(255, 0, 0) 0px 0px 10px 0px, rgb(0, 0, 255) 1px 0px 0px 0px, rgb(0, 128, 0) 0px 10px 0px 0px inset"
it "should be able to access shadow properties through properties", ->
l = new Layer
l.shadow1 = x: 10
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px"
it "should change the shadow when a shadow property is changed", ->
l = new Layer
l.shadow2 = x: 10
l.shadow2.x = 5
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 5px 0px 0px 0px"
it "should change the shadow when another shadow property is changed", ->
l = new Layer
l.shadow2 = x: 10
l.shadow2.y = 5
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 5px 0px 0px"
it "should get the same shadow that is set", ->
l = new Layer
l.shadow1 = x: 10
l.shadow1.x.should.equal 10
it "should let the shadow be set in the constructor", ->
l = new Layer
shadow1:
x: 10
color: "red"
l.shadow1.x.should.equal 10
l.shadow1.color.toString().should.equal "rgb(255, 0, 0)"
it "should convert color strings to color objects when set via shadows", ->
l = new Layer
shadows: [{blur: 10, color: "red"}]
l.style.boxShadow.should.equal "rgb(255, 0, 0) 0px 0px 10px 0px"
it "should change the first shadow when a shadow property is changed", ->
l = new Layer
l.shadow1.x = 10
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px"
it "should ignore the first shadow when the second shadow property is changed", ->
l = new Layer
l.shadow2.y = 10
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 0px 10px 0px 0px"
it "should animate shadows through a shadow property", (done) ->
l = new Layer
a = l.animate
shadow1:
blur: 100
Utils.delay a.time / 2, ->
l.shadow1.color.a.should.be.above 0
l.shadow1.color.a.should.be.below 0.5
l.shadow1.blur.should.be.above 10
l.shadow1.blur.should.be.below 90
l.onAnimationEnd ->
l.shadow1.blur.should.equal 100
done()
it "should animate shadow colors", (done) ->
l = new Layer
shadow1:
color: "red"
l.animate
shadow1:
color: "blue"
l.onAnimationEnd ->
l.shadow1.color.toString().should.equal "rgb(0, 0, 255)"
done()
it "should remove a shadow when a shadow property is set to null", ->
l = new Layer
l.shadow1 = x: 10
l.shadow2 = y: 10
l.shadow3 = blur: 10
l.shadow2 = null
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px, rgba(123, 123, 123, 0.498039) 0px 0px 10px 0px"
it "should should change all shadows when shadowColor, shadowX, shadowY are changed", ->
l = new Layer
shadows: [{blur: 10, color: "red"}, {x: 1, color: "blue"}, {y: 10, color: "green", type: "inset"}]
l.shadowColor = "yellow"
l.shadowX = 10
l.shadowY = 20
l.shadowBlur = 30
l.shadowSpread = 40
l.style.boxShadow.should.equal "rgb(255, 255, 0) 10px 20px 30px 40px, rgb(255, 255, 0) 10px 20px 30px 40px, rgb(255, 255, 0) 10px 20px 30px 40px inset"
it "should create a shadow if a shadowColor is set when there aren't any shadows", ->
l = new Layer
l.shadows = []
l.shadowColor = "yellow"
l.shadows.length.should.equal 1
l.shadows[0].color.should.equalColor "yellow"
it "should copy shadows if you copy a layer", ->
l = new Layer
shadows: [{blur: 10, color: "red"}, {x: 1, color: "blue"}, {y: 10, color: "green", type: "inset"}]
l2 = l.copy()
l2.style.boxShadow.should.equal "rgb(255, 0, 0) 0px 0px 10px 0px, rgb(0, 0, 255) 1px 0px 0px 0px, rgb(0, 128, 0) 0px 10px 0px 0px inset"
l2.shadows.should.eql l.shadows
l2.shadows.should.not.equal l.shadows
it "should not change shadows after copying a layer", ->
l = new Layer
shadows: [{blur: 10, color: "red"}, {x: 1, color: "blue"}, {y: 10, color: "green", type: "inset"}]
l2 = l.copy()
l.shadow1.x = 100
l2.shadow1.should.not.equal l.shadow1
l2.shadow1.x.should.not.equal 100
it "should be able to handle more then 10 shadows", ->
shadows = []
result = []
for i in [1...16]
shadows.push {x: i}
result.push "rgba(123, 123, 123, 0.498039) #{i}px 0px 0px 0px"
l = new Layer
shadows: shadows
l.style.boxShadow.should.equal result.join(", ")
l.shadows.length.should.equal 15
l.shadows[14].y = 10
l.updateShadowStyle()
result[14] = "rgba(123, 123, 123, 0.498039) 15px 10px 0px 0px"
l.style.boxShadow.should.equal result.join(", ")
it "should handle multiple shadow types", ->
l = new Layer
shadows: [{type: "box", x: 10}, {type: "text", x: 5}, {type: "inset", y: 3}, {type: "drop", y: 15}]
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px, rgba(123, 123, 123, 0.498039) 0px 3px 0px 0px inset"
l.style.textShadow.should.equal "rgba(123, 123, 123, 0.498039) 5px 0px 0px"
l.style.webkitFilter.should.equal "drop-shadow(rgba(123, 123, 123, 0.498039) 0px 15px 0px)"
it "should use outer as an alias for box shadow", ->
l = new Layer
l.shadow1 =
type: "outer"
x: 10
l.shadow1.type.should.equal "outer"
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px"
it "should use outer as an alias for drop shadow when image is set", ->
l = new Layer
image: "static/test2.png"
l.shadow1 =
type: "outer"
x: 10
l.shadow1.type.should.equal "outer"
l.style.webkitFilter.should.equal "drop-shadow(rgba(123, 123, 123, 0.498039) 10px 0px 0px)"
it "should use inner as an alias for inset shadow", ->
l = new Layer
l.shadow1 =
type: "inner"
x: 10
l.shadow1.type.should.equal "inner"
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px inset"
it "should use inner as an alias for inset shadow in the constructor", ->
l = new Layer
shadowType: "inner"
shadowColor: "red"
shadowY: 10
shadowBlur: 10
l.shadow1.type.should.equal "inner"
l.style.boxShadow.should.equal "rgb(255, 0, 0) 0px 10px 10px 0px inset"
it "should change the shadowType of all shadows using shadowType", ->
l = new Layer
shadows: [
blur: 10
type: "inset"
color: "red"
]
l.shadowType = "box"
l.shadow1.type.should.equal "box"
l.style.boxShadow.should.equal "rgb(255, 0, 0) 0px 0px 10px 0px"
it "should reflect the current value throught the shadow<prop> properties", ->
layer = new Layer
shadow1:
x: 5
y: 20
color: "blue"
blur: 10
shadow2:
x: 10
y: 20
color: "red"
layer.shadowX.should.equal 5
layer.shadowY.should.equal 20
layer.shadowColor.should.equalColor "blue"
layer.shadowBlur.should.equal 10
layer.shadowType.should.equal "box"
layer.shadowX = 2
layer.shadowX.should.equal 2
it "should return null for the shadow<prop> properties initially", ->
layer = new Layer
expect(layer.shadowX).to.equal null
expect(layer.shadowY).to.equal null
expect(layer.shadowColor).to.equal null
expect(layer.shadowBlur).to.equal null
expect(layer.shadowType).to.equal null
describe "Events", ->
it "should remove all events", ->
layerA = new Layer
handler = -> console.log "hello"
layerA.on("test", handler)
layerA.removeAllListeners("test")
layerA.listeners("test").length.should.equal 0
it "should add and clean up dom events", ->
layerA = new Layer
handler = -> console.log "hello"
layerA.on(Events.Click, handler)
layerA.on(Events.Click, handler)
layerA.on(Events.Click, handler)
layerA.on(Events.Click, handler)
# But never more then one
layerA._domEventManager.listeners(Events.Click).length.should.equal(1)
layerA.removeAllListeners(Events.Click)
# And on removal, we should get rid of the dom event
layerA._domEventManager.listeners(Events.Click).length.should.equal(0)
it "should work with event helpers", (done) ->
layer = new Layer
layer.onMouseOver (event, aLayer) ->
aLayer.should.equal(layer)
@should.equal(layer)
done()
simulate.mouseover(layer._element)
it "should only pass dom events to the event manager", ->
layer = new Layer
layer.on Events.Click, ->
layer.on Events.Move, ->
layer._domEventManager.listenerEvents().should.eql([Events.Click])
describe "Hierarchy", ->
it "should insert in dom", ->
layer = new Layer
assert.equal layer._element.parentNode.id, "FramerContextRoot-Default"
assert.equal layer.superLayer, null
it "should check superLayer", ->
f = -> layer = new Layer superLayer: 1
f.should.throw()
it "should add child", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
assert.equal layerB._element.parentNode, layerA._element
assert.equal layerB.superLayer, layerA
it "should remove child", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerB.superLayer = null
assert.equal layerB._element.parentNode.id, "FramerContextRoot-Default"
assert.equal layerB.superLayer, null
it "should list children", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerA
assert.deepEqual layerA.children, [layerB, layerC]
layerB.superLayer = null
assert.equal layerA.children.length, 1
assert.deepEqual layerA.children, [layerC]
layerC.superLayer = null
assert.deepEqual layerA.children, []
it "should ignore a hidden SVGLayer", ->
layerA = new Layer
layerB = new Layer
parent: layerA
svgLayer = new SVGLayer
parent: layerA
name: ".SVGLayer"
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="62" height="62"><path d="M 31 0 C 48.121 0 62 13.879 62 31 C 62 48.121 48.121 62 31 62 C 13.879 62 0 48.121 0 31 C 0 13.879 13.879 0 31 0 Z" name="Oval"></path></svg>'
svgLayer2 = new SVGLayer
parent: layerA
name: ".SVGLayer",
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="62" height="62"><path d="M 31 0 L 40.111 18.46 L 60.483 21.42 L 45.741 35.79 L 49.221 56.08 L 31 46.5 L 12.779 56.08 L 16.259 35.79 L 1.517 21.42 L 21.889 18.46 Z" name="Star"></path></svg>'
layerA.children.length.should.equal 3
layerA.children.should.eql [layerB, svgLayer.children[0], svgLayer2.children[0]]
it "should list sibling root layers", ->
layerA = new Layer
layerB = new Layer
layerC = new Layer
assert layerB in layerA.siblingLayers, true
assert layerC in layerA.siblingLayers, true
it "should list sibling layers", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerA
assert.deepEqual layerB.siblingLayers, [layerC]
assert.deepEqual layerC.siblingLayers, [layerB]
it "should list ancestors", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerB
assert.deepEqual layerC.ancestors(), [layerB, layerA]
it "should list descendants deeply", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerB
layerA.descendants.should.eql [layerB, layerC]
it "should list descendants", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerA
layerA.descendants.should.eql [layerB, layerC]
it "should set super/parent with property", ->
layerA = new Layer
layerB = new Layer
layerB.superLayer = layerA
layerA.children.should.eql [layerB]
layerA.subLayers.should.eql [layerB]
it "should set super/parent with with constructor", ->
layerA = new Layer
layerB = new Layer
superLayer: layerA
layerA.children.should.eql [layerB]
layerA.subLayers.should.eql [layerB]
describe "Layering", ->
it "should set at creation", ->
layer = new Layer index: 666
layer.index.should.equal 666
it "should change index", ->
layer = new Layer
layer.index = 666
layer.index.should.equal 666
it "should be in front for root", ->
layerA = new Layer
layerB = new Layer
assert.equal layerB.index, layerA.index + 1
it "should be in front", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerA
assert.equal layerB.index, 0
assert.equal layerC.index, 1
it "should send back and front", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerA
layerC.sendToBack()
assert.equal layerB.index, 0
assert.equal layerC.index, -1
layerC.bringToFront()
assert.equal layerB.index, 0
assert.equal layerC.index, 1
it "should take the layer index below the mininum layer index", ->
layerA = new Layer
layerB = new Layer
parent: layerA
index: 10
layerC = new Layer
parent: layerA
index: 11
layerC.sendToBack()
assert.equal layerB.index, 10
assert.equal layerC.index, 9
it "should handle negative values correctly when sending to back", ->
layerA = new Layer
layerB = new Layer
parent: layerA
index: -3
layerC = new Layer
parent: layerA
index: -2
layerC.sendToBack()
assert.equal layerB.index, -3
assert.equal layerC.index, -4
it "should leave the index alone if it is the only layer", ->
layerA = new Layer
layerB = new Layer
parent: layerA
index: 10
layerB.sendToBack()
layerB.bringToFront()
assert.equal layerB.index, 10
it "should place in front", ->
layerA = new Layer
layerB = new Layer superLayer: layerA # 0
layerC = new Layer superLayer: layerA # 1
layerD = new Layer superLayer: layerA # 2
layerB.placeBefore layerC
assert.equal layerB.index, 1
assert.equal layerC.index, 0
assert.equal layerD.index, 2
it "should place behind", ->
layerA = new Layer
layerB = new Layer superLayer: layerA # 0
layerC = new Layer superLayer: layerA # 1
layerD = new Layer superLayer: layerA # 2
layerC.placeBehind layerB
# TODO: Still something fishy here, but it works
assert.equal layerB.index, 1
assert.equal layerC.index, 0
assert.equal layerD.index, 3
it "should get a children by name", ->
layerA = new Layer
layerB = new Layer name: "B", superLayer: layerA
layerC = new Layer name: "C", superLayer: layerA
layerD = new Layer name: "C", superLayer: layerA
layerA.childrenWithName("B").should.eql [layerB]
layerA.childrenWithName("C").should.eql [layerC, layerD]
it "should get a siblinglayer by name", ->
layerA = new Layer
layerB = new Layer name: "B", superLayer: layerA
layerC = new Layer name: "C", superLayer: layerA
layerD = new Layer name: "C", superLayer: layerA
layerB.siblingLayersByName("C").should.eql [layerC, layerD]
layerD.siblingLayersByName("B").should.eql [layerB]
it "should get a ancestors", ->
layerA = new Layer
layerB = new Layer superLayer: layerA
layerC = new Layer superLayer: layerB
layerC.ancestors().should.eql [layerB, layerA]
describe "Select Layer", ->
beforeEach ->
Framer.CurrentContext.reset()
it "should select the layer named B", ->
layerA = new Layer name: 'A'
layerB = new Layer name: 'B', parent: layerA
layerA.selectChild('B').should.equal layerB
it "should select the layer named C", ->
layerA = new Layer name: 'A'
layerB = new Layer name: 'B', parent: layerA
layerC = new Layer name: 'C', parent: layerB
layerA.selectChild('B > *').should.equal layerC
it "should have a static method `select`", ->
layerA = new Layer name: 'A'
layerB = new Layer name: 'B', parent: layerA
layerC = new Layer name: 'C', parent: layerB
Layer.select('B > *').should.equal layerC
it "should have a method `selectAllChildren`", ->
layerA = new Layer name: 'A'
layerB = new Layer name: 'B', parent: layerA
layerC = new Layer name: 'C', parent: layerB
layerD = new Layer name: 'D', parent: layerB
layerA.selectAllChildren('B > *').should.eql [layerC, layerD]
it "should have a static method `selectAll`", ->
layerA = new Layer name: 'A'
layerB = new Layer name: 'B', parent: layerA # asdas
layerC = new Layer name: 'C', parent: layerB
layerD = new Layer name: 'D', parent: layerB
Layer.selectAll('A *').should.eql [layerB, layerC, layerD]
describe "Frame", ->
it "should set on create", ->
layer = new Layer frame: {x: 111, y: 222, width: 333, height: 444}
assert.equal layer.x, 111
assert.equal layer.y, 222
assert.equal layer.width, 333
assert.equal layer.height, 444
it "should set after create", ->
layer = new Layer
layer.frame = {x: 111, y: 222, width: 333, height: 444}
assert.equal layer.x, 111
assert.equal layer.y, 222
assert.equal layer.width, 333
assert.equal layer.height, 444
it "should set minX on creation", ->
layer = new Layer minX: 200, y: 100, width: 100, height: 100
layer.x.should.equal 200
it "should set midX on creation", ->
layer = new Layer midX: 200, y: 100, width: 100, height: 100
layer.x.should.equal 150
it "should set maxX on creation", ->
layer = new Layer maxX: 200, y: 100, width: 100, height: 100
layer.x.should.equal 100
it "should set minY on creation", ->
layer = new Layer x: 100, minY: 200, width: 100, height: 100
layer.y.should.equal 200
it "should set midY on creation", ->
layer = new Layer x: 100, midY: 200, width: 100, height: 100
layer.y.should.equal 150
it "should set maxY on creation", ->
layer = new Layer x: 100, maxY: 200, width: 100, height: 100
layer.y.should.equal 100
it "should set minX", ->
layer = new Layer y: 100, width: 100, height: 100
layer.minX = 200
layer.x.should.equal 200
it "should set midX", ->
layer = new Layer y: 100, width: 100, height: 100
layer.midX = 200
layer.x.should.equal 150
it "should set maxX", ->
layer = new Layer y: 100, width: 100, height: 100
layer.maxX = 200
layer.x.should.equal 100
it "should set minY", ->
layer = new Layer x: 100, width: 100, height: 100
layer.minY = 200
layer.y.should.equal 200
it "should set midY", ->
layer = new Layer x: 100, width: 100, height: 100
layer.midY = 200
layer.y.should.equal 150
it "should set maxY", ->
layer = new Layer x: 100, width: 100, height: 100
layer.maxY = 200
layer.y.should.equal 100
it "should get and set canvasFrame", ->
layerA = new Layer x: 100, y: 100, width: 100, height: 100
layerB = new Layer x: 300, y: 300, width: 100, height: 100, superLayer: layerA
assert.equal layerB.canvasFrame.x, 400
assert.equal layerB.canvasFrame.y, 400
layerB.canvasFrame = {x: 1000, y: 1000}
assert.equal layerB.canvasFrame.x, 1000
assert.equal layerB.canvasFrame.y, 1000
assert.equal layerB.x, 900
assert.equal layerB.y, 900
layerB.superLayer = null
assert.equal layerB.canvasFrame.x, 900
assert.equal layerB.canvasFrame.y, 900
it "should calculate scale", ->
layerA = new Layer scale: 0.9
layerB = new Layer scale: 0.8, superLayer: layerA
layerB.screenScaleX().should.equal 0.9 * 0.8
layerB.screenScaleY().should.equal 0.9 * 0.8
it "should calculate scaled frame", ->
layerA = new Layer x: 100, width: 500, height: 900, scale: 0.5
layerA.scaledFrame().should.eql {"x": 225, "y": 225, "width": 250, "height": 450}
it "should calculate scaled screen frame", ->
layerA = new Layer x: 100, width: 500, height: 900, scale: 0.5
layerB = new Layer y: 50, width: 600, height: 600, scale: 0.8, superLayer: layerA
layerC = new Layer y: -60, width: 800, height: 700, scale: 1.2, superLayer: layerB
layerA.screenScaledFrame().should.eql {"x": 225, "y": 225, "width": 250, "height": 450}
layerB.screenScaledFrame().should.eql {"x": 255, "y": 280, "width": 240, "height": 240}
layerC.screenScaledFrame().should.eql {"x": 223, "y": 228, "width": 384, "height": 336}
it "should accept point shortcut", ->
layer = new Layer point: 10
layer.x.should.equal 10
layer.y.should.equal 10
it "should accept size shortcut", ->
layer = new Layer size: 10
layer.width.should.equal 10
layer.height.should.equal 10
describe "Center", ->
it "should center", ->
layerA = new Layer width: 200, height: 200
layerB = new Layer width: 100, height: 100, superLayer: layerA
layerB.center()
assert.equal layerB.x, 50
assert.equal layerB.y, 50
it "should center with offset", ->
layerA = new Layer width: 200, height: 200
layerB = new Layer width: 100, height: 100, superLayer: layerA
layerB.centerX(50)
layerB.centerY(50)
assert.equal layerB.x, 100
assert.equal layerB.y, 100
it "should center return layer", ->
layerA = new Layer width: 200, height: 200
layerA.center().should.equal layerA
layerA.centerX().should.equal layerA
layerA.centerY().should.equal layerA
it "should center pixel align", ->
layerA = new Layer width: 200, height: 200
layerB = new Layer width: 111, height: 111, superLayer: layerA
layerB.center().pixelAlign()
assert.equal layerB.x, 44
assert.equal layerB.y, 44
it "should center with border", ->
layer = new Layer
width: 200
height: 200
layer.borderColor = "green"
layer.borderWidth = 30
layer.center()
layerB = new Layer
superLayer: layer
backgroundColor: "red"
layerB.center()
layerB.frame.should.eql {x: 20, y: 20, width: 100, height: 100}
it "should center within outer frame", ->
layerA = new Layer width: 10, height: 10
layerA.center()
assert.equal layerA.x, 195
assert.equal layerA.y, 145
it "should center correctly with dpr set", ->
device = new DeviceComponent()
device.deviceType = "apple-iphone-7-black"
device.context.run ->
layerA = new Layer size: 100
layerA.center()
layerA.context.devicePixelRatio.should.equal 2
layerA.x.should.equal 137
layerA.y.should.equal 283
describe "midPoint", ->
it "should accept a midX/midY value", ->
l = new Layer
midPoint:
midX: 123
midY: 459
l.midX.should.equal 123
l.midY.should.equal 459
it "should accept a x/y value", ->
l = new Layer
midPoint:
x: 123
y: 459
l.midX.should.equal 123
l.midY.should.equal 459
it "should accept a single number", ->
l = new Layer
midPoint: 234
l.midX.should.equal 234
l.midY.should.equal 234
it "should pick midX/midY over x/y", ->
l = new Layer
midPoint:
midX: 123
midY: 459
x: 653
y: 97
l.midX.should.equal 123
l.midY.should.equal 459
it "should not change the object passed in", ->
l =
x: 100
y: 200
m = new Layer
midPoint: l
m.midX.should.equal l.x
m.midY.should.equal l.y
l.x.should.equal 100
l.y.should.equal 200
describe "CSS", ->
it "classList should work", ->
layer = new Layer
layer.classList.add "test"
assert.equal layer.classList.contains("test"), true
assert.equal layer._element.classList.contains("test"), true
describe "DOM", ->
it "should destroy", ->
before = Object.keys(Framer.CurrentContext.domEventManager._elements).length
layer = new Layer
layer.destroy()
(layer in Framer.CurrentContext.layers).should.be.false
assert.equal layer._element.parentNode, null
assert.equal before, Object.keys(Framer.CurrentContext.domEventManager._elements).length
it "should set text", ->
layer = new Layer
layer.html = "Hello"
layer._element.childNodes[0].should.equal layer._elementHTML
layer._elementHTML.innerHTML.should.equal "Hello"
layer.ignoreEvents.should.equal true
it "should not effect children", ->
layer = new Layer
layer.html = "Hello"
Child = new Layer superLayer: layer
Child._element.offsetTop.should.equal 0
it "should set interactive html and allow pointer events", ->
tags = ["input", "select", "textarea", "option"]
html = ""
for tag in tags
html += "<#{tag}></#{tag}>"
layer = new Layer
layer.html = html
for tag in tags
element = layer.querySelectorAll(tag)[0]
style = window.getComputedStyle(element)
style["pointer-events"].should.equal "auto"
# style["-webkit-user-select"].should.equal "auto"
it "should work with querySelectorAll", ->
layer = new Layer
layer.html = "<input type='button' id='hello'>"
inputElements = layer.querySelectorAll("input")
inputElements.length.should.equal 1
inputElement = _.head(inputElements)
inputElement.getAttribute("id").should.equal "hello"
describe "Force 2D", ->
it "should switch to 2d rendering", ->
layer = new Layer
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
layer.force2d = true
layer.style.webkitTransform.should.equal "translate(0px, 0px) scale(1, 1) skew(0deg, 0deg) rotate(0deg)"
describe "Matrices", ->
it "should have the correct matrix", ->
layer = new Layer
scale: 2
rotation: 45
x: 200
y: 120
skew: 21
layer.matrix.toString().should.eql "matrix(1.957079, 1.957079, -0.871348, 0.871348, 200.000000, 120.000000)"
it "should have the correct matrix when 2d is forced", ->
layer = new Layer
scale: 2
rotation: 45
x: 200
y: 120
skew: 21
force2d: true
layer.matrix.toString().should.eql "matrix(2.165466, 1.957079, -1.079734, 0.871348, 200.000000, 120.000000)"
it "should have the correct transform matrix", ->
layer = new Layer
scale: 20
rotation: 5
rotationY: 20
x: 200
y: 120
skew: 21
layer.transformMatrix.toString().should.eql "matrix3d(19.391455, 8.929946, -0.340719, 0.000000, 6.010074, 19.295128, 0.029809, 0.000000, 6.840403, 2.625785, 0.939693, 0.000000, -1020.076470, -1241.253701, 15.545482, 1.000000)"
it "should have the correct screen point", ->
layer = new Layer
rotation: 5
x: 200
y: 120
skew: 21
roundX = Math.round(layer.convertPointToScreen().x)
roundX.should.eql 184
it "should have the correct screen frame", ->
layer = new Layer
rotation: 5
x: 200
y: 120
skew: 21
boundingBox = layer.screenFrame
boundingBox.x.should.eql 184
boundingBox.y.should.eql 98
boundingBox.width.should.eql 132
boundingBox.height.should.eql 144
it "should use Framer.Defaults when setting the screen frame", ->
Framer.Defaults.Layer.width = 300
Framer.Defaults.Layer.height = 400
box = new Layer
screenFrame:
x: 123
box.stateCycle()
box.x.should.equal 123
box.width.should.equal 300
box.height.should.equal 400
Framer.resetDefaults()
it "should have the correct canvas frame", ->
layer = new Layer
rotation: 5
x: 200
y: 120
skew: 21
boundingBox = layer.canvasFrame
boundingBox.x.should.eql 184
boundingBox.y.should.eql 98
boundingBox.width.should.eql 132
boundingBox.height.should.eql 144
describe "Copy", ->
it "copied Layer should hold set props", ->
X = 100
Y = 200
IMAGE = "../static/test.png"
BORDERRADIUS = 20
layer = new Layer
x: X
y: Y
image: IMAGE
layer.borderRadius = BORDERRADIUS
layer.x.should.eql X
layer.y.should.eql Y
layer.image.should.eql IMAGE
layer.borderRadius.should.eql BORDERRADIUS
copy = layer.copy()
copy.x.should.eql X
copy.y.should.eql Y
copy.image.should.eql IMAGE
copy.borderRadius.should.eql BORDERRADIUS
it "copied Layer should have defaults", ->
layer = new Layer
copy = layer.copy()
copy.width.should.equal 100
copy.height.should.equal 100
it "copied Layer should also copy styles", ->
layer = new Layer
style:
"font-family": "-apple-system"
"font-size": "1.2em"
"text-align": "right"
copy = layer.copy()
copy.style["font-family"].should.equal "-apple-system"
copy.style["font-size"].should.equal "1.2em"
copy.style["text-align"].should.equal "right"
describe "Point conversion", ->
it "should correctly convert points from layer to Screen", ->
point =
x: 200
y: 300
layer = new Layer point: point
screenPoint = layer.convertPointToScreen()
screenPoint.x.should.equal point.x
screenPoint.y.should.equal point.y
it "should correctly convert points from Screen to layer", ->
point =
x: 300
y: 200
layer = new Layer point: point
layerPoint = Screen.convertPointToLayer({}, layer)
layerPoint.x.should.equal -point.x
layerPoint.y.should.equal -point.y
it "should correctly convert points from layer to layer", ->
layerBOffset =
x: 200
y: 400
layerA = new Layer
layerB = new Layer point: layerBOffset
layerAToLayerBPoint = layerA.convertPointToLayer({}, layerB)
layerAToLayerBPoint.x.should.equal -layerBOffset.x
layerAToLayerBPoint.y.should.equal -layerBOffset.y
it "should correctly convert points when layers are nested", ->
layerBOffset =
x: 0
y: 200
layerA = new Layer
layerB = new Layer
parent: layerA
point: layerBOffset
rotation: 90
originX: 0
originY: 0
layerAToLayerBPoint = layerA.convertPointToLayer({}, layerB)
layerAToLayerBPoint.x.should.equal -layerBOffset.y
it "should correctly convert points between multiple layers and transforms", ->
layerA = new Layer
x: 275
layerB = new Layer
y: 400
x: 400
scale: 2
parent: layerA
layerC = new Layer
x: -200
y: 100
rotation: 180
originX: 0
originY: 0
parent: layerB
screenToLayerCPoint = Screen.convertPointToLayer(null, layerC)
screenToLayerCPoint.x.should.equal 112.5
screenToLayerCPoint.y.should.equal 275
it "should correctly convert points from the Canvas to a layer", ->
layerA = new Layer
scale: 2
layerB = new Layer
parent: layerA
originY: 1
rotation: 90
canvasToLayerBPoint = Canvas.convertPointToLayer({}, layerB)
canvasToLayerBPoint.x.should.equal -25
canvasToLayerBPoint.y.should.equal 125
describe "Device Pixel Ratio", ->
it "should default to 1", ->
a = new Layer
a.context.devicePixelRatio.should.equal 1
it "should change all of a layers children", ->
context = new Framer.Context(name: "Test")
context.run ->
a = new Layer
b = new Layer
parent: a
c = new Layer
parent: b
a.context.devicePixelRatio = 3
for l in [a, b, c]
l._element.style.width.should.equal "300px"
describe "containers", ->
it "should return empty when called on rootLayer", ->
a = new Layer name: "a"
a.containers().should.deep.equal []
it "should return all ancestors", ->
a = new Layer name: "a"
b = new Layer parent: a, name: "b"
c = new Layer parent: b, name: "c"
d = new Layer parent: c, name: "d"
names = d.containers().map (l) -> l.name
names.should.deep.equal ["c", "b", "a"]
it "should include the device return all ancestors", ->
device = new DeviceComponent()
device.context.run ->
a = new Layer name: "a"
b = new Layer parent: a, name: "b"
c = new Layer parent: b, name: "c"
d = new Layer parent: c, name: "d"
containers = d.containers(true)
containers.length.should.equal 9
names = containers.map((l) -> l.name)
names.should.eql ["c", "b", "a", undefined, "viewport", "screen", "phone", "hands", undefined]
describe "constraintValues", ->
it "layout should not break constraints", ->
l = new Layer
x: 100
constraintValues:
aspectRatioLocked: true
l.x.should.equal 100
l.layout()
l.x.should.equal 0
assert.notEqual l.constraintValues, null
it "should break all constraints when setting x", ->
l = new Layer
x: 100
constraintValues:
aspectRatioLocked: true
l.x.should.equal 100
assert.notEqual l.constraintValues, null
l.x = 50
assert.equal l.constraintValues, null
it "should break all constraints when setting y", ->
l = new Layer
y: 100
constraintValues:
aspectRatioLocked: true
l.y.should.equal 100
assert.notEqual l.constraintValues, null
l.y = 50
assert.equal l.constraintValues, null
it "should update the width constraint when setting width", ->
l = new Layer
width: 100
constraintValues:
aspectRatioLocked: true
l.width.should.equal 100
assert.notEqual l.constraintValues, null
l.width = 50
l.constraintValues.width.should.equal 50
it "should update the height constraint when setting height", ->
l = new Layer
height: 100
constraintValues:
aspectRatioLocked: true
l.height.should.equal 100
assert.notEqual l.constraintValues, null
l.height = 50
l.constraintValues.height.should.equal 50
it "should disable the aspectRatioLock and widthFactor constraint when setting width", ->
l = new Layer
constraintValues:
aspectRatioLocked: true
widthFactor: 0.5
width: null
l.layout()
l.width.should.equal 200
assert.notEqual l.constraintValues, null
l.width = 50
l.constraintValues.aspectRatioLocked.should.equal false
assert.equal l.constraintValues.widthFactor, null
it "should disable the aspectRatioLock and heightFactor constraint when setting height", ->
l = new Layer
constraintValues:
aspectRatioLocked: true
heightFactor: 0.5
height: null
l.layout()
l.height.should.equal 150
assert.notEqual l.constraintValues, null
l.height = 50
assert.equal l.constraintValues.heightFactor, null
it "should update the x position when changing width", ->
l = new Layer
width: 100
constraintValues:
left: null
right: 20
l.layout()
l.width.should.equal 100
l.x.should.equal 280
assert.notEqual l.constraintValues, null
l.width = 50
l.x.should.equal 330
it "should update the y position when changing height", ->
l = new Layer
height: 100
constraintValues:
top: null
bottom: 20
l.layout()
l.height.should.equal 100
l.y.should.equal 180
assert.notEqual l.constraintValues, null
l.height = 50
l.y.should.equal 230
it "should update to center the layer when center() is called", ->
l = new Layer
constraintValues:
aspectRatioLocked: true
l.layout()
l.center()
l.x.should.equal 150
l.y.should.equal 100
assert.equal l.constraintValues.left, null
assert.equal l.constraintValues.right, null
assert.equal l.constraintValues.top, null
assert.equal l.constraintValues.bottom, null
assert.equal l.constraintValues.centerAnchorX, 0.5
assert.equal l.constraintValues.centerAnchorY, 0.5
it "should update to center the layer vertically when centerX() is called", ->
l = new Layer
constraintValues:
aspectRatioLocked: true
l.layout()
l.x.should.equal 0
l.centerX()
l.x.should.equal 150
assert.equal l.constraintValues.left, null
assert.equal l.constraintValues.right, null
assert.equal l.constraintValues.centerAnchorX, 0.5
it "should update to center the layer horizontally when centerY() is called", ->
l = new Layer
constraintValues:
aspectRatioLocked: true
l.layout()
l.y.should.equal 0
l.centerY()
l.y.should.equal 100
assert.equal l.constraintValues.top, null
assert.equal l.constraintValues.bottom, null
assert.equal l.constraintValues.centerAnchorY, 0.5
describe "when no constraints are set", ->
it "should not set the width constraint when setting the width", ->
l = new Layer
width: 100
l.width.should.equal 100
assert.equal l.constraintValues, null
l.width = 50
assert.equal l.constraintValues, null
it "should not set the height constraint when setting the height", ->
l = new Layer
height: 100
l.height.should.equal 100
assert.equal l.constraintValues, null
l.height = 50
assert.equal l.constraintValues, null
|
[
{
"context": "s\",\"Prov\",\"Eccl\",\"Song\",\"Isa\",\"Jer\",\"Lam\",\"Ezek\",\"Dan\",\"Hos\",\"Joel\",\"Amos\",\"Obad\",\"Jonah\",\"Mic\",\"Nah\",\"",
"end": 505,
"score": 0.782916247844696,
"start": 502,
"tag": "NAME",
"value": "Dan"
},
{
"context": "ov\",\"Eccl\",\"Song\",\"Isa\",... | lib/bible-tools/lib/Bible-Passage-Reference-Parser/src/fj/spec.coffee | saiba-mais/bible-lessons | 0 | bcv_parser = require("../../js/fj_bcv_parser.js").bcv_parser
describe "Parsing", ->
p = {}
beforeEach ->
p = new bcv_parser
p.options.osis_compaction_strategy = "b"
p.options.sequence_combination_strategy = "combine"
it "should round-trip OSIS references", ->
p.set_options osis_compaction_strategy: "bc"
books = ["Gen","Exod","Lev","Num","Deut","Josh","Judg","Ruth","1Sam","2Sam","1Kgs","2Kgs","1Chr","2Chr","Ezra","Neh","Esth","Job","Ps","Prov","Eccl","Song","Isa","Jer","Lam","Ezek","Dan","Hos","Joel","Amos","Obad","Jonah","Mic","Nah","Hab","Zeph","Hag","Zech","Mal","Matt","Mark","Luke","John","Acts","Rom","1Cor","2Cor","Gal","Eph","Phil","Col","1Thess","2Thess","1Tim","2Tim","Titus","Phlm","Heb","Jas","1Pet","2Pet","1John","2John","3John","Jude","Rev"]
for book in books
bc = book + ".1"
bcv = bc + ".1"
bcv_range = bcv + "-" + bc + ".2"
expect(p.parse(bc).osis()).toEqual bc
expect(p.parse(bcv).osis()).toEqual bcv
expect(p.parse(bcv_range).osis()).toEqual bcv_range
it "should round-trip OSIS Apocrypha references", ->
p.set_options osis_compaction_strategy: "bc", ps151_strategy: "b"
p.include_apocrypha true
books = ["Tob","Jdt","GkEsth","Wis","Sir","Bar","PrAzar","Sus","Bel","SgThree","EpJer","1Macc","2Macc","3Macc","4Macc","1Esd","2Esd","PrMan","Ps151"]
for book in books
bc = book + ".1"
bcv = bc + ".1"
bcv_range = bcv + "-" + bc + ".2"
expect(p.parse(bc).osis()).toEqual bc
expect(p.parse(bcv).osis()).toEqual bcv
expect(p.parse(bcv_range).osis()).toEqual bcv_range
p.set_options ps151_strategy: "bc"
expect(p.parse("Ps151.1").osis()).toEqual "Ps.151"
expect(p.parse("Ps151.1.1").osis()).toEqual "Ps.151.1"
expect(p.parse("Ps151.1-Ps151.2").osis()).toEqual "Ps.151.1-Ps.151.2"
p.include_apocrypha false
for book in books
bc = book + ".1"
expect(p.parse(bc).osis()).toEqual ""
it "should handle a preceding character", ->
expect(p.parse(" Gen 1").osis()).toEqual "Gen.1"
expect(p.parse("Matt5John3").osis()).toEqual "Matt.5,John.3"
expect(p.parse("1Ps 1").osis()).toEqual ""
expect(p.parse("11Sam 1").osis()).toEqual ""
describe "Localized book Gen (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Gen (fj)", ->
`
expect(p.parse("Vakatekivu 1:1").osis()).toEqual("Gen.1.1")
expect(p.parse("Gen 1:1").osis()).toEqual("Gen.1.1")
p.include_apocrypha(false)
expect(p.parse("VAKATEKIVU 1:1").osis()).toEqual("Gen.1.1")
expect(p.parse("GEN 1:1").osis()).toEqual("Gen.1.1")
`
true
describe "Localized book Exod (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Exod (fj)", ->
`
expect(p.parse("Lako Yani 1:1").osis()).toEqual("Exod.1.1")
expect(p.parse("Exod 1:1").osis()).toEqual("Exod.1.1")
p.include_apocrypha(false)
expect(p.parse("LAKO YANI 1:1").osis()).toEqual("Exod.1.1")
expect(p.parse("EXOD 1:1").osis()).toEqual("Exod.1.1")
`
true
describe "Localized book Bel (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Bel (fj)", ->
`
expect(p.parse("Bel 1:1").osis()).toEqual("Bel.1.1")
`
true
describe "Localized book Lev (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Lev (fj)", ->
`
expect(p.parse("Vunau Ni Soro 1:1").osis()).toEqual("Lev.1.1")
expect(p.parse("Lev 1:1").osis()).toEqual("Lev.1.1")
p.include_apocrypha(false)
expect(p.parse("VUNAU NI SORO 1:1").osis()).toEqual("Lev.1.1")
expect(p.parse("LEV 1:1").osis()).toEqual("Lev.1.1")
`
true
describe "Localized book Num (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Num (fj)", ->
`
expect(p.parse("Na Kedra I Wiliwili 1:1").osis()).toEqual("Num.1.1")
expect(p.parse("Num 1:1").osis()).toEqual("Num.1.1")
p.include_apocrypha(false)
expect(p.parse("NA KEDRA I WILIWILI 1:1").osis()).toEqual("Num.1.1")
expect(p.parse("NUM 1:1").osis()).toEqual("Num.1.1")
`
true
describe "Localized book Sir (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Sir (fj)", ->
`
expect(p.parse("Sir 1:1").osis()).toEqual("Sir.1.1")
`
true
describe "Localized book Wis (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Wis (fj)", ->
`
expect(p.parse("Wis 1:1").osis()).toEqual("Wis.1.1")
`
true
describe "Localized book Lam (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Lam (fj)", ->
`
expect(p.parse("Tagi 1:1").osis()).toEqual("Lam.1.1")
expect(p.parse("Lam 1:1").osis()).toEqual("Lam.1.1")
p.include_apocrypha(false)
expect(p.parse("TAGI 1:1").osis()).toEqual("Lam.1.1")
expect(p.parse("LAM 1:1").osis()).toEqual("Lam.1.1")
`
true
describe "Localized book EpJer (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: EpJer (fj)", ->
`
expect(p.parse("EpJer 1:1").osis()).toEqual("EpJer.1.1")
`
true
describe "Localized book Rev (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Rev (fj)", ->
`
expect(p.parse("Vakatakila 1:1").osis()).toEqual("Rev.1.1")
expect(p.parse("Rev 1:1").osis()).toEqual("Rev.1.1")
p.include_apocrypha(false)
expect(p.parse("VAKATAKILA 1:1").osis()).toEqual("Rev.1.1")
expect(p.parse("REV 1:1").osis()).toEqual("Rev.1.1")
`
true
describe "Localized book PrMan (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: PrMan (fj)", ->
`
expect(p.parse("PrMan 1:1").osis()).toEqual("PrMan.1.1")
`
true
describe "Localized book Deut (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Deut (fj)", ->
`
expect(p.parse("Vakarua 1:1").osis()).toEqual("Deut.1.1")
expect(p.parse("Deut 1:1").osis()).toEqual("Deut.1.1")
p.include_apocrypha(false)
expect(p.parse("VAKARUA 1:1").osis()).toEqual("Deut.1.1")
expect(p.parse("DEUT 1:1").osis()).toEqual("Deut.1.1")
`
true
describe "Localized book Josh (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Josh (fj)", ->
`
expect(p.parse("Josua 1:1").osis()).toEqual("Josh.1.1")
expect(p.parse("Josh 1:1").osis()).toEqual("Josh.1.1")
p.include_apocrypha(false)
expect(p.parse("JOSUA 1:1").osis()).toEqual("Josh.1.1")
expect(p.parse("JOSH 1:1").osis()).toEqual("Josh.1.1")
`
true
describe "Localized book Judg (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Judg (fj)", ->
`
expect(p.parse("Turaganilewa 1:1").osis()).toEqual("Judg.1.1")
expect(p.parse("Judg 1:1").osis()).toEqual("Judg.1.1")
p.include_apocrypha(false)
expect(p.parse("TURAGANILEWA 1:1").osis()).toEqual("Judg.1.1")
expect(p.parse("JUDG 1:1").osis()).toEqual("Judg.1.1")
`
true
describe "Localized book Ruth (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Ruth (fj)", ->
`
expect(p.parse("Ruci 1:1").osis()).toEqual("Ruth.1.1")
expect(p.parse("Ruth 1:1").osis()).toEqual("Ruth.1.1")
p.include_apocrypha(false)
expect(p.parse("RUCI 1:1").osis()).toEqual("Ruth.1.1")
expect(p.parse("RUTH 1:1").osis()).toEqual("Ruth.1.1")
`
true
describe "Localized book 1Esd (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Esd (fj)", ->
`
expect(p.parse("1Esd 1:1").osis()).toEqual("1Esd.1.1")
`
true
describe "Localized book 2Esd (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Esd (fj)", ->
`
expect(p.parse("2Esd 1:1").osis()).toEqual("2Esd.1.1")
`
true
describe "Localized book Isa (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Isa (fj)", ->
`
expect(p.parse("Aisea 1:1").osis()).toEqual("Isa.1.1")
expect(p.parse("Isa 1:1").osis()).toEqual("Isa.1.1")
p.include_apocrypha(false)
expect(p.parse("AISEA 1:1").osis()).toEqual("Isa.1.1")
expect(p.parse("ISA 1:1").osis()).toEqual("Isa.1.1")
`
true
describe "Localized book 2Sam (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Sam (fj)", ->
`
expect(p.parse("2 Samuela 1:1").osis()).toEqual("2Sam.1.1")
expect(p.parse("2Sam 1:1").osis()).toEqual("2Sam.1.1")
p.include_apocrypha(false)
expect(p.parse("2 SAMUELA 1:1").osis()).toEqual("2Sam.1.1")
expect(p.parse("2SAM 1:1").osis()).toEqual("2Sam.1.1")
`
true
describe "Localized book 1Sam (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Sam (fj)", ->
`
expect(p.parse("1 Samuela 1:1").osis()).toEqual("1Sam.1.1")
expect(p.parse("1Sam 1:1").osis()).toEqual("1Sam.1.1")
p.include_apocrypha(false)
expect(p.parse("1 SAMUELA 1:1").osis()).toEqual("1Sam.1.1")
expect(p.parse("1SAM 1:1").osis()).toEqual("1Sam.1.1")
`
true
describe "Localized book 2Kgs (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Kgs (fj)", ->
`
expect(p.parse("2 Tui 1:1").osis()).toEqual("2Kgs.1.1")
expect(p.parse("2Kgs 1:1").osis()).toEqual("2Kgs.1.1")
p.include_apocrypha(false)
expect(p.parse("2 TUI 1:1").osis()).toEqual("2Kgs.1.1")
expect(p.parse("2KGS 1:1").osis()).toEqual("2Kgs.1.1")
`
true
describe "Localized book 1Kgs (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Kgs (fj)", ->
`
expect(p.parse("1 Tui 1:1").osis()).toEqual("1Kgs.1.1")
expect(p.parse("1Kgs 1:1").osis()).toEqual("1Kgs.1.1")
p.include_apocrypha(false)
expect(p.parse("1 TUI 1:1").osis()).toEqual("1Kgs.1.1")
expect(p.parse("1KGS 1:1").osis()).toEqual("1Kgs.1.1")
`
true
describe "Localized book 2Chr (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Chr (fj)", ->
`
expect(p.parse("2 Veigauna 1:1").osis()).toEqual("2Chr.1.1")
expect(p.parse("2Chr 1:1").osis()).toEqual("2Chr.1.1")
p.include_apocrypha(false)
expect(p.parse("2 VEIGAUNA 1:1").osis()).toEqual("2Chr.1.1")
expect(p.parse("2CHR 1:1").osis()).toEqual("2Chr.1.1")
`
true
describe "Localized book 1Chr (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Chr (fj)", ->
`
expect(p.parse("1 Veigauna 1:1").osis()).toEqual("1Chr.1.1")
expect(p.parse("1Chr 1:1").osis()).toEqual("1Chr.1.1")
p.include_apocrypha(false)
expect(p.parse("1 VEIGAUNA 1:1").osis()).toEqual("1Chr.1.1")
expect(p.parse("1CHR 1:1").osis()).toEqual("1Chr.1.1")
`
true
describe "Localized book Ezra (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Ezra (fj)", ->
`
expect(p.parse("Esera 1:1").osis()).toEqual("Ezra.1.1")
expect(p.parse("Ezra 1:1").osis()).toEqual("Ezra.1.1")
p.include_apocrypha(false)
expect(p.parse("ESERA 1:1").osis()).toEqual("Ezra.1.1")
expect(p.parse("EZRA 1:1").osis()).toEqual("Ezra.1.1")
`
true
describe "Localized book Neh (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Neh (fj)", ->
`
expect(p.parse("Niemaia 1:1").osis()).toEqual("Neh.1.1")
expect(p.parse("Neh 1:1").osis()).toEqual("Neh.1.1")
p.include_apocrypha(false)
expect(p.parse("NIEMAIA 1:1").osis()).toEqual("Neh.1.1")
expect(p.parse("NEH 1:1").osis()).toEqual("Neh.1.1")
`
true
describe "Localized book GkEsth (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: GkEsth (fj)", ->
`
expect(p.parse("GkEsth 1:1").osis()).toEqual("GkEsth.1.1")
`
true
describe "Localized book Esth (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Esth (fj)", ->
`
expect(p.parse("Eseta 1:1").osis()).toEqual("Esth.1.1")
expect(p.parse("Esth 1:1").osis()).toEqual("Esth.1.1")
p.include_apocrypha(false)
expect(p.parse("ESETA 1:1").osis()).toEqual("Esth.1.1")
expect(p.parse("ESTH 1:1").osis()).toEqual("Esth.1.1")
`
true
describe "Localized book Job (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Job (fj)", ->
`
expect(p.parse("Jope 1:1").osis()).toEqual("Job.1.1")
expect(p.parse("Job 1:1").osis()).toEqual("Job.1.1")
p.include_apocrypha(false)
expect(p.parse("JOPE 1:1").osis()).toEqual("Job.1.1")
expect(p.parse("JOB 1:1").osis()).toEqual("Job.1.1")
`
true
describe "Localized book Ps (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Ps (fj)", ->
`
expect(p.parse("Same 1:1").osis()).toEqual("Ps.1.1")
expect(p.parse("Ps 1:1").osis()).toEqual("Ps.1.1")
p.include_apocrypha(false)
expect(p.parse("SAME 1:1").osis()).toEqual("Ps.1.1")
expect(p.parse("PS 1:1").osis()).toEqual("Ps.1.1")
`
true
describe "Localized book PrAzar (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: PrAzar (fj)", ->
`
expect(p.parse("PrAzar 1:1").osis()).toEqual("PrAzar.1.1")
`
true
describe "Localized book Prov (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Prov (fj)", ->
`
expect(p.parse("Vakaibalebale 1:1").osis()).toEqual("Prov.1.1")
expect(p.parse("Prov 1:1").osis()).toEqual("Prov.1.1")
p.include_apocrypha(false)
expect(p.parse("VAKAIBALEBALE 1:1").osis()).toEqual("Prov.1.1")
expect(p.parse("PROV 1:1").osis()).toEqual("Prov.1.1")
`
true
describe "Localized book Eccl (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Eccl (fj)", ->
`
expect(p.parse("Dauvunau 1:1").osis()).toEqual("Eccl.1.1")
expect(p.parse("Eccl 1:1").osis()).toEqual("Eccl.1.1")
p.include_apocrypha(false)
expect(p.parse("DAUVUNAU 1:1").osis()).toEqual("Eccl.1.1")
expect(p.parse("ECCL 1:1").osis()).toEqual("Eccl.1.1")
`
true
describe "Localized book SgThree (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: SgThree (fj)", ->
`
expect(p.parse("SgThree 1:1").osis()).toEqual("SgThree.1.1")
`
true
describe "Localized book Song (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Song (fj)", ->
`
expect(p.parse("Sere I Solomoni 1:1").osis()).toEqual("Song.1.1")
expect(p.parse("Song 1:1").osis()).toEqual("Song.1.1")
p.include_apocrypha(false)
expect(p.parse("SERE I SOLOMONI 1:1").osis()).toEqual("Song.1.1")
expect(p.parse("SONG 1:1").osis()).toEqual("Song.1.1")
`
true
describe "Localized book Jer (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Jer (fj)", ->
`
expect(p.parse("Jeremaia 1:1").osis()).toEqual("Jer.1.1")
expect(p.parse("Jer 1:1").osis()).toEqual("Jer.1.1")
p.include_apocrypha(false)
expect(p.parse("JEREMAIA 1:1").osis()).toEqual("Jer.1.1")
expect(p.parse("JER 1:1").osis()).toEqual("Jer.1.1")
`
true
describe "Localized book Ezek (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Ezek (fj)", ->
`
expect(p.parse("Isikeli 1:1").osis()).toEqual("Ezek.1.1")
expect(p.parse("Ezek 1:1").osis()).toEqual("Ezek.1.1")
p.include_apocrypha(false)
expect(p.parse("ISIKELI 1:1").osis()).toEqual("Ezek.1.1")
expect(p.parse("EZEK 1:1").osis()).toEqual("Ezek.1.1")
`
true
describe "Localized book Dan (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Dan (fj)", ->
`
expect(p.parse("Taniela 1:1").osis()).toEqual("Dan.1.1")
expect(p.parse("Dan 1:1").osis()).toEqual("Dan.1.1")
p.include_apocrypha(false)
expect(p.parse("TANIELA 1:1").osis()).toEqual("Dan.1.1")
expect(p.parse("DAN 1:1").osis()).toEqual("Dan.1.1")
`
true
describe "Localized book Hos (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Hos (fj)", ->
`
expect(p.parse("Osea 1:1").osis()).toEqual("Hos.1.1")
expect(p.parse("Hos 1:1").osis()).toEqual("Hos.1.1")
p.include_apocrypha(false)
expect(p.parse("OSEA 1:1").osis()).toEqual("Hos.1.1")
expect(p.parse("HOS 1:1").osis()).toEqual("Hos.1.1")
`
true
describe "Localized book Joel (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Joel (fj)", ->
`
expect(p.parse("Joeli 1:1").osis()).toEqual("Joel.1.1")
expect(p.parse("Joel 1:1").osis()).toEqual("Joel.1.1")
p.include_apocrypha(false)
expect(p.parse("JOELI 1:1").osis()).toEqual("Joel.1.1")
expect(p.parse("JOEL 1:1").osis()).toEqual("Joel.1.1")
`
true
describe "Localized book Amos (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Amos (fj)", ->
`
expect(p.parse("Emosi 1:1").osis()).toEqual("Amos.1.1")
expect(p.parse("Amos 1:1").osis()).toEqual("Amos.1.1")
p.include_apocrypha(false)
expect(p.parse("EMOSI 1:1").osis()).toEqual("Amos.1.1")
expect(p.parse("AMOS 1:1").osis()).toEqual("Amos.1.1")
`
true
describe "Localized book Obad (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Obad (fj)", ->
`
expect(p.parse("Opetaia 1:1").osis()).toEqual("Obad.1.1")
expect(p.parse("Obad 1:1").osis()).toEqual("Obad.1.1")
p.include_apocrypha(false)
expect(p.parse("OPETAIA 1:1").osis()).toEqual("Obad.1.1")
expect(p.parse("OBAD 1:1").osis()).toEqual("Obad.1.1")
`
true
describe "Localized book Jonah (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Jonah (fj)", ->
`
expect(p.parse("Jonah 1:1").osis()).toEqual("Jonah.1.1")
expect(p.parse("Jona 1:1").osis()).toEqual("Jonah.1.1")
p.include_apocrypha(false)
expect(p.parse("JONAH 1:1").osis()).toEqual("Jonah.1.1")
expect(p.parse("JONA 1:1").osis()).toEqual("Jonah.1.1")
`
true
describe "Localized book Mic (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Mic (fj)", ->
`
expect(p.parse("Maika 1:1").osis()).toEqual("Mic.1.1")
expect(p.parse("Mic 1:1").osis()).toEqual("Mic.1.1")
p.include_apocrypha(false)
expect(p.parse("MAIKA 1:1").osis()).toEqual("Mic.1.1")
expect(p.parse("MIC 1:1").osis()).toEqual("Mic.1.1")
`
true
describe "Localized book Nah (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Nah (fj)", ->
`
expect(p.parse("Neumi 1:1").osis()).toEqual("Nah.1.1")
expect(p.parse("Nah 1:1").osis()).toEqual("Nah.1.1")
p.include_apocrypha(false)
expect(p.parse("NEUMI 1:1").osis()).toEqual("Nah.1.1")
expect(p.parse("NAH 1:1").osis()).toEqual("Nah.1.1")
`
true
describe "Localized book Hab (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Hab (fj)", ->
`
expect(p.parse("Apakuki 1:1").osis()).toEqual("Hab.1.1")
expect(p.parse("Hab 1:1").osis()).toEqual("Hab.1.1")
p.include_apocrypha(false)
expect(p.parse("APAKUKI 1:1").osis()).toEqual("Hab.1.1")
expect(p.parse("HAB 1:1").osis()).toEqual("Hab.1.1")
`
true
describe "Localized book Zeph (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Zeph (fj)", ->
`
expect(p.parse("Sefanaia 1:1").osis()).toEqual("Zeph.1.1")
expect(p.parse("Zeph 1:1").osis()).toEqual("Zeph.1.1")
p.include_apocrypha(false)
expect(p.parse("SEFANAIA 1:1").osis()).toEqual("Zeph.1.1")
expect(p.parse("ZEPH 1:1").osis()).toEqual("Zeph.1.1")
`
true
describe "Localized book Hag (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Hag (fj)", ->
`
expect(p.parse("Akeai 1:1").osis()).toEqual("Hag.1.1")
expect(p.parse("Hag 1:1").osis()).toEqual("Hag.1.1")
p.include_apocrypha(false)
expect(p.parse("AKEAI 1:1").osis()).toEqual("Hag.1.1")
expect(p.parse("HAG 1:1").osis()).toEqual("Hag.1.1")
`
true
describe "Localized book Zech (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Zech (fj)", ->
`
expect(p.parse("Sakaraia 1:1").osis()).toEqual("Zech.1.1")
expect(p.parse("Zech 1:1").osis()).toEqual("Zech.1.1")
p.include_apocrypha(false)
expect(p.parse("SAKARAIA 1:1").osis()).toEqual("Zech.1.1")
expect(p.parse("ZECH 1:1").osis()).toEqual("Zech.1.1")
`
true
describe "Localized book Mal (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Mal (fj)", ->
`
expect(p.parse("Malakai 1:1").osis()).toEqual("Mal.1.1")
expect(p.parse("Mal 1:1").osis()).toEqual("Mal.1.1")
p.include_apocrypha(false)
expect(p.parse("MALAKAI 1:1").osis()).toEqual("Mal.1.1")
expect(p.parse("MAL 1:1").osis()).toEqual("Mal.1.1")
`
true
describe "Localized book Matt (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Matt (fj)", ->
`
expect(p.parse("Maciu 1:1").osis()).toEqual("Matt.1.1")
expect(p.parse("Matt 1:1").osis()).toEqual("Matt.1.1")
p.include_apocrypha(false)
expect(p.parse("MACIU 1:1").osis()).toEqual("Matt.1.1")
expect(p.parse("MATT 1:1").osis()).toEqual("Matt.1.1")
`
true
describe "Localized book Mark (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Mark (fj)", ->
`
expect(p.parse("Marika 1:1").osis()).toEqual("Mark.1.1")
expect(p.parse("Mark 1:1").osis()).toEqual("Mark.1.1")
p.include_apocrypha(false)
expect(p.parse("MARIKA 1:1").osis()).toEqual("Mark.1.1")
expect(p.parse("MARK 1:1").osis()).toEqual("Mark.1.1")
`
true
describe "Localized book Luke (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Luke (fj)", ->
`
expect(p.parse("Luke 1:1").osis()).toEqual("Luke.1.1")
p.include_apocrypha(false)
expect(p.parse("LUKE 1:1").osis()).toEqual("Luke.1.1")
`
true
describe "Localized book 1John (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1John (fj)", ->
`
expect(p.parse("1 Joni 1:1").osis()).toEqual("1John.1.1")
expect(p.parse("1John 1:1").osis()).toEqual("1John.1.1")
p.include_apocrypha(false)
expect(p.parse("1 JONI 1:1").osis()).toEqual("1John.1.1")
expect(p.parse("1JOHN 1:1").osis()).toEqual("1John.1.1")
`
true
describe "Localized book 2John (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2John (fj)", ->
`
expect(p.parse("2 Joni 1:1").osis()).toEqual("2John.1.1")
expect(p.parse("2John 1:1").osis()).toEqual("2John.1.1")
p.include_apocrypha(false)
expect(p.parse("2 JONI 1:1").osis()).toEqual("2John.1.1")
expect(p.parse("2JOHN 1:1").osis()).toEqual("2John.1.1")
`
true
describe "Localized book 3John (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 3John (fj)", ->
`
expect(p.parse("3 Joni 1:1").osis()).toEqual("3John.1.1")
expect(p.parse("3John 1:1").osis()).toEqual("3John.1.1")
p.include_apocrypha(false)
expect(p.parse("3 JONI 1:1").osis()).toEqual("3John.1.1")
expect(p.parse("3JOHN 1:1").osis()).toEqual("3John.1.1")
`
true
describe "Localized book John (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: John (fj)", ->
`
expect(p.parse("John 1:1").osis()).toEqual("John.1.1")
expect(p.parse("Joni 1:1").osis()).toEqual("John.1.1")
p.include_apocrypha(false)
expect(p.parse("JOHN 1:1").osis()).toEqual("John.1.1")
expect(p.parse("JONI 1:1").osis()).toEqual("John.1.1")
`
true
describe "Localized book Acts (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Acts (fj)", ->
`
expect(p.parse("Cakacaka 1:1").osis()).toEqual("Acts.1.1")
expect(p.parse("Acts 1:1").osis()).toEqual("Acts.1.1")
p.include_apocrypha(false)
expect(p.parse("CAKACAKA 1:1").osis()).toEqual("Acts.1.1")
expect(p.parse("ACTS 1:1").osis()).toEqual("Acts.1.1")
`
true
describe "Localized book Rom (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Rom (fj)", ->
`
expect(p.parse("Roma 1:1").osis()).toEqual("Rom.1.1")
expect(p.parse("Rom 1:1").osis()).toEqual("Rom.1.1")
p.include_apocrypha(false)
expect(p.parse("ROMA 1:1").osis()).toEqual("Rom.1.1")
expect(p.parse("ROM 1:1").osis()).toEqual("Rom.1.1")
`
true
describe "Localized book 2Cor (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Cor (fj)", ->
`
expect(p.parse("2 Koronica 1:1").osis()).toEqual("2Cor.1.1")
expect(p.parse("2Cor 1:1").osis()).toEqual("2Cor.1.1")
p.include_apocrypha(false)
expect(p.parse("2 KORONICA 1:1").osis()).toEqual("2Cor.1.1")
expect(p.parse("2COR 1:1").osis()).toEqual("2Cor.1.1")
`
true
describe "Localized book 1Cor (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Cor (fj)", ->
`
expect(p.parse("1 Koronica 1:1").osis()).toEqual("1Cor.1.1")
expect(p.parse("1Cor 1:1").osis()).toEqual("1Cor.1.1")
p.include_apocrypha(false)
expect(p.parse("1 KORONICA 1:1").osis()).toEqual("1Cor.1.1")
expect(p.parse("1COR 1:1").osis()).toEqual("1Cor.1.1")
`
true
describe "Localized book Gal (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Gal (fj)", ->
`
expect(p.parse("Kalatia 1:1").osis()).toEqual("Gal.1.1")
expect(p.parse("Gal 1:1").osis()).toEqual("Gal.1.1")
p.include_apocrypha(false)
expect(p.parse("KALATIA 1:1").osis()).toEqual("Gal.1.1")
expect(p.parse("GAL 1:1").osis()).toEqual("Gal.1.1")
`
true
describe "Localized book Eph (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Eph (fj)", ->
`
expect(p.parse("Efeso 1:1").osis()).toEqual("Eph.1.1")
expect(p.parse("Eph 1:1").osis()).toEqual("Eph.1.1")
p.include_apocrypha(false)
expect(p.parse("EFESO 1:1").osis()).toEqual("Eph.1.1")
expect(p.parse("EPH 1:1").osis()).toEqual("Eph.1.1")
`
true
describe "Localized book Phil (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Phil (fj)", ->
`
expect(p.parse("Filipai 1:1").osis()).toEqual("Phil.1.1")
expect(p.parse("Phil 1:1").osis()).toEqual("Phil.1.1")
p.include_apocrypha(false)
expect(p.parse("FILIPAI 1:1").osis()).toEqual("Phil.1.1")
expect(p.parse("PHIL 1:1").osis()).toEqual("Phil.1.1")
`
true
describe "Localized book Col (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Col (fj)", ->
`
expect(p.parse("Kolosa 1:1").osis()).toEqual("Col.1.1")
expect(p.parse("Col 1:1").osis()).toEqual("Col.1.1")
p.include_apocrypha(false)
expect(p.parse("KOLOSA 1:1").osis()).toEqual("Col.1.1")
expect(p.parse("COL 1:1").osis()).toEqual("Col.1.1")
`
true
describe "Localized book 2Thess (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Thess (fj)", ->
`
expect(p.parse("2 Ceosalonaika 1:1").osis()).toEqual("2Thess.1.1")
expect(p.parse("2 Cesalonaika 1:1").osis()).toEqual("2Thess.1.1")
expect(p.parse("2Thess 1:1").osis()).toEqual("2Thess.1.1")
p.include_apocrypha(false)
expect(p.parse("2 CEOSALONAIKA 1:1").osis()).toEqual("2Thess.1.1")
expect(p.parse("2 CESALONAIKA 1:1").osis()).toEqual("2Thess.1.1")
expect(p.parse("2THESS 1:1").osis()).toEqual("2Thess.1.1")
`
true
describe "Localized book 1Thess (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Thess (fj)", ->
`
expect(p.parse("1 Ceosalonaika 1:1").osis()).toEqual("1Thess.1.1")
expect(p.parse("1 Cesalonaika 1:1").osis()).toEqual("1Thess.1.1")
expect(p.parse("1Thess 1:1").osis()).toEqual("1Thess.1.1")
p.include_apocrypha(false)
expect(p.parse("1 CEOSALONAIKA 1:1").osis()).toEqual("1Thess.1.1")
expect(p.parse("1 CESALONAIKA 1:1").osis()).toEqual("1Thess.1.1")
expect(p.parse("1THESS 1:1").osis()).toEqual("1Thess.1.1")
`
true
describe "Localized book 2Tim (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Tim (fj)", ->
`
expect(p.parse("2 Timoci 1:1").osis()).toEqual("2Tim.1.1")
expect(p.parse("2Tim 1:1").osis()).toEqual("2Tim.1.1")
p.include_apocrypha(false)
expect(p.parse("2 TIMOCI 1:1").osis()).toEqual("2Tim.1.1")
expect(p.parse("2TIM 1:1").osis()).toEqual("2Tim.1.1")
`
true
describe "Localized book 1Tim (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Tim (fj)", ->
`
expect(p.parse("1 Timoci 1:1").osis()).toEqual("1Tim.1.1")
expect(p.parse("1Tim 1:1").osis()).toEqual("1Tim.1.1")
p.include_apocrypha(false)
expect(p.parse("1 TIMOCI 1:1").osis()).toEqual("1Tim.1.1")
expect(p.parse("1TIM 1:1").osis()).toEqual("1Tim.1.1")
`
true
describe "Localized book Titus (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Titus (fj)", ->
`
expect(p.parse("Taitusi 1:1").osis()).toEqual("Titus.1.1")
expect(p.parse("Titus 1:1").osis()).toEqual("Titus.1.1")
p.include_apocrypha(false)
expect(p.parse("TAITUSI 1:1").osis()).toEqual("Titus.1.1")
expect(p.parse("TITUS 1:1").osis()).toEqual("Titus.1.1")
`
true
describe "Localized book Phlm (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Phlm (fj)", ->
`
expect(p.parse("Filimone 1:1").osis()).toEqual("Phlm.1.1")
expect(p.parse("Phlm 1:1").osis()).toEqual("Phlm.1.1")
p.include_apocrypha(false)
expect(p.parse("FILIMONE 1:1").osis()).toEqual("Phlm.1.1")
expect(p.parse("PHLM 1:1").osis()).toEqual("Phlm.1.1")
`
true
describe "Localized book Heb (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Heb (fj)", ->
`
expect(p.parse("Iperiu 1:1").osis()).toEqual("Heb.1.1")
expect(p.parse("Heb 1:1").osis()).toEqual("Heb.1.1")
p.include_apocrypha(false)
expect(p.parse("IPERIU 1:1").osis()).toEqual("Heb.1.1")
expect(p.parse("HEB 1:1").osis()).toEqual("Heb.1.1")
`
true
describe "Localized book Jas (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Jas (fj)", ->
`
expect(p.parse("Jemesa 1:1").osis()).toEqual("Jas.1.1")
expect(p.parse("Jas 1:1").osis()).toEqual("Jas.1.1")
p.include_apocrypha(false)
expect(p.parse("JEMESA 1:1").osis()).toEqual("Jas.1.1")
expect(p.parse("JAS 1:1").osis()).toEqual("Jas.1.1")
`
true
describe "Localized book 2Pet (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Pet (fj)", ->
`
expect(p.parse("2 Pita 1:1").osis()).toEqual("2Pet.1.1")
expect(p.parse("2Pet 1:1").osis()).toEqual("2Pet.1.1")
p.include_apocrypha(false)
expect(p.parse("2 PITA 1:1").osis()).toEqual("2Pet.1.1")
expect(p.parse("2PET 1:1").osis()).toEqual("2Pet.1.1")
`
true
describe "Localized book 1Pet (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Pet (fj)", ->
`
expect(p.parse("1 Pita 1:1").osis()).toEqual("1Pet.1.1")
expect(p.parse("1Pet 1:1").osis()).toEqual("1Pet.1.1")
p.include_apocrypha(false)
expect(p.parse("1 PITA 1:1").osis()).toEqual("1Pet.1.1")
expect(p.parse("1PET 1:1").osis()).toEqual("1Pet.1.1")
`
true
describe "Localized book Jude (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Jude (fj)", ->
`
expect(p.parse("Jude 1:1").osis()).toEqual("Jude.1.1")
expect(p.parse("Juta 1:1").osis()).toEqual("Jude.1.1")
p.include_apocrypha(false)
expect(p.parse("JUDE 1:1").osis()).toEqual("Jude.1.1")
expect(p.parse("JUTA 1:1").osis()).toEqual("Jude.1.1")
`
true
describe "Localized book Tob (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Tob (fj)", ->
`
expect(p.parse("Tob 1:1").osis()).toEqual("Tob.1.1")
`
true
describe "Localized book Jdt (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Jdt (fj)", ->
`
expect(p.parse("Jdt 1:1").osis()).toEqual("Jdt.1.1")
`
true
describe "Localized book Bar (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Bar (fj)", ->
`
expect(p.parse("Bar 1:1").osis()).toEqual("Bar.1.1")
`
true
describe "Localized book Sus (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Sus (fj)", ->
`
expect(p.parse("Sus 1:1").osis()).toEqual("Sus.1.1")
`
true
describe "Localized book 2Macc (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Macc (fj)", ->
`
expect(p.parse("2Macc 1:1").osis()).toEqual("2Macc.1.1")
`
true
describe "Localized book 3Macc (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 3Macc (fj)", ->
`
expect(p.parse("3Macc 1:1").osis()).toEqual("3Macc.1.1")
`
true
describe "Localized book 4Macc (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 4Macc (fj)", ->
`
expect(p.parse("4Macc 1:1").osis()).toEqual("4Macc.1.1")
`
true
describe "Localized book 1Macc (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Macc (fj)", ->
`
expect(p.parse("1Macc 1:1").osis()).toEqual("1Macc.1.1")
`
true
describe "Miscellaneous tests", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore", book_sequence_strategy: "ignore", osis_compaction_strategy: "bc", captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should return the expected language", ->
expect(p.languages).toEqual ["fj"]
it "should handle ranges (fj)", ->
expect(p.parse("Titus 1:1 i 2").osis()).toEqual "Titus.1.1-Titus.1.2"
expect(p.parse("Matt 1i2").osis()).toEqual "Matt.1-Matt.2"
expect(p.parse("Phlm 2 I 3").osis()).toEqual "Phlm.1.2-Phlm.1.3"
it "should handle chapters (fj)", ->
expect(p.parse("Titus 1:1, wase 2").osis()).toEqual "Titus.1.1,Titus.2"
expect(p.parse("Matt 3:4 WASE 6").osis()).toEqual "Matt.3.4,Matt.6"
it "should handle verses (fj)", ->
expect(p.parse("Exod 1:1 tikina 3").osis()).toEqual "Exod.1.1,Exod.1.3"
expect(p.parse("Phlm TIKINA 6").osis()).toEqual "Phlm.1.6"
it "should handle 'and' (fj)", ->
expect(p.parse("Exod 1:1 kei 3").osis()).toEqual "Exod.1.1,Exod.1.3"
expect(p.parse("Phlm 2 KEI 6").osis()).toEqual "Phlm.1.2,Phlm.1.6"
expect(p.parse("Exod 1:1 qai 3").osis()).toEqual "Exod.1.1,Exod.1.3"
expect(p.parse("Phlm 2 QAI 6").osis()).toEqual "Phlm.1.2,Phlm.1.6"
it "should handle titles (fj)", ->
expect(p.parse("Ps 3 tui, 4:2, 5:tui").osis()).toEqual "Ps.3.1,Ps.4.2,Ps.5.1"
expect(p.parse("PS 3 TUI, 4:2, 5:TUI").osis()).toEqual "Ps.3.1,Ps.4.2,Ps.5.1"
it "should handle 'ff' (fj)", ->
expect(p.parse("Rev 3ff, 4:2ff").osis()).toEqual "Rev.3-Rev.22,Rev.4.2-Rev.4.11"
expect(p.parse("REV 3 FF, 4:2 FF").osis()).toEqual "Rev.3-Rev.22,Rev.4.2-Rev.4.11"
it "should handle translations (fj)", ->
expect(p.parse("Lev 1 (FOV)").osis_and_translations()).toEqual [["Lev.1", "FOV"]]
expect(p.parse("lev 1 fov").osis_and_translations()).toEqual [["Lev.1", "FOV"]]
it "should handle boundaries (fj)", ->
p.set_options {book_alone_strategy: "full"}
expect(p.parse("\u2014Matt\u2014").osis()).toEqual "Matt.1-Matt.28"
expect(p.parse("\u201cMatt 1:1\u201d").osis()).toEqual "Matt.1.1"
| 99476 | bcv_parser = require("../../js/fj_bcv_parser.js").bcv_parser
describe "Parsing", ->
p = {}
beforeEach ->
p = new bcv_parser
p.options.osis_compaction_strategy = "b"
p.options.sequence_combination_strategy = "combine"
it "should round-trip OSIS references", ->
p.set_options osis_compaction_strategy: "bc"
books = ["Gen","Exod","Lev","Num","Deut","Josh","Judg","Ruth","1Sam","2Sam","1Kgs","2Kgs","1Chr","2Chr","Ezra","Neh","Esth","Job","Ps","Prov","Eccl","Song","Isa","Jer","Lam","Ezek","<NAME>","<NAME>","<NAME>","<NAME>mos","<NAME>ad","<NAME>","<NAME>","<NAME>ah","Hab","Zeph","Hag","Zech","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","Acts","Rom","1Cor","2Cor","Gal","Eph","Phil","Col","1Thess","2Thess","1Tim","2Tim","Titus","Phlm","Heb","Jas","1Pet","2Pet","1John","2John","3John","Jude","Rev"]
for book in books
bc = book + ".1"
bcv = bc + ".1"
bcv_range = bcv + "-" + bc + ".2"
expect(p.parse(bc).osis()).toEqual bc
expect(p.parse(bcv).osis()).toEqual bcv
expect(p.parse(bcv_range).osis()).toEqual bcv_range
it "should round-trip OSIS Apocrypha references", ->
p.set_options osis_compaction_strategy: "bc", ps151_strategy: "b"
p.include_apocrypha true
books = ["Tob","Jdt","GkEsth","Wis","Sir","Bar","PrAzar","Sus","Bel","SgThree","EpJer","1Macc","2Macc","3Macc","4Macc","1Esd","2Esd","PrMan","Ps151"]
for book in books
bc = book + ".1"
bcv = bc + ".1"
bcv_range = bcv + "-" + bc + ".2"
expect(p.parse(bc).osis()).toEqual bc
expect(p.parse(bcv).osis()).toEqual bcv
expect(p.parse(bcv_range).osis()).toEqual bcv_range
p.set_options ps151_strategy: "bc"
expect(p.parse("Ps151.1").osis()).toEqual "Ps.151"
expect(p.parse("Ps151.1.1").osis()).toEqual "Ps.151.1"
expect(p.parse("Ps151.1-Ps151.2").osis()).toEqual "Ps.151.1-Ps.151.2"
p.include_apocrypha false
for book in books
bc = book + ".1"
expect(p.parse(bc).osis()).toEqual ""
it "should handle a preceding character", ->
expect(p.parse(" Gen 1").osis()).toEqual "Gen.1"
expect(p.parse("Matt5John3").osis()).toEqual "Matt.5,John.3"
expect(p.parse("1Ps 1").osis()).toEqual ""
expect(p.parse("11Sam 1").osis()).toEqual ""
describe "Localized book Gen (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Gen (fj)", ->
`
expect(p.parse("Vakatekivu 1:1").osis()).toEqual("Gen.1.1")
expect(p.parse("Gen 1:1").osis()).toEqual("Gen.1.1")
p.include_apocrypha(false)
expect(p.parse("VAKATEKIVU 1:1").osis()).toEqual("Gen.1.1")
expect(p.parse("GEN 1:1").osis()).toEqual("Gen.1.1")
`
true
describe "Localized book Exod (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Exod (fj)", ->
`
expect(p.parse("Lako Yani 1:1").osis()).toEqual("Exod.1.1")
expect(p.parse("Exod 1:1").osis()).toEqual("Exod.1.1")
p.include_apocrypha(false)
expect(p.parse("LAKO YANI 1:1").osis()).toEqual("Exod.1.1")
expect(p.parse("EXOD 1:1").osis()).toEqual("Exod.1.1")
`
true
describe "Localized book Bel (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Bel (fj)", ->
`
expect(p.parse("Bel 1:1").osis()).toEqual("Bel.1.1")
`
true
describe "Localized book Lev (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Lev (fj)", ->
`
expect(p.parse("Vunau Ni Soro 1:1").osis()).toEqual("Lev.1.1")
expect(p.parse("Lev 1:1").osis()).toEqual("Lev.1.1")
p.include_apocrypha(false)
expect(p.parse("VUNAU NI SORO 1:1").osis()).toEqual("Lev.1.1")
expect(p.parse("LEV 1:1").osis()).toEqual("Lev.1.1")
`
true
describe "Localized book Num (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Num (fj)", ->
`
expect(p.parse("Na Kedra I Wiliwili 1:1").osis()).toEqual("Num.1.1")
expect(p.parse("Num 1:1").osis()).toEqual("Num.1.1")
p.include_apocrypha(false)
expect(p.parse("NA KEDRA I WILIWILI 1:1").osis()).toEqual("Num.1.1")
expect(p.parse("NUM 1:1").osis()).toEqual("Num.1.1")
`
true
describe "Localized book Sir (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Sir (fj)", ->
`
expect(p.parse("Sir 1:1").osis()).toEqual("Sir.1.1")
`
true
describe "Localized book Wis (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Wis (fj)", ->
`
expect(p.parse("Wis 1:1").osis()).toEqual("Wis.1.1")
`
true
describe "Localized book Lam (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Lam (fj)", ->
`
expect(p.parse("Tagi 1:1").osis()).toEqual("Lam.1.1")
expect(p.parse("Lam 1:1").osis()).toEqual("Lam.1.1")
p.include_apocrypha(false)
expect(p.parse("TAGI 1:1").osis()).toEqual("Lam.1.1")
expect(p.parse("LAM 1:1").osis()).toEqual("Lam.1.1")
`
true
describe "Localized book EpJer (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: EpJer (fj)", ->
`
expect(p.parse("EpJer 1:1").osis()).toEqual("EpJer.1.1")
`
true
describe "Localized book Rev (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Rev (fj)", ->
`
expect(p.parse("Vakatakila 1:1").osis()).toEqual("Rev.1.1")
expect(p.parse("Rev 1:1").osis()).toEqual("Rev.1.1")
p.include_apocrypha(false)
expect(p.parse("VAKATAKILA 1:1").osis()).toEqual("Rev.1.1")
expect(p.parse("REV 1:1").osis()).toEqual("Rev.1.1")
`
true
describe "Localized book PrMan (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: PrMan (fj)", ->
`
expect(p.parse("PrMan 1:1").osis()).toEqual("PrMan.1.1")
`
true
describe "Localized book Deut (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Deut (fj)", ->
`
expect(p.parse("Vakarua 1:1").osis()).toEqual("Deut.1.1")
expect(p.parse("Deut 1:1").osis()).toEqual("Deut.1.1")
p.include_apocrypha(false)
expect(p.parse("VAKARUA 1:1").osis()).toEqual("Deut.1.1")
expect(p.parse("DEUT 1:1").osis()).toEqual("Deut.1.1")
`
true
describe "Localized book Josh (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Josh (fj)", ->
`
expect(p.parse("Josua 1:1").osis()).toEqual("Josh.1.1")
expect(p.parse("Josh 1:1").osis()).toEqual("Josh.1.1")
p.include_apocrypha(false)
expect(p.parse("JOSUA 1:1").osis()).toEqual("Josh.1.1")
expect(p.parse("JOSH 1:1").osis()).toEqual("Josh.1.1")
`
true
describe "Localized book Judg (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Judg (fj)", ->
`
expect(p.parse("Turaganilewa 1:1").osis()).toEqual("Judg.1.1")
expect(p.parse("Judg 1:1").osis()).toEqual("Judg.1.1")
p.include_apocrypha(false)
expect(p.parse("TURAGANILEWA 1:1").osis()).toEqual("Judg.1.1")
expect(p.parse("JUDG 1:1").osis()).toEqual("Judg.1.1")
`
true
describe "Localized book Ruth (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Ruth (fj)", ->
`
expect(p.parse("Ruci 1:1").osis()).toEqual("Ruth.1.1")
expect(p.parse("Ruth 1:1").osis()).toEqual("Ruth.1.1")
p.include_apocrypha(false)
expect(p.parse("RUCI 1:1").osis()).toEqual("Ruth.1.1")
expect(p.parse("RUTH 1:1").osis()).toEqual("Ruth.1.1")
`
true
describe "Localized book 1Esd (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Esd (fj)", ->
`
expect(p.parse("1Esd 1:1").osis()).toEqual("1Esd.1.1")
`
true
describe "Localized book 2Esd (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Esd (fj)", ->
`
expect(p.parse("2Esd 1:1").osis()).toEqual("2Esd.1.1")
`
true
describe "Localized book Isa (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Isa (fj)", ->
`
expect(p.parse("Aisea 1:1").osis()).toEqual("Isa.1.1")
expect(p.parse("Isa 1:1").osis()).toEqual("Isa.1.1")
p.include_apocrypha(false)
expect(p.parse("AISEA 1:1").osis()).toEqual("Isa.1.1")
expect(p.parse("ISA 1:1").osis()).toEqual("Isa.1.1")
`
true
describe "Localized book 2Sam (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Sam (fj)", ->
`
expect(p.parse("2 Samuela 1:1").osis()).toEqual("2Sam.1.1")
expect(p.parse("2Sam 1:1").osis()).toEqual("2Sam.1.1")
p.include_apocrypha(false)
expect(p.parse("2 SAMUELA 1:1").osis()).toEqual("2Sam.1.1")
expect(p.parse("2SAM 1:1").osis()).toEqual("2Sam.1.1")
`
true
describe "Localized book 1Sam (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Sam (fj)", ->
`
expect(p.parse("1 Samuela 1:1").osis()).toEqual("1Sam.1.1")
expect(p.parse("1Sam 1:1").osis()).toEqual("1Sam.1.1")
p.include_apocrypha(false)
expect(p.parse("1 SAMUELA 1:1").osis()).toEqual("1Sam.1.1")
expect(p.parse("1SAM 1:1").osis()).toEqual("1Sam.1.1")
`
true
describe "Localized book 2Kgs (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Kgs (fj)", ->
`
expect(p.parse("2 Tui 1:1").osis()).toEqual("2Kgs.1.1")
expect(p.parse("2Kgs 1:1").osis()).toEqual("2Kgs.1.1")
p.include_apocrypha(false)
expect(p.parse("2 TUI 1:1").osis()).toEqual("2Kgs.1.1")
expect(p.parse("2KGS 1:1").osis()).toEqual("2Kgs.1.1")
`
true
describe "Localized book 1Kgs (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Kgs (fj)", ->
`
expect(p.parse("1 Tui 1:1").osis()).toEqual("1Kgs.1.1")
expect(p.parse("1Kgs 1:1").osis()).toEqual("1Kgs.1.1")
p.include_apocrypha(false)
expect(p.parse("1 TUI 1:1").osis()).toEqual("1Kgs.1.1")
expect(p.parse("1KGS 1:1").osis()).toEqual("1Kgs.1.1")
`
true
describe "Localized book 2Chr (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Chr (fj)", ->
`
expect(p.parse("2 Veigauna 1:1").osis()).toEqual("2Chr.1.1")
expect(p.parse("2Chr 1:1").osis()).toEqual("2Chr.1.1")
p.include_apocrypha(false)
expect(p.parse("2 VEIGAUNA 1:1").osis()).toEqual("2Chr.1.1")
expect(p.parse("2CHR 1:1").osis()).toEqual("2Chr.1.1")
`
true
describe "Localized book 1Chr (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Chr (fj)", ->
`
expect(p.parse("1 Veigauna 1:1").osis()).toEqual("1Chr.1.1")
expect(p.parse("1Chr 1:1").osis()).toEqual("1Chr.1.1")
p.include_apocrypha(false)
expect(p.parse("1 VEIGAUNA 1:1").osis()).toEqual("1Chr.1.1")
expect(p.parse("1CHR 1:1").osis()).toEqual("1Chr.1.1")
`
true
describe "Localized book Ezra (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Ezra (fj)", ->
`
expect(p.parse("Esera 1:1").osis()).toEqual("Ezra.1.1")
expect(p.parse("Ezra 1:1").osis()).toEqual("Ezra.1.1")
p.include_apocrypha(false)
expect(p.parse("ESERA 1:1").osis()).toEqual("Ezra.1.1")
expect(p.parse("EZRA 1:1").osis()).toEqual("Ezra.1.1")
`
true
describe "Localized book Neh (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Neh (fj)", ->
`
expect(p.parse("Niemaia 1:1").osis()).toEqual("Neh.1.1")
expect(p.parse("Neh 1:1").osis()).toEqual("Neh.1.1")
p.include_apocrypha(false)
expect(p.parse("NIEMAIA 1:1").osis()).toEqual("Neh.1.1")
expect(p.parse("NEH 1:1").osis()).toEqual("Neh.1.1")
`
true
describe "Localized book GkEsth (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: GkEsth (fj)", ->
`
expect(p.parse("GkEsth 1:1").osis()).toEqual("GkEsth.1.1")
`
true
describe "Localized book Esth (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Esth (fj)", ->
`
expect(p.parse("Eseta 1:1").osis()).toEqual("Esth.1.1")
expect(p.parse("Esth 1:1").osis()).toEqual("Esth.1.1")
p.include_apocrypha(false)
expect(p.parse("ESETA 1:1").osis()).toEqual("Esth.1.1")
expect(p.parse("ESTH 1:1").osis()).toEqual("Esth.1.1")
`
true
describe "Localized book Job (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Job (fj)", ->
`
expect(p.parse("Jope 1:1").osis()).toEqual("Job.1.1")
expect(p.parse("Job 1:1").osis()).toEqual("Job.1.1")
p.include_apocrypha(false)
expect(p.parse("JOPE 1:1").osis()).toEqual("Job.1.1")
expect(p.parse("JOB 1:1").osis()).toEqual("Job.1.1")
`
true
describe "Localized book Ps (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Ps (fj)", ->
`
expect(p.parse("Same 1:1").osis()).toEqual("Ps.1.1")
expect(p.parse("Ps 1:1").osis()).toEqual("Ps.1.1")
p.include_apocrypha(false)
expect(p.parse("SAME 1:1").osis()).toEqual("Ps.1.1")
expect(p.parse("PS 1:1").osis()).toEqual("Ps.1.1")
`
true
describe "Localized book PrAzar (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: PrAzar (fj)", ->
`
expect(p.parse("PrAzar 1:1").osis()).toEqual("PrAzar.1.1")
`
true
describe "Localized book Prov (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Prov (fj)", ->
`
expect(p.parse("Vakaibalebale 1:1").osis()).toEqual("Prov.1.1")
expect(p.parse("Prov 1:1").osis()).toEqual("Prov.1.1")
p.include_apocrypha(false)
expect(p.parse("VAKAIBALEBALE 1:1").osis()).toEqual("Prov.1.1")
expect(p.parse("PROV 1:1").osis()).toEqual("Prov.1.1")
`
true
describe "Localized book Eccl (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Eccl (fj)", ->
`
expect(p.parse("Dauvunau 1:1").osis()).toEqual("Eccl.1.1")
expect(p.parse("Eccl 1:1").osis()).toEqual("Eccl.1.1")
p.include_apocrypha(false)
expect(p.parse("DAUVUNAU 1:1").osis()).toEqual("Eccl.1.1")
expect(p.parse("ECCL 1:1").osis()).toEqual("Eccl.1.1")
`
true
describe "Localized book SgThree (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: SgThree (fj)", ->
`
expect(p.parse("SgThree 1:1").osis()).toEqual("SgThree.1.1")
`
true
describe "Localized book Song (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Song (fj)", ->
`
expect(p.parse("Sere I Solomoni 1:1").osis()).toEqual("Song.1.1")
expect(p.parse("Song 1:1").osis()).toEqual("Song.1.1")
p.include_apocrypha(false)
expect(p.parse("SERE I SOLOMONI 1:1").osis()).toEqual("Song.1.1")
expect(p.parse("SONG 1:1").osis()).toEqual("Song.1.1")
`
true
describe "Localized book Jer (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Jer (fj)", ->
`
expect(p.parse("Jeremaia 1:1").osis()).toEqual("Jer.1.1")
expect(p.parse("Jer 1:1").osis()).toEqual("Jer.1.1")
p.include_apocrypha(false)
expect(p.parse("JEREMAIA 1:1").osis()).toEqual("Jer.1.1")
expect(p.parse("JER 1:1").osis()).toEqual("Jer.1.1")
`
true
describe "Localized book Ezek (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: <NAME>zek (fj)", ->
`
expect(p.parse("Isikeli 1:1").osis()).toEqual("Ezek.1.1")
expect(p.parse("Ezek 1:1").osis()).toEqual("Ezek.1.1")
p.include_apocrypha(false)
expect(p.parse("ISIKELI 1:1").osis()).toEqual("Ezek.1.1")
expect(p.parse("EZEK 1:1").osis()).toEqual("Ezek.1.1")
`
true
describe "Localized book <NAME> (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: <NAME> (fj)", ->
`
expect(p.parse("Taniela 1:1").osis()).toEqual("Dan.1.1")
expect(p.parse("Dan 1:1").osis()).toEqual("Dan.1.1")
p.include_apocrypha(false)
expect(p.parse("TANIELA 1:1").osis()).toEqual("Dan.1.1")
expect(p.parse("DAN 1:1").osis()).toEqual("Dan.1.1")
`
true
describe "Localized book Hos (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Hos (fj)", ->
`
expect(p.parse("Osea 1:1").osis()).toEqual("Hos.1.1")
expect(p.parse("Hos 1:1").osis()).toEqual("Hos.1.1")
p.include_apocrypha(false)
expect(p.parse("OSEA 1:1").osis()).toEqual("Hos.1.1")
expect(p.parse("HOS 1:1").osis()).toEqual("Hos.1.1")
`
true
describe "Localized book Joel (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Joel (fj)", ->
`
expect(p.parse("Joeli 1:1").osis()).toEqual("Joel.1.1")
expect(p.parse("Joel 1:1").osis()).toEqual("Joel.1.1")
p.include_apocrypha(false)
expect(p.parse("JOELI 1:1").osis()).toEqual("Joel.1.1")
expect(p.parse("JOEL 1:1").osis()).toEqual("Joel.1.1")
`
true
describe "Localized book Amos (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Amos (fj)", ->
`
expect(p.parse("Emosi 1:1").osis()).toEqual("Amos.1.1")
expect(p.parse("Amos 1:1").osis()).toEqual("Amos.1.1")
p.include_apocrypha(false)
expect(p.parse("EMOSI 1:1").osis()).toEqual("Amos.1.1")
expect(p.parse("AMOS 1:1").osis()).toEqual("Amos.1.1")
`
true
describe "Localized book Obad (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Obad (fj)", ->
`
expect(p.parse("Opetaia 1:1").osis()).toEqual("Obad.1.1")
expect(p.parse("Obad 1:1").osis()).toEqual("Obad.1.1")
p.include_apocrypha(false)
expect(p.parse("OPETAIA 1:1").osis()).toEqual("Obad.1.1")
expect(p.parse("OBAD 1:1").osis()).toEqual("Obad.1.1")
`
true
describe "Localized book Jonah (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: <NAME> (fj)", ->
`
expect(p.parse("Jonah 1:1").osis()).toEqual("Jonah.1.1")
expect(p.parse("Jona 1:1").osis()).toEqual("Jonah.1.1")
p.include_apocrypha(false)
expect(p.parse("JONAH 1:1").osis()).toEqual("Jonah.1.1")
expect(p.parse("JONA 1:1").osis()).toEqual("Jonah.1.1")
`
true
describe "Localized book <NAME>ic (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: <NAME>ic (fj)", ->
`
expect(p.parse("Maika 1:1").osis()).toEqual("Mic.1.1")
expect(p.parse("Mic 1:1").osis()).toEqual("Mic.1.1")
p.include_apocrypha(false)
expect(p.parse("MAIKA 1:1").osis()).toEqual("Mic.1.1")
expect(p.parse("MIC 1:1").osis()).toEqual("Mic.1.1")
`
true
describe "Localized book Nah (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Nah (fj)", ->
`
expect(p.parse("Neumi 1:1").osis()).toEqual("Nah.1.1")
expect(p.parse("Nah 1:1").osis()).toEqual("Nah.1.1")
p.include_apocrypha(false)
expect(p.parse("NEUMI 1:1").osis()).toEqual("Nah.1.1")
expect(p.parse("NAH 1:1").osis()).toEqual("Nah.1.1")
`
true
describe "Localized book Hab (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Hab (fj)", ->
`
expect(p.parse("Apakuki 1:1").osis()).toEqual("Hab.1.1")
expect(p.parse("Hab 1:1").osis()).toEqual("Hab.1.1")
p.include_apocrypha(false)
expect(p.parse("APAKUKI 1:1").osis()).toEqual("Hab.1.1")
expect(p.parse("HAB 1:1").osis()).toEqual("Hab.1.1")
`
true
describe "Localized book Zeph (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Zeph (fj)", ->
`
expect(p.parse("Sefanaia 1:1").osis()).toEqual("Zeph.1.1")
expect(p.parse("Zeph 1:1").osis()).toEqual("Zeph.1.1")
p.include_apocrypha(false)
expect(p.parse("SEFANAIA 1:1").osis()).toEqual("Zeph.1.1")
expect(p.parse("ZEPH 1:1").osis()).toEqual("Zeph.1.1")
`
true
describe "Localized book Hag (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Hag (fj)", ->
`
expect(p.parse("Akeai 1:1").osis()).toEqual("Hag.1.1")
expect(p.parse("Hag 1:1").osis()).toEqual("Hag.1.1")
p.include_apocrypha(false)
expect(p.parse("AKEAI 1:1").osis()).toEqual("Hag.1.1")
expect(p.parse("HAG 1:1").osis()).toEqual("Hag.1.1")
`
true
describe "Localized book Zech (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Zech (fj)", ->
`
expect(p.parse("Sakaraia 1:1").osis()).toEqual("Zech.1.1")
expect(p.parse("Zech 1:1").osis()).toEqual("Zech.1.1")
p.include_apocrypha(false)
expect(p.parse("SAKARAIA 1:1").osis()).toEqual("Zech.1.1")
expect(p.parse("ZECH 1:1").osis()).toEqual("Zech.1.1")
`
true
describe "Localized book Mal (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Mal (fj)", ->
`
expect(p.parse("Malakai 1:1").osis()).toEqual("Mal.1.1")
expect(p.parse("Mal 1:1").osis()).toEqual("Mal.1.1")
p.include_apocrypha(false)
expect(p.parse("MALAKAI 1:1").osis()).toEqual("Mal.1.1")
expect(p.parse("MAL 1:1").osis()).toEqual("Mal.1.1")
`
true
describe "Localized book <NAME>att (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: <NAME>att (fj)", ->
`
expect(p.parse("Maciu 1:1").osis()).toEqual("Matt.1.1")
expect(p.parse("Matt 1:1").osis()).toEqual("Matt.1.1")
p.include_apocrypha(false)
expect(p.parse("MACIU 1:1").osis()).toEqual("Matt.1.1")
expect(p.parse("MATT 1:1").osis()).toEqual("Matt.1.1")
`
true
describe "Localized book Mark (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: <NAME> (fj)", ->
`
expect(p.parse("Marika 1:1").osis()).toEqual("Mark.1.1")
expect(p.parse("Mark 1:1").osis()).toEqual("Mark.1.1")
p.include_apocrypha(false)
expect(p.parse("MARIKA 1:1").osis()).toEqual("Mark.1.1")
expect(p.parse("MARK 1:1").osis()).toEqual("Mark.1.1")
`
true
describe "Localized book <NAME> (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: <NAME> (fj)", ->
`
expect(p.parse("Luke 1:1").osis()).toEqual("Luke.1.1")
p.include_apocrypha(false)
expect(p.parse("LUKE 1:1").osis()).toEqual("Luke.1.1")
`
true
describe "Localized book <NAME>John (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: <NAME>John (fj)", ->
`
expect(p.parse("1 Joni 1:1").osis()).toEqual("1John.1.1")
expect(p.parse("1John 1:1").osis()).toEqual("1John.1.1")
p.include_apocrypha(false)
expect(p.parse("1 JONI 1:1").osis()).toEqual("1John.1.1")
expect(p.parse("1JOHN 1:1").osis()).toEqual("1John.1.1")
`
true
describe "Localized book <NAME>John (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2John (fj)", ->
`
expect(p.parse("2 Joni 1:1").osis()).toEqual("2John.1.1")
expect(p.parse("2John 1:1").osis()).toEqual("2John.1.1")
p.include_apocrypha(false)
expect(p.parse("2 JONI 1:1").osis()).toEqual("2John.1.1")
expect(p.parse("2JOHN 1:1").osis()).toEqual("2John.1.1")
`
true
describe "Localized book <NAME> (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: <NAME>John (fj)", ->
`
expect(p.parse("3 Joni 1:1").osis()).toEqual("3John.1.1")
expect(p.parse("3John 1:1").osis()).toEqual("3John.1.1")
p.include_apocrypha(false)
expect(p.parse("3 JONI 1:1").osis()).toEqual("3John.1.1")
expect(p.parse("3JO<NAME> 1:1").osis()).toEqual("3John.1.1")
`
true
describe "Localized book <NAME> (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: <NAME> (fj)", ->
`
expect(p.parse("<NAME> 1:1").osis()).toEqual("John.1.1")
expect(p.parse("<NAME> 1:1").osis()).toEqual("John.1.1")
p.include_apocrypha(false)
expect(p.parse("<NAME> 1:1").osis()).toEqual("John.1.1")
expect(p.parse("<NAME> 1:1").osis()).toEqual("<NAME>.1.1")
`
true
describe "Localized book Acts (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Acts (fj)", ->
`
expect(p.parse("Cakacaka 1:1").osis()).toEqual("Acts.1.1")
expect(p.parse("Acts 1:1").osis()).toEqual("Acts.1.1")
p.include_apocrypha(false)
expect(p.parse("CAKACAKA 1:1").osis()).toEqual("Acts.1.1")
expect(p.parse("ACTS 1:1").osis()).toEqual("Acts.1.1")
`
true
describe "Localized book Rom (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Rom (fj)", ->
`
expect(p.parse("Roma 1:1").osis()).toEqual("Rom.1.1")
expect(p.parse("Rom 1:1").osis()).toEqual("Rom.1.1")
p.include_apocrypha(false)
expect(p.parse("ROMA 1:1").osis()).toEqual("Rom.1.1")
expect(p.parse("ROM 1:1").osis()).toEqual("Rom.1.1")
`
true
describe "Localized book 2Cor (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Cor (fj)", ->
`
expect(p.parse("2 Koronica 1:1").osis()).toEqual("2Cor.1.1")
expect(p.parse("2Cor 1:1").osis()).toEqual("2Cor.1.1")
p.include_apocrypha(false)
expect(p.parse("2 KORONICA 1:1").osis()).toEqual("2Cor.1.1")
expect(p.parse("2COR 1:1").osis()).toEqual("2Cor.1.1")
`
true
describe "Localized book 1Cor (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Cor (fj)", ->
`
expect(p.parse("1 Koronica 1:1").osis()).toEqual("1Cor.1.1")
expect(p.parse("1Cor 1:1").osis()).toEqual("1Cor.1.1")
p.include_apocrypha(false)
expect(p.parse("1 KORONICA 1:1").osis()).toEqual("1Cor.1.1")
expect(p.parse("1COR 1:1").osis()).toEqual("1Cor.1.1")
`
true
describe "Localized book Gal (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Gal (fj)", ->
`
expect(p.parse("Kalatia 1:1").osis()).toEqual("Gal.1.1")
expect(p.parse("Gal 1:1").osis()).toEqual("Gal.1.1")
p.include_apocrypha(false)
expect(p.parse("KALATIA 1:1").osis()).toEqual("Gal.1.1")
expect(p.parse("GAL 1:1").osis()).toEqual("Gal.1.1")
`
true
describe "Localized book Eph (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Eph (fj)", ->
`
expect(p.parse("Efeso 1:1").osis()).toEqual("Eph.1.1")
expect(p.parse("Eph 1:1").osis()).toEqual("Eph.1.1")
p.include_apocrypha(false)
expect(p.parse("EFESO 1:1").osis()).toEqual("Eph.1.1")
expect(p.parse("EPH 1:1").osis()).toEqual("Eph.1.1")
`
true
describe "Localized book <NAME> (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: <NAME> (fj)", ->
`
expect(p.parse("Filipai 1:1").osis()).toEqual("Phil.1.1")
expect(p.parse("Phil 1:1").osis()).toEqual("Phil.1.1")
p.include_apocrypha(false)
expect(p.parse("FILIPAI 1:1").osis()).toEqual("Phil.1.1")
expect(p.parse("PHIL 1:1").osis()).toEqual("Phil.1.1")
`
true
describe "Localized book Col (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Col (fj)", ->
`
expect(p.parse("Kolosa 1:1").osis()).toEqual("Col.1.1")
expect(p.parse("Col 1:1").osis()).toEqual("Col.1.1")
p.include_apocrypha(false)
expect(p.parse("KOLOSA 1:1").osis()).toEqual("Col.1.1")
expect(p.parse("COL 1:1").osis()).toEqual("Col.1.1")
`
true
describe "Localized book 2Thess (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Thess (fj)", ->
`
expect(p.parse("2 Ceosalonaika 1:1").osis()).toEqual("2Thess.1.1")
expect(p.parse("2 Cesalonaika 1:1").osis()).toEqual("2Thess.1.1")
expect(p.parse("2Thess 1:1").osis()).toEqual("2Thess.1.1")
p.include_apocrypha(false)
expect(p.parse("2 CEOSALONAIKA 1:1").osis()).toEqual("2Thess.1.1")
expect(p.parse("2 CESALONAIKA 1:1").osis()).toEqual("2Thess.1.1")
expect(p.parse("2THESS 1:1").osis()).toEqual("2Thess.1.1")
`
true
describe "Localized book 1Thess (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Thess (fj)", ->
`
expect(p.parse("1 Ceosalonaika 1:1").osis()).toEqual("1Thess.1.1")
expect(p.parse("1 Cesalonaika 1:1").osis()).toEqual("1Thess.1.1")
expect(p.parse("1Thess 1:1").osis()).toEqual("1Thess.1.1")
p.include_apocrypha(false)
expect(p.parse("1 CEOSALONAIKA 1:1").osis()).toEqual("1Thess.1.1")
expect(p.parse("1 CESALONAIKA 1:1").osis()).toEqual("1Thess.1.1")
expect(p.parse("1THESS 1:1").osis()).toEqual("1Thess.1.1")
`
true
describe "Localized book <NAME>Tim (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Tim (fj)", ->
`
expect(p.parse("2 Timoci 1:1").osis()).toEqual("2Tim.1.1")
expect(p.parse("2Tim 1:1").osis()).toEqual("2Tim.1.1")
p.include_apocrypha(false)
expect(p.parse("2 TIMOCI 1:1").osis()).toEqual("2Tim.1.1")
expect(p.parse("2TIM 1:1").osis()).toEqual("2Tim.1.1")
`
true
describe "Localized book <NAME>Tim (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Tim (fj)", ->
`
expect(p.parse("1 Timoci 1:1").osis()).toEqual("1Tim.1.1")
expect(p.parse("1Tim 1:1").osis()).toEqual("1Tim.1.1")
p.include_apocrypha(false)
expect(p.parse("1 TIMOCI 1:1").osis()).toEqual("1Tim.1.1")
expect(p.parse("1TIM 1:1").osis()).toEqual("1Tim.1.1")
`
true
describe "Localized book Titus (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Titus (fj)", ->
`
expect(p.parse("Taitusi 1:1").osis()).toEqual("Titus.1.1")
expect(p.parse("Titus 1:1").osis()).toEqual("Titus.1.1")
p.include_apocrypha(false)
expect(p.parse("TAITUSI 1:1").osis()).toEqual("Titus.1.1")
expect(p.parse("TITUS 1:1").osis()).toEqual("Titus.1.1")
`
true
describe "Localized book Phlm (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Phlm (fj)", ->
`
expect(p.parse("Filimone 1:1").osis()).toEqual("Phlm.1.1")
expect(p.parse("Phlm 1:1").osis()).toEqual("Phlm.1.1")
p.include_apocrypha(false)
expect(p.parse("FILIMONE 1:1").osis()).toEqual("Phlm.1.1")
expect(p.parse("PHLM 1:1").osis()).toEqual("Phlm.1.1")
`
true
describe "Localized book Heb (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Heb (fj)", ->
`
expect(p.parse("Iperiu 1:1").osis()).toEqual("Heb.1.1")
expect(p.parse("Heb 1:1").osis()).toEqual("Heb.1.1")
p.include_apocrypha(false)
expect(p.parse("IPERIU 1:1").osis()).toEqual("Heb.1.1")
expect(p.parse("HEB 1:1").osis()).toEqual("Heb.1.1")
`
true
describe "Localized book Jas (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Jas (fj)", ->
`
expect(p.parse("Jemesa 1:1").osis()).toEqual("Jas.1.1")
expect(p.parse("Jas 1:1").osis()).toEqual("Jas.1.1")
p.include_apocrypha(false)
expect(p.parse("JEMESA 1:1").osis()).toEqual("Jas.1.1")
expect(p.parse("JAS 1:1").osis()).toEqual("Jas.1.1")
`
true
describe "Localized book 2Pet (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Pet (fj)", ->
`
expect(p.parse("2 Pita 1:1").osis()).toEqual("2Pet.1.1")
expect(p.parse("2Pet 1:1").osis()).toEqual("2Pet.1.1")
p.include_apocrypha(false)
expect(p.parse("2 PITA 1:1").osis()).toEqual("2Pet.1.1")
expect(p.parse("2PET 1:1").osis()).toEqual("2Pet.1.1")
`
true
describe "Localized book 1Pet (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Pet (fj)", ->
`
expect(p.parse("1 Pita 1:1").osis()).toEqual("1Pet.1.1")
expect(p.parse("1Pet 1:1").osis()).toEqual("1Pet.1.1")
p.include_apocrypha(false)
expect(p.parse("1 PITA 1:1").osis()).toEqual("1Pet.1.1")
expect(p.parse("1PET 1:1").osis()).toEqual("1Pet.1.1")
`
true
describe "Localized book Jude (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Jude (fj)", ->
`
expect(p.parse("Jude 1:1").osis()).toEqual("Jude.1.1")
expect(p.parse("Juta 1:1").osis()).toEqual("Jude.1.1")
p.include_apocrypha(false)
expect(p.parse("JUDE 1:1").osis()).toEqual("Jude.1.1")
expect(p.parse("JUTA 1:1").osis()).toEqual("Jude.1.1")
`
true
describe "Localized book Tob (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Tob (fj)", ->
`
expect(p.parse("Tob 1:1").osis()).toEqual("Tob.1.1")
`
true
describe "Localized book Jdt (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Jdt (fj)", ->
`
expect(p.parse("Jdt 1:1").osis()).toEqual("Jdt.1.1")
`
true
describe "Localized book Bar (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Bar (fj)", ->
`
expect(p.parse("Bar 1:1").osis()).toEqual("Bar.1.1")
`
true
describe "Localized book Sus (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Sus (fj)", ->
`
expect(p.parse("Sus 1:1").osis()).toEqual("Sus.1.1")
`
true
describe "Localized book 2Macc (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Macc (fj)", ->
`
expect(p.parse("2Macc 1:1").osis()).toEqual("2Macc.1.1")
`
true
describe "Localized book 3Macc (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 3Macc (fj)", ->
`
expect(p.parse("3Macc 1:1").osis()).toEqual("3Macc.1.1")
`
true
describe "Localized book 4Macc (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 4Macc (fj)", ->
`
expect(p.parse("4Macc 1:1").osis()).toEqual("4Macc.1.1")
`
true
describe "Localized book 1Macc (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Macc (fj)", ->
`
expect(p.parse("1Macc 1:1").osis()).toEqual("1Macc.1.1")
`
true
describe "Miscellaneous tests", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore", book_sequence_strategy: "ignore", osis_compaction_strategy: "bc", captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should return the expected language", ->
expect(p.languages).toEqual ["fj"]
it "should handle ranges (fj)", ->
expect(p.parse("Titus 1:1 i 2").osis()).toEqual "Titus.1.1-Titus.1.2"
expect(p.parse("Matt 1i2").osis()).toEqual "Matt.1-Matt.2"
expect(p.parse("Phlm 2 I 3").osis()).toEqual "Phlm.1.2-Phlm.1.3"
it "should handle chapters (fj)", ->
expect(p.parse("Titus 1:1, wase 2").osis()).toEqual "Titus.1.1,Titus.2"
expect(p.parse("Matt 3:4 WASE 6").osis()).toEqual "Matt.3.4,Matt.6"
it "should handle verses (fj)", ->
expect(p.parse("Exod 1:1 tikina 3").osis()).toEqual "Exod.1.1,Exod.1.3"
expect(p.parse("Phlm TIKINA 6").osis()).toEqual "Phlm.1.6"
it "should handle 'and' (fj)", ->
expect(p.parse("Exod 1:1 kei 3").osis()).toEqual "Exod.1.1,Exod.1.3"
expect(p.parse("Phlm 2 KEI 6").osis()).toEqual "Phlm.1.2,Phlm.1.6"
expect(p.parse("Exod 1:1 qai 3").osis()).toEqual "Exod.1.1,Exod.1.3"
expect(p.parse("Phlm 2 QAI 6").osis()).toEqual "Phlm.1.2,Phlm.1.6"
it "should handle titles (fj)", ->
expect(p.parse("Ps 3 tui, 4:2, 5:tui").osis()).toEqual "Ps.3.1,Ps.4.2,Ps.5.1"
expect(p.parse("PS 3 TUI, 4:2, 5:TUI").osis()).toEqual "Ps.3.1,Ps.4.2,Ps.5.1"
it "should handle 'ff' (fj)", ->
expect(p.parse("Rev 3ff, 4:2ff").osis()).toEqual "Rev.3-Rev.22,Rev.4.2-Rev.4.11"
expect(p.parse("REV 3 FF, 4:2 FF").osis()).toEqual "Rev.3-Rev.22,Rev.4.2-Rev.4.11"
it "should handle translations (fj)", ->
expect(p.parse("Lev 1 (FOV)").osis_and_translations()).toEqual [["Lev.1", "FOV"]]
expect(p.parse("lev 1 fov").osis_and_translations()).toEqual [["Lev.1", "FOV"]]
it "should handle boundaries (fj)", ->
p.set_options {book_alone_strategy: "full"}
expect(p.parse("\u2014Matt\u2014").osis()).toEqual "Matt.1-Matt.28"
expect(p.parse("\u201cMatt 1:1\u201d").osis()).toEqual "Matt.1.1"
| true | bcv_parser = require("../../js/fj_bcv_parser.js").bcv_parser
describe "Parsing", ->
p = {}
beforeEach ->
p = new bcv_parser
p.options.osis_compaction_strategy = "b"
p.options.sequence_combination_strategy = "combine"
it "should round-trip OSIS references", ->
p.set_options osis_compaction_strategy: "bc"
books = ["Gen","Exod","Lev","Num","Deut","Josh","Judg","Ruth","1Sam","2Sam","1Kgs","2Kgs","1Chr","2Chr","Ezra","Neh","Esth","Job","Ps","Prov","Eccl","Song","Isa","Jer","Lam","Ezek","PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PImos","PI:NAME:<NAME>END_PIad","PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PIah","Hab","Zeph","Hag","Zech","PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PI","Acts","Rom","1Cor","2Cor","Gal","Eph","Phil","Col","1Thess","2Thess","1Tim","2Tim","Titus","Phlm","Heb","Jas","1Pet","2Pet","1John","2John","3John","Jude","Rev"]
for book in books
bc = book + ".1"
bcv = bc + ".1"
bcv_range = bcv + "-" + bc + ".2"
expect(p.parse(bc).osis()).toEqual bc
expect(p.parse(bcv).osis()).toEqual bcv
expect(p.parse(bcv_range).osis()).toEqual bcv_range
it "should round-trip OSIS Apocrypha references", ->
p.set_options osis_compaction_strategy: "bc", ps151_strategy: "b"
p.include_apocrypha true
books = ["Tob","Jdt","GkEsth","Wis","Sir","Bar","PrAzar","Sus","Bel","SgThree","EpJer","1Macc","2Macc","3Macc","4Macc","1Esd","2Esd","PrMan","Ps151"]
for book in books
bc = book + ".1"
bcv = bc + ".1"
bcv_range = bcv + "-" + bc + ".2"
expect(p.parse(bc).osis()).toEqual bc
expect(p.parse(bcv).osis()).toEqual bcv
expect(p.parse(bcv_range).osis()).toEqual bcv_range
p.set_options ps151_strategy: "bc"
expect(p.parse("Ps151.1").osis()).toEqual "Ps.151"
expect(p.parse("Ps151.1.1").osis()).toEqual "Ps.151.1"
expect(p.parse("Ps151.1-Ps151.2").osis()).toEqual "Ps.151.1-Ps.151.2"
p.include_apocrypha false
for book in books
bc = book + ".1"
expect(p.parse(bc).osis()).toEqual ""
it "should handle a preceding character", ->
expect(p.parse(" Gen 1").osis()).toEqual "Gen.1"
expect(p.parse("Matt5John3").osis()).toEqual "Matt.5,John.3"
expect(p.parse("1Ps 1").osis()).toEqual ""
expect(p.parse("11Sam 1").osis()).toEqual ""
describe "Localized book Gen (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Gen (fj)", ->
`
expect(p.parse("Vakatekivu 1:1").osis()).toEqual("Gen.1.1")
expect(p.parse("Gen 1:1").osis()).toEqual("Gen.1.1")
p.include_apocrypha(false)
expect(p.parse("VAKATEKIVU 1:1").osis()).toEqual("Gen.1.1")
expect(p.parse("GEN 1:1").osis()).toEqual("Gen.1.1")
`
true
describe "Localized book Exod (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Exod (fj)", ->
`
expect(p.parse("Lako Yani 1:1").osis()).toEqual("Exod.1.1")
expect(p.parse("Exod 1:1").osis()).toEqual("Exod.1.1")
p.include_apocrypha(false)
expect(p.parse("LAKO YANI 1:1").osis()).toEqual("Exod.1.1")
expect(p.parse("EXOD 1:1").osis()).toEqual("Exod.1.1")
`
true
describe "Localized book Bel (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Bel (fj)", ->
`
expect(p.parse("Bel 1:1").osis()).toEqual("Bel.1.1")
`
true
describe "Localized book Lev (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Lev (fj)", ->
`
expect(p.parse("Vunau Ni Soro 1:1").osis()).toEqual("Lev.1.1")
expect(p.parse("Lev 1:1").osis()).toEqual("Lev.1.1")
p.include_apocrypha(false)
expect(p.parse("VUNAU NI SORO 1:1").osis()).toEqual("Lev.1.1")
expect(p.parse("LEV 1:1").osis()).toEqual("Lev.1.1")
`
true
describe "Localized book Num (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Num (fj)", ->
`
expect(p.parse("Na Kedra I Wiliwili 1:1").osis()).toEqual("Num.1.1")
expect(p.parse("Num 1:1").osis()).toEqual("Num.1.1")
p.include_apocrypha(false)
expect(p.parse("NA KEDRA I WILIWILI 1:1").osis()).toEqual("Num.1.1")
expect(p.parse("NUM 1:1").osis()).toEqual("Num.1.1")
`
true
describe "Localized book Sir (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Sir (fj)", ->
`
expect(p.parse("Sir 1:1").osis()).toEqual("Sir.1.1")
`
true
describe "Localized book Wis (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Wis (fj)", ->
`
expect(p.parse("Wis 1:1").osis()).toEqual("Wis.1.1")
`
true
describe "Localized book Lam (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Lam (fj)", ->
`
expect(p.parse("Tagi 1:1").osis()).toEqual("Lam.1.1")
expect(p.parse("Lam 1:1").osis()).toEqual("Lam.1.1")
p.include_apocrypha(false)
expect(p.parse("TAGI 1:1").osis()).toEqual("Lam.1.1")
expect(p.parse("LAM 1:1").osis()).toEqual("Lam.1.1")
`
true
describe "Localized book EpJer (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: EpJer (fj)", ->
`
expect(p.parse("EpJer 1:1").osis()).toEqual("EpJer.1.1")
`
true
describe "Localized book Rev (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Rev (fj)", ->
`
expect(p.parse("Vakatakila 1:1").osis()).toEqual("Rev.1.1")
expect(p.parse("Rev 1:1").osis()).toEqual("Rev.1.1")
p.include_apocrypha(false)
expect(p.parse("VAKATAKILA 1:1").osis()).toEqual("Rev.1.1")
expect(p.parse("REV 1:1").osis()).toEqual("Rev.1.1")
`
true
describe "Localized book PrMan (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: PrMan (fj)", ->
`
expect(p.parse("PrMan 1:1").osis()).toEqual("PrMan.1.1")
`
true
describe "Localized book Deut (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Deut (fj)", ->
`
expect(p.parse("Vakarua 1:1").osis()).toEqual("Deut.1.1")
expect(p.parse("Deut 1:1").osis()).toEqual("Deut.1.1")
p.include_apocrypha(false)
expect(p.parse("VAKARUA 1:1").osis()).toEqual("Deut.1.1")
expect(p.parse("DEUT 1:1").osis()).toEqual("Deut.1.1")
`
true
describe "Localized book Josh (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Josh (fj)", ->
`
expect(p.parse("Josua 1:1").osis()).toEqual("Josh.1.1")
expect(p.parse("Josh 1:1").osis()).toEqual("Josh.1.1")
p.include_apocrypha(false)
expect(p.parse("JOSUA 1:1").osis()).toEqual("Josh.1.1")
expect(p.parse("JOSH 1:1").osis()).toEqual("Josh.1.1")
`
true
describe "Localized book Judg (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Judg (fj)", ->
`
expect(p.parse("Turaganilewa 1:1").osis()).toEqual("Judg.1.1")
expect(p.parse("Judg 1:1").osis()).toEqual("Judg.1.1")
p.include_apocrypha(false)
expect(p.parse("TURAGANILEWA 1:1").osis()).toEqual("Judg.1.1")
expect(p.parse("JUDG 1:1").osis()).toEqual("Judg.1.1")
`
true
describe "Localized book Ruth (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Ruth (fj)", ->
`
expect(p.parse("Ruci 1:1").osis()).toEqual("Ruth.1.1")
expect(p.parse("Ruth 1:1").osis()).toEqual("Ruth.1.1")
p.include_apocrypha(false)
expect(p.parse("RUCI 1:1").osis()).toEqual("Ruth.1.1")
expect(p.parse("RUTH 1:1").osis()).toEqual("Ruth.1.1")
`
true
describe "Localized book 1Esd (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Esd (fj)", ->
`
expect(p.parse("1Esd 1:1").osis()).toEqual("1Esd.1.1")
`
true
describe "Localized book 2Esd (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Esd (fj)", ->
`
expect(p.parse("2Esd 1:1").osis()).toEqual("2Esd.1.1")
`
true
describe "Localized book Isa (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Isa (fj)", ->
`
expect(p.parse("Aisea 1:1").osis()).toEqual("Isa.1.1")
expect(p.parse("Isa 1:1").osis()).toEqual("Isa.1.1")
p.include_apocrypha(false)
expect(p.parse("AISEA 1:1").osis()).toEqual("Isa.1.1")
expect(p.parse("ISA 1:1").osis()).toEqual("Isa.1.1")
`
true
describe "Localized book 2Sam (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Sam (fj)", ->
`
expect(p.parse("2 Samuela 1:1").osis()).toEqual("2Sam.1.1")
expect(p.parse("2Sam 1:1").osis()).toEqual("2Sam.1.1")
p.include_apocrypha(false)
expect(p.parse("2 SAMUELA 1:1").osis()).toEqual("2Sam.1.1")
expect(p.parse("2SAM 1:1").osis()).toEqual("2Sam.1.1")
`
true
describe "Localized book 1Sam (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Sam (fj)", ->
`
expect(p.parse("1 Samuela 1:1").osis()).toEqual("1Sam.1.1")
expect(p.parse("1Sam 1:1").osis()).toEqual("1Sam.1.1")
p.include_apocrypha(false)
expect(p.parse("1 SAMUELA 1:1").osis()).toEqual("1Sam.1.1")
expect(p.parse("1SAM 1:1").osis()).toEqual("1Sam.1.1")
`
true
describe "Localized book 2Kgs (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Kgs (fj)", ->
`
expect(p.parse("2 Tui 1:1").osis()).toEqual("2Kgs.1.1")
expect(p.parse("2Kgs 1:1").osis()).toEqual("2Kgs.1.1")
p.include_apocrypha(false)
expect(p.parse("2 TUI 1:1").osis()).toEqual("2Kgs.1.1")
expect(p.parse("2KGS 1:1").osis()).toEqual("2Kgs.1.1")
`
true
describe "Localized book 1Kgs (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Kgs (fj)", ->
`
expect(p.parse("1 Tui 1:1").osis()).toEqual("1Kgs.1.1")
expect(p.parse("1Kgs 1:1").osis()).toEqual("1Kgs.1.1")
p.include_apocrypha(false)
expect(p.parse("1 TUI 1:1").osis()).toEqual("1Kgs.1.1")
expect(p.parse("1KGS 1:1").osis()).toEqual("1Kgs.1.1")
`
true
describe "Localized book 2Chr (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Chr (fj)", ->
`
expect(p.parse("2 Veigauna 1:1").osis()).toEqual("2Chr.1.1")
expect(p.parse("2Chr 1:1").osis()).toEqual("2Chr.1.1")
p.include_apocrypha(false)
expect(p.parse("2 VEIGAUNA 1:1").osis()).toEqual("2Chr.1.1")
expect(p.parse("2CHR 1:1").osis()).toEqual("2Chr.1.1")
`
true
describe "Localized book 1Chr (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Chr (fj)", ->
`
expect(p.parse("1 Veigauna 1:1").osis()).toEqual("1Chr.1.1")
expect(p.parse("1Chr 1:1").osis()).toEqual("1Chr.1.1")
p.include_apocrypha(false)
expect(p.parse("1 VEIGAUNA 1:1").osis()).toEqual("1Chr.1.1")
expect(p.parse("1CHR 1:1").osis()).toEqual("1Chr.1.1")
`
true
describe "Localized book Ezra (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Ezra (fj)", ->
`
expect(p.parse("Esera 1:1").osis()).toEqual("Ezra.1.1")
expect(p.parse("Ezra 1:1").osis()).toEqual("Ezra.1.1")
p.include_apocrypha(false)
expect(p.parse("ESERA 1:1").osis()).toEqual("Ezra.1.1")
expect(p.parse("EZRA 1:1").osis()).toEqual("Ezra.1.1")
`
true
describe "Localized book Neh (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Neh (fj)", ->
`
expect(p.parse("Niemaia 1:1").osis()).toEqual("Neh.1.1")
expect(p.parse("Neh 1:1").osis()).toEqual("Neh.1.1")
p.include_apocrypha(false)
expect(p.parse("NIEMAIA 1:1").osis()).toEqual("Neh.1.1")
expect(p.parse("NEH 1:1").osis()).toEqual("Neh.1.1")
`
true
describe "Localized book GkEsth (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: GkEsth (fj)", ->
`
expect(p.parse("GkEsth 1:1").osis()).toEqual("GkEsth.1.1")
`
true
describe "Localized book Esth (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Esth (fj)", ->
`
expect(p.parse("Eseta 1:1").osis()).toEqual("Esth.1.1")
expect(p.parse("Esth 1:1").osis()).toEqual("Esth.1.1")
p.include_apocrypha(false)
expect(p.parse("ESETA 1:1").osis()).toEqual("Esth.1.1")
expect(p.parse("ESTH 1:1").osis()).toEqual("Esth.1.1")
`
true
describe "Localized book Job (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Job (fj)", ->
`
expect(p.parse("Jope 1:1").osis()).toEqual("Job.1.1")
expect(p.parse("Job 1:1").osis()).toEqual("Job.1.1")
p.include_apocrypha(false)
expect(p.parse("JOPE 1:1").osis()).toEqual("Job.1.1")
expect(p.parse("JOB 1:1").osis()).toEqual("Job.1.1")
`
true
describe "Localized book Ps (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Ps (fj)", ->
`
expect(p.parse("Same 1:1").osis()).toEqual("Ps.1.1")
expect(p.parse("Ps 1:1").osis()).toEqual("Ps.1.1")
p.include_apocrypha(false)
expect(p.parse("SAME 1:1").osis()).toEqual("Ps.1.1")
expect(p.parse("PS 1:1").osis()).toEqual("Ps.1.1")
`
true
describe "Localized book PrAzar (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: PrAzar (fj)", ->
`
expect(p.parse("PrAzar 1:1").osis()).toEqual("PrAzar.1.1")
`
true
describe "Localized book Prov (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Prov (fj)", ->
`
expect(p.parse("Vakaibalebale 1:1").osis()).toEqual("Prov.1.1")
expect(p.parse("Prov 1:1").osis()).toEqual("Prov.1.1")
p.include_apocrypha(false)
expect(p.parse("VAKAIBALEBALE 1:1").osis()).toEqual("Prov.1.1")
expect(p.parse("PROV 1:1").osis()).toEqual("Prov.1.1")
`
true
describe "Localized book Eccl (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Eccl (fj)", ->
`
expect(p.parse("Dauvunau 1:1").osis()).toEqual("Eccl.1.1")
expect(p.parse("Eccl 1:1").osis()).toEqual("Eccl.1.1")
p.include_apocrypha(false)
expect(p.parse("DAUVUNAU 1:1").osis()).toEqual("Eccl.1.1")
expect(p.parse("ECCL 1:1").osis()).toEqual("Eccl.1.1")
`
true
describe "Localized book SgThree (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: SgThree (fj)", ->
`
expect(p.parse("SgThree 1:1").osis()).toEqual("SgThree.1.1")
`
true
describe "Localized book Song (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Song (fj)", ->
`
expect(p.parse("Sere I Solomoni 1:1").osis()).toEqual("Song.1.1")
expect(p.parse("Song 1:1").osis()).toEqual("Song.1.1")
p.include_apocrypha(false)
expect(p.parse("SERE I SOLOMONI 1:1").osis()).toEqual("Song.1.1")
expect(p.parse("SONG 1:1").osis()).toEqual("Song.1.1")
`
true
describe "Localized book Jer (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Jer (fj)", ->
`
expect(p.parse("Jeremaia 1:1").osis()).toEqual("Jer.1.1")
expect(p.parse("Jer 1:1").osis()).toEqual("Jer.1.1")
p.include_apocrypha(false)
expect(p.parse("JEREMAIA 1:1").osis()).toEqual("Jer.1.1")
expect(p.parse("JER 1:1").osis()).toEqual("Jer.1.1")
`
true
describe "Localized book Ezek (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: PI:NAME:<NAME>END_PIzek (fj)", ->
`
expect(p.parse("Isikeli 1:1").osis()).toEqual("Ezek.1.1")
expect(p.parse("Ezek 1:1").osis()).toEqual("Ezek.1.1")
p.include_apocrypha(false)
expect(p.parse("ISIKELI 1:1").osis()).toEqual("Ezek.1.1")
expect(p.parse("EZEK 1:1").osis()).toEqual("Ezek.1.1")
`
true
describe "Localized book PI:NAME:<NAME>END_PI (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: PI:NAME:<NAME>END_PI (fj)", ->
`
expect(p.parse("Taniela 1:1").osis()).toEqual("Dan.1.1")
expect(p.parse("Dan 1:1").osis()).toEqual("Dan.1.1")
p.include_apocrypha(false)
expect(p.parse("TANIELA 1:1").osis()).toEqual("Dan.1.1")
expect(p.parse("DAN 1:1").osis()).toEqual("Dan.1.1")
`
true
describe "Localized book Hos (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Hos (fj)", ->
`
expect(p.parse("Osea 1:1").osis()).toEqual("Hos.1.1")
expect(p.parse("Hos 1:1").osis()).toEqual("Hos.1.1")
p.include_apocrypha(false)
expect(p.parse("OSEA 1:1").osis()).toEqual("Hos.1.1")
expect(p.parse("HOS 1:1").osis()).toEqual("Hos.1.1")
`
true
describe "Localized book Joel (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Joel (fj)", ->
`
expect(p.parse("Joeli 1:1").osis()).toEqual("Joel.1.1")
expect(p.parse("Joel 1:1").osis()).toEqual("Joel.1.1")
p.include_apocrypha(false)
expect(p.parse("JOELI 1:1").osis()).toEqual("Joel.1.1")
expect(p.parse("JOEL 1:1").osis()).toEqual("Joel.1.1")
`
true
describe "Localized book Amos (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Amos (fj)", ->
`
expect(p.parse("Emosi 1:1").osis()).toEqual("Amos.1.1")
expect(p.parse("Amos 1:1").osis()).toEqual("Amos.1.1")
p.include_apocrypha(false)
expect(p.parse("EMOSI 1:1").osis()).toEqual("Amos.1.1")
expect(p.parse("AMOS 1:1").osis()).toEqual("Amos.1.1")
`
true
describe "Localized book Obad (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Obad (fj)", ->
`
expect(p.parse("Opetaia 1:1").osis()).toEqual("Obad.1.1")
expect(p.parse("Obad 1:1").osis()).toEqual("Obad.1.1")
p.include_apocrypha(false)
expect(p.parse("OPETAIA 1:1").osis()).toEqual("Obad.1.1")
expect(p.parse("OBAD 1:1").osis()).toEqual("Obad.1.1")
`
true
describe "Localized book Jonah (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: PI:NAME:<NAME>END_PI (fj)", ->
`
expect(p.parse("Jonah 1:1").osis()).toEqual("Jonah.1.1")
expect(p.parse("Jona 1:1").osis()).toEqual("Jonah.1.1")
p.include_apocrypha(false)
expect(p.parse("JONAH 1:1").osis()).toEqual("Jonah.1.1")
expect(p.parse("JONA 1:1").osis()).toEqual("Jonah.1.1")
`
true
describe "Localized book PI:NAME:<NAME>END_PIic (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: PI:NAME:<NAME>END_PIic (fj)", ->
`
expect(p.parse("Maika 1:1").osis()).toEqual("Mic.1.1")
expect(p.parse("Mic 1:1").osis()).toEqual("Mic.1.1")
p.include_apocrypha(false)
expect(p.parse("MAIKA 1:1").osis()).toEqual("Mic.1.1")
expect(p.parse("MIC 1:1").osis()).toEqual("Mic.1.1")
`
true
describe "Localized book Nah (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Nah (fj)", ->
`
expect(p.parse("Neumi 1:1").osis()).toEqual("Nah.1.1")
expect(p.parse("Nah 1:1").osis()).toEqual("Nah.1.1")
p.include_apocrypha(false)
expect(p.parse("NEUMI 1:1").osis()).toEqual("Nah.1.1")
expect(p.parse("NAH 1:1").osis()).toEqual("Nah.1.1")
`
true
describe "Localized book Hab (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Hab (fj)", ->
`
expect(p.parse("Apakuki 1:1").osis()).toEqual("Hab.1.1")
expect(p.parse("Hab 1:1").osis()).toEqual("Hab.1.1")
p.include_apocrypha(false)
expect(p.parse("APAKUKI 1:1").osis()).toEqual("Hab.1.1")
expect(p.parse("HAB 1:1").osis()).toEqual("Hab.1.1")
`
true
describe "Localized book Zeph (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Zeph (fj)", ->
`
expect(p.parse("Sefanaia 1:1").osis()).toEqual("Zeph.1.1")
expect(p.parse("Zeph 1:1").osis()).toEqual("Zeph.1.1")
p.include_apocrypha(false)
expect(p.parse("SEFANAIA 1:1").osis()).toEqual("Zeph.1.1")
expect(p.parse("ZEPH 1:1").osis()).toEqual("Zeph.1.1")
`
true
describe "Localized book Hag (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Hag (fj)", ->
`
expect(p.parse("Akeai 1:1").osis()).toEqual("Hag.1.1")
expect(p.parse("Hag 1:1").osis()).toEqual("Hag.1.1")
p.include_apocrypha(false)
expect(p.parse("AKEAI 1:1").osis()).toEqual("Hag.1.1")
expect(p.parse("HAG 1:1").osis()).toEqual("Hag.1.1")
`
true
describe "Localized book Zech (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Zech (fj)", ->
`
expect(p.parse("Sakaraia 1:1").osis()).toEqual("Zech.1.1")
expect(p.parse("Zech 1:1").osis()).toEqual("Zech.1.1")
p.include_apocrypha(false)
expect(p.parse("SAKARAIA 1:1").osis()).toEqual("Zech.1.1")
expect(p.parse("ZECH 1:1").osis()).toEqual("Zech.1.1")
`
true
describe "Localized book Mal (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Mal (fj)", ->
`
expect(p.parse("Malakai 1:1").osis()).toEqual("Mal.1.1")
expect(p.parse("Mal 1:1").osis()).toEqual("Mal.1.1")
p.include_apocrypha(false)
expect(p.parse("MALAKAI 1:1").osis()).toEqual("Mal.1.1")
expect(p.parse("MAL 1:1").osis()).toEqual("Mal.1.1")
`
true
describe "Localized book PI:NAME:<NAME>END_PIatt (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: PI:NAME:<NAME>END_PIatt (fj)", ->
`
expect(p.parse("Maciu 1:1").osis()).toEqual("Matt.1.1")
expect(p.parse("Matt 1:1").osis()).toEqual("Matt.1.1")
p.include_apocrypha(false)
expect(p.parse("MACIU 1:1").osis()).toEqual("Matt.1.1")
expect(p.parse("MATT 1:1").osis()).toEqual("Matt.1.1")
`
true
describe "Localized book Mark (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: PI:NAME:<NAME>END_PI (fj)", ->
`
expect(p.parse("Marika 1:1").osis()).toEqual("Mark.1.1")
expect(p.parse("Mark 1:1").osis()).toEqual("Mark.1.1")
p.include_apocrypha(false)
expect(p.parse("MARIKA 1:1").osis()).toEqual("Mark.1.1")
expect(p.parse("MARK 1:1").osis()).toEqual("Mark.1.1")
`
true
describe "Localized book PI:NAME:<NAME>END_PI (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: PI:NAME:<NAME>END_PI (fj)", ->
`
expect(p.parse("Luke 1:1").osis()).toEqual("Luke.1.1")
p.include_apocrypha(false)
expect(p.parse("LUKE 1:1").osis()).toEqual("Luke.1.1")
`
true
describe "Localized book PI:NAME:<NAME>END_PIJohn (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: PI:NAME:<NAME>END_PIJohn (fj)", ->
`
expect(p.parse("1 Joni 1:1").osis()).toEqual("1John.1.1")
expect(p.parse("1John 1:1").osis()).toEqual("1John.1.1")
p.include_apocrypha(false)
expect(p.parse("1 JONI 1:1").osis()).toEqual("1John.1.1")
expect(p.parse("1JOHN 1:1").osis()).toEqual("1John.1.1")
`
true
describe "Localized book PI:NAME:<NAME>END_PIJohn (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2John (fj)", ->
`
expect(p.parse("2 Joni 1:1").osis()).toEqual("2John.1.1")
expect(p.parse("2John 1:1").osis()).toEqual("2John.1.1")
p.include_apocrypha(false)
expect(p.parse("2 JONI 1:1").osis()).toEqual("2John.1.1")
expect(p.parse("2JOHN 1:1").osis()).toEqual("2John.1.1")
`
true
describe "Localized book PI:NAME:<NAME>END_PI (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: PI:NAME:<NAME>END_PIJohn (fj)", ->
`
expect(p.parse("3 Joni 1:1").osis()).toEqual("3John.1.1")
expect(p.parse("3John 1:1").osis()).toEqual("3John.1.1")
p.include_apocrypha(false)
expect(p.parse("3 JONI 1:1").osis()).toEqual("3John.1.1")
expect(p.parse("3JOPI:NAME:<NAME>END_PI 1:1").osis()).toEqual("3John.1.1")
`
true
describe "Localized book PI:NAME:<NAME>END_PI (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: PI:NAME:<NAME>END_PI (fj)", ->
`
expect(p.parse("PI:NAME:<NAME>END_PI 1:1").osis()).toEqual("John.1.1")
expect(p.parse("PI:NAME:<NAME>END_PI 1:1").osis()).toEqual("John.1.1")
p.include_apocrypha(false)
expect(p.parse("PI:NAME:<NAME>END_PI 1:1").osis()).toEqual("John.1.1")
expect(p.parse("PI:NAME:<NAME>END_PI 1:1").osis()).toEqual("PI:NAME:<NAME>END_PI.1.1")
`
true
describe "Localized book Acts (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Acts (fj)", ->
`
expect(p.parse("Cakacaka 1:1").osis()).toEqual("Acts.1.1")
expect(p.parse("Acts 1:1").osis()).toEqual("Acts.1.1")
p.include_apocrypha(false)
expect(p.parse("CAKACAKA 1:1").osis()).toEqual("Acts.1.1")
expect(p.parse("ACTS 1:1").osis()).toEqual("Acts.1.1")
`
true
describe "Localized book Rom (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Rom (fj)", ->
`
expect(p.parse("Roma 1:1").osis()).toEqual("Rom.1.1")
expect(p.parse("Rom 1:1").osis()).toEqual("Rom.1.1")
p.include_apocrypha(false)
expect(p.parse("ROMA 1:1").osis()).toEqual("Rom.1.1")
expect(p.parse("ROM 1:1").osis()).toEqual("Rom.1.1")
`
true
describe "Localized book 2Cor (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Cor (fj)", ->
`
expect(p.parse("2 Koronica 1:1").osis()).toEqual("2Cor.1.1")
expect(p.parse("2Cor 1:1").osis()).toEqual("2Cor.1.1")
p.include_apocrypha(false)
expect(p.parse("2 KORONICA 1:1").osis()).toEqual("2Cor.1.1")
expect(p.parse("2COR 1:1").osis()).toEqual("2Cor.1.1")
`
true
describe "Localized book 1Cor (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Cor (fj)", ->
`
expect(p.parse("1 Koronica 1:1").osis()).toEqual("1Cor.1.1")
expect(p.parse("1Cor 1:1").osis()).toEqual("1Cor.1.1")
p.include_apocrypha(false)
expect(p.parse("1 KORONICA 1:1").osis()).toEqual("1Cor.1.1")
expect(p.parse("1COR 1:1").osis()).toEqual("1Cor.1.1")
`
true
describe "Localized book Gal (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Gal (fj)", ->
`
expect(p.parse("Kalatia 1:1").osis()).toEqual("Gal.1.1")
expect(p.parse("Gal 1:1").osis()).toEqual("Gal.1.1")
p.include_apocrypha(false)
expect(p.parse("KALATIA 1:1").osis()).toEqual("Gal.1.1")
expect(p.parse("GAL 1:1").osis()).toEqual("Gal.1.1")
`
true
describe "Localized book Eph (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Eph (fj)", ->
`
expect(p.parse("Efeso 1:1").osis()).toEqual("Eph.1.1")
expect(p.parse("Eph 1:1").osis()).toEqual("Eph.1.1")
p.include_apocrypha(false)
expect(p.parse("EFESO 1:1").osis()).toEqual("Eph.1.1")
expect(p.parse("EPH 1:1").osis()).toEqual("Eph.1.1")
`
true
describe "Localized book PI:NAME:<NAME>END_PI (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: PI:NAME:<NAME>END_PI (fj)", ->
`
expect(p.parse("Filipai 1:1").osis()).toEqual("Phil.1.1")
expect(p.parse("Phil 1:1").osis()).toEqual("Phil.1.1")
p.include_apocrypha(false)
expect(p.parse("FILIPAI 1:1").osis()).toEqual("Phil.1.1")
expect(p.parse("PHIL 1:1").osis()).toEqual("Phil.1.1")
`
true
describe "Localized book Col (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Col (fj)", ->
`
expect(p.parse("Kolosa 1:1").osis()).toEqual("Col.1.1")
expect(p.parse("Col 1:1").osis()).toEqual("Col.1.1")
p.include_apocrypha(false)
expect(p.parse("KOLOSA 1:1").osis()).toEqual("Col.1.1")
expect(p.parse("COL 1:1").osis()).toEqual("Col.1.1")
`
true
describe "Localized book 2Thess (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Thess (fj)", ->
`
expect(p.parse("2 Ceosalonaika 1:1").osis()).toEqual("2Thess.1.1")
expect(p.parse("2 Cesalonaika 1:1").osis()).toEqual("2Thess.1.1")
expect(p.parse("2Thess 1:1").osis()).toEqual("2Thess.1.1")
p.include_apocrypha(false)
expect(p.parse("2 CEOSALONAIKA 1:1").osis()).toEqual("2Thess.1.1")
expect(p.parse("2 CESALONAIKA 1:1").osis()).toEqual("2Thess.1.1")
expect(p.parse("2THESS 1:1").osis()).toEqual("2Thess.1.1")
`
true
describe "Localized book 1Thess (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Thess (fj)", ->
`
expect(p.parse("1 Ceosalonaika 1:1").osis()).toEqual("1Thess.1.1")
expect(p.parse("1 Cesalonaika 1:1").osis()).toEqual("1Thess.1.1")
expect(p.parse("1Thess 1:1").osis()).toEqual("1Thess.1.1")
p.include_apocrypha(false)
expect(p.parse("1 CEOSALONAIKA 1:1").osis()).toEqual("1Thess.1.1")
expect(p.parse("1 CESALONAIKA 1:1").osis()).toEqual("1Thess.1.1")
expect(p.parse("1THESS 1:1").osis()).toEqual("1Thess.1.1")
`
true
describe "Localized book PI:NAME:<NAME>END_PITim (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Tim (fj)", ->
`
expect(p.parse("2 Timoci 1:1").osis()).toEqual("2Tim.1.1")
expect(p.parse("2Tim 1:1").osis()).toEqual("2Tim.1.1")
p.include_apocrypha(false)
expect(p.parse("2 TIMOCI 1:1").osis()).toEqual("2Tim.1.1")
expect(p.parse("2TIM 1:1").osis()).toEqual("2Tim.1.1")
`
true
describe "Localized book PI:NAME:<NAME>END_PITim (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Tim (fj)", ->
`
expect(p.parse("1 Timoci 1:1").osis()).toEqual("1Tim.1.1")
expect(p.parse("1Tim 1:1").osis()).toEqual("1Tim.1.1")
p.include_apocrypha(false)
expect(p.parse("1 TIMOCI 1:1").osis()).toEqual("1Tim.1.1")
expect(p.parse("1TIM 1:1").osis()).toEqual("1Tim.1.1")
`
true
describe "Localized book Titus (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Titus (fj)", ->
`
expect(p.parse("Taitusi 1:1").osis()).toEqual("Titus.1.1")
expect(p.parse("Titus 1:1").osis()).toEqual("Titus.1.1")
p.include_apocrypha(false)
expect(p.parse("TAITUSI 1:1").osis()).toEqual("Titus.1.1")
expect(p.parse("TITUS 1:1").osis()).toEqual("Titus.1.1")
`
true
describe "Localized book Phlm (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Phlm (fj)", ->
`
expect(p.parse("Filimone 1:1").osis()).toEqual("Phlm.1.1")
expect(p.parse("Phlm 1:1").osis()).toEqual("Phlm.1.1")
p.include_apocrypha(false)
expect(p.parse("FILIMONE 1:1").osis()).toEqual("Phlm.1.1")
expect(p.parse("PHLM 1:1").osis()).toEqual("Phlm.1.1")
`
true
describe "Localized book Heb (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Heb (fj)", ->
`
expect(p.parse("Iperiu 1:1").osis()).toEqual("Heb.1.1")
expect(p.parse("Heb 1:1").osis()).toEqual("Heb.1.1")
p.include_apocrypha(false)
expect(p.parse("IPERIU 1:1").osis()).toEqual("Heb.1.1")
expect(p.parse("HEB 1:1").osis()).toEqual("Heb.1.1")
`
true
describe "Localized book Jas (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Jas (fj)", ->
`
expect(p.parse("Jemesa 1:1").osis()).toEqual("Jas.1.1")
expect(p.parse("Jas 1:1").osis()).toEqual("Jas.1.1")
p.include_apocrypha(false)
expect(p.parse("JEMESA 1:1").osis()).toEqual("Jas.1.1")
expect(p.parse("JAS 1:1").osis()).toEqual("Jas.1.1")
`
true
describe "Localized book 2Pet (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Pet (fj)", ->
`
expect(p.parse("2 Pita 1:1").osis()).toEqual("2Pet.1.1")
expect(p.parse("2Pet 1:1").osis()).toEqual("2Pet.1.1")
p.include_apocrypha(false)
expect(p.parse("2 PITA 1:1").osis()).toEqual("2Pet.1.1")
expect(p.parse("2PET 1:1").osis()).toEqual("2Pet.1.1")
`
true
describe "Localized book 1Pet (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Pet (fj)", ->
`
expect(p.parse("1 Pita 1:1").osis()).toEqual("1Pet.1.1")
expect(p.parse("1Pet 1:1").osis()).toEqual("1Pet.1.1")
p.include_apocrypha(false)
expect(p.parse("1 PITA 1:1").osis()).toEqual("1Pet.1.1")
expect(p.parse("1PET 1:1").osis()).toEqual("1Pet.1.1")
`
true
describe "Localized book Jude (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Jude (fj)", ->
`
expect(p.parse("Jude 1:1").osis()).toEqual("Jude.1.1")
expect(p.parse("Juta 1:1").osis()).toEqual("Jude.1.1")
p.include_apocrypha(false)
expect(p.parse("JUDE 1:1").osis()).toEqual("Jude.1.1")
expect(p.parse("JUTA 1:1").osis()).toEqual("Jude.1.1")
`
true
describe "Localized book Tob (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Tob (fj)", ->
`
expect(p.parse("Tob 1:1").osis()).toEqual("Tob.1.1")
`
true
describe "Localized book Jdt (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Jdt (fj)", ->
`
expect(p.parse("Jdt 1:1").osis()).toEqual("Jdt.1.1")
`
true
describe "Localized book Bar (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Bar (fj)", ->
`
expect(p.parse("Bar 1:1").osis()).toEqual("Bar.1.1")
`
true
describe "Localized book Sus (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: Sus (fj)", ->
`
expect(p.parse("Sus 1:1").osis()).toEqual("Sus.1.1")
`
true
describe "Localized book 2Macc (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 2Macc (fj)", ->
`
expect(p.parse("2Macc 1:1").osis()).toEqual("2Macc.1.1")
`
true
describe "Localized book 3Macc (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 3Macc (fj)", ->
`
expect(p.parse("3Macc 1:1").osis()).toEqual("3Macc.1.1")
`
true
describe "Localized book 4Macc (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 4Macc (fj)", ->
`
expect(p.parse("4Macc 1:1").osis()).toEqual("4Macc.1.1")
`
true
describe "Localized book 1Macc (fj)", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore",book_sequence_strategy: "ignore",osis_compaction_strategy: "bc",captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should handle book: 1Macc (fj)", ->
`
expect(p.parse("1Macc 1:1").osis()).toEqual("1Macc.1.1")
`
true
describe "Miscellaneous tests", ->
p = {}
beforeEach ->
p = new bcv_parser
p.set_options book_alone_strategy: "ignore", book_sequence_strategy: "ignore", osis_compaction_strategy: "bc", captive_end_digits_strategy: "delete"
p.include_apocrypha true
it "should return the expected language", ->
expect(p.languages).toEqual ["fj"]
it "should handle ranges (fj)", ->
expect(p.parse("Titus 1:1 i 2").osis()).toEqual "Titus.1.1-Titus.1.2"
expect(p.parse("Matt 1i2").osis()).toEqual "Matt.1-Matt.2"
expect(p.parse("Phlm 2 I 3").osis()).toEqual "Phlm.1.2-Phlm.1.3"
it "should handle chapters (fj)", ->
expect(p.parse("Titus 1:1, wase 2").osis()).toEqual "Titus.1.1,Titus.2"
expect(p.parse("Matt 3:4 WASE 6").osis()).toEqual "Matt.3.4,Matt.6"
it "should handle verses (fj)", ->
expect(p.parse("Exod 1:1 tikina 3").osis()).toEqual "Exod.1.1,Exod.1.3"
expect(p.parse("Phlm TIKINA 6").osis()).toEqual "Phlm.1.6"
it "should handle 'and' (fj)", ->
expect(p.parse("Exod 1:1 kei 3").osis()).toEqual "Exod.1.1,Exod.1.3"
expect(p.parse("Phlm 2 KEI 6").osis()).toEqual "Phlm.1.2,Phlm.1.6"
expect(p.parse("Exod 1:1 qai 3").osis()).toEqual "Exod.1.1,Exod.1.3"
expect(p.parse("Phlm 2 QAI 6").osis()).toEqual "Phlm.1.2,Phlm.1.6"
it "should handle titles (fj)", ->
expect(p.parse("Ps 3 tui, 4:2, 5:tui").osis()).toEqual "Ps.3.1,Ps.4.2,Ps.5.1"
expect(p.parse("PS 3 TUI, 4:2, 5:TUI").osis()).toEqual "Ps.3.1,Ps.4.2,Ps.5.1"
it "should handle 'ff' (fj)", ->
expect(p.parse("Rev 3ff, 4:2ff").osis()).toEqual "Rev.3-Rev.22,Rev.4.2-Rev.4.11"
expect(p.parse("REV 3 FF, 4:2 FF").osis()).toEqual "Rev.3-Rev.22,Rev.4.2-Rev.4.11"
it "should handle translations (fj)", ->
expect(p.parse("Lev 1 (FOV)").osis_and_translations()).toEqual [["Lev.1", "FOV"]]
expect(p.parse("lev 1 fov").osis_and_translations()).toEqual [["Lev.1", "FOV"]]
it "should handle boundaries (fj)", ->
p.set_options {book_alone_strategy: "full"}
expect(p.parse("\u2014Matt\u2014").osis()).toEqual "Matt.1-Matt.28"
expect(p.parse("\u201cMatt 1:1\u201d").osis()).toEqual "Matt.1.1"
|
[
{
"context": " Date: 'Valuta'\n Payee: 'Sender / Empfänger'\n Category: 'Kategorie'\n Memo: 'Ver",
"end": 2012,
"score": 0.6664633750915527,
"start": 2006,
"tag": "NAME",
"value": "fänger"
}
] | app.coffee | PetePriority/ynab-csv | 0 | # see http://stackoverflow.com/questions/2897619/using-html5-javascript-to-generate-and-save-a-file
# see http://stackoverflow.com/questions/18662404/download-lengthy-data-as-a-csv-file
angular.element(document).ready ->
angular.module('app', [])
angular.module("app").directive "fileread", [->
scope:
fileread: "="
link: (scope, element, attributes) ->
element.bind "change", (changeEvent) ->
reader = new FileReader()
reader.onload = (loadEvent) ->
scope.$apply ->
scope.fileread = loadEvent.target.result
reader.readAsText changeEvent.target.files[0]
]
angular.module("app").directive "dropzone", [->
transclude: true
replace: true
template: '<div class="dropzone"><div ng-transclude></div></div>'
scope:
dropzone: "="
link: (scope, element, attributes) ->
element.bind 'dragenter', (event) ->
element.addClass('dragging')
event.preventDefault()
element.bind 'dragover', (event) ->
element.addClass('dragging')
event.preventDefault()
efct = event.dataTransfer.effectAllowed
event.dataTransfer.dropEffect = if 'move' == efct or 'linkMove' == efct then 'move' else 'copy'
element.bind 'dragleave', (event) ->
element.removeClass('dragging')
event.preventDefault()
element.bind 'drop', (event) ->
element.removeClass('dragging')
event.preventDefault()
event.stopPropagation()
reader = new FileReader()
reader.onload = (loadEvent) ->
scope.$apply ->
scope.dropzone = loadEvent.target.result
reader.readAsText event.dataTransfer.files[0]
]
# Application code
angular.module('app').controller 'ParseController', ($scope) ->
$scope.angular_loaded = true
$scope.ynab_cols = ['Date','Payee','Category','Memo','Outflow','Inflow']
$scope.data = {}
$scope.ynab_map =
Date: 'Valuta'
Payee: 'Sender / Empfänger'
Category: 'Kategorie'
Memo: 'Verwendungszweck'
Outflow: 'Betrag in EUR'
Inflow: 'Betrag in EUR'
$scope.data_object = new DataObject()
$scope.$watch 'data.source', (newValue, oldValue) ->
$scope.data_object.parse_csv(newValue) if newValue && newValue.length > 0
$scope.export = (limit) -> $scope.data_object.converted_json(limit, $scope.ynab_map)
$scope.csvString = -> $scope.data_object.converted_csv(null, $scope.ynab_map)
$scope.downloadFile = ->
a = document.createElement('a')
a.href = 'data:attachment/csv;base64,' + btoa(unescape(encodeURIComponent($scope.csvString())))
a.target = '_blank'
a.download = 'ynab_data.csv'
document.body.appendChild(a)
a.click()
angular.bootstrap document, ['app']
| 182823 | # see http://stackoverflow.com/questions/2897619/using-html5-javascript-to-generate-and-save-a-file
# see http://stackoverflow.com/questions/18662404/download-lengthy-data-as-a-csv-file
angular.element(document).ready ->
angular.module('app', [])
angular.module("app").directive "fileread", [->
scope:
fileread: "="
link: (scope, element, attributes) ->
element.bind "change", (changeEvent) ->
reader = new FileReader()
reader.onload = (loadEvent) ->
scope.$apply ->
scope.fileread = loadEvent.target.result
reader.readAsText changeEvent.target.files[0]
]
angular.module("app").directive "dropzone", [->
transclude: true
replace: true
template: '<div class="dropzone"><div ng-transclude></div></div>'
scope:
dropzone: "="
link: (scope, element, attributes) ->
element.bind 'dragenter', (event) ->
element.addClass('dragging')
event.preventDefault()
element.bind 'dragover', (event) ->
element.addClass('dragging')
event.preventDefault()
efct = event.dataTransfer.effectAllowed
event.dataTransfer.dropEffect = if 'move' == efct or 'linkMove' == efct then 'move' else 'copy'
element.bind 'dragleave', (event) ->
element.removeClass('dragging')
event.preventDefault()
element.bind 'drop', (event) ->
element.removeClass('dragging')
event.preventDefault()
event.stopPropagation()
reader = new FileReader()
reader.onload = (loadEvent) ->
scope.$apply ->
scope.dropzone = loadEvent.target.result
reader.readAsText event.dataTransfer.files[0]
]
# Application code
angular.module('app').controller 'ParseController', ($scope) ->
$scope.angular_loaded = true
$scope.ynab_cols = ['Date','Payee','Category','Memo','Outflow','Inflow']
$scope.data = {}
$scope.ynab_map =
Date: 'Valuta'
Payee: 'Sender / Emp<NAME>'
Category: 'Kategorie'
Memo: 'Verwendungszweck'
Outflow: 'Betrag in EUR'
Inflow: 'Betrag in EUR'
$scope.data_object = new DataObject()
$scope.$watch 'data.source', (newValue, oldValue) ->
$scope.data_object.parse_csv(newValue) if newValue && newValue.length > 0
$scope.export = (limit) -> $scope.data_object.converted_json(limit, $scope.ynab_map)
$scope.csvString = -> $scope.data_object.converted_csv(null, $scope.ynab_map)
$scope.downloadFile = ->
a = document.createElement('a')
a.href = 'data:attachment/csv;base64,' + btoa(unescape(encodeURIComponent($scope.csvString())))
a.target = '_blank'
a.download = 'ynab_data.csv'
document.body.appendChild(a)
a.click()
angular.bootstrap document, ['app']
| true | # see http://stackoverflow.com/questions/2897619/using-html5-javascript-to-generate-and-save-a-file
# see http://stackoverflow.com/questions/18662404/download-lengthy-data-as-a-csv-file
angular.element(document).ready ->
angular.module('app', [])
angular.module("app").directive "fileread", [->
scope:
fileread: "="
link: (scope, element, attributes) ->
element.bind "change", (changeEvent) ->
reader = new FileReader()
reader.onload = (loadEvent) ->
scope.$apply ->
scope.fileread = loadEvent.target.result
reader.readAsText changeEvent.target.files[0]
]
angular.module("app").directive "dropzone", [->
transclude: true
replace: true
template: '<div class="dropzone"><div ng-transclude></div></div>'
scope:
dropzone: "="
link: (scope, element, attributes) ->
element.bind 'dragenter', (event) ->
element.addClass('dragging')
event.preventDefault()
element.bind 'dragover', (event) ->
element.addClass('dragging')
event.preventDefault()
efct = event.dataTransfer.effectAllowed
event.dataTransfer.dropEffect = if 'move' == efct or 'linkMove' == efct then 'move' else 'copy'
element.bind 'dragleave', (event) ->
element.removeClass('dragging')
event.preventDefault()
element.bind 'drop', (event) ->
element.removeClass('dragging')
event.preventDefault()
event.stopPropagation()
reader = new FileReader()
reader.onload = (loadEvent) ->
scope.$apply ->
scope.dropzone = loadEvent.target.result
reader.readAsText event.dataTransfer.files[0]
]
# Application code
angular.module('app').controller 'ParseController', ($scope) ->
$scope.angular_loaded = true
$scope.ynab_cols = ['Date','Payee','Category','Memo','Outflow','Inflow']
$scope.data = {}
$scope.ynab_map =
Date: 'Valuta'
Payee: 'Sender / EmpPI:NAME:<NAME>END_PI'
Category: 'Kategorie'
Memo: 'Verwendungszweck'
Outflow: 'Betrag in EUR'
Inflow: 'Betrag in EUR'
$scope.data_object = new DataObject()
$scope.$watch 'data.source', (newValue, oldValue) ->
$scope.data_object.parse_csv(newValue) if newValue && newValue.length > 0
$scope.export = (limit) -> $scope.data_object.converted_json(limit, $scope.ynab_map)
$scope.csvString = -> $scope.data_object.converted_csv(null, $scope.ynab_map)
$scope.downloadFile = ->
a = document.createElement('a')
a.href = 'data:attachment/csv;base64,' + btoa(unescape(encodeURIComponent($scope.csvString())))
a.target = '_blank'
a.download = 'ynab_data.csv'
document.body.appendChild(a)
a.click()
angular.bootstrap document, ['app']
|
[
{
"context": ": process.env.ERROR_EMAIL_PWD\n\n\n send:(body, to='youqingkui@qq.com', subj='hi') ->\n transporter.sendMail\n fr",
"end": 244,
"score": 0.9999291896820068,
"start": 227,
"tag": "EMAIL",
"value": "youqingkui@qq.com"
},
{
"context": "bj='hi') ->\n transporter... | lib/email.coffee | youqingkui/fav-dailyzhihu2evernote | 0 | nodemailer = require('nodemailer')
module.exports = () ->
transporter = nodemailer.createTransport
service: 'QQ'
auth:
user: process.env.ERROR_EMAIL
pass: process.env.ERROR_EMAIL_PWD
send:(body, to='youqingkui@qq.com', subj='hi') ->
transporter.sendMail
from: 'youqingkui@qq.com'
to: to
subject: subj
text: body
# generateTextFromHtml: true
,(err, info) ->
return console.log err if err
console.log info | 141357 | nodemailer = require('nodemailer')
module.exports = () ->
transporter = nodemailer.createTransport
service: 'QQ'
auth:
user: process.env.ERROR_EMAIL
pass: process.env.ERROR_EMAIL_PWD
send:(body, to='<EMAIL>', subj='hi') ->
transporter.sendMail
from: '<EMAIL>'
to: to
subject: subj
text: body
# generateTextFromHtml: true
,(err, info) ->
return console.log err if err
console.log info | true | nodemailer = require('nodemailer')
module.exports = () ->
transporter = nodemailer.createTransport
service: 'QQ'
auth:
user: process.env.ERROR_EMAIL
pass: process.env.ERROR_EMAIL_PWD
send:(body, to='PI:EMAIL:<EMAIL>END_PI', subj='hi') ->
transporter.sendMail
from: 'PI:EMAIL:<EMAIL>END_PI'
to: to
subject: subj
text: body
# generateTextFromHtml: true
,(err, info) ->
return console.log err if err
console.log info |
[
{
"context": "name\n logged_In = if req.body.username is 'user' or 'expired' then 0 else 1\n res.status(20",
"end": 753,
"score": 0.9832956194877625,
"start": 749,
"tag": "USERNAME",
"value": "user"
},
{
"context": "200).send { d: { Login_Status : logged_In,Token:'00000... | test/routes/routes.checks.coffee | TeamMentor/TM_Site | 0 | bodyParser = require 'body-parser'
express = require 'express'
request = require 'superagent'
supertest = require 'supertest'
cheerio = require 'cheerio'
config = require '../../src/config'
Express_Service = require '../../src/services/Express-Service'
describe '| routes | routes.checks |', ()->
app = null
beforeEach ()->
username =''
random_Port = 10000.random().add(10000)
app_35_Server = new express().use(bodyParser.json())
url_Mocked_3_5_Server = "http://localhost:#{random_Port}"
app_35_Server.post '/webServices/Login_Response' ,
(req,res)->
username = req.body.username
logged_In = if req.body.username is 'user' or 'expired' then 0 else 1
res.status(200).send { d: { Login_Status : logged_In,Token:'00000000' } }
app_35_Server.post '/webServices/Current_User' ,
(req,res)->
PasswordExpired = if username is 'expired' then true else false
res.status(200).send {d:{"UserId":1982362528,"CSRF_Token":"115362661","PasswordExpired":PasswordExpired}}
app_35_Server.post '/webServices/GetCurrentUserPasswordExpiryUrl' ,
(req,res)->
res.status(200).send {"d":"/passwordReset/user/00000000-0000-0000-0000-000000000000"}
#app_35_Server.use (req,res,next)->
# console.log req.url
# log('------' + req.url)
# res.status(500).send 'WebService route not mapped'
app_35_Server.listen(random_Port)
using config.options,->
@.tm_design.tm_35_Server = url_Mocked_3_5_Server
@.tm_design.webServices = '/webServices'
@.tm_design.jade_Compilation_Enabled = true
express_Options =
logging_Enabled : false
port : 1024 + (20000).random()
express_Service = new Express_Service(express_Options).setup().start()
app = express_Service.app
tm_Server = supertest(app)
afterEach ->
config.restore()
it 'Issue_679_Validate authentication status on error page', (done)->
agent = request.agent()
baseUrl = 'http://localhost:' + app.port
loggedInText = ['<span title="Logout" class="icon-Logout">']
loggedOutText = ['<li><a id="nav-login" href="/jade/guest/login.html">Login</a></li>']
postData = {username:'user', password:'a'}
userLogin = (agent, postData, next)-> agent.post(baseUrl + '/jade/user/login').send(postData).end (err,res)->
assert_Is_Null(err)
next()
userLogout = (next)-> agent.get(baseUrl + '/jade/user/logout').end (err,res)->
res.status.assert_Is(200)
next()
get404 = (agent, text, next)-> agent.get(baseUrl + '/foo').end (err,res)->
res.status.assert_Is(404)
res.text.assert_Contains(text)
next()
get500 = (agent, text, next)-> agent.get(baseUrl + '/error?{#foo}').end (err,res)->
res.status.assert_Is(500)
res.text.assert_Contains(text)
next()
userLogin agent,postData, ->
get404 agent,loggedInText, ->
get500 agent,loggedInText, ->
userLogout ->
get404 agent, loggedOutText, ->
get500 agent, loggedOutText, ->
done()
it 'Issue_894_PasswordReset - User should be challenged to change his/her password if it was expired', (done)->
agent = request.agent()
baseUrl = 'http://localhost:' + app.port
postData = {username:'expired', password:'a'}
userLogin = (agent, postData, next)-> agent.post(baseUrl + '/jade/user/login').send(postData).end (err,res)->
$ = cheerio.load(res.text)
$('h4').html().assert_Is 'Reset your password'
$('p') .html().assert_Is 'Your password should be at least 8 characters long. It should have at least one of each of the following: uppercase and lowercase letters, number and special character.'
next()
userLogout = (next)-> agent.get(baseUrl + '/jade/user/logout').end (err,res)->
res.status.assert_Is(200)
next()
userLogin agent,postData, ->
userLogout ->
done()
| 213962 | bodyParser = require 'body-parser'
express = require 'express'
request = require 'superagent'
supertest = require 'supertest'
cheerio = require 'cheerio'
config = require '../../src/config'
Express_Service = require '../../src/services/Express-Service'
describe '| routes | routes.checks |', ()->
app = null
beforeEach ()->
username =''
random_Port = 10000.random().add(10000)
app_35_Server = new express().use(bodyParser.json())
url_Mocked_3_5_Server = "http://localhost:#{random_Port}"
app_35_Server.post '/webServices/Login_Response' ,
(req,res)->
username = req.body.username
logged_In = if req.body.username is 'user' or 'expired' then 0 else 1
res.status(200).send { d: { Login_Status : logged_In,Token:'0<PASSWORD>' } }
app_35_Server.post '/webServices/Current_User' ,
(req,res)->
PasswordExpired = if username is 'expired' then true else false
res.status(200).send {d:{"UserId":1982362528,"CSRF_Token":"<PASSWORD>","PasswordExpired":<PASSWORD>}}
app_35_Server.post '/webServices/GetCurrentUserPasswordExpiryUrl' ,
(req,res)->
res.status(200).send {"d":"/passwordReset/user/00000000-0000-0000-0000-000000000000"}
#app_35_Server.use (req,res,next)->
# console.log req.url
# log('------' + req.url)
# res.status(500).send 'WebService route not mapped'
app_35_Server.listen(random_Port)
using config.options,->
@.tm_design.tm_35_Server = url_Mocked_3_5_Server
@.tm_design.webServices = '/webServices'
@.tm_design.jade_Compilation_Enabled = true
express_Options =
logging_Enabled : false
port : 1024 + (20000).random()
express_Service = new Express_Service(express_Options).setup().start()
app = express_Service.app
tm_Server = supertest(app)
afterEach ->
config.restore()
it 'Issue_679_Validate authentication status on error page', (done)->
agent = request.agent()
baseUrl = 'http://localhost:' + app.port
loggedInText = ['<span title="Logout" class="icon-Logout">']
loggedOutText = ['<li><a id="nav-login" href="/jade/guest/login.html">Login</a></li>']
postData = {username:'user', password:'<PASSWORD>'}
userLogin = (agent, postData, next)-> agent.post(baseUrl + '/jade/user/login').send(postData).end (err,res)->
assert_Is_Null(err)
next()
userLogout = (next)-> agent.get(baseUrl + '/jade/user/logout').end (err,res)->
res.status.assert_Is(200)
next()
get404 = (agent, text, next)-> agent.get(baseUrl + '/foo').end (err,res)->
res.status.assert_Is(404)
res.text.assert_Contains(text)
next()
get500 = (agent, text, next)-> agent.get(baseUrl + '/error?{#foo}').end (err,res)->
res.status.assert_Is(500)
res.text.assert_Contains(text)
next()
userLogin agent,postData, ->
get404 agent,loggedInText, ->
get500 agent,loggedInText, ->
userLogout ->
get404 agent, loggedOutText, ->
get500 agent, loggedOutText, ->
done()
it 'Issue_894_PasswordReset - User should be challenged to change his/her password if it was expired', (done)->
agent = request.agent()
baseUrl = 'http://localhost:' + app.port
postData = {username:'expired', password:'<PASSWORD>'}
userLogin = (agent, postData, next)-> agent.post(baseUrl + '/jade/user/login').send(postData).end (err,res)->
$ = cheerio.load(res.text)
$('h4').html().assert_Is 'Reset your password'
$('p') .html().assert_Is 'Your password should be at least 8 characters long. It should have at least one of each of the following: uppercase and lowercase letters, number and special character.'
next()
userLogout = (next)-> agent.get(baseUrl + '/jade/user/logout').end (err,res)->
res.status.assert_Is(200)
next()
userLogin agent,postData, ->
userLogout ->
done()
| true | bodyParser = require 'body-parser'
express = require 'express'
request = require 'superagent'
supertest = require 'supertest'
cheerio = require 'cheerio'
config = require '../../src/config'
Express_Service = require '../../src/services/Express-Service'
describe '| routes | routes.checks |', ()->
app = null
beforeEach ()->
username =''
random_Port = 10000.random().add(10000)
app_35_Server = new express().use(bodyParser.json())
url_Mocked_3_5_Server = "http://localhost:#{random_Port}"
app_35_Server.post '/webServices/Login_Response' ,
(req,res)->
username = req.body.username
logged_In = if req.body.username is 'user' or 'expired' then 0 else 1
res.status(200).send { d: { Login_Status : logged_In,Token:'0PI:PASSWORD:<PASSWORD>END_PI' } }
app_35_Server.post '/webServices/Current_User' ,
(req,res)->
PasswordExpired = if username is 'expired' then true else false
res.status(200).send {d:{"UserId":1982362528,"CSRF_Token":"PI:PASSWORD:<PASSWORD>END_PI","PasswordExpired":PI:PASSWORD:<PASSWORD>END_PI}}
app_35_Server.post '/webServices/GetCurrentUserPasswordExpiryUrl' ,
(req,res)->
res.status(200).send {"d":"/passwordReset/user/00000000-0000-0000-0000-000000000000"}
#app_35_Server.use (req,res,next)->
# console.log req.url
# log('------' + req.url)
# res.status(500).send 'WebService route not mapped'
app_35_Server.listen(random_Port)
using config.options,->
@.tm_design.tm_35_Server = url_Mocked_3_5_Server
@.tm_design.webServices = '/webServices'
@.tm_design.jade_Compilation_Enabled = true
express_Options =
logging_Enabled : false
port : 1024 + (20000).random()
express_Service = new Express_Service(express_Options).setup().start()
app = express_Service.app
tm_Server = supertest(app)
afterEach ->
config.restore()
it 'Issue_679_Validate authentication status on error page', (done)->
agent = request.agent()
baseUrl = 'http://localhost:' + app.port
loggedInText = ['<span title="Logout" class="icon-Logout">']
loggedOutText = ['<li><a id="nav-login" href="/jade/guest/login.html">Login</a></li>']
postData = {username:'user', password:'PI:PASSWORD:<PASSWORD>END_PI'}
userLogin = (agent, postData, next)-> agent.post(baseUrl + '/jade/user/login').send(postData).end (err,res)->
assert_Is_Null(err)
next()
userLogout = (next)-> agent.get(baseUrl + '/jade/user/logout').end (err,res)->
res.status.assert_Is(200)
next()
get404 = (agent, text, next)-> agent.get(baseUrl + '/foo').end (err,res)->
res.status.assert_Is(404)
res.text.assert_Contains(text)
next()
get500 = (agent, text, next)-> agent.get(baseUrl + '/error?{#foo}').end (err,res)->
res.status.assert_Is(500)
res.text.assert_Contains(text)
next()
userLogin agent,postData, ->
get404 agent,loggedInText, ->
get500 agent,loggedInText, ->
userLogout ->
get404 agent, loggedOutText, ->
get500 agent, loggedOutText, ->
done()
it 'Issue_894_PasswordReset - User should be challenged to change his/her password if it was expired', (done)->
agent = request.agent()
baseUrl = 'http://localhost:' + app.port
postData = {username:'expired', password:'PI:PASSWORD:<PASSWORD>END_PI'}
userLogin = (agent, postData, next)-> agent.post(baseUrl + '/jade/user/login').send(postData).end (err,res)->
$ = cheerio.load(res.text)
$('h4').html().assert_Is 'Reset your password'
$('p') .html().assert_Is 'Your password should be at least 8 characters long. It should have at least one of each of the following: uppercase and lowercase letters, number and special character.'
next()
userLogout = (next)-> agent.get(baseUrl + '/jade/user/logout').end (err,res)->
res.status.assert_Is(200)
next()
userLogin agent,postData, ->
userLogout ->
done()
|
[
{
"context": "text.endTime\n # limit: 0 max\n # nextToken: 'STRING_VALUE'\n startFromHead: false\n\n debug \"pulling log s",
"end": 3215,
"score": 0.7485411763191223,
"start": 3203,
"tag": "PASSWORD",
"value": "STRING_VALUE"
},
{
"context": "Regex = /RequestId: ([a-z0-9\\-]... | packages/litexa-deploy-aws/src/logs.coffee | fboerncke/litexa | 1 | ###
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
###
AWS = require 'aws-sdk'
fs = require 'fs'
path = require 'path'
mkdirp = require 'mkdirp'
debug = require('debug')('litexa-logs')
exports.pull = (context, logger) ->
require('./aws-config')(context, logger, AWS)
# log group should be derivable from the project name and variant, via the lambda name
# log stream is a little more difficult, basically we'll need to scan for all active ones
globalParams =
params:
logGroupName: "/aws/lambda/#{context.projectInfo.name}_#{context.projectInfo.variant}_litexa_handler"
context.cloudwatch = new AWS.CloudWatchLogs globalParams unless context.cloudwatch?
debug "global params: #{JSON.stringify globalParams}"
timeRange = 60 # minutes
now = (new Date).getTime()
logName = (new Date).toLocaleString()
context.startTime = now - timeRange * 60 * 1000
context.endTime = now
listLogStreams context, logger
.catch (error) ->
if error.code == "ResourceNotFoundException"
logger.log "no log records found for this skill yet"
return Promise.resolve []
return Promise.reject error
.then (streams) ->
promises = for stream in streams
pullLogStream context, stream, logger
Promise.all promises
.then (streams) ->
infos = []
successes = 0
fails = 0
for stream in streams
for id, info of stream
infos.push info
if info.success
successes += 1
else
fails += 1
infos.sort (a, b) -> b.start - a.start
all = []
all.push "requests: ✔ success:#{successes}, ✘ fail:#{fails}\n"
for info in infos
all = all.concat info.lines
all.push '\n'
variantLogsRoot = path.join context.logsRoot, context.projectInfo.variant
mkdirp.sync variantLogsRoot
logName = logName.replace(/\//g, '-')
# WINCOMPAT: Windows cannot have '\/:*?"<>|' in the filename
logName = logName.replace(/:/g, '.')
filename = path.join variantLogsRoot, "#{logName}.log"
fs.writeFileSync filename, all.join('\n'), 'utf8'
logger.log "pulled #{filename}"
.catch (error) ->
debug "ERROR: #{JSON.stringify error}"
logger.error error
throw "failed to pull logs"
listLogStreams = (context, logger) ->
params =
orderBy: 'LastEventTime'
descending: true
#limit: 0
#logStreamNamePrefix: 'STRING_VALUE'
#nextToken: 'STRING_VALUE'
debug "listing streams #{JSON.stringify params}"
context.cloudwatch.describeLogStreams(params).promise()
.then (data) ->
streams = []
debug "listed streams #{JSON.stringify data.logStreams}"
for stream in data.logStreams
if stream.lastEventTimestamp < context.startTime
break
streams.push stream.logStreamName
Promise.resolve streams
pullLogStream = (context, streamName, logger) ->
params =
logStreamName: streamName
startTime: context.startTime
endTime: context.endTime
# limit: 0 max
# nextToken: 'STRING_VALUE'
startFromHead: false
debug "pulling log stream #{JSON.stringify params}"
context.cloudwatch.getLogEvents(params).promise()
.then (data) ->
requests = {}
idRegex = /RequestId: ([a-z0-9\-]+)/i
keyRegex = /^([A-Z]+)( [A-Z]+)?/
durationRegex = /Duration: ([0-9\.]+) ms/i
memoryRegex = /Memory Used: ([0-9\.]+) MB/i
id = null
start = null
for event in data.events
match = event.message.match(idRegex)
if match
id = match[1]
message = event.message.replace match[0], ''
else
parts = event.message.split '\t'
if parts.length > 2
time = (new Date parts[0]).toLocaleString()
id = parts[1]
message = parts[2..].join '\t'
else
message = event.message
key = null
type = null
match = message.match keyRegex
if match and match[0].length > 1
key = match[1]
type = match[2]?.trim()
message = message.replace match[0], ''
message = message.trim()
header = null
switch key
when 'START'
start = event.timestamp
message = "--- ✘ #{time} [#{id[-8...]}] ---"
failed = true
when 'REPORT'
# Duration: 205.58 ms Billed Duration: 300 ms Memory Size: 256 MB Max Memory Used: 65 MB
match = message.match durationRegex
duration = match?[1]
match = message.match memoryRegex
memory = match?[1]
time = (new Date start).toLocaleString()
if duration or memory
marker = if failed then '✘' else '✔'
header = "--- #{marker} #{time} #{duration}ms #{memory}MB [#{id[-8...]}] ---"
message = null
when 'VERBOSE'
if type
if type == 'RESPONSE'
failed = false
message = "#{type}: #{message}"
else
try
message = JSON.stringify JSON.parse(message), null, 2
if type
message = "#{type}: #{message}"
if message or header
info = requests[id]
unless info?
info = requests[id] =
start: event.timestamp
lines: []
if message
info.lines.push message.trim()
if header
info.lines[0] = header.trim()
info.success = not failed
Promise.resolve requests
| 126079 | ###
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
###
AWS = require 'aws-sdk'
fs = require 'fs'
path = require 'path'
mkdirp = require 'mkdirp'
debug = require('debug')('litexa-logs')
exports.pull = (context, logger) ->
require('./aws-config')(context, logger, AWS)
# log group should be derivable from the project name and variant, via the lambda name
# log stream is a little more difficult, basically we'll need to scan for all active ones
globalParams =
params:
logGroupName: "/aws/lambda/#{context.projectInfo.name}_#{context.projectInfo.variant}_litexa_handler"
context.cloudwatch = new AWS.CloudWatchLogs globalParams unless context.cloudwatch?
debug "global params: #{JSON.stringify globalParams}"
timeRange = 60 # minutes
now = (new Date).getTime()
logName = (new Date).toLocaleString()
context.startTime = now - timeRange * 60 * 1000
context.endTime = now
listLogStreams context, logger
.catch (error) ->
if error.code == "ResourceNotFoundException"
logger.log "no log records found for this skill yet"
return Promise.resolve []
return Promise.reject error
.then (streams) ->
promises = for stream in streams
pullLogStream context, stream, logger
Promise.all promises
.then (streams) ->
infos = []
successes = 0
fails = 0
for stream in streams
for id, info of stream
infos.push info
if info.success
successes += 1
else
fails += 1
infos.sort (a, b) -> b.start - a.start
all = []
all.push "requests: ✔ success:#{successes}, ✘ fail:#{fails}\n"
for info in infos
all = all.concat info.lines
all.push '\n'
variantLogsRoot = path.join context.logsRoot, context.projectInfo.variant
mkdirp.sync variantLogsRoot
logName = logName.replace(/\//g, '-')
# WINCOMPAT: Windows cannot have '\/:*?"<>|' in the filename
logName = logName.replace(/:/g, '.')
filename = path.join variantLogsRoot, "#{logName}.log"
fs.writeFileSync filename, all.join('\n'), 'utf8'
logger.log "pulled #{filename}"
.catch (error) ->
debug "ERROR: #{JSON.stringify error}"
logger.error error
throw "failed to pull logs"
listLogStreams = (context, logger) ->
params =
orderBy: 'LastEventTime'
descending: true
#limit: 0
#logStreamNamePrefix: 'STRING_VALUE'
#nextToken: 'STRING_VALUE'
debug "listing streams #{JSON.stringify params}"
context.cloudwatch.describeLogStreams(params).promise()
.then (data) ->
streams = []
debug "listed streams #{JSON.stringify data.logStreams}"
for stream in data.logStreams
if stream.lastEventTimestamp < context.startTime
break
streams.push stream.logStreamName
Promise.resolve streams
pullLogStream = (context, streamName, logger) ->
params =
logStreamName: streamName
startTime: context.startTime
endTime: context.endTime
# limit: 0 max
# nextToken: '<PASSWORD>'
startFromHead: false
debug "pulling log stream #{JSON.stringify params}"
context.cloudwatch.getLogEvents(params).promise()
.then (data) ->
requests = {}
idRegex = /RequestId: ([a-z0-9\-]+)/i
keyRegex = <KEY>([<KEY>
durationRegex = /Duration: ([0-9\.]+) ms/i
memoryRegex = /Memory Used: ([0-9\.]+) MB/i
id = null
start = null
for event in data.events
match = event.message.match(idRegex)
if match
id = match[1]
message = event.message.replace match[0], ''
else
parts = event.message.split '\t'
if parts.length > 2
time = (new Date parts[0]).toLocaleString()
id = parts[1]
message = parts[2..].join '\t'
else
message = event.message
key = null
type = null
match = message.match keyRegex
if match and match[0].length > 1
key = match[1]
type = match[2]?.trim()
message = message.replace match[0], ''
message = message.trim()
header = null
switch key
when 'START'
start = event.timestamp
message = "--- ✘ #{time} [#{id[-8...]}] ---"
failed = true
when 'REPORT'
# Duration: 205.58 ms Billed Duration: 300 ms Memory Size: 256 MB Max Memory Used: 65 MB
match = message.match durationRegex
duration = match?[1]
match = message.match memoryRegex
memory = match?[1]
time = (new Date start).toLocaleString()
if duration or memory
marker = if failed then '✘' else '✔'
header = "--- #{marker} #{time} #{duration}ms #{memory}MB [#{id[-8...]}] ---"
message = null
when 'VERBOSE'
if type
if type == 'RESPONSE'
failed = false
message = "#{type}: #{message}"
else
try
message = JSON.stringify JSON.parse(message), null, 2
if type
message = "#{type}: #{message}"
if message or header
info = requests[id]
unless info?
info = requests[id] =
start: event.timestamp
lines: []
if message
info.lines.push message.trim()
if header
info.lines[0] = header.trim()
info.success = not failed
Promise.resolve requests
| true | ###
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
###
AWS = require 'aws-sdk'
fs = require 'fs'
path = require 'path'
mkdirp = require 'mkdirp'
debug = require('debug')('litexa-logs')
exports.pull = (context, logger) ->
require('./aws-config')(context, logger, AWS)
# log group should be derivable from the project name and variant, via the lambda name
# log stream is a little more difficult, basically we'll need to scan for all active ones
globalParams =
params:
logGroupName: "/aws/lambda/#{context.projectInfo.name}_#{context.projectInfo.variant}_litexa_handler"
context.cloudwatch = new AWS.CloudWatchLogs globalParams unless context.cloudwatch?
debug "global params: #{JSON.stringify globalParams}"
timeRange = 60 # minutes
now = (new Date).getTime()
logName = (new Date).toLocaleString()
context.startTime = now - timeRange * 60 * 1000
context.endTime = now
listLogStreams context, logger
.catch (error) ->
if error.code == "ResourceNotFoundException"
logger.log "no log records found for this skill yet"
return Promise.resolve []
return Promise.reject error
.then (streams) ->
promises = for stream in streams
pullLogStream context, stream, logger
Promise.all promises
.then (streams) ->
infos = []
successes = 0
fails = 0
for stream in streams
for id, info of stream
infos.push info
if info.success
successes += 1
else
fails += 1
infos.sort (a, b) -> b.start - a.start
all = []
all.push "requests: ✔ success:#{successes}, ✘ fail:#{fails}\n"
for info in infos
all = all.concat info.lines
all.push '\n'
variantLogsRoot = path.join context.logsRoot, context.projectInfo.variant
mkdirp.sync variantLogsRoot
logName = logName.replace(/\//g, '-')
# WINCOMPAT: Windows cannot have '\/:*?"<>|' in the filename
logName = logName.replace(/:/g, '.')
filename = path.join variantLogsRoot, "#{logName}.log"
fs.writeFileSync filename, all.join('\n'), 'utf8'
logger.log "pulled #{filename}"
.catch (error) ->
debug "ERROR: #{JSON.stringify error}"
logger.error error
throw "failed to pull logs"
listLogStreams = (context, logger) ->
params =
orderBy: 'LastEventTime'
descending: true
#limit: 0
#logStreamNamePrefix: 'STRING_VALUE'
#nextToken: 'STRING_VALUE'
debug "listing streams #{JSON.stringify params}"
context.cloudwatch.describeLogStreams(params).promise()
.then (data) ->
streams = []
debug "listed streams #{JSON.stringify data.logStreams}"
for stream in data.logStreams
if stream.lastEventTimestamp < context.startTime
break
streams.push stream.logStreamName
Promise.resolve streams
pullLogStream = (context, streamName, logger) ->
params =
logStreamName: streamName
startTime: context.startTime
endTime: context.endTime
# limit: 0 max
# nextToken: 'PI:PASSWORD:<PASSWORD>END_PI'
startFromHead: false
debug "pulling log stream #{JSON.stringify params}"
context.cloudwatch.getLogEvents(params).promise()
.then (data) ->
requests = {}
idRegex = /RequestId: ([a-z0-9\-]+)/i
keyRegex = PI:KEY:<KEY>END_PI([PI:KEY:<KEY>END_PI
durationRegex = /Duration: ([0-9\.]+) ms/i
memoryRegex = /Memory Used: ([0-9\.]+) MB/i
id = null
start = null
for event in data.events
match = event.message.match(idRegex)
if match
id = match[1]
message = event.message.replace match[0], ''
else
parts = event.message.split '\t'
if parts.length > 2
time = (new Date parts[0]).toLocaleString()
id = parts[1]
message = parts[2..].join '\t'
else
message = event.message
key = null
type = null
match = message.match keyRegex
if match and match[0].length > 1
key = match[1]
type = match[2]?.trim()
message = message.replace match[0], ''
message = message.trim()
header = null
switch key
when 'START'
start = event.timestamp
message = "--- ✘ #{time} [#{id[-8...]}] ---"
failed = true
when 'REPORT'
# Duration: 205.58 ms Billed Duration: 300 ms Memory Size: 256 MB Max Memory Used: 65 MB
match = message.match durationRegex
duration = match?[1]
match = message.match memoryRegex
memory = match?[1]
time = (new Date start).toLocaleString()
if duration or memory
marker = if failed then '✘' else '✔'
header = "--- #{marker} #{time} #{duration}ms #{memory}MB [#{id[-8...]}] ---"
message = null
when 'VERBOSE'
if type
if type == 'RESPONSE'
failed = false
message = "#{type}: #{message}"
else
try
message = JSON.stringify JSON.parse(message), null, 2
if type
message = "#{type}: #{message}"
if message or header
info = requests[id]
unless info?
info = requests[id] =
start: event.timestamp
lines: []
if message
info.lines.push message.trim()
if header
info.lines[0] = header.trim()
info.success = not failed
Promise.resolve requests
|
[
{
"context": "\n\t\t\t'../User/UserGetter': @UserGetter\n\t\t@email = 'mock-email@bar.com'\n\t\t@user = _id: 'mock-user-id', email: 'mock-emai",
"end": 646,
"score": 0.9998874664306641,
"start": 628,
"tag": "EMAIL",
"value": "mock-email@bar.com"
},
{
"context": "l@bar.com'\n\t\t@user... | test/unit/coffee/UserMembership/UserMembershipViewModelTests.coffee | shyoshyo/web-sharelatex | 1 | chai = require('chai')
should = chai.should()
expect = require('chai').expect
sinon = require('sinon')
assertCalledWith = sinon.assert.calledWith
assertNotCalled = sinon.assert.notCalled
mongojs = require('mongojs')
ObjectId = mongojs.ObjectId
modulePath = "../../../../app/js/Features/UserMembership/UserMembershipViewModel"
SandboxedModule = require("sandboxed-module")
describe 'UserMembershipViewModel', ->
beforeEach ->
@UserGetter =
getUserOrUserStubById: sinon.stub()
@UserMembershipViewModel = SandboxedModule.require modulePath, requires:
'mongojs': mongojs
'../User/UserGetter': @UserGetter
@email = 'mock-email@bar.com'
@user = _id: 'mock-user-id', email: 'mock-email@baz.com', first_name: 'Name'
@userStub = _id: 'mock-user-stub-id', email: 'mock-stub-email@baz.com'
describe 'build', ->
it 'build email', ->
viewModel = @UserMembershipViewModel.build(@email)
expect(viewModel).to.deep.equal
email: @email
invite: true
first_name: null
last_name: null
_id: null
it 'build user', ->
viewModel = @UserMembershipViewModel.build(@user)
expect(viewModel._id).to.equal @user._id
expect(viewModel.email).to.equal @user.email
expect(viewModel.invite).to.equal false
describe 'build async', ->
beforeEach ->
@UserMembershipViewModel.build = sinon.stub()
it 'build email', (done) ->
@UserMembershipViewModel.buildAsync @email, (error, viewModel) =>
assertCalledWith(@UserMembershipViewModel.build, @email)
done()
it 'build user', (done) ->
@UserMembershipViewModel.buildAsync @user, (error, viewModel) =>
assertCalledWith(@UserMembershipViewModel.build, @user)
done()
it 'build user id', (done) ->
@UserGetter.getUserOrUserStubById.yields(null, @user, false)
@UserMembershipViewModel.buildAsync ObjectId(), (error, viewModel) =>
should.not.exist(error)
assertNotCalled(@UserMembershipViewModel.build)
expect(viewModel._id).to.equal @user._id
expect(viewModel.email).to.equal @user.email
expect(viewModel.first_name).to.equal @user.first_name
expect(viewModel.invite).to.equal false
should.exist(viewModel.email)
done()
it 'build user stub id', (done) ->
@UserGetter.getUserOrUserStubById.yields(null, @userStub, true)
@UserMembershipViewModel.buildAsync ObjectId(), (error, viewModel) =>
should.not.exist(error)
assertNotCalled(@UserMembershipViewModel.build)
expect(viewModel._id).to.equal @userStub._id
expect(viewModel.email).to.equal @userStub.email
expect(viewModel.invite).to.equal true
done()
it 'build user id with error', (done) ->
@UserGetter.getUserOrUserStubById.yields(new Error('nope'))
userId = ObjectId()
@UserMembershipViewModel.buildAsync userId, (error, viewModel) =>
should.not.exist(error)
assertNotCalled(@UserMembershipViewModel.build)
expect(viewModel._id).to.equal userId.toString()
should.not.exist(viewModel.email)
done()
| 36462 | chai = require('chai')
should = chai.should()
expect = require('chai').expect
sinon = require('sinon')
assertCalledWith = sinon.assert.calledWith
assertNotCalled = sinon.assert.notCalled
mongojs = require('mongojs')
ObjectId = mongojs.ObjectId
modulePath = "../../../../app/js/Features/UserMembership/UserMembershipViewModel"
SandboxedModule = require("sandboxed-module")
describe 'UserMembershipViewModel', ->
beforeEach ->
@UserGetter =
getUserOrUserStubById: sinon.stub()
@UserMembershipViewModel = SandboxedModule.require modulePath, requires:
'mongojs': mongojs
'../User/UserGetter': @UserGetter
@email = '<EMAIL>'
@user = _id: 'mock-user-id', email: '<EMAIL>', first_name: '<NAME>'
@userStub = _id: 'mock-user-stub-id', email: '<EMAIL>'
describe 'build', ->
it 'build email', ->
viewModel = @UserMembershipViewModel.build(@email)
expect(viewModel).to.deep.equal
email: @email
invite: true
first_name: null
last_name: null
_id: null
it 'build user', ->
viewModel = @UserMembershipViewModel.build(@user)
expect(viewModel._id).to.equal @user._id
expect(viewModel.email).to.equal @user.email
expect(viewModel.invite).to.equal false
describe 'build async', ->
beforeEach ->
@UserMembershipViewModel.build = sinon.stub()
it 'build email', (done) ->
@UserMembershipViewModel.buildAsync @email, (error, viewModel) =>
assertCalledWith(@UserMembershipViewModel.build, @email)
done()
it 'build user', (done) ->
@UserMembershipViewModel.buildAsync @user, (error, viewModel) =>
assertCalledWith(@UserMembershipViewModel.build, @user)
done()
it 'build user id', (done) ->
@UserGetter.getUserOrUserStubById.yields(null, @user, false)
@UserMembershipViewModel.buildAsync ObjectId(), (error, viewModel) =>
should.not.exist(error)
assertNotCalled(@UserMembershipViewModel.build)
expect(viewModel._id).to.equal @user._id
expect(viewModel.email).to.equal @user.email
expect(viewModel.first_name).to.equal @user.first_name
expect(viewModel.invite).to.equal false
should.exist(viewModel.email)
done()
it 'build user stub id', (done) ->
@UserGetter.getUserOrUserStubById.yields(null, @userStub, true)
@UserMembershipViewModel.buildAsync ObjectId(), (error, viewModel) =>
should.not.exist(error)
assertNotCalled(@UserMembershipViewModel.build)
expect(viewModel._id).to.equal @userStub._id
expect(viewModel.email).to.equal @userStub.email
expect(viewModel.invite).to.equal true
done()
it 'build user id with error', (done) ->
@UserGetter.getUserOrUserStubById.yields(new Error('nope'))
userId = ObjectId()
@UserMembershipViewModel.buildAsync userId, (error, viewModel) =>
should.not.exist(error)
assertNotCalled(@UserMembershipViewModel.build)
expect(viewModel._id).to.equal userId.toString()
should.not.exist(viewModel.email)
done()
| true | chai = require('chai')
should = chai.should()
expect = require('chai').expect
sinon = require('sinon')
assertCalledWith = sinon.assert.calledWith
assertNotCalled = sinon.assert.notCalled
mongojs = require('mongojs')
ObjectId = mongojs.ObjectId
modulePath = "../../../../app/js/Features/UserMembership/UserMembershipViewModel"
SandboxedModule = require("sandboxed-module")
describe 'UserMembershipViewModel', ->
beforeEach ->
@UserGetter =
getUserOrUserStubById: sinon.stub()
@UserMembershipViewModel = SandboxedModule.require modulePath, requires:
'mongojs': mongojs
'../User/UserGetter': @UserGetter
@email = 'PI:EMAIL:<EMAIL>END_PI'
@user = _id: 'mock-user-id', email: 'PI:EMAIL:<EMAIL>END_PI', first_name: 'PI:NAME:<NAME>END_PI'
@userStub = _id: 'mock-user-stub-id', email: 'PI:EMAIL:<EMAIL>END_PI'
describe 'build', ->
it 'build email', ->
viewModel = @UserMembershipViewModel.build(@email)
expect(viewModel).to.deep.equal
email: @email
invite: true
first_name: null
last_name: null
_id: null
it 'build user', ->
viewModel = @UserMembershipViewModel.build(@user)
expect(viewModel._id).to.equal @user._id
expect(viewModel.email).to.equal @user.email
expect(viewModel.invite).to.equal false
describe 'build async', ->
beforeEach ->
@UserMembershipViewModel.build = sinon.stub()
it 'build email', (done) ->
@UserMembershipViewModel.buildAsync @email, (error, viewModel) =>
assertCalledWith(@UserMembershipViewModel.build, @email)
done()
it 'build user', (done) ->
@UserMembershipViewModel.buildAsync @user, (error, viewModel) =>
assertCalledWith(@UserMembershipViewModel.build, @user)
done()
it 'build user id', (done) ->
@UserGetter.getUserOrUserStubById.yields(null, @user, false)
@UserMembershipViewModel.buildAsync ObjectId(), (error, viewModel) =>
should.not.exist(error)
assertNotCalled(@UserMembershipViewModel.build)
expect(viewModel._id).to.equal @user._id
expect(viewModel.email).to.equal @user.email
expect(viewModel.first_name).to.equal @user.first_name
expect(viewModel.invite).to.equal false
should.exist(viewModel.email)
done()
it 'build user stub id', (done) ->
@UserGetter.getUserOrUserStubById.yields(null, @userStub, true)
@UserMembershipViewModel.buildAsync ObjectId(), (error, viewModel) =>
should.not.exist(error)
assertNotCalled(@UserMembershipViewModel.build)
expect(viewModel._id).to.equal @userStub._id
expect(viewModel.email).to.equal @userStub.email
expect(viewModel.invite).to.equal true
done()
it 'build user id with error', (done) ->
@UserGetter.getUserOrUserStubById.yields(new Error('nope'))
userId = ObjectId()
@UserMembershipViewModel.buildAsync userId, (error, viewModel) =>
should.not.exist(error)
assertNotCalled(@UserMembershipViewModel.build)
expect(viewModel._id).to.equal userId.toString()
should.not.exist(viewModel.email)
done()
|
[
{
"context": "module.exports =\n description: '''\n Aardvarks are the last survivors of a group of prim",
"end": 41,
"score": 0.6282626986503601,
"start": 40,
"tag": "NAME",
"value": "A"
},
{
"context": "d a protractile tongue.\n '''\n\n scientificName: 'Orycteropus afer'\n ma... | app/lib/field-guide-content/aardvark.coffee | zooniverse/wildcam-gorongosa-facebook | 7 | module.exports =
description: '''
Aardvarks are the last survivors of a group of primitive ungulates. They have a stocky body with thick skin that ranges in color from yellowish to pinkish and is sparsely covered with bristly hair. Aardvarks have short, powerful legs with sharp claws (four on the forefeet and five on each hind foot), a prominently arched back, a short neck, long pointed ears, and a long muscular tail that tapers to a point. Their head is elongated with a long snout. They are well adapted to feed on termites and ants with nostrils that can be sealed and a protractile tongue.
'''
scientificName: 'Orycteropus afer'
mainImage: 'assets/fieldguide-content/mammals/aardvark/aardvark-feature.jpg'
conservationStatus: 'Least Concern' # Options are Least Concern, Near Threatened, Vulnerable, and Endangered; all have their own little icons as well.
information: [{
label: 'Length'
value: '1.03-1.3 m'
}, {
label: 'Height'
value: '60-65 cm'
}, {
label: 'Weight'
value: '40-65 kg'
}, {
label: 'Lifespan'
value: '23 years '
}, {
label: 'Gestation'
value: '7 months'
}, {
label: 'Avg. number of offspring'
value: '1'
}]
sections: [{
title: 'Habitat'
content: '<p>Aardvarks live in a wide range of habitats, from dry savannas to rain forests. Aardvarks are absent from hyperarid habitats and generally avoid extremely rocky terrain, which makes it difficult for them to dig for their main food source (termites and ants).</p>'
}, {
title: 'Diet'
content: '<p>Aardvarks are specialized eaters, feeding almost exclusively on termites and ants.</p>'
}, {
title: 'Predators'
content: '<p>Humans, lions, leopards, hyenas, pythons</p>'
}, {
title: 'Behavior'
content: '''
<p>Aardvarks are primarily solitary nocturnal animals, spending most of the day asleep in their burrow. At night aardvarks leave their burrow in search of food, traveling in a zigzag pattern and using their elongated snout to help them locate prey. Once they find a termite mound, aardvarks use their well-adapted claws to dig into the earth and their long, sticky, protractile tongue to easily gather prey. An individual aardvark can eat over 50,000 individual termites in a single night!</p>
'''
}, {
title: 'Breeding'
content: '''
<p>Aardvarks are solitary, coming together only to breed. Female aardvarks give birth to a single hairless young after a gestation period of about seven months.</p>
<p>Young aardvarks stay with their mothers until they are reared. They will not leave the mother’s burrow during the first two weeks of life. After three months of nursing, they begin to eat insects. By six months, the young can dig and forage for themselves, and by 12 months they will have reached the size of a mature adult. Sexual maturity is reached at about two years of age.</p>
'''
}, {
title: 'Fun Facts'
style: 'focus-box'
content: '''
<ol>
<li>An aardvark’s tongue can reach lengths of 30.5 cm—that’s as big as a school ruler!</li>
<li>The name “aardvark” comes from South Africa’s national language, Afrikaans, and means “earth pig.”</li>
<li>Aardvarks are cited as being able to dig up to 62 cm or 2 feet in 15 seconds!</li>
<li>The aardvark is the only living representative of an entire order of animals, the Tubulidentata.</li>
<li>Aardvarks can eat up to 50,000 insects each night!</li>
</ol>
'''
},{
title: 'Distribution'
content: '<img src="assets/fieldguide-content/mammals/aardvark/aardvark-map.jpg"/>'
}]
| 210665 | module.exports =
description: '''
<NAME>ardvarks are the last survivors of a group of primitive ungulates. They have a stocky body with thick skin that ranges in color from yellowish to pinkish and is sparsely covered with bristly hair. Aardvarks have short, powerful legs with sharp claws (four on the forefeet and five on each hind foot), a prominently arched back, a short neck, long pointed ears, and a long muscular tail that tapers to a point. Their head is elongated with a long snout. They are well adapted to feed on termites and ants with nostrils that can be sealed and a protractile tongue.
'''
scientificName: '<NAME>'
mainImage: 'assets/fieldguide-content/mammals/aardvark/aardvark-feature.jpg'
conservationStatus: 'Least Concern' # Options are Least Concern, Near Threatened, Vulnerable, and Endangered; all have their own little icons as well.
information: [{
label: 'Length'
value: '1.03-1.3 m'
}, {
label: 'Height'
value: '60-65 cm'
}, {
label: 'Weight'
value: '40-65 kg'
}, {
label: 'Lifespan'
value: '23 years '
}, {
label: 'Gestation'
value: '7 months'
}, {
label: 'Avg. number of offspring'
value: '1'
}]
sections: [{
title: 'Habitat'
content: '<p>Aardvarks live in a wide range of habitats, from dry savannas to rain forests. Aardvarks are absent from hyperarid habitats and generally avoid extremely rocky terrain, which makes it difficult for them to dig for their main food source (termites and ants).</p>'
}, {
title: 'Diet'
content: '<p>Aardvarks are specialized eaters, feeding almost exclusively on termites and ants.</p>'
}, {
title: 'Predators'
content: '<p>Humans, lions, leopards, hyenas, pythons</p>'
}, {
title: 'Behavior'
content: '''
<p>Aardvarks are primarily solitary nocturnal animals, spending most of the day asleep in their burrow. At night aardvarks leave their burrow in search of food, traveling in a zigzag pattern and using their elongated snout to help them locate prey. Once they find a termite mound, aardvarks use their well-adapted claws to dig into the earth and their long, sticky, protractile tongue to easily gather prey. An individual aardvark can eat over 50,000 individual termites in a single night!</p>
'''
}, {
title: 'Breeding'
content: '''
<p>Aardvarks are solitary, coming together only to breed. Female aardvarks give birth to a single hairless young after a gestation period of about seven months.</p>
<p>Young aardvarks stay with their mothers until they are reared. They will not leave the mother’s burrow during the first two weeks of life. After three months of nursing, they begin to eat insects. By six months, the young can dig and forage for themselves, and by 12 months they will have reached the size of a mature adult. Sexual maturity is reached at about two years of age.</p>
'''
}, {
title: 'Fun Facts'
style: 'focus-box'
content: '''
<ol>
<li>An aardvark’s tongue can reach lengths of 30.5 cm—that’s as big as a school ruler!</li>
<li>The name “aardvark” comes from South Africa’s national language, Afrikaans, and means “earth pig.”</li>
<li>Aardvarks are cited as being able to dig up to 62 cm or 2 feet in 15 seconds!</li>
<li>The aardvark is the only living representative of an entire order of animals, the Tubulidentata.</li>
<li>Aardvarks can eat up to 50,000 insects each night!</li>
</ol>
'''
},{
title: 'Distribution'
content: '<img src="assets/fieldguide-content/mammals/aardvark/aardvark-map.jpg"/>'
}]
| true | module.exports =
description: '''
PI:NAME:<NAME>END_PIardvarks are the last survivors of a group of primitive ungulates. They have a stocky body with thick skin that ranges in color from yellowish to pinkish and is sparsely covered with bristly hair. Aardvarks have short, powerful legs with sharp claws (four on the forefeet and five on each hind foot), a prominently arched back, a short neck, long pointed ears, and a long muscular tail that tapers to a point. Their head is elongated with a long snout. They are well adapted to feed on termites and ants with nostrils that can be sealed and a protractile tongue.
'''
scientificName: 'PI:NAME:<NAME>END_PI'
mainImage: 'assets/fieldguide-content/mammals/aardvark/aardvark-feature.jpg'
conservationStatus: 'Least Concern' # Options are Least Concern, Near Threatened, Vulnerable, and Endangered; all have their own little icons as well.
information: [{
label: 'Length'
value: '1.03-1.3 m'
}, {
label: 'Height'
value: '60-65 cm'
}, {
label: 'Weight'
value: '40-65 kg'
}, {
label: 'Lifespan'
value: '23 years '
}, {
label: 'Gestation'
value: '7 months'
}, {
label: 'Avg. number of offspring'
value: '1'
}]
sections: [{
title: 'Habitat'
content: '<p>Aardvarks live in a wide range of habitats, from dry savannas to rain forests. Aardvarks are absent from hyperarid habitats and generally avoid extremely rocky terrain, which makes it difficult for them to dig for their main food source (termites and ants).</p>'
}, {
title: 'Diet'
content: '<p>Aardvarks are specialized eaters, feeding almost exclusively on termites and ants.</p>'
}, {
title: 'Predators'
content: '<p>Humans, lions, leopards, hyenas, pythons</p>'
}, {
title: 'Behavior'
content: '''
<p>Aardvarks are primarily solitary nocturnal animals, spending most of the day asleep in their burrow. At night aardvarks leave their burrow in search of food, traveling in a zigzag pattern and using their elongated snout to help them locate prey. Once they find a termite mound, aardvarks use their well-adapted claws to dig into the earth and their long, sticky, protractile tongue to easily gather prey. An individual aardvark can eat over 50,000 individual termites in a single night!</p>
'''
}, {
title: 'Breeding'
content: '''
<p>Aardvarks are solitary, coming together only to breed. Female aardvarks give birth to a single hairless young after a gestation period of about seven months.</p>
<p>Young aardvarks stay with their mothers until they are reared. They will not leave the mother’s burrow during the first two weeks of life. After three months of nursing, they begin to eat insects. By six months, the young can dig and forage for themselves, and by 12 months they will have reached the size of a mature adult. Sexual maturity is reached at about two years of age.</p>
'''
}, {
title: 'Fun Facts'
style: 'focus-box'
content: '''
<ol>
<li>An aardvark’s tongue can reach lengths of 30.5 cm—that’s as big as a school ruler!</li>
<li>The name “aardvark” comes from South Africa’s national language, Afrikaans, and means “earth pig.”</li>
<li>Aardvarks are cited as being able to dig up to 62 cm or 2 feet in 15 seconds!</li>
<li>The aardvark is the only living representative of an entire order of animals, the Tubulidentata.</li>
<li>Aardvarks can eat up to 50,000 insects each night!</li>
</ol>
'''
},{
title: 'Distribution'
content: '<img src="assets/fieldguide-content/mammals/aardvark/aardvark-map.jpg"/>'
}]
|
[
{
"context": "s\" : {\n \"def\" : [ {\n \"name\" : \"Patient\",\n \"context\" : \"Patient\",\n ",
"end": 883,
"score": 0.9889671206474304,
"start": 876,
"tag": "NAME",
"value": "Patient"
},
{
"context": " }\n }, {\n ... | Src/coffeescript/cql-execution/test/elm/list/data.coffee | esteban-aliverti/clinical_quality_language | 0 | ###
WARNING: This is a GENERATED file. Do not manually edit!
To generate this file:
- Edit data.coffee to add a CQL Snippet
- From java dir: ./gradlew :cql-to-elm:generateTestData
###
### List
library TestSnippet version '1'
using QUICK
context Patient
define Three = 1 + 2
define IntList = { 9, 7, 8 }
define StringList = { 'a', 'bee', 'see' }
define MixedList = { 1, 'two', Three }
define EmptyList = {}
###
module.exports['List'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "Three",
"context" : "Patient",
"expression" : {
"type" : "Add",
"operand" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
}
}, {
"name" : "IntList",
"context" : "Patient",
"expression" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
} ]
}
}, {
"name" : "StringList",
"context" : "Patient",
"expression" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "bee",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "see",
"type" : "Literal"
} ]
}
}, {
"name" : "MixedList",
"context" : "Patient",
"expression" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "two",
"type" : "Literal"
}, {
"name" : "Three",
"type" : "ExpressionRef"
} ]
}
}, {
"name" : "EmptyList",
"context" : "Patient",
"expression" : {
"type" : "List"
}
} ]
}
}
}
### Exists
library TestSnippet version '1'
using QUICK
context Patient
define EmptyList = exists ({})
define FullList = exists ({ 1, 2, 3 })
###
module.exports['Exists'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "EmptyList",
"context" : "Patient",
"expression" : {
"type" : "Exists",
"operand" : {
"type" : "List"
}
}
}, {
"name" : "FullList",
"context" : "Patient",
"expression" : {
"type" : "Exists",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}
}
} ]
}
}
}
### Equal
library TestSnippet version '1'
using QUICK
context Patient
define EqualIntList = {1, 2, 3} = {1, 2, 3}
define UnequalIntList = {1, 2, 3} = {1, 2}
define ReverseIntList = {1, 2, 3} = {3, 2, 1}
define EqualStringList = {'hello', 'world'} = {'hello', 'world'}
define UnequalStringList = {'hello', 'world'} = {'foo', 'bar'}
define EqualTupleList = { tuple{a: 1, b: tuple{c: 1}}, tuple{x: 'y', z: 2} } = { tuple{a: 1, b: tuple{c: 1}}, tuple{x: 'y', z: 2} }
define UnequalTupleList = { tuple{a: 1, b: tuple{c: 1}}, tuple{x: 'y', z: 2} } = { tuple{a: 1, b: tuple{c: -1}}, tuple{x: 'y', z: 2} }
###
module.exports['Equal'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "EqualIntList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "UnequalIntList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ReverseIntList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "EqualStringList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "hello",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "world",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "hello",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "world",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "UnequalStringList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "hello",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "world",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "foo",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "bar",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "EqualTupleList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "x",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "z",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "x",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "z",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "UnequalTupleList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "x",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "z",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"type" : "Negate",
"operand" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "x",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "z",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
} ]
}
} ]
}
}
}
### NotEqual
library TestSnippet version '1'
using QUICK
context Patient
define EqualIntList = {1, 2, 3} <> {1, 2, 3}
define UnequalIntList = {1, 2, 3} <> {1, 2}
define ReverseIntList = {1, 2, 3} <> {3, 2, 1}
define EqualStringList = {'hello', 'world'} <> {'hello', 'world'}
define UnequalStringList = {'hello', 'world'} <> {'foo', 'bar'}
define EqualTupleList = { tuple{a: 1, b: tuple{c: 1}}, tuple{x: 'y', z: 2} } <> { tuple{a: 1, b: tuple{c: 1}}, tuple{x: 'y', z: 2} }
define UnequalTupleList = { tuple{a: 1, b: tuple{c: 1}}, tuple{x: 'y', z: 2} } <> { tuple{a: 1, b: tuple{c: -1}}, tuple{x: 'y', z: 2} }
###
module.exports['NotEqual'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "EqualIntList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "UnequalIntList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ReverseIntList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "EqualStringList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "hello",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "world",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "hello",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "world",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "UnequalStringList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "hello",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "world",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "foo",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "bar",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "EqualTupleList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "x",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "z",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "x",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "z",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "UnequalTupleList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "x",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "z",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"type" : "Negate",
"operand" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "x",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "z",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
} ]
}
} ]
}
}
}
### Union
library TestSnippet version '1'
using QUICK
context Patient
define OneToTen = {1, 2, 3, 4, 5} union {6, 7, 8, 9, 10}
define OneToFiveOverlapped = {1, 2, 3, 4} union {3, 4, 5}
define Disjoint = {1, 2} union {4, 5}
define NestedToFifteen = {1, 2, 3} union {4, 5, 6} union {7 ,8 , 9} union {10, 11, 12} union {13, 14, 15}
define NullUnion = null union {1, 2, 3}
define UnionNull = {1, 2, 3} union null
###
module.exports['Union'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "OneToTen",
"context" : "Patient",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "10",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "OneToFiveOverlapped",
"context" : "Patient",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "Disjoint",
"context" : "Patient",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "NestedToFifteen",
"context" : "Patient",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "Union",
"operand" : [ {
"type" : "Union",
"operand" : [ {
"type" : "Union",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "10",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "11",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "12",
"type" : "Literal"
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "13",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "14",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "15",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "NullUnion",
"context" : "Patient",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "UnionNull",
"context" : "Patient",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
} ]
}
}
}
### Except
library TestSnippet version '1'
using QUICK
context Patient
define ExceptThreeFour = {1, 2, 3, 4, 5} except {3, 4}
define ThreeFourExcept = {3, 4} except {1, 2, 3, 4, 5}
define ExceptFiveThree = {1, 2, 3, 4, 5} except {5, 3}
define ExceptNoOp = {1, 2, 3, 4, 5} except {6, 7, 8, 9, 10}
define ExceptEverything = {1, 2, 3, 4, 5} except {1, 2, 3, 4, 5}
define SomethingExceptNothing = {1, 2, 3, 4, 5} except {}
define NothingExceptSomething = {} except {1, 2, 3, 4, 5}
define ExceptTuples = {tuple{a: 1}, tuple{b: 2}, tuple{c: 3}} except {tuple{b: 2}}
define ExceptNull = {1, 2, 3, 4, 5} except null
define NullExcept = null except {1, 2, 3, 4, 5}
###
module.exports['Except'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "ExceptThreeFour",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ThreeFourExcept",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ExceptFiveThree",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ExceptNoOp",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "10",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ExceptEverything",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "SomethingExceptNothing",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List"
} ]
}
}, {
"name" : "NothingExceptSomething",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ExceptTuples",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "ExceptNull",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
}, {
"name" : "NullExcept",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
} ]
}
}
}
### Intersect
library TestSnippet version '1'
using QUICK
context Patient
define NoIntersection = {1, 2, 3} intersect {4, 5, 6}
define IntersectOnFive = {4, 5, 6} intersect {1, 3, 5, 7}
define IntersectOnEvens = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} intersect {0, 2, 4, 6, 8, 10, 12}
define IntersectOnAll = {1, 2, 3, 4, 5} intersect {5, 4, 3, 2, 1}
define NestedIntersects = {1, 2, 3, 4, 5} intersect {2, 3, 4, 5, 6} intersect {3, 4, 5, 6, 7} intersect {4, 5, 6, 7, 8}
define IntersectTuples = {tuple{a:1, b:'d'}, tuple{a:1, b:'c'}, tuple{a:2, b:'c'}} intersect {tuple{a:2, b:'d'}, tuple{a:1, b:'c'}, tuple{a:2, b:'c'}, tuple{a:5, b:'e'}}
define NullIntersect = null intersect {1, 2, 3}
define IntersectNull = {1, 2, 3} intersect null
###
module.exports['Intersect'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "NoIntersection",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IntersectOnFive",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IntersectOnEvens",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "10",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "0",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "10",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "12",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IntersectOnAll",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "NestedIntersects",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "Intersect",
"operand" : [ {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IntersectTuples",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "e",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "NullIntersect",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IntersectNull",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
} ]
}
}
}
### IndexOf
library TestSnippet version '1'
using QUICK
context Patient
define IndexOfSecond = IndexOf({'a', 'b', 'c', 'd'}, 'b')
define IndexOfThirdTuple = IndexOf({tuple{a: 1}, tuple{b: 2}, tuple{c: 3}}, tuple{c: 3})
define MultipleMatches = IndexOf({'a', 'b', 'c', 'd', 'd', 'e', 'd'}, 'd')
define ItemNotFound = IndexOf({'a', 'b', 'c'}, 'd')
define NullList = IndexOf(null, 'a')
define NullItem = IndexOf({'a', 'b', 'c'}, null)
###
module.exports['IndexOf'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IndexOfSecond",
"context" : "Patient",
"expression" : {
"name" : "IndexOf",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
} ]
}
}, {
"name" : "IndexOfThirdTuple",
"context" : "Patient",
"expression" : {
"name" : "IndexOf",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
} ]
} ]
}
}, {
"name" : "MultipleMatches",
"context" : "Patient",
"expression" : {
"name" : "IndexOf",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "e",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
}
}, {
"name" : "ItemNotFound",
"context" : "Patient",
"expression" : {
"name" : "IndexOf",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
} ]
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
}
}, {
"name" : "NullList",
"context" : "Patient",
"expression" : {
"name" : "IndexOf",
"type" : "FunctionRef",
"operand" : [ {
"type" : "Null"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
} ]
}
}, {
"name" : "NullItem",
"context" : "Patient",
"expression" : {
"name" : "IndexOf",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
} ]
}
}
}
### Indexer
library TestSnippet version '1'
using QUICK
context Patient
define SecondItem = {'a', 'b', 'c', 'd'}[2]
define ZeroIndex = {'a', 'b', 'c', 'd'}[0]
define OutOfBounds = {'a', 'b', 'c', 'd'}[100]
define NullList = null[1]
define NullIndexer = {'a', 'b', 'c', 'd'}[null]
###
module.exports['Indexer'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "SecondItem",
"context" : "Patient",
"expression" : {
"type" : "Indexer",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
},
"index" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}
}, {
"name" : "ZeroIndex",
"context" : "Patient",
"expression" : {
"type" : "Indexer",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
},
"index" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "0",
"type" : "Literal"
}
}
}, {
"name" : "OutOfBounds",
"context" : "Patient",
"expression" : {
"type" : "Indexer",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
},
"index" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "100",
"type" : "Literal"
}
}
}, {
"name" : "NullList",
"context" : "Patient",
"expression" : {
"type" : "Indexer",
"operand" : {
"type" : "Null"
},
"index" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}
}, {
"name" : "NullIndexer",
"context" : "Patient",
"expression" : {
"type" : "Indexer",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
},
"index" : {
"type" : "Null"
}
}
} ]
}
}
}
### In
library TestSnippet version '1'
using QUICK
context Patient
define IsIn = 4 in { 3, 4, 5 }
define IsNotIn = 4 in { 3, 5, 6 }
define TupleIsIn = tuple{a: 1, b: 'c'} in {tuple{a:1, b:'d'}, tuple{a:1, b:'c'}, tuple{a:2, b:'c'}}
define TupleIsNotIn = tuple{a: 1, b: 'c'} in {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define NullIn = null in {1, 2, 3}
define InNull = 1 in null
###
module.exports['In'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IsIn",
"context" : "Patient",
"expression" : {
"type" : "In",
"operand" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsNotIn",
"context" : "Patient",
"expression" : {
"type" : "In",
"operand" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "TupleIsIn",
"context" : "Patient",
"expression" : {
"type" : "In",
"operand" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "TupleIsNotIn",
"context" : "Patient",
"expression" : {
"type" : "In",
"operand" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "NullIn",
"context" : "Patient",
"expression" : {
"type" : "In",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "InNull",
"context" : "Patient",
"expression" : {
"type" : "In",
"operand" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"type" : "Null"
} ]
}
} ]
}
}
}
### Contains
library TestSnippet version '1'
using QUICK
context Patient
define IsIn = { 3, 4, 5 } contains 4
define IsNotIn = { 3, 5, 6 } contains 4
define TupleIsIn = {tuple{a:1, b:'d'}, tuple{a:1, b:'c'}, tuple{a:2, b:'c'}} contains tuple{a: 1, b: 'c'}
define TupleIsNotIn = {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} contains tuple{a: 1, b: 'c'}
define InNull = null contains {1, 2, 3}
define NullIn = 1 contains null
###
module.exports['Contains'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IsIn",
"context" : "Patient",
"expression" : {
"type" : "Contains",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}
}, {
"name" : "IsNotIn",
"context" : "Patient",
"expression" : {
"type" : "Contains",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}
}, {
"name" : "TupleIsIn",
"context" : "Patient",
"expression" : {
"type" : "Contains",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}
}, {
"name" : "TupleIsNotIn",
"context" : "Patient",
"expression" : {
"type" : "Contains",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}
}, {
"name" : "InNull",
"context" : "Patient",
"expression" : {
"type" : "Contains",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "NullIn",
"context" : "Patient",
"expression" : {
"type" : "Contains",
"operand" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"type" : "Null"
} ]
}
} ]
}
}
}
### Includes
library TestSnippet version '1'
using QUICK
context Patient
define IsIncluded = {1, 2, 3, 4, 5} includes {2, 3, 4}
define IsIncludedReversed = {1, 2, 3, 4, 5} includes {4, 3, 2}
define IsSame = {1, 2, 3, 4, 5} includes {1, 2, 3, 4, 5}
define IsNotIncluded = {1, 2, 3, 4, 5} includes {4, 5, 6}
define TuplesIncluded = {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} includes {tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define TuplesNotIncluded = {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} includes {tuple{a:2, b:'d'}, tuple{a:3, b:'c'}}
define NullIncluded = {1, 2, 3, 4, 5} includes null
define NullIncludes = null includes {1, 2, 3, 4, 5}
###
module.exports['Includes'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IsIncluded",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsIncludedReversed",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsSame",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "TuplesIncluded",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "TuplesNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "NullIncluded",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
}, {
"name" : "NullIncludes",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
} ]
}
}
}
### IncludedIn
library TestSnippet version '1'
using QUICK
context Patient
define IsIncluded = {2, 3, 4} included in {1, 2, 3, 4, 5}
define IsIncludedReversed = {4, 3, 2} included in {1, 2, 3, 4, 5}
define IsSame = {1, 2, 3, 4, 5} included in {1, 2, 3, 4, 5}
define IsNotIncluded = {4, 5, 6} included in {1, 2, 3, 4, 5}
define TuplesIncluded = {tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} included in {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define TuplesNotIncluded = {tuple{a:2, b:'d'}, tuple{a:3, b:'c'}} included in {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define NullIncludes = {1, 2, 3, 4, 5} included in null
define NullIncluded = null included in {1, 2, 3, 4, 5}
###
module.exports['IncludedIn'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IsIncluded",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsIncludedReversed",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsSame",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "TuplesIncluded",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "TuplesNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "NullIncludes",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
}, {
"name" : "NullIncluded",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
} ]
}
}
}
### ProperIncludes
library TestSnippet version '1'
using QUICK
context Patient
define IsIncluded = {1, 2, 3, 4, 5} properly includes {2, 3, 4, 5}
define IsIncludedReversed = {1, 2, 3, 4, 5} properly includes {5, 4, 3, 2}
define IsSame = {1, 2, 3, 4, 5} properly includes {1, 2, 3, 4, 5}
define IsNotIncluded = {1, 2, 3, 4, 5} properly includes {3, 4, 5, 6}
define TuplesIncluded = {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} properly includes {tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define TuplesNotIncluded = {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} properly includes {tuple{a:2, b:'d'}, tuple{a:3, b:'c'}}
define NullIncluded = {1, 2, 3, 4, 5} properly includes null
define NullIncludes = null properly includes {1, 2, 3, 4, 5}
###
module.exports['ProperIncludes'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IsIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsIncludedReversed",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsSame",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "TuplesIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "TuplesNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "NullIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
}, {
"name" : "NullIncludes",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
} ]
}
}
}
### ProperIncludedIn
library TestSnippet version '1'
using QUICK
context Patient
define IsIncluded = {2, 3, 4} properly included in {1, 2, 3, 4, 5}
define IsIncludedReversed = {4, 3, 2} properly included in {1, 2, 3, 4, 5}
define IsSame = {1, 2, 3, 4, 5} properly included in {1, 2, 3, 4, 5}
define IsNotIncluded = {4, 5, 6} properly included in {1, 2, 3, 4, 5}
define TuplesIncluded = {tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} properly included in {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define TuplesNotIncluded = {tuple{a:2, b:'d'}, tuple{a:3, b:'c'}} properly included in {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define NullIncludes = {1, 2, 3, 4, 5} properly included in null
define NullIncluded = null properly included in {1, 2, 3, 4, 5}
###
module.exports['ProperIncludedIn'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IsIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsIncludedReversed",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsSame",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "TuplesIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "TuplesNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "NullIncludes",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
}, {
"name" : "NullIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
} ]
}
}
}
### Expand
library TestSnippet version '1'
using QUICK
context Patient
define ListOfLists = expand { {1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {9, 8, 7, 6, 5}, {4}, {3, 2, 1} }
define ListOfInts = expand { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
define MixedList = expand { 1, 2, 3, {4, 5, 6}, 7, 8, 9 }
define NullValue = expand null
###
module.exports['Expand'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "ListOfLists",
"context" : "Patient",
"expression" : {
"type" : "Expand",
"operand" : {
"type" : "List",
"element" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
} ]
} ]
}
}
}, {
"name" : "ListOfInts",
"context" : "Patient",
"expression" : {
"type" : "Expand",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
} ]
}
}
}, {
"name" : "MixedList",
"context" : "Patient",
"expression" : {
"type" : "Expand",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
} ]
}
}
}, {
"name" : "NullValue",
"context" : "Patient",
"expression" : {
"type" : "Expand",
"operand" : {
"type" : "Null"
}
}
} ]
}
}
}
### Distinct
library TestSnippet version '1'
using QUICK
context Patient
define LotsOfDups = distinct {1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 4, 3, 2, 1}
define NoDups = distinct {2, 4, 6, 8, 10}
###
module.exports['Distinct'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "LotsOfDups",
"context" : "Patient",
"expression" : {
"type" : "Distinct",
"source" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
} ]
}
}
}, {
"name" : "NoDups",
"context" : "Patient",
"expression" : {
"type" : "Distinct",
"source" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "10",
"type" : "Literal"
} ]
}
}
} ]
}
}
}
### First
library TestSnippet version '1'
using QUICK
context Patient
define Numbers = First({1, 2, 3, 4})
define Letters = First({'a', 'b', 'c'})
define Lists = First({{'a','b','c'},{1,2,3}})
define Tuples = First({ tuple{a: 1, b: 2, c: 3}, tuple{x: 24, y: 25, z: 26} })
define Unordered = First({3, 1, 4, 2})
define Empty = First({})
define NullValue = First(null)
###
module.exports['First'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "Numbers",
"context" : "Patient",
"expression" : {
"name" : "First",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "Letters",
"context" : "Patient",
"expression" : {
"name" : "First",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "Lists",
"context" : "Patient",
"expression" : {
"name" : "First",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
} ]
}
}, {
"name" : "Tuples",
"context" : "Patient",
"expression" : {
"name" : "First",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "x",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "24",
"type" : "Literal"
}
}, {
"name" : "y",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "25",
"type" : "Literal"
}
}, {
"name" : "z",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "26",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "Unordered",
"context" : "Patient",
"expression" : {
"name" : "First",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "Empty",
"context" : "Patient",
"expression" : {
"name" : "First",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List"
} ]
}
}, {
"name" : "NullValue",
"context" : "Patient",
"expression" : {
"name" : "First",
"type" : "FunctionRef",
"operand" : [ {
"type" : "Null"
} ]
}
} ]
}
}
}
### Last
library TestSnippet version '1'
using QUICK
context Patient
define Numbers = Last({1, 2, 3, 4})
define Letters = Last({'a', 'b', 'c'})
define Lists = Last({{'a','b','c'},{1,2,3}})
define Tuples = Last({ tuple{a: 1, b: 2, c: 3}, tuple{x: 24, y: 25, z: 26} })
define Unordered = Last({3, 1, 4, 2})
define Empty = Last({})
define NullValue = Last(null)
###
module.exports['Last'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "Numbers",
"context" : "Patient",
"expression" : {
"name" : "Last",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "Letters",
"context" : "Patient",
"expression" : {
"name" : "Last",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "Lists",
"context" : "Patient",
"expression" : {
"name" : "Last",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
} ]
}
}, {
"name" : "Tuples",
"context" : "Patient",
"expression" : {
"name" : "Last",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "x",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "24",
"type" : "Literal"
}
}, {
"name" : "y",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "25",
"type" : "Literal"
}
}, {
"name" : "z",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "26",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "Unordered",
"context" : "Patient",
"expression" : {
"name" : "Last",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "Empty",
"context" : "Patient",
"expression" : {
"name" : "Last",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List"
} ]
}
}, {
"name" : "NullValue",
"context" : "Patient",
"expression" : {
"name" : "Last",
"type" : "FunctionRef",
"operand" : [ {
"type" : "Null"
} ]
}
} ]
}
}
}
| 49242 | ###
WARNING: This is a GENERATED file. Do not manually edit!
To generate this file:
- Edit data.coffee to add a CQL Snippet
- From java dir: ./gradlew :cql-to-elm:generateTestData
###
### List
library TestSnippet version '1'
using QUICK
context Patient
define Three = 1 + 2
define IntList = { 9, 7, 8 }
define StringList = { 'a', 'bee', 'see' }
define MixedList = { 1, 'two', Three }
define EmptyList = {}
###
module.exports['List'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "Add",
"operand" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
}
}, {
"name" : "IntList",
"context" : "Patient",
"expression" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "bee",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "see",
"type" : "Literal"
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "two",
"type" : "Literal"
}, {
"name" : "<NAME>",
"type" : "ExpressionRef"
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "List"
}
} ]
}
}
}
### Exists
library TestSnippet version '1'
using QUICK
context Patient
define EmptyList = exists ({})
define FullList = exists ({ 1, 2, 3 })
###
module.exports['Exists'] = {
"library" : {
"identifier" : {
"id" : "<NAME>",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "Exists",
"operand" : {
"type" : "List"
}
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "Exists",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}
}
} ]
}
}
}
### Equal
library TestSnippet version '1'
using QUICK
context Patient
define EqualIntList = {1, 2, 3} = {1, 2, 3}
define UnequalIntList = {1, 2, 3} = {1, 2}
define ReverseIntList = {1, 2, 3} = {3, 2, 1}
define EqualStringList = {'hello', 'world'} = {'hello', 'world'}
define UnequalStringList = {'hello', 'world'} = {'foo', 'bar'}
define EqualTupleList = { tuple{a: 1, b: tuple{c: 1}}, tuple{x: 'y', z: 2} } = { tuple{a: 1, b: tuple{c: 1}}, tuple{x: 'y', z: 2} }
define UnequalTupleList = { tuple{a: 1, b: tuple{c: 1}}, tuple{x: 'y', z: 2} } = { tuple{a: 1, b: tuple{c: -1}}, tuple{x: 'y', z: 2} }
###
module.exports['Equal'] = {
"library" : {
"identifier" : {
"id" : "<NAME>Snippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "EqualIntList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "UnequalIntList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ReverseIntList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "EqualStringList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "hello",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "world",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "hello",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "world",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "UnequalStringList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "hello",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "world",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "foo",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "bar",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "EqualTupleList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "UnequalTupleList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"type" : "Negate",
"operand" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
} ]
}
} ]
}
}
}
### NotEqual
library TestSnippet version '1'
using QUICK
context Patient
define EqualIntList = {1, 2, 3} <> {1, 2, 3}
define UnequalIntList = {1, 2, 3} <> {1, 2}
define ReverseIntList = {1, 2, 3} <> {3, 2, 1}
define EqualStringList = {'hello', 'world'} <> {'hello', 'world'}
define UnequalStringList = {'hello', 'world'} <> {'foo', 'bar'}
define EqualTupleList = { tuple{a: 1, b: tuple{c: 1}}, tuple{x: 'y', z: 2} } <> { tuple{a: 1, b: tuple{c: 1}}, tuple{x: 'y', z: 2} }
define UnequalTupleList = { tuple{a: 1, b: tuple{c: 1}}, tuple{x: 'y', z: 2} } <> { tuple{a: 1, b: tuple{c: -1}}, tuple{x: 'y', z: 2} }
###
module.exports['NotEqual'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "<NAME>IntList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "UnequalIntList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ReverseIntList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "EqualStringList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "hello",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "world",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "hello",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "world",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "UnequalStringList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "hello",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "world",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "foo",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "bar",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "EqualTupleList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "UnequalTupleList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"type" : "Negate",
"operand" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
} ]
}
} ]
}
}
}
### Union
library TestSnippet version '1'
using QUICK
context Patient
define OneToTen = {1, 2, 3, 4, 5} union {6, 7, 8, 9, 10}
define OneToFiveOverlapped = {1, 2, 3, 4} union {3, 4, 5}
define Disjoint = {1, 2} union {4, 5}
define NestedToFifteen = {1, 2, 3} union {4, 5, 6} union {7 ,8 , 9} union {10, 11, 12} union {13, 14, 15}
define NullUnion = null union {1, 2, 3}
define UnionNull = {1, 2, 3} union null
###
module.exports['Union'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "OneToTen",
"context" : "Patient",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "10",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "OneToFiveOverlapped",
"context" : "Patient",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "NestedToFifteen",
"context" : "Patient",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "Union",
"operand" : [ {
"type" : "Union",
"operand" : [ {
"type" : "Union",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "10",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "11",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "12",
"type" : "Literal"
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "13",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "14",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "15",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "NullUnion",
"context" : "Patient",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "UnionNull",
"context" : "Patient",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
} ]
}
}
}
### Except
library TestSnippet version '1'
using QUICK
context Patient
define ExceptThreeFour = {1, 2, 3, 4, 5} except {3, 4}
define ThreeFourExcept = {3, 4} except {1, 2, 3, 4, 5}
define ExceptFiveThree = {1, 2, 3, 4, 5} except {5, 3}
define ExceptNoOp = {1, 2, 3, 4, 5} except {6, 7, 8, 9, 10}
define ExceptEverything = {1, 2, 3, 4, 5} except {1, 2, 3, 4, 5}
define SomethingExceptNothing = {1, 2, 3, 4, 5} except {}
define NothingExceptSomething = {} except {1, 2, 3, 4, 5}
define ExceptTuples = {tuple{a: 1}, tuple{b: 2}, tuple{c: 3}} except {tuple{b: 2}}
define ExceptNull = {1, 2, 3, 4, 5} except null
define NullExcept = null except {1, 2, 3, 4, 5}
###
module.exports['Except'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "ExceptThreeFour",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ThreeFourExcept",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ExceptFiveThree",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ExceptNoOp",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "10",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ExceptEverything",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "SomethingExceptNothing",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List"
} ]
}
}, {
"name" : "NothingExceptSomething",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ExceptTuples",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "ExceptNull",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
}, {
"name" : "NullExcept",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
} ]
}
}
}
### Intersect
library TestSnippet version '1'
using QUICK
context Patient
define NoIntersection = {1, 2, 3} intersect {4, 5, 6}
define IntersectOnFive = {4, 5, 6} intersect {1, 3, 5, 7}
define IntersectOnEvens = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} intersect {0, 2, 4, 6, 8, 10, 12}
define IntersectOnAll = {1, 2, 3, 4, 5} intersect {5, 4, 3, 2, 1}
define NestedIntersects = {1, 2, 3, 4, 5} intersect {2, 3, 4, 5, 6} intersect {3, 4, 5, 6, 7} intersect {4, 5, 6, 7, 8}
define IntersectTuples = {tuple{a:1, b:'d'}, tuple{a:1, b:'c'}, tuple{a:2, b:'c'}} intersect {tuple{a:2, b:'d'}, tuple{a:1, b:'c'}, tuple{a:2, b:'c'}, tuple{a:5, b:'e'}}
define NullIntersect = null intersect {1, 2, 3}
define IntersectNull = {1, 2, 3} intersect null
###
module.exports['Intersect'] = {
"library" : {
"identifier" : {
"id" : "<NAME>Snippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "NoIntersection",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IntersectOnFive",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IntersectOnEvens",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "10",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "0",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "10",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "12",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IntersectOnAll",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "NestedIntersects",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "Intersect",
"operand" : [ {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IntersectTuples",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "e",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "NullIntersect",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IntersectNull",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
} ]
}
}
}
### IndexOf
library TestSnippet version '1'
using QUICK
context Patient
define IndexOfSecond = IndexOf({'a', 'b', 'c', 'd'}, 'b')
define IndexOfThirdTuple = IndexOf({tuple{a: 1}, tuple{b: 2}, tuple{c: 3}}, tuple{c: 3})
define MultipleMatches = IndexOf({'a', 'b', 'c', 'd', 'd', 'e', 'd'}, 'd')
define ItemNotFound = IndexOf({'a', 'b', 'c'}, 'd')
define NullList = IndexOf(null, 'a')
define NullItem = IndexOf({'a', 'b', 'c'}, null)
###
module.exports['IndexOf'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IndexOfSecond",
"context" : "Patient",
"expression" : {
"name" : "IndexOf",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
} ]
}
}, {
"name" : "IndexOfThirdTuple",
"context" : "Patient",
"expression" : {
"name" : "IndexOf",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
} ]
} ]
}
}, {
"name" : "MultipleMatches",
"context" : "Patient",
"expression" : {
"name" : "IndexOf",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "e",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
}
}, {
"name" : "ItemNotFound",
"context" : "Patient",
"expression" : {
"name" : "IndexOf",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
} ]
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
}
}, {
"name" : "NullList",
"context" : "Patient",
"expression" : {
"name" : "IndexOf",
"type" : "FunctionRef",
"operand" : [ {
"type" : "Null"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
} ]
}
}, {
"name" : "NullItem",
"context" : "Patient",
"expression" : {
"name" : "IndexOf",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
} ]
}
}
}
### Indexer
library TestSnippet version '1'
using QUICK
context Patient
define SecondItem = {'a', 'b', 'c', 'd'}[2]
define ZeroIndex = {'a', 'b', 'c', 'd'}[0]
define OutOfBounds = {'a', 'b', 'c', 'd'}[100]
define NullList = null[1]
define NullIndexer = {'a', 'b', 'c', 'd'}[null]
###
module.exports['Indexer'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "Indexer",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
},
"index" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "Indexer",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
},
"index" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "0",
"type" : "Literal"
}
}
}, {
"name" : "OutOfBounds",
"context" : "Patient",
"expression" : {
"type" : "Indexer",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
},
"index" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "100",
"type" : "Literal"
}
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "Indexer",
"operand" : {
"type" : "Null"
},
"index" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}
}, {
"name" : "NullIndexer",
"context" : "Patient",
"expression" : {
"type" : "Indexer",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
},
"index" : {
"type" : "Null"
}
}
} ]
}
}
}
### In
library TestSnippet version '1'
using QUICK
context Patient
define IsIn = 4 in { 3, 4, 5 }
define IsNotIn = 4 in { 3, 5, 6 }
define TupleIsIn = tuple{a: 1, b: 'c'} in {tuple{a:1, b:'d'}, tuple{a:1, b:'c'}, tuple{a:2, b:'c'}}
define TupleIsNotIn = tuple{a: 1, b: 'c'} in {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define NullIn = null in {1, 2, 3}
define InNull = 1 in null
###
module.exports['In'] = {
"library" : {
"identifier" : {
"id" : "<NAME>Snippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IsIn",
"context" : "Patient",
"expression" : {
"type" : "In",
"operand" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsNotIn",
"context" : "Patient",
"expression" : {
"type" : "In",
"operand" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "TupleIsIn",
"context" : "Patient",
"expression" : {
"type" : "In",
"operand" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "TupleIsNotIn",
"context" : "Patient",
"expression" : {
"type" : "In",
"operand" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "In",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "InNull",
"context" : "Patient",
"expression" : {
"type" : "In",
"operand" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"type" : "Null"
} ]
}
} ]
}
}
}
### Contains
library TestSnippet version '1'
using QUICK
context Patient
define IsIn = { 3, 4, 5 } contains 4
define IsNotIn = { 3, 5, 6 } contains 4
define TupleIsIn = {tuple{a:1, b:'d'}, tuple{a:1, b:'c'}, tuple{a:2, b:'c'}} contains tuple{a: 1, b: 'c'}
define TupleIsNotIn = {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} contains tuple{a: 1, b: 'c'}
define InNull = null contains {1, 2, 3}
define NullIn = 1 contains null
###
module.exports['Contains'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IsIn",
"context" : "Patient",
"expression" : {
"type" : "Contains",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}
}, {
"name" : "IsNotIn",
"context" : "Patient",
"expression" : {
"type" : "Contains",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}
}, {
"name" : "TupleIsIn",
"context" : "Patient",
"expression" : {
"type" : "Contains",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}
}, {
"name" : "TupleIsNotIn",
"context" : "Patient",
"expression" : {
"type" : "Contains",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}
}, {
"name" : "InNull",
"context" : "Patient",
"expression" : {
"type" : "Contains",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "NullIn",
"context" : "Patient",
"expression" : {
"type" : "Contains",
"operand" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"type" : "Null"
} ]
}
} ]
}
}
}
### Includes
library TestSnippet version '1'
using QUICK
context Patient
define IsIncluded = {1, 2, 3, 4, 5} includes {2, 3, 4}
define IsIncludedReversed = {1, 2, 3, 4, 5} includes {4, 3, 2}
define IsSame = {1, 2, 3, 4, 5} includes {1, 2, 3, 4, 5}
define IsNotIncluded = {1, 2, 3, 4, 5} includes {4, 5, 6}
define TuplesIncluded = {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} includes {tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define TuplesNotIncluded = {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} includes {tuple{a:2, b:'d'}, tuple{a:3, b:'c'}}
define NullIncluded = {1, 2, 3, 4, 5} includes null
define NullIncludes = null includes {1, 2, 3, 4, 5}
###
module.exports['Includes'] = {
"library" : {
"identifier" : {
"id" : "<NAME>Snippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IsIncluded",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsIncludedReversed",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "<NAME>Same",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "TuplesIncluded",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "TuplesNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "NullIncluded",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
}, {
"name" : "NullIncludes",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
} ]
}
}
}
### IncludedIn
library TestSnippet version '1'
using QUICK
context Patient
define IsIncluded = {2, 3, 4} included in {1, 2, 3, 4, 5}
define IsIncludedReversed = {4, 3, 2} included in {1, 2, 3, 4, 5}
define IsSame = {1, 2, 3, 4, 5} included in {1, 2, 3, 4, 5}
define IsNotIncluded = {4, 5, 6} included in {1, 2, 3, 4, 5}
define TuplesIncluded = {tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} included in {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define TuplesNotIncluded = {tuple{a:2, b:'d'}, tuple{a:3, b:'c'}} included in {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define NullIncludes = {1, 2, 3, 4, 5} included in null
define NullIncluded = null included in {1, 2, 3, 4, 5}
###
module.exports['IncludedIn'] = {
"library" : {
"identifier" : {
"id" : "<NAME>Snippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IsIncluded",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsIncludedReversed",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsSame",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "TuplesIncluded",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "TuplesNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "NullIncludes",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
}, {
"name" : "<NAME>Included",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
} ]
}
}
}
### ProperIncludes
library TestSnippet version '1'
using QUICK
context Patient
define IsIncluded = {1, 2, 3, 4, 5} properly includes {2, 3, 4, 5}
define IsIncludedReversed = {1, 2, 3, 4, 5} properly includes {5, 4, 3, 2}
define IsSame = {1, 2, 3, 4, 5} properly includes {1, 2, 3, 4, 5}
define IsNotIncluded = {1, 2, 3, 4, 5} properly includes {3, 4, 5, 6}
define TuplesIncluded = {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} properly includes {tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define TuplesNotIncluded = {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} properly includes {tuple{a:2, b:'d'}, tuple{a:3, b:'c'}}
define NullIncluded = {1, 2, 3, 4, 5} properly includes null
define NullIncludes = null properly includes {1, 2, 3, 4, 5}
###
module.exports['ProperIncludes'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IsIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsIncludedReversed",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "TuplesIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "TuplesNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
}, {
"name" : "NullIncludes",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
} ]
}
}
}
### ProperIncludedIn
library TestSnippet version '1'
using QUICK
context Patient
define IsIncluded = {2, 3, 4} properly included in {1, 2, 3, 4, 5}
define IsIncludedReversed = {4, 3, 2} properly included in {1, 2, 3, 4, 5}
define IsSame = {1, 2, 3, 4, 5} properly included in {1, 2, 3, 4, 5}
define IsNotIncluded = {4, 5, 6} properly included in {1, 2, 3, 4, 5}
define TuplesIncluded = {tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} properly included in {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define TuplesNotIncluded = {tuple{a:2, b:'d'}, tuple{a:3, b:'c'}} properly included in {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define NullIncludes = {1, 2, 3, 4, 5} properly included in null
define NullIncluded = null properly included in {1, 2, 3, 4, 5}
###
module.exports['ProperIncludedIn'] = {
"library" : {
"identifier" : {
"id" : "<NAME>Snippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IsIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsIncludedReversed",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "<NAME>Same",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "TuplesIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "TuplesNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "NullIncludes",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
}, {
"name" : "NullIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
} ]
}
}
}
### Expand
library TestSnippet version '1'
using QUICK
context Patient
define ListOfLists = expand { {1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {9, 8, 7, 6, 5}, {4}, {3, 2, 1} }
define ListOfInts = expand { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
define MixedList = expand { 1, 2, 3, {4, 5, 6}, 7, 8, 9 }
define NullValue = expand null
###
module.exports['Expand'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "Expand",
"operand" : {
"type" : "List",
"element" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
} ]
} ]
}
}
}, {
"name" : "ListOfInts",
"context" : "Patient",
"expression" : {
"type" : "Expand",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
} ]
}
}
}, {
"name" : "<NAME>List",
"context" : "Patient",
"expression" : {
"type" : "Expand",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
} ]
}
}
}, {
"name" : "NullValue",
"context" : "Patient",
"expression" : {
"type" : "Expand",
"operand" : {
"type" : "Null"
}
}
} ]
}
}
}
### Distinct
library TestSnippet version '1'
using QUICK
context Patient
define LotsOfDups = distinct {1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 4, 3, 2, 1}
define NoDups = distinct {2, 4, 6, 8, 10}
###
module.exports['Distinct'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "LotsOfDups",
"context" : "Patient",
"expression" : {
"type" : "Distinct",
"source" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
} ]
}
}
}, {
"name" : "<NAME>Dups",
"context" : "Patient",
"expression" : {
"type" : "Distinct",
"source" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "10",
"type" : "Literal"
} ]
}
}
} ]
}
}
}
### First
library TestSnippet version '1'
using QUICK
context Patient
define Numbers = First({1, 2, 3, 4})
define Letters = First({'a', 'b', 'c'})
define Lists = First({{'a','b','c'},{1,2,3}})
define Tuples = First({ tuple{a: 1, b: 2, c: 3}, tuple{x: 24, y: 25, z: 26} })
define Unordered = First({3, 1, 4, 2})
define Empty = First({})
define NullValue = First(null)
###
module.exports['First'] = {
"library" : {
"identifier" : {
"id" : "<NAME>Snippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"name" : "<NAME>",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"name" : "<NAME>",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"name" : "<NAME>",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"name" : "<NAME>",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "24",
"type" : "Literal"
}
}, {
"name" : "y",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "25",
"type" : "Literal"
}
}, {
"name" : "z",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "26",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"name" : "<NAME>",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"name" : "<NAME>",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List"
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"name" : "<NAME>",
"type" : "FunctionRef",
"operand" : [ {
"type" : "Null"
} ]
}
} ]
}
}
}
### Last
library TestSnippet version '1'
using QUICK
context Patient
define Numbers = Last({1, 2, 3, 4})
define Letters = Last({'a', 'b', 'c'})
define Lists = Last({{'a','b','c'},{1,2,3}})
define Tuples = Last({ tuple{a: 1, b: 2, c: 3}, tuple{x: 24, y: 25, z: 26} })
define Unordered = Last({3, 1, 4, 2})
define Empty = Last({})
define NullValue = Last(null)
###
module.exports['Last'] = {
"library" : {
"identifier" : {
"id" : "<NAME>Snippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"name" : "<NAME>",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"name" : "<NAME>",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"name" : "<NAME>",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"name" : "<NAME>",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "24",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "25",
"type" : "Literal"
}
}, {
"name" : "<NAME>",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "26",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"name" : "<NAME>",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"name" : "<NAME>",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List"
} ]
}
}, {
"name" : "<NAME>",
"context" : "Patient",
"expression" : {
"name" : "<NAME>",
"type" : "FunctionRef",
"operand" : [ {
"type" : "Null"
} ]
}
} ]
}
}
}
| true | ###
WARNING: This is a GENERATED file. Do not manually edit!
To generate this file:
- Edit data.coffee to add a CQL Snippet
- From java dir: ./gradlew :cql-to-elm:generateTestData
###
### List
library TestSnippet version '1'
using QUICK
context Patient
define Three = 1 + 2
define IntList = { 9, 7, 8 }
define StringList = { 'a', 'bee', 'see' }
define MixedList = { 1, 'two', Three }
define EmptyList = {}
###
module.exports['List'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "Add",
"operand" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
}
}, {
"name" : "IntList",
"context" : "Patient",
"expression" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "bee",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "see",
"type" : "Literal"
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "two",
"type" : "Literal"
}, {
"name" : "PI:NAME:<NAME>END_PI",
"type" : "ExpressionRef"
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "List"
}
} ]
}
}
}
### Exists
library TestSnippet version '1'
using QUICK
context Patient
define EmptyList = exists ({})
define FullList = exists ({ 1, 2, 3 })
###
module.exports['Exists'] = {
"library" : {
"identifier" : {
"id" : "PI:NAME:<NAME>END_PI",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "Exists",
"operand" : {
"type" : "List"
}
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "Exists",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}
}
} ]
}
}
}
### Equal
library TestSnippet version '1'
using QUICK
context Patient
define EqualIntList = {1, 2, 3} = {1, 2, 3}
define UnequalIntList = {1, 2, 3} = {1, 2}
define ReverseIntList = {1, 2, 3} = {3, 2, 1}
define EqualStringList = {'hello', 'world'} = {'hello', 'world'}
define UnequalStringList = {'hello', 'world'} = {'foo', 'bar'}
define EqualTupleList = { tuple{a: 1, b: tuple{c: 1}}, tuple{x: 'y', z: 2} } = { tuple{a: 1, b: tuple{c: 1}}, tuple{x: 'y', z: 2} }
define UnequalTupleList = { tuple{a: 1, b: tuple{c: 1}}, tuple{x: 'y', z: 2} } = { tuple{a: 1, b: tuple{c: -1}}, tuple{x: 'y', z: 2} }
###
module.exports['Equal'] = {
"library" : {
"identifier" : {
"id" : "PI:NAME:<NAME>END_PISnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "EqualIntList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "UnequalIntList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ReverseIntList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "EqualStringList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "hello",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "world",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "hello",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "world",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "UnequalStringList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "hello",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "world",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "foo",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "bar",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "EqualTupleList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "UnequalTupleList",
"context" : "Patient",
"expression" : {
"type" : "Equal",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"type" : "Negate",
"operand" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
} ]
}
} ]
}
}
}
### NotEqual
library TestSnippet version '1'
using QUICK
context Patient
define EqualIntList = {1, 2, 3} <> {1, 2, 3}
define UnequalIntList = {1, 2, 3} <> {1, 2}
define ReverseIntList = {1, 2, 3} <> {3, 2, 1}
define EqualStringList = {'hello', 'world'} <> {'hello', 'world'}
define UnequalStringList = {'hello', 'world'} <> {'foo', 'bar'}
define EqualTupleList = { tuple{a: 1, b: tuple{c: 1}}, tuple{x: 'y', z: 2} } <> { tuple{a: 1, b: tuple{c: 1}}, tuple{x: 'y', z: 2} }
define UnequalTupleList = { tuple{a: 1, b: tuple{c: 1}}, tuple{x: 'y', z: 2} } <> { tuple{a: 1, b: tuple{c: -1}}, tuple{x: 'y', z: 2} }
###
module.exports['NotEqual'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "PI:NAME:<NAME>END_PIIntList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "UnequalIntList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ReverseIntList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "EqualStringList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "hello",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "world",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "hello",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "world",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "UnequalStringList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "hello",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "world",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "foo",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "bar",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "EqualTupleList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "UnequalTupleList",
"context" : "Patient",
"expression" : {
"type" : "NotEqual",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"type" : "Negate",
"operand" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}
} ]
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "y",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
} ]
}
} ]
}
}
}
### Union
library TestSnippet version '1'
using QUICK
context Patient
define OneToTen = {1, 2, 3, 4, 5} union {6, 7, 8, 9, 10}
define OneToFiveOverlapped = {1, 2, 3, 4} union {3, 4, 5}
define Disjoint = {1, 2} union {4, 5}
define NestedToFifteen = {1, 2, 3} union {4, 5, 6} union {7 ,8 , 9} union {10, 11, 12} union {13, 14, 15}
define NullUnion = null union {1, 2, 3}
define UnionNull = {1, 2, 3} union null
###
module.exports['Union'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "OneToTen",
"context" : "Patient",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "10",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "OneToFiveOverlapped",
"context" : "Patient",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "NestedToFifteen",
"context" : "Patient",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "Union",
"operand" : [ {
"type" : "Union",
"operand" : [ {
"type" : "Union",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "10",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "11",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "12",
"type" : "Literal"
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "13",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "14",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "15",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "NullUnion",
"context" : "Patient",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "UnionNull",
"context" : "Patient",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
} ]
}
}
}
### Except
library TestSnippet version '1'
using QUICK
context Patient
define ExceptThreeFour = {1, 2, 3, 4, 5} except {3, 4}
define ThreeFourExcept = {3, 4} except {1, 2, 3, 4, 5}
define ExceptFiveThree = {1, 2, 3, 4, 5} except {5, 3}
define ExceptNoOp = {1, 2, 3, 4, 5} except {6, 7, 8, 9, 10}
define ExceptEverything = {1, 2, 3, 4, 5} except {1, 2, 3, 4, 5}
define SomethingExceptNothing = {1, 2, 3, 4, 5} except {}
define NothingExceptSomething = {} except {1, 2, 3, 4, 5}
define ExceptTuples = {tuple{a: 1}, tuple{b: 2}, tuple{c: 3}} except {tuple{b: 2}}
define ExceptNull = {1, 2, 3, 4, 5} except null
define NullExcept = null except {1, 2, 3, 4, 5}
###
module.exports['Except'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "ExceptThreeFour",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ThreeFourExcept",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ExceptFiveThree",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ExceptNoOp",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "10",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ExceptEverything",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "SomethingExceptNothing",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List"
} ]
}
}, {
"name" : "NothingExceptSomething",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "ExceptTuples",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "ExceptNull",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
}, {
"name" : "NullExcept",
"context" : "Patient",
"expression" : {
"type" : "Except",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
} ]
}
}
}
### Intersect
library TestSnippet version '1'
using QUICK
context Patient
define NoIntersection = {1, 2, 3} intersect {4, 5, 6}
define IntersectOnFive = {4, 5, 6} intersect {1, 3, 5, 7}
define IntersectOnEvens = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} intersect {0, 2, 4, 6, 8, 10, 12}
define IntersectOnAll = {1, 2, 3, 4, 5} intersect {5, 4, 3, 2, 1}
define NestedIntersects = {1, 2, 3, 4, 5} intersect {2, 3, 4, 5, 6} intersect {3, 4, 5, 6, 7} intersect {4, 5, 6, 7, 8}
define IntersectTuples = {tuple{a:1, b:'d'}, tuple{a:1, b:'c'}, tuple{a:2, b:'c'}} intersect {tuple{a:2, b:'d'}, tuple{a:1, b:'c'}, tuple{a:2, b:'c'}, tuple{a:5, b:'e'}}
define NullIntersect = null intersect {1, 2, 3}
define IntersectNull = {1, 2, 3} intersect null
###
module.exports['Intersect'] = {
"library" : {
"identifier" : {
"id" : "PI:NAME:<NAME>END_PISnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "NoIntersection",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IntersectOnFive",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IntersectOnEvens",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "10",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "0",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "10",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "12",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IntersectOnAll",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "NestedIntersects",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "Intersect",
"operand" : [ {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IntersectTuples",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "e",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "NullIntersect",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IntersectNull",
"context" : "Patient",
"expression" : {
"type" : "Intersect",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
} ]
}
}
}
### IndexOf
library TestSnippet version '1'
using QUICK
context Patient
define IndexOfSecond = IndexOf({'a', 'b', 'c', 'd'}, 'b')
define IndexOfThirdTuple = IndexOf({tuple{a: 1}, tuple{b: 2}, tuple{c: 3}}, tuple{c: 3})
define MultipleMatches = IndexOf({'a', 'b', 'c', 'd', 'd', 'e', 'd'}, 'd')
define ItemNotFound = IndexOf({'a', 'b', 'c'}, 'd')
define NullList = IndexOf(null, 'a')
define NullItem = IndexOf({'a', 'b', 'c'}, null)
###
module.exports['IndexOf'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IndexOfSecond",
"context" : "Patient",
"expression" : {
"name" : "IndexOf",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
} ]
}
}, {
"name" : "IndexOfThirdTuple",
"context" : "Patient",
"expression" : {
"name" : "IndexOf",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "c",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
} ]
} ]
}
}, {
"name" : "MultipleMatches",
"context" : "Patient",
"expression" : {
"name" : "IndexOf",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "e",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
}
}, {
"name" : "ItemNotFound",
"context" : "Patient",
"expression" : {
"name" : "IndexOf",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
} ]
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
}
}, {
"name" : "NullList",
"context" : "Patient",
"expression" : {
"name" : "IndexOf",
"type" : "FunctionRef",
"operand" : [ {
"type" : "Null"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
} ]
}
}, {
"name" : "NullItem",
"context" : "Patient",
"expression" : {
"name" : "IndexOf",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
} ]
}
}
}
### Indexer
library TestSnippet version '1'
using QUICK
context Patient
define SecondItem = {'a', 'b', 'c', 'd'}[2]
define ZeroIndex = {'a', 'b', 'c', 'd'}[0]
define OutOfBounds = {'a', 'b', 'c', 'd'}[100]
define NullList = null[1]
define NullIndexer = {'a', 'b', 'c', 'd'}[null]
###
module.exports['Indexer'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "Indexer",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
},
"index" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "Indexer",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
},
"index" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "0",
"type" : "Literal"
}
}
}, {
"name" : "OutOfBounds",
"context" : "Patient",
"expression" : {
"type" : "Indexer",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
},
"index" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "100",
"type" : "Literal"
}
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "Indexer",
"operand" : {
"type" : "Null"
},
"index" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}
}, {
"name" : "NullIndexer",
"context" : "Patient",
"expression" : {
"type" : "Indexer",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
} ]
},
"index" : {
"type" : "Null"
}
}
} ]
}
}
}
### In
library TestSnippet version '1'
using QUICK
context Patient
define IsIn = 4 in { 3, 4, 5 }
define IsNotIn = 4 in { 3, 5, 6 }
define TupleIsIn = tuple{a: 1, b: 'c'} in {tuple{a:1, b:'d'}, tuple{a:1, b:'c'}, tuple{a:2, b:'c'}}
define TupleIsNotIn = tuple{a: 1, b: 'c'} in {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define NullIn = null in {1, 2, 3}
define InNull = 1 in null
###
module.exports['In'] = {
"library" : {
"identifier" : {
"id" : "PI:NAME:<NAME>END_PISnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IsIn",
"context" : "Patient",
"expression" : {
"type" : "In",
"operand" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsNotIn",
"context" : "Patient",
"expression" : {
"type" : "In",
"operand" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "TupleIsIn",
"context" : "Patient",
"expression" : {
"type" : "In",
"operand" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "TupleIsNotIn",
"context" : "Patient",
"expression" : {
"type" : "In",
"operand" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "In",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "InNull",
"context" : "Patient",
"expression" : {
"type" : "In",
"operand" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"type" : "Null"
} ]
}
} ]
}
}
}
### Contains
library TestSnippet version '1'
using QUICK
context Patient
define IsIn = { 3, 4, 5 } contains 4
define IsNotIn = { 3, 5, 6 } contains 4
define TupleIsIn = {tuple{a:1, b:'d'}, tuple{a:1, b:'c'}, tuple{a:2, b:'c'}} contains tuple{a: 1, b: 'c'}
define TupleIsNotIn = {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} contains tuple{a: 1, b: 'c'}
define InNull = null contains {1, 2, 3}
define NullIn = 1 contains null
###
module.exports['Contains'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IsIn",
"context" : "Patient",
"expression" : {
"type" : "Contains",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}
}, {
"name" : "IsNotIn",
"context" : "Patient",
"expression" : {
"type" : "Contains",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}
}, {
"name" : "TupleIsIn",
"context" : "Patient",
"expression" : {
"type" : "Contains",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}
}, {
"name" : "TupleIsNotIn",
"context" : "Patient",
"expression" : {
"type" : "Contains",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "a",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}
}, {
"name" : "InNull",
"context" : "Patient",
"expression" : {
"type" : "Contains",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "NullIn",
"context" : "Patient",
"expression" : {
"type" : "Contains",
"operand" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"type" : "Null"
} ]
}
} ]
}
}
}
### Includes
library TestSnippet version '1'
using QUICK
context Patient
define IsIncluded = {1, 2, 3, 4, 5} includes {2, 3, 4}
define IsIncludedReversed = {1, 2, 3, 4, 5} includes {4, 3, 2}
define IsSame = {1, 2, 3, 4, 5} includes {1, 2, 3, 4, 5}
define IsNotIncluded = {1, 2, 3, 4, 5} includes {4, 5, 6}
define TuplesIncluded = {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} includes {tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define TuplesNotIncluded = {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} includes {tuple{a:2, b:'d'}, tuple{a:3, b:'c'}}
define NullIncluded = {1, 2, 3, 4, 5} includes null
define NullIncludes = null includes {1, 2, 3, 4, 5}
###
module.exports['Includes'] = {
"library" : {
"identifier" : {
"id" : "PI:NAME:<NAME>END_PISnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IsIncluded",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsIncludedReversed",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PISame",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "TuplesIncluded",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "TuplesNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "NullIncluded",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
}, {
"name" : "NullIncludes",
"context" : "Patient",
"expression" : {
"type" : "Includes",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
} ]
}
}
}
### IncludedIn
library TestSnippet version '1'
using QUICK
context Patient
define IsIncluded = {2, 3, 4} included in {1, 2, 3, 4, 5}
define IsIncludedReversed = {4, 3, 2} included in {1, 2, 3, 4, 5}
define IsSame = {1, 2, 3, 4, 5} included in {1, 2, 3, 4, 5}
define IsNotIncluded = {4, 5, 6} included in {1, 2, 3, 4, 5}
define TuplesIncluded = {tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} included in {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define TuplesNotIncluded = {tuple{a:2, b:'d'}, tuple{a:3, b:'c'}} included in {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define NullIncludes = {1, 2, 3, 4, 5} included in null
define NullIncluded = null included in {1, 2, 3, 4, 5}
###
module.exports['IncludedIn'] = {
"library" : {
"identifier" : {
"id" : "PI:NAME:<NAME>END_PISnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IsIncluded",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsIncludedReversed",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsSame",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "TuplesIncluded",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "TuplesNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "NullIncludes",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PIIncluded",
"context" : "Patient",
"expression" : {
"type" : "IncludedIn",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
} ]
}
}
}
### ProperIncludes
library TestSnippet version '1'
using QUICK
context Patient
define IsIncluded = {1, 2, 3, 4, 5} properly includes {2, 3, 4, 5}
define IsIncludedReversed = {1, 2, 3, 4, 5} properly includes {5, 4, 3, 2}
define IsSame = {1, 2, 3, 4, 5} properly includes {1, 2, 3, 4, 5}
define IsNotIncluded = {1, 2, 3, 4, 5} properly includes {3, 4, 5, 6}
define TuplesIncluded = {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} properly includes {tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define TuplesNotIncluded = {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} properly includes {tuple{a:2, b:'d'}, tuple{a:3, b:'c'}}
define NullIncluded = {1, 2, 3, 4, 5} properly includes null
define NullIncludes = null properly includes {1, 2, 3, 4, 5}
###
module.exports['ProperIncludes'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IsIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsIncludedReversed",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "TuplesIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "b",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "TuplesNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
}, {
"name" : "NullIncludes",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludes",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
} ]
}
}
}
### ProperIncludedIn
library TestSnippet version '1'
using QUICK
context Patient
define IsIncluded = {2, 3, 4} properly included in {1, 2, 3, 4, 5}
define IsIncludedReversed = {4, 3, 2} properly included in {1, 2, 3, 4, 5}
define IsSame = {1, 2, 3, 4, 5} properly included in {1, 2, 3, 4, 5}
define IsNotIncluded = {4, 5, 6} properly included in {1, 2, 3, 4, 5}
define TuplesIncluded = {tuple{a:2, b:'d'}, tuple{a:2, b:'c'}} properly included in {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define TuplesNotIncluded = {tuple{a:2, b:'d'}, tuple{a:3, b:'c'}} properly included in {tuple{a:1, b:'d'}, tuple{a:2, b:'d'}, tuple{a:2, b:'c'}}
define NullIncludes = {1, 2, 3, 4, 5} properly included in null
define NullIncluded = null properly included in {1, 2, 3, 4, 5}
###
module.exports['ProperIncludedIn'] = {
"library" : {
"identifier" : {
"id" : "PI:NAME:<NAME>END_PISnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "IsIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsIncludedReversed",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PISame",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "IsNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "TuplesIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "TuplesNotIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
}, {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "d",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "NullIncludes",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "Null"
} ]
}
}, {
"name" : "NullIncluded",
"context" : "Patient",
"expression" : {
"type" : "ProperIncludedIn",
"operand" : [ {
"type" : "Null"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
} ]
}
} ]
}
}
}
### Expand
library TestSnippet version '1'
using QUICK
context Patient
define ListOfLists = expand { {1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {9, 8, 7, 6, 5}, {4}, {3, 2, 1} }
define ListOfInts = expand { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
define MixedList = expand { 1, 2, 3, {4, 5, 6}, 7, 8, 9 }
define NullValue = expand null
###
module.exports['Expand'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "Expand",
"operand" : {
"type" : "List",
"element" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
} ]
} ]
}
}
}, {
"name" : "ListOfInts",
"context" : "Patient",
"expression" : {
"type" : "Expand",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
} ]
}
}
}, {
"name" : "PI:NAME:<NAME>END_PIList",
"context" : "Patient",
"expression" : {
"type" : "Expand",
"operand" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
} ]
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "7",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "9",
"type" : "Literal"
} ]
}
}
}, {
"name" : "NullValue",
"context" : "Patient",
"expression" : {
"type" : "Expand",
"operand" : {
"type" : "Null"
}
}
} ]
}
}
}
### Distinct
library TestSnippet version '1'
using QUICK
context Patient
define LotsOfDups = distinct {1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 4, 3, 2, 1}
define NoDups = distinct {2, 4, 6, 8, 10}
###
module.exports['Distinct'] = {
"library" : {
"identifier" : {
"id" : "TestSnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "LotsOfDups",
"context" : "Patient",
"expression" : {
"type" : "Distinct",
"source" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "5",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
} ]
}
}
}, {
"name" : "PI:NAME:<NAME>END_PIDups",
"context" : "Patient",
"expression" : {
"type" : "Distinct",
"source" : {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "6",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "8",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "10",
"type" : "Literal"
} ]
}
}
} ]
}
}
}
### First
library TestSnippet version '1'
using QUICK
context Patient
define Numbers = First({1, 2, 3, 4})
define Letters = First({'a', 'b', 'c'})
define Lists = First({{'a','b','c'},{1,2,3}})
define Tuples = First({ tuple{a: 1, b: 2, c: 3}, tuple{x: 24, y: 25, z: 26} })
define Unordered = First({3, 1, 4, 2})
define Empty = First({})
define NullValue = First(null)
###
module.exports['First'] = {
"library" : {
"identifier" : {
"id" : "PI:NAME:<NAME>END_PISnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"name" : "PI:NAME:<NAME>END_PI",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"name" : "PI:NAME:<NAME>END_PI",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"name" : "PI:NAME:<NAME>END_PI",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"name" : "PI:NAME:<NAME>END_PI",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "24",
"type" : "Literal"
}
}, {
"name" : "y",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "25",
"type" : "Literal"
}
}, {
"name" : "z",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "26",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"name" : "PI:NAME:<NAME>END_PI",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"name" : "PI:NAME:<NAME>END_PI",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List"
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"name" : "PI:NAME:<NAME>END_PI",
"type" : "FunctionRef",
"operand" : [ {
"type" : "Null"
} ]
}
} ]
}
}
}
### Last
library TestSnippet version '1'
using QUICK
context Patient
define Numbers = Last({1, 2, 3, 4})
define Letters = Last({'a', 'b', 'c'})
define Lists = Last({{'a','b','c'},{1,2,3}})
define Tuples = Last({ tuple{a: 1, b: 2, c: 3}, tuple{x: 24, y: 25, z: 26} })
define Unordered = Last({3, 1, 4, 2})
define Empty = Last({})
define NullValue = Last(null)
###
module.exports['Last'] = {
"library" : {
"identifier" : {
"id" : "PI:NAME:<NAME>END_PISnippet",
"version" : "1"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "QUICK",
"uri" : "http://org.hl7.fhir"
} ]
},
"statements" : {
"def" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://org.hl7.fhir}Patient",
"templateId" : "cqf-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"name" : "PI:NAME:<NAME>END_PI",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"name" : "PI:NAME:<NAME>END_PI",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"name" : "PI:NAME:<NAME>END_PI",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "a",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "b",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}string",
"value" : "c",
"type" : "Literal"
} ]
}, {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
} ]
} ]
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"name" : "PI:NAME:<NAME>END_PI",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}
} ]
}, {
"type" : "Tuple",
"element" : [ {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "24",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "25",
"type" : "Literal"
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"value" : {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "26",
"type" : "Literal"
}
} ]
} ]
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"name" : "PI:NAME:<NAME>END_PI",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List",
"element" : [ {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "3",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "1",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "4",
"type" : "Literal"
}, {
"valueType" : "{http://www.w3.org/2001/XMLSchema}int",
"value" : "2",
"type" : "Literal"
} ]
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"name" : "PI:NAME:<NAME>END_PI",
"type" : "FunctionRef",
"operand" : [ {
"type" : "List"
} ]
}
}, {
"name" : "PI:NAME:<NAME>END_PI",
"context" : "Patient",
"expression" : {
"name" : "PI:NAME:<NAME>END_PI",
"type" : "FunctionRef",
"operand" : [ {
"type" : "Null"
} ]
}
} ]
}
}
}
|
[
{
"context": "d functions in other modules', ->\n\t\tsut.greeting('Marcus').should.equal 'Hello Marcus!'",
"end": 247,
"score": 0.9390271306037903,
"start": 241,
"tag": "NAME",
"value": "Marcus"
},
{
"context": "', ->\n\t\tsut.greeting('Marcus').should.equal 'Hello Marcus!'",
"en... | test/spec.coffee | echoabhishek/csv-to-json | 1 | sut = require '../src/index.coffee'
should = require 'should'
describe 'Writing Node with CoffeeScript', ->
it 'is easy to get started testing... or is it?', -> true
it 'can access exported functions in other modules', ->
sut.greeting('Marcus').should.equal 'Hello Marcus!' | 209391 | sut = require '../src/index.coffee'
should = require 'should'
describe 'Writing Node with CoffeeScript', ->
it 'is easy to get started testing... or is it?', -> true
it 'can access exported functions in other modules', ->
sut.greeting('<NAME>').should.equal 'Hello <NAME>!' | true | sut = require '../src/index.coffee'
should = require 'should'
describe 'Writing Node with CoffeeScript', ->
it 'is easy to get started testing... or is it?', -> true
it 'can access exported functions in other modules', ->
sut.greeting('PI:NAME:<NAME>END_PI').should.equal 'Hello PI:NAME:<NAME>END_PI!' |
[
{
"context": " object to auth user\n $rootScope.user = @user\n\n # template access to authenticat",
"end": 5133,
"score": 0.6778845191001892,
"start": 5133,
"tag": "USERNAME",
"value": ""
},
{
"context": "->\n c = undefined\n key = 'curre... | src/ng-token-auth.coffee | heysailor/ng-token-auth-local-oauth | 2 | if typeof module != 'undefined' and typeof exports != 'undefined' and module.exports == exports
module.exports = 'ng-token-auth'
angular.module('ng-token-auth', ['ipCookie'])
.provider('$auth', ->
configs =
default:
apiUrl: '/api'
signOutUrl: '/auth/sign_out'
emailSignInPath: '/auth/sign_in'
# heysailor/ng-token-auth-localOAuth
submitOAuthTokenPath: '/auth/OAuthToken'
emailRegistrationPath: '/auth'
accountUpdatePath: '/auth'
accountDeletePath: '/auth'
confirmationSuccessUrl: -> window.location.href
passwordResetPath: '/auth/password'
passwordUpdatePath: '/auth/password'
passwordResetSuccessUrl: -> window.location.href
tokenValidationPath: '/auth/validate_token'
proxyIf: -> false
proxyUrl: '/proxy'
validateOnPageLoad: true
forceHardRedirect: false
storage: 'cookies'
tokenFormat:
"access-token": "{{ token }}"
"token-type": "Bearer"
client: "{{ clientId }}"
expiry: "{{ expiry }}"
uid: "{{ uid }}"
parseExpiry: (headers) ->
# convert from ruby time (seconds) to js time (millis)
(parseInt(headers['expiry'], 10) * 1000) || null
handleLoginResponse: (resp) -> resp.data
handleAccountUpdateResponse: (resp) -> resp.data
handleTokenValidationResponse: (resp) -> resp.data
authProviderPaths:
github: '/auth/github'
facebook: '/auth/facebook'
google: '/auth/google_oauth2'
defaultConfigName = "default"
return {
configure: (params) ->
# user is using multiple concurrent configs (>1 user types).
if params instanceof Array and params.length
# extend each item in array from default settings
for conf, i in params
# get the name of the config
label = null
for k, v of conf
label = k
# set the first item in array as default config
defaultConfigName = label if i == 0
# use copy preserve the original default settings object while
# extending each config object
defaults = angular.copy(configs["default"])
fullConfig = {}
fullConfig[label] = angular.extend(defaults, conf[label])
angular.extend(configs, fullConfig)
# remove existng default config
delete configs["default"] unless defaultConfigName == "default"
# user is extending the single default config
else if params instanceof Object
angular.extend(configs["default"], params)
# user is doing something wrong
else
throw "Invalid argument: ng-token-auth config should be an Array or Object."
return configs
$get: [
'$http'
'$q'
'$location'
'ipCookie'
'$window'
'$timeout'
'$rootScope'
'$interpolate'
($http, $q, $location, ipCookie, $window, $timeout, $rootScope, $interpolate) =>
header: null
dfd: null
user: {}
mustResetPassword: false
listener: null
# called once at startup
initialize: ->
@initializeListeners()
@addScopeMethods()
initializeListeners: ->
#@listener = @handlePostMessage.bind(@)
@listener = angular.bind(@, @handlePostMessage)
if $window.addEventListener
$window.addEventListener("message", @listener, false)
cancel: (reason) ->
# cancel any pending timers
if @t?
$timeout.cancel(@t)
# reject any pending promises
if @dfd?
@rejectDfd(reason)
# nullify timer after reflow
return $timeout((=> @t = null), 0)
# cancel any pending processes, clean up garbage
destroy: ->
@cancel()
if $window.removeEventListener
$window.removeEventListener("message", @listener, false)
# handle the events broadcast from external auth tabs/popups
handlePostMessage: (ev) ->
if ev.data.message == 'deliverCredentials'
delete ev.data.message
@handleValidAuth(ev.data, true)
$rootScope.$broadcast('auth:login-success', ev.data)
if ev.data.message == 'authFailure'
error = {
reason: 'unauthorized'
errors: [ev.data.error]
}
@cancel(error)
$rootScope.$broadcast('auth:login-error', error)
# make all public API methods available to directives
addScopeMethods: ->
# bind global user object to auth user
$rootScope.user = @user
# template access to authentication method
$rootScope.authenticate = angular.bind(@, @authenticate)
# template access to view actions
$rootScope.signOut = angular.bind(@, @signOut)
$rootScope.destroyAccount = angular.bind(@, @destroyAccount)
$rootScope.submitRegistration = angular.bind(@, @submitRegistration)
$rootScope.submitLogin = angular.bind(@, @submitLogin)
$rootScope.requestPasswordReset = angular.bind(@, @requestPasswordReset)
$rootScope.updatePassword = angular.bind(@, @updatePassword)
$rootScope.updateAccount = angular.bind(@, @updateAccount)
# heysailor/ng-token-auth-localOAuth
$rootScope.submitOAuthToken = angular.bind(@, @submitOAuthToken)
# check to see if user is returning user
if @getConfig().validateOnPageLoad
@validateUser({config: @getSavedConfig()})
# register by email. server will send confirmation email
# containing a link to activate the account. the link will
# redirect to this site.
submitRegistration: (params, opts={}) ->
successUrl = @getResultOrValue(@getConfig(opts.config).confirmationSuccessUrl)
angular.extend(params, {
confirm_success_url: successUrl,
config_name: @getCurrentConfigName(opts.config)
})
$http.post(@apiUrl(opts.config) + @getConfig(opts.config).emailRegistrationPath, params)
.success((resp)->
$rootScope.$broadcast('auth:registration-email-success', params)
)
.error((resp) ->
$rootScope.$broadcast('auth:registration-email-error', resp)
)
# capture input from user, authenticate serverside
submitLogin: (params, opts={}) ->
@initDfd()
$http.post(@apiUrl(opts.config) + @getConfig(opts.config).emailSignInPath, params)
.success((resp) =>
@setConfigName(opts.config)
authData = @getConfig(opts.config).handleLoginResponse(resp, @)
@handleValidAuth(authData)
$rootScope.$broadcast('auth:login-success', @user)
)
.error((resp) =>
@rejectDfd({
reason: 'unauthorized'
errors: ['Invalid credentials']
})
$rootScope.$broadcast('auth:login-error', resp)
)
@dfd.promise
# heysailor/ng-token-auth-localOAuth
# pass OAuth token obtained client side to authenticate serverside
submitOAuthToken: (params, opts={}) ->
@initDfd()
$http.post(@apiUrl(opts.config) + @getConfig(opts.config).submitOAuthTokenPath, params)
.success((resp) =>
@setConfigName(opts.config)
authData = @getConfig(opts.config).handleLoginResponse(resp, @)
@handleValidAuth(authData)
$rootScope.$broadcast('auth:login-success', @user)
)
.error((resp) =>
@rejectDfd({
reason: 'unauthorized'
errors: ['Invalid credentials']
})
$rootScope.$broadcast('auth:login-error', resp)
)
@dfd.promise
# check if user is authenticated
userIsAuthenticated: ->
@retrieveData('auth_headers') and @user.signedIn and not @tokenHasExpired()
# request password reset from API
requestPasswordReset: (params, opts={}) ->
successUrl = @getResultOrValue(
@getConfig(opts.config).passwordResetSuccessUrl
)
params.redirect_url = successUrl
params.config_name = opts.config if opts.config?
$http.post(@apiUrl(opts.config) + @getConfig(opts.config).passwordResetPath, params)
.success((resp) ->
$rootScope.$broadcast('auth:password-reset-request-success', params)
)
.error((resp) ->
$rootScope.$broadcast('auth:password-reset-request-error', resp)
)
# update user password
updatePassword: (params) ->
$http.put(@apiUrl() + @getConfig().passwordUpdatePath, params)
.success((resp) =>
$rootScope.$broadcast('auth:password-change-success', resp)
@mustResetPassword = false
)
.error((resp) ->
$rootScope.$broadcast('auth:password-change-error', resp)
)
# update user account info
updateAccount: (params) ->
$http.put(@apiUrl() + @getConfig().accountUpdatePath, params)
.success((resp) =>
updateResponse = @getConfig().handleAccountUpdateResponse(resp)
curHeaders = @retrieveData('auth_headers')
angular.extend @user, updateResponse
# ensure any critical headers (uid + ?) that are returned in
# the update response are updated appropriately in storage
if curHeaders
newHeaders = {}
for key, val of @getConfig().tokenFormat
if curHeaders[key] && updateResponse[key]
newHeaders[key] = updateResponse[key]
@setAuthHeaders(newHeaders)
$rootScope.$broadcast('auth:account-update-success', resp)
)
.error((resp) ->
$rootScope.$broadcast('auth:account-update-error', resp)
)
# permanently destroy a user's account.
destroyAccount: (params) ->
$http.delete(@apiUrl() + @getConfig().accountUpdatePath, params)
.success((resp) =>
@invalidateTokens()
$rootScope.$broadcast('auth:account-destroy-success', resp)
)
.error((resp) ->
$rootScope.$broadcast('auth:account-destroy-error', resp)
)
# open external auth provider in separate window, send requests for
# credentials until api auth callback page responds.
authenticate: (provider, opts={}) ->
unless @dfd?
@setConfigName(opts.config)
@initDfd()
@openAuthWindow(provider, opts)
@dfd.promise
setConfigName: (configName) ->
configName ?= defaultConfigName
@persistData('currentConfigName', configName, configName)
# open external window to authentication provider
openAuthWindow: (provider, opts) ->
authUrl = @buildAuthUrl(provider, opts)
if @useExternalWindow()
@requestCredentials(@createPopup(authUrl))
else
@visitUrl(authUrl)
# testing actual redirects is difficult. stub this for testing
visitUrl: (url) ->
$window.location.replace(url)
buildAuthUrl: (provider, opts={}) ->
authUrl = @getConfig(opts.config).apiUrl
authUrl += @getConfig(opts.config).authProviderPaths[provider]
authUrl += '?auth_origin_url=' + encodeURIComponent($window.location.href)
if opts.params?
for key, val of opts.params
authUrl += '&'
authUrl += encodeURIComponent(key)
authUrl += '='
authUrl += encodeURIComponent(val)
return authUrl
# ping auth window to see if user has completed registration.
# this method is recursively called until:
# 1. user completes authentication
# 2. user fails authentication
# 3. auth window is closed
requestCredentials: (authWindow) ->
# user has closed the external provider's auth window without
# completing login.
if authWindow.closed
@cancel({
reason: 'unauthorized'
errors: ['User canceled login']
})
$rootScope.$broadcast('auth:window-closed')
# still awaiting user input
else
authWindow.postMessage("requestCredentials", "*")
@t = $timeout((=>@requestCredentials(authWindow)), 500)
# popups are difficult to test. mock this method in testing.
createPopup: (url) ->
$window.open(url)
# this needs to happen after a reflow so that the promise
# can be rejected properly before it is destroyed.
resolveDfd: ->
@dfd.resolve(@user)
$timeout((=>
@dfd = null
$rootScope.$digest() unless $rootScope.$$phase
), 0)
# this is something that can be returned from 'resolve' methods
# of pages that have restricted access
validateUser: (opts={}) ->
configName = opts.config
unless @dfd?
@initDfd()
# save trip to API if possible. assume that user is still signed
# in if auth headers are present and token has not expired.
if @userIsAuthenticated()
# user is still presumably logged in
@resolveDfd()
else
# token querystring is present. user most likely just came from
# registration email link.
if $location.search().token != undefined
token = $location.search().token
clientId = $location.search().client_id
uid = $location.search().uid
expiry = $location.search().expiry
configName = $location.search().config
# use the configuration that was used in creating
# the confirmation link
@setConfigName(configName)
# check if redirected from password reset link
@mustResetPassword = $location.search().reset_password
# check if redirected from email confirmation link
@firstTimeLogin = $location.search().account_confirmation_success
# persist these values
@setAuthHeaders(@buildAuthHeaders({
token: token
clientId: clientId
uid: uid
expiry: expiry
}))
# strip qs from url to prevent re-use of these params
# on page refresh
$location.url(($location.path() || '/'))
# token cookie is present. user is returning to the site, or
# has refreshed the page.
else if @retrieveData('currentConfigName')
configName = @retrieveData('currentConfigName')
unless isEmpty(@retrieveData('auth_headers'))
# if token has expired, do not verify token with API
if @tokenHasExpired()
$rootScope.$broadcast('auth:session-expired')
@rejectDfd({
reason: 'unauthorized'
errors: ['Session expired.']
})
else
# token has been saved in session var, token has not
# expired. must be verified with API.
@validateToken({config: configName})
# new user session. will redirect to login
else
@rejectDfd({
reason: 'unauthorized'
errors: ['No credentials']
})
$rootScope.$broadcast('auth:invalid')
@dfd.promise
# confirm that user's auth token is still valid.
validateToken: (opts={}) ->
unless @tokenHasExpired()
$http.get(@apiUrl(opts.config) + @getConfig(opts.config).tokenValidationPath)
.success((resp) =>
authData = @getConfig(opts.config).handleTokenValidationResponse(resp)
@handleValidAuth(authData)
# broadcast event for first time login
if @firstTimeLogin
$rootScope.$broadcast('auth:email-confirmation-success', @user)
if @mustResetPassword
$rootScope.$broadcast('auth:password-reset-confirm-success', @user)
$rootScope.$broadcast('auth:validation-success', @user)
)
.error((data) =>
# broadcast event for first time login failure
if @firstTimeLogin
$rootScope.$broadcast('auth:email-confirmation-error', data)
if @mustResetPassword
$rootScope.$broadcast('auth:password-reset-confirm-error', data)
$rootScope.$broadcast('auth:validation-error', data)
@rejectDfd({
reason: 'unauthorized'
errors: data.errors
})
)
else
@rejectDfd({
reason: 'unauthorized'
errors: ['Expired credentials']
})
# ensure token has not expired
tokenHasExpired: ->
expiry = @getExpiry()
now = new Date().getTime()
return (expiry and expiry < now)
# get expiry by method provided in config
getExpiry: ->
@getConfig().parseExpiry(@retrieveData('auth_headers') || {})
# this service attempts to cache auth tokens, but sometimes we
# will want to discard saved tokens. examples include:
# 1. login failure
# 2. token validation failure
# 3. user logs out
invalidateTokens: ->
# cannot delete user object for scoping reasons. instead, delete
# all keys on object.
delete @user[key] for key, val of @user
# remove any assumptions about current configuration
@deleteData('currentConfigName')
$timeout.cancel @timer if @timer?
# kill cookies, otherwise session will resume on page reload
# setting this value to null will force the validateToken method
# to re-validate credentials with api server when validate is called
@deleteData('auth_headers')
# destroy auth token on server, destroy user auth credentials
signOut: ->
$http.delete(@apiUrl() + @getConfig().signOutUrl)
.success((resp) =>
@invalidateTokens()
$rootScope.$broadcast('auth:logout-success')
)
.error((resp) =>
@invalidateTokens()
$rootScope.$broadcast('auth:logout-error', resp)
)
# handle successful authentication
handleValidAuth: (user, setHeader=false) ->
# cancel any pending postMessage checks
$timeout.cancel(@t) if @t?
# must extend existing object for scoping reasons
angular.extend @user, user
# add shortcut to determine user auth status
@user.signedIn = true
@user.configName = @getCurrentConfigName()
# postMessage will not contain header. must save headers manually.
if setHeader
@setAuthHeaders(@buildAuthHeaders({
token: @user.auth_token
clientId: @user.client_id
uid: @user.uid
expiry: @user.expiry
}))
# fulfill promise
@resolveDfd()
# configure auth token format.
buildAuthHeaders: (ctx) ->
headers = {}
for key, val of @getConfig().tokenFormat
headers[key] = $interpolate(val)(ctx)
return headers
# abstract persistent data store
persistData: (key, val, configName) ->
switch @getConfig(configName).storage
when 'localStorage'
$window.localStorage.setItem(key, JSON.stringify(val))
else
ipCookie(key, val, {path: '/'})
# abstract persistent data retrieval
retrieveData: (key) ->
switch @getConfig().storage
when 'localStorage'
JSON.parse($window.localStorage.getItem(key))
else ipCookie(key)
# abstract persistent data removal
deleteData: (key) ->
switch @getConfig().storage
when 'localStorage'
$window.localStorage.removeItem(key)
else
ipCookie.remove(key, {path: '/'})
# persist authentication token, client id, uid
setAuthHeaders: (h) ->
newHeaders = angular.extend((@retrieveData('auth_headers') || {}), h)
result = @persistData('auth_headers', newHeaders)
expiry = @getExpiry()
now = new Date().getTime()
if expiry > now
$timeout.cancel @timer if @timer?
@timer = $timeout (=>
@validateUser {config: @getSavedConfig()}
), parseInt (expiry - now) / 1000
result
# ie8 + ie9 cannot use xdomain postMessage
useExternalWindow: ->
not (@getConfig().forceHardRedirect || $window.isIE())
initDfd: ->
@dfd = $q.defer()
# failed login. invalidate auth header and reject promise.
# defered object must be destroyed after reflow.
rejectDfd: (reason) ->
@invalidateTokens()
if @dfd?
@dfd.reject(reason)
# must nullify after reflow so promises can be rejected
$timeout((=> @dfd = null), 0)
# use proxy for IE
apiUrl: (configName) ->
if @getConfig(configName).proxyIf()
@getConfig(configName).proxyUrl
else
@getConfig(configName).apiUrl
getConfig: (name) ->
configs[@getCurrentConfigName(name)]
# if value is a method, call the method. otherwise return the
# argument itself
getResultOrValue: (arg) ->
if typeof(arg) == 'function'
arg()
else
arg
# a config name will be return in the following order of precedence:
# 1. matches arg
# 2. saved from past authentication
# 3. first available config name
getCurrentConfigName: (name) ->
name || @getSavedConfig()
# can't rely on retrieveData because it will cause a recursive loop
# if config hasn't been initialized. instead find first available
# value of 'defaultConfigName'. searches the following places in
# this priority:
# 1. localStorage
# 2. cookies
# 3. default (first available config)
getSavedConfig: ->
c = undefined
key = 'currentConfigName'
if $window.localStorage
c ?= JSON.parse($window.localStorage.getItem(key))
c ?= ipCookie(key)
return c || defaultConfigName
]
}
)
# each response will contain auth headers that have been updated by
# the server. copy those headers for use in the next request.
.config(['$httpProvider', ($httpProvider) ->
# responses are sometimes returned out of order. check that response is
# current before saving the auth data.
tokenIsCurrent = ($auth, headers) ->
oldTokenExpiry = Number($auth.getExpiry())
newTokenExpiry = Number($auth.getConfig().parseExpiry(headers || {}))
return newTokenExpiry >= oldTokenExpiry
# uniform handling of response headers for success or error conditions
updateHeadersFromResponse = ($auth, resp) ->
newHeaders = {}
for key, val of $auth.getConfig().tokenFormat
if resp.headers(key)
newHeaders[key] = resp.headers(key)
if tokenIsCurrent($auth, newHeaders)
$auth.setAuthHeaders(newHeaders)
# this is ugly...
# we need to configure an interceptor (must be done in the configuration
# phase), but we need access to the $http service, which is only available
# during the run phase. the following technique was taken from this
# stackoverflow post:
# http://stackoverflow.com/questions/14681654/i-need-two-instances-of-angularjs-http-service-or-what
$httpProvider.interceptors.push ['$injector', ($injector) ->
request: (req) ->
$injector.invoke ['$http', '$auth', ($http, $auth) ->
if req.url.match($auth.apiUrl())
for key, val of $auth.retrieveData('auth_headers')
req.headers[key] = val
]
return req
response: (resp) ->
$injector.invoke ['$http', '$auth', ($http, $auth) ->
if resp.config.url.match($auth.apiUrl())
return updateHeadersFromResponse($auth, resp)
]
return resp
responseError: (resp) ->
$injector.invoke ['$http', '$auth', ($http, $auth) ->
if resp.config.url.match($auth.apiUrl())
return updateHeadersFromResponse($auth, resp)
]
return $injector.get('$q').reject(resp)
]
# define http methods that may need to carry auth headers
httpMethods = ['get', 'post', 'put', 'patch', 'delete']
# disable IE ajax request caching for each of the necessary http methods
angular.forEach(httpMethods, (method) ->
$httpProvider.defaults.headers[method] ?= {}
$httpProvider.defaults.headers[method]['If-Modified-Since'] = 'Mon, 26 Jul 1997 05:00:00 GMT'
)
])
.run(['$auth', '$window', '$rootScope', ($auth, $window, $rootScope) ->
$auth.initialize()
])
# ie8 and ie9 require special handling
window.isOldIE = ->
out = false
nav = navigator.userAgent.toLowerCase()
if nav and nav.indexOf('msie') != -1
version = parseInt(nav.split('msie')[1])
if version < 10
out = true
out
# ie <= 11 do not support postMessage
window.isIE = ->
nav = navigator.userAgent.toLowerCase()
((nav and nav.indexOf('msie') != -1) || !!navigator.userAgent.match(/Trident.*rv\:11\./))
window.isEmpty = (obj) ->
# null and undefined are "empty"
return true unless obj
# Assume if it has a length property with a non-zero value
# that that property is correct.
return false if (obj.length > 0)
return true if (obj.length == 0)
# Otherwise, does it have any properties of its own?
# Note that this doesn't handle
# toString and valueOf enumeration bugs in IE < 9
for key, val of obj
return false if (Object.prototype.hasOwnProperty.call(obj, key))
return true
| 196840 | if typeof module != 'undefined' and typeof exports != 'undefined' and module.exports == exports
module.exports = 'ng-token-auth'
angular.module('ng-token-auth', ['ipCookie'])
.provider('$auth', ->
configs =
default:
apiUrl: '/api'
signOutUrl: '/auth/sign_out'
emailSignInPath: '/auth/sign_in'
# heysailor/ng-token-auth-localOAuth
submitOAuthTokenPath: '/auth/OAuthToken'
emailRegistrationPath: '/auth'
accountUpdatePath: '/auth'
accountDeletePath: '/auth'
confirmationSuccessUrl: -> window.location.href
passwordResetPath: '/auth/password'
passwordUpdatePath: '/auth/password'
passwordResetSuccessUrl: -> window.location.href
tokenValidationPath: '/auth/validate_token'
proxyIf: -> false
proxyUrl: '/proxy'
validateOnPageLoad: true
forceHardRedirect: false
storage: 'cookies'
tokenFormat:
"access-token": "{{ token }}"
"token-type": "Bearer"
client: "{{ clientId }}"
expiry: "{{ expiry }}"
uid: "{{ uid }}"
parseExpiry: (headers) ->
# convert from ruby time (seconds) to js time (millis)
(parseInt(headers['expiry'], 10) * 1000) || null
handleLoginResponse: (resp) -> resp.data
handleAccountUpdateResponse: (resp) -> resp.data
handleTokenValidationResponse: (resp) -> resp.data
authProviderPaths:
github: '/auth/github'
facebook: '/auth/facebook'
google: '/auth/google_oauth2'
defaultConfigName = "default"
return {
configure: (params) ->
# user is using multiple concurrent configs (>1 user types).
if params instanceof Array and params.length
# extend each item in array from default settings
for conf, i in params
# get the name of the config
label = null
for k, v of conf
label = k
# set the first item in array as default config
defaultConfigName = label if i == 0
# use copy preserve the original default settings object while
# extending each config object
defaults = angular.copy(configs["default"])
fullConfig = {}
fullConfig[label] = angular.extend(defaults, conf[label])
angular.extend(configs, fullConfig)
# remove existng default config
delete configs["default"] unless defaultConfigName == "default"
# user is extending the single default config
else if params instanceof Object
angular.extend(configs["default"], params)
# user is doing something wrong
else
throw "Invalid argument: ng-token-auth config should be an Array or Object."
return configs
$get: [
'$http'
'$q'
'$location'
'ipCookie'
'$window'
'$timeout'
'$rootScope'
'$interpolate'
($http, $q, $location, ipCookie, $window, $timeout, $rootScope, $interpolate) =>
header: null
dfd: null
user: {}
mustResetPassword: false
listener: null
# called once at startup
initialize: ->
@initializeListeners()
@addScopeMethods()
initializeListeners: ->
#@listener = @handlePostMessage.bind(@)
@listener = angular.bind(@, @handlePostMessage)
if $window.addEventListener
$window.addEventListener("message", @listener, false)
cancel: (reason) ->
# cancel any pending timers
if @t?
$timeout.cancel(@t)
# reject any pending promises
if @dfd?
@rejectDfd(reason)
# nullify timer after reflow
return $timeout((=> @t = null), 0)
# cancel any pending processes, clean up garbage
destroy: ->
@cancel()
if $window.removeEventListener
$window.removeEventListener("message", @listener, false)
# handle the events broadcast from external auth tabs/popups
handlePostMessage: (ev) ->
if ev.data.message == 'deliverCredentials'
delete ev.data.message
@handleValidAuth(ev.data, true)
$rootScope.$broadcast('auth:login-success', ev.data)
if ev.data.message == 'authFailure'
error = {
reason: 'unauthorized'
errors: [ev.data.error]
}
@cancel(error)
$rootScope.$broadcast('auth:login-error', error)
# make all public API methods available to directives
addScopeMethods: ->
# bind global user object to auth user
$rootScope.user = @user
# template access to authentication method
$rootScope.authenticate = angular.bind(@, @authenticate)
# template access to view actions
$rootScope.signOut = angular.bind(@, @signOut)
$rootScope.destroyAccount = angular.bind(@, @destroyAccount)
$rootScope.submitRegistration = angular.bind(@, @submitRegistration)
$rootScope.submitLogin = angular.bind(@, @submitLogin)
$rootScope.requestPasswordReset = angular.bind(@, @requestPasswordReset)
$rootScope.updatePassword = angular.bind(@, @updatePassword)
$rootScope.updateAccount = angular.bind(@, @updateAccount)
# heysailor/ng-token-auth-localOAuth
$rootScope.submitOAuthToken = angular.bind(@, @submitOAuthToken)
# check to see if user is returning user
if @getConfig().validateOnPageLoad
@validateUser({config: @getSavedConfig()})
# register by email. server will send confirmation email
# containing a link to activate the account. the link will
# redirect to this site.
submitRegistration: (params, opts={}) ->
successUrl = @getResultOrValue(@getConfig(opts.config).confirmationSuccessUrl)
angular.extend(params, {
confirm_success_url: successUrl,
config_name: @getCurrentConfigName(opts.config)
})
$http.post(@apiUrl(opts.config) + @getConfig(opts.config).emailRegistrationPath, params)
.success((resp)->
$rootScope.$broadcast('auth:registration-email-success', params)
)
.error((resp) ->
$rootScope.$broadcast('auth:registration-email-error', resp)
)
# capture input from user, authenticate serverside
submitLogin: (params, opts={}) ->
@initDfd()
$http.post(@apiUrl(opts.config) + @getConfig(opts.config).emailSignInPath, params)
.success((resp) =>
@setConfigName(opts.config)
authData = @getConfig(opts.config).handleLoginResponse(resp, @)
@handleValidAuth(authData)
$rootScope.$broadcast('auth:login-success', @user)
)
.error((resp) =>
@rejectDfd({
reason: 'unauthorized'
errors: ['Invalid credentials']
})
$rootScope.$broadcast('auth:login-error', resp)
)
@dfd.promise
# heysailor/ng-token-auth-localOAuth
# pass OAuth token obtained client side to authenticate serverside
submitOAuthToken: (params, opts={}) ->
@initDfd()
$http.post(@apiUrl(opts.config) + @getConfig(opts.config).submitOAuthTokenPath, params)
.success((resp) =>
@setConfigName(opts.config)
authData = @getConfig(opts.config).handleLoginResponse(resp, @)
@handleValidAuth(authData)
$rootScope.$broadcast('auth:login-success', @user)
)
.error((resp) =>
@rejectDfd({
reason: 'unauthorized'
errors: ['Invalid credentials']
})
$rootScope.$broadcast('auth:login-error', resp)
)
@dfd.promise
# check if user is authenticated
userIsAuthenticated: ->
@retrieveData('auth_headers') and @user.signedIn and not @tokenHasExpired()
# request password reset from API
requestPasswordReset: (params, opts={}) ->
successUrl = @getResultOrValue(
@getConfig(opts.config).passwordResetSuccessUrl
)
params.redirect_url = successUrl
params.config_name = opts.config if opts.config?
$http.post(@apiUrl(opts.config) + @getConfig(opts.config).passwordResetPath, params)
.success((resp) ->
$rootScope.$broadcast('auth:password-reset-request-success', params)
)
.error((resp) ->
$rootScope.$broadcast('auth:password-reset-request-error', resp)
)
# update user password
updatePassword: (params) ->
$http.put(@apiUrl() + @getConfig().passwordUpdatePath, params)
.success((resp) =>
$rootScope.$broadcast('auth:password-change-success', resp)
@mustResetPassword = false
)
.error((resp) ->
$rootScope.$broadcast('auth:password-change-error', resp)
)
# update user account info
updateAccount: (params) ->
$http.put(@apiUrl() + @getConfig().accountUpdatePath, params)
.success((resp) =>
updateResponse = @getConfig().handleAccountUpdateResponse(resp)
curHeaders = @retrieveData('auth_headers')
angular.extend @user, updateResponse
# ensure any critical headers (uid + ?) that are returned in
# the update response are updated appropriately in storage
if curHeaders
newHeaders = {}
for key, val of @getConfig().tokenFormat
if curHeaders[key] && updateResponse[key]
newHeaders[key] = updateResponse[key]
@setAuthHeaders(newHeaders)
$rootScope.$broadcast('auth:account-update-success', resp)
)
.error((resp) ->
$rootScope.$broadcast('auth:account-update-error', resp)
)
# permanently destroy a user's account.
destroyAccount: (params) ->
$http.delete(@apiUrl() + @getConfig().accountUpdatePath, params)
.success((resp) =>
@invalidateTokens()
$rootScope.$broadcast('auth:account-destroy-success', resp)
)
.error((resp) ->
$rootScope.$broadcast('auth:account-destroy-error', resp)
)
# open external auth provider in separate window, send requests for
# credentials until api auth callback page responds.
authenticate: (provider, opts={}) ->
unless @dfd?
@setConfigName(opts.config)
@initDfd()
@openAuthWindow(provider, opts)
@dfd.promise
setConfigName: (configName) ->
configName ?= defaultConfigName
@persistData('currentConfigName', configName, configName)
# open external window to authentication provider
openAuthWindow: (provider, opts) ->
authUrl = @buildAuthUrl(provider, opts)
if @useExternalWindow()
@requestCredentials(@createPopup(authUrl))
else
@visitUrl(authUrl)
# testing actual redirects is difficult. stub this for testing
visitUrl: (url) ->
$window.location.replace(url)
buildAuthUrl: (provider, opts={}) ->
authUrl = @getConfig(opts.config).apiUrl
authUrl += @getConfig(opts.config).authProviderPaths[provider]
authUrl += '?auth_origin_url=' + encodeURIComponent($window.location.href)
if opts.params?
for key, val of opts.params
authUrl += '&'
authUrl += encodeURIComponent(key)
authUrl += '='
authUrl += encodeURIComponent(val)
return authUrl
# ping auth window to see if user has completed registration.
# this method is recursively called until:
# 1. user completes authentication
# 2. user fails authentication
# 3. auth window is closed
requestCredentials: (authWindow) ->
# user has closed the external provider's auth window without
# completing login.
if authWindow.closed
@cancel({
reason: 'unauthorized'
errors: ['User canceled login']
})
$rootScope.$broadcast('auth:window-closed')
# still awaiting user input
else
authWindow.postMessage("requestCredentials", "*")
@t = $timeout((=>@requestCredentials(authWindow)), 500)
# popups are difficult to test. mock this method in testing.
createPopup: (url) ->
$window.open(url)
# this needs to happen after a reflow so that the promise
# can be rejected properly before it is destroyed.
resolveDfd: ->
@dfd.resolve(@user)
$timeout((=>
@dfd = null
$rootScope.$digest() unless $rootScope.$$phase
), 0)
# this is something that can be returned from 'resolve' methods
# of pages that have restricted access
validateUser: (opts={}) ->
configName = opts.config
unless @dfd?
@initDfd()
# save trip to API if possible. assume that user is still signed
# in if auth headers are present and token has not expired.
if @userIsAuthenticated()
# user is still presumably logged in
@resolveDfd()
else
# token querystring is present. user most likely just came from
# registration email link.
if $location.search().token != undefined
token = $location.search().token
clientId = $location.search().client_id
uid = $location.search().uid
expiry = $location.search().expiry
configName = $location.search().config
# use the configuration that was used in creating
# the confirmation link
@setConfigName(configName)
# check if redirected from password reset link
@mustResetPassword = $location.search().reset_password
# check if redirected from email confirmation link
@firstTimeLogin = $location.search().account_confirmation_success
# persist these values
@setAuthHeaders(@buildAuthHeaders({
token: token
clientId: clientId
uid: uid
expiry: expiry
}))
# strip qs from url to prevent re-use of these params
# on page refresh
$location.url(($location.path() || '/'))
# token cookie is present. user is returning to the site, or
# has refreshed the page.
else if @retrieveData('currentConfigName')
configName = @retrieveData('currentConfigName')
unless isEmpty(@retrieveData('auth_headers'))
# if token has expired, do not verify token with API
if @tokenHasExpired()
$rootScope.$broadcast('auth:session-expired')
@rejectDfd({
reason: 'unauthorized'
errors: ['Session expired.']
})
else
# token has been saved in session var, token has not
# expired. must be verified with API.
@validateToken({config: configName})
# new user session. will redirect to login
else
@rejectDfd({
reason: 'unauthorized'
errors: ['No credentials']
})
$rootScope.$broadcast('auth:invalid')
@dfd.promise
# confirm that user's auth token is still valid.
validateToken: (opts={}) ->
unless @tokenHasExpired()
$http.get(@apiUrl(opts.config) + @getConfig(opts.config).tokenValidationPath)
.success((resp) =>
authData = @getConfig(opts.config).handleTokenValidationResponse(resp)
@handleValidAuth(authData)
# broadcast event for first time login
if @firstTimeLogin
$rootScope.$broadcast('auth:email-confirmation-success', @user)
if @mustResetPassword
$rootScope.$broadcast('auth:password-reset-confirm-success', @user)
$rootScope.$broadcast('auth:validation-success', @user)
)
.error((data) =>
# broadcast event for first time login failure
if @firstTimeLogin
$rootScope.$broadcast('auth:email-confirmation-error', data)
if @mustResetPassword
$rootScope.$broadcast('auth:password-reset-confirm-error', data)
$rootScope.$broadcast('auth:validation-error', data)
@rejectDfd({
reason: 'unauthorized'
errors: data.errors
})
)
else
@rejectDfd({
reason: 'unauthorized'
errors: ['Expired credentials']
})
# ensure token has not expired
tokenHasExpired: ->
expiry = @getExpiry()
now = new Date().getTime()
return (expiry and expiry < now)
# get expiry by method provided in config
getExpiry: ->
@getConfig().parseExpiry(@retrieveData('auth_headers') || {})
# this service attempts to cache auth tokens, but sometimes we
# will want to discard saved tokens. examples include:
# 1. login failure
# 2. token validation failure
# 3. user logs out
invalidateTokens: ->
# cannot delete user object for scoping reasons. instead, delete
# all keys on object.
delete @user[key] for key, val of @user
# remove any assumptions about current configuration
@deleteData('currentConfigName')
$timeout.cancel @timer if @timer?
# kill cookies, otherwise session will resume on page reload
# setting this value to null will force the validateToken method
# to re-validate credentials with api server when validate is called
@deleteData('auth_headers')
# destroy auth token on server, destroy user auth credentials
signOut: ->
$http.delete(@apiUrl() + @getConfig().signOutUrl)
.success((resp) =>
@invalidateTokens()
$rootScope.$broadcast('auth:logout-success')
)
.error((resp) =>
@invalidateTokens()
$rootScope.$broadcast('auth:logout-error', resp)
)
# handle successful authentication
handleValidAuth: (user, setHeader=false) ->
# cancel any pending postMessage checks
$timeout.cancel(@t) if @t?
# must extend existing object for scoping reasons
angular.extend @user, user
# add shortcut to determine user auth status
@user.signedIn = true
@user.configName = @getCurrentConfigName()
# postMessage will not contain header. must save headers manually.
if setHeader
@setAuthHeaders(@buildAuthHeaders({
token: @user.auth_token
clientId: @user.client_id
uid: @user.uid
expiry: @user.expiry
}))
# fulfill promise
@resolveDfd()
# configure auth token format.
buildAuthHeaders: (ctx) ->
headers = {}
for key, val of @getConfig().tokenFormat
headers[key] = $interpolate(val)(ctx)
return headers
# abstract persistent data store
persistData: (key, val, configName) ->
switch @getConfig(configName).storage
when 'localStorage'
$window.localStorage.setItem(key, JSON.stringify(val))
else
ipCookie(key, val, {path: '/'})
# abstract persistent data retrieval
retrieveData: (key) ->
switch @getConfig().storage
when 'localStorage'
JSON.parse($window.localStorage.getItem(key))
else ipCookie(key)
# abstract persistent data removal
deleteData: (key) ->
switch @getConfig().storage
when 'localStorage'
$window.localStorage.removeItem(key)
else
ipCookie.remove(key, {path: '/'})
# persist authentication token, client id, uid
setAuthHeaders: (h) ->
newHeaders = angular.extend((@retrieveData('auth_headers') || {}), h)
result = @persistData('auth_headers', newHeaders)
expiry = @getExpiry()
now = new Date().getTime()
if expiry > now
$timeout.cancel @timer if @timer?
@timer = $timeout (=>
@validateUser {config: @getSavedConfig()}
), parseInt (expiry - now) / 1000
result
# ie8 + ie9 cannot use xdomain postMessage
useExternalWindow: ->
not (@getConfig().forceHardRedirect || $window.isIE())
initDfd: ->
@dfd = $q.defer()
# failed login. invalidate auth header and reject promise.
# defered object must be destroyed after reflow.
rejectDfd: (reason) ->
@invalidateTokens()
if @dfd?
@dfd.reject(reason)
# must nullify after reflow so promises can be rejected
$timeout((=> @dfd = null), 0)
# use proxy for IE
apiUrl: (configName) ->
if @getConfig(configName).proxyIf()
@getConfig(configName).proxyUrl
else
@getConfig(configName).apiUrl
getConfig: (name) ->
configs[@getCurrentConfigName(name)]
# if value is a method, call the method. otherwise return the
# argument itself
getResultOrValue: (arg) ->
if typeof(arg) == 'function'
arg()
else
arg
# a config name will be return in the following order of precedence:
# 1. matches arg
# 2. saved from past authentication
# 3. first available config name
getCurrentConfigName: (name) ->
name || @getSavedConfig()
# can't rely on retrieveData because it will cause a recursive loop
# if config hasn't been initialized. instead find first available
# value of 'defaultConfigName'. searches the following places in
# this priority:
# 1. localStorage
# 2. cookies
# 3. default (first available config)
getSavedConfig: ->
c = undefined
key = '<KEY>'
if $window.localStorage
c ?= JSON.parse($window.localStorage.getItem(key))
c ?= ipCookie(key)
return c || defaultConfigName
]
}
)
# each response will contain auth headers that have been updated by
# the server. copy those headers for use in the next request.
.config(['$httpProvider', ($httpProvider) ->
# responses are sometimes returned out of order. check that response is
# current before saving the auth data.
tokenIsCurrent = ($auth, headers) ->
oldTokenExpiry = Number($auth.getExpiry())
newTokenExpiry = Number($auth.getConfig().parseExpiry(headers || {}))
return newTokenExpiry >= oldTokenExpiry
# uniform handling of response headers for success or error conditions
updateHeadersFromResponse = ($auth, resp) ->
newHeaders = {}
for key, val of $auth.getConfig().tokenFormat
if resp.headers(key)
newHeaders[key] = resp.headers(key)
if tokenIsCurrent($auth, newHeaders)
$auth.setAuthHeaders(newHeaders)
# this is ugly...
# we need to configure an interceptor (must be done in the configuration
# phase), but we need access to the $http service, which is only available
# during the run phase. the following technique was taken from this
# stackoverflow post:
# http://stackoverflow.com/questions/14681654/i-need-two-instances-of-angularjs-http-service-or-what
$httpProvider.interceptors.push ['$injector', ($injector) ->
request: (req) ->
$injector.invoke ['$http', '$auth', ($http, $auth) ->
if req.url.match($auth.apiUrl())
for key, val of $auth.retrieveData('auth_headers')
req.headers[key] = val
]
return req
response: (resp) ->
$injector.invoke ['$http', '$auth', ($http, $auth) ->
if resp.config.url.match($auth.apiUrl())
return updateHeadersFromResponse($auth, resp)
]
return resp
responseError: (resp) ->
$injector.invoke ['$http', '$auth', ($http, $auth) ->
if resp.config.url.match($auth.apiUrl())
return updateHeadersFromResponse($auth, resp)
]
return $injector.get('$q').reject(resp)
]
# define http methods that may need to carry auth headers
httpMethods = ['get', 'post', 'put', 'patch', 'delete']
# disable IE ajax request caching for each of the necessary http methods
angular.forEach(httpMethods, (method) ->
$httpProvider.defaults.headers[method] ?= {}
$httpProvider.defaults.headers[method]['If-Modified-Since'] = 'Mon, 26 Jul 1997 05:00:00 GMT'
)
])
.run(['$auth', '$window', '$rootScope', ($auth, $window, $rootScope) ->
$auth.initialize()
])
# ie8 and ie9 require special handling
window.isOldIE = ->
out = false
nav = navigator.userAgent.toLowerCase()
if nav and nav.indexOf('msie') != -1
version = parseInt(nav.split('msie')[1])
if version < 10
out = true
out
# ie <= 11 do not support postMessage
window.isIE = ->
nav = navigator.userAgent.toLowerCase()
((nav and nav.indexOf('msie') != -1) || !!navigator.userAgent.match(/Trident.*rv\:11\./))
window.isEmpty = (obj) ->
# null and undefined are "empty"
return true unless obj
# Assume if it has a length property with a non-zero value
# that that property is correct.
return false if (obj.length > 0)
return true if (obj.length == 0)
# Otherwise, does it have any properties of its own?
# Note that this doesn't handle
# toString and valueOf enumeration bugs in IE < 9
for key, val of obj
return false if (Object.prototype.hasOwnProperty.call(obj, key))
return true
| true | if typeof module != 'undefined' and typeof exports != 'undefined' and module.exports == exports
module.exports = 'ng-token-auth'
angular.module('ng-token-auth', ['ipCookie'])
.provider('$auth', ->
configs =
default:
apiUrl: '/api'
signOutUrl: '/auth/sign_out'
emailSignInPath: '/auth/sign_in'
# heysailor/ng-token-auth-localOAuth
submitOAuthTokenPath: '/auth/OAuthToken'
emailRegistrationPath: '/auth'
accountUpdatePath: '/auth'
accountDeletePath: '/auth'
confirmationSuccessUrl: -> window.location.href
passwordResetPath: '/auth/password'
passwordUpdatePath: '/auth/password'
passwordResetSuccessUrl: -> window.location.href
tokenValidationPath: '/auth/validate_token'
proxyIf: -> false
proxyUrl: '/proxy'
validateOnPageLoad: true
forceHardRedirect: false
storage: 'cookies'
tokenFormat:
"access-token": "{{ token }}"
"token-type": "Bearer"
client: "{{ clientId }}"
expiry: "{{ expiry }}"
uid: "{{ uid }}"
parseExpiry: (headers) ->
# convert from ruby time (seconds) to js time (millis)
(parseInt(headers['expiry'], 10) * 1000) || null
handleLoginResponse: (resp) -> resp.data
handleAccountUpdateResponse: (resp) -> resp.data
handleTokenValidationResponse: (resp) -> resp.data
authProviderPaths:
github: '/auth/github'
facebook: '/auth/facebook'
google: '/auth/google_oauth2'
defaultConfigName = "default"
return {
configure: (params) ->
# user is using multiple concurrent configs (>1 user types).
if params instanceof Array and params.length
# extend each item in array from default settings
for conf, i in params
# get the name of the config
label = null
for k, v of conf
label = k
# set the first item in array as default config
defaultConfigName = label if i == 0
# use copy preserve the original default settings object while
# extending each config object
defaults = angular.copy(configs["default"])
fullConfig = {}
fullConfig[label] = angular.extend(defaults, conf[label])
angular.extend(configs, fullConfig)
# remove existng default config
delete configs["default"] unless defaultConfigName == "default"
# user is extending the single default config
else if params instanceof Object
angular.extend(configs["default"], params)
# user is doing something wrong
else
throw "Invalid argument: ng-token-auth config should be an Array or Object."
return configs
$get: [
'$http'
'$q'
'$location'
'ipCookie'
'$window'
'$timeout'
'$rootScope'
'$interpolate'
($http, $q, $location, ipCookie, $window, $timeout, $rootScope, $interpolate) =>
header: null
dfd: null
user: {}
mustResetPassword: false
listener: null
# called once at startup
initialize: ->
@initializeListeners()
@addScopeMethods()
initializeListeners: ->
#@listener = @handlePostMessage.bind(@)
@listener = angular.bind(@, @handlePostMessage)
if $window.addEventListener
$window.addEventListener("message", @listener, false)
cancel: (reason) ->
# cancel any pending timers
if @t?
$timeout.cancel(@t)
# reject any pending promises
if @dfd?
@rejectDfd(reason)
# nullify timer after reflow
return $timeout((=> @t = null), 0)
# cancel any pending processes, clean up garbage
destroy: ->
@cancel()
if $window.removeEventListener
$window.removeEventListener("message", @listener, false)
# handle the events broadcast from external auth tabs/popups
handlePostMessage: (ev) ->
if ev.data.message == 'deliverCredentials'
delete ev.data.message
@handleValidAuth(ev.data, true)
$rootScope.$broadcast('auth:login-success', ev.data)
if ev.data.message == 'authFailure'
error = {
reason: 'unauthorized'
errors: [ev.data.error]
}
@cancel(error)
$rootScope.$broadcast('auth:login-error', error)
# make all public API methods available to directives
addScopeMethods: ->
# bind global user object to auth user
$rootScope.user = @user
# template access to authentication method
$rootScope.authenticate = angular.bind(@, @authenticate)
# template access to view actions
$rootScope.signOut = angular.bind(@, @signOut)
$rootScope.destroyAccount = angular.bind(@, @destroyAccount)
$rootScope.submitRegistration = angular.bind(@, @submitRegistration)
$rootScope.submitLogin = angular.bind(@, @submitLogin)
$rootScope.requestPasswordReset = angular.bind(@, @requestPasswordReset)
$rootScope.updatePassword = angular.bind(@, @updatePassword)
$rootScope.updateAccount = angular.bind(@, @updateAccount)
# heysailor/ng-token-auth-localOAuth
$rootScope.submitOAuthToken = angular.bind(@, @submitOAuthToken)
# check to see if user is returning user
if @getConfig().validateOnPageLoad
@validateUser({config: @getSavedConfig()})
# register by email. server will send confirmation email
# containing a link to activate the account. the link will
# redirect to this site.
submitRegistration: (params, opts={}) ->
successUrl = @getResultOrValue(@getConfig(opts.config).confirmationSuccessUrl)
angular.extend(params, {
confirm_success_url: successUrl,
config_name: @getCurrentConfigName(opts.config)
})
$http.post(@apiUrl(opts.config) + @getConfig(opts.config).emailRegistrationPath, params)
.success((resp)->
$rootScope.$broadcast('auth:registration-email-success', params)
)
.error((resp) ->
$rootScope.$broadcast('auth:registration-email-error', resp)
)
# capture input from user, authenticate serverside
submitLogin: (params, opts={}) ->
@initDfd()
$http.post(@apiUrl(opts.config) + @getConfig(opts.config).emailSignInPath, params)
.success((resp) =>
@setConfigName(opts.config)
authData = @getConfig(opts.config).handleLoginResponse(resp, @)
@handleValidAuth(authData)
$rootScope.$broadcast('auth:login-success', @user)
)
.error((resp) =>
@rejectDfd({
reason: 'unauthorized'
errors: ['Invalid credentials']
})
$rootScope.$broadcast('auth:login-error', resp)
)
@dfd.promise
# heysailor/ng-token-auth-localOAuth
# pass OAuth token obtained client side to authenticate serverside
submitOAuthToken: (params, opts={}) ->
@initDfd()
$http.post(@apiUrl(opts.config) + @getConfig(opts.config).submitOAuthTokenPath, params)
.success((resp) =>
@setConfigName(opts.config)
authData = @getConfig(opts.config).handleLoginResponse(resp, @)
@handleValidAuth(authData)
$rootScope.$broadcast('auth:login-success', @user)
)
.error((resp) =>
@rejectDfd({
reason: 'unauthorized'
errors: ['Invalid credentials']
})
$rootScope.$broadcast('auth:login-error', resp)
)
@dfd.promise
# check if user is authenticated
userIsAuthenticated: ->
@retrieveData('auth_headers') and @user.signedIn and not @tokenHasExpired()
# request password reset from API
requestPasswordReset: (params, opts={}) ->
successUrl = @getResultOrValue(
@getConfig(opts.config).passwordResetSuccessUrl
)
params.redirect_url = successUrl
params.config_name = opts.config if opts.config?
$http.post(@apiUrl(opts.config) + @getConfig(opts.config).passwordResetPath, params)
.success((resp) ->
$rootScope.$broadcast('auth:password-reset-request-success', params)
)
.error((resp) ->
$rootScope.$broadcast('auth:password-reset-request-error', resp)
)
# update user password
updatePassword: (params) ->
$http.put(@apiUrl() + @getConfig().passwordUpdatePath, params)
.success((resp) =>
$rootScope.$broadcast('auth:password-change-success', resp)
@mustResetPassword = false
)
.error((resp) ->
$rootScope.$broadcast('auth:password-change-error', resp)
)
# update user account info
updateAccount: (params) ->
$http.put(@apiUrl() + @getConfig().accountUpdatePath, params)
.success((resp) =>
updateResponse = @getConfig().handleAccountUpdateResponse(resp)
curHeaders = @retrieveData('auth_headers')
angular.extend @user, updateResponse
# ensure any critical headers (uid + ?) that are returned in
# the update response are updated appropriately in storage
if curHeaders
newHeaders = {}
for key, val of @getConfig().tokenFormat
if curHeaders[key] && updateResponse[key]
newHeaders[key] = updateResponse[key]
@setAuthHeaders(newHeaders)
$rootScope.$broadcast('auth:account-update-success', resp)
)
.error((resp) ->
$rootScope.$broadcast('auth:account-update-error', resp)
)
# permanently destroy a user's account.
destroyAccount: (params) ->
$http.delete(@apiUrl() + @getConfig().accountUpdatePath, params)
.success((resp) =>
@invalidateTokens()
$rootScope.$broadcast('auth:account-destroy-success', resp)
)
.error((resp) ->
$rootScope.$broadcast('auth:account-destroy-error', resp)
)
# open external auth provider in separate window, send requests for
# credentials until api auth callback page responds.
authenticate: (provider, opts={}) ->
unless @dfd?
@setConfigName(opts.config)
@initDfd()
@openAuthWindow(provider, opts)
@dfd.promise
setConfigName: (configName) ->
configName ?= defaultConfigName
@persistData('currentConfigName', configName, configName)
# open external window to authentication provider
openAuthWindow: (provider, opts) ->
authUrl = @buildAuthUrl(provider, opts)
if @useExternalWindow()
@requestCredentials(@createPopup(authUrl))
else
@visitUrl(authUrl)
# testing actual redirects is difficult. stub this for testing
visitUrl: (url) ->
$window.location.replace(url)
buildAuthUrl: (provider, opts={}) ->
authUrl = @getConfig(opts.config).apiUrl
authUrl += @getConfig(opts.config).authProviderPaths[provider]
authUrl += '?auth_origin_url=' + encodeURIComponent($window.location.href)
if opts.params?
for key, val of opts.params
authUrl += '&'
authUrl += encodeURIComponent(key)
authUrl += '='
authUrl += encodeURIComponent(val)
return authUrl
# ping auth window to see if user has completed registration.
# this method is recursively called until:
# 1. user completes authentication
# 2. user fails authentication
# 3. auth window is closed
requestCredentials: (authWindow) ->
# user has closed the external provider's auth window without
# completing login.
if authWindow.closed
@cancel({
reason: 'unauthorized'
errors: ['User canceled login']
})
$rootScope.$broadcast('auth:window-closed')
# still awaiting user input
else
authWindow.postMessage("requestCredentials", "*")
@t = $timeout((=>@requestCredentials(authWindow)), 500)
# popups are difficult to test. mock this method in testing.
createPopup: (url) ->
$window.open(url)
# this needs to happen after a reflow so that the promise
# can be rejected properly before it is destroyed.
resolveDfd: ->
@dfd.resolve(@user)
$timeout((=>
@dfd = null
$rootScope.$digest() unless $rootScope.$$phase
), 0)
# this is something that can be returned from 'resolve' methods
# of pages that have restricted access
validateUser: (opts={}) ->
configName = opts.config
unless @dfd?
@initDfd()
# save trip to API if possible. assume that user is still signed
# in if auth headers are present and token has not expired.
if @userIsAuthenticated()
# user is still presumably logged in
@resolveDfd()
else
# token querystring is present. user most likely just came from
# registration email link.
if $location.search().token != undefined
token = $location.search().token
clientId = $location.search().client_id
uid = $location.search().uid
expiry = $location.search().expiry
configName = $location.search().config
# use the configuration that was used in creating
# the confirmation link
@setConfigName(configName)
# check if redirected from password reset link
@mustResetPassword = $location.search().reset_password
# check if redirected from email confirmation link
@firstTimeLogin = $location.search().account_confirmation_success
# persist these values
@setAuthHeaders(@buildAuthHeaders({
token: token
clientId: clientId
uid: uid
expiry: expiry
}))
# strip qs from url to prevent re-use of these params
# on page refresh
$location.url(($location.path() || '/'))
# token cookie is present. user is returning to the site, or
# has refreshed the page.
else if @retrieveData('currentConfigName')
configName = @retrieveData('currentConfigName')
unless isEmpty(@retrieveData('auth_headers'))
# if token has expired, do not verify token with API
if @tokenHasExpired()
$rootScope.$broadcast('auth:session-expired')
@rejectDfd({
reason: 'unauthorized'
errors: ['Session expired.']
})
else
# token has been saved in session var, token has not
# expired. must be verified with API.
@validateToken({config: configName})
# new user session. will redirect to login
else
@rejectDfd({
reason: 'unauthorized'
errors: ['No credentials']
})
$rootScope.$broadcast('auth:invalid')
@dfd.promise
# confirm that user's auth token is still valid.
validateToken: (opts={}) ->
unless @tokenHasExpired()
$http.get(@apiUrl(opts.config) + @getConfig(opts.config).tokenValidationPath)
.success((resp) =>
authData = @getConfig(opts.config).handleTokenValidationResponse(resp)
@handleValidAuth(authData)
# broadcast event for first time login
if @firstTimeLogin
$rootScope.$broadcast('auth:email-confirmation-success', @user)
if @mustResetPassword
$rootScope.$broadcast('auth:password-reset-confirm-success', @user)
$rootScope.$broadcast('auth:validation-success', @user)
)
.error((data) =>
# broadcast event for first time login failure
if @firstTimeLogin
$rootScope.$broadcast('auth:email-confirmation-error', data)
if @mustResetPassword
$rootScope.$broadcast('auth:password-reset-confirm-error', data)
$rootScope.$broadcast('auth:validation-error', data)
@rejectDfd({
reason: 'unauthorized'
errors: data.errors
})
)
else
@rejectDfd({
reason: 'unauthorized'
errors: ['Expired credentials']
})
# ensure token has not expired
tokenHasExpired: ->
expiry = @getExpiry()
now = new Date().getTime()
return (expiry and expiry < now)
# get expiry by method provided in config
getExpiry: ->
@getConfig().parseExpiry(@retrieveData('auth_headers') || {})
# this service attempts to cache auth tokens, but sometimes we
# will want to discard saved tokens. examples include:
# 1. login failure
# 2. token validation failure
# 3. user logs out
invalidateTokens: ->
# cannot delete user object for scoping reasons. instead, delete
# all keys on object.
delete @user[key] for key, val of @user
# remove any assumptions about current configuration
@deleteData('currentConfigName')
$timeout.cancel @timer if @timer?
# kill cookies, otherwise session will resume on page reload
# setting this value to null will force the validateToken method
# to re-validate credentials with api server when validate is called
@deleteData('auth_headers')
# destroy auth token on server, destroy user auth credentials
signOut: ->
$http.delete(@apiUrl() + @getConfig().signOutUrl)
.success((resp) =>
@invalidateTokens()
$rootScope.$broadcast('auth:logout-success')
)
.error((resp) =>
@invalidateTokens()
$rootScope.$broadcast('auth:logout-error', resp)
)
# handle successful authentication
handleValidAuth: (user, setHeader=false) ->
# cancel any pending postMessage checks
$timeout.cancel(@t) if @t?
# must extend existing object for scoping reasons
angular.extend @user, user
# add shortcut to determine user auth status
@user.signedIn = true
@user.configName = @getCurrentConfigName()
# postMessage will not contain header. must save headers manually.
if setHeader
@setAuthHeaders(@buildAuthHeaders({
token: @user.auth_token
clientId: @user.client_id
uid: @user.uid
expiry: @user.expiry
}))
# fulfill promise
@resolveDfd()
# configure auth token format.
buildAuthHeaders: (ctx) ->
headers = {}
for key, val of @getConfig().tokenFormat
headers[key] = $interpolate(val)(ctx)
return headers
# abstract persistent data store
persistData: (key, val, configName) ->
switch @getConfig(configName).storage
when 'localStorage'
$window.localStorage.setItem(key, JSON.stringify(val))
else
ipCookie(key, val, {path: '/'})
# abstract persistent data retrieval
retrieveData: (key) ->
switch @getConfig().storage
when 'localStorage'
JSON.parse($window.localStorage.getItem(key))
else ipCookie(key)
# abstract persistent data removal
deleteData: (key) ->
switch @getConfig().storage
when 'localStorage'
$window.localStorage.removeItem(key)
else
ipCookie.remove(key, {path: '/'})
# persist authentication token, client id, uid
setAuthHeaders: (h) ->
newHeaders = angular.extend((@retrieveData('auth_headers') || {}), h)
result = @persistData('auth_headers', newHeaders)
expiry = @getExpiry()
now = new Date().getTime()
if expiry > now
$timeout.cancel @timer if @timer?
@timer = $timeout (=>
@validateUser {config: @getSavedConfig()}
), parseInt (expiry - now) / 1000
result
# ie8 + ie9 cannot use xdomain postMessage
useExternalWindow: ->
not (@getConfig().forceHardRedirect || $window.isIE())
initDfd: ->
@dfd = $q.defer()
# failed login. invalidate auth header and reject promise.
# defered object must be destroyed after reflow.
rejectDfd: (reason) ->
@invalidateTokens()
if @dfd?
@dfd.reject(reason)
# must nullify after reflow so promises can be rejected
$timeout((=> @dfd = null), 0)
# use proxy for IE
apiUrl: (configName) ->
if @getConfig(configName).proxyIf()
@getConfig(configName).proxyUrl
else
@getConfig(configName).apiUrl
getConfig: (name) ->
configs[@getCurrentConfigName(name)]
# if value is a method, call the method. otherwise return the
# argument itself
getResultOrValue: (arg) ->
if typeof(arg) == 'function'
arg()
else
arg
# a config name will be return in the following order of precedence:
# 1. matches arg
# 2. saved from past authentication
# 3. first available config name
getCurrentConfigName: (name) ->
name || @getSavedConfig()
# can't rely on retrieveData because it will cause a recursive loop
# if config hasn't been initialized. instead find first available
# value of 'defaultConfigName'. searches the following places in
# this priority:
# 1. localStorage
# 2. cookies
# 3. default (first available config)
getSavedConfig: ->
c = undefined
key = 'PI:KEY:<KEY>END_PI'
if $window.localStorage
c ?= JSON.parse($window.localStorage.getItem(key))
c ?= ipCookie(key)
return c || defaultConfigName
]
}
)
# each response will contain auth headers that have been updated by
# the server. copy those headers for use in the next request.
.config(['$httpProvider', ($httpProvider) ->
# responses are sometimes returned out of order. check that response is
# current before saving the auth data.
tokenIsCurrent = ($auth, headers) ->
oldTokenExpiry = Number($auth.getExpiry())
newTokenExpiry = Number($auth.getConfig().parseExpiry(headers || {}))
return newTokenExpiry >= oldTokenExpiry
# uniform handling of response headers for success or error conditions
updateHeadersFromResponse = ($auth, resp) ->
newHeaders = {}
for key, val of $auth.getConfig().tokenFormat
if resp.headers(key)
newHeaders[key] = resp.headers(key)
if tokenIsCurrent($auth, newHeaders)
$auth.setAuthHeaders(newHeaders)
# this is ugly...
# we need to configure an interceptor (must be done in the configuration
# phase), but we need access to the $http service, which is only available
# during the run phase. the following technique was taken from this
# stackoverflow post:
# http://stackoverflow.com/questions/14681654/i-need-two-instances-of-angularjs-http-service-or-what
$httpProvider.interceptors.push ['$injector', ($injector) ->
request: (req) ->
$injector.invoke ['$http', '$auth', ($http, $auth) ->
if req.url.match($auth.apiUrl())
for key, val of $auth.retrieveData('auth_headers')
req.headers[key] = val
]
return req
response: (resp) ->
$injector.invoke ['$http', '$auth', ($http, $auth) ->
if resp.config.url.match($auth.apiUrl())
return updateHeadersFromResponse($auth, resp)
]
return resp
responseError: (resp) ->
$injector.invoke ['$http', '$auth', ($http, $auth) ->
if resp.config.url.match($auth.apiUrl())
return updateHeadersFromResponse($auth, resp)
]
return $injector.get('$q').reject(resp)
]
# define http methods that may need to carry auth headers
httpMethods = ['get', 'post', 'put', 'patch', 'delete']
# disable IE ajax request caching for each of the necessary http methods
angular.forEach(httpMethods, (method) ->
$httpProvider.defaults.headers[method] ?= {}
$httpProvider.defaults.headers[method]['If-Modified-Since'] = 'Mon, 26 Jul 1997 05:00:00 GMT'
)
])
.run(['$auth', '$window', '$rootScope', ($auth, $window, $rootScope) ->
$auth.initialize()
])
# ie8 and ie9 require special handling
window.isOldIE = ->
out = false
nav = navigator.userAgent.toLowerCase()
if nav and nav.indexOf('msie') != -1
version = parseInt(nav.split('msie')[1])
if version < 10
out = true
out
# ie <= 11 do not support postMessage
window.isIE = ->
nav = navigator.userAgent.toLowerCase()
((nav and nav.indexOf('msie') != -1) || !!navigator.userAgent.match(/Trident.*rv\:11\./))
window.isEmpty = (obj) ->
# null and undefined are "empty"
return true unless obj
# Assume if it has a length property with a non-zero value
# that that property is correct.
return false if (obj.length > 0)
return true if (obj.length == 0)
# Otherwise, does it have any properties of its own?
# Note that this doesn't handle
# toString and valueOf enumeration bugs in IE < 9
for key, val of obj
return false if (Object.prototype.hasOwnProperty.call(obj, key))
return true
|
[
{
"context": "pe: dev.device_type\n\t\t\t\tdeviceId: dev.id\n\t\t\t\tname: dev.name\n\t\t\t\tstatus: dev.status\n\t\t\t}\n\t\t\tdb.models('depende",
"end": 3219,
"score": 0.6559959053993225,
"start": 3211,
"tag": "NAME",
"value": "dev.name"
}
] | src/proxyvisor.coffee | metamorfoso/balena-supervisor | 0 | Promise = require 'bluebird'
_ = require 'lodash'
express = require 'express'
fs = Promise.promisifyAll require 'fs'
{ request } = require './lib/request'
constants = require './lib/constants'
{ checkInt, validStringOrUndefined, validObjectOrUndefined } = require './lib/validation'
path = require 'path'
mkdirp = Promise.promisify(require('mkdirp'))
bodyParser = require 'body-parser'
execAsync = Promise.promisify(require('child_process').exec)
url = require 'url'
{ log } = require './lib/supervisor-console'
isDefined = _.negate(_.isUndefined)
parseDeviceFields = (device) ->
device.id = parseInt(device.deviceId)
device.appId = parseInt(device.appId)
device.config = JSON.parse(device.config ? '{}')
device.environment = JSON.parse(device.environment ? '{}')
device.targetConfig = JSON.parse(device.targetConfig ? '{}')
device.targetEnvironment = JSON.parse(device.targetEnvironment ? '{}')
return _.omit(device, 'markedForDeletion', 'logs_channel')
tarDirectory = (appId) ->
return "/data/dependent-assets/#{appId}"
tarFilename = (appId, commit) ->
return "#{appId}-#{commit}.tar"
tarPath = (appId, commit) ->
return "#{tarDirectory(appId)}/#{tarFilename(appId, commit)}"
getTarArchive = (source, destination) ->
fs.lstatAsync(destination)
.catch ->
mkdirp(path.dirname(destination))
.then ->
execAsync("tar -cvf '#{destination}' *", cwd: source)
cleanupTars = (appId, commit) ->
if commit?
fileToKeep = tarFilename(appId, commit)
else
fileToKeep = null
dir = tarDirectory(appId)
fs.readdirAsync(dir)
.catchReturn([])
.then (files) ->
if fileToKeep?
files = _.reject(files, fileToKeep)
Promise.map files, (file) ->
fs.unlinkAsync(path.join(dir, file))
formatTargetAsState = (device) ->
return {
appId: parseInt(device.appId)
commit: device.targetCommit
environment: device.targetEnvironment
config: device.targetConfig
}
formatCurrentAsState = (device) ->
return {
appId: parseInt(device.appId)
commit: device.commit
environment: device.environment
config: device.config
}
createProxyvisorRouter = (proxyvisor) ->
{ db } = proxyvisor
router = express.Router()
router.use(bodyParser.urlencoded(limit: '10mb', extended: true))
router.use(bodyParser.json(limit: '10mb'))
router.get '/v1/devices', (req, res) ->
db.models('dependentDevice').select()
.map(parseDeviceFields)
.then (devices) ->
res.json(devices)
.catch (err) ->
res.status(503).send(err?.message or err or 'Unknown error')
router.post '/v1/devices', (req, res) ->
{ appId, device_type } = req.body
if !appId? or _.isNaN(parseInt(appId)) or parseInt(appId) <= 0
res.status(400).send('appId must be a positive integer')
return
device_type = 'generic' if !device_type?
d =
belongs_to__application: req.body.appId
device_type: device_type
proxyvisor.apiBinder.provisionDependentDevice(d)
.then (dev) ->
# If the response has id: null then something was wrong in the request
# but we don't know precisely what.
if !dev.id?
res.status(400).send('Provisioning failed, invalid appId or credentials')
return
deviceForDB = {
uuid: dev.uuid
appId
device_type: dev.device_type
deviceId: dev.id
name: dev.name
status: dev.status
}
db.models('dependentDevice').insert(deviceForDB)
.then ->
res.status(201).send(dev)
.catch (err) ->
log.error("Error on #{req.method} #{url.parse(req.url).pathname}", err)
res.status(503).send(err?.message or err or 'Unknown error')
router.get '/v1/devices/:uuid', (req, res) ->
uuid = req.params.uuid
db.models('dependentDevice').select().where({ uuid })
.then ([ device ]) ->
return res.status(404).send('Device not found') if !device?
return res.status(410).send('Device deleted') if device.markedForDeletion
res.json(parseDeviceFields(device))
.catch (err) ->
log.error("Error on #{req.method} #{url.parse(req.url).pathname}", err)
res.status(503).send(err?.message or err or 'Unknown error')
router.post '/v1/devices/:uuid/logs', (req, res) ->
uuid = req.params.uuid
m = {
message: req.body.message
timestamp: req.body.timestamp or Date.now()
}
m.isSystem = req.body.isSystem if req.body.isSystem?
db.models('dependentDevice').select().where({ uuid })
.then ([ device ]) ->
return res.status(404).send('Device not found') if !device?
return res.status(410).send('Device deleted') if device.markedForDeletion
proxyvisor.logger.logDependent(m, uuid)
res.status(202).send('OK')
.catch (err) ->
log.error("Error on #{req.method} #{url.parse(req.url).pathname}", err)
res.status(503).send(err?.message or err or 'Unknown error')
router.put '/v1/devices/:uuid', (req, res) ->
uuid = req.params.uuid
{ status, is_online, commit, releaseId, environment, config } = req.body
validateDeviceFields = ->
if isDefined(is_online) and !_.isBoolean(is_online)
return 'is_online must be a boolean'
if !validStringOrUndefined(status)
return 'status must be a non-empty string'
if !validStringOrUndefined(commit)
return 'commit must be a non-empty string'
if !validStringOrUndefined(releaseId)
return 'commit must be a non-empty string'
if !validObjectOrUndefined(environment)
return 'environment must be an object'
if !validObjectOrUndefined(config)
return 'config must be an object'
return null
requestError = validateDeviceFields()
if requestError?
res.status(400).send(requestError)
return
environment = JSON.stringify(environment) if isDefined(environment)
config = JSON.stringify(config) if isDefined(config)
fieldsToUpdateOnDB = _.pickBy({ status, is_online, commit, releaseId, config, environment }, isDefined)
fieldsToUpdateOnAPI = _.pick(fieldsToUpdateOnDB, 'status', 'is_online', 'commit', 'releaseId')
if fieldsToUpdateOnAPI.commit?
fieldsToUpdateOnAPI.is_on__commit = fieldsToUpdateOnAPI.commit
delete fieldsToUpdateOnAPI.commit
if _.isEmpty(fieldsToUpdateOnDB)
res.status(400).send('At least one device attribute must be updated')
return
db.models('dependentDevice').select().where({ uuid })
.then ([ device ]) ->
return res.status(404).send('Device not found') if !device?
return res.status(410).send('Device deleted') if device.markedForDeletion
throw new Error('Device is invalid') if !device.deviceId?
Promise.try ->
if !_.isEmpty(fieldsToUpdateOnAPI)
proxyvisor.apiBinder.patchDevice(device.deviceId, fieldsToUpdateOnAPI)
.then ->
db.models('dependentDevice').update(fieldsToUpdateOnDB).where({ uuid })
.then ->
db.models('dependentDevice').select().where({ uuid })
.then ([ device ]) ->
res.json(parseDeviceFields(device))
.catch (err) ->
log.error("Error on #{req.method} #{url.parse(req.url).pathname}", err)
res.status(503).send(err?.message or err or 'Unknown error')
router.get '/v1/dependent-apps/:appId/assets/:commit', (req, res) ->
db.models('dependentApp').select().where(_.pick(req.params, 'appId', 'commit'))
.then ([ app ]) ->
return res.status(404).send('Not found') if !app
dest = tarPath(app.appId, app.commit)
fs.lstatAsync(dest)
.catch ->
Promise.using proxyvisor.docker.imageRootDirMounted(app.image), (rootDir) ->
getTarArchive(rootDir + '/assets', dest)
.then ->
res.sendFile(dest)
.catch (err) ->
log.error("Error on #{req.method} #{url.parse(req.url).pathname}", err)
res.status(503).send(err?.message or err or 'Unknown error')
router.get '/v1/dependent-apps', (req, res) ->
db.models('dependentApp').select()
.map (app) ->
return {
id: parseInt(app.appId)
commit: app.commit
name: app.name
config: JSON.parse(app.config ? '{}')
}
.then (apps) ->
res.json(apps)
.catch (err) ->
log.error("Error on #{req.method} #{url.parse(req.url).pathname}", err)
res.status(503).send(err?.message or err or 'Unknown error')
return router
module.exports = class Proxyvisor
constructor: ({ @config, @logger, @db, @docker, @images, @applications }) ->
@acknowledgedState = {}
@lastRequestForDevice = {}
@router = createProxyvisorRouter(this)
@actionExecutors = {
updateDependentTargets: (step) =>
@config.getMany([ 'currentApiKey', 'apiTimeout' ])
.then ({ currentApiKey, apiTimeout }) =>
# - take each of the step.devices and update dependentDevice with it (targetCommit, targetEnvironment, targetConfig)
# - if update returns 0, then use APIBinder to fetch the device, then store it to the db
# - set markedForDeletion: true for devices that are not in the step.devices list
# - update dependentApp with step.app
Promise.map step.devices, (device) =>
uuid = device.uuid
# Only consider one app per dependent device for now
appId = _(device.apps).keys().head()
targetCommit = device.apps[appId].commit
targetEnvironment = JSON.stringify(device.apps[appId].environment)
targetConfig = JSON.stringify(device.apps[appId].config)
@db.models('dependentDevice').update({ appId, targetEnvironment, targetConfig, targetCommit, name: device.name }).where({ uuid })
.then (n) =>
return if n != 0
# If the device is not in the DB it means it was provisioned externally
# so we need to fetch it.
@apiBinder.fetchDevice(uuid, currentApiKey, apiTimeout)
.then (dev) =>
deviceForDB = {
uuid: uuid
appId: appId
device_type: dev.device_type
deviceId: dev.id
is_online: dev.is_online
name: dev.name
status: dev.status
targetCommit
targetConfig
targetEnvironment
}
@db.models('dependentDevice').insert(deviceForDB)
.then =>
@db.models('dependentDevice').where({ appId: step.appId }).whereNotIn('uuid', _.map(step.devices, 'uuid')).update({ markedForDeletion: true })
.then =>
@normaliseDependentAppForDB(step.app)
.then (appForDB) =>
@db.upsertModel('dependentApp', appForDB, { appId: step.appId })
.then ->
cleanupTars(step.appId, step.app.commit)
sendDependentHooks: (step) =>
Promise.join(
@config.get('apiTimeout')
@getHookEndpoint(step.appId)
(apiTimeout, endpoint) =>
Promise.mapSeries step.devices, (device) =>
Promise.try =>
if @lastRequestForDevice[device.uuid]?
diff = Date.now() - @lastRequestForDevice[device.uuid]
if diff < 30000
Promise.delay(30001 - diff)
.then =>
@lastRequestForDevice[device.uuid] = Date.now()
if device.markedForDeletion
@sendDeleteHook(device, apiTimeout, endpoint)
else
@sendUpdate(device, apiTimeout, endpoint)
)
removeDependentApp: (step) =>
# find step.app and delete it from the DB
# find devices with step.appId and delete them from the DB
@db.transaction (trx) ->
trx('dependentApp').where({ appId: step.appId }).del()
.then ->
trx('dependentDevice').where({ appId: step.appId }).del()
.then ->
cleanupTars(step.appId)
}
@validActions = _.keys(@actionExecutors)
bindToAPI: (apiBinder) =>
@apiBinder = apiBinder
executeStepAction: (step) =>
Promise.try =>
throw new Error("Invalid proxyvisor action #{step.action}") if !@actionExecutors[step.action]?
@actionExecutors[step.action](step)
getCurrentStates: =>
Promise.join(
@db.models('dependentApp').select().map(@normaliseDependentAppFromDB)
@db.models('dependentDevice').select()
(apps, devicesFromDB) ->
devices = _.map devicesFromDB, (device) ->
dev = {
uuid: device.uuid
name: device.name
lock_expiry_date: device.lock_expiry_date
markedForDeletion: device.markedForDeletion
apps: {}
}
dev.apps[device.appId] = {
commit: device.commit
config: JSON.parse(device.config)
environment: JSON.parse(device.environment)
targetCommit: device.targetCommit
targetEnvironment: JSON.parse(device.targetEnvironment)
targetConfig: JSON.parse(device.targetConfig)
}
return dev
return { apps, devices }
)
normaliseDependentAppForDB: (app) =>
if app.image?
image = @images.normalise(app.image)
else
image = null
dbApp = {
appId: app.appId
name: app.name
commit: app.commit
releaseId: app.releaseId
imageId: app.imageId
parentApp: app.parentApp
image: image
config: JSON.stringify(app.config ? {})
environment: JSON.stringify(app.environment ? {})
}
return Promise.props(dbApp)
normaliseDependentDeviceTargetForDB: (device, appCommit) ->
Promise.try ->
apps = _.mapValues _.clone(device.apps ? {}), (app) ->
app.commit = appCommit or null
app.config ?= {}
app.environment ?= {}
return app
apps = JSON.stringify(apps)
outDevice = {
uuid: device.uuid
name: device.name
apps
}
return outDevice
setTargetInTransaction: (dependent, trx) =>
Promise.try =>
if dependent?.apps?
appsArray = _.map dependent.apps, (app, appId) ->
appClone = _.clone(app)
appClone.appId = checkInt(appId)
return appClone
Promise.map(appsArray, @normaliseDependentAppForDB)
.tap (appsForDB) =>
Promise.map appsForDB, (app) =>
@db.upsertModel('dependentAppTarget', app, { appId: app.appId }, trx)
.then (appsForDB) ->
trx('dependentAppTarget').whereNotIn('appId', _.map(appsForDB, 'appId')).del()
.then =>
if dependent?.devices?
devicesArray = _.map dependent.devices, (dev, uuid) ->
devClone = _.clone(dev)
devClone.uuid = uuid
return devClone
Promise.map devicesArray, (device) =>
appId = _.keys(device.apps)[0]
@normaliseDependentDeviceTargetForDB(device, dependent.apps[appId]?.commit)
.then (devicesForDB) =>
Promise.map devicesForDB, (device) =>
@db.upsertModel('dependentDeviceTarget', device, { uuid: device.uuid }, trx)
.then ->
trx('dependentDeviceTarget').whereNotIn('uuid', _.map(devicesForDB, 'uuid')).del()
normaliseDependentAppFromDB: (app) ->
Promise.try ->
outApp = {
appId: app.appId
name: app.name
commit: app.commit
releaseId: app.releaseId
image: app.image
imageId: app.imageId
config: JSON.parse(app.config)
environment: JSON.parse(app.environment)
parentApp: app.parentApp
}
return outApp
normaliseDependentDeviceTargetFromDB: (device) ->
Promise.try ->
outDevice = {
uuid: device.uuid
name: device.name
apps: _.mapValues JSON.parse(device.apps), (a) ->
a.commit ?= null
return a
}
return outDevice
normaliseDependentDeviceFromDB: (device) ->
Promise.try ->
outDevice = _.clone(device)
for prop in [ 'environment', 'config', 'targetEnvironment', 'targetConfig' ]
outDevice[prop] = JSON.parse(device[prop])
return outDevice
getTarget: =>
Promise.props({
apps: @db.models('dependentAppTarget').select().map(@normaliseDependentAppFromDB)
devices: @db.models('dependentDeviceTarget').select().map(@normaliseDependentDeviceTargetFromDB)
})
imagesInUse: (current, target) ->
images = []
if current.dependent?.apps?
for app in current.dependent.apps
images.push app.image
if target.dependent?.apps?
for app in target.dependent.apps
images.push app.image
return images
_imageAvailable: (image, available) ->
_.some(available, name: image)
_getHookStep: (currentDevices, appId) =>
hookStep = {
action: 'sendDependentHooks'
devices: []
appId
}
for device in currentDevices
if device.markedForDeletion
hookStep.devices.push({
uuid: device.uuid
markedForDeletion: true
})
else
targetState = {
appId
commit: device.apps[appId].targetCommit
config: device.apps[appId].targetConfig
environment: device.apps[appId].targetEnvironment
}
currentState = {
appId
commit: device.apps[appId].commit
config: device.apps[appId].config
environment: device.apps[appId].environment
}
if device.apps[appId].targetCommit? and !_.isEqual(targetState, currentState) and !_.isEqual(targetState, @acknowledgedState[device.uuid])
hookStep.devices.push({
uuid: device.uuid
target: targetState
})
return hookStep
_compareDevices: (currentDevices, targetDevices, appId) ->
currentDeviceTargets = _.map currentDevices, (dev) ->
return null if dev.markedForDeletion
devTarget = _.clone(dev)
delete devTarget.markedForDeletion
delete devTarget.lock_expiry_date
devTarget.apps = {}
devTarget.apps[appId] = {
commit: dev.apps[appId].targetCommit
environment: dev.apps[appId].targetEnvironment or {}
config: dev.apps[appId].targetConfig or {}
}
return devTarget
currentDeviceTargets = _.filter(currentDeviceTargets, (dev) -> !_.isNull(dev))
return !_.isEmpty(_.xorWith(currentDeviceTargets, targetDevices, _.isEqual))
imageForDependentApp: (app) ->
return {
name: app.image
imageId: app.imageId
appId: app.appId
dependent: true
}
nextStepsForDependentApp: (appId, availableImages, downloading, current, target, currentDevices, targetDevices, stepsInProgress) =>
# - if there's current but not target, push a removeDependentApp step
if !target?
return [{
action: 'removeDependentApp'
appId: current.appId
}]
if _.some(stepsInProgress, (step) -> step.appId == target.parentApp)
return [{ action: 'noop' }]
needsDownload = target.commit? and target.image? and !@_imageAvailable(target.image, availableImages)
# - if toBeDownloaded includes this app, push a fetch step
if needsDownload
if target.imageId in downloading
return [{ action: 'noop' }]
else
return [{
action: 'fetch'
appId
image: @imageForDependentApp(target)
}]
devicesDiffer = @_compareDevices(currentDevices, targetDevices, appId)
# - if current doesn't match target, or the devices differ, push an updateDependentTargets step
if !_.isEqual(current, target) or devicesDiffer
return [{
action: 'updateDependentTargets'
devices: targetDevices
app: target
appId
}]
# if we got to this point, the current app is up to date and devices have the
# correct targetCommit, targetEnvironment and targetConfig.
hookStep = @_getHookStep(currentDevices, appId)
if !_.isEmpty(hookStep.devices)
return [ hookStep ]
return []
getRequiredSteps: (availableImages, downloading, current, target, stepsInProgress) =>
steps = []
Promise.try =>
targetApps = _.keyBy(target.dependent?.apps ? [], 'appId')
targetAppIds = _.keys(targetApps)
currentApps = _.keyBy(current.dependent?.apps ? [], 'appId')
currentAppIds = _.keys(currentApps)
allAppIds = _.union(targetAppIds, currentAppIds)
for appId in allAppIds
devicesForApp = (devices) ->
_.filter devices, (d) ->
_.has(d.apps, appId)
currentDevices = devicesForApp(current.dependent.devices)
targetDevices = devicesForApp(target.dependent.devices)
stepsForApp = @nextStepsForDependentApp(appId, availableImages, downloading,
currentApps[appId], targetApps[appId],
currentDevices, targetDevices,
stepsInProgress)
steps = steps.concat(stepsForApp)
return steps
getHookEndpoint: (appId) =>
@db.models('dependentApp').select('parentApp').where({ appId })
.then ([ { parentApp } ]) =>
@applications.getTargetApp(parentApp)
.then (parentApp) =>
Promise.map parentApp?.services ? [], (service) =>
@docker.getImageEnv(service.image)
.then (imageEnvs) ->
imageHookAddresses = _.map imageEnvs, (env) ->
return env.BALENA_DEPENDENT_DEVICES_HOOK_ADDRESS ? env.RESIN_DEPENDENT_DEVICES_HOOK_ADDRESS
for addr in imageHookAddresses
return addr if addr?
return parentApp?.config?.BALENA_DEPENDENT_DEVICES_HOOK_ADDRESS ?
parentApp?.config?.RESIN_DEPENDENT_DEVICES_HOOK_ADDRESS ?
"#{constants.proxyvisorHookReceiver}/v1/devices/"
sendUpdate: (device, timeout, endpoint) =>
Promise.resolve(request.getRequestInstance())
.then (instance) ->
instance.putAsync "#{endpoint}#{device.uuid}", {
json: true
body: device.target
}
.timeout(timeout)
.spread (response, body) =>
if response.statusCode == 200
@acknowledgedState[device.uuid] = device.target
else
@acknowledgedState[device.uuid] = null
throw new Error("Hook returned #{response.statusCode}: #{body}") if response.statusCode != 202
.catch (err) ->
return log.error("Error updating device #{device.uuid}", err)
sendDeleteHook: ({ uuid }, timeout, endpoint) =>
Promise.resolve(request.getRequestInstance())
.then (instance) ->
instance.delAsync("#{endpoint}#{uuid}")
.timeout(timeout)
.spread (response, body) =>
if response.statusCode == 200
@db.models('dependentDevice').del().where({ uuid })
else
throw new Error("Hook returned #{response.statusCode}: #{body}")
.catch (err) ->
return log.error("Error deleting device #{uuid}", err)
sendUpdates: ({ uuid }) =>
Promise.join(
@db.models('dependentDevice').where({ uuid }).select()
@config.get('apiTimeout')
([ dev ], apiTimeout) =>
if !dev?
log.warn("Trying to send update to non-existent device #{uuid}")
return
@normaliseDependentDeviceFromDB(dev)
.then (device) =>
currentState = formatCurrentAsState(device)
targetState = formatTargetAsState(device)
@getHookEndpoint(device.appId)
.then (endpoint) =>
if device.markedForDeletion
@sendDeleteHook(device, apiTimeout, endpoint)
else if device.targetCommit? and !_.isEqual(targetState, currentState) and !_.isEqual(targetState, @acknowledgedState[device.uuid])
@sendUpdate(device, targetState, apiTimeout, endpoint)
)
| 28782 | Promise = require 'bluebird'
_ = require 'lodash'
express = require 'express'
fs = Promise.promisifyAll require 'fs'
{ request } = require './lib/request'
constants = require './lib/constants'
{ checkInt, validStringOrUndefined, validObjectOrUndefined } = require './lib/validation'
path = require 'path'
mkdirp = Promise.promisify(require('mkdirp'))
bodyParser = require 'body-parser'
execAsync = Promise.promisify(require('child_process').exec)
url = require 'url'
{ log } = require './lib/supervisor-console'
isDefined = _.negate(_.isUndefined)
parseDeviceFields = (device) ->
device.id = parseInt(device.deviceId)
device.appId = parseInt(device.appId)
device.config = JSON.parse(device.config ? '{}')
device.environment = JSON.parse(device.environment ? '{}')
device.targetConfig = JSON.parse(device.targetConfig ? '{}')
device.targetEnvironment = JSON.parse(device.targetEnvironment ? '{}')
return _.omit(device, 'markedForDeletion', 'logs_channel')
tarDirectory = (appId) ->
return "/data/dependent-assets/#{appId}"
tarFilename = (appId, commit) ->
return "#{appId}-#{commit}.tar"
tarPath = (appId, commit) ->
return "#{tarDirectory(appId)}/#{tarFilename(appId, commit)}"
getTarArchive = (source, destination) ->
fs.lstatAsync(destination)
.catch ->
mkdirp(path.dirname(destination))
.then ->
execAsync("tar -cvf '#{destination}' *", cwd: source)
cleanupTars = (appId, commit) ->
if commit?
fileToKeep = tarFilename(appId, commit)
else
fileToKeep = null
dir = tarDirectory(appId)
fs.readdirAsync(dir)
.catchReturn([])
.then (files) ->
if fileToKeep?
files = _.reject(files, fileToKeep)
Promise.map files, (file) ->
fs.unlinkAsync(path.join(dir, file))
formatTargetAsState = (device) ->
return {
appId: parseInt(device.appId)
commit: device.targetCommit
environment: device.targetEnvironment
config: device.targetConfig
}
formatCurrentAsState = (device) ->
return {
appId: parseInt(device.appId)
commit: device.commit
environment: device.environment
config: device.config
}
createProxyvisorRouter = (proxyvisor) ->
{ db } = proxyvisor
router = express.Router()
router.use(bodyParser.urlencoded(limit: '10mb', extended: true))
router.use(bodyParser.json(limit: '10mb'))
router.get '/v1/devices', (req, res) ->
db.models('dependentDevice').select()
.map(parseDeviceFields)
.then (devices) ->
res.json(devices)
.catch (err) ->
res.status(503).send(err?.message or err or 'Unknown error')
router.post '/v1/devices', (req, res) ->
{ appId, device_type } = req.body
if !appId? or _.isNaN(parseInt(appId)) or parseInt(appId) <= 0
res.status(400).send('appId must be a positive integer')
return
device_type = 'generic' if !device_type?
d =
belongs_to__application: req.body.appId
device_type: device_type
proxyvisor.apiBinder.provisionDependentDevice(d)
.then (dev) ->
# If the response has id: null then something was wrong in the request
# but we don't know precisely what.
if !dev.id?
res.status(400).send('Provisioning failed, invalid appId or credentials')
return
deviceForDB = {
uuid: dev.uuid
appId
device_type: dev.device_type
deviceId: dev.id
name: <NAME>
status: dev.status
}
db.models('dependentDevice').insert(deviceForDB)
.then ->
res.status(201).send(dev)
.catch (err) ->
log.error("Error on #{req.method} #{url.parse(req.url).pathname}", err)
res.status(503).send(err?.message or err or 'Unknown error')
router.get '/v1/devices/:uuid', (req, res) ->
uuid = req.params.uuid
db.models('dependentDevice').select().where({ uuid })
.then ([ device ]) ->
return res.status(404).send('Device not found') if !device?
return res.status(410).send('Device deleted') if device.markedForDeletion
res.json(parseDeviceFields(device))
.catch (err) ->
log.error("Error on #{req.method} #{url.parse(req.url).pathname}", err)
res.status(503).send(err?.message or err or 'Unknown error')
router.post '/v1/devices/:uuid/logs', (req, res) ->
uuid = req.params.uuid
m = {
message: req.body.message
timestamp: req.body.timestamp or Date.now()
}
m.isSystem = req.body.isSystem if req.body.isSystem?
db.models('dependentDevice').select().where({ uuid })
.then ([ device ]) ->
return res.status(404).send('Device not found') if !device?
return res.status(410).send('Device deleted') if device.markedForDeletion
proxyvisor.logger.logDependent(m, uuid)
res.status(202).send('OK')
.catch (err) ->
log.error("Error on #{req.method} #{url.parse(req.url).pathname}", err)
res.status(503).send(err?.message or err or 'Unknown error')
router.put '/v1/devices/:uuid', (req, res) ->
uuid = req.params.uuid
{ status, is_online, commit, releaseId, environment, config } = req.body
validateDeviceFields = ->
if isDefined(is_online) and !_.isBoolean(is_online)
return 'is_online must be a boolean'
if !validStringOrUndefined(status)
return 'status must be a non-empty string'
if !validStringOrUndefined(commit)
return 'commit must be a non-empty string'
if !validStringOrUndefined(releaseId)
return 'commit must be a non-empty string'
if !validObjectOrUndefined(environment)
return 'environment must be an object'
if !validObjectOrUndefined(config)
return 'config must be an object'
return null
requestError = validateDeviceFields()
if requestError?
res.status(400).send(requestError)
return
environment = JSON.stringify(environment) if isDefined(environment)
config = JSON.stringify(config) if isDefined(config)
fieldsToUpdateOnDB = _.pickBy({ status, is_online, commit, releaseId, config, environment }, isDefined)
fieldsToUpdateOnAPI = _.pick(fieldsToUpdateOnDB, 'status', 'is_online', 'commit', 'releaseId')
if fieldsToUpdateOnAPI.commit?
fieldsToUpdateOnAPI.is_on__commit = fieldsToUpdateOnAPI.commit
delete fieldsToUpdateOnAPI.commit
if _.isEmpty(fieldsToUpdateOnDB)
res.status(400).send('At least one device attribute must be updated')
return
db.models('dependentDevice').select().where({ uuid })
.then ([ device ]) ->
return res.status(404).send('Device not found') if !device?
return res.status(410).send('Device deleted') if device.markedForDeletion
throw new Error('Device is invalid') if !device.deviceId?
Promise.try ->
if !_.isEmpty(fieldsToUpdateOnAPI)
proxyvisor.apiBinder.patchDevice(device.deviceId, fieldsToUpdateOnAPI)
.then ->
db.models('dependentDevice').update(fieldsToUpdateOnDB).where({ uuid })
.then ->
db.models('dependentDevice').select().where({ uuid })
.then ([ device ]) ->
res.json(parseDeviceFields(device))
.catch (err) ->
log.error("Error on #{req.method} #{url.parse(req.url).pathname}", err)
res.status(503).send(err?.message or err or 'Unknown error')
router.get '/v1/dependent-apps/:appId/assets/:commit', (req, res) ->
db.models('dependentApp').select().where(_.pick(req.params, 'appId', 'commit'))
.then ([ app ]) ->
return res.status(404).send('Not found') if !app
dest = tarPath(app.appId, app.commit)
fs.lstatAsync(dest)
.catch ->
Promise.using proxyvisor.docker.imageRootDirMounted(app.image), (rootDir) ->
getTarArchive(rootDir + '/assets', dest)
.then ->
res.sendFile(dest)
.catch (err) ->
log.error("Error on #{req.method} #{url.parse(req.url).pathname}", err)
res.status(503).send(err?.message or err or 'Unknown error')
router.get '/v1/dependent-apps', (req, res) ->
db.models('dependentApp').select()
.map (app) ->
return {
id: parseInt(app.appId)
commit: app.commit
name: app.name
config: JSON.parse(app.config ? '{}')
}
.then (apps) ->
res.json(apps)
.catch (err) ->
log.error("Error on #{req.method} #{url.parse(req.url).pathname}", err)
res.status(503).send(err?.message or err or 'Unknown error')
return router
module.exports = class Proxyvisor
constructor: ({ @config, @logger, @db, @docker, @images, @applications }) ->
@acknowledgedState = {}
@lastRequestForDevice = {}
@router = createProxyvisorRouter(this)
@actionExecutors = {
updateDependentTargets: (step) =>
@config.getMany([ 'currentApiKey', 'apiTimeout' ])
.then ({ currentApiKey, apiTimeout }) =>
# - take each of the step.devices and update dependentDevice with it (targetCommit, targetEnvironment, targetConfig)
# - if update returns 0, then use APIBinder to fetch the device, then store it to the db
# - set markedForDeletion: true for devices that are not in the step.devices list
# - update dependentApp with step.app
Promise.map step.devices, (device) =>
uuid = device.uuid
# Only consider one app per dependent device for now
appId = _(device.apps).keys().head()
targetCommit = device.apps[appId].commit
targetEnvironment = JSON.stringify(device.apps[appId].environment)
targetConfig = JSON.stringify(device.apps[appId].config)
@db.models('dependentDevice').update({ appId, targetEnvironment, targetConfig, targetCommit, name: device.name }).where({ uuid })
.then (n) =>
return if n != 0
# If the device is not in the DB it means it was provisioned externally
# so we need to fetch it.
@apiBinder.fetchDevice(uuid, currentApiKey, apiTimeout)
.then (dev) =>
deviceForDB = {
uuid: uuid
appId: appId
device_type: dev.device_type
deviceId: dev.id
is_online: dev.is_online
name: dev.name
status: dev.status
targetCommit
targetConfig
targetEnvironment
}
@db.models('dependentDevice').insert(deviceForDB)
.then =>
@db.models('dependentDevice').where({ appId: step.appId }).whereNotIn('uuid', _.map(step.devices, 'uuid')).update({ markedForDeletion: true })
.then =>
@normaliseDependentAppForDB(step.app)
.then (appForDB) =>
@db.upsertModel('dependentApp', appForDB, { appId: step.appId })
.then ->
cleanupTars(step.appId, step.app.commit)
sendDependentHooks: (step) =>
Promise.join(
@config.get('apiTimeout')
@getHookEndpoint(step.appId)
(apiTimeout, endpoint) =>
Promise.mapSeries step.devices, (device) =>
Promise.try =>
if @lastRequestForDevice[device.uuid]?
diff = Date.now() - @lastRequestForDevice[device.uuid]
if diff < 30000
Promise.delay(30001 - diff)
.then =>
@lastRequestForDevice[device.uuid] = Date.now()
if device.markedForDeletion
@sendDeleteHook(device, apiTimeout, endpoint)
else
@sendUpdate(device, apiTimeout, endpoint)
)
removeDependentApp: (step) =>
# find step.app and delete it from the DB
# find devices with step.appId and delete them from the DB
@db.transaction (trx) ->
trx('dependentApp').where({ appId: step.appId }).del()
.then ->
trx('dependentDevice').where({ appId: step.appId }).del()
.then ->
cleanupTars(step.appId)
}
@validActions = _.keys(@actionExecutors)
bindToAPI: (apiBinder) =>
@apiBinder = apiBinder
executeStepAction: (step) =>
Promise.try =>
throw new Error("Invalid proxyvisor action #{step.action}") if !@actionExecutors[step.action]?
@actionExecutors[step.action](step)
getCurrentStates: =>
Promise.join(
@db.models('dependentApp').select().map(@normaliseDependentAppFromDB)
@db.models('dependentDevice').select()
(apps, devicesFromDB) ->
devices = _.map devicesFromDB, (device) ->
dev = {
uuid: device.uuid
name: device.name
lock_expiry_date: device.lock_expiry_date
markedForDeletion: device.markedForDeletion
apps: {}
}
dev.apps[device.appId] = {
commit: device.commit
config: JSON.parse(device.config)
environment: JSON.parse(device.environment)
targetCommit: device.targetCommit
targetEnvironment: JSON.parse(device.targetEnvironment)
targetConfig: JSON.parse(device.targetConfig)
}
return dev
return { apps, devices }
)
normaliseDependentAppForDB: (app) =>
if app.image?
image = @images.normalise(app.image)
else
image = null
dbApp = {
appId: app.appId
name: app.name
commit: app.commit
releaseId: app.releaseId
imageId: app.imageId
parentApp: app.parentApp
image: image
config: JSON.stringify(app.config ? {})
environment: JSON.stringify(app.environment ? {})
}
return Promise.props(dbApp)
normaliseDependentDeviceTargetForDB: (device, appCommit) ->
Promise.try ->
apps = _.mapValues _.clone(device.apps ? {}), (app) ->
app.commit = appCommit or null
app.config ?= {}
app.environment ?= {}
return app
apps = JSON.stringify(apps)
outDevice = {
uuid: device.uuid
name: device.name
apps
}
return outDevice
setTargetInTransaction: (dependent, trx) =>
Promise.try =>
if dependent?.apps?
appsArray = _.map dependent.apps, (app, appId) ->
appClone = _.clone(app)
appClone.appId = checkInt(appId)
return appClone
Promise.map(appsArray, @normaliseDependentAppForDB)
.tap (appsForDB) =>
Promise.map appsForDB, (app) =>
@db.upsertModel('dependentAppTarget', app, { appId: app.appId }, trx)
.then (appsForDB) ->
trx('dependentAppTarget').whereNotIn('appId', _.map(appsForDB, 'appId')).del()
.then =>
if dependent?.devices?
devicesArray = _.map dependent.devices, (dev, uuid) ->
devClone = _.clone(dev)
devClone.uuid = uuid
return devClone
Promise.map devicesArray, (device) =>
appId = _.keys(device.apps)[0]
@normaliseDependentDeviceTargetForDB(device, dependent.apps[appId]?.commit)
.then (devicesForDB) =>
Promise.map devicesForDB, (device) =>
@db.upsertModel('dependentDeviceTarget', device, { uuid: device.uuid }, trx)
.then ->
trx('dependentDeviceTarget').whereNotIn('uuid', _.map(devicesForDB, 'uuid')).del()
normaliseDependentAppFromDB: (app) ->
Promise.try ->
outApp = {
appId: app.appId
name: app.name
commit: app.commit
releaseId: app.releaseId
image: app.image
imageId: app.imageId
config: JSON.parse(app.config)
environment: JSON.parse(app.environment)
parentApp: app.parentApp
}
return outApp
normaliseDependentDeviceTargetFromDB: (device) ->
Promise.try ->
outDevice = {
uuid: device.uuid
name: device.name
apps: _.mapValues JSON.parse(device.apps), (a) ->
a.commit ?= null
return a
}
return outDevice
normaliseDependentDeviceFromDB: (device) ->
Promise.try ->
outDevice = _.clone(device)
for prop in [ 'environment', 'config', 'targetEnvironment', 'targetConfig' ]
outDevice[prop] = JSON.parse(device[prop])
return outDevice
getTarget: =>
Promise.props({
apps: @db.models('dependentAppTarget').select().map(@normaliseDependentAppFromDB)
devices: @db.models('dependentDeviceTarget').select().map(@normaliseDependentDeviceTargetFromDB)
})
imagesInUse: (current, target) ->
images = []
if current.dependent?.apps?
for app in current.dependent.apps
images.push app.image
if target.dependent?.apps?
for app in target.dependent.apps
images.push app.image
return images
_imageAvailable: (image, available) ->
_.some(available, name: image)
_getHookStep: (currentDevices, appId) =>
hookStep = {
action: 'sendDependentHooks'
devices: []
appId
}
for device in currentDevices
if device.markedForDeletion
hookStep.devices.push({
uuid: device.uuid
markedForDeletion: true
})
else
targetState = {
appId
commit: device.apps[appId].targetCommit
config: device.apps[appId].targetConfig
environment: device.apps[appId].targetEnvironment
}
currentState = {
appId
commit: device.apps[appId].commit
config: device.apps[appId].config
environment: device.apps[appId].environment
}
if device.apps[appId].targetCommit? and !_.isEqual(targetState, currentState) and !_.isEqual(targetState, @acknowledgedState[device.uuid])
hookStep.devices.push({
uuid: device.uuid
target: targetState
})
return hookStep
_compareDevices: (currentDevices, targetDevices, appId) ->
currentDeviceTargets = _.map currentDevices, (dev) ->
return null if dev.markedForDeletion
devTarget = _.clone(dev)
delete devTarget.markedForDeletion
delete devTarget.lock_expiry_date
devTarget.apps = {}
devTarget.apps[appId] = {
commit: dev.apps[appId].targetCommit
environment: dev.apps[appId].targetEnvironment or {}
config: dev.apps[appId].targetConfig or {}
}
return devTarget
currentDeviceTargets = _.filter(currentDeviceTargets, (dev) -> !_.isNull(dev))
return !_.isEmpty(_.xorWith(currentDeviceTargets, targetDevices, _.isEqual))
imageForDependentApp: (app) ->
return {
name: app.image
imageId: app.imageId
appId: app.appId
dependent: true
}
nextStepsForDependentApp: (appId, availableImages, downloading, current, target, currentDevices, targetDevices, stepsInProgress) =>
# - if there's current but not target, push a removeDependentApp step
if !target?
return [{
action: 'removeDependentApp'
appId: current.appId
}]
if _.some(stepsInProgress, (step) -> step.appId == target.parentApp)
return [{ action: 'noop' }]
needsDownload = target.commit? and target.image? and !@_imageAvailable(target.image, availableImages)
# - if toBeDownloaded includes this app, push a fetch step
if needsDownload
if target.imageId in downloading
return [{ action: 'noop' }]
else
return [{
action: 'fetch'
appId
image: @imageForDependentApp(target)
}]
devicesDiffer = @_compareDevices(currentDevices, targetDevices, appId)
# - if current doesn't match target, or the devices differ, push an updateDependentTargets step
if !_.isEqual(current, target) or devicesDiffer
return [{
action: 'updateDependentTargets'
devices: targetDevices
app: target
appId
}]
# if we got to this point, the current app is up to date and devices have the
# correct targetCommit, targetEnvironment and targetConfig.
hookStep = @_getHookStep(currentDevices, appId)
if !_.isEmpty(hookStep.devices)
return [ hookStep ]
return []
getRequiredSteps: (availableImages, downloading, current, target, stepsInProgress) =>
steps = []
Promise.try =>
targetApps = _.keyBy(target.dependent?.apps ? [], 'appId')
targetAppIds = _.keys(targetApps)
currentApps = _.keyBy(current.dependent?.apps ? [], 'appId')
currentAppIds = _.keys(currentApps)
allAppIds = _.union(targetAppIds, currentAppIds)
for appId in allAppIds
devicesForApp = (devices) ->
_.filter devices, (d) ->
_.has(d.apps, appId)
currentDevices = devicesForApp(current.dependent.devices)
targetDevices = devicesForApp(target.dependent.devices)
stepsForApp = @nextStepsForDependentApp(appId, availableImages, downloading,
currentApps[appId], targetApps[appId],
currentDevices, targetDevices,
stepsInProgress)
steps = steps.concat(stepsForApp)
return steps
getHookEndpoint: (appId) =>
@db.models('dependentApp').select('parentApp').where({ appId })
.then ([ { parentApp } ]) =>
@applications.getTargetApp(parentApp)
.then (parentApp) =>
Promise.map parentApp?.services ? [], (service) =>
@docker.getImageEnv(service.image)
.then (imageEnvs) ->
imageHookAddresses = _.map imageEnvs, (env) ->
return env.BALENA_DEPENDENT_DEVICES_HOOK_ADDRESS ? env.RESIN_DEPENDENT_DEVICES_HOOK_ADDRESS
for addr in imageHookAddresses
return addr if addr?
return parentApp?.config?.BALENA_DEPENDENT_DEVICES_HOOK_ADDRESS ?
parentApp?.config?.RESIN_DEPENDENT_DEVICES_HOOK_ADDRESS ?
"#{constants.proxyvisorHookReceiver}/v1/devices/"
sendUpdate: (device, timeout, endpoint) =>
Promise.resolve(request.getRequestInstance())
.then (instance) ->
instance.putAsync "#{endpoint}#{device.uuid}", {
json: true
body: device.target
}
.timeout(timeout)
.spread (response, body) =>
if response.statusCode == 200
@acknowledgedState[device.uuid] = device.target
else
@acknowledgedState[device.uuid] = null
throw new Error("Hook returned #{response.statusCode}: #{body}") if response.statusCode != 202
.catch (err) ->
return log.error("Error updating device #{device.uuid}", err)
sendDeleteHook: ({ uuid }, timeout, endpoint) =>
Promise.resolve(request.getRequestInstance())
.then (instance) ->
instance.delAsync("#{endpoint}#{uuid}")
.timeout(timeout)
.spread (response, body) =>
if response.statusCode == 200
@db.models('dependentDevice').del().where({ uuid })
else
throw new Error("Hook returned #{response.statusCode}: #{body}")
.catch (err) ->
return log.error("Error deleting device #{uuid}", err)
sendUpdates: ({ uuid }) =>
Promise.join(
@db.models('dependentDevice').where({ uuid }).select()
@config.get('apiTimeout')
([ dev ], apiTimeout) =>
if !dev?
log.warn("Trying to send update to non-existent device #{uuid}")
return
@normaliseDependentDeviceFromDB(dev)
.then (device) =>
currentState = formatCurrentAsState(device)
targetState = formatTargetAsState(device)
@getHookEndpoint(device.appId)
.then (endpoint) =>
if device.markedForDeletion
@sendDeleteHook(device, apiTimeout, endpoint)
else if device.targetCommit? and !_.isEqual(targetState, currentState) and !_.isEqual(targetState, @acknowledgedState[device.uuid])
@sendUpdate(device, targetState, apiTimeout, endpoint)
)
| true | Promise = require 'bluebird'
_ = require 'lodash'
express = require 'express'
fs = Promise.promisifyAll require 'fs'
{ request } = require './lib/request'
constants = require './lib/constants'
{ checkInt, validStringOrUndefined, validObjectOrUndefined } = require './lib/validation'
path = require 'path'
mkdirp = Promise.promisify(require('mkdirp'))
bodyParser = require 'body-parser'
execAsync = Promise.promisify(require('child_process').exec)
url = require 'url'
{ log } = require './lib/supervisor-console'
isDefined = _.negate(_.isUndefined)
parseDeviceFields = (device) ->
device.id = parseInt(device.deviceId)
device.appId = parseInt(device.appId)
device.config = JSON.parse(device.config ? '{}')
device.environment = JSON.parse(device.environment ? '{}')
device.targetConfig = JSON.parse(device.targetConfig ? '{}')
device.targetEnvironment = JSON.parse(device.targetEnvironment ? '{}')
return _.omit(device, 'markedForDeletion', 'logs_channel')
tarDirectory = (appId) ->
return "/data/dependent-assets/#{appId}"
tarFilename = (appId, commit) ->
return "#{appId}-#{commit}.tar"
tarPath = (appId, commit) ->
return "#{tarDirectory(appId)}/#{tarFilename(appId, commit)}"
getTarArchive = (source, destination) ->
fs.lstatAsync(destination)
.catch ->
mkdirp(path.dirname(destination))
.then ->
execAsync("tar -cvf '#{destination}' *", cwd: source)
cleanupTars = (appId, commit) ->
if commit?
fileToKeep = tarFilename(appId, commit)
else
fileToKeep = null
dir = tarDirectory(appId)
fs.readdirAsync(dir)
.catchReturn([])
.then (files) ->
if fileToKeep?
files = _.reject(files, fileToKeep)
Promise.map files, (file) ->
fs.unlinkAsync(path.join(dir, file))
formatTargetAsState = (device) ->
return {
appId: parseInt(device.appId)
commit: device.targetCommit
environment: device.targetEnvironment
config: device.targetConfig
}
formatCurrentAsState = (device) ->
return {
appId: parseInt(device.appId)
commit: device.commit
environment: device.environment
config: device.config
}
createProxyvisorRouter = (proxyvisor) ->
{ db } = proxyvisor
router = express.Router()
router.use(bodyParser.urlencoded(limit: '10mb', extended: true))
router.use(bodyParser.json(limit: '10mb'))
router.get '/v1/devices', (req, res) ->
db.models('dependentDevice').select()
.map(parseDeviceFields)
.then (devices) ->
res.json(devices)
.catch (err) ->
res.status(503).send(err?.message or err or 'Unknown error')
router.post '/v1/devices', (req, res) ->
{ appId, device_type } = req.body
if !appId? or _.isNaN(parseInt(appId)) or parseInt(appId) <= 0
res.status(400).send('appId must be a positive integer')
return
device_type = 'generic' if !device_type?
d =
belongs_to__application: req.body.appId
device_type: device_type
proxyvisor.apiBinder.provisionDependentDevice(d)
.then (dev) ->
# If the response has id: null then something was wrong in the request
# but we don't know precisely what.
if !dev.id?
res.status(400).send('Provisioning failed, invalid appId or credentials')
return
deviceForDB = {
uuid: dev.uuid
appId
device_type: dev.device_type
deviceId: dev.id
name: PI:NAME:<NAME>END_PI
status: dev.status
}
db.models('dependentDevice').insert(deviceForDB)
.then ->
res.status(201).send(dev)
.catch (err) ->
log.error("Error on #{req.method} #{url.parse(req.url).pathname}", err)
res.status(503).send(err?.message or err or 'Unknown error')
router.get '/v1/devices/:uuid', (req, res) ->
uuid = req.params.uuid
db.models('dependentDevice').select().where({ uuid })
.then ([ device ]) ->
return res.status(404).send('Device not found') if !device?
return res.status(410).send('Device deleted') if device.markedForDeletion
res.json(parseDeviceFields(device))
.catch (err) ->
log.error("Error on #{req.method} #{url.parse(req.url).pathname}", err)
res.status(503).send(err?.message or err or 'Unknown error')
router.post '/v1/devices/:uuid/logs', (req, res) ->
uuid = req.params.uuid
m = {
message: req.body.message
timestamp: req.body.timestamp or Date.now()
}
m.isSystem = req.body.isSystem if req.body.isSystem?
db.models('dependentDevice').select().where({ uuid })
.then ([ device ]) ->
return res.status(404).send('Device not found') if !device?
return res.status(410).send('Device deleted') if device.markedForDeletion
proxyvisor.logger.logDependent(m, uuid)
res.status(202).send('OK')
.catch (err) ->
log.error("Error on #{req.method} #{url.parse(req.url).pathname}", err)
res.status(503).send(err?.message or err or 'Unknown error')
router.put '/v1/devices/:uuid', (req, res) ->
uuid = req.params.uuid
{ status, is_online, commit, releaseId, environment, config } = req.body
validateDeviceFields = ->
if isDefined(is_online) and !_.isBoolean(is_online)
return 'is_online must be a boolean'
if !validStringOrUndefined(status)
return 'status must be a non-empty string'
if !validStringOrUndefined(commit)
return 'commit must be a non-empty string'
if !validStringOrUndefined(releaseId)
return 'commit must be a non-empty string'
if !validObjectOrUndefined(environment)
return 'environment must be an object'
if !validObjectOrUndefined(config)
return 'config must be an object'
return null
requestError = validateDeviceFields()
if requestError?
res.status(400).send(requestError)
return
environment = JSON.stringify(environment) if isDefined(environment)
config = JSON.stringify(config) if isDefined(config)
fieldsToUpdateOnDB = _.pickBy({ status, is_online, commit, releaseId, config, environment }, isDefined)
fieldsToUpdateOnAPI = _.pick(fieldsToUpdateOnDB, 'status', 'is_online', 'commit', 'releaseId')
if fieldsToUpdateOnAPI.commit?
fieldsToUpdateOnAPI.is_on__commit = fieldsToUpdateOnAPI.commit
delete fieldsToUpdateOnAPI.commit
if _.isEmpty(fieldsToUpdateOnDB)
res.status(400).send('At least one device attribute must be updated')
return
db.models('dependentDevice').select().where({ uuid })
.then ([ device ]) ->
return res.status(404).send('Device not found') if !device?
return res.status(410).send('Device deleted') if device.markedForDeletion
throw new Error('Device is invalid') if !device.deviceId?
Promise.try ->
if !_.isEmpty(fieldsToUpdateOnAPI)
proxyvisor.apiBinder.patchDevice(device.deviceId, fieldsToUpdateOnAPI)
.then ->
db.models('dependentDevice').update(fieldsToUpdateOnDB).where({ uuid })
.then ->
db.models('dependentDevice').select().where({ uuid })
.then ([ device ]) ->
res.json(parseDeviceFields(device))
.catch (err) ->
log.error("Error on #{req.method} #{url.parse(req.url).pathname}", err)
res.status(503).send(err?.message or err or 'Unknown error')
router.get '/v1/dependent-apps/:appId/assets/:commit', (req, res) ->
db.models('dependentApp').select().where(_.pick(req.params, 'appId', 'commit'))
.then ([ app ]) ->
return res.status(404).send('Not found') if !app
dest = tarPath(app.appId, app.commit)
fs.lstatAsync(dest)
.catch ->
Promise.using proxyvisor.docker.imageRootDirMounted(app.image), (rootDir) ->
getTarArchive(rootDir + '/assets', dest)
.then ->
res.sendFile(dest)
.catch (err) ->
log.error("Error on #{req.method} #{url.parse(req.url).pathname}", err)
res.status(503).send(err?.message or err or 'Unknown error')
router.get '/v1/dependent-apps', (req, res) ->
db.models('dependentApp').select()
.map (app) ->
return {
id: parseInt(app.appId)
commit: app.commit
name: app.name
config: JSON.parse(app.config ? '{}')
}
.then (apps) ->
res.json(apps)
.catch (err) ->
log.error("Error on #{req.method} #{url.parse(req.url).pathname}", err)
res.status(503).send(err?.message or err or 'Unknown error')
return router
module.exports = class Proxyvisor
constructor: ({ @config, @logger, @db, @docker, @images, @applications }) ->
@acknowledgedState = {}
@lastRequestForDevice = {}
@router = createProxyvisorRouter(this)
@actionExecutors = {
updateDependentTargets: (step) =>
@config.getMany([ 'currentApiKey', 'apiTimeout' ])
.then ({ currentApiKey, apiTimeout }) =>
# - take each of the step.devices and update dependentDevice with it (targetCommit, targetEnvironment, targetConfig)
# - if update returns 0, then use APIBinder to fetch the device, then store it to the db
# - set markedForDeletion: true for devices that are not in the step.devices list
# - update dependentApp with step.app
Promise.map step.devices, (device) =>
uuid = device.uuid
# Only consider one app per dependent device for now
appId = _(device.apps).keys().head()
targetCommit = device.apps[appId].commit
targetEnvironment = JSON.stringify(device.apps[appId].environment)
targetConfig = JSON.stringify(device.apps[appId].config)
@db.models('dependentDevice').update({ appId, targetEnvironment, targetConfig, targetCommit, name: device.name }).where({ uuid })
.then (n) =>
return if n != 0
# If the device is not in the DB it means it was provisioned externally
# so we need to fetch it.
@apiBinder.fetchDevice(uuid, currentApiKey, apiTimeout)
.then (dev) =>
deviceForDB = {
uuid: uuid
appId: appId
device_type: dev.device_type
deviceId: dev.id
is_online: dev.is_online
name: dev.name
status: dev.status
targetCommit
targetConfig
targetEnvironment
}
@db.models('dependentDevice').insert(deviceForDB)
.then =>
@db.models('dependentDevice').where({ appId: step.appId }).whereNotIn('uuid', _.map(step.devices, 'uuid')).update({ markedForDeletion: true })
.then =>
@normaliseDependentAppForDB(step.app)
.then (appForDB) =>
@db.upsertModel('dependentApp', appForDB, { appId: step.appId })
.then ->
cleanupTars(step.appId, step.app.commit)
sendDependentHooks: (step) =>
Promise.join(
@config.get('apiTimeout')
@getHookEndpoint(step.appId)
(apiTimeout, endpoint) =>
Promise.mapSeries step.devices, (device) =>
Promise.try =>
if @lastRequestForDevice[device.uuid]?
diff = Date.now() - @lastRequestForDevice[device.uuid]
if diff < 30000
Promise.delay(30001 - diff)
.then =>
@lastRequestForDevice[device.uuid] = Date.now()
if device.markedForDeletion
@sendDeleteHook(device, apiTimeout, endpoint)
else
@sendUpdate(device, apiTimeout, endpoint)
)
removeDependentApp: (step) =>
# find step.app and delete it from the DB
# find devices with step.appId and delete them from the DB
@db.transaction (trx) ->
trx('dependentApp').where({ appId: step.appId }).del()
.then ->
trx('dependentDevice').where({ appId: step.appId }).del()
.then ->
cleanupTars(step.appId)
}
@validActions = _.keys(@actionExecutors)
bindToAPI: (apiBinder) =>
@apiBinder = apiBinder
executeStepAction: (step) =>
Promise.try =>
throw new Error("Invalid proxyvisor action #{step.action}") if !@actionExecutors[step.action]?
@actionExecutors[step.action](step)
getCurrentStates: =>
Promise.join(
@db.models('dependentApp').select().map(@normaliseDependentAppFromDB)
@db.models('dependentDevice').select()
(apps, devicesFromDB) ->
devices = _.map devicesFromDB, (device) ->
dev = {
uuid: device.uuid
name: device.name
lock_expiry_date: device.lock_expiry_date
markedForDeletion: device.markedForDeletion
apps: {}
}
dev.apps[device.appId] = {
commit: device.commit
config: JSON.parse(device.config)
environment: JSON.parse(device.environment)
targetCommit: device.targetCommit
targetEnvironment: JSON.parse(device.targetEnvironment)
targetConfig: JSON.parse(device.targetConfig)
}
return dev
return { apps, devices }
)
normaliseDependentAppForDB: (app) =>
if app.image?
image = @images.normalise(app.image)
else
image = null
dbApp = {
appId: app.appId
name: app.name
commit: app.commit
releaseId: app.releaseId
imageId: app.imageId
parentApp: app.parentApp
image: image
config: JSON.stringify(app.config ? {})
environment: JSON.stringify(app.environment ? {})
}
return Promise.props(dbApp)
normaliseDependentDeviceTargetForDB: (device, appCommit) ->
Promise.try ->
apps = _.mapValues _.clone(device.apps ? {}), (app) ->
app.commit = appCommit or null
app.config ?= {}
app.environment ?= {}
return app
apps = JSON.stringify(apps)
outDevice = {
uuid: device.uuid
name: device.name
apps
}
return outDevice
setTargetInTransaction: (dependent, trx) =>
Promise.try =>
if dependent?.apps?
appsArray = _.map dependent.apps, (app, appId) ->
appClone = _.clone(app)
appClone.appId = checkInt(appId)
return appClone
Promise.map(appsArray, @normaliseDependentAppForDB)
.tap (appsForDB) =>
Promise.map appsForDB, (app) =>
@db.upsertModel('dependentAppTarget', app, { appId: app.appId }, trx)
.then (appsForDB) ->
trx('dependentAppTarget').whereNotIn('appId', _.map(appsForDB, 'appId')).del()
.then =>
if dependent?.devices?
devicesArray = _.map dependent.devices, (dev, uuid) ->
devClone = _.clone(dev)
devClone.uuid = uuid
return devClone
Promise.map devicesArray, (device) =>
appId = _.keys(device.apps)[0]
@normaliseDependentDeviceTargetForDB(device, dependent.apps[appId]?.commit)
.then (devicesForDB) =>
Promise.map devicesForDB, (device) =>
@db.upsertModel('dependentDeviceTarget', device, { uuid: device.uuid }, trx)
.then ->
trx('dependentDeviceTarget').whereNotIn('uuid', _.map(devicesForDB, 'uuid')).del()
normaliseDependentAppFromDB: (app) ->
Promise.try ->
outApp = {
appId: app.appId
name: app.name
commit: app.commit
releaseId: app.releaseId
image: app.image
imageId: app.imageId
config: JSON.parse(app.config)
environment: JSON.parse(app.environment)
parentApp: app.parentApp
}
return outApp
normaliseDependentDeviceTargetFromDB: (device) ->
Promise.try ->
outDevice = {
uuid: device.uuid
name: device.name
apps: _.mapValues JSON.parse(device.apps), (a) ->
a.commit ?= null
return a
}
return outDevice
normaliseDependentDeviceFromDB: (device) ->
Promise.try ->
outDevice = _.clone(device)
for prop in [ 'environment', 'config', 'targetEnvironment', 'targetConfig' ]
outDevice[prop] = JSON.parse(device[prop])
return outDevice
getTarget: =>
Promise.props({
apps: @db.models('dependentAppTarget').select().map(@normaliseDependentAppFromDB)
devices: @db.models('dependentDeviceTarget').select().map(@normaliseDependentDeviceTargetFromDB)
})
imagesInUse: (current, target) ->
images = []
if current.dependent?.apps?
for app in current.dependent.apps
images.push app.image
if target.dependent?.apps?
for app in target.dependent.apps
images.push app.image
return images
_imageAvailable: (image, available) ->
_.some(available, name: image)
_getHookStep: (currentDevices, appId) =>
hookStep = {
action: 'sendDependentHooks'
devices: []
appId
}
for device in currentDevices
if device.markedForDeletion
hookStep.devices.push({
uuid: device.uuid
markedForDeletion: true
})
else
targetState = {
appId
commit: device.apps[appId].targetCommit
config: device.apps[appId].targetConfig
environment: device.apps[appId].targetEnvironment
}
currentState = {
appId
commit: device.apps[appId].commit
config: device.apps[appId].config
environment: device.apps[appId].environment
}
if device.apps[appId].targetCommit? and !_.isEqual(targetState, currentState) and !_.isEqual(targetState, @acknowledgedState[device.uuid])
hookStep.devices.push({
uuid: device.uuid
target: targetState
})
return hookStep
_compareDevices: (currentDevices, targetDevices, appId) ->
currentDeviceTargets = _.map currentDevices, (dev) ->
return null if dev.markedForDeletion
devTarget = _.clone(dev)
delete devTarget.markedForDeletion
delete devTarget.lock_expiry_date
devTarget.apps = {}
devTarget.apps[appId] = {
commit: dev.apps[appId].targetCommit
environment: dev.apps[appId].targetEnvironment or {}
config: dev.apps[appId].targetConfig or {}
}
return devTarget
currentDeviceTargets = _.filter(currentDeviceTargets, (dev) -> !_.isNull(dev))
return !_.isEmpty(_.xorWith(currentDeviceTargets, targetDevices, _.isEqual))
imageForDependentApp: (app) ->
return {
name: app.image
imageId: app.imageId
appId: app.appId
dependent: true
}
nextStepsForDependentApp: (appId, availableImages, downloading, current, target, currentDevices, targetDevices, stepsInProgress) =>
# - if there's current but not target, push a removeDependentApp step
if !target?
return [{
action: 'removeDependentApp'
appId: current.appId
}]
if _.some(stepsInProgress, (step) -> step.appId == target.parentApp)
return [{ action: 'noop' }]
needsDownload = target.commit? and target.image? and !@_imageAvailable(target.image, availableImages)
# - if toBeDownloaded includes this app, push a fetch step
if needsDownload
if target.imageId in downloading
return [{ action: 'noop' }]
else
return [{
action: 'fetch'
appId
image: @imageForDependentApp(target)
}]
devicesDiffer = @_compareDevices(currentDevices, targetDevices, appId)
# - if current doesn't match target, or the devices differ, push an updateDependentTargets step
if !_.isEqual(current, target) or devicesDiffer
return [{
action: 'updateDependentTargets'
devices: targetDevices
app: target
appId
}]
# if we got to this point, the current app is up to date and devices have the
# correct targetCommit, targetEnvironment and targetConfig.
hookStep = @_getHookStep(currentDevices, appId)
if !_.isEmpty(hookStep.devices)
return [ hookStep ]
return []
getRequiredSteps: (availableImages, downloading, current, target, stepsInProgress) =>
steps = []
Promise.try =>
targetApps = _.keyBy(target.dependent?.apps ? [], 'appId')
targetAppIds = _.keys(targetApps)
currentApps = _.keyBy(current.dependent?.apps ? [], 'appId')
currentAppIds = _.keys(currentApps)
allAppIds = _.union(targetAppIds, currentAppIds)
for appId in allAppIds
devicesForApp = (devices) ->
_.filter devices, (d) ->
_.has(d.apps, appId)
currentDevices = devicesForApp(current.dependent.devices)
targetDevices = devicesForApp(target.dependent.devices)
stepsForApp = @nextStepsForDependentApp(appId, availableImages, downloading,
currentApps[appId], targetApps[appId],
currentDevices, targetDevices,
stepsInProgress)
steps = steps.concat(stepsForApp)
return steps
getHookEndpoint: (appId) =>
@db.models('dependentApp').select('parentApp').where({ appId })
.then ([ { parentApp } ]) =>
@applications.getTargetApp(parentApp)
.then (parentApp) =>
Promise.map parentApp?.services ? [], (service) =>
@docker.getImageEnv(service.image)
.then (imageEnvs) ->
imageHookAddresses = _.map imageEnvs, (env) ->
return env.BALENA_DEPENDENT_DEVICES_HOOK_ADDRESS ? env.RESIN_DEPENDENT_DEVICES_HOOK_ADDRESS
for addr in imageHookAddresses
return addr if addr?
return parentApp?.config?.BALENA_DEPENDENT_DEVICES_HOOK_ADDRESS ?
parentApp?.config?.RESIN_DEPENDENT_DEVICES_HOOK_ADDRESS ?
"#{constants.proxyvisorHookReceiver}/v1/devices/"
sendUpdate: (device, timeout, endpoint) =>
Promise.resolve(request.getRequestInstance())
.then (instance) ->
instance.putAsync "#{endpoint}#{device.uuid}", {
json: true
body: device.target
}
.timeout(timeout)
.spread (response, body) =>
if response.statusCode == 200
@acknowledgedState[device.uuid] = device.target
else
@acknowledgedState[device.uuid] = null
throw new Error("Hook returned #{response.statusCode}: #{body}") if response.statusCode != 202
.catch (err) ->
return log.error("Error updating device #{device.uuid}", err)
sendDeleteHook: ({ uuid }, timeout, endpoint) =>
Promise.resolve(request.getRequestInstance())
.then (instance) ->
instance.delAsync("#{endpoint}#{uuid}")
.timeout(timeout)
.spread (response, body) =>
if response.statusCode == 200
@db.models('dependentDevice').del().where({ uuid })
else
throw new Error("Hook returned #{response.statusCode}: #{body}")
.catch (err) ->
return log.error("Error deleting device #{uuid}", err)
sendUpdates: ({ uuid }) =>
Promise.join(
@db.models('dependentDevice').where({ uuid }).select()
@config.get('apiTimeout')
([ dev ], apiTimeout) =>
if !dev?
log.warn("Trying to send update to non-existent device #{uuid}")
return
@normaliseDependentDeviceFromDB(dev)
.then (device) =>
currentState = formatCurrentAsState(device)
targetState = formatTargetAsState(device)
@getHookEndpoint(device.appId)
.then (endpoint) =>
if device.markedForDeletion
@sendDeleteHook(device, apiTimeout, endpoint)
else if device.targetCommit? and !_.isEqual(targetState, currentState) and !_.isEqual(targetState, @acknowledgedState[device.uuid])
@sendUpdate(device, targetState, apiTimeout, endpoint)
)
|
[
{
"context": "/memecaptain.com/\n# API Docs at:\n# github.com/mmb/meme_captain_web/blob/master/doc/api/create_meme_",
"end": 94,
"score": 0.9404478669166565,
"start": 91,
"tag": "USERNAME",
"value": "mmb"
},
{
"context": "offee\"`\n#\n# Dependencies:\n# None\n#\n# Author:\n# ... | node_modules/hubot-meme/src/lib/memecaptain.coffee | edwardfernando/jualobot | 0 | # Description:
# Get a meme from http://memecaptain.com/
# API Docs at:
# github.com/mmb/meme_captain_web/blob/master/doc/api/create_meme_image.md
#
# This is a library file which can be used to interact with the memecaptian api in third-party hubot modules.
# See the meme.coffee script for an example of how to build your own custom memes with this API. Include this
# file with `memeGenerator = require "hubot-meme/src/lib/memecaptain.coffee"`
#
# Dependencies:
# None
#
# Author:
# bobanj
# cycomachead, Michael Ball <cycomachead@gmail.com>
# peelman, Nick Peelman <nick@peelman.us>
# ericjsilva, Eric Silva
# lukewaite, Luke Waite
createPostData = (imageID, lowerText, upperText) ->
data = {
src_image_id: imageID,
private: true,
captions_attributes: [
{
text: lowerText.trim(),
top_left_x_pct: 0.05,
top_left_y_pct: 0.75,
width_pct: 0.9,
height_pct: 0.25
},
{
text: upperText.trim(),
top_left_x_pct: 0.05,
top_left_y_pct: 0,
width_pct: 0.9,
height_pct: 0.25
}
]
}
return JSON.stringify(data)
module.exports = (msg, imageID, upperText, lowerText) ->
MEME_CAPTAIN = 'http://memecaptain.com/gend_images'
baseError = 'Sorry, I couldn\'t generate that meme.'
reasonError = 'Unexpected status from memecaptain.com:'
processResult = (err, res, body) ->
return msg.reply "#{baseError} #{err}" if err
if res.statusCode == 301
msg.http(res.headers.location).get() processResult
return
if res.statusCode == 202 # memecaptain API success
timer = setInterval(->
msg.http(res.headers.location).get() (err, res, body) ->
return msg.reply "#{baseError} #{err}" if err
return if res.statusCode == 200 # wait for the image
if res.statusCode == 303
msg.send res.headers.location
clearInterval(timer)
else
msg.reply "#{baseError} #{reasonError} #{res.statusCode} while waiting for the image"
, 2000)
if res.statusCode > 300 # memecaptain error
msg.reply "#{baseError} #{reasonError} #{res.statusCode} when requesting the image"
data = createPostData(imageID, lowerText, upperText)
msg.robot.http(MEME_CAPTAIN)
.header('accept', 'application/json')
.header('Content-type', 'application/json')
.post(data) processResult
| 167609 | # Description:
# Get a meme from http://memecaptain.com/
# API Docs at:
# github.com/mmb/meme_captain_web/blob/master/doc/api/create_meme_image.md
#
# This is a library file which can be used to interact with the memecaptian api in third-party hubot modules.
# See the meme.coffee script for an example of how to build your own custom memes with this API. Include this
# file with `memeGenerator = require "hubot-meme/src/lib/memecaptain.coffee"`
#
# Dependencies:
# None
#
# Author:
# bobanj
# cycomachead, <NAME> <<EMAIL>>
# peelman, <NAME> <<EMAIL>>
# ericjsilva, <NAME>
# lukewaite, <NAME>
createPostData = (imageID, lowerText, upperText) ->
data = {
src_image_id: imageID,
private: true,
captions_attributes: [
{
text: lowerText.trim(),
top_left_x_pct: 0.05,
top_left_y_pct: 0.75,
width_pct: 0.9,
height_pct: 0.25
},
{
text: upperText.trim(),
top_left_x_pct: 0.05,
top_left_y_pct: 0,
width_pct: 0.9,
height_pct: 0.25
}
]
}
return JSON.stringify(data)
module.exports = (msg, imageID, upperText, lowerText) ->
MEME_CAPTAIN = 'http://memecaptain.com/gend_images'
baseError = 'Sorry, I couldn\'t generate that meme.'
reasonError = 'Unexpected status from memecaptain.com:'
processResult = (err, res, body) ->
return msg.reply "#{baseError} #{err}" if err
if res.statusCode == 301
msg.http(res.headers.location).get() processResult
return
if res.statusCode == 202 # memecaptain API success
timer = setInterval(->
msg.http(res.headers.location).get() (err, res, body) ->
return msg.reply "#{baseError} #{err}" if err
return if res.statusCode == 200 # wait for the image
if res.statusCode == 303
msg.send res.headers.location
clearInterval(timer)
else
msg.reply "#{baseError} #{reasonError} #{res.statusCode} while waiting for the image"
, 2000)
if res.statusCode > 300 # memecaptain error
msg.reply "#{baseError} #{reasonError} #{res.statusCode} when requesting the image"
data = createPostData(imageID, lowerText, upperText)
msg.robot.http(MEME_CAPTAIN)
.header('accept', 'application/json')
.header('Content-type', 'application/json')
.post(data) processResult
| true | # Description:
# Get a meme from http://memecaptain.com/
# API Docs at:
# github.com/mmb/meme_captain_web/blob/master/doc/api/create_meme_image.md
#
# This is a library file which can be used to interact with the memecaptian api in third-party hubot modules.
# See the meme.coffee script for an example of how to build your own custom memes with this API. Include this
# file with `memeGenerator = require "hubot-meme/src/lib/memecaptain.coffee"`
#
# Dependencies:
# None
#
# Author:
# bobanj
# cycomachead, PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
# peelman, PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
# ericjsilva, PI:NAME:<NAME>END_PI
# lukewaite, PI:NAME:<NAME>END_PI
createPostData = (imageID, lowerText, upperText) ->
data = {
src_image_id: imageID,
private: true,
captions_attributes: [
{
text: lowerText.trim(),
top_left_x_pct: 0.05,
top_left_y_pct: 0.75,
width_pct: 0.9,
height_pct: 0.25
},
{
text: upperText.trim(),
top_left_x_pct: 0.05,
top_left_y_pct: 0,
width_pct: 0.9,
height_pct: 0.25
}
]
}
return JSON.stringify(data)
module.exports = (msg, imageID, upperText, lowerText) ->
MEME_CAPTAIN = 'http://memecaptain.com/gend_images'
baseError = 'Sorry, I couldn\'t generate that meme.'
reasonError = 'Unexpected status from memecaptain.com:'
processResult = (err, res, body) ->
return msg.reply "#{baseError} #{err}" if err
if res.statusCode == 301
msg.http(res.headers.location).get() processResult
return
if res.statusCode == 202 # memecaptain API success
timer = setInterval(->
msg.http(res.headers.location).get() (err, res, body) ->
return msg.reply "#{baseError} #{err}" if err
return if res.statusCode == 200 # wait for the image
if res.statusCode == 303
msg.send res.headers.location
clearInterval(timer)
else
msg.reply "#{baseError} #{reasonError} #{res.statusCode} while waiting for the image"
, 2000)
if res.statusCode > 300 # memecaptain error
msg.reply "#{baseError} #{reasonError} #{res.statusCode} when requesting the image"
data = createPostData(imageID, lowerText, upperText)
msg.robot.http(MEME_CAPTAIN)
.header('accept', 'application/json')
.header('Content-type', 'application/json')
.post(data) processResult
|
[
{
"context": "products = [\n { name: \"one\" }\n { name: \"two\" }\n ]\n productProvider = new ProductProvide",
"end": 215,
"score": 0.9928445219993591,
"start": 212,
"tag": "NAME",
"value": "two"
},
{
"context": " (done) ->\n productProvider.save [{ name: \"th... | server/test/product_provider_spec.coffee | lucassus/angular-coffee-seed | 2 | expect = require("chai").expect
ProductProvider = require("../lib/product_provider")
describe "ProductProvider", ->
productProvider = null
beforeEach ->
products = [
{ name: "one" }
{ name: "two" }
]
productProvider = new ProductProvider(products)
describe "a new instance", ->
it "saves a prducts", ->
expect(productProvider.products.length).to.equal 2
describe "saved products", ->
it "generates ids", ->
products = productProvider.products
expect(products[0].id).to.equal 1
expect(products[1].id).to.equal 2
it "assings createdAt date", ->
products = productProvider.products
expect(products[0].createdAt).to.not.be.undefined
expect(products[1].createdAt).to.not.be.undefined
describe "#findAll()", ->
it "finds all products", (done) ->
productProvider.findAll (error, products) ->
expect(products.length).to.equal 2
done()
describe "#findById()", ->
context "when the product can be found", ->
it "returns the product", (done) ->
productProvider.findById 1, (error, product) ->
expect(product).not.to.be.undefined
expect(product.id).to.equal 1
expect(product.name).to.equal "one"
done()
context "when the product cannot be found", ->
it "returns undefined", (done) ->
productProvider.findById 3, (error, product) ->
expect(product).to.be.undefined
done()
describe "#save()", ->
context "when the single product is given", ->
product = null
beforeEach (done) ->
productProvider.save name: "third", (error, _newProducts_) ->
product = _newProducts_[0]
done()
it "saves a product", ->
expect(product).not.to.be.undefined
expect(product.name).to.equal "third"
describe "new record", ->
it "generates an id for the product", ->
expect(product.id).to.equal 3
it "assigns createdAt date", ->
expect(product.createdAt).to.not.be.undefined
context "when the array of products is given", ->
products = null
beforeEach (done) ->
productProvider.save [{ name: "third" }, { name: "forth" }], (error, _newProducts_) ->
products = _newProducts_
done()
it "saves the products", ->
expect(products.length).to.equal 2
expect(products[0].name).to.equal "third"
expect(products[1].name).to.equal "forth"
describe "new records", ->
it "generates ids for all new records", ->
expect(products[0].id).to.equal 3
expect(products[1].id).to.equal 4
it "assigns createdAt date for all new records", ->
expect(products[0].createdAt).to.not.be.undefined
expect(products[1].createdAt).to.not.be.undefined
describe "#update()", ->
it "updates a product", (done) ->
params =
id: "unknown"
name: "New name"
description: "New description"
price: 99.99
productProvider.update 1, params, (error, product) ->
expect(product).to.not.be.undefined
expect(product.id).to.equal 1
expect(product.name).to.equal params.name
expect(product.description).to.equal params.description
expect(product.price).to.equal params.price
done()
describe "#destroy()", ->
it "deletes a product", (done) ->
productProvider.destroy 1, (error, product) ->
expect(product).to.not.be.undefined
expect(product.id).to.equal 1
productProvider.findById product.id, (error, product) ->
expect(product).to.be.undefined
done()
describe "#destroyAll()", ->
it "deletes all products", (done) ->
productProvider.destroyAll ->
expect(productProvider.products.length).to.equal 0
done()
| 164519 | expect = require("chai").expect
ProductProvider = require("../lib/product_provider")
describe "ProductProvider", ->
productProvider = null
beforeEach ->
products = [
{ name: "one" }
{ name: "<NAME>" }
]
productProvider = new ProductProvider(products)
describe "a new instance", ->
it "saves a prducts", ->
expect(productProvider.products.length).to.equal 2
describe "saved products", ->
it "generates ids", ->
products = productProvider.products
expect(products[0].id).to.equal 1
expect(products[1].id).to.equal 2
it "assings createdAt date", ->
products = productProvider.products
expect(products[0].createdAt).to.not.be.undefined
expect(products[1].createdAt).to.not.be.undefined
describe "#findAll()", ->
it "finds all products", (done) ->
productProvider.findAll (error, products) ->
expect(products.length).to.equal 2
done()
describe "#findById()", ->
context "when the product can be found", ->
it "returns the product", (done) ->
productProvider.findById 1, (error, product) ->
expect(product).not.to.be.undefined
expect(product.id).to.equal 1
expect(product.name).to.equal "one"
done()
context "when the product cannot be found", ->
it "returns undefined", (done) ->
productProvider.findById 3, (error, product) ->
expect(product).to.be.undefined
done()
describe "#save()", ->
context "when the single product is given", ->
product = null
beforeEach (done) ->
productProvider.save name: "third", (error, _newProducts_) ->
product = _newProducts_[0]
done()
it "saves a product", ->
expect(product).not.to.be.undefined
expect(product.name).to.equal "third"
describe "new record", ->
it "generates an id for the product", ->
expect(product.id).to.equal 3
it "assigns createdAt date", ->
expect(product.createdAt).to.not.be.undefined
context "when the array of products is given", ->
products = null
beforeEach (done) ->
productProvider.save [{ name: "<NAME>" }, { name: "<NAME>" }], (error, _newProducts_) ->
products = _newProducts_
done()
it "saves the products", ->
expect(products.length).to.equal 2
expect(products[0].name).to.equal "third"
expect(products[1].name).to.equal "forth"
describe "new records", ->
it "generates ids for all new records", ->
expect(products[0].id).to.equal 3
expect(products[1].id).to.equal 4
it "assigns createdAt date for all new records", ->
expect(products[0].createdAt).to.not.be.undefined
expect(products[1].createdAt).to.not.be.undefined
describe "#update()", ->
it "updates a product", (done) ->
params =
id: "unknown"
name: "<NAME>"
description: "New description"
price: 99.99
productProvider.update 1, params, (error, product) ->
expect(product).to.not.be.undefined
expect(product.id).to.equal 1
expect(product.name).to.equal params.name
expect(product.description).to.equal params.description
expect(product.price).to.equal params.price
done()
describe "#destroy()", ->
it "deletes a product", (done) ->
productProvider.destroy 1, (error, product) ->
expect(product).to.not.be.undefined
expect(product.id).to.equal 1
productProvider.findById product.id, (error, product) ->
expect(product).to.be.undefined
done()
describe "#destroyAll()", ->
it "deletes all products", (done) ->
productProvider.destroyAll ->
expect(productProvider.products.length).to.equal 0
done()
| true | expect = require("chai").expect
ProductProvider = require("../lib/product_provider")
describe "ProductProvider", ->
productProvider = null
beforeEach ->
products = [
{ name: "one" }
{ name: "PI:NAME:<NAME>END_PI" }
]
productProvider = new ProductProvider(products)
describe "a new instance", ->
it "saves a prducts", ->
expect(productProvider.products.length).to.equal 2
describe "saved products", ->
it "generates ids", ->
products = productProvider.products
expect(products[0].id).to.equal 1
expect(products[1].id).to.equal 2
it "assings createdAt date", ->
products = productProvider.products
expect(products[0].createdAt).to.not.be.undefined
expect(products[1].createdAt).to.not.be.undefined
describe "#findAll()", ->
it "finds all products", (done) ->
productProvider.findAll (error, products) ->
expect(products.length).to.equal 2
done()
describe "#findById()", ->
context "when the product can be found", ->
it "returns the product", (done) ->
productProvider.findById 1, (error, product) ->
expect(product).not.to.be.undefined
expect(product.id).to.equal 1
expect(product.name).to.equal "one"
done()
context "when the product cannot be found", ->
it "returns undefined", (done) ->
productProvider.findById 3, (error, product) ->
expect(product).to.be.undefined
done()
describe "#save()", ->
context "when the single product is given", ->
product = null
beforeEach (done) ->
productProvider.save name: "third", (error, _newProducts_) ->
product = _newProducts_[0]
done()
it "saves a product", ->
expect(product).not.to.be.undefined
expect(product.name).to.equal "third"
describe "new record", ->
it "generates an id for the product", ->
expect(product.id).to.equal 3
it "assigns createdAt date", ->
expect(product.createdAt).to.not.be.undefined
context "when the array of products is given", ->
products = null
beforeEach (done) ->
productProvider.save [{ name: "PI:NAME:<NAME>END_PI" }, { name: "PI:NAME:<NAME>END_PI" }], (error, _newProducts_) ->
products = _newProducts_
done()
it "saves the products", ->
expect(products.length).to.equal 2
expect(products[0].name).to.equal "third"
expect(products[1].name).to.equal "forth"
describe "new records", ->
it "generates ids for all new records", ->
expect(products[0].id).to.equal 3
expect(products[1].id).to.equal 4
it "assigns createdAt date for all new records", ->
expect(products[0].createdAt).to.not.be.undefined
expect(products[1].createdAt).to.not.be.undefined
describe "#update()", ->
it "updates a product", (done) ->
params =
id: "unknown"
name: "PI:NAME:<NAME>END_PI"
description: "New description"
price: 99.99
productProvider.update 1, params, (error, product) ->
expect(product).to.not.be.undefined
expect(product.id).to.equal 1
expect(product.name).to.equal params.name
expect(product.description).to.equal params.description
expect(product.price).to.equal params.price
done()
describe "#destroy()", ->
it "deletes a product", (done) ->
productProvider.destroy 1, (error, product) ->
expect(product).to.not.be.undefined
expect(product.id).to.equal 1
productProvider.findById product.id, (error, product) ->
expect(product).to.be.undefined
done()
describe "#destroyAll()", ->
it "deletes all products", (done) ->
productProvider.destroyAll ->
expect(productProvider.products.length).to.equal 0
done()
|
[
{
"context": "share.api_key_MARTA = 'fbb6c5f7-89f2-4c60-9f97-23aa379914b8'\n",
"end": 59,
"score": 0.9997475147247314,
"start": 23,
"tag": "KEY",
"value": "fbb6c5f7-89f2-4c60-9f97-23aa379914b8"
}
] | server/apikey.coffee | CyCoreSystems/transport | 0 | share.api_key_MARTA = 'fbb6c5f7-89f2-4c60-9f97-23aa379914b8'
| 145252 | share.api_key_MARTA = '<KEY>'
| true | share.api_key_MARTA = 'PI:KEY:<KEY>END_PI'
|
[
{
"context": "here is no \"#tag\" in the URL.\n defaultToken: '!info'\n\n viewportId: 'viewport'\n\n uses: ['Ext.win",
"end": 500,
"score": 0.7208773493766785,
"start": 496,
"tag": "KEY",
"value": "info"
}
] | sencha/apps/cloud/coffee/app/Application.coffee | liverbool/c.com | 0 | ###
The main application class. An instance of this class is created by app.js when it calls
Ext.application(). This is the ideal place to handle application launch and initialization
details.
###
MAGICE_URL = 'http://c.com/web';
sprintf = _.string.sprintf
vsprintf = _.string.vsprintf
endsWith = _.string.endsWith
Ext.define 'Magice.Application',
extend: 'Ext.app.Application'
name: 'Magice'
# The tab we want to activate if there is no "#tag" in the URL.
defaultToken: '!info'
viewportId: 'viewport'
uses: ['Ext.window.Toast']
requires: [
'Glyph'
'Ext.bugfix.*'
'Ext.override.*'
'Ext.extend.*'
'Ext.ux.jp.panel.TopBar'
]
views: [
'Magice.Main.view.View'
]
launch: ->
# Let's add a CSS class to body if flex box wrap is not implemented or broken
# http://flexboxlayouts.com/flexboxlayout_tricks.html
if Ext.browser.is.Gecko and Ext.browser.version.major < 28
Ext.getBody().addCls 'x-flex-wrap-broken'
handleForbidden: (conn, response, options, eOpts) ->
#console.log @
console.log response.json
statics:
URL: MAGICE_URL
path: (path) ->
Magice.Application.URL + path
setLoading: (status) ->
if Magice.Application.viewport
Magice.Application.viewport.viewModel.set 'loading', status
# Ajax Global
# TODO: move to extend
humanize =
text: (v) -> _.string.humanize v
duration: (v) -> if v then moment.duration(v).humanize() + ' ago' else ''
date: (v, format) -> if v then moment(v).format 'll' else ''
datetime: (v, format) -> if v then moment(v).format 'lll' else ''
diff: (a, b) -> console.info('this is contrains a bug!'); if !a or !b then null else moment.duration(moment(b).diff(a)).humanize()
format: (v, format, input) ->
if input is 'mb'
v = v * Math.pow(1024, 2)
numeral(v).format(format)
Ext.util.ObjectId = (val) ->
if typeof val is 'object' then val.id else null
Ext.util.inArray = (value, collection) ->
return no unless collection
collection.indexOf(value) isnt -1;
Ext.util.bindParameter = (str, parameter) ->
return str unless parameter
str = str.replace /\[\w+\]/g, (k) ->
key = k.replace '[', ''
key = key.replace ']', ''
parameter[key] || k
Ext.util.isFullyUrl = (str) ->
return yes if /^\/\/.*/.test str or /^http(s?)\:\/\/.*/.test str
Ext.Ajax.setDefaultHeaders
"X-Requested-With-Sencha": yes
Ext.Ajax.on 'beforerequest', (conn, options) ->
Magice.Application.setLoading yes
# `parameters` special on Magice provide parameters of load(options)
# to bind into url holder
# directly from Ext.Ajax.request
parameters = options.parameters if options.parameters
# pass throuth Ext.data.Model#save
parameters = options.operation.config.parameters if options.operation and options.operation.config
options.url = Ext.util.bindParameter options.url, parameters if parameters
console.log arguments
# symfony dev propose
if !Ext.util.isFullyUrl options.url
options.url = Magice.Application.path options.url
if options.operation and options.operation.config.background
# TODO: --
console.info 'Running background process.'
Ext.Ajax.on 'requestcomplete', ->
Magice.Application.setLoading no
###
Ext.Ajax.on 'requestexception', (conn, response, options, eOpts) ->
Magice.Application.setLoading no
# convert json string response to object
if response.responseText
response.json = Ext.decode(response.responseText)
# exception handlers
switch response.status
# AccessDeniedException
when 403 then @handleForbidden.apply Magice.Application, arguments
else console.log arguments
### | 168120 | ###
The main application class. An instance of this class is created by app.js when it calls
Ext.application(). This is the ideal place to handle application launch and initialization
details.
###
MAGICE_URL = 'http://c.com/web';
sprintf = _.string.sprintf
vsprintf = _.string.vsprintf
endsWith = _.string.endsWith
Ext.define 'Magice.Application',
extend: 'Ext.app.Application'
name: 'Magice'
# The tab we want to activate if there is no "#tag" in the URL.
defaultToken: '!<KEY>'
viewportId: 'viewport'
uses: ['Ext.window.Toast']
requires: [
'Glyph'
'Ext.bugfix.*'
'Ext.override.*'
'Ext.extend.*'
'Ext.ux.jp.panel.TopBar'
]
views: [
'Magice.Main.view.View'
]
launch: ->
# Let's add a CSS class to body if flex box wrap is not implemented or broken
# http://flexboxlayouts.com/flexboxlayout_tricks.html
if Ext.browser.is.Gecko and Ext.browser.version.major < 28
Ext.getBody().addCls 'x-flex-wrap-broken'
handleForbidden: (conn, response, options, eOpts) ->
#console.log @
console.log response.json
statics:
URL: MAGICE_URL
path: (path) ->
Magice.Application.URL + path
setLoading: (status) ->
if Magice.Application.viewport
Magice.Application.viewport.viewModel.set 'loading', status
# Ajax Global
# TODO: move to extend
humanize =
text: (v) -> _.string.humanize v
duration: (v) -> if v then moment.duration(v).humanize() + ' ago' else ''
date: (v, format) -> if v then moment(v).format 'll' else ''
datetime: (v, format) -> if v then moment(v).format 'lll' else ''
diff: (a, b) -> console.info('this is contrains a bug!'); if !a or !b then null else moment.duration(moment(b).diff(a)).humanize()
format: (v, format, input) ->
if input is 'mb'
v = v * Math.pow(1024, 2)
numeral(v).format(format)
Ext.util.ObjectId = (val) ->
if typeof val is 'object' then val.id else null
Ext.util.inArray = (value, collection) ->
return no unless collection
collection.indexOf(value) isnt -1;
Ext.util.bindParameter = (str, parameter) ->
return str unless parameter
str = str.replace /\[\w+\]/g, (k) ->
key = k.replace '[', ''
key = key.replace ']', ''
parameter[key] || k
Ext.util.isFullyUrl = (str) ->
return yes if /^\/\/.*/.test str or /^http(s?)\:\/\/.*/.test str
Ext.Ajax.setDefaultHeaders
"X-Requested-With-Sencha": yes
Ext.Ajax.on 'beforerequest', (conn, options) ->
Magice.Application.setLoading yes
# `parameters` special on Magice provide parameters of load(options)
# to bind into url holder
# directly from Ext.Ajax.request
parameters = options.parameters if options.parameters
# pass throuth Ext.data.Model#save
parameters = options.operation.config.parameters if options.operation and options.operation.config
options.url = Ext.util.bindParameter options.url, parameters if parameters
console.log arguments
# symfony dev propose
if !Ext.util.isFullyUrl options.url
options.url = Magice.Application.path options.url
if options.operation and options.operation.config.background
# TODO: --
console.info 'Running background process.'
Ext.Ajax.on 'requestcomplete', ->
Magice.Application.setLoading no
###
Ext.Ajax.on 'requestexception', (conn, response, options, eOpts) ->
Magice.Application.setLoading no
# convert json string response to object
if response.responseText
response.json = Ext.decode(response.responseText)
# exception handlers
switch response.status
# AccessDeniedException
when 403 then @handleForbidden.apply Magice.Application, arguments
else console.log arguments
### | true | ###
The main application class. An instance of this class is created by app.js when it calls
Ext.application(). This is the ideal place to handle application launch and initialization
details.
###
MAGICE_URL = 'http://c.com/web';
sprintf = _.string.sprintf
vsprintf = _.string.vsprintf
endsWith = _.string.endsWith
Ext.define 'Magice.Application',
extend: 'Ext.app.Application'
name: 'Magice'
# The tab we want to activate if there is no "#tag" in the URL.
defaultToken: '!PI:KEY:<KEY>END_PI'
viewportId: 'viewport'
uses: ['Ext.window.Toast']
requires: [
'Glyph'
'Ext.bugfix.*'
'Ext.override.*'
'Ext.extend.*'
'Ext.ux.jp.panel.TopBar'
]
views: [
'Magice.Main.view.View'
]
launch: ->
# Let's add a CSS class to body if flex box wrap is not implemented or broken
# http://flexboxlayouts.com/flexboxlayout_tricks.html
if Ext.browser.is.Gecko and Ext.browser.version.major < 28
Ext.getBody().addCls 'x-flex-wrap-broken'
handleForbidden: (conn, response, options, eOpts) ->
#console.log @
console.log response.json
statics:
URL: MAGICE_URL
path: (path) ->
Magice.Application.URL + path
setLoading: (status) ->
if Magice.Application.viewport
Magice.Application.viewport.viewModel.set 'loading', status
# Ajax Global
# TODO: move to extend
humanize =
text: (v) -> _.string.humanize v
duration: (v) -> if v then moment.duration(v).humanize() + ' ago' else ''
date: (v, format) -> if v then moment(v).format 'll' else ''
datetime: (v, format) -> if v then moment(v).format 'lll' else ''
diff: (a, b) -> console.info('this is contrains a bug!'); if !a or !b then null else moment.duration(moment(b).diff(a)).humanize()
format: (v, format, input) ->
if input is 'mb'
v = v * Math.pow(1024, 2)
numeral(v).format(format)
Ext.util.ObjectId = (val) ->
if typeof val is 'object' then val.id else null
Ext.util.inArray = (value, collection) ->
return no unless collection
collection.indexOf(value) isnt -1;
Ext.util.bindParameter = (str, parameter) ->
return str unless parameter
str = str.replace /\[\w+\]/g, (k) ->
key = k.replace '[', ''
key = key.replace ']', ''
parameter[key] || k
Ext.util.isFullyUrl = (str) ->
return yes if /^\/\/.*/.test str or /^http(s?)\:\/\/.*/.test str
Ext.Ajax.setDefaultHeaders
"X-Requested-With-Sencha": yes
Ext.Ajax.on 'beforerequest', (conn, options) ->
Magice.Application.setLoading yes
# `parameters` special on Magice provide parameters of load(options)
# to bind into url holder
# directly from Ext.Ajax.request
parameters = options.parameters if options.parameters
# pass throuth Ext.data.Model#save
parameters = options.operation.config.parameters if options.operation and options.operation.config
options.url = Ext.util.bindParameter options.url, parameters if parameters
console.log arguments
# symfony dev propose
if !Ext.util.isFullyUrl options.url
options.url = Magice.Application.path options.url
if options.operation and options.operation.config.background
# TODO: --
console.info 'Running background process.'
Ext.Ajax.on 'requestcomplete', ->
Magice.Application.setLoading no
###
Ext.Ajax.on 'requestexception', (conn, response, options, eOpts) ->
Magice.Application.setLoading no
# convert json string response to object
if response.responseText
response.json = Ext.decode(response.responseText)
# exception handlers
switch response.status
# AccessDeniedException
when 403 then @handleForbidden.apply Magice.Application, arguments
else console.log arguments
### |
[
{
"context": "ies of npm projects.\n@class MyDependencies\n@author Jan Sanchez\n###\n\n\n###\n# Module dependencies.\n###\n\nchalk ",
"end": 80,
"score": 0.9998698830604553,
"start": 69,
"tag": "NAME",
"value": "Jan Sanchez"
}
] | source/coffee/package/lib/mydependencies.coffee | jansanchez/mydependencies | 11 | ###
List dependencies of npm projects.
@class MyDependencies
@author Jan Sanchez
###
###
# Module dependencies.
###
chalk = require('chalk')
fs = require('fs')
###
# Library.
###
MyDependencies = (opts) ->
options = {
namesOfMyDependencies: ['devDependencies', 'dependencies', 'peerDependencies', 'bundleDependencies', 'optionalDependencies']
}
@settings = opts or options
@ArrayDependencies = []
@counter = 0
@output = ""
@namesOfMyDependencies = @settings.namesOfMyDependencies
if @readFile("package.json")
@getMyDependencies()
@readMyDependencies()
@writeMyDependencies()
return @
MyDependencies::readFile = (filepath) ->
error = { status: false }
try
contentFile = fs.readFileSync(process.cwd() + "/" + filepath, "utf8")
catch err
error.status = true
error.path = err.path
if error.status
console.log(chalk.red("No such file or directory: '" + error.path + "'"))
return false
else
@packageJson = JSON.parse(contentFile)
return true
return
MyDependencies::getMyDependencies = () ->
for dependencyName in @namesOfMyDependencies
@pushMyDependencies(@packageJson[dependencyName])
return
MyDependencies::pushMyDependencies = (dependencyObject) ->
if dependencyObject is undefined
return false
if Object.keys(dependencyObject).length is 0
return false
@ArrayDependencies.push(dependencyObject)
return
MyDependencies::readMyDependencies = () ->
for dependency, i in @ArrayDependencies
@output += "\n" + " " + @namesOfMyDependencies[i] + ": " + "\n\n"
@readKeys(dependency)
return
MyDependencies::readKeys = (dependency) ->
for key of dependency
if (dependency.hasOwnProperty(key))
@counter++
@output += " " + chalk.cyan(" " + key) + " : " + chalk.yellow(dependency[key]) + "\n"
return
MyDependencies::writeMyDependencies = () ->
@output += "\n" + " - - - - - - - - - - - - - - - - - - - -" + "\n"
@output += chalk.green.bold(" We have found " + @counter + " dependencies!") + "\n"
console.log(@output)
return
###
# Expose library.
###
module.exports = MyDependencies
| 56956 | ###
List dependencies of npm projects.
@class MyDependencies
@author <NAME>
###
###
# Module dependencies.
###
chalk = require('chalk')
fs = require('fs')
###
# Library.
###
MyDependencies = (opts) ->
options = {
namesOfMyDependencies: ['devDependencies', 'dependencies', 'peerDependencies', 'bundleDependencies', 'optionalDependencies']
}
@settings = opts or options
@ArrayDependencies = []
@counter = 0
@output = ""
@namesOfMyDependencies = @settings.namesOfMyDependencies
if @readFile("package.json")
@getMyDependencies()
@readMyDependencies()
@writeMyDependencies()
return @
MyDependencies::readFile = (filepath) ->
error = { status: false }
try
contentFile = fs.readFileSync(process.cwd() + "/" + filepath, "utf8")
catch err
error.status = true
error.path = err.path
if error.status
console.log(chalk.red("No such file or directory: '" + error.path + "'"))
return false
else
@packageJson = JSON.parse(contentFile)
return true
return
MyDependencies::getMyDependencies = () ->
for dependencyName in @namesOfMyDependencies
@pushMyDependencies(@packageJson[dependencyName])
return
MyDependencies::pushMyDependencies = (dependencyObject) ->
if dependencyObject is undefined
return false
if Object.keys(dependencyObject).length is 0
return false
@ArrayDependencies.push(dependencyObject)
return
MyDependencies::readMyDependencies = () ->
for dependency, i in @ArrayDependencies
@output += "\n" + " " + @namesOfMyDependencies[i] + ": " + "\n\n"
@readKeys(dependency)
return
MyDependencies::readKeys = (dependency) ->
for key of dependency
if (dependency.hasOwnProperty(key))
@counter++
@output += " " + chalk.cyan(" " + key) + " : " + chalk.yellow(dependency[key]) + "\n"
return
MyDependencies::writeMyDependencies = () ->
@output += "\n" + " - - - - - - - - - - - - - - - - - - - -" + "\n"
@output += chalk.green.bold(" We have found " + @counter + " dependencies!") + "\n"
console.log(@output)
return
###
# Expose library.
###
module.exports = MyDependencies
| true | ###
List dependencies of npm projects.
@class MyDependencies
@author PI:NAME:<NAME>END_PI
###
###
# Module dependencies.
###
chalk = require('chalk')
fs = require('fs')
###
# Library.
###
MyDependencies = (opts) ->
options = {
namesOfMyDependencies: ['devDependencies', 'dependencies', 'peerDependencies', 'bundleDependencies', 'optionalDependencies']
}
@settings = opts or options
@ArrayDependencies = []
@counter = 0
@output = ""
@namesOfMyDependencies = @settings.namesOfMyDependencies
if @readFile("package.json")
@getMyDependencies()
@readMyDependencies()
@writeMyDependencies()
return @
MyDependencies::readFile = (filepath) ->
error = { status: false }
try
contentFile = fs.readFileSync(process.cwd() + "/" + filepath, "utf8")
catch err
error.status = true
error.path = err.path
if error.status
console.log(chalk.red("No such file or directory: '" + error.path + "'"))
return false
else
@packageJson = JSON.parse(contentFile)
return true
return
MyDependencies::getMyDependencies = () ->
for dependencyName in @namesOfMyDependencies
@pushMyDependencies(@packageJson[dependencyName])
return
MyDependencies::pushMyDependencies = (dependencyObject) ->
if dependencyObject is undefined
return false
if Object.keys(dependencyObject).length is 0
return false
@ArrayDependencies.push(dependencyObject)
return
MyDependencies::readMyDependencies = () ->
for dependency, i in @ArrayDependencies
@output += "\n" + " " + @namesOfMyDependencies[i] + ": " + "\n\n"
@readKeys(dependency)
return
MyDependencies::readKeys = (dependency) ->
for key of dependency
if (dependency.hasOwnProperty(key))
@counter++
@output += " " + chalk.cyan(" " + key) + " : " + chalk.yellow(dependency[key]) + "\n"
return
MyDependencies::writeMyDependencies = () ->
@output += "\n" + " - - - - - - - - - - - - - - - - - - - -" + "\n"
@output += chalk.green.bold(" We have found " + @counter + " dependencies!") + "\n"
console.log(@output)
return
###
# Expose library.
###
module.exports = MyDependencies
|
[
{
"context": "ge.event == 'message'\n author =\n name: @userForId(message.user).name\n flow: message.flo",
"end": 528,
"score": 0.687818169593811,
"start": 523,
"tag": "USERNAME",
"value": "@user"
},
{
"context": "v.HUBOT_FLOWDOCK_LOGIN_EMAIL\n @login_password =... | src/adapters/flowdock.coffee | cityindex/le-bott | 0 | Robot = require('../robot')
Adapter = require('../adapter')
flowdock = require "flowdock"
class Flowdock extends Adapter
send: (user, strings...) ->
@bot.message user.flow, str for str in strings
reply: (user, strings...) ->
strings.forEach (str) =>
@send user, "#{user.name}: #{str}"
connect: ->
ids = (flow.id for flow in @flows)
@stream = @bot.stream(ids, active: 'idle')
@stream.on 'message', (message) =>
return unless message.event == 'message'
author =
name: @userForId(message.user).name
flow: message.flow
return if @name == author.name
@receive new Robot.TextMessage(author, message.content)
run: ->
@login_email = process.env.HUBOT_FLOWDOCK_LOGIN_EMAIL
@login_password = process.env.HUBOT_FLOWDOCK_LOGIN_PASSWORD
unless @login_email && @login_password
console.error "ERROR: No credentials in environment variables HUBOT_FLOWDOCK_LOGIN_EMAIL and HUBOT_FLOWDOCK_LOGIN_PASSWORD"
@emit "error", "No credentials"
@bot = new flowdock.Session(@login_email, @login_password)
@bot.flows (flows) =>
@flows = flows
for flow in flows
for user in flow.users
data =
id: user.id
name: user.nick
@userForId user.id, data
@connect()
@bot
@emit 'connected'
exports.use = (robot) ->
new Flowdock robot
| 5389 | Robot = require('../robot')
Adapter = require('../adapter')
flowdock = require "flowdock"
class Flowdock extends Adapter
send: (user, strings...) ->
@bot.message user.flow, str for str in strings
reply: (user, strings...) ->
strings.forEach (str) =>
@send user, "#{user.name}: #{str}"
connect: ->
ids = (flow.id for flow in @flows)
@stream = @bot.stream(ids, active: 'idle')
@stream.on 'message', (message) =>
return unless message.event == 'message'
author =
name: @userForId(message.user).name
flow: message.flow
return if @name == author.name
@receive new Robot.TextMessage(author, message.content)
run: ->
@login_email = process.env.HUBOT_FLOWDOCK_LOGIN_EMAIL
@login_password = <PASSWORD>.<PASSWORD>
unless @login_email && @login_password
console.error "ERROR: No credentials in environment variables HUBOT_FLOWDOCK_LOGIN_EMAIL and HUBOT_FLOWDOCK_LOGIN_PASSWORD"
@emit "error", "No credentials"
@bot = new flowdock.Session(@login_email, @login_password)
@bot.flows (flows) =>
@flows = flows
for flow in flows
for user in flow.users
data =
id: user.id
name: user.nick
@userForId user.id, data
@connect()
@bot
@emit 'connected'
exports.use = (robot) ->
new Flowdock robot
| true | Robot = require('../robot')
Adapter = require('../adapter')
flowdock = require "flowdock"
class Flowdock extends Adapter
send: (user, strings...) ->
@bot.message user.flow, str for str in strings
reply: (user, strings...) ->
strings.forEach (str) =>
@send user, "#{user.name}: #{str}"
connect: ->
ids = (flow.id for flow in @flows)
@stream = @bot.stream(ids, active: 'idle')
@stream.on 'message', (message) =>
return unless message.event == 'message'
author =
name: @userForId(message.user).name
flow: message.flow
return if @name == author.name
@receive new Robot.TextMessage(author, message.content)
run: ->
@login_email = process.env.HUBOT_FLOWDOCK_LOGIN_EMAIL
@login_password = PI:PASSWORD:<PASSWORD>END_PI.PI:PASSWORD:<PASSWORD>END_PI
unless @login_email && @login_password
console.error "ERROR: No credentials in environment variables HUBOT_FLOWDOCK_LOGIN_EMAIL and HUBOT_FLOWDOCK_LOGIN_PASSWORD"
@emit "error", "No credentials"
@bot = new flowdock.Session(@login_email, @login_password)
@bot.flows (flows) =>
@flows = flows
for flow in flows
for user in flow.users
data =
id: user.id
name: user.nick
@userForId user.id, data
@connect()
@bot
@emit 'connected'
exports.use = (robot) ->
new Flowdock robot
|
[
{
"context": "###\nSimply Deferred - v.1.1.4\n(c) 2012 Sudhir Jonathan, contact.me@sudhirjonathan.com, MIT Licensed.\nPor",
"end": 54,
"score": 0.9998694658279419,
"start": 39,
"tag": "NAME",
"value": "Sudhir Jonathan"
},
{
"context": "imply Deferred - v.1.1.4\n(c) 2012 Sudhir Jonath... | deferred.coffee | therabidbanana/simply-deferred | 1 | ###
Simply Deferred - v.1.1.4
(c) 2012 Sudhir Jonathan, contact.me@sudhirjonathan.com, MIT Licensed.
Portions of this code are inspired and borrowed from Underscore.js (http://underscorejs.org/) (MIT License)
###
PENDING = "pending"
RESOLVED = "resolved"
REJECTED = "rejected"
has = (obj, prop) -> obj?.hasOwnProperty prop
isArguments = (obj) -> return has(obj, 'length') and has(obj, 'callee')
flatten = (array) ->
return flatten Array.prototype.slice.call(array) if isArguments array
return [array] if not Array.isArray array
return array.reduce (memo, value) ->
return memo.concat flatten value if Array.isArray(value)
memo.push value
return memo
, []
after = (times, func) ->
return func() if times <= 0
return -> func.apply(this, arguments) if --times < 1
wrap = (func, wrapper) ->
return ->
args = [func].concat Array.prototype.slice.call(arguments, 0)
wrapper.apply this, args
execute = (callbacks, args) -> callback args... for callback in flatten callbacks
Deferred = ->
state = PENDING
doneCallbacks = []
failCallbacks = []
alwaysCallbacks = []
closingArguments = {}
@promise = (candidate) ->
candidate = candidate || {}
candidate.state = -> state
storeCallbacks = (shouldExecuteImmediately, holder) ->
return ->
if state is PENDING then holder.push (flatten arguments)...
if shouldExecuteImmediately() then execute arguments, closingArguments
return candidate
pipe = (doneFilter, failFilter)->
new_def = new Deferred()
if doneFilter?
new_done = (args...)->
returned = doneFilter(args...)
if returned.done? && returned.fail?
returned.done?(new_def.resolve).fail?(new_def.reject)
else
new_def.resolve(returned)
candidate.done(new_done)
if doneFilter?
new_fail = (args...)->
returned = failFilter(args...)
if returned.done? && returned.fail?
returned.done?(new_def.resolve).fail?(new_def.reject)
else
new_def.reject(returned)
candidate.fail(new_fail)
new_def.promise()
candidate.done = storeCallbacks((-> state is RESOLVED), doneCallbacks)
candidate.fail = storeCallbacks((-> state is REJECTED), failCallbacks)
candidate.always = storeCallbacks((-> state isnt PENDING), alwaysCallbacks)
candidate.pipe = pipe
candidate.then = pipe
return candidate
@promise this
close = (finalState, callbacks) ->
return ->
if state is PENDING
state = finalState
closingArguments = arguments
execute [callbacks, alwaysCallbacks], closingArguments
return this
@resolve = close RESOLVED, doneCallbacks
@reject = close REJECTED, failCallbacks
return this
_when = ->
trigger = new Deferred()
defs = flatten arguments
finish = after defs.length, trigger.resolve
def.done(finish) for def in defs
trigger.promise()
installInto = (fw) ->
fw.Deferred = -> new Deferred()
fw.ajax = wrap fw.ajax, (ajax, options = {}) ->
def = new Deferred()
createWrapper = (wrapped, finisher) ->
return wrap wrapped, (func, args...) ->
func(args...) if func
finisher(args...)
options.success = createWrapper options.success, def.resolve
options.error = createWrapper options.error, def.reject
ajax(options)
def.promise()
fw.when = _when
if (typeof exports isnt 'undefined')
exports.Deferred = -> new Deferred()
exports.when = _when
exports.installInto = installInto
else
this.Deferred = -> new Deferred();
this.Deferred.when = _when
this.Deferred.installInto = installInto
| 61365 | ###
Simply Deferred - v.1.1.4
(c) 2012 <NAME>, <EMAIL>, MIT Licensed.
Portions of this code are inspired and borrowed from Underscore.js (http://underscorejs.org/) (MIT License)
###
PENDING = "pending"
RESOLVED = "resolved"
REJECTED = "rejected"
has = (obj, prop) -> obj?.hasOwnProperty prop
isArguments = (obj) -> return has(obj, 'length') and has(obj, 'callee')
flatten = (array) ->
return flatten Array.prototype.slice.call(array) if isArguments array
return [array] if not Array.isArray array
return array.reduce (memo, value) ->
return memo.concat flatten value if Array.isArray(value)
memo.push value
return memo
, []
after = (times, func) ->
return func() if times <= 0
return -> func.apply(this, arguments) if --times < 1
wrap = (func, wrapper) ->
return ->
args = [func].concat Array.prototype.slice.call(arguments, 0)
wrapper.apply this, args
execute = (callbacks, args) -> callback args... for callback in flatten callbacks
Deferred = ->
state = PENDING
doneCallbacks = []
failCallbacks = []
alwaysCallbacks = []
closingArguments = {}
@promise = (candidate) ->
candidate = candidate || {}
candidate.state = -> state
storeCallbacks = (shouldExecuteImmediately, holder) ->
return ->
if state is PENDING then holder.push (flatten arguments)...
if shouldExecuteImmediately() then execute arguments, closingArguments
return candidate
pipe = (doneFilter, failFilter)->
new_def = new Deferred()
if doneFilter?
new_done = (args...)->
returned = doneFilter(args...)
if returned.done? && returned.fail?
returned.done?(new_def.resolve).fail?(new_def.reject)
else
new_def.resolve(returned)
candidate.done(new_done)
if doneFilter?
new_fail = (args...)->
returned = failFilter(args...)
if returned.done? && returned.fail?
returned.done?(new_def.resolve).fail?(new_def.reject)
else
new_def.reject(returned)
candidate.fail(new_fail)
new_def.promise()
candidate.done = storeCallbacks((-> state is RESOLVED), doneCallbacks)
candidate.fail = storeCallbacks((-> state is REJECTED), failCallbacks)
candidate.always = storeCallbacks((-> state isnt PENDING), alwaysCallbacks)
candidate.pipe = pipe
candidate.then = pipe
return candidate
@promise this
close = (finalState, callbacks) ->
return ->
if state is PENDING
state = finalState
closingArguments = arguments
execute [callbacks, alwaysCallbacks], closingArguments
return this
@resolve = close RESOLVED, doneCallbacks
@reject = close REJECTED, failCallbacks
return this
_when = ->
trigger = new Deferred()
defs = flatten arguments
finish = after defs.length, trigger.resolve
def.done(finish) for def in defs
trigger.promise()
installInto = (fw) ->
fw.Deferred = -> new Deferred()
fw.ajax = wrap fw.ajax, (ajax, options = {}) ->
def = new Deferred()
createWrapper = (wrapped, finisher) ->
return wrap wrapped, (func, args...) ->
func(args...) if func
finisher(args...)
options.success = createWrapper options.success, def.resolve
options.error = createWrapper options.error, def.reject
ajax(options)
def.promise()
fw.when = _when
if (typeof exports isnt 'undefined')
exports.Deferred = -> new Deferred()
exports.when = _when
exports.installInto = installInto
else
this.Deferred = -> new Deferred();
this.Deferred.when = _when
this.Deferred.installInto = installInto
| true | ###
Simply Deferred - v.1.1.4
(c) 2012 PI:NAME:<NAME>END_PI, PI:EMAIL:<EMAIL>END_PI, MIT Licensed.
Portions of this code are inspired and borrowed from Underscore.js (http://underscorejs.org/) (MIT License)
###
PENDING = "pending"
RESOLVED = "resolved"
REJECTED = "rejected"
has = (obj, prop) -> obj?.hasOwnProperty prop
isArguments = (obj) -> return has(obj, 'length') and has(obj, 'callee')
flatten = (array) ->
return flatten Array.prototype.slice.call(array) if isArguments array
return [array] if not Array.isArray array
return array.reduce (memo, value) ->
return memo.concat flatten value if Array.isArray(value)
memo.push value
return memo
, []
after = (times, func) ->
return func() if times <= 0
return -> func.apply(this, arguments) if --times < 1
wrap = (func, wrapper) ->
return ->
args = [func].concat Array.prototype.slice.call(arguments, 0)
wrapper.apply this, args
execute = (callbacks, args) -> callback args... for callback in flatten callbacks
Deferred = ->
state = PENDING
doneCallbacks = []
failCallbacks = []
alwaysCallbacks = []
closingArguments = {}
@promise = (candidate) ->
candidate = candidate || {}
candidate.state = -> state
storeCallbacks = (shouldExecuteImmediately, holder) ->
return ->
if state is PENDING then holder.push (flatten arguments)...
if shouldExecuteImmediately() then execute arguments, closingArguments
return candidate
pipe = (doneFilter, failFilter)->
new_def = new Deferred()
if doneFilter?
new_done = (args...)->
returned = doneFilter(args...)
if returned.done? && returned.fail?
returned.done?(new_def.resolve).fail?(new_def.reject)
else
new_def.resolve(returned)
candidate.done(new_done)
if doneFilter?
new_fail = (args...)->
returned = failFilter(args...)
if returned.done? && returned.fail?
returned.done?(new_def.resolve).fail?(new_def.reject)
else
new_def.reject(returned)
candidate.fail(new_fail)
new_def.promise()
candidate.done = storeCallbacks((-> state is RESOLVED), doneCallbacks)
candidate.fail = storeCallbacks((-> state is REJECTED), failCallbacks)
candidate.always = storeCallbacks((-> state isnt PENDING), alwaysCallbacks)
candidate.pipe = pipe
candidate.then = pipe
return candidate
@promise this
close = (finalState, callbacks) ->
return ->
if state is PENDING
state = finalState
closingArguments = arguments
execute [callbacks, alwaysCallbacks], closingArguments
return this
@resolve = close RESOLVED, doneCallbacks
@reject = close REJECTED, failCallbacks
return this
_when = ->
trigger = new Deferred()
defs = flatten arguments
finish = after defs.length, trigger.resolve
def.done(finish) for def in defs
trigger.promise()
installInto = (fw) ->
fw.Deferred = -> new Deferred()
fw.ajax = wrap fw.ajax, (ajax, options = {}) ->
def = new Deferred()
createWrapper = (wrapped, finisher) ->
return wrap wrapped, (func, args...) ->
func(args...) if func
finisher(args...)
options.success = createWrapper options.success, def.resolve
options.error = createWrapper options.error, def.reject
ajax(options)
def.promise()
fw.when = _when
if (typeof exports isnt 'undefined')
exports.Deferred = -> new Deferred()
exports.when = _when
exports.installInto = installInto
else
this.Deferred = -> new Deferred();
this.Deferred.when = _when
this.Deferred.installInto = installInto
|
[
{
"context": "###\n# Copyright (c) 2017 Brent Bessemer. All rights reserved.\n#\n# Permission is hereby gr",
"end": 39,
"score": 0.9998510479927063,
"start": 25,
"tag": "NAME",
"value": "Brent Bessemer"
},
{
"context": "HER DEALINGS\n# IN THE SOFTWARE.\n###\n\n###\n# @author Brent Be... | src/serializer.coffee | thestartcup/jsonc | 0 | ###
# Copyright (c) 2017 Brent Bessemer. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
###
###
# @author Brent Bessemer
# created 2017-07-28
###
utf8 = require './utf8'
serialize = (object, classname, classdefs) ->
bytes = []
write_i32 = (i32) ->
bytes.push(i32 & 0xff)
bytes.push((i32 & 0xff00) >>> 8)
bytes.push((i32 & 0xff0000) >>> 16)
bytes.push((i32 & 0xff000000) >>> 24)
write_i16 = (i16) ->
bytes.push(i16 & 0xff)
bytes.push((i16 & 0xff00) >>> 8)
write_i8 = (i8) -> bytes.push(i8 & 0xff)
write_f32 = (float) ->
sign = if float < 0
float *= -1
-0x80000000|0
else 0
log = Math.floor(Math.log2(float))
[mantissa, exponent] = switch
when log < -126 then [(float * Math.pow(2, 23 + 126)) & 0x007fffff, 0]
when log is Infinity then [0, 255]
when log is NaN then [1, 255]
else [(float * Math.pow(2, 23 - log)) | 0, log + 127]
write_i32(sign | (exponent << 23) | mantissa)
write_f64 = (float) ->
sign = if float < 0
float *= -1
-0x80000000|0
else 0
log = Math.floor(Math.log2(float))
[mantissa_f, exponent] = switch
when log < -1022 then [(float * Math.pow(2, 1022)), 0]
when log is Infinity then [1.0, 0x7ff]
when log is NaN then [1.5, 0x7ff]
else [(float * Math.pow(2, -log)), log + 1023]
mantissa_hi = ((mantissa_f - 1) * Math.pow(2, 20)) | 0
# TODO This sort of works, at the cost of limiting precision; unfortunately,
# since JS lacks 64-bit ints, I'm not sure what to do about this. Just
# avoid encoding doubles in JSONC for the time being.
mantissa_lo = 0
write_i32(mantissa_lo)
write_i32(sign | (exponent << 20) | mantissa_hi)
writeArray = (array, writer, maxlen) ->
writer(array[i] ? 0) for i in [0...maxlen]
writeString = (string, maxlen) ->
writeArray(utf8.encode(string), write_i8, maxlen)
writeType = (item, type) ->
[type, arraylen] = type.match(/([^\[]*)\[([0-9]*)\]/)?.slice(1) ? [type, null]
if type is 'char'
writeString(arraylen || 1)
else
writer = switch type
when 'i32', 'int' then write_i32
when 'u16', 'unsigned short' then write_i16
when 'i16', 'short' then write_i16
when 'u8', 'unsigned byte' then write_i8
when 'i8', 'byte' then write_i8
when 'f32', 'float' then write_f32
when 'f64', 'double' then write_f64
else ((item) -> writeClass(item, classdefs[type]))
if (arraylen) then writeArray(item, writer, arraylen) else writer(item)
writeClass = (item, classdef) ->
writeType(item[key], type) for key, type of classdef
writeType(object, classname)
return new Uint8Array(bytes)
module.exports = serialize
| 59250 | ###
# Copyright (c) 2017 <NAME>. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
###
###
# @author <NAME>
# created 2017-07-28
###
utf8 = require './utf8'
serialize = (object, classname, classdefs) ->
bytes = []
write_i32 = (i32) ->
bytes.push(i32 & 0xff)
bytes.push((i32 & 0xff00) >>> 8)
bytes.push((i32 & 0xff0000) >>> 16)
bytes.push((i32 & 0xff000000) >>> 24)
write_i16 = (i16) ->
bytes.push(i16 & 0xff)
bytes.push((i16 & 0xff00) >>> 8)
write_i8 = (i8) -> bytes.push(i8 & 0xff)
write_f32 = (float) ->
sign = if float < 0
float *= -1
-0x80000000|0
else 0
log = Math.floor(Math.log2(float))
[mantissa, exponent] = switch
when log < -126 then [(float * Math.pow(2, 23 + 126)) & 0x007fffff, 0]
when log is Infinity then [0, 255]
when log is NaN then [1, 255]
else [(float * Math.pow(2, 23 - log)) | 0, log + 127]
write_i32(sign | (exponent << 23) | mantissa)
write_f64 = (float) ->
sign = if float < 0
float *= -1
-0x80000000|0
else 0
log = Math.floor(Math.log2(float))
[mantissa_f, exponent] = switch
when log < -1022 then [(float * Math.pow(2, 1022)), 0]
when log is Infinity then [1.0, 0x7ff]
when log is NaN then [1.5, 0x7ff]
else [(float * Math.pow(2, -log)), log + 1023]
mantissa_hi = ((mantissa_f - 1) * Math.pow(2, 20)) | 0
# TODO This sort of works, at the cost of limiting precision; unfortunately,
# since JS lacks 64-bit ints, I'm not sure what to do about this. Just
# avoid encoding doubles in JSONC for the time being.
mantissa_lo = 0
write_i32(mantissa_lo)
write_i32(sign | (exponent << 20) | mantissa_hi)
writeArray = (array, writer, maxlen) ->
writer(array[i] ? 0) for i in [0...maxlen]
writeString = (string, maxlen) ->
writeArray(utf8.encode(string), write_i8, maxlen)
writeType = (item, type) ->
[type, arraylen] = type.match(/([^\[]*)\[([0-9]*)\]/)?.slice(1) ? [type, null]
if type is 'char'
writeString(arraylen || 1)
else
writer = switch type
when 'i32', 'int' then write_i32
when 'u16', 'unsigned short' then write_i16
when 'i16', 'short' then write_i16
when 'u8', 'unsigned byte' then write_i8
when 'i8', 'byte' then write_i8
when 'f32', 'float' then write_f32
when 'f64', 'double' then write_f64
else ((item) -> writeClass(item, classdefs[type]))
if (arraylen) then writeArray(item, writer, arraylen) else writer(item)
writeClass = (item, classdef) ->
writeType(item[key], type) for key, type of classdef
writeType(object, classname)
return new Uint8Array(bytes)
module.exports = serialize
| true | ###
# Copyright (c) 2017 PI:NAME:<NAME>END_PI. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
###
###
# @author PI:NAME:<NAME>END_PI
# created 2017-07-28
###
utf8 = require './utf8'
serialize = (object, classname, classdefs) ->
bytes = []
write_i32 = (i32) ->
bytes.push(i32 & 0xff)
bytes.push((i32 & 0xff00) >>> 8)
bytes.push((i32 & 0xff0000) >>> 16)
bytes.push((i32 & 0xff000000) >>> 24)
write_i16 = (i16) ->
bytes.push(i16 & 0xff)
bytes.push((i16 & 0xff00) >>> 8)
write_i8 = (i8) -> bytes.push(i8 & 0xff)
write_f32 = (float) ->
sign = if float < 0
float *= -1
-0x80000000|0
else 0
log = Math.floor(Math.log2(float))
[mantissa, exponent] = switch
when log < -126 then [(float * Math.pow(2, 23 + 126)) & 0x007fffff, 0]
when log is Infinity then [0, 255]
when log is NaN then [1, 255]
else [(float * Math.pow(2, 23 - log)) | 0, log + 127]
write_i32(sign | (exponent << 23) | mantissa)
write_f64 = (float) ->
sign = if float < 0
float *= -1
-0x80000000|0
else 0
log = Math.floor(Math.log2(float))
[mantissa_f, exponent] = switch
when log < -1022 then [(float * Math.pow(2, 1022)), 0]
when log is Infinity then [1.0, 0x7ff]
when log is NaN then [1.5, 0x7ff]
else [(float * Math.pow(2, -log)), log + 1023]
mantissa_hi = ((mantissa_f - 1) * Math.pow(2, 20)) | 0
# TODO This sort of works, at the cost of limiting precision; unfortunately,
# since JS lacks 64-bit ints, I'm not sure what to do about this. Just
# avoid encoding doubles in JSONC for the time being.
mantissa_lo = 0
write_i32(mantissa_lo)
write_i32(sign | (exponent << 20) | mantissa_hi)
writeArray = (array, writer, maxlen) ->
writer(array[i] ? 0) for i in [0...maxlen]
writeString = (string, maxlen) ->
writeArray(utf8.encode(string), write_i8, maxlen)
writeType = (item, type) ->
[type, arraylen] = type.match(/([^\[]*)\[([0-9]*)\]/)?.slice(1) ? [type, null]
if type is 'char'
writeString(arraylen || 1)
else
writer = switch type
when 'i32', 'int' then write_i32
when 'u16', 'unsigned short' then write_i16
when 'i16', 'short' then write_i16
when 'u8', 'unsigned byte' then write_i8
when 'i8', 'byte' then write_i8
when 'f32', 'float' then write_f32
when 'f64', 'double' then write_f64
else ((item) -> writeClass(item, classdefs[type]))
if (arraylen) then writeArray(item, writer, arraylen) else writer(item)
writeClass = (item, classdef) ->
writeType(item[key], type) for key, type of classdef
writeType(object, classname)
return new Uint8Array(bytes)
module.exports = serialize
|
[
{
"context": "# Copyright 2012 Joshua Carver \n# \n# Licensed under the Apache License, Versio",
"end": 30,
"score": 0.9998671412467957,
"start": 17,
"tag": "NAME",
"value": "Joshua Carver"
}
] | src/coffeescript/charts/bar_chart.coffee | jcarver989/raphy-charts | 5 | # Copyright 2012 Joshua Carver
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# @import base_chart.coffee
# @import point.coffee
# @import scaling.coffee
# @import bar_chart_options.coffee
class BarChart extends BaseChart
constructor: (dom_id, options = {}) ->
super dom_id, new BarChartOptions(options)
@effective_height = @height - @options.y_padding
@bar_options = []
@bars = []
# 0,0 point for scale
@values = []
add: (args) ->
{label, value} = args
@bar_options.push BarChartOptions.merge(@options, args.options)
@values.push value
@bars.push { label: label, value: value}
render_bar: (x_label, y_label, topleft_corner, options) ->
rect = @r.rect(
topleft_corner.x,
topleft_corner.y,
@options.bar_width,
@effective_height - topleft_corner.y,
@options.rounding
)
rect.attr({
"fill" : options.bar_color
"stroke" : "none"
})
new Label(
@r,
topleft_corner.x + @options.bar_width/2,
@height - (@options.x_label_size + 5),
x_label,
"",
@options.x_label_size,
@options.font_family,
@options.x_label_color
).draw()
new Label(
@r,
topleft_corner.x + @options.bar_width/2,
topleft_corner.y - @options.y_label_size - 5,
y_label,
"",
@options.y_label_size,
@options.font_family,
@options.y_label_color
).draw()
clear: () ->
super()
@bars = []
@values = []
draw: ->
points = (new Point(i, value) for value, i in @values)
points.push new Point(0,0)
[max_x, min_x, max_y, min_y] = Scaling.get_ranges_for_points(points)
y_scaler = new Scaler()
.domain([min_y, max_y])
.range([@options.y_padding, @height - @options.y_padding])
# top of chart is 0,0 so need to reflect y axis
y = (i) => @height - y_scaler(i)
for bar, i in @bars
scaled_x = i * (@options.bar_width + @options.bar_spacing) + @options.x_padding
scaled_y = y(points[i].y)
tl_bar_corner = new Point(scaled_x, scaled_y)
@render_bar(bar.label, bar.value, tl_bar_corner, @bar_options[i])
exports.BarChart = BarChart
| 113127 | # Copyright 2012 <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# @import base_chart.coffee
# @import point.coffee
# @import scaling.coffee
# @import bar_chart_options.coffee
class BarChart extends BaseChart
constructor: (dom_id, options = {}) ->
super dom_id, new BarChartOptions(options)
@effective_height = @height - @options.y_padding
@bar_options = []
@bars = []
# 0,0 point for scale
@values = []
add: (args) ->
{label, value} = args
@bar_options.push BarChartOptions.merge(@options, args.options)
@values.push value
@bars.push { label: label, value: value}
render_bar: (x_label, y_label, topleft_corner, options) ->
rect = @r.rect(
topleft_corner.x,
topleft_corner.y,
@options.bar_width,
@effective_height - topleft_corner.y,
@options.rounding
)
rect.attr({
"fill" : options.bar_color
"stroke" : "none"
})
new Label(
@r,
topleft_corner.x + @options.bar_width/2,
@height - (@options.x_label_size + 5),
x_label,
"",
@options.x_label_size,
@options.font_family,
@options.x_label_color
).draw()
new Label(
@r,
topleft_corner.x + @options.bar_width/2,
topleft_corner.y - @options.y_label_size - 5,
y_label,
"",
@options.y_label_size,
@options.font_family,
@options.y_label_color
).draw()
clear: () ->
super()
@bars = []
@values = []
draw: ->
points = (new Point(i, value) for value, i in @values)
points.push new Point(0,0)
[max_x, min_x, max_y, min_y] = Scaling.get_ranges_for_points(points)
y_scaler = new Scaler()
.domain([min_y, max_y])
.range([@options.y_padding, @height - @options.y_padding])
# top of chart is 0,0 so need to reflect y axis
y = (i) => @height - y_scaler(i)
for bar, i in @bars
scaled_x = i * (@options.bar_width + @options.bar_spacing) + @options.x_padding
scaled_y = y(points[i].y)
tl_bar_corner = new Point(scaled_x, scaled_y)
@render_bar(bar.label, bar.value, tl_bar_corner, @bar_options[i])
exports.BarChart = BarChart
| true | # Copyright 2012 PI:NAME:<NAME>END_PI
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# @import base_chart.coffee
# @import point.coffee
# @import scaling.coffee
# @import bar_chart_options.coffee
class BarChart extends BaseChart
constructor: (dom_id, options = {}) ->
super dom_id, new BarChartOptions(options)
@effective_height = @height - @options.y_padding
@bar_options = []
@bars = []
# 0,0 point for scale
@values = []
add: (args) ->
{label, value} = args
@bar_options.push BarChartOptions.merge(@options, args.options)
@values.push value
@bars.push { label: label, value: value}
render_bar: (x_label, y_label, topleft_corner, options) ->
rect = @r.rect(
topleft_corner.x,
topleft_corner.y,
@options.bar_width,
@effective_height - topleft_corner.y,
@options.rounding
)
rect.attr({
"fill" : options.bar_color
"stroke" : "none"
})
new Label(
@r,
topleft_corner.x + @options.bar_width/2,
@height - (@options.x_label_size + 5),
x_label,
"",
@options.x_label_size,
@options.font_family,
@options.x_label_color
).draw()
new Label(
@r,
topleft_corner.x + @options.bar_width/2,
topleft_corner.y - @options.y_label_size - 5,
y_label,
"",
@options.y_label_size,
@options.font_family,
@options.y_label_color
).draw()
clear: () ->
super()
@bars = []
@values = []
draw: ->
points = (new Point(i, value) for value, i in @values)
points.push new Point(0,0)
[max_x, min_x, max_y, min_y] = Scaling.get_ranges_for_points(points)
y_scaler = new Scaler()
.domain([min_y, max_y])
.range([@options.y_padding, @height - @options.y_padding])
# top of chart is 0,0 so need to reflect y axis
y = (i) => @height - y_scaler(i)
for bar, i in @bars
scaled_x = i * (@options.bar_width + @options.bar_spacing) + @options.x_padding
scaled_y = y(points[i].y)
tl_bar_corner = new Point(scaled_x, scaled_y)
@render_bar(bar.label, bar.value, tl_bar_corner, @bar_options[i])
exports.BarChart = BarChart
|
[
{
"context": "UFFS\n CDN = @game.cdn\n # SPRITES\n key = 'atlas'\n texture_url = \"#{CDN}images/atlas.png\"\n a",
"end": 178,
"score": 0.9974468350410461,
"start": 173,
"tag": "KEY",
"value": "atlas"
}
] | src/coffeescripts/game/states/preload.coffee | rongierlach/gunfight-game | 0 | class Preload
constructor: ->
preload: ->
@load.crossOrigin = @game.hosturl unless @game.cdn is '/'
# LOAD STUFFS
CDN = @game.cdn
# SPRITES
key = 'atlas'
texture_url = "#{CDN}images/atlas.png"
atlas_data = require '../constants/atlas.coffee'
@load.atlasJSONHash key, texture_url, null, atlas_data
# SFX
_.each @game.constants.SFX, (sfx) =>
asset = @load.audio sfx,
["#{CDN}audio/#{sfx}.mp3#{@game.version}",
"#{CDN}audio/#{sfx}.ogg#{@game.version}"]
asset.crossOrigin = @load.crossOrigin unless @game.cdn is '/'
update: -> @state.start 'intro'
module.exports = Preload
| 65644 | class Preload
constructor: ->
preload: ->
@load.crossOrigin = @game.hosturl unless @game.cdn is '/'
# LOAD STUFFS
CDN = @game.cdn
# SPRITES
key = '<KEY>'
texture_url = "#{CDN}images/atlas.png"
atlas_data = require '../constants/atlas.coffee'
@load.atlasJSONHash key, texture_url, null, atlas_data
# SFX
_.each @game.constants.SFX, (sfx) =>
asset = @load.audio sfx,
["#{CDN}audio/#{sfx}.mp3#{@game.version}",
"#{CDN}audio/#{sfx}.ogg#{@game.version}"]
asset.crossOrigin = @load.crossOrigin unless @game.cdn is '/'
update: -> @state.start 'intro'
module.exports = Preload
| true | class Preload
constructor: ->
preload: ->
@load.crossOrigin = @game.hosturl unless @game.cdn is '/'
# LOAD STUFFS
CDN = @game.cdn
# SPRITES
key = 'PI:KEY:<KEY>END_PI'
texture_url = "#{CDN}images/atlas.png"
atlas_data = require '../constants/atlas.coffee'
@load.atlasJSONHash key, texture_url, null, atlas_data
# SFX
_.each @game.constants.SFX, (sfx) =>
asset = @load.audio sfx,
["#{CDN}audio/#{sfx}.mp3#{@game.version}",
"#{CDN}audio/#{sfx}.ogg#{@game.version}"]
asset.crossOrigin = @load.crossOrigin unless @game.cdn is '/'
update: -> @state.start 'intro'
module.exports = Preload
|
[
{
"context": "tring = @tabString\n\n\t\t@analytics = new Analytics \"188.166.153.254\", 13337\n\n\tcomplete: ->\n\t\t@completeHandler.complet",
"end": 787,
"score": 0.9997342228889465,
"start": 772,
"tag": "IP_ADDRESS",
"value": "188.166.153.254"
}
] | lib/class-complete.coffee | noahbki/class-complete | 2 |
CompleteHandler = require "./complete-handler.coffee"
Analytics = require "./analytics.coffee"
class Complete
constructor: ->
@completeHandler = new CompleteHandler
@tabString = "\t";
tabLength = atom.config.get("editor.tabLength")
if atom.config.get("editor.tabType") != "hard"
@tabString = ""
i = 0
while i < tabLength
i++
@tabString += " "
# Accepts an object
# "<filetype>": require "./templates/<pathtotemplate>.coffee
@templates =
"js":
"complete":
require "./templates/javascript.coffee"
"fileTypes":
["js"]
"coffee":
"complete":
require "./templates/coffee.coffee"
"fileTypes":
["coffee"]
for template in @templates
template.tabString = @tabString
@analytics = new Analytics "188.166.153.254", 13337
complete: ->
@completeHandler.complete(@)
try
@analytics.addComplete()
catch error
console.log error
activate: ->
console.log "Activated Class Complete!"
atom.commands.add "atom-workspace",
"class-complete:complete": => @complete()
addTemplate: (templateInfo) ->
@templates[templateInfo.name] = templateInfo
console.log "Template added: ", templateInfo
console.log @templates
getTemplates: ->
return @templates
provideClasscomplete: ->
console.log "Providing service"
return @addTemplate.bind(@)
complete = new Complete
module.exports = complete
| 169507 |
CompleteHandler = require "./complete-handler.coffee"
Analytics = require "./analytics.coffee"
class Complete
constructor: ->
@completeHandler = new CompleteHandler
@tabString = "\t";
tabLength = atom.config.get("editor.tabLength")
if atom.config.get("editor.tabType") != "hard"
@tabString = ""
i = 0
while i < tabLength
i++
@tabString += " "
# Accepts an object
# "<filetype>": require "./templates/<pathtotemplate>.coffee
@templates =
"js":
"complete":
require "./templates/javascript.coffee"
"fileTypes":
["js"]
"coffee":
"complete":
require "./templates/coffee.coffee"
"fileTypes":
["coffee"]
for template in @templates
template.tabString = @tabString
@analytics = new Analytics "192.168.3.11", 13337
complete: ->
@completeHandler.complete(@)
try
@analytics.addComplete()
catch error
console.log error
activate: ->
console.log "Activated Class Complete!"
atom.commands.add "atom-workspace",
"class-complete:complete": => @complete()
addTemplate: (templateInfo) ->
@templates[templateInfo.name] = templateInfo
console.log "Template added: ", templateInfo
console.log @templates
getTemplates: ->
return @templates
provideClasscomplete: ->
console.log "Providing service"
return @addTemplate.bind(@)
complete = new Complete
module.exports = complete
| true |
CompleteHandler = require "./complete-handler.coffee"
Analytics = require "./analytics.coffee"
class Complete
constructor: ->
@completeHandler = new CompleteHandler
@tabString = "\t";
tabLength = atom.config.get("editor.tabLength")
if atom.config.get("editor.tabType") != "hard"
@tabString = ""
i = 0
while i < tabLength
i++
@tabString += " "
# Accepts an object
# "<filetype>": require "./templates/<pathtotemplate>.coffee
@templates =
"js":
"complete":
require "./templates/javascript.coffee"
"fileTypes":
["js"]
"coffee":
"complete":
require "./templates/coffee.coffee"
"fileTypes":
["coffee"]
for template in @templates
template.tabString = @tabString
@analytics = new Analytics "PI:IP_ADDRESS:192.168.3.11END_PI", 13337
complete: ->
@completeHandler.complete(@)
try
@analytics.addComplete()
catch error
console.log error
activate: ->
console.log "Activated Class Complete!"
atom.commands.add "atom-workspace",
"class-complete:complete": => @complete()
addTemplate: (templateInfo) ->
@templates[templateInfo.name] = templateInfo
console.log "Template added: ", templateInfo
console.log @templates
getTemplates: ->
return @templates
provideClasscomplete: ->
console.log "Providing service"
return @addTemplate.bind(@)
complete = new Complete
module.exports = complete
|
[
{
"context": " method = {value: option.value, key: option.id, label: \"Email \"+mask.nodeValue}\n\n tmp.i",
"end": 2978,
"score": 0.8254462480545044,
"start": 2976,
"tag": "KEY",
"value": "id"
},
{
"context": "end you the Identification Code?\"\n key: \"ident... | application/chrome/content/wesabe/fi-scripts/com/chase/identification.coffee | wesabe/ssu | 28 | wesabe.provide 'fi-scripts.com.chase.identification',
dispatch: ->
if page.present e.identification.error.noIdentificationCode
delete answers.identificationCode
log.error "Given an identification code when there is none for the account, falling back to getting a new one"
if page.present e.identification.page.info.indicator
# Step 1: Identification Code
if answers.identificationCode
# already have an identification code, so skip the delivery method form
action.jumpToIdentificationCodeEntry()
else
# no identification code yet, just click Next
action.acknowledgeIdentificationRequirement();
else if page.present e.identification.page.contact.indicator
# Step 2: Select Method
action.chooseIdentificationDeliveryMethod()
else if page.present e.identification.page.confirmation.indicator
# Step 3: Confirmation
action.confirmIdentificationCode()
else if page.present e.identification.page.codeEntry.indicator
# Step 4: Enter Code
action.enterIdentificationCode();
else if page.present e.identification.page.legalAgreements.indicator
job.fail 403, 'auth.incomplete.terms'
actions:
acknowledgeIdentificationRequirement: ->
page.click e.identification.continueButton
jumpToIdentificationCodeEntry: ->
page.click e.identification.alreadyHaveIdentificationCodeLink
collectIdentificationCodeDeliveryMethods: ->
tmp.identificationCodeDeliveryMethods = []
log.debug "Collecting phone delivery method options"
phoneContainer = page.find e.identification.contacts.phone.container
if not phoneContainer
log.warn "No phone number container -- maybe failed to find it?"
else
options = page.select e.identification.contacts.option, phoneContainer
log.debug "Found phone delivery options: ", options
options.forEach (option) ->
option = wesabe.untaint(option)
mask = wesabe.untaint(page.findStrict(e.identification.contacts.phone.mask, option))
method = {value: option.value, key: option.id, label: mask.nodeValue}
if option.value.match(/SMS/)
method.label = "Text "+method.label
else
method.label = "Voice "+method.label
tmp.identificationCodeDeliveryMethods.push(method)
log.debug "Collecting email delivery method options"
emailContainer = page.find(e.identification.contacts.email.container)
if not emailContainer
log.warn "No email container -- maybe failed to find it?"
else
options = page.select(e.identification.contacts.option, emailContainer)
log.debug "Found email delivery options: ", options
options.forEach (option) ->
option = wesabe.untaint(option)
mask = wesabe.untaint(page.findStrict(e.identification.contacts.email.mask, option))
method = {value: option.value, key: option.id, label: "Email "+mask.nodeValue}
tmp.identificationCodeDeliveryMethods.push(method)
log.debug "Finished collecting delivery method options: ", tmp.identificationCodeDeliveryMethods
chooseIdentificationDeliveryMethod: ->
if answers.identificationCodeDeliveryMethod
option = page.find(bind(e.identification.contacts.optionTemplate, {value: answers.identificationCodeDeliveryMethod}))
if not option
log.warn "Unrecognized identification code delivery method choice: ", answers.identificationCodeDeliveryMethod
else
log.info "Delivering code via: ", option
page.click option
page.click e.identification.continueButton
return true
log.warn "Could not answer delivery method question, suspending job"
action.collectIdentificationCodeDeliveryMethods()
job.suspend "suspended.missing-answer.auth.identification.delivery-method",
title: "Confirm Your Identity"
header: "Chase needs a one-time Identification Code to confirm that you own the accounts before Wesabe can access them. Once you have the code we'll ask you to enter it on the next screen."
questions: [
type: "choice"
label: "How should Chase send you the Identification Code?"
key: "identificationCodeDeliveryMethod"
persistent: false
choices: tmp.identificationCodeDeliveryMethods
]
confirmIdentificationCode: ->
page.click e.identification.continueButton
enterIdentificationCode: ->
if answers.identificationCode
page.fill e.identification.codeEntry.code.field, answers.identificationCode
page.fill e.identification.codeEntry.password.field, answers.password
page.click e.identification.continueButton
else
log.warn "Could not answer identification code question, suspending job"
job.suspend "suspended.missing-answer.auth.identification.code",
title: "Identification Code"
header: "Please enter the identification code you received from Chase. If you didn't receive an identification code please cancel and try again."
questions: [
type: "number",
label: "Identification Code",
key: "identificationCode",
persistent: false
]
elements:
identification:
page:
info:
indicator: [
'//td[has-class("steptexton")][contains(string(.), "Identification")][not(contains(string(.), "Code"))]'
'//form[@name="frmSSOSecAuthInformation"]'
]
contact:
indicator: [
'//*[has-class("instrtexthead")][contains(string(.), "Get your Identification Code")]'
]
confirmation:
indicator: [
'//form[@name="frmOTPDeliveryModeConfirmation"]'
]
codeEntry:
indicator: [
'//*[has-class("instrtexthead")][contains(string(.), "Enter your Identification Code")]'
]
legalAgreements:
indicator: [
'//td[has-class("steptexton")][contains(string(.), "Legal Agreements")]'
'//form[@name="frmSecureLA"]'
]
contacts:
option: [
'.//input[@type="radio"][@name="rdoDelMethod"]'
]
optionTemplate: [
'//input[@type="radio"][@name="rdoDelMethod"][@value=":value"]'
]
phone:
container: [
'//table[@id="contactTable"]'
]
mask: [
'../preceding-sibling::*[@title]//text()[contains(., "xxx")]'
]
email:
container: [
'//table[@id="emailContactTable"]'
]
mask: [
'../following-sibling::td/text()[contains(., "@")]'
]
alreadyHaveIdentificationCodeLink: [
'//a[@id="ancHavIdentificationCode"]'
]
codeEntry:
code:
field: [
'//input[@type="text"][@name="txtActivationCode"]'
'//form[@name="frmValidateOTP"]//input[@type="text"]'
]
password:
field: [
'//input[@type="password"][@name="txtPassword"]'
'//form[@name="frmValidateOTP"]//input[@type="password"]'
]
error:
noIdentificationCode: [
'//*[has-class("errorText")][contains(string(.), "Select an Identification Code Delivery Method")]'
'//text()[contains(., "Our records show that you do not currently have a valid Identification Code for this account")]'
]
continueButton: [
'//input[@name="NextButton"][@type="submit" or @type="image"]'
]
customerCenter:
tab:
link: [
'//a[contains(@href, "CustomerCenter")][@name="Customer Center"]'
'//td[@title="Go to Customer Center"]//a'
'//td[has-class("tabcustomercenter")]//a'
]
pfmLink: [
'//a[contains(@href, "SelectDownloadMethod")]'
'//a[contains(string(.), "Financial Management Software")]'
]
| 215464 | wesabe.provide 'fi-scripts.com.chase.identification',
dispatch: ->
if page.present e.identification.error.noIdentificationCode
delete answers.identificationCode
log.error "Given an identification code when there is none for the account, falling back to getting a new one"
if page.present e.identification.page.info.indicator
# Step 1: Identification Code
if answers.identificationCode
# already have an identification code, so skip the delivery method form
action.jumpToIdentificationCodeEntry()
else
# no identification code yet, just click Next
action.acknowledgeIdentificationRequirement();
else if page.present e.identification.page.contact.indicator
# Step 2: Select Method
action.chooseIdentificationDeliveryMethod()
else if page.present e.identification.page.confirmation.indicator
# Step 3: Confirmation
action.confirmIdentificationCode()
else if page.present e.identification.page.codeEntry.indicator
# Step 4: Enter Code
action.enterIdentificationCode();
else if page.present e.identification.page.legalAgreements.indicator
job.fail 403, 'auth.incomplete.terms'
actions:
acknowledgeIdentificationRequirement: ->
page.click e.identification.continueButton
jumpToIdentificationCodeEntry: ->
page.click e.identification.alreadyHaveIdentificationCodeLink
collectIdentificationCodeDeliveryMethods: ->
tmp.identificationCodeDeliveryMethods = []
log.debug "Collecting phone delivery method options"
phoneContainer = page.find e.identification.contacts.phone.container
if not phoneContainer
log.warn "No phone number container -- maybe failed to find it?"
else
options = page.select e.identification.contacts.option, phoneContainer
log.debug "Found phone delivery options: ", options
options.forEach (option) ->
option = wesabe.untaint(option)
mask = wesabe.untaint(page.findStrict(e.identification.contacts.phone.mask, option))
method = {value: option.value, key: option.id, label: mask.nodeValue}
if option.value.match(/SMS/)
method.label = "Text "+method.label
else
method.label = "Voice "+method.label
tmp.identificationCodeDeliveryMethods.push(method)
log.debug "Collecting email delivery method options"
emailContainer = page.find(e.identification.contacts.email.container)
if not emailContainer
log.warn "No email container -- maybe failed to find it?"
else
options = page.select(e.identification.contacts.option, emailContainer)
log.debug "Found email delivery options: ", options
options.forEach (option) ->
option = wesabe.untaint(option)
mask = wesabe.untaint(page.findStrict(e.identification.contacts.email.mask, option))
method = {value: option.value, key: option.<KEY>, label: "Email "+mask.nodeValue}
tmp.identificationCodeDeliveryMethods.push(method)
log.debug "Finished collecting delivery method options: ", tmp.identificationCodeDeliveryMethods
chooseIdentificationDeliveryMethod: ->
if answers.identificationCodeDeliveryMethod
option = page.find(bind(e.identification.contacts.optionTemplate, {value: answers.identificationCodeDeliveryMethod}))
if not option
log.warn "Unrecognized identification code delivery method choice: ", answers.identificationCodeDeliveryMethod
else
log.info "Delivering code via: ", option
page.click option
page.click e.identification.continueButton
return true
log.warn "Could not answer delivery method question, suspending job"
action.collectIdentificationCodeDeliveryMethods()
job.suspend "suspended.missing-answer.auth.identification.delivery-method",
title: "Confirm Your Identity"
header: "Chase needs a one-time Identification Code to confirm that you own the accounts before Wesabe can access them. Once you have the code we'll ask you to enter it on the next screen."
questions: [
type: "choice"
label: "How should Chase send you the Identification Code?"
key: "<KEY>"
persistent: false
choices: tmp.identificationCodeDeliveryMethods
]
confirmIdentificationCode: ->
page.click e.identification.continueButton
enterIdentificationCode: ->
if answers.identificationCode
page.fill e.identification.codeEntry.code.field, answers.identificationCode
page.fill e.identification.codeEntry.password.field, answers.password
page.click e.identification.continueButton
else
log.warn "Could not answer identification code question, suspending job"
job.suspend "suspended.missing-answer.auth.identification.code",
title: "Identification Code"
header: "Please enter the identification code you received from Chase. If you didn't receive an identification code please cancel and try again."
questions: [
type: "number",
label: "Identification Code",
key: "identificationCode",
persistent: false
]
elements:
identification:
page:
info:
indicator: [
'//td[has-class("steptexton")][contains(string(.), "Identification")][not(contains(string(.), "Code"))]'
'//form[@name="frmSSOSecAuthInformation"]'
]
contact:
indicator: [
'//*[has-class("instrtexthead")][contains(string(.), "Get your Identification Code")]'
]
confirmation:
indicator: [
'//form[@name="frmOTPDeliveryModeConfirmation"]'
]
codeEntry:
indicator: [
'//*[has-class("instrtexthead")][contains(string(.), "Enter your Identification Code")]'
]
legalAgreements:
indicator: [
'//td[has-class("steptexton")][contains(string(.), "Legal Agreements")]'
'//form[@name="frmSecureLA"]'
]
contacts:
option: [
'.//input[@type="radio"][@name="rdoDelMethod"]'
]
optionTemplate: [
'//input[@type="radio"][@name="rdoDelMethod"][@value=":value"]'
]
phone:
container: [
'//table[@id="contactTable"]'
]
mask: [
'../preceding-sibling::*[@title]//text()[contains(., "xxx")]'
]
email:
container: [
'//table[@id="emailContactTable"]'
]
mask: [
'../following-sibling::td/text()[contains(., "@")]'
]
alreadyHaveIdentificationCodeLink: [
'//a[@id="ancHavIdentificationCode"]'
]
codeEntry:
code:
field: [
'//input[@type="text"][@name="txtActivationCode"]'
'//form[@name="frmValidateOTP"]//input[@type="text"]'
]
password:
field: [
'//input[@type="password"][@name="txtPassword"]'
'//form[@name="frmValidateOTP"]//input[@type="password"]'
]
error:
noIdentificationCode: [
'//*[has-class("errorText")][contains(string(.), "Select an Identification Code Delivery Method")]'
'//text()[contains(., "Our records show that you do not currently have a valid Identification Code for this account")]'
]
continueButton: [
'//input[@name="NextButton"][@type="submit" or @type="image"]'
]
customerCenter:
tab:
link: [
'//a[contains(@href, "CustomerCenter")][@name="Customer Center"]'
'//td[@title="Go to Customer Center"]//a'
'//td[has-class("tabcustomercenter")]//a'
]
pfmLink: [
'//a[contains(@href, "SelectDownloadMethod")]'
'//a[contains(string(.), "Financial Management Software")]'
]
| true | wesabe.provide 'fi-scripts.com.chase.identification',
dispatch: ->
if page.present e.identification.error.noIdentificationCode
delete answers.identificationCode
log.error "Given an identification code when there is none for the account, falling back to getting a new one"
if page.present e.identification.page.info.indicator
# Step 1: Identification Code
if answers.identificationCode
# already have an identification code, so skip the delivery method form
action.jumpToIdentificationCodeEntry()
else
# no identification code yet, just click Next
action.acknowledgeIdentificationRequirement();
else if page.present e.identification.page.contact.indicator
# Step 2: Select Method
action.chooseIdentificationDeliveryMethod()
else if page.present e.identification.page.confirmation.indicator
# Step 3: Confirmation
action.confirmIdentificationCode()
else if page.present e.identification.page.codeEntry.indicator
# Step 4: Enter Code
action.enterIdentificationCode();
else if page.present e.identification.page.legalAgreements.indicator
job.fail 403, 'auth.incomplete.terms'
actions:
acknowledgeIdentificationRequirement: ->
page.click e.identification.continueButton
jumpToIdentificationCodeEntry: ->
page.click e.identification.alreadyHaveIdentificationCodeLink
collectIdentificationCodeDeliveryMethods: ->
tmp.identificationCodeDeliveryMethods = []
log.debug "Collecting phone delivery method options"
phoneContainer = page.find e.identification.contacts.phone.container
if not phoneContainer
log.warn "No phone number container -- maybe failed to find it?"
else
options = page.select e.identification.contacts.option, phoneContainer
log.debug "Found phone delivery options: ", options
options.forEach (option) ->
option = wesabe.untaint(option)
mask = wesabe.untaint(page.findStrict(e.identification.contacts.phone.mask, option))
method = {value: option.value, key: option.id, label: mask.nodeValue}
if option.value.match(/SMS/)
method.label = "Text "+method.label
else
method.label = "Voice "+method.label
tmp.identificationCodeDeliveryMethods.push(method)
log.debug "Collecting email delivery method options"
emailContainer = page.find(e.identification.contacts.email.container)
if not emailContainer
log.warn "No email container -- maybe failed to find it?"
else
options = page.select(e.identification.contacts.option, emailContainer)
log.debug "Found email delivery options: ", options
options.forEach (option) ->
option = wesabe.untaint(option)
mask = wesabe.untaint(page.findStrict(e.identification.contacts.email.mask, option))
method = {value: option.value, key: option.PI:KEY:<KEY>END_PI, label: "Email "+mask.nodeValue}
tmp.identificationCodeDeliveryMethods.push(method)
log.debug "Finished collecting delivery method options: ", tmp.identificationCodeDeliveryMethods
chooseIdentificationDeliveryMethod: ->
if answers.identificationCodeDeliveryMethod
option = page.find(bind(e.identification.contacts.optionTemplate, {value: answers.identificationCodeDeliveryMethod}))
if not option
log.warn "Unrecognized identification code delivery method choice: ", answers.identificationCodeDeliveryMethod
else
log.info "Delivering code via: ", option
page.click option
page.click e.identification.continueButton
return true
log.warn "Could not answer delivery method question, suspending job"
action.collectIdentificationCodeDeliveryMethods()
job.suspend "suspended.missing-answer.auth.identification.delivery-method",
title: "Confirm Your Identity"
header: "Chase needs a one-time Identification Code to confirm that you own the accounts before Wesabe can access them. Once you have the code we'll ask you to enter it on the next screen."
questions: [
type: "choice"
label: "How should Chase send you the Identification Code?"
key: "PI:KEY:<KEY>END_PI"
persistent: false
choices: tmp.identificationCodeDeliveryMethods
]
confirmIdentificationCode: ->
page.click e.identification.continueButton
enterIdentificationCode: ->
if answers.identificationCode
page.fill e.identification.codeEntry.code.field, answers.identificationCode
page.fill e.identification.codeEntry.password.field, answers.password
page.click e.identification.continueButton
else
log.warn "Could not answer identification code question, suspending job"
job.suspend "suspended.missing-answer.auth.identification.code",
title: "Identification Code"
header: "Please enter the identification code you received from Chase. If you didn't receive an identification code please cancel and try again."
questions: [
type: "number",
label: "Identification Code",
key: "identificationCode",
persistent: false
]
elements:
identification:
page:
info:
indicator: [
'//td[has-class("steptexton")][contains(string(.), "Identification")][not(contains(string(.), "Code"))]'
'//form[@name="frmSSOSecAuthInformation"]'
]
contact:
indicator: [
'//*[has-class("instrtexthead")][contains(string(.), "Get your Identification Code")]'
]
confirmation:
indicator: [
'//form[@name="frmOTPDeliveryModeConfirmation"]'
]
codeEntry:
indicator: [
'//*[has-class("instrtexthead")][contains(string(.), "Enter your Identification Code")]'
]
legalAgreements:
indicator: [
'//td[has-class("steptexton")][contains(string(.), "Legal Agreements")]'
'//form[@name="frmSecureLA"]'
]
contacts:
option: [
'.//input[@type="radio"][@name="rdoDelMethod"]'
]
optionTemplate: [
'//input[@type="radio"][@name="rdoDelMethod"][@value=":value"]'
]
phone:
container: [
'//table[@id="contactTable"]'
]
mask: [
'../preceding-sibling::*[@title]//text()[contains(., "xxx")]'
]
email:
container: [
'//table[@id="emailContactTable"]'
]
mask: [
'../following-sibling::td/text()[contains(., "@")]'
]
alreadyHaveIdentificationCodeLink: [
'//a[@id="ancHavIdentificationCode"]'
]
codeEntry:
code:
field: [
'//input[@type="text"][@name="txtActivationCode"]'
'//form[@name="frmValidateOTP"]//input[@type="text"]'
]
password:
field: [
'//input[@type="password"][@name="txtPassword"]'
'//form[@name="frmValidateOTP"]//input[@type="password"]'
]
error:
noIdentificationCode: [
'//*[has-class("errorText")][contains(string(.), "Select an Identification Code Delivery Method")]'
'//text()[contains(., "Our records show that you do not currently have a valid Identification Code for this account")]'
]
continueButton: [
'//input[@name="NextButton"][@type="submit" or @type="image"]'
]
customerCenter:
tab:
link: [
'//a[contains(@href, "CustomerCenter")][@name="Customer Center"]'
'//td[@title="Go to Customer Center"]//a'
'//td[has-class("tabcustomercenter")]//a'
]
pfmLink: [
'//a[contains(@href, "SelectDownloadMethod")]'
'//a[contains(string(.), "Financial Management Software")]'
]
|
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9991677403450012,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-zerolengthbufferbug.coffee | lxe/io.coffee | 0 | # Copyright Joyent, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
# Serving up a zero-length buffer should work.
common = require("../common")
assert = require("assert")
http = require("http")
server = http.createServer((req, res) ->
buffer = new Buffer(0)
# FIXME: WTF gjslint want this?
res.writeHead 200,
"Content-Type": "text/html"
"Content-Length": buffer.length
res.end buffer
return
)
gotResponse = false
resBodySize = 0
server.listen common.PORT, ->
http.get
port: common.PORT
, (res) ->
gotResponse = true
res.on "data", (d) ->
resBodySize += d.length
return
res.on "end", (d) ->
server.close()
return
return
return
process.on "exit", ->
assert.ok gotResponse
assert.equal 0, resBodySize
return
| 103196 | # Copyright <NAME>, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
# Serving up a zero-length buffer should work.
common = require("../common")
assert = require("assert")
http = require("http")
server = http.createServer((req, res) ->
buffer = new Buffer(0)
# FIXME: WTF gjslint want this?
res.writeHead 200,
"Content-Type": "text/html"
"Content-Length": buffer.length
res.end buffer
return
)
gotResponse = false
resBodySize = 0
server.listen common.PORT, ->
http.get
port: common.PORT
, (res) ->
gotResponse = true
res.on "data", (d) ->
resBodySize += d.length
return
res.on "end", (d) ->
server.close()
return
return
return
process.on "exit", ->
assert.ok gotResponse
assert.equal 0, resBodySize
return
| true | # Copyright PI:NAME:<NAME>END_PI, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
# Serving up a zero-length buffer should work.
common = require("../common")
assert = require("assert")
http = require("http")
server = http.createServer((req, res) ->
buffer = new Buffer(0)
# FIXME: WTF gjslint want this?
res.writeHead 200,
"Content-Type": "text/html"
"Content-Length": buffer.length
res.end buffer
return
)
gotResponse = false
resBodySize = 0
server.listen common.PORT, ->
http.get
port: common.PORT
, (res) ->
gotResponse = true
res.on "data", (d) ->
resBodySize += d.length
return
res.on "end", (d) ->
server.close()
return
return
return
process.on "exit", ->
assert.ok gotResponse
assert.equal 0, resBodySize
return
|
[
{
"context": "###\n# Copyright (C) 2014 Andrey Antukh <niwi@niwi.be>\n# Copyright (C) 2014 Jesús Espino ",
"end": 38,
"score": 0.9998871684074402,
"start": 25,
"tag": "NAME",
"value": "Andrey Antukh"
},
{
"context": "###\n# Copyright (C) 2014 Andrey Antukh <niwi@niwi.be>\n# Copyright... | public/taiga-front/app/coffee/modules/taskboard/main.coffee | mabotech/maboss | 0 | ###
# Copyright (C) 2014 Andrey Antukh <niwi@niwi.be>
# Copyright (C) 2014 Jesús Espino Garcia <jespinog@gmail.com>
# Copyright (C) 2014 David Barragán Merino <bameda@dbarragan.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# File: modules/taskboard.coffee
###
taiga = @.taiga
toggleText = @.taiga.toggleText
mixOf = @.taiga.mixOf
groupBy = @.taiga.groupBy
bindOnce = @.taiga.bindOnce
scopeDefer = @.taiga.scopeDefer
timeout = @.taiga.timeout
bindMethods = @.taiga.bindMethods
module = angular.module("taigaTaskboard")
#############################################################################
## Taskboard Controller
#############################################################################
class TaskboardController extends mixOf(taiga.Controller, taiga.PageMixin)
@.$inject = [
"$scope",
"$rootScope",
"$tgRepo",
"$tgConfirm",
"$tgResources",
"$routeParams",
"$q",
"$appTitle",
"$tgLocation",
"$tgNavUrls"
"$tgEvents"
"$tgAnalytics",
"tgLoader"
]
constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @appTitle, @location, @navUrls,
@events, @analytics, tgLoader) ->
bindMethods(@)
@scope.sectionName = "Taskboard"
@.initializeEventHandlers()
promise = @.loadInitialData()
# On Success
promise.then =>
@appTitle.set("Taskboard - " + @scope.project.name)
tgLoader.pageLoaded()
# On Error
promise.then null, @.onInitialDataError.bind(@)
initializeEventHandlers: ->
# TODO: Reload entire taskboard after create/edit tasks seems
# a big overhead. It should be optimized in near future.
@scope.$on "taskform:bulk:success", =>
@.loadTaskboard()
@analytics.trackEvent("task", "create", "bulk create task on taskboard", 1)
@scope.$on "taskform:new:success", =>
@.loadTaskboard()
@analytics.trackEvent("task", "create", "create task on taskboard", 1)
@scope.$on("taskform:edit:success", => @.loadTaskboard())
@scope.$on("taskboard:task:move", @.taskMove)
@scope.$on "assigned-to:added", (ctx, userId, task) =>
task.assigned_to = userId
promise = @repo.save(task)
promise.then null, ->
console.log "FAIL" # TODO
initializeSubscription: ->
routingKey = "changes.project.#{@scope.projectId}.tasks"
@events.subscribe @scope, routingKey, (message) =>
@.loadTaskboard()
routingKey1 = "changes.project.#{@scope.projectId}.userstories"
@events.subscribe @scope, routingKey1, (message) =>
@.refreshTagsColors()
@.loadSprintStats()
@.loadSprint()
loadProject: ->
return @rs.projects.get(@scope.projectId).then (project) =>
@scope.project = project
# Not used at this momment
@scope.pointsList = _.sortBy(project.points, "order")
# @scope.roleList = _.sortBy(project.roles, "order")
@scope.pointsById = groupBy(project.points, (e) -> e.id)
@scope.roleById = groupBy(project.roles, (e) -> e.id)
@scope.taskStatusList = _.sortBy(project.task_statuses, "order")
@scope.usStatusList = _.sortBy(project.us_statuses, "order")
@scope.usStatusById = groupBy(project.us_statuses, (e) -> e.id)
@scope.$emit('project:loaded', project)
return project
loadSprintStats: ->
return @rs.sprints.stats(@scope.projectId, @scope.sprintId).then (stats) =>
totalPointsSum =_.reduce(_.values(stats.total_points), ((res, n) -> res + n), 0)
completedPointsSum = _.reduce(_.values(stats.completed_points), ((res, n) -> res + n), 0)
remainingPointsSum = totalPointsSum - completedPointsSum
remainingTasks = stats.total_tasks - stats.completed_tasks
@scope.stats = stats
@scope.stats.totalPointsSum = totalPointsSum
@scope.stats.completedPointsSum = completedPointsSum
@scope.stats.remainingPointsSum = remainingPointsSum
@scope.stats.remainingTasks = remainingTasks
if stats.totalPointsSum
@scope.stats.completedPercentage = Math.round(100 * stats.completedPointsSum / stats.totalPointsSum)
else
@scope.stats.completedPercentage = 0
@scope.stats.openTasks = stats.total_tasks - stats.completed_tasks
return stats
refreshTagsColors: ->
return @rs.projects.tagsColors(@scope.projectId).then (tags_colors) =>
@scope.project.tags_colors = tags_colors
loadSprint: ->
return @rs.sprints.get(@scope.projectId, @scope.sprintId).then (sprint) =>
@scope.sprint = sprint
@scope.userstories = _.sortBy(sprint.user_stories, "sprint_order")
return sprint
loadTasks: ->
return @rs.tasks.list(@scope.projectId, @scope.sprintId).then (tasks) =>
@scope.tasks = _.sortBy(tasks, 'taskboard_order')
@scope.usTasks = {}
# Iterate over all userstories and
# null userstory for unassigned tasks
for us in _.union(@scope.userstories, [{id:null}])
@scope.usTasks[us.id] = {}
for status in @scope.taskStatusList
@scope.usTasks[us.id][status.id] = []
for task in @scope.tasks
if @scope.usTasks[task.user_story]? and @scope.usTasks[task.user_story][task.status]?
@scope.usTasks[task.user_story][task.status].push(task)
return tasks
loadTaskboard: ->
return @q.all([
@.refreshTagsColors(),
@.loadSprintStats(),
@.loadSprint().then(=> @.loadTasks())
])
loadInitialData: ->
params = {
pslug: @params.pslug
sslug: @params.sslug
}
promise = @repo.resolve(params).then (data) =>
@scope.projectId = data.project
@scope.sprintId = data.milestone
@.initializeSubscription()
return data
return promise.then(=> @.loadProject())
.then(=> @.loadUsersAndRoles())
.then(=> @.loadTaskboard())
refreshTasksOrder: (tasks) ->
items = @.resortTasks(tasks)
data = @.prepareBulkUpdateData(items)
return @rs.tasks.bulkUpdateTaskTaskboardOrder(@scope.project.id, data)
resortTasks: (tasks) ->
items = []
for item, index in tasks
item["taskboard_order"] = index
if item.isModified()
items.push(item)
return items
prepareBulkUpdateData: (uses) ->
return _.map(uses, (x) -> {"task_id": x.id, "order": x["taskboard_order"]})
taskMove: (ctx, task, usId, statusId, order) ->
# Remove task from old position
r = @scope.usTasks[task.user_story][task.status].indexOf(task)
@scope.usTasks[task.user_story][task.status].splice(r, 1)
# Add task to new position
tasks = @scope.usTasks[usId][statusId]
tasks.splice(order, 0, task)
task.user_story = usId
task.status = statusId
task.taskboard_order = order
promise = @repo.save(task)
@rootscope.$broadcast("sprint:task:moved", task)
promise.then =>
@.refreshTasksOrder(tasks)
@.loadSprintStats()
promise.then null, =>
console.log "FAIL TASK SAVE"
## Template actions
addNewTask: (type, us) ->
switch type
when "standard" then @rootscope.$broadcast("taskform:new", @scope.sprintId, us?.id)
when "bulk" then @rootscope.$broadcast("taskform:bulk", @scope.sprintId, us?.id)
editTaskAssignedTo: (task) ->
@rootscope.$broadcast("assigned-to:add", task)
module.controller("TaskboardController", TaskboardController)
#############################################################################
## TaskboardDirective
#############################################################################
TaskboardDirective = ($rootscope) ->
link = ($scope, $el, $attrs) ->
$ctrl = $el.controller()
$el.on "click", ".toggle-analytics-visibility", (event) ->
event.preventDefault()
target = angular.element(event.currentTarget)
target.toggleClass('active');
#toggleText(target, ["Hide statistics", "Show statistics"]) # TODO: i18n
$rootscope.$broadcast("taskboard:graph:toggle-visibility")
tableBodyDom = $el.find(".taskboard-table-body")
tableBodyDom.on "scroll", (event) ->
target = angular.element(event.currentTarget)
tableHeaderDom = $el.find(".taskboard-table-header .taskboard-table-inner")
tableHeaderDom.css("left", -1 * target.scrollLeft())
$scope.$on "$destroy", ->
$el.off()
return {link: link}
module.directive("tgTaskboard", ["$rootScope", TaskboardDirective])
#############################################################################
## Taskboard Task Directive
#############################################################################
TaskboardTaskDirective = ($rootscope) ->
link = ($scope, $el, $attrs, $model) ->
$el.disableSelection()
$scope.$watch "task", (task) ->
if task.is_blocked and not $el.hasClass("blocked")
$el.addClass("blocked")
else if not task.is_blocked and $el.hasClass("blocked")
$el.removeClass("blocked")
$el.find(".icon-edit").on "click", (event) ->
if $el.find('.icon-edit').hasClass('noclick')
return
$scope.$apply ->
$rootscope.$broadcast("taskform:edit", $scope.task)
return {link:link}
module.directive("tgTaskboardTask", ["$rootScope", TaskboardTaskDirective])
#############################################################################
## Taskboard Table Height Fixer Directive
#############################################################################
TaskboardTableHeightFixerDirective = ->
mainPadding = 32 # px
renderSize = ($el) ->
elementOffset = $el.offset().top
windowHeight = angular.element(window).height()
columnHeight = windowHeight - elementOffset - mainPadding
$el.css("height", "#{columnHeight}px")
link = ($scope, $el, $attrs) ->
timeout(500, -> renderSize($el))
$scope.$on "resize", ->
renderSize($el)
return {link:link}
module.directive("tgTaskboardTableHeightFixer", TaskboardTableHeightFixerDirective)
#############################################################################
## Taskboard Squish Column Directive
#############################################################################
TaskboardSquishColumnDirective = (rs) ->
avatarWidth = 40
link = ($scope, $el, $attrs) ->
$scope.$on "sprint:task:moved", () =>
recalculateTaskboardWidth()
bindOnce $scope, "usTasks", (project) ->
$scope.statusesFolded = rs.tasks.getStatusColumnModes($scope.project.id)
$scope.usFolded = rs.tasks.getUsRowModes($scope.project.id, $scope.sprintId)
recalculateTaskboardWidth()
$scope.foldStatus = (status) ->
$scope.statusesFolded[status.id] = !!!$scope.statusesFolded[status.id]
rs.tasks.storeStatusColumnModes($scope.projectId, $scope.statusesFolded)
recalculateTaskboardWidth()
$scope.foldUs = (us) ->
if !us
$scope.usFolded["unassigned"] = !!!$scope.usFolded["unassigned"]
else
$scope.usFolded[us.id] = !!!$scope.usFolded[us.id]
rs.tasks.storeUsRowModes($scope.projectId, $scope.sprintId, $scope.usFolded)
recalculateTaskboardWidth()
getCeilWidth = (usId, statusId) =>
tasks = $scope.usTasks[usId][statusId].length
if $scope.statusesFolded[statusId]
if tasks and $scope.usFolded[usId]
tasksMatrixSize = Math.round(Math.sqrt(tasks))
width = avatarWidth * tasksMatrixSize
else
width = avatarWidth
return width
return 0
setStatusColumnWidth = (statusId, width) =>
column = $el.find(".squish-status-#{statusId}")
if width
column.css('max-width', width)
else
column.css("max-width", 'none')
refreshTaskboardTableWidth = () =>
columnWidths = []
columns = $el.find(".task-colum-name")
columnWidths = _.map columns, (column) ->
return $(column).outerWidth(true)
totalWidth = _.reduce columnWidths, (total, width) ->
return total + width
$el.find('.taskboard-table-inner').css("width", totalWidth)
recalculateStatusColumnWidth = (statusId) =>
statusFoldedWidth = 0
_.forEach $scope.userstories, (us) ->
width = getCeilWidth(us.id, statusId)
statusFoldedWidth = width if width > statusFoldedWidth
setStatusColumnWidth(statusId, statusFoldedWidth)
recalculateTaskboardWidth = () =>
_.forEach $scope.taskStatusList, (status) ->
recalculateStatusColumnWidth(status.id)
refreshTaskboardTableWidth()
return
return {link: link}
module.directive("tgTaskboardSquishColumn", ["$tgResources", TaskboardSquishColumnDirective])
#############################################################################
## Taskboard User Directive
#############################################################################
TaskboardUserDirective = ($log) ->
template = """
<figure class="avatar avatar-assigned-to">
<a href="#" title="Assign task" ng-class="{'not-clickable': !clickable}">
<img ng-src="{{imgurl}}">
</a>
</figure>
<figure class="avatar avatar-task-link">
<a tg-nav="project-tasks-detail:project=project.slug,ref=task.ref" ng-attr-title="{{task.subject}}">
<img ng-src="{{imgurl}}">
</a>
</figure>
""" # TODO: i18n
clickable = false
link = ($scope, $el, $attrs) ->
username_label = $el.parent().find("a.task-assigned")
username_label.on "click", (event) ->
if $el.find('a').hasClass('noclick')
return
$ctrl = $el.controller()
$ctrl.editTaskAssignedTo($scope.task)
$scope.$watch 'task.assigned_to', (assigned_to) ->
user = $scope.usersById[assigned_to]
if user is undefined
_.assign($scope, {name: "Unassigned", imgurl: "/images/unnamed.png", clickable: clickable})
else
_.assign($scope, {name: user.full_name_display, imgurl: user.photo, clickable: clickable})
username_label.text($scope.name)
bindOnce $scope, "project", (project) ->
if project.my_permissions.indexOf("modify_task") > -1
clickable = true
$el.find(".avatar-assigned-to").on "click", (event) =>
if $el.find('a').hasClass('noclick')
return
$ctrl = $el.controller()
$ctrl.editTaskAssignedTo($scope.task)
return {
link: link,
template: template,
scope: {
"usersById": "=users",
"project": "=",
"task": "=",
}
}
module.directive("tgTaskboardUserAvatar", ["$log", TaskboardUserDirective])
| 6102 | ###
# Copyright (C) 2014 <NAME> <<EMAIL>>
# Copyright (C) 2014 <NAME> <<EMAIL>>
# Copyright (C) 2014 <NAME> <<EMAIL>>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# File: modules/taskboard.coffee
###
taiga = @.taiga
toggleText = @.taiga.toggleText
mixOf = @.taiga.mixOf
groupBy = @.taiga.groupBy
bindOnce = @.taiga.bindOnce
scopeDefer = @.taiga.scopeDefer
timeout = @.taiga.timeout
bindMethods = @.taiga.bindMethods
module = angular.module("taigaTaskboard")
#############################################################################
## Taskboard Controller
#############################################################################
class TaskboardController extends mixOf(taiga.Controller, taiga.PageMixin)
@.$inject = [
"$scope",
"$rootScope",
"$tgRepo",
"$tgConfirm",
"$tgResources",
"$routeParams",
"$q",
"$appTitle",
"$tgLocation",
"$tgNavUrls"
"$tgEvents"
"$tgAnalytics",
"tgLoader"
]
constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @appTitle, @location, @navUrls,
@events, @analytics, tgLoader) ->
bindMethods(@)
@scope.sectionName = "Taskboard"
@.initializeEventHandlers()
promise = @.loadInitialData()
# On Success
promise.then =>
@appTitle.set("Taskboard - " + @scope.project.name)
tgLoader.pageLoaded()
# On Error
promise.then null, @.onInitialDataError.bind(@)
initializeEventHandlers: ->
# TODO: Reload entire taskboard after create/edit tasks seems
# a big overhead. It should be optimized in near future.
@scope.$on "taskform:bulk:success", =>
@.loadTaskboard()
@analytics.trackEvent("task", "create", "bulk create task on taskboard", 1)
@scope.$on "taskform:new:success", =>
@.loadTaskboard()
@analytics.trackEvent("task", "create", "create task on taskboard", 1)
@scope.$on("taskform:edit:success", => @.loadTaskboard())
@scope.$on("taskboard:task:move", @.taskMove)
@scope.$on "assigned-to:added", (ctx, userId, task) =>
task.assigned_to = userId
promise = @repo.save(task)
promise.then null, ->
console.log "FAIL" # TODO
initializeSubscription: ->
routingKey = "changes.project.#{@scope.projectId}.tasks"
@events.subscribe @scope, routingKey, (message) =>
@.loadTaskboard()
routingKey1 = "changes.project.#{@scope.projectId}.userstories"
@events.subscribe @scope, routingKey1, (message) =>
@.refreshTagsColors()
@.loadSprintStats()
@.loadSprint()
loadProject: ->
return @rs.projects.get(@scope.projectId).then (project) =>
@scope.project = project
# Not used at this momment
@scope.pointsList = _.sortBy(project.points, "order")
# @scope.roleList = _.sortBy(project.roles, "order")
@scope.pointsById = groupBy(project.points, (e) -> e.id)
@scope.roleById = groupBy(project.roles, (e) -> e.id)
@scope.taskStatusList = _.sortBy(project.task_statuses, "order")
@scope.usStatusList = _.sortBy(project.us_statuses, "order")
@scope.usStatusById = groupBy(project.us_statuses, (e) -> e.id)
@scope.$emit('project:loaded', project)
return project
loadSprintStats: ->
return @rs.sprints.stats(@scope.projectId, @scope.sprintId).then (stats) =>
totalPointsSum =_.reduce(_.values(stats.total_points), ((res, n) -> res + n), 0)
completedPointsSum = _.reduce(_.values(stats.completed_points), ((res, n) -> res + n), 0)
remainingPointsSum = totalPointsSum - completedPointsSum
remainingTasks = stats.total_tasks - stats.completed_tasks
@scope.stats = stats
@scope.stats.totalPointsSum = totalPointsSum
@scope.stats.completedPointsSum = completedPointsSum
@scope.stats.remainingPointsSum = remainingPointsSum
@scope.stats.remainingTasks = remainingTasks
if stats.totalPointsSum
@scope.stats.completedPercentage = Math.round(100 * stats.completedPointsSum / stats.totalPointsSum)
else
@scope.stats.completedPercentage = 0
@scope.stats.openTasks = stats.total_tasks - stats.completed_tasks
return stats
refreshTagsColors: ->
return @rs.projects.tagsColors(@scope.projectId).then (tags_colors) =>
@scope.project.tags_colors = tags_colors
loadSprint: ->
return @rs.sprints.get(@scope.projectId, @scope.sprintId).then (sprint) =>
@scope.sprint = sprint
@scope.userstories = _.sortBy(sprint.user_stories, "sprint_order")
return sprint
loadTasks: ->
return @rs.tasks.list(@scope.projectId, @scope.sprintId).then (tasks) =>
@scope.tasks = _.sortBy(tasks, 'taskboard_order')
@scope.usTasks = {}
# Iterate over all userstories and
# null userstory for unassigned tasks
for us in _.union(@scope.userstories, [{id:null}])
@scope.usTasks[us.id] = {}
for status in @scope.taskStatusList
@scope.usTasks[us.id][status.id] = []
for task in @scope.tasks
if @scope.usTasks[task.user_story]? and @scope.usTasks[task.user_story][task.status]?
@scope.usTasks[task.user_story][task.status].push(task)
return tasks
loadTaskboard: ->
return @q.all([
@.refreshTagsColors(),
@.loadSprintStats(),
@.loadSprint().then(=> @.loadTasks())
])
loadInitialData: ->
params = {
pslug: @params.pslug
sslug: @params.sslug
}
promise = @repo.resolve(params).then (data) =>
@scope.projectId = data.project
@scope.sprintId = data.milestone
@.initializeSubscription()
return data
return promise.then(=> @.loadProject())
.then(=> @.loadUsersAndRoles())
.then(=> @.loadTaskboard())
refreshTasksOrder: (tasks) ->
items = @.resortTasks(tasks)
data = @.prepareBulkUpdateData(items)
return @rs.tasks.bulkUpdateTaskTaskboardOrder(@scope.project.id, data)
resortTasks: (tasks) ->
items = []
for item, index in tasks
item["taskboard_order"] = index
if item.isModified()
items.push(item)
return items
prepareBulkUpdateData: (uses) ->
return _.map(uses, (x) -> {"task_id": x.id, "order": x["taskboard_order"]})
taskMove: (ctx, task, usId, statusId, order) ->
# Remove task from old position
r = @scope.usTasks[task.user_story][task.status].indexOf(task)
@scope.usTasks[task.user_story][task.status].splice(r, 1)
# Add task to new position
tasks = @scope.usTasks[usId][statusId]
tasks.splice(order, 0, task)
task.user_story = usId
task.status = statusId
task.taskboard_order = order
promise = @repo.save(task)
@rootscope.$broadcast("sprint:task:moved", task)
promise.then =>
@.refreshTasksOrder(tasks)
@.loadSprintStats()
promise.then null, =>
console.log "FAIL TASK SAVE"
## Template actions
addNewTask: (type, us) ->
switch type
when "standard" then @rootscope.$broadcast("taskform:new", @scope.sprintId, us?.id)
when "bulk" then @rootscope.$broadcast("taskform:bulk", @scope.sprintId, us?.id)
editTaskAssignedTo: (task) ->
@rootscope.$broadcast("assigned-to:add", task)
module.controller("TaskboardController", TaskboardController)
#############################################################################
## TaskboardDirective
#############################################################################
TaskboardDirective = ($rootscope) ->
link = ($scope, $el, $attrs) ->
$ctrl = $el.controller()
$el.on "click", ".toggle-analytics-visibility", (event) ->
event.preventDefault()
target = angular.element(event.currentTarget)
target.toggleClass('active');
#toggleText(target, ["Hide statistics", "Show statistics"]) # TODO: i18n
$rootscope.$broadcast("taskboard:graph:toggle-visibility")
tableBodyDom = $el.find(".taskboard-table-body")
tableBodyDom.on "scroll", (event) ->
target = angular.element(event.currentTarget)
tableHeaderDom = $el.find(".taskboard-table-header .taskboard-table-inner")
tableHeaderDom.css("left", -1 * target.scrollLeft())
$scope.$on "$destroy", ->
$el.off()
return {link: link}
module.directive("tgTaskboard", ["$rootScope", TaskboardDirective])
#############################################################################
## Taskboard Task Directive
#############################################################################
TaskboardTaskDirective = ($rootscope) ->
link = ($scope, $el, $attrs, $model) ->
$el.disableSelection()
$scope.$watch "task", (task) ->
if task.is_blocked and not $el.hasClass("blocked")
$el.addClass("blocked")
else if not task.is_blocked and $el.hasClass("blocked")
$el.removeClass("blocked")
$el.find(".icon-edit").on "click", (event) ->
if $el.find('.icon-edit').hasClass('noclick')
return
$scope.$apply ->
$rootscope.$broadcast("taskform:edit", $scope.task)
return {link:link}
module.directive("tgTaskboardTask", ["$rootScope", TaskboardTaskDirective])
#############################################################################
## Taskboard Table Height Fixer Directive
#############################################################################
TaskboardTableHeightFixerDirective = ->
mainPadding = 32 # px
renderSize = ($el) ->
elementOffset = $el.offset().top
windowHeight = angular.element(window).height()
columnHeight = windowHeight - elementOffset - mainPadding
$el.css("height", "#{columnHeight}px")
link = ($scope, $el, $attrs) ->
timeout(500, -> renderSize($el))
$scope.$on "resize", ->
renderSize($el)
return {link:link}
module.directive("tgTaskboardTableHeightFixer", TaskboardTableHeightFixerDirective)
#############################################################################
## Taskboard Squish Column Directive
#############################################################################
TaskboardSquishColumnDirective = (rs) ->
avatarWidth = 40
link = ($scope, $el, $attrs) ->
$scope.$on "sprint:task:moved", () =>
recalculateTaskboardWidth()
bindOnce $scope, "usTasks", (project) ->
$scope.statusesFolded = rs.tasks.getStatusColumnModes($scope.project.id)
$scope.usFolded = rs.tasks.getUsRowModes($scope.project.id, $scope.sprintId)
recalculateTaskboardWidth()
$scope.foldStatus = (status) ->
$scope.statusesFolded[status.id] = !!!$scope.statusesFolded[status.id]
rs.tasks.storeStatusColumnModes($scope.projectId, $scope.statusesFolded)
recalculateTaskboardWidth()
$scope.foldUs = (us) ->
if !us
$scope.usFolded["unassigned"] = !!!$scope.usFolded["unassigned"]
else
$scope.usFolded[us.id] = !!!$scope.usFolded[us.id]
rs.tasks.storeUsRowModes($scope.projectId, $scope.sprintId, $scope.usFolded)
recalculateTaskboardWidth()
getCeilWidth = (usId, statusId) =>
tasks = $scope.usTasks[usId][statusId].length
if $scope.statusesFolded[statusId]
if tasks and $scope.usFolded[usId]
tasksMatrixSize = Math.round(Math.sqrt(tasks))
width = avatarWidth * tasksMatrixSize
else
width = avatarWidth
return width
return 0
setStatusColumnWidth = (statusId, width) =>
column = $el.find(".squish-status-#{statusId}")
if width
column.css('max-width', width)
else
column.css("max-width", 'none')
refreshTaskboardTableWidth = () =>
columnWidths = []
columns = $el.find(".task-colum-name")
columnWidths = _.map columns, (column) ->
return $(column).outerWidth(true)
totalWidth = _.reduce columnWidths, (total, width) ->
return total + width
$el.find('.taskboard-table-inner').css("width", totalWidth)
recalculateStatusColumnWidth = (statusId) =>
statusFoldedWidth = 0
_.forEach $scope.userstories, (us) ->
width = getCeilWidth(us.id, statusId)
statusFoldedWidth = width if width > statusFoldedWidth
setStatusColumnWidth(statusId, statusFoldedWidth)
recalculateTaskboardWidth = () =>
_.forEach $scope.taskStatusList, (status) ->
recalculateStatusColumnWidth(status.id)
refreshTaskboardTableWidth()
return
return {link: link}
module.directive("tgTaskboardSquishColumn", ["$tgResources", TaskboardSquishColumnDirective])
#############################################################################
## Taskboard User Directive
#############################################################################
TaskboardUserDirective = ($log) ->
template = """
<figure class="avatar avatar-assigned-to">
<a href="#" title="Assign task" ng-class="{'not-clickable': !clickable}">
<img ng-src="{{imgurl}}">
</a>
</figure>
<figure class="avatar avatar-task-link">
<a tg-nav="project-tasks-detail:project=project.slug,ref=task.ref" ng-attr-title="{{task.subject}}">
<img ng-src="{{imgurl}}">
</a>
</figure>
""" # TODO: i18n
clickable = false
link = ($scope, $el, $attrs) ->
username_label = $el.parent().find("a.task-assigned")
username_label.on "click", (event) ->
if $el.find('a').hasClass('noclick')
return
$ctrl = $el.controller()
$ctrl.editTaskAssignedTo($scope.task)
$scope.$watch 'task.assigned_to', (assigned_to) ->
user = $scope.usersById[assigned_to]
if user is undefined
_.assign($scope, {name: "Unassigned", imgurl: "/images/unnamed.png", clickable: clickable})
else
_.assign($scope, {name: user.full_name_display, imgurl: user.photo, clickable: clickable})
username_label.text($scope.name)
bindOnce $scope, "project", (project) ->
if project.my_permissions.indexOf("modify_task") > -1
clickable = true
$el.find(".avatar-assigned-to").on "click", (event) =>
if $el.find('a').hasClass('noclick')
return
$ctrl = $el.controller()
$ctrl.editTaskAssignedTo($scope.task)
return {
link: link,
template: template,
scope: {
"usersById": "=users",
"project": "=",
"task": "=",
}
}
module.directive("tgTaskboardUserAvatar", ["$log", TaskboardUserDirective])
| true | ###
# Copyright (C) 2014 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
# Copyright (C) 2014 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
# Copyright (C) 2014 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# File: modules/taskboard.coffee
###
taiga = @.taiga
toggleText = @.taiga.toggleText
mixOf = @.taiga.mixOf
groupBy = @.taiga.groupBy
bindOnce = @.taiga.bindOnce
scopeDefer = @.taiga.scopeDefer
timeout = @.taiga.timeout
bindMethods = @.taiga.bindMethods
module = angular.module("taigaTaskboard")
#############################################################################
## Taskboard Controller
#############################################################################
class TaskboardController extends mixOf(taiga.Controller, taiga.PageMixin)
@.$inject = [
"$scope",
"$rootScope",
"$tgRepo",
"$tgConfirm",
"$tgResources",
"$routeParams",
"$q",
"$appTitle",
"$tgLocation",
"$tgNavUrls"
"$tgEvents"
"$tgAnalytics",
"tgLoader"
]
constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @appTitle, @location, @navUrls,
@events, @analytics, tgLoader) ->
bindMethods(@)
@scope.sectionName = "Taskboard"
@.initializeEventHandlers()
promise = @.loadInitialData()
# On Success
promise.then =>
@appTitle.set("Taskboard - " + @scope.project.name)
tgLoader.pageLoaded()
# On Error
promise.then null, @.onInitialDataError.bind(@)
initializeEventHandlers: ->
# TODO: Reload entire taskboard after create/edit tasks seems
# a big overhead. It should be optimized in near future.
@scope.$on "taskform:bulk:success", =>
@.loadTaskboard()
@analytics.trackEvent("task", "create", "bulk create task on taskboard", 1)
@scope.$on "taskform:new:success", =>
@.loadTaskboard()
@analytics.trackEvent("task", "create", "create task on taskboard", 1)
@scope.$on("taskform:edit:success", => @.loadTaskboard())
@scope.$on("taskboard:task:move", @.taskMove)
@scope.$on "assigned-to:added", (ctx, userId, task) =>
task.assigned_to = userId
promise = @repo.save(task)
promise.then null, ->
console.log "FAIL" # TODO
initializeSubscription: ->
routingKey = "changes.project.#{@scope.projectId}.tasks"
@events.subscribe @scope, routingKey, (message) =>
@.loadTaskboard()
routingKey1 = "changes.project.#{@scope.projectId}.userstories"
@events.subscribe @scope, routingKey1, (message) =>
@.refreshTagsColors()
@.loadSprintStats()
@.loadSprint()
loadProject: ->
return @rs.projects.get(@scope.projectId).then (project) =>
@scope.project = project
# Not used at this momment
@scope.pointsList = _.sortBy(project.points, "order")
# @scope.roleList = _.sortBy(project.roles, "order")
@scope.pointsById = groupBy(project.points, (e) -> e.id)
@scope.roleById = groupBy(project.roles, (e) -> e.id)
@scope.taskStatusList = _.sortBy(project.task_statuses, "order")
@scope.usStatusList = _.sortBy(project.us_statuses, "order")
@scope.usStatusById = groupBy(project.us_statuses, (e) -> e.id)
@scope.$emit('project:loaded', project)
return project
loadSprintStats: ->
return @rs.sprints.stats(@scope.projectId, @scope.sprintId).then (stats) =>
totalPointsSum =_.reduce(_.values(stats.total_points), ((res, n) -> res + n), 0)
completedPointsSum = _.reduce(_.values(stats.completed_points), ((res, n) -> res + n), 0)
remainingPointsSum = totalPointsSum - completedPointsSum
remainingTasks = stats.total_tasks - stats.completed_tasks
@scope.stats = stats
@scope.stats.totalPointsSum = totalPointsSum
@scope.stats.completedPointsSum = completedPointsSum
@scope.stats.remainingPointsSum = remainingPointsSum
@scope.stats.remainingTasks = remainingTasks
if stats.totalPointsSum
@scope.stats.completedPercentage = Math.round(100 * stats.completedPointsSum / stats.totalPointsSum)
else
@scope.stats.completedPercentage = 0
@scope.stats.openTasks = stats.total_tasks - stats.completed_tasks
return stats
refreshTagsColors: ->
return @rs.projects.tagsColors(@scope.projectId).then (tags_colors) =>
@scope.project.tags_colors = tags_colors
loadSprint: ->
return @rs.sprints.get(@scope.projectId, @scope.sprintId).then (sprint) =>
@scope.sprint = sprint
@scope.userstories = _.sortBy(sprint.user_stories, "sprint_order")
return sprint
loadTasks: ->
return @rs.tasks.list(@scope.projectId, @scope.sprintId).then (tasks) =>
@scope.tasks = _.sortBy(tasks, 'taskboard_order')
@scope.usTasks = {}
# Iterate over all userstories and
# null userstory for unassigned tasks
for us in _.union(@scope.userstories, [{id:null}])
@scope.usTasks[us.id] = {}
for status in @scope.taskStatusList
@scope.usTasks[us.id][status.id] = []
for task in @scope.tasks
if @scope.usTasks[task.user_story]? and @scope.usTasks[task.user_story][task.status]?
@scope.usTasks[task.user_story][task.status].push(task)
return tasks
loadTaskboard: ->
return @q.all([
@.refreshTagsColors(),
@.loadSprintStats(),
@.loadSprint().then(=> @.loadTasks())
])
loadInitialData: ->
params = {
pslug: @params.pslug
sslug: @params.sslug
}
promise = @repo.resolve(params).then (data) =>
@scope.projectId = data.project
@scope.sprintId = data.milestone
@.initializeSubscription()
return data
return promise.then(=> @.loadProject())
.then(=> @.loadUsersAndRoles())
.then(=> @.loadTaskboard())
refreshTasksOrder: (tasks) ->
items = @.resortTasks(tasks)
data = @.prepareBulkUpdateData(items)
return @rs.tasks.bulkUpdateTaskTaskboardOrder(@scope.project.id, data)
resortTasks: (tasks) ->
items = []
for item, index in tasks
item["taskboard_order"] = index
if item.isModified()
items.push(item)
return items
prepareBulkUpdateData: (uses) ->
return _.map(uses, (x) -> {"task_id": x.id, "order": x["taskboard_order"]})
taskMove: (ctx, task, usId, statusId, order) ->
# Remove task from old position
r = @scope.usTasks[task.user_story][task.status].indexOf(task)
@scope.usTasks[task.user_story][task.status].splice(r, 1)
# Add task to new position
tasks = @scope.usTasks[usId][statusId]
tasks.splice(order, 0, task)
task.user_story = usId
task.status = statusId
task.taskboard_order = order
promise = @repo.save(task)
@rootscope.$broadcast("sprint:task:moved", task)
promise.then =>
@.refreshTasksOrder(tasks)
@.loadSprintStats()
promise.then null, =>
console.log "FAIL TASK SAVE"
## Template actions
addNewTask: (type, us) ->
switch type
when "standard" then @rootscope.$broadcast("taskform:new", @scope.sprintId, us?.id)
when "bulk" then @rootscope.$broadcast("taskform:bulk", @scope.sprintId, us?.id)
editTaskAssignedTo: (task) ->
@rootscope.$broadcast("assigned-to:add", task)
module.controller("TaskboardController", TaskboardController)
#############################################################################
## TaskboardDirective
#############################################################################
TaskboardDirective = ($rootscope) ->
link = ($scope, $el, $attrs) ->
$ctrl = $el.controller()
$el.on "click", ".toggle-analytics-visibility", (event) ->
event.preventDefault()
target = angular.element(event.currentTarget)
target.toggleClass('active');
#toggleText(target, ["Hide statistics", "Show statistics"]) # TODO: i18n
$rootscope.$broadcast("taskboard:graph:toggle-visibility")
tableBodyDom = $el.find(".taskboard-table-body")
tableBodyDom.on "scroll", (event) ->
target = angular.element(event.currentTarget)
tableHeaderDom = $el.find(".taskboard-table-header .taskboard-table-inner")
tableHeaderDom.css("left", -1 * target.scrollLeft())
$scope.$on "$destroy", ->
$el.off()
return {link: link}
module.directive("tgTaskboard", ["$rootScope", TaskboardDirective])
#############################################################################
## Taskboard Task Directive
#############################################################################
TaskboardTaskDirective = ($rootscope) ->
link = ($scope, $el, $attrs, $model) ->
$el.disableSelection()
$scope.$watch "task", (task) ->
if task.is_blocked and not $el.hasClass("blocked")
$el.addClass("blocked")
else if not task.is_blocked and $el.hasClass("blocked")
$el.removeClass("blocked")
$el.find(".icon-edit").on "click", (event) ->
if $el.find('.icon-edit').hasClass('noclick')
return
$scope.$apply ->
$rootscope.$broadcast("taskform:edit", $scope.task)
return {link:link}
module.directive("tgTaskboardTask", ["$rootScope", TaskboardTaskDirective])
#############################################################################
## Taskboard Table Height Fixer Directive
#############################################################################
TaskboardTableHeightFixerDirective = ->
mainPadding = 32 # px
renderSize = ($el) ->
elementOffset = $el.offset().top
windowHeight = angular.element(window).height()
columnHeight = windowHeight - elementOffset - mainPadding
$el.css("height", "#{columnHeight}px")
link = ($scope, $el, $attrs) ->
timeout(500, -> renderSize($el))
$scope.$on "resize", ->
renderSize($el)
return {link:link}
module.directive("tgTaskboardTableHeightFixer", TaskboardTableHeightFixerDirective)
#############################################################################
## Taskboard Squish Column Directive
#############################################################################
TaskboardSquishColumnDirective = (rs) ->
avatarWidth = 40
link = ($scope, $el, $attrs) ->
$scope.$on "sprint:task:moved", () =>
recalculateTaskboardWidth()
bindOnce $scope, "usTasks", (project) ->
$scope.statusesFolded = rs.tasks.getStatusColumnModes($scope.project.id)
$scope.usFolded = rs.tasks.getUsRowModes($scope.project.id, $scope.sprintId)
recalculateTaskboardWidth()
$scope.foldStatus = (status) ->
$scope.statusesFolded[status.id] = !!!$scope.statusesFolded[status.id]
rs.tasks.storeStatusColumnModes($scope.projectId, $scope.statusesFolded)
recalculateTaskboardWidth()
$scope.foldUs = (us) ->
if !us
$scope.usFolded["unassigned"] = !!!$scope.usFolded["unassigned"]
else
$scope.usFolded[us.id] = !!!$scope.usFolded[us.id]
rs.tasks.storeUsRowModes($scope.projectId, $scope.sprintId, $scope.usFolded)
recalculateTaskboardWidth()
getCeilWidth = (usId, statusId) =>
tasks = $scope.usTasks[usId][statusId].length
if $scope.statusesFolded[statusId]
if tasks and $scope.usFolded[usId]
tasksMatrixSize = Math.round(Math.sqrt(tasks))
width = avatarWidth * tasksMatrixSize
else
width = avatarWidth
return width
return 0
setStatusColumnWidth = (statusId, width) =>
column = $el.find(".squish-status-#{statusId}")
if width
column.css('max-width', width)
else
column.css("max-width", 'none')
refreshTaskboardTableWidth = () =>
columnWidths = []
columns = $el.find(".task-colum-name")
columnWidths = _.map columns, (column) ->
return $(column).outerWidth(true)
totalWidth = _.reduce columnWidths, (total, width) ->
return total + width
$el.find('.taskboard-table-inner').css("width", totalWidth)
recalculateStatusColumnWidth = (statusId) =>
statusFoldedWidth = 0
_.forEach $scope.userstories, (us) ->
width = getCeilWidth(us.id, statusId)
statusFoldedWidth = width if width > statusFoldedWidth
setStatusColumnWidth(statusId, statusFoldedWidth)
recalculateTaskboardWidth = () =>
_.forEach $scope.taskStatusList, (status) ->
recalculateStatusColumnWidth(status.id)
refreshTaskboardTableWidth()
return
return {link: link}
module.directive("tgTaskboardSquishColumn", ["$tgResources", TaskboardSquishColumnDirective])
#############################################################################
## Taskboard User Directive
#############################################################################
TaskboardUserDirective = ($log) ->
template = """
<figure class="avatar avatar-assigned-to">
<a href="#" title="Assign task" ng-class="{'not-clickable': !clickable}">
<img ng-src="{{imgurl}}">
</a>
</figure>
<figure class="avatar avatar-task-link">
<a tg-nav="project-tasks-detail:project=project.slug,ref=task.ref" ng-attr-title="{{task.subject}}">
<img ng-src="{{imgurl}}">
</a>
</figure>
""" # TODO: i18n
clickable = false
link = ($scope, $el, $attrs) ->
username_label = $el.parent().find("a.task-assigned")
username_label.on "click", (event) ->
if $el.find('a').hasClass('noclick')
return
$ctrl = $el.controller()
$ctrl.editTaskAssignedTo($scope.task)
$scope.$watch 'task.assigned_to', (assigned_to) ->
user = $scope.usersById[assigned_to]
if user is undefined
_.assign($scope, {name: "Unassigned", imgurl: "/images/unnamed.png", clickable: clickable})
else
_.assign($scope, {name: user.full_name_display, imgurl: user.photo, clickable: clickable})
username_label.text($scope.name)
bindOnce $scope, "project", (project) ->
if project.my_permissions.indexOf("modify_task") > -1
clickable = true
$el.find(".avatar-assigned-to").on "click", (event) =>
if $el.find('a').hasClass('noclick')
return
$ctrl = $el.controller()
$ctrl.editTaskAssignedTo($scope.task)
return {
link: link,
template: template,
scope: {
"usersById": "=users",
"project": "=",
"task": "=",
}
}
module.directive("tgTaskboardUserAvatar", ["$log", TaskboardUserDirective])
|
[
{
"context": " handler = remote.createFunctionWithReturnValue 'valar morghulis'\n protocol.registerProtocol 'atom-string', h",
"end": 1255,
"score": 0.9911267757415771,
"start": 1240,
"tag": "NAME",
"value": "valar morghulis"
},
{
"context": "gJob should send string', (done) ->... | spec/api-protocol-spec.coffee | fireball-x/atom-shell | 4 | assert = require 'assert'
ipc = require 'ipc'
path = require 'path'
remote = require 'remote'
protocol = remote.require 'protocol'
describe 'protocol module', ->
describe 'protocol.registerProtocol', ->
it 'throws error when scheme is already registered', (done) ->
register = -> protocol.registerProtocol('test1', ->)
protocol.once 'registered', (event, scheme) ->
assert.equal scheme, 'test1'
assert.throws register, /The scheme is already registered/
protocol.unregisterProtocol 'test1'
done()
register()
it 'calls the callback when scheme is visited', (done) ->
protocol.registerProtocol 'test2', (request) ->
assert.equal request.url, 'test2://test2'
protocol.unregisterProtocol 'test2'
done()
$.get 'test2://test2', ->
describe 'protocol.unregisterProtocol', ->
it 'throws error when scheme does not exist', ->
unregister = -> protocol.unregisterProtocol 'test3'
assert.throws unregister, /The scheme has not been registered/
describe 'registered protocol callback', ->
it 'returns string should send the string as request content', (done) ->
handler = remote.createFunctionWithReturnValue 'valar morghulis'
protocol.registerProtocol 'atom-string', handler
$.ajax
url: 'atom-string://fake-host'
success: (data) ->
assert.equal data, handler()
protocol.unregisterProtocol 'atom-string'
done()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
protocol.unregisterProtocol 'atom-string'
it 'returns RequestStringJob should send string', (done) ->
data = 'valar morghulis'
job = new protocol.RequestStringJob(mimeType: 'text/html', data: data)
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-string-job', handler
$.ajax
url: 'atom-string-job://fake-host'
success: (response) ->
assert.equal response, data
protocol.unregisterProtocol 'atom-string-job'
done()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
protocol.unregisterProtocol 'atom-string-job'
it 'returns RequestErrorJob should send error', (done) ->
data = 'valar morghulis'
job = new protocol.RequestErrorJob(-6)
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-error-job', handler
$.ajax
url: 'atom-error-job://fake-host'
success: (response) ->
assert false, 'should not reach here'
error: (xhr, errorType, error) ->
assert errorType, 'error'
protocol.unregisterProtocol 'atom-error-job'
done()
it 'returns RequestBufferJob should send buffer', (done) ->
data = new Buffer("hello")
job = new protocol.RequestBufferJob(data: data)
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-buffer-job', handler
$.ajax
url: 'atom-buffer-job://fake-host'
success: (response) ->
assert.equal response.length, data.length
buf = new Buffer(response.length)
buf.write(response)
assert buf.equals(data)
protocol.unregisterProtocol 'atom-buffer-job'
done()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
protocol.unregisterProtocol 'atom-buffer-job'
it 'returns RequestFileJob should send file', (done) ->
job = new protocol.RequestFileJob(__filename)
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-file-job', handler
$.ajax
url: 'atom-file-job://' + __filename
success: (data) ->
content = require('fs').readFileSync __filename
assert.equal data, String(content)
protocol.unregisterProtocol 'atom-file-job'
done()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
protocol.unregisterProtocol 'atom-file-job'
it 'returns RequestFileJob should send file from asar archive', (done) ->
p = path.join __dirname, 'fixtures', 'asar', 'a.asar', 'file1'
job = new protocol.RequestFileJob(p)
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-file-job', handler
$.ajax
url: 'atom-file-job://' + p
success: (data) ->
content = require('fs').readFileSync(p)
assert.equal data, String(content)
protocol.unregisterProtocol 'atom-file-job'
done()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
protocol.unregisterProtocol 'atom-file-job'
it 'returns RequestFileJob should send file from asar archive with unpacked file', (done) ->
p = path.join __dirname, 'fixtures', 'asar', 'unpack.asar', 'a.txt'
job = new protocol.RequestFileJob(p)
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-file-job', handler
$.ajax
url: 'atom-file-job://' + p
success: (response) ->
data = require('fs').readFileSync(p)
assert.equal response.length, data.length
buf = new Buffer(response.length)
buf.write(response)
assert buf.equals(data)
protocol.unregisterProtocol 'atom-file-job'
done()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
protocol.unregisterProtocol 'atom-file-job'
describe 'protocol.isHandledProtocol', ->
it 'returns true if the scheme can be handled', ->
assert.equal protocol.isHandledProtocol('file'), true
assert.equal protocol.isHandledProtocol('http'), true
assert.equal protocol.isHandledProtocol('https'), true
assert.equal protocol.isHandledProtocol('atom'), false
describe 'protocol.interceptProtocol', ->
it 'throws error when scheme is not a registered one', ->
register = -> protocol.interceptProtocol('test-intercept', ->)
assert.throws register, /Scheme does not exist/
it 'throws error when scheme is a custom protocol', (done) ->
protocol.once 'unregistered', (event, scheme) ->
assert.equal scheme, 'atom'
done()
protocol.once 'registered', (event, scheme) ->
assert.equal scheme, 'atom'
register = -> protocol.interceptProtocol('test-intercept', ->)
assert.throws register, /Scheme does not exist/
protocol.unregisterProtocol scheme
protocol.registerProtocol('atom', ->)
it 'returns original job when callback returns nothing', (done) ->
targetScheme = 'file'
protocol.once 'intercepted', (event, scheme) ->
assert.equal scheme, targetScheme
free = -> protocol.uninterceptProtocol targetScheme
$.ajax
url: "#{targetScheme}://#{__filename}",
success: ->
protocol.once 'unintercepted', (event, scheme) ->
assert.equal scheme, targetScheme
done()
free()
error: (xhr, errorType, error) ->
free()
assert false, 'Got error: ' + errorType + ' ' + error
protocol.interceptProtocol targetScheme, (request) ->
if process.platform is 'win32'
pathInUrl = path.normalize request.url.substr(8)
assert.equal pathInUrl.toLowerCase(), __filename.toLowerCase()
else
assert.equal request.url, "#{targetScheme}://#{__filename}"
it 'can override original protocol handler', (done) ->
handler = remote.createFunctionWithReturnValue 'valar morghulis'
protocol.once 'intercepted', ->
free = -> protocol.uninterceptProtocol 'file'
$.ajax
url: 'file://fake-host'
success: (data) ->
protocol.once 'unintercepted', ->
assert.equal data, handler()
done()
free()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
free()
protocol.interceptProtocol 'file', handler
it 'can override http protocol handler', (done) ->
handler = remote.createFunctionWithReturnValue 'valar morghulis'
protocol.once 'intercepted', ->
protocol.uninterceptProtocol 'http'
done()
protocol.interceptProtocol 'http', handler
it 'can override https protocol handler', (done) ->
handler = remote.createFunctionWithReturnValue 'valar morghulis'
protocol.once 'intercepted', ->
protocol.uninterceptProtocol 'https'
done()
protocol.interceptProtocol 'https', handler
it 'can override ws protocol handler', (done) ->
handler = remote.createFunctionWithReturnValue 'valar morghulis'
protocol.once 'intercepted', ->
protocol.uninterceptProtocol 'ws'
done()
protocol.interceptProtocol 'ws', handler
it 'can override wss protocol handler', (done) ->
handler = remote.createFunctionWithReturnValue 'valar morghulis'
protocol.once 'intercepted', ->
protocol.uninterceptProtocol 'wss'
done()
protocol.interceptProtocol 'wss', handler
| 82783 | assert = require 'assert'
ipc = require 'ipc'
path = require 'path'
remote = require 'remote'
protocol = remote.require 'protocol'
describe 'protocol module', ->
describe 'protocol.registerProtocol', ->
it 'throws error when scheme is already registered', (done) ->
register = -> protocol.registerProtocol('test1', ->)
protocol.once 'registered', (event, scheme) ->
assert.equal scheme, 'test1'
assert.throws register, /The scheme is already registered/
protocol.unregisterProtocol 'test1'
done()
register()
it 'calls the callback when scheme is visited', (done) ->
protocol.registerProtocol 'test2', (request) ->
assert.equal request.url, 'test2://test2'
protocol.unregisterProtocol 'test2'
done()
$.get 'test2://test2', ->
describe 'protocol.unregisterProtocol', ->
it 'throws error when scheme does not exist', ->
unregister = -> protocol.unregisterProtocol 'test3'
assert.throws unregister, /The scheme has not been registered/
describe 'registered protocol callback', ->
it 'returns string should send the string as request content', (done) ->
handler = remote.createFunctionWithReturnValue '<NAME>'
protocol.registerProtocol 'atom-string', handler
$.ajax
url: 'atom-string://fake-host'
success: (data) ->
assert.equal data, handler()
protocol.unregisterProtocol 'atom-string'
done()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
protocol.unregisterProtocol 'atom-string'
it 'returns RequestStringJob should send string', (done) ->
data = '<NAME>'
job = new protocol.RequestStringJob(mimeType: 'text/html', data: data)
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-string-job', handler
$.ajax
url: 'atom-string-job://fake-host'
success: (response) ->
assert.equal response, data
protocol.unregisterProtocol 'atom-string-job'
done()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
protocol.unregisterProtocol 'atom-string-job'
it 'returns RequestErrorJob should send error', (done) ->
data = '<NAME>'
job = new protocol.RequestErrorJob(-6)
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-error-job', handler
$.ajax
url: 'atom-error-job://fake-host'
success: (response) ->
assert false, 'should not reach here'
error: (xhr, errorType, error) ->
assert errorType, 'error'
protocol.unregisterProtocol 'atom-error-job'
done()
it 'returns RequestBufferJob should send buffer', (done) ->
data = new Buffer("hello")
job = new protocol.RequestBufferJob(data: data)
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-buffer-job', handler
$.ajax
url: 'atom-buffer-job://fake-host'
success: (response) ->
assert.equal response.length, data.length
buf = new Buffer(response.length)
buf.write(response)
assert buf.equals(data)
protocol.unregisterProtocol 'atom-buffer-job'
done()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
protocol.unregisterProtocol 'atom-buffer-job'
it 'returns RequestFileJob should send file', (done) ->
job = new protocol.RequestFileJob(__filename)
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-file-job', handler
$.ajax
url: 'atom-file-job://' + __filename
success: (data) ->
content = require('fs').readFileSync __filename
assert.equal data, String(content)
protocol.unregisterProtocol 'atom-file-job'
done()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
protocol.unregisterProtocol 'atom-file-job'
it 'returns RequestFileJob should send file from asar archive', (done) ->
p = path.join __dirname, 'fixtures', 'asar', 'a.asar', 'file1'
job = new protocol.RequestFileJob(p)
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-file-job', handler
$.ajax
url: 'atom-file-job://' + p
success: (data) ->
content = require('fs').readFileSync(p)
assert.equal data, String(content)
protocol.unregisterProtocol 'atom-file-job'
done()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
protocol.unregisterProtocol 'atom-file-job'
it 'returns RequestFileJob should send file from asar archive with unpacked file', (done) ->
p = path.join __dirname, 'fixtures', 'asar', 'unpack.asar', 'a.txt'
job = new protocol.RequestFileJob(p)
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-file-job', handler
$.ajax
url: 'atom-file-job://' + p
success: (response) ->
data = require('fs').readFileSync(p)
assert.equal response.length, data.length
buf = new Buffer(response.length)
buf.write(response)
assert buf.equals(data)
protocol.unregisterProtocol 'atom-file-job'
done()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
protocol.unregisterProtocol 'atom-file-job'
describe 'protocol.isHandledProtocol', ->
it 'returns true if the scheme can be handled', ->
assert.equal protocol.isHandledProtocol('file'), true
assert.equal protocol.isHandledProtocol('http'), true
assert.equal protocol.isHandledProtocol('https'), true
assert.equal protocol.isHandledProtocol('atom'), false
describe 'protocol.interceptProtocol', ->
it 'throws error when scheme is not a registered one', ->
register = -> protocol.interceptProtocol('test-intercept', ->)
assert.throws register, /Scheme does not exist/
it 'throws error when scheme is a custom protocol', (done) ->
protocol.once 'unregistered', (event, scheme) ->
assert.equal scheme, 'atom'
done()
protocol.once 'registered', (event, scheme) ->
assert.equal scheme, 'atom'
register = -> protocol.interceptProtocol('test-intercept', ->)
assert.throws register, /Scheme does not exist/
protocol.unregisterProtocol scheme
protocol.registerProtocol('atom', ->)
it 'returns original job when callback returns nothing', (done) ->
targetScheme = 'file'
protocol.once 'intercepted', (event, scheme) ->
assert.equal scheme, targetScheme
free = -> protocol.uninterceptProtocol targetScheme
$.ajax
url: "#{targetScheme}://#{__filename}",
success: ->
protocol.once 'unintercepted', (event, scheme) ->
assert.equal scheme, targetScheme
done()
free()
error: (xhr, errorType, error) ->
free()
assert false, 'Got error: ' + errorType + ' ' + error
protocol.interceptProtocol targetScheme, (request) ->
if process.platform is 'win32'
pathInUrl = path.normalize request.url.substr(8)
assert.equal pathInUrl.toLowerCase(), __filename.toLowerCase()
else
assert.equal request.url, "#{targetScheme}://#{__filename}"
it 'can override original protocol handler', (done) ->
handler = remote.createFunctionWithReturnValue '<NAME>'
protocol.once 'intercepted', ->
free = -> protocol.uninterceptProtocol 'file'
$.ajax
url: 'file://fake-host'
success: (data) ->
protocol.once 'unintercepted', ->
assert.equal data, handler()
done()
free()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
free()
protocol.interceptProtocol 'file', handler
it 'can override http protocol handler', (done) ->
handler = remote.createFunctionWithReturnValue '<NAME>'
protocol.once 'intercepted', ->
protocol.uninterceptProtocol 'http'
done()
protocol.interceptProtocol 'http', handler
it 'can override https protocol handler', (done) ->
handler = remote.createFunctionWithReturnValue '<NAME> m<NAME>'
protocol.once 'intercepted', ->
protocol.uninterceptProtocol 'https'
done()
protocol.interceptProtocol 'https', handler
it 'can override ws protocol handler', (done) ->
handler = remote.createFunctionWithReturnValue '<NAME>'
protocol.once 'intercepted', ->
protocol.uninterceptProtocol 'ws'
done()
protocol.interceptProtocol 'ws', handler
it 'can override wss protocol handler', (done) ->
handler = remote.createFunctionWithReturnValue '<NAME>'
protocol.once 'intercepted', ->
protocol.uninterceptProtocol 'wss'
done()
protocol.interceptProtocol 'wss', handler
| true | assert = require 'assert'
ipc = require 'ipc'
path = require 'path'
remote = require 'remote'
protocol = remote.require 'protocol'
describe 'protocol module', ->
describe 'protocol.registerProtocol', ->
it 'throws error when scheme is already registered', (done) ->
register = -> protocol.registerProtocol('test1', ->)
protocol.once 'registered', (event, scheme) ->
assert.equal scheme, 'test1'
assert.throws register, /The scheme is already registered/
protocol.unregisterProtocol 'test1'
done()
register()
it 'calls the callback when scheme is visited', (done) ->
protocol.registerProtocol 'test2', (request) ->
assert.equal request.url, 'test2://test2'
protocol.unregisterProtocol 'test2'
done()
$.get 'test2://test2', ->
describe 'protocol.unregisterProtocol', ->
it 'throws error when scheme does not exist', ->
unregister = -> protocol.unregisterProtocol 'test3'
assert.throws unregister, /The scheme has not been registered/
describe 'registered protocol callback', ->
it 'returns string should send the string as request content', (done) ->
handler = remote.createFunctionWithReturnValue 'PI:NAME:<NAME>END_PI'
protocol.registerProtocol 'atom-string', handler
$.ajax
url: 'atom-string://fake-host'
success: (data) ->
assert.equal data, handler()
protocol.unregisterProtocol 'atom-string'
done()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
protocol.unregisterProtocol 'atom-string'
it 'returns RequestStringJob should send string', (done) ->
data = 'PI:NAME:<NAME>END_PI'
job = new protocol.RequestStringJob(mimeType: 'text/html', data: data)
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-string-job', handler
$.ajax
url: 'atom-string-job://fake-host'
success: (response) ->
assert.equal response, data
protocol.unregisterProtocol 'atom-string-job'
done()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
protocol.unregisterProtocol 'atom-string-job'
it 'returns RequestErrorJob should send error', (done) ->
data = 'PI:NAME:<NAME>END_PI'
job = new protocol.RequestErrorJob(-6)
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-error-job', handler
$.ajax
url: 'atom-error-job://fake-host'
success: (response) ->
assert false, 'should not reach here'
error: (xhr, errorType, error) ->
assert errorType, 'error'
protocol.unregisterProtocol 'atom-error-job'
done()
it 'returns RequestBufferJob should send buffer', (done) ->
data = new Buffer("hello")
job = new protocol.RequestBufferJob(data: data)
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-buffer-job', handler
$.ajax
url: 'atom-buffer-job://fake-host'
success: (response) ->
assert.equal response.length, data.length
buf = new Buffer(response.length)
buf.write(response)
assert buf.equals(data)
protocol.unregisterProtocol 'atom-buffer-job'
done()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
protocol.unregisterProtocol 'atom-buffer-job'
it 'returns RequestFileJob should send file', (done) ->
job = new protocol.RequestFileJob(__filename)
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-file-job', handler
$.ajax
url: 'atom-file-job://' + __filename
success: (data) ->
content = require('fs').readFileSync __filename
assert.equal data, String(content)
protocol.unregisterProtocol 'atom-file-job'
done()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
protocol.unregisterProtocol 'atom-file-job'
it 'returns RequestFileJob should send file from asar archive', (done) ->
p = path.join __dirname, 'fixtures', 'asar', 'a.asar', 'file1'
job = new protocol.RequestFileJob(p)
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-file-job', handler
$.ajax
url: 'atom-file-job://' + p
success: (data) ->
content = require('fs').readFileSync(p)
assert.equal data, String(content)
protocol.unregisterProtocol 'atom-file-job'
done()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
protocol.unregisterProtocol 'atom-file-job'
it 'returns RequestFileJob should send file from asar archive with unpacked file', (done) ->
p = path.join __dirname, 'fixtures', 'asar', 'unpack.asar', 'a.txt'
job = new protocol.RequestFileJob(p)
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-file-job', handler
$.ajax
url: 'atom-file-job://' + p
success: (response) ->
data = require('fs').readFileSync(p)
assert.equal response.length, data.length
buf = new Buffer(response.length)
buf.write(response)
assert buf.equals(data)
protocol.unregisterProtocol 'atom-file-job'
done()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
protocol.unregisterProtocol 'atom-file-job'
describe 'protocol.isHandledProtocol', ->
it 'returns true if the scheme can be handled', ->
assert.equal protocol.isHandledProtocol('file'), true
assert.equal protocol.isHandledProtocol('http'), true
assert.equal protocol.isHandledProtocol('https'), true
assert.equal protocol.isHandledProtocol('atom'), false
describe 'protocol.interceptProtocol', ->
it 'throws error when scheme is not a registered one', ->
register = -> protocol.interceptProtocol('test-intercept', ->)
assert.throws register, /Scheme does not exist/
it 'throws error when scheme is a custom protocol', (done) ->
protocol.once 'unregistered', (event, scheme) ->
assert.equal scheme, 'atom'
done()
protocol.once 'registered', (event, scheme) ->
assert.equal scheme, 'atom'
register = -> protocol.interceptProtocol('test-intercept', ->)
assert.throws register, /Scheme does not exist/
protocol.unregisterProtocol scheme
protocol.registerProtocol('atom', ->)
it 'returns original job when callback returns nothing', (done) ->
targetScheme = 'file'
protocol.once 'intercepted', (event, scheme) ->
assert.equal scheme, targetScheme
free = -> protocol.uninterceptProtocol targetScheme
$.ajax
url: "#{targetScheme}://#{__filename}",
success: ->
protocol.once 'unintercepted', (event, scheme) ->
assert.equal scheme, targetScheme
done()
free()
error: (xhr, errorType, error) ->
free()
assert false, 'Got error: ' + errorType + ' ' + error
protocol.interceptProtocol targetScheme, (request) ->
if process.platform is 'win32'
pathInUrl = path.normalize request.url.substr(8)
assert.equal pathInUrl.toLowerCase(), __filename.toLowerCase()
else
assert.equal request.url, "#{targetScheme}://#{__filename}"
it 'can override original protocol handler', (done) ->
handler = remote.createFunctionWithReturnValue 'PI:NAME:<NAME>END_PI'
protocol.once 'intercepted', ->
free = -> protocol.uninterceptProtocol 'file'
$.ajax
url: 'file://fake-host'
success: (data) ->
protocol.once 'unintercepted', ->
assert.equal data, handler()
done()
free()
error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error
free()
protocol.interceptProtocol 'file', handler
it 'can override http protocol handler', (done) ->
handler = remote.createFunctionWithReturnValue 'PI:NAME:<NAME>END_PI'
protocol.once 'intercepted', ->
protocol.uninterceptProtocol 'http'
done()
protocol.interceptProtocol 'http', handler
it 'can override https protocol handler', (done) ->
handler = remote.createFunctionWithReturnValue 'PI:NAME:<NAME>END_PI mPI:NAME:<NAME>END_PI'
protocol.once 'intercepted', ->
protocol.uninterceptProtocol 'https'
done()
protocol.interceptProtocol 'https', handler
it 'can override ws protocol handler', (done) ->
handler = remote.createFunctionWithReturnValue 'PI:NAME:<NAME>END_PI'
protocol.once 'intercepted', ->
protocol.uninterceptProtocol 'ws'
done()
protocol.interceptProtocol 'ws', handler
it 'can override wss protocol handler', (done) ->
handler = remote.createFunctionWithReturnValue 'PI:NAME:<NAME>END_PI'
protocol.once 'intercepted', ->
protocol.uninterceptProtocol 'wss'
done()
protocol.interceptProtocol 'wss', handler
|
[
{
"context": "s.opt 'header', 'Add a new header', default: 'X-Shakespeare'\n\n expect(_.has @opts.getShortOpts(), 'a').t",
"end": 1863,
"score": 0.988172709941864,
"start": 1854,
"tag": "NAME",
"value": "akespeare"
}
] | spec/options.spec.coffee | relistan/troll-opt | 2 | Options = require('../src/troll').Options
_ = require('underscore')
describe 'Options', ->
describe 'without a shorthand defined', ->
beforeEach ->
@opts = new Options()
@opts.opt 'header', 'Add a new header', default: 'X-Shakespeare'
it 'finds the correct shorthand option flag', ->
expect(_.has @opts.getShortOpts(), 'h').toBe true
it 'adds the correct longhand option flag', ->
expect(_.has @opts.getParsedOpts(), 'header').toBe true
it 'correctly builds the options', ->
expect(@opts.getParsedOpts().header.default).toEqual 'X-Shakespeare'
expect(@opts.getParsedOpts().header.short).toEqual 'h'
describe 'with a shorthand defined', ->
beforeEach ->
@opts = new Options()
@opts.opt 'header', 'Add a new header', short: 'F', default: 'X-Shakespeare'
it 'assigns the correct shorthand option flag', ->
expect(_.has(@opts.getShortOpts(), 'F')).toBe true
describe 'with collisions in shorthand opts', ->
beforeEach ->
@opts = new Options()
it 'capitalizes the character if the lower case is not available', ->
@opts.getShortOpts().h = 'foo'
@opts.opt 'header', 'Add a new header', default: 'X-Shakespeare'
expect(_.has @opts.getShortOpts(), 'H').toBe true
it 'finds the next available character when the first is not available', ->
@opts.getShortOpts().h = 'foo'
@opts.getShortOpts().H = 'foo'
@opts.opt 'header', 'Add a new header', default: 'X-Shakespeare'
expect(_.has @opts.getShortOpts(), 'e').toBe true
it 'tries multiple options when earlier options are not available', ->
@opts.getShortOpts().h = 'foo'
@opts.getShortOpts().H = 'foo'
@opts.getShortOpts().e = 'foo'
@opts.getShortOpts().E = 'foo'
@opts.opt 'header', 'Add a new header', default: 'X-Shakespeare'
expect(_.has @opts.getShortOpts(), 'a').toBe true
describe 'handles required arguments', ->
it 'detects required opts', ->
opts = new Options()
opts.opt 'header', 'Add a header', type: 'string', required: 'true'
expect(_.contains(opts.requiredOpts, 'header')).toBe true
expect(_.contains(opts.requiredOpts, 'asdf')).toBe false
describe 'validates the passed arguments', ->
beforeEach ->
@opts = new Options()
it 'requires an argument if type is defined', ->
@opts.opt 'header', 'Add a header', type: 'string'
expect(@opts.getParsedOpts().header.takesValue).toBe true
it 'does not require an argument if type is undefined and default is a boolean', ->
@opts.opt 'silent', 'Enable silent mode', default: false
expect(@opts.getParsedOpts().silent.takesValue).toBe false
it 'requires an argument if type is undefined and default is not a boolean', ->
@opts.opt 'header', 'Add a header', default: 'X-Something'
expect(@opts.getParsedOpts().header.takesValue).toBe true
it 'sets the right type based on the provided default', ->
@opts.opt 'header', 'Add a header', default: 'X-Something'
expect(@opts.getParsedOpts().header.type).toEqual 'string'
@opts.opt 'silent', 'Enable silent mode', default: false
expect(@opts.getParsedOpts().silent.type).toEqual 'boolean'
it 'set the type to boolean when neither type nor default are set', ->
@opts.opt 'header', 'Add a header', required: true
expect(@opts.getParsedOpts().header.type).toEqual 'boolean'
it 'raises when the type was set and a default was provided', ->
expect( =>
@opts.opt 'header', 'Add a header', default: 'X-Something', type: 'string'
).toThrow('type defined when default was provided')
it 'raises when no options are set', ->
expect( => @opts.opt 'header', 'Add a header' ).toThrow('No options were set')
it 'raises when unknown settings are passed', ->
expect( => @opts.opt 'header', 'Add a header', type: 'boolean', asdf: true ).toThrow(
'Unrecognized options \'asdf\'')
it 'raises when default and required are both specified', ->
expect( => @opts.opt 'header', 'Add a header',
default: 'asdf', required: true).toThrow(
'Can\'t define both default and required on \'header\'')
it 'raises when an invalid type is specified', ->
expect( => @opts.opt 'header', 'Add one', type: 'asdf' ).toThrow('Invalid type: asdf')
describe 'usage banners', ->
it 'can store a text argument', ->
opts = new Options()
banner = 'This is the banner'
opts.banner banner
expect(opts.getBanner()).toEqual " #{banner}"
| 169425 | Options = require('../src/troll').Options
_ = require('underscore')
describe 'Options', ->
describe 'without a shorthand defined', ->
beforeEach ->
@opts = new Options()
@opts.opt 'header', 'Add a new header', default: 'X-Shakespeare'
it 'finds the correct shorthand option flag', ->
expect(_.has @opts.getShortOpts(), 'h').toBe true
it 'adds the correct longhand option flag', ->
expect(_.has @opts.getParsedOpts(), 'header').toBe true
it 'correctly builds the options', ->
expect(@opts.getParsedOpts().header.default).toEqual 'X-Shakespeare'
expect(@opts.getParsedOpts().header.short).toEqual 'h'
describe 'with a shorthand defined', ->
beforeEach ->
@opts = new Options()
@opts.opt 'header', 'Add a new header', short: 'F', default: 'X-Shakespeare'
it 'assigns the correct shorthand option flag', ->
expect(_.has(@opts.getShortOpts(), 'F')).toBe true
describe 'with collisions in shorthand opts', ->
beforeEach ->
@opts = new Options()
it 'capitalizes the character if the lower case is not available', ->
@opts.getShortOpts().h = 'foo'
@opts.opt 'header', 'Add a new header', default: 'X-Shakespeare'
expect(_.has @opts.getShortOpts(), 'H').toBe true
it 'finds the next available character when the first is not available', ->
@opts.getShortOpts().h = 'foo'
@opts.getShortOpts().H = 'foo'
@opts.opt 'header', 'Add a new header', default: 'X-Shakespeare'
expect(_.has @opts.getShortOpts(), 'e').toBe true
it 'tries multiple options when earlier options are not available', ->
@opts.getShortOpts().h = 'foo'
@opts.getShortOpts().H = 'foo'
@opts.getShortOpts().e = 'foo'
@opts.getShortOpts().E = 'foo'
@opts.opt 'header', 'Add a new header', default: 'X-Sh<NAME>'
expect(_.has @opts.getShortOpts(), 'a').toBe true
describe 'handles required arguments', ->
it 'detects required opts', ->
opts = new Options()
opts.opt 'header', 'Add a header', type: 'string', required: 'true'
expect(_.contains(opts.requiredOpts, 'header')).toBe true
expect(_.contains(opts.requiredOpts, 'asdf')).toBe false
describe 'validates the passed arguments', ->
beforeEach ->
@opts = new Options()
it 'requires an argument if type is defined', ->
@opts.opt 'header', 'Add a header', type: 'string'
expect(@opts.getParsedOpts().header.takesValue).toBe true
it 'does not require an argument if type is undefined and default is a boolean', ->
@opts.opt 'silent', 'Enable silent mode', default: false
expect(@opts.getParsedOpts().silent.takesValue).toBe false
it 'requires an argument if type is undefined and default is not a boolean', ->
@opts.opt 'header', 'Add a header', default: 'X-Something'
expect(@opts.getParsedOpts().header.takesValue).toBe true
it 'sets the right type based on the provided default', ->
@opts.opt 'header', 'Add a header', default: 'X-Something'
expect(@opts.getParsedOpts().header.type).toEqual 'string'
@opts.opt 'silent', 'Enable silent mode', default: false
expect(@opts.getParsedOpts().silent.type).toEqual 'boolean'
it 'set the type to boolean when neither type nor default are set', ->
@opts.opt 'header', 'Add a header', required: true
expect(@opts.getParsedOpts().header.type).toEqual 'boolean'
it 'raises when the type was set and a default was provided', ->
expect( =>
@opts.opt 'header', 'Add a header', default: 'X-Something', type: 'string'
).toThrow('type defined when default was provided')
it 'raises when no options are set', ->
expect( => @opts.opt 'header', 'Add a header' ).toThrow('No options were set')
it 'raises when unknown settings are passed', ->
expect( => @opts.opt 'header', 'Add a header', type: 'boolean', asdf: true ).toThrow(
'Unrecognized options \'asdf\'')
it 'raises when default and required are both specified', ->
expect( => @opts.opt 'header', 'Add a header',
default: 'asdf', required: true).toThrow(
'Can\'t define both default and required on \'header\'')
it 'raises when an invalid type is specified', ->
expect( => @opts.opt 'header', 'Add one', type: 'asdf' ).toThrow('Invalid type: asdf')
describe 'usage banners', ->
it 'can store a text argument', ->
opts = new Options()
banner = 'This is the banner'
opts.banner banner
expect(opts.getBanner()).toEqual " #{banner}"
| true | Options = require('../src/troll').Options
_ = require('underscore')
describe 'Options', ->
describe 'without a shorthand defined', ->
beforeEach ->
@opts = new Options()
@opts.opt 'header', 'Add a new header', default: 'X-Shakespeare'
it 'finds the correct shorthand option flag', ->
expect(_.has @opts.getShortOpts(), 'h').toBe true
it 'adds the correct longhand option flag', ->
expect(_.has @opts.getParsedOpts(), 'header').toBe true
it 'correctly builds the options', ->
expect(@opts.getParsedOpts().header.default).toEqual 'X-Shakespeare'
expect(@opts.getParsedOpts().header.short).toEqual 'h'
describe 'with a shorthand defined', ->
beforeEach ->
@opts = new Options()
@opts.opt 'header', 'Add a new header', short: 'F', default: 'X-Shakespeare'
it 'assigns the correct shorthand option flag', ->
expect(_.has(@opts.getShortOpts(), 'F')).toBe true
describe 'with collisions in shorthand opts', ->
beforeEach ->
@opts = new Options()
it 'capitalizes the character if the lower case is not available', ->
@opts.getShortOpts().h = 'foo'
@opts.opt 'header', 'Add a new header', default: 'X-Shakespeare'
expect(_.has @opts.getShortOpts(), 'H').toBe true
it 'finds the next available character when the first is not available', ->
@opts.getShortOpts().h = 'foo'
@opts.getShortOpts().H = 'foo'
@opts.opt 'header', 'Add a new header', default: 'X-Shakespeare'
expect(_.has @opts.getShortOpts(), 'e').toBe true
it 'tries multiple options when earlier options are not available', ->
@opts.getShortOpts().h = 'foo'
@opts.getShortOpts().H = 'foo'
@opts.getShortOpts().e = 'foo'
@opts.getShortOpts().E = 'foo'
@opts.opt 'header', 'Add a new header', default: 'X-ShPI:NAME:<NAME>END_PI'
expect(_.has @opts.getShortOpts(), 'a').toBe true
describe 'handles required arguments', ->
it 'detects required opts', ->
opts = new Options()
opts.opt 'header', 'Add a header', type: 'string', required: 'true'
expect(_.contains(opts.requiredOpts, 'header')).toBe true
expect(_.contains(opts.requiredOpts, 'asdf')).toBe false
describe 'validates the passed arguments', ->
beforeEach ->
@opts = new Options()
it 'requires an argument if type is defined', ->
@opts.opt 'header', 'Add a header', type: 'string'
expect(@opts.getParsedOpts().header.takesValue).toBe true
it 'does not require an argument if type is undefined and default is a boolean', ->
@opts.opt 'silent', 'Enable silent mode', default: false
expect(@opts.getParsedOpts().silent.takesValue).toBe false
it 'requires an argument if type is undefined and default is not a boolean', ->
@opts.opt 'header', 'Add a header', default: 'X-Something'
expect(@opts.getParsedOpts().header.takesValue).toBe true
it 'sets the right type based on the provided default', ->
@opts.opt 'header', 'Add a header', default: 'X-Something'
expect(@opts.getParsedOpts().header.type).toEqual 'string'
@opts.opt 'silent', 'Enable silent mode', default: false
expect(@opts.getParsedOpts().silent.type).toEqual 'boolean'
it 'set the type to boolean when neither type nor default are set', ->
@opts.opt 'header', 'Add a header', required: true
expect(@opts.getParsedOpts().header.type).toEqual 'boolean'
it 'raises when the type was set and a default was provided', ->
expect( =>
@opts.opt 'header', 'Add a header', default: 'X-Something', type: 'string'
).toThrow('type defined when default was provided')
it 'raises when no options are set', ->
expect( => @opts.opt 'header', 'Add a header' ).toThrow('No options were set')
it 'raises when unknown settings are passed', ->
expect( => @opts.opt 'header', 'Add a header', type: 'boolean', asdf: true ).toThrow(
'Unrecognized options \'asdf\'')
it 'raises when default and required are both specified', ->
expect( => @opts.opt 'header', 'Add a header',
default: 'asdf', required: true).toThrow(
'Can\'t define both default and required on \'header\'')
it 'raises when an invalid type is specified', ->
expect( => @opts.opt 'header', 'Add one', type: 'asdf' ).toThrow('Invalid type: asdf')
describe 'usage banners', ->
it 'can store a text argument', ->
opts = new Options()
banner = 'This is the banner'
opts.banner banner
expect(opts.getBanner()).toEqual " #{banner}"
|
[
{
"context": "ototype.addEdge = ( edge ) ->\n\t\tkey = edge.from['_nid']\n\t\tunless key of @edges\n\t\t\t@edges[key] = []\n\t\t@e",
"end": 911,
"score": 0.7402870059013367,
"start": 908,
"tag": "KEY",
"value": "nid"
},
{
"context": "{}\n\t\t\topen = [@start]\n\t\t\tfrom = {}\n\n\t\t... | coffeescript/Graphs.coffee | AndersDJohnson/pathfinder-demo | 2 | if typeof @define isnt 'function'
@define = require('amdefine')(module)
@define( (require) ->
Edge = ( from = null, to = null, cost = 1 ) ->
@from = from
@to = to
#@cost = cost
@
Node = ( name = '', cost = 1, x = NaN, y = NaN ) ->
@name = name
@visited = false
@x = x
@y = y
@cost = cost
@
Node.prototype.visit = () ->
@visited = true
Graph = () ->
@_nid = 0
@nodes = {}
@edges = {}
@
Graph.prototype.numNodes = () ->
n = 0
for own k,v in @nodes
++n
return n
Graph.prototype.addNode = ( node ) ->
node['_nid'] = ''+(@_nid++)
@nodes[node.name] = node
node
Graph.prototype.addNodes = ( nodes ) ->
for node in nodes
@addNode node
Graph.prototype.getNode = ( name ) ->
if name of @nodes
return @nodes[name]
else return null
Graph.prototype.getNodes = () ->
@nodes
Graph.prototype.addEdge = ( edge ) ->
key = edge.from['_nid']
unless key of @edges
@edges[key] = []
@edges[key].push edge
Graph.prototype.addEdges = ( edges ) ->
for edge in edges
@addEdge edge
Graph.prototype.getEdges = ( node = null ) ->
if node is null
return @edges
else
return @edges[node['_nid']]
nameNode = (i,j) ->
return i + ',' + j
graph_from_grid = ( grid ) ->
graph = new Graph()
for row, i in grid
for cell, j in row
if cell isnt -1
fromName = nameNode(i,j)
fromNode = graph.getNode fromName
if fromNode is null
fromNode = new Node fromName, cell, j, i
graph.addNode fromNode
for adj in [[i-1, j], [i+1, j], [i, j-1], [i, j+1]]
i2 = adj[0]
j2 = adj[1]
continue if i2 < 0 or i2 > grid.length - 1 or j2 < 0 or j2 > row.length - 1
continue if grid[i2][j2] < 0
toName = nameNode(i2,j2)
toNode = graph.getNode toName
if toNode is null
toNode = new Node toName, cell, j2, i2
graph.addNode toNode
edge = new Edge fromNode, toNode
graph.addEdge edge
return graph
class Search
constructor: ( graph, start, goal, callbacks = {} ) ->
@graph = graph
@start = start
@goal = goal
@callbacks = callbacks
class DFS extends Search
constructor: ->
super
run: () ->
visited = {}
stack = [[@start]]
while stack.length > 0
path = stack.pop()
current = path[path.length-1]
continue unless visited[current.name] isnt true
if @callbacks.visit and visited[current.name] isnt true
@callbacks.visit {'name': current.name}
visited[current.name] = true
if current.name is @goal.name
return (node.name for node in path)
edges = @graph.getEdges current
continue unless edges
for edge in edges
if visited[edge.to.name] isnt true
stack.push path.concat([edge.to])
return null
class BFS extends Search
constructor: ->
super
run: () ->
visited = {}
queue = [[@start]]
while queue.length > 0
path = queue.shift()
current = path[path.length-1]
continue unless visited[current.name] isnt true
if @callbacks.visit and visited[current.name] isnt true
@callbacks.visit {'name': current.name}
visited[current.name] = true
if current.name is @goal.name
return (node.name for node in path)
edges = @graph.getEdges current
continue unless edges
for edge in edges
if visited[edge.to.name] isnt true
queue.push path.concat([edge.to])
return null
manhattanDistance = ( node1, node2 ) ->
return Math.abs( node2.y - node1.y ) + Math.abs( node2.x - node1.x )
class Astar extends Search
constructor: (args..., heuristic ) ->
Astar.__super__.constructor.apply @, args
@heuristic = heuristic
run: () ->
closed = {}
open = [@start]
from = {}
g = {}
g[@start.name] = 0
h = {}
h[@start.name] = @heuristic @start, @goal
f = {}
f[@start.name] = g[@start.name] + h[@start.name]
while open.length > 0
minF = Infinity
minFnode = null
for candidate in open
continue unless candidate.name of f
candF = if candidate.name of f then f[candidate.name] else -Infinity
if candF < minF
minF = candF
minFnode = candidate
return null if minFnode is null
current = minFnode
if @callbacks.visit then @callbacks.visit({
'name': current.name
'score': h[current.name]
})
if current.name is @goal.name
path = []
currentName = @goal.name
while currentName of from
path.unshift currentName
currentName = from[currentName]
path.unshift @start.name
return path
for o, i in open
if o.name is current.name
open.splice i, 1
break
closed[current.name] = current
edges = @graph.getEdges current
continue unless edges
for edge in edges
continue if edge.to.name of closed
#temp_g = g[current.name] + edge.cost
temp_g = g[current.name] + edge.to.cost
inOpen = false
for o, i in open
if o.name is edge.to.name
inOpen = true
break
if not inOpen
open.push edge.to
h[edge.to.name] = @heuristic edge.to, @goal
temp_better = true
else if temp_g < g[edge.to.name]
temp_better = true
else
temp_better = false
if temp_better
from[edge.to.name] = current.name
g[edge.to.name] = temp_g
f[edge.to.name] = g[edge.to.name] + h[edge.to.name]
return null
class AstarManhattan extends Astar
constructor: (args...) ->
args.push(manhattanDistance)
AstarManhattan.__super__.constructor.apply @, args
class GBFS extends Search
constructor: (args..., heuristic ) ->
GBFS.__super__.constructor.apply @, args
@heuristic = heuristic
run: () ->
closed = {}
open = [@start]
from = {}
g = {}
g[@start.name] = 0
h = {}
h[@start.name] = @heuristic @start, @goal
f = {}
f[@start.name] = g[@start.name] + h[@start.name]
while open.length > 0
minF = Infinity
minFnode = null
for candidate in open
continue unless candidate.name of f
candF = if candidate.name of f then f[candidate.name] else -Infinity
if candF < minF
minF = candF
minFnode = candidate
return null if minFnode is null
current = minFnode
if @callbacks.visit then @callbacks.visit({
'name': current.name
'score': h[current.name]
})
if current.name is @goal.name
path = []
currentName = @goal.name
while currentName of from
path.unshift currentName
currentName = from[currentName]
path.unshift @start.name
return path
for o, i in open
if o.name is current.name
open.splice i, 1
break
closed[current.name] = current
edges = @graph.getEdges current
continue unless edges
for edge in edges
continue if edge.to.name of closed
temp_g = g[current.name] + edge.to.cost
inOpen = false
for o, i in open
if o.name is edge.to.name
inOpen = true
break
if not inOpen
open.push edge.to
h[edge.to.name] = @heuristic edge.to, @goal
temp_better = true
else if temp_g < g[edge.to.name]
temp_better = true
else
temp_better = false
if temp_better
from[edge.to.name] = current.name
g[edge.to.name] = temp_g
f[edge.to.name] = h[edge.to.name]
return null
class GBFSManhattan extends GBFS
constructor: (args...) ->
args.push(manhattanDistance)
GBFSManhattan.__super__.constructor.apply @, args
class AstarManhattan extends Astar
constructor: (args...) ->
args.push(manhattanDistance)
AstarManhattan.__super__.constructor.apply @, args
class UCS extends Search
run: () ->
closed = {}
open = [@start]
from = {}
g = {}
g[@start.name] = 0
f = {}
f[@start.name] = g[@start.name]
while open.length > 0
minF = Infinity
minFnode = null
for candidate in open
continue unless candidate.name of f
candF = if candidate.name of f then f[candidate.name] else -Infinity
if candF < minF
minF = candF
minFnode = candidate
return null if minFnode is null
current = minFnode
if @callbacks.visit then @callbacks.visit({
'name': current.name
#'score': h[current.name]
})
if current.name is @goal.name
path = []
currentName = @goal.name
while currentName of from
path.unshift currentName
currentName = from[currentName]
path.unshift @start.name
return path
for o, i in open
if o.name is current.name
open.splice i, 1
break
closed[current.name] = current
edges = @graph.getEdges current
continue unless edges
for edge in edges
continue if edge.to.name of closed
#temp_g = g[current.name] + edge.cost
temp_g = g[current.name] + edge.to.cost
inOpen = false
for o, i in open
if o.name is edge.to.name
inOpen = true
break
if not inOpen
open.push edge.to
temp_better = true
else if temp_g < g[edge.to.name]
temp_better = true
else
temp_better = false
if temp_better
from[edge.to.name] = current.name
g[edge.to.name] = temp_g
f[edge.to.name] = g[edge.to.name]
return null
exports =
'Node': Node
'Edge': Edge
'Graph': Graph
'graph_from_grid': graph_from_grid
'DFS': DFS
'BFS': BFS
'UCS': UCS
'AstarManhattan': AstarManhattan
'GBFSManhattan': GBFSManhattan
'nameNode': nameNode
return exports
)
| 224429 | if typeof @define isnt 'function'
@define = require('amdefine')(module)
@define( (require) ->
Edge = ( from = null, to = null, cost = 1 ) ->
@from = from
@to = to
#@cost = cost
@
Node = ( name = '', cost = 1, x = NaN, y = NaN ) ->
@name = name
@visited = false
@x = x
@y = y
@cost = cost
@
Node.prototype.visit = () ->
@visited = true
Graph = () ->
@_nid = 0
@nodes = {}
@edges = {}
@
Graph.prototype.numNodes = () ->
n = 0
for own k,v in @nodes
++n
return n
Graph.prototype.addNode = ( node ) ->
node['_nid'] = ''+(@_nid++)
@nodes[node.name] = node
node
Graph.prototype.addNodes = ( nodes ) ->
for node in nodes
@addNode node
Graph.prototype.getNode = ( name ) ->
if name of @nodes
return @nodes[name]
else return null
Graph.prototype.getNodes = () ->
@nodes
Graph.prototype.addEdge = ( edge ) ->
key = edge.from['_<KEY>']
unless key of @edges
@edges[key] = []
@edges[key].push edge
Graph.prototype.addEdges = ( edges ) ->
for edge in edges
@addEdge edge
Graph.prototype.getEdges = ( node = null ) ->
if node is null
return @edges
else
return @edges[node['_nid']]
nameNode = (i,j) ->
return i + ',' + j
graph_from_grid = ( grid ) ->
graph = new Graph()
for row, i in grid
for cell, j in row
if cell isnt -1
fromName = nameNode(i,j)
fromNode = graph.getNode fromName
if fromNode is null
fromNode = new Node fromName, cell, j, i
graph.addNode fromNode
for adj in [[i-1, j], [i+1, j], [i, j-1], [i, j+1]]
i2 = adj[0]
j2 = adj[1]
continue if i2 < 0 or i2 > grid.length - 1 or j2 < 0 or j2 > row.length - 1
continue if grid[i2][j2] < 0
toName = nameNode(i2,j2)
toNode = graph.getNode toName
if toNode is null
toNode = new Node toName, cell, j2, i2
graph.addNode toNode
edge = new Edge fromNode, toNode
graph.addEdge edge
return graph
class Search
constructor: ( graph, start, goal, callbacks = {} ) ->
@graph = graph
@start = start
@goal = goal
@callbacks = callbacks
class DFS extends Search
constructor: ->
super
run: () ->
visited = {}
stack = [[@start]]
while stack.length > 0
path = stack.pop()
current = path[path.length-1]
continue unless visited[current.name] isnt true
if @callbacks.visit and visited[current.name] isnt true
@callbacks.visit {'name': current.name}
visited[current.name] = true
if current.name is @goal.name
return (node.name for node in path)
edges = @graph.getEdges current
continue unless edges
for edge in edges
if visited[edge.to.name] isnt true
stack.push path.concat([edge.to])
return null
class BFS extends Search
constructor: ->
super
run: () ->
visited = {}
queue = [[@start]]
while queue.length > 0
path = queue.shift()
current = path[path.length-1]
continue unless visited[current.name] isnt true
if @callbacks.visit and visited[current.name] isnt true
@callbacks.visit {'name': current.name}
visited[current.name] = true
if current.name is @goal.name
return (node.name for node in path)
edges = @graph.getEdges current
continue unless edges
for edge in edges
if visited[edge.to.name] isnt true
queue.push path.concat([edge.to])
return null
manhattanDistance = ( node1, node2 ) ->
return Math.abs( node2.y - node1.y ) + Math.abs( node2.x - node1.x )
class Astar extends Search
constructor: (args..., heuristic ) ->
Astar.__super__.constructor.apply @, args
@heuristic = heuristic
run: () ->
closed = {}
open = [@start]
from = {}
g = {}
g[<EMAIL>] = 0
h = {}
h[@start.name] = @heuristic @start, @goal
f = {}
f[@start.name] = g[@start.name] + h[@start.name]
while open.length > 0
minF = Infinity
minFnode = null
for candidate in open
continue unless candidate.name of f
candF = if candidate.name of f then f[candidate.name] else -Infinity
if candF < minF
minF = candF
minFnode = candidate
return null if minFnode is null
current = minFnode
if @callbacks.visit then @callbacks.visit({
'name': current.name
'score': h[current.name]
})
if current.name is @goal.name
path = []
currentName = @goal.name
while currentName of from
path.unshift currentName
currentName = from[currentName]
path.unshift @start.name
return path
for o, i in open
if o.name is current.name
open.splice i, 1
break
closed[current.name] = current
edges = @graph.getEdges current
continue unless edges
for edge in edges
continue if edge.to.name of closed
#temp_g = g[current.name] + edge.cost
temp_g = g[current.name] + edge.to.cost
inOpen = false
for o, i in open
if o.name is edge.to.name
inOpen = true
break
if not inOpen
open.push edge.to
h[edge.to.name] = @heuristic edge.to, @goal
temp_better = true
else if temp_g < g[edge.to.name]
temp_better = true
else
temp_better = false
if temp_better
from[edge.to.name] = current.name
g[edge.to.name] = temp_g
f[edge.to.name] = g[edge.to.name] + h[edge.to.name]
return null
class AstarManhattan extends Astar
constructor: (args...) ->
args.push(manhattanDistance)
AstarManhattan.__super__.constructor.apply @, args
class GBFS extends Search
constructor: (args..., heuristic ) ->
GBFS.__super__.constructor.apply @, args
@heuristic = heuristic
run: () ->
closed = {}
open = [@start]
from = {}
g = {}
g[@start.<EMAIL>] = 0
h = {}
h[@start.name] = @heuristic @start, @goal
f = {}
f[@start.name] = g[@start.name] + h[@start.name]
while open.length > 0
minF = Infinity
minFnode = null
for candidate in open
continue unless candidate.name of f
candF = if candidate.name of f then f[candidate.name] else -Infinity
if candF < minF
minF = candF
minFnode = candidate
return null if minFnode is null
current = minFnode
if @callbacks.visit then @callbacks.visit({
'name': current.name
'score': h[current.name]
})
if current.name is @goal.name
path = []
currentName = @goal.name
while currentName of from
path.unshift currentName
currentName = from[currentName]
path.unshift @start.name
return path
for o, i in open
if o.name is current.name
open.splice i, 1
break
closed[current.name] = current
edges = @graph.getEdges current
continue unless edges
for edge in edges
continue if edge.to.name of closed
temp_g = g[current.name] + edge.to.cost
inOpen = false
for o, i in open
if o.name is edge.to.name
inOpen = true
break
if not inOpen
open.push edge.to
h[edge.to.name] = @heuristic edge.to, @goal
temp_better = true
else if temp_g < g[edge.to.name]
temp_better = true
else
temp_better = false
if temp_better
from[edge.to.name] = current.name
g[edge.to.name] = temp_g
f[edge.to.name] = h[edge.to.name]
return null
class GBFSManhattan extends GBFS
constructor: (args...) ->
args.push(manhattanDistance)
GBFSManhattan.__super__.constructor.apply @, args
class AstarManhattan extends Astar
constructor: (args...) ->
args.push(manhattanDistance)
AstarManhattan.__super__.constructor.apply @, args
class UCS extends Search
run: () ->
closed = {}
open = [@start]
from = {}
g = {}
g[@start.name] = 0
f = {}
f[@start.name] = g[@start.name]
while open.length > 0
minF = Infinity
minFnode = null
for candidate in open
continue unless candidate.name of f
candF = if candidate.name of f then f[candidate.name] else -Infinity
if candF < minF
minF = candF
minFnode = candidate
return null if minFnode is null
current = minFnode
if @callbacks.visit then @callbacks.visit({
'name': current.name
#'score': h[current.name]
})
if current.name is @goal.name
path = []
currentName = @goal.name
while currentName of from
path.unshift currentName
currentName = from[currentName]
path.unshift @start.name
return path
for o, i in open
if o.name is current.name
open.splice i, 1
break
closed[current.name] = current
edges = @graph.getEdges current
continue unless edges
for edge in edges
continue if edge.to.name of closed
#temp_g = g[current.name] + edge.cost
temp_g = g[current.name] + edge.to.cost
inOpen = false
for o, i in open
if o.name is edge.to.name
inOpen = true
break
if not inOpen
open.push edge.to
temp_better = true
else if temp_g < g[edge.to.name]
temp_better = true
else
temp_better = false
if temp_better
from[edge.to.name] = current.name
g[edge.to.name] = temp_g
f[edge.to.name] = g[edge.to.name]
return null
exports =
'Node': Node
'Edge': Edge
'Graph': Graph
'graph_from_grid': graph_from_grid
'DFS': DFS
'BFS': BFS
'UCS': UCS
'AstarManhattan': AstarManhattan
'GBFSManhattan': GBFSManhattan
'nameNode': nameNode
return exports
)
| true | if typeof @define isnt 'function'
@define = require('amdefine')(module)
@define( (require) ->
Edge = ( from = null, to = null, cost = 1 ) ->
@from = from
@to = to
#@cost = cost
@
Node = ( name = '', cost = 1, x = NaN, y = NaN ) ->
@name = name
@visited = false
@x = x
@y = y
@cost = cost
@
Node.prototype.visit = () ->
@visited = true
Graph = () ->
@_nid = 0
@nodes = {}
@edges = {}
@
Graph.prototype.numNodes = () ->
n = 0
for own k,v in @nodes
++n
return n
Graph.prototype.addNode = ( node ) ->
node['_nid'] = ''+(@_nid++)
@nodes[node.name] = node
node
Graph.prototype.addNodes = ( nodes ) ->
for node in nodes
@addNode node
Graph.prototype.getNode = ( name ) ->
if name of @nodes
return @nodes[name]
else return null
Graph.prototype.getNodes = () ->
@nodes
Graph.prototype.addEdge = ( edge ) ->
key = edge.from['_PI:KEY:<KEY>END_PI']
unless key of @edges
@edges[key] = []
@edges[key].push edge
Graph.prototype.addEdges = ( edges ) ->
for edge in edges
@addEdge edge
Graph.prototype.getEdges = ( node = null ) ->
if node is null
return @edges
else
return @edges[node['_nid']]
nameNode = (i,j) ->
return i + ',' + j
graph_from_grid = ( grid ) ->
graph = new Graph()
for row, i in grid
for cell, j in row
if cell isnt -1
fromName = nameNode(i,j)
fromNode = graph.getNode fromName
if fromNode is null
fromNode = new Node fromName, cell, j, i
graph.addNode fromNode
for adj in [[i-1, j], [i+1, j], [i, j-1], [i, j+1]]
i2 = adj[0]
j2 = adj[1]
continue if i2 < 0 or i2 > grid.length - 1 or j2 < 0 or j2 > row.length - 1
continue if grid[i2][j2] < 0
toName = nameNode(i2,j2)
toNode = graph.getNode toName
if toNode is null
toNode = new Node toName, cell, j2, i2
graph.addNode toNode
edge = new Edge fromNode, toNode
graph.addEdge edge
return graph
class Search
constructor: ( graph, start, goal, callbacks = {} ) ->
@graph = graph
@start = start
@goal = goal
@callbacks = callbacks
class DFS extends Search
constructor: ->
super
run: () ->
visited = {}
stack = [[@start]]
while stack.length > 0
path = stack.pop()
current = path[path.length-1]
continue unless visited[current.name] isnt true
if @callbacks.visit and visited[current.name] isnt true
@callbacks.visit {'name': current.name}
visited[current.name] = true
if current.name is @goal.name
return (node.name for node in path)
edges = @graph.getEdges current
continue unless edges
for edge in edges
if visited[edge.to.name] isnt true
stack.push path.concat([edge.to])
return null
class BFS extends Search
constructor: ->
super
run: () ->
visited = {}
queue = [[@start]]
while queue.length > 0
path = queue.shift()
current = path[path.length-1]
continue unless visited[current.name] isnt true
if @callbacks.visit and visited[current.name] isnt true
@callbacks.visit {'name': current.name}
visited[current.name] = true
if current.name is @goal.name
return (node.name for node in path)
edges = @graph.getEdges current
continue unless edges
for edge in edges
if visited[edge.to.name] isnt true
queue.push path.concat([edge.to])
return null
manhattanDistance = ( node1, node2 ) ->
return Math.abs( node2.y - node1.y ) + Math.abs( node2.x - node1.x )
class Astar extends Search
constructor: (args..., heuristic ) ->
Astar.__super__.constructor.apply @, args
@heuristic = heuristic
run: () ->
closed = {}
open = [@start]
from = {}
g = {}
g[PI:EMAIL:<EMAIL>END_PI] = 0
h = {}
h[@start.name] = @heuristic @start, @goal
f = {}
f[@start.name] = g[@start.name] + h[@start.name]
while open.length > 0
minF = Infinity
minFnode = null
for candidate in open
continue unless candidate.name of f
candF = if candidate.name of f then f[candidate.name] else -Infinity
if candF < minF
minF = candF
minFnode = candidate
return null if minFnode is null
current = minFnode
if @callbacks.visit then @callbacks.visit({
'name': current.name
'score': h[current.name]
})
if current.name is @goal.name
path = []
currentName = @goal.name
while currentName of from
path.unshift currentName
currentName = from[currentName]
path.unshift @start.name
return path
for o, i in open
if o.name is current.name
open.splice i, 1
break
closed[current.name] = current
edges = @graph.getEdges current
continue unless edges
for edge in edges
continue if edge.to.name of closed
#temp_g = g[current.name] + edge.cost
temp_g = g[current.name] + edge.to.cost
inOpen = false
for o, i in open
if o.name is edge.to.name
inOpen = true
break
if not inOpen
open.push edge.to
h[edge.to.name] = @heuristic edge.to, @goal
temp_better = true
else if temp_g < g[edge.to.name]
temp_better = true
else
temp_better = false
if temp_better
from[edge.to.name] = current.name
g[edge.to.name] = temp_g
f[edge.to.name] = g[edge.to.name] + h[edge.to.name]
return null
class AstarManhattan extends Astar
constructor: (args...) ->
args.push(manhattanDistance)
AstarManhattan.__super__.constructor.apply @, args
class GBFS extends Search
constructor: (args..., heuristic ) ->
GBFS.__super__.constructor.apply @, args
@heuristic = heuristic
run: () ->
closed = {}
open = [@start]
from = {}
g = {}
g[@start.PI:EMAIL:<EMAIL>END_PI] = 0
h = {}
h[@start.name] = @heuristic @start, @goal
f = {}
f[@start.name] = g[@start.name] + h[@start.name]
while open.length > 0
minF = Infinity
minFnode = null
for candidate in open
continue unless candidate.name of f
candF = if candidate.name of f then f[candidate.name] else -Infinity
if candF < minF
minF = candF
minFnode = candidate
return null if minFnode is null
current = minFnode
if @callbacks.visit then @callbacks.visit({
'name': current.name
'score': h[current.name]
})
if current.name is @goal.name
path = []
currentName = @goal.name
while currentName of from
path.unshift currentName
currentName = from[currentName]
path.unshift @start.name
return path
for o, i in open
if o.name is current.name
open.splice i, 1
break
closed[current.name] = current
edges = @graph.getEdges current
continue unless edges
for edge in edges
continue if edge.to.name of closed
temp_g = g[current.name] + edge.to.cost
inOpen = false
for o, i in open
if o.name is edge.to.name
inOpen = true
break
if not inOpen
open.push edge.to
h[edge.to.name] = @heuristic edge.to, @goal
temp_better = true
else if temp_g < g[edge.to.name]
temp_better = true
else
temp_better = false
if temp_better
from[edge.to.name] = current.name
g[edge.to.name] = temp_g
f[edge.to.name] = h[edge.to.name]
return null
class GBFSManhattan extends GBFS
constructor: (args...) ->
args.push(manhattanDistance)
GBFSManhattan.__super__.constructor.apply @, args
class AstarManhattan extends Astar
constructor: (args...) ->
args.push(manhattanDistance)
AstarManhattan.__super__.constructor.apply @, args
class UCS extends Search
run: () ->
closed = {}
open = [@start]
from = {}
g = {}
g[@start.name] = 0
f = {}
f[@start.name] = g[@start.name]
while open.length > 0
minF = Infinity
minFnode = null
for candidate in open
continue unless candidate.name of f
candF = if candidate.name of f then f[candidate.name] else -Infinity
if candF < minF
minF = candF
minFnode = candidate
return null if minFnode is null
current = minFnode
if @callbacks.visit then @callbacks.visit({
'name': current.name
#'score': h[current.name]
})
if current.name is @goal.name
path = []
currentName = @goal.name
while currentName of from
path.unshift currentName
currentName = from[currentName]
path.unshift @start.name
return path
for o, i in open
if o.name is current.name
open.splice i, 1
break
closed[current.name] = current
edges = @graph.getEdges current
continue unless edges
for edge in edges
continue if edge.to.name of closed
#temp_g = g[current.name] + edge.cost
temp_g = g[current.name] + edge.to.cost
inOpen = false
for o, i in open
if o.name is edge.to.name
inOpen = true
break
if not inOpen
open.push edge.to
temp_better = true
else if temp_g < g[edge.to.name]
temp_better = true
else
temp_better = false
if temp_better
from[edge.to.name] = current.name
g[edge.to.name] = temp_g
f[edge.to.name] = g[edge.to.name]
return null
exports =
'Node': Node
'Edge': Edge
'Graph': Graph
'graph_from_grid': graph_from_grid
'DFS': DFS
'BFS': BFS
'UCS': UCS
'AstarManhattan': AstarManhattan
'GBFSManhattan': GBFSManhattan
'nameNode': nameNode
return exports
)
|
[
{
"context": "ger\n\n\t\t@stubbedUser = \n\t\t\t_id: \"3131231\"\n\t\t\tname:\"bob\"\n\t\t\temail:\"hello@world.com\"\n\t\t@newEmail = \"bob@bo",
"end": 1377,
"score": 0.7357831597328186,
"start": 1374,
"tag": "USERNAME",
"value": "bob"
},
{
"context": "User = \n\t\t\t_id: \"3131231\... | test/unit/coffee/User/UserUpdaterTests.coffee | shyoshyo/web-sharelatex | 1 | should = require('chai').should()
SandboxedModule = require('sandboxed-module')
assert = require('assert')
path = require('path')
sinon = require('sinon')
modulePath = path.join __dirname, "../../../../app/js/Features/User/UserUpdater"
expect = require("chai").expect
tk = require('timekeeper')
describe "UserUpdater", ->
beforeEach ->
tk.freeze(Date.now())
@mongojs =
db:{}
ObjectId:(id)-> return id
@UserGetter =
getUserEmail: sinon.stub()
getUserByAnyEmail: sinon.stub()
ensureUniqueEmailAddress: sinon.stub()
@logger =
err: sinon.stub()
log: ->
warn: ->
@addAffiliation = sinon.stub().yields()
@removeAffiliation = sinon.stub().callsArgWith(2, null)
@refreshFeatures = sinon.stub().yields()
@NewsletterManager =
changeEmail:sinon.stub()
@UserUpdater = SandboxedModule.require modulePath, requires:
"logger-sharelatex": @logger
"../../infrastructure/mongojs":@mongojs
"metrics-sharelatex": timeAsyncMethod: sinon.stub()
"./UserGetter": @UserGetter
'../Institutions/InstitutionsAPI':
addAffiliation: @addAffiliation
removeAffiliation: @removeAffiliation
'../Subscription/FeaturesUpdater': refreshFeatures: @refreshFeatures
"settings-sharelatex": @settings = {}
"request": @request = {}
"../Newsletter/NewsletterManager": @NewsletterManager
@stubbedUser =
_id: "3131231"
name:"bob"
email:"hello@world.com"
@newEmail = "bob@bob.com"
afterEach ->
tk.reset()
describe 'changeEmailAddress', ->
beforeEach ->
@UserGetter.getUserEmail.callsArgWith(1, null, @stubbedUser.email)
@UserUpdater.addEmailAddress = sinon.stub().callsArgWith(2)
@UserUpdater.setDefaultEmailAddress = sinon.stub().callsArgWith(2)
@UserUpdater.removeEmailAddress = sinon.stub().callsArgWith(2)
it 'change email', (done)->
@UserUpdater.changeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@UserUpdater.addEmailAddress.calledWith(
@stubbedUser._id, @newEmail
).should.equal true
@UserUpdater.setDefaultEmailAddress.calledWith(
@stubbedUser._id, @newEmail
).should.equal true
@UserUpdater.removeEmailAddress.calledWith(
@stubbedUser._id, @stubbedUser.email
).should.equal true
done()
it 'validates email', (done)->
@UserUpdater.changeEmailAddress @stubbedUser._id, 'foo', (err)=>
should.exist(err)
done()
it 'handle error', (done)->
@UserUpdater.removeEmailAddress.callsArgWith(2, new Error('nope'))
@UserUpdater.changeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
describe 'addEmailAddress', ->
beforeEach ->
@UserGetter.ensureUniqueEmailAddress = sinon.stub().callsArgWith(1)
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null)
it 'add email', (done)->
@UserUpdater.addEmailAddress @stubbedUser._id, @newEmail, (err)=>
@UserGetter.ensureUniqueEmailAddress.called.should.equal true
should.not.exist(err)
reversedHostname = @newEmail.split('@')[1].split('').reverse().join('')
@UserUpdater.updateUser.calledWith(
@stubbedUser._id,
$push: { emails: { email: @newEmail, createdAt: sinon.match.date, reversedHostname: reversedHostname } }
).should.equal true
done()
it 'add affiliation', (done)->
affiliationOptions =
university: { id: 1 }
role: 'Prof'
department: 'Math'
@UserUpdater.addEmailAddress @stubbedUser._id, @newEmail, affiliationOptions, (err)=>
should.not.exist(err)
@addAffiliation.calledOnce.should.equal true
args = @addAffiliation.lastCall.args
args[0].should.equal @stubbedUser._id
args[1].should.equal @newEmail
args[2].should.equal affiliationOptions
done()
it 'handle error', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, new Error('nope'))
@UserUpdater.addEmailAddress @stubbedUser._id, @newEmail, (err)=>
@logger.err.called.should.equal true
should.exist(err)
done()
it 'handle affiliation error', (done)->
body = errors: 'affiliation error message'
@addAffiliation.callsArgWith(3, new Error('nope'))
@UserUpdater.addEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
@UserUpdater.updateUser.called.should.equal false
done()
it 'validates email', (done)->
@UserUpdater.addEmailAddress @stubbedUser._id, 'bar', (err)=>
should.exist(err)
done()
describe 'removeEmailAddress', ->
beforeEach ->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, nMatched: 1)
it 'remove email', (done)->
@UserUpdater.removeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@UserUpdater.updateUser.calledWith(
{ _id: @stubbedUser._id, email: { $ne: @newEmail } },
$pull: { emails: { email: @newEmail } }
).should.equal true
done()
it 'remove affiliation', (done)->
@UserUpdater.removeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@removeAffiliation.calledOnce.should.equal true
args = @removeAffiliation.lastCall.args
args[0].should.equal @stubbedUser._id
args[1].should.equal @newEmail
done()
it 'handle error', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, new Error('nope'))
@UserUpdater.removeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
it 'handle missed update', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, n: 0)
@UserUpdater.removeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
it 'handle affiliation error', (done)->
@removeAffiliation.callsArgWith(2, new Error('nope'))
@UserUpdater.removeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
@UserUpdater.updateUser.called.should.equal false
done()
it 'validates email', (done)->
@UserUpdater.removeEmailAddress @stubbedUser._id, 'baz', (err)=>
should.exist(err)
done()
describe 'setDefaultEmailAddress', ->
beforeEach ->
@UserGetter.getUserEmail.callsArgWith(1, null, @stubbedUser.email)
@NewsletterManager.changeEmail.callsArgWith(2, null)
it 'set default', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, n: 1)
@UserUpdater.setDefaultEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@UserUpdater.updateUser.calledWith(
{ _id: @stubbedUser._id, 'emails.email': @newEmail },
$set: { email: @newEmail }
).should.equal true
done()
it 'set changed the email in newsletter', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, n: 1)
@UserUpdater.setDefaultEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@NewsletterManager.changeEmail.calledWith(
@stubbedUser.email, @newEmail
).should.equal true
done()
it 'handle error', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, new Error('nope'))
@UserUpdater.setDefaultEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
it 'handle missed update', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, n: 0)
@UserUpdater.setDefaultEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
it 'validates email', (done)->
@UserUpdater.setDefaultEmailAddress @stubbedUser._id, '.edu', (err)=>
should.exist(err)
done()
describe 'confirmEmail', ->
beforeEach ->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, n: 1)
it 'should update the email record', (done)->
@UserUpdater.confirmEmail @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@UserUpdater.updateUser.calledWith(
{ _id: @stubbedUser._id, 'emails.email': @newEmail },
$set: { 'emails.$.confirmedAt': new Date() }
).should.equal true
done()
it 'add affiliation', (done)->
@UserUpdater.confirmEmail @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@addAffiliation.calledOnce.should.equal true
sinon.assert.calledWith(@addAffiliation, @stubbedUser._id, @newEmail, { confirmedAt: new Date() } )
done()
it 'handle error', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, new Error('nope'))
@UserUpdater.confirmEmail @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
it 'handle missed update', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, n: 0)
@UserUpdater.confirmEmail @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
it 'validates email', (done)->
@UserUpdater.confirmEmail @stubbedUser._id, '@', (err)=>
should.exist(err)
done()
it 'handle affiliation error', (done)->
@addAffiliation.callsArgWith(3, new Error('nope'))
@UserUpdater.confirmEmail @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
@UserUpdater.updateUser.called.should.equal false
done()
it 'refresh features', (done)->
@UserUpdater.confirmEmail @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
sinon.assert.calledWith(@refreshFeatures, @stubbedUser._id, true)
done()
| 168170 | should = require('chai').should()
SandboxedModule = require('sandboxed-module')
assert = require('assert')
path = require('path')
sinon = require('sinon')
modulePath = path.join __dirname, "../../../../app/js/Features/User/UserUpdater"
expect = require("chai").expect
tk = require('timekeeper')
describe "UserUpdater", ->
beforeEach ->
tk.freeze(Date.now())
@mongojs =
db:{}
ObjectId:(id)-> return id
@UserGetter =
getUserEmail: sinon.stub()
getUserByAnyEmail: sinon.stub()
ensureUniqueEmailAddress: sinon.stub()
@logger =
err: sinon.stub()
log: ->
warn: ->
@addAffiliation = sinon.stub().yields()
@removeAffiliation = sinon.stub().callsArgWith(2, null)
@refreshFeatures = sinon.stub().yields()
@NewsletterManager =
changeEmail:sinon.stub()
@UserUpdater = SandboxedModule.require modulePath, requires:
"logger-sharelatex": @logger
"../../infrastructure/mongojs":@mongojs
"metrics-sharelatex": timeAsyncMethod: sinon.stub()
"./UserGetter": @UserGetter
'../Institutions/InstitutionsAPI':
addAffiliation: @addAffiliation
removeAffiliation: @removeAffiliation
'../Subscription/FeaturesUpdater': refreshFeatures: @refreshFeatures
"settings-sharelatex": @settings = {}
"request": @request = {}
"../Newsletter/NewsletterManager": @NewsletterManager
@stubbedUser =
_id: "3131231"
name:"bob"
email:"<EMAIL>"
@newEmail = "<EMAIL>"
afterEach ->
tk.reset()
describe 'changeEmailAddress', ->
beforeEach ->
@UserGetter.getUserEmail.callsArgWith(1, null, @stubbedUser.email)
@UserUpdater.addEmailAddress = sinon.stub().callsArgWith(2)
@UserUpdater.setDefaultEmailAddress = sinon.stub().callsArgWith(2)
@UserUpdater.removeEmailAddress = sinon.stub().callsArgWith(2)
it 'change email', (done)->
@UserUpdater.changeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@UserUpdater.addEmailAddress.calledWith(
@stubbedUser._id, @newEmail
).should.equal true
@UserUpdater.setDefaultEmailAddress.calledWith(
@stubbedUser._id, @newEmail
).should.equal true
@UserUpdater.removeEmailAddress.calledWith(
@stubbedUser._id, @stubbedUser.email
).should.equal true
done()
it 'validates email', (done)->
@UserUpdater.changeEmailAddress @stubbedUser._id, 'foo', (err)=>
should.exist(err)
done()
it 'handle error', (done)->
@UserUpdater.removeEmailAddress.callsArgWith(2, new Error('nope'))
@UserUpdater.changeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
describe 'addEmailAddress', ->
beforeEach ->
@UserGetter.ensureUniqueEmailAddress = sinon.stub().callsArgWith(1)
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null)
it 'add email', (done)->
@UserUpdater.addEmailAddress @stubbedUser._id, @newEmail, (err)=>
@UserGetter.ensureUniqueEmailAddress.called.should.equal true
should.not.exist(err)
reversedHostname = @newEmail.split('@')[1].split('').reverse().join('')
@UserUpdater.updateUser.calledWith(
@stubbedUser._id,
$push: { emails: { email: @newEmail, createdAt: sinon.match.date, reversedHostname: reversedHostname } }
).should.equal true
done()
it 'add affiliation', (done)->
affiliationOptions =
university: { id: 1 }
role: 'Prof'
department: '<NAME>'
@UserUpdater.addEmailAddress @stubbedUser._id, @newEmail, affiliationOptions, (err)=>
should.not.exist(err)
@addAffiliation.calledOnce.should.equal true
args = @addAffiliation.lastCall.args
args[0].should.equal @stubbedUser._id
args[1].should.equal @newEmail
args[2].should.equal affiliationOptions
done()
it 'handle error', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, new Error('nope'))
@UserUpdater.addEmailAddress @stubbedUser._id, @newEmail, (err)=>
@logger.err.called.should.equal true
should.exist(err)
done()
it 'handle affiliation error', (done)->
body = errors: 'affiliation error message'
@addAffiliation.callsArgWith(3, new Error('nope'))
@UserUpdater.addEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
@UserUpdater.updateUser.called.should.equal false
done()
it 'validates email', (done)->
@UserUpdater.addEmailAddress @stubbedUser._id, 'bar', (err)=>
should.exist(err)
done()
describe 'removeEmailAddress', ->
beforeEach ->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, nMatched: 1)
it 'remove email', (done)->
@UserUpdater.removeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@UserUpdater.updateUser.calledWith(
{ _id: @stubbedUser._id, email: { $ne: @newEmail } },
$pull: { emails: { email: @newEmail } }
).should.equal true
done()
it 'remove affiliation', (done)->
@UserUpdater.removeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@removeAffiliation.calledOnce.should.equal true
args = @removeAffiliation.lastCall.args
args[0].should.equal @stubbedUser._id
args[1].should.equal @newEmail
done()
it 'handle error', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, new Error('nope'))
@UserUpdater.removeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
it 'handle missed update', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, n: 0)
@UserUpdater.removeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
it 'handle affiliation error', (done)->
@removeAffiliation.callsArgWith(2, new Error('nope'))
@UserUpdater.removeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
@UserUpdater.updateUser.called.should.equal false
done()
it 'validates email', (done)->
@UserUpdater.removeEmailAddress @stubbedUser._id, 'baz', (err)=>
should.exist(err)
done()
describe 'setDefaultEmailAddress', ->
beforeEach ->
@UserGetter.getUserEmail.callsArgWith(1, null, @stubbedUser.email)
@NewsletterManager.changeEmail.callsArgWith(2, null)
it 'set default', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, n: 1)
@UserUpdater.setDefaultEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@UserUpdater.updateUser.calledWith(
{ _id: @stubbedUser._id, 'emails.email': @newEmail },
$set: { email: @newEmail }
).should.equal true
done()
it 'set changed the email in newsletter', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, n: 1)
@UserUpdater.setDefaultEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@NewsletterManager.changeEmail.calledWith(
@stubbedUser.email, @newEmail
).should.equal true
done()
it 'handle error', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, new Error('nope'))
@UserUpdater.setDefaultEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
it 'handle missed update', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, n: 0)
@UserUpdater.setDefaultEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
it 'validates email', (done)->
@UserUpdater.setDefaultEmailAddress @stubbedUser._id, '.edu', (err)=>
should.exist(err)
done()
describe 'confirmEmail', ->
beforeEach ->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, n: 1)
it 'should update the email record', (done)->
@UserUpdater.confirmEmail @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@UserUpdater.updateUser.calledWith(
{ _id: @stubbedUser._id, 'emails.email': @newEmail },
$set: { 'emails.$.confirmedAt': new Date() }
).should.equal true
done()
it 'add affiliation', (done)->
@UserUpdater.confirmEmail @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@addAffiliation.calledOnce.should.equal true
sinon.assert.calledWith(@addAffiliation, @stubbedUser._id, @newEmail, { confirmedAt: new Date() } )
done()
it 'handle error', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, new Error('nope'))
@UserUpdater.confirmEmail @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
it 'handle missed update', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, n: 0)
@UserUpdater.confirmEmail @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
it 'validates email', (done)->
@UserUpdater.confirmEmail @stubbedUser._id, '@', (err)=>
should.exist(err)
done()
it 'handle affiliation error', (done)->
@addAffiliation.callsArgWith(3, new Error('nope'))
@UserUpdater.confirmEmail @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
@UserUpdater.updateUser.called.should.equal false
done()
it 'refresh features', (done)->
@UserUpdater.confirmEmail @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
sinon.assert.calledWith(@refreshFeatures, @stubbedUser._id, true)
done()
| true | should = require('chai').should()
SandboxedModule = require('sandboxed-module')
assert = require('assert')
path = require('path')
sinon = require('sinon')
modulePath = path.join __dirname, "../../../../app/js/Features/User/UserUpdater"
expect = require("chai").expect
tk = require('timekeeper')
describe "UserUpdater", ->
beforeEach ->
tk.freeze(Date.now())
@mongojs =
db:{}
ObjectId:(id)-> return id
@UserGetter =
getUserEmail: sinon.stub()
getUserByAnyEmail: sinon.stub()
ensureUniqueEmailAddress: sinon.stub()
@logger =
err: sinon.stub()
log: ->
warn: ->
@addAffiliation = sinon.stub().yields()
@removeAffiliation = sinon.stub().callsArgWith(2, null)
@refreshFeatures = sinon.stub().yields()
@NewsletterManager =
changeEmail:sinon.stub()
@UserUpdater = SandboxedModule.require modulePath, requires:
"logger-sharelatex": @logger
"../../infrastructure/mongojs":@mongojs
"metrics-sharelatex": timeAsyncMethod: sinon.stub()
"./UserGetter": @UserGetter
'../Institutions/InstitutionsAPI':
addAffiliation: @addAffiliation
removeAffiliation: @removeAffiliation
'../Subscription/FeaturesUpdater': refreshFeatures: @refreshFeatures
"settings-sharelatex": @settings = {}
"request": @request = {}
"../Newsletter/NewsletterManager": @NewsletterManager
@stubbedUser =
_id: "3131231"
name:"bob"
email:"PI:EMAIL:<EMAIL>END_PI"
@newEmail = "PI:EMAIL:<EMAIL>END_PI"
afterEach ->
tk.reset()
describe 'changeEmailAddress', ->
beforeEach ->
@UserGetter.getUserEmail.callsArgWith(1, null, @stubbedUser.email)
@UserUpdater.addEmailAddress = sinon.stub().callsArgWith(2)
@UserUpdater.setDefaultEmailAddress = sinon.stub().callsArgWith(2)
@UserUpdater.removeEmailAddress = sinon.stub().callsArgWith(2)
it 'change email', (done)->
@UserUpdater.changeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@UserUpdater.addEmailAddress.calledWith(
@stubbedUser._id, @newEmail
).should.equal true
@UserUpdater.setDefaultEmailAddress.calledWith(
@stubbedUser._id, @newEmail
).should.equal true
@UserUpdater.removeEmailAddress.calledWith(
@stubbedUser._id, @stubbedUser.email
).should.equal true
done()
it 'validates email', (done)->
@UserUpdater.changeEmailAddress @stubbedUser._id, 'foo', (err)=>
should.exist(err)
done()
it 'handle error', (done)->
@UserUpdater.removeEmailAddress.callsArgWith(2, new Error('nope'))
@UserUpdater.changeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
describe 'addEmailAddress', ->
beforeEach ->
@UserGetter.ensureUniqueEmailAddress = sinon.stub().callsArgWith(1)
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null)
it 'add email', (done)->
@UserUpdater.addEmailAddress @stubbedUser._id, @newEmail, (err)=>
@UserGetter.ensureUniqueEmailAddress.called.should.equal true
should.not.exist(err)
reversedHostname = @newEmail.split('@')[1].split('').reverse().join('')
@UserUpdater.updateUser.calledWith(
@stubbedUser._id,
$push: { emails: { email: @newEmail, createdAt: sinon.match.date, reversedHostname: reversedHostname } }
).should.equal true
done()
it 'add affiliation', (done)->
affiliationOptions =
university: { id: 1 }
role: 'Prof'
department: 'PI:NAME:<NAME>END_PI'
@UserUpdater.addEmailAddress @stubbedUser._id, @newEmail, affiliationOptions, (err)=>
should.not.exist(err)
@addAffiliation.calledOnce.should.equal true
args = @addAffiliation.lastCall.args
args[0].should.equal @stubbedUser._id
args[1].should.equal @newEmail
args[2].should.equal affiliationOptions
done()
it 'handle error', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, new Error('nope'))
@UserUpdater.addEmailAddress @stubbedUser._id, @newEmail, (err)=>
@logger.err.called.should.equal true
should.exist(err)
done()
it 'handle affiliation error', (done)->
body = errors: 'affiliation error message'
@addAffiliation.callsArgWith(3, new Error('nope'))
@UserUpdater.addEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
@UserUpdater.updateUser.called.should.equal false
done()
it 'validates email', (done)->
@UserUpdater.addEmailAddress @stubbedUser._id, 'bar', (err)=>
should.exist(err)
done()
describe 'removeEmailAddress', ->
beforeEach ->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, nMatched: 1)
it 'remove email', (done)->
@UserUpdater.removeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@UserUpdater.updateUser.calledWith(
{ _id: @stubbedUser._id, email: { $ne: @newEmail } },
$pull: { emails: { email: @newEmail } }
).should.equal true
done()
it 'remove affiliation', (done)->
@UserUpdater.removeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@removeAffiliation.calledOnce.should.equal true
args = @removeAffiliation.lastCall.args
args[0].should.equal @stubbedUser._id
args[1].should.equal @newEmail
done()
it 'handle error', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, new Error('nope'))
@UserUpdater.removeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
it 'handle missed update', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, n: 0)
@UserUpdater.removeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
it 'handle affiliation error', (done)->
@removeAffiliation.callsArgWith(2, new Error('nope'))
@UserUpdater.removeEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
@UserUpdater.updateUser.called.should.equal false
done()
it 'validates email', (done)->
@UserUpdater.removeEmailAddress @stubbedUser._id, 'baz', (err)=>
should.exist(err)
done()
describe 'setDefaultEmailAddress', ->
beforeEach ->
@UserGetter.getUserEmail.callsArgWith(1, null, @stubbedUser.email)
@NewsletterManager.changeEmail.callsArgWith(2, null)
it 'set default', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, n: 1)
@UserUpdater.setDefaultEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@UserUpdater.updateUser.calledWith(
{ _id: @stubbedUser._id, 'emails.email': @newEmail },
$set: { email: @newEmail }
).should.equal true
done()
it 'set changed the email in newsletter', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, n: 1)
@UserUpdater.setDefaultEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@NewsletterManager.changeEmail.calledWith(
@stubbedUser.email, @newEmail
).should.equal true
done()
it 'handle error', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, new Error('nope'))
@UserUpdater.setDefaultEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
it 'handle missed update', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, n: 0)
@UserUpdater.setDefaultEmailAddress @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
it 'validates email', (done)->
@UserUpdater.setDefaultEmailAddress @stubbedUser._id, '.edu', (err)=>
should.exist(err)
done()
describe 'confirmEmail', ->
beforeEach ->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, n: 1)
it 'should update the email record', (done)->
@UserUpdater.confirmEmail @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@UserUpdater.updateUser.calledWith(
{ _id: @stubbedUser._id, 'emails.email': @newEmail },
$set: { 'emails.$.confirmedAt': new Date() }
).should.equal true
done()
it 'add affiliation', (done)->
@UserUpdater.confirmEmail @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
@addAffiliation.calledOnce.should.equal true
sinon.assert.calledWith(@addAffiliation, @stubbedUser._id, @newEmail, { confirmedAt: new Date() } )
done()
it 'handle error', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, new Error('nope'))
@UserUpdater.confirmEmail @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
it 'handle missed update', (done)->
@UserUpdater.updateUser = sinon.stub().callsArgWith(2, null, n: 0)
@UserUpdater.confirmEmail @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
done()
it 'validates email', (done)->
@UserUpdater.confirmEmail @stubbedUser._id, '@', (err)=>
should.exist(err)
done()
it 'handle affiliation error', (done)->
@addAffiliation.callsArgWith(3, new Error('nope'))
@UserUpdater.confirmEmail @stubbedUser._id, @newEmail, (err)=>
should.exist(err)
@UserUpdater.updateUser.called.should.equal false
done()
it 'refresh features', (done)->
@UserUpdater.confirmEmail @stubbedUser._id, @newEmail, (err)=>
should.not.exist(err)
sinon.assert.calledWith(@refreshFeatures, @stubbedUser._id, true)
done()
|
[
{
"context": "w Color('#05d'))\n numbers.setText('0123456789 david@burodepeper.nl')\n # numbers.enableBoundingBox('#05d')\n\n ",
"end": 1830,
"score": 0.999893069267273,
"start": 1810,
"tag": "EMAIL",
"value": "david@burodepeper.nl"
}
] | examples/04-lines/js/src/App.coffee | burodepeper/diesel-engine | 2 | App =
init: ->
settings =
viewport:
width: 480
height: 270
if Engine.init(settings)
# Clock in top right corner
@clock = new Clock()
@clock.setCSS({ top:5, left:5, width:59, height:59 })
# Draw some rectangular overlapping shapes as a test
red = new Color('#e10')
green = new Color('#5d0')
white = new Color('#fff')
@rectangle = new Rectangle()
@rectangle.setPosition(120, 80)
@rectangle.setSize(120, 80)
@rectangle.stretch(red, 0.5)
@rectangle.outline(green)
@square = new Square()
@square.setPosition(160, 100)
@square.setSize(100)
@square.stretch(green, 0.5)
@square.outline(red)
# @square.enableBoundingBox(white, 0.5)
# Let's add a simple Sprite
spriteData =
particles: '0010002120111110212000100'
colors:
1: new Color('#fff')
2: new Color('#e10')
width: 5
@star = new Sprite()
@star.load(spriteData)
@star.setPosition(100, 20)
# @star.enableBoundingBox('#fff')
# Let's try some stuff with text
font = new Font('9PX')
lowercase = new Text()
lowercase.setFont(font)
lowercase.setPosition(120, 20)
lowercase.setColor(new Color('#fd0'))
lowercase.setText('abcdefghijklmnopqrstuvwxyz')
# lowercase.enableBoundingBox('#fd0')
uppercase = new Text()
uppercase.setFont(font)
uppercase.setPosition(120, 29)
uppercase.setColor(new Color('#5d0'))
uppercase.setText('ABCDEFGHIJKLMNOPQRSTUVWXYZ')
# uppercase.enableBoundingBox('#5d0')
numbers = new Text()
numbers.setFont(font)
numbers.setPosition(120, 38)
numbers.setColor(new Color('#05d'))
numbers.setText('0123456789 david@burodepeper.nl')
# numbers.enableBoundingBox('#05d')
punctuation = new Text()
punctuation.setFont(font)
punctuation.setPosition(120, 47)
punctuation.setColor(new Color('#c0c'))
punctuation.setText(' !"#$%&'+"'"+'()*+,-./:;<=>?@[\\]^_`{|}~')
# punctuation.enableBoundingBox('#c0c')
# SpectrumAnalyzer at the bottom
@analyzer = new SpectrumAnalyzer()
return
| 63039 | App =
init: ->
settings =
viewport:
width: 480
height: 270
if Engine.init(settings)
# Clock in top right corner
@clock = new Clock()
@clock.setCSS({ top:5, left:5, width:59, height:59 })
# Draw some rectangular overlapping shapes as a test
red = new Color('#e10')
green = new Color('#5d0')
white = new Color('#fff')
@rectangle = new Rectangle()
@rectangle.setPosition(120, 80)
@rectangle.setSize(120, 80)
@rectangle.stretch(red, 0.5)
@rectangle.outline(green)
@square = new Square()
@square.setPosition(160, 100)
@square.setSize(100)
@square.stretch(green, 0.5)
@square.outline(red)
# @square.enableBoundingBox(white, 0.5)
# Let's add a simple Sprite
spriteData =
particles: '0010002120111110212000100'
colors:
1: new Color('#fff')
2: new Color('#e10')
width: 5
@star = new Sprite()
@star.load(spriteData)
@star.setPosition(100, 20)
# @star.enableBoundingBox('#fff')
# Let's try some stuff with text
font = new Font('9PX')
lowercase = new Text()
lowercase.setFont(font)
lowercase.setPosition(120, 20)
lowercase.setColor(new Color('#fd0'))
lowercase.setText('abcdefghijklmnopqrstuvwxyz')
# lowercase.enableBoundingBox('#fd0')
uppercase = new Text()
uppercase.setFont(font)
uppercase.setPosition(120, 29)
uppercase.setColor(new Color('#5d0'))
uppercase.setText('ABCDEFGHIJKLMNOPQRSTUVWXYZ')
# uppercase.enableBoundingBox('#5d0')
numbers = new Text()
numbers.setFont(font)
numbers.setPosition(120, 38)
numbers.setColor(new Color('#05d'))
numbers.setText('0123456789 <EMAIL>')
# numbers.enableBoundingBox('#05d')
punctuation = new Text()
punctuation.setFont(font)
punctuation.setPosition(120, 47)
punctuation.setColor(new Color('#c0c'))
punctuation.setText(' !"#$%&'+"'"+'()*+,-./:;<=>?@[\\]^_`{|}~')
# punctuation.enableBoundingBox('#c0c')
# SpectrumAnalyzer at the bottom
@analyzer = new SpectrumAnalyzer()
return
| true | App =
init: ->
settings =
viewport:
width: 480
height: 270
if Engine.init(settings)
# Clock in top right corner
@clock = new Clock()
@clock.setCSS({ top:5, left:5, width:59, height:59 })
# Draw some rectangular overlapping shapes as a test
red = new Color('#e10')
green = new Color('#5d0')
white = new Color('#fff')
@rectangle = new Rectangle()
@rectangle.setPosition(120, 80)
@rectangle.setSize(120, 80)
@rectangle.stretch(red, 0.5)
@rectangle.outline(green)
@square = new Square()
@square.setPosition(160, 100)
@square.setSize(100)
@square.stretch(green, 0.5)
@square.outline(red)
# @square.enableBoundingBox(white, 0.5)
# Let's add a simple Sprite
spriteData =
particles: '0010002120111110212000100'
colors:
1: new Color('#fff')
2: new Color('#e10')
width: 5
@star = new Sprite()
@star.load(spriteData)
@star.setPosition(100, 20)
# @star.enableBoundingBox('#fff')
# Let's try some stuff with text
font = new Font('9PX')
lowercase = new Text()
lowercase.setFont(font)
lowercase.setPosition(120, 20)
lowercase.setColor(new Color('#fd0'))
lowercase.setText('abcdefghijklmnopqrstuvwxyz')
# lowercase.enableBoundingBox('#fd0')
uppercase = new Text()
uppercase.setFont(font)
uppercase.setPosition(120, 29)
uppercase.setColor(new Color('#5d0'))
uppercase.setText('ABCDEFGHIJKLMNOPQRSTUVWXYZ')
# uppercase.enableBoundingBox('#5d0')
numbers = new Text()
numbers.setFont(font)
numbers.setPosition(120, 38)
numbers.setColor(new Color('#05d'))
numbers.setText('0123456789 PI:EMAIL:<EMAIL>END_PI')
# numbers.enableBoundingBox('#05d')
punctuation = new Text()
punctuation.setFont(font)
punctuation.setPosition(120, 47)
punctuation.setColor(new Color('#c0c'))
punctuation.setText(' !"#$%&'+"'"+'()*+,-./:;<=>?@[\\]^_`{|}~')
# punctuation.enableBoundingBox('#c0c')
# SpectrumAnalyzer at the bottom
@analyzer = new SpectrumAnalyzer()
return
|
[
{
"context": "stPageChecked = null\n @_tokenKey: () ->\n 'csrf_token_' + location.href\n\n @_old = false\n\n @_checkPage",
"end": 145,
"score": 0.7233849763870239,
"start": 140,
"tag": "KEY",
"value": "token"
}
] | app/assets/javascripts/conservative_etags.coffee | tylergannon/conservative_etags | 0 | class ConservativeEtags
@_checked: () ->
@_lastPageChecked == location.href
@_lastPageChecked = null
@_tokenKey: () ->
'csrf_token_' + location.href
@_old = false
@_checkPage: ->
unless @_checked()
window.new_csrf_token = $('meta[name=csrf-token]').attr('content')
window.old_csrf_token = sessionStorage.getItem(@_tokenKey())
if new_csrf_token == old_csrf_token
@_old = true
else
@_old = false
sessionStorage.setItem(@_tokenKey(), new_csrf_token)
@pageIsOld: ->
@_checkPage()
@_old
window.ConservativeEtags = ConservativeEtags
| 41892 | class ConservativeEtags
@_checked: () ->
@_lastPageChecked == location.href
@_lastPageChecked = null
@_tokenKey: () ->
'csrf_<KEY>_' + location.href
@_old = false
@_checkPage: ->
unless @_checked()
window.new_csrf_token = $('meta[name=csrf-token]').attr('content')
window.old_csrf_token = sessionStorage.getItem(@_tokenKey())
if new_csrf_token == old_csrf_token
@_old = true
else
@_old = false
sessionStorage.setItem(@_tokenKey(), new_csrf_token)
@pageIsOld: ->
@_checkPage()
@_old
window.ConservativeEtags = ConservativeEtags
| true | class ConservativeEtags
@_checked: () ->
@_lastPageChecked == location.href
@_lastPageChecked = null
@_tokenKey: () ->
'csrf_PI:KEY:<KEY>END_PI_' + location.href
@_old = false
@_checkPage: ->
unless @_checked()
window.new_csrf_token = $('meta[name=csrf-token]').attr('content')
window.old_csrf_token = sessionStorage.getItem(@_tokenKey())
if new_csrf_token == old_csrf_token
@_old = true
else
@_old = false
sessionStorage.setItem(@_tokenKey(), new_csrf_token)
@pageIsOld: ->
@_checkPage()
@_old
window.ConservativeEtags = ConservativeEtags
|
[
{
"context": "swordConfirmation = ev.target.value\n password = @state.formData.password\n if passwordConfirmation.length >= password.le",
"end": 776,
"score": 0.9746448397636414,
"start": 752,
"tag": "PASSWORD",
"value": "@state.formData.password"
}
] | app/views/components/user/SignUp.coffee | Kenspeckled/skillGiving | 0 | BaseLayout = require 'views/layouts/base.coffee'
User = require 'models/User.coffee'
{div, label, input, form, button} = React.DOM
UserSignUp = React.createClass
displayName: 'UserSignUp'
getInitialState: ->
formData: {}
passwordConfirmationIsValid: ''
handleSubmit: (ev) ->
ev.preventDefault()
if @state.passwordConfirmationIsValid
User.create(@state.formData).then (user) ->
document.cookie = 'sessionID='+user.id
ClientRouter.show('/job-postings')
handleFormChange: (ev) ->
@state.formData[ev.target.name] = ev.target.value #FIXME - this works but we shouldn't update state directly like this.
validatePasswordConfirmation: (ev) ->
passwordConfirmation = ev.target.value
password = @state.formData.password
if passwordConfirmation.length >= password.length
if passwordConfirmation != password
@setState passwordConfirmationIsValid: false
else if passwordConfirmation = password
@setState passwordConfirmationIsValid: true
else
@setState passwordConfirmationIsValid: ''
render: ->
React.createElement BaseLayout, @props,
form className: 'sign-up form', onSubmit: @handleSubmit, onChange: @handleFormChange,
div className: 'row',
div className: 'field',
div className: 'col-sm-4',
label className: 'label', 'Email',
div className: 'col-sm-8',
input className: 'input', name: 'email', type: 'text', autoComplete: 'false'
div className: 'row',
div className: 'field',
div className: 'col-sm-4',
label className: 'label', 'Password',
div className: 'col-sm-8',
input className: 'input', name: 'password', type: 'password', autoComplete: 'false'
div className: 'row',
div className: 'field',
div className: 'col-sm-4',
label className: 'label', 'Confirm Password',
div className: 'col-sm-8',
input className: 'input ' + (if @state.passwordConfirmationIsValid == true then 'valid' else if @state.passwordConfirmationIsValid == false then 'invalid' else ''), name: 'passwordConfirmation', type: 'password', autoComplete: 'false', onChange: @validatePasswordConfirmation
div className: 'row',
div className: 'col-sm-12',
div className: 'text-right',
button className: 'btn btn-primary', 'Create Account'
module.exports = UserSignUp
| 19677 | BaseLayout = require 'views/layouts/base.coffee'
User = require 'models/User.coffee'
{div, label, input, form, button} = React.DOM
UserSignUp = React.createClass
displayName: 'UserSignUp'
getInitialState: ->
formData: {}
passwordConfirmationIsValid: ''
handleSubmit: (ev) ->
ev.preventDefault()
if @state.passwordConfirmationIsValid
User.create(@state.formData).then (user) ->
document.cookie = 'sessionID='+user.id
ClientRouter.show('/job-postings')
handleFormChange: (ev) ->
@state.formData[ev.target.name] = ev.target.value #FIXME - this works but we shouldn't update state directly like this.
validatePasswordConfirmation: (ev) ->
passwordConfirmation = ev.target.value
password = <PASSWORD>
if passwordConfirmation.length >= password.length
if passwordConfirmation != password
@setState passwordConfirmationIsValid: false
else if passwordConfirmation = password
@setState passwordConfirmationIsValid: true
else
@setState passwordConfirmationIsValid: ''
render: ->
React.createElement BaseLayout, @props,
form className: 'sign-up form', onSubmit: @handleSubmit, onChange: @handleFormChange,
div className: 'row',
div className: 'field',
div className: 'col-sm-4',
label className: 'label', 'Email',
div className: 'col-sm-8',
input className: 'input', name: 'email', type: 'text', autoComplete: 'false'
div className: 'row',
div className: 'field',
div className: 'col-sm-4',
label className: 'label', 'Password',
div className: 'col-sm-8',
input className: 'input', name: 'password', type: 'password', autoComplete: 'false'
div className: 'row',
div className: 'field',
div className: 'col-sm-4',
label className: 'label', 'Confirm Password',
div className: 'col-sm-8',
input className: 'input ' + (if @state.passwordConfirmationIsValid == true then 'valid' else if @state.passwordConfirmationIsValid == false then 'invalid' else ''), name: 'passwordConfirmation', type: 'password', autoComplete: 'false', onChange: @validatePasswordConfirmation
div className: 'row',
div className: 'col-sm-12',
div className: 'text-right',
button className: 'btn btn-primary', 'Create Account'
module.exports = UserSignUp
| true | BaseLayout = require 'views/layouts/base.coffee'
User = require 'models/User.coffee'
{div, label, input, form, button} = React.DOM
UserSignUp = React.createClass
displayName: 'UserSignUp'
getInitialState: ->
formData: {}
passwordConfirmationIsValid: ''
handleSubmit: (ev) ->
ev.preventDefault()
if @state.passwordConfirmationIsValid
User.create(@state.formData).then (user) ->
document.cookie = 'sessionID='+user.id
ClientRouter.show('/job-postings')
handleFormChange: (ev) ->
@state.formData[ev.target.name] = ev.target.value #FIXME - this works but we shouldn't update state directly like this.
validatePasswordConfirmation: (ev) ->
passwordConfirmation = ev.target.value
password = PI:PASSWORD:<PASSWORD>END_PI
if passwordConfirmation.length >= password.length
if passwordConfirmation != password
@setState passwordConfirmationIsValid: false
else if passwordConfirmation = password
@setState passwordConfirmationIsValid: true
else
@setState passwordConfirmationIsValid: ''
render: ->
React.createElement BaseLayout, @props,
form className: 'sign-up form', onSubmit: @handleSubmit, onChange: @handleFormChange,
div className: 'row',
div className: 'field',
div className: 'col-sm-4',
label className: 'label', 'Email',
div className: 'col-sm-8',
input className: 'input', name: 'email', type: 'text', autoComplete: 'false'
div className: 'row',
div className: 'field',
div className: 'col-sm-4',
label className: 'label', 'Password',
div className: 'col-sm-8',
input className: 'input', name: 'password', type: 'password', autoComplete: 'false'
div className: 'row',
div className: 'field',
div className: 'col-sm-4',
label className: 'label', 'Confirm Password',
div className: 'col-sm-8',
input className: 'input ' + (if @state.passwordConfirmationIsValid == true then 'valid' else if @state.passwordConfirmationIsValid == false then 'invalid' else ''), name: 'passwordConfirmation', type: 'password', autoComplete: 'false', onChange: @validatePasswordConfirmation
div className: 'row',
div className: 'col-sm-12',
div className: 'text-right',
button className: 'btn btn-primary', 'Create Account'
module.exports = UserSignUp
|
[
{
"context": "nt key\n obj[key]\n\nexports.info = ->\n name: \"Aldi\"\n tag: \"shop-aldi\"\n\nexports.scrape = (opts={stor",
"end": 318,
"score": 0.9951592683792114,
"start": 314,
"tag": "NAME",
"value": "Aldi"
}
] | src/scrapers/aldi/index.coffee | 1egoman/cena_app | 0 | cheerio = require "cheerio"
request = require "request"
async = require "async"
_ = require "underscore"
# turn the crap jquery returns into a usable response
# I know, it's a dirty hack
makeArray = (obj) ->
_.compact Object.keys(obj).map (key) ->
if parseInt key
obj[key]
exports.info = ->
name: "Aldi"
tag: "shop-aldi"
exports.scrape = (opts={storeid: 2623397}, cb) ->
# send a request to all urls
async.map [
"http://weeklyads.aldi.us/Aldi/BrowseByPage/Index/?StoreID=#{opts.storeid}&PromotionCode=Aldi-150520INS&PromotionViewMode=1"
"http://weeklyads.aldi.us/Aldi/BrowseByListing/ByAllListings/?StoreID=#{opts.storeid}#PageNumber=1"
], (url, cb) ->
request
method: "GET"
url: url
, (error, resp, body) ->
cb error or null, body
, (error, results) ->
return cb error if error
output = _.flatten results.map (page) ->
# load markup into cheerio
$ = cheerio.load page
deals = $(".gridpage > div").map (i, e) ->
at = $(this)
# id for the item
id: at.attr("data-listingid")
# the name of the item
# filter out the extended description, and remove branding
name: do ->
n = at.find(".title").text().trim().toLowerCase().split "\r\n"
if n.length
n[0].replace("kirkwood", '').trim()
else
n.trim()
# an image representation of the item
img: at.find("img").attr "src"
# the items price
price: do ->
price = at.find(".deal").text()
# sort out the cents issue
if price.charCodeAt(price.length-1) is 162
price = "0.#{price[..1]}"
price
# the url of the item
url: "http://weeklyads.aldi.us/Aldi/ListingDetail?ispartial=N&ReturnCircularPageFlag=Y&StoreID=#{opts.storeid}&ListingID=#{at.attr("data-listingid")}"
makeArray deals
cb null, output
| 219213 | cheerio = require "cheerio"
request = require "request"
async = require "async"
_ = require "underscore"
# turn the crap jquery returns into a usable response
# I know, it's a dirty hack
makeArray = (obj) ->
_.compact Object.keys(obj).map (key) ->
if parseInt key
obj[key]
exports.info = ->
name: "<NAME>"
tag: "shop-aldi"
exports.scrape = (opts={storeid: 2623397}, cb) ->
# send a request to all urls
async.map [
"http://weeklyads.aldi.us/Aldi/BrowseByPage/Index/?StoreID=#{opts.storeid}&PromotionCode=Aldi-150520INS&PromotionViewMode=1"
"http://weeklyads.aldi.us/Aldi/BrowseByListing/ByAllListings/?StoreID=#{opts.storeid}#PageNumber=1"
], (url, cb) ->
request
method: "GET"
url: url
, (error, resp, body) ->
cb error or null, body
, (error, results) ->
return cb error if error
output = _.flatten results.map (page) ->
# load markup into cheerio
$ = cheerio.load page
deals = $(".gridpage > div").map (i, e) ->
at = $(this)
# id for the item
id: at.attr("data-listingid")
# the name of the item
# filter out the extended description, and remove branding
name: do ->
n = at.find(".title").text().trim().toLowerCase().split "\r\n"
if n.length
n[0].replace("kirkwood", '').trim()
else
n.trim()
# an image representation of the item
img: at.find("img").attr "src"
# the items price
price: do ->
price = at.find(".deal").text()
# sort out the cents issue
if price.charCodeAt(price.length-1) is 162
price = "0.#{price[..1]}"
price
# the url of the item
url: "http://weeklyads.aldi.us/Aldi/ListingDetail?ispartial=N&ReturnCircularPageFlag=Y&StoreID=#{opts.storeid}&ListingID=#{at.attr("data-listingid")}"
makeArray deals
cb null, output
| true | cheerio = require "cheerio"
request = require "request"
async = require "async"
_ = require "underscore"
# turn the crap jquery returns into a usable response
# I know, it's a dirty hack
makeArray = (obj) ->
_.compact Object.keys(obj).map (key) ->
if parseInt key
obj[key]
exports.info = ->
name: "PI:NAME:<NAME>END_PI"
tag: "shop-aldi"
exports.scrape = (opts={storeid: 2623397}, cb) ->
# send a request to all urls
async.map [
"http://weeklyads.aldi.us/Aldi/BrowseByPage/Index/?StoreID=#{opts.storeid}&PromotionCode=Aldi-150520INS&PromotionViewMode=1"
"http://weeklyads.aldi.us/Aldi/BrowseByListing/ByAllListings/?StoreID=#{opts.storeid}#PageNumber=1"
], (url, cb) ->
request
method: "GET"
url: url
, (error, resp, body) ->
cb error or null, body
, (error, results) ->
return cb error if error
output = _.flatten results.map (page) ->
# load markup into cheerio
$ = cheerio.load page
deals = $(".gridpage > div").map (i, e) ->
at = $(this)
# id for the item
id: at.attr("data-listingid")
# the name of the item
# filter out the extended description, and remove branding
name: do ->
n = at.find(".title").text().trim().toLowerCase().split "\r\n"
if n.length
n[0].replace("kirkwood", '').trim()
else
n.trim()
# an image representation of the item
img: at.find("img").attr "src"
# the items price
price: do ->
price = at.find(".deal").text()
# sort out the cents issue
if price.charCodeAt(price.length-1) is 162
price = "0.#{price[..1]}"
price
# the url of the item
url: "http://weeklyads.aldi.us/Aldi/ListingDetail?ispartial=N&ReturnCircularPageFlag=Y&StoreID=#{opts.storeid}&ListingID=#{at.attr("data-listingid")}"
makeArray deals
cb null, output
|
[
{
"context": "hly sexually dimorphic.\n '''\n\n scientificName: 'Papio cynocephalus'\n mainImage: 'assets/fieldguide-content/mammals/",
"end": 528,
"score": 0.9987218379974365,
"start": 510,
"tag": "NAME",
"value": "Papio cynocephalus"
}
] | app/lib/field-guide-content/baboon.coffee | zooniverse/snapshot-wisconsin | 0 | module.exports =
description: '''
Yellow baboons are aptly named for the yellow-brown fur that covers most of their bodies. The underside of yellow baboons is white, and their face, ears, hands, feet, and posterior appear purplish-black in color and are free of fur. Like other baboons, yellow baboons have doglike noses, powerful jaws, and sharp canine teeth, and they lack a prehensile (gripping) tail. Yellow baboons are the largest baboon and are highly sexually dimorphic.
'''
scientificName: 'Papio cynocephalus'
mainImage: 'assets/fieldguide-content/mammals/baboon/baboon-feature.jpg'
information: [{
label: 'Length'
value: '50-79 cm'
}, {
label: 'Tail Length'
value: '35-75 cm'
}, {
label: 'Mail Weight'
value: '21-26 kg'
}, {
label: 'Female Weight'
value: '12-14 kg'
}, {
label: 'Lifespan'
value: '20-30 years'
}, {
label: 'Gestation'
value: '6 months'
}, {
label: 'Avg. number of offspring'
value: '1'
}]
sections: [{
title: 'Habitat'
content: 'Yellow baboons are found in savanna grassland, steppe, and rainforest habitats.'
}, {
title: 'Diet'
content: 'Grasses, seeds, lichens, fruits, flowers, invertebrates, reptiles, birds, and other primates, such as vervet monkeys and bushbabies'
}, {
title: 'Predators'
content: 'Humans, leopards, cheetah'
}, {
title: 'Behavior'
content: '''
<p>Yellow baboons are highly social, living in groups known as troops, which can contain dozens or even hundreds of individuals of both sexes. Baboons sleep, feed, travel, and socialize within troops. Male baboons compete for dominance, with high-ranking males having an advantage when it comes to mating, food, water, and territory. Troops spend the majority of the day on the ground foraging for a wide variety of foods with intermittent periods of socialization. Baboons groom one another to remove insects and dead skin and use barklike vocalizations. Yellow baboons also exhibit other behaviors such as branch-shaking, teeth displays, ground-slapping, and yawning as forms of communication.</p>
<p>Yellow baboons move on all fours over the ground with their tail raised in the air at an angle. Like other Old World Monkeys, they lack a prehensile (gripping) tail but are still able to climb trees with ease to eat, sleep, and play.<p>
'''
}, {
title: 'Breeding'
content: '''
Mating is polygynandrous, with both males and females mating with multiple partners. Females reach sexual maturity at around five years of age. After a gestation period of about six months, yellow baboons typically give birth to one young. Weaning occurs sometime around one year of age. Females generally reproduce every two years and will continue to reproduce consistently until old age. Most parental behavior is performed by the female; females nurse, groom, and play with their offspring.
'''
}, {
title: 'Fun Facts'
style: 'focus-box'
content: '''
<ol>
<li>The scientific name for yellow baboons comes from the Greek words kynos and kephalikos, meaning “dog” and “head.”</li>
<li>Yellow baboons are the largest species of baboon</li>
</ol>
'''
},{
title: 'Distribution'
content: '<img src="assets/fieldguide-content/mammals/baboon/baboon-map.jpg"/>'
}]
| 140139 | module.exports =
description: '''
Yellow baboons are aptly named for the yellow-brown fur that covers most of their bodies. The underside of yellow baboons is white, and their face, ears, hands, feet, and posterior appear purplish-black in color and are free of fur. Like other baboons, yellow baboons have doglike noses, powerful jaws, and sharp canine teeth, and they lack a prehensile (gripping) tail. Yellow baboons are the largest baboon and are highly sexually dimorphic.
'''
scientificName: '<NAME>'
mainImage: 'assets/fieldguide-content/mammals/baboon/baboon-feature.jpg'
information: [{
label: 'Length'
value: '50-79 cm'
}, {
label: 'Tail Length'
value: '35-75 cm'
}, {
label: 'Mail Weight'
value: '21-26 kg'
}, {
label: 'Female Weight'
value: '12-14 kg'
}, {
label: 'Lifespan'
value: '20-30 years'
}, {
label: 'Gestation'
value: '6 months'
}, {
label: 'Avg. number of offspring'
value: '1'
}]
sections: [{
title: 'Habitat'
content: 'Yellow baboons are found in savanna grassland, steppe, and rainforest habitats.'
}, {
title: 'Diet'
content: 'Grasses, seeds, lichens, fruits, flowers, invertebrates, reptiles, birds, and other primates, such as vervet monkeys and bushbabies'
}, {
title: 'Predators'
content: 'Humans, leopards, cheetah'
}, {
title: 'Behavior'
content: '''
<p>Yellow baboons are highly social, living in groups known as troops, which can contain dozens or even hundreds of individuals of both sexes. Baboons sleep, feed, travel, and socialize within troops. Male baboons compete for dominance, with high-ranking males having an advantage when it comes to mating, food, water, and territory. Troops spend the majority of the day on the ground foraging for a wide variety of foods with intermittent periods of socialization. Baboons groom one another to remove insects and dead skin and use barklike vocalizations. Yellow baboons also exhibit other behaviors such as branch-shaking, teeth displays, ground-slapping, and yawning as forms of communication.</p>
<p>Yellow baboons move on all fours over the ground with their tail raised in the air at an angle. Like other Old World Monkeys, they lack a prehensile (gripping) tail but are still able to climb trees with ease to eat, sleep, and play.<p>
'''
}, {
title: 'Breeding'
content: '''
Mating is polygynandrous, with both males and females mating with multiple partners. Females reach sexual maturity at around five years of age. After a gestation period of about six months, yellow baboons typically give birth to one young. Weaning occurs sometime around one year of age. Females generally reproduce every two years and will continue to reproduce consistently until old age. Most parental behavior is performed by the female; females nurse, groom, and play with their offspring.
'''
}, {
title: 'Fun Facts'
style: 'focus-box'
content: '''
<ol>
<li>The scientific name for yellow baboons comes from the Greek words kynos and kephalikos, meaning “dog” and “head.”</li>
<li>Yellow baboons are the largest species of baboon</li>
</ol>
'''
},{
title: 'Distribution'
content: '<img src="assets/fieldguide-content/mammals/baboon/baboon-map.jpg"/>'
}]
| true | module.exports =
description: '''
Yellow baboons are aptly named for the yellow-brown fur that covers most of their bodies. The underside of yellow baboons is white, and their face, ears, hands, feet, and posterior appear purplish-black in color and are free of fur. Like other baboons, yellow baboons have doglike noses, powerful jaws, and sharp canine teeth, and they lack a prehensile (gripping) tail. Yellow baboons are the largest baboon and are highly sexually dimorphic.
'''
scientificName: 'PI:NAME:<NAME>END_PI'
mainImage: 'assets/fieldguide-content/mammals/baboon/baboon-feature.jpg'
information: [{
label: 'Length'
value: '50-79 cm'
}, {
label: 'Tail Length'
value: '35-75 cm'
}, {
label: 'Mail Weight'
value: '21-26 kg'
}, {
label: 'Female Weight'
value: '12-14 kg'
}, {
label: 'Lifespan'
value: '20-30 years'
}, {
label: 'Gestation'
value: '6 months'
}, {
label: 'Avg. number of offspring'
value: '1'
}]
sections: [{
title: 'Habitat'
content: 'Yellow baboons are found in savanna grassland, steppe, and rainforest habitats.'
}, {
title: 'Diet'
content: 'Grasses, seeds, lichens, fruits, flowers, invertebrates, reptiles, birds, and other primates, such as vervet monkeys and bushbabies'
}, {
title: 'Predators'
content: 'Humans, leopards, cheetah'
}, {
title: 'Behavior'
content: '''
<p>Yellow baboons are highly social, living in groups known as troops, which can contain dozens or even hundreds of individuals of both sexes. Baboons sleep, feed, travel, and socialize within troops. Male baboons compete for dominance, with high-ranking males having an advantage when it comes to mating, food, water, and territory. Troops spend the majority of the day on the ground foraging for a wide variety of foods with intermittent periods of socialization. Baboons groom one another to remove insects and dead skin and use barklike vocalizations. Yellow baboons also exhibit other behaviors such as branch-shaking, teeth displays, ground-slapping, and yawning as forms of communication.</p>
<p>Yellow baboons move on all fours over the ground with their tail raised in the air at an angle. Like other Old World Monkeys, they lack a prehensile (gripping) tail but are still able to climb trees with ease to eat, sleep, and play.<p>
'''
}, {
title: 'Breeding'
content: '''
Mating is polygynandrous, with both males and females mating with multiple partners. Females reach sexual maturity at around five years of age. After a gestation period of about six months, yellow baboons typically give birth to one young. Weaning occurs sometime around one year of age. Females generally reproduce every two years and will continue to reproduce consistently until old age. Most parental behavior is performed by the female; females nurse, groom, and play with their offspring.
'''
}, {
title: 'Fun Facts'
style: 'focus-box'
content: '''
<ol>
<li>The scientific name for yellow baboons comes from the Greek words kynos and kephalikos, meaning “dog” and “head.”</li>
<li>Yellow baboons are the largest species of baboon</li>
</ol>
'''
},{
title: 'Distribution'
content: '<img src="assets/fieldguide-content/mammals/baboon/baboon-map.jpg"/>'
}]
|
[
{
"context": "\"collection\": \"user\"\n \"username\": $(\"[name=admin-username]\").val()\n \"password\": $(\"[name=admin-passw",
"end": 2802,
"score": 0.8893659114837646,
"start": 2788,
"tag": "USERNAME",
"value": "admin-username"
},
{
"context": "name=admin-username]\... | _attachments/app.coffee | ICTatRTI/coconut-factory | 0 | class Router extends Backbone.Router
routes:
"": "default"
default: ->
(Coconut.defaultView ?= new DefaultView()).render()
startApp: ->
Backbone.history.start()
class DefaultView extends Backbone.View
el: '#content'
events:
"click #create": "create"
"keyup [name='config-title']": "updateDatabaseName"
"change [name='config-sync-mode']": "toggleHTTPPost"
toggleHTTPPost: ->
$("#http-post-target").toggle($("[name='config-sync-mode']:checked").val() is "http-post")
updateDatabaseName: ->
if $("[name=database-name]").val()?
$("[name=database-name]").val $("[name=config-title]").val().toLowerCase().replace(/\s/g,"-").replace(/[^A-Za-z\-]/g,"")
create: =>
name = $("[name=database-name]").val()
$.couch.db(name).create
success: =>
@replicateCoconutCoreDatabase
target: name
success: =>
@putConfig
success: =>
@putLocalConfig
success: =>
@putAdminUser
success: =>
error: (error,response, message) ->
message = "Error: '#{message}' while creating database '#{name}'"
$("#message").html message
replicateCoconutCoreDatabase:(options) ->
target = options.target
@replicateDesignDoc
target: target
success: ->
$("#message").html "
Successfully created #{target}. <br/>
<a href='/#{target}/_design/coconut/index.html'>Configure Coconut: #{target}</a>
"
options.success?()
error: (error) ->
message = "Error: '#{error} ' while copying application data to #{name}"
$("#message").html message
console.log message
console.log error
options.error?()
putLocalConfig: (options) =>
@putDocument _.extend options,
document:
"_id": "coconut.config.local"
"mode": "cloud"
putConfig: (options) =>
@putDocument _.extend options,
document:
"_id": "coconut.config"
"title": $("[name=config-title]").val()
"cloud": "http://#{document.location.host}"
"cloud_database_name": $("[name=database-name]").val()
"cloud_credentials": "#{cloudCouchUsername}:#{cloudCouchPassword}"
"date_format": "YYYY-MM-DD HH:mm:ss"
"sync_mode": $('[name=config-sync-mode]:checked').val()
"http-post-target": $("[name=config-http-post-target]").val() if $('[name=config-sync-mode]:checked').val() is "http-post"
"completion_mode": $('[name=completion-mode]:checked').val()
"isApplicationDoc": true
putAdminUser: (options) =>
@putDocument _.extend options,
document:
"_id": "user.admin"
"collection": "user"
"username": $("[name=admin-username]").val()
"password": $("[name=admin-password]").val()
putDocument: (options) =>
$.couch.db($("[name=database-name]").val()).saveDoc options.document,
success: =>
options.success()
error: ->
message = "Error: '#{error}' while creating document #{JSON.stringify(document)}"
$("#message").html message
console.log message
console.log error
replicate: (options) ->
$.couch.replicate(
"coconut-factory",
options.target,
success: ->
options.success()
error: ->
options.error()
,
options.replicationArguments
)
replicateDesignDoc: (options) =>
@replicate _.extend options,
replicationArguments:
doc_ids: ["_design/coconut"]
render: ->
@$el.html "
<style>
body{
background-color:lightblue;
font-family: sans-serif;
font-size: 20pt;
color: #95634e;
}
label{
display:block;
margin-top: 20px;
color: #95634e;
}
h1{
text-align:center;
color: #95634e;
font-size: 60pt;
}
input{
height: 50px;
width: 350px;
font-size: 20pt;
font-family: sans-serif;
background: #ffe88c;
color: #578729;
}
button{
margin-top: 20px;
display: block;
background: #578729;
color: #ffe88c;
font-size: 50pt;
font-family: sans-serif;
}
[type=radio]{
width: 10px;
}
</style>
<div style='position:fixed; right:50px; top:00px;'>
<h1>Coconut<br/>
Factory</h1>
<img src='palm-tree-icon.png'/>
</div>
<label>Name of Coconut Application</label>
<input name='config-title' type='text'></input>
<!--
<label>Date Format</label>
<input name='config-date_format' type='text' value='YYYY-MM-DD HH:mm:ss'></input>
-->
<label>Admin username</label>
<input name='admin-username' type='text' value='admin'></input>
<label>Admin password</label>
<input name='admin-password' type='text' value='admin'></input>
<label>Name of database</label>
<input name='database-name' type='text'></input>
<!-- Made this for the Philippines - not really necessary -->
<div style='display:none'>
<label>Send Mode</label>
<div>
<input id='couchdb-sync' name='config-sync-mode' type='radio' value='couchdb-sync' checked='true'></input>
<label style='display:inline' for='couchdb-sync'>CouchDB Sync (recommended)</label>
</div>
<div>
<input id='http-post' name='config-sync-mode' type='radio' value='http-post'></input>
<label style='display:inline' for='http-post'>HTTP Post</label>
</div>
<br/>
<div style='display:none' id='http-post-target'>
<label>HTTP Post Target</label>
<input name='config-http-post-target' type='text' value='http://192.168.1.1/coconut.php'></input>
</div>
</div>
<label>Completion Mode</label>
<div>
<input id='complete-on-send' name='completion-mode' type='radio' value='on-send' checked='true'></input>
<label style='display:inline' for='complete-on-send'>When result is successfully sent</label>
</div>
<div>
<input id='complete-on-check' name='completion-mode' type='radio' value='on-check'></input>
<label style='display:inline' for='complete-on-check'>When the user marks complete (forms must include complete checkbox)</label>
</div>
<br/>
TODO:
<ul>
<li>Select form to form workflow option (coconut needs UI for selecting which values copy over)</li>
<li>Allow filtered push of results (pre-populate forms based on who is logged in)</li>
</ul>
<button id='create' type='button'>Create</button>
<div id='message'>
</div>
"
cloudCouchUsername = prompt "Enter username"
cloudCouchPassword = prompt "Enter password"
$.couch.login
name: cloudCouchUsername
password: cloudCouchPassword
Coconut = {}
Coconut.router = new Router()
Coconut.router.startApp()
Coconut.debug = (string) ->
console.log string
$("#message").append string + "<br/>"
| 135016 | class Router extends Backbone.Router
routes:
"": "default"
default: ->
(Coconut.defaultView ?= new DefaultView()).render()
startApp: ->
Backbone.history.start()
class DefaultView extends Backbone.View
el: '#content'
events:
"click #create": "create"
"keyup [name='config-title']": "updateDatabaseName"
"change [name='config-sync-mode']": "toggleHTTPPost"
toggleHTTPPost: ->
$("#http-post-target").toggle($("[name='config-sync-mode']:checked").val() is "http-post")
updateDatabaseName: ->
if $("[name=database-name]").val()?
$("[name=database-name]").val $("[name=config-title]").val().toLowerCase().replace(/\s/g,"-").replace(/[^A-Za-z\-]/g,"")
create: =>
name = $("[name=database-name]").val()
$.couch.db(name).create
success: =>
@replicateCoconutCoreDatabase
target: name
success: =>
@putConfig
success: =>
@putLocalConfig
success: =>
@putAdminUser
success: =>
error: (error,response, message) ->
message = "Error: '#{message}' while creating database '#{name}'"
$("#message").html message
replicateCoconutCoreDatabase:(options) ->
target = options.target
@replicateDesignDoc
target: target
success: ->
$("#message").html "
Successfully created #{target}. <br/>
<a href='/#{target}/_design/coconut/index.html'>Configure Coconut: #{target}</a>
"
options.success?()
error: (error) ->
message = "Error: '#{error} ' while copying application data to #{name}"
$("#message").html message
console.log message
console.log error
options.error?()
putLocalConfig: (options) =>
@putDocument _.extend options,
document:
"_id": "coconut.config.local"
"mode": "cloud"
putConfig: (options) =>
@putDocument _.extend options,
document:
"_id": "coconut.config"
"title": $("[name=config-title]").val()
"cloud": "http://#{document.location.host}"
"cloud_database_name": $("[name=database-name]").val()
"cloud_credentials": "#{cloudCouchUsername}:#{cloudCouchPassword}"
"date_format": "YYYY-MM-DD HH:mm:ss"
"sync_mode": $('[name=config-sync-mode]:checked').val()
"http-post-target": $("[name=config-http-post-target]").val() if $('[name=config-sync-mode]:checked').val() is "http-post"
"completion_mode": $('[name=completion-mode]:checked').val()
"isApplicationDoc": true
putAdminUser: (options) =>
@putDocument _.extend options,
document:
"_id": "user.admin"
"collection": "user"
"username": $("[name=admin-username]").val()
"password": $("[<PASSWORD>()
putDocument: (options) =>
$.couch.db($("[name=database-name]").val()).saveDoc options.document,
success: =>
options.success()
error: ->
message = "Error: '#{error}' while creating document #{JSON.stringify(document)}"
$("#message").html message
console.log message
console.log error
replicate: (options) ->
$.couch.replicate(
"coconut-factory",
options.target,
success: ->
options.success()
error: ->
options.error()
,
options.replicationArguments
)
replicateDesignDoc: (options) =>
@replicate _.extend options,
replicationArguments:
doc_ids: ["_design/coconut"]
render: ->
@$el.html "
<style>
body{
background-color:lightblue;
font-family: sans-serif;
font-size: 20pt;
color: #95634e;
}
label{
display:block;
margin-top: 20px;
color: #95634e;
}
h1{
text-align:center;
color: #95634e;
font-size: 60pt;
}
input{
height: 50px;
width: 350px;
font-size: 20pt;
font-family: sans-serif;
background: #ffe88c;
color: #578729;
}
button{
margin-top: 20px;
display: block;
background: #578729;
color: #ffe88c;
font-size: 50pt;
font-family: sans-serif;
}
[type=radio]{
width: 10px;
}
</style>
<div style='position:fixed; right:50px; top:00px;'>
<h1>Coconut<br/>
Factory</h1>
<img src='palm-tree-icon.png'/>
</div>
<label>Name of Coconut Application</label>
<input name='config-title' type='text'></input>
<!--
<label>Date Format</label>
<input name='config-date_format' type='text' value='YYYY-MM-DD HH:mm:ss'></input>
-->
<label>Admin username</label>
<input name='admin-username' type='text' value='admin'></input>
<label>Admin password</label>
<input name='admin-password' type='text' value='<PASSWORD>'></input>
<label>Name of database</label>
<input name='database-name' type='text'></input>
<!-- Made this for the Philippines - not really necessary -->
<div style='display:none'>
<label>Send Mode</label>
<div>
<input id='couchdb-sync' name='config-sync-mode' type='radio' value='couchdb-sync' checked='true'></input>
<label style='display:inline' for='couchdb-sync'>CouchDB Sync (recommended)</label>
</div>
<div>
<input id='http-post' name='config-sync-mode' type='radio' value='http-post'></input>
<label style='display:inline' for='http-post'>HTTP Post</label>
</div>
<br/>
<div style='display:none' id='http-post-target'>
<label>HTTP Post Target</label>
<input name='config-http-post-target' type='text' value='http://192.168.1.1/coconut.php'></input>
</div>
</div>
<label>Completion Mode</label>
<div>
<input id='complete-on-send' name='completion-mode' type='radio' value='on-send' checked='true'></input>
<label style='display:inline' for='complete-on-send'>When result is successfully sent</label>
</div>
<div>
<input id='complete-on-check' name='completion-mode' type='radio' value='on-check'></input>
<label style='display:inline' for='complete-on-check'>When the user marks complete (forms must include complete checkbox)</label>
</div>
<br/>
TODO:
<ul>
<li>Select form to form workflow option (coconut needs UI for selecting which values copy over)</li>
<li>Allow filtered push of results (pre-populate forms based on who is logged in)</li>
</ul>
<button id='create' type='button'>Create</button>
<div id='message'>
</div>
"
cloudCouchUsername = prompt "Enter username"
cloudCouchPassword = prompt "Enter password"
$.couch.login
name: cloudCouchUsername
password: <PASSWORD>
Coconut = {}
Coconut.router = new Router()
Coconut.router.startApp()
Coconut.debug = (string) ->
console.log string
$("#message").append string + "<br/>"
| true | class Router extends Backbone.Router
routes:
"": "default"
default: ->
(Coconut.defaultView ?= new DefaultView()).render()
startApp: ->
Backbone.history.start()
class DefaultView extends Backbone.View
el: '#content'
events:
"click #create": "create"
"keyup [name='config-title']": "updateDatabaseName"
"change [name='config-sync-mode']": "toggleHTTPPost"
toggleHTTPPost: ->
$("#http-post-target").toggle($("[name='config-sync-mode']:checked").val() is "http-post")
updateDatabaseName: ->
if $("[name=database-name]").val()?
$("[name=database-name]").val $("[name=config-title]").val().toLowerCase().replace(/\s/g,"-").replace(/[^A-Za-z\-]/g,"")
create: =>
name = $("[name=database-name]").val()
$.couch.db(name).create
success: =>
@replicateCoconutCoreDatabase
target: name
success: =>
@putConfig
success: =>
@putLocalConfig
success: =>
@putAdminUser
success: =>
error: (error,response, message) ->
message = "Error: '#{message}' while creating database '#{name}'"
$("#message").html message
replicateCoconutCoreDatabase:(options) ->
target = options.target
@replicateDesignDoc
target: target
success: ->
$("#message").html "
Successfully created #{target}. <br/>
<a href='/#{target}/_design/coconut/index.html'>Configure Coconut: #{target}</a>
"
options.success?()
error: (error) ->
message = "Error: '#{error} ' while copying application data to #{name}"
$("#message").html message
console.log message
console.log error
options.error?()
putLocalConfig: (options) =>
@putDocument _.extend options,
document:
"_id": "coconut.config.local"
"mode": "cloud"
putConfig: (options) =>
@putDocument _.extend options,
document:
"_id": "coconut.config"
"title": $("[name=config-title]").val()
"cloud": "http://#{document.location.host}"
"cloud_database_name": $("[name=database-name]").val()
"cloud_credentials": "#{cloudCouchUsername}:#{cloudCouchPassword}"
"date_format": "YYYY-MM-DD HH:mm:ss"
"sync_mode": $('[name=config-sync-mode]:checked').val()
"http-post-target": $("[name=config-http-post-target]").val() if $('[name=config-sync-mode]:checked').val() is "http-post"
"completion_mode": $('[name=completion-mode]:checked').val()
"isApplicationDoc": true
putAdminUser: (options) =>
@putDocument _.extend options,
document:
"_id": "user.admin"
"collection": "user"
"username": $("[name=admin-username]").val()
"password": $("[PI:PASSWORD:<PASSWORD>END_PI()
putDocument: (options) =>
$.couch.db($("[name=database-name]").val()).saveDoc options.document,
success: =>
options.success()
error: ->
message = "Error: '#{error}' while creating document #{JSON.stringify(document)}"
$("#message").html message
console.log message
console.log error
replicate: (options) ->
$.couch.replicate(
"coconut-factory",
options.target,
success: ->
options.success()
error: ->
options.error()
,
options.replicationArguments
)
replicateDesignDoc: (options) =>
@replicate _.extend options,
replicationArguments:
doc_ids: ["_design/coconut"]
render: ->
@$el.html "
<style>
body{
background-color:lightblue;
font-family: sans-serif;
font-size: 20pt;
color: #95634e;
}
label{
display:block;
margin-top: 20px;
color: #95634e;
}
h1{
text-align:center;
color: #95634e;
font-size: 60pt;
}
input{
height: 50px;
width: 350px;
font-size: 20pt;
font-family: sans-serif;
background: #ffe88c;
color: #578729;
}
button{
margin-top: 20px;
display: block;
background: #578729;
color: #ffe88c;
font-size: 50pt;
font-family: sans-serif;
}
[type=radio]{
width: 10px;
}
</style>
<div style='position:fixed; right:50px; top:00px;'>
<h1>Coconut<br/>
Factory</h1>
<img src='palm-tree-icon.png'/>
</div>
<label>Name of Coconut Application</label>
<input name='config-title' type='text'></input>
<!--
<label>Date Format</label>
<input name='config-date_format' type='text' value='YYYY-MM-DD HH:mm:ss'></input>
-->
<label>Admin username</label>
<input name='admin-username' type='text' value='admin'></input>
<label>Admin password</label>
<input name='admin-password' type='text' value='PI:PASSWORD:<PASSWORD>END_PI'></input>
<label>Name of database</label>
<input name='database-name' type='text'></input>
<!-- Made this for the Philippines - not really necessary -->
<div style='display:none'>
<label>Send Mode</label>
<div>
<input id='couchdb-sync' name='config-sync-mode' type='radio' value='couchdb-sync' checked='true'></input>
<label style='display:inline' for='couchdb-sync'>CouchDB Sync (recommended)</label>
</div>
<div>
<input id='http-post' name='config-sync-mode' type='radio' value='http-post'></input>
<label style='display:inline' for='http-post'>HTTP Post</label>
</div>
<br/>
<div style='display:none' id='http-post-target'>
<label>HTTP Post Target</label>
<input name='config-http-post-target' type='text' value='http://192.168.1.1/coconut.php'></input>
</div>
</div>
<label>Completion Mode</label>
<div>
<input id='complete-on-send' name='completion-mode' type='radio' value='on-send' checked='true'></input>
<label style='display:inline' for='complete-on-send'>When result is successfully sent</label>
</div>
<div>
<input id='complete-on-check' name='completion-mode' type='radio' value='on-check'></input>
<label style='display:inline' for='complete-on-check'>When the user marks complete (forms must include complete checkbox)</label>
</div>
<br/>
TODO:
<ul>
<li>Select form to form workflow option (coconut needs UI for selecting which values copy over)</li>
<li>Allow filtered push of results (pre-populate forms based on who is logged in)</li>
</ul>
<button id='create' type='button'>Create</button>
<div id='message'>
</div>
"
cloudCouchUsername = prompt "Enter username"
cloudCouchPassword = prompt "Enter password"
$.couch.login
name: cloudCouchUsername
password: PI:PASSWORD:<PASSWORD>END_PI
Coconut = {}
Coconut.router = new Router()
Coconut.router.startApp()
Coconut.debug = (string) ->
console.log string
$("#message").append string + "<br/>"
|
[
{
"context": " on script level\n# Inspider by https://github.com/miyagawa/hubot-cron\n\n# @author Pavel Vanecek <pavel.vanece",
"end": 90,
"score": 0.9969865083694458,
"start": 82,
"tag": "USERNAME",
"value": "miyagawa"
},
{
"context": " https://github.com/miyagawa/hubot-cron\n\n# @a... | node_modules/hubot-cronjob/src/cronjob.coffee | mikelovskij/sauron2 | 0 | # Allows you to create cron jobs on script level
# Inspider by https://github.com/miyagawa/hubot-cron
# @author Pavel Vanecek <pavel.vanecek@merck.com>
{ CronJob } = require 'cron'
class HubotCron
constructor: (@pattern, @timezone, @fn, @context = global) ->
@cronjob = new CronJob(
@pattern
@onTick.bind(this)
null
false
@timezone
)
if 'function' != typeof @fn
throw new Error "the third parameter must be a function, got (#{typeof @fn}) instead"
@cronjob.start()
stop: ->
@cronjob.stop()
onTick: ->
Function::call.apply @fn, @context
module.exports = HubotCron
| 21271 | # Allows you to create cron jobs on script level
# Inspider by https://github.com/miyagawa/hubot-cron
# @author <NAME> <<EMAIL>>
{ CronJob } = require 'cron'
class HubotCron
constructor: (@pattern, @timezone, @fn, @context = global) ->
@cronjob = new CronJob(
@pattern
@onTick.bind(this)
null
false
@timezone
)
if 'function' != typeof @fn
throw new Error "the third parameter must be a function, got (#{typeof @fn}) instead"
@cronjob.start()
stop: ->
@cronjob.stop()
onTick: ->
Function::call.apply @fn, @context
module.exports = HubotCron
| true | # Allows you to create cron jobs on script level
# Inspider by https://github.com/miyagawa/hubot-cron
# @author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
{ CronJob } = require 'cron'
class HubotCron
constructor: (@pattern, @timezone, @fn, @context = global) ->
@cronjob = new CronJob(
@pattern
@onTick.bind(this)
null
false
@timezone
)
if 'function' != typeof @fn
throw new Error "the third parameter must be a function, got (#{typeof @fn}) instead"
@cronjob.start()
stop: ->
@cronjob.stop()
onTick: ->
Function::call.apply @fn, @context
module.exports = HubotCron
|
[
{
"context": "': 'Lu'\n '\\ud835\\udeb8': 'Lu'\n '\\ud835\\udeb9': 'Lu'\n '\\ud835\\udeba': 'Lu'\n '\\ud835\\udebb': 'Lu'\n ",
"end": 338819,
"score": 0.7531304955482483,
"start": 338817,
"tag": "NAME",
"value": "Lu"
}
] | minitests/charclass.coffee | edwinksl/zotero-better-bibtex | 0 | CharClass =
'\u0030': 'N'
'\u0031': 'N'
'\u0032': 'N'
'\u0033': 'N'
'\u0034': 'N'
'\u0035': 'N'
'\u0036': 'N'
'\u0037': 'N'
'\u0038': 'N'
'\u0039': 'N'
'\u0041': 'Lu'
'\u0042': 'Lu'
'\u0043': 'Lu'
'\u0044': 'Lu'
'\u0045': 'Lu'
'\u0046': 'Lu'
'\u0047': 'Lu'
'\u0048': 'Lu'
'\u0049': 'Lu'
'\u004a': 'Lu'
'\u004b': 'Lu'
'\u004c': 'Lu'
'\u004d': 'Lu'
'\u004e': 'Lu'
'\u004f': 'Lu'
'\u0050': 'Lu'
'\u0051': 'Lu'
'\u0052': 'Lu'
'\u0053': 'Lu'
'\u0054': 'Lu'
'\u0055': 'Lu'
'\u0056': 'Lu'
'\u0057': 'Lu'
'\u0058': 'Lu'
'\u0059': 'Lu'
'\u005a': 'Lu'
'\u0061': 'L'
'\u0062': 'L'
'\u0063': 'L'
'\u0064': 'L'
'\u0065': 'L'
'\u0066': 'L'
'\u0067': 'L'
'\u0068': 'L'
'\u0069': 'L'
'\u006a': 'L'
'\u006b': 'L'
'\u006c': 'L'
'\u006d': 'L'
'\u006e': 'L'
'\u006f': 'L'
'\u0070': 'L'
'\u0071': 'L'
'\u0072': 'L'
'\u0073': 'L'
'\u0074': 'L'
'\u0075': 'L'
'\u0076': 'L'
'\u0077': 'L'
'\u0078': 'L'
'\u0079': 'L'
'\u007a': 'L'
'\u00aa': 'L'
'\u00b2': 'N'
'\u00b3': 'N'
'\u00b5': 'L'
'\u00b9': 'N'
'\u00ba': 'L'
'\u00bc': 'N'
'\u00bd': 'N'
'\u00be': 'N'
'\u00c0': 'Lu'
'\u00c1': 'Lu'
'\u00c2': 'Lu'
'\u00c3': 'Lu'
'\u00c4': 'Lu'
'\u00c5': 'Lu'
'\u00c6': 'Lu'
'\u00c7': 'Lu'
'\u00c8': 'Lu'
'\u00c9': 'Lu'
'\u00ca': 'Lu'
'\u00cb': 'Lu'
'\u00cc': 'Lu'
'\u00cd': 'Lu'
'\u00ce': 'Lu'
'\u00cf': 'Lu'
'\u00d0': 'Lu'
'\u00d1': 'Lu'
'\u00d2': 'Lu'
'\u00d3': 'Lu'
'\u00d4': 'Lu'
'\u00d5': 'Lu'
'\u00d6': 'Lu'
'\u00d8': 'Lu'
'\u00d9': 'Lu'
'\u00da': 'Lu'
'\u00db': 'Lu'
'\u00dc': 'Lu'
'\u00dd': 'Lu'
'\u00de': 'Lu'
'\u00df': 'L'
'\u00e0': 'L'
'\u00e1': 'L'
'\u00e2': 'L'
'\u00e3': 'L'
'\u00e4': 'L'
'\u00e5': 'L'
'\u00e6': 'L'
'\u00e7': 'L'
'\u00e8': 'L'
'\u00e9': 'L'
'\u00ea': 'L'
'\u00eb': 'L'
'\u00ec': 'L'
'\u00ed': 'L'
'\u00ee': 'L'
'\u00ef': 'L'
'\u00f0': 'L'
'\u00f1': 'L'
'\u00f2': 'L'
'\u00f3': 'L'
'\u00f4': 'L'
'\u00f5': 'L'
'\u00f6': 'L'
'\u00f8': 'L'
'\u00f9': 'L'
'\u00fa': 'L'
'\u00fb': 'L'
'\u00fc': 'L'
'\u00fd': 'L'
'\u00fe': 'L'
'\u00ff': 'L'
'\u0100': 'Lu'
'\u0101': 'L'
'\u0102': 'Lu'
'\u0103': 'L'
'\u0104': 'Lu'
'\u0105': 'L'
'\u0106': 'Lu'
'\u0107': 'L'
'\u0108': 'Lu'
'\u0109': 'L'
'\u010a': 'Lu'
'\u010b': 'L'
'\u010c': 'Lu'
'\u010d': 'L'
'\u010e': 'Lu'
'\u010f': 'L'
'\u0110': 'Lu'
'\u0111': 'L'
'\u0112': 'Lu'
'\u0113': 'L'
'\u0114': 'Lu'
'\u0115': 'L'
'\u0116': 'Lu'
'\u0117': 'L'
'\u0118': 'Lu'
'\u0119': 'L'
'\u011a': 'Lu'
'\u011b': 'L'
'\u011c': 'Lu'
'\u011d': 'L'
'\u011e': 'Lu'
'\u011f': 'L'
'\u0120': 'Lu'
'\u0121': 'L'
'\u0122': 'Lu'
'\u0123': 'L'
'\u0124': 'Lu'
'\u0125': 'L'
'\u0126': 'Lu'
'\u0127': 'L'
'\u0128': 'Lu'
'\u0129': 'L'
'\u012a': 'Lu'
'\u012b': 'L'
'\u012c': 'Lu'
'\u012d': 'L'
'\u012e': 'Lu'
'\u012f': 'L'
'\u0130': 'Lu'
'\u0131': 'L'
'\u0132': 'Lu'
'\u0133': 'L'
'\u0134': 'Lu'
'\u0135': 'L'
'\u0136': 'Lu'
'\u0137': 'L'
'\u0138': 'L'
'\u0139': 'Lu'
'\u013a': 'L'
'\u013b': 'Lu'
'\u013c': 'L'
'\u013d': 'Lu'
'\u013e': 'L'
'\u013f': 'Lu'
'\u0140': 'L'
'\u0141': 'Lu'
'\u0142': 'L'
'\u0143': 'Lu'
'\u0144': 'L'
'\u0145': 'Lu'
'\u0146': 'L'
'\u0147': 'Lu'
'\u0148': 'L'
'\u0149': 'L'
'\u014a': 'Lu'
'\u014b': 'L'
'\u014c': 'Lu'
'\u014d': 'L'
'\u014e': 'Lu'
'\u014f': 'L'
'\u0150': 'Lu'
'\u0151': 'L'
'\u0152': 'Lu'
'\u0153': 'L'
'\u0154': 'Lu'
'\u0155': 'L'
'\u0156': 'Lu'
'\u0157': 'L'
'\u0158': 'Lu'
'\u0159': 'L'
'\u015a': 'Lu'
'\u015b': 'L'
'\u015c': 'Lu'
'\u015d': 'L'
'\u015e': 'Lu'
'\u015f': 'L'
'\u0160': 'Lu'
'\u0161': 'L'
'\u0162': 'Lu'
'\u0163': 'L'
'\u0164': 'Lu'
'\u0165': 'L'
'\u0166': 'Lu'
'\u0167': 'L'
'\u0168': 'Lu'
'\u0169': 'L'
'\u016a': 'Lu'
'\u016b': 'L'
'\u016c': 'Lu'
'\u016d': 'L'
'\u016e': 'Lu'
'\u016f': 'L'
'\u0170': 'Lu'
'\u0171': 'L'
'\u0172': 'Lu'
'\u0173': 'L'
'\u0174': 'Lu'
'\u0175': 'L'
'\u0176': 'Lu'
'\u0177': 'L'
'\u0178': 'Lu'
'\u0179': 'Lu'
'\u017a': 'L'
'\u017b': 'Lu'
'\u017c': 'L'
'\u017d': 'Lu'
'\u017e': 'L'
'\u017f': 'L'
'\u0180': 'L'
'\u0181': 'Lu'
'\u0182': 'Lu'
'\u0183': 'L'
'\u0184': 'Lu'
'\u0185': 'L'
'\u0186': 'Lu'
'\u0187': 'Lu'
'\u0188': 'L'
'\u0189': 'Lu'
'\u018a': 'Lu'
'\u018b': 'Lu'
'\u018c': 'L'
'\u018d': 'L'
'\u018e': 'Lu'
'\u018f': 'Lu'
'\u0190': 'Lu'
'\u0191': 'Lu'
'\u0192': 'L'
'\u0193': 'Lu'
'\u0194': 'Lu'
'\u0195': 'L'
'\u0196': 'Lu'
'\u0197': 'Lu'
'\u0198': 'Lu'
'\u0199': 'L'
'\u019a': 'L'
'\u019b': 'L'
'\u019c': 'Lu'
'\u019d': 'Lu'
'\u019e': 'L'
'\u019f': 'Lu'
'\u01a0': 'Lu'
'\u01a1': 'L'
'\u01a2': 'Lu'
'\u01a3': 'L'
'\u01a4': 'Lu'
'\u01a5': 'L'
'\u01a6': 'Lu'
'\u01a7': 'Lu'
'\u01a8': 'L'
'\u01a9': 'Lu'
'\u01aa': 'L'
'\u01ab': 'L'
'\u01ac': 'Lu'
'\u01ad': 'L'
'\u01ae': 'Lu'
'\u01af': 'Lu'
'\u01b0': 'L'
'\u01b1': 'Lu'
'\u01b2': 'Lu'
'\u01b3': 'Lu'
'\u01b4': 'L'
'\u01b5': 'Lu'
'\u01b6': 'L'
'\u01b7': 'Lu'
'\u01b8': 'Lu'
'\u01b9': 'L'
'\u01ba': 'L'
'\u01bb': 'L'
'\u01bc': 'Lu'
'\u01bd': 'L'
'\u01be': 'L'
'\u01bf': 'L'
'\u01c0': 'L'
'\u01c1': 'L'
'\u01c2': 'L'
'\u01c3': 'L'
'\u01c4': 'Lu'
'\u01c5': 'L'
'\u01c6': 'L'
'\u01c7': 'Lu'
'\u01c8': 'L'
'\u01c9': 'L'
'\u01ca': 'Lu'
'\u01cb': 'L'
'\u01cc': 'L'
'\u01cd': 'Lu'
'\u01ce': 'L'
'\u01cf': 'Lu'
'\u01d0': 'L'
'\u01d1': 'Lu'
'\u01d2': 'L'
'\u01d3': 'Lu'
'\u01d4': 'L'
'\u01d5': 'Lu'
'\u01d6': 'L'
'\u01d7': 'Lu'
'\u01d8': 'L'
'\u01d9': 'Lu'
'\u01da': 'L'
'\u01db': 'Lu'
'\u01dc': 'L'
'\u01dd': 'L'
'\u01de': 'Lu'
'\u01df': 'L'
'\u01e0': 'Lu'
'\u01e1': 'L'
'\u01e2': 'Lu'
'\u01e3': 'L'
'\u01e4': 'Lu'
'\u01e5': 'L'
'\u01e6': 'Lu'
'\u01e7': 'L'
'\u01e8': 'Lu'
'\u01e9': 'L'
'\u01ea': 'Lu'
'\u01eb': 'L'
'\u01ec': 'Lu'
'\u01ed': 'L'
'\u01ee': 'Lu'
'\u01ef': 'L'
'\u01f0': 'L'
'\u01f1': 'Lu'
'\u01f2': 'L'
'\u01f3': 'L'
'\u01f4': 'Lu'
'\u01f5': 'L'
'\u01f6': 'Lu'
'\u01f7': 'Lu'
'\u01f8': 'Lu'
'\u01f9': 'L'
'\u01fa': 'Lu'
'\u01fb': 'L'
'\u01fc': 'Lu'
'\u01fd': 'L'
'\u01fe': 'Lu'
'\u01ff': 'L'
'\u0200': 'Lu'
'\u0201': 'L'
'\u0202': 'Lu'
'\u0203': 'L'
'\u0204': 'Lu'
'\u0205': 'L'
'\u0206': 'Lu'
'\u0207': 'L'
'\u0208': 'Lu'
'\u0209': 'L'
'\u020a': 'Lu'
'\u020b': 'L'
'\u020c': 'Lu'
'\u020d': 'L'
'\u020e': 'Lu'
'\u020f': 'L'
'\u0210': 'Lu'
'\u0211': 'L'
'\u0212': 'Lu'
'\u0213': 'L'
'\u0214': 'Lu'
'\u0215': 'L'
'\u0216': 'Lu'
'\u0217': 'L'
'\u0218': 'Lu'
'\u0219': 'L'
'\u021a': 'Lu'
'\u021b': 'L'
'\u021c': 'Lu'
'\u021d': 'L'
'\u021e': 'Lu'
'\u021f': 'L'
'\u0220': 'Lu'
'\u0221': 'L'
'\u0222': 'Lu'
'\u0223': 'L'
'\u0224': 'Lu'
'\u0225': 'L'
'\u0226': 'Lu'
'\u0227': 'L'
'\u0228': 'Lu'
'\u0229': 'L'
'\u022a': 'Lu'
'\u022b': 'L'
'\u022c': 'Lu'
'\u022d': 'L'
'\u022e': 'Lu'
'\u022f': 'L'
'\u0230': 'Lu'
'\u0231': 'L'
'\u0232': 'Lu'
'\u0233': 'L'
'\u0234': 'L'
'\u0235': 'L'
'\u0236': 'L'
'\u0237': 'L'
'\u0238': 'L'
'\u0239': 'L'
'\u023a': 'Lu'
'\u023b': 'Lu'
'\u023c': 'L'
'\u023d': 'Lu'
'\u023e': 'Lu'
'\u023f': 'L'
'\u0240': 'L'
'\u0241': 'Lu'
'\u0242': 'L'
'\u0243': 'Lu'
'\u0244': 'Lu'
'\u0245': 'Lu'
'\u0246': 'Lu'
'\u0247': 'L'
'\u0248': 'Lu'
'\u0249': 'L'
'\u024a': 'Lu'
'\u024b': 'L'
'\u024c': 'Lu'
'\u024d': 'L'
'\u024e': 'Lu'
'\u024f': 'L'
'\u0250': 'L'
'\u0251': 'L'
'\u0252': 'L'
'\u0253': 'L'
'\u0254': 'L'
'\u0255': 'L'
'\u0256': 'L'
'\u0257': 'L'
'\u0258': 'L'
'\u0259': 'L'
'\u025a': 'L'
'\u025b': 'L'
'\u025c': 'L'
'\u025d': 'L'
'\u025e': 'L'
'\u025f': 'L'
'\u0260': 'L'
'\u0261': 'L'
'\u0262': 'L'
'\u0263': 'L'
'\u0264': 'L'
'\u0265': 'L'
'\u0266': 'L'
'\u0267': 'L'
'\u0268': 'L'
'\u0269': 'L'
'\u026a': 'L'
'\u026b': 'L'
'\u026c': 'L'
'\u026d': 'L'
'\u026e': 'L'
'\u026f': 'L'
'\u0270': 'L'
'\u0271': 'L'
'\u0272': 'L'
'\u0273': 'L'
'\u0274': 'L'
'\u0275': 'L'
'\u0276': 'L'
'\u0277': 'L'
'\u0278': 'L'
'\u0279': 'L'
'\u027a': 'L'
'\u027b': 'L'
'\u027c': 'L'
'\u027d': 'L'
'\u027e': 'L'
'\u027f': 'L'
'\u0280': 'L'
'\u0281': 'L'
'\u0282': 'L'
'\u0283': 'L'
'\u0284': 'L'
'\u0285': 'L'
'\u0286': 'L'
'\u0287': 'L'
'\u0288': 'L'
'\u0289': 'L'
'\u028a': 'L'
'\u028b': 'L'
'\u028c': 'L'
'\u028d': 'L'
'\u028e': 'L'
'\u028f': 'L'
'\u0290': 'L'
'\u0291': 'L'
'\u0292': 'L'
'\u0293': 'L'
'\u0294': 'L'
'\u0295': 'L'
'\u0296': 'L'
'\u0297': 'L'
'\u0298': 'L'
'\u0299': 'L'
'\u029a': 'L'
'\u029b': 'L'
'\u029c': 'L'
'\u029d': 'L'
'\u029e': 'L'
'\u029f': 'L'
'\u02a0': 'L'
'\u02a1': 'L'
'\u02a2': 'L'
'\u02a3': 'L'
'\u02a4': 'L'
'\u02a5': 'L'
'\u02a6': 'L'
'\u02a7': 'L'
'\u02a8': 'L'
'\u02a9': 'L'
'\u02aa': 'L'
'\u02ab': 'L'
'\u02ac': 'L'
'\u02ad': 'L'
'\u02ae': 'L'
'\u02af': 'L'
'\u02b0': 'L'
'\u02b1': 'L'
'\u02b2': 'L'
'\u02b3': 'L'
'\u02b4': 'L'
'\u02b5': 'L'
'\u02b6': 'L'
'\u02b7': 'L'
'\u02b8': 'L'
'\u02b9': 'L'
'\u02ba': 'L'
'\u02bb': 'L'
'\u02bc': 'L'
'\u02bd': 'L'
'\u02be': 'L'
'\u02bf': 'L'
'\u02c0': 'L'
'\u02c1': 'L'
'\u02c6': 'L'
'\u02c7': 'L'
'\u02c8': 'L'
'\u02c9': 'L'
'\u02ca': 'L'
'\u02cb': 'L'
'\u02cc': 'L'
'\u02cd': 'L'
'\u02ce': 'L'
'\u02cf': 'L'
'\u02d0': 'L'
'\u02d1': 'L'
'\u02e0': 'L'
'\u02e1': 'L'
'\u02e2': 'L'
'\u02e3': 'L'
'\u02e4': 'L'
'\u02ec': 'L'
'\u02ee': 'L'
'\u0370': 'Lu'
'\u0371': 'L'
'\u0372': 'Lu'
'\u0373': 'L'
'\u0374': 'L'
'\u0376': 'Lu'
'\u0377': 'L'
'\u037a': 'L'
'\u037b': 'L'
'\u037c': 'L'
'\u037d': 'L'
'\u037f': 'Lu'
'\u0386': 'Lu'
'\u0388': 'Lu'
'\u0389': 'Lu'
'\u038a': 'Lu'
'\u038c': 'Lu'
'\u038e': 'Lu'
'\u038f': 'Lu'
'\u0390': 'L'
'\u0391': 'Lu'
'\u0392': 'Lu'
'\u0393': 'Lu'
'\u0394': 'Lu'
'\u0395': 'Lu'
'\u0396': 'Lu'
'\u0397': 'Lu'
'\u0398': 'Lu'
'\u0399': 'Lu'
'\u039a': 'Lu'
'\u039b': 'Lu'
'\u039c': 'Lu'
'\u039d': 'Lu'
'\u039e': 'Lu'
'\u039f': 'Lu'
'\u03a0': 'Lu'
'\u03a1': 'Lu'
'\u03a3': 'Lu'
'\u03a4': 'Lu'
'\u03a5': 'Lu'
'\u03a6': 'Lu'
'\u03a7': 'Lu'
'\u03a8': 'Lu'
'\u03a9': 'Lu'
'\u03aa': 'Lu'
'\u03ab': 'Lu'
'\u03ac': 'L'
'\u03ad': 'L'
'\u03ae': 'L'
'\u03af': 'L'
'\u03b0': 'L'
'\u03b1': 'L'
'\u03b2': 'L'
'\u03b3': 'L'
'\u03b4': 'L'
'\u03b5': 'L'
'\u03b6': 'L'
'\u03b7': 'L'
'\u03b8': 'L'
'\u03b9': 'L'
'\u03ba': 'L'
'\u03bb': 'L'
'\u03bc': 'L'
'\u03bd': 'L'
'\u03be': 'L'
'\u03bf': 'L'
'\u03c0': 'L'
'\u03c1': 'L'
'\u03c2': 'L'
'\u03c3': 'L'
'\u03c4': 'L'
'\u03c5': 'L'
'\u03c6': 'L'
'\u03c7': 'L'
'\u03c8': 'L'
'\u03c9': 'L'
'\u03ca': 'L'
'\u03cb': 'L'
'\u03cc': 'L'
'\u03cd': 'L'
'\u03ce': 'L'
'\u03cf': 'Lu'
'\u03d0': 'L'
'\u03d1': 'L'
'\u03d2': 'Lu'
'\u03d3': 'Lu'
'\u03d4': 'Lu'
'\u03d5': 'L'
'\u03d6': 'L'
'\u03d7': 'L'
'\u03d8': 'Lu'
'\u03d9': 'L'
'\u03da': 'Lu'
'\u03db': 'L'
'\u03dc': 'Lu'
'\u03dd': 'L'
'\u03de': 'Lu'
'\u03df': 'L'
'\u03e0': 'Lu'
'\u03e1': 'L'
'\u03e2': 'Lu'
'\u03e3': 'L'
'\u03e4': 'Lu'
'\u03e5': 'L'
'\u03e6': 'Lu'
'\u03e7': 'L'
'\u03e8': 'Lu'
'\u03e9': 'L'
'\u03ea': 'Lu'
'\u03eb': 'L'
'\u03ec': 'Lu'
'\u03ed': 'L'
'\u03ee': 'Lu'
'\u03ef': 'L'
'\u03f0': 'L'
'\u03f1': 'L'
'\u03f2': 'L'
'\u03f3': 'L'
'\u03f4': 'Lu'
'\u03f5': 'L'
'\u03f7': 'Lu'
'\u03f8': 'L'
'\u03f9': 'Lu'
'\u03fa': 'Lu'
'\u03fb': 'L'
'\u03fc': 'L'
'\u03fd': 'Lu'
'\u03fe': 'Lu'
'\u03ff': 'Lu'
'\u0400': 'Lu'
'\u0401': 'Lu'
'\u0402': 'Lu'
'\u0403': 'Lu'
'\u0404': 'Lu'
'\u0405': 'Lu'
'\u0406': 'Lu'
'\u0407': 'Lu'
'\u0408': 'Lu'
'\u0409': 'Lu'
'\u040a': 'Lu'
'\u040b': 'Lu'
'\u040c': 'Lu'
'\u040d': 'Lu'
'\u040e': 'Lu'
'\u040f': 'Lu'
'\u0410': 'Lu'
'\u0411': 'Lu'
'\u0412': 'Lu'
'\u0413': 'Lu'
'\u0414': 'Lu'
'\u0415': 'Lu'
'\u0416': 'Lu'
'\u0417': 'Lu'
'\u0418': 'Lu'
'\u0419': 'Lu'
'\u041a': 'Lu'
'\u041b': 'Lu'
'\u041c': 'Lu'
'\u041d': 'Lu'
'\u041e': 'Lu'
'\u041f': 'Lu'
'\u0420': 'Lu'
'\u0421': 'Lu'
'\u0422': 'Lu'
'\u0423': 'Lu'
'\u0424': 'Lu'
'\u0425': 'Lu'
'\u0426': 'Lu'
'\u0427': 'Lu'
'\u0428': 'Lu'
'\u0429': 'Lu'
'\u042a': 'Lu'
'\u042b': 'Lu'
'\u042c': 'Lu'
'\u042d': 'Lu'
'\u042e': 'Lu'
'\u042f': 'Lu'
'\u0430': 'L'
'\u0431': 'L'
'\u0432': 'L'
'\u0433': 'L'
'\u0434': 'L'
'\u0435': 'L'
'\u0436': 'L'
'\u0437': 'L'
'\u0438': 'L'
'\u0439': 'L'
'\u043a': 'L'
'\u043b': 'L'
'\u043c': 'L'
'\u043d': 'L'
'\u043e': 'L'
'\u043f': 'L'
'\u0440': 'L'
'\u0441': 'L'
'\u0442': 'L'
'\u0443': 'L'
'\u0444': 'L'
'\u0445': 'L'
'\u0446': 'L'
'\u0447': 'L'
'\u0448': 'L'
'\u0449': 'L'
'\u044a': 'L'
'\u044b': 'L'
'\u044c': 'L'
'\u044d': 'L'
'\u044e': 'L'
'\u044f': 'L'
'\u0450': 'L'
'\u0451': 'L'
'\u0452': 'L'
'\u0453': 'L'
'\u0454': 'L'
'\u0455': 'L'
'\u0456': 'L'
'\u0457': 'L'
'\u0458': 'L'
'\u0459': 'L'
'\u045a': 'L'
'\u045b': 'L'
'\u045c': 'L'
'\u045d': 'L'
'\u045e': 'L'
'\u045f': 'L'
'\u0460': 'Lu'
'\u0461': 'L'
'\u0462': 'Lu'
'\u0463': 'L'
'\u0464': 'Lu'
'\u0465': 'L'
'\u0466': 'Lu'
'\u0467': 'L'
'\u0468': 'Lu'
'\u0469': 'L'
'\u046a': 'Lu'
'\u046b': 'L'
'\u046c': 'Lu'
'\u046d': 'L'
'\u046e': 'Lu'
'\u046f': 'L'
'\u0470': 'Lu'
'\u0471': 'L'
'\u0472': 'Lu'
'\u0473': 'L'
'\u0474': 'Lu'
'\u0475': 'L'
'\u0476': 'Lu'
'\u0477': 'L'
'\u0478': 'Lu'
'\u0479': 'L'
'\u047a': 'Lu'
'\u047b': 'L'
'\u047c': 'Lu'
'\u047d': 'L'
'\u047e': 'Lu'
'\u047f': 'L'
'\u0480': 'Lu'
'\u0481': 'L'
'\u048a': 'Lu'
'\u048b': 'L'
'\u048c': 'Lu'
'\u048d': 'L'
'\u048e': 'Lu'
'\u048f': 'L'
'\u0490': 'Lu'
'\u0491': 'L'
'\u0492': 'Lu'
'\u0493': 'L'
'\u0494': 'Lu'
'\u0495': 'L'
'\u0496': 'Lu'
'\u0497': 'L'
'\u0498': 'Lu'
'\u0499': 'L'
'\u049a': 'Lu'
'\u049b': 'L'
'\u049c': 'Lu'
'\u049d': 'L'
'\u049e': 'Lu'
'\u049f': 'L'
'\u04a0': 'Lu'
'\u04a1': 'L'
'\u04a2': 'Lu'
'\u04a3': 'L'
'\u04a4': 'Lu'
'\u04a5': 'L'
'\u04a6': 'Lu'
'\u04a7': 'L'
'\u04a8': 'Lu'
'\u04a9': 'L'
'\u04aa': 'Lu'
'\u04ab': 'L'
'\u04ac': 'Lu'
'\u04ad': 'L'
'\u04ae': 'Lu'
'\u04af': 'L'
'\u04b0': 'Lu'
'\u04b1': 'L'
'\u04b2': 'Lu'
'\u04b3': 'L'
'\u04b4': 'Lu'
'\u04b5': 'L'
'\u04b6': 'Lu'
'\u04b7': 'L'
'\u04b8': 'Lu'
'\u04b9': 'L'
'\u04ba': 'Lu'
'\u04bb': 'L'
'\u04bc': 'Lu'
'\u04bd': 'L'
'\u04be': 'Lu'
'\u04bf': 'L'
'\u04c0': 'Lu'
'\u04c1': 'Lu'
'\u04c2': 'L'
'\u04c3': 'Lu'
'\u04c4': 'L'
'\u04c5': 'Lu'
'\u04c6': 'L'
'\u04c7': 'Lu'
'\u04c8': 'L'
'\u04c9': 'Lu'
'\u04ca': 'L'
'\u04cb': 'Lu'
'\u04cc': 'L'
'\u04cd': 'Lu'
'\u04ce': 'L'
'\u04cf': 'L'
'\u04d0': 'Lu'
'\u04d1': 'L'
'\u04d2': 'Lu'
'\u04d3': 'L'
'\u04d4': 'Lu'
'\u04d5': 'L'
'\u04d6': 'Lu'
'\u04d7': 'L'
'\u04d8': 'Lu'
'\u04d9': 'L'
'\u04da': 'Lu'
'\u04db': 'L'
'\u04dc': 'Lu'
'\u04dd': 'L'
'\u04de': 'Lu'
'\u04df': 'L'
'\u04e0': 'Lu'
'\u04e1': 'L'
'\u04e2': 'Lu'
'\u04e3': 'L'
'\u04e4': 'Lu'
'\u04e5': 'L'
'\u04e6': 'Lu'
'\u04e7': 'L'
'\u04e8': 'Lu'
'\u04e9': 'L'
'\u04ea': 'Lu'
'\u04eb': 'L'
'\u04ec': 'Lu'
'\u04ed': 'L'
'\u04ee': 'Lu'
'\u04ef': 'L'
'\u04f0': 'Lu'
'\u04f1': 'L'
'\u04f2': 'Lu'
'\u04f3': 'L'
'\u04f4': 'Lu'
'\u04f5': 'L'
'\u04f6': 'Lu'
'\u04f7': 'L'
'\u04f8': 'Lu'
'\u04f9': 'L'
'\u04fa': 'Lu'
'\u04fb': 'L'
'\u04fc': 'Lu'
'\u04fd': 'L'
'\u04fe': 'Lu'
'\u04ff': 'L'
'\u0500': 'Lu'
'\u0501': 'L'
'\u0502': 'Lu'
'\u0503': 'L'
'\u0504': 'Lu'
'\u0505': 'L'
'\u0506': 'Lu'
'\u0507': 'L'
'\u0508': 'Lu'
'\u0509': 'L'
'\u050a': 'Lu'
'\u050b': 'L'
'\u050c': 'Lu'
'\u050d': 'L'
'\u050e': 'Lu'
'\u050f': 'L'
'\u0510': 'Lu'
'\u0511': 'L'
'\u0512': 'Lu'
'\u0513': 'L'
'\u0514': 'Lu'
'\u0515': 'L'
'\u0516': 'Lu'
'\u0517': 'L'
'\u0518': 'Lu'
'\u0519': 'L'
'\u051a': 'Lu'
'\u051b': 'L'
'\u051c': 'Lu'
'\u051d': 'L'
'\u051e': 'Lu'
'\u051f': 'L'
'\u0520': 'Lu'
'\u0521': 'L'
'\u0522': 'Lu'
'\u0523': 'L'
'\u0524': 'Lu'
'\u0525': 'L'
'\u0526': 'Lu'
'\u0527': 'L'
'\u0528': 'Lu'
'\u0529': 'L'
'\u052a': 'Lu'
'\u052b': 'L'
'\u052c': 'Lu'
'\u052d': 'L'
'\u052e': 'Lu'
'\u052f': 'L'
'\u0531': 'Lu'
'\u0532': 'Lu'
'\u0533': 'Lu'
'\u0534': 'Lu'
'\u0535': 'Lu'
'\u0536': 'Lu'
'\u0537': 'Lu'
'\u0538': 'Lu'
'\u0539': 'Lu'
'\u053a': 'Lu'
'\u053b': 'Lu'
'\u053c': 'Lu'
'\u053d': 'Lu'
'\u053e': 'Lu'
'\u053f': 'Lu'
'\u0540': 'Lu'
'\u0541': 'Lu'
'\u0542': 'Lu'
'\u0543': 'Lu'
'\u0544': 'Lu'
'\u0545': 'Lu'
'\u0546': 'Lu'
'\u0547': 'Lu'
'\u0548': 'Lu'
'\u0549': 'Lu'
'\u054a': 'Lu'
'\u054b': 'Lu'
'\u054c': 'Lu'
'\u054d': 'Lu'
'\u054e': 'Lu'
'\u054f': 'Lu'
'\u0550': 'Lu'
'\u0551': 'Lu'
'\u0552': 'Lu'
'\u0553': 'Lu'
'\u0554': 'Lu'
'\u0555': 'Lu'
'\u0556': 'Lu'
'\u0559': 'L'
'\u0561': 'L'
'\u0562': 'L'
'\u0563': 'L'
'\u0564': 'L'
'\u0565': 'L'
'\u0566': 'L'
'\u0567': 'L'
'\u0568': 'L'
'\u0569': 'L'
'\u056a': 'L'
'\u056b': 'L'
'\u056c': 'L'
'\u056d': 'L'
'\u056e': 'L'
'\u056f': 'L'
'\u0570': 'L'
'\u0571': 'L'
'\u0572': 'L'
'\u0573': 'L'
'\u0574': 'L'
'\u0575': 'L'
'\u0576': 'L'
'\u0577': 'L'
'\u0578': 'L'
'\u0579': 'L'
'\u057a': 'L'
'\u057b': 'L'
'\u057c': 'L'
'\u057d': 'L'
'\u057e': 'L'
'\u057f': 'L'
'\u0580': 'L'
'\u0581': 'L'
'\u0582': 'L'
'\u0583': 'L'
'\u0584': 'L'
'\u0585': 'L'
'\u0586': 'L'
'\u0587': 'L'
'\u05d0': 'L'
'\u05d1': 'L'
'\u05d2': 'L'
'\u05d3': 'L'
'\u05d4': 'L'
'\u05d5': 'L'
'\u05d6': 'L'
'\u05d7': 'L'
'\u05d8': 'L'
'\u05d9': 'L'
'\u05da': 'L'
'\u05db': 'L'
'\u05dc': 'L'
'\u05dd': 'L'
'\u05de': 'L'
'\u05df': 'L'
'\u05e0': 'L'
'\u05e1': 'L'
'\u05e2': 'L'
'\u05e3': 'L'
'\u05e4': 'L'
'\u05e5': 'L'
'\u05e6': 'L'
'\u05e7': 'L'
'\u05e8': 'L'
'\u05e9': 'L'
'\u05ea': 'L'
'\u05f0': 'L'
'\u05f1': 'L'
'\u05f2': 'L'
'\u0620': 'L'
'\u0621': 'L'
'\u0622': 'L'
'\u0623': 'L'
'\u0624': 'L'
'\u0625': 'L'
'\u0626': 'L'
'\u0627': 'L'
'\u0628': 'L'
'\u0629': 'L'
'\u062a': 'L'
'\u062b': 'L'
'\u062c': 'L'
'\u062d': 'L'
'\u062e': 'L'
'\u062f': 'L'
'\u0630': 'L'
'\u0631': 'L'
'\u0632': 'L'
'\u0633': 'L'
'\u0634': 'L'
'\u0635': 'L'
'\u0636': 'L'
'\u0637': 'L'
'\u0638': 'L'
'\u0639': 'L'
'\u063a': 'L'
'\u063b': 'L'
'\u063c': 'L'
'\u063d': 'L'
'\u063e': 'L'
'\u063f': 'L'
'\u0640': 'L'
'\u0641': 'L'
'\u0642': 'L'
'\u0643': 'L'
'\u0644': 'L'
'\u0645': 'L'
'\u0646': 'L'
'\u0647': 'L'
'\u0648': 'L'
'\u0649': 'L'
'\u064a': 'L'
'\u0660': 'N'
'\u0661': 'N'
'\u0662': 'N'
'\u0663': 'N'
'\u0664': 'N'
'\u0665': 'N'
'\u0666': 'N'
'\u0667': 'N'
'\u0668': 'N'
'\u0669': 'N'
'\u066e': 'L'
'\u066f': 'L'
'\u0671': 'L'
'\u0672': 'L'
'\u0673': 'L'
'\u0674': 'L'
'\u0675': 'L'
'\u0676': 'L'
'\u0677': 'L'
'\u0678': 'L'
'\u0679': 'L'
'\u067a': 'L'
'\u067b': 'L'
'\u067c': 'L'
'\u067d': 'L'
'\u067e': 'L'
'\u067f': 'L'
'\u0680': 'L'
'\u0681': 'L'
'\u0682': 'L'
'\u0683': 'L'
'\u0684': 'L'
'\u0685': 'L'
'\u0686': 'L'
'\u0687': 'L'
'\u0688': 'L'
'\u0689': 'L'
'\u068a': 'L'
'\u068b': 'L'
'\u068c': 'L'
'\u068d': 'L'
'\u068e': 'L'
'\u068f': 'L'
'\u0690': 'L'
'\u0691': 'L'
'\u0692': 'L'
'\u0693': 'L'
'\u0694': 'L'
'\u0695': 'L'
'\u0696': 'L'
'\u0697': 'L'
'\u0698': 'L'
'\u0699': 'L'
'\u069a': 'L'
'\u069b': 'L'
'\u069c': 'L'
'\u069d': 'L'
'\u069e': 'L'
'\u069f': 'L'
'\u06a0': 'L'
'\u06a1': 'L'
'\u06a2': 'L'
'\u06a3': 'L'
'\u06a4': 'L'
'\u06a5': 'L'
'\u06a6': 'L'
'\u06a7': 'L'
'\u06a8': 'L'
'\u06a9': 'L'
'\u06aa': 'L'
'\u06ab': 'L'
'\u06ac': 'L'
'\u06ad': 'L'
'\u06ae': 'L'
'\u06af': 'L'
'\u06b0': 'L'
'\u06b1': 'L'
'\u06b2': 'L'
'\u06b3': 'L'
'\u06b4': 'L'
'\u06b5': 'L'
'\u06b6': 'L'
'\u06b7': 'L'
'\u06b8': 'L'
'\u06b9': 'L'
'\u06ba': 'L'
'\u06bb': 'L'
'\u06bc': 'L'
'\u06bd': 'L'
'\u06be': 'L'
'\u06bf': 'L'
'\u06c0': 'L'
'\u06c1': 'L'
'\u06c2': 'L'
'\u06c3': 'L'
'\u06c4': 'L'
'\u06c5': 'L'
'\u06c6': 'L'
'\u06c7': 'L'
'\u06c8': 'L'
'\u06c9': 'L'
'\u06ca': 'L'
'\u06cb': 'L'
'\u06cc': 'L'
'\u06cd': 'L'
'\u06ce': 'L'
'\u06cf': 'L'
'\u06d0': 'L'
'\u06d1': 'L'
'\u06d2': 'L'
'\u06d3': 'L'
'\u06d5': 'L'
'\u06e5': 'L'
'\u06e6': 'L'
'\u06ee': 'L'
'\u06ef': 'L'
'\u06f0': 'N'
'\u06f1': 'N'
'\u06f2': 'N'
'\u06f3': 'N'
'\u06f4': 'N'
'\u06f5': 'N'
'\u06f6': 'N'
'\u06f7': 'N'
'\u06f8': 'N'
'\u06f9': 'N'
'\u06fa': 'L'
'\u06fb': 'L'
'\u06fc': 'L'
'\u06ff': 'L'
'\u0710': 'L'
'\u0712': 'L'
'\u0713': 'L'
'\u0714': 'L'
'\u0715': 'L'
'\u0716': 'L'
'\u0717': 'L'
'\u0718': 'L'
'\u0719': 'L'
'\u071a': 'L'
'\u071b': 'L'
'\u071c': 'L'
'\u071d': 'L'
'\u071e': 'L'
'\u071f': 'L'
'\u0720': 'L'
'\u0721': 'L'
'\u0722': 'L'
'\u0723': 'L'
'\u0724': 'L'
'\u0725': 'L'
'\u0726': 'L'
'\u0727': 'L'
'\u0728': 'L'
'\u0729': 'L'
'\u072a': 'L'
'\u072b': 'L'
'\u072c': 'L'
'\u072d': 'L'
'\u072e': 'L'
'\u072f': 'L'
'\u074d': 'L'
'\u074e': 'L'
'\u074f': 'L'
'\u0750': 'L'
'\u0751': 'L'
'\u0752': 'L'
'\u0753': 'L'
'\u0754': 'L'
'\u0755': 'L'
'\u0756': 'L'
'\u0757': 'L'
'\u0758': 'L'
'\u0759': 'L'
'\u075a': 'L'
'\u075b': 'L'
'\u075c': 'L'
'\u075d': 'L'
'\u075e': 'L'
'\u075f': 'L'
'\u0760': 'L'
'\u0761': 'L'
'\u0762': 'L'
'\u0763': 'L'
'\u0764': 'L'
'\u0765': 'L'
'\u0766': 'L'
'\u0767': 'L'
'\u0768': 'L'
'\u0769': 'L'
'\u076a': 'L'
'\u076b': 'L'
'\u076c': 'L'
'\u076d': 'L'
'\u076e': 'L'
'\u076f': 'L'
'\u0770': 'L'
'\u0771': 'L'
'\u0772': 'L'
'\u0773': 'L'
'\u0774': 'L'
'\u0775': 'L'
'\u0776': 'L'
'\u0777': 'L'
'\u0778': 'L'
'\u0779': 'L'
'\u077a': 'L'
'\u077b': 'L'
'\u077c': 'L'
'\u077d': 'L'
'\u077e': 'L'
'\u077f': 'L'
'\u0780': 'L'
'\u0781': 'L'
'\u0782': 'L'
'\u0783': 'L'
'\u0784': 'L'
'\u0785': 'L'
'\u0786': 'L'
'\u0787': 'L'
'\u0788': 'L'
'\u0789': 'L'
'\u078a': 'L'
'\u078b': 'L'
'\u078c': 'L'
'\u078d': 'L'
'\u078e': 'L'
'\u078f': 'L'
'\u0790': 'L'
'\u0791': 'L'
'\u0792': 'L'
'\u0793': 'L'
'\u0794': 'L'
'\u0795': 'L'
'\u0796': 'L'
'\u0797': 'L'
'\u0798': 'L'
'\u0799': 'L'
'\u079a': 'L'
'\u079b': 'L'
'\u079c': 'L'
'\u079d': 'L'
'\u079e': 'L'
'\u079f': 'L'
'\u07a0': 'L'
'\u07a1': 'L'
'\u07a2': 'L'
'\u07a3': 'L'
'\u07a4': 'L'
'\u07a5': 'L'
'\u07b1': 'L'
'\u07c0': 'N'
'\u07c1': 'N'
'\u07c2': 'N'
'\u07c3': 'N'
'\u07c4': 'N'
'\u07c5': 'N'
'\u07c6': 'N'
'\u07c7': 'N'
'\u07c8': 'N'
'\u07c9': 'N'
'\u07ca': 'L'
'\u07cb': 'L'
'\u07cc': 'L'
'\u07cd': 'L'
'\u07ce': 'L'
'\u07cf': 'L'
'\u07d0': 'L'
'\u07d1': 'L'
'\u07d2': 'L'
'\u07d3': 'L'
'\u07d4': 'L'
'\u07d5': 'L'
'\u07d6': 'L'
'\u07d7': 'L'
'\u07d8': 'L'
'\u07d9': 'L'
'\u07da': 'L'
'\u07db': 'L'
'\u07dc': 'L'
'\u07dd': 'L'
'\u07de': 'L'
'\u07df': 'L'
'\u07e0': 'L'
'\u07e1': 'L'
'\u07e2': 'L'
'\u07e3': 'L'
'\u07e4': 'L'
'\u07e5': 'L'
'\u07e6': 'L'
'\u07e7': 'L'
'\u07e8': 'L'
'\u07e9': 'L'
'\u07ea': 'L'
'\u07f4': 'L'
'\u07f5': 'L'
'\u07fa': 'L'
'\u0800': 'L'
'\u0801': 'L'
'\u0802': 'L'
'\u0803': 'L'
'\u0804': 'L'
'\u0805': 'L'
'\u0806': 'L'
'\u0807': 'L'
'\u0808': 'L'
'\u0809': 'L'
'\u080a': 'L'
'\u080b': 'L'
'\u080c': 'L'
'\u080d': 'L'
'\u080e': 'L'
'\u080f': 'L'
'\u0810': 'L'
'\u0811': 'L'
'\u0812': 'L'
'\u0813': 'L'
'\u0814': 'L'
'\u0815': 'L'
'\u081a': 'L'
'\u0824': 'L'
'\u0828': 'L'
'\u0840': 'L'
'\u0841': 'L'
'\u0842': 'L'
'\u0843': 'L'
'\u0844': 'L'
'\u0845': 'L'
'\u0846': 'L'
'\u0847': 'L'
'\u0848': 'L'
'\u0849': 'L'
'\u084a': 'L'
'\u084b': 'L'
'\u084c': 'L'
'\u084d': 'L'
'\u084e': 'L'
'\u084f': 'L'
'\u0850': 'L'
'\u0851': 'L'
'\u0852': 'L'
'\u0853': 'L'
'\u0854': 'L'
'\u0855': 'L'
'\u0856': 'L'
'\u0857': 'L'
'\u0858': 'L'
'\u08a0': 'L'
'\u08a1': 'L'
'\u08a2': 'L'
'\u08a3': 'L'
'\u08a4': 'L'
'\u08a5': 'L'
'\u08a6': 'L'
'\u08a7': 'L'
'\u08a8': 'L'
'\u08a9': 'L'
'\u08aa': 'L'
'\u08ab': 'L'
'\u08ac': 'L'
'\u08ad': 'L'
'\u08ae': 'L'
'\u08af': 'L'
'\u08b0': 'L'
'\u08b1': 'L'
'\u08b2': 'L'
'\u08b3': 'L'
'\u08b4': 'L'
'\u0904': 'L'
'\u0905': 'L'
'\u0906': 'L'
'\u0907': 'L'
'\u0908': 'L'
'\u0909': 'L'
'\u090a': 'L'
'\u090b': 'L'
'\u090c': 'L'
'\u090d': 'L'
'\u090e': 'L'
'\u090f': 'L'
'\u0910': 'L'
'\u0911': 'L'
'\u0912': 'L'
'\u0913': 'L'
'\u0914': 'L'
'\u0915': 'L'
'\u0916': 'L'
'\u0917': 'L'
'\u0918': 'L'
'\u0919': 'L'
'\u091a': 'L'
'\u091b': 'L'
'\u091c': 'L'
'\u091d': 'L'
'\u091e': 'L'
'\u091f': 'L'
'\u0920': 'L'
'\u0921': 'L'
'\u0922': 'L'
'\u0923': 'L'
'\u0924': 'L'
'\u0925': 'L'
'\u0926': 'L'
'\u0927': 'L'
'\u0928': 'L'
'\u0929': 'L'
'\u092a': 'L'
'\u092b': 'L'
'\u092c': 'L'
'\u092d': 'L'
'\u092e': 'L'
'\u092f': 'L'
'\u0930': 'L'
'\u0931': 'L'
'\u0932': 'L'
'\u0933': 'L'
'\u0934': 'L'
'\u0935': 'L'
'\u0936': 'L'
'\u0937': 'L'
'\u0938': 'L'
'\u0939': 'L'
'\u093d': 'L'
'\u0950': 'L'
'\u0958': 'L'
'\u0959': 'L'
'\u095a': 'L'
'\u095b': 'L'
'\u095c': 'L'
'\u095d': 'L'
'\u095e': 'L'
'\u095f': 'L'
'\u0960': 'L'
'\u0961': 'L'
'\u0966': 'N'
'\u0967': 'N'
'\u0968': 'N'
'\u0969': 'N'
'\u096a': 'N'
'\u096b': 'N'
'\u096c': 'N'
'\u096d': 'N'
'\u096e': 'N'
'\u096f': 'N'
'\u0971': 'L'
'\u0972': 'L'
'\u0973': 'L'
'\u0974': 'L'
'\u0975': 'L'
'\u0976': 'L'
'\u0977': 'L'
'\u0978': 'L'
'\u0979': 'L'
'\u097a': 'L'
'\u097b': 'L'
'\u097c': 'L'
'\u097d': 'L'
'\u097e': 'L'
'\u097f': 'L'
'\u0980': 'L'
'\u0985': 'L'
'\u0986': 'L'
'\u0987': 'L'
'\u0988': 'L'
'\u0989': 'L'
'\u098a': 'L'
'\u098b': 'L'
'\u098c': 'L'
'\u098f': 'L'
'\u0990': 'L'
'\u0993': 'L'
'\u0994': 'L'
'\u0995': 'L'
'\u0996': 'L'
'\u0997': 'L'
'\u0998': 'L'
'\u0999': 'L'
'\u099a': 'L'
'\u099b': 'L'
'\u099c': 'L'
'\u099d': 'L'
'\u099e': 'L'
'\u099f': 'L'
'\u09a0': 'L'
'\u09a1': 'L'
'\u09a2': 'L'
'\u09a3': 'L'
'\u09a4': 'L'
'\u09a5': 'L'
'\u09a6': 'L'
'\u09a7': 'L'
'\u09a8': 'L'
'\u09aa': 'L'
'\u09ab': 'L'
'\u09ac': 'L'
'\u09ad': 'L'
'\u09ae': 'L'
'\u09af': 'L'
'\u09b0': 'L'
'\u09b2': 'L'
'\u09b6': 'L'
'\u09b7': 'L'
'\u09b8': 'L'
'\u09b9': 'L'
'\u09bd': 'L'
'\u09ce': 'L'
'\u09dc': 'L'
'\u09dd': 'L'
'\u09df': 'L'
'\u09e0': 'L'
'\u09e1': 'L'
'\u09e6': 'N'
'\u09e7': 'N'
'\u09e8': 'N'
'\u09e9': 'N'
'\u09ea': 'N'
'\u09eb': 'N'
'\u09ec': 'N'
'\u09ed': 'N'
'\u09ee': 'N'
'\u09ef': 'N'
'\u09f0': 'L'
'\u09f1': 'L'
'\u09f4': 'N'
'\u09f5': 'N'
'\u09f6': 'N'
'\u09f7': 'N'
'\u09f8': 'N'
'\u09f9': 'N'
'\u0a05': 'L'
'\u0a06': 'L'
'\u0a07': 'L'
'\u0a08': 'L'
'\u0a09': 'L'
'\u0a0a': 'L'
'\u0a0f': 'L'
'\u0a10': 'L'
'\u0a13': 'L'
'\u0a14': 'L'
'\u0a15': 'L'
'\u0a16': 'L'
'\u0a17': 'L'
'\u0a18': 'L'
'\u0a19': 'L'
'\u0a1a': 'L'
'\u0a1b': 'L'
'\u0a1c': 'L'
'\u0a1d': 'L'
'\u0a1e': 'L'
'\u0a1f': 'L'
'\u0a20': 'L'
'\u0a21': 'L'
'\u0a22': 'L'
'\u0a23': 'L'
'\u0a24': 'L'
'\u0a25': 'L'
'\u0a26': 'L'
'\u0a27': 'L'
'\u0a28': 'L'
'\u0a2a': 'L'
'\u0a2b': 'L'
'\u0a2c': 'L'
'\u0a2d': 'L'
'\u0a2e': 'L'
'\u0a2f': 'L'
'\u0a30': 'L'
'\u0a32': 'L'
'\u0a33': 'L'
'\u0a35': 'L'
'\u0a36': 'L'
'\u0a38': 'L'
'\u0a39': 'L'
'\u0a59': 'L'
'\u0a5a': 'L'
'\u0a5b': 'L'
'\u0a5c': 'L'
'\u0a5e': 'L'
'\u0a66': 'N'
'\u0a67': 'N'
'\u0a68': 'N'
'\u0a69': 'N'
'\u0a6a': 'N'
'\u0a6b': 'N'
'\u0a6c': 'N'
'\u0a6d': 'N'
'\u0a6e': 'N'
'\u0a6f': 'N'
'\u0a72': 'L'
'\u0a73': 'L'
'\u0a74': 'L'
'\u0a85': 'L'
'\u0a86': 'L'
'\u0a87': 'L'
'\u0a88': 'L'
'\u0a89': 'L'
'\u0a8a': 'L'
'\u0a8b': 'L'
'\u0a8c': 'L'
'\u0a8d': 'L'
'\u0a8f': 'L'
'\u0a90': 'L'
'\u0a91': 'L'
'\u0a93': 'L'
'\u0a94': 'L'
'\u0a95': 'L'
'\u0a96': 'L'
'\u0a97': 'L'
'\u0a98': 'L'
'\u0a99': 'L'
'\u0a9a': 'L'
'\u0a9b': 'L'
'\u0a9c': 'L'
'\u0a9d': 'L'
'\u0a9e': 'L'
'\u0a9f': 'L'
'\u0aa0': 'L'
'\u0aa1': 'L'
'\u0aa2': 'L'
'\u0aa3': 'L'
'\u0aa4': 'L'
'\u0aa5': 'L'
'\u0aa6': 'L'
'\u0aa7': 'L'
'\u0aa8': 'L'
'\u0aaa': 'L'
'\u0aab': 'L'
'\u0aac': 'L'
'\u0aad': 'L'
'\u0aae': 'L'
'\u0aaf': 'L'
'\u0ab0': 'L'
'\u0ab2': 'L'
'\u0ab3': 'L'
'\u0ab5': 'L'
'\u0ab6': 'L'
'\u0ab7': 'L'
'\u0ab8': 'L'
'\u0ab9': 'L'
'\u0abd': 'L'
'\u0ad0': 'L'
'\u0ae0': 'L'
'\u0ae1': 'L'
'\u0ae6': 'N'
'\u0ae7': 'N'
'\u0ae8': 'N'
'\u0ae9': 'N'
'\u0aea': 'N'
'\u0aeb': 'N'
'\u0aec': 'N'
'\u0aed': 'N'
'\u0aee': 'N'
'\u0aef': 'N'
'\u0af9': 'L'
'\u0b05': 'L'
'\u0b06': 'L'
'\u0b07': 'L'
'\u0b08': 'L'
'\u0b09': 'L'
'\u0b0a': 'L'
'\u0b0b': 'L'
'\u0b0c': 'L'
'\u0b0f': 'L'
'\u0b10': 'L'
'\u0b13': 'L'
'\u0b14': 'L'
'\u0b15': 'L'
'\u0b16': 'L'
'\u0b17': 'L'
'\u0b18': 'L'
'\u0b19': 'L'
'\u0b1a': 'L'
'\u0b1b': 'L'
'\u0b1c': 'L'
'\u0b1d': 'L'
'\u0b1e': 'L'
'\u0b1f': 'L'
'\u0b20': 'L'
'\u0b21': 'L'
'\u0b22': 'L'
'\u0b23': 'L'
'\u0b24': 'L'
'\u0b25': 'L'
'\u0b26': 'L'
'\u0b27': 'L'
'\u0b28': 'L'
'\u0b2a': 'L'
'\u0b2b': 'L'
'\u0b2c': 'L'
'\u0b2d': 'L'
'\u0b2e': 'L'
'\u0b2f': 'L'
'\u0b30': 'L'
'\u0b32': 'L'
'\u0b33': 'L'
'\u0b35': 'L'
'\u0b36': 'L'
'\u0b37': 'L'
'\u0b38': 'L'
'\u0b39': 'L'
'\u0b3d': 'L'
'\u0b5c': 'L'
'\u0b5d': 'L'
'\u0b5f': 'L'
'\u0b60': 'L'
'\u0b61': 'L'
'\u0b66': 'N'
'\u0b67': 'N'
'\u0b68': 'N'
'\u0b69': 'N'
'\u0b6a': 'N'
'\u0b6b': 'N'
'\u0b6c': 'N'
'\u0b6d': 'N'
'\u0b6e': 'N'
'\u0b6f': 'N'
'\u0b71': 'L'
'\u0b72': 'N'
'\u0b73': 'N'
'\u0b74': 'N'
'\u0b75': 'N'
'\u0b76': 'N'
'\u0b77': 'N'
'\u0b83': 'L'
'\u0b85': 'L'
'\u0b86': 'L'
'\u0b87': 'L'
'\u0b88': 'L'
'\u0b89': 'L'
'\u0b8a': 'L'
'\u0b8e': 'L'
'\u0b8f': 'L'
'\u0b90': 'L'
'\u0b92': 'L'
'\u0b93': 'L'
'\u0b94': 'L'
'\u0b95': 'L'
'\u0b99': 'L'
'\u0b9a': 'L'
'\u0b9c': 'L'
'\u0b9e': 'L'
'\u0b9f': 'L'
'\u0ba3': 'L'
'\u0ba4': 'L'
'\u0ba8': 'L'
'\u0ba9': 'L'
'\u0baa': 'L'
'\u0bae': 'L'
'\u0baf': 'L'
'\u0bb0': 'L'
'\u0bb1': 'L'
'\u0bb2': 'L'
'\u0bb3': 'L'
'\u0bb4': 'L'
'\u0bb5': 'L'
'\u0bb6': 'L'
'\u0bb7': 'L'
'\u0bb8': 'L'
'\u0bb9': 'L'
'\u0bd0': 'L'
'\u0be6': 'N'
'\u0be7': 'N'
'\u0be8': 'N'
'\u0be9': 'N'
'\u0bea': 'N'
'\u0beb': 'N'
'\u0bec': 'N'
'\u0bed': 'N'
'\u0bee': 'N'
'\u0bef': 'N'
'\u0bf0': 'N'
'\u0bf1': 'N'
'\u0bf2': 'N'
'\u0c05': 'L'
'\u0c06': 'L'
'\u0c07': 'L'
'\u0c08': 'L'
'\u0c09': 'L'
'\u0c0a': 'L'
'\u0c0b': 'L'
'\u0c0c': 'L'
'\u0c0e': 'L'
'\u0c0f': 'L'
'\u0c10': 'L'
'\u0c12': 'L'
'\u0c13': 'L'
'\u0c14': 'L'
'\u0c15': 'L'
'\u0c16': 'L'
'\u0c17': 'L'
'\u0c18': 'L'
'\u0c19': 'L'
'\u0c1a': 'L'
'\u0c1b': 'L'
'\u0c1c': 'L'
'\u0c1d': 'L'
'\u0c1e': 'L'
'\u0c1f': 'L'
'\u0c20': 'L'
'\u0c21': 'L'
'\u0c22': 'L'
'\u0c23': 'L'
'\u0c24': 'L'
'\u0c25': 'L'
'\u0c26': 'L'
'\u0c27': 'L'
'\u0c28': 'L'
'\u0c2a': 'L'
'\u0c2b': 'L'
'\u0c2c': 'L'
'\u0c2d': 'L'
'\u0c2e': 'L'
'\u0c2f': 'L'
'\u0c30': 'L'
'\u0c31': 'L'
'\u0c32': 'L'
'\u0c33': 'L'
'\u0c34': 'L'
'\u0c35': 'L'
'\u0c36': 'L'
'\u0c37': 'L'
'\u0c38': 'L'
'\u0c39': 'L'
'\u0c3d': 'L'
'\u0c58': 'L'
'\u0c59': 'L'
'\u0c5a': 'L'
'\u0c60': 'L'
'\u0c61': 'L'
'\u0c66': 'N'
'\u0c67': 'N'
'\u0c68': 'N'
'\u0c69': 'N'
'\u0c6a': 'N'
'\u0c6b': 'N'
'\u0c6c': 'N'
'\u0c6d': 'N'
'\u0c6e': 'N'
'\u0c6f': 'N'
'\u0c78': 'N'
'\u0c79': 'N'
'\u0c7a': 'N'
'\u0c7b': 'N'
'\u0c7c': 'N'
'\u0c7d': 'N'
'\u0c7e': 'N'
'\u0c85': 'L'
'\u0c86': 'L'
'\u0c87': 'L'
'\u0c88': 'L'
'\u0c89': 'L'
'\u0c8a': 'L'
'\u0c8b': 'L'
'\u0c8c': 'L'
'\u0c8e': 'L'
'\u0c8f': 'L'
'\u0c90': 'L'
'\u0c92': 'L'
'\u0c93': 'L'
'\u0c94': 'L'
'\u0c95': 'L'
'\u0c96': 'L'
'\u0c97': 'L'
'\u0c98': 'L'
'\u0c99': 'L'
'\u0c9a': 'L'
'\u0c9b': 'L'
'\u0c9c': 'L'
'\u0c9d': 'L'
'\u0c9e': 'L'
'\u0c9f': 'L'
'\u0ca0': 'L'
'\u0ca1': 'L'
'\u0ca2': 'L'
'\u0ca3': 'L'
'\u0ca4': 'L'
'\u0ca5': 'L'
'\u0ca6': 'L'
'\u0ca7': 'L'
'\u0ca8': 'L'
'\u0caa': 'L'
'\u0cab': 'L'
'\u0cac': 'L'
'\u0cad': 'L'
'\u0cae': 'L'
'\u0caf': 'L'
'\u0cb0': 'L'
'\u0cb1': 'L'
'\u0cb2': 'L'
'\u0cb3': 'L'
'\u0cb5': 'L'
'\u0cb6': 'L'
'\u0cb7': 'L'
'\u0cb8': 'L'
'\u0cb9': 'L'
'\u0cbd': 'L'
'\u0cde': 'L'
'\u0ce0': 'L'
'\u0ce1': 'L'
'\u0ce6': 'N'
'\u0ce7': 'N'
'\u0ce8': 'N'
'\u0ce9': 'N'
'\u0cea': 'N'
'\u0ceb': 'N'
'\u0cec': 'N'
'\u0ced': 'N'
'\u0cee': 'N'
'\u0cef': 'N'
'\u0cf1': 'L'
'\u0cf2': 'L'
'\u0d05': 'L'
'\u0d06': 'L'
'\u0d07': 'L'
'\u0d08': 'L'
'\u0d09': 'L'
'\u0d0a': 'L'
'\u0d0b': 'L'
'\u0d0c': 'L'
'\u0d0e': 'L'
'\u0d0f': 'L'
'\u0d10': 'L'
'\u0d12': 'L'
'\u0d13': 'L'
'\u0d14': 'L'
'\u0d15': 'L'
'\u0d16': 'L'
'\u0d17': 'L'
'\u0d18': 'L'
'\u0d19': 'L'
'\u0d1a': 'L'
'\u0d1b': 'L'
'\u0d1c': 'L'
'\u0d1d': 'L'
'\u0d1e': 'L'
'\u0d1f': 'L'
'\u0d20': 'L'
'\u0d21': 'L'
'\u0d22': 'L'
'\u0d23': 'L'
'\u0d24': 'L'
'\u0d25': 'L'
'\u0d26': 'L'
'\u0d27': 'L'
'\u0d28': 'L'
'\u0d29': 'L'
'\u0d2a': 'L'
'\u0d2b': 'L'
'\u0d2c': 'L'
'\u0d2d': 'L'
'\u0d2e': 'L'
'\u0d2f': 'L'
'\u0d30': 'L'
'\u0d31': 'L'
'\u0d32': 'L'
'\u0d33': 'L'
'\u0d34': 'L'
'\u0d35': 'L'
'\u0d36': 'L'
'\u0d37': 'L'
'\u0d38': 'L'
'\u0d39': 'L'
'\u0d3a': 'L'
'\u0d3d': 'L'
'\u0d4e': 'L'
'\u0d5f': 'L'
'\u0d60': 'L'
'\u0d61': 'L'
'\u0d66': 'N'
'\u0d67': 'N'
'\u0d68': 'N'
'\u0d69': 'N'
'\u0d6a': 'N'
'\u0d6b': 'N'
'\u0d6c': 'N'
'\u0d6d': 'N'
'\u0d6e': 'N'
'\u0d6f': 'N'
'\u0d70': 'N'
'\u0d71': 'N'
'\u0d72': 'N'
'\u0d73': 'N'
'\u0d74': 'N'
'\u0d75': 'N'
'\u0d7a': 'L'
'\u0d7b': 'L'
'\u0d7c': 'L'
'\u0d7d': 'L'
'\u0d7e': 'L'
'\u0d7f': 'L'
'\u0d85': 'L'
'\u0d86': 'L'
'\u0d87': 'L'
'\u0d88': 'L'
'\u0d89': 'L'
'\u0d8a': 'L'
'\u0d8b': 'L'
'\u0d8c': 'L'
'\u0d8d': 'L'
'\u0d8e': 'L'
'\u0d8f': 'L'
'\u0d90': 'L'
'\u0d91': 'L'
'\u0d92': 'L'
'\u0d93': 'L'
'\u0d94': 'L'
'\u0d95': 'L'
'\u0d96': 'L'
'\u0d9a': 'L'
'\u0d9b': 'L'
'\u0d9c': 'L'
'\u0d9d': 'L'
'\u0d9e': 'L'
'\u0d9f': 'L'
'\u0da0': 'L'
'\u0da1': 'L'
'\u0da2': 'L'
'\u0da3': 'L'
'\u0da4': 'L'
'\u0da5': 'L'
'\u0da6': 'L'
'\u0da7': 'L'
'\u0da8': 'L'
'\u0da9': 'L'
'\u0daa': 'L'
'\u0dab': 'L'
'\u0dac': 'L'
'\u0dad': 'L'
'\u0dae': 'L'
'\u0daf': 'L'
'\u0db0': 'L'
'\u0db1': 'L'
'\u0db3': 'L'
'\u0db4': 'L'
'\u0db5': 'L'
'\u0db6': 'L'
'\u0db7': 'L'
'\u0db8': 'L'
'\u0db9': 'L'
'\u0dba': 'L'
'\u0dbb': 'L'
'\u0dbd': 'L'
'\u0dc0': 'L'
'\u0dc1': 'L'
'\u0dc2': 'L'
'\u0dc3': 'L'
'\u0dc4': 'L'
'\u0dc5': 'L'
'\u0dc6': 'L'
'\u0de6': 'N'
'\u0de7': 'N'
'\u0de8': 'N'
'\u0de9': 'N'
'\u0dea': 'N'
'\u0deb': 'N'
'\u0dec': 'N'
'\u0ded': 'N'
'\u0dee': 'N'
'\u0def': 'N'
'\u0e01': 'L'
'\u0e02': 'L'
'\u0e03': 'L'
'\u0e04': 'L'
'\u0e05': 'L'
'\u0e06': 'L'
'\u0e07': 'L'
'\u0e08': 'L'
'\u0e09': 'L'
'\u0e0a': 'L'
'\u0e0b': 'L'
'\u0e0c': 'L'
'\u0e0d': 'L'
'\u0e0e': 'L'
'\u0e0f': 'L'
'\u0e10': 'L'
'\u0e11': 'L'
'\u0e12': 'L'
'\u0e13': 'L'
'\u0e14': 'L'
'\u0e15': 'L'
'\u0e16': 'L'
'\u0e17': 'L'
'\u0e18': 'L'
'\u0e19': 'L'
'\u0e1a': 'L'
'\u0e1b': 'L'
'\u0e1c': 'L'
'\u0e1d': 'L'
'\u0e1e': 'L'
'\u0e1f': 'L'
'\u0e20': 'L'
'\u0e21': 'L'
'\u0e22': 'L'
'\u0e23': 'L'
'\u0e24': 'L'
'\u0e25': 'L'
'\u0e26': 'L'
'\u0e27': 'L'
'\u0e28': 'L'
'\u0e29': 'L'
'\u0e2a': 'L'
'\u0e2b': 'L'
'\u0e2c': 'L'
'\u0e2d': 'L'
'\u0e2e': 'L'
'\u0e2f': 'L'
'\u0e30': 'L'
'\u0e32': 'L'
'\u0e33': 'L'
'\u0e40': 'L'
'\u0e41': 'L'
'\u0e42': 'L'
'\u0e43': 'L'
'\u0e44': 'L'
'\u0e45': 'L'
'\u0e46': 'L'
'\u0e50': 'N'
'\u0e51': 'N'
'\u0e52': 'N'
'\u0e53': 'N'
'\u0e54': 'N'
'\u0e55': 'N'
'\u0e56': 'N'
'\u0e57': 'N'
'\u0e58': 'N'
'\u0e59': 'N'
'\u0e81': 'L'
'\u0e82': 'L'
'\u0e84': 'L'
'\u0e87': 'L'
'\u0e88': 'L'
'\u0e8a': 'L'
'\u0e8d': 'L'
'\u0e94': 'L'
'\u0e95': 'L'
'\u0e96': 'L'
'\u0e97': 'L'
'\u0e99': 'L'
'\u0e9a': 'L'
'\u0e9b': 'L'
'\u0e9c': 'L'
'\u0e9d': 'L'
'\u0e9e': 'L'
'\u0e9f': 'L'
'\u0ea1': 'L'
'\u0ea2': 'L'
'\u0ea3': 'L'
'\u0ea5': 'L'
'\u0ea7': 'L'
'\u0eaa': 'L'
'\u0eab': 'L'
'\u0ead': 'L'
'\u0eae': 'L'
'\u0eaf': 'L'
'\u0eb0': 'L'
'\u0eb2': 'L'
'\u0eb3': 'L'
'\u0ebd': 'L'
'\u0ec0': 'L'
'\u0ec1': 'L'
'\u0ec2': 'L'
'\u0ec3': 'L'
'\u0ec4': 'L'
'\u0ec6': 'L'
'\u0ed0': 'N'
'\u0ed1': 'N'
'\u0ed2': 'N'
'\u0ed3': 'N'
'\u0ed4': 'N'
'\u0ed5': 'N'
'\u0ed6': 'N'
'\u0ed7': 'N'
'\u0ed8': 'N'
'\u0ed9': 'N'
'\u0edc': 'L'
'\u0edd': 'L'
'\u0ede': 'L'
'\u0edf': 'L'
'\u0f00': 'L'
'\u0f20': 'N'
'\u0f21': 'N'
'\u0f22': 'N'
'\u0f23': 'N'
'\u0f24': 'N'
'\u0f25': 'N'
'\u0f26': 'N'
'\u0f27': 'N'
'\u0f28': 'N'
'\u0f29': 'N'
'\u0f2a': 'N'
'\u0f2b': 'N'
'\u0f2c': 'N'
'\u0f2d': 'N'
'\u0f2e': 'N'
'\u0f2f': 'N'
'\u0f30': 'N'
'\u0f31': 'N'
'\u0f32': 'N'
'\u0f33': 'N'
'\u0f40': 'L'
'\u0f41': 'L'
'\u0f42': 'L'
'\u0f43': 'L'
'\u0f44': 'L'
'\u0f45': 'L'
'\u0f46': 'L'
'\u0f47': 'L'
'\u0f49': 'L'
'\u0f4a': 'L'
'\u0f4b': 'L'
'\u0f4c': 'L'
'\u0f4d': 'L'
'\u0f4e': 'L'
'\u0f4f': 'L'
'\u0f50': 'L'
'\u0f51': 'L'
'\u0f52': 'L'
'\u0f53': 'L'
'\u0f54': 'L'
'\u0f55': 'L'
'\u0f56': 'L'
'\u0f57': 'L'
'\u0f58': 'L'
'\u0f59': 'L'
'\u0f5a': 'L'
'\u0f5b': 'L'
'\u0f5c': 'L'
'\u0f5d': 'L'
'\u0f5e': 'L'
'\u0f5f': 'L'
'\u0f60': 'L'
'\u0f61': 'L'
'\u0f62': 'L'
'\u0f63': 'L'
'\u0f64': 'L'
'\u0f65': 'L'
'\u0f66': 'L'
'\u0f67': 'L'
'\u0f68': 'L'
'\u0f69': 'L'
'\u0f6a': 'L'
'\u0f6b': 'L'
'\u0f6c': 'L'
'\u0f88': 'L'
'\u0f89': 'L'
'\u0f8a': 'L'
'\u0f8b': 'L'
'\u0f8c': 'L'
'\u1000': 'L'
'\u1001': 'L'
'\u1002': 'L'
'\u1003': 'L'
'\u1004': 'L'
'\u1005': 'L'
'\u1006': 'L'
'\u1007': 'L'
'\u1008': 'L'
'\u1009': 'L'
'\u100a': 'L'
'\u100b': 'L'
'\u100c': 'L'
'\u100d': 'L'
'\u100e': 'L'
'\u100f': 'L'
'\u1010': 'L'
'\u1011': 'L'
'\u1012': 'L'
'\u1013': 'L'
'\u1014': 'L'
'\u1015': 'L'
'\u1016': 'L'
'\u1017': 'L'
'\u1018': 'L'
'\u1019': 'L'
'\u101a': 'L'
'\u101b': 'L'
'\u101c': 'L'
'\u101d': 'L'
'\u101e': 'L'
'\u101f': 'L'
'\u1020': 'L'
'\u1021': 'L'
'\u1022': 'L'
'\u1023': 'L'
'\u1024': 'L'
'\u1025': 'L'
'\u1026': 'L'
'\u1027': 'L'
'\u1028': 'L'
'\u1029': 'L'
'\u102a': 'L'
'\u103f': 'L'
'\u1040': 'N'
'\u1041': 'N'
'\u1042': 'N'
'\u1043': 'N'
'\u1044': 'N'
'\u1045': 'N'
'\u1046': 'N'
'\u1047': 'N'
'\u1048': 'N'
'\u1049': 'N'
'\u1050': 'L'
'\u1051': 'L'
'\u1052': 'L'
'\u1053': 'L'
'\u1054': 'L'
'\u1055': 'L'
'\u105a': 'L'
'\u105b': 'L'
'\u105c': 'L'
'\u105d': 'L'
'\u1061': 'L'
'\u1065': 'L'
'\u1066': 'L'
'\u106e': 'L'
'\u106f': 'L'
'\u1070': 'L'
'\u1075': 'L'
'\u1076': 'L'
'\u1077': 'L'
'\u1078': 'L'
'\u1079': 'L'
'\u107a': 'L'
'\u107b': 'L'
'\u107c': 'L'
'\u107d': 'L'
'\u107e': 'L'
'\u107f': 'L'
'\u1080': 'L'
'\u1081': 'L'
'\u108e': 'L'
'\u1090': 'N'
'\u1091': 'N'
'\u1092': 'N'
'\u1093': 'N'
'\u1094': 'N'
'\u1095': 'N'
'\u1096': 'N'
'\u1097': 'N'
'\u1098': 'N'
'\u1099': 'N'
'\u10a0': 'Lu'
'\u10a1': 'Lu'
'\u10a2': 'Lu'
'\u10a3': 'Lu'
'\u10a4': 'Lu'
'\u10a5': 'Lu'
'\u10a6': 'Lu'
'\u10a7': 'Lu'
'\u10a8': 'Lu'
'\u10a9': 'Lu'
'\u10aa': 'Lu'
'\u10ab': 'Lu'
'\u10ac': 'Lu'
'\u10ad': 'Lu'
'\u10ae': 'Lu'
'\u10af': 'Lu'
'\u10b0': 'Lu'
'\u10b1': 'Lu'
'\u10b2': 'Lu'
'\u10b3': 'Lu'
'\u10b4': 'Lu'
'\u10b5': 'Lu'
'\u10b6': 'Lu'
'\u10b7': 'Lu'
'\u10b8': 'Lu'
'\u10b9': 'Lu'
'\u10ba': 'Lu'
'\u10bb': 'Lu'
'\u10bc': 'Lu'
'\u10bd': 'Lu'
'\u10be': 'Lu'
'\u10bf': 'Lu'
'\u10c0': 'Lu'
'\u10c1': 'Lu'
'\u10c2': 'Lu'
'\u10c3': 'Lu'
'\u10c4': 'Lu'
'\u10c5': 'Lu'
'\u10c7': 'Lu'
'\u10cd': 'Lu'
'\u10d0': 'L'
'\u10d1': 'L'
'\u10d2': 'L'
'\u10d3': 'L'
'\u10d4': 'L'
'\u10d5': 'L'
'\u10d6': 'L'
'\u10d7': 'L'
'\u10d8': 'L'
'\u10d9': 'L'
'\u10da': 'L'
'\u10db': 'L'
'\u10dc': 'L'
'\u10dd': 'L'
'\u10de': 'L'
'\u10df': 'L'
'\u10e0': 'L'
'\u10e1': 'L'
'\u10e2': 'L'
'\u10e3': 'L'
'\u10e4': 'L'
'\u10e5': 'L'
'\u10e6': 'L'
'\u10e7': 'L'
'\u10e8': 'L'
'\u10e9': 'L'
'\u10ea': 'L'
'\u10eb': 'L'
'\u10ec': 'L'
'\u10ed': 'L'
'\u10ee': 'L'
'\u10ef': 'L'
'\u10f0': 'L'
'\u10f1': 'L'
'\u10f2': 'L'
'\u10f3': 'L'
'\u10f4': 'L'
'\u10f5': 'L'
'\u10f6': 'L'
'\u10f7': 'L'
'\u10f8': 'L'
'\u10f9': 'L'
'\u10fa': 'L'
'\u10fc': 'L'
'\u10fd': 'L'
'\u10fe': 'L'
'\u10ff': 'L'
'\u1100': 'L'
'\u1101': 'L'
'\u1102': 'L'
'\u1103': 'L'
'\u1104': 'L'
'\u1105': 'L'
'\u1106': 'L'
'\u1107': 'L'
'\u1108': 'L'
'\u1109': 'L'
'\u110a': 'L'
'\u110b': 'L'
'\u110c': 'L'
'\u110d': 'L'
'\u110e': 'L'
'\u110f': 'L'
'\u1110': 'L'
'\u1111': 'L'
'\u1112': 'L'
'\u1113': 'L'
'\u1114': 'L'
'\u1115': 'L'
'\u1116': 'L'
'\u1117': 'L'
'\u1118': 'L'
'\u1119': 'L'
'\u111a': 'L'
'\u111b': 'L'
'\u111c': 'L'
'\u111d': 'L'
'\u111e': 'L'
'\u111f': 'L'
'\u1120': 'L'
'\u1121': 'L'
'\u1122': 'L'
'\u1123': 'L'
'\u1124': 'L'
'\u1125': 'L'
'\u1126': 'L'
'\u1127': 'L'
'\u1128': 'L'
'\u1129': 'L'
'\u112a': 'L'
'\u112b': 'L'
'\u112c': 'L'
'\u112d': 'L'
'\u112e': 'L'
'\u112f': 'L'
'\u1130': 'L'
'\u1131': 'L'
'\u1132': 'L'
'\u1133': 'L'
'\u1134': 'L'
'\u1135': 'L'
'\u1136': 'L'
'\u1137': 'L'
'\u1138': 'L'
'\u1139': 'L'
'\u113a': 'L'
'\u113b': 'L'
'\u113c': 'L'
'\u113d': 'L'
'\u113e': 'L'
'\u113f': 'L'
'\u1140': 'L'
'\u1141': 'L'
'\u1142': 'L'
'\u1143': 'L'
'\u1144': 'L'
'\u1145': 'L'
'\u1146': 'L'
'\u1147': 'L'
'\u1148': 'L'
'\u1149': 'L'
'\u114a': 'L'
'\u114b': 'L'
'\u114c': 'L'
'\u114d': 'L'
'\u114e': 'L'
'\u114f': 'L'
'\u1150': 'L'
'\u1151': 'L'
'\u1152': 'L'
'\u1153': 'L'
'\u1154': 'L'
'\u1155': 'L'
'\u1156': 'L'
'\u1157': 'L'
'\u1158': 'L'
'\u1159': 'L'
'\u115a': 'L'
'\u115b': 'L'
'\u115c': 'L'
'\u115d': 'L'
'\u115e': 'L'
'\u115f': 'L'
'\u1160': 'L'
'\u1161': 'L'
'\u1162': 'L'
'\u1163': 'L'
'\u1164': 'L'
'\u1165': 'L'
'\u1166': 'L'
'\u1167': 'L'
'\u1168': 'L'
'\u1169': 'L'
'\u116a': 'L'
'\u116b': 'L'
'\u116c': 'L'
'\u116d': 'L'
'\u116e': 'L'
'\u116f': 'L'
'\u1170': 'L'
'\u1171': 'L'
'\u1172': 'L'
'\u1173': 'L'
'\u1174': 'L'
'\u1175': 'L'
'\u1176': 'L'
'\u1177': 'L'
'\u1178': 'L'
'\u1179': 'L'
'\u117a': 'L'
'\u117b': 'L'
'\u117c': 'L'
'\u117d': 'L'
'\u117e': 'L'
'\u117f': 'L'
'\u1180': 'L'
'\u1181': 'L'
'\u1182': 'L'
'\u1183': 'L'
'\u1184': 'L'
'\u1185': 'L'
'\u1186': 'L'
'\u1187': 'L'
'\u1188': 'L'
'\u1189': 'L'
'\u118a': 'L'
'\u118b': 'L'
'\u118c': 'L'
'\u118d': 'L'
'\u118e': 'L'
'\u118f': 'L'
'\u1190': 'L'
'\u1191': 'L'
'\u1192': 'L'
'\u1193': 'L'
'\u1194': 'L'
'\u1195': 'L'
'\u1196': 'L'
'\u1197': 'L'
'\u1198': 'L'
'\u1199': 'L'
'\u119a': 'L'
'\u119b': 'L'
'\u119c': 'L'
'\u119d': 'L'
'\u119e': 'L'
'\u119f': 'L'
'\u11a0': 'L'
'\u11a1': 'L'
'\u11a2': 'L'
'\u11a3': 'L'
'\u11a4': 'L'
'\u11a5': 'L'
'\u11a6': 'L'
'\u11a7': 'L'
'\u11a8': 'L'
'\u11a9': 'L'
'\u11aa': 'L'
'\u11ab': 'L'
'\u11ac': 'L'
'\u11ad': 'L'
'\u11ae': 'L'
'\u11af': 'L'
'\u11b0': 'L'
'\u11b1': 'L'
'\u11b2': 'L'
'\u11b3': 'L'
'\u11b4': 'L'
'\u11b5': 'L'
'\u11b6': 'L'
'\u11b7': 'L'
'\u11b8': 'L'
'\u11b9': 'L'
'\u11ba': 'L'
'\u11bb': 'L'
'\u11bc': 'L'
'\u11bd': 'L'
'\u11be': 'L'
'\u11bf': 'L'
'\u11c0': 'L'
'\u11c1': 'L'
'\u11c2': 'L'
'\u11c3': 'L'
'\u11c4': 'L'
'\u11c5': 'L'
'\u11c6': 'L'
'\u11c7': 'L'
'\u11c8': 'L'
'\u11c9': 'L'
'\u11ca': 'L'
'\u11cb': 'L'
'\u11cc': 'L'
'\u11cd': 'L'
'\u11ce': 'L'
'\u11cf': 'L'
'\u11d0': 'L'
'\u11d1': 'L'
'\u11d2': 'L'
'\u11d3': 'L'
'\u11d4': 'L'
'\u11d5': 'L'
'\u11d6': 'L'
'\u11d7': 'L'
'\u11d8': 'L'
'\u11d9': 'L'
'\u11da': 'L'
'\u11db': 'L'
'\u11dc': 'L'
'\u11dd': 'L'
'\u11de': 'L'
'\u11df': 'L'
'\u11e0': 'L'
'\u11e1': 'L'
'\u11e2': 'L'
'\u11e3': 'L'
'\u11e4': 'L'
'\u11e5': 'L'
'\u11e6': 'L'
'\u11e7': 'L'
'\u11e8': 'L'
'\u11e9': 'L'
'\u11ea': 'L'
'\u11eb': 'L'
'\u11ec': 'L'
'\u11ed': 'L'
'\u11ee': 'L'
'\u11ef': 'L'
'\u11f0': 'L'
'\u11f1': 'L'
'\u11f2': 'L'
'\u11f3': 'L'
'\u11f4': 'L'
'\u11f5': 'L'
'\u11f6': 'L'
'\u11f7': 'L'
'\u11f8': 'L'
'\u11f9': 'L'
'\u11fa': 'L'
'\u11fb': 'L'
'\u11fc': 'L'
'\u11fd': 'L'
'\u11fe': 'L'
'\u11ff': 'L'
'\u1200': 'L'
'\u1201': 'L'
'\u1202': 'L'
'\u1203': 'L'
'\u1204': 'L'
'\u1205': 'L'
'\u1206': 'L'
'\u1207': 'L'
'\u1208': 'L'
'\u1209': 'L'
'\u120a': 'L'
'\u120b': 'L'
'\u120c': 'L'
'\u120d': 'L'
'\u120e': 'L'
'\u120f': 'L'
'\u1210': 'L'
'\u1211': 'L'
'\u1212': 'L'
'\u1213': 'L'
'\u1214': 'L'
'\u1215': 'L'
'\u1216': 'L'
'\u1217': 'L'
'\u1218': 'L'
'\u1219': 'L'
'\u121a': 'L'
'\u121b': 'L'
'\u121c': 'L'
'\u121d': 'L'
'\u121e': 'L'
'\u121f': 'L'
'\u1220': 'L'
'\u1221': 'L'
'\u1222': 'L'
'\u1223': 'L'
'\u1224': 'L'
'\u1225': 'L'
'\u1226': 'L'
'\u1227': 'L'
'\u1228': 'L'
'\u1229': 'L'
'\u122a': 'L'
'\u122b': 'L'
'\u122c': 'L'
'\u122d': 'L'
'\u122e': 'L'
'\u122f': 'L'
'\u1230': 'L'
'\u1231': 'L'
'\u1232': 'L'
'\u1233': 'L'
'\u1234': 'L'
'\u1235': 'L'
'\u1236': 'L'
'\u1237': 'L'
'\u1238': 'L'
'\u1239': 'L'
'\u123a': 'L'
'\u123b': 'L'
'\u123c': 'L'
'\u123d': 'L'
'\u123e': 'L'
'\u123f': 'L'
'\u1240': 'L'
'\u1241': 'L'
'\u1242': 'L'
'\u1243': 'L'
'\u1244': 'L'
'\u1245': 'L'
'\u1246': 'L'
'\u1247': 'L'
'\u1248': 'L'
'\u124a': 'L'
'\u124b': 'L'
'\u124c': 'L'
'\u124d': 'L'
'\u1250': 'L'
'\u1251': 'L'
'\u1252': 'L'
'\u1253': 'L'
'\u1254': 'L'
'\u1255': 'L'
'\u1256': 'L'
'\u1258': 'L'
'\u125a': 'L'
'\u125b': 'L'
'\u125c': 'L'
'\u125d': 'L'
'\u1260': 'L'
'\u1261': 'L'
'\u1262': 'L'
'\u1263': 'L'
'\u1264': 'L'
'\u1265': 'L'
'\u1266': 'L'
'\u1267': 'L'
'\u1268': 'L'
'\u1269': 'L'
'\u126a': 'L'
'\u126b': 'L'
'\u126c': 'L'
'\u126d': 'L'
'\u126e': 'L'
'\u126f': 'L'
'\u1270': 'L'
'\u1271': 'L'
'\u1272': 'L'
'\u1273': 'L'
'\u1274': 'L'
'\u1275': 'L'
'\u1276': 'L'
'\u1277': 'L'
'\u1278': 'L'
'\u1279': 'L'
'\u127a': 'L'
'\u127b': 'L'
'\u127c': 'L'
'\u127d': 'L'
'\u127e': 'L'
'\u127f': 'L'
'\u1280': 'L'
'\u1281': 'L'
'\u1282': 'L'
'\u1283': 'L'
'\u1284': 'L'
'\u1285': 'L'
'\u1286': 'L'
'\u1287': 'L'
'\u1288': 'L'
'\u128a': 'L'
'\u128b': 'L'
'\u128c': 'L'
'\u128d': 'L'
'\u1290': 'L'
'\u1291': 'L'
'\u1292': 'L'
'\u1293': 'L'
'\u1294': 'L'
'\u1295': 'L'
'\u1296': 'L'
'\u1297': 'L'
'\u1298': 'L'
'\u1299': 'L'
'\u129a': 'L'
'\u129b': 'L'
'\u129c': 'L'
'\u129d': 'L'
'\u129e': 'L'
'\u129f': 'L'
'\u12a0': 'L'
'\u12a1': 'L'
'\u12a2': 'L'
'\u12a3': 'L'
'\u12a4': 'L'
'\u12a5': 'L'
'\u12a6': 'L'
'\u12a7': 'L'
'\u12a8': 'L'
'\u12a9': 'L'
'\u12aa': 'L'
'\u12ab': 'L'
'\u12ac': 'L'
'\u12ad': 'L'
'\u12ae': 'L'
'\u12af': 'L'
'\u12b0': 'L'
'\u12b2': 'L'
'\u12b3': 'L'
'\u12b4': 'L'
'\u12b5': 'L'
'\u12b8': 'L'
'\u12b9': 'L'
'\u12ba': 'L'
'\u12bb': 'L'
'\u12bc': 'L'
'\u12bd': 'L'
'\u12be': 'L'
'\u12c0': 'L'
'\u12c2': 'L'
'\u12c3': 'L'
'\u12c4': 'L'
'\u12c5': 'L'
'\u12c8': 'L'
'\u12c9': 'L'
'\u12ca': 'L'
'\u12cb': 'L'
'\u12cc': 'L'
'\u12cd': 'L'
'\u12ce': 'L'
'\u12cf': 'L'
'\u12d0': 'L'
'\u12d1': 'L'
'\u12d2': 'L'
'\u12d3': 'L'
'\u12d4': 'L'
'\u12d5': 'L'
'\u12d6': 'L'
'\u12d8': 'L'
'\u12d9': 'L'
'\u12da': 'L'
'\u12db': 'L'
'\u12dc': 'L'
'\u12dd': 'L'
'\u12de': 'L'
'\u12df': 'L'
'\u12e0': 'L'
'\u12e1': 'L'
'\u12e2': 'L'
'\u12e3': 'L'
'\u12e4': 'L'
'\u12e5': 'L'
'\u12e6': 'L'
'\u12e7': 'L'
'\u12e8': 'L'
'\u12e9': 'L'
'\u12ea': 'L'
'\u12eb': 'L'
'\u12ec': 'L'
'\u12ed': 'L'
'\u12ee': 'L'
'\u12ef': 'L'
'\u12f0': 'L'
'\u12f1': 'L'
'\u12f2': 'L'
'\u12f3': 'L'
'\u12f4': 'L'
'\u12f5': 'L'
'\u12f6': 'L'
'\u12f7': 'L'
'\u12f8': 'L'
'\u12f9': 'L'
'\u12fa': 'L'
'\u12fb': 'L'
'\u12fc': 'L'
'\u12fd': 'L'
'\u12fe': 'L'
'\u12ff': 'L'
'\u1300': 'L'
'\u1301': 'L'
'\u1302': 'L'
'\u1303': 'L'
'\u1304': 'L'
'\u1305': 'L'
'\u1306': 'L'
'\u1307': 'L'
'\u1308': 'L'
'\u1309': 'L'
'\u130a': 'L'
'\u130b': 'L'
'\u130c': 'L'
'\u130d': 'L'
'\u130e': 'L'
'\u130f': 'L'
'\u1310': 'L'
'\u1312': 'L'
'\u1313': 'L'
'\u1314': 'L'
'\u1315': 'L'
'\u1318': 'L'
'\u1319': 'L'
'\u131a': 'L'
'\u131b': 'L'
'\u131c': 'L'
'\u131d': 'L'
'\u131e': 'L'
'\u131f': 'L'
'\u1320': 'L'
'\u1321': 'L'
'\u1322': 'L'
'\u1323': 'L'
'\u1324': 'L'
'\u1325': 'L'
'\u1326': 'L'
'\u1327': 'L'
'\u1328': 'L'
'\u1329': 'L'
'\u132a': 'L'
'\u132b': 'L'
'\u132c': 'L'
'\u132d': 'L'
'\u132e': 'L'
'\u132f': 'L'
'\u1330': 'L'
'\u1331': 'L'
'\u1332': 'L'
'\u1333': 'L'
'\u1334': 'L'
'\u1335': 'L'
'\u1336': 'L'
'\u1337': 'L'
'\u1338': 'L'
'\u1339': 'L'
'\u133a': 'L'
'\u133b': 'L'
'\u133c': 'L'
'\u133d': 'L'
'\u133e': 'L'
'\u133f': 'L'
'\u1340': 'L'
'\u1341': 'L'
'\u1342': 'L'
'\u1343': 'L'
'\u1344': 'L'
'\u1345': 'L'
'\u1346': 'L'
'\u1347': 'L'
'\u1348': 'L'
'\u1349': 'L'
'\u134a': 'L'
'\u134b': 'L'
'\u134c': 'L'
'\u134d': 'L'
'\u134e': 'L'
'\u134f': 'L'
'\u1350': 'L'
'\u1351': 'L'
'\u1352': 'L'
'\u1353': 'L'
'\u1354': 'L'
'\u1355': 'L'
'\u1356': 'L'
'\u1357': 'L'
'\u1358': 'L'
'\u1359': 'L'
'\u135a': 'L'
'\u1369': 'N'
'\u136a': 'N'
'\u136b': 'N'
'\u136c': 'N'
'\u136d': 'N'
'\u136e': 'N'
'\u136f': 'N'
'\u1370': 'N'
'\u1371': 'N'
'\u1372': 'N'
'\u1373': 'N'
'\u1374': 'N'
'\u1375': 'N'
'\u1376': 'N'
'\u1377': 'N'
'\u1378': 'N'
'\u1379': 'N'
'\u137a': 'N'
'\u137b': 'N'
'\u137c': 'N'
'\u1380': 'L'
'\u1381': 'L'
'\u1382': 'L'
'\u1383': 'L'
'\u1384': 'L'
'\u1385': 'L'
'\u1386': 'L'
'\u1387': 'L'
'\u1388': 'L'
'\u1389': 'L'
'\u138a': 'L'
'\u138b': 'L'
'\u138c': 'L'
'\u138d': 'L'
'\u138e': 'L'
'\u138f': 'L'
'\u13a0': 'Lu'
'\u13a1': 'Lu'
'\u13a2': 'Lu'
'\u13a3': 'Lu'
'\u13a4': 'Lu'
'\u13a5': 'Lu'
'\u13a6': 'Lu'
'\u13a7': 'Lu'
'\u13a8': 'Lu'
'\u13a9': 'Lu'
'\u13aa': 'Lu'
'\u13ab': 'Lu'
'\u13ac': 'Lu'
'\u13ad': 'Lu'
'\u13ae': 'Lu'
'\u13af': 'Lu'
'\u13b0': 'Lu'
'\u13b1': 'Lu'
'\u13b2': 'Lu'
'\u13b3': 'Lu'
'\u13b4': 'Lu'
'\u13b5': 'Lu'
'\u13b6': 'Lu'
'\u13b7': 'Lu'
'\u13b8': 'Lu'
'\u13b9': 'Lu'
'\u13ba': 'Lu'
'\u13bb': 'Lu'
'\u13bc': 'Lu'
'\u13bd': 'Lu'
'\u13be': 'Lu'
'\u13bf': 'Lu'
'\u13c0': 'Lu'
'\u13c1': 'Lu'
'\u13c2': 'Lu'
'\u13c3': 'Lu'
'\u13c4': 'Lu'
'\u13c5': 'Lu'
'\u13c6': 'Lu'
'\u13c7': 'Lu'
'\u13c8': 'Lu'
'\u13c9': 'Lu'
'\u13ca': 'Lu'
'\u13cb': 'Lu'
'\u13cc': 'Lu'
'\u13cd': 'Lu'
'\u13ce': 'Lu'
'\u13cf': 'Lu'
'\u13d0': 'Lu'
'\u13d1': 'Lu'
'\u13d2': 'Lu'
'\u13d3': 'Lu'
'\u13d4': 'Lu'
'\u13d5': 'Lu'
'\u13d6': 'Lu'
'\u13d7': 'Lu'
'\u13d8': 'Lu'
'\u13d9': 'Lu'
'\u13da': 'Lu'
'\u13db': 'Lu'
'\u13dc': 'Lu'
'\u13dd': 'Lu'
'\u13de': 'Lu'
'\u13df': 'Lu'
'\u13e0': 'Lu'
'\u13e1': 'Lu'
'\u13e2': 'Lu'
'\u13e3': 'Lu'
'\u13e4': 'Lu'
'\u13e5': 'Lu'
'\u13e6': 'Lu'
'\u13e7': 'Lu'
'\u13e8': 'Lu'
'\u13e9': 'Lu'
'\u13ea': 'Lu'
'\u13eb': 'Lu'
'\u13ec': 'Lu'
'\u13ed': 'Lu'
'\u13ee': 'Lu'
'\u13ef': 'Lu'
'\u13f0': 'Lu'
'\u13f1': 'Lu'
'\u13f2': 'Lu'
'\u13f3': 'Lu'
'\u13f4': 'Lu'
'\u13f5': 'Lu'
'\u13f8': 'L'
'\u13f9': 'L'
'\u13fa': 'L'
'\u13fb': 'L'
'\u13fc': 'L'
'\u13fd': 'L'
'\u1401': 'L'
'\u1402': 'L'
'\u1403': 'L'
'\u1404': 'L'
'\u1405': 'L'
'\u1406': 'L'
'\u1407': 'L'
'\u1408': 'L'
'\u1409': 'L'
'\u140a': 'L'
'\u140b': 'L'
'\u140c': 'L'
'\u140d': 'L'
'\u140e': 'L'
'\u140f': 'L'
'\u1410': 'L'
'\u1411': 'L'
'\u1412': 'L'
'\u1413': 'L'
'\u1414': 'L'
'\u1415': 'L'
'\u1416': 'L'
'\u1417': 'L'
'\u1418': 'L'
'\u1419': 'L'
'\u141a': 'L'
'\u141b': 'L'
'\u141c': 'L'
'\u141d': 'L'
'\u141e': 'L'
'\u141f': 'L'
'\u1420': 'L'
'\u1421': 'L'
'\u1422': 'L'
'\u1423': 'L'
'\u1424': 'L'
'\u1425': 'L'
'\u1426': 'L'
'\u1427': 'L'
'\u1428': 'L'
'\u1429': 'L'
'\u142a': 'L'
'\u142b': 'L'
'\u142c': 'L'
'\u142d': 'L'
'\u142e': 'L'
'\u142f': 'L'
'\u1430': 'L'
'\u1431': 'L'
'\u1432': 'L'
'\u1433': 'L'
'\u1434': 'L'
'\u1435': 'L'
'\u1436': 'L'
'\u1437': 'L'
'\u1438': 'L'
'\u1439': 'L'
'\u143a': 'L'
'\u143b': 'L'
'\u143c': 'L'
'\u143d': 'L'
'\u143e': 'L'
'\u143f': 'L'
'\u1440': 'L'
'\u1441': 'L'
'\u1442': 'L'
'\u1443': 'L'
'\u1444': 'L'
'\u1445': 'L'
'\u1446': 'L'
'\u1447': 'L'
'\u1448': 'L'
'\u1449': 'L'
'\u144a': 'L'
'\u144b': 'L'
'\u144c': 'L'
'\u144d': 'L'
'\u144e': 'L'
'\u144f': 'L'
'\u1450': 'L'
'\u1451': 'L'
'\u1452': 'L'
'\u1453': 'L'
'\u1454': 'L'
'\u1455': 'L'
'\u1456': 'L'
'\u1457': 'L'
'\u1458': 'L'
'\u1459': 'L'
'\u145a': 'L'
'\u145b': 'L'
'\u145c': 'L'
'\u145d': 'L'
'\u145e': 'L'
'\u145f': 'L'
'\u1460': 'L'
'\u1461': 'L'
'\u1462': 'L'
'\u1463': 'L'
'\u1464': 'L'
'\u1465': 'L'
'\u1466': 'L'
'\u1467': 'L'
'\u1468': 'L'
'\u1469': 'L'
'\u146a': 'L'
'\u146b': 'L'
'\u146c': 'L'
'\u146d': 'L'
'\u146e': 'L'
'\u146f': 'L'
'\u1470': 'L'
'\u1471': 'L'
'\u1472': 'L'
'\u1473': 'L'
'\u1474': 'L'
'\u1475': 'L'
'\u1476': 'L'
'\u1477': 'L'
'\u1478': 'L'
'\u1479': 'L'
'\u147a': 'L'
'\u147b': 'L'
'\u147c': 'L'
'\u147d': 'L'
'\u147e': 'L'
'\u147f': 'L'
'\u1480': 'L'
'\u1481': 'L'
'\u1482': 'L'
'\u1483': 'L'
'\u1484': 'L'
'\u1485': 'L'
'\u1486': 'L'
'\u1487': 'L'
'\u1488': 'L'
'\u1489': 'L'
'\u148a': 'L'
'\u148b': 'L'
'\u148c': 'L'
'\u148d': 'L'
'\u148e': 'L'
'\u148f': 'L'
'\u1490': 'L'
'\u1491': 'L'
'\u1492': 'L'
'\u1493': 'L'
'\u1494': 'L'
'\u1495': 'L'
'\u1496': 'L'
'\u1497': 'L'
'\u1498': 'L'
'\u1499': 'L'
'\u149a': 'L'
'\u149b': 'L'
'\u149c': 'L'
'\u149d': 'L'
'\u149e': 'L'
'\u149f': 'L'
'\u14a0': 'L'
'\u14a1': 'L'
'\u14a2': 'L'
'\u14a3': 'L'
'\u14a4': 'L'
'\u14a5': 'L'
'\u14a6': 'L'
'\u14a7': 'L'
'\u14a8': 'L'
'\u14a9': 'L'
'\u14aa': 'L'
'\u14ab': 'L'
'\u14ac': 'L'
'\u14ad': 'L'
'\u14ae': 'L'
'\u14af': 'L'
'\u14b0': 'L'
'\u14b1': 'L'
'\u14b2': 'L'
'\u14b3': 'L'
'\u14b4': 'L'
'\u14b5': 'L'
'\u14b6': 'L'
'\u14b7': 'L'
'\u14b8': 'L'
'\u14b9': 'L'
'\u14ba': 'L'
'\u14bb': 'L'
'\u14bc': 'L'
'\u14bd': 'L'
'\u14be': 'L'
'\u14bf': 'L'
'\u14c0': 'L'
'\u14c1': 'L'
'\u14c2': 'L'
'\u14c3': 'L'
'\u14c4': 'L'
'\u14c5': 'L'
'\u14c6': 'L'
'\u14c7': 'L'
'\u14c8': 'L'
'\u14c9': 'L'
'\u14ca': 'L'
'\u14cb': 'L'
'\u14cc': 'L'
'\u14cd': 'L'
'\u14ce': 'L'
'\u14cf': 'L'
'\u14d0': 'L'
'\u14d1': 'L'
'\u14d2': 'L'
'\u14d3': 'L'
'\u14d4': 'L'
'\u14d5': 'L'
'\u14d6': 'L'
'\u14d7': 'L'
'\u14d8': 'L'
'\u14d9': 'L'
'\u14da': 'L'
'\u14db': 'L'
'\u14dc': 'L'
'\u14dd': 'L'
'\u14de': 'L'
'\u14df': 'L'
'\u14e0': 'L'
'\u14e1': 'L'
'\u14e2': 'L'
'\u14e3': 'L'
'\u14e4': 'L'
'\u14e5': 'L'
'\u14e6': 'L'
'\u14e7': 'L'
'\u14e8': 'L'
'\u14e9': 'L'
'\u14ea': 'L'
'\u14eb': 'L'
'\u14ec': 'L'
'\u14ed': 'L'
'\u14ee': 'L'
'\u14ef': 'L'
'\u14f0': 'L'
'\u14f1': 'L'
'\u14f2': 'L'
'\u14f3': 'L'
'\u14f4': 'L'
'\u14f5': 'L'
'\u14f6': 'L'
'\u14f7': 'L'
'\u14f8': 'L'
'\u14f9': 'L'
'\u14fa': 'L'
'\u14fb': 'L'
'\u14fc': 'L'
'\u14fd': 'L'
'\u14fe': 'L'
'\u14ff': 'L'
'\u1500': 'L'
'\u1501': 'L'
'\u1502': 'L'
'\u1503': 'L'
'\u1504': 'L'
'\u1505': 'L'
'\u1506': 'L'
'\u1507': 'L'
'\u1508': 'L'
'\u1509': 'L'
'\u150a': 'L'
'\u150b': 'L'
'\u150c': 'L'
'\u150d': 'L'
'\u150e': 'L'
'\u150f': 'L'
'\u1510': 'L'
'\u1511': 'L'
'\u1512': 'L'
'\u1513': 'L'
'\u1514': 'L'
'\u1515': 'L'
'\u1516': 'L'
'\u1517': 'L'
'\u1518': 'L'
'\u1519': 'L'
'\u151a': 'L'
'\u151b': 'L'
'\u151c': 'L'
'\u151d': 'L'
'\u151e': 'L'
'\u151f': 'L'
'\u1520': 'L'
'\u1521': 'L'
'\u1522': 'L'
'\u1523': 'L'
'\u1524': 'L'
'\u1525': 'L'
'\u1526': 'L'
'\u1527': 'L'
'\u1528': 'L'
'\u1529': 'L'
'\u152a': 'L'
'\u152b': 'L'
'\u152c': 'L'
'\u152d': 'L'
'\u152e': 'L'
'\u152f': 'L'
'\u1530': 'L'
'\u1531': 'L'
'\u1532': 'L'
'\u1533': 'L'
'\u1534': 'L'
'\u1535': 'L'
'\u1536': 'L'
'\u1537': 'L'
'\u1538': 'L'
'\u1539': 'L'
'\u153a': 'L'
'\u153b': 'L'
'\u153c': 'L'
'\u153d': 'L'
'\u153e': 'L'
'\u153f': 'L'
'\u1540': 'L'
'\u1541': 'L'
'\u1542': 'L'
'\u1543': 'L'
'\u1544': 'L'
'\u1545': 'L'
'\u1546': 'L'
'\u1547': 'L'
'\u1548': 'L'
'\u1549': 'L'
'\u154a': 'L'
'\u154b': 'L'
'\u154c': 'L'
'\u154d': 'L'
'\u154e': 'L'
'\u154f': 'L'
'\u1550': 'L'
'\u1551': 'L'
'\u1552': 'L'
'\u1553': 'L'
'\u1554': 'L'
'\u1555': 'L'
'\u1556': 'L'
'\u1557': 'L'
'\u1558': 'L'
'\u1559': 'L'
'\u155a': 'L'
'\u155b': 'L'
'\u155c': 'L'
'\u155d': 'L'
'\u155e': 'L'
'\u155f': 'L'
'\u1560': 'L'
'\u1561': 'L'
'\u1562': 'L'
'\u1563': 'L'
'\u1564': 'L'
'\u1565': 'L'
'\u1566': 'L'
'\u1567': 'L'
'\u1568': 'L'
'\u1569': 'L'
'\u156a': 'L'
'\u156b': 'L'
'\u156c': 'L'
'\u156d': 'L'
'\u156e': 'L'
'\u156f': 'L'
'\u1570': 'L'
'\u1571': 'L'
'\u1572': 'L'
'\u1573': 'L'
'\u1574': 'L'
'\u1575': 'L'
'\u1576': 'L'
'\u1577': 'L'
'\u1578': 'L'
'\u1579': 'L'
'\u157a': 'L'
'\u157b': 'L'
'\u157c': 'L'
'\u157d': 'L'
'\u157e': 'L'
'\u157f': 'L'
'\u1580': 'L'
'\u1581': 'L'
'\u1582': 'L'
'\u1583': 'L'
'\u1584': 'L'
'\u1585': 'L'
'\u1586': 'L'
'\u1587': 'L'
'\u1588': 'L'
'\u1589': 'L'
'\u158a': 'L'
'\u158b': 'L'
'\u158c': 'L'
'\u158d': 'L'
'\u158e': 'L'
'\u158f': 'L'
'\u1590': 'L'
'\u1591': 'L'
'\u1592': 'L'
'\u1593': 'L'
'\u1594': 'L'
'\u1595': 'L'
'\u1596': 'L'
'\u1597': 'L'
'\u1598': 'L'
'\u1599': 'L'
'\u159a': 'L'
'\u159b': 'L'
'\u159c': 'L'
'\u159d': 'L'
'\u159e': 'L'
'\u159f': 'L'
'\u15a0': 'L'
'\u15a1': 'L'
'\u15a2': 'L'
'\u15a3': 'L'
'\u15a4': 'L'
'\u15a5': 'L'
'\u15a6': 'L'
'\u15a7': 'L'
'\u15a8': 'L'
'\u15a9': 'L'
'\u15aa': 'L'
'\u15ab': 'L'
'\u15ac': 'L'
'\u15ad': 'L'
'\u15ae': 'L'
'\u15af': 'L'
'\u15b0': 'L'
'\u15b1': 'L'
'\u15b2': 'L'
'\u15b3': 'L'
'\u15b4': 'L'
'\u15b5': 'L'
'\u15b6': 'L'
'\u15b7': 'L'
'\u15b8': 'L'
'\u15b9': 'L'
'\u15ba': 'L'
'\u15bb': 'L'
'\u15bc': 'L'
'\u15bd': 'L'
'\u15be': 'L'
'\u15bf': 'L'
'\u15c0': 'L'
'\u15c1': 'L'
'\u15c2': 'L'
'\u15c3': 'L'
'\u15c4': 'L'
'\u15c5': 'L'
'\u15c6': 'L'
'\u15c7': 'L'
'\u15c8': 'L'
'\u15c9': 'L'
'\u15ca': 'L'
'\u15cb': 'L'
'\u15cc': 'L'
'\u15cd': 'L'
'\u15ce': 'L'
'\u15cf': 'L'
'\u15d0': 'L'
'\u15d1': 'L'
'\u15d2': 'L'
'\u15d3': 'L'
'\u15d4': 'L'
'\u15d5': 'L'
'\u15d6': 'L'
'\u15d7': 'L'
'\u15d8': 'L'
'\u15d9': 'L'
'\u15da': 'L'
'\u15db': 'L'
'\u15dc': 'L'
'\u15dd': 'L'
'\u15de': 'L'
'\u15df': 'L'
'\u15e0': 'L'
'\u15e1': 'L'
'\u15e2': 'L'
'\u15e3': 'L'
'\u15e4': 'L'
'\u15e5': 'L'
'\u15e6': 'L'
'\u15e7': 'L'
'\u15e8': 'L'
'\u15e9': 'L'
'\u15ea': 'L'
'\u15eb': 'L'
'\u15ec': 'L'
'\u15ed': 'L'
'\u15ee': 'L'
'\u15ef': 'L'
'\u15f0': 'L'
'\u15f1': 'L'
'\u15f2': 'L'
'\u15f3': 'L'
'\u15f4': 'L'
'\u15f5': 'L'
'\u15f6': 'L'
'\u15f7': 'L'
'\u15f8': 'L'
'\u15f9': 'L'
'\u15fa': 'L'
'\u15fb': 'L'
'\u15fc': 'L'
'\u15fd': 'L'
'\u15fe': 'L'
'\u15ff': 'L'
'\u1600': 'L'
'\u1601': 'L'
'\u1602': 'L'
'\u1603': 'L'
'\u1604': 'L'
'\u1605': 'L'
'\u1606': 'L'
'\u1607': 'L'
'\u1608': 'L'
'\u1609': 'L'
'\u160a': 'L'
'\u160b': 'L'
'\u160c': 'L'
'\u160d': 'L'
'\u160e': 'L'
'\u160f': 'L'
'\u1610': 'L'
'\u1611': 'L'
'\u1612': 'L'
'\u1613': 'L'
'\u1614': 'L'
'\u1615': 'L'
'\u1616': 'L'
'\u1617': 'L'
'\u1618': 'L'
'\u1619': 'L'
'\u161a': 'L'
'\u161b': 'L'
'\u161c': 'L'
'\u161d': 'L'
'\u161e': 'L'
'\u161f': 'L'
'\u1620': 'L'
'\u1621': 'L'
'\u1622': 'L'
'\u1623': 'L'
'\u1624': 'L'
'\u1625': 'L'
'\u1626': 'L'
'\u1627': 'L'
'\u1628': 'L'
'\u1629': 'L'
'\u162a': 'L'
'\u162b': 'L'
'\u162c': 'L'
'\u162d': 'L'
'\u162e': 'L'
'\u162f': 'L'
'\u1630': 'L'
'\u1631': 'L'
'\u1632': 'L'
'\u1633': 'L'
'\u1634': 'L'
'\u1635': 'L'
'\u1636': 'L'
'\u1637': 'L'
'\u1638': 'L'
'\u1639': 'L'
'\u163a': 'L'
'\u163b': 'L'
'\u163c': 'L'
'\u163d': 'L'
'\u163e': 'L'
'\u163f': 'L'
'\u1640': 'L'
'\u1641': 'L'
'\u1642': 'L'
'\u1643': 'L'
'\u1644': 'L'
'\u1645': 'L'
'\u1646': 'L'
'\u1647': 'L'
'\u1648': 'L'
'\u1649': 'L'
'\u164a': 'L'
'\u164b': 'L'
'\u164c': 'L'
'\u164d': 'L'
'\u164e': 'L'
'\u164f': 'L'
'\u1650': 'L'
'\u1651': 'L'
'\u1652': 'L'
'\u1653': 'L'
'\u1654': 'L'
'\u1655': 'L'
'\u1656': 'L'
'\u1657': 'L'
'\u1658': 'L'
'\u1659': 'L'
'\u165a': 'L'
'\u165b': 'L'
'\u165c': 'L'
'\u165d': 'L'
'\u165e': 'L'
'\u165f': 'L'
'\u1660': 'L'
'\u1661': 'L'
'\u1662': 'L'
'\u1663': 'L'
'\u1664': 'L'
'\u1665': 'L'
'\u1666': 'L'
'\u1667': 'L'
'\u1668': 'L'
'\u1669': 'L'
'\u166a': 'L'
'\u166b': 'L'
'\u166c': 'L'
'\u166f': 'L'
'\u1670': 'L'
'\u1671': 'L'
'\u1672': 'L'
'\u1673': 'L'
'\u1674': 'L'
'\u1675': 'L'
'\u1676': 'L'
'\u1677': 'L'
'\u1678': 'L'
'\u1679': 'L'
'\u167a': 'L'
'\u167b': 'L'
'\u167c': 'L'
'\u167d': 'L'
'\u167e': 'L'
'\u167f': 'L'
'\u1681': 'L'
'\u1682': 'L'
'\u1683': 'L'
'\u1684': 'L'
'\u1685': 'L'
'\u1686': 'L'
'\u1687': 'L'
'\u1688': 'L'
'\u1689': 'L'
'\u168a': 'L'
'\u168b': 'L'
'\u168c': 'L'
'\u168d': 'L'
'\u168e': 'L'
'\u168f': 'L'
'\u1690': 'L'
'\u1691': 'L'
'\u1692': 'L'
'\u1693': 'L'
'\u1694': 'L'
'\u1695': 'L'
'\u1696': 'L'
'\u1697': 'L'
'\u1698': 'L'
'\u1699': 'L'
'\u169a': 'L'
'\u16a0': 'L'
'\u16a1': 'L'
'\u16a2': 'L'
'\u16a3': 'L'
'\u16a4': 'L'
'\u16a5': 'L'
'\u16a6': 'L'
'\u16a7': 'L'
'\u16a8': 'L'
'\u16a9': 'L'
'\u16aa': 'L'
'\u16ab': 'L'
'\u16ac': 'L'
'\u16ad': 'L'
'\u16ae': 'L'
'\u16af': 'L'
'\u16b0': 'L'
'\u16b1': 'L'
'\u16b2': 'L'
'\u16b3': 'L'
'\u16b4': 'L'
'\u16b5': 'L'
'\u16b6': 'L'
'\u16b7': 'L'
'\u16b8': 'L'
'\u16b9': 'L'
'\u16ba': 'L'
'\u16bb': 'L'
'\u16bc': 'L'
'\u16bd': 'L'
'\u16be': 'L'
'\u16bf': 'L'
'\u16c0': 'L'
'\u16c1': 'L'
'\u16c2': 'L'
'\u16c3': 'L'
'\u16c4': 'L'
'\u16c5': 'L'
'\u16c6': 'L'
'\u16c7': 'L'
'\u16c8': 'L'
'\u16c9': 'L'
'\u16ca': 'L'
'\u16cb': 'L'
'\u16cc': 'L'
'\u16cd': 'L'
'\u16ce': 'L'
'\u16cf': 'L'
'\u16d0': 'L'
'\u16d1': 'L'
'\u16d2': 'L'
'\u16d3': 'L'
'\u16d4': 'L'
'\u16d5': 'L'
'\u16d6': 'L'
'\u16d7': 'L'
'\u16d8': 'L'
'\u16d9': 'L'
'\u16da': 'L'
'\u16db': 'L'
'\u16dc': 'L'
'\u16dd': 'L'
'\u16de': 'L'
'\u16df': 'L'
'\u16e0': 'L'
'\u16e1': 'L'
'\u16e2': 'L'
'\u16e3': 'L'
'\u16e4': 'L'
'\u16e5': 'L'
'\u16e6': 'L'
'\u16e7': 'L'
'\u16e8': 'L'
'\u16e9': 'L'
'\u16ea': 'L'
'\u16ee': 'N'
'\u16ef': 'N'
'\u16f0': 'N'
'\u16f1': 'L'
'\u16f2': 'L'
'\u16f3': 'L'
'\u16f4': 'L'
'\u16f5': 'L'
'\u16f6': 'L'
'\u16f7': 'L'
'\u16f8': 'L'
'\u1700': 'L'
'\u1701': 'L'
'\u1702': 'L'
'\u1703': 'L'
'\u1704': 'L'
'\u1705': 'L'
'\u1706': 'L'
'\u1707': 'L'
'\u1708': 'L'
'\u1709': 'L'
'\u170a': 'L'
'\u170b': 'L'
'\u170c': 'L'
'\u170e': 'L'
'\u170f': 'L'
'\u1710': 'L'
'\u1711': 'L'
'\u1720': 'L'
'\u1721': 'L'
'\u1722': 'L'
'\u1723': 'L'
'\u1724': 'L'
'\u1725': 'L'
'\u1726': 'L'
'\u1727': 'L'
'\u1728': 'L'
'\u1729': 'L'
'\u172a': 'L'
'\u172b': 'L'
'\u172c': 'L'
'\u172d': 'L'
'\u172e': 'L'
'\u172f': 'L'
'\u1730': 'L'
'\u1731': 'L'
'\u1740': 'L'
'\u1741': 'L'
'\u1742': 'L'
'\u1743': 'L'
'\u1744': 'L'
'\u1745': 'L'
'\u1746': 'L'
'\u1747': 'L'
'\u1748': 'L'
'\u1749': 'L'
'\u174a': 'L'
'\u174b': 'L'
'\u174c': 'L'
'\u174d': 'L'
'\u174e': 'L'
'\u174f': 'L'
'\u1750': 'L'
'\u1751': 'L'
'\u1760': 'L'
'\u1761': 'L'
'\u1762': 'L'
'\u1763': 'L'
'\u1764': 'L'
'\u1765': 'L'
'\u1766': 'L'
'\u1767': 'L'
'\u1768': 'L'
'\u1769': 'L'
'\u176a': 'L'
'\u176b': 'L'
'\u176c': 'L'
'\u176e': 'L'
'\u176f': 'L'
'\u1770': 'L'
'\u1780': 'L'
'\u1781': 'L'
'\u1782': 'L'
'\u1783': 'L'
'\u1784': 'L'
'\u1785': 'L'
'\u1786': 'L'
'\u1787': 'L'
'\u1788': 'L'
'\u1789': 'L'
'\u178a': 'L'
'\u178b': 'L'
'\u178c': 'L'
'\u178d': 'L'
'\u178e': 'L'
'\u178f': 'L'
'\u1790': 'L'
'\u1791': 'L'
'\u1792': 'L'
'\u1793': 'L'
'\u1794': 'L'
'\u1795': 'L'
'\u1796': 'L'
'\u1797': 'L'
'\u1798': 'L'
'\u1799': 'L'
'\u179a': 'L'
'\u179b': 'L'
'\u179c': 'L'
'\u179d': 'L'
'\u179e': 'L'
'\u179f': 'L'
'\u17a0': 'L'
'\u17a1': 'L'
'\u17a2': 'L'
'\u17a3': 'L'
'\u17a4': 'L'
'\u17a5': 'L'
'\u17a6': 'L'
'\u17a7': 'L'
'\u17a8': 'L'
'\u17a9': 'L'
'\u17aa': 'L'
'\u17ab': 'L'
'\u17ac': 'L'
'\u17ad': 'L'
'\u17ae': 'L'
'\u17af': 'L'
'\u17b0': 'L'
'\u17b1': 'L'
'\u17b2': 'L'
'\u17b3': 'L'
'\u17d7': 'L'
'\u17dc': 'L'
'\u17e0': 'N'
'\u17e1': 'N'
'\u17e2': 'N'
'\u17e3': 'N'
'\u17e4': 'N'
'\u17e5': 'N'
'\u17e6': 'N'
'\u17e7': 'N'
'\u17e8': 'N'
'\u17e9': 'N'
'\u17f0': 'N'
'\u17f1': 'N'
'\u17f2': 'N'
'\u17f3': 'N'
'\u17f4': 'N'
'\u17f5': 'N'
'\u17f6': 'N'
'\u17f7': 'N'
'\u17f8': 'N'
'\u17f9': 'N'
'\u1810': 'N'
'\u1811': 'N'
'\u1812': 'N'
'\u1813': 'N'
'\u1814': 'N'
'\u1815': 'N'
'\u1816': 'N'
'\u1817': 'N'
'\u1818': 'N'
'\u1819': 'N'
'\u1820': 'L'
'\u1821': 'L'
'\u1822': 'L'
'\u1823': 'L'
'\u1824': 'L'
'\u1825': 'L'
'\u1826': 'L'
'\u1827': 'L'
'\u1828': 'L'
'\u1829': 'L'
'\u182a': 'L'
'\u182b': 'L'
'\u182c': 'L'
'\u182d': 'L'
'\u182e': 'L'
'\u182f': 'L'
'\u1830': 'L'
'\u1831': 'L'
'\u1832': 'L'
'\u1833': 'L'
'\u1834': 'L'
'\u1835': 'L'
'\u1836': 'L'
'\u1837': 'L'
'\u1838': 'L'
'\u1839': 'L'
'\u183a': 'L'
'\u183b': 'L'
'\u183c': 'L'
'\u183d': 'L'
'\u183e': 'L'
'\u183f': 'L'
'\u1840': 'L'
'\u1841': 'L'
'\u1842': 'L'
'\u1843': 'L'
'\u1844': 'L'
'\u1845': 'L'
'\u1846': 'L'
'\u1847': 'L'
'\u1848': 'L'
'\u1849': 'L'
'\u184a': 'L'
'\u184b': 'L'
'\u184c': 'L'
'\u184d': 'L'
'\u184e': 'L'
'\u184f': 'L'
'\u1850': 'L'
'\u1851': 'L'
'\u1852': 'L'
'\u1853': 'L'
'\u1854': 'L'
'\u1855': 'L'
'\u1856': 'L'
'\u1857': 'L'
'\u1858': 'L'
'\u1859': 'L'
'\u185a': 'L'
'\u185b': 'L'
'\u185c': 'L'
'\u185d': 'L'
'\u185e': 'L'
'\u185f': 'L'
'\u1860': 'L'
'\u1861': 'L'
'\u1862': 'L'
'\u1863': 'L'
'\u1864': 'L'
'\u1865': 'L'
'\u1866': 'L'
'\u1867': 'L'
'\u1868': 'L'
'\u1869': 'L'
'\u186a': 'L'
'\u186b': 'L'
'\u186c': 'L'
'\u186d': 'L'
'\u186e': 'L'
'\u186f': 'L'
'\u1870': 'L'
'\u1871': 'L'
'\u1872': 'L'
'\u1873': 'L'
'\u1874': 'L'
'\u1875': 'L'
'\u1876': 'L'
'\u1877': 'L'
'\u1880': 'L'
'\u1881': 'L'
'\u1882': 'L'
'\u1883': 'L'
'\u1884': 'L'
'\u1885': 'L'
'\u1886': 'L'
'\u1887': 'L'
'\u1888': 'L'
'\u1889': 'L'
'\u188a': 'L'
'\u188b': 'L'
'\u188c': 'L'
'\u188d': 'L'
'\u188e': 'L'
'\u188f': 'L'
'\u1890': 'L'
'\u1891': 'L'
'\u1892': 'L'
'\u1893': 'L'
'\u1894': 'L'
'\u1895': 'L'
'\u1896': 'L'
'\u1897': 'L'
'\u1898': 'L'
'\u1899': 'L'
'\u189a': 'L'
'\u189b': 'L'
'\u189c': 'L'
'\u189d': 'L'
'\u189e': 'L'
'\u189f': 'L'
'\u18a0': 'L'
'\u18a1': 'L'
'\u18a2': 'L'
'\u18a3': 'L'
'\u18a4': 'L'
'\u18a5': 'L'
'\u18a6': 'L'
'\u18a7': 'L'
'\u18a8': 'L'
'\u18aa': 'L'
'\u18b0': 'L'
'\u18b1': 'L'
'\u18b2': 'L'
'\u18b3': 'L'
'\u18b4': 'L'
'\u18b5': 'L'
'\u18b6': 'L'
'\u18b7': 'L'
'\u18b8': 'L'
'\u18b9': 'L'
'\u18ba': 'L'
'\u18bb': 'L'
'\u18bc': 'L'
'\u18bd': 'L'
'\u18be': 'L'
'\u18bf': 'L'
'\u18c0': 'L'
'\u18c1': 'L'
'\u18c2': 'L'
'\u18c3': 'L'
'\u18c4': 'L'
'\u18c5': 'L'
'\u18c6': 'L'
'\u18c7': 'L'
'\u18c8': 'L'
'\u18c9': 'L'
'\u18ca': 'L'
'\u18cb': 'L'
'\u18cc': 'L'
'\u18cd': 'L'
'\u18ce': 'L'
'\u18cf': 'L'
'\u18d0': 'L'
'\u18d1': 'L'
'\u18d2': 'L'
'\u18d3': 'L'
'\u18d4': 'L'
'\u18d5': 'L'
'\u18d6': 'L'
'\u18d7': 'L'
'\u18d8': 'L'
'\u18d9': 'L'
'\u18da': 'L'
'\u18db': 'L'
'\u18dc': 'L'
'\u18dd': 'L'
'\u18de': 'L'
'\u18df': 'L'
'\u18e0': 'L'
'\u18e1': 'L'
'\u18e2': 'L'
'\u18e3': 'L'
'\u18e4': 'L'
'\u18e5': 'L'
'\u18e6': 'L'
'\u18e7': 'L'
'\u18e8': 'L'
'\u18e9': 'L'
'\u18ea': 'L'
'\u18eb': 'L'
'\u18ec': 'L'
'\u18ed': 'L'
'\u18ee': 'L'
'\u18ef': 'L'
'\u18f0': 'L'
'\u18f1': 'L'
'\u18f2': 'L'
'\u18f3': 'L'
'\u18f4': 'L'
'\u18f5': 'L'
'\u1900': 'L'
'\u1901': 'L'
'\u1902': 'L'
'\u1903': 'L'
'\u1904': 'L'
'\u1905': 'L'
'\u1906': 'L'
'\u1907': 'L'
'\u1908': 'L'
'\u1909': 'L'
'\u190a': 'L'
'\u190b': 'L'
'\u190c': 'L'
'\u190d': 'L'
'\u190e': 'L'
'\u190f': 'L'
'\u1910': 'L'
'\u1911': 'L'
'\u1912': 'L'
'\u1913': 'L'
'\u1914': 'L'
'\u1915': 'L'
'\u1916': 'L'
'\u1917': 'L'
'\u1918': 'L'
'\u1919': 'L'
'\u191a': 'L'
'\u191b': 'L'
'\u191c': 'L'
'\u191d': 'L'
'\u191e': 'L'
'\u1946': 'N'
'\u1947': 'N'
'\u1948': 'N'
'\u1949': 'N'
'\u194a': 'N'
'\u194b': 'N'
'\u194c': 'N'
'\u194d': 'N'
'\u194e': 'N'
'\u194f': 'N'
'\u1950': 'L'
'\u1951': 'L'
'\u1952': 'L'
'\u1953': 'L'
'\u1954': 'L'
'\u1955': 'L'
'\u1956': 'L'
'\u1957': 'L'
'\u1958': 'L'
'\u1959': 'L'
'\u195a': 'L'
'\u195b': 'L'
'\u195c': 'L'
'\u195d': 'L'
'\u195e': 'L'
'\u195f': 'L'
'\u1960': 'L'
'\u1961': 'L'
'\u1962': 'L'
'\u1963': 'L'
'\u1964': 'L'
'\u1965': 'L'
'\u1966': 'L'
'\u1967': 'L'
'\u1968': 'L'
'\u1969': 'L'
'\u196a': 'L'
'\u196b': 'L'
'\u196c': 'L'
'\u196d': 'L'
'\u1970': 'L'
'\u1971': 'L'
'\u1972': 'L'
'\u1973': 'L'
'\u1974': 'L'
'\u1980': 'L'
'\u1981': 'L'
'\u1982': 'L'
'\u1983': 'L'
'\u1984': 'L'
'\u1985': 'L'
'\u1986': 'L'
'\u1987': 'L'
'\u1988': 'L'
'\u1989': 'L'
'\u198a': 'L'
'\u198b': 'L'
'\u198c': 'L'
'\u198d': 'L'
'\u198e': 'L'
'\u198f': 'L'
'\u1990': 'L'
'\u1991': 'L'
'\u1992': 'L'
'\u1993': 'L'
'\u1994': 'L'
'\u1995': 'L'
'\u1996': 'L'
'\u1997': 'L'
'\u1998': 'L'
'\u1999': 'L'
'\u199a': 'L'
'\u199b': 'L'
'\u199c': 'L'
'\u199d': 'L'
'\u199e': 'L'
'\u199f': 'L'
'\u19a0': 'L'
'\u19a1': 'L'
'\u19a2': 'L'
'\u19a3': 'L'
'\u19a4': 'L'
'\u19a5': 'L'
'\u19a6': 'L'
'\u19a7': 'L'
'\u19a8': 'L'
'\u19a9': 'L'
'\u19aa': 'L'
'\u19ab': 'L'
'\u19b0': 'L'
'\u19b1': 'L'
'\u19b2': 'L'
'\u19b3': 'L'
'\u19b4': 'L'
'\u19b5': 'L'
'\u19b6': 'L'
'\u19b7': 'L'
'\u19b8': 'L'
'\u19b9': 'L'
'\u19ba': 'L'
'\u19bb': 'L'
'\u19bc': 'L'
'\u19bd': 'L'
'\u19be': 'L'
'\u19bf': 'L'
'\u19c0': 'L'
'\u19c1': 'L'
'\u19c2': 'L'
'\u19c3': 'L'
'\u19c4': 'L'
'\u19c5': 'L'
'\u19c6': 'L'
'\u19c7': 'L'
'\u19c8': 'L'
'\u19c9': 'L'
'\u19d0': 'N'
'\u19d1': 'N'
'\u19d2': 'N'
'\u19d3': 'N'
'\u19d4': 'N'
'\u19d5': 'N'
'\u19d6': 'N'
'\u19d7': 'N'
'\u19d8': 'N'
'\u19d9': 'N'
'\u19da': 'N'
'\u1a00': 'L'
'\u1a01': 'L'
'\u1a02': 'L'
'\u1a03': 'L'
'\u1a04': 'L'
'\u1a05': 'L'
'\u1a06': 'L'
'\u1a07': 'L'
'\u1a08': 'L'
'\u1a09': 'L'
'\u1a0a': 'L'
'\u1a0b': 'L'
'\u1a0c': 'L'
'\u1a0d': 'L'
'\u1a0e': 'L'
'\u1a0f': 'L'
'\u1a10': 'L'
'\u1a11': 'L'
'\u1a12': 'L'
'\u1a13': 'L'
'\u1a14': 'L'
'\u1a15': 'L'
'\u1a16': 'L'
'\u1a20': 'L'
'\u1a21': 'L'
'\u1a22': 'L'
'\u1a23': 'L'
'\u1a24': 'L'
'\u1a25': 'L'
'\u1a26': 'L'
'\u1a27': 'L'
'\u1a28': 'L'
'\u1a29': 'L'
'\u1a2a': 'L'
'\u1a2b': 'L'
'\u1a2c': 'L'
'\u1a2d': 'L'
'\u1a2e': 'L'
'\u1a2f': 'L'
'\u1a30': 'L'
'\u1a31': 'L'
'\u1a32': 'L'
'\u1a33': 'L'
'\u1a34': 'L'
'\u1a35': 'L'
'\u1a36': 'L'
'\u1a37': 'L'
'\u1a38': 'L'
'\u1a39': 'L'
'\u1a3a': 'L'
'\u1a3b': 'L'
'\u1a3c': 'L'
'\u1a3d': 'L'
'\u1a3e': 'L'
'\u1a3f': 'L'
'\u1a40': 'L'
'\u1a41': 'L'
'\u1a42': 'L'
'\u1a43': 'L'
'\u1a44': 'L'
'\u1a45': 'L'
'\u1a46': 'L'
'\u1a47': 'L'
'\u1a48': 'L'
'\u1a49': 'L'
'\u1a4a': 'L'
'\u1a4b': 'L'
'\u1a4c': 'L'
'\u1a4d': 'L'
'\u1a4e': 'L'
'\u1a4f': 'L'
'\u1a50': 'L'
'\u1a51': 'L'
'\u1a52': 'L'
'\u1a53': 'L'
'\u1a54': 'L'
'\u1a80': 'N'
'\u1a81': 'N'
'\u1a82': 'N'
'\u1a83': 'N'
'\u1a84': 'N'
'\u1a85': 'N'
'\u1a86': 'N'
'\u1a87': 'N'
'\u1a88': 'N'
'\u1a89': 'N'
'\u1a90': 'N'
'\u1a91': 'N'
'\u1a92': 'N'
'\u1a93': 'N'
'\u1a94': 'N'
'\u1a95': 'N'
'\u1a96': 'N'
'\u1a97': 'N'
'\u1a98': 'N'
'\u1a99': 'N'
'\u1aa7': 'L'
'\u1b05': 'L'
'\u1b06': 'L'
'\u1b07': 'L'
'\u1b08': 'L'
'\u1b09': 'L'
'\u1b0a': 'L'
'\u1b0b': 'L'
'\u1b0c': 'L'
'\u1b0d': 'L'
'\u1b0e': 'L'
'\u1b0f': 'L'
'\u1b10': 'L'
'\u1b11': 'L'
'\u1b12': 'L'
'\u1b13': 'L'
'\u1b14': 'L'
'\u1b15': 'L'
'\u1b16': 'L'
'\u1b17': 'L'
'\u1b18': 'L'
'\u1b19': 'L'
'\u1b1a': 'L'
'\u1b1b': 'L'
'\u1b1c': 'L'
'\u1b1d': 'L'
'\u1b1e': 'L'
'\u1b1f': 'L'
'\u1b20': 'L'
'\u1b21': 'L'
'\u1b22': 'L'
'\u1b23': 'L'
'\u1b24': 'L'
'\u1b25': 'L'
'\u1b26': 'L'
'\u1b27': 'L'
'\u1b28': 'L'
'\u1b29': 'L'
'\u1b2a': 'L'
'\u1b2b': 'L'
'\u1b2c': 'L'
'\u1b2d': 'L'
'\u1b2e': 'L'
'\u1b2f': 'L'
'\u1b30': 'L'
'\u1b31': 'L'
'\u1b32': 'L'
'\u1b33': 'L'
'\u1b45': 'L'
'\u1b46': 'L'
'\u1b47': 'L'
'\u1b48': 'L'
'\u1b49': 'L'
'\u1b4a': 'L'
'\u1b4b': 'L'
'\u1b50': 'N'
'\u1b51': 'N'
'\u1b52': 'N'
'\u1b53': 'N'
'\u1b54': 'N'
'\u1b55': 'N'
'\u1b56': 'N'
'\u1b57': 'N'
'\u1b58': 'N'
'\u1b59': 'N'
'\u1b83': 'L'
'\u1b84': 'L'
'\u1b85': 'L'
'\u1b86': 'L'
'\u1b87': 'L'
'\u1b88': 'L'
'\u1b89': 'L'
'\u1b8a': 'L'
'\u1b8b': 'L'
'\u1b8c': 'L'
'\u1b8d': 'L'
'\u1b8e': 'L'
'\u1b8f': 'L'
'\u1b90': 'L'
'\u1b91': 'L'
'\u1b92': 'L'
'\u1b93': 'L'
'\u1b94': 'L'
'\u1b95': 'L'
'\u1b96': 'L'
'\u1b97': 'L'
'\u1b98': 'L'
'\u1b99': 'L'
'\u1b9a': 'L'
'\u1b9b': 'L'
'\u1b9c': 'L'
'\u1b9d': 'L'
'\u1b9e': 'L'
'\u1b9f': 'L'
'\u1ba0': 'L'
'\u1bae': 'L'
'\u1baf': 'L'
'\u1bb0': 'N'
'\u1bb1': 'N'
'\u1bb2': 'N'
'\u1bb3': 'N'
'\u1bb4': 'N'
'\u1bb5': 'N'
'\u1bb6': 'N'
'\u1bb7': 'N'
'\u1bb8': 'N'
'\u1bb9': 'N'
'\u1bba': 'L'
'\u1bbb': 'L'
'\u1bbc': 'L'
'\u1bbd': 'L'
'\u1bbe': 'L'
'\u1bbf': 'L'
'\u1bc0': 'L'
'\u1bc1': 'L'
'\u1bc2': 'L'
'\u1bc3': 'L'
'\u1bc4': 'L'
'\u1bc5': 'L'
'\u1bc6': 'L'
'\u1bc7': 'L'
'\u1bc8': 'L'
'\u1bc9': 'L'
'\u1bca': 'L'
'\u1bcb': 'L'
'\u1bcc': 'L'
'\u1bcd': 'L'
'\u1bce': 'L'
'\u1bcf': 'L'
'\u1bd0': 'L'
'\u1bd1': 'L'
'\u1bd2': 'L'
'\u1bd3': 'L'
'\u1bd4': 'L'
'\u1bd5': 'L'
'\u1bd6': 'L'
'\u1bd7': 'L'
'\u1bd8': 'L'
'\u1bd9': 'L'
'\u1bda': 'L'
'\u1bdb': 'L'
'\u1bdc': 'L'
'\u1bdd': 'L'
'\u1bde': 'L'
'\u1bdf': 'L'
'\u1be0': 'L'
'\u1be1': 'L'
'\u1be2': 'L'
'\u1be3': 'L'
'\u1be4': 'L'
'\u1be5': 'L'
'\u1c00': 'L'
'\u1c01': 'L'
'\u1c02': 'L'
'\u1c03': 'L'
'\u1c04': 'L'
'\u1c05': 'L'
'\u1c06': 'L'
'\u1c07': 'L'
'\u1c08': 'L'
'\u1c09': 'L'
'\u1c0a': 'L'
'\u1c0b': 'L'
'\u1c0c': 'L'
'\u1c0d': 'L'
'\u1c0e': 'L'
'\u1c0f': 'L'
'\u1c10': 'L'
'\u1c11': 'L'
'\u1c12': 'L'
'\u1c13': 'L'
'\u1c14': 'L'
'\u1c15': 'L'
'\u1c16': 'L'
'\u1c17': 'L'
'\u1c18': 'L'
'\u1c19': 'L'
'\u1c1a': 'L'
'\u1c1b': 'L'
'\u1c1c': 'L'
'\u1c1d': 'L'
'\u1c1e': 'L'
'\u1c1f': 'L'
'\u1c20': 'L'
'\u1c21': 'L'
'\u1c22': 'L'
'\u1c23': 'L'
'\u1c40': 'N'
'\u1c41': 'N'
'\u1c42': 'N'
'\u1c43': 'N'
'\u1c44': 'N'
'\u1c45': 'N'
'\u1c46': 'N'
'\u1c47': 'N'
'\u1c48': 'N'
'\u1c49': 'N'
'\u1c4d': 'L'
'\u1c4e': 'L'
'\u1c4f': 'L'
'\u1c50': 'N'
'\u1c51': 'N'
'\u1c52': 'N'
'\u1c53': 'N'
'\u1c54': 'N'
'\u1c55': 'N'
'\u1c56': 'N'
'\u1c57': 'N'
'\u1c58': 'N'
'\u1c59': 'N'
'\u1c5a': 'L'
'\u1c5b': 'L'
'\u1c5c': 'L'
'\u1c5d': 'L'
'\u1c5e': 'L'
'\u1c5f': 'L'
'\u1c60': 'L'
'\u1c61': 'L'
'\u1c62': 'L'
'\u1c63': 'L'
'\u1c64': 'L'
'\u1c65': 'L'
'\u1c66': 'L'
'\u1c67': 'L'
'\u1c68': 'L'
'\u1c69': 'L'
'\u1c6a': 'L'
'\u1c6b': 'L'
'\u1c6c': 'L'
'\u1c6d': 'L'
'\u1c6e': 'L'
'\u1c6f': 'L'
'\u1c70': 'L'
'\u1c71': 'L'
'\u1c72': 'L'
'\u1c73': 'L'
'\u1c74': 'L'
'\u1c75': 'L'
'\u1c76': 'L'
'\u1c77': 'L'
'\u1c78': 'L'
'\u1c79': 'L'
'\u1c7a': 'L'
'\u1c7b': 'L'
'\u1c7c': 'L'
'\u1c7d': 'L'
'\u1ce9': 'L'
'\u1cea': 'L'
'\u1ceb': 'L'
'\u1cec': 'L'
'\u1cee': 'L'
'\u1cef': 'L'
'\u1cf0': 'L'
'\u1cf1': 'L'
'\u1cf5': 'L'
'\u1cf6': 'L'
'\u1d00': 'L'
'\u1d01': 'L'
'\u1d02': 'L'
'\u1d03': 'L'
'\u1d04': 'L'
'\u1d05': 'L'
'\u1d06': 'L'
'\u1d07': 'L'
'\u1d08': 'L'
'\u1d09': 'L'
'\u1d0a': 'L'
'\u1d0b': 'L'
'\u1d0c': 'L'
'\u1d0d': 'L'
'\u1d0e': 'L'
'\u1d0f': 'L'
'\u1d10': 'L'
'\u1d11': 'L'
'\u1d12': 'L'
'\u1d13': 'L'
'\u1d14': 'L'
'\u1d15': 'L'
'\u1d16': 'L'
'\u1d17': 'L'
'\u1d18': 'L'
'\u1d19': 'L'
'\u1d1a': 'L'
'\u1d1b': 'L'
'\u1d1c': 'L'
'\u1d1d': 'L'
'\u1d1e': 'L'
'\u1d1f': 'L'
'\u1d20': 'L'
'\u1d21': 'L'
'\u1d22': 'L'
'\u1d23': 'L'
'\u1d24': 'L'
'\u1d25': 'L'
'\u1d26': 'L'
'\u1d27': 'L'
'\u1d28': 'L'
'\u1d29': 'L'
'\u1d2a': 'L'
'\u1d2b': 'L'
'\u1d2c': 'L'
'\u1d2d': 'L'
'\u1d2e': 'L'
'\u1d2f': 'L'
'\u1d30': 'L'
'\u1d31': 'L'
'\u1d32': 'L'
'\u1d33': 'L'
'\u1d34': 'L'
'\u1d35': 'L'
'\u1d36': 'L'
'\u1d37': 'L'
'\u1d38': 'L'
'\u1d39': 'L'
'\u1d3a': 'L'
'\u1d3b': 'L'
'\u1d3c': 'L'
'\u1d3d': 'L'
'\u1d3e': 'L'
'\u1d3f': 'L'
'\u1d40': 'L'
'\u1d41': 'L'
'\u1d42': 'L'
'\u1d43': 'L'
'\u1d44': 'L'
'\u1d45': 'L'
'\u1d46': 'L'
'\u1d47': 'L'
'\u1d48': 'L'
'\u1d49': 'L'
'\u1d4a': 'L'
'\u1d4b': 'L'
'\u1d4c': 'L'
'\u1d4d': 'L'
'\u1d4e': 'L'
'\u1d4f': 'L'
'\u1d50': 'L'
'\u1d51': 'L'
'\u1d52': 'L'
'\u1d53': 'L'
'\u1d54': 'L'
'\u1d55': 'L'
'\u1d56': 'L'
'\u1d57': 'L'
'\u1d58': 'L'
'\u1d59': 'L'
'\u1d5a': 'L'
'\u1d5b': 'L'
'\u1d5c': 'L'
'\u1d5d': 'L'
'\u1d5e': 'L'
'\u1d5f': 'L'
'\u1d60': 'L'
'\u1d61': 'L'
'\u1d62': 'L'
'\u1d63': 'L'
'\u1d64': 'L'
'\u1d65': 'L'
'\u1d66': 'L'
'\u1d67': 'L'
'\u1d68': 'L'
'\u1d69': 'L'
'\u1d6a': 'L'
'\u1d6b': 'L'
'\u1d6c': 'L'
'\u1d6d': 'L'
'\u1d6e': 'L'
'\u1d6f': 'L'
'\u1d70': 'L'
'\u1d71': 'L'
'\u1d72': 'L'
'\u1d73': 'L'
'\u1d74': 'L'
'\u1d75': 'L'
'\u1d76': 'L'
'\u1d77': 'L'
'\u1d78': 'L'
'\u1d79': 'L'
'\u1d7a': 'L'
'\u1d7b': 'L'
'\u1d7c': 'L'
'\u1d7d': 'L'
'\u1d7e': 'L'
'\u1d7f': 'L'
'\u1d80': 'L'
'\u1d81': 'L'
'\u1d82': 'L'
'\u1d83': 'L'
'\u1d84': 'L'
'\u1d85': 'L'
'\u1d86': 'L'
'\u1d87': 'L'
'\u1d88': 'L'
'\u1d89': 'L'
'\u1d8a': 'L'
'\u1d8b': 'L'
'\u1d8c': 'L'
'\u1d8d': 'L'
'\u1d8e': 'L'
'\u1d8f': 'L'
'\u1d90': 'L'
'\u1d91': 'L'
'\u1d92': 'L'
'\u1d93': 'L'
'\u1d94': 'L'
'\u1d95': 'L'
'\u1d96': 'L'
'\u1d97': 'L'
'\u1d98': 'L'
'\u1d99': 'L'
'\u1d9a': 'L'
'\u1d9b': 'L'
'\u1d9c': 'L'
'\u1d9d': 'L'
'\u1d9e': 'L'
'\u1d9f': 'L'
'\u1da0': 'L'
'\u1da1': 'L'
'\u1da2': 'L'
'\u1da3': 'L'
'\u1da4': 'L'
'\u1da5': 'L'
'\u1da6': 'L'
'\u1da7': 'L'
'\u1da8': 'L'
'\u1da9': 'L'
'\u1daa': 'L'
'\u1dab': 'L'
'\u1dac': 'L'
'\u1dad': 'L'
'\u1dae': 'L'
'\u1daf': 'L'
'\u1db0': 'L'
'\u1db1': 'L'
'\u1db2': 'L'
'\u1db3': 'L'
'\u1db4': 'L'
'\u1db5': 'L'
'\u1db6': 'L'
'\u1db7': 'L'
'\u1db8': 'L'
'\u1db9': 'L'
'\u1dba': 'L'
'\u1dbb': 'L'
'\u1dbc': 'L'
'\u1dbd': 'L'
'\u1dbe': 'L'
'\u1dbf': 'L'
'\u1e00': 'Lu'
'\u1e01': 'L'
'\u1e02': 'Lu'
'\u1e03': 'L'
'\u1e04': 'Lu'
'\u1e05': 'L'
'\u1e06': 'Lu'
'\u1e07': 'L'
'\u1e08': 'Lu'
'\u1e09': 'L'
'\u1e0a': 'Lu'
'\u1e0b': 'L'
'\u1e0c': 'Lu'
'\u1e0d': 'L'
'\u1e0e': 'Lu'
'\u1e0f': 'L'
'\u1e10': 'Lu'
'\u1e11': 'L'
'\u1e12': 'Lu'
'\u1e13': 'L'
'\u1e14': 'Lu'
'\u1e15': 'L'
'\u1e16': 'Lu'
'\u1e17': 'L'
'\u1e18': 'Lu'
'\u1e19': 'L'
'\u1e1a': 'Lu'
'\u1e1b': 'L'
'\u1e1c': 'Lu'
'\u1e1d': 'L'
'\u1e1e': 'Lu'
'\u1e1f': 'L'
'\u1e20': 'Lu'
'\u1e21': 'L'
'\u1e22': 'Lu'
'\u1e23': 'L'
'\u1e24': 'Lu'
'\u1e25': 'L'
'\u1e26': 'Lu'
'\u1e27': 'L'
'\u1e28': 'Lu'
'\u1e29': 'L'
'\u1e2a': 'Lu'
'\u1e2b': 'L'
'\u1e2c': 'Lu'
'\u1e2d': 'L'
'\u1e2e': 'Lu'
'\u1e2f': 'L'
'\u1e30': 'Lu'
'\u1e31': 'L'
'\u1e32': 'Lu'
'\u1e33': 'L'
'\u1e34': 'Lu'
'\u1e35': 'L'
'\u1e36': 'Lu'
'\u1e37': 'L'
'\u1e38': 'Lu'
'\u1e39': 'L'
'\u1e3a': 'Lu'
'\u1e3b': 'L'
'\u1e3c': 'Lu'
'\u1e3d': 'L'
'\u1e3e': 'Lu'
'\u1e3f': 'L'
'\u1e40': 'Lu'
'\u1e41': 'L'
'\u1e42': 'Lu'
'\u1e43': 'L'
'\u1e44': 'Lu'
'\u1e45': 'L'
'\u1e46': 'Lu'
'\u1e47': 'L'
'\u1e48': 'Lu'
'\u1e49': 'L'
'\u1e4a': 'Lu'
'\u1e4b': 'L'
'\u1e4c': 'Lu'
'\u1e4d': 'L'
'\u1e4e': 'Lu'
'\u1e4f': 'L'
'\u1e50': 'Lu'
'\u1e51': 'L'
'\u1e52': 'Lu'
'\u1e53': 'L'
'\u1e54': 'Lu'
'\u1e55': 'L'
'\u1e56': 'Lu'
'\u1e57': 'L'
'\u1e58': 'Lu'
'\u1e59': 'L'
'\u1e5a': 'Lu'
'\u1e5b': 'L'
'\u1e5c': 'Lu'
'\u1e5d': 'L'
'\u1e5e': 'Lu'
'\u1e5f': 'L'
'\u1e60': 'Lu'
'\u1e61': 'L'
'\u1e62': 'Lu'
'\u1e63': 'L'
'\u1e64': 'Lu'
'\u1e65': 'L'
'\u1e66': 'Lu'
'\u1e67': 'L'
'\u1e68': 'Lu'
'\u1e69': 'L'
'\u1e6a': 'Lu'
'\u1e6b': 'L'
'\u1e6c': 'Lu'
'\u1e6d': 'L'
'\u1e6e': 'Lu'
'\u1e6f': 'L'
'\u1e70': 'Lu'
'\u1e71': 'L'
'\u1e72': 'Lu'
'\u1e73': 'L'
'\u1e74': 'Lu'
'\u1e75': 'L'
'\u1e76': 'Lu'
'\u1e77': 'L'
'\u1e78': 'Lu'
'\u1e79': 'L'
'\u1e7a': 'Lu'
'\u1e7b': 'L'
'\u1e7c': 'Lu'
'\u1e7d': 'L'
'\u1e7e': 'Lu'
'\u1e7f': 'L'
'\u1e80': 'Lu'
'\u1e81': 'L'
'\u1e82': 'Lu'
'\u1e83': 'L'
'\u1e84': 'Lu'
'\u1e85': 'L'
'\u1e86': 'Lu'
'\u1e87': 'L'
'\u1e88': 'Lu'
'\u1e89': 'L'
'\u1e8a': 'Lu'
'\u1e8b': 'L'
'\u1e8c': 'Lu'
'\u1e8d': 'L'
'\u1e8e': 'Lu'
'\u1e8f': 'L'
'\u1e90': 'Lu'
'\u1e91': 'L'
'\u1e92': 'Lu'
'\u1e93': 'L'
'\u1e94': 'Lu'
'\u1e95': 'L'
'\u1e96': 'L'
'\u1e97': 'L'
'\u1e98': 'L'
'\u1e99': 'L'
'\u1e9a': 'L'
'\u1e9b': 'L'
'\u1e9c': 'L'
'\u1e9d': 'L'
'\u1e9e': 'Lu'
'\u1e9f': 'L'
'\u1ea0': 'Lu'
'\u1ea1': 'L'
'\u1ea2': 'Lu'
'\u1ea3': 'L'
'\u1ea4': 'Lu'
'\u1ea5': 'L'
'\u1ea6': 'Lu'
'\u1ea7': 'L'
'\u1ea8': 'Lu'
'\u1ea9': 'L'
'\u1eaa': 'Lu'
'\u1eab': 'L'
'\u1eac': 'Lu'
'\u1ead': 'L'
'\u1eae': 'Lu'
'\u1eaf': 'L'
'\u1eb0': 'Lu'
'\u1eb1': 'L'
'\u1eb2': 'Lu'
'\u1eb3': 'L'
'\u1eb4': 'Lu'
'\u1eb5': 'L'
'\u1eb6': 'Lu'
'\u1eb7': 'L'
'\u1eb8': 'Lu'
'\u1eb9': 'L'
'\u1eba': 'Lu'
'\u1ebb': 'L'
'\u1ebc': 'Lu'
'\u1ebd': 'L'
'\u1ebe': 'Lu'
'\u1ebf': 'L'
'\u1ec0': 'Lu'
'\u1ec1': 'L'
'\u1ec2': 'Lu'
'\u1ec3': 'L'
'\u1ec4': 'Lu'
'\u1ec5': 'L'
'\u1ec6': 'Lu'
'\u1ec7': 'L'
'\u1ec8': 'Lu'
'\u1ec9': 'L'
'\u1eca': 'Lu'
'\u1ecb': 'L'
'\u1ecc': 'Lu'
'\u1ecd': 'L'
'\u1ece': 'Lu'
'\u1ecf': 'L'
'\u1ed0': 'Lu'
'\u1ed1': 'L'
'\u1ed2': 'Lu'
'\u1ed3': 'L'
'\u1ed4': 'Lu'
'\u1ed5': 'L'
'\u1ed6': 'Lu'
'\u1ed7': 'L'
'\u1ed8': 'Lu'
'\u1ed9': 'L'
'\u1eda': 'Lu'
'\u1edb': 'L'
'\u1edc': 'Lu'
'\u1edd': 'L'
'\u1ede': 'Lu'
'\u1edf': 'L'
'\u1ee0': 'Lu'
'\u1ee1': 'L'
'\u1ee2': 'Lu'
'\u1ee3': 'L'
'\u1ee4': 'Lu'
'\u1ee5': 'L'
'\u1ee6': 'Lu'
'\u1ee7': 'L'
'\u1ee8': 'Lu'
'\u1ee9': 'L'
'\u1eea': 'Lu'
'\u1eeb': 'L'
'\u1eec': 'Lu'
'\u1eed': 'L'
'\u1eee': 'Lu'
'\u1eef': 'L'
'\u1ef0': 'Lu'
'\u1ef1': 'L'
'\u1ef2': 'Lu'
'\u1ef3': 'L'
'\u1ef4': 'Lu'
'\u1ef5': 'L'
'\u1ef6': 'Lu'
'\u1ef7': 'L'
'\u1ef8': 'Lu'
'\u1ef9': 'L'
'\u1efa': 'Lu'
'\u1efb': 'L'
'\u1efc': 'Lu'
'\u1efd': 'L'
'\u1efe': 'Lu'
'\u1eff': 'L'
'\u1f00': 'L'
'\u1f01': 'L'
'\u1f02': 'L'
'\u1f03': 'L'
'\u1f04': 'L'
'\u1f05': 'L'
'\u1f06': 'L'
'\u1f07': 'L'
'\u1f08': 'Lu'
'\u1f09': 'Lu'
'\u1f0a': 'Lu'
'\u1f0b': 'Lu'
'\u1f0c': 'Lu'
'\u1f0d': 'Lu'
'\u1f0e': 'Lu'
'\u1f0f': 'Lu'
'\u1f10': 'L'
'\u1f11': 'L'
'\u1f12': 'L'
'\u1f13': 'L'
'\u1f14': 'L'
'\u1f15': 'L'
'\u1f18': 'Lu'
'\u1f19': 'Lu'
'\u1f1a': 'Lu'
'\u1f1b': 'Lu'
'\u1f1c': 'Lu'
'\u1f1d': 'Lu'
'\u1f20': 'L'
'\u1f21': 'L'
'\u1f22': 'L'
'\u1f23': 'L'
'\u1f24': 'L'
'\u1f25': 'L'
'\u1f26': 'L'
'\u1f27': 'L'
'\u1f28': 'Lu'
'\u1f29': 'Lu'
'\u1f2a': 'Lu'
'\u1f2b': 'Lu'
'\u1f2c': 'Lu'
'\u1f2d': 'Lu'
'\u1f2e': 'Lu'
'\u1f2f': 'Lu'
'\u1f30': 'L'
'\u1f31': 'L'
'\u1f32': 'L'
'\u1f33': 'L'
'\u1f34': 'L'
'\u1f35': 'L'
'\u1f36': 'L'
'\u1f37': 'L'
'\u1f38': 'Lu'
'\u1f39': 'Lu'
'\u1f3a': 'Lu'
'\u1f3b': 'Lu'
'\u1f3c': 'Lu'
'\u1f3d': 'Lu'
'\u1f3e': 'Lu'
'\u1f3f': 'Lu'
'\u1f40': 'L'
'\u1f41': 'L'
'\u1f42': 'L'
'\u1f43': 'L'
'\u1f44': 'L'
'\u1f45': 'L'
'\u1f48': 'Lu'
'\u1f49': 'Lu'
'\u1f4a': 'Lu'
'\u1f4b': 'Lu'
'\u1f4c': 'Lu'
'\u1f4d': 'Lu'
'\u1f50': 'L'
'\u1f51': 'L'
'\u1f52': 'L'
'\u1f53': 'L'
'\u1f54': 'L'
'\u1f55': 'L'
'\u1f56': 'L'
'\u1f57': 'L'
'\u1f59': 'Lu'
'\u1f5b': 'Lu'
'\u1f5d': 'Lu'
'\u1f5f': 'Lu'
'\u1f60': 'L'
'\u1f61': 'L'
'\u1f62': 'L'
'\u1f63': 'L'
'\u1f64': 'L'
'\u1f65': 'L'
'\u1f66': 'L'
'\u1f67': 'L'
'\u1f68': 'Lu'
'\u1f69': 'Lu'
'\u1f6a': 'Lu'
'\u1f6b': 'Lu'
'\u1f6c': 'Lu'
'\u1f6d': 'Lu'
'\u1f6e': 'Lu'
'\u1f6f': 'Lu'
'\u1f70': 'L'
'\u1f71': 'L'
'\u1f72': 'L'
'\u1f73': 'L'
'\u1f74': 'L'
'\u1f75': 'L'
'\u1f76': 'L'
'\u1f77': 'L'
'\u1f78': 'L'
'\u1f79': 'L'
'\u1f7a': 'L'
'\u1f7b': 'L'
'\u1f7c': 'L'
'\u1f7d': 'L'
'\u1f80': 'L'
'\u1f81': 'L'
'\u1f82': 'L'
'\u1f83': 'L'
'\u1f84': 'L'
'\u1f85': 'L'
'\u1f86': 'L'
'\u1f87': 'L'
'\u1f88': 'L'
'\u1f89': 'L'
'\u1f8a': 'L'
'\u1f8b': 'L'
'\u1f8c': 'L'
'\u1f8d': 'L'
'\u1f8e': 'L'
'\u1f8f': 'L'
'\u1f90': 'L'
'\u1f91': 'L'
'\u1f92': 'L'
'\u1f93': 'L'
'\u1f94': 'L'
'\u1f95': 'L'
'\u1f96': 'L'
'\u1f97': 'L'
'\u1f98': 'L'
'\u1f99': 'L'
'\u1f9a': 'L'
'\u1f9b': 'L'
'\u1f9c': 'L'
'\u1f9d': 'L'
'\u1f9e': 'L'
'\u1f9f': 'L'
'\u1fa0': 'L'
'\u1fa1': 'L'
'\u1fa2': 'L'
'\u1fa3': 'L'
'\u1fa4': 'L'
'\u1fa5': 'L'
'\u1fa6': 'L'
'\u1fa7': 'L'
'\u1fa8': 'L'
'\u1fa9': 'L'
'\u1faa': 'L'
'\u1fab': 'L'
'\u1fac': 'L'
'\u1fad': 'L'
'\u1fae': 'L'
'\u1faf': 'L'
'\u1fb0': 'L'
'\u1fb1': 'L'
'\u1fb2': 'L'
'\u1fb3': 'L'
'\u1fb4': 'L'
'\u1fb6': 'L'
'\u1fb7': 'L'
'\u1fb8': 'Lu'
'\u1fb9': 'Lu'
'\u1fba': 'Lu'
'\u1fbb': 'Lu'
'\u1fbc': 'L'
'\u1fbe': 'L'
'\u1fc2': 'L'
'\u1fc3': 'L'
'\u1fc4': 'L'
'\u1fc6': 'L'
'\u1fc7': 'L'
'\u1fc8': 'Lu'
'\u1fc9': 'Lu'
'\u1fca': 'Lu'
'\u1fcb': 'Lu'
'\u1fcc': 'L'
'\u1fd0': 'L'
'\u1fd1': 'L'
'\u1fd2': 'L'
'\u1fd3': 'L'
'\u1fd6': 'L'
'\u1fd7': 'L'
'\u1fd8': 'Lu'
'\u1fd9': 'Lu'
'\u1fda': 'Lu'
'\u1fdb': 'Lu'
'\u1fe0': 'L'
'\u1fe1': 'L'
'\u1fe2': 'L'
'\u1fe3': 'L'
'\u1fe4': 'L'
'\u1fe5': 'L'
'\u1fe6': 'L'
'\u1fe7': 'L'
'\u1fe8': 'Lu'
'\u1fe9': 'Lu'
'\u1fea': 'Lu'
'\u1feb': 'Lu'
'\u1fec': 'Lu'
'\u1ff2': 'L'
'\u1ff3': 'L'
'\u1ff4': 'L'
'\u1ff6': 'L'
'\u1ff7': 'L'
'\u1ff8': 'Lu'
'\u1ff9': 'Lu'
'\u1ffa': 'Lu'
'\u1ffb': 'Lu'
'\u1ffc': 'L'
'\u2070': 'N'
'\u2071': 'L'
'\u2074': 'N'
'\u2075': 'N'
'\u2076': 'N'
'\u2077': 'N'
'\u2078': 'N'
'\u2079': 'N'
'\u207f': 'L'
'\u2080': 'N'
'\u2081': 'N'
'\u2082': 'N'
'\u2083': 'N'
'\u2084': 'N'
'\u2085': 'N'
'\u2086': 'N'
'\u2087': 'N'
'\u2088': 'N'
'\u2089': 'N'
'\u2090': 'L'
'\u2091': 'L'
'\u2092': 'L'
'\u2093': 'L'
'\u2094': 'L'
'\u2095': 'L'
'\u2096': 'L'
'\u2097': 'L'
'\u2098': 'L'
'\u2099': 'L'
'\u209a': 'L'
'\u209b': 'L'
'\u209c': 'L'
'\u2102': 'Lu'
'\u2107': 'Lu'
'\u210a': 'L'
'\u210b': 'Lu'
'\u210c': 'Lu'
'\u210d': 'Lu'
'\u210e': 'L'
'\u210f': 'L'
'\u2110': 'Lu'
'\u2111': 'Lu'
'\u2112': 'Lu'
'\u2113': 'L'
'\u2115': 'Lu'
'\u2119': 'Lu'
'\u211a': 'Lu'
'\u211b': 'Lu'
'\u211c': 'Lu'
'\u211d': 'Lu'
'\u2124': 'Lu'
'\u2126': 'Lu'
'\u2128': 'Lu'
'\u212a': 'Lu'
'\u212b': 'Lu'
'\u212c': 'Lu'
'\u212d': 'Lu'
'\u212f': 'L'
'\u2130': 'Lu'
'\u2131': 'Lu'
'\u2132': 'Lu'
'\u2133': 'Lu'
'\u2134': 'L'
'\u2135': 'L'
'\u2136': 'L'
'\u2137': 'L'
'\u2138': 'L'
'\u2139': 'L'
'\u213c': 'L'
'\u213d': 'L'
'\u213e': 'Lu'
'\u213f': 'Lu'
'\u2145': 'Lu'
'\u2146': 'L'
'\u2147': 'L'
'\u2148': 'L'
'\u2149': 'L'
'\u214e': 'L'
'\u2150': 'N'
'\u2151': 'N'
'\u2152': 'N'
'\u2153': 'N'
'\u2154': 'N'
'\u2155': 'N'
'\u2156': 'N'
'\u2157': 'N'
'\u2158': 'N'
'\u2159': 'N'
'\u215a': 'N'
'\u215b': 'N'
'\u215c': 'N'
'\u215d': 'N'
'\u215e': 'N'
'\u215f': 'N'
'\u2160': 'N'
'\u2161': 'N'
'\u2162': 'N'
'\u2163': 'N'
'\u2164': 'N'
'\u2165': 'N'
'\u2166': 'N'
'\u2167': 'N'
'\u2168': 'N'
'\u2169': 'N'
'\u216a': 'N'
'\u216b': 'N'
'\u216c': 'N'
'\u216d': 'N'
'\u216e': 'N'
'\u216f': 'N'
'\u2170': 'N'
'\u2171': 'N'
'\u2172': 'N'
'\u2173': 'N'
'\u2174': 'N'
'\u2175': 'N'
'\u2176': 'N'
'\u2177': 'N'
'\u2178': 'N'
'\u2179': 'N'
'\u217a': 'N'
'\u217b': 'N'
'\u217c': 'N'
'\u217d': 'N'
'\u217e': 'N'
'\u217f': 'N'
'\u2180': 'N'
'\u2181': 'N'
'\u2182': 'N'
'\u2183': 'Lu'
'\u2184': 'L'
'\u2185': 'N'
'\u2186': 'N'
'\u2187': 'N'
'\u2188': 'N'
'\u2189': 'N'
'\u2460': 'N'
'\u2461': 'N'
'\u2462': 'N'
'\u2463': 'N'
'\u2464': 'N'
'\u2465': 'N'
'\u2466': 'N'
'\u2467': 'N'
'\u2468': 'N'
'\u2469': 'N'
'\u246a': 'N'
'\u246b': 'N'
'\u246c': 'N'
'\u246d': 'N'
'\u246e': 'N'
'\u246f': 'N'
'\u2470': 'N'
'\u2471': 'N'
'\u2472': 'N'
'\u2473': 'N'
'\u2474': 'N'
'\u2475': 'N'
'\u2476': 'N'
'\u2477': 'N'
'\u2478': 'N'
'\u2479': 'N'
'\u247a': 'N'
'\u247b': 'N'
'\u247c': 'N'
'\u247d': 'N'
'\u247e': 'N'
'\u247f': 'N'
'\u2480': 'N'
'\u2481': 'N'
'\u2482': 'N'
'\u2483': 'N'
'\u2484': 'N'
'\u2485': 'N'
'\u2486': 'N'
'\u2487': 'N'
'\u2488': 'N'
'\u2489': 'N'
'\u248a': 'N'
'\u248b': 'N'
'\u248c': 'N'
'\u248d': 'N'
'\u248e': 'N'
'\u248f': 'N'
'\u2490': 'N'
'\u2491': 'N'
'\u2492': 'N'
'\u2493': 'N'
'\u2494': 'N'
'\u2495': 'N'
'\u2496': 'N'
'\u2497': 'N'
'\u2498': 'N'
'\u2499': 'N'
'\u249a': 'N'
'\u249b': 'N'
'\u24ea': 'N'
'\u24eb': 'N'
'\u24ec': 'N'
'\u24ed': 'N'
'\u24ee': 'N'
'\u24ef': 'N'
'\u24f0': 'N'
'\u24f1': 'N'
'\u24f2': 'N'
'\u24f3': 'N'
'\u24f4': 'N'
'\u24f5': 'N'
'\u24f6': 'N'
'\u24f7': 'N'
'\u24f8': 'N'
'\u24f9': 'N'
'\u24fa': 'N'
'\u24fb': 'N'
'\u24fc': 'N'
'\u24fd': 'N'
'\u24fe': 'N'
'\u24ff': 'N'
'\u2776': 'N'
'\u2777': 'N'
'\u2778': 'N'
'\u2779': 'N'
'\u277a': 'N'
'\u277b': 'N'
'\u277c': 'N'
'\u277d': 'N'
'\u277e': 'N'
'\u277f': 'N'
'\u2780': 'N'
'\u2781': 'N'
'\u2782': 'N'
'\u2783': 'N'
'\u2784': 'N'
'\u2785': 'N'
'\u2786': 'N'
'\u2787': 'N'
'\u2788': 'N'
'\u2789': 'N'
'\u278a': 'N'
'\u278b': 'N'
'\u278c': 'N'
'\u278d': 'N'
'\u278e': 'N'
'\u278f': 'N'
'\u2790': 'N'
'\u2791': 'N'
'\u2792': 'N'
'\u2793': 'N'
'\u2c00': 'Lu'
'\u2c01': 'Lu'
'\u2c02': 'Lu'
'\u2c03': 'Lu'
'\u2c04': 'Lu'
'\u2c05': 'Lu'
'\u2c06': 'Lu'
'\u2c07': 'Lu'
'\u2c08': 'Lu'
'\u2c09': 'Lu'
'\u2c0a': 'Lu'
'\u2c0b': 'Lu'
'\u2c0c': 'Lu'
'\u2c0d': 'Lu'
'\u2c0e': 'Lu'
'\u2c0f': 'Lu'
'\u2c10': 'Lu'
'\u2c11': 'Lu'
'\u2c12': 'Lu'
'\u2c13': 'Lu'
'\u2c14': 'Lu'
'\u2c15': 'Lu'
'\u2c16': 'Lu'
'\u2c17': 'Lu'
'\u2c18': 'Lu'
'\u2c19': 'Lu'
'\u2c1a': 'Lu'
'\u2c1b': 'Lu'
'\u2c1c': 'Lu'
'\u2c1d': 'Lu'
'\u2c1e': 'Lu'
'\u2c1f': 'Lu'
'\u2c20': 'Lu'
'\u2c21': 'Lu'
'\u2c22': 'Lu'
'\u2c23': 'Lu'
'\u2c24': 'Lu'
'\u2c25': 'Lu'
'\u2c26': 'Lu'
'\u2c27': 'Lu'
'\u2c28': 'Lu'
'\u2c29': 'Lu'
'\u2c2a': 'Lu'
'\u2c2b': 'Lu'
'\u2c2c': 'Lu'
'\u2c2d': 'Lu'
'\u2c2e': 'Lu'
'\u2c30': 'L'
'\u2c31': 'L'
'\u2c32': 'L'
'\u2c33': 'L'
'\u2c34': 'L'
'\u2c35': 'L'
'\u2c36': 'L'
'\u2c37': 'L'
'\u2c38': 'L'
'\u2c39': 'L'
'\u2c3a': 'L'
'\u2c3b': 'L'
'\u2c3c': 'L'
'\u2c3d': 'L'
'\u2c3e': 'L'
'\u2c3f': 'L'
'\u2c40': 'L'
'\u2c41': 'L'
'\u2c42': 'L'
'\u2c43': 'L'
'\u2c44': 'L'
'\u2c45': 'L'
'\u2c46': 'L'
'\u2c47': 'L'
'\u2c48': 'L'
'\u2c49': 'L'
'\u2c4a': 'L'
'\u2c4b': 'L'
'\u2c4c': 'L'
'\u2c4d': 'L'
'\u2c4e': 'L'
'\u2c4f': 'L'
'\u2c50': 'L'
'\u2c51': 'L'
'\u2c52': 'L'
'\u2c53': 'L'
'\u2c54': 'L'
'\u2c55': 'L'
'\u2c56': 'L'
'\u2c57': 'L'
'\u2c58': 'L'
'\u2c59': 'L'
'\u2c5a': 'L'
'\u2c5b': 'L'
'\u2c5c': 'L'
'\u2c5d': 'L'
'\u2c5e': 'L'
'\u2c60': 'Lu'
'\u2c61': 'L'
'\u2c62': 'Lu'
'\u2c63': 'Lu'
'\u2c64': 'Lu'
'\u2c65': 'L'
'\u2c66': 'L'
'\u2c67': 'Lu'
'\u2c68': 'L'
'\u2c69': 'Lu'
'\u2c6a': 'L'
'\u2c6b': 'Lu'
'\u2c6c': 'L'
'\u2c6d': 'Lu'
'\u2c6e': 'Lu'
'\u2c6f': 'Lu'
'\u2c70': 'Lu'
'\u2c71': 'L'
'\u2c72': 'Lu'
'\u2c73': 'L'
'\u2c74': 'L'
'\u2c75': 'Lu'
'\u2c76': 'L'
'\u2c77': 'L'
'\u2c78': 'L'
'\u2c79': 'L'
'\u2c7a': 'L'
'\u2c7b': 'L'
'\u2c7c': 'L'
'\u2c7d': 'L'
'\u2c7e': 'Lu'
'\u2c7f': 'Lu'
'\u2c80': 'Lu'
'\u2c81': 'L'
'\u2c82': 'Lu'
'\u2c83': 'L'
'\u2c84': 'Lu'
'\u2c85': 'L'
'\u2c86': 'Lu'
'\u2c87': 'L'
'\u2c88': 'Lu'
'\u2c89': 'L'
'\u2c8a': 'Lu'
'\u2c8b': 'L'
'\u2c8c': 'Lu'
'\u2c8d': 'L'
'\u2c8e': 'Lu'
'\u2c8f': 'L'
'\u2c90': 'Lu'
'\u2c91': 'L'
'\u2c92': 'Lu'
'\u2c93': 'L'
'\u2c94': 'Lu'
'\u2c95': 'L'
'\u2c96': 'Lu'
'\u2c97': 'L'
'\u2c98': 'Lu'
'\u2c99': 'L'
'\u2c9a': 'Lu'
'\u2c9b': 'L'
'\u2c9c': 'Lu'
'\u2c9d': 'L'
'\u2c9e': 'Lu'
'\u2c9f': 'L'
'\u2ca0': 'Lu'
'\u2ca1': 'L'
'\u2ca2': 'Lu'
'\u2ca3': 'L'
'\u2ca4': 'Lu'
'\u2ca5': 'L'
'\u2ca6': 'Lu'
'\u2ca7': 'L'
'\u2ca8': 'Lu'
'\u2ca9': 'L'
'\u2caa': 'Lu'
'\u2cab': 'L'
'\u2cac': 'Lu'
'\u2cad': 'L'
'\u2cae': 'Lu'
'\u2caf': 'L'
'\u2cb0': 'Lu'
'\u2cb1': 'L'
'\u2cb2': 'Lu'
'\u2cb3': 'L'
'\u2cb4': 'Lu'
'\u2cb5': 'L'
'\u2cb6': 'Lu'
'\u2cb7': 'L'
'\u2cb8': 'Lu'
'\u2cb9': 'L'
'\u2cba': 'Lu'
'\u2cbb': 'L'
'\u2cbc': 'Lu'
'\u2cbd': 'L'
'\u2cbe': 'Lu'
'\u2cbf': 'L'
'\u2cc0': 'Lu'
'\u2cc1': 'L'
'\u2cc2': 'Lu'
'\u2cc3': 'L'
'\u2cc4': 'Lu'
'\u2cc5': 'L'
'\u2cc6': 'Lu'
'\u2cc7': 'L'
'\u2cc8': 'Lu'
'\u2cc9': 'L'
'\u2cca': 'Lu'
'\u2ccb': 'L'
'\u2ccc': 'Lu'
'\u2ccd': 'L'
'\u2cce': 'Lu'
'\u2ccf': 'L'
'\u2cd0': 'Lu'
'\u2cd1': 'L'
'\u2cd2': 'Lu'
'\u2cd3': 'L'
'\u2cd4': 'Lu'
'\u2cd5': 'L'
'\u2cd6': 'Lu'
'\u2cd7': 'L'
'\u2cd8': 'Lu'
'\u2cd9': 'L'
'\u2cda': 'Lu'
'\u2cdb': 'L'
'\u2cdc': 'Lu'
'\u2cdd': 'L'
'\u2cde': 'Lu'
'\u2cdf': 'L'
'\u2ce0': 'Lu'
'\u2ce1': 'L'
'\u2ce2': 'Lu'
'\u2ce3': 'L'
'\u2ce4': 'L'
'\u2ceb': 'Lu'
'\u2cec': 'L'
'\u2ced': 'Lu'
'\u2cee': 'L'
'\u2cf2': 'Lu'
'\u2cf3': 'L'
'\u2cfd': 'N'
'\u2d00': 'L'
'\u2d01': 'L'
'\u2d02': 'L'
'\u2d03': 'L'
'\u2d04': 'L'
'\u2d05': 'L'
'\u2d06': 'L'
'\u2d07': 'L'
'\u2d08': 'L'
'\u2d09': 'L'
'\u2d0a': 'L'
'\u2d0b': 'L'
'\u2d0c': 'L'
'\u2d0d': 'L'
'\u2d0e': 'L'
'\u2d0f': 'L'
'\u2d10': 'L'
'\u2d11': 'L'
'\u2d12': 'L'
'\u2d13': 'L'
'\u2d14': 'L'
'\u2d15': 'L'
'\u2d16': 'L'
'\u2d17': 'L'
'\u2d18': 'L'
'\u2d19': 'L'
'\u2d1a': 'L'
'\u2d1b': 'L'
'\u2d1c': 'L'
'\u2d1d': 'L'
'\u2d1e': 'L'
'\u2d1f': 'L'
'\u2d20': 'L'
'\u2d21': 'L'
'\u2d22': 'L'
'\u2d23': 'L'
'\u2d24': 'L'
'\u2d25': 'L'
'\u2d27': 'L'
'\u2d2d': 'L'
'\u2d30': 'L'
'\u2d31': 'L'
'\u2d32': 'L'
'\u2d33': 'L'
'\u2d34': 'L'
'\u2d35': 'L'
'\u2d36': 'L'
'\u2d37': 'L'
'\u2d38': 'L'
'\u2d39': 'L'
'\u2d3a': 'L'
'\u2d3b': 'L'
'\u2d3c': 'L'
'\u2d3d': 'L'
'\u2d3e': 'L'
'\u2d3f': 'L'
'\u2d40': 'L'
'\u2d41': 'L'
'\u2d42': 'L'
'\u2d43': 'L'
'\u2d44': 'L'
'\u2d45': 'L'
'\u2d46': 'L'
'\u2d47': 'L'
'\u2d48': 'L'
'\u2d49': 'L'
'\u2d4a': 'L'
'\u2d4b': 'L'
'\u2d4c': 'L'
'\u2d4d': 'L'
'\u2d4e': 'L'
'\u2d4f': 'L'
'\u2d50': 'L'
'\u2d51': 'L'
'\u2d52': 'L'
'\u2d53': 'L'
'\u2d54': 'L'
'\u2d55': 'L'
'\u2d56': 'L'
'\u2d57': 'L'
'\u2d58': 'L'
'\u2d59': 'L'
'\u2d5a': 'L'
'\u2d5b': 'L'
'\u2d5c': 'L'
'\u2d5d': 'L'
'\u2d5e': 'L'
'\u2d5f': 'L'
'\u2d60': 'L'
'\u2d61': 'L'
'\u2d62': 'L'
'\u2d63': 'L'
'\u2d64': 'L'
'\u2d65': 'L'
'\u2d66': 'L'
'\u2d67': 'L'
'\u2d6f': 'L'
'\u2d80': 'L'
'\u2d81': 'L'
'\u2d82': 'L'
'\u2d83': 'L'
'\u2d84': 'L'
'\u2d85': 'L'
'\u2d86': 'L'
'\u2d87': 'L'
'\u2d88': 'L'
'\u2d89': 'L'
'\u2d8a': 'L'
'\u2d8b': 'L'
'\u2d8c': 'L'
'\u2d8d': 'L'
'\u2d8e': 'L'
'\u2d8f': 'L'
'\u2d90': 'L'
'\u2d91': 'L'
'\u2d92': 'L'
'\u2d93': 'L'
'\u2d94': 'L'
'\u2d95': 'L'
'\u2d96': 'L'
'\u2da0': 'L'
'\u2da1': 'L'
'\u2da2': 'L'
'\u2da3': 'L'
'\u2da4': 'L'
'\u2da5': 'L'
'\u2da6': 'L'
'\u2da8': 'L'
'\u2da9': 'L'
'\u2daa': 'L'
'\u2dab': 'L'
'\u2dac': 'L'
'\u2dad': 'L'
'\u2dae': 'L'
'\u2db0': 'L'
'\u2db1': 'L'
'\u2db2': 'L'
'\u2db3': 'L'
'\u2db4': 'L'
'\u2db5': 'L'
'\u2db6': 'L'
'\u2db8': 'L'
'\u2db9': 'L'
'\u2dba': 'L'
'\u2dbb': 'L'
'\u2dbc': 'L'
'\u2dbd': 'L'
'\u2dbe': 'L'
'\u2dc0': 'L'
'\u2dc1': 'L'
'\u2dc2': 'L'
'\u2dc3': 'L'
'\u2dc4': 'L'
'\u2dc5': 'L'
'\u2dc6': 'L'
'\u2dc8': 'L'
'\u2dc9': 'L'
'\u2dca': 'L'
'\u2dcb': 'L'
'\u2dcc': 'L'
'\u2dcd': 'L'
'\u2dce': 'L'
'\u2dd0': 'L'
'\u2dd1': 'L'
'\u2dd2': 'L'
'\u2dd3': 'L'
'\u2dd4': 'L'
'\u2dd5': 'L'
'\u2dd6': 'L'
'\u2dd8': 'L'
'\u2dd9': 'L'
'\u2dda': 'L'
'\u2ddb': 'L'
'\u2ddc': 'L'
'\u2ddd': 'L'
'\u2dde': 'L'
'\u2e2f': 'L'
'\u3005': 'L'
'\u3006': 'L'
'\u3007': 'N'
'\u3021': 'N'
'\u3022': 'N'
'\u3023': 'N'
'\u3024': 'N'
'\u3025': 'N'
'\u3026': 'N'
'\u3027': 'N'
'\u3028': 'N'
'\u3029': 'N'
'\u3031': 'L'
'\u3032': 'L'
'\u3033': 'L'
'\u3034': 'L'
'\u3035': 'L'
'\u3038': 'N'
'\u3039': 'N'
'\u303a': 'N'
'\u303b': 'L'
'\u303c': 'L'
'\u3041': 'L'
'\u3042': 'L'
'\u3043': 'L'
'\u3044': 'L'
'\u3045': 'L'
'\u3046': 'L'
'\u3047': 'L'
'\u3048': 'L'
'\u3049': 'L'
'\u304a': 'L'
'\u304b': 'L'
'\u304c': 'L'
'\u304d': 'L'
'\u304e': 'L'
'\u304f': 'L'
'\u3050': 'L'
'\u3051': 'L'
'\u3052': 'L'
'\u3053': 'L'
'\u3054': 'L'
'\u3055': 'L'
'\u3056': 'L'
'\u3057': 'L'
'\u3058': 'L'
'\u3059': 'L'
'\u305a': 'L'
'\u305b': 'L'
'\u305c': 'L'
'\u305d': 'L'
'\u305e': 'L'
'\u305f': 'L'
'\u3060': 'L'
'\u3061': 'L'
'\u3062': 'L'
'\u3063': 'L'
'\u3064': 'L'
'\u3065': 'L'
'\u3066': 'L'
'\u3067': 'L'
'\u3068': 'L'
'\u3069': 'L'
'\u306a': 'L'
'\u306b': 'L'
'\u306c': 'L'
'\u306d': 'L'
'\u306e': 'L'
'\u306f': 'L'
'\u3070': 'L'
'\u3071': 'L'
'\u3072': 'L'
'\u3073': 'L'
'\u3074': 'L'
'\u3075': 'L'
'\u3076': 'L'
'\u3077': 'L'
'\u3078': 'L'
'\u3079': 'L'
'\u307a': 'L'
'\u307b': 'L'
'\u307c': 'L'
'\u307d': 'L'
'\u307e': 'L'
'\u307f': 'L'
'\u3080': 'L'
'\u3081': 'L'
'\u3082': 'L'
'\u3083': 'L'
'\u3084': 'L'
'\u3085': 'L'
'\u3086': 'L'
'\u3087': 'L'
'\u3088': 'L'
'\u3089': 'L'
'\u308a': 'L'
'\u308b': 'L'
'\u308c': 'L'
'\u308d': 'L'
'\u308e': 'L'
'\u308f': 'L'
'\u3090': 'L'
'\u3091': 'L'
'\u3092': 'L'
'\u3093': 'L'
'\u3094': 'L'
'\u3095': 'L'
'\u3096': 'L'
'\u309d': 'L'
'\u309e': 'L'
'\u309f': 'L'
'\u30a1': 'L'
'\u30a2': 'L'
'\u30a3': 'L'
'\u30a4': 'L'
'\u30a5': 'L'
'\u30a6': 'L'
'\u30a7': 'L'
'\u30a8': 'L'
'\u30a9': 'L'
'\u30aa': 'L'
'\u30ab': 'L'
'\u30ac': 'L'
'\u30ad': 'L'
'\u30ae': 'L'
'\u30af': 'L'
'\u30b0': 'L'
'\u30b1': 'L'
'\u30b2': 'L'
'\u30b3': 'L'
'\u30b4': 'L'
'\u30b5': 'L'
'\u30b6': 'L'
'\u30b7': 'L'
'\u30b8': 'L'
'\u30b9': 'L'
'\u30ba': 'L'
'\u30bb': 'L'
'\u30bc': 'L'
'\u30bd': 'L'
'\u30be': 'L'
'\u30bf': 'L'
'\u30c0': 'L'
'\u30c1': 'L'
'\u30c2': 'L'
'\u30c3': 'L'
'\u30c4': 'L'
'\u30c5': 'L'
'\u30c6': 'L'
'\u30c7': 'L'
'\u30c8': 'L'
'\u30c9': 'L'
'\u30ca': 'L'
'\u30cb': 'L'
'\u30cc': 'L'
'\u30cd': 'L'
'\u30ce': 'L'
'\u30cf': 'L'
'\u30d0': 'L'
'\u30d1': 'L'
'\u30d2': 'L'
'\u30d3': 'L'
'\u30d4': 'L'
'\u30d5': 'L'
'\u30d6': 'L'
'\u30d7': 'L'
'\u30d8': 'L'
'\u30d9': 'L'
'\u30da': 'L'
'\u30db': 'L'
'\u30dc': 'L'
'\u30dd': 'L'
'\u30de': 'L'
'\u30df': 'L'
'\u30e0': 'L'
'\u30e1': 'L'
'\u30e2': 'L'
'\u30e3': 'L'
'\u30e4': 'L'
'\u30e5': 'L'
'\u30e6': 'L'
'\u30e7': 'L'
'\u30e8': 'L'
'\u30e9': 'L'
'\u30ea': 'L'
'\u30eb': 'L'
'\u30ec': 'L'
'\u30ed': 'L'
'\u30ee': 'L'
'\u30ef': 'L'
'\u30f0': 'L'
'\u30f1': 'L'
'\u30f2': 'L'
'\u30f3': 'L'
'\u30f4': 'L'
'\u30f5': 'L'
'\u30f6': 'L'
'\u30f7': 'L'
'\u30f8': 'L'
'\u30f9': 'L'
'\u30fa': 'L'
'\u30fc': 'L'
'\u30fd': 'L'
'\u30fe': 'L'
'\u30ff': 'L'
'\u3105': 'L'
'\u3106': 'L'
'\u3107': 'L'
'\u3108': 'L'
'\u3109': 'L'
'\u310a': 'L'
'\u310b': 'L'
'\u310c': 'L'
'\u310d': 'L'
'\u310e': 'L'
'\u310f': 'L'
'\u3110': 'L'
'\u3111': 'L'
'\u3112': 'L'
'\u3113': 'L'
'\u3114': 'L'
'\u3115': 'L'
'\u3116': 'L'
'\u3117': 'L'
'\u3118': 'L'
'\u3119': 'L'
'\u311a': 'L'
'\u311b': 'L'
'\u311c': 'L'
'\u311d': 'L'
'\u311e': 'L'
'\u311f': 'L'
'\u3120': 'L'
'\u3121': 'L'
'\u3122': 'L'
'\u3123': 'L'
'\u3124': 'L'
'\u3125': 'L'
'\u3126': 'L'
'\u3127': 'L'
'\u3128': 'L'
'\u3129': 'L'
'\u312a': 'L'
'\u312b': 'L'
'\u312c': 'L'
'\u312d': 'L'
'\u3131': 'L'
'\u3132': 'L'
'\u3133': 'L'
'\u3134': 'L'
'\u3135': 'L'
'\u3136': 'L'
'\u3137': 'L'
'\u3138': 'L'
'\u3139': 'L'
'\u313a': 'L'
'\u313b': 'L'
'\u313c': 'L'
'\u313d': 'L'
'\u313e': 'L'
'\u313f': 'L'
'\u3140': 'L'
'\u3141': 'L'
'\u3142': 'L'
'\u3143': 'L'
'\u3144': 'L'
'\u3145': 'L'
'\u3146': 'L'
'\u3147': 'L'
'\u3148': 'L'
'\u3149': 'L'
'\u314a': 'L'
'\u314b': 'L'
'\u314c': 'L'
'\u314d': 'L'
'\u314e': 'L'
'\u314f': 'L'
'\u3150': 'L'
'\u3151': 'L'
'\u3152': 'L'
'\u3153': 'L'
'\u3154': 'L'
'\u3155': 'L'
'\u3156': 'L'
'\u3157': 'L'
'\u3158': 'L'
'\u3159': 'L'
'\u315a': 'L'
'\u315b': 'L'
'\u315c': 'L'
'\u315d': 'L'
'\u315e': 'L'
'\u315f': 'L'
'\u3160': 'L'
'\u3161': 'L'
'\u3162': 'L'
'\u3163': 'L'
'\u3164': 'L'
'\u3165': 'L'
'\u3166': 'L'
'\u3167': 'L'
'\u3168': 'L'
'\u3169': 'L'
'\u316a': 'L'
'\u316b': 'L'
'\u316c': 'L'
'\u316d': 'L'
'\u316e': 'L'
'\u316f': 'L'
'\u3170': 'L'
'\u3171': 'L'
'\u3172': 'L'
'\u3173': 'L'
'\u3174': 'L'
'\u3175': 'L'
'\u3176': 'L'
'\u3177': 'L'
'\u3178': 'L'
'\u3179': 'L'
'\u317a': 'L'
'\u317b': 'L'
'\u317c': 'L'
'\u317d': 'L'
'\u317e': 'L'
'\u317f': 'L'
'\u3180': 'L'
'\u3181': 'L'
'\u3182': 'L'
'\u3183': 'L'
'\u3184': 'L'
'\u3185': 'L'
'\u3186': 'L'
'\u3187': 'L'
'\u3188': 'L'
'\u3189': 'L'
'\u318a': 'L'
'\u318b': 'L'
'\u318c': 'L'
'\u318d': 'L'
'\u318e': 'L'
'\u3192': 'N'
'\u3193': 'N'
'\u3194': 'N'
'\u3195': 'N'
'\u31a0': 'L'
'\u31a1': 'L'
'\u31a2': 'L'
'\u31a3': 'L'
'\u31a4': 'L'
'\u31a5': 'L'
'\u31a6': 'L'
'\u31a7': 'L'
'\u31a8': 'L'
'\u31a9': 'L'
'\u31aa': 'L'
'\u31ab': 'L'
'\u31ac': 'L'
'\u31ad': 'L'
'\u31ae': 'L'
'\u31af': 'L'
'\u31b0': 'L'
'\u31b1': 'L'
'\u31b2': 'L'
'\u31b3': 'L'
'\u31b4': 'L'
'\u31b5': 'L'
'\u31b6': 'L'
'\u31b7': 'L'
'\u31b8': 'L'
'\u31b9': 'L'
'\u31ba': 'L'
'\u31f0': 'L'
'\u31f1': 'L'
'\u31f2': 'L'
'\u31f3': 'L'
'\u31f4': 'L'
'\u31f5': 'L'
'\u31f6': 'L'
'\u31f7': 'L'
'\u31f8': 'L'
'\u31f9': 'L'
'\u31fa': 'L'
'\u31fb': 'L'
'\u31fc': 'L'
'\u31fd': 'L'
'\u31fe': 'L'
'\u31ff': 'L'
'\u3220': 'N'
'\u3221': 'N'
'\u3222': 'N'
'\u3223': 'N'
'\u3224': 'N'
'\u3225': 'N'
'\u3226': 'N'
'\u3227': 'N'
'\u3228': 'N'
'\u3229': 'N'
'\u3248': 'N'
'\u3249': 'N'
'\u324a': 'N'
'\u324b': 'N'
'\u324c': 'N'
'\u324d': 'N'
'\u324e': 'N'
'\u324f': 'N'
'\u3251': 'N'
'\u3252': 'N'
'\u3253': 'N'
'\u3254': 'N'
'\u3255': 'N'
'\u3256': 'N'
'\u3257': 'N'
'\u3258': 'N'
'\u3259': 'N'
'\u325a': 'N'
'\u325b': 'N'
'\u325c': 'N'
'\u325d': 'N'
'\u325e': 'N'
'\u325f': 'N'
'\u3280': 'N'
'\u3281': 'N'
'\u3282': 'N'
'\u3283': 'N'
'\u3284': 'N'
'\u3285': 'N'
'\u3286': 'N'
'\u3287': 'N'
'\u3288': 'N'
'\u3289': 'N'
'\u32b1': 'N'
'\u32b2': 'N'
'\u32b3': 'N'
'\u32b4': 'N'
'\u32b5': 'N'
'\u32b6': 'N'
'\u32b7': 'N'
'\u32b8': 'N'
'\u32b9': 'N'
'\u32ba': 'N'
'\u32bb': 'N'
'\u32bc': 'N'
'\u32bd': 'N'
'\u32be': 'N'
'\u32bf': 'N'
'\ua000': 'L'
'\ua001': 'L'
'\ua002': 'L'
'\ua003': 'L'
'\ua004': 'L'
'\ua005': 'L'
'\ua006': 'L'
'\ua007': 'L'
'\ua008': 'L'
'\ua009': 'L'
'\ua00a': 'L'
'\ua00b': 'L'
'\ua00c': 'L'
'\ua00d': 'L'
'\ua00e': 'L'
'\ua00f': 'L'
'\ua010': 'L'
'\ua011': 'L'
'\ua012': 'L'
'\ua013': 'L'
'\ua014': 'L'
'\ua015': 'L'
'\ua016': 'L'
'\ua017': 'L'
'\ua018': 'L'
'\ua019': 'L'
'\ua01a': 'L'
'\ua01b': 'L'
'\ua01c': 'L'
'\ua01d': 'L'
'\ua01e': 'L'
'\ua01f': 'L'
'\ua020': 'L'
'\ua021': 'L'
'\ua022': 'L'
'\ua023': 'L'
'\ua024': 'L'
'\ua025': 'L'
'\ua026': 'L'
'\ua027': 'L'
'\ua028': 'L'
'\ua029': 'L'
'\ua02a': 'L'
'\ua02b': 'L'
'\ua02c': 'L'
'\ua02d': 'L'
'\ua02e': 'L'
'\ua02f': 'L'
'\ua030': 'L'
'\ua031': 'L'
'\ua032': 'L'
'\ua033': 'L'
'\ua034': 'L'
'\ua035': 'L'
'\ua036': 'L'
'\ua037': 'L'
'\ua038': 'L'
'\ua039': 'L'
'\ua03a': 'L'
'\ua03b': 'L'
'\ua03c': 'L'
'\ua03d': 'L'
'\ua03e': 'L'
'\ua03f': 'L'
'\ua040': 'L'
'\ua041': 'L'
'\ua042': 'L'
'\ua043': 'L'
'\ua044': 'L'
'\ua045': 'L'
'\ua046': 'L'
'\ua047': 'L'
'\ua048': 'L'
'\ua049': 'L'
'\ua04a': 'L'
'\ua04b': 'L'
'\ua04c': 'L'
'\ua04d': 'L'
'\ua04e': 'L'
'\ua04f': 'L'
'\ua050': 'L'
'\ua051': 'L'
'\ua052': 'L'
'\ua053': 'L'
'\ua054': 'L'
'\ua055': 'L'
'\ua056': 'L'
'\ua057': 'L'
'\ua058': 'L'
'\ua059': 'L'
'\ua05a': 'L'
'\ua05b': 'L'
'\ua05c': 'L'
'\ua05d': 'L'
'\ua05e': 'L'
'\ua05f': 'L'
'\ua060': 'L'
'\ua061': 'L'
'\ua062': 'L'
'\ua063': 'L'
'\ua064': 'L'
'\ua065': 'L'
'\ua066': 'L'
'\ua067': 'L'
'\ua068': 'L'
'\ua069': 'L'
'\ua06a': 'L'
'\ua06b': 'L'
'\ua06c': 'L'
'\ua06d': 'L'
'\ua06e': 'L'
'\ua06f': 'L'
'\ua070': 'L'
'\ua071': 'L'
'\ua072': 'L'
'\ua073': 'L'
'\ua074': 'L'
'\ua075': 'L'
'\ua076': 'L'
'\ua077': 'L'
'\ua078': 'L'
'\ua079': 'L'
'\ua07a': 'L'
'\ua07b': 'L'
'\ua07c': 'L'
'\ua07d': 'L'
'\ua07e': 'L'
'\ua07f': 'L'
'\ua080': 'L'
'\ua081': 'L'
'\ua082': 'L'
'\ua083': 'L'
'\ua084': 'L'
'\ua085': 'L'
'\ua086': 'L'
'\ua087': 'L'
'\ua088': 'L'
'\ua089': 'L'
'\ua08a': 'L'
'\ua08b': 'L'
'\ua08c': 'L'
'\ua08d': 'L'
'\ua08e': 'L'
'\ua08f': 'L'
'\ua090': 'L'
'\ua091': 'L'
'\ua092': 'L'
'\ua093': 'L'
'\ua094': 'L'
'\ua095': 'L'
'\ua096': 'L'
'\ua097': 'L'
'\ua098': 'L'
'\ua099': 'L'
'\ua09a': 'L'
'\ua09b': 'L'
'\ua09c': 'L'
'\ua09d': 'L'
'\ua09e': 'L'
'\ua09f': 'L'
'\ua0a0': 'L'
'\ua0a1': 'L'
'\ua0a2': 'L'
'\ua0a3': 'L'
'\ua0a4': 'L'
'\ua0a5': 'L'
'\ua0a6': 'L'
'\ua0a7': 'L'
'\ua0a8': 'L'
'\ua0a9': 'L'
'\ua0aa': 'L'
'\ua0ab': 'L'
'\ua0ac': 'L'
'\ua0ad': 'L'
'\ua0ae': 'L'
'\ua0af': 'L'
'\ua0b0': 'L'
'\ua0b1': 'L'
'\ua0b2': 'L'
'\ua0b3': 'L'
'\ua0b4': 'L'
'\ua0b5': 'L'
'\ua0b6': 'L'
'\ua0b7': 'L'
'\ua0b8': 'L'
'\ua0b9': 'L'
'\ua0ba': 'L'
'\ua0bb': 'L'
'\ua0bc': 'L'
'\ua0bd': 'L'
'\ua0be': 'L'
'\ua0bf': 'L'
'\ua0c0': 'L'
'\ua0c1': 'L'
'\ua0c2': 'L'
'\ua0c3': 'L'
'\ua0c4': 'L'
'\ua0c5': 'L'
'\ua0c6': 'L'
'\ua0c7': 'L'
'\ua0c8': 'L'
'\ua0c9': 'L'
'\ua0ca': 'L'
'\ua0cb': 'L'
'\ua0cc': 'L'
'\ua0cd': 'L'
'\ua0ce': 'L'
'\ua0cf': 'L'
'\ua0d0': 'L'
'\ua0d1': 'L'
'\ua0d2': 'L'
'\ua0d3': 'L'
'\ua0d4': 'L'
'\ua0d5': 'L'
'\ua0d6': 'L'
'\ua0d7': 'L'
'\ua0d8': 'L'
'\ua0d9': 'L'
'\ua0da': 'L'
'\ua0db': 'L'
'\ua0dc': 'L'
'\ua0dd': 'L'
'\ua0de': 'L'
'\ua0df': 'L'
'\ua0e0': 'L'
'\ua0e1': 'L'
'\ua0e2': 'L'
'\ua0e3': 'L'
'\ua0e4': 'L'
'\ua0e5': 'L'
'\ua0e6': 'L'
'\ua0e7': 'L'
'\ua0e8': 'L'
'\ua0e9': 'L'
'\ua0ea': 'L'
'\ua0eb': 'L'
'\ua0ec': 'L'
'\ua0ed': 'L'
'\ua0ee': 'L'
'\ua0ef': 'L'
'\ua0f0': 'L'
'\ua0f1': 'L'
'\ua0f2': 'L'
'\ua0f3': 'L'
'\ua0f4': 'L'
'\ua0f5': 'L'
'\ua0f6': 'L'
'\ua0f7': 'L'
'\ua0f8': 'L'
'\ua0f9': 'L'
'\ua0fa': 'L'
'\ua0fb': 'L'
'\ua0fc': 'L'
'\ua0fd': 'L'
'\ua0fe': 'L'
'\ua0ff': 'L'
'\ua100': 'L'
'\ua101': 'L'
'\ua102': 'L'
'\ua103': 'L'
'\ua104': 'L'
'\ua105': 'L'
'\ua106': 'L'
'\ua107': 'L'
'\ua108': 'L'
'\ua109': 'L'
'\ua10a': 'L'
'\ua10b': 'L'
'\ua10c': 'L'
'\ua10d': 'L'
'\ua10e': 'L'
'\ua10f': 'L'
'\ua110': 'L'
'\ua111': 'L'
'\ua112': 'L'
'\ua113': 'L'
'\ua114': 'L'
'\ua115': 'L'
'\ua116': 'L'
'\ua117': 'L'
'\ua118': 'L'
'\ua119': 'L'
'\ua11a': 'L'
'\ua11b': 'L'
'\ua11c': 'L'
'\ua11d': 'L'
'\ua11e': 'L'
'\ua11f': 'L'
'\ua120': 'L'
'\ua121': 'L'
'\ua122': 'L'
'\ua123': 'L'
'\ua124': 'L'
'\ua125': 'L'
'\ua126': 'L'
'\ua127': 'L'
'\ua128': 'L'
'\ua129': 'L'
'\ua12a': 'L'
'\ua12b': 'L'
'\ua12c': 'L'
'\ua12d': 'L'
'\ua12e': 'L'
'\ua12f': 'L'
'\ua130': 'L'
'\ua131': 'L'
'\ua132': 'L'
'\ua133': 'L'
'\ua134': 'L'
'\ua135': 'L'
'\ua136': 'L'
'\ua137': 'L'
'\ua138': 'L'
'\ua139': 'L'
'\ua13a': 'L'
'\ua13b': 'L'
'\ua13c': 'L'
'\ua13d': 'L'
'\ua13e': 'L'
'\ua13f': 'L'
'\ua140': 'L'
'\ua141': 'L'
'\ua142': 'L'
'\ua143': 'L'
'\ua144': 'L'
'\ua145': 'L'
'\ua146': 'L'
'\ua147': 'L'
'\ua148': 'L'
'\ua149': 'L'
'\ua14a': 'L'
'\ua14b': 'L'
'\ua14c': 'L'
'\ua14d': 'L'
'\ua14e': 'L'
'\ua14f': 'L'
'\ua150': 'L'
'\ua151': 'L'
'\ua152': 'L'
'\ua153': 'L'
'\ua154': 'L'
'\ua155': 'L'
'\ua156': 'L'
'\ua157': 'L'
'\ua158': 'L'
'\ua159': 'L'
'\ua15a': 'L'
'\ua15b': 'L'
'\ua15c': 'L'
'\ua15d': 'L'
'\ua15e': 'L'
'\ua15f': 'L'
'\ua160': 'L'
'\ua161': 'L'
'\ua162': 'L'
'\ua163': 'L'
'\ua164': 'L'
'\ua165': 'L'
'\ua166': 'L'
'\ua167': 'L'
'\ua168': 'L'
'\ua169': 'L'
'\ua16a': 'L'
'\ua16b': 'L'
'\ua16c': 'L'
'\ua16d': 'L'
'\ua16e': 'L'
'\ua16f': 'L'
'\ua170': 'L'
'\ua171': 'L'
'\ua172': 'L'
'\ua173': 'L'
'\ua174': 'L'
'\ua175': 'L'
'\ua176': 'L'
'\ua177': 'L'
'\ua178': 'L'
'\ua179': 'L'
'\ua17a': 'L'
'\ua17b': 'L'
'\ua17c': 'L'
'\ua17d': 'L'
'\ua17e': 'L'
'\ua17f': 'L'
'\ua180': 'L'
'\ua181': 'L'
'\ua182': 'L'
'\ua183': 'L'
'\ua184': 'L'
'\ua185': 'L'
'\ua186': 'L'
'\ua187': 'L'
'\ua188': 'L'
'\ua189': 'L'
'\ua18a': 'L'
'\ua18b': 'L'
'\ua18c': 'L'
'\ua18d': 'L'
'\ua18e': 'L'
'\ua18f': 'L'
'\ua190': 'L'
'\ua191': 'L'
'\ua192': 'L'
'\ua193': 'L'
'\ua194': 'L'
'\ua195': 'L'
'\ua196': 'L'
'\ua197': 'L'
'\ua198': 'L'
'\ua199': 'L'
'\ua19a': 'L'
'\ua19b': 'L'
'\ua19c': 'L'
'\ua19d': 'L'
'\ua19e': 'L'
'\ua19f': 'L'
'\ua1a0': 'L'
'\ua1a1': 'L'
'\ua1a2': 'L'
'\ua1a3': 'L'
'\ua1a4': 'L'
'\ua1a5': 'L'
'\ua1a6': 'L'
'\ua1a7': 'L'
'\ua1a8': 'L'
'\ua1a9': 'L'
'\ua1aa': 'L'
'\ua1ab': 'L'
'\ua1ac': 'L'
'\ua1ad': 'L'
'\ua1ae': 'L'
'\ua1af': 'L'
'\ua1b0': 'L'
'\ua1b1': 'L'
'\ua1b2': 'L'
'\ua1b3': 'L'
'\ua1b4': 'L'
'\ua1b5': 'L'
'\ua1b6': 'L'
'\ua1b7': 'L'
'\ua1b8': 'L'
'\ua1b9': 'L'
'\ua1ba': 'L'
'\ua1bb': 'L'
'\ua1bc': 'L'
'\ua1bd': 'L'
'\ua1be': 'L'
'\ua1bf': 'L'
'\ua1c0': 'L'
'\ua1c1': 'L'
'\ua1c2': 'L'
'\ua1c3': 'L'
'\ua1c4': 'L'
'\ua1c5': 'L'
'\ua1c6': 'L'
'\ua1c7': 'L'
'\ua1c8': 'L'
'\ua1c9': 'L'
'\ua1ca': 'L'
'\ua1cb': 'L'
'\ua1cc': 'L'
'\ua1cd': 'L'
'\ua1ce': 'L'
'\ua1cf': 'L'
'\ua1d0': 'L'
'\ua1d1': 'L'
'\ua1d2': 'L'
'\ua1d3': 'L'
'\ua1d4': 'L'
'\ua1d5': 'L'
'\ua1d6': 'L'
'\ua1d7': 'L'
'\ua1d8': 'L'
'\ua1d9': 'L'
'\ua1da': 'L'
'\ua1db': 'L'
'\ua1dc': 'L'
'\ua1dd': 'L'
'\ua1de': 'L'
'\ua1df': 'L'
'\ua1e0': 'L'
'\ua1e1': 'L'
'\ua1e2': 'L'
'\ua1e3': 'L'
'\ua1e4': 'L'
'\ua1e5': 'L'
'\ua1e6': 'L'
'\ua1e7': 'L'
'\ua1e8': 'L'
'\ua1e9': 'L'
'\ua1ea': 'L'
'\ua1eb': 'L'
'\ua1ec': 'L'
'\ua1ed': 'L'
'\ua1ee': 'L'
'\ua1ef': 'L'
'\ua1f0': 'L'
'\ua1f1': 'L'
'\ua1f2': 'L'
'\ua1f3': 'L'
'\ua1f4': 'L'
'\ua1f5': 'L'
'\ua1f6': 'L'
'\ua1f7': 'L'
'\ua1f8': 'L'
'\ua1f9': 'L'
'\ua1fa': 'L'
'\ua1fb': 'L'
'\ua1fc': 'L'
'\ua1fd': 'L'
'\ua1fe': 'L'
'\ua1ff': 'L'
'\ua200': 'L'
'\ua201': 'L'
'\ua202': 'L'
'\ua203': 'L'
'\ua204': 'L'
'\ua205': 'L'
'\ua206': 'L'
'\ua207': 'L'
'\ua208': 'L'
'\ua209': 'L'
'\ua20a': 'L'
'\ua20b': 'L'
'\ua20c': 'L'
'\ua20d': 'L'
'\ua20e': 'L'
'\ua20f': 'L'
'\ua210': 'L'
'\ua211': 'L'
'\ua212': 'L'
'\ua213': 'L'
'\ua214': 'L'
'\ua215': 'L'
'\ua216': 'L'
'\ua217': 'L'
'\ua218': 'L'
'\ua219': 'L'
'\ua21a': 'L'
'\ua21b': 'L'
'\ua21c': 'L'
'\ua21d': 'L'
'\ua21e': 'L'
'\ua21f': 'L'
'\ua220': 'L'
'\ua221': 'L'
'\ua222': 'L'
'\ua223': 'L'
'\ua224': 'L'
'\ua225': 'L'
'\ua226': 'L'
'\ua227': 'L'
'\ua228': 'L'
'\ua229': 'L'
'\ua22a': 'L'
'\ua22b': 'L'
'\ua22c': 'L'
'\ua22d': 'L'
'\ua22e': 'L'
'\ua22f': 'L'
'\ua230': 'L'
'\ua231': 'L'
'\ua232': 'L'
'\ua233': 'L'
'\ua234': 'L'
'\ua235': 'L'
'\ua236': 'L'
'\ua237': 'L'
'\ua238': 'L'
'\ua239': 'L'
'\ua23a': 'L'
'\ua23b': 'L'
'\ua23c': 'L'
'\ua23d': 'L'
'\ua23e': 'L'
'\ua23f': 'L'
'\ua240': 'L'
'\ua241': 'L'
'\ua242': 'L'
'\ua243': 'L'
'\ua244': 'L'
'\ua245': 'L'
'\ua246': 'L'
'\ua247': 'L'
'\ua248': 'L'
'\ua249': 'L'
'\ua24a': 'L'
'\ua24b': 'L'
'\ua24c': 'L'
'\ua24d': 'L'
'\ua24e': 'L'
'\ua24f': 'L'
'\ua250': 'L'
'\ua251': 'L'
'\ua252': 'L'
'\ua253': 'L'
'\ua254': 'L'
'\ua255': 'L'
'\ua256': 'L'
'\ua257': 'L'
'\ua258': 'L'
'\ua259': 'L'
'\ua25a': 'L'
'\ua25b': 'L'
'\ua25c': 'L'
'\ua25d': 'L'
'\ua25e': 'L'
'\ua25f': 'L'
'\ua260': 'L'
'\ua261': 'L'
'\ua262': 'L'
'\ua263': 'L'
'\ua264': 'L'
'\ua265': 'L'
'\ua266': 'L'
'\ua267': 'L'
'\ua268': 'L'
'\ua269': 'L'
'\ua26a': 'L'
'\ua26b': 'L'
'\ua26c': 'L'
'\ua26d': 'L'
'\ua26e': 'L'
'\ua26f': 'L'
'\ua270': 'L'
'\ua271': 'L'
'\ua272': 'L'
'\ua273': 'L'
'\ua274': 'L'
'\ua275': 'L'
'\ua276': 'L'
'\ua277': 'L'
'\ua278': 'L'
'\ua279': 'L'
'\ua27a': 'L'
'\ua27b': 'L'
'\ua27c': 'L'
'\ua27d': 'L'
'\ua27e': 'L'
'\ua27f': 'L'
'\ua280': 'L'
'\ua281': 'L'
'\ua282': 'L'
'\ua283': 'L'
'\ua284': 'L'
'\ua285': 'L'
'\ua286': 'L'
'\ua287': 'L'
'\ua288': 'L'
'\ua289': 'L'
'\ua28a': 'L'
'\ua28b': 'L'
'\ua28c': 'L'
'\ua28d': 'L'
'\ua28e': 'L'
'\ua28f': 'L'
'\ua290': 'L'
'\ua291': 'L'
'\ua292': 'L'
'\ua293': 'L'
'\ua294': 'L'
'\ua295': 'L'
'\ua296': 'L'
'\ua297': 'L'
'\ua298': 'L'
'\ua299': 'L'
'\ua29a': 'L'
'\ua29b': 'L'
'\ua29c': 'L'
'\ua29d': 'L'
'\ua29e': 'L'
'\ua29f': 'L'
'\ua2a0': 'L'
'\ua2a1': 'L'
'\ua2a2': 'L'
'\ua2a3': 'L'
'\ua2a4': 'L'
'\ua2a5': 'L'
'\ua2a6': 'L'
'\ua2a7': 'L'
'\ua2a8': 'L'
'\ua2a9': 'L'
'\ua2aa': 'L'
'\ua2ab': 'L'
'\ua2ac': 'L'
'\ua2ad': 'L'
'\ua2ae': 'L'
'\ua2af': 'L'
'\ua2b0': 'L'
'\ua2b1': 'L'
'\ua2b2': 'L'
'\ua2b3': 'L'
'\ua2b4': 'L'
'\ua2b5': 'L'
'\ua2b6': 'L'
'\ua2b7': 'L'
'\ua2b8': 'L'
'\ua2b9': 'L'
'\ua2ba': 'L'
'\ua2bb': 'L'
'\ua2bc': 'L'
'\ua2bd': 'L'
'\ua2be': 'L'
'\ua2bf': 'L'
'\ua2c0': 'L'
'\ua2c1': 'L'
'\ua2c2': 'L'
'\ua2c3': 'L'
'\ua2c4': 'L'
'\ua2c5': 'L'
'\ua2c6': 'L'
'\ua2c7': 'L'
'\ua2c8': 'L'
'\ua2c9': 'L'
'\ua2ca': 'L'
'\ua2cb': 'L'
'\ua2cc': 'L'
'\ua2cd': 'L'
'\ua2ce': 'L'
'\ua2cf': 'L'
'\ua2d0': 'L'
'\ua2d1': 'L'
'\ua2d2': 'L'
'\ua2d3': 'L'
'\ua2d4': 'L'
'\ua2d5': 'L'
'\ua2d6': 'L'
'\ua2d7': 'L'
'\ua2d8': 'L'
'\ua2d9': 'L'
'\ua2da': 'L'
'\ua2db': 'L'
'\ua2dc': 'L'
'\ua2dd': 'L'
'\ua2de': 'L'
'\ua2df': 'L'
'\ua2e0': 'L'
'\ua2e1': 'L'
'\ua2e2': 'L'
'\ua2e3': 'L'
'\ua2e4': 'L'
'\ua2e5': 'L'
'\ua2e6': 'L'
'\ua2e7': 'L'
'\ua2e8': 'L'
'\ua2e9': 'L'
'\ua2ea': 'L'
'\ua2eb': 'L'
'\ua2ec': 'L'
'\ua2ed': 'L'
'\ua2ee': 'L'
'\ua2ef': 'L'
'\ua2f0': 'L'
'\ua2f1': 'L'
'\ua2f2': 'L'
'\ua2f3': 'L'
'\ua2f4': 'L'
'\ua2f5': 'L'
'\ua2f6': 'L'
'\ua2f7': 'L'
'\ua2f8': 'L'
'\ua2f9': 'L'
'\ua2fa': 'L'
'\ua2fb': 'L'
'\ua2fc': 'L'
'\ua2fd': 'L'
'\ua2fe': 'L'
'\ua2ff': 'L'
'\ua300': 'L'
'\ua301': 'L'
'\ua302': 'L'
'\ua303': 'L'
'\ua304': 'L'
'\ua305': 'L'
'\ua306': 'L'
'\ua307': 'L'
'\ua308': 'L'
'\ua309': 'L'
'\ua30a': 'L'
'\ua30b': 'L'
'\ua30c': 'L'
'\ua30d': 'L'
'\ua30e': 'L'
'\ua30f': 'L'
'\ua310': 'L'
'\ua311': 'L'
'\ua312': 'L'
'\ua313': 'L'
'\ua314': 'L'
'\ua315': 'L'
'\ua316': 'L'
'\ua317': 'L'
'\ua318': 'L'
'\ua319': 'L'
'\ua31a': 'L'
'\ua31b': 'L'
'\ua31c': 'L'
'\ua31d': 'L'
'\ua31e': 'L'
'\ua31f': 'L'
'\ua320': 'L'
'\ua321': 'L'
'\ua322': 'L'
'\ua323': 'L'
'\ua324': 'L'
'\ua325': 'L'
'\ua326': 'L'
'\ua327': 'L'
'\ua328': 'L'
'\ua329': 'L'
'\ua32a': 'L'
'\ua32b': 'L'
'\ua32c': 'L'
'\ua32d': 'L'
'\ua32e': 'L'
'\ua32f': 'L'
'\ua330': 'L'
'\ua331': 'L'
'\ua332': 'L'
'\ua333': 'L'
'\ua334': 'L'
'\ua335': 'L'
'\ua336': 'L'
'\ua337': 'L'
'\ua338': 'L'
'\ua339': 'L'
'\ua33a': 'L'
'\ua33b': 'L'
'\ua33c': 'L'
'\ua33d': 'L'
'\ua33e': 'L'
'\ua33f': 'L'
'\ua340': 'L'
'\ua341': 'L'
'\ua342': 'L'
'\ua343': 'L'
'\ua344': 'L'
'\ua345': 'L'
'\ua346': 'L'
'\ua347': 'L'
'\ua348': 'L'
'\ua349': 'L'
'\ua34a': 'L'
'\ua34b': 'L'
'\ua34c': 'L'
'\ua34d': 'L'
'\ua34e': 'L'
'\ua34f': 'L'
'\ua350': 'L'
'\ua351': 'L'
'\ua352': 'L'
'\ua353': 'L'
'\ua354': 'L'
'\ua355': 'L'
'\ua356': 'L'
'\ua357': 'L'
'\ua358': 'L'
'\ua359': 'L'
'\ua35a': 'L'
'\ua35b': 'L'
'\ua35c': 'L'
'\ua35d': 'L'
'\ua35e': 'L'
'\ua35f': 'L'
'\ua360': 'L'
'\ua361': 'L'
'\ua362': 'L'
'\ua363': 'L'
'\ua364': 'L'
'\ua365': 'L'
'\ua366': 'L'
'\ua367': 'L'
'\ua368': 'L'
'\ua369': 'L'
'\ua36a': 'L'
'\ua36b': 'L'
'\ua36c': 'L'
'\ua36d': 'L'
'\ua36e': 'L'
'\ua36f': 'L'
'\ua370': 'L'
'\ua371': 'L'
'\ua372': 'L'
'\ua373': 'L'
'\ua374': 'L'
'\ua375': 'L'
'\ua376': 'L'
'\ua377': 'L'
'\ua378': 'L'
'\ua379': 'L'
'\ua37a': 'L'
'\ua37b': 'L'
'\ua37c': 'L'
'\ua37d': 'L'
'\ua37e': 'L'
'\ua37f': 'L'
'\ua380': 'L'
'\ua381': 'L'
'\ua382': 'L'
'\ua383': 'L'
'\ua384': 'L'
'\ua385': 'L'
'\ua386': 'L'
'\ua387': 'L'
'\ua388': 'L'
'\ua389': 'L'
'\ua38a': 'L'
'\ua38b': 'L'
'\ua38c': 'L'
'\ua38d': 'L'
'\ua38e': 'L'
'\ua38f': 'L'
'\ua390': 'L'
'\ua391': 'L'
'\ua392': 'L'
'\ua393': 'L'
'\ua394': 'L'
'\ua395': 'L'
'\ua396': 'L'
'\ua397': 'L'
'\ua398': 'L'
'\ua399': 'L'
'\ua39a': 'L'
'\ua39b': 'L'
'\ua39c': 'L'
'\ua39d': 'L'
'\ua39e': 'L'
'\ua39f': 'L'
'\ua3a0': 'L'
'\ua3a1': 'L'
'\ua3a2': 'L'
'\ua3a3': 'L'
'\ua3a4': 'L'
'\ua3a5': 'L'
'\ua3a6': 'L'
'\ua3a7': 'L'
'\ua3a8': 'L'
'\ua3a9': 'L'
'\ua3aa': 'L'
'\ua3ab': 'L'
'\ua3ac': 'L'
'\ua3ad': 'L'
'\ua3ae': 'L'
'\ua3af': 'L'
'\ua3b0': 'L'
'\ua3b1': 'L'
'\ua3b2': 'L'
'\ua3b3': 'L'
'\ua3b4': 'L'
'\ua3b5': 'L'
'\ua3b6': 'L'
'\ua3b7': 'L'
'\ua3b8': 'L'
'\ua3b9': 'L'
'\ua3ba': 'L'
'\ua3bb': 'L'
'\ua3bc': 'L'
'\ua3bd': 'L'
'\ua3be': 'L'
'\ua3bf': 'L'
'\ua3c0': 'L'
'\ua3c1': 'L'
'\ua3c2': 'L'
'\ua3c3': 'L'
'\ua3c4': 'L'
'\ua3c5': 'L'
'\ua3c6': 'L'
'\ua3c7': 'L'
'\ua3c8': 'L'
'\ua3c9': 'L'
'\ua3ca': 'L'
'\ua3cb': 'L'
'\ua3cc': 'L'
'\ua3cd': 'L'
'\ua3ce': 'L'
'\ua3cf': 'L'
'\ua3d0': 'L'
'\ua3d1': 'L'
'\ua3d2': 'L'
'\ua3d3': 'L'
'\ua3d4': 'L'
'\ua3d5': 'L'
'\ua3d6': 'L'
'\ua3d7': 'L'
'\ua3d8': 'L'
'\ua3d9': 'L'
'\ua3da': 'L'
'\ua3db': 'L'
'\ua3dc': 'L'
'\ua3dd': 'L'
'\ua3de': 'L'
'\ua3df': 'L'
'\ua3e0': 'L'
'\ua3e1': 'L'
'\ua3e2': 'L'
'\ua3e3': 'L'
'\ua3e4': 'L'
'\ua3e5': 'L'
'\ua3e6': 'L'
'\ua3e7': 'L'
'\ua3e8': 'L'
'\ua3e9': 'L'
'\ua3ea': 'L'
'\ua3eb': 'L'
'\ua3ec': 'L'
'\ua3ed': 'L'
'\ua3ee': 'L'
'\ua3ef': 'L'
'\ua3f0': 'L'
'\ua3f1': 'L'
'\ua3f2': 'L'
'\ua3f3': 'L'
'\ua3f4': 'L'
'\ua3f5': 'L'
'\ua3f6': 'L'
'\ua3f7': 'L'
'\ua3f8': 'L'
'\ua3f9': 'L'
'\ua3fa': 'L'
'\ua3fb': 'L'
'\ua3fc': 'L'
'\ua3fd': 'L'
'\ua3fe': 'L'
'\ua3ff': 'L'
'\ua400': 'L'
'\ua401': 'L'
'\ua402': 'L'
'\ua403': 'L'
'\ua404': 'L'
'\ua405': 'L'
'\ua406': 'L'
'\ua407': 'L'
'\ua408': 'L'
'\ua409': 'L'
'\ua40a': 'L'
'\ua40b': 'L'
'\ua40c': 'L'
'\ua40d': 'L'
'\ua40e': 'L'
'\ua40f': 'L'
'\ua410': 'L'
'\ua411': 'L'
'\ua412': 'L'
'\ua413': 'L'
'\ua414': 'L'
'\ua415': 'L'
'\ua416': 'L'
'\ua417': 'L'
'\ua418': 'L'
'\ua419': 'L'
'\ua41a': 'L'
'\ua41b': 'L'
'\ua41c': 'L'
'\ua41d': 'L'
'\ua41e': 'L'
'\ua41f': 'L'
'\ua420': 'L'
'\ua421': 'L'
'\ua422': 'L'
'\ua423': 'L'
'\ua424': 'L'
'\ua425': 'L'
'\ua426': 'L'
'\ua427': 'L'
'\ua428': 'L'
'\ua429': 'L'
'\ua42a': 'L'
'\ua42b': 'L'
'\ua42c': 'L'
'\ua42d': 'L'
'\ua42e': 'L'
'\ua42f': 'L'
'\ua430': 'L'
'\ua431': 'L'
'\ua432': 'L'
'\ua433': 'L'
'\ua434': 'L'
'\ua435': 'L'
'\ua436': 'L'
'\ua437': 'L'
'\ua438': 'L'
'\ua439': 'L'
'\ua43a': 'L'
'\ua43b': 'L'
'\ua43c': 'L'
'\ua43d': 'L'
'\ua43e': 'L'
'\ua43f': 'L'
'\ua440': 'L'
'\ua441': 'L'
'\ua442': 'L'
'\ua443': 'L'
'\ua444': 'L'
'\ua445': 'L'
'\ua446': 'L'
'\ua447': 'L'
'\ua448': 'L'
'\ua449': 'L'
'\ua44a': 'L'
'\ua44b': 'L'
'\ua44c': 'L'
'\ua44d': 'L'
'\ua44e': 'L'
'\ua44f': 'L'
'\ua450': 'L'
'\ua451': 'L'
'\ua452': 'L'
'\ua453': 'L'
'\ua454': 'L'
'\ua455': 'L'
'\ua456': 'L'
'\ua457': 'L'
'\ua458': 'L'
'\ua459': 'L'
'\ua45a': 'L'
'\ua45b': 'L'
'\ua45c': 'L'
'\ua45d': 'L'
'\ua45e': 'L'
'\ua45f': 'L'
'\ua460': 'L'
'\ua461': 'L'
'\ua462': 'L'
'\ua463': 'L'
'\ua464': 'L'
'\ua465': 'L'
'\ua466': 'L'
'\ua467': 'L'
'\ua468': 'L'
'\ua469': 'L'
'\ua46a': 'L'
'\ua46b': 'L'
'\ua46c': 'L'
'\ua46d': 'L'
'\ua46e': 'L'
'\ua46f': 'L'
'\ua470': 'L'
'\ua471': 'L'
'\ua472': 'L'
'\ua473': 'L'
'\ua474': 'L'
'\ua475': 'L'
'\ua476': 'L'
'\ua477': 'L'
'\ua478': 'L'
'\ua479': 'L'
'\ua47a': 'L'
'\ua47b': 'L'
'\ua47c': 'L'
'\ua47d': 'L'
'\ua47e': 'L'
'\ua47f': 'L'
'\ua480': 'L'
'\ua481': 'L'
'\ua482': 'L'
'\ua483': 'L'
'\ua484': 'L'
'\ua485': 'L'
'\ua486': 'L'
'\ua487': 'L'
'\ua488': 'L'
'\ua489': 'L'
'\ua48a': 'L'
'\ua48b': 'L'
'\ua48c': 'L'
'\ua4d0': 'L'
'\ua4d1': 'L'
'\ua4d2': 'L'
'\ua4d3': 'L'
'\ua4d4': 'L'
'\ua4d5': 'L'
'\ua4d6': 'L'
'\ua4d7': 'L'
'\ua4d8': 'L'
'\ua4d9': 'L'
'\ua4da': 'L'
'\ua4db': 'L'
'\ua4dc': 'L'
'\ua4dd': 'L'
'\ua4de': 'L'
'\ua4df': 'L'
'\ua4e0': 'L'
'\ua4e1': 'L'
'\ua4e2': 'L'
'\ua4e3': 'L'
'\ua4e4': 'L'
'\ua4e5': 'L'
'\ua4e6': 'L'
'\ua4e7': 'L'
'\ua4e8': 'L'
'\ua4e9': 'L'
'\ua4ea': 'L'
'\ua4eb': 'L'
'\ua4ec': 'L'
'\ua4ed': 'L'
'\ua4ee': 'L'
'\ua4ef': 'L'
'\ua4f0': 'L'
'\ua4f1': 'L'
'\ua4f2': 'L'
'\ua4f3': 'L'
'\ua4f4': 'L'
'\ua4f5': 'L'
'\ua4f6': 'L'
'\ua4f7': 'L'
'\ua4f8': 'L'
'\ua4f9': 'L'
'\ua4fa': 'L'
'\ua4fb': 'L'
'\ua4fc': 'L'
'\ua4fd': 'L'
'\ua500': 'L'
'\ua501': 'L'
'\ua502': 'L'
'\ua503': 'L'
'\ua504': 'L'
'\ua505': 'L'
'\ua506': 'L'
'\ua507': 'L'
'\ua508': 'L'
'\ua509': 'L'
'\ua50a': 'L'
'\ua50b': 'L'
'\ua50c': 'L'
'\ua50d': 'L'
'\ua50e': 'L'
'\ua50f': 'L'
'\ua510': 'L'
'\ua511': 'L'
'\ua512': 'L'
'\ua513': 'L'
'\ua514': 'L'
'\ua515': 'L'
'\ua516': 'L'
'\ua517': 'L'
'\ua518': 'L'
'\ua519': 'L'
'\ua51a': 'L'
'\ua51b': 'L'
'\ua51c': 'L'
'\ua51d': 'L'
'\ua51e': 'L'
'\ua51f': 'L'
'\ua520': 'L'
'\ua521': 'L'
'\ua522': 'L'
'\ua523': 'L'
'\ua524': 'L'
'\ua525': 'L'
'\ua526': 'L'
'\ua527': 'L'
'\ua528': 'L'
'\ua529': 'L'
'\ua52a': 'L'
'\ua52b': 'L'
'\ua52c': 'L'
'\ua52d': 'L'
'\ua52e': 'L'
'\ua52f': 'L'
'\ua530': 'L'
'\ua531': 'L'
'\ua532': 'L'
'\ua533': 'L'
'\ua534': 'L'
'\ua535': 'L'
'\ua536': 'L'
'\ua537': 'L'
'\ua538': 'L'
'\ua539': 'L'
'\ua53a': 'L'
'\ua53b': 'L'
'\ua53c': 'L'
'\ua53d': 'L'
'\ua53e': 'L'
'\ua53f': 'L'
'\ua540': 'L'
'\ua541': 'L'
'\ua542': 'L'
'\ua543': 'L'
'\ua544': 'L'
'\ua545': 'L'
'\ua546': 'L'
'\ua547': 'L'
'\ua548': 'L'
'\ua549': 'L'
'\ua54a': 'L'
'\ua54b': 'L'
'\ua54c': 'L'
'\ua54d': 'L'
'\ua54e': 'L'
'\ua54f': 'L'
'\ua550': 'L'
'\ua551': 'L'
'\ua552': 'L'
'\ua553': 'L'
'\ua554': 'L'
'\ua555': 'L'
'\ua556': 'L'
'\ua557': 'L'
'\ua558': 'L'
'\ua559': 'L'
'\ua55a': 'L'
'\ua55b': 'L'
'\ua55c': 'L'
'\ua55d': 'L'
'\ua55e': 'L'
'\ua55f': 'L'
'\ua560': 'L'
'\ua561': 'L'
'\ua562': 'L'
'\ua563': 'L'
'\ua564': 'L'
'\ua565': 'L'
'\ua566': 'L'
'\ua567': 'L'
'\ua568': 'L'
'\ua569': 'L'
'\ua56a': 'L'
'\ua56b': 'L'
'\ua56c': 'L'
'\ua56d': 'L'
'\ua56e': 'L'
'\ua56f': 'L'
'\ua570': 'L'
'\ua571': 'L'
'\ua572': 'L'
'\ua573': 'L'
'\ua574': 'L'
'\ua575': 'L'
'\ua576': 'L'
'\ua577': 'L'
'\ua578': 'L'
'\ua579': 'L'
'\ua57a': 'L'
'\ua57b': 'L'
'\ua57c': 'L'
'\ua57d': 'L'
'\ua57e': 'L'
'\ua57f': 'L'
'\ua580': 'L'
'\ua581': 'L'
'\ua582': 'L'
'\ua583': 'L'
'\ua584': 'L'
'\ua585': 'L'
'\ua586': 'L'
'\ua587': 'L'
'\ua588': 'L'
'\ua589': 'L'
'\ua58a': 'L'
'\ua58b': 'L'
'\ua58c': 'L'
'\ua58d': 'L'
'\ua58e': 'L'
'\ua58f': 'L'
'\ua590': 'L'
'\ua591': 'L'
'\ua592': 'L'
'\ua593': 'L'
'\ua594': 'L'
'\ua595': 'L'
'\ua596': 'L'
'\ua597': 'L'
'\ua598': 'L'
'\ua599': 'L'
'\ua59a': 'L'
'\ua59b': 'L'
'\ua59c': 'L'
'\ua59d': 'L'
'\ua59e': 'L'
'\ua59f': 'L'
'\ua5a0': 'L'
'\ua5a1': 'L'
'\ua5a2': 'L'
'\ua5a3': 'L'
'\ua5a4': 'L'
'\ua5a5': 'L'
'\ua5a6': 'L'
'\ua5a7': 'L'
'\ua5a8': 'L'
'\ua5a9': 'L'
'\ua5aa': 'L'
'\ua5ab': 'L'
'\ua5ac': 'L'
'\ua5ad': 'L'
'\ua5ae': 'L'
'\ua5af': 'L'
'\ua5b0': 'L'
'\ua5b1': 'L'
'\ua5b2': 'L'
'\ua5b3': 'L'
'\ua5b4': 'L'
'\ua5b5': 'L'
'\ua5b6': 'L'
'\ua5b7': 'L'
'\ua5b8': 'L'
'\ua5b9': 'L'
'\ua5ba': 'L'
'\ua5bb': 'L'
'\ua5bc': 'L'
'\ua5bd': 'L'
'\ua5be': 'L'
'\ua5bf': 'L'
'\ua5c0': 'L'
'\ua5c1': 'L'
'\ua5c2': 'L'
'\ua5c3': 'L'
'\ua5c4': 'L'
'\ua5c5': 'L'
'\ua5c6': 'L'
'\ua5c7': 'L'
'\ua5c8': 'L'
'\ua5c9': 'L'
'\ua5ca': 'L'
'\ua5cb': 'L'
'\ua5cc': 'L'
'\ua5cd': 'L'
'\ua5ce': 'L'
'\ua5cf': 'L'
'\ua5d0': 'L'
'\ua5d1': 'L'
'\ua5d2': 'L'
'\ua5d3': 'L'
'\ua5d4': 'L'
'\ua5d5': 'L'
'\ua5d6': 'L'
'\ua5d7': 'L'
'\ua5d8': 'L'
'\ua5d9': 'L'
'\ua5da': 'L'
'\ua5db': 'L'
'\ua5dc': 'L'
'\ua5dd': 'L'
'\ua5de': 'L'
'\ua5df': 'L'
'\ua5e0': 'L'
'\ua5e1': 'L'
'\ua5e2': 'L'
'\ua5e3': 'L'
'\ua5e4': 'L'
'\ua5e5': 'L'
'\ua5e6': 'L'
'\ua5e7': 'L'
'\ua5e8': 'L'
'\ua5e9': 'L'
'\ua5ea': 'L'
'\ua5eb': 'L'
'\ua5ec': 'L'
'\ua5ed': 'L'
'\ua5ee': 'L'
'\ua5ef': 'L'
'\ua5f0': 'L'
'\ua5f1': 'L'
'\ua5f2': 'L'
'\ua5f3': 'L'
'\ua5f4': 'L'
'\ua5f5': 'L'
'\ua5f6': 'L'
'\ua5f7': 'L'
'\ua5f8': 'L'
'\ua5f9': 'L'
'\ua5fa': 'L'
'\ua5fb': 'L'
'\ua5fc': 'L'
'\ua5fd': 'L'
'\ua5fe': 'L'
'\ua5ff': 'L'
'\ua600': 'L'
'\ua601': 'L'
'\ua602': 'L'
'\ua603': 'L'
'\ua604': 'L'
'\ua605': 'L'
'\ua606': 'L'
'\ua607': 'L'
'\ua608': 'L'
'\ua609': 'L'
'\ua60a': 'L'
'\ua60b': 'L'
'\ua60c': 'L'
'\ua610': 'L'
'\ua611': 'L'
'\ua612': 'L'
'\ua613': 'L'
'\ua614': 'L'
'\ua615': 'L'
'\ua616': 'L'
'\ua617': 'L'
'\ua618': 'L'
'\ua619': 'L'
'\ua61a': 'L'
'\ua61b': 'L'
'\ua61c': 'L'
'\ua61d': 'L'
'\ua61e': 'L'
'\ua61f': 'L'
'\ua620': 'N'
'\ua621': 'N'
'\ua622': 'N'
'\ua623': 'N'
'\ua624': 'N'
'\ua625': 'N'
'\ua626': 'N'
'\ua627': 'N'
'\ua628': 'N'
'\ua629': 'N'
'\ua62a': 'L'
'\ua62b': 'L'
'\ua640': 'Lu'
'\ua641': 'L'
'\ua642': 'Lu'
'\ua643': 'L'
'\ua644': 'Lu'
'\ua645': 'L'
'\ua646': 'Lu'
'\ua647': 'L'
'\ua648': 'Lu'
'\ua649': 'L'
'\ua64a': 'Lu'
'\ua64b': 'L'
'\ua64c': 'Lu'
'\ua64d': 'L'
'\ua64e': 'Lu'
'\ua64f': 'L'
'\ua650': 'Lu'
'\ua651': 'L'
'\ua652': 'Lu'
'\ua653': 'L'
'\ua654': 'Lu'
'\ua655': 'L'
'\ua656': 'Lu'
'\ua657': 'L'
'\ua658': 'Lu'
'\ua659': 'L'
'\ua65a': 'Lu'
'\ua65b': 'L'
'\ua65c': 'Lu'
'\ua65d': 'L'
'\ua65e': 'Lu'
'\ua65f': 'L'
'\ua660': 'Lu'
'\ua661': 'L'
'\ua662': 'Lu'
'\ua663': 'L'
'\ua664': 'Lu'
'\ua665': 'L'
'\ua666': 'Lu'
'\ua667': 'L'
'\ua668': 'Lu'
'\ua669': 'L'
'\ua66a': 'Lu'
'\ua66b': 'L'
'\ua66c': 'Lu'
'\ua66d': 'L'
'\ua66e': 'L'
'\ua67f': 'L'
'\ua680': 'Lu'
'\ua681': 'L'
'\ua682': 'Lu'
'\ua683': 'L'
'\ua684': 'Lu'
'\ua685': 'L'
'\ua686': 'Lu'
'\ua687': 'L'
'\ua688': 'Lu'
'\ua689': 'L'
'\ua68a': 'Lu'
'\ua68b': 'L'
'\ua68c': 'Lu'
'\ua68d': 'L'
'\ua68e': 'Lu'
'\ua68f': 'L'
'\ua690': 'Lu'
'\ua691': 'L'
'\ua692': 'Lu'
'\ua693': 'L'
'\ua694': 'Lu'
'\ua695': 'L'
'\ua696': 'Lu'
'\ua697': 'L'
'\ua698': 'Lu'
'\ua699': 'L'
'\ua69a': 'Lu'
'\ua69b': 'L'
'\ua69c': 'L'
'\ua69d': 'L'
'\ua6a0': 'L'
'\ua6a1': 'L'
'\ua6a2': 'L'
'\ua6a3': 'L'
'\ua6a4': 'L'
'\ua6a5': 'L'
'\ua6a6': 'L'
'\ua6a7': 'L'
'\ua6a8': 'L'
'\ua6a9': 'L'
'\ua6aa': 'L'
'\ua6ab': 'L'
'\ua6ac': 'L'
'\ua6ad': 'L'
'\ua6ae': 'L'
'\ua6af': 'L'
'\ua6b0': 'L'
'\ua6b1': 'L'
'\ua6b2': 'L'
'\ua6b3': 'L'
'\ua6b4': 'L'
'\ua6b5': 'L'
'\ua6b6': 'L'
'\ua6b7': 'L'
'\ua6b8': 'L'
'\ua6b9': 'L'
'\ua6ba': 'L'
'\ua6bb': 'L'
'\ua6bc': 'L'
'\ua6bd': 'L'
'\ua6be': 'L'
'\ua6bf': 'L'
'\ua6c0': 'L'
'\ua6c1': 'L'
'\ua6c2': 'L'
'\ua6c3': 'L'
'\ua6c4': 'L'
'\ua6c5': 'L'
'\ua6c6': 'L'
'\ua6c7': 'L'
'\ua6c8': 'L'
'\ua6c9': 'L'
'\ua6ca': 'L'
'\ua6cb': 'L'
'\ua6cc': 'L'
'\ua6cd': 'L'
'\ua6ce': 'L'
'\ua6cf': 'L'
'\ua6d0': 'L'
'\ua6d1': 'L'
'\ua6d2': 'L'
'\ua6d3': 'L'
'\ua6d4': 'L'
'\ua6d5': 'L'
'\ua6d6': 'L'
'\ua6d7': 'L'
'\ua6d8': 'L'
'\ua6d9': 'L'
'\ua6da': 'L'
'\ua6db': 'L'
'\ua6dc': 'L'
'\ua6dd': 'L'
'\ua6de': 'L'
'\ua6df': 'L'
'\ua6e0': 'L'
'\ua6e1': 'L'
'\ua6e2': 'L'
'\ua6e3': 'L'
'\ua6e4': 'L'
'\ua6e5': 'L'
'\ua6e6': 'N'
'\ua6e7': 'N'
'\ua6e8': 'N'
'\ua6e9': 'N'
'\ua6ea': 'N'
'\ua6eb': 'N'
'\ua6ec': 'N'
'\ua6ed': 'N'
'\ua6ee': 'N'
'\ua6ef': 'N'
'\ua717': 'L'
'\ua718': 'L'
'\ua719': 'L'
'\ua71a': 'L'
'\ua71b': 'L'
'\ua71c': 'L'
'\ua71d': 'L'
'\ua71e': 'L'
'\ua71f': 'L'
'\ua722': 'Lu'
'\ua723': 'L'
'\ua724': 'Lu'
'\ua725': 'L'
'\ua726': 'Lu'
'\ua727': 'L'
'\ua728': 'Lu'
'\ua729': 'L'
'\ua72a': 'Lu'
'\ua72b': 'L'
'\ua72c': 'Lu'
'\ua72d': 'L'
'\ua72e': 'Lu'
'\ua72f': 'L'
'\ua730': 'L'
'\ua731': 'L'
'\ua732': 'Lu'
'\ua733': 'L'
'\ua734': 'Lu'
'\ua735': 'L'
'\ua736': 'Lu'
'\ua737': 'L'
'\ua738': 'Lu'
'\ua739': 'L'
'\ua73a': 'Lu'
'\ua73b': 'L'
'\ua73c': 'Lu'
'\ua73d': 'L'
'\ua73e': 'Lu'
'\ua73f': 'L'
'\ua740': 'Lu'
'\ua741': 'L'
'\ua742': 'Lu'
'\ua743': 'L'
'\ua744': 'Lu'
'\ua745': 'L'
'\ua746': 'Lu'
'\ua747': 'L'
'\ua748': 'Lu'
'\ua749': 'L'
'\ua74a': 'Lu'
'\ua74b': 'L'
'\ua74c': 'Lu'
'\ua74d': 'L'
'\ua74e': 'Lu'
'\ua74f': 'L'
'\ua750': 'Lu'
'\ua751': 'L'
'\ua752': 'Lu'
'\ua753': 'L'
'\ua754': 'Lu'
'\ua755': 'L'
'\ua756': 'Lu'
'\ua757': 'L'
'\ua758': 'Lu'
'\ua759': 'L'
'\ua75a': 'Lu'
'\ua75b': 'L'
'\ua75c': 'Lu'
'\ua75d': 'L'
'\ua75e': 'Lu'
'\ua75f': 'L'
'\ua760': 'Lu'
'\ua761': 'L'
'\ua762': 'Lu'
'\ua763': 'L'
'\ua764': 'Lu'
'\ua765': 'L'
'\ua766': 'Lu'
'\ua767': 'L'
'\ua768': 'Lu'
'\ua769': 'L'
'\ua76a': 'Lu'
'\ua76b': 'L'
'\ua76c': 'Lu'
'\ua76d': 'L'
'\ua76e': 'Lu'
'\ua76f': 'L'
'\ua770': 'L'
'\ua771': 'L'
'\ua772': 'L'
'\ua773': 'L'
'\ua774': 'L'
'\ua775': 'L'
'\ua776': 'L'
'\ua777': 'L'
'\ua778': 'L'
'\ua779': 'Lu'
'\ua77a': 'L'
'\ua77b': 'Lu'
'\ua77c': 'L'
'\ua77d': 'Lu'
'\ua77e': 'Lu'
'\ua77f': 'L'
'\ua780': 'Lu'
'\ua781': 'L'
'\ua782': 'Lu'
'\ua783': 'L'
'\ua784': 'Lu'
'\ua785': 'L'
'\ua786': 'Lu'
'\ua787': 'L'
'\ua788': 'L'
'\ua78b': 'Lu'
'\ua78c': 'L'
'\ua78d': 'Lu'
'\ua78e': 'L'
'\ua78f': 'L'
'\ua790': 'Lu'
'\ua791': 'L'
'\ua792': 'Lu'
'\ua793': 'L'
'\ua794': 'L'
'\ua795': 'L'
'\ua796': 'Lu'
'\ua797': 'L'
'\ua798': 'Lu'
'\ua799': 'L'
'\ua79a': 'Lu'
'\ua79b': 'L'
'\ua79c': 'Lu'
'\ua79d': 'L'
'\ua79e': 'Lu'
'\ua79f': 'L'
'\ua7a0': 'Lu'
'\ua7a1': 'L'
'\ua7a2': 'Lu'
'\ua7a3': 'L'
'\ua7a4': 'Lu'
'\ua7a5': 'L'
'\ua7a6': 'Lu'
'\ua7a7': 'L'
'\ua7a8': 'Lu'
'\ua7a9': 'L'
'\ua7aa': 'Lu'
'\ua7ab': 'Lu'
'\ua7ac': 'Lu'
'\ua7ad': 'Lu'
'\ua7b0': 'Lu'
'\ua7b1': 'Lu'
'\ua7b2': 'Lu'
'\ua7b3': 'Lu'
'\ua7b4': 'Lu'
'\ua7b5': 'L'
'\ua7b6': 'Lu'
'\ua7b7': 'L'
'\ua7f7': 'L'
'\ua7f8': 'L'
'\ua7f9': 'L'
'\ua7fa': 'L'
'\ua7fb': 'L'
'\ua7fc': 'L'
'\ua7fd': 'L'
'\ua7fe': 'L'
'\ua7ff': 'L'
'\ua800': 'L'
'\ua801': 'L'
'\ua803': 'L'
'\ua804': 'L'
'\ua805': 'L'
'\ua807': 'L'
'\ua808': 'L'
'\ua809': 'L'
'\ua80a': 'L'
'\ua80c': 'L'
'\ua80d': 'L'
'\ua80e': 'L'
'\ua80f': 'L'
'\ua810': 'L'
'\ua811': 'L'
'\ua812': 'L'
'\ua813': 'L'
'\ua814': 'L'
'\ua815': 'L'
'\ua816': 'L'
'\ua817': 'L'
'\ua818': 'L'
'\ua819': 'L'
'\ua81a': 'L'
'\ua81b': 'L'
'\ua81c': 'L'
'\ua81d': 'L'
'\ua81e': 'L'
'\ua81f': 'L'
'\ua820': 'L'
'\ua821': 'L'
'\ua822': 'L'
'\ua830': 'N'
'\ua831': 'N'
'\ua832': 'N'
'\ua833': 'N'
'\ua834': 'N'
'\ua835': 'N'
'\ua840': 'L'
'\ua841': 'L'
'\ua842': 'L'
'\ua843': 'L'
'\ua844': 'L'
'\ua845': 'L'
'\ua846': 'L'
'\ua847': 'L'
'\ua848': 'L'
'\ua849': 'L'
'\ua84a': 'L'
'\ua84b': 'L'
'\ua84c': 'L'
'\ua84d': 'L'
'\ua84e': 'L'
'\ua84f': 'L'
'\ua850': 'L'
'\ua851': 'L'
'\ua852': 'L'
'\ua853': 'L'
'\ua854': 'L'
'\ua855': 'L'
'\ua856': 'L'
'\ua857': 'L'
'\ua858': 'L'
'\ua859': 'L'
'\ua85a': 'L'
'\ua85b': 'L'
'\ua85c': 'L'
'\ua85d': 'L'
'\ua85e': 'L'
'\ua85f': 'L'
'\ua860': 'L'
'\ua861': 'L'
'\ua862': 'L'
'\ua863': 'L'
'\ua864': 'L'
'\ua865': 'L'
'\ua866': 'L'
'\ua867': 'L'
'\ua868': 'L'
'\ua869': 'L'
'\ua86a': 'L'
'\ua86b': 'L'
'\ua86c': 'L'
'\ua86d': 'L'
'\ua86e': 'L'
'\ua86f': 'L'
'\ua870': 'L'
'\ua871': 'L'
'\ua872': 'L'
'\ua873': 'L'
'\ua882': 'L'
'\ua883': 'L'
'\ua884': 'L'
'\ua885': 'L'
'\ua886': 'L'
'\ua887': 'L'
'\ua888': 'L'
'\ua889': 'L'
'\ua88a': 'L'
'\ua88b': 'L'
'\ua88c': 'L'
'\ua88d': 'L'
'\ua88e': 'L'
'\ua88f': 'L'
'\ua890': 'L'
'\ua891': 'L'
'\ua892': 'L'
'\ua893': 'L'
'\ua894': 'L'
'\ua895': 'L'
'\ua896': 'L'
'\ua897': 'L'
'\ua898': 'L'
'\ua899': 'L'
'\ua89a': 'L'
'\ua89b': 'L'
'\ua89c': 'L'
'\ua89d': 'L'
'\ua89e': 'L'
'\ua89f': 'L'
'\ua8a0': 'L'
'\ua8a1': 'L'
'\ua8a2': 'L'
'\ua8a3': 'L'
'\ua8a4': 'L'
'\ua8a5': 'L'
'\ua8a6': 'L'
'\ua8a7': 'L'
'\ua8a8': 'L'
'\ua8a9': 'L'
'\ua8aa': 'L'
'\ua8ab': 'L'
'\ua8ac': 'L'
'\ua8ad': 'L'
'\ua8ae': 'L'
'\ua8af': 'L'
'\ua8b0': 'L'
'\ua8b1': 'L'
'\ua8b2': 'L'
'\ua8b3': 'L'
'\ua8d0': 'N'
'\ua8d1': 'N'
'\ua8d2': 'N'
'\ua8d3': 'N'
'\ua8d4': 'N'
'\ua8d5': 'N'
'\ua8d6': 'N'
'\ua8d7': 'N'
'\ua8d8': 'N'
'\ua8d9': 'N'
'\ua8f2': 'L'
'\ua8f3': 'L'
'\ua8f4': 'L'
'\ua8f5': 'L'
'\ua8f6': 'L'
'\ua8f7': 'L'
'\ua8fb': 'L'
'\ua8fd': 'L'
'\ua900': 'N'
'\ua901': 'N'
'\ua902': 'N'
'\ua903': 'N'
'\ua904': 'N'
'\ua905': 'N'
'\ua906': 'N'
'\ua907': 'N'
'\ua908': 'N'
'\ua909': 'N'
'\ua90a': 'L'
'\ua90b': 'L'
'\ua90c': 'L'
'\ua90d': 'L'
'\ua90e': 'L'
'\ua90f': 'L'
'\ua910': 'L'
'\ua911': 'L'
'\ua912': 'L'
'\ua913': 'L'
'\ua914': 'L'
'\ua915': 'L'
'\ua916': 'L'
'\ua917': 'L'
'\ua918': 'L'
'\ua919': 'L'
'\ua91a': 'L'
'\ua91b': 'L'
'\ua91c': 'L'
'\ua91d': 'L'
'\ua91e': 'L'
'\ua91f': 'L'
'\ua920': 'L'
'\ua921': 'L'
'\ua922': 'L'
'\ua923': 'L'
'\ua924': 'L'
'\ua925': 'L'
'\ua930': 'L'
'\ua931': 'L'
'\ua932': 'L'
'\ua933': 'L'
'\ua934': 'L'
'\ua935': 'L'
'\ua936': 'L'
'\ua937': 'L'
'\ua938': 'L'
'\ua939': 'L'
'\ua93a': 'L'
'\ua93b': 'L'
'\ua93c': 'L'
'\ua93d': 'L'
'\ua93e': 'L'
'\ua93f': 'L'
'\ua940': 'L'
'\ua941': 'L'
'\ua942': 'L'
'\ua943': 'L'
'\ua944': 'L'
'\ua945': 'L'
'\ua946': 'L'
'\ua960': 'L'
'\ua961': 'L'
'\ua962': 'L'
'\ua963': 'L'
'\ua964': 'L'
'\ua965': 'L'
'\ua966': 'L'
'\ua967': 'L'
'\ua968': 'L'
'\ua969': 'L'
'\ua96a': 'L'
'\ua96b': 'L'
'\ua96c': 'L'
'\ua96d': 'L'
'\ua96e': 'L'
'\ua96f': 'L'
'\ua970': 'L'
'\ua971': 'L'
'\ua972': 'L'
'\ua973': 'L'
'\ua974': 'L'
'\ua975': 'L'
'\ua976': 'L'
'\ua977': 'L'
'\ua978': 'L'
'\ua979': 'L'
'\ua97a': 'L'
'\ua97b': 'L'
'\ua97c': 'L'
'\ua984': 'L'
'\ua985': 'L'
'\ua986': 'L'
'\ua987': 'L'
'\ua988': 'L'
'\ua989': 'L'
'\ua98a': 'L'
'\ua98b': 'L'
'\ua98c': 'L'
'\ua98d': 'L'
'\ua98e': 'L'
'\ua98f': 'L'
'\ua990': 'L'
'\ua991': 'L'
'\ua992': 'L'
'\ua993': 'L'
'\ua994': 'L'
'\ua995': 'L'
'\ua996': 'L'
'\ua997': 'L'
'\ua998': 'L'
'\ua999': 'L'
'\ua99a': 'L'
'\ua99b': 'L'
'\ua99c': 'L'
'\ua99d': 'L'
'\ua99e': 'L'
'\ua99f': 'L'
'\ua9a0': 'L'
'\ua9a1': 'L'
'\ua9a2': 'L'
'\ua9a3': 'L'
'\ua9a4': 'L'
'\ua9a5': 'L'
'\ua9a6': 'L'
'\ua9a7': 'L'
'\ua9a8': 'L'
'\ua9a9': 'L'
'\ua9aa': 'L'
'\ua9ab': 'L'
'\ua9ac': 'L'
'\ua9ad': 'L'
'\ua9ae': 'L'
'\ua9af': 'L'
'\ua9b0': 'L'
'\ua9b1': 'L'
'\ua9b2': 'L'
'\ua9cf': 'L'
'\ua9d0': 'N'
'\ua9d1': 'N'
'\ua9d2': 'N'
'\ua9d3': 'N'
'\ua9d4': 'N'
'\ua9d5': 'N'
'\ua9d6': 'N'
'\ua9d7': 'N'
'\ua9d8': 'N'
'\ua9d9': 'N'
'\ua9e0': 'L'
'\ua9e1': 'L'
'\ua9e2': 'L'
'\ua9e3': 'L'
'\ua9e4': 'L'
'\ua9e6': 'L'
'\ua9e7': 'L'
'\ua9e8': 'L'
'\ua9e9': 'L'
'\ua9ea': 'L'
'\ua9eb': 'L'
'\ua9ec': 'L'
'\ua9ed': 'L'
'\ua9ee': 'L'
'\ua9ef': 'L'
'\ua9f0': 'N'
'\ua9f1': 'N'
'\ua9f2': 'N'
'\ua9f3': 'N'
'\ua9f4': 'N'
'\ua9f5': 'N'
'\ua9f6': 'N'
'\ua9f7': 'N'
'\ua9f8': 'N'
'\ua9f9': 'N'
'\ua9fa': 'L'
'\ua9fb': 'L'
'\ua9fc': 'L'
'\ua9fd': 'L'
'\ua9fe': 'L'
'\uaa00': 'L'
'\uaa01': 'L'
'\uaa02': 'L'
'\uaa03': 'L'
'\uaa04': 'L'
'\uaa05': 'L'
'\uaa06': 'L'
'\uaa07': 'L'
'\uaa08': 'L'
'\uaa09': 'L'
'\uaa0a': 'L'
'\uaa0b': 'L'
'\uaa0c': 'L'
'\uaa0d': 'L'
'\uaa0e': 'L'
'\uaa0f': 'L'
'\uaa10': 'L'
'\uaa11': 'L'
'\uaa12': 'L'
'\uaa13': 'L'
'\uaa14': 'L'
'\uaa15': 'L'
'\uaa16': 'L'
'\uaa17': 'L'
'\uaa18': 'L'
'\uaa19': 'L'
'\uaa1a': 'L'
'\uaa1b': 'L'
'\uaa1c': 'L'
'\uaa1d': 'L'
'\uaa1e': 'L'
'\uaa1f': 'L'
'\uaa20': 'L'
'\uaa21': 'L'
'\uaa22': 'L'
'\uaa23': 'L'
'\uaa24': 'L'
'\uaa25': 'L'
'\uaa26': 'L'
'\uaa27': 'L'
'\uaa28': 'L'
'\uaa40': 'L'
'\uaa41': 'L'
'\uaa42': 'L'
'\uaa44': 'L'
'\uaa45': 'L'
'\uaa46': 'L'
'\uaa47': 'L'
'\uaa48': 'L'
'\uaa49': 'L'
'\uaa4a': 'L'
'\uaa4b': 'L'
'\uaa50': 'N'
'\uaa51': 'N'
'\uaa52': 'N'
'\uaa53': 'N'
'\uaa54': 'N'
'\uaa55': 'N'
'\uaa56': 'N'
'\uaa57': 'N'
'\uaa58': 'N'
'\uaa59': 'N'
'\uaa60': 'L'
'\uaa61': 'L'
'\uaa62': 'L'
'\uaa63': 'L'
'\uaa64': 'L'
'\uaa65': 'L'
'\uaa66': 'L'
'\uaa67': 'L'
'\uaa68': 'L'
'\uaa69': 'L'
'\uaa6a': 'L'
'\uaa6b': 'L'
'\uaa6c': 'L'
'\uaa6d': 'L'
'\uaa6e': 'L'
'\uaa6f': 'L'
'\uaa70': 'L'
'\uaa71': 'L'
'\uaa72': 'L'
'\uaa73': 'L'
'\uaa74': 'L'
'\uaa75': 'L'
'\uaa76': 'L'
'\uaa7a': 'L'
'\uaa7e': 'L'
'\uaa7f': 'L'
'\uaa80': 'L'
'\uaa81': 'L'
'\uaa82': 'L'
'\uaa83': 'L'
'\uaa84': 'L'
'\uaa85': 'L'
'\uaa86': 'L'
'\uaa87': 'L'
'\uaa88': 'L'
'\uaa89': 'L'
'\uaa8a': 'L'
'\uaa8b': 'L'
'\uaa8c': 'L'
'\uaa8d': 'L'
'\uaa8e': 'L'
'\uaa8f': 'L'
'\uaa90': 'L'
'\uaa91': 'L'
'\uaa92': 'L'
'\uaa93': 'L'
'\uaa94': 'L'
'\uaa95': 'L'
'\uaa96': 'L'
'\uaa97': 'L'
'\uaa98': 'L'
'\uaa99': 'L'
'\uaa9a': 'L'
'\uaa9b': 'L'
'\uaa9c': 'L'
'\uaa9d': 'L'
'\uaa9e': 'L'
'\uaa9f': 'L'
'\uaaa0': 'L'
'\uaaa1': 'L'
'\uaaa2': 'L'
'\uaaa3': 'L'
'\uaaa4': 'L'
'\uaaa5': 'L'
'\uaaa6': 'L'
'\uaaa7': 'L'
'\uaaa8': 'L'
'\uaaa9': 'L'
'\uaaaa': 'L'
'\uaaab': 'L'
'\uaaac': 'L'
'\uaaad': 'L'
'\uaaae': 'L'
'\uaaaf': 'L'
'\uaab1': 'L'
'\uaab5': 'L'
'\uaab6': 'L'
'\uaab9': 'L'
'\uaaba': 'L'
'\uaabb': 'L'
'\uaabc': 'L'
'\uaabd': 'L'
'\uaac0': 'L'
'\uaac2': 'L'
'\uaadb': 'L'
'\uaadc': 'L'
'\uaadd': 'L'
'\uaae0': 'L'
'\uaae1': 'L'
'\uaae2': 'L'
'\uaae3': 'L'
'\uaae4': 'L'
'\uaae5': 'L'
'\uaae6': 'L'
'\uaae7': 'L'
'\uaae8': 'L'
'\uaae9': 'L'
'\uaaea': 'L'
'\uaaf2': 'L'
'\uaaf3': 'L'
'\uaaf4': 'L'
'\uab01': 'L'
'\uab02': 'L'
'\uab03': 'L'
'\uab04': 'L'
'\uab05': 'L'
'\uab06': 'L'
'\uab09': 'L'
'\uab0a': 'L'
'\uab0b': 'L'
'\uab0c': 'L'
'\uab0d': 'L'
'\uab0e': 'L'
'\uab11': 'L'
'\uab12': 'L'
'\uab13': 'L'
'\uab14': 'L'
'\uab15': 'L'
'\uab16': 'L'
'\uab20': 'L'
'\uab21': 'L'
'\uab22': 'L'
'\uab23': 'L'
'\uab24': 'L'
'\uab25': 'L'
'\uab26': 'L'
'\uab28': 'L'
'\uab29': 'L'
'\uab2a': 'L'
'\uab2b': 'L'
'\uab2c': 'L'
'\uab2d': 'L'
'\uab2e': 'L'
'\uab30': 'L'
'\uab31': 'L'
'\uab32': 'L'
'\uab33': 'L'
'\uab34': 'L'
'\uab35': 'L'
'\uab36': 'L'
'\uab37': 'L'
'\uab38': 'L'
'\uab39': 'L'
'\uab3a': 'L'
'\uab3b': 'L'
'\uab3c': 'L'
'\uab3d': 'L'
'\uab3e': 'L'
'\uab3f': 'L'
'\uab40': 'L'
'\uab41': 'L'
'\uab42': 'L'
'\uab43': 'L'
'\uab44': 'L'
'\uab45': 'L'
'\uab46': 'L'
'\uab47': 'L'
'\uab48': 'L'
'\uab49': 'L'
'\uab4a': 'L'
'\uab4b': 'L'
'\uab4c': 'L'
'\uab4d': 'L'
'\uab4e': 'L'
'\uab4f': 'L'
'\uab50': 'L'
'\uab51': 'L'
'\uab52': 'L'
'\uab53': 'L'
'\uab54': 'L'
'\uab55': 'L'
'\uab56': 'L'
'\uab57': 'L'
'\uab58': 'L'
'\uab59': 'L'
'\uab5a': 'L'
'\uab5c': 'L'
'\uab5d': 'L'
'\uab5e': 'L'
'\uab5f': 'L'
'\uab60': 'L'
'\uab61': 'L'
'\uab62': 'L'
'\uab63': 'L'
'\uab64': 'L'
'\uab65': 'L'
'\uab70': 'L'
'\uab71': 'L'
'\uab72': 'L'
'\uab73': 'L'
'\uab74': 'L'
'\uab75': 'L'
'\uab76': 'L'
'\uab77': 'L'
'\uab78': 'L'
'\uab79': 'L'
'\uab7a': 'L'
'\uab7b': 'L'
'\uab7c': 'L'
'\uab7d': 'L'
'\uab7e': 'L'
'\uab7f': 'L'
'\uab80': 'L'
'\uab81': 'L'
'\uab82': 'L'
'\uab83': 'L'
'\uab84': 'L'
'\uab85': 'L'
'\uab86': 'L'
'\uab87': 'L'
'\uab88': 'L'
'\uab89': 'L'
'\uab8a': 'L'
'\uab8b': 'L'
'\uab8c': 'L'
'\uab8d': 'L'
'\uab8e': 'L'
'\uab8f': 'L'
'\uab90': 'L'
'\uab91': 'L'
'\uab92': 'L'
'\uab93': 'L'
'\uab94': 'L'
'\uab95': 'L'
'\uab96': 'L'
'\uab97': 'L'
'\uab98': 'L'
'\uab99': 'L'
'\uab9a': 'L'
'\uab9b': 'L'
'\uab9c': 'L'
'\uab9d': 'L'
'\uab9e': 'L'
'\uab9f': 'L'
'\uaba0': 'L'
'\uaba1': 'L'
'\uaba2': 'L'
'\uaba3': 'L'
'\uaba4': 'L'
'\uaba5': 'L'
'\uaba6': 'L'
'\uaba7': 'L'
'\uaba8': 'L'
'\uaba9': 'L'
'\uabaa': 'L'
'\uabab': 'L'
'\uabac': 'L'
'\uabad': 'L'
'\uabae': 'L'
'\uabaf': 'L'
'\uabb0': 'L'
'\uabb1': 'L'
'\uabb2': 'L'
'\uabb3': 'L'
'\uabb4': 'L'
'\uabb5': 'L'
'\uabb6': 'L'
'\uabb7': 'L'
'\uabb8': 'L'
'\uabb9': 'L'
'\uabba': 'L'
'\uabbb': 'L'
'\uabbc': 'L'
'\uabbd': 'L'
'\uabbe': 'L'
'\uabbf': 'L'
'\uabc0': 'L'
'\uabc1': 'L'
'\uabc2': 'L'
'\uabc3': 'L'
'\uabc4': 'L'
'\uabc5': 'L'
'\uabc6': 'L'
'\uabc7': 'L'
'\uabc8': 'L'
'\uabc9': 'L'
'\uabca': 'L'
'\uabcb': 'L'
'\uabcc': 'L'
'\uabcd': 'L'
'\uabce': 'L'
'\uabcf': 'L'
'\uabd0': 'L'
'\uabd1': 'L'
'\uabd2': 'L'
'\uabd3': 'L'
'\uabd4': 'L'
'\uabd5': 'L'
'\uabd6': 'L'
'\uabd7': 'L'
'\uabd8': 'L'
'\uabd9': 'L'
'\uabda': 'L'
'\uabdb': 'L'
'\uabdc': 'L'
'\uabdd': 'L'
'\uabde': 'L'
'\uabdf': 'L'
'\uabe0': 'L'
'\uabe1': 'L'
'\uabe2': 'L'
'\uabf0': 'N'
'\uabf1': 'N'
'\uabf2': 'N'
'\uabf3': 'N'
'\uabf4': 'N'
'\uabf5': 'N'
'\uabf6': 'N'
'\uabf7': 'N'
'\uabf8': 'N'
'\uabf9': 'N'
'\ud7b0': 'L'
'\ud7b1': 'L'
'\ud7b2': 'L'
'\ud7b3': 'L'
'\ud7b4': 'L'
'\ud7b5': 'L'
'\ud7b6': 'L'
'\ud7b7': 'L'
'\ud7b8': 'L'
'\ud7b9': 'L'
'\ud7ba': 'L'
'\ud7bb': 'L'
'\ud7bc': 'L'
'\ud7bd': 'L'
'\ud7be': 'L'
'\ud7bf': 'L'
'\ud7c0': 'L'
'\ud7c1': 'L'
'\ud7c2': 'L'
'\ud7c3': 'L'
'\ud7c4': 'L'
'\ud7c5': 'L'
'\ud7c6': 'L'
'\ud7cb': 'L'
'\ud7cc': 'L'
'\ud7cd': 'L'
'\ud7ce': 'L'
'\ud7cf': 'L'
'\ud7d0': 'L'
'\ud7d1': 'L'
'\ud7d2': 'L'
'\ud7d3': 'L'
'\ud7d4': 'L'
'\ud7d5': 'L'
'\ud7d6': 'L'
'\ud7d7': 'L'
'\ud7d8': 'L'
'\ud7d9': 'L'
'\ud7da': 'L'
'\ud7db': 'L'
'\ud7dc': 'L'
'\ud7dd': 'L'
'\ud7de': 'L'
'\ud7df': 'L'
'\ud7e0': 'L'
'\ud7e1': 'L'
'\ud7e2': 'L'
'\ud7e3': 'L'
'\ud7e4': 'L'
'\ud7e5': 'L'
'\ud7e6': 'L'
'\ud7e7': 'L'
'\ud7e8': 'L'
'\ud7e9': 'L'
'\ud7ea': 'L'
'\ud7eb': 'L'
'\ud7ec': 'L'
'\ud7ed': 'L'
'\ud7ee': 'L'
'\ud7ef': 'L'
'\ud7f0': 'L'
'\ud7f1': 'L'
'\ud7f2': 'L'
'\ud7f3': 'L'
'\ud7f4': 'L'
'\ud7f5': 'L'
'\ud7f6': 'L'
'\ud7f7': 'L'
'\ud7f8': 'L'
'\ud7f9': 'L'
'\ud7fa': 'L'
'\ud7fb': 'L'
'\uf900': 'L'
'\uf901': 'L'
'\uf902': 'L'
'\uf903': 'L'
'\uf904': 'L'
'\uf905': 'L'
'\uf906': 'L'
'\uf907': 'L'
'\uf908': 'L'
'\uf909': 'L'
'\uf90a': 'L'
'\uf90b': 'L'
'\uf90c': 'L'
'\uf90d': 'L'
'\uf90e': 'L'
'\uf90f': 'L'
'\uf910': 'L'
'\uf911': 'L'
'\uf912': 'L'
'\uf913': 'L'
'\uf914': 'L'
'\uf915': 'L'
'\uf916': 'L'
'\uf917': 'L'
'\uf918': 'L'
'\uf919': 'L'
'\uf91a': 'L'
'\uf91b': 'L'
'\uf91c': 'L'
'\uf91d': 'L'
'\uf91e': 'L'
'\uf91f': 'L'
'\uf920': 'L'
'\uf921': 'L'
'\uf922': 'L'
'\uf923': 'L'
'\uf924': 'L'
'\uf925': 'L'
'\uf926': 'L'
'\uf927': 'L'
'\uf928': 'L'
'\uf929': 'L'
'\uf92a': 'L'
'\uf92b': 'L'
'\uf92c': 'L'
'\uf92d': 'L'
'\uf92e': 'L'
'\uf92f': 'L'
'\uf930': 'L'
'\uf931': 'L'
'\uf932': 'L'
'\uf933': 'L'
'\uf934': 'L'
'\uf935': 'L'
'\uf936': 'L'
'\uf937': 'L'
'\uf938': 'L'
'\uf939': 'L'
'\uf93a': 'L'
'\uf93b': 'L'
'\uf93c': 'L'
'\uf93d': 'L'
'\uf93e': 'L'
'\uf93f': 'L'
'\uf940': 'L'
'\uf941': 'L'
'\uf942': 'L'
'\uf943': 'L'
'\uf944': 'L'
'\uf945': 'L'
'\uf946': 'L'
'\uf947': 'L'
'\uf948': 'L'
'\uf949': 'L'
'\uf94a': 'L'
'\uf94b': 'L'
'\uf94c': 'L'
'\uf94d': 'L'
'\uf94e': 'L'
'\uf94f': 'L'
'\uf950': 'L'
'\uf951': 'L'
'\uf952': 'L'
'\uf953': 'L'
'\uf954': 'L'
'\uf955': 'L'
'\uf956': 'L'
'\uf957': 'L'
'\uf958': 'L'
'\uf959': 'L'
'\uf95a': 'L'
'\uf95b': 'L'
'\uf95c': 'L'
'\uf95d': 'L'
'\uf95e': 'L'
'\uf95f': 'L'
'\uf960': 'L'
'\uf961': 'L'
'\uf962': 'L'
'\uf963': 'L'
'\uf964': 'L'
'\uf965': 'L'
'\uf966': 'L'
'\uf967': 'L'
'\uf968': 'L'
'\uf969': 'L'
'\uf96a': 'L'
'\uf96b': 'L'
'\uf96c': 'L'
'\uf96d': 'L'
'\uf96e': 'L'
'\uf96f': 'L'
'\uf970': 'L'
'\uf971': 'L'
'\uf972': 'L'
'\uf973': 'L'
'\uf974': 'L'
'\uf975': 'L'
'\uf976': 'L'
'\uf977': 'L'
'\uf978': 'L'
'\uf979': 'L'
'\uf97a': 'L'
'\uf97b': 'L'
'\uf97c': 'L'
'\uf97d': 'L'
'\uf97e': 'L'
'\uf97f': 'L'
'\uf980': 'L'
'\uf981': 'L'
'\uf982': 'L'
'\uf983': 'L'
'\uf984': 'L'
'\uf985': 'L'
'\uf986': 'L'
'\uf987': 'L'
'\uf988': 'L'
'\uf989': 'L'
'\uf98a': 'L'
'\uf98b': 'L'
'\uf98c': 'L'
'\uf98d': 'L'
'\uf98e': 'L'
'\uf98f': 'L'
'\uf990': 'L'
'\uf991': 'L'
'\uf992': 'L'
'\uf993': 'L'
'\uf994': 'L'
'\uf995': 'L'
'\uf996': 'L'
'\uf997': 'L'
'\uf998': 'L'
'\uf999': 'L'
'\uf99a': 'L'
'\uf99b': 'L'
'\uf99c': 'L'
'\uf99d': 'L'
'\uf99e': 'L'
'\uf99f': 'L'
'\uf9a0': 'L'
'\uf9a1': 'L'
'\uf9a2': 'L'
'\uf9a3': 'L'
'\uf9a4': 'L'
'\uf9a5': 'L'
'\uf9a6': 'L'
'\uf9a7': 'L'
'\uf9a8': 'L'
'\uf9a9': 'L'
'\uf9aa': 'L'
'\uf9ab': 'L'
'\uf9ac': 'L'
'\uf9ad': 'L'
'\uf9ae': 'L'
'\uf9af': 'L'
'\uf9b0': 'L'
'\uf9b1': 'L'
'\uf9b2': 'L'
'\uf9b3': 'L'
'\uf9b4': 'L'
'\uf9b5': 'L'
'\uf9b6': 'L'
'\uf9b7': 'L'
'\uf9b8': 'L'
'\uf9b9': 'L'
'\uf9ba': 'L'
'\uf9bb': 'L'
'\uf9bc': 'L'
'\uf9bd': 'L'
'\uf9be': 'L'
'\uf9bf': 'L'
'\uf9c0': 'L'
'\uf9c1': 'L'
'\uf9c2': 'L'
'\uf9c3': 'L'
'\uf9c4': 'L'
'\uf9c5': 'L'
'\uf9c6': 'L'
'\uf9c7': 'L'
'\uf9c8': 'L'
'\uf9c9': 'L'
'\uf9ca': 'L'
'\uf9cb': 'L'
'\uf9cc': 'L'
'\uf9cd': 'L'
'\uf9ce': 'L'
'\uf9cf': 'L'
'\uf9d0': 'L'
'\uf9d1': 'L'
'\uf9d2': 'L'
'\uf9d3': 'L'
'\uf9d4': 'L'
'\uf9d5': 'L'
'\uf9d6': 'L'
'\uf9d7': 'L'
'\uf9d8': 'L'
'\uf9d9': 'L'
'\uf9da': 'L'
'\uf9db': 'L'
'\uf9dc': 'L'
'\uf9dd': 'L'
'\uf9de': 'L'
'\uf9df': 'L'
'\uf9e0': 'L'
'\uf9e1': 'L'
'\uf9e2': 'L'
'\uf9e3': 'L'
'\uf9e4': 'L'
'\uf9e5': 'L'
'\uf9e6': 'L'
'\uf9e7': 'L'
'\uf9e8': 'L'
'\uf9e9': 'L'
'\uf9ea': 'L'
'\uf9eb': 'L'
'\uf9ec': 'L'
'\uf9ed': 'L'
'\uf9ee': 'L'
'\uf9ef': 'L'
'\uf9f0': 'L'
'\uf9f1': 'L'
'\uf9f2': 'L'
'\uf9f3': 'L'
'\uf9f4': 'L'
'\uf9f5': 'L'
'\uf9f6': 'L'
'\uf9f7': 'L'
'\uf9f8': 'L'
'\uf9f9': 'L'
'\uf9fa': 'L'
'\uf9fb': 'L'
'\uf9fc': 'L'
'\uf9fd': 'L'
'\uf9fe': 'L'
'\uf9ff': 'L'
'\ufa00': 'L'
'\ufa01': 'L'
'\ufa02': 'L'
'\ufa03': 'L'
'\ufa04': 'L'
'\ufa05': 'L'
'\ufa06': 'L'
'\ufa07': 'L'
'\ufa08': 'L'
'\ufa09': 'L'
'\ufa0a': 'L'
'\ufa0b': 'L'
'\ufa0c': 'L'
'\ufa0d': 'L'
'\ufa0e': 'L'
'\ufa0f': 'L'
'\ufa10': 'L'
'\ufa11': 'L'
'\ufa12': 'L'
'\ufa13': 'L'
'\ufa14': 'L'
'\ufa15': 'L'
'\ufa16': 'L'
'\ufa17': 'L'
'\ufa18': 'L'
'\ufa19': 'L'
'\ufa1a': 'L'
'\ufa1b': 'L'
'\ufa1c': 'L'
'\ufa1d': 'L'
'\ufa1e': 'L'
'\ufa1f': 'L'
'\ufa20': 'L'
'\ufa21': 'L'
'\ufa22': 'L'
'\ufa23': 'L'
'\ufa24': 'L'
'\ufa25': 'L'
'\ufa26': 'L'
'\ufa27': 'L'
'\ufa28': 'L'
'\ufa29': 'L'
'\ufa2a': 'L'
'\ufa2b': 'L'
'\ufa2c': 'L'
'\ufa2d': 'L'
'\ufa2e': 'L'
'\ufa2f': 'L'
'\ufa30': 'L'
'\ufa31': 'L'
'\ufa32': 'L'
'\ufa33': 'L'
'\ufa34': 'L'
'\ufa35': 'L'
'\ufa36': 'L'
'\ufa37': 'L'
'\ufa38': 'L'
'\ufa39': 'L'
'\ufa3a': 'L'
'\ufa3b': 'L'
'\ufa3c': 'L'
'\ufa3d': 'L'
'\ufa3e': 'L'
'\ufa3f': 'L'
'\ufa40': 'L'
'\ufa41': 'L'
'\ufa42': 'L'
'\ufa43': 'L'
'\ufa44': 'L'
'\ufa45': 'L'
'\ufa46': 'L'
'\ufa47': 'L'
'\ufa48': 'L'
'\ufa49': 'L'
'\ufa4a': 'L'
'\ufa4b': 'L'
'\ufa4c': 'L'
'\ufa4d': 'L'
'\ufa4e': 'L'
'\ufa4f': 'L'
'\ufa50': 'L'
'\ufa51': 'L'
'\ufa52': 'L'
'\ufa53': 'L'
'\ufa54': 'L'
'\ufa55': 'L'
'\ufa56': 'L'
'\ufa57': 'L'
'\ufa58': 'L'
'\ufa59': 'L'
'\ufa5a': 'L'
'\ufa5b': 'L'
'\ufa5c': 'L'
'\ufa5d': 'L'
'\ufa5e': 'L'
'\ufa5f': 'L'
'\ufa60': 'L'
'\ufa61': 'L'
'\ufa62': 'L'
'\ufa63': 'L'
'\ufa64': 'L'
'\ufa65': 'L'
'\ufa66': 'L'
'\ufa67': 'L'
'\ufa68': 'L'
'\ufa69': 'L'
'\ufa6a': 'L'
'\ufa6b': 'L'
'\ufa6c': 'L'
'\ufa6d': 'L'
'\ufa70': 'L'
'\ufa71': 'L'
'\ufa72': 'L'
'\ufa73': 'L'
'\ufa74': 'L'
'\ufa75': 'L'
'\ufa76': 'L'
'\ufa77': 'L'
'\ufa78': 'L'
'\ufa79': 'L'
'\ufa7a': 'L'
'\ufa7b': 'L'
'\ufa7c': 'L'
'\ufa7d': 'L'
'\ufa7e': 'L'
'\ufa7f': 'L'
'\ufa80': 'L'
'\ufa81': 'L'
'\ufa82': 'L'
'\ufa83': 'L'
'\ufa84': 'L'
'\ufa85': 'L'
'\ufa86': 'L'
'\ufa87': 'L'
'\ufa88': 'L'
'\ufa89': 'L'
'\ufa8a': 'L'
'\ufa8b': 'L'
'\ufa8c': 'L'
'\ufa8d': 'L'
'\ufa8e': 'L'
'\ufa8f': 'L'
'\ufa90': 'L'
'\ufa91': 'L'
'\ufa92': 'L'
'\ufa93': 'L'
'\ufa94': 'L'
'\ufa95': 'L'
'\ufa96': 'L'
'\ufa97': 'L'
'\ufa98': 'L'
'\ufa99': 'L'
'\ufa9a': 'L'
'\ufa9b': 'L'
'\ufa9c': 'L'
'\ufa9d': 'L'
'\ufa9e': 'L'
'\ufa9f': 'L'
'\ufaa0': 'L'
'\ufaa1': 'L'
'\ufaa2': 'L'
'\ufaa3': 'L'
'\ufaa4': 'L'
'\ufaa5': 'L'
'\ufaa6': 'L'
'\ufaa7': 'L'
'\ufaa8': 'L'
'\ufaa9': 'L'
'\ufaaa': 'L'
'\ufaab': 'L'
'\ufaac': 'L'
'\ufaad': 'L'
'\ufaae': 'L'
'\ufaaf': 'L'
'\ufab0': 'L'
'\ufab1': 'L'
'\ufab2': 'L'
'\ufab3': 'L'
'\ufab4': 'L'
'\ufab5': 'L'
'\ufab6': 'L'
'\ufab7': 'L'
'\ufab8': 'L'
'\ufab9': 'L'
'\ufaba': 'L'
'\ufabb': 'L'
'\ufabc': 'L'
'\ufabd': 'L'
'\ufabe': 'L'
'\ufabf': 'L'
'\ufac0': 'L'
'\ufac1': 'L'
'\ufac2': 'L'
'\ufac3': 'L'
'\ufac4': 'L'
'\ufac5': 'L'
'\ufac6': 'L'
'\ufac7': 'L'
'\ufac8': 'L'
'\ufac9': 'L'
'\ufaca': 'L'
'\ufacb': 'L'
'\ufacc': 'L'
'\ufacd': 'L'
'\uface': 'L'
'\ufacf': 'L'
'\ufad0': 'L'
'\ufad1': 'L'
'\ufad2': 'L'
'\ufad3': 'L'
'\ufad4': 'L'
'\ufad5': 'L'
'\ufad6': 'L'
'\ufad7': 'L'
'\ufad8': 'L'
'\ufad9': 'L'
'\ufb00': 'L'
'\ufb01': 'L'
'\ufb02': 'L'
'\ufb03': 'L'
'\ufb04': 'L'
'\ufb05': 'L'
'\ufb06': 'L'
'\ufb13': 'L'
'\ufb14': 'L'
'\ufb15': 'L'
'\ufb16': 'L'
'\ufb17': 'L'
'\ufb1d': 'L'
'\ufb1f': 'L'
'\ufb20': 'L'
'\ufb21': 'L'
'\ufb22': 'L'
'\ufb23': 'L'
'\ufb24': 'L'
'\ufb25': 'L'
'\ufb26': 'L'
'\ufb27': 'L'
'\ufb28': 'L'
'\ufb2a': 'L'
'\ufb2b': 'L'
'\ufb2c': 'L'
'\ufb2d': 'L'
'\ufb2e': 'L'
'\ufb2f': 'L'
'\ufb30': 'L'
'\ufb31': 'L'
'\ufb32': 'L'
'\ufb33': 'L'
'\ufb34': 'L'
'\ufb35': 'L'
'\ufb36': 'L'
'\ufb38': 'L'
'\ufb39': 'L'
'\ufb3a': 'L'
'\ufb3b': 'L'
'\ufb3c': 'L'
'\ufb3e': 'L'
'\ufb40': 'L'
'\ufb41': 'L'
'\ufb43': 'L'
'\ufb44': 'L'
'\ufb46': 'L'
'\ufb47': 'L'
'\ufb48': 'L'
'\ufb49': 'L'
'\ufb4a': 'L'
'\ufb4b': 'L'
'\ufb4c': 'L'
'\ufb4d': 'L'
'\ufb4e': 'L'
'\ufb4f': 'L'
'\ufb50': 'L'
'\ufb51': 'L'
'\ufb52': 'L'
'\ufb53': 'L'
'\ufb54': 'L'
'\ufb55': 'L'
'\ufb56': 'L'
'\ufb57': 'L'
'\ufb58': 'L'
'\ufb59': 'L'
'\ufb5a': 'L'
'\ufb5b': 'L'
'\ufb5c': 'L'
'\ufb5d': 'L'
'\ufb5e': 'L'
'\ufb5f': 'L'
'\ufb60': 'L'
'\ufb61': 'L'
'\ufb62': 'L'
'\ufb63': 'L'
'\ufb64': 'L'
'\ufb65': 'L'
'\ufb66': 'L'
'\ufb67': 'L'
'\ufb68': 'L'
'\ufb69': 'L'
'\ufb6a': 'L'
'\ufb6b': 'L'
'\ufb6c': 'L'
'\ufb6d': 'L'
'\ufb6e': 'L'
'\ufb6f': 'L'
'\ufb70': 'L'
'\ufb71': 'L'
'\ufb72': 'L'
'\ufb73': 'L'
'\ufb74': 'L'
'\ufb75': 'L'
'\ufb76': 'L'
'\ufb77': 'L'
'\ufb78': 'L'
'\ufb79': 'L'
'\ufb7a': 'L'
'\ufb7b': 'L'
'\ufb7c': 'L'
'\ufb7d': 'L'
'\ufb7e': 'L'
'\ufb7f': 'L'
'\ufb80': 'L'
'\ufb81': 'L'
'\ufb82': 'L'
'\ufb83': 'L'
'\ufb84': 'L'
'\ufb85': 'L'
'\ufb86': 'L'
'\ufb87': 'L'
'\ufb88': 'L'
'\ufb89': 'L'
'\ufb8a': 'L'
'\ufb8b': 'L'
'\ufb8c': 'L'
'\ufb8d': 'L'
'\ufb8e': 'L'
'\ufb8f': 'L'
'\ufb90': 'L'
'\ufb91': 'L'
'\ufb92': 'L'
'\ufb93': 'L'
'\ufb94': 'L'
'\ufb95': 'L'
'\ufb96': 'L'
'\ufb97': 'L'
'\ufb98': 'L'
'\ufb99': 'L'
'\ufb9a': 'L'
'\ufb9b': 'L'
'\ufb9c': 'L'
'\ufb9d': 'L'
'\ufb9e': 'L'
'\ufb9f': 'L'
'\ufba0': 'L'
'\ufba1': 'L'
'\ufba2': 'L'
'\ufba3': 'L'
'\ufba4': 'L'
'\ufba5': 'L'
'\ufba6': 'L'
'\ufba7': 'L'
'\ufba8': 'L'
'\ufba9': 'L'
'\ufbaa': 'L'
'\ufbab': 'L'
'\ufbac': 'L'
'\ufbad': 'L'
'\ufbae': 'L'
'\ufbaf': 'L'
'\ufbb0': 'L'
'\ufbb1': 'L'
'\ufbd3': 'L'
'\ufbd4': 'L'
'\ufbd5': 'L'
'\ufbd6': 'L'
'\ufbd7': 'L'
'\ufbd8': 'L'
'\ufbd9': 'L'
'\ufbda': 'L'
'\ufbdb': 'L'
'\ufbdc': 'L'
'\ufbdd': 'L'
'\ufbde': 'L'
'\ufbdf': 'L'
'\ufbe0': 'L'
'\ufbe1': 'L'
'\ufbe2': 'L'
'\ufbe3': 'L'
'\ufbe4': 'L'
'\ufbe5': 'L'
'\ufbe6': 'L'
'\ufbe7': 'L'
'\ufbe8': 'L'
'\ufbe9': 'L'
'\ufbea': 'L'
'\ufbeb': 'L'
'\ufbec': 'L'
'\ufbed': 'L'
'\ufbee': 'L'
'\ufbef': 'L'
'\ufbf0': 'L'
'\ufbf1': 'L'
'\ufbf2': 'L'
'\ufbf3': 'L'
'\ufbf4': 'L'
'\ufbf5': 'L'
'\ufbf6': 'L'
'\ufbf7': 'L'
'\ufbf8': 'L'
'\ufbf9': 'L'
'\ufbfa': 'L'
'\ufbfb': 'L'
'\ufbfc': 'L'
'\ufbfd': 'L'
'\ufbfe': 'L'
'\ufbff': 'L'
'\ufc00': 'L'
'\ufc01': 'L'
'\ufc02': 'L'
'\ufc03': 'L'
'\ufc04': 'L'
'\ufc05': 'L'
'\ufc06': 'L'
'\ufc07': 'L'
'\ufc08': 'L'
'\ufc09': 'L'
'\ufc0a': 'L'
'\ufc0b': 'L'
'\ufc0c': 'L'
'\ufc0d': 'L'
'\ufc0e': 'L'
'\ufc0f': 'L'
'\ufc10': 'L'
'\ufc11': 'L'
'\ufc12': 'L'
'\ufc13': 'L'
'\ufc14': 'L'
'\ufc15': 'L'
'\ufc16': 'L'
'\ufc17': 'L'
'\ufc18': 'L'
'\ufc19': 'L'
'\ufc1a': 'L'
'\ufc1b': 'L'
'\ufc1c': 'L'
'\ufc1d': 'L'
'\ufc1e': 'L'
'\ufc1f': 'L'
'\ufc20': 'L'
'\ufc21': 'L'
'\ufc22': 'L'
'\ufc23': 'L'
'\ufc24': 'L'
'\ufc25': 'L'
'\ufc26': 'L'
'\ufc27': 'L'
'\ufc28': 'L'
'\ufc29': 'L'
'\ufc2a': 'L'
'\ufc2b': 'L'
'\ufc2c': 'L'
'\ufc2d': 'L'
'\ufc2e': 'L'
'\ufc2f': 'L'
'\ufc30': 'L'
'\ufc31': 'L'
'\ufc32': 'L'
'\ufc33': 'L'
'\ufc34': 'L'
'\ufc35': 'L'
'\ufc36': 'L'
'\ufc37': 'L'
'\ufc38': 'L'
'\ufc39': 'L'
'\ufc3a': 'L'
'\ufc3b': 'L'
'\ufc3c': 'L'
'\ufc3d': 'L'
'\ufc3e': 'L'
'\ufc3f': 'L'
'\ufc40': 'L'
'\ufc41': 'L'
'\ufc42': 'L'
'\ufc43': 'L'
'\ufc44': 'L'
'\ufc45': 'L'
'\ufc46': 'L'
'\ufc47': 'L'
'\ufc48': 'L'
'\ufc49': 'L'
'\ufc4a': 'L'
'\ufc4b': 'L'
'\ufc4c': 'L'
'\ufc4d': 'L'
'\ufc4e': 'L'
'\ufc4f': 'L'
'\ufc50': 'L'
'\ufc51': 'L'
'\ufc52': 'L'
'\ufc53': 'L'
'\ufc54': 'L'
'\ufc55': 'L'
'\ufc56': 'L'
'\ufc57': 'L'
'\ufc58': 'L'
'\ufc59': 'L'
'\ufc5a': 'L'
'\ufc5b': 'L'
'\ufc5c': 'L'
'\ufc5d': 'L'
'\ufc5e': 'L'
'\ufc5f': 'L'
'\ufc60': 'L'
'\ufc61': 'L'
'\ufc62': 'L'
'\ufc63': 'L'
'\ufc64': 'L'
'\ufc65': 'L'
'\ufc66': 'L'
'\ufc67': 'L'
'\ufc68': 'L'
'\ufc69': 'L'
'\ufc6a': 'L'
'\ufc6b': 'L'
'\ufc6c': 'L'
'\ufc6d': 'L'
'\ufc6e': 'L'
'\ufc6f': 'L'
'\ufc70': 'L'
'\ufc71': 'L'
'\ufc72': 'L'
'\ufc73': 'L'
'\ufc74': 'L'
'\ufc75': 'L'
'\ufc76': 'L'
'\ufc77': 'L'
'\ufc78': 'L'
'\ufc79': 'L'
'\ufc7a': 'L'
'\ufc7b': 'L'
'\ufc7c': 'L'
'\ufc7d': 'L'
'\ufc7e': 'L'
'\ufc7f': 'L'
'\ufc80': 'L'
'\ufc81': 'L'
'\ufc82': 'L'
'\ufc83': 'L'
'\ufc84': 'L'
'\ufc85': 'L'
'\ufc86': 'L'
'\ufc87': 'L'
'\ufc88': 'L'
'\ufc89': 'L'
'\ufc8a': 'L'
'\ufc8b': 'L'
'\ufc8c': 'L'
'\ufc8d': 'L'
'\ufc8e': 'L'
'\ufc8f': 'L'
'\ufc90': 'L'
'\ufc91': 'L'
'\ufc92': 'L'
'\ufc93': 'L'
'\ufc94': 'L'
'\ufc95': 'L'
'\ufc96': 'L'
'\ufc97': 'L'
'\ufc98': 'L'
'\ufc99': 'L'
'\ufc9a': 'L'
'\ufc9b': 'L'
'\ufc9c': 'L'
'\ufc9d': 'L'
'\ufc9e': 'L'
'\ufc9f': 'L'
'\ufca0': 'L'
'\ufca1': 'L'
'\ufca2': 'L'
'\ufca3': 'L'
'\ufca4': 'L'
'\ufca5': 'L'
'\ufca6': 'L'
'\ufca7': 'L'
'\ufca8': 'L'
'\ufca9': 'L'
'\ufcaa': 'L'
'\ufcab': 'L'
'\ufcac': 'L'
'\ufcad': 'L'
'\ufcae': 'L'
'\ufcaf': 'L'
'\ufcb0': 'L'
'\ufcb1': 'L'
'\ufcb2': 'L'
'\ufcb3': 'L'
'\ufcb4': 'L'
'\ufcb5': 'L'
'\ufcb6': 'L'
'\ufcb7': 'L'
'\ufcb8': 'L'
'\ufcb9': 'L'
'\ufcba': 'L'
'\ufcbb': 'L'
'\ufcbc': 'L'
'\ufcbd': 'L'
'\ufcbe': 'L'
'\ufcbf': 'L'
'\ufcc0': 'L'
'\ufcc1': 'L'
'\ufcc2': 'L'
'\ufcc3': 'L'
'\ufcc4': 'L'
'\ufcc5': 'L'
'\ufcc6': 'L'
'\ufcc7': 'L'
'\ufcc8': 'L'
'\ufcc9': 'L'
'\ufcca': 'L'
'\ufccb': 'L'
'\ufccc': 'L'
'\ufccd': 'L'
'\ufcce': 'L'
'\ufccf': 'L'
'\ufcd0': 'L'
'\ufcd1': 'L'
'\ufcd2': 'L'
'\ufcd3': 'L'
'\ufcd4': 'L'
'\ufcd5': 'L'
'\ufcd6': 'L'
'\ufcd7': 'L'
'\ufcd8': 'L'
'\ufcd9': 'L'
'\ufcda': 'L'
'\ufcdb': 'L'
'\ufcdc': 'L'
'\ufcdd': 'L'
'\ufcde': 'L'
'\ufcdf': 'L'
'\ufce0': 'L'
'\ufce1': 'L'
'\ufce2': 'L'
'\ufce3': 'L'
'\ufce4': 'L'
'\ufce5': 'L'
'\ufce6': 'L'
'\ufce7': 'L'
'\ufce8': 'L'
'\ufce9': 'L'
'\ufcea': 'L'
'\ufceb': 'L'
'\ufcec': 'L'
'\ufced': 'L'
'\ufcee': 'L'
'\ufcef': 'L'
'\ufcf0': 'L'
'\ufcf1': 'L'
'\ufcf2': 'L'
'\ufcf3': 'L'
'\ufcf4': 'L'
'\ufcf5': 'L'
'\ufcf6': 'L'
'\ufcf7': 'L'
'\ufcf8': 'L'
'\ufcf9': 'L'
'\ufcfa': 'L'
'\ufcfb': 'L'
'\ufcfc': 'L'
'\ufcfd': 'L'
'\ufcfe': 'L'
'\ufcff': 'L'
'\ufd00': 'L'
'\ufd01': 'L'
'\ufd02': 'L'
'\ufd03': 'L'
'\ufd04': 'L'
'\ufd05': 'L'
'\ufd06': 'L'
'\ufd07': 'L'
'\ufd08': 'L'
'\ufd09': 'L'
'\ufd0a': 'L'
'\ufd0b': 'L'
'\ufd0c': 'L'
'\ufd0d': 'L'
'\ufd0e': 'L'
'\ufd0f': 'L'
'\ufd10': 'L'
'\ufd11': 'L'
'\ufd12': 'L'
'\ufd13': 'L'
'\ufd14': 'L'
'\ufd15': 'L'
'\ufd16': 'L'
'\ufd17': 'L'
'\ufd18': 'L'
'\ufd19': 'L'
'\ufd1a': 'L'
'\ufd1b': 'L'
'\ufd1c': 'L'
'\ufd1d': 'L'
'\ufd1e': 'L'
'\ufd1f': 'L'
'\ufd20': 'L'
'\ufd21': 'L'
'\ufd22': 'L'
'\ufd23': 'L'
'\ufd24': 'L'
'\ufd25': 'L'
'\ufd26': 'L'
'\ufd27': 'L'
'\ufd28': 'L'
'\ufd29': 'L'
'\ufd2a': 'L'
'\ufd2b': 'L'
'\ufd2c': 'L'
'\ufd2d': 'L'
'\ufd2e': 'L'
'\ufd2f': 'L'
'\ufd30': 'L'
'\ufd31': 'L'
'\ufd32': 'L'
'\ufd33': 'L'
'\ufd34': 'L'
'\ufd35': 'L'
'\ufd36': 'L'
'\ufd37': 'L'
'\ufd38': 'L'
'\ufd39': 'L'
'\ufd3a': 'L'
'\ufd3b': 'L'
'\ufd3c': 'L'
'\ufd3d': 'L'
'\ufd50': 'L'
'\ufd51': 'L'
'\ufd52': 'L'
'\ufd53': 'L'
'\ufd54': 'L'
'\ufd55': 'L'
'\ufd56': 'L'
'\ufd57': 'L'
'\ufd58': 'L'
'\ufd59': 'L'
'\ufd5a': 'L'
'\ufd5b': 'L'
'\ufd5c': 'L'
'\ufd5d': 'L'
'\ufd5e': 'L'
'\ufd5f': 'L'
'\ufd60': 'L'
'\ufd61': 'L'
'\ufd62': 'L'
'\ufd63': 'L'
'\ufd64': 'L'
'\ufd65': 'L'
'\ufd66': 'L'
'\ufd67': 'L'
'\ufd68': 'L'
'\ufd69': 'L'
'\ufd6a': 'L'
'\ufd6b': 'L'
'\ufd6c': 'L'
'\ufd6d': 'L'
'\ufd6e': 'L'
'\ufd6f': 'L'
'\ufd70': 'L'
'\ufd71': 'L'
'\ufd72': 'L'
'\ufd73': 'L'
'\ufd74': 'L'
'\ufd75': 'L'
'\ufd76': 'L'
'\ufd77': 'L'
'\ufd78': 'L'
'\ufd79': 'L'
'\ufd7a': 'L'
'\ufd7b': 'L'
'\ufd7c': 'L'
'\ufd7d': 'L'
'\ufd7e': 'L'
'\ufd7f': 'L'
'\ufd80': 'L'
'\ufd81': 'L'
'\ufd82': 'L'
'\ufd83': 'L'
'\ufd84': 'L'
'\ufd85': 'L'
'\ufd86': 'L'
'\ufd87': 'L'
'\ufd88': 'L'
'\ufd89': 'L'
'\ufd8a': 'L'
'\ufd8b': 'L'
'\ufd8c': 'L'
'\ufd8d': 'L'
'\ufd8e': 'L'
'\ufd8f': 'L'
'\ufd92': 'L'
'\ufd93': 'L'
'\ufd94': 'L'
'\ufd95': 'L'
'\ufd96': 'L'
'\ufd97': 'L'
'\ufd98': 'L'
'\ufd99': 'L'
'\ufd9a': 'L'
'\ufd9b': 'L'
'\ufd9c': 'L'
'\ufd9d': 'L'
'\ufd9e': 'L'
'\ufd9f': 'L'
'\ufda0': 'L'
'\ufda1': 'L'
'\ufda2': 'L'
'\ufda3': 'L'
'\ufda4': 'L'
'\ufda5': 'L'
'\ufda6': 'L'
'\ufda7': 'L'
'\ufda8': 'L'
'\ufda9': 'L'
'\ufdaa': 'L'
'\ufdab': 'L'
'\ufdac': 'L'
'\ufdad': 'L'
'\ufdae': 'L'
'\ufdaf': 'L'
'\ufdb0': 'L'
'\ufdb1': 'L'
'\ufdb2': 'L'
'\ufdb3': 'L'
'\ufdb4': 'L'
'\ufdb5': 'L'
'\ufdb6': 'L'
'\ufdb7': 'L'
'\ufdb8': 'L'
'\ufdb9': 'L'
'\ufdba': 'L'
'\ufdbb': 'L'
'\ufdbc': 'L'
'\ufdbd': 'L'
'\ufdbe': 'L'
'\ufdbf': 'L'
'\ufdc0': 'L'
'\ufdc1': 'L'
'\ufdc2': 'L'
'\ufdc3': 'L'
'\ufdc4': 'L'
'\ufdc5': 'L'
'\ufdc6': 'L'
'\ufdc7': 'L'
'\ufdf0': 'L'
'\ufdf1': 'L'
'\ufdf2': 'L'
'\ufdf3': 'L'
'\ufdf4': 'L'
'\ufdf5': 'L'
'\ufdf6': 'L'
'\ufdf7': 'L'
'\ufdf8': 'L'
'\ufdf9': 'L'
'\ufdfa': 'L'
'\ufdfb': 'L'
'\ufe70': 'L'
'\ufe71': 'L'
'\ufe72': 'L'
'\ufe73': 'L'
'\ufe74': 'L'
'\ufe76': 'L'
'\ufe77': 'L'
'\ufe78': 'L'
'\ufe79': 'L'
'\ufe7a': 'L'
'\ufe7b': 'L'
'\ufe7c': 'L'
'\ufe7d': 'L'
'\ufe7e': 'L'
'\ufe7f': 'L'
'\ufe80': 'L'
'\ufe81': 'L'
'\ufe82': 'L'
'\ufe83': 'L'
'\ufe84': 'L'
'\ufe85': 'L'
'\ufe86': 'L'
'\ufe87': 'L'
'\ufe88': 'L'
'\ufe89': 'L'
'\ufe8a': 'L'
'\ufe8b': 'L'
'\ufe8c': 'L'
'\ufe8d': 'L'
'\ufe8e': 'L'
'\ufe8f': 'L'
'\ufe90': 'L'
'\ufe91': 'L'
'\ufe92': 'L'
'\ufe93': 'L'
'\ufe94': 'L'
'\ufe95': 'L'
'\ufe96': 'L'
'\ufe97': 'L'
'\ufe98': 'L'
'\ufe99': 'L'
'\ufe9a': 'L'
'\ufe9b': 'L'
'\ufe9c': 'L'
'\ufe9d': 'L'
'\ufe9e': 'L'
'\ufe9f': 'L'
'\ufea0': 'L'
'\ufea1': 'L'
'\ufea2': 'L'
'\ufea3': 'L'
'\ufea4': 'L'
'\ufea5': 'L'
'\ufea6': 'L'
'\ufea7': 'L'
'\ufea8': 'L'
'\ufea9': 'L'
'\ufeaa': 'L'
'\ufeab': 'L'
'\ufeac': 'L'
'\ufead': 'L'
'\ufeae': 'L'
'\ufeaf': 'L'
'\ufeb0': 'L'
'\ufeb1': 'L'
'\ufeb2': 'L'
'\ufeb3': 'L'
'\ufeb4': 'L'
'\ufeb5': 'L'
'\ufeb6': 'L'
'\ufeb7': 'L'
'\ufeb8': 'L'
'\ufeb9': 'L'
'\ufeba': 'L'
'\ufebb': 'L'
'\ufebc': 'L'
'\ufebd': 'L'
'\ufebe': 'L'
'\ufebf': 'L'
'\ufec0': 'L'
'\ufec1': 'L'
'\ufec2': 'L'
'\ufec3': 'L'
'\ufec4': 'L'
'\ufec5': 'L'
'\ufec6': 'L'
'\ufec7': 'L'
'\ufec8': 'L'
'\ufec9': 'L'
'\ufeca': 'L'
'\ufecb': 'L'
'\ufecc': 'L'
'\ufecd': 'L'
'\ufece': 'L'
'\ufecf': 'L'
'\ufed0': 'L'
'\ufed1': 'L'
'\ufed2': 'L'
'\ufed3': 'L'
'\ufed4': 'L'
'\ufed5': 'L'
'\ufed6': 'L'
'\ufed7': 'L'
'\ufed8': 'L'
'\ufed9': 'L'
'\ufeda': 'L'
'\ufedb': 'L'
'\ufedc': 'L'
'\ufedd': 'L'
'\ufede': 'L'
'\ufedf': 'L'
'\ufee0': 'L'
'\ufee1': 'L'
'\ufee2': 'L'
'\ufee3': 'L'
'\ufee4': 'L'
'\ufee5': 'L'
'\ufee6': 'L'
'\ufee7': 'L'
'\ufee8': 'L'
'\ufee9': 'L'
'\ufeea': 'L'
'\ufeeb': 'L'
'\ufeec': 'L'
'\ufeed': 'L'
'\ufeee': 'L'
'\ufeef': 'L'
'\ufef0': 'L'
'\ufef1': 'L'
'\ufef2': 'L'
'\ufef3': 'L'
'\ufef4': 'L'
'\ufef5': 'L'
'\ufef6': 'L'
'\ufef7': 'L'
'\ufef8': 'L'
'\ufef9': 'L'
'\ufefa': 'L'
'\ufefb': 'L'
'\ufefc': 'L'
'\uff10': 'N'
'\uff11': 'N'
'\uff12': 'N'
'\uff13': 'N'
'\uff14': 'N'
'\uff15': 'N'
'\uff16': 'N'
'\uff17': 'N'
'\uff18': 'N'
'\uff19': 'N'
'\uff21': 'Lu'
'\uff22': 'Lu'
'\uff23': 'Lu'
'\uff24': 'Lu'
'\uff25': 'Lu'
'\uff26': 'Lu'
'\uff27': 'Lu'
'\uff28': 'Lu'
'\uff29': 'Lu'
'\uff2a': 'Lu'
'\uff2b': 'Lu'
'\uff2c': 'Lu'
'\uff2d': 'Lu'
'\uff2e': 'Lu'
'\uff2f': 'Lu'
'\uff30': 'Lu'
'\uff31': 'Lu'
'\uff32': 'Lu'
'\uff33': 'Lu'
'\uff34': 'Lu'
'\uff35': 'Lu'
'\uff36': 'Lu'
'\uff37': 'Lu'
'\uff38': 'Lu'
'\uff39': 'Lu'
'\uff3a': 'Lu'
'\uff41': 'L'
'\uff42': 'L'
'\uff43': 'L'
'\uff44': 'L'
'\uff45': 'L'
'\uff46': 'L'
'\uff47': 'L'
'\uff48': 'L'
'\uff49': 'L'
'\uff4a': 'L'
'\uff4b': 'L'
'\uff4c': 'L'
'\uff4d': 'L'
'\uff4e': 'L'
'\uff4f': 'L'
'\uff50': 'L'
'\uff51': 'L'
'\uff52': 'L'
'\uff53': 'L'
'\uff54': 'L'
'\uff55': 'L'
'\uff56': 'L'
'\uff57': 'L'
'\uff58': 'L'
'\uff59': 'L'
'\uff5a': 'L'
'\uff66': 'L'
'\uff67': 'L'
'\uff68': 'L'
'\uff69': 'L'
'\uff6a': 'L'
'\uff6b': 'L'
'\uff6c': 'L'
'\uff6d': 'L'
'\uff6e': 'L'
'\uff6f': 'L'
'\uff70': 'L'
'\uff71': 'L'
'\uff72': 'L'
'\uff73': 'L'
'\uff74': 'L'
'\uff75': 'L'
'\uff76': 'L'
'\uff77': 'L'
'\uff78': 'L'
'\uff79': 'L'
'\uff7a': 'L'
'\uff7b': 'L'
'\uff7c': 'L'
'\uff7d': 'L'
'\uff7e': 'L'
'\uff7f': 'L'
'\uff80': 'L'
'\uff81': 'L'
'\uff82': 'L'
'\uff83': 'L'
'\uff84': 'L'
'\uff85': 'L'
'\uff86': 'L'
'\uff87': 'L'
'\uff88': 'L'
'\uff89': 'L'
'\uff8a': 'L'
'\uff8b': 'L'
'\uff8c': 'L'
'\uff8d': 'L'
'\uff8e': 'L'
'\uff8f': 'L'
'\uff90': 'L'
'\uff91': 'L'
'\uff92': 'L'
'\uff93': 'L'
'\uff94': 'L'
'\uff95': 'L'
'\uff96': 'L'
'\uff97': 'L'
'\uff98': 'L'
'\uff99': 'L'
'\uff9a': 'L'
'\uff9b': 'L'
'\uff9c': 'L'
'\uff9d': 'L'
'\uff9e': 'L'
'\uff9f': 'L'
'\uffa0': 'L'
'\uffa1': 'L'
'\uffa2': 'L'
'\uffa3': 'L'
'\uffa4': 'L'
'\uffa5': 'L'
'\uffa6': 'L'
'\uffa7': 'L'
'\uffa8': 'L'
'\uffa9': 'L'
'\uffaa': 'L'
'\uffab': 'L'
'\uffac': 'L'
'\uffad': 'L'
'\uffae': 'L'
'\uffaf': 'L'
'\uffb0': 'L'
'\uffb1': 'L'
'\uffb2': 'L'
'\uffb3': 'L'
'\uffb4': 'L'
'\uffb5': 'L'
'\uffb6': 'L'
'\uffb7': 'L'
'\uffb8': 'L'
'\uffb9': 'L'
'\uffba': 'L'
'\uffbb': 'L'
'\uffbc': 'L'
'\uffbd': 'L'
'\uffbe': 'L'
'\uffc2': 'L'
'\uffc3': 'L'
'\uffc4': 'L'
'\uffc5': 'L'
'\uffc6': 'L'
'\uffc7': 'L'
'\uffca': 'L'
'\uffcb': 'L'
'\uffcc': 'L'
'\uffcd': 'L'
'\uffce': 'L'
'\uffcf': 'L'
'\uffd2': 'L'
'\uffd3': 'L'
'\uffd4': 'L'
'\uffd5': 'L'
'\uffd6': 'L'
'\uffd7': 'L'
'\uffda': 'L'
'\uffdb': 'L'
'\uffdc': 'L'
'\ud800\udc00': 'L'
'\ud800\udc01': 'L'
'\ud800\udc02': 'L'
'\ud800\udc03': 'L'
'\ud800\udc04': 'L'
'\ud800\udc05': 'L'
'\ud800\udc06': 'L'
'\ud800\udc07': 'L'
'\ud800\udc08': 'L'
'\ud800\udc09': 'L'
'\ud800\udc0a': 'L'
'\ud800\udc0b': 'L'
'\ud800\udc0d': 'L'
'\ud800\udc0e': 'L'
'\ud800\udc0f': 'L'
'\ud800\udc10': 'L'
'\ud800\udc11': 'L'
'\ud800\udc12': 'L'
'\ud800\udc13': 'L'
'\ud800\udc14': 'L'
'\ud800\udc15': 'L'
'\ud800\udc16': 'L'
'\ud800\udc17': 'L'
'\ud800\udc18': 'L'
'\ud800\udc19': 'L'
'\ud800\udc1a': 'L'
'\ud800\udc1b': 'L'
'\ud800\udc1c': 'L'
'\ud800\udc1d': 'L'
'\ud800\udc1e': 'L'
'\ud800\udc1f': 'L'
'\ud800\udc20': 'L'
'\ud800\udc21': 'L'
'\ud800\udc22': 'L'
'\ud800\udc23': 'L'
'\ud800\udc24': 'L'
'\ud800\udc25': 'L'
'\ud800\udc26': 'L'
'\ud800\udc28': 'L'
'\ud800\udc29': 'L'
'\ud800\udc2a': 'L'
'\ud800\udc2b': 'L'
'\ud800\udc2c': 'L'
'\ud800\udc2d': 'L'
'\ud800\udc2e': 'L'
'\ud800\udc2f': 'L'
'\ud800\udc30': 'L'
'\ud800\udc31': 'L'
'\ud800\udc32': 'L'
'\ud800\udc33': 'L'
'\ud800\udc34': 'L'
'\ud800\udc35': 'L'
'\ud800\udc36': 'L'
'\ud800\udc37': 'L'
'\ud800\udc38': 'L'
'\ud800\udc39': 'L'
'\ud800\udc3a': 'L'
'\ud800\udc3c': 'L'
'\ud800\udc3d': 'L'
'\ud800\udc3f': 'L'
'\ud800\udc40': 'L'
'\ud800\udc41': 'L'
'\ud800\udc42': 'L'
'\ud800\udc43': 'L'
'\ud800\udc44': 'L'
'\ud800\udc45': 'L'
'\ud800\udc46': 'L'
'\ud800\udc47': 'L'
'\ud800\udc48': 'L'
'\ud800\udc49': 'L'
'\ud800\udc4a': 'L'
'\ud800\udc4b': 'L'
'\ud800\udc4c': 'L'
'\ud800\udc4d': 'L'
'\ud800\udc50': 'L'
'\ud800\udc51': 'L'
'\ud800\udc52': 'L'
'\ud800\udc53': 'L'
'\ud800\udc54': 'L'
'\ud800\udc55': 'L'
'\ud800\udc56': 'L'
'\ud800\udc57': 'L'
'\ud800\udc58': 'L'
'\ud800\udc59': 'L'
'\ud800\udc5a': 'L'
'\ud800\udc5b': 'L'
'\ud800\udc5c': 'L'
'\ud800\udc5d': 'L'
'\ud800\udc80': 'L'
'\ud800\udc81': 'L'
'\ud800\udc82': 'L'
'\ud800\udc83': 'L'
'\ud800\udc84': 'L'
'\ud800\udc85': 'L'
'\ud800\udc86': 'L'
'\ud800\udc87': 'L'
'\ud800\udc88': 'L'
'\ud800\udc89': 'L'
'\ud800\udc8a': 'L'
'\ud800\udc8b': 'L'
'\ud800\udc8c': 'L'
'\ud800\udc8d': 'L'
'\ud800\udc8e': 'L'
'\ud800\udc8f': 'L'
'\ud800\udc90': 'L'
'\ud800\udc91': 'L'
'\ud800\udc92': 'L'
'\ud800\udc93': 'L'
'\ud800\udc94': 'L'
'\ud800\udc95': 'L'
'\ud800\udc96': 'L'
'\ud800\udc97': 'L'
'\ud800\udc98': 'L'
'\ud800\udc99': 'L'
'\ud800\udc9a': 'L'
'\ud800\udc9b': 'L'
'\ud800\udc9c': 'L'
'\ud800\udc9d': 'L'
'\ud800\udc9e': 'L'
'\ud800\udc9f': 'L'
'\ud800\udca0': 'L'
'\ud800\udca1': 'L'
'\ud800\udca2': 'L'
'\ud800\udca3': 'L'
'\ud800\udca4': 'L'
'\ud800\udca5': 'L'
'\ud800\udca6': 'L'
'\ud800\udca7': 'L'
'\ud800\udca8': 'L'
'\ud800\udca9': 'L'
'\ud800\udcaa': 'L'
'\ud800\udcab': 'L'
'\ud800\udcac': 'L'
'\ud800\udcad': 'L'
'\ud800\udcae': 'L'
'\ud800\udcaf': 'L'
'\ud800\udcb0': 'L'
'\ud800\udcb1': 'L'
'\ud800\udcb2': 'L'
'\ud800\udcb3': 'L'
'\ud800\udcb4': 'L'
'\ud800\udcb5': 'L'
'\ud800\udcb6': 'L'
'\ud800\udcb7': 'L'
'\ud800\udcb8': 'L'
'\ud800\udcb9': 'L'
'\ud800\udcba': 'L'
'\ud800\udcbb': 'L'
'\ud800\udcbc': 'L'
'\ud800\udcbd': 'L'
'\ud800\udcbe': 'L'
'\ud800\udcbf': 'L'
'\ud800\udcc0': 'L'
'\ud800\udcc1': 'L'
'\ud800\udcc2': 'L'
'\ud800\udcc3': 'L'
'\ud800\udcc4': 'L'
'\ud800\udcc5': 'L'
'\ud800\udcc6': 'L'
'\ud800\udcc7': 'L'
'\ud800\udcc8': 'L'
'\ud800\udcc9': 'L'
'\ud800\udcca': 'L'
'\ud800\udccb': 'L'
'\ud800\udccc': 'L'
'\ud800\udccd': 'L'
'\ud800\udcce': 'L'
'\ud800\udccf': 'L'
'\ud800\udcd0': 'L'
'\ud800\udcd1': 'L'
'\ud800\udcd2': 'L'
'\ud800\udcd3': 'L'
'\ud800\udcd4': 'L'
'\ud800\udcd5': 'L'
'\ud800\udcd6': 'L'
'\ud800\udcd7': 'L'
'\ud800\udcd8': 'L'
'\ud800\udcd9': 'L'
'\ud800\udcda': 'L'
'\ud800\udcdb': 'L'
'\ud800\udcdc': 'L'
'\ud800\udcdd': 'L'
'\ud800\udcde': 'L'
'\ud800\udcdf': 'L'
'\ud800\udce0': 'L'
'\ud800\udce1': 'L'
'\ud800\udce2': 'L'
'\ud800\udce3': 'L'
'\ud800\udce4': 'L'
'\ud800\udce5': 'L'
'\ud800\udce6': 'L'
'\ud800\udce7': 'L'
'\ud800\udce8': 'L'
'\ud800\udce9': 'L'
'\ud800\udcea': 'L'
'\ud800\udceb': 'L'
'\ud800\udcec': 'L'
'\ud800\udced': 'L'
'\ud800\udcee': 'L'
'\ud800\udcef': 'L'
'\ud800\udcf0': 'L'
'\ud800\udcf1': 'L'
'\ud800\udcf2': 'L'
'\ud800\udcf3': 'L'
'\ud800\udcf4': 'L'
'\ud800\udcf5': 'L'
'\ud800\udcf6': 'L'
'\ud800\udcf7': 'L'
'\ud800\udcf8': 'L'
'\ud800\udcf9': 'L'
'\ud800\udcfa': 'L'
'\ud800\udd07': 'N'
'\ud800\udd08': 'N'
'\ud800\udd09': 'N'
'\ud800\udd0a': 'N'
'\ud800\udd0b': 'N'
'\ud800\udd0c': 'N'
'\ud800\udd0d': 'N'
'\ud800\udd0e': 'N'
'\ud800\udd0f': 'N'
'\ud800\udd10': 'N'
'\ud800\udd11': 'N'
'\ud800\udd12': 'N'
'\ud800\udd13': 'N'
'\ud800\udd14': 'N'
'\ud800\udd15': 'N'
'\ud800\udd16': 'N'
'\ud800\udd17': 'N'
'\ud800\udd18': 'N'
'\ud800\udd19': 'N'
'\ud800\udd1a': 'N'
'\ud800\udd1b': 'N'
'\ud800\udd1c': 'N'
'\ud800\udd1d': 'N'
'\ud800\udd1e': 'N'
'\ud800\udd1f': 'N'
'\ud800\udd20': 'N'
'\ud800\udd21': 'N'
'\ud800\udd22': 'N'
'\ud800\udd23': 'N'
'\ud800\udd24': 'N'
'\ud800\udd25': 'N'
'\ud800\udd26': 'N'
'\ud800\udd27': 'N'
'\ud800\udd28': 'N'
'\ud800\udd29': 'N'
'\ud800\udd2a': 'N'
'\ud800\udd2b': 'N'
'\ud800\udd2c': 'N'
'\ud800\udd2d': 'N'
'\ud800\udd2e': 'N'
'\ud800\udd2f': 'N'
'\ud800\udd30': 'N'
'\ud800\udd31': 'N'
'\ud800\udd32': 'N'
'\ud800\udd33': 'N'
'\ud800\udd40': 'N'
'\ud800\udd41': 'N'
'\ud800\udd42': 'N'
'\ud800\udd43': 'N'
'\ud800\udd44': 'N'
'\ud800\udd45': 'N'
'\ud800\udd46': 'N'
'\ud800\udd47': 'N'
'\ud800\udd48': 'N'
'\ud800\udd49': 'N'
'\ud800\udd4a': 'N'
'\ud800\udd4b': 'N'
'\ud800\udd4c': 'N'
'\ud800\udd4d': 'N'
'\ud800\udd4e': 'N'
'\ud800\udd4f': 'N'
'\ud800\udd50': 'N'
'\ud800\udd51': 'N'
'\ud800\udd52': 'N'
'\ud800\udd53': 'N'
'\ud800\udd54': 'N'
'\ud800\udd55': 'N'
'\ud800\udd56': 'N'
'\ud800\udd57': 'N'
'\ud800\udd58': 'N'
'\ud800\udd59': 'N'
'\ud800\udd5a': 'N'
'\ud800\udd5b': 'N'
'\ud800\udd5c': 'N'
'\ud800\udd5d': 'N'
'\ud800\udd5e': 'N'
'\ud800\udd5f': 'N'
'\ud800\udd60': 'N'
'\ud800\udd61': 'N'
'\ud800\udd62': 'N'
'\ud800\udd63': 'N'
'\ud800\udd64': 'N'
'\ud800\udd65': 'N'
'\ud800\udd66': 'N'
'\ud800\udd67': 'N'
'\ud800\udd68': 'N'
'\ud800\udd69': 'N'
'\ud800\udd6a': 'N'
'\ud800\udd6b': 'N'
'\ud800\udd6c': 'N'
'\ud800\udd6d': 'N'
'\ud800\udd6e': 'N'
'\ud800\udd6f': 'N'
'\ud800\udd70': 'N'
'\ud800\udd71': 'N'
'\ud800\udd72': 'N'
'\ud800\udd73': 'N'
'\ud800\udd74': 'N'
'\ud800\udd75': 'N'
'\ud800\udd76': 'N'
'\ud800\udd77': 'N'
'\ud800\udd78': 'N'
'\ud800\udd8a': 'N'
'\ud800\udd8b': 'N'
'\ud800\ude80': 'L'
'\ud800\ude81': 'L'
'\ud800\ude82': 'L'
'\ud800\ude83': 'L'
'\ud800\ude84': 'L'
'\ud800\ude85': 'L'
'\ud800\ude86': 'L'
'\ud800\ude87': 'L'
'\ud800\ude88': 'L'
'\ud800\ude89': 'L'
'\ud800\ude8a': 'L'
'\ud800\ude8b': 'L'
'\ud800\ude8c': 'L'
'\ud800\ude8d': 'L'
'\ud800\ude8e': 'L'
'\ud800\ude8f': 'L'
'\ud800\ude90': 'L'
'\ud800\ude91': 'L'
'\ud800\ude92': 'L'
'\ud800\ude93': 'L'
'\ud800\ude94': 'L'
'\ud800\ude95': 'L'
'\ud800\ude96': 'L'
'\ud800\ude97': 'L'
'\ud800\ude98': 'L'
'\ud800\ude99': 'L'
'\ud800\ude9a': 'L'
'\ud800\ude9b': 'L'
'\ud800\ude9c': 'L'
'\ud800\udea0': 'L'
'\ud800\udea1': 'L'
'\ud800\udea2': 'L'
'\ud800\udea3': 'L'
'\ud800\udea4': 'L'
'\ud800\udea5': 'L'
'\ud800\udea6': 'L'
'\ud800\udea7': 'L'
'\ud800\udea8': 'L'
'\ud800\udea9': 'L'
'\ud800\udeaa': 'L'
'\ud800\udeab': 'L'
'\ud800\udeac': 'L'
'\ud800\udead': 'L'
'\ud800\udeae': 'L'
'\ud800\udeaf': 'L'
'\ud800\udeb0': 'L'
'\ud800\udeb1': 'L'
'\ud800\udeb2': 'L'
'\ud800\udeb3': 'L'
'\ud800\udeb4': 'L'
'\ud800\udeb5': 'L'
'\ud800\udeb6': 'L'
'\ud800\udeb7': 'L'
'\ud800\udeb8': 'L'
'\ud800\udeb9': 'L'
'\ud800\udeba': 'L'
'\ud800\udebb': 'L'
'\ud800\udebc': 'L'
'\ud800\udebd': 'L'
'\ud800\udebe': 'L'
'\ud800\udebf': 'L'
'\ud800\udec0': 'L'
'\ud800\udec1': 'L'
'\ud800\udec2': 'L'
'\ud800\udec3': 'L'
'\ud800\udec4': 'L'
'\ud800\udec5': 'L'
'\ud800\udec6': 'L'
'\ud800\udec7': 'L'
'\ud800\udec8': 'L'
'\ud800\udec9': 'L'
'\ud800\udeca': 'L'
'\ud800\udecb': 'L'
'\ud800\udecc': 'L'
'\ud800\udecd': 'L'
'\ud800\udece': 'L'
'\ud800\udecf': 'L'
'\ud800\uded0': 'L'
'\ud800\udee1': 'N'
'\ud800\udee2': 'N'
'\ud800\udee3': 'N'
'\ud800\udee4': 'N'
'\ud800\udee5': 'N'
'\ud800\udee6': 'N'
'\ud800\udee7': 'N'
'\ud800\udee8': 'N'
'\ud800\udee9': 'N'
'\ud800\udeea': 'N'
'\ud800\udeeb': 'N'
'\ud800\udeec': 'N'
'\ud800\udeed': 'N'
'\ud800\udeee': 'N'
'\ud800\udeef': 'N'
'\ud800\udef0': 'N'
'\ud800\udef1': 'N'
'\ud800\udef2': 'N'
'\ud800\udef3': 'N'
'\ud800\udef4': 'N'
'\ud800\udef5': 'N'
'\ud800\udef6': 'N'
'\ud800\udef7': 'N'
'\ud800\udef8': 'N'
'\ud800\udef9': 'N'
'\ud800\udefa': 'N'
'\ud800\udefb': 'N'
'\ud800\udf00': 'L'
'\ud800\udf01': 'L'
'\ud800\udf02': 'L'
'\ud800\udf03': 'L'
'\ud800\udf04': 'L'
'\ud800\udf05': 'L'
'\ud800\udf06': 'L'
'\ud800\udf07': 'L'
'\ud800\udf08': 'L'
'\ud800\udf09': 'L'
'\ud800\udf0a': 'L'
'\ud800\udf0b': 'L'
'\ud800\udf0c': 'L'
'\ud800\udf0d': 'L'
'\ud800\udf0e': 'L'
'\ud800\udf0f': 'L'
'\ud800\udf10': 'L'
'\ud800\udf11': 'L'
'\ud800\udf12': 'L'
'\ud800\udf13': 'L'
'\ud800\udf14': 'L'
'\ud800\udf15': 'L'
'\ud800\udf16': 'L'
'\ud800\udf17': 'L'
'\ud800\udf18': 'L'
'\ud800\udf19': 'L'
'\ud800\udf1a': 'L'
'\ud800\udf1b': 'L'
'\ud800\udf1c': 'L'
'\ud800\udf1d': 'L'
'\ud800\udf1e': 'L'
'\ud800\udf1f': 'L'
'\ud800\udf20': 'N'
'\ud800\udf21': 'N'
'\ud800\udf22': 'N'
'\ud800\udf23': 'N'
'\ud800\udf30': 'L'
'\ud800\udf31': 'L'
'\ud800\udf32': 'L'
'\ud800\udf33': 'L'
'\ud800\udf34': 'L'
'\ud800\udf35': 'L'
'\ud800\udf36': 'L'
'\ud800\udf37': 'L'
'\ud800\udf38': 'L'
'\ud800\udf39': 'L'
'\ud800\udf3a': 'L'
'\ud800\udf3b': 'L'
'\ud800\udf3c': 'L'
'\ud800\udf3d': 'L'
'\ud800\udf3e': 'L'
'\ud800\udf3f': 'L'
'\ud800\udf40': 'L'
'\ud800\udf41': 'N'
'\ud800\udf42': 'L'
'\ud800\udf43': 'L'
'\ud800\udf44': 'L'
'\ud800\udf45': 'L'
'\ud800\udf46': 'L'
'\ud800\udf47': 'L'
'\ud800\udf48': 'L'
'\ud800\udf49': 'L'
'\ud800\udf4a': 'N'
'\ud800\udf50': 'L'
'\ud800\udf51': 'L'
'\ud800\udf52': 'L'
'\ud800\udf53': 'L'
'\ud800\udf54': 'L'
'\ud800\udf55': 'L'
'\ud800\udf56': 'L'
'\ud800\udf57': 'L'
'\ud800\udf58': 'L'
'\ud800\udf59': 'L'
'\ud800\udf5a': 'L'
'\ud800\udf5b': 'L'
'\ud800\udf5c': 'L'
'\ud800\udf5d': 'L'
'\ud800\udf5e': 'L'
'\ud800\udf5f': 'L'
'\ud800\udf60': 'L'
'\ud800\udf61': 'L'
'\ud800\udf62': 'L'
'\ud800\udf63': 'L'
'\ud800\udf64': 'L'
'\ud800\udf65': 'L'
'\ud800\udf66': 'L'
'\ud800\udf67': 'L'
'\ud800\udf68': 'L'
'\ud800\udf69': 'L'
'\ud800\udf6a': 'L'
'\ud800\udf6b': 'L'
'\ud800\udf6c': 'L'
'\ud800\udf6d': 'L'
'\ud800\udf6e': 'L'
'\ud800\udf6f': 'L'
'\ud800\udf70': 'L'
'\ud800\udf71': 'L'
'\ud800\udf72': 'L'
'\ud800\udf73': 'L'
'\ud800\udf74': 'L'
'\ud800\udf75': 'L'
'\ud800\udf80': 'L'
'\ud800\udf81': 'L'
'\ud800\udf82': 'L'
'\ud800\udf83': 'L'
'\ud800\udf84': 'L'
'\ud800\udf85': 'L'
'\ud800\udf86': 'L'
'\ud800\udf87': 'L'
'\ud800\udf88': 'L'
'\ud800\udf89': 'L'
'\ud800\udf8a': 'L'
'\ud800\udf8b': 'L'
'\ud800\udf8c': 'L'
'\ud800\udf8d': 'L'
'\ud800\udf8e': 'L'
'\ud800\udf8f': 'L'
'\ud800\udf90': 'L'
'\ud800\udf91': 'L'
'\ud800\udf92': 'L'
'\ud800\udf93': 'L'
'\ud800\udf94': 'L'
'\ud800\udf95': 'L'
'\ud800\udf96': 'L'
'\ud800\udf97': 'L'
'\ud800\udf98': 'L'
'\ud800\udf99': 'L'
'\ud800\udf9a': 'L'
'\ud800\udf9b': 'L'
'\ud800\udf9c': 'L'
'\ud800\udf9d': 'L'
'\ud800\udfa0': 'L'
'\ud800\udfa1': 'L'
'\ud800\udfa2': 'L'
'\ud800\udfa3': 'L'
'\ud800\udfa4': 'L'
'\ud800\udfa5': 'L'
'\ud800\udfa6': 'L'
'\ud800\udfa7': 'L'
'\ud800\udfa8': 'L'
'\ud800\udfa9': 'L'
'\ud800\udfaa': 'L'
'\ud800\udfab': 'L'
'\ud800\udfac': 'L'
'\ud800\udfad': 'L'
'\ud800\udfae': 'L'
'\ud800\udfaf': 'L'
'\ud800\udfb0': 'L'
'\ud800\udfb1': 'L'
'\ud800\udfb2': 'L'
'\ud800\udfb3': 'L'
'\ud800\udfb4': 'L'
'\ud800\udfb5': 'L'
'\ud800\udfb6': 'L'
'\ud800\udfb7': 'L'
'\ud800\udfb8': 'L'
'\ud800\udfb9': 'L'
'\ud800\udfba': 'L'
'\ud800\udfbb': 'L'
'\ud800\udfbc': 'L'
'\ud800\udfbd': 'L'
'\ud800\udfbe': 'L'
'\ud800\udfbf': 'L'
'\ud800\udfc0': 'L'
'\ud800\udfc1': 'L'
'\ud800\udfc2': 'L'
'\ud800\udfc3': 'L'
'\ud800\udfc8': 'L'
'\ud800\udfc9': 'L'
'\ud800\udfca': 'L'
'\ud800\udfcb': 'L'
'\ud800\udfcc': 'L'
'\ud800\udfcd': 'L'
'\ud800\udfce': 'L'
'\ud800\udfcf': 'L'
'\ud800\udfd1': 'N'
'\ud800\udfd2': 'N'
'\ud800\udfd3': 'N'
'\ud800\udfd4': 'N'
'\ud800\udfd5': 'N'
'\ud801\udc00': 'Lu'
'\ud801\udc01': 'Lu'
'\ud801\udc02': 'Lu'
'\ud801\udc03': 'Lu'
'\ud801\udc04': 'Lu'
'\ud801\udc05': 'Lu'
'\ud801\udc06': 'Lu'
'\ud801\udc07': 'Lu'
'\ud801\udc08': 'Lu'
'\ud801\udc09': 'Lu'
'\ud801\udc0a': 'Lu'
'\ud801\udc0b': 'Lu'
'\ud801\udc0c': 'Lu'
'\ud801\udc0d': 'Lu'
'\ud801\udc0e': 'Lu'
'\ud801\udc0f': 'Lu'
'\ud801\udc10': 'Lu'
'\ud801\udc11': 'Lu'
'\ud801\udc12': 'Lu'
'\ud801\udc13': 'Lu'
'\ud801\udc14': 'Lu'
'\ud801\udc15': 'Lu'
'\ud801\udc16': 'Lu'
'\ud801\udc17': 'Lu'
'\ud801\udc18': 'Lu'
'\ud801\udc19': 'Lu'
'\ud801\udc1a': 'Lu'
'\ud801\udc1b': 'Lu'
'\ud801\udc1c': 'Lu'
'\ud801\udc1d': 'Lu'
'\ud801\udc1e': 'Lu'
'\ud801\udc1f': 'Lu'
'\ud801\udc20': 'Lu'
'\ud801\udc21': 'Lu'
'\ud801\udc22': 'Lu'
'\ud801\udc23': 'Lu'
'\ud801\udc24': 'Lu'
'\ud801\udc25': 'Lu'
'\ud801\udc26': 'Lu'
'\ud801\udc27': 'Lu'
'\ud801\udc28': 'L'
'\ud801\udc29': 'L'
'\ud801\udc2a': 'L'
'\ud801\udc2b': 'L'
'\ud801\udc2c': 'L'
'\ud801\udc2d': 'L'
'\ud801\udc2e': 'L'
'\ud801\udc2f': 'L'
'\ud801\udc30': 'L'
'\ud801\udc31': 'L'
'\ud801\udc32': 'L'
'\ud801\udc33': 'L'
'\ud801\udc34': 'L'
'\ud801\udc35': 'L'
'\ud801\udc36': 'L'
'\ud801\udc37': 'L'
'\ud801\udc38': 'L'
'\ud801\udc39': 'L'
'\ud801\udc3a': 'L'
'\ud801\udc3b': 'L'
'\ud801\udc3c': 'L'
'\ud801\udc3d': 'L'
'\ud801\udc3e': 'L'
'\ud801\udc3f': 'L'
'\ud801\udc40': 'L'
'\ud801\udc41': 'L'
'\ud801\udc42': 'L'
'\ud801\udc43': 'L'
'\ud801\udc44': 'L'
'\ud801\udc45': 'L'
'\ud801\udc46': 'L'
'\ud801\udc47': 'L'
'\ud801\udc48': 'L'
'\ud801\udc49': 'L'
'\ud801\udc4a': 'L'
'\ud801\udc4b': 'L'
'\ud801\udc4c': 'L'
'\ud801\udc4d': 'L'
'\ud801\udc4e': 'L'
'\ud801\udc4f': 'L'
'\ud801\udc50': 'L'
'\ud801\udc51': 'L'
'\ud801\udc52': 'L'
'\ud801\udc53': 'L'
'\ud801\udc54': 'L'
'\ud801\udc55': 'L'
'\ud801\udc56': 'L'
'\ud801\udc57': 'L'
'\ud801\udc58': 'L'
'\ud801\udc59': 'L'
'\ud801\udc5a': 'L'
'\ud801\udc5b': 'L'
'\ud801\udc5c': 'L'
'\ud801\udc5d': 'L'
'\ud801\udc5e': 'L'
'\ud801\udc5f': 'L'
'\ud801\udc60': 'L'
'\ud801\udc61': 'L'
'\ud801\udc62': 'L'
'\ud801\udc63': 'L'
'\ud801\udc64': 'L'
'\ud801\udc65': 'L'
'\ud801\udc66': 'L'
'\ud801\udc67': 'L'
'\ud801\udc68': 'L'
'\ud801\udc69': 'L'
'\ud801\udc6a': 'L'
'\ud801\udc6b': 'L'
'\ud801\udc6c': 'L'
'\ud801\udc6d': 'L'
'\ud801\udc6e': 'L'
'\ud801\udc6f': 'L'
'\ud801\udc70': 'L'
'\ud801\udc71': 'L'
'\ud801\udc72': 'L'
'\ud801\udc73': 'L'
'\ud801\udc74': 'L'
'\ud801\udc75': 'L'
'\ud801\udc76': 'L'
'\ud801\udc77': 'L'
'\ud801\udc78': 'L'
'\ud801\udc79': 'L'
'\ud801\udc7a': 'L'
'\ud801\udc7b': 'L'
'\ud801\udc7c': 'L'
'\ud801\udc7d': 'L'
'\ud801\udc7e': 'L'
'\ud801\udc7f': 'L'
'\ud801\udc80': 'L'
'\ud801\udc81': 'L'
'\ud801\udc82': 'L'
'\ud801\udc83': 'L'
'\ud801\udc84': 'L'
'\ud801\udc85': 'L'
'\ud801\udc86': 'L'
'\ud801\udc87': 'L'
'\ud801\udc88': 'L'
'\ud801\udc89': 'L'
'\ud801\udc8a': 'L'
'\ud801\udc8b': 'L'
'\ud801\udc8c': 'L'
'\ud801\udc8d': 'L'
'\ud801\udc8e': 'L'
'\ud801\udc8f': 'L'
'\ud801\udc90': 'L'
'\ud801\udc91': 'L'
'\ud801\udc92': 'L'
'\ud801\udc93': 'L'
'\ud801\udc94': 'L'
'\ud801\udc95': 'L'
'\ud801\udc96': 'L'
'\ud801\udc97': 'L'
'\ud801\udc98': 'L'
'\ud801\udc99': 'L'
'\ud801\udc9a': 'L'
'\ud801\udc9b': 'L'
'\ud801\udc9c': 'L'
'\ud801\udc9d': 'L'
'\ud801\udca0': 'N'
'\ud801\udca1': 'N'
'\ud801\udca2': 'N'
'\ud801\udca3': 'N'
'\ud801\udca4': 'N'
'\ud801\udca5': 'N'
'\ud801\udca6': 'N'
'\ud801\udca7': 'N'
'\ud801\udca8': 'N'
'\ud801\udca9': 'N'
'\ud801\udd00': 'L'
'\ud801\udd01': 'L'
'\ud801\udd02': 'L'
'\ud801\udd03': 'L'
'\ud801\udd04': 'L'
'\ud801\udd05': 'L'
'\ud801\udd06': 'L'
'\ud801\udd07': 'L'
'\ud801\udd08': 'L'
'\ud801\udd09': 'L'
'\ud801\udd0a': 'L'
'\ud801\udd0b': 'L'
'\ud801\udd0c': 'L'
'\ud801\udd0d': 'L'
'\ud801\udd0e': 'L'
'\ud801\udd0f': 'L'
'\ud801\udd10': 'L'
'\ud801\udd11': 'L'
'\ud801\udd12': 'L'
'\ud801\udd13': 'L'
'\ud801\udd14': 'L'
'\ud801\udd15': 'L'
'\ud801\udd16': 'L'
'\ud801\udd17': 'L'
'\ud801\udd18': 'L'
'\ud801\udd19': 'L'
'\ud801\udd1a': 'L'
'\ud801\udd1b': 'L'
'\ud801\udd1c': 'L'
'\ud801\udd1d': 'L'
'\ud801\udd1e': 'L'
'\ud801\udd1f': 'L'
'\ud801\udd20': 'L'
'\ud801\udd21': 'L'
'\ud801\udd22': 'L'
'\ud801\udd23': 'L'
'\ud801\udd24': 'L'
'\ud801\udd25': 'L'
'\ud801\udd26': 'L'
'\ud801\udd27': 'L'
'\ud801\udd30': 'L'
'\ud801\udd31': 'L'
'\ud801\udd32': 'L'
'\ud801\udd33': 'L'
'\ud801\udd34': 'L'
'\ud801\udd35': 'L'
'\ud801\udd36': 'L'
'\ud801\udd37': 'L'
'\ud801\udd38': 'L'
'\ud801\udd39': 'L'
'\ud801\udd3a': 'L'
'\ud801\udd3b': 'L'
'\ud801\udd3c': 'L'
'\ud801\udd3d': 'L'
'\ud801\udd3e': 'L'
'\ud801\udd3f': 'L'
'\ud801\udd40': 'L'
'\ud801\udd41': 'L'
'\ud801\udd42': 'L'
'\ud801\udd43': 'L'
'\ud801\udd44': 'L'
'\ud801\udd45': 'L'
'\ud801\udd46': 'L'
'\ud801\udd47': 'L'
'\ud801\udd48': 'L'
'\ud801\udd49': 'L'
'\ud801\udd4a': 'L'
'\ud801\udd4b': 'L'
'\ud801\udd4c': 'L'
'\ud801\udd4d': 'L'
'\ud801\udd4e': 'L'
'\ud801\udd4f': 'L'
'\ud801\udd50': 'L'
'\ud801\udd51': 'L'
'\ud801\udd52': 'L'
'\ud801\udd53': 'L'
'\ud801\udd54': 'L'
'\ud801\udd55': 'L'
'\ud801\udd56': 'L'
'\ud801\udd57': 'L'
'\ud801\udd58': 'L'
'\ud801\udd59': 'L'
'\ud801\udd5a': 'L'
'\ud801\udd5b': 'L'
'\ud801\udd5c': 'L'
'\ud801\udd5d': 'L'
'\ud801\udd5e': 'L'
'\ud801\udd5f': 'L'
'\ud801\udd60': 'L'
'\ud801\udd61': 'L'
'\ud801\udd62': 'L'
'\ud801\udd63': 'L'
'\ud801\ude00': 'L'
'\ud801\ude01': 'L'
'\ud801\ude02': 'L'
'\ud801\ude03': 'L'
'\ud801\ude04': 'L'
'\ud801\ude05': 'L'
'\ud801\ude06': 'L'
'\ud801\ude07': 'L'
'\ud801\ude08': 'L'
'\ud801\ude09': 'L'
'\ud801\ude0a': 'L'
'\ud801\ude0b': 'L'
'\ud801\ude0c': 'L'
'\ud801\ude0d': 'L'
'\ud801\ude0e': 'L'
'\ud801\ude0f': 'L'
'\ud801\ude10': 'L'
'\ud801\ude11': 'L'
'\ud801\ude12': 'L'
'\ud801\ude13': 'L'
'\ud801\ude14': 'L'
'\ud801\ude15': 'L'
'\ud801\ude16': 'L'
'\ud801\ude17': 'L'
'\ud801\ude18': 'L'
'\ud801\ude19': 'L'
'\ud801\ude1a': 'L'
'\ud801\ude1b': 'L'
'\ud801\ude1c': 'L'
'\ud801\ude1d': 'L'
'\ud801\ude1e': 'L'
'\ud801\ude1f': 'L'
'\ud801\ude20': 'L'
'\ud801\ude21': 'L'
'\ud801\ude22': 'L'
'\ud801\ude23': 'L'
'\ud801\ude24': 'L'
'\ud801\ude25': 'L'
'\ud801\ude26': 'L'
'\ud801\ude27': 'L'
'\ud801\ude28': 'L'
'\ud801\ude29': 'L'
'\ud801\ude2a': 'L'
'\ud801\ude2b': 'L'
'\ud801\ude2c': 'L'
'\ud801\ude2d': 'L'
'\ud801\ude2e': 'L'
'\ud801\ude2f': 'L'
'\ud801\ude30': 'L'
'\ud801\ude31': 'L'
'\ud801\ude32': 'L'
'\ud801\ude33': 'L'
'\ud801\ude34': 'L'
'\ud801\ude35': 'L'
'\ud801\ude36': 'L'
'\ud801\ude37': 'L'
'\ud801\ude38': 'L'
'\ud801\ude39': 'L'
'\ud801\ude3a': 'L'
'\ud801\ude3b': 'L'
'\ud801\ude3c': 'L'
'\ud801\ude3d': 'L'
'\ud801\ude3e': 'L'
'\ud801\ude3f': 'L'
'\ud801\ude40': 'L'
'\ud801\ude41': 'L'
'\ud801\ude42': 'L'
'\ud801\ude43': 'L'
'\ud801\ude44': 'L'
'\ud801\ude45': 'L'
'\ud801\ude46': 'L'
'\ud801\ude47': 'L'
'\ud801\ude48': 'L'
'\ud801\ude49': 'L'
'\ud801\ude4a': 'L'
'\ud801\ude4b': 'L'
'\ud801\ude4c': 'L'
'\ud801\ude4d': 'L'
'\ud801\ude4e': 'L'
'\ud801\ude4f': 'L'
'\ud801\ude50': 'L'
'\ud801\ude51': 'L'
'\ud801\ude52': 'L'
'\ud801\ude53': 'L'
'\ud801\ude54': 'L'
'\ud801\ude55': 'L'
'\ud801\ude56': 'L'
'\ud801\ude57': 'L'
'\ud801\ude58': 'L'
'\ud801\ude59': 'L'
'\ud801\ude5a': 'L'
'\ud801\ude5b': 'L'
'\ud801\ude5c': 'L'
'\ud801\ude5d': 'L'
'\ud801\ude5e': 'L'
'\ud801\ude5f': 'L'
'\ud801\ude60': 'L'
'\ud801\ude61': 'L'
'\ud801\ude62': 'L'
'\ud801\ude63': 'L'
'\ud801\ude64': 'L'
'\ud801\ude65': 'L'
'\ud801\ude66': 'L'
'\ud801\ude67': 'L'
'\ud801\ude68': 'L'
'\ud801\ude69': 'L'
'\ud801\ude6a': 'L'
'\ud801\ude6b': 'L'
'\ud801\ude6c': 'L'
'\ud801\ude6d': 'L'
'\ud801\ude6e': 'L'
'\ud801\ude6f': 'L'
'\ud801\ude70': 'L'
'\ud801\ude71': 'L'
'\ud801\ude72': 'L'
'\ud801\ude73': 'L'
'\ud801\ude74': 'L'
'\ud801\ude75': 'L'
'\ud801\ude76': 'L'
'\ud801\ude77': 'L'
'\ud801\ude78': 'L'
'\ud801\ude79': 'L'
'\ud801\ude7a': 'L'
'\ud801\ude7b': 'L'
'\ud801\ude7c': 'L'
'\ud801\ude7d': 'L'
'\ud801\ude7e': 'L'
'\ud801\ude7f': 'L'
'\ud801\ude80': 'L'
'\ud801\ude81': 'L'
'\ud801\ude82': 'L'
'\ud801\ude83': 'L'
'\ud801\ude84': 'L'
'\ud801\ude85': 'L'
'\ud801\ude86': 'L'
'\ud801\ude87': 'L'
'\ud801\ude88': 'L'
'\ud801\ude89': 'L'
'\ud801\ude8a': 'L'
'\ud801\ude8b': 'L'
'\ud801\ude8c': 'L'
'\ud801\ude8d': 'L'
'\ud801\ude8e': 'L'
'\ud801\ude8f': 'L'
'\ud801\ude90': 'L'
'\ud801\ude91': 'L'
'\ud801\ude92': 'L'
'\ud801\ude93': 'L'
'\ud801\ude94': 'L'
'\ud801\ude95': 'L'
'\ud801\ude96': 'L'
'\ud801\ude97': 'L'
'\ud801\ude98': 'L'
'\ud801\ude99': 'L'
'\ud801\ude9a': 'L'
'\ud801\ude9b': 'L'
'\ud801\ude9c': 'L'
'\ud801\ude9d': 'L'
'\ud801\ude9e': 'L'
'\ud801\ude9f': 'L'
'\ud801\udea0': 'L'
'\ud801\udea1': 'L'
'\ud801\udea2': 'L'
'\ud801\udea3': 'L'
'\ud801\udea4': 'L'
'\ud801\udea5': 'L'
'\ud801\udea6': 'L'
'\ud801\udea7': 'L'
'\ud801\udea8': 'L'
'\ud801\udea9': 'L'
'\ud801\udeaa': 'L'
'\ud801\udeab': 'L'
'\ud801\udeac': 'L'
'\ud801\udead': 'L'
'\ud801\udeae': 'L'
'\ud801\udeaf': 'L'
'\ud801\udeb0': 'L'
'\ud801\udeb1': 'L'
'\ud801\udeb2': 'L'
'\ud801\udeb3': 'L'
'\ud801\udeb4': 'L'
'\ud801\udeb5': 'L'
'\ud801\udeb6': 'L'
'\ud801\udeb7': 'L'
'\ud801\udeb8': 'L'
'\ud801\udeb9': 'L'
'\ud801\udeba': 'L'
'\ud801\udebb': 'L'
'\ud801\udebc': 'L'
'\ud801\udebd': 'L'
'\ud801\udebe': 'L'
'\ud801\udebf': 'L'
'\ud801\udec0': 'L'
'\ud801\udec1': 'L'
'\ud801\udec2': 'L'
'\ud801\udec3': 'L'
'\ud801\udec4': 'L'
'\ud801\udec5': 'L'
'\ud801\udec6': 'L'
'\ud801\udec7': 'L'
'\ud801\udec8': 'L'
'\ud801\udec9': 'L'
'\ud801\udeca': 'L'
'\ud801\udecb': 'L'
'\ud801\udecc': 'L'
'\ud801\udecd': 'L'
'\ud801\udece': 'L'
'\ud801\udecf': 'L'
'\ud801\uded0': 'L'
'\ud801\uded1': 'L'
'\ud801\uded2': 'L'
'\ud801\uded3': 'L'
'\ud801\uded4': 'L'
'\ud801\uded5': 'L'
'\ud801\uded6': 'L'
'\ud801\uded7': 'L'
'\ud801\uded8': 'L'
'\ud801\uded9': 'L'
'\ud801\udeda': 'L'
'\ud801\udedb': 'L'
'\ud801\udedc': 'L'
'\ud801\udedd': 'L'
'\ud801\udede': 'L'
'\ud801\udedf': 'L'
'\ud801\udee0': 'L'
'\ud801\udee1': 'L'
'\ud801\udee2': 'L'
'\ud801\udee3': 'L'
'\ud801\udee4': 'L'
'\ud801\udee5': 'L'
'\ud801\udee6': 'L'
'\ud801\udee7': 'L'
'\ud801\udee8': 'L'
'\ud801\udee9': 'L'
'\ud801\udeea': 'L'
'\ud801\udeeb': 'L'
'\ud801\udeec': 'L'
'\ud801\udeed': 'L'
'\ud801\udeee': 'L'
'\ud801\udeef': 'L'
'\ud801\udef0': 'L'
'\ud801\udef1': 'L'
'\ud801\udef2': 'L'
'\ud801\udef3': 'L'
'\ud801\udef4': 'L'
'\ud801\udef5': 'L'
'\ud801\udef6': 'L'
'\ud801\udef7': 'L'
'\ud801\udef8': 'L'
'\ud801\udef9': 'L'
'\ud801\udefa': 'L'
'\ud801\udefb': 'L'
'\ud801\udefc': 'L'
'\ud801\udefd': 'L'
'\ud801\udefe': 'L'
'\ud801\udeff': 'L'
'\ud801\udf00': 'L'
'\ud801\udf01': 'L'
'\ud801\udf02': 'L'
'\ud801\udf03': 'L'
'\ud801\udf04': 'L'
'\ud801\udf05': 'L'
'\ud801\udf06': 'L'
'\ud801\udf07': 'L'
'\ud801\udf08': 'L'
'\ud801\udf09': 'L'
'\ud801\udf0a': 'L'
'\ud801\udf0b': 'L'
'\ud801\udf0c': 'L'
'\ud801\udf0d': 'L'
'\ud801\udf0e': 'L'
'\ud801\udf0f': 'L'
'\ud801\udf10': 'L'
'\ud801\udf11': 'L'
'\ud801\udf12': 'L'
'\ud801\udf13': 'L'
'\ud801\udf14': 'L'
'\ud801\udf15': 'L'
'\ud801\udf16': 'L'
'\ud801\udf17': 'L'
'\ud801\udf18': 'L'
'\ud801\udf19': 'L'
'\ud801\udf1a': 'L'
'\ud801\udf1b': 'L'
'\ud801\udf1c': 'L'
'\ud801\udf1d': 'L'
'\ud801\udf1e': 'L'
'\ud801\udf1f': 'L'
'\ud801\udf20': 'L'
'\ud801\udf21': 'L'
'\ud801\udf22': 'L'
'\ud801\udf23': 'L'
'\ud801\udf24': 'L'
'\ud801\udf25': 'L'
'\ud801\udf26': 'L'
'\ud801\udf27': 'L'
'\ud801\udf28': 'L'
'\ud801\udf29': 'L'
'\ud801\udf2a': 'L'
'\ud801\udf2b': 'L'
'\ud801\udf2c': 'L'
'\ud801\udf2d': 'L'
'\ud801\udf2e': 'L'
'\ud801\udf2f': 'L'
'\ud801\udf30': 'L'
'\ud801\udf31': 'L'
'\ud801\udf32': 'L'
'\ud801\udf33': 'L'
'\ud801\udf34': 'L'
'\ud801\udf35': 'L'
'\ud801\udf36': 'L'
'\ud801\udf40': 'L'
'\ud801\udf41': 'L'
'\ud801\udf42': 'L'
'\ud801\udf43': 'L'
'\ud801\udf44': 'L'
'\ud801\udf45': 'L'
'\ud801\udf46': 'L'
'\ud801\udf47': 'L'
'\ud801\udf48': 'L'
'\ud801\udf49': 'L'
'\ud801\udf4a': 'L'
'\ud801\udf4b': 'L'
'\ud801\udf4c': 'L'
'\ud801\udf4d': 'L'
'\ud801\udf4e': 'L'
'\ud801\udf4f': 'L'
'\ud801\udf50': 'L'
'\ud801\udf51': 'L'
'\ud801\udf52': 'L'
'\ud801\udf53': 'L'
'\ud801\udf54': 'L'
'\ud801\udf55': 'L'
'\ud801\udf60': 'L'
'\ud801\udf61': 'L'
'\ud801\udf62': 'L'
'\ud801\udf63': 'L'
'\ud801\udf64': 'L'
'\ud801\udf65': 'L'
'\ud801\udf66': 'L'
'\ud801\udf67': 'L'
'\ud802\udc00': 'L'
'\ud802\udc01': 'L'
'\ud802\udc02': 'L'
'\ud802\udc03': 'L'
'\ud802\udc04': 'L'
'\ud802\udc05': 'L'
'\ud802\udc08': 'L'
'\ud802\udc0a': 'L'
'\ud802\udc0b': 'L'
'\ud802\udc0c': 'L'
'\ud802\udc0d': 'L'
'\ud802\udc0e': 'L'
'\ud802\udc0f': 'L'
'\ud802\udc10': 'L'
'\ud802\udc11': 'L'
'\ud802\udc12': 'L'
'\ud802\udc13': 'L'
'\ud802\udc14': 'L'
'\ud802\udc15': 'L'
'\ud802\udc16': 'L'
'\ud802\udc17': 'L'
'\ud802\udc18': 'L'
'\ud802\udc19': 'L'
'\ud802\udc1a': 'L'
'\ud802\udc1b': 'L'
'\ud802\udc1c': 'L'
'\ud802\udc1d': 'L'
'\ud802\udc1e': 'L'
'\ud802\udc1f': 'L'
'\ud802\udc20': 'L'
'\ud802\udc21': 'L'
'\ud802\udc22': 'L'
'\ud802\udc23': 'L'
'\ud802\udc24': 'L'
'\ud802\udc25': 'L'
'\ud802\udc26': 'L'
'\ud802\udc27': 'L'
'\ud802\udc28': 'L'
'\ud802\udc29': 'L'
'\ud802\udc2a': 'L'
'\ud802\udc2b': 'L'
'\ud802\udc2c': 'L'
'\ud802\udc2d': 'L'
'\ud802\udc2e': 'L'
'\ud802\udc2f': 'L'
'\ud802\udc30': 'L'
'\ud802\udc31': 'L'
'\ud802\udc32': 'L'
'\ud802\udc33': 'L'
'\ud802\udc34': 'L'
'\ud802\udc35': 'L'
'\ud802\udc37': 'L'
'\ud802\udc38': 'L'
'\ud802\udc3c': 'L'
'\ud802\udc3f': 'L'
'\ud802\udc40': 'L'
'\ud802\udc41': 'L'
'\ud802\udc42': 'L'
'\ud802\udc43': 'L'
'\ud802\udc44': 'L'
'\ud802\udc45': 'L'
'\ud802\udc46': 'L'
'\ud802\udc47': 'L'
'\ud802\udc48': 'L'
'\ud802\udc49': 'L'
'\ud802\udc4a': 'L'
'\ud802\udc4b': 'L'
'\ud802\udc4c': 'L'
'\ud802\udc4d': 'L'
'\ud802\udc4e': 'L'
'\ud802\udc4f': 'L'
'\ud802\udc50': 'L'
'\ud802\udc51': 'L'
'\ud802\udc52': 'L'
'\ud802\udc53': 'L'
'\ud802\udc54': 'L'
'\ud802\udc55': 'L'
'\ud802\udc58': 'N'
'\ud802\udc59': 'N'
'\ud802\udc5a': 'N'
'\ud802\udc5b': 'N'
'\ud802\udc5c': 'N'
'\ud802\udc5d': 'N'
'\ud802\udc5e': 'N'
'\ud802\udc5f': 'N'
'\ud802\udc60': 'L'
'\ud802\udc61': 'L'
'\ud802\udc62': 'L'
'\ud802\udc63': 'L'
'\ud802\udc64': 'L'
'\ud802\udc65': 'L'
'\ud802\udc66': 'L'
'\ud802\udc67': 'L'
'\ud802\udc68': 'L'
'\ud802\udc69': 'L'
'\ud802\udc6a': 'L'
'\ud802\udc6b': 'L'
'\ud802\udc6c': 'L'
'\ud802\udc6d': 'L'
'\ud802\udc6e': 'L'
'\ud802\udc6f': 'L'
'\ud802\udc70': 'L'
'\ud802\udc71': 'L'
'\ud802\udc72': 'L'
'\ud802\udc73': 'L'
'\ud802\udc74': 'L'
'\ud802\udc75': 'L'
'\ud802\udc76': 'L'
'\ud802\udc79': 'N'
'\ud802\udc7a': 'N'
'\ud802\udc7b': 'N'
'\ud802\udc7c': 'N'
'\ud802\udc7d': 'N'
'\ud802\udc7e': 'N'
'\ud802\udc7f': 'N'
'\ud802\udc80': 'L'
'\ud802\udc81': 'L'
'\ud802\udc82': 'L'
'\ud802\udc83': 'L'
'\ud802\udc84': 'L'
'\ud802\udc85': 'L'
'\ud802\udc86': 'L'
'\ud802\udc87': 'L'
'\ud802\udc88': 'L'
'\ud802\udc89': 'L'
'\ud802\udc8a': 'L'
'\ud802\udc8b': 'L'
'\ud802\udc8c': 'L'
'\ud802\udc8d': 'L'
'\ud802\udc8e': 'L'
'\ud802\udc8f': 'L'
'\ud802\udc90': 'L'
'\ud802\udc91': 'L'
'\ud802\udc92': 'L'
'\ud802\udc93': 'L'
'\ud802\udc94': 'L'
'\ud802\udc95': 'L'
'\ud802\udc96': 'L'
'\ud802\udc97': 'L'
'\ud802\udc98': 'L'
'\ud802\udc99': 'L'
'\ud802\udc9a': 'L'
'\ud802\udc9b': 'L'
'\ud802\udc9c': 'L'
'\ud802\udc9d': 'L'
'\ud802\udc9e': 'L'
'\ud802\udca7': 'N'
'\ud802\udca8': 'N'
'\ud802\udca9': 'N'
'\ud802\udcaa': 'N'
'\ud802\udcab': 'N'
'\ud802\udcac': 'N'
'\ud802\udcad': 'N'
'\ud802\udcae': 'N'
'\ud802\udcaf': 'N'
'\ud802\udce0': 'L'
'\ud802\udce1': 'L'
'\ud802\udce2': 'L'
'\ud802\udce3': 'L'
'\ud802\udce4': 'L'
'\ud802\udce5': 'L'
'\ud802\udce6': 'L'
'\ud802\udce7': 'L'
'\ud802\udce8': 'L'
'\ud802\udce9': 'L'
'\ud802\udcea': 'L'
'\ud802\udceb': 'L'
'\ud802\udcec': 'L'
'\ud802\udced': 'L'
'\ud802\udcee': 'L'
'\ud802\udcef': 'L'
'\ud802\udcf0': 'L'
'\ud802\udcf1': 'L'
'\ud802\udcf2': 'L'
'\ud802\udcf4': 'L'
'\ud802\udcf5': 'L'
'\ud802\udcfb': 'N'
'\ud802\udcfc': 'N'
'\ud802\udcfd': 'N'
'\ud802\udcfe': 'N'
'\ud802\udcff': 'N'
'\ud802\udd00': 'L'
'\ud802\udd01': 'L'
'\ud802\udd02': 'L'
'\ud802\udd03': 'L'
'\ud802\udd04': 'L'
'\ud802\udd05': 'L'
'\ud802\udd06': 'L'
'\ud802\udd07': 'L'
'\ud802\udd08': 'L'
'\ud802\udd09': 'L'
'\ud802\udd0a': 'L'
'\ud802\udd0b': 'L'
'\ud802\udd0c': 'L'
'\ud802\udd0d': 'L'
'\ud802\udd0e': 'L'
'\ud802\udd0f': 'L'
'\ud802\udd10': 'L'
'\ud802\udd11': 'L'
'\ud802\udd12': 'L'
'\ud802\udd13': 'L'
'\ud802\udd14': 'L'
'\ud802\udd15': 'L'
'\ud802\udd16': 'N'
'\ud802\udd17': 'N'
'\ud802\udd18': 'N'
'\ud802\udd19': 'N'
'\ud802\udd1a': 'N'
'\ud802\udd1b': 'N'
'\ud802\udd20': 'L'
'\ud802\udd21': 'L'
'\ud802\udd22': 'L'
'\ud802\udd23': 'L'
'\ud802\udd24': 'L'
'\ud802\udd25': 'L'
'\ud802\udd26': 'L'
'\ud802\udd27': 'L'
'\ud802\udd28': 'L'
'\ud802\udd29': 'L'
'\ud802\udd2a': 'L'
'\ud802\udd2b': 'L'
'\ud802\udd2c': 'L'
'\ud802\udd2d': 'L'
'\ud802\udd2e': 'L'
'\ud802\udd2f': 'L'
'\ud802\udd30': 'L'
'\ud802\udd31': 'L'
'\ud802\udd32': 'L'
'\ud802\udd33': 'L'
'\ud802\udd34': 'L'
'\ud802\udd35': 'L'
'\ud802\udd36': 'L'
'\ud802\udd37': 'L'
'\ud802\udd38': 'L'
'\ud802\udd39': 'L'
'\ud802\udd80': 'L'
'\ud802\udd81': 'L'
'\ud802\udd82': 'L'
'\ud802\udd83': 'L'
'\ud802\udd84': 'L'
'\ud802\udd85': 'L'
'\ud802\udd86': 'L'
'\ud802\udd87': 'L'
'\ud802\udd88': 'L'
'\ud802\udd89': 'L'
'\ud802\udd8a': 'L'
'\ud802\udd8b': 'L'
'\ud802\udd8c': 'L'
'\ud802\udd8d': 'L'
'\ud802\udd8e': 'L'
'\ud802\udd8f': 'L'
'\ud802\udd90': 'L'
'\ud802\udd91': 'L'
'\ud802\udd92': 'L'
'\ud802\udd93': 'L'
'\ud802\udd94': 'L'
'\ud802\udd95': 'L'
'\ud802\udd96': 'L'
'\ud802\udd97': 'L'
'\ud802\udd98': 'L'
'\ud802\udd99': 'L'
'\ud802\udd9a': 'L'
'\ud802\udd9b': 'L'
'\ud802\udd9c': 'L'
'\ud802\udd9d': 'L'
'\ud802\udd9e': 'L'
'\ud802\udd9f': 'L'
'\ud802\udda0': 'L'
'\ud802\udda1': 'L'
'\ud802\udda2': 'L'
'\ud802\udda3': 'L'
'\ud802\udda4': 'L'
'\ud802\udda5': 'L'
'\ud802\udda6': 'L'
'\ud802\udda7': 'L'
'\ud802\udda8': 'L'
'\ud802\udda9': 'L'
'\ud802\uddaa': 'L'
'\ud802\uddab': 'L'
'\ud802\uddac': 'L'
'\ud802\uddad': 'L'
'\ud802\uddae': 'L'
'\ud802\uddaf': 'L'
'\ud802\uddb0': 'L'
'\ud802\uddb1': 'L'
'\ud802\uddb2': 'L'
'\ud802\uddb3': 'L'
'\ud802\uddb4': 'L'
'\ud802\uddb5': 'L'
'\ud802\uddb6': 'L'
'\ud802\uddb7': 'L'
'\ud802\uddbc': 'N'
'\ud802\uddbd': 'N'
'\ud802\uddbe': 'L'
'\ud802\uddbf': 'L'
'\ud802\uddc0': 'N'
'\ud802\uddc1': 'N'
'\ud802\uddc2': 'N'
'\ud802\uddc3': 'N'
'\ud802\uddc4': 'N'
'\ud802\uddc5': 'N'
'\ud802\uddc6': 'N'
'\ud802\uddc7': 'N'
'\ud802\uddc8': 'N'
'\ud802\uddc9': 'N'
'\ud802\uddca': 'N'
'\ud802\uddcb': 'N'
'\ud802\uddcc': 'N'
'\ud802\uddcd': 'N'
'\ud802\uddce': 'N'
'\ud802\uddcf': 'N'
'\ud802\uddd2': 'N'
'\ud802\uddd3': 'N'
'\ud802\uddd4': 'N'
'\ud802\uddd5': 'N'
'\ud802\uddd6': 'N'
'\ud802\uddd7': 'N'
'\ud802\uddd8': 'N'
'\ud802\uddd9': 'N'
'\ud802\uddda': 'N'
'\ud802\udddb': 'N'
'\ud802\udddc': 'N'
'\ud802\udddd': 'N'
'\ud802\uddde': 'N'
'\ud802\udddf': 'N'
'\ud802\udde0': 'N'
'\ud802\udde1': 'N'
'\ud802\udde2': 'N'
'\ud802\udde3': 'N'
'\ud802\udde4': 'N'
'\ud802\udde5': 'N'
'\ud802\udde6': 'N'
'\ud802\udde7': 'N'
'\ud802\udde8': 'N'
'\ud802\udde9': 'N'
'\ud802\uddea': 'N'
'\ud802\uddeb': 'N'
'\ud802\uddec': 'N'
'\ud802\udded': 'N'
'\ud802\uddee': 'N'
'\ud802\uddef': 'N'
'\ud802\uddf0': 'N'
'\ud802\uddf1': 'N'
'\ud802\uddf2': 'N'
'\ud802\uddf3': 'N'
'\ud802\uddf4': 'N'
'\ud802\uddf5': 'N'
'\ud802\uddf6': 'N'
'\ud802\uddf7': 'N'
'\ud802\uddf8': 'N'
'\ud802\uddf9': 'N'
'\ud802\uddfa': 'N'
'\ud802\uddfb': 'N'
'\ud802\uddfc': 'N'
'\ud802\uddfd': 'N'
'\ud802\uddfe': 'N'
'\ud802\uddff': 'N'
'\ud802\ude00': 'L'
'\ud802\ude10': 'L'
'\ud802\ude11': 'L'
'\ud802\ude12': 'L'
'\ud802\ude13': 'L'
'\ud802\ude15': 'L'
'\ud802\ude16': 'L'
'\ud802\ude17': 'L'
'\ud802\ude19': 'L'
'\ud802\ude1a': 'L'
'\ud802\ude1b': 'L'
'\ud802\ude1c': 'L'
'\ud802\ude1d': 'L'
'\ud802\ude1e': 'L'
'\ud802\ude1f': 'L'
'\ud802\ude20': 'L'
'\ud802\ude21': 'L'
'\ud802\ude22': 'L'
'\ud802\ude23': 'L'
'\ud802\ude24': 'L'
'\ud802\ude25': 'L'
'\ud802\ude26': 'L'
'\ud802\ude27': 'L'
'\ud802\ude28': 'L'
'\ud802\ude29': 'L'
'\ud802\ude2a': 'L'
'\ud802\ude2b': 'L'
'\ud802\ude2c': 'L'
'\ud802\ude2d': 'L'
'\ud802\ude2e': 'L'
'\ud802\ude2f': 'L'
'\ud802\ude30': 'L'
'\ud802\ude31': 'L'
'\ud802\ude32': 'L'
'\ud802\ude33': 'L'
'\ud802\ude40': 'N'
'\ud802\ude41': 'N'
'\ud802\ude42': 'N'
'\ud802\ude43': 'N'
'\ud802\ude44': 'N'
'\ud802\ude45': 'N'
'\ud802\ude46': 'N'
'\ud802\ude47': 'N'
'\ud802\ude60': 'L'
'\ud802\ude61': 'L'
'\ud802\ude62': 'L'
'\ud802\ude63': 'L'
'\ud802\ude64': 'L'
'\ud802\ude65': 'L'
'\ud802\ude66': 'L'
'\ud802\ude67': 'L'
'\ud802\ude68': 'L'
'\ud802\ude69': 'L'
'\ud802\ude6a': 'L'
'\ud802\ude6b': 'L'
'\ud802\ude6c': 'L'
'\ud802\ude6d': 'L'
'\ud802\ude6e': 'L'
'\ud802\ude6f': 'L'
'\ud802\ude70': 'L'
'\ud802\ude71': 'L'
'\ud802\ude72': 'L'
'\ud802\ude73': 'L'
'\ud802\ude74': 'L'
'\ud802\ude75': 'L'
'\ud802\ude76': 'L'
'\ud802\ude77': 'L'
'\ud802\ude78': 'L'
'\ud802\ude79': 'L'
'\ud802\ude7a': 'L'
'\ud802\ude7b': 'L'
'\ud802\ude7c': 'L'
'\ud802\ude7d': 'N'
'\ud802\ude7e': 'N'
'\ud802\ude80': 'L'
'\ud802\ude81': 'L'
'\ud802\ude82': 'L'
'\ud802\ude83': 'L'
'\ud802\ude84': 'L'
'\ud802\ude85': 'L'
'\ud802\ude86': 'L'
'\ud802\ude87': 'L'
'\ud802\ude88': 'L'
'\ud802\ude89': 'L'
'\ud802\ude8a': 'L'
'\ud802\ude8b': 'L'
'\ud802\ude8c': 'L'
'\ud802\ude8d': 'L'
'\ud802\ude8e': 'L'
'\ud802\ude8f': 'L'
'\ud802\ude90': 'L'
'\ud802\ude91': 'L'
'\ud802\ude92': 'L'
'\ud802\ude93': 'L'
'\ud802\ude94': 'L'
'\ud802\ude95': 'L'
'\ud802\ude96': 'L'
'\ud802\ude97': 'L'
'\ud802\ude98': 'L'
'\ud802\ude99': 'L'
'\ud802\ude9a': 'L'
'\ud802\ude9b': 'L'
'\ud802\ude9c': 'L'
'\ud802\ude9d': 'N'
'\ud802\ude9e': 'N'
'\ud802\ude9f': 'N'
'\ud802\udec0': 'L'
'\ud802\udec1': 'L'
'\ud802\udec2': 'L'
'\ud802\udec3': 'L'
'\ud802\udec4': 'L'
'\ud802\udec5': 'L'
'\ud802\udec6': 'L'
'\ud802\udec7': 'L'
'\ud802\udec9': 'L'
'\ud802\udeca': 'L'
'\ud802\udecb': 'L'
'\ud802\udecc': 'L'
'\ud802\udecd': 'L'
'\ud802\udece': 'L'
'\ud802\udecf': 'L'
'\ud802\uded0': 'L'
'\ud802\uded1': 'L'
'\ud802\uded2': 'L'
'\ud802\uded3': 'L'
'\ud802\uded4': 'L'
'\ud802\uded5': 'L'
'\ud802\uded6': 'L'
'\ud802\uded7': 'L'
'\ud802\uded8': 'L'
'\ud802\uded9': 'L'
'\ud802\udeda': 'L'
'\ud802\udedb': 'L'
'\ud802\udedc': 'L'
'\ud802\udedd': 'L'
'\ud802\udede': 'L'
'\ud802\udedf': 'L'
'\ud802\udee0': 'L'
'\ud802\udee1': 'L'
'\ud802\udee2': 'L'
'\ud802\udee3': 'L'
'\ud802\udee4': 'L'
'\ud802\udeeb': 'N'
'\ud802\udeec': 'N'
'\ud802\udeed': 'N'
'\ud802\udeee': 'N'
'\ud802\udeef': 'N'
'\ud802\udf00': 'L'
'\ud802\udf01': 'L'
'\ud802\udf02': 'L'
'\ud802\udf03': 'L'
'\ud802\udf04': 'L'
'\ud802\udf05': 'L'
'\ud802\udf06': 'L'
'\ud802\udf07': 'L'
'\ud802\udf08': 'L'
'\ud802\udf09': 'L'
'\ud802\udf0a': 'L'
'\ud802\udf0b': 'L'
'\ud802\udf0c': 'L'
'\ud802\udf0d': 'L'
'\ud802\udf0e': 'L'
'\ud802\udf0f': 'L'
'\ud802\udf10': 'L'
'\ud802\udf11': 'L'
'\ud802\udf12': 'L'
'\ud802\udf13': 'L'
'\ud802\udf14': 'L'
'\ud802\udf15': 'L'
'\ud802\udf16': 'L'
'\ud802\udf17': 'L'
'\ud802\udf18': 'L'
'\ud802\udf19': 'L'
'\ud802\udf1a': 'L'
'\ud802\udf1b': 'L'
'\ud802\udf1c': 'L'
'\ud802\udf1d': 'L'
'\ud802\udf1e': 'L'
'\ud802\udf1f': 'L'
'\ud802\udf20': 'L'
'\ud802\udf21': 'L'
'\ud802\udf22': 'L'
'\ud802\udf23': 'L'
'\ud802\udf24': 'L'
'\ud802\udf25': 'L'
'\ud802\udf26': 'L'
'\ud802\udf27': 'L'
'\ud802\udf28': 'L'
'\ud802\udf29': 'L'
'\ud802\udf2a': 'L'
'\ud802\udf2b': 'L'
'\ud802\udf2c': 'L'
'\ud802\udf2d': 'L'
'\ud802\udf2e': 'L'
'\ud802\udf2f': 'L'
'\ud802\udf30': 'L'
'\ud802\udf31': 'L'
'\ud802\udf32': 'L'
'\ud802\udf33': 'L'
'\ud802\udf34': 'L'
'\ud802\udf35': 'L'
'\ud802\udf40': 'L'
'\ud802\udf41': 'L'
'\ud802\udf42': 'L'
'\ud802\udf43': 'L'
'\ud802\udf44': 'L'
'\ud802\udf45': 'L'
'\ud802\udf46': 'L'
'\ud802\udf47': 'L'
'\ud802\udf48': 'L'
'\ud802\udf49': 'L'
'\ud802\udf4a': 'L'
'\ud802\udf4b': 'L'
'\ud802\udf4c': 'L'
'\ud802\udf4d': 'L'
'\ud802\udf4e': 'L'
'\ud802\udf4f': 'L'
'\ud802\udf50': 'L'
'\ud802\udf51': 'L'
'\ud802\udf52': 'L'
'\ud802\udf53': 'L'
'\ud802\udf54': 'L'
'\ud802\udf55': 'L'
'\ud802\udf58': 'N'
'\ud802\udf59': 'N'
'\ud802\udf5a': 'N'
'\ud802\udf5b': 'N'
'\ud802\udf5c': 'N'
'\ud802\udf5d': 'N'
'\ud802\udf5e': 'N'
'\ud802\udf5f': 'N'
'\ud802\udf60': 'L'
'\ud802\udf61': 'L'
'\ud802\udf62': 'L'
'\ud802\udf63': 'L'
'\ud802\udf64': 'L'
'\ud802\udf65': 'L'
'\ud802\udf66': 'L'
'\ud802\udf67': 'L'
'\ud802\udf68': 'L'
'\ud802\udf69': 'L'
'\ud802\udf6a': 'L'
'\ud802\udf6b': 'L'
'\ud802\udf6c': 'L'
'\ud802\udf6d': 'L'
'\ud802\udf6e': 'L'
'\ud802\udf6f': 'L'
'\ud802\udf70': 'L'
'\ud802\udf71': 'L'
'\ud802\udf72': 'L'
'\ud802\udf78': 'N'
'\ud802\udf79': 'N'
'\ud802\udf7a': 'N'
'\ud802\udf7b': 'N'
'\ud802\udf7c': 'N'
'\ud802\udf7d': 'N'
'\ud802\udf7e': 'N'
'\ud802\udf7f': 'N'
'\ud802\udf80': 'L'
'\ud802\udf81': 'L'
'\ud802\udf82': 'L'
'\ud802\udf83': 'L'
'\ud802\udf84': 'L'
'\ud802\udf85': 'L'
'\ud802\udf86': 'L'
'\ud802\udf87': 'L'
'\ud802\udf88': 'L'
'\ud802\udf89': 'L'
'\ud802\udf8a': 'L'
'\ud802\udf8b': 'L'
'\ud802\udf8c': 'L'
'\ud802\udf8d': 'L'
'\ud802\udf8e': 'L'
'\ud802\udf8f': 'L'
'\ud802\udf90': 'L'
'\ud802\udf91': 'L'
'\ud802\udfa9': 'N'
'\ud802\udfaa': 'N'
'\ud802\udfab': 'N'
'\ud802\udfac': 'N'
'\ud802\udfad': 'N'
'\ud802\udfae': 'N'
'\ud802\udfaf': 'N'
'\ud803\udc00': 'L'
'\ud803\udc01': 'L'
'\ud803\udc02': 'L'
'\ud803\udc03': 'L'
'\ud803\udc04': 'L'
'\ud803\udc05': 'L'
'\ud803\udc06': 'L'
'\ud803\udc07': 'L'
'\ud803\udc08': 'L'
'\ud803\udc09': 'L'
'\ud803\udc0a': 'L'
'\ud803\udc0b': 'L'
'\ud803\udc0c': 'L'
'\ud803\udc0d': 'L'
'\ud803\udc0e': 'L'
'\ud803\udc0f': 'L'
'\ud803\udc10': 'L'
'\ud803\udc11': 'L'
'\ud803\udc12': 'L'
'\ud803\udc13': 'L'
'\ud803\udc14': 'L'
'\ud803\udc15': 'L'
'\ud803\udc16': 'L'
'\ud803\udc17': 'L'
'\ud803\udc18': 'L'
'\ud803\udc19': 'L'
'\ud803\udc1a': 'L'
'\ud803\udc1b': 'L'
'\ud803\udc1c': 'L'
'\ud803\udc1d': 'L'
'\ud803\udc1e': 'L'
'\ud803\udc1f': 'L'
'\ud803\udc20': 'L'
'\ud803\udc21': 'L'
'\ud803\udc22': 'L'
'\ud803\udc23': 'L'
'\ud803\udc24': 'L'
'\ud803\udc25': 'L'
'\ud803\udc26': 'L'
'\ud803\udc27': 'L'
'\ud803\udc28': 'L'
'\ud803\udc29': 'L'
'\ud803\udc2a': 'L'
'\ud803\udc2b': 'L'
'\ud803\udc2c': 'L'
'\ud803\udc2d': 'L'
'\ud803\udc2e': 'L'
'\ud803\udc2f': 'L'
'\ud803\udc30': 'L'
'\ud803\udc31': 'L'
'\ud803\udc32': 'L'
'\ud803\udc33': 'L'
'\ud803\udc34': 'L'
'\ud803\udc35': 'L'
'\ud803\udc36': 'L'
'\ud803\udc37': 'L'
'\ud803\udc38': 'L'
'\ud803\udc39': 'L'
'\ud803\udc3a': 'L'
'\ud803\udc3b': 'L'
'\ud803\udc3c': 'L'
'\ud803\udc3d': 'L'
'\ud803\udc3e': 'L'
'\ud803\udc3f': 'L'
'\ud803\udc40': 'L'
'\ud803\udc41': 'L'
'\ud803\udc42': 'L'
'\ud803\udc43': 'L'
'\ud803\udc44': 'L'
'\ud803\udc45': 'L'
'\ud803\udc46': 'L'
'\ud803\udc47': 'L'
'\ud803\udc48': 'L'
'\ud803\udc80': 'Lu'
'\ud803\udc81': 'Lu'
'\ud803\udc82': 'Lu'
'\ud803\udc83': 'Lu'
'\ud803\udc84': 'Lu'
'\ud803\udc85': 'Lu'
'\ud803\udc86': 'Lu'
'\ud803\udc87': 'Lu'
'\ud803\udc88': 'Lu'
'\ud803\udc89': 'Lu'
'\ud803\udc8a': 'Lu'
'\ud803\udc8b': 'Lu'
'\ud803\udc8c': 'Lu'
'\ud803\udc8d': 'Lu'
'\ud803\udc8e': 'Lu'
'\ud803\udc8f': 'Lu'
'\ud803\udc90': 'Lu'
'\ud803\udc91': 'Lu'
'\ud803\udc92': 'Lu'
'\ud803\udc93': 'Lu'
'\ud803\udc94': 'Lu'
'\ud803\udc95': 'Lu'
'\ud803\udc96': 'Lu'
'\ud803\udc97': 'Lu'
'\ud803\udc98': 'Lu'
'\ud803\udc99': 'Lu'
'\ud803\udc9a': 'Lu'
'\ud803\udc9b': 'Lu'
'\ud803\udc9c': 'Lu'
'\ud803\udc9d': 'Lu'
'\ud803\udc9e': 'Lu'
'\ud803\udc9f': 'Lu'
'\ud803\udca0': 'Lu'
'\ud803\udca1': 'Lu'
'\ud803\udca2': 'Lu'
'\ud803\udca3': 'Lu'
'\ud803\udca4': 'Lu'
'\ud803\udca5': 'Lu'
'\ud803\udca6': 'Lu'
'\ud803\udca7': 'Lu'
'\ud803\udca8': 'Lu'
'\ud803\udca9': 'Lu'
'\ud803\udcaa': 'Lu'
'\ud803\udcab': 'Lu'
'\ud803\udcac': 'Lu'
'\ud803\udcad': 'Lu'
'\ud803\udcae': 'Lu'
'\ud803\udcaf': 'Lu'
'\ud803\udcb0': 'Lu'
'\ud803\udcb1': 'Lu'
'\ud803\udcb2': 'Lu'
'\ud803\udcc0': 'L'
'\ud803\udcc1': 'L'
'\ud803\udcc2': 'L'
'\ud803\udcc3': 'L'
'\ud803\udcc4': 'L'
'\ud803\udcc5': 'L'
'\ud803\udcc6': 'L'
'\ud803\udcc7': 'L'
'\ud803\udcc8': 'L'
'\ud803\udcc9': 'L'
'\ud803\udcca': 'L'
'\ud803\udccb': 'L'
'\ud803\udccc': 'L'
'\ud803\udccd': 'L'
'\ud803\udcce': 'L'
'\ud803\udccf': 'L'
'\ud803\udcd0': 'L'
'\ud803\udcd1': 'L'
'\ud803\udcd2': 'L'
'\ud803\udcd3': 'L'
'\ud803\udcd4': 'L'
'\ud803\udcd5': 'L'
'\ud803\udcd6': 'L'
'\ud803\udcd7': 'L'
'\ud803\udcd8': 'L'
'\ud803\udcd9': 'L'
'\ud803\udcda': 'L'
'\ud803\udcdb': 'L'
'\ud803\udcdc': 'L'
'\ud803\udcdd': 'L'
'\ud803\udcde': 'L'
'\ud803\udcdf': 'L'
'\ud803\udce0': 'L'
'\ud803\udce1': 'L'
'\ud803\udce2': 'L'
'\ud803\udce3': 'L'
'\ud803\udce4': 'L'
'\ud803\udce5': 'L'
'\ud803\udce6': 'L'
'\ud803\udce7': 'L'
'\ud803\udce8': 'L'
'\ud803\udce9': 'L'
'\ud803\udcea': 'L'
'\ud803\udceb': 'L'
'\ud803\udcec': 'L'
'\ud803\udced': 'L'
'\ud803\udcee': 'L'
'\ud803\udcef': 'L'
'\ud803\udcf0': 'L'
'\ud803\udcf1': 'L'
'\ud803\udcf2': 'L'
'\ud803\udcfa': 'N'
'\ud803\udcfb': 'N'
'\ud803\udcfc': 'N'
'\ud803\udcfd': 'N'
'\ud803\udcfe': 'N'
'\ud803\udcff': 'N'
'\ud803\ude60': 'N'
'\ud803\ude61': 'N'
'\ud803\ude62': 'N'
'\ud803\ude63': 'N'
'\ud803\ude64': 'N'
'\ud803\ude65': 'N'
'\ud803\ude66': 'N'
'\ud803\ude67': 'N'
'\ud803\ude68': 'N'
'\ud803\ude69': 'N'
'\ud803\ude6a': 'N'
'\ud803\ude6b': 'N'
'\ud803\ude6c': 'N'
'\ud803\ude6d': 'N'
'\ud803\ude6e': 'N'
'\ud803\ude6f': 'N'
'\ud803\ude70': 'N'
'\ud803\ude71': 'N'
'\ud803\ude72': 'N'
'\ud803\ude73': 'N'
'\ud803\ude74': 'N'
'\ud803\ude75': 'N'
'\ud803\ude76': 'N'
'\ud803\ude77': 'N'
'\ud803\ude78': 'N'
'\ud803\ude79': 'N'
'\ud803\ude7a': 'N'
'\ud803\ude7b': 'N'
'\ud803\ude7c': 'N'
'\ud803\ude7d': 'N'
'\ud803\ude7e': 'N'
'\ud804\udc03': 'L'
'\ud804\udc04': 'L'
'\ud804\udc05': 'L'
'\ud804\udc06': 'L'
'\ud804\udc07': 'L'
'\ud804\udc08': 'L'
'\ud804\udc09': 'L'
'\ud804\udc0a': 'L'
'\ud804\udc0b': 'L'
'\ud804\udc0c': 'L'
'\ud804\udc0d': 'L'
'\ud804\udc0e': 'L'
'\ud804\udc0f': 'L'
'\ud804\udc10': 'L'
'\ud804\udc11': 'L'
'\ud804\udc12': 'L'
'\ud804\udc13': 'L'
'\ud804\udc14': 'L'
'\ud804\udc15': 'L'
'\ud804\udc16': 'L'
'\ud804\udc17': 'L'
'\ud804\udc18': 'L'
'\ud804\udc19': 'L'
'\ud804\udc1a': 'L'
'\ud804\udc1b': 'L'
'\ud804\udc1c': 'L'
'\ud804\udc1d': 'L'
'\ud804\udc1e': 'L'
'\ud804\udc1f': 'L'
'\ud804\udc20': 'L'
'\ud804\udc21': 'L'
'\ud804\udc22': 'L'
'\ud804\udc23': 'L'
'\ud804\udc24': 'L'
'\ud804\udc25': 'L'
'\ud804\udc26': 'L'
'\ud804\udc27': 'L'
'\ud804\udc28': 'L'
'\ud804\udc29': 'L'
'\ud804\udc2a': 'L'
'\ud804\udc2b': 'L'
'\ud804\udc2c': 'L'
'\ud804\udc2d': 'L'
'\ud804\udc2e': 'L'
'\ud804\udc2f': 'L'
'\ud804\udc30': 'L'
'\ud804\udc31': 'L'
'\ud804\udc32': 'L'
'\ud804\udc33': 'L'
'\ud804\udc34': 'L'
'\ud804\udc35': 'L'
'\ud804\udc36': 'L'
'\ud804\udc37': 'L'
'\ud804\udc52': 'N'
'\ud804\udc53': 'N'
'\ud804\udc54': 'N'
'\ud804\udc55': 'N'
'\ud804\udc56': 'N'
'\ud804\udc57': 'N'
'\ud804\udc58': 'N'
'\ud804\udc59': 'N'
'\ud804\udc5a': 'N'
'\ud804\udc5b': 'N'
'\ud804\udc5c': 'N'
'\ud804\udc5d': 'N'
'\ud804\udc5e': 'N'
'\ud804\udc5f': 'N'
'\ud804\udc60': 'N'
'\ud804\udc61': 'N'
'\ud804\udc62': 'N'
'\ud804\udc63': 'N'
'\ud804\udc64': 'N'
'\ud804\udc65': 'N'
'\ud804\udc66': 'N'
'\ud804\udc67': 'N'
'\ud804\udc68': 'N'
'\ud804\udc69': 'N'
'\ud804\udc6a': 'N'
'\ud804\udc6b': 'N'
'\ud804\udc6c': 'N'
'\ud804\udc6d': 'N'
'\ud804\udc6e': 'N'
'\ud804\udc6f': 'N'
'\ud804\udc83': 'L'
'\ud804\udc84': 'L'
'\ud804\udc85': 'L'
'\ud804\udc86': 'L'
'\ud804\udc87': 'L'
'\ud804\udc88': 'L'
'\ud804\udc89': 'L'
'\ud804\udc8a': 'L'
'\ud804\udc8b': 'L'
'\ud804\udc8c': 'L'
'\ud804\udc8d': 'L'
'\ud804\udc8e': 'L'
'\ud804\udc8f': 'L'
'\ud804\udc90': 'L'
'\ud804\udc91': 'L'
'\ud804\udc92': 'L'
'\ud804\udc93': 'L'
'\ud804\udc94': 'L'
'\ud804\udc95': 'L'
'\ud804\udc96': 'L'
'\ud804\udc97': 'L'
'\ud804\udc98': 'L'
'\ud804\udc99': 'L'
'\ud804\udc9a': 'L'
'\ud804\udc9b': 'L'
'\ud804\udc9c': 'L'
'\ud804\udc9d': 'L'
'\ud804\udc9e': 'L'
'\ud804\udc9f': 'L'
'\ud804\udca0': 'L'
'\ud804\udca1': 'L'
'\ud804\udca2': 'L'
'\ud804\udca3': 'L'
'\ud804\udca4': 'L'
'\ud804\udca5': 'L'
'\ud804\udca6': 'L'
'\ud804\udca7': 'L'
'\ud804\udca8': 'L'
'\ud804\udca9': 'L'
'\ud804\udcaa': 'L'
'\ud804\udcab': 'L'
'\ud804\udcac': 'L'
'\ud804\udcad': 'L'
'\ud804\udcae': 'L'
'\ud804\udcaf': 'L'
'\ud804\udcd0': 'L'
'\ud804\udcd1': 'L'
'\ud804\udcd2': 'L'
'\ud804\udcd3': 'L'
'\ud804\udcd4': 'L'
'\ud804\udcd5': 'L'
'\ud804\udcd6': 'L'
'\ud804\udcd7': 'L'
'\ud804\udcd8': 'L'
'\ud804\udcd9': 'L'
'\ud804\udcda': 'L'
'\ud804\udcdb': 'L'
'\ud804\udcdc': 'L'
'\ud804\udcdd': 'L'
'\ud804\udcde': 'L'
'\ud804\udcdf': 'L'
'\ud804\udce0': 'L'
'\ud804\udce1': 'L'
'\ud804\udce2': 'L'
'\ud804\udce3': 'L'
'\ud804\udce4': 'L'
'\ud804\udce5': 'L'
'\ud804\udce6': 'L'
'\ud804\udce7': 'L'
'\ud804\udce8': 'L'
'\ud804\udcf0': 'N'
'\ud804\udcf1': 'N'
'\ud804\udcf2': 'N'
'\ud804\udcf3': 'N'
'\ud804\udcf4': 'N'
'\ud804\udcf5': 'N'
'\ud804\udcf6': 'N'
'\ud804\udcf7': 'N'
'\ud804\udcf8': 'N'
'\ud804\udcf9': 'N'
'\ud804\udd03': 'L'
'\ud804\udd04': 'L'
'\ud804\udd05': 'L'
'\ud804\udd06': 'L'
'\ud804\udd07': 'L'
'\ud804\udd08': 'L'
'\ud804\udd09': 'L'
'\ud804\udd0a': 'L'
'\ud804\udd0b': 'L'
'\ud804\udd0c': 'L'
'\ud804\udd0d': 'L'
'\ud804\udd0e': 'L'
'\ud804\udd0f': 'L'
'\ud804\udd10': 'L'
'\ud804\udd11': 'L'
'\ud804\udd12': 'L'
'\ud804\udd13': 'L'
'\ud804\udd14': 'L'
'\ud804\udd15': 'L'
'\ud804\udd16': 'L'
'\ud804\udd17': 'L'
'\ud804\udd18': 'L'
'\ud804\udd19': 'L'
'\ud804\udd1a': 'L'
'\ud804\udd1b': 'L'
'\ud804\udd1c': 'L'
'\ud804\udd1d': 'L'
'\ud804\udd1e': 'L'
'\ud804\udd1f': 'L'
'\ud804\udd20': 'L'
'\ud804\udd21': 'L'
'\ud804\udd22': 'L'
'\ud804\udd23': 'L'
'\ud804\udd24': 'L'
'\ud804\udd25': 'L'
'\ud804\udd26': 'L'
'\ud804\udd36': 'N'
'\ud804\udd37': 'N'
'\ud804\udd38': 'N'
'\ud804\udd39': 'N'
'\ud804\udd3a': 'N'
'\ud804\udd3b': 'N'
'\ud804\udd3c': 'N'
'\ud804\udd3d': 'N'
'\ud804\udd3e': 'N'
'\ud804\udd3f': 'N'
'\ud804\udd50': 'L'
'\ud804\udd51': 'L'
'\ud804\udd52': 'L'
'\ud804\udd53': 'L'
'\ud804\udd54': 'L'
'\ud804\udd55': 'L'
'\ud804\udd56': 'L'
'\ud804\udd57': 'L'
'\ud804\udd58': 'L'
'\ud804\udd59': 'L'
'\ud804\udd5a': 'L'
'\ud804\udd5b': 'L'
'\ud804\udd5c': 'L'
'\ud804\udd5d': 'L'
'\ud804\udd5e': 'L'
'\ud804\udd5f': 'L'
'\ud804\udd60': 'L'
'\ud804\udd61': 'L'
'\ud804\udd62': 'L'
'\ud804\udd63': 'L'
'\ud804\udd64': 'L'
'\ud804\udd65': 'L'
'\ud804\udd66': 'L'
'\ud804\udd67': 'L'
'\ud804\udd68': 'L'
'\ud804\udd69': 'L'
'\ud804\udd6a': 'L'
'\ud804\udd6b': 'L'
'\ud804\udd6c': 'L'
'\ud804\udd6d': 'L'
'\ud804\udd6e': 'L'
'\ud804\udd6f': 'L'
'\ud804\udd70': 'L'
'\ud804\udd71': 'L'
'\ud804\udd72': 'L'
'\ud804\udd76': 'L'
'\ud804\udd83': 'L'
'\ud804\udd84': 'L'
'\ud804\udd85': 'L'
'\ud804\udd86': 'L'
'\ud804\udd87': 'L'
'\ud804\udd88': 'L'
'\ud804\udd89': 'L'
'\ud804\udd8a': 'L'
'\ud804\udd8b': 'L'
'\ud804\udd8c': 'L'
'\ud804\udd8d': 'L'
'\ud804\udd8e': 'L'
'\ud804\udd8f': 'L'
'\ud804\udd90': 'L'
'\ud804\udd91': 'L'
'\ud804\udd92': 'L'
'\ud804\udd93': 'L'
'\ud804\udd94': 'L'
'\ud804\udd95': 'L'
'\ud804\udd96': 'L'
'\ud804\udd97': 'L'
'\ud804\udd98': 'L'
'\ud804\udd99': 'L'
'\ud804\udd9a': 'L'
'\ud804\udd9b': 'L'
'\ud804\udd9c': 'L'
'\ud804\udd9d': 'L'
'\ud804\udd9e': 'L'
'\ud804\udd9f': 'L'
'\ud804\udda0': 'L'
'\ud804\udda1': 'L'
'\ud804\udda2': 'L'
'\ud804\udda3': 'L'
'\ud804\udda4': 'L'
'\ud804\udda5': 'L'
'\ud804\udda6': 'L'
'\ud804\udda7': 'L'
'\ud804\udda8': 'L'
'\ud804\udda9': 'L'
'\ud804\uddaa': 'L'
'\ud804\uddab': 'L'
'\ud804\uddac': 'L'
'\ud804\uddad': 'L'
'\ud804\uddae': 'L'
'\ud804\uddaf': 'L'
'\ud804\uddb0': 'L'
'\ud804\uddb1': 'L'
'\ud804\uddb2': 'L'
'\ud804\uddc1': 'L'
'\ud804\uddc2': 'L'
'\ud804\uddc3': 'L'
'\ud804\uddc4': 'L'
'\ud804\uddd0': 'N'
'\ud804\uddd1': 'N'
'\ud804\uddd2': 'N'
'\ud804\uddd3': 'N'
'\ud804\uddd4': 'N'
'\ud804\uddd5': 'N'
'\ud804\uddd6': 'N'
'\ud804\uddd7': 'N'
'\ud804\uddd8': 'N'
'\ud804\uddd9': 'N'
'\ud804\uddda': 'L'
'\ud804\udddc': 'L'
'\ud804\udde1': 'N'
'\ud804\udde2': 'N'
'\ud804\udde3': 'N'
'\ud804\udde4': 'N'
'\ud804\udde5': 'N'
'\ud804\udde6': 'N'
'\ud804\udde7': 'N'
'\ud804\udde8': 'N'
'\ud804\udde9': 'N'
'\ud804\uddea': 'N'
'\ud804\uddeb': 'N'
'\ud804\uddec': 'N'
'\ud804\udded': 'N'
'\ud804\uddee': 'N'
'\ud804\uddef': 'N'
'\ud804\uddf0': 'N'
'\ud804\uddf1': 'N'
'\ud804\uddf2': 'N'
'\ud804\uddf3': 'N'
'\ud804\uddf4': 'N'
'\ud804\ude00': 'L'
'\ud804\ude01': 'L'
'\ud804\ude02': 'L'
'\ud804\ude03': 'L'
'\ud804\ude04': 'L'
'\ud804\ude05': 'L'
'\ud804\ude06': 'L'
'\ud804\ude07': 'L'
'\ud804\ude08': 'L'
'\ud804\ude09': 'L'
'\ud804\ude0a': 'L'
'\ud804\ude0b': 'L'
'\ud804\ude0c': 'L'
'\ud804\ude0d': 'L'
'\ud804\ude0e': 'L'
'\ud804\ude0f': 'L'
'\ud804\ude10': 'L'
'\ud804\ude11': 'L'
'\ud804\ude13': 'L'
'\ud804\ude14': 'L'
'\ud804\ude15': 'L'
'\ud804\ude16': 'L'
'\ud804\ude17': 'L'
'\ud804\ude18': 'L'
'\ud804\ude19': 'L'
'\ud804\ude1a': 'L'
'\ud804\ude1b': 'L'
'\ud804\ude1c': 'L'
'\ud804\ude1d': 'L'
'\ud804\ude1e': 'L'
'\ud804\ude1f': 'L'
'\ud804\ude20': 'L'
'\ud804\ude21': 'L'
'\ud804\ude22': 'L'
'\ud804\ude23': 'L'
'\ud804\ude24': 'L'
'\ud804\ude25': 'L'
'\ud804\ude26': 'L'
'\ud804\ude27': 'L'
'\ud804\ude28': 'L'
'\ud804\ude29': 'L'
'\ud804\ude2a': 'L'
'\ud804\ude2b': 'L'
'\ud804\ude80': 'L'
'\ud804\ude81': 'L'
'\ud804\ude82': 'L'
'\ud804\ude83': 'L'
'\ud804\ude84': 'L'
'\ud804\ude85': 'L'
'\ud804\ude86': 'L'
'\ud804\ude88': 'L'
'\ud804\ude8a': 'L'
'\ud804\ude8b': 'L'
'\ud804\ude8c': 'L'
'\ud804\ude8d': 'L'
'\ud804\ude8f': 'L'
'\ud804\ude90': 'L'
'\ud804\ude91': 'L'
'\ud804\ude92': 'L'
'\ud804\ude93': 'L'
'\ud804\ude94': 'L'
'\ud804\ude95': 'L'
'\ud804\ude96': 'L'
'\ud804\ude97': 'L'
'\ud804\ude98': 'L'
'\ud804\ude99': 'L'
'\ud804\ude9a': 'L'
'\ud804\ude9b': 'L'
'\ud804\ude9c': 'L'
'\ud804\ude9d': 'L'
'\ud804\ude9f': 'L'
'\ud804\udea0': 'L'
'\ud804\udea1': 'L'
'\ud804\udea2': 'L'
'\ud804\udea3': 'L'
'\ud804\udea4': 'L'
'\ud804\udea5': 'L'
'\ud804\udea6': 'L'
'\ud804\udea7': 'L'
'\ud804\udea8': 'L'
'\ud804\udeb0': 'L'
'\ud804\udeb1': 'L'
'\ud804\udeb2': 'L'
'\ud804\udeb3': 'L'
'\ud804\udeb4': 'L'
'\ud804\udeb5': 'L'
'\ud804\udeb6': 'L'
'\ud804\udeb7': 'L'
'\ud804\udeb8': 'L'
'\ud804\udeb9': 'L'
'\ud804\udeba': 'L'
'\ud804\udebb': 'L'
'\ud804\udebc': 'L'
'\ud804\udebd': 'L'
'\ud804\udebe': 'L'
'\ud804\udebf': 'L'
'\ud804\udec0': 'L'
'\ud804\udec1': 'L'
'\ud804\udec2': 'L'
'\ud804\udec3': 'L'
'\ud804\udec4': 'L'
'\ud804\udec5': 'L'
'\ud804\udec6': 'L'
'\ud804\udec7': 'L'
'\ud804\udec8': 'L'
'\ud804\udec9': 'L'
'\ud804\udeca': 'L'
'\ud804\udecb': 'L'
'\ud804\udecc': 'L'
'\ud804\udecd': 'L'
'\ud804\udece': 'L'
'\ud804\udecf': 'L'
'\ud804\uded0': 'L'
'\ud804\uded1': 'L'
'\ud804\uded2': 'L'
'\ud804\uded3': 'L'
'\ud804\uded4': 'L'
'\ud804\uded5': 'L'
'\ud804\uded6': 'L'
'\ud804\uded7': 'L'
'\ud804\uded8': 'L'
'\ud804\uded9': 'L'
'\ud804\udeda': 'L'
'\ud804\udedb': 'L'
'\ud804\udedc': 'L'
'\ud804\udedd': 'L'
'\ud804\udede': 'L'
'\ud804\udef0': 'N'
'\ud804\udef1': 'N'
'\ud804\udef2': 'N'
'\ud804\udef3': 'N'
'\ud804\udef4': 'N'
'\ud804\udef5': 'N'
'\ud804\udef6': 'N'
'\ud804\udef7': 'N'
'\ud804\udef8': 'N'
'\ud804\udef9': 'N'
'\ud804\udf05': 'L'
'\ud804\udf06': 'L'
'\ud804\udf07': 'L'
'\ud804\udf08': 'L'
'\ud804\udf09': 'L'
'\ud804\udf0a': 'L'
'\ud804\udf0b': 'L'
'\ud804\udf0c': 'L'
'\ud804\udf0f': 'L'
'\ud804\udf10': 'L'
'\ud804\udf13': 'L'
'\ud804\udf14': 'L'
'\ud804\udf15': 'L'
'\ud804\udf16': 'L'
'\ud804\udf17': 'L'
'\ud804\udf18': 'L'
'\ud804\udf19': 'L'
'\ud804\udf1a': 'L'
'\ud804\udf1b': 'L'
'\ud804\udf1c': 'L'
'\ud804\udf1d': 'L'
'\ud804\udf1e': 'L'
'\ud804\udf1f': 'L'
'\ud804\udf20': 'L'
'\ud804\udf21': 'L'
'\ud804\udf22': 'L'
'\ud804\udf23': 'L'
'\ud804\udf24': 'L'
'\ud804\udf25': 'L'
'\ud804\udf26': 'L'
'\ud804\udf27': 'L'
'\ud804\udf28': 'L'
'\ud804\udf2a': 'L'
'\ud804\udf2b': 'L'
'\ud804\udf2c': 'L'
'\ud804\udf2d': 'L'
'\ud804\udf2e': 'L'
'\ud804\udf2f': 'L'
'\ud804\udf30': 'L'
'\ud804\udf32': 'L'
'\ud804\udf33': 'L'
'\ud804\udf35': 'L'
'\ud804\udf36': 'L'
'\ud804\udf37': 'L'
'\ud804\udf38': 'L'
'\ud804\udf39': 'L'
'\ud804\udf3d': 'L'
'\ud804\udf50': 'L'
'\ud804\udf5d': 'L'
'\ud804\udf5e': 'L'
'\ud804\udf5f': 'L'
'\ud804\udf60': 'L'
'\ud804\udf61': 'L'
'\ud805\udc80': 'L'
'\ud805\udc81': 'L'
'\ud805\udc82': 'L'
'\ud805\udc83': 'L'
'\ud805\udc84': 'L'
'\ud805\udc85': 'L'
'\ud805\udc86': 'L'
'\ud805\udc87': 'L'
'\ud805\udc88': 'L'
'\ud805\udc89': 'L'
'\ud805\udc8a': 'L'
'\ud805\udc8b': 'L'
'\ud805\udc8c': 'L'
'\ud805\udc8d': 'L'
'\ud805\udc8e': 'L'
'\ud805\udc8f': 'L'
'\ud805\udc90': 'L'
'\ud805\udc91': 'L'
'\ud805\udc92': 'L'
'\ud805\udc93': 'L'
'\ud805\udc94': 'L'
'\ud805\udc95': 'L'
'\ud805\udc96': 'L'
'\ud805\udc97': 'L'
'\ud805\udc98': 'L'
'\ud805\udc99': 'L'
'\ud805\udc9a': 'L'
'\ud805\udc9b': 'L'
'\ud805\udc9c': 'L'
'\ud805\udc9d': 'L'
'\ud805\udc9e': 'L'
'\ud805\udc9f': 'L'
'\ud805\udca0': 'L'
'\ud805\udca1': 'L'
'\ud805\udca2': 'L'
'\ud805\udca3': 'L'
'\ud805\udca4': 'L'
'\ud805\udca5': 'L'
'\ud805\udca6': 'L'
'\ud805\udca7': 'L'
'\ud805\udca8': 'L'
'\ud805\udca9': 'L'
'\ud805\udcaa': 'L'
'\ud805\udcab': 'L'
'\ud805\udcac': 'L'
'\ud805\udcad': 'L'
'\ud805\udcae': 'L'
'\ud805\udcaf': 'L'
'\ud805\udcc4': 'L'
'\ud805\udcc5': 'L'
'\ud805\udcc7': 'L'
'\ud805\udcd0': 'N'
'\ud805\udcd1': 'N'
'\ud805\udcd2': 'N'
'\ud805\udcd3': 'N'
'\ud805\udcd4': 'N'
'\ud805\udcd5': 'N'
'\ud805\udcd6': 'N'
'\ud805\udcd7': 'N'
'\ud805\udcd8': 'N'
'\ud805\udcd9': 'N'
'\ud805\udd80': 'L'
'\ud805\udd81': 'L'
'\ud805\udd82': 'L'
'\ud805\udd83': 'L'
'\ud805\udd84': 'L'
'\ud805\udd85': 'L'
'\ud805\udd86': 'L'
'\ud805\udd87': 'L'
'\ud805\udd88': 'L'
'\ud805\udd89': 'L'
'\ud805\udd8a': 'L'
'\ud805\udd8b': 'L'
'\ud805\udd8c': 'L'
'\ud805\udd8d': 'L'
'\ud805\udd8e': 'L'
'\ud805\udd8f': 'L'
'\ud805\udd90': 'L'
'\ud805\udd91': 'L'
'\ud805\udd92': 'L'
'\ud805\udd93': 'L'
'\ud805\udd94': 'L'
'\ud805\udd95': 'L'
'\ud805\udd96': 'L'
'\ud805\udd97': 'L'
'\ud805\udd98': 'L'
'\ud805\udd99': 'L'
'\ud805\udd9a': 'L'
'\ud805\udd9b': 'L'
'\ud805\udd9c': 'L'
'\ud805\udd9d': 'L'
'\ud805\udd9e': 'L'
'\ud805\udd9f': 'L'
'\ud805\udda0': 'L'
'\ud805\udda1': 'L'
'\ud805\udda2': 'L'
'\ud805\udda3': 'L'
'\ud805\udda4': 'L'
'\ud805\udda5': 'L'
'\ud805\udda6': 'L'
'\ud805\udda7': 'L'
'\ud805\udda8': 'L'
'\ud805\udda9': 'L'
'\ud805\uddaa': 'L'
'\ud805\uddab': 'L'
'\ud805\uddac': 'L'
'\ud805\uddad': 'L'
'\ud805\uddae': 'L'
'\ud805\uddd8': 'L'
'\ud805\uddd9': 'L'
'\ud805\uddda': 'L'
'\ud805\udddb': 'L'
'\ud805\ude00': 'L'
'\ud805\ude01': 'L'
'\ud805\ude02': 'L'
'\ud805\ude03': 'L'
'\ud805\ude04': 'L'
'\ud805\ude05': 'L'
'\ud805\ude06': 'L'
'\ud805\ude07': 'L'
'\ud805\ude08': 'L'
'\ud805\ude09': 'L'
'\ud805\ude0a': 'L'
'\ud805\ude0b': 'L'
'\ud805\ude0c': 'L'
'\ud805\ude0d': 'L'
'\ud805\ude0e': 'L'
'\ud805\ude0f': 'L'
'\ud805\ude10': 'L'
'\ud805\ude11': 'L'
'\ud805\ude12': 'L'
'\ud805\ude13': 'L'
'\ud805\ude14': 'L'
'\ud805\ude15': 'L'
'\ud805\ude16': 'L'
'\ud805\ude17': 'L'
'\ud805\ude18': 'L'
'\ud805\ude19': 'L'
'\ud805\ude1a': 'L'
'\ud805\ude1b': 'L'
'\ud805\ude1c': 'L'
'\ud805\ude1d': 'L'
'\ud805\ude1e': 'L'
'\ud805\ude1f': 'L'
'\ud805\ude20': 'L'
'\ud805\ude21': 'L'
'\ud805\ude22': 'L'
'\ud805\ude23': 'L'
'\ud805\ude24': 'L'
'\ud805\ude25': 'L'
'\ud805\ude26': 'L'
'\ud805\ude27': 'L'
'\ud805\ude28': 'L'
'\ud805\ude29': 'L'
'\ud805\ude2a': 'L'
'\ud805\ude2b': 'L'
'\ud805\ude2c': 'L'
'\ud805\ude2d': 'L'
'\ud805\ude2e': 'L'
'\ud805\ude2f': 'L'
'\ud805\ude44': 'L'
'\ud805\ude50': 'N'
'\ud805\ude51': 'N'
'\ud805\ude52': 'N'
'\ud805\ude53': 'N'
'\ud805\ude54': 'N'
'\ud805\ude55': 'N'
'\ud805\ude56': 'N'
'\ud805\ude57': 'N'
'\ud805\ude58': 'N'
'\ud805\ude59': 'N'
'\ud805\ude80': 'L'
'\ud805\ude81': 'L'
'\ud805\ude82': 'L'
'\ud805\ude83': 'L'
'\ud805\ude84': 'L'
'\ud805\ude85': 'L'
'\ud805\ude86': 'L'
'\ud805\ude87': 'L'
'\ud805\ude88': 'L'
'\ud805\ude89': 'L'
'\ud805\ude8a': 'L'
'\ud805\ude8b': 'L'
'\ud805\ude8c': 'L'
'\ud805\ude8d': 'L'
'\ud805\ude8e': 'L'
'\ud805\ude8f': 'L'
'\ud805\ude90': 'L'
'\ud805\ude91': 'L'
'\ud805\ude92': 'L'
'\ud805\ude93': 'L'
'\ud805\ude94': 'L'
'\ud805\ude95': 'L'
'\ud805\ude96': 'L'
'\ud805\ude97': 'L'
'\ud805\ude98': 'L'
'\ud805\ude99': 'L'
'\ud805\ude9a': 'L'
'\ud805\ude9b': 'L'
'\ud805\ude9c': 'L'
'\ud805\ude9d': 'L'
'\ud805\ude9e': 'L'
'\ud805\ude9f': 'L'
'\ud805\udea0': 'L'
'\ud805\udea1': 'L'
'\ud805\udea2': 'L'
'\ud805\udea3': 'L'
'\ud805\udea4': 'L'
'\ud805\udea5': 'L'
'\ud805\udea6': 'L'
'\ud805\udea7': 'L'
'\ud805\udea8': 'L'
'\ud805\udea9': 'L'
'\ud805\udeaa': 'L'
'\ud805\udec0': 'N'
'\ud805\udec1': 'N'
'\ud805\udec2': 'N'
'\ud805\udec3': 'N'
'\ud805\udec4': 'N'
'\ud805\udec5': 'N'
'\ud805\udec6': 'N'
'\ud805\udec7': 'N'
'\ud805\udec8': 'N'
'\ud805\udec9': 'N'
'\ud805\udf00': 'L'
'\ud805\udf01': 'L'
'\ud805\udf02': 'L'
'\ud805\udf03': 'L'
'\ud805\udf04': 'L'
'\ud805\udf05': 'L'
'\ud805\udf06': 'L'
'\ud805\udf07': 'L'
'\ud805\udf08': 'L'
'\ud805\udf09': 'L'
'\ud805\udf0a': 'L'
'\ud805\udf0b': 'L'
'\ud805\udf0c': 'L'
'\ud805\udf0d': 'L'
'\ud805\udf0e': 'L'
'\ud805\udf0f': 'L'
'\ud805\udf10': 'L'
'\ud805\udf11': 'L'
'\ud805\udf12': 'L'
'\ud805\udf13': 'L'
'\ud805\udf14': 'L'
'\ud805\udf15': 'L'
'\ud805\udf16': 'L'
'\ud805\udf17': 'L'
'\ud805\udf18': 'L'
'\ud805\udf19': 'L'
'\ud805\udf30': 'N'
'\ud805\udf31': 'N'
'\ud805\udf32': 'N'
'\ud805\udf33': 'N'
'\ud805\udf34': 'N'
'\ud805\udf35': 'N'
'\ud805\udf36': 'N'
'\ud805\udf37': 'N'
'\ud805\udf38': 'N'
'\ud805\udf39': 'N'
'\ud805\udf3a': 'N'
'\ud805\udf3b': 'N'
'\ud806\udca0': 'Lu'
'\ud806\udca1': 'Lu'
'\ud806\udca2': 'Lu'
'\ud806\udca3': 'Lu'
'\ud806\udca4': 'Lu'
'\ud806\udca5': 'Lu'
'\ud806\udca6': 'Lu'
'\ud806\udca7': 'Lu'
'\ud806\udca8': 'Lu'
'\ud806\udca9': 'Lu'
'\ud806\udcaa': 'Lu'
'\ud806\udcab': 'Lu'
'\ud806\udcac': 'Lu'
'\ud806\udcad': 'Lu'
'\ud806\udcae': 'Lu'
'\ud806\udcaf': 'Lu'
'\ud806\udcb0': 'Lu'
'\ud806\udcb1': 'Lu'
'\ud806\udcb2': 'Lu'
'\ud806\udcb3': 'Lu'
'\ud806\udcb4': 'Lu'
'\ud806\udcb5': 'Lu'
'\ud806\udcb6': 'Lu'
'\ud806\udcb7': 'Lu'
'\ud806\udcb8': 'Lu'
'\ud806\udcb9': 'Lu'
'\ud806\udcba': 'Lu'
'\ud806\udcbb': 'Lu'
'\ud806\udcbc': 'Lu'
'\ud806\udcbd': 'Lu'
'\ud806\udcbe': 'Lu'
'\ud806\udcbf': 'Lu'
'\ud806\udcc0': 'L'
'\ud806\udcc1': 'L'
'\ud806\udcc2': 'L'
'\ud806\udcc3': 'L'
'\ud806\udcc4': 'L'
'\ud806\udcc5': 'L'
'\ud806\udcc6': 'L'
'\ud806\udcc7': 'L'
'\ud806\udcc8': 'L'
'\ud806\udcc9': 'L'
'\ud806\udcca': 'L'
'\ud806\udccb': 'L'
'\ud806\udccc': 'L'
'\ud806\udccd': 'L'
'\ud806\udcce': 'L'
'\ud806\udccf': 'L'
'\ud806\udcd0': 'L'
'\ud806\udcd1': 'L'
'\ud806\udcd2': 'L'
'\ud806\udcd3': 'L'
'\ud806\udcd4': 'L'
'\ud806\udcd5': 'L'
'\ud806\udcd6': 'L'
'\ud806\udcd7': 'L'
'\ud806\udcd8': 'L'
'\ud806\udcd9': 'L'
'\ud806\udcda': 'L'
'\ud806\udcdb': 'L'
'\ud806\udcdc': 'L'
'\ud806\udcdd': 'L'
'\ud806\udcde': 'L'
'\ud806\udcdf': 'L'
'\ud806\udce0': 'N'
'\ud806\udce1': 'N'
'\ud806\udce2': 'N'
'\ud806\udce3': 'N'
'\ud806\udce4': 'N'
'\ud806\udce5': 'N'
'\ud806\udce6': 'N'
'\ud806\udce7': 'N'
'\ud806\udce8': 'N'
'\ud806\udce9': 'N'
'\ud806\udcea': 'N'
'\ud806\udceb': 'N'
'\ud806\udcec': 'N'
'\ud806\udced': 'N'
'\ud806\udcee': 'N'
'\ud806\udcef': 'N'
'\ud806\udcf0': 'N'
'\ud806\udcf1': 'N'
'\ud806\udcf2': 'N'
'\ud806\udcff': 'L'
'\ud806\udec0': 'L'
'\ud806\udec1': 'L'
'\ud806\udec2': 'L'
'\ud806\udec3': 'L'
'\ud806\udec4': 'L'
'\ud806\udec5': 'L'
'\ud806\udec6': 'L'
'\ud806\udec7': 'L'
'\ud806\udec8': 'L'
'\ud806\udec9': 'L'
'\ud806\udeca': 'L'
'\ud806\udecb': 'L'
'\ud806\udecc': 'L'
'\ud806\udecd': 'L'
'\ud806\udece': 'L'
'\ud806\udecf': 'L'
'\ud806\uded0': 'L'
'\ud806\uded1': 'L'
'\ud806\uded2': 'L'
'\ud806\uded3': 'L'
'\ud806\uded4': 'L'
'\ud806\uded5': 'L'
'\ud806\uded6': 'L'
'\ud806\uded7': 'L'
'\ud806\uded8': 'L'
'\ud806\uded9': 'L'
'\ud806\udeda': 'L'
'\ud806\udedb': 'L'
'\ud806\udedc': 'L'
'\ud806\udedd': 'L'
'\ud806\udede': 'L'
'\ud806\udedf': 'L'
'\ud806\udee0': 'L'
'\ud806\udee1': 'L'
'\ud806\udee2': 'L'
'\ud806\udee3': 'L'
'\ud806\udee4': 'L'
'\ud806\udee5': 'L'
'\ud806\udee6': 'L'
'\ud806\udee7': 'L'
'\ud806\udee8': 'L'
'\ud806\udee9': 'L'
'\ud806\udeea': 'L'
'\ud806\udeeb': 'L'
'\ud806\udeec': 'L'
'\ud806\udeed': 'L'
'\ud806\udeee': 'L'
'\ud806\udeef': 'L'
'\ud806\udef0': 'L'
'\ud806\udef1': 'L'
'\ud806\udef2': 'L'
'\ud806\udef3': 'L'
'\ud806\udef4': 'L'
'\ud806\udef5': 'L'
'\ud806\udef6': 'L'
'\ud806\udef7': 'L'
'\ud806\udef8': 'L'
'\ud808\udc00': 'L'
'\ud808\udc01': 'L'
'\ud808\udc02': 'L'
'\ud808\udc03': 'L'
'\ud808\udc04': 'L'
'\ud808\udc05': 'L'
'\ud808\udc06': 'L'
'\ud808\udc07': 'L'
'\ud808\udc08': 'L'
'\ud808\udc09': 'L'
'\ud808\udc0a': 'L'
'\ud808\udc0b': 'L'
'\ud808\udc0c': 'L'
'\ud808\udc0d': 'L'
'\ud808\udc0e': 'L'
'\ud808\udc0f': 'L'
'\ud808\udc10': 'L'
'\ud808\udc11': 'L'
'\ud808\udc12': 'L'
'\ud808\udc13': 'L'
'\ud808\udc14': 'L'
'\ud808\udc15': 'L'
'\ud808\udc16': 'L'
'\ud808\udc17': 'L'
'\ud808\udc18': 'L'
'\ud808\udc19': 'L'
'\ud808\udc1a': 'L'
'\ud808\udc1b': 'L'
'\ud808\udc1c': 'L'
'\ud808\udc1d': 'L'
'\ud808\udc1e': 'L'
'\ud808\udc1f': 'L'
'\ud808\udc20': 'L'
'\ud808\udc21': 'L'
'\ud808\udc22': 'L'
'\ud808\udc23': 'L'
'\ud808\udc24': 'L'
'\ud808\udc25': 'L'
'\ud808\udc26': 'L'
'\ud808\udc27': 'L'
'\ud808\udc28': 'L'
'\ud808\udc29': 'L'
'\ud808\udc2a': 'L'
'\ud808\udc2b': 'L'
'\ud808\udc2c': 'L'
'\ud808\udc2d': 'L'
'\ud808\udc2e': 'L'
'\ud808\udc2f': 'L'
'\ud808\udc30': 'L'
'\ud808\udc31': 'L'
'\ud808\udc32': 'L'
'\ud808\udc33': 'L'
'\ud808\udc34': 'L'
'\ud808\udc35': 'L'
'\ud808\udc36': 'L'
'\ud808\udc37': 'L'
'\ud808\udc38': 'L'
'\ud808\udc39': 'L'
'\ud808\udc3a': 'L'
'\ud808\udc3b': 'L'
'\ud808\udc3c': 'L'
'\ud808\udc3d': 'L'
'\ud808\udc3e': 'L'
'\ud808\udc3f': 'L'
'\ud808\udc40': 'L'
'\ud808\udc41': 'L'
'\ud808\udc42': 'L'
'\ud808\udc43': 'L'
'\ud808\udc44': 'L'
'\ud808\udc45': 'L'
'\ud808\udc46': 'L'
'\ud808\udc47': 'L'
'\ud808\udc48': 'L'
'\ud808\udc49': 'L'
'\ud808\udc4a': 'L'
'\ud808\udc4b': 'L'
'\ud808\udc4c': 'L'
'\ud808\udc4d': 'L'
'\ud808\udc4e': 'L'
'\ud808\udc4f': 'L'
'\ud808\udc50': 'L'
'\ud808\udc51': 'L'
'\ud808\udc52': 'L'
'\ud808\udc53': 'L'
'\ud808\udc54': 'L'
'\ud808\udc55': 'L'
'\ud808\udc56': 'L'
'\ud808\udc57': 'L'
'\ud808\udc58': 'L'
'\ud808\udc59': 'L'
'\ud808\udc5a': 'L'
'\ud808\udc5b': 'L'
'\ud808\udc5c': 'L'
'\ud808\udc5d': 'L'
'\ud808\udc5e': 'L'
'\ud808\udc5f': 'L'
'\ud808\udc60': 'L'
'\ud808\udc61': 'L'
'\ud808\udc62': 'L'
'\ud808\udc63': 'L'
'\ud808\udc64': 'L'
'\ud808\udc65': 'L'
'\ud808\udc66': 'L'
'\ud808\udc67': 'L'
'\ud808\udc68': 'L'
'\ud808\udc69': 'L'
'\ud808\udc6a': 'L'
'\ud808\udc6b': 'L'
'\ud808\udc6c': 'L'
'\ud808\udc6d': 'L'
'\ud808\udc6e': 'L'
'\ud808\udc6f': 'L'
'\ud808\udc70': 'L'
'\ud808\udc71': 'L'
'\ud808\udc72': 'L'
'\ud808\udc73': 'L'
'\ud808\udc74': 'L'
'\ud808\udc75': 'L'
'\ud808\udc76': 'L'
'\ud808\udc77': 'L'
'\ud808\udc78': 'L'
'\ud808\udc79': 'L'
'\ud808\udc7a': 'L'
'\ud808\udc7b': 'L'
'\ud808\udc7c': 'L'
'\ud808\udc7d': 'L'
'\ud808\udc7e': 'L'
'\ud808\udc7f': 'L'
'\ud808\udc80': 'L'
'\ud808\udc81': 'L'
'\ud808\udc82': 'L'
'\ud808\udc83': 'L'
'\ud808\udc84': 'L'
'\ud808\udc85': 'L'
'\ud808\udc86': 'L'
'\ud808\udc87': 'L'
'\ud808\udc88': 'L'
'\ud808\udc89': 'L'
'\ud808\udc8a': 'L'
'\ud808\udc8b': 'L'
'\ud808\udc8c': 'L'
'\ud808\udc8d': 'L'
'\ud808\udc8e': 'L'
'\ud808\udc8f': 'L'
'\ud808\udc90': 'L'
'\ud808\udc91': 'L'
'\ud808\udc92': 'L'
'\ud808\udc93': 'L'
'\ud808\udc94': 'L'
'\ud808\udc95': 'L'
'\ud808\udc96': 'L'
'\ud808\udc97': 'L'
'\ud808\udc98': 'L'
'\ud808\udc99': 'L'
'\ud808\udc9a': 'L'
'\ud808\udc9b': 'L'
'\ud808\udc9c': 'L'
'\ud808\udc9d': 'L'
'\ud808\udc9e': 'L'
'\ud808\udc9f': 'L'
'\ud808\udca0': 'L'
'\ud808\udca1': 'L'
'\ud808\udca2': 'L'
'\ud808\udca3': 'L'
'\ud808\udca4': 'L'
'\ud808\udca5': 'L'
'\ud808\udca6': 'L'
'\ud808\udca7': 'L'
'\ud808\udca8': 'L'
'\ud808\udca9': 'L'
'\ud808\udcaa': 'L'
'\ud808\udcab': 'L'
'\ud808\udcac': 'L'
'\ud808\udcad': 'L'
'\ud808\udcae': 'L'
'\ud808\udcaf': 'L'
'\ud808\udcb0': 'L'
'\ud808\udcb1': 'L'
'\ud808\udcb2': 'L'
'\ud808\udcb3': 'L'
'\ud808\udcb4': 'L'
'\ud808\udcb5': 'L'
'\ud808\udcb6': 'L'
'\ud808\udcb7': 'L'
'\ud808\udcb8': 'L'
'\ud808\udcb9': 'L'
'\ud808\udcba': 'L'
'\ud808\udcbb': 'L'
'\ud808\udcbc': 'L'
'\ud808\udcbd': 'L'
'\ud808\udcbe': 'L'
'\ud808\udcbf': 'L'
'\ud808\udcc0': 'L'
'\ud808\udcc1': 'L'
'\ud808\udcc2': 'L'
'\ud808\udcc3': 'L'
'\ud808\udcc4': 'L'
'\ud808\udcc5': 'L'
'\ud808\udcc6': 'L'
'\ud808\udcc7': 'L'
'\ud808\udcc8': 'L'
'\ud808\udcc9': 'L'
'\ud808\udcca': 'L'
'\ud808\udccb': 'L'
'\ud808\udccc': 'L'
'\ud808\udccd': 'L'
'\ud808\udcce': 'L'
'\ud808\udccf': 'L'
'\ud808\udcd0': 'L'
'\ud808\udcd1': 'L'
'\ud808\udcd2': 'L'
'\ud808\udcd3': 'L'
'\ud808\udcd4': 'L'
'\ud808\udcd5': 'L'
'\ud808\udcd6': 'L'
'\ud808\udcd7': 'L'
'\ud808\udcd8': 'L'
'\ud808\udcd9': 'L'
'\ud808\udcda': 'L'
'\ud808\udcdb': 'L'
'\ud808\udcdc': 'L'
'\ud808\udcdd': 'L'
'\ud808\udcde': 'L'
'\ud808\udcdf': 'L'
'\ud808\udce0': 'L'
'\ud808\udce1': 'L'
'\ud808\udce2': 'L'
'\ud808\udce3': 'L'
'\ud808\udce4': 'L'
'\ud808\udce5': 'L'
'\ud808\udce6': 'L'
'\ud808\udce7': 'L'
'\ud808\udce8': 'L'
'\ud808\udce9': 'L'
'\ud808\udcea': 'L'
'\ud808\udceb': 'L'
'\ud808\udcec': 'L'
'\ud808\udced': 'L'
'\ud808\udcee': 'L'
'\ud808\udcef': 'L'
'\ud808\udcf0': 'L'
'\ud808\udcf1': 'L'
'\ud808\udcf2': 'L'
'\ud808\udcf3': 'L'
'\ud808\udcf4': 'L'
'\ud808\udcf5': 'L'
'\ud808\udcf6': 'L'
'\ud808\udcf7': 'L'
'\ud808\udcf8': 'L'
'\ud808\udcf9': 'L'
'\ud808\udcfa': 'L'
'\ud808\udcfb': 'L'
'\ud808\udcfc': 'L'
'\ud808\udcfd': 'L'
'\ud808\udcfe': 'L'
'\ud808\udcff': 'L'
'\ud808\udd00': 'L'
'\ud808\udd01': 'L'
'\ud808\udd02': 'L'
'\ud808\udd03': 'L'
'\ud808\udd04': 'L'
'\ud808\udd05': 'L'
'\ud808\udd06': 'L'
'\ud808\udd07': 'L'
'\ud808\udd08': 'L'
'\ud808\udd09': 'L'
'\ud808\udd0a': 'L'
'\ud808\udd0b': 'L'
'\ud808\udd0c': 'L'
'\ud808\udd0d': 'L'
'\ud808\udd0e': 'L'
'\ud808\udd0f': 'L'
'\ud808\udd10': 'L'
'\ud808\udd11': 'L'
'\ud808\udd12': 'L'
'\ud808\udd13': 'L'
'\ud808\udd14': 'L'
'\ud808\udd15': 'L'
'\ud808\udd16': 'L'
'\ud808\udd17': 'L'
'\ud808\udd18': 'L'
'\ud808\udd19': 'L'
'\ud808\udd1a': 'L'
'\ud808\udd1b': 'L'
'\ud808\udd1c': 'L'
'\ud808\udd1d': 'L'
'\ud808\udd1e': 'L'
'\ud808\udd1f': 'L'
'\ud808\udd20': 'L'
'\ud808\udd21': 'L'
'\ud808\udd22': 'L'
'\ud808\udd23': 'L'
'\ud808\udd24': 'L'
'\ud808\udd25': 'L'
'\ud808\udd26': 'L'
'\ud808\udd27': 'L'
'\ud808\udd28': 'L'
'\ud808\udd29': 'L'
'\ud808\udd2a': 'L'
'\ud808\udd2b': 'L'
'\ud808\udd2c': 'L'
'\ud808\udd2d': 'L'
'\ud808\udd2e': 'L'
'\ud808\udd2f': 'L'
'\ud808\udd30': 'L'
'\ud808\udd31': 'L'
'\ud808\udd32': 'L'
'\ud808\udd33': 'L'
'\ud808\udd34': 'L'
'\ud808\udd35': 'L'
'\ud808\udd36': 'L'
'\ud808\udd37': 'L'
'\ud808\udd38': 'L'
'\ud808\udd39': 'L'
'\ud808\udd3a': 'L'
'\ud808\udd3b': 'L'
'\ud808\udd3c': 'L'
'\ud808\udd3d': 'L'
'\ud808\udd3e': 'L'
'\ud808\udd3f': 'L'
'\ud808\udd40': 'L'
'\ud808\udd41': 'L'
'\ud808\udd42': 'L'
'\ud808\udd43': 'L'
'\ud808\udd44': 'L'
'\ud808\udd45': 'L'
'\ud808\udd46': 'L'
'\ud808\udd47': 'L'
'\ud808\udd48': 'L'
'\ud808\udd49': 'L'
'\ud808\udd4a': 'L'
'\ud808\udd4b': 'L'
'\ud808\udd4c': 'L'
'\ud808\udd4d': 'L'
'\ud808\udd4e': 'L'
'\ud808\udd4f': 'L'
'\ud808\udd50': 'L'
'\ud808\udd51': 'L'
'\ud808\udd52': 'L'
'\ud808\udd53': 'L'
'\ud808\udd54': 'L'
'\ud808\udd55': 'L'
'\ud808\udd56': 'L'
'\ud808\udd57': 'L'
'\ud808\udd58': 'L'
'\ud808\udd59': 'L'
'\ud808\udd5a': 'L'
'\ud808\udd5b': 'L'
'\ud808\udd5c': 'L'
'\ud808\udd5d': 'L'
'\ud808\udd5e': 'L'
'\ud808\udd5f': 'L'
'\ud808\udd60': 'L'
'\ud808\udd61': 'L'
'\ud808\udd62': 'L'
'\ud808\udd63': 'L'
'\ud808\udd64': 'L'
'\ud808\udd65': 'L'
'\ud808\udd66': 'L'
'\ud808\udd67': 'L'
'\ud808\udd68': 'L'
'\ud808\udd69': 'L'
'\ud808\udd6a': 'L'
'\ud808\udd6b': 'L'
'\ud808\udd6c': 'L'
'\ud808\udd6d': 'L'
'\ud808\udd6e': 'L'
'\ud808\udd6f': 'L'
'\ud808\udd70': 'L'
'\ud808\udd71': 'L'
'\ud808\udd72': 'L'
'\ud808\udd73': 'L'
'\ud808\udd74': 'L'
'\ud808\udd75': 'L'
'\ud808\udd76': 'L'
'\ud808\udd77': 'L'
'\ud808\udd78': 'L'
'\ud808\udd79': 'L'
'\ud808\udd7a': 'L'
'\ud808\udd7b': 'L'
'\ud808\udd7c': 'L'
'\ud808\udd7d': 'L'
'\ud808\udd7e': 'L'
'\ud808\udd7f': 'L'
'\ud808\udd80': 'L'
'\ud808\udd81': 'L'
'\ud808\udd82': 'L'
'\ud808\udd83': 'L'
'\ud808\udd84': 'L'
'\ud808\udd85': 'L'
'\ud808\udd86': 'L'
'\ud808\udd87': 'L'
'\ud808\udd88': 'L'
'\ud808\udd89': 'L'
'\ud808\udd8a': 'L'
'\ud808\udd8b': 'L'
'\ud808\udd8c': 'L'
'\ud808\udd8d': 'L'
'\ud808\udd8e': 'L'
'\ud808\udd8f': 'L'
'\ud808\udd90': 'L'
'\ud808\udd91': 'L'
'\ud808\udd92': 'L'
'\ud808\udd93': 'L'
'\ud808\udd94': 'L'
'\ud808\udd95': 'L'
'\ud808\udd96': 'L'
'\ud808\udd97': 'L'
'\ud808\udd98': 'L'
'\ud808\udd99': 'L'
'\ud808\udd9a': 'L'
'\ud808\udd9b': 'L'
'\ud808\udd9c': 'L'
'\ud808\udd9d': 'L'
'\ud808\udd9e': 'L'
'\ud808\udd9f': 'L'
'\ud808\udda0': 'L'
'\ud808\udda1': 'L'
'\ud808\udda2': 'L'
'\ud808\udda3': 'L'
'\ud808\udda4': 'L'
'\ud808\udda5': 'L'
'\ud808\udda6': 'L'
'\ud808\udda7': 'L'
'\ud808\udda8': 'L'
'\ud808\udda9': 'L'
'\ud808\uddaa': 'L'
'\ud808\uddab': 'L'
'\ud808\uddac': 'L'
'\ud808\uddad': 'L'
'\ud808\uddae': 'L'
'\ud808\uddaf': 'L'
'\ud808\uddb0': 'L'
'\ud808\uddb1': 'L'
'\ud808\uddb2': 'L'
'\ud808\uddb3': 'L'
'\ud808\uddb4': 'L'
'\ud808\uddb5': 'L'
'\ud808\uddb6': 'L'
'\ud808\uddb7': 'L'
'\ud808\uddb8': 'L'
'\ud808\uddb9': 'L'
'\ud808\uddba': 'L'
'\ud808\uddbb': 'L'
'\ud808\uddbc': 'L'
'\ud808\uddbd': 'L'
'\ud808\uddbe': 'L'
'\ud808\uddbf': 'L'
'\ud808\uddc0': 'L'
'\ud808\uddc1': 'L'
'\ud808\uddc2': 'L'
'\ud808\uddc3': 'L'
'\ud808\uddc4': 'L'
'\ud808\uddc5': 'L'
'\ud808\uddc6': 'L'
'\ud808\uddc7': 'L'
'\ud808\uddc8': 'L'
'\ud808\uddc9': 'L'
'\ud808\uddca': 'L'
'\ud808\uddcb': 'L'
'\ud808\uddcc': 'L'
'\ud808\uddcd': 'L'
'\ud808\uddce': 'L'
'\ud808\uddcf': 'L'
'\ud808\uddd0': 'L'
'\ud808\uddd1': 'L'
'\ud808\uddd2': 'L'
'\ud808\uddd3': 'L'
'\ud808\uddd4': 'L'
'\ud808\uddd5': 'L'
'\ud808\uddd6': 'L'
'\ud808\uddd7': 'L'
'\ud808\uddd8': 'L'
'\ud808\uddd9': 'L'
'\ud808\uddda': 'L'
'\ud808\udddb': 'L'
'\ud808\udddc': 'L'
'\ud808\udddd': 'L'
'\ud808\uddde': 'L'
'\ud808\udddf': 'L'
'\ud808\udde0': 'L'
'\ud808\udde1': 'L'
'\ud808\udde2': 'L'
'\ud808\udde3': 'L'
'\ud808\udde4': 'L'
'\ud808\udde5': 'L'
'\ud808\udde6': 'L'
'\ud808\udde7': 'L'
'\ud808\udde8': 'L'
'\ud808\udde9': 'L'
'\ud808\uddea': 'L'
'\ud808\uddeb': 'L'
'\ud808\uddec': 'L'
'\ud808\udded': 'L'
'\ud808\uddee': 'L'
'\ud808\uddef': 'L'
'\ud808\uddf0': 'L'
'\ud808\uddf1': 'L'
'\ud808\uddf2': 'L'
'\ud808\uddf3': 'L'
'\ud808\uddf4': 'L'
'\ud808\uddf5': 'L'
'\ud808\uddf6': 'L'
'\ud808\uddf7': 'L'
'\ud808\uddf8': 'L'
'\ud808\uddf9': 'L'
'\ud808\uddfa': 'L'
'\ud808\uddfb': 'L'
'\ud808\uddfc': 'L'
'\ud808\uddfd': 'L'
'\ud808\uddfe': 'L'
'\ud808\uddff': 'L'
'\ud808\ude00': 'L'
'\ud808\ude01': 'L'
'\ud808\ude02': 'L'
'\ud808\ude03': 'L'
'\ud808\ude04': 'L'
'\ud808\ude05': 'L'
'\ud808\ude06': 'L'
'\ud808\ude07': 'L'
'\ud808\ude08': 'L'
'\ud808\ude09': 'L'
'\ud808\ude0a': 'L'
'\ud808\ude0b': 'L'
'\ud808\ude0c': 'L'
'\ud808\ude0d': 'L'
'\ud808\ude0e': 'L'
'\ud808\ude0f': 'L'
'\ud808\ude10': 'L'
'\ud808\ude11': 'L'
'\ud808\ude12': 'L'
'\ud808\ude13': 'L'
'\ud808\ude14': 'L'
'\ud808\ude15': 'L'
'\ud808\ude16': 'L'
'\ud808\ude17': 'L'
'\ud808\ude18': 'L'
'\ud808\ude19': 'L'
'\ud808\ude1a': 'L'
'\ud808\ude1b': 'L'
'\ud808\ude1c': 'L'
'\ud808\ude1d': 'L'
'\ud808\ude1e': 'L'
'\ud808\ude1f': 'L'
'\ud808\ude20': 'L'
'\ud808\ude21': 'L'
'\ud808\ude22': 'L'
'\ud808\ude23': 'L'
'\ud808\ude24': 'L'
'\ud808\ude25': 'L'
'\ud808\ude26': 'L'
'\ud808\ude27': 'L'
'\ud808\ude28': 'L'
'\ud808\ude29': 'L'
'\ud808\ude2a': 'L'
'\ud808\ude2b': 'L'
'\ud808\ude2c': 'L'
'\ud808\ude2d': 'L'
'\ud808\ude2e': 'L'
'\ud808\ude2f': 'L'
'\ud808\ude30': 'L'
'\ud808\ude31': 'L'
'\ud808\ude32': 'L'
'\ud808\ude33': 'L'
'\ud808\ude34': 'L'
'\ud808\ude35': 'L'
'\ud808\ude36': 'L'
'\ud808\ude37': 'L'
'\ud808\ude38': 'L'
'\ud808\ude39': 'L'
'\ud808\ude3a': 'L'
'\ud808\ude3b': 'L'
'\ud808\ude3c': 'L'
'\ud808\ude3d': 'L'
'\ud808\ude3e': 'L'
'\ud808\ude3f': 'L'
'\ud808\ude40': 'L'
'\ud808\ude41': 'L'
'\ud808\ude42': 'L'
'\ud808\ude43': 'L'
'\ud808\ude44': 'L'
'\ud808\ude45': 'L'
'\ud808\ude46': 'L'
'\ud808\ude47': 'L'
'\ud808\ude48': 'L'
'\ud808\ude49': 'L'
'\ud808\ude4a': 'L'
'\ud808\ude4b': 'L'
'\ud808\ude4c': 'L'
'\ud808\ude4d': 'L'
'\ud808\ude4e': 'L'
'\ud808\ude4f': 'L'
'\ud808\ude50': 'L'
'\ud808\ude51': 'L'
'\ud808\ude52': 'L'
'\ud808\ude53': 'L'
'\ud808\ude54': 'L'
'\ud808\ude55': 'L'
'\ud808\ude56': 'L'
'\ud808\ude57': 'L'
'\ud808\ude58': 'L'
'\ud808\ude59': 'L'
'\ud808\ude5a': 'L'
'\ud808\ude5b': 'L'
'\ud808\ude5c': 'L'
'\ud808\ude5d': 'L'
'\ud808\ude5e': 'L'
'\ud808\ude5f': 'L'
'\ud808\ude60': 'L'
'\ud808\ude61': 'L'
'\ud808\ude62': 'L'
'\ud808\ude63': 'L'
'\ud808\ude64': 'L'
'\ud808\ude65': 'L'
'\ud808\ude66': 'L'
'\ud808\ude67': 'L'
'\ud808\ude68': 'L'
'\ud808\ude69': 'L'
'\ud808\ude6a': 'L'
'\ud808\ude6b': 'L'
'\ud808\ude6c': 'L'
'\ud808\ude6d': 'L'
'\ud808\ude6e': 'L'
'\ud808\ude6f': 'L'
'\ud808\ude70': 'L'
'\ud808\ude71': 'L'
'\ud808\ude72': 'L'
'\ud808\ude73': 'L'
'\ud808\ude74': 'L'
'\ud808\ude75': 'L'
'\ud808\ude76': 'L'
'\ud808\ude77': 'L'
'\ud808\ude78': 'L'
'\ud808\ude79': 'L'
'\ud808\ude7a': 'L'
'\ud808\ude7b': 'L'
'\ud808\ude7c': 'L'
'\ud808\ude7d': 'L'
'\ud808\ude7e': 'L'
'\ud808\ude7f': 'L'
'\ud808\ude80': 'L'
'\ud808\ude81': 'L'
'\ud808\ude82': 'L'
'\ud808\ude83': 'L'
'\ud808\ude84': 'L'
'\ud808\ude85': 'L'
'\ud808\ude86': 'L'
'\ud808\ude87': 'L'
'\ud808\ude88': 'L'
'\ud808\ude89': 'L'
'\ud808\ude8a': 'L'
'\ud808\ude8b': 'L'
'\ud808\ude8c': 'L'
'\ud808\ude8d': 'L'
'\ud808\ude8e': 'L'
'\ud808\ude8f': 'L'
'\ud808\ude90': 'L'
'\ud808\ude91': 'L'
'\ud808\ude92': 'L'
'\ud808\ude93': 'L'
'\ud808\ude94': 'L'
'\ud808\ude95': 'L'
'\ud808\ude96': 'L'
'\ud808\ude97': 'L'
'\ud808\ude98': 'L'
'\ud808\ude99': 'L'
'\ud808\ude9a': 'L'
'\ud808\ude9b': 'L'
'\ud808\ude9c': 'L'
'\ud808\ude9d': 'L'
'\ud808\ude9e': 'L'
'\ud808\ude9f': 'L'
'\ud808\udea0': 'L'
'\ud808\udea1': 'L'
'\ud808\udea2': 'L'
'\ud808\udea3': 'L'
'\ud808\udea4': 'L'
'\ud808\udea5': 'L'
'\ud808\udea6': 'L'
'\ud808\udea7': 'L'
'\ud808\udea8': 'L'
'\ud808\udea9': 'L'
'\ud808\udeaa': 'L'
'\ud808\udeab': 'L'
'\ud808\udeac': 'L'
'\ud808\udead': 'L'
'\ud808\udeae': 'L'
'\ud808\udeaf': 'L'
'\ud808\udeb0': 'L'
'\ud808\udeb1': 'L'
'\ud808\udeb2': 'L'
'\ud808\udeb3': 'L'
'\ud808\udeb4': 'L'
'\ud808\udeb5': 'L'
'\ud808\udeb6': 'L'
'\ud808\udeb7': 'L'
'\ud808\udeb8': 'L'
'\ud808\udeb9': 'L'
'\ud808\udeba': 'L'
'\ud808\udebb': 'L'
'\ud808\udebc': 'L'
'\ud808\udebd': 'L'
'\ud808\udebe': 'L'
'\ud808\udebf': 'L'
'\ud808\udec0': 'L'
'\ud808\udec1': 'L'
'\ud808\udec2': 'L'
'\ud808\udec3': 'L'
'\ud808\udec4': 'L'
'\ud808\udec5': 'L'
'\ud808\udec6': 'L'
'\ud808\udec7': 'L'
'\ud808\udec8': 'L'
'\ud808\udec9': 'L'
'\ud808\udeca': 'L'
'\ud808\udecb': 'L'
'\ud808\udecc': 'L'
'\ud808\udecd': 'L'
'\ud808\udece': 'L'
'\ud808\udecf': 'L'
'\ud808\uded0': 'L'
'\ud808\uded1': 'L'
'\ud808\uded2': 'L'
'\ud808\uded3': 'L'
'\ud808\uded4': 'L'
'\ud808\uded5': 'L'
'\ud808\uded6': 'L'
'\ud808\uded7': 'L'
'\ud808\uded8': 'L'
'\ud808\uded9': 'L'
'\ud808\udeda': 'L'
'\ud808\udedb': 'L'
'\ud808\udedc': 'L'
'\ud808\udedd': 'L'
'\ud808\udede': 'L'
'\ud808\udedf': 'L'
'\ud808\udee0': 'L'
'\ud808\udee1': 'L'
'\ud808\udee2': 'L'
'\ud808\udee3': 'L'
'\ud808\udee4': 'L'
'\ud808\udee5': 'L'
'\ud808\udee6': 'L'
'\ud808\udee7': 'L'
'\ud808\udee8': 'L'
'\ud808\udee9': 'L'
'\ud808\udeea': 'L'
'\ud808\udeeb': 'L'
'\ud808\udeec': 'L'
'\ud808\udeed': 'L'
'\ud808\udeee': 'L'
'\ud808\udeef': 'L'
'\ud808\udef0': 'L'
'\ud808\udef1': 'L'
'\ud808\udef2': 'L'
'\ud808\udef3': 'L'
'\ud808\udef4': 'L'
'\ud808\udef5': 'L'
'\ud808\udef6': 'L'
'\ud808\udef7': 'L'
'\ud808\udef8': 'L'
'\ud808\udef9': 'L'
'\ud808\udefa': 'L'
'\ud808\udefb': 'L'
'\ud808\udefc': 'L'
'\ud808\udefd': 'L'
'\ud808\udefe': 'L'
'\ud808\udeff': 'L'
'\ud808\udf00': 'L'
'\ud808\udf01': 'L'
'\ud808\udf02': 'L'
'\ud808\udf03': 'L'
'\ud808\udf04': 'L'
'\ud808\udf05': 'L'
'\ud808\udf06': 'L'
'\ud808\udf07': 'L'
'\ud808\udf08': 'L'
'\ud808\udf09': 'L'
'\ud808\udf0a': 'L'
'\ud808\udf0b': 'L'
'\ud808\udf0c': 'L'
'\ud808\udf0d': 'L'
'\ud808\udf0e': 'L'
'\ud808\udf0f': 'L'
'\ud808\udf10': 'L'
'\ud808\udf11': 'L'
'\ud808\udf12': 'L'
'\ud808\udf13': 'L'
'\ud808\udf14': 'L'
'\ud808\udf15': 'L'
'\ud808\udf16': 'L'
'\ud808\udf17': 'L'
'\ud808\udf18': 'L'
'\ud808\udf19': 'L'
'\ud808\udf1a': 'L'
'\ud808\udf1b': 'L'
'\ud808\udf1c': 'L'
'\ud808\udf1d': 'L'
'\ud808\udf1e': 'L'
'\ud808\udf1f': 'L'
'\ud808\udf20': 'L'
'\ud808\udf21': 'L'
'\ud808\udf22': 'L'
'\ud808\udf23': 'L'
'\ud808\udf24': 'L'
'\ud808\udf25': 'L'
'\ud808\udf26': 'L'
'\ud808\udf27': 'L'
'\ud808\udf28': 'L'
'\ud808\udf29': 'L'
'\ud808\udf2a': 'L'
'\ud808\udf2b': 'L'
'\ud808\udf2c': 'L'
'\ud808\udf2d': 'L'
'\ud808\udf2e': 'L'
'\ud808\udf2f': 'L'
'\ud808\udf30': 'L'
'\ud808\udf31': 'L'
'\ud808\udf32': 'L'
'\ud808\udf33': 'L'
'\ud808\udf34': 'L'
'\ud808\udf35': 'L'
'\ud808\udf36': 'L'
'\ud808\udf37': 'L'
'\ud808\udf38': 'L'
'\ud808\udf39': 'L'
'\ud808\udf3a': 'L'
'\ud808\udf3b': 'L'
'\ud808\udf3c': 'L'
'\ud808\udf3d': 'L'
'\ud808\udf3e': 'L'
'\ud808\udf3f': 'L'
'\ud808\udf40': 'L'
'\ud808\udf41': 'L'
'\ud808\udf42': 'L'
'\ud808\udf43': 'L'
'\ud808\udf44': 'L'
'\ud808\udf45': 'L'
'\ud808\udf46': 'L'
'\ud808\udf47': 'L'
'\ud808\udf48': 'L'
'\ud808\udf49': 'L'
'\ud808\udf4a': 'L'
'\ud808\udf4b': 'L'
'\ud808\udf4c': 'L'
'\ud808\udf4d': 'L'
'\ud808\udf4e': 'L'
'\ud808\udf4f': 'L'
'\ud808\udf50': 'L'
'\ud808\udf51': 'L'
'\ud808\udf52': 'L'
'\ud808\udf53': 'L'
'\ud808\udf54': 'L'
'\ud808\udf55': 'L'
'\ud808\udf56': 'L'
'\ud808\udf57': 'L'
'\ud808\udf58': 'L'
'\ud808\udf59': 'L'
'\ud808\udf5a': 'L'
'\ud808\udf5b': 'L'
'\ud808\udf5c': 'L'
'\ud808\udf5d': 'L'
'\ud808\udf5e': 'L'
'\ud808\udf5f': 'L'
'\ud808\udf60': 'L'
'\ud808\udf61': 'L'
'\ud808\udf62': 'L'
'\ud808\udf63': 'L'
'\ud808\udf64': 'L'
'\ud808\udf65': 'L'
'\ud808\udf66': 'L'
'\ud808\udf67': 'L'
'\ud808\udf68': 'L'
'\ud808\udf69': 'L'
'\ud808\udf6a': 'L'
'\ud808\udf6b': 'L'
'\ud808\udf6c': 'L'
'\ud808\udf6d': 'L'
'\ud808\udf6e': 'L'
'\ud808\udf6f': 'L'
'\ud808\udf70': 'L'
'\ud808\udf71': 'L'
'\ud808\udf72': 'L'
'\ud808\udf73': 'L'
'\ud808\udf74': 'L'
'\ud808\udf75': 'L'
'\ud808\udf76': 'L'
'\ud808\udf77': 'L'
'\ud808\udf78': 'L'
'\ud808\udf79': 'L'
'\ud808\udf7a': 'L'
'\ud808\udf7b': 'L'
'\ud808\udf7c': 'L'
'\ud808\udf7d': 'L'
'\ud808\udf7e': 'L'
'\ud808\udf7f': 'L'
'\ud808\udf80': 'L'
'\ud808\udf81': 'L'
'\ud808\udf82': 'L'
'\ud808\udf83': 'L'
'\ud808\udf84': 'L'
'\ud808\udf85': 'L'
'\ud808\udf86': 'L'
'\ud808\udf87': 'L'
'\ud808\udf88': 'L'
'\ud808\udf89': 'L'
'\ud808\udf8a': 'L'
'\ud808\udf8b': 'L'
'\ud808\udf8c': 'L'
'\ud808\udf8d': 'L'
'\ud808\udf8e': 'L'
'\ud808\udf8f': 'L'
'\ud808\udf90': 'L'
'\ud808\udf91': 'L'
'\ud808\udf92': 'L'
'\ud808\udf93': 'L'
'\ud808\udf94': 'L'
'\ud808\udf95': 'L'
'\ud808\udf96': 'L'
'\ud808\udf97': 'L'
'\ud808\udf98': 'L'
'\ud808\udf99': 'L'
'\ud809\udc00': 'N'
'\ud809\udc01': 'N'
'\ud809\udc02': 'N'
'\ud809\udc03': 'N'
'\ud809\udc04': 'N'
'\ud809\udc05': 'N'
'\ud809\udc06': 'N'
'\ud809\udc07': 'N'
'\ud809\udc08': 'N'
'\ud809\udc09': 'N'
'\ud809\udc0a': 'N'
'\ud809\udc0b': 'N'
'\ud809\udc0c': 'N'
'\ud809\udc0d': 'N'
'\ud809\udc0e': 'N'
'\ud809\udc0f': 'N'
'\ud809\udc10': 'N'
'\ud809\udc11': 'N'
'\ud809\udc12': 'N'
'\ud809\udc13': 'N'
'\ud809\udc14': 'N'
'\ud809\udc15': 'N'
'\ud809\udc16': 'N'
'\ud809\udc17': 'N'
'\ud809\udc18': 'N'
'\ud809\udc19': 'N'
'\ud809\udc1a': 'N'
'\ud809\udc1b': 'N'
'\ud809\udc1c': 'N'
'\ud809\udc1d': 'N'
'\ud809\udc1e': 'N'
'\ud809\udc1f': 'N'
'\ud809\udc20': 'N'
'\ud809\udc21': 'N'
'\ud809\udc22': 'N'
'\ud809\udc23': 'N'
'\ud809\udc24': 'N'
'\ud809\udc25': 'N'
'\ud809\udc26': 'N'
'\ud809\udc27': 'N'
'\ud809\udc28': 'N'
'\ud809\udc29': 'N'
'\ud809\udc2a': 'N'
'\ud809\udc2b': 'N'
'\ud809\udc2c': 'N'
'\ud809\udc2d': 'N'
'\ud809\udc2e': 'N'
'\ud809\udc2f': 'N'
'\ud809\udc30': 'N'
'\ud809\udc31': 'N'
'\ud809\udc32': 'N'
'\ud809\udc33': 'N'
'\ud809\udc34': 'N'
'\ud809\udc35': 'N'
'\ud809\udc36': 'N'
'\ud809\udc37': 'N'
'\ud809\udc38': 'N'
'\ud809\udc39': 'N'
'\ud809\udc3a': 'N'
'\ud809\udc3b': 'N'
'\ud809\udc3c': 'N'
'\ud809\udc3d': 'N'
'\ud809\udc3e': 'N'
'\ud809\udc3f': 'N'
'\ud809\udc40': 'N'
'\ud809\udc41': 'N'
'\ud809\udc42': 'N'
'\ud809\udc43': 'N'
'\ud809\udc44': 'N'
'\ud809\udc45': 'N'
'\ud809\udc46': 'N'
'\ud809\udc47': 'N'
'\ud809\udc48': 'N'
'\ud809\udc49': 'N'
'\ud809\udc4a': 'N'
'\ud809\udc4b': 'N'
'\ud809\udc4c': 'N'
'\ud809\udc4d': 'N'
'\ud809\udc4e': 'N'
'\ud809\udc4f': 'N'
'\ud809\udc50': 'N'
'\ud809\udc51': 'N'
'\ud809\udc52': 'N'
'\ud809\udc53': 'N'
'\ud809\udc54': 'N'
'\ud809\udc55': 'N'
'\ud809\udc56': 'N'
'\ud809\udc57': 'N'
'\ud809\udc58': 'N'
'\ud809\udc59': 'N'
'\ud809\udc5a': 'N'
'\ud809\udc5b': 'N'
'\ud809\udc5c': 'N'
'\ud809\udc5d': 'N'
'\ud809\udc5e': 'N'
'\ud809\udc5f': 'N'
'\ud809\udc60': 'N'
'\ud809\udc61': 'N'
'\ud809\udc62': 'N'
'\ud809\udc63': 'N'
'\ud809\udc64': 'N'
'\ud809\udc65': 'N'
'\ud809\udc66': 'N'
'\ud809\udc67': 'N'
'\ud809\udc68': 'N'
'\ud809\udc69': 'N'
'\ud809\udc6a': 'N'
'\ud809\udc6b': 'N'
'\ud809\udc6c': 'N'
'\ud809\udc6d': 'N'
'\ud809\udc6e': 'N'
'\ud809\udc80': 'L'
'\ud809\udc81': 'L'
'\ud809\udc82': 'L'
'\ud809\udc83': 'L'
'\ud809\udc84': 'L'
'\ud809\udc85': 'L'
'\ud809\udc86': 'L'
'\ud809\udc87': 'L'
'\ud809\udc88': 'L'
'\ud809\udc89': 'L'
'\ud809\udc8a': 'L'
'\ud809\udc8b': 'L'
'\ud809\udc8c': 'L'
'\ud809\udc8d': 'L'
'\ud809\udc8e': 'L'
'\ud809\udc8f': 'L'
'\ud809\udc90': 'L'
'\ud809\udc91': 'L'
'\ud809\udc92': 'L'
'\ud809\udc93': 'L'
'\ud809\udc94': 'L'
'\ud809\udc95': 'L'
'\ud809\udc96': 'L'
'\ud809\udc97': 'L'
'\ud809\udc98': 'L'
'\ud809\udc99': 'L'
'\ud809\udc9a': 'L'
'\ud809\udc9b': 'L'
'\ud809\udc9c': 'L'
'\ud809\udc9d': 'L'
'\ud809\udc9e': 'L'
'\ud809\udc9f': 'L'
'\ud809\udca0': 'L'
'\ud809\udca1': 'L'
'\ud809\udca2': 'L'
'\ud809\udca3': 'L'
'\ud809\udca4': 'L'
'\ud809\udca5': 'L'
'\ud809\udca6': 'L'
'\ud809\udca7': 'L'
'\ud809\udca8': 'L'
'\ud809\udca9': 'L'
'\ud809\udcaa': 'L'
'\ud809\udcab': 'L'
'\ud809\udcac': 'L'
'\ud809\udcad': 'L'
'\ud809\udcae': 'L'
'\ud809\udcaf': 'L'
'\ud809\udcb0': 'L'
'\ud809\udcb1': 'L'
'\ud809\udcb2': 'L'
'\ud809\udcb3': 'L'
'\ud809\udcb4': 'L'
'\ud809\udcb5': 'L'
'\ud809\udcb6': 'L'
'\ud809\udcb7': 'L'
'\ud809\udcb8': 'L'
'\ud809\udcb9': 'L'
'\ud809\udcba': 'L'
'\ud809\udcbb': 'L'
'\ud809\udcbc': 'L'
'\ud809\udcbd': 'L'
'\ud809\udcbe': 'L'
'\ud809\udcbf': 'L'
'\ud809\udcc0': 'L'
'\ud809\udcc1': 'L'
'\ud809\udcc2': 'L'
'\ud809\udcc3': 'L'
'\ud809\udcc4': 'L'
'\ud809\udcc5': 'L'
'\ud809\udcc6': 'L'
'\ud809\udcc7': 'L'
'\ud809\udcc8': 'L'
'\ud809\udcc9': 'L'
'\ud809\udcca': 'L'
'\ud809\udccb': 'L'
'\ud809\udccc': 'L'
'\ud809\udccd': 'L'
'\ud809\udcce': 'L'
'\ud809\udccf': 'L'
'\ud809\udcd0': 'L'
'\ud809\udcd1': 'L'
'\ud809\udcd2': 'L'
'\ud809\udcd3': 'L'
'\ud809\udcd4': 'L'
'\ud809\udcd5': 'L'
'\ud809\udcd6': 'L'
'\ud809\udcd7': 'L'
'\ud809\udcd8': 'L'
'\ud809\udcd9': 'L'
'\ud809\udcda': 'L'
'\ud809\udcdb': 'L'
'\ud809\udcdc': 'L'
'\ud809\udcdd': 'L'
'\ud809\udcde': 'L'
'\ud809\udcdf': 'L'
'\ud809\udce0': 'L'
'\ud809\udce1': 'L'
'\ud809\udce2': 'L'
'\ud809\udce3': 'L'
'\ud809\udce4': 'L'
'\ud809\udce5': 'L'
'\ud809\udce6': 'L'
'\ud809\udce7': 'L'
'\ud809\udce8': 'L'
'\ud809\udce9': 'L'
'\ud809\udcea': 'L'
'\ud809\udceb': 'L'
'\ud809\udcec': 'L'
'\ud809\udced': 'L'
'\ud809\udcee': 'L'
'\ud809\udcef': 'L'
'\ud809\udcf0': 'L'
'\ud809\udcf1': 'L'
'\ud809\udcf2': 'L'
'\ud809\udcf3': 'L'
'\ud809\udcf4': 'L'
'\ud809\udcf5': 'L'
'\ud809\udcf6': 'L'
'\ud809\udcf7': 'L'
'\ud809\udcf8': 'L'
'\ud809\udcf9': 'L'
'\ud809\udcfa': 'L'
'\ud809\udcfb': 'L'
'\ud809\udcfc': 'L'
'\ud809\udcfd': 'L'
'\ud809\udcfe': 'L'
'\ud809\udcff': 'L'
'\ud809\udd00': 'L'
'\ud809\udd01': 'L'
'\ud809\udd02': 'L'
'\ud809\udd03': 'L'
'\ud809\udd04': 'L'
'\ud809\udd05': 'L'
'\ud809\udd06': 'L'
'\ud809\udd07': 'L'
'\ud809\udd08': 'L'
'\ud809\udd09': 'L'
'\ud809\udd0a': 'L'
'\ud809\udd0b': 'L'
'\ud809\udd0c': 'L'
'\ud809\udd0d': 'L'
'\ud809\udd0e': 'L'
'\ud809\udd0f': 'L'
'\ud809\udd10': 'L'
'\ud809\udd11': 'L'
'\ud809\udd12': 'L'
'\ud809\udd13': 'L'
'\ud809\udd14': 'L'
'\ud809\udd15': 'L'
'\ud809\udd16': 'L'
'\ud809\udd17': 'L'
'\ud809\udd18': 'L'
'\ud809\udd19': 'L'
'\ud809\udd1a': 'L'
'\ud809\udd1b': 'L'
'\ud809\udd1c': 'L'
'\ud809\udd1d': 'L'
'\ud809\udd1e': 'L'
'\ud809\udd1f': 'L'
'\ud809\udd20': 'L'
'\ud809\udd21': 'L'
'\ud809\udd22': 'L'
'\ud809\udd23': 'L'
'\ud809\udd24': 'L'
'\ud809\udd25': 'L'
'\ud809\udd26': 'L'
'\ud809\udd27': 'L'
'\ud809\udd28': 'L'
'\ud809\udd29': 'L'
'\ud809\udd2a': 'L'
'\ud809\udd2b': 'L'
'\ud809\udd2c': 'L'
'\ud809\udd2d': 'L'
'\ud809\udd2e': 'L'
'\ud809\udd2f': 'L'
'\ud809\udd30': 'L'
'\ud809\udd31': 'L'
'\ud809\udd32': 'L'
'\ud809\udd33': 'L'
'\ud809\udd34': 'L'
'\ud809\udd35': 'L'
'\ud809\udd36': 'L'
'\ud809\udd37': 'L'
'\ud809\udd38': 'L'
'\ud809\udd39': 'L'
'\ud809\udd3a': 'L'
'\ud809\udd3b': 'L'
'\ud809\udd3c': 'L'
'\ud809\udd3d': 'L'
'\ud809\udd3e': 'L'
'\ud809\udd3f': 'L'
'\ud809\udd40': 'L'
'\ud809\udd41': 'L'
'\ud809\udd42': 'L'
'\ud809\udd43': 'L'
'\ud80c\udc00': 'L'
'\ud80c\udc01': 'L'
'\ud80c\udc02': 'L'
'\ud80c\udc03': 'L'
'\ud80c\udc04': 'L'
'\ud80c\udc05': 'L'
'\ud80c\udc06': 'L'
'\ud80c\udc07': 'L'
'\ud80c\udc08': 'L'
'\ud80c\udc09': 'L'
'\ud80c\udc0a': 'L'
'\ud80c\udc0b': 'L'
'\ud80c\udc0c': 'L'
'\ud80c\udc0d': 'L'
'\ud80c\udc0e': 'L'
'\ud80c\udc0f': 'L'
'\ud80c\udc10': 'L'
'\ud80c\udc11': 'L'
'\ud80c\udc12': 'L'
'\ud80c\udc13': 'L'
'\ud80c\udc14': 'L'
'\ud80c\udc15': 'L'
'\ud80c\udc16': 'L'
'\ud80c\udc17': 'L'
'\ud80c\udc18': 'L'
'\ud80c\udc19': 'L'
'\ud80c\udc1a': 'L'
'\ud80c\udc1b': 'L'
'\ud80c\udc1c': 'L'
'\ud80c\udc1d': 'L'
'\ud80c\udc1e': 'L'
'\ud80c\udc1f': 'L'
'\ud80c\udc20': 'L'
'\ud80c\udc21': 'L'
'\ud80c\udc22': 'L'
'\ud80c\udc23': 'L'
'\ud80c\udc24': 'L'
'\ud80c\udc25': 'L'
'\ud80c\udc26': 'L'
'\ud80c\udc27': 'L'
'\ud80c\udc28': 'L'
'\ud80c\udc29': 'L'
'\ud80c\udc2a': 'L'
'\ud80c\udc2b': 'L'
'\ud80c\udc2c': 'L'
'\ud80c\udc2d': 'L'
'\ud80c\udc2e': 'L'
'\ud80c\udc2f': 'L'
'\ud80c\udc30': 'L'
'\ud80c\udc31': 'L'
'\ud80c\udc32': 'L'
'\ud80c\udc33': 'L'
'\ud80c\udc34': 'L'
'\ud80c\udc35': 'L'
'\ud80c\udc36': 'L'
'\ud80c\udc37': 'L'
'\ud80c\udc38': 'L'
'\ud80c\udc39': 'L'
'\ud80c\udc3a': 'L'
'\ud80c\udc3b': 'L'
'\ud80c\udc3c': 'L'
'\ud80c\udc3d': 'L'
'\ud80c\udc3e': 'L'
'\ud80c\udc3f': 'L'
'\ud80c\udc40': 'L'
'\ud80c\udc41': 'L'
'\ud80c\udc42': 'L'
'\ud80c\udc43': 'L'
'\ud80c\udc44': 'L'
'\ud80c\udc45': 'L'
'\ud80c\udc46': 'L'
'\ud80c\udc47': 'L'
'\ud80c\udc48': 'L'
'\ud80c\udc49': 'L'
'\ud80c\udc4a': 'L'
'\ud80c\udc4b': 'L'
'\ud80c\udc4c': 'L'
'\ud80c\udc4d': 'L'
'\ud80c\udc4e': 'L'
'\ud80c\udc4f': 'L'
'\ud80c\udc50': 'L'
'\ud80c\udc51': 'L'
'\ud80c\udc52': 'L'
'\ud80c\udc53': 'L'
'\ud80c\udc54': 'L'
'\ud80c\udc55': 'L'
'\ud80c\udc56': 'L'
'\ud80c\udc57': 'L'
'\ud80c\udc58': 'L'
'\ud80c\udc59': 'L'
'\ud80c\udc5a': 'L'
'\ud80c\udc5b': 'L'
'\ud80c\udc5c': 'L'
'\ud80c\udc5d': 'L'
'\ud80c\udc5e': 'L'
'\ud80c\udc5f': 'L'
'\ud80c\udc60': 'L'
'\ud80c\udc61': 'L'
'\ud80c\udc62': 'L'
'\ud80c\udc63': 'L'
'\ud80c\udc64': 'L'
'\ud80c\udc65': 'L'
'\ud80c\udc66': 'L'
'\ud80c\udc67': 'L'
'\ud80c\udc68': 'L'
'\ud80c\udc69': 'L'
'\ud80c\udc6a': 'L'
'\ud80c\udc6b': 'L'
'\ud80c\udc6c': 'L'
'\ud80c\udc6d': 'L'
'\ud80c\udc6e': 'L'
'\ud80c\udc6f': 'L'
'\ud80c\udc70': 'L'
'\ud80c\udc71': 'L'
'\ud80c\udc72': 'L'
'\ud80c\udc73': 'L'
'\ud80c\udc74': 'L'
'\ud80c\udc75': 'L'
'\ud80c\udc76': 'L'
'\ud80c\udc77': 'L'
'\ud80c\udc78': 'L'
'\ud80c\udc79': 'L'
'\ud80c\udc7a': 'L'
'\ud80c\udc7b': 'L'
'\ud80c\udc7c': 'L'
'\ud80c\udc7d': 'L'
'\ud80c\udc7e': 'L'
'\ud80c\udc7f': 'L'
'\ud80c\udc80': 'L'
'\ud80c\udc81': 'L'
'\ud80c\udc82': 'L'
'\ud80c\udc83': 'L'
'\ud80c\udc84': 'L'
'\ud80c\udc85': 'L'
'\ud80c\udc86': 'L'
'\ud80c\udc87': 'L'
'\ud80c\udc88': 'L'
'\ud80c\udc89': 'L'
'\ud80c\udc8a': 'L'
'\ud80c\udc8b': 'L'
'\ud80c\udc8c': 'L'
'\ud80c\udc8d': 'L'
'\ud80c\udc8e': 'L'
'\ud80c\udc8f': 'L'
'\ud80c\udc90': 'L'
'\ud80c\udc91': 'L'
'\ud80c\udc92': 'L'
'\ud80c\udc93': 'L'
'\ud80c\udc94': 'L'
'\ud80c\udc95': 'L'
'\ud80c\udc96': 'L'
'\ud80c\udc97': 'L'
'\ud80c\udc98': 'L'
'\ud80c\udc99': 'L'
'\ud80c\udc9a': 'L'
'\ud80c\udc9b': 'L'
'\ud80c\udc9c': 'L'
'\ud80c\udc9d': 'L'
'\ud80c\udc9e': 'L'
'\ud80c\udc9f': 'L'
'\ud80c\udca0': 'L'
'\ud80c\udca1': 'L'
'\ud80c\udca2': 'L'
'\ud80c\udca3': 'L'
'\ud80c\udca4': 'L'
'\ud80c\udca5': 'L'
'\ud80c\udca6': 'L'
'\ud80c\udca7': 'L'
'\ud80c\udca8': 'L'
'\ud80c\udca9': 'L'
'\ud80c\udcaa': 'L'
'\ud80c\udcab': 'L'
'\ud80c\udcac': 'L'
'\ud80c\udcad': 'L'
'\ud80c\udcae': 'L'
'\ud80c\udcaf': 'L'
'\ud80c\udcb0': 'L'
'\ud80c\udcb1': 'L'
'\ud80c\udcb2': 'L'
'\ud80c\udcb3': 'L'
'\ud80c\udcb4': 'L'
'\ud80c\udcb5': 'L'
'\ud80c\udcb6': 'L'
'\ud80c\udcb7': 'L'
'\ud80c\udcb8': 'L'
'\ud80c\udcb9': 'L'
'\ud80c\udcba': 'L'
'\ud80c\udcbb': 'L'
'\ud80c\udcbc': 'L'
'\ud80c\udcbd': 'L'
'\ud80c\udcbe': 'L'
'\ud80c\udcbf': 'L'
'\ud80c\udcc0': 'L'
'\ud80c\udcc1': 'L'
'\ud80c\udcc2': 'L'
'\ud80c\udcc3': 'L'
'\ud80c\udcc4': 'L'
'\ud80c\udcc5': 'L'
'\ud80c\udcc6': 'L'
'\ud80c\udcc7': 'L'
'\ud80c\udcc8': 'L'
'\ud80c\udcc9': 'L'
'\ud80c\udcca': 'L'
'\ud80c\udccb': 'L'
'\ud80c\udccc': 'L'
'\ud80c\udccd': 'L'
'\ud80c\udcce': 'L'
'\ud80c\udccf': 'L'
'\ud80c\udcd0': 'L'
'\ud80c\udcd1': 'L'
'\ud80c\udcd2': 'L'
'\ud80c\udcd3': 'L'
'\ud80c\udcd4': 'L'
'\ud80c\udcd5': 'L'
'\ud80c\udcd6': 'L'
'\ud80c\udcd7': 'L'
'\ud80c\udcd8': 'L'
'\ud80c\udcd9': 'L'
'\ud80c\udcda': 'L'
'\ud80c\udcdb': 'L'
'\ud80c\udcdc': 'L'
'\ud80c\udcdd': 'L'
'\ud80c\udcde': 'L'
'\ud80c\udcdf': 'L'
'\ud80c\udce0': 'L'
'\ud80c\udce1': 'L'
'\ud80c\udce2': 'L'
'\ud80c\udce3': 'L'
'\ud80c\udce4': 'L'
'\ud80c\udce5': 'L'
'\ud80c\udce6': 'L'
'\ud80c\udce7': 'L'
'\ud80c\udce8': 'L'
'\ud80c\udce9': 'L'
'\ud80c\udcea': 'L'
'\ud80c\udceb': 'L'
'\ud80c\udcec': 'L'
'\ud80c\udced': 'L'
'\ud80c\udcee': 'L'
'\ud80c\udcef': 'L'
'\ud80c\udcf0': 'L'
'\ud80c\udcf1': 'L'
'\ud80c\udcf2': 'L'
'\ud80c\udcf3': 'L'
'\ud80c\udcf4': 'L'
'\ud80c\udcf5': 'L'
'\ud80c\udcf6': 'L'
'\ud80c\udcf7': 'L'
'\ud80c\udcf8': 'L'
'\ud80c\udcf9': 'L'
'\ud80c\udcfa': 'L'
'\ud80c\udcfb': 'L'
'\ud80c\udcfc': 'L'
'\ud80c\udcfd': 'L'
'\ud80c\udcfe': 'L'
'\ud80c\udcff': 'L'
'\ud80c\udd00': 'L'
'\ud80c\udd01': 'L'
'\ud80c\udd02': 'L'
'\ud80c\udd03': 'L'
'\ud80c\udd04': 'L'
'\ud80c\udd05': 'L'
'\ud80c\udd06': 'L'
'\ud80c\udd07': 'L'
'\ud80c\udd08': 'L'
'\ud80c\udd09': 'L'
'\ud80c\udd0a': 'L'
'\ud80c\udd0b': 'L'
'\ud80c\udd0c': 'L'
'\ud80c\udd0d': 'L'
'\ud80c\udd0e': 'L'
'\ud80c\udd0f': 'L'
'\ud80c\udd10': 'L'
'\ud80c\udd11': 'L'
'\ud80c\udd12': 'L'
'\ud80c\udd13': 'L'
'\ud80c\udd14': 'L'
'\ud80c\udd15': 'L'
'\ud80c\udd16': 'L'
'\ud80c\udd17': 'L'
'\ud80c\udd18': 'L'
'\ud80c\udd19': 'L'
'\ud80c\udd1a': 'L'
'\ud80c\udd1b': 'L'
'\ud80c\udd1c': 'L'
'\ud80c\udd1d': 'L'
'\ud80c\udd1e': 'L'
'\ud80c\udd1f': 'L'
'\ud80c\udd20': 'L'
'\ud80c\udd21': 'L'
'\ud80c\udd22': 'L'
'\ud80c\udd23': 'L'
'\ud80c\udd24': 'L'
'\ud80c\udd25': 'L'
'\ud80c\udd26': 'L'
'\ud80c\udd27': 'L'
'\ud80c\udd28': 'L'
'\ud80c\udd29': 'L'
'\ud80c\udd2a': 'L'
'\ud80c\udd2b': 'L'
'\ud80c\udd2c': 'L'
'\ud80c\udd2d': 'L'
'\ud80c\udd2e': 'L'
'\ud80c\udd2f': 'L'
'\ud80c\udd30': 'L'
'\ud80c\udd31': 'L'
'\ud80c\udd32': 'L'
'\ud80c\udd33': 'L'
'\ud80c\udd34': 'L'
'\ud80c\udd35': 'L'
'\ud80c\udd36': 'L'
'\ud80c\udd37': 'L'
'\ud80c\udd38': 'L'
'\ud80c\udd39': 'L'
'\ud80c\udd3a': 'L'
'\ud80c\udd3b': 'L'
'\ud80c\udd3c': 'L'
'\ud80c\udd3d': 'L'
'\ud80c\udd3e': 'L'
'\ud80c\udd3f': 'L'
'\ud80c\udd40': 'L'
'\ud80c\udd41': 'L'
'\ud80c\udd42': 'L'
'\ud80c\udd43': 'L'
'\ud80c\udd44': 'L'
'\ud80c\udd45': 'L'
'\ud80c\udd46': 'L'
'\ud80c\udd47': 'L'
'\ud80c\udd48': 'L'
'\ud80c\udd49': 'L'
'\ud80c\udd4a': 'L'
'\ud80c\udd4b': 'L'
'\ud80c\udd4c': 'L'
'\ud80c\udd4d': 'L'
'\ud80c\udd4e': 'L'
'\ud80c\udd4f': 'L'
'\ud80c\udd50': 'L'
'\ud80c\udd51': 'L'
'\ud80c\udd52': 'L'
'\ud80c\udd53': 'L'
'\ud80c\udd54': 'L'
'\ud80c\udd55': 'L'
'\ud80c\udd56': 'L'
'\ud80c\udd57': 'L'
'\ud80c\udd58': 'L'
'\ud80c\udd59': 'L'
'\ud80c\udd5a': 'L'
'\ud80c\udd5b': 'L'
'\ud80c\udd5c': 'L'
'\ud80c\udd5d': 'L'
'\ud80c\udd5e': 'L'
'\ud80c\udd5f': 'L'
'\ud80c\udd60': 'L'
'\ud80c\udd61': 'L'
'\ud80c\udd62': 'L'
'\ud80c\udd63': 'L'
'\ud80c\udd64': 'L'
'\ud80c\udd65': 'L'
'\ud80c\udd66': 'L'
'\ud80c\udd67': 'L'
'\ud80c\udd68': 'L'
'\ud80c\udd69': 'L'
'\ud80c\udd6a': 'L'
'\ud80c\udd6b': 'L'
'\ud80c\udd6c': 'L'
'\ud80c\udd6d': 'L'
'\ud80c\udd6e': 'L'
'\ud80c\udd6f': 'L'
'\ud80c\udd70': 'L'
'\ud80c\udd71': 'L'
'\ud80c\udd72': 'L'
'\ud80c\udd73': 'L'
'\ud80c\udd74': 'L'
'\ud80c\udd75': 'L'
'\ud80c\udd76': 'L'
'\ud80c\udd77': 'L'
'\ud80c\udd78': 'L'
'\ud80c\udd79': 'L'
'\ud80c\udd7a': 'L'
'\ud80c\udd7b': 'L'
'\ud80c\udd7c': 'L'
'\ud80c\udd7d': 'L'
'\ud80c\udd7e': 'L'
'\ud80c\udd7f': 'L'
'\ud80c\udd80': 'L'
'\ud80c\udd81': 'L'
'\ud80c\udd82': 'L'
'\ud80c\udd83': 'L'
'\ud80c\udd84': 'L'
'\ud80c\udd85': 'L'
'\ud80c\udd86': 'L'
'\ud80c\udd87': 'L'
'\ud80c\udd88': 'L'
'\ud80c\udd89': 'L'
'\ud80c\udd8a': 'L'
'\ud80c\udd8b': 'L'
'\ud80c\udd8c': 'L'
'\ud80c\udd8d': 'L'
'\ud80c\udd8e': 'L'
'\ud80c\udd8f': 'L'
'\ud80c\udd90': 'L'
'\ud80c\udd91': 'L'
'\ud80c\udd92': 'L'
'\ud80c\udd93': 'L'
'\ud80c\udd94': 'L'
'\ud80c\udd95': 'L'
'\ud80c\udd96': 'L'
'\ud80c\udd97': 'L'
'\ud80c\udd98': 'L'
'\ud80c\udd99': 'L'
'\ud80c\udd9a': 'L'
'\ud80c\udd9b': 'L'
'\ud80c\udd9c': 'L'
'\ud80c\udd9d': 'L'
'\ud80c\udd9e': 'L'
'\ud80c\udd9f': 'L'
'\ud80c\udda0': 'L'
'\ud80c\udda1': 'L'
'\ud80c\udda2': 'L'
'\ud80c\udda3': 'L'
'\ud80c\udda4': 'L'
'\ud80c\udda5': 'L'
'\ud80c\udda6': 'L'
'\ud80c\udda7': 'L'
'\ud80c\udda8': 'L'
'\ud80c\udda9': 'L'
'\ud80c\uddaa': 'L'
'\ud80c\uddab': 'L'
'\ud80c\uddac': 'L'
'\ud80c\uddad': 'L'
'\ud80c\uddae': 'L'
'\ud80c\uddaf': 'L'
'\ud80c\uddb0': 'L'
'\ud80c\uddb1': 'L'
'\ud80c\uddb2': 'L'
'\ud80c\uddb3': 'L'
'\ud80c\uddb4': 'L'
'\ud80c\uddb5': 'L'
'\ud80c\uddb6': 'L'
'\ud80c\uddb7': 'L'
'\ud80c\uddb8': 'L'
'\ud80c\uddb9': 'L'
'\ud80c\uddba': 'L'
'\ud80c\uddbb': 'L'
'\ud80c\uddbc': 'L'
'\ud80c\uddbd': 'L'
'\ud80c\uddbe': 'L'
'\ud80c\uddbf': 'L'
'\ud80c\uddc0': 'L'
'\ud80c\uddc1': 'L'
'\ud80c\uddc2': 'L'
'\ud80c\uddc3': 'L'
'\ud80c\uddc4': 'L'
'\ud80c\uddc5': 'L'
'\ud80c\uddc6': 'L'
'\ud80c\uddc7': 'L'
'\ud80c\uddc8': 'L'
'\ud80c\uddc9': 'L'
'\ud80c\uddca': 'L'
'\ud80c\uddcb': 'L'
'\ud80c\uddcc': 'L'
'\ud80c\uddcd': 'L'
'\ud80c\uddce': 'L'
'\ud80c\uddcf': 'L'
'\ud80c\uddd0': 'L'
'\ud80c\uddd1': 'L'
'\ud80c\uddd2': 'L'
'\ud80c\uddd3': 'L'
'\ud80c\uddd4': 'L'
'\ud80c\uddd5': 'L'
'\ud80c\uddd6': 'L'
'\ud80c\uddd7': 'L'
'\ud80c\uddd8': 'L'
'\ud80c\uddd9': 'L'
'\ud80c\uddda': 'L'
'\ud80c\udddb': 'L'
'\ud80c\udddc': 'L'
'\ud80c\udddd': 'L'
'\ud80c\uddde': 'L'
'\ud80c\udddf': 'L'
'\ud80c\udde0': 'L'
'\ud80c\udde1': 'L'
'\ud80c\udde2': 'L'
'\ud80c\udde3': 'L'
'\ud80c\udde4': 'L'
'\ud80c\udde5': 'L'
'\ud80c\udde6': 'L'
'\ud80c\udde7': 'L'
'\ud80c\udde8': 'L'
'\ud80c\udde9': 'L'
'\ud80c\uddea': 'L'
'\ud80c\uddeb': 'L'
'\ud80c\uddec': 'L'
'\ud80c\udded': 'L'
'\ud80c\uddee': 'L'
'\ud80c\uddef': 'L'
'\ud80c\uddf0': 'L'
'\ud80c\uddf1': 'L'
'\ud80c\uddf2': 'L'
'\ud80c\uddf3': 'L'
'\ud80c\uddf4': 'L'
'\ud80c\uddf5': 'L'
'\ud80c\uddf6': 'L'
'\ud80c\uddf7': 'L'
'\ud80c\uddf8': 'L'
'\ud80c\uddf9': 'L'
'\ud80c\uddfa': 'L'
'\ud80c\uddfb': 'L'
'\ud80c\uddfc': 'L'
'\ud80c\uddfd': 'L'
'\ud80c\uddfe': 'L'
'\ud80c\uddff': 'L'
'\ud80c\ude00': 'L'
'\ud80c\ude01': 'L'
'\ud80c\ude02': 'L'
'\ud80c\ude03': 'L'
'\ud80c\ude04': 'L'
'\ud80c\ude05': 'L'
'\ud80c\ude06': 'L'
'\ud80c\ude07': 'L'
'\ud80c\ude08': 'L'
'\ud80c\ude09': 'L'
'\ud80c\ude0a': 'L'
'\ud80c\ude0b': 'L'
'\ud80c\ude0c': 'L'
'\ud80c\ude0d': 'L'
'\ud80c\ude0e': 'L'
'\ud80c\ude0f': 'L'
'\ud80c\ude10': 'L'
'\ud80c\ude11': 'L'
'\ud80c\ude12': 'L'
'\ud80c\ude13': 'L'
'\ud80c\ude14': 'L'
'\ud80c\ude15': 'L'
'\ud80c\ude16': 'L'
'\ud80c\ude17': 'L'
'\ud80c\ude18': 'L'
'\ud80c\ude19': 'L'
'\ud80c\ude1a': 'L'
'\ud80c\ude1b': 'L'
'\ud80c\ude1c': 'L'
'\ud80c\ude1d': 'L'
'\ud80c\ude1e': 'L'
'\ud80c\ude1f': 'L'
'\ud80c\ude20': 'L'
'\ud80c\ude21': 'L'
'\ud80c\ude22': 'L'
'\ud80c\ude23': 'L'
'\ud80c\ude24': 'L'
'\ud80c\ude25': 'L'
'\ud80c\ude26': 'L'
'\ud80c\ude27': 'L'
'\ud80c\ude28': 'L'
'\ud80c\ude29': 'L'
'\ud80c\ude2a': 'L'
'\ud80c\ude2b': 'L'
'\ud80c\ude2c': 'L'
'\ud80c\ude2d': 'L'
'\ud80c\ude2e': 'L'
'\ud80c\ude2f': 'L'
'\ud80c\ude30': 'L'
'\ud80c\ude31': 'L'
'\ud80c\ude32': 'L'
'\ud80c\ude33': 'L'
'\ud80c\ude34': 'L'
'\ud80c\ude35': 'L'
'\ud80c\ude36': 'L'
'\ud80c\ude37': 'L'
'\ud80c\ude38': 'L'
'\ud80c\ude39': 'L'
'\ud80c\ude3a': 'L'
'\ud80c\ude3b': 'L'
'\ud80c\ude3c': 'L'
'\ud80c\ude3d': 'L'
'\ud80c\ude3e': 'L'
'\ud80c\ude3f': 'L'
'\ud80c\ude40': 'L'
'\ud80c\ude41': 'L'
'\ud80c\ude42': 'L'
'\ud80c\ude43': 'L'
'\ud80c\ude44': 'L'
'\ud80c\ude45': 'L'
'\ud80c\ude46': 'L'
'\ud80c\ude47': 'L'
'\ud80c\ude48': 'L'
'\ud80c\ude49': 'L'
'\ud80c\ude4a': 'L'
'\ud80c\ude4b': 'L'
'\ud80c\ude4c': 'L'
'\ud80c\ude4d': 'L'
'\ud80c\ude4e': 'L'
'\ud80c\ude4f': 'L'
'\ud80c\ude50': 'L'
'\ud80c\ude51': 'L'
'\ud80c\ude52': 'L'
'\ud80c\ude53': 'L'
'\ud80c\ude54': 'L'
'\ud80c\ude55': 'L'
'\ud80c\ude56': 'L'
'\ud80c\ude57': 'L'
'\ud80c\ude58': 'L'
'\ud80c\ude59': 'L'
'\ud80c\ude5a': 'L'
'\ud80c\ude5b': 'L'
'\ud80c\ude5c': 'L'
'\ud80c\ude5d': 'L'
'\ud80c\ude5e': 'L'
'\ud80c\ude5f': 'L'
'\ud80c\ude60': 'L'
'\ud80c\ude61': 'L'
'\ud80c\ude62': 'L'
'\ud80c\ude63': 'L'
'\ud80c\ude64': 'L'
'\ud80c\ude65': 'L'
'\ud80c\ude66': 'L'
'\ud80c\ude67': 'L'
'\ud80c\ude68': 'L'
'\ud80c\ude69': 'L'
'\ud80c\ude6a': 'L'
'\ud80c\ude6b': 'L'
'\ud80c\ude6c': 'L'
'\ud80c\ude6d': 'L'
'\ud80c\ude6e': 'L'
'\ud80c\ude6f': 'L'
'\ud80c\ude70': 'L'
'\ud80c\ude71': 'L'
'\ud80c\ude72': 'L'
'\ud80c\ude73': 'L'
'\ud80c\ude74': 'L'
'\ud80c\ude75': 'L'
'\ud80c\ude76': 'L'
'\ud80c\ude77': 'L'
'\ud80c\ude78': 'L'
'\ud80c\ude79': 'L'
'\ud80c\ude7a': 'L'
'\ud80c\ude7b': 'L'
'\ud80c\ude7c': 'L'
'\ud80c\ude7d': 'L'
'\ud80c\ude7e': 'L'
'\ud80c\ude7f': 'L'
'\ud80c\ude80': 'L'
'\ud80c\ude81': 'L'
'\ud80c\ude82': 'L'
'\ud80c\ude83': 'L'
'\ud80c\ude84': 'L'
'\ud80c\ude85': 'L'
'\ud80c\ude86': 'L'
'\ud80c\ude87': 'L'
'\ud80c\ude88': 'L'
'\ud80c\ude89': 'L'
'\ud80c\ude8a': 'L'
'\ud80c\ude8b': 'L'
'\ud80c\ude8c': 'L'
'\ud80c\ude8d': 'L'
'\ud80c\ude8e': 'L'
'\ud80c\ude8f': 'L'
'\ud80c\ude90': 'L'
'\ud80c\ude91': 'L'
'\ud80c\ude92': 'L'
'\ud80c\ude93': 'L'
'\ud80c\ude94': 'L'
'\ud80c\ude95': 'L'
'\ud80c\ude96': 'L'
'\ud80c\ude97': 'L'
'\ud80c\ude98': 'L'
'\ud80c\ude99': 'L'
'\ud80c\ude9a': 'L'
'\ud80c\ude9b': 'L'
'\ud80c\ude9c': 'L'
'\ud80c\ude9d': 'L'
'\ud80c\ude9e': 'L'
'\ud80c\ude9f': 'L'
'\ud80c\udea0': 'L'
'\ud80c\udea1': 'L'
'\ud80c\udea2': 'L'
'\ud80c\udea3': 'L'
'\ud80c\udea4': 'L'
'\ud80c\udea5': 'L'
'\ud80c\udea6': 'L'
'\ud80c\udea7': 'L'
'\ud80c\udea8': 'L'
'\ud80c\udea9': 'L'
'\ud80c\udeaa': 'L'
'\ud80c\udeab': 'L'
'\ud80c\udeac': 'L'
'\ud80c\udead': 'L'
'\ud80c\udeae': 'L'
'\ud80c\udeaf': 'L'
'\ud80c\udeb0': 'L'
'\ud80c\udeb1': 'L'
'\ud80c\udeb2': 'L'
'\ud80c\udeb3': 'L'
'\ud80c\udeb4': 'L'
'\ud80c\udeb5': 'L'
'\ud80c\udeb6': 'L'
'\ud80c\udeb7': 'L'
'\ud80c\udeb8': 'L'
'\ud80c\udeb9': 'L'
'\ud80c\udeba': 'L'
'\ud80c\udebb': 'L'
'\ud80c\udebc': 'L'
'\ud80c\udebd': 'L'
'\ud80c\udebe': 'L'
'\ud80c\udebf': 'L'
'\ud80c\udec0': 'L'
'\ud80c\udec1': 'L'
'\ud80c\udec2': 'L'
'\ud80c\udec3': 'L'
'\ud80c\udec4': 'L'
'\ud80c\udec5': 'L'
'\ud80c\udec6': 'L'
'\ud80c\udec7': 'L'
'\ud80c\udec8': 'L'
'\ud80c\udec9': 'L'
'\ud80c\udeca': 'L'
'\ud80c\udecb': 'L'
'\ud80c\udecc': 'L'
'\ud80c\udecd': 'L'
'\ud80c\udece': 'L'
'\ud80c\udecf': 'L'
'\ud80c\uded0': 'L'
'\ud80c\uded1': 'L'
'\ud80c\uded2': 'L'
'\ud80c\uded3': 'L'
'\ud80c\uded4': 'L'
'\ud80c\uded5': 'L'
'\ud80c\uded6': 'L'
'\ud80c\uded7': 'L'
'\ud80c\uded8': 'L'
'\ud80c\uded9': 'L'
'\ud80c\udeda': 'L'
'\ud80c\udedb': 'L'
'\ud80c\udedc': 'L'
'\ud80c\udedd': 'L'
'\ud80c\udede': 'L'
'\ud80c\udedf': 'L'
'\ud80c\udee0': 'L'
'\ud80c\udee1': 'L'
'\ud80c\udee2': 'L'
'\ud80c\udee3': 'L'
'\ud80c\udee4': 'L'
'\ud80c\udee5': 'L'
'\ud80c\udee6': 'L'
'\ud80c\udee7': 'L'
'\ud80c\udee8': 'L'
'\ud80c\udee9': 'L'
'\ud80c\udeea': 'L'
'\ud80c\udeeb': 'L'
'\ud80c\udeec': 'L'
'\ud80c\udeed': 'L'
'\ud80c\udeee': 'L'
'\ud80c\udeef': 'L'
'\ud80c\udef0': 'L'
'\ud80c\udef1': 'L'
'\ud80c\udef2': 'L'
'\ud80c\udef3': 'L'
'\ud80c\udef4': 'L'
'\ud80c\udef5': 'L'
'\ud80c\udef6': 'L'
'\ud80c\udef7': 'L'
'\ud80c\udef8': 'L'
'\ud80c\udef9': 'L'
'\ud80c\udefa': 'L'
'\ud80c\udefb': 'L'
'\ud80c\udefc': 'L'
'\ud80c\udefd': 'L'
'\ud80c\udefe': 'L'
'\ud80c\udeff': 'L'
'\ud80c\udf00': 'L'
'\ud80c\udf01': 'L'
'\ud80c\udf02': 'L'
'\ud80c\udf03': 'L'
'\ud80c\udf04': 'L'
'\ud80c\udf05': 'L'
'\ud80c\udf06': 'L'
'\ud80c\udf07': 'L'
'\ud80c\udf08': 'L'
'\ud80c\udf09': 'L'
'\ud80c\udf0a': 'L'
'\ud80c\udf0b': 'L'
'\ud80c\udf0c': 'L'
'\ud80c\udf0d': 'L'
'\ud80c\udf0e': 'L'
'\ud80c\udf0f': 'L'
'\ud80c\udf10': 'L'
'\ud80c\udf11': 'L'
'\ud80c\udf12': 'L'
'\ud80c\udf13': 'L'
'\ud80c\udf14': 'L'
'\ud80c\udf15': 'L'
'\ud80c\udf16': 'L'
'\ud80c\udf17': 'L'
'\ud80c\udf18': 'L'
'\ud80c\udf19': 'L'
'\ud80c\udf1a': 'L'
'\ud80c\udf1b': 'L'
'\ud80c\udf1c': 'L'
'\ud80c\udf1d': 'L'
'\ud80c\udf1e': 'L'
'\ud80c\udf1f': 'L'
'\ud80c\udf20': 'L'
'\ud80c\udf21': 'L'
'\ud80c\udf22': 'L'
'\ud80c\udf23': 'L'
'\ud80c\udf24': 'L'
'\ud80c\udf25': 'L'
'\ud80c\udf26': 'L'
'\ud80c\udf27': 'L'
'\ud80c\udf28': 'L'
'\ud80c\udf29': 'L'
'\ud80c\udf2a': 'L'
'\ud80c\udf2b': 'L'
'\ud80c\udf2c': 'L'
'\ud80c\udf2d': 'L'
'\ud80c\udf2e': 'L'
'\ud80c\udf2f': 'L'
'\ud80c\udf30': 'L'
'\ud80c\udf31': 'L'
'\ud80c\udf32': 'L'
'\ud80c\udf33': 'L'
'\ud80c\udf34': 'L'
'\ud80c\udf35': 'L'
'\ud80c\udf36': 'L'
'\ud80c\udf37': 'L'
'\ud80c\udf38': 'L'
'\ud80c\udf39': 'L'
'\ud80c\udf3a': 'L'
'\ud80c\udf3b': 'L'
'\ud80c\udf3c': 'L'
'\ud80c\udf3d': 'L'
'\ud80c\udf3e': 'L'
'\ud80c\udf3f': 'L'
'\ud80c\udf40': 'L'
'\ud80c\udf41': 'L'
'\ud80c\udf42': 'L'
'\ud80c\udf43': 'L'
'\ud80c\udf44': 'L'
'\ud80c\udf45': 'L'
'\ud80c\udf46': 'L'
'\ud80c\udf47': 'L'
'\ud80c\udf48': 'L'
'\ud80c\udf49': 'L'
'\ud80c\udf4a': 'L'
'\ud80c\udf4b': 'L'
'\ud80c\udf4c': 'L'
'\ud80c\udf4d': 'L'
'\ud80c\udf4e': 'L'
'\ud80c\udf4f': 'L'
'\ud80c\udf50': 'L'
'\ud80c\udf51': 'L'
'\ud80c\udf52': 'L'
'\ud80c\udf53': 'L'
'\ud80c\udf54': 'L'
'\ud80c\udf55': 'L'
'\ud80c\udf56': 'L'
'\ud80c\udf57': 'L'
'\ud80c\udf58': 'L'
'\ud80c\udf59': 'L'
'\ud80c\udf5a': 'L'
'\ud80c\udf5b': 'L'
'\ud80c\udf5c': 'L'
'\ud80c\udf5d': 'L'
'\ud80c\udf5e': 'L'
'\ud80c\udf5f': 'L'
'\ud80c\udf60': 'L'
'\ud80c\udf61': 'L'
'\ud80c\udf62': 'L'
'\ud80c\udf63': 'L'
'\ud80c\udf64': 'L'
'\ud80c\udf65': 'L'
'\ud80c\udf66': 'L'
'\ud80c\udf67': 'L'
'\ud80c\udf68': 'L'
'\ud80c\udf69': 'L'
'\ud80c\udf6a': 'L'
'\ud80c\udf6b': 'L'
'\ud80c\udf6c': 'L'
'\ud80c\udf6d': 'L'
'\ud80c\udf6e': 'L'
'\ud80c\udf6f': 'L'
'\ud80c\udf70': 'L'
'\ud80c\udf71': 'L'
'\ud80c\udf72': 'L'
'\ud80c\udf73': 'L'
'\ud80c\udf74': 'L'
'\ud80c\udf75': 'L'
'\ud80c\udf76': 'L'
'\ud80c\udf77': 'L'
'\ud80c\udf78': 'L'
'\ud80c\udf79': 'L'
'\ud80c\udf7a': 'L'
'\ud80c\udf7b': 'L'
'\ud80c\udf7c': 'L'
'\ud80c\udf7d': 'L'
'\ud80c\udf7e': 'L'
'\ud80c\udf7f': 'L'
'\ud80c\udf80': 'L'
'\ud80c\udf81': 'L'
'\ud80c\udf82': 'L'
'\ud80c\udf83': 'L'
'\ud80c\udf84': 'L'
'\ud80c\udf85': 'L'
'\ud80c\udf86': 'L'
'\ud80c\udf87': 'L'
'\ud80c\udf88': 'L'
'\ud80c\udf89': 'L'
'\ud80c\udf8a': 'L'
'\ud80c\udf8b': 'L'
'\ud80c\udf8c': 'L'
'\ud80c\udf8d': 'L'
'\ud80c\udf8e': 'L'
'\ud80c\udf8f': 'L'
'\ud80c\udf90': 'L'
'\ud80c\udf91': 'L'
'\ud80c\udf92': 'L'
'\ud80c\udf93': 'L'
'\ud80c\udf94': 'L'
'\ud80c\udf95': 'L'
'\ud80c\udf96': 'L'
'\ud80c\udf97': 'L'
'\ud80c\udf98': 'L'
'\ud80c\udf99': 'L'
'\ud80c\udf9a': 'L'
'\ud80c\udf9b': 'L'
'\ud80c\udf9c': 'L'
'\ud80c\udf9d': 'L'
'\ud80c\udf9e': 'L'
'\ud80c\udf9f': 'L'
'\ud80c\udfa0': 'L'
'\ud80c\udfa1': 'L'
'\ud80c\udfa2': 'L'
'\ud80c\udfa3': 'L'
'\ud80c\udfa4': 'L'
'\ud80c\udfa5': 'L'
'\ud80c\udfa6': 'L'
'\ud80c\udfa7': 'L'
'\ud80c\udfa8': 'L'
'\ud80c\udfa9': 'L'
'\ud80c\udfaa': 'L'
'\ud80c\udfab': 'L'
'\ud80c\udfac': 'L'
'\ud80c\udfad': 'L'
'\ud80c\udfae': 'L'
'\ud80c\udfaf': 'L'
'\ud80c\udfb0': 'L'
'\ud80c\udfb1': 'L'
'\ud80c\udfb2': 'L'
'\ud80c\udfb3': 'L'
'\ud80c\udfb4': 'L'
'\ud80c\udfb5': 'L'
'\ud80c\udfb6': 'L'
'\ud80c\udfb7': 'L'
'\ud80c\udfb8': 'L'
'\ud80c\udfb9': 'L'
'\ud80c\udfba': 'L'
'\ud80c\udfbb': 'L'
'\ud80c\udfbc': 'L'
'\ud80c\udfbd': 'L'
'\ud80c\udfbe': 'L'
'\ud80c\udfbf': 'L'
'\ud80c\udfc0': 'L'
'\ud80c\udfc1': 'L'
'\ud80c\udfc2': 'L'
'\ud80c\udfc3': 'L'
'\ud80c\udfc4': 'L'
'\ud80c\udfc5': 'L'
'\ud80c\udfc6': 'L'
'\ud80c\udfc7': 'L'
'\ud80c\udfc8': 'L'
'\ud80c\udfc9': 'L'
'\ud80c\udfca': 'L'
'\ud80c\udfcb': 'L'
'\ud80c\udfcc': 'L'
'\ud80c\udfcd': 'L'
'\ud80c\udfce': 'L'
'\ud80c\udfcf': 'L'
'\ud80c\udfd0': 'L'
'\ud80c\udfd1': 'L'
'\ud80c\udfd2': 'L'
'\ud80c\udfd3': 'L'
'\ud80c\udfd4': 'L'
'\ud80c\udfd5': 'L'
'\ud80c\udfd6': 'L'
'\ud80c\udfd7': 'L'
'\ud80c\udfd8': 'L'
'\ud80c\udfd9': 'L'
'\ud80c\udfda': 'L'
'\ud80c\udfdb': 'L'
'\ud80c\udfdc': 'L'
'\ud80c\udfdd': 'L'
'\ud80c\udfde': 'L'
'\ud80c\udfdf': 'L'
'\ud80c\udfe0': 'L'
'\ud80c\udfe1': 'L'
'\ud80c\udfe2': 'L'
'\ud80c\udfe3': 'L'
'\ud80c\udfe4': 'L'
'\ud80c\udfe5': 'L'
'\ud80c\udfe6': 'L'
'\ud80c\udfe7': 'L'
'\ud80c\udfe8': 'L'
'\ud80c\udfe9': 'L'
'\ud80c\udfea': 'L'
'\ud80c\udfeb': 'L'
'\ud80c\udfec': 'L'
'\ud80c\udfed': 'L'
'\ud80c\udfee': 'L'
'\ud80c\udfef': 'L'
'\ud80c\udff0': 'L'
'\ud80c\udff1': 'L'
'\ud80c\udff2': 'L'
'\ud80c\udff3': 'L'
'\ud80c\udff4': 'L'
'\ud80c\udff5': 'L'
'\ud80c\udff6': 'L'
'\ud80c\udff7': 'L'
'\ud80c\udff8': 'L'
'\ud80c\udff9': 'L'
'\ud80c\udffa': 'L'
'\ud80c\udffb': 'L'
'\ud80c\udffc': 'L'
'\ud80c\udffd': 'L'
'\ud80c\udffe': 'L'
'\ud80c\udfff': 'L'
'\ud80d\udc00': 'L'
'\ud80d\udc01': 'L'
'\ud80d\udc02': 'L'
'\ud80d\udc03': 'L'
'\ud80d\udc04': 'L'
'\ud80d\udc05': 'L'
'\ud80d\udc06': 'L'
'\ud80d\udc07': 'L'
'\ud80d\udc08': 'L'
'\ud80d\udc09': 'L'
'\ud80d\udc0a': 'L'
'\ud80d\udc0b': 'L'
'\ud80d\udc0c': 'L'
'\ud80d\udc0d': 'L'
'\ud80d\udc0e': 'L'
'\ud80d\udc0f': 'L'
'\ud80d\udc10': 'L'
'\ud80d\udc11': 'L'
'\ud80d\udc12': 'L'
'\ud80d\udc13': 'L'
'\ud80d\udc14': 'L'
'\ud80d\udc15': 'L'
'\ud80d\udc16': 'L'
'\ud80d\udc17': 'L'
'\ud80d\udc18': 'L'
'\ud80d\udc19': 'L'
'\ud80d\udc1a': 'L'
'\ud80d\udc1b': 'L'
'\ud80d\udc1c': 'L'
'\ud80d\udc1d': 'L'
'\ud80d\udc1e': 'L'
'\ud80d\udc1f': 'L'
'\ud80d\udc20': 'L'
'\ud80d\udc21': 'L'
'\ud80d\udc22': 'L'
'\ud80d\udc23': 'L'
'\ud80d\udc24': 'L'
'\ud80d\udc25': 'L'
'\ud80d\udc26': 'L'
'\ud80d\udc27': 'L'
'\ud80d\udc28': 'L'
'\ud80d\udc29': 'L'
'\ud80d\udc2a': 'L'
'\ud80d\udc2b': 'L'
'\ud80d\udc2c': 'L'
'\ud80d\udc2d': 'L'
'\ud80d\udc2e': 'L'
'\ud811\udc00': 'L'
'\ud811\udc01': 'L'
'\ud811\udc02': 'L'
'\ud811\udc03': 'L'
'\ud811\udc04': 'L'
'\ud811\udc05': 'L'
'\ud811\udc06': 'L'
'\ud811\udc07': 'L'
'\ud811\udc08': 'L'
'\ud811\udc09': 'L'
'\ud811\udc0a': 'L'
'\ud811\udc0b': 'L'
'\ud811\udc0c': 'L'
'\ud811\udc0d': 'L'
'\ud811\udc0e': 'L'
'\ud811\udc0f': 'L'
'\ud811\udc10': 'L'
'\ud811\udc11': 'L'
'\ud811\udc12': 'L'
'\ud811\udc13': 'L'
'\ud811\udc14': 'L'
'\ud811\udc15': 'L'
'\ud811\udc16': 'L'
'\ud811\udc17': 'L'
'\ud811\udc18': 'L'
'\ud811\udc19': 'L'
'\ud811\udc1a': 'L'
'\ud811\udc1b': 'L'
'\ud811\udc1c': 'L'
'\ud811\udc1d': 'L'
'\ud811\udc1e': 'L'
'\ud811\udc1f': 'L'
'\ud811\udc20': 'L'
'\ud811\udc21': 'L'
'\ud811\udc22': 'L'
'\ud811\udc23': 'L'
'\ud811\udc24': 'L'
'\ud811\udc25': 'L'
'\ud811\udc26': 'L'
'\ud811\udc27': 'L'
'\ud811\udc28': 'L'
'\ud811\udc29': 'L'
'\ud811\udc2a': 'L'
'\ud811\udc2b': 'L'
'\ud811\udc2c': 'L'
'\ud811\udc2d': 'L'
'\ud811\udc2e': 'L'
'\ud811\udc2f': 'L'
'\ud811\udc30': 'L'
'\ud811\udc31': 'L'
'\ud811\udc32': 'L'
'\ud811\udc33': 'L'
'\ud811\udc34': 'L'
'\ud811\udc35': 'L'
'\ud811\udc36': 'L'
'\ud811\udc37': 'L'
'\ud811\udc38': 'L'
'\ud811\udc39': 'L'
'\ud811\udc3a': 'L'
'\ud811\udc3b': 'L'
'\ud811\udc3c': 'L'
'\ud811\udc3d': 'L'
'\ud811\udc3e': 'L'
'\ud811\udc3f': 'L'
'\ud811\udc40': 'L'
'\ud811\udc41': 'L'
'\ud811\udc42': 'L'
'\ud811\udc43': 'L'
'\ud811\udc44': 'L'
'\ud811\udc45': 'L'
'\ud811\udc46': 'L'
'\ud811\udc47': 'L'
'\ud811\udc48': 'L'
'\ud811\udc49': 'L'
'\ud811\udc4a': 'L'
'\ud811\udc4b': 'L'
'\ud811\udc4c': 'L'
'\ud811\udc4d': 'L'
'\ud811\udc4e': 'L'
'\ud811\udc4f': 'L'
'\ud811\udc50': 'L'
'\ud811\udc51': 'L'
'\ud811\udc52': 'L'
'\ud811\udc53': 'L'
'\ud811\udc54': 'L'
'\ud811\udc55': 'L'
'\ud811\udc56': 'L'
'\ud811\udc57': 'L'
'\ud811\udc58': 'L'
'\ud811\udc59': 'L'
'\ud811\udc5a': 'L'
'\ud811\udc5b': 'L'
'\ud811\udc5c': 'L'
'\ud811\udc5d': 'L'
'\ud811\udc5e': 'L'
'\ud811\udc5f': 'L'
'\ud811\udc60': 'L'
'\ud811\udc61': 'L'
'\ud811\udc62': 'L'
'\ud811\udc63': 'L'
'\ud811\udc64': 'L'
'\ud811\udc65': 'L'
'\ud811\udc66': 'L'
'\ud811\udc67': 'L'
'\ud811\udc68': 'L'
'\ud811\udc69': 'L'
'\ud811\udc6a': 'L'
'\ud811\udc6b': 'L'
'\ud811\udc6c': 'L'
'\ud811\udc6d': 'L'
'\ud811\udc6e': 'L'
'\ud811\udc6f': 'L'
'\ud811\udc70': 'L'
'\ud811\udc71': 'L'
'\ud811\udc72': 'L'
'\ud811\udc73': 'L'
'\ud811\udc74': 'L'
'\ud811\udc75': 'L'
'\ud811\udc76': 'L'
'\ud811\udc77': 'L'
'\ud811\udc78': 'L'
'\ud811\udc79': 'L'
'\ud811\udc7a': 'L'
'\ud811\udc7b': 'L'
'\ud811\udc7c': 'L'
'\ud811\udc7d': 'L'
'\ud811\udc7e': 'L'
'\ud811\udc7f': 'L'
'\ud811\udc80': 'L'
'\ud811\udc81': 'L'
'\ud811\udc82': 'L'
'\ud811\udc83': 'L'
'\ud811\udc84': 'L'
'\ud811\udc85': 'L'
'\ud811\udc86': 'L'
'\ud811\udc87': 'L'
'\ud811\udc88': 'L'
'\ud811\udc89': 'L'
'\ud811\udc8a': 'L'
'\ud811\udc8b': 'L'
'\ud811\udc8c': 'L'
'\ud811\udc8d': 'L'
'\ud811\udc8e': 'L'
'\ud811\udc8f': 'L'
'\ud811\udc90': 'L'
'\ud811\udc91': 'L'
'\ud811\udc92': 'L'
'\ud811\udc93': 'L'
'\ud811\udc94': 'L'
'\ud811\udc95': 'L'
'\ud811\udc96': 'L'
'\ud811\udc97': 'L'
'\ud811\udc98': 'L'
'\ud811\udc99': 'L'
'\ud811\udc9a': 'L'
'\ud811\udc9b': 'L'
'\ud811\udc9c': 'L'
'\ud811\udc9d': 'L'
'\ud811\udc9e': 'L'
'\ud811\udc9f': 'L'
'\ud811\udca0': 'L'
'\ud811\udca1': 'L'
'\ud811\udca2': 'L'
'\ud811\udca3': 'L'
'\ud811\udca4': 'L'
'\ud811\udca5': 'L'
'\ud811\udca6': 'L'
'\ud811\udca7': 'L'
'\ud811\udca8': 'L'
'\ud811\udca9': 'L'
'\ud811\udcaa': 'L'
'\ud811\udcab': 'L'
'\ud811\udcac': 'L'
'\ud811\udcad': 'L'
'\ud811\udcae': 'L'
'\ud811\udcaf': 'L'
'\ud811\udcb0': 'L'
'\ud811\udcb1': 'L'
'\ud811\udcb2': 'L'
'\ud811\udcb3': 'L'
'\ud811\udcb4': 'L'
'\ud811\udcb5': 'L'
'\ud811\udcb6': 'L'
'\ud811\udcb7': 'L'
'\ud811\udcb8': 'L'
'\ud811\udcb9': 'L'
'\ud811\udcba': 'L'
'\ud811\udcbb': 'L'
'\ud811\udcbc': 'L'
'\ud811\udcbd': 'L'
'\ud811\udcbe': 'L'
'\ud811\udcbf': 'L'
'\ud811\udcc0': 'L'
'\ud811\udcc1': 'L'
'\ud811\udcc2': 'L'
'\ud811\udcc3': 'L'
'\ud811\udcc4': 'L'
'\ud811\udcc5': 'L'
'\ud811\udcc6': 'L'
'\ud811\udcc7': 'L'
'\ud811\udcc8': 'L'
'\ud811\udcc9': 'L'
'\ud811\udcca': 'L'
'\ud811\udccb': 'L'
'\ud811\udccc': 'L'
'\ud811\udccd': 'L'
'\ud811\udcce': 'L'
'\ud811\udccf': 'L'
'\ud811\udcd0': 'L'
'\ud811\udcd1': 'L'
'\ud811\udcd2': 'L'
'\ud811\udcd3': 'L'
'\ud811\udcd4': 'L'
'\ud811\udcd5': 'L'
'\ud811\udcd6': 'L'
'\ud811\udcd7': 'L'
'\ud811\udcd8': 'L'
'\ud811\udcd9': 'L'
'\ud811\udcda': 'L'
'\ud811\udcdb': 'L'
'\ud811\udcdc': 'L'
'\ud811\udcdd': 'L'
'\ud811\udcde': 'L'
'\ud811\udcdf': 'L'
'\ud811\udce0': 'L'
'\ud811\udce1': 'L'
'\ud811\udce2': 'L'
'\ud811\udce3': 'L'
'\ud811\udce4': 'L'
'\ud811\udce5': 'L'
'\ud811\udce6': 'L'
'\ud811\udce7': 'L'
'\ud811\udce8': 'L'
'\ud811\udce9': 'L'
'\ud811\udcea': 'L'
'\ud811\udceb': 'L'
'\ud811\udcec': 'L'
'\ud811\udced': 'L'
'\ud811\udcee': 'L'
'\ud811\udcef': 'L'
'\ud811\udcf0': 'L'
'\ud811\udcf1': 'L'
'\ud811\udcf2': 'L'
'\ud811\udcf3': 'L'
'\ud811\udcf4': 'L'
'\ud811\udcf5': 'L'
'\ud811\udcf6': 'L'
'\ud811\udcf7': 'L'
'\ud811\udcf8': 'L'
'\ud811\udcf9': 'L'
'\ud811\udcfa': 'L'
'\ud811\udcfb': 'L'
'\ud811\udcfc': 'L'
'\ud811\udcfd': 'L'
'\ud811\udcfe': 'L'
'\ud811\udcff': 'L'
'\ud811\udd00': 'L'
'\ud811\udd01': 'L'
'\ud811\udd02': 'L'
'\ud811\udd03': 'L'
'\ud811\udd04': 'L'
'\ud811\udd05': 'L'
'\ud811\udd06': 'L'
'\ud811\udd07': 'L'
'\ud811\udd08': 'L'
'\ud811\udd09': 'L'
'\ud811\udd0a': 'L'
'\ud811\udd0b': 'L'
'\ud811\udd0c': 'L'
'\ud811\udd0d': 'L'
'\ud811\udd0e': 'L'
'\ud811\udd0f': 'L'
'\ud811\udd10': 'L'
'\ud811\udd11': 'L'
'\ud811\udd12': 'L'
'\ud811\udd13': 'L'
'\ud811\udd14': 'L'
'\ud811\udd15': 'L'
'\ud811\udd16': 'L'
'\ud811\udd17': 'L'
'\ud811\udd18': 'L'
'\ud811\udd19': 'L'
'\ud811\udd1a': 'L'
'\ud811\udd1b': 'L'
'\ud811\udd1c': 'L'
'\ud811\udd1d': 'L'
'\ud811\udd1e': 'L'
'\ud811\udd1f': 'L'
'\ud811\udd20': 'L'
'\ud811\udd21': 'L'
'\ud811\udd22': 'L'
'\ud811\udd23': 'L'
'\ud811\udd24': 'L'
'\ud811\udd25': 'L'
'\ud811\udd26': 'L'
'\ud811\udd27': 'L'
'\ud811\udd28': 'L'
'\ud811\udd29': 'L'
'\ud811\udd2a': 'L'
'\ud811\udd2b': 'L'
'\ud811\udd2c': 'L'
'\ud811\udd2d': 'L'
'\ud811\udd2e': 'L'
'\ud811\udd2f': 'L'
'\ud811\udd30': 'L'
'\ud811\udd31': 'L'
'\ud811\udd32': 'L'
'\ud811\udd33': 'L'
'\ud811\udd34': 'L'
'\ud811\udd35': 'L'
'\ud811\udd36': 'L'
'\ud811\udd37': 'L'
'\ud811\udd38': 'L'
'\ud811\udd39': 'L'
'\ud811\udd3a': 'L'
'\ud811\udd3b': 'L'
'\ud811\udd3c': 'L'
'\ud811\udd3d': 'L'
'\ud811\udd3e': 'L'
'\ud811\udd3f': 'L'
'\ud811\udd40': 'L'
'\ud811\udd41': 'L'
'\ud811\udd42': 'L'
'\ud811\udd43': 'L'
'\ud811\udd44': 'L'
'\ud811\udd45': 'L'
'\ud811\udd46': 'L'
'\ud811\udd47': 'L'
'\ud811\udd48': 'L'
'\ud811\udd49': 'L'
'\ud811\udd4a': 'L'
'\ud811\udd4b': 'L'
'\ud811\udd4c': 'L'
'\ud811\udd4d': 'L'
'\ud811\udd4e': 'L'
'\ud811\udd4f': 'L'
'\ud811\udd50': 'L'
'\ud811\udd51': 'L'
'\ud811\udd52': 'L'
'\ud811\udd53': 'L'
'\ud811\udd54': 'L'
'\ud811\udd55': 'L'
'\ud811\udd56': 'L'
'\ud811\udd57': 'L'
'\ud811\udd58': 'L'
'\ud811\udd59': 'L'
'\ud811\udd5a': 'L'
'\ud811\udd5b': 'L'
'\ud811\udd5c': 'L'
'\ud811\udd5d': 'L'
'\ud811\udd5e': 'L'
'\ud811\udd5f': 'L'
'\ud811\udd60': 'L'
'\ud811\udd61': 'L'
'\ud811\udd62': 'L'
'\ud811\udd63': 'L'
'\ud811\udd64': 'L'
'\ud811\udd65': 'L'
'\ud811\udd66': 'L'
'\ud811\udd67': 'L'
'\ud811\udd68': 'L'
'\ud811\udd69': 'L'
'\ud811\udd6a': 'L'
'\ud811\udd6b': 'L'
'\ud811\udd6c': 'L'
'\ud811\udd6d': 'L'
'\ud811\udd6e': 'L'
'\ud811\udd6f': 'L'
'\ud811\udd70': 'L'
'\ud811\udd71': 'L'
'\ud811\udd72': 'L'
'\ud811\udd73': 'L'
'\ud811\udd74': 'L'
'\ud811\udd75': 'L'
'\ud811\udd76': 'L'
'\ud811\udd77': 'L'
'\ud811\udd78': 'L'
'\ud811\udd79': 'L'
'\ud811\udd7a': 'L'
'\ud811\udd7b': 'L'
'\ud811\udd7c': 'L'
'\ud811\udd7d': 'L'
'\ud811\udd7e': 'L'
'\ud811\udd7f': 'L'
'\ud811\udd80': 'L'
'\ud811\udd81': 'L'
'\ud811\udd82': 'L'
'\ud811\udd83': 'L'
'\ud811\udd84': 'L'
'\ud811\udd85': 'L'
'\ud811\udd86': 'L'
'\ud811\udd87': 'L'
'\ud811\udd88': 'L'
'\ud811\udd89': 'L'
'\ud811\udd8a': 'L'
'\ud811\udd8b': 'L'
'\ud811\udd8c': 'L'
'\ud811\udd8d': 'L'
'\ud811\udd8e': 'L'
'\ud811\udd8f': 'L'
'\ud811\udd90': 'L'
'\ud811\udd91': 'L'
'\ud811\udd92': 'L'
'\ud811\udd93': 'L'
'\ud811\udd94': 'L'
'\ud811\udd95': 'L'
'\ud811\udd96': 'L'
'\ud811\udd97': 'L'
'\ud811\udd98': 'L'
'\ud811\udd99': 'L'
'\ud811\udd9a': 'L'
'\ud811\udd9b': 'L'
'\ud811\udd9c': 'L'
'\ud811\udd9d': 'L'
'\ud811\udd9e': 'L'
'\ud811\udd9f': 'L'
'\ud811\udda0': 'L'
'\ud811\udda1': 'L'
'\ud811\udda2': 'L'
'\ud811\udda3': 'L'
'\ud811\udda4': 'L'
'\ud811\udda5': 'L'
'\ud811\udda6': 'L'
'\ud811\udda7': 'L'
'\ud811\udda8': 'L'
'\ud811\udda9': 'L'
'\ud811\uddaa': 'L'
'\ud811\uddab': 'L'
'\ud811\uddac': 'L'
'\ud811\uddad': 'L'
'\ud811\uddae': 'L'
'\ud811\uddaf': 'L'
'\ud811\uddb0': 'L'
'\ud811\uddb1': 'L'
'\ud811\uddb2': 'L'
'\ud811\uddb3': 'L'
'\ud811\uddb4': 'L'
'\ud811\uddb5': 'L'
'\ud811\uddb6': 'L'
'\ud811\uddb7': 'L'
'\ud811\uddb8': 'L'
'\ud811\uddb9': 'L'
'\ud811\uddba': 'L'
'\ud811\uddbb': 'L'
'\ud811\uddbc': 'L'
'\ud811\uddbd': 'L'
'\ud811\uddbe': 'L'
'\ud811\uddbf': 'L'
'\ud811\uddc0': 'L'
'\ud811\uddc1': 'L'
'\ud811\uddc2': 'L'
'\ud811\uddc3': 'L'
'\ud811\uddc4': 'L'
'\ud811\uddc5': 'L'
'\ud811\uddc6': 'L'
'\ud811\uddc7': 'L'
'\ud811\uddc8': 'L'
'\ud811\uddc9': 'L'
'\ud811\uddca': 'L'
'\ud811\uddcb': 'L'
'\ud811\uddcc': 'L'
'\ud811\uddcd': 'L'
'\ud811\uddce': 'L'
'\ud811\uddcf': 'L'
'\ud811\uddd0': 'L'
'\ud811\uddd1': 'L'
'\ud811\uddd2': 'L'
'\ud811\uddd3': 'L'
'\ud811\uddd4': 'L'
'\ud811\uddd5': 'L'
'\ud811\uddd6': 'L'
'\ud811\uddd7': 'L'
'\ud811\uddd8': 'L'
'\ud811\uddd9': 'L'
'\ud811\uddda': 'L'
'\ud811\udddb': 'L'
'\ud811\udddc': 'L'
'\ud811\udddd': 'L'
'\ud811\uddde': 'L'
'\ud811\udddf': 'L'
'\ud811\udde0': 'L'
'\ud811\udde1': 'L'
'\ud811\udde2': 'L'
'\ud811\udde3': 'L'
'\ud811\udde4': 'L'
'\ud811\udde5': 'L'
'\ud811\udde6': 'L'
'\ud811\udde7': 'L'
'\ud811\udde8': 'L'
'\ud811\udde9': 'L'
'\ud811\uddea': 'L'
'\ud811\uddeb': 'L'
'\ud811\uddec': 'L'
'\ud811\udded': 'L'
'\ud811\uddee': 'L'
'\ud811\uddef': 'L'
'\ud811\uddf0': 'L'
'\ud811\uddf1': 'L'
'\ud811\uddf2': 'L'
'\ud811\uddf3': 'L'
'\ud811\uddf4': 'L'
'\ud811\uddf5': 'L'
'\ud811\uddf6': 'L'
'\ud811\uddf7': 'L'
'\ud811\uddf8': 'L'
'\ud811\uddf9': 'L'
'\ud811\uddfa': 'L'
'\ud811\uddfb': 'L'
'\ud811\uddfc': 'L'
'\ud811\uddfd': 'L'
'\ud811\uddfe': 'L'
'\ud811\uddff': 'L'
'\ud811\ude00': 'L'
'\ud811\ude01': 'L'
'\ud811\ude02': 'L'
'\ud811\ude03': 'L'
'\ud811\ude04': 'L'
'\ud811\ude05': 'L'
'\ud811\ude06': 'L'
'\ud811\ude07': 'L'
'\ud811\ude08': 'L'
'\ud811\ude09': 'L'
'\ud811\ude0a': 'L'
'\ud811\ude0b': 'L'
'\ud811\ude0c': 'L'
'\ud811\ude0d': 'L'
'\ud811\ude0e': 'L'
'\ud811\ude0f': 'L'
'\ud811\ude10': 'L'
'\ud811\ude11': 'L'
'\ud811\ude12': 'L'
'\ud811\ude13': 'L'
'\ud811\ude14': 'L'
'\ud811\ude15': 'L'
'\ud811\ude16': 'L'
'\ud811\ude17': 'L'
'\ud811\ude18': 'L'
'\ud811\ude19': 'L'
'\ud811\ude1a': 'L'
'\ud811\ude1b': 'L'
'\ud811\ude1c': 'L'
'\ud811\ude1d': 'L'
'\ud811\ude1e': 'L'
'\ud811\ude1f': 'L'
'\ud811\ude20': 'L'
'\ud811\ude21': 'L'
'\ud811\ude22': 'L'
'\ud811\ude23': 'L'
'\ud811\ude24': 'L'
'\ud811\ude25': 'L'
'\ud811\ude26': 'L'
'\ud811\ude27': 'L'
'\ud811\ude28': 'L'
'\ud811\ude29': 'L'
'\ud811\ude2a': 'L'
'\ud811\ude2b': 'L'
'\ud811\ude2c': 'L'
'\ud811\ude2d': 'L'
'\ud811\ude2e': 'L'
'\ud811\ude2f': 'L'
'\ud811\ude30': 'L'
'\ud811\ude31': 'L'
'\ud811\ude32': 'L'
'\ud811\ude33': 'L'
'\ud811\ude34': 'L'
'\ud811\ude35': 'L'
'\ud811\ude36': 'L'
'\ud811\ude37': 'L'
'\ud811\ude38': 'L'
'\ud811\ude39': 'L'
'\ud811\ude3a': 'L'
'\ud811\ude3b': 'L'
'\ud811\ude3c': 'L'
'\ud811\ude3d': 'L'
'\ud811\ude3e': 'L'
'\ud811\ude3f': 'L'
'\ud811\ude40': 'L'
'\ud811\ude41': 'L'
'\ud811\ude42': 'L'
'\ud811\ude43': 'L'
'\ud811\ude44': 'L'
'\ud811\ude45': 'L'
'\ud811\ude46': 'L'
'\ud81a\udc00': 'L'
'\ud81a\udc01': 'L'
'\ud81a\udc02': 'L'
'\ud81a\udc03': 'L'
'\ud81a\udc04': 'L'
'\ud81a\udc05': 'L'
'\ud81a\udc06': 'L'
'\ud81a\udc07': 'L'
'\ud81a\udc08': 'L'
'\ud81a\udc09': 'L'
'\ud81a\udc0a': 'L'
'\ud81a\udc0b': 'L'
'\ud81a\udc0c': 'L'
'\ud81a\udc0d': 'L'
'\ud81a\udc0e': 'L'
'\ud81a\udc0f': 'L'
'\ud81a\udc10': 'L'
'\ud81a\udc11': 'L'
'\ud81a\udc12': 'L'
'\ud81a\udc13': 'L'
'\ud81a\udc14': 'L'
'\ud81a\udc15': 'L'
'\ud81a\udc16': 'L'
'\ud81a\udc17': 'L'
'\ud81a\udc18': 'L'
'\ud81a\udc19': 'L'
'\ud81a\udc1a': 'L'
'\ud81a\udc1b': 'L'
'\ud81a\udc1c': 'L'
'\ud81a\udc1d': 'L'
'\ud81a\udc1e': 'L'
'\ud81a\udc1f': 'L'
'\ud81a\udc20': 'L'
'\ud81a\udc21': 'L'
'\ud81a\udc22': 'L'
'\ud81a\udc23': 'L'
'\ud81a\udc24': 'L'
'\ud81a\udc25': 'L'
'\ud81a\udc26': 'L'
'\ud81a\udc27': 'L'
'\ud81a\udc28': 'L'
'\ud81a\udc29': 'L'
'\ud81a\udc2a': 'L'
'\ud81a\udc2b': 'L'
'\ud81a\udc2c': 'L'
'\ud81a\udc2d': 'L'
'\ud81a\udc2e': 'L'
'\ud81a\udc2f': 'L'
'\ud81a\udc30': 'L'
'\ud81a\udc31': 'L'
'\ud81a\udc32': 'L'
'\ud81a\udc33': 'L'
'\ud81a\udc34': 'L'
'\ud81a\udc35': 'L'
'\ud81a\udc36': 'L'
'\ud81a\udc37': 'L'
'\ud81a\udc38': 'L'
'\ud81a\udc39': 'L'
'\ud81a\udc3a': 'L'
'\ud81a\udc3b': 'L'
'\ud81a\udc3c': 'L'
'\ud81a\udc3d': 'L'
'\ud81a\udc3e': 'L'
'\ud81a\udc3f': 'L'
'\ud81a\udc40': 'L'
'\ud81a\udc41': 'L'
'\ud81a\udc42': 'L'
'\ud81a\udc43': 'L'
'\ud81a\udc44': 'L'
'\ud81a\udc45': 'L'
'\ud81a\udc46': 'L'
'\ud81a\udc47': 'L'
'\ud81a\udc48': 'L'
'\ud81a\udc49': 'L'
'\ud81a\udc4a': 'L'
'\ud81a\udc4b': 'L'
'\ud81a\udc4c': 'L'
'\ud81a\udc4d': 'L'
'\ud81a\udc4e': 'L'
'\ud81a\udc4f': 'L'
'\ud81a\udc50': 'L'
'\ud81a\udc51': 'L'
'\ud81a\udc52': 'L'
'\ud81a\udc53': 'L'
'\ud81a\udc54': 'L'
'\ud81a\udc55': 'L'
'\ud81a\udc56': 'L'
'\ud81a\udc57': 'L'
'\ud81a\udc58': 'L'
'\ud81a\udc59': 'L'
'\ud81a\udc5a': 'L'
'\ud81a\udc5b': 'L'
'\ud81a\udc5c': 'L'
'\ud81a\udc5d': 'L'
'\ud81a\udc5e': 'L'
'\ud81a\udc5f': 'L'
'\ud81a\udc60': 'L'
'\ud81a\udc61': 'L'
'\ud81a\udc62': 'L'
'\ud81a\udc63': 'L'
'\ud81a\udc64': 'L'
'\ud81a\udc65': 'L'
'\ud81a\udc66': 'L'
'\ud81a\udc67': 'L'
'\ud81a\udc68': 'L'
'\ud81a\udc69': 'L'
'\ud81a\udc6a': 'L'
'\ud81a\udc6b': 'L'
'\ud81a\udc6c': 'L'
'\ud81a\udc6d': 'L'
'\ud81a\udc6e': 'L'
'\ud81a\udc6f': 'L'
'\ud81a\udc70': 'L'
'\ud81a\udc71': 'L'
'\ud81a\udc72': 'L'
'\ud81a\udc73': 'L'
'\ud81a\udc74': 'L'
'\ud81a\udc75': 'L'
'\ud81a\udc76': 'L'
'\ud81a\udc77': 'L'
'\ud81a\udc78': 'L'
'\ud81a\udc79': 'L'
'\ud81a\udc7a': 'L'
'\ud81a\udc7b': 'L'
'\ud81a\udc7c': 'L'
'\ud81a\udc7d': 'L'
'\ud81a\udc7e': 'L'
'\ud81a\udc7f': 'L'
'\ud81a\udc80': 'L'
'\ud81a\udc81': 'L'
'\ud81a\udc82': 'L'
'\ud81a\udc83': 'L'
'\ud81a\udc84': 'L'
'\ud81a\udc85': 'L'
'\ud81a\udc86': 'L'
'\ud81a\udc87': 'L'
'\ud81a\udc88': 'L'
'\ud81a\udc89': 'L'
'\ud81a\udc8a': 'L'
'\ud81a\udc8b': 'L'
'\ud81a\udc8c': 'L'
'\ud81a\udc8d': 'L'
'\ud81a\udc8e': 'L'
'\ud81a\udc8f': 'L'
'\ud81a\udc90': 'L'
'\ud81a\udc91': 'L'
'\ud81a\udc92': 'L'
'\ud81a\udc93': 'L'
'\ud81a\udc94': 'L'
'\ud81a\udc95': 'L'
'\ud81a\udc96': 'L'
'\ud81a\udc97': 'L'
'\ud81a\udc98': 'L'
'\ud81a\udc99': 'L'
'\ud81a\udc9a': 'L'
'\ud81a\udc9b': 'L'
'\ud81a\udc9c': 'L'
'\ud81a\udc9d': 'L'
'\ud81a\udc9e': 'L'
'\ud81a\udc9f': 'L'
'\ud81a\udca0': 'L'
'\ud81a\udca1': 'L'
'\ud81a\udca2': 'L'
'\ud81a\udca3': 'L'
'\ud81a\udca4': 'L'
'\ud81a\udca5': 'L'
'\ud81a\udca6': 'L'
'\ud81a\udca7': 'L'
'\ud81a\udca8': 'L'
'\ud81a\udca9': 'L'
'\ud81a\udcaa': 'L'
'\ud81a\udcab': 'L'
'\ud81a\udcac': 'L'
'\ud81a\udcad': 'L'
'\ud81a\udcae': 'L'
'\ud81a\udcaf': 'L'
'\ud81a\udcb0': 'L'
'\ud81a\udcb1': 'L'
'\ud81a\udcb2': 'L'
'\ud81a\udcb3': 'L'
'\ud81a\udcb4': 'L'
'\ud81a\udcb5': 'L'
'\ud81a\udcb6': 'L'
'\ud81a\udcb7': 'L'
'\ud81a\udcb8': 'L'
'\ud81a\udcb9': 'L'
'\ud81a\udcba': 'L'
'\ud81a\udcbb': 'L'
'\ud81a\udcbc': 'L'
'\ud81a\udcbd': 'L'
'\ud81a\udcbe': 'L'
'\ud81a\udcbf': 'L'
'\ud81a\udcc0': 'L'
'\ud81a\udcc1': 'L'
'\ud81a\udcc2': 'L'
'\ud81a\udcc3': 'L'
'\ud81a\udcc4': 'L'
'\ud81a\udcc5': 'L'
'\ud81a\udcc6': 'L'
'\ud81a\udcc7': 'L'
'\ud81a\udcc8': 'L'
'\ud81a\udcc9': 'L'
'\ud81a\udcca': 'L'
'\ud81a\udccb': 'L'
'\ud81a\udccc': 'L'
'\ud81a\udccd': 'L'
'\ud81a\udcce': 'L'
'\ud81a\udccf': 'L'
'\ud81a\udcd0': 'L'
'\ud81a\udcd1': 'L'
'\ud81a\udcd2': 'L'
'\ud81a\udcd3': 'L'
'\ud81a\udcd4': 'L'
'\ud81a\udcd5': 'L'
'\ud81a\udcd6': 'L'
'\ud81a\udcd7': 'L'
'\ud81a\udcd8': 'L'
'\ud81a\udcd9': 'L'
'\ud81a\udcda': 'L'
'\ud81a\udcdb': 'L'
'\ud81a\udcdc': 'L'
'\ud81a\udcdd': 'L'
'\ud81a\udcde': 'L'
'\ud81a\udcdf': 'L'
'\ud81a\udce0': 'L'
'\ud81a\udce1': 'L'
'\ud81a\udce2': 'L'
'\ud81a\udce3': 'L'
'\ud81a\udce4': 'L'
'\ud81a\udce5': 'L'
'\ud81a\udce6': 'L'
'\ud81a\udce7': 'L'
'\ud81a\udce8': 'L'
'\ud81a\udce9': 'L'
'\ud81a\udcea': 'L'
'\ud81a\udceb': 'L'
'\ud81a\udcec': 'L'
'\ud81a\udced': 'L'
'\ud81a\udcee': 'L'
'\ud81a\udcef': 'L'
'\ud81a\udcf0': 'L'
'\ud81a\udcf1': 'L'
'\ud81a\udcf2': 'L'
'\ud81a\udcf3': 'L'
'\ud81a\udcf4': 'L'
'\ud81a\udcf5': 'L'
'\ud81a\udcf6': 'L'
'\ud81a\udcf7': 'L'
'\ud81a\udcf8': 'L'
'\ud81a\udcf9': 'L'
'\ud81a\udcfa': 'L'
'\ud81a\udcfb': 'L'
'\ud81a\udcfc': 'L'
'\ud81a\udcfd': 'L'
'\ud81a\udcfe': 'L'
'\ud81a\udcff': 'L'
'\ud81a\udd00': 'L'
'\ud81a\udd01': 'L'
'\ud81a\udd02': 'L'
'\ud81a\udd03': 'L'
'\ud81a\udd04': 'L'
'\ud81a\udd05': 'L'
'\ud81a\udd06': 'L'
'\ud81a\udd07': 'L'
'\ud81a\udd08': 'L'
'\ud81a\udd09': 'L'
'\ud81a\udd0a': 'L'
'\ud81a\udd0b': 'L'
'\ud81a\udd0c': 'L'
'\ud81a\udd0d': 'L'
'\ud81a\udd0e': 'L'
'\ud81a\udd0f': 'L'
'\ud81a\udd10': 'L'
'\ud81a\udd11': 'L'
'\ud81a\udd12': 'L'
'\ud81a\udd13': 'L'
'\ud81a\udd14': 'L'
'\ud81a\udd15': 'L'
'\ud81a\udd16': 'L'
'\ud81a\udd17': 'L'
'\ud81a\udd18': 'L'
'\ud81a\udd19': 'L'
'\ud81a\udd1a': 'L'
'\ud81a\udd1b': 'L'
'\ud81a\udd1c': 'L'
'\ud81a\udd1d': 'L'
'\ud81a\udd1e': 'L'
'\ud81a\udd1f': 'L'
'\ud81a\udd20': 'L'
'\ud81a\udd21': 'L'
'\ud81a\udd22': 'L'
'\ud81a\udd23': 'L'
'\ud81a\udd24': 'L'
'\ud81a\udd25': 'L'
'\ud81a\udd26': 'L'
'\ud81a\udd27': 'L'
'\ud81a\udd28': 'L'
'\ud81a\udd29': 'L'
'\ud81a\udd2a': 'L'
'\ud81a\udd2b': 'L'
'\ud81a\udd2c': 'L'
'\ud81a\udd2d': 'L'
'\ud81a\udd2e': 'L'
'\ud81a\udd2f': 'L'
'\ud81a\udd30': 'L'
'\ud81a\udd31': 'L'
'\ud81a\udd32': 'L'
'\ud81a\udd33': 'L'
'\ud81a\udd34': 'L'
'\ud81a\udd35': 'L'
'\ud81a\udd36': 'L'
'\ud81a\udd37': 'L'
'\ud81a\udd38': 'L'
'\ud81a\udd39': 'L'
'\ud81a\udd3a': 'L'
'\ud81a\udd3b': 'L'
'\ud81a\udd3c': 'L'
'\ud81a\udd3d': 'L'
'\ud81a\udd3e': 'L'
'\ud81a\udd3f': 'L'
'\ud81a\udd40': 'L'
'\ud81a\udd41': 'L'
'\ud81a\udd42': 'L'
'\ud81a\udd43': 'L'
'\ud81a\udd44': 'L'
'\ud81a\udd45': 'L'
'\ud81a\udd46': 'L'
'\ud81a\udd47': 'L'
'\ud81a\udd48': 'L'
'\ud81a\udd49': 'L'
'\ud81a\udd4a': 'L'
'\ud81a\udd4b': 'L'
'\ud81a\udd4c': 'L'
'\ud81a\udd4d': 'L'
'\ud81a\udd4e': 'L'
'\ud81a\udd4f': 'L'
'\ud81a\udd50': 'L'
'\ud81a\udd51': 'L'
'\ud81a\udd52': 'L'
'\ud81a\udd53': 'L'
'\ud81a\udd54': 'L'
'\ud81a\udd55': 'L'
'\ud81a\udd56': 'L'
'\ud81a\udd57': 'L'
'\ud81a\udd58': 'L'
'\ud81a\udd59': 'L'
'\ud81a\udd5a': 'L'
'\ud81a\udd5b': 'L'
'\ud81a\udd5c': 'L'
'\ud81a\udd5d': 'L'
'\ud81a\udd5e': 'L'
'\ud81a\udd5f': 'L'
'\ud81a\udd60': 'L'
'\ud81a\udd61': 'L'
'\ud81a\udd62': 'L'
'\ud81a\udd63': 'L'
'\ud81a\udd64': 'L'
'\ud81a\udd65': 'L'
'\ud81a\udd66': 'L'
'\ud81a\udd67': 'L'
'\ud81a\udd68': 'L'
'\ud81a\udd69': 'L'
'\ud81a\udd6a': 'L'
'\ud81a\udd6b': 'L'
'\ud81a\udd6c': 'L'
'\ud81a\udd6d': 'L'
'\ud81a\udd6e': 'L'
'\ud81a\udd6f': 'L'
'\ud81a\udd70': 'L'
'\ud81a\udd71': 'L'
'\ud81a\udd72': 'L'
'\ud81a\udd73': 'L'
'\ud81a\udd74': 'L'
'\ud81a\udd75': 'L'
'\ud81a\udd76': 'L'
'\ud81a\udd77': 'L'
'\ud81a\udd78': 'L'
'\ud81a\udd79': 'L'
'\ud81a\udd7a': 'L'
'\ud81a\udd7b': 'L'
'\ud81a\udd7c': 'L'
'\ud81a\udd7d': 'L'
'\ud81a\udd7e': 'L'
'\ud81a\udd7f': 'L'
'\ud81a\udd80': 'L'
'\ud81a\udd81': 'L'
'\ud81a\udd82': 'L'
'\ud81a\udd83': 'L'
'\ud81a\udd84': 'L'
'\ud81a\udd85': 'L'
'\ud81a\udd86': 'L'
'\ud81a\udd87': 'L'
'\ud81a\udd88': 'L'
'\ud81a\udd89': 'L'
'\ud81a\udd8a': 'L'
'\ud81a\udd8b': 'L'
'\ud81a\udd8c': 'L'
'\ud81a\udd8d': 'L'
'\ud81a\udd8e': 'L'
'\ud81a\udd8f': 'L'
'\ud81a\udd90': 'L'
'\ud81a\udd91': 'L'
'\ud81a\udd92': 'L'
'\ud81a\udd93': 'L'
'\ud81a\udd94': 'L'
'\ud81a\udd95': 'L'
'\ud81a\udd96': 'L'
'\ud81a\udd97': 'L'
'\ud81a\udd98': 'L'
'\ud81a\udd99': 'L'
'\ud81a\udd9a': 'L'
'\ud81a\udd9b': 'L'
'\ud81a\udd9c': 'L'
'\ud81a\udd9d': 'L'
'\ud81a\udd9e': 'L'
'\ud81a\udd9f': 'L'
'\ud81a\udda0': 'L'
'\ud81a\udda1': 'L'
'\ud81a\udda2': 'L'
'\ud81a\udda3': 'L'
'\ud81a\udda4': 'L'
'\ud81a\udda5': 'L'
'\ud81a\udda6': 'L'
'\ud81a\udda7': 'L'
'\ud81a\udda8': 'L'
'\ud81a\udda9': 'L'
'\ud81a\uddaa': 'L'
'\ud81a\uddab': 'L'
'\ud81a\uddac': 'L'
'\ud81a\uddad': 'L'
'\ud81a\uddae': 'L'
'\ud81a\uddaf': 'L'
'\ud81a\uddb0': 'L'
'\ud81a\uddb1': 'L'
'\ud81a\uddb2': 'L'
'\ud81a\uddb3': 'L'
'\ud81a\uddb4': 'L'
'\ud81a\uddb5': 'L'
'\ud81a\uddb6': 'L'
'\ud81a\uddb7': 'L'
'\ud81a\uddb8': 'L'
'\ud81a\uddb9': 'L'
'\ud81a\uddba': 'L'
'\ud81a\uddbb': 'L'
'\ud81a\uddbc': 'L'
'\ud81a\uddbd': 'L'
'\ud81a\uddbe': 'L'
'\ud81a\uddbf': 'L'
'\ud81a\uddc0': 'L'
'\ud81a\uddc1': 'L'
'\ud81a\uddc2': 'L'
'\ud81a\uddc3': 'L'
'\ud81a\uddc4': 'L'
'\ud81a\uddc5': 'L'
'\ud81a\uddc6': 'L'
'\ud81a\uddc7': 'L'
'\ud81a\uddc8': 'L'
'\ud81a\uddc9': 'L'
'\ud81a\uddca': 'L'
'\ud81a\uddcb': 'L'
'\ud81a\uddcc': 'L'
'\ud81a\uddcd': 'L'
'\ud81a\uddce': 'L'
'\ud81a\uddcf': 'L'
'\ud81a\uddd0': 'L'
'\ud81a\uddd1': 'L'
'\ud81a\uddd2': 'L'
'\ud81a\uddd3': 'L'
'\ud81a\uddd4': 'L'
'\ud81a\uddd5': 'L'
'\ud81a\uddd6': 'L'
'\ud81a\uddd7': 'L'
'\ud81a\uddd8': 'L'
'\ud81a\uddd9': 'L'
'\ud81a\uddda': 'L'
'\ud81a\udddb': 'L'
'\ud81a\udddc': 'L'
'\ud81a\udddd': 'L'
'\ud81a\uddde': 'L'
'\ud81a\udddf': 'L'
'\ud81a\udde0': 'L'
'\ud81a\udde1': 'L'
'\ud81a\udde2': 'L'
'\ud81a\udde3': 'L'
'\ud81a\udde4': 'L'
'\ud81a\udde5': 'L'
'\ud81a\udde6': 'L'
'\ud81a\udde7': 'L'
'\ud81a\udde8': 'L'
'\ud81a\udde9': 'L'
'\ud81a\uddea': 'L'
'\ud81a\uddeb': 'L'
'\ud81a\uddec': 'L'
'\ud81a\udded': 'L'
'\ud81a\uddee': 'L'
'\ud81a\uddef': 'L'
'\ud81a\uddf0': 'L'
'\ud81a\uddf1': 'L'
'\ud81a\uddf2': 'L'
'\ud81a\uddf3': 'L'
'\ud81a\uddf4': 'L'
'\ud81a\uddf5': 'L'
'\ud81a\uddf6': 'L'
'\ud81a\uddf7': 'L'
'\ud81a\uddf8': 'L'
'\ud81a\uddf9': 'L'
'\ud81a\uddfa': 'L'
'\ud81a\uddfb': 'L'
'\ud81a\uddfc': 'L'
'\ud81a\uddfd': 'L'
'\ud81a\uddfe': 'L'
'\ud81a\uddff': 'L'
'\ud81a\ude00': 'L'
'\ud81a\ude01': 'L'
'\ud81a\ude02': 'L'
'\ud81a\ude03': 'L'
'\ud81a\ude04': 'L'
'\ud81a\ude05': 'L'
'\ud81a\ude06': 'L'
'\ud81a\ude07': 'L'
'\ud81a\ude08': 'L'
'\ud81a\ude09': 'L'
'\ud81a\ude0a': 'L'
'\ud81a\ude0b': 'L'
'\ud81a\ude0c': 'L'
'\ud81a\ude0d': 'L'
'\ud81a\ude0e': 'L'
'\ud81a\ude0f': 'L'
'\ud81a\ude10': 'L'
'\ud81a\ude11': 'L'
'\ud81a\ude12': 'L'
'\ud81a\ude13': 'L'
'\ud81a\ude14': 'L'
'\ud81a\ude15': 'L'
'\ud81a\ude16': 'L'
'\ud81a\ude17': 'L'
'\ud81a\ude18': 'L'
'\ud81a\ude19': 'L'
'\ud81a\ude1a': 'L'
'\ud81a\ude1b': 'L'
'\ud81a\ude1c': 'L'
'\ud81a\ude1d': 'L'
'\ud81a\ude1e': 'L'
'\ud81a\ude1f': 'L'
'\ud81a\ude20': 'L'
'\ud81a\ude21': 'L'
'\ud81a\ude22': 'L'
'\ud81a\ude23': 'L'
'\ud81a\ude24': 'L'
'\ud81a\ude25': 'L'
'\ud81a\ude26': 'L'
'\ud81a\ude27': 'L'
'\ud81a\ude28': 'L'
'\ud81a\ude29': 'L'
'\ud81a\ude2a': 'L'
'\ud81a\ude2b': 'L'
'\ud81a\ude2c': 'L'
'\ud81a\ude2d': 'L'
'\ud81a\ude2e': 'L'
'\ud81a\ude2f': 'L'
'\ud81a\ude30': 'L'
'\ud81a\ude31': 'L'
'\ud81a\ude32': 'L'
'\ud81a\ude33': 'L'
'\ud81a\ude34': 'L'
'\ud81a\ude35': 'L'
'\ud81a\ude36': 'L'
'\ud81a\ude37': 'L'
'\ud81a\ude38': 'L'
'\ud81a\ude40': 'L'
'\ud81a\ude41': 'L'
'\ud81a\ude42': 'L'
'\ud81a\ude43': 'L'
'\ud81a\ude44': 'L'
'\ud81a\ude45': 'L'
'\ud81a\ude46': 'L'
'\ud81a\ude47': 'L'
'\ud81a\ude48': 'L'
'\ud81a\ude49': 'L'
'\ud81a\ude4a': 'L'
'\ud81a\ude4b': 'L'
'\ud81a\ude4c': 'L'
'\ud81a\ude4d': 'L'
'\ud81a\ude4e': 'L'
'\ud81a\ude4f': 'L'
'\ud81a\ude50': 'L'
'\ud81a\ude51': 'L'
'\ud81a\ude52': 'L'
'\ud81a\ude53': 'L'
'\ud81a\ude54': 'L'
'\ud81a\ude55': 'L'
'\ud81a\ude56': 'L'
'\ud81a\ude57': 'L'
'\ud81a\ude58': 'L'
'\ud81a\ude59': 'L'
'\ud81a\ude5a': 'L'
'\ud81a\ude5b': 'L'
'\ud81a\ude5c': 'L'
'\ud81a\ude5d': 'L'
'\ud81a\ude5e': 'L'
'\ud81a\ude60': 'N'
'\ud81a\ude61': 'N'
'\ud81a\ude62': 'N'
'\ud81a\ude63': 'N'
'\ud81a\ude64': 'N'
'\ud81a\ude65': 'N'
'\ud81a\ude66': 'N'
'\ud81a\ude67': 'N'
'\ud81a\ude68': 'N'
'\ud81a\ude69': 'N'
'\ud81a\uded0': 'L'
'\ud81a\uded1': 'L'
'\ud81a\uded2': 'L'
'\ud81a\uded3': 'L'
'\ud81a\uded4': 'L'
'\ud81a\uded5': 'L'
'\ud81a\uded6': 'L'
'\ud81a\uded7': 'L'
'\ud81a\uded8': 'L'
'\ud81a\uded9': 'L'
'\ud81a\udeda': 'L'
'\ud81a\udedb': 'L'
'\ud81a\udedc': 'L'
'\ud81a\udedd': 'L'
'\ud81a\udede': 'L'
'\ud81a\udedf': 'L'
'\ud81a\udee0': 'L'
'\ud81a\udee1': 'L'
'\ud81a\udee2': 'L'
'\ud81a\udee3': 'L'
'\ud81a\udee4': 'L'
'\ud81a\udee5': 'L'
'\ud81a\udee6': 'L'
'\ud81a\udee7': 'L'
'\ud81a\udee8': 'L'
'\ud81a\udee9': 'L'
'\ud81a\udeea': 'L'
'\ud81a\udeeb': 'L'
'\ud81a\udeec': 'L'
'\ud81a\udeed': 'L'
'\ud81a\udf00': 'L'
'\ud81a\udf01': 'L'
'\ud81a\udf02': 'L'
'\ud81a\udf03': 'L'
'\ud81a\udf04': 'L'
'\ud81a\udf05': 'L'
'\ud81a\udf06': 'L'
'\ud81a\udf07': 'L'
'\ud81a\udf08': 'L'
'\ud81a\udf09': 'L'
'\ud81a\udf0a': 'L'
'\ud81a\udf0b': 'L'
'\ud81a\udf0c': 'L'
'\ud81a\udf0d': 'L'
'\ud81a\udf0e': 'L'
'\ud81a\udf0f': 'L'
'\ud81a\udf10': 'L'
'\ud81a\udf11': 'L'
'\ud81a\udf12': 'L'
'\ud81a\udf13': 'L'
'\ud81a\udf14': 'L'
'\ud81a\udf15': 'L'
'\ud81a\udf16': 'L'
'\ud81a\udf17': 'L'
'\ud81a\udf18': 'L'
'\ud81a\udf19': 'L'
'\ud81a\udf1a': 'L'
'\ud81a\udf1b': 'L'
'\ud81a\udf1c': 'L'
'\ud81a\udf1d': 'L'
'\ud81a\udf1e': 'L'
'\ud81a\udf1f': 'L'
'\ud81a\udf20': 'L'
'\ud81a\udf21': 'L'
'\ud81a\udf22': 'L'
'\ud81a\udf23': 'L'
'\ud81a\udf24': 'L'
'\ud81a\udf25': 'L'
'\ud81a\udf26': 'L'
'\ud81a\udf27': 'L'
'\ud81a\udf28': 'L'
'\ud81a\udf29': 'L'
'\ud81a\udf2a': 'L'
'\ud81a\udf2b': 'L'
'\ud81a\udf2c': 'L'
'\ud81a\udf2d': 'L'
'\ud81a\udf2e': 'L'
'\ud81a\udf2f': 'L'
'\ud81a\udf40': 'L'
'\ud81a\udf41': 'L'
'\ud81a\udf42': 'L'
'\ud81a\udf43': 'L'
'\ud81a\udf50': 'N'
'\ud81a\udf51': 'N'
'\ud81a\udf52': 'N'
'\ud81a\udf53': 'N'
'\ud81a\udf54': 'N'
'\ud81a\udf55': 'N'
'\ud81a\udf56': 'N'
'\ud81a\udf57': 'N'
'\ud81a\udf58': 'N'
'\ud81a\udf59': 'N'
'\ud81a\udf5b': 'N'
'\ud81a\udf5c': 'N'
'\ud81a\udf5d': 'N'
'\ud81a\udf5e': 'N'
'\ud81a\udf5f': 'N'
'\ud81a\udf60': 'N'
'\ud81a\udf61': 'N'
'\ud81a\udf63': 'L'
'\ud81a\udf64': 'L'
'\ud81a\udf65': 'L'
'\ud81a\udf66': 'L'
'\ud81a\udf67': 'L'
'\ud81a\udf68': 'L'
'\ud81a\udf69': 'L'
'\ud81a\udf6a': 'L'
'\ud81a\udf6b': 'L'
'\ud81a\udf6c': 'L'
'\ud81a\udf6d': 'L'
'\ud81a\udf6e': 'L'
'\ud81a\udf6f': 'L'
'\ud81a\udf70': 'L'
'\ud81a\udf71': 'L'
'\ud81a\udf72': 'L'
'\ud81a\udf73': 'L'
'\ud81a\udf74': 'L'
'\ud81a\udf75': 'L'
'\ud81a\udf76': 'L'
'\ud81a\udf77': 'L'
'\ud81a\udf7d': 'L'
'\ud81a\udf7e': 'L'
'\ud81a\udf7f': 'L'
'\ud81a\udf80': 'L'
'\ud81a\udf81': 'L'
'\ud81a\udf82': 'L'
'\ud81a\udf83': 'L'
'\ud81a\udf84': 'L'
'\ud81a\udf85': 'L'
'\ud81a\udf86': 'L'
'\ud81a\udf87': 'L'
'\ud81a\udf88': 'L'
'\ud81a\udf89': 'L'
'\ud81a\udf8a': 'L'
'\ud81a\udf8b': 'L'
'\ud81a\udf8c': 'L'
'\ud81a\udf8d': 'L'
'\ud81a\udf8e': 'L'
'\ud81a\udf8f': 'L'
'\ud81b\udf00': 'L'
'\ud81b\udf01': 'L'
'\ud81b\udf02': 'L'
'\ud81b\udf03': 'L'
'\ud81b\udf04': 'L'
'\ud81b\udf05': 'L'
'\ud81b\udf06': 'L'
'\ud81b\udf07': 'L'
'\ud81b\udf08': 'L'
'\ud81b\udf09': 'L'
'\ud81b\udf0a': 'L'
'\ud81b\udf0b': 'L'
'\ud81b\udf0c': 'L'
'\ud81b\udf0d': 'L'
'\ud81b\udf0e': 'L'
'\ud81b\udf0f': 'L'
'\ud81b\udf10': 'L'
'\ud81b\udf11': 'L'
'\ud81b\udf12': 'L'
'\ud81b\udf13': 'L'
'\ud81b\udf14': 'L'
'\ud81b\udf15': 'L'
'\ud81b\udf16': 'L'
'\ud81b\udf17': 'L'
'\ud81b\udf18': 'L'
'\ud81b\udf19': 'L'
'\ud81b\udf1a': 'L'
'\ud81b\udf1b': 'L'
'\ud81b\udf1c': 'L'
'\ud81b\udf1d': 'L'
'\ud81b\udf1e': 'L'
'\ud81b\udf1f': 'L'
'\ud81b\udf20': 'L'
'\ud81b\udf21': 'L'
'\ud81b\udf22': 'L'
'\ud81b\udf23': 'L'
'\ud81b\udf24': 'L'
'\ud81b\udf25': 'L'
'\ud81b\udf26': 'L'
'\ud81b\udf27': 'L'
'\ud81b\udf28': 'L'
'\ud81b\udf29': 'L'
'\ud81b\udf2a': 'L'
'\ud81b\udf2b': 'L'
'\ud81b\udf2c': 'L'
'\ud81b\udf2d': 'L'
'\ud81b\udf2e': 'L'
'\ud81b\udf2f': 'L'
'\ud81b\udf30': 'L'
'\ud81b\udf31': 'L'
'\ud81b\udf32': 'L'
'\ud81b\udf33': 'L'
'\ud81b\udf34': 'L'
'\ud81b\udf35': 'L'
'\ud81b\udf36': 'L'
'\ud81b\udf37': 'L'
'\ud81b\udf38': 'L'
'\ud81b\udf39': 'L'
'\ud81b\udf3a': 'L'
'\ud81b\udf3b': 'L'
'\ud81b\udf3c': 'L'
'\ud81b\udf3d': 'L'
'\ud81b\udf3e': 'L'
'\ud81b\udf3f': 'L'
'\ud81b\udf40': 'L'
'\ud81b\udf41': 'L'
'\ud81b\udf42': 'L'
'\ud81b\udf43': 'L'
'\ud81b\udf44': 'L'
'\ud81b\udf50': 'L'
'\ud81b\udf93': 'L'
'\ud81b\udf94': 'L'
'\ud81b\udf95': 'L'
'\ud81b\udf96': 'L'
'\ud81b\udf97': 'L'
'\ud81b\udf98': 'L'
'\ud81b\udf99': 'L'
'\ud81b\udf9a': 'L'
'\ud81b\udf9b': 'L'
'\ud81b\udf9c': 'L'
'\ud81b\udf9d': 'L'
'\ud81b\udf9e': 'L'
'\ud81b\udf9f': 'L'
'\ud82c\udc00': 'L'
'\ud82c\udc01': 'L'
'\ud82f\udc00': 'L'
'\ud82f\udc01': 'L'
'\ud82f\udc02': 'L'
'\ud82f\udc03': 'L'
'\ud82f\udc04': 'L'
'\ud82f\udc05': 'L'
'\ud82f\udc06': 'L'
'\ud82f\udc07': 'L'
'\ud82f\udc08': 'L'
'\ud82f\udc09': 'L'
'\ud82f\udc0a': 'L'
'\ud82f\udc0b': 'L'
'\ud82f\udc0c': 'L'
'\ud82f\udc0d': 'L'
'\ud82f\udc0e': 'L'
'\ud82f\udc0f': 'L'
'\ud82f\udc10': 'L'
'\ud82f\udc11': 'L'
'\ud82f\udc12': 'L'
'\ud82f\udc13': 'L'
'\ud82f\udc14': 'L'
'\ud82f\udc15': 'L'
'\ud82f\udc16': 'L'
'\ud82f\udc17': 'L'
'\ud82f\udc18': 'L'
'\ud82f\udc19': 'L'
'\ud82f\udc1a': 'L'
'\ud82f\udc1b': 'L'
'\ud82f\udc1c': 'L'
'\ud82f\udc1d': 'L'
'\ud82f\udc1e': 'L'
'\ud82f\udc1f': 'L'
'\ud82f\udc20': 'L'
'\ud82f\udc21': 'L'
'\ud82f\udc22': 'L'
'\ud82f\udc23': 'L'
'\ud82f\udc24': 'L'
'\ud82f\udc25': 'L'
'\ud82f\udc26': 'L'
'\ud82f\udc27': 'L'
'\ud82f\udc28': 'L'
'\ud82f\udc29': 'L'
'\ud82f\udc2a': 'L'
'\ud82f\udc2b': 'L'
'\ud82f\udc2c': 'L'
'\ud82f\udc2d': 'L'
'\ud82f\udc2e': 'L'
'\ud82f\udc2f': 'L'
'\ud82f\udc30': 'L'
'\ud82f\udc31': 'L'
'\ud82f\udc32': 'L'
'\ud82f\udc33': 'L'
'\ud82f\udc34': 'L'
'\ud82f\udc35': 'L'
'\ud82f\udc36': 'L'
'\ud82f\udc37': 'L'
'\ud82f\udc38': 'L'
'\ud82f\udc39': 'L'
'\ud82f\udc3a': 'L'
'\ud82f\udc3b': 'L'
'\ud82f\udc3c': 'L'
'\ud82f\udc3d': 'L'
'\ud82f\udc3e': 'L'
'\ud82f\udc3f': 'L'
'\ud82f\udc40': 'L'
'\ud82f\udc41': 'L'
'\ud82f\udc42': 'L'
'\ud82f\udc43': 'L'
'\ud82f\udc44': 'L'
'\ud82f\udc45': 'L'
'\ud82f\udc46': 'L'
'\ud82f\udc47': 'L'
'\ud82f\udc48': 'L'
'\ud82f\udc49': 'L'
'\ud82f\udc4a': 'L'
'\ud82f\udc4b': 'L'
'\ud82f\udc4c': 'L'
'\ud82f\udc4d': 'L'
'\ud82f\udc4e': 'L'
'\ud82f\udc4f': 'L'
'\ud82f\udc50': 'L'
'\ud82f\udc51': 'L'
'\ud82f\udc52': 'L'
'\ud82f\udc53': 'L'
'\ud82f\udc54': 'L'
'\ud82f\udc55': 'L'
'\ud82f\udc56': 'L'
'\ud82f\udc57': 'L'
'\ud82f\udc58': 'L'
'\ud82f\udc59': 'L'
'\ud82f\udc5a': 'L'
'\ud82f\udc5b': 'L'
'\ud82f\udc5c': 'L'
'\ud82f\udc5d': 'L'
'\ud82f\udc5e': 'L'
'\ud82f\udc5f': 'L'
'\ud82f\udc60': 'L'
'\ud82f\udc61': 'L'
'\ud82f\udc62': 'L'
'\ud82f\udc63': 'L'
'\ud82f\udc64': 'L'
'\ud82f\udc65': 'L'
'\ud82f\udc66': 'L'
'\ud82f\udc67': 'L'
'\ud82f\udc68': 'L'
'\ud82f\udc69': 'L'
'\ud82f\udc6a': 'L'
'\ud82f\udc70': 'L'
'\ud82f\udc71': 'L'
'\ud82f\udc72': 'L'
'\ud82f\udc73': 'L'
'\ud82f\udc74': 'L'
'\ud82f\udc75': 'L'
'\ud82f\udc76': 'L'
'\ud82f\udc77': 'L'
'\ud82f\udc78': 'L'
'\ud82f\udc79': 'L'
'\ud82f\udc7a': 'L'
'\ud82f\udc7b': 'L'
'\ud82f\udc7c': 'L'
'\ud82f\udc80': 'L'
'\ud82f\udc81': 'L'
'\ud82f\udc82': 'L'
'\ud82f\udc83': 'L'
'\ud82f\udc84': 'L'
'\ud82f\udc85': 'L'
'\ud82f\udc86': 'L'
'\ud82f\udc87': 'L'
'\ud82f\udc88': 'L'
'\ud82f\udc90': 'L'
'\ud82f\udc91': 'L'
'\ud82f\udc92': 'L'
'\ud82f\udc93': 'L'
'\ud82f\udc94': 'L'
'\ud82f\udc95': 'L'
'\ud82f\udc96': 'L'
'\ud82f\udc97': 'L'
'\ud82f\udc98': 'L'
'\ud82f\udc99': 'L'
'\ud834\udf60': 'N'
'\ud834\udf61': 'N'
'\ud834\udf62': 'N'
'\ud834\udf63': 'N'
'\ud834\udf64': 'N'
'\ud834\udf65': 'N'
'\ud834\udf66': 'N'
'\ud834\udf67': 'N'
'\ud834\udf68': 'N'
'\ud834\udf69': 'N'
'\ud834\udf6a': 'N'
'\ud834\udf6b': 'N'
'\ud834\udf6c': 'N'
'\ud834\udf6d': 'N'
'\ud834\udf6e': 'N'
'\ud834\udf6f': 'N'
'\ud834\udf70': 'N'
'\ud834\udf71': 'N'
'\ud835\udc00': 'Lu'
'\ud835\udc01': 'Lu'
'\ud835\udc02': 'Lu'
'\ud835\udc03': 'Lu'
'\ud835\udc04': 'Lu'
'\ud835\udc05': 'Lu'
'\ud835\udc06': 'Lu'
'\ud835\udc07': 'Lu'
'\ud835\udc08': 'Lu'
'\ud835\udc09': 'Lu'
'\ud835\udc0a': 'Lu'
'\ud835\udc0b': 'Lu'
'\ud835\udc0c': 'Lu'
'\ud835\udc0d': 'Lu'
'\ud835\udc0e': 'Lu'
'\ud835\udc0f': 'Lu'
'\ud835\udc10': 'Lu'
'\ud835\udc11': 'Lu'
'\ud835\udc12': 'Lu'
'\ud835\udc13': 'Lu'
'\ud835\udc14': 'Lu'
'\ud835\udc15': 'Lu'
'\ud835\udc16': 'Lu'
'\ud835\udc17': 'Lu'
'\ud835\udc18': 'Lu'
'\ud835\udc19': 'Lu'
'\ud835\udc1a': 'L'
'\ud835\udc1b': 'L'
'\ud835\udc1c': 'L'
'\ud835\udc1d': 'L'
'\ud835\udc1e': 'L'
'\ud835\udc1f': 'L'
'\ud835\udc20': 'L'
'\ud835\udc21': 'L'
'\ud835\udc22': 'L'
'\ud835\udc23': 'L'
'\ud835\udc24': 'L'
'\ud835\udc25': 'L'
'\ud835\udc26': 'L'
'\ud835\udc27': 'L'
'\ud835\udc28': 'L'
'\ud835\udc29': 'L'
'\ud835\udc2a': 'L'
'\ud835\udc2b': 'L'
'\ud835\udc2c': 'L'
'\ud835\udc2d': 'L'
'\ud835\udc2e': 'L'
'\ud835\udc2f': 'L'
'\ud835\udc30': 'L'
'\ud835\udc31': 'L'
'\ud835\udc32': 'L'
'\ud835\udc33': 'L'
'\ud835\udc34': 'Lu'
'\ud835\udc35': 'Lu'
'\ud835\udc36': 'Lu'
'\ud835\udc37': 'Lu'
'\ud835\udc38': 'Lu'
'\ud835\udc39': 'Lu'
'\ud835\udc3a': 'Lu'
'\ud835\udc3b': 'Lu'
'\ud835\udc3c': 'Lu'
'\ud835\udc3d': 'Lu'
'\ud835\udc3e': 'Lu'
'\ud835\udc3f': 'Lu'
'\ud835\udc40': 'Lu'
'\ud835\udc41': 'Lu'
'\ud835\udc42': 'Lu'
'\ud835\udc43': 'Lu'
'\ud835\udc44': 'Lu'
'\ud835\udc45': 'Lu'
'\ud835\udc46': 'Lu'
'\ud835\udc47': 'Lu'
'\ud835\udc48': 'Lu'
'\ud835\udc49': 'Lu'
'\ud835\udc4a': 'Lu'
'\ud835\udc4b': 'Lu'
'\ud835\udc4c': 'Lu'
'\ud835\udc4d': 'Lu'
'\ud835\udc4e': 'L'
'\ud835\udc4f': 'L'
'\ud835\udc50': 'L'
'\ud835\udc51': 'L'
'\ud835\udc52': 'L'
'\ud835\udc53': 'L'
'\ud835\udc54': 'L'
'\ud835\udc56': 'L'
'\ud835\udc57': 'L'
'\ud835\udc58': 'L'
'\ud835\udc59': 'L'
'\ud835\udc5a': 'L'
'\ud835\udc5b': 'L'
'\ud835\udc5c': 'L'
'\ud835\udc5d': 'L'
'\ud835\udc5e': 'L'
'\ud835\udc5f': 'L'
'\ud835\udc60': 'L'
'\ud835\udc61': 'L'
'\ud835\udc62': 'L'
'\ud835\udc63': 'L'
'\ud835\udc64': 'L'
'\ud835\udc65': 'L'
'\ud835\udc66': 'L'
'\ud835\udc67': 'L'
'\ud835\udc68': 'Lu'
'\ud835\udc69': 'Lu'
'\ud835\udc6a': 'Lu'
'\ud835\udc6b': 'Lu'
'\ud835\udc6c': 'Lu'
'\ud835\udc6d': 'Lu'
'\ud835\udc6e': 'Lu'
'\ud835\udc6f': 'Lu'
'\ud835\udc70': 'Lu'
'\ud835\udc71': 'Lu'
'\ud835\udc72': 'Lu'
'\ud835\udc73': 'Lu'
'\ud835\udc74': 'Lu'
'\ud835\udc75': 'Lu'
'\ud835\udc76': 'Lu'
'\ud835\udc77': 'Lu'
'\ud835\udc78': 'Lu'
'\ud835\udc79': 'Lu'
'\ud835\udc7a': 'Lu'
'\ud835\udc7b': 'Lu'
'\ud835\udc7c': 'Lu'
'\ud835\udc7d': 'Lu'
'\ud835\udc7e': 'Lu'
'\ud835\udc7f': 'Lu'
'\ud835\udc80': 'Lu'
'\ud835\udc81': 'Lu'
'\ud835\udc82': 'L'
'\ud835\udc83': 'L'
'\ud835\udc84': 'L'
'\ud835\udc85': 'L'
'\ud835\udc86': 'L'
'\ud835\udc87': 'L'
'\ud835\udc88': 'L'
'\ud835\udc89': 'L'
'\ud835\udc8a': 'L'
'\ud835\udc8b': 'L'
'\ud835\udc8c': 'L'
'\ud835\udc8d': 'L'
'\ud835\udc8e': 'L'
'\ud835\udc8f': 'L'
'\ud835\udc90': 'L'
'\ud835\udc91': 'L'
'\ud835\udc92': 'L'
'\ud835\udc93': 'L'
'\ud835\udc94': 'L'
'\ud835\udc95': 'L'
'\ud835\udc96': 'L'
'\ud835\udc97': 'L'
'\ud835\udc98': 'L'
'\ud835\udc99': 'L'
'\ud835\udc9a': 'L'
'\ud835\udc9b': 'L'
'\ud835\udc9c': 'Lu'
'\ud835\udc9e': 'Lu'
'\ud835\udc9f': 'Lu'
'\ud835\udca2': 'Lu'
'\ud835\udca5': 'Lu'
'\ud835\udca6': 'Lu'
'\ud835\udca9': 'Lu'
'\ud835\udcaa': 'Lu'
'\ud835\udcab': 'Lu'
'\ud835\udcac': 'Lu'
'\ud835\udcae': 'Lu'
'\ud835\udcaf': 'Lu'
'\ud835\udcb0': 'Lu'
'\ud835\udcb1': 'Lu'
'\ud835\udcb2': 'Lu'
'\ud835\udcb3': 'Lu'
'\ud835\udcb4': 'Lu'
'\ud835\udcb5': 'Lu'
'\ud835\udcb6': 'L'
'\ud835\udcb7': 'L'
'\ud835\udcb8': 'L'
'\ud835\udcb9': 'L'
'\ud835\udcbb': 'L'
'\ud835\udcbd': 'L'
'\ud835\udcbe': 'L'
'\ud835\udcbf': 'L'
'\ud835\udcc0': 'L'
'\ud835\udcc1': 'L'
'\ud835\udcc2': 'L'
'\ud835\udcc3': 'L'
'\ud835\udcc5': 'L'
'\ud835\udcc6': 'L'
'\ud835\udcc7': 'L'
'\ud835\udcc8': 'L'
'\ud835\udcc9': 'L'
'\ud835\udcca': 'L'
'\ud835\udccb': 'L'
'\ud835\udccc': 'L'
'\ud835\udccd': 'L'
'\ud835\udcce': 'L'
'\ud835\udccf': 'L'
'\ud835\udcd0': 'Lu'
'\ud835\udcd1': 'Lu'
'\ud835\udcd2': 'Lu'
'\ud835\udcd3': 'Lu'
'\ud835\udcd4': 'Lu'
'\ud835\udcd5': 'Lu'
'\ud835\udcd6': 'Lu'
'\ud835\udcd7': 'Lu'
'\ud835\udcd8': 'Lu'
'\ud835\udcd9': 'Lu'
'\ud835\udcda': 'Lu'
'\ud835\udcdb': 'Lu'
'\ud835\udcdc': 'Lu'
'\ud835\udcdd': 'Lu'
'\ud835\udcde': 'Lu'
'\ud835\udcdf': 'Lu'
'\ud835\udce0': 'Lu'
'\ud835\udce1': 'Lu'
'\ud835\udce2': 'Lu'
'\ud835\udce3': 'Lu'
'\ud835\udce4': 'Lu'
'\ud835\udce5': 'Lu'
'\ud835\udce6': 'Lu'
'\ud835\udce7': 'Lu'
'\ud835\udce8': 'Lu'
'\ud835\udce9': 'Lu'
'\ud835\udcea': 'L'
'\ud835\udceb': 'L'
'\ud835\udcec': 'L'
'\ud835\udced': 'L'
'\ud835\udcee': 'L'
'\ud835\udcef': 'L'
'\ud835\udcf0': 'L'
'\ud835\udcf1': 'L'
'\ud835\udcf2': 'L'
'\ud835\udcf3': 'L'
'\ud835\udcf4': 'L'
'\ud835\udcf5': 'L'
'\ud835\udcf6': 'L'
'\ud835\udcf7': 'L'
'\ud835\udcf8': 'L'
'\ud835\udcf9': 'L'
'\ud835\udcfa': 'L'
'\ud835\udcfb': 'L'
'\ud835\udcfc': 'L'
'\ud835\udcfd': 'L'
'\ud835\udcfe': 'L'
'\ud835\udcff': 'L'
'\ud835\udd00': 'L'
'\ud835\udd01': 'L'
'\ud835\udd02': 'L'
'\ud835\udd03': 'L'
'\ud835\udd04': 'Lu'
'\ud835\udd05': 'Lu'
'\ud835\udd07': 'Lu'
'\ud835\udd08': 'Lu'
'\ud835\udd09': 'Lu'
'\ud835\udd0a': 'Lu'
'\ud835\udd0d': 'Lu'
'\ud835\udd0e': 'Lu'
'\ud835\udd0f': 'Lu'
'\ud835\udd10': 'Lu'
'\ud835\udd11': 'Lu'
'\ud835\udd12': 'Lu'
'\ud835\udd13': 'Lu'
'\ud835\udd14': 'Lu'
'\ud835\udd16': 'Lu'
'\ud835\udd17': 'Lu'
'\ud835\udd18': 'Lu'
'\ud835\udd19': 'Lu'
'\ud835\udd1a': 'Lu'
'\ud835\udd1b': 'Lu'
'\ud835\udd1c': 'Lu'
'\ud835\udd1e': 'L'
'\ud835\udd1f': 'L'
'\ud835\udd20': 'L'
'\ud835\udd21': 'L'
'\ud835\udd22': 'L'
'\ud835\udd23': 'L'
'\ud835\udd24': 'L'
'\ud835\udd25': 'L'
'\ud835\udd26': 'L'
'\ud835\udd27': 'L'
'\ud835\udd28': 'L'
'\ud835\udd29': 'L'
'\ud835\udd2a': 'L'
'\ud835\udd2b': 'L'
'\ud835\udd2c': 'L'
'\ud835\udd2d': 'L'
'\ud835\udd2e': 'L'
'\ud835\udd2f': 'L'
'\ud835\udd30': 'L'
'\ud835\udd31': 'L'
'\ud835\udd32': 'L'
'\ud835\udd33': 'L'
'\ud835\udd34': 'L'
'\ud835\udd35': 'L'
'\ud835\udd36': 'L'
'\ud835\udd37': 'L'
'\ud835\udd38': 'Lu'
'\ud835\udd39': 'Lu'
'\ud835\udd3b': 'Lu'
'\ud835\udd3c': 'Lu'
'\ud835\udd3d': 'Lu'
'\ud835\udd3e': 'Lu'
'\ud835\udd40': 'Lu'
'\ud835\udd41': 'Lu'
'\ud835\udd42': 'Lu'
'\ud835\udd43': 'Lu'
'\ud835\udd44': 'Lu'
'\ud835\udd46': 'Lu'
'\ud835\udd4a': 'Lu'
'\ud835\udd4b': 'Lu'
'\ud835\udd4c': 'Lu'
'\ud835\udd4d': 'Lu'
'\ud835\udd4e': 'Lu'
'\ud835\udd4f': 'Lu'
'\ud835\udd50': 'Lu'
'\ud835\udd52': 'L'
'\ud835\udd53': 'L'
'\ud835\udd54': 'L'
'\ud835\udd55': 'L'
'\ud835\udd56': 'L'
'\ud835\udd57': 'L'
'\ud835\udd58': 'L'
'\ud835\udd59': 'L'
'\ud835\udd5a': 'L'
'\ud835\udd5b': 'L'
'\ud835\udd5c': 'L'
'\ud835\udd5d': 'L'
'\ud835\udd5e': 'L'
'\ud835\udd5f': 'L'
'\ud835\udd60': 'L'
'\ud835\udd61': 'L'
'\ud835\udd62': 'L'
'\ud835\udd63': 'L'
'\ud835\udd64': 'L'
'\ud835\udd65': 'L'
'\ud835\udd66': 'L'
'\ud835\udd67': 'L'
'\ud835\udd68': 'L'
'\ud835\udd69': 'L'
'\ud835\udd6a': 'L'
'\ud835\udd6b': 'L'
'\ud835\udd6c': 'Lu'
'\ud835\udd6d': 'Lu'
'\ud835\udd6e': 'Lu'
'\ud835\udd6f': 'Lu'
'\ud835\udd70': 'Lu'
'\ud835\udd71': 'Lu'
'\ud835\udd72': 'Lu'
'\ud835\udd73': 'Lu'
'\ud835\udd74': 'Lu'
'\ud835\udd75': 'Lu'
'\ud835\udd76': 'Lu'
'\ud835\udd77': 'Lu'
'\ud835\udd78': 'Lu'
'\ud835\udd79': 'Lu'
'\ud835\udd7a': 'Lu'
'\ud835\udd7b': 'Lu'
'\ud835\udd7c': 'Lu'
'\ud835\udd7d': 'Lu'
'\ud835\udd7e': 'Lu'
'\ud835\udd7f': 'Lu'
'\ud835\udd80': 'Lu'
'\ud835\udd81': 'Lu'
'\ud835\udd82': 'Lu'
'\ud835\udd83': 'Lu'
'\ud835\udd84': 'Lu'
'\ud835\udd85': 'Lu'
'\ud835\udd86': 'L'
'\ud835\udd87': 'L'
'\ud835\udd88': 'L'
'\ud835\udd89': 'L'
'\ud835\udd8a': 'L'
'\ud835\udd8b': 'L'
'\ud835\udd8c': 'L'
'\ud835\udd8d': 'L'
'\ud835\udd8e': 'L'
'\ud835\udd8f': 'L'
'\ud835\udd90': 'L'
'\ud835\udd91': 'L'
'\ud835\udd92': 'L'
'\ud835\udd93': 'L'
'\ud835\udd94': 'L'
'\ud835\udd95': 'L'
'\ud835\udd96': 'L'
'\ud835\udd97': 'L'
'\ud835\udd98': 'L'
'\ud835\udd99': 'L'
'\ud835\udd9a': 'L'
'\ud835\udd9b': 'L'
'\ud835\udd9c': 'L'
'\ud835\udd9d': 'L'
'\ud835\udd9e': 'L'
'\ud835\udd9f': 'L'
'\ud835\udda0': 'Lu'
'\ud835\udda1': 'Lu'
'\ud835\udda2': 'Lu'
'\ud835\udda3': 'Lu'
'\ud835\udda4': 'Lu'
'\ud835\udda5': 'Lu'
'\ud835\udda6': 'Lu'
'\ud835\udda7': 'Lu'
'\ud835\udda8': 'Lu'
'\ud835\udda9': 'Lu'
'\ud835\uddaa': 'Lu'
'\ud835\uddab': 'Lu'
'\ud835\uddac': 'Lu'
'\ud835\uddad': 'Lu'
'\ud835\uddae': 'Lu'
'\ud835\uddaf': 'Lu'
'\ud835\uddb0': 'Lu'
'\ud835\uddb1': 'Lu'
'\ud835\uddb2': 'Lu'
'\ud835\uddb3': 'Lu'
'\ud835\uddb4': 'Lu'
'\ud835\uddb5': 'Lu'
'\ud835\uddb6': 'Lu'
'\ud835\uddb7': 'Lu'
'\ud835\uddb8': 'Lu'
'\ud835\uddb9': 'Lu'
'\ud835\uddba': 'L'
'\ud835\uddbb': 'L'
'\ud835\uddbc': 'L'
'\ud835\uddbd': 'L'
'\ud835\uddbe': 'L'
'\ud835\uddbf': 'L'
'\ud835\uddc0': 'L'
'\ud835\uddc1': 'L'
'\ud835\uddc2': 'L'
'\ud835\uddc3': 'L'
'\ud835\uddc4': 'L'
'\ud835\uddc5': 'L'
'\ud835\uddc6': 'L'
'\ud835\uddc7': 'L'
'\ud835\uddc8': 'L'
'\ud835\uddc9': 'L'
'\ud835\uddca': 'L'
'\ud835\uddcb': 'L'
'\ud835\uddcc': 'L'
'\ud835\uddcd': 'L'
'\ud835\uddce': 'L'
'\ud835\uddcf': 'L'
'\ud835\uddd0': 'L'
'\ud835\uddd1': 'L'
'\ud835\uddd2': 'L'
'\ud835\uddd3': 'L'
'\ud835\uddd4': 'Lu'
'\ud835\uddd5': 'Lu'
'\ud835\uddd6': 'Lu'
'\ud835\uddd7': 'Lu'
'\ud835\uddd8': 'Lu'
'\ud835\uddd9': 'Lu'
'\ud835\uddda': 'Lu'
'\ud835\udddb': 'Lu'
'\ud835\udddc': 'Lu'
'\ud835\udddd': 'Lu'
'\ud835\uddde': 'Lu'
'\ud835\udddf': 'Lu'
'\ud835\udde0': 'Lu'
'\ud835\udde1': 'Lu'
'\ud835\udde2': 'Lu'
'\ud835\udde3': 'Lu'
'\ud835\udde4': 'Lu'
'\ud835\udde5': 'Lu'
'\ud835\udde6': 'Lu'
'\ud835\udde7': 'Lu'
'\ud835\udde8': 'Lu'
'\ud835\udde9': 'Lu'
'\ud835\uddea': 'Lu'
'\ud835\uddeb': 'Lu'
'\ud835\uddec': 'Lu'
'\ud835\udded': 'Lu'
'\ud835\uddee': 'L'
'\ud835\uddef': 'L'
'\ud835\uddf0': 'L'
'\ud835\uddf1': 'L'
'\ud835\uddf2': 'L'
'\ud835\uddf3': 'L'
'\ud835\uddf4': 'L'
'\ud835\uddf5': 'L'
'\ud835\uddf6': 'L'
'\ud835\uddf7': 'L'
'\ud835\uddf8': 'L'
'\ud835\uddf9': 'L'
'\ud835\uddfa': 'L'
'\ud835\uddfb': 'L'
'\ud835\uddfc': 'L'
'\ud835\uddfd': 'L'
'\ud835\uddfe': 'L'
'\ud835\uddff': 'L'
'\ud835\ude00': 'L'
'\ud835\ude01': 'L'
'\ud835\ude02': 'L'
'\ud835\ude03': 'L'
'\ud835\ude04': 'L'
'\ud835\ude05': 'L'
'\ud835\ude06': 'L'
'\ud835\ude07': 'L'
'\ud835\ude08': 'Lu'
'\ud835\ude09': 'Lu'
'\ud835\ude0a': 'Lu'
'\ud835\ude0b': 'Lu'
'\ud835\ude0c': 'Lu'
'\ud835\ude0d': 'Lu'
'\ud835\ude0e': 'Lu'
'\ud835\ude0f': 'Lu'
'\ud835\ude10': 'Lu'
'\ud835\ude11': 'Lu'
'\ud835\ude12': 'Lu'
'\ud835\ude13': 'Lu'
'\ud835\ude14': 'Lu'
'\ud835\ude15': 'Lu'
'\ud835\ude16': 'Lu'
'\ud835\ude17': 'Lu'
'\ud835\ude18': 'Lu'
'\ud835\ude19': 'Lu'
'\ud835\ude1a': 'Lu'
'\ud835\ude1b': 'Lu'
'\ud835\ude1c': 'Lu'
'\ud835\ude1d': 'Lu'
'\ud835\ude1e': 'Lu'
'\ud835\ude1f': 'Lu'
'\ud835\ude20': 'Lu'
'\ud835\ude21': 'Lu'
'\ud835\ude22': 'L'
'\ud835\ude23': 'L'
'\ud835\ude24': 'L'
'\ud835\ude25': 'L'
'\ud835\ude26': 'L'
'\ud835\ude27': 'L'
'\ud835\ude28': 'L'
'\ud835\ude29': 'L'
'\ud835\ude2a': 'L'
'\ud835\ude2b': 'L'
'\ud835\ude2c': 'L'
'\ud835\ude2d': 'L'
'\ud835\ude2e': 'L'
'\ud835\ude2f': 'L'
'\ud835\ude30': 'L'
'\ud835\ude31': 'L'
'\ud835\ude32': 'L'
'\ud835\ude33': 'L'
'\ud835\ude34': 'L'
'\ud835\ude35': 'L'
'\ud835\ude36': 'L'
'\ud835\ude37': 'L'
'\ud835\ude38': 'L'
'\ud835\ude39': 'L'
'\ud835\ude3a': 'L'
'\ud835\ude3b': 'L'
'\ud835\ude3c': 'Lu'
'\ud835\ude3d': 'Lu'
'\ud835\ude3e': 'Lu'
'\ud835\ude3f': 'Lu'
'\ud835\ude40': 'Lu'
'\ud835\ude41': 'Lu'
'\ud835\ude42': 'Lu'
'\ud835\ude43': 'Lu'
'\ud835\ude44': 'Lu'
'\ud835\ude45': 'Lu'
'\ud835\ude46': 'Lu'
'\ud835\ude47': 'Lu'
'\ud835\ude48': 'Lu'
'\ud835\ude49': 'Lu'
'\ud835\ude4a': 'Lu'
'\ud835\ude4b': 'Lu'
'\ud835\ude4c': 'Lu'
'\ud835\ude4d': 'Lu'
'\ud835\ude4e': 'Lu'
'\ud835\ude4f': 'Lu'
'\ud835\ude50': 'Lu'
'\ud835\ude51': 'Lu'
'\ud835\ude52': 'Lu'
'\ud835\ude53': 'Lu'
'\ud835\ude54': 'Lu'
'\ud835\ude55': 'Lu'
'\ud835\ude56': 'L'
'\ud835\ude57': 'L'
'\ud835\ude58': 'L'
'\ud835\ude59': 'L'
'\ud835\ude5a': 'L'
'\ud835\ude5b': 'L'
'\ud835\ude5c': 'L'
'\ud835\ude5d': 'L'
'\ud835\ude5e': 'L'
'\ud835\ude5f': 'L'
'\ud835\ude60': 'L'
'\ud835\ude61': 'L'
'\ud835\ude62': 'L'
'\ud835\ude63': 'L'
'\ud835\ude64': 'L'
'\ud835\ude65': 'L'
'\ud835\ude66': 'L'
'\ud835\ude67': 'L'
'\ud835\ude68': 'L'
'\ud835\ude69': 'L'
'\ud835\ude6a': 'L'
'\ud835\ude6b': 'L'
'\ud835\ude6c': 'L'
'\ud835\ude6d': 'L'
'\ud835\ude6e': 'L'
'\ud835\ude6f': 'L'
'\ud835\ude70': 'Lu'
'\ud835\ude71': 'Lu'
'\ud835\ude72': 'Lu'
'\ud835\ude73': 'Lu'
'\ud835\ude74': 'Lu'
'\ud835\ude75': 'Lu'
'\ud835\ude76': 'Lu'
'\ud835\ude77': 'Lu'
'\ud835\ude78': 'Lu'
'\ud835\ude79': 'Lu'
'\ud835\ude7a': 'Lu'
'\ud835\ude7b': 'Lu'
'\ud835\ude7c': 'Lu'
'\ud835\ude7d': 'Lu'
'\ud835\ude7e': 'Lu'
'\ud835\ude7f': 'Lu'
'\ud835\ude80': 'Lu'
'\ud835\ude81': 'Lu'
'\ud835\ude82': 'Lu'
'\ud835\ude83': 'Lu'
'\ud835\ude84': 'Lu'
'\ud835\ude85': 'Lu'
'\ud835\ude86': 'Lu'
'\ud835\ude87': 'Lu'
'\ud835\ude88': 'Lu'
'\ud835\ude89': 'Lu'
'\ud835\ude8a': 'L'
'\ud835\ude8b': 'L'
'\ud835\ude8c': 'L'
'\ud835\ude8d': 'L'
'\ud835\ude8e': 'L'
'\ud835\ude8f': 'L'
'\ud835\ude90': 'L'
'\ud835\ude91': 'L'
'\ud835\ude92': 'L'
'\ud835\ude93': 'L'
'\ud835\ude94': 'L'
'\ud835\ude95': 'L'
'\ud835\ude96': 'L'
'\ud835\ude97': 'L'
'\ud835\ude98': 'L'
'\ud835\ude99': 'L'
'\ud835\ude9a': 'L'
'\ud835\ude9b': 'L'
'\ud835\ude9c': 'L'
'\ud835\ude9d': 'L'
'\ud835\ude9e': 'L'
'\ud835\ude9f': 'L'
'\ud835\udea0': 'L'
'\ud835\udea1': 'L'
'\ud835\udea2': 'L'
'\ud835\udea3': 'L'
'\ud835\udea4': 'L'
'\ud835\udea5': 'L'
'\ud835\udea8': 'Lu'
'\ud835\udea9': 'Lu'
'\ud835\udeaa': 'Lu'
'\ud835\udeab': 'Lu'
'\ud835\udeac': 'Lu'
'\ud835\udead': 'Lu'
'\ud835\udeae': 'Lu'
'\ud835\udeaf': 'Lu'
'\ud835\udeb0': 'Lu'
'\ud835\udeb1': 'Lu'
'\ud835\udeb2': 'Lu'
'\ud835\udeb3': 'Lu'
'\ud835\udeb4': 'Lu'
'\ud835\udeb5': 'Lu'
'\ud835\udeb6': 'Lu'
'\ud835\udeb7': 'Lu'
'\ud835\udeb8': 'Lu'
'\ud835\udeb9': 'Lu'
'\ud835\udeba': 'Lu'
'\ud835\udebb': 'Lu'
'\ud835\udebc': 'Lu'
'\ud835\udebd': 'Lu'
'\ud835\udebe': 'Lu'
'\ud835\udebf': 'Lu'
'\ud835\udec0': 'Lu'
'\ud835\udec2': 'L'
'\ud835\udec3': 'L'
'\ud835\udec4': 'L'
'\ud835\udec5': 'L'
'\ud835\udec6': 'L'
'\ud835\udec7': 'L'
'\ud835\udec8': 'L'
'\ud835\udec9': 'L'
'\ud835\udeca': 'L'
'\ud835\udecb': 'L'
'\ud835\udecc': 'L'
'\ud835\udecd': 'L'
'\ud835\udece': 'L'
'\ud835\udecf': 'L'
'\ud835\uded0': 'L'
'\ud835\uded1': 'L'
'\ud835\uded2': 'L'
'\ud835\uded3': 'L'
'\ud835\uded4': 'L'
'\ud835\uded5': 'L'
'\ud835\uded6': 'L'
'\ud835\uded7': 'L'
'\ud835\uded8': 'L'
'\ud835\uded9': 'L'
'\ud835\udeda': 'L'
'\ud835\udedc': 'L'
'\ud835\udedd': 'L'
'\ud835\udede': 'L'
'\ud835\udedf': 'L'
'\ud835\udee0': 'L'
'\ud835\udee1': 'L'
'\ud835\udee2': 'Lu'
'\ud835\udee3': 'Lu'
'\ud835\udee4': 'Lu'
'\ud835\udee5': 'Lu'
'\ud835\udee6': 'Lu'
'\ud835\udee7': 'Lu'
'\ud835\udee8': 'Lu'
'\ud835\udee9': 'Lu'
'\ud835\udeea': 'Lu'
'\ud835\udeeb': 'Lu'
'\ud835\udeec': 'Lu'
'\ud835\udeed': 'Lu'
'\ud835\udeee': 'Lu'
'\ud835\udeef': 'Lu'
'\ud835\udef0': 'Lu'
'\ud835\udef1': 'Lu'
'\ud835\udef2': 'Lu'
'\ud835\udef3': 'Lu'
'\ud835\udef4': 'Lu'
'\ud835\udef5': 'Lu'
'\ud835\udef6': 'Lu'
'\ud835\udef7': 'Lu'
'\ud835\udef8': 'Lu'
'\ud835\udef9': 'Lu'
'\ud835\udefa': 'Lu'
'\ud835\udefc': 'L'
'\ud835\udefd': 'L'
'\ud835\udefe': 'L'
'\ud835\udeff': 'L'
'\ud835\udf00': 'L'
'\ud835\udf01': 'L'
'\ud835\udf02': 'L'
'\ud835\udf03': 'L'
'\ud835\udf04': 'L'
'\ud835\udf05': 'L'
'\ud835\udf06': 'L'
'\ud835\udf07': 'L'
'\ud835\udf08': 'L'
'\ud835\udf09': 'L'
'\ud835\udf0a': 'L'
'\ud835\udf0b': 'L'
'\ud835\udf0c': 'L'
'\ud835\udf0d': 'L'
'\ud835\udf0e': 'L'
'\ud835\udf0f': 'L'
'\ud835\udf10': 'L'
'\ud835\udf11': 'L'
'\ud835\udf12': 'L'
'\ud835\udf13': 'L'
'\ud835\udf14': 'L'
'\ud835\udf16': 'L'
'\ud835\udf17': 'L'
'\ud835\udf18': 'L'
'\ud835\udf19': 'L'
'\ud835\udf1a': 'L'
'\ud835\udf1b': 'L'
'\ud835\udf1c': 'Lu'
'\ud835\udf1d': 'Lu'
'\ud835\udf1e': 'Lu'
'\ud835\udf1f': 'Lu'
'\ud835\udf20': 'Lu'
'\ud835\udf21': 'Lu'
'\ud835\udf22': 'Lu'
'\ud835\udf23': 'Lu'
'\ud835\udf24': 'Lu'
'\ud835\udf25': 'Lu'
'\ud835\udf26': 'Lu'
'\ud835\udf27': 'Lu'
'\ud835\udf28': 'Lu'
'\ud835\udf29': 'Lu'
'\ud835\udf2a': 'Lu'
'\ud835\udf2b': 'Lu'
'\ud835\udf2c': 'Lu'
'\ud835\udf2d': 'Lu'
'\ud835\udf2e': 'Lu'
'\ud835\udf2f': 'Lu'
'\ud835\udf30': 'Lu'
'\ud835\udf31': 'Lu'
'\ud835\udf32': 'Lu'
'\ud835\udf33': 'Lu'
'\ud835\udf34': 'Lu'
'\ud835\udf36': 'L'
'\ud835\udf37': 'L'
'\ud835\udf38': 'L'
'\ud835\udf39': 'L'
'\ud835\udf3a': 'L'
'\ud835\udf3b': 'L'
'\ud835\udf3c': 'L'
'\ud835\udf3d': 'L'
'\ud835\udf3e': 'L'
'\ud835\udf3f': 'L'
'\ud835\udf40': 'L'
'\ud835\udf41': 'L'
'\ud835\udf42': 'L'
'\ud835\udf43': 'L'
'\ud835\udf44': 'L'
'\ud835\udf45': 'L'
'\ud835\udf46': 'L'
'\ud835\udf47': 'L'
'\ud835\udf48': 'L'
'\ud835\udf49': 'L'
'\ud835\udf4a': 'L'
'\ud835\udf4b': 'L'
'\ud835\udf4c': 'L'
'\ud835\udf4d': 'L'
'\ud835\udf4e': 'L'
'\ud835\udf50': 'L'
'\ud835\udf51': 'L'
'\ud835\udf52': 'L'
'\ud835\udf53': 'L'
'\ud835\udf54': 'L'
'\ud835\udf55': 'L'
'\ud835\udf56': 'Lu'
'\ud835\udf57': 'Lu'
'\ud835\udf58': 'Lu'
'\ud835\udf59': 'Lu'
'\ud835\udf5a': 'Lu'
'\ud835\udf5b': 'Lu'
'\ud835\udf5c': 'Lu'
'\ud835\udf5d': 'Lu'
'\ud835\udf5e': 'Lu'
'\ud835\udf5f': 'Lu'
'\ud835\udf60': 'Lu'
'\ud835\udf61': 'Lu'
'\ud835\udf62': 'Lu'
'\ud835\udf63': 'Lu'
'\ud835\udf64': 'Lu'
'\ud835\udf65': 'Lu'
'\ud835\udf66': 'Lu'
'\ud835\udf67': 'Lu'
'\ud835\udf68': 'Lu'
'\ud835\udf69': 'Lu'
'\ud835\udf6a': 'Lu'
'\ud835\udf6b': 'Lu'
'\ud835\udf6c': 'Lu'
'\ud835\udf6d': 'Lu'
'\ud835\udf6e': 'Lu'
'\ud835\udf70': 'L'
'\ud835\udf71': 'L'
'\ud835\udf72': 'L'
'\ud835\udf73': 'L'
'\ud835\udf74': 'L'
'\ud835\udf75': 'L'
'\ud835\udf76': 'L'
'\ud835\udf77': 'L'
'\ud835\udf78': 'L'
'\ud835\udf79': 'L'
'\ud835\udf7a': 'L'
'\ud835\udf7b': 'L'
'\ud835\udf7c': 'L'
'\ud835\udf7d': 'L'
'\ud835\udf7e': 'L'
'\ud835\udf7f': 'L'
'\ud835\udf80': 'L'
'\ud835\udf81': 'L'
'\ud835\udf82': 'L'
'\ud835\udf83': 'L'
'\ud835\udf84': 'L'
'\ud835\udf85': 'L'
'\ud835\udf86': 'L'
'\ud835\udf87': 'L'
'\ud835\udf88': 'L'
'\ud835\udf8a': 'L'
'\ud835\udf8b': 'L'
'\ud835\udf8c': 'L'
'\ud835\udf8d': 'L'
'\ud835\udf8e': 'L'
'\ud835\udf8f': 'L'
'\ud835\udf90': 'Lu'
'\ud835\udf91': 'Lu'
'\ud835\udf92': 'Lu'
'\ud835\udf93': 'Lu'
'\ud835\udf94': 'Lu'
'\ud835\udf95': 'Lu'
'\ud835\udf96': 'Lu'
'\ud835\udf97': 'Lu'
'\ud835\udf98': 'Lu'
'\ud835\udf99': 'Lu'
'\ud835\udf9a': 'Lu'
'\ud835\udf9b': 'Lu'
'\ud835\udf9c': 'Lu'
'\ud835\udf9d': 'Lu'
'\ud835\udf9e': 'Lu'
'\ud835\udf9f': 'Lu'
'\ud835\udfa0': 'Lu'
'\ud835\udfa1': 'Lu'
'\ud835\udfa2': 'Lu'
'\ud835\udfa3': 'Lu'
'\ud835\udfa4': 'Lu'
'\ud835\udfa5': 'Lu'
'\ud835\udfa6': 'Lu'
'\ud835\udfa7': 'Lu'
'\ud835\udfa8': 'Lu'
'\ud835\udfaa': 'L'
'\ud835\udfab': 'L'
'\ud835\udfac': 'L'
'\ud835\udfad': 'L'
'\ud835\udfae': 'L'
'\ud835\udfaf': 'L'
'\ud835\udfb0': 'L'
'\ud835\udfb1': 'L'
'\ud835\udfb2': 'L'
'\ud835\udfb3': 'L'
'\ud835\udfb4': 'L'
'\ud835\udfb5': 'L'
'\ud835\udfb6': 'L'
'\ud835\udfb7': 'L'
'\ud835\udfb8': 'L'
'\ud835\udfb9': 'L'
'\ud835\udfba': 'L'
'\ud835\udfbb': 'L'
'\ud835\udfbc': 'L'
'\ud835\udfbd': 'L'
'\ud835\udfbe': 'L'
'\ud835\udfbf': 'L'
'\ud835\udfc0': 'L'
'\ud835\udfc1': 'L'
'\ud835\udfc2': 'L'
'\ud835\udfc4': 'L'
'\ud835\udfc5': 'L'
'\ud835\udfc6': 'L'
'\ud835\udfc7': 'L'
'\ud835\udfc8': 'L'
'\ud835\udfc9': 'L'
'\ud835\udfca': 'Lu'
'\ud835\udfcb': 'L'
'\ud835\udfce': 'N'
'\ud835\udfcf': 'N'
'\ud835\udfd0': 'N'
'\ud835\udfd1': 'N'
'\ud835\udfd2': 'N'
'\ud835\udfd3': 'N'
'\ud835\udfd4': 'N'
'\ud835\udfd5': 'N'
'\ud835\udfd6': 'N'
'\ud835\udfd7': 'N'
'\ud835\udfd8': 'N'
'\ud835\udfd9': 'N'
'\ud835\udfda': 'N'
'\ud835\udfdb': 'N'
'\ud835\udfdc': 'N'
'\ud835\udfdd': 'N'
'\ud835\udfde': 'N'
'\ud835\udfdf': 'N'
'\ud835\udfe0': 'N'
'\ud835\udfe1': 'N'
'\ud835\udfe2': 'N'
'\ud835\udfe3': 'N'
'\ud835\udfe4': 'N'
'\ud835\udfe5': 'N'
'\ud835\udfe6': 'N'
'\ud835\udfe7': 'N'
'\ud835\udfe8': 'N'
'\ud835\udfe9': 'N'
'\ud835\udfea': 'N'
'\ud835\udfeb': 'N'
'\ud835\udfec': 'N'
'\ud835\udfed': 'N'
'\ud835\udfee': 'N'
'\ud835\udfef': 'N'
'\ud835\udff0': 'N'
'\ud835\udff1': 'N'
'\ud835\udff2': 'N'
'\ud835\udff3': 'N'
'\ud835\udff4': 'N'
'\ud835\udff5': 'N'
'\ud835\udff6': 'N'
'\ud835\udff7': 'N'
'\ud835\udff8': 'N'
'\ud835\udff9': 'N'
'\ud835\udffa': 'N'
'\ud835\udffb': 'N'
'\ud835\udffc': 'N'
'\ud835\udffd': 'N'
'\ud835\udffe': 'N'
'\ud835\udfff': 'N'
'\ud83a\udc00': 'L'
'\ud83a\udc01': 'L'
'\ud83a\udc02': 'L'
'\ud83a\udc03': 'L'
'\ud83a\udc04': 'L'
'\ud83a\udc05': 'L'
'\ud83a\udc06': 'L'
'\ud83a\udc07': 'L'
'\ud83a\udc08': 'L'
'\ud83a\udc09': 'L'
'\ud83a\udc0a': 'L'
'\ud83a\udc0b': 'L'
'\ud83a\udc0c': 'L'
'\ud83a\udc0d': 'L'
'\ud83a\udc0e': 'L'
'\ud83a\udc0f': 'L'
'\ud83a\udc10': 'L'
'\ud83a\udc11': 'L'
'\ud83a\udc12': 'L'
'\ud83a\udc13': 'L'
'\ud83a\udc14': 'L'
'\ud83a\udc15': 'L'
'\ud83a\udc16': 'L'
'\ud83a\udc17': 'L'
'\ud83a\udc18': 'L'
'\ud83a\udc19': 'L'
'\ud83a\udc1a': 'L'
'\ud83a\udc1b': 'L'
'\ud83a\udc1c': 'L'
'\ud83a\udc1d': 'L'
'\ud83a\udc1e': 'L'
'\ud83a\udc1f': 'L'
'\ud83a\udc20': 'L'
'\ud83a\udc21': 'L'
'\ud83a\udc22': 'L'
'\ud83a\udc23': 'L'
'\ud83a\udc24': 'L'
'\ud83a\udc25': 'L'
'\ud83a\udc26': 'L'
'\ud83a\udc27': 'L'
'\ud83a\udc28': 'L'
'\ud83a\udc29': 'L'
'\ud83a\udc2a': 'L'
'\ud83a\udc2b': 'L'
'\ud83a\udc2c': 'L'
'\ud83a\udc2d': 'L'
'\ud83a\udc2e': 'L'
'\ud83a\udc2f': 'L'
'\ud83a\udc30': 'L'
'\ud83a\udc31': 'L'
'\ud83a\udc32': 'L'
'\ud83a\udc33': 'L'
'\ud83a\udc34': 'L'
'\ud83a\udc35': 'L'
'\ud83a\udc36': 'L'
'\ud83a\udc37': 'L'
'\ud83a\udc38': 'L'
'\ud83a\udc39': 'L'
'\ud83a\udc3a': 'L'
'\ud83a\udc3b': 'L'
'\ud83a\udc3c': 'L'
'\ud83a\udc3d': 'L'
'\ud83a\udc3e': 'L'
'\ud83a\udc3f': 'L'
'\ud83a\udc40': 'L'
'\ud83a\udc41': 'L'
'\ud83a\udc42': 'L'
'\ud83a\udc43': 'L'
'\ud83a\udc44': 'L'
'\ud83a\udc45': 'L'
'\ud83a\udc46': 'L'
'\ud83a\udc47': 'L'
'\ud83a\udc48': 'L'
'\ud83a\udc49': 'L'
'\ud83a\udc4a': 'L'
'\ud83a\udc4b': 'L'
'\ud83a\udc4c': 'L'
'\ud83a\udc4d': 'L'
'\ud83a\udc4e': 'L'
'\ud83a\udc4f': 'L'
'\ud83a\udc50': 'L'
'\ud83a\udc51': 'L'
'\ud83a\udc52': 'L'
'\ud83a\udc53': 'L'
'\ud83a\udc54': 'L'
'\ud83a\udc55': 'L'
'\ud83a\udc56': 'L'
'\ud83a\udc57': 'L'
'\ud83a\udc58': 'L'
'\ud83a\udc59': 'L'
'\ud83a\udc5a': 'L'
'\ud83a\udc5b': 'L'
'\ud83a\udc5c': 'L'
'\ud83a\udc5d': 'L'
'\ud83a\udc5e': 'L'
'\ud83a\udc5f': 'L'
'\ud83a\udc60': 'L'
'\ud83a\udc61': 'L'
'\ud83a\udc62': 'L'
'\ud83a\udc63': 'L'
'\ud83a\udc64': 'L'
'\ud83a\udc65': 'L'
'\ud83a\udc66': 'L'
'\ud83a\udc67': 'L'
'\ud83a\udc68': 'L'
'\ud83a\udc69': 'L'
'\ud83a\udc6a': 'L'
'\ud83a\udc6b': 'L'
'\ud83a\udc6c': 'L'
'\ud83a\udc6d': 'L'
'\ud83a\udc6e': 'L'
'\ud83a\udc6f': 'L'
'\ud83a\udc70': 'L'
'\ud83a\udc71': 'L'
'\ud83a\udc72': 'L'
'\ud83a\udc73': 'L'
'\ud83a\udc74': 'L'
'\ud83a\udc75': 'L'
'\ud83a\udc76': 'L'
'\ud83a\udc77': 'L'
'\ud83a\udc78': 'L'
'\ud83a\udc79': 'L'
'\ud83a\udc7a': 'L'
'\ud83a\udc7b': 'L'
'\ud83a\udc7c': 'L'
'\ud83a\udc7d': 'L'
'\ud83a\udc7e': 'L'
'\ud83a\udc7f': 'L'
'\ud83a\udc80': 'L'
'\ud83a\udc81': 'L'
'\ud83a\udc82': 'L'
'\ud83a\udc83': 'L'
'\ud83a\udc84': 'L'
'\ud83a\udc85': 'L'
'\ud83a\udc86': 'L'
'\ud83a\udc87': 'L'
'\ud83a\udc88': 'L'
'\ud83a\udc89': 'L'
'\ud83a\udc8a': 'L'
'\ud83a\udc8b': 'L'
'\ud83a\udc8c': 'L'
'\ud83a\udc8d': 'L'
'\ud83a\udc8e': 'L'
'\ud83a\udc8f': 'L'
'\ud83a\udc90': 'L'
'\ud83a\udc91': 'L'
'\ud83a\udc92': 'L'
'\ud83a\udc93': 'L'
'\ud83a\udc94': 'L'
'\ud83a\udc95': 'L'
'\ud83a\udc96': 'L'
'\ud83a\udc97': 'L'
'\ud83a\udc98': 'L'
'\ud83a\udc99': 'L'
'\ud83a\udc9a': 'L'
'\ud83a\udc9b': 'L'
'\ud83a\udc9c': 'L'
'\ud83a\udc9d': 'L'
'\ud83a\udc9e': 'L'
'\ud83a\udc9f': 'L'
'\ud83a\udca0': 'L'
'\ud83a\udca1': 'L'
'\ud83a\udca2': 'L'
'\ud83a\udca3': 'L'
'\ud83a\udca4': 'L'
'\ud83a\udca5': 'L'
'\ud83a\udca6': 'L'
'\ud83a\udca7': 'L'
'\ud83a\udca8': 'L'
'\ud83a\udca9': 'L'
'\ud83a\udcaa': 'L'
'\ud83a\udcab': 'L'
'\ud83a\udcac': 'L'
'\ud83a\udcad': 'L'
'\ud83a\udcae': 'L'
'\ud83a\udcaf': 'L'
'\ud83a\udcb0': 'L'
'\ud83a\udcb1': 'L'
'\ud83a\udcb2': 'L'
'\ud83a\udcb3': 'L'
'\ud83a\udcb4': 'L'
'\ud83a\udcb5': 'L'
'\ud83a\udcb6': 'L'
'\ud83a\udcb7': 'L'
'\ud83a\udcb8': 'L'
'\ud83a\udcb9': 'L'
'\ud83a\udcba': 'L'
'\ud83a\udcbb': 'L'
'\ud83a\udcbc': 'L'
'\ud83a\udcbd': 'L'
'\ud83a\udcbe': 'L'
'\ud83a\udcbf': 'L'
'\ud83a\udcc0': 'L'
'\ud83a\udcc1': 'L'
'\ud83a\udcc2': 'L'
'\ud83a\udcc3': 'L'
'\ud83a\udcc4': 'L'
'\ud83a\udcc7': 'N'
'\ud83a\udcc8': 'N'
'\ud83a\udcc9': 'N'
'\ud83a\udcca': 'N'
'\ud83a\udccb': 'N'
'\ud83a\udccc': 'N'
'\ud83a\udccd': 'N'
'\ud83a\udcce': 'N'
'\ud83a\udccf': 'N'
'\ud83b\ude00': 'L'
'\ud83b\ude01': 'L'
'\ud83b\ude02': 'L'
'\ud83b\ude03': 'L'
'\ud83b\ude05': 'L'
'\ud83b\ude06': 'L'
'\ud83b\ude07': 'L'
'\ud83b\ude08': 'L'
'\ud83b\ude09': 'L'
'\ud83b\ude0a': 'L'
'\ud83b\ude0b': 'L'
'\ud83b\ude0c': 'L'
'\ud83b\ude0d': 'L'
'\ud83b\ude0e': 'L'
'\ud83b\ude0f': 'L'
'\ud83b\ude10': 'L'
'\ud83b\ude11': 'L'
'\ud83b\ude12': 'L'
'\ud83b\ude13': 'L'
'\ud83b\ude14': 'L'
'\ud83b\ude15': 'L'
'\ud83b\ude16': 'L'
'\ud83b\ude17': 'L'
'\ud83b\ude18': 'L'
'\ud83b\ude19': 'L'
'\ud83b\ude1a': 'L'
'\ud83b\ude1b': 'L'
'\ud83b\ude1c': 'L'
'\ud83b\ude1d': 'L'
'\ud83b\ude1e': 'L'
'\ud83b\ude1f': 'L'
'\ud83b\ude21': 'L'
'\ud83b\ude22': 'L'
'\ud83b\ude24': 'L'
'\ud83b\ude27': 'L'
'\ud83b\ude29': 'L'
'\ud83b\ude2a': 'L'
'\ud83b\ude2b': 'L'
'\ud83b\ude2c': 'L'
'\ud83b\ude2d': 'L'
'\ud83b\ude2e': 'L'
'\ud83b\ude2f': 'L'
'\ud83b\ude30': 'L'
'\ud83b\ude31': 'L'
'\ud83b\ude32': 'L'
'\ud83b\ude34': 'L'
'\ud83b\ude35': 'L'
'\ud83b\ude36': 'L'
'\ud83b\ude37': 'L'
'\ud83b\ude39': 'L'
'\ud83b\ude3b': 'L'
'\ud83b\ude42': 'L'
'\ud83b\ude47': 'L'
'\ud83b\ude49': 'L'
'\ud83b\ude4b': 'L'
'\ud83b\ude4d': 'L'
'\ud83b\ude4e': 'L'
'\ud83b\ude4f': 'L'
'\ud83b\ude51': 'L'
'\ud83b\ude52': 'L'
'\ud83b\ude54': 'L'
'\ud83b\ude57': 'L'
'\ud83b\ude59': 'L'
'\ud83b\ude5b': 'L'
'\ud83b\ude5d': 'L'
'\ud83b\ude5f': 'L'
'\ud83b\ude61': 'L'
'\ud83b\ude62': 'L'
'\ud83b\ude64': 'L'
'\ud83b\ude67': 'L'
'\ud83b\ude68': 'L'
'\ud83b\ude69': 'L'
'\ud83b\ude6a': 'L'
'\ud83b\ude6c': 'L'
'\ud83b\ude6d': 'L'
'\ud83b\ude6e': 'L'
'\ud83b\ude6f': 'L'
'\ud83b\ude70': 'L'
'\ud83b\ude71': 'L'
'\ud83b\ude72': 'L'
'\ud83b\ude74': 'L'
'\ud83b\ude75': 'L'
'\ud83b\ude76': 'L'
'\ud83b\ude77': 'L'
'\ud83b\ude79': 'L'
'\ud83b\ude7a': 'L'
'\ud83b\ude7b': 'L'
'\ud83b\ude7c': 'L'
'\ud83b\ude7e': 'L'
'\ud83b\ude80': 'L'
'\ud83b\ude81': 'L'
'\ud83b\ude82': 'L'
'\ud83b\ude83': 'L'
'\ud83b\ude84': 'L'
'\ud83b\ude85': 'L'
'\ud83b\ude86': 'L'
'\ud83b\ude87': 'L'
'\ud83b\ude88': 'L'
'\ud83b\ude89': 'L'
'\ud83b\ude8b': 'L'
'\ud83b\ude8c': 'L'
'\ud83b\ude8d': 'L'
'\ud83b\ude8e': 'L'
'\ud83b\ude8f': 'L'
'\ud83b\ude90': 'L'
'\ud83b\ude91': 'L'
'\ud83b\ude92': 'L'
'\ud83b\ude93': 'L'
'\ud83b\ude94': 'L'
'\ud83b\ude95': 'L'
'\ud83b\ude96': 'L'
'\ud83b\ude97': 'L'
'\ud83b\ude98': 'L'
'\ud83b\ude99': 'L'
'\ud83b\ude9a': 'L'
'\ud83b\ude9b': 'L'
'\ud83b\udea1': 'L'
'\ud83b\udea2': 'L'
'\ud83b\udea3': 'L'
'\ud83b\udea5': 'L'
'\ud83b\udea6': 'L'
'\ud83b\udea7': 'L'
'\ud83b\udea8': 'L'
'\ud83b\udea9': 'L'
'\ud83b\udeab': 'L'
'\ud83b\udeac': 'L'
'\ud83b\udead': 'L'
'\ud83b\udeae': 'L'
'\ud83b\udeaf': 'L'
'\ud83b\udeb0': 'L'
'\ud83b\udeb1': 'L'
'\ud83b\udeb2': 'L'
'\ud83b\udeb3': 'L'
'\ud83b\udeb4': 'L'
'\ud83b\udeb5': 'L'
'\ud83b\udeb6': 'L'
'\ud83b\udeb7': 'L'
'\ud83b\udeb8': 'L'
'\ud83b\udeb9': 'L'
'\ud83b\udeba': 'L'
'\ud83b\udebb': 'L'
'\ud83c\udd00': 'N'
'\ud83c\udd01': 'N'
'\ud83c\udd02': 'N'
'\ud83c\udd03': 'N'
'\ud83c\udd04': 'N'
'\ud83c\udd05': 'N'
'\ud83c\udd06': 'N'
'\ud83c\udd07': 'N'
'\ud83c\udd08': 'N'
'\ud83c\udd09': 'N'
'\ud83c\udd0a': 'N'
'\ud83c\udd0b': 'N'
'\ud83c\udd0c': 'N'
'\ud87e\udc00': 'L'
'\ud87e\udc01': 'L'
'\ud87e\udc02': 'L'
'\ud87e\udc03': 'L'
'\ud87e\udc04': 'L'
'\ud87e\udc05': 'L'
'\ud87e\udc06': 'L'
'\ud87e\udc07': 'L'
'\ud87e\udc08': 'L'
'\ud87e\udc09': 'L'
'\ud87e\udc0a': 'L'
'\ud87e\udc0b': 'L'
'\ud87e\udc0c': 'L'
'\ud87e\udc0d': 'L'
'\ud87e\udc0e': 'L'
'\ud87e\udc0f': 'L'
'\ud87e\udc10': 'L'
'\ud87e\udc11': 'L'
'\ud87e\udc12': 'L'
'\ud87e\udc13': 'L'
'\ud87e\udc14': 'L'
'\ud87e\udc15': 'L'
'\ud87e\udc16': 'L'
'\ud87e\udc17': 'L'
'\ud87e\udc18': 'L'
'\ud87e\udc19': 'L'
'\ud87e\udc1a': 'L'
'\ud87e\udc1b': 'L'
'\ud87e\udc1c': 'L'
'\ud87e\udc1d': 'L'
'\ud87e\udc1e': 'L'
'\ud87e\udc1f': 'L'
'\ud87e\udc20': 'L'
'\ud87e\udc21': 'L'
'\ud87e\udc22': 'L'
'\ud87e\udc23': 'L'
'\ud87e\udc24': 'L'
'\ud87e\udc25': 'L'
'\ud87e\udc26': 'L'
'\ud87e\udc27': 'L'
'\ud87e\udc28': 'L'
'\ud87e\udc29': 'L'
'\ud87e\udc2a': 'L'
'\ud87e\udc2b': 'L'
'\ud87e\udc2c': 'L'
'\ud87e\udc2d': 'L'
'\ud87e\udc2e': 'L'
'\ud87e\udc2f': 'L'
'\ud87e\udc30': 'L'
'\ud87e\udc31': 'L'
'\ud87e\udc32': 'L'
'\ud87e\udc33': 'L'
'\ud87e\udc34': 'L'
'\ud87e\udc35': 'L'
'\ud87e\udc36': 'L'
'\ud87e\udc37': 'L'
'\ud87e\udc38': 'L'
'\ud87e\udc39': 'L'
'\ud87e\udc3a': 'L'
'\ud87e\udc3b': 'L'
'\ud87e\udc3c': 'L'
'\ud87e\udc3d': 'L'
'\ud87e\udc3e': 'L'
'\ud87e\udc3f': 'L'
'\ud87e\udc40': 'L'
'\ud87e\udc41': 'L'
'\ud87e\udc42': 'L'
'\ud87e\udc43': 'L'
'\ud87e\udc44': 'L'
'\ud87e\udc45': 'L'
'\ud87e\udc46': 'L'
'\ud87e\udc47': 'L'
'\ud87e\udc48': 'L'
'\ud87e\udc49': 'L'
'\ud87e\udc4a': 'L'
'\ud87e\udc4b': 'L'
'\ud87e\udc4c': 'L'
'\ud87e\udc4d': 'L'
'\ud87e\udc4e': 'L'
'\ud87e\udc4f': 'L'
'\ud87e\udc50': 'L'
'\ud87e\udc51': 'L'
'\ud87e\udc52': 'L'
'\ud87e\udc53': 'L'
'\ud87e\udc54': 'L'
'\ud87e\udc55': 'L'
'\ud87e\udc56': 'L'
'\ud87e\udc57': 'L'
'\ud87e\udc58': 'L'
'\ud87e\udc59': 'L'
'\ud87e\udc5a': 'L'
'\ud87e\udc5b': 'L'
'\ud87e\udc5c': 'L'
'\ud87e\udc5d': 'L'
'\ud87e\udc5e': 'L'
'\ud87e\udc5f': 'L'
'\ud87e\udc60': 'L'
'\ud87e\udc61': 'L'
'\ud87e\udc62': 'L'
'\ud87e\udc63': 'L'
'\ud87e\udc64': 'L'
'\ud87e\udc65': 'L'
'\ud87e\udc66': 'L'
'\ud87e\udc67': 'L'
'\ud87e\udc68': 'L'
'\ud87e\udc69': 'L'
'\ud87e\udc6a': 'L'
'\ud87e\udc6b': 'L'
'\ud87e\udc6c': 'L'
'\ud87e\udc6d': 'L'
'\ud87e\udc6e': 'L'
'\ud87e\udc6f': 'L'
'\ud87e\udc70': 'L'
'\ud87e\udc71': 'L'
'\ud87e\udc72': 'L'
'\ud87e\udc73': 'L'
'\ud87e\udc74': 'L'
'\ud87e\udc75': 'L'
'\ud87e\udc76': 'L'
'\ud87e\udc77': 'L'
'\ud87e\udc78': 'L'
'\ud87e\udc79': 'L'
'\ud87e\udc7a': 'L'
'\ud87e\udc7b': 'L'
'\ud87e\udc7c': 'L'
'\ud87e\udc7d': 'L'
'\ud87e\udc7e': 'L'
'\ud87e\udc7f': 'L'
'\ud87e\udc80': 'L'
'\ud87e\udc81': 'L'
'\ud87e\udc82': 'L'
'\ud87e\udc83': 'L'
'\ud87e\udc84': 'L'
'\ud87e\udc85': 'L'
'\ud87e\udc86': 'L'
'\ud87e\udc87': 'L'
'\ud87e\udc88': 'L'
'\ud87e\udc89': 'L'
'\ud87e\udc8a': 'L'
'\ud87e\udc8b': 'L'
'\ud87e\udc8c': 'L'
'\ud87e\udc8d': 'L'
'\ud87e\udc8e': 'L'
'\ud87e\udc8f': 'L'
'\ud87e\udc90': 'L'
'\ud87e\udc91': 'L'
'\ud87e\udc92': 'L'
'\ud87e\udc93': 'L'
'\ud87e\udc94': 'L'
'\ud87e\udc95': 'L'
'\ud87e\udc96': 'L'
'\ud87e\udc97': 'L'
'\ud87e\udc98': 'L'
'\ud87e\udc99': 'L'
'\ud87e\udc9a': 'L'
'\ud87e\udc9b': 'L'
'\ud87e\udc9c': 'L'
'\ud87e\udc9d': 'L'
'\ud87e\udc9e': 'L'
'\ud87e\udc9f': 'L'
'\ud87e\udca0': 'L'
'\ud87e\udca1': 'L'
'\ud87e\udca2': 'L'
'\ud87e\udca3': 'L'
'\ud87e\udca4': 'L'
'\ud87e\udca5': 'L'
'\ud87e\udca6': 'L'
'\ud87e\udca7': 'L'
'\ud87e\udca8': 'L'
'\ud87e\udca9': 'L'
'\ud87e\udcaa': 'L'
'\ud87e\udcab': 'L'
'\ud87e\udcac': 'L'
'\ud87e\udcad': 'L'
'\ud87e\udcae': 'L'
'\ud87e\udcaf': 'L'
'\ud87e\udcb0': 'L'
'\ud87e\udcb1': 'L'
'\ud87e\udcb2': 'L'
'\ud87e\udcb3': 'L'
'\ud87e\udcb4': 'L'
'\ud87e\udcb5': 'L'
'\ud87e\udcb6': 'L'
'\ud87e\udcb7': 'L'
'\ud87e\udcb8': 'L'
'\ud87e\udcb9': 'L'
'\ud87e\udcba': 'L'
'\ud87e\udcbb': 'L'
'\ud87e\udcbc': 'L'
'\ud87e\udcbd': 'L'
'\ud87e\udcbe': 'L'
'\ud87e\udcbf': 'L'
'\ud87e\udcc0': 'L'
'\ud87e\udcc1': 'L'
'\ud87e\udcc2': 'L'
'\ud87e\udcc3': 'L'
'\ud87e\udcc4': 'L'
'\ud87e\udcc5': 'L'
'\ud87e\udcc6': 'L'
'\ud87e\udcc7': 'L'
'\ud87e\udcc8': 'L'
'\ud87e\udcc9': 'L'
'\ud87e\udcca': 'L'
'\ud87e\udccb': 'L'
'\ud87e\udccc': 'L'
'\ud87e\udccd': 'L'
'\ud87e\udcce': 'L'
'\ud87e\udccf': 'L'
'\ud87e\udcd0': 'L'
'\ud87e\udcd1': 'L'
'\ud87e\udcd2': 'L'
'\ud87e\udcd3': 'L'
'\ud87e\udcd4': 'L'
'\ud87e\udcd5': 'L'
'\ud87e\udcd6': 'L'
'\ud87e\udcd7': 'L'
'\ud87e\udcd8': 'L'
'\ud87e\udcd9': 'L'
'\ud87e\udcda': 'L'
'\ud87e\udcdb': 'L'
'\ud87e\udcdc': 'L'
'\ud87e\udcdd': 'L'
'\ud87e\udcde': 'L'
'\ud87e\udcdf': 'L'
'\ud87e\udce0': 'L'
'\ud87e\udce1': 'L'
'\ud87e\udce2': 'L'
'\ud87e\udce3': 'L'
'\ud87e\udce4': 'L'
'\ud87e\udce5': 'L'
'\ud87e\udce6': 'L'
'\ud87e\udce7': 'L'
'\ud87e\udce8': 'L'
'\ud87e\udce9': 'L'
'\ud87e\udcea': 'L'
'\ud87e\udceb': 'L'
'\ud87e\udcec': 'L'
'\ud87e\udced': 'L'
'\ud87e\udcee': 'L'
'\ud87e\udcef': 'L'
'\ud87e\udcf0': 'L'
'\ud87e\udcf1': 'L'
'\ud87e\udcf2': 'L'
'\ud87e\udcf3': 'L'
'\ud87e\udcf4': 'L'
'\ud87e\udcf5': 'L'
'\ud87e\udcf6': 'L'
'\ud87e\udcf7': 'L'
'\ud87e\udcf8': 'L'
'\ud87e\udcf9': 'L'
'\ud87e\udcfa': 'L'
'\ud87e\udcfb': 'L'
'\ud87e\udcfc': 'L'
'\ud87e\udcfd': 'L'
'\ud87e\udcfe': 'L'
'\ud87e\udcff': 'L'
'\ud87e\udd00': 'L'
'\ud87e\udd01': 'L'
'\ud87e\udd02': 'L'
'\ud87e\udd03': 'L'
'\ud87e\udd04': 'L'
'\ud87e\udd05': 'L'
'\ud87e\udd06': 'L'
'\ud87e\udd07': 'L'
'\ud87e\udd08': 'L'
'\ud87e\udd09': 'L'
'\ud87e\udd0a': 'L'
'\ud87e\udd0b': 'L'
'\ud87e\udd0c': 'L'
'\ud87e\udd0d': 'L'
'\ud87e\udd0e': 'L'
'\ud87e\udd0f': 'L'
'\ud87e\udd10': 'L'
'\ud87e\udd11': 'L'
'\ud87e\udd12': 'L'
'\ud87e\udd13': 'L'
'\ud87e\udd14': 'L'
'\ud87e\udd15': 'L'
'\ud87e\udd16': 'L'
'\ud87e\udd17': 'L'
'\ud87e\udd18': 'L'
'\ud87e\udd19': 'L'
'\ud87e\udd1a': 'L'
'\ud87e\udd1b': 'L'
'\ud87e\udd1c': 'L'
'\ud87e\udd1d': 'L'
'\ud87e\udd1e': 'L'
'\ud87e\udd1f': 'L'
'\ud87e\udd20': 'L'
'\ud87e\udd21': 'L'
'\ud87e\udd22': 'L'
'\ud87e\udd23': 'L'
'\ud87e\udd24': 'L'
'\ud87e\udd25': 'L'
'\ud87e\udd26': 'L'
'\ud87e\udd27': 'L'
'\ud87e\udd28': 'L'
'\ud87e\udd29': 'L'
'\ud87e\udd2a': 'L'
'\ud87e\udd2b': 'L'
'\ud87e\udd2c': 'L'
'\ud87e\udd2d': 'L'
'\ud87e\udd2e': 'L'
'\ud87e\udd2f': 'L'
'\ud87e\udd30': 'L'
'\ud87e\udd31': 'L'
'\ud87e\udd32': 'L'
'\ud87e\udd33': 'L'
'\ud87e\udd34': 'L'
'\ud87e\udd35': 'L'
'\ud87e\udd36': 'L'
'\ud87e\udd37': 'L'
'\ud87e\udd38': 'L'
'\ud87e\udd39': 'L'
'\ud87e\udd3a': 'L'
'\ud87e\udd3b': 'L'
'\ud87e\udd3c': 'L'
'\ud87e\udd3d': 'L'
'\ud87e\udd3e': 'L'
'\ud87e\udd3f': 'L'
'\ud87e\udd40': 'L'
'\ud87e\udd41': 'L'
'\ud87e\udd42': 'L'
'\ud87e\udd43': 'L'
'\ud87e\udd44': 'L'
'\ud87e\udd45': 'L'
'\ud87e\udd46': 'L'
'\ud87e\udd47': 'L'
'\ud87e\udd48': 'L'
'\ud87e\udd49': 'L'
'\ud87e\udd4a': 'L'
'\ud87e\udd4b': 'L'
'\ud87e\udd4c': 'L'
'\ud87e\udd4d': 'L'
'\ud87e\udd4e': 'L'
'\ud87e\udd4f': 'L'
'\ud87e\udd50': 'L'
'\ud87e\udd51': 'L'
'\ud87e\udd52': 'L'
'\ud87e\udd53': 'L'
'\ud87e\udd54': 'L'
'\ud87e\udd55': 'L'
'\ud87e\udd56': 'L'
'\ud87e\udd57': 'L'
'\ud87e\udd58': 'L'
'\ud87e\udd59': 'L'
'\ud87e\udd5a': 'L'
'\ud87e\udd5b': 'L'
'\ud87e\udd5c': 'L'
'\ud87e\udd5d': 'L'
'\ud87e\udd5e': 'L'
'\ud87e\udd5f': 'L'
'\ud87e\udd60': 'L'
'\ud87e\udd61': 'L'
'\ud87e\udd62': 'L'
'\ud87e\udd63': 'L'
'\ud87e\udd64': 'L'
'\ud87e\udd65': 'L'
'\ud87e\udd66': 'L'
'\ud87e\udd67': 'L'
'\ud87e\udd68': 'L'
'\ud87e\udd69': 'L'
'\ud87e\udd6a': 'L'
'\ud87e\udd6b': 'L'
'\ud87e\udd6c': 'L'
'\ud87e\udd6d': 'L'
'\ud87e\udd6e': 'L'
'\ud87e\udd6f': 'L'
'\ud87e\udd70': 'L'
'\ud87e\udd71': 'L'
'\ud87e\udd72': 'L'
'\ud87e\udd73': 'L'
'\ud87e\udd74': 'L'
'\ud87e\udd75': 'L'
'\ud87e\udd76': 'L'
'\ud87e\udd77': 'L'
'\ud87e\udd78': 'L'
'\ud87e\udd79': 'L'
'\ud87e\udd7a': 'L'
'\ud87e\udd7b': 'L'
'\ud87e\udd7c': 'L'
'\ud87e\udd7d': 'L'
'\ud87e\udd7e': 'L'
'\ud87e\udd7f': 'L'
'\ud87e\udd80': 'L'
'\ud87e\udd81': 'L'
'\ud87e\udd82': 'L'
'\ud87e\udd83': 'L'
'\ud87e\udd84': 'L'
'\ud87e\udd85': 'L'
'\ud87e\udd86': 'L'
'\ud87e\udd87': 'L'
'\ud87e\udd88': 'L'
'\ud87e\udd89': 'L'
'\ud87e\udd8a': 'L'
'\ud87e\udd8b': 'L'
'\ud87e\udd8c': 'L'
'\ud87e\udd8d': 'L'
'\ud87e\udd8e': 'L'
'\ud87e\udd8f': 'L'
'\ud87e\udd90': 'L'
'\ud87e\udd91': 'L'
'\ud87e\udd92': 'L'
'\ud87e\udd93': 'L'
'\ud87e\udd94': 'L'
'\ud87e\udd95': 'L'
'\ud87e\udd96': 'L'
'\ud87e\udd97': 'L'
'\ud87e\udd98': 'L'
'\ud87e\udd99': 'L'
'\ud87e\udd9a': 'L'
'\ud87e\udd9b': 'L'
'\ud87e\udd9c': 'L'
'\ud87e\udd9d': 'L'
'\ud87e\udd9e': 'L'
'\ud87e\udd9f': 'L'
'\ud87e\udda0': 'L'
'\ud87e\udda1': 'L'
'\ud87e\udda2': 'L'
'\ud87e\udda3': 'L'
'\ud87e\udda4': 'L'
'\ud87e\udda5': 'L'
'\ud87e\udda6': 'L'
'\ud87e\udda7': 'L'
'\ud87e\udda8': 'L'
'\ud87e\udda9': 'L'
'\ud87e\uddaa': 'L'
'\ud87e\uddab': 'L'
'\ud87e\uddac': 'L'
'\ud87e\uddad': 'L'
'\ud87e\uddae': 'L'
'\ud87e\uddaf': 'L'
'\ud87e\uddb0': 'L'
'\ud87e\uddb1': 'L'
'\ud87e\uddb2': 'L'
'\ud87e\uddb3': 'L'
'\ud87e\uddb4': 'L'
'\ud87e\uddb5': 'L'
'\ud87e\uddb6': 'L'
'\ud87e\uddb7': 'L'
'\ud87e\uddb8': 'L'
'\ud87e\uddb9': 'L'
'\ud87e\uddba': 'L'
'\ud87e\uddbb': 'L'
'\ud87e\uddbc': 'L'
'\ud87e\uddbd': 'L'
'\ud87e\uddbe': 'L'
'\ud87e\uddbf': 'L'
'\ud87e\uddc0': 'L'
'\ud87e\uddc1': 'L'
'\ud87e\uddc2': 'L'
'\ud87e\uddc3': 'L'
'\ud87e\uddc4': 'L'
'\ud87e\uddc5': 'L'
'\ud87e\uddc6': 'L'
'\ud87e\uddc7': 'L'
'\ud87e\uddc8': 'L'
'\ud87e\uddc9': 'L'
'\ud87e\uddca': 'L'
'\ud87e\uddcb': 'L'
'\ud87e\uddcc': 'L'
'\ud87e\uddcd': 'L'
'\ud87e\uddce': 'L'
'\ud87e\uddcf': 'L'
'\ud87e\uddd0': 'L'
'\ud87e\uddd1': 'L'
'\ud87e\uddd2': 'L'
'\ud87e\uddd3': 'L'
'\ud87e\uddd4': 'L'
'\ud87e\uddd5': 'L'
'\ud87e\uddd6': 'L'
'\ud87e\uddd7': 'L'
'\ud87e\uddd8': 'L'
'\ud87e\uddd9': 'L'
'\ud87e\uddda': 'L'
'\ud87e\udddb': 'L'
'\ud87e\udddc': 'L'
'\ud87e\udddd': 'L'
'\ud87e\uddde': 'L'
'\ud87e\udddf': 'L'
'\ud87e\udde0': 'L'
'\ud87e\udde1': 'L'
'\ud87e\udde2': 'L'
'\ud87e\udde3': 'L'
'\ud87e\udde4': 'L'
'\ud87e\udde5': 'L'
'\ud87e\udde6': 'L'
'\ud87e\udde7': 'L'
'\ud87e\udde8': 'L'
'\ud87e\udde9': 'L'
'\ud87e\uddea': 'L'
'\ud87e\uddeb': 'L'
'\ud87e\uddec': 'L'
'\ud87e\udded': 'L'
'\ud87e\uddee': 'L'
'\ud87e\uddef': 'L'
'\ud87e\uddf0': 'L'
'\ud87e\uddf1': 'L'
'\ud87e\uddf2': 'L'
'\ud87e\uddf3': 'L'
'\ud87e\uddf4': 'L'
'\ud87e\uddf5': 'L'
'\ud87e\uddf6': 'L'
'\ud87e\uddf7': 'L'
'\ud87e\uddf8': 'L'
'\ud87e\uddf9': 'L'
'\ud87e\uddfa': 'L'
'\ud87e\uddfb': 'L'
'\ud87e\uddfc': 'L'
'\ud87e\uddfd': 'L'
'\ud87e\uddfe': 'L'
'\ud87e\uddff': 'L'
'\ud87e\ude00': 'L'
'\ud87e\ude01': 'L'
'\ud87e\ude02': 'L'
'\ud87e\ude03': 'L'
'\ud87e\ude04': 'L'
'\ud87e\ude05': 'L'
'\ud87e\ude06': 'L'
'\ud87e\ude07': 'L'
'\ud87e\ude08': 'L'
'\ud87e\ude09': 'L'
'\ud87e\ude0a': 'L'
'\ud87e\ude0b': 'L'
'\ud87e\ude0c': 'L'
'\ud87e\ude0d': 'L'
'\ud87e\ude0e': 'L'
'\ud87e\ude0f': 'L'
'\ud87e\ude10': 'L'
'\ud87e\ude11': 'L'
'\ud87e\ude12': 'L'
'\ud87e\ude13': 'L'
'\ud87e\ude14': 'L'
'\ud87e\ude15': 'L'
'\ud87e\ude16': 'L'
'\ud87e\ude17': 'L'
'\ud87e\ude18': 'L'
'\ud87e\ude19': 'L'
'\ud87e\ude1a': 'L'
'\ud87e\ude1b': 'L'
'\ud87e\ude1c': 'L'
'\ud87e\ude1d': 'L'
| 186647 | CharClass =
'\u0030': 'N'
'\u0031': 'N'
'\u0032': 'N'
'\u0033': 'N'
'\u0034': 'N'
'\u0035': 'N'
'\u0036': 'N'
'\u0037': 'N'
'\u0038': 'N'
'\u0039': 'N'
'\u0041': 'Lu'
'\u0042': 'Lu'
'\u0043': 'Lu'
'\u0044': 'Lu'
'\u0045': 'Lu'
'\u0046': 'Lu'
'\u0047': 'Lu'
'\u0048': 'Lu'
'\u0049': 'Lu'
'\u004a': 'Lu'
'\u004b': 'Lu'
'\u004c': 'Lu'
'\u004d': 'Lu'
'\u004e': 'Lu'
'\u004f': 'Lu'
'\u0050': 'Lu'
'\u0051': 'Lu'
'\u0052': 'Lu'
'\u0053': 'Lu'
'\u0054': 'Lu'
'\u0055': 'Lu'
'\u0056': 'Lu'
'\u0057': 'Lu'
'\u0058': 'Lu'
'\u0059': 'Lu'
'\u005a': 'Lu'
'\u0061': 'L'
'\u0062': 'L'
'\u0063': 'L'
'\u0064': 'L'
'\u0065': 'L'
'\u0066': 'L'
'\u0067': 'L'
'\u0068': 'L'
'\u0069': 'L'
'\u006a': 'L'
'\u006b': 'L'
'\u006c': 'L'
'\u006d': 'L'
'\u006e': 'L'
'\u006f': 'L'
'\u0070': 'L'
'\u0071': 'L'
'\u0072': 'L'
'\u0073': 'L'
'\u0074': 'L'
'\u0075': 'L'
'\u0076': 'L'
'\u0077': 'L'
'\u0078': 'L'
'\u0079': 'L'
'\u007a': 'L'
'\u00aa': 'L'
'\u00b2': 'N'
'\u00b3': 'N'
'\u00b5': 'L'
'\u00b9': 'N'
'\u00ba': 'L'
'\u00bc': 'N'
'\u00bd': 'N'
'\u00be': 'N'
'\u00c0': 'Lu'
'\u00c1': 'Lu'
'\u00c2': 'Lu'
'\u00c3': 'Lu'
'\u00c4': 'Lu'
'\u00c5': 'Lu'
'\u00c6': 'Lu'
'\u00c7': 'Lu'
'\u00c8': 'Lu'
'\u00c9': 'Lu'
'\u00ca': 'Lu'
'\u00cb': 'Lu'
'\u00cc': 'Lu'
'\u00cd': 'Lu'
'\u00ce': 'Lu'
'\u00cf': 'Lu'
'\u00d0': 'Lu'
'\u00d1': 'Lu'
'\u00d2': 'Lu'
'\u00d3': 'Lu'
'\u00d4': 'Lu'
'\u00d5': 'Lu'
'\u00d6': 'Lu'
'\u00d8': 'Lu'
'\u00d9': 'Lu'
'\u00da': 'Lu'
'\u00db': 'Lu'
'\u00dc': 'Lu'
'\u00dd': 'Lu'
'\u00de': 'Lu'
'\u00df': 'L'
'\u00e0': 'L'
'\u00e1': 'L'
'\u00e2': 'L'
'\u00e3': 'L'
'\u00e4': 'L'
'\u00e5': 'L'
'\u00e6': 'L'
'\u00e7': 'L'
'\u00e8': 'L'
'\u00e9': 'L'
'\u00ea': 'L'
'\u00eb': 'L'
'\u00ec': 'L'
'\u00ed': 'L'
'\u00ee': 'L'
'\u00ef': 'L'
'\u00f0': 'L'
'\u00f1': 'L'
'\u00f2': 'L'
'\u00f3': 'L'
'\u00f4': 'L'
'\u00f5': 'L'
'\u00f6': 'L'
'\u00f8': 'L'
'\u00f9': 'L'
'\u00fa': 'L'
'\u00fb': 'L'
'\u00fc': 'L'
'\u00fd': 'L'
'\u00fe': 'L'
'\u00ff': 'L'
'\u0100': 'Lu'
'\u0101': 'L'
'\u0102': 'Lu'
'\u0103': 'L'
'\u0104': 'Lu'
'\u0105': 'L'
'\u0106': 'Lu'
'\u0107': 'L'
'\u0108': 'Lu'
'\u0109': 'L'
'\u010a': 'Lu'
'\u010b': 'L'
'\u010c': 'Lu'
'\u010d': 'L'
'\u010e': 'Lu'
'\u010f': 'L'
'\u0110': 'Lu'
'\u0111': 'L'
'\u0112': 'Lu'
'\u0113': 'L'
'\u0114': 'Lu'
'\u0115': 'L'
'\u0116': 'Lu'
'\u0117': 'L'
'\u0118': 'Lu'
'\u0119': 'L'
'\u011a': 'Lu'
'\u011b': 'L'
'\u011c': 'Lu'
'\u011d': 'L'
'\u011e': 'Lu'
'\u011f': 'L'
'\u0120': 'Lu'
'\u0121': 'L'
'\u0122': 'Lu'
'\u0123': 'L'
'\u0124': 'Lu'
'\u0125': 'L'
'\u0126': 'Lu'
'\u0127': 'L'
'\u0128': 'Lu'
'\u0129': 'L'
'\u012a': 'Lu'
'\u012b': 'L'
'\u012c': 'Lu'
'\u012d': 'L'
'\u012e': 'Lu'
'\u012f': 'L'
'\u0130': 'Lu'
'\u0131': 'L'
'\u0132': 'Lu'
'\u0133': 'L'
'\u0134': 'Lu'
'\u0135': 'L'
'\u0136': 'Lu'
'\u0137': 'L'
'\u0138': 'L'
'\u0139': 'Lu'
'\u013a': 'L'
'\u013b': 'Lu'
'\u013c': 'L'
'\u013d': 'Lu'
'\u013e': 'L'
'\u013f': 'Lu'
'\u0140': 'L'
'\u0141': 'Lu'
'\u0142': 'L'
'\u0143': 'Lu'
'\u0144': 'L'
'\u0145': 'Lu'
'\u0146': 'L'
'\u0147': 'Lu'
'\u0148': 'L'
'\u0149': 'L'
'\u014a': 'Lu'
'\u014b': 'L'
'\u014c': 'Lu'
'\u014d': 'L'
'\u014e': 'Lu'
'\u014f': 'L'
'\u0150': 'Lu'
'\u0151': 'L'
'\u0152': 'Lu'
'\u0153': 'L'
'\u0154': 'Lu'
'\u0155': 'L'
'\u0156': 'Lu'
'\u0157': 'L'
'\u0158': 'Lu'
'\u0159': 'L'
'\u015a': 'Lu'
'\u015b': 'L'
'\u015c': 'Lu'
'\u015d': 'L'
'\u015e': 'Lu'
'\u015f': 'L'
'\u0160': 'Lu'
'\u0161': 'L'
'\u0162': 'Lu'
'\u0163': 'L'
'\u0164': 'Lu'
'\u0165': 'L'
'\u0166': 'Lu'
'\u0167': 'L'
'\u0168': 'Lu'
'\u0169': 'L'
'\u016a': 'Lu'
'\u016b': 'L'
'\u016c': 'Lu'
'\u016d': 'L'
'\u016e': 'Lu'
'\u016f': 'L'
'\u0170': 'Lu'
'\u0171': 'L'
'\u0172': 'Lu'
'\u0173': 'L'
'\u0174': 'Lu'
'\u0175': 'L'
'\u0176': 'Lu'
'\u0177': 'L'
'\u0178': 'Lu'
'\u0179': 'Lu'
'\u017a': 'L'
'\u017b': 'Lu'
'\u017c': 'L'
'\u017d': 'Lu'
'\u017e': 'L'
'\u017f': 'L'
'\u0180': 'L'
'\u0181': 'Lu'
'\u0182': 'Lu'
'\u0183': 'L'
'\u0184': 'Lu'
'\u0185': 'L'
'\u0186': 'Lu'
'\u0187': 'Lu'
'\u0188': 'L'
'\u0189': 'Lu'
'\u018a': 'Lu'
'\u018b': 'Lu'
'\u018c': 'L'
'\u018d': 'L'
'\u018e': 'Lu'
'\u018f': 'Lu'
'\u0190': 'Lu'
'\u0191': 'Lu'
'\u0192': 'L'
'\u0193': 'Lu'
'\u0194': 'Lu'
'\u0195': 'L'
'\u0196': 'Lu'
'\u0197': 'Lu'
'\u0198': 'Lu'
'\u0199': 'L'
'\u019a': 'L'
'\u019b': 'L'
'\u019c': 'Lu'
'\u019d': 'Lu'
'\u019e': 'L'
'\u019f': 'Lu'
'\u01a0': 'Lu'
'\u01a1': 'L'
'\u01a2': 'Lu'
'\u01a3': 'L'
'\u01a4': 'Lu'
'\u01a5': 'L'
'\u01a6': 'Lu'
'\u01a7': 'Lu'
'\u01a8': 'L'
'\u01a9': 'Lu'
'\u01aa': 'L'
'\u01ab': 'L'
'\u01ac': 'Lu'
'\u01ad': 'L'
'\u01ae': 'Lu'
'\u01af': 'Lu'
'\u01b0': 'L'
'\u01b1': 'Lu'
'\u01b2': 'Lu'
'\u01b3': 'Lu'
'\u01b4': 'L'
'\u01b5': 'Lu'
'\u01b6': 'L'
'\u01b7': 'Lu'
'\u01b8': 'Lu'
'\u01b9': 'L'
'\u01ba': 'L'
'\u01bb': 'L'
'\u01bc': 'Lu'
'\u01bd': 'L'
'\u01be': 'L'
'\u01bf': 'L'
'\u01c0': 'L'
'\u01c1': 'L'
'\u01c2': 'L'
'\u01c3': 'L'
'\u01c4': 'Lu'
'\u01c5': 'L'
'\u01c6': 'L'
'\u01c7': 'Lu'
'\u01c8': 'L'
'\u01c9': 'L'
'\u01ca': 'Lu'
'\u01cb': 'L'
'\u01cc': 'L'
'\u01cd': 'Lu'
'\u01ce': 'L'
'\u01cf': 'Lu'
'\u01d0': 'L'
'\u01d1': 'Lu'
'\u01d2': 'L'
'\u01d3': 'Lu'
'\u01d4': 'L'
'\u01d5': 'Lu'
'\u01d6': 'L'
'\u01d7': 'Lu'
'\u01d8': 'L'
'\u01d9': 'Lu'
'\u01da': 'L'
'\u01db': 'Lu'
'\u01dc': 'L'
'\u01dd': 'L'
'\u01de': 'Lu'
'\u01df': 'L'
'\u01e0': 'Lu'
'\u01e1': 'L'
'\u01e2': 'Lu'
'\u01e3': 'L'
'\u01e4': 'Lu'
'\u01e5': 'L'
'\u01e6': 'Lu'
'\u01e7': 'L'
'\u01e8': 'Lu'
'\u01e9': 'L'
'\u01ea': 'Lu'
'\u01eb': 'L'
'\u01ec': 'Lu'
'\u01ed': 'L'
'\u01ee': 'Lu'
'\u01ef': 'L'
'\u01f0': 'L'
'\u01f1': 'Lu'
'\u01f2': 'L'
'\u01f3': 'L'
'\u01f4': 'Lu'
'\u01f5': 'L'
'\u01f6': 'Lu'
'\u01f7': 'Lu'
'\u01f8': 'Lu'
'\u01f9': 'L'
'\u01fa': 'Lu'
'\u01fb': 'L'
'\u01fc': 'Lu'
'\u01fd': 'L'
'\u01fe': 'Lu'
'\u01ff': 'L'
'\u0200': 'Lu'
'\u0201': 'L'
'\u0202': 'Lu'
'\u0203': 'L'
'\u0204': 'Lu'
'\u0205': 'L'
'\u0206': 'Lu'
'\u0207': 'L'
'\u0208': 'Lu'
'\u0209': 'L'
'\u020a': 'Lu'
'\u020b': 'L'
'\u020c': 'Lu'
'\u020d': 'L'
'\u020e': 'Lu'
'\u020f': 'L'
'\u0210': 'Lu'
'\u0211': 'L'
'\u0212': 'Lu'
'\u0213': 'L'
'\u0214': 'Lu'
'\u0215': 'L'
'\u0216': 'Lu'
'\u0217': 'L'
'\u0218': 'Lu'
'\u0219': 'L'
'\u021a': 'Lu'
'\u021b': 'L'
'\u021c': 'Lu'
'\u021d': 'L'
'\u021e': 'Lu'
'\u021f': 'L'
'\u0220': 'Lu'
'\u0221': 'L'
'\u0222': 'Lu'
'\u0223': 'L'
'\u0224': 'Lu'
'\u0225': 'L'
'\u0226': 'Lu'
'\u0227': 'L'
'\u0228': 'Lu'
'\u0229': 'L'
'\u022a': 'Lu'
'\u022b': 'L'
'\u022c': 'Lu'
'\u022d': 'L'
'\u022e': 'Lu'
'\u022f': 'L'
'\u0230': 'Lu'
'\u0231': 'L'
'\u0232': 'Lu'
'\u0233': 'L'
'\u0234': 'L'
'\u0235': 'L'
'\u0236': 'L'
'\u0237': 'L'
'\u0238': 'L'
'\u0239': 'L'
'\u023a': 'Lu'
'\u023b': 'Lu'
'\u023c': 'L'
'\u023d': 'Lu'
'\u023e': 'Lu'
'\u023f': 'L'
'\u0240': 'L'
'\u0241': 'Lu'
'\u0242': 'L'
'\u0243': 'Lu'
'\u0244': 'Lu'
'\u0245': 'Lu'
'\u0246': 'Lu'
'\u0247': 'L'
'\u0248': 'Lu'
'\u0249': 'L'
'\u024a': 'Lu'
'\u024b': 'L'
'\u024c': 'Lu'
'\u024d': 'L'
'\u024e': 'Lu'
'\u024f': 'L'
'\u0250': 'L'
'\u0251': 'L'
'\u0252': 'L'
'\u0253': 'L'
'\u0254': 'L'
'\u0255': 'L'
'\u0256': 'L'
'\u0257': 'L'
'\u0258': 'L'
'\u0259': 'L'
'\u025a': 'L'
'\u025b': 'L'
'\u025c': 'L'
'\u025d': 'L'
'\u025e': 'L'
'\u025f': 'L'
'\u0260': 'L'
'\u0261': 'L'
'\u0262': 'L'
'\u0263': 'L'
'\u0264': 'L'
'\u0265': 'L'
'\u0266': 'L'
'\u0267': 'L'
'\u0268': 'L'
'\u0269': 'L'
'\u026a': 'L'
'\u026b': 'L'
'\u026c': 'L'
'\u026d': 'L'
'\u026e': 'L'
'\u026f': 'L'
'\u0270': 'L'
'\u0271': 'L'
'\u0272': 'L'
'\u0273': 'L'
'\u0274': 'L'
'\u0275': 'L'
'\u0276': 'L'
'\u0277': 'L'
'\u0278': 'L'
'\u0279': 'L'
'\u027a': 'L'
'\u027b': 'L'
'\u027c': 'L'
'\u027d': 'L'
'\u027e': 'L'
'\u027f': 'L'
'\u0280': 'L'
'\u0281': 'L'
'\u0282': 'L'
'\u0283': 'L'
'\u0284': 'L'
'\u0285': 'L'
'\u0286': 'L'
'\u0287': 'L'
'\u0288': 'L'
'\u0289': 'L'
'\u028a': 'L'
'\u028b': 'L'
'\u028c': 'L'
'\u028d': 'L'
'\u028e': 'L'
'\u028f': 'L'
'\u0290': 'L'
'\u0291': 'L'
'\u0292': 'L'
'\u0293': 'L'
'\u0294': 'L'
'\u0295': 'L'
'\u0296': 'L'
'\u0297': 'L'
'\u0298': 'L'
'\u0299': 'L'
'\u029a': 'L'
'\u029b': 'L'
'\u029c': 'L'
'\u029d': 'L'
'\u029e': 'L'
'\u029f': 'L'
'\u02a0': 'L'
'\u02a1': 'L'
'\u02a2': 'L'
'\u02a3': 'L'
'\u02a4': 'L'
'\u02a5': 'L'
'\u02a6': 'L'
'\u02a7': 'L'
'\u02a8': 'L'
'\u02a9': 'L'
'\u02aa': 'L'
'\u02ab': 'L'
'\u02ac': 'L'
'\u02ad': 'L'
'\u02ae': 'L'
'\u02af': 'L'
'\u02b0': 'L'
'\u02b1': 'L'
'\u02b2': 'L'
'\u02b3': 'L'
'\u02b4': 'L'
'\u02b5': 'L'
'\u02b6': 'L'
'\u02b7': 'L'
'\u02b8': 'L'
'\u02b9': 'L'
'\u02ba': 'L'
'\u02bb': 'L'
'\u02bc': 'L'
'\u02bd': 'L'
'\u02be': 'L'
'\u02bf': 'L'
'\u02c0': 'L'
'\u02c1': 'L'
'\u02c6': 'L'
'\u02c7': 'L'
'\u02c8': 'L'
'\u02c9': 'L'
'\u02ca': 'L'
'\u02cb': 'L'
'\u02cc': 'L'
'\u02cd': 'L'
'\u02ce': 'L'
'\u02cf': 'L'
'\u02d0': 'L'
'\u02d1': 'L'
'\u02e0': 'L'
'\u02e1': 'L'
'\u02e2': 'L'
'\u02e3': 'L'
'\u02e4': 'L'
'\u02ec': 'L'
'\u02ee': 'L'
'\u0370': 'Lu'
'\u0371': 'L'
'\u0372': 'Lu'
'\u0373': 'L'
'\u0374': 'L'
'\u0376': 'Lu'
'\u0377': 'L'
'\u037a': 'L'
'\u037b': 'L'
'\u037c': 'L'
'\u037d': 'L'
'\u037f': 'Lu'
'\u0386': 'Lu'
'\u0388': 'Lu'
'\u0389': 'Lu'
'\u038a': 'Lu'
'\u038c': 'Lu'
'\u038e': 'Lu'
'\u038f': 'Lu'
'\u0390': 'L'
'\u0391': 'Lu'
'\u0392': 'Lu'
'\u0393': 'Lu'
'\u0394': 'Lu'
'\u0395': 'Lu'
'\u0396': 'Lu'
'\u0397': 'Lu'
'\u0398': 'Lu'
'\u0399': 'Lu'
'\u039a': 'Lu'
'\u039b': 'Lu'
'\u039c': 'Lu'
'\u039d': 'Lu'
'\u039e': 'Lu'
'\u039f': 'Lu'
'\u03a0': 'Lu'
'\u03a1': 'Lu'
'\u03a3': 'Lu'
'\u03a4': 'Lu'
'\u03a5': 'Lu'
'\u03a6': 'Lu'
'\u03a7': 'Lu'
'\u03a8': 'Lu'
'\u03a9': 'Lu'
'\u03aa': 'Lu'
'\u03ab': 'Lu'
'\u03ac': 'L'
'\u03ad': 'L'
'\u03ae': 'L'
'\u03af': 'L'
'\u03b0': 'L'
'\u03b1': 'L'
'\u03b2': 'L'
'\u03b3': 'L'
'\u03b4': 'L'
'\u03b5': 'L'
'\u03b6': 'L'
'\u03b7': 'L'
'\u03b8': 'L'
'\u03b9': 'L'
'\u03ba': 'L'
'\u03bb': 'L'
'\u03bc': 'L'
'\u03bd': 'L'
'\u03be': 'L'
'\u03bf': 'L'
'\u03c0': 'L'
'\u03c1': 'L'
'\u03c2': 'L'
'\u03c3': 'L'
'\u03c4': 'L'
'\u03c5': 'L'
'\u03c6': 'L'
'\u03c7': 'L'
'\u03c8': 'L'
'\u03c9': 'L'
'\u03ca': 'L'
'\u03cb': 'L'
'\u03cc': 'L'
'\u03cd': 'L'
'\u03ce': 'L'
'\u03cf': 'Lu'
'\u03d0': 'L'
'\u03d1': 'L'
'\u03d2': 'Lu'
'\u03d3': 'Lu'
'\u03d4': 'Lu'
'\u03d5': 'L'
'\u03d6': 'L'
'\u03d7': 'L'
'\u03d8': 'Lu'
'\u03d9': 'L'
'\u03da': 'Lu'
'\u03db': 'L'
'\u03dc': 'Lu'
'\u03dd': 'L'
'\u03de': 'Lu'
'\u03df': 'L'
'\u03e0': 'Lu'
'\u03e1': 'L'
'\u03e2': 'Lu'
'\u03e3': 'L'
'\u03e4': 'Lu'
'\u03e5': 'L'
'\u03e6': 'Lu'
'\u03e7': 'L'
'\u03e8': 'Lu'
'\u03e9': 'L'
'\u03ea': 'Lu'
'\u03eb': 'L'
'\u03ec': 'Lu'
'\u03ed': 'L'
'\u03ee': 'Lu'
'\u03ef': 'L'
'\u03f0': 'L'
'\u03f1': 'L'
'\u03f2': 'L'
'\u03f3': 'L'
'\u03f4': 'Lu'
'\u03f5': 'L'
'\u03f7': 'Lu'
'\u03f8': 'L'
'\u03f9': 'Lu'
'\u03fa': 'Lu'
'\u03fb': 'L'
'\u03fc': 'L'
'\u03fd': 'Lu'
'\u03fe': 'Lu'
'\u03ff': 'Lu'
'\u0400': 'Lu'
'\u0401': 'Lu'
'\u0402': 'Lu'
'\u0403': 'Lu'
'\u0404': 'Lu'
'\u0405': 'Lu'
'\u0406': 'Lu'
'\u0407': 'Lu'
'\u0408': 'Lu'
'\u0409': 'Lu'
'\u040a': 'Lu'
'\u040b': 'Lu'
'\u040c': 'Lu'
'\u040d': 'Lu'
'\u040e': 'Lu'
'\u040f': 'Lu'
'\u0410': 'Lu'
'\u0411': 'Lu'
'\u0412': 'Lu'
'\u0413': 'Lu'
'\u0414': 'Lu'
'\u0415': 'Lu'
'\u0416': 'Lu'
'\u0417': 'Lu'
'\u0418': 'Lu'
'\u0419': 'Lu'
'\u041a': 'Lu'
'\u041b': 'Lu'
'\u041c': 'Lu'
'\u041d': 'Lu'
'\u041e': 'Lu'
'\u041f': 'Lu'
'\u0420': 'Lu'
'\u0421': 'Lu'
'\u0422': 'Lu'
'\u0423': 'Lu'
'\u0424': 'Lu'
'\u0425': 'Lu'
'\u0426': 'Lu'
'\u0427': 'Lu'
'\u0428': 'Lu'
'\u0429': 'Lu'
'\u042a': 'Lu'
'\u042b': 'Lu'
'\u042c': 'Lu'
'\u042d': 'Lu'
'\u042e': 'Lu'
'\u042f': 'Lu'
'\u0430': 'L'
'\u0431': 'L'
'\u0432': 'L'
'\u0433': 'L'
'\u0434': 'L'
'\u0435': 'L'
'\u0436': 'L'
'\u0437': 'L'
'\u0438': 'L'
'\u0439': 'L'
'\u043a': 'L'
'\u043b': 'L'
'\u043c': 'L'
'\u043d': 'L'
'\u043e': 'L'
'\u043f': 'L'
'\u0440': 'L'
'\u0441': 'L'
'\u0442': 'L'
'\u0443': 'L'
'\u0444': 'L'
'\u0445': 'L'
'\u0446': 'L'
'\u0447': 'L'
'\u0448': 'L'
'\u0449': 'L'
'\u044a': 'L'
'\u044b': 'L'
'\u044c': 'L'
'\u044d': 'L'
'\u044e': 'L'
'\u044f': 'L'
'\u0450': 'L'
'\u0451': 'L'
'\u0452': 'L'
'\u0453': 'L'
'\u0454': 'L'
'\u0455': 'L'
'\u0456': 'L'
'\u0457': 'L'
'\u0458': 'L'
'\u0459': 'L'
'\u045a': 'L'
'\u045b': 'L'
'\u045c': 'L'
'\u045d': 'L'
'\u045e': 'L'
'\u045f': 'L'
'\u0460': 'Lu'
'\u0461': 'L'
'\u0462': 'Lu'
'\u0463': 'L'
'\u0464': 'Lu'
'\u0465': 'L'
'\u0466': 'Lu'
'\u0467': 'L'
'\u0468': 'Lu'
'\u0469': 'L'
'\u046a': 'Lu'
'\u046b': 'L'
'\u046c': 'Lu'
'\u046d': 'L'
'\u046e': 'Lu'
'\u046f': 'L'
'\u0470': 'Lu'
'\u0471': 'L'
'\u0472': 'Lu'
'\u0473': 'L'
'\u0474': 'Lu'
'\u0475': 'L'
'\u0476': 'Lu'
'\u0477': 'L'
'\u0478': 'Lu'
'\u0479': 'L'
'\u047a': 'Lu'
'\u047b': 'L'
'\u047c': 'Lu'
'\u047d': 'L'
'\u047e': 'Lu'
'\u047f': 'L'
'\u0480': 'Lu'
'\u0481': 'L'
'\u048a': 'Lu'
'\u048b': 'L'
'\u048c': 'Lu'
'\u048d': 'L'
'\u048e': 'Lu'
'\u048f': 'L'
'\u0490': 'Lu'
'\u0491': 'L'
'\u0492': 'Lu'
'\u0493': 'L'
'\u0494': 'Lu'
'\u0495': 'L'
'\u0496': 'Lu'
'\u0497': 'L'
'\u0498': 'Lu'
'\u0499': 'L'
'\u049a': 'Lu'
'\u049b': 'L'
'\u049c': 'Lu'
'\u049d': 'L'
'\u049e': 'Lu'
'\u049f': 'L'
'\u04a0': 'Lu'
'\u04a1': 'L'
'\u04a2': 'Lu'
'\u04a3': 'L'
'\u04a4': 'Lu'
'\u04a5': 'L'
'\u04a6': 'Lu'
'\u04a7': 'L'
'\u04a8': 'Lu'
'\u04a9': 'L'
'\u04aa': 'Lu'
'\u04ab': 'L'
'\u04ac': 'Lu'
'\u04ad': 'L'
'\u04ae': 'Lu'
'\u04af': 'L'
'\u04b0': 'Lu'
'\u04b1': 'L'
'\u04b2': 'Lu'
'\u04b3': 'L'
'\u04b4': 'Lu'
'\u04b5': 'L'
'\u04b6': 'Lu'
'\u04b7': 'L'
'\u04b8': 'Lu'
'\u04b9': 'L'
'\u04ba': 'Lu'
'\u04bb': 'L'
'\u04bc': 'Lu'
'\u04bd': 'L'
'\u04be': 'Lu'
'\u04bf': 'L'
'\u04c0': 'Lu'
'\u04c1': 'Lu'
'\u04c2': 'L'
'\u04c3': 'Lu'
'\u04c4': 'L'
'\u04c5': 'Lu'
'\u04c6': 'L'
'\u04c7': 'Lu'
'\u04c8': 'L'
'\u04c9': 'Lu'
'\u04ca': 'L'
'\u04cb': 'Lu'
'\u04cc': 'L'
'\u04cd': 'Lu'
'\u04ce': 'L'
'\u04cf': 'L'
'\u04d0': 'Lu'
'\u04d1': 'L'
'\u04d2': 'Lu'
'\u04d3': 'L'
'\u04d4': 'Lu'
'\u04d5': 'L'
'\u04d6': 'Lu'
'\u04d7': 'L'
'\u04d8': 'Lu'
'\u04d9': 'L'
'\u04da': 'Lu'
'\u04db': 'L'
'\u04dc': 'Lu'
'\u04dd': 'L'
'\u04de': 'Lu'
'\u04df': 'L'
'\u04e0': 'Lu'
'\u04e1': 'L'
'\u04e2': 'Lu'
'\u04e3': 'L'
'\u04e4': 'Lu'
'\u04e5': 'L'
'\u04e6': 'Lu'
'\u04e7': 'L'
'\u04e8': 'Lu'
'\u04e9': 'L'
'\u04ea': 'Lu'
'\u04eb': 'L'
'\u04ec': 'Lu'
'\u04ed': 'L'
'\u04ee': 'Lu'
'\u04ef': 'L'
'\u04f0': 'Lu'
'\u04f1': 'L'
'\u04f2': 'Lu'
'\u04f3': 'L'
'\u04f4': 'Lu'
'\u04f5': 'L'
'\u04f6': 'Lu'
'\u04f7': 'L'
'\u04f8': 'Lu'
'\u04f9': 'L'
'\u04fa': 'Lu'
'\u04fb': 'L'
'\u04fc': 'Lu'
'\u04fd': 'L'
'\u04fe': 'Lu'
'\u04ff': 'L'
'\u0500': 'Lu'
'\u0501': 'L'
'\u0502': 'Lu'
'\u0503': 'L'
'\u0504': 'Lu'
'\u0505': 'L'
'\u0506': 'Lu'
'\u0507': 'L'
'\u0508': 'Lu'
'\u0509': 'L'
'\u050a': 'Lu'
'\u050b': 'L'
'\u050c': 'Lu'
'\u050d': 'L'
'\u050e': 'Lu'
'\u050f': 'L'
'\u0510': 'Lu'
'\u0511': 'L'
'\u0512': 'Lu'
'\u0513': 'L'
'\u0514': 'Lu'
'\u0515': 'L'
'\u0516': 'Lu'
'\u0517': 'L'
'\u0518': 'Lu'
'\u0519': 'L'
'\u051a': 'Lu'
'\u051b': 'L'
'\u051c': 'Lu'
'\u051d': 'L'
'\u051e': 'Lu'
'\u051f': 'L'
'\u0520': 'Lu'
'\u0521': 'L'
'\u0522': 'Lu'
'\u0523': 'L'
'\u0524': 'Lu'
'\u0525': 'L'
'\u0526': 'Lu'
'\u0527': 'L'
'\u0528': 'Lu'
'\u0529': 'L'
'\u052a': 'Lu'
'\u052b': 'L'
'\u052c': 'Lu'
'\u052d': 'L'
'\u052e': 'Lu'
'\u052f': 'L'
'\u0531': 'Lu'
'\u0532': 'Lu'
'\u0533': 'Lu'
'\u0534': 'Lu'
'\u0535': 'Lu'
'\u0536': 'Lu'
'\u0537': 'Lu'
'\u0538': 'Lu'
'\u0539': 'Lu'
'\u053a': 'Lu'
'\u053b': 'Lu'
'\u053c': 'Lu'
'\u053d': 'Lu'
'\u053e': 'Lu'
'\u053f': 'Lu'
'\u0540': 'Lu'
'\u0541': 'Lu'
'\u0542': 'Lu'
'\u0543': 'Lu'
'\u0544': 'Lu'
'\u0545': 'Lu'
'\u0546': 'Lu'
'\u0547': 'Lu'
'\u0548': 'Lu'
'\u0549': 'Lu'
'\u054a': 'Lu'
'\u054b': 'Lu'
'\u054c': 'Lu'
'\u054d': 'Lu'
'\u054e': 'Lu'
'\u054f': 'Lu'
'\u0550': 'Lu'
'\u0551': 'Lu'
'\u0552': 'Lu'
'\u0553': 'Lu'
'\u0554': 'Lu'
'\u0555': 'Lu'
'\u0556': 'Lu'
'\u0559': 'L'
'\u0561': 'L'
'\u0562': 'L'
'\u0563': 'L'
'\u0564': 'L'
'\u0565': 'L'
'\u0566': 'L'
'\u0567': 'L'
'\u0568': 'L'
'\u0569': 'L'
'\u056a': 'L'
'\u056b': 'L'
'\u056c': 'L'
'\u056d': 'L'
'\u056e': 'L'
'\u056f': 'L'
'\u0570': 'L'
'\u0571': 'L'
'\u0572': 'L'
'\u0573': 'L'
'\u0574': 'L'
'\u0575': 'L'
'\u0576': 'L'
'\u0577': 'L'
'\u0578': 'L'
'\u0579': 'L'
'\u057a': 'L'
'\u057b': 'L'
'\u057c': 'L'
'\u057d': 'L'
'\u057e': 'L'
'\u057f': 'L'
'\u0580': 'L'
'\u0581': 'L'
'\u0582': 'L'
'\u0583': 'L'
'\u0584': 'L'
'\u0585': 'L'
'\u0586': 'L'
'\u0587': 'L'
'\u05d0': 'L'
'\u05d1': 'L'
'\u05d2': 'L'
'\u05d3': 'L'
'\u05d4': 'L'
'\u05d5': 'L'
'\u05d6': 'L'
'\u05d7': 'L'
'\u05d8': 'L'
'\u05d9': 'L'
'\u05da': 'L'
'\u05db': 'L'
'\u05dc': 'L'
'\u05dd': 'L'
'\u05de': 'L'
'\u05df': 'L'
'\u05e0': 'L'
'\u05e1': 'L'
'\u05e2': 'L'
'\u05e3': 'L'
'\u05e4': 'L'
'\u05e5': 'L'
'\u05e6': 'L'
'\u05e7': 'L'
'\u05e8': 'L'
'\u05e9': 'L'
'\u05ea': 'L'
'\u05f0': 'L'
'\u05f1': 'L'
'\u05f2': 'L'
'\u0620': 'L'
'\u0621': 'L'
'\u0622': 'L'
'\u0623': 'L'
'\u0624': 'L'
'\u0625': 'L'
'\u0626': 'L'
'\u0627': 'L'
'\u0628': 'L'
'\u0629': 'L'
'\u062a': 'L'
'\u062b': 'L'
'\u062c': 'L'
'\u062d': 'L'
'\u062e': 'L'
'\u062f': 'L'
'\u0630': 'L'
'\u0631': 'L'
'\u0632': 'L'
'\u0633': 'L'
'\u0634': 'L'
'\u0635': 'L'
'\u0636': 'L'
'\u0637': 'L'
'\u0638': 'L'
'\u0639': 'L'
'\u063a': 'L'
'\u063b': 'L'
'\u063c': 'L'
'\u063d': 'L'
'\u063e': 'L'
'\u063f': 'L'
'\u0640': 'L'
'\u0641': 'L'
'\u0642': 'L'
'\u0643': 'L'
'\u0644': 'L'
'\u0645': 'L'
'\u0646': 'L'
'\u0647': 'L'
'\u0648': 'L'
'\u0649': 'L'
'\u064a': 'L'
'\u0660': 'N'
'\u0661': 'N'
'\u0662': 'N'
'\u0663': 'N'
'\u0664': 'N'
'\u0665': 'N'
'\u0666': 'N'
'\u0667': 'N'
'\u0668': 'N'
'\u0669': 'N'
'\u066e': 'L'
'\u066f': 'L'
'\u0671': 'L'
'\u0672': 'L'
'\u0673': 'L'
'\u0674': 'L'
'\u0675': 'L'
'\u0676': 'L'
'\u0677': 'L'
'\u0678': 'L'
'\u0679': 'L'
'\u067a': 'L'
'\u067b': 'L'
'\u067c': 'L'
'\u067d': 'L'
'\u067e': 'L'
'\u067f': 'L'
'\u0680': 'L'
'\u0681': 'L'
'\u0682': 'L'
'\u0683': 'L'
'\u0684': 'L'
'\u0685': 'L'
'\u0686': 'L'
'\u0687': 'L'
'\u0688': 'L'
'\u0689': 'L'
'\u068a': 'L'
'\u068b': 'L'
'\u068c': 'L'
'\u068d': 'L'
'\u068e': 'L'
'\u068f': 'L'
'\u0690': 'L'
'\u0691': 'L'
'\u0692': 'L'
'\u0693': 'L'
'\u0694': 'L'
'\u0695': 'L'
'\u0696': 'L'
'\u0697': 'L'
'\u0698': 'L'
'\u0699': 'L'
'\u069a': 'L'
'\u069b': 'L'
'\u069c': 'L'
'\u069d': 'L'
'\u069e': 'L'
'\u069f': 'L'
'\u06a0': 'L'
'\u06a1': 'L'
'\u06a2': 'L'
'\u06a3': 'L'
'\u06a4': 'L'
'\u06a5': 'L'
'\u06a6': 'L'
'\u06a7': 'L'
'\u06a8': 'L'
'\u06a9': 'L'
'\u06aa': 'L'
'\u06ab': 'L'
'\u06ac': 'L'
'\u06ad': 'L'
'\u06ae': 'L'
'\u06af': 'L'
'\u06b0': 'L'
'\u06b1': 'L'
'\u06b2': 'L'
'\u06b3': 'L'
'\u06b4': 'L'
'\u06b5': 'L'
'\u06b6': 'L'
'\u06b7': 'L'
'\u06b8': 'L'
'\u06b9': 'L'
'\u06ba': 'L'
'\u06bb': 'L'
'\u06bc': 'L'
'\u06bd': 'L'
'\u06be': 'L'
'\u06bf': 'L'
'\u06c0': 'L'
'\u06c1': 'L'
'\u06c2': 'L'
'\u06c3': 'L'
'\u06c4': 'L'
'\u06c5': 'L'
'\u06c6': 'L'
'\u06c7': 'L'
'\u06c8': 'L'
'\u06c9': 'L'
'\u06ca': 'L'
'\u06cb': 'L'
'\u06cc': 'L'
'\u06cd': 'L'
'\u06ce': 'L'
'\u06cf': 'L'
'\u06d0': 'L'
'\u06d1': 'L'
'\u06d2': 'L'
'\u06d3': 'L'
'\u06d5': 'L'
'\u06e5': 'L'
'\u06e6': 'L'
'\u06ee': 'L'
'\u06ef': 'L'
'\u06f0': 'N'
'\u06f1': 'N'
'\u06f2': 'N'
'\u06f3': 'N'
'\u06f4': 'N'
'\u06f5': 'N'
'\u06f6': 'N'
'\u06f7': 'N'
'\u06f8': 'N'
'\u06f9': 'N'
'\u06fa': 'L'
'\u06fb': 'L'
'\u06fc': 'L'
'\u06ff': 'L'
'\u0710': 'L'
'\u0712': 'L'
'\u0713': 'L'
'\u0714': 'L'
'\u0715': 'L'
'\u0716': 'L'
'\u0717': 'L'
'\u0718': 'L'
'\u0719': 'L'
'\u071a': 'L'
'\u071b': 'L'
'\u071c': 'L'
'\u071d': 'L'
'\u071e': 'L'
'\u071f': 'L'
'\u0720': 'L'
'\u0721': 'L'
'\u0722': 'L'
'\u0723': 'L'
'\u0724': 'L'
'\u0725': 'L'
'\u0726': 'L'
'\u0727': 'L'
'\u0728': 'L'
'\u0729': 'L'
'\u072a': 'L'
'\u072b': 'L'
'\u072c': 'L'
'\u072d': 'L'
'\u072e': 'L'
'\u072f': 'L'
'\u074d': 'L'
'\u074e': 'L'
'\u074f': 'L'
'\u0750': 'L'
'\u0751': 'L'
'\u0752': 'L'
'\u0753': 'L'
'\u0754': 'L'
'\u0755': 'L'
'\u0756': 'L'
'\u0757': 'L'
'\u0758': 'L'
'\u0759': 'L'
'\u075a': 'L'
'\u075b': 'L'
'\u075c': 'L'
'\u075d': 'L'
'\u075e': 'L'
'\u075f': 'L'
'\u0760': 'L'
'\u0761': 'L'
'\u0762': 'L'
'\u0763': 'L'
'\u0764': 'L'
'\u0765': 'L'
'\u0766': 'L'
'\u0767': 'L'
'\u0768': 'L'
'\u0769': 'L'
'\u076a': 'L'
'\u076b': 'L'
'\u076c': 'L'
'\u076d': 'L'
'\u076e': 'L'
'\u076f': 'L'
'\u0770': 'L'
'\u0771': 'L'
'\u0772': 'L'
'\u0773': 'L'
'\u0774': 'L'
'\u0775': 'L'
'\u0776': 'L'
'\u0777': 'L'
'\u0778': 'L'
'\u0779': 'L'
'\u077a': 'L'
'\u077b': 'L'
'\u077c': 'L'
'\u077d': 'L'
'\u077e': 'L'
'\u077f': 'L'
'\u0780': 'L'
'\u0781': 'L'
'\u0782': 'L'
'\u0783': 'L'
'\u0784': 'L'
'\u0785': 'L'
'\u0786': 'L'
'\u0787': 'L'
'\u0788': 'L'
'\u0789': 'L'
'\u078a': 'L'
'\u078b': 'L'
'\u078c': 'L'
'\u078d': 'L'
'\u078e': 'L'
'\u078f': 'L'
'\u0790': 'L'
'\u0791': 'L'
'\u0792': 'L'
'\u0793': 'L'
'\u0794': 'L'
'\u0795': 'L'
'\u0796': 'L'
'\u0797': 'L'
'\u0798': 'L'
'\u0799': 'L'
'\u079a': 'L'
'\u079b': 'L'
'\u079c': 'L'
'\u079d': 'L'
'\u079e': 'L'
'\u079f': 'L'
'\u07a0': 'L'
'\u07a1': 'L'
'\u07a2': 'L'
'\u07a3': 'L'
'\u07a4': 'L'
'\u07a5': 'L'
'\u07b1': 'L'
'\u07c0': 'N'
'\u07c1': 'N'
'\u07c2': 'N'
'\u07c3': 'N'
'\u07c4': 'N'
'\u07c5': 'N'
'\u07c6': 'N'
'\u07c7': 'N'
'\u07c8': 'N'
'\u07c9': 'N'
'\u07ca': 'L'
'\u07cb': 'L'
'\u07cc': 'L'
'\u07cd': 'L'
'\u07ce': 'L'
'\u07cf': 'L'
'\u07d0': 'L'
'\u07d1': 'L'
'\u07d2': 'L'
'\u07d3': 'L'
'\u07d4': 'L'
'\u07d5': 'L'
'\u07d6': 'L'
'\u07d7': 'L'
'\u07d8': 'L'
'\u07d9': 'L'
'\u07da': 'L'
'\u07db': 'L'
'\u07dc': 'L'
'\u07dd': 'L'
'\u07de': 'L'
'\u07df': 'L'
'\u07e0': 'L'
'\u07e1': 'L'
'\u07e2': 'L'
'\u07e3': 'L'
'\u07e4': 'L'
'\u07e5': 'L'
'\u07e6': 'L'
'\u07e7': 'L'
'\u07e8': 'L'
'\u07e9': 'L'
'\u07ea': 'L'
'\u07f4': 'L'
'\u07f5': 'L'
'\u07fa': 'L'
'\u0800': 'L'
'\u0801': 'L'
'\u0802': 'L'
'\u0803': 'L'
'\u0804': 'L'
'\u0805': 'L'
'\u0806': 'L'
'\u0807': 'L'
'\u0808': 'L'
'\u0809': 'L'
'\u080a': 'L'
'\u080b': 'L'
'\u080c': 'L'
'\u080d': 'L'
'\u080e': 'L'
'\u080f': 'L'
'\u0810': 'L'
'\u0811': 'L'
'\u0812': 'L'
'\u0813': 'L'
'\u0814': 'L'
'\u0815': 'L'
'\u081a': 'L'
'\u0824': 'L'
'\u0828': 'L'
'\u0840': 'L'
'\u0841': 'L'
'\u0842': 'L'
'\u0843': 'L'
'\u0844': 'L'
'\u0845': 'L'
'\u0846': 'L'
'\u0847': 'L'
'\u0848': 'L'
'\u0849': 'L'
'\u084a': 'L'
'\u084b': 'L'
'\u084c': 'L'
'\u084d': 'L'
'\u084e': 'L'
'\u084f': 'L'
'\u0850': 'L'
'\u0851': 'L'
'\u0852': 'L'
'\u0853': 'L'
'\u0854': 'L'
'\u0855': 'L'
'\u0856': 'L'
'\u0857': 'L'
'\u0858': 'L'
'\u08a0': 'L'
'\u08a1': 'L'
'\u08a2': 'L'
'\u08a3': 'L'
'\u08a4': 'L'
'\u08a5': 'L'
'\u08a6': 'L'
'\u08a7': 'L'
'\u08a8': 'L'
'\u08a9': 'L'
'\u08aa': 'L'
'\u08ab': 'L'
'\u08ac': 'L'
'\u08ad': 'L'
'\u08ae': 'L'
'\u08af': 'L'
'\u08b0': 'L'
'\u08b1': 'L'
'\u08b2': 'L'
'\u08b3': 'L'
'\u08b4': 'L'
'\u0904': 'L'
'\u0905': 'L'
'\u0906': 'L'
'\u0907': 'L'
'\u0908': 'L'
'\u0909': 'L'
'\u090a': 'L'
'\u090b': 'L'
'\u090c': 'L'
'\u090d': 'L'
'\u090e': 'L'
'\u090f': 'L'
'\u0910': 'L'
'\u0911': 'L'
'\u0912': 'L'
'\u0913': 'L'
'\u0914': 'L'
'\u0915': 'L'
'\u0916': 'L'
'\u0917': 'L'
'\u0918': 'L'
'\u0919': 'L'
'\u091a': 'L'
'\u091b': 'L'
'\u091c': 'L'
'\u091d': 'L'
'\u091e': 'L'
'\u091f': 'L'
'\u0920': 'L'
'\u0921': 'L'
'\u0922': 'L'
'\u0923': 'L'
'\u0924': 'L'
'\u0925': 'L'
'\u0926': 'L'
'\u0927': 'L'
'\u0928': 'L'
'\u0929': 'L'
'\u092a': 'L'
'\u092b': 'L'
'\u092c': 'L'
'\u092d': 'L'
'\u092e': 'L'
'\u092f': 'L'
'\u0930': 'L'
'\u0931': 'L'
'\u0932': 'L'
'\u0933': 'L'
'\u0934': 'L'
'\u0935': 'L'
'\u0936': 'L'
'\u0937': 'L'
'\u0938': 'L'
'\u0939': 'L'
'\u093d': 'L'
'\u0950': 'L'
'\u0958': 'L'
'\u0959': 'L'
'\u095a': 'L'
'\u095b': 'L'
'\u095c': 'L'
'\u095d': 'L'
'\u095e': 'L'
'\u095f': 'L'
'\u0960': 'L'
'\u0961': 'L'
'\u0966': 'N'
'\u0967': 'N'
'\u0968': 'N'
'\u0969': 'N'
'\u096a': 'N'
'\u096b': 'N'
'\u096c': 'N'
'\u096d': 'N'
'\u096e': 'N'
'\u096f': 'N'
'\u0971': 'L'
'\u0972': 'L'
'\u0973': 'L'
'\u0974': 'L'
'\u0975': 'L'
'\u0976': 'L'
'\u0977': 'L'
'\u0978': 'L'
'\u0979': 'L'
'\u097a': 'L'
'\u097b': 'L'
'\u097c': 'L'
'\u097d': 'L'
'\u097e': 'L'
'\u097f': 'L'
'\u0980': 'L'
'\u0985': 'L'
'\u0986': 'L'
'\u0987': 'L'
'\u0988': 'L'
'\u0989': 'L'
'\u098a': 'L'
'\u098b': 'L'
'\u098c': 'L'
'\u098f': 'L'
'\u0990': 'L'
'\u0993': 'L'
'\u0994': 'L'
'\u0995': 'L'
'\u0996': 'L'
'\u0997': 'L'
'\u0998': 'L'
'\u0999': 'L'
'\u099a': 'L'
'\u099b': 'L'
'\u099c': 'L'
'\u099d': 'L'
'\u099e': 'L'
'\u099f': 'L'
'\u09a0': 'L'
'\u09a1': 'L'
'\u09a2': 'L'
'\u09a3': 'L'
'\u09a4': 'L'
'\u09a5': 'L'
'\u09a6': 'L'
'\u09a7': 'L'
'\u09a8': 'L'
'\u09aa': 'L'
'\u09ab': 'L'
'\u09ac': 'L'
'\u09ad': 'L'
'\u09ae': 'L'
'\u09af': 'L'
'\u09b0': 'L'
'\u09b2': 'L'
'\u09b6': 'L'
'\u09b7': 'L'
'\u09b8': 'L'
'\u09b9': 'L'
'\u09bd': 'L'
'\u09ce': 'L'
'\u09dc': 'L'
'\u09dd': 'L'
'\u09df': 'L'
'\u09e0': 'L'
'\u09e1': 'L'
'\u09e6': 'N'
'\u09e7': 'N'
'\u09e8': 'N'
'\u09e9': 'N'
'\u09ea': 'N'
'\u09eb': 'N'
'\u09ec': 'N'
'\u09ed': 'N'
'\u09ee': 'N'
'\u09ef': 'N'
'\u09f0': 'L'
'\u09f1': 'L'
'\u09f4': 'N'
'\u09f5': 'N'
'\u09f6': 'N'
'\u09f7': 'N'
'\u09f8': 'N'
'\u09f9': 'N'
'\u0a05': 'L'
'\u0a06': 'L'
'\u0a07': 'L'
'\u0a08': 'L'
'\u0a09': 'L'
'\u0a0a': 'L'
'\u0a0f': 'L'
'\u0a10': 'L'
'\u0a13': 'L'
'\u0a14': 'L'
'\u0a15': 'L'
'\u0a16': 'L'
'\u0a17': 'L'
'\u0a18': 'L'
'\u0a19': 'L'
'\u0a1a': 'L'
'\u0a1b': 'L'
'\u0a1c': 'L'
'\u0a1d': 'L'
'\u0a1e': 'L'
'\u0a1f': 'L'
'\u0a20': 'L'
'\u0a21': 'L'
'\u0a22': 'L'
'\u0a23': 'L'
'\u0a24': 'L'
'\u0a25': 'L'
'\u0a26': 'L'
'\u0a27': 'L'
'\u0a28': 'L'
'\u0a2a': 'L'
'\u0a2b': 'L'
'\u0a2c': 'L'
'\u0a2d': 'L'
'\u0a2e': 'L'
'\u0a2f': 'L'
'\u0a30': 'L'
'\u0a32': 'L'
'\u0a33': 'L'
'\u0a35': 'L'
'\u0a36': 'L'
'\u0a38': 'L'
'\u0a39': 'L'
'\u0a59': 'L'
'\u0a5a': 'L'
'\u0a5b': 'L'
'\u0a5c': 'L'
'\u0a5e': 'L'
'\u0a66': 'N'
'\u0a67': 'N'
'\u0a68': 'N'
'\u0a69': 'N'
'\u0a6a': 'N'
'\u0a6b': 'N'
'\u0a6c': 'N'
'\u0a6d': 'N'
'\u0a6e': 'N'
'\u0a6f': 'N'
'\u0a72': 'L'
'\u0a73': 'L'
'\u0a74': 'L'
'\u0a85': 'L'
'\u0a86': 'L'
'\u0a87': 'L'
'\u0a88': 'L'
'\u0a89': 'L'
'\u0a8a': 'L'
'\u0a8b': 'L'
'\u0a8c': 'L'
'\u0a8d': 'L'
'\u0a8f': 'L'
'\u0a90': 'L'
'\u0a91': 'L'
'\u0a93': 'L'
'\u0a94': 'L'
'\u0a95': 'L'
'\u0a96': 'L'
'\u0a97': 'L'
'\u0a98': 'L'
'\u0a99': 'L'
'\u0a9a': 'L'
'\u0a9b': 'L'
'\u0a9c': 'L'
'\u0a9d': 'L'
'\u0a9e': 'L'
'\u0a9f': 'L'
'\u0aa0': 'L'
'\u0aa1': 'L'
'\u0aa2': 'L'
'\u0aa3': 'L'
'\u0aa4': 'L'
'\u0aa5': 'L'
'\u0aa6': 'L'
'\u0aa7': 'L'
'\u0aa8': 'L'
'\u0aaa': 'L'
'\u0aab': 'L'
'\u0aac': 'L'
'\u0aad': 'L'
'\u0aae': 'L'
'\u0aaf': 'L'
'\u0ab0': 'L'
'\u0ab2': 'L'
'\u0ab3': 'L'
'\u0ab5': 'L'
'\u0ab6': 'L'
'\u0ab7': 'L'
'\u0ab8': 'L'
'\u0ab9': 'L'
'\u0abd': 'L'
'\u0ad0': 'L'
'\u0ae0': 'L'
'\u0ae1': 'L'
'\u0ae6': 'N'
'\u0ae7': 'N'
'\u0ae8': 'N'
'\u0ae9': 'N'
'\u0aea': 'N'
'\u0aeb': 'N'
'\u0aec': 'N'
'\u0aed': 'N'
'\u0aee': 'N'
'\u0aef': 'N'
'\u0af9': 'L'
'\u0b05': 'L'
'\u0b06': 'L'
'\u0b07': 'L'
'\u0b08': 'L'
'\u0b09': 'L'
'\u0b0a': 'L'
'\u0b0b': 'L'
'\u0b0c': 'L'
'\u0b0f': 'L'
'\u0b10': 'L'
'\u0b13': 'L'
'\u0b14': 'L'
'\u0b15': 'L'
'\u0b16': 'L'
'\u0b17': 'L'
'\u0b18': 'L'
'\u0b19': 'L'
'\u0b1a': 'L'
'\u0b1b': 'L'
'\u0b1c': 'L'
'\u0b1d': 'L'
'\u0b1e': 'L'
'\u0b1f': 'L'
'\u0b20': 'L'
'\u0b21': 'L'
'\u0b22': 'L'
'\u0b23': 'L'
'\u0b24': 'L'
'\u0b25': 'L'
'\u0b26': 'L'
'\u0b27': 'L'
'\u0b28': 'L'
'\u0b2a': 'L'
'\u0b2b': 'L'
'\u0b2c': 'L'
'\u0b2d': 'L'
'\u0b2e': 'L'
'\u0b2f': 'L'
'\u0b30': 'L'
'\u0b32': 'L'
'\u0b33': 'L'
'\u0b35': 'L'
'\u0b36': 'L'
'\u0b37': 'L'
'\u0b38': 'L'
'\u0b39': 'L'
'\u0b3d': 'L'
'\u0b5c': 'L'
'\u0b5d': 'L'
'\u0b5f': 'L'
'\u0b60': 'L'
'\u0b61': 'L'
'\u0b66': 'N'
'\u0b67': 'N'
'\u0b68': 'N'
'\u0b69': 'N'
'\u0b6a': 'N'
'\u0b6b': 'N'
'\u0b6c': 'N'
'\u0b6d': 'N'
'\u0b6e': 'N'
'\u0b6f': 'N'
'\u0b71': 'L'
'\u0b72': 'N'
'\u0b73': 'N'
'\u0b74': 'N'
'\u0b75': 'N'
'\u0b76': 'N'
'\u0b77': 'N'
'\u0b83': 'L'
'\u0b85': 'L'
'\u0b86': 'L'
'\u0b87': 'L'
'\u0b88': 'L'
'\u0b89': 'L'
'\u0b8a': 'L'
'\u0b8e': 'L'
'\u0b8f': 'L'
'\u0b90': 'L'
'\u0b92': 'L'
'\u0b93': 'L'
'\u0b94': 'L'
'\u0b95': 'L'
'\u0b99': 'L'
'\u0b9a': 'L'
'\u0b9c': 'L'
'\u0b9e': 'L'
'\u0b9f': 'L'
'\u0ba3': 'L'
'\u0ba4': 'L'
'\u0ba8': 'L'
'\u0ba9': 'L'
'\u0baa': 'L'
'\u0bae': 'L'
'\u0baf': 'L'
'\u0bb0': 'L'
'\u0bb1': 'L'
'\u0bb2': 'L'
'\u0bb3': 'L'
'\u0bb4': 'L'
'\u0bb5': 'L'
'\u0bb6': 'L'
'\u0bb7': 'L'
'\u0bb8': 'L'
'\u0bb9': 'L'
'\u0bd0': 'L'
'\u0be6': 'N'
'\u0be7': 'N'
'\u0be8': 'N'
'\u0be9': 'N'
'\u0bea': 'N'
'\u0beb': 'N'
'\u0bec': 'N'
'\u0bed': 'N'
'\u0bee': 'N'
'\u0bef': 'N'
'\u0bf0': 'N'
'\u0bf1': 'N'
'\u0bf2': 'N'
'\u0c05': 'L'
'\u0c06': 'L'
'\u0c07': 'L'
'\u0c08': 'L'
'\u0c09': 'L'
'\u0c0a': 'L'
'\u0c0b': 'L'
'\u0c0c': 'L'
'\u0c0e': 'L'
'\u0c0f': 'L'
'\u0c10': 'L'
'\u0c12': 'L'
'\u0c13': 'L'
'\u0c14': 'L'
'\u0c15': 'L'
'\u0c16': 'L'
'\u0c17': 'L'
'\u0c18': 'L'
'\u0c19': 'L'
'\u0c1a': 'L'
'\u0c1b': 'L'
'\u0c1c': 'L'
'\u0c1d': 'L'
'\u0c1e': 'L'
'\u0c1f': 'L'
'\u0c20': 'L'
'\u0c21': 'L'
'\u0c22': 'L'
'\u0c23': 'L'
'\u0c24': 'L'
'\u0c25': 'L'
'\u0c26': 'L'
'\u0c27': 'L'
'\u0c28': 'L'
'\u0c2a': 'L'
'\u0c2b': 'L'
'\u0c2c': 'L'
'\u0c2d': 'L'
'\u0c2e': 'L'
'\u0c2f': 'L'
'\u0c30': 'L'
'\u0c31': 'L'
'\u0c32': 'L'
'\u0c33': 'L'
'\u0c34': 'L'
'\u0c35': 'L'
'\u0c36': 'L'
'\u0c37': 'L'
'\u0c38': 'L'
'\u0c39': 'L'
'\u0c3d': 'L'
'\u0c58': 'L'
'\u0c59': 'L'
'\u0c5a': 'L'
'\u0c60': 'L'
'\u0c61': 'L'
'\u0c66': 'N'
'\u0c67': 'N'
'\u0c68': 'N'
'\u0c69': 'N'
'\u0c6a': 'N'
'\u0c6b': 'N'
'\u0c6c': 'N'
'\u0c6d': 'N'
'\u0c6e': 'N'
'\u0c6f': 'N'
'\u0c78': 'N'
'\u0c79': 'N'
'\u0c7a': 'N'
'\u0c7b': 'N'
'\u0c7c': 'N'
'\u0c7d': 'N'
'\u0c7e': 'N'
'\u0c85': 'L'
'\u0c86': 'L'
'\u0c87': 'L'
'\u0c88': 'L'
'\u0c89': 'L'
'\u0c8a': 'L'
'\u0c8b': 'L'
'\u0c8c': 'L'
'\u0c8e': 'L'
'\u0c8f': 'L'
'\u0c90': 'L'
'\u0c92': 'L'
'\u0c93': 'L'
'\u0c94': 'L'
'\u0c95': 'L'
'\u0c96': 'L'
'\u0c97': 'L'
'\u0c98': 'L'
'\u0c99': 'L'
'\u0c9a': 'L'
'\u0c9b': 'L'
'\u0c9c': 'L'
'\u0c9d': 'L'
'\u0c9e': 'L'
'\u0c9f': 'L'
'\u0ca0': 'L'
'\u0ca1': 'L'
'\u0ca2': 'L'
'\u0ca3': 'L'
'\u0ca4': 'L'
'\u0ca5': 'L'
'\u0ca6': 'L'
'\u0ca7': 'L'
'\u0ca8': 'L'
'\u0caa': 'L'
'\u0cab': 'L'
'\u0cac': 'L'
'\u0cad': 'L'
'\u0cae': 'L'
'\u0caf': 'L'
'\u0cb0': 'L'
'\u0cb1': 'L'
'\u0cb2': 'L'
'\u0cb3': 'L'
'\u0cb5': 'L'
'\u0cb6': 'L'
'\u0cb7': 'L'
'\u0cb8': 'L'
'\u0cb9': 'L'
'\u0cbd': 'L'
'\u0cde': 'L'
'\u0ce0': 'L'
'\u0ce1': 'L'
'\u0ce6': 'N'
'\u0ce7': 'N'
'\u0ce8': 'N'
'\u0ce9': 'N'
'\u0cea': 'N'
'\u0ceb': 'N'
'\u0cec': 'N'
'\u0ced': 'N'
'\u0cee': 'N'
'\u0cef': 'N'
'\u0cf1': 'L'
'\u0cf2': 'L'
'\u0d05': 'L'
'\u0d06': 'L'
'\u0d07': 'L'
'\u0d08': 'L'
'\u0d09': 'L'
'\u0d0a': 'L'
'\u0d0b': 'L'
'\u0d0c': 'L'
'\u0d0e': 'L'
'\u0d0f': 'L'
'\u0d10': 'L'
'\u0d12': 'L'
'\u0d13': 'L'
'\u0d14': 'L'
'\u0d15': 'L'
'\u0d16': 'L'
'\u0d17': 'L'
'\u0d18': 'L'
'\u0d19': 'L'
'\u0d1a': 'L'
'\u0d1b': 'L'
'\u0d1c': 'L'
'\u0d1d': 'L'
'\u0d1e': 'L'
'\u0d1f': 'L'
'\u0d20': 'L'
'\u0d21': 'L'
'\u0d22': 'L'
'\u0d23': 'L'
'\u0d24': 'L'
'\u0d25': 'L'
'\u0d26': 'L'
'\u0d27': 'L'
'\u0d28': 'L'
'\u0d29': 'L'
'\u0d2a': 'L'
'\u0d2b': 'L'
'\u0d2c': 'L'
'\u0d2d': 'L'
'\u0d2e': 'L'
'\u0d2f': 'L'
'\u0d30': 'L'
'\u0d31': 'L'
'\u0d32': 'L'
'\u0d33': 'L'
'\u0d34': 'L'
'\u0d35': 'L'
'\u0d36': 'L'
'\u0d37': 'L'
'\u0d38': 'L'
'\u0d39': 'L'
'\u0d3a': 'L'
'\u0d3d': 'L'
'\u0d4e': 'L'
'\u0d5f': 'L'
'\u0d60': 'L'
'\u0d61': 'L'
'\u0d66': 'N'
'\u0d67': 'N'
'\u0d68': 'N'
'\u0d69': 'N'
'\u0d6a': 'N'
'\u0d6b': 'N'
'\u0d6c': 'N'
'\u0d6d': 'N'
'\u0d6e': 'N'
'\u0d6f': 'N'
'\u0d70': 'N'
'\u0d71': 'N'
'\u0d72': 'N'
'\u0d73': 'N'
'\u0d74': 'N'
'\u0d75': 'N'
'\u0d7a': 'L'
'\u0d7b': 'L'
'\u0d7c': 'L'
'\u0d7d': 'L'
'\u0d7e': 'L'
'\u0d7f': 'L'
'\u0d85': 'L'
'\u0d86': 'L'
'\u0d87': 'L'
'\u0d88': 'L'
'\u0d89': 'L'
'\u0d8a': 'L'
'\u0d8b': 'L'
'\u0d8c': 'L'
'\u0d8d': 'L'
'\u0d8e': 'L'
'\u0d8f': 'L'
'\u0d90': 'L'
'\u0d91': 'L'
'\u0d92': 'L'
'\u0d93': 'L'
'\u0d94': 'L'
'\u0d95': 'L'
'\u0d96': 'L'
'\u0d9a': 'L'
'\u0d9b': 'L'
'\u0d9c': 'L'
'\u0d9d': 'L'
'\u0d9e': 'L'
'\u0d9f': 'L'
'\u0da0': 'L'
'\u0da1': 'L'
'\u0da2': 'L'
'\u0da3': 'L'
'\u0da4': 'L'
'\u0da5': 'L'
'\u0da6': 'L'
'\u0da7': 'L'
'\u0da8': 'L'
'\u0da9': 'L'
'\u0daa': 'L'
'\u0dab': 'L'
'\u0dac': 'L'
'\u0dad': 'L'
'\u0dae': 'L'
'\u0daf': 'L'
'\u0db0': 'L'
'\u0db1': 'L'
'\u0db3': 'L'
'\u0db4': 'L'
'\u0db5': 'L'
'\u0db6': 'L'
'\u0db7': 'L'
'\u0db8': 'L'
'\u0db9': 'L'
'\u0dba': 'L'
'\u0dbb': 'L'
'\u0dbd': 'L'
'\u0dc0': 'L'
'\u0dc1': 'L'
'\u0dc2': 'L'
'\u0dc3': 'L'
'\u0dc4': 'L'
'\u0dc5': 'L'
'\u0dc6': 'L'
'\u0de6': 'N'
'\u0de7': 'N'
'\u0de8': 'N'
'\u0de9': 'N'
'\u0dea': 'N'
'\u0deb': 'N'
'\u0dec': 'N'
'\u0ded': 'N'
'\u0dee': 'N'
'\u0def': 'N'
'\u0e01': 'L'
'\u0e02': 'L'
'\u0e03': 'L'
'\u0e04': 'L'
'\u0e05': 'L'
'\u0e06': 'L'
'\u0e07': 'L'
'\u0e08': 'L'
'\u0e09': 'L'
'\u0e0a': 'L'
'\u0e0b': 'L'
'\u0e0c': 'L'
'\u0e0d': 'L'
'\u0e0e': 'L'
'\u0e0f': 'L'
'\u0e10': 'L'
'\u0e11': 'L'
'\u0e12': 'L'
'\u0e13': 'L'
'\u0e14': 'L'
'\u0e15': 'L'
'\u0e16': 'L'
'\u0e17': 'L'
'\u0e18': 'L'
'\u0e19': 'L'
'\u0e1a': 'L'
'\u0e1b': 'L'
'\u0e1c': 'L'
'\u0e1d': 'L'
'\u0e1e': 'L'
'\u0e1f': 'L'
'\u0e20': 'L'
'\u0e21': 'L'
'\u0e22': 'L'
'\u0e23': 'L'
'\u0e24': 'L'
'\u0e25': 'L'
'\u0e26': 'L'
'\u0e27': 'L'
'\u0e28': 'L'
'\u0e29': 'L'
'\u0e2a': 'L'
'\u0e2b': 'L'
'\u0e2c': 'L'
'\u0e2d': 'L'
'\u0e2e': 'L'
'\u0e2f': 'L'
'\u0e30': 'L'
'\u0e32': 'L'
'\u0e33': 'L'
'\u0e40': 'L'
'\u0e41': 'L'
'\u0e42': 'L'
'\u0e43': 'L'
'\u0e44': 'L'
'\u0e45': 'L'
'\u0e46': 'L'
'\u0e50': 'N'
'\u0e51': 'N'
'\u0e52': 'N'
'\u0e53': 'N'
'\u0e54': 'N'
'\u0e55': 'N'
'\u0e56': 'N'
'\u0e57': 'N'
'\u0e58': 'N'
'\u0e59': 'N'
'\u0e81': 'L'
'\u0e82': 'L'
'\u0e84': 'L'
'\u0e87': 'L'
'\u0e88': 'L'
'\u0e8a': 'L'
'\u0e8d': 'L'
'\u0e94': 'L'
'\u0e95': 'L'
'\u0e96': 'L'
'\u0e97': 'L'
'\u0e99': 'L'
'\u0e9a': 'L'
'\u0e9b': 'L'
'\u0e9c': 'L'
'\u0e9d': 'L'
'\u0e9e': 'L'
'\u0e9f': 'L'
'\u0ea1': 'L'
'\u0ea2': 'L'
'\u0ea3': 'L'
'\u0ea5': 'L'
'\u0ea7': 'L'
'\u0eaa': 'L'
'\u0eab': 'L'
'\u0ead': 'L'
'\u0eae': 'L'
'\u0eaf': 'L'
'\u0eb0': 'L'
'\u0eb2': 'L'
'\u0eb3': 'L'
'\u0ebd': 'L'
'\u0ec0': 'L'
'\u0ec1': 'L'
'\u0ec2': 'L'
'\u0ec3': 'L'
'\u0ec4': 'L'
'\u0ec6': 'L'
'\u0ed0': 'N'
'\u0ed1': 'N'
'\u0ed2': 'N'
'\u0ed3': 'N'
'\u0ed4': 'N'
'\u0ed5': 'N'
'\u0ed6': 'N'
'\u0ed7': 'N'
'\u0ed8': 'N'
'\u0ed9': 'N'
'\u0edc': 'L'
'\u0edd': 'L'
'\u0ede': 'L'
'\u0edf': 'L'
'\u0f00': 'L'
'\u0f20': 'N'
'\u0f21': 'N'
'\u0f22': 'N'
'\u0f23': 'N'
'\u0f24': 'N'
'\u0f25': 'N'
'\u0f26': 'N'
'\u0f27': 'N'
'\u0f28': 'N'
'\u0f29': 'N'
'\u0f2a': 'N'
'\u0f2b': 'N'
'\u0f2c': 'N'
'\u0f2d': 'N'
'\u0f2e': 'N'
'\u0f2f': 'N'
'\u0f30': 'N'
'\u0f31': 'N'
'\u0f32': 'N'
'\u0f33': 'N'
'\u0f40': 'L'
'\u0f41': 'L'
'\u0f42': 'L'
'\u0f43': 'L'
'\u0f44': 'L'
'\u0f45': 'L'
'\u0f46': 'L'
'\u0f47': 'L'
'\u0f49': 'L'
'\u0f4a': 'L'
'\u0f4b': 'L'
'\u0f4c': 'L'
'\u0f4d': 'L'
'\u0f4e': 'L'
'\u0f4f': 'L'
'\u0f50': 'L'
'\u0f51': 'L'
'\u0f52': 'L'
'\u0f53': 'L'
'\u0f54': 'L'
'\u0f55': 'L'
'\u0f56': 'L'
'\u0f57': 'L'
'\u0f58': 'L'
'\u0f59': 'L'
'\u0f5a': 'L'
'\u0f5b': 'L'
'\u0f5c': 'L'
'\u0f5d': 'L'
'\u0f5e': 'L'
'\u0f5f': 'L'
'\u0f60': 'L'
'\u0f61': 'L'
'\u0f62': 'L'
'\u0f63': 'L'
'\u0f64': 'L'
'\u0f65': 'L'
'\u0f66': 'L'
'\u0f67': 'L'
'\u0f68': 'L'
'\u0f69': 'L'
'\u0f6a': 'L'
'\u0f6b': 'L'
'\u0f6c': 'L'
'\u0f88': 'L'
'\u0f89': 'L'
'\u0f8a': 'L'
'\u0f8b': 'L'
'\u0f8c': 'L'
'\u1000': 'L'
'\u1001': 'L'
'\u1002': 'L'
'\u1003': 'L'
'\u1004': 'L'
'\u1005': 'L'
'\u1006': 'L'
'\u1007': 'L'
'\u1008': 'L'
'\u1009': 'L'
'\u100a': 'L'
'\u100b': 'L'
'\u100c': 'L'
'\u100d': 'L'
'\u100e': 'L'
'\u100f': 'L'
'\u1010': 'L'
'\u1011': 'L'
'\u1012': 'L'
'\u1013': 'L'
'\u1014': 'L'
'\u1015': 'L'
'\u1016': 'L'
'\u1017': 'L'
'\u1018': 'L'
'\u1019': 'L'
'\u101a': 'L'
'\u101b': 'L'
'\u101c': 'L'
'\u101d': 'L'
'\u101e': 'L'
'\u101f': 'L'
'\u1020': 'L'
'\u1021': 'L'
'\u1022': 'L'
'\u1023': 'L'
'\u1024': 'L'
'\u1025': 'L'
'\u1026': 'L'
'\u1027': 'L'
'\u1028': 'L'
'\u1029': 'L'
'\u102a': 'L'
'\u103f': 'L'
'\u1040': 'N'
'\u1041': 'N'
'\u1042': 'N'
'\u1043': 'N'
'\u1044': 'N'
'\u1045': 'N'
'\u1046': 'N'
'\u1047': 'N'
'\u1048': 'N'
'\u1049': 'N'
'\u1050': 'L'
'\u1051': 'L'
'\u1052': 'L'
'\u1053': 'L'
'\u1054': 'L'
'\u1055': 'L'
'\u105a': 'L'
'\u105b': 'L'
'\u105c': 'L'
'\u105d': 'L'
'\u1061': 'L'
'\u1065': 'L'
'\u1066': 'L'
'\u106e': 'L'
'\u106f': 'L'
'\u1070': 'L'
'\u1075': 'L'
'\u1076': 'L'
'\u1077': 'L'
'\u1078': 'L'
'\u1079': 'L'
'\u107a': 'L'
'\u107b': 'L'
'\u107c': 'L'
'\u107d': 'L'
'\u107e': 'L'
'\u107f': 'L'
'\u1080': 'L'
'\u1081': 'L'
'\u108e': 'L'
'\u1090': 'N'
'\u1091': 'N'
'\u1092': 'N'
'\u1093': 'N'
'\u1094': 'N'
'\u1095': 'N'
'\u1096': 'N'
'\u1097': 'N'
'\u1098': 'N'
'\u1099': 'N'
'\u10a0': 'Lu'
'\u10a1': 'Lu'
'\u10a2': 'Lu'
'\u10a3': 'Lu'
'\u10a4': 'Lu'
'\u10a5': 'Lu'
'\u10a6': 'Lu'
'\u10a7': 'Lu'
'\u10a8': 'Lu'
'\u10a9': 'Lu'
'\u10aa': 'Lu'
'\u10ab': 'Lu'
'\u10ac': 'Lu'
'\u10ad': 'Lu'
'\u10ae': 'Lu'
'\u10af': 'Lu'
'\u10b0': 'Lu'
'\u10b1': 'Lu'
'\u10b2': 'Lu'
'\u10b3': 'Lu'
'\u10b4': 'Lu'
'\u10b5': 'Lu'
'\u10b6': 'Lu'
'\u10b7': 'Lu'
'\u10b8': 'Lu'
'\u10b9': 'Lu'
'\u10ba': 'Lu'
'\u10bb': 'Lu'
'\u10bc': 'Lu'
'\u10bd': 'Lu'
'\u10be': 'Lu'
'\u10bf': 'Lu'
'\u10c0': 'Lu'
'\u10c1': 'Lu'
'\u10c2': 'Lu'
'\u10c3': 'Lu'
'\u10c4': 'Lu'
'\u10c5': 'Lu'
'\u10c7': 'Lu'
'\u10cd': 'Lu'
'\u10d0': 'L'
'\u10d1': 'L'
'\u10d2': 'L'
'\u10d3': 'L'
'\u10d4': 'L'
'\u10d5': 'L'
'\u10d6': 'L'
'\u10d7': 'L'
'\u10d8': 'L'
'\u10d9': 'L'
'\u10da': 'L'
'\u10db': 'L'
'\u10dc': 'L'
'\u10dd': 'L'
'\u10de': 'L'
'\u10df': 'L'
'\u10e0': 'L'
'\u10e1': 'L'
'\u10e2': 'L'
'\u10e3': 'L'
'\u10e4': 'L'
'\u10e5': 'L'
'\u10e6': 'L'
'\u10e7': 'L'
'\u10e8': 'L'
'\u10e9': 'L'
'\u10ea': 'L'
'\u10eb': 'L'
'\u10ec': 'L'
'\u10ed': 'L'
'\u10ee': 'L'
'\u10ef': 'L'
'\u10f0': 'L'
'\u10f1': 'L'
'\u10f2': 'L'
'\u10f3': 'L'
'\u10f4': 'L'
'\u10f5': 'L'
'\u10f6': 'L'
'\u10f7': 'L'
'\u10f8': 'L'
'\u10f9': 'L'
'\u10fa': 'L'
'\u10fc': 'L'
'\u10fd': 'L'
'\u10fe': 'L'
'\u10ff': 'L'
'\u1100': 'L'
'\u1101': 'L'
'\u1102': 'L'
'\u1103': 'L'
'\u1104': 'L'
'\u1105': 'L'
'\u1106': 'L'
'\u1107': 'L'
'\u1108': 'L'
'\u1109': 'L'
'\u110a': 'L'
'\u110b': 'L'
'\u110c': 'L'
'\u110d': 'L'
'\u110e': 'L'
'\u110f': 'L'
'\u1110': 'L'
'\u1111': 'L'
'\u1112': 'L'
'\u1113': 'L'
'\u1114': 'L'
'\u1115': 'L'
'\u1116': 'L'
'\u1117': 'L'
'\u1118': 'L'
'\u1119': 'L'
'\u111a': 'L'
'\u111b': 'L'
'\u111c': 'L'
'\u111d': 'L'
'\u111e': 'L'
'\u111f': 'L'
'\u1120': 'L'
'\u1121': 'L'
'\u1122': 'L'
'\u1123': 'L'
'\u1124': 'L'
'\u1125': 'L'
'\u1126': 'L'
'\u1127': 'L'
'\u1128': 'L'
'\u1129': 'L'
'\u112a': 'L'
'\u112b': 'L'
'\u112c': 'L'
'\u112d': 'L'
'\u112e': 'L'
'\u112f': 'L'
'\u1130': 'L'
'\u1131': 'L'
'\u1132': 'L'
'\u1133': 'L'
'\u1134': 'L'
'\u1135': 'L'
'\u1136': 'L'
'\u1137': 'L'
'\u1138': 'L'
'\u1139': 'L'
'\u113a': 'L'
'\u113b': 'L'
'\u113c': 'L'
'\u113d': 'L'
'\u113e': 'L'
'\u113f': 'L'
'\u1140': 'L'
'\u1141': 'L'
'\u1142': 'L'
'\u1143': 'L'
'\u1144': 'L'
'\u1145': 'L'
'\u1146': 'L'
'\u1147': 'L'
'\u1148': 'L'
'\u1149': 'L'
'\u114a': 'L'
'\u114b': 'L'
'\u114c': 'L'
'\u114d': 'L'
'\u114e': 'L'
'\u114f': 'L'
'\u1150': 'L'
'\u1151': 'L'
'\u1152': 'L'
'\u1153': 'L'
'\u1154': 'L'
'\u1155': 'L'
'\u1156': 'L'
'\u1157': 'L'
'\u1158': 'L'
'\u1159': 'L'
'\u115a': 'L'
'\u115b': 'L'
'\u115c': 'L'
'\u115d': 'L'
'\u115e': 'L'
'\u115f': 'L'
'\u1160': 'L'
'\u1161': 'L'
'\u1162': 'L'
'\u1163': 'L'
'\u1164': 'L'
'\u1165': 'L'
'\u1166': 'L'
'\u1167': 'L'
'\u1168': 'L'
'\u1169': 'L'
'\u116a': 'L'
'\u116b': 'L'
'\u116c': 'L'
'\u116d': 'L'
'\u116e': 'L'
'\u116f': 'L'
'\u1170': 'L'
'\u1171': 'L'
'\u1172': 'L'
'\u1173': 'L'
'\u1174': 'L'
'\u1175': 'L'
'\u1176': 'L'
'\u1177': 'L'
'\u1178': 'L'
'\u1179': 'L'
'\u117a': 'L'
'\u117b': 'L'
'\u117c': 'L'
'\u117d': 'L'
'\u117e': 'L'
'\u117f': 'L'
'\u1180': 'L'
'\u1181': 'L'
'\u1182': 'L'
'\u1183': 'L'
'\u1184': 'L'
'\u1185': 'L'
'\u1186': 'L'
'\u1187': 'L'
'\u1188': 'L'
'\u1189': 'L'
'\u118a': 'L'
'\u118b': 'L'
'\u118c': 'L'
'\u118d': 'L'
'\u118e': 'L'
'\u118f': 'L'
'\u1190': 'L'
'\u1191': 'L'
'\u1192': 'L'
'\u1193': 'L'
'\u1194': 'L'
'\u1195': 'L'
'\u1196': 'L'
'\u1197': 'L'
'\u1198': 'L'
'\u1199': 'L'
'\u119a': 'L'
'\u119b': 'L'
'\u119c': 'L'
'\u119d': 'L'
'\u119e': 'L'
'\u119f': 'L'
'\u11a0': 'L'
'\u11a1': 'L'
'\u11a2': 'L'
'\u11a3': 'L'
'\u11a4': 'L'
'\u11a5': 'L'
'\u11a6': 'L'
'\u11a7': 'L'
'\u11a8': 'L'
'\u11a9': 'L'
'\u11aa': 'L'
'\u11ab': 'L'
'\u11ac': 'L'
'\u11ad': 'L'
'\u11ae': 'L'
'\u11af': 'L'
'\u11b0': 'L'
'\u11b1': 'L'
'\u11b2': 'L'
'\u11b3': 'L'
'\u11b4': 'L'
'\u11b5': 'L'
'\u11b6': 'L'
'\u11b7': 'L'
'\u11b8': 'L'
'\u11b9': 'L'
'\u11ba': 'L'
'\u11bb': 'L'
'\u11bc': 'L'
'\u11bd': 'L'
'\u11be': 'L'
'\u11bf': 'L'
'\u11c0': 'L'
'\u11c1': 'L'
'\u11c2': 'L'
'\u11c3': 'L'
'\u11c4': 'L'
'\u11c5': 'L'
'\u11c6': 'L'
'\u11c7': 'L'
'\u11c8': 'L'
'\u11c9': 'L'
'\u11ca': 'L'
'\u11cb': 'L'
'\u11cc': 'L'
'\u11cd': 'L'
'\u11ce': 'L'
'\u11cf': 'L'
'\u11d0': 'L'
'\u11d1': 'L'
'\u11d2': 'L'
'\u11d3': 'L'
'\u11d4': 'L'
'\u11d5': 'L'
'\u11d6': 'L'
'\u11d7': 'L'
'\u11d8': 'L'
'\u11d9': 'L'
'\u11da': 'L'
'\u11db': 'L'
'\u11dc': 'L'
'\u11dd': 'L'
'\u11de': 'L'
'\u11df': 'L'
'\u11e0': 'L'
'\u11e1': 'L'
'\u11e2': 'L'
'\u11e3': 'L'
'\u11e4': 'L'
'\u11e5': 'L'
'\u11e6': 'L'
'\u11e7': 'L'
'\u11e8': 'L'
'\u11e9': 'L'
'\u11ea': 'L'
'\u11eb': 'L'
'\u11ec': 'L'
'\u11ed': 'L'
'\u11ee': 'L'
'\u11ef': 'L'
'\u11f0': 'L'
'\u11f1': 'L'
'\u11f2': 'L'
'\u11f3': 'L'
'\u11f4': 'L'
'\u11f5': 'L'
'\u11f6': 'L'
'\u11f7': 'L'
'\u11f8': 'L'
'\u11f9': 'L'
'\u11fa': 'L'
'\u11fb': 'L'
'\u11fc': 'L'
'\u11fd': 'L'
'\u11fe': 'L'
'\u11ff': 'L'
'\u1200': 'L'
'\u1201': 'L'
'\u1202': 'L'
'\u1203': 'L'
'\u1204': 'L'
'\u1205': 'L'
'\u1206': 'L'
'\u1207': 'L'
'\u1208': 'L'
'\u1209': 'L'
'\u120a': 'L'
'\u120b': 'L'
'\u120c': 'L'
'\u120d': 'L'
'\u120e': 'L'
'\u120f': 'L'
'\u1210': 'L'
'\u1211': 'L'
'\u1212': 'L'
'\u1213': 'L'
'\u1214': 'L'
'\u1215': 'L'
'\u1216': 'L'
'\u1217': 'L'
'\u1218': 'L'
'\u1219': 'L'
'\u121a': 'L'
'\u121b': 'L'
'\u121c': 'L'
'\u121d': 'L'
'\u121e': 'L'
'\u121f': 'L'
'\u1220': 'L'
'\u1221': 'L'
'\u1222': 'L'
'\u1223': 'L'
'\u1224': 'L'
'\u1225': 'L'
'\u1226': 'L'
'\u1227': 'L'
'\u1228': 'L'
'\u1229': 'L'
'\u122a': 'L'
'\u122b': 'L'
'\u122c': 'L'
'\u122d': 'L'
'\u122e': 'L'
'\u122f': 'L'
'\u1230': 'L'
'\u1231': 'L'
'\u1232': 'L'
'\u1233': 'L'
'\u1234': 'L'
'\u1235': 'L'
'\u1236': 'L'
'\u1237': 'L'
'\u1238': 'L'
'\u1239': 'L'
'\u123a': 'L'
'\u123b': 'L'
'\u123c': 'L'
'\u123d': 'L'
'\u123e': 'L'
'\u123f': 'L'
'\u1240': 'L'
'\u1241': 'L'
'\u1242': 'L'
'\u1243': 'L'
'\u1244': 'L'
'\u1245': 'L'
'\u1246': 'L'
'\u1247': 'L'
'\u1248': 'L'
'\u124a': 'L'
'\u124b': 'L'
'\u124c': 'L'
'\u124d': 'L'
'\u1250': 'L'
'\u1251': 'L'
'\u1252': 'L'
'\u1253': 'L'
'\u1254': 'L'
'\u1255': 'L'
'\u1256': 'L'
'\u1258': 'L'
'\u125a': 'L'
'\u125b': 'L'
'\u125c': 'L'
'\u125d': 'L'
'\u1260': 'L'
'\u1261': 'L'
'\u1262': 'L'
'\u1263': 'L'
'\u1264': 'L'
'\u1265': 'L'
'\u1266': 'L'
'\u1267': 'L'
'\u1268': 'L'
'\u1269': 'L'
'\u126a': 'L'
'\u126b': 'L'
'\u126c': 'L'
'\u126d': 'L'
'\u126e': 'L'
'\u126f': 'L'
'\u1270': 'L'
'\u1271': 'L'
'\u1272': 'L'
'\u1273': 'L'
'\u1274': 'L'
'\u1275': 'L'
'\u1276': 'L'
'\u1277': 'L'
'\u1278': 'L'
'\u1279': 'L'
'\u127a': 'L'
'\u127b': 'L'
'\u127c': 'L'
'\u127d': 'L'
'\u127e': 'L'
'\u127f': 'L'
'\u1280': 'L'
'\u1281': 'L'
'\u1282': 'L'
'\u1283': 'L'
'\u1284': 'L'
'\u1285': 'L'
'\u1286': 'L'
'\u1287': 'L'
'\u1288': 'L'
'\u128a': 'L'
'\u128b': 'L'
'\u128c': 'L'
'\u128d': 'L'
'\u1290': 'L'
'\u1291': 'L'
'\u1292': 'L'
'\u1293': 'L'
'\u1294': 'L'
'\u1295': 'L'
'\u1296': 'L'
'\u1297': 'L'
'\u1298': 'L'
'\u1299': 'L'
'\u129a': 'L'
'\u129b': 'L'
'\u129c': 'L'
'\u129d': 'L'
'\u129e': 'L'
'\u129f': 'L'
'\u12a0': 'L'
'\u12a1': 'L'
'\u12a2': 'L'
'\u12a3': 'L'
'\u12a4': 'L'
'\u12a5': 'L'
'\u12a6': 'L'
'\u12a7': 'L'
'\u12a8': 'L'
'\u12a9': 'L'
'\u12aa': 'L'
'\u12ab': 'L'
'\u12ac': 'L'
'\u12ad': 'L'
'\u12ae': 'L'
'\u12af': 'L'
'\u12b0': 'L'
'\u12b2': 'L'
'\u12b3': 'L'
'\u12b4': 'L'
'\u12b5': 'L'
'\u12b8': 'L'
'\u12b9': 'L'
'\u12ba': 'L'
'\u12bb': 'L'
'\u12bc': 'L'
'\u12bd': 'L'
'\u12be': 'L'
'\u12c0': 'L'
'\u12c2': 'L'
'\u12c3': 'L'
'\u12c4': 'L'
'\u12c5': 'L'
'\u12c8': 'L'
'\u12c9': 'L'
'\u12ca': 'L'
'\u12cb': 'L'
'\u12cc': 'L'
'\u12cd': 'L'
'\u12ce': 'L'
'\u12cf': 'L'
'\u12d0': 'L'
'\u12d1': 'L'
'\u12d2': 'L'
'\u12d3': 'L'
'\u12d4': 'L'
'\u12d5': 'L'
'\u12d6': 'L'
'\u12d8': 'L'
'\u12d9': 'L'
'\u12da': 'L'
'\u12db': 'L'
'\u12dc': 'L'
'\u12dd': 'L'
'\u12de': 'L'
'\u12df': 'L'
'\u12e0': 'L'
'\u12e1': 'L'
'\u12e2': 'L'
'\u12e3': 'L'
'\u12e4': 'L'
'\u12e5': 'L'
'\u12e6': 'L'
'\u12e7': 'L'
'\u12e8': 'L'
'\u12e9': 'L'
'\u12ea': 'L'
'\u12eb': 'L'
'\u12ec': 'L'
'\u12ed': 'L'
'\u12ee': 'L'
'\u12ef': 'L'
'\u12f0': 'L'
'\u12f1': 'L'
'\u12f2': 'L'
'\u12f3': 'L'
'\u12f4': 'L'
'\u12f5': 'L'
'\u12f6': 'L'
'\u12f7': 'L'
'\u12f8': 'L'
'\u12f9': 'L'
'\u12fa': 'L'
'\u12fb': 'L'
'\u12fc': 'L'
'\u12fd': 'L'
'\u12fe': 'L'
'\u12ff': 'L'
'\u1300': 'L'
'\u1301': 'L'
'\u1302': 'L'
'\u1303': 'L'
'\u1304': 'L'
'\u1305': 'L'
'\u1306': 'L'
'\u1307': 'L'
'\u1308': 'L'
'\u1309': 'L'
'\u130a': 'L'
'\u130b': 'L'
'\u130c': 'L'
'\u130d': 'L'
'\u130e': 'L'
'\u130f': 'L'
'\u1310': 'L'
'\u1312': 'L'
'\u1313': 'L'
'\u1314': 'L'
'\u1315': 'L'
'\u1318': 'L'
'\u1319': 'L'
'\u131a': 'L'
'\u131b': 'L'
'\u131c': 'L'
'\u131d': 'L'
'\u131e': 'L'
'\u131f': 'L'
'\u1320': 'L'
'\u1321': 'L'
'\u1322': 'L'
'\u1323': 'L'
'\u1324': 'L'
'\u1325': 'L'
'\u1326': 'L'
'\u1327': 'L'
'\u1328': 'L'
'\u1329': 'L'
'\u132a': 'L'
'\u132b': 'L'
'\u132c': 'L'
'\u132d': 'L'
'\u132e': 'L'
'\u132f': 'L'
'\u1330': 'L'
'\u1331': 'L'
'\u1332': 'L'
'\u1333': 'L'
'\u1334': 'L'
'\u1335': 'L'
'\u1336': 'L'
'\u1337': 'L'
'\u1338': 'L'
'\u1339': 'L'
'\u133a': 'L'
'\u133b': 'L'
'\u133c': 'L'
'\u133d': 'L'
'\u133e': 'L'
'\u133f': 'L'
'\u1340': 'L'
'\u1341': 'L'
'\u1342': 'L'
'\u1343': 'L'
'\u1344': 'L'
'\u1345': 'L'
'\u1346': 'L'
'\u1347': 'L'
'\u1348': 'L'
'\u1349': 'L'
'\u134a': 'L'
'\u134b': 'L'
'\u134c': 'L'
'\u134d': 'L'
'\u134e': 'L'
'\u134f': 'L'
'\u1350': 'L'
'\u1351': 'L'
'\u1352': 'L'
'\u1353': 'L'
'\u1354': 'L'
'\u1355': 'L'
'\u1356': 'L'
'\u1357': 'L'
'\u1358': 'L'
'\u1359': 'L'
'\u135a': 'L'
'\u1369': 'N'
'\u136a': 'N'
'\u136b': 'N'
'\u136c': 'N'
'\u136d': 'N'
'\u136e': 'N'
'\u136f': 'N'
'\u1370': 'N'
'\u1371': 'N'
'\u1372': 'N'
'\u1373': 'N'
'\u1374': 'N'
'\u1375': 'N'
'\u1376': 'N'
'\u1377': 'N'
'\u1378': 'N'
'\u1379': 'N'
'\u137a': 'N'
'\u137b': 'N'
'\u137c': 'N'
'\u1380': 'L'
'\u1381': 'L'
'\u1382': 'L'
'\u1383': 'L'
'\u1384': 'L'
'\u1385': 'L'
'\u1386': 'L'
'\u1387': 'L'
'\u1388': 'L'
'\u1389': 'L'
'\u138a': 'L'
'\u138b': 'L'
'\u138c': 'L'
'\u138d': 'L'
'\u138e': 'L'
'\u138f': 'L'
'\u13a0': 'Lu'
'\u13a1': 'Lu'
'\u13a2': 'Lu'
'\u13a3': 'Lu'
'\u13a4': 'Lu'
'\u13a5': 'Lu'
'\u13a6': 'Lu'
'\u13a7': 'Lu'
'\u13a8': 'Lu'
'\u13a9': 'Lu'
'\u13aa': 'Lu'
'\u13ab': 'Lu'
'\u13ac': 'Lu'
'\u13ad': 'Lu'
'\u13ae': 'Lu'
'\u13af': 'Lu'
'\u13b0': 'Lu'
'\u13b1': 'Lu'
'\u13b2': 'Lu'
'\u13b3': 'Lu'
'\u13b4': 'Lu'
'\u13b5': 'Lu'
'\u13b6': 'Lu'
'\u13b7': 'Lu'
'\u13b8': 'Lu'
'\u13b9': 'Lu'
'\u13ba': 'Lu'
'\u13bb': 'Lu'
'\u13bc': 'Lu'
'\u13bd': 'Lu'
'\u13be': 'Lu'
'\u13bf': 'Lu'
'\u13c0': 'Lu'
'\u13c1': 'Lu'
'\u13c2': 'Lu'
'\u13c3': 'Lu'
'\u13c4': 'Lu'
'\u13c5': 'Lu'
'\u13c6': 'Lu'
'\u13c7': 'Lu'
'\u13c8': 'Lu'
'\u13c9': 'Lu'
'\u13ca': 'Lu'
'\u13cb': 'Lu'
'\u13cc': 'Lu'
'\u13cd': 'Lu'
'\u13ce': 'Lu'
'\u13cf': 'Lu'
'\u13d0': 'Lu'
'\u13d1': 'Lu'
'\u13d2': 'Lu'
'\u13d3': 'Lu'
'\u13d4': 'Lu'
'\u13d5': 'Lu'
'\u13d6': 'Lu'
'\u13d7': 'Lu'
'\u13d8': 'Lu'
'\u13d9': 'Lu'
'\u13da': 'Lu'
'\u13db': 'Lu'
'\u13dc': 'Lu'
'\u13dd': 'Lu'
'\u13de': 'Lu'
'\u13df': 'Lu'
'\u13e0': 'Lu'
'\u13e1': 'Lu'
'\u13e2': 'Lu'
'\u13e3': 'Lu'
'\u13e4': 'Lu'
'\u13e5': 'Lu'
'\u13e6': 'Lu'
'\u13e7': 'Lu'
'\u13e8': 'Lu'
'\u13e9': 'Lu'
'\u13ea': 'Lu'
'\u13eb': 'Lu'
'\u13ec': 'Lu'
'\u13ed': 'Lu'
'\u13ee': 'Lu'
'\u13ef': 'Lu'
'\u13f0': 'Lu'
'\u13f1': 'Lu'
'\u13f2': 'Lu'
'\u13f3': 'Lu'
'\u13f4': 'Lu'
'\u13f5': 'Lu'
'\u13f8': 'L'
'\u13f9': 'L'
'\u13fa': 'L'
'\u13fb': 'L'
'\u13fc': 'L'
'\u13fd': 'L'
'\u1401': 'L'
'\u1402': 'L'
'\u1403': 'L'
'\u1404': 'L'
'\u1405': 'L'
'\u1406': 'L'
'\u1407': 'L'
'\u1408': 'L'
'\u1409': 'L'
'\u140a': 'L'
'\u140b': 'L'
'\u140c': 'L'
'\u140d': 'L'
'\u140e': 'L'
'\u140f': 'L'
'\u1410': 'L'
'\u1411': 'L'
'\u1412': 'L'
'\u1413': 'L'
'\u1414': 'L'
'\u1415': 'L'
'\u1416': 'L'
'\u1417': 'L'
'\u1418': 'L'
'\u1419': 'L'
'\u141a': 'L'
'\u141b': 'L'
'\u141c': 'L'
'\u141d': 'L'
'\u141e': 'L'
'\u141f': 'L'
'\u1420': 'L'
'\u1421': 'L'
'\u1422': 'L'
'\u1423': 'L'
'\u1424': 'L'
'\u1425': 'L'
'\u1426': 'L'
'\u1427': 'L'
'\u1428': 'L'
'\u1429': 'L'
'\u142a': 'L'
'\u142b': 'L'
'\u142c': 'L'
'\u142d': 'L'
'\u142e': 'L'
'\u142f': 'L'
'\u1430': 'L'
'\u1431': 'L'
'\u1432': 'L'
'\u1433': 'L'
'\u1434': 'L'
'\u1435': 'L'
'\u1436': 'L'
'\u1437': 'L'
'\u1438': 'L'
'\u1439': 'L'
'\u143a': 'L'
'\u143b': 'L'
'\u143c': 'L'
'\u143d': 'L'
'\u143e': 'L'
'\u143f': 'L'
'\u1440': 'L'
'\u1441': 'L'
'\u1442': 'L'
'\u1443': 'L'
'\u1444': 'L'
'\u1445': 'L'
'\u1446': 'L'
'\u1447': 'L'
'\u1448': 'L'
'\u1449': 'L'
'\u144a': 'L'
'\u144b': 'L'
'\u144c': 'L'
'\u144d': 'L'
'\u144e': 'L'
'\u144f': 'L'
'\u1450': 'L'
'\u1451': 'L'
'\u1452': 'L'
'\u1453': 'L'
'\u1454': 'L'
'\u1455': 'L'
'\u1456': 'L'
'\u1457': 'L'
'\u1458': 'L'
'\u1459': 'L'
'\u145a': 'L'
'\u145b': 'L'
'\u145c': 'L'
'\u145d': 'L'
'\u145e': 'L'
'\u145f': 'L'
'\u1460': 'L'
'\u1461': 'L'
'\u1462': 'L'
'\u1463': 'L'
'\u1464': 'L'
'\u1465': 'L'
'\u1466': 'L'
'\u1467': 'L'
'\u1468': 'L'
'\u1469': 'L'
'\u146a': 'L'
'\u146b': 'L'
'\u146c': 'L'
'\u146d': 'L'
'\u146e': 'L'
'\u146f': 'L'
'\u1470': 'L'
'\u1471': 'L'
'\u1472': 'L'
'\u1473': 'L'
'\u1474': 'L'
'\u1475': 'L'
'\u1476': 'L'
'\u1477': 'L'
'\u1478': 'L'
'\u1479': 'L'
'\u147a': 'L'
'\u147b': 'L'
'\u147c': 'L'
'\u147d': 'L'
'\u147e': 'L'
'\u147f': 'L'
'\u1480': 'L'
'\u1481': 'L'
'\u1482': 'L'
'\u1483': 'L'
'\u1484': 'L'
'\u1485': 'L'
'\u1486': 'L'
'\u1487': 'L'
'\u1488': 'L'
'\u1489': 'L'
'\u148a': 'L'
'\u148b': 'L'
'\u148c': 'L'
'\u148d': 'L'
'\u148e': 'L'
'\u148f': 'L'
'\u1490': 'L'
'\u1491': 'L'
'\u1492': 'L'
'\u1493': 'L'
'\u1494': 'L'
'\u1495': 'L'
'\u1496': 'L'
'\u1497': 'L'
'\u1498': 'L'
'\u1499': 'L'
'\u149a': 'L'
'\u149b': 'L'
'\u149c': 'L'
'\u149d': 'L'
'\u149e': 'L'
'\u149f': 'L'
'\u14a0': 'L'
'\u14a1': 'L'
'\u14a2': 'L'
'\u14a3': 'L'
'\u14a4': 'L'
'\u14a5': 'L'
'\u14a6': 'L'
'\u14a7': 'L'
'\u14a8': 'L'
'\u14a9': 'L'
'\u14aa': 'L'
'\u14ab': 'L'
'\u14ac': 'L'
'\u14ad': 'L'
'\u14ae': 'L'
'\u14af': 'L'
'\u14b0': 'L'
'\u14b1': 'L'
'\u14b2': 'L'
'\u14b3': 'L'
'\u14b4': 'L'
'\u14b5': 'L'
'\u14b6': 'L'
'\u14b7': 'L'
'\u14b8': 'L'
'\u14b9': 'L'
'\u14ba': 'L'
'\u14bb': 'L'
'\u14bc': 'L'
'\u14bd': 'L'
'\u14be': 'L'
'\u14bf': 'L'
'\u14c0': 'L'
'\u14c1': 'L'
'\u14c2': 'L'
'\u14c3': 'L'
'\u14c4': 'L'
'\u14c5': 'L'
'\u14c6': 'L'
'\u14c7': 'L'
'\u14c8': 'L'
'\u14c9': 'L'
'\u14ca': 'L'
'\u14cb': 'L'
'\u14cc': 'L'
'\u14cd': 'L'
'\u14ce': 'L'
'\u14cf': 'L'
'\u14d0': 'L'
'\u14d1': 'L'
'\u14d2': 'L'
'\u14d3': 'L'
'\u14d4': 'L'
'\u14d5': 'L'
'\u14d6': 'L'
'\u14d7': 'L'
'\u14d8': 'L'
'\u14d9': 'L'
'\u14da': 'L'
'\u14db': 'L'
'\u14dc': 'L'
'\u14dd': 'L'
'\u14de': 'L'
'\u14df': 'L'
'\u14e0': 'L'
'\u14e1': 'L'
'\u14e2': 'L'
'\u14e3': 'L'
'\u14e4': 'L'
'\u14e5': 'L'
'\u14e6': 'L'
'\u14e7': 'L'
'\u14e8': 'L'
'\u14e9': 'L'
'\u14ea': 'L'
'\u14eb': 'L'
'\u14ec': 'L'
'\u14ed': 'L'
'\u14ee': 'L'
'\u14ef': 'L'
'\u14f0': 'L'
'\u14f1': 'L'
'\u14f2': 'L'
'\u14f3': 'L'
'\u14f4': 'L'
'\u14f5': 'L'
'\u14f6': 'L'
'\u14f7': 'L'
'\u14f8': 'L'
'\u14f9': 'L'
'\u14fa': 'L'
'\u14fb': 'L'
'\u14fc': 'L'
'\u14fd': 'L'
'\u14fe': 'L'
'\u14ff': 'L'
'\u1500': 'L'
'\u1501': 'L'
'\u1502': 'L'
'\u1503': 'L'
'\u1504': 'L'
'\u1505': 'L'
'\u1506': 'L'
'\u1507': 'L'
'\u1508': 'L'
'\u1509': 'L'
'\u150a': 'L'
'\u150b': 'L'
'\u150c': 'L'
'\u150d': 'L'
'\u150e': 'L'
'\u150f': 'L'
'\u1510': 'L'
'\u1511': 'L'
'\u1512': 'L'
'\u1513': 'L'
'\u1514': 'L'
'\u1515': 'L'
'\u1516': 'L'
'\u1517': 'L'
'\u1518': 'L'
'\u1519': 'L'
'\u151a': 'L'
'\u151b': 'L'
'\u151c': 'L'
'\u151d': 'L'
'\u151e': 'L'
'\u151f': 'L'
'\u1520': 'L'
'\u1521': 'L'
'\u1522': 'L'
'\u1523': 'L'
'\u1524': 'L'
'\u1525': 'L'
'\u1526': 'L'
'\u1527': 'L'
'\u1528': 'L'
'\u1529': 'L'
'\u152a': 'L'
'\u152b': 'L'
'\u152c': 'L'
'\u152d': 'L'
'\u152e': 'L'
'\u152f': 'L'
'\u1530': 'L'
'\u1531': 'L'
'\u1532': 'L'
'\u1533': 'L'
'\u1534': 'L'
'\u1535': 'L'
'\u1536': 'L'
'\u1537': 'L'
'\u1538': 'L'
'\u1539': 'L'
'\u153a': 'L'
'\u153b': 'L'
'\u153c': 'L'
'\u153d': 'L'
'\u153e': 'L'
'\u153f': 'L'
'\u1540': 'L'
'\u1541': 'L'
'\u1542': 'L'
'\u1543': 'L'
'\u1544': 'L'
'\u1545': 'L'
'\u1546': 'L'
'\u1547': 'L'
'\u1548': 'L'
'\u1549': 'L'
'\u154a': 'L'
'\u154b': 'L'
'\u154c': 'L'
'\u154d': 'L'
'\u154e': 'L'
'\u154f': 'L'
'\u1550': 'L'
'\u1551': 'L'
'\u1552': 'L'
'\u1553': 'L'
'\u1554': 'L'
'\u1555': 'L'
'\u1556': 'L'
'\u1557': 'L'
'\u1558': 'L'
'\u1559': 'L'
'\u155a': 'L'
'\u155b': 'L'
'\u155c': 'L'
'\u155d': 'L'
'\u155e': 'L'
'\u155f': 'L'
'\u1560': 'L'
'\u1561': 'L'
'\u1562': 'L'
'\u1563': 'L'
'\u1564': 'L'
'\u1565': 'L'
'\u1566': 'L'
'\u1567': 'L'
'\u1568': 'L'
'\u1569': 'L'
'\u156a': 'L'
'\u156b': 'L'
'\u156c': 'L'
'\u156d': 'L'
'\u156e': 'L'
'\u156f': 'L'
'\u1570': 'L'
'\u1571': 'L'
'\u1572': 'L'
'\u1573': 'L'
'\u1574': 'L'
'\u1575': 'L'
'\u1576': 'L'
'\u1577': 'L'
'\u1578': 'L'
'\u1579': 'L'
'\u157a': 'L'
'\u157b': 'L'
'\u157c': 'L'
'\u157d': 'L'
'\u157e': 'L'
'\u157f': 'L'
'\u1580': 'L'
'\u1581': 'L'
'\u1582': 'L'
'\u1583': 'L'
'\u1584': 'L'
'\u1585': 'L'
'\u1586': 'L'
'\u1587': 'L'
'\u1588': 'L'
'\u1589': 'L'
'\u158a': 'L'
'\u158b': 'L'
'\u158c': 'L'
'\u158d': 'L'
'\u158e': 'L'
'\u158f': 'L'
'\u1590': 'L'
'\u1591': 'L'
'\u1592': 'L'
'\u1593': 'L'
'\u1594': 'L'
'\u1595': 'L'
'\u1596': 'L'
'\u1597': 'L'
'\u1598': 'L'
'\u1599': 'L'
'\u159a': 'L'
'\u159b': 'L'
'\u159c': 'L'
'\u159d': 'L'
'\u159e': 'L'
'\u159f': 'L'
'\u15a0': 'L'
'\u15a1': 'L'
'\u15a2': 'L'
'\u15a3': 'L'
'\u15a4': 'L'
'\u15a5': 'L'
'\u15a6': 'L'
'\u15a7': 'L'
'\u15a8': 'L'
'\u15a9': 'L'
'\u15aa': 'L'
'\u15ab': 'L'
'\u15ac': 'L'
'\u15ad': 'L'
'\u15ae': 'L'
'\u15af': 'L'
'\u15b0': 'L'
'\u15b1': 'L'
'\u15b2': 'L'
'\u15b3': 'L'
'\u15b4': 'L'
'\u15b5': 'L'
'\u15b6': 'L'
'\u15b7': 'L'
'\u15b8': 'L'
'\u15b9': 'L'
'\u15ba': 'L'
'\u15bb': 'L'
'\u15bc': 'L'
'\u15bd': 'L'
'\u15be': 'L'
'\u15bf': 'L'
'\u15c0': 'L'
'\u15c1': 'L'
'\u15c2': 'L'
'\u15c3': 'L'
'\u15c4': 'L'
'\u15c5': 'L'
'\u15c6': 'L'
'\u15c7': 'L'
'\u15c8': 'L'
'\u15c9': 'L'
'\u15ca': 'L'
'\u15cb': 'L'
'\u15cc': 'L'
'\u15cd': 'L'
'\u15ce': 'L'
'\u15cf': 'L'
'\u15d0': 'L'
'\u15d1': 'L'
'\u15d2': 'L'
'\u15d3': 'L'
'\u15d4': 'L'
'\u15d5': 'L'
'\u15d6': 'L'
'\u15d7': 'L'
'\u15d8': 'L'
'\u15d9': 'L'
'\u15da': 'L'
'\u15db': 'L'
'\u15dc': 'L'
'\u15dd': 'L'
'\u15de': 'L'
'\u15df': 'L'
'\u15e0': 'L'
'\u15e1': 'L'
'\u15e2': 'L'
'\u15e3': 'L'
'\u15e4': 'L'
'\u15e5': 'L'
'\u15e6': 'L'
'\u15e7': 'L'
'\u15e8': 'L'
'\u15e9': 'L'
'\u15ea': 'L'
'\u15eb': 'L'
'\u15ec': 'L'
'\u15ed': 'L'
'\u15ee': 'L'
'\u15ef': 'L'
'\u15f0': 'L'
'\u15f1': 'L'
'\u15f2': 'L'
'\u15f3': 'L'
'\u15f4': 'L'
'\u15f5': 'L'
'\u15f6': 'L'
'\u15f7': 'L'
'\u15f8': 'L'
'\u15f9': 'L'
'\u15fa': 'L'
'\u15fb': 'L'
'\u15fc': 'L'
'\u15fd': 'L'
'\u15fe': 'L'
'\u15ff': 'L'
'\u1600': 'L'
'\u1601': 'L'
'\u1602': 'L'
'\u1603': 'L'
'\u1604': 'L'
'\u1605': 'L'
'\u1606': 'L'
'\u1607': 'L'
'\u1608': 'L'
'\u1609': 'L'
'\u160a': 'L'
'\u160b': 'L'
'\u160c': 'L'
'\u160d': 'L'
'\u160e': 'L'
'\u160f': 'L'
'\u1610': 'L'
'\u1611': 'L'
'\u1612': 'L'
'\u1613': 'L'
'\u1614': 'L'
'\u1615': 'L'
'\u1616': 'L'
'\u1617': 'L'
'\u1618': 'L'
'\u1619': 'L'
'\u161a': 'L'
'\u161b': 'L'
'\u161c': 'L'
'\u161d': 'L'
'\u161e': 'L'
'\u161f': 'L'
'\u1620': 'L'
'\u1621': 'L'
'\u1622': 'L'
'\u1623': 'L'
'\u1624': 'L'
'\u1625': 'L'
'\u1626': 'L'
'\u1627': 'L'
'\u1628': 'L'
'\u1629': 'L'
'\u162a': 'L'
'\u162b': 'L'
'\u162c': 'L'
'\u162d': 'L'
'\u162e': 'L'
'\u162f': 'L'
'\u1630': 'L'
'\u1631': 'L'
'\u1632': 'L'
'\u1633': 'L'
'\u1634': 'L'
'\u1635': 'L'
'\u1636': 'L'
'\u1637': 'L'
'\u1638': 'L'
'\u1639': 'L'
'\u163a': 'L'
'\u163b': 'L'
'\u163c': 'L'
'\u163d': 'L'
'\u163e': 'L'
'\u163f': 'L'
'\u1640': 'L'
'\u1641': 'L'
'\u1642': 'L'
'\u1643': 'L'
'\u1644': 'L'
'\u1645': 'L'
'\u1646': 'L'
'\u1647': 'L'
'\u1648': 'L'
'\u1649': 'L'
'\u164a': 'L'
'\u164b': 'L'
'\u164c': 'L'
'\u164d': 'L'
'\u164e': 'L'
'\u164f': 'L'
'\u1650': 'L'
'\u1651': 'L'
'\u1652': 'L'
'\u1653': 'L'
'\u1654': 'L'
'\u1655': 'L'
'\u1656': 'L'
'\u1657': 'L'
'\u1658': 'L'
'\u1659': 'L'
'\u165a': 'L'
'\u165b': 'L'
'\u165c': 'L'
'\u165d': 'L'
'\u165e': 'L'
'\u165f': 'L'
'\u1660': 'L'
'\u1661': 'L'
'\u1662': 'L'
'\u1663': 'L'
'\u1664': 'L'
'\u1665': 'L'
'\u1666': 'L'
'\u1667': 'L'
'\u1668': 'L'
'\u1669': 'L'
'\u166a': 'L'
'\u166b': 'L'
'\u166c': 'L'
'\u166f': 'L'
'\u1670': 'L'
'\u1671': 'L'
'\u1672': 'L'
'\u1673': 'L'
'\u1674': 'L'
'\u1675': 'L'
'\u1676': 'L'
'\u1677': 'L'
'\u1678': 'L'
'\u1679': 'L'
'\u167a': 'L'
'\u167b': 'L'
'\u167c': 'L'
'\u167d': 'L'
'\u167e': 'L'
'\u167f': 'L'
'\u1681': 'L'
'\u1682': 'L'
'\u1683': 'L'
'\u1684': 'L'
'\u1685': 'L'
'\u1686': 'L'
'\u1687': 'L'
'\u1688': 'L'
'\u1689': 'L'
'\u168a': 'L'
'\u168b': 'L'
'\u168c': 'L'
'\u168d': 'L'
'\u168e': 'L'
'\u168f': 'L'
'\u1690': 'L'
'\u1691': 'L'
'\u1692': 'L'
'\u1693': 'L'
'\u1694': 'L'
'\u1695': 'L'
'\u1696': 'L'
'\u1697': 'L'
'\u1698': 'L'
'\u1699': 'L'
'\u169a': 'L'
'\u16a0': 'L'
'\u16a1': 'L'
'\u16a2': 'L'
'\u16a3': 'L'
'\u16a4': 'L'
'\u16a5': 'L'
'\u16a6': 'L'
'\u16a7': 'L'
'\u16a8': 'L'
'\u16a9': 'L'
'\u16aa': 'L'
'\u16ab': 'L'
'\u16ac': 'L'
'\u16ad': 'L'
'\u16ae': 'L'
'\u16af': 'L'
'\u16b0': 'L'
'\u16b1': 'L'
'\u16b2': 'L'
'\u16b3': 'L'
'\u16b4': 'L'
'\u16b5': 'L'
'\u16b6': 'L'
'\u16b7': 'L'
'\u16b8': 'L'
'\u16b9': 'L'
'\u16ba': 'L'
'\u16bb': 'L'
'\u16bc': 'L'
'\u16bd': 'L'
'\u16be': 'L'
'\u16bf': 'L'
'\u16c0': 'L'
'\u16c1': 'L'
'\u16c2': 'L'
'\u16c3': 'L'
'\u16c4': 'L'
'\u16c5': 'L'
'\u16c6': 'L'
'\u16c7': 'L'
'\u16c8': 'L'
'\u16c9': 'L'
'\u16ca': 'L'
'\u16cb': 'L'
'\u16cc': 'L'
'\u16cd': 'L'
'\u16ce': 'L'
'\u16cf': 'L'
'\u16d0': 'L'
'\u16d1': 'L'
'\u16d2': 'L'
'\u16d3': 'L'
'\u16d4': 'L'
'\u16d5': 'L'
'\u16d6': 'L'
'\u16d7': 'L'
'\u16d8': 'L'
'\u16d9': 'L'
'\u16da': 'L'
'\u16db': 'L'
'\u16dc': 'L'
'\u16dd': 'L'
'\u16de': 'L'
'\u16df': 'L'
'\u16e0': 'L'
'\u16e1': 'L'
'\u16e2': 'L'
'\u16e3': 'L'
'\u16e4': 'L'
'\u16e5': 'L'
'\u16e6': 'L'
'\u16e7': 'L'
'\u16e8': 'L'
'\u16e9': 'L'
'\u16ea': 'L'
'\u16ee': 'N'
'\u16ef': 'N'
'\u16f0': 'N'
'\u16f1': 'L'
'\u16f2': 'L'
'\u16f3': 'L'
'\u16f4': 'L'
'\u16f5': 'L'
'\u16f6': 'L'
'\u16f7': 'L'
'\u16f8': 'L'
'\u1700': 'L'
'\u1701': 'L'
'\u1702': 'L'
'\u1703': 'L'
'\u1704': 'L'
'\u1705': 'L'
'\u1706': 'L'
'\u1707': 'L'
'\u1708': 'L'
'\u1709': 'L'
'\u170a': 'L'
'\u170b': 'L'
'\u170c': 'L'
'\u170e': 'L'
'\u170f': 'L'
'\u1710': 'L'
'\u1711': 'L'
'\u1720': 'L'
'\u1721': 'L'
'\u1722': 'L'
'\u1723': 'L'
'\u1724': 'L'
'\u1725': 'L'
'\u1726': 'L'
'\u1727': 'L'
'\u1728': 'L'
'\u1729': 'L'
'\u172a': 'L'
'\u172b': 'L'
'\u172c': 'L'
'\u172d': 'L'
'\u172e': 'L'
'\u172f': 'L'
'\u1730': 'L'
'\u1731': 'L'
'\u1740': 'L'
'\u1741': 'L'
'\u1742': 'L'
'\u1743': 'L'
'\u1744': 'L'
'\u1745': 'L'
'\u1746': 'L'
'\u1747': 'L'
'\u1748': 'L'
'\u1749': 'L'
'\u174a': 'L'
'\u174b': 'L'
'\u174c': 'L'
'\u174d': 'L'
'\u174e': 'L'
'\u174f': 'L'
'\u1750': 'L'
'\u1751': 'L'
'\u1760': 'L'
'\u1761': 'L'
'\u1762': 'L'
'\u1763': 'L'
'\u1764': 'L'
'\u1765': 'L'
'\u1766': 'L'
'\u1767': 'L'
'\u1768': 'L'
'\u1769': 'L'
'\u176a': 'L'
'\u176b': 'L'
'\u176c': 'L'
'\u176e': 'L'
'\u176f': 'L'
'\u1770': 'L'
'\u1780': 'L'
'\u1781': 'L'
'\u1782': 'L'
'\u1783': 'L'
'\u1784': 'L'
'\u1785': 'L'
'\u1786': 'L'
'\u1787': 'L'
'\u1788': 'L'
'\u1789': 'L'
'\u178a': 'L'
'\u178b': 'L'
'\u178c': 'L'
'\u178d': 'L'
'\u178e': 'L'
'\u178f': 'L'
'\u1790': 'L'
'\u1791': 'L'
'\u1792': 'L'
'\u1793': 'L'
'\u1794': 'L'
'\u1795': 'L'
'\u1796': 'L'
'\u1797': 'L'
'\u1798': 'L'
'\u1799': 'L'
'\u179a': 'L'
'\u179b': 'L'
'\u179c': 'L'
'\u179d': 'L'
'\u179e': 'L'
'\u179f': 'L'
'\u17a0': 'L'
'\u17a1': 'L'
'\u17a2': 'L'
'\u17a3': 'L'
'\u17a4': 'L'
'\u17a5': 'L'
'\u17a6': 'L'
'\u17a7': 'L'
'\u17a8': 'L'
'\u17a9': 'L'
'\u17aa': 'L'
'\u17ab': 'L'
'\u17ac': 'L'
'\u17ad': 'L'
'\u17ae': 'L'
'\u17af': 'L'
'\u17b0': 'L'
'\u17b1': 'L'
'\u17b2': 'L'
'\u17b3': 'L'
'\u17d7': 'L'
'\u17dc': 'L'
'\u17e0': 'N'
'\u17e1': 'N'
'\u17e2': 'N'
'\u17e3': 'N'
'\u17e4': 'N'
'\u17e5': 'N'
'\u17e6': 'N'
'\u17e7': 'N'
'\u17e8': 'N'
'\u17e9': 'N'
'\u17f0': 'N'
'\u17f1': 'N'
'\u17f2': 'N'
'\u17f3': 'N'
'\u17f4': 'N'
'\u17f5': 'N'
'\u17f6': 'N'
'\u17f7': 'N'
'\u17f8': 'N'
'\u17f9': 'N'
'\u1810': 'N'
'\u1811': 'N'
'\u1812': 'N'
'\u1813': 'N'
'\u1814': 'N'
'\u1815': 'N'
'\u1816': 'N'
'\u1817': 'N'
'\u1818': 'N'
'\u1819': 'N'
'\u1820': 'L'
'\u1821': 'L'
'\u1822': 'L'
'\u1823': 'L'
'\u1824': 'L'
'\u1825': 'L'
'\u1826': 'L'
'\u1827': 'L'
'\u1828': 'L'
'\u1829': 'L'
'\u182a': 'L'
'\u182b': 'L'
'\u182c': 'L'
'\u182d': 'L'
'\u182e': 'L'
'\u182f': 'L'
'\u1830': 'L'
'\u1831': 'L'
'\u1832': 'L'
'\u1833': 'L'
'\u1834': 'L'
'\u1835': 'L'
'\u1836': 'L'
'\u1837': 'L'
'\u1838': 'L'
'\u1839': 'L'
'\u183a': 'L'
'\u183b': 'L'
'\u183c': 'L'
'\u183d': 'L'
'\u183e': 'L'
'\u183f': 'L'
'\u1840': 'L'
'\u1841': 'L'
'\u1842': 'L'
'\u1843': 'L'
'\u1844': 'L'
'\u1845': 'L'
'\u1846': 'L'
'\u1847': 'L'
'\u1848': 'L'
'\u1849': 'L'
'\u184a': 'L'
'\u184b': 'L'
'\u184c': 'L'
'\u184d': 'L'
'\u184e': 'L'
'\u184f': 'L'
'\u1850': 'L'
'\u1851': 'L'
'\u1852': 'L'
'\u1853': 'L'
'\u1854': 'L'
'\u1855': 'L'
'\u1856': 'L'
'\u1857': 'L'
'\u1858': 'L'
'\u1859': 'L'
'\u185a': 'L'
'\u185b': 'L'
'\u185c': 'L'
'\u185d': 'L'
'\u185e': 'L'
'\u185f': 'L'
'\u1860': 'L'
'\u1861': 'L'
'\u1862': 'L'
'\u1863': 'L'
'\u1864': 'L'
'\u1865': 'L'
'\u1866': 'L'
'\u1867': 'L'
'\u1868': 'L'
'\u1869': 'L'
'\u186a': 'L'
'\u186b': 'L'
'\u186c': 'L'
'\u186d': 'L'
'\u186e': 'L'
'\u186f': 'L'
'\u1870': 'L'
'\u1871': 'L'
'\u1872': 'L'
'\u1873': 'L'
'\u1874': 'L'
'\u1875': 'L'
'\u1876': 'L'
'\u1877': 'L'
'\u1880': 'L'
'\u1881': 'L'
'\u1882': 'L'
'\u1883': 'L'
'\u1884': 'L'
'\u1885': 'L'
'\u1886': 'L'
'\u1887': 'L'
'\u1888': 'L'
'\u1889': 'L'
'\u188a': 'L'
'\u188b': 'L'
'\u188c': 'L'
'\u188d': 'L'
'\u188e': 'L'
'\u188f': 'L'
'\u1890': 'L'
'\u1891': 'L'
'\u1892': 'L'
'\u1893': 'L'
'\u1894': 'L'
'\u1895': 'L'
'\u1896': 'L'
'\u1897': 'L'
'\u1898': 'L'
'\u1899': 'L'
'\u189a': 'L'
'\u189b': 'L'
'\u189c': 'L'
'\u189d': 'L'
'\u189e': 'L'
'\u189f': 'L'
'\u18a0': 'L'
'\u18a1': 'L'
'\u18a2': 'L'
'\u18a3': 'L'
'\u18a4': 'L'
'\u18a5': 'L'
'\u18a6': 'L'
'\u18a7': 'L'
'\u18a8': 'L'
'\u18aa': 'L'
'\u18b0': 'L'
'\u18b1': 'L'
'\u18b2': 'L'
'\u18b3': 'L'
'\u18b4': 'L'
'\u18b5': 'L'
'\u18b6': 'L'
'\u18b7': 'L'
'\u18b8': 'L'
'\u18b9': 'L'
'\u18ba': 'L'
'\u18bb': 'L'
'\u18bc': 'L'
'\u18bd': 'L'
'\u18be': 'L'
'\u18bf': 'L'
'\u18c0': 'L'
'\u18c1': 'L'
'\u18c2': 'L'
'\u18c3': 'L'
'\u18c4': 'L'
'\u18c5': 'L'
'\u18c6': 'L'
'\u18c7': 'L'
'\u18c8': 'L'
'\u18c9': 'L'
'\u18ca': 'L'
'\u18cb': 'L'
'\u18cc': 'L'
'\u18cd': 'L'
'\u18ce': 'L'
'\u18cf': 'L'
'\u18d0': 'L'
'\u18d1': 'L'
'\u18d2': 'L'
'\u18d3': 'L'
'\u18d4': 'L'
'\u18d5': 'L'
'\u18d6': 'L'
'\u18d7': 'L'
'\u18d8': 'L'
'\u18d9': 'L'
'\u18da': 'L'
'\u18db': 'L'
'\u18dc': 'L'
'\u18dd': 'L'
'\u18de': 'L'
'\u18df': 'L'
'\u18e0': 'L'
'\u18e1': 'L'
'\u18e2': 'L'
'\u18e3': 'L'
'\u18e4': 'L'
'\u18e5': 'L'
'\u18e6': 'L'
'\u18e7': 'L'
'\u18e8': 'L'
'\u18e9': 'L'
'\u18ea': 'L'
'\u18eb': 'L'
'\u18ec': 'L'
'\u18ed': 'L'
'\u18ee': 'L'
'\u18ef': 'L'
'\u18f0': 'L'
'\u18f1': 'L'
'\u18f2': 'L'
'\u18f3': 'L'
'\u18f4': 'L'
'\u18f5': 'L'
'\u1900': 'L'
'\u1901': 'L'
'\u1902': 'L'
'\u1903': 'L'
'\u1904': 'L'
'\u1905': 'L'
'\u1906': 'L'
'\u1907': 'L'
'\u1908': 'L'
'\u1909': 'L'
'\u190a': 'L'
'\u190b': 'L'
'\u190c': 'L'
'\u190d': 'L'
'\u190e': 'L'
'\u190f': 'L'
'\u1910': 'L'
'\u1911': 'L'
'\u1912': 'L'
'\u1913': 'L'
'\u1914': 'L'
'\u1915': 'L'
'\u1916': 'L'
'\u1917': 'L'
'\u1918': 'L'
'\u1919': 'L'
'\u191a': 'L'
'\u191b': 'L'
'\u191c': 'L'
'\u191d': 'L'
'\u191e': 'L'
'\u1946': 'N'
'\u1947': 'N'
'\u1948': 'N'
'\u1949': 'N'
'\u194a': 'N'
'\u194b': 'N'
'\u194c': 'N'
'\u194d': 'N'
'\u194e': 'N'
'\u194f': 'N'
'\u1950': 'L'
'\u1951': 'L'
'\u1952': 'L'
'\u1953': 'L'
'\u1954': 'L'
'\u1955': 'L'
'\u1956': 'L'
'\u1957': 'L'
'\u1958': 'L'
'\u1959': 'L'
'\u195a': 'L'
'\u195b': 'L'
'\u195c': 'L'
'\u195d': 'L'
'\u195e': 'L'
'\u195f': 'L'
'\u1960': 'L'
'\u1961': 'L'
'\u1962': 'L'
'\u1963': 'L'
'\u1964': 'L'
'\u1965': 'L'
'\u1966': 'L'
'\u1967': 'L'
'\u1968': 'L'
'\u1969': 'L'
'\u196a': 'L'
'\u196b': 'L'
'\u196c': 'L'
'\u196d': 'L'
'\u1970': 'L'
'\u1971': 'L'
'\u1972': 'L'
'\u1973': 'L'
'\u1974': 'L'
'\u1980': 'L'
'\u1981': 'L'
'\u1982': 'L'
'\u1983': 'L'
'\u1984': 'L'
'\u1985': 'L'
'\u1986': 'L'
'\u1987': 'L'
'\u1988': 'L'
'\u1989': 'L'
'\u198a': 'L'
'\u198b': 'L'
'\u198c': 'L'
'\u198d': 'L'
'\u198e': 'L'
'\u198f': 'L'
'\u1990': 'L'
'\u1991': 'L'
'\u1992': 'L'
'\u1993': 'L'
'\u1994': 'L'
'\u1995': 'L'
'\u1996': 'L'
'\u1997': 'L'
'\u1998': 'L'
'\u1999': 'L'
'\u199a': 'L'
'\u199b': 'L'
'\u199c': 'L'
'\u199d': 'L'
'\u199e': 'L'
'\u199f': 'L'
'\u19a0': 'L'
'\u19a1': 'L'
'\u19a2': 'L'
'\u19a3': 'L'
'\u19a4': 'L'
'\u19a5': 'L'
'\u19a6': 'L'
'\u19a7': 'L'
'\u19a8': 'L'
'\u19a9': 'L'
'\u19aa': 'L'
'\u19ab': 'L'
'\u19b0': 'L'
'\u19b1': 'L'
'\u19b2': 'L'
'\u19b3': 'L'
'\u19b4': 'L'
'\u19b5': 'L'
'\u19b6': 'L'
'\u19b7': 'L'
'\u19b8': 'L'
'\u19b9': 'L'
'\u19ba': 'L'
'\u19bb': 'L'
'\u19bc': 'L'
'\u19bd': 'L'
'\u19be': 'L'
'\u19bf': 'L'
'\u19c0': 'L'
'\u19c1': 'L'
'\u19c2': 'L'
'\u19c3': 'L'
'\u19c4': 'L'
'\u19c5': 'L'
'\u19c6': 'L'
'\u19c7': 'L'
'\u19c8': 'L'
'\u19c9': 'L'
'\u19d0': 'N'
'\u19d1': 'N'
'\u19d2': 'N'
'\u19d3': 'N'
'\u19d4': 'N'
'\u19d5': 'N'
'\u19d6': 'N'
'\u19d7': 'N'
'\u19d8': 'N'
'\u19d9': 'N'
'\u19da': 'N'
'\u1a00': 'L'
'\u1a01': 'L'
'\u1a02': 'L'
'\u1a03': 'L'
'\u1a04': 'L'
'\u1a05': 'L'
'\u1a06': 'L'
'\u1a07': 'L'
'\u1a08': 'L'
'\u1a09': 'L'
'\u1a0a': 'L'
'\u1a0b': 'L'
'\u1a0c': 'L'
'\u1a0d': 'L'
'\u1a0e': 'L'
'\u1a0f': 'L'
'\u1a10': 'L'
'\u1a11': 'L'
'\u1a12': 'L'
'\u1a13': 'L'
'\u1a14': 'L'
'\u1a15': 'L'
'\u1a16': 'L'
'\u1a20': 'L'
'\u1a21': 'L'
'\u1a22': 'L'
'\u1a23': 'L'
'\u1a24': 'L'
'\u1a25': 'L'
'\u1a26': 'L'
'\u1a27': 'L'
'\u1a28': 'L'
'\u1a29': 'L'
'\u1a2a': 'L'
'\u1a2b': 'L'
'\u1a2c': 'L'
'\u1a2d': 'L'
'\u1a2e': 'L'
'\u1a2f': 'L'
'\u1a30': 'L'
'\u1a31': 'L'
'\u1a32': 'L'
'\u1a33': 'L'
'\u1a34': 'L'
'\u1a35': 'L'
'\u1a36': 'L'
'\u1a37': 'L'
'\u1a38': 'L'
'\u1a39': 'L'
'\u1a3a': 'L'
'\u1a3b': 'L'
'\u1a3c': 'L'
'\u1a3d': 'L'
'\u1a3e': 'L'
'\u1a3f': 'L'
'\u1a40': 'L'
'\u1a41': 'L'
'\u1a42': 'L'
'\u1a43': 'L'
'\u1a44': 'L'
'\u1a45': 'L'
'\u1a46': 'L'
'\u1a47': 'L'
'\u1a48': 'L'
'\u1a49': 'L'
'\u1a4a': 'L'
'\u1a4b': 'L'
'\u1a4c': 'L'
'\u1a4d': 'L'
'\u1a4e': 'L'
'\u1a4f': 'L'
'\u1a50': 'L'
'\u1a51': 'L'
'\u1a52': 'L'
'\u1a53': 'L'
'\u1a54': 'L'
'\u1a80': 'N'
'\u1a81': 'N'
'\u1a82': 'N'
'\u1a83': 'N'
'\u1a84': 'N'
'\u1a85': 'N'
'\u1a86': 'N'
'\u1a87': 'N'
'\u1a88': 'N'
'\u1a89': 'N'
'\u1a90': 'N'
'\u1a91': 'N'
'\u1a92': 'N'
'\u1a93': 'N'
'\u1a94': 'N'
'\u1a95': 'N'
'\u1a96': 'N'
'\u1a97': 'N'
'\u1a98': 'N'
'\u1a99': 'N'
'\u1aa7': 'L'
'\u1b05': 'L'
'\u1b06': 'L'
'\u1b07': 'L'
'\u1b08': 'L'
'\u1b09': 'L'
'\u1b0a': 'L'
'\u1b0b': 'L'
'\u1b0c': 'L'
'\u1b0d': 'L'
'\u1b0e': 'L'
'\u1b0f': 'L'
'\u1b10': 'L'
'\u1b11': 'L'
'\u1b12': 'L'
'\u1b13': 'L'
'\u1b14': 'L'
'\u1b15': 'L'
'\u1b16': 'L'
'\u1b17': 'L'
'\u1b18': 'L'
'\u1b19': 'L'
'\u1b1a': 'L'
'\u1b1b': 'L'
'\u1b1c': 'L'
'\u1b1d': 'L'
'\u1b1e': 'L'
'\u1b1f': 'L'
'\u1b20': 'L'
'\u1b21': 'L'
'\u1b22': 'L'
'\u1b23': 'L'
'\u1b24': 'L'
'\u1b25': 'L'
'\u1b26': 'L'
'\u1b27': 'L'
'\u1b28': 'L'
'\u1b29': 'L'
'\u1b2a': 'L'
'\u1b2b': 'L'
'\u1b2c': 'L'
'\u1b2d': 'L'
'\u1b2e': 'L'
'\u1b2f': 'L'
'\u1b30': 'L'
'\u1b31': 'L'
'\u1b32': 'L'
'\u1b33': 'L'
'\u1b45': 'L'
'\u1b46': 'L'
'\u1b47': 'L'
'\u1b48': 'L'
'\u1b49': 'L'
'\u1b4a': 'L'
'\u1b4b': 'L'
'\u1b50': 'N'
'\u1b51': 'N'
'\u1b52': 'N'
'\u1b53': 'N'
'\u1b54': 'N'
'\u1b55': 'N'
'\u1b56': 'N'
'\u1b57': 'N'
'\u1b58': 'N'
'\u1b59': 'N'
'\u1b83': 'L'
'\u1b84': 'L'
'\u1b85': 'L'
'\u1b86': 'L'
'\u1b87': 'L'
'\u1b88': 'L'
'\u1b89': 'L'
'\u1b8a': 'L'
'\u1b8b': 'L'
'\u1b8c': 'L'
'\u1b8d': 'L'
'\u1b8e': 'L'
'\u1b8f': 'L'
'\u1b90': 'L'
'\u1b91': 'L'
'\u1b92': 'L'
'\u1b93': 'L'
'\u1b94': 'L'
'\u1b95': 'L'
'\u1b96': 'L'
'\u1b97': 'L'
'\u1b98': 'L'
'\u1b99': 'L'
'\u1b9a': 'L'
'\u1b9b': 'L'
'\u1b9c': 'L'
'\u1b9d': 'L'
'\u1b9e': 'L'
'\u1b9f': 'L'
'\u1ba0': 'L'
'\u1bae': 'L'
'\u1baf': 'L'
'\u1bb0': 'N'
'\u1bb1': 'N'
'\u1bb2': 'N'
'\u1bb3': 'N'
'\u1bb4': 'N'
'\u1bb5': 'N'
'\u1bb6': 'N'
'\u1bb7': 'N'
'\u1bb8': 'N'
'\u1bb9': 'N'
'\u1bba': 'L'
'\u1bbb': 'L'
'\u1bbc': 'L'
'\u1bbd': 'L'
'\u1bbe': 'L'
'\u1bbf': 'L'
'\u1bc0': 'L'
'\u1bc1': 'L'
'\u1bc2': 'L'
'\u1bc3': 'L'
'\u1bc4': 'L'
'\u1bc5': 'L'
'\u1bc6': 'L'
'\u1bc7': 'L'
'\u1bc8': 'L'
'\u1bc9': 'L'
'\u1bca': 'L'
'\u1bcb': 'L'
'\u1bcc': 'L'
'\u1bcd': 'L'
'\u1bce': 'L'
'\u1bcf': 'L'
'\u1bd0': 'L'
'\u1bd1': 'L'
'\u1bd2': 'L'
'\u1bd3': 'L'
'\u1bd4': 'L'
'\u1bd5': 'L'
'\u1bd6': 'L'
'\u1bd7': 'L'
'\u1bd8': 'L'
'\u1bd9': 'L'
'\u1bda': 'L'
'\u1bdb': 'L'
'\u1bdc': 'L'
'\u1bdd': 'L'
'\u1bde': 'L'
'\u1bdf': 'L'
'\u1be0': 'L'
'\u1be1': 'L'
'\u1be2': 'L'
'\u1be3': 'L'
'\u1be4': 'L'
'\u1be5': 'L'
'\u1c00': 'L'
'\u1c01': 'L'
'\u1c02': 'L'
'\u1c03': 'L'
'\u1c04': 'L'
'\u1c05': 'L'
'\u1c06': 'L'
'\u1c07': 'L'
'\u1c08': 'L'
'\u1c09': 'L'
'\u1c0a': 'L'
'\u1c0b': 'L'
'\u1c0c': 'L'
'\u1c0d': 'L'
'\u1c0e': 'L'
'\u1c0f': 'L'
'\u1c10': 'L'
'\u1c11': 'L'
'\u1c12': 'L'
'\u1c13': 'L'
'\u1c14': 'L'
'\u1c15': 'L'
'\u1c16': 'L'
'\u1c17': 'L'
'\u1c18': 'L'
'\u1c19': 'L'
'\u1c1a': 'L'
'\u1c1b': 'L'
'\u1c1c': 'L'
'\u1c1d': 'L'
'\u1c1e': 'L'
'\u1c1f': 'L'
'\u1c20': 'L'
'\u1c21': 'L'
'\u1c22': 'L'
'\u1c23': 'L'
'\u1c40': 'N'
'\u1c41': 'N'
'\u1c42': 'N'
'\u1c43': 'N'
'\u1c44': 'N'
'\u1c45': 'N'
'\u1c46': 'N'
'\u1c47': 'N'
'\u1c48': 'N'
'\u1c49': 'N'
'\u1c4d': 'L'
'\u1c4e': 'L'
'\u1c4f': 'L'
'\u1c50': 'N'
'\u1c51': 'N'
'\u1c52': 'N'
'\u1c53': 'N'
'\u1c54': 'N'
'\u1c55': 'N'
'\u1c56': 'N'
'\u1c57': 'N'
'\u1c58': 'N'
'\u1c59': 'N'
'\u1c5a': 'L'
'\u1c5b': 'L'
'\u1c5c': 'L'
'\u1c5d': 'L'
'\u1c5e': 'L'
'\u1c5f': 'L'
'\u1c60': 'L'
'\u1c61': 'L'
'\u1c62': 'L'
'\u1c63': 'L'
'\u1c64': 'L'
'\u1c65': 'L'
'\u1c66': 'L'
'\u1c67': 'L'
'\u1c68': 'L'
'\u1c69': 'L'
'\u1c6a': 'L'
'\u1c6b': 'L'
'\u1c6c': 'L'
'\u1c6d': 'L'
'\u1c6e': 'L'
'\u1c6f': 'L'
'\u1c70': 'L'
'\u1c71': 'L'
'\u1c72': 'L'
'\u1c73': 'L'
'\u1c74': 'L'
'\u1c75': 'L'
'\u1c76': 'L'
'\u1c77': 'L'
'\u1c78': 'L'
'\u1c79': 'L'
'\u1c7a': 'L'
'\u1c7b': 'L'
'\u1c7c': 'L'
'\u1c7d': 'L'
'\u1ce9': 'L'
'\u1cea': 'L'
'\u1ceb': 'L'
'\u1cec': 'L'
'\u1cee': 'L'
'\u1cef': 'L'
'\u1cf0': 'L'
'\u1cf1': 'L'
'\u1cf5': 'L'
'\u1cf6': 'L'
'\u1d00': 'L'
'\u1d01': 'L'
'\u1d02': 'L'
'\u1d03': 'L'
'\u1d04': 'L'
'\u1d05': 'L'
'\u1d06': 'L'
'\u1d07': 'L'
'\u1d08': 'L'
'\u1d09': 'L'
'\u1d0a': 'L'
'\u1d0b': 'L'
'\u1d0c': 'L'
'\u1d0d': 'L'
'\u1d0e': 'L'
'\u1d0f': 'L'
'\u1d10': 'L'
'\u1d11': 'L'
'\u1d12': 'L'
'\u1d13': 'L'
'\u1d14': 'L'
'\u1d15': 'L'
'\u1d16': 'L'
'\u1d17': 'L'
'\u1d18': 'L'
'\u1d19': 'L'
'\u1d1a': 'L'
'\u1d1b': 'L'
'\u1d1c': 'L'
'\u1d1d': 'L'
'\u1d1e': 'L'
'\u1d1f': 'L'
'\u1d20': 'L'
'\u1d21': 'L'
'\u1d22': 'L'
'\u1d23': 'L'
'\u1d24': 'L'
'\u1d25': 'L'
'\u1d26': 'L'
'\u1d27': 'L'
'\u1d28': 'L'
'\u1d29': 'L'
'\u1d2a': 'L'
'\u1d2b': 'L'
'\u1d2c': 'L'
'\u1d2d': 'L'
'\u1d2e': 'L'
'\u1d2f': 'L'
'\u1d30': 'L'
'\u1d31': 'L'
'\u1d32': 'L'
'\u1d33': 'L'
'\u1d34': 'L'
'\u1d35': 'L'
'\u1d36': 'L'
'\u1d37': 'L'
'\u1d38': 'L'
'\u1d39': 'L'
'\u1d3a': 'L'
'\u1d3b': 'L'
'\u1d3c': 'L'
'\u1d3d': 'L'
'\u1d3e': 'L'
'\u1d3f': 'L'
'\u1d40': 'L'
'\u1d41': 'L'
'\u1d42': 'L'
'\u1d43': 'L'
'\u1d44': 'L'
'\u1d45': 'L'
'\u1d46': 'L'
'\u1d47': 'L'
'\u1d48': 'L'
'\u1d49': 'L'
'\u1d4a': 'L'
'\u1d4b': 'L'
'\u1d4c': 'L'
'\u1d4d': 'L'
'\u1d4e': 'L'
'\u1d4f': 'L'
'\u1d50': 'L'
'\u1d51': 'L'
'\u1d52': 'L'
'\u1d53': 'L'
'\u1d54': 'L'
'\u1d55': 'L'
'\u1d56': 'L'
'\u1d57': 'L'
'\u1d58': 'L'
'\u1d59': 'L'
'\u1d5a': 'L'
'\u1d5b': 'L'
'\u1d5c': 'L'
'\u1d5d': 'L'
'\u1d5e': 'L'
'\u1d5f': 'L'
'\u1d60': 'L'
'\u1d61': 'L'
'\u1d62': 'L'
'\u1d63': 'L'
'\u1d64': 'L'
'\u1d65': 'L'
'\u1d66': 'L'
'\u1d67': 'L'
'\u1d68': 'L'
'\u1d69': 'L'
'\u1d6a': 'L'
'\u1d6b': 'L'
'\u1d6c': 'L'
'\u1d6d': 'L'
'\u1d6e': 'L'
'\u1d6f': 'L'
'\u1d70': 'L'
'\u1d71': 'L'
'\u1d72': 'L'
'\u1d73': 'L'
'\u1d74': 'L'
'\u1d75': 'L'
'\u1d76': 'L'
'\u1d77': 'L'
'\u1d78': 'L'
'\u1d79': 'L'
'\u1d7a': 'L'
'\u1d7b': 'L'
'\u1d7c': 'L'
'\u1d7d': 'L'
'\u1d7e': 'L'
'\u1d7f': 'L'
'\u1d80': 'L'
'\u1d81': 'L'
'\u1d82': 'L'
'\u1d83': 'L'
'\u1d84': 'L'
'\u1d85': 'L'
'\u1d86': 'L'
'\u1d87': 'L'
'\u1d88': 'L'
'\u1d89': 'L'
'\u1d8a': 'L'
'\u1d8b': 'L'
'\u1d8c': 'L'
'\u1d8d': 'L'
'\u1d8e': 'L'
'\u1d8f': 'L'
'\u1d90': 'L'
'\u1d91': 'L'
'\u1d92': 'L'
'\u1d93': 'L'
'\u1d94': 'L'
'\u1d95': 'L'
'\u1d96': 'L'
'\u1d97': 'L'
'\u1d98': 'L'
'\u1d99': 'L'
'\u1d9a': 'L'
'\u1d9b': 'L'
'\u1d9c': 'L'
'\u1d9d': 'L'
'\u1d9e': 'L'
'\u1d9f': 'L'
'\u1da0': 'L'
'\u1da1': 'L'
'\u1da2': 'L'
'\u1da3': 'L'
'\u1da4': 'L'
'\u1da5': 'L'
'\u1da6': 'L'
'\u1da7': 'L'
'\u1da8': 'L'
'\u1da9': 'L'
'\u1daa': 'L'
'\u1dab': 'L'
'\u1dac': 'L'
'\u1dad': 'L'
'\u1dae': 'L'
'\u1daf': 'L'
'\u1db0': 'L'
'\u1db1': 'L'
'\u1db2': 'L'
'\u1db3': 'L'
'\u1db4': 'L'
'\u1db5': 'L'
'\u1db6': 'L'
'\u1db7': 'L'
'\u1db8': 'L'
'\u1db9': 'L'
'\u1dba': 'L'
'\u1dbb': 'L'
'\u1dbc': 'L'
'\u1dbd': 'L'
'\u1dbe': 'L'
'\u1dbf': 'L'
'\u1e00': 'Lu'
'\u1e01': 'L'
'\u1e02': 'Lu'
'\u1e03': 'L'
'\u1e04': 'Lu'
'\u1e05': 'L'
'\u1e06': 'Lu'
'\u1e07': 'L'
'\u1e08': 'Lu'
'\u1e09': 'L'
'\u1e0a': 'Lu'
'\u1e0b': 'L'
'\u1e0c': 'Lu'
'\u1e0d': 'L'
'\u1e0e': 'Lu'
'\u1e0f': 'L'
'\u1e10': 'Lu'
'\u1e11': 'L'
'\u1e12': 'Lu'
'\u1e13': 'L'
'\u1e14': 'Lu'
'\u1e15': 'L'
'\u1e16': 'Lu'
'\u1e17': 'L'
'\u1e18': 'Lu'
'\u1e19': 'L'
'\u1e1a': 'Lu'
'\u1e1b': 'L'
'\u1e1c': 'Lu'
'\u1e1d': 'L'
'\u1e1e': 'Lu'
'\u1e1f': 'L'
'\u1e20': 'Lu'
'\u1e21': 'L'
'\u1e22': 'Lu'
'\u1e23': 'L'
'\u1e24': 'Lu'
'\u1e25': 'L'
'\u1e26': 'Lu'
'\u1e27': 'L'
'\u1e28': 'Lu'
'\u1e29': 'L'
'\u1e2a': 'Lu'
'\u1e2b': 'L'
'\u1e2c': 'Lu'
'\u1e2d': 'L'
'\u1e2e': 'Lu'
'\u1e2f': 'L'
'\u1e30': 'Lu'
'\u1e31': 'L'
'\u1e32': 'Lu'
'\u1e33': 'L'
'\u1e34': 'Lu'
'\u1e35': 'L'
'\u1e36': 'Lu'
'\u1e37': 'L'
'\u1e38': 'Lu'
'\u1e39': 'L'
'\u1e3a': 'Lu'
'\u1e3b': 'L'
'\u1e3c': 'Lu'
'\u1e3d': 'L'
'\u1e3e': 'Lu'
'\u1e3f': 'L'
'\u1e40': 'Lu'
'\u1e41': 'L'
'\u1e42': 'Lu'
'\u1e43': 'L'
'\u1e44': 'Lu'
'\u1e45': 'L'
'\u1e46': 'Lu'
'\u1e47': 'L'
'\u1e48': 'Lu'
'\u1e49': 'L'
'\u1e4a': 'Lu'
'\u1e4b': 'L'
'\u1e4c': 'Lu'
'\u1e4d': 'L'
'\u1e4e': 'Lu'
'\u1e4f': 'L'
'\u1e50': 'Lu'
'\u1e51': 'L'
'\u1e52': 'Lu'
'\u1e53': 'L'
'\u1e54': 'Lu'
'\u1e55': 'L'
'\u1e56': 'Lu'
'\u1e57': 'L'
'\u1e58': 'Lu'
'\u1e59': 'L'
'\u1e5a': 'Lu'
'\u1e5b': 'L'
'\u1e5c': 'Lu'
'\u1e5d': 'L'
'\u1e5e': 'Lu'
'\u1e5f': 'L'
'\u1e60': 'Lu'
'\u1e61': 'L'
'\u1e62': 'Lu'
'\u1e63': 'L'
'\u1e64': 'Lu'
'\u1e65': 'L'
'\u1e66': 'Lu'
'\u1e67': 'L'
'\u1e68': 'Lu'
'\u1e69': 'L'
'\u1e6a': 'Lu'
'\u1e6b': 'L'
'\u1e6c': 'Lu'
'\u1e6d': 'L'
'\u1e6e': 'Lu'
'\u1e6f': 'L'
'\u1e70': 'Lu'
'\u1e71': 'L'
'\u1e72': 'Lu'
'\u1e73': 'L'
'\u1e74': 'Lu'
'\u1e75': 'L'
'\u1e76': 'Lu'
'\u1e77': 'L'
'\u1e78': 'Lu'
'\u1e79': 'L'
'\u1e7a': 'Lu'
'\u1e7b': 'L'
'\u1e7c': 'Lu'
'\u1e7d': 'L'
'\u1e7e': 'Lu'
'\u1e7f': 'L'
'\u1e80': 'Lu'
'\u1e81': 'L'
'\u1e82': 'Lu'
'\u1e83': 'L'
'\u1e84': 'Lu'
'\u1e85': 'L'
'\u1e86': 'Lu'
'\u1e87': 'L'
'\u1e88': 'Lu'
'\u1e89': 'L'
'\u1e8a': 'Lu'
'\u1e8b': 'L'
'\u1e8c': 'Lu'
'\u1e8d': 'L'
'\u1e8e': 'Lu'
'\u1e8f': 'L'
'\u1e90': 'Lu'
'\u1e91': 'L'
'\u1e92': 'Lu'
'\u1e93': 'L'
'\u1e94': 'Lu'
'\u1e95': 'L'
'\u1e96': 'L'
'\u1e97': 'L'
'\u1e98': 'L'
'\u1e99': 'L'
'\u1e9a': 'L'
'\u1e9b': 'L'
'\u1e9c': 'L'
'\u1e9d': 'L'
'\u1e9e': 'Lu'
'\u1e9f': 'L'
'\u1ea0': 'Lu'
'\u1ea1': 'L'
'\u1ea2': 'Lu'
'\u1ea3': 'L'
'\u1ea4': 'Lu'
'\u1ea5': 'L'
'\u1ea6': 'Lu'
'\u1ea7': 'L'
'\u1ea8': 'Lu'
'\u1ea9': 'L'
'\u1eaa': 'Lu'
'\u1eab': 'L'
'\u1eac': 'Lu'
'\u1ead': 'L'
'\u1eae': 'Lu'
'\u1eaf': 'L'
'\u1eb0': 'Lu'
'\u1eb1': 'L'
'\u1eb2': 'Lu'
'\u1eb3': 'L'
'\u1eb4': 'Lu'
'\u1eb5': 'L'
'\u1eb6': 'Lu'
'\u1eb7': 'L'
'\u1eb8': 'Lu'
'\u1eb9': 'L'
'\u1eba': 'Lu'
'\u1ebb': 'L'
'\u1ebc': 'Lu'
'\u1ebd': 'L'
'\u1ebe': 'Lu'
'\u1ebf': 'L'
'\u1ec0': 'Lu'
'\u1ec1': 'L'
'\u1ec2': 'Lu'
'\u1ec3': 'L'
'\u1ec4': 'Lu'
'\u1ec5': 'L'
'\u1ec6': 'Lu'
'\u1ec7': 'L'
'\u1ec8': 'Lu'
'\u1ec9': 'L'
'\u1eca': 'Lu'
'\u1ecb': 'L'
'\u1ecc': 'Lu'
'\u1ecd': 'L'
'\u1ece': 'Lu'
'\u1ecf': 'L'
'\u1ed0': 'Lu'
'\u1ed1': 'L'
'\u1ed2': 'Lu'
'\u1ed3': 'L'
'\u1ed4': 'Lu'
'\u1ed5': 'L'
'\u1ed6': 'Lu'
'\u1ed7': 'L'
'\u1ed8': 'Lu'
'\u1ed9': 'L'
'\u1eda': 'Lu'
'\u1edb': 'L'
'\u1edc': 'Lu'
'\u1edd': 'L'
'\u1ede': 'Lu'
'\u1edf': 'L'
'\u1ee0': 'Lu'
'\u1ee1': 'L'
'\u1ee2': 'Lu'
'\u1ee3': 'L'
'\u1ee4': 'Lu'
'\u1ee5': 'L'
'\u1ee6': 'Lu'
'\u1ee7': 'L'
'\u1ee8': 'Lu'
'\u1ee9': 'L'
'\u1eea': 'Lu'
'\u1eeb': 'L'
'\u1eec': 'Lu'
'\u1eed': 'L'
'\u1eee': 'Lu'
'\u1eef': 'L'
'\u1ef0': 'Lu'
'\u1ef1': 'L'
'\u1ef2': 'Lu'
'\u1ef3': 'L'
'\u1ef4': 'Lu'
'\u1ef5': 'L'
'\u1ef6': 'Lu'
'\u1ef7': 'L'
'\u1ef8': 'Lu'
'\u1ef9': 'L'
'\u1efa': 'Lu'
'\u1efb': 'L'
'\u1efc': 'Lu'
'\u1efd': 'L'
'\u1efe': 'Lu'
'\u1eff': 'L'
'\u1f00': 'L'
'\u1f01': 'L'
'\u1f02': 'L'
'\u1f03': 'L'
'\u1f04': 'L'
'\u1f05': 'L'
'\u1f06': 'L'
'\u1f07': 'L'
'\u1f08': 'Lu'
'\u1f09': 'Lu'
'\u1f0a': 'Lu'
'\u1f0b': 'Lu'
'\u1f0c': 'Lu'
'\u1f0d': 'Lu'
'\u1f0e': 'Lu'
'\u1f0f': 'Lu'
'\u1f10': 'L'
'\u1f11': 'L'
'\u1f12': 'L'
'\u1f13': 'L'
'\u1f14': 'L'
'\u1f15': 'L'
'\u1f18': 'Lu'
'\u1f19': 'Lu'
'\u1f1a': 'Lu'
'\u1f1b': 'Lu'
'\u1f1c': 'Lu'
'\u1f1d': 'Lu'
'\u1f20': 'L'
'\u1f21': 'L'
'\u1f22': 'L'
'\u1f23': 'L'
'\u1f24': 'L'
'\u1f25': 'L'
'\u1f26': 'L'
'\u1f27': 'L'
'\u1f28': 'Lu'
'\u1f29': 'Lu'
'\u1f2a': 'Lu'
'\u1f2b': 'Lu'
'\u1f2c': 'Lu'
'\u1f2d': 'Lu'
'\u1f2e': 'Lu'
'\u1f2f': 'Lu'
'\u1f30': 'L'
'\u1f31': 'L'
'\u1f32': 'L'
'\u1f33': 'L'
'\u1f34': 'L'
'\u1f35': 'L'
'\u1f36': 'L'
'\u1f37': 'L'
'\u1f38': 'Lu'
'\u1f39': 'Lu'
'\u1f3a': 'Lu'
'\u1f3b': 'Lu'
'\u1f3c': 'Lu'
'\u1f3d': 'Lu'
'\u1f3e': 'Lu'
'\u1f3f': 'Lu'
'\u1f40': 'L'
'\u1f41': 'L'
'\u1f42': 'L'
'\u1f43': 'L'
'\u1f44': 'L'
'\u1f45': 'L'
'\u1f48': 'Lu'
'\u1f49': 'Lu'
'\u1f4a': 'Lu'
'\u1f4b': 'Lu'
'\u1f4c': 'Lu'
'\u1f4d': 'Lu'
'\u1f50': 'L'
'\u1f51': 'L'
'\u1f52': 'L'
'\u1f53': 'L'
'\u1f54': 'L'
'\u1f55': 'L'
'\u1f56': 'L'
'\u1f57': 'L'
'\u1f59': 'Lu'
'\u1f5b': 'Lu'
'\u1f5d': 'Lu'
'\u1f5f': 'Lu'
'\u1f60': 'L'
'\u1f61': 'L'
'\u1f62': 'L'
'\u1f63': 'L'
'\u1f64': 'L'
'\u1f65': 'L'
'\u1f66': 'L'
'\u1f67': 'L'
'\u1f68': 'Lu'
'\u1f69': 'Lu'
'\u1f6a': 'Lu'
'\u1f6b': 'Lu'
'\u1f6c': 'Lu'
'\u1f6d': 'Lu'
'\u1f6e': 'Lu'
'\u1f6f': 'Lu'
'\u1f70': 'L'
'\u1f71': 'L'
'\u1f72': 'L'
'\u1f73': 'L'
'\u1f74': 'L'
'\u1f75': 'L'
'\u1f76': 'L'
'\u1f77': 'L'
'\u1f78': 'L'
'\u1f79': 'L'
'\u1f7a': 'L'
'\u1f7b': 'L'
'\u1f7c': 'L'
'\u1f7d': 'L'
'\u1f80': 'L'
'\u1f81': 'L'
'\u1f82': 'L'
'\u1f83': 'L'
'\u1f84': 'L'
'\u1f85': 'L'
'\u1f86': 'L'
'\u1f87': 'L'
'\u1f88': 'L'
'\u1f89': 'L'
'\u1f8a': 'L'
'\u1f8b': 'L'
'\u1f8c': 'L'
'\u1f8d': 'L'
'\u1f8e': 'L'
'\u1f8f': 'L'
'\u1f90': 'L'
'\u1f91': 'L'
'\u1f92': 'L'
'\u1f93': 'L'
'\u1f94': 'L'
'\u1f95': 'L'
'\u1f96': 'L'
'\u1f97': 'L'
'\u1f98': 'L'
'\u1f99': 'L'
'\u1f9a': 'L'
'\u1f9b': 'L'
'\u1f9c': 'L'
'\u1f9d': 'L'
'\u1f9e': 'L'
'\u1f9f': 'L'
'\u1fa0': 'L'
'\u1fa1': 'L'
'\u1fa2': 'L'
'\u1fa3': 'L'
'\u1fa4': 'L'
'\u1fa5': 'L'
'\u1fa6': 'L'
'\u1fa7': 'L'
'\u1fa8': 'L'
'\u1fa9': 'L'
'\u1faa': 'L'
'\u1fab': 'L'
'\u1fac': 'L'
'\u1fad': 'L'
'\u1fae': 'L'
'\u1faf': 'L'
'\u1fb0': 'L'
'\u1fb1': 'L'
'\u1fb2': 'L'
'\u1fb3': 'L'
'\u1fb4': 'L'
'\u1fb6': 'L'
'\u1fb7': 'L'
'\u1fb8': 'Lu'
'\u1fb9': 'Lu'
'\u1fba': 'Lu'
'\u1fbb': 'Lu'
'\u1fbc': 'L'
'\u1fbe': 'L'
'\u1fc2': 'L'
'\u1fc3': 'L'
'\u1fc4': 'L'
'\u1fc6': 'L'
'\u1fc7': 'L'
'\u1fc8': 'Lu'
'\u1fc9': 'Lu'
'\u1fca': 'Lu'
'\u1fcb': 'Lu'
'\u1fcc': 'L'
'\u1fd0': 'L'
'\u1fd1': 'L'
'\u1fd2': 'L'
'\u1fd3': 'L'
'\u1fd6': 'L'
'\u1fd7': 'L'
'\u1fd8': 'Lu'
'\u1fd9': 'Lu'
'\u1fda': 'Lu'
'\u1fdb': 'Lu'
'\u1fe0': 'L'
'\u1fe1': 'L'
'\u1fe2': 'L'
'\u1fe3': 'L'
'\u1fe4': 'L'
'\u1fe5': 'L'
'\u1fe6': 'L'
'\u1fe7': 'L'
'\u1fe8': 'Lu'
'\u1fe9': 'Lu'
'\u1fea': 'Lu'
'\u1feb': 'Lu'
'\u1fec': 'Lu'
'\u1ff2': 'L'
'\u1ff3': 'L'
'\u1ff4': 'L'
'\u1ff6': 'L'
'\u1ff7': 'L'
'\u1ff8': 'Lu'
'\u1ff9': 'Lu'
'\u1ffa': 'Lu'
'\u1ffb': 'Lu'
'\u1ffc': 'L'
'\u2070': 'N'
'\u2071': 'L'
'\u2074': 'N'
'\u2075': 'N'
'\u2076': 'N'
'\u2077': 'N'
'\u2078': 'N'
'\u2079': 'N'
'\u207f': 'L'
'\u2080': 'N'
'\u2081': 'N'
'\u2082': 'N'
'\u2083': 'N'
'\u2084': 'N'
'\u2085': 'N'
'\u2086': 'N'
'\u2087': 'N'
'\u2088': 'N'
'\u2089': 'N'
'\u2090': 'L'
'\u2091': 'L'
'\u2092': 'L'
'\u2093': 'L'
'\u2094': 'L'
'\u2095': 'L'
'\u2096': 'L'
'\u2097': 'L'
'\u2098': 'L'
'\u2099': 'L'
'\u209a': 'L'
'\u209b': 'L'
'\u209c': 'L'
'\u2102': 'Lu'
'\u2107': 'Lu'
'\u210a': 'L'
'\u210b': 'Lu'
'\u210c': 'Lu'
'\u210d': 'Lu'
'\u210e': 'L'
'\u210f': 'L'
'\u2110': 'Lu'
'\u2111': 'Lu'
'\u2112': 'Lu'
'\u2113': 'L'
'\u2115': 'Lu'
'\u2119': 'Lu'
'\u211a': 'Lu'
'\u211b': 'Lu'
'\u211c': 'Lu'
'\u211d': 'Lu'
'\u2124': 'Lu'
'\u2126': 'Lu'
'\u2128': 'Lu'
'\u212a': 'Lu'
'\u212b': 'Lu'
'\u212c': 'Lu'
'\u212d': 'Lu'
'\u212f': 'L'
'\u2130': 'Lu'
'\u2131': 'Lu'
'\u2132': 'Lu'
'\u2133': 'Lu'
'\u2134': 'L'
'\u2135': 'L'
'\u2136': 'L'
'\u2137': 'L'
'\u2138': 'L'
'\u2139': 'L'
'\u213c': 'L'
'\u213d': 'L'
'\u213e': 'Lu'
'\u213f': 'Lu'
'\u2145': 'Lu'
'\u2146': 'L'
'\u2147': 'L'
'\u2148': 'L'
'\u2149': 'L'
'\u214e': 'L'
'\u2150': 'N'
'\u2151': 'N'
'\u2152': 'N'
'\u2153': 'N'
'\u2154': 'N'
'\u2155': 'N'
'\u2156': 'N'
'\u2157': 'N'
'\u2158': 'N'
'\u2159': 'N'
'\u215a': 'N'
'\u215b': 'N'
'\u215c': 'N'
'\u215d': 'N'
'\u215e': 'N'
'\u215f': 'N'
'\u2160': 'N'
'\u2161': 'N'
'\u2162': 'N'
'\u2163': 'N'
'\u2164': 'N'
'\u2165': 'N'
'\u2166': 'N'
'\u2167': 'N'
'\u2168': 'N'
'\u2169': 'N'
'\u216a': 'N'
'\u216b': 'N'
'\u216c': 'N'
'\u216d': 'N'
'\u216e': 'N'
'\u216f': 'N'
'\u2170': 'N'
'\u2171': 'N'
'\u2172': 'N'
'\u2173': 'N'
'\u2174': 'N'
'\u2175': 'N'
'\u2176': 'N'
'\u2177': 'N'
'\u2178': 'N'
'\u2179': 'N'
'\u217a': 'N'
'\u217b': 'N'
'\u217c': 'N'
'\u217d': 'N'
'\u217e': 'N'
'\u217f': 'N'
'\u2180': 'N'
'\u2181': 'N'
'\u2182': 'N'
'\u2183': 'Lu'
'\u2184': 'L'
'\u2185': 'N'
'\u2186': 'N'
'\u2187': 'N'
'\u2188': 'N'
'\u2189': 'N'
'\u2460': 'N'
'\u2461': 'N'
'\u2462': 'N'
'\u2463': 'N'
'\u2464': 'N'
'\u2465': 'N'
'\u2466': 'N'
'\u2467': 'N'
'\u2468': 'N'
'\u2469': 'N'
'\u246a': 'N'
'\u246b': 'N'
'\u246c': 'N'
'\u246d': 'N'
'\u246e': 'N'
'\u246f': 'N'
'\u2470': 'N'
'\u2471': 'N'
'\u2472': 'N'
'\u2473': 'N'
'\u2474': 'N'
'\u2475': 'N'
'\u2476': 'N'
'\u2477': 'N'
'\u2478': 'N'
'\u2479': 'N'
'\u247a': 'N'
'\u247b': 'N'
'\u247c': 'N'
'\u247d': 'N'
'\u247e': 'N'
'\u247f': 'N'
'\u2480': 'N'
'\u2481': 'N'
'\u2482': 'N'
'\u2483': 'N'
'\u2484': 'N'
'\u2485': 'N'
'\u2486': 'N'
'\u2487': 'N'
'\u2488': 'N'
'\u2489': 'N'
'\u248a': 'N'
'\u248b': 'N'
'\u248c': 'N'
'\u248d': 'N'
'\u248e': 'N'
'\u248f': 'N'
'\u2490': 'N'
'\u2491': 'N'
'\u2492': 'N'
'\u2493': 'N'
'\u2494': 'N'
'\u2495': 'N'
'\u2496': 'N'
'\u2497': 'N'
'\u2498': 'N'
'\u2499': 'N'
'\u249a': 'N'
'\u249b': 'N'
'\u24ea': 'N'
'\u24eb': 'N'
'\u24ec': 'N'
'\u24ed': 'N'
'\u24ee': 'N'
'\u24ef': 'N'
'\u24f0': 'N'
'\u24f1': 'N'
'\u24f2': 'N'
'\u24f3': 'N'
'\u24f4': 'N'
'\u24f5': 'N'
'\u24f6': 'N'
'\u24f7': 'N'
'\u24f8': 'N'
'\u24f9': 'N'
'\u24fa': 'N'
'\u24fb': 'N'
'\u24fc': 'N'
'\u24fd': 'N'
'\u24fe': 'N'
'\u24ff': 'N'
'\u2776': 'N'
'\u2777': 'N'
'\u2778': 'N'
'\u2779': 'N'
'\u277a': 'N'
'\u277b': 'N'
'\u277c': 'N'
'\u277d': 'N'
'\u277e': 'N'
'\u277f': 'N'
'\u2780': 'N'
'\u2781': 'N'
'\u2782': 'N'
'\u2783': 'N'
'\u2784': 'N'
'\u2785': 'N'
'\u2786': 'N'
'\u2787': 'N'
'\u2788': 'N'
'\u2789': 'N'
'\u278a': 'N'
'\u278b': 'N'
'\u278c': 'N'
'\u278d': 'N'
'\u278e': 'N'
'\u278f': 'N'
'\u2790': 'N'
'\u2791': 'N'
'\u2792': 'N'
'\u2793': 'N'
'\u2c00': 'Lu'
'\u2c01': 'Lu'
'\u2c02': 'Lu'
'\u2c03': 'Lu'
'\u2c04': 'Lu'
'\u2c05': 'Lu'
'\u2c06': 'Lu'
'\u2c07': 'Lu'
'\u2c08': 'Lu'
'\u2c09': 'Lu'
'\u2c0a': 'Lu'
'\u2c0b': 'Lu'
'\u2c0c': 'Lu'
'\u2c0d': 'Lu'
'\u2c0e': 'Lu'
'\u2c0f': 'Lu'
'\u2c10': 'Lu'
'\u2c11': 'Lu'
'\u2c12': 'Lu'
'\u2c13': 'Lu'
'\u2c14': 'Lu'
'\u2c15': 'Lu'
'\u2c16': 'Lu'
'\u2c17': 'Lu'
'\u2c18': 'Lu'
'\u2c19': 'Lu'
'\u2c1a': 'Lu'
'\u2c1b': 'Lu'
'\u2c1c': 'Lu'
'\u2c1d': 'Lu'
'\u2c1e': 'Lu'
'\u2c1f': 'Lu'
'\u2c20': 'Lu'
'\u2c21': 'Lu'
'\u2c22': 'Lu'
'\u2c23': 'Lu'
'\u2c24': 'Lu'
'\u2c25': 'Lu'
'\u2c26': 'Lu'
'\u2c27': 'Lu'
'\u2c28': 'Lu'
'\u2c29': 'Lu'
'\u2c2a': 'Lu'
'\u2c2b': 'Lu'
'\u2c2c': 'Lu'
'\u2c2d': 'Lu'
'\u2c2e': 'Lu'
'\u2c30': 'L'
'\u2c31': 'L'
'\u2c32': 'L'
'\u2c33': 'L'
'\u2c34': 'L'
'\u2c35': 'L'
'\u2c36': 'L'
'\u2c37': 'L'
'\u2c38': 'L'
'\u2c39': 'L'
'\u2c3a': 'L'
'\u2c3b': 'L'
'\u2c3c': 'L'
'\u2c3d': 'L'
'\u2c3e': 'L'
'\u2c3f': 'L'
'\u2c40': 'L'
'\u2c41': 'L'
'\u2c42': 'L'
'\u2c43': 'L'
'\u2c44': 'L'
'\u2c45': 'L'
'\u2c46': 'L'
'\u2c47': 'L'
'\u2c48': 'L'
'\u2c49': 'L'
'\u2c4a': 'L'
'\u2c4b': 'L'
'\u2c4c': 'L'
'\u2c4d': 'L'
'\u2c4e': 'L'
'\u2c4f': 'L'
'\u2c50': 'L'
'\u2c51': 'L'
'\u2c52': 'L'
'\u2c53': 'L'
'\u2c54': 'L'
'\u2c55': 'L'
'\u2c56': 'L'
'\u2c57': 'L'
'\u2c58': 'L'
'\u2c59': 'L'
'\u2c5a': 'L'
'\u2c5b': 'L'
'\u2c5c': 'L'
'\u2c5d': 'L'
'\u2c5e': 'L'
'\u2c60': 'Lu'
'\u2c61': 'L'
'\u2c62': 'Lu'
'\u2c63': 'Lu'
'\u2c64': 'Lu'
'\u2c65': 'L'
'\u2c66': 'L'
'\u2c67': 'Lu'
'\u2c68': 'L'
'\u2c69': 'Lu'
'\u2c6a': 'L'
'\u2c6b': 'Lu'
'\u2c6c': 'L'
'\u2c6d': 'Lu'
'\u2c6e': 'Lu'
'\u2c6f': 'Lu'
'\u2c70': 'Lu'
'\u2c71': 'L'
'\u2c72': 'Lu'
'\u2c73': 'L'
'\u2c74': 'L'
'\u2c75': 'Lu'
'\u2c76': 'L'
'\u2c77': 'L'
'\u2c78': 'L'
'\u2c79': 'L'
'\u2c7a': 'L'
'\u2c7b': 'L'
'\u2c7c': 'L'
'\u2c7d': 'L'
'\u2c7e': 'Lu'
'\u2c7f': 'Lu'
'\u2c80': 'Lu'
'\u2c81': 'L'
'\u2c82': 'Lu'
'\u2c83': 'L'
'\u2c84': 'Lu'
'\u2c85': 'L'
'\u2c86': 'Lu'
'\u2c87': 'L'
'\u2c88': 'Lu'
'\u2c89': 'L'
'\u2c8a': 'Lu'
'\u2c8b': 'L'
'\u2c8c': 'Lu'
'\u2c8d': 'L'
'\u2c8e': 'Lu'
'\u2c8f': 'L'
'\u2c90': 'Lu'
'\u2c91': 'L'
'\u2c92': 'Lu'
'\u2c93': 'L'
'\u2c94': 'Lu'
'\u2c95': 'L'
'\u2c96': 'Lu'
'\u2c97': 'L'
'\u2c98': 'Lu'
'\u2c99': 'L'
'\u2c9a': 'Lu'
'\u2c9b': 'L'
'\u2c9c': 'Lu'
'\u2c9d': 'L'
'\u2c9e': 'Lu'
'\u2c9f': 'L'
'\u2ca0': 'Lu'
'\u2ca1': 'L'
'\u2ca2': 'Lu'
'\u2ca3': 'L'
'\u2ca4': 'Lu'
'\u2ca5': 'L'
'\u2ca6': 'Lu'
'\u2ca7': 'L'
'\u2ca8': 'Lu'
'\u2ca9': 'L'
'\u2caa': 'Lu'
'\u2cab': 'L'
'\u2cac': 'Lu'
'\u2cad': 'L'
'\u2cae': 'Lu'
'\u2caf': 'L'
'\u2cb0': 'Lu'
'\u2cb1': 'L'
'\u2cb2': 'Lu'
'\u2cb3': 'L'
'\u2cb4': 'Lu'
'\u2cb5': 'L'
'\u2cb6': 'Lu'
'\u2cb7': 'L'
'\u2cb8': 'Lu'
'\u2cb9': 'L'
'\u2cba': 'Lu'
'\u2cbb': 'L'
'\u2cbc': 'Lu'
'\u2cbd': 'L'
'\u2cbe': 'Lu'
'\u2cbf': 'L'
'\u2cc0': 'Lu'
'\u2cc1': 'L'
'\u2cc2': 'Lu'
'\u2cc3': 'L'
'\u2cc4': 'Lu'
'\u2cc5': 'L'
'\u2cc6': 'Lu'
'\u2cc7': 'L'
'\u2cc8': 'Lu'
'\u2cc9': 'L'
'\u2cca': 'Lu'
'\u2ccb': 'L'
'\u2ccc': 'Lu'
'\u2ccd': 'L'
'\u2cce': 'Lu'
'\u2ccf': 'L'
'\u2cd0': 'Lu'
'\u2cd1': 'L'
'\u2cd2': 'Lu'
'\u2cd3': 'L'
'\u2cd4': 'Lu'
'\u2cd5': 'L'
'\u2cd6': 'Lu'
'\u2cd7': 'L'
'\u2cd8': 'Lu'
'\u2cd9': 'L'
'\u2cda': 'Lu'
'\u2cdb': 'L'
'\u2cdc': 'Lu'
'\u2cdd': 'L'
'\u2cde': 'Lu'
'\u2cdf': 'L'
'\u2ce0': 'Lu'
'\u2ce1': 'L'
'\u2ce2': 'Lu'
'\u2ce3': 'L'
'\u2ce4': 'L'
'\u2ceb': 'Lu'
'\u2cec': 'L'
'\u2ced': 'Lu'
'\u2cee': 'L'
'\u2cf2': 'Lu'
'\u2cf3': 'L'
'\u2cfd': 'N'
'\u2d00': 'L'
'\u2d01': 'L'
'\u2d02': 'L'
'\u2d03': 'L'
'\u2d04': 'L'
'\u2d05': 'L'
'\u2d06': 'L'
'\u2d07': 'L'
'\u2d08': 'L'
'\u2d09': 'L'
'\u2d0a': 'L'
'\u2d0b': 'L'
'\u2d0c': 'L'
'\u2d0d': 'L'
'\u2d0e': 'L'
'\u2d0f': 'L'
'\u2d10': 'L'
'\u2d11': 'L'
'\u2d12': 'L'
'\u2d13': 'L'
'\u2d14': 'L'
'\u2d15': 'L'
'\u2d16': 'L'
'\u2d17': 'L'
'\u2d18': 'L'
'\u2d19': 'L'
'\u2d1a': 'L'
'\u2d1b': 'L'
'\u2d1c': 'L'
'\u2d1d': 'L'
'\u2d1e': 'L'
'\u2d1f': 'L'
'\u2d20': 'L'
'\u2d21': 'L'
'\u2d22': 'L'
'\u2d23': 'L'
'\u2d24': 'L'
'\u2d25': 'L'
'\u2d27': 'L'
'\u2d2d': 'L'
'\u2d30': 'L'
'\u2d31': 'L'
'\u2d32': 'L'
'\u2d33': 'L'
'\u2d34': 'L'
'\u2d35': 'L'
'\u2d36': 'L'
'\u2d37': 'L'
'\u2d38': 'L'
'\u2d39': 'L'
'\u2d3a': 'L'
'\u2d3b': 'L'
'\u2d3c': 'L'
'\u2d3d': 'L'
'\u2d3e': 'L'
'\u2d3f': 'L'
'\u2d40': 'L'
'\u2d41': 'L'
'\u2d42': 'L'
'\u2d43': 'L'
'\u2d44': 'L'
'\u2d45': 'L'
'\u2d46': 'L'
'\u2d47': 'L'
'\u2d48': 'L'
'\u2d49': 'L'
'\u2d4a': 'L'
'\u2d4b': 'L'
'\u2d4c': 'L'
'\u2d4d': 'L'
'\u2d4e': 'L'
'\u2d4f': 'L'
'\u2d50': 'L'
'\u2d51': 'L'
'\u2d52': 'L'
'\u2d53': 'L'
'\u2d54': 'L'
'\u2d55': 'L'
'\u2d56': 'L'
'\u2d57': 'L'
'\u2d58': 'L'
'\u2d59': 'L'
'\u2d5a': 'L'
'\u2d5b': 'L'
'\u2d5c': 'L'
'\u2d5d': 'L'
'\u2d5e': 'L'
'\u2d5f': 'L'
'\u2d60': 'L'
'\u2d61': 'L'
'\u2d62': 'L'
'\u2d63': 'L'
'\u2d64': 'L'
'\u2d65': 'L'
'\u2d66': 'L'
'\u2d67': 'L'
'\u2d6f': 'L'
'\u2d80': 'L'
'\u2d81': 'L'
'\u2d82': 'L'
'\u2d83': 'L'
'\u2d84': 'L'
'\u2d85': 'L'
'\u2d86': 'L'
'\u2d87': 'L'
'\u2d88': 'L'
'\u2d89': 'L'
'\u2d8a': 'L'
'\u2d8b': 'L'
'\u2d8c': 'L'
'\u2d8d': 'L'
'\u2d8e': 'L'
'\u2d8f': 'L'
'\u2d90': 'L'
'\u2d91': 'L'
'\u2d92': 'L'
'\u2d93': 'L'
'\u2d94': 'L'
'\u2d95': 'L'
'\u2d96': 'L'
'\u2da0': 'L'
'\u2da1': 'L'
'\u2da2': 'L'
'\u2da3': 'L'
'\u2da4': 'L'
'\u2da5': 'L'
'\u2da6': 'L'
'\u2da8': 'L'
'\u2da9': 'L'
'\u2daa': 'L'
'\u2dab': 'L'
'\u2dac': 'L'
'\u2dad': 'L'
'\u2dae': 'L'
'\u2db0': 'L'
'\u2db1': 'L'
'\u2db2': 'L'
'\u2db3': 'L'
'\u2db4': 'L'
'\u2db5': 'L'
'\u2db6': 'L'
'\u2db8': 'L'
'\u2db9': 'L'
'\u2dba': 'L'
'\u2dbb': 'L'
'\u2dbc': 'L'
'\u2dbd': 'L'
'\u2dbe': 'L'
'\u2dc0': 'L'
'\u2dc1': 'L'
'\u2dc2': 'L'
'\u2dc3': 'L'
'\u2dc4': 'L'
'\u2dc5': 'L'
'\u2dc6': 'L'
'\u2dc8': 'L'
'\u2dc9': 'L'
'\u2dca': 'L'
'\u2dcb': 'L'
'\u2dcc': 'L'
'\u2dcd': 'L'
'\u2dce': 'L'
'\u2dd0': 'L'
'\u2dd1': 'L'
'\u2dd2': 'L'
'\u2dd3': 'L'
'\u2dd4': 'L'
'\u2dd5': 'L'
'\u2dd6': 'L'
'\u2dd8': 'L'
'\u2dd9': 'L'
'\u2dda': 'L'
'\u2ddb': 'L'
'\u2ddc': 'L'
'\u2ddd': 'L'
'\u2dde': 'L'
'\u2e2f': 'L'
'\u3005': 'L'
'\u3006': 'L'
'\u3007': 'N'
'\u3021': 'N'
'\u3022': 'N'
'\u3023': 'N'
'\u3024': 'N'
'\u3025': 'N'
'\u3026': 'N'
'\u3027': 'N'
'\u3028': 'N'
'\u3029': 'N'
'\u3031': 'L'
'\u3032': 'L'
'\u3033': 'L'
'\u3034': 'L'
'\u3035': 'L'
'\u3038': 'N'
'\u3039': 'N'
'\u303a': 'N'
'\u303b': 'L'
'\u303c': 'L'
'\u3041': 'L'
'\u3042': 'L'
'\u3043': 'L'
'\u3044': 'L'
'\u3045': 'L'
'\u3046': 'L'
'\u3047': 'L'
'\u3048': 'L'
'\u3049': 'L'
'\u304a': 'L'
'\u304b': 'L'
'\u304c': 'L'
'\u304d': 'L'
'\u304e': 'L'
'\u304f': 'L'
'\u3050': 'L'
'\u3051': 'L'
'\u3052': 'L'
'\u3053': 'L'
'\u3054': 'L'
'\u3055': 'L'
'\u3056': 'L'
'\u3057': 'L'
'\u3058': 'L'
'\u3059': 'L'
'\u305a': 'L'
'\u305b': 'L'
'\u305c': 'L'
'\u305d': 'L'
'\u305e': 'L'
'\u305f': 'L'
'\u3060': 'L'
'\u3061': 'L'
'\u3062': 'L'
'\u3063': 'L'
'\u3064': 'L'
'\u3065': 'L'
'\u3066': 'L'
'\u3067': 'L'
'\u3068': 'L'
'\u3069': 'L'
'\u306a': 'L'
'\u306b': 'L'
'\u306c': 'L'
'\u306d': 'L'
'\u306e': 'L'
'\u306f': 'L'
'\u3070': 'L'
'\u3071': 'L'
'\u3072': 'L'
'\u3073': 'L'
'\u3074': 'L'
'\u3075': 'L'
'\u3076': 'L'
'\u3077': 'L'
'\u3078': 'L'
'\u3079': 'L'
'\u307a': 'L'
'\u307b': 'L'
'\u307c': 'L'
'\u307d': 'L'
'\u307e': 'L'
'\u307f': 'L'
'\u3080': 'L'
'\u3081': 'L'
'\u3082': 'L'
'\u3083': 'L'
'\u3084': 'L'
'\u3085': 'L'
'\u3086': 'L'
'\u3087': 'L'
'\u3088': 'L'
'\u3089': 'L'
'\u308a': 'L'
'\u308b': 'L'
'\u308c': 'L'
'\u308d': 'L'
'\u308e': 'L'
'\u308f': 'L'
'\u3090': 'L'
'\u3091': 'L'
'\u3092': 'L'
'\u3093': 'L'
'\u3094': 'L'
'\u3095': 'L'
'\u3096': 'L'
'\u309d': 'L'
'\u309e': 'L'
'\u309f': 'L'
'\u30a1': 'L'
'\u30a2': 'L'
'\u30a3': 'L'
'\u30a4': 'L'
'\u30a5': 'L'
'\u30a6': 'L'
'\u30a7': 'L'
'\u30a8': 'L'
'\u30a9': 'L'
'\u30aa': 'L'
'\u30ab': 'L'
'\u30ac': 'L'
'\u30ad': 'L'
'\u30ae': 'L'
'\u30af': 'L'
'\u30b0': 'L'
'\u30b1': 'L'
'\u30b2': 'L'
'\u30b3': 'L'
'\u30b4': 'L'
'\u30b5': 'L'
'\u30b6': 'L'
'\u30b7': 'L'
'\u30b8': 'L'
'\u30b9': 'L'
'\u30ba': 'L'
'\u30bb': 'L'
'\u30bc': 'L'
'\u30bd': 'L'
'\u30be': 'L'
'\u30bf': 'L'
'\u30c0': 'L'
'\u30c1': 'L'
'\u30c2': 'L'
'\u30c3': 'L'
'\u30c4': 'L'
'\u30c5': 'L'
'\u30c6': 'L'
'\u30c7': 'L'
'\u30c8': 'L'
'\u30c9': 'L'
'\u30ca': 'L'
'\u30cb': 'L'
'\u30cc': 'L'
'\u30cd': 'L'
'\u30ce': 'L'
'\u30cf': 'L'
'\u30d0': 'L'
'\u30d1': 'L'
'\u30d2': 'L'
'\u30d3': 'L'
'\u30d4': 'L'
'\u30d5': 'L'
'\u30d6': 'L'
'\u30d7': 'L'
'\u30d8': 'L'
'\u30d9': 'L'
'\u30da': 'L'
'\u30db': 'L'
'\u30dc': 'L'
'\u30dd': 'L'
'\u30de': 'L'
'\u30df': 'L'
'\u30e0': 'L'
'\u30e1': 'L'
'\u30e2': 'L'
'\u30e3': 'L'
'\u30e4': 'L'
'\u30e5': 'L'
'\u30e6': 'L'
'\u30e7': 'L'
'\u30e8': 'L'
'\u30e9': 'L'
'\u30ea': 'L'
'\u30eb': 'L'
'\u30ec': 'L'
'\u30ed': 'L'
'\u30ee': 'L'
'\u30ef': 'L'
'\u30f0': 'L'
'\u30f1': 'L'
'\u30f2': 'L'
'\u30f3': 'L'
'\u30f4': 'L'
'\u30f5': 'L'
'\u30f6': 'L'
'\u30f7': 'L'
'\u30f8': 'L'
'\u30f9': 'L'
'\u30fa': 'L'
'\u30fc': 'L'
'\u30fd': 'L'
'\u30fe': 'L'
'\u30ff': 'L'
'\u3105': 'L'
'\u3106': 'L'
'\u3107': 'L'
'\u3108': 'L'
'\u3109': 'L'
'\u310a': 'L'
'\u310b': 'L'
'\u310c': 'L'
'\u310d': 'L'
'\u310e': 'L'
'\u310f': 'L'
'\u3110': 'L'
'\u3111': 'L'
'\u3112': 'L'
'\u3113': 'L'
'\u3114': 'L'
'\u3115': 'L'
'\u3116': 'L'
'\u3117': 'L'
'\u3118': 'L'
'\u3119': 'L'
'\u311a': 'L'
'\u311b': 'L'
'\u311c': 'L'
'\u311d': 'L'
'\u311e': 'L'
'\u311f': 'L'
'\u3120': 'L'
'\u3121': 'L'
'\u3122': 'L'
'\u3123': 'L'
'\u3124': 'L'
'\u3125': 'L'
'\u3126': 'L'
'\u3127': 'L'
'\u3128': 'L'
'\u3129': 'L'
'\u312a': 'L'
'\u312b': 'L'
'\u312c': 'L'
'\u312d': 'L'
'\u3131': 'L'
'\u3132': 'L'
'\u3133': 'L'
'\u3134': 'L'
'\u3135': 'L'
'\u3136': 'L'
'\u3137': 'L'
'\u3138': 'L'
'\u3139': 'L'
'\u313a': 'L'
'\u313b': 'L'
'\u313c': 'L'
'\u313d': 'L'
'\u313e': 'L'
'\u313f': 'L'
'\u3140': 'L'
'\u3141': 'L'
'\u3142': 'L'
'\u3143': 'L'
'\u3144': 'L'
'\u3145': 'L'
'\u3146': 'L'
'\u3147': 'L'
'\u3148': 'L'
'\u3149': 'L'
'\u314a': 'L'
'\u314b': 'L'
'\u314c': 'L'
'\u314d': 'L'
'\u314e': 'L'
'\u314f': 'L'
'\u3150': 'L'
'\u3151': 'L'
'\u3152': 'L'
'\u3153': 'L'
'\u3154': 'L'
'\u3155': 'L'
'\u3156': 'L'
'\u3157': 'L'
'\u3158': 'L'
'\u3159': 'L'
'\u315a': 'L'
'\u315b': 'L'
'\u315c': 'L'
'\u315d': 'L'
'\u315e': 'L'
'\u315f': 'L'
'\u3160': 'L'
'\u3161': 'L'
'\u3162': 'L'
'\u3163': 'L'
'\u3164': 'L'
'\u3165': 'L'
'\u3166': 'L'
'\u3167': 'L'
'\u3168': 'L'
'\u3169': 'L'
'\u316a': 'L'
'\u316b': 'L'
'\u316c': 'L'
'\u316d': 'L'
'\u316e': 'L'
'\u316f': 'L'
'\u3170': 'L'
'\u3171': 'L'
'\u3172': 'L'
'\u3173': 'L'
'\u3174': 'L'
'\u3175': 'L'
'\u3176': 'L'
'\u3177': 'L'
'\u3178': 'L'
'\u3179': 'L'
'\u317a': 'L'
'\u317b': 'L'
'\u317c': 'L'
'\u317d': 'L'
'\u317e': 'L'
'\u317f': 'L'
'\u3180': 'L'
'\u3181': 'L'
'\u3182': 'L'
'\u3183': 'L'
'\u3184': 'L'
'\u3185': 'L'
'\u3186': 'L'
'\u3187': 'L'
'\u3188': 'L'
'\u3189': 'L'
'\u318a': 'L'
'\u318b': 'L'
'\u318c': 'L'
'\u318d': 'L'
'\u318e': 'L'
'\u3192': 'N'
'\u3193': 'N'
'\u3194': 'N'
'\u3195': 'N'
'\u31a0': 'L'
'\u31a1': 'L'
'\u31a2': 'L'
'\u31a3': 'L'
'\u31a4': 'L'
'\u31a5': 'L'
'\u31a6': 'L'
'\u31a7': 'L'
'\u31a8': 'L'
'\u31a9': 'L'
'\u31aa': 'L'
'\u31ab': 'L'
'\u31ac': 'L'
'\u31ad': 'L'
'\u31ae': 'L'
'\u31af': 'L'
'\u31b0': 'L'
'\u31b1': 'L'
'\u31b2': 'L'
'\u31b3': 'L'
'\u31b4': 'L'
'\u31b5': 'L'
'\u31b6': 'L'
'\u31b7': 'L'
'\u31b8': 'L'
'\u31b9': 'L'
'\u31ba': 'L'
'\u31f0': 'L'
'\u31f1': 'L'
'\u31f2': 'L'
'\u31f3': 'L'
'\u31f4': 'L'
'\u31f5': 'L'
'\u31f6': 'L'
'\u31f7': 'L'
'\u31f8': 'L'
'\u31f9': 'L'
'\u31fa': 'L'
'\u31fb': 'L'
'\u31fc': 'L'
'\u31fd': 'L'
'\u31fe': 'L'
'\u31ff': 'L'
'\u3220': 'N'
'\u3221': 'N'
'\u3222': 'N'
'\u3223': 'N'
'\u3224': 'N'
'\u3225': 'N'
'\u3226': 'N'
'\u3227': 'N'
'\u3228': 'N'
'\u3229': 'N'
'\u3248': 'N'
'\u3249': 'N'
'\u324a': 'N'
'\u324b': 'N'
'\u324c': 'N'
'\u324d': 'N'
'\u324e': 'N'
'\u324f': 'N'
'\u3251': 'N'
'\u3252': 'N'
'\u3253': 'N'
'\u3254': 'N'
'\u3255': 'N'
'\u3256': 'N'
'\u3257': 'N'
'\u3258': 'N'
'\u3259': 'N'
'\u325a': 'N'
'\u325b': 'N'
'\u325c': 'N'
'\u325d': 'N'
'\u325e': 'N'
'\u325f': 'N'
'\u3280': 'N'
'\u3281': 'N'
'\u3282': 'N'
'\u3283': 'N'
'\u3284': 'N'
'\u3285': 'N'
'\u3286': 'N'
'\u3287': 'N'
'\u3288': 'N'
'\u3289': 'N'
'\u32b1': 'N'
'\u32b2': 'N'
'\u32b3': 'N'
'\u32b4': 'N'
'\u32b5': 'N'
'\u32b6': 'N'
'\u32b7': 'N'
'\u32b8': 'N'
'\u32b9': 'N'
'\u32ba': 'N'
'\u32bb': 'N'
'\u32bc': 'N'
'\u32bd': 'N'
'\u32be': 'N'
'\u32bf': 'N'
'\ua000': 'L'
'\ua001': 'L'
'\ua002': 'L'
'\ua003': 'L'
'\ua004': 'L'
'\ua005': 'L'
'\ua006': 'L'
'\ua007': 'L'
'\ua008': 'L'
'\ua009': 'L'
'\ua00a': 'L'
'\ua00b': 'L'
'\ua00c': 'L'
'\ua00d': 'L'
'\ua00e': 'L'
'\ua00f': 'L'
'\ua010': 'L'
'\ua011': 'L'
'\ua012': 'L'
'\ua013': 'L'
'\ua014': 'L'
'\ua015': 'L'
'\ua016': 'L'
'\ua017': 'L'
'\ua018': 'L'
'\ua019': 'L'
'\ua01a': 'L'
'\ua01b': 'L'
'\ua01c': 'L'
'\ua01d': 'L'
'\ua01e': 'L'
'\ua01f': 'L'
'\ua020': 'L'
'\ua021': 'L'
'\ua022': 'L'
'\ua023': 'L'
'\ua024': 'L'
'\ua025': 'L'
'\ua026': 'L'
'\ua027': 'L'
'\ua028': 'L'
'\ua029': 'L'
'\ua02a': 'L'
'\ua02b': 'L'
'\ua02c': 'L'
'\ua02d': 'L'
'\ua02e': 'L'
'\ua02f': 'L'
'\ua030': 'L'
'\ua031': 'L'
'\ua032': 'L'
'\ua033': 'L'
'\ua034': 'L'
'\ua035': 'L'
'\ua036': 'L'
'\ua037': 'L'
'\ua038': 'L'
'\ua039': 'L'
'\ua03a': 'L'
'\ua03b': 'L'
'\ua03c': 'L'
'\ua03d': 'L'
'\ua03e': 'L'
'\ua03f': 'L'
'\ua040': 'L'
'\ua041': 'L'
'\ua042': 'L'
'\ua043': 'L'
'\ua044': 'L'
'\ua045': 'L'
'\ua046': 'L'
'\ua047': 'L'
'\ua048': 'L'
'\ua049': 'L'
'\ua04a': 'L'
'\ua04b': 'L'
'\ua04c': 'L'
'\ua04d': 'L'
'\ua04e': 'L'
'\ua04f': 'L'
'\ua050': 'L'
'\ua051': 'L'
'\ua052': 'L'
'\ua053': 'L'
'\ua054': 'L'
'\ua055': 'L'
'\ua056': 'L'
'\ua057': 'L'
'\ua058': 'L'
'\ua059': 'L'
'\ua05a': 'L'
'\ua05b': 'L'
'\ua05c': 'L'
'\ua05d': 'L'
'\ua05e': 'L'
'\ua05f': 'L'
'\ua060': 'L'
'\ua061': 'L'
'\ua062': 'L'
'\ua063': 'L'
'\ua064': 'L'
'\ua065': 'L'
'\ua066': 'L'
'\ua067': 'L'
'\ua068': 'L'
'\ua069': 'L'
'\ua06a': 'L'
'\ua06b': 'L'
'\ua06c': 'L'
'\ua06d': 'L'
'\ua06e': 'L'
'\ua06f': 'L'
'\ua070': 'L'
'\ua071': 'L'
'\ua072': 'L'
'\ua073': 'L'
'\ua074': 'L'
'\ua075': 'L'
'\ua076': 'L'
'\ua077': 'L'
'\ua078': 'L'
'\ua079': 'L'
'\ua07a': 'L'
'\ua07b': 'L'
'\ua07c': 'L'
'\ua07d': 'L'
'\ua07e': 'L'
'\ua07f': 'L'
'\ua080': 'L'
'\ua081': 'L'
'\ua082': 'L'
'\ua083': 'L'
'\ua084': 'L'
'\ua085': 'L'
'\ua086': 'L'
'\ua087': 'L'
'\ua088': 'L'
'\ua089': 'L'
'\ua08a': 'L'
'\ua08b': 'L'
'\ua08c': 'L'
'\ua08d': 'L'
'\ua08e': 'L'
'\ua08f': 'L'
'\ua090': 'L'
'\ua091': 'L'
'\ua092': 'L'
'\ua093': 'L'
'\ua094': 'L'
'\ua095': 'L'
'\ua096': 'L'
'\ua097': 'L'
'\ua098': 'L'
'\ua099': 'L'
'\ua09a': 'L'
'\ua09b': 'L'
'\ua09c': 'L'
'\ua09d': 'L'
'\ua09e': 'L'
'\ua09f': 'L'
'\ua0a0': 'L'
'\ua0a1': 'L'
'\ua0a2': 'L'
'\ua0a3': 'L'
'\ua0a4': 'L'
'\ua0a5': 'L'
'\ua0a6': 'L'
'\ua0a7': 'L'
'\ua0a8': 'L'
'\ua0a9': 'L'
'\ua0aa': 'L'
'\ua0ab': 'L'
'\ua0ac': 'L'
'\ua0ad': 'L'
'\ua0ae': 'L'
'\ua0af': 'L'
'\ua0b0': 'L'
'\ua0b1': 'L'
'\ua0b2': 'L'
'\ua0b3': 'L'
'\ua0b4': 'L'
'\ua0b5': 'L'
'\ua0b6': 'L'
'\ua0b7': 'L'
'\ua0b8': 'L'
'\ua0b9': 'L'
'\ua0ba': 'L'
'\ua0bb': 'L'
'\ua0bc': 'L'
'\ua0bd': 'L'
'\ua0be': 'L'
'\ua0bf': 'L'
'\ua0c0': 'L'
'\ua0c1': 'L'
'\ua0c2': 'L'
'\ua0c3': 'L'
'\ua0c4': 'L'
'\ua0c5': 'L'
'\ua0c6': 'L'
'\ua0c7': 'L'
'\ua0c8': 'L'
'\ua0c9': 'L'
'\ua0ca': 'L'
'\ua0cb': 'L'
'\ua0cc': 'L'
'\ua0cd': 'L'
'\ua0ce': 'L'
'\ua0cf': 'L'
'\ua0d0': 'L'
'\ua0d1': 'L'
'\ua0d2': 'L'
'\ua0d3': 'L'
'\ua0d4': 'L'
'\ua0d5': 'L'
'\ua0d6': 'L'
'\ua0d7': 'L'
'\ua0d8': 'L'
'\ua0d9': 'L'
'\ua0da': 'L'
'\ua0db': 'L'
'\ua0dc': 'L'
'\ua0dd': 'L'
'\ua0de': 'L'
'\ua0df': 'L'
'\ua0e0': 'L'
'\ua0e1': 'L'
'\ua0e2': 'L'
'\ua0e3': 'L'
'\ua0e4': 'L'
'\ua0e5': 'L'
'\ua0e6': 'L'
'\ua0e7': 'L'
'\ua0e8': 'L'
'\ua0e9': 'L'
'\ua0ea': 'L'
'\ua0eb': 'L'
'\ua0ec': 'L'
'\ua0ed': 'L'
'\ua0ee': 'L'
'\ua0ef': 'L'
'\ua0f0': 'L'
'\ua0f1': 'L'
'\ua0f2': 'L'
'\ua0f3': 'L'
'\ua0f4': 'L'
'\ua0f5': 'L'
'\ua0f6': 'L'
'\ua0f7': 'L'
'\ua0f8': 'L'
'\ua0f9': 'L'
'\ua0fa': 'L'
'\ua0fb': 'L'
'\ua0fc': 'L'
'\ua0fd': 'L'
'\ua0fe': 'L'
'\ua0ff': 'L'
'\ua100': 'L'
'\ua101': 'L'
'\ua102': 'L'
'\ua103': 'L'
'\ua104': 'L'
'\ua105': 'L'
'\ua106': 'L'
'\ua107': 'L'
'\ua108': 'L'
'\ua109': 'L'
'\ua10a': 'L'
'\ua10b': 'L'
'\ua10c': 'L'
'\ua10d': 'L'
'\ua10e': 'L'
'\ua10f': 'L'
'\ua110': 'L'
'\ua111': 'L'
'\ua112': 'L'
'\ua113': 'L'
'\ua114': 'L'
'\ua115': 'L'
'\ua116': 'L'
'\ua117': 'L'
'\ua118': 'L'
'\ua119': 'L'
'\ua11a': 'L'
'\ua11b': 'L'
'\ua11c': 'L'
'\ua11d': 'L'
'\ua11e': 'L'
'\ua11f': 'L'
'\ua120': 'L'
'\ua121': 'L'
'\ua122': 'L'
'\ua123': 'L'
'\ua124': 'L'
'\ua125': 'L'
'\ua126': 'L'
'\ua127': 'L'
'\ua128': 'L'
'\ua129': 'L'
'\ua12a': 'L'
'\ua12b': 'L'
'\ua12c': 'L'
'\ua12d': 'L'
'\ua12e': 'L'
'\ua12f': 'L'
'\ua130': 'L'
'\ua131': 'L'
'\ua132': 'L'
'\ua133': 'L'
'\ua134': 'L'
'\ua135': 'L'
'\ua136': 'L'
'\ua137': 'L'
'\ua138': 'L'
'\ua139': 'L'
'\ua13a': 'L'
'\ua13b': 'L'
'\ua13c': 'L'
'\ua13d': 'L'
'\ua13e': 'L'
'\ua13f': 'L'
'\ua140': 'L'
'\ua141': 'L'
'\ua142': 'L'
'\ua143': 'L'
'\ua144': 'L'
'\ua145': 'L'
'\ua146': 'L'
'\ua147': 'L'
'\ua148': 'L'
'\ua149': 'L'
'\ua14a': 'L'
'\ua14b': 'L'
'\ua14c': 'L'
'\ua14d': 'L'
'\ua14e': 'L'
'\ua14f': 'L'
'\ua150': 'L'
'\ua151': 'L'
'\ua152': 'L'
'\ua153': 'L'
'\ua154': 'L'
'\ua155': 'L'
'\ua156': 'L'
'\ua157': 'L'
'\ua158': 'L'
'\ua159': 'L'
'\ua15a': 'L'
'\ua15b': 'L'
'\ua15c': 'L'
'\ua15d': 'L'
'\ua15e': 'L'
'\ua15f': 'L'
'\ua160': 'L'
'\ua161': 'L'
'\ua162': 'L'
'\ua163': 'L'
'\ua164': 'L'
'\ua165': 'L'
'\ua166': 'L'
'\ua167': 'L'
'\ua168': 'L'
'\ua169': 'L'
'\ua16a': 'L'
'\ua16b': 'L'
'\ua16c': 'L'
'\ua16d': 'L'
'\ua16e': 'L'
'\ua16f': 'L'
'\ua170': 'L'
'\ua171': 'L'
'\ua172': 'L'
'\ua173': 'L'
'\ua174': 'L'
'\ua175': 'L'
'\ua176': 'L'
'\ua177': 'L'
'\ua178': 'L'
'\ua179': 'L'
'\ua17a': 'L'
'\ua17b': 'L'
'\ua17c': 'L'
'\ua17d': 'L'
'\ua17e': 'L'
'\ua17f': 'L'
'\ua180': 'L'
'\ua181': 'L'
'\ua182': 'L'
'\ua183': 'L'
'\ua184': 'L'
'\ua185': 'L'
'\ua186': 'L'
'\ua187': 'L'
'\ua188': 'L'
'\ua189': 'L'
'\ua18a': 'L'
'\ua18b': 'L'
'\ua18c': 'L'
'\ua18d': 'L'
'\ua18e': 'L'
'\ua18f': 'L'
'\ua190': 'L'
'\ua191': 'L'
'\ua192': 'L'
'\ua193': 'L'
'\ua194': 'L'
'\ua195': 'L'
'\ua196': 'L'
'\ua197': 'L'
'\ua198': 'L'
'\ua199': 'L'
'\ua19a': 'L'
'\ua19b': 'L'
'\ua19c': 'L'
'\ua19d': 'L'
'\ua19e': 'L'
'\ua19f': 'L'
'\ua1a0': 'L'
'\ua1a1': 'L'
'\ua1a2': 'L'
'\ua1a3': 'L'
'\ua1a4': 'L'
'\ua1a5': 'L'
'\ua1a6': 'L'
'\ua1a7': 'L'
'\ua1a8': 'L'
'\ua1a9': 'L'
'\ua1aa': 'L'
'\ua1ab': 'L'
'\ua1ac': 'L'
'\ua1ad': 'L'
'\ua1ae': 'L'
'\ua1af': 'L'
'\ua1b0': 'L'
'\ua1b1': 'L'
'\ua1b2': 'L'
'\ua1b3': 'L'
'\ua1b4': 'L'
'\ua1b5': 'L'
'\ua1b6': 'L'
'\ua1b7': 'L'
'\ua1b8': 'L'
'\ua1b9': 'L'
'\ua1ba': 'L'
'\ua1bb': 'L'
'\ua1bc': 'L'
'\ua1bd': 'L'
'\ua1be': 'L'
'\ua1bf': 'L'
'\ua1c0': 'L'
'\ua1c1': 'L'
'\ua1c2': 'L'
'\ua1c3': 'L'
'\ua1c4': 'L'
'\ua1c5': 'L'
'\ua1c6': 'L'
'\ua1c7': 'L'
'\ua1c8': 'L'
'\ua1c9': 'L'
'\ua1ca': 'L'
'\ua1cb': 'L'
'\ua1cc': 'L'
'\ua1cd': 'L'
'\ua1ce': 'L'
'\ua1cf': 'L'
'\ua1d0': 'L'
'\ua1d1': 'L'
'\ua1d2': 'L'
'\ua1d3': 'L'
'\ua1d4': 'L'
'\ua1d5': 'L'
'\ua1d6': 'L'
'\ua1d7': 'L'
'\ua1d8': 'L'
'\ua1d9': 'L'
'\ua1da': 'L'
'\ua1db': 'L'
'\ua1dc': 'L'
'\ua1dd': 'L'
'\ua1de': 'L'
'\ua1df': 'L'
'\ua1e0': 'L'
'\ua1e1': 'L'
'\ua1e2': 'L'
'\ua1e3': 'L'
'\ua1e4': 'L'
'\ua1e5': 'L'
'\ua1e6': 'L'
'\ua1e7': 'L'
'\ua1e8': 'L'
'\ua1e9': 'L'
'\ua1ea': 'L'
'\ua1eb': 'L'
'\ua1ec': 'L'
'\ua1ed': 'L'
'\ua1ee': 'L'
'\ua1ef': 'L'
'\ua1f0': 'L'
'\ua1f1': 'L'
'\ua1f2': 'L'
'\ua1f3': 'L'
'\ua1f4': 'L'
'\ua1f5': 'L'
'\ua1f6': 'L'
'\ua1f7': 'L'
'\ua1f8': 'L'
'\ua1f9': 'L'
'\ua1fa': 'L'
'\ua1fb': 'L'
'\ua1fc': 'L'
'\ua1fd': 'L'
'\ua1fe': 'L'
'\ua1ff': 'L'
'\ua200': 'L'
'\ua201': 'L'
'\ua202': 'L'
'\ua203': 'L'
'\ua204': 'L'
'\ua205': 'L'
'\ua206': 'L'
'\ua207': 'L'
'\ua208': 'L'
'\ua209': 'L'
'\ua20a': 'L'
'\ua20b': 'L'
'\ua20c': 'L'
'\ua20d': 'L'
'\ua20e': 'L'
'\ua20f': 'L'
'\ua210': 'L'
'\ua211': 'L'
'\ua212': 'L'
'\ua213': 'L'
'\ua214': 'L'
'\ua215': 'L'
'\ua216': 'L'
'\ua217': 'L'
'\ua218': 'L'
'\ua219': 'L'
'\ua21a': 'L'
'\ua21b': 'L'
'\ua21c': 'L'
'\ua21d': 'L'
'\ua21e': 'L'
'\ua21f': 'L'
'\ua220': 'L'
'\ua221': 'L'
'\ua222': 'L'
'\ua223': 'L'
'\ua224': 'L'
'\ua225': 'L'
'\ua226': 'L'
'\ua227': 'L'
'\ua228': 'L'
'\ua229': 'L'
'\ua22a': 'L'
'\ua22b': 'L'
'\ua22c': 'L'
'\ua22d': 'L'
'\ua22e': 'L'
'\ua22f': 'L'
'\ua230': 'L'
'\ua231': 'L'
'\ua232': 'L'
'\ua233': 'L'
'\ua234': 'L'
'\ua235': 'L'
'\ua236': 'L'
'\ua237': 'L'
'\ua238': 'L'
'\ua239': 'L'
'\ua23a': 'L'
'\ua23b': 'L'
'\ua23c': 'L'
'\ua23d': 'L'
'\ua23e': 'L'
'\ua23f': 'L'
'\ua240': 'L'
'\ua241': 'L'
'\ua242': 'L'
'\ua243': 'L'
'\ua244': 'L'
'\ua245': 'L'
'\ua246': 'L'
'\ua247': 'L'
'\ua248': 'L'
'\ua249': 'L'
'\ua24a': 'L'
'\ua24b': 'L'
'\ua24c': 'L'
'\ua24d': 'L'
'\ua24e': 'L'
'\ua24f': 'L'
'\ua250': 'L'
'\ua251': 'L'
'\ua252': 'L'
'\ua253': 'L'
'\ua254': 'L'
'\ua255': 'L'
'\ua256': 'L'
'\ua257': 'L'
'\ua258': 'L'
'\ua259': 'L'
'\ua25a': 'L'
'\ua25b': 'L'
'\ua25c': 'L'
'\ua25d': 'L'
'\ua25e': 'L'
'\ua25f': 'L'
'\ua260': 'L'
'\ua261': 'L'
'\ua262': 'L'
'\ua263': 'L'
'\ua264': 'L'
'\ua265': 'L'
'\ua266': 'L'
'\ua267': 'L'
'\ua268': 'L'
'\ua269': 'L'
'\ua26a': 'L'
'\ua26b': 'L'
'\ua26c': 'L'
'\ua26d': 'L'
'\ua26e': 'L'
'\ua26f': 'L'
'\ua270': 'L'
'\ua271': 'L'
'\ua272': 'L'
'\ua273': 'L'
'\ua274': 'L'
'\ua275': 'L'
'\ua276': 'L'
'\ua277': 'L'
'\ua278': 'L'
'\ua279': 'L'
'\ua27a': 'L'
'\ua27b': 'L'
'\ua27c': 'L'
'\ua27d': 'L'
'\ua27e': 'L'
'\ua27f': 'L'
'\ua280': 'L'
'\ua281': 'L'
'\ua282': 'L'
'\ua283': 'L'
'\ua284': 'L'
'\ua285': 'L'
'\ua286': 'L'
'\ua287': 'L'
'\ua288': 'L'
'\ua289': 'L'
'\ua28a': 'L'
'\ua28b': 'L'
'\ua28c': 'L'
'\ua28d': 'L'
'\ua28e': 'L'
'\ua28f': 'L'
'\ua290': 'L'
'\ua291': 'L'
'\ua292': 'L'
'\ua293': 'L'
'\ua294': 'L'
'\ua295': 'L'
'\ua296': 'L'
'\ua297': 'L'
'\ua298': 'L'
'\ua299': 'L'
'\ua29a': 'L'
'\ua29b': 'L'
'\ua29c': 'L'
'\ua29d': 'L'
'\ua29e': 'L'
'\ua29f': 'L'
'\ua2a0': 'L'
'\ua2a1': 'L'
'\ua2a2': 'L'
'\ua2a3': 'L'
'\ua2a4': 'L'
'\ua2a5': 'L'
'\ua2a6': 'L'
'\ua2a7': 'L'
'\ua2a8': 'L'
'\ua2a9': 'L'
'\ua2aa': 'L'
'\ua2ab': 'L'
'\ua2ac': 'L'
'\ua2ad': 'L'
'\ua2ae': 'L'
'\ua2af': 'L'
'\ua2b0': 'L'
'\ua2b1': 'L'
'\ua2b2': 'L'
'\ua2b3': 'L'
'\ua2b4': 'L'
'\ua2b5': 'L'
'\ua2b6': 'L'
'\ua2b7': 'L'
'\ua2b8': 'L'
'\ua2b9': 'L'
'\ua2ba': 'L'
'\ua2bb': 'L'
'\ua2bc': 'L'
'\ua2bd': 'L'
'\ua2be': 'L'
'\ua2bf': 'L'
'\ua2c0': 'L'
'\ua2c1': 'L'
'\ua2c2': 'L'
'\ua2c3': 'L'
'\ua2c4': 'L'
'\ua2c5': 'L'
'\ua2c6': 'L'
'\ua2c7': 'L'
'\ua2c8': 'L'
'\ua2c9': 'L'
'\ua2ca': 'L'
'\ua2cb': 'L'
'\ua2cc': 'L'
'\ua2cd': 'L'
'\ua2ce': 'L'
'\ua2cf': 'L'
'\ua2d0': 'L'
'\ua2d1': 'L'
'\ua2d2': 'L'
'\ua2d3': 'L'
'\ua2d4': 'L'
'\ua2d5': 'L'
'\ua2d6': 'L'
'\ua2d7': 'L'
'\ua2d8': 'L'
'\ua2d9': 'L'
'\ua2da': 'L'
'\ua2db': 'L'
'\ua2dc': 'L'
'\ua2dd': 'L'
'\ua2de': 'L'
'\ua2df': 'L'
'\ua2e0': 'L'
'\ua2e1': 'L'
'\ua2e2': 'L'
'\ua2e3': 'L'
'\ua2e4': 'L'
'\ua2e5': 'L'
'\ua2e6': 'L'
'\ua2e7': 'L'
'\ua2e8': 'L'
'\ua2e9': 'L'
'\ua2ea': 'L'
'\ua2eb': 'L'
'\ua2ec': 'L'
'\ua2ed': 'L'
'\ua2ee': 'L'
'\ua2ef': 'L'
'\ua2f0': 'L'
'\ua2f1': 'L'
'\ua2f2': 'L'
'\ua2f3': 'L'
'\ua2f4': 'L'
'\ua2f5': 'L'
'\ua2f6': 'L'
'\ua2f7': 'L'
'\ua2f8': 'L'
'\ua2f9': 'L'
'\ua2fa': 'L'
'\ua2fb': 'L'
'\ua2fc': 'L'
'\ua2fd': 'L'
'\ua2fe': 'L'
'\ua2ff': 'L'
'\ua300': 'L'
'\ua301': 'L'
'\ua302': 'L'
'\ua303': 'L'
'\ua304': 'L'
'\ua305': 'L'
'\ua306': 'L'
'\ua307': 'L'
'\ua308': 'L'
'\ua309': 'L'
'\ua30a': 'L'
'\ua30b': 'L'
'\ua30c': 'L'
'\ua30d': 'L'
'\ua30e': 'L'
'\ua30f': 'L'
'\ua310': 'L'
'\ua311': 'L'
'\ua312': 'L'
'\ua313': 'L'
'\ua314': 'L'
'\ua315': 'L'
'\ua316': 'L'
'\ua317': 'L'
'\ua318': 'L'
'\ua319': 'L'
'\ua31a': 'L'
'\ua31b': 'L'
'\ua31c': 'L'
'\ua31d': 'L'
'\ua31e': 'L'
'\ua31f': 'L'
'\ua320': 'L'
'\ua321': 'L'
'\ua322': 'L'
'\ua323': 'L'
'\ua324': 'L'
'\ua325': 'L'
'\ua326': 'L'
'\ua327': 'L'
'\ua328': 'L'
'\ua329': 'L'
'\ua32a': 'L'
'\ua32b': 'L'
'\ua32c': 'L'
'\ua32d': 'L'
'\ua32e': 'L'
'\ua32f': 'L'
'\ua330': 'L'
'\ua331': 'L'
'\ua332': 'L'
'\ua333': 'L'
'\ua334': 'L'
'\ua335': 'L'
'\ua336': 'L'
'\ua337': 'L'
'\ua338': 'L'
'\ua339': 'L'
'\ua33a': 'L'
'\ua33b': 'L'
'\ua33c': 'L'
'\ua33d': 'L'
'\ua33e': 'L'
'\ua33f': 'L'
'\ua340': 'L'
'\ua341': 'L'
'\ua342': 'L'
'\ua343': 'L'
'\ua344': 'L'
'\ua345': 'L'
'\ua346': 'L'
'\ua347': 'L'
'\ua348': 'L'
'\ua349': 'L'
'\ua34a': 'L'
'\ua34b': 'L'
'\ua34c': 'L'
'\ua34d': 'L'
'\ua34e': 'L'
'\ua34f': 'L'
'\ua350': 'L'
'\ua351': 'L'
'\ua352': 'L'
'\ua353': 'L'
'\ua354': 'L'
'\ua355': 'L'
'\ua356': 'L'
'\ua357': 'L'
'\ua358': 'L'
'\ua359': 'L'
'\ua35a': 'L'
'\ua35b': 'L'
'\ua35c': 'L'
'\ua35d': 'L'
'\ua35e': 'L'
'\ua35f': 'L'
'\ua360': 'L'
'\ua361': 'L'
'\ua362': 'L'
'\ua363': 'L'
'\ua364': 'L'
'\ua365': 'L'
'\ua366': 'L'
'\ua367': 'L'
'\ua368': 'L'
'\ua369': 'L'
'\ua36a': 'L'
'\ua36b': 'L'
'\ua36c': 'L'
'\ua36d': 'L'
'\ua36e': 'L'
'\ua36f': 'L'
'\ua370': 'L'
'\ua371': 'L'
'\ua372': 'L'
'\ua373': 'L'
'\ua374': 'L'
'\ua375': 'L'
'\ua376': 'L'
'\ua377': 'L'
'\ua378': 'L'
'\ua379': 'L'
'\ua37a': 'L'
'\ua37b': 'L'
'\ua37c': 'L'
'\ua37d': 'L'
'\ua37e': 'L'
'\ua37f': 'L'
'\ua380': 'L'
'\ua381': 'L'
'\ua382': 'L'
'\ua383': 'L'
'\ua384': 'L'
'\ua385': 'L'
'\ua386': 'L'
'\ua387': 'L'
'\ua388': 'L'
'\ua389': 'L'
'\ua38a': 'L'
'\ua38b': 'L'
'\ua38c': 'L'
'\ua38d': 'L'
'\ua38e': 'L'
'\ua38f': 'L'
'\ua390': 'L'
'\ua391': 'L'
'\ua392': 'L'
'\ua393': 'L'
'\ua394': 'L'
'\ua395': 'L'
'\ua396': 'L'
'\ua397': 'L'
'\ua398': 'L'
'\ua399': 'L'
'\ua39a': 'L'
'\ua39b': 'L'
'\ua39c': 'L'
'\ua39d': 'L'
'\ua39e': 'L'
'\ua39f': 'L'
'\ua3a0': 'L'
'\ua3a1': 'L'
'\ua3a2': 'L'
'\ua3a3': 'L'
'\ua3a4': 'L'
'\ua3a5': 'L'
'\ua3a6': 'L'
'\ua3a7': 'L'
'\ua3a8': 'L'
'\ua3a9': 'L'
'\ua3aa': 'L'
'\ua3ab': 'L'
'\ua3ac': 'L'
'\ua3ad': 'L'
'\ua3ae': 'L'
'\ua3af': 'L'
'\ua3b0': 'L'
'\ua3b1': 'L'
'\ua3b2': 'L'
'\ua3b3': 'L'
'\ua3b4': 'L'
'\ua3b5': 'L'
'\ua3b6': 'L'
'\ua3b7': 'L'
'\ua3b8': 'L'
'\ua3b9': 'L'
'\ua3ba': 'L'
'\ua3bb': 'L'
'\ua3bc': 'L'
'\ua3bd': 'L'
'\ua3be': 'L'
'\ua3bf': 'L'
'\ua3c0': 'L'
'\ua3c1': 'L'
'\ua3c2': 'L'
'\ua3c3': 'L'
'\ua3c4': 'L'
'\ua3c5': 'L'
'\ua3c6': 'L'
'\ua3c7': 'L'
'\ua3c8': 'L'
'\ua3c9': 'L'
'\ua3ca': 'L'
'\ua3cb': 'L'
'\ua3cc': 'L'
'\ua3cd': 'L'
'\ua3ce': 'L'
'\ua3cf': 'L'
'\ua3d0': 'L'
'\ua3d1': 'L'
'\ua3d2': 'L'
'\ua3d3': 'L'
'\ua3d4': 'L'
'\ua3d5': 'L'
'\ua3d6': 'L'
'\ua3d7': 'L'
'\ua3d8': 'L'
'\ua3d9': 'L'
'\ua3da': 'L'
'\ua3db': 'L'
'\ua3dc': 'L'
'\ua3dd': 'L'
'\ua3de': 'L'
'\ua3df': 'L'
'\ua3e0': 'L'
'\ua3e1': 'L'
'\ua3e2': 'L'
'\ua3e3': 'L'
'\ua3e4': 'L'
'\ua3e5': 'L'
'\ua3e6': 'L'
'\ua3e7': 'L'
'\ua3e8': 'L'
'\ua3e9': 'L'
'\ua3ea': 'L'
'\ua3eb': 'L'
'\ua3ec': 'L'
'\ua3ed': 'L'
'\ua3ee': 'L'
'\ua3ef': 'L'
'\ua3f0': 'L'
'\ua3f1': 'L'
'\ua3f2': 'L'
'\ua3f3': 'L'
'\ua3f4': 'L'
'\ua3f5': 'L'
'\ua3f6': 'L'
'\ua3f7': 'L'
'\ua3f8': 'L'
'\ua3f9': 'L'
'\ua3fa': 'L'
'\ua3fb': 'L'
'\ua3fc': 'L'
'\ua3fd': 'L'
'\ua3fe': 'L'
'\ua3ff': 'L'
'\ua400': 'L'
'\ua401': 'L'
'\ua402': 'L'
'\ua403': 'L'
'\ua404': 'L'
'\ua405': 'L'
'\ua406': 'L'
'\ua407': 'L'
'\ua408': 'L'
'\ua409': 'L'
'\ua40a': 'L'
'\ua40b': 'L'
'\ua40c': 'L'
'\ua40d': 'L'
'\ua40e': 'L'
'\ua40f': 'L'
'\ua410': 'L'
'\ua411': 'L'
'\ua412': 'L'
'\ua413': 'L'
'\ua414': 'L'
'\ua415': 'L'
'\ua416': 'L'
'\ua417': 'L'
'\ua418': 'L'
'\ua419': 'L'
'\ua41a': 'L'
'\ua41b': 'L'
'\ua41c': 'L'
'\ua41d': 'L'
'\ua41e': 'L'
'\ua41f': 'L'
'\ua420': 'L'
'\ua421': 'L'
'\ua422': 'L'
'\ua423': 'L'
'\ua424': 'L'
'\ua425': 'L'
'\ua426': 'L'
'\ua427': 'L'
'\ua428': 'L'
'\ua429': 'L'
'\ua42a': 'L'
'\ua42b': 'L'
'\ua42c': 'L'
'\ua42d': 'L'
'\ua42e': 'L'
'\ua42f': 'L'
'\ua430': 'L'
'\ua431': 'L'
'\ua432': 'L'
'\ua433': 'L'
'\ua434': 'L'
'\ua435': 'L'
'\ua436': 'L'
'\ua437': 'L'
'\ua438': 'L'
'\ua439': 'L'
'\ua43a': 'L'
'\ua43b': 'L'
'\ua43c': 'L'
'\ua43d': 'L'
'\ua43e': 'L'
'\ua43f': 'L'
'\ua440': 'L'
'\ua441': 'L'
'\ua442': 'L'
'\ua443': 'L'
'\ua444': 'L'
'\ua445': 'L'
'\ua446': 'L'
'\ua447': 'L'
'\ua448': 'L'
'\ua449': 'L'
'\ua44a': 'L'
'\ua44b': 'L'
'\ua44c': 'L'
'\ua44d': 'L'
'\ua44e': 'L'
'\ua44f': 'L'
'\ua450': 'L'
'\ua451': 'L'
'\ua452': 'L'
'\ua453': 'L'
'\ua454': 'L'
'\ua455': 'L'
'\ua456': 'L'
'\ua457': 'L'
'\ua458': 'L'
'\ua459': 'L'
'\ua45a': 'L'
'\ua45b': 'L'
'\ua45c': 'L'
'\ua45d': 'L'
'\ua45e': 'L'
'\ua45f': 'L'
'\ua460': 'L'
'\ua461': 'L'
'\ua462': 'L'
'\ua463': 'L'
'\ua464': 'L'
'\ua465': 'L'
'\ua466': 'L'
'\ua467': 'L'
'\ua468': 'L'
'\ua469': 'L'
'\ua46a': 'L'
'\ua46b': 'L'
'\ua46c': 'L'
'\ua46d': 'L'
'\ua46e': 'L'
'\ua46f': 'L'
'\ua470': 'L'
'\ua471': 'L'
'\ua472': 'L'
'\ua473': 'L'
'\ua474': 'L'
'\ua475': 'L'
'\ua476': 'L'
'\ua477': 'L'
'\ua478': 'L'
'\ua479': 'L'
'\ua47a': 'L'
'\ua47b': 'L'
'\ua47c': 'L'
'\ua47d': 'L'
'\ua47e': 'L'
'\ua47f': 'L'
'\ua480': 'L'
'\ua481': 'L'
'\ua482': 'L'
'\ua483': 'L'
'\ua484': 'L'
'\ua485': 'L'
'\ua486': 'L'
'\ua487': 'L'
'\ua488': 'L'
'\ua489': 'L'
'\ua48a': 'L'
'\ua48b': 'L'
'\ua48c': 'L'
'\ua4d0': 'L'
'\ua4d1': 'L'
'\ua4d2': 'L'
'\ua4d3': 'L'
'\ua4d4': 'L'
'\ua4d5': 'L'
'\ua4d6': 'L'
'\ua4d7': 'L'
'\ua4d8': 'L'
'\ua4d9': 'L'
'\ua4da': 'L'
'\ua4db': 'L'
'\ua4dc': 'L'
'\ua4dd': 'L'
'\ua4de': 'L'
'\ua4df': 'L'
'\ua4e0': 'L'
'\ua4e1': 'L'
'\ua4e2': 'L'
'\ua4e3': 'L'
'\ua4e4': 'L'
'\ua4e5': 'L'
'\ua4e6': 'L'
'\ua4e7': 'L'
'\ua4e8': 'L'
'\ua4e9': 'L'
'\ua4ea': 'L'
'\ua4eb': 'L'
'\ua4ec': 'L'
'\ua4ed': 'L'
'\ua4ee': 'L'
'\ua4ef': 'L'
'\ua4f0': 'L'
'\ua4f1': 'L'
'\ua4f2': 'L'
'\ua4f3': 'L'
'\ua4f4': 'L'
'\ua4f5': 'L'
'\ua4f6': 'L'
'\ua4f7': 'L'
'\ua4f8': 'L'
'\ua4f9': 'L'
'\ua4fa': 'L'
'\ua4fb': 'L'
'\ua4fc': 'L'
'\ua4fd': 'L'
'\ua500': 'L'
'\ua501': 'L'
'\ua502': 'L'
'\ua503': 'L'
'\ua504': 'L'
'\ua505': 'L'
'\ua506': 'L'
'\ua507': 'L'
'\ua508': 'L'
'\ua509': 'L'
'\ua50a': 'L'
'\ua50b': 'L'
'\ua50c': 'L'
'\ua50d': 'L'
'\ua50e': 'L'
'\ua50f': 'L'
'\ua510': 'L'
'\ua511': 'L'
'\ua512': 'L'
'\ua513': 'L'
'\ua514': 'L'
'\ua515': 'L'
'\ua516': 'L'
'\ua517': 'L'
'\ua518': 'L'
'\ua519': 'L'
'\ua51a': 'L'
'\ua51b': 'L'
'\ua51c': 'L'
'\ua51d': 'L'
'\ua51e': 'L'
'\ua51f': 'L'
'\ua520': 'L'
'\ua521': 'L'
'\ua522': 'L'
'\ua523': 'L'
'\ua524': 'L'
'\ua525': 'L'
'\ua526': 'L'
'\ua527': 'L'
'\ua528': 'L'
'\ua529': 'L'
'\ua52a': 'L'
'\ua52b': 'L'
'\ua52c': 'L'
'\ua52d': 'L'
'\ua52e': 'L'
'\ua52f': 'L'
'\ua530': 'L'
'\ua531': 'L'
'\ua532': 'L'
'\ua533': 'L'
'\ua534': 'L'
'\ua535': 'L'
'\ua536': 'L'
'\ua537': 'L'
'\ua538': 'L'
'\ua539': 'L'
'\ua53a': 'L'
'\ua53b': 'L'
'\ua53c': 'L'
'\ua53d': 'L'
'\ua53e': 'L'
'\ua53f': 'L'
'\ua540': 'L'
'\ua541': 'L'
'\ua542': 'L'
'\ua543': 'L'
'\ua544': 'L'
'\ua545': 'L'
'\ua546': 'L'
'\ua547': 'L'
'\ua548': 'L'
'\ua549': 'L'
'\ua54a': 'L'
'\ua54b': 'L'
'\ua54c': 'L'
'\ua54d': 'L'
'\ua54e': 'L'
'\ua54f': 'L'
'\ua550': 'L'
'\ua551': 'L'
'\ua552': 'L'
'\ua553': 'L'
'\ua554': 'L'
'\ua555': 'L'
'\ua556': 'L'
'\ua557': 'L'
'\ua558': 'L'
'\ua559': 'L'
'\ua55a': 'L'
'\ua55b': 'L'
'\ua55c': 'L'
'\ua55d': 'L'
'\ua55e': 'L'
'\ua55f': 'L'
'\ua560': 'L'
'\ua561': 'L'
'\ua562': 'L'
'\ua563': 'L'
'\ua564': 'L'
'\ua565': 'L'
'\ua566': 'L'
'\ua567': 'L'
'\ua568': 'L'
'\ua569': 'L'
'\ua56a': 'L'
'\ua56b': 'L'
'\ua56c': 'L'
'\ua56d': 'L'
'\ua56e': 'L'
'\ua56f': 'L'
'\ua570': 'L'
'\ua571': 'L'
'\ua572': 'L'
'\ua573': 'L'
'\ua574': 'L'
'\ua575': 'L'
'\ua576': 'L'
'\ua577': 'L'
'\ua578': 'L'
'\ua579': 'L'
'\ua57a': 'L'
'\ua57b': 'L'
'\ua57c': 'L'
'\ua57d': 'L'
'\ua57e': 'L'
'\ua57f': 'L'
'\ua580': 'L'
'\ua581': 'L'
'\ua582': 'L'
'\ua583': 'L'
'\ua584': 'L'
'\ua585': 'L'
'\ua586': 'L'
'\ua587': 'L'
'\ua588': 'L'
'\ua589': 'L'
'\ua58a': 'L'
'\ua58b': 'L'
'\ua58c': 'L'
'\ua58d': 'L'
'\ua58e': 'L'
'\ua58f': 'L'
'\ua590': 'L'
'\ua591': 'L'
'\ua592': 'L'
'\ua593': 'L'
'\ua594': 'L'
'\ua595': 'L'
'\ua596': 'L'
'\ua597': 'L'
'\ua598': 'L'
'\ua599': 'L'
'\ua59a': 'L'
'\ua59b': 'L'
'\ua59c': 'L'
'\ua59d': 'L'
'\ua59e': 'L'
'\ua59f': 'L'
'\ua5a0': 'L'
'\ua5a1': 'L'
'\ua5a2': 'L'
'\ua5a3': 'L'
'\ua5a4': 'L'
'\ua5a5': 'L'
'\ua5a6': 'L'
'\ua5a7': 'L'
'\ua5a8': 'L'
'\ua5a9': 'L'
'\ua5aa': 'L'
'\ua5ab': 'L'
'\ua5ac': 'L'
'\ua5ad': 'L'
'\ua5ae': 'L'
'\ua5af': 'L'
'\ua5b0': 'L'
'\ua5b1': 'L'
'\ua5b2': 'L'
'\ua5b3': 'L'
'\ua5b4': 'L'
'\ua5b5': 'L'
'\ua5b6': 'L'
'\ua5b7': 'L'
'\ua5b8': 'L'
'\ua5b9': 'L'
'\ua5ba': 'L'
'\ua5bb': 'L'
'\ua5bc': 'L'
'\ua5bd': 'L'
'\ua5be': 'L'
'\ua5bf': 'L'
'\ua5c0': 'L'
'\ua5c1': 'L'
'\ua5c2': 'L'
'\ua5c3': 'L'
'\ua5c4': 'L'
'\ua5c5': 'L'
'\ua5c6': 'L'
'\ua5c7': 'L'
'\ua5c8': 'L'
'\ua5c9': 'L'
'\ua5ca': 'L'
'\ua5cb': 'L'
'\ua5cc': 'L'
'\ua5cd': 'L'
'\ua5ce': 'L'
'\ua5cf': 'L'
'\ua5d0': 'L'
'\ua5d1': 'L'
'\ua5d2': 'L'
'\ua5d3': 'L'
'\ua5d4': 'L'
'\ua5d5': 'L'
'\ua5d6': 'L'
'\ua5d7': 'L'
'\ua5d8': 'L'
'\ua5d9': 'L'
'\ua5da': 'L'
'\ua5db': 'L'
'\ua5dc': 'L'
'\ua5dd': 'L'
'\ua5de': 'L'
'\ua5df': 'L'
'\ua5e0': 'L'
'\ua5e1': 'L'
'\ua5e2': 'L'
'\ua5e3': 'L'
'\ua5e4': 'L'
'\ua5e5': 'L'
'\ua5e6': 'L'
'\ua5e7': 'L'
'\ua5e8': 'L'
'\ua5e9': 'L'
'\ua5ea': 'L'
'\ua5eb': 'L'
'\ua5ec': 'L'
'\ua5ed': 'L'
'\ua5ee': 'L'
'\ua5ef': 'L'
'\ua5f0': 'L'
'\ua5f1': 'L'
'\ua5f2': 'L'
'\ua5f3': 'L'
'\ua5f4': 'L'
'\ua5f5': 'L'
'\ua5f6': 'L'
'\ua5f7': 'L'
'\ua5f8': 'L'
'\ua5f9': 'L'
'\ua5fa': 'L'
'\ua5fb': 'L'
'\ua5fc': 'L'
'\ua5fd': 'L'
'\ua5fe': 'L'
'\ua5ff': 'L'
'\ua600': 'L'
'\ua601': 'L'
'\ua602': 'L'
'\ua603': 'L'
'\ua604': 'L'
'\ua605': 'L'
'\ua606': 'L'
'\ua607': 'L'
'\ua608': 'L'
'\ua609': 'L'
'\ua60a': 'L'
'\ua60b': 'L'
'\ua60c': 'L'
'\ua610': 'L'
'\ua611': 'L'
'\ua612': 'L'
'\ua613': 'L'
'\ua614': 'L'
'\ua615': 'L'
'\ua616': 'L'
'\ua617': 'L'
'\ua618': 'L'
'\ua619': 'L'
'\ua61a': 'L'
'\ua61b': 'L'
'\ua61c': 'L'
'\ua61d': 'L'
'\ua61e': 'L'
'\ua61f': 'L'
'\ua620': 'N'
'\ua621': 'N'
'\ua622': 'N'
'\ua623': 'N'
'\ua624': 'N'
'\ua625': 'N'
'\ua626': 'N'
'\ua627': 'N'
'\ua628': 'N'
'\ua629': 'N'
'\ua62a': 'L'
'\ua62b': 'L'
'\ua640': 'Lu'
'\ua641': 'L'
'\ua642': 'Lu'
'\ua643': 'L'
'\ua644': 'Lu'
'\ua645': 'L'
'\ua646': 'Lu'
'\ua647': 'L'
'\ua648': 'Lu'
'\ua649': 'L'
'\ua64a': 'Lu'
'\ua64b': 'L'
'\ua64c': 'Lu'
'\ua64d': 'L'
'\ua64e': 'Lu'
'\ua64f': 'L'
'\ua650': 'Lu'
'\ua651': 'L'
'\ua652': 'Lu'
'\ua653': 'L'
'\ua654': 'Lu'
'\ua655': 'L'
'\ua656': 'Lu'
'\ua657': 'L'
'\ua658': 'Lu'
'\ua659': 'L'
'\ua65a': 'Lu'
'\ua65b': 'L'
'\ua65c': 'Lu'
'\ua65d': 'L'
'\ua65e': 'Lu'
'\ua65f': 'L'
'\ua660': 'Lu'
'\ua661': 'L'
'\ua662': 'Lu'
'\ua663': 'L'
'\ua664': 'Lu'
'\ua665': 'L'
'\ua666': 'Lu'
'\ua667': 'L'
'\ua668': 'Lu'
'\ua669': 'L'
'\ua66a': 'Lu'
'\ua66b': 'L'
'\ua66c': 'Lu'
'\ua66d': 'L'
'\ua66e': 'L'
'\ua67f': 'L'
'\ua680': 'Lu'
'\ua681': 'L'
'\ua682': 'Lu'
'\ua683': 'L'
'\ua684': 'Lu'
'\ua685': 'L'
'\ua686': 'Lu'
'\ua687': 'L'
'\ua688': 'Lu'
'\ua689': 'L'
'\ua68a': 'Lu'
'\ua68b': 'L'
'\ua68c': 'Lu'
'\ua68d': 'L'
'\ua68e': 'Lu'
'\ua68f': 'L'
'\ua690': 'Lu'
'\ua691': 'L'
'\ua692': 'Lu'
'\ua693': 'L'
'\ua694': 'Lu'
'\ua695': 'L'
'\ua696': 'Lu'
'\ua697': 'L'
'\ua698': 'Lu'
'\ua699': 'L'
'\ua69a': 'Lu'
'\ua69b': 'L'
'\ua69c': 'L'
'\ua69d': 'L'
'\ua6a0': 'L'
'\ua6a1': 'L'
'\ua6a2': 'L'
'\ua6a3': 'L'
'\ua6a4': 'L'
'\ua6a5': 'L'
'\ua6a6': 'L'
'\ua6a7': 'L'
'\ua6a8': 'L'
'\ua6a9': 'L'
'\ua6aa': 'L'
'\ua6ab': 'L'
'\ua6ac': 'L'
'\ua6ad': 'L'
'\ua6ae': 'L'
'\ua6af': 'L'
'\ua6b0': 'L'
'\ua6b1': 'L'
'\ua6b2': 'L'
'\ua6b3': 'L'
'\ua6b4': 'L'
'\ua6b5': 'L'
'\ua6b6': 'L'
'\ua6b7': 'L'
'\ua6b8': 'L'
'\ua6b9': 'L'
'\ua6ba': 'L'
'\ua6bb': 'L'
'\ua6bc': 'L'
'\ua6bd': 'L'
'\ua6be': 'L'
'\ua6bf': 'L'
'\ua6c0': 'L'
'\ua6c1': 'L'
'\ua6c2': 'L'
'\ua6c3': 'L'
'\ua6c4': 'L'
'\ua6c5': 'L'
'\ua6c6': 'L'
'\ua6c7': 'L'
'\ua6c8': 'L'
'\ua6c9': 'L'
'\ua6ca': 'L'
'\ua6cb': 'L'
'\ua6cc': 'L'
'\ua6cd': 'L'
'\ua6ce': 'L'
'\ua6cf': 'L'
'\ua6d0': 'L'
'\ua6d1': 'L'
'\ua6d2': 'L'
'\ua6d3': 'L'
'\ua6d4': 'L'
'\ua6d5': 'L'
'\ua6d6': 'L'
'\ua6d7': 'L'
'\ua6d8': 'L'
'\ua6d9': 'L'
'\ua6da': 'L'
'\ua6db': 'L'
'\ua6dc': 'L'
'\ua6dd': 'L'
'\ua6de': 'L'
'\ua6df': 'L'
'\ua6e0': 'L'
'\ua6e1': 'L'
'\ua6e2': 'L'
'\ua6e3': 'L'
'\ua6e4': 'L'
'\ua6e5': 'L'
'\ua6e6': 'N'
'\ua6e7': 'N'
'\ua6e8': 'N'
'\ua6e9': 'N'
'\ua6ea': 'N'
'\ua6eb': 'N'
'\ua6ec': 'N'
'\ua6ed': 'N'
'\ua6ee': 'N'
'\ua6ef': 'N'
'\ua717': 'L'
'\ua718': 'L'
'\ua719': 'L'
'\ua71a': 'L'
'\ua71b': 'L'
'\ua71c': 'L'
'\ua71d': 'L'
'\ua71e': 'L'
'\ua71f': 'L'
'\ua722': 'Lu'
'\ua723': 'L'
'\ua724': 'Lu'
'\ua725': 'L'
'\ua726': 'Lu'
'\ua727': 'L'
'\ua728': 'Lu'
'\ua729': 'L'
'\ua72a': 'Lu'
'\ua72b': 'L'
'\ua72c': 'Lu'
'\ua72d': 'L'
'\ua72e': 'Lu'
'\ua72f': 'L'
'\ua730': 'L'
'\ua731': 'L'
'\ua732': 'Lu'
'\ua733': 'L'
'\ua734': 'Lu'
'\ua735': 'L'
'\ua736': 'Lu'
'\ua737': 'L'
'\ua738': 'Lu'
'\ua739': 'L'
'\ua73a': 'Lu'
'\ua73b': 'L'
'\ua73c': 'Lu'
'\ua73d': 'L'
'\ua73e': 'Lu'
'\ua73f': 'L'
'\ua740': 'Lu'
'\ua741': 'L'
'\ua742': 'Lu'
'\ua743': 'L'
'\ua744': 'Lu'
'\ua745': 'L'
'\ua746': 'Lu'
'\ua747': 'L'
'\ua748': 'Lu'
'\ua749': 'L'
'\ua74a': 'Lu'
'\ua74b': 'L'
'\ua74c': 'Lu'
'\ua74d': 'L'
'\ua74e': 'Lu'
'\ua74f': 'L'
'\ua750': 'Lu'
'\ua751': 'L'
'\ua752': 'Lu'
'\ua753': 'L'
'\ua754': 'Lu'
'\ua755': 'L'
'\ua756': 'Lu'
'\ua757': 'L'
'\ua758': 'Lu'
'\ua759': 'L'
'\ua75a': 'Lu'
'\ua75b': 'L'
'\ua75c': 'Lu'
'\ua75d': 'L'
'\ua75e': 'Lu'
'\ua75f': 'L'
'\ua760': 'Lu'
'\ua761': 'L'
'\ua762': 'Lu'
'\ua763': 'L'
'\ua764': 'Lu'
'\ua765': 'L'
'\ua766': 'Lu'
'\ua767': 'L'
'\ua768': 'Lu'
'\ua769': 'L'
'\ua76a': 'Lu'
'\ua76b': 'L'
'\ua76c': 'Lu'
'\ua76d': 'L'
'\ua76e': 'Lu'
'\ua76f': 'L'
'\ua770': 'L'
'\ua771': 'L'
'\ua772': 'L'
'\ua773': 'L'
'\ua774': 'L'
'\ua775': 'L'
'\ua776': 'L'
'\ua777': 'L'
'\ua778': 'L'
'\ua779': 'Lu'
'\ua77a': 'L'
'\ua77b': 'Lu'
'\ua77c': 'L'
'\ua77d': 'Lu'
'\ua77e': 'Lu'
'\ua77f': 'L'
'\ua780': 'Lu'
'\ua781': 'L'
'\ua782': 'Lu'
'\ua783': 'L'
'\ua784': 'Lu'
'\ua785': 'L'
'\ua786': 'Lu'
'\ua787': 'L'
'\ua788': 'L'
'\ua78b': 'Lu'
'\ua78c': 'L'
'\ua78d': 'Lu'
'\ua78e': 'L'
'\ua78f': 'L'
'\ua790': 'Lu'
'\ua791': 'L'
'\ua792': 'Lu'
'\ua793': 'L'
'\ua794': 'L'
'\ua795': 'L'
'\ua796': 'Lu'
'\ua797': 'L'
'\ua798': 'Lu'
'\ua799': 'L'
'\ua79a': 'Lu'
'\ua79b': 'L'
'\ua79c': 'Lu'
'\ua79d': 'L'
'\ua79e': 'Lu'
'\ua79f': 'L'
'\ua7a0': 'Lu'
'\ua7a1': 'L'
'\ua7a2': 'Lu'
'\ua7a3': 'L'
'\ua7a4': 'Lu'
'\ua7a5': 'L'
'\ua7a6': 'Lu'
'\ua7a7': 'L'
'\ua7a8': 'Lu'
'\ua7a9': 'L'
'\ua7aa': 'Lu'
'\ua7ab': 'Lu'
'\ua7ac': 'Lu'
'\ua7ad': 'Lu'
'\ua7b0': 'Lu'
'\ua7b1': 'Lu'
'\ua7b2': 'Lu'
'\ua7b3': 'Lu'
'\ua7b4': 'Lu'
'\ua7b5': 'L'
'\ua7b6': 'Lu'
'\ua7b7': 'L'
'\ua7f7': 'L'
'\ua7f8': 'L'
'\ua7f9': 'L'
'\ua7fa': 'L'
'\ua7fb': 'L'
'\ua7fc': 'L'
'\ua7fd': 'L'
'\ua7fe': 'L'
'\ua7ff': 'L'
'\ua800': 'L'
'\ua801': 'L'
'\ua803': 'L'
'\ua804': 'L'
'\ua805': 'L'
'\ua807': 'L'
'\ua808': 'L'
'\ua809': 'L'
'\ua80a': 'L'
'\ua80c': 'L'
'\ua80d': 'L'
'\ua80e': 'L'
'\ua80f': 'L'
'\ua810': 'L'
'\ua811': 'L'
'\ua812': 'L'
'\ua813': 'L'
'\ua814': 'L'
'\ua815': 'L'
'\ua816': 'L'
'\ua817': 'L'
'\ua818': 'L'
'\ua819': 'L'
'\ua81a': 'L'
'\ua81b': 'L'
'\ua81c': 'L'
'\ua81d': 'L'
'\ua81e': 'L'
'\ua81f': 'L'
'\ua820': 'L'
'\ua821': 'L'
'\ua822': 'L'
'\ua830': 'N'
'\ua831': 'N'
'\ua832': 'N'
'\ua833': 'N'
'\ua834': 'N'
'\ua835': 'N'
'\ua840': 'L'
'\ua841': 'L'
'\ua842': 'L'
'\ua843': 'L'
'\ua844': 'L'
'\ua845': 'L'
'\ua846': 'L'
'\ua847': 'L'
'\ua848': 'L'
'\ua849': 'L'
'\ua84a': 'L'
'\ua84b': 'L'
'\ua84c': 'L'
'\ua84d': 'L'
'\ua84e': 'L'
'\ua84f': 'L'
'\ua850': 'L'
'\ua851': 'L'
'\ua852': 'L'
'\ua853': 'L'
'\ua854': 'L'
'\ua855': 'L'
'\ua856': 'L'
'\ua857': 'L'
'\ua858': 'L'
'\ua859': 'L'
'\ua85a': 'L'
'\ua85b': 'L'
'\ua85c': 'L'
'\ua85d': 'L'
'\ua85e': 'L'
'\ua85f': 'L'
'\ua860': 'L'
'\ua861': 'L'
'\ua862': 'L'
'\ua863': 'L'
'\ua864': 'L'
'\ua865': 'L'
'\ua866': 'L'
'\ua867': 'L'
'\ua868': 'L'
'\ua869': 'L'
'\ua86a': 'L'
'\ua86b': 'L'
'\ua86c': 'L'
'\ua86d': 'L'
'\ua86e': 'L'
'\ua86f': 'L'
'\ua870': 'L'
'\ua871': 'L'
'\ua872': 'L'
'\ua873': 'L'
'\ua882': 'L'
'\ua883': 'L'
'\ua884': 'L'
'\ua885': 'L'
'\ua886': 'L'
'\ua887': 'L'
'\ua888': 'L'
'\ua889': 'L'
'\ua88a': 'L'
'\ua88b': 'L'
'\ua88c': 'L'
'\ua88d': 'L'
'\ua88e': 'L'
'\ua88f': 'L'
'\ua890': 'L'
'\ua891': 'L'
'\ua892': 'L'
'\ua893': 'L'
'\ua894': 'L'
'\ua895': 'L'
'\ua896': 'L'
'\ua897': 'L'
'\ua898': 'L'
'\ua899': 'L'
'\ua89a': 'L'
'\ua89b': 'L'
'\ua89c': 'L'
'\ua89d': 'L'
'\ua89e': 'L'
'\ua89f': 'L'
'\ua8a0': 'L'
'\ua8a1': 'L'
'\ua8a2': 'L'
'\ua8a3': 'L'
'\ua8a4': 'L'
'\ua8a5': 'L'
'\ua8a6': 'L'
'\ua8a7': 'L'
'\ua8a8': 'L'
'\ua8a9': 'L'
'\ua8aa': 'L'
'\ua8ab': 'L'
'\ua8ac': 'L'
'\ua8ad': 'L'
'\ua8ae': 'L'
'\ua8af': 'L'
'\ua8b0': 'L'
'\ua8b1': 'L'
'\ua8b2': 'L'
'\ua8b3': 'L'
'\ua8d0': 'N'
'\ua8d1': 'N'
'\ua8d2': 'N'
'\ua8d3': 'N'
'\ua8d4': 'N'
'\ua8d5': 'N'
'\ua8d6': 'N'
'\ua8d7': 'N'
'\ua8d8': 'N'
'\ua8d9': 'N'
'\ua8f2': 'L'
'\ua8f3': 'L'
'\ua8f4': 'L'
'\ua8f5': 'L'
'\ua8f6': 'L'
'\ua8f7': 'L'
'\ua8fb': 'L'
'\ua8fd': 'L'
'\ua900': 'N'
'\ua901': 'N'
'\ua902': 'N'
'\ua903': 'N'
'\ua904': 'N'
'\ua905': 'N'
'\ua906': 'N'
'\ua907': 'N'
'\ua908': 'N'
'\ua909': 'N'
'\ua90a': 'L'
'\ua90b': 'L'
'\ua90c': 'L'
'\ua90d': 'L'
'\ua90e': 'L'
'\ua90f': 'L'
'\ua910': 'L'
'\ua911': 'L'
'\ua912': 'L'
'\ua913': 'L'
'\ua914': 'L'
'\ua915': 'L'
'\ua916': 'L'
'\ua917': 'L'
'\ua918': 'L'
'\ua919': 'L'
'\ua91a': 'L'
'\ua91b': 'L'
'\ua91c': 'L'
'\ua91d': 'L'
'\ua91e': 'L'
'\ua91f': 'L'
'\ua920': 'L'
'\ua921': 'L'
'\ua922': 'L'
'\ua923': 'L'
'\ua924': 'L'
'\ua925': 'L'
'\ua930': 'L'
'\ua931': 'L'
'\ua932': 'L'
'\ua933': 'L'
'\ua934': 'L'
'\ua935': 'L'
'\ua936': 'L'
'\ua937': 'L'
'\ua938': 'L'
'\ua939': 'L'
'\ua93a': 'L'
'\ua93b': 'L'
'\ua93c': 'L'
'\ua93d': 'L'
'\ua93e': 'L'
'\ua93f': 'L'
'\ua940': 'L'
'\ua941': 'L'
'\ua942': 'L'
'\ua943': 'L'
'\ua944': 'L'
'\ua945': 'L'
'\ua946': 'L'
'\ua960': 'L'
'\ua961': 'L'
'\ua962': 'L'
'\ua963': 'L'
'\ua964': 'L'
'\ua965': 'L'
'\ua966': 'L'
'\ua967': 'L'
'\ua968': 'L'
'\ua969': 'L'
'\ua96a': 'L'
'\ua96b': 'L'
'\ua96c': 'L'
'\ua96d': 'L'
'\ua96e': 'L'
'\ua96f': 'L'
'\ua970': 'L'
'\ua971': 'L'
'\ua972': 'L'
'\ua973': 'L'
'\ua974': 'L'
'\ua975': 'L'
'\ua976': 'L'
'\ua977': 'L'
'\ua978': 'L'
'\ua979': 'L'
'\ua97a': 'L'
'\ua97b': 'L'
'\ua97c': 'L'
'\ua984': 'L'
'\ua985': 'L'
'\ua986': 'L'
'\ua987': 'L'
'\ua988': 'L'
'\ua989': 'L'
'\ua98a': 'L'
'\ua98b': 'L'
'\ua98c': 'L'
'\ua98d': 'L'
'\ua98e': 'L'
'\ua98f': 'L'
'\ua990': 'L'
'\ua991': 'L'
'\ua992': 'L'
'\ua993': 'L'
'\ua994': 'L'
'\ua995': 'L'
'\ua996': 'L'
'\ua997': 'L'
'\ua998': 'L'
'\ua999': 'L'
'\ua99a': 'L'
'\ua99b': 'L'
'\ua99c': 'L'
'\ua99d': 'L'
'\ua99e': 'L'
'\ua99f': 'L'
'\ua9a0': 'L'
'\ua9a1': 'L'
'\ua9a2': 'L'
'\ua9a3': 'L'
'\ua9a4': 'L'
'\ua9a5': 'L'
'\ua9a6': 'L'
'\ua9a7': 'L'
'\ua9a8': 'L'
'\ua9a9': 'L'
'\ua9aa': 'L'
'\ua9ab': 'L'
'\ua9ac': 'L'
'\ua9ad': 'L'
'\ua9ae': 'L'
'\ua9af': 'L'
'\ua9b0': 'L'
'\ua9b1': 'L'
'\ua9b2': 'L'
'\ua9cf': 'L'
'\ua9d0': 'N'
'\ua9d1': 'N'
'\ua9d2': 'N'
'\ua9d3': 'N'
'\ua9d4': 'N'
'\ua9d5': 'N'
'\ua9d6': 'N'
'\ua9d7': 'N'
'\ua9d8': 'N'
'\ua9d9': 'N'
'\ua9e0': 'L'
'\ua9e1': 'L'
'\ua9e2': 'L'
'\ua9e3': 'L'
'\ua9e4': 'L'
'\ua9e6': 'L'
'\ua9e7': 'L'
'\ua9e8': 'L'
'\ua9e9': 'L'
'\ua9ea': 'L'
'\ua9eb': 'L'
'\ua9ec': 'L'
'\ua9ed': 'L'
'\ua9ee': 'L'
'\ua9ef': 'L'
'\ua9f0': 'N'
'\ua9f1': 'N'
'\ua9f2': 'N'
'\ua9f3': 'N'
'\ua9f4': 'N'
'\ua9f5': 'N'
'\ua9f6': 'N'
'\ua9f7': 'N'
'\ua9f8': 'N'
'\ua9f9': 'N'
'\ua9fa': 'L'
'\ua9fb': 'L'
'\ua9fc': 'L'
'\ua9fd': 'L'
'\ua9fe': 'L'
'\uaa00': 'L'
'\uaa01': 'L'
'\uaa02': 'L'
'\uaa03': 'L'
'\uaa04': 'L'
'\uaa05': 'L'
'\uaa06': 'L'
'\uaa07': 'L'
'\uaa08': 'L'
'\uaa09': 'L'
'\uaa0a': 'L'
'\uaa0b': 'L'
'\uaa0c': 'L'
'\uaa0d': 'L'
'\uaa0e': 'L'
'\uaa0f': 'L'
'\uaa10': 'L'
'\uaa11': 'L'
'\uaa12': 'L'
'\uaa13': 'L'
'\uaa14': 'L'
'\uaa15': 'L'
'\uaa16': 'L'
'\uaa17': 'L'
'\uaa18': 'L'
'\uaa19': 'L'
'\uaa1a': 'L'
'\uaa1b': 'L'
'\uaa1c': 'L'
'\uaa1d': 'L'
'\uaa1e': 'L'
'\uaa1f': 'L'
'\uaa20': 'L'
'\uaa21': 'L'
'\uaa22': 'L'
'\uaa23': 'L'
'\uaa24': 'L'
'\uaa25': 'L'
'\uaa26': 'L'
'\uaa27': 'L'
'\uaa28': 'L'
'\uaa40': 'L'
'\uaa41': 'L'
'\uaa42': 'L'
'\uaa44': 'L'
'\uaa45': 'L'
'\uaa46': 'L'
'\uaa47': 'L'
'\uaa48': 'L'
'\uaa49': 'L'
'\uaa4a': 'L'
'\uaa4b': 'L'
'\uaa50': 'N'
'\uaa51': 'N'
'\uaa52': 'N'
'\uaa53': 'N'
'\uaa54': 'N'
'\uaa55': 'N'
'\uaa56': 'N'
'\uaa57': 'N'
'\uaa58': 'N'
'\uaa59': 'N'
'\uaa60': 'L'
'\uaa61': 'L'
'\uaa62': 'L'
'\uaa63': 'L'
'\uaa64': 'L'
'\uaa65': 'L'
'\uaa66': 'L'
'\uaa67': 'L'
'\uaa68': 'L'
'\uaa69': 'L'
'\uaa6a': 'L'
'\uaa6b': 'L'
'\uaa6c': 'L'
'\uaa6d': 'L'
'\uaa6e': 'L'
'\uaa6f': 'L'
'\uaa70': 'L'
'\uaa71': 'L'
'\uaa72': 'L'
'\uaa73': 'L'
'\uaa74': 'L'
'\uaa75': 'L'
'\uaa76': 'L'
'\uaa7a': 'L'
'\uaa7e': 'L'
'\uaa7f': 'L'
'\uaa80': 'L'
'\uaa81': 'L'
'\uaa82': 'L'
'\uaa83': 'L'
'\uaa84': 'L'
'\uaa85': 'L'
'\uaa86': 'L'
'\uaa87': 'L'
'\uaa88': 'L'
'\uaa89': 'L'
'\uaa8a': 'L'
'\uaa8b': 'L'
'\uaa8c': 'L'
'\uaa8d': 'L'
'\uaa8e': 'L'
'\uaa8f': 'L'
'\uaa90': 'L'
'\uaa91': 'L'
'\uaa92': 'L'
'\uaa93': 'L'
'\uaa94': 'L'
'\uaa95': 'L'
'\uaa96': 'L'
'\uaa97': 'L'
'\uaa98': 'L'
'\uaa99': 'L'
'\uaa9a': 'L'
'\uaa9b': 'L'
'\uaa9c': 'L'
'\uaa9d': 'L'
'\uaa9e': 'L'
'\uaa9f': 'L'
'\uaaa0': 'L'
'\uaaa1': 'L'
'\uaaa2': 'L'
'\uaaa3': 'L'
'\uaaa4': 'L'
'\uaaa5': 'L'
'\uaaa6': 'L'
'\uaaa7': 'L'
'\uaaa8': 'L'
'\uaaa9': 'L'
'\uaaaa': 'L'
'\uaaab': 'L'
'\uaaac': 'L'
'\uaaad': 'L'
'\uaaae': 'L'
'\uaaaf': 'L'
'\uaab1': 'L'
'\uaab5': 'L'
'\uaab6': 'L'
'\uaab9': 'L'
'\uaaba': 'L'
'\uaabb': 'L'
'\uaabc': 'L'
'\uaabd': 'L'
'\uaac0': 'L'
'\uaac2': 'L'
'\uaadb': 'L'
'\uaadc': 'L'
'\uaadd': 'L'
'\uaae0': 'L'
'\uaae1': 'L'
'\uaae2': 'L'
'\uaae3': 'L'
'\uaae4': 'L'
'\uaae5': 'L'
'\uaae6': 'L'
'\uaae7': 'L'
'\uaae8': 'L'
'\uaae9': 'L'
'\uaaea': 'L'
'\uaaf2': 'L'
'\uaaf3': 'L'
'\uaaf4': 'L'
'\uab01': 'L'
'\uab02': 'L'
'\uab03': 'L'
'\uab04': 'L'
'\uab05': 'L'
'\uab06': 'L'
'\uab09': 'L'
'\uab0a': 'L'
'\uab0b': 'L'
'\uab0c': 'L'
'\uab0d': 'L'
'\uab0e': 'L'
'\uab11': 'L'
'\uab12': 'L'
'\uab13': 'L'
'\uab14': 'L'
'\uab15': 'L'
'\uab16': 'L'
'\uab20': 'L'
'\uab21': 'L'
'\uab22': 'L'
'\uab23': 'L'
'\uab24': 'L'
'\uab25': 'L'
'\uab26': 'L'
'\uab28': 'L'
'\uab29': 'L'
'\uab2a': 'L'
'\uab2b': 'L'
'\uab2c': 'L'
'\uab2d': 'L'
'\uab2e': 'L'
'\uab30': 'L'
'\uab31': 'L'
'\uab32': 'L'
'\uab33': 'L'
'\uab34': 'L'
'\uab35': 'L'
'\uab36': 'L'
'\uab37': 'L'
'\uab38': 'L'
'\uab39': 'L'
'\uab3a': 'L'
'\uab3b': 'L'
'\uab3c': 'L'
'\uab3d': 'L'
'\uab3e': 'L'
'\uab3f': 'L'
'\uab40': 'L'
'\uab41': 'L'
'\uab42': 'L'
'\uab43': 'L'
'\uab44': 'L'
'\uab45': 'L'
'\uab46': 'L'
'\uab47': 'L'
'\uab48': 'L'
'\uab49': 'L'
'\uab4a': 'L'
'\uab4b': 'L'
'\uab4c': 'L'
'\uab4d': 'L'
'\uab4e': 'L'
'\uab4f': 'L'
'\uab50': 'L'
'\uab51': 'L'
'\uab52': 'L'
'\uab53': 'L'
'\uab54': 'L'
'\uab55': 'L'
'\uab56': 'L'
'\uab57': 'L'
'\uab58': 'L'
'\uab59': 'L'
'\uab5a': 'L'
'\uab5c': 'L'
'\uab5d': 'L'
'\uab5e': 'L'
'\uab5f': 'L'
'\uab60': 'L'
'\uab61': 'L'
'\uab62': 'L'
'\uab63': 'L'
'\uab64': 'L'
'\uab65': 'L'
'\uab70': 'L'
'\uab71': 'L'
'\uab72': 'L'
'\uab73': 'L'
'\uab74': 'L'
'\uab75': 'L'
'\uab76': 'L'
'\uab77': 'L'
'\uab78': 'L'
'\uab79': 'L'
'\uab7a': 'L'
'\uab7b': 'L'
'\uab7c': 'L'
'\uab7d': 'L'
'\uab7e': 'L'
'\uab7f': 'L'
'\uab80': 'L'
'\uab81': 'L'
'\uab82': 'L'
'\uab83': 'L'
'\uab84': 'L'
'\uab85': 'L'
'\uab86': 'L'
'\uab87': 'L'
'\uab88': 'L'
'\uab89': 'L'
'\uab8a': 'L'
'\uab8b': 'L'
'\uab8c': 'L'
'\uab8d': 'L'
'\uab8e': 'L'
'\uab8f': 'L'
'\uab90': 'L'
'\uab91': 'L'
'\uab92': 'L'
'\uab93': 'L'
'\uab94': 'L'
'\uab95': 'L'
'\uab96': 'L'
'\uab97': 'L'
'\uab98': 'L'
'\uab99': 'L'
'\uab9a': 'L'
'\uab9b': 'L'
'\uab9c': 'L'
'\uab9d': 'L'
'\uab9e': 'L'
'\uab9f': 'L'
'\uaba0': 'L'
'\uaba1': 'L'
'\uaba2': 'L'
'\uaba3': 'L'
'\uaba4': 'L'
'\uaba5': 'L'
'\uaba6': 'L'
'\uaba7': 'L'
'\uaba8': 'L'
'\uaba9': 'L'
'\uabaa': 'L'
'\uabab': 'L'
'\uabac': 'L'
'\uabad': 'L'
'\uabae': 'L'
'\uabaf': 'L'
'\uabb0': 'L'
'\uabb1': 'L'
'\uabb2': 'L'
'\uabb3': 'L'
'\uabb4': 'L'
'\uabb5': 'L'
'\uabb6': 'L'
'\uabb7': 'L'
'\uabb8': 'L'
'\uabb9': 'L'
'\uabba': 'L'
'\uabbb': 'L'
'\uabbc': 'L'
'\uabbd': 'L'
'\uabbe': 'L'
'\uabbf': 'L'
'\uabc0': 'L'
'\uabc1': 'L'
'\uabc2': 'L'
'\uabc3': 'L'
'\uabc4': 'L'
'\uabc5': 'L'
'\uabc6': 'L'
'\uabc7': 'L'
'\uabc8': 'L'
'\uabc9': 'L'
'\uabca': 'L'
'\uabcb': 'L'
'\uabcc': 'L'
'\uabcd': 'L'
'\uabce': 'L'
'\uabcf': 'L'
'\uabd0': 'L'
'\uabd1': 'L'
'\uabd2': 'L'
'\uabd3': 'L'
'\uabd4': 'L'
'\uabd5': 'L'
'\uabd6': 'L'
'\uabd7': 'L'
'\uabd8': 'L'
'\uabd9': 'L'
'\uabda': 'L'
'\uabdb': 'L'
'\uabdc': 'L'
'\uabdd': 'L'
'\uabde': 'L'
'\uabdf': 'L'
'\uabe0': 'L'
'\uabe1': 'L'
'\uabe2': 'L'
'\uabf0': 'N'
'\uabf1': 'N'
'\uabf2': 'N'
'\uabf3': 'N'
'\uabf4': 'N'
'\uabf5': 'N'
'\uabf6': 'N'
'\uabf7': 'N'
'\uabf8': 'N'
'\uabf9': 'N'
'\ud7b0': 'L'
'\ud7b1': 'L'
'\ud7b2': 'L'
'\ud7b3': 'L'
'\ud7b4': 'L'
'\ud7b5': 'L'
'\ud7b6': 'L'
'\ud7b7': 'L'
'\ud7b8': 'L'
'\ud7b9': 'L'
'\ud7ba': 'L'
'\ud7bb': 'L'
'\ud7bc': 'L'
'\ud7bd': 'L'
'\ud7be': 'L'
'\ud7bf': 'L'
'\ud7c0': 'L'
'\ud7c1': 'L'
'\ud7c2': 'L'
'\ud7c3': 'L'
'\ud7c4': 'L'
'\ud7c5': 'L'
'\ud7c6': 'L'
'\ud7cb': 'L'
'\ud7cc': 'L'
'\ud7cd': 'L'
'\ud7ce': 'L'
'\ud7cf': 'L'
'\ud7d0': 'L'
'\ud7d1': 'L'
'\ud7d2': 'L'
'\ud7d3': 'L'
'\ud7d4': 'L'
'\ud7d5': 'L'
'\ud7d6': 'L'
'\ud7d7': 'L'
'\ud7d8': 'L'
'\ud7d9': 'L'
'\ud7da': 'L'
'\ud7db': 'L'
'\ud7dc': 'L'
'\ud7dd': 'L'
'\ud7de': 'L'
'\ud7df': 'L'
'\ud7e0': 'L'
'\ud7e1': 'L'
'\ud7e2': 'L'
'\ud7e3': 'L'
'\ud7e4': 'L'
'\ud7e5': 'L'
'\ud7e6': 'L'
'\ud7e7': 'L'
'\ud7e8': 'L'
'\ud7e9': 'L'
'\ud7ea': 'L'
'\ud7eb': 'L'
'\ud7ec': 'L'
'\ud7ed': 'L'
'\ud7ee': 'L'
'\ud7ef': 'L'
'\ud7f0': 'L'
'\ud7f1': 'L'
'\ud7f2': 'L'
'\ud7f3': 'L'
'\ud7f4': 'L'
'\ud7f5': 'L'
'\ud7f6': 'L'
'\ud7f7': 'L'
'\ud7f8': 'L'
'\ud7f9': 'L'
'\ud7fa': 'L'
'\ud7fb': 'L'
'\uf900': 'L'
'\uf901': 'L'
'\uf902': 'L'
'\uf903': 'L'
'\uf904': 'L'
'\uf905': 'L'
'\uf906': 'L'
'\uf907': 'L'
'\uf908': 'L'
'\uf909': 'L'
'\uf90a': 'L'
'\uf90b': 'L'
'\uf90c': 'L'
'\uf90d': 'L'
'\uf90e': 'L'
'\uf90f': 'L'
'\uf910': 'L'
'\uf911': 'L'
'\uf912': 'L'
'\uf913': 'L'
'\uf914': 'L'
'\uf915': 'L'
'\uf916': 'L'
'\uf917': 'L'
'\uf918': 'L'
'\uf919': 'L'
'\uf91a': 'L'
'\uf91b': 'L'
'\uf91c': 'L'
'\uf91d': 'L'
'\uf91e': 'L'
'\uf91f': 'L'
'\uf920': 'L'
'\uf921': 'L'
'\uf922': 'L'
'\uf923': 'L'
'\uf924': 'L'
'\uf925': 'L'
'\uf926': 'L'
'\uf927': 'L'
'\uf928': 'L'
'\uf929': 'L'
'\uf92a': 'L'
'\uf92b': 'L'
'\uf92c': 'L'
'\uf92d': 'L'
'\uf92e': 'L'
'\uf92f': 'L'
'\uf930': 'L'
'\uf931': 'L'
'\uf932': 'L'
'\uf933': 'L'
'\uf934': 'L'
'\uf935': 'L'
'\uf936': 'L'
'\uf937': 'L'
'\uf938': 'L'
'\uf939': 'L'
'\uf93a': 'L'
'\uf93b': 'L'
'\uf93c': 'L'
'\uf93d': 'L'
'\uf93e': 'L'
'\uf93f': 'L'
'\uf940': 'L'
'\uf941': 'L'
'\uf942': 'L'
'\uf943': 'L'
'\uf944': 'L'
'\uf945': 'L'
'\uf946': 'L'
'\uf947': 'L'
'\uf948': 'L'
'\uf949': 'L'
'\uf94a': 'L'
'\uf94b': 'L'
'\uf94c': 'L'
'\uf94d': 'L'
'\uf94e': 'L'
'\uf94f': 'L'
'\uf950': 'L'
'\uf951': 'L'
'\uf952': 'L'
'\uf953': 'L'
'\uf954': 'L'
'\uf955': 'L'
'\uf956': 'L'
'\uf957': 'L'
'\uf958': 'L'
'\uf959': 'L'
'\uf95a': 'L'
'\uf95b': 'L'
'\uf95c': 'L'
'\uf95d': 'L'
'\uf95e': 'L'
'\uf95f': 'L'
'\uf960': 'L'
'\uf961': 'L'
'\uf962': 'L'
'\uf963': 'L'
'\uf964': 'L'
'\uf965': 'L'
'\uf966': 'L'
'\uf967': 'L'
'\uf968': 'L'
'\uf969': 'L'
'\uf96a': 'L'
'\uf96b': 'L'
'\uf96c': 'L'
'\uf96d': 'L'
'\uf96e': 'L'
'\uf96f': 'L'
'\uf970': 'L'
'\uf971': 'L'
'\uf972': 'L'
'\uf973': 'L'
'\uf974': 'L'
'\uf975': 'L'
'\uf976': 'L'
'\uf977': 'L'
'\uf978': 'L'
'\uf979': 'L'
'\uf97a': 'L'
'\uf97b': 'L'
'\uf97c': 'L'
'\uf97d': 'L'
'\uf97e': 'L'
'\uf97f': 'L'
'\uf980': 'L'
'\uf981': 'L'
'\uf982': 'L'
'\uf983': 'L'
'\uf984': 'L'
'\uf985': 'L'
'\uf986': 'L'
'\uf987': 'L'
'\uf988': 'L'
'\uf989': 'L'
'\uf98a': 'L'
'\uf98b': 'L'
'\uf98c': 'L'
'\uf98d': 'L'
'\uf98e': 'L'
'\uf98f': 'L'
'\uf990': 'L'
'\uf991': 'L'
'\uf992': 'L'
'\uf993': 'L'
'\uf994': 'L'
'\uf995': 'L'
'\uf996': 'L'
'\uf997': 'L'
'\uf998': 'L'
'\uf999': 'L'
'\uf99a': 'L'
'\uf99b': 'L'
'\uf99c': 'L'
'\uf99d': 'L'
'\uf99e': 'L'
'\uf99f': 'L'
'\uf9a0': 'L'
'\uf9a1': 'L'
'\uf9a2': 'L'
'\uf9a3': 'L'
'\uf9a4': 'L'
'\uf9a5': 'L'
'\uf9a6': 'L'
'\uf9a7': 'L'
'\uf9a8': 'L'
'\uf9a9': 'L'
'\uf9aa': 'L'
'\uf9ab': 'L'
'\uf9ac': 'L'
'\uf9ad': 'L'
'\uf9ae': 'L'
'\uf9af': 'L'
'\uf9b0': 'L'
'\uf9b1': 'L'
'\uf9b2': 'L'
'\uf9b3': 'L'
'\uf9b4': 'L'
'\uf9b5': 'L'
'\uf9b6': 'L'
'\uf9b7': 'L'
'\uf9b8': 'L'
'\uf9b9': 'L'
'\uf9ba': 'L'
'\uf9bb': 'L'
'\uf9bc': 'L'
'\uf9bd': 'L'
'\uf9be': 'L'
'\uf9bf': 'L'
'\uf9c0': 'L'
'\uf9c1': 'L'
'\uf9c2': 'L'
'\uf9c3': 'L'
'\uf9c4': 'L'
'\uf9c5': 'L'
'\uf9c6': 'L'
'\uf9c7': 'L'
'\uf9c8': 'L'
'\uf9c9': 'L'
'\uf9ca': 'L'
'\uf9cb': 'L'
'\uf9cc': 'L'
'\uf9cd': 'L'
'\uf9ce': 'L'
'\uf9cf': 'L'
'\uf9d0': 'L'
'\uf9d1': 'L'
'\uf9d2': 'L'
'\uf9d3': 'L'
'\uf9d4': 'L'
'\uf9d5': 'L'
'\uf9d6': 'L'
'\uf9d7': 'L'
'\uf9d8': 'L'
'\uf9d9': 'L'
'\uf9da': 'L'
'\uf9db': 'L'
'\uf9dc': 'L'
'\uf9dd': 'L'
'\uf9de': 'L'
'\uf9df': 'L'
'\uf9e0': 'L'
'\uf9e1': 'L'
'\uf9e2': 'L'
'\uf9e3': 'L'
'\uf9e4': 'L'
'\uf9e5': 'L'
'\uf9e6': 'L'
'\uf9e7': 'L'
'\uf9e8': 'L'
'\uf9e9': 'L'
'\uf9ea': 'L'
'\uf9eb': 'L'
'\uf9ec': 'L'
'\uf9ed': 'L'
'\uf9ee': 'L'
'\uf9ef': 'L'
'\uf9f0': 'L'
'\uf9f1': 'L'
'\uf9f2': 'L'
'\uf9f3': 'L'
'\uf9f4': 'L'
'\uf9f5': 'L'
'\uf9f6': 'L'
'\uf9f7': 'L'
'\uf9f8': 'L'
'\uf9f9': 'L'
'\uf9fa': 'L'
'\uf9fb': 'L'
'\uf9fc': 'L'
'\uf9fd': 'L'
'\uf9fe': 'L'
'\uf9ff': 'L'
'\ufa00': 'L'
'\ufa01': 'L'
'\ufa02': 'L'
'\ufa03': 'L'
'\ufa04': 'L'
'\ufa05': 'L'
'\ufa06': 'L'
'\ufa07': 'L'
'\ufa08': 'L'
'\ufa09': 'L'
'\ufa0a': 'L'
'\ufa0b': 'L'
'\ufa0c': 'L'
'\ufa0d': 'L'
'\ufa0e': 'L'
'\ufa0f': 'L'
'\ufa10': 'L'
'\ufa11': 'L'
'\ufa12': 'L'
'\ufa13': 'L'
'\ufa14': 'L'
'\ufa15': 'L'
'\ufa16': 'L'
'\ufa17': 'L'
'\ufa18': 'L'
'\ufa19': 'L'
'\ufa1a': 'L'
'\ufa1b': 'L'
'\ufa1c': 'L'
'\ufa1d': 'L'
'\ufa1e': 'L'
'\ufa1f': 'L'
'\ufa20': 'L'
'\ufa21': 'L'
'\ufa22': 'L'
'\ufa23': 'L'
'\ufa24': 'L'
'\ufa25': 'L'
'\ufa26': 'L'
'\ufa27': 'L'
'\ufa28': 'L'
'\ufa29': 'L'
'\ufa2a': 'L'
'\ufa2b': 'L'
'\ufa2c': 'L'
'\ufa2d': 'L'
'\ufa2e': 'L'
'\ufa2f': 'L'
'\ufa30': 'L'
'\ufa31': 'L'
'\ufa32': 'L'
'\ufa33': 'L'
'\ufa34': 'L'
'\ufa35': 'L'
'\ufa36': 'L'
'\ufa37': 'L'
'\ufa38': 'L'
'\ufa39': 'L'
'\ufa3a': 'L'
'\ufa3b': 'L'
'\ufa3c': 'L'
'\ufa3d': 'L'
'\ufa3e': 'L'
'\ufa3f': 'L'
'\ufa40': 'L'
'\ufa41': 'L'
'\ufa42': 'L'
'\ufa43': 'L'
'\ufa44': 'L'
'\ufa45': 'L'
'\ufa46': 'L'
'\ufa47': 'L'
'\ufa48': 'L'
'\ufa49': 'L'
'\ufa4a': 'L'
'\ufa4b': 'L'
'\ufa4c': 'L'
'\ufa4d': 'L'
'\ufa4e': 'L'
'\ufa4f': 'L'
'\ufa50': 'L'
'\ufa51': 'L'
'\ufa52': 'L'
'\ufa53': 'L'
'\ufa54': 'L'
'\ufa55': 'L'
'\ufa56': 'L'
'\ufa57': 'L'
'\ufa58': 'L'
'\ufa59': 'L'
'\ufa5a': 'L'
'\ufa5b': 'L'
'\ufa5c': 'L'
'\ufa5d': 'L'
'\ufa5e': 'L'
'\ufa5f': 'L'
'\ufa60': 'L'
'\ufa61': 'L'
'\ufa62': 'L'
'\ufa63': 'L'
'\ufa64': 'L'
'\ufa65': 'L'
'\ufa66': 'L'
'\ufa67': 'L'
'\ufa68': 'L'
'\ufa69': 'L'
'\ufa6a': 'L'
'\ufa6b': 'L'
'\ufa6c': 'L'
'\ufa6d': 'L'
'\ufa70': 'L'
'\ufa71': 'L'
'\ufa72': 'L'
'\ufa73': 'L'
'\ufa74': 'L'
'\ufa75': 'L'
'\ufa76': 'L'
'\ufa77': 'L'
'\ufa78': 'L'
'\ufa79': 'L'
'\ufa7a': 'L'
'\ufa7b': 'L'
'\ufa7c': 'L'
'\ufa7d': 'L'
'\ufa7e': 'L'
'\ufa7f': 'L'
'\ufa80': 'L'
'\ufa81': 'L'
'\ufa82': 'L'
'\ufa83': 'L'
'\ufa84': 'L'
'\ufa85': 'L'
'\ufa86': 'L'
'\ufa87': 'L'
'\ufa88': 'L'
'\ufa89': 'L'
'\ufa8a': 'L'
'\ufa8b': 'L'
'\ufa8c': 'L'
'\ufa8d': 'L'
'\ufa8e': 'L'
'\ufa8f': 'L'
'\ufa90': 'L'
'\ufa91': 'L'
'\ufa92': 'L'
'\ufa93': 'L'
'\ufa94': 'L'
'\ufa95': 'L'
'\ufa96': 'L'
'\ufa97': 'L'
'\ufa98': 'L'
'\ufa99': 'L'
'\ufa9a': 'L'
'\ufa9b': 'L'
'\ufa9c': 'L'
'\ufa9d': 'L'
'\ufa9e': 'L'
'\ufa9f': 'L'
'\ufaa0': 'L'
'\ufaa1': 'L'
'\ufaa2': 'L'
'\ufaa3': 'L'
'\ufaa4': 'L'
'\ufaa5': 'L'
'\ufaa6': 'L'
'\ufaa7': 'L'
'\ufaa8': 'L'
'\ufaa9': 'L'
'\ufaaa': 'L'
'\ufaab': 'L'
'\ufaac': 'L'
'\ufaad': 'L'
'\ufaae': 'L'
'\ufaaf': 'L'
'\ufab0': 'L'
'\ufab1': 'L'
'\ufab2': 'L'
'\ufab3': 'L'
'\ufab4': 'L'
'\ufab5': 'L'
'\ufab6': 'L'
'\ufab7': 'L'
'\ufab8': 'L'
'\ufab9': 'L'
'\ufaba': 'L'
'\ufabb': 'L'
'\ufabc': 'L'
'\ufabd': 'L'
'\ufabe': 'L'
'\ufabf': 'L'
'\ufac0': 'L'
'\ufac1': 'L'
'\ufac2': 'L'
'\ufac3': 'L'
'\ufac4': 'L'
'\ufac5': 'L'
'\ufac6': 'L'
'\ufac7': 'L'
'\ufac8': 'L'
'\ufac9': 'L'
'\ufaca': 'L'
'\ufacb': 'L'
'\ufacc': 'L'
'\ufacd': 'L'
'\uface': 'L'
'\ufacf': 'L'
'\ufad0': 'L'
'\ufad1': 'L'
'\ufad2': 'L'
'\ufad3': 'L'
'\ufad4': 'L'
'\ufad5': 'L'
'\ufad6': 'L'
'\ufad7': 'L'
'\ufad8': 'L'
'\ufad9': 'L'
'\ufb00': 'L'
'\ufb01': 'L'
'\ufb02': 'L'
'\ufb03': 'L'
'\ufb04': 'L'
'\ufb05': 'L'
'\ufb06': 'L'
'\ufb13': 'L'
'\ufb14': 'L'
'\ufb15': 'L'
'\ufb16': 'L'
'\ufb17': 'L'
'\ufb1d': 'L'
'\ufb1f': 'L'
'\ufb20': 'L'
'\ufb21': 'L'
'\ufb22': 'L'
'\ufb23': 'L'
'\ufb24': 'L'
'\ufb25': 'L'
'\ufb26': 'L'
'\ufb27': 'L'
'\ufb28': 'L'
'\ufb2a': 'L'
'\ufb2b': 'L'
'\ufb2c': 'L'
'\ufb2d': 'L'
'\ufb2e': 'L'
'\ufb2f': 'L'
'\ufb30': 'L'
'\ufb31': 'L'
'\ufb32': 'L'
'\ufb33': 'L'
'\ufb34': 'L'
'\ufb35': 'L'
'\ufb36': 'L'
'\ufb38': 'L'
'\ufb39': 'L'
'\ufb3a': 'L'
'\ufb3b': 'L'
'\ufb3c': 'L'
'\ufb3e': 'L'
'\ufb40': 'L'
'\ufb41': 'L'
'\ufb43': 'L'
'\ufb44': 'L'
'\ufb46': 'L'
'\ufb47': 'L'
'\ufb48': 'L'
'\ufb49': 'L'
'\ufb4a': 'L'
'\ufb4b': 'L'
'\ufb4c': 'L'
'\ufb4d': 'L'
'\ufb4e': 'L'
'\ufb4f': 'L'
'\ufb50': 'L'
'\ufb51': 'L'
'\ufb52': 'L'
'\ufb53': 'L'
'\ufb54': 'L'
'\ufb55': 'L'
'\ufb56': 'L'
'\ufb57': 'L'
'\ufb58': 'L'
'\ufb59': 'L'
'\ufb5a': 'L'
'\ufb5b': 'L'
'\ufb5c': 'L'
'\ufb5d': 'L'
'\ufb5e': 'L'
'\ufb5f': 'L'
'\ufb60': 'L'
'\ufb61': 'L'
'\ufb62': 'L'
'\ufb63': 'L'
'\ufb64': 'L'
'\ufb65': 'L'
'\ufb66': 'L'
'\ufb67': 'L'
'\ufb68': 'L'
'\ufb69': 'L'
'\ufb6a': 'L'
'\ufb6b': 'L'
'\ufb6c': 'L'
'\ufb6d': 'L'
'\ufb6e': 'L'
'\ufb6f': 'L'
'\ufb70': 'L'
'\ufb71': 'L'
'\ufb72': 'L'
'\ufb73': 'L'
'\ufb74': 'L'
'\ufb75': 'L'
'\ufb76': 'L'
'\ufb77': 'L'
'\ufb78': 'L'
'\ufb79': 'L'
'\ufb7a': 'L'
'\ufb7b': 'L'
'\ufb7c': 'L'
'\ufb7d': 'L'
'\ufb7e': 'L'
'\ufb7f': 'L'
'\ufb80': 'L'
'\ufb81': 'L'
'\ufb82': 'L'
'\ufb83': 'L'
'\ufb84': 'L'
'\ufb85': 'L'
'\ufb86': 'L'
'\ufb87': 'L'
'\ufb88': 'L'
'\ufb89': 'L'
'\ufb8a': 'L'
'\ufb8b': 'L'
'\ufb8c': 'L'
'\ufb8d': 'L'
'\ufb8e': 'L'
'\ufb8f': 'L'
'\ufb90': 'L'
'\ufb91': 'L'
'\ufb92': 'L'
'\ufb93': 'L'
'\ufb94': 'L'
'\ufb95': 'L'
'\ufb96': 'L'
'\ufb97': 'L'
'\ufb98': 'L'
'\ufb99': 'L'
'\ufb9a': 'L'
'\ufb9b': 'L'
'\ufb9c': 'L'
'\ufb9d': 'L'
'\ufb9e': 'L'
'\ufb9f': 'L'
'\ufba0': 'L'
'\ufba1': 'L'
'\ufba2': 'L'
'\ufba3': 'L'
'\ufba4': 'L'
'\ufba5': 'L'
'\ufba6': 'L'
'\ufba7': 'L'
'\ufba8': 'L'
'\ufba9': 'L'
'\ufbaa': 'L'
'\ufbab': 'L'
'\ufbac': 'L'
'\ufbad': 'L'
'\ufbae': 'L'
'\ufbaf': 'L'
'\ufbb0': 'L'
'\ufbb1': 'L'
'\ufbd3': 'L'
'\ufbd4': 'L'
'\ufbd5': 'L'
'\ufbd6': 'L'
'\ufbd7': 'L'
'\ufbd8': 'L'
'\ufbd9': 'L'
'\ufbda': 'L'
'\ufbdb': 'L'
'\ufbdc': 'L'
'\ufbdd': 'L'
'\ufbde': 'L'
'\ufbdf': 'L'
'\ufbe0': 'L'
'\ufbe1': 'L'
'\ufbe2': 'L'
'\ufbe3': 'L'
'\ufbe4': 'L'
'\ufbe5': 'L'
'\ufbe6': 'L'
'\ufbe7': 'L'
'\ufbe8': 'L'
'\ufbe9': 'L'
'\ufbea': 'L'
'\ufbeb': 'L'
'\ufbec': 'L'
'\ufbed': 'L'
'\ufbee': 'L'
'\ufbef': 'L'
'\ufbf0': 'L'
'\ufbf1': 'L'
'\ufbf2': 'L'
'\ufbf3': 'L'
'\ufbf4': 'L'
'\ufbf5': 'L'
'\ufbf6': 'L'
'\ufbf7': 'L'
'\ufbf8': 'L'
'\ufbf9': 'L'
'\ufbfa': 'L'
'\ufbfb': 'L'
'\ufbfc': 'L'
'\ufbfd': 'L'
'\ufbfe': 'L'
'\ufbff': 'L'
'\ufc00': 'L'
'\ufc01': 'L'
'\ufc02': 'L'
'\ufc03': 'L'
'\ufc04': 'L'
'\ufc05': 'L'
'\ufc06': 'L'
'\ufc07': 'L'
'\ufc08': 'L'
'\ufc09': 'L'
'\ufc0a': 'L'
'\ufc0b': 'L'
'\ufc0c': 'L'
'\ufc0d': 'L'
'\ufc0e': 'L'
'\ufc0f': 'L'
'\ufc10': 'L'
'\ufc11': 'L'
'\ufc12': 'L'
'\ufc13': 'L'
'\ufc14': 'L'
'\ufc15': 'L'
'\ufc16': 'L'
'\ufc17': 'L'
'\ufc18': 'L'
'\ufc19': 'L'
'\ufc1a': 'L'
'\ufc1b': 'L'
'\ufc1c': 'L'
'\ufc1d': 'L'
'\ufc1e': 'L'
'\ufc1f': 'L'
'\ufc20': 'L'
'\ufc21': 'L'
'\ufc22': 'L'
'\ufc23': 'L'
'\ufc24': 'L'
'\ufc25': 'L'
'\ufc26': 'L'
'\ufc27': 'L'
'\ufc28': 'L'
'\ufc29': 'L'
'\ufc2a': 'L'
'\ufc2b': 'L'
'\ufc2c': 'L'
'\ufc2d': 'L'
'\ufc2e': 'L'
'\ufc2f': 'L'
'\ufc30': 'L'
'\ufc31': 'L'
'\ufc32': 'L'
'\ufc33': 'L'
'\ufc34': 'L'
'\ufc35': 'L'
'\ufc36': 'L'
'\ufc37': 'L'
'\ufc38': 'L'
'\ufc39': 'L'
'\ufc3a': 'L'
'\ufc3b': 'L'
'\ufc3c': 'L'
'\ufc3d': 'L'
'\ufc3e': 'L'
'\ufc3f': 'L'
'\ufc40': 'L'
'\ufc41': 'L'
'\ufc42': 'L'
'\ufc43': 'L'
'\ufc44': 'L'
'\ufc45': 'L'
'\ufc46': 'L'
'\ufc47': 'L'
'\ufc48': 'L'
'\ufc49': 'L'
'\ufc4a': 'L'
'\ufc4b': 'L'
'\ufc4c': 'L'
'\ufc4d': 'L'
'\ufc4e': 'L'
'\ufc4f': 'L'
'\ufc50': 'L'
'\ufc51': 'L'
'\ufc52': 'L'
'\ufc53': 'L'
'\ufc54': 'L'
'\ufc55': 'L'
'\ufc56': 'L'
'\ufc57': 'L'
'\ufc58': 'L'
'\ufc59': 'L'
'\ufc5a': 'L'
'\ufc5b': 'L'
'\ufc5c': 'L'
'\ufc5d': 'L'
'\ufc5e': 'L'
'\ufc5f': 'L'
'\ufc60': 'L'
'\ufc61': 'L'
'\ufc62': 'L'
'\ufc63': 'L'
'\ufc64': 'L'
'\ufc65': 'L'
'\ufc66': 'L'
'\ufc67': 'L'
'\ufc68': 'L'
'\ufc69': 'L'
'\ufc6a': 'L'
'\ufc6b': 'L'
'\ufc6c': 'L'
'\ufc6d': 'L'
'\ufc6e': 'L'
'\ufc6f': 'L'
'\ufc70': 'L'
'\ufc71': 'L'
'\ufc72': 'L'
'\ufc73': 'L'
'\ufc74': 'L'
'\ufc75': 'L'
'\ufc76': 'L'
'\ufc77': 'L'
'\ufc78': 'L'
'\ufc79': 'L'
'\ufc7a': 'L'
'\ufc7b': 'L'
'\ufc7c': 'L'
'\ufc7d': 'L'
'\ufc7e': 'L'
'\ufc7f': 'L'
'\ufc80': 'L'
'\ufc81': 'L'
'\ufc82': 'L'
'\ufc83': 'L'
'\ufc84': 'L'
'\ufc85': 'L'
'\ufc86': 'L'
'\ufc87': 'L'
'\ufc88': 'L'
'\ufc89': 'L'
'\ufc8a': 'L'
'\ufc8b': 'L'
'\ufc8c': 'L'
'\ufc8d': 'L'
'\ufc8e': 'L'
'\ufc8f': 'L'
'\ufc90': 'L'
'\ufc91': 'L'
'\ufc92': 'L'
'\ufc93': 'L'
'\ufc94': 'L'
'\ufc95': 'L'
'\ufc96': 'L'
'\ufc97': 'L'
'\ufc98': 'L'
'\ufc99': 'L'
'\ufc9a': 'L'
'\ufc9b': 'L'
'\ufc9c': 'L'
'\ufc9d': 'L'
'\ufc9e': 'L'
'\ufc9f': 'L'
'\ufca0': 'L'
'\ufca1': 'L'
'\ufca2': 'L'
'\ufca3': 'L'
'\ufca4': 'L'
'\ufca5': 'L'
'\ufca6': 'L'
'\ufca7': 'L'
'\ufca8': 'L'
'\ufca9': 'L'
'\ufcaa': 'L'
'\ufcab': 'L'
'\ufcac': 'L'
'\ufcad': 'L'
'\ufcae': 'L'
'\ufcaf': 'L'
'\ufcb0': 'L'
'\ufcb1': 'L'
'\ufcb2': 'L'
'\ufcb3': 'L'
'\ufcb4': 'L'
'\ufcb5': 'L'
'\ufcb6': 'L'
'\ufcb7': 'L'
'\ufcb8': 'L'
'\ufcb9': 'L'
'\ufcba': 'L'
'\ufcbb': 'L'
'\ufcbc': 'L'
'\ufcbd': 'L'
'\ufcbe': 'L'
'\ufcbf': 'L'
'\ufcc0': 'L'
'\ufcc1': 'L'
'\ufcc2': 'L'
'\ufcc3': 'L'
'\ufcc4': 'L'
'\ufcc5': 'L'
'\ufcc6': 'L'
'\ufcc7': 'L'
'\ufcc8': 'L'
'\ufcc9': 'L'
'\ufcca': 'L'
'\ufccb': 'L'
'\ufccc': 'L'
'\ufccd': 'L'
'\ufcce': 'L'
'\ufccf': 'L'
'\ufcd0': 'L'
'\ufcd1': 'L'
'\ufcd2': 'L'
'\ufcd3': 'L'
'\ufcd4': 'L'
'\ufcd5': 'L'
'\ufcd6': 'L'
'\ufcd7': 'L'
'\ufcd8': 'L'
'\ufcd9': 'L'
'\ufcda': 'L'
'\ufcdb': 'L'
'\ufcdc': 'L'
'\ufcdd': 'L'
'\ufcde': 'L'
'\ufcdf': 'L'
'\ufce0': 'L'
'\ufce1': 'L'
'\ufce2': 'L'
'\ufce3': 'L'
'\ufce4': 'L'
'\ufce5': 'L'
'\ufce6': 'L'
'\ufce7': 'L'
'\ufce8': 'L'
'\ufce9': 'L'
'\ufcea': 'L'
'\ufceb': 'L'
'\ufcec': 'L'
'\ufced': 'L'
'\ufcee': 'L'
'\ufcef': 'L'
'\ufcf0': 'L'
'\ufcf1': 'L'
'\ufcf2': 'L'
'\ufcf3': 'L'
'\ufcf4': 'L'
'\ufcf5': 'L'
'\ufcf6': 'L'
'\ufcf7': 'L'
'\ufcf8': 'L'
'\ufcf9': 'L'
'\ufcfa': 'L'
'\ufcfb': 'L'
'\ufcfc': 'L'
'\ufcfd': 'L'
'\ufcfe': 'L'
'\ufcff': 'L'
'\ufd00': 'L'
'\ufd01': 'L'
'\ufd02': 'L'
'\ufd03': 'L'
'\ufd04': 'L'
'\ufd05': 'L'
'\ufd06': 'L'
'\ufd07': 'L'
'\ufd08': 'L'
'\ufd09': 'L'
'\ufd0a': 'L'
'\ufd0b': 'L'
'\ufd0c': 'L'
'\ufd0d': 'L'
'\ufd0e': 'L'
'\ufd0f': 'L'
'\ufd10': 'L'
'\ufd11': 'L'
'\ufd12': 'L'
'\ufd13': 'L'
'\ufd14': 'L'
'\ufd15': 'L'
'\ufd16': 'L'
'\ufd17': 'L'
'\ufd18': 'L'
'\ufd19': 'L'
'\ufd1a': 'L'
'\ufd1b': 'L'
'\ufd1c': 'L'
'\ufd1d': 'L'
'\ufd1e': 'L'
'\ufd1f': 'L'
'\ufd20': 'L'
'\ufd21': 'L'
'\ufd22': 'L'
'\ufd23': 'L'
'\ufd24': 'L'
'\ufd25': 'L'
'\ufd26': 'L'
'\ufd27': 'L'
'\ufd28': 'L'
'\ufd29': 'L'
'\ufd2a': 'L'
'\ufd2b': 'L'
'\ufd2c': 'L'
'\ufd2d': 'L'
'\ufd2e': 'L'
'\ufd2f': 'L'
'\ufd30': 'L'
'\ufd31': 'L'
'\ufd32': 'L'
'\ufd33': 'L'
'\ufd34': 'L'
'\ufd35': 'L'
'\ufd36': 'L'
'\ufd37': 'L'
'\ufd38': 'L'
'\ufd39': 'L'
'\ufd3a': 'L'
'\ufd3b': 'L'
'\ufd3c': 'L'
'\ufd3d': 'L'
'\ufd50': 'L'
'\ufd51': 'L'
'\ufd52': 'L'
'\ufd53': 'L'
'\ufd54': 'L'
'\ufd55': 'L'
'\ufd56': 'L'
'\ufd57': 'L'
'\ufd58': 'L'
'\ufd59': 'L'
'\ufd5a': 'L'
'\ufd5b': 'L'
'\ufd5c': 'L'
'\ufd5d': 'L'
'\ufd5e': 'L'
'\ufd5f': 'L'
'\ufd60': 'L'
'\ufd61': 'L'
'\ufd62': 'L'
'\ufd63': 'L'
'\ufd64': 'L'
'\ufd65': 'L'
'\ufd66': 'L'
'\ufd67': 'L'
'\ufd68': 'L'
'\ufd69': 'L'
'\ufd6a': 'L'
'\ufd6b': 'L'
'\ufd6c': 'L'
'\ufd6d': 'L'
'\ufd6e': 'L'
'\ufd6f': 'L'
'\ufd70': 'L'
'\ufd71': 'L'
'\ufd72': 'L'
'\ufd73': 'L'
'\ufd74': 'L'
'\ufd75': 'L'
'\ufd76': 'L'
'\ufd77': 'L'
'\ufd78': 'L'
'\ufd79': 'L'
'\ufd7a': 'L'
'\ufd7b': 'L'
'\ufd7c': 'L'
'\ufd7d': 'L'
'\ufd7e': 'L'
'\ufd7f': 'L'
'\ufd80': 'L'
'\ufd81': 'L'
'\ufd82': 'L'
'\ufd83': 'L'
'\ufd84': 'L'
'\ufd85': 'L'
'\ufd86': 'L'
'\ufd87': 'L'
'\ufd88': 'L'
'\ufd89': 'L'
'\ufd8a': 'L'
'\ufd8b': 'L'
'\ufd8c': 'L'
'\ufd8d': 'L'
'\ufd8e': 'L'
'\ufd8f': 'L'
'\ufd92': 'L'
'\ufd93': 'L'
'\ufd94': 'L'
'\ufd95': 'L'
'\ufd96': 'L'
'\ufd97': 'L'
'\ufd98': 'L'
'\ufd99': 'L'
'\ufd9a': 'L'
'\ufd9b': 'L'
'\ufd9c': 'L'
'\ufd9d': 'L'
'\ufd9e': 'L'
'\ufd9f': 'L'
'\ufda0': 'L'
'\ufda1': 'L'
'\ufda2': 'L'
'\ufda3': 'L'
'\ufda4': 'L'
'\ufda5': 'L'
'\ufda6': 'L'
'\ufda7': 'L'
'\ufda8': 'L'
'\ufda9': 'L'
'\ufdaa': 'L'
'\ufdab': 'L'
'\ufdac': 'L'
'\ufdad': 'L'
'\ufdae': 'L'
'\ufdaf': 'L'
'\ufdb0': 'L'
'\ufdb1': 'L'
'\ufdb2': 'L'
'\ufdb3': 'L'
'\ufdb4': 'L'
'\ufdb5': 'L'
'\ufdb6': 'L'
'\ufdb7': 'L'
'\ufdb8': 'L'
'\ufdb9': 'L'
'\ufdba': 'L'
'\ufdbb': 'L'
'\ufdbc': 'L'
'\ufdbd': 'L'
'\ufdbe': 'L'
'\ufdbf': 'L'
'\ufdc0': 'L'
'\ufdc1': 'L'
'\ufdc2': 'L'
'\ufdc3': 'L'
'\ufdc4': 'L'
'\ufdc5': 'L'
'\ufdc6': 'L'
'\ufdc7': 'L'
'\ufdf0': 'L'
'\ufdf1': 'L'
'\ufdf2': 'L'
'\ufdf3': 'L'
'\ufdf4': 'L'
'\ufdf5': 'L'
'\ufdf6': 'L'
'\ufdf7': 'L'
'\ufdf8': 'L'
'\ufdf9': 'L'
'\ufdfa': 'L'
'\ufdfb': 'L'
'\ufe70': 'L'
'\ufe71': 'L'
'\ufe72': 'L'
'\ufe73': 'L'
'\ufe74': 'L'
'\ufe76': 'L'
'\ufe77': 'L'
'\ufe78': 'L'
'\ufe79': 'L'
'\ufe7a': 'L'
'\ufe7b': 'L'
'\ufe7c': 'L'
'\ufe7d': 'L'
'\ufe7e': 'L'
'\ufe7f': 'L'
'\ufe80': 'L'
'\ufe81': 'L'
'\ufe82': 'L'
'\ufe83': 'L'
'\ufe84': 'L'
'\ufe85': 'L'
'\ufe86': 'L'
'\ufe87': 'L'
'\ufe88': 'L'
'\ufe89': 'L'
'\ufe8a': 'L'
'\ufe8b': 'L'
'\ufe8c': 'L'
'\ufe8d': 'L'
'\ufe8e': 'L'
'\ufe8f': 'L'
'\ufe90': 'L'
'\ufe91': 'L'
'\ufe92': 'L'
'\ufe93': 'L'
'\ufe94': 'L'
'\ufe95': 'L'
'\ufe96': 'L'
'\ufe97': 'L'
'\ufe98': 'L'
'\ufe99': 'L'
'\ufe9a': 'L'
'\ufe9b': 'L'
'\ufe9c': 'L'
'\ufe9d': 'L'
'\ufe9e': 'L'
'\ufe9f': 'L'
'\ufea0': 'L'
'\ufea1': 'L'
'\ufea2': 'L'
'\ufea3': 'L'
'\ufea4': 'L'
'\ufea5': 'L'
'\ufea6': 'L'
'\ufea7': 'L'
'\ufea8': 'L'
'\ufea9': 'L'
'\ufeaa': 'L'
'\ufeab': 'L'
'\ufeac': 'L'
'\ufead': 'L'
'\ufeae': 'L'
'\ufeaf': 'L'
'\ufeb0': 'L'
'\ufeb1': 'L'
'\ufeb2': 'L'
'\ufeb3': 'L'
'\ufeb4': 'L'
'\ufeb5': 'L'
'\ufeb6': 'L'
'\ufeb7': 'L'
'\ufeb8': 'L'
'\ufeb9': 'L'
'\ufeba': 'L'
'\ufebb': 'L'
'\ufebc': 'L'
'\ufebd': 'L'
'\ufebe': 'L'
'\ufebf': 'L'
'\ufec0': 'L'
'\ufec1': 'L'
'\ufec2': 'L'
'\ufec3': 'L'
'\ufec4': 'L'
'\ufec5': 'L'
'\ufec6': 'L'
'\ufec7': 'L'
'\ufec8': 'L'
'\ufec9': 'L'
'\ufeca': 'L'
'\ufecb': 'L'
'\ufecc': 'L'
'\ufecd': 'L'
'\ufece': 'L'
'\ufecf': 'L'
'\ufed0': 'L'
'\ufed1': 'L'
'\ufed2': 'L'
'\ufed3': 'L'
'\ufed4': 'L'
'\ufed5': 'L'
'\ufed6': 'L'
'\ufed7': 'L'
'\ufed8': 'L'
'\ufed9': 'L'
'\ufeda': 'L'
'\ufedb': 'L'
'\ufedc': 'L'
'\ufedd': 'L'
'\ufede': 'L'
'\ufedf': 'L'
'\ufee0': 'L'
'\ufee1': 'L'
'\ufee2': 'L'
'\ufee3': 'L'
'\ufee4': 'L'
'\ufee5': 'L'
'\ufee6': 'L'
'\ufee7': 'L'
'\ufee8': 'L'
'\ufee9': 'L'
'\ufeea': 'L'
'\ufeeb': 'L'
'\ufeec': 'L'
'\ufeed': 'L'
'\ufeee': 'L'
'\ufeef': 'L'
'\ufef0': 'L'
'\ufef1': 'L'
'\ufef2': 'L'
'\ufef3': 'L'
'\ufef4': 'L'
'\ufef5': 'L'
'\ufef6': 'L'
'\ufef7': 'L'
'\ufef8': 'L'
'\ufef9': 'L'
'\ufefa': 'L'
'\ufefb': 'L'
'\ufefc': 'L'
'\uff10': 'N'
'\uff11': 'N'
'\uff12': 'N'
'\uff13': 'N'
'\uff14': 'N'
'\uff15': 'N'
'\uff16': 'N'
'\uff17': 'N'
'\uff18': 'N'
'\uff19': 'N'
'\uff21': 'Lu'
'\uff22': 'Lu'
'\uff23': 'Lu'
'\uff24': 'Lu'
'\uff25': 'Lu'
'\uff26': 'Lu'
'\uff27': 'Lu'
'\uff28': 'Lu'
'\uff29': 'Lu'
'\uff2a': 'Lu'
'\uff2b': 'Lu'
'\uff2c': 'Lu'
'\uff2d': 'Lu'
'\uff2e': 'Lu'
'\uff2f': 'Lu'
'\uff30': 'Lu'
'\uff31': 'Lu'
'\uff32': 'Lu'
'\uff33': 'Lu'
'\uff34': 'Lu'
'\uff35': 'Lu'
'\uff36': 'Lu'
'\uff37': 'Lu'
'\uff38': 'Lu'
'\uff39': 'Lu'
'\uff3a': 'Lu'
'\uff41': 'L'
'\uff42': 'L'
'\uff43': 'L'
'\uff44': 'L'
'\uff45': 'L'
'\uff46': 'L'
'\uff47': 'L'
'\uff48': 'L'
'\uff49': 'L'
'\uff4a': 'L'
'\uff4b': 'L'
'\uff4c': 'L'
'\uff4d': 'L'
'\uff4e': 'L'
'\uff4f': 'L'
'\uff50': 'L'
'\uff51': 'L'
'\uff52': 'L'
'\uff53': 'L'
'\uff54': 'L'
'\uff55': 'L'
'\uff56': 'L'
'\uff57': 'L'
'\uff58': 'L'
'\uff59': 'L'
'\uff5a': 'L'
'\uff66': 'L'
'\uff67': 'L'
'\uff68': 'L'
'\uff69': 'L'
'\uff6a': 'L'
'\uff6b': 'L'
'\uff6c': 'L'
'\uff6d': 'L'
'\uff6e': 'L'
'\uff6f': 'L'
'\uff70': 'L'
'\uff71': 'L'
'\uff72': 'L'
'\uff73': 'L'
'\uff74': 'L'
'\uff75': 'L'
'\uff76': 'L'
'\uff77': 'L'
'\uff78': 'L'
'\uff79': 'L'
'\uff7a': 'L'
'\uff7b': 'L'
'\uff7c': 'L'
'\uff7d': 'L'
'\uff7e': 'L'
'\uff7f': 'L'
'\uff80': 'L'
'\uff81': 'L'
'\uff82': 'L'
'\uff83': 'L'
'\uff84': 'L'
'\uff85': 'L'
'\uff86': 'L'
'\uff87': 'L'
'\uff88': 'L'
'\uff89': 'L'
'\uff8a': 'L'
'\uff8b': 'L'
'\uff8c': 'L'
'\uff8d': 'L'
'\uff8e': 'L'
'\uff8f': 'L'
'\uff90': 'L'
'\uff91': 'L'
'\uff92': 'L'
'\uff93': 'L'
'\uff94': 'L'
'\uff95': 'L'
'\uff96': 'L'
'\uff97': 'L'
'\uff98': 'L'
'\uff99': 'L'
'\uff9a': 'L'
'\uff9b': 'L'
'\uff9c': 'L'
'\uff9d': 'L'
'\uff9e': 'L'
'\uff9f': 'L'
'\uffa0': 'L'
'\uffa1': 'L'
'\uffa2': 'L'
'\uffa3': 'L'
'\uffa4': 'L'
'\uffa5': 'L'
'\uffa6': 'L'
'\uffa7': 'L'
'\uffa8': 'L'
'\uffa9': 'L'
'\uffaa': 'L'
'\uffab': 'L'
'\uffac': 'L'
'\uffad': 'L'
'\uffae': 'L'
'\uffaf': 'L'
'\uffb0': 'L'
'\uffb1': 'L'
'\uffb2': 'L'
'\uffb3': 'L'
'\uffb4': 'L'
'\uffb5': 'L'
'\uffb6': 'L'
'\uffb7': 'L'
'\uffb8': 'L'
'\uffb9': 'L'
'\uffba': 'L'
'\uffbb': 'L'
'\uffbc': 'L'
'\uffbd': 'L'
'\uffbe': 'L'
'\uffc2': 'L'
'\uffc3': 'L'
'\uffc4': 'L'
'\uffc5': 'L'
'\uffc6': 'L'
'\uffc7': 'L'
'\uffca': 'L'
'\uffcb': 'L'
'\uffcc': 'L'
'\uffcd': 'L'
'\uffce': 'L'
'\uffcf': 'L'
'\uffd2': 'L'
'\uffd3': 'L'
'\uffd4': 'L'
'\uffd5': 'L'
'\uffd6': 'L'
'\uffd7': 'L'
'\uffda': 'L'
'\uffdb': 'L'
'\uffdc': 'L'
'\ud800\udc00': 'L'
'\ud800\udc01': 'L'
'\ud800\udc02': 'L'
'\ud800\udc03': 'L'
'\ud800\udc04': 'L'
'\ud800\udc05': 'L'
'\ud800\udc06': 'L'
'\ud800\udc07': 'L'
'\ud800\udc08': 'L'
'\ud800\udc09': 'L'
'\ud800\udc0a': 'L'
'\ud800\udc0b': 'L'
'\ud800\udc0d': 'L'
'\ud800\udc0e': 'L'
'\ud800\udc0f': 'L'
'\ud800\udc10': 'L'
'\ud800\udc11': 'L'
'\ud800\udc12': 'L'
'\ud800\udc13': 'L'
'\ud800\udc14': 'L'
'\ud800\udc15': 'L'
'\ud800\udc16': 'L'
'\ud800\udc17': 'L'
'\ud800\udc18': 'L'
'\ud800\udc19': 'L'
'\ud800\udc1a': 'L'
'\ud800\udc1b': 'L'
'\ud800\udc1c': 'L'
'\ud800\udc1d': 'L'
'\ud800\udc1e': 'L'
'\ud800\udc1f': 'L'
'\ud800\udc20': 'L'
'\ud800\udc21': 'L'
'\ud800\udc22': 'L'
'\ud800\udc23': 'L'
'\ud800\udc24': 'L'
'\ud800\udc25': 'L'
'\ud800\udc26': 'L'
'\ud800\udc28': 'L'
'\ud800\udc29': 'L'
'\ud800\udc2a': 'L'
'\ud800\udc2b': 'L'
'\ud800\udc2c': 'L'
'\ud800\udc2d': 'L'
'\ud800\udc2e': 'L'
'\ud800\udc2f': 'L'
'\ud800\udc30': 'L'
'\ud800\udc31': 'L'
'\ud800\udc32': 'L'
'\ud800\udc33': 'L'
'\ud800\udc34': 'L'
'\ud800\udc35': 'L'
'\ud800\udc36': 'L'
'\ud800\udc37': 'L'
'\ud800\udc38': 'L'
'\ud800\udc39': 'L'
'\ud800\udc3a': 'L'
'\ud800\udc3c': 'L'
'\ud800\udc3d': 'L'
'\ud800\udc3f': 'L'
'\ud800\udc40': 'L'
'\ud800\udc41': 'L'
'\ud800\udc42': 'L'
'\ud800\udc43': 'L'
'\ud800\udc44': 'L'
'\ud800\udc45': 'L'
'\ud800\udc46': 'L'
'\ud800\udc47': 'L'
'\ud800\udc48': 'L'
'\ud800\udc49': 'L'
'\ud800\udc4a': 'L'
'\ud800\udc4b': 'L'
'\ud800\udc4c': 'L'
'\ud800\udc4d': 'L'
'\ud800\udc50': 'L'
'\ud800\udc51': 'L'
'\ud800\udc52': 'L'
'\ud800\udc53': 'L'
'\ud800\udc54': 'L'
'\ud800\udc55': 'L'
'\ud800\udc56': 'L'
'\ud800\udc57': 'L'
'\ud800\udc58': 'L'
'\ud800\udc59': 'L'
'\ud800\udc5a': 'L'
'\ud800\udc5b': 'L'
'\ud800\udc5c': 'L'
'\ud800\udc5d': 'L'
'\ud800\udc80': 'L'
'\ud800\udc81': 'L'
'\ud800\udc82': 'L'
'\ud800\udc83': 'L'
'\ud800\udc84': 'L'
'\ud800\udc85': 'L'
'\ud800\udc86': 'L'
'\ud800\udc87': 'L'
'\ud800\udc88': 'L'
'\ud800\udc89': 'L'
'\ud800\udc8a': 'L'
'\ud800\udc8b': 'L'
'\ud800\udc8c': 'L'
'\ud800\udc8d': 'L'
'\ud800\udc8e': 'L'
'\ud800\udc8f': 'L'
'\ud800\udc90': 'L'
'\ud800\udc91': 'L'
'\ud800\udc92': 'L'
'\ud800\udc93': 'L'
'\ud800\udc94': 'L'
'\ud800\udc95': 'L'
'\ud800\udc96': 'L'
'\ud800\udc97': 'L'
'\ud800\udc98': 'L'
'\ud800\udc99': 'L'
'\ud800\udc9a': 'L'
'\ud800\udc9b': 'L'
'\ud800\udc9c': 'L'
'\ud800\udc9d': 'L'
'\ud800\udc9e': 'L'
'\ud800\udc9f': 'L'
'\ud800\udca0': 'L'
'\ud800\udca1': 'L'
'\ud800\udca2': 'L'
'\ud800\udca3': 'L'
'\ud800\udca4': 'L'
'\ud800\udca5': 'L'
'\ud800\udca6': 'L'
'\ud800\udca7': 'L'
'\ud800\udca8': 'L'
'\ud800\udca9': 'L'
'\ud800\udcaa': 'L'
'\ud800\udcab': 'L'
'\ud800\udcac': 'L'
'\ud800\udcad': 'L'
'\ud800\udcae': 'L'
'\ud800\udcaf': 'L'
'\ud800\udcb0': 'L'
'\ud800\udcb1': 'L'
'\ud800\udcb2': 'L'
'\ud800\udcb3': 'L'
'\ud800\udcb4': 'L'
'\ud800\udcb5': 'L'
'\ud800\udcb6': 'L'
'\ud800\udcb7': 'L'
'\ud800\udcb8': 'L'
'\ud800\udcb9': 'L'
'\ud800\udcba': 'L'
'\ud800\udcbb': 'L'
'\ud800\udcbc': 'L'
'\ud800\udcbd': 'L'
'\ud800\udcbe': 'L'
'\ud800\udcbf': 'L'
'\ud800\udcc0': 'L'
'\ud800\udcc1': 'L'
'\ud800\udcc2': 'L'
'\ud800\udcc3': 'L'
'\ud800\udcc4': 'L'
'\ud800\udcc5': 'L'
'\ud800\udcc6': 'L'
'\ud800\udcc7': 'L'
'\ud800\udcc8': 'L'
'\ud800\udcc9': 'L'
'\ud800\udcca': 'L'
'\ud800\udccb': 'L'
'\ud800\udccc': 'L'
'\ud800\udccd': 'L'
'\ud800\udcce': 'L'
'\ud800\udccf': 'L'
'\ud800\udcd0': 'L'
'\ud800\udcd1': 'L'
'\ud800\udcd2': 'L'
'\ud800\udcd3': 'L'
'\ud800\udcd4': 'L'
'\ud800\udcd5': 'L'
'\ud800\udcd6': 'L'
'\ud800\udcd7': 'L'
'\ud800\udcd8': 'L'
'\ud800\udcd9': 'L'
'\ud800\udcda': 'L'
'\ud800\udcdb': 'L'
'\ud800\udcdc': 'L'
'\ud800\udcdd': 'L'
'\ud800\udcde': 'L'
'\ud800\udcdf': 'L'
'\ud800\udce0': 'L'
'\ud800\udce1': 'L'
'\ud800\udce2': 'L'
'\ud800\udce3': 'L'
'\ud800\udce4': 'L'
'\ud800\udce5': 'L'
'\ud800\udce6': 'L'
'\ud800\udce7': 'L'
'\ud800\udce8': 'L'
'\ud800\udce9': 'L'
'\ud800\udcea': 'L'
'\ud800\udceb': 'L'
'\ud800\udcec': 'L'
'\ud800\udced': 'L'
'\ud800\udcee': 'L'
'\ud800\udcef': 'L'
'\ud800\udcf0': 'L'
'\ud800\udcf1': 'L'
'\ud800\udcf2': 'L'
'\ud800\udcf3': 'L'
'\ud800\udcf4': 'L'
'\ud800\udcf5': 'L'
'\ud800\udcf6': 'L'
'\ud800\udcf7': 'L'
'\ud800\udcf8': 'L'
'\ud800\udcf9': 'L'
'\ud800\udcfa': 'L'
'\ud800\udd07': 'N'
'\ud800\udd08': 'N'
'\ud800\udd09': 'N'
'\ud800\udd0a': 'N'
'\ud800\udd0b': 'N'
'\ud800\udd0c': 'N'
'\ud800\udd0d': 'N'
'\ud800\udd0e': 'N'
'\ud800\udd0f': 'N'
'\ud800\udd10': 'N'
'\ud800\udd11': 'N'
'\ud800\udd12': 'N'
'\ud800\udd13': 'N'
'\ud800\udd14': 'N'
'\ud800\udd15': 'N'
'\ud800\udd16': 'N'
'\ud800\udd17': 'N'
'\ud800\udd18': 'N'
'\ud800\udd19': 'N'
'\ud800\udd1a': 'N'
'\ud800\udd1b': 'N'
'\ud800\udd1c': 'N'
'\ud800\udd1d': 'N'
'\ud800\udd1e': 'N'
'\ud800\udd1f': 'N'
'\ud800\udd20': 'N'
'\ud800\udd21': 'N'
'\ud800\udd22': 'N'
'\ud800\udd23': 'N'
'\ud800\udd24': 'N'
'\ud800\udd25': 'N'
'\ud800\udd26': 'N'
'\ud800\udd27': 'N'
'\ud800\udd28': 'N'
'\ud800\udd29': 'N'
'\ud800\udd2a': 'N'
'\ud800\udd2b': 'N'
'\ud800\udd2c': 'N'
'\ud800\udd2d': 'N'
'\ud800\udd2e': 'N'
'\ud800\udd2f': 'N'
'\ud800\udd30': 'N'
'\ud800\udd31': 'N'
'\ud800\udd32': 'N'
'\ud800\udd33': 'N'
'\ud800\udd40': 'N'
'\ud800\udd41': 'N'
'\ud800\udd42': 'N'
'\ud800\udd43': 'N'
'\ud800\udd44': 'N'
'\ud800\udd45': 'N'
'\ud800\udd46': 'N'
'\ud800\udd47': 'N'
'\ud800\udd48': 'N'
'\ud800\udd49': 'N'
'\ud800\udd4a': 'N'
'\ud800\udd4b': 'N'
'\ud800\udd4c': 'N'
'\ud800\udd4d': 'N'
'\ud800\udd4e': 'N'
'\ud800\udd4f': 'N'
'\ud800\udd50': 'N'
'\ud800\udd51': 'N'
'\ud800\udd52': 'N'
'\ud800\udd53': 'N'
'\ud800\udd54': 'N'
'\ud800\udd55': 'N'
'\ud800\udd56': 'N'
'\ud800\udd57': 'N'
'\ud800\udd58': 'N'
'\ud800\udd59': 'N'
'\ud800\udd5a': 'N'
'\ud800\udd5b': 'N'
'\ud800\udd5c': 'N'
'\ud800\udd5d': 'N'
'\ud800\udd5e': 'N'
'\ud800\udd5f': 'N'
'\ud800\udd60': 'N'
'\ud800\udd61': 'N'
'\ud800\udd62': 'N'
'\ud800\udd63': 'N'
'\ud800\udd64': 'N'
'\ud800\udd65': 'N'
'\ud800\udd66': 'N'
'\ud800\udd67': 'N'
'\ud800\udd68': 'N'
'\ud800\udd69': 'N'
'\ud800\udd6a': 'N'
'\ud800\udd6b': 'N'
'\ud800\udd6c': 'N'
'\ud800\udd6d': 'N'
'\ud800\udd6e': 'N'
'\ud800\udd6f': 'N'
'\ud800\udd70': 'N'
'\ud800\udd71': 'N'
'\ud800\udd72': 'N'
'\ud800\udd73': 'N'
'\ud800\udd74': 'N'
'\ud800\udd75': 'N'
'\ud800\udd76': 'N'
'\ud800\udd77': 'N'
'\ud800\udd78': 'N'
'\ud800\udd8a': 'N'
'\ud800\udd8b': 'N'
'\ud800\ude80': 'L'
'\ud800\ude81': 'L'
'\ud800\ude82': 'L'
'\ud800\ude83': 'L'
'\ud800\ude84': 'L'
'\ud800\ude85': 'L'
'\ud800\ude86': 'L'
'\ud800\ude87': 'L'
'\ud800\ude88': 'L'
'\ud800\ude89': 'L'
'\ud800\ude8a': 'L'
'\ud800\ude8b': 'L'
'\ud800\ude8c': 'L'
'\ud800\ude8d': 'L'
'\ud800\ude8e': 'L'
'\ud800\ude8f': 'L'
'\ud800\ude90': 'L'
'\ud800\ude91': 'L'
'\ud800\ude92': 'L'
'\ud800\ude93': 'L'
'\ud800\ude94': 'L'
'\ud800\ude95': 'L'
'\ud800\ude96': 'L'
'\ud800\ude97': 'L'
'\ud800\ude98': 'L'
'\ud800\ude99': 'L'
'\ud800\ude9a': 'L'
'\ud800\ude9b': 'L'
'\ud800\ude9c': 'L'
'\ud800\udea0': 'L'
'\ud800\udea1': 'L'
'\ud800\udea2': 'L'
'\ud800\udea3': 'L'
'\ud800\udea4': 'L'
'\ud800\udea5': 'L'
'\ud800\udea6': 'L'
'\ud800\udea7': 'L'
'\ud800\udea8': 'L'
'\ud800\udea9': 'L'
'\ud800\udeaa': 'L'
'\ud800\udeab': 'L'
'\ud800\udeac': 'L'
'\ud800\udead': 'L'
'\ud800\udeae': 'L'
'\ud800\udeaf': 'L'
'\ud800\udeb0': 'L'
'\ud800\udeb1': 'L'
'\ud800\udeb2': 'L'
'\ud800\udeb3': 'L'
'\ud800\udeb4': 'L'
'\ud800\udeb5': 'L'
'\ud800\udeb6': 'L'
'\ud800\udeb7': 'L'
'\ud800\udeb8': 'L'
'\ud800\udeb9': 'L'
'\ud800\udeba': 'L'
'\ud800\udebb': 'L'
'\ud800\udebc': 'L'
'\ud800\udebd': 'L'
'\ud800\udebe': 'L'
'\ud800\udebf': 'L'
'\ud800\udec0': 'L'
'\ud800\udec1': 'L'
'\ud800\udec2': 'L'
'\ud800\udec3': 'L'
'\ud800\udec4': 'L'
'\ud800\udec5': 'L'
'\ud800\udec6': 'L'
'\ud800\udec7': 'L'
'\ud800\udec8': 'L'
'\ud800\udec9': 'L'
'\ud800\udeca': 'L'
'\ud800\udecb': 'L'
'\ud800\udecc': 'L'
'\ud800\udecd': 'L'
'\ud800\udece': 'L'
'\ud800\udecf': 'L'
'\ud800\uded0': 'L'
'\ud800\udee1': 'N'
'\ud800\udee2': 'N'
'\ud800\udee3': 'N'
'\ud800\udee4': 'N'
'\ud800\udee5': 'N'
'\ud800\udee6': 'N'
'\ud800\udee7': 'N'
'\ud800\udee8': 'N'
'\ud800\udee9': 'N'
'\ud800\udeea': 'N'
'\ud800\udeeb': 'N'
'\ud800\udeec': 'N'
'\ud800\udeed': 'N'
'\ud800\udeee': 'N'
'\ud800\udeef': 'N'
'\ud800\udef0': 'N'
'\ud800\udef1': 'N'
'\ud800\udef2': 'N'
'\ud800\udef3': 'N'
'\ud800\udef4': 'N'
'\ud800\udef5': 'N'
'\ud800\udef6': 'N'
'\ud800\udef7': 'N'
'\ud800\udef8': 'N'
'\ud800\udef9': 'N'
'\ud800\udefa': 'N'
'\ud800\udefb': 'N'
'\ud800\udf00': 'L'
'\ud800\udf01': 'L'
'\ud800\udf02': 'L'
'\ud800\udf03': 'L'
'\ud800\udf04': 'L'
'\ud800\udf05': 'L'
'\ud800\udf06': 'L'
'\ud800\udf07': 'L'
'\ud800\udf08': 'L'
'\ud800\udf09': 'L'
'\ud800\udf0a': 'L'
'\ud800\udf0b': 'L'
'\ud800\udf0c': 'L'
'\ud800\udf0d': 'L'
'\ud800\udf0e': 'L'
'\ud800\udf0f': 'L'
'\ud800\udf10': 'L'
'\ud800\udf11': 'L'
'\ud800\udf12': 'L'
'\ud800\udf13': 'L'
'\ud800\udf14': 'L'
'\ud800\udf15': 'L'
'\ud800\udf16': 'L'
'\ud800\udf17': 'L'
'\ud800\udf18': 'L'
'\ud800\udf19': 'L'
'\ud800\udf1a': 'L'
'\ud800\udf1b': 'L'
'\ud800\udf1c': 'L'
'\ud800\udf1d': 'L'
'\ud800\udf1e': 'L'
'\ud800\udf1f': 'L'
'\ud800\udf20': 'N'
'\ud800\udf21': 'N'
'\ud800\udf22': 'N'
'\ud800\udf23': 'N'
'\ud800\udf30': 'L'
'\ud800\udf31': 'L'
'\ud800\udf32': 'L'
'\ud800\udf33': 'L'
'\ud800\udf34': 'L'
'\ud800\udf35': 'L'
'\ud800\udf36': 'L'
'\ud800\udf37': 'L'
'\ud800\udf38': 'L'
'\ud800\udf39': 'L'
'\ud800\udf3a': 'L'
'\ud800\udf3b': 'L'
'\ud800\udf3c': 'L'
'\ud800\udf3d': 'L'
'\ud800\udf3e': 'L'
'\ud800\udf3f': 'L'
'\ud800\udf40': 'L'
'\ud800\udf41': 'N'
'\ud800\udf42': 'L'
'\ud800\udf43': 'L'
'\ud800\udf44': 'L'
'\ud800\udf45': 'L'
'\ud800\udf46': 'L'
'\ud800\udf47': 'L'
'\ud800\udf48': 'L'
'\ud800\udf49': 'L'
'\ud800\udf4a': 'N'
'\ud800\udf50': 'L'
'\ud800\udf51': 'L'
'\ud800\udf52': 'L'
'\ud800\udf53': 'L'
'\ud800\udf54': 'L'
'\ud800\udf55': 'L'
'\ud800\udf56': 'L'
'\ud800\udf57': 'L'
'\ud800\udf58': 'L'
'\ud800\udf59': 'L'
'\ud800\udf5a': 'L'
'\ud800\udf5b': 'L'
'\ud800\udf5c': 'L'
'\ud800\udf5d': 'L'
'\ud800\udf5e': 'L'
'\ud800\udf5f': 'L'
'\ud800\udf60': 'L'
'\ud800\udf61': 'L'
'\ud800\udf62': 'L'
'\ud800\udf63': 'L'
'\ud800\udf64': 'L'
'\ud800\udf65': 'L'
'\ud800\udf66': 'L'
'\ud800\udf67': 'L'
'\ud800\udf68': 'L'
'\ud800\udf69': 'L'
'\ud800\udf6a': 'L'
'\ud800\udf6b': 'L'
'\ud800\udf6c': 'L'
'\ud800\udf6d': 'L'
'\ud800\udf6e': 'L'
'\ud800\udf6f': 'L'
'\ud800\udf70': 'L'
'\ud800\udf71': 'L'
'\ud800\udf72': 'L'
'\ud800\udf73': 'L'
'\ud800\udf74': 'L'
'\ud800\udf75': 'L'
'\ud800\udf80': 'L'
'\ud800\udf81': 'L'
'\ud800\udf82': 'L'
'\ud800\udf83': 'L'
'\ud800\udf84': 'L'
'\ud800\udf85': 'L'
'\ud800\udf86': 'L'
'\ud800\udf87': 'L'
'\ud800\udf88': 'L'
'\ud800\udf89': 'L'
'\ud800\udf8a': 'L'
'\ud800\udf8b': 'L'
'\ud800\udf8c': 'L'
'\ud800\udf8d': 'L'
'\ud800\udf8e': 'L'
'\ud800\udf8f': 'L'
'\ud800\udf90': 'L'
'\ud800\udf91': 'L'
'\ud800\udf92': 'L'
'\ud800\udf93': 'L'
'\ud800\udf94': 'L'
'\ud800\udf95': 'L'
'\ud800\udf96': 'L'
'\ud800\udf97': 'L'
'\ud800\udf98': 'L'
'\ud800\udf99': 'L'
'\ud800\udf9a': 'L'
'\ud800\udf9b': 'L'
'\ud800\udf9c': 'L'
'\ud800\udf9d': 'L'
'\ud800\udfa0': 'L'
'\ud800\udfa1': 'L'
'\ud800\udfa2': 'L'
'\ud800\udfa3': 'L'
'\ud800\udfa4': 'L'
'\ud800\udfa5': 'L'
'\ud800\udfa6': 'L'
'\ud800\udfa7': 'L'
'\ud800\udfa8': 'L'
'\ud800\udfa9': 'L'
'\ud800\udfaa': 'L'
'\ud800\udfab': 'L'
'\ud800\udfac': 'L'
'\ud800\udfad': 'L'
'\ud800\udfae': 'L'
'\ud800\udfaf': 'L'
'\ud800\udfb0': 'L'
'\ud800\udfb1': 'L'
'\ud800\udfb2': 'L'
'\ud800\udfb3': 'L'
'\ud800\udfb4': 'L'
'\ud800\udfb5': 'L'
'\ud800\udfb6': 'L'
'\ud800\udfb7': 'L'
'\ud800\udfb8': 'L'
'\ud800\udfb9': 'L'
'\ud800\udfba': 'L'
'\ud800\udfbb': 'L'
'\ud800\udfbc': 'L'
'\ud800\udfbd': 'L'
'\ud800\udfbe': 'L'
'\ud800\udfbf': 'L'
'\ud800\udfc0': 'L'
'\ud800\udfc1': 'L'
'\ud800\udfc2': 'L'
'\ud800\udfc3': 'L'
'\ud800\udfc8': 'L'
'\ud800\udfc9': 'L'
'\ud800\udfca': 'L'
'\ud800\udfcb': 'L'
'\ud800\udfcc': 'L'
'\ud800\udfcd': 'L'
'\ud800\udfce': 'L'
'\ud800\udfcf': 'L'
'\ud800\udfd1': 'N'
'\ud800\udfd2': 'N'
'\ud800\udfd3': 'N'
'\ud800\udfd4': 'N'
'\ud800\udfd5': 'N'
'\ud801\udc00': 'Lu'
'\ud801\udc01': 'Lu'
'\ud801\udc02': 'Lu'
'\ud801\udc03': 'Lu'
'\ud801\udc04': 'Lu'
'\ud801\udc05': 'Lu'
'\ud801\udc06': 'Lu'
'\ud801\udc07': 'Lu'
'\ud801\udc08': 'Lu'
'\ud801\udc09': 'Lu'
'\ud801\udc0a': 'Lu'
'\ud801\udc0b': 'Lu'
'\ud801\udc0c': 'Lu'
'\ud801\udc0d': 'Lu'
'\ud801\udc0e': 'Lu'
'\ud801\udc0f': 'Lu'
'\ud801\udc10': 'Lu'
'\ud801\udc11': 'Lu'
'\ud801\udc12': 'Lu'
'\ud801\udc13': 'Lu'
'\ud801\udc14': 'Lu'
'\ud801\udc15': 'Lu'
'\ud801\udc16': 'Lu'
'\ud801\udc17': 'Lu'
'\ud801\udc18': 'Lu'
'\ud801\udc19': 'Lu'
'\ud801\udc1a': 'Lu'
'\ud801\udc1b': 'Lu'
'\ud801\udc1c': 'Lu'
'\ud801\udc1d': 'Lu'
'\ud801\udc1e': 'Lu'
'\ud801\udc1f': 'Lu'
'\ud801\udc20': 'Lu'
'\ud801\udc21': 'Lu'
'\ud801\udc22': 'Lu'
'\ud801\udc23': 'Lu'
'\ud801\udc24': 'Lu'
'\ud801\udc25': 'Lu'
'\ud801\udc26': 'Lu'
'\ud801\udc27': 'Lu'
'\ud801\udc28': 'L'
'\ud801\udc29': 'L'
'\ud801\udc2a': 'L'
'\ud801\udc2b': 'L'
'\ud801\udc2c': 'L'
'\ud801\udc2d': 'L'
'\ud801\udc2e': 'L'
'\ud801\udc2f': 'L'
'\ud801\udc30': 'L'
'\ud801\udc31': 'L'
'\ud801\udc32': 'L'
'\ud801\udc33': 'L'
'\ud801\udc34': 'L'
'\ud801\udc35': 'L'
'\ud801\udc36': 'L'
'\ud801\udc37': 'L'
'\ud801\udc38': 'L'
'\ud801\udc39': 'L'
'\ud801\udc3a': 'L'
'\ud801\udc3b': 'L'
'\ud801\udc3c': 'L'
'\ud801\udc3d': 'L'
'\ud801\udc3e': 'L'
'\ud801\udc3f': 'L'
'\ud801\udc40': 'L'
'\ud801\udc41': 'L'
'\ud801\udc42': 'L'
'\ud801\udc43': 'L'
'\ud801\udc44': 'L'
'\ud801\udc45': 'L'
'\ud801\udc46': 'L'
'\ud801\udc47': 'L'
'\ud801\udc48': 'L'
'\ud801\udc49': 'L'
'\ud801\udc4a': 'L'
'\ud801\udc4b': 'L'
'\ud801\udc4c': 'L'
'\ud801\udc4d': 'L'
'\ud801\udc4e': 'L'
'\ud801\udc4f': 'L'
'\ud801\udc50': 'L'
'\ud801\udc51': 'L'
'\ud801\udc52': 'L'
'\ud801\udc53': 'L'
'\ud801\udc54': 'L'
'\ud801\udc55': 'L'
'\ud801\udc56': 'L'
'\ud801\udc57': 'L'
'\ud801\udc58': 'L'
'\ud801\udc59': 'L'
'\ud801\udc5a': 'L'
'\ud801\udc5b': 'L'
'\ud801\udc5c': 'L'
'\ud801\udc5d': 'L'
'\ud801\udc5e': 'L'
'\ud801\udc5f': 'L'
'\ud801\udc60': 'L'
'\ud801\udc61': 'L'
'\ud801\udc62': 'L'
'\ud801\udc63': 'L'
'\ud801\udc64': 'L'
'\ud801\udc65': 'L'
'\ud801\udc66': 'L'
'\ud801\udc67': 'L'
'\ud801\udc68': 'L'
'\ud801\udc69': 'L'
'\ud801\udc6a': 'L'
'\ud801\udc6b': 'L'
'\ud801\udc6c': 'L'
'\ud801\udc6d': 'L'
'\ud801\udc6e': 'L'
'\ud801\udc6f': 'L'
'\ud801\udc70': 'L'
'\ud801\udc71': 'L'
'\ud801\udc72': 'L'
'\ud801\udc73': 'L'
'\ud801\udc74': 'L'
'\ud801\udc75': 'L'
'\ud801\udc76': 'L'
'\ud801\udc77': 'L'
'\ud801\udc78': 'L'
'\ud801\udc79': 'L'
'\ud801\udc7a': 'L'
'\ud801\udc7b': 'L'
'\ud801\udc7c': 'L'
'\ud801\udc7d': 'L'
'\ud801\udc7e': 'L'
'\ud801\udc7f': 'L'
'\ud801\udc80': 'L'
'\ud801\udc81': 'L'
'\ud801\udc82': 'L'
'\ud801\udc83': 'L'
'\ud801\udc84': 'L'
'\ud801\udc85': 'L'
'\ud801\udc86': 'L'
'\ud801\udc87': 'L'
'\ud801\udc88': 'L'
'\ud801\udc89': 'L'
'\ud801\udc8a': 'L'
'\ud801\udc8b': 'L'
'\ud801\udc8c': 'L'
'\ud801\udc8d': 'L'
'\ud801\udc8e': 'L'
'\ud801\udc8f': 'L'
'\ud801\udc90': 'L'
'\ud801\udc91': 'L'
'\ud801\udc92': 'L'
'\ud801\udc93': 'L'
'\ud801\udc94': 'L'
'\ud801\udc95': 'L'
'\ud801\udc96': 'L'
'\ud801\udc97': 'L'
'\ud801\udc98': 'L'
'\ud801\udc99': 'L'
'\ud801\udc9a': 'L'
'\ud801\udc9b': 'L'
'\ud801\udc9c': 'L'
'\ud801\udc9d': 'L'
'\ud801\udca0': 'N'
'\ud801\udca1': 'N'
'\ud801\udca2': 'N'
'\ud801\udca3': 'N'
'\ud801\udca4': 'N'
'\ud801\udca5': 'N'
'\ud801\udca6': 'N'
'\ud801\udca7': 'N'
'\ud801\udca8': 'N'
'\ud801\udca9': 'N'
'\ud801\udd00': 'L'
'\ud801\udd01': 'L'
'\ud801\udd02': 'L'
'\ud801\udd03': 'L'
'\ud801\udd04': 'L'
'\ud801\udd05': 'L'
'\ud801\udd06': 'L'
'\ud801\udd07': 'L'
'\ud801\udd08': 'L'
'\ud801\udd09': 'L'
'\ud801\udd0a': 'L'
'\ud801\udd0b': 'L'
'\ud801\udd0c': 'L'
'\ud801\udd0d': 'L'
'\ud801\udd0e': 'L'
'\ud801\udd0f': 'L'
'\ud801\udd10': 'L'
'\ud801\udd11': 'L'
'\ud801\udd12': 'L'
'\ud801\udd13': 'L'
'\ud801\udd14': 'L'
'\ud801\udd15': 'L'
'\ud801\udd16': 'L'
'\ud801\udd17': 'L'
'\ud801\udd18': 'L'
'\ud801\udd19': 'L'
'\ud801\udd1a': 'L'
'\ud801\udd1b': 'L'
'\ud801\udd1c': 'L'
'\ud801\udd1d': 'L'
'\ud801\udd1e': 'L'
'\ud801\udd1f': 'L'
'\ud801\udd20': 'L'
'\ud801\udd21': 'L'
'\ud801\udd22': 'L'
'\ud801\udd23': 'L'
'\ud801\udd24': 'L'
'\ud801\udd25': 'L'
'\ud801\udd26': 'L'
'\ud801\udd27': 'L'
'\ud801\udd30': 'L'
'\ud801\udd31': 'L'
'\ud801\udd32': 'L'
'\ud801\udd33': 'L'
'\ud801\udd34': 'L'
'\ud801\udd35': 'L'
'\ud801\udd36': 'L'
'\ud801\udd37': 'L'
'\ud801\udd38': 'L'
'\ud801\udd39': 'L'
'\ud801\udd3a': 'L'
'\ud801\udd3b': 'L'
'\ud801\udd3c': 'L'
'\ud801\udd3d': 'L'
'\ud801\udd3e': 'L'
'\ud801\udd3f': 'L'
'\ud801\udd40': 'L'
'\ud801\udd41': 'L'
'\ud801\udd42': 'L'
'\ud801\udd43': 'L'
'\ud801\udd44': 'L'
'\ud801\udd45': 'L'
'\ud801\udd46': 'L'
'\ud801\udd47': 'L'
'\ud801\udd48': 'L'
'\ud801\udd49': 'L'
'\ud801\udd4a': 'L'
'\ud801\udd4b': 'L'
'\ud801\udd4c': 'L'
'\ud801\udd4d': 'L'
'\ud801\udd4e': 'L'
'\ud801\udd4f': 'L'
'\ud801\udd50': 'L'
'\ud801\udd51': 'L'
'\ud801\udd52': 'L'
'\ud801\udd53': 'L'
'\ud801\udd54': 'L'
'\ud801\udd55': 'L'
'\ud801\udd56': 'L'
'\ud801\udd57': 'L'
'\ud801\udd58': 'L'
'\ud801\udd59': 'L'
'\ud801\udd5a': 'L'
'\ud801\udd5b': 'L'
'\ud801\udd5c': 'L'
'\ud801\udd5d': 'L'
'\ud801\udd5e': 'L'
'\ud801\udd5f': 'L'
'\ud801\udd60': 'L'
'\ud801\udd61': 'L'
'\ud801\udd62': 'L'
'\ud801\udd63': 'L'
'\ud801\ude00': 'L'
'\ud801\ude01': 'L'
'\ud801\ude02': 'L'
'\ud801\ude03': 'L'
'\ud801\ude04': 'L'
'\ud801\ude05': 'L'
'\ud801\ude06': 'L'
'\ud801\ude07': 'L'
'\ud801\ude08': 'L'
'\ud801\ude09': 'L'
'\ud801\ude0a': 'L'
'\ud801\ude0b': 'L'
'\ud801\ude0c': 'L'
'\ud801\ude0d': 'L'
'\ud801\ude0e': 'L'
'\ud801\ude0f': 'L'
'\ud801\ude10': 'L'
'\ud801\ude11': 'L'
'\ud801\ude12': 'L'
'\ud801\ude13': 'L'
'\ud801\ude14': 'L'
'\ud801\ude15': 'L'
'\ud801\ude16': 'L'
'\ud801\ude17': 'L'
'\ud801\ude18': 'L'
'\ud801\ude19': 'L'
'\ud801\ude1a': 'L'
'\ud801\ude1b': 'L'
'\ud801\ude1c': 'L'
'\ud801\ude1d': 'L'
'\ud801\ude1e': 'L'
'\ud801\ude1f': 'L'
'\ud801\ude20': 'L'
'\ud801\ude21': 'L'
'\ud801\ude22': 'L'
'\ud801\ude23': 'L'
'\ud801\ude24': 'L'
'\ud801\ude25': 'L'
'\ud801\ude26': 'L'
'\ud801\ude27': 'L'
'\ud801\ude28': 'L'
'\ud801\ude29': 'L'
'\ud801\ude2a': 'L'
'\ud801\ude2b': 'L'
'\ud801\ude2c': 'L'
'\ud801\ude2d': 'L'
'\ud801\ude2e': 'L'
'\ud801\ude2f': 'L'
'\ud801\ude30': 'L'
'\ud801\ude31': 'L'
'\ud801\ude32': 'L'
'\ud801\ude33': 'L'
'\ud801\ude34': 'L'
'\ud801\ude35': 'L'
'\ud801\ude36': 'L'
'\ud801\ude37': 'L'
'\ud801\ude38': 'L'
'\ud801\ude39': 'L'
'\ud801\ude3a': 'L'
'\ud801\ude3b': 'L'
'\ud801\ude3c': 'L'
'\ud801\ude3d': 'L'
'\ud801\ude3e': 'L'
'\ud801\ude3f': 'L'
'\ud801\ude40': 'L'
'\ud801\ude41': 'L'
'\ud801\ude42': 'L'
'\ud801\ude43': 'L'
'\ud801\ude44': 'L'
'\ud801\ude45': 'L'
'\ud801\ude46': 'L'
'\ud801\ude47': 'L'
'\ud801\ude48': 'L'
'\ud801\ude49': 'L'
'\ud801\ude4a': 'L'
'\ud801\ude4b': 'L'
'\ud801\ude4c': 'L'
'\ud801\ude4d': 'L'
'\ud801\ude4e': 'L'
'\ud801\ude4f': 'L'
'\ud801\ude50': 'L'
'\ud801\ude51': 'L'
'\ud801\ude52': 'L'
'\ud801\ude53': 'L'
'\ud801\ude54': 'L'
'\ud801\ude55': 'L'
'\ud801\ude56': 'L'
'\ud801\ude57': 'L'
'\ud801\ude58': 'L'
'\ud801\ude59': 'L'
'\ud801\ude5a': 'L'
'\ud801\ude5b': 'L'
'\ud801\ude5c': 'L'
'\ud801\ude5d': 'L'
'\ud801\ude5e': 'L'
'\ud801\ude5f': 'L'
'\ud801\ude60': 'L'
'\ud801\ude61': 'L'
'\ud801\ude62': 'L'
'\ud801\ude63': 'L'
'\ud801\ude64': 'L'
'\ud801\ude65': 'L'
'\ud801\ude66': 'L'
'\ud801\ude67': 'L'
'\ud801\ude68': 'L'
'\ud801\ude69': 'L'
'\ud801\ude6a': 'L'
'\ud801\ude6b': 'L'
'\ud801\ude6c': 'L'
'\ud801\ude6d': 'L'
'\ud801\ude6e': 'L'
'\ud801\ude6f': 'L'
'\ud801\ude70': 'L'
'\ud801\ude71': 'L'
'\ud801\ude72': 'L'
'\ud801\ude73': 'L'
'\ud801\ude74': 'L'
'\ud801\ude75': 'L'
'\ud801\ude76': 'L'
'\ud801\ude77': 'L'
'\ud801\ude78': 'L'
'\ud801\ude79': 'L'
'\ud801\ude7a': 'L'
'\ud801\ude7b': 'L'
'\ud801\ude7c': 'L'
'\ud801\ude7d': 'L'
'\ud801\ude7e': 'L'
'\ud801\ude7f': 'L'
'\ud801\ude80': 'L'
'\ud801\ude81': 'L'
'\ud801\ude82': 'L'
'\ud801\ude83': 'L'
'\ud801\ude84': 'L'
'\ud801\ude85': 'L'
'\ud801\ude86': 'L'
'\ud801\ude87': 'L'
'\ud801\ude88': 'L'
'\ud801\ude89': 'L'
'\ud801\ude8a': 'L'
'\ud801\ude8b': 'L'
'\ud801\ude8c': 'L'
'\ud801\ude8d': 'L'
'\ud801\ude8e': 'L'
'\ud801\ude8f': 'L'
'\ud801\ude90': 'L'
'\ud801\ude91': 'L'
'\ud801\ude92': 'L'
'\ud801\ude93': 'L'
'\ud801\ude94': 'L'
'\ud801\ude95': 'L'
'\ud801\ude96': 'L'
'\ud801\ude97': 'L'
'\ud801\ude98': 'L'
'\ud801\ude99': 'L'
'\ud801\ude9a': 'L'
'\ud801\ude9b': 'L'
'\ud801\ude9c': 'L'
'\ud801\ude9d': 'L'
'\ud801\ude9e': 'L'
'\ud801\ude9f': 'L'
'\ud801\udea0': 'L'
'\ud801\udea1': 'L'
'\ud801\udea2': 'L'
'\ud801\udea3': 'L'
'\ud801\udea4': 'L'
'\ud801\udea5': 'L'
'\ud801\udea6': 'L'
'\ud801\udea7': 'L'
'\ud801\udea8': 'L'
'\ud801\udea9': 'L'
'\ud801\udeaa': 'L'
'\ud801\udeab': 'L'
'\ud801\udeac': 'L'
'\ud801\udead': 'L'
'\ud801\udeae': 'L'
'\ud801\udeaf': 'L'
'\ud801\udeb0': 'L'
'\ud801\udeb1': 'L'
'\ud801\udeb2': 'L'
'\ud801\udeb3': 'L'
'\ud801\udeb4': 'L'
'\ud801\udeb5': 'L'
'\ud801\udeb6': 'L'
'\ud801\udeb7': 'L'
'\ud801\udeb8': 'L'
'\ud801\udeb9': 'L'
'\ud801\udeba': 'L'
'\ud801\udebb': 'L'
'\ud801\udebc': 'L'
'\ud801\udebd': 'L'
'\ud801\udebe': 'L'
'\ud801\udebf': 'L'
'\ud801\udec0': 'L'
'\ud801\udec1': 'L'
'\ud801\udec2': 'L'
'\ud801\udec3': 'L'
'\ud801\udec4': 'L'
'\ud801\udec5': 'L'
'\ud801\udec6': 'L'
'\ud801\udec7': 'L'
'\ud801\udec8': 'L'
'\ud801\udec9': 'L'
'\ud801\udeca': 'L'
'\ud801\udecb': 'L'
'\ud801\udecc': 'L'
'\ud801\udecd': 'L'
'\ud801\udece': 'L'
'\ud801\udecf': 'L'
'\ud801\uded0': 'L'
'\ud801\uded1': 'L'
'\ud801\uded2': 'L'
'\ud801\uded3': 'L'
'\ud801\uded4': 'L'
'\ud801\uded5': 'L'
'\ud801\uded6': 'L'
'\ud801\uded7': 'L'
'\ud801\uded8': 'L'
'\ud801\uded9': 'L'
'\ud801\udeda': 'L'
'\ud801\udedb': 'L'
'\ud801\udedc': 'L'
'\ud801\udedd': 'L'
'\ud801\udede': 'L'
'\ud801\udedf': 'L'
'\ud801\udee0': 'L'
'\ud801\udee1': 'L'
'\ud801\udee2': 'L'
'\ud801\udee3': 'L'
'\ud801\udee4': 'L'
'\ud801\udee5': 'L'
'\ud801\udee6': 'L'
'\ud801\udee7': 'L'
'\ud801\udee8': 'L'
'\ud801\udee9': 'L'
'\ud801\udeea': 'L'
'\ud801\udeeb': 'L'
'\ud801\udeec': 'L'
'\ud801\udeed': 'L'
'\ud801\udeee': 'L'
'\ud801\udeef': 'L'
'\ud801\udef0': 'L'
'\ud801\udef1': 'L'
'\ud801\udef2': 'L'
'\ud801\udef3': 'L'
'\ud801\udef4': 'L'
'\ud801\udef5': 'L'
'\ud801\udef6': 'L'
'\ud801\udef7': 'L'
'\ud801\udef8': 'L'
'\ud801\udef9': 'L'
'\ud801\udefa': 'L'
'\ud801\udefb': 'L'
'\ud801\udefc': 'L'
'\ud801\udefd': 'L'
'\ud801\udefe': 'L'
'\ud801\udeff': 'L'
'\ud801\udf00': 'L'
'\ud801\udf01': 'L'
'\ud801\udf02': 'L'
'\ud801\udf03': 'L'
'\ud801\udf04': 'L'
'\ud801\udf05': 'L'
'\ud801\udf06': 'L'
'\ud801\udf07': 'L'
'\ud801\udf08': 'L'
'\ud801\udf09': 'L'
'\ud801\udf0a': 'L'
'\ud801\udf0b': 'L'
'\ud801\udf0c': 'L'
'\ud801\udf0d': 'L'
'\ud801\udf0e': 'L'
'\ud801\udf0f': 'L'
'\ud801\udf10': 'L'
'\ud801\udf11': 'L'
'\ud801\udf12': 'L'
'\ud801\udf13': 'L'
'\ud801\udf14': 'L'
'\ud801\udf15': 'L'
'\ud801\udf16': 'L'
'\ud801\udf17': 'L'
'\ud801\udf18': 'L'
'\ud801\udf19': 'L'
'\ud801\udf1a': 'L'
'\ud801\udf1b': 'L'
'\ud801\udf1c': 'L'
'\ud801\udf1d': 'L'
'\ud801\udf1e': 'L'
'\ud801\udf1f': 'L'
'\ud801\udf20': 'L'
'\ud801\udf21': 'L'
'\ud801\udf22': 'L'
'\ud801\udf23': 'L'
'\ud801\udf24': 'L'
'\ud801\udf25': 'L'
'\ud801\udf26': 'L'
'\ud801\udf27': 'L'
'\ud801\udf28': 'L'
'\ud801\udf29': 'L'
'\ud801\udf2a': 'L'
'\ud801\udf2b': 'L'
'\ud801\udf2c': 'L'
'\ud801\udf2d': 'L'
'\ud801\udf2e': 'L'
'\ud801\udf2f': 'L'
'\ud801\udf30': 'L'
'\ud801\udf31': 'L'
'\ud801\udf32': 'L'
'\ud801\udf33': 'L'
'\ud801\udf34': 'L'
'\ud801\udf35': 'L'
'\ud801\udf36': 'L'
'\ud801\udf40': 'L'
'\ud801\udf41': 'L'
'\ud801\udf42': 'L'
'\ud801\udf43': 'L'
'\ud801\udf44': 'L'
'\ud801\udf45': 'L'
'\ud801\udf46': 'L'
'\ud801\udf47': 'L'
'\ud801\udf48': 'L'
'\ud801\udf49': 'L'
'\ud801\udf4a': 'L'
'\ud801\udf4b': 'L'
'\ud801\udf4c': 'L'
'\ud801\udf4d': 'L'
'\ud801\udf4e': 'L'
'\ud801\udf4f': 'L'
'\ud801\udf50': 'L'
'\ud801\udf51': 'L'
'\ud801\udf52': 'L'
'\ud801\udf53': 'L'
'\ud801\udf54': 'L'
'\ud801\udf55': 'L'
'\ud801\udf60': 'L'
'\ud801\udf61': 'L'
'\ud801\udf62': 'L'
'\ud801\udf63': 'L'
'\ud801\udf64': 'L'
'\ud801\udf65': 'L'
'\ud801\udf66': 'L'
'\ud801\udf67': 'L'
'\ud802\udc00': 'L'
'\ud802\udc01': 'L'
'\ud802\udc02': 'L'
'\ud802\udc03': 'L'
'\ud802\udc04': 'L'
'\ud802\udc05': 'L'
'\ud802\udc08': 'L'
'\ud802\udc0a': 'L'
'\ud802\udc0b': 'L'
'\ud802\udc0c': 'L'
'\ud802\udc0d': 'L'
'\ud802\udc0e': 'L'
'\ud802\udc0f': 'L'
'\ud802\udc10': 'L'
'\ud802\udc11': 'L'
'\ud802\udc12': 'L'
'\ud802\udc13': 'L'
'\ud802\udc14': 'L'
'\ud802\udc15': 'L'
'\ud802\udc16': 'L'
'\ud802\udc17': 'L'
'\ud802\udc18': 'L'
'\ud802\udc19': 'L'
'\ud802\udc1a': 'L'
'\ud802\udc1b': 'L'
'\ud802\udc1c': 'L'
'\ud802\udc1d': 'L'
'\ud802\udc1e': 'L'
'\ud802\udc1f': 'L'
'\ud802\udc20': 'L'
'\ud802\udc21': 'L'
'\ud802\udc22': 'L'
'\ud802\udc23': 'L'
'\ud802\udc24': 'L'
'\ud802\udc25': 'L'
'\ud802\udc26': 'L'
'\ud802\udc27': 'L'
'\ud802\udc28': 'L'
'\ud802\udc29': 'L'
'\ud802\udc2a': 'L'
'\ud802\udc2b': 'L'
'\ud802\udc2c': 'L'
'\ud802\udc2d': 'L'
'\ud802\udc2e': 'L'
'\ud802\udc2f': 'L'
'\ud802\udc30': 'L'
'\ud802\udc31': 'L'
'\ud802\udc32': 'L'
'\ud802\udc33': 'L'
'\ud802\udc34': 'L'
'\ud802\udc35': 'L'
'\ud802\udc37': 'L'
'\ud802\udc38': 'L'
'\ud802\udc3c': 'L'
'\ud802\udc3f': 'L'
'\ud802\udc40': 'L'
'\ud802\udc41': 'L'
'\ud802\udc42': 'L'
'\ud802\udc43': 'L'
'\ud802\udc44': 'L'
'\ud802\udc45': 'L'
'\ud802\udc46': 'L'
'\ud802\udc47': 'L'
'\ud802\udc48': 'L'
'\ud802\udc49': 'L'
'\ud802\udc4a': 'L'
'\ud802\udc4b': 'L'
'\ud802\udc4c': 'L'
'\ud802\udc4d': 'L'
'\ud802\udc4e': 'L'
'\ud802\udc4f': 'L'
'\ud802\udc50': 'L'
'\ud802\udc51': 'L'
'\ud802\udc52': 'L'
'\ud802\udc53': 'L'
'\ud802\udc54': 'L'
'\ud802\udc55': 'L'
'\ud802\udc58': 'N'
'\ud802\udc59': 'N'
'\ud802\udc5a': 'N'
'\ud802\udc5b': 'N'
'\ud802\udc5c': 'N'
'\ud802\udc5d': 'N'
'\ud802\udc5e': 'N'
'\ud802\udc5f': 'N'
'\ud802\udc60': 'L'
'\ud802\udc61': 'L'
'\ud802\udc62': 'L'
'\ud802\udc63': 'L'
'\ud802\udc64': 'L'
'\ud802\udc65': 'L'
'\ud802\udc66': 'L'
'\ud802\udc67': 'L'
'\ud802\udc68': 'L'
'\ud802\udc69': 'L'
'\ud802\udc6a': 'L'
'\ud802\udc6b': 'L'
'\ud802\udc6c': 'L'
'\ud802\udc6d': 'L'
'\ud802\udc6e': 'L'
'\ud802\udc6f': 'L'
'\ud802\udc70': 'L'
'\ud802\udc71': 'L'
'\ud802\udc72': 'L'
'\ud802\udc73': 'L'
'\ud802\udc74': 'L'
'\ud802\udc75': 'L'
'\ud802\udc76': 'L'
'\ud802\udc79': 'N'
'\ud802\udc7a': 'N'
'\ud802\udc7b': 'N'
'\ud802\udc7c': 'N'
'\ud802\udc7d': 'N'
'\ud802\udc7e': 'N'
'\ud802\udc7f': 'N'
'\ud802\udc80': 'L'
'\ud802\udc81': 'L'
'\ud802\udc82': 'L'
'\ud802\udc83': 'L'
'\ud802\udc84': 'L'
'\ud802\udc85': 'L'
'\ud802\udc86': 'L'
'\ud802\udc87': 'L'
'\ud802\udc88': 'L'
'\ud802\udc89': 'L'
'\ud802\udc8a': 'L'
'\ud802\udc8b': 'L'
'\ud802\udc8c': 'L'
'\ud802\udc8d': 'L'
'\ud802\udc8e': 'L'
'\ud802\udc8f': 'L'
'\ud802\udc90': 'L'
'\ud802\udc91': 'L'
'\ud802\udc92': 'L'
'\ud802\udc93': 'L'
'\ud802\udc94': 'L'
'\ud802\udc95': 'L'
'\ud802\udc96': 'L'
'\ud802\udc97': 'L'
'\ud802\udc98': 'L'
'\ud802\udc99': 'L'
'\ud802\udc9a': 'L'
'\ud802\udc9b': 'L'
'\ud802\udc9c': 'L'
'\ud802\udc9d': 'L'
'\ud802\udc9e': 'L'
'\ud802\udca7': 'N'
'\ud802\udca8': 'N'
'\ud802\udca9': 'N'
'\ud802\udcaa': 'N'
'\ud802\udcab': 'N'
'\ud802\udcac': 'N'
'\ud802\udcad': 'N'
'\ud802\udcae': 'N'
'\ud802\udcaf': 'N'
'\ud802\udce0': 'L'
'\ud802\udce1': 'L'
'\ud802\udce2': 'L'
'\ud802\udce3': 'L'
'\ud802\udce4': 'L'
'\ud802\udce5': 'L'
'\ud802\udce6': 'L'
'\ud802\udce7': 'L'
'\ud802\udce8': 'L'
'\ud802\udce9': 'L'
'\ud802\udcea': 'L'
'\ud802\udceb': 'L'
'\ud802\udcec': 'L'
'\ud802\udced': 'L'
'\ud802\udcee': 'L'
'\ud802\udcef': 'L'
'\ud802\udcf0': 'L'
'\ud802\udcf1': 'L'
'\ud802\udcf2': 'L'
'\ud802\udcf4': 'L'
'\ud802\udcf5': 'L'
'\ud802\udcfb': 'N'
'\ud802\udcfc': 'N'
'\ud802\udcfd': 'N'
'\ud802\udcfe': 'N'
'\ud802\udcff': 'N'
'\ud802\udd00': 'L'
'\ud802\udd01': 'L'
'\ud802\udd02': 'L'
'\ud802\udd03': 'L'
'\ud802\udd04': 'L'
'\ud802\udd05': 'L'
'\ud802\udd06': 'L'
'\ud802\udd07': 'L'
'\ud802\udd08': 'L'
'\ud802\udd09': 'L'
'\ud802\udd0a': 'L'
'\ud802\udd0b': 'L'
'\ud802\udd0c': 'L'
'\ud802\udd0d': 'L'
'\ud802\udd0e': 'L'
'\ud802\udd0f': 'L'
'\ud802\udd10': 'L'
'\ud802\udd11': 'L'
'\ud802\udd12': 'L'
'\ud802\udd13': 'L'
'\ud802\udd14': 'L'
'\ud802\udd15': 'L'
'\ud802\udd16': 'N'
'\ud802\udd17': 'N'
'\ud802\udd18': 'N'
'\ud802\udd19': 'N'
'\ud802\udd1a': 'N'
'\ud802\udd1b': 'N'
'\ud802\udd20': 'L'
'\ud802\udd21': 'L'
'\ud802\udd22': 'L'
'\ud802\udd23': 'L'
'\ud802\udd24': 'L'
'\ud802\udd25': 'L'
'\ud802\udd26': 'L'
'\ud802\udd27': 'L'
'\ud802\udd28': 'L'
'\ud802\udd29': 'L'
'\ud802\udd2a': 'L'
'\ud802\udd2b': 'L'
'\ud802\udd2c': 'L'
'\ud802\udd2d': 'L'
'\ud802\udd2e': 'L'
'\ud802\udd2f': 'L'
'\ud802\udd30': 'L'
'\ud802\udd31': 'L'
'\ud802\udd32': 'L'
'\ud802\udd33': 'L'
'\ud802\udd34': 'L'
'\ud802\udd35': 'L'
'\ud802\udd36': 'L'
'\ud802\udd37': 'L'
'\ud802\udd38': 'L'
'\ud802\udd39': 'L'
'\ud802\udd80': 'L'
'\ud802\udd81': 'L'
'\ud802\udd82': 'L'
'\ud802\udd83': 'L'
'\ud802\udd84': 'L'
'\ud802\udd85': 'L'
'\ud802\udd86': 'L'
'\ud802\udd87': 'L'
'\ud802\udd88': 'L'
'\ud802\udd89': 'L'
'\ud802\udd8a': 'L'
'\ud802\udd8b': 'L'
'\ud802\udd8c': 'L'
'\ud802\udd8d': 'L'
'\ud802\udd8e': 'L'
'\ud802\udd8f': 'L'
'\ud802\udd90': 'L'
'\ud802\udd91': 'L'
'\ud802\udd92': 'L'
'\ud802\udd93': 'L'
'\ud802\udd94': 'L'
'\ud802\udd95': 'L'
'\ud802\udd96': 'L'
'\ud802\udd97': 'L'
'\ud802\udd98': 'L'
'\ud802\udd99': 'L'
'\ud802\udd9a': 'L'
'\ud802\udd9b': 'L'
'\ud802\udd9c': 'L'
'\ud802\udd9d': 'L'
'\ud802\udd9e': 'L'
'\ud802\udd9f': 'L'
'\ud802\udda0': 'L'
'\ud802\udda1': 'L'
'\ud802\udda2': 'L'
'\ud802\udda3': 'L'
'\ud802\udda4': 'L'
'\ud802\udda5': 'L'
'\ud802\udda6': 'L'
'\ud802\udda7': 'L'
'\ud802\udda8': 'L'
'\ud802\udda9': 'L'
'\ud802\uddaa': 'L'
'\ud802\uddab': 'L'
'\ud802\uddac': 'L'
'\ud802\uddad': 'L'
'\ud802\uddae': 'L'
'\ud802\uddaf': 'L'
'\ud802\uddb0': 'L'
'\ud802\uddb1': 'L'
'\ud802\uddb2': 'L'
'\ud802\uddb3': 'L'
'\ud802\uddb4': 'L'
'\ud802\uddb5': 'L'
'\ud802\uddb6': 'L'
'\ud802\uddb7': 'L'
'\ud802\uddbc': 'N'
'\ud802\uddbd': 'N'
'\ud802\uddbe': 'L'
'\ud802\uddbf': 'L'
'\ud802\uddc0': 'N'
'\ud802\uddc1': 'N'
'\ud802\uddc2': 'N'
'\ud802\uddc3': 'N'
'\ud802\uddc4': 'N'
'\ud802\uddc5': 'N'
'\ud802\uddc6': 'N'
'\ud802\uddc7': 'N'
'\ud802\uddc8': 'N'
'\ud802\uddc9': 'N'
'\ud802\uddca': 'N'
'\ud802\uddcb': 'N'
'\ud802\uddcc': 'N'
'\ud802\uddcd': 'N'
'\ud802\uddce': 'N'
'\ud802\uddcf': 'N'
'\ud802\uddd2': 'N'
'\ud802\uddd3': 'N'
'\ud802\uddd4': 'N'
'\ud802\uddd5': 'N'
'\ud802\uddd6': 'N'
'\ud802\uddd7': 'N'
'\ud802\uddd8': 'N'
'\ud802\uddd9': 'N'
'\ud802\uddda': 'N'
'\ud802\udddb': 'N'
'\ud802\udddc': 'N'
'\ud802\udddd': 'N'
'\ud802\uddde': 'N'
'\ud802\udddf': 'N'
'\ud802\udde0': 'N'
'\ud802\udde1': 'N'
'\ud802\udde2': 'N'
'\ud802\udde3': 'N'
'\ud802\udde4': 'N'
'\ud802\udde5': 'N'
'\ud802\udde6': 'N'
'\ud802\udde7': 'N'
'\ud802\udde8': 'N'
'\ud802\udde9': 'N'
'\ud802\uddea': 'N'
'\ud802\uddeb': 'N'
'\ud802\uddec': 'N'
'\ud802\udded': 'N'
'\ud802\uddee': 'N'
'\ud802\uddef': 'N'
'\ud802\uddf0': 'N'
'\ud802\uddf1': 'N'
'\ud802\uddf2': 'N'
'\ud802\uddf3': 'N'
'\ud802\uddf4': 'N'
'\ud802\uddf5': 'N'
'\ud802\uddf6': 'N'
'\ud802\uddf7': 'N'
'\ud802\uddf8': 'N'
'\ud802\uddf9': 'N'
'\ud802\uddfa': 'N'
'\ud802\uddfb': 'N'
'\ud802\uddfc': 'N'
'\ud802\uddfd': 'N'
'\ud802\uddfe': 'N'
'\ud802\uddff': 'N'
'\ud802\ude00': 'L'
'\ud802\ude10': 'L'
'\ud802\ude11': 'L'
'\ud802\ude12': 'L'
'\ud802\ude13': 'L'
'\ud802\ude15': 'L'
'\ud802\ude16': 'L'
'\ud802\ude17': 'L'
'\ud802\ude19': 'L'
'\ud802\ude1a': 'L'
'\ud802\ude1b': 'L'
'\ud802\ude1c': 'L'
'\ud802\ude1d': 'L'
'\ud802\ude1e': 'L'
'\ud802\ude1f': 'L'
'\ud802\ude20': 'L'
'\ud802\ude21': 'L'
'\ud802\ude22': 'L'
'\ud802\ude23': 'L'
'\ud802\ude24': 'L'
'\ud802\ude25': 'L'
'\ud802\ude26': 'L'
'\ud802\ude27': 'L'
'\ud802\ude28': 'L'
'\ud802\ude29': 'L'
'\ud802\ude2a': 'L'
'\ud802\ude2b': 'L'
'\ud802\ude2c': 'L'
'\ud802\ude2d': 'L'
'\ud802\ude2e': 'L'
'\ud802\ude2f': 'L'
'\ud802\ude30': 'L'
'\ud802\ude31': 'L'
'\ud802\ude32': 'L'
'\ud802\ude33': 'L'
'\ud802\ude40': 'N'
'\ud802\ude41': 'N'
'\ud802\ude42': 'N'
'\ud802\ude43': 'N'
'\ud802\ude44': 'N'
'\ud802\ude45': 'N'
'\ud802\ude46': 'N'
'\ud802\ude47': 'N'
'\ud802\ude60': 'L'
'\ud802\ude61': 'L'
'\ud802\ude62': 'L'
'\ud802\ude63': 'L'
'\ud802\ude64': 'L'
'\ud802\ude65': 'L'
'\ud802\ude66': 'L'
'\ud802\ude67': 'L'
'\ud802\ude68': 'L'
'\ud802\ude69': 'L'
'\ud802\ude6a': 'L'
'\ud802\ude6b': 'L'
'\ud802\ude6c': 'L'
'\ud802\ude6d': 'L'
'\ud802\ude6e': 'L'
'\ud802\ude6f': 'L'
'\ud802\ude70': 'L'
'\ud802\ude71': 'L'
'\ud802\ude72': 'L'
'\ud802\ude73': 'L'
'\ud802\ude74': 'L'
'\ud802\ude75': 'L'
'\ud802\ude76': 'L'
'\ud802\ude77': 'L'
'\ud802\ude78': 'L'
'\ud802\ude79': 'L'
'\ud802\ude7a': 'L'
'\ud802\ude7b': 'L'
'\ud802\ude7c': 'L'
'\ud802\ude7d': 'N'
'\ud802\ude7e': 'N'
'\ud802\ude80': 'L'
'\ud802\ude81': 'L'
'\ud802\ude82': 'L'
'\ud802\ude83': 'L'
'\ud802\ude84': 'L'
'\ud802\ude85': 'L'
'\ud802\ude86': 'L'
'\ud802\ude87': 'L'
'\ud802\ude88': 'L'
'\ud802\ude89': 'L'
'\ud802\ude8a': 'L'
'\ud802\ude8b': 'L'
'\ud802\ude8c': 'L'
'\ud802\ude8d': 'L'
'\ud802\ude8e': 'L'
'\ud802\ude8f': 'L'
'\ud802\ude90': 'L'
'\ud802\ude91': 'L'
'\ud802\ude92': 'L'
'\ud802\ude93': 'L'
'\ud802\ude94': 'L'
'\ud802\ude95': 'L'
'\ud802\ude96': 'L'
'\ud802\ude97': 'L'
'\ud802\ude98': 'L'
'\ud802\ude99': 'L'
'\ud802\ude9a': 'L'
'\ud802\ude9b': 'L'
'\ud802\ude9c': 'L'
'\ud802\ude9d': 'N'
'\ud802\ude9e': 'N'
'\ud802\ude9f': 'N'
'\ud802\udec0': 'L'
'\ud802\udec1': 'L'
'\ud802\udec2': 'L'
'\ud802\udec3': 'L'
'\ud802\udec4': 'L'
'\ud802\udec5': 'L'
'\ud802\udec6': 'L'
'\ud802\udec7': 'L'
'\ud802\udec9': 'L'
'\ud802\udeca': 'L'
'\ud802\udecb': 'L'
'\ud802\udecc': 'L'
'\ud802\udecd': 'L'
'\ud802\udece': 'L'
'\ud802\udecf': 'L'
'\ud802\uded0': 'L'
'\ud802\uded1': 'L'
'\ud802\uded2': 'L'
'\ud802\uded3': 'L'
'\ud802\uded4': 'L'
'\ud802\uded5': 'L'
'\ud802\uded6': 'L'
'\ud802\uded7': 'L'
'\ud802\uded8': 'L'
'\ud802\uded9': 'L'
'\ud802\udeda': 'L'
'\ud802\udedb': 'L'
'\ud802\udedc': 'L'
'\ud802\udedd': 'L'
'\ud802\udede': 'L'
'\ud802\udedf': 'L'
'\ud802\udee0': 'L'
'\ud802\udee1': 'L'
'\ud802\udee2': 'L'
'\ud802\udee3': 'L'
'\ud802\udee4': 'L'
'\ud802\udeeb': 'N'
'\ud802\udeec': 'N'
'\ud802\udeed': 'N'
'\ud802\udeee': 'N'
'\ud802\udeef': 'N'
'\ud802\udf00': 'L'
'\ud802\udf01': 'L'
'\ud802\udf02': 'L'
'\ud802\udf03': 'L'
'\ud802\udf04': 'L'
'\ud802\udf05': 'L'
'\ud802\udf06': 'L'
'\ud802\udf07': 'L'
'\ud802\udf08': 'L'
'\ud802\udf09': 'L'
'\ud802\udf0a': 'L'
'\ud802\udf0b': 'L'
'\ud802\udf0c': 'L'
'\ud802\udf0d': 'L'
'\ud802\udf0e': 'L'
'\ud802\udf0f': 'L'
'\ud802\udf10': 'L'
'\ud802\udf11': 'L'
'\ud802\udf12': 'L'
'\ud802\udf13': 'L'
'\ud802\udf14': 'L'
'\ud802\udf15': 'L'
'\ud802\udf16': 'L'
'\ud802\udf17': 'L'
'\ud802\udf18': 'L'
'\ud802\udf19': 'L'
'\ud802\udf1a': 'L'
'\ud802\udf1b': 'L'
'\ud802\udf1c': 'L'
'\ud802\udf1d': 'L'
'\ud802\udf1e': 'L'
'\ud802\udf1f': 'L'
'\ud802\udf20': 'L'
'\ud802\udf21': 'L'
'\ud802\udf22': 'L'
'\ud802\udf23': 'L'
'\ud802\udf24': 'L'
'\ud802\udf25': 'L'
'\ud802\udf26': 'L'
'\ud802\udf27': 'L'
'\ud802\udf28': 'L'
'\ud802\udf29': 'L'
'\ud802\udf2a': 'L'
'\ud802\udf2b': 'L'
'\ud802\udf2c': 'L'
'\ud802\udf2d': 'L'
'\ud802\udf2e': 'L'
'\ud802\udf2f': 'L'
'\ud802\udf30': 'L'
'\ud802\udf31': 'L'
'\ud802\udf32': 'L'
'\ud802\udf33': 'L'
'\ud802\udf34': 'L'
'\ud802\udf35': 'L'
'\ud802\udf40': 'L'
'\ud802\udf41': 'L'
'\ud802\udf42': 'L'
'\ud802\udf43': 'L'
'\ud802\udf44': 'L'
'\ud802\udf45': 'L'
'\ud802\udf46': 'L'
'\ud802\udf47': 'L'
'\ud802\udf48': 'L'
'\ud802\udf49': 'L'
'\ud802\udf4a': 'L'
'\ud802\udf4b': 'L'
'\ud802\udf4c': 'L'
'\ud802\udf4d': 'L'
'\ud802\udf4e': 'L'
'\ud802\udf4f': 'L'
'\ud802\udf50': 'L'
'\ud802\udf51': 'L'
'\ud802\udf52': 'L'
'\ud802\udf53': 'L'
'\ud802\udf54': 'L'
'\ud802\udf55': 'L'
'\ud802\udf58': 'N'
'\ud802\udf59': 'N'
'\ud802\udf5a': 'N'
'\ud802\udf5b': 'N'
'\ud802\udf5c': 'N'
'\ud802\udf5d': 'N'
'\ud802\udf5e': 'N'
'\ud802\udf5f': 'N'
'\ud802\udf60': 'L'
'\ud802\udf61': 'L'
'\ud802\udf62': 'L'
'\ud802\udf63': 'L'
'\ud802\udf64': 'L'
'\ud802\udf65': 'L'
'\ud802\udf66': 'L'
'\ud802\udf67': 'L'
'\ud802\udf68': 'L'
'\ud802\udf69': 'L'
'\ud802\udf6a': 'L'
'\ud802\udf6b': 'L'
'\ud802\udf6c': 'L'
'\ud802\udf6d': 'L'
'\ud802\udf6e': 'L'
'\ud802\udf6f': 'L'
'\ud802\udf70': 'L'
'\ud802\udf71': 'L'
'\ud802\udf72': 'L'
'\ud802\udf78': 'N'
'\ud802\udf79': 'N'
'\ud802\udf7a': 'N'
'\ud802\udf7b': 'N'
'\ud802\udf7c': 'N'
'\ud802\udf7d': 'N'
'\ud802\udf7e': 'N'
'\ud802\udf7f': 'N'
'\ud802\udf80': 'L'
'\ud802\udf81': 'L'
'\ud802\udf82': 'L'
'\ud802\udf83': 'L'
'\ud802\udf84': 'L'
'\ud802\udf85': 'L'
'\ud802\udf86': 'L'
'\ud802\udf87': 'L'
'\ud802\udf88': 'L'
'\ud802\udf89': 'L'
'\ud802\udf8a': 'L'
'\ud802\udf8b': 'L'
'\ud802\udf8c': 'L'
'\ud802\udf8d': 'L'
'\ud802\udf8e': 'L'
'\ud802\udf8f': 'L'
'\ud802\udf90': 'L'
'\ud802\udf91': 'L'
'\ud802\udfa9': 'N'
'\ud802\udfaa': 'N'
'\ud802\udfab': 'N'
'\ud802\udfac': 'N'
'\ud802\udfad': 'N'
'\ud802\udfae': 'N'
'\ud802\udfaf': 'N'
'\ud803\udc00': 'L'
'\ud803\udc01': 'L'
'\ud803\udc02': 'L'
'\ud803\udc03': 'L'
'\ud803\udc04': 'L'
'\ud803\udc05': 'L'
'\ud803\udc06': 'L'
'\ud803\udc07': 'L'
'\ud803\udc08': 'L'
'\ud803\udc09': 'L'
'\ud803\udc0a': 'L'
'\ud803\udc0b': 'L'
'\ud803\udc0c': 'L'
'\ud803\udc0d': 'L'
'\ud803\udc0e': 'L'
'\ud803\udc0f': 'L'
'\ud803\udc10': 'L'
'\ud803\udc11': 'L'
'\ud803\udc12': 'L'
'\ud803\udc13': 'L'
'\ud803\udc14': 'L'
'\ud803\udc15': 'L'
'\ud803\udc16': 'L'
'\ud803\udc17': 'L'
'\ud803\udc18': 'L'
'\ud803\udc19': 'L'
'\ud803\udc1a': 'L'
'\ud803\udc1b': 'L'
'\ud803\udc1c': 'L'
'\ud803\udc1d': 'L'
'\ud803\udc1e': 'L'
'\ud803\udc1f': 'L'
'\ud803\udc20': 'L'
'\ud803\udc21': 'L'
'\ud803\udc22': 'L'
'\ud803\udc23': 'L'
'\ud803\udc24': 'L'
'\ud803\udc25': 'L'
'\ud803\udc26': 'L'
'\ud803\udc27': 'L'
'\ud803\udc28': 'L'
'\ud803\udc29': 'L'
'\ud803\udc2a': 'L'
'\ud803\udc2b': 'L'
'\ud803\udc2c': 'L'
'\ud803\udc2d': 'L'
'\ud803\udc2e': 'L'
'\ud803\udc2f': 'L'
'\ud803\udc30': 'L'
'\ud803\udc31': 'L'
'\ud803\udc32': 'L'
'\ud803\udc33': 'L'
'\ud803\udc34': 'L'
'\ud803\udc35': 'L'
'\ud803\udc36': 'L'
'\ud803\udc37': 'L'
'\ud803\udc38': 'L'
'\ud803\udc39': 'L'
'\ud803\udc3a': 'L'
'\ud803\udc3b': 'L'
'\ud803\udc3c': 'L'
'\ud803\udc3d': 'L'
'\ud803\udc3e': 'L'
'\ud803\udc3f': 'L'
'\ud803\udc40': 'L'
'\ud803\udc41': 'L'
'\ud803\udc42': 'L'
'\ud803\udc43': 'L'
'\ud803\udc44': 'L'
'\ud803\udc45': 'L'
'\ud803\udc46': 'L'
'\ud803\udc47': 'L'
'\ud803\udc48': 'L'
'\ud803\udc80': 'Lu'
'\ud803\udc81': 'Lu'
'\ud803\udc82': 'Lu'
'\ud803\udc83': 'Lu'
'\ud803\udc84': 'Lu'
'\ud803\udc85': 'Lu'
'\ud803\udc86': 'Lu'
'\ud803\udc87': 'Lu'
'\ud803\udc88': 'Lu'
'\ud803\udc89': 'Lu'
'\ud803\udc8a': 'Lu'
'\ud803\udc8b': 'Lu'
'\ud803\udc8c': 'Lu'
'\ud803\udc8d': 'Lu'
'\ud803\udc8e': 'Lu'
'\ud803\udc8f': 'Lu'
'\ud803\udc90': 'Lu'
'\ud803\udc91': 'Lu'
'\ud803\udc92': 'Lu'
'\ud803\udc93': 'Lu'
'\ud803\udc94': 'Lu'
'\ud803\udc95': 'Lu'
'\ud803\udc96': 'Lu'
'\ud803\udc97': 'Lu'
'\ud803\udc98': 'Lu'
'\ud803\udc99': 'Lu'
'\ud803\udc9a': 'Lu'
'\ud803\udc9b': 'Lu'
'\ud803\udc9c': 'Lu'
'\ud803\udc9d': 'Lu'
'\ud803\udc9e': 'Lu'
'\ud803\udc9f': 'Lu'
'\ud803\udca0': 'Lu'
'\ud803\udca1': 'Lu'
'\ud803\udca2': 'Lu'
'\ud803\udca3': 'Lu'
'\ud803\udca4': 'Lu'
'\ud803\udca5': 'Lu'
'\ud803\udca6': 'Lu'
'\ud803\udca7': 'Lu'
'\ud803\udca8': 'Lu'
'\ud803\udca9': 'Lu'
'\ud803\udcaa': 'Lu'
'\ud803\udcab': 'Lu'
'\ud803\udcac': 'Lu'
'\ud803\udcad': 'Lu'
'\ud803\udcae': 'Lu'
'\ud803\udcaf': 'Lu'
'\ud803\udcb0': 'Lu'
'\ud803\udcb1': 'Lu'
'\ud803\udcb2': 'Lu'
'\ud803\udcc0': 'L'
'\ud803\udcc1': 'L'
'\ud803\udcc2': 'L'
'\ud803\udcc3': 'L'
'\ud803\udcc4': 'L'
'\ud803\udcc5': 'L'
'\ud803\udcc6': 'L'
'\ud803\udcc7': 'L'
'\ud803\udcc8': 'L'
'\ud803\udcc9': 'L'
'\ud803\udcca': 'L'
'\ud803\udccb': 'L'
'\ud803\udccc': 'L'
'\ud803\udccd': 'L'
'\ud803\udcce': 'L'
'\ud803\udccf': 'L'
'\ud803\udcd0': 'L'
'\ud803\udcd1': 'L'
'\ud803\udcd2': 'L'
'\ud803\udcd3': 'L'
'\ud803\udcd4': 'L'
'\ud803\udcd5': 'L'
'\ud803\udcd6': 'L'
'\ud803\udcd7': 'L'
'\ud803\udcd8': 'L'
'\ud803\udcd9': 'L'
'\ud803\udcda': 'L'
'\ud803\udcdb': 'L'
'\ud803\udcdc': 'L'
'\ud803\udcdd': 'L'
'\ud803\udcde': 'L'
'\ud803\udcdf': 'L'
'\ud803\udce0': 'L'
'\ud803\udce1': 'L'
'\ud803\udce2': 'L'
'\ud803\udce3': 'L'
'\ud803\udce4': 'L'
'\ud803\udce5': 'L'
'\ud803\udce6': 'L'
'\ud803\udce7': 'L'
'\ud803\udce8': 'L'
'\ud803\udce9': 'L'
'\ud803\udcea': 'L'
'\ud803\udceb': 'L'
'\ud803\udcec': 'L'
'\ud803\udced': 'L'
'\ud803\udcee': 'L'
'\ud803\udcef': 'L'
'\ud803\udcf0': 'L'
'\ud803\udcf1': 'L'
'\ud803\udcf2': 'L'
'\ud803\udcfa': 'N'
'\ud803\udcfb': 'N'
'\ud803\udcfc': 'N'
'\ud803\udcfd': 'N'
'\ud803\udcfe': 'N'
'\ud803\udcff': 'N'
'\ud803\ude60': 'N'
'\ud803\ude61': 'N'
'\ud803\ude62': 'N'
'\ud803\ude63': 'N'
'\ud803\ude64': 'N'
'\ud803\ude65': 'N'
'\ud803\ude66': 'N'
'\ud803\ude67': 'N'
'\ud803\ude68': 'N'
'\ud803\ude69': 'N'
'\ud803\ude6a': 'N'
'\ud803\ude6b': 'N'
'\ud803\ude6c': 'N'
'\ud803\ude6d': 'N'
'\ud803\ude6e': 'N'
'\ud803\ude6f': 'N'
'\ud803\ude70': 'N'
'\ud803\ude71': 'N'
'\ud803\ude72': 'N'
'\ud803\ude73': 'N'
'\ud803\ude74': 'N'
'\ud803\ude75': 'N'
'\ud803\ude76': 'N'
'\ud803\ude77': 'N'
'\ud803\ude78': 'N'
'\ud803\ude79': 'N'
'\ud803\ude7a': 'N'
'\ud803\ude7b': 'N'
'\ud803\ude7c': 'N'
'\ud803\ude7d': 'N'
'\ud803\ude7e': 'N'
'\ud804\udc03': 'L'
'\ud804\udc04': 'L'
'\ud804\udc05': 'L'
'\ud804\udc06': 'L'
'\ud804\udc07': 'L'
'\ud804\udc08': 'L'
'\ud804\udc09': 'L'
'\ud804\udc0a': 'L'
'\ud804\udc0b': 'L'
'\ud804\udc0c': 'L'
'\ud804\udc0d': 'L'
'\ud804\udc0e': 'L'
'\ud804\udc0f': 'L'
'\ud804\udc10': 'L'
'\ud804\udc11': 'L'
'\ud804\udc12': 'L'
'\ud804\udc13': 'L'
'\ud804\udc14': 'L'
'\ud804\udc15': 'L'
'\ud804\udc16': 'L'
'\ud804\udc17': 'L'
'\ud804\udc18': 'L'
'\ud804\udc19': 'L'
'\ud804\udc1a': 'L'
'\ud804\udc1b': 'L'
'\ud804\udc1c': 'L'
'\ud804\udc1d': 'L'
'\ud804\udc1e': 'L'
'\ud804\udc1f': 'L'
'\ud804\udc20': 'L'
'\ud804\udc21': 'L'
'\ud804\udc22': 'L'
'\ud804\udc23': 'L'
'\ud804\udc24': 'L'
'\ud804\udc25': 'L'
'\ud804\udc26': 'L'
'\ud804\udc27': 'L'
'\ud804\udc28': 'L'
'\ud804\udc29': 'L'
'\ud804\udc2a': 'L'
'\ud804\udc2b': 'L'
'\ud804\udc2c': 'L'
'\ud804\udc2d': 'L'
'\ud804\udc2e': 'L'
'\ud804\udc2f': 'L'
'\ud804\udc30': 'L'
'\ud804\udc31': 'L'
'\ud804\udc32': 'L'
'\ud804\udc33': 'L'
'\ud804\udc34': 'L'
'\ud804\udc35': 'L'
'\ud804\udc36': 'L'
'\ud804\udc37': 'L'
'\ud804\udc52': 'N'
'\ud804\udc53': 'N'
'\ud804\udc54': 'N'
'\ud804\udc55': 'N'
'\ud804\udc56': 'N'
'\ud804\udc57': 'N'
'\ud804\udc58': 'N'
'\ud804\udc59': 'N'
'\ud804\udc5a': 'N'
'\ud804\udc5b': 'N'
'\ud804\udc5c': 'N'
'\ud804\udc5d': 'N'
'\ud804\udc5e': 'N'
'\ud804\udc5f': 'N'
'\ud804\udc60': 'N'
'\ud804\udc61': 'N'
'\ud804\udc62': 'N'
'\ud804\udc63': 'N'
'\ud804\udc64': 'N'
'\ud804\udc65': 'N'
'\ud804\udc66': 'N'
'\ud804\udc67': 'N'
'\ud804\udc68': 'N'
'\ud804\udc69': 'N'
'\ud804\udc6a': 'N'
'\ud804\udc6b': 'N'
'\ud804\udc6c': 'N'
'\ud804\udc6d': 'N'
'\ud804\udc6e': 'N'
'\ud804\udc6f': 'N'
'\ud804\udc83': 'L'
'\ud804\udc84': 'L'
'\ud804\udc85': 'L'
'\ud804\udc86': 'L'
'\ud804\udc87': 'L'
'\ud804\udc88': 'L'
'\ud804\udc89': 'L'
'\ud804\udc8a': 'L'
'\ud804\udc8b': 'L'
'\ud804\udc8c': 'L'
'\ud804\udc8d': 'L'
'\ud804\udc8e': 'L'
'\ud804\udc8f': 'L'
'\ud804\udc90': 'L'
'\ud804\udc91': 'L'
'\ud804\udc92': 'L'
'\ud804\udc93': 'L'
'\ud804\udc94': 'L'
'\ud804\udc95': 'L'
'\ud804\udc96': 'L'
'\ud804\udc97': 'L'
'\ud804\udc98': 'L'
'\ud804\udc99': 'L'
'\ud804\udc9a': 'L'
'\ud804\udc9b': 'L'
'\ud804\udc9c': 'L'
'\ud804\udc9d': 'L'
'\ud804\udc9e': 'L'
'\ud804\udc9f': 'L'
'\ud804\udca0': 'L'
'\ud804\udca1': 'L'
'\ud804\udca2': 'L'
'\ud804\udca3': 'L'
'\ud804\udca4': 'L'
'\ud804\udca5': 'L'
'\ud804\udca6': 'L'
'\ud804\udca7': 'L'
'\ud804\udca8': 'L'
'\ud804\udca9': 'L'
'\ud804\udcaa': 'L'
'\ud804\udcab': 'L'
'\ud804\udcac': 'L'
'\ud804\udcad': 'L'
'\ud804\udcae': 'L'
'\ud804\udcaf': 'L'
'\ud804\udcd0': 'L'
'\ud804\udcd1': 'L'
'\ud804\udcd2': 'L'
'\ud804\udcd3': 'L'
'\ud804\udcd4': 'L'
'\ud804\udcd5': 'L'
'\ud804\udcd6': 'L'
'\ud804\udcd7': 'L'
'\ud804\udcd8': 'L'
'\ud804\udcd9': 'L'
'\ud804\udcda': 'L'
'\ud804\udcdb': 'L'
'\ud804\udcdc': 'L'
'\ud804\udcdd': 'L'
'\ud804\udcde': 'L'
'\ud804\udcdf': 'L'
'\ud804\udce0': 'L'
'\ud804\udce1': 'L'
'\ud804\udce2': 'L'
'\ud804\udce3': 'L'
'\ud804\udce4': 'L'
'\ud804\udce5': 'L'
'\ud804\udce6': 'L'
'\ud804\udce7': 'L'
'\ud804\udce8': 'L'
'\ud804\udcf0': 'N'
'\ud804\udcf1': 'N'
'\ud804\udcf2': 'N'
'\ud804\udcf3': 'N'
'\ud804\udcf4': 'N'
'\ud804\udcf5': 'N'
'\ud804\udcf6': 'N'
'\ud804\udcf7': 'N'
'\ud804\udcf8': 'N'
'\ud804\udcf9': 'N'
'\ud804\udd03': 'L'
'\ud804\udd04': 'L'
'\ud804\udd05': 'L'
'\ud804\udd06': 'L'
'\ud804\udd07': 'L'
'\ud804\udd08': 'L'
'\ud804\udd09': 'L'
'\ud804\udd0a': 'L'
'\ud804\udd0b': 'L'
'\ud804\udd0c': 'L'
'\ud804\udd0d': 'L'
'\ud804\udd0e': 'L'
'\ud804\udd0f': 'L'
'\ud804\udd10': 'L'
'\ud804\udd11': 'L'
'\ud804\udd12': 'L'
'\ud804\udd13': 'L'
'\ud804\udd14': 'L'
'\ud804\udd15': 'L'
'\ud804\udd16': 'L'
'\ud804\udd17': 'L'
'\ud804\udd18': 'L'
'\ud804\udd19': 'L'
'\ud804\udd1a': 'L'
'\ud804\udd1b': 'L'
'\ud804\udd1c': 'L'
'\ud804\udd1d': 'L'
'\ud804\udd1e': 'L'
'\ud804\udd1f': 'L'
'\ud804\udd20': 'L'
'\ud804\udd21': 'L'
'\ud804\udd22': 'L'
'\ud804\udd23': 'L'
'\ud804\udd24': 'L'
'\ud804\udd25': 'L'
'\ud804\udd26': 'L'
'\ud804\udd36': 'N'
'\ud804\udd37': 'N'
'\ud804\udd38': 'N'
'\ud804\udd39': 'N'
'\ud804\udd3a': 'N'
'\ud804\udd3b': 'N'
'\ud804\udd3c': 'N'
'\ud804\udd3d': 'N'
'\ud804\udd3e': 'N'
'\ud804\udd3f': 'N'
'\ud804\udd50': 'L'
'\ud804\udd51': 'L'
'\ud804\udd52': 'L'
'\ud804\udd53': 'L'
'\ud804\udd54': 'L'
'\ud804\udd55': 'L'
'\ud804\udd56': 'L'
'\ud804\udd57': 'L'
'\ud804\udd58': 'L'
'\ud804\udd59': 'L'
'\ud804\udd5a': 'L'
'\ud804\udd5b': 'L'
'\ud804\udd5c': 'L'
'\ud804\udd5d': 'L'
'\ud804\udd5e': 'L'
'\ud804\udd5f': 'L'
'\ud804\udd60': 'L'
'\ud804\udd61': 'L'
'\ud804\udd62': 'L'
'\ud804\udd63': 'L'
'\ud804\udd64': 'L'
'\ud804\udd65': 'L'
'\ud804\udd66': 'L'
'\ud804\udd67': 'L'
'\ud804\udd68': 'L'
'\ud804\udd69': 'L'
'\ud804\udd6a': 'L'
'\ud804\udd6b': 'L'
'\ud804\udd6c': 'L'
'\ud804\udd6d': 'L'
'\ud804\udd6e': 'L'
'\ud804\udd6f': 'L'
'\ud804\udd70': 'L'
'\ud804\udd71': 'L'
'\ud804\udd72': 'L'
'\ud804\udd76': 'L'
'\ud804\udd83': 'L'
'\ud804\udd84': 'L'
'\ud804\udd85': 'L'
'\ud804\udd86': 'L'
'\ud804\udd87': 'L'
'\ud804\udd88': 'L'
'\ud804\udd89': 'L'
'\ud804\udd8a': 'L'
'\ud804\udd8b': 'L'
'\ud804\udd8c': 'L'
'\ud804\udd8d': 'L'
'\ud804\udd8e': 'L'
'\ud804\udd8f': 'L'
'\ud804\udd90': 'L'
'\ud804\udd91': 'L'
'\ud804\udd92': 'L'
'\ud804\udd93': 'L'
'\ud804\udd94': 'L'
'\ud804\udd95': 'L'
'\ud804\udd96': 'L'
'\ud804\udd97': 'L'
'\ud804\udd98': 'L'
'\ud804\udd99': 'L'
'\ud804\udd9a': 'L'
'\ud804\udd9b': 'L'
'\ud804\udd9c': 'L'
'\ud804\udd9d': 'L'
'\ud804\udd9e': 'L'
'\ud804\udd9f': 'L'
'\ud804\udda0': 'L'
'\ud804\udda1': 'L'
'\ud804\udda2': 'L'
'\ud804\udda3': 'L'
'\ud804\udda4': 'L'
'\ud804\udda5': 'L'
'\ud804\udda6': 'L'
'\ud804\udda7': 'L'
'\ud804\udda8': 'L'
'\ud804\udda9': 'L'
'\ud804\uddaa': 'L'
'\ud804\uddab': 'L'
'\ud804\uddac': 'L'
'\ud804\uddad': 'L'
'\ud804\uddae': 'L'
'\ud804\uddaf': 'L'
'\ud804\uddb0': 'L'
'\ud804\uddb1': 'L'
'\ud804\uddb2': 'L'
'\ud804\uddc1': 'L'
'\ud804\uddc2': 'L'
'\ud804\uddc3': 'L'
'\ud804\uddc4': 'L'
'\ud804\uddd0': 'N'
'\ud804\uddd1': 'N'
'\ud804\uddd2': 'N'
'\ud804\uddd3': 'N'
'\ud804\uddd4': 'N'
'\ud804\uddd5': 'N'
'\ud804\uddd6': 'N'
'\ud804\uddd7': 'N'
'\ud804\uddd8': 'N'
'\ud804\uddd9': 'N'
'\ud804\uddda': 'L'
'\ud804\udddc': 'L'
'\ud804\udde1': 'N'
'\ud804\udde2': 'N'
'\ud804\udde3': 'N'
'\ud804\udde4': 'N'
'\ud804\udde5': 'N'
'\ud804\udde6': 'N'
'\ud804\udde7': 'N'
'\ud804\udde8': 'N'
'\ud804\udde9': 'N'
'\ud804\uddea': 'N'
'\ud804\uddeb': 'N'
'\ud804\uddec': 'N'
'\ud804\udded': 'N'
'\ud804\uddee': 'N'
'\ud804\uddef': 'N'
'\ud804\uddf0': 'N'
'\ud804\uddf1': 'N'
'\ud804\uddf2': 'N'
'\ud804\uddf3': 'N'
'\ud804\uddf4': 'N'
'\ud804\ude00': 'L'
'\ud804\ude01': 'L'
'\ud804\ude02': 'L'
'\ud804\ude03': 'L'
'\ud804\ude04': 'L'
'\ud804\ude05': 'L'
'\ud804\ude06': 'L'
'\ud804\ude07': 'L'
'\ud804\ude08': 'L'
'\ud804\ude09': 'L'
'\ud804\ude0a': 'L'
'\ud804\ude0b': 'L'
'\ud804\ude0c': 'L'
'\ud804\ude0d': 'L'
'\ud804\ude0e': 'L'
'\ud804\ude0f': 'L'
'\ud804\ude10': 'L'
'\ud804\ude11': 'L'
'\ud804\ude13': 'L'
'\ud804\ude14': 'L'
'\ud804\ude15': 'L'
'\ud804\ude16': 'L'
'\ud804\ude17': 'L'
'\ud804\ude18': 'L'
'\ud804\ude19': 'L'
'\ud804\ude1a': 'L'
'\ud804\ude1b': 'L'
'\ud804\ude1c': 'L'
'\ud804\ude1d': 'L'
'\ud804\ude1e': 'L'
'\ud804\ude1f': 'L'
'\ud804\ude20': 'L'
'\ud804\ude21': 'L'
'\ud804\ude22': 'L'
'\ud804\ude23': 'L'
'\ud804\ude24': 'L'
'\ud804\ude25': 'L'
'\ud804\ude26': 'L'
'\ud804\ude27': 'L'
'\ud804\ude28': 'L'
'\ud804\ude29': 'L'
'\ud804\ude2a': 'L'
'\ud804\ude2b': 'L'
'\ud804\ude80': 'L'
'\ud804\ude81': 'L'
'\ud804\ude82': 'L'
'\ud804\ude83': 'L'
'\ud804\ude84': 'L'
'\ud804\ude85': 'L'
'\ud804\ude86': 'L'
'\ud804\ude88': 'L'
'\ud804\ude8a': 'L'
'\ud804\ude8b': 'L'
'\ud804\ude8c': 'L'
'\ud804\ude8d': 'L'
'\ud804\ude8f': 'L'
'\ud804\ude90': 'L'
'\ud804\ude91': 'L'
'\ud804\ude92': 'L'
'\ud804\ude93': 'L'
'\ud804\ude94': 'L'
'\ud804\ude95': 'L'
'\ud804\ude96': 'L'
'\ud804\ude97': 'L'
'\ud804\ude98': 'L'
'\ud804\ude99': 'L'
'\ud804\ude9a': 'L'
'\ud804\ude9b': 'L'
'\ud804\ude9c': 'L'
'\ud804\ude9d': 'L'
'\ud804\ude9f': 'L'
'\ud804\udea0': 'L'
'\ud804\udea1': 'L'
'\ud804\udea2': 'L'
'\ud804\udea3': 'L'
'\ud804\udea4': 'L'
'\ud804\udea5': 'L'
'\ud804\udea6': 'L'
'\ud804\udea7': 'L'
'\ud804\udea8': 'L'
'\ud804\udeb0': 'L'
'\ud804\udeb1': 'L'
'\ud804\udeb2': 'L'
'\ud804\udeb3': 'L'
'\ud804\udeb4': 'L'
'\ud804\udeb5': 'L'
'\ud804\udeb6': 'L'
'\ud804\udeb7': 'L'
'\ud804\udeb8': 'L'
'\ud804\udeb9': 'L'
'\ud804\udeba': 'L'
'\ud804\udebb': 'L'
'\ud804\udebc': 'L'
'\ud804\udebd': 'L'
'\ud804\udebe': 'L'
'\ud804\udebf': 'L'
'\ud804\udec0': 'L'
'\ud804\udec1': 'L'
'\ud804\udec2': 'L'
'\ud804\udec3': 'L'
'\ud804\udec4': 'L'
'\ud804\udec5': 'L'
'\ud804\udec6': 'L'
'\ud804\udec7': 'L'
'\ud804\udec8': 'L'
'\ud804\udec9': 'L'
'\ud804\udeca': 'L'
'\ud804\udecb': 'L'
'\ud804\udecc': 'L'
'\ud804\udecd': 'L'
'\ud804\udece': 'L'
'\ud804\udecf': 'L'
'\ud804\uded0': 'L'
'\ud804\uded1': 'L'
'\ud804\uded2': 'L'
'\ud804\uded3': 'L'
'\ud804\uded4': 'L'
'\ud804\uded5': 'L'
'\ud804\uded6': 'L'
'\ud804\uded7': 'L'
'\ud804\uded8': 'L'
'\ud804\uded9': 'L'
'\ud804\udeda': 'L'
'\ud804\udedb': 'L'
'\ud804\udedc': 'L'
'\ud804\udedd': 'L'
'\ud804\udede': 'L'
'\ud804\udef0': 'N'
'\ud804\udef1': 'N'
'\ud804\udef2': 'N'
'\ud804\udef3': 'N'
'\ud804\udef4': 'N'
'\ud804\udef5': 'N'
'\ud804\udef6': 'N'
'\ud804\udef7': 'N'
'\ud804\udef8': 'N'
'\ud804\udef9': 'N'
'\ud804\udf05': 'L'
'\ud804\udf06': 'L'
'\ud804\udf07': 'L'
'\ud804\udf08': 'L'
'\ud804\udf09': 'L'
'\ud804\udf0a': 'L'
'\ud804\udf0b': 'L'
'\ud804\udf0c': 'L'
'\ud804\udf0f': 'L'
'\ud804\udf10': 'L'
'\ud804\udf13': 'L'
'\ud804\udf14': 'L'
'\ud804\udf15': 'L'
'\ud804\udf16': 'L'
'\ud804\udf17': 'L'
'\ud804\udf18': 'L'
'\ud804\udf19': 'L'
'\ud804\udf1a': 'L'
'\ud804\udf1b': 'L'
'\ud804\udf1c': 'L'
'\ud804\udf1d': 'L'
'\ud804\udf1e': 'L'
'\ud804\udf1f': 'L'
'\ud804\udf20': 'L'
'\ud804\udf21': 'L'
'\ud804\udf22': 'L'
'\ud804\udf23': 'L'
'\ud804\udf24': 'L'
'\ud804\udf25': 'L'
'\ud804\udf26': 'L'
'\ud804\udf27': 'L'
'\ud804\udf28': 'L'
'\ud804\udf2a': 'L'
'\ud804\udf2b': 'L'
'\ud804\udf2c': 'L'
'\ud804\udf2d': 'L'
'\ud804\udf2e': 'L'
'\ud804\udf2f': 'L'
'\ud804\udf30': 'L'
'\ud804\udf32': 'L'
'\ud804\udf33': 'L'
'\ud804\udf35': 'L'
'\ud804\udf36': 'L'
'\ud804\udf37': 'L'
'\ud804\udf38': 'L'
'\ud804\udf39': 'L'
'\ud804\udf3d': 'L'
'\ud804\udf50': 'L'
'\ud804\udf5d': 'L'
'\ud804\udf5e': 'L'
'\ud804\udf5f': 'L'
'\ud804\udf60': 'L'
'\ud804\udf61': 'L'
'\ud805\udc80': 'L'
'\ud805\udc81': 'L'
'\ud805\udc82': 'L'
'\ud805\udc83': 'L'
'\ud805\udc84': 'L'
'\ud805\udc85': 'L'
'\ud805\udc86': 'L'
'\ud805\udc87': 'L'
'\ud805\udc88': 'L'
'\ud805\udc89': 'L'
'\ud805\udc8a': 'L'
'\ud805\udc8b': 'L'
'\ud805\udc8c': 'L'
'\ud805\udc8d': 'L'
'\ud805\udc8e': 'L'
'\ud805\udc8f': 'L'
'\ud805\udc90': 'L'
'\ud805\udc91': 'L'
'\ud805\udc92': 'L'
'\ud805\udc93': 'L'
'\ud805\udc94': 'L'
'\ud805\udc95': 'L'
'\ud805\udc96': 'L'
'\ud805\udc97': 'L'
'\ud805\udc98': 'L'
'\ud805\udc99': 'L'
'\ud805\udc9a': 'L'
'\ud805\udc9b': 'L'
'\ud805\udc9c': 'L'
'\ud805\udc9d': 'L'
'\ud805\udc9e': 'L'
'\ud805\udc9f': 'L'
'\ud805\udca0': 'L'
'\ud805\udca1': 'L'
'\ud805\udca2': 'L'
'\ud805\udca3': 'L'
'\ud805\udca4': 'L'
'\ud805\udca5': 'L'
'\ud805\udca6': 'L'
'\ud805\udca7': 'L'
'\ud805\udca8': 'L'
'\ud805\udca9': 'L'
'\ud805\udcaa': 'L'
'\ud805\udcab': 'L'
'\ud805\udcac': 'L'
'\ud805\udcad': 'L'
'\ud805\udcae': 'L'
'\ud805\udcaf': 'L'
'\ud805\udcc4': 'L'
'\ud805\udcc5': 'L'
'\ud805\udcc7': 'L'
'\ud805\udcd0': 'N'
'\ud805\udcd1': 'N'
'\ud805\udcd2': 'N'
'\ud805\udcd3': 'N'
'\ud805\udcd4': 'N'
'\ud805\udcd5': 'N'
'\ud805\udcd6': 'N'
'\ud805\udcd7': 'N'
'\ud805\udcd8': 'N'
'\ud805\udcd9': 'N'
'\ud805\udd80': 'L'
'\ud805\udd81': 'L'
'\ud805\udd82': 'L'
'\ud805\udd83': 'L'
'\ud805\udd84': 'L'
'\ud805\udd85': 'L'
'\ud805\udd86': 'L'
'\ud805\udd87': 'L'
'\ud805\udd88': 'L'
'\ud805\udd89': 'L'
'\ud805\udd8a': 'L'
'\ud805\udd8b': 'L'
'\ud805\udd8c': 'L'
'\ud805\udd8d': 'L'
'\ud805\udd8e': 'L'
'\ud805\udd8f': 'L'
'\ud805\udd90': 'L'
'\ud805\udd91': 'L'
'\ud805\udd92': 'L'
'\ud805\udd93': 'L'
'\ud805\udd94': 'L'
'\ud805\udd95': 'L'
'\ud805\udd96': 'L'
'\ud805\udd97': 'L'
'\ud805\udd98': 'L'
'\ud805\udd99': 'L'
'\ud805\udd9a': 'L'
'\ud805\udd9b': 'L'
'\ud805\udd9c': 'L'
'\ud805\udd9d': 'L'
'\ud805\udd9e': 'L'
'\ud805\udd9f': 'L'
'\ud805\udda0': 'L'
'\ud805\udda1': 'L'
'\ud805\udda2': 'L'
'\ud805\udda3': 'L'
'\ud805\udda4': 'L'
'\ud805\udda5': 'L'
'\ud805\udda6': 'L'
'\ud805\udda7': 'L'
'\ud805\udda8': 'L'
'\ud805\udda9': 'L'
'\ud805\uddaa': 'L'
'\ud805\uddab': 'L'
'\ud805\uddac': 'L'
'\ud805\uddad': 'L'
'\ud805\uddae': 'L'
'\ud805\uddd8': 'L'
'\ud805\uddd9': 'L'
'\ud805\uddda': 'L'
'\ud805\udddb': 'L'
'\ud805\ude00': 'L'
'\ud805\ude01': 'L'
'\ud805\ude02': 'L'
'\ud805\ude03': 'L'
'\ud805\ude04': 'L'
'\ud805\ude05': 'L'
'\ud805\ude06': 'L'
'\ud805\ude07': 'L'
'\ud805\ude08': 'L'
'\ud805\ude09': 'L'
'\ud805\ude0a': 'L'
'\ud805\ude0b': 'L'
'\ud805\ude0c': 'L'
'\ud805\ude0d': 'L'
'\ud805\ude0e': 'L'
'\ud805\ude0f': 'L'
'\ud805\ude10': 'L'
'\ud805\ude11': 'L'
'\ud805\ude12': 'L'
'\ud805\ude13': 'L'
'\ud805\ude14': 'L'
'\ud805\ude15': 'L'
'\ud805\ude16': 'L'
'\ud805\ude17': 'L'
'\ud805\ude18': 'L'
'\ud805\ude19': 'L'
'\ud805\ude1a': 'L'
'\ud805\ude1b': 'L'
'\ud805\ude1c': 'L'
'\ud805\ude1d': 'L'
'\ud805\ude1e': 'L'
'\ud805\ude1f': 'L'
'\ud805\ude20': 'L'
'\ud805\ude21': 'L'
'\ud805\ude22': 'L'
'\ud805\ude23': 'L'
'\ud805\ude24': 'L'
'\ud805\ude25': 'L'
'\ud805\ude26': 'L'
'\ud805\ude27': 'L'
'\ud805\ude28': 'L'
'\ud805\ude29': 'L'
'\ud805\ude2a': 'L'
'\ud805\ude2b': 'L'
'\ud805\ude2c': 'L'
'\ud805\ude2d': 'L'
'\ud805\ude2e': 'L'
'\ud805\ude2f': 'L'
'\ud805\ude44': 'L'
'\ud805\ude50': 'N'
'\ud805\ude51': 'N'
'\ud805\ude52': 'N'
'\ud805\ude53': 'N'
'\ud805\ude54': 'N'
'\ud805\ude55': 'N'
'\ud805\ude56': 'N'
'\ud805\ude57': 'N'
'\ud805\ude58': 'N'
'\ud805\ude59': 'N'
'\ud805\ude80': 'L'
'\ud805\ude81': 'L'
'\ud805\ude82': 'L'
'\ud805\ude83': 'L'
'\ud805\ude84': 'L'
'\ud805\ude85': 'L'
'\ud805\ude86': 'L'
'\ud805\ude87': 'L'
'\ud805\ude88': 'L'
'\ud805\ude89': 'L'
'\ud805\ude8a': 'L'
'\ud805\ude8b': 'L'
'\ud805\ude8c': 'L'
'\ud805\ude8d': 'L'
'\ud805\ude8e': 'L'
'\ud805\ude8f': 'L'
'\ud805\ude90': 'L'
'\ud805\ude91': 'L'
'\ud805\ude92': 'L'
'\ud805\ude93': 'L'
'\ud805\ude94': 'L'
'\ud805\ude95': 'L'
'\ud805\ude96': 'L'
'\ud805\ude97': 'L'
'\ud805\ude98': 'L'
'\ud805\ude99': 'L'
'\ud805\ude9a': 'L'
'\ud805\ude9b': 'L'
'\ud805\ude9c': 'L'
'\ud805\ude9d': 'L'
'\ud805\ude9e': 'L'
'\ud805\ude9f': 'L'
'\ud805\udea0': 'L'
'\ud805\udea1': 'L'
'\ud805\udea2': 'L'
'\ud805\udea3': 'L'
'\ud805\udea4': 'L'
'\ud805\udea5': 'L'
'\ud805\udea6': 'L'
'\ud805\udea7': 'L'
'\ud805\udea8': 'L'
'\ud805\udea9': 'L'
'\ud805\udeaa': 'L'
'\ud805\udec0': 'N'
'\ud805\udec1': 'N'
'\ud805\udec2': 'N'
'\ud805\udec3': 'N'
'\ud805\udec4': 'N'
'\ud805\udec5': 'N'
'\ud805\udec6': 'N'
'\ud805\udec7': 'N'
'\ud805\udec8': 'N'
'\ud805\udec9': 'N'
'\ud805\udf00': 'L'
'\ud805\udf01': 'L'
'\ud805\udf02': 'L'
'\ud805\udf03': 'L'
'\ud805\udf04': 'L'
'\ud805\udf05': 'L'
'\ud805\udf06': 'L'
'\ud805\udf07': 'L'
'\ud805\udf08': 'L'
'\ud805\udf09': 'L'
'\ud805\udf0a': 'L'
'\ud805\udf0b': 'L'
'\ud805\udf0c': 'L'
'\ud805\udf0d': 'L'
'\ud805\udf0e': 'L'
'\ud805\udf0f': 'L'
'\ud805\udf10': 'L'
'\ud805\udf11': 'L'
'\ud805\udf12': 'L'
'\ud805\udf13': 'L'
'\ud805\udf14': 'L'
'\ud805\udf15': 'L'
'\ud805\udf16': 'L'
'\ud805\udf17': 'L'
'\ud805\udf18': 'L'
'\ud805\udf19': 'L'
'\ud805\udf30': 'N'
'\ud805\udf31': 'N'
'\ud805\udf32': 'N'
'\ud805\udf33': 'N'
'\ud805\udf34': 'N'
'\ud805\udf35': 'N'
'\ud805\udf36': 'N'
'\ud805\udf37': 'N'
'\ud805\udf38': 'N'
'\ud805\udf39': 'N'
'\ud805\udf3a': 'N'
'\ud805\udf3b': 'N'
'\ud806\udca0': 'Lu'
'\ud806\udca1': 'Lu'
'\ud806\udca2': 'Lu'
'\ud806\udca3': 'Lu'
'\ud806\udca4': 'Lu'
'\ud806\udca5': 'Lu'
'\ud806\udca6': 'Lu'
'\ud806\udca7': 'Lu'
'\ud806\udca8': 'Lu'
'\ud806\udca9': 'Lu'
'\ud806\udcaa': 'Lu'
'\ud806\udcab': 'Lu'
'\ud806\udcac': 'Lu'
'\ud806\udcad': 'Lu'
'\ud806\udcae': 'Lu'
'\ud806\udcaf': 'Lu'
'\ud806\udcb0': 'Lu'
'\ud806\udcb1': 'Lu'
'\ud806\udcb2': 'Lu'
'\ud806\udcb3': 'Lu'
'\ud806\udcb4': 'Lu'
'\ud806\udcb5': 'Lu'
'\ud806\udcb6': 'Lu'
'\ud806\udcb7': 'Lu'
'\ud806\udcb8': 'Lu'
'\ud806\udcb9': 'Lu'
'\ud806\udcba': 'Lu'
'\ud806\udcbb': 'Lu'
'\ud806\udcbc': 'Lu'
'\ud806\udcbd': 'Lu'
'\ud806\udcbe': 'Lu'
'\ud806\udcbf': 'Lu'
'\ud806\udcc0': 'L'
'\ud806\udcc1': 'L'
'\ud806\udcc2': 'L'
'\ud806\udcc3': 'L'
'\ud806\udcc4': 'L'
'\ud806\udcc5': 'L'
'\ud806\udcc6': 'L'
'\ud806\udcc7': 'L'
'\ud806\udcc8': 'L'
'\ud806\udcc9': 'L'
'\ud806\udcca': 'L'
'\ud806\udccb': 'L'
'\ud806\udccc': 'L'
'\ud806\udccd': 'L'
'\ud806\udcce': 'L'
'\ud806\udccf': 'L'
'\ud806\udcd0': 'L'
'\ud806\udcd1': 'L'
'\ud806\udcd2': 'L'
'\ud806\udcd3': 'L'
'\ud806\udcd4': 'L'
'\ud806\udcd5': 'L'
'\ud806\udcd6': 'L'
'\ud806\udcd7': 'L'
'\ud806\udcd8': 'L'
'\ud806\udcd9': 'L'
'\ud806\udcda': 'L'
'\ud806\udcdb': 'L'
'\ud806\udcdc': 'L'
'\ud806\udcdd': 'L'
'\ud806\udcde': 'L'
'\ud806\udcdf': 'L'
'\ud806\udce0': 'N'
'\ud806\udce1': 'N'
'\ud806\udce2': 'N'
'\ud806\udce3': 'N'
'\ud806\udce4': 'N'
'\ud806\udce5': 'N'
'\ud806\udce6': 'N'
'\ud806\udce7': 'N'
'\ud806\udce8': 'N'
'\ud806\udce9': 'N'
'\ud806\udcea': 'N'
'\ud806\udceb': 'N'
'\ud806\udcec': 'N'
'\ud806\udced': 'N'
'\ud806\udcee': 'N'
'\ud806\udcef': 'N'
'\ud806\udcf0': 'N'
'\ud806\udcf1': 'N'
'\ud806\udcf2': 'N'
'\ud806\udcff': 'L'
'\ud806\udec0': 'L'
'\ud806\udec1': 'L'
'\ud806\udec2': 'L'
'\ud806\udec3': 'L'
'\ud806\udec4': 'L'
'\ud806\udec5': 'L'
'\ud806\udec6': 'L'
'\ud806\udec7': 'L'
'\ud806\udec8': 'L'
'\ud806\udec9': 'L'
'\ud806\udeca': 'L'
'\ud806\udecb': 'L'
'\ud806\udecc': 'L'
'\ud806\udecd': 'L'
'\ud806\udece': 'L'
'\ud806\udecf': 'L'
'\ud806\uded0': 'L'
'\ud806\uded1': 'L'
'\ud806\uded2': 'L'
'\ud806\uded3': 'L'
'\ud806\uded4': 'L'
'\ud806\uded5': 'L'
'\ud806\uded6': 'L'
'\ud806\uded7': 'L'
'\ud806\uded8': 'L'
'\ud806\uded9': 'L'
'\ud806\udeda': 'L'
'\ud806\udedb': 'L'
'\ud806\udedc': 'L'
'\ud806\udedd': 'L'
'\ud806\udede': 'L'
'\ud806\udedf': 'L'
'\ud806\udee0': 'L'
'\ud806\udee1': 'L'
'\ud806\udee2': 'L'
'\ud806\udee3': 'L'
'\ud806\udee4': 'L'
'\ud806\udee5': 'L'
'\ud806\udee6': 'L'
'\ud806\udee7': 'L'
'\ud806\udee8': 'L'
'\ud806\udee9': 'L'
'\ud806\udeea': 'L'
'\ud806\udeeb': 'L'
'\ud806\udeec': 'L'
'\ud806\udeed': 'L'
'\ud806\udeee': 'L'
'\ud806\udeef': 'L'
'\ud806\udef0': 'L'
'\ud806\udef1': 'L'
'\ud806\udef2': 'L'
'\ud806\udef3': 'L'
'\ud806\udef4': 'L'
'\ud806\udef5': 'L'
'\ud806\udef6': 'L'
'\ud806\udef7': 'L'
'\ud806\udef8': 'L'
'\ud808\udc00': 'L'
'\ud808\udc01': 'L'
'\ud808\udc02': 'L'
'\ud808\udc03': 'L'
'\ud808\udc04': 'L'
'\ud808\udc05': 'L'
'\ud808\udc06': 'L'
'\ud808\udc07': 'L'
'\ud808\udc08': 'L'
'\ud808\udc09': 'L'
'\ud808\udc0a': 'L'
'\ud808\udc0b': 'L'
'\ud808\udc0c': 'L'
'\ud808\udc0d': 'L'
'\ud808\udc0e': 'L'
'\ud808\udc0f': 'L'
'\ud808\udc10': 'L'
'\ud808\udc11': 'L'
'\ud808\udc12': 'L'
'\ud808\udc13': 'L'
'\ud808\udc14': 'L'
'\ud808\udc15': 'L'
'\ud808\udc16': 'L'
'\ud808\udc17': 'L'
'\ud808\udc18': 'L'
'\ud808\udc19': 'L'
'\ud808\udc1a': 'L'
'\ud808\udc1b': 'L'
'\ud808\udc1c': 'L'
'\ud808\udc1d': 'L'
'\ud808\udc1e': 'L'
'\ud808\udc1f': 'L'
'\ud808\udc20': 'L'
'\ud808\udc21': 'L'
'\ud808\udc22': 'L'
'\ud808\udc23': 'L'
'\ud808\udc24': 'L'
'\ud808\udc25': 'L'
'\ud808\udc26': 'L'
'\ud808\udc27': 'L'
'\ud808\udc28': 'L'
'\ud808\udc29': 'L'
'\ud808\udc2a': 'L'
'\ud808\udc2b': 'L'
'\ud808\udc2c': 'L'
'\ud808\udc2d': 'L'
'\ud808\udc2e': 'L'
'\ud808\udc2f': 'L'
'\ud808\udc30': 'L'
'\ud808\udc31': 'L'
'\ud808\udc32': 'L'
'\ud808\udc33': 'L'
'\ud808\udc34': 'L'
'\ud808\udc35': 'L'
'\ud808\udc36': 'L'
'\ud808\udc37': 'L'
'\ud808\udc38': 'L'
'\ud808\udc39': 'L'
'\ud808\udc3a': 'L'
'\ud808\udc3b': 'L'
'\ud808\udc3c': 'L'
'\ud808\udc3d': 'L'
'\ud808\udc3e': 'L'
'\ud808\udc3f': 'L'
'\ud808\udc40': 'L'
'\ud808\udc41': 'L'
'\ud808\udc42': 'L'
'\ud808\udc43': 'L'
'\ud808\udc44': 'L'
'\ud808\udc45': 'L'
'\ud808\udc46': 'L'
'\ud808\udc47': 'L'
'\ud808\udc48': 'L'
'\ud808\udc49': 'L'
'\ud808\udc4a': 'L'
'\ud808\udc4b': 'L'
'\ud808\udc4c': 'L'
'\ud808\udc4d': 'L'
'\ud808\udc4e': 'L'
'\ud808\udc4f': 'L'
'\ud808\udc50': 'L'
'\ud808\udc51': 'L'
'\ud808\udc52': 'L'
'\ud808\udc53': 'L'
'\ud808\udc54': 'L'
'\ud808\udc55': 'L'
'\ud808\udc56': 'L'
'\ud808\udc57': 'L'
'\ud808\udc58': 'L'
'\ud808\udc59': 'L'
'\ud808\udc5a': 'L'
'\ud808\udc5b': 'L'
'\ud808\udc5c': 'L'
'\ud808\udc5d': 'L'
'\ud808\udc5e': 'L'
'\ud808\udc5f': 'L'
'\ud808\udc60': 'L'
'\ud808\udc61': 'L'
'\ud808\udc62': 'L'
'\ud808\udc63': 'L'
'\ud808\udc64': 'L'
'\ud808\udc65': 'L'
'\ud808\udc66': 'L'
'\ud808\udc67': 'L'
'\ud808\udc68': 'L'
'\ud808\udc69': 'L'
'\ud808\udc6a': 'L'
'\ud808\udc6b': 'L'
'\ud808\udc6c': 'L'
'\ud808\udc6d': 'L'
'\ud808\udc6e': 'L'
'\ud808\udc6f': 'L'
'\ud808\udc70': 'L'
'\ud808\udc71': 'L'
'\ud808\udc72': 'L'
'\ud808\udc73': 'L'
'\ud808\udc74': 'L'
'\ud808\udc75': 'L'
'\ud808\udc76': 'L'
'\ud808\udc77': 'L'
'\ud808\udc78': 'L'
'\ud808\udc79': 'L'
'\ud808\udc7a': 'L'
'\ud808\udc7b': 'L'
'\ud808\udc7c': 'L'
'\ud808\udc7d': 'L'
'\ud808\udc7e': 'L'
'\ud808\udc7f': 'L'
'\ud808\udc80': 'L'
'\ud808\udc81': 'L'
'\ud808\udc82': 'L'
'\ud808\udc83': 'L'
'\ud808\udc84': 'L'
'\ud808\udc85': 'L'
'\ud808\udc86': 'L'
'\ud808\udc87': 'L'
'\ud808\udc88': 'L'
'\ud808\udc89': 'L'
'\ud808\udc8a': 'L'
'\ud808\udc8b': 'L'
'\ud808\udc8c': 'L'
'\ud808\udc8d': 'L'
'\ud808\udc8e': 'L'
'\ud808\udc8f': 'L'
'\ud808\udc90': 'L'
'\ud808\udc91': 'L'
'\ud808\udc92': 'L'
'\ud808\udc93': 'L'
'\ud808\udc94': 'L'
'\ud808\udc95': 'L'
'\ud808\udc96': 'L'
'\ud808\udc97': 'L'
'\ud808\udc98': 'L'
'\ud808\udc99': 'L'
'\ud808\udc9a': 'L'
'\ud808\udc9b': 'L'
'\ud808\udc9c': 'L'
'\ud808\udc9d': 'L'
'\ud808\udc9e': 'L'
'\ud808\udc9f': 'L'
'\ud808\udca0': 'L'
'\ud808\udca1': 'L'
'\ud808\udca2': 'L'
'\ud808\udca3': 'L'
'\ud808\udca4': 'L'
'\ud808\udca5': 'L'
'\ud808\udca6': 'L'
'\ud808\udca7': 'L'
'\ud808\udca8': 'L'
'\ud808\udca9': 'L'
'\ud808\udcaa': 'L'
'\ud808\udcab': 'L'
'\ud808\udcac': 'L'
'\ud808\udcad': 'L'
'\ud808\udcae': 'L'
'\ud808\udcaf': 'L'
'\ud808\udcb0': 'L'
'\ud808\udcb1': 'L'
'\ud808\udcb2': 'L'
'\ud808\udcb3': 'L'
'\ud808\udcb4': 'L'
'\ud808\udcb5': 'L'
'\ud808\udcb6': 'L'
'\ud808\udcb7': 'L'
'\ud808\udcb8': 'L'
'\ud808\udcb9': 'L'
'\ud808\udcba': 'L'
'\ud808\udcbb': 'L'
'\ud808\udcbc': 'L'
'\ud808\udcbd': 'L'
'\ud808\udcbe': 'L'
'\ud808\udcbf': 'L'
'\ud808\udcc0': 'L'
'\ud808\udcc1': 'L'
'\ud808\udcc2': 'L'
'\ud808\udcc3': 'L'
'\ud808\udcc4': 'L'
'\ud808\udcc5': 'L'
'\ud808\udcc6': 'L'
'\ud808\udcc7': 'L'
'\ud808\udcc8': 'L'
'\ud808\udcc9': 'L'
'\ud808\udcca': 'L'
'\ud808\udccb': 'L'
'\ud808\udccc': 'L'
'\ud808\udccd': 'L'
'\ud808\udcce': 'L'
'\ud808\udccf': 'L'
'\ud808\udcd0': 'L'
'\ud808\udcd1': 'L'
'\ud808\udcd2': 'L'
'\ud808\udcd3': 'L'
'\ud808\udcd4': 'L'
'\ud808\udcd5': 'L'
'\ud808\udcd6': 'L'
'\ud808\udcd7': 'L'
'\ud808\udcd8': 'L'
'\ud808\udcd9': 'L'
'\ud808\udcda': 'L'
'\ud808\udcdb': 'L'
'\ud808\udcdc': 'L'
'\ud808\udcdd': 'L'
'\ud808\udcde': 'L'
'\ud808\udcdf': 'L'
'\ud808\udce0': 'L'
'\ud808\udce1': 'L'
'\ud808\udce2': 'L'
'\ud808\udce3': 'L'
'\ud808\udce4': 'L'
'\ud808\udce5': 'L'
'\ud808\udce6': 'L'
'\ud808\udce7': 'L'
'\ud808\udce8': 'L'
'\ud808\udce9': 'L'
'\ud808\udcea': 'L'
'\ud808\udceb': 'L'
'\ud808\udcec': 'L'
'\ud808\udced': 'L'
'\ud808\udcee': 'L'
'\ud808\udcef': 'L'
'\ud808\udcf0': 'L'
'\ud808\udcf1': 'L'
'\ud808\udcf2': 'L'
'\ud808\udcf3': 'L'
'\ud808\udcf4': 'L'
'\ud808\udcf5': 'L'
'\ud808\udcf6': 'L'
'\ud808\udcf7': 'L'
'\ud808\udcf8': 'L'
'\ud808\udcf9': 'L'
'\ud808\udcfa': 'L'
'\ud808\udcfb': 'L'
'\ud808\udcfc': 'L'
'\ud808\udcfd': 'L'
'\ud808\udcfe': 'L'
'\ud808\udcff': 'L'
'\ud808\udd00': 'L'
'\ud808\udd01': 'L'
'\ud808\udd02': 'L'
'\ud808\udd03': 'L'
'\ud808\udd04': 'L'
'\ud808\udd05': 'L'
'\ud808\udd06': 'L'
'\ud808\udd07': 'L'
'\ud808\udd08': 'L'
'\ud808\udd09': 'L'
'\ud808\udd0a': 'L'
'\ud808\udd0b': 'L'
'\ud808\udd0c': 'L'
'\ud808\udd0d': 'L'
'\ud808\udd0e': 'L'
'\ud808\udd0f': 'L'
'\ud808\udd10': 'L'
'\ud808\udd11': 'L'
'\ud808\udd12': 'L'
'\ud808\udd13': 'L'
'\ud808\udd14': 'L'
'\ud808\udd15': 'L'
'\ud808\udd16': 'L'
'\ud808\udd17': 'L'
'\ud808\udd18': 'L'
'\ud808\udd19': 'L'
'\ud808\udd1a': 'L'
'\ud808\udd1b': 'L'
'\ud808\udd1c': 'L'
'\ud808\udd1d': 'L'
'\ud808\udd1e': 'L'
'\ud808\udd1f': 'L'
'\ud808\udd20': 'L'
'\ud808\udd21': 'L'
'\ud808\udd22': 'L'
'\ud808\udd23': 'L'
'\ud808\udd24': 'L'
'\ud808\udd25': 'L'
'\ud808\udd26': 'L'
'\ud808\udd27': 'L'
'\ud808\udd28': 'L'
'\ud808\udd29': 'L'
'\ud808\udd2a': 'L'
'\ud808\udd2b': 'L'
'\ud808\udd2c': 'L'
'\ud808\udd2d': 'L'
'\ud808\udd2e': 'L'
'\ud808\udd2f': 'L'
'\ud808\udd30': 'L'
'\ud808\udd31': 'L'
'\ud808\udd32': 'L'
'\ud808\udd33': 'L'
'\ud808\udd34': 'L'
'\ud808\udd35': 'L'
'\ud808\udd36': 'L'
'\ud808\udd37': 'L'
'\ud808\udd38': 'L'
'\ud808\udd39': 'L'
'\ud808\udd3a': 'L'
'\ud808\udd3b': 'L'
'\ud808\udd3c': 'L'
'\ud808\udd3d': 'L'
'\ud808\udd3e': 'L'
'\ud808\udd3f': 'L'
'\ud808\udd40': 'L'
'\ud808\udd41': 'L'
'\ud808\udd42': 'L'
'\ud808\udd43': 'L'
'\ud808\udd44': 'L'
'\ud808\udd45': 'L'
'\ud808\udd46': 'L'
'\ud808\udd47': 'L'
'\ud808\udd48': 'L'
'\ud808\udd49': 'L'
'\ud808\udd4a': 'L'
'\ud808\udd4b': 'L'
'\ud808\udd4c': 'L'
'\ud808\udd4d': 'L'
'\ud808\udd4e': 'L'
'\ud808\udd4f': 'L'
'\ud808\udd50': 'L'
'\ud808\udd51': 'L'
'\ud808\udd52': 'L'
'\ud808\udd53': 'L'
'\ud808\udd54': 'L'
'\ud808\udd55': 'L'
'\ud808\udd56': 'L'
'\ud808\udd57': 'L'
'\ud808\udd58': 'L'
'\ud808\udd59': 'L'
'\ud808\udd5a': 'L'
'\ud808\udd5b': 'L'
'\ud808\udd5c': 'L'
'\ud808\udd5d': 'L'
'\ud808\udd5e': 'L'
'\ud808\udd5f': 'L'
'\ud808\udd60': 'L'
'\ud808\udd61': 'L'
'\ud808\udd62': 'L'
'\ud808\udd63': 'L'
'\ud808\udd64': 'L'
'\ud808\udd65': 'L'
'\ud808\udd66': 'L'
'\ud808\udd67': 'L'
'\ud808\udd68': 'L'
'\ud808\udd69': 'L'
'\ud808\udd6a': 'L'
'\ud808\udd6b': 'L'
'\ud808\udd6c': 'L'
'\ud808\udd6d': 'L'
'\ud808\udd6e': 'L'
'\ud808\udd6f': 'L'
'\ud808\udd70': 'L'
'\ud808\udd71': 'L'
'\ud808\udd72': 'L'
'\ud808\udd73': 'L'
'\ud808\udd74': 'L'
'\ud808\udd75': 'L'
'\ud808\udd76': 'L'
'\ud808\udd77': 'L'
'\ud808\udd78': 'L'
'\ud808\udd79': 'L'
'\ud808\udd7a': 'L'
'\ud808\udd7b': 'L'
'\ud808\udd7c': 'L'
'\ud808\udd7d': 'L'
'\ud808\udd7e': 'L'
'\ud808\udd7f': 'L'
'\ud808\udd80': 'L'
'\ud808\udd81': 'L'
'\ud808\udd82': 'L'
'\ud808\udd83': 'L'
'\ud808\udd84': 'L'
'\ud808\udd85': 'L'
'\ud808\udd86': 'L'
'\ud808\udd87': 'L'
'\ud808\udd88': 'L'
'\ud808\udd89': 'L'
'\ud808\udd8a': 'L'
'\ud808\udd8b': 'L'
'\ud808\udd8c': 'L'
'\ud808\udd8d': 'L'
'\ud808\udd8e': 'L'
'\ud808\udd8f': 'L'
'\ud808\udd90': 'L'
'\ud808\udd91': 'L'
'\ud808\udd92': 'L'
'\ud808\udd93': 'L'
'\ud808\udd94': 'L'
'\ud808\udd95': 'L'
'\ud808\udd96': 'L'
'\ud808\udd97': 'L'
'\ud808\udd98': 'L'
'\ud808\udd99': 'L'
'\ud808\udd9a': 'L'
'\ud808\udd9b': 'L'
'\ud808\udd9c': 'L'
'\ud808\udd9d': 'L'
'\ud808\udd9e': 'L'
'\ud808\udd9f': 'L'
'\ud808\udda0': 'L'
'\ud808\udda1': 'L'
'\ud808\udda2': 'L'
'\ud808\udda3': 'L'
'\ud808\udda4': 'L'
'\ud808\udda5': 'L'
'\ud808\udda6': 'L'
'\ud808\udda7': 'L'
'\ud808\udda8': 'L'
'\ud808\udda9': 'L'
'\ud808\uddaa': 'L'
'\ud808\uddab': 'L'
'\ud808\uddac': 'L'
'\ud808\uddad': 'L'
'\ud808\uddae': 'L'
'\ud808\uddaf': 'L'
'\ud808\uddb0': 'L'
'\ud808\uddb1': 'L'
'\ud808\uddb2': 'L'
'\ud808\uddb3': 'L'
'\ud808\uddb4': 'L'
'\ud808\uddb5': 'L'
'\ud808\uddb6': 'L'
'\ud808\uddb7': 'L'
'\ud808\uddb8': 'L'
'\ud808\uddb9': 'L'
'\ud808\uddba': 'L'
'\ud808\uddbb': 'L'
'\ud808\uddbc': 'L'
'\ud808\uddbd': 'L'
'\ud808\uddbe': 'L'
'\ud808\uddbf': 'L'
'\ud808\uddc0': 'L'
'\ud808\uddc1': 'L'
'\ud808\uddc2': 'L'
'\ud808\uddc3': 'L'
'\ud808\uddc4': 'L'
'\ud808\uddc5': 'L'
'\ud808\uddc6': 'L'
'\ud808\uddc7': 'L'
'\ud808\uddc8': 'L'
'\ud808\uddc9': 'L'
'\ud808\uddca': 'L'
'\ud808\uddcb': 'L'
'\ud808\uddcc': 'L'
'\ud808\uddcd': 'L'
'\ud808\uddce': 'L'
'\ud808\uddcf': 'L'
'\ud808\uddd0': 'L'
'\ud808\uddd1': 'L'
'\ud808\uddd2': 'L'
'\ud808\uddd3': 'L'
'\ud808\uddd4': 'L'
'\ud808\uddd5': 'L'
'\ud808\uddd6': 'L'
'\ud808\uddd7': 'L'
'\ud808\uddd8': 'L'
'\ud808\uddd9': 'L'
'\ud808\uddda': 'L'
'\ud808\udddb': 'L'
'\ud808\udddc': 'L'
'\ud808\udddd': 'L'
'\ud808\uddde': 'L'
'\ud808\udddf': 'L'
'\ud808\udde0': 'L'
'\ud808\udde1': 'L'
'\ud808\udde2': 'L'
'\ud808\udde3': 'L'
'\ud808\udde4': 'L'
'\ud808\udde5': 'L'
'\ud808\udde6': 'L'
'\ud808\udde7': 'L'
'\ud808\udde8': 'L'
'\ud808\udde9': 'L'
'\ud808\uddea': 'L'
'\ud808\uddeb': 'L'
'\ud808\uddec': 'L'
'\ud808\udded': 'L'
'\ud808\uddee': 'L'
'\ud808\uddef': 'L'
'\ud808\uddf0': 'L'
'\ud808\uddf1': 'L'
'\ud808\uddf2': 'L'
'\ud808\uddf3': 'L'
'\ud808\uddf4': 'L'
'\ud808\uddf5': 'L'
'\ud808\uddf6': 'L'
'\ud808\uddf7': 'L'
'\ud808\uddf8': 'L'
'\ud808\uddf9': 'L'
'\ud808\uddfa': 'L'
'\ud808\uddfb': 'L'
'\ud808\uddfc': 'L'
'\ud808\uddfd': 'L'
'\ud808\uddfe': 'L'
'\ud808\uddff': 'L'
'\ud808\ude00': 'L'
'\ud808\ude01': 'L'
'\ud808\ude02': 'L'
'\ud808\ude03': 'L'
'\ud808\ude04': 'L'
'\ud808\ude05': 'L'
'\ud808\ude06': 'L'
'\ud808\ude07': 'L'
'\ud808\ude08': 'L'
'\ud808\ude09': 'L'
'\ud808\ude0a': 'L'
'\ud808\ude0b': 'L'
'\ud808\ude0c': 'L'
'\ud808\ude0d': 'L'
'\ud808\ude0e': 'L'
'\ud808\ude0f': 'L'
'\ud808\ude10': 'L'
'\ud808\ude11': 'L'
'\ud808\ude12': 'L'
'\ud808\ude13': 'L'
'\ud808\ude14': 'L'
'\ud808\ude15': 'L'
'\ud808\ude16': 'L'
'\ud808\ude17': 'L'
'\ud808\ude18': 'L'
'\ud808\ude19': 'L'
'\ud808\ude1a': 'L'
'\ud808\ude1b': 'L'
'\ud808\ude1c': 'L'
'\ud808\ude1d': 'L'
'\ud808\ude1e': 'L'
'\ud808\ude1f': 'L'
'\ud808\ude20': 'L'
'\ud808\ude21': 'L'
'\ud808\ude22': 'L'
'\ud808\ude23': 'L'
'\ud808\ude24': 'L'
'\ud808\ude25': 'L'
'\ud808\ude26': 'L'
'\ud808\ude27': 'L'
'\ud808\ude28': 'L'
'\ud808\ude29': 'L'
'\ud808\ude2a': 'L'
'\ud808\ude2b': 'L'
'\ud808\ude2c': 'L'
'\ud808\ude2d': 'L'
'\ud808\ude2e': 'L'
'\ud808\ude2f': 'L'
'\ud808\ude30': 'L'
'\ud808\ude31': 'L'
'\ud808\ude32': 'L'
'\ud808\ude33': 'L'
'\ud808\ude34': 'L'
'\ud808\ude35': 'L'
'\ud808\ude36': 'L'
'\ud808\ude37': 'L'
'\ud808\ude38': 'L'
'\ud808\ude39': 'L'
'\ud808\ude3a': 'L'
'\ud808\ude3b': 'L'
'\ud808\ude3c': 'L'
'\ud808\ude3d': 'L'
'\ud808\ude3e': 'L'
'\ud808\ude3f': 'L'
'\ud808\ude40': 'L'
'\ud808\ude41': 'L'
'\ud808\ude42': 'L'
'\ud808\ude43': 'L'
'\ud808\ude44': 'L'
'\ud808\ude45': 'L'
'\ud808\ude46': 'L'
'\ud808\ude47': 'L'
'\ud808\ude48': 'L'
'\ud808\ude49': 'L'
'\ud808\ude4a': 'L'
'\ud808\ude4b': 'L'
'\ud808\ude4c': 'L'
'\ud808\ude4d': 'L'
'\ud808\ude4e': 'L'
'\ud808\ude4f': 'L'
'\ud808\ude50': 'L'
'\ud808\ude51': 'L'
'\ud808\ude52': 'L'
'\ud808\ude53': 'L'
'\ud808\ude54': 'L'
'\ud808\ude55': 'L'
'\ud808\ude56': 'L'
'\ud808\ude57': 'L'
'\ud808\ude58': 'L'
'\ud808\ude59': 'L'
'\ud808\ude5a': 'L'
'\ud808\ude5b': 'L'
'\ud808\ude5c': 'L'
'\ud808\ude5d': 'L'
'\ud808\ude5e': 'L'
'\ud808\ude5f': 'L'
'\ud808\ude60': 'L'
'\ud808\ude61': 'L'
'\ud808\ude62': 'L'
'\ud808\ude63': 'L'
'\ud808\ude64': 'L'
'\ud808\ude65': 'L'
'\ud808\ude66': 'L'
'\ud808\ude67': 'L'
'\ud808\ude68': 'L'
'\ud808\ude69': 'L'
'\ud808\ude6a': 'L'
'\ud808\ude6b': 'L'
'\ud808\ude6c': 'L'
'\ud808\ude6d': 'L'
'\ud808\ude6e': 'L'
'\ud808\ude6f': 'L'
'\ud808\ude70': 'L'
'\ud808\ude71': 'L'
'\ud808\ude72': 'L'
'\ud808\ude73': 'L'
'\ud808\ude74': 'L'
'\ud808\ude75': 'L'
'\ud808\ude76': 'L'
'\ud808\ude77': 'L'
'\ud808\ude78': 'L'
'\ud808\ude79': 'L'
'\ud808\ude7a': 'L'
'\ud808\ude7b': 'L'
'\ud808\ude7c': 'L'
'\ud808\ude7d': 'L'
'\ud808\ude7e': 'L'
'\ud808\ude7f': 'L'
'\ud808\ude80': 'L'
'\ud808\ude81': 'L'
'\ud808\ude82': 'L'
'\ud808\ude83': 'L'
'\ud808\ude84': 'L'
'\ud808\ude85': 'L'
'\ud808\ude86': 'L'
'\ud808\ude87': 'L'
'\ud808\ude88': 'L'
'\ud808\ude89': 'L'
'\ud808\ude8a': 'L'
'\ud808\ude8b': 'L'
'\ud808\ude8c': 'L'
'\ud808\ude8d': 'L'
'\ud808\ude8e': 'L'
'\ud808\ude8f': 'L'
'\ud808\ude90': 'L'
'\ud808\ude91': 'L'
'\ud808\ude92': 'L'
'\ud808\ude93': 'L'
'\ud808\ude94': 'L'
'\ud808\ude95': 'L'
'\ud808\ude96': 'L'
'\ud808\ude97': 'L'
'\ud808\ude98': 'L'
'\ud808\ude99': 'L'
'\ud808\ude9a': 'L'
'\ud808\ude9b': 'L'
'\ud808\ude9c': 'L'
'\ud808\ude9d': 'L'
'\ud808\ude9e': 'L'
'\ud808\ude9f': 'L'
'\ud808\udea0': 'L'
'\ud808\udea1': 'L'
'\ud808\udea2': 'L'
'\ud808\udea3': 'L'
'\ud808\udea4': 'L'
'\ud808\udea5': 'L'
'\ud808\udea6': 'L'
'\ud808\udea7': 'L'
'\ud808\udea8': 'L'
'\ud808\udea9': 'L'
'\ud808\udeaa': 'L'
'\ud808\udeab': 'L'
'\ud808\udeac': 'L'
'\ud808\udead': 'L'
'\ud808\udeae': 'L'
'\ud808\udeaf': 'L'
'\ud808\udeb0': 'L'
'\ud808\udeb1': 'L'
'\ud808\udeb2': 'L'
'\ud808\udeb3': 'L'
'\ud808\udeb4': 'L'
'\ud808\udeb5': 'L'
'\ud808\udeb6': 'L'
'\ud808\udeb7': 'L'
'\ud808\udeb8': 'L'
'\ud808\udeb9': 'L'
'\ud808\udeba': 'L'
'\ud808\udebb': 'L'
'\ud808\udebc': 'L'
'\ud808\udebd': 'L'
'\ud808\udebe': 'L'
'\ud808\udebf': 'L'
'\ud808\udec0': 'L'
'\ud808\udec1': 'L'
'\ud808\udec2': 'L'
'\ud808\udec3': 'L'
'\ud808\udec4': 'L'
'\ud808\udec5': 'L'
'\ud808\udec6': 'L'
'\ud808\udec7': 'L'
'\ud808\udec8': 'L'
'\ud808\udec9': 'L'
'\ud808\udeca': 'L'
'\ud808\udecb': 'L'
'\ud808\udecc': 'L'
'\ud808\udecd': 'L'
'\ud808\udece': 'L'
'\ud808\udecf': 'L'
'\ud808\uded0': 'L'
'\ud808\uded1': 'L'
'\ud808\uded2': 'L'
'\ud808\uded3': 'L'
'\ud808\uded4': 'L'
'\ud808\uded5': 'L'
'\ud808\uded6': 'L'
'\ud808\uded7': 'L'
'\ud808\uded8': 'L'
'\ud808\uded9': 'L'
'\ud808\udeda': 'L'
'\ud808\udedb': 'L'
'\ud808\udedc': 'L'
'\ud808\udedd': 'L'
'\ud808\udede': 'L'
'\ud808\udedf': 'L'
'\ud808\udee0': 'L'
'\ud808\udee1': 'L'
'\ud808\udee2': 'L'
'\ud808\udee3': 'L'
'\ud808\udee4': 'L'
'\ud808\udee5': 'L'
'\ud808\udee6': 'L'
'\ud808\udee7': 'L'
'\ud808\udee8': 'L'
'\ud808\udee9': 'L'
'\ud808\udeea': 'L'
'\ud808\udeeb': 'L'
'\ud808\udeec': 'L'
'\ud808\udeed': 'L'
'\ud808\udeee': 'L'
'\ud808\udeef': 'L'
'\ud808\udef0': 'L'
'\ud808\udef1': 'L'
'\ud808\udef2': 'L'
'\ud808\udef3': 'L'
'\ud808\udef4': 'L'
'\ud808\udef5': 'L'
'\ud808\udef6': 'L'
'\ud808\udef7': 'L'
'\ud808\udef8': 'L'
'\ud808\udef9': 'L'
'\ud808\udefa': 'L'
'\ud808\udefb': 'L'
'\ud808\udefc': 'L'
'\ud808\udefd': 'L'
'\ud808\udefe': 'L'
'\ud808\udeff': 'L'
'\ud808\udf00': 'L'
'\ud808\udf01': 'L'
'\ud808\udf02': 'L'
'\ud808\udf03': 'L'
'\ud808\udf04': 'L'
'\ud808\udf05': 'L'
'\ud808\udf06': 'L'
'\ud808\udf07': 'L'
'\ud808\udf08': 'L'
'\ud808\udf09': 'L'
'\ud808\udf0a': 'L'
'\ud808\udf0b': 'L'
'\ud808\udf0c': 'L'
'\ud808\udf0d': 'L'
'\ud808\udf0e': 'L'
'\ud808\udf0f': 'L'
'\ud808\udf10': 'L'
'\ud808\udf11': 'L'
'\ud808\udf12': 'L'
'\ud808\udf13': 'L'
'\ud808\udf14': 'L'
'\ud808\udf15': 'L'
'\ud808\udf16': 'L'
'\ud808\udf17': 'L'
'\ud808\udf18': 'L'
'\ud808\udf19': 'L'
'\ud808\udf1a': 'L'
'\ud808\udf1b': 'L'
'\ud808\udf1c': 'L'
'\ud808\udf1d': 'L'
'\ud808\udf1e': 'L'
'\ud808\udf1f': 'L'
'\ud808\udf20': 'L'
'\ud808\udf21': 'L'
'\ud808\udf22': 'L'
'\ud808\udf23': 'L'
'\ud808\udf24': 'L'
'\ud808\udf25': 'L'
'\ud808\udf26': 'L'
'\ud808\udf27': 'L'
'\ud808\udf28': 'L'
'\ud808\udf29': 'L'
'\ud808\udf2a': 'L'
'\ud808\udf2b': 'L'
'\ud808\udf2c': 'L'
'\ud808\udf2d': 'L'
'\ud808\udf2e': 'L'
'\ud808\udf2f': 'L'
'\ud808\udf30': 'L'
'\ud808\udf31': 'L'
'\ud808\udf32': 'L'
'\ud808\udf33': 'L'
'\ud808\udf34': 'L'
'\ud808\udf35': 'L'
'\ud808\udf36': 'L'
'\ud808\udf37': 'L'
'\ud808\udf38': 'L'
'\ud808\udf39': 'L'
'\ud808\udf3a': 'L'
'\ud808\udf3b': 'L'
'\ud808\udf3c': 'L'
'\ud808\udf3d': 'L'
'\ud808\udf3e': 'L'
'\ud808\udf3f': 'L'
'\ud808\udf40': 'L'
'\ud808\udf41': 'L'
'\ud808\udf42': 'L'
'\ud808\udf43': 'L'
'\ud808\udf44': 'L'
'\ud808\udf45': 'L'
'\ud808\udf46': 'L'
'\ud808\udf47': 'L'
'\ud808\udf48': 'L'
'\ud808\udf49': 'L'
'\ud808\udf4a': 'L'
'\ud808\udf4b': 'L'
'\ud808\udf4c': 'L'
'\ud808\udf4d': 'L'
'\ud808\udf4e': 'L'
'\ud808\udf4f': 'L'
'\ud808\udf50': 'L'
'\ud808\udf51': 'L'
'\ud808\udf52': 'L'
'\ud808\udf53': 'L'
'\ud808\udf54': 'L'
'\ud808\udf55': 'L'
'\ud808\udf56': 'L'
'\ud808\udf57': 'L'
'\ud808\udf58': 'L'
'\ud808\udf59': 'L'
'\ud808\udf5a': 'L'
'\ud808\udf5b': 'L'
'\ud808\udf5c': 'L'
'\ud808\udf5d': 'L'
'\ud808\udf5e': 'L'
'\ud808\udf5f': 'L'
'\ud808\udf60': 'L'
'\ud808\udf61': 'L'
'\ud808\udf62': 'L'
'\ud808\udf63': 'L'
'\ud808\udf64': 'L'
'\ud808\udf65': 'L'
'\ud808\udf66': 'L'
'\ud808\udf67': 'L'
'\ud808\udf68': 'L'
'\ud808\udf69': 'L'
'\ud808\udf6a': 'L'
'\ud808\udf6b': 'L'
'\ud808\udf6c': 'L'
'\ud808\udf6d': 'L'
'\ud808\udf6e': 'L'
'\ud808\udf6f': 'L'
'\ud808\udf70': 'L'
'\ud808\udf71': 'L'
'\ud808\udf72': 'L'
'\ud808\udf73': 'L'
'\ud808\udf74': 'L'
'\ud808\udf75': 'L'
'\ud808\udf76': 'L'
'\ud808\udf77': 'L'
'\ud808\udf78': 'L'
'\ud808\udf79': 'L'
'\ud808\udf7a': 'L'
'\ud808\udf7b': 'L'
'\ud808\udf7c': 'L'
'\ud808\udf7d': 'L'
'\ud808\udf7e': 'L'
'\ud808\udf7f': 'L'
'\ud808\udf80': 'L'
'\ud808\udf81': 'L'
'\ud808\udf82': 'L'
'\ud808\udf83': 'L'
'\ud808\udf84': 'L'
'\ud808\udf85': 'L'
'\ud808\udf86': 'L'
'\ud808\udf87': 'L'
'\ud808\udf88': 'L'
'\ud808\udf89': 'L'
'\ud808\udf8a': 'L'
'\ud808\udf8b': 'L'
'\ud808\udf8c': 'L'
'\ud808\udf8d': 'L'
'\ud808\udf8e': 'L'
'\ud808\udf8f': 'L'
'\ud808\udf90': 'L'
'\ud808\udf91': 'L'
'\ud808\udf92': 'L'
'\ud808\udf93': 'L'
'\ud808\udf94': 'L'
'\ud808\udf95': 'L'
'\ud808\udf96': 'L'
'\ud808\udf97': 'L'
'\ud808\udf98': 'L'
'\ud808\udf99': 'L'
'\ud809\udc00': 'N'
'\ud809\udc01': 'N'
'\ud809\udc02': 'N'
'\ud809\udc03': 'N'
'\ud809\udc04': 'N'
'\ud809\udc05': 'N'
'\ud809\udc06': 'N'
'\ud809\udc07': 'N'
'\ud809\udc08': 'N'
'\ud809\udc09': 'N'
'\ud809\udc0a': 'N'
'\ud809\udc0b': 'N'
'\ud809\udc0c': 'N'
'\ud809\udc0d': 'N'
'\ud809\udc0e': 'N'
'\ud809\udc0f': 'N'
'\ud809\udc10': 'N'
'\ud809\udc11': 'N'
'\ud809\udc12': 'N'
'\ud809\udc13': 'N'
'\ud809\udc14': 'N'
'\ud809\udc15': 'N'
'\ud809\udc16': 'N'
'\ud809\udc17': 'N'
'\ud809\udc18': 'N'
'\ud809\udc19': 'N'
'\ud809\udc1a': 'N'
'\ud809\udc1b': 'N'
'\ud809\udc1c': 'N'
'\ud809\udc1d': 'N'
'\ud809\udc1e': 'N'
'\ud809\udc1f': 'N'
'\ud809\udc20': 'N'
'\ud809\udc21': 'N'
'\ud809\udc22': 'N'
'\ud809\udc23': 'N'
'\ud809\udc24': 'N'
'\ud809\udc25': 'N'
'\ud809\udc26': 'N'
'\ud809\udc27': 'N'
'\ud809\udc28': 'N'
'\ud809\udc29': 'N'
'\ud809\udc2a': 'N'
'\ud809\udc2b': 'N'
'\ud809\udc2c': 'N'
'\ud809\udc2d': 'N'
'\ud809\udc2e': 'N'
'\ud809\udc2f': 'N'
'\ud809\udc30': 'N'
'\ud809\udc31': 'N'
'\ud809\udc32': 'N'
'\ud809\udc33': 'N'
'\ud809\udc34': 'N'
'\ud809\udc35': 'N'
'\ud809\udc36': 'N'
'\ud809\udc37': 'N'
'\ud809\udc38': 'N'
'\ud809\udc39': 'N'
'\ud809\udc3a': 'N'
'\ud809\udc3b': 'N'
'\ud809\udc3c': 'N'
'\ud809\udc3d': 'N'
'\ud809\udc3e': 'N'
'\ud809\udc3f': 'N'
'\ud809\udc40': 'N'
'\ud809\udc41': 'N'
'\ud809\udc42': 'N'
'\ud809\udc43': 'N'
'\ud809\udc44': 'N'
'\ud809\udc45': 'N'
'\ud809\udc46': 'N'
'\ud809\udc47': 'N'
'\ud809\udc48': 'N'
'\ud809\udc49': 'N'
'\ud809\udc4a': 'N'
'\ud809\udc4b': 'N'
'\ud809\udc4c': 'N'
'\ud809\udc4d': 'N'
'\ud809\udc4e': 'N'
'\ud809\udc4f': 'N'
'\ud809\udc50': 'N'
'\ud809\udc51': 'N'
'\ud809\udc52': 'N'
'\ud809\udc53': 'N'
'\ud809\udc54': 'N'
'\ud809\udc55': 'N'
'\ud809\udc56': 'N'
'\ud809\udc57': 'N'
'\ud809\udc58': 'N'
'\ud809\udc59': 'N'
'\ud809\udc5a': 'N'
'\ud809\udc5b': 'N'
'\ud809\udc5c': 'N'
'\ud809\udc5d': 'N'
'\ud809\udc5e': 'N'
'\ud809\udc5f': 'N'
'\ud809\udc60': 'N'
'\ud809\udc61': 'N'
'\ud809\udc62': 'N'
'\ud809\udc63': 'N'
'\ud809\udc64': 'N'
'\ud809\udc65': 'N'
'\ud809\udc66': 'N'
'\ud809\udc67': 'N'
'\ud809\udc68': 'N'
'\ud809\udc69': 'N'
'\ud809\udc6a': 'N'
'\ud809\udc6b': 'N'
'\ud809\udc6c': 'N'
'\ud809\udc6d': 'N'
'\ud809\udc6e': 'N'
'\ud809\udc80': 'L'
'\ud809\udc81': 'L'
'\ud809\udc82': 'L'
'\ud809\udc83': 'L'
'\ud809\udc84': 'L'
'\ud809\udc85': 'L'
'\ud809\udc86': 'L'
'\ud809\udc87': 'L'
'\ud809\udc88': 'L'
'\ud809\udc89': 'L'
'\ud809\udc8a': 'L'
'\ud809\udc8b': 'L'
'\ud809\udc8c': 'L'
'\ud809\udc8d': 'L'
'\ud809\udc8e': 'L'
'\ud809\udc8f': 'L'
'\ud809\udc90': 'L'
'\ud809\udc91': 'L'
'\ud809\udc92': 'L'
'\ud809\udc93': 'L'
'\ud809\udc94': 'L'
'\ud809\udc95': 'L'
'\ud809\udc96': 'L'
'\ud809\udc97': 'L'
'\ud809\udc98': 'L'
'\ud809\udc99': 'L'
'\ud809\udc9a': 'L'
'\ud809\udc9b': 'L'
'\ud809\udc9c': 'L'
'\ud809\udc9d': 'L'
'\ud809\udc9e': 'L'
'\ud809\udc9f': 'L'
'\ud809\udca0': 'L'
'\ud809\udca1': 'L'
'\ud809\udca2': 'L'
'\ud809\udca3': 'L'
'\ud809\udca4': 'L'
'\ud809\udca5': 'L'
'\ud809\udca6': 'L'
'\ud809\udca7': 'L'
'\ud809\udca8': 'L'
'\ud809\udca9': 'L'
'\ud809\udcaa': 'L'
'\ud809\udcab': 'L'
'\ud809\udcac': 'L'
'\ud809\udcad': 'L'
'\ud809\udcae': 'L'
'\ud809\udcaf': 'L'
'\ud809\udcb0': 'L'
'\ud809\udcb1': 'L'
'\ud809\udcb2': 'L'
'\ud809\udcb3': 'L'
'\ud809\udcb4': 'L'
'\ud809\udcb5': 'L'
'\ud809\udcb6': 'L'
'\ud809\udcb7': 'L'
'\ud809\udcb8': 'L'
'\ud809\udcb9': 'L'
'\ud809\udcba': 'L'
'\ud809\udcbb': 'L'
'\ud809\udcbc': 'L'
'\ud809\udcbd': 'L'
'\ud809\udcbe': 'L'
'\ud809\udcbf': 'L'
'\ud809\udcc0': 'L'
'\ud809\udcc1': 'L'
'\ud809\udcc2': 'L'
'\ud809\udcc3': 'L'
'\ud809\udcc4': 'L'
'\ud809\udcc5': 'L'
'\ud809\udcc6': 'L'
'\ud809\udcc7': 'L'
'\ud809\udcc8': 'L'
'\ud809\udcc9': 'L'
'\ud809\udcca': 'L'
'\ud809\udccb': 'L'
'\ud809\udccc': 'L'
'\ud809\udccd': 'L'
'\ud809\udcce': 'L'
'\ud809\udccf': 'L'
'\ud809\udcd0': 'L'
'\ud809\udcd1': 'L'
'\ud809\udcd2': 'L'
'\ud809\udcd3': 'L'
'\ud809\udcd4': 'L'
'\ud809\udcd5': 'L'
'\ud809\udcd6': 'L'
'\ud809\udcd7': 'L'
'\ud809\udcd8': 'L'
'\ud809\udcd9': 'L'
'\ud809\udcda': 'L'
'\ud809\udcdb': 'L'
'\ud809\udcdc': 'L'
'\ud809\udcdd': 'L'
'\ud809\udcde': 'L'
'\ud809\udcdf': 'L'
'\ud809\udce0': 'L'
'\ud809\udce1': 'L'
'\ud809\udce2': 'L'
'\ud809\udce3': 'L'
'\ud809\udce4': 'L'
'\ud809\udce5': 'L'
'\ud809\udce6': 'L'
'\ud809\udce7': 'L'
'\ud809\udce8': 'L'
'\ud809\udce9': 'L'
'\ud809\udcea': 'L'
'\ud809\udceb': 'L'
'\ud809\udcec': 'L'
'\ud809\udced': 'L'
'\ud809\udcee': 'L'
'\ud809\udcef': 'L'
'\ud809\udcf0': 'L'
'\ud809\udcf1': 'L'
'\ud809\udcf2': 'L'
'\ud809\udcf3': 'L'
'\ud809\udcf4': 'L'
'\ud809\udcf5': 'L'
'\ud809\udcf6': 'L'
'\ud809\udcf7': 'L'
'\ud809\udcf8': 'L'
'\ud809\udcf9': 'L'
'\ud809\udcfa': 'L'
'\ud809\udcfb': 'L'
'\ud809\udcfc': 'L'
'\ud809\udcfd': 'L'
'\ud809\udcfe': 'L'
'\ud809\udcff': 'L'
'\ud809\udd00': 'L'
'\ud809\udd01': 'L'
'\ud809\udd02': 'L'
'\ud809\udd03': 'L'
'\ud809\udd04': 'L'
'\ud809\udd05': 'L'
'\ud809\udd06': 'L'
'\ud809\udd07': 'L'
'\ud809\udd08': 'L'
'\ud809\udd09': 'L'
'\ud809\udd0a': 'L'
'\ud809\udd0b': 'L'
'\ud809\udd0c': 'L'
'\ud809\udd0d': 'L'
'\ud809\udd0e': 'L'
'\ud809\udd0f': 'L'
'\ud809\udd10': 'L'
'\ud809\udd11': 'L'
'\ud809\udd12': 'L'
'\ud809\udd13': 'L'
'\ud809\udd14': 'L'
'\ud809\udd15': 'L'
'\ud809\udd16': 'L'
'\ud809\udd17': 'L'
'\ud809\udd18': 'L'
'\ud809\udd19': 'L'
'\ud809\udd1a': 'L'
'\ud809\udd1b': 'L'
'\ud809\udd1c': 'L'
'\ud809\udd1d': 'L'
'\ud809\udd1e': 'L'
'\ud809\udd1f': 'L'
'\ud809\udd20': 'L'
'\ud809\udd21': 'L'
'\ud809\udd22': 'L'
'\ud809\udd23': 'L'
'\ud809\udd24': 'L'
'\ud809\udd25': 'L'
'\ud809\udd26': 'L'
'\ud809\udd27': 'L'
'\ud809\udd28': 'L'
'\ud809\udd29': 'L'
'\ud809\udd2a': 'L'
'\ud809\udd2b': 'L'
'\ud809\udd2c': 'L'
'\ud809\udd2d': 'L'
'\ud809\udd2e': 'L'
'\ud809\udd2f': 'L'
'\ud809\udd30': 'L'
'\ud809\udd31': 'L'
'\ud809\udd32': 'L'
'\ud809\udd33': 'L'
'\ud809\udd34': 'L'
'\ud809\udd35': 'L'
'\ud809\udd36': 'L'
'\ud809\udd37': 'L'
'\ud809\udd38': 'L'
'\ud809\udd39': 'L'
'\ud809\udd3a': 'L'
'\ud809\udd3b': 'L'
'\ud809\udd3c': 'L'
'\ud809\udd3d': 'L'
'\ud809\udd3e': 'L'
'\ud809\udd3f': 'L'
'\ud809\udd40': 'L'
'\ud809\udd41': 'L'
'\ud809\udd42': 'L'
'\ud809\udd43': 'L'
'\ud80c\udc00': 'L'
'\ud80c\udc01': 'L'
'\ud80c\udc02': 'L'
'\ud80c\udc03': 'L'
'\ud80c\udc04': 'L'
'\ud80c\udc05': 'L'
'\ud80c\udc06': 'L'
'\ud80c\udc07': 'L'
'\ud80c\udc08': 'L'
'\ud80c\udc09': 'L'
'\ud80c\udc0a': 'L'
'\ud80c\udc0b': 'L'
'\ud80c\udc0c': 'L'
'\ud80c\udc0d': 'L'
'\ud80c\udc0e': 'L'
'\ud80c\udc0f': 'L'
'\ud80c\udc10': 'L'
'\ud80c\udc11': 'L'
'\ud80c\udc12': 'L'
'\ud80c\udc13': 'L'
'\ud80c\udc14': 'L'
'\ud80c\udc15': 'L'
'\ud80c\udc16': 'L'
'\ud80c\udc17': 'L'
'\ud80c\udc18': 'L'
'\ud80c\udc19': 'L'
'\ud80c\udc1a': 'L'
'\ud80c\udc1b': 'L'
'\ud80c\udc1c': 'L'
'\ud80c\udc1d': 'L'
'\ud80c\udc1e': 'L'
'\ud80c\udc1f': 'L'
'\ud80c\udc20': 'L'
'\ud80c\udc21': 'L'
'\ud80c\udc22': 'L'
'\ud80c\udc23': 'L'
'\ud80c\udc24': 'L'
'\ud80c\udc25': 'L'
'\ud80c\udc26': 'L'
'\ud80c\udc27': 'L'
'\ud80c\udc28': 'L'
'\ud80c\udc29': 'L'
'\ud80c\udc2a': 'L'
'\ud80c\udc2b': 'L'
'\ud80c\udc2c': 'L'
'\ud80c\udc2d': 'L'
'\ud80c\udc2e': 'L'
'\ud80c\udc2f': 'L'
'\ud80c\udc30': 'L'
'\ud80c\udc31': 'L'
'\ud80c\udc32': 'L'
'\ud80c\udc33': 'L'
'\ud80c\udc34': 'L'
'\ud80c\udc35': 'L'
'\ud80c\udc36': 'L'
'\ud80c\udc37': 'L'
'\ud80c\udc38': 'L'
'\ud80c\udc39': 'L'
'\ud80c\udc3a': 'L'
'\ud80c\udc3b': 'L'
'\ud80c\udc3c': 'L'
'\ud80c\udc3d': 'L'
'\ud80c\udc3e': 'L'
'\ud80c\udc3f': 'L'
'\ud80c\udc40': 'L'
'\ud80c\udc41': 'L'
'\ud80c\udc42': 'L'
'\ud80c\udc43': 'L'
'\ud80c\udc44': 'L'
'\ud80c\udc45': 'L'
'\ud80c\udc46': 'L'
'\ud80c\udc47': 'L'
'\ud80c\udc48': 'L'
'\ud80c\udc49': 'L'
'\ud80c\udc4a': 'L'
'\ud80c\udc4b': 'L'
'\ud80c\udc4c': 'L'
'\ud80c\udc4d': 'L'
'\ud80c\udc4e': 'L'
'\ud80c\udc4f': 'L'
'\ud80c\udc50': 'L'
'\ud80c\udc51': 'L'
'\ud80c\udc52': 'L'
'\ud80c\udc53': 'L'
'\ud80c\udc54': 'L'
'\ud80c\udc55': 'L'
'\ud80c\udc56': 'L'
'\ud80c\udc57': 'L'
'\ud80c\udc58': 'L'
'\ud80c\udc59': 'L'
'\ud80c\udc5a': 'L'
'\ud80c\udc5b': 'L'
'\ud80c\udc5c': 'L'
'\ud80c\udc5d': 'L'
'\ud80c\udc5e': 'L'
'\ud80c\udc5f': 'L'
'\ud80c\udc60': 'L'
'\ud80c\udc61': 'L'
'\ud80c\udc62': 'L'
'\ud80c\udc63': 'L'
'\ud80c\udc64': 'L'
'\ud80c\udc65': 'L'
'\ud80c\udc66': 'L'
'\ud80c\udc67': 'L'
'\ud80c\udc68': 'L'
'\ud80c\udc69': 'L'
'\ud80c\udc6a': 'L'
'\ud80c\udc6b': 'L'
'\ud80c\udc6c': 'L'
'\ud80c\udc6d': 'L'
'\ud80c\udc6e': 'L'
'\ud80c\udc6f': 'L'
'\ud80c\udc70': 'L'
'\ud80c\udc71': 'L'
'\ud80c\udc72': 'L'
'\ud80c\udc73': 'L'
'\ud80c\udc74': 'L'
'\ud80c\udc75': 'L'
'\ud80c\udc76': 'L'
'\ud80c\udc77': 'L'
'\ud80c\udc78': 'L'
'\ud80c\udc79': 'L'
'\ud80c\udc7a': 'L'
'\ud80c\udc7b': 'L'
'\ud80c\udc7c': 'L'
'\ud80c\udc7d': 'L'
'\ud80c\udc7e': 'L'
'\ud80c\udc7f': 'L'
'\ud80c\udc80': 'L'
'\ud80c\udc81': 'L'
'\ud80c\udc82': 'L'
'\ud80c\udc83': 'L'
'\ud80c\udc84': 'L'
'\ud80c\udc85': 'L'
'\ud80c\udc86': 'L'
'\ud80c\udc87': 'L'
'\ud80c\udc88': 'L'
'\ud80c\udc89': 'L'
'\ud80c\udc8a': 'L'
'\ud80c\udc8b': 'L'
'\ud80c\udc8c': 'L'
'\ud80c\udc8d': 'L'
'\ud80c\udc8e': 'L'
'\ud80c\udc8f': 'L'
'\ud80c\udc90': 'L'
'\ud80c\udc91': 'L'
'\ud80c\udc92': 'L'
'\ud80c\udc93': 'L'
'\ud80c\udc94': 'L'
'\ud80c\udc95': 'L'
'\ud80c\udc96': 'L'
'\ud80c\udc97': 'L'
'\ud80c\udc98': 'L'
'\ud80c\udc99': 'L'
'\ud80c\udc9a': 'L'
'\ud80c\udc9b': 'L'
'\ud80c\udc9c': 'L'
'\ud80c\udc9d': 'L'
'\ud80c\udc9e': 'L'
'\ud80c\udc9f': 'L'
'\ud80c\udca0': 'L'
'\ud80c\udca1': 'L'
'\ud80c\udca2': 'L'
'\ud80c\udca3': 'L'
'\ud80c\udca4': 'L'
'\ud80c\udca5': 'L'
'\ud80c\udca6': 'L'
'\ud80c\udca7': 'L'
'\ud80c\udca8': 'L'
'\ud80c\udca9': 'L'
'\ud80c\udcaa': 'L'
'\ud80c\udcab': 'L'
'\ud80c\udcac': 'L'
'\ud80c\udcad': 'L'
'\ud80c\udcae': 'L'
'\ud80c\udcaf': 'L'
'\ud80c\udcb0': 'L'
'\ud80c\udcb1': 'L'
'\ud80c\udcb2': 'L'
'\ud80c\udcb3': 'L'
'\ud80c\udcb4': 'L'
'\ud80c\udcb5': 'L'
'\ud80c\udcb6': 'L'
'\ud80c\udcb7': 'L'
'\ud80c\udcb8': 'L'
'\ud80c\udcb9': 'L'
'\ud80c\udcba': 'L'
'\ud80c\udcbb': 'L'
'\ud80c\udcbc': 'L'
'\ud80c\udcbd': 'L'
'\ud80c\udcbe': 'L'
'\ud80c\udcbf': 'L'
'\ud80c\udcc0': 'L'
'\ud80c\udcc1': 'L'
'\ud80c\udcc2': 'L'
'\ud80c\udcc3': 'L'
'\ud80c\udcc4': 'L'
'\ud80c\udcc5': 'L'
'\ud80c\udcc6': 'L'
'\ud80c\udcc7': 'L'
'\ud80c\udcc8': 'L'
'\ud80c\udcc9': 'L'
'\ud80c\udcca': 'L'
'\ud80c\udccb': 'L'
'\ud80c\udccc': 'L'
'\ud80c\udccd': 'L'
'\ud80c\udcce': 'L'
'\ud80c\udccf': 'L'
'\ud80c\udcd0': 'L'
'\ud80c\udcd1': 'L'
'\ud80c\udcd2': 'L'
'\ud80c\udcd3': 'L'
'\ud80c\udcd4': 'L'
'\ud80c\udcd5': 'L'
'\ud80c\udcd6': 'L'
'\ud80c\udcd7': 'L'
'\ud80c\udcd8': 'L'
'\ud80c\udcd9': 'L'
'\ud80c\udcda': 'L'
'\ud80c\udcdb': 'L'
'\ud80c\udcdc': 'L'
'\ud80c\udcdd': 'L'
'\ud80c\udcde': 'L'
'\ud80c\udcdf': 'L'
'\ud80c\udce0': 'L'
'\ud80c\udce1': 'L'
'\ud80c\udce2': 'L'
'\ud80c\udce3': 'L'
'\ud80c\udce4': 'L'
'\ud80c\udce5': 'L'
'\ud80c\udce6': 'L'
'\ud80c\udce7': 'L'
'\ud80c\udce8': 'L'
'\ud80c\udce9': 'L'
'\ud80c\udcea': 'L'
'\ud80c\udceb': 'L'
'\ud80c\udcec': 'L'
'\ud80c\udced': 'L'
'\ud80c\udcee': 'L'
'\ud80c\udcef': 'L'
'\ud80c\udcf0': 'L'
'\ud80c\udcf1': 'L'
'\ud80c\udcf2': 'L'
'\ud80c\udcf3': 'L'
'\ud80c\udcf4': 'L'
'\ud80c\udcf5': 'L'
'\ud80c\udcf6': 'L'
'\ud80c\udcf7': 'L'
'\ud80c\udcf8': 'L'
'\ud80c\udcf9': 'L'
'\ud80c\udcfa': 'L'
'\ud80c\udcfb': 'L'
'\ud80c\udcfc': 'L'
'\ud80c\udcfd': 'L'
'\ud80c\udcfe': 'L'
'\ud80c\udcff': 'L'
'\ud80c\udd00': 'L'
'\ud80c\udd01': 'L'
'\ud80c\udd02': 'L'
'\ud80c\udd03': 'L'
'\ud80c\udd04': 'L'
'\ud80c\udd05': 'L'
'\ud80c\udd06': 'L'
'\ud80c\udd07': 'L'
'\ud80c\udd08': 'L'
'\ud80c\udd09': 'L'
'\ud80c\udd0a': 'L'
'\ud80c\udd0b': 'L'
'\ud80c\udd0c': 'L'
'\ud80c\udd0d': 'L'
'\ud80c\udd0e': 'L'
'\ud80c\udd0f': 'L'
'\ud80c\udd10': 'L'
'\ud80c\udd11': 'L'
'\ud80c\udd12': 'L'
'\ud80c\udd13': 'L'
'\ud80c\udd14': 'L'
'\ud80c\udd15': 'L'
'\ud80c\udd16': 'L'
'\ud80c\udd17': 'L'
'\ud80c\udd18': 'L'
'\ud80c\udd19': 'L'
'\ud80c\udd1a': 'L'
'\ud80c\udd1b': 'L'
'\ud80c\udd1c': 'L'
'\ud80c\udd1d': 'L'
'\ud80c\udd1e': 'L'
'\ud80c\udd1f': 'L'
'\ud80c\udd20': 'L'
'\ud80c\udd21': 'L'
'\ud80c\udd22': 'L'
'\ud80c\udd23': 'L'
'\ud80c\udd24': 'L'
'\ud80c\udd25': 'L'
'\ud80c\udd26': 'L'
'\ud80c\udd27': 'L'
'\ud80c\udd28': 'L'
'\ud80c\udd29': 'L'
'\ud80c\udd2a': 'L'
'\ud80c\udd2b': 'L'
'\ud80c\udd2c': 'L'
'\ud80c\udd2d': 'L'
'\ud80c\udd2e': 'L'
'\ud80c\udd2f': 'L'
'\ud80c\udd30': 'L'
'\ud80c\udd31': 'L'
'\ud80c\udd32': 'L'
'\ud80c\udd33': 'L'
'\ud80c\udd34': 'L'
'\ud80c\udd35': 'L'
'\ud80c\udd36': 'L'
'\ud80c\udd37': 'L'
'\ud80c\udd38': 'L'
'\ud80c\udd39': 'L'
'\ud80c\udd3a': 'L'
'\ud80c\udd3b': 'L'
'\ud80c\udd3c': 'L'
'\ud80c\udd3d': 'L'
'\ud80c\udd3e': 'L'
'\ud80c\udd3f': 'L'
'\ud80c\udd40': 'L'
'\ud80c\udd41': 'L'
'\ud80c\udd42': 'L'
'\ud80c\udd43': 'L'
'\ud80c\udd44': 'L'
'\ud80c\udd45': 'L'
'\ud80c\udd46': 'L'
'\ud80c\udd47': 'L'
'\ud80c\udd48': 'L'
'\ud80c\udd49': 'L'
'\ud80c\udd4a': 'L'
'\ud80c\udd4b': 'L'
'\ud80c\udd4c': 'L'
'\ud80c\udd4d': 'L'
'\ud80c\udd4e': 'L'
'\ud80c\udd4f': 'L'
'\ud80c\udd50': 'L'
'\ud80c\udd51': 'L'
'\ud80c\udd52': 'L'
'\ud80c\udd53': 'L'
'\ud80c\udd54': 'L'
'\ud80c\udd55': 'L'
'\ud80c\udd56': 'L'
'\ud80c\udd57': 'L'
'\ud80c\udd58': 'L'
'\ud80c\udd59': 'L'
'\ud80c\udd5a': 'L'
'\ud80c\udd5b': 'L'
'\ud80c\udd5c': 'L'
'\ud80c\udd5d': 'L'
'\ud80c\udd5e': 'L'
'\ud80c\udd5f': 'L'
'\ud80c\udd60': 'L'
'\ud80c\udd61': 'L'
'\ud80c\udd62': 'L'
'\ud80c\udd63': 'L'
'\ud80c\udd64': 'L'
'\ud80c\udd65': 'L'
'\ud80c\udd66': 'L'
'\ud80c\udd67': 'L'
'\ud80c\udd68': 'L'
'\ud80c\udd69': 'L'
'\ud80c\udd6a': 'L'
'\ud80c\udd6b': 'L'
'\ud80c\udd6c': 'L'
'\ud80c\udd6d': 'L'
'\ud80c\udd6e': 'L'
'\ud80c\udd6f': 'L'
'\ud80c\udd70': 'L'
'\ud80c\udd71': 'L'
'\ud80c\udd72': 'L'
'\ud80c\udd73': 'L'
'\ud80c\udd74': 'L'
'\ud80c\udd75': 'L'
'\ud80c\udd76': 'L'
'\ud80c\udd77': 'L'
'\ud80c\udd78': 'L'
'\ud80c\udd79': 'L'
'\ud80c\udd7a': 'L'
'\ud80c\udd7b': 'L'
'\ud80c\udd7c': 'L'
'\ud80c\udd7d': 'L'
'\ud80c\udd7e': 'L'
'\ud80c\udd7f': 'L'
'\ud80c\udd80': 'L'
'\ud80c\udd81': 'L'
'\ud80c\udd82': 'L'
'\ud80c\udd83': 'L'
'\ud80c\udd84': 'L'
'\ud80c\udd85': 'L'
'\ud80c\udd86': 'L'
'\ud80c\udd87': 'L'
'\ud80c\udd88': 'L'
'\ud80c\udd89': 'L'
'\ud80c\udd8a': 'L'
'\ud80c\udd8b': 'L'
'\ud80c\udd8c': 'L'
'\ud80c\udd8d': 'L'
'\ud80c\udd8e': 'L'
'\ud80c\udd8f': 'L'
'\ud80c\udd90': 'L'
'\ud80c\udd91': 'L'
'\ud80c\udd92': 'L'
'\ud80c\udd93': 'L'
'\ud80c\udd94': 'L'
'\ud80c\udd95': 'L'
'\ud80c\udd96': 'L'
'\ud80c\udd97': 'L'
'\ud80c\udd98': 'L'
'\ud80c\udd99': 'L'
'\ud80c\udd9a': 'L'
'\ud80c\udd9b': 'L'
'\ud80c\udd9c': 'L'
'\ud80c\udd9d': 'L'
'\ud80c\udd9e': 'L'
'\ud80c\udd9f': 'L'
'\ud80c\udda0': 'L'
'\ud80c\udda1': 'L'
'\ud80c\udda2': 'L'
'\ud80c\udda3': 'L'
'\ud80c\udda4': 'L'
'\ud80c\udda5': 'L'
'\ud80c\udda6': 'L'
'\ud80c\udda7': 'L'
'\ud80c\udda8': 'L'
'\ud80c\udda9': 'L'
'\ud80c\uddaa': 'L'
'\ud80c\uddab': 'L'
'\ud80c\uddac': 'L'
'\ud80c\uddad': 'L'
'\ud80c\uddae': 'L'
'\ud80c\uddaf': 'L'
'\ud80c\uddb0': 'L'
'\ud80c\uddb1': 'L'
'\ud80c\uddb2': 'L'
'\ud80c\uddb3': 'L'
'\ud80c\uddb4': 'L'
'\ud80c\uddb5': 'L'
'\ud80c\uddb6': 'L'
'\ud80c\uddb7': 'L'
'\ud80c\uddb8': 'L'
'\ud80c\uddb9': 'L'
'\ud80c\uddba': 'L'
'\ud80c\uddbb': 'L'
'\ud80c\uddbc': 'L'
'\ud80c\uddbd': 'L'
'\ud80c\uddbe': 'L'
'\ud80c\uddbf': 'L'
'\ud80c\uddc0': 'L'
'\ud80c\uddc1': 'L'
'\ud80c\uddc2': 'L'
'\ud80c\uddc3': 'L'
'\ud80c\uddc4': 'L'
'\ud80c\uddc5': 'L'
'\ud80c\uddc6': 'L'
'\ud80c\uddc7': 'L'
'\ud80c\uddc8': 'L'
'\ud80c\uddc9': 'L'
'\ud80c\uddca': 'L'
'\ud80c\uddcb': 'L'
'\ud80c\uddcc': 'L'
'\ud80c\uddcd': 'L'
'\ud80c\uddce': 'L'
'\ud80c\uddcf': 'L'
'\ud80c\uddd0': 'L'
'\ud80c\uddd1': 'L'
'\ud80c\uddd2': 'L'
'\ud80c\uddd3': 'L'
'\ud80c\uddd4': 'L'
'\ud80c\uddd5': 'L'
'\ud80c\uddd6': 'L'
'\ud80c\uddd7': 'L'
'\ud80c\uddd8': 'L'
'\ud80c\uddd9': 'L'
'\ud80c\uddda': 'L'
'\ud80c\udddb': 'L'
'\ud80c\udddc': 'L'
'\ud80c\udddd': 'L'
'\ud80c\uddde': 'L'
'\ud80c\udddf': 'L'
'\ud80c\udde0': 'L'
'\ud80c\udde1': 'L'
'\ud80c\udde2': 'L'
'\ud80c\udde3': 'L'
'\ud80c\udde4': 'L'
'\ud80c\udde5': 'L'
'\ud80c\udde6': 'L'
'\ud80c\udde7': 'L'
'\ud80c\udde8': 'L'
'\ud80c\udde9': 'L'
'\ud80c\uddea': 'L'
'\ud80c\uddeb': 'L'
'\ud80c\uddec': 'L'
'\ud80c\udded': 'L'
'\ud80c\uddee': 'L'
'\ud80c\uddef': 'L'
'\ud80c\uddf0': 'L'
'\ud80c\uddf1': 'L'
'\ud80c\uddf2': 'L'
'\ud80c\uddf3': 'L'
'\ud80c\uddf4': 'L'
'\ud80c\uddf5': 'L'
'\ud80c\uddf6': 'L'
'\ud80c\uddf7': 'L'
'\ud80c\uddf8': 'L'
'\ud80c\uddf9': 'L'
'\ud80c\uddfa': 'L'
'\ud80c\uddfb': 'L'
'\ud80c\uddfc': 'L'
'\ud80c\uddfd': 'L'
'\ud80c\uddfe': 'L'
'\ud80c\uddff': 'L'
'\ud80c\ude00': 'L'
'\ud80c\ude01': 'L'
'\ud80c\ude02': 'L'
'\ud80c\ude03': 'L'
'\ud80c\ude04': 'L'
'\ud80c\ude05': 'L'
'\ud80c\ude06': 'L'
'\ud80c\ude07': 'L'
'\ud80c\ude08': 'L'
'\ud80c\ude09': 'L'
'\ud80c\ude0a': 'L'
'\ud80c\ude0b': 'L'
'\ud80c\ude0c': 'L'
'\ud80c\ude0d': 'L'
'\ud80c\ude0e': 'L'
'\ud80c\ude0f': 'L'
'\ud80c\ude10': 'L'
'\ud80c\ude11': 'L'
'\ud80c\ude12': 'L'
'\ud80c\ude13': 'L'
'\ud80c\ude14': 'L'
'\ud80c\ude15': 'L'
'\ud80c\ude16': 'L'
'\ud80c\ude17': 'L'
'\ud80c\ude18': 'L'
'\ud80c\ude19': 'L'
'\ud80c\ude1a': 'L'
'\ud80c\ude1b': 'L'
'\ud80c\ude1c': 'L'
'\ud80c\ude1d': 'L'
'\ud80c\ude1e': 'L'
'\ud80c\ude1f': 'L'
'\ud80c\ude20': 'L'
'\ud80c\ude21': 'L'
'\ud80c\ude22': 'L'
'\ud80c\ude23': 'L'
'\ud80c\ude24': 'L'
'\ud80c\ude25': 'L'
'\ud80c\ude26': 'L'
'\ud80c\ude27': 'L'
'\ud80c\ude28': 'L'
'\ud80c\ude29': 'L'
'\ud80c\ude2a': 'L'
'\ud80c\ude2b': 'L'
'\ud80c\ude2c': 'L'
'\ud80c\ude2d': 'L'
'\ud80c\ude2e': 'L'
'\ud80c\ude2f': 'L'
'\ud80c\ude30': 'L'
'\ud80c\ude31': 'L'
'\ud80c\ude32': 'L'
'\ud80c\ude33': 'L'
'\ud80c\ude34': 'L'
'\ud80c\ude35': 'L'
'\ud80c\ude36': 'L'
'\ud80c\ude37': 'L'
'\ud80c\ude38': 'L'
'\ud80c\ude39': 'L'
'\ud80c\ude3a': 'L'
'\ud80c\ude3b': 'L'
'\ud80c\ude3c': 'L'
'\ud80c\ude3d': 'L'
'\ud80c\ude3e': 'L'
'\ud80c\ude3f': 'L'
'\ud80c\ude40': 'L'
'\ud80c\ude41': 'L'
'\ud80c\ude42': 'L'
'\ud80c\ude43': 'L'
'\ud80c\ude44': 'L'
'\ud80c\ude45': 'L'
'\ud80c\ude46': 'L'
'\ud80c\ude47': 'L'
'\ud80c\ude48': 'L'
'\ud80c\ude49': 'L'
'\ud80c\ude4a': 'L'
'\ud80c\ude4b': 'L'
'\ud80c\ude4c': 'L'
'\ud80c\ude4d': 'L'
'\ud80c\ude4e': 'L'
'\ud80c\ude4f': 'L'
'\ud80c\ude50': 'L'
'\ud80c\ude51': 'L'
'\ud80c\ude52': 'L'
'\ud80c\ude53': 'L'
'\ud80c\ude54': 'L'
'\ud80c\ude55': 'L'
'\ud80c\ude56': 'L'
'\ud80c\ude57': 'L'
'\ud80c\ude58': 'L'
'\ud80c\ude59': 'L'
'\ud80c\ude5a': 'L'
'\ud80c\ude5b': 'L'
'\ud80c\ude5c': 'L'
'\ud80c\ude5d': 'L'
'\ud80c\ude5e': 'L'
'\ud80c\ude5f': 'L'
'\ud80c\ude60': 'L'
'\ud80c\ude61': 'L'
'\ud80c\ude62': 'L'
'\ud80c\ude63': 'L'
'\ud80c\ude64': 'L'
'\ud80c\ude65': 'L'
'\ud80c\ude66': 'L'
'\ud80c\ude67': 'L'
'\ud80c\ude68': 'L'
'\ud80c\ude69': 'L'
'\ud80c\ude6a': 'L'
'\ud80c\ude6b': 'L'
'\ud80c\ude6c': 'L'
'\ud80c\ude6d': 'L'
'\ud80c\ude6e': 'L'
'\ud80c\ude6f': 'L'
'\ud80c\ude70': 'L'
'\ud80c\ude71': 'L'
'\ud80c\ude72': 'L'
'\ud80c\ude73': 'L'
'\ud80c\ude74': 'L'
'\ud80c\ude75': 'L'
'\ud80c\ude76': 'L'
'\ud80c\ude77': 'L'
'\ud80c\ude78': 'L'
'\ud80c\ude79': 'L'
'\ud80c\ude7a': 'L'
'\ud80c\ude7b': 'L'
'\ud80c\ude7c': 'L'
'\ud80c\ude7d': 'L'
'\ud80c\ude7e': 'L'
'\ud80c\ude7f': 'L'
'\ud80c\ude80': 'L'
'\ud80c\ude81': 'L'
'\ud80c\ude82': 'L'
'\ud80c\ude83': 'L'
'\ud80c\ude84': 'L'
'\ud80c\ude85': 'L'
'\ud80c\ude86': 'L'
'\ud80c\ude87': 'L'
'\ud80c\ude88': 'L'
'\ud80c\ude89': 'L'
'\ud80c\ude8a': 'L'
'\ud80c\ude8b': 'L'
'\ud80c\ude8c': 'L'
'\ud80c\ude8d': 'L'
'\ud80c\ude8e': 'L'
'\ud80c\ude8f': 'L'
'\ud80c\ude90': 'L'
'\ud80c\ude91': 'L'
'\ud80c\ude92': 'L'
'\ud80c\ude93': 'L'
'\ud80c\ude94': 'L'
'\ud80c\ude95': 'L'
'\ud80c\ude96': 'L'
'\ud80c\ude97': 'L'
'\ud80c\ude98': 'L'
'\ud80c\ude99': 'L'
'\ud80c\ude9a': 'L'
'\ud80c\ude9b': 'L'
'\ud80c\ude9c': 'L'
'\ud80c\ude9d': 'L'
'\ud80c\ude9e': 'L'
'\ud80c\ude9f': 'L'
'\ud80c\udea0': 'L'
'\ud80c\udea1': 'L'
'\ud80c\udea2': 'L'
'\ud80c\udea3': 'L'
'\ud80c\udea4': 'L'
'\ud80c\udea5': 'L'
'\ud80c\udea6': 'L'
'\ud80c\udea7': 'L'
'\ud80c\udea8': 'L'
'\ud80c\udea9': 'L'
'\ud80c\udeaa': 'L'
'\ud80c\udeab': 'L'
'\ud80c\udeac': 'L'
'\ud80c\udead': 'L'
'\ud80c\udeae': 'L'
'\ud80c\udeaf': 'L'
'\ud80c\udeb0': 'L'
'\ud80c\udeb1': 'L'
'\ud80c\udeb2': 'L'
'\ud80c\udeb3': 'L'
'\ud80c\udeb4': 'L'
'\ud80c\udeb5': 'L'
'\ud80c\udeb6': 'L'
'\ud80c\udeb7': 'L'
'\ud80c\udeb8': 'L'
'\ud80c\udeb9': 'L'
'\ud80c\udeba': 'L'
'\ud80c\udebb': 'L'
'\ud80c\udebc': 'L'
'\ud80c\udebd': 'L'
'\ud80c\udebe': 'L'
'\ud80c\udebf': 'L'
'\ud80c\udec0': 'L'
'\ud80c\udec1': 'L'
'\ud80c\udec2': 'L'
'\ud80c\udec3': 'L'
'\ud80c\udec4': 'L'
'\ud80c\udec5': 'L'
'\ud80c\udec6': 'L'
'\ud80c\udec7': 'L'
'\ud80c\udec8': 'L'
'\ud80c\udec9': 'L'
'\ud80c\udeca': 'L'
'\ud80c\udecb': 'L'
'\ud80c\udecc': 'L'
'\ud80c\udecd': 'L'
'\ud80c\udece': 'L'
'\ud80c\udecf': 'L'
'\ud80c\uded0': 'L'
'\ud80c\uded1': 'L'
'\ud80c\uded2': 'L'
'\ud80c\uded3': 'L'
'\ud80c\uded4': 'L'
'\ud80c\uded5': 'L'
'\ud80c\uded6': 'L'
'\ud80c\uded7': 'L'
'\ud80c\uded8': 'L'
'\ud80c\uded9': 'L'
'\ud80c\udeda': 'L'
'\ud80c\udedb': 'L'
'\ud80c\udedc': 'L'
'\ud80c\udedd': 'L'
'\ud80c\udede': 'L'
'\ud80c\udedf': 'L'
'\ud80c\udee0': 'L'
'\ud80c\udee1': 'L'
'\ud80c\udee2': 'L'
'\ud80c\udee3': 'L'
'\ud80c\udee4': 'L'
'\ud80c\udee5': 'L'
'\ud80c\udee6': 'L'
'\ud80c\udee7': 'L'
'\ud80c\udee8': 'L'
'\ud80c\udee9': 'L'
'\ud80c\udeea': 'L'
'\ud80c\udeeb': 'L'
'\ud80c\udeec': 'L'
'\ud80c\udeed': 'L'
'\ud80c\udeee': 'L'
'\ud80c\udeef': 'L'
'\ud80c\udef0': 'L'
'\ud80c\udef1': 'L'
'\ud80c\udef2': 'L'
'\ud80c\udef3': 'L'
'\ud80c\udef4': 'L'
'\ud80c\udef5': 'L'
'\ud80c\udef6': 'L'
'\ud80c\udef7': 'L'
'\ud80c\udef8': 'L'
'\ud80c\udef9': 'L'
'\ud80c\udefa': 'L'
'\ud80c\udefb': 'L'
'\ud80c\udefc': 'L'
'\ud80c\udefd': 'L'
'\ud80c\udefe': 'L'
'\ud80c\udeff': 'L'
'\ud80c\udf00': 'L'
'\ud80c\udf01': 'L'
'\ud80c\udf02': 'L'
'\ud80c\udf03': 'L'
'\ud80c\udf04': 'L'
'\ud80c\udf05': 'L'
'\ud80c\udf06': 'L'
'\ud80c\udf07': 'L'
'\ud80c\udf08': 'L'
'\ud80c\udf09': 'L'
'\ud80c\udf0a': 'L'
'\ud80c\udf0b': 'L'
'\ud80c\udf0c': 'L'
'\ud80c\udf0d': 'L'
'\ud80c\udf0e': 'L'
'\ud80c\udf0f': 'L'
'\ud80c\udf10': 'L'
'\ud80c\udf11': 'L'
'\ud80c\udf12': 'L'
'\ud80c\udf13': 'L'
'\ud80c\udf14': 'L'
'\ud80c\udf15': 'L'
'\ud80c\udf16': 'L'
'\ud80c\udf17': 'L'
'\ud80c\udf18': 'L'
'\ud80c\udf19': 'L'
'\ud80c\udf1a': 'L'
'\ud80c\udf1b': 'L'
'\ud80c\udf1c': 'L'
'\ud80c\udf1d': 'L'
'\ud80c\udf1e': 'L'
'\ud80c\udf1f': 'L'
'\ud80c\udf20': 'L'
'\ud80c\udf21': 'L'
'\ud80c\udf22': 'L'
'\ud80c\udf23': 'L'
'\ud80c\udf24': 'L'
'\ud80c\udf25': 'L'
'\ud80c\udf26': 'L'
'\ud80c\udf27': 'L'
'\ud80c\udf28': 'L'
'\ud80c\udf29': 'L'
'\ud80c\udf2a': 'L'
'\ud80c\udf2b': 'L'
'\ud80c\udf2c': 'L'
'\ud80c\udf2d': 'L'
'\ud80c\udf2e': 'L'
'\ud80c\udf2f': 'L'
'\ud80c\udf30': 'L'
'\ud80c\udf31': 'L'
'\ud80c\udf32': 'L'
'\ud80c\udf33': 'L'
'\ud80c\udf34': 'L'
'\ud80c\udf35': 'L'
'\ud80c\udf36': 'L'
'\ud80c\udf37': 'L'
'\ud80c\udf38': 'L'
'\ud80c\udf39': 'L'
'\ud80c\udf3a': 'L'
'\ud80c\udf3b': 'L'
'\ud80c\udf3c': 'L'
'\ud80c\udf3d': 'L'
'\ud80c\udf3e': 'L'
'\ud80c\udf3f': 'L'
'\ud80c\udf40': 'L'
'\ud80c\udf41': 'L'
'\ud80c\udf42': 'L'
'\ud80c\udf43': 'L'
'\ud80c\udf44': 'L'
'\ud80c\udf45': 'L'
'\ud80c\udf46': 'L'
'\ud80c\udf47': 'L'
'\ud80c\udf48': 'L'
'\ud80c\udf49': 'L'
'\ud80c\udf4a': 'L'
'\ud80c\udf4b': 'L'
'\ud80c\udf4c': 'L'
'\ud80c\udf4d': 'L'
'\ud80c\udf4e': 'L'
'\ud80c\udf4f': 'L'
'\ud80c\udf50': 'L'
'\ud80c\udf51': 'L'
'\ud80c\udf52': 'L'
'\ud80c\udf53': 'L'
'\ud80c\udf54': 'L'
'\ud80c\udf55': 'L'
'\ud80c\udf56': 'L'
'\ud80c\udf57': 'L'
'\ud80c\udf58': 'L'
'\ud80c\udf59': 'L'
'\ud80c\udf5a': 'L'
'\ud80c\udf5b': 'L'
'\ud80c\udf5c': 'L'
'\ud80c\udf5d': 'L'
'\ud80c\udf5e': 'L'
'\ud80c\udf5f': 'L'
'\ud80c\udf60': 'L'
'\ud80c\udf61': 'L'
'\ud80c\udf62': 'L'
'\ud80c\udf63': 'L'
'\ud80c\udf64': 'L'
'\ud80c\udf65': 'L'
'\ud80c\udf66': 'L'
'\ud80c\udf67': 'L'
'\ud80c\udf68': 'L'
'\ud80c\udf69': 'L'
'\ud80c\udf6a': 'L'
'\ud80c\udf6b': 'L'
'\ud80c\udf6c': 'L'
'\ud80c\udf6d': 'L'
'\ud80c\udf6e': 'L'
'\ud80c\udf6f': 'L'
'\ud80c\udf70': 'L'
'\ud80c\udf71': 'L'
'\ud80c\udf72': 'L'
'\ud80c\udf73': 'L'
'\ud80c\udf74': 'L'
'\ud80c\udf75': 'L'
'\ud80c\udf76': 'L'
'\ud80c\udf77': 'L'
'\ud80c\udf78': 'L'
'\ud80c\udf79': 'L'
'\ud80c\udf7a': 'L'
'\ud80c\udf7b': 'L'
'\ud80c\udf7c': 'L'
'\ud80c\udf7d': 'L'
'\ud80c\udf7e': 'L'
'\ud80c\udf7f': 'L'
'\ud80c\udf80': 'L'
'\ud80c\udf81': 'L'
'\ud80c\udf82': 'L'
'\ud80c\udf83': 'L'
'\ud80c\udf84': 'L'
'\ud80c\udf85': 'L'
'\ud80c\udf86': 'L'
'\ud80c\udf87': 'L'
'\ud80c\udf88': 'L'
'\ud80c\udf89': 'L'
'\ud80c\udf8a': 'L'
'\ud80c\udf8b': 'L'
'\ud80c\udf8c': 'L'
'\ud80c\udf8d': 'L'
'\ud80c\udf8e': 'L'
'\ud80c\udf8f': 'L'
'\ud80c\udf90': 'L'
'\ud80c\udf91': 'L'
'\ud80c\udf92': 'L'
'\ud80c\udf93': 'L'
'\ud80c\udf94': 'L'
'\ud80c\udf95': 'L'
'\ud80c\udf96': 'L'
'\ud80c\udf97': 'L'
'\ud80c\udf98': 'L'
'\ud80c\udf99': 'L'
'\ud80c\udf9a': 'L'
'\ud80c\udf9b': 'L'
'\ud80c\udf9c': 'L'
'\ud80c\udf9d': 'L'
'\ud80c\udf9e': 'L'
'\ud80c\udf9f': 'L'
'\ud80c\udfa0': 'L'
'\ud80c\udfa1': 'L'
'\ud80c\udfa2': 'L'
'\ud80c\udfa3': 'L'
'\ud80c\udfa4': 'L'
'\ud80c\udfa5': 'L'
'\ud80c\udfa6': 'L'
'\ud80c\udfa7': 'L'
'\ud80c\udfa8': 'L'
'\ud80c\udfa9': 'L'
'\ud80c\udfaa': 'L'
'\ud80c\udfab': 'L'
'\ud80c\udfac': 'L'
'\ud80c\udfad': 'L'
'\ud80c\udfae': 'L'
'\ud80c\udfaf': 'L'
'\ud80c\udfb0': 'L'
'\ud80c\udfb1': 'L'
'\ud80c\udfb2': 'L'
'\ud80c\udfb3': 'L'
'\ud80c\udfb4': 'L'
'\ud80c\udfb5': 'L'
'\ud80c\udfb6': 'L'
'\ud80c\udfb7': 'L'
'\ud80c\udfb8': 'L'
'\ud80c\udfb9': 'L'
'\ud80c\udfba': 'L'
'\ud80c\udfbb': 'L'
'\ud80c\udfbc': 'L'
'\ud80c\udfbd': 'L'
'\ud80c\udfbe': 'L'
'\ud80c\udfbf': 'L'
'\ud80c\udfc0': 'L'
'\ud80c\udfc1': 'L'
'\ud80c\udfc2': 'L'
'\ud80c\udfc3': 'L'
'\ud80c\udfc4': 'L'
'\ud80c\udfc5': 'L'
'\ud80c\udfc6': 'L'
'\ud80c\udfc7': 'L'
'\ud80c\udfc8': 'L'
'\ud80c\udfc9': 'L'
'\ud80c\udfca': 'L'
'\ud80c\udfcb': 'L'
'\ud80c\udfcc': 'L'
'\ud80c\udfcd': 'L'
'\ud80c\udfce': 'L'
'\ud80c\udfcf': 'L'
'\ud80c\udfd0': 'L'
'\ud80c\udfd1': 'L'
'\ud80c\udfd2': 'L'
'\ud80c\udfd3': 'L'
'\ud80c\udfd4': 'L'
'\ud80c\udfd5': 'L'
'\ud80c\udfd6': 'L'
'\ud80c\udfd7': 'L'
'\ud80c\udfd8': 'L'
'\ud80c\udfd9': 'L'
'\ud80c\udfda': 'L'
'\ud80c\udfdb': 'L'
'\ud80c\udfdc': 'L'
'\ud80c\udfdd': 'L'
'\ud80c\udfde': 'L'
'\ud80c\udfdf': 'L'
'\ud80c\udfe0': 'L'
'\ud80c\udfe1': 'L'
'\ud80c\udfe2': 'L'
'\ud80c\udfe3': 'L'
'\ud80c\udfe4': 'L'
'\ud80c\udfe5': 'L'
'\ud80c\udfe6': 'L'
'\ud80c\udfe7': 'L'
'\ud80c\udfe8': 'L'
'\ud80c\udfe9': 'L'
'\ud80c\udfea': 'L'
'\ud80c\udfeb': 'L'
'\ud80c\udfec': 'L'
'\ud80c\udfed': 'L'
'\ud80c\udfee': 'L'
'\ud80c\udfef': 'L'
'\ud80c\udff0': 'L'
'\ud80c\udff1': 'L'
'\ud80c\udff2': 'L'
'\ud80c\udff3': 'L'
'\ud80c\udff4': 'L'
'\ud80c\udff5': 'L'
'\ud80c\udff6': 'L'
'\ud80c\udff7': 'L'
'\ud80c\udff8': 'L'
'\ud80c\udff9': 'L'
'\ud80c\udffa': 'L'
'\ud80c\udffb': 'L'
'\ud80c\udffc': 'L'
'\ud80c\udffd': 'L'
'\ud80c\udffe': 'L'
'\ud80c\udfff': 'L'
'\ud80d\udc00': 'L'
'\ud80d\udc01': 'L'
'\ud80d\udc02': 'L'
'\ud80d\udc03': 'L'
'\ud80d\udc04': 'L'
'\ud80d\udc05': 'L'
'\ud80d\udc06': 'L'
'\ud80d\udc07': 'L'
'\ud80d\udc08': 'L'
'\ud80d\udc09': 'L'
'\ud80d\udc0a': 'L'
'\ud80d\udc0b': 'L'
'\ud80d\udc0c': 'L'
'\ud80d\udc0d': 'L'
'\ud80d\udc0e': 'L'
'\ud80d\udc0f': 'L'
'\ud80d\udc10': 'L'
'\ud80d\udc11': 'L'
'\ud80d\udc12': 'L'
'\ud80d\udc13': 'L'
'\ud80d\udc14': 'L'
'\ud80d\udc15': 'L'
'\ud80d\udc16': 'L'
'\ud80d\udc17': 'L'
'\ud80d\udc18': 'L'
'\ud80d\udc19': 'L'
'\ud80d\udc1a': 'L'
'\ud80d\udc1b': 'L'
'\ud80d\udc1c': 'L'
'\ud80d\udc1d': 'L'
'\ud80d\udc1e': 'L'
'\ud80d\udc1f': 'L'
'\ud80d\udc20': 'L'
'\ud80d\udc21': 'L'
'\ud80d\udc22': 'L'
'\ud80d\udc23': 'L'
'\ud80d\udc24': 'L'
'\ud80d\udc25': 'L'
'\ud80d\udc26': 'L'
'\ud80d\udc27': 'L'
'\ud80d\udc28': 'L'
'\ud80d\udc29': 'L'
'\ud80d\udc2a': 'L'
'\ud80d\udc2b': 'L'
'\ud80d\udc2c': 'L'
'\ud80d\udc2d': 'L'
'\ud80d\udc2e': 'L'
'\ud811\udc00': 'L'
'\ud811\udc01': 'L'
'\ud811\udc02': 'L'
'\ud811\udc03': 'L'
'\ud811\udc04': 'L'
'\ud811\udc05': 'L'
'\ud811\udc06': 'L'
'\ud811\udc07': 'L'
'\ud811\udc08': 'L'
'\ud811\udc09': 'L'
'\ud811\udc0a': 'L'
'\ud811\udc0b': 'L'
'\ud811\udc0c': 'L'
'\ud811\udc0d': 'L'
'\ud811\udc0e': 'L'
'\ud811\udc0f': 'L'
'\ud811\udc10': 'L'
'\ud811\udc11': 'L'
'\ud811\udc12': 'L'
'\ud811\udc13': 'L'
'\ud811\udc14': 'L'
'\ud811\udc15': 'L'
'\ud811\udc16': 'L'
'\ud811\udc17': 'L'
'\ud811\udc18': 'L'
'\ud811\udc19': 'L'
'\ud811\udc1a': 'L'
'\ud811\udc1b': 'L'
'\ud811\udc1c': 'L'
'\ud811\udc1d': 'L'
'\ud811\udc1e': 'L'
'\ud811\udc1f': 'L'
'\ud811\udc20': 'L'
'\ud811\udc21': 'L'
'\ud811\udc22': 'L'
'\ud811\udc23': 'L'
'\ud811\udc24': 'L'
'\ud811\udc25': 'L'
'\ud811\udc26': 'L'
'\ud811\udc27': 'L'
'\ud811\udc28': 'L'
'\ud811\udc29': 'L'
'\ud811\udc2a': 'L'
'\ud811\udc2b': 'L'
'\ud811\udc2c': 'L'
'\ud811\udc2d': 'L'
'\ud811\udc2e': 'L'
'\ud811\udc2f': 'L'
'\ud811\udc30': 'L'
'\ud811\udc31': 'L'
'\ud811\udc32': 'L'
'\ud811\udc33': 'L'
'\ud811\udc34': 'L'
'\ud811\udc35': 'L'
'\ud811\udc36': 'L'
'\ud811\udc37': 'L'
'\ud811\udc38': 'L'
'\ud811\udc39': 'L'
'\ud811\udc3a': 'L'
'\ud811\udc3b': 'L'
'\ud811\udc3c': 'L'
'\ud811\udc3d': 'L'
'\ud811\udc3e': 'L'
'\ud811\udc3f': 'L'
'\ud811\udc40': 'L'
'\ud811\udc41': 'L'
'\ud811\udc42': 'L'
'\ud811\udc43': 'L'
'\ud811\udc44': 'L'
'\ud811\udc45': 'L'
'\ud811\udc46': 'L'
'\ud811\udc47': 'L'
'\ud811\udc48': 'L'
'\ud811\udc49': 'L'
'\ud811\udc4a': 'L'
'\ud811\udc4b': 'L'
'\ud811\udc4c': 'L'
'\ud811\udc4d': 'L'
'\ud811\udc4e': 'L'
'\ud811\udc4f': 'L'
'\ud811\udc50': 'L'
'\ud811\udc51': 'L'
'\ud811\udc52': 'L'
'\ud811\udc53': 'L'
'\ud811\udc54': 'L'
'\ud811\udc55': 'L'
'\ud811\udc56': 'L'
'\ud811\udc57': 'L'
'\ud811\udc58': 'L'
'\ud811\udc59': 'L'
'\ud811\udc5a': 'L'
'\ud811\udc5b': 'L'
'\ud811\udc5c': 'L'
'\ud811\udc5d': 'L'
'\ud811\udc5e': 'L'
'\ud811\udc5f': 'L'
'\ud811\udc60': 'L'
'\ud811\udc61': 'L'
'\ud811\udc62': 'L'
'\ud811\udc63': 'L'
'\ud811\udc64': 'L'
'\ud811\udc65': 'L'
'\ud811\udc66': 'L'
'\ud811\udc67': 'L'
'\ud811\udc68': 'L'
'\ud811\udc69': 'L'
'\ud811\udc6a': 'L'
'\ud811\udc6b': 'L'
'\ud811\udc6c': 'L'
'\ud811\udc6d': 'L'
'\ud811\udc6e': 'L'
'\ud811\udc6f': 'L'
'\ud811\udc70': 'L'
'\ud811\udc71': 'L'
'\ud811\udc72': 'L'
'\ud811\udc73': 'L'
'\ud811\udc74': 'L'
'\ud811\udc75': 'L'
'\ud811\udc76': 'L'
'\ud811\udc77': 'L'
'\ud811\udc78': 'L'
'\ud811\udc79': 'L'
'\ud811\udc7a': 'L'
'\ud811\udc7b': 'L'
'\ud811\udc7c': 'L'
'\ud811\udc7d': 'L'
'\ud811\udc7e': 'L'
'\ud811\udc7f': 'L'
'\ud811\udc80': 'L'
'\ud811\udc81': 'L'
'\ud811\udc82': 'L'
'\ud811\udc83': 'L'
'\ud811\udc84': 'L'
'\ud811\udc85': 'L'
'\ud811\udc86': 'L'
'\ud811\udc87': 'L'
'\ud811\udc88': 'L'
'\ud811\udc89': 'L'
'\ud811\udc8a': 'L'
'\ud811\udc8b': 'L'
'\ud811\udc8c': 'L'
'\ud811\udc8d': 'L'
'\ud811\udc8e': 'L'
'\ud811\udc8f': 'L'
'\ud811\udc90': 'L'
'\ud811\udc91': 'L'
'\ud811\udc92': 'L'
'\ud811\udc93': 'L'
'\ud811\udc94': 'L'
'\ud811\udc95': 'L'
'\ud811\udc96': 'L'
'\ud811\udc97': 'L'
'\ud811\udc98': 'L'
'\ud811\udc99': 'L'
'\ud811\udc9a': 'L'
'\ud811\udc9b': 'L'
'\ud811\udc9c': 'L'
'\ud811\udc9d': 'L'
'\ud811\udc9e': 'L'
'\ud811\udc9f': 'L'
'\ud811\udca0': 'L'
'\ud811\udca1': 'L'
'\ud811\udca2': 'L'
'\ud811\udca3': 'L'
'\ud811\udca4': 'L'
'\ud811\udca5': 'L'
'\ud811\udca6': 'L'
'\ud811\udca7': 'L'
'\ud811\udca8': 'L'
'\ud811\udca9': 'L'
'\ud811\udcaa': 'L'
'\ud811\udcab': 'L'
'\ud811\udcac': 'L'
'\ud811\udcad': 'L'
'\ud811\udcae': 'L'
'\ud811\udcaf': 'L'
'\ud811\udcb0': 'L'
'\ud811\udcb1': 'L'
'\ud811\udcb2': 'L'
'\ud811\udcb3': 'L'
'\ud811\udcb4': 'L'
'\ud811\udcb5': 'L'
'\ud811\udcb6': 'L'
'\ud811\udcb7': 'L'
'\ud811\udcb8': 'L'
'\ud811\udcb9': 'L'
'\ud811\udcba': 'L'
'\ud811\udcbb': 'L'
'\ud811\udcbc': 'L'
'\ud811\udcbd': 'L'
'\ud811\udcbe': 'L'
'\ud811\udcbf': 'L'
'\ud811\udcc0': 'L'
'\ud811\udcc1': 'L'
'\ud811\udcc2': 'L'
'\ud811\udcc3': 'L'
'\ud811\udcc4': 'L'
'\ud811\udcc5': 'L'
'\ud811\udcc6': 'L'
'\ud811\udcc7': 'L'
'\ud811\udcc8': 'L'
'\ud811\udcc9': 'L'
'\ud811\udcca': 'L'
'\ud811\udccb': 'L'
'\ud811\udccc': 'L'
'\ud811\udccd': 'L'
'\ud811\udcce': 'L'
'\ud811\udccf': 'L'
'\ud811\udcd0': 'L'
'\ud811\udcd1': 'L'
'\ud811\udcd2': 'L'
'\ud811\udcd3': 'L'
'\ud811\udcd4': 'L'
'\ud811\udcd5': 'L'
'\ud811\udcd6': 'L'
'\ud811\udcd7': 'L'
'\ud811\udcd8': 'L'
'\ud811\udcd9': 'L'
'\ud811\udcda': 'L'
'\ud811\udcdb': 'L'
'\ud811\udcdc': 'L'
'\ud811\udcdd': 'L'
'\ud811\udcde': 'L'
'\ud811\udcdf': 'L'
'\ud811\udce0': 'L'
'\ud811\udce1': 'L'
'\ud811\udce2': 'L'
'\ud811\udce3': 'L'
'\ud811\udce4': 'L'
'\ud811\udce5': 'L'
'\ud811\udce6': 'L'
'\ud811\udce7': 'L'
'\ud811\udce8': 'L'
'\ud811\udce9': 'L'
'\ud811\udcea': 'L'
'\ud811\udceb': 'L'
'\ud811\udcec': 'L'
'\ud811\udced': 'L'
'\ud811\udcee': 'L'
'\ud811\udcef': 'L'
'\ud811\udcf0': 'L'
'\ud811\udcf1': 'L'
'\ud811\udcf2': 'L'
'\ud811\udcf3': 'L'
'\ud811\udcf4': 'L'
'\ud811\udcf5': 'L'
'\ud811\udcf6': 'L'
'\ud811\udcf7': 'L'
'\ud811\udcf8': 'L'
'\ud811\udcf9': 'L'
'\ud811\udcfa': 'L'
'\ud811\udcfb': 'L'
'\ud811\udcfc': 'L'
'\ud811\udcfd': 'L'
'\ud811\udcfe': 'L'
'\ud811\udcff': 'L'
'\ud811\udd00': 'L'
'\ud811\udd01': 'L'
'\ud811\udd02': 'L'
'\ud811\udd03': 'L'
'\ud811\udd04': 'L'
'\ud811\udd05': 'L'
'\ud811\udd06': 'L'
'\ud811\udd07': 'L'
'\ud811\udd08': 'L'
'\ud811\udd09': 'L'
'\ud811\udd0a': 'L'
'\ud811\udd0b': 'L'
'\ud811\udd0c': 'L'
'\ud811\udd0d': 'L'
'\ud811\udd0e': 'L'
'\ud811\udd0f': 'L'
'\ud811\udd10': 'L'
'\ud811\udd11': 'L'
'\ud811\udd12': 'L'
'\ud811\udd13': 'L'
'\ud811\udd14': 'L'
'\ud811\udd15': 'L'
'\ud811\udd16': 'L'
'\ud811\udd17': 'L'
'\ud811\udd18': 'L'
'\ud811\udd19': 'L'
'\ud811\udd1a': 'L'
'\ud811\udd1b': 'L'
'\ud811\udd1c': 'L'
'\ud811\udd1d': 'L'
'\ud811\udd1e': 'L'
'\ud811\udd1f': 'L'
'\ud811\udd20': 'L'
'\ud811\udd21': 'L'
'\ud811\udd22': 'L'
'\ud811\udd23': 'L'
'\ud811\udd24': 'L'
'\ud811\udd25': 'L'
'\ud811\udd26': 'L'
'\ud811\udd27': 'L'
'\ud811\udd28': 'L'
'\ud811\udd29': 'L'
'\ud811\udd2a': 'L'
'\ud811\udd2b': 'L'
'\ud811\udd2c': 'L'
'\ud811\udd2d': 'L'
'\ud811\udd2e': 'L'
'\ud811\udd2f': 'L'
'\ud811\udd30': 'L'
'\ud811\udd31': 'L'
'\ud811\udd32': 'L'
'\ud811\udd33': 'L'
'\ud811\udd34': 'L'
'\ud811\udd35': 'L'
'\ud811\udd36': 'L'
'\ud811\udd37': 'L'
'\ud811\udd38': 'L'
'\ud811\udd39': 'L'
'\ud811\udd3a': 'L'
'\ud811\udd3b': 'L'
'\ud811\udd3c': 'L'
'\ud811\udd3d': 'L'
'\ud811\udd3e': 'L'
'\ud811\udd3f': 'L'
'\ud811\udd40': 'L'
'\ud811\udd41': 'L'
'\ud811\udd42': 'L'
'\ud811\udd43': 'L'
'\ud811\udd44': 'L'
'\ud811\udd45': 'L'
'\ud811\udd46': 'L'
'\ud811\udd47': 'L'
'\ud811\udd48': 'L'
'\ud811\udd49': 'L'
'\ud811\udd4a': 'L'
'\ud811\udd4b': 'L'
'\ud811\udd4c': 'L'
'\ud811\udd4d': 'L'
'\ud811\udd4e': 'L'
'\ud811\udd4f': 'L'
'\ud811\udd50': 'L'
'\ud811\udd51': 'L'
'\ud811\udd52': 'L'
'\ud811\udd53': 'L'
'\ud811\udd54': 'L'
'\ud811\udd55': 'L'
'\ud811\udd56': 'L'
'\ud811\udd57': 'L'
'\ud811\udd58': 'L'
'\ud811\udd59': 'L'
'\ud811\udd5a': 'L'
'\ud811\udd5b': 'L'
'\ud811\udd5c': 'L'
'\ud811\udd5d': 'L'
'\ud811\udd5e': 'L'
'\ud811\udd5f': 'L'
'\ud811\udd60': 'L'
'\ud811\udd61': 'L'
'\ud811\udd62': 'L'
'\ud811\udd63': 'L'
'\ud811\udd64': 'L'
'\ud811\udd65': 'L'
'\ud811\udd66': 'L'
'\ud811\udd67': 'L'
'\ud811\udd68': 'L'
'\ud811\udd69': 'L'
'\ud811\udd6a': 'L'
'\ud811\udd6b': 'L'
'\ud811\udd6c': 'L'
'\ud811\udd6d': 'L'
'\ud811\udd6e': 'L'
'\ud811\udd6f': 'L'
'\ud811\udd70': 'L'
'\ud811\udd71': 'L'
'\ud811\udd72': 'L'
'\ud811\udd73': 'L'
'\ud811\udd74': 'L'
'\ud811\udd75': 'L'
'\ud811\udd76': 'L'
'\ud811\udd77': 'L'
'\ud811\udd78': 'L'
'\ud811\udd79': 'L'
'\ud811\udd7a': 'L'
'\ud811\udd7b': 'L'
'\ud811\udd7c': 'L'
'\ud811\udd7d': 'L'
'\ud811\udd7e': 'L'
'\ud811\udd7f': 'L'
'\ud811\udd80': 'L'
'\ud811\udd81': 'L'
'\ud811\udd82': 'L'
'\ud811\udd83': 'L'
'\ud811\udd84': 'L'
'\ud811\udd85': 'L'
'\ud811\udd86': 'L'
'\ud811\udd87': 'L'
'\ud811\udd88': 'L'
'\ud811\udd89': 'L'
'\ud811\udd8a': 'L'
'\ud811\udd8b': 'L'
'\ud811\udd8c': 'L'
'\ud811\udd8d': 'L'
'\ud811\udd8e': 'L'
'\ud811\udd8f': 'L'
'\ud811\udd90': 'L'
'\ud811\udd91': 'L'
'\ud811\udd92': 'L'
'\ud811\udd93': 'L'
'\ud811\udd94': 'L'
'\ud811\udd95': 'L'
'\ud811\udd96': 'L'
'\ud811\udd97': 'L'
'\ud811\udd98': 'L'
'\ud811\udd99': 'L'
'\ud811\udd9a': 'L'
'\ud811\udd9b': 'L'
'\ud811\udd9c': 'L'
'\ud811\udd9d': 'L'
'\ud811\udd9e': 'L'
'\ud811\udd9f': 'L'
'\ud811\udda0': 'L'
'\ud811\udda1': 'L'
'\ud811\udda2': 'L'
'\ud811\udda3': 'L'
'\ud811\udda4': 'L'
'\ud811\udda5': 'L'
'\ud811\udda6': 'L'
'\ud811\udda7': 'L'
'\ud811\udda8': 'L'
'\ud811\udda9': 'L'
'\ud811\uddaa': 'L'
'\ud811\uddab': 'L'
'\ud811\uddac': 'L'
'\ud811\uddad': 'L'
'\ud811\uddae': 'L'
'\ud811\uddaf': 'L'
'\ud811\uddb0': 'L'
'\ud811\uddb1': 'L'
'\ud811\uddb2': 'L'
'\ud811\uddb3': 'L'
'\ud811\uddb4': 'L'
'\ud811\uddb5': 'L'
'\ud811\uddb6': 'L'
'\ud811\uddb7': 'L'
'\ud811\uddb8': 'L'
'\ud811\uddb9': 'L'
'\ud811\uddba': 'L'
'\ud811\uddbb': 'L'
'\ud811\uddbc': 'L'
'\ud811\uddbd': 'L'
'\ud811\uddbe': 'L'
'\ud811\uddbf': 'L'
'\ud811\uddc0': 'L'
'\ud811\uddc1': 'L'
'\ud811\uddc2': 'L'
'\ud811\uddc3': 'L'
'\ud811\uddc4': 'L'
'\ud811\uddc5': 'L'
'\ud811\uddc6': 'L'
'\ud811\uddc7': 'L'
'\ud811\uddc8': 'L'
'\ud811\uddc9': 'L'
'\ud811\uddca': 'L'
'\ud811\uddcb': 'L'
'\ud811\uddcc': 'L'
'\ud811\uddcd': 'L'
'\ud811\uddce': 'L'
'\ud811\uddcf': 'L'
'\ud811\uddd0': 'L'
'\ud811\uddd1': 'L'
'\ud811\uddd2': 'L'
'\ud811\uddd3': 'L'
'\ud811\uddd4': 'L'
'\ud811\uddd5': 'L'
'\ud811\uddd6': 'L'
'\ud811\uddd7': 'L'
'\ud811\uddd8': 'L'
'\ud811\uddd9': 'L'
'\ud811\uddda': 'L'
'\ud811\udddb': 'L'
'\ud811\udddc': 'L'
'\ud811\udddd': 'L'
'\ud811\uddde': 'L'
'\ud811\udddf': 'L'
'\ud811\udde0': 'L'
'\ud811\udde1': 'L'
'\ud811\udde2': 'L'
'\ud811\udde3': 'L'
'\ud811\udde4': 'L'
'\ud811\udde5': 'L'
'\ud811\udde6': 'L'
'\ud811\udde7': 'L'
'\ud811\udde8': 'L'
'\ud811\udde9': 'L'
'\ud811\uddea': 'L'
'\ud811\uddeb': 'L'
'\ud811\uddec': 'L'
'\ud811\udded': 'L'
'\ud811\uddee': 'L'
'\ud811\uddef': 'L'
'\ud811\uddf0': 'L'
'\ud811\uddf1': 'L'
'\ud811\uddf2': 'L'
'\ud811\uddf3': 'L'
'\ud811\uddf4': 'L'
'\ud811\uddf5': 'L'
'\ud811\uddf6': 'L'
'\ud811\uddf7': 'L'
'\ud811\uddf8': 'L'
'\ud811\uddf9': 'L'
'\ud811\uddfa': 'L'
'\ud811\uddfb': 'L'
'\ud811\uddfc': 'L'
'\ud811\uddfd': 'L'
'\ud811\uddfe': 'L'
'\ud811\uddff': 'L'
'\ud811\ude00': 'L'
'\ud811\ude01': 'L'
'\ud811\ude02': 'L'
'\ud811\ude03': 'L'
'\ud811\ude04': 'L'
'\ud811\ude05': 'L'
'\ud811\ude06': 'L'
'\ud811\ude07': 'L'
'\ud811\ude08': 'L'
'\ud811\ude09': 'L'
'\ud811\ude0a': 'L'
'\ud811\ude0b': 'L'
'\ud811\ude0c': 'L'
'\ud811\ude0d': 'L'
'\ud811\ude0e': 'L'
'\ud811\ude0f': 'L'
'\ud811\ude10': 'L'
'\ud811\ude11': 'L'
'\ud811\ude12': 'L'
'\ud811\ude13': 'L'
'\ud811\ude14': 'L'
'\ud811\ude15': 'L'
'\ud811\ude16': 'L'
'\ud811\ude17': 'L'
'\ud811\ude18': 'L'
'\ud811\ude19': 'L'
'\ud811\ude1a': 'L'
'\ud811\ude1b': 'L'
'\ud811\ude1c': 'L'
'\ud811\ude1d': 'L'
'\ud811\ude1e': 'L'
'\ud811\ude1f': 'L'
'\ud811\ude20': 'L'
'\ud811\ude21': 'L'
'\ud811\ude22': 'L'
'\ud811\ude23': 'L'
'\ud811\ude24': 'L'
'\ud811\ude25': 'L'
'\ud811\ude26': 'L'
'\ud811\ude27': 'L'
'\ud811\ude28': 'L'
'\ud811\ude29': 'L'
'\ud811\ude2a': 'L'
'\ud811\ude2b': 'L'
'\ud811\ude2c': 'L'
'\ud811\ude2d': 'L'
'\ud811\ude2e': 'L'
'\ud811\ude2f': 'L'
'\ud811\ude30': 'L'
'\ud811\ude31': 'L'
'\ud811\ude32': 'L'
'\ud811\ude33': 'L'
'\ud811\ude34': 'L'
'\ud811\ude35': 'L'
'\ud811\ude36': 'L'
'\ud811\ude37': 'L'
'\ud811\ude38': 'L'
'\ud811\ude39': 'L'
'\ud811\ude3a': 'L'
'\ud811\ude3b': 'L'
'\ud811\ude3c': 'L'
'\ud811\ude3d': 'L'
'\ud811\ude3e': 'L'
'\ud811\ude3f': 'L'
'\ud811\ude40': 'L'
'\ud811\ude41': 'L'
'\ud811\ude42': 'L'
'\ud811\ude43': 'L'
'\ud811\ude44': 'L'
'\ud811\ude45': 'L'
'\ud811\ude46': 'L'
'\ud81a\udc00': 'L'
'\ud81a\udc01': 'L'
'\ud81a\udc02': 'L'
'\ud81a\udc03': 'L'
'\ud81a\udc04': 'L'
'\ud81a\udc05': 'L'
'\ud81a\udc06': 'L'
'\ud81a\udc07': 'L'
'\ud81a\udc08': 'L'
'\ud81a\udc09': 'L'
'\ud81a\udc0a': 'L'
'\ud81a\udc0b': 'L'
'\ud81a\udc0c': 'L'
'\ud81a\udc0d': 'L'
'\ud81a\udc0e': 'L'
'\ud81a\udc0f': 'L'
'\ud81a\udc10': 'L'
'\ud81a\udc11': 'L'
'\ud81a\udc12': 'L'
'\ud81a\udc13': 'L'
'\ud81a\udc14': 'L'
'\ud81a\udc15': 'L'
'\ud81a\udc16': 'L'
'\ud81a\udc17': 'L'
'\ud81a\udc18': 'L'
'\ud81a\udc19': 'L'
'\ud81a\udc1a': 'L'
'\ud81a\udc1b': 'L'
'\ud81a\udc1c': 'L'
'\ud81a\udc1d': 'L'
'\ud81a\udc1e': 'L'
'\ud81a\udc1f': 'L'
'\ud81a\udc20': 'L'
'\ud81a\udc21': 'L'
'\ud81a\udc22': 'L'
'\ud81a\udc23': 'L'
'\ud81a\udc24': 'L'
'\ud81a\udc25': 'L'
'\ud81a\udc26': 'L'
'\ud81a\udc27': 'L'
'\ud81a\udc28': 'L'
'\ud81a\udc29': 'L'
'\ud81a\udc2a': 'L'
'\ud81a\udc2b': 'L'
'\ud81a\udc2c': 'L'
'\ud81a\udc2d': 'L'
'\ud81a\udc2e': 'L'
'\ud81a\udc2f': 'L'
'\ud81a\udc30': 'L'
'\ud81a\udc31': 'L'
'\ud81a\udc32': 'L'
'\ud81a\udc33': 'L'
'\ud81a\udc34': 'L'
'\ud81a\udc35': 'L'
'\ud81a\udc36': 'L'
'\ud81a\udc37': 'L'
'\ud81a\udc38': 'L'
'\ud81a\udc39': 'L'
'\ud81a\udc3a': 'L'
'\ud81a\udc3b': 'L'
'\ud81a\udc3c': 'L'
'\ud81a\udc3d': 'L'
'\ud81a\udc3e': 'L'
'\ud81a\udc3f': 'L'
'\ud81a\udc40': 'L'
'\ud81a\udc41': 'L'
'\ud81a\udc42': 'L'
'\ud81a\udc43': 'L'
'\ud81a\udc44': 'L'
'\ud81a\udc45': 'L'
'\ud81a\udc46': 'L'
'\ud81a\udc47': 'L'
'\ud81a\udc48': 'L'
'\ud81a\udc49': 'L'
'\ud81a\udc4a': 'L'
'\ud81a\udc4b': 'L'
'\ud81a\udc4c': 'L'
'\ud81a\udc4d': 'L'
'\ud81a\udc4e': 'L'
'\ud81a\udc4f': 'L'
'\ud81a\udc50': 'L'
'\ud81a\udc51': 'L'
'\ud81a\udc52': 'L'
'\ud81a\udc53': 'L'
'\ud81a\udc54': 'L'
'\ud81a\udc55': 'L'
'\ud81a\udc56': 'L'
'\ud81a\udc57': 'L'
'\ud81a\udc58': 'L'
'\ud81a\udc59': 'L'
'\ud81a\udc5a': 'L'
'\ud81a\udc5b': 'L'
'\ud81a\udc5c': 'L'
'\ud81a\udc5d': 'L'
'\ud81a\udc5e': 'L'
'\ud81a\udc5f': 'L'
'\ud81a\udc60': 'L'
'\ud81a\udc61': 'L'
'\ud81a\udc62': 'L'
'\ud81a\udc63': 'L'
'\ud81a\udc64': 'L'
'\ud81a\udc65': 'L'
'\ud81a\udc66': 'L'
'\ud81a\udc67': 'L'
'\ud81a\udc68': 'L'
'\ud81a\udc69': 'L'
'\ud81a\udc6a': 'L'
'\ud81a\udc6b': 'L'
'\ud81a\udc6c': 'L'
'\ud81a\udc6d': 'L'
'\ud81a\udc6e': 'L'
'\ud81a\udc6f': 'L'
'\ud81a\udc70': 'L'
'\ud81a\udc71': 'L'
'\ud81a\udc72': 'L'
'\ud81a\udc73': 'L'
'\ud81a\udc74': 'L'
'\ud81a\udc75': 'L'
'\ud81a\udc76': 'L'
'\ud81a\udc77': 'L'
'\ud81a\udc78': 'L'
'\ud81a\udc79': 'L'
'\ud81a\udc7a': 'L'
'\ud81a\udc7b': 'L'
'\ud81a\udc7c': 'L'
'\ud81a\udc7d': 'L'
'\ud81a\udc7e': 'L'
'\ud81a\udc7f': 'L'
'\ud81a\udc80': 'L'
'\ud81a\udc81': 'L'
'\ud81a\udc82': 'L'
'\ud81a\udc83': 'L'
'\ud81a\udc84': 'L'
'\ud81a\udc85': 'L'
'\ud81a\udc86': 'L'
'\ud81a\udc87': 'L'
'\ud81a\udc88': 'L'
'\ud81a\udc89': 'L'
'\ud81a\udc8a': 'L'
'\ud81a\udc8b': 'L'
'\ud81a\udc8c': 'L'
'\ud81a\udc8d': 'L'
'\ud81a\udc8e': 'L'
'\ud81a\udc8f': 'L'
'\ud81a\udc90': 'L'
'\ud81a\udc91': 'L'
'\ud81a\udc92': 'L'
'\ud81a\udc93': 'L'
'\ud81a\udc94': 'L'
'\ud81a\udc95': 'L'
'\ud81a\udc96': 'L'
'\ud81a\udc97': 'L'
'\ud81a\udc98': 'L'
'\ud81a\udc99': 'L'
'\ud81a\udc9a': 'L'
'\ud81a\udc9b': 'L'
'\ud81a\udc9c': 'L'
'\ud81a\udc9d': 'L'
'\ud81a\udc9e': 'L'
'\ud81a\udc9f': 'L'
'\ud81a\udca0': 'L'
'\ud81a\udca1': 'L'
'\ud81a\udca2': 'L'
'\ud81a\udca3': 'L'
'\ud81a\udca4': 'L'
'\ud81a\udca5': 'L'
'\ud81a\udca6': 'L'
'\ud81a\udca7': 'L'
'\ud81a\udca8': 'L'
'\ud81a\udca9': 'L'
'\ud81a\udcaa': 'L'
'\ud81a\udcab': 'L'
'\ud81a\udcac': 'L'
'\ud81a\udcad': 'L'
'\ud81a\udcae': 'L'
'\ud81a\udcaf': 'L'
'\ud81a\udcb0': 'L'
'\ud81a\udcb1': 'L'
'\ud81a\udcb2': 'L'
'\ud81a\udcb3': 'L'
'\ud81a\udcb4': 'L'
'\ud81a\udcb5': 'L'
'\ud81a\udcb6': 'L'
'\ud81a\udcb7': 'L'
'\ud81a\udcb8': 'L'
'\ud81a\udcb9': 'L'
'\ud81a\udcba': 'L'
'\ud81a\udcbb': 'L'
'\ud81a\udcbc': 'L'
'\ud81a\udcbd': 'L'
'\ud81a\udcbe': 'L'
'\ud81a\udcbf': 'L'
'\ud81a\udcc0': 'L'
'\ud81a\udcc1': 'L'
'\ud81a\udcc2': 'L'
'\ud81a\udcc3': 'L'
'\ud81a\udcc4': 'L'
'\ud81a\udcc5': 'L'
'\ud81a\udcc6': 'L'
'\ud81a\udcc7': 'L'
'\ud81a\udcc8': 'L'
'\ud81a\udcc9': 'L'
'\ud81a\udcca': 'L'
'\ud81a\udccb': 'L'
'\ud81a\udccc': 'L'
'\ud81a\udccd': 'L'
'\ud81a\udcce': 'L'
'\ud81a\udccf': 'L'
'\ud81a\udcd0': 'L'
'\ud81a\udcd1': 'L'
'\ud81a\udcd2': 'L'
'\ud81a\udcd3': 'L'
'\ud81a\udcd4': 'L'
'\ud81a\udcd5': 'L'
'\ud81a\udcd6': 'L'
'\ud81a\udcd7': 'L'
'\ud81a\udcd8': 'L'
'\ud81a\udcd9': 'L'
'\ud81a\udcda': 'L'
'\ud81a\udcdb': 'L'
'\ud81a\udcdc': 'L'
'\ud81a\udcdd': 'L'
'\ud81a\udcde': 'L'
'\ud81a\udcdf': 'L'
'\ud81a\udce0': 'L'
'\ud81a\udce1': 'L'
'\ud81a\udce2': 'L'
'\ud81a\udce3': 'L'
'\ud81a\udce4': 'L'
'\ud81a\udce5': 'L'
'\ud81a\udce6': 'L'
'\ud81a\udce7': 'L'
'\ud81a\udce8': 'L'
'\ud81a\udce9': 'L'
'\ud81a\udcea': 'L'
'\ud81a\udceb': 'L'
'\ud81a\udcec': 'L'
'\ud81a\udced': 'L'
'\ud81a\udcee': 'L'
'\ud81a\udcef': 'L'
'\ud81a\udcf0': 'L'
'\ud81a\udcf1': 'L'
'\ud81a\udcf2': 'L'
'\ud81a\udcf3': 'L'
'\ud81a\udcf4': 'L'
'\ud81a\udcf5': 'L'
'\ud81a\udcf6': 'L'
'\ud81a\udcf7': 'L'
'\ud81a\udcf8': 'L'
'\ud81a\udcf9': 'L'
'\ud81a\udcfa': 'L'
'\ud81a\udcfb': 'L'
'\ud81a\udcfc': 'L'
'\ud81a\udcfd': 'L'
'\ud81a\udcfe': 'L'
'\ud81a\udcff': 'L'
'\ud81a\udd00': 'L'
'\ud81a\udd01': 'L'
'\ud81a\udd02': 'L'
'\ud81a\udd03': 'L'
'\ud81a\udd04': 'L'
'\ud81a\udd05': 'L'
'\ud81a\udd06': 'L'
'\ud81a\udd07': 'L'
'\ud81a\udd08': 'L'
'\ud81a\udd09': 'L'
'\ud81a\udd0a': 'L'
'\ud81a\udd0b': 'L'
'\ud81a\udd0c': 'L'
'\ud81a\udd0d': 'L'
'\ud81a\udd0e': 'L'
'\ud81a\udd0f': 'L'
'\ud81a\udd10': 'L'
'\ud81a\udd11': 'L'
'\ud81a\udd12': 'L'
'\ud81a\udd13': 'L'
'\ud81a\udd14': 'L'
'\ud81a\udd15': 'L'
'\ud81a\udd16': 'L'
'\ud81a\udd17': 'L'
'\ud81a\udd18': 'L'
'\ud81a\udd19': 'L'
'\ud81a\udd1a': 'L'
'\ud81a\udd1b': 'L'
'\ud81a\udd1c': 'L'
'\ud81a\udd1d': 'L'
'\ud81a\udd1e': 'L'
'\ud81a\udd1f': 'L'
'\ud81a\udd20': 'L'
'\ud81a\udd21': 'L'
'\ud81a\udd22': 'L'
'\ud81a\udd23': 'L'
'\ud81a\udd24': 'L'
'\ud81a\udd25': 'L'
'\ud81a\udd26': 'L'
'\ud81a\udd27': 'L'
'\ud81a\udd28': 'L'
'\ud81a\udd29': 'L'
'\ud81a\udd2a': 'L'
'\ud81a\udd2b': 'L'
'\ud81a\udd2c': 'L'
'\ud81a\udd2d': 'L'
'\ud81a\udd2e': 'L'
'\ud81a\udd2f': 'L'
'\ud81a\udd30': 'L'
'\ud81a\udd31': 'L'
'\ud81a\udd32': 'L'
'\ud81a\udd33': 'L'
'\ud81a\udd34': 'L'
'\ud81a\udd35': 'L'
'\ud81a\udd36': 'L'
'\ud81a\udd37': 'L'
'\ud81a\udd38': 'L'
'\ud81a\udd39': 'L'
'\ud81a\udd3a': 'L'
'\ud81a\udd3b': 'L'
'\ud81a\udd3c': 'L'
'\ud81a\udd3d': 'L'
'\ud81a\udd3e': 'L'
'\ud81a\udd3f': 'L'
'\ud81a\udd40': 'L'
'\ud81a\udd41': 'L'
'\ud81a\udd42': 'L'
'\ud81a\udd43': 'L'
'\ud81a\udd44': 'L'
'\ud81a\udd45': 'L'
'\ud81a\udd46': 'L'
'\ud81a\udd47': 'L'
'\ud81a\udd48': 'L'
'\ud81a\udd49': 'L'
'\ud81a\udd4a': 'L'
'\ud81a\udd4b': 'L'
'\ud81a\udd4c': 'L'
'\ud81a\udd4d': 'L'
'\ud81a\udd4e': 'L'
'\ud81a\udd4f': 'L'
'\ud81a\udd50': 'L'
'\ud81a\udd51': 'L'
'\ud81a\udd52': 'L'
'\ud81a\udd53': 'L'
'\ud81a\udd54': 'L'
'\ud81a\udd55': 'L'
'\ud81a\udd56': 'L'
'\ud81a\udd57': 'L'
'\ud81a\udd58': 'L'
'\ud81a\udd59': 'L'
'\ud81a\udd5a': 'L'
'\ud81a\udd5b': 'L'
'\ud81a\udd5c': 'L'
'\ud81a\udd5d': 'L'
'\ud81a\udd5e': 'L'
'\ud81a\udd5f': 'L'
'\ud81a\udd60': 'L'
'\ud81a\udd61': 'L'
'\ud81a\udd62': 'L'
'\ud81a\udd63': 'L'
'\ud81a\udd64': 'L'
'\ud81a\udd65': 'L'
'\ud81a\udd66': 'L'
'\ud81a\udd67': 'L'
'\ud81a\udd68': 'L'
'\ud81a\udd69': 'L'
'\ud81a\udd6a': 'L'
'\ud81a\udd6b': 'L'
'\ud81a\udd6c': 'L'
'\ud81a\udd6d': 'L'
'\ud81a\udd6e': 'L'
'\ud81a\udd6f': 'L'
'\ud81a\udd70': 'L'
'\ud81a\udd71': 'L'
'\ud81a\udd72': 'L'
'\ud81a\udd73': 'L'
'\ud81a\udd74': 'L'
'\ud81a\udd75': 'L'
'\ud81a\udd76': 'L'
'\ud81a\udd77': 'L'
'\ud81a\udd78': 'L'
'\ud81a\udd79': 'L'
'\ud81a\udd7a': 'L'
'\ud81a\udd7b': 'L'
'\ud81a\udd7c': 'L'
'\ud81a\udd7d': 'L'
'\ud81a\udd7e': 'L'
'\ud81a\udd7f': 'L'
'\ud81a\udd80': 'L'
'\ud81a\udd81': 'L'
'\ud81a\udd82': 'L'
'\ud81a\udd83': 'L'
'\ud81a\udd84': 'L'
'\ud81a\udd85': 'L'
'\ud81a\udd86': 'L'
'\ud81a\udd87': 'L'
'\ud81a\udd88': 'L'
'\ud81a\udd89': 'L'
'\ud81a\udd8a': 'L'
'\ud81a\udd8b': 'L'
'\ud81a\udd8c': 'L'
'\ud81a\udd8d': 'L'
'\ud81a\udd8e': 'L'
'\ud81a\udd8f': 'L'
'\ud81a\udd90': 'L'
'\ud81a\udd91': 'L'
'\ud81a\udd92': 'L'
'\ud81a\udd93': 'L'
'\ud81a\udd94': 'L'
'\ud81a\udd95': 'L'
'\ud81a\udd96': 'L'
'\ud81a\udd97': 'L'
'\ud81a\udd98': 'L'
'\ud81a\udd99': 'L'
'\ud81a\udd9a': 'L'
'\ud81a\udd9b': 'L'
'\ud81a\udd9c': 'L'
'\ud81a\udd9d': 'L'
'\ud81a\udd9e': 'L'
'\ud81a\udd9f': 'L'
'\ud81a\udda0': 'L'
'\ud81a\udda1': 'L'
'\ud81a\udda2': 'L'
'\ud81a\udda3': 'L'
'\ud81a\udda4': 'L'
'\ud81a\udda5': 'L'
'\ud81a\udda6': 'L'
'\ud81a\udda7': 'L'
'\ud81a\udda8': 'L'
'\ud81a\udda9': 'L'
'\ud81a\uddaa': 'L'
'\ud81a\uddab': 'L'
'\ud81a\uddac': 'L'
'\ud81a\uddad': 'L'
'\ud81a\uddae': 'L'
'\ud81a\uddaf': 'L'
'\ud81a\uddb0': 'L'
'\ud81a\uddb1': 'L'
'\ud81a\uddb2': 'L'
'\ud81a\uddb3': 'L'
'\ud81a\uddb4': 'L'
'\ud81a\uddb5': 'L'
'\ud81a\uddb6': 'L'
'\ud81a\uddb7': 'L'
'\ud81a\uddb8': 'L'
'\ud81a\uddb9': 'L'
'\ud81a\uddba': 'L'
'\ud81a\uddbb': 'L'
'\ud81a\uddbc': 'L'
'\ud81a\uddbd': 'L'
'\ud81a\uddbe': 'L'
'\ud81a\uddbf': 'L'
'\ud81a\uddc0': 'L'
'\ud81a\uddc1': 'L'
'\ud81a\uddc2': 'L'
'\ud81a\uddc3': 'L'
'\ud81a\uddc4': 'L'
'\ud81a\uddc5': 'L'
'\ud81a\uddc6': 'L'
'\ud81a\uddc7': 'L'
'\ud81a\uddc8': 'L'
'\ud81a\uddc9': 'L'
'\ud81a\uddca': 'L'
'\ud81a\uddcb': 'L'
'\ud81a\uddcc': 'L'
'\ud81a\uddcd': 'L'
'\ud81a\uddce': 'L'
'\ud81a\uddcf': 'L'
'\ud81a\uddd0': 'L'
'\ud81a\uddd1': 'L'
'\ud81a\uddd2': 'L'
'\ud81a\uddd3': 'L'
'\ud81a\uddd4': 'L'
'\ud81a\uddd5': 'L'
'\ud81a\uddd6': 'L'
'\ud81a\uddd7': 'L'
'\ud81a\uddd8': 'L'
'\ud81a\uddd9': 'L'
'\ud81a\uddda': 'L'
'\ud81a\udddb': 'L'
'\ud81a\udddc': 'L'
'\ud81a\udddd': 'L'
'\ud81a\uddde': 'L'
'\ud81a\udddf': 'L'
'\ud81a\udde0': 'L'
'\ud81a\udde1': 'L'
'\ud81a\udde2': 'L'
'\ud81a\udde3': 'L'
'\ud81a\udde4': 'L'
'\ud81a\udde5': 'L'
'\ud81a\udde6': 'L'
'\ud81a\udde7': 'L'
'\ud81a\udde8': 'L'
'\ud81a\udde9': 'L'
'\ud81a\uddea': 'L'
'\ud81a\uddeb': 'L'
'\ud81a\uddec': 'L'
'\ud81a\udded': 'L'
'\ud81a\uddee': 'L'
'\ud81a\uddef': 'L'
'\ud81a\uddf0': 'L'
'\ud81a\uddf1': 'L'
'\ud81a\uddf2': 'L'
'\ud81a\uddf3': 'L'
'\ud81a\uddf4': 'L'
'\ud81a\uddf5': 'L'
'\ud81a\uddf6': 'L'
'\ud81a\uddf7': 'L'
'\ud81a\uddf8': 'L'
'\ud81a\uddf9': 'L'
'\ud81a\uddfa': 'L'
'\ud81a\uddfb': 'L'
'\ud81a\uddfc': 'L'
'\ud81a\uddfd': 'L'
'\ud81a\uddfe': 'L'
'\ud81a\uddff': 'L'
'\ud81a\ude00': 'L'
'\ud81a\ude01': 'L'
'\ud81a\ude02': 'L'
'\ud81a\ude03': 'L'
'\ud81a\ude04': 'L'
'\ud81a\ude05': 'L'
'\ud81a\ude06': 'L'
'\ud81a\ude07': 'L'
'\ud81a\ude08': 'L'
'\ud81a\ude09': 'L'
'\ud81a\ude0a': 'L'
'\ud81a\ude0b': 'L'
'\ud81a\ude0c': 'L'
'\ud81a\ude0d': 'L'
'\ud81a\ude0e': 'L'
'\ud81a\ude0f': 'L'
'\ud81a\ude10': 'L'
'\ud81a\ude11': 'L'
'\ud81a\ude12': 'L'
'\ud81a\ude13': 'L'
'\ud81a\ude14': 'L'
'\ud81a\ude15': 'L'
'\ud81a\ude16': 'L'
'\ud81a\ude17': 'L'
'\ud81a\ude18': 'L'
'\ud81a\ude19': 'L'
'\ud81a\ude1a': 'L'
'\ud81a\ude1b': 'L'
'\ud81a\ude1c': 'L'
'\ud81a\ude1d': 'L'
'\ud81a\ude1e': 'L'
'\ud81a\ude1f': 'L'
'\ud81a\ude20': 'L'
'\ud81a\ude21': 'L'
'\ud81a\ude22': 'L'
'\ud81a\ude23': 'L'
'\ud81a\ude24': 'L'
'\ud81a\ude25': 'L'
'\ud81a\ude26': 'L'
'\ud81a\ude27': 'L'
'\ud81a\ude28': 'L'
'\ud81a\ude29': 'L'
'\ud81a\ude2a': 'L'
'\ud81a\ude2b': 'L'
'\ud81a\ude2c': 'L'
'\ud81a\ude2d': 'L'
'\ud81a\ude2e': 'L'
'\ud81a\ude2f': 'L'
'\ud81a\ude30': 'L'
'\ud81a\ude31': 'L'
'\ud81a\ude32': 'L'
'\ud81a\ude33': 'L'
'\ud81a\ude34': 'L'
'\ud81a\ude35': 'L'
'\ud81a\ude36': 'L'
'\ud81a\ude37': 'L'
'\ud81a\ude38': 'L'
'\ud81a\ude40': 'L'
'\ud81a\ude41': 'L'
'\ud81a\ude42': 'L'
'\ud81a\ude43': 'L'
'\ud81a\ude44': 'L'
'\ud81a\ude45': 'L'
'\ud81a\ude46': 'L'
'\ud81a\ude47': 'L'
'\ud81a\ude48': 'L'
'\ud81a\ude49': 'L'
'\ud81a\ude4a': 'L'
'\ud81a\ude4b': 'L'
'\ud81a\ude4c': 'L'
'\ud81a\ude4d': 'L'
'\ud81a\ude4e': 'L'
'\ud81a\ude4f': 'L'
'\ud81a\ude50': 'L'
'\ud81a\ude51': 'L'
'\ud81a\ude52': 'L'
'\ud81a\ude53': 'L'
'\ud81a\ude54': 'L'
'\ud81a\ude55': 'L'
'\ud81a\ude56': 'L'
'\ud81a\ude57': 'L'
'\ud81a\ude58': 'L'
'\ud81a\ude59': 'L'
'\ud81a\ude5a': 'L'
'\ud81a\ude5b': 'L'
'\ud81a\ude5c': 'L'
'\ud81a\ude5d': 'L'
'\ud81a\ude5e': 'L'
'\ud81a\ude60': 'N'
'\ud81a\ude61': 'N'
'\ud81a\ude62': 'N'
'\ud81a\ude63': 'N'
'\ud81a\ude64': 'N'
'\ud81a\ude65': 'N'
'\ud81a\ude66': 'N'
'\ud81a\ude67': 'N'
'\ud81a\ude68': 'N'
'\ud81a\ude69': 'N'
'\ud81a\uded0': 'L'
'\ud81a\uded1': 'L'
'\ud81a\uded2': 'L'
'\ud81a\uded3': 'L'
'\ud81a\uded4': 'L'
'\ud81a\uded5': 'L'
'\ud81a\uded6': 'L'
'\ud81a\uded7': 'L'
'\ud81a\uded8': 'L'
'\ud81a\uded9': 'L'
'\ud81a\udeda': 'L'
'\ud81a\udedb': 'L'
'\ud81a\udedc': 'L'
'\ud81a\udedd': 'L'
'\ud81a\udede': 'L'
'\ud81a\udedf': 'L'
'\ud81a\udee0': 'L'
'\ud81a\udee1': 'L'
'\ud81a\udee2': 'L'
'\ud81a\udee3': 'L'
'\ud81a\udee4': 'L'
'\ud81a\udee5': 'L'
'\ud81a\udee6': 'L'
'\ud81a\udee7': 'L'
'\ud81a\udee8': 'L'
'\ud81a\udee9': 'L'
'\ud81a\udeea': 'L'
'\ud81a\udeeb': 'L'
'\ud81a\udeec': 'L'
'\ud81a\udeed': 'L'
'\ud81a\udf00': 'L'
'\ud81a\udf01': 'L'
'\ud81a\udf02': 'L'
'\ud81a\udf03': 'L'
'\ud81a\udf04': 'L'
'\ud81a\udf05': 'L'
'\ud81a\udf06': 'L'
'\ud81a\udf07': 'L'
'\ud81a\udf08': 'L'
'\ud81a\udf09': 'L'
'\ud81a\udf0a': 'L'
'\ud81a\udf0b': 'L'
'\ud81a\udf0c': 'L'
'\ud81a\udf0d': 'L'
'\ud81a\udf0e': 'L'
'\ud81a\udf0f': 'L'
'\ud81a\udf10': 'L'
'\ud81a\udf11': 'L'
'\ud81a\udf12': 'L'
'\ud81a\udf13': 'L'
'\ud81a\udf14': 'L'
'\ud81a\udf15': 'L'
'\ud81a\udf16': 'L'
'\ud81a\udf17': 'L'
'\ud81a\udf18': 'L'
'\ud81a\udf19': 'L'
'\ud81a\udf1a': 'L'
'\ud81a\udf1b': 'L'
'\ud81a\udf1c': 'L'
'\ud81a\udf1d': 'L'
'\ud81a\udf1e': 'L'
'\ud81a\udf1f': 'L'
'\ud81a\udf20': 'L'
'\ud81a\udf21': 'L'
'\ud81a\udf22': 'L'
'\ud81a\udf23': 'L'
'\ud81a\udf24': 'L'
'\ud81a\udf25': 'L'
'\ud81a\udf26': 'L'
'\ud81a\udf27': 'L'
'\ud81a\udf28': 'L'
'\ud81a\udf29': 'L'
'\ud81a\udf2a': 'L'
'\ud81a\udf2b': 'L'
'\ud81a\udf2c': 'L'
'\ud81a\udf2d': 'L'
'\ud81a\udf2e': 'L'
'\ud81a\udf2f': 'L'
'\ud81a\udf40': 'L'
'\ud81a\udf41': 'L'
'\ud81a\udf42': 'L'
'\ud81a\udf43': 'L'
'\ud81a\udf50': 'N'
'\ud81a\udf51': 'N'
'\ud81a\udf52': 'N'
'\ud81a\udf53': 'N'
'\ud81a\udf54': 'N'
'\ud81a\udf55': 'N'
'\ud81a\udf56': 'N'
'\ud81a\udf57': 'N'
'\ud81a\udf58': 'N'
'\ud81a\udf59': 'N'
'\ud81a\udf5b': 'N'
'\ud81a\udf5c': 'N'
'\ud81a\udf5d': 'N'
'\ud81a\udf5e': 'N'
'\ud81a\udf5f': 'N'
'\ud81a\udf60': 'N'
'\ud81a\udf61': 'N'
'\ud81a\udf63': 'L'
'\ud81a\udf64': 'L'
'\ud81a\udf65': 'L'
'\ud81a\udf66': 'L'
'\ud81a\udf67': 'L'
'\ud81a\udf68': 'L'
'\ud81a\udf69': 'L'
'\ud81a\udf6a': 'L'
'\ud81a\udf6b': 'L'
'\ud81a\udf6c': 'L'
'\ud81a\udf6d': 'L'
'\ud81a\udf6e': 'L'
'\ud81a\udf6f': 'L'
'\ud81a\udf70': 'L'
'\ud81a\udf71': 'L'
'\ud81a\udf72': 'L'
'\ud81a\udf73': 'L'
'\ud81a\udf74': 'L'
'\ud81a\udf75': 'L'
'\ud81a\udf76': 'L'
'\ud81a\udf77': 'L'
'\ud81a\udf7d': 'L'
'\ud81a\udf7e': 'L'
'\ud81a\udf7f': 'L'
'\ud81a\udf80': 'L'
'\ud81a\udf81': 'L'
'\ud81a\udf82': 'L'
'\ud81a\udf83': 'L'
'\ud81a\udf84': 'L'
'\ud81a\udf85': 'L'
'\ud81a\udf86': 'L'
'\ud81a\udf87': 'L'
'\ud81a\udf88': 'L'
'\ud81a\udf89': 'L'
'\ud81a\udf8a': 'L'
'\ud81a\udf8b': 'L'
'\ud81a\udf8c': 'L'
'\ud81a\udf8d': 'L'
'\ud81a\udf8e': 'L'
'\ud81a\udf8f': 'L'
'\ud81b\udf00': 'L'
'\ud81b\udf01': 'L'
'\ud81b\udf02': 'L'
'\ud81b\udf03': 'L'
'\ud81b\udf04': 'L'
'\ud81b\udf05': 'L'
'\ud81b\udf06': 'L'
'\ud81b\udf07': 'L'
'\ud81b\udf08': 'L'
'\ud81b\udf09': 'L'
'\ud81b\udf0a': 'L'
'\ud81b\udf0b': 'L'
'\ud81b\udf0c': 'L'
'\ud81b\udf0d': 'L'
'\ud81b\udf0e': 'L'
'\ud81b\udf0f': 'L'
'\ud81b\udf10': 'L'
'\ud81b\udf11': 'L'
'\ud81b\udf12': 'L'
'\ud81b\udf13': 'L'
'\ud81b\udf14': 'L'
'\ud81b\udf15': 'L'
'\ud81b\udf16': 'L'
'\ud81b\udf17': 'L'
'\ud81b\udf18': 'L'
'\ud81b\udf19': 'L'
'\ud81b\udf1a': 'L'
'\ud81b\udf1b': 'L'
'\ud81b\udf1c': 'L'
'\ud81b\udf1d': 'L'
'\ud81b\udf1e': 'L'
'\ud81b\udf1f': 'L'
'\ud81b\udf20': 'L'
'\ud81b\udf21': 'L'
'\ud81b\udf22': 'L'
'\ud81b\udf23': 'L'
'\ud81b\udf24': 'L'
'\ud81b\udf25': 'L'
'\ud81b\udf26': 'L'
'\ud81b\udf27': 'L'
'\ud81b\udf28': 'L'
'\ud81b\udf29': 'L'
'\ud81b\udf2a': 'L'
'\ud81b\udf2b': 'L'
'\ud81b\udf2c': 'L'
'\ud81b\udf2d': 'L'
'\ud81b\udf2e': 'L'
'\ud81b\udf2f': 'L'
'\ud81b\udf30': 'L'
'\ud81b\udf31': 'L'
'\ud81b\udf32': 'L'
'\ud81b\udf33': 'L'
'\ud81b\udf34': 'L'
'\ud81b\udf35': 'L'
'\ud81b\udf36': 'L'
'\ud81b\udf37': 'L'
'\ud81b\udf38': 'L'
'\ud81b\udf39': 'L'
'\ud81b\udf3a': 'L'
'\ud81b\udf3b': 'L'
'\ud81b\udf3c': 'L'
'\ud81b\udf3d': 'L'
'\ud81b\udf3e': 'L'
'\ud81b\udf3f': 'L'
'\ud81b\udf40': 'L'
'\ud81b\udf41': 'L'
'\ud81b\udf42': 'L'
'\ud81b\udf43': 'L'
'\ud81b\udf44': 'L'
'\ud81b\udf50': 'L'
'\ud81b\udf93': 'L'
'\ud81b\udf94': 'L'
'\ud81b\udf95': 'L'
'\ud81b\udf96': 'L'
'\ud81b\udf97': 'L'
'\ud81b\udf98': 'L'
'\ud81b\udf99': 'L'
'\ud81b\udf9a': 'L'
'\ud81b\udf9b': 'L'
'\ud81b\udf9c': 'L'
'\ud81b\udf9d': 'L'
'\ud81b\udf9e': 'L'
'\ud81b\udf9f': 'L'
'\ud82c\udc00': 'L'
'\ud82c\udc01': 'L'
'\ud82f\udc00': 'L'
'\ud82f\udc01': 'L'
'\ud82f\udc02': 'L'
'\ud82f\udc03': 'L'
'\ud82f\udc04': 'L'
'\ud82f\udc05': 'L'
'\ud82f\udc06': 'L'
'\ud82f\udc07': 'L'
'\ud82f\udc08': 'L'
'\ud82f\udc09': 'L'
'\ud82f\udc0a': 'L'
'\ud82f\udc0b': 'L'
'\ud82f\udc0c': 'L'
'\ud82f\udc0d': 'L'
'\ud82f\udc0e': 'L'
'\ud82f\udc0f': 'L'
'\ud82f\udc10': 'L'
'\ud82f\udc11': 'L'
'\ud82f\udc12': 'L'
'\ud82f\udc13': 'L'
'\ud82f\udc14': 'L'
'\ud82f\udc15': 'L'
'\ud82f\udc16': 'L'
'\ud82f\udc17': 'L'
'\ud82f\udc18': 'L'
'\ud82f\udc19': 'L'
'\ud82f\udc1a': 'L'
'\ud82f\udc1b': 'L'
'\ud82f\udc1c': 'L'
'\ud82f\udc1d': 'L'
'\ud82f\udc1e': 'L'
'\ud82f\udc1f': 'L'
'\ud82f\udc20': 'L'
'\ud82f\udc21': 'L'
'\ud82f\udc22': 'L'
'\ud82f\udc23': 'L'
'\ud82f\udc24': 'L'
'\ud82f\udc25': 'L'
'\ud82f\udc26': 'L'
'\ud82f\udc27': 'L'
'\ud82f\udc28': 'L'
'\ud82f\udc29': 'L'
'\ud82f\udc2a': 'L'
'\ud82f\udc2b': 'L'
'\ud82f\udc2c': 'L'
'\ud82f\udc2d': 'L'
'\ud82f\udc2e': 'L'
'\ud82f\udc2f': 'L'
'\ud82f\udc30': 'L'
'\ud82f\udc31': 'L'
'\ud82f\udc32': 'L'
'\ud82f\udc33': 'L'
'\ud82f\udc34': 'L'
'\ud82f\udc35': 'L'
'\ud82f\udc36': 'L'
'\ud82f\udc37': 'L'
'\ud82f\udc38': 'L'
'\ud82f\udc39': 'L'
'\ud82f\udc3a': 'L'
'\ud82f\udc3b': 'L'
'\ud82f\udc3c': 'L'
'\ud82f\udc3d': 'L'
'\ud82f\udc3e': 'L'
'\ud82f\udc3f': 'L'
'\ud82f\udc40': 'L'
'\ud82f\udc41': 'L'
'\ud82f\udc42': 'L'
'\ud82f\udc43': 'L'
'\ud82f\udc44': 'L'
'\ud82f\udc45': 'L'
'\ud82f\udc46': 'L'
'\ud82f\udc47': 'L'
'\ud82f\udc48': 'L'
'\ud82f\udc49': 'L'
'\ud82f\udc4a': 'L'
'\ud82f\udc4b': 'L'
'\ud82f\udc4c': 'L'
'\ud82f\udc4d': 'L'
'\ud82f\udc4e': 'L'
'\ud82f\udc4f': 'L'
'\ud82f\udc50': 'L'
'\ud82f\udc51': 'L'
'\ud82f\udc52': 'L'
'\ud82f\udc53': 'L'
'\ud82f\udc54': 'L'
'\ud82f\udc55': 'L'
'\ud82f\udc56': 'L'
'\ud82f\udc57': 'L'
'\ud82f\udc58': 'L'
'\ud82f\udc59': 'L'
'\ud82f\udc5a': 'L'
'\ud82f\udc5b': 'L'
'\ud82f\udc5c': 'L'
'\ud82f\udc5d': 'L'
'\ud82f\udc5e': 'L'
'\ud82f\udc5f': 'L'
'\ud82f\udc60': 'L'
'\ud82f\udc61': 'L'
'\ud82f\udc62': 'L'
'\ud82f\udc63': 'L'
'\ud82f\udc64': 'L'
'\ud82f\udc65': 'L'
'\ud82f\udc66': 'L'
'\ud82f\udc67': 'L'
'\ud82f\udc68': 'L'
'\ud82f\udc69': 'L'
'\ud82f\udc6a': 'L'
'\ud82f\udc70': 'L'
'\ud82f\udc71': 'L'
'\ud82f\udc72': 'L'
'\ud82f\udc73': 'L'
'\ud82f\udc74': 'L'
'\ud82f\udc75': 'L'
'\ud82f\udc76': 'L'
'\ud82f\udc77': 'L'
'\ud82f\udc78': 'L'
'\ud82f\udc79': 'L'
'\ud82f\udc7a': 'L'
'\ud82f\udc7b': 'L'
'\ud82f\udc7c': 'L'
'\ud82f\udc80': 'L'
'\ud82f\udc81': 'L'
'\ud82f\udc82': 'L'
'\ud82f\udc83': 'L'
'\ud82f\udc84': 'L'
'\ud82f\udc85': 'L'
'\ud82f\udc86': 'L'
'\ud82f\udc87': 'L'
'\ud82f\udc88': 'L'
'\ud82f\udc90': 'L'
'\ud82f\udc91': 'L'
'\ud82f\udc92': 'L'
'\ud82f\udc93': 'L'
'\ud82f\udc94': 'L'
'\ud82f\udc95': 'L'
'\ud82f\udc96': 'L'
'\ud82f\udc97': 'L'
'\ud82f\udc98': 'L'
'\ud82f\udc99': 'L'
'\ud834\udf60': 'N'
'\ud834\udf61': 'N'
'\ud834\udf62': 'N'
'\ud834\udf63': 'N'
'\ud834\udf64': 'N'
'\ud834\udf65': 'N'
'\ud834\udf66': 'N'
'\ud834\udf67': 'N'
'\ud834\udf68': 'N'
'\ud834\udf69': 'N'
'\ud834\udf6a': 'N'
'\ud834\udf6b': 'N'
'\ud834\udf6c': 'N'
'\ud834\udf6d': 'N'
'\ud834\udf6e': 'N'
'\ud834\udf6f': 'N'
'\ud834\udf70': 'N'
'\ud834\udf71': 'N'
'\ud835\udc00': 'Lu'
'\ud835\udc01': 'Lu'
'\ud835\udc02': 'Lu'
'\ud835\udc03': 'Lu'
'\ud835\udc04': 'Lu'
'\ud835\udc05': 'Lu'
'\ud835\udc06': 'Lu'
'\ud835\udc07': 'Lu'
'\ud835\udc08': 'Lu'
'\ud835\udc09': 'Lu'
'\ud835\udc0a': 'Lu'
'\ud835\udc0b': 'Lu'
'\ud835\udc0c': 'Lu'
'\ud835\udc0d': 'Lu'
'\ud835\udc0e': 'Lu'
'\ud835\udc0f': 'Lu'
'\ud835\udc10': 'Lu'
'\ud835\udc11': 'Lu'
'\ud835\udc12': 'Lu'
'\ud835\udc13': 'Lu'
'\ud835\udc14': 'Lu'
'\ud835\udc15': 'Lu'
'\ud835\udc16': 'Lu'
'\ud835\udc17': 'Lu'
'\ud835\udc18': 'Lu'
'\ud835\udc19': 'Lu'
'\ud835\udc1a': 'L'
'\ud835\udc1b': 'L'
'\ud835\udc1c': 'L'
'\ud835\udc1d': 'L'
'\ud835\udc1e': 'L'
'\ud835\udc1f': 'L'
'\ud835\udc20': 'L'
'\ud835\udc21': 'L'
'\ud835\udc22': 'L'
'\ud835\udc23': 'L'
'\ud835\udc24': 'L'
'\ud835\udc25': 'L'
'\ud835\udc26': 'L'
'\ud835\udc27': 'L'
'\ud835\udc28': 'L'
'\ud835\udc29': 'L'
'\ud835\udc2a': 'L'
'\ud835\udc2b': 'L'
'\ud835\udc2c': 'L'
'\ud835\udc2d': 'L'
'\ud835\udc2e': 'L'
'\ud835\udc2f': 'L'
'\ud835\udc30': 'L'
'\ud835\udc31': 'L'
'\ud835\udc32': 'L'
'\ud835\udc33': 'L'
'\ud835\udc34': 'Lu'
'\ud835\udc35': 'Lu'
'\ud835\udc36': 'Lu'
'\ud835\udc37': 'Lu'
'\ud835\udc38': 'Lu'
'\ud835\udc39': 'Lu'
'\ud835\udc3a': 'Lu'
'\ud835\udc3b': 'Lu'
'\ud835\udc3c': 'Lu'
'\ud835\udc3d': 'Lu'
'\ud835\udc3e': 'Lu'
'\ud835\udc3f': 'Lu'
'\ud835\udc40': 'Lu'
'\ud835\udc41': 'Lu'
'\ud835\udc42': 'Lu'
'\ud835\udc43': 'Lu'
'\ud835\udc44': 'Lu'
'\ud835\udc45': 'Lu'
'\ud835\udc46': 'Lu'
'\ud835\udc47': 'Lu'
'\ud835\udc48': 'Lu'
'\ud835\udc49': 'Lu'
'\ud835\udc4a': 'Lu'
'\ud835\udc4b': 'Lu'
'\ud835\udc4c': 'Lu'
'\ud835\udc4d': 'Lu'
'\ud835\udc4e': 'L'
'\ud835\udc4f': 'L'
'\ud835\udc50': 'L'
'\ud835\udc51': 'L'
'\ud835\udc52': 'L'
'\ud835\udc53': 'L'
'\ud835\udc54': 'L'
'\ud835\udc56': 'L'
'\ud835\udc57': 'L'
'\ud835\udc58': 'L'
'\ud835\udc59': 'L'
'\ud835\udc5a': 'L'
'\ud835\udc5b': 'L'
'\ud835\udc5c': 'L'
'\ud835\udc5d': 'L'
'\ud835\udc5e': 'L'
'\ud835\udc5f': 'L'
'\ud835\udc60': 'L'
'\ud835\udc61': 'L'
'\ud835\udc62': 'L'
'\ud835\udc63': 'L'
'\ud835\udc64': 'L'
'\ud835\udc65': 'L'
'\ud835\udc66': 'L'
'\ud835\udc67': 'L'
'\ud835\udc68': 'Lu'
'\ud835\udc69': 'Lu'
'\ud835\udc6a': 'Lu'
'\ud835\udc6b': 'Lu'
'\ud835\udc6c': 'Lu'
'\ud835\udc6d': 'Lu'
'\ud835\udc6e': 'Lu'
'\ud835\udc6f': 'Lu'
'\ud835\udc70': 'Lu'
'\ud835\udc71': 'Lu'
'\ud835\udc72': 'Lu'
'\ud835\udc73': 'Lu'
'\ud835\udc74': 'Lu'
'\ud835\udc75': 'Lu'
'\ud835\udc76': 'Lu'
'\ud835\udc77': 'Lu'
'\ud835\udc78': 'Lu'
'\ud835\udc79': 'Lu'
'\ud835\udc7a': 'Lu'
'\ud835\udc7b': 'Lu'
'\ud835\udc7c': 'Lu'
'\ud835\udc7d': 'Lu'
'\ud835\udc7e': 'Lu'
'\ud835\udc7f': 'Lu'
'\ud835\udc80': 'Lu'
'\ud835\udc81': 'Lu'
'\ud835\udc82': 'L'
'\ud835\udc83': 'L'
'\ud835\udc84': 'L'
'\ud835\udc85': 'L'
'\ud835\udc86': 'L'
'\ud835\udc87': 'L'
'\ud835\udc88': 'L'
'\ud835\udc89': 'L'
'\ud835\udc8a': 'L'
'\ud835\udc8b': 'L'
'\ud835\udc8c': 'L'
'\ud835\udc8d': 'L'
'\ud835\udc8e': 'L'
'\ud835\udc8f': 'L'
'\ud835\udc90': 'L'
'\ud835\udc91': 'L'
'\ud835\udc92': 'L'
'\ud835\udc93': 'L'
'\ud835\udc94': 'L'
'\ud835\udc95': 'L'
'\ud835\udc96': 'L'
'\ud835\udc97': 'L'
'\ud835\udc98': 'L'
'\ud835\udc99': 'L'
'\ud835\udc9a': 'L'
'\ud835\udc9b': 'L'
'\ud835\udc9c': 'Lu'
'\ud835\udc9e': 'Lu'
'\ud835\udc9f': 'Lu'
'\ud835\udca2': 'Lu'
'\ud835\udca5': 'Lu'
'\ud835\udca6': 'Lu'
'\ud835\udca9': 'Lu'
'\ud835\udcaa': 'Lu'
'\ud835\udcab': 'Lu'
'\ud835\udcac': 'Lu'
'\ud835\udcae': 'Lu'
'\ud835\udcaf': 'Lu'
'\ud835\udcb0': 'Lu'
'\ud835\udcb1': 'Lu'
'\ud835\udcb2': 'Lu'
'\ud835\udcb3': 'Lu'
'\ud835\udcb4': 'Lu'
'\ud835\udcb5': 'Lu'
'\ud835\udcb6': 'L'
'\ud835\udcb7': 'L'
'\ud835\udcb8': 'L'
'\ud835\udcb9': 'L'
'\ud835\udcbb': 'L'
'\ud835\udcbd': 'L'
'\ud835\udcbe': 'L'
'\ud835\udcbf': 'L'
'\ud835\udcc0': 'L'
'\ud835\udcc1': 'L'
'\ud835\udcc2': 'L'
'\ud835\udcc3': 'L'
'\ud835\udcc5': 'L'
'\ud835\udcc6': 'L'
'\ud835\udcc7': 'L'
'\ud835\udcc8': 'L'
'\ud835\udcc9': 'L'
'\ud835\udcca': 'L'
'\ud835\udccb': 'L'
'\ud835\udccc': 'L'
'\ud835\udccd': 'L'
'\ud835\udcce': 'L'
'\ud835\udccf': 'L'
'\ud835\udcd0': 'Lu'
'\ud835\udcd1': 'Lu'
'\ud835\udcd2': 'Lu'
'\ud835\udcd3': 'Lu'
'\ud835\udcd4': 'Lu'
'\ud835\udcd5': 'Lu'
'\ud835\udcd6': 'Lu'
'\ud835\udcd7': 'Lu'
'\ud835\udcd8': 'Lu'
'\ud835\udcd9': 'Lu'
'\ud835\udcda': 'Lu'
'\ud835\udcdb': 'Lu'
'\ud835\udcdc': 'Lu'
'\ud835\udcdd': 'Lu'
'\ud835\udcde': 'Lu'
'\ud835\udcdf': 'Lu'
'\ud835\udce0': 'Lu'
'\ud835\udce1': 'Lu'
'\ud835\udce2': 'Lu'
'\ud835\udce3': 'Lu'
'\ud835\udce4': 'Lu'
'\ud835\udce5': 'Lu'
'\ud835\udce6': 'Lu'
'\ud835\udce7': 'Lu'
'\ud835\udce8': 'Lu'
'\ud835\udce9': 'Lu'
'\ud835\udcea': 'L'
'\ud835\udceb': 'L'
'\ud835\udcec': 'L'
'\ud835\udced': 'L'
'\ud835\udcee': 'L'
'\ud835\udcef': 'L'
'\ud835\udcf0': 'L'
'\ud835\udcf1': 'L'
'\ud835\udcf2': 'L'
'\ud835\udcf3': 'L'
'\ud835\udcf4': 'L'
'\ud835\udcf5': 'L'
'\ud835\udcf6': 'L'
'\ud835\udcf7': 'L'
'\ud835\udcf8': 'L'
'\ud835\udcf9': 'L'
'\ud835\udcfa': 'L'
'\ud835\udcfb': 'L'
'\ud835\udcfc': 'L'
'\ud835\udcfd': 'L'
'\ud835\udcfe': 'L'
'\ud835\udcff': 'L'
'\ud835\udd00': 'L'
'\ud835\udd01': 'L'
'\ud835\udd02': 'L'
'\ud835\udd03': 'L'
'\ud835\udd04': 'Lu'
'\ud835\udd05': 'Lu'
'\ud835\udd07': 'Lu'
'\ud835\udd08': 'Lu'
'\ud835\udd09': 'Lu'
'\ud835\udd0a': 'Lu'
'\ud835\udd0d': 'Lu'
'\ud835\udd0e': 'Lu'
'\ud835\udd0f': 'Lu'
'\ud835\udd10': 'Lu'
'\ud835\udd11': 'Lu'
'\ud835\udd12': 'Lu'
'\ud835\udd13': 'Lu'
'\ud835\udd14': 'Lu'
'\ud835\udd16': 'Lu'
'\ud835\udd17': 'Lu'
'\ud835\udd18': 'Lu'
'\ud835\udd19': 'Lu'
'\ud835\udd1a': 'Lu'
'\ud835\udd1b': 'Lu'
'\ud835\udd1c': 'Lu'
'\ud835\udd1e': 'L'
'\ud835\udd1f': 'L'
'\ud835\udd20': 'L'
'\ud835\udd21': 'L'
'\ud835\udd22': 'L'
'\ud835\udd23': 'L'
'\ud835\udd24': 'L'
'\ud835\udd25': 'L'
'\ud835\udd26': 'L'
'\ud835\udd27': 'L'
'\ud835\udd28': 'L'
'\ud835\udd29': 'L'
'\ud835\udd2a': 'L'
'\ud835\udd2b': 'L'
'\ud835\udd2c': 'L'
'\ud835\udd2d': 'L'
'\ud835\udd2e': 'L'
'\ud835\udd2f': 'L'
'\ud835\udd30': 'L'
'\ud835\udd31': 'L'
'\ud835\udd32': 'L'
'\ud835\udd33': 'L'
'\ud835\udd34': 'L'
'\ud835\udd35': 'L'
'\ud835\udd36': 'L'
'\ud835\udd37': 'L'
'\ud835\udd38': 'Lu'
'\ud835\udd39': 'Lu'
'\ud835\udd3b': 'Lu'
'\ud835\udd3c': 'Lu'
'\ud835\udd3d': 'Lu'
'\ud835\udd3e': 'Lu'
'\ud835\udd40': 'Lu'
'\ud835\udd41': 'Lu'
'\ud835\udd42': 'Lu'
'\ud835\udd43': 'Lu'
'\ud835\udd44': 'Lu'
'\ud835\udd46': 'Lu'
'\ud835\udd4a': 'Lu'
'\ud835\udd4b': 'Lu'
'\ud835\udd4c': 'Lu'
'\ud835\udd4d': 'Lu'
'\ud835\udd4e': 'Lu'
'\ud835\udd4f': 'Lu'
'\ud835\udd50': 'Lu'
'\ud835\udd52': 'L'
'\ud835\udd53': 'L'
'\ud835\udd54': 'L'
'\ud835\udd55': 'L'
'\ud835\udd56': 'L'
'\ud835\udd57': 'L'
'\ud835\udd58': 'L'
'\ud835\udd59': 'L'
'\ud835\udd5a': 'L'
'\ud835\udd5b': 'L'
'\ud835\udd5c': 'L'
'\ud835\udd5d': 'L'
'\ud835\udd5e': 'L'
'\ud835\udd5f': 'L'
'\ud835\udd60': 'L'
'\ud835\udd61': 'L'
'\ud835\udd62': 'L'
'\ud835\udd63': 'L'
'\ud835\udd64': 'L'
'\ud835\udd65': 'L'
'\ud835\udd66': 'L'
'\ud835\udd67': 'L'
'\ud835\udd68': 'L'
'\ud835\udd69': 'L'
'\ud835\udd6a': 'L'
'\ud835\udd6b': 'L'
'\ud835\udd6c': 'Lu'
'\ud835\udd6d': 'Lu'
'\ud835\udd6e': 'Lu'
'\ud835\udd6f': 'Lu'
'\ud835\udd70': 'Lu'
'\ud835\udd71': 'Lu'
'\ud835\udd72': 'Lu'
'\ud835\udd73': 'Lu'
'\ud835\udd74': 'Lu'
'\ud835\udd75': 'Lu'
'\ud835\udd76': 'Lu'
'\ud835\udd77': 'Lu'
'\ud835\udd78': 'Lu'
'\ud835\udd79': 'Lu'
'\ud835\udd7a': 'Lu'
'\ud835\udd7b': 'Lu'
'\ud835\udd7c': 'Lu'
'\ud835\udd7d': 'Lu'
'\ud835\udd7e': 'Lu'
'\ud835\udd7f': 'Lu'
'\ud835\udd80': 'Lu'
'\ud835\udd81': 'Lu'
'\ud835\udd82': 'Lu'
'\ud835\udd83': 'Lu'
'\ud835\udd84': 'Lu'
'\ud835\udd85': 'Lu'
'\ud835\udd86': 'L'
'\ud835\udd87': 'L'
'\ud835\udd88': 'L'
'\ud835\udd89': 'L'
'\ud835\udd8a': 'L'
'\ud835\udd8b': 'L'
'\ud835\udd8c': 'L'
'\ud835\udd8d': 'L'
'\ud835\udd8e': 'L'
'\ud835\udd8f': 'L'
'\ud835\udd90': 'L'
'\ud835\udd91': 'L'
'\ud835\udd92': 'L'
'\ud835\udd93': 'L'
'\ud835\udd94': 'L'
'\ud835\udd95': 'L'
'\ud835\udd96': 'L'
'\ud835\udd97': 'L'
'\ud835\udd98': 'L'
'\ud835\udd99': 'L'
'\ud835\udd9a': 'L'
'\ud835\udd9b': 'L'
'\ud835\udd9c': 'L'
'\ud835\udd9d': 'L'
'\ud835\udd9e': 'L'
'\ud835\udd9f': 'L'
'\ud835\udda0': 'Lu'
'\ud835\udda1': 'Lu'
'\ud835\udda2': 'Lu'
'\ud835\udda3': 'Lu'
'\ud835\udda4': 'Lu'
'\ud835\udda5': 'Lu'
'\ud835\udda6': 'Lu'
'\ud835\udda7': 'Lu'
'\ud835\udda8': 'Lu'
'\ud835\udda9': 'Lu'
'\ud835\uddaa': 'Lu'
'\ud835\uddab': 'Lu'
'\ud835\uddac': 'Lu'
'\ud835\uddad': 'Lu'
'\ud835\uddae': 'Lu'
'\ud835\uddaf': 'Lu'
'\ud835\uddb0': 'Lu'
'\ud835\uddb1': 'Lu'
'\ud835\uddb2': 'Lu'
'\ud835\uddb3': 'Lu'
'\ud835\uddb4': 'Lu'
'\ud835\uddb5': 'Lu'
'\ud835\uddb6': 'Lu'
'\ud835\uddb7': 'Lu'
'\ud835\uddb8': 'Lu'
'\ud835\uddb9': 'Lu'
'\ud835\uddba': 'L'
'\ud835\uddbb': 'L'
'\ud835\uddbc': 'L'
'\ud835\uddbd': 'L'
'\ud835\uddbe': 'L'
'\ud835\uddbf': 'L'
'\ud835\uddc0': 'L'
'\ud835\uddc1': 'L'
'\ud835\uddc2': 'L'
'\ud835\uddc3': 'L'
'\ud835\uddc4': 'L'
'\ud835\uddc5': 'L'
'\ud835\uddc6': 'L'
'\ud835\uddc7': 'L'
'\ud835\uddc8': 'L'
'\ud835\uddc9': 'L'
'\ud835\uddca': 'L'
'\ud835\uddcb': 'L'
'\ud835\uddcc': 'L'
'\ud835\uddcd': 'L'
'\ud835\uddce': 'L'
'\ud835\uddcf': 'L'
'\ud835\uddd0': 'L'
'\ud835\uddd1': 'L'
'\ud835\uddd2': 'L'
'\ud835\uddd3': 'L'
'\ud835\uddd4': 'Lu'
'\ud835\uddd5': 'Lu'
'\ud835\uddd6': 'Lu'
'\ud835\uddd7': 'Lu'
'\ud835\uddd8': 'Lu'
'\ud835\uddd9': 'Lu'
'\ud835\uddda': 'Lu'
'\ud835\udddb': 'Lu'
'\ud835\udddc': 'Lu'
'\ud835\udddd': 'Lu'
'\ud835\uddde': 'Lu'
'\ud835\udddf': 'Lu'
'\ud835\udde0': 'Lu'
'\ud835\udde1': 'Lu'
'\ud835\udde2': 'Lu'
'\ud835\udde3': 'Lu'
'\ud835\udde4': 'Lu'
'\ud835\udde5': 'Lu'
'\ud835\udde6': 'Lu'
'\ud835\udde7': 'Lu'
'\ud835\udde8': 'Lu'
'\ud835\udde9': 'Lu'
'\ud835\uddea': 'Lu'
'\ud835\uddeb': 'Lu'
'\ud835\uddec': 'Lu'
'\ud835\udded': 'Lu'
'\ud835\uddee': 'L'
'\ud835\uddef': 'L'
'\ud835\uddf0': 'L'
'\ud835\uddf1': 'L'
'\ud835\uddf2': 'L'
'\ud835\uddf3': 'L'
'\ud835\uddf4': 'L'
'\ud835\uddf5': 'L'
'\ud835\uddf6': 'L'
'\ud835\uddf7': 'L'
'\ud835\uddf8': 'L'
'\ud835\uddf9': 'L'
'\ud835\uddfa': 'L'
'\ud835\uddfb': 'L'
'\ud835\uddfc': 'L'
'\ud835\uddfd': 'L'
'\ud835\uddfe': 'L'
'\ud835\uddff': 'L'
'\ud835\ude00': 'L'
'\ud835\ude01': 'L'
'\ud835\ude02': 'L'
'\ud835\ude03': 'L'
'\ud835\ude04': 'L'
'\ud835\ude05': 'L'
'\ud835\ude06': 'L'
'\ud835\ude07': 'L'
'\ud835\ude08': 'Lu'
'\ud835\ude09': 'Lu'
'\ud835\ude0a': 'Lu'
'\ud835\ude0b': 'Lu'
'\ud835\ude0c': 'Lu'
'\ud835\ude0d': 'Lu'
'\ud835\ude0e': 'Lu'
'\ud835\ude0f': 'Lu'
'\ud835\ude10': 'Lu'
'\ud835\ude11': 'Lu'
'\ud835\ude12': 'Lu'
'\ud835\ude13': 'Lu'
'\ud835\ude14': 'Lu'
'\ud835\ude15': 'Lu'
'\ud835\ude16': 'Lu'
'\ud835\ude17': 'Lu'
'\ud835\ude18': 'Lu'
'\ud835\ude19': 'Lu'
'\ud835\ude1a': 'Lu'
'\ud835\ude1b': 'Lu'
'\ud835\ude1c': 'Lu'
'\ud835\ude1d': 'Lu'
'\ud835\ude1e': 'Lu'
'\ud835\ude1f': 'Lu'
'\ud835\ude20': 'Lu'
'\ud835\ude21': 'Lu'
'\ud835\ude22': 'L'
'\ud835\ude23': 'L'
'\ud835\ude24': 'L'
'\ud835\ude25': 'L'
'\ud835\ude26': 'L'
'\ud835\ude27': 'L'
'\ud835\ude28': 'L'
'\ud835\ude29': 'L'
'\ud835\ude2a': 'L'
'\ud835\ude2b': 'L'
'\ud835\ude2c': 'L'
'\ud835\ude2d': 'L'
'\ud835\ude2e': 'L'
'\ud835\ude2f': 'L'
'\ud835\ude30': 'L'
'\ud835\ude31': 'L'
'\ud835\ude32': 'L'
'\ud835\ude33': 'L'
'\ud835\ude34': 'L'
'\ud835\ude35': 'L'
'\ud835\ude36': 'L'
'\ud835\ude37': 'L'
'\ud835\ude38': 'L'
'\ud835\ude39': 'L'
'\ud835\ude3a': 'L'
'\ud835\ude3b': 'L'
'\ud835\ude3c': 'Lu'
'\ud835\ude3d': 'Lu'
'\ud835\ude3e': 'Lu'
'\ud835\ude3f': 'Lu'
'\ud835\ude40': 'Lu'
'\ud835\ude41': 'Lu'
'\ud835\ude42': 'Lu'
'\ud835\ude43': 'Lu'
'\ud835\ude44': 'Lu'
'\ud835\ude45': 'Lu'
'\ud835\ude46': 'Lu'
'\ud835\ude47': 'Lu'
'\ud835\ude48': 'Lu'
'\ud835\ude49': 'Lu'
'\ud835\ude4a': 'Lu'
'\ud835\ude4b': 'Lu'
'\ud835\ude4c': 'Lu'
'\ud835\ude4d': 'Lu'
'\ud835\ude4e': 'Lu'
'\ud835\ude4f': 'Lu'
'\ud835\ude50': 'Lu'
'\ud835\ude51': 'Lu'
'\ud835\ude52': 'Lu'
'\ud835\ude53': 'Lu'
'\ud835\ude54': 'Lu'
'\ud835\ude55': 'Lu'
'\ud835\ude56': 'L'
'\ud835\ude57': 'L'
'\ud835\ude58': 'L'
'\ud835\ude59': 'L'
'\ud835\ude5a': 'L'
'\ud835\ude5b': 'L'
'\ud835\ude5c': 'L'
'\ud835\ude5d': 'L'
'\ud835\ude5e': 'L'
'\ud835\ude5f': 'L'
'\ud835\ude60': 'L'
'\ud835\ude61': 'L'
'\ud835\ude62': 'L'
'\ud835\ude63': 'L'
'\ud835\ude64': 'L'
'\ud835\ude65': 'L'
'\ud835\ude66': 'L'
'\ud835\ude67': 'L'
'\ud835\ude68': 'L'
'\ud835\ude69': 'L'
'\ud835\ude6a': 'L'
'\ud835\ude6b': 'L'
'\ud835\ude6c': 'L'
'\ud835\ude6d': 'L'
'\ud835\ude6e': 'L'
'\ud835\ude6f': 'L'
'\ud835\ude70': 'Lu'
'\ud835\ude71': 'Lu'
'\ud835\ude72': 'Lu'
'\ud835\ude73': 'Lu'
'\ud835\ude74': 'Lu'
'\ud835\ude75': 'Lu'
'\ud835\ude76': 'Lu'
'\ud835\ude77': 'Lu'
'\ud835\ude78': 'Lu'
'\ud835\ude79': 'Lu'
'\ud835\ude7a': 'Lu'
'\ud835\ude7b': 'Lu'
'\ud835\ude7c': 'Lu'
'\ud835\ude7d': 'Lu'
'\ud835\ude7e': 'Lu'
'\ud835\ude7f': 'Lu'
'\ud835\ude80': 'Lu'
'\ud835\ude81': 'Lu'
'\ud835\ude82': 'Lu'
'\ud835\ude83': 'Lu'
'\ud835\ude84': 'Lu'
'\ud835\ude85': 'Lu'
'\ud835\ude86': 'Lu'
'\ud835\ude87': 'Lu'
'\ud835\ude88': 'Lu'
'\ud835\ude89': 'Lu'
'\ud835\ude8a': 'L'
'\ud835\ude8b': 'L'
'\ud835\ude8c': 'L'
'\ud835\ude8d': 'L'
'\ud835\ude8e': 'L'
'\ud835\ude8f': 'L'
'\ud835\ude90': 'L'
'\ud835\ude91': 'L'
'\ud835\ude92': 'L'
'\ud835\ude93': 'L'
'\ud835\ude94': 'L'
'\ud835\ude95': 'L'
'\ud835\ude96': 'L'
'\ud835\ude97': 'L'
'\ud835\ude98': 'L'
'\ud835\ude99': 'L'
'\ud835\ude9a': 'L'
'\ud835\ude9b': 'L'
'\ud835\ude9c': 'L'
'\ud835\ude9d': 'L'
'\ud835\ude9e': 'L'
'\ud835\ude9f': 'L'
'\ud835\udea0': 'L'
'\ud835\udea1': 'L'
'\ud835\udea2': 'L'
'\ud835\udea3': 'L'
'\ud835\udea4': 'L'
'\ud835\udea5': 'L'
'\ud835\udea8': 'Lu'
'\ud835\udea9': 'Lu'
'\ud835\udeaa': 'Lu'
'\ud835\udeab': 'Lu'
'\ud835\udeac': 'Lu'
'\ud835\udead': 'Lu'
'\ud835\udeae': 'Lu'
'\ud835\udeaf': 'Lu'
'\ud835\udeb0': 'Lu'
'\ud835\udeb1': 'Lu'
'\ud835\udeb2': 'Lu'
'\ud835\udeb3': 'Lu'
'\ud835\udeb4': 'Lu'
'\ud835\udeb5': 'Lu'
'\ud835\udeb6': 'Lu'
'\ud835\udeb7': 'Lu'
'\ud835\udeb8': 'Lu'
'\ud835\udeb9': '<NAME>'
'\ud835\udeba': 'Lu'
'\ud835\udebb': 'Lu'
'\ud835\udebc': 'Lu'
'\ud835\udebd': 'Lu'
'\ud835\udebe': 'Lu'
'\ud835\udebf': 'Lu'
'\ud835\udec0': 'Lu'
'\ud835\udec2': 'L'
'\ud835\udec3': 'L'
'\ud835\udec4': 'L'
'\ud835\udec5': 'L'
'\ud835\udec6': 'L'
'\ud835\udec7': 'L'
'\ud835\udec8': 'L'
'\ud835\udec9': 'L'
'\ud835\udeca': 'L'
'\ud835\udecb': 'L'
'\ud835\udecc': 'L'
'\ud835\udecd': 'L'
'\ud835\udece': 'L'
'\ud835\udecf': 'L'
'\ud835\uded0': 'L'
'\ud835\uded1': 'L'
'\ud835\uded2': 'L'
'\ud835\uded3': 'L'
'\ud835\uded4': 'L'
'\ud835\uded5': 'L'
'\ud835\uded6': 'L'
'\ud835\uded7': 'L'
'\ud835\uded8': 'L'
'\ud835\uded9': 'L'
'\ud835\udeda': 'L'
'\ud835\udedc': 'L'
'\ud835\udedd': 'L'
'\ud835\udede': 'L'
'\ud835\udedf': 'L'
'\ud835\udee0': 'L'
'\ud835\udee1': 'L'
'\ud835\udee2': 'Lu'
'\ud835\udee3': 'Lu'
'\ud835\udee4': 'Lu'
'\ud835\udee5': 'Lu'
'\ud835\udee6': 'Lu'
'\ud835\udee7': 'Lu'
'\ud835\udee8': 'Lu'
'\ud835\udee9': 'Lu'
'\ud835\udeea': 'Lu'
'\ud835\udeeb': 'Lu'
'\ud835\udeec': 'Lu'
'\ud835\udeed': 'Lu'
'\ud835\udeee': 'Lu'
'\ud835\udeef': 'Lu'
'\ud835\udef0': 'Lu'
'\ud835\udef1': 'Lu'
'\ud835\udef2': 'Lu'
'\ud835\udef3': 'Lu'
'\ud835\udef4': 'Lu'
'\ud835\udef5': 'Lu'
'\ud835\udef6': 'Lu'
'\ud835\udef7': 'Lu'
'\ud835\udef8': 'Lu'
'\ud835\udef9': 'Lu'
'\ud835\udefa': 'Lu'
'\ud835\udefc': 'L'
'\ud835\udefd': 'L'
'\ud835\udefe': 'L'
'\ud835\udeff': 'L'
'\ud835\udf00': 'L'
'\ud835\udf01': 'L'
'\ud835\udf02': 'L'
'\ud835\udf03': 'L'
'\ud835\udf04': 'L'
'\ud835\udf05': 'L'
'\ud835\udf06': 'L'
'\ud835\udf07': 'L'
'\ud835\udf08': 'L'
'\ud835\udf09': 'L'
'\ud835\udf0a': 'L'
'\ud835\udf0b': 'L'
'\ud835\udf0c': 'L'
'\ud835\udf0d': 'L'
'\ud835\udf0e': 'L'
'\ud835\udf0f': 'L'
'\ud835\udf10': 'L'
'\ud835\udf11': 'L'
'\ud835\udf12': 'L'
'\ud835\udf13': 'L'
'\ud835\udf14': 'L'
'\ud835\udf16': 'L'
'\ud835\udf17': 'L'
'\ud835\udf18': 'L'
'\ud835\udf19': 'L'
'\ud835\udf1a': 'L'
'\ud835\udf1b': 'L'
'\ud835\udf1c': 'Lu'
'\ud835\udf1d': 'Lu'
'\ud835\udf1e': 'Lu'
'\ud835\udf1f': 'Lu'
'\ud835\udf20': 'Lu'
'\ud835\udf21': 'Lu'
'\ud835\udf22': 'Lu'
'\ud835\udf23': 'Lu'
'\ud835\udf24': 'Lu'
'\ud835\udf25': 'Lu'
'\ud835\udf26': 'Lu'
'\ud835\udf27': 'Lu'
'\ud835\udf28': 'Lu'
'\ud835\udf29': 'Lu'
'\ud835\udf2a': 'Lu'
'\ud835\udf2b': 'Lu'
'\ud835\udf2c': 'Lu'
'\ud835\udf2d': 'Lu'
'\ud835\udf2e': 'Lu'
'\ud835\udf2f': 'Lu'
'\ud835\udf30': 'Lu'
'\ud835\udf31': 'Lu'
'\ud835\udf32': 'Lu'
'\ud835\udf33': 'Lu'
'\ud835\udf34': 'Lu'
'\ud835\udf36': 'L'
'\ud835\udf37': 'L'
'\ud835\udf38': 'L'
'\ud835\udf39': 'L'
'\ud835\udf3a': 'L'
'\ud835\udf3b': 'L'
'\ud835\udf3c': 'L'
'\ud835\udf3d': 'L'
'\ud835\udf3e': 'L'
'\ud835\udf3f': 'L'
'\ud835\udf40': 'L'
'\ud835\udf41': 'L'
'\ud835\udf42': 'L'
'\ud835\udf43': 'L'
'\ud835\udf44': 'L'
'\ud835\udf45': 'L'
'\ud835\udf46': 'L'
'\ud835\udf47': 'L'
'\ud835\udf48': 'L'
'\ud835\udf49': 'L'
'\ud835\udf4a': 'L'
'\ud835\udf4b': 'L'
'\ud835\udf4c': 'L'
'\ud835\udf4d': 'L'
'\ud835\udf4e': 'L'
'\ud835\udf50': 'L'
'\ud835\udf51': 'L'
'\ud835\udf52': 'L'
'\ud835\udf53': 'L'
'\ud835\udf54': 'L'
'\ud835\udf55': 'L'
'\ud835\udf56': 'Lu'
'\ud835\udf57': 'Lu'
'\ud835\udf58': 'Lu'
'\ud835\udf59': 'Lu'
'\ud835\udf5a': 'Lu'
'\ud835\udf5b': 'Lu'
'\ud835\udf5c': 'Lu'
'\ud835\udf5d': 'Lu'
'\ud835\udf5e': 'Lu'
'\ud835\udf5f': 'Lu'
'\ud835\udf60': 'Lu'
'\ud835\udf61': 'Lu'
'\ud835\udf62': 'Lu'
'\ud835\udf63': 'Lu'
'\ud835\udf64': 'Lu'
'\ud835\udf65': 'Lu'
'\ud835\udf66': 'Lu'
'\ud835\udf67': 'Lu'
'\ud835\udf68': 'Lu'
'\ud835\udf69': 'Lu'
'\ud835\udf6a': 'Lu'
'\ud835\udf6b': 'Lu'
'\ud835\udf6c': 'Lu'
'\ud835\udf6d': 'Lu'
'\ud835\udf6e': 'Lu'
'\ud835\udf70': 'L'
'\ud835\udf71': 'L'
'\ud835\udf72': 'L'
'\ud835\udf73': 'L'
'\ud835\udf74': 'L'
'\ud835\udf75': 'L'
'\ud835\udf76': 'L'
'\ud835\udf77': 'L'
'\ud835\udf78': 'L'
'\ud835\udf79': 'L'
'\ud835\udf7a': 'L'
'\ud835\udf7b': 'L'
'\ud835\udf7c': 'L'
'\ud835\udf7d': 'L'
'\ud835\udf7e': 'L'
'\ud835\udf7f': 'L'
'\ud835\udf80': 'L'
'\ud835\udf81': 'L'
'\ud835\udf82': 'L'
'\ud835\udf83': 'L'
'\ud835\udf84': 'L'
'\ud835\udf85': 'L'
'\ud835\udf86': 'L'
'\ud835\udf87': 'L'
'\ud835\udf88': 'L'
'\ud835\udf8a': 'L'
'\ud835\udf8b': 'L'
'\ud835\udf8c': 'L'
'\ud835\udf8d': 'L'
'\ud835\udf8e': 'L'
'\ud835\udf8f': 'L'
'\ud835\udf90': 'Lu'
'\ud835\udf91': 'Lu'
'\ud835\udf92': 'Lu'
'\ud835\udf93': 'Lu'
'\ud835\udf94': 'Lu'
'\ud835\udf95': 'Lu'
'\ud835\udf96': 'Lu'
'\ud835\udf97': 'Lu'
'\ud835\udf98': 'Lu'
'\ud835\udf99': 'Lu'
'\ud835\udf9a': 'Lu'
'\ud835\udf9b': 'Lu'
'\ud835\udf9c': 'Lu'
'\ud835\udf9d': 'Lu'
'\ud835\udf9e': 'Lu'
'\ud835\udf9f': 'Lu'
'\ud835\udfa0': 'Lu'
'\ud835\udfa1': 'Lu'
'\ud835\udfa2': 'Lu'
'\ud835\udfa3': 'Lu'
'\ud835\udfa4': 'Lu'
'\ud835\udfa5': 'Lu'
'\ud835\udfa6': 'Lu'
'\ud835\udfa7': 'Lu'
'\ud835\udfa8': 'Lu'
'\ud835\udfaa': 'L'
'\ud835\udfab': 'L'
'\ud835\udfac': 'L'
'\ud835\udfad': 'L'
'\ud835\udfae': 'L'
'\ud835\udfaf': 'L'
'\ud835\udfb0': 'L'
'\ud835\udfb1': 'L'
'\ud835\udfb2': 'L'
'\ud835\udfb3': 'L'
'\ud835\udfb4': 'L'
'\ud835\udfb5': 'L'
'\ud835\udfb6': 'L'
'\ud835\udfb7': 'L'
'\ud835\udfb8': 'L'
'\ud835\udfb9': 'L'
'\ud835\udfba': 'L'
'\ud835\udfbb': 'L'
'\ud835\udfbc': 'L'
'\ud835\udfbd': 'L'
'\ud835\udfbe': 'L'
'\ud835\udfbf': 'L'
'\ud835\udfc0': 'L'
'\ud835\udfc1': 'L'
'\ud835\udfc2': 'L'
'\ud835\udfc4': 'L'
'\ud835\udfc5': 'L'
'\ud835\udfc6': 'L'
'\ud835\udfc7': 'L'
'\ud835\udfc8': 'L'
'\ud835\udfc9': 'L'
'\ud835\udfca': 'Lu'
'\ud835\udfcb': 'L'
'\ud835\udfce': 'N'
'\ud835\udfcf': 'N'
'\ud835\udfd0': 'N'
'\ud835\udfd1': 'N'
'\ud835\udfd2': 'N'
'\ud835\udfd3': 'N'
'\ud835\udfd4': 'N'
'\ud835\udfd5': 'N'
'\ud835\udfd6': 'N'
'\ud835\udfd7': 'N'
'\ud835\udfd8': 'N'
'\ud835\udfd9': 'N'
'\ud835\udfda': 'N'
'\ud835\udfdb': 'N'
'\ud835\udfdc': 'N'
'\ud835\udfdd': 'N'
'\ud835\udfde': 'N'
'\ud835\udfdf': 'N'
'\ud835\udfe0': 'N'
'\ud835\udfe1': 'N'
'\ud835\udfe2': 'N'
'\ud835\udfe3': 'N'
'\ud835\udfe4': 'N'
'\ud835\udfe5': 'N'
'\ud835\udfe6': 'N'
'\ud835\udfe7': 'N'
'\ud835\udfe8': 'N'
'\ud835\udfe9': 'N'
'\ud835\udfea': 'N'
'\ud835\udfeb': 'N'
'\ud835\udfec': 'N'
'\ud835\udfed': 'N'
'\ud835\udfee': 'N'
'\ud835\udfef': 'N'
'\ud835\udff0': 'N'
'\ud835\udff1': 'N'
'\ud835\udff2': 'N'
'\ud835\udff3': 'N'
'\ud835\udff4': 'N'
'\ud835\udff5': 'N'
'\ud835\udff6': 'N'
'\ud835\udff7': 'N'
'\ud835\udff8': 'N'
'\ud835\udff9': 'N'
'\ud835\udffa': 'N'
'\ud835\udffb': 'N'
'\ud835\udffc': 'N'
'\ud835\udffd': 'N'
'\ud835\udffe': 'N'
'\ud835\udfff': 'N'
'\ud83a\udc00': 'L'
'\ud83a\udc01': 'L'
'\ud83a\udc02': 'L'
'\ud83a\udc03': 'L'
'\ud83a\udc04': 'L'
'\ud83a\udc05': 'L'
'\ud83a\udc06': 'L'
'\ud83a\udc07': 'L'
'\ud83a\udc08': 'L'
'\ud83a\udc09': 'L'
'\ud83a\udc0a': 'L'
'\ud83a\udc0b': 'L'
'\ud83a\udc0c': 'L'
'\ud83a\udc0d': 'L'
'\ud83a\udc0e': 'L'
'\ud83a\udc0f': 'L'
'\ud83a\udc10': 'L'
'\ud83a\udc11': 'L'
'\ud83a\udc12': 'L'
'\ud83a\udc13': 'L'
'\ud83a\udc14': 'L'
'\ud83a\udc15': 'L'
'\ud83a\udc16': 'L'
'\ud83a\udc17': 'L'
'\ud83a\udc18': 'L'
'\ud83a\udc19': 'L'
'\ud83a\udc1a': 'L'
'\ud83a\udc1b': 'L'
'\ud83a\udc1c': 'L'
'\ud83a\udc1d': 'L'
'\ud83a\udc1e': 'L'
'\ud83a\udc1f': 'L'
'\ud83a\udc20': 'L'
'\ud83a\udc21': 'L'
'\ud83a\udc22': 'L'
'\ud83a\udc23': 'L'
'\ud83a\udc24': 'L'
'\ud83a\udc25': 'L'
'\ud83a\udc26': 'L'
'\ud83a\udc27': 'L'
'\ud83a\udc28': 'L'
'\ud83a\udc29': 'L'
'\ud83a\udc2a': 'L'
'\ud83a\udc2b': 'L'
'\ud83a\udc2c': 'L'
'\ud83a\udc2d': 'L'
'\ud83a\udc2e': 'L'
'\ud83a\udc2f': 'L'
'\ud83a\udc30': 'L'
'\ud83a\udc31': 'L'
'\ud83a\udc32': 'L'
'\ud83a\udc33': 'L'
'\ud83a\udc34': 'L'
'\ud83a\udc35': 'L'
'\ud83a\udc36': 'L'
'\ud83a\udc37': 'L'
'\ud83a\udc38': 'L'
'\ud83a\udc39': 'L'
'\ud83a\udc3a': 'L'
'\ud83a\udc3b': 'L'
'\ud83a\udc3c': 'L'
'\ud83a\udc3d': 'L'
'\ud83a\udc3e': 'L'
'\ud83a\udc3f': 'L'
'\ud83a\udc40': 'L'
'\ud83a\udc41': 'L'
'\ud83a\udc42': 'L'
'\ud83a\udc43': 'L'
'\ud83a\udc44': 'L'
'\ud83a\udc45': 'L'
'\ud83a\udc46': 'L'
'\ud83a\udc47': 'L'
'\ud83a\udc48': 'L'
'\ud83a\udc49': 'L'
'\ud83a\udc4a': 'L'
'\ud83a\udc4b': 'L'
'\ud83a\udc4c': 'L'
'\ud83a\udc4d': 'L'
'\ud83a\udc4e': 'L'
'\ud83a\udc4f': 'L'
'\ud83a\udc50': 'L'
'\ud83a\udc51': 'L'
'\ud83a\udc52': 'L'
'\ud83a\udc53': 'L'
'\ud83a\udc54': 'L'
'\ud83a\udc55': 'L'
'\ud83a\udc56': 'L'
'\ud83a\udc57': 'L'
'\ud83a\udc58': 'L'
'\ud83a\udc59': 'L'
'\ud83a\udc5a': 'L'
'\ud83a\udc5b': 'L'
'\ud83a\udc5c': 'L'
'\ud83a\udc5d': 'L'
'\ud83a\udc5e': 'L'
'\ud83a\udc5f': 'L'
'\ud83a\udc60': 'L'
'\ud83a\udc61': 'L'
'\ud83a\udc62': 'L'
'\ud83a\udc63': 'L'
'\ud83a\udc64': 'L'
'\ud83a\udc65': 'L'
'\ud83a\udc66': 'L'
'\ud83a\udc67': 'L'
'\ud83a\udc68': 'L'
'\ud83a\udc69': 'L'
'\ud83a\udc6a': 'L'
'\ud83a\udc6b': 'L'
'\ud83a\udc6c': 'L'
'\ud83a\udc6d': 'L'
'\ud83a\udc6e': 'L'
'\ud83a\udc6f': 'L'
'\ud83a\udc70': 'L'
'\ud83a\udc71': 'L'
'\ud83a\udc72': 'L'
'\ud83a\udc73': 'L'
'\ud83a\udc74': 'L'
'\ud83a\udc75': 'L'
'\ud83a\udc76': 'L'
'\ud83a\udc77': 'L'
'\ud83a\udc78': 'L'
'\ud83a\udc79': 'L'
'\ud83a\udc7a': 'L'
'\ud83a\udc7b': 'L'
'\ud83a\udc7c': 'L'
'\ud83a\udc7d': 'L'
'\ud83a\udc7e': 'L'
'\ud83a\udc7f': 'L'
'\ud83a\udc80': 'L'
'\ud83a\udc81': 'L'
'\ud83a\udc82': 'L'
'\ud83a\udc83': 'L'
'\ud83a\udc84': 'L'
'\ud83a\udc85': 'L'
'\ud83a\udc86': 'L'
'\ud83a\udc87': 'L'
'\ud83a\udc88': 'L'
'\ud83a\udc89': 'L'
'\ud83a\udc8a': 'L'
'\ud83a\udc8b': 'L'
'\ud83a\udc8c': 'L'
'\ud83a\udc8d': 'L'
'\ud83a\udc8e': 'L'
'\ud83a\udc8f': 'L'
'\ud83a\udc90': 'L'
'\ud83a\udc91': 'L'
'\ud83a\udc92': 'L'
'\ud83a\udc93': 'L'
'\ud83a\udc94': 'L'
'\ud83a\udc95': 'L'
'\ud83a\udc96': 'L'
'\ud83a\udc97': 'L'
'\ud83a\udc98': 'L'
'\ud83a\udc99': 'L'
'\ud83a\udc9a': 'L'
'\ud83a\udc9b': 'L'
'\ud83a\udc9c': 'L'
'\ud83a\udc9d': 'L'
'\ud83a\udc9e': 'L'
'\ud83a\udc9f': 'L'
'\ud83a\udca0': 'L'
'\ud83a\udca1': 'L'
'\ud83a\udca2': 'L'
'\ud83a\udca3': 'L'
'\ud83a\udca4': 'L'
'\ud83a\udca5': 'L'
'\ud83a\udca6': 'L'
'\ud83a\udca7': 'L'
'\ud83a\udca8': 'L'
'\ud83a\udca9': 'L'
'\ud83a\udcaa': 'L'
'\ud83a\udcab': 'L'
'\ud83a\udcac': 'L'
'\ud83a\udcad': 'L'
'\ud83a\udcae': 'L'
'\ud83a\udcaf': 'L'
'\ud83a\udcb0': 'L'
'\ud83a\udcb1': 'L'
'\ud83a\udcb2': 'L'
'\ud83a\udcb3': 'L'
'\ud83a\udcb4': 'L'
'\ud83a\udcb5': 'L'
'\ud83a\udcb6': 'L'
'\ud83a\udcb7': 'L'
'\ud83a\udcb8': 'L'
'\ud83a\udcb9': 'L'
'\ud83a\udcba': 'L'
'\ud83a\udcbb': 'L'
'\ud83a\udcbc': 'L'
'\ud83a\udcbd': 'L'
'\ud83a\udcbe': 'L'
'\ud83a\udcbf': 'L'
'\ud83a\udcc0': 'L'
'\ud83a\udcc1': 'L'
'\ud83a\udcc2': 'L'
'\ud83a\udcc3': 'L'
'\ud83a\udcc4': 'L'
'\ud83a\udcc7': 'N'
'\ud83a\udcc8': 'N'
'\ud83a\udcc9': 'N'
'\ud83a\udcca': 'N'
'\ud83a\udccb': 'N'
'\ud83a\udccc': 'N'
'\ud83a\udccd': 'N'
'\ud83a\udcce': 'N'
'\ud83a\udccf': 'N'
'\ud83b\ude00': 'L'
'\ud83b\ude01': 'L'
'\ud83b\ude02': 'L'
'\ud83b\ude03': 'L'
'\ud83b\ude05': 'L'
'\ud83b\ude06': 'L'
'\ud83b\ude07': 'L'
'\ud83b\ude08': 'L'
'\ud83b\ude09': 'L'
'\ud83b\ude0a': 'L'
'\ud83b\ude0b': 'L'
'\ud83b\ude0c': 'L'
'\ud83b\ude0d': 'L'
'\ud83b\ude0e': 'L'
'\ud83b\ude0f': 'L'
'\ud83b\ude10': 'L'
'\ud83b\ude11': 'L'
'\ud83b\ude12': 'L'
'\ud83b\ude13': 'L'
'\ud83b\ude14': 'L'
'\ud83b\ude15': 'L'
'\ud83b\ude16': 'L'
'\ud83b\ude17': 'L'
'\ud83b\ude18': 'L'
'\ud83b\ude19': 'L'
'\ud83b\ude1a': 'L'
'\ud83b\ude1b': 'L'
'\ud83b\ude1c': 'L'
'\ud83b\ude1d': 'L'
'\ud83b\ude1e': 'L'
'\ud83b\ude1f': 'L'
'\ud83b\ude21': 'L'
'\ud83b\ude22': 'L'
'\ud83b\ude24': 'L'
'\ud83b\ude27': 'L'
'\ud83b\ude29': 'L'
'\ud83b\ude2a': 'L'
'\ud83b\ude2b': 'L'
'\ud83b\ude2c': 'L'
'\ud83b\ude2d': 'L'
'\ud83b\ude2e': 'L'
'\ud83b\ude2f': 'L'
'\ud83b\ude30': 'L'
'\ud83b\ude31': 'L'
'\ud83b\ude32': 'L'
'\ud83b\ude34': 'L'
'\ud83b\ude35': 'L'
'\ud83b\ude36': 'L'
'\ud83b\ude37': 'L'
'\ud83b\ude39': 'L'
'\ud83b\ude3b': 'L'
'\ud83b\ude42': 'L'
'\ud83b\ude47': 'L'
'\ud83b\ude49': 'L'
'\ud83b\ude4b': 'L'
'\ud83b\ude4d': 'L'
'\ud83b\ude4e': 'L'
'\ud83b\ude4f': 'L'
'\ud83b\ude51': 'L'
'\ud83b\ude52': 'L'
'\ud83b\ude54': 'L'
'\ud83b\ude57': 'L'
'\ud83b\ude59': 'L'
'\ud83b\ude5b': 'L'
'\ud83b\ude5d': 'L'
'\ud83b\ude5f': 'L'
'\ud83b\ude61': 'L'
'\ud83b\ude62': 'L'
'\ud83b\ude64': 'L'
'\ud83b\ude67': 'L'
'\ud83b\ude68': 'L'
'\ud83b\ude69': 'L'
'\ud83b\ude6a': 'L'
'\ud83b\ude6c': 'L'
'\ud83b\ude6d': 'L'
'\ud83b\ude6e': 'L'
'\ud83b\ude6f': 'L'
'\ud83b\ude70': 'L'
'\ud83b\ude71': 'L'
'\ud83b\ude72': 'L'
'\ud83b\ude74': 'L'
'\ud83b\ude75': 'L'
'\ud83b\ude76': 'L'
'\ud83b\ude77': 'L'
'\ud83b\ude79': 'L'
'\ud83b\ude7a': 'L'
'\ud83b\ude7b': 'L'
'\ud83b\ude7c': 'L'
'\ud83b\ude7e': 'L'
'\ud83b\ude80': 'L'
'\ud83b\ude81': 'L'
'\ud83b\ude82': 'L'
'\ud83b\ude83': 'L'
'\ud83b\ude84': 'L'
'\ud83b\ude85': 'L'
'\ud83b\ude86': 'L'
'\ud83b\ude87': 'L'
'\ud83b\ude88': 'L'
'\ud83b\ude89': 'L'
'\ud83b\ude8b': 'L'
'\ud83b\ude8c': 'L'
'\ud83b\ude8d': 'L'
'\ud83b\ude8e': 'L'
'\ud83b\ude8f': 'L'
'\ud83b\ude90': 'L'
'\ud83b\ude91': 'L'
'\ud83b\ude92': 'L'
'\ud83b\ude93': 'L'
'\ud83b\ude94': 'L'
'\ud83b\ude95': 'L'
'\ud83b\ude96': 'L'
'\ud83b\ude97': 'L'
'\ud83b\ude98': 'L'
'\ud83b\ude99': 'L'
'\ud83b\ude9a': 'L'
'\ud83b\ude9b': 'L'
'\ud83b\udea1': 'L'
'\ud83b\udea2': 'L'
'\ud83b\udea3': 'L'
'\ud83b\udea5': 'L'
'\ud83b\udea6': 'L'
'\ud83b\udea7': 'L'
'\ud83b\udea8': 'L'
'\ud83b\udea9': 'L'
'\ud83b\udeab': 'L'
'\ud83b\udeac': 'L'
'\ud83b\udead': 'L'
'\ud83b\udeae': 'L'
'\ud83b\udeaf': 'L'
'\ud83b\udeb0': 'L'
'\ud83b\udeb1': 'L'
'\ud83b\udeb2': 'L'
'\ud83b\udeb3': 'L'
'\ud83b\udeb4': 'L'
'\ud83b\udeb5': 'L'
'\ud83b\udeb6': 'L'
'\ud83b\udeb7': 'L'
'\ud83b\udeb8': 'L'
'\ud83b\udeb9': 'L'
'\ud83b\udeba': 'L'
'\ud83b\udebb': 'L'
'\ud83c\udd00': 'N'
'\ud83c\udd01': 'N'
'\ud83c\udd02': 'N'
'\ud83c\udd03': 'N'
'\ud83c\udd04': 'N'
'\ud83c\udd05': 'N'
'\ud83c\udd06': 'N'
'\ud83c\udd07': 'N'
'\ud83c\udd08': 'N'
'\ud83c\udd09': 'N'
'\ud83c\udd0a': 'N'
'\ud83c\udd0b': 'N'
'\ud83c\udd0c': 'N'
'\ud87e\udc00': 'L'
'\ud87e\udc01': 'L'
'\ud87e\udc02': 'L'
'\ud87e\udc03': 'L'
'\ud87e\udc04': 'L'
'\ud87e\udc05': 'L'
'\ud87e\udc06': 'L'
'\ud87e\udc07': 'L'
'\ud87e\udc08': 'L'
'\ud87e\udc09': 'L'
'\ud87e\udc0a': 'L'
'\ud87e\udc0b': 'L'
'\ud87e\udc0c': 'L'
'\ud87e\udc0d': 'L'
'\ud87e\udc0e': 'L'
'\ud87e\udc0f': 'L'
'\ud87e\udc10': 'L'
'\ud87e\udc11': 'L'
'\ud87e\udc12': 'L'
'\ud87e\udc13': 'L'
'\ud87e\udc14': 'L'
'\ud87e\udc15': 'L'
'\ud87e\udc16': 'L'
'\ud87e\udc17': 'L'
'\ud87e\udc18': 'L'
'\ud87e\udc19': 'L'
'\ud87e\udc1a': 'L'
'\ud87e\udc1b': 'L'
'\ud87e\udc1c': 'L'
'\ud87e\udc1d': 'L'
'\ud87e\udc1e': 'L'
'\ud87e\udc1f': 'L'
'\ud87e\udc20': 'L'
'\ud87e\udc21': 'L'
'\ud87e\udc22': 'L'
'\ud87e\udc23': 'L'
'\ud87e\udc24': 'L'
'\ud87e\udc25': 'L'
'\ud87e\udc26': 'L'
'\ud87e\udc27': 'L'
'\ud87e\udc28': 'L'
'\ud87e\udc29': 'L'
'\ud87e\udc2a': 'L'
'\ud87e\udc2b': 'L'
'\ud87e\udc2c': 'L'
'\ud87e\udc2d': 'L'
'\ud87e\udc2e': 'L'
'\ud87e\udc2f': 'L'
'\ud87e\udc30': 'L'
'\ud87e\udc31': 'L'
'\ud87e\udc32': 'L'
'\ud87e\udc33': 'L'
'\ud87e\udc34': 'L'
'\ud87e\udc35': 'L'
'\ud87e\udc36': 'L'
'\ud87e\udc37': 'L'
'\ud87e\udc38': 'L'
'\ud87e\udc39': 'L'
'\ud87e\udc3a': 'L'
'\ud87e\udc3b': 'L'
'\ud87e\udc3c': 'L'
'\ud87e\udc3d': 'L'
'\ud87e\udc3e': 'L'
'\ud87e\udc3f': 'L'
'\ud87e\udc40': 'L'
'\ud87e\udc41': 'L'
'\ud87e\udc42': 'L'
'\ud87e\udc43': 'L'
'\ud87e\udc44': 'L'
'\ud87e\udc45': 'L'
'\ud87e\udc46': 'L'
'\ud87e\udc47': 'L'
'\ud87e\udc48': 'L'
'\ud87e\udc49': 'L'
'\ud87e\udc4a': 'L'
'\ud87e\udc4b': 'L'
'\ud87e\udc4c': 'L'
'\ud87e\udc4d': 'L'
'\ud87e\udc4e': 'L'
'\ud87e\udc4f': 'L'
'\ud87e\udc50': 'L'
'\ud87e\udc51': 'L'
'\ud87e\udc52': 'L'
'\ud87e\udc53': 'L'
'\ud87e\udc54': 'L'
'\ud87e\udc55': 'L'
'\ud87e\udc56': 'L'
'\ud87e\udc57': 'L'
'\ud87e\udc58': 'L'
'\ud87e\udc59': 'L'
'\ud87e\udc5a': 'L'
'\ud87e\udc5b': 'L'
'\ud87e\udc5c': 'L'
'\ud87e\udc5d': 'L'
'\ud87e\udc5e': 'L'
'\ud87e\udc5f': 'L'
'\ud87e\udc60': 'L'
'\ud87e\udc61': 'L'
'\ud87e\udc62': 'L'
'\ud87e\udc63': 'L'
'\ud87e\udc64': 'L'
'\ud87e\udc65': 'L'
'\ud87e\udc66': 'L'
'\ud87e\udc67': 'L'
'\ud87e\udc68': 'L'
'\ud87e\udc69': 'L'
'\ud87e\udc6a': 'L'
'\ud87e\udc6b': 'L'
'\ud87e\udc6c': 'L'
'\ud87e\udc6d': 'L'
'\ud87e\udc6e': 'L'
'\ud87e\udc6f': 'L'
'\ud87e\udc70': 'L'
'\ud87e\udc71': 'L'
'\ud87e\udc72': 'L'
'\ud87e\udc73': 'L'
'\ud87e\udc74': 'L'
'\ud87e\udc75': 'L'
'\ud87e\udc76': 'L'
'\ud87e\udc77': 'L'
'\ud87e\udc78': 'L'
'\ud87e\udc79': 'L'
'\ud87e\udc7a': 'L'
'\ud87e\udc7b': 'L'
'\ud87e\udc7c': 'L'
'\ud87e\udc7d': 'L'
'\ud87e\udc7e': 'L'
'\ud87e\udc7f': 'L'
'\ud87e\udc80': 'L'
'\ud87e\udc81': 'L'
'\ud87e\udc82': 'L'
'\ud87e\udc83': 'L'
'\ud87e\udc84': 'L'
'\ud87e\udc85': 'L'
'\ud87e\udc86': 'L'
'\ud87e\udc87': 'L'
'\ud87e\udc88': 'L'
'\ud87e\udc89': 'L'
'\ud87e\udc8a': 'L'
'\ud87e\udc8b': 'L'
'\ud87e\udc8c': 'L'
'\ud87e\udc8d': 'L'
'\ud87e\udc8e': 'L'
'\ud87e\udc8f': 'L'
'\ud87e\udc90': 'L'
'\ud87e\udc91': 'L'
'\ud87e\udc92': 'L'
'\ud87e\udc93': 'L'
'\ud87e\udc94': 'L'
'\ud87e\udc95': 'L'
'\ud87e\udc96': 'L'
'\ud87e\udc97': 'L'
'\ud87e\udc98': 'L'
'\ud87e\udc99': 'L'
'\ud87e\udc9a': 'L'
'\ud87e\udc9b': 'L'
'\ud87e\udc9c': 'L'
'\ud87e\udc9d': 'L'
'\ud87e\udc9e': 'L'
'\ud87e\udc9f': 'L'
'\ud87e\udca0': 'L'
'\ud87e\udca1': 'L'
'\ud87e\udca2': 'L'
'\ud87e\udca3': 'L'
'\ud87e\udca4': 'L'
'\ud87e\udca5': 'L'
'\ud87e\udca6': 'L'
'\ud87e\udca7': 'L'
'\ud87e\udca8': 'L'
'\ud87e\udca9': 'L'
'\ud87e\udcaa': 'L'
'\ud87e\udcab': 'L'
'\ud87e\udcac': 'L'
'\ud87e\udcad': 'L'
'\ud87e\udcae': 'L'
'\ud87e\udcaf': 'L'
'\ud87e\udcb0': 'L'
'\ud87e\udcb1': 'L'
'\ud87e\udcb2': 'L'
'\ud87e\udcb3': 'L'
'\ud87e\udcb4': 'L'
'\ud87e\udcb5': 'L'
'\ud87e\udcb6': 'L'
'\ud87e\udcb7': 'L'
'\ud87e\udcb8': 'L'
'\ud87e\udcb9': 'L'
'\ud87e\udcba': 'L'
'\ud87e\udcbb': 'L'
'\ud87e\udcbc': 'L'
'\ud87e\udcbd': 'L'
'\ud87e\udcbe': 'L'
'\ud87e\udcbf': 'L'
'\ud87e\udcc0': 'L'
'\ud87e\udcc1': 'L'
'\ud87e\udcc2': 'L'
'\ud87e\udcc3': 'L'
'\ud87e\udcc4': 'L'
'\ud87e\udcc5': 'L'
'\ud87e\udcc6': 'L'
'\ud87e\udcc7': 'L'
'\ud87e\udcc8': 'L'
'\ud87e\udcc9': 'L'
'\ud87e\udcca': 'L'
'\ud87e\udccb': 'L'
'\ud87e\udccc': 'L'
'\ud87e\udccd': 'L'
'\ud87e\udcce': 'L'
'\ud87e\udccf': 'L'
'\ud87e\udcd0': 'L'
'\ud87e\udcd1': 'L'
'\ud87e\udcd2': 'L'
'\ud87e\udcd3': 'L'
'\ud87e\udcd4': 'L'
'\ud87e\udcd5': 'L'
'\ud87e\udcd6': 'L'
'\ud87e\udcd7': 'L'
'\ud87e\udcd8': 'L'
'\ud87e\udcd9': 'L'
'\ud87e\udcda': 'L'
'\ud87e\udcdb': 'L'
'\ud87e\udcdc': 'L'
'\ud87e\udcdd': 'L'
'\ud87e\udcde': 'L'
'\ud87e\udcdf': 'L'
'\ud87e\udce0': 'L'
'\ud87e\udce1': 'L'
'\ud87e\udce2': 'L'
'\ud87e\udce3': 'L'
'\ud87e\udce4': 'L'
'\ud87e\udce5': 'L'
'\ud87e\udce6': 'L'
'\ud87e\udce7': 'L'
'\ud87e\udce8': 'L'
'\ud87e\udce9': 'L'
'\ud87e\udcea': 'L'
'\ud87e\udceb': 'L'
'\ud87e\udcec': 'L'
'\ud87e\udced': 'L'
'\ud87e\udcee': 'L'
'\ud87e\udcef': 'L'
'\ud87e\udcf0': 'L'
'\ud87e\udcf1': 'L'
'\ud87e\udcf2': 'L'
'\ud87e\udcf3': 'L'
'\ud87e\udcf4': 'L'
'\ud87e\udcf5': 'L'
'\ud87e\udcf6': 'L'
'\ud87e\udcf7': 'L'
'\ud87e\udcf8': 'L'
'\ud87e\udcf9': 'L'
'\ud87e\udcfa': 'L'
'\ud87e\udcfb': 'L'
'\ud87e\udcfc': 'L'
'\ud87e\udcfd': 'L'
'\ud87e\udcfe': 'L'
'\ud87e\udcff': 'L'
'\ud87e\udd00': 'L'
'\ud87e\udd01': 'L'
'\ud87e\udd02': 'L'
'\ud87e\udd03': 'L'
'\ud87e\udd04': 'L'
'\ud87e\udd05': 'L'
'\ud87e\udd06': 'L'
'\ud87e\udd07': 'L'
'\ud87e\udd08': 'L'
'\ud87e\udd09': 'L'
'\ud87e\udd0a': 'L'
'\ud87e\udd0b': 'L'
'\ud87e\udd0c': 'L'
'\ud87e\udd0d': 'L'
'\ud87e\udd0e': 'L'
'\ud87e\udd0f': 'L'
'\ud87e\udd10': 'L'
'\ud87e\udd11': 'L'
'\ud87e\udd12': 'L'
'\ud87e\udd13': 'L'
'\ud87e\udd14': 'L'
'\ud87e\udd15': 'L'
'\ud87e\udd16': 'L'
'\ud87e\udd17': 'L'
'\ud87e\udd18': 'L'
'\ud87e\udd19': 'L'
'\ud87e\udd1a': 'L'
'\ud87e\udd1b': 'L'
'\ud87e\udd1c': 'L'
'\ud87e\udd1d': 'L'
'\ud87e\udd1e': 'L'
'\ud87e\udd1f': 'L'
'\ud87e\udd20': 'L'
'\ud87e\udd21': 'L'
'\ud87e\udd22': 'L'
'\ud87e\udd23': 'L'
'\ud87e\udd24': 'L'
'\ud87e\udd25': 'L'
'\ud87e\udd26': 'L'
'\ud87e\udd27': 'L'
'\ud87e\udd28': 'L'
'\ud87e\udd29': 'L'
'\ud87e\udd2a': 'L'
'\ud87e\udd2b': 'L'
'\ud87e\udd2c': 'L'
'\ud87e\udd2d': 'L'
'\ud87e\udd2e': 'L'
'\ud87e\udd2f': 'L'
'\ud87e\udd30': 'L'
'\ud87e\udd31': 'L'
'\ud87e\udd32': 'L'
'\ud87e\udd33': 'L'
'\ud87e\udd34': 'L'
'\ud87e\udd35': 'L'
'\ud87e\udd36': 'L'
'\ud87e\udd37': 'L'
'\ud87e\udd38': 'L'
'\ud87e\udd39': 'L'
'\ud87e\udd3a': 'L'
'\ud87e\udd3b': 'L'
'\ud87e\udd3c': 'L'
'\ud87e\udd3d': 'L'
'\ud87e\udd3e': 'L'
'\ud87e\udd3f': 'L'
'\ud87e\udd40': 'L'
'\ud87e\udd41': 'L'
'\ud87e\udd42': 'L'
'\ud87e\udd43': 'L'
'\ud87e\udd44': 'L'
'\ud87e\udd45': 'L'
'\ud87e\udd46': 'L'
'\ud87e\udd47': 'L'
'\ud87e\udd48': 'L'
'\ud87e\udd49': 'L'
'\ud87e\udd4a': 'L'
'\ud87e\udd4b': 'L'
'\ud87e\udd4c': 'L'
'\ud87e\udd4d': 'L'
'\ud87e\udd4e': 'L'
'\ud87e\udd4f': 'L'
'\ud87e\udd50': 'L'
'\ud87e\udd51': 'L'
'\ud87e\udd52': 'L'
'\ud87e\udd53': 'L'
'\ud87e\udd54': 'L'
'\ud87e\udd55': 'L'
'\ud87e\udd56': 'L'
'\ud87e\udd57': 'L'
'\ud87e\udd58': 'L'
'\ud87e\udd59': 'L'
'\ud87e\udd5a': 'L'
'\ud87e\udd5b': 'L'
'\ud87e\udd5c': 'L'
'\ud87e\udd5d': 'L'
'\ud87e\udd5e': 'L'
'\ud87e\udd5f': 'L'
'\ud87e\udd60': 'L'
'\ud87e\udd61': 'L'
'\ud87e\udd62': 'L'
'\ud87e\udd63': 'L'
'\ud87e\udd64': 'L'
'\ud87e\udd65': 'L'
'\ud87e\udd66': 'L'
'\ud87e\udd67': 'L'
'\ud87e\udd68': 'L'
'\ud87e\udd69': 'L'
'\ud87e\udd6a': 'L'
'\ud87e\udd6b': 'L'
'\ud87e\udd6c': 'L'
'\ud87e\udd6d': 'L'
'\ud87e\udd6e': 'L'
'\ud87e\udd6f': 'L'
'\ud87e\udd70': 'L'
'\ud87e\udd71': 'L'
'\ud87e\udd72': 'L'
'\ud87e\udd73': 'L'
'\ud87e\udd74': 'L'
'\ud87e\udd75': 'L'
'\ud87e\udd76': 'L'
'\ud87e\udd77': 'L'
'\ud87e\udd78': 'L'
'\ud87e\udd79': 'L'
'\ud87e\udd7a': 'L'
'\ud87e\udd7b': 'L'
'\ud87e\udd7c': 'L'
'\ud87e\udd7d': 'L'
'\ud87e\udd7e': 'L'
'\ud87e\udd7f': 'L'
'\ud87e\udd80': 'L'
'\ud87e\udd81': 'L'
'\ud87e\udd82': 'L'
'\ud87e\udd83': 'L'
'\ud87e\udd84': 'L'
'\ud87e\udd85': 'L'
'\ud87e\udd86': 'L'
'\ud87e\udd87': 'L'
'\ud87e\udd88': 'L'
'\ud87e\udd89': 'L'
'\ud87e\udd8a': 'L'
'\ud87e\udd8b': 'L'
'\ud87e\udd8c': 'L'
'\ud87e\udd8d': 'L'
'\ud87e\udd8e': 'L'
'\ud87e\udd8f': 'L'
'\ud87e\udd90': 'L'
'\ud87e\udd91': 'L'
'\ud87e\udd92': 'L'
'\ud87e\udd93': 'L'
'\ud87e\udd94': 'L'
'\ud87e\udd95': 'L'
'\ud87e\udd96': 'L'
'\ud87e\udd97': 'L'
'\ud87e\udd98': 'L'
'\ud87e\udd99': 'L'
'\ud87e\udd9a': 'L'
'\ud87e\udd9b': 'L'
'\ud87e\udd9c': 'L'
'\ud87e\udd9d': 'L'
'\ud87e\udd9e': 'L'
'\ud87e\udd9f': 'L'
'\ud87e\udda0': 'L'
'\ud87e\udda1': 'L'
'\ud87e\udda2': 'L'
'\ud87e\udda3': 'L'
'\ud87e\udda4': 'L'
'\ud87e\udda5': 'L'
'\ud87e\udda6': 'L'
'\ud87e\udda7': 'L'
'\ud87e\udda8': 'L'
'\ud87e\udda9': 'L'
'\ud87e\uddaa': 'L'
'\ud87e\uddab': 'L'
'\ud87e\uddac': 'L'
'\ud87e\uddad': 'L'
'\ud87e\uddae': 'L'
'\ud87e\uddaf': 'L'
'\ud87e\uddb0': 'L'
'\ud87e\uddb1': 'L'
'\ud87e\uddb2': 'L'
'\ud87e\uddb3': 'L'
'\ud87e\uddb4': 'L'
'\ud87e\uddb5': 'L'
'\ud87e\uddb6': 'L'
'\ud87e\uddb7': 'L'
'\ud87e\uddb8': 'L'
'\ud87e\uddb9': 'L'
'\ud87e\uddba': 'L'
'\ud87e\uddbb': 'L'
'\ud87e\uddbc': 'L'
'\ud87e\uddbd': 'L'
'\ud87e\uddbe': 'L'
'\ud87e\uddbf': 'L'
'\ud87e\uddc0': 'L'
'\ud87e\uddc1': 'L'
'\ud87e\uddc2': 'L'
'\ud87e\uddc3': 'L'
'\ud87e\uddc4': 'L'
'\ud87e\uddc5': 'L'
'\ud87e\uddc6': 'L'
'\ud87e\uddc7': 'L'
'\ud87e\uddc8': 'L'
'\ud87e\uddc9': 'L'
'\ud87e\uddca': 'L'
'\ud87e\uddcb': 'L'
'\ud87e\uddcc': 'L'
'\ud87e\uddcd': 'L'
'\ud87e\uddce': 'L'
'\ud87e\uddcf': 'L'
'\ud87e\uddd0': 'L'
'\ud87e\uddd1': 'L'
'\ud87e\uddd2': 'L'
'\ud87e\uddd3': 'L'
'\ud87e\uddd4': 'L'
'\ud87e\uddd5': 'L'
'\ud87e\uddd6': 'L'
'\ud87e\uddd7': 'L'
'\ud87e\uddd8': 'L'
'\ud87e\uddd9': 'L'
'\ud87e\uddda': 'L'
'\ud87e\udddb': 'L'
'\ud87e\udddc': 'L'
'\ud87e\udddd': 'L'
'\ud87e\uddde': 'L'
'\ud87e\udddf': 'L'
'\ud87e\udde0': 'L'
'\ud87e\udde1': 'L'
'\ud87e\udde2': 'L'
'\ud87e\udde3': 'L'
'\ud87e\udde4': 'L'
'\ud87e\udde5': 'L'
'\ud87e\udde6': 'L'
'\ud87e\udde7': 'L'
'\ud87e\udde8': 'L'
'\ud87e\udde9': 'L'
'\ud87e\uddea': 'L'
'\ud87e\uddeb': 'L'
'\ud87e\uddec': 'L'
'\ud87e\udded': 'L'
'\ud87e\uddee': 'L'
'\ud87e\uddef': 'L'
'\ud87e\uddf0': 'L'
'\ud87e\uddf1': 'L'
'\ud87e\uddf2': 'L'
'\ud87e\uddf3': 'L'
'\ud87e\uddf4': 'L'
'\ud87e\uddf5': 'L'
'\ud87e\uddf6': 'L'
'\ud87e\uddf7': 'L'
'\ud87e\uddf8': 'L'
'\ud87e\uddf9': 'L'
'\ud87e\uddfa': 'L'
'\ud87e\uddfb': 'L'
'\ud87e\uddfc': 'L'
'\ud87e\uddfd': 'L'
'\ud87e\uddfe': 'L'
'\ud87e\uddff': 'L'
'\ud87e\ude00': 'L'
'\ud87e\ude01': 'L'
'\ud87e\ude02': 'L'
'\ud87e\ude03': 'L'
'\ud87e\ude04': 'L'
'\ud87e\ude05': 'L'
'\ud87e\ude06': 'L'
'\ud87e\ude07': 'L'
'\ud87e\ude08': 'L'
'\ud87e\ude09': 'L'
'\ud87e\ude0a': 'L'
'\ud87e\ude0b': 'L'
'\ud87e\ude0c': 'L'
'\ud87e\ude0d': 'L'
'\ud87e\ude0e': 'L'
'\ud87e\ude0f': 'L'
'\ud87e\ude10': 'L'
'\ud87e\ude11': 'L'
'\ud87e\ude12': 'L'
'\ud87e\ude13': 'L'
'\ud87e\ude14': 'L'
'\ud87e\ude15': 'L'
'\ud87e\ude16': 'L'
'\ud87e\ude17': 'L'
'\ud87e\ude18': 'L'
'\ud87e\ude19': 'L'
'\ud87e\ude1a': 'L'
'\ud87e\ude1b': 'L'
'\ud87e\ude1c': 'L'
'\ud87e\ude1d': 'L'
| true | CharClass =
'\u0030': 'N'
'\u0031': 'N'
'\u0032': 'N'
'\u0033': 'N'
'\u0034': 'N'
'\u0035': 'N'
'\u0036': 'N'
'\u0037': 'N'
'\u0038': 'N'
'\u0039': 'N'
'\u0041': 'Lu'
'\u0042': 'Lu'
'\u0043': 'Lu'
'\u0044': 'Lu'
'\u0045': 'Lu'
'\u0046': 'Lu'
'\u0047': 'Lu'
'\u0048': 'Lu'
'\u0049': 'Lu'
'\u004a': 'Lu'
'\u004b': 'Lu'
'\u004c': 'Lu'
'\u004d': 'Lu'
'\u004e': 'Lu'
'\u004f': 'Lu'
'\u0050': 'Lu'
'\u0051': 'Lu'
'\u0052': 'Lu'
'\u0053': 'Lu'
'\u0054': 'Lu'
'\u0055': 'Lu'
'\u0056': 'Lu'
'\u0057': 'Lu'
'\u0058': 'Lu'
'\u0059': 'Lu'
'\u005a': 'Lu'
'\u0061': 'L'
'\u0062': 'L'
'\u0063': 'L'
'\u0064': 'L'
'\u0065': 'L'
'\u0066': 'L'
'\u0067': 'L'
'\u0068': 'L'
'\u0069': 'L'
'\u006a': 'L'
'\u006b': 'L'
'\u006c': 'L'
'\u006d': 'L'
'\u006e': 'L'
'\u006f': 'L'
'\u0070': 'L'
'\u0071': 'L'
'\u0072': 'L'
'\u0073': 'L'
'\u0074': 'L'
'\u0075': 'L'
'\u0076': 'L'
'\u0077': 'L'
'\u0078': 'L'
'\u0079': 'L'
'\u007a': 'L'
'\u00aa': 'L'
'\u00b2': 'N'
'\u00b3': 'N'
'\u00b5': 'L'
'\u00b9': 'N'
'\u00ba': 'L'
'\u00bc': 'N'
'\u00bd': 'N'
'\u00be': 'N'
'\u00c0': 'Lu'
'\u00c1': 'Lu'
'\u00c2': 'Lu'
'\u00c3': 'Lu'
'\u00c4': 'Lu'
'\u00c5': 'Lu'
'\u00c6': 'Lu'
'\u00c7': 'Lu'
'\u00c8': 'Lu'
'\u00c9': 'Lu'
'\u00ca': 'Lu'
'\u00cb': 'Lu'
'\u00cc': 'Lu'
'\u00cd': 'Lu'
'\u00ce': 'Lu'
'\u00cf': 'Lu'
'\u00d0': 'Lu'
'\u00d1': 'Lu'
'\u00d2': 'Lu'
'\u00d3': 'Lu'
'\u00d4': 'Lu'
'\u00d5': 'Lu'
'\u00d6': 'Lu'
'\u00d8': 'Lu'
'\u00d9': 'Lu'
'\u00da': 'Lu'
'\u00db': 'Lu'
'\u00dc': 'Lu'
'\u00dd': 'Lu'
'\u00de': 'Lu'
'\u00df': 'L'
'\u00e0': 'L'
'\u00e1': 'L'
'\u00e2': 'L'
'\u00e3': 'L'
'\u00e4': 'L'
'\u00e5': 'L'
'\u00e6': 'L'
'\u00e7': 'L'
'\u00e8': 'L'
'\u00e9': 'L'
'\u00ea': 'L'
'\u00eb': 'L'
'\u00ec': 'L'
'\u00ed': 'L'
'\u00ee': 'L'
'\u00ef': 'L'
'\u00f0': 'L'
'\u00f1': 'L'
'\u00f2': 'L'
'\u00f3': 'L'
'\u00f4': 'L'
'\u00f5': 'L'
'\u00f6': 'L'
'\u00f8': 'L'
'\u00f9': 'L'
'\u00fa': 'L'
'\u00fb': 'L'
'\u00fc': 'L'
'\u00fd': 'L'
'\u00fe': 'L'
'\u00ff': 'L'
'\u0100': 'Lu'
'\u0101': 'L'
'\u0102': 'Lu'
'\u0103': 'L'
'\u0104': 'Lu'
'\u0105': 'L'
'\u0106': 'Lu'
'\u0107': 'L'
'\u0108': 'Lu'
'\u0109': 'L'
'\u010a': 'Lu'
'\u010b': 'L'
'\u010c': 'Lu'
'\u010d': 'L'
'\u010e': 'Lu'
'\u010f': 'L'
'\u0110': 'Lu'
'\u0111': 'L'
'\u0112': 'Lu'
'\u0113': 'L'
'\u0114': 'Lu'
'\u0115': 'L'
'\u0116': 'Lu'
'\u0117': 'L'
'\u0118': 'Lu'
'\u0119': 'L'
'\u011a': 'Lu'
'\u011b': 'L'
'\u011c': 'Lu'
'\u011d': 'L'
'\u011e': 'Lu'
'\u011f': 'L'
'\u0120': 'Lu'
'\u0121': 'L'
'\u0122': 'Lu'
'\u0123': 'L'
'\u0124': 'Lu'
'\u0125': 'L'
'\u0126': 'Lu'
'\u0127': 'L'
'\u0128': 'Lu'
'\u0129': 'L'
'\u012a': 'Lu'
'\u012b': 'L'
'\u012c': 'Lu'
'\u012d': 'L'
'\u012e': 'Lu'
'\u012f': 'L'
'\u0130': 'Lu'
'\u0131': 'L'
'\u0132': 'Lu'
'\u0133': 'L'
'\u0134': 'Lu'
'\u0135': 'L'
'\u0136': 'Lu'
'\u0137': 'L'
'\u0138': 'L'
'\u0139': 'Lu'
'\u013a': 'L'
'\u013b': 'Lu'
'\u013c': 'L'
'\u013d': 'Lu'
'\u013e': 'L'
'\u013f': 'Lu'
'\u0140': 'L'
'\u0141': 'Lu'
'\u0142': 'L'
'\u0143': 'Lu'
'\u0144': 'L'
'\u0145': 'Lu'
'\u0146': 'L'
'\u0147': 'Lu'
'\u0148': 'L'
'\u0149': 'L'
'\u014a': 'Lu'
'\u014b': 'L'
'\u014c': 'Lu'
'\u014d': 'L'
'\u014e': 'Lu'
'\u014f': 'L'
'\u0150': 'Lu'
'\u0151': 'L'
'\u0152': 'Lu'
'\u0153': 'L'
'\u0154': 'Lu'
'\u0155': 'L'
'\u0156': 'Lu'
'\u0157': 'L'
'\u0158': 'Lu'
'\u0159': 'L'
'\u015a': 'Lu'
'\u015b': 'L'
'\u015c': 'Lu'
'\u015d': 'L'
'\u015e': 'Lu'
'\u015f': 'L'
'\u0160': 'Lu'
'\u0161': 'L'
'\u0162': 'Lu'
'\u0163': 'L'
'\u0164': 'Lu'
'\u0165': 'L'
'\u0166': 'Lu'
'\u0167': 'L'
'\u0168': 'Lu'
'\u0169': 'L'
'\u016a': 'Lu'
'\u016b': 'L'
'\u016c': 'Lu'
'\u016d': 'L'
'\u016e': 'Lu'
'\u016f': 'L'
'\u0170': 'Lu'
'\u0171': 'L'
'\u0172': 'Lu'
'\u0173': 'L'
'\u0174': 'Lu'
'\u0175': 'L'
'\u0176': 'Lu'
'\u0177': 'L'
'\u0178': 'Lu'
'\u0179': 'Lu'
'\u017a': 'L'
'\u017b': 'Lu'
'\u017c': 'L'
'\u017d': 'Lu'
'\u017e': 'L'
'\u017f': 'L'
'\u0180': 'L'
'\u0181': 'Lu'
'\u0182': 'Lu'
'\u0183': 'L'
'\u0184': 'Lu'
'\u0185': 'L'
'\u0186': 'Lu'
'\u0187': 'Lu'
'\u0188': 'L'
'\u0189': 'Lu'
'\u018a': 'Lu'
'\u018b': 'Lu'
'\u018c': 'L'
'\u018d': 'L'
'\u018e': 'Lu'
'\u018f': 'Lu'
'\u0190': 'Lu'
'\u0191': 'Lu'
'\u0192': 'L'
'\u0193': 'Lu'
'\u0194': 'Lu'
'\u0195': 'L'
'\u0196': 'Lu'
'\u0197': 'Lu'
'\u0198': 'Lu'
'\u0199': 'L'
'\u019a': 'L'
'\u019b': 'L'
'\u019c': 'Lu'
'\u019d': 'Lu'
'\u019e': 'L'
'\u019f': 'Lu'
'\u01a0': 'Lu'
'\u01a1': 'L'
'\u01a2': 'Lu'
'\u01a3': 'L'
'\u01a4': 'Lu'
'\u01a5': 'L'
'\u01a6': 'Lu'
'\u01a7': 'Lu'
'\u01a8': 'L'
'\u01a9': 'Lu'
'\u01aa': 'L'
'\u01ab': 'L'
'\u01ac': 'Lu'
'\u01ad': 'L'
'\u01ae': 'Lu'
'\u01af': 'Lu'
'\u01b0': 'L'
'\u01b1': 'Lu'
'\u01b2': 'Lu'
'\u01b3': 'Lu'
'\u01b4': 'L'
'\u01b5': 'Lu'
'\u01b6': 'L'
'\u01b7': 'Lu'
'\u01b8': 'Lu'
'\u01b9': 'L'
'\u01ba': 'L'
'\u01bb': 'L'
'\u01bc': 'Lu'
'\u01bd': 'L'
'\u01be': 'L'
'\u01bf': 'L'
'\u01c0': 'L'
'\u01c1': 'L'
'\u01c2': 'L'
'\u01c3': 'L'
'\u01c4': 'Lu'
'\u01c5': 'L'
'\u01c6': 'L'
'\u01c7': 'Lu'
'\u01c8': 'L'
'\u01c9': 'L'
'\u01ca': 'Lu'
'\u01cb': 'L'
'\u01cc': 'L'
'\u01cd': 'Lu'
'\u01ce': 'L'
'\u01cf': 'Lu'
'\u01d0': 'L'
'\u01d1': 'Lu'
'\u01d2': 'L'
'\u01d3': 'Lu'
'\u01d4': 'L'
'\u01d5': 'Lu'
'\u01d6': 'L'
'\u01d7': 'Lu'
'\u01d8': 'L'
'\u01d9': 'Lu'
'\u01da': 'L'
'\u01db': 'Lu'
'\u01dc': 'L'
'\u01dd': 'L'
'\u01de': 'Lu'
'\u01df': 'L'
'\u01e0': 'Lu'
'\u01e1': 'L'
'\u01e2': 'Lu'
'\u01e3': 'L'
'\u01e4': 'Lu'
'\u01e5': 'L'
'\u01e6': 'Lu'
'\u01e7': 'L'
'\u01e8': 'Lu'
'\u01e9': 'L'
'\u01ea': 'Lu'
'\u01eb': 'L'
'\u01ec': 'Lu'
'\u01ed': 'L'
'\u01ee': 'Lu'
'\u01ef': 'L'
'\u01f0': 'L'
'\u01f1': 'Lu'
'\u01f2': 'L'
'\u01f3': 'L'
'\u01f4': 'Lu'
'\u01f5': 'L'
'\u01f6': 'Lu'
'\u01f7': 'Lu'
'\u01f8': 'Lu'
'\u01f9': 'L'
'\u01fa': 'Lu'
'\u01fb': 'L'
'\u01fc': 'Lu'
'\u01fd': 'L'
'\u01fe': 'Lu'
'\u01ff': 'L'
'\u0200': 'Lu'
'\u0201': 'L'
'\u0202': 'Lu'
'\u0203': 'L'
'\u0204': 'Lu'
'\u0205': 'L'
'\u0206': 'Lu'
'\u0207': 'L'
'\u0208': 'Lu'
'\u0209': 'L'
'\u020a': 'Lu'
'\u020b': 'L'
'\u020c': 'Lu'
'\u020d': 'L'
'\u020e': 'Lu'
'\u020f': 'L'
'\u0210': 'Lu'
'\u0211': 'L'
'\u0212': 'Lu'
'\u0213': 'L'
'\u0214': 'Lu'
'\u0215': 'L'
'\u0216': 'Lu'
'\u0217': 'L'
'\u0218': 'Lu'
'\u0219': 'L'
'\u021a': 'Lu'
'\u021b': 'L'
'\u021c': 'Lu'
'\u021d': 'L'
'\u021e': 'Lu'
'\u021f': 'L'
'\u0220': 'Lu'
'\u0221': 'L'
'\u0222': 'Lu'
'\u0223': 'L'
'\u0224': 'Lu'
'\u0225': 'L'
'\u0226': 'Lu'
'\u0227': 'L'
'\u0228': 'Lu'
'\u0229': 'L'
'\u022a': 'Lu'
'\u022b': 'L'
'\u022c': 'Lu'
'\u022d': 'L'
'\u022e': 'Lu'
'\u022f': 'L'
'\u0230': 'Lu'
'\u0231': 'L'
'\u0232': 'Lu'
'\u0233': 'L'
'\u0234': 'L'
'\u0235': 'L'
'\u0236': 'L'
'\u0237': 'L'
'\u0238': 'L'
'\u0239': 'L'
'\u023a': 'Lu'
'\u023b': 'Lu'
'\u023c': 'L'
'\u023d': 'Lu'
'\u023e': 'Lu'
'\u023f': 'L'
'\u0240': 'L'
'\u0241': 'Lu'
'\u0242': 'L'
'\u0243': 'Lu'
'\u0244': 'Lu'
'\u0245': 'Lu'
'\u0246': 'Lu'
'\u0247': 'L'
'\u0248': 'Lu'
'\u0249': 'L'
'\u024a': 'Lu'
'\u024b': 'L'
'\u024c': 'Lu'
'\u024d': 'L'
'\u024e': 'Lu'
'\u024f': 'L'
'\u0250': 'L'
'\u0251': 'L'
'\u0252': 'L'
'\u0253': 'L'
'\u0254': 'L'
'\u0255': 'L'
'\u0256': 'L'
'\u0257': 'L'
'\u0258': 'L'
'\u0259': 'L'
'\u025a': 'L'
'\u025b': 'L'
'\u025c': 'L'
'\u025d': 'L'
'\u025e': 'L'
'\u025f': 'L'
'\u0260': 'L'
'\u0261': 'L'
'\u0262': 'L'
'\u0263': 'L'
'\u0264': 'L'
'\u0265': 'L'
'\u0266': 'L'
'\u0267': 'L'
'\u0268': 'L'
'\u0269': 'L'
'\u026a': 'L'
'\u026b': 'L'
'\u026c': 'L'
'\u026d': 'L'
'\u026e': 'L'
'\u026f': 'L'
'\u0270': 'L'
'\u0271': 'L'
'\u0272': 'L'
'\u0273': 'L'
'\u0274': 'L'
'\u0275': 'L'
'\u0276': 'L'
'\u0277': 'L'
'\u0278': 'L'
'\u0279': 'L'
'\u027a': 'L'
'\u027b': 'L'
'\u027c': 'L'
'\u027d': 'L'
'\u027e': 'L'
'\u027f': 'L'
'\u0280': 'L'
'\u0281': 'L'
'\u0282': 'L'
'\u0283': 'L'
'\u0284': 'L'
'\u0285': 'L'
'\u0286': 'L'
'\u0287': 'L'
'\u0288': 'L'
'\u0289': 'L'
'\u028a': 'L'
'\u028b': 'L'
'\u028c': 'L'
'\u028d': 'L'
'\u028e': 'L'
'\u028f': 'L'
'\u0290': 'L'
'\u0291': 'L'
'\u0292': 'L'
'\u0293': 'L'
'\u0294': 'L'
'\u0295': 'L'
'\u0296': 'L'
'\u0297': 'L'
'\u0298': 'L'
'\u0299': 'L'
'\u029a': 'L'
'\u029b': 'L'
'\u029c': 'L'
'\u029d': 'L'
'\u029e': 'L'
'\u029f': 'L'
'\u02a0': 'L'
'\u02a1': 'L'
'\u02a2': 'L'
'\u02a3': 'L'
'\u02a4': 'L'
'\u02a5': 'L'
'\u02a6': 'L'
'\u02a7': 'L'
'\u02a8': 'L'
'\u02a9': 'L'
'\u02aa': 'L'
'\u02ab': 'L'
'\u02ac': 'L'
'\u02ad': 'L'
'\u02ae': 'L'
'\u02af': 'L'
'\u02b0': 'L'
'\u02b1': 'L'
'\u02b2': 'L'
'\u02b3': 'L'
'\u02b4': 'L'
'\u02b5': 'L'
'\u02b6': 'L'
'\u02b7': 'L'
'\u02b8': 'L'
'\u02b9': 'L'
'\u02ba': 'L'
'\u02bb': 'L'
'\u02bc': 'L'
'\u02bd': 'L'
'\u02be': 'L'
'\u02bf': 'L'
'\u02c0': 'L'
'\u02c1': 'L'
'\u02c6': 'L'
'\u02c7': 'L'
'\u02c8': 'L'
'\u02c9': 'L'
'\u02ca': 'L'
'\u02cb': 'L'
'\u02cc': 'L'
'\u02cd': 'L'
'\u02ce': 'L'
'\u02cf': 'L'
'\u02d0': 'L'
'\u02d1': 'L'
'\u02e0': 'L'
'\u02e1': 'L'
'\u02e2': 'L'
'\u02e3': 'L'
'\u02e4': 'L'
'\u02ec': 'L'
'\u02ee': 'L'
'\u0370': 'Lu'
'\u0371': 'L'
'\u0372': 'Lu'
'\u0373': 'L'
'\u0374': 'L'
'\u0376': 'Lu'
'\u0377': 'L'
'\u037a': 'L'
'\u037b': 'L'
'\u037c': 'L'
'\u037d': 'L'
'\u037f': 'Lu'
'\u0386': 'Lu'
'\u0388': 'Lu'
'\u0389': 'Lu'
'\u038a': 'Lu'
'\u038c': 'Lu'
'\u038e': 'Lu'
'\u038f': 'Lu'
'\u0390': 'L'
'\u0391': 'Lu'
'\u0392': 'Lu'
'\u0393': 'Lu'
'\u0394': 'Lu'
'\u0395': 'Lu'
'\u0396': 'Lu'
'\u0397': 'Lu'
'\u0398': 'Lu'
'\u0399': 'Lu'
'\u039a': 'Lu'
'\u039b': 'Lu'
'\u039c': 'Lu'
'\u039d': 'Lu'
'\u039e': 'Lu'
'\u039f': 'Lu'
'\u03a0': 'Lu'
'\u03a1': 'Lu'
'\u03a3': 'Lu'
'\u03a4': 'Lu'
'\u03a5': 'Lu'
'\u03a6': 'Lu'
'\u03a7': 'Lu'
'\u03a8': 'Lu'
'\u03a9': 'Lu'
'\u03aa': 'Lu'
'\u03ab': 'Lu'
'\u03ac': 'L'
'\u03ad': 'L'
'\u03ae': 'L'
'\u03af': 'L'
'\u03b0': 'L'
'\u03b1': 'L'
'\u03b2': 'L'
'\u03b3': 'L'
'\u03b4': 'L'
'\u03b5': 'L'
'\u03b6': 'L'
'\u03b7': 'L'
'\u03b8': 'L'
'\u03b9': 'L'
'\u03ba': 'L'
'\u03bb': 'L'
'\u03bc': 'L'
'\u03bd': 'L'
'\u03be': 'L'
'\u03bf': 'L'
'\u03c0': 'L'
'\u03c1': 'L'
'\u03c2': 'L'
'\u03c3': 'L'
'\u03c4': 'L'
'\u03c5': 'L'
'\u03c6': 'L'
'\u03c7': 'L'
'\u03c8': 'L'
'\u03c9': 'L'
'\u03ca': 'L'
'\u03cb': 'L'
'\u03cc': 'L'
'\u03cd': 'L'
'\u03ce': 'L'
'\u03cf': 'Lu'
'\u03d0': 'L'
'\u03d1': 'L'
'\u03d2': 'Lu'
'\u03d3': 'Lu'
'\u03d4': 'Lu'
'\u03d5': 'L'
'\u03d6': 'L'
'\u03d7': 'L'
'\u03d8': 'Lu'
'\u03d9': 'L'
'\u03da': 'Lu'
'\u03db': 'L'
'\u03dc': 'Lu'
'\u03dd': 'L'
'\u03de': 'Lu'
'\u03df': 'L'
'\u03e0': 'Lu'
'\u03e1': 'L'
'\u03e2': 'Lu'
'\u03e3': 'L'
'\u03e4': 'Lu'
'\u03e5': 'L'
'\u03e6': 'Lu'
'\u03e7': 'L'
'\u03e8': 'Lu'
'\u03e9': 'L'
'\u03ea': 'Lu'
'\u03eb': 'L'
'\u03ec': 'Lu'
'\u03ed': 'L'
'\u03ee': 'Lu'
'\u03ef': 'L'
'\u03f0': 'L'
'\u03f1': 'L'
'\u03f2': 'L'
'\u03f3': 'L'
'\u03f4': 'Lu'
'\u03f5': 'L'
'\u03f7': 'Lu'
'\u03f8': 'L'
'\u03f9': 'Lu'
'\u03fa': 'Lu'
'\u03fb': 'L'
'\u03fc': 'L'
'\u03fd': 'Lu'
'\u03fe': 'Lu'
'\u03ff': 'Lu'
'\u0400': 'Lu'
'\u0401': 'Lu'
'\u0402': 'Lu'
'\u0403': 'Lu'
'\u0404': 'Lu'
'\u0405': 'Lu'
'\u0406': 'Lu'
'\u0407': 'Lu'
'\u0408': 'Lu'
'\u0409': 'Lu'
'\u040a': 'Lu'
'\u040b': 'Lu'
'\u040c': 'Lu'
'\u040d': 'Lu'
'\u040e': 'Lu'
'\u040f': 'Lu'
'\u0410': 'Lu'
'\u0411': 'Lu'
'\u0412': 'Lu'
'\u0413': 'Lu'
'\u0414': 'Lu'
'\u0415': 'Lu'
'\u0416': 'Lu'
'\u0417': 'Lu'
'\u0418': 'Lu'
'\u0419': 'Lu'
'\u041a': 'Lu'
'\u041b': 'Lu'
'\u041c': 'Lu'
'\u041d': 'Lu'
'\u041e': 'Lu'
'\u041f': 'Lu'
'\u0420': 'Lu'
'\u0421': 'Lu'
'\u0422': 'Lu'
'\u0423': 'Lu'
'\u0424': 'Lu'
'\u0425': 'Lu'
'\u0426': 'Lu'
'\u0427': 'Lu'
'\u0428': 'Lu'
'\u0429': 'Lu'
'\u042a': 'Lu'
'\u042b': 'Lu'
'\u042c': 'Lu'
'\u042d': 'Lu'
'\u042e': 'Lu'
'\u042f': 'Lu'
'\u0430': 'L'
'\u0431': 'L'
'\u0432': 'L'
'\u0433': 'L'
'\u0434': 'L'
'\u0435': 'L'
'\u0436': 'L'
'\u0437': 'L'
'\u0438': 'L'
'\u0439': 'L'
'\u043a': 'L'
'\u043b': 'L'
'\u043c': 'L'
'\u043d': 'L'
'\u043e': 'L'
'\u043f': 'L'
'\u0440': 'L'
'\u0441': 'L'
'\u0442': 'L'
'\u0443': 'L'
'\u0444': 'L'
'\u0445': 'L'
'\u0446': 'L'
'\u0447': 'L'
'\u0448': 'L'
'\u0449': 'L'
'\u044a': 'L'
'\u044b': 'L'
'\u044c': 'L'
'\u044d': 'L'
'\u044e': 'L'
'\u044f': 'L'
'\u0450': 'L'
'\u0451': 'L'
'\u0452': 'L'
'\u0453': 'L'
'\u0454': 'L'
'\u0455': 'L'
'\u0456': 'L'
'\u0457': 'L'
'\u0458': 'L'
'\u0459': 'L'
'\u045a': 'L'
'\u045b': 'L'
'\u045c': 'L'
'\u045d': 'L'
'\u045e': 'L'
'\u045f': 'L'
'\u0460': 'Lu'
'\u0461': 'L'
'\u0462': 'Lu'
'\u0463': 'L'
'\u0464': 'Lu'
'\u0465': 'L'
'\u0466': 'Lu'
'\u0467': 'L'
'\u0468': 'Lu'
'\u0469': 'L'
'\u046a': 'Lu'
'\u046b': 'L'
'\u046c': 'Lu'
'\u046d': 'L'
'\u046e': 'Lu'
'\u046f': 'L'
'\u0470': 'Lu'
'\u0471': 'L'
'\u0472': 'Lu'
'\u0473': 'L'
'\u0474': 'Lu'
'\u0475': 'L'
'\u0476': 'Lu'
'\u0477': 'L'
'\u0478': 'Lu'
'\u0479': 'L'
'\u047a': 'Lu'
'\u047b': 'L'
'\u047c': 'Lu'
'\u047d': 'L'
'\u047e': 'Lu'
'\u047f': 'L'
'\u0480': 'Lu'
'\u0481': 'L'
'\u048a': 'Lu'
'\u048b': 'L'
'\u048c': 'Lu'
'\u048d': 'L'
'\u048e': 'Lu'
'\u048f': 'L'
'\u0490': 'Lu'
'\u0491': 'L'
'\u0492': 'Lu'
'\u0493': 'L'
'\u0494': 'Lu'
'\u0495': 'L'
'\u0496': 'Lu'
'\u0497': 'L'
'\u0498': 'Lu'
'\u0499': 'L'
'\u049a': 'Lu'
'\u049b': 'L'
'\u049c': 'Lu'
'\u049d': 'L'
'\u049e': 'Lu'
'\u049f': 'L'
'\u04a0': 'Lu'
'\u04a1': 'L'
'\u04a2': 'Lu'
'\u04a3': 'L'
'\u04a4': 'Lu'
'\u04a5': 'L'
'\u04a6': 'Lu'
'\u04a7': 'L'
'\u04a8': 'Lu'
'\u04a9': 'L'
'\u04aa': 'Lu'
'\u04ab': 'L'
'\u04ac': 'Lu'
'\u04ad': 'L'
'\u04ae': 'Lu'
'\u04af': 'L'
'\u04b0': 'Lu'
'\u04b1': 'L'
'\u04b2': 'Lu'
'\u04b3': 'L'
'\u04b4': 'Lu'
'\u04b5': 'L'
'\u04b6': 'Lu'
'\u04b7': 'L'
'\u04b8': 'Lu'
'\u04b9': 'L'
'\u04ba': 'Lu'
'\u04bb': 'L'
'\u04bc': 'Lu'
'\u04bd': 'L'
'\u04be': 'Lu'
'\u04bf': 'L'
'\u04c0': 'Lu'
'\u04c1': 'Lu'
'\u04c2': 'L'
'\u04c3': 'Lu'
'\u04c4': 'L'
'\u04c5': 'Lu'
'\u04c6': 'L'
'\u04c7': 'Lu'
'\u04c8': 'L'
'\u04c9': 'Lu'
'\u04ca': 'L'
'\u04cb': 'Lu'
'\u04cc': 'L'
'\u04cd': 'Lu'
'\u04ce': 'L'
'\u04cf': 'L'
'\u04d0': 'Lu'
'\u04d1': 'L'
'\u04d2': 'Lu'
'\u04d3': 'L'
'\u04d4': 'Lu'
'\u04d5': 'L'
'\u04d6': 'Lu'
'\u04d7': 'L'
'\u04d8': 'Lu'
'\u04d9': 'L'
'\u04da': 'Lu'
'\u04db': 'L'
'\u04dc': 'Lu'
'\u04dd': 'L'
'\u04de': 'Lu'
'\u04df': 'L'
'\u04e0': 'Lu'
'\u04e1': 'L'
'\u04e2': 'Lu'
'\u04e3': 'L'
'\u04e4': 'Lu'
'\u04e5': 'L'
'\u04e6': 'Lu'
'\u04e7': 'L'
'\u04e8': 'Lu'
'\u04e9': 'L'
'\u04ea': 'Lu'
'\u04eb': 'L'
'\u04ec': 'Lu'
'\u04ed': 'L'
'\u04ee': 'Lu'
'\u04ef': 'L'
'\u04f0': 'Lu'
'\u04f1': 'L'
'\u04f2': 'Lu'
'\u04f3': 'L'
'\u04f4': 'Lu'
'\u04f5': 'L'
'\u04f6': 'Lu'
'\u04f7': 'L'
'\u04f8': 'Lu'
'\u04f9': 'L'
'\u04fa': 'Lu'
'\u04fb': 'L'
'\u04fc': 'Lu'
'\u04fd': 'L'
'\u04fe': 'Lu'
'\u04ff': 'L'
'\u0500': 'Lu'
'\u0501': 'L'
'\u0502': 'Lu'
'\u0503': 'L'
'\u0504': 'Lu'
'\u0505': 'L'
'\u0506': 'Lu'
'\u0507': 'L'
'\u0508': 'Lu'
'\u0509': 'L'
'\u050a': 'Lu'
'\u050b': 'L'
'\u050c': 'Lu'
'\u050d': 'L'
'\u050e': 'Lu'
'\u050f': 'L'
'\u0510': 'Lu'
'\u0511': 'L'
'\u0512': 'Lu'
'\u0513': 'L'
'\u0514': 'Lu'
'\u0515': 'L'
'\u0516': 'Lu'
'\u0517': 'L'
'\u0518': 'Lu'
'\u0519': 'L'
'\u051a': 'Lu'
'\u051b': 'L'
'\u051c': 'Lu'
'\u051d': 'L'
'\u051e': 'Lu'
'\u051f': 'L'
'\u0520': 'Lu'
'\u0521': 'L'
'\u0522': 'Lu'
'\u0523': 'L'
'\u0524': 'Lu'
'\u0525': 'L'
'\u0526': 'Lu'
'\u0527': 'L'
'\u0528': 'Lu'
'\u0529': 'L'
'\u052a': 'Lu'
'\u052b': 'L'
'\u052c': 'Lu'
'\u052d': 'L'
'\u052e': 'Lu'
'\u052f': 'L'
'\u0531': 'Lu'
'\u0532': 'Lu'
'\u0533': 'Lu'
'\u0534': 'Lu'
'\u0535': 'Lu'
'\u0536': 'Lu'
'\u0537': 'Lu'
'\u0538': 'Lu'
'\u0539': 'Lu'
'\u053a': 'Lu'
'\u053b': 'Lu'
'\u053c': 'Lu'
'\u053d': 'Lu'
'\u053e': 'Lu'
'\u053f': 'Lu'
'\u0540': 'Lu'
'\u0541': 'Lu'
'\u0542': 'Lu'
'\u0543': 'Lu'
'\u0544': 'Lu'
'\u0545': 'Lu'
'\u0546': 'Lu'
'\u0547': 'Lu'
'\u0548': 'Lu'
'\u0549': 'Lu'
'\u054a': 'Lu'
'\u054b': 'Lu'
'\u054c': 'Lu'
'\u054d': 'Lu'
'\u054e': 'Lu'
'\u054f': 'Lu'
'\u0550': 'Lu'
'\u0551': 'Lu'
'\u0552': 'Lu'
'\u0553': 'Lu'
'\u0554': 'Lu'
'\u0555': 'Lu'
'\u0556': 'Lu'
'\u0559': 'L'
'\u0561': 'L'
'\u0562': 'L'
'\u0563': 'L'
'\u0564': 'L'
'\u0565': 'L'
'\u0566': 'L'
'\u0567': 'L'
'\u0568': 'L'
'\u0569': 'L'
'\u056a': 'L'
'\u056b': 'L'
'\u056c': 'L'
'\u056d': 'L'
'\u056e': 'L'
'\u056f': 'L'
'\u0570': 'L'
'\u0571': 'L'
'\u0572': 'L'
'\u0573': 'L'
'\u0574': 'L'
'\u0575': 'L'
'\u0576': 'L'
'\u0577': 'L'
'\u0578': 'L'
'\u0579': 'L'
'\u057a': 'L'
'\u057b': 'L'
'\u057c': 'L'
'\u057d': 'L'
'\u057e': 'L'
'\u057f': 'L'
'\u0580': 'L'
'\u0581': 'L'
'\u0582': 'L'
'\u0583': 'L'
'\u0584': 'L'
'\u0585': 'L'
'\u0586': 'L'
'\u0587': 'L'
'\u05d0': 'L'
'\u05d1': 'L'
'\u05d2': 'L'
'\u05d3': 'L'
'\u05d4': 'L'
'\u05d5': 'L'
'\u05d6': 'L'
'\u05d7': 'L'
'\u05d8': 'L'
'\u05d9': 'L'
'\u05da': 'L'
'\u05db': 'L'
'\u05dc': 'L'
'\u05dd': 'L'
'\u05de': 'L'
'\u05df': 'L'
'\u05e0': 'L'
'\u05e1': 'L'
'\u05e2': 'L'
'\u05e3': 'L'
'\u05e4': 'L'
'\u05e5': 'L'
'\u05e6': 'L'
'\u05e7': 'L'
'\u05e8': 'L'
'\u05e9': 'L'
'\u05ea': 'L'
'\u05f0': 'L'
'\u05f1': 'L'
'\u05f2': 'L'
'\u0620': 'L'
'\u0621': 'L'
'\u0622': 'L'
'\u0623': 'L'
'\u0624': 'L'
'\u0625': 'L'
'\u0626': 'L'
'\u0627': 'L'
'\u0628': 'L'
'\u0629': 'L'
'\u062a': 'L'
'\u062b': 'L'
'\u062c': 'L'
'\u062d': 'L'
'\u062e': 'L'
'\u062f': 'L'
'\u0630': 'L'
'\u0631': 'L'
'\u0632': 'L'
'\u0633': 'L'
'\u0634': 'L'
'\u0635': 'L'
'\u0636': 'L'
'\u0637': 'L'
'\u0638': 'L'
'\u0639': 'L'
'\u063a': 'L'
'\u063b': 'L'
'\u063c': 'L'
'\u063d': 'L'
'\u063e': 'L'
'\u063f': 'L'
'\u0640': 'L'
'\u0641': 'L'
'\u0642': 'L'
'\u0643': 'L'
'\u0644': 'L'
'\u0645': 'L'
'\u0646': 'L'
'\u0647': 'L'
'\u0648': 'L'
'\u0649': 'L'
'\u064a': 'L'
'\u0660': 'N'
'\u0661': 'N'
'\u0662': 'N'
'\u0663': 'N'
'\u0664': 'N'
'\u0665': 'N'
'\u0666': 'N'
'\u0667': 'N'
'\u0668': 'N'
'\u0669': 'N'
'\u066e': 'L'
'\u066f': 'L'
'\u0671': 'L'
'\u0672': 'L'
'\u0673': 'L'
'\u0674': 'L'
'\u0675': 'L'
'\u0676': 'L'
'\u0677': 'L'
'\u0678': 'L'
'\u0679': 'L'
'\u067a': 'L'
'\u067b': 'L'
'\u067c': 'L'
'\u067d': 'L'
'\u067e': 'L'
'\u067f': 'L'
'\u0680': 'L'
'\u0681': 'L'
'\u0682': 'L'
'\u0683': 'L'
'\u0684': 'L'
'\u0685': 'L'
'\u0686': 'L'
'\u0687': 'L'
'\u0688': 'L'
'\u0689': 'L'
'\u068a': 'L'
'\u068b': 'L'
'\u068c': 'L'
'\u068d': 'L'
'\u068e': 'L'
'\u068f': 'L'
'\u0690': 'L'
'\u0691': 'L'
'\u0692': 'L'
'\u0693': 'L'
'\u0694': 'L'
'\u0695': 'L'
'\u0696': 'L'
'\u0697': 'L'
'\u0698': 'L'
'\u0699': 'L'
'\u069a': 'L'
'\u069b': 'L'
'\u069c': 'L'
'\u069d': 'L'
'\u069e': 'L'
'\u069f': 'L'
'\u06a0': 'L'
'\u06a1': 'L'
'\u06a2': 'L'
'\u06a3': 'L'
'\u06a4': 'L'
'\u06a5': 'L'
'\u06a6': 'L'
'\u06a7': 'L'
'\u06a8': 'L'
'\u06a9': 'L'
'\u06aa': 'L'
'\u06ab': 'L'
'\u06ac': 'L'
'\u06ad': 'L'
'\u06ae': 'L'
'\u06af': 'L'
'\u06b0': 'L'
'\u06b1': 'L'
'\u06b2': 'L'
'\u06b3': 'L'
'\u06b4': 'L'
'\u06b5': 'L'
'\u06b6': 'L'
'\u06b7': 'L'
'\u06b8': 'L'
'\u06b9': 'L'
'\u06ba': 'L'
'\u06bb': 'L'
'\u06bc': 'L'
'\u06bd': 'L'
'\u06be': 'L'
'\u06bf': 'L'
'\u06c0': 'L'
'\u06c1': 'L'
'\u06c2': 'L'
'\u06c3': 'L'
'\u06c4': 'L'
'\u06c5': 'L'
'\u06c6': 'L'
'\u06c7': 'L'
'\u06c8': 'L'
'\u06c9': 'L'
'\u06ca': 'L'
'\u06cb': 'L'
'\u06cc': 'L'
'\u06cd': 'L'
'\u06ce': 'L'
'\u06cf': 'L'
'\u06d0': 'L'
'\u06d1': 'L'
'\u06d2': 'L'
'\u06d3': 'L'
'\u06d5': 'L'
'\u06e5': 'L'
'\u06e6': 'L'
'\u06ee': 'L'
'\u06ef': 'L'
'\u06f0': 'N'
'\u06f1': 'N'
'\u06f2': 'N'
'\u06f3': 'N'
'\u06f4': 'N'
'\u06f5': 'N'
'\u06f6': 'N'
'\u06f7': 'N'
'\u06f8': 'N'
'\u06f9': 'N'
'\u06fa': 'L'
'\u06fb': 'L'
'\u06fc': 'L'
'\u06ff': 'L'
'\u0710': 'L'
'\u0712': 'L'
'\u0713': 'L'
'\u0714': 'L'
'\u0715': 'L'
'\u0716': 'L'
'\u0717': 'L'
'\u0718': 'L'
'\u0719': 'L'
'\u071a': 'L'
'\u071b': 'L'
'\u071c': 'L'
'\u071d': 'L'
'\u071e': 'L'
'\u071f': 'L'
'\u0720': 'L'
'\u0721': 'L'
'\u0722': 'L'
'\u0723': 'L'
'\u0724': 'L'
'\u0725': 'L'
'\u0726': 'L'
'\u0727': 'L'
'\u0728': 'L'
'\u0729': 'L'
'\u072a': 'L'
'\u072b': 'L'
'\u072c': 'L'
'\u072d': 'L'
'\u072e': 'L'
'\u072f': 'L'
'\u074d': 'L'
'\u074e': 'L'
'\u074f': 'L'
'\u0750': 'L'
'\u0751': 'L'
'\u0752': 'L'
'\u0753': 'L'
'\u0754': 'L'
'\u0755': 'L'
'\u0756': 'L'
'\u0757': 'L'
'\u0758': 'L'
'\u0759': 'L'
'\u075a': 'L'
'\u075b': 'L'
'\u075c': 'L'
'\u075d': 'L'
'\u075e': 'L'
'\u075f': 'L'
'\u0760': 'L'
'\u0761': 'L'
'\u0762': 'L'
'\u0763': 'L'
'\u0764': 'L'
'\u0765': 'L'
'\u0766': 'L'
'\u0767': 'L'
'\u0768': 'L'
'\u0769': 'L'
'\u076a': 'L'
'\u076b': 'L'
'\u076c': 'L'
'\u076d': 'L'
'\u076e': 'L'
'\u076f': 'L'
'\u0770': 'L'
'\u0771': 'L'
'\u0772': 'L'
'\u0773': 'L'
'\u0774': 'L'
'\u0775': 'L'
'\u0776': 'L'
'\u0777': 'L'
'\u0778': 'L'
'\u0779': 'L'
'\u077a': 'L'
'\u077b': 'L'
'\u077c': 'L'
'\u077d': 'L'
'\u077e': 'L'
'\u077f': 'L'
'\u0780': 'L'
'\u0781': 'L'
'\u0782': 'L'
'\u0783': 'L'
'\u0784': 'L'
'\u0785': 'L'
'\u0786': 'L'
'\u0787': 'L'
'\u0788': 'L'
'\u0789': 'L'
'\u078a': 'L'
'\u078b': 'L'
'\u078c': 'L'
'\u078d': 'L'
'\u078e': 'L'
'\u078f': 'L'
'\u0790': 'L'
'\u0791': 'L'
'\u0792': 'L'
'\u0793': 'L'
'\u0794': 'L'
'\u0795': 'L'
'\u0796': 'L'
'\u0797': 'L'
'\u0798': 'L'
'\u0799': 'L'
'\u079a': 'L'
'\u079b': 'L'
'\u079c': 'L'
'\u079d': 'L'
'\u079e': 'L'
'\u079f': 'L'
'\u07a0': 'L'
'\u07a1': 'L'
'\u07a2': 'L'
'\u07a3': 'L'
'\u07a4': 'L'
'\u07a5': 'L'
'\u07b1': 'L'
'\u07c0': 'N'
'\u07c1': 'N'
'\u07c2': 'N'
'\u07c3': 'N'
'\u07c4': 'N'
'\u07c5': 'N'
'\u07c6': 'N'
'\u07c7': 'N'
'\u07c8': 'N'
'\u07c9': 'N'
'\u07ca': 'L'
'\u07cb': 'L'
'\u07cc': 'L'
'\u07cd': 'L'
'\u07ce': 'L'
'\u07cf': 'L'
'\u07d0': 'L'
'\u07d1': 'L'
'\u07d2': 'L'
'\u07d3': 'L'
'\u07d4': 'L'
'\u07d5': 'L'
'\u07d6': 'L'
'\u07d7': 'L'
'\u07d8': 'L'
'\u07d9': 'L'
'\u07da': 'L'
'\u07db': 'L'
'\u07dc': 'L'
'\u07dd': 'L'
'\u07de': 'L'
'\u07df': 'L'
'\u07e0': 'L'
'\u07e1': 'L'
'\u07e2': 'L'
'\u07e3': 'L'
'\u07e4': 'L'
'\u07e5': 'L'
'\u07e6': 'L'
'\u07e7': 'L'
'\u07e8': 'L'
'\u07e9': 'L'
'\u07ea': 'L'
'\u07f4': 'L'
'\u07f5': 'L'
'\u07fa': 'L'
'\u0800': 'L'
'\u0801': 'L'
'\u0802': 'L'
'\u0803': 'L'
'\u0804': 'L'
'\u0805': 'L'
'\u0806': 'L'
'\u0807': 'L'
'\u0808': 'L'
'\u0809': 'L'
'\u080a': 'L'
'\u080b': 'L'
'\u080c': 'L'
'\u080d': 'L'
'\u080e': 'L'
'\u080f': 'L'
'\u0810': 'L'
'\u0811': 'L'
'\u0812': 'L'
'\u0813': 'L'
'\u0814': 'L'
'\u0815': 'L'
'\u081a': 'L'
'\u0824': 'L'
'\u0828': 'L'
'\u0840': 'L'
'\u0841': 'L'
'\u0842': 'L'
'\u0843': 'L'
'\u0844': 'L'
'\u0845': 'L'
'\u0846': 'L'
'\u0847': 'L'
'\u0848': 'L'
'\u0849': 'L'
'\u084a': 'L'
'\u084b': 'L'
'\u084c': 'L'
'\u084d': 'L'
'\u084e': 'L'
'\u084f': 'L'
'\u0850': 'L'
'\u0851': 'L'
'\u0852': 'L'
'\u0853': 'L'
'\u0854': 'L'
'\u0855': 'L'
'\u0856': 'L'
'\u0857': 'L'
'\u0858': 'L'
'\u08a0': 'L'
'\u08a1': 'L'
'\u08a2': 'L'
'\u08a3': 'L'
'\u08a4': 'L'
'\u08a5': 'L'
'\u08a6': 'L'
'\u08a7': 'L'
'\u08a8': 'L'
'\u08a9': 'L'
'\u08aa': 'L'
'\u08ab': 'L'
'\u08ac': 'L'
'\u08ad': 'L'
'\u08ae': 'L'
'\u08af': 'L'
'\u08b0': 'L'
'\u08b1': 'L'
'\u08b2': 'L'
'\u08b3': 'L'
'\u08b4': 'L'
'\u0904': 'L'
'\u0905': 'L'
'\u0906': 'L'
'\u0907': 'L'
'\u0908': 'L'
'\u0909': 'L'
'\u090a': 'L'
'\u090b': 'L'
'\u090c': 'L'
'\u090d': 'L'
'\u090e': 'L'
'\u090f': 'L'
'\u0910': 'L'
'\u0911': 'L'
'\u0912': 'L'
'\u0913': 'L'
'\u0914': 'L'
'\u0915': 'L'
'\u0916': 'L'
'\u0917': 'L'
'\u0918': 'L'
'\u0919': 'L'
'\u091a': 'L'
'\u091b': 'L'
'\u091c': 'L'
'\u091d': 'L'
'\u091e': 'L'
'\u091f': 'L'
'\u0920': 'L'
'\u0921': 'L'
'\u0922': 'L'
'\u0923': 'L'
'\u0924': 'L'
'\u0925': 'L'
'\u0926': 'L'
'\u0927': 'L'
'\u0928': 'L'
'\u0929': 'L'
'\u092a': 'L'
'\u092b': 'L'
'\u092c': 'L'
'\u092d': 'L'
'\u092e': 'L'
'\u092f': 'L'
'\u0930': 'L'
'\u0931': 'L'
'\u0932': 'L'
'\u0933': 'L'
'\u0934': 'L'
'\u0935': 'L'
'\u0936': 'L'
'\u0937': 'L'
'\u0938': 'L'
'\u0939': 'L'
'\u093d': 'L'
'\u0950': 'L'
'\u0958': 'L'
'\u0959': 'L'
'\u095a': 'L'
'\u095b': 'L'
'\u095c': 'L'
'\u095d': 'L'
'\u095e': 'L'
'\u095f': 'L'
'\u0960': 'L'
'\u0961': 'L'
'\u0966': 'N'
'\u0967': 'N'
'\u0968': 'N'
'\u0969': 'N'
'\u096a': 'N'
'\u096b': 'N'
'\u096c': 'N'
'\u096d': 'N'
'\u096e': 'N'
'\u096f': 'N'
'\u0971': 'L'
'\u0972': 'L'
'\u0973': 'L'
'\u0974': 'L'
'\u0975': 'L'
'\u0976': 'L'
'\u0977': 'L'
'\u0978': 'L'
'\u0979': 'L'
'\u097a': 'L'
'\u097b': 'L'
'\u097c': 'L'
'\u097d': 'L'
'\u097e': 'L'
'\u097f': 'L'
'\u0980': 'L'
'\u0985': 'L'
'\u0986': 'L'
'\u0987': 'L'
'\u0988': 'L'
'\u0989': 'L'
'\u098a': 'L'
'\u098b': 'L'
'\u098c': 'L'
'\u098f': 'L'
'\u0990': 'L'
'\u0993': 'L'
'\u0994': 'L'
'\u0995': 'L'
'\u0996': 'L'
'\u0997': 'L'
'\u0998': 'L'
'\u0999': 'L'
'\u099a': 'L'
'\u099b': 'L'
'\u099c': 'L'
'\u099d': 'L'
'\u099e': 'L'
'\u099f': 'L'
'\u09a0': 'L'
'\u09a1': 'L'
'\u09a2': 'L'
'\u09a3': 'L'
'\u09a4': 'L'
'\u09a5': 'L'
'\u09a6': 'L'
'\u09a7': 'L'
'\u09a8': 'L'
'\u09aa': 'L'
'\u09ab': 'L'
'\u09ac': 'L'
'\u09ad': 'L'
'\u09ae': 'L'
'\u09af': 'L'
'\u09b0': 'L'
'\u09b2': 'L'
'\u09b6': 'L'
'\u09b7': 'L'
'\u09b8': 'L'
'\u09b9': 'L'
'\u09bd': 'L'
'\u09ce': 'L'
'\u09dc': 'L'
'\u09dd': 'L'
'\u09df': 'L'
'\u09e0': 'L'
'\u09e1': 'L'
'\u09e6': 'N'
'\u09e7': 'N'
'\u09e8': 'N'
'\u09e9': 'N'
'\u09ea': 'N'
'\u09eb': 'N'
'\u09ec': 'N'
'\u09ed': 'N'
'\u09ee': 'N'
'\u09ef': 'N'
'\u09f0': 'L'
'\u09f1': 'L'
'\u09f4': 'N'
'\u09f5': 'N'
'\u09f6': 'N'
'\u09f7': 'N'
'\u09f8': 'N'
'\u09f9': 'N'
'\u0a05': 'L'
'\u0a06': 'L'
'\u0a07': 'L'
'\u0a08': 'L'
'\u0a09': 'L'
'\u0a0a': 'L'
'\u0a0f': 'L'
'\u0a10': 'L'
'\u0a13': 'L'
'\u0a14': 'L'
'\u0a15': 'L'
'\u0a16': 'L'
'\u0a17': 'L'
'\u0a18': 'L'
'\u0a19': 'L'
'\u0a1a': 'L'
'\u0a1b': 'L'
'\u0a1c': 'L'
'\u0a1d': 'L'
'\u0a1e': 'L'
'\u0a1f': 'L'
'\u0a20': 'L'
'\u0a21': 'L'
'\u0a22': 'L'
'\u0a23': 'L'
'\u0a24': 'L'
'\u0a25': 'L'
'\u0a26': 'L'
'\u0a27': 'L'
'\u0a28': 'L'
'\u0a2a': 'L'
'\u0a2b': 'L'
'\u0a2c': 'L'
'\u0a2d': 'L'
'\u0a2e': 'L'
'\u0a2f': 'L'
'\u0a30': 'L'
'\u0a32': 'L'
'\u0a33': 'L'
'\u0a35': 'L'
'\u0a36': 'L'
'\u0a38': 'L'
'\u0a39': 'L'
'\u0a59': 'L'
'\u0a5a': 'L'
'\u0a5b': 'L'
'\u0a5c': 'L'
'\u0a5e': 'L'
'\u0a66': 'N'
'\u0a67': 'N'
'\u0a68': 'N'
'\u0a69': 'N'
'\u0a6a': 'N'
'\u0a6b': 'N'
'\u0a6c': 'N'
'\u0a6d': 'N'
'\u0a6e': 'N'
'\u0a6f': 'N'
'\u0a72': 'L'
'\u0a73': 'L'
'\u0a74': 'L'
'\u0a85': 'L'
'\u0a86': 'L'
'\u0a87': 'L'
'\u0a88': 'L'
'\u0a89': 'L'
'\u0a8a': 'L'
'\u0a8b': 'L'
'\u0a8c': 'L'
'\u0a8d': 'L'
'\u0a8f': 'L'
'\u0a90': 'L'
'\u0a91': 'L'
'\u0a93': 'L'
'\u0a94': 'L'
'\u0a95': 'L'
'\u0a96': 'L'
'\u0a97': 'L'
'\u0a98': 'L'
'\u0a99': 'L'
'\u0a9a': 'L'
'\u0a9b': 'L'
'\u0a9c': 'L'
'\u0a9d': 'L'
'\u0a9e': 'L'
'\u0a9f': 'L'
'\u0aa0': 'L'
'\u0aa1': 'L'
'\u0aa2': 'L'
'\u0aa3': 'L'
'\u0aa4': 'L'
'\u0aa5': 'L'
'\u0aa6': 'L'
'\u0aa7': 'L'
'\u0aa8': 'L'
'\u0aaa': 'L'
'\u0aab': 'L'
'\u0aac': 'L'
'\u0aad': 'L'
'\u0aae': 'L'
'\u0aaf': 'L'
'\u0ab0': 'L'
'\u0ab2': 'L'
'\u0ab3': 'L'
'\u0ab5': 'L'
'\u0ab6': 'L'
'\u0ab7': 'L'
'\u0ab8': 'L'
'\u0ab9': 'L'
'\u0abd': 'L'
'\u0ad0': 'L'
'\u0ae0': 'L'
'\u0ae1': 'L'
'\u0ae6': 'N'
'\u0ae7': 'N'
'\u0ae8': 'N'
'\u0ae9': 'N'
'\u0aea': 'N'
'\u0aeb': 'N'
'\u0aec': 'N'
'\u0aed': 'N'
'\u0aee': 'N'
'\u0aef': 'N'
'\u0af9': 'L'
'\u0b05': 'L'
'\u0b06': 'L'
'\u0b07': 'L'
'\u0b08': 'L'
'\u0b09': 'L'
'\u0b0a': 'L'
'\u0b0b': 'L'
'\u0b0c': 'L'
'\u0b0f': 'L'
'\u0b10': 'L'
'\u0b13': 'L'
'\u0b14': 'L'
'\u0b15': 'L'
'\u0b16': 'L'
'\u0b17': 'L'
'\u0b18': 'L'
'\u0b19': 'L'
'\u0b1a': 'L'
'\u0b1b': 'L'
'\u0b1c': 'L'
'\u0b1d': 'L'
'\u0b1e': 'L'
'\u0b1f': 'L'
'\u0b20': 'L'
'\u0b21': 'L'
'\u0b22': 'L'
'\u0b23': 'L'
'\u0b24': 'L'
'\u0b25': 'L'
'\u0b26': 'L'
'\u0b27': 'L'
'\u0b28': 'L'
'\u0b2a': 'L'
'\u0b2b': 'L'
'\u0b2c': 'L'
'\u0b2d': 'L'
'\u0b2e': 'L'
'\u0b2f': 'L'
'\u0b30': 'L'
'\u0b32': 'L'
'\u0b33': 'L'
'\u0b35': 'L'
'\u0b36': 'L'
'\u0b37': 'L'
'\u0b38': 'L'
'\u0b39': 'L'
'\u0b3d': 'L'
'\u0b5c': 'L'
'\u0b5d': 'L'
'\u0b5f': 'L'
'\u0b60': 'L'
'\u0b61': 'L'
'\u0b66': 'N'
'\u0b67': 'N'
'\u0b68': 'N'
'\u0b69': 'N'
'\u0b6a': 'N'
'\u0b6b': 'N'
'\u0b6c': 'N'
'\u0b6d': 'N'
'\u0b6e': 'N'
'\u0b6f': 'N'
'\u0b71': 'L'
'\u0b72': 'N'
'\u0b73': 'N'
'\u0b74': 'N'
'\u0b75': 'N'
'\u0b76': 'N'
'\u0b77': 'N'
'\u0b83': 'L'
'\u0b85': 'L'
'\u0b86': 'L'
'\u0b87': 'L'
'\u0b88': 'L'
'\u0b89': 'L'
'\u0b8a': 'L'
'\u0b8e': 'L'
'\u0b8f': 'L'
'\u0b90': 'L'
'\u0b92': 'L'
'\u0b93': 'L'
'\u0b94': 'L'
'\u0b95': 'L'
'\u0b99': 'L'
'\u0b9a': 'L'
'\u0b9c': 'L'
'\u0b9e': 'L'
'\u0b9f': 'L'
'\u0ba3': 'L'
'\u0ba4': 'L'
'\u0ba8': 'L'
'\u0ba9': 'L'
'\u0baa': 'L'
'\u0bae': 'L'
'\u0baf': 'L'
'\u0bb0': 'L'
'\u0bb1': 'L'
'\u0bb2': 'L'
'\u0bb3': 'L'
'\u0bb4': 'L'
'\u0bb5': 'L'
'\u0bb6': 'L'
'\u0bb7': 'L'
'\u0bb8': 'L'
'\u0bb9': 'L'
'\u0bd0': 'L'
'\u0be6': 'N'
'\u0be7': 'N'
'\u0be8': 'N'
'\u0be9': 'N'
'\u0bea': 'N'
'\u0beb': 'N'
'\u0bec': 'N'
'\u0bed': 'N'
'\u0bee': 'N'
'\u0bef': 'N'
'\u0bf0': 'N'
'\u0bf1': 'N'
'\u0bf2': 'N'
'\u0c05': 'L'
'\u0c06': 'L'
'\u0c07': 'L'
'\u0c08': 'L'
'\u0c09': 'L'
'\u0c0a': 'L'
'\u0c0b': 'L'
'\u0c0c': 'L'
'\u0c0e': 'L'
'\u0c0f': 'L'
'\u0c10': 'L'
'\u0c12': 'L'
'\u0c13': 'L'
'\u0c14': 'L'
'\u0c15': 'L'
'\u0c16': 'L'
'\u0c17': 'L'
'\u0c18': 'L'
'\u0c19': 'L'
'\u0c1a': 'L'
'\u0c1b': 'L'
'\u0c1c': 'L'
'\u0c1d': 'L'
'\u0c1e': 'L'
'\u0c1f': 'L'
'\u0c20': 'L'
'\u0c21': 'L'
'\u0c22': 'L'
'\u0c23': 'L'
'\u0c24': 'L'
'\u0c25': 'L'
'\u0c26': 'L'
'\u0c27': 'L'
'\u0c28': 'L'
'\u0c2a': 'L'
'\u0c2b': 'L'
'\u0c2c': 'L'
'\u0c2d': 'L'
'\u0c2e': 'L'
'\u0c2f': 'L'
'\u0c30': 'L'
'\u0c31': 'L'
'\u0c32': 'L'
'\u0c33': 'L'
'\u0c34': 'L'
'\u0c35': 'L'
'\u0c36': 'L'
'\u0c37': 'L'
'\u0c38': 'L'
'\u0c39': 'L'
'\u0c3d': 'L'
'\u0c58': 'L'
'\u0c59': 'L'
'\u0c5a': 'L'
'\u0c60': 'L'
'\u0c61': 'L'
'\u0c66': 'N'
'\u0c67': 'N'
'\u0c68': 'N'
'\u0c69': 'N'
'\u0c6a': 'N'
'\u0c6b': 'N'
'\u0c6c': 'N'
'\u0c6d': 'N'
'\u0c6e': 'N'
'\u0c6f': 'N'
'\u0c78': 'N'
'\u0c79': 'N'
'\u0c7a': 'N'
'\u0c7b': 'N'
'\u0c7c': 'N'
'\u0c7d': 'N'
'\u0c7e': 'N'
'\u0c85': 'L'
'\u0c86': 'L'
'\u0c87': 'L'
'\u0c88': 'L'
'\u0c89': 'L'
'\u0c8a': 'L'
'\u0c8b': 'L'
'\u0c8c': 'L'
'\u0c8e': 'L'
'\u0c8f': 'L'
'\u0c90': 'L'
'\u0c92': 'L'
'\u0c93': 'L'
'\u0c94': 'L'
'\u0c95': 'L'
'\u0c96': 'L'
'\u0c97': 'L'
'\u0c98': 'L'
'\u0c99': 'L'
'\u0c9a': 'L'
'\u0c9b': 'L'
'\u0c9c': 'L'
'\u0c9d': 'L'
'\u0c9e': 'L'
'\u0c9f': 'L'
'\u0ca0': 'L'
'\u0ca1': 'L'
'\u0ca2': 'L'
'\u0ca3': 'L'
'\u0ca4': 'L'
'\u0ca5': 'L'
'\u0ca6': 'L'
'\u0ca7': 'L'
'\u0ca8': 'L'
'\u0caa': 'L'
'\u0cab': 'L'
'\u0cac': 'L'
'\u0cad': 'L'
'\u0cae': 'L'
'\u0caf': 'L'
'\u0cb0': 'L'
'\u0cb1': 'L'
'\u0cb2': 'L'
'\u0cb3': 'L'
'\u0cb5': 'L'
'\u0cb6': 'L'
'\u0cb7': 'L'
'\u0cb8': 'L'
'\u0cb9': 'L'
'\u0cbd': 'L'
'\u0cde': 'L'
'\u0ce0': 'L'
'\u0ce1': 'L'
'\u0ce6': 'N'
'\u0ce7': 'N'
'\u0ce8': 'N'
'\u0ce9': 'N'
'\u0cea': 'N'
'\u0ceb': 'N'
'\u0cec': 'N'
'\u0ced': 'N'
'\u0cee': 'N'
'\u0cef': 'N'
'\u0cf1': 'L'
'\u0cf2': 'L'
'\u0d05': 'L'
'\u0d06': 'L'
'\u0d07': 'L'
'\u0d08': 'L'
'\u0d09': 'L'
'\u0d0a': 'L'
'\u0d0b': 'L'
'\u0d0c': 'L'
'\u0d0e': 'L'
'\u0d0f': 'L'
'\u0d10': 'L'
'\u0d12': 'L'
'\u0d13': 'L'
'\u0d14': 'L'
'\u0d15': 'L'
'\u0d16': 'L'
'\u0d17': 'L'
'\u0d18': 'L'
'\u0d19': 'L'
'\u0d1a': 'L'
'\u0d1b': 'L'
'\u0d1c': 'L'
'\u0d1d': 'L'
'\u0d1e': 'L'
'\u0d1f': 'L'
'\u0d20': 'L'
'\u0d21': 'L'
'\u0d22': 'L'
'\u0d23': 'L'
'\u0d24': 'L'
'\u0d25': 'L'
'\u0d26': 'L'
'\u0d27': 'L'
'\u0d28': 'L'
'\u0d29': 'L'
'\u0d2a': 'L'
'\u0d2b': 'L'
'\u0d2c': 'L'
'\u0d2d': 'L'
'\u0d2e': 'L'
'\u0d2f': 'L'
'\u0d30': 'L'
'\u0d31': 'L'
'\u0d32': 'L'
'\u0d33': 'L'
'\u0d34': 'L'
'\u0d35': 'L'
'\u0d36': 'L'
'\u0d37': 'L'
'\u0d38': 'L'
'\u0d39': 'L'
'\u0d3a': 'L'
'\u0d3d': 'L'
'\u0d4e': 'L'
'\u0d5f': 'L'
'\u0d60': 'L'
'\u0d61': 'L'
'\u0d66': 'N'
'\u0d67': 'N'
'\u0d68': 'N'
'\u0d69': 'N'
'\u0d6a': 'N'
'\u0d6b': 'N'
'\u0d6c': 'N'
'\u0d6d': 'N'
'\u0d6e': 'N'
'\u0d6f': 'N'
'\u0d70': 'N'
'\u0d71': 'N'
'\u0d72': 'N'
'\u0d73': 'N'
'\u0d74': 'N'
'\u0d75': 'N'
'\u0d7a': 'L'
'\u0d7b': 'L'
'\u0d7c': 'L'
'\u0d7d': 'L'
'\u0d7e': 'L'
'\u0d7f': 'L'
'\u0d85': 'L'
'\u0d86': 'L'
'\u0d87': 'L'
'\u0d88': 'L'
'\u0d89': 'L'
'\u0d8a': 'L'
'\u0d8b': 'L'
'\u0d8c': 'L'
'\u0d8d': 'L'
'\u0d8e': 'L'
'\u0d8f': 'L'
'\u0d90': 'L'
'\u0d91': 'L'
'\u0d92': 'L'
'\u0d93': 'L'
'\u0d94': 'L'
'\u0d95': 'L'
'\u0d96': 'L'
'\u0d9a': 'L'
'\u0d9b': 'L'
'\u0d9c': 'L'
'\u0d9d': 'L'
'\u0d9e': 'L'
'\u0d9f': 'L'
'\u0da0': 'L'
'\u0da1': 'L'
'\u0da2': 'L'
'\u0da3': 'L'
'\u0da4': 'L'
'\u0da5': 'L'
'\u0da6': 'L'
'\u0da7': 'L'
'\u0da8': 'L'
'\u0da9': 'L'
'\u0daa': 'L'
'\u0dab': 'L'
'\u0dac': 'L'
'\u0dad': 'L'
'\u0dae': 'L'
'\u0daf': 'L'
'\u0db0': 'L'
'\u0db1': 'L'
'\u0db3': 'L'
'\u0db4': 'L'
'\u0db5': 'L'
'\u0db6': 'L'
'\u0db7': 'L'
'\u0db8': 'L'
'\u0db9': 'L'
'\u0dba': 'L'
'\u0dbb': 'L'
'\u0dbd': 'L'
'\u0dc0': 'L'
'\u0dc1': 'L'
'\u0dc2': 'L'
'\u0dc3': 'L'
'\u0dc4': 'L'
'\u0dc5': 'L'
'\u0dc6': 'L'
'\u0de6': 'N'
'\u0de7': 'N'
'\u0de8': 'N'
'\u0de9': 'N'
'\u0dea': 'N'
'\u0deb': 'N'
'\u0dec': 'N'
'\u0ded': 'N'
'\u0dee': 'N'
'\u0def': 'N'
'\u0e01': 'L'
'\u0e02': 'L'
'\u0e03': 'L'
'\u0e04': 'L'
'\u0e05': 'L'
'\u0e06': 'L'
'\u0e07': 'L'
'\u0e08': 'L'
'\u0e09': 'L'
'\u0e0a': 'L'
'\u0e0b': 'L'
'\u0e0c': 'L'
'\u0e0d': 'L'
'\u0e0e': 'L'
'\u0e0f': 'L'
'\u0e10': 'L'
'\u0e11': 'L'
'\u0e12': 'L'
'\u0e13': 'L'
'\u0e14': 'L'
'\u0e15': 'L'
'\u0e16': 'L'
'\u0e17': 'L'
'\u0e18': 'L'
'\u0e19': 'L'
'\u0e1a': 'L'
'\u0e1b': 'L'
'\u0e1c': 'L'
'\u0e1d': 'L'
'\u0e1e': 'L'
'\u0e1f': 'L'
'\u0e20': 'L'
'\u0e21': 'L'
'\u0e22': 'L'
'\u0e23': 'L'
'\u0e24': 'L'
'\u0e25': 'L'
'\u0e26': 'L'
'\u0e27': 'L'
'\u0e28': 'L'
'\u0e29': 'L'
'\u0e2a': 'L'
'\u0e2b': 'L'
'\u0e2c': 'L'
'\u0e2d': 'L'
'\u0e2e': 'L'
'\u0e2f': 'L'
'\u0e30': 'L'
'\u0e32': 'L'
'\u0e33': 'L'
'\u0e40': 'L'
'\u0e41': 'L'
'\u0e42': 'L'
'\u0e43': 'L'
'\u0e44': 'L'
'\u0e45': 'L'
'\u0e46': 'L'
'\u0e50': 'N'
'\u0e51': 'N'
'\u0e52': 'N'
'\u0e53': 'N'
'\u0e54': 'N'
'\u0e55': 'N'
'\u0e56': 'N'
'\u0e57': 'N'
'\u0e58': 'N'
'\u0e59': 'N'
'\u0e81': 'L'
'\u0e82': 'L'
'\u0e84': 'L'
'\u0e87': 'L'
'\u0e88': 'L'
'\u0e8a': 'L'
'\u0e8d': 'L'
'\u0e94': 'L'
'\u0e95': 'L'
'\u0e96': 'L'
'\u0e97': 'L'
'\u0e99': 'L'
'\u0e9a': 'L'
'\u0e9b': 'L'
'\u0e9c': 'L'
'\u0e9d': 'L'
'\u0e9e': 'L'
'\u0e9f': 'L'
'\u0ea1': 'L'
'\u0ea2': 'L'
'\u0ea3': 'L'
'\u0ea5': 'L'
'\u0ea7': 'L'
'\u0eaa': 'L'
'\u0eab': 'L'
'\u0ead': 'L'
'\u0eae': 'L'
'\u0eaf': 'L'
'\u0eb0': 'L'
'\u0eb2': 'L'
'\u0eb3': 'L'
'\u0ebd': 'L'
'\u0ec0': 'L'
'\u0ec1': 'L'
'\u0ec2': 'L'
'\u0ec3': 'L'
'\u0ec4': 'L'
'\u0ec6': 'L'
'\u0ed0': 'N'
'\u0ed1': 'N'
'\u0ed2': 'N'
'\u0ed3': 'N'
'\u0ed4': 'N'
'\u0ed5': 'N'
'\u0ed6': 'N'
'\u0ed7': 'N'
'\u0ed8': 'N'
'\u0ed9': 'N'
'\u0edc': 'L'
'\u0edd': 'L'
'\u0ede': 'L'
'\u0edf': 'L'
'\u0f00': 'L'
'\u0f20': 'N'
'\u0f21': 'N'
'\u0f22': 'N'
'\u0f23': 'N'
'\u0f24': 'N'
'\u0f25': 'N'
'\u0f26': 'N'
'\u0f27': 'N'
'\u0f28': 'N'
'\u0f29': 'N'
'\u0f2a': 'N'
'\u0f2b': 'N'
'\u0f2c': 'N'
'\u0f2d': 'N'
'\u0f2e': 'N'
'\u0f2f': 'N'
'\u0f30': 'N'
'\u0f31': 'N'
'\u0f32': 'N'
'\u0f33': 'N'
'\u0f40': 'L'
'\u0f41': 'L'
'\u0f42': 'L'
'\u0f43': 'L'
'\u0f44': 'L'
'\u0f45': 'L'
'\u0f46': 'L'
'\u0f47': 'L'
'\u0f49': 'L'
'\u0f4a': 'L'
'\u0f4b': 'L'
'\u0f4c': 'L'
'\u0f4d': 'L'
'\u0f4e': 'L'
'\u0f4f': 'L'
'\u0f50': 'L'
'\u0f51': 'L'
'\u0f52': 'L'
'\u0f53': 'L'
'\u0f54': 'L'
'\u0f55': 'L'
'\u0f56': 'L'
'\u0f57': 'L'
'\u0f58': 'L'
'\u0f59': 'L'
'\u0f5a': 'L'
'\u0f5b': 'L'
'\u0f5c': 'L'
'\u0f5d': 'L'
'\u0f5e': 'L'
'\u0f5f': 'L'
'\u0f60': 'L'
'\u0f61': 'L'
'\u0f62': 'L'
'\u0f63': 'L'
'\u0f64': 'L'
'\u0f65': 'L'
'\u0f66': 'L'
'\u0f67': 'L'
'\u0f68': 'L'
'\u0f69': 'L'
'\u0f6a': 'L'
'\u0f6b': 'L'
'\u0f6c': 'L'
'\u0f88': 'L'
'\u0f89': 'L'
'\u0f8a': 'L'
'\u0f8b': 'L'
'\u0f8c': 'L'
'\u1000': 'L'
'\u1001': 'L'
'\u1002': 'L'
'\u1003': 'L'
'\u1004': 'L'
'\u1005': 'L'
'\u1006': 'L'
'\u1007': 'L'
'\u1008': 'L'
'\u1009': 'L'
'\u100a': 'L'
'\u100b': 'L'
'\u100c': 'L'
'\u100d': 'L'
'\u100e': 'L'
'\u100f': 'L'
'\u1010': 'L'
'\u1011': 'L'
'\u1012': 'L'
'\u1013': 'L'
'\u1014': 'L'
'\u1015': 'L'
'\u1016': 'L'
'\u1017': 'L'
'\u1018': 'L'
'\u1019': 'L'
'\u101a': 'L'
'\u101b': 'L'
'\u101c': 'L'
'\u101d': 'L'
'\u101e': 'L'
'\u101f': 'L'
'\u1020': 'L'
'\u1021': 'L'
'\u1022': 'L'
'\u1023': 'L'
'\u1024': 'L'
'\u1025': 'L'
'\u1026': 'L'
'\u1027': 'L'
'\u1028': 'L'
'\u1029': 'L'
'\u102a': 'L'
'\u103f': 'L'
'\u1040': 'N'
'\u1041': 'N'
'\u1042': 'N'
'\u1043': 'N'
'\u1044': 'N'
'\u1045': 'N'
'\u1046': 'N'
'\u1047': 'N'
'\u1048': 'N'
'\u1049': 'N'
'\u1050': 'L'
'\u1051': 'L'
'\u1052': 'L'
'\u1053': 'L'
'\u1054': 'L'
'\u1055': 'L'
'\u105a': 'L'
'\u105b': 'L'
'\u105c': 'L'
'\u105d': 'L'
'\u1061': 'L'
'\u1065': 'L'
'\u1066': 'L'
'\u106e': 'L'
'\u106f': 'L'
'\u1070': 'L'
'\u1075': 'L'
'\u1076': 'L'
'\u1077': 'L'
'\u1078': 'L'
'\u1079': 'L'
'\u107a': 'L'
'\u107b': 'L'
'\u107c': 'L'
'\u107d': 'L'
'\u107e': 'L'
'\u107f': 'L'
'\u1080': 'L'
'\u1081': 'L'
'\u108e': 'L'
'\u1090': 'N'
'\u1091': 'N'
'\u1092': 'N'
'\u1093': 'N'
'\u1094': 'N'
'\u1095': 'N'
'\u1096': 'N'
'\u1097': 'N'
'\u1098': 'N'
'\u1099': 'N'
'\u10a0': 'Lu'
'\u10a1': 'Lu'
'\u10a2': 'Lu'
'\u10a3': 'Lu'
'\u10a4': 'Lu'
'\u10a5': 'Lu'
'\u10a6': 'Lu'
'\u10a7': 'Lu'
'\u10a8': 'Lu'
'\u10a9': 'Lu'
'\u10aa': 'Lu'
'\u10ab': 'Lu'
'\u10ac': 'Lu'
'\u10ad': 'Lu'
'\u10ae': 'Lu'
'\u10af': 'Lu'
'\u10b0': 'Lu'
'\u10b1': 'Lu'
'\u10b2': 'Lu'
'\u10b3': 'Lu'
'\u10b4': 'Lu'
'\u10b5': 'Lu'
'\u10b6': 'Lu'
'\u10b7': 'Lu'
'\u10b8': 'Lu'
'\u10b9': 'Lu'
'\u10ba': 'Lu'
'\u10bb': 'Lu'
'\u10bc': 'Lu'
'\u10bd': 'Lu'
'\u10be': 'Lu'
'\u10bf': 'Lu'
'\u10c0': 'Lu'
'\u10c1': 'Lu'
'\u10c2': 'Lu'
'\u10c3': 'Lu'
'\u10c4': 'Lu'
'\u10c5': 'Lu'
'\u10c7': 'Lu'
'\u10cd': 'Lu'
'\u10d0': 'L'
'\u10d1': 'L'
'\u10d2': 'L'
'\u10d3': 'L'
'\u10d4': 'L'
'\u10d5': 'L'
'\u10d6': 'L'
'\u10d7': 'L'
'\u10d8': 'L'
'\u10d9': 'L'
'\u10da': 'L'
'\u10db': 'L'
'\u10dc': 'L'
'\u10dd': 'L'
'\u10de': 'L'
'\u10df': 'L'
'\u10e0': 'L'
'\u10e1': 'L'
'\u10e2': 'L'
'\u10e3': 'L'
'\u10e4': 'L'
'\u10e5': 'L'
'\u10e6': 'L'
'\u10e7': 'L'
'\u10e8': 'L'
'\u10e9': 'L'
'\u10ea': 'L'
'\u10eb': 'L'
'\u10ec': 'L'
'\u10ed': 'L'
'\u10ee': 'L'
'\u10ef': 'L'
'\u10f0': 'L'
'\u10f1': 'L'
'\u10f2': 'L'
'\u10f3': 'L'
'\u10f4': 'L'
'\u10f5': 'L'
'\u10f6': 'L'
'\u10f7': 'L'
'\u10f8': 'L'
'\u10f9': 'L'
'\u10fa': 'L'
'\u10fc': 'L'
'\u10fd': 'L'
'\u10fe': 'L'
'\u10ff': 'L'
'\u1100': 'L'
'\u1101': 'L'
'\u1102': 'L'
'\u1103': 'L'
'\u1104': 'L'
'\u1105': 'L'
'\u1106': 'L'
'\u1107': 'L'
'\u1108': 'L'
'\u1109': 'L'
'\u110a': 'L'
'\u110b': 'L'
'\u110c': 'L'
'\u110d': 'L'
'\u110e': 'L'
'\u110f': 'L'
'\u1110': 'L'
'\u1111': 'L'
'\u1112': 'L'
'\u1113': 'L'
'\u1114': 'L'
'\u1115': 'L'
'\u1116': 'L'
'\u1117': 'L'
'\u1118': 'L'
'\u1119': 'L'
'\u111a': 'L'
'\u111b': 'L'
'\u111c': 'L'
'\u111d': 'L'
'\u111e': 'L'
'\u111f': 'L'
'\u1120': 'L'
'\u1121': 'L'
'\u1122': 'L'
'\u1123': 'L'
'\u1124': 'L'
'\u1125': 'L'
'\u1126': 'L'
'\u1127': 'L'
'\u1128': 'L'
'\u1129': 'L'
'\u112a': 'L'
'\u112b': 'L'
'\u112c': 'L'
'\u112d': 'L'
'\u112e': 'L'
'\u112f': 'L'
'\u1130': 'L'
'\u1131': 'L'
'\u1132': 'L'
'\u1133': 'L'
'\u1134': 'L'
'\u1135': 'L'
'\u1136': 'L'
'\u1137': 'L'
'\u1138': 'L'
'\u1139': 'L'
'\u113a': 'L'
'\u113b': 'L'
'\u113c': 'L'
'\u113d': 'L'
'\u113e': 'L'
'\u113f': 'L'
'\u1140': 'L'
'\u1141': 'L'
'\u1142': 'L'
'\u1143': 'L'
'\u1144': 'L'
'\u1145': 'L'
'\u1146': 'L'
'\u1147': 'L'
'\u1148': 'L'
'\u1149': 'L'
'\u114a': 'L'
'\u114b': 'L'
'\u114c': 'L'
'\u114d': 'L'
'\u114e': 'L'
'\u114f': 'L'
'\u1150': 'L'
'\u1151': 'L'
'\u1152': 'L'
'\u1153': 'L'
'\u1154': 'L'
'\u1155': 'L'
'\u1156': 'L'
'\u1157': 'L'
'\u1158': 'L'
'\u1159': 'L'
'\u115a': 'L'
'\u115b': 'L'
'\u115c': 'L'
'\u115d': 'L'
'\u115e': 'L'
'\u115f': 'L'
'\u1160': 'L'
'\u1161': 'L'
'\u1162': 'L'
'\u1163': 'L'
'\u1164': 'L'
'\u1165': 'L'
'\u1166': 'L'
'\u1167': 'L'
'\u1168': 'L'
'\u1169': 'L'
'\u116a': 'L'
'\u116b': 'L'
'\u116c': 'L'
'\u116d': 'L'
'\u116e': 'L'
'\u116f': 'L'
'\u1170': 'L'
'\u1171': 'L'
'\u1172': 'L'
'\u1173': 'L'
'\u1174': 'L'
'\u1175': 'L'
'\u1176': 'L'
'\u1177': 'L'
'\u1178': 'L'
'\u1179': 'L'
'\u117a': 'L'
'\u117b': 'L'
'\u117c': 'L'
'\u117d': 'L'
'\u117e': 'L'
'\u117f': 'L'
'\u1180': 'L'
'\u1181': 'L'
'\u1182': 'L'
'\u1183': 'L'
'\u1184': 'L'
'\u1185': 'L'
'\u1186': 'L'
'\u1187': 'L'
'\u1188': 'L'
'\u1189': 'L'
'\u118a': 'L'
'\u118b': 'L'
'\u118c': 'L'
'\u118d': 'L'
'\u118e': 'L'
'\u118f': 'L'
'\u1190': 'L'
'\u1191': 'L'
'\u1192': 'L'
'\u1193': 'L'
'\u1194': 'L'
'\u1195': 'L'
'\u1196': 'L'
'\u1197': 'L'
'\u1198': 'L'
'\u1199': 'L'
'\u119a': 'L'
'\u119b': 'L'
'\u119c': 'L'
'\u119d': 'L'
'\u119e': 'L'
'\u119f': 'L'
'\u11a0': 'L'
'\u11a1': 'L'
'\u11a2': 'L'
'\u11a3': 'L'
'\u11a4': 'L'
'\u11a5': 'L'
'\u11a6': 'L'
'\u11a7': 'L'
'\u11a8': 'L'
'\u11a9': 'L'
'\u11aa': 'L'
'\u11ab': 'L'
'\u11ac': 'L'
'\u11ad': 'L'
'\u11ae': 'L'
'\u11af': 'L'
'\u11b0': 'L'
'\u11b1': 'L'
'\u11b2': 'L'
'\u11b3': 'L'
'\u11b4': 'L'
'\u11b5': 'L'
'\u11b6': 'L'
'\u11b7': 'L'
'\u11b8': 'L'
'\u11b9': 'L'
'\u11ba': 'L'
'\u11bb': 'L'
'\u11bc': 'L'
'\u11bd': 'L'
'\u11be': 'L'
'\u11bf': 'L'
'\u11c0': 'L'
'\u11c1': 'L'
'\u11c2': 'L'
'\u11c3': 'L'
'\u11c4': 'L'
'\u11c5': 'L'
'\u11c6': 'L'
'\u11c7': 'L'
'\u11c8': 'L'
'\u11c9': 'L'
'\u11ca': 'L'
'\u11cb': 'L'
'\u11cc': 'L'
'\u11cd': 'L'
'\u11ce': 'L'
'\u11cf': 'L'
'\u11d0': 'L'
'\u11d1': 'L'
'\u11d2': 'L'
'\u11d3': 'L'
'\u11d4': 'L'
'\u11d5': 'L'
'\u11d6': 'L'
'\u11d7': 'L'
'\u11d8': 'L'
'\u11d9': 'L'
'\u11da': 'L'
'\u11db': 'L'
'\u11dc': 'L'
'\u11dd': 'L'
'\u11de': 'L'
'\u11df': 'L'
'\u11e0': 'L'
'\u11e1': 'L'
'\u11e2': 'L'
'\u11e3': 'L'
'\u11e4': 'L'
'\u11e5': 'L'
'\u11e6': 'L'
'\u11e7': 'L'
'\u11e8': 'L'
'\u11e9': 'L'
'\u11ea': 'L'
'\u11eb': 'L'
'\u11ec': 'L'
'\u11ed': 'L'
'\u11ee': 'L'
'\u11ef': 'L'
'\u11f0': 'L'
'\u11f1': 'L'
'\u11f2': 'L'
'\u11f3': 'L'
'\u11f4': 'L'
'\u11f5': 'L'
'\u11f6': 'L'
'\u11f7': 'L'
'\u11f8': 'L'
'\u11f9': 'L'
'\u11fa': 'L'
'\u11fb': 'L'
'\u11fc': 'L'
'\u11fd': 'L'
'\u11fe': 'L'
'\u11ff': 'L'
'\u1200': 'L'
'\u1201': 'L'
'\u1202': 'L'
'\u1203': 'L'
'\u1204': 'L'
'\u1205': 'L'
'\u1206': 'L'
'\u1207': 'L'
'\u1208': 'L'
'\u1209': 'L'
'\u120a': 'L'
'\u120b': 'L'
'\u120c': 'L'
'\u120d': 'L'
'\u120e': 'L'
'\u120f': 'L'
'\u1210': 'L'
'\u1211': 'L'
'\u1212': 'L'
'\u1213': 'L'
'\u1214': 'L'
'\u1215': 'L'
'\u1216': 'L'
'\u1217': 'L'
'\u1218': 'L'
'\u1219': 'L'
'\u121a': 'L'
'\u121b': 'L'
'\u121c': 'L'
'\u121d': 'L'
'\u121e': 'L'
'\u121f': 'L'
'\u1220': 'L'
'\u1221': 'L'
'\u1222': 'L'
'\u1223': 'L'
'\u1224': 'L'
'\u1225': 'L'
'\u1226': 'L'
'\u1227': 'L'
'\u1228': 'L'
'\u1229': 'L'
'\u122a': 'L'
'\u122b': 'L'
'\u122c': 'L'
'\u122d': 'L'
'\u122e': 'L'
'\u122f': 'L'
'\u1230': 'L'
'\u1231': 'L'
'\u1232': 'L'
'\u1233': 'L'
'\u1234': 'L'
'\u1235': 'L'
'\u1236': 'L'
'\u1237': 'L'
'\u1238': 'L'
'\u1239': 'L'
'\u123a': 'L'
'\u123b': 'L'
'\u123c': 'L'
'\u123d': 'L'
'\u123e': 'L'
'\u123f': 'L'
'\u1240': 'L'
'\u1241': 'L'
'\u1242': 'L'
'\u1243': 'L'
'\u1244': 'L'
'\u1245': 'L'
'\u1246': 'L'
'\u1247': 'L'
'\u1248': 'L'
'\u124a': 'L'
'\u124b': 'L'
'\u124c': 'L'
'\u124d': 'L'
'\u1250': 'L'
'\u1251': 'L'
'\u1252': 'L'
'\u1253': 'L'
'\u1254': 'L'
'\u1255': 'L'
'\u1256': 'L'
'\u1258': 'L'
'\u125a': 'L'
'\u125b': 'L'
'\u125c': 'L'
'\u125d': 'L'
'\u1260': 'L'
'\u1261': 'L'
'\u1262': 'L'
'\u1263': 'L'
'\u1264': 'L'
'\u1265': 'L'
'\u1266': 'L'
'\u1267': 'L'
'\u1268': 'L'
'\u1269': 'L'
'\u126a': 'L'
'\u126b': 'L'
'\u126c': 'L'
'\u126d': 'L'
'\u126e': 'L'
'\u126f': 'L'
'\u1270': 'L'
'\u1271': 'L'
'\u1272': 'L'
'\u1273': 'L'
'\u1274': 'L'
'\u1275': 'L'
'\u1276': 'L'
'\u1277': 'L'
'\u1278': 'L'
'\u1279': 'L'
'\u127a': 'L'
'\u127b': 'L'
'\u127c': 'L'
'\u127d': 'L'
'\u127e': 'L'
'\u127f': 'L'
'\u1280': 'L'
'\u1281': 'L'
'\u1282': 'L'
'\u1283': 'L'
'\u1284': 'L'
'\u1285': 'L'
'\u1286': 'L'
'\u1287': 'L'
'\u1288': 'L'
'\u128a': 'L'
'\u128b': 'L'
'\u128c': 'L'
'\u128d': 'L'
'\u1290': 'L'
'\u1291': 'L'
'\u1292': 'L'
'\u1293': 'L'
'\u1294': 'L'
'\u1295': 'L'
'\u1296': 'L'
'\u1297': 'L'
'\u1298': 'L'
'\u1299': 'L'
'\u129a': 'L'
'\u129b': 'L'
'\u129c': 'L'
'\u129d': 'L'
'\u129e': 'L'
'\u129f': 'L'
'\u12a0': 'L'
'\u12a1': 'L'
'\u12a2': 'L'
'\u12a3': 'L'
'\u12a4': 'L'
'\u12a5': 'L'
'\u12a6': 'L'
'\u12a7': 'L'
'\u12a8': 'L'
'\u12a9': 'L'
'\u12aa': 'L'
'\u12ab': 'L'
'\u12ac': 'L'
'\u12ad': 'L'
'\u12ae': 'L'
'\u12af': 'L'
'\u12b0': 'L'
'\u12b2': 'L'
'\u12b3': 'L'
'\u12b4': 'L'
'\u12b5': 'L'
'\u12b8': 'L'
'\u12b9': 'L'
'\u12ba': 'L'
'\u12bb': 'L'
'\u12bc': 'L'
'\u12bd': 'L'
'\u12be': 'L'
'\u12c0': 'L'
'\u12c2': 'L'
'\u12c3': 'L'
'\u12c4': 'L'
'\u12c5': 'L'
'\u12c8': 'L'
'\u12c9': 'L'
'\u12ca': 'L'
'\u12cb': 'L'
'\u12cc': 'L'
'\u12cd': 'L'
'\u12ce': 'L'
'\u12cf': 'L'
'\u12d0': 'L'
'\u12d1': 'L'
'\u12d2': 'L'
'\u12d3': 'L'
'\u12d4': 'L'
'\u12d5': 'L'
'\u12d6': 'L'
'\u12d8': 'L'
'\u12d9': 'L'
'\u12da': 'L'
'\u12db': 'L'
'\u12dc': 'L'
'\u12dd': 'L'
'\u12de': 'L'
'\u12df': 'L'
'\u12e0': 'L'
'\u12e1': 'L'
'\u12e2': 'L'
'\u12e3': 'L'
'\u12e4': 'L'
'\u12e5': 'L'
'\u12e6': 'L'
'\u12e7': 'L'
'\u12e8': 'L'
'\u12e9': 'L'
'\u12ea': 'L'
'\u12eb': 'L'
'\u12ec': 'L'
'\u12ed': 'L'
'\u12ee': 'L'
'\u12ef': 'L'
'\u12f0': 'L'
'\u12f1': 'L'
'\u12f2': 'L'
'\u12f3': 'L'
'\u12f4': 'L'
'\u12f5': 'L'
'\u12f6': 'L'
'\u12f7': 'L'
'\u12f8': 'L'
'\u12f9': 'L'
'\u12fa': 'L'
'\u12fb': 'L'
'\u12fc': 'L'
'\u12fd': 'L'
'\u12fe': 'L'
'\u12ff': 'L'
'\u1300': 'L'
'\u1301': 'L'
'\u1302': 'L'
'\u1303': 'L'
'\u1304': 'L'
'\u1305': 'L'
'\u1306': 'L'
'\u1307': 'L'
'\u1308': 'L'
'\u1309': 'L'
'\u130a': 'L'
'\u130b': 'L'
'\u130c': 'L'
'\u130d': 'L'
'\u130e': 'L'
'\u130f': 'L'
'\u1310': 'L'
'\u1312': 'L'
'\u1313': 'L'
'\u1314': 'L'
'\u1315': 'L'
'\u1318': 'L'
'\u1319': 'L'
'\u131a': 'L'
'\u131b': 'L'
'\u131c': 'L'
'\u131d': 'L'
'\u131e': 'L'
'\u131f': 'L'
'\u1320': 'L'
'\u1321': 'L'
'\u1322': 'L'
'\u1323': 'L'
'\u1324': 'L'
'\u1325': 'L'
'\u1326': 'L'
'\u1327': 'L'
'\u1328': 'L'
'\u1329': 'L'
'\u132a': 'L'
'\u132b': 'L'
'\u132c': 'L'
'\u132d': 'L'
'\u132e': 'L'
'\u132f': 'L'
'\u1330': 'L'
'\u1331': 'L'
'\u1332': 'L'
'\u1333': 'L'
'\u1334': 'L'
'\u1335': 'L'
'\u1336': 'L'
'\u1337': 'L'
'\u1338': 'L'
'\u1339': 'L'
'\u133a': 'L'
'\u133b': 'L'
'\u133c': 'L'
'\u133d': 'L'
'\u133e': 'L'
'\u133f': 'L'
'\u1340': 'L'
'\u1341': 'L'
'\u1342': 'L'
'\u1343': 'L'
'\u1344': 'L'
'\u1345': 'L'
'\u1346': 'L'
'\u1347': 'L'
'\u1348': 'L'
'\u1349': 'L'
'\u134a': 'L'
'\u134b': 'L'
'\u134c': 'L'
'\u134d': 'L'
'\u134e': 'L'
'\u134f': 'L'
'\u1350': 'L'
'\u1351': 'L'
'\u1352': 'L'
'\u1353': 'L'
'\u1354': 'L'
'\u1355': 'L'
'\u1356': 'L'
'\u1357': 'L'
'\u1358': 'L'
'\u1359': 'L'
'\u135a': 'L'
'\u1369': 'N'
'\u136a': 'N'
'\u136b': 'N'
'\u136c': 'N'
'\u136d': 'N'
'\u136e': 'N'
'\u136f': 'N'
'\u1370': 'N'
'\u1371': 'N'
'\u1372': 'N'
'\u1373': 'N'
'\u1374': 'N'
'\u1375': 'N'
'\u1376': 'N'
'\u1377': 'N'
'\u1378': 'N'
'\u1379': 'N'
'\u137a': 'N'
'\u137b': 'N'
'\u137c': 'N'
'\u1380': 'L'
'\u1381': 'L'
'\u1382': 'L'
'\u1383': 'L'
'\u1384': 'L'
'\u1385': 'L'
'\u1386': 'L'
'\u1387': 'L'
'\u1388': 'L'
'\u1389': 'L'
'\u138a': 'L'
'\u138b': 'L'
'\u138c': 'L'
'\u138d': 'L'
'\u138e': 'L'
'\u138f': 'L'
'\u13a0': 'Lu'
'\u13a1': 'Lu'
'\u13a2': 'Lu'
'\u13a3': 'Lu'
'\u13a4': 'Lu'
'\u13a5': 'Lu'
'\u13a6': 'Lu'
'\u13a7': 'Lu'
'\u13a8': 'Lu'
'\u13a9': 'Lu'
'\u13aa': 'Lu'
'\u13ab': 'Lu'
'\u13ac': 'Lu'
'\u13ad': 'Lu'
'\u13ae': 'Lu'
'\u13af': 'Lu'
'\u13b0': 'Lu'
'\u13b1': 'Lu'
'\u13b2': 'Lu'
'\u13b3': 'Lu'
'\u13b4': 'Lu'
'\u13b5': 'Lu'
'\u13b6': 'Lu'
'\u13b7': 'Lu'
'\u13b8': 'Lu'
'\u13b9': 'Lu'
'\u13ba': 'Lu'
'\u13bb': 'Lu'
'\u13bc': 'Lu'
'\u13bd': 'Lu'
'\u13be': 'Lu'
'\u13bf': 'Lu'
'\u13c0': 'Lu'
'\u13c1': 'Lu'
'\u13c2': 'Lu'
'\u13c3': 'Lu'
'\u13c4': 'Lu'
'\u13c5': 'Lu'
'\u13c6': 'Lu'
'\u13c7': 'Lu'
'\u13c8': 'Lu'
'\u13c9': 'Lu'
'\u13ca': 'Lu'
'\u13cb': 'Lu'
'\u13cc': 'Lu'
'\u13cd': 'Lu'
'\u13ce': 'Lu'
'\u13cf': 'Lu'
'\u13d0': 'Lu'
'\u13d1': 'Lu'
'\u13d2': 'Lu'
'\u13d3': 'Lu'
'\u13d4': 'Lu'
'\u13d5': 'Lu'
'\u13d6': 'Lu'
'\u13d7': 'Lu'
'\u13d8': 'Lu'
'\u13d9': 'Lu'
'\u13da': 'Lu'
'\u13db': 'Lu'
'\u13dc': 'Lu'
'\u13dd': 'Lu'
'\u13de': 'Lu'
'\u13df': 'Lu'
'\u13e0': 'Lu'
'\u13e1': 'Lu'
'\u13e2': 'Lu'
'\u13e3': 'Lu'
'\u13e4': 'Lu'
'\u13e5': 'Lu'
'\u13e6': 'Lu'
'\u13e7': 'Lu'
'\u13e8': 'Lu'
'\u13e9': 'Lu'
'\u13ea': 'Lu'
'\u13eb': 'Lu'
'\u13ec': 'Lu'
'\u13ed': 'Lu'
'\u13ee': 'Lu'
'\u13ef': 'Lu'
'\u13f0': 'Lu'
'\u13f1': 'Lu'
'\u13f2': 'Lu'
'\u13f3': 'Lu'
'\u13f4': 'Lu'
'\u13f5': 'Lu'
'\u13f8': 'L'
'\u13f9': 'L'
'\u13fa': 'L'
'\u13fb': 'L'
'\u13fc': 'L'
'\u13fd': 'L'
'\u1401': 'L'
'\u1402': 'L'
'\u1403': 'L'
'\u1404': 'L'
'\u1405': 'L'
'\u1406': 'L'
'\u1407': 'L'
'\u1408': 'L'
'\u1409': 'L'
'\u140a': 'L'
'\u140b': 'L'
'\u140c': 'L'
'\u140d': 'L'
'\u140e': 'L'
'\u140f': 'L'
'\u1410': 'L'
'\u1411': 'L'
'\u1412': 'L'
'\u1413': 'L'
'\u1414': 'L'
'\u1415': 'L'
'\u1416': 'L'
'\u1417': 'L'
'\u1418': 'L'
'\u1419': 'L'
'\u141a': 'L'
'\u141b': 'L'
'\u141c': 'L'
'\u141d': 'L'
'\u141e': 'L'
'\u141f': 'L'
'\u1420': 'L'
'\u1421': 'L'
'\u1422': 'L'
'\u1423': 'L'
'\u1424': 'L'
'\u1425': 'L'
'\u1426': 'L'
'\u1427': 'L'
'\u1428': 'L'
'\u1429': 'L'
'\u142a': 'L'
'\u142b': 'L'
'\u142c': 'L'
'\u142d': 'L'
'\u142e': 'L'
'\u142f': 'L'
'\u1430': 'L'
'\u1431': 'L'
'\u1432': 'L'
'\u1433': 'L'
'\u1434': 'L'
'\u1435': 'L'
'\u1436': 'L'
'\u1437': 'L'
'\u1438': 'L'
'\u1439': 'L'
'\u143a': 'L'
'\u143b': 'L'
'\u143c': 'L'
'\u143d': 'L'
'\u143e': 'L'
'\u143f': 'L'
'\u1440': 'L'
'\u1441': 'L'
'\u1442': 'L'
'\u1443': 'L'
'\u1444': 'L'
'\u1445': 'L'
'\u1446': 'L'
'\u1447': 'L'
'\u1448': 'L'
'\u1449': 'L'
'\u144a': 'L'
'\u144b': 'L'
'\u144c': 'L'
'\u144d': 'L'
'\u144e': 'L'
'\u144f': 'L'
'\u1450': 'L'
'\u1451': 'L'
'\u1452': 'L'
'\u1453': 'L'
'\u1454': 'L'
'\u1455': 'L'
'\u1456': 'L'
'\u1457': 'L'
'\u1458': 'L'
'\u1459': 'L'
'\u145a': 'L'
'\u145b': 'L'
'\u145c': 'L'
'\u145d': 'L'
'\u145e': 'L'
'\u145f': 'L'
'\u1460': 'L'
'\u1461': 'L'
'\u1462': 'L'
'\u1463': 'L'
'\u1464': 'L'
'\u1465': 'L'
'\u1466': 'L'
'\u1467': 'L'
'\u1468': 'L'
'\u1469': 'L'
'\u146a': 'L'
'\u146b': 'L'
'\u146c': 'L'
'\u146d': 'L'
'\u146e': 'L'
'\u146f': 'L'
'\u1470': 'L'
'\u1471': 'L'
'\u1472': 'L'
'\u1473': 'L'
'\u1474': 'L'
'\u1475': 'L'
'\u1476': 'L'
'\u1477': 'L'
'\u1478': 'L'
'\u1479': 'L'
'\u147a': 'L'
'\u147b': 'L'
'\u147c': 'L'
'\u147d': 'L'
'\u147e': 'L'
'\u147f': 'L'
'\u1480': 'L'
'\u1481': 'L'
'\u1482': 'L'
'\u1483': 'L'
'\u1484': 'L'
'\u1485': 'L'
'\u1486': 'L'
'\u1487': 'L'
'\u1488': 'L'
'\u1489': 'L'
'\u148a': 'L'
'\u148b': 'L'
'\u148c': 'L'
'\u148d': 'L'
'\u148e': 'L'
'\u148f': 'L'
'\u1490': 'L'
'\u1491': 'L'
'\u1492': 'L'
'\u1493': 'L'
'\u1494': 'L'
'\u1495': 'L'
'\u1496': 'L'
'\u1497': 'L'
'\u1498': 'L'
'\u1499': 'L'
'\u149a': 'L'
'\u149b': 'L'
'\u149c': 'L'
'\u149d': 'L'
'\u149e': 'L'
'\u149f': 'L'
'\u14a0': 'L'
'\u14a1': 'L'
'\u14a2': 'L'
'\u14a3': 'L'
'\u14a4': 'L'
'\u14a5': 'L'
'\u14a6': 'L'
'\u14a7': 'L'
'\u14a8': 'L'
'\u14a9': 'L'
'\u14aa': 'L'
'\u14ab': 'L'
'\u14ac': 'L'
'\u14ad': 'L'
'\u14ae': 'L'
'\u14af': 'L'
'\u14b0': 'L'
'\u14b1': 'L'
'\u14b2': 'L'
'\u14b3': 'L'
'\u14b4': 'L'
'\u14b5': 'L'
'\u14b6': 'L'
'\u14b7': 'L'
'\u14b8': 'L'
'\u14b9': 'L'
'\u14ba': 'L'
'\u14bb': 'L'
'\u14bc': 'L'
'\u14bd': 'L'
'\u14be': 'L'
'\u14bf': 'L'
'\u14c0': 'L'
'\u14c1': 'L'
'\u14c2': 'L'
'\u14c3': 'L'
'\u14c4': 'L'
'\u14c5': 'L'
'\u14c6': 'L'
'\u14c7': 'L'
'\u14c8': 'L'
'\u14c9': 'L'
'\u14ca': 'L'
'\u14cb': 'L'
'\u14cc': 'L'
'\u14cd': 'L'
'\u14ce': 'L'
'\u14cf': 'L'
'\u14d0': 'L'
'\u14d1': 'L'
'\u14d2': 'L'
'\u14d3': 'L'
'\u14d4': 'L'
'\u14d5': 'L'
'\u14d6': 'L'
'\u14d7': 'L'
'\u14d8': 'L'
'\u14d9': 'L'
'\u14da': 'L'
'\u14db': 'L'
'\u14dc': 'L'
'\u14dd': 'L'
'\u14de': 'L'
'\u14df': 'L'
'\u14e0': 'L'
'\u14e1': 'L'
'\u14e2': 'L'
'\u14e3': 'L'
'\u14e4': 'L'
'\u14e5': 'L'
'\u14e6': 'L'
'\u14e7': 'L'
'\u14e8': 'L'
'\u14e9': 'L'
'\u14ea': 'L'
'\u14eb': 'L'
'\u14ec': 'L'
'\u14ed': 'L'
'\u14ee': 'L'
'\u14ef': 'L'
'\u14f0': 'L'
'\u14f1': 'L'
'\u14f2': 'L'
'\u14f3': 'L'
'\u14f4': 'L'
'\u14f5': 'L'
'\u14f6': 'L'
'\u14f7': 'L'
'\u14f8': 'L'
'\u14f9': 'L'
'\u14fa': 'L'
'\u14fb': 'L'
'\u14fc': 'L'
'\u14fd': 'L'
'\u14fe': 'L'
'\u14ff': 'L'
'\u1500': 'L'
'\u1501': 'L'
'\u1502': 'L'
'\u1503': 'L'
'\u1504': 'L'
'\u1505': 'L'
'\u1506': 'L'
'\u1507': 'L'
'\u1508': 'L'
'\u1509': 'L'
'\u150a': 'L'
'\u150b': 'L'
'\u150c': 'L'
'\u150d': 'L'
'\u150e': 'L'
'\u150f': 'L'
'\u1510': 'L'
'\u1511': 'L'
'\u1512': 'L'
'\u1513': 'L'
'\u1514': 'L'
'\u1515': 'L'
'\u1516': 'L'
'\u1517': 'L'
'\u1518': 'L'
'\u1519': 'L'
'\u151a': 'L'
'\u151b': 'L'
'\u151c': 'L'
'\u151d': 'L'
'\u151e': 'L'
'\u151f': 'L'
'\u1520': 'L'
'\u1521': 'L'
'\u1522': 'L'
'\u1523': 'L'
'\u1524': 'L'
'\u1525': 'L'
'\u1526': 'L'
'\u1527': 'L'
'\u1528': 'L'
'\u1529': 'L'
'\u152a': 'L'
'\u152b': 'L'
'\u152c': 'L'
'\u152d': 'L'
'\u152e': 'L'
'\u152f': 'L'
'\u1530': 'L'
'\u1531': 'L'
'\u1532': 'L'
'\u1533': 'L'
'\u1534': 'L'
'\u1535': 'L'
'\u1536': 'L'
'\u1537': 'L'
'\u1538': 'L'
'\u1539': 'L'
'\u153a': 'L'
'\u153b': 'L'
'\u153c': 'L'
'\u153d': 'L'
'\u153e': 'L'
'\u153f': 'L'
'\u1540': 'L'
'\u1541': 'L'
'\u1542': 'L'
'\u1543': 'L'
'\u1544': 'L'
'\u1545': 'L'
'\u1546': 'L'
'\u1547': 'L'
'\u1548': 'L'
'\u1549': 'L'
'\u154a': 'L'
'\u154b': 'L'
'\u154c': 'L'
'\u154d': 'L'
'\u154e': 'L'
'\u154f': 'L'
'\u1550': 'L'
'\u1551': 'L'
'\u1552': 'L'
'\u1553': 'L'
'\u1554': 'L'
'\u1555': 'L'
'\u1556': 'L'
'\u1557': 'L'
'\u1558': 'L'
'\u1559': 'L'
'\u155a': 'L'
'\u155b': 'L'
'\u155c': 'L'
'\u155d': 'L'
'\u155e': 'L'
'\u155f': 'L'
'\u1560': 'L'
'\u1561': 'L'
'\u1562': 'L'
'\u1563': 'L'
'\u1564': 'L'
'\u1565': 'L'
'\u1566': 'L'
'\u1567': 'L'
'\u1568': 'L'
'\u1569': 'L'
'\u156a': 'L'
'\u156b': 'L'
'\u156c': 'L'
'\u156d': 'L'
'\u156e': 'L'
'\u156f': 'L'
'\u1570': 'L'
'\u1571': 'L'
'\u1572': 'L'
'\u1573': 'L'
'\u1574': 'L'
'\u1575': 'L'
'\u1576': 'L'
'\u1577': 'L'
'\u1578': 'L'
'\u1579': 'L'
'\u157a': 'L'
'\u157b': 'L'
'\u157c': 'L'
'\u157d': 'L'
'\u157e': 'L'
'\u157f': 'L'
'\u1580': 'L'
'\u1581': 'L'
'\u1582': 'L'
'\u1583': 'L'
'\u1584': 'L'
'\u1585': 'L'
'\u1586': 'L'
'\u1587': 'L'
'\u1588': 'L'
'\u1589': 'L'
'\u158a': 'L'
'\u158b': 'L'
'\u158c': 'L'
'\u158d': 'L'
'\u158e': 'L'
'\u158f': 'L'
'\u1590': 'L'
'\u1591': 'L'
'\u1592': 'L'
'\u1593': 'L'
'\u1594': 'L'
'\u1595': 'L'
'\u1596': 'L'
'\u1597': 'L'
'\u1598': 'L'
'\u1599': 'L'
'\u159a': 'L'
'\u159b': 'L'
'\u159c': 'L'
'\u159d': 'L'
'\u159e': 'L'
'\u159f': 'L'
'\u15a0': 'L'
'\u15a1': 'L'
'\u15a2': 'L'
'\u15a3': 'L'
'\u15a4': 'L'
'\u15a5': 'L'
'\u15a6': 'L'
'\u15a7': 'L'
'\u15a8': 'L'
'\u15a9': 'L'
'\u15aa': 'L'
'\u15ab': 'L'
'\u15ac': 'L'
'\u15ad': 'L'
'\u15ae': 'L'
'\u15af': 'L'
'\u15b0': 'L'
'\u15b1': 'L'
'\u15b2': 'L'
'\u15b3': 'L'
'\u15b4': 'L'
'\u15b5': 'L'
'\u15b6': 'L'
'\u15b7': 'L'
'\u15b8': 'L'
'\u15b9': 'L'
'\u15ba': 'L'
'\u15bb': 'L'
'\u15bc': 'L'
'\u15bd': 'L'
'\u15be': 'L'
'\u15bf': 'L'
'\u15c0': 'L'
'\u15c1': 'L'
'\u15c2': 'L'
'\u15c3': 'L'
'\u15c4': 'L'
'\u15c5': 'L'
'\u15c6': 'L'
'\u15c7': 'L'
'\u15c8': 'L'
'\u15c9': 'L'
'\u15ca': 'L'
'\u15cb': 'L'
'\u15cc': 'L'
'\u15cd': 'L'
'\u15ce': 'L'
'\u15cf': 'L'
'\u15d0': 'L'
'\u15d1': 'L'
'\u15d2': 'L'
'\u15d3': 'L'
'\u15d4': 'L'
'\u15d5': 'L'
'\u15d6': 'L'
'\u15d7': 'L'
'\u15d8': 'L'
'\u15d9': 'L'
'\u15da': 'L'
'\u15db': 'L'
'\u15dc': 'L'
'\u15dd': 'L'
'\u15de': 'L'
'\u15df': 'L'
'\u15e0': 'L'
'\u15e1': 'L'
'\u15e2': 'L'
'\u15e3': 'L'
'\u15e4': 'L'
'\u15e5': 'L'
'\u15e6': 'L'
'\u15e7': 'L'
'\u15e8': 'L'
'\u15e9': 'L'
'\u15ea': 'L'
'\u15eb': 'L'
'\u15ec': 'L'
'\u15ed': 'L'
'\u15ee': 'L'
'\u15ef': 'L'
'\u15f0': 'L'
'\u15f1': 'L'
'\u15f2': 'L'
'\u15f3': 'L'
'\u15f4': 'L'
'\u15f5': 'L'
'\u15f6': 'L'
'\u15f7': 'L'
'\u15f8': 'L'
'\u15f9': 'L'
'\u15fa': 'L'
'\u15fb': 'L'
'\u15fc': 'L'
'\u15fd': 'L'
'\u15fe': 'L'
'\u15ff': 'L'
'\u1600': 'L'
'\u1601': 'L'
'\u1602': 'L'
'\u1603': 'L'
'\u1604': 'L'
'\u1605': 'L'
'\u1606': 'L'
'\u1607': 'L'
'\u1608': 'L'
'\u1609': 'L'
'\u160a': 'L'
'\u160b': 'L'
'\u160c': 'L'
'\u160d': 'L'
'\u160e': 'L'
'\u160f': 'L'
'\u1610': 'L'
'\u1611': 'L'
'\u1612': 'L'
'\u1613': 'L'
'\u1614': 'L'
'\u1615': 'L'
'\u1616': 'L'
'\u1617': 'L'
'\u1618': 'L'
'\u1619': 'L'
'\u161a': 'L'
'\u161b': 'L'
'\u161c': 'L'
'\u161d': 'L'
'\u161e': 'L'
'\u161f': 'L'
'\u1620': 'L'
'\u1621': 'L'
'\u1622': 'L'
'\u1623': 'L'
'\u1624': 'L'
'\u1625': 'L'
'\u1626': 'L'
'\u1627': 'L'
'\u1628': 'L'
'\u1629': 'L'
'\u162a': 'L'
'\u162b': 'L'
'\u162c': 'L'
'\u162d': 'L'
'\u162e': 'L'
'\u162f': 'L'
'\u1630': 'L'
'\u1631': 'L'
'\u1632': 'L'
'\u1633': 'L'
'\u1634': 'L'
'\u1635': 'L'
'\u1636': 'L'
'\u1637': 'L'
'\u1638': 'L'
'\u1639': 'L'
'\u163a': 'L'
'\u163b': 'L'
'\u163c': 'L'
'\u163d': 'L'
'\u163e': 'L'
'\u163f': 'L'
'\u1640': 'L'
'\u1641': 'L'
'\u1642': 'L'
'\u1643': 'L'
'\u1644': 'L'
'\u1645': 'L'
'\u1646': 'L'
'\u1647': 'L'
'\u1648': 'L'
'\u1649': 'L'
'\u164a': 'L'
'\u164b': 'L'
'\u164c': 'L'
'\u164d': 'L'
'\u164e': 'L'
'\u164f': 'L'
'\u1650': 'L'
'\u1651': 'L'
'\u1652': 'L'
'\u1653': 'L'
'\u1654': 'L'
'\u1655': 'L'
'\u1656': 'L'
'\u1657': 'L'
'\u1658': 'L'
'\u1659': 'L'
'\u165a': 'L'
'\u165b': 'L'
'\u165c': 'L'
'\u165d': 'L'
'\u165e': 'L'
'\u165f': 'L'
'\u1660': 'L'
'\u1661': 'L'
'\u1662': 'L'
'\u1663': 'L'
'\u1664': 'L'
'\u1665': 'L'
'\u1666': 'L'
'\u1667': 'L'
'\u1668': 'L'
'\u1669': 'L'
'\u166a': 'L'
'\u166b': 'L'
'\u166c': 'L'
'\u166f': 'L'
'\u1670': 'L'
'\u1671': 'L'
'\u1672': 'L'
'\u1673': 'L'
'\u1674': 'L'
'\u1675': 'L'
'\u1676': 'L'
'\u1677': 'L'
'\u1678': 'L'
'\u1679': 'L'
'\u167a': 'L'
'\u167b': 'L'
'\u167c': 'L'
'\u167d': 'L'
'\u167e': 'L'
'\u167f': 'L'
'\u1681': 'L'
'\u1682': 'L'
'\u1683': 'L'
'\u1684': 'L'
'\u1685': 'L'
'\u1686': 'L'
'\u1687': 'L'
'\u1688': 'L'
'\u1689': 'L'
'\u168a': 'L'
'\u168b': 'L'
'\u168c': 'L'
'\u168d': 'L'
'\u168e': 'L'
'\u168f': 'L'
'\u1690': 'L'
'\u1691': 'L'
'\u1692': 'L'
'\u1693': 'L'
'\u1694': 'L'
'\u1695': 'L'
'\u1696': 'L'
'\u1697': 'L'
'\u1698': 'L'
'\u1699': 'L'
'\u169a': 'L'
'\u16a0': 'L'
'\u16a1': 'L'
'\u16a2': 'L'
'\u16a3': 'L'
'\u16a4': 'L'
'\u16a5': 'L'
'\u16a6': 'L'
'\u16a7': 'L'
'\u16a8': 'L'
'\u16a9': 'L'
'\u16aa': 'L'
'\u16ab': 'L'
'\u16ac': 'L'
'\u16ad': 'L'
'\u16ae': 'L'
'\u16af': 'L'
'\u16b0': 'L'
'\u16b1': 'L'
'\u16b2': 'L'
'\u16b3': 'L'
'\u16b4': 'L'
'\u16b5': 'L'
'\u16b6': 'L'
'\u16b7': 'L'
'\u16b8': 'L'
'\u16b9': 'L'
'\u16ba': 'L'
'\u16bb': 'L'
'\u16bc': 'L'
'\u16bd': 'L'
'\u16be': 'L'
'\u16bf': 'L'
'\u16c0': 'L'
'\u16c1': 'L'
'\u16c2': 'L'
'\u16c3': 'L'
'\u16c4': 'L'
'\u16c5': 'L'
'\u16c6': 'L'
'\u16c7': 'L'
'\u16c8': 'L'
'\u16c9': 'L'
'\u16ca': 'L'
'\u16cb': 'L'
'\u16cc': 'L'
'\u16cd': 'L'
'\u16ce': 'L'
'\u16cf': 'L'
'\u16d0': 'L'
'\u16d1': 'L'
'\u16d2': 'L'
'\u16d3': 'L'
'\u16d4': 'L'
'\u16d5': 'L'
'\u16d6': 'L'
'\u16d7': 'L'
'\u16d8': 'L'
'\u16d9': 'L'
'\u16da': 'L'
'\u16db': 'L'
'\u16dc': 'L'
'\u16dd': 'L'
'\u16de': 'L'
'\u16df': 'L'
'\u16e0': 'L'
'\u16e1': 'L'
'\u16e2': 'L'
'\u16e3': 'L'
'\u16e4': 'L'
'\u16e5': 'L'
'\u16e6': 'L'
'\u16e7': 'L'
'\u16e8': 'L'
'\u16e9': 'L'
'\u16ea': 'L'
'\u16ee': 'N'
'\u16ef': 'N'
'\u16f0': 'N'
'\u16f1': 'L'
'\u16f2': 'L'
'\u16f3': 'L'
'\u16f4': 'L'
'\u16f5': 'L'
'\u16f6': 'L'
'\u16f7': 'L'
'\u16f8': 'L'
'\u1700': 'L'
'\u1701': 'L'
'\u1702': 'L'
'\u1703': 'L'
'\u1704': 'L'
'\u1705': 'L'
'\u1706': 'L'
'\u1707': 'L'
'\u1708': 'L'
'\u1709': 'L'
'\u170a': 'L'
'\u170b': 'L'
'\u170c': 'L'
'\u170e': 'L'
'\u170f': 'L'
'\u1710': 'L'
'\u1711': 'L'
'\u1720': 'L'
'\u1721': 'L'
'\u1722': 'L'
'\u1723': 'L'
'\u1724': 'L'
'\u1725': 'L'
'\u1726': 'L'
'\u1727': 'L'
'\u1728': 'L'
'\u1729': 'L'
'\u172a': 'L'
'\u172b': 'L'
'\u172c': 'L'
'\u172d': 'L'
'\u172e': 'L'
'\u172f': 'L'
'\u1730': 'L'
'\u1731': 'L'
'\u1740': 'L'
'\u1741': 'L'
'\u1742': 'L'
'\u1743': 'L'
'\u1744': 'L'
'\u1745': 'L'
'\u1746': 'L'
'\u1747': 'L'
'\u1748': 'L'
'\u1749': 'L'
'\u174a': 'L'
'\u174b': 'L'
'\u174c': 'L'
'\u174d': 'L'
'\u174e': 'L'
'\u174f': 'L'
'\u1750': 'L'
'\u1751': 'L'
'\u1760': 'L'
'\u1761': 'L'
'\u1762': 'L'
'\u1763': 'L'
'\u1764': 'L'
'\u1765': 'L'
'\u1766': 'L'
'\u1767': 'L'
'\u1768': 'L'
'\u1769': 'L'
'\u176a': 'L'
'\u176b': 'L'
'\u176c': 'L'
'\u176e': 'L'
'\u176f': 'L'
'\u1770': 'L'
'\u1780': 'L'
'\u1781': 'L'
'\u1782': 'L'
'\u1783': 'L'
'\u1784': 'L'
'\u1785': 'L'
'\u1786': 'L'
'\u1787': 'L'
'\u1788': 'L'
'\u1789': 'L'
'\u178a': 'L'
'\u178b': 'L'
'\u178c': 'L'
'\u178d': 'L'
'\u178e': 'L'
'\u178f': 'L'
'\u1790': 'L'
'\u1791': 'L'
'\u1792': 'L'
'\u1793': 'L'
'\u1794': 'L'
'\u1795': 'L'
'\u1796': 'L'
'\u1797': 'L'
'\u1798': 'L'
'\u1799': 'L'
'\u179a': 'L'
'\u179b': 'L'
'\u179c': 'L'
'\u179d': 'L'
'\u179e': 'L'
'\u179f': 'L'
'\u17a0': 'L'
'\u17a1': 'L'
'\u17a2': 'L'
'\u17a3': 'L'
'\u17a4': 'L'
'\u17a5': 'L'
'\u17a6': 'L'
'\u17a7': 'L'
'\u17a8': 'L'
'\u17a9': 'L'
'\u17aa': 'L'
'\u17ab': 'L'
'\u17ac': 'L'
'\u17ad': 'L'
'\u17ae': 'L'
'\u17af': 'L'
'\u17b0': 'L'
'\u17b1': 'L'
'\u17b2': 'L'
'\u17b3': 'L'
'\u17d7': 'L'
'\u17dc': 'L'
'\u17e0': 'N'
'\u17e1': 'N'
'\u17e2': 'N'
'\u17e3': 'N'
'\u17e4': 'N'
'\u17e5': 'N'
'\u17e6': 'N'
'\u17e7': 'N'
'\u17e8': 'N'
'\u17e9': 'N'
'\u17f0': 'N'
'\u17f1': 'N'
'\u17f2': 'N'
'\u17f3': 'N'
'\u17f4': 'N'
'\u17f5': 'N'
'\u17f6': 'N'
'\u17f7': 'N'
'\u17f8': 'N'
'\u17f9': 'N'
'\u1810': 'N'
'\u1811': 'N'
'\u1812': 'N'
'\u1813': 'N'
'\u1814': 'N'
'\u1815': 'N'
'\u1816': 'N'
'\u1817': 'N'
'\u1818': 'N'
'\u1819': 'N'
'\u1820': 'L'
'\u1821': 'L'
'\u1822': 'L'
'\u1823': 'L'
'\u1824': 'L'
'\u1825': 'L'
'\u1826': 'L'
'\u1827': 'L'
'\u1828': 'L'
'\u1829': 'L'
'\u182a': 'L'
'\u182b': 'L'
'\u182c': 'L'
'\u182d': 'L'
'\u182e': 'L'
'\u182f': 'L'
'\u1830': 'L'
'\u1831': 'L'
'\u1832': 'L'
'\u1833': 'L'
'\u1834': 'L'
'\u1835': 'L'
'\u1836': 'L'
'\u1837': 'L'
'\u1838': 'L'
'\u1839': 'L'
'\u183a': 'L'
'\u183b': 'L'
'\u183c': 'L'
'\u183d': 'L'
'\u183e': 'L'
'\u183f': 'L'
'\u1840': 'L'
'\u1841': 'L'
'\u1842': 'L'
'\u1843': 'L'
'\u1844': 'L'
'\u1845': 'L'
'\u1846': 'L'
'\u1847': 'L'
'\u1848': 'L'
'\u1849': 'L'
'\u184a': 'L'
'\u184b': 'L'
'\u184c': 'L'
'\u184d': 'L'
'\u184e': 'L'
'\u184f': 'L'
'\u1850': 'L'
'\u1851': 'L'
'\u1852': 'L'
'\u1853': 'L'
'\u1854': 'L'
'\u1855': 'L'
'\u1856': 'L'
'\u1857': 'L'
'\u1858': 'L'
'\u1859': 'L'
'\u185a': 'L'
'\u185b': 'L'
'\u185c': 'L'
'\u185d': 'L'
'\u185e': 'L'
'\u185f': 'L'
'\u1860': 'L'
'\u1861': 'L'
'\u1862': 'L'
'\u1863': 'L'
'\u1864': 'L'
'\u1865': 'L'
'\u1866': 'L'
'\u1867': 'L'
'\u1868': 'L'
'\u1869': 'L'
'\u186a': 'L'
'\u186b': 'L'
'\u186c': 'L'
'\u186d': 'L'
'\u186e': 'L'
'\u186f': 'L'
'\u1870': 'L'
'\u1871': 'L'
'\u1872': 'L'
'\u1873': 'L'
'\u1874': 'L'
'\u1875': 'L'
'\u1876': 'L'
'\u1877': 'L'
'\u1880': 'L'
'\u1881': 'L'
'\u1882': 'L'
'\u1883': 'L'
'\u1884': 'L'
'\u1885': 'L'
'\u1886': 'L'
'\u1887': 'L'
'\u1888': 'L'
'\u1889': 'L'
'\u188a': 'L'
'\u188b': 'L'
'\u188c': 'L'
'\u188d': 'L'
'\u188e': 'L'
'\u188f': 'L'
'\u1890': 'L'
'\u1891': 'L'
'\u1892': 'L'
'\u1893': 'L'
'\u1894': 'L'
'\u1895': 'L'
'\u1896': 'L'
'\u1897': 'L'
'\u1898': 'L'
'\u1899': 'L'
'\u189a': 'L'
'\u189b': 'L'
'\u189c': 'L'
'\u189d': 'L'
'\u189e': 'L'
'\u189f': 'L'
'\u18a0': 'L'
'\u18a1': 'L'
'\u18a2': 'L'
'\u18a3': 'L'
'\u18a4': 'L'
'\u18a5': 'L'
'\u18a6': 'L'
'\u18a7': 'L'
'\u18a8': 'L'
'\u18aa': 'L'
'\u18b0': 'L'
'\u18b1': 'L'
'\u18b2': 'L'
'\u18b3': 'L'
'\u18b4': 'L'
'\u18b5': 'L'
'\u18b6': 'L'
'\u18b7': 'L'
'\u18b8': 'L'
'\u18b9': 'L'
'\u18ba': 'L'
'\u18bb': 'L'
'\u18bc': 'L'
'\u18bd': 'L'
'\u18be': 'L'
'\u18bf': 'L'
'\u18c0': 'L'
'\u18c1': 'L'
'\u18c2': 'L'
'\u18c3': 'L'
'\u18c4': 'L'
'\u18c5': 'L'
'\u18c6': 'L'
'\u18c7': 'L'
'\u18c8': 'L'
'\u18c9': 'L'
'\u18ca': 'L'
'\u18cb': 'L'
'\u18cc': 'L'
'\u18cd': 'L'
'\u18ce': 'L'
'\u18cf': 'L'
'\u18d0': 'L'
'\u18d1': 'L'
'\u18d2': 'L'
'\u18d3': 'L'
'\u18d4': 'L'
'\u18d5': 'L'
'\u18d6': 'L'
'\u18d7': 'L'
'\u18d8': 'L'
'\u18d9': 'L'
'\u18da': 'L'
'\u18db': 'L'
'\u18dc': 'L'
'\u18dd': 'L'
'\u18de': 'L'
'\u18df': 'L'
'\u18e0': 'L'
'\u18e1': 'L'
'\u18e2': 'L'
'\u18e3': 'L'
'\u18e4': 'L'
'\u18e5': 'L'
'\u18e6': 'L'
'\u18e7': 'L'
'\u18e8': 'L'
'\u18e9': 'L'
'\u18ea': 'L'
'\u18eb': 'L'
'\u18ec': 'L'
'\u18ed': 'L'
'\u18ee': 'L'
'\u18ef': 'L'
'\u18f0': 'L'
'\u18f1': 'L'
'\u18f2': 'L'
'\u18f3': 'L'
'\u18f4': 'L'
'\u18f5': 'L'
'\u1900': 'L'
'\u1901': 'L'
'\u1902': 'L'
'\u1903': 'L'
'\u1904': 'L'
'\u1905': 'L'
'\u1906': 'L'
'\u1907': 'L'
'\u1908': 'L'
'\u1909': 'L'
'\u190a': 'L'
'\u190b': 'L'
'\u190c': 'L'
'\u190d': 'L'
'\u190e': 'L'
'\u190f': 'L'
'\u1910': 'L'
'\u1911': 'L'
'\u1912': 'L'
'\u1913': 'L'
'\u1914': 'L'
'\u1915': 'L'
'\u1916': 'L'
'\u1917': 'L'
'\u1918': 'L'
'\u1919': 'L'
'\u191a': 'L'
'\u191b': 'L'
'\u191c': 'L'
'\u191d': 'L'
'\u191e': 'L'
'\u1946': 'N'
'\u1947': 'N'
'\u1948': 'N'
'\u1949': 'N'
'\u194a': 'N'
'\u194b': 'N'
'\u194c': 'N'
'\u194d': 'N'
'\u194e': 'N'
'\u194f': 'N'
'\u1950': 'L'
'\u1951': 'L'
'\u1952': 'L'
'\u1953': 'L'
'\u1954': 'L'
'\u1955': 'L'
'\u1956': 'L'
'\u1957': 'L'
'\u1958': 'L'
'\u1959': 'L'
'\u195a': 'L'
'\u195b': 'L'
'\u195c': 'L'
'\u195d': 'L'
'\u195e': 'L'
'\u195f': 'L'
'\u1960': 'L'
'\u1961': 'L'
'\u1962': 'L'
'\u1963': 'L'
'\u1964': 'L'
'\u1965': 'L'
'\u1966': 'L'
'\u1967': 'L'
'\u1968': 'L'
'\u1969': 'L'
'\u196a': 'L'
'\u196b': 'L'
'\u196c': 'L'
'\u196d': 'L'
'\u1970': 'L'
'\u1971': 'L'
'\u1972': 'L'
'\u1973': 'L'
'\u1974': 'L'
'\u1980': 'L'
'\u1981': 'L'
'\u1982': 'L'
'\u1983': 'L'
'\u1984': 'L'
'\u1985': 'L'
'\u1986': 'L'
'\u1987': 'L'
'\u1988': 'L'
'\u1989': 'L'
'\u198a': 'L'
'\u198b': 'L'
'\u198c': 'L'
'\u198d': 'L'
'\u198e': 'L'
'\u198f': 'L'
'\u1990': 'L'
'\u1991': 'L'
'\u1992': 'L'
'\u1993': 'L'
'\u1994': 'L'
'\u1995': 'L'
'\u1996': 'L'
'\u1997': 'L'
'\u1998': 'L'
'\u1999': 'L'
'\u199a': 'L'
'\u199b': 'L'
'\u199c': 'L'
'\u199d': 'L'
'\u199e': 'L'
'\u199f': 'L'
'\u19a0': 'L'
'\u19a1': 'L'
'\u19a2': 'L'
'\u19a3': 'L'
'\u19a4': 'L'
'\u19a5': 'L'
'\u19a6': 'L'
'\u19a7': 'L'
'\u19a8': 'L'
'\u19a9': 'L'
'\u19aa': 'L'
'\u19ab': 'L'
'\u19b0': 'L'
'\u19b1': 'L'
'\u19b2': 'L'
'\u19b3': 'L'
'\u19b4': 'L'
'\u19b5': 'L'
'\u19b6': 'L'
'\u19b7': 'L'
'\u19b8': 'L'
'\u19b9': 'L'
'\u19ba': 'L'
'\u19bb': 'L'
'\u19bc': 'L'
'\u19bd': 'L'
'\u19be': 'L'
'\u19bf': 'L'
'\u19c0': 'L'
'\u19c1': 'L'
'\u19c2': 'L'
'\u19c3': 'L'
'\u19c4': 'L'
'\u19c5': 'L'
'\u19c6': 'L'
'\u19c7': 'L'
'\u19c8': 'L'
'\u19c9': 'L'
'\u19d0': 'N'
'\u19d1': 'N'
'\u19d2': 'N'
'\u19d3': 'N'
'\u19d4': 'N'
'\u19d5': 'N'
'\u19d6': 'N'
'\u19d7': 'N'
'\u19d8': 'N'
'\u19d9': 'N'
'\u19da': 'N'
'\u1a00': 'L'
'\u1a01': 'L'
'\u1a02': 'L'
'\u1a03': 'L'
'\u1a04': 'L'
'\u1a05': 'L'
'\u1a06': 'L'
'\u1a07': 'L'
'\u1a08': 'L'
'\u1a09': 'L'
'\u1a0a': 'L'
'\u1a0b': 'L'
'\u1a0c': 'L'
'\u1a0d': 'L'
'\u1a0e': 'L'
'\u1a0f': 'L'
'\u1a10': 'L'
'\u1a11': 'L'
'\u1a12': 'L'
'\u1a13': 'L'
'\u1a14': 'L'
'\u1a15': 'L'
'\u1a16': 'L'
'\u1a20': 'L'
'\u1a21': 'L'
'\u1a22': 'L'
'\u1a23': 'L'
'\u1a24': 'L'
'\u1a25': 'L'
'\u1a26': 'L'
'\u1a27': 'L'
'\u1a28': 'L'
'\u1a29': 'L'
'\u1a2a': 'L'
'\u1a2b': 'L'
'\u1a2c': 'L'
'\u1a2d': 'L'
'\u1a2e': 'L'
'\u1a2f': 'L'
'\u1a30': 'L'
'\u1a31': 'L'
'\u1a32': 'L'
'\u1a33': 'L'
'\u1a34': 'L'
'\u1a35': 'L'
'\u1a36': 'L'
'\u1a37': 'L'
'\u1a38': 'L'
'\u1a39': 'L'
'\u1a3a': 'L'
'\u1a3b': 'L'
'\u1a3c': 'L'
'\u1a3d': 'L'
'\u1a3e': 'L'
'\u1a3f': 'L'
'\u1a40': 'L'
'\u1a41': 'L'
'\u1a42': 'L'
'\u1a43': 'L'
'\u1a44': 'L'
'\u1a45': 'L'
'\u1a46': 'L'
'\u1a47': 'L'
'\u1a48': 'L'
'\u1a49': 'L'
'\u1a4a': 'L'
'\u1a4b': 'L'
'\u1a4c': 'L'
'\u1a4d': 'L'
'\u1a4e': 'L'
'\u1a4f': 'L'
'\u1a50': 'L'
'\u1a51': 'L'
'\u1a52': 'L'
'\u1a53': 'L'
'\u1a54': 'L'
'\u1a80': 'N'
'\u1a81': 'N'
'\u1a82': 'N'
'\u1a83': 'N'
'\u1a84': 'N'
'\u1a85': 'N'
'\u1a86': 'N'
'\u1a87': 'N'
'\u1a88': 'N'
'\u1a89': 'N'
'\u1a90': 'N'
'\u1a91': 'N'
'\u1a92': 'N'
'\u1a93': 'N'
'\u1a94': 'N'
'\u1a95': 'N'
'\u1a96': 'N'
'\u1a97': 'N'
'\u1a98': 'N'
'\u1a99': 'N'
'\u1aa7': 'L'
'\u1b05': 'L'
'\u1b06': 'L'
'\u1b07': 'L'
'\u1b08': 'L'
'\u1b09': 'L'
'\u1b0a': 'L'
'\u1b0b': 'L'
'\u1b0c': 'L'
'\u1b0d': 'L'
'\u1b0e': 'L'
'\u1b0f': 'L'
'\u1b10': 'L'
'\u1b11': 'L'
'\u1b12': 'L'
'\u1b13': 'L'
'\u1b14': 'L'
'\u1b15': 'L'
'\u1b16': 'L'
'\u1b17': 'L'
'\u1b18': 'L'
'\u1b19': 'L'
'\u1b1a': 'L'
'\u1b1b': 'L'
'\u1b1c': 'L'
'\u1b1d': 'L'
'\u1b1e': 'L'
'\u1b1f': 'L'
'\u1b20': 'L'
'\u1b21': 'L'
'\u1b22': 'L'
'\u1b23': 'L'
'\u1b24': 'L'
'\u1b25': 'L'
'\u1b26': 'L'
'\u1b27': 'L'
'\u1b28': 'L'
'\u1b29': 'L'
'\u1b2a': 'L'
'\u1b2b': 'L'
'\u1b2c': 'L'
'\u1b2d': 'L'
'\u1b2e': 'L'
'\u1b2f': 'L'
'\u1b30': 'L'
'\u1b31': 'L'
'\u1b32': 'L'
'\u1b33': 'L'
'\u1b45': 'L'
'\u1b46': 'L'
'\u1b47': 'L'
'\u1b48': 'L'
'\u1b49': 'L'
'\u1b4a': 'L'
'\u1b4b': 'L'
'\u1b50': 'N'
'\u1b51': 'N'
'\u1b52': 'N'
'\u1b53': 'N'
'\u1b54': 'N'
'\u1b55': 'N'
'\u1b56': 'N'
'\u1b57': 'N'
'\u1b58': 'N'
'\u1b59': 'N'
'\u1b83': 'L'
'\u1b84': 'L'
'\u1b85': 'L'
'\u1b86': 'L'
'\u1b87': 'L'
'\u1b88': 'L'
'\u1b89': 'L'
'\u1b8a': 'L'
'\u1b8b': 'L'
'\u1b8c': 'L'
'\u1b8d': 'L'
'\u1b8e': 'L'
'\u1b8f': 'L'
'\u1b90': 'L'
'\u1b91': 'L'
'\u1b92': 'L'
'\u1b93': 'L'
'\u1b94': 'L'
'\u1b95': 'L'
'\u1b96': 'L'
'\u1b97': 'L'
'\u1b98': 'L'
'\u1b99': 'L'
'\u1b9a': 'L'
'\u1b9b': 'L'
'\u1b9c': 'L'
'\u1b9d': 'L'
'\u1b9e': 'L'
'\u1b9f': 'L'
'\u1ba0': 'L'
'\u1bae': 'L'
'\u1baf': 'L'
'\u1bb0': 'N'
'\u1bb1': 'N'
'\u1bb2': 'N'
'\u1bb3': 'N'
'\u1bb4': 'N'
'\u1bb5': 'N'
'\u1bb6': 'N'
'\u1bb7': 'N'
'\u1bb8': 'N'
'\u1bb9': 'N'
'\u1bba': 'L'
'\u1bbb': 'L'
'\u1bbc': 'L'
'\u1bbd': 'L'
'\u1bbe': 'L'
'\u1bbf': 'L'
'\u1bc0': 'L'
'\u1bc1': 'L'
'\u1bc2': 'L'
'\u1bc3': 'L'
'\u1bc4': 'L'
'\u1bc5': 'L'
'\u1bc6': 'L'
'\u1bc7': 'L'
'\u1bc8': 'L'
'\u1bc9': 'L'
'\u1bca': 'L'
'\u1bcb': 'L'
'\u1bcc': 'L'
'\u1bcd': 'L'
'\u1bce': 'L'
'\u1bcf': 'L'
'\u1bd0': 'L'
'\u1bd1': 'L'
'\u1bd2': 'L'
'\u1bd3': 'L'
'\u1bd4': 'L'
'\u1bd5': 'L'
'\u1bd6': 'L'
'\u1bd7': 'L'
'\u1bd8': 'L'
'\u1bd9': 'L'
'\u1bda': 'L'
'\u1bdb': 'L'
'\u1bdc': 'L'
'\u1bdd': 'L'
'\u1bde': 'L'
'\u1bdf': 'L'
'\u1be0': 'L'
'\u1be1': 'L'
'\u1be2': 'L'
'\u1be3': 'L'
'\u1be4': 'L'
'\u1be5': 'L'
'\u1c00': 'L'
'\u1c01': 'L'
'\u1c02': 'L'
'\u1c03': 'L'
'\u1c04': 'L'
'\u1c05': 'L'
'\u1c06': 'L'
'\u1c07': 'L'
'\u1c08': 'L'
'\u1c09': 'L'
'\u1c0a': 'L'
'\u1c0b': 'L'
'\u1c0c': 'L'
'\u1c0d': 'L'
'\u1c0e': 'L'
'\u1c0f': 'L'
'\u1c10': 'L'
'\u1c11': 'L'
'\u1c12': 'L'
'\u1c13': 'L'
'\u1c14': 'L'
'\u1c15': 'L'
'\u1c16': 'L'
'\u1c17': 'L'
'\u1c18': 'L'
'\u1c19': 'L'
'\u1c1a': 'L'
'\u1c1b': 'L'
'\u1c1c': 'L'
'\u1c1d': 'L'
'\u1c1e': 'L'
'\u1c1f': 'L'
'\u1c20': 'L'
'\u1c21': 'L'
'\u1c22': 'L'
'\u1c23': 'L'
'\u1c40': 'N'
'\u1c41': 'N'
'\u1c42': 'N'
'\u1c43': 'N'
'\u1c44': 'N'
'\u1c45': 'N'
'\u1c46': 'N'
'\u1c47': 'N'
'\u1c48': 'N'
'\u1c49': 'N'
'\u1c4d': 'L'
'\u1c4e': 'L'
'\u1c4f': 'L'
'\u1c50': 'N'
'\u1c51': 'N'
'\u1c52': 'N'
'\u1c53': 'N'
'\u1c54': 'N'
'\u1c55': 'N'
'\u1c56': 'N'
'\u1c57': 'N'
'\u1c58': 'N'
'\u1c59': 'N'
'\u1c5a': 'L'
'\u1c5b': 'L'
'\u1c5c': 'L'
'\u1c5d': 'L'
'\u1c5e': 'L'
'\u1c5f': 'L'
'\u1c60': 'L'
'\u1c61': 'L'
'\u1c62': 'L'
'\u1c63': 'L'
'\u1c64': 'L'
'\u1c65': 'L'
'\u1c66': 'L'
'\u1c67': 'L'
'\u1c68': 'L'
'\u1c69': 'L'
'\u1c6a': 'L'
'\u1c6b': 'L'
'\u1c6c': 'L'
'\u1c6d': 'L'
'\u1c6e': 'L'
'\u1c6f': 'L'
'\u1c70': 'L'
'\u1c71': 'L'
'\u1c72': 'L'
'\u1c73': 'L'
'\u1c74': 'L'
'\u1c75': 'L'
'\u1c76': 'L'
'\u1c77': 'L'
'\u1c78': 'L'
'\u1c79': 'L'
'\u1c7a': 'L'
'\u1c7b': 'L'
'\u1c7c': 'L'
'\u1c7d': 'L'
'\u1ce9': 'L'
'\u1cea': 'L'
'\u1ceb': 'L'
'\u1cec': 'L'
'\u1cee': 'L'
'\u1cef': 'L'
'\u1cf0': 'L'
'\u1cf1': 'L'
'\u1cf5': 'L'
'\u1cf6': 'L'
'\u1d00': 'L'
'\u1d01': 'L'
'\u1d02': 'L'
'\u1d03': 'L'
'\u1d04': 'L'
'\u1d05': 'L'
'\u1d06': 'L'
'\u1d07': 'L'
'\u1d08': 'L'
'\u1d09': 'L'
'\u1d0a': 'L'
'\u1d0b': 'L'
'\u1d0c': 'L'
'\u1d0d': 'L'
'\u1d0e': 'L'
'\u1d0f': 'L'
'\u1d10': 'L'
'\u1d11': 'L'
'\u1d12': 'L'
'\u1d13': 'L'
'\u1d14': 'L'
'\u1d15': 'L'
'\u1d16': 'L'
'\u1d17': 'L'
'\u1d18': 'L'
'\u1d19': 'L'
'\u1d1a': 'L'
'\u1d1b': 'L'
'\u1d1c': 'L'
'\u1d1d': 'L'
'\u1d1e': 'L'
'\u1d1f': 'L'
'\u1d20': 'L'
'\u1d21': 'L'
'\u1d22': 'L'
'\u1d23': 'L'
'\u1d24': 'L'
'\u1d25': 'L'
'\u1d26': 'L'
'\u1d27': 'L'
'\u1d28': 'L'
'\u1d29': 'L'
'\u1d2a': 'L'
'\u1d2b': 'L'
'\u1d2c': 'L'
'\u1d2d': 'L'
'\u1d2e': 'L'
'\u1d2f': 'L'
'\u1d30': 'L'
'\u1d31': 'L'
'\u1d32': 'L'
'\u1d33': 'L'
'\u1d34': 'L'
'\u1d35': 'L'
'\u1d36': 'L'
'\u1d37': 'L'
'\u1d38': 'L'
'\u1d39': 'L'
'\u1d3a': 'L'
'\u1d3b': 'L'
'\u1d3c': 'L'
'\u1d3d': 'L'
'\u1d3e': 'L'
'\u1d3f': 'L'
'\u1d40': 'L'
'\u1d41': 'L'
'\u1d42': 'L'
'\u1d43': 'L'
'\u1d44': 'L'
'\u1d45': 'L'
'\u1d46': 'L'
'\u1d47': 'L'
'\u1d48': 'L'
'\u1d49': 'L'
'\u1d4a': 'L'
'\u1d4b': 'L'
'\u1d4c': 'L'
'\u1d4d': 'L'
'\u1d4e': 'L'
'\u1d4f': 'L'
'\u1d50': 'L'
'\u1d51': 'L'
'\u1d52': 'L'
'\u1d53': 'L'
'\u1d54': 'L'
'\u1d55': 'L'
'\u1d56': 'L'
'\u1d57': 'L'
'\u1d58': 'L'
'\u1d59': 'L'
'\u1d5a': 'L'
'\u1d5b': 'L'
'\u1d5c': 'L'
'\u1d5d': 'L'
'\u1d5e': 'L'
'\u1d5f': 'L'
'\u1d60': 'L'
'\u1d61': 'L'
'\u1d62': 'L'
'\u1d63': 'L'
'\u1d64': 'L'
'\u1d65': 'L'
'\u1d66': 'L'
'\u1d67': 'L'
'\u1d68': 'L'
'\u1d69': 'L'
'\u1d6a': 'L'
'\u1d6b': 'L'
'\u1d6c': 'L'
'\u1d6d': 'L'
'\u1d6e': 'L'
'\u1d6f': 'L'
'\u1d70': 'L'
'\u1d71': 'L'
'\u1d72': 'L'
'\u1d73': 'L'
'\u1d74': 'L'
'\u1d75': 'L'
'\u1d76': 'L'
'\u1d77': 'L'
'\u1d78': 'L'
'\u1d79': 'L'
'\u1d7a': 'L'
'\u1d7b': 'L'
'\u1d7c': 'L'
'\u1d7d': 'L'
'\u1d7e': 'L'
'\u1d7f': 'L'
'\u1d80': 'L'
'\u1d81': 'L'
'\u1d82': 'L'
'\u1d83': 'L'
'\u1d84': 'L'
'\u1d85': 'L'
'\u1d86': 'L'
'\u1d87': 'L'
'\u1d88': 'L'
'\u1d89': 'L'
'\u1d8a': 'L'
'\u1d8b': 'L'
'\u1d8c': 'L'
'\u1d8d': 'L'
'\u1d8e': 'L'
'\u1d8f': 'L'
'\u1d90': 'L'
'\u1d91': 'L'
'\u1d92': 'L'
'\u1d93': 'L'
'\u1d94': 'L'
'\u1d95': 'L'
'\u1d96': 'L'
'\u1d97': 'L'
'\u1d98': 'L'
'\u1d99': 'L'
'\u1d9a': 'L'
'\u1d9b': 'L'
'\u1d9c': 'L'
'\u1d9d': 'L'
'\u1d9e': 'L'
'\u1d9f': 'L'
'\u1da0': 'L'
'\u1da1': 'L'
'\u1da2': 'L'
'\u1da3': 'L'
'\u1da4': 'L'
'\u1da5': 'L'
'\u1da6': 'L'
'\u1da7': 'L'
'\u1da8': 'L'
'\u1da9': 'L'
'\u1daa': 'L'
'\u1dab': 'L'
'\u1dac': 'L'
'\u1dad': 'L'
'\u1dae': 'L'
'\u1daf': 'L'
'\u1db0': 'L'
'\u1db1': 'L'
'\u1db2': 'L'
'\u1db3': 'L'
'\u1db4': 'L'
'\u1db5': 'L'
'\u1db6': 'L'
'\u1db7': 'L'
'\u1db8': 'L'
'\u1db9': 'L'
'\u1dba': 'L'
'\u1dbb': 'L'
'\u1dbc': 'L'
'\u1dbd': 'L'
'\u1dbe': 'L'
'\u1dbf': 'L'
'\u1e00': 'Lu'
'\u1e01': 'L'
'\u1e02': 'Lu'
'\u1e03': 'L'
'\u1e04': 'Lu'
'\u1e05': 'L'
'\u1e06': 'Lu'
'\u1e07': 'L'
'\u1e08': 'Lu'
'\u1e09': 'L'
'\u1e0a': 'Lu'
'\u1e0b': 'L'
'\u1e0c': 'Lu'
'\u1e0d': 'L'
'\u1e0e': 'Lu'
'\u1e0f': 'L'
'\u1e10': 'Lu'
'\u1e11': 'L'
'\u1e12': 'Lu'
'\u1e13': 'L'
'\u1e14': 'Lu'
'\u1e15': 'L'
'\u1e16': 'Lu'
'\u1e17': 'L'
'\u1e18': 'Lu'
'\u1e19': 'L'
'\u1e1a': 'Lu'
'\u1e1b': 'L'
'\u1e1c': 'Lu'
'\u1e1d': 'L'
'\u1e1e': 'Lu'
'\u1e1f': 'L'
'\u1e20': 'Lu'
'\u1e21': 'L'
'\u1e22': 'Lu'
'\u1e23': 'L'
'\u1e24': 'Lu'
'\u1e25': 'L'
'\u1e26': 'Lu'
'\u1e27': 'L'
'\u1e28': 'Lu'
'\u1e29': 'L'
'\u1e2a': 'Lu'
'\u1e2b': 'L'
'\u1e2c': 'Lu'
'\u1e2d': 'L'
'\u1e2e': 'Lu'
'\u1e2f': 'L'
'\u1e30': 'Lu'
'\u1e31': 'L'
'\u1e32': 'Lu'
'\u1e33': 'L'
'\u1e34': 'Lu'
'\u1e35': 'L'
'\u1e36': 'Lu'
'\u1e37': 'L'
'\u1e38': 'Lu'
'\u1e39': 'L'
'\u1e3a': 'Lu'
'\u1e3b': 'L'
'\u1e3c': 'Lu'
'\u1e3d': 'L'
'\u1e3e': 'Lu'
'\u1e3f': 'L'
'\u1e40': 'Lu'
'\u1e41': 'L'
'\u1e42': 'Lu'
'\u1e43': 'L'
'\u1e44': 'Lu'
'\u1e45': 'L'
'\u1e46': 'Lu'
'\u1e47': 'L'
'\u1e48': 'Lu'
'\u1e49': 'L'
'\u1e4a': 'Lu'
'\u1e4b': 'L'
'\u1e4c': 'Lu'
'\u1e4d': 'L'
'\u1e4e': 'Lu'
'\u1e4f': 'L'
'\u1e50': 'Lu'
'\u1e51': 'L'
'\u1e52': 'Lu'
'\u1e53': 'L'
'\u1e54': 'Lu'
'\u1e55': 'L'
'\u1e56': 'Lu'
'\u1e57': 'L'
'\u1e58': 'Lu'
'\u1e59': 'L'
'\u1e5a': 'Lu'
'\u1e5b': 'L'
'\u1e5c': 'Lu'
'\u1e5d': 'L'
'\u1e5e': 'Lu'
'\u1e5f': 'L'
'\u1e60': 'Lu'
'\u1e61': 'L'
'\u1e62': 'Lu'
'\u1e63': 'L'
'\u1e64': 'Lu'
'\u1e65': 'L'
'\u1e66': 'Lu'
'\u1e67': 'L'
'\u1e68': 'Lu'
'\u1e69': 'L'
'\u1e6a': 'Lu'
'\u1e6b': 'L'
'\u1e6c': 'Lu'
'\u1e6d': 'L'
'\u1e6e': 'Lu'
'\u1e6f': 'L'
'\u1e70': 'Lu'
'\u1e71': 'L'
'\u1e72': 'Lu'
'\u1e73': 'L'
'\u1e74': 'Lu'
'\u1e75': 'L'
'\u1e76': 'Lu'
'\u1e77': 'L'
'\u1e78': 'Lu'
'\u1e79': 'L'
'\u1e7a': 'Lu'
'\u1e7b': 'L'
'\u1e7c': 'Lu'
'\u1e7d': 'L'
'\u1e7e': 'Lu'
'\u1e7f': 'L'
'\u1e80': 'Lu'
'\u1e81': 'L'
'\u1e82': 'Lu'
'\u1e83': 'L'
'\u1e84': 'Lu'
'\u1e85': 'L'
'\u1e86': 'Lu'
'\u1e87': 'L'
'\u1e88': 'Lu'
'\u1e89': 'L'
'\u1e8a': 'Lu'
'\u1e8b': 'L'
'\u1e8c': 'Lu'
'\u1e8d': 'L'
'\u1e8e': 'Lu'
'\u1e8f': 'L'
'\u1e90': 'Lu'
'\u1e91': 'L'
'\u1e92': 'Lu'
'\u1e93': 'L'
'\u1e94': 'Lu'
'\u1e95': 'L'
'\u1e96': 'L'
'\u1e97': 'L'
'\u1e98': 'L'
'\u1e99': 'L'
'\u1e9a': 'L'
'\u1e9b': 'L'
'\u1e9c': 'L'
'\u1e9d': 'L'
'\u1e9e': 'Lu'
'\u1e9f': 'L'
'\u1ea0': 'Lu'
'\u1ea1': 'L'
'\u1ea2': 'Lu'
'\u1ea3': 'L'
'\u1ea4': 'Lu'
'\u1ea5': 'L'
'\u1ea6': 'Lu'
'\u1ea7': 'L'
'\u1ea8': 'Lu'
'\u1ea9': 'L'
'\u1eaa': 'Lu'
'\u1eab': 'L'
'\u1eac': 'Lu'
'\u1ead': 'L'
'\u1eae': 'Lu'
'\u1eaf': 'L'
'\u1eb0': 'Lu'
'\u1eb1': 'L'
'\u1eb2': 'Lu'
'\u1eb3': 'L'
'\u1eb4': 'Lu'
'\u1eb5': 'L'
'\u1eb6': 'Lu'
'\u1eb7': 'L'
'\u1eb8': 'Lu'
'\u1eb9': 'L'
'\u1eba': 'Lu'
'\u1ebb': 'L'
'\u1ebc': 'Lu'
'\u1ebd': 'L'
'\u1ebe': 'Lu'
'\u1ebf': 'L'
'\u1ec0': 'Lu'
'\u1ec1': 'L'
'\u1ec2': 'Lu'
'\u1ec3': 'L'
'\u1ec4': 'Lu'
'\u1ec5': 'L'
'\u1ec6': 'Lu'
'\u1ec7': 'L'
'\u1ec8': 'Lu'
'\u1ec9': 'L'
'\u1eca': 'Lu'
'\u1ecb': 'L'
'\u1ecc': 'Lu'
'\u1ecd': 'L'
'\u1ece': 'Lu'
'\u1ecf': 'L'
'\u1ed0': 'Lu'
'\u1ed1': 'L'
'\u1ed2': 'Lu'
'\u1ed3': 'L'
'\u1ed4': 'Lu'
'\u1ed5': 'L'
'\u1ed6': 'Lu'
'\u1ed7': 'L'
'\u1ed8': 'Lu'
'\u1ed9': 'L'
'\u1eda': 'Lu'
'\u1edb': 'L'
'\u1edc': 'Lu'
'\u1edd': 'L'
'\u1ede': 'Lu'
'\u1edf': 'L'
'\u1ee0': 'Lu'
'\u1ee1': 'L'
'\u1ee2': 'Lu'
'\u1ee3': 'L'
'\u1ee4': 'Lu'
'\u1ee5': 'L'
'\u1ee6': 'Lu'
'\u1ee7': 'L'
'\u1ee8': 'Lu'
'\u1ee9': 'L'
'\u1eea': 'Lu'
'\u1eeb': 'L'
'\u1eec': 'Lu'
'\u1eed': 'L'
'\u1eee': 'Lu'
'\u1eef': 'L'
'\u1ef0': 'Lu'
'\u1ef1': 'L'
'\u1ef2': 'Lu'
'\u1ef3': 'L'
'\u1ef4': 'Lu'
'\u1ef5': 'L'
'\u1ef6': 'Lu'
'\u1ef7': 'L'
'\u1ef8': 'Lu'
'\u1ef9': 'L'
'\u1efa': 'Lu'
'\u1efb': 'L'
'\u1efc': 'Lu'
'\u1efd': 'L'
'\u1efe': 'Lu'
'\u1eff': 'L'
'\u1f00': 'L'
'\u1f01': 'L'
'\u1f02': 'L'
'\u1f03': 'L'
'\u1f04': 'L'
'\u1f05': 'L'
'\u1f06': 'L'
'\u1f07': 'L'
'\u1f08': 'Lu'
'\u1f09': 'Lu'
'\u1f0a': 'Lu'
'\u1f0b': 'Lu'
'\u1f0c': 'Lu'
'\u1f0d': 'Lu'
'\u1f0e': 'Lu'
'\u1f0f': 'Lu'
'\u1f10': 'L'
'\u1f11': 'L'
'\u1f12': 'L'
'\u1f13': 'L'
'\u1f14': 'L'
'\u1f15': 'L'
'\u1f18': 'Lu'
'\u1f19': 'Lu'
'\u1f1a': 'Lu'
'\u1f1b': 'Lu'
'\u1f1c': 'Lu'
'\u1f1d': 'Lu'
'\u1f20': 'L'
'\u1f21': 'L'
'\u1f22': 'L'
'\u1f23': 'L'
'\u1f24': 'L'
'\u1f25': 'L'
'\u1f26': 'L'
'\u1f27': 'L'
'\u1f28': 'Lu'
'\u1f29': 'Lu'
'\u1f2a': 'Lu'
'\u1f2b': 'Lu'
'\u1f2c': 'Lu'
'\u1f2d': 'Lu'
'\u1f2e': 'Lu'
'\u1f2f': 'Lu'
'\u1f30': 'L'
'\u1f31': 'L'
'\u1f32': 'L'
'\u1f33': 'L'
'\u1f34': 'L'
'\u1f35': 'L'
'\u1f36': 'L'
'\u1f37': 'L'
'\u1f38': 'Lu'
'\u1f39': 'Lu'
'\u1f3a': 'Lu'
'\u1f3b': 'Lu'
'\u1f3c': 'Lu'
'\u1f3d': 'Lu'
'\u1f3e': 'Lu'
'\u1f3f': 'Lu'
'\u1f40': 'L'
'\u1f41': 'L'
'\u1f42': 'L'
'\u1f43': 'L'
'\u1f44': 'L'
'\u1f45': 'L'
'\u1f48': 'Lu'
'\u1f49': 'Lu'
'\u1f4a': 'Lu'
'\u1f4b': 'Lu'
'\u1f4c': 'Lu'
'\u1f4d': 'Lu'
'\u1f50': 'L'
'\u1f51': 'L'
'\u1f52': 'L'
'\u1f53': 'L'
'\u1f54': 'L'
'\u1f55': 'L'
'\u1f56': 'L'
'\u1f57': 'L'
'\u1f59': 'Lu'
'\u1f5b': 'Lu'
'\u1f5d': 'Lu'
'\u1f5f': 'Lu'
'\u1f60': 'L'
'\u1f61': 'L'
'\u1f62': 'L'
'\u1f63': 'L'
'\u1f64': 'L'
'\u1f65': 'L'
'\u1f66': 'L'
'\u1f67': 'L'
'\u1f68': 'Lu'
'\u1f69': 'Lu'
'\u1f6a': 'Lu'
'\u1f6b': 'Lu'
'\u1f6c': 'Lu'
'\u1f6d': 'Lu'
'\u1f6e': 'Lu'
'\u1f6f': 'Lu'
'\u1f70': 'L'
'\u1f71': 'L'
'\u1f72': 'L'
'\u1f73': 'L'
'\u1f74': 'L'
'\u1f75': 'L'
'\u1f76': 'L'
'\u1f77': 'L'
'\u1f78': 'L'
'\u1f79': 'L'
'\u1f7a': 'L'
'\u1f7b': 'L'
'\u1f7c': 'L'
'\u1f7d': 'L'
'\u1f80': 'L'
'\u1f81': 'L'
'\u1f82': 'L'
'\u1f83': 'L'
'\u1f84': 'L'
'\u1f85': 'L'
'\u1f86': 'L'
'\u1f87': 'L'
'\u1f88': 'L'
'\u1f89': 'L'
'\u1f8a': 'L'
'\u1f8b': 'L'
'\u1f8c': 'L'
'\u1f8d': 'L'
'\u1f8e': 'L'
'\u1f8f': 'L'
'\u1f90': 'L'
'\u1f91': 'L'
'\u1f92': 'L'
'\u1f93': 'L'
'\u1f94': 'L'
'\u1f95': 'L'
'\u1f96': 'L'
'\u1f97': 'L'
'\u1f98': 'L'
'\u1f99': 'L'
'\u1f9a': 'L'
'\u1f9b': 'L'
'\u1f9c': 'L'
'\u1f9d': 'L'
'\u1f9e': 'L'
'\u1f9f': 'L'
'\u1fa0': 'L'
'\u1fa1': 'L'
'\u1fa2': 'L'
'\u1fa3': 'L'
'\u1fa4': 'L'
'\u1fa5': 'L'
'\u1fa6': 'L'
'\u1fa7': 'L'
'\u1fa8': 'L'
'\u1fa9': 'L'
'\u1faa': 'L'
'\u1fab': 'L'
'\u1fac': 'L'
'\u1fad': 'L'
'\u1fae': 'L'
'\u1faf': 'L'
'\u1fb0': 'L'
'\u1fb1': 'L'
'\u1fb2': 'L'
'\u1fb3': 'L'
'\u1fb4': 'L'
'\u1fb6': 'L'
'\u1fb7': 'L'
'\u1fb8': 'Lu'
'\u1fb9': 'Lu'
'\u1fba': 'Lu'
'\u1fbb': 'Lu'
'\u1fbc': 'L'
'\u1fbe': 'L'
'\u1fc2': 'L'
'\u1fc3': 'L'
'\u1fc4': 'L'
'\u1fc6': 'L'
'\u1fc7': 'L'
'\u1fc8': 'Lu'
'\u1fc9': 'Lu'
'\u1fca': 'Lu'
'\u1fcb': 'Lu'
'\u1fcc': 'L'
'\u1fd0': 'L'
'\u1fd1': 'L'
'\u1fd2': 'L'
'\u1fd3': 'L'
'\u1fd6': 'L'
'\u1fd7': 'L'
'\u1fd8': 'Lu'
'\u1fd9': 'Lu'
'\u1fda': 'Lu'
'\u1fdb': 'Lu'
'\u1fe0': 'L'
'\u1fe1': 'L'
'\u1fe2': 'L'
'\u1fe3': 'L'
'\u1fe4': 'L'
'\u1fe5': 'L'
'\u1fe6': 'L'
'\u1fe7': 'L'
'\u1fe8': 'Lu'
'\u1fe9': 'Lu'
'\u1fea': 'Lu'
'\u1feb': 'Lu'
'\u1fec': 'Lu'
'\u1ff2': 'L'
'\u1ff3': 'L'
'\u1ff4': 'L'
'\u1ff6': 'L'
'\u1ff7': 'L'
'\u1ff8': 'Lu'
'\u1ff9': 'Lu'
'\u1ffa': 'Lu'
'\u1ffb': 'Lu'
'\u1ffc': 'L'
'\u2070': 'N'
'\u2071': 'L'
'\u2074': 'N'
'\u2075': 'N'
'\u2076': 'N'
'\u2077': 'N'
'\u2078': 'N'
'\u2079': 'N'
'\u207f': 'L'
'\u2080': 'N'
'\u2081': 'N'
'\u2082': 'N'
'\u2083': 'N'
'\u2084': 'N'
'\u2085': 'N'
'\u2086': 'N'
'\u2087': 'N'
'\u2088': 'N'
'\u2089': 'N'
'\u2090': 'L'
'\u2091': 'L'
'\u2092': 'L'
'\u2093': 'L'
'\u2094': 'L'
'\u2095': 'L'
'\u2096': 'L'
'\u2097': 'L'
'\u2098': 'L'
'\u2099': 'L'
'\u209a': 'L'
'\u209b': 'L'
'\u209c': 'L'
'\u2102': 'Lu'
'\u2107': 'Lu'
'\u210a': 'L'
'\u210b': 'Lu'
'\u210c': 'Lu'
'\u210d': 'Lu'
'\u210e': 'L'
'\u210f': 'L'
'\u2110': 'Lu'
'\u2111': 'Lu'
'\u2112': 'Lu'
'\u2113': 'L'
'\u2115': 'Lu'
'\u2119': 'Lu'
'\u211a': 'Lu'
'\u211b': 'Lu'
'\u211c': 'Lu'
'\u211d': 'Lu'
'\u2124': 'Lu'
'\u2126': 'Lu'
'\u2128': 'Lu'
'\u212a': 'Lu'
'\u212b': 'Lu'
'\u212c': 'Lu'
'\u212d': 'Lu'
'\u212f': 'L'
'\u2130': 'Lu'
'\u2131': 'Lu'
'\u2132': 'Lu'
'\u2133': 'Lu'
'\u2134': 'L'
'\u2135': 'L'
'\u2136': 'L'
'\u2137': 'L'
'\u2138': 'L'
'\u2139': 'L'
'\u213c': 'L'
'\u213d': 'L'
'\u213e': 'Lu'
'\u213f': 'Lu'
'\u2145': 'Lu'
'\u2146': 'L'
'\u2147': 'L'
'\u2148': 'L'
'\u2149': 'L'
'\u214e': 'L'
'\u2150': 'N'
'\u2151': 'N'
'\u2152': 'N'
'\u2153': 'N'
'\u2154': 'N'
'\u2155': 'N'
'\u2156': 'N'
'\u2157': 'N'
'\u2158': 'N'
'\u2159': 'N'
'\u215a': 'N'
'\u215b': 'N'
'\u215c': 'N'
'\u215d': 'N'
'\u215e': 'N'
'\u215f': 'N'
'\u2160': 'N'
'\u2161': 'N'
'\u2162': 'N'
'\u2163': 'N'
'\u2164': 'N'
'\u2165': 'N'
'\u2166': 'N'
'\u2167': 'N'
'\u2168': 'N'
'\u2169': 'N'
'\u216a': 'N'
'\u216b': 'N'
'\u216c': 'N'
'\u216d': 'N'
'\u216e': 'N'
'\u216f': 'N'
'\u2170': 'N'
'\u2171': 'N'
'\u2172': 'N'
'\u2173': 'N'
'\u2174': 'N'
'\u2175': 'N'
'\u2176': 'N'
'\u2177': 'N'
'\u2178': 'N'
'\u2179': 'N'
'\u217a': 'N'
'\u217b': 'N'
'\u217c': 'N'
'\u217d': 'N'
'\u217e': 'N'
'\u217f': 'N'
'\u2180': 'N'
'\u2181': 'N'
'\u2182': 'N'
'\u2183': 'Lu'
'\u2184': 'L'
'\u2185': 'N'
'\u2186': 'N'
'\u2187': 'N'
'\u2188': 'N'
'\u2189': 'N'
'\u2460': 'N'
'\u2461': 'N'
'\u2462': 'N'
'\u2463': 'N'
'\u2464': 'N'
'\u2465': 'N'
'\u2466': 'N'
'\u2467': 'N'
'\u2468': 'N'
'\u2469': 'N'
'\u246a': 'N'
'\u246b': 'N'
'\u246c': 'N'
'\u246d': 'N'
'\u246e': 'N'
'\u246f': 'N'
'\u2470': 'N'
'\u2471': 'N'
'\u2472': 'N'
'\u2473': 'N'
'\u2474': 'N'
'\u2475': 'N'
'\u2476': 'N'
'\u2477': 'N'
'\u2478': 'N'
'\u2479': 'N'
'\u247a': 'N'
'\u247b': 'N'
'\u247c': 'N'
'\u247d': 'N'
'\u247e': 'N'
'\u247f': 'N'
'\u2480': 'N'
'\u2481': 'N'
'\u2482': 'N'
'\u2483': 'N'
'\u2484': 'N'
'\u2485': 'N'
'\u2486': 'N'
'\u2487': 'N'
'\u2488': 'N'
'\u2489': 'N'
'\u248a': 'N'
'\u248b': 'N'
'\u248c': 'N'
'\u248d': 'N'
'\u248e': 'N'
'\u248f': 'N'
'\u2490': 'N'
'\u2491': 'N'
'\u2492': 'N'
'\u2493': 'N'
'\u2494': 'N'
'\u2495': 'N'
'\u2496': 'N'
'\u2497': 'N'
'\u2498': 'N'
'\u2499': 'N'
'\u249a': 'N'
'\u249b': 'N'
'\u24ea': 'N'
'\u24eb': 'N'
'\u24ec': 'N'
'\u24ed': 'N'
'\u24ee': 'N'
'\u24ef': 'N'
'\u24f0': 'N'
'\u24f1': 'N'
'\u24f2': 'N'
'\u24f3': 'N'
'\u24f4': 'N'
'\u24f5': 'N'
'\u24f6': 'N'
'\u24f7': 'N'
'\u24f8': 'N'
'\u24f9': 'N'
'\u24fa': 'N'
'\u24fb': 'N'
'\u24fc': 'N'
'\u24fd': 'N'
'\u24fe': 'N'
'\u24ff': 'N'
'\u2776': 'N'
'\u2777': 'N'
'\u2778': 'N'
'\u2779': 'N'
'\u277a': 'N'
'\u277b': 'N'
'\u277c': 'N'
'\u277d': 'N'
'\u277e': 'N'
'\u277f': 'N'
'\u2780': 'N'
'\u2781': 'N'
'\u2782': 'N'
'\u2783': 'N'
'\u2784': 'N'
'\u2785': 'N'
'\u2786': 'N'
'\u2787': 'N'
'\u2788': 'N'
'\u2789': 'N'
'\u278a': 'N'
'\u278b': 'N'
'\u278c': 'N'
'\u278d': 'N'
'\u278e': 'N'
'\u278f': 'N'
'\u2790': 'N'
'\u2791': 'N'
'\u2792': 'N'
'\u2793': 'N'
'\u2c00': 'Lu'
'\u2c01': 'Lu'
'\u2c02': 'Lu'
'\u2c03': 'Lu'
'\u2c04': 'Lu'
'\u2c05': 'Lu'
'\u2c06': 'Lu'
'\u2c07': 'Lu'
'\u2c08': 'Lu'
'\u2c09': 'Lu'
'\u2c0a': 'Lu'
'\u2c0b': 'Lu'
'\u2c0c': 'Lu'
'\u2c0d': 'Lu'
'\u2c0e': 'Lu'
'\u2c0f': 'Lu'
'\u2c10': 'Lu'
'\u2c11': 'Lu'
'\u2c12': 'Lu'
'\u2c13': 'Lu'
'\u2c14': 'Lu'
'\u2c15': 'Lu'
'\u2c16': 'Lu'
'\u2c17': 'Lu'
'\u2c18': 'Lu'
'\u2c19': 'Lu'
'\u2c1a': 'Lu'
'\u2c1b': 'Lu'
'\u2c1c': 'Lu'
'\u2c1d': 'Lu'
'\u2c1e': 'Lu'
'\u2c1f': 'Lu'
'\u2c20': 'Lu'
'\u2c21': 'Lu'
'\u2c22': 'Lu'
'\u2c23': 'Lu'
'\u2c24': 'Lu'
'\u2c25': 'Lu'
'\u2c26': 'Lu'
'\u2c27': 'Lu'
'\u2c28': 'Lu'
'\u2c29': 'Lu'
'\u2c2a': 'Lu'
'\u2c2b': 'Lu'
'\u2c2c': 'Lu'
'\u2c2d': 'Lu'
'\u2c2e': 'Lu'
'\u2c30': 'L'
'\u2c31': 'L'
'\u2c32': 'L'
'\u2c33': 'L'
'\u2c34': 'L'
'\u2c35': 'L'
'\u2c36': 'L'
'\u2c37': 'L'
'\u2c38': 'L'
'\u2c39': 'L'
'\u2c3a': 'L'
'\u2c3b': 'L'
'\u2c3c': 'L'
'\u2c3d': 'L'
'\u2c3e': 'L'
'\u2c3f': 'L'
'\u2c40': 'L'
'\u2c41': 'L'
'\u2c42': 'L'
'\u2c43': 'L'
'\u2c44': 'L'
'\u2c45': 'L'
'\u2c46': 'L'
'\u2c47': 'L'
'\u2c48': 'L'
'\u2c49': 'L'
'\u2c4a': 'L'
'\u2c4b': 'L'
'\u2c4c': 'L'
'\u2c4d': 'L'
'\u2c4e': 'L'
'\u2c4f': 'L'
'\u2c50': 'L'
'\u2c51': 'L'
'\u2c52': 'L'
'\u2c53': 'L'
'\u2c54': 'L'
'\u2c55': 'L'
'\u2c56': 'L'
'\u2c57': 'L'
'\u2c58': 'L'
'\u2c59': 'L'
'\u2c5a': 'L'
'\u2c5b': 'L'
'\u2c5c': 'L'
'\u2c5d': 'L'
'\u2c5e': 'L'
'\u2c60': 'Lu'
'\u2c61': 'L'
'\u2c62': 'Lu'
'\u2c63': 'Lu'
'\u2c64': 'Lu'
'\u2c65': 'L'
'\u2c66': 'L'
'\u2c67': 'Lu'
'\u2c68': 'L'
'\u2c69': 'Lu'
'\u2c6a': 'L'
'\u2c6b': 'Lu'
'\u2c6c': 'L'
'\u2c6d': 'Lu'
'\u2c6e': 'Lu'
'\u2c6f': 'Lu'
'\u2c70': 'Lu'
'\u2c71': 'L'
'\u2c72': 'Lu'
'\u2c73': 'L'
'\u2c74': 'L'
'\u2c75': 'Lu'
'\u2c76': 'L'
'\u2c77': 'L'
'\u2c78': 'L'
'\u2c79': 'L'
'\u2c7a': 'L'
'\u2c7b': 'L'
'\u2c7c': 'L'
'\u2c7d': 'L'
'\u2c7e': 'Lu'
'\u2c7f': 'Lu'
'\u2c80': 'Lu'
'\u2c81': 'L'
'\u2c82': 'Lu'
'\u2c83': 'L'
'\u2c84': 'Lu'
'\u2c85': 'L'
'\u2c86': 'Lu'
'\u2c87': 'L'
'\u2c88': 'Lu'
'\u2c89': 'L'
'\u2c8a': 'Lu'
'\u2c8b': 'L'
'\u2c8c': 'Lu'
'\u2c8d': 'L'
'\u2c8e': 'Lu'
'\u2c8f': 'L'
'\u2c90': 'Lu'
'\u2c91': 'L'
'\u2c92': 'Lu'
'\u2c93': 'L'
'\u2c94': 'Lu'
'\u2c95': 'L'
'\u2c96': 'Lu'
'\u2c97': 'L'
'\u2c98': 'Lu'
'\u2c99': 'L'
'\u2c9a': 'Lu'
'\u2c9b': 'L'
'\u2c9c': 'Lu'
'\u2c9d': 'L'
'\u2c9e': 'Lu'
'\u2c9f': 'L'
'\u2ca0': 'Lu'
'\u2ca1': 'L'
'\u2ca2': 'Lu'
'\u2ca3': 'L'
'\u2ca4': 'Lu'
'\u2ca5': 'L'
'\u2ca6': 'Lu'
'\u2ca7': 'L'
'\u2ca8': 'Lu'
'\u2ca9': 'L'
'\u2caa': 'Lu'
'\u2cab': 'L'
'\u2cac': 'Lu'
'\u2cad': 'L'
'\u2cae': 'Lu'
'\u2caf': 'L'
'\u2cb0': 'Lu'
'\u2cb1': 'L'
'\u2cb2': 'Lu'
'\u2cb3': 'L'
'\u2cb4': 'Lu'
'\u2cb5': 'L'
'\u2cb6': 'Lu'
'\u2cb7': 'L'
'\u2cb8': 'Lu'
'\u2cb9': 'L'
'\u2cba': 'Lu'
'\u2cbb': 'L'
'\u2cbc': 'Lu'
'\u2cbd': 'L'
'\u2cbe': 'Lu'
'\u2cbf': 'L'
'\u2cc0': 'Lu'
'\u2cc1': 'L'
'\u2cc2': 'Lu'
'\u2cc3': 'L'
'\u2cc4': 'Lu'
'\u2cc5': 'L'
'\u2cc6': 'Lu'
'\u2cc7': 'L'
'\u2cc8': 'Lu'
'\u2cc9': 'L'
'\u2cca': 'Lu'
'\u2ccb': 'L'
'\u2ccc': 'Lu'
'\u2ccd': 'L'
'\u2cce': 'Lu'
'\u2ccf': 'L'
'\u2cd0': 'Lu'
'\u2cd1': 'L'
'\u2cd2': 'Lu'
'\u2cd3': 'L'
'\u2cd4': 'Lu'
'\u2cd5': 'L'
'\u2cd6': 'Lu'
'\u2cd7': 'L'
'\u2cd8': 'Lu'
'\u2cd9': 'L'
'\u2cda': 'Lu'
'\u2cdb': 'L'
'\u2cdc': 'Lu'
'\u2cdd': 'L'
'\u2cde': 'Lu'
'\u2cdf': 'L'
'\u2ce0': 'Lu'
'\u2ce1': 'L'
'\u2ce2': 'Lu'
'\u2ce3': 'L'
'\u2ce4': 'L'
'\u2ceb': 'Lu'
'\u2cec': 'L'
'\u2ced': 'Lu'
'\u2cee': 'L'
'\u2cf2': 'Lu'
'\u2cf3': 'L'
'\u2cfd': 'N'
'\u2d00': 'L'
'\u2d01': 'L'
'\u2d02': 'L'
'\u2d03': 'L'
'\u2d04': 'L'
'\u2d05': 'L'
'\u2d06': 'L'
'\u2d07': 'L'
'\u2d08': 'L'
'\u2d09': 'L'
'\u2d0a': 'L'
'\u2d0b': 'L'
'\u2d0c': 'L'
'\u2d0d': 'L'
'\u2d0e': 'L'
'\u2d0f': 'L'
'\u2d10': 'L'
'\u2d11': 'L'
'\u2d12': 'L'
'\u2d13': 'L'
'\u2d14': 'L'
'\u2d15': 'L'
'\u2d16': 'L'
'\u2d17': 'L'
'\u2d18': 'L'
'\u2d19': 'L'
'\u2d1a': 'L'
'\u2d1b': 'L'
'\u2d1c': 'L'
'\u2d1d': 'L'
'\u2d1e': 'L'
'\u2d1f': 'L'
'\u2d20': 'L'
'\u2d21': 'L'
'\u2d22': 'L'
'\u2d23': 'L'
'\u2d24': 'L'
'\u2d25': 'L'
'\u2d27': 'L'
'\u2d2d': 'L'
'\u2d30': 'L'
'\u2d31': 'L'
'\u2d32': 'L'
'\u2d33': 'L'
'\u2d34': 'L'
'\u2d35': 'L'
'\u2d36': 'L'
'\u2d37': 'L'
'\u2d38': 'L'
'\u2d39': 'L'
'\u2d3a': 'L'
'\u2d3b': 'L'
'\u2d3c': 'L'
'\u2d3d': 'L'
'\u2d3e': 'L'
'\u2d3f': 'L'
'\u2d40': 'L'
'\u2d41': 'L'
'\u2d42': 'L'
'\u2d43': 'L'
'\u2d44': 'L'
'\u2d45': 'L'
'\u2d46': 'L'
'\u2d47': 'L'
'\u2d48': 'L'
'\u2d49': 'L'
'\u2d4a': 'L'
'\u2d4b': 'L'
'\u2d4c': 'L'
'\u2d4d': 'L'
'\u2d4e': 'L'
'\u2d4f': 'L'
'\u2d50': 'L'
'\u2d51': 'L'
'\u2d52': 'L'
'\u2d53': 'L'
'\u2d54': 'L'
'\u2d55': 'L'
'\u2d56': 'L'
'\u2d57': 'L'
'\u2d58': 'L'
'\u2d59': 'L'
'\u2d5a': 'L'
'\u2d5b': 'L'
'\u2d5c': 'L'
'\u2d5d': 'L'
'\u2d5e': 'L'
'\u2d5f': 'L'
'\u2d60': 'L'
'\u2d61': 'L'
'\u2d62': 'L'
'\u2d63': 'L'
'\u2d64': 'L'
'\u2d65': 'L'
'\u2d66': 'L'
'\u2d67': 'L'
'\u2d6f': 'L'
'\u2d80': 'L'
'\u2d81': 'L'
'\u2d82': 'L'
'\u2d83': 'L'
'\u2d84': 'L'
'\u2d85': 'L'
'\u2d86': 'L'
'\u2d87': 'L'
'\u2d88': 'L'
'\u2d89': 'L'
'\u2d8a': 'L'
'\u2d8b': 'L'
'\u2d8c': 'L'
'\u2d8d': 'L'
'\u2d8e': 'L'
'\u2d8f': 'L'
'\u2d90': 'L'
'\u2d91': 'L'
'\u2d92': 'L'
'\u2d93': 'L'
'\u2d94': 'L'
'\u2d95': 'L'
'\u2d96': 'L'
'\u2da0': 'L'
'\u2da1': 'L'
'\u2da2': 'L'
'\u2da3': 'L'
'\u2da4': 'L'
'\u2da5': 'L'
'\u2da6': 'L'
'\u2da8': 'L'
'\u2da9': 'L'
'\u2daa': 'L'
'\u2dab': 'L'
'\u2dac': 'L'
'\u2dad': 'L'
'\u2dae': 'L'
'\u2db0': 'L'
'\u2db1': 'L'
'\u2db2': 'L'
'\u2db3': 'L'
'\u2db4': 'L'
'\u2db5': 'L'
'\u2db6': 'L'
'\u2db8': 'L'
'\u2db9': 'L'
'\u2dba': 'L'
'\u2dbb': 'L'
'\u2dbc': 'L'
'\u2dbd': 'L'
'\u2dbe': 'L'
'\u2dc0': 'L'
'\u2dc1': 'L'
'\u2dc2': 'L'
'\u2dc3': 'L'
'\u2dc4': 'L'
'\u2dc5': 'L'
'\u2dc6': 'L'
'\u2dc8': 'L'
'\u2dc9': 'L'
'\u2dca': 'L'
'\u2dcb': 'L'
'\u2dcc': 'L'
'\u2dcd': 'L'
'\u2dce': 'L'
'\u2dd0': 'L'
'\u2dd1': 'L'
'\u2dd2': 'L'
'\u2dd3': 'L'
'\u2dd4': 'L'
'\u2dd5': 'L'
'\u2dd6': 'L'
'\u2dd8': 'L'
'\u2dd9': 'L'
'\u2dda': 'L'
'\u2ddb': 'L'
'\u2ddc': 'L'
'\u2ddd': 'L'
'\u2dde': 'L'
'\u2e2f': 'L'
'\u3005': 'L'
'\u3006': 'L'
'\u3007': 'N'
'\u3021': 'N'
'\u3022': 'N'
'\u3023': 'N'
'\u3024': 'N'
'\u3025': 'N'
'\u3026': 'N'
'\u3027': 'N'
'\u3028': 'N'
'\u3029': 'N'
'\u3031': 'L'
'\u3032': 'L'
'\u3033': 'L'
'\u3034': 'L'
'\u3035': 'L'
'\u3038': 'N'
'\u3039': 'N'
'\u303a': 'N'
'\u303b': 'L'
'\u303c': 'L'
'\u3041': 'L'
'\u3042': 'L'
'\u3043': 'L'
'\u3044': 'L'
'\u3045': 'L'
'\u3046': 'L'
'\u3047': 'L'
'\u3048': 'L'
'\u3049': 'L'
'\u304a': 'L'
'\u304b': 'L'
'\u304c': 'L'
'\u304d': 'L'
'\u304e': 'L'
'\u304f': 'L'
'\u3050': 'L'
'\u3051': 'L'
'\u3052': 'L'
'\u3053': 'L'
'\u3054': 'L'
'\u3055': 'L'
'\u3056': 'L'
'\u3057': 'L'
'\u3058': 'L'
'\u3059': 'L'
'\u305a': 'L'
'\u305b': 'L'
'\u305c': 'L'
'\u305d': 'L'
'\u305e': 'L'
'\u305f': 'L'
'\u3060': 'L'
'\u3061': 'L'
'\u3062': 'L'
'\u3063': 'L'
'\u3064': 'L'
'\u3065': 'L'
'\u3066': 'L'
'\u3067': 'L'
'\u3068': 'L'
'\u3069': 'L'
'\u306a': 'L'
'\u306b': 'L'
'\u306c': 'L'
'\u306d': 'L'
'\u306e': 'L'
'\u306f': 'L'
'\u3070': 'L'
'\u3071': 'L'
'\u3072': 'L'
'\u3073': 'L'
'\u3074': 'L'
'\u3075': 'L'
'\u3076': 'L'
'\u3077': 'L'
'\u3078': 'L'
'\u3079': 'L'
'\u307a': 'L'
'\u307b': 'L'
'\u307c': 'L'
'\u307d': 'L'
'\u307e': 'L'
'\u307f': 'L'
'\u3080': 'L'
'\u3081': 'L'
'\u3082': 'L'
'\u3083': 'L'
'\u3084': 'L'
'\u3085': 'L'
'\u3086': 'L'
'\u3087': 'L'
'\u3088': 'L'
'\u3089': 'L'
'\u308a': 'L'
'\u308b': 'L'
'\u308c': 'L'
'\u308d': 'L'
'\u308e': 'L'
'\u308f': 'L'
'\u3090': 'L'
'\u3091': 'L'
'\u3092': 'L'
'\u3093': 'L'
'\u3094': 'L'
'\u3095': 'L'
'\u3096': 'L'
'\u309d': 'L'
'\u309e': 'L'
'\u309f': 'L'
'\u30a1': 'L'
'\u30a2': 'L'
'\u30a3': 'L'
'\u30a4': 'L'
'\u30a5': 'L'
'\u30a6': 'L'
'\u30a7': 'L'
'\u30a8': 'L'
'\u30a9': 'L'
'\u30aa': 'L'
'\u30ab': 'L'
'\u30ac': 'L'
'\u30ad': 'L'
'\u30ae': 'L'
'\u30af': 'L'
'\u30b0': 'L'
'\u30b1': 'L'
'\u30b2': 'L'
'\u30b3': 'L'
'\u30b4': 'L'
'\u30b5': 'L'
'\u30b6': 'L'
'\u30b7': 'L'
'\u30b8': 'L'
'\u30b9': 'L'
'\u30ba': 'L'
'\u30bb': 'L'
'\u30bc': 'L'
'\u30bd': 'L'
'\u30be': 'L'
'\u30bf': 'L'
'\u30c0': 'L'
'\u30c1': 'L'
'\u30c2': 'L'
'\u30c3': 'L'
'\u30c4': 'L'
'\u30c5': 'L'
'\u30c6': 'L'
'\u30c7': 'L'
'\u30c8': 'L'
'\u30c9': 'L'
'\u30ca': 'L'
'\u30cb': 'L'
'\u30cc': 'L'
'\u30cd': 'L'
'\u30ce': 'L'
'\u30cf': 'L'
'\u30d0': 'L'
'\u30d1': 'L'
'\u30d2': 'L'
'\u30d3': 'L'
'\u30d4': 'L'
'\u30d5': 'L'
'\u30d6': 'L'
'\u30d7': 'L'
'\u30d8': 'L'
'\u30d9': 'L'
'\u30da': 'L'
'\u30db': 'L'
'\u30dc': 'L'
'\u30dd': 'L'
'\u30de': 'L'
'\u30df': 'L'
'\u30e0': 'L'
'\u30e1': 'L'
'\u30e2': 'L'
'\u30e3': 'L'
'\u30e4': 'L'
'\u30e5': 'L'
'\u30e6': 'L'
'\u30e7': 'L'
'\u30e8': 'L'
'\u30e9': 'L'
'\u30ea': 'L'
'\u30eb': 'L'
'\u30ec': 'L'
'\u30ed': 'L'
'\u30ee': 'L'
'\u30ef': 'L'
'\u30f0': 'L'
'\u30f1': 'L'
'\u30f2': 'L'
'\u30f3': 'L'
'\u30f4': 'L'
'\u30f5': 'L'
'\u30f6': 'L'
'\u30f7': 'L'
'\u30f8': 'L'
'\u30f9': 'L'
'\u30fa': 'L'
'\u30fc': 'L'
'\u30fd': 'L'
'\u30fe': 'L'
'\u30ff': 'L'
'\u3105': 'L'
'\u3106': 'L'
'\u3107': 'L'
'\u3108': 'L'
'\u3109': 'L'
'\u310a': 'L'
'\u310b': 'L'
'\u310c': 'L'
'\u310d': 'L'
'\u310e': 'L'
'\u310f': 'L'
'\u3110': 'L'
'\u3111': 'L'
'\u3112': 'L'
'\u3113': 'L'
'\u3114': 'L'
'\u3115': 'L'
'\u3116': 'L'
'\u3117': 'L'
'\u3118': 'L'
'\u3119': 'L'
'\u311a': 'L'
'\u311b': 'L'
'\u311c': 'L'
'\u311d': 'L'
'\u311e': 'L'
'\u311f': 'L'
'\u3120': 'L'
'\u3121': 'L'
'\u3122': 'L'
'\u3123': 'L'
'\u3124': 'L'
'\u3125': 'L'
'\u3126': 'L'
'\u3127': 'L'
'\u3128': 'L'
'\u3129': 'L'
'\u312a': 'L'
'\u312b': 'L'
'\u312c': 'L'
'\u312d': 'L'
'\u3131': 'L'
'\u3132': 'L'
'\u3133': 'L'
'\u3134': 'L'
'\u3135': 'L'
'\u3136': 'L'
'\u3137': 'L'
'\u3138': 'L'
'\u3139': 'L'
'\u313a': 'L'
'\u313b': 'L'
'\u313c': 'L'
'\u313d': 'L'
'\u313e': 'L'
'\u313f': 'L'
'\u3140': 'L'
'\u3141': 'L'
'\u3142': 'L'
'\u3143': 'L'
'\u3144': 'L'
'\u3145': 'L'
'\u3146': 'L'
'\u3147': 'L'
'\u3148': 'L'
'\u3149': 'L'
'\u314a': 'L'
'\u314b': 'L'
'\u314c': 'L'
'\u314d': 'L'
'\u314e': 'L'
'\u314f': 'L'
'\u3150': 'L'
'\u3151': 'L'
'\u3152': 'L'
'\u3153': 'L'
'\u3154': 'L'
'\u3155': 'L'
'\u3156': 'L'
'\u3157': 'L'
'\u3158': 'L'
'\u3159': 'L'
'\u315a': 'L'
'\u315b': 'L'
'\u315c': 'L'
'\u315d': 'L'
'\u315e': 'L'
'\u315f': 'L'
'\u3160': 'L'
'\u3161': 'L'
'\u3162': 'L'
'\u3163': 'L'
'\u3164': 'L'
'\u3165': 'L'
'\u3166': 'L'
'\u3167': 'L'
'\u3168': 'L'
'\u3169': 'L'
'\u316a': 'L'
'\u316b': 'L'
'\u316c': 'L'
'\u316d': 'L'
'\u316e': 'L'
'\u316f': 'L'
'\u3170': 'L'
'\u3171': 'L'
'\u3172': 'L'
'\u3173': 'L'
'\u3174': 'L'
'\u3175': 'L'
'\u3176': 'L'
'\u3177': 'L'
'\u3178': 'L'
'\u3179': 'L'
'\u317a': 'L'
'\u317b': 'L'
'\u317c': 'L'
'\u317d': 'L'
'\u317e': 'L'
'\u317f': 'L'
'\u3180': 'L'
'\u3181': 'L'
'\u3182': 'L'
'\u3183': 'L'
'\u3184': 'L'
'\u3185': 'L'
'\u3186': 'L'
'\u3187': 'L'
'\u3188': 'L'
'\u3189': 'L'
'\u318a': 'L'
'\u318b': 'L'
'\u318c': 'L'
'\u318d': 'L'
'\u318e': 'L'
'\u3192': 'N'
'\u3193': 'N'
'\u3194': 'N'
'\u3195': 'N'
'\u31a0': 'L'
'\u31a1': 'L'
'\u31a2': 'L'
'\u31a3': 'L'
'\u31a4': 'L'
'\u31a5': 'L'
'\u31a6': 'L'
'\u31a7': 'L'
'\u31a8': 'L'
'\u31a9': 'L'
'\u31aa': 'L'
'\u31ab': 'L'
'\u31ac': 'L'
'\u31ad': 'L'
'\u31ae': 'L'
'\u31af': 'L'
'\u31b0': 'L'
'\u31b1': 'L'
'\u31b2': 'L'
'\u31b3': 'L'
'\u31b4': 'L'
'\u31b5': 'L'
'\u31b6': 'L'
'\u31b7': 'L'
'\u31b8': 'L'
'\u31b9': 'L'
'\u31ba': 'L'
'\u31f0': 'L'
'\u31f1': 'L'
'\u31f2': 'L'
'\u31f3': 'L'
'\u31f4': 'L'
'\u31f5': 'L'
'\u31f6': 'L'
'\u31f7': 'L'
'\u31f8': 'L'
'\u31f9': 'L'
'\u31fa': 'L'
'\u31fb': 'L'
'\u31fc': 'L'
'\u31fd': 'L'
'\u31fe': 'L'
'\u31ff': 'L'
'\u3220': 'N'
'\u3221': 'N'
'\u3222': 'N'
'\u3223': 'N'
'\u3224': 'N'
'\u3225': 'N'
'\u3226': 'N'
'\u3227': 'N'
'\u3228': 'N'
'\u3229': 'N'
'\u3248': 'N'
'\u3249': 'N'
'\u324a': 'N'
'\u324b': 'N'
'\u324c': 'N'
'\u324d': 'N'
'\u324e': 'N'
'\u324f': 'N'
'\u3251': 'N'
'\u3252': 'N'
'\u3253': 'N'
'\u3254': 'N'
'\u3255': 'N'
'\u3256': 'N'
'\u3257': 'N'
'\u3258': 'N'
'\u3259': 'N'
'\u325a': 'N'
'\u325b': 'N'
'\u325c': 'N'
'\u325d': 'N'
'\u325e': 'N'
'\u325f': 'N'
'\u3280': 'N'
'\u3281': 'N'
'\u3282': 'N'
'\u3283': 'N'
'\u3284': 'N'
'\u3285': 'N'
'\u3286': 'N'
'\u3287': 'N'
'\u3288': 'N'
'\u3289': 'N'
'\u32b1': 'N'
'\u32b2': 'N'
'\u32b3': 'N'
'\u32b4': 'N'
'\u32b5': 'N'
'\u32b6': 'N'
'\u32b7': 'N'
'\u32b8': 'N'
'\u32b9': 'N'
'\u32ba': 'N'
'\u32bb': 'N'
'\u32bc': 'N'
'\u32bd': 'N'
'\u32be': 'N'
'\u32bf': 'N'
'\ua000': 'L'
'\ua001': 'L'
'\ua002': 'L'
'\ua003': 'L'
'\ua004': 'L'
'\ua005': 'L'
'\ua006': 'L'
'\ua007': 'L'
'\ua008': 'L'
'\ua009': 'L'
'\ua00a': 'L'
'\ua00b': 'L'
'\ua00c': 'L'
'\ua00d': 'L'
'\ua00e': 'L'
'\ua00f': 'L'
'\ua010': 'L'
'\ua011': 'L'
'\ua012': 'L'
'\ua013': 'L'
'\ua014': 'L'
'\ua015': 'L'
'\ua016': 'L'
'\ua017': 'L'
'\ua018': 'L'
'\ua019': 'L'
'\ua01a': 'L'
'\ua01b': 'L'
'\ua01c': 'L'
'\ua01d': 'L'
'\ua01e': 'L'
'\ua01f': 'L'
'\ua020': 'L'
'\ua021': 'L'
'\ua022': 'L'
'\ua023': 'L'
'\ua024': 'L'
'\ua025': 'L'
'\ua026': 'L'
'\ua027': 'L'
'\ua028': 'L'
'\ua029': 'L'
'\ua02a': 'L'
'\ua02b': 'L'
'\ua02c': 'L'
'\ua02d': 'L'
'\ua02e': 'L'
'\ua02f': 'L'
'\ua030': 'L'
'\ua031': 'L'
'\ua032': 'L'
'\ua033': 'L'
'\ua034': 'L'
'\ua035': 'L'
'\ua036': 'L'
'\ua037': 'L'
'\ua038': 'L'
'\ua039': 'L'
'\ua03a': 'L'
'\ua03b': 'L'
'\ua03c': 'L'
'\ua03d': 'L'
'\ua03e': 'L'
'\ua03f': 'L'
'\ua040': 'L'
'\ua041': 'L'
'\ua042': 'L'
'\ua043': 'L'
'\ua044': 'L'
'\ua045': 'L'
'\ua046': 'L'
'\ua047': 'L'
'\ua048': 'L'
'\ua049': 'L'
'\ua04a': 'L'
'\ua04b': 'L'
'\ua04c': 'L'
'\ua04d': 'L'
'\ua04e': 'L'
'\ua04f': 'L'
'\ua050': 'L'
'\ua051': 'L'
'\ua052': 'L'
'\ua053': 'L'
'\ua054': 'L'
'\ua055': 'L'
'\ua056': 'L'
'\ua057': 'L'
'\ua058': 'L'
'\ua059': 'L'
'\ua05a': 'L'
'\ua05b': 'L'
'\ua05c': 'L'
'\ua05d': 'L'
'\ua05e': 'L'
'\ua05f': 'L'
'\ua060': 'L'
'\ua061': 'L'
'\ua062': 'L'
'\ua063': 'L'
'\ua064': 'L'
'\ua065': 'L'
'\ua066': 'L'
'\ua067': 'L'
'\ua068': 'L'
'\ua069': 'L'
'\ua06a': 'L'
'\ua06b': 'L'
'\ua06c': 'L'
'\ua06d': 'L'
'\ua06e': 'L'
'\ua06f': 'L'
'\ua070': 'L'
'\ua071': 'L'
'\ua072': 'L'
'\ua073': 'L'
'\ua074': 'L'
'\ua075': 'L'
'\ua076': 'L'
'\ua077': 'L'
'\ua078': 'L'
'\ua079': 'L'
'\ua07a': 'L'
'\ua07b': 'L'
'\ua07c': 'L'
'\ua07d': 'L'
'\ua07e': 'L'
'\ua07f': 'L'
'\ua080': 'L'
'\ua081': 'L'
'\ua082': 'L'
'\ua083': 'L'
'\ua084': 'L'
'\ua085': 'L'
'\ua086': 'L'
'\ua087': 'L'
'\ua088': 'L'
'\ua089': 'L'
'\ua08a': 'L'
'\ua08b': 'L'
'\ua08c': 'L'
'\ua08d': 'L'
'\ua08e': 'L'
'\ua08f': 'L'
'\ua090': 'L'
'\ua091': 'L'
'\ua092': 'L'
'\ua093': 'L'
'\ua094': 'L'
'\ua095': 'L'
'\ua096': 'L'
'\ua097': 'L'
'\ua098': 'L'
'\ua099': 'L'
'\ua09a': 'L'
'\ua09b': 'L'
'\ua09c': 'L'
'\ua09d': 'L'
'\ua09e': 'L'
'\ua09f': 'L'
'\ua0a0': 'L'
'\ua0a1': 'L'
'\ua0a2': 'L'
'\ua0a3': 'L'
'\ua0a4': 'L'
'\ua0a5': 'L'
'\ua0a6': 'L'
'\ua0a7': 'L'
'\ua0a8': 'L'
'\ua0a9': 'L'
'\ua0aa': 'L'
'\ua0ab': 'L'
'\ua0ac': 'L'
'\ua0ad': 'L'
'\ua0ae': 'L'
'\ua0af': 'L'
'\ua0b0': 'L'
'\ua0b1': 'L'
'\ua0b2': 'L'
'\ua0b3': 'L'
'\ua0b4': 'L'
'\ua0b5': 'L'
'\ua0b6': 'L'
'\ua0b7': 'L'
'\ua0b8': 'L'
'\ua0b9': 'L'
'\ua0ba': 'L'
'\ua0bb': 'L'
'\ua0bc': 'L'
'\ua0bd': 'L'
'\ua0be': 'L'
'\ua0bf': 'L'
'\ua0c0': 'L'
'\ua0c1': 'L'
'\ua0c2': 'L'
'\ua0c3': 'L'
'\ua0c4': 'L'
'\ua0c5': 'L'
'\ua0c6': 'L'
'\ua0c7': 'L'
'\ua0c8': 'L'
'\ua0c9': 'L'
'\ua0ca': 'L'
'\ua0cb': 'L'
'\ua0cc': 'L'
'\ua0cd': 'L'
'\ua0ce': 'L'
'\ua0cf': 'L'
'\ua0d0': 'L'
'\ua0d1': 'L'
'\ua0d2': 'L'
'\ua0d3': 'L'
'\ua0d4': 'L'
'\ua0d5': 'L'
'\ua0d6': 'L'
'\ua0d7': 'L'
'\ua0d8': 'L'
'\ua0d9': 'L'
'\ua0da': 'L'
'\ua0db': 'L'
'\ua0dc': 'L'
'\ua0dd': 'L'
'\ua0de': 'L'
'\ua0df': 'L'
'\ua0e0': 'L'
'\ua0e1': 'L'
'\ua0e2': 'L'
'\ua0e3': 'L'
'\ua0e4': 'L'
'\ua0e5': 'L'
'\ua0e6': 'L'
'\ua0e7': 'L'
'\ua0e8': 'L'
'\ua0e9': 'L'
'\ua0ea': 'L'
'\ua0eb': 'L'
'\ua0ec': 'L'
'\ua0ed': 'L'
'\ua0ee': 'L'
'\ua0ef': 'L'
'\ua0f0': 'L'
'\ua0f1': 'L'
'\ua0f2': 'L'
'\ua0f3': 'L'
'\ua0f4': 'L'
'\ua0f5': 'L'
'\ua0f6': 'L'
'\ua0f7': 'L'
'\ua0f8': 'L'
'\ua0f9': 'L'
'\ua0fa': 'L'
'\ua0fb': 'L'
'\ua0fc': 'L'
'\ua0fd': 'L'
'\ua0fe': 'L'
'\ua0ff': 'L'
'\ua100': 'L'
'\ua101': 'L'
'\ua102': 'L'
'\ua103': 'L'
'\ua104': 'L'
'\ua105': 'L'
'\ua106': 'L'
'\ua107': 'L'
'\ua108': 'L'
'\ua109': 'L'
'\ua10a': 'L'
'\ua10b': 'L'
'\ua10c': 'L'
'\ua10d': 'L'
'\ua10e': 'L'
'\ua10f': 'L'
'\ua110': 'L'
'\ua111': 'L'
'\ua112': 'L'
'\ua113': 'L'
'\ua114': 'L'
'\ua115': 'L'
'\ua116': 'L'
'\ua117': 'L'
'\ua118': 'L'
'\ua119': 'L'
'\ua11a': 'L'
'\ua11b': 'L'
'\ua11c': 'L'
'\ua11d': 'L'
'\ua11e': 'L'
'\ua11f': 'L'
'\ua120': 'L'
'\ua121': 'L'
'\ua122': 'L'
'\ua123': 'L'
'\ua124': 'L'
'\ua125': 'L'
'\ua126': 'L'
'\ua127': 'L'
'\ua128': 'L'
'\ua129': 'L'
'\ua12a': 'L'
'\ua12b': 'L'
'\ua12c': 'L'
'\ua12d': 'L'
'\ua12e': 'L'
'\ua12f': 'L'
'\ua130': 'L'
'\ua131': 'L'
'\ua132': 'L'
'\ua133': 'L'
'\ua134': 'L'
'\ua135': 'L'
'\ua136': 'L'
'\ua137': 'L'
'\ua138': 'L'
'\ua139': 'L'
'\ua13a': 'L'
'\ua13b': 'L'
'\ua13c': 'L'
'\ua13d': 'L'
'\ua13e': 'L'
'\ua13f': 'L'
'\ua140': 'L'
'\ua141': 'L'
'\ua142': 'L'
'\ua143': 'L'
'\ua144': 'L'
'\ua145': 'L'
'\ua146': 'L'
'\ua147': 'L'
'\ua148': 'L'
'\ua149': 'L'
'\ua14a': 'L'
'\ua14b': 'L'
'\ua14c': 'L'
'\ua14d': 'L'
'\ua14e': 'L'
'\ua14f': 'L'
'\ua150': 'L'
'\ua151': 'L'
'\ua152': 'L'
'\ua153': 'L'
'\ua154': 'L'
'\ua155': 'L'
'\ua156': 'L'
'\ua157': 'L'
'\ua158': 'L'
'\ua159': 'L'
'\ua15a': 'L'
'\ua15b': 'L'
'\ua15c': 'L'
'\ua15d': 'L'
'\ua15e': 'L'
'\ua15f': 'L'
'\ua160': 'L'
'\ua161': 'L'
'\ua162': 'L'
'\ua163': 'L'
'\ua164': 'L'
'\ua165': 'L'
'\ua166': 'L'
'\ua167': 'L'
'\ua168': 'L'
'\ua169': 'L'
'\ua16a': 'L'
'\ua16b': 'L'
'\ua16c': 'L'
'\ua16d': 'L'
'\ua16e': 'L'
'\ua16f': 'L'
'\ua170': 'L'
'\ua171': 'L'
'\ua172': 'L'
'\ua173': 'L'
'\ua174': 'L'
'\ua175': 'L'
'\ua176': 'L'
'\ua177': 'L'
'\ua178': 'L'
'\ua179': 'L'
'\ua17a': 'L'
'\ua17b': 'L'
'\ua17c': 'L'
'\ua17d': 'L'
'\ua17e': 'L'
'\ua17f': 'L'
'\ua180': 'L'
'\ua181': 'L'
'\ua182': 'L'
'\ua183': 'L'
'\ua184': 'L'
'\ua185': 'L'
'\ua186': 'L'
'\ua187': 'L'
'\ua188': 'L'
'\ua189': 'L'
'\ua18a': 'L'
'\ua18b': 'L'
'\ua18c': 'L'
'\ua18d': 'L'
'\ua18e': 'L'
'\ua18f': 'L'
'\ua190': 'L'
'\ua191': 'L'
'\ua192': 'L'
'\ua193': 'L'
'\ua194': 'L'
'\ua195': 'L'
'\ua196': 'L'
'\ua197': 'L'
'\ua198': 'L'
'\ua199': 'L'
'\ua19a': 'L'
'\ua19b': 'L'
'\ua19c': 'L'
'\ua19d': 'L'
'\ua19e': 'L'
'\ua19f': 'L'
'\ua1a0': 'L'
'\ua1a1': 'L'
'\ua1a2': 'L'
'\ua1a3': 'L'
'\ua1a4': 'L'
'\ua1a5': 'L'
'\ua1a6': 'L'
'\ua1a7': 'L'
'\ua1a8': 'L'
'\ua1a9': 'L'
'\ua1aa': 'L'
'\ua1ab': 'L'
'\ua1ac': 'L'
'\ua1ad': 'L'
'\ua1ae': 'L'
'\ua1af': 'L'
'\ua1b0': 'L'
'\ua1b1': 'L'
'\ua1b2': 'L'
'\ua1b3': 'L'
'\ua1b4': 'L'
'\ua1b5': 'L'
'\ua1b6': 'L'
'\ua1b7': 'L'
'\ua1b8': 'L'
'\ua1b9': 'L'
'\ua1ba': 'L'
'\ua1bb': 'L'
'\ua1bc': 'L'
'\ua1bd': 'L'
'\ua1be': 'L'
'\ua1bf': 'L'
'\ua1c0': 'L'
'\ua1c1': 'L'
'\ua1c2': 'L'
'\ua1c3': 'L'
'\ua1c4': 'L'
'\ua1c5': 'L'
'\ua1c6': 'L'
'\ua1c7': 'L'
'\ua1c8': 'L'
'\ua1c9': 'L'
'\ua1ca': 'L'
'\ua1cb': 'L'
'\ua1cc': 'L'
'\ua1cd': 'L'
'\ua1ce': 'L'
'\ua1cf': 'L'
'\ua1d0': 'L'
'\ua1d1': 'L'
'\ua1d2': 'L'
'\ua1d3': 'L'
'\ua1d4': 'L'
'\ua1d5': 'L'
'\ua1d6': 'L'
'\ua1d7': 'L'
'\ua1d8': 'L'
'\ua1d9': 'L'
'\ua1da': 'L'
'\ua1db': 'L'
'\ua1dc': 'L'
'\ua1dd': 'L'
'\ua1de': 'L'
'\ua1df': 'L'
'\ua1e0': 'L'
'\ua1e1': 'L'
'\ua1e2': 'L'
'\ua1e3': 'L'
'\ua1e4': 'L'
'\ua1e5': 'L'
'\ua1e6': 'L'
'\ua1e7': 'L'
'\ua1e8': 'L'
'\ua1e9': 'L'
'\ua1ea': 'L'
'\ua1eb': 'L'
'\ua1ec': 'L'
'\ua1ed': 'L'
'\ua1ee': 'L'
'\ua1ef': 'L'
'\ua1f0': 'L'
'\ua1f1': 'L'
'\ua1f2': 'L'
'\ua1f3': 'L'
'\ua1f4': 'L'
'\ua1f5': 'L'
'\ua1f6': 'L'
'\ua1f7': 'L'
'\ua1f8': 'L'
'\ua1f9': 'L'
'\ua1fa': 'L'
'\ua1fb': 'L'
'\ua1fc': 'L'
'\ua1fd': 'L'
'\ua1fe': 'L'
'\ua1ff': 'L'
'\ua200': 'L'
'\ua201': 'L'
'\ua202': 'L'
'\ua203': 'L'
'\ua204': 'L'
'\ua205': 'L'
'\ua206': 'L'
'\ua207': 'L'
'\ua208': 'L'
'\ua209': 'L'
'\ua20a': 'L'
'\ua20b': 'L'
'\ua20c': 'L'
'\ua20d': 'L'
'\ua20e': 'L'
'\ua20f': 'L'
'\ua210': 'L'
'\ua211': 'L'
'\ua212': 'L'
'\ua213': 'L'
'\ua214': 'L'
'\ua215': 'L'
'\ua216': 'L'
'\ua217': 'L'
'\ua218': 'L'
'\ua219': 'L'
'\ua21a': 'L'
'\ua21b': 'L'
'\ua21c': 'L'
'\ua21d': 'L'
'\ua21e': 'L'
'\ua21f': 'L'
'\ua220': 'L'
'\ua221': 'L'
'\ua222': 'L'
'\ua223': 'L'
'\ua224': 'L'
'\ua225': 'L'
'\ua226': 'L'
'\ua227': 'L'
'\ua228': 'L'
'\ua229': 'L'
'\ua22a': 'L'
'\ua22b': 'L'
'\ua22c': 'L'
'\ua22d': 'L'
'\ua22e': 'L'
'\ua22f': 'L'
'\ua230': 'L'
'\ua231': 'L'
'\ua232': 'L'
'\ua233': 'L'
'\ua234': 'L'
'\ua235': 'L'
'\ua236': 'L'
'\ua237': 'L'
'\ua238': 'L'
'\ua239': 'L'
'\ua23a': 'L'
'\ua23b': 'L'
'\ua23c': 'L'
'\ua23d': 'L'
'\ua23e': 'L'
'\ua23f': 'L'
'\ua240': 'L'
'\ua241': 'L'
'\ua242': 'L'
'\ua243': 'L'
'\ua244': 'L'
'\ua245': 'L'
'\ua246': 'L'
'\ua247': 'L'
'\ua248': 'L'
'\ua249': 'L'
'\ua24a': 'L'
'\ua24b': 'L'
'\ua24c': 'L'
'\ua24d': 'L'
'\ua24e': 'L'
'\ua24f': 'L'
'\ua250': 'L'
'\ua251': 'L'
'\ua252': 'L'
'\ua253': 'L'
'\ua254': 'L'
'\ua255': 'L'
'\ua256': 'L'
'\ua257': 'L'
'\ua258': 'L'
'\ua259': 'L'
'\ua25a': 'L'
'\ua25b': 'L'
'\ua25c': 'L'
'\ua25d': 'L'
'\ua25e': 'L'
'\ua25f': 'L'
'\ua260': 'L'
'\ua261': 'L'
'\ua262': 'L'
'\ua263': 'L'
'\ua264': 'L'
'\ua265': 'L'
'\ua266': 'L'
'\ua267': 'L'
'\ua268': 'L'
'\ua269': 'L'
'\ua26a': 'L'
'\ua26b': 'L'
'\ua26c': 'L'
'\ua26d': 'L'
'\ua26e': 'L'
'\ua26f': 'L'
'\ua270': 'L'
'\ua271': 'L'
'\ua272': 'L'
'\ua273': 'L'
'\ua274': 'L'
'\ua275': 'L'
'\ua276': 'L'
'\ua277': 'L'
'\ua278': 'L'
'\ua279': 'L'
'\ua27a': 'L'
'\ua27b': 'L'
'\ua27c': 'L'
'\ua27d': 'L'
'\ua27e': 'L'
'\ua27f': 'L'
'\ua280': 'L'
'\ua281': 'L'
'\ua282': 'L'
'\ua283': 'L'
'\ua284': 'L'
'\ua285': 'L'
'\ua286': 'L'
'\ua287': 'L'
'\ua288': 'L'
'\ua289': 'L'
'\ua28a': 'L'
'\ua28b': 'L'
'\ua28c': 'L'
'\ua28d': 'L'
'\ua28e': 'L'
'\ua28f': 'L'
'\ua290': 'L'
'\ua291': 'L'
'\ua292': 'L'
'\ua293': 'L'
'\ua294': 'L'
'\ua295': 'L'
'\ua296': 'L'
'\ua297': 'L'
'\ua298': 'L'
'\ua299': 'L'
'\ua29a': 'L'
'\ua29b': 'L'
'\ua29c': 'L'
'\ua29d': 'L'
'\ua29e': 'L'
'\ua29f': 'L'
'\ua2a0': 'L'
'\ua2a1': 'L'
'\ua2a2': 'L'
'\ua2a3': 'L'
'\ua2a4': 'L'
'\ua2a5': 'L'
'\ua2a6': 'L'
'\ua2a7': 'L'
'\ua2a8': 'L'
'\ua2a9': 'L'
'\ua2aa': 'L'
'\ua2ab': 'L'
'\ua2ac': 'L'
'\ua2ad': 'L'
'\ua2ae': 'L'
'\ua2af': 'L'
'\ua2b0': 'L'
'\ua2b1': 'L'
'\ua2b2': 'L'
'\ua2b3': 'L'
'\ua2b4': 'L'
'\ua2b5': 'L'
'\ua2b6': 'L'
'\ua2b7': 'L'
'\ua2b8': 'L'
'\ua2b9': 'L'
'\ua2ba': 'L'
'\ua2bb': 'L'
'\ua2bc': 'L'
'\ua2bd': 'L'
'\ua2be': 'L'
'\ua2bf': 'L'
'\ua2c0': 'L'
'\ua2c1': 'L'
'\ua2c2': 'L'
'\ua2c3': 'L'
'\ua2c4': 'L'
'\ua2c5': 'L'
'\ua2c6': 'L'
'\ua2c7': 'L'
'\ua2c8': 'L'
'\ua2c9': 'L'
'\ua2ca': 'L'
'\ua2cb': 'L'
'\ua2cc': 'L'
'\ua2cd': 'L'
'\ua2ce': 'L'
'\ua2cf': 'L'
'\ua2d0': 'L'
'\ua2d1': 'L'
'\ua2d2': 'L'
'\ua2d3': 'L'
'\ua2d4': 'L'
'\ua2d5': 'L'
'\ua2d6': 'L'
'\ua2d7': 'L'
'\ua2d8': 'L'
'\ua2d9': 'L'
'\ua2da': 'L'
'\ua2db': 'L'
'\ua2dc': 'L'
'\ua2dd': 'L'
'\ua2de': 'L'
'\ua2df': 'L'
'\ua2e0': 'L'
'\ua2e1': 'L'
'\ua2e2': 'L'
'\ua2e3': 'L'
'\ua2e4': 'L'
'\ua2e5': 'L'
'\ua2e6': 'L'
'\ua2e7': 'L'
'\ua2e8': 'L'
'\ua2e9': 'L'
'\ua2ea': 'L'
'\ua2eb': 'L'
'\ua2ec': 'L'
'\ua2ed': 'L'
'\ua2ee': 'L'
'\ua2ef': 'L'
'\ua2f0': 'L'
'\ua2f1': 'L'
'\ua2f2': 'L'
'\ua2f3': 'L'
'\ua2f4': 'L'
'\ua2f5': 'L'
'\ua2f6': 'L'
'\ua2f7': 'L'
'\ua2f8': 'L'
'\ua2f9': 'L'
'\ua2fa': 'L'
'\ua2fb': 'L'
'\ua2fc': 'L'
'\ua2fd': 'L'
'\ua2fe': 'L'
'\ua2ff': 'L'
'\ua300': 'L'
'\ua301': 'L'
'\ua302': 'L'
'\ua303': 'L'
'\ua304': 'L'
'\ua305': 'L'
'\ua306': 'L'
'\ua307': 'L'
'\ua308': 'L'
'\ua309': 'L'
'\ua30a': 'L'
'\ua30b': 'L'
'\ua30c': 'L'
'\ua30d': 'L'
'\ua30e': 'L'
'\ua30f': 'L'
'\ua310': 'L'
'\ua311': 'L'
'\ua312': 'L'
'\ua313': 'L'
'\ua314': 'L'
'\ua315': 'L'
'\ua316': 'L'
'\ua317': 'L'
'\ua318': 'L'
'\ua319': 'L'
'\ua31a': 'L'
'\ua31b': 'L'
'\ua31c': 'L'
'\ua31d': 'L'
'\ua31e': 'L'
'\ua31f': 'L'
'\ua320': 'L'
'\ua321': 'L'
'\ua322': 'L'
'\ua323': 'L'
'\ua324': 'L'
'\ua325': 'L'
'\ua326': 'L'
'\ua327': 'L'
'\ua328': 'L'
'\ua329': 'L'
'\ua32a': 'L'
'\ua32b': 'L'
'\ua32c': 'L'
'\ua32d': 'L'
'\ua32e': 'L'
'\ua32f': 'L'
'\ua330': 'L'
'\ua331': 'L'
'\ua332': 'L'
'\ua333': 'L'
'\ua334': 'L'
'\ua335': 'L'
'\ua336': 'L'
'\ua337': 'L'
'\ua338': 'L'
'\ua339': 'L'
'\ua33a': 'L'
'\ua33b': 'L'
'\ua33c': 'L'
'\ua33d': 'L'
'\ua33e': 'L'
'\ua33f': 'L'
'\ua340': 'L'
'\ua341': 'L'
'\ua342': 'L'
'\ua343': 'L'
'\ua344': 'L'
'\ua345': 'L'
'\ua346': 'L'
'\ua347': 'L'
'\ua348': 'L'
'\ua349': 'L'
'\ua34a': 'L'
'\ua34b': 'L'
'\ua34c': 'L'
'\ua34d': 'L'
'\ua34e': 'L'
'\ua34f': 'L'
'\ua350': 'L'
'\ua351': 'L'
'\ua352': 'L'
'\ua353': 'L'
'\ua354': 'L'
'\ua355': 'L'
'\ua356': 'L'
'\ua357': 'L'
'\ua358': 'L'
'\ua359': 'L'
'\ua35a': 'L'
'\ua35b': 'L'
'\ua35c': 'L'
'\ua35d': 'L'
'\ua35e': 'L'
'\ua35f': 'L'
'\ua360': 'L'
'\ua361': 'L'
'\ua362': 'L'
'\ua363': 'L'
'\ua364': 'L'
'\ua365': 'L'
'\ua366': 'L'
'\ua367': 'L'
'\ua368': 'L'
'\ua369': 'L'
'\ua36a': 'L'
'\ua36b': 'L'
'\ua36c': 'L'
'\ua36d': 'L'
'\ua36e': 'L'
'\ua36f': 'L'
'\ua370': 'L'
'\ua371': 'L'
'\ua372': 'L'
'\ua373': 'L'
'\ua374': 'L'
'\ua375': 'L'
'\ua376': 'L'
'\ua377': 'L'
'\ua378': 'L'
'\ua379': 'L'
'\ua37a': 'L'
'\ua37b': 'L'
'\ua37c': 'L'
'\ua37d': 'L'
'\ua37e': 'L'
'\ua37f': 'L'
'\ua380': 'L'
'\ua381': 'L'
'\ua382': 'L'
'\ua383': 'L'
'\ua384': 'L'
'\ua385': 'L'
'\ua386': 'L'
'\ua387': 'L'
'\ua388': 'L'
'\ua389': 'L'
'\ua38a': 'L'
'\ua38b': 'L'
'\ua38c': 'L'
'\ua38d': 'L'
'\ua38e': 'L'
'\ua38f': 'L'
'\ua390': 'L'
'\ua391': 'L'
'\ua392': 'L'
'\ua393': 'L'
'\ua394': 'L'
'\ua395': 'L'
'\ua396': 'L'
'\ua397': 'L'
'\ua398': 'L'
'\ua399': 'L'
'\ua39a': 'L'
'\ua39b': 'L'
'\ua39c': 'L'
'\ua39d': 'L'
'\ua39e': 'L'
'\ua39f': 'L'
'\ua3a0': 'L'
'\ua3a1': 'L'
'\ua3a2': 'L'
'\ua3a3': 'L'
'\ua3a4': 'L'
'\ua3a5': 'L'
'\ua3a6': 'L'
'\ua3a7': 'L'
'\ua3a8': 'L'
'\ua3a9': 'L'
'\ua3aa': 'L'
'\ua3ab': 'L'
'\ua3ac': 'L'
'\ua3ad': 'L'
'\ua3ae': 'L'
'\ua3af': 'L'
'\ua3b0': 'L'
'\ua3b1': 'L'
'\ua3b2': 'L'
'\ua3b3': 'L'
'\ua3b4': 'L'
'\ua3b5': 'L'
'\ua3b6': 'L'
'\ua3b7': 'L'
'\ua3b8': 'L'
'\ua3b9': 'L'
'\ua3ba': 'L'
'\ua3bb': 'L'
'\ua3bc': 'L'
'\ua3bd': 'L'
'\ua3be': 'L'
'\ua3bf': 'L'
'\ua3c0': 'L'
'\ua3c1': 'L'
'\ua3c2': 'L'
'\ua3c3': 'L'
'\ua3c4': 'L'
'\ua3c5': 'L'
'\ua3c6': 'L'
'\ua3c7': 'L'
'\ua3c8': 'L'
'\ua3c9': 'L'
'\ua3ca': 'L'
'\ua3cb': 'L'
'\ua3cc': 'L'
'\ua3cd': 'L'
'\ua3ce': 'L'
'\ua3cf': 'L'
'\ua3d0': 'L'
'\ua3d1': 'L'
'\ua3d2': 'L'
'\ua3d3': 'L'
'\ua3d4': 'L'
'\ua3d5': 'L'
'\ua3d6': 'L'
'\ua3d7': 'L'
'\ua3d8': 'L'
'\ua3d9': 'L'
'\ua3da': 'L'
'\ua3db': 'L'
'\ua3dc': 'L'
'\ua3dd': 'L'
'\ua3de': 'L'
'\ua3df': 'L'
'\ua3e0': 'L'
'\ua3e1': 'L'
'\ua3e2': 'L'
'\ua3e3': 'L'
'\ua3e4': 'L'
'\ua3e5': 'L'
'\ua3e6': 'L'
'\ua3e7': 'L'
'\ua3e8': 'L'
'\ua3e9': 'L'
'\ua3ea': 'L'
'\ua3eb': 'L'
'\ua3ec': 'L'
'\ua3ed': 'L'
'\ua3ee': 'L'
'\ua3ef': 'L'
'\ua3f0': 'L'
'\ua3f1': 'L'
'\ua3f2': 'L'
'\ua3f3': 'L'
'\ua3f4': 'L'
'\ua3f5': 'L'
'\ua3f6': 'L'
'\ua3f7': 'L'
'\ua3f8': 'L'
'\ua3f9': 'L'
'\ua3fa': 'L'
'\ua3fb': 'L'
'\ua3fc': 'L'
'\ua3fd': 'L'
'\ua3fe': 'L'
'\ua3ff': 'L'
'\ua400': 'L'
'\ua401': 'L'
'\ua402': 'L'
'\ua403': 'L'
'\ua404': 'L'
'\ua405': 'L'
'\ua406': 'L'
'\ua407': 'L'
'\ua408': 'L'
'\ua409': 'L'
'\ua40a': 'L'
'\ua40b': 'L'
'\ua40c': 'L'
'\ua40d': 'L'
'\ua40e': 'L'
'\ua40f': 'L'
'\ua410': 'L'
'\ua411': 'L'
'\ua412': 'L'
'\ua413': 'L'
'\ua414': 'L'
'\ua415': 'L'
'\ua416': 'L'
'\ua417': 'L'
'\ua418': 'L'
'\ua419': 'L'
'\ua41a': 'L'
'\ua41b': 'L'
'\ua41c': 'L'
'\ua41d': 'L'
'\ua41e': 'L'
'\ua41f': 'L'
'\ua420': 'L'
'\ua421': 'L'
'\ua422': 'L'
'\ua423': 'L'
'\ua424': 'L'
'\ua425': 'L'
'\ua426': 'L'
'\ua427': 'L'
'\ua428': 'L'
'\ua429': 'L'
'\ua42a': 'L'
'\ua42b': 'L'
'\ua42c': 'L'
'\ua42d': 'L'
'\ua42e': 'L'
'\ua42f': 'L'
'\ua430': 'L'
'\ua431': 'L'
'\ua432': 'L'
'\ua433': 'L'
'\ua434': 'L'
'\ua435': 'L'
'\ua436': 'L'
'\ua437': 'L'
'\ua438': 'L'
'\ua439': 'L'
'\ua43a': 'L'
'\ua43b': 'L'
'\ua43c': 'L'
'\ua43d': 'L'
'\ua43e': 'L'
'\ua43f': 'L'
'\ua440': 'L'
'\ua441': 'L'
'\ua442': 'L'
'\ua443': 'L'
'\ua444': 'L'
'\ua445': 'L'
'\ua446': 'L'
'\ua447': 'L'
'\ua448': 'L'
'\ua449': 'L'
'\ua44a': 'L'
'\ua44b': 'L'
'\ua44c': 'L'
'\ua44d': 'L'
'\ua44e': 'L'
'\ua44f': 'L'
'\ua450': 'L'
'\ua451': 'L'
'\ua452': 'L'
'\ua453': 'L'
'\ua454': 'L'
'\ua455': 'L'
'\ua456': 'L'
'\ua457': 'L'
'\ua458': 'L'
'\ua459': 'L'
'\ua45a': 'L'
'\ua45b': 'L'
'\ua45c': 'L'
'\ua45d': 'L'
'\ua45e': 'L'
'\ua45f': 'L'
'\ua460': 'L'
'\ua461': 'L'
'\ua462': 'L'
'\ua463': 'L'
'\ua464': 'L'
'\ua465': 'L'
'\ua466': 'L'
'\ua467': 'L'
'\ua468': 'L'
'\ua469': 'L'
'\ua46a': 'L'
'\ua46b': 'L'
'\ua46c': 'L'
'\ua46d': 'L'
'\ua46e': 'L'
'\ua46f': 'L'
'\ua470': 'L'
'\ua471': 'L'
'\ua472': 'L'
'\ua473': 'L'
'\ua474': 'L'
'\ua475': 'L'
'\ua476': 'L'
'\ua477': 'L'
'\ua478': 'L'
'\ua479': 'L'
'\ua47a': 'L'
'\ua47b': 'L'
'\ua47c': 'L'
'\ua47d': 'L'
'\ua47e': 'L'
'\ua47f': 'L'
'\ua480': 'L'
'\ua481': 'L'
'\ua482': 'L'
'\ua483': 'L'
'\ua484': 'L'
'\ua485': 'L'
'\ua486': 'L'
'\ua487': 'L'
'\ua488': 'L'
'\ua489': 'L'
'\ua48a': 'L'
'\ua48b': 'L'
'\ua48c': 'L'
'\ua4d0': 'L'
'\ua4d1': 'L'
'\ua4d2': 'L'
'\ua4d3': 'L'
'\ua4d4': 'L'
'\ua4d5': 'L'
'\ua4d6': 'L'
'\ua4d7': 'L'
'\ua4d8': 'L'
'\ua4d9': 'L'
'\ua4da': 'L'
'\ua4db': 'L'
'\ua4dc': 'L'
'\ua4dd': 'L'
'\ua4de': 'L'
'\ua4df': 'L'
'\ua4e0': 'L'
'\ua4e1': 'L'
'\ua4e2': 'L'
'\ua4e3': 'L'
'\ua4e4': 'L'
'\ua4e5': 'L'
'\ua4e6': 'L'
'\ua4e7': 'L'
'\ua4e8': 'L'
'\ua4e9': 'L'
'\ua4ea': 'L'
'\ua4eb': 'L'
'\ua4ec': 'L'
'\ua4ed': 'L'
'\ua4ee': 'L'
'\ua4ef': 'L'
'\ua4f0': 'L'
'\ua4f1': 'L'
'\ua4f2': 'L'
'\ua4f3': 'L'
'\ua4f4': 'L'
'\ua4f5': 'L'
'\ua4f6': 'L'
'\ua4f7': 'L'
'\ua4f8': 'L'
'\ua4f9': 'L'
'\ua4fa': 'L'
'\ua4fb': 'L'
'\ua4fc': 'L'
'\ua4fd': 'L'
'\ua500': 'L'
'\ua501': 'L'
'\ua502': 'L'
'\ua503': 'L'
'\ua504': 'L'
'\ua505': 'L'
'\ua506': 'L'
'\ua507': 'L'
'\ua508': 'L'
'\ua509': 'L'
'\ua50a': 'L'
'\ua50b': 'L'
'\ua50c': 'L'
'\ua50d': 'L'
'\ua50e': 'L'
'\ua50f': 'L'
'\ua510': 'L'
'\ua511': 'L'
'\ua512': 'L'
'\ua513': 'L'
'\ua514': 'L'
'\ua515': 'L'
'\ua516': 'L'
'\ua517': 'L'
'\ua518': 'L'
'\ua519': 'L'
'\ua51a': 'L'
'\ua51b': 'L'
'\ua51c': 'L'
'\ua51d': 'L'
'\ua51e': 'L'
'\ua51f': 'L'
'\ua520': 'L'
'\ua521': 'L'
'\ua522': 'L'
'\ua523': 'L'
'\ua524': 'L'
'\ua525': 'L'
'\ua526': 'L'
'\ua527': 'L'
'\ua528': 'L'
'\ua529': 'L'
'\ua52a': 'L'
'\ua52b': 'L'
'\ua52c': 'L'
'\ua52d': 'L'
'\ua52e': 'L'
'\ua52f': 'L'
'\ua530': 'L'
'\ua531': 'L'
'\ua532': 'L'
'\ua533': 'L'
'\ua534': 'L'
'\ua535': 'L'
'\ua536': 'L'
'\ua537': 'L'
'\ua538': 'L'
'\ua539': 'L'
'\ua53a': 'L'
'\ua53b': 'L'
'\ua53c': 'L'
'\ua53d': 'L'
'\ua53e': 'L'
'\ua53f': 'L'
'\ua540': 'L'
'\ua541': 'L'
'\ua542': 'L'
'\ua543': 'L'
'\ua544': 'L'
'\ua545': 'L'
'\ua546': 'L'
'\ua547': 'L'
'\ua548': 'L'
'\ua549': 'L'
'\ua54a': 'L'
'\ua54b': 'L'
'\ua54c': 'L'
'\ua54d': 'L'
'\ua54e': 'L'
'\ua54f': 'L'
'\ua550': 'L'
'\ua551': 'L'
'\ua552': 'L'
'\ua553': 'L'
'\ua554': 'L'
'\ua555': 'L'
'\ua556': 'L'
'\ua557': 'L'
'\ua558': 'L'
'\ua559': 'L'
'\ua55a': 'L'
'\ua55b': 'L'
'\ua55c': 'L'
'\ua55d': 'L'
'\ua55e': 'L'
'\ua55f': 'L'
'\ua560': 'L'
'\ua561': 'L'
'\ua562': 'L'
'\ua563': 'L'
'\ua564': 'L'
'\ua565': 'L'
'\ua566': 'L'
'\ua567': 'L'
'\ua568': 'L'
'\ua569': 'L'
'\ua56a': 'L'
'\ua56b': 'L'
'\ua56c': 'L'
'\ua56d': 'L'
'\ua56e': 'L'
'\ua56f': 'L'
'\ua570': 'L'
'\ua571': 'L'
'\ua572': 'L'
'\ua573': 'L'
'\ua574': 'L'
'\ua575': 'L'
'\ua576': 'L'
'\ua577': 'L'
'\ua578': 'L'
'\ua579': 'L'
'\ua57a': 'L'
'\ua57b': 'L'
'\ua57c': 'L'
'\ua57d': 'L'
'\ua57e': 'L'
'\ua57f': 'L'
'\ua580': 'L'
'\ua581': 'L'
'\ua582': 'L'
'\ua583': 'L'
'\ua584': 'L'
'\ua585': 'L'
'\ua586': 'L'
'\ua587': 'L'
'\ua588': 'L'
'\ua589': 'L'
'\ua58a': 'L'
'\ua58b': 'L'
'\ua58c': 'L'
'\ua58d': 'L'
'\ua58e': 'L'
'\ua58f': 'L'
'\ua590': 'L'
'\ua591': 'L'
'\ua592': 'L'
'\ua593': 'L'
'\ua594': 'L'
'\ua595': 'L'
'\ua596': 'L'
'\ua597': 'L'
'\ua598': 'L'
'\ua599': 'L'
'\ua59a': 'L'
'\ua59b': 'L'
'\ua59c': 'L'
'\ua59d': 'L'
'\ua59e': 'L'
'\ua59f': 'L'
'\ua5a0': 'L'
'\ua5a1': 'L'
'\ua5a2': 'L'
'\ua5a3': 'L'
'\ua5a4': 'L'
'\ua5a5': 'L'
'\ua5a6': 'L'
'\ua5a7': 'L'
'\ua5a8': 'L'
'\ua5a9': 'L'
'\ua5aa': 'L'
'\ua5ab': 'L'
'\ua5ac': 'L'
'\ua5ad': 'L'
'\ua5ae': 'L'
'\ua5af': 'L'
'\ua5b0': 'L'
'\ua5b1': 'L'
'\ua5b2': 'L'
'\ua5b3': 'L'
'\ua5b4': 'L'
'\ua5b5': 'L'
'\ua5b6': 'L'
'\ua5b7': 'L'
'\ua5b8': 'L'
'\ua5b9': 'L'
'\ua5ba': 'L'
'\ua5bb': 'L'
'\ua5bc': 'L'
'\ua5bd': 'L'
'\ua5be': 'L'
'\ua5bf': 'L'
'\ua5c0': 'L'
'\ua5c1': 'L'
'\ua5c2': 'L'
'\ua5c3': 'L'
'\ua5c4': 'L'
'\ua5c5': 'L'
'\ua5c6': 'L'
'\ua5c7': 'L'
'\ua5c8': 'L'
'\ua5c9': 'L'
'\ua5ca': 'L'
'\ua5cb': 'L'
'\ua5cc': 'L'
'\ua5cd': 'L'
'\ua5ce': 'L'
'\ua5cf': 'L'
'\ua5d0': 'L'
'\ua5d1': 'L'
'\ua5d2': 'L'
'\ua5d3': 'L'
'\ua5d4': 'L'
'\ua5d5': 'L'
'\ua5d6': 'L'
'\ua5d7': 'L'
'\ua5d8': 'L'
'\ua5d9': 'L'
'\ua5da': 'L'
'\ua5db': 'L'
'\ua5dc': 'L'
'\ua5dd': 'L'
'\ua5de': 'L'
'\ua5df': 'L'
'\ua5e0': 'L'
'\ua5e1': 'L'
'\ua5e2': 'L'
'\ua5e3': 'L'
'\ua5e4': 'L'
'\ua5e5': 'L'
'\ua5e6': 'L'
'\ua5e7': 'L'
'\ua5e8': 'L'
'\ua5e9': 'L'
'\ua5ea': 'L'
'\ua5eb': 'L'
'\ua5ec': 'L'
'\ua5ed': 'L'
'\ua5ee': 'L'
'\ua5ef': 'L'
'\ua5f0': 'L'
'\ua5f1': 'L'
'\ua5f2': 'L'
'\ua5f3': 'L'
'\ua5f4': 'L'
'\ua5f5': 'L'
'\ua5f6': 'L'
'\ua5f7': 'L'
'\ua5f8': 'L'
'\ua5f9': 'L'
'\ua5fa': 'L'
'\ua5fb': 'L'
'\ua5fc': 'L'
'\ua5fd': 'L'
'\ua5fe': 'L'
'\ua5ff': 'L'
'\ua600': 'L'
'\ua601': 'L'
'\ua602': 'L'
'\ua603': 'L'
'\ua604': 'L'
'\ua605': 'L'
'\ua606': 'L'
'\ua607': 'L'
'\ua608': 'L'
'\ua609': 'L'
'\ua60a': 'L'
'\ua60b': 'L'
'\ua60c': 'L'
'\ua610': 'L'
'\ua611': 'L'
'\ua612': 'L'
'\ua613': 'L'
'\ua614': 'L'
'\ua615': 'L'
'\ua616': 'L'
'\ua617': 'L'
'\ua618': 'L'
'\ua619': 'L'
'\ua61a': 'L'
'\ua61b': 'L'
'\ua61c': 'L'
'\ua61d': 'L'
'\ua61e': 'L'
'\ua61f': 'L'
'\ua620': 'N'
'\ua621': 'N'
'\ua622': 'N'
'\ua623': 'N'
'\ua624': 'N'
'\ua625': 'N'
'\ua626': 'N'
'\ua627': 'N'
'\ua628': 'N'
'\ua629': 'N'
'\ua62a': 'L'
'\ua62b': 'L'
'\ua640': 'Lu'
'\ua641': 'L'
'\ua642': 'Lu'
'\ua643': 'L'
'\ua644': 'Lu'
'\ua645': 'L'
'\ua646': 'Lu'
'\ua647': 'L'
'\ua648': 'Lu'
'\ua649': 'L'
'\ua64a': 'Lu'
'\ua64b': 'L'
'\ua64c': 'Lu'
'\ua64d': 'L'
'\ua64e': 'Lu'
'\ua64f': 'L'
'\ua650': 'Lu'
'\ua651': 'L'
'\ua652': 'Lu'
'\ua653': 'L'
'\ua654': 'Lu'
'\ua655': 'L'
'\ua656': 'Lu'
'\ua657': 'L'
'\ua658': 'Lu'
'\ua659': 'L'
'\ua65a': 'Lu'
'\ua65b': 'L'
'\ua65c': 'Lu'
'\ua65d': 'L'
'\ua65e': 'Lu'
'\ua65f': 'L'
'\ua660': 'Lu'
'\ua661': 'L'
'\ua662': 'Lu'
'\ua663': 'L'
'\ua664': 'Lu'
'\ua665': 'L'
'\ua666': 'Lu'
'\ua667': 'L'
'\ua668': 'Lu'
'\ua669': 'L'
'\ua66a': 'Lu'
'\ua66b': 'L'
'\ua66c': 'Lu'
'\ua66d': 'L'
'\ua66e': 'L'
'\ua67f': 'L'
'\ua680': 'Lu'
'\ua681': 'L'
'\ua682': 'Lu'
'\ua683': 'L'
'\ua684': 'Lu'
'\ua685': 'L'
'\ua686': 'Lu'
'\ua687': 'L'
'\ua688': 'Lu'
'\ua689': 'L'
'\ua68a': 'Lu'
'\ua68b': 'L'
'\ua68c': 'Lu'
'\ua68d': 'L'
'\ua68e': 'Lu'
'\ua68f': 'L'
'\ua690': 'Lu'
'\ua691': 'L'
'\ua692': 'Lu'
'\ua693': 'L'
'\ua694': 'Lu'
'\ua695': 'L'
'\ua696': 'Lu'
'\ua697': 'L'
'\ua698': 'Lu'
'\ua699': 'L'
'\ua69a': 'Lu'
'\ua69b': 'L'
'\ua69c': 'L'
'\ua69d': 'L'
'\ua6a0': 'L'
'\ua6a1': 'L'
'\ua6a2': 'L'
'\ua6a3': 'L'
'\ua6a4': 'L'
'\ua6a5': 'L'
'\ua6a6': 'L'
'\ua6a7': 'L'
'\ua6a8': 'L'
'\ua6a9': 'L'
'\ua6aa': 'L'
'\ua6ab': 'L'
'\ua6ac': 'L'
'\ua6ad': 'L'
'\ua6ae': 'L'
'\ua6af': 'L'
'\ua6b0': 'L'
'\ua6b1': 'L'
'\ua6b2': 'L'
'\ua6b3': 'L'
'\ua6b4': 'L'
'\ua6b5': 'L'
'\ua6b6': 'L'
'\ua6b7': 'L'
'\ua6b8': 'L'
'\ua6b9': 'L'
'\ua6ba': 'L'
'\ua6bb': 'L'
'\ua6bc': 'L'
'\ua6bd': 'L'
'\ua6be': 'L'
'\ua6bf': 'L'
'\ua6c0': 'L'
'\ua6c1': 'L'
'\ua6c2': 'L'
'\ua6c3': 'L'
'\ua6c4': 'L'
'\ua6c5': 'L'
'\ua6c6': 'L'
'\ua6c7': 'L'
'\ua6c8': 'L'
'\ua6c9': 'L'
'\ua6ca': 'L'
'\ua6cb': 'L'
'\ua6cc': 'L'
'\ua6cd': 'L'
'\ua6ce': 'L'
'\ua6cf': 'L'
'\ua6d0': 'L'
'\ua6d1': 'L'
'\ua6d2': 'L'
'\ua6d3': 'L'
'\ua6d4': 'L'
'\ua6d5': 'L'
'\ua6d6': 'L'
'\ua6d7': 'L'
'\ua6d8': 'L'
'\ua6d9': 'L'
'\ua6da': 'L'
'\ua6db': 'L'
'\ua6dc': 'L'
'\ua6dd': 'L'
'\ua6de': 'L'
'\ua6df': 'L'
'\ua6e0': 'L'
'\ua6e1': 'L'
'\ua6e2': 'L'
'\ua6e3': 'L'
'\ua6e4': 'L'
'\ua6e5': 'L'
'\ua6e6': 'N'
'\ua6e7': 'N'
'\ua6e8': 'N'
'\ua6e9': 'N'
'\ua6ea': 'N'
'\ua6eb': 'N'
'\ua6ec': 'N'
'\ua6ed': 'N'
'\ua6ee': 'N'
'\ua6ef': 'N'
'\ua717': 'L'
'\ua718': 'L'
'\ua719': 'L'
'\ua71a': 'L'
'\ua71b': 'L'
'\ua71c': 'L'
'\ua71d': 'L'
'\ua71e': 'L'
'\ua71f': 'L'
'\ua722': 'Lu'
'\ua723': 'L'
'\ua724': 'Lu'
'\ua725': 'L'
'\ua726': 'Lu'
'\ua727': 'L'
'\ua728': 'Lu'
'\ua729': 'L'
'\ua72a': 'Lu'
'\ua72b': 'L'
'\ua72c': 'Lu'
'\ua72d': 'L'
'\ua72e': 'Lu'
'\ua72f': 'L'
'\ua730': 'L'
'\ua731': 'L'
'\ua732': 'Lu'
'\ua733': 'L'
'\ua734': 'Lu'
'\ua735': 'L'
'\ua736': 'Lu'
'\ua737': 'L'
'\ua738': 'Lu'
'\ua739': 'L'
'\ua73a': 'Lu'
'\ua73b': 'L'
'\ua73c': 'Lu'
'\ua73d': 'L'
'\ua73e': 'Lu'
'\ua73f': 'L'
'\ua740': 'Lu'
'\ua741': 'L'
'\ua742': 'Lu'
'\ua743': 'L'
'\ua744': 'Lu'
'\ua745': 'L'
'\ua746': 'Lu'
'\ua747': 'L'
'\ua748': 'Lu'
'\ua749': 'L'
'\ua74a': 'Lu'
'\ua74b': 'L'
'\ua74c': 'Lu'
'\ua74d': 'L'
'\ua74e': 'Lu'
'\ua74f': 'L'
'\ua750': 'Lu'
'\ua751': 'L'
'\ua752': 'Lu'
'\ua753': 'L'
'\ua754': 'Lu'
'\ua755': 'L'
'\ua756': 'Lu'
'\ua757': 'L'
'\ua758': 'Lu'
'\ua759': 'L'
'\ua75a': 'Lu'
'\ua75b': 'L'
'\ua75c': 'Lu'
'\ua75d': 'L'
'\ua75e': 'Lu'
'\ua75f': 'L'
'\ua760': 'Lu'
'\ua761': 'L'
'\ua762': 'Lu'
'\ua763': 'L'
'\ua764': 'Lu'
'\ua765': 'L'
'\ua766': 'Lu'
'\ua767': 'L'
'\ua768': 'Lu'
'\ua769': 'L'
'\ua76a': 'Lu'
'\ua76b': 'L'
'\ua76c': 'Lu'
'\ua76d': 'L'
'\ua76e': 'Lu'
'\ua76f': 'L'
'\ua770': 'L'
'\ua771': 'L'
'\ua772': 'L'
'\ua773': 'L'
'\ua774': 'L'
'\ua775': 'L'
'\ua776': 'L'
'\ua777': 'L'
'\ua778': 'L'
'\ua779': 'Lu'
'\ua77a': 'L'
'\ua77b': 'Lu'
'\ua77c': 'L'
'\ua77d': 'Lu'
'\ua77e': 'Lu'
'\ua77f': 'L'
'\ua780': 'Lu'
'\ua781': 'L'
'\ua782': 'Lu'
'\ua783': 'L'
'\ua784': 'Lu'
'\ua785': 'L'
'\ua786': 'Lu'
'\ua787': 'L'
'\ua788': 'L'
'\ua78b': 'Lu'
'\ua78c': 'L'
'\ua78d': 'Lu'
'\ua78e': 'L'
'\ua78f': 'L'
'\ua790': 'Lu'
'\ua791': 'L'
'\ua792': 'Lu'
'\ua793': 'L'
'\ua794': 'L'
'\ua795': 'L'
'\ua796': 'Lu'
'\ua797': 'L'
'\ua798': 'Lu'
'\ua799': 'L'
'\ua79a': 'Lu'
'\ua79b': 'L'
'\ua79c': 'Lu'
'\ua79d': 'L'
'\ua79e': 'Lu'
'\ua79f': 'L'
'\ua7a0': 'Lu'
'\ua7a1': 'L'
'\ua7a2': 'Lu'
'\ua7a3': 'L'
'\ua7a4': 'Lu'
'\ua7a5': 'L'
'\ua7a6': 'Lu'
'\ua7a7': 'L'
'\ua7a8': 'Lu'
'\ua7a9': 'L'
'\ua7aa': 'Lu'
'\ua7ab': 'Lu'
'\ua7ac': 'Lu'
'\ua7ad': 'Lu'
'\ua7b0': 'Lu'
'\ua7b1': 'Lu'
'\ua7b2': 'Lu'
'\ua7b3': 'Lu'
'\ua7b4': 'Lu'
'\ua7b5': 'L'
'\ua7b6': 'Lu'
'\ua7b7': 'L'
'\ua7f7': 'L'
'\ua7f8': 'L'
'\ua7f9': 'L'
'\ua7fa': 'L'
'\ua7fb': 'L'
'\ua7fc': 'L'
'\ua7fd': 'L'
'\ua7fe': 'L'
'\ua7ff': 'L'
'\ua800': 'L'
'\ua801': 'L'
'\ua803': 'L'
'\ua804': 'L'
'\ua805': 'L'
'\ua807': 'L'
'\ua808': 'L'
'\ua809': 'L'
'\ua80a': 'L'
'\ua80c': 'L'
'\ua80d': 'L'
'\ua80e': 'L'
'\ua80f': 'L'
'\ua810': 'L'
'\ua811': 'L'
'\ua812': 'L'
'\ua813': 'L'
'\ua814': 'L'
'\ua815': 'L'
'\ua816': 'L'
'\ua817': 'L'
'\ua818': 'L'
'\ua819': 'L'
'\ua81a': 'L'
'\ua81b': 'L'
'\ua81c': 'L'
'\ua81d': 'L'
'\ua81e': 'L'
'\ua81f': 'L'
'\ua820': 'L'
'\ua821': 'L'
'\ua822': 'L'
'\ua830': 'N'
'\ua831': 'N'
'\ua832': 'N'
'\ua833': 'N'
'\ua834': 'N'
'\ua835': 'N'
'\ua840': 'L'
'\ua841': 'L'
'\ua842': 'L'
'\ua843': 'L'
'\ua844': 'L'
'\ua845': 'L'
'\ua846': 'L'
'\ua847': 'L'
'\ua848': 'L'
'\ua849': 'L'
'\ua84a': 'L'
'\ua84b': 'L'
'\ua84c': 'L'
'\ua84d': 'L'
'\ua84e': 'L'
'\ua84f': 'L'
'\ua850': 'L'
'\ua851': 'L'
'\ua852': 'L'
'\ua853': 'L'
'\ua854': 'L'
'\ua855': 'L'
'\ua856': 'L'
'\ua857': 'L'
'\ua858': 'L'
'\ua859': 'L'
'\ua85a': 'L'
'\ua85b': 'L'
'\ua85c': 'L'
'\ua85d': 'L'
'\ua85e': 'L'
'\ua85f': 'L'
'\ua860': 'L'
'\ua861': 'L'
'\ua862': 'L'
'\ua863': 'L'
'\ua864': 'L'
'\ua865': 'L'
'\ua866': 'L'
'\ua867': 'L'
'\ua868': 'L'
'\ua869': 'L'
'\ua86a': 'L'
'\ua86b': 'L'
'\ua86c': 'L'
'\ua86d': 'L'
'\ua86e': 'L'
'\ua86f': 'L'
'\ua870': 'L'
'\ua871': 'L'
'\ua872': 'L'
'\ua873': 'L'
'\ua882': 'L'
'\ua883': 'L'
'\ua884': 'L'
'\ua885': 'L'
'\ua886': 'L'
'\ua887': 'L'
'\ua888': 'L'
'\ua889': 'L'
'\ua88a': 'L'
'\ua88b': 'L'
'\ua88c': 'L'
'\ua88d': 'L'
'\ua88e': 'L'
'\ua88f': 'L'
'\ua890': 'L'
'\ua891': 'L'
'\ua892': 'L'
'\ua893': 'L'
'\ua894': 'L'
'\ua895': 'L'
'\ua896': 'L'
'\ua897': 'L'
'\ua898': 'L'
'\ua899': 'L'
'\ua89a': 'L'
'\ua89b': 'L'
'\ua89c': 'L'
'\ua89d': 'L'
'\ua89e': 'L'
'\ua89f': 'L'
'\ua8a0': 'L'
'\ua8a1': 'L'
'\ua8a2': 'L'
'\ua8a3': 'L'
'\ua8a4': 'L'
'\ua8a5': 'L'
'\ua8a6': 'L'
'\ua8a7': 'L'
'\ua8a8': 'L'
'\ua8a9': 'L'
'\ua8aa': 'L'
'\ua8ab': 'L'
'\ua8ac': 'L'
'\ua8ad': 'L'
'\ua8ae': 'L'
'\ua8af': 'L'
'\ua8b0': 'L'
'\ua8b1': 'L'
'\ua8b2': 'L'
'\ua8b3': 'L'
'\ua8d0': 'N'
'\ua8d1': 'N'
'\ua8d2': 'N'
'\ua8d3': 'N'
'\ua8d4': 'N'
'\ua8d5': 'N'
'\ua8d6': 'N'
'\ua8d7': 'N'
'\ua8d8': 'N'
'\ua8d9': 'N'
'\ua8f2': 'L'
'\ua8f3': 'L'
'\ua8f4': 'L'
'\ua8f5': 'L'
'\ua8f6': 'L'
'\ua8f7': 'L'
'\ua8fb': 'L'
'\ua8fd': 'L'
'\ua900': 'N'
'\ua901': 'N'
'\ua902': 'N'
'\ua903': 'N'
'\ua904': 'N'
'\ua905': 'N'
'\ua906': 'N'
'\ua907': 'N'
'\ua908': 'N'
'\ua909': 'N'
'\ua90a': 'L'
'\ua90b': 'L'
'\ua90c': 'L'
'\ua90d': 'L'
'\ua90e': 'L'
'\ua90f': 'L'
'\ua910': 'L'
'\ua911': 'L'
'\ua912': 'L'
'\ua913': 'L'
'\ua914': 'L'
'\ua915': 'L'
'\ua916': 'L'
'\ua917': 'L'
'\ua918': 'L'
'\ua919': 'L'
'\ua91a': 'L'
'\ua91b': 'L'
'\ua91c': 'L'
'\ua91d': 'L'
'\ua91e': 'L'
'\ua91f': 'L'
'\ua920': 'L'
'\ua921': 'L'
'\ua922': 'L'
'\ua923': 'L'
'\ua924': 'L'
'\ua925': 'L'
'\ua930': 'L'
'\ua931': 'L'
'\ua932': 'L'
'\ua933': 'L'
'\ua934': 'L'
'\ua935': 'L'
'\ua936': 'L'
'\ua937': 'L'
'\ua938': 'L'
'\ua939': 'L'
'\ua93a': 'L'
'\ua93b': 'L'
'\ua93c': 'L'
'\ua93d': 'L'
'\ua93e': 'L'
'\ua93f': 'L'
'\ua940': 'L'
'\ua941': 'L'
'\ua942': 'L'
'\ua943': 'L'
'\ua944': 'L'
'\ua945': 'L'
'\ua946': 'L'
'\ua960': 'L'
'\ua961': 'L'
'\ua962': 'L'
'\ua963': 'L'
'\ua964': 'L'
'\ua965': 'L'
'\ua966': 'L'
'\ua967': 'L'
'\ua968': 'L'
'\ua969': 'L'
'\ua96a': 'L'
'\ua96b': 'L'
'\ua96c': 'L'
'\ua96d': 'L'
'\ua96e': 'L'
'\ua96f': 'L'
'\ua970': 'L'
'\ua971': 'L'
'\ua972': 'L'
'\ua973': 'L'
'\ua974': 'L'
'\ua975': 'L'
'\ua976': 'L'
'\ua977': 'L'
'\ua978': 'L'
'\ua979': 'L'
'\ua97a': 'L'
'\ua97b': 'L'
'\ua97c': 'L'
'\ua984': 'L'
'\ua985': 'L'
'\ua986': 'L'
'\ua987': 'L'
'\ua988': 'L'
'\ua989': 'L'
'\ua98a': 'L'
'\ua98b': 'L'
'\ua98c': 'L'
'\ua98d': 'L'
'\ua98e': 'L'
'\ua98f': 'L'
'\ua990': 'L'
'\ua991': 'L'
'\ua992': 'L'
'\ua993': 'L'
'\ua994': 'L'
'\ua995': 'L'
'\ua996': 'L'
'\ua997': 'L'
'\ua998': 'L'
'\ua999': 'L'
'\ua99a': 'L'
'\ua99b': 'L'
'\ua99c': 'L'
'\ua99d': 'L'
'\ua99e': 'L'
'\ua99f': 'L'
'\ua9a0': 'L'
'\ua9a1': 'L'
'\ua9a2': 'L'
'\ua9a3': 'L'
'\ua9a4': 'L'
'\ua9a5': 'L'
'\ua9a6': 'L'
'\ua9a7': 'L'
'\ua9a8': 'L'
'\ua9a9': 'L'
'\ua9aa': 'L'
'\ua9ab': 'L'
'\ua9ac': 'L'
'\ua9ad': 'L'
'\ua9ae': 'L'
'\ua9af': 'L'
'\ua9b0': 'L'
'\ua9b1': 'L'
'\ua9b2': 'L'
'\ua9cf': 'L'
'\ua9d0': 'N'
'\ua9d1': 'N'
'\ua9d2': 'N'
'\ua9d3': 'N'
'\ua9d4': 'N'
'\ua9d5': 'N'
'\ua9d6': 'N'
'\ua9d7': 'N'
'\ua9d8': 'N'
'\ua9d9': 'N'
'\ua9e0': 'L'
'\ua9e1': 'L'
'\ua9e2': 'L'
'\ua9e3': 'L'
'\ua9e4': 'L'
'\ua9e6': 'L'
'\ua9e7': 'L'
'\ua9e8': 'L'
'\ua9e9': 'L'
'\ua9ea': 'L'
'\ua9eb': 'L'
'\ua9ec': 'L'
'\ua9ed': 'L'
'\ua9ee': 'L'
'\ua9ef': 'L'
'\ua9f0': 'N'
'\ua9f1': 'N'
'\ua9f2': 'N'
'\ua9f3': 'N'
'\ua9f4': 'N'
'\ua9f5': 'N'
'\ua9f6': 'N'
'\ua9f7': 'N'
'\ua9f8': 'N'
'\ua9f9': 'N'
'\ua9fa': 'L'
'\ua9fb': 'L'
'\ua9fc': 'L'
'\ua9fd': 'L'
'\ua9fe': 'L'
'\uaa00': 'L'
'\uaa01': 'L'
'\uaa02': 'L'
'\uaa03': 'L'
'\uaa04': 'L'
'\uaa05': 'L'
'\uaa06': 'L'
'\uaa07': 'L'
'\uaa08': 'L'
'\uaa09': 'L'
'\uaa0a': 'L'
'\uaa0b': 'L'
'\uaa0c': 'L'
'\uaa0d': 'L'
'\uaa0e': 'L'
'\uaa0f': 'L'
'\uaa10': 'L'
'\uaa11': 'L'
'\uaa12': 'L'
'\uaa13': 'L'
'\uaa14': 'L'
'\uaa15': 'L'
'\uaa16': 'L'
'\uaa17': 'L'
'\uaa18': 'L'
'\uaa19': 'L'
'\uaa1a': 'L'
'\uaa1b': 'L'
'\uaa1c': 'L'
'\uaa1d': 'L'
'\uaa1e': 'L'
'\uaa1f': 'L'
'\uaa20': 'L'
'\uaa21': 'L'
'\uaa22': 'L'
'\uaa23': 'L'
'\uaa24': 'L'
'\uaa25': 'L'
'\uaa26': 'L'
'\uaa27': 'L'
'\uaa28': 'L'
'\uaa40': 'L'
'\uaa41': 'L'
'\uaa42': 'L'
'\uaa44': 'L'
'\uaa45': 'L'
'\uaa46': 'L'
'\uaa47': 'L'
'\uaa48': 'L'
'\uaa49': 'L'
'\uaa4a': 'L'
'\uaa4b': 'L'
'\uaa50': 'N'
'\uaa51': 'N'
'\uaa52': 'N'
'\uaa53': 'N'
'\uaa54': 'N'
'\uaa55': 'N'
'\uaa56': 'N'
'\uaa57': 'N'
'\uaa58': 'N'
'\uaa59': 'N'
'\uaa60': 'L'
'\uaa61': 'L'
'\uaa62': 'L'
'\uaa63': 'L'
'\uaa64': 'L'
'\uaa65': 'L'
'\uaa66': 'L'
'\uaa67': 'L'
'\uaa68': 'L'
'\uaa69': 'L'
'\uaa6a': 'L'
'\uaa6b': 'L'
'\uaa6c': 'L'
'\uaa6d': 'L'
'\uaa6e': 'L'
'\uaa6f': 'L'
'\uaa70': 'L'
'\uaa71': 'L'
'\uaa72': 'L'
'\uaa73': 'L'
'\uaa74': 'L'
'\uaa75': 'L'
'\uaa76': 'L'
'\uaa7a': 'L'
'\uaa7e': 'L'
'\uaa7f': 'L'
'\uaa80': 'L'
'\uaa81': 'L'
'\uaa82': 'L'
'\uaa83': 'L'
'\uaa84': 'L'
'\uaa85': 'L'
'\uaa86': 'L'
'\uaa87': 'L'
'\uaa88': 'L'
'\uaa89': 'L'
'\uaa8a': 'L'
'\uaa8b': 'L'
'\uaa8c': 'L'
'\uaa8d': 'L'
'\uaa8e': 'L'
'\uaa8f': 'L'
'\uaa90': 'L'
'\uaa91': 'L'
'\uaa92': 'L'
'\uaa93': 'L'
'\uaa94': 'L'
'\uaa95': 'L'
'\uaa96': 'L'
'\uaa97': 'L'
'\uaa98': 'L'
'\uaa99': 'L'
'\uaa9a': 'L'
'\uaa9b': 'L'
'\uaa9c': 'L'
'\uaa9d': 'L'
'\uaa9e': 'L'
'\uaa9f': 'L'
'\uaaa0': 'L'
'\uaaa1': 'L'
'\uaaa2': 'L'
'\uaaa3': 'L'
'\uaaa4': 'L'
'\uaaa5': 'L'
'\uaaa6': 'L'
'\uaaa7': 'L'
'\uaaa8': 'L'
'\uaaa9': 'L'
'\uaaaa': 'L'
'\uaaab': 'L'
'\uaaac': 'L'
'\uaaad': 'L'
'\uaaae': 'L'
'\uaaaf': 'L'
'\uaab1': 'L'
'\uaab5': 'L'
'\uaab6': 'L'
'\uaab9': 'L'
'\uaaba': 'L'
'\uaabb': 'L'
'\uaabc': 'L'
'\uaabd': 'L'
'\uaac0': 'L'
'\uaac2': 'L'
'\uaadb': 'L'
'\uaadc': 'L'
'\uaadd': 'L'
'\uaae0': 'L'
'\uaae1': 'L'
'\uaae2': 'L'
'\uaae3': 'L'
'\uaae4': 'L'
'\uaae5': 'L'
'\uaae6': 'L'
'\uaae7': 'L'
'\uaae8': 'L'
'\uaae9': 'L'
'\uaaea': 'L'
'\uaaf2': 'L'
'\uaaf3': 'L'
'\uaaf4': 'L'
'\uab01': 'L'
'\uab02': 'L'
'\uab03': 'L'
'\uab04': 'L'
'\uab05': 'L'
'\uab06': 'L'
'\uab09': 'L'
'\uab0a': 'L'
'\uab0b': 'L'
'\uab0c': 'L'
'\uab0d': 'L'
'\uab0e': 'L'
'\uab11': 'L'
'\uab12': 'L'
'\uab13': 'L'
'\uab14': 'L'
'\uab15': 'L'
'\uab16': 'L'
'\uab20': 'L'
'\uab21': 'L'
'\uab22': 'L'
'\uab23': 'L'
'\uab24': 'L'
'\uab25': 'L'
'\uab26': 'L'
'\uab28': 'L'
'\uab29': 'L'
'\uab2a': 'L'
'\uab2b': 'L'
'\uab2c': 'L'
'\uab2d': 'L'
'\uab2e': 'L'
'\uab30': 'L'
'\uab31': 'L'
'\uab32': 'L'
'\uab33': 'L'
'\uab34': 'L'
'\uab35': 'L'
'\uab36': 'L'
'\uab37': 'L'
'\uab38': 'L'
'\uab39': 'L'
'\uab3a': 'L'
'\uab3b': 'L'
'\uab3c': 'L'
'\uab3d': 'L'
'\uab3e': 'L'
'\uab3f': 'L'
'\uab40': 'L'
'\uab41': 'L'
'\uab42': 'L'
'\uab43': 'L'
'\uab44': 'L'
'\uab45': 'L'
'\uab46': 'L'
'\uab47': 'L'
'\uab48': 'L'
'\uab49': 'L'
'\uab4a': 'L'
'\uab4b': 'L'
'\uab4c': 'L'
'\uab4d': 'L'
'\uab4e': 'L'
'\uab4f': 'L'
'\uab50': 'L'
'\uab51': 'L'
'\uab52': 'L'
'\uab53': 'L'
'\uab54': 'L'
'\uab55': 'L'
'\uab56': 'L'
'\uab57': 'L'
'\uab58': 'L'
'\uab59': 'L'
'\uab5a': 'L'
'\uab5c': 'L'
'\uab5d': 'L'
'\uab5e': 'L'
'\uab5f': 'L'
'\uab60': 'L'
'\uab61': 'L'
'\uab62': 'L'
'\uab63': 'L'
'\uab64': 'L'
'\uab65': 'L'
'\uab70': 'L'
'\uab71': 'L'
'\uab72': 'L'
'\uab73': 'L'
'\uab74': 'L'
'\uab75': 'L'
'\uab76': 'L'
'\uab77': 'L'
'\uab78': 'L'
'\uab79': 'L'
'\uab7a': 'L'
'\uab7b': 'L'
'\uab7c': 'L'
'\uab7d': 'L'
'\uab7e': 'L'
'\uab7f': 'L'
'\uab80': 'L'
'\uab81': 'L'
'\uab82': 'L'
'\uab83': 'L'
'\uab84': 'L'
'\uab85': 'L'
'\uab86': 'L'
'\uab87': 'L'
'\uab88': 'L'
'\uab89': 'L'
'\uab8a': 'L'
'\uab8b': 'L'
'\uab8c': 'L'
'\uab8d': 'L'
'\uab8e': 'L'
'\uab8f': 'L'
'\uab90': 'L'
'\uab91': 'L'
'\uab92': 'L'
'\uab93': 'L'
'\uab94': 'L'
'\uab95': 'L'
'\uab96': 'L'
'\uab97': 'L'
'\uab98': 'L'
'\uab99': 'L'
'\uab9a': 'L'
'\uab9b': 'L'
'\uab9c': 'L'
'\uab9d': 'L'
'\uab9e': 'L'
'\uab9f': 'L'
'\uaba0': 'L'
'\uaba1': 'L'
'\uaba2': 'L'
'\uaba3': 'L'
'\uaba4': 'L'
'\uaba5': 'L'
'\uaba6': 'L'
'\uaba7': 'L'
'\uaba8': 'L'
'\uaba9': 'L'
'\uabaa': 'L'
'\uabab': 'L'
'\uabac': 'L'
'\uabad': 'L'
'\uabae': 'L'
'\uabaf': 'L'
'\uabb0': 'L'
'\uabb1': 'L'
'\uabb2': 'L'
'\uabb3': 'L'
'\uabb4': 'L'
'\uabb5': 'L'
'\uabb6': 'L'
'\uabb7': 'L'
'\uabb8': 'L'
'\uabb9': 'L'
'\uabba': 'L'
'\uabbb': 'L'
'\uabbc': 'L'
'\uabbd': 'L'
'\uabbe': 'L'
'\uabbf': 'L'
'\uabc0': 'L'
'\uabc1': 'L'
'\uabc2': 'L'
'\uabc3': 'L'
'\uabc4': 'L'
'\uabc5': 'L'
'\uabc6': 'L'
'\uabc7': 'L'
'\uabc8': 'L'
'\uabc9': 'L'
'\uabca': 'L'
'\uabcb': 'L'
'\uabcc': 'L'
'\uabcd': 'L'
'\uabce': 'L'
'\uabcf': 'L'
'\uabd0': 'L'
'\uabd1': 'L'
'\uabd2': 'L'
'\uabd3': 'L'
'\uabd4': 'L'
'\uabd5': 'L'
'\uabd6': 'L'
'\uabd7': 'L'
'\uabd8': 'L'
'\uabd9': 'L'
'\uabda': 'L'
'\uabdb': 'L'
'\uabdc': 'L'
'\uabdd': 'L'
'\uabde': 'L'
'\uabdf': 'L'
'\uabe0': 'L'
'\uabe1': 'L'
'\uabe2': 'L'
'\uabf0': 'N'
'\uabf1': 'N'
'\uabf2': 'N'
'\uabf3': 'N'
'\uabf4': 'N'
'\uabf5': 'N'
'\uabf6': 'N'
'\uabf7': 'N'
'\uabf8': 'N'
'\uabf9': 'N'
'\ud7b0': 'L'
'\ud7b1': 'L'
'\ud7b2': 'L'
'\ud7b3': 'L'
'\ud7b4': 'L'
'\ud7b5': 'L'
'\ud7b6': 'L'
'\ud7b7': 'L'
'\ud7b8': 'L'
'\ud7b9': 'L'
'\ud7ba': 'L'
'\ud7bb': 'L'
'\ud7bc': 'L'
'\ud7bd': 'L'
'\ud7be': 'L'
'\ud7bf': 'L'
'\ud7c0': 'L'
'\ud7c1': 'L'
'\ud7c2': 'L'
'\ud7c3': 'L'
'\ud7c4': 'L'
'\ud7c5': 'L'
'\ud7c6': 'L'
'\ud7cb': 'L'
'\ud7cc': 'L'
'\ud7cd': 'L'
'\ud7ce': 'L'
'\ud7cf': 'L'
'\ud7d0': 'L'
'\ud7d1': 'L'
'\ud7d2': 'L'
'\ud7d3': 'L'
'\ud7d4': 'L'
'\ud7d5': 'L'
'\ud7d6': 'L'
'\ud7d7': 'L'
'\ud7d8': 'L'
'\ud7d9': 'L'
'\ud7da': 'L'
'\ud7db': 'L'
'\ud7dc': 'L'
'\ud7dd': 'L'
'\ud7de': 'L'
'\ud7df': 'L'
'\ud7e0': 'L'
'\ud7e1': 'L'
'\ud7e2': 'L'
'\ud7e3': 'L'
'\ud7e4': 'L'
'\ud7e5': 'L'
'\ud7e6': 'L'
'\ud7e7': 'L'
'\ud7e8': 'L'
'\ud7e9': 'L'
'\ud7ea': 'L'
'\ud7eb': 'L'
'\ud7ec': 'L'
'\ud7ed': 'L'
'\ud7ee': 'L'
'\ud7ef': 'L'
'\ud7f0': 'L'
'\ud7f1': 'L'
'\ud7f2': 'L'
'\ud7f3': 'L'
'\ud7f4': 'L'
'\ud7f5': 'L'
'\ud7f6': 'L'
'\ud7f7': 'L'
'\ud7f8': 'L'
'\ud7f9': 'L'
'\ud7fa': 'L'
'\ud7fb': 'L'
'\uf900': 'L'
'\uf901': 'L'
'\uf902': 'L'
'\uf903': 'L'
'\uf904': 'L'
'\uf905': 'L'
'\uf906': 'L'
'\uf907': 'L'
'\uf908': 'L'
'\uf909': 'L'
'\uf90a': 'L'
'\uf90b': 'L'
'\uf90c': 'L'
'\uf90d': 'L'
'\uf90e': 'L'
'\uf90f': 'L'
'\uf910': 'L'
'\uf911': 'L'
'\uf912': 'L'
'\uf913': 'L'
'\uf914': 'L'
'\uf915': 'L'
'\uf916': 'L'
'\uf917': 'L'
'\uf918': 'L'
'\uf919': 'L'
'\uf91a': 'L'
'\uf91b': 'L'
'\uf91c': 'L'
'\uf91d': 'L'
'\uf91e': 'L'
'\uf91f': 'L'
'\uf920': 'L'
'\uf921': 'L'
'\uf922': 'L'
'\uf923': 'L'
'\uf924': 'L'
'\uf925': 'L'
'\uf926': 'L'
'\uf927': 'L'
'\uf928': 'L'
'\uf929': 'L'
'\uf92a': 'L'
'\uf92b': 'L'
'\uf92c': 'L'
'\uf92d': 'L'
'\uf92e': 'L'
'\uf92f': 'L'
'\uf930': 'L'
'\uf931': 'L'
'\uf932': 'L'
'\uf933': 'L'
'\uf934': 'L'
'\uf935': 'L'
'\uf936': 'L'
'\uf937': 'L'
'\uf938': 'L'
'\uf939': 'L'
'\uf93a': 'L'
'\uf93b': 'L'
'\uf93c': 'L'
'\uf93d': 'L'
'\uf93e': 'L'
'\uf93f': 'L'
'\uf940': 'L'
'\uf941': 'L'
'\uf942': 'L'
'\uf943': 'L'
'\uf944': 'L'
'\uf945': 'L'
'\uf946': 'L'
'\uf947': 'L'
'\uf948': 'L'
'\uf949': 'L'
'\uf94a': 'L'
'\uf94b': 'L'
'\uf94c': 'L'
'\uf94d': 'L'
'\uf94e': 'L'
'\uf94f': 'L'
'\uf950': 'L'
'\uf951': 'L'
'\uf952': 'L'
'\uf953': 'L'
'\uf954': 'L'
'\uf955': 'L'
'\uf956': 'L'
'\uf957': 'L'
'\uf958': 'L'
'\uf959': 'L'
'\uf95a': 'L'
'\uf95b': 'L'
'\uf95c': 'L'
'\uf95d': 'L'
'\uf95e': 'L'
'\uf95f': 'L'
'\uf960': 'L'
'\uf961': 'L'
'\uf962': 'L'
'\uf963': 'L'
'\uf964': 'L'
'\uf965': 'L'
'\uf966': 'L'
'\uf967': 'L'
'\uf968': 'L'
'\uf969': 'L'
'\uf96a': 'L'
'\uf96b': 'L'
'\uf96c': 'L'
'\uf96d': 'L'
'\uf96e': 'L'
'\uf96f': 'L'
'\uf970': 'L'
'\uf971': 'L'
'\uf972': 'L'
'\uf973': 'L'
'\uf974': 'L'
'\uf975': 'L'
'\uf976': 'L'
'\uf977': 'L'
'\uf978': 'L'
'\uf979': 'L'
'\uf97a': 'L'
'\uf97b': 'L'
'\uf97c': 'L'
'\uf97d': 'L'
'\uf97e': 'L'
'\uf97f': 'L'
'\uf980': 'L'
'\uf981': 'L'
'\uf982': 'L'
'\uf983': 'L'
'\uf984': 'L'
'\uf985': 'L'
'\uf986': 'L'
'\uf987': 'L'
'\uf988': 'L'
'\uf989': 'L'
'\uf98a': 'L'
'\uf98b': 'L'
'\uf98c': 'L'
'\uf98d': 'L'
'\uf98e': 'L'
'\uf98f': 'L'
'\uf990': 'L'
'\uf991': 'L'
'\uf992': 'L'
'\uf993': 'L'
'\uf994': 'L'
'\uf995': 'L'
'\uf996': 'L'
'\uf997': 'L'
'\uf998': 'L'
'\uf999': 'L'
'\uf99a': 'L'
'\uf99b': 'L'
'\uf99c': 'L'
'\uf99d': 'L'
'\uf99e': 'L'
'\uf99f': 'L'
'\uf9a0': 'L'
'\uf9a1': 'L'
'\uf9a2': 'L'
'\uf9a3': 'L'
'\uf9a4': 'L'
'\uf9a5': 'L'
'\uf9a6': 'L'
'\uf9a7': 'L'
'\uf9a8': 'L'
'\uf9a9': 'L'
'\uf9aa': 'L'
'\uf9ab': 'L'
'\uf9ac': 'L'
'\uf9ad': 'L'
'\uf9ae': 'L'
'\uf9af': 'L'
'\uf9b0': 'L'
'\uf9b1': 'L'
'\uf9b2': 'L'
'\uf9b3': 'L'
'\uf9b4': 'L'
'\uf9b5': 'L'
'\uf9b6': 'L'
'\uf9b7': 'L'
'\uf9b8': 'L'
'\uf9b9': 'L'
'\uf9ba': 'L'
'\uf9bb': 'L'
'\uf9bc': 'L'
'\uf9bd': 'L'
'\uf9be': 'L'
'\uf9bf': 'L'
'\uf9c0': 'L'
'\uf9c1': 'L'
'\uf9c2': 'L'
'\uf9c3': 'L'
'\uf9c4': 'L'
'\uf9c5': 'L'
'\uf9c6': 'L'
'\uf9c7': 'L'
'\uf9c8': 'L'
'\uf9c9': 'L'
'\uf9ca': 'L'
'\uf9cb': 'L'
'\uf9cc': 'L'
'\uf9cd': 'L'
'\uf9ce': 'L'
'\uf9cf': 'L'
'\uf9d0': 'L'
'\uf9d1': 'L'
'\uf9d2': 'L'
'\uf9d3': 'L'
'\uf9d4': 'L'
'\uf9d5': 'L'
'\uf9d6': 'L'
'\uf9d7': 'L'
'\uf9d8': 'L'
'\uf9d9': 'L'
'\uf9da': 'L'
'\uf9db': 'L'
'\uf9dc': 'L'
'\uf9dd': 'L'
'\uf9de': 'L'
'\uf9df': 'L'
'\uf9e0': 'L'
'\uf9e1': 'L'
'\uf9e2': 'L'
'\uf9e3': 'L'
'\uf9e4': 'L'
'\uf9e5': 'L'
'\uf9e6': 'L'
'\uf9e7': 'L'
'\uf9e8': 'L'
'\uf9e9': 'L'
'\uf9ea': 'L'
'\uf9eb': 'L'
'\uf9ec': 'L'
'\uf9ed': 'L'
'\uf9ee': 'L'
'\uf9ef': 'L'
'\uf9f0': 'L'
'\uf9f1': 'L'
'\uf9f2': 'L'
'\uf9f3': 'L'
'\uf9f4': 'L'
'\uf9f5': 'L'
'\uf9f6': 'L'
'\uf9f7': 'L'
'\uf9f8': 'L'
'\uf9f9': 'L'
'\uf9fa': 'L'
'\uf9fb': 'L'
'\uf9fc': 'L'
'\uf9fd': 'L'
'\uf9fe': 'L'
'\uf9ff': 'L'
'\ufa00': 'L'
'\ufa01': 'L'
'\ufa02': 'L'
'\ufa03': 'L'
'\ufa04': 'L'
'\ufa05': 'L'
'\ufa06': 'L'
'\ufa07': 'L'
'\ufa08': 'L'
'\ufa09': 'L'
'\ufa0a': 'L'
'\ufa0b': 'L'
'\ufa0c': 'L'
'\ufa0d': 'L'
'\ufa0e': 'L'
'\ufa0f': 'L'
'\ufa10': 'L'
'\ufa11': 'L'
'\ufa12': 'L'
'\ufa13': 'L'
'\ufa14': 'L'
'\ufa15': 'L'
'\ufa16': 'L'
'\ufa17': 'L'
'\ufa18': 'L'
'\ufa19': 'L'
'\ufa1a': 'L'
'\ufa1b': 'L'
'\ufa1c': 'L'
'\ufa1d': 'L'
'\ufa1e': 'L'
'\ufa1f': 'L'
'\ufa20': 'L'
'\ufa21': 'L'
'\ufa22': 'L'
'\ufa23': 'L'
'\ufa24': 'L'
'\ufa25': 'L'
'\ufa26': 'L'
'\ufa27': 'L'
'\ufa28': 'L'
'\ufa29': 'L'
'\ufa2a': 'L'
'\ufa2b': 'L'
'\ufa2c': 'L'
'\ufa2d': 'L'
'\ufa2e': 'L'
'\ufa2f': 'L'
'\ufa30': 'L'
'\ufa31': 'L'
'\ufa32': 'L'
'\ufa33': 'L'
'\ufa34': 'L'
'\ufa35': 'L'
'\ufa36': 'L'
'\ufa37': 'L'
'\ufa38': 'L'
'\ufa39': 'L'
'\ufa3a': 'L'
'\ufa3b': 'L'
'\ufa3c': 'L'
'\ufa3d': 'L'
'\ufa3e': 'L'
'\ufa3f': 'L'
'\ufa40': 'L'
'\ufa41': 'L'
'\ufa42': 'L'
'\ufa43': 'L'
'\ufa44': 'L'
'\ufa45': 'L'
'\ufa46': 'L'
'\ufa47': 'L'
'\ufa48': 'L'
'\ufa49': 'L'
'\ufa4a': 'L'
'\ufa4b': 'L'
'\ufa4c': 'L'
'\ufa4d': 'L'
'\ufa4e': 'L'
'\ufa4f': 'L'
'\ufa50': 'L'
'\ufa51': 'L'
'\ufa52': 'L'
'\ufa53': 'L'
'\ufa54': 'L'
'\ufa55': 'L'
'\ufa56': 'L'
'\ufa57': 'L'
'\ufa58': 'L'
'\ufa59': 'L'
'\ufa5a': 'L'
'\ufa5b': 'L'
'\ufa5c': 'L'
'\ufa5d': 'L'
'\ufa5e': 'L'
'\ufa5f': 'L'
'\ufa60': 'L'
'\ufa61': 'L'
'\ufa62': 'L'
'\ufa63': 'L'
'\ufa64': 'L'
'\ufa65': 'L'
'\ufa66': 'L'
'\ufa67': 'L'
'\ufa68': 'L'
'\ufa69': 'L'
'\ufa6a': 'L'
'\ufa6b': 'L'
'\ufa6c': 'L'
'\ufa6d': 'L'
'\ufa70': 'L'
'\ufa71': 'L'
'\ufa72': 'L'
'\ufa73': 'L'
'\ufa74': 'L'
'\ufa75': 'L'
'\ufa76': 'L'
'\ufa77': 'L'
'\ufa78': 'L'
'\ufa79': 'L'
'\ufa7a': 'L'
'\ufa7b': 'L'
'\ufa7c': 'L'
'\ufa7d': 'L'
'\ufa7e': 'L'
'\ufa7f': 'L'
'\ufa80': 'L'
'\ufa81': 'L'
'\ufa82': 'L'
'\ufa83': 'L'
'\ufa84': 'L'
'\ufa85': 'L'
'\ufa86': 'L'
'\ufa87': 'L'
'\ufa88': 'L'
'\ufa89': 'L'
'\ufa8a': 'L'
'\ufa8b': 'L'
'\ufa8c': 'L'
'\ufa8d': 'L'
'\ufa8e': 'L'
'\ufa8f': 'L'
'\ufa90': 'L'
'\ufa91': 'L'
'\ufa92': 'L'
'\ufa93': 'L'
'\ufa94': 'L'
'\ufa95': 'L'
'\ufa96': 'L'
'\ufa97': 'L'
'\ufa98': 'L'
'\ufa99': 'L'
'\ufa9a': 'L'
'\ufa9b': 'L'
'\ufa9c': 'L'
'\ufa9d': 'L'
'\ufa9e': 'L'
'\ufa9f': 'L'
'\ufaa0': 'L'
'\ufaa1': 'L'
'\ufaa2': 'L'
'\ufaa3': 'L'
'\ufaa4': 'L'
'\ufaa5': 'L'
'\ufaa6': 'L'
'\ufaa7': 'L'
'\ufaa8': 'L'
'\ufaa9': 'L'
'\ufaaa': 'L'
'\ufaab': 'L'
'\ufaac': 'L'
'\ufaad': 'L'
'\ufaae': 'L'
'\ufaaf': 'L'
'\ufab0': 'L'
'\ufab1': 'L'
'\ufab2': 'L'
'\ufab3': 'L'
'\ufab4': 'L'
'\ufab5': 'L'
'\ufab6': 'L'
'\ufab7': 'L'
'\ufab8': 'L'
'\ufab9': 'L'
'\ufaba': 'L'
'\ufabb': 'L'
'\ufabc': 'L'
'\ufabd': 'L'
'\ufabe': 'L'
'\ufabf': 'L'
'\ufac0': 'L'
'\ufac1': 'L'
'\ufac2': 'L'
'\ufac3': 'L'
'\ufac4': 'L'
'\ufac5': 'L'
'\ufac6': 'L'
'\ufac7': 'L'
'\ufac8': 'L'
'\ufac9': 'L'
'\ufaca': 'L'
'\ufacb': 'L'
'\ufacc': 'L'
'\ufacd': 'L'
'\uface': 'L'
'\ufacf': 'L'
'\ufad0': 'L'
'\ufad1': 'L'
'\ufad2': 'L'
'\ufad3': 'L'
'\ufad4': 'L'
'\ufad5': 'L'
'\ufad6': 'L'
'\ufad7': 'L'
'\ufad8': 'L'
'\ufad9': 'L'
'\ufb00': 'L'
'\ufb01': 'L'
'\ufb02': 'L'
'\ufb03': 'L'
'\ufb04': 'L'
'\ufb05': 'L'
'\ufb06': 'L'
'\ufb13': 'L'
'\ufb14': 'L'
'\ufb15': 'L'
'\ufb16': 'L'
'\ufb17': 'L'
'\ufb1d': 'L'
'\ufb1f': 'L'
'\ufb20': 'L'
'\ufb21': 'L'
'\ufb22': 'L'
'\ufb23': 'L'
'\ufb24': 'L'
'\ufb25': 'L'
'\ufb26': 'L'
'\ufb27': 'L'
'\ufb28': 'L'
'\ufb2a': 'L'
'\ufb2b': 'L'
'\ufb2c': 'L'
'\ufb2d': 'L'
'\ufb2e': 'L'
'\ufb2f': 'L'
'\ufb30': 'L'
'\ufb31': 'L'
'\ufb32': 'L'
'\ufb33': 'L'
'\ufb34': 'L'
'\ufb35': 'L'
'\ufb36': 'L'
'\ufb38': 'L'
'\ufb39': 'L'
'\ufb3a': 'L'
'\ufb3b': 'L'
'\ufb3c': 'L'
'\ufb3e': 'L'
'\ufb40': 'L'
'\ufb41': 'L'
'\ufb43': 'L'
'\ufb44': 'L'
'\ufb46': 'L'
'\ufb47': 'L'
'\ufb48': 'L'
'\ufb49': 'L'
'\ufb4a': 'L'
'\ufb4b': 'L'
'\ufb4c': 'L'
'\ufb4d': 'L'
'\ufb4e': 'L'
'\ufb4f': 'L'
'\ufb50': 'L'
'\ufb51': 'L'
'\ufb52': 'L'
'\ufb53': 'L'
'\ufb54': 'L'
'\ufb55': 'L'
'\ufb56': 'L'
'\ufb57': 'L'
'\ufb58': 'L'
'\ufb59': 'L'
'\ufb5a': 'L'
'\ufb5b': 'L'
'\ufb5c': 'L'
'\ufb5d': 'L'
'\ufb5e': 'L'
'\ufb5f': 'L'
'\ufb60': 'L'
'\ufb61': 'L'
'\ufb62': 'L'
'\ufb63': 'L'
'\ufb64': 'L'
'\ufb65': 'L'
'\ufb66': 'L'
'\ufb67': 'L'
'\ufb68': 'L'
'\ufb69': 'L'
'\ufb6a': 'L'
'\ufb6b': 'L'
'\ufb6c': 'L'
'\ufb6d': 'L'
'\ufb6e': 'L'
'\ufb6f': 'L'
'\ufb70': 'L'
'\ufb71': 'L'
'\ufb72': 'L'
'\ufb73': 'L'
'\ufb74': 'L'
'\ufb75': 'L'
'\ufb76': 'L'
'\ufb77': 'L'
'\ufb78': 'L'
'\ufb79': 'L'
'\ufb7a': 'L'
'\ufb7b': 'L'
'\ufb7c': 'L'
'\ufb7d': 'L'
'\ufb7e': 'L'
'\ufb7f': 'L'
'\ufb80': 'L'
'\ufb81': 'L'
'\ufb82': 'L'
'\ufb83': 'L'
'\ufb84': 'L'
'\ufb85': 'L'
'\ufb86': 'L'
'\ufb87': 'L'
'\ufb88': 'L'
'\ufb89': 'L'
'\ufb8a': 'L'
'\ufb8b': 'L'
'\ufb8c': 'L'
'\ufb8d': 'L'
'\ufb8e': 'L'
'\ufb8f': 'L'
'\ufb90': 'L'
'\ufb91': 'L'
'\ufb92': 'L'
'\ufb93': 'L'
'\ufb94': 'L'
'\ufb95': 'L'
'\ufb96': 'L'
'\ufb97': 'L'
'\ufb98': 'L'
'\ufb99': 'L'
'\ufb9a': 'L'
'\ufb9b': 'L'
'\ufb9c': 'L'
'\ufb9d': 'L'
'\ufb9e': 'L'
'\ufb9f': 'L'
'\ufba0': 'L'
'\ufba1': 'L'
'\ufba2': 'L'
'\ufba3': 'L'
'\ufba4': 'L'
'\ufba5': 'L'
'\ufba6': 'L'
'\ufba7': 'L'
'\ufba8': 'L'
'\ufba9': 'L'
'\ufbaa': 'L'
'\ufbab': 'L'
'\ufbac': 'L'
'\ufbad': 'L'
'\ufbae': 'L'
'\ufbaf': 'L'
'\ufbb0': 'L'
'\ufbb1': 'L'
'\ufbd3': 'L'
'\ufbd4': 'L'
'\ufbd5': 'L'
'\ufbd6': 'L'
'\ufbd7': 'L'
'\ufbd8': 'L'
'\ufbd9': 'L'
'\ufbda': 'L'
'\ufbdb': 'L'
'\ufbdc': 'L'
'\ufbdd': 'L'
'\ufbde': 'L'
'\ufbdf': 'L'
'\ufbe0': 'L'
'\ufbe1': 'L'
'\ufbe2': 'L'
'\ufbe3': 'L'
'\ufbe4': 'L'
'\ufbe5': 'L'
'\ufbe6': 'L'
'\ufbe7': 'L'
'\ufbe8': 'L'
'\ufbe9': 'L'
'\ufbea': 'L'
'\ufbeb': 'L'
'\ufbec': 'L'
'\ufbed': 'L'
'\ufbee': 'L'
'\ufbef': 'L'
'\ufbf0': 'L'
'\ufbf1': 'L'
'\ufbf2': 'L'
'\ufbf3': 'L'
'\ufbf4': 'L'
'\ufbf5': 'L'
'\ufbf6': 'L'
'\ufbf7': 'L'
'\ufbf8': 'L'
'\ufbf9': 'L'
'\ufbfa': 'L'
'\ufbfb': 'L'
'\ufbfc': 'L'
'\ufbfd': 'L'
'\ufbfe': 'L'
'\ufbff': 'L'
'\ufc00': 'L'
'\ufc01': 'L'
'\ufc02': 'L'
'\ufc03': 'L'
'\ufc04': 'L'
'\ufc05': 'L'
'\ufc06': 'L'
'\ufc07': 'L'
'\ufc08': 'L'
'\ufc09': 'L'
'\ufc0a': 'L'
'\ufc0b': 'L'
'\ufc0c': 'L'
'\ufc0d': 'L'
'\ufc0e': 'L'
'\ufc0f': 'L'
'\ufc10': 'L'
'\ufc11': 'L'
'\ufc12': 'L'
'\ufc13': 'L'
'\ufc14': 'L'
'\ufc15': 'L'
'\ufc16': 'L'
'\ufc17': 'L'
'\ufc18': 'L'
'\ufc19': 'L'
'\ufc1a': 'L'
'\ufc1b': 'L'
'\ufc1c': 'L'
'\ufc1d': 'L'
'\ufc1e': 'L'
'\ufc1f': 'L'
'\ufc20': 'L'
'\ufc21': 'L'
'\ufc22': 'L'
'\ufc23': 'L'
'\ufc24': 'L'
'\ufc25': 'L'
'\ufc26': 'L'
'\ufc27': 'L'
'\ufc28': 'L'
'\ufc29': 'L'
'\ufc2a': 'L'
'\ufc2b': 'L'
'\ufc2c': 'L'
'\ufc2d': 'L'
'\ufc2e': 'L'
'\ufc2f': 'L'
'\ufc30': 'L'
'\ufc31': 'L'
'\ufc32': 'L'
'\ufc33': 'L'
'\ufc34': 'L'
'\ufc35': 'L'
'\ufc36': 'L'
'\ufc37': 'L'
'\ufc38': 'L'
'\ufc39': 'L'
'\ufc3a': 'L'
'\ufc3b': 'L'
'\ufc3c': 'L'
'\ufc3d': 'L'
'\ufc3e': 'L'
'\ufc3f': 'L'
'\ufc40': 'L'
'\ufc41': 'L'
'\ufc42': 'L'
'\ufc43': 'L'
'\ufc44': 'L'
'\ufc45': 'L'
'\ufc46': 'L'
'\ufc47': 'L'
'\ufc48': 'L'
'\ufc49': 'L'
'\ufc4a': 'L'
'\ufc4b': 'L'
'\ufc4c': 'L'
'\ufc4d': 'L'
'\ufc4e': 'L'
'\ufc4f': 'L'
'\ufc50': 'L'
'\ufc51': 'L'
'\ufc52': 'L'
'\ufc53': 'L'
'\ufc54': 'L'
'\ufc55': 'L'
'\ufc56': 'L'
'\ufc57': 'L'
'\ufc58': 'L'
'\ufc59': 'L'
'\ufc5a': 'L'
'\ufc5b': 'L'
'\ufc5c': 'L'
'\ufc5d': 'L'
'\ufc5e': 'L'
'\ufc5f': 'L'
'\ufc60': 'L'
'\ufc61': 'L'
'\ufc62': 'L'
'\ufc63': 'L'
'\ufc64': 'L'
'\ufc65': 'L'
'\ufc66': 'L'
'\ufc67': 'L'
'\ufc68': 'L'
'\ufc69': 'L'
'\ufc6a': 'L'
'\ufc6b': 'L'
'\ufc6c': 'L'
'\ufc6d': 'L'
'\ufc6e': 'L'
'\ufc6f': 'L'
'\ufc70': 'L'
'\ufc71': 'L'
'\ufc72': 'L'
'\ufc73': 'L'
'\ufc74': 'L'
'\ufc75': 'L'
'\ufc76': 'L'
'\ufc77': 'L'
'\ufc78': 'L'
'\ufc79': 'L'
'\ufc7a': 'L'
'\ufc7b': 'L'
'\ufc7c': 'L'
'\ufc7d': 'L'
'\ufc7e': 'L'
'\ufc7f': 'L'
'\ufc80': 'L'
'\ufc81': 'L'
'\ufc82': 'L'
'\ufc83': 'L'
'\ufc84': 'L'
'\ufc85': 'L'
'\ufc86': 'L'
'\ufc87': 'L'
'\ufc88': 'L'
'\ufc89': 'L'
'\ufc8a': 'L'
'\ufc8b': 'L'
'\ufc8c': 'L'
'\ufc8d': 'L'
'\ufc8e': 'L'
'\ufc8f': 'L'
'\ufc90': 'L'
'\ufc91': 'L'
'\ufc92': 'L'
'\ufc93': 'L'
'\ufc94': 'L'
'\ufc95': 'L'
'\ufc96': 'L'
'\ufc97': 'L'
'\ufc98': 'L'
'\ufc99': 'L'
'\ufc9a': 'L'
'\ufc9b': 'L'
'\ufc9c': 'L'
'\ufc9d': 'L'
'\ufc9e': 'L'
'\ufc9f': 'L'
'\ufca0': 'L'
'\ufca1': 'L'
'\ufca2': 'L'
'\ufca3': 'L'
'\ufca4': 'L'
'\ufca5': 'L'
'\ufca6': 'L'
'\ufca7': 'L'
'\ufca8': 'L'
'\ufca9': 'L'
'\ufcaa': 'L'
'\ufcab': 'L'
'\ufcac': 'L'
'\ufcad': 'L'
'\ufcae': 'L'
'\ufcaf': 'L'
'\ufcb0': 'L'
'\ufcb1': 'L'
'\ufcb2': 'L'
'\ufcb3': 'L'
'\ufcb4': 'L'
'\ufcb5': 'L'
'\ufcb6': 'L'
'\ufcb7': 'L'
'\ufcb8': 'L'
'\ufcb9': 'L'
'\ufcba': 'L'
'\ufcbb': 'L'
'\ufcbc': 'L'
'\ufcbd': 'L'
'\ufcbe': 'L'
'\ufcbf': 'L'
'\ufcc0': 'L'
'\ufcc1': 'L'
'\ufcc2': 'L'
'\ufcc3': 'L'
'\ufcc4': 'L'
'\ufcc5': 'L'
'\ufcc6': 'L'
'\ufcc7': 'L'
'\ufcc8': 'L'
'\ufcc9': 'L'
'\ufcca': 'L'
'\ufccb': 'L'
'\ufccc': 'L'
'\ufccd': 'L'
'\ufcce': 'L'
'\ufccf': 'L'
'\ufcd0': 'L'
'\ufcd1': 'L'
'\ufcd2': 'L'
'\ufcd3': 'L'
'\ufcd4': 'L'
'\ufcd5': 'L'
'\ufcd6': 'L'
'\ufcd7': 'L'
'\ufcd8': 'L'
'\ufcd9': 'L'
'\ufcda': 'L'
'\ufcdb': 'L'
'\ufcdc': 'L'
'\ufcdd': 'L'
'\ufcde': 'L'
'\ufcdf': 'L'
'\ufce0': 'L'
'\ufce1': 'L'
'\ufce2': 'L'
'\ufce3': 'L'
'\ufce4': 'L'
'\ufce5': 'L'
'\ufce6': 'L'
'\ufce7': 'L'
'\ufce8': 'L'
'\ufce9': 'L'
'\ufcea': 'L'
'\ufceb': 'L'
'\ufcec': 'L'
'\ufced': 'L'
'\ufcee': 'L'
'\ufcef': 'L'
'\ufcf0': 'L'
'\ufcf1': 'L'
'\ufcf2': 'L'
'\ufcf3': 'L'
'\ufcf4': 'L'
'\ufcf5': 'L'
'\ufcf6': 'L'
'\ufcf7': 'L'
'\ufcf8': 'L'
'\ufcf9': 'L'
'\ufcfa': 'L'
'\ufcfb': 'L'
'\ufcfc': 'L'
'\ufcfd': 'L'
'\ufcfe': 'L'
'\ufcff': 'L'
'\ufd00': 'L'
'\ufd01': 'L'
'\ufd02': 'L'
'\ufd03': 'L'
'\ufd04': 'L'
'\ufd05': 'L'
'\ufd06': 'L'
'\ufd07': 'L'
'\ufd08': 'L'
'\ufd09': 'L'
'\ufd0a': 'L'
'\ufd0b': 'L'
'\ufd0c': 'L'
'\ufd0d': 'L'
'\ufd0e': 'L'
'\ufd0f': 'L'
'\ufd10': 'L'
'\ufd11': 'L'
'\ufd12': 'L'
'\ufd13': 'L'
'\ufd14': 'L'
'\ufd15': 'L'
'\ufd16': 'L'
'\ufd17': 'L'
'\ufd18': 'L'
'\ufd19': 'L'
'\ufd1a': 'L'
'\ufd1b': 'L'
'\ufd1c': 'L'
'\ufd1d': 'L'
'\ufd1e': 'L'
'\ufd1f': 'L'
'\ufd20': 'L'
'\ufd21': 'L'
'\ufd22': 'L'
'\ufd23': 'L'
'\ufd24': 'L'
'\ufd25': 'L'
'\ufd26': 'L'
'\ufd27': 'L'
'\ufd28': 'L'
'\ufd29': 'L'
'\ufd2a': 'L'
'\ufd2b': 'L'
'\ufd2c': 'L'
'\ufd2d': 'L'
'\ufd2e': 'L'
'\ufd2f': 'L'
'\ufd30': 'L'
'\ufd31': 'L'
'\ufd32': 'L'
'\ufd33': 'L'
'\ufd34': 'L'
'\ufd35': 'L'
'\ufd36': 'L'
'\ufd37': 'L'
'\ufd38': 'L'
'\ufd39': 'L'
'\ufd3a': 'L'
'\ufd3b': 'L'
'\ufd3c': 'L'
'\ufd3d': 'L'
'\ufd50': 'L'
'\ufd51': 'L'
'\ufd52': 'L'
'\ufd53': 'L'
'\ufd54': 'L'
'\ufd55': 'L'
'\ufd56': 'L'
'\ufd57': 'L'
'\ufd58': 'L'
'\ufd59': 'L'
'\ufd5a': 'L'
'\ufd5b': 'L'
'\ufd5c': 'L'
'\ufd5d': 'L'
'\ufd5e': 'L'
'\ufd5f': 'L'
'\ufd60': 'L'
'\ufd61': 'L'
'\ufd62': 'L'
'\ufd63': 'L'
'\ufd64': 'L'
'\ufd65': 'L'
'\ufd66': 'L'
'\ufd67': 'L'
'\ufd68': 'L'
'\ufd69': 'L'
'\ufd6a': 'L'
'\ufd6b': 'L'
'\ufd6c': 'L'
'\ufd6d': 'L'
'\ufd6e': 'L'
'\ufd6f': 'L'
'\ufd70': 'L'
'\ufd71': 'L'
'\ufd72': 'L'
'\ufd73': 'L'
'\ufd74': 'L'
'\ufd75': 'L'
'\ufd76': 'L'
'\ufd77': 'L'
'\ufd78': 'L'
'\ufd79': 'L'
'\ufd7a': 'L'
'\ufd7b': 'L'
'\ufd7c': 'L'
'\ufd7d': 'L'
'\ufd7e': 'L'
'\ufd7f': 'L'
'\ufd80': 'L'
'\ufd81': 'L'
'\ufd82': 'L'
'\ufd83': 'L'
'\ufd84': 'L'
'\ufd85': 'L'
'\ufd86': 'L'
'\ufd87': 'L'
'\ufd88': 'L'
'\ufd89': 'L'
'\ufd8a': 'L'
'\ufd8b': 'L'
'\ufd8c': 'L'
'\ufd8d': 'L'
'\ufd8e': 'L'
'\ufd8f': 'L'
'\ufd92': 'L'
'\ufd93': 'L'
'\ufd94': 'L'
'\ufd95': 'L'
'\ufd96': 'L'
'\ufd97': 'L'
'\ufd98': 'L'
'\ufd99': 'L'
'\ufd9a': 'L'
'\ufd9b': 'L'
'\ufd9c': 'L'
'\ufd9d': 'L'
'\ufd9e': 'L'
'\ufd9f': 'L'
'\ufda0': 'L'
'\ufda1': 'L'
'\ufda2': 'L'
'\ufda3': 'L'
'\ufda4': 'L'
'\ufda5': 'L'
'\ufda6': 'L'
'\ufda7': 'L'
'\ufda8': 'L'
'\ufda9': 'L'
'\ufdaa': 'L'
'\ufdab': 'L'
'\ufdac': 'L'
'\ufdad': 'L'
'\ufdae': 'L'
'\ufdaf': 'L'
'\ufdb0': 'L'
'\ufdb1': 'L'
'\ufdb2': 'L'
'\ufdb3': 'L'
'\ufdb4': 'L'
'\ufdb5': 'L'
'\ufdb6': 'L'
'\ufdb7': 'L'
'\ufdb8': 'L'
'\ufdb9': 'L'
'\ufdba': 'L'
'\ufdbb': 'L'
'\ufdbc': 'L'
'\ufdbd': 'L'
'\ufdbe': 'L'
'\ufdbf': 'L'
'\ufdc0': 'L'
'\ufdc1': 'L'
'\ufdc2': 'L'
'\ufdc3': 'L'
'\ufdc4': 'L'
'\ufdc5': 'L'
'\ufdc6': 'L'
'\ufdc7': 'L'
'\ufdf0': 'L'
'\ufdf1': 'L'
'\ufdf2': 'L'
'\ufdf3': 'L'
'\ufdf4': 'L'
'\ufdf5': 'L'
'\ufdf6': 'L'
'\ufdf7': 'L'
'\ufdf8': 'L'
'\ufdf9': 'L'
'\ufdfa': 'L'
'\ufdfb': 'L'
'\ufe70': 'L'
'\ufe71': 'L'
'\ufe72': 'L'
'\ufe73': 'L'
'\ufe74': 'L'
'\ufe76': 'L'
'\ufe77': 'L'
'\ufe78': 'L'
'\ufe79': 'L'
'\ufe7a': 'L'
'\ufe7b': 'L'
'\ufe7c': 'L'
'\ufe7d': 'L'
'\ufe7e': 'L'
'\ufe7f': 'L'
'\ufe80': 'L'
'\ufe81': 'L'
'\ufe82': 'L'
'\ufe83': 'L'
'\ufe84': 'L'
'\ufe85': 'L'
'\ufe86': 'L'
'\ufe87': 'L'
'\ufe88': 'L'
'\ufe89': 'L'
'\ufe8a': 'L'
'\ufe8b': 'L'
'\ufe8c': 'L'
'\ufe8d': 'L'
'\ufe8e': 'L'
'\ufe8f': 'L'
'\ufe90': 'L'
'\ufe91': 'L'
'\ufe92': 'L'
'\ufe93': 'L'
'\ufe94': 'L'
'\ufe95': 'L'
'\ufe96': 'L'
'\ufe97': 'L'
'\ufe98': 'L'
'\ufe99': 'L'
'\ufe9a': 'L'
'\ufe9b': 'L'
'\ufe9c': 'L'
'\ufe9d': 'L'
'\ufe9e': 'L'
'\ufe9f': 'L'
'\ufea0': 'L'
'\ufea1': 'L'
'\ufea2': 'L'
'\ufea3': 'L'
'\ufea4': 'L'
'\ufea5': 'L'
'\ufea6': 'L'
'\ufea7': 'L'
'\ufea8': 'L'
'\ufea9': 'L'
'\ufeaa': 'L'
'\ufeab': 'L'
'\ufeac': 'L'
'\ufead': 'L'
'\ufeae': 'L'
'\ufeaf': 'L'
'\ufeb0': 'L'
'\ufeb1': 'L'
'\ufeb2': 'L'
'\ufeb3': 'L'
'\ufeb4': 'L'
'\ufeb5': 'L'
'\ufeb6': 'L'
'\ufeb7': 'L'
'\ufeb8': 'L'
'\ufeb9': 'L'
'\ufeba': 'L'
'\ufebb': 'L'
'\ufebc': 'L'
'\ufebd': 'L'
'\ufebe': 'L'
'\ufebf': 'L'
'\ufec0': 'L'
'\ufec1': 'L'
'\ufec2': 'L'
'\ufec3': 'L'
'\ufec4': 'L'
'\ufec5': 'L'
'\ufec6': 'L'
'\ufec7': 'L'
'\ufec8': 'L'
'\ufec9': 'L'
'\ufeca': 'L'
'\ufecb': 'L'
'\ufecc': 'L'
'\ufecd': 'L'
'\ufece': 'L'
'\ufecf': 'L'
'\ufed0': 'L'
'\ufed1': 'L'
'\ufed2': 'L'
'\ufed3': 'L'
'\ufed4': 'L'
'\ufed5': 'L'
'\ufed6': 'L'
'\ufed7': 'L'
'\ufed8': 'L'
'\ufed9': 'L'
'\ufeda': 'L'
'\ufedb': 'L'
'\ufedc': 'L'
'\ufedd': 'L'
'\ufede': 'L'
'\ufedf': 'L'
'\ufee0': 'L'
'\ufee1': 'L'
'\ufee2': 'L'
'\ufee3': 'L'
'\ufee4': 'L'
'\ufee5': 'L'
'\ufee6': 'L'
'\ufee7': 'L'
'\ufee8': 'L'
'\ufee9': 'L'
'\ufeea': 'L'
'\ufeeb': 'L'
'\ufeec': 'L'
'\ufeed': 'L'
'\ufeee': 'L'
'\ufeef': 'L'
'\ufef0': 'L'
'\ufef1': 'L'
'\ufef2': 'L'
'\ufef3': 'L'
'\ufef4': 'L'
'\ufef5': 'L'
'\ufef6': 'L'
'\ufef7': 'L'
'\ufef8': 'L'
'\ufef9': 'L'
'\ufefa': 'L'
'\ufefb': 'L'
'\ufefc': 'L'
'\uff10': 'N'
'\uff11': 'N'
'\uff12': 'N'
'\uff13': 'N'
'\uff14': 'N'
'\uff15': 'N'
'\uff16': 'N'
'\uff17': 'N'
'\uff18': 'N'
'\uff19': 'N'
'\uff21': 'Lu'
'\uff22': 'Lu'
'\uff23': 'Lu'
'\uff24': 'Lu'
'\uff25': 'Lu'
'\uff26': 'Lu'
'\uff27': 'Lu'
'\uff28': 'Lu'
'\uff29': 'Lu'
'\uff2a': 'Lu'
'\uff2b': 'Lu'
'\uff2c': 'Lu'
'\uff2d': 'Lu'
'\uff2e': 'Lu'
'\uff2f': 'Lu'
'\uff30': 'Lu'
'\uff31': 'Lu'
'\uff32': 'Lu'
'\uff33': 'Lu'
'\uff34': 'Lu'
'\uff35': 'Lu'
'\uff36': 'Lu'
'\uff37': 'Lu'
'\uff38': 'Lu'
'\uff39': 'Lu'
'\uff3a': 'Lu'
'\uff41': 'L'
'\uff42': 'L'
'\uff43': 'L'
'\uff44': 'L'
'\uff45': 'L'
'\uff46': 'L'
'\uff47': 'L'
'\uff48': 'L'
'\uff49': 'L'
'\uff4a': 'L'
'\uff4b': 'L'
'\uff4c': 'L'
'\uff4d': 'L'
'\uff4e': 'L'
'\uff4f': 'L'
'\uff50': 'L'
'\uff51': 'L'
'\uff52': 'L'
'\uff53': 'L'
'\uff54': 'L'
'\uff55': 'L'
'\uff56': 'L'
'\uff57': 'L'
'\uff58': 'L'
'\uff59': 'L'
'\uff5a': 'L'
'\uff66': 'L'
'\uff67': 'L'
'\uff68': 'L'
'\uff69': 'L'
'\uff6a': 'L'
'\uff6b': 'L'
'\uff6c': 'L'
'\uff6d': 'L'
'\uff6e': 'L'
'\uff6f': 'L'
'\uff70': 'L'
'\uff71': 'L'
'\uff72': 'L'
'\uff73': 'L'
'\uff74': 'L'
'\uff75': 'L'
'\uff76': 'L'
'\uff77': 'L'
'\uff78': 'L'
'\uff79': 'L'
'\uff7a': 'L'
'\uff7b': 'L'
'\uff7c': 'L'
'\uff7d': 'L'
'\uff7e': 'L'
'\uff7f': 'L'
'\uff80': 'L'
'\uff81': 'L'
'\uff82': 'L'
'\uff83': 'L'
'\uff84': 'L'
'\uff85': 'L'
'\uff86': 'L'
'\uff87': 'L'
'\uff88': 'L'
'\uff89': 'L'
'\uff8a': 'L'
'\uff8b': 'L'
'\uff8c': 'L'
'\uff8d': 'L'
'\uff8e': 'L'
'\uff8f': 'L'
'\uff90': 'L'
'\uff91': 'L'
'\uff92': 'L'
'\uff93': 'L'
'\uff94': 'L'
'\uff95': 'L'
'\uff96': 'L'
'\uff97': 'L'
'\uff98': 'L'
'\uff99': 'L'
'\uff9a': 'L'
'\uff9b': 'L'
'\uff9c': 'L'
'\uff9d': 'L'
'\uff9e': 'L'
'\uff9f': 'L'
'\uffa0': 'L'
'\uffa1': 'L'
'\uffa2': 'L'
'\uffa3': 'L'
'\uffa4': 'L'
'\uffa5': 'L'
'\uffa6': 'L'
'\uffa7': 'L'
'\uffa8': 'L'
'\uffa9': 'L'
'\uffaa': 'L'
'\uffab': 'L'
'\uffac': 'L'
'\uffad': 'L'
'\uffae': 'L'
'\uffaf': 'L'
'\uffb0': 'L'
'\uffb1': 'L'
'\uffb2': 'L'
'\uffb3': 'L'
'\uffb4': 'L'
'\uffb5': 'L'
'\uffb6': 'L'
'\uffb7': 'L'
'\uffb8': 'L'
'\uffb9': 'L'
'\uffba': 'L'
'\uffbb': 'L'
'\uffbc': 'L'
'\uffbd': 'L'
'\uffbe': 'L'
'\uffc2': 'L'
'\uffc3': 'L'
'\uffc4': 'L'
'\uffc5': 'L'
'\uffc6': 'L'
'\uffc7': 'L'
'\uffca': 'L'
'\uffcb': 'L'
'\uffcc': 'L'
'\uffcd': 'L'
'\uffce': 'L'
'\uffcf': 'L'
'\uffd2': 'L'
'\uffd3': 'L'
'\uffd4': 'L'
'\uffd5': 'L'
'\uffd6': 'L'
'\uffd7': 'L'
'\uffda': 'L'
'\uffdb': 'L'
'\uffdc': 'L'
'\ud800\udc00': 'L'
'\ud800\udc01': 'L'
'\ud800\udc02': 'L'
'\ud800\udc03': 'L'
'\ud800\udc04': 'L'
'\ud800\udc05': 'L'
'\ud800\udc06': 'L'
'\ud800\udc07': 'L'
'\ud800\udc08': 'L'
'\ud800\udc09': 'L'
'\ud800\udc0a': 'L'
'\ud800\udc0b': 'L'
'\ud800\udc0d': 'L'
'\ud800\udc0e': 'L'
'\ud800\udc0f': 'L'
'\ud800\udc10': 'L'
'\ud800\udc11': 'L'
'\ud800\udc12': 'L'
'\ud800\udc13': 'L'
'\ud800\udc14': 'L'
'\ud800\udc15': 'L'
'\ud800\udc16': 'L'
'\ud800\udc17': 'L'
'\ud800\udc18': 'L'
'\ud800\udc19': 'L'
'\ud800\udc1a': 'L'
'\ud800\udc1b': 'L'
'\ud800\udc1c': 'L'
'\ud800\udc1d': 'L'
'\ud800\udc1e': 'L'
'\ud800\udc1f': 'L'
'\ud800\udc20': 'L'
'\ud800\udc21': 'L'
'\ud800\udc22': 'L'
'\ud800\udc23': 'L'
'\ud800\udc24': 'L'
'\ud800\udc25': 'L'
'\ud800\udc26': 'L'
'\ud800\udc28': 'L'
'\ud800\udc29': 'L'
'\ud800\udc2a': 'L'
'\ud800\udc2b': 'L'
'\ud800\udc2c': 'L'
'\ud800\udc2d': 'L'
'\ud800\udc2e': 'L'
'\ud800\udc2f': 'L'
'\ud800\udc30': 'L'
'\ud800\udc31': 'L'
'\ud800\udc32': 'L'
'\ud800\udc33': 'L'
'\ud800\udc34': 'L'
'\ud800\udc35': 'L'
'\ud800\udc36': 'L'
'\ud800\udc37': 'L'
'\ud800\udc38': 'L'
'\ud800\udc39': 'L'
'\ud800\udc3a': 'L'
'\ud800\udc3c': 'L'
'\ud800\udc3d': 'L'
'\ud800\udc3f': 'L'
'\ud800\udc40': 'L'
'\ud800\udc41': 'L'
'\ud800\udc42': 'L'
'\ud800\udc43': 'L'
'\ud800\udc44': 'L'
'\ud800\udc45': 'L'
'\ud800\udc46': 'L'
'\ud800\udc47': 'L'
'\ud800\udc48': 'L'
'\ud800\udc49': 'L'
'\ud800\udc4a': 'L'
'\ud800\udc4b': 'L'
'\ud800\udc4c': 'L'
'\ud800\udc4d': 'L'
'\ud800\udc50': 'L'
'\ud800\udc51': 'L'
'\ud800\udc52': 'L'
'\ud800\udc53': 'L'
'\ud800\udc54': 'L'
'\ud800\udc55': 'L'
'\ud800\udc56': 'L'
'\ud800\udc57': 'L'
'\ud800\udc58': 'L'
'\ud800\udc59': 'L'
'\ud800\udc5a': 'L'
'\ud800\udc5b': 'L'
'\ud800\udc5c': 'L'
'\ud800\udc5d': 'L'
'\ud800\udc80': 'L'
'\ud800\udc81': 'L'
'\ud800\udc82': 'L'
'\ud800\udc83': 'L'
'\ud800\udc84': 'L'
'\ud800\udc85': 'L'
'\ud800\udc86': 'L'
'\ud800\udc87': 'L'
'\ud800\udc88': 'L'
'\ud800\udc89': 'L'
'\ud800\udc8a': 'L'
'\ud800\udc8b': 'L'
'\ud800\udc8c': 'L'
'\ud800\udc8d': 'L'
'\ud800\udc8e': 'L'
'\ud800\udc8f': 'L'
'\ud800\udc90': 'L'
'\ud800\udc91': 'L'
'\ud800\udc92': 'L'
'\ud800\udc93': 'L'
'\ud800\udc94': 'L'
'\ud800\udc95': 'L'
'\ud800\udc96': 'L'
'\ud800\udc97': 'L'
'\ud800\udc98': 'L'
'\ud800\udc99': 'L'
'\ud800\udc9a': 'L'
'\ud800\udc9b': 'L'
'\ud800\udc9c': 'L'
'\ud800\udc9d': 'L'
'\ud800\udc9e': 'L'
'\ud800\udc9f': 'L'
'\ud800\udca0': 'L'
'\ud800\udca1': 'L'
'\ud800\udca2': 'L'
'\ud800\udca3': 'L'
'\ud800\udca4': 'L'
'\ud800\udca5': 'L'
'\ud800\udca6': 'L'
'\ud800\udca7': 'L'
'\ud800\udca8': 'L'
'\ud800\udca9': 'L'
'\ud800\udcaa': 'L'
'\ud800\udcab': 'L'
'\ud800\udcac': 'L'
'\ud800\udcad': 'L'
'\ud800\udcae': 'L'
'\ud800\udcaf': 'L'
'\ud800\udcb0': 'L'
'\ud800\udcb1': 'L'
'\ud800\udcb2': 'L'
'\ud800\udcb3': 'L'
'\ud800\udcb4': 'L'
'\ud800\udcb5': 'L'
'\ud800\udcb6': 'L'
'\ud800\udcb7': 'L'
'\ud800\udcb8': 'L'
'\ud800\udcb9': 'L'
'\ud800\udcba': 'L'
'\ud800\udcbb': 'L'
'\ud800\udcbc': 'L'
'\ud800\udcbd': 'L'
'\ud800\udcbe': 'L'
'\ud800\udcbf': 'L'
'\ud800\udcc0': 'L'
'\ud800\udcc1': 'L'
'\ud800\udcc2': 'L'
'\ud800\udcc3': 'L'
'\ud800\udcc4': 'L'
'\ud800\udcc5': 'L'
'\ud800\udcc6': 'L'
'\ud800\udcc7': 'L'
'\ud800\udcc8': 'L'
'\ud800\udcc9': 'L'
'\ud800\udcca': 'L'
'\ud800\udccb': 'L'
'\ud800\udccc': 'L'
'\ud800\udccd': 'L'
'\ud800\udcce': 'L'
'\ud800\udccf': 'L'
'\ud800\udcd0': 'L'
'\ud800\udcd1': 'L'
'\ud800\udcd2': 'L'
'\ud800\udcd3': 'L'
'\ud800\udcd4': 'L'
'\ud800\udcd5': 'L'
'\ud800\udcd6': 'L'
'\ud800\udcd7': 'L'
'\ud800\udcd8': 'L'
'\ud800\udcd9': 'L'
'\ud800\udcda': 'L'
'\ud800\udcdb': 'L'
'\ud800\udcdc': 'L'
'\ud800\udcdd': 'L'
'\ud800\udcde': 'L'
'\ud800\udcdf': 'L'
'\ud800\udce0': 'L'
'\ud800\udce1': 'L'
'\ud800\udce2': 'L'
'\ud800\udce3': 'L'
'\ud800\udce4': 'L'
'\ud800\udce5': 'L'
'\ud800\udce6': 'L'
'\ud800\udce7': 'L'
'\ud800\udce8': 'L'
'\ud800\udce9': 'L'
'\ud800\udcea': 'L'
'\ud800\udceb': 'L'
'\ud800\udcec': 'L'
'\ud800\udced': 'L'
'\ud800\udcee': 'L'
'\ud800\udcef': 'L'
'\ud800\udcf0': 'L'
'\ud800\udcf1': 'L'
'\ud800\udcf2': 'L'
'\ud800\udcf3': 'L'
'\ud800\udcf4': 'L'
'\ud800\udcf5': 'L'
'\ud800\udcf6': 'L'
'\ud800\udcf7': 'L'
'\ud800\udcf8': 'L'
'\ud800\udcf9': 'L'
'\ud800\udcfa': 'L'
'\ud800\udd07': 'N'
'\ud800\udd08': 'N'
'\ud800\udd09': 'N'
'\ud800\udd0a': 'N'
'\ud800\udd0b': 'N'
'\ud800\udd0c': 'N'
'\ud800\udd0d': 'N'
'\ud800\udd0e': 'N'
'\ud800\udd0f': 'N'
'\ud800\udd10': 'N'
'\ud800\udd11': 'N'
'\ud800\udd12': 'N'
'\ud800\udd13': 'N'
'\ud800\udd14': 'N'
'\ud800\udd15': 'N'
'\ud800\udd16': 'N'
'\ud800\udd17': 'N'
'\ud800\udd18': 'N'
'\ud800\udd19': 'N'
'\ud800\udd1a': 'N'
'\ud800\udd1b': 'N'
'\ud800\udd1c': 'N'
'\ud800\udd1d': 'N'
'\ud800\udd1e': 'N'
'\ud800\udd1f': 'N'
'\ud800\udd20': 'N'
'\ud800\udd21': 'N'
'\ud800\udd22': 'N'
'\ud800\udd23': 'N'
'\ud800\udd24': 'N'
'\ud800\udd25': 'N'
'\ud800\udd26': 'N'
'\ud800\udd27': 'N'
'\ud800\udd28': 'N'
'\ud800\udd29': 'N'
'\ud800\udd2a': 'N'
'\ud800\udd2b': 'N'
'\ud800\udd2c': 'N'
'\ud800\udd2d': 'N'
'\ud800\udd2e': 'N'
'\ud800\udd2f': 'N'
'\ud800\udd30': 'N'
'\ud800\udd31': 'N'
'\ud800\udd32': 'N'
'\ud800\udd33': 'N'
'\ud800\udd40': 'N'
'\ud800\udd41': 'N'
'\ud800\udd42': 'N'
'\ud800\udd43': 'N'
'\ud800\udd44': 'N'
'\ud800\udd45': 'N'
'\ud800\udd46': 'N'
'\ud800\udd47': 'N'
'\ud800\udd48': 'N'
'\ud800\udd49': 'N'
'\ud800\udd4a': 'N'
'\ud800\udd4b': 'N'
'\ud800\udd4c': 'N'
'\ud800\udd4d': 'N'
'\ud800\udd4e': 'N'
'\ud800\udd4f': 'N'
'\ud800\udd50': 'N'
'\ud800\udd51': 'N'
'\ud800\udd52': 'N'
'\ud800\udd53': 'N'
'\ud800\udd54': 'N'
'\ud800\udd55': 'N'
'\ud800\udd56': 'N'
'\ud800\udd57': 'N'
'\ud800\udd58': 'N'
'\ud800\udd59': 'N'
'\ud800\udd5a': 'N'
'\ud800\udd5b': 'N'
'\ud800\udd5c': 'N'
'\ud800\udd5d': 'N'
'\ud800\udd5e': 'N'
'\ud800\udd5f': 'N'
'\ud800\udd60': 'N'
'\ud800\udd61': 'N'
'\ud800\udd62': 'N'
'\ud800\udd63': 'N'
'\ud800\udd64': 'N'
'\ud800\udd65': 'N'
'\ud800\udd66': 'N'
'\ud800\udd67': 'N'
'\ud800\udd68': 'N'
'\ud800\udd69': 'N'
'\ud800\udd6a': 'N'
'\ud800\udd6b': 'N'
'\ud800\udd6c': 'N'
'\ud800\udd6d': 'N'
'\ud800\udd6e': 'N'
'\ud800\udd6f': 'N'
'\ud800\udd70': 'N'
'\ud800\udd71': 'N'
'\ud800\udd72': 'N'
'\ud800\udd73': 'N'
'\ud800\udd74': 'N'
'\ud800\udd75': 'N'
'\ud800\udd76': 'N'
'\ud800\udd77': 'N'
'\ud800\udd78': 'N'
'\ud800\udd8a': 'N'
'\ud800\udd8b': 'N'
'\ud800\ude80': 'L'
'\ud800\ude81': 'L'
'\ud800\ude82': 'L'
'\ud800\ude83': 'L'
'\ud800\ude84': 'L'
'\ud800\ude85': 'L'
'\ud800\ude86': 'L'
'\ud800\ude87': 'L'
'\ud800\ude88': 'L'
'\ud800\ude89': 'L'
'\ud800\ude8a': 'L'
'\ud800\ude8b': 'L'
'\ud800\ude8c': 'L'
'\ud800\ude8d': 'L'
'\ud800\ude8e': 'L'
'\ud800\ude8f': 'L'
'\ud800\ude90': 'L'
'\ud800\ude91': 'L'
'\ud800\ude92': 'L'
'\ud800\ude93': 'L'
'\ud800\ude94': 'L'
'\ud800\ude95': 'L'
'\ud800\ude96': 'L'
'\ud800\ude97': 'L'
'\ud800\ude98': 'L'
'\ud800\ude99': 'L'
'\ud800\ude9a': 'L'
'\ud800\ude9b': 'L'
'\ud800\ude9c': 'L'
'\ud800\udea0': 'L'
'\ud800\udea1': 'L'
'\ud800\udea2': 'L'
'\ud800\udea3': 'L'
'\ud800\udea4': 'L'
'\ud800\udea5': 'L'
'\ud800\udea6': 'L'
'\ud800\udea7': 'L'
'\ud800\udea8': 'L'
'\ud800\udea9': 'L'
'\ud800\udeaa': 'L'
'\ud800\udeab': 'L'
'\ud800\udeac': 'L'
'\ud800\udead': 'L'
'\ud800\udeae': 'L'
'\ud800\udeaf': 'L'
'\ud800\udeb0': 'L'
'\ud800\udeb1': 'L'
'\ud800\udeb2': 'L'
'\ud800\udeb3': 'L'
'\ud800\udeb4': 'L'
'\ud800\udeb5': 'L'
'\ud800\udeb6': 'L'
'\ud800\udeb7': 'L'
'\ud800\udeb8': 'L'
'\ud800\udeb9': 'L'
'\ud800\udeba': 'L'
'\ud800\udebb': 'L'
'\ud800\udebc': 'L'
'\ud800\udebd': 'L'
'\ud800\udebe': 'L'
'\ud800\udebf': 'L'
'\ud800\udec0': 'L'
'\ud800\udec1': 'L'
'\ud800\udec2': 'L'
'\ud800\udec3': 'L'
'\ud800\udec4': 'L'
'\ud800\udec5': 'L'
'\ud800\udec6': 'L'
'\ud800\udec7': 'L'
'\ud800\udec8': 'L'
'\ud800\udec9': 'L'
'\ud800\udeca': 'L'
'\ud800\udecb': 'L'
'\ud800\udecc': 'L'
'\ud800\udecd': 'L'
'\ud800\udece': 'L'
'\ud800\udecf': 'L'
'\ud800\uded0': 'L'
'\ud800\udee1': 'N'
'\ud800\udee2': 'N'
'\ud800\udee3': 'N'
'\ud800\udee4': 'N'
'\ud800\udee5': 'N'
'\ud800\udee6': 'N'
'\ud800\udee7': 'N'
'\ud800\udee8': 'N'
'\ud800\udee9': 'N'
'\ud800\udeea': 'N'
'\ud800\udeeb': 'N'
'\ud800\udeec': 'N'
'\ud800\udeed': 'N'
'\ud800\udeee': 'N'
'\ud800\udeef': 'N'
'\ud800\udef0': 'N'
'\ud800\udef1': 'N'
'\ud800\udef2': 'N'
'\ud800\udef3': 'N'
'\ud800\udef4': 'N'
'\ud800\udef5': 'N'
'\ud800\udef6': 'N'
'\ud800\udef7': 'N'
'\ud800\udef8': 'N'
'\ud800\udef9': 'N'
'\ud800\udefa': 'N'
'\ud800\udefb': 'N'
'\ud800\udf00': 'L'
'\ud800\udf01': 'L'
'\ud800\udf02': 'L'
'\ud800\udf03': 'L'
'\ud800\udf04': 'L'
'\ud800\udf05': 'L'
'\ud800\udf06': 'L'
'\ud800\udf07': 'L'
'\ud800\udf08': 'L'
'\ud800\udf09': 'L'
'\ud800\udf0a': 'L'
'\ud800\udf0b': 'L'
'\ud800\udf0c': 'L'
'\ud800\udf0d': 'L'
'\ud800\udf0e': 'L'
'\ud800\udf0f': 'L'
'\ud800\udf10': 'L'
'\ud800\udf11': 'L'
'\ud800\udf12': 'L'
'\ud800\udf13': 'L'
'\ud800\udf14': 'L'
'\ud800\udf15': 'L'
'\ud800\udf16': 'L'
'\ud800\udf17': 'L'
'\ud800\udf18': 'L'
'\ud800\udf19': 'L'
'\ud800\udf1a': 'L'
'\ud800\udf1b': 'L'
'\ud800\udf1c': 'L'
'\ud800\udf1d': 'L'
'\ud800\udf1e': 'L'
'\ud800\udf1f': 'L'
'\ud800\udf20': 'N'
'\ud800\udf21': 'N'
'\ud800\udf22': 'N'
'\ud800\udf23': 'N'
'\ud800\udf30': 'L'
'\ud800\udf31': 'L'
'\ud800\udf32': 'L'
'\ud800\udf33': 'L'
'\ud800\udf34': 'L'
'\ud800\udf35': 'L'
'\ud800\udf36': 'L'
'\ud800\udf37': 'L'
'\ud800\udf38': 'L'
'\ud800\udf39': 'L'
'\ud800\udf3a': 'L'
'\ud800\udf3b': 'L'
'\ud800\udf3c': 'L'
'\ud800\udf3d': 'L'
'\ud800\udf3e': 'L'
'\ud800\udf3f': 'L'
'\ud800\udf40': 'L'
'\ud800\udf41': 'N'
'\ud800\udf42': 'L'
'\ud800\udf43': 'L'
'\ud800\udf44': 'L'
'\ud800\udf45': 'L'
'\ud800\udf46': 'L'
'\ud800\udf47': 'L'
'\ud800\udf48': 'L'
'\ud800\udf49': 'L'
'\ud800\udf4a': 'N'
'\ud800\udf50': 'L'
'\ud800\udf51': 'L'
'\ud800\udf52': 'L'
'\ud800\udf53': 'L'
'\ud800\udf54': 'L'
'\ud800\udf55': 'L'
'\ud800\udf56': 'L'
'\ud800\udf57': 'L'
'\ud800\udf58': 'L'
'\ud800\udf59': 'L'
'\ud800\udf5a': 'L'
'\ud800\udf5b': 'L'
'\ud800\udf5c': 'L'
'\ud800\udf5d': 'L'
'\ud800\udf5e': 'L'
'\ud800\udf5f': 'L'
'\ud800\udf60': 'L'
'\ud800\udf61': 'L'
'\ud800\udf62': 'L'
'\ud800\udf63': 'L'
'\ud800\udf64': 'L'
'\ud800\udf65': 'L'
'\ud800\udf66': 'L'
'\ud800\udf67': 'L'
'\ud800\udf68': 'L'
'\ud800\udf69': 'L'
'\ud800\udf6a': 'L'
'\ud800\udf6b': 'L'
'\ud800\udf6c': 'L'
'\ud800\udf6d': 'L'
'\ud800\udf6e': 'L'
'\ud800\udf6f': 'L'
'\ud800\udf70': 'L'
'\ud800\udf71': 'L'
'\ud800\udf72': 'L'
'\ud800\udf73': 'L'
'\ud800\udf74': 'L'
'\ud800\udf75': 'L'
'\ud800\udf80': 'L'
'\ud800\udf81': 'L'
'\ud800\udf82': 'L'
'\ud800\udf83': 'L'
'\ud800\udf84': 'L'
'\ud800\udf85': 'L'
'\ud800\udf86': 'L'
'\ud800\udf87': 'L'
'\ud800\udf88': 'L'
'\ud800\udf89': 'L'
'\ud800\udf8a': 'L'
'\ud800\udf8b': 'L'
'\ud800\udf8c': 'L'
'\ud800\udf8d': 'L'
'\ud800\udf8e': 'L'
'\ud800\udf8f': 'L'
'\ud800\udf90': 'L'
'\ud800\udf91': 'L'
'\ud800\udf92': 'L'
'\ud800\udf93': 'L'
'\ud800\udf94': 'L'
'\ud800\udf95': 'L'
'\ud800\udf96': 'L'
'\ud800\udf97': 'L'
'\ud800\udf98': 'L'
'\ud800\udf99': 'L'
'\ud800\udf9a': 'L'
'\ud800\udf9b': 'L'
'\ud800\udf9c': 'L'
'\ud800\udf9d': 'L'
'\ud800\udfa0': 'L'
'\ud800\udfa1': 'L'
'\ud800\udfa2': 'L'
'\ud800\udfa3': 'L'
'\ud800\udfa4': 'L'
'\ud800\udfa5': 'L'
'\ud800\udfa6': 'L'
'\ud800\udfa7': 'L'
'\ud800\udfa8': 'L'
'\ud800\udfa9': 'L'
'\ud800\udfaa': 'L'
'\ud800\udfab': 'L'
'\ud800\udfac': 'L'
'\ud800\udfad': 'L'
'\ud800\udfae': 'L'
'\ud800\udfaf': 'L'
'\ud800\udfb0': 'L'
'\ud800\udfb1': 'L'
'\ud800\udfb2': 'L'
'\ud800\udfb3': 'L'
'\ud800\udfb4': 'L'
'\ud800\udfb5': 'L'
'\ud800\udfb6': 'L'
'\ud800\udfb7': 'L'
'\ud800\udfb8': 'L'
'\ud800\udfb9': 'L'
'\ud800\udfba': 'L'
'\ud800\udfbb': 'L'
'\ud800\udfbc': 'L'
'\ud800\udfbd': 'L'
'\ud800\udfbe': 'L'
'\ud800\udfbf': 'L'
'\ud800\udfc0': 'L'
'\ud800\udfc1': 'L'
'\ud800\udfc2': 'L'
'\ud800\udfc3': 'L'
'\ud800\udfc8': 'L'
'\ud800\udfc9': 'L'
'\ud800\udfca': 'L'
'\ud800\udfcb': 'L'
'\ud800\udfcc': 'L'
'\ud800\udfcd': 'L'
'\ud800\udfce': 'L'
'\ud800\udfcf': 'L'
'\ud800\udfd1': 'N'
'\ud800\udfd2': 'N'
'\ud800\udfd3': 'N'
'\ud800\udfd4': 'N'
'\ud800\udfd5': 'N'
'\ud801\udc00': 'Lu'
'\ud801\udc01': 'Lu'
'\ud801\udc02': 'Lu'
'\ud801\udc03': 'Lu'
'\ud801\udc04': 'Lu'
'\ud801\udc05': 'Lu'
'\ud801\udc06': 'Lu'
'\ud801\udc07': 'Lu'
'\ud801\udc08': 'Lu'
'\ud801\udc09': 'Lu'
'\ud801\udc0a': 'Lu'
'\ud801\udc0b': 'Lu'
'\ud801\udc0c': 'Lu'
'\ud801\udc0d': 'Lu'
'\ud801\udc0e': 'Lu'
'\ud801\udc0f': 'Lu'
'\ud801\udc10': 'Lu'
'\ud801\udc11': 'Lu'
'\ud801\udc12': 'Lu'
'\ud801\udc13': 'Lu'
'\ud801\udc14': 'Lu'
'\ud801\udc15': 'Lu'
'\ud801\udc16': 'Lu'
'\ud801\udc17': 'Lu'
'\ud801\udc18': 'Lu'
'\ud801\udc19': 'Lu'
'\ud801\udc1a': 'Lu'
'\ud801\udc1b': 'Lu'
'\ud801\udc1c': 'Lu'
'\ud801\udc1d': 'Lu'
'\ud801\udc1e': 'Lu'
'\ud801\udc1f': 'Lu'
'\ud801\udc20': 'Lu'
'\ud801\udc21': 'Lu'
'\ud801\udc22': 'Lu'
'\ud801\udc23': 'Lu'
'\ud801\udc24': 'Lu'
'\ud801\udc25': 'Lu'
'\ud801\udc26': 'Lu'
'\ud801\udc27': 'Lu'
'\ud801\udc28': 'L'
'\ud801\udc29': 'L'
'\ud801\udc2a': 'L'
'\ud801\udc2b': 'L'
'\ud801\udc2c': 'L'
'\ud801\udc2d': 'L'
'\ud801\udc2e': 'L'
'\ud801\udc2f': 'L'
'\ud801\udc30': 'L'
'\ud801\udc31': 'L'
'\ud801\udc32': 'L'
'\ud801\udc33': 'L'
'\ud801\udc34': 'L'
'\ud801\udc35': 'L'
'\ud801\udc36': 'L'
'\ud801\udc37': 'L'
'\ud801\udc38': 'L'
'\ud801\udc39': 'L'
'\ud801\udc3a': 'L'
'\ud801\udc3b': 'L'
'\ud801\udc3c': 'L'
'\ud801\udc3d': 'L'
'\ud801\udc3e': 'L'
'\ud801\udc3f': 'L'
'\ud801\udc40': 'L'
'\ud801\udc41': 'L'
'\ud801\udc42': 'L'
'\ud801\udc43': 'L'
'\ud801\udc44': 'L'
'\ud801\udc45': 'L'
'\ud801\udc46': 'L'
'\ud801\udc47': 'L'
'\ud801\udc48': 'L'
'\ud801\udc49': 'L'
'\ud801\udc4a': 'L'
'\ud801\udc4b': 'L'
'\ud801\udc4c': 'L'
'\ud801\udc4d': 'L'
'\ud801\udc4e': 'L'
'\ud801\udc4f': 'L'
'\ud801\udc50': 'L'
'\ud801\udc51': 'L'
'\ud801\udc52': 'L'
'\ud801\udc53': 'L'
'\ud801\udc54': 'L'
'\ud801\udc55': 'L'
'\ud801\udc56': 'L'
'\ud801\udc57': 'L'
'\ud801\udc58': 'L'
'\ud801\udc59': 'L'
'\ud801\udc5a': 'L'
'\ud801\udc5b': 'L'
'\ud801\udc5c': 'L'
'\ud801\udc5d': 'L'
'\ud801\udc5e': 'L'
'\ud801\udc5f': 'L'
'\ud801\udc60': 'L'
'\ud801\udc61': 'L'
'\ud801\udc62': 'L'
'\ud801\udc63': 'L'
'\ud801\udc64': 'L'
'\ud801\udc65': 'L'
'\ud801\udc66': 'L'
'\ud801\udc67': 'L'
'\ud801\udc68': 'L'
'\ud801\udc69': 'L'
'\ud801\udc6a': 'L'
'\ud801\udc6b': 'L'
'\ud801\udc6c': 'L'
'\ud801\udc6d': 'L'
'\ud801\udc6e': 'L'
'\ud801\udc6f': 'L'
'\ud801\udc70': 'L'
'\ud801\udc71': 'L'
'\ud801\udc72': 'L'
'\ud801\udc73': 'L'
'\ud801\udc74': 'L'
'\ud801\udc75': 'L'
'\ud801\udc76': 'L'
'\ud801\udc77': 'L'
'\ud801\udc78': 'L'
'\ud801\udc79': 'L'
'\ud801\udc7a': 'L'
'\ud801\udc7b': 'L'
'\ud801\udc7c': 'L'
'\ud801\udc7d': 'L'
'\ud801\udc7e': 'L'
'\ud801\udc7f': 'L'
'\ud801\udc80': 'L'
'\ud801\udc81': 'L'
'\ud801\udc82': 'L'
'\ud801\udc83': 'L'
'\ud801\udc84': 'L'
'\ud801\udc85': 'L'
'\ud801\udc86': 'L'
'\ud801\udc87': 'L'
'\ud801\udc88': 'L'
'\ud801\udc89': 'L'
'\ud801\udc8a': 'L'
'\ud801\udc8b': 'L'
'\ud801\udc8c': 'L'
'\ud801\udc8d': 'L'
'\ud801\udc8e': 'L'
'\ud801\udc8f': 'L'
'\ud801\udc90': 'L'
'\ud801\udc91': 'L'
'\ud801\udc92': 'L'
'\ud801\udc93': 'L'
'\ud801\udc94': 'L'
'\ud801\udc95': 'L'
'\ud801\udc96': 'L'
'\ud801\udc97': 'L'
'\ud801\udc98': 'L'
'\ud801\udc99': 'L'
'\ud801\udc9a': 'L'
'\ud801\udc9b': 'L'
'\ud801\udc9c': 'L'
'\ud801\udc9d': 'L'
'\ud801\udca0': 'N'
'\ud801\udca1': 'N'
'\ud801\udca2': 'N'
'\ud801\udca3': 'N'
'\ud801\udca4': 'N'
'\ud801\udca5': 'N'
'\ud801\udca6': 'N'
'\ud801\udca7': 'N'
'\ud801\udca8': 'N'
'\ud801\udca9': 'N'
'\ud801\udd00': 'L'
'\ud801\udd01': 'L'
'\ud801\udd02': 'L'
'\ud801\udd03': 'L'
'\ud801\udd04': 'L'
'\ud801\udd05': 'L'
'\ud801\udd06': 'L'
'\ud801\udd07': 'L'
'\ud801\udd08': 'L'
'\ud801\udd09': 'L'
'\ud801\udd0a': 'L'
'\ud801\udd0b': 'L'
'\ud801\udd0c': 'L'
'\ud801\udd0d': 'L'
'\ud801\udd0e': 'L'
'\ud801\udd0f': 'L'
'\ud801\udd10': 'L'
'\ud801\udd11': 'L'
'\ud801\udd12': 'L'
'\ud801\udd13': 'L'
'\ud801\udd14': 'L'
'\ud801\udd15': 'L'
'\ud801\udd16': 'L'
'\ud801\udd17': 'L'
'\ud801\udd18': 'L'
'\ud801\udd19': 'L'
'\ud801\udd1a': 'L'
'\ud801\udd1b': 'L'
'\ud801\udd1c': 'L'
'\ud801\udd1d': 'L'
'\ud801\udd1e': 'L'
'\ud801\udd1f': 'L'
'\ud801\udd20': 'L'
'\ud801\udd21': 'L'
'\ud801\udd22': 'L'
'\ud801\udd23': 'L'
'\ud801\udd24': 'L'
'\ud801\udd25': 'L'
'\ud801\udd26': 'L'
'\ud801\udd27': 'L'
'\ud801\udd30': 'L'
'\ud801\udd31': 'L'
'\ud801\udd32': 'L'
'\ud801\udd33': 'L'
'\ud801\udd34': 'L'
'\ud801\udd35': 'L'
'\ud801\udd36': 'L'
'\ud801\udd37': 'L'
'\ud801\udd38': 'L'
'\ud801\udd39': 'L'
'\ud801\udd3a': 'L'
'\ud801\udd3b': 'L'
'\ud801\udd3c': 'L'
'\ud801\udd3d': 'L'
'\ud801\udd3e': 'L'
'\ud801\udd3f': 'L'
'\ud801\udd40': 'L'
'\ud801\udd41': 'L'
'\ud801\udd42': 'L'
'\ud801\udd43': 'L'
'\ud801\udd44': 'L'
'\ud801\udd45': 'L'
'\ud801\udd46': 'L'
'\ud801\udd47': 'L'
'\ud801\udd48': 'L'
'\ud801\udd49': 'L'
'\ud801\udd4a': 'L'
'\ud801\udd4b': 'L'
'\ud801\udd4c': 'L'
'\ud801\udd4d': 'L'
'\ud801\udd4e': 'L'
'\ud801\udd4f': 'L'
'\ud801\udd50': 'L'
'\ud801\udd51': 'L'
'\ud801\udd52': 'L'
'\ud801\udd53': 'L'
'\ud801\udd54': 'L'
'\ud801\udd55': 'L'
'\ud801\udd56': 'L'
'\ud801\udd57': 'L'
'\ud801\udd58': 'L'
'\ud801\udd59': 'L'
'\ud801\udd5a': 'L'
'\ud801\udd5b': 'L'
'\ud801\udd5c': 'L'
'\ud801\udd5d': 'L'
'\ud801\udd5e': 'L'
'\ud801\udd5f': 'L'
'\ud801\udd60': 'L'
'\ud801\udd61': 'L'
'\ud801\udd62': 'L'
'\ud801\udd63': 'L'
'\ud801\ude00': 'L'
'\ud801\ude01': 'L'
'\ud801\ude02': 'L'
'\ud801\ude03': 'L'
'\ud801\ude04': 'L'
'\ud801\ude05': 'L'
'\ud801\ude06': 'L'
'\ud801\ude07': 'L'
'\ud801\ude08': 'L'
'\ud801\ude09': 'L'
'\ud801\ude0a': 'L'
'\ud801\ude0b': 'L'
'\ud801\ude0c': 'L'
'\ud801\ude0d': 'L'
'\ud801\ude0e': 'L'
'\ud801\ude0f': 'L'
'\ud801\ude10': 'L'
'\ud801\ude11': 'L'
'\ud801\ude12': 'L'
'\ud801\ude13': 'L'
'\ud801\ude14': 'L'
'\ud801\ude15': 'L'
'\ud801\ude16': 'L'
'\ud801\ude17': 'L'
'\ud801\ude18': 'L'
'\ud801\ude19': 'L'
'\ud801\ude1a': 'L'
'\ud801\ude1b': 'L'
'\ud801\ude1c': 'L'
'\ud801\ude1d': 'L'
'\ud801\ude1e': 'L'
'\ud801\ude1f': 'L'
'\ud801\ude20': 'L'
'\ud801\ude21': 'L'
'\ud801\ude22': 'L'
'\ud801\ude23': 'L'
'\ud801\ude24': 'L'
'\ud801\ude25': 'L'
'\ud801\ude26': 'L'
'\ud801\ude27': 'L'
'\ud801\ude28': 'L'
'\ud801\ude29': 'L'
'\ud801\ude2a': 'L'
'\ud801\ude2b': 'L'
'\ud801\ude2c': 'L'
'\ud801\ude2d': 'L'
'\ud801\ude2e': 'L'
'\ud801\ude2f': 'L'
'\ud801\ude30': 'L'
'\ud801\ude31': 'L'
'\ud801\ude32': 'L'
'\ud801\ude33': 'L'
'\ud801\ude34': 'L'
'\ud801\ude35': 'L'
'\ud801\ude36': 'L'
'\ud801\ude37': 'L'
'\ud801\ude38': 'L'
'\ud801\ude39': 'L'
'\ud801\ude3a': 'L'
'\ud801\ude3b': 'L'
'\ud801\ude3c': 'L'
'\ud801\ude3d': 'L'
'\ud801\ude3e': 'L'
'\ud801\ude3f': 'L'
'\ud801\ude40': 'L'
'\ud801\ude41': 'L'
'\ud801\ude42': 'L'
'\ud801\ude43': 'L'
'\ud801\ude44': 'L'
'\ud801\ude45': 'L'
'\ud801\ude46': 'L'
'\ud801\ude47': 'L'
'\ud801\ude48': 'L'
'\ud801\ude49': 'L'
'\ud801\ude4a': 'L'
'\ud801\ude4b': 'L'
'\ud801\ude4c': 'L'
'\ud801\ude4d': 'L'
'\ud801\ude4e': 'L'
'\ud801\ude4f': 'L'
'\ud801\ude50': 'L'
'\ud801\ude51': 'L'
'\ud801\ude52': 'L'
'\ud801\ude53': 'L'
'\ud801\ude54': 'L'
'\ud801\ude55': 'L'
'\ud801\ude56': 'L'
'\ud801\ude57': 'L'
'\ud801\ude58': 'L'
'\ud801\ude59': 'L'
'\ud801\ude5a': 'L'
'\ud801\ude5b': 'L'
'\ud801\ude5c': 'L'
'\ud801\ude5d': 'L'
'\ud801\ude5e': 'L'
'\ud801\ude5f': 'L'
'\ud801\ude60': 'L'
'\ud801\ude61': 'L'
'\ud801\ude62': 'L'
'\ud801\ude63': 'L'
'\ud801\ude64': 'L'
'\ud801\ude65': 'L'
'\ud801\ude66': 'L'
'\ud801\ude67': 'L'
'\ud801\ude68': 'L'
'\ud801\ude69': 'L'
'\ud801\ude6a': 'L'
'\ud801\ude6b': 'L'
'\ud801\ude6c': 'L'
'\ud801\ude6d': 'L'
'\ud801\ude6e': 'L'
'\ud801\ude6f': 'L'
'\ud801\ude70': 'L'
'\ud801\ude71': 'L'
'\ud801\ude72': 'L'
'\ud801\ude73': 'L'
'\ud801\ude74': 'L'
'\ud801\ude75': 'L'
'\ud801\ude76': 'L'
'\ud801\ude77': 'L'
'\ud801\ude78': 'L'
'\ud801\ude79': 'L'
'\ud801\ude7a': 'L'
'\ud801\ude7b': 'L'
'\ud801\ude7c': 'L'
'\ud801\ude7d': 'L'
'\ud801\ude7e': 'L'
'\ud801\ude7f': 'L'
'\ud801\ude80': 'L'
'\ud801\ude81': 'L'
'\ud801\ude82': 'L'
'\ud801\ude83': 'L'
'\ud801\ude84': 'L'
'\ud801\ude85': 'L'
'\ud801\ude86': 'L'
'\ud801\ude87': 'L'
'\ud801\ude88': 'L'
'\ud801\ude89': 'L'
'\ud801\ude8a': 'L'
'\ud801\ude8b': 'L'
'\ud801\ude8c': 'L'
'\ud801\ude8d': 'L'
'\ud801\ude8e': 'L'
'\ud801\ude8f': 'L'
'\ud801\ude90': 'L'
'\ud801\ude91': 'L'
'\ud801\ude92': 'L'
'\ud801\ude93': 'L'
'\ud801\ude94': 'L'
'\ud801\ude95': 'L'
'\ud801\ude96': 'L'
'\ud801\ude97': 'L'
'\ud801\ude98': 'L'
'\ud801\ude99': 'L'
'\ud801\ude9a': 'L'
'\ud801\ude9b': 'L'
'\ud801\ude9c': 'L'
'\ud801\ude9d': 'L'
'\ud801\ude9e': 'L'
'\ud801\ude9f': 'L'
'\ud801\udea0': 'L'
'\ud801\udea1': 'L'
'\ud801\udea2': 'L'
'\ud801\udea3': 'L'
'\ud801\udea4': 'L'
'\ud801\udea5': 'L'
'\ud801\udea6': 'L'
'\ud801\udea7': 'L'
'\ud801\udea8': 'L'
'\ud801\udea9': 'L'
'\ud801\udeaa': 'L'
'\ud801\udeab': 'L'
'\ud801\udeac': 'L'
'\ud801\udead': 'L'
'\ud801\udeae': 'L'
'\ud801\udeaf': 'L'
'\ud801\udeb0': 'L'
'\ud801\udeb1': 'L'
'\ud801\udeb2': 'L'
'\ud801\udeb3': 'L'
'\ud801\udeb4': 'L'
'\ud801\udeb5': 'L'
'\ud801\udeb6': 'L'
'\ud801\udeb7': 'L'
'\ud801\udeb8': 'L'
'\ud801\udeb9': 'L'
'\ud801\udeba': 'L'
'\ud801\udebb': 'L'
'\ud801\udebc': 'L'
'\ud801\udebd': 'L'
'\ud801\udebe': 'L'
'\ud801\udebf': 'L'
'\ud801\udec0': 'L'
'\ud801\udec1': 'L'
'\ud801\udec2': 'L'
'\ud801\udec3': 'L'
'\ud801\udec4': 'L'
'\ud801\udec5': 'L'
'\ud801\udec6': 'L'
'\ud801\udec7': 'L'
'\ud801\udec8': 'L'
'\ud801\udec9': 'L'
'\ud801\udeca': 'L'
'\ud801\udecb': 'L'
'\ud801\udecc': 'L'
'\ud801\udecd': 'L'
'\ud801\udece': 'L'
'\ud801\udecf': 'L'
'\ud801\uded0': 'L'
'\ud801\uded1': 'L'
'\ud801\uded2': 'L'
'\ud801\uded3': 'L'
'\ud801\uded4': 'L'
'\ud801\uded5': 'L'
'\ud801\uded6': 'L'
'\ud801\uded7': 'L'
'\ud801\uded8': 'L'
'\ud801\uded9': 'L'
'\ud801\udeda': 'L'
'\ud801\udedb': 'L'
'\ud801\udedc': 'L'
'\ud801\udedd': 'L'
'\ud801\udede': 'L'
'\ud801\udedf': 'L'
'\ud801\udee0': 'L'
'\ud801\udee1': 'L'
'\ud801\udee2': 'L'
'\ud801\udee3': 'L'
'\ud801\udee4': 'L'
'\ud801\udee5': 'L'
'\ud801\udee6': 'L'
'\ud801\udee7': 'L'
'\ud801\udee8': 'L'
'\ud801\udee9': 'L'
'\ud801\udeea': 'L'
'\ud801\udeeb': 'L'
'\ud801\udeec': 'L'
'\ud801\udeed': 'L'
'\ud801\udeee': 'L'
'\ud801\udeef': 'L'
'\ud801\udef0': 'L'
'\ud801\udef1': 'L'
'\ud801\udef2': 'L'
'\ud801\udef3': 'L'
'\ud801\udef4': 'L'
'\ud801\udef5': 'L'
'\ud801\udef6': 'L'
'\ud801\udef7': 'L'
'\ud801\udef8': 'L'
'\ud801\udef9': 'L'
'\ud801\udefa': 'L'
'\ud801\udefb': 'L'
'\ud801\udefc': 'L'
'\ud801\udefd': 'L'
'\ud801\udefe': 'L'
'\ud801\udeff': 'L'
'\ud801\udf00': 'L'
'\ud801\udf01': 'L'
'\ud801\udf02': 'L'
'\ud801\udf03': 'L'
'\ud801\udf04': 'L'
'\ud801\udf05': 'L'
'\ud801\udf06': 'L'
'\ud801\udf07': 'L'
'\ud801\udf08': 'L'
'\ud801\udf09': 'L'
'\ud801\udf0a': 'L'
'\ud801\udf0b': 'L'
'\ud801\udf0c': 'L'
'\ud801\udf0d': 'L'
'\ud801\udf0e': 'L'
'\ud801\udf0f': 'L'
'\ud801\udf10': 'L'
'\ud801\udf11': 'L'
'\ud801\udf12': 'L'
'\ud801\udf13': 'L'
'\ud801\udf14': 'L'
'\ud801\udf15': 'L'
'\ud801\udf16': 'L'
'\ud801\udf17': 'L'
'\ud801\udf18': 'L'
'\ud801\udf19': 'L'
'\ud801\udf1a': 'L'
'\ud801\udf1b': 'L'
'\ud801\udf1c': 'L'
'\ud801\udf1d': 'L'
'\ud801\udf1e': 'L'
'\ud801\udf1f': 'L'
'\ud801\udf20': 'L'
'\ud801\udf21': 'L'
'\ud801\udf22': 'L'
'\ud801\udf23': 'L'
'\ud801\udf24': 'L'
'\ud801\udf25': 'L'
'\ud801\udf26': 'L'
'\ud801\udf27': 'L'
'\ud801\udf28': 'L'
'\ud801\udf29': 'L'
'\ud801\udf2a': 'L'
'\ud801\udf2b': 'L'
'\ud801\udf2c': 'L'
'\ud801\udf2d': 'L'
'\ud801\udf2e': 'L'
'\ud801\udf2f': 'L'
'\ud801\udf30': 'L'
'\ud801\udf31': 'L'
'\ud801\udf32': 'L'
'\ud801\udf33': 'L'
'\ud801\udf34': 'L'
'\ud801\udf35': 'L'
'\ud801\udf36': 'L'
'\ud801\udf40': 'L'
'\ud801\udf41': 'L'
'\ud801\udf42': 'L'
'\ud801\udf43': 'L'
'\ud801\udf44': 'L'
'\ud801\udf45': 'L'
'\ud801\udf46': 'L'
'\ud801\udf47': 'L'
'\ud801\udf48': 'L'
'\ud801\udf49': 'L'
'\ud801\udf4a': 'L'
'\ud801\udf4b': 'L'
'\ud801\udf4c': 'L'
'\ud801\udf4d': 'L'
'\ud801\udf4e': 'L'
'\ud801\udf4f': 'L'
'\ud801\udf50': 'L'
'\ud801\udf51': 'L'
'\ud801\udf52': 'L'
'\ud801\udf53': 'L'
'\ud801\udf54': 'L'
'\ud801\udf55': 'L'
'\ud801\udf60': 'L'
'\ud801\udf61': 'L'
'\ud801\udf62': 'L'
'\ud801\udf63': 'L'
'\ud801\udf64': 'L'
'\ud801\udf65': 'L'
'\ud801\udf66': 'L'
'\ud801\udf67': 'L'
'\ud802\udc00': 'L'
'\ud802\udc01': 'L'
'\ud802\udc02': 'L'
'\ud802\udc03': 'L'
'\ud802\udc04': 'L'
'\ud802\udc05': 'L'
'\ud802\udc08': 'L'
'\ud802\udc0a': 'L'
'\ud802\udc0b': 'L'
'\ud802\udc0c': 'L'
'\ud802\udc0d': 'L'
'\ud802\udc0e': 'L'
'\ud802\udc0f': 'L'
'\ud802\udc10': 'L'
'\ud802\udc11': 'L'
'\ud802\udc12': 'L'
'\ud802\udc13': 'L'
'\ud802\udc14': 'L'
'\ud802\udc15': 'L'
'\ud802\udc16': 'L'
'\ud802\udc17': 'L'
'\ud802\udc18': 'L'
'\ud802\udc19': 'L'
'\ud802\udc1a': 'L'
'\ud802\udc1b': 'L'
'\ud802\udc1c': 'L'
'\ud802\udc1d': 'L'
'\ud802\udc1e': 'L'
'\ud802\udc1f': 'L'
'\ud802\udc20': 'L'
'\ud802\udc21': 'L'
'\ud802\udc22': 'L'
'\ud802\udc23': 'L'
'\ud802\udc24': 'L'
'\ud802\udc25': 'L'
'\ud802\udc26': 'L'
'\ud802\udc27': 'L'
'\ud802\udc28': 'L'
'\ud802\udc29': 'L'
'\ud802\udc2a': 'L'
'\ud802\udc2b': 'L'
'\ud802\udc2c': 'L'
'\ud802\udc2d': 'L'
'\ud802\udc2e': 'L'
'\ud802\udc2f': 'L'
'\ud802\udc30': 'L'
'\ud802\udc31': 'L'
'\ud802\udc32': 'L'
'\ud802\udc33': 'L'
'\ud802\udc34': 'L'
'\ud802\udc35': 'L'
'\ud802\udc37': 'L'
'\ud802\udc38': 'L'
'\ud802\udc3c': 'L'
'\ud802\udc3f': 'L'
'\ud802\udc40': 'L'
'\ud802\udc41': 'L'
'\ud802\udc42': 'L'
'\ud802\udc43': 'L'
'\ud802\udc44': 'L'
'\ud802\udc45': 'L'
'\ud802\udc46': 'L'
'\ud802\udc47': 'L'
'\ud802\udc48': 'L'
'\ud802\udc49': 'L'
'\ud802\udc4a': 'L'
'\ud802\udc4b': 'L'
'\ud802\udc4c': 'L'
'\ud802\udc4d': 'L'
'\ud802\udc4e': 'L'
'\ud802\udc4f': 'L'
'\ud802\udc50': 'L'
'\ud802\udc51': 'L'
'\ud802\udc52': 'L'
'\ud802\udc53': 'L'
'\ud802\udc54': 'L'
'\ud802\udc55': 'L'
'\ud802\udc58': 'N'
'\ud802\udc59': 'N'
'\ud802\udc5a': 'N'
'\ud802\udc5b': 'N'
'\ud802\udc5c': 'N'
'\ud802\udc5d': 'N'
'\ud802\udc5e': 'N'
'\ud802\udc5f': 'N'
'\ud802\udc60': 'L'
'\ud802\udc61': 'L'
'\ud802\udc62': 'L'
'\ud802\udc63': 'L'
'\ud802\udc64': 'L'
'\ud802\udc65': 'L'
'\ud802\udc66': 'L'
'\ud802\udc67': 'L'
'\ud802\udc68': 'L'
'\ud802\udc69': 'L'
'\ud802\udc6a': 'L'
'\ud802\udc6b': 'L'
'\ud802\udc6c': 'L'
'\ud802\udc6d': 'L'
'\ud802\udc6e': 'L'
'\ud802\udc6f': 'L'
'\ud802\udc70': 'L'
'\ud802\udc71': 'L'
'\ud802\udc72': 'L'
'\ud802\udc73': 'L'
'\ud802\udc74': 'L'
'\ud802\udc75': 'L'
'\ud802\udc76': 'L'
'\ud802\udc79': 'N'
'\ud802\udc7a': 'N'
'\ud802\udc7b': 'N'
'\ud802\udc7c': 'N'
'\ud802\udc7d': 'N'
'\ud802\udc7e': 'N'
'\ud802\udc7f': 'N'
'\ud802\udc80': 'L'
'\ud802\udc81': 'L'
'\ud802\udc82': 'L'
'\ud802\udc83': 'L'
'\ud802\udc84': 'L'
'\ud802\udc85': 'L'
'\ud802\udc86': 'L'
'\ud802\udc87': 'L'
'\ud802\udc88': 'L'
'\ud802\udc89': 'L'
'\ud802\udc8a': 'L'
'\ud802\udc8b': 'L'
'\ud802\udc8c': 'L'
'\ud802\udc8d': 'L'
'\ud802\udc8e': 'L'
'\ud802\udc8f': 'L'
'\ud802\udc90': 'L'
'\ud802\udc91': 'L'
'\ud802\udc92': 'L'
'\ud802\udc93': 'L'
'\ud802\udc94': 'L'
'\ud802\udc95': 'L'
'\ud802\udc96': 'L'
'\ud802\udc97': 'L'
'\ud802\udc98': 'L'
'\ud802\udc99': 'L'
'\ud802\udc9a': 'L'
'\ud802\udc9b': 'L'
'\ud802\udc9c': 'L'
'\ud802\udc9d': 'L'
'\ud802\udc9e': 'L'
'\ud802\udca7': 'N'
'\ud802\udca8': 'N'
'\ud802\udca9': 'N'
'\ud802\udcaa': 'N'
'\ud802\udcab': 'N'
'\ud802\udcac': 'N'
'\ud802\udcad': 'N'
'\ud802\udcae': 'N'
'\ud802\udcaf': 'N'
'\ud802\udce0': 'L'
'\ud802\udce1': 'L'
'\ud802\udce2': 'L'
'\ud802\udce3': 'L'
'\ud802\udce4': 'L'
'\ud802\udce5': 'L'
'\ud802\udce6': 'L'
'\ud802\udce7': 'L'
'\ud802\udce8': 'L'
'\ud802\udce9': 'L'
'\ud802\udcea': 'L'
'\ud802\udceb': 'L'
'\ud802\udcec': 'L'
'\ud802\udced': 'L'
'\ud802\udcee': 'L'
'\ud802\udcef': 'L'
'\ud802\udcf0': 'L'
'\ud802\udcf1': 'L'
'\ud802\udcf2': 'L'
'\ud802\udcf4': 'L'
'\ud802\udcf5': 'L'
'\ud802\udcfb': 'N'
'\ud802\udcfc': 'N'
'\ud802\udcfd': 'N'
'\ud802\udcfe': 'N'
'\ud802\udcff': 'N'
'\ud802\udd00': 'L'
'\ud802\udd01': 'L'
'\ud802\udd02': 'L'
'\ud802\udd03': 'L'
'\ud802\udd04': 'L'
'\ud802\udd05': 'L'
'\ud802\udd06': 'L'
'\ud802\udd07': 'L'
'\ud802\udd08': 'L'
'\ud802\udd09': 'L'
'\ud802\udd0a': 'L'
'\ud802\udd0b': 'L'
'\ud802\udd0c': 'L'
'\ud802\udd0d': 'L'
'\ud802\udd0e': 'L'
'\ud802\udd0f': 'L'
'\ud802\udd10': 'L'
'\ud802\udd11': 'L'
'\ud802\udd12': 'L'
'\ud802\udd13': 'L'
'\ud802\udd14': 'L'
'\ud802\udd15': 'L'
'\ud802\udd16': 'N'
'\ud802\udd17': 'N'
'\ud802\udd18': 'N'
'\ud802\udd19': 'N'
'\ud802\udd1a': 'N'
'\ud802\udd1b': 'N'
'\ud802\udd20': 'L'
'\ud802\udd21': 'L'
'\ud802\udd22': 'L'
'\ud802\udd23': 'L'
'\ud802\udd24': 'L'
'\ud802\udd25': 'L'
'\ud802\udd26': 'L'
'\ud802\udd27': 'L'
'\ud802\udd28': 'L'
'\ud802\udd29': 'L'
'\ud802\udd2a': 'L'
'\ud802\udd2b': 'L'
'\ud802\udd2c': 'L'
'\ud802\udd2d': 'L'
'\ud802\udd2e': 'L'
'\ud802\udd2f': 'L'
'\ud802\udd30': 'L'
'\ud802\udd31': 'L'
'\ud802\udd32': 'L'
'\ud802\udd33': 'L'
'\ud802\udd34': 'L'
'\ud802\udd35': 'L'
'\ud802\udd36': 'L'
'\ud802\udd37': 'L'
'\ud802\udd38': 'L'
'\ud802\udd39': 'L'
'\ud802\udd80': 'L'
'\ud802\udd81': 'L'
'\ud802\udd82': 'L'
'\ud802\udd83': 'L'
'\ud802\udd84': 'L'
'\ud802\udd85': 'L'
'\ud802\udd86': 'L'
'\ud802\udd87': 'L'
'\ud802\udd88': 'L'
'\ud802\udd89': 'L'
'\ud802\udd8a': 'L'
'\ud802\udd8b': 'L'
'\ud802\udd8c': 'L'
'\ud802\udd8d': 'L'
'\ud802\udd8e': 'L'
'\ud802\udd8f': 'L'
'\ud802\udd90': 'L'
'\ud802\udd91': 'L'
'\ud802\udd92': 'L'
'\ud802\udd93': 'L'
'\ud802\udd94': 'L'
'\ud802\udd95': 'L'
'\ud802\udd96': 'L'
'\ud802\udd97': 'L'
'\ud802\udd98': 'L'
'\ud802\udd99': 'L'
'\ud802\udd9a': 'L'
'\ud802\udd9b': 'L'
'\ud802\udd9c': 'L'
'\ud802\udd9d': 'L'
'\ud802\udd9e': 'L'
'\ud802\udd9f': 'L'
'\ud802\udda0': 'L'
'\ud802\udda1': 'L'
'\ud802\udda2': 'L'
'\ud802\udda3': 'L'
'\ud802\udda4': 'L'
'\ud802\udda5': 'L'
'\ud802\udda6': 'L'
'\ud802\udda7': 'L'
'\ud802\udda8': 'L'
'\ud802\udda9': 'L'
'\ud802\uddaa': 'L'
'\ud802\uddab': 'L'
'\ud802\uddac': 'L'
'\ud802\uddad': 'L'
'\ud802\uddae': 'L'
'\ud802\uddaf': 'L'
'\ud802\uddb0': 'L'
'\ud802\uddb1': 'L'
'\ud802\uddb2': 'L'
'\ud802\uddb3': 'L'
'\ud802\uddb4': 'L'
'\ud802\uddb5': 'L'
'\ud802\uddb6': 'L'
'\ud802\uddb7': 'L'
'\ud802\uddbc': 'N'
'\ud802\uddbd': 'N'
'\ud802\uddbe': 'L'
'\ud802\uddbf': 'L'
'\ud802\uddc0': 'N'
'\ud802\uddc1': 'N'
'\ud802\uddc2': 'N'
'\ud802\uddc3': 'N'
'\ud802\uddc4': 'N'
'\ud802\uddc5': 'N'
'\ud802\uddc6': 'N'
'\ud802\uddc7': 'N'
'\ud802\uddc8': 'N'
'\ud802\uddc9': 'N'
'\ud802\uddca': 'N'
'\ud802\uddcb': 'N'
'\ud802\uddcc': 'N'
'\ud802\uddcd': 'N'
'\ud802\uddce': 'N'
'\ud802\uddcf': 'N'
'\ud802\uddd2': 'N'
'\ud802\uddd3': 'N'
'\ud802\uddd4': 'N'
'\ud802\uddd5': 'N'
'\ud802\uddd6': 'N'
'\ud802\uddd7': 'N'
'\ud802\uddd8': 'N'
'\ud802\uddd9': 'N'
'\ud802\uddda': 'N'
'\ud802\udddb': 'N'
'\ud802\udddc': 'N'
'\ud802\udddd': 'N'
'\ud802\uddde': 'N'
'\ud802\udddf': 'N'
'\ud802\udde0': 'N'
'\ud802\udde1': 'N'
'\ud802\udde2': 'N'
'\ud802\udde3': 'N'
'\ud802\udde4': 'N'
'\ud802\udde5': 'N'
'\ud802\udde6': 'N'
'\ud802\udde7': 'N'
'\ud802\udde8': 'N'
'\ud802\udde9': 'N'
'\ud802\uddea': 'N'
'\ud802\uddeb': 'N'
'\ud802\uddec': 'N'
'\ud802\udded': 'N'
'\ud802\uddee': 'N'
'\ud802\uddef': 'N'
'\ud802\uddf0': 'N'
'\ud802\uddf1': 'N'
'\ud802\uddf2': 'N'
'\ud802\uddf3': 'N'
'\ud802\uddf4': 'N'
'\ud802\uddf5': 'N'
'\ud802\uddf6': 'N'
'\ud802\uddf7': 'N'
'\ud802\uddf8': 'N'
'\ud802\uddf9': 'N'
'\ud802\uddfa': 'N'
'\ud802\uddfb': 'N'
'\ud802\uddfc': 'N'
'\ud802\uddfd': 'N'
'\ud802\uddfe': 'N'
'\ud802\uddff': 'N'
'\ud802\ude00': 'L'
'\ud802\ude10': 'L'
'\ud802\ude11': 'L'
'\ud802\ude12': 'L'
'\ud802\ude13': 'L'
'\ud802\ude15': 'L'
'\ud802\ude16': 'L'
'\ud802\ude17': 'L'
'\ud802\ude19': 'L'
'\ud802\ude1a': 'L'
'\ud802\ude1b': 'L'
'\ud802\ude1c': 'L'
'\ud802\ude1d': 'L'
'\ud802\ude1e': 'L'
'\ud802\ude1f': 'L'
'\ud802\ude20': 'L'
'\ud802\ude21': 'L'
'\ud802\ude22': 'L'
'\ud802\ude23': 'L'
'\ud802\ude24': 'L'
'\ud802\ude25': 'L'
'\ud802\ude26': 'L'
'\ud802\ude27': 'L'
'\ud802\ude28': 'L'
'\ud802\ude29': 'L'
'\ud802\ude2a': 'L'
'\ud802\ude2b': 'L'
'\ud802\ude2c': 'L'
'\ud802\ude2d': 'L'
'\ud802\ude2e': 'L'
'\ud802\ude2f': 'L'
'\ud802\ude30': 'L'
'\ud802\ude31': 'L'
'\ud802\ude32': 'L'
'\ud802\ude33': 'L'
'\ud802\ude40': 'N'
'\ud802\ude41': 'N'
'\ud802\ude42': 'N'
'\ud802\ude43': 'N'
'\ud802\ude44': 'N'
'\ud802\ude45': 'N'
'\ud802\ude46': 'N'
'\ud802\ude47': 'N'
'\ud802\ude60': 'L'
'\ud802\ude61': 'L'
'\ud802\ude62': 'L'
'\ud802\ude63': 'L'
'\ud802\ude64': 'L'
'\ud802\ude65': 'L'
'\ud802\ude66': 'L'
'\ud802\ude67': 'L'
'\ud802\ude68': 'L'
'\ud802\ude69': 'L'
'\ud802\ude6a': 'L'
'\ud802\ude6b': 'L'
'\ud802\ude6c': 'L'
'\ud802\ude6d': 'L'
'\ud802\ude6e': 'L'
'\ud802\ude6f': 'L'
'\ud802\ude70': 'L'
'\ud802\ude71': 'L'
'\ud802\ude72': 'L'
'\ud802\ude73': 'L'
'\ud802\ude74': 'L'
'\ud802\ude75': 'L'
'\ud802\ude76': 'L'
'\ud802\ude77': 'L'
'\ud802\ude78': 'L'
'\ud802\ude79': 'L'
'\ud802\ude7a': 'L'
'\ud802\ude7b': 'L'
'\ud802\ude7c': 'L'
'\ud802\ude7d': 'N'
'\ud802\ude7e': 'N'
'\ud802\ude80': 'L'
'\ud802\ude81': 'L'
'\ud802\ude82': 'L'
'\ud802\ude83': 'L'
'\ud802\ude84': 'L'
'\ud802\ude85': 'L'
'\ud802\ude86': 'L'
'\ud802\ude87': 'L'
'\ud802\ude88': 'L'
'\ud802\ude89': 'L'
'\ud802\ude8a': 'L'
'\ud802\ude8b': 'L'
'\ud802\ude8c': 'L'
'\ud802\ude8d': 'L'
'\ud802\ude8e': 'L'
'\ud802\ude8f': 'L'
'\ud802\ude90': 'L'
'\ud802\ude91': 'L'
'\ud802\ude92': 'L'
'\ud802\ude93': 'L'
'\ud802\ude94': 'L'
'\ud802\ude95': 'L'
'\ud802\ude96': 'L'
'\ud802\ude97': 'L'
'\ud802\ude98': 'L'
'\ud802\ude99': 'L'
'\ud802\ude9a': 'L'
'\ud802\ude9b': 'L'
'\ud802\ude9c': 'L'
'\ud802\ude9d': 'N'
'\ud802\ude9e': 'N'
'\ud802\ude9f': 'N'
'\ud802\udec0': 'L'
'\ud802\udec1': 'L'
'\ud802\udec2': 'L'
'\ud802\udec3': 'L'
'\ud802\udec4': 'L'
'\ud802\udec5': 'L'
'\ud802\udec6': 'L'
'\ud802\udec7': 'L'
'\ud802\udec9': 'L'
'\ud802\udeca': 'L'
'\ud802\udecb': 'L'
'\ud802\udecc': 'L'
'\ud802\udecd': 'L'
'\ud802\udece': 'L'
'\ud802\udecf': 'L'
'\ud802\uded0': 'L'
'\ud802\uded1': 'L'
'\ud802\uded2': 'L'
'\ud802\uded3': 'L'
'\ud802\uded4': 'L'
'\ud802\uded5': 'L'
'\ud802\uded6': 'L'
'\ud802\uded7': 'L'
'\ud802\uded8': 'L'
'\ud802\uded9': 'L'
'\ud802\udeda': 'L'
'\ud802\udedb': 'L'
'\ud802\udedc': 'L'
'\ud802\udedd': 'L'
'\ud802\udede': 'L'
'\ud802\udedf': 'L'
'\ud802\udee0': 'L'
'\ud802\udee1': 'L'
'\ud802\udee2': 'L'
'\ud802\udee3': 'L'
'\ud802\udee4': 'L'
'\ud802\udeeb': 'N'
'\ud802\udeec': 'N'
'\ud802\udeed': 'N'
'\ud802\udeee': 'N'
'\ud802\udeef': 'N'
'\ud802\udf00': 'L'
'\ud802\udf01': 'L'
'\ud802\udf02': 'L'
'\ud802\udf03': 'L'
'\ud802\udf04': 'L'
'\ud802\udf05': 'L'
'\ud802\udf06': 'L'
'\ud802\udf07': 'L'
'\ud802\udf08': 'L'
'\ud802\udf09': 'L'
'\ud802\udf0a': 'L'
'\ud802\udf0b': 'L'
'\ud802\udf0c': 'L'
'\ud802\udf0d': 'L'
'\ud802\udf0e': 'L'
'\ud802\udf0f': 'L'
'\ud802\udf10': 'L'
'\ud802\udf11': 'L'
'\ud802\udf12': 'L'
'\ud802\udf13': 'L'
'\ud802\udf14': 'L'
'\ud802\udf15': 'L'
'\ud802\udf16': 'L'
'\ud802\udf17': 'L'
'\ud802\udf18': 'L'
'\ud802\udf19': 'L'
'\ud802\udf1a': 'L'
'\ud802\udf1b': 'L'
'\ud802\udf1c': 'L'
'\ud802\udf1d': 'L'
'\ud802\udf1e': 'L'
'\ud802\udf1f': 'L'
'\ud802\udf20': 'L'
'\ud802\udf21': 'L'
'\ud802\udf22': 'L'
'\ud802\udf23': 'L'
'\ud802\udf24': 'L'
'\ud802\udf25': 'L'
'\ud802\udf26': 'L'
'\ud802\udf27': 'L'
'\ud802\udf28': 'L'
'\ud802\udf29': 'L'
'\ud802\udf2a': 'L'
'\ud802\udf2b': 'L'
'\ud802\udf2c': 'L'
'\ud802\udf2d': 'L'
'\ud802\udf2e': 'L'
'\ud802\udf2f': 'L'
'\ud802\udf30': 'L'
'\ud802\udf31': 'L'
'\ud802\udf32': 'L'
'\ud802\udf33': 'L'
'\ud802\udf34': 'L'
'\ud802\udf35': 'L'
'\ud802\udf40': 'L'
'\ud802\udf41': 'L'
'\ud802\udf42': 'L'
'\ud802\udf43': 'L'
'\ud802\udf44': 'L'
'\ud802\udf45': 'L'
'\ud802\udf46': 'L'
'\ud802\udf47': 'L'
'\ud802\udf48': 'L'
'\ud802\udf49': 'L'
'\ud802\udf4a': 'L'
'\ud802\udf4b': 'L'
'\ud802\udf4c': 'L'
'\ud802\udf4d': 'L'
'\ud802\udf4e': 'L'
'\ud802\udf4f': 'L'
'\ud802\udf50': 'L'
'\ud802\udf51': 'L'
'\ud802\udf52': 'L'
'\ud802\udf53': 'L'
'\ud802\udf54': 'L'
'\ud802\udf55': 'L'
'\ud802\udf58': 'N'
'\ud802\udf59': 'N'
'\ud802\udf5a': 'N'
'\ud802\udf5b': 'N'
'\ud802\udf5c': 'N'
'\ud802\udf5d': 'N'
'\ud802\udf5e': 'N'
'\ud802\udf5f': 'N'
'\ud802\udf60': 'L'
'\ud802\udf61': 'L'
'\ud802\udf62': 'L'
'\ud802\udf63': 'L'
'\ud802\udf64': 'L'
'\ud802\udf65': 'L'
'\ud802\udf66': 'L'
'\ud802\udf67': 'L'
'\ud802\udf68': 'L'
'\ud802\udf69': 'L'
'\ud802\udf6a': 'L'
'\ud802\udf6b': 'L'
'\ud802\udf6c': 'L'
'\ud802\udf6d': 'L'
'\ud802\udf6e': 'L'
'\ud802\udf6f': 'L'
'\ud802\udf70': 'L'
'\ud802\udf71': 'L'
'\ud802\udf72': 'L'
'\ud802\udf78': 'N'
'\ud802\udf79': 'N'
'\ud802\udf7a': 'N'
'\ud802\udf7b': 'N'
'\ud802\udf7c': 'N'
'\ud802\udf7d': 'N'
'\ud802\udf7e': 'N'
'\ud802\udf7f': 'N'
'\ud802\udf80': 'L'
'\ud802\udf81': 'L'
'\ud802\udf82': 'L'
'\ud802\udf83': 'L'
'\ud802\udf84': 'L'
'\ud802\udf85': 'L'
'\ud802\udf86': 'L'
'\ud802\udf87': 'L'
'\ud802\udf88': 'L'
'\ud802\udf89': 'L'
'\ud802\udf8a': 'L'
'\ud802\udf8b': 'L'
'\ud802\udf8c': 'L'
'\ud802\udf8d': 'L'
'\ud802\udf8e': 'L'
'\ud802\udf8f': 'L'
'\ud802\udf90': 'L'
'\ud802\udf91': 'L'
'\ud802\udfa9': 'N'
'\ud802\udfaa': 'N'
'\ud802\udfab': 'N'
'\ud802\udfac': 'N'
'\ud802\udfad': 'N'
'\ud802\udfae': 'N'
'\ud802\udfaf': 'N'
'\ud803\udc00': 'L'
'\ud803\udc01': 'L'
'\ud803\udc02': 'L'
'\ud803\udc03': 'L'
'\ud803\udc04': 'L'
'\ud803\udc05': 'L'
'\ud803\udc06': 'L'
'\ud803\udc07': 'L'
'\ud803\udc08': 'L'
'\ud803\udc09': 'L'
'\ud803\udc0a': 'L'
'\ud803\udc0b': 'L'
'\ud803\udc0c': 'L'
'\ud803\udc0d': 'L'
'\ud803\udc0e': 'L'
'\ud803\udc0f': 'L'
'\ud803\udc10': 'L'
'\ud803\udc11': 'L'
'\ud803\udc12': 'L'
'\ud803\udc13': 'L'
'\ud803\udc14': 'L'
'\ud803\udc15': 'L'
'\ud803\udc16': 'L'
'\ud803\udc17': 'L'
'\ud803\udc18': 'L'
'\ud803\udc19': 'L'
'\ud803\udc1a': 'L'
'\ud803\udc1b': 'L'
'\ud803\udc1c': 'L'
'\ud803\udc1d': 'L'
'\ud803\udc1e': 'L'
'\ud803\udc1f': 'L'
'\ud803\udc20': 'L'
'\ud803\udc21': 'L'
'\ud803\udc22': 'L'
'\ud803\udc23': 'L'
'\ud803\udc24': 'L'
'\ud803\udc25': 'L'
'\ud803\udc26': 'L'
'\ud803\udc27': 'L'
'\ud803\udc28': 'L'
'\ud803\udc29': 'L'
'\ud803\udc2a': 'L'
'\ud803\udc2b': 'L'
'\ud803\udc2c': 'L'
'\ud803\udc2d': 'L'
'\ud803\udc2e': 'L'
'\ud803\udc2f': 'L'
'\ud803\udc30': 'L'
'\ud803\udc31': 'L'
'\ud803\udc32': 'L'
'\ud803\udc33': 'L'
'\ud803\udc34': 'L'
'\ud803\udc35': 'L'
'\ud803\udc36': 'L'
'\ud803\udc37': 'L'
'\ud803\udc38': 'L'
'\ud803\udc39': 'L'
'\ud803\udc3a': 'L'
'\ud803\udc3b': 'L'
'\ud803\udc3c': 'L'
'\ud803\udc3d': 'L'
'\ud803\udc3e': 'L'
'\ud803\udc3f': 'L'
'\ud803\udc40': 'L'
'\ud803\udc41': 'L'
'\ud803\udc42': 'L'
'\ud803\udc43': 'L'
'\ud803\udc44': 'L'
'\ud803\udc45': 'L'
'\ud803\udc46': 'L'
'\ud803\udc47': 'L'
'\ud803\udc48': 'L'
'\ud803\udc80': 'Lu'
'\ud803\udc81': 'Lu'
'\ud803\udc82': 'Lu'
'\ud803\udc83': 'Lu'
'\ud803\udc84': 'Lu'
'\ud803\udc85': 'Lu'
'\ud803\udc86': 'Lu'
'\ud803\udc87': 'Lu'
'\ud803\udc88': 'Lu'
'\ud803\udc89': 'Lu'
'\ud803\udc8a': 'Lu'
'\ud803\udc8b': 'Lu'
'\ud803\udc8c': 'Lu'
'\ud803\udc8d': 'Lu'
'\ud803\udc8e': 'Lu'
'\ud803\udc8f': 'Lu'
'\ud803\udc90': 'Lu'
'\ud803\udc91': 'Lu'
'\ud803\udc92': 'Lu'
'\ud803\udc93': 'Lu'
'\ud803\udc94': 'Lu'
'\ud803\udc95': 'Lu'
'\ud803\udc96': 'Lu'
'\ud803\udc97': 'Lu'
'\ud803\udc98': 'Lu'
'\ud803\udc99': 'Lu'
'\ud803\udc9a': 'Lu'
'\ud803\udc9b': 'Lu'
'\ud803\udc9c': 'Lu'
'\ud803\udc9d': 'Lu'
'\ud803\udc9e': 'Lu'
'\ud803\udc9f': 'Lu'
'\ud803\udca0': 'Lu'
'\ud803\udca1': 'Lu'
'\ud803\udca2': 'Lu'
'\ud803\udca3': 'Lu'
'\ud803\udca4': 'Lu'
'\ud803\udca5': 'Lu'
'\ud803\udca6': 'Lu'
'\ud803\udca7': 'Lu'
'\ud803\udca8': 'Lu'
'\ud803\udca9': 'Lu'
'\ud803\udcaa': 'Lu'
'\ud803\udcab': 'Lu'
'\ud803\udcac': 'Lu'
'\ud803\udcad': 'Lu'
'\ud803\udcae': 'Lu'
'\ud803\udcaf': 'Lu'
'\ud803\udcb0': 'Lu'
'\ud803\udcb1': 'Lu'
'\ud803\udcb2': 'Lu'
'\ud803\udcc0': 'L'
'\ud803\udcc1': 'L'
'\ud803\udcc2': 'L'
'\ud803\udcc3': 'L'
'\ud803\udcc4': 'L'
'\ud803\udcc5': 'L'
'\ud803\udcc6': 'L'
'\ud803\udcc7': 'L'
'\ud803\udcc8': 'L'
'\ud803\udcc9': 'L'
'\ud803\udcca': 'L'
'\ud803\udccb': 'L'
'\ud803\udccc': 'L'
'\ud803\udccd': 'L'
'\ud803\udcce': 'L'
'\ud803\udccf': 'L'
'\ud803\udcd0': 'L'
'\ud803\udcd1': 'L'
'\ud803\udcd2': 'L'
'\ud803\udcd3': 'L'
'\ud803\udcd4': 'L'
'\ud803\udcd5': 'L'
'\ud803\udcd6': 'L'
'\ud803\udcd7': 'L'
'\ud803\udcd8': 'L'
'\ud803\udcd9': 'L'
'\ud803\udcda': 'L'
'\ud803\udcdb': 'L'
'\ud803\udcdc': 'L'
'\ud803\udcdd': 'L'
'\ud803\udcde': 'L'
'\ud803\udcdf': 'L'
'\ud803\udce0': 'L'
'\ud803\udce1': 'L'
'\ud803\udce2': 'L'
'\ud803\udce3': 'L'
'\ud803\udce4': 'L'
'\ud803\udce5': 'L'
'\ud803\udce6': 'L'
'\ud803\udce7': 'L'
'\ud803\udce8': 'L'
'\ud803\udce9': 'L'
'\ud803\udcea': 'L'
'\ud803\udceb': 'L'
'\ud803\udcec': 'L'
'\ud803\udced': 'L'
'\ud803\udcee': 'L'
'\ud803\udcef': 'L'
'\ud803\udcf0': 'L'
'\ud803\udcf1': 'L'
'\ud803\udcf2': 'L'
'\ud803\udcfa': 'N'
'\ud803\udcfb': 'N'
'\ud803\udcfc': 'N'
'\ud803\udcfd': 'N'
'\ud803\udcfe': 'N'
'\ud803\udcff': 'N'
'\ud803\ude60': 'N'
'\ud803\ude61': 'N'
'\ud803\ude62': 'N'
'\ud803\ude63': 'N'
'\ud803\ude64': 'N'
'\ud803\ude65': 'N'
'\ud803\ude66': 'N'
'\ud803\ude67': 'N'
'\ud803\ude68': 'N'
'\ud803\ude69': 'N'
'\ud803\ude6a': 'N'
'\ud803\ude6b': 'N'
'\ud803\ude6c': 'N'
'\ud803\ude6d': 'N'
'\ud803\ude6e': 'N'
'\ud803\ude6f': 'N'
'\ud803\ude70': 'N'
'\ud803\ude71': 'N'
'\ud803\ude72': 'N'
'\ud803\ude73': 'N'
'\ud803\ude74': 'N'
'\ud803\ude75': 'N'
'\ud803\ude76': 'N'
'\ud803\ude77': 'N'
'\ud803\ude78': 'N'
'\ud803\ude79': 'N'
'\ud803\ude7a': 'N'
'\ud803\ude7b': 'N'
'\ud803\ude7c': 'N'
'\ud803\ude7d': 'N'
'\ud803\ude7e': 'N'
'\ud804\udc03': 'L'
'\ud804\udc04': 'L'
'\ud804\udc05': 'L'
'\ud804\udc06': 'L'
'\ud804\udc07': 'L'
'\ud804\udc08': 'L'
'\ud804\udc09': 'L'
'\ud804\udc0a': 'L'
'\ud804\udc0b': 'L'
'\ud804\udc0c': 'L'
'\ud804\udc0d': 'L'
'\ud804\udc0e': 'L'
'\ud804\udc0f': 'L'
'\ud804\udc10': 'L'
'\ud804\udc11': 'L'
'\ud804\udc12': 'L'
'\ud804\udc13': 'L'
'\ud804\udc14': 'L'
'\ud804\udc15': 'L'
'\ud804\udc16': 'L'
'\ud804\udc17': 'L'
'\ud804\udc18': 'L'
'\ud804\udc19': 'L'
'\ud804\udc1a': 'L'
'\ud804\udc1b': 'L'
'\ud804\udc1c': 'L'
'\ud804\udc1d': 'L'
'\ud804\udc1e': 'L'
'\ud804\udc1f': 'L'
'\ud804\udc20': 'L'
'\ud804\udc21': 'L'
'\ud804\udc22': 'L'
'\ud804\udc23': 'L'
'\ud804\udc24': 'L'
'\ud804\udc25': 'L'
'\ud804\udc26': 'L'
'\ud804\udc27': 'L'
'\ud804\udc28': 'L'
'\ud804\udc29': 'L'
'\ud804\udc2a': 'L'
'\ud804\udc2b': 'L'
'\ud804\udc2c': 'L'
'\ud804\udc2d': 'L'
'\ud804\udc2e': 'L'
'\ud804\udc2f': 'L'
'\ud804\udc30': 'L'
'\ud804\udc31': 'L'
'\ud804\udc32': 'L'
'\ud804\udc33': 'L'
'\ud804\udc34': 'L'
'\ud804\udc35': 'L'
'\ud804\udc36': 'L'
'\ud804\udc37': 'L'
'\ud804\udc52': 'N'
'\ud804\udc53': 'N'
'\ud804\udc54': 'N'
'\ud804\udc55': 'N'
'\ud804\udc56': 'N'
'\ud804\udc57': 'N'
'\ud804\udc58': 'N'
'\ud804\udc59': 'N'
'\ud804\udc5a': 'N'
'\ud804\udc5b': 'N'
'\ud804\udc5c': 'N'
'\ud804\udc5d': 'N'
'\ud804\udc5e': 'N'
'\ud804\udc5f': 'N'
'\ud804\udc60': 'N'
'\ud804\udc61': 'N'
'\ud804\udc62': 'N'
'\ud804\udc63': 'N'
'\ud804\udc64': 'N'
'\ud804\udc65': 'N'
'\ud804\udc66': 'N'
'\ud804\udc67': 'N'
'\ud804\udc68': 'N'
'\ud804\udc69': 'N'
'\ud804\udc6a': 'N'
'\ud804\udc6b': 'N'
'\ud804\udc6c': 'N'
'\ud804\udc6d': 'N'
'\ud804\udc6e': 'N'
'\ud804\udc6f': 'N'
'\ud804\udc83': 'L'
'\ud804\udc84': 'L'
'\ud804\udc85': 'L'
'\ud804\udc86': 'L'
'\ud804\udc87': 'L'
'\ud804\udc88': 'L'
'\ud804\udc89': 'L'
'\ud804\udc8a': 'L'
'\ud804\udc8b': 'L'
'\ud804\udc8c': 'L'
'\ud804\udc8d': 'L'
'\ud804\udc8e': 'L'
'\ud804\udc8f': 'L'
'\ud804\udc90': 'L'
'\ud804\udc91': 'L'
'\ud804\udc92': 'L'
'\ud804\udc93': 'L'
'\ud804\udc94': 'L'
'\ud804\udc95': 'L'
'\ud804\udc96': 'L'
'\ud804\udc97': 'L'
'\ud804\udc98': 'L'
'\ud804\udc99': 'L'
'\ud804\udc9a': 'L'
'\ud804\udc9b': 'L'
'\ud804\udc9c': 'L'
'\ud804\udc9d': 'L'
'\ud804\udc9e': 'L'
'\ud804\udc9f': 'L'
'\ud804\udca0': 'L'
'\ud804\udca1': 'L'
'\ud804\udca2': 'L'
'\ud804\udca3': 'L'
'\ud804\udca4': 'L'
'\ud804\udca5': 'L'
'\ud804\udca6': 'L'
'\ud804\udca7': 'L'
'\ud804\udca8': 'L'
'\ud804\udca9': 'L'
'\ud804\udcaa': 'L'
'\ud804\udcab': 'L'
'\ud804\udcac': 'L'
'\ud804\udcad': 'L'
'\ud804\udcae': 'L'
'\ud804\udcaf': 'L'
'\ud804\udcd0': 'L'
'\ud804\udcd1': 'L'
'\ud804\udcd2': 'L'
'\ud804\udcd3': 'L'
'\ud804\udcd4': 'L'
'\ud804\udcd5': 'L'
'\ud804\udcd6': 'L'
'\ud804\udcd7': 'L'
'\ud804\udcd8': 'L'
'\ud804\udcd9': 'L'
'\ud804\udcda': 'L'
'\ud804\udcdb': 'L'
'\ud804\udcdc': 'L'
'\ud804\udcdd': 'L'
'\ud804\udcde': 'L'
'\ud804\udcdf': 'L'
'\ud804\udce0': 'L'
'\ud804\udce1': 'L'
'\ud804\udce2': 'L'
'\ud804\udce3': 'L'
'\ud804\udce4': 'L'
'\ud804\udce5': 'L'
'\ud804\udce6': 'L'
'\ud804\udce7': 'L'
'\ud804\udce8': 'L'
'\ud804\udcf0': 'N'
'\ud804\udcf1': 'N'
'\ud804\udcf2': 'N'
'\ud804\udcf3': 'N'
'\ud804\udcf4': 'N'
'\ud804\udcf5': 'N'
'\ud804\udcf6': 'N'
'\ud804\udcf7': 'N'
'\ud804\udcf8': 'N'
'\ud804\udcf9': 'N'
'\ud804\udd03': 'L'
'\ud804\udd04': 'L'
'\ud804\udd05': 'L'
'\ud804\udd06': 'L'
'\ud804\udd07': 'L'
'\ud804\udd08': 'L'
'\ud804\udd09': 'L'
'\ud804\udd0a': 'L'
'\ud804\udd0b': 'L'
'\ud804\udd0c': 'L'
'\ud804\udd0d': 'L'
'\ud804\udd0e': 'L'
'\ud804\udd0f': 'L'
'\ud804\udd10': 'L'
'\ud804\udd11': 'L'
'\ud804\udd12': 'L'
'\ud804\udd13': 'L'
'\ud804\udd14': 'L'
'\ud804\udd15': 'L'
'\ud804\udd16': 'L'
'\ud804\udd17': 'L'
'\ud804\udd18': 'L'
'\ud804\udd19': 'L'
'\ud804\udd1a': 'L'
'\ud804\udd1b': 'L'
'\ud804\udd1c': 'L'
'\ud804\udd1d': 'L'
'\ud804\udd1e': 'L'
'\ud804\udd1f': 'L'
'\ud804\udd20': 'L'
'\ud804\udd21': 'L'
'\ud804\udd22': 'L'
'\ud804\udd23': 'L'
'\ud804\udd24': 'L'
'\ud804\udd25': 'L'
'\ud804\udd26': 'L'
'\ud804\udd36': 'N'
'\ud804\udd37': 'N'
'\ud804\udd38': 'N'
'\ud804\udd39': 'N'
'\ud804\udd3a': 'N'
'\ud804\udd3b': 'N'
'\ud804\udd3c': 'N'
'\ud804\udd3d': 'N'
'\ud804\udd3e': 'N'
'\ud804\udd3f': 'N'
'\ud804\udd50': 'L'
'\ud804\udd51': 'L'
'\ud804\udd52': 'L'
'\ud804\udd53': 'L'
'\ud804\udd54': 'L'
'\ud804\udd55': 'L'
'\ud804\udd56': 'L'
'\ud804\udd57': 'L'
'\ud804\udd58': 'L'
'\ud804\udd59': 'L'
'\ud804\udd5a': 'L'
'\ud804\udd5b': 'L'
'\ud804\udd5c': 'L'
'\ud804\udd5d': 'L'
'\ud804\udd5e': 'L'
'\ud804\udd5f': 'L'
'\ud804\udd60': 'L'
'\ud804\udd61': 'L'
'\ud804\udd62': 'L'
'\ud804\udd63': 'L'
'\ud804\udd64': 'L'
'\ud804\udd65': 'L'
'\ud804\udd66': 'L'
'\ud804\udd67': 'L'
'\ud804\udd68': 'L'
'\ud804\udd69': 'L'
'\ud804\udd6a': 'L'
'\ud804\udd6b': 'L'
'\ud804\udd6c': 'L'
'\ud804\udd6d': 'L'
'\ud804\udd6e': 'L'
'\ud804\udd6f': 'L'
'\ud804\udd70': 'L'
'\ud804\udd71': 'L'
'\ud804\udd72': 'L'
'\ud804\udd76': 'L'
'\ud804\udd83': 'L'
'\ud804\udd84': 'L'
'\ud804\udd85': 'L'
'\ud804\udd86': 'L'
'\ud804\udd87': 'L'
'\ud804\udd88': 'L'
'\ud804\udd89': 'L'
'\ud804\udd8a': 'L'
'\ud804\udd8b': 'L'
'\ud804\udd8c': 'L'
'\ud804\udd8d': 'L'
'\ud804\udd8e': 'L'
'\ud804\udd8f': 'L'
'\ud804\udd90': 'L'
'\ud804\udd91': 'L'
'\ud804\udd92': 'L'
'\ud804\udd93': 'L'
'\ud804\udd94': 'L'
'\ud804\udd95': 'L'
'\ud804\udd96': 'L'
'\ud804\udd97': 'L'
'\ud804\udd98': 'L'
'\ud804\udd99': 'L'
'\ud804\udd9a': 'L'
'\ud804\udd9b': 'L'
'\ud804\udd9c': 'L'
'\ud804\udd9d': 'L'
'\ud804\udd9e': 'L'
'\ud804\udd9f': 'L'
'\ud804\udda0': 'L'
'\ud804\udda1': 'L'
'\ud804\udda2': 'L'
'\ud804\udda3': 'L'
'\ud804\udda4': 'L'
'\ud804\udda5': 'L'
'\ud804\udda6': 'L'
'\ud804\udda7': 'L'
'\ud804\udda8': 'L'
'\ud804\udda9': 'L'
'\ud804\uddaa': 'L'
'\ud804\uddab': 'L'
'\ud804\uddac': 'L'
'\ud804\uddad': 'L'
'\ud804\uddae': 'L'
'\ud804\uddaf': 'L'
'\ud804\uddb0': 'L'
'\ud804\uddb1': 'L'
'\ud804\uddb2': 'L'
'\ud804\uddc1': 'L'
'\ud804\uddc2': 'L'
'\ud804\uddc3': 'L'
'\ud804\uddc4': 'L'
'\ud804\uddd0': 'N'
'\ud804\uddd1': 'N'
'\ud804\uddd2': 'N'
'\ud804\uddd3': 'N'
'\ud804\uddd4': 'N'
'\ud804\uddd5': 'N'
'\ud804\uddd6': 'N'
'\ud804\uddd7': 'N'
'\ud804\uddd8': 'N'
'\ud804\uddd9': 'N'
'\ud804\uddda': 'L'
'\ud804\udddc': 'L'
'\ud804\udde1': 'N'
'\ud804\udde2': 'N'
'\ud804\udde3': 'N'
'\ud804\udde4': 'N'
'\ud804\udde5': 'N'
'\ud804\udde6': 'N'
'\ud804\udde7': 'N'
'\ud804\udde8': 'N'
'\ud804\udde9': 'N'
'\ud804\uddea': 'N'
'\ud804\uddeb': 'N'
'\ud804\uddec': 'N'
'\ud804\udded': 'N'
'\ud804\uddee': 'N'
'\ud804\uddef': 'N'
'\ud804\uddf0': 'N'
'\ud804\uddf1': 'N'
'\ud804\uddf2': 'N'
'\ud804\uddf3': 'N'
'\ud804\uddf4': 'N'
'\ud804\ude00': 'L'
'\ud804\ude01': 'L'
'\ud804\ude02': 'L'
'\ud804\ude03': 'L'
'\ud804\ude04': 'L'
'\ud804\ude05': 'L'
'\ud804\ude06': 'L'
'\ud804\ude07': 'L'
'\ud804\ude08': 'L'
'\ud804\ude09': 'L'
'\ud804\ude0a': 'L'
'\ud804\ude0b': 'L'
'\ud804\ude0c': 'L'
'\ud804\ude0d': 'L'
'\ud804\ude0e': 'L'
'\ud804\ude0f': 'L'
'\ud804\ude10': 'L'
'\ud804\ude11': 'L'
'\ud804\ude13': 'L'
'\ud804\ude14': 'L'
'\ud804\ude15': 'L'
'\ud804\ude16': 'L'
'\ud804\ude17': 'L'
'\ud804\ude18': 'L'
'\ud804\ude19': 'L'
'\ud804\ude1a': 'L'
'\ud804\ude1b': 'L'
'\ud804\ude1c': 'L'
'\ud804\ude1d': 'L'
'\ud804\ude1e': 'L'
'\ud804\ude1f': 'L'
'\ud804\ude20': 'L'
'\ud804\ude21': 'L'
'\ud804\ude22': 'L'
'\ud804\ude23': 'L'
'\ud804\ude24': 'L'
'\ud804\ude25': 'L'
'\ud804\ude26': 'L'
'\ud804\ude27': 'L'
'\ud804\ude28': 'L'
'\ud804\ude29': 'L'
'\ud804\ude2a': 'L'
'\ud804\ude2b': 'L'
'\ud804\ude80': 'L'
'\ud804\ude81': 'L'
'\ud804\ude82': 'L'
'\ud804\ude83': 'L'
'\ud804\ude84': 'L'
'\ud804\ude85': 'L'
'\ud804\ude86': 'L'
'\ud804\ude88': 'L'
'\ud804\ude8a': 'L'
'\ud804\ude8b': 'L'
'\ud804\ude8c': 'L'
'\ud804\ude8d': 'L'
'\ud804\ude8f': 'L'
'\ud804\ude90': 'L'
'\ud804\ude91': 'L'
'\ud804\ude92': 'L'
'\ud804\ude93': 'L'
'\ud804\ude94': 'L'
'\ud804\ude95': 'L'
'\ud804\ude96': 'L'
'\ud804\ude97': 'L'
'\ud804\ude98': 'L'
'\ud804\ude99': 'L'
'\ud804\ude9a': 'L'
'\ud804\ude9b': 'L'
'\ud804\ude9c': 'L'
'\ud804\ude9d': 'L'
'\ud804\ude9f': 'L'
'\ud804\udea0': 'L'
'\ud804\udea1': 'L'
'\ud804\udea2': 'L'
'\ud804\udea3': 'L'
'\ud804\udea4': 'L'
'\ud804\udea5': 'L'
'\ud804\udea6': 'L'
'\ud804\udea7': 'L'
'\ud804\udea8': 'L'
'\ud804\udeb0': 'L'
'\ud804\udeb1': 'L'
'\ud804\udeb2': 'L'
'\ud804\udeb3': 'L'
'\ud804\udeb4': 'L'
'\ud804\udeb5': 'L'
'\ud804\udeb6': 'L'
'\ud804\udeb7': 'L'
'\ud804\udeb8': 'L'
'\ud804\udeb9': 'L'
'\ud804\udeba': 'L'
'\ud804\udebb': 'L'
'\ud804\udebc': 'L'
'\ud804\udebd': 'L'
'\ud804\udebe': 'L'
'\ud804\udebf': 'L'
'\ud804\udec0': 'L'
'\ud804\udec1': 'L'
'\ud804\udec2': 'L'
'\ud804\udec3': 'L'
'\ud804\udec4': 'L'
'\ud804\udec5': 'L'
'\ud804\udec6': 'L'
'\ud804\udec7': 'L'
'\ud804\udec8': 'L'
'\ud804\udec9': 'L'
'\ud804\udeca': 'L'
'\ud804\udecb': 'L'
'\ud804\udecc': 'L'
'\ud804\udecd': 'L'
'\ud804\udece': 'L'
'\ud804\udecf': 'L'
'\ud804\uded0': 'L'
'\ud804\uded1': 'L'
'\ud804\uded2': 'L'
'\ud804\uded3': 'L'
'\ud804\uded4': 'L'
'\ud804\uded5': 'L'
'\ud804\uded6': 'L'
'\ud804\uded7': 'L'
'\ud804\uded8': 'L'
'\ud804\uded9': 'L'
'\ud804\udeda': 'L'
'\ud804\udedb': 'L'
'\ud804\udedc': 'L'
'\ud804\udedd': 'L'
'\ud804\udede': 'L'
'\ud804\udef0': 'N'
'\ud804\udef1': 'N'
'\ud804\udef2': 'N'
'\ud804\udef3': 'N'
'\ud804\udef4': 'N'
'\ud804\udef5': 'N'
'\ud804\udef6': 'N'
'\ud804\udef7': 'N'
'\ud804\udef8': 'N'
'\ud804\udef9': 'N'
'\ud804\udf05': 'L'
'\ud804\udf06': 'L'
'\ud804\udf07': 'L'
'\ud804\udf08': 'L'
'\ud804\udf09': 'L'
'\ud804\udf0a': 'L'
'\ud804\udf0b': 'L'
'\ud804\udf0c': 'L'
'\ud804\udf0f': 'L'
'\ud804\udf10': 'L'
'\ud804\udf13': 'L'
'\ud804\udf14': 'L'
'\ud804\udf15': 'L'
'\ud804\udf16': 'L'
'\ud804\udf17': 'L'
'\ud804\udf18': 'L'
'\ud804\udf19': 'L'
'\ud804\udf1a': 'L'
'\ud804\udf1b': 'L'
'\ud804\udf1c': 'L'
'\ud804\udf1d': 'L'
'\ud804\udf1e': 'L'
'\ud804\udf1f': 'L'
'\ud804\udf20': 'L'
'\ud804\udf21': 'L'
'\ud804\udf22': 'L'
'\ud804\udf23': 'L'
'\ud804\udf24': 'L'
'\ud804\udf25': 'L'
'\ud804\udf26': 'L'
'\ud804\udf27': 'L'
'\ud804\udf28': 'L'
'\ud804\udf2a': 'L'
'\ud804\udf2b': 'L'
'\ud804\udf2c': 'L'
'\ud804\udf2d': 'L'
'\ud804\udf2e': 'L'
'\ud804\udf2f': 'L'
'\ud804\udf30': 'L'
'\ud804\udf32': 'L'
'\ud804\udf33': 'L'
'\ud804\udf35': 'L'
'\ud804\udf36': 'L'
'\ud804\udf37': 'L'
'\ud804\udf38': 'L'
'\ud804\udf39': 'L'
'\ud804\udf3d': 'L'
'\ud804\udf50': 'L'
'\ud804\udf5d': 'L'
'\ud804\udf5e': 'L'
'\ud804\udf5f': 'L'
'\ud804\udf60': 'L'
'\ud804\udf61': 'L'
'\ud805\udc80': 'L'
'\ud805\udc81': 'L'
'\ud805\udc82': 'L'
'\ud805\udc83': 'L'
'\ud805\udc84': 'L'
'\ud805\udc85': 'L'
'\ud805\udc86': 'L'
'\ud805\udc87': 'L'
'\ud805\udc88': 'L'
'\ud805\udc89': 'L'
'\ud805\udc8a': 'L'
'\ud805\udc8b': 'L'
'\ud805\udc8c': 'L'
'\ud805\udc8d': 'L'
'\ud805\udc8e': 'L'
'\ud805\udc8f': 'L'
'\ud805\udc90': 'L'
'\ud805\udc91': 'L'
'\ud805\udc92': 'L'
'\ud805\udc93': 'L'
'\ud805\udc94': 'L'
'\ud805\udc95': 'L'
'\ud805\udc96': 'L'
'\ud805\udc97': 'L'
'\ud805\udc98': 'L'
'\ud805\udc99': 'L'
'\ud805\udc9a': 'L'
'\ud805\udc9b': 'L'
'\ud805\udc9c': 'L'
'\ud805\udc9d': 'L'
'\ud805\udc9e': 'L'
'\ud805\udc9f': 'L'
'\ud805\udca0': 'L'
'\ud805\udca1': 'L'
'\ud805\udca2': 'L'
'\ud805\udca3': 'L'
'\ud805\udca4': 'L'
'\ud805\udca5': 'L'
'\ud805\udca6': 'L'
'\ud805\udca7': 'L'
'\ud805\udca8': 'L'
'\ud805\udca9': 'L'
'\ud805\udcaa': 'L'
'\ud805\udcab': 'L'
'\ud805\udcac': 'L'
'\ud805\udcad': 'L'
'\ud805\udcae': 'L'
'\ud805\udcaf': 'L'
'\ud805\udcc4': 'L'
'\ud805\udcc5': 'L'
'\ud805\udcc7': 'L'
'\ud805\udcd0': 'N'
'\ud805\udcd1': 'N'
'\ud805\udcd2': 'N'
'\ud805\udcd3': 'N'
'\ud805\udcd4': 'N'
'\ud805\udcd5': 'N'
'\ud805\udcd6': 'N'
'\ud805\udcd7': 'N'
'\ud805\udcd8': 'N'
'\ud805\udcd9': 'N'
'\ud805\udd80': 'L'
'\ud805\udd81': 'L'
'\ud805\udd82': 'L'
'\ud805\udd83': 'L'
'\ud805\udd84': 'L'
'\ud805\udd85': 'L'
'\ud805\udd86': 'L'
'\ud805\udd87': 'L'
'\ud805\udd88': 'L'
'\ud805\udd89': 'L'
'\ud805\udd8a': 'L'
'\ud805\udd8b': 'L'
'\ud805\udd8c': 'L'
'\ud805\udd8d': 'L'
'\ud805\udd8e': 'L'
'\ud805\udd8f': 'L'
'\ud805\udd90': 'L'
'\ud805\udd91': 'L'
'\ud805\udd92': 'L'
'\ud805\udd93': 'L'
'\ud805\udd94': 'L'
'\ud805\udd95': 'L'
'\ud805\udd96': 'L'
'\ud805\udd97': 'L'
'\ud805\udd98': 'L'
'\ud805\udd99': 'L'
'\ud805\udd9a': 'L'
'\ud805\udd9b': 'L'
'\ud805\udd9c': 'L'
'\ud805\udd9d': 'L'
'\ud805\udd9e': 'L'
'\ud805\udd9f': 'L'
'\ud805\udda0': 'L'
'\ud805\udda1': 'L'
'\ud805\udda2': 'L'
'\ud805\udda3': 'L'
'\ud805\udda4': 'L'
'\ud805\udda5': 'L'
'\ud805\udda6': 'L'
'\ud805\udda7': 'L'
'\ud805\udda8': 'L'
'\ud805\udda9': 'L'
'\ud805\uddaa': 'L'
'\ud805\uddab': 'L'
'\ud805\uddac': 'L'
'\ud805\uddad': 'L'
'\ud805\uddae': 'L'
'\ud805\uddd8': 'L'
'\ud805\uddd9': 'L'
'\ud805\uddda': 'L'
'\ud805\udddb': 'L'
'\ud805\ude00': 'L'
'\ud805\ude01': 'L'
'\ud805\ude02': 'L'
'\ud805\ude03': 'L'
'\ud805\ude04': 'L'
'\ud805\ude05': 'L'
'\ud805\ude06': 'L'
'\ud805\ude07': 'L'
'\ud805\ude08': 'L'
'\ud805\ude09': 'L'
'\ud805\ude0a': 'L'
'\ud805\ude0b': 'L'
'\ud805\ude0c': 'L'
'\ud805\ude0d': 'L'
'\ud805\ude0e': 'L'
'\ud805\ude0f': 'L'
'\ud805\ude10': 'L'
'\ud805\ude11': 'L'
'\ud805\ude12': 'L'
'\ud805\ude13': 'L'
'\ud805\ude14': 'L'
'\ud805\ude15': 'L'
'\ud805\ude16': 'L'
'\ud805\ude17': 'L'
'\ud805\ude18': 'L'
'\ud805\ude19': 'L'
'\ud805\ude1a': 'L'
'\ud805\ude1b': 'L'
'\ud805\ude1c': 'L'
'\ud805\ude1d': 'L'
'\ud805\ude1e': 'L'
'\ud805\ude1f': 'L'
'\ud805\ude20': 'L'
'\ud805\ude21': 'L'
'\ud805\ude22': 'L'
'\ud805\ude23': 'L'
'\ud805\ude24': 'L'
'\ud805\ude25': 'L'
'\ud805\ude26': 'L'
'\ud805\ude27': 'L'
'\ud805\ude28': 'L'
'\ud805\ude29': 'L'
'\ud805\ude2a': 'L'
'\ud805\ude2b': 'L'
'\ud805\ude2c': 'L'
'\ud805\ude2d': 'L'
'\ud805\ude2e': 'L'
'\ud805\ude2f': 'L'
'\ud805\ude44': 'L'
'\ud805\ude50': 'N'
'\ud805\ude51': 'N'
'\ud805\ude52': 'N'
'\ud805\ude53': 'N'
'\ud805\ude54': 'N'
'\ud805\ude55': 'N'
'\ud805\ude56': 'N'
'\ud805\ude57': 'N'
'\ud805\ude58': 'N'
'\ud805\ude59': 'N'
'\ud805\ude80': 'L'
'\ud805\ude81': 'L'
'\ud805\ude82': 'L'
'\ud805\ude83': 'L'
'\ud805\ude84': 'L'
'\ud805\ude85': 'L'
'\ud805\ude86': 'L'
'\ud805\ude87': 'L'
'\ud805\ude88': 'L'
'\ud805\ude89': 'L'
'\ud805\ude8a': 'L'
'\ud805\ude8b': 'L'
'\ud805\ude8c': 'L'
'\ud805\ude8d': 'L'
'\ud805\ude8e': 'L'
'\ud805\ude8f': 'L'
'\ud805\ude90': 'L'
'\ud805\ude91': 'L'
'\ud805\ude92': 'L'
'\ud805\ude93': 'L'
'\ud805\ude94': 'L'
'\ud805\ude95': 'L'
'\ud805\ude96': 'L'
'\ud805\ude97': 'L'
'\ud805\ude98': 'L'
'\ud805\ude99': 'L'
'\ud805\ude9a': 'L'
'\ud805\ude9b': 'L'
'\ud805\ude9c': 'L'
'\ud805\ude9d': 'L'
'\ud805\ude9e': 'L'
'\ud805\ude9f': 'L'
'\ud805\udea0': 'L'
'\ud805\udea1': 'L'
'\ud805\udea2': 'L'
'\ud805\udea3': 'L'
'\ud805\udea4': 'L'
'\ud805\udea5': 'L'
'\ud805\udea6': 'L'
'\ud805\udea7': 'L'
'\ud805\udea8': 'L'
'\ud805\udea9': 'L'
'\ud805\udeaa': 'L'
'\ud805\udec0': 'N'
'\ud805\udec1': 'N'
'\ud805\udec2': 'N'
'\ud805\udec3': 'N'
'\ud805\udec4': 'N'
'\ud805\udec5': 'N'
'\ud805\udec6': 'N'
'\ud805\udec7': 'N'
'\ud805\udec8': 'N'
'\ud805\udec9': 'N'
'\ud805\udf00': 'L'
'\ud805\udf01': 'L'
'\ud805\udf02': 'L'
'\ud805\udf03': 'L'
'\ud805\udf04': 'L'
'\ud805\udf05': 'L'
'\ud805\udf06': 'L'
'\ud805\udf07': 'L'
'\ud805\udf08': 'L'
'\ud805\udf09': 'L'
'\ud805\udf0a': 'L'
'\ud805\udf0b': 'L'
'\ud805\udf0c': 'L'
'\ud805\udf0d': 'L'
'\ud805\udf0e': 'L'
'\ud805\udf0f': 'L'
'\ud805\udf10': 'L'
'\ud805\udf11': 'L'
'\ud805\udf12': 'L'
'\ud805\udf13': 'L'
'\ud805\udf14': 'L'
'\ud805\udf15': 'L'
'\ud805\udf16': 'L'
'\ud805\udf17': 'L'
'\ud805\udf18': 'L'
'\ud805\udf19': 'L'
'\ud805\udf30': 'N'
'\ud805\udf31': 'N'
'\ud805\udf32': 'N'
'\ud805\udf33': 'N'
'\ud805\udf34': 'N'
'\ud805\udf35': 'N'
'\ud805\udf36': 'N'
'\ud805\udf37': 'N'
'\ud805\udf38': 'N'
'\ud805\udf39': 'N'
'\ud805\udf3a': 'N'
'\ud805\udf3b': 'N'
'\ud806\udca0': 'Lu'
'\ud806\udca1': 'Lu'
'\ud806\udca2': 'Lu'
'\ud806\udca3': 'Lu'
'\ud806\udca4': 'Lu'
'\ud806\udca5': 'Lu'
'\ud806\udca6': 'Lu'
'\ud806\udca7': 'Lu'
'\ud806\udca8': 'Lu'
'\ud806\udca9': 'Lu'
'\ud806\udcaa': 'Lu'
'\ud806\udcab': 'Lu'
'\ud806\udcac': 'Lu'
'\ud806\udcad': 'Lu'
'\ud806\udcae': 'Lu'
'\ud806\udcaf': 'Lu'
'\ud806\udcb0': 'Lu'
'\ud806\udcb1': 'Lu'
'\ud806\udcb2': 'Lu'
'\ud806\udcb3': 'Lu'
'\ud806\udcb4': 'Lu'
'\ud806\udcb5': 'Lu'
'\ud806\udcb6': 'Lu'
'\ud806\udcb7': 'Lu'
'\ud806\udcb8': 'Lu'
'\ud806\udcb9': 'Lu'
'\ud806\udcba': 'Lu'
'\ud806\udcbb': 'Lu'
'\ud806\udcbc': 'Lu'
'\ud806\udcbd': 'Lu'
'\ud806\udcbe': 'Lu'
'\ud806\udcbf': 'Lu'
'\ud806\udcc0': 'L'
'\ud806\udcc1': 'L'
'\ud806\udcc2': 'L'
'\ud806\udcc3': 'L'
'\ud806\udcc4': 'L'
'\ud806\udcc5': 'L'
'\ud806\udcc6': 'L'
'\ud806\udcc7': 'L'
'\ud806\udcc8': 'L'
'\ud806\udcc9': 'L'
'\ud806\udcca': 'L'
'\ud806\udccb': 'L'
'\ud806\udccc': 'L'
'\ud806\udccd': 'L'
'\ud806\udcce': 'L'
'\ud806\udccf': 'L'
'\ud806\udcd0': 'L'
'\ud806\udcd1': 'L'
'\ud806\udcd2': 'L'
'\ud806\udcd3': 'L'
'\ud806\udcd4': 'L'
'\ud806\udcd5': 'L'
'\ud806\udcd6': 'L'
'\ud806\udcd7': 'L'
'\ud806\udcd8': 'L'
'\ud806\udcd9': 'L'
'\ud806\udcda': 'L'
'\ud806\udcdb': 'L'
'\ud806\udcdc': 'L'
'\ud806\udcdd': 'L'
'\ud806\udcde': 'L'
'\ud806\udcdf': 'L'
'\ud806\udce0': 'N'
'\ud806\udce1': 'N'
'\ud806\udce2': 'N'
'\ud806\udce3': 'N'
'\ud806\udce4': 'N'
'\ud806\udce5': 'N'
'\ud806\udce6': 'N'
'\ud806\udce7': 'N'
'\ud806\udce8': 'N'
'\ud806\udce9': 'N'
'\ud806\udcea': 'N'
'\ud806\udceb': 'N'
'\ud806\udcec': 'N'
'\ud806\udced': 'N'
'\ud806\udcee': 'N'
'\ud806\udcef': 'N'
'\ud806\udcf0': 'N'
'\ud806\udcf1': 'N'
'\ud806\udcf2': 'N'
'\ud806\udcff': 'L'
'\ud806\udec0': 'L'
'\ud806\udec1': 'L'
'\ud806\udec2': 'L'
'\ud806\udec3': 'L'
'\ud806\udec4': 'L'
'\ud806\udec5': 'L'
'\ud806\udec6': 'L'
'\ud806\udec7': 'L'
'\ud806\udec8': 'L'
'\ud806\udec9': 'L'
'\ud806\udeca': 'L'
'\ud806\udecb': 'L'
'\ud806\udecc': 'L'
'\ud806\udecd': 'L'
'\ud806\udece': 'L'
'\ud806\udecf': 'L'
'\ud806\uded0': 'L'
'\ud806\uded1': 'L'
'\ud806\uded2': 'L'
'\ud806\uded3': 'L'
'\ud806\uded4': 'L'
'\ud806\uded5': 'L'
'\ud806\uded6': 'L'
'\ud806\uded7': 'L'
'\ud806\uded8': 'L'
'\ud806\uded9': 'L'
'\ud806\udeda': 'L'
'\ud806\udedb': 'L'
'\ud806\udedc': 'L'
'\ud806\udedd': 'L'
'\ud806\udede': 'L'
'\ud806\udedf': 'L'
'\ud806\udee0': 'L'
'\ud806\udee1': 'L'
'\ud806\udee2': 'L'
'\ud806\udee3': 'L'
'\ud806\udee4': 'L'
'\ud806\udee5': 'L'
'\ud806\udee6': 'L'
'\ud806\udee7': 'L'
'\ud806\udee8': 'L'
'\ud806\udee9': 'L'
'\ud806\udeea': 'L'
'\ud806\udeeb': 'L'
'\ud806\udeec': 'L'
'\ud806\udeed': 'L'
'\ud806\udeee': 'L'
'\ud806\udeef': 'L'
'\ud806\udef0': 'L'
'\ud806\udef1': 'L'
'\ud806\udef2': 'L'
'\ud806\udef3': 'L'
'\ud806\udef4': 'L'
'\ud806\udef5': 'L'
'\ud806\udef6': 'L'
'\ud806\udef7': 'L'
'\ud806\udef8': 'L'
'\ud808\udc00': 'L'
'\ud808\udc01': 'L'
'\ud808\udc02': 'L'
'\ud808\udc03': 'L'
'\ud808\udc04': 'L'
'\ud808\udc05': 'L'
'\ud808\udc06': 'L'
'\ud808\udc07': 'L'
'\ud808\udc08': 'L'
'\ud808\udc09': 'L'
'\ud808\udc0a': 'L'
'\ud808\udc0b': 'L'
'\ud808\udc0c': 'L'
'\ud808\udc0d': 'L'
'\ud808\udc0e': 'L'
'\ud808\udc0f': 'L'
'\ud808\udc10': 'L'
'\ud808\udc11': 'L'
'\ud808\udc12': 'L'
'\ud808\udc13': 'L'
'\ud808\udc14': 'L'
'\ud808\udc15': 'L'
'\ud808\udc16': 'L'
'\ud808\udc17': 'L'
'\ud808\udc18': 'L'
'\ud808\udc19': 'L'
'\ud808\udc1a': 'L'
'\ud808\udc1b': 'L'
'\ud808\udc1c': 'L'
'\ud808\udc1d': 'L'
'\ud808\udc1e': 'L'
'\ud808\udc1f': 'L'
'\ud808\udc20': 'L'
'\ud808\udc21': 'L'
'\ud808\udc22': 'L'
'\ud808\udc23': 'L'
'\ud808\udc24': 'L'
'\ud808\udc25': 'L'
'\ud808\udc26': 'L'
'\ud808\udc27': 'L'
'\ud808\udc28': 'L'
'\ud808\udc29': 'L'
'\ud808\udc2a': 'L'
'\ud808\udc2b': 'L'
'\ud808\udc2c': 'L'
'\ud808\udc2d': 'L'
'\ud808\udc2e': 'L'
'\ud808\udc2f': 'L'
'\ud808\udc30': 'L'
'\ud808\udc31': 'L'
'\ud808\udc32': 'L'
'\ud808\udc33': 'L'
'\ud808\udc34': 'L'
'\ud808\udc35': 'L'
'\ud808\udc36': 'L'
'\ud808\udc37': 'L'
'\ud808\udc38': 'L'
'\ud808\udc39': 'L'
'\ud808\udc3a': 'L'
'\ud808\udc3b': 'L'
'\ud808\udc3c': 'L'
'\ud808\udc3d': 'L'
'\ud808\udc3e': 'L'
'\ud808\udc3f': 'L'
'\ud808\udc40': 'L'
'\ud808\udc41': 'L'
'\ud808\udc42': 'L'
'\ud808\udc43': 'L'
'\ud808\udc44': 'L'
'\ud808\udc45': 'L'
'\ud808\udc46': 'L'
'\ud808\udc47': 'L'
'\ud808\udc48': 'L'
'\ud808\udc49': 'L'
'\ud808\udc4a': 'L'
'\ud808\udc4b': 'L'
'\ud808\udc4c': 'L'
'\ud808\udc4d': 'L'
'\ud808\udc4e': 'L'
'\ud808\udc4f': 'L'
'\ud808\udc50': 'L'
'\ud808\udc51': 'L'
'\ud808\udc52': 'L'
'\ud808\udc53': 'L'
'\ud808\udc54': 'L'
'\ud808\udc55': 'L'
'\ud808\udc56': 'L'
'\ud808\udc57': 'L'
'\ud808\udc58': 'L'
'\ud808\udc59': 'L'
'\ud808\udc5a': 'L'
'\ud808\udc5b': 'L'
'\ud808\udc5c': 'L'
'\ud808\udc5d': 'L'
'\ud808\udc5e': 'L'
'\ud808\udc5f': 'L'
'\ud808\udc60': 'L'
'\ud808\udc61': 'L'
'\ud808\udc62': 'L'
'\ud808\udc63': 'L'
'\ud808\udc64': 'L'
'\ud808\udc65': 'L'
'\ud808\udc66': 'L'
'\ud808\udc67': 'L'
'\ud808\udc68': 'L'
'\ud808\udc69': 'L'
'\ud808\udc6a': 'L'
'\ud808\udc6b': 'L'
'\ud808\udc6c': 'L'
'\ud808\udc6d': 'L'
'\ud808\udc6e': 'L'
'\ud808\udc6f': 'L'
'\ud808\udc70': 'L'
'\ud808\udc71': 'L'
'\ud808\udc72': 'L'
'\ud808\udc73': 'L'
'\ud808\udc74': 'L'
'\ud808\udc75': 'L'
'\ud808\udc76': 'L'
'\ud808\udc77': 'L'
'\ud808\udc78': 'L'
'\ud808\udc79': 'L'
'\ud808\udc7a': 'L'
'\ud808\udc7b': 'L'
'\ud808\udc7c': 'L'
'\ud808\udc7d': 'L'
'\ud808\udc7e': 'L'
'\ud808\udc7f': 'L'
'\ud808\udc80': 'L'
'\ud808\udc81': 'L'
'\ud808\udc82': 'L'
'\ud808\udc83': 'L'
'\ud808\udc84': 'L'
'\ud808\udc85': 'L'
'\ud808\udc86': 'L'
'\ud808\udc87': 'L'
'\ud808\udc88': 'L'
'\ud808\udc89': 'L'
'\ud808\udc8a': 'L'
'\ud808\udc8b': 'L'
'\ud808\udc8c': 'L'
'\ud808\udc8d': 'L'
'\ud808\udc8e': 'L'
'\ud808\udc8f': 'L'
'\ud808\udc90': 'L'
'\ud808\udc91': 'L'
'\ud808\udc92': 'L'
'\ud808\udc93': 'L'
'\ud808\udc94': 'L'
'\ud808\udc95': 'L'
'\ud808\udc96': 'L'
'\ud808\udc97': 'L'
'\ud808\udc98': 'L'
'\ud808\udc99': 'L'
'\ud808\udc9a': 'L'
'\ud808\udc9b': 'L'
'\ud808\udc9c': 'L'
'\ud808\udc9d': 'L'
'\ud808\udc9e': 'L'
'\ud808\udc9f': 'L'
'\ud808\udca0': 'L'
'\ud808\udca1': 'L'
'\ud808\udca2': 'L'
'\ud808\udca3': 'L'
'\ud808\udca4': 'L'
'\ud808\udca5': 'L'
'\ud808\udca6': 'L'
'\ud808\udca7': 'L'
'\ud808\udca8': 'L'
'\ud808\udca9': 'L'
'\ud808\udcaa': 'L'
'\ud808\udcab': 'L'
'\ud808\udcac': 'L'
'\ud808\udcad': 'L'
'\ud808\udcae': 'L'
'\ud808\udcaf': 'L'
'\ud808\udcb0': 'L'
'\ud808\udcb1': 'L'
'\ud808\udcb2': 'L'
'\ud808\udcb3': 'L'
'\ud808\udcb4': 'L'
'\ud808\udcb5': 'L'
'\ud808\udcb6': 'L'
'\ud808\udcb7': 'L'
'\ud808\udcb8': 'L'
'\ud808\udcb9': 'L'
'\ud808\udcba': 'L'
'\ud808\udcbb': 'L'
'\ud808\udcbc': 'L'
'\ud808\udcbd': 'L'
'\ud808\udcbe': 'L'
'\ud808\udcbf': 'L'
'\ud808\udcc0': 'L'
'\ud808\udcc1': 'L'
'\ud808\udcc2': 'L'
'\ud808\udcc3': 'L'
'\ud808\udcc4': 'L'
'\ud808\udcc5': 'L'
'\ud808\udcc6': 'L'
'\ud808\udcc7': 'L'
'\ud808\udcc8': 'L'
'\ud808\udcc9': 'L'
'\ud808\udcca': 'L'
'\ud808\udccb': 'L'
'\ud808\udccc': 'L'
'\ud808\udccd': 'L'
'\ud808\udcce': 'L'
'\ud808\udccf': 'L'
'\ud808\udcd0': 'L'
'\ud808\udcd1': 'L'
'\ud808\udcd2': 'L'
'\ud808\udcd3': 'L'
'\ud808\udcd4': 'L'
'\ud808\udcd5': 'L'
'\ud808\udcd6': 'L'
'\ud808\udcd7': 'L'
'\ud808\udcd8': 'L'
'\ud808\udcd9': 'L'
'\ud808\udcda': 'L'
'\ud808\udcdb': 'L'
'\ud808\udcdc': 'L'
'\ud808\udcdd': 'L'
'\ud808\udcde': 'L'
'\ud808\udcdf': 'L'
'\ud808\udce0': 'L'
'\ud808\udce1': 'L'
'\ud808\udce2': 'L'
'\ud808\udce3': 'L'
'\ud808\udce4': 'L'
'\ud808\udce5': 'L'
'\ud808\udce6': 'L'
'\ud808\udce7': 'L'
'\ud808\udce8': 'L'
'\ud808\udce9': 'L'
'\ud808\udcea': 'L'
'\ud808\udceb': 'L'
'\ud808\udcec': 'L'
'\ud808\udced': 'L'
'\ud808\udcee': 'L'
'\ud808\udcef': 'L'
'\ud808\udcf0': 'L'
'\ud808\udcf1': 'L'
'\ud808\udcf2': 'L'
'\ud808\udcf3': 'L'
'\ud808\udcf4': 'L'
'\ud808\udcf5': 'L'
'\ud808\udcf6': 'L'
'\ud808\udcf7': 'L'
'\ud808\udcf8': 'L'
'\ud808\udcf9': 'L'
'\ud808\udcfa': 'L'
'\ud808\udcfb': 'L'
'\ud808\udcfc': 'L'
'\ud808\udcfd': 'L'
'\ud808\udcfe': 'L'
'\ud808\udcff': 'L'
'\ud808\udd00': 'L'
'\ud808\udd01': 'L'
'\ud808\udd02': 'L'
'\ud808\udd03': 'L'
'\ud808\udd04': 'L'
'\ud808\udd05': 'L'
'\ud808\udd06': 'L'
'\ud808\udd07': 'L'
'\ud808\udd08': 'L'
'\ud808\udd09': 'L'
'\ud808\udd0a': 'L'
'\ud808\udd0b': 'L'
'\ud808\udd0c': 'L'
'\ud808\udd0d': 'L'
'\ud808\udd0e': 'L'
'\ud808\udd0f': 'L'
'\ud808\udd10': 'L'
'\ud808\udd11': 'L'
'\ud808\udd12': 'L'
'\ud808\udd13': 'L'
'\ud808\udd14': 'L'
'\ud808\udd15': 'L'
'\ud808\udd16': 'L'
'\ud808\udd17': 'L'
'\ud808\udd18': 'L'
'\ud808\udd19': 'L'
'\ud808\udd1a': 'L'
'\ud808\udd1b': 'L'
'\ud808\udd1c': 'L'
'\ud808\udd1d': 'L'
'\ud808\udd1e': 'L'
'\ud808\udd1f': 'L'
'\ud808\udd20': 'L'
'\ud808\udd21': 'L'
'\ud808\udd22': 'L'
'\ud808\udd23': 'L'
'\ud808\udd24': 'L'
'\ud808\udd25': 'L'
'\ud808\udd26': 'L'
'\ud808\udd27': 'L'
'\ud808\udd28': 'L'
'\ud808\udd29': 'L'
'\ud808\udd2a': 'L'
'\ud808\udd2b': 'L'
'\ud808\udd2c': 'L'
'\ud808\udd2d': 'L'
'\ud808\udd2e': 'L'
'\ud808\udd2f': 'L'
'\ud808\udd30': 'L'
'\ud808\udd31': 'L'
'\ud808\udd32': 'L'
'\ud808\udd33': 'L'
'\ud808\udd34': 'L'
'\ud808\udd35': 'L'
'\ud808\udd36': 'L'
'\ud808\udd37': 'L'
'\ud808\udd38': 'L'
'\ud808\udd39': 'L'
'\ud808\udd3a': 'L'
'\ud808\udd3b': 'L'
'\ud808\udd3c': 'L'
'\ud808\udd3d': 'L'
'\ud808\udd3e': 'L'
'\ud808\udd3f': 'L'
'\ud808\udd40': 'L'
'\ud808\udd41': 'L'
'\ud808\udd42': 'L'
'\ud808\udd43': 'L'
'\ud808\udd44': 'L'
'\ud808\udd45': 'L'
'\ud808\udd46': 'L'
'\ud808\udd47': 'L'
'\ud808\udd48': 'L'
'\ud808\udd49': 'L'
'\ud808\udd4a': 'L'
'\ud808\udd4b': 'L'
'\ud808\udd4c': 'L'
'\ud808\udd4d': 'L'
'\ud808\udd4e': 'L'
'\ud808\udd4f': 'L'
'\ud808\udd50': 'L'
'\ud808\udd51': 'L'
'\ud808\udd52': 'L'
'\ud808\udd53': 'L'
'\ud808\udd54': 'L'
'\ud808\udd55': 'L'
'\ud808\udd56': 'L'
'\ud808\udd57': 'L'
'\ud808\udd58': 'L'
'\ud808\udd59': 'L'
'\ud808\udd5a': 'L'
'\ud808\udd5b': 'L'
'\ud808\udd5c': 'L'
'\ud808\udd5d': 'L'
'\ud808\udd5e': 'L'
'\ud808\udd5f': 'L'
'\ud808\udd60': 'L'
'\ud808\udd61': 'L'
'\ud808\udd62': 'L'
'\ud808\udd63': 'L'
'\ud808\udd64': 'L'
'\ud808\udd65': 'L'
'\ud808\udd66': 'L'
'\ud808\udd67': 'L'
'\ud808\udd68': 'L'
'\ud808\udd69': 'L'
'\ud808\udd6a': 'L'
'\ud808\udd6b': 'L'
'\ud808\udd6c': 'L'
'\ud808\udd6d': 'L'
'\ud808\udd6e': 'L'
'\ud808\udd6f': 'L'
'\ud808\udd70': 'L'
'\ud808\udd71': 'L'
'\ud808\udd72': 'L'
'\ud808\udd73': 'L'
'\ud808\udd74': 'L'
'\ud808\udd75': 'L'
'\ud808\udd76': 'L'
'\ud808\udd77': 'L'
'\ud808\udd78': 'L'
'\ud808\udd79': 'L'
'\ud808\udd7a': 'L'
'\ud808\udd7b': 'L'
'\ud808\udd7c': 'L'
'\ud808\udd7d': 'L'
'\ud808\udd7e': 'L'
'\ud808\udd7f': 'L'
'\ud808\udd80': 'L'
'\ud808\udd81': 'L'
'\ud808\udd82': 'L'
'\ud808\udd83': 'L'
'\ud808\udd84': 'L'
'\ud808\udd85': 'L'
'\ud808\udd86': 'L'
'\ud808\udd87': 'L'
'\ud808\udd88': 'L'
'\ud808\udd89': 'L'
'\ud808\udd8a': 'L'
'\ud808\udd8b': 'L'
'\ud808\udd8c': 'L'
'\ud808\udd8d': 'L'
'\ud808\udd8e': 'L'
'\ud808\udd8f': 'L'
'\ud808\udd90': 'L'
'\ud808\udd91': 'L'
'\ud808\udd92': 'L'
'\ud808\udd93': 'L'
'\ud808\udd94': 'L'
'\ud808\udd95': 'L'
'\ud808\udd96': 'L'
'\ud808\udd97': 'L'
'\ud808\udd98': 'L'
'\ud808\udd99': 'L'
'\ud808\udd9a': 'L'
'\ud808\udd9b': 'L'
'\ud808\udd9c': 'L'
'\ud808\udd9d': 'L'
'\ud808\udd9e': 'L'
'\ud808\udd9f': 'L'
'\ud808\udda0': 'L'
'\ud808\udda1': 'L'
'\ud808\udda2': 'L'
'\ud808\udda3': 'L'
'\ud808\udda4': 'L'
'\ud808\udda5': 'L'
'\ud808\udda6': 'L'
'\ud808\udda7': 'L'
'\ud808\udda8': 'L'
'\ud808\udda9': 'L'
'\ud808\uddaa': 'L'
'\ud808\uddab': 'L'
'\ud808\uddac': 'L'
'\ud808\uddad': 'L'
'\ud808\uddae': 'L'
'\ud808\uddaf': 'L'
'\ud808\uddb0': 'L'
'\ud808\uddb1': 'L'
'\ud808\uddb2': 'L'
'\ud808\uddb3': 'L'
'\ud808\uddb4': 'L'
'\ud808\uddb5': 'L'
'\ud808\uddb6': 'L'
'\ud808\uddb7': 'L'
'\ud808\uddb8': 'L'
'\ud808\uddb9': 'L'
'\ud808\uddba': 'L'
'\ud808\uddbb': 'L'
'\ud808\uddbc': 'L'
'\ud808\uddbd': 'L'
'\ud808\uddbe': 'L'
'\ud808\uddbf': 'L'
'\ud808\uddc0': 'L'
'\ud808\uddc1': 'L'
'\ud808\uddc2': 'L'
'\ud808\uddc3': 'L'
'\ud808\uddc4': 'L'
'\ud808\uddc5': 'L'
'\ud808\uddc6': 'L'
'\ud808\uddc7': 'L'
'\ud808\uddc8': 'L'
'\ud808\uddc9': 'L'
'\ud808\uddca': 'L'
'\ud808\uddcb': 'L'
'\ud808\uddcc': 'L'
'\ud808\uddcd': 'L'
'\ud808\uddce': 'L'
'\ud808\uddcf': 'L'
'\ud808\uddd0': 'L'
'\ud808\uddd1': 'L'
'\ud808\uddd2': 'L'
'\ud808\uddd3': 'L'
'\ud808\uddd4': 'L'
'\ud808\uddd5': 'L'
'\ud808\uddd6': 'L'
'\ud808\uddd7': 'L'
'\ud808\uddd8': 'L'
'\ud808\uddd9': 'L'
'\ud808\uddda': 'L'
'\ud808\udddb': 'L'
'\ud808\udddc': 'L'
'\ud808\udddd': 'L'
'\ud808\uddde': 'L'
'\ud808\udddf': 'L'
'\ud808\udde0': 'L'
'\ud808\udde1': 'L'
'\ud808\udde2': 'L'
'\ud808\udde3': 'L'
'\ud808\udde4': 'L'
'\ud808\udde5': 'L'
'\ud808\udde6': 'L'
'\ud808\udde7': 'L'
'\ud808\udde8': 'L'
'\ud808\udde9': 'L'
'\ud808\uddea': 'L'
'\ud808\uddeb': 'L'
'\ud808\uddec': 'L'
'\ud808\udded': 'L'
'\ud808\uddee': 'L'
'\ud808\uddef': 'L'
'\ud808\uddf0': 'L'
'\ud808\uddf1': 'L'
'\ud808\uddf2': 'L'
'\ud808\uddf3': 'L'
'\ud808\uddf4': 'L'
'\ud808\uddf5': 'L'
'\ud808\uddf6': 'L'
'\ud808\uddf7': 'L'
'\ud808\uddf8': 'L'
'\ud808\uddf9': 'L'
'\ud808\uddfa': 'L'
'\ud808\uddfb': 'L'
'\ud808\uddfc': 'L'
'\ud808\uddfd': 'L'
'\ud808\uddfe': 'L'
'\ud808\uddff': 'L'
'\ud808\ude00': 'L'
'\ud808\ude01': 'L'
'\ud808\ude02': 'L'
'\ud808\ude03': 'L'
'\ud808\ude04': 'L'
'\ud808\ude05': 'L'
'\ud808\ude06': 'L'
'\ud808\ude07': 'L'
'\ud808\ude08': 'L'
'\ud808\ude09': 'L'
'\ud808\ude0a': 'L'
'\ud808\ude0b': 'L'
'\ud808\ude0c': 'L'
'\ud808\ude0d': 'L'
'\ud808\ude0e': 'L'
'\ud808\ude0f': 'L'
'\ud808\ude10': 'L'
'\ud808\ude11': 'L'
'\ud808\ude12': 'L'
'\ud808\ude13': 'L'
'\ud808\ude14': 'L'
'\ud808\ude15': 'L'
'\ud808\ude16': 'L'
'\ud808\ude17': 'L'
'\ud808\ude18': 'L'
'\ud808\ude19': 'L'
'\ud808\ude1a': 'L'
'\ud808\ude1b': 'L'
'\ud808\ude1c': 'L'
'\ud808\ude1d': 'L'
'\ud808\ude1e': 'L'
'\ud808\ude1f': 'L'
'\ud808\ude20': 'L'
'\ud808\ude21': 'L'
'\ud808\ude22': 'L'
'\ud808\ude23': 'L'
'\ud808\ude24': 'L'
'\ud808\ude25': 'L'
'\ud808\ude26': 'L'
'\ud808\ude27': 'L'
'\ud808\ude28': 'L'
'\ud808\ude29': 'L'
'\ud808\ude2a': 'L'
'\ud808\ude2b': 'L'
'\ud808\ude2c': 'L'
'\ud808\ude2d': 'L'
'\ud808\ude2e': 'L'
'\ud808\ude2f': 'L'
'\ud808\ude30': 'L'
'\ud808\ude31': 'L'
'\ud808\ude32': 'L'
'\ud808\ude33': 'L'
'\ud808\ude34': 'L'
'\ud808\ude35': 'L'
'\ud808\ude36': 'L'
'\ud808\ude37': 'L'
'\ud808\ude38': 'L'
'\ud808\ude39': 'L'
'\ud808\ude3a': 'L'
'\ud808\ude3b': 'L'
'\ud808\ude3c': 'L'
'\ud808\ude3d': 'L'
'\ud808\ude3e': 'L'
'\ud808\ude3f': 'L'
'\ud808\ude40': 'L'
'\ud808\ude41': 'L'
'\ud808\ude42': 'L'
'\ud808\ude43': 'L'
'\ud808\ude44': 'L'
'\ud808\ude45': 'L'
'\ud808\ude46': 'L'
'\ud808\ude47': 'L'
'\ud808\ude48': 'L'
'\ud808\ude49': 'L'
'\ud808\ude4a': 'L'
'\ud808\ude4b': 'L'
'\ud808\ude4c': 'L'
'\ud808\ude4d': 'L'
'\ud808\ude4e': 'L'
'\ud808\ude4f': 'L'
'\ud808\ude50': 'L'
'\ud808\ude51': 'L'
'\ud808\ude52': 'L'
'\ud808\ude53': 'L'
'\ud808\ude54': 'L'
'\ud808\ude55': 'L'
'\ud808\ude56': 'L'
'\ud808\ude57': 'L'
'\ud808\ude58': 'L'
'\ud808\ude59': 'L'
'\ud808\ude5a': 'L'
'\ud808\ude5b': 'L'
'\ud808\ude5c': 'L'
'\ud808\ude5d': 'L'
'\ud808\ude5e': 'L'
'\ud808\ude5f': 'L'
'\ud808\ude60': 'L'
'\ud808\ude61': 'L'
'\ud808\ude62': 'L'
'\ud808\ude63': 'L'
'\ud808\ude64': 'L'
'\ud808\ude65': 'L'
'\ud808\ude66': 'L'
'\ud808\ude67': 'L'
'\ud808\ude68': 'L'
'\ud808\ude69': 'L'
'\ud808\ude6a': 'L'
'\ud808\ude6b': 'L'
'\ud808\ude6c': 'L'
'\ud808\ude6d': 'L'
'\ud808\ude6e': 'L'
'\ud808\ude6f': 'L'
'\ud808\ude70': 'L'
'\ud808\ude71': 'L'
'\ud808\ude72': 'L'
'\ud808\ude73': 'L'
'\ud808\ude74': 'L'
'\ud808\ude75': 'L'
'\ud808\ude76': 'L'
'\ud808\ude77': 'L'
'\ud808\ude78': 'L'
'\ud808\ude79': 'L'
'\ud808\ude7a': 'L'
'\ud808\ude7b': 'L'
'\ud808\ude7c': 'L'
'\ud808\ude7d': 'L'
'\ud808\ude7e': 'L'
'\ud808\ude7f': 'L'
'\ud808\ude80': 'L'
'\ud808\ude81': 'L'
'\ud808\ude82': 'L'
'\ud808\ude83': 'L'
'\ud808\ude84': 'L'
'\ud808\ude85': 'L'
'\ud808\ude86': 'L'
'\ud808\ude87': 'L'
'\ud808\ude88': 'L'
'\ud808\ude89': 'L'
'\ud808\ude8a': 'L'
'\ud808\ude8b': 'L'
'\ud808\ude8c': 'L'
'\ud808\ude8d': 'L'
'\ud808\ude8e': 'L'
'\ud808\ude8f': 'L'
'\ud808\ude90': 'L'
'\ud808\ude91': 'L'
'\ud808\ude92': 'L'
'\ud808\ude93': 'L'
'\ud808\ude94': 'L'
'\ud808\ude95': 'L'
'\ud808\ude96': 'L'
'\ud808\ude97': 'L'
'\ud808\ude98': 'L'
'\ud808\ude99': 'L'
'\ud808\ude9a': 'L'
'\ud808\ude9b': 'L'
'\ud808\ude9c': 'L'
'\ud808\ude9d': 'L'
'\ud808\ude9e': 'L'
'\ud808\ude9f': 'L'
'\ud808\udea0': 'L'
'\ud808\udea1': 'L'
'\ud808\udea2': 'L'
'\ud808\udea3': 'L'
'\ud808\udea4': 'L'
'\ud808\udea5': 'L'
'\ud808\udea6': 'L'
'\ud808\udea7': 'L'
'\ud808\udea8': 'L'
'\ud808\udea9': 'L'
'\ud808\udeaa': 'L'
'\ud808\udeab': 'L'
'\ud808\udeac': 'L'
'\ud808\udead': 'L'
'\ud808\udeae': 'L'
'\ud808\udeaf': 'L'
'\ud808\udeb0': 'L'
'\ud808\udeb1': 'L'
'\ud808\udeb2': 'L'
'\ud808\udeb3': 'L'
'\ud808\udeb4': 'L'
'\ud808\udeb5': 'L'
'\ud808\udeb6': 'L'
'\ud808\udeb7': 'L'
'\ud808\udeb8': 'L'
'\ud808\udeb9': 'L'
'\ud808\udeba': 'L'
'\ud808\udebb': 'L'
'\ud808\udebc': 'L'
'\ud808\udebd': 'L'
'\ud808\udebe': 'L'
'\ud808\udebf': 'L'
'\ud808\udec0': 'L'
'\ud808\udec1': 'L'
'\ud808\udec2': 'L'
'\ud808\udec3': 'L'
'\ud808\udec4': 'L'
'\ud808\udec5': 'L'
'\ud808\udec6': 'L'
'\ud808\udec7': 'L'
'\ud808\udec8': 'L'
'\ud808\udec9': 'L'
'\ud808\udeca': 'L'
'\ud808\udecb': 'L'
'\ud808\udecc': 'L'
'\ud808\udecd': 'L'
'\ud808\udece': 'L'
'\ud808\udecf': 'L'
'\ud808\uded0': 'L'
'\ud808\uded1': 'L'
'\ud808\uded2': 'L'
'\ud808\uded3': 'L'
'\ud808\uded4': 'L'
'\ud808\uded5': 'L'
'\ud808\uded6': 'L'
'\ud808\uded7': 'L'
'\ud808\uded8': 'L'
'\ud808\uded9': 'L'
'\ud808\udeda': 'L'
'\ud808\udedb': 'L'
'\ud808\udedc': 'L'
'\ud808\udedd': 'L'
'\ud808\udede': 'L'
'\ud808\udedf': 'L'
'\ud808\udee0': 'L'
'\ud808\udee1': 'L'
'\ud808\udee2': 'L'
'\ud808\udee3': 'L'
'\ud808\udee4': 'L'
'\ud808\udee5': 'L'
'\ud808\udee6': 'L'
'\ud808\udee7': 'L'
'\ud808\udee8': 'L'
'\ud808\udee9': 'L'
'\ud808\udeea': 'L'
'\ud808\udeeb': 'L'
'\ud808\udeec': 'L'
'\ud808\udeed': 'L'
'\ud808\udeee': 'L'
'\ud808\udeef': 'L'
'\ud808\udef0': 'L'
'\ud808\udef1': 'L'
'\ud808\udef2': 'L'
'\ud808\udef3': 'L'
'\ud808\udef4': 'L'
'\ud808\udef5': 'L'
'\ud808\udef6': 'L'
'\ud808\udef7': 'L'
'\ud808\udef8': 'L'
'\ud808\udef9': 'L'
'\ud808\udefa': 'L'
'\ud808\udefb': 'L'
'\ud808\udefc': 'L'
'\ud808\udefd': 'L'
'\ud808\udefe': 'L'
'\ud808\udeff': 'L'
'\ud808\udf00': 'L'
'\ud808\udf01': 'L'
'\ud808\udf02': 'L'
'\ud808\udf03': 'L'
'\ud808\udf04': 'L'
'\ud808\udf05': 'L'
'\ud808\udf06': 'L'
'\ud808\udf07': 'L'
'\ud808\udf08': 'L'
'\ud808\udf09': 'L'
'\ud808\udf0a': 'L'
'\ud808\udf0b': 'L'
'\ud808\udf0c': 'L'
'\ud808\udf0d': 'L'
'\ud808\udf0e': 'L'
'\ud808\udf0f': 'L'
'\ud808\udf10': 'L'
'\ud808\udf11': 'L'
'\ud808\udf12': 'L'
'\ud808\udf13': 'L'
'\ud808\udf14': 'L'
'\ud808\udf15': 'L'
'\ud808\udf16': 'L'
'\ud808\udf17': 'L'
'\ud808\udf18': 'L'
'\ud808\udf19': 'L'
'\ud808\udf1a': 'L'
'\ud808\udf1b': 'L'
'\ud808\udf1c': 'L'
'\ud808\udf1d': 'L'
'\ud808\udf1e': 'L'
'\ud808\udf1f': 'L'
'\ud808\udf20': 'L'
'\ud808\udf21': 'L'
'\ud808\udf22': 'L'
'\ud808\udf23': 'L'
'\ud808\udf24': 'L'
'\ud808\udf25': 'L'
'\ud808\udf26': 'L'
'\ud808\udf27': 'L'
'\ud808\udf28': 'L'
'\ud808\udf29': 'L'
'\ud808\udf2a': 'L'
'\ud808\udf2b': 'L'
'\ud808\udf2c': 'L'
'\ud808\udf2d': 'L'
'\ud808\udf2e': 'L'
'\ud808\udf2f': 'L'
'\ud808\udf30': 'L'
'\ud808\udf31': 'L'
'\ud808\udf32': 'L'
'\ud808\udf33': 'L'
'\ud808\udf34': 'L'
'\ud808\udf35': 'L'
'\ud808\udf36': 'L'
'\ud808\udf37': 'L'
'\ud808\udf38': 'L'
'\ud808\udf39': 'L'
'\ud808\udf3a': 'L'
'\ud808\udf3b': 'L'
'\ud808\udf3c': 'L'
'\ud808\udf3d': 'L'
'\ud808\udf3e': 'L'
'\ud808\udf3f': 'L'
'\ud808\udf40': 'L'
'\ud808\udf41': 'L'
'\ud808\udf42': 'L'
'\ud808\udf43': 'L'
'\ud808\udf44': 'L'
'\ud808\udf45': 'L'
'\ud808\udf46': 'L'
'\ud808\udf47': 'L'
'\ud808\udf48': 'L'
'\ud808\udf49': 'L'
'\ud808\udf4a': 'L'
'\ud808\udf4b': 'L'
'\ud808\udf4c': 'L'
'\ud808\udf4d': 'L'
'\ud808\udf4e': 'L'
'\ud808\udf4f': 'L'
'\ud808\udf50': 'L'
'\ud808\udf51': 'L'
'\ud808\udf52': 'L'
'\ud808\udf53': 'L'
'\ud808\udf54': 'L'
'\ud808\udf55': 'L'
'\ud808\udf56': 'L'
'\ud808\udf57': 'L'
'\ud808\udf58': 'L'
'\ud808\udf59': 'L'
'\ud808\udf5a': 'L'
'\ud808\udf5b': 'L'
'\ud808\udf5c': 'L'
'\ud808\udf5d': 'L'
'\ud808\udf5e': 'L'
'\ud808\udf5f': 'L'
'\ud808\udf60': 'L'
'\ud808\udf61': 'L'
'\ud808\udf62': 'L'
'\ud808\udf63': 'L'
'\ud808\udf64': 'L'
'\ud808\udf65': 'L'
'\ud808\udf66': 'L'
'\ud808\udf67': 'L'
'\ud808\udf68': 'L'
'\ud808\udf69': 'L'
'\ud808\udf6a': 'L'
'\ud808\udf6b': 'L'
'\ud808\udf6c': 'L'
'\ud808\udf6d': 'L'
'\ud808\udf6e': 'L'
'\ud808\udf6f': 'L'
'\ud808\udf70': 'L'
'\ud808\udf71': 'L'
'\ud808\udf72': 'L'
'\ud808\udf73': 'L'
'\ud808\udf74': 'L'
'\ud808\udf75': 'L'
'\ud808\udf76': 'L'
'\ud808\udf77': 'L'
'\ud808\udf78': 'L'
'\ud808\udf79': 'L'
'\ud808\udf7a': 'L'
'\ud808\udf7b': 'L'
'\ud808\udf7c': 'L'
'\ud808\udf7d': 'L'
'\ud808\udf7e': 'L'
'\ud808\udf7f': 'L'
'\ud808\udf80': 'L'
'\ud808\udf81': 'L'
'\ud808\udf82': 'L'
'\ud808\udf83': 'L'
'\ud808\udf84': 'L'
'\ud808\udf85': 'L'
'\ud808\udf86': 'L'
'\ud808\udf87': 'L'
'\ud808\udf88': 'L'
'\ud808\udf89': 'L'
'\ud808\udf8a': 'L'
'\ud808\udf8b': 'L'
'\ud808\udf8c': 'L'
'\ud808\udf8d': 'L'
'\ud808\udf8e': 'L'
'\ud808\udf8f': 'L'
'\ud808\udf90': 'L'
'\ud808\udf91': 'L'
'\ud808\udf92': 'L'
'\ud808\udf93': 'L'
'\ud808\udf94': 'L'
'\ud808\udf95': 'L'
'\ud808\udf96': 'L'
'\ud808\udf97': 'L'
'\ud808\udf98': 'L'
'\ud808\udf99': 'L'
'\ud809\udc00': 'N'
'\ud809\udc01': 'N'
'\ud809\udc02': 'N'
'\ud809\udc03': 'N'
'\ud809\udc04': 'N'
'\ud809\udc05': 'N'
'\ud809\udc06': 'N'
'\ud809\udc07': 'N'
'\ud809\udc08': 'N'
'\ud809\udc09': 'N'
'\ud809\udc0a': 'N'
'\ud809\udc0b': 'N'
'\ud809\udc0c': 'N'
'\ud809\udc0d': 'N'
'\ud809\udc0e': 'N'
'\ud809\udc0f': 'N'
'\ud809\udc10': 'N'
'\ud809\udc11': 'N'
'\ud809\udc12': 'N'
'\ud809\udc13': 'N'
'\ud809\udc14': 'N'
'\ud809\udc15': 'N'
'\ud809\udc16': 'N'
'\ud809\udc17': 'N'
'\ud809\udc18': 'N'
'\ud809\udc19': 'N'
'\ud809\udc1a': 'N'
'\ud809\udc1b': 'N'
'\ud809\udc1c': 'N'
'\ud809\udc1d': 'N'
'\ud809\udc1e': 'N'
'\ud809\udc1f': 'N'
'\ud809\udc20': 'N'
'\ud809\udc21': 'N'
'\ud809\udc22': 'N'
'\ud809\udc23': 'N'
'\ud809\udc24': 'N'
'\ud809\udc25': 'N'
'\ud809\udc26': 'N'
'\ud809\udc27': 'N'
'\ud809\udc28': 'N'
'\ud809\udc29': 'N'
'\ud809\udc2a': 'N'
'\ud809\udc2b': 'N'
'\ud809\udc2c': 'N'
'\ud809\udc2d': 'N'
'\ud809\udc2e': 'N'
'\ud809\udc2f': 'N'
'\ud809\udc30': 'N'
'\ud809\udc31': 'N'
'\ud809\udc32': 'N'
'\ud809\udc33': 'N'
'\ud809\udc34': 'N'
'\ud809\udc35': 'N'
'\ud809\udc36': 'N'
'\ud809\udc37': 'N'
'\ud809\udc38': 'N'
'\ud809\udc39': 'N'
'\ud809\udc3a': 'N'
'\ud809\udc3b': 'N'
'\ud809\udc3c': 'N'
'\ud809\udc3d': 'N'
'\ud809\udc3e': 'N'
'\ud809\udc3f': 'N'
'\ud809\udc40': 'N'
'\ud809\udc41': 'N'
'\ud809\udc42': 'N'
'\ud809\udc43': 'N'
'\ud809\udc44': 'N'
'\ud809\udc45': 'N'
'\ud809\udc46': 'N'
'\ud809\udc47': 'N'
'\ud809\udc48': 'N'
'\ud809\udc49': 'N'
'\ud809\udc4a': 'N'
'\ud809\udc4b': 'N'
'\ud809\udc4c': 'N'
'\ud809\udc4d': 'N'
'\ud809\udc4e': 'N'
'\ud809\udc4f': 'N'
'\ud809\udc50': 'N'
'\ud809\udc51': 'N'
'\ud809\udc52': 'N'
'\ud809\udc53': 'N'
'\ud809\udc54': 'N'
'\ud809\udc55': 'N'
'\ud809\udc56': 'N'
'\ud809\udc57': 'N'
'\ud809\udc58': 'N'
'\ud809\udc59': 'N'
'\ud809\udc5a': 'N'
'\ud809\udc5b': 'N'
'\ud809\udc5c': 'N'
'\ud809\udc5d': 'N'
'\ud809\udc5e': 'N'
'\ud809\udc5f': 'N'
'\ud809\udc60': 'N'
'\ud809\udc61': 'N'
'\ud809\udc62': 'N'
'\ud809\udc63': 'N'
'\ud809\udc64': 'N'
'\ud809\udc65': 'N'
'\ud809\udc66': 'N'
'\ud809\udc67': 'N'
'\ud809\udc68': 'N'
'\ud809\udc69': 'N'
'\ud809\udc6a': 'N'
'\ud809\udc6b': 'N'
'\ud809\udc6c': 'N'
'\ud809\udc6d': 'N'
'\ud809\udc6e': 'N'
'\ud809\udc80': 'L'
'\ud809\udc81': 'L'
'\ud809\udc82': 'L'
'\ud809\udc83': 'L'
'\ud809\udc84': 'L'
'\ud809\udc85': 'L'
'\ud809\udc86': 'L'
'\ud809\udc87': 'L'
'\ud809\udc88': 'L'
'\ud809\udc89': 'L'
'\ud809\udc8a': 'L'
'\ud809\udc8b': 'L'
'\ud809\udc8c': 'L'
'\ud809\udc8d': 'L'
'\ud809\udc8e': 'L'
'\ud809\udc8f': 'L'
'\ud809\udc90': 'L'
'\ud809\udc91': 'L'
'\ud809\udc92': 'L'
'\ud809\udc93': 'L'
'\ud809\udc94': 'L'
'\ud809\udc95': 'L'
'\ud809\udc96': 'L'
'\ud809\udc97': 'L'
'\ud809\udc98': 'L'
'\ud809\udc99': 'L'
'\ud809\udc9a': 'L'
'\ud809\udc9b': 'L'
'\ud809\udc9c': 'L'
'\ud809\udc9d': 'L'
'\ud809\udc9e': 'L'
'\ud809\udc9f': 'L'
'\ud809\udca0': 'L'
'\ud809\udca1': 'L'
'\ud809\udca2': 'L'
'\ud809\udca3': 'L'
'\ud809\udca4': 'L'
'\ud809\udca5': 'L'
'\ud809\udca6': 'L'
'\ud809\udca7': 'L'
'\ud809\udca8': 'L'
'\ud809\udca9': 'L'
'\ud809\udcaa': 'L'
'\ud809\udcab': 'L'
'\ud809\udcac': 'L'
'\ud809\udcad': 'L'
'\ud809\udcae': 'L'
'\ud809\udcaf': 'L'
'\ud809\udcb0': 'L'
'\ud809\udcb1': 'L'
'\ud809\udcb2': 'L'
'\ud809\udcb3': 'L'
'\ud809\udcb4': 'L'
'\ud809\udcb5': 'L'
'\ud809\udcb6': 'L'
'\ud809\udcb7': 'L'
'\ud809\udcb8': 'L'
'\ud809\udcb9': 'L'
'\ud809\udcba': 'L'
'\ud809\udcbb': 'L'
'\ud809\udcbc': 'L'
'\ud809\udcbd': 'L'
'\ud809\udcbe': 'L'
'\ud809\udcbf': 'L'
'\ud809\udcc0': 'L'
'\ud809\udcc1': 'L'
'\ud809\udcc2': 'L'
'\ud809\udcc3': 'L'
'\ud809\udcc4': 'L'
'\ud809\udcc5': 'L'
'\ud809\udcc6': 'L'
'\ud809\udcc7': 'L'
'\ud809\udcc8': 'L'
'\ud809\udcc9': 'L'
'\ud809\udcca': 'L'
'\ud809\udccb': 'L'
'\ud809\udccc': 'L'
'\ud809\udccd': 'L'
'\ud809\udcce': 'L'
'\ud809\udccf': 'L'
'\ud809\udcd0': 'L'
'\ud809\udcd1': 'L'
'\ud809\udcd2': 'L'
'\ud809\udcd3': 'L'
'\ud809\udcd4': 'L'
'\ud809\udcd5': 'L'
'\ud809\udcd6': 'L'
'\ud809\udcd7': 'L'
'\ud809\udcd8': 'L'
'\ud809\udcd9': 'L'
'\ud809\udcda': 'L'
'\ud809\udcdb': 'L'
'\ud809\udcdc': 'L'
'\ud809\udcdd': 'L'
'\ud809\udcde': 'L'
'\ud809\udcdf': 'L'
'\ud809\udce0': 'L'
'\ud809\udce1': 'L'
'\ud809\udce2': 'L'
'\ud809\udce3': 'L'
'\ud809\udce4': 'L'
'\ud809\udce5': 'L'
'\ud809\udce6': 'L'
'\ud809\udce7': 'L'
'\ud809\udce8': 'L'
'\ud809\udce9': 'L'
'\ud809\udcea': 'L'
'\ud809\udceb': 'L'
'\ud809\udcec': 'L'
'\ud809\udced': 'L'
'\ud809\udcee': 'L'
'\ud809\udcef': 'L'
'\ud809\udcf0': 'L'
'\ud809\udcf1': 'L'
'\ud809\udcf2': 'L'
'\ud809\udcf3': 'L'
'\ud809\udcf4': 'L'
'\ud809\udcf5': 'L'
'\ud809\udcf6': 'L'
'\ud809\udcf7': 'L'
'\ud809\udcf8': 'L'
'\ud809\udcf9': 'L'
'\ud809\udcfa': 'L'
'\ud809\udcfb': 'L'
'\ud809\udcfc': 'L'
'\ud809\udcfd': 'L'
'\ud809\udcfe': 'L'
'\ud809\udcff': 'L'
'\ud809\udd00': 'L'
'\ud809\udd01': 'L'
'\ud809\udd02': 'L'
'\ud809\udd03': 'L'
'\ud809\udd04': 'L'
'\ud809\udd05': 'L'
'\ud809\udd06': 'L'
'\ud809\udd07': 'L'
'\ud809\udd08': 'L'
'\ud809\udd09': 'L'
'\ud809\udd0a': 'L'
'\ud809\udd0b': 'L'
'\ud809\udd0c': 'L'
'\ud809\udd0d': 'L'
'\ud809\udd0e': 'L'
'\ud809\udd0f': 'L'
'\ud809\udd10': 'L'
'\ud809\udd11': 'L'
'\ud809\udd12': 'L'
'\ud809\udd13': 'L'
'\ud809\udd14': 'L'
'\ud809\udd15': 'L'
'\ud809\udd16': 'L'
'\ud809\udd17': 'L'
'\ud809\udd18': 'L'
'\ud809\udd19': 'L'
'\ud809\udd1a': 'L'
'\ud809\udd1b': 'L'
'\ud809\udd1c': 'L'
'\ud809\udd1d': 'L'
'\ud809\udd1e': 'L'
'\ud809\udd1f': 'L'
'\ud809\udd20': 'L'
'\ud809\udd21': 'L'
'\ud809\udd22': 'L'
'\ud809\udd23': 'L'
'\ud809\udd24': 'L'
'\ud809\udd25': 'L'
'\ud809\udd26': 'L'
'\ud809\udd27': 'L'
'\ud809\udd28': 'L'
'\ud809\udd29': 'L'
'\ud809\udd2a': 'L'
'\ud809\udd2b': 'L'
'\ud809\udd2c': 'L'
'\ud809\udd2d': 'L'
'\ud809\udd2e': 'L'
'\ud809\udd2f': 'L'
'\ud809\udd30': 'L'
'\ud809\udd31': 'L'
'\ud809\udd32': 'L'
'\ud809\udd33': 'L'
'\ud809\udd34': 'L'
'\ud809\udd35': 'L'
'\ud809\udd36': 'L'
'\ud809\udd37': 'L'
'\ud809\udd38': 'L'
'\ud809\udd39': 'L'
'\ud809\udd3a': 'L'
'\ud809\udd3b': 'L'
'\ud809\udd3c': 'L'
'\ud809\udd3d': 'L'
'\ud809\udd3e': 'L'
'\ud809\udd3f': 'L'
'\ud809\udd40': 'L'
'\ud809\udd41': 'L'
'\ud809\udd42': 'L'
'\ud809\udd43': 'L'
'\ud80c\udc00': 'L'
'\ud80c\udc01': 'L'
'\ud80c\udc02': 'L'
'\ud80c\udc03': 'L'
'\ud80c\udc04': 'L'
'\ud80c\udc05': 'L'
'\ud80c\udc06': 'L'
'\ud80c\udc07': 'L'
'\ud80c\udc08': 'L'
'\ud80c\udc09': 'L'
'\ud80c\udc0a': 'L'
'\ud80c\udc0b': 'L'
'\ud80c\udc0c': 'L'
'\ud80c\udc0d': 'L'
'\ud80c\udc0e': 'L'
'\ud80c\udc0f': 'L'
'\ud80c\udc10': 'L'
'\ud80c\udc11': 'L'
'\ud80c\udc12': 'L'
'\ud80c\udc13': 'L'
'\ud80c\udc14': 'L'
'\ud80c\udc15': 'L'
'\ud80c\udc16': 'L'
'\ud80c\udc17': 'L'
'\ud80c\udc18': 'L'
'\ud80c\udc19': 'L'
'\ud80c\udc1a': 'L'
'\ud80c\udc1b': 'L'
'\ud80c\udc1c': 'L'
'\ud80c\udc1d': 'L'
'\ud80c\udc1e': 'L'
'\ud80c\udc1f': 'L'
'\ud80c\udc20': 'L'
'\ud80c\udc21': 'L'
'\ud80c\udc22': 'L'
'\ud80c\udc23': 'L'
'\ud80c\udc24': 'L'
'\ud80c\udc25': 'L'
'\ud80c\udc26': 'L'
'\ud80c\udc27': 'L'
'\ud80c\udc28': 'L'
'\ud80c\udc29': 'L'
'\ud80c\udc2a': 'L'
'\ud80c\udc2b': 'L'
'\ud80c\udc2c': 'L'
'\ud80c\udc2d': 'L'
'\ud80c\udc2e': 'L'
'\ud80c\udc2f': 'L'
'\ud80c\udc30': 'L'
'\ud80c\udc31': 'L'
'\ud80c\udc32': 'L'
'\ud80c\udc33': 'L'
'\ud80c\udc34': 'L'
'\ud80c\udc35': 'L'
'\ud80c\udc36': 'L'
'\ud80c\udc37': 'L'
'\ud80c\udc38': 'L'
'\ud80c\udc39': 'L'
'\ud80c\udc3a': 'L'
'\ud80c\udc3b': 'L'
'\ud80c\udc3c': 'L'
'\ud80c\udc3d': 'L'
'\ud80c\udc3e': 'L'
'\ud80c\udc3f': 'L'
'\ud80c\udc40': 'L'
'\ud80c\udc41': 'L'
'\ud80c\udc42': 'L'
'\ud80c\udc43': 'L'
'\ud80c\udc44': 'L'
'\ud80c\udc45': 'L'
'\ud80c\udc46': 'L'
'\ud80c\udc47': 'L'
'\ud80c\udc48': 'L'
'\ud80c\udc49': 'L'
'\ud80c\udc4a': 'L'
'\ud80c\udc4b': 'L'
'\ud80c\udc4c': 'L'
'\ud80c\udc4d': 'L'
'\ud80c\udc4e': 'L'
'\ud80c\udc4f': 'L'
'\ud80c\udc50': 'L'
'\ud80c\udc51': 'L'
'\ud80c\udc52': 'L'
'\ud80c\udc53': 'L'
'\ud80c\udc54': 'L'
'\ud80c\udc55': 'L'
'\ud80c\udc56': 'L'
'\ud80c\udc57': 'L'
'\ud80c\udc58': 'L'
'\ud80c\udc59': 'L'
'\ud80c\udc5a': 'L'
'\ud80c\udc5b': 'L'
'\ud80c\udc5c': 'L'
'\ud80c\udc5d': 'L'
'\ud80c\udc5e': 'L'
'\ud80c\udc5f': 'L'
'\ud80c\udc60': 'L'
'\ud80c\udc61': 'L'
'\ud80c\udc62': 'L'
'\ud80c\udc63': 'L'
'\ud80c\udc64': 'L'
'\ud80c\udc65': 'L'
'\ud80c\udc66': 'L'
'\ud80c\udc67': 'L'
'\ud80c\udc68': 'L'
'\ud80c\udc69': 'L'
'\ud80c\udc6a': 'L'
'\ud80c\udc6b': 'L'
'\ud80c\udc6c': 'L'
'\ud80c\udc6d': 'L'
'\ud80c\udc6e': 'L'
'\ud80c\udc6f': 'L'
'\ud80c\udc70': 'L'
'\ud80c\udc71': 'L'
'\ud80c\udc72': 'L'
'\ud80c\udc73': 'L'
'\ud80c\udc74': 'L'
'\ud80c\udc75': 'L'
'\ud80c\udc76': 'L'
'\ud80c\udc77': 'L'
'\ud80c\udc78': 'L'
'\ud80c\udc79': 'L'
'\ud80c\udc7a': 'L'
'\ud80c\udc7b': 'L'
'\ud80c\udc7c': 'L'
'\ud80c\udc7d': 'L'
'\ud80c\udc7e': 'L'
'\ud80c\udc7f': 'L'
'\ud80c\udc80': 'L'
'\ud80c\udc81': 'L'
'\ud80c\udc82': 'L'
'\ud80c\udc83': 'L'
'\ud80c\udc84': 'L'
'\ud80c\udc85': 'L'
'\ud80c\udc86': 'L'
'\ud80c\udc87': 'L'
'\ud80c\udc88': 'L'
'\ud80c\udc89': 'L'
'\ud80c\udc8a': 'L'
'\ud80c\udc8b': 'L'
'\ud80c\udc8c': 'L'
'\ud80c\udc8d': 'L'
'\ud80c\udc8e': 'L'
'\ud80c\udc8f': 'L'
'\ud80c\udc90': 'L'
'\ud80c\udc91': 'L'
'\ud80c\udc92': 'L'
'\ud80c\udc93': 'L'
'\ud80c\udc94': 'L'
'\ud80c\udc95': 'L'
'\ud80c\udc96': 'L'
'\ud80c\udc97': 'L'
'\ud80c\udc98': 'L'
'\ud80c\udc99': 'L'
'\ud80c\udc9a': 'L'
'\ud80c\udc9b': 'L'
'\ud80c\udc9c': 'L'
'\ud80c\udc9d': 'L'
'\ud80c\udc9e': 'L'
'\ud80c\udc9f': 'L'
'\ud80c\udca0': 'L'
'\ud80c\udca1': 'L'
'\ud80c\udca2': 'L'
'\ud80c\udca3': 'L'
'\ud80c\udca4': 'L'
'\ud80c\udca5': 'L'
'\ud80c\udca6': 'L'
'\ud80c\udca7': 'L'
'\ud80c\udca8': 'L'
'\ud80c\udca9': 'L'
'\ud80c\udcaa': 'L'
'\ud80c\udcab': 'L'
'\ud80c\udcac': 'L'
'\ud80c\udcad': 'L'
'\ud80c\udcae': 'L'
'\ud80c\udcaf': 'L'
'\ud80c\udcb0': 'L'
'\ud80c\udcb1': 'L'
'\ud80c\udcb2': 'L'
'\ud80c\udcb3': 'L'
'\ud80c\udcb4': 'L'
'\ud80c\udcb5': 'L'
'\ud80c\udcb6': 'L'
'\ud80c\udcb7': 'L'
'\ud80c\udcb8': 'L'
'\ud80c\udcb9': 'L'
'\ud80c\udcba': 'L'
'\ud80c\udcbb': 'L'
'\ud80c\udcbc': 'L'
'\ud80c\udcbd': 'L'
'\ud80c\udcbe': 'L'
'\ud80c\udcbf': 'L'
'\ud80c\udcc0': 'L'
'\ud80c\udcc1': 'L'
'\ud80c\udcc2': 'L'
'\ud80c\udcc3': 'L'
'\ud80c\udcc4': 'L'
'\ud80c\udcc5': 'L'
'\ud80c\udcc6': 'L'
'\ud80c\udcc7': 'L'
'\ud80c\udcc8': 'L'
'\ud80c\udcc9': 'L'
'\ud80c\udcca': 'L'
'\ud80c\udccb': 'L'
'\ud80c\udccc': 'L'
'\ud80c\udccd': 'L'
'\ud80c\udcce': 'L'
'\ud80c\udccf': 'L'
'\ud80c\udcd0': 'L'
'\ud80c\udcd1': 'L'
'\ud80c\udcd2': 'L'
'\ud80c\udcd3': 'L'
'\ud80c\udcd4': 'L'
'\ud80c\udcd5': 'L'
'\ud80c\udcd6': 'L'
'\ud80c\udcd7': 'L'
'\ud80c\udcd8': 'L'
'\ud80c\udcd9': 'L'
'\ud80c\udcda': 'L'
'\ud80c\udcdb': 'L'
'\ud80c\udcdc': 'L'
'\ud80c\udcdd': 'L'
'\ud80c\udcde': 'L'
'\ud80c\udcdf': 'L'
'\ud80c\udce0': 'L'
'\ud80c\udce1': 'L'
'\ud80c\udce2': 'L'
'\ud80c\udce3': 'L'
'\ud80c\udce4': 'L'
'\ud80c\udce5': 'L'
'\ud80c\udce6': 'L'
'\ud80c\udce7': 'L'
'\ud80c\udce8': 'L'
'\ud80c\udce9': 'L'
'\ud80c\udcea': 'L'
'\ud80c\udceb': 'L'
'\ud80c\udcec': 'L'
'\ud80c\udced': 'L'
'\ud80c\udcee': 'L'
'\ud80c\udcef': 'L'
'\ud80c\udcf0': 'L'
'\ud80c\udcf1': 'L'
'\ud80c\udcf2': 'L'
'\ud80c\udcf3': 'L'
'\ud80c\udcf4': 'L'
'\ud80c\udcf5': 'L'
'\ud80c\udcf6': 'L'
'\ud80c\udcf7': 'L'
'\ud80c\udcf8': 'L'
'\ud80c\udcf9': 'L'
'\ud80c\udcfa': 'L'
'\ud80c\udcfb': 'L'
'\ud80c\udcfc': 'L'
'\ud80c\udcfd': 'L'
'\ud80c\udcfe': 'L'
'\ud80c\udcff': 'L'
'\ud80c\udd00': 'L'
'\ud80c\udd01': 'L'
'\ud80c\udd02': 'L'
'\ud80c\udd03': 'L'
'\ud80c\udd04': 'L'
'\ud80c\udd05': 'L'
'\ud80c\udd06': 'L'
'\ud80c\udd07': 'L'
'\ud80c\udd08': 'L'
'\ud80c\udd09': 'L'
'\ud80c\udd0a': 'L'
'\ud80c\udd0b': 'L'
'\ud80c\udd0c': 'L'
'\ud80c\udd0d': 'L'
'\ud80c\udd0e': 'L'
'\ud80c\udd0f': 'L'
'\ud80c\udd10': 'L'
'\ud80c\udd11': 'L'
'\ud80c\udd12': 'L'
'\ud80c\udd13': 'L'
'\ud80c\udd14': 'L'
'\ud80c\udd15': 'L'
'\ud80c\udd16': 'L'
'\ud80c\udd17': 'L'
'\ud80c\udd18': 'L'
'\ud80c\udd19': 'L'
'\ud80c\udd1a': 'L'
'\ud80c\udd1b': 'L'
'\ud80c\udd1c': 'L'
'\ud80c\udd1d': 'L'
'\ud80c\udd1e': 'L'
'\ud80c\udd1f': 'L'
'\ud80c\udd20': 'L'
'\ud80c\udd21': 'L'
'\ud80c\udd22': 'L'
'\ud80c\udd23': 'L'
'\ud80c\udd24': 'L'
'\ud80c\udd25': 'L'
'\ud80c\udd26': 'L'
'\ud80c\udd27': 'L'
'\ud80c\udd28': 'L'
'\ud80c\udd29': 'L'
'\ud80c\udd2a': 'L'
'\ud80c\udd2b': 'L'
'\ud80c\udd2c': 'L'
'\ud80c\udd2d': 'L'
'\ud80c\udd2e': 'L'
'\ud80c\udd2f': 'L'
'\ud80c\udd30': 'L'
'\ud80c\udd31': 'L'
'\ud80c\udd32': 'L'
'\ud80c\udd33': 'L'
'\ud80c\udd34': 'L'
'\ud80c\udd35': 'L'
'\ud80c\udd36': 'L'
'\ud80c\udd37': 'L'
'\ud80c\udd38': 'L'
'\ud80c\udd39': 'L'
'\ud80c\udd3a': 'L'
'\ud80c\udd3b': 'L'
'\ud80c\udd3c': 'L'
'\ud80c\udd3d': 'L'
'\ud80c\udd3e': 'L'
'\ud80c\udd3f': 'L'
'\ud80c\udd40': 'L'
'\ud80c\udd41': 'L'
'\ud80c\udd42': 'L'
'\ud80c\udd43': 'L'
'\ud80c\udd44': 'L'
'\ud80c\udd45': 'L'
'\ud80c\udd46': 'L'
'\ud80c\udd47': 'L'
'\ud80c\udd48': 'L'
'\ud80c\udd49': 'L'
'\ud80c\udd4a': 'L'
'\ud80c\udd4b': 'L'
'\ud80c\udd4c': 'L'
'\ud80c\udd4d': 'L'
'\ud80c\udd4e': 'L'
'\ud80c\udd4f': 'L'
'\ud80c\udd50': 'L'
'\ud80c\udd51': 'L'
'\ud80c\udd52': 'L'
'\ud80c\udd53': 'L'
'\ud80c\udd54': 'L'
'\ud80c\udd55': 'L'
'\ud80c\udd56': 'L'
'\ud80c\udd57': 'L'
'\ud80c\udd58': 'L'
'\ud80c\udd59': 'L'
'\ud80c\udd5a': 'L'
'\ud80c\udd5b': 'L'
'\ud80c\udd5c': 'L'
'\ud80c\udd5d': 'L'
'\ud80c\udd5e': 'L'
'\ud80c\udd5f': 'L'
'\ud80c\udd60': 'L'
'\ud80c\udd61': 'L'
'\ud80c\udd62': 'L'
'\ud80c\udd63': 'L'
'\ud80c\udd64': 'L'
'\ud80c\udd65': 'L'
'\ud80c\udd66': 'L'
'\ud80c\udd67': 'L'
'\ud80c\udd68': 'L'
'\ud80c\udd69': 'L'
'\ud80c\udd6a': 'L'
'\ud80c\udd6b': 'L'
'\ud80c\udd6c': 'L'
'\ud80c\udd6d': 'L'
'\ud80c\udd6e': 'L'
'\ud80c\udd6f': 'L'
'\ud80c\udd70': 'L'
'\ud80c\udd71': 'L'
'\ud80c\udd72': 'L'
'\ud80c\udd73': 'L'
'\ud80c\udd74': 'L'
'\ud80c\udd75': 'L'
'\ud80c\udd76': 'L'
'\ud80c\udd77': 'L'
'\ud80c\udd78': 'L'
'\ud80c\udd79': 'L'
'\ud80c\udd7a': 'L'
'\ud80c\udd7b': 'L'
'\ud80c\udd7c': 'L'
'\ud80c\udd7d': 'L'
'\ud80c\udd7e': 'L'
'\ud80c\udd7f': 'L'
'\ud80c\udd80': 'L'
'\ud80c\udd81': 'L'
'\ud80c\udd82': 'L'
'\ud80c\udd83': 'L'
'\ud80c\udd84': 'L'
'\ud80c\udd85': 'L'
'\ud80c\udd86': 'L'
'\ud80c\udd87': 'L'
'\ud80c\udd88': 'L'
'\ud80c\udd89': 'L'
'\ud80c\udd8a': 'L'
'\ud80c\udd8b': 'L'
'\ud80c\udd8c': 'L'
'\ud80c\udd8d': 'L'
'\ud80c\udd8e': 'L'
'\ud80c\udd8f': 'L'
'\ud80c\udd90': 'L'
'\ud80c\udd91': 'L'
'\ud80c\udd92': 'L'
'\ud80c\udd93': 'L'
'\ud80c\udd94': 'L'
'\ud80c\udd95': 'L'
'\ud80c\udd96': 'L'
'\ud80c\udd97': 'L'
'\ud80c\udd98': 'L'
'\ud80c\udd99': 'L'
'\ud80c\udd9a': 'L'
'\ud80c\udd9b': 'L'
'\ud80c\udd9c': 'L'
'\ud80c\udd9d': 'L'
'\ud80c\udd9e': 'L'
'\ud80c\udd9f': 'L'
'\ud80c\udda0': 'L'
'\ud80c\udda1': 'L'
'\ud80c\udda2': 'L'
'\ud80c\udda3': 'L'
'\ud80c\udda4': 'L'
'\ud80c\udda5': 'L'
'\ud80c\udda6': 'L'
'\ud80c\udda7': 'L'
'\ud80c\udda8': 'L'
'\ud80c\udda9': 'L'
'\ud80c\uddaa': 'L'
'\ud80c\uddab': 'L'
'\ud80c\uddac': 'L'
'\ud80c\uddad': 'L'
'\ud80c\uddae': 'L'
'\ud80c\uddaf': 'L'
'\ud80c\uddb0': 'L'
'\ud80c\uddb1': 'L'
'\ud80c\uddb2': 'L'
'\ud80c\uddb3': 'L'
'\ud80c\uddb4': 'L'
'\ud80c\uddb5': 'L'
'\ud80c\uddb6': 'L'
'\ud80c\uddb7': 'L'
'\ud80c\uddb8': 'L'
'\ud80c\uddb9': 'L'
'\ud80c\uddba': 'L'
'\ud80c\uddbb': 'L'
'\ud80c\uddbc': 'L'
'\ud80c\uddbd': 'L'
'\ud80c\uddbe': 'L'
'\ud80c\uddbf': 'L'
'\ud80c\uddc0': 'L'
'\ud80c\uddc1': 'L'
'\ud80c\uddc2': 'L'
'\ud80c\uddc3': 'L'
'\ud80c\uddc4': 'L'
'\ud80c\uddc5': 'L'
'\ud80c\uddc6': 'L'
'\ud80c\uddc7': 'L'
'\ud80c\uddc8': 'L'
'\ud80c\uddc9': 'L'
'\ud80c\uddca': 'L'
'\ud80c\uddcb': 'L'
'\ud80c\uddcc': 'L'
'\ud80c\uddcd': 'L'
'\ud80c\uddce': 'L'
'\ud80c\uddcf': 'L'
'\ud80c\uddd0': 'L'
'\ud80c\uddd1': 'L'
'\ud80c\uddd2': 'L'
'\ud80c\uddd3': 'L'
'\ud80c\uddd4': 'L'
'\ud80c\uddd5': 'L'
'\ud80c\uddd6': 'L'
'\ud80c\uddd7': 'L'
'\ud80c\uddd8': 'L'
'\ud80c\uddd9': 'L'
'\ud80c\uddda': 'L'
'\ud80c\udddb': 'L'
'\ud80c\udddc': 'L'
'\ud80c\udddd': 'L'
'\ud80c\uddde': 'L'
'\ud80c\udddf': 'L'
'\ud80c\udde0': 'L'
'\ud80c\udde1': 'L'
'\ud80c\udde2': 'L'
'\ud80c\udde3': 'L'
'\ud80c\udde4': 'L'
'\ud80c\udde5': 'L'
'\ud80c\udde6': 'L'
'\ud80c\udde7': 'L'
'\ud80c\udde8': 'L'
'\ud80c\udde9': 'L'
'\ud80c\uddea': 'L'
'\ud80c\uddeb': 'L'
'\ud80c\uddec': 'L'
'\ud80c\udded': 'L'
'\ud80c\uddee': 'L'
'\ud80c\uddef': 'L'
'\ud80c\uddf0': 'L'
'\ud80c\uddf1': 'L'
'\ud80c\uddf2': 'L'
'\ud80c\uddf3': 'L'
'\ud80c\uddf4': 'L'
'\ud80c\uddf5': 'L'
'\ud80c\uddf6': 'L'
'\ud80c\uddf7': 'L'
'\ud80c\uddf8': 'L'
'\ud80c\uddf9': 'L'
'\ud80c\uddfa': 'L'
'\ud80c\uddfb': 'L'
'\ud80c\uddfc': 'L'
'\ud80c\uddfd': 'L'
'\ud80c\uddfe': 'L'
'\ud80c\uddff': 'L'
'\ud80c\ude00': 'L'
'\ud80c\ude01': 'L'
'\ud80c\ude02': 'L'
'\ud80c\ude03': 'L'
'\ud80c\ude04': 'L'
'\ud80c\ude05': 'L'
'\ud80c\ude06': 'L'
'\ud80c\ude07': 'L'
'\ud80c\ude08': 'L'
'\ud80c\ude09': 'L'
'\ud80c\ude0a': 'L'
'\ud80c\ude0b': 'L'
'\ud80c\ude0c': 'L'
'\ud80c\ude0d': 'L'
'\ud80c\ude0e': 'L'
'\ud80c\ude0f': 'L'
'\ud80c\ude10': 'L'
'\ud80c\ude11': 'L'
'\ud80c\ude12': 'L'
'\ud80c\ude13': 'L'
'\ud80c\ude14': 'L'
'\ud80c\ude15': 'L'
'\ud80c\ude16': 'L'
'\ud80c\ude17': 'L'
'\ud80c\ude18': 'L'
'\ud80c\ude19': 'L'
'\ud80c\ude1a': 'L'
'\ud80c\ude1b': 'L'
'\ud80c\ude1c': 'L'
'\ud80c\ude1d': 'L'
'\ud80c\ude1e': 'L'
'\ud80c\ude1f': 'L'
'\ud80c\ude20': 'L'
'\ud80c\ude21': 'L'
'\ud80c\ude22': 'L'
'\ud80c\ude23': 'L'
'\ud80c\ude24': 'L'
'\ud80c\ude25': 'L'
'\ud80c\ude26': 'L'
'\ud80c\ude27': 'L'
'\ud80c\ude28': 'L'
'\ud80c\ude29': 'L'
'\ud80c\ude2a': 'L'
'\ud80c\ude2b': 'L'
'\ud80c\ude2c': 'L'
'\ud80c\ude2d': 'L'
'\ud80c\ude2e': 'L'
'\ud80c\ude2f': 'L'
'\ud80c\ude30': 'L'
'\ud80c\ude31': 'L'
'\ud80c\ude32': 'L'
'\ud80c\ude33': 'L'
'\ud80c\ude34': 'L'
'\ud80c\ude35': 'L'
'\ud80c\ude36': 'L'
'\ud80c\ude37': 'L'
'\ud80c\ude38': 'L'
'\ud80c\ude39': 'L'
'\ud80c\ude3a': 'L'
'\ud80c\ude3b': 'L'
'\ud80c\ude3c': 'L'
'\ud80c\ude3d': 'L'
'\ud80c\ude3e': 'L'
'\ud80c\ude3f': 'L'
'\ud80c\ude40': 'L'
'\ud80c\ude41': 'L'
'\ud80c\ude42': 'L'
'\ud80c\ude43': 'L'
'\ud80c\ude44': 'L'
'\ud80c\ude45': 'L'
'\ud80c\ude46': 'L'
'\ud80c\ude47': 'L'
'\ud80c\ude48': 'L'
'\ud80c\ude49': 'L'
'\ud80c\ude4a': 'L'
'\ud80c\ude4b': 'L'
'\ud80c\ude4c': 'L'
'\ud80c\ude4d': 'L'
'\ud80c\ude4e': 'L'
'\ud80c\ude4f': 'L'
'\ud80c\ude50': 'L'
'\ud80c\ude51': 'L'
'\ud80c\ude52': 'L'
'\ud80c\ude53': 'L'
'\ud80c\ude54': 'L'
'\ud80c\ude55': 'L'
'\ud80c\ude56': 'L'
'\ud80c\ude57': 'L'
'\ud80c\ude58': 'L'
'\ud80c\ude59': 'L'
'\ud80c\ude5a': 'L'
'\ud80c\ude5b': 'L'
'\ud80c\ude5c': 'L'
'\ud80c\ude5d': 'L'
'\ud80c\ude5e': 'L'
'\ud80c\ude5f': 'L'
'\ud80c\ude60': 'L'
'\ud80c\ude61': 'L'
'\ud80c\ude62': 'L'
'\ud80c\ude63': 'L'
'\ud80c\ude64': 'L'
'\ud80c\ude65': 'L'
'\ud80c\ude66': 'L'
'\ud80c\ude67': 'L'
'\ud80c\ude68': 'L'
'\ud80c\ude69': 'L'
'\ud80c\ude6a': 'L'
'\ud80c\ude6b': 'L'
'\ud80c\ude6c': 'L'
'\ud80c\ude6d': 'L'
'\ud80c\ude6e': 'L'
'\ud80c\ude6f': 'L'
'\ud80c\ude70': 'L'
'\ud80c\ude71': 'L'
'\ud80c\ude72': 'L'
'\ud80c\ude73': 'L'
'\ud80c\ude74': 'L'
'\ud80c\ude75': 'L'
'\ud80c\ude76': 'L'
'\ud80c\ude77': 'L'
'\ud80c\ude78': 'L'
'\ud80c\ude79': 'L'
'\ud80c\ude7a': 'L'
'\ud80c\ude7b': 'L'
'\ud80c\ude7c': 'L'
'\ud80c\ude7d': 'L'
'\ud80c\ude7e': 'L'
'\ud80c\ude7f': 'L'
'\ud80c\ude80': 'L'
'\ud80c\ude81': 'L'
'\ud80c\ude82': 'L'
'\ud80c\ude83': 'L'
'\ud80c\ude84': 'L'
'\ud80c\ude85': 'L'
'\ud80c\ude86': 'L'
'\ud80c\ude87': 'L'
'\ud80c\ude88': 'L'
'\ud80c\ude89': 'L'
'\ud80c\ude8a': 'L'
'\ud80c\ude8b': 'L'
'\ud80c\ude8c': 'L'
'\ud80c\ude8d': 'L'
'\ud80c\ude8e': 'L'
'\ud80c\ude8f': 'L'
'\ud80c\ude90': 'L'
'\ud80c\ude91': 'L'
'\ud80c\ude92': 'L'
'\ud80c\ude93': 'L'
'\ud80c\ude94': 'L'
'\ud80c\ude95': 'L'
'\ud80c\ude96': 'L'
'\ud80c\ude97': 'L'
'\ud80c\ude98': 'L'
'\ud80c\ude99': 'L'
'\ud80c\ude9a': 'L'
'\ud80c\ude9b': 'L'
'\ud80c\ude9c': 'L'
'\ud80c\ude9d': 'L'
'\ud80c\ude9e': 'L'
'\ud80c\ude9f': 'L'
'\ud80c\udea0': 'L'
'\ud80c\udea1': 'L'
'\ud80c\udea2': 'L'
'\ud80c\udea3': 'L'
'\ud80c\udea4': 'L'
'\ud80c\udea5': 'L'
'\ud80c\udea6': 'L'
'\ud80c\udea7': 'L'
'\ud80c\udea8': 'L'
'\ud80c\udea9': 'L'
'\ud80c\udeaa': 'L'
'\ud80c\udeab': 'L'
'\ud80c\udeac': 'L'
'\ud80c\udead': 'L'
'\ud80c\udeae': 'L'
'\ud80c\udeaf': 'L'
'\ud80c\udeb0': 'L'
'\ud80c\udeb1': 'L'
'\ud80c\udeb2': 'L'
'\ud80c\udeb3': 'L'
'\ud80c\udeb4': 'L'
'\ud80c\udeb5': 'L'
'\ud80c\udeb6': 'L'
'\ud80c\udeb7': 'L'
'\ud80c\udeb8': 'L'
'\ud80c\udeb9': 'L'
'\ud80c\udeba': 'L'
'\ud80c\udebb': 'L'
'\ud80c\udebc': 'L'
'\ud80c\udebd': 'L'
'\ud80c\udebe': 'L'
'\ud80c\udebf': 'L'
'\ud80c\udec0': 'L'
'\ud80c\udec1': 'L'
'\ud80c\udec2': 'L'
'\ud80c\udec3': 'L'
'\ud80c\udec4': 'L'
'\ud80c\udec5': 'L'
'\ud80c\udec6': 'L'
'\ud80c\udec7': 'L'
'\ud80c\udec8': 'L'
'\ud80c\udec9': 'L'
'\ud80c\udeca': 'L'
'\ud80c\udecb': 'L'
'\ud80c\udecc': 'L'
'\ud80c\udecd': 'L'
'\ud80c\udece': 'L'
'\ud80c\udecf': 'L'
'\ud80c\uded0': 'L'
'\ud80c\uded1': 'L'
'\ud80c\uded2': 'L'
'\ud80c\uded3': 'L'
'\ud80c\uded4': 'L'
'\ud80c\uded5': 'L'
'\ud80c\uded6': 'L'
'\ud80c\uded7': 'L'
'\ud80c\uded8': 'L'
'\ud80c\uded9': 'L'
'\ud80c\udeda': 'L'
'\ud80c\udedb': 'L'
'\ud80c\udedc': 'L'
'\ud80c\udedd': 'L'
'\ud80c\udede': 'L'
'\ud80c\udedf': 'L'
'\ud80c\udee0': 'L'
'\ud80c\udee1': 'L'
'\ud80c\udee2': 'L'
'\ud80c\udee3': 'L'
'\ud80c\udee4': 'L'
'\ud80c\udee5': 'L'
'\ud80c\udee6': 'L'
'\ud80c\udee7': 'L'
'\ud80c\udee8': 'L'
'\ud80c\udee9': 'L'
'\ud80c\udeea': 'L'
'\ud80c\udeeb': 'L'
'\ud80c\udeec': 'L'
'\ud80c\udeed': 'L'
'\ud80c\udeee': 'L'
'\ud80c\udeef': 'L'
'\ud80c\udef0': 'L'
'\ud80c\udef1': 'L'
'\ud80c\udef2': 'L'
'\ud80c\udef3': 'L'
'\ud80c\udef4': 'L'
'\ud80c\udef5': 'L'
'\ud80c\udef6': 'L'
'\ud80c\udef7': 'L'
'\ud80c\udef8': 'L'
'\ud80c\udef9': 'L'
'\ud80c\udefa': 'L'
'\ud80c\udefb': 'L'
'\ud80c\udefc': 'L'
'\ud80c\udefd': 'L'
'\ud80c\udefe': 'L'
'\ud80c\udeff': 'L'
'\ud80c\udf00': 'L'
'\ud80c\udf01': 'L'
'\ud80c\udf02': 'L'
'\ud80c\udf03': 'L'
'\ud80c\udf04': 'L'
'\ud80c\udf05': 'L'
'\ud80c\udf06': 'L'
'\ud80c\udf07': 'L'
'\ud80c\udf08': 'L'
'\ud80c\udf09': 'L'
'\ud80c\udf0a': 'L'
'\ud80c\udf0b': 'L'
'\ud80c\udf0c': 'L'
'\ud80c\udf0d': 'L'
'\ud80c\udf0e': 'L'
'\ud80c\udf0f': 'L'
'\ud80c\udf10': 'L'
'\ud80c\udf11': 'L'
'\ud80c\udf12': 'L'
'\ud80c\udf13': 'L'
'\ud80c\udf14': 'L'
'\ud80c\udf15': 'L'
'\ud80c\udf16': 'L'
'\ud80c\udf17': 'L'
'\ud80c\udf18': 'L'
'\ud80c\udf19': 'L'
'\ud80c\udf1a': 'L'
'\ud80c\udf1b': 'L'
'\ud80c\udf1c': 'L'
'\ud80c\udf1d': 'L'
'\ud80c\udf1e': 'L'
'\ud80c\udf1f': 'L'
'\ud80c\udf20': 'L'
'\ud80c\udf21': 'L'
'\ud80c\udf22': 'L'
'\ud80c\udf23': 'L'
'\ud80c\udf24': 'L'
'\ud80c\udf25': 'L'
'\ud80c\udf26': 'L'
'\ud80c\udf27': 'L'
'\ud80c\udf28': 'L'
'\ud80c\udf29': 'L'
'\ud80c\udf2a': 'L'
'\ud80c\udf2b': 'L'
'\ud80c\udf2c': 'L'
'\ud80c\udf2d': 'L'
'\ud80c\udf2e': 'L'
'\ud80c\udf2f': 'L'
'\ud80c\udf30': 'L'
'\ud80c\udf31': 'L'
'\ud80c\udf32': 'L'
'\ud80c\udf33': 'L'
'\ud80c\udf34': 'L'
'\ud80c\udf35': 'L'
'\ud80c\udf36': 'L'
'\ud80c\udf37': 'L'
'\ud80c\udf38': 'L'
'\ud80c\udf39': 'L'
'\ud80c\udf3a': 'L'
'\ud80c\udf3b': 'L'
'\ud80c\udf3c': 'L'
'\ud80c\udf3d': 'L'
'\ud80c\udf3e': 'L'
'\ud80c\udf3f': 'L'
'\ud80c\udf40': 'L'
'\ud80c\udf41': 'L'
'\ud80c\udf42': 'L'
'\ud80c\udf43': 'L'
'\ud80c\udf44': 'L'
'\ud80c\udf45': 'L'
'\ud80c\udf46': 'L'
'\ud80c\udf47': 'L'
'\ud80c\udf48': 'L'
'\ud80c\udf49': 'L'
'\ud80c\udf4a': 'L'
'\ud80c\udf4b': 'L'
'\ud80c\udf4c': 'L'
'\ud80c\udf4d': 'L'
'\ud80c\udf4e': 'L'
'\ud80c\udf4f': 'L'
'\ud80c\udf50': 'L'
'\ud80c\udf51': 'L'
'\ud80c\udf52': 'L'
'\ud80c\udf53': 'L'
'\ud80c\udf54': 'L'
'\ud80c\udf55': 'L'
'\ud80c\udf56': 'L'
'\ud80c\udf57': 'L'
'\ud80c\udf58': 'L'
'\ud80c\udf59': 'L'
'\ud80c\udf5a': 'L'
'\ud80c\udf5b': 'L'
'\ud80c\udf5c': 'L'
'\ud80c\udf5d': 'L'
'\ud80c\udf5e': 'L'
'\ud80c\udf5f': 'L'
'\ud80c\udf60': 'L'
'\ud80c\udf61': 'L'
'\ud80c\udf62': 'L'
'\ud80c\udf63': 'L'
'\ud80c\udf64': 'L'
'\ud80c\udf65': 'L'
'\ud80c\udf66': 'L'
'\ud80c\udf67': 'L'
'\ud80c\udf68': 'L'
'\ud80c\udf69': 'L'
'\ud80c\udf6a': 'L'
'\ud80c\udf6b': 'L'
'\ud80c\udf6c': 'L'
'\ud80c\udf6d': 'L'
'\ud80c\udf6e': 'L'
'\ud80c\udf6f': 'L'
'\ud80c\udf70': 'L'
'\ud80c\udf71': 'L'
'\ud80c\udf72': 'L'
'\ud80c\udf73': 'L'
'\ud80c\udf74': 'L'
'\ud80c\udf75': 'L'
'\ud80c\udf76': 'L'
'\ud80c\udf77': 'L'
'\ud80c\udf78': 'L'
'\ud80c\udf79': 'L'
'\ud80c\udf7a': 'L'
'\ud80c\udf7b': 'L'
'\ud80c\udf7c': 'L'
'\ud80c\udf7d': 'L'
'\ud80c\udf7e': 'L'
'\ud80c\udf7f': 'L'
'\ud80c\udf80': 'L'
'\ud80c\udf81': 'L'
'\ud80c\udf82': 'L'
'\ud80c\udf83': 'L'
'\ud80c\udf84': 'L'
'\ud80c\udf85': 'L'
'\ud80c\udf86': 'L'
'\ud80c\udf87': 'L'
'\ud80c\udf88': 'L'
'\ud80c\udf89': 'L'
'\ud80c\udf8a': 'L'
'\ud80c\udf8b': 'L'
'\ud80c\udf8c': 'L'
'\ud80c\udf8d': 'L'
'\ud80c\udf8e': 'L'
'\ud80c\udf8f': 'L'
'\ud80c\udf90': 'L'
'\ud80c\udf91': 'L'
'\ud80c\udf92': 'L'
'\ud80c\udf93': 'L'
'\ud80c\udf94': 'L'
'\ud80c\udf95': 'L'
'\ud80c\udf96': 'L'
'\ud80c\udf97': 'L'
'\ud80c\udf98': 'L'
'\ud80c\udf99': 'L'
'\ud80c\udf9a': 'L'
'\ud80c\udf9b': 'L'
'\ud80c\udf9c': 'L'
'\ud80c\udf9d': 'L'
'\ud80c\udf9e': 'L'
'\ud80c\udf9f': 'L'
'\ud80c\udfa0': 'L'
'\ud80c\udfa1': 'L'
'\ud80c\udfa2': 'L'
'\ud80c\udfa3': 'L'
'\ud80c\udfa4': 'L'
'\ud80c\udfa5': 'L'
'\ud80c\udfa6': 'L'
'\ud80c\udfa7': 'L'
'\ud80c\udfa8': 'L'
'\ud80c\udfa9': 'L'
'\ud80c\udfaa': 'L'
'\ud80c\udfab': 'L'
'\ud80c\udfac': 'L'
'\ud80c\udfad': 'L'
'\ud80c\udfae': 'L'
'\ud80c\udfaf': 'L'
'\ud80c\udfb0': 'L'
'\ud80c\udfb1': 'L'
'\ud80c\udfb2': 'L'
'\ud80c\udfb3': 'L'
'\ud80c\udfb4': 'L'
'\ud80c\udfb5': 'L'
'\ud80c\udfb6': 'L'
'\ud80c\udfb7': 'L'
'\ud80c\udfb8': 'L'
'\ud80c\udfb9': 'L'
'\ud80c\udfba': 'L'
'\ud80c\udfbb': 'L'
'\ud80c\udfbc': 'L'
'\ud80c\udfbd': 'L'
'\ud80c\udfbe': 'L'
'\ud80c\udfbf': 'L'
'\ud80c\udfc0': 'L'
'\ud80c\udfc1': 'L'
'\ud80c\udfc2': 'L'
'\ud80c\udfc3': 'L'
'\ud80c\udfc4': 'L'
'\ud80c\udfc5': 'L'
'\ud80c\udfc6': 'L'
'\ud80c\udfc7': 'L'
'\ud80c\udfc8': 'L'
'\ud80c\udfc9': 'L'
'\ud80c\udfca': 'L'
'\ud80c\udfcb': 'L'
'\ud80c\udfcc': 'L'
'\ud80c\udfcd': 'L'
'\ud80c\udfce': 'L'
'\ud80c\udfcf': 'L'
'\ud80c\udfd0': 'L'
'\ud80c\udfd1': 'L'
'\ud80c\udfd2': 'L'
'\ud80c\udfd3': 'L'
'\ud80c\udfd4': 'L'
'\ud80c\udfd5': 'L'
'\ud80c\udfd6': 'L'
'\ud80c\udfd7': 'L'
'\ud80c\udfd8': 'L'
'\ud80c\udfd9': 'L'
'\ud80c\udfda': 'L'
'\ud80c\udfdb': 'L'
'\ud80c\udfdc': 'L'
'\ud80c\udfdd': 'L'
'\ud80c\udfde': 'L'
'\ud80c\udfdf': 'L'
'\ud80c\udfe0': 'L'
'\ud80c\udfe1': 'L'
'\ud80c\udfe2': 'L'
'\ud80c\udfe3': 'L'
'\ud80c\udfe4': 'L'
'\ud80c\udfe5': 'L'
'\ud80c\udfe6': 'L'
'\ud80c\udfe7': 'L'
'\ud80c\udfe8': 'L'
'\ud80c\udfe9': 'L'
'\ud80c\udfea': 'L'
'\ud80c\udfeb': 'L'
'\ud80c\udfec': 'L'
'\ud80c\udfed': 'L'
'\ud80c\udfee': 'L'
'\ud80c\udfef': 'L'
'\ud80c\udff0': 'L'
'\ud80c\udff1': 'L'
'\ud80c\udff2': 'L'
'\ud80c\udff3': 'L'
'\ud80c\udff4': 'L'
'\ud80c\udff5': 'L'
'\ud80c\udff6': 'L'
'\ud80c\udff7': 'L'
'\ud80c\udff8': 'L'
'\ud80c\udff9': 'L'
'\ud80c\udffa': 'L'
'\ud80c\udffb': 'L'
'\ud80c\udffc': 'L'
'\ud80c\udffd': 'L'
'\ud80c\udffe': 'L'
'\ud80c\udfff': 'L'
'\ud80d\udc00': 'L'
'\ud80d\udc01': 'L'
'\ud80d\udc02': 'L'
'\ud80d\udc03': 'L'
'\ud80d\udc04': 'L'
'\ud80d\udc05': 'L'
'\ud80d\udc06': 'L'
'\ud80d\udc07': 'L'
'\ud80d\udc08': 'L'
'\ud80d\udc09': 'L'
'\ud80d\udc0a': 'L'
'\ud80d\udc0b': 'L'
'\ud80d\udc0c': 'L'
'\ud80d\udc0d': 'L'
'\ud80d\udc0e': 'L'
'\ud80d\udc0f': 'L'
'\ud80d\udc10': 'L'
'\ud80d\udc11': 'L'
'\ud80d\udc12': 'L'
'\ud80d\udc13': 'L'
'\ud80d\udc14': 'L'
'\ud80d\udc15': 'L'
'\ud80d\udc16': 'L'
'\ud80d\udc17': 'L'
'\ud80d\udc18': 'L'
'\ud80d\udc19': 'L'
'\ud80d\udc1a': 'L'
'\ud80d\udc1b': 'L'
'\ud80d\udc1c': 'L'
'\ud80d\udc1d': 'L'
'\ud80d\udc1e': 'L'
'\ud80d\udc1f': 'L'
'\ud80d\udc20': 'L'
'\ud80d\udc21': 'L'
'\ud80d\udc22': 'L'
'\ud80d\udc23': 'L'
'\ud80d\udc24': 'L'
'\ud80d\udc25': 'L'
'\ud80d\udc26': 'L'
'\ud80d\udc27': 'L'
'\ud80d\udc28': 'L'
'\ud80d\udc29': 'L'
'\ud80d\udc2a': 'L'
'\ud80d\udc2b': 'L'
'\ud80d\udc2c': 'L'
'\ud80d\udc2d': 'L'
'\ud80d\udc2e': 'L'
'\ud811\udc00': 'L'
'\ud811\udc01': 'L'
'\ud811\udc02': 'L'
'\ud811\udc03': 'L'
'\ud811\udc04': 'L'
'\ud811\udc05': 'L'
'\ud811\udc06': 'L'
'\ud811\udc07': 'L'
'\ud811\udc08': 'L'
'\ud811\udc09': 'L'
'\ud811\udc0a': 'L'
'\ud811\udc0b': 'L'
'\ud811\udc0c': 'L'
'\ud811\udc0d': 'L'
'\ud811\udc0e': 'L'
'\ud811\udc0f': 'L'
'\ud811\udc10': 'L'
'\ud811\udc11': 'L'
'\ud811\udc12': 'L'
'\ud811\udc13': 'L'
'\ud811\udc14': 'L'
'\ud811\udc15': 'L'
'\ud811\udc16': 'L'
'\ud811\udc17': 'L'
'\ud811\udc18': 'L'
'\ud811\udc19': 'L'
'\ud811\udc1a': 'L'
'\ud811\udc1b': 'L'
'\ud811\udc1c': 'L'
'\ud811\udc1d': 'L'
'\ud811\udc1e': 'L'
'\ud811\udc1f': 'L'
'\ud811\udc20': 'L'
'\ud811\udc21': 'L'
'\ud811\udc22': 'L'
'\ud811\udc23': 'L'
'\ud811\udc24': 'L'
'\ud811\udc25': 'L'
'\ud811\udc26': 'L'
'\ud811\udc27': 'L'
'\ud811\udc28': 'L'
'\ud811\udc29': 'L'
'\ud811\udc2a': 'L'
'\ud811\udc2b': 'L'
'\ud811\udc2c': 'L'
'\ud811\udc2d': 'L'
'\ud811\udc2e': 'L'
'\ud811\udc2f': 'L'
'\ud811\udc30': 'L'
'\ud811\udc31': 'L'
'\ud811\udc32': 'L'
'\ud811\udc33': 'L'
'\ud811\udc34': 'L'
'\ud811\udc35': 'L'
'\ud811\udc36': 'L'
'\ud811\udc37': 'L'
'\ud811\udc38': 'L'
'\ud811\udc39': 'L'
'\ud811\udc3a': 'L'
'\ud811\udc3b': 'L'
'\ud811\udc3c': 'L'
'\ud811\udc3d': 'L'
'\ud811\udc3e': 'L'
'\ud811\udc3f': 'L'
'\ud811\udc40': 'L'
'\ud811\udc41': 'L'
'\ud811\udc42': 'L'
'\ud811\udc43': 'L'
'\ud811\udc44': 'L'
'\ud811\udc45': 'L'
'\ud811\udc46': 'L'
'\ud811\udc47': 'L'
'\ud811\udc48': 'L'
'\ud811\udc49': 'L'
'\ud811\udc4a': 'L'
'\ud811\udc4b': 'L'
'\ud811\udc4c': 'L'
'\ud811\udc4d': 'L'
'\ud811\udc4e': 'L'
'\ud811\udc4f': 'L'
'\ud811\udc50': 'L'
'\ud811\udc51': 'L'
'\ud811\udc52': 'L'
'\ud811\udc53': 'L'
'\ud811\udc54': 'L'
'\ud811\udc55': 'L'
'\ud811\udc56': 'L'
'\ud811\udc57': 'L'
'\ud811\udc58': 'L'
'\ud811\udc59': 'L'
'\ud811\udc5a': 'L'
'\ud811\udc5b': 'L'
'\ud811\udc5c': 'L'
'\ud811\udc5d': 'L'
'\ud811\udc5e': 'L'
'\ud811\udc5f': 'L'
'\ud811\udc60': 'L'
'\ud811\udc61': 'L'
'\ud811\udc62': 'L'
'\ud811\udc63': 'L'
'\ud811\udc64': 'L'
'\ud811\udc65': 'L'
'\ud811\udc66': 'L'
'\ud811\udc67': 'L'
'\ud811\udc68': 'L'
'\ud811\udc69': 'L'
'\ud811\udc6a': 'L'
'\ud811\udc6b': 'L'
'\ud811\udc6c': 'L'
'\ud811\udc6d': 'L'
'\ud811\udc6e': 'L'
'\ud811\udc6f': 'L'
'\ud811\udc70': 'L'
'\ud811\udc71': 'L'
'\ud811\udc72': 'L'
'\ud811\udc73': 'L'
'\ud811\udc74': 'L'
'\ud811\udc75': 'L'
'\ud811\udc76': 'L'
'\ud811\udc77': 'L'
'\ud811\udc78': 'L'
'\ud811\udc79': 'L'
'\ud811\udc7a': 'L'
'\ud811\udc7b': 'L'
'\ud811\udc7c': 'L'
'\ud811\udc7d': 'L'
'\ud811\udc7e': 'L'
'\ud811\udc7f': 'L'
'\ud811\udc80': 'L'
'\ud811\udc81': 'L'
'\ud811\udc82': 'L'
'\ud811\udc83': 'L'
'\ud811\udc84': 'L'
'\ud811\udc85': 'L'
'\ud811\udc86': 'L'
'\ud811\udc87': 'L'
'\ud811\udc88': 'L'
'\ud811\udc89': 'L'
'\ud811\udc8a': 'L'
'\ud811\udc8b': 'L'
'\ud811\udc8c': 'L'
'\ud811\udc8d': 'L'
'\ud811\udc8e': 'L'
'\ud811\udc8f': 'L'
'\ud811\udc90': 'L'
'\ud811\udc91': 'L'
'\ud811\udc92': 'L'
'\ud811\udc93': 'L'
'\ud811\udc94': 'L'
'\ud811\udc95': 'L'
'\ud811\udc96': 'L'
'\ud811\udc97': 'L'
'\ud811\udc98': 'L'
'\ud811\udc99': 'L'
'\ud811\udc9a': 'L'
'\ud811\udc9b': 'L'
'\ud811\udc9c': 'L'
'\ud811\udc9d': 'L'
'\ud811\udc9e': 'L'
'\ud811\udc9f': 'L'
'\ud811\udca0': 'L'
'\ud811\udca1': 'L'
'\ud811\udca2': 'L'
'\ud811\udca3': 'L'
'\ud811\udca4': 'L'
'\ud811\udca5': 'L'
'\ud811\udca6': 'L'
'\ud811\udca7': 'L'
'\ud811\udca8': 'L'
'\ud811\udca9': 'L'
'\ud811\udcaa': 'L'
'\ud811\udcab': 'L'
'\ud811\udcac': 'L'
'\ud811\udcad': 'L'
'\ud811\udcae': 'L'
'\ud811\udcaf': 'L'
'\ud811\udcb0': 'L'
'\ud811\udcb1': 'L'
'\ud811\udcb2': 'L'
'\ud811\udcb3': 'L'
'\ud811\udcb4': 'L'
'\ud811\udcb5': 'L'
'\ud811\udcb6': 'L'
'\ud811\udcb7': 'L'
'\ud811\udcb8': 'L'
'\ud811\udcb9': 'L'
'\ud811\udcba': 'L'
'\ud811\udcbb': 'L'
'\ud811\udcbc': 'L'
'\ud811\udcbd': 'L'
'\ud811\udcbe': 'L'
'\ud811\udcbf': 'L'
'\ud811\udcc0': 'L'
'\ud811\udcc1': 'L'
'\ud811\udcc2': 'L'
'\ud811\udcc3': 'L'
'\ud811\udcc4': 'L'
'\ud811\udcc5': 'L'
'\ud811\udcc6': 'L'
'\ud811\udcc7': 'L'
'\ud811\udcc8': 'L'
'\ud811\udcc9': 'L'
'\ud811\udcca': 'L'
'\ud811\udccb': 'L'
'\ud811\udccc': 'L'
'\ud811\udccd': 'L'
'\ud811\udcce': 'L'
'\ud811\udccf': 'L'
'\ud811\udcd0': 'L'
'\ud811\udcd1': 'L'
'\ud811\udcd2': 'L'
'\ud811\udcd3': 'L'
'\ud811\udcd4': 'L'
'\ud811\udcd5': 'L'
'\ud811\udcd6': 'L'
'\ud811\udcd7': 'L'
'\ud811\udcd8': 'L'
'\ud811\udcd9': 'L'
'\ud811\udcda': 'L'
'\ud811\udcdb': 'L'
'\ud811\udcdc': 'L'
'\ud811\udcdd': 'L'
'\ud811\udcde': 'L'
'\ud811\udcdf': 'L'
'\ud811\udce0': 'L'
'\ud811\udce1': 'L'
'\ud811\udce2': 'L'
'\ud811\udce3': 'L'
'\ud811\udce4': 'L'
'\ud811\udce5': 'L'
'\ud811\udce6': 'L'
'\ud811\udce7': 'L'
'\ud811\udce8': 'L'
'\ud811\udce9': 'L'
'\ud811\udcea': 'L'
'\ud811\udceb': 'L'
'\ud811\udcec': 'L'
'\ud811\udced': 'L'
'\ud811\udcee': 'L'
'\ud811\udcef': 'L'
'\ud811\udcf0': 'L'
'\ud811\udcf1': 'L'
'\ud811\udcf2': 'L'
'\ud811\udcf3': 'L'
'\ud811\udcf4': 'L'
'\ud811\udcf5': 'L'
'\ud811\udcf6': 'L'
'\ud811\udcf7': 'L'
'\ud811\udcf8': 'L'
'\ud811\udcf9': 'L'
'\ud811\udcfa': 'L'
'\ud811\udcfb': 'L'
'\ud811\udcfc': 'L'
'\ud811\udcfd': 'L'
'\ud811\udcfe': 'L'
'\ud811\udcff': 'L'
'\ud811\udd00': 'L'
'\ud811\udd01': 'L'
'\ud811\udd02': 'L'
'\ud811\udd03': 'L'
'\ud811\udd04': 'L'
'\ud811\udd05': 'L'
'\ud811\udd06': 'L'
'\ud811\udd07': 'L'
'\ud811\udd08': 'L'
'\ud811\udd09': 'L'
'\ud811\udd0a': 'L'
'\ud811\udd0b': 'L'
'\ud811\udd0c': 'L'
'\ud811\udd0d': 'L'
'\ud811\udd0e': 'L'
'\ud811\udd0f': 'L'
'\ud811\udd10': 'L'
'\ud811\udd11': 'L'
'\ud811\udd12': 'L'
'\ud811\udd13': 'L'
'\ud811\udd14': 'L'
'\ud811\udd15': 'L'
'\ud811\udd16': 'L'
'\ud811\udd17': 'L'
'\ud811\udd18': 'L'
'\ud811\udd19': 'L'
'\ud811\udd1a': 'L'
'\ud811\udd1b': 'L'
'\ud811\udd1c': 'L'
'\ud811\udd1d': 'L'
'\ud811\udd1e': 'L'
'\ud811\udd1f': 'L'
'\ud811\udd20': 'L'
'\ud811\udd21': 'L'
'\ud811\udd22': 'L'
'\ud811\udd23': 'L'
'\ud811\udd24': 'L'
'\ud811\udd25': 'L'
'\ud811\udd26': 'L'
'\ud811\udd27': 'L'
'\ud811\udd28': 'L'
'\ud811\udd29': 'L'
'\ud811\udd2a': 'L'
'\ud811\udd2b': 'L'
'\ud811\udd2c': 'L'
'\ud811\udd2d': 'L'
'\ud811\udd2e': 'L'
'\ud811\udd2f': 'L'
'\ud811\udd30': 'L'
'\ud811\udd31': 'L'
'\ud811\udd32': 'L'
'\ud811\udd33': 'L'
'\ud811\udd34': 'L'
'\ud811\udd35': 'L'
'\ud811\udd36': 'L'
'\ud811\udd37': 'L'
'\ud811\udd38': 'L'
'\ud811\udd39': 'L'
'\ud811\udd3a': 'L'
'\ud811\udd3b': 'L'
'\ud811\udd3c': 'L'
'\ud811\udd3d': 'L'
'\ud811\udd3e': 'L'
'\ud811\udd3f': 'L'
'\ud811\udd40': 'L'
'\ud811\udd41': 'L'
'\ud811\udd42': 'L'
'\ud811\udd43': 'L'
'\ud811\udd44': 'L'
'\ud811\udd45': 'L'
'\ud811\udd46': 'L'
'\ud811\udd47': 'L'
'\ud811\udd48': 'L'
'\ud811\udd49': 'L'
'\ud811\udd4a': 'L'
'\ud811\udd4b': 'L'
'\ud811\udd4c': 'L'
'\ud811\udd4d': 'L'
'\ud811\udd4e': 'L'
'\ud811\udd4f': 'L'
'\ud811\udd50': 'L'
'\ud811\udd51': 'L'
'\ud811\udd52': 'L'
'\ud811\udd53': 'L'
'\ud811\udd54': 'L'
'\ud811\udd55': 'L'
'\ud811\udd56': 'L'
'\ud811\udd57': 'L'
'\ud811\udd58': 'L'
'\ud811\udd59': 'L'
'\ud811\udd5a': 'L'
'\ud811\udd5b': 'L'
'\ud811\udd5c': 'L'
'\ud811\udd5d': 'L'
'\ud811\udd5e': 'L'
'\ud811\udd5f': 'L'
'\ud811\udd60': 'L'
'\ud811\udd61': 'L'
'\ud811\udd62': 'L'
'\ud811\udd63': 'L'
'\ud811\udd64': 'L'
'\ud811\udd65': 'L'
'\ud811\udd66': 'L'
'\ud811\udd67': 'L'
'\ud811\udd68': 'L'
'\ud811\udd69': 'L'
'\ud811\udd6a': 'L'
'\ud811\udd6b': 'L'
'\ud811\udd6c': 'L'
'\ud811\udd6d': 'L'
'\ud811\udd6e': 'L'
'\ud811\udd6f': 'L'
'\ud811\udd70': 'L'
'\ud811\udd71': 'L'
'\ud811\udd72': 'L'
'\ud811\udd73': 'L'
'\ud811\udd74': 'L'
'\ud811\udd75': 'L'
'\ud811\udd76': 'L'
'\ud811\udd77': 'L'
'\ud811\udd78': 'L'
'\ud811\udd79': 'L'
'\ud811\udd7a': 'L'
'\ud811\udd7b': 'L'
'\ud811\udd7c': 'L'
'\ud811\udd7d': 'L'
'\ud811\udd7e': 'L'
'\ud811\udd7f': 'L'
'\ud811\udd80': 'L'
'\ud811\udd81': 'L'
'\ud811\udd82': 'L'
'\ud811\udd83': 'L'
'\ud811\udd84': 'L'
'\ud811\udd85': 'L'
'\ud811\udd86': 'L'
'\ud811\udd87': 'L'
'\ud811\udd88': 'L'
'\ud811\udd89': 'L'
'\ud811\udd8a': 'L'
'\ud811\udd8b': 'L'
'\ud811\udd8c': 'L'
'\ud811\udd8d': 'L'
'\ud811\udd8e': 'L'
'\ud811\udd8f': 'L'
'\ud811\udd90': 'L'
'\ud811\udd91': 'L'
'\ud811\udd92': 'L'
'\ud811\udd93': 'L'
'\ud811\udd94': 'L'
'\ud811\udd95': 'L'
'\ud811\udd96': 'L'
'\ud811\udd97': 'L'
'\ud811\udd98': 'L'
'\ud811\udd99': 'L'
'\ud811\udd9a': 'L'
'\ud811\udd9b': 'L'
'\ud811\udd9c': 'L'
'\ud811\udd9d': 'L'
'\ud811\udd9e': 'L'
'\ud811\udd9f': 'L'
'\ud811\udda0': 'L'
'\ud811\udda1': 'L'
'\ud811\udda2': 'L'
'\ud811\udda3': 'L'
'\ud811\udda4': 'L'
'\ud811\udda5': 'L'
'\ud811\udda6': 'L'
'\ud811\udda7': 'L'
'\ud811\udda8': 'L'
'\ud811\udda9': 'L'
'\ud811\uddaa': 'L'
'\ud811\uddab': 'L'
'\ud811\uddac': 'L'
'\ud811\uddad': 'L'
'\ud811\uddae': 'L'
'\ud811\uddaf': 'L'
'\ud811\uddb0': 'L'
'\ud811\uddb1': 'L'
'\ud811\uddb2': 'L'
'\ud811\uddb3': 'L'
'\ud811\uddb4': 'L'
'\ud811\uddb5': 'L'
'\ud811\uddb6': 'L'
'\ud811\uddb7': 'L'
'\ud811\uddb8': 'L'
'\ud811\uddb9': 'L'
'\ud811\uddba': 'L'
'\ud811\uddbb': 'L'
'\ud811\uddbc': 'L'
'\ud811\uddbd': 'L'
'\ud811\uddbe': 'L'
'\ud811\uddbf': 'L'
'\ud811\uddc0': 'L'
'\ud811\uddc1': 'L'
'\ud811\uddc2': 'L'
'\ud811\uddc3': 'L'
'\ud811\uddc4': 'L'
'\ud811\uddc5': 'L'
'\ud811\uddc6': 'L'
'\ud811\uddc7': 'L'
'\ud811\uddc8': 'L'
'\ud811\uddc9': 'L'
'\ud811\uddca': 'L'
'\ud811\uddcb': 'L'
'\ud811\uddcc': 'L'
'\ud811\uddcd': 'L'
'\ud811\uddce': 'L'
'\ud811\uddcf': 'L'
'\ud811\uddd0': 'L'
'\ud811\uddd1': 'L'
'\ud811\uddd2': 'L'
'\ud811\uddd3': 'L'
'\ud811\uddd4': 'L'
'\ud811\uddd5': 'L'
'\ud811\uddd6': 'L'
'\ud811\uddd7': 'L'
'\ud811\uddd8': 'L'
'\ud811\uddd9': 'L'
'\ud811\uddda': 'L'
'\ud811\udddb': 'L'
'\ud811\udddc': 'L'
'\ud811\udddd': 'L'
'\ud811\uddde': 'L'
'\ud811\udddf': 'L'
'\ud811\udde0': 'L'
'\ud811\udde1': 'L'
'\ud811\udde2': 'L'
'\ud811\udde3': 'L'
'\ud811\udde4': 'L'
'\ud811\udde5': 'L'
'\ud811\udde6': 'L'
'\ud811\udde7': 'L'
'\ud811\udde8': 'L'
'\ud811\udde9': 'L'
'\ud811\uddea': 'L'
'\ud811\uddeb': 'L'
'\ud811\uddec': 'L'
'\ud811\udded': 'L'
'\ud811\uddee': 'L'
'\ud811\uddef': 'L'
'\ud811\uddf0': 'L'
'\ud811\uddf1': 'L'
'\ud811\uddf2': 'L'
'\ud811\uddf3': 'L'
'\ud811\uddf4': 'L'
'\ud811\uddf5': 'L'
'\ud811\uddf6': 'L'
'\ud811\uddf7': 'L'
'\ud811\uddf8': 'L'
'\ud811\uddf9': 'L'
'\ud811\uddfa': 'L'
'\ud811\uddfb': 'L'
'\ud811\uddfc': 'L'
'\ud811\uddfd': 'L'
'\ud811\uddfe': 'L'
'\ud811\uddff': 'L'
'\ud811\ude00': 'L'
'\ud811\ude01': 'L'
'\ud811\ude02': 'L'
'\ud811\ude03': 'L'
'\ud811\ude04': 'L'
'\ud811\ude05': 'L'
'\ud811\ude06': 'L'
'\ud811\ude07': 'L'
'\ud811\ude08': 'L'
'\ud811\ude09': 'L'
'\ud811\ude0a': 'L'
'\ud811\ude0b': 'L'
'\ud811\ude0c': 'L'
'\ud811\ude0d': 'L'
'\ud811\ude0e': 'L'
'\ud811\ude0f': 'L'
'\ud811\ude10': 'L'
'\ud811\ude11': 'L'
'\ud811\ude12': 'L'
'\ud811\ude13': 'L'
'\ud811\ude14': 'L'
'\ud811\ude15': 'L'
'\ud811\ude16': 'L'
'\ud811\ude17': 'L'
'\ud811\ude18': 'L'
'\ud811\ude19': 'L'
'\ud811\ude1a': 'L'
'\ud811\ude1b': 'L'
'\ud811\ude1c': 'L'
'\ud811\ude1d': 'L'
'\ud811\ude1e': 'L'
'\ud811\ude1f': 'L'
'\ud811\ude20': 'L'
'\ud811\ude21': 'L'
'\ud811\ude22': 'L'
'\ud811\ude23': 'L'
'\ud811\ude24': 'L'
'\ud811\ude25': 'L'
'\ud811\ude26': 'L'
'\ud811\ude27': 'L'
'\ud811\ude28': 'L'
'\ud811\ude29': 'L'
'\ud811\ude2a': 'L'
'\ud811\ude2b': 'L'
'\ud811\ude2c': 'L'
'\ud811\ude2d': 'L'
'\ud811\ude2e': 'L'
'\ud811\ude2f': 'L'
'\ud811\ude30': 'L'
'\ud811\ude31': 'L'
'\ud811\ude32': 'L'
'\ud811\ude33': 'L'
'\ud811\ude34': 'L'
'\ud811\ude35': 'L'
'\ud811\ude36': 'L'
'\ud811\ude37': 'L'
'\ud811\ude38': 'L'
'\ud811\ude39': 'L'
'\ud811\ude3a': 'L'
'\ud811\ude3b': 'L'
'\ud811\ude3c': 'L'
'\ud811\ude3d': 'L'
'\ud811\ude3e': 'L'
'\ud811\ude3f': 'L'
'\ud811\ude40': 'L'
'\ud811\ude41': 'L'
'\ud811\ude42': 'L'
'\ud811\ude43': 'L'
'\ud811\ude44': 'L'
'\ud811\ude45': 'L'
'\ud811\ude46': 'L'
'\ud81a\udc00': 'L'
'\ud81a\udc01': 'L'
'\ud81a\udc02': 'L'
'\ud81a\udc03': 'L'
'\ud81a\udc04': 'L'
'\ud81a\udc05': 'L'
'\ud81a\udc06': 'L'
'\ud81a\udc07': 'L'
'\ud81a\udc08': 'L'
'\ud81a\udc09': 'L'
'\ud81a\udc0a': 'L'
'\ud81a\udc0b': 'L'
'\ud81a\udc0c': 'L'
'\ud81a\udc0d': 'L'
'\ud81a\udc0e': 'L'
'\ud81a\udc0f': 'L'
'\ud81a\udc10': 'L'
'\ud81a\udc11': 'L'
'\ud81a\udc12': 'L'
'\ud81a\udc13': 'L'
'\ud81a\udc14': 'L'
'\ud81a\udc15': 'L'
'\ud81a\udc16': 'L'
'\ud81a\udc17': 'L'
'\ud81a\udc18': 'L'
'\ud81a\udc19': 'L'
'\ud81a\udc1a': 'L'
'\ud81a\udc1b': 'L'
'\ud81a\udc1c': 'L'
'\ud81a\udc1d': 'L'
'\ud81a\udc1e': 'L'
'\ud81a\udc1f': 'L'
'\ud81a\udc20': 'L'
'\ud81a\udc21': 'L'
'\ud81a\udc22': 'L'
'\ud81a\udc23': 'L'
'\ud81a\udc24': 'L'
'\ud81a\udc25': 'L'
'\ud81a\udc26': 'L'
'\ud81a\udc27': 'L'
'\ud81a\udc28': 'L'
'\ud81a\udc29': 'L'
'\ud81a\udc2a': 'L'
'\ud81a\udc2b': 'L'
'\ud81a\udc2c': 'L'
'\ud81a\udc2d': 'L'
'\ud81a\udc2e': 'L'
'\ud81a\udc2f': 'L'
'\ud81a\udc30': 'L'
'\ud81a\udc31': 'L'
'\ud81a\udc32': 'L'
'\ud81a\udc33': 'L'
'\ud81a\udc34': 'L'
'\ud81a\udc35': 'L'
'\ud81a\udc36': 'L'
'\ud81a\udc37': 'L'
'\ud81a\udc38': 'L'
'\ud81a\udc39': 'L'
'\ud81a\udc3a': 'L'
'\ud81a\udc3b': 'L'
'\ud81a\udc3c': 'L'
'\ud81a\udc3d': 'L'
'\ud81a\udc3e': 'L'
'\ud81a\udc3f': 'L'
'\ud81a\udc40': 'L'
'\ud81a\udc41': 'L'
'\ud81a\udc42': 'L'
'\ud81a\udc43': 'L'
'\ud81a\udc44': 'L'
'\ud81a\udc45': 'L'
'\ud81a\udc46': 'L'
'\ud81a\udc47': 'L'
'\ud81a\udc48': 'L'
'\ud81a\udc49': 'L'
'\ud81a\udc4a': 'L'
'\ud81a\udc4b': 'L'
'\ud81a\udc4c': 'L'
'\ud81a\udc4d': 'L'
'\ud81a\udc4e': 'L'
'\ud81a\udc4f': 'L'
'\ud81a\udc50': 'L'
'\ud81a\udc51': 'L'
'\ud81a\udc52': 'L'
'\ud81a\udc53': 'L'
'\ud81a\udc54': 'L'
'\ud81a\udc55': 'L'
'\ud81a\udc56': 'L'
'\ud81a\udc57': 'L'
'\ud81a\udc58': 'L'
'\ud81a\udc59': 'L'
'\ud81a\udc5a': 'L'
'\ud81a\udc5b': 'L'
'\ud81a\udc5c': 'L'
'\ud81a\udc5d': 'L'
'\ud81a\udc5e': 'L'
'\ud81a\udc5f': 'L'
'\ud81a\udc60': 'L'
'\ud81a\udc61': 'L'
'\ud81a\udc62': 'L'
'\ud81a\udc63': 'L'
'\ud81a\udc64': 'L'
'\ud81a\udc65': 'L'
'\ud81a\udc66': 'L'
'\ud81a\udc67': 'L'
'\ud81a\udc68': 'L'
'\ud81a\udc69': 'L'
'\ud81a\udc6a': 'L'
'\ud81a\udc6b': 'L'
'\ud81a\udc6c': 'L'
'\ud81a\udc6d': 'L'
'\ud81a\udc6e': 'L'
'\ud81a\udc6f': 'L'
'\ud81a\udc70': 'L'
'\ud81a\udc71': 'L'
'\ud81a\udc72': 'L'
'\ud81a\udc73': 'L'
'\ud81a\udc74': 'L'
'\ud81a\udc75': 'L'
'\ud81a\udc76': 'L'
'\ud81a\udc77': 'L'
'\ud81a\udc78': 'L'
'\ud81a\udc79': 'L'
'\ud81a\udc7a': 'L'
'\ud81a\udc7b': 'L'
'\ud81a\udc7c': 'L'
'\ud81a\udc7d': 'L'
'\ud81a\udc7e': 'L'
'\ud81a\udc7f': 'L'
'\ud81a\udc80': 'L'
'\ud81a\udc81': 'L'
'\ud81a\udc82': 'L'
'\ud81a\udc83': 'L'
'\ud81a\udc84': 'L'
'\ud81a\udc85': 'L'
'\ud81a\udc86': 'L'
'\ud81a\udc87': 'L'
'\ud81a\udc88': 'L'
'\ud81a\udc89': 'L'
'\ud81a\udc8a': 'L'
'\ud81a\udc8b': 'L'
'\ud81a\udc8c': 'L'
'\ud81a\udc8d': 'L'
'\ud81a\udc8e': 'L'
'\ud81a\udc8f': 'L'
'\ud81a\udc90': 'L'
'\ud81a\udc91': 'L'
'\ud81a\udc92': 'L'
'\ud81a\udc93': 'L'
'\ud81a\udc94': 'L'
'\ud81a\udc95': 'L'
'\ud81a\udc96': 'L'
'\ud81a\udc97': 'L'
'\ud81a\udc98': 'L'
'\ud81a\udc99': 'L'
'\ud81a\udc9a': 'L'
'\ud81a\udc9b': 'L'
'\ud81a\udc9c': 'L'
'\ud81a\udc9d': 'L'
'\ud81a\udc9e': 'L'
'\ud81a\udc9f': 'L'
'\ud81a\udca0': 'L'
'\ud81a\udca1': 'L'
'\ud81a\udca2': 'L'
'\ud81a\udca3': 'L'
'\ud81a\udca4': 'L'
'\ud81a\udca5': 'L'
'\ud81a\udca6': 'L'
'\ud81a\udca7': 'L'
'\ud81a\udca8': 'L'
'\ud81a\udca9': 'L'
'\ud81a\udcaa': 'L'
'\ud81a\udcab': 'L'
'\ud81a\udcac': 'L'
'\ud81a\udcad': 'L'
'\ud81a\udcae': 'L'
'\ud81a\udcaf': 'L'
'\ud81a\udcb0': 'L'
'\ud81a\udcb1': 'L'
'\ud81a\udcb2': 'L'
'\ud81a\udcb3': 'L'
'\ud81a\udcb4': 'L'
'\ud81a\udcb5': 'L'
'\ud81a\udcb6': 'L'
'\ud81a\udcb7': 'L'
'\ud81a\udcb8': 'L'
'\ud81a\udcb9': 'L'
'\ud81a\udcba': 'L'
'\ud81a\udcbb': 'L'
'\ud81a\udcbc': 'L'
'\ud81a\udcbd': 'L'
'\ud81a\udcbe': 'L'
'\ud81a\udcbf': 'L'
'\ud81a\udcc0': 'L'
'\ud81a\udcc1': 'L'
'\ud81a\udcc2': 'L'
'\ud81a\udcc3': 'L'
'\ud81a\udcc4': 'L'
'\ud81a\udcc5': 'L'
'\ud81a\udcc6': 'L'
'\ud81a\udcc7': 'L'
'\ud81a\udcc8': 'L'
'\ud81a\udcc9': 'L'
'\ud81a\udcca': 'L'
'\ud81a\udccb': 'L'
'\ud81a\udccc': 'L'
'\ud81a\udccd': 'L'
'\ud81a\udcce': 'L'
'\ud81a\udccf': 'L'
'\ud81a\udcd0': 'L'
'\ud81a\udcd1': 'L'
'\ud81a\udcd2': 'L'
'\ud81a\udcd3': 'L'
'\ud81a\udcd4': 'L'
'\ud81a\udcd5': 'L'
'\ud81a\udcd6': 'L'
'\ud81a\udcd7': 'L'
'\ud81a\udcd8': 'L'
'\ud81a\udcd9': 'L'
'\ud81a\udcda': 'L'
'\ud81a\udcdb': 'L'
'\ud81a\udcdc': 'L'
'\ud81a\udcdd': 'L'
'\ud81a\udcde': 'L'
'\ud81a\udcdf': 'L'
'\ud81a\udce0': 'L'
'\ud81a\udce1': 'L'
'\ud81a\udce2': 'L'
'\ud81a\udce3': 'L'
'\ud81a\udce4': 'L'
'\ud81a\udce5': 'L'
'\ud81a\udce6': 'L'
'\ud81a\udce7': 'L'
'\ud81a\udce8': 'L'
'\ud81a\udce9': 'L'
'\ud81a\udcea': 'L'
'\ud81a\udceb': 'L'
'\ud81a\udcec': 'L'
'\ud81a\udced': 'L'
'\ud81a\udcee': 'L'
'\ud81a\udcef': 'L'
'\ud81a\udcf0': 'L'
'\ud81a\udcf1': 'L'
'\ud81a\udcf2': 'L'
'\ud81a\udcf3': 'L'
'\ud81a\udcf4': 'L'
'\ud81a\udcf5': 'L'
'\ud81a\udcf6': 'L'
'\ud81a\udcf7': 'L'
'\ud81a\udcf8': 'L'
'\ud81a\udcf9': 'L'
'\ud81a\udcfa': 'L'
'\ud81a\udcfb': 'L'
'\ud81a\udcfc': 'L'
'\ud81a\udcfd': 'L'
'\ud81a\udcfe': 'L'
'\ud81a\udcff': 'L'
'\ud81a\udd00': 'L'
'\ud81a\udd01': 'L'
'\ud81a\udd02': 'L'
'\ud81a\udd03': 'L'
'\ud81a\udd04': 'L'
'\ud81a\udd05': 'L'
'\ud81a\udd06': 'L'
'\ud81a\udd07': 'L'
'\ud81a\udd08': 'L'
'\ud81a\udd09': 'L'
'\ud81a\udd0a': 'L'
'\ud81a\udd0b': 'L'
'\ud81a\udd0c': 'L'
'\ud81a\udd0d': 'L'
'\ud81a\udd0e': 'L'
'\ud81a\udd0f': 'L'
'\ud81a\udd10': 'L'
'\ud81a\udd11': 'L'
'\ud81a\udd12': 'L'
'\ud81a\udd13': 'L'
'\ud81a\udd14': 'L'
'\ud81a\udd15': 'L'
'\ud81a\udd16': 'L'
'\ud81a\udd17': 'L'
'\ud81a\udd18': 'L'
'\ud81a\udd19': 'L'
'\ud81a\udd1a': 'L'
'\ud81a\udd1b': 'L'
'\ud81a\udd1c': 'L'
'\ud81a\udd1d': 'L'
'\ud81a\udd1e': 'L'
'\ud81a\udd1f': 'L'
'\ud81a\udd20': 'L'
'\ud81a\udd21': 'L'
'\ud81a\udd22': 'L'
'\ud81a\udd23': 'L'
'\ud81a\udd24': 'L'
'\ud81a\udd25': 'L'
'\ud81a\udd26': 'L'
'\ud81a\udd27': 'L'
'\ud81a\udd28': 'L'
'\ud81a\udd29': 'L'
'\ud81a\udd2a': 'L'
'\ud81a\udd2b': 'L'
'\ud81a\udd2c': 'L'
'\ud81a\udd2d': 'L'
'\ud81a\udd2e': 'L'
'\ud81a\udd2f': 'L'
'\ud81a\udd30': 'L'
'\ud81a\udd31': 'L'
'\ud81a\udd32': 'L'
'\ud81a\udd33': 'L'
'\ud81a\udd34': 'L'
'\ud81a\udd35': 'L'
'\ud81a\udd36': 'L'
'\ud81a\udd37': 'L'
'\ud81a\udd38': 'L'
'\ud81a\udd39': 'L'
'\ud81a\udd3a': 'L'
'\ud81a\udd3b': 'L'
'\ud81a\udd3c': 'L'
'\ud81a\udd3d': 'L'
'\ud81a\udd3e': 'L'
'\ud81a\udd3f': 'L'
'\ud81a\udd40': 'L'
'\ud81a\udd41': 'L'
'\ud81a\udd42': 'L'
'\ud81a\udd43': 'L'
'\ud81a\udd44': 'L'
'\ud81a\udd45': 'L'
'\ud81a\udd46': 'L'
'\ud81a\udd47': 'L'
'\ud81a\udd48': 'L'
'\ud81a\udd49': 'L'
'\ud81a\udd4a': 'L'
'\ud81a\udd4b': 'L'
'\ud81a\udd4c': 'L'
'\ud81a\udd4d': 'L'
'\ud81a\udd4e': 'L'
'\ud81a\udd4f': 'L'
'\ud81a\udd50': 'L'
'\ud81a\udd51': 'L'
'\ud81a\udd52': 'L'
'\ud81a\udd53': 'L'
'\ud81a\udd54': 'L'
'\ud81a\udd55': 'L'
'\ud81a\udd56': 'L'
'\ud81a\udd57': 'L'
'\ud81a\udd58': 'L'
'\ud81a\udd59': 'L'
'\ud81a\udd5a': 'L'
'\ud81a\udd5b': 'L'
'\ud81a\udd5c': 'L'
'\ud81a\udd5d': 'L'
'\ud81a\udd5e': 'L'
'\ud81a\udd5f': 'L'
'\ud81a\udd60': 'L'
'\ud81a\udd61': 'L'
'\ud81a\udd62': 'L'
'\ud81a\udd63': 'L'
'\ud81a\udd64': 'L'
'\ud81a\udd65': 'L'
'\ud81a\udd66': 'L'
'\ud81a\udd67': 'L'
'\ud81a\udd68': 'L'
'\ud81a\udd69': 'L'
'\ud81a\udd6a': 'L'
'\ud81a\udd6b': 'L'
'\ud81a\udd6c': 'L'
'\ud81a\udd6d': 'L'
'\ud81a\udd6e': 'L'
'\ud81a\udd6f': 'L'
'\ud81a\udd70': 'L'
'\ud81a\udd71': 'L'
'\ud81a\udd72': 'L'
'\ud81a\udd73': 'L'
'\ud81a\udd74': 'L'
'\ud81a\udd75': 'L'
'\ud81a\udd76': 'L'
'\ud81a\udd77': 'L'
'\ud81a\udd78': 'L'
'\ud81a\udd79': 'L'
'\ud81a\udd7a': 'L'
'\ud81a\udd7b': 'L'
'\ud81a\udd7c': 'L'
'\ud81a\udd7d': 'L'
'\ud81a\udd7e': 'L'
'\ud81a\udd7f': 'L'
'\ud81a\udd80': 'L'
'\ud81a\udd81': 'L'
'\ud81a\udd82': 'L'
'\ud81a\udd83': 'L'
'\ud81a\udd84': 'L'
'\ud81a\udd85': 'L'
'\ud81a\udd86': 'L'
'\ud81a\udd87': 'L'
'\ud81a\udd88': 'L'
'\ud81a\udd89': 'L'
'\ud81a\udd8a': 'L'
'\ud81a\udd8b': 'L'
'\ud81a\udd8c': 'L'
'\ud81a\udd8d': 'L'
'\ud81a\udd8e': 'L'
'\ud81a\udd8f': 'L'
'\ud81a\udd90': 'L'
'\ud81a\udd91': 'L'
'\ud81a\udd92': 'L'
'\ud81a\udd93': 'L'
'\ud81a\udd94': 'L'
'\ud81a\udd95': 'L'
'\ud81a\udd96': 'L'
'\ud81a\udd97': 'L'
'\ud81a\udd98': 'L'
'\ud81a\udd99': 'L'
'\ud81a\udd9a': 'L'
'\ud81a\udd9b': 'L'
'\ud81a\udd9c': 'L'
'\ud81a\udd9d': 'L'
'\ud81a\udd9e': 'L'
'\ud81a\udd9f': 'L'
'\ud81a\udda0': 'L'
'\ud81a\udda1': 'L'
'\ud81a\udda2': 'L'
'\ud81a\udda3': 'L'
'\ud81a\udda4': 'L'
'\ud81a\udda5': 'L'
'\ud81a\udda6': 'L'
'\ud81a\udda7': 'L'
'\ud81a\udda8': 'L'
'\ud81a\udda9': 'L'
'\ud81a\uddaa': 'L'
'\ud81a\uddab': 'L'
'\ud81a\uddac': 'L'
'\ud81a\uddad': 'L'
'\ud81a\uddae': 'L'
'\ud81a\uddaf': 'L'
'\ud81a\uddb0': 'L'
'\ud81a\uddb1': 'L'
'\ud81a\uddb2': 'L'
'\ud81a\uddb3': 'L'
'\ud81a\uddb4': 'L'
'\ud81a\uddb5': 'L'
'\ud81a\uddb6': 'L'
'\ud81a\uddb7': 'L'
'\ud81a\uddb8': 'L'
'\ud81a\uddb9': 'L'
'\ud81a\uddba': 'L'
'\ud81a\uddbb': 'L'
'\ud81a\uddbc': 'L'
'\ud81a\uddbd': 'L'
'\ud81a\uddbe': 'L'
'\ud81a\uddbf': 'L'
'\ud81a\uddc0': 'L'
'\ud81a\uddc1': 'L'
'\ud81a\uddc2': 'L'
'\ud81a\uddc3': 'L'
'\ud81a\uddc4': 'L'
'\ud81a\uddc5': 'L'
'\ud81a\uddc6': 'L'
'\ud81a\uddc7': 'L'
'\ud81a\uddc8': 'L'
'\ud81a\uddc9': 'L'
'\ud81a\uddca': 'L'
'\ud81a\uddcb': 'L'
'\ud81a\uddcc': 'L'
'\ud81a\uddcd': 'L'
'\ud81a\uddce': 'L'
'\ud81a\uddcf': 'L'
'\ud81a\uddd0': 'L'
'\ud81a\uddd1': 'L'
'\ud81a\uddd2': 'L'
'\ud81a\uddd3': 'L'
'\ud81a\uddd4': 'L'
'\ud81a\uddd5': 'L'
'\ud81a\uddd6': 'L'
'\ud81a\uddd7': 'L'
'\ud81a\uddd8': 'L'
'\ud81a\uddd9': 'L'
'\ud81a\uddda': 'L'
'\ud81a\udddb': 'L'
'\ud81a\udddc': 'L'
'\ud81a\udddd': 'L'
'\ud81a\uddde': 'L'
'\ud81a\udddf': 'L'
'\ud81a\udde0': 'L'
'\ud81a\udde1': 'L'
'\ud81a\udde2': 'L'
'\ud81a\udde3': 'L'
'\ud81a\udde4': 'L'
'\ud81a\udde5': 'L'
'\ud81a\udde6': 'L'
'\ud81a\udde7': 'L'
'\ud81a\udde8': 'L'
'\ud81a\udde9': 'L'
'\ud81a\uddea': 'L'
'\ud81a\uddeb': 'L'
'\ud81a\uddec': 'L'
'\ud81a\udded': 'L'
'\ud81a\uddee': 'L'
'\ud81a\uddef': 'L'
'\ud81a\uddf0': 'L'
'\ud81a\uddf1': 'L'
'\ud81a\uddf2': 'L'
'\ud81a\uddf3': 'L'
'\ud81a\uddf4': 'L'
'\ud81a\uddf5': 'L'
'\ud81a\uddf6': 'L'
'\ud81a\uddf7': 'L'
'\ud81a\uddf8': 'L'
'\ud81a\uddf9': 'L'
'\ud81a\uddfa': 'L'
'\ud81a\uddfb': 'L'
'\ud81a\uddfc': 'L'
'\ud81a\uddfd': 'L'
'\ud81a\uddfe': 'L'
'\ud81a\uddff': 'L'
'\ud81a\ude00': 'L'
'\ud81a\ude01': 'L'
'\ud81a\ude02': 'L'
'\ud81a\ude03': 'L'
'\ud81a\ude04': 'L'
'\ud81a\ude05': 'L'
'\ud81a\ude06': 'L'
'\ud81a\ude07': 'L'
'\ud81a\ude08': 'L'
'\ud81a\ude09': 'L'
'\ud81a\ude0a': 'L'
'\ud81a\ude0b': 'L'
'\ud81a\ude0c': 'L'
'\ud81a\ude0d': 'L'
'\ud81a\ude0e': 'L'
'\ud81a\ude0f': 'L'
'\ud81a\ude10': 'L'
'\ud81a\ude11': 'L'
'\ud81a\ude12': 'L'
'\ud81a\ude13': 'L'
'\ud81a\ude14': 'L'
'\ud81a\ude15': 'L'
'\ud81a\ude16': 'L'
'\ud81a\ude17': 'L'
'\ud81a\ude18': 'L'
'\ud81a\ude19': 'L'
'\ud81a\ude1a': 'L'
'\ud81a\ude1b': 'L'
'\ud81a\ude1c': 'L'
'\ud81a\ude1d': 'L'
'\ud81a\ude1e': 'L'
'\ud81a\ude1f': 'L'
'\ud81a\ude20': 'L'
'\ud81a\ude21': 'L'
'\ud81a\ude22': 'L'
'\ud81a\ude23': 'L'
'\ud81a\ude24': 'L'
'\ud81a\ude25': 'L'
'\ud81a\ude26': 'L'
'\ud81a\ude27': 'L'
'\ud81a\ude28': 'L'
'\ud81a\ude29': 'L'
'\ud81a\ude2a': 'L'
'\ud81a\ude2b': 'L'
'\ud81a\ude2c': 'L'
'\ud81a\ude2d': 'L'
'\ud81a\ude2e': 'L'
'\ud81a\ude2f': 'L'
'\ud81a\ude30': 'L'
'\ud81a\ude31': 'L'
'\ud81a\ude32': 'L'
'\ud81a\ude33': 'L'
'\ud81a\ude34': 'L'
'\ud81a\ude35': 'L'
'\ud81a\ude36': 'L'
'\ud81a\ude37': 'L'
'\ud81a\ude38': 'L'
'\ud81a\ude40': 'L'
'\ud81a\ude41': 'L'
'\ud81a\ude42': 'L'
'\ud81a\ude43': 'L'
'\ud81a\ude44': 'L'
'\ud81a\ude45': 'L'
'\ud81a\ude46': 'L'
'\ud81a\ude47': 'L'
'\ud81a\ude48': 'L'
'\ud81a\ude49': 'L'
'\ud81a\ude4a': 'L'
'\ud81a\ude4b': 'L'
'\ud81a\ude4c': 'L'
'\ud81a\ude4d': 'L'
'\ud81a\ude4e': 'L'
'\ud81a\ude4f': 'L'
'\ud81a\ude50': 'L'
'\ud81a\ude51': 'L'
'\ud81a\ude52': 'L'
'\ud81a\ude53': 'L'
'\ud81a\ude54': 'L'
'\ud81a\ude55': 'L'
'\ud81a\ude56': 'L'
'\ud81a\ude57': 'L'
'\ud81a\ude58': 'L'
'\ud81a\ude59': 'L'
'\ud81a\ude5a': 'L'
'\ud81a\ude5b': 'L'
'\ud81a\ude5c': 'L'
'\ud81a\ude5d': 'L'
'\ud81a\ude5e': 'L'
'\ud81a\ude60': 'N'
'\ud81a\ude61': 'N'
'\ud81a\ude62': 'N'
'\ud81a\ude63': 'N'
'\ud81a\ude64': 'N'
'\ud81a\ude65': 'N'
'\ud81a\ude66': 'N'
'\ud81a\ude67': 'N'
'\ud81a\ude68': 'N'
'\ud81a\ude69': 'N'
'\ud81a\uded0': 'L'
'\ud81a\uded1': 'L'
'\ud81a\uded2': 'L'
'\ud81a\uded3': 'L'
'\ud81a\uded4': 'L'
'\ud81a\uded5': 'L'
'\ud81a\uded6': 'L'
'\ud81a\uded7': 'L'
'\ud81a\uded8': 'L'
'\ud81a\uded9': 'L'
'\ud81a\udeda': 'L'
'\ud81a\udedb': 'L'
'\ud81a\udedc': 'L'
'\ud81a\udedd': 'L'
'\ud81a\udede': 'L'
'\ud81a\udedf': 'L'
'\ud81a\udee0': 'L'
'\ud81a\udee1': 'L'
'\ud81a\udee2': 'L'
'\ud81a\udee3': 'L'
'\ud81a\udee4': 'L'
'\ud81a\udee5': 'L'
'\ud81a\udee6': 'L'
'\ud81a\udee7': 'L'
'\ud81a\udee8': 'L'
'\ud81a\udee9': 'L'
'\ud81a\udeea': 'L'
'\ud81a\udeeb': 'L'
'\ud81a\udeec': 'L'
'\ud81a\udeed': 'L'
'\ud81a\udf00': 'L'
'\ud81a\udf01': 'L'
'\ud81a\udf02': 'L'
'\ud81a\udf03': 'L'
'\ud81a\udf04': 'L'
'\ud81a\udf05': 'L'
'\ud81a\udf06': 'L'
'\ud81a\udf07': 'L'
'\ud81a\udf08': 'L'
'\ud81a\udf09': 'L'
'\ud81a\udf0a': 'L'
'\ud81a\udf0b': 'L'
'\ud81a\udf0c': 'L'
'\ud81a\udf0d': 'L'
'\ud81a\udf0e': 'L'
'\ud81a\udf0f': 'L'
'\ud81a\udf10': 'L'
'\ud81a\udf11': 'L'
'\ud81a\udf12': 'L'
'\ud81a\udf13': 'L'
'\ud81a\udf14': 'L'
'\ud81a\udf15': 'L'
'\ud81a\udf16': 'L'
'\ud81a\udf17': 'L'
'\ud81a\udf18': 'L'
'\ud81a\udf19': 'L'
'\ud81a\udf1a': 'L'
'\ud81a\udf1b': 'L'
'\ud81a\udf1c': 'L'
'\ud81a\udf1d': 'L'
'\ud81a\udf1e': 'L'
'\ud81a\udf1f': 'L'
'\ud81a\udf20': 'L'
'\ud81a\udf21': 'L'
'\ud81a\udf22': 'L'
'\ud81a\udf23': 'L'
'\ud81a\udf24': 'L'
'\ud81a\udf25': 'L'
'\ud81a\udf26': 'L'
'\ud81a\udf27': 'L'
'\ud81a\udf28': 'L'
'\ud81a\udf29': 'L'
'\ud81a\udf2a': 'L'
'\ud81a\udf2b': 'L'
'\ud81a\udf2c': 'L'
'\ud81a\udf2d': 'L'
'\ud81a\udf2e': 'L'
'\ud81a\udf2f': 'L'
'\ud81a\udf40': 'L'
'\ud81a\udf41': 'L'
'\ud81a\udf42': 'L'
'\ud81a\udf43': 'L'
'\ud81a\udf50': 'N'
'\ud81a\udf51': 'N'
'\ud81a\udf52': 'N'
'\ud81a\udf53': 'N'
'\ud81a\udf54': 'N'
'\ud81a\udf55': 'N'
'\ud81a\udf56': 'N'
'\ud81a\udf57': 'N'
'\ud81a\udf58': 'N'
'\ud81a\udf59': 'N'
'\ud81a\udf5b': 'N'
'\ud81a\udf5c': 'N'
'\ud81a\udf5d': 'N'
'\ud81a\udf5e': 'N'
'\ud81a\udf5f': 'N'
'\ud81a\udf60': 'N'
'\ud81a\udf61': 'N'
'\ud81a\udf63': 'L'
'\ud81a\udf64': 'L'
'\ud81a\udf65': 'L'
'\ud81a\udf66': 'L'
'\ud81a\udf67': 'L'
'\ud81a\udf68': 'L'
'\ud81a\udf69': 'L'
'\ud81a\udf6a': 'L'
'\ud81a\udf6b': 'L'
'\ud81a\udf6c': 'L'
'\ud81a\udf6d': 'L'
'\ud81a\udf6e': 'L'
'\ud81a\udf6f': 'L'
'\ud81a\udf70': 'L'
'\ud81a\udf71': 'L'
'\ud81a\udf72': 'L'
'\ud81a\udf73': 'L'
'\ud81a\udf74': 'L'
'\ud81a\udf75': 'L'
'\ud81a\udf76': 'L'
'\ud81a\udf77': 'L'
'\ud81a\udf7d': 'L'
'\ud81a\udf7e': 'L'
'\ud81a\udf7f': 'L'
'\ud81a\udf80': 'L'
'\ud81a\udf81': 'L'
'\ud81a\udf82': 'L'
'\ud81a\udf83': 'L'
'\ud81a\udf84': 'L'
'\ud81a\udf85': 'L'
'\ud81a\udf86': 'L'
'\ud81a\udf87': 'L'
'\ud81a\udf88': 'L'
'\ud81a\udf89': 'L'
'\ud81a\udf8a': 'L'
'\ud81a\udf8b': 'L'
'\ud81a\udf8c': 'L'
'\ud81a\udf8d': 'L'
'\ud81a\udf8e': 'L'
'\ud81a\udf8f': 'L'
'\ud81b\udf00': 'L'
'\ud81b\udf01': 'L'
'\ud81b\udf02': 'L'
'\ud81b\udf03': 'L'
'\ud81b\udf04': 'L'
'\ud81b\udf05': 'L'
'\ud81b\udf06': 'L'
'\ud81b\udf07': 'L'
'\ud81b\udf08': 'L'
'\ud81b\udf09': 'L'
'\ud81b\udf0a': 'L'
'\ud81b\udf0b': 'L'
'\ud81b\udf0c': 'L'
'\ud81b\udf0d': 'L'
'\ud81b\udf0e': 'L'
'\ud81b\udf0f': 'L'
'\ud81b\udf10': 'L'
'\ud81b\udf11': 'L'
'\ud81b\udf12': 'L'
'\ud81b\udf13': 'L'
'\ud81b\udf14': 'L'
'\ud81b\udf15': 'L'
'\ud81b\udf16': 'L'
'\ud81b\udf17': 'L'
'\ud81b\udf18': 'L'
'\ud81b\udf19': 'L'
'\ud81b\udf1a': 'L'
'\ud81b\udf1b': 'L'
'\ud81b\udf1c': 'L'
'\ud81b\udf1d': 'L'
'\ud81b\udf1e': 'L'
'\ud81b\udf1f': 'L'
'\ud81b\udf20': 'L'
'\ud81b\udf21': 'L'
'\ud81b\udf22': 'L'
'\ud81b\udf23': 'L'
'\ud81b\udf24': 'L'
'\ud81b\udf25': 'L'
'\ud81b\udf26': 'L'
'\ud81b\udf27': 'L'
'\ud81b\udf28': 'L'
'\ud81b\udf29': 'L'
'\ud81b\udf2a': 'L'
'\ud81b\udf2b': 'L'
'\ud81b\udf2c': 'L'
'\ud81b\udf2d': 'L'
'\ud81b\udf2e': 'L'
'\ud81b\udf2f': 'L'
'\ud81b\udf30': 'L'
'\ud81b\udf31': 'L'
'\ud81b\udf32': 'L'
'\ud81b\udf33': 'L'
'\ud81b\udf34': 'L'
'\ud81b\udf35': 'L'
'\ud81b\udf36': 'L'
'\ud81b\udf37': 'L'
'\ud81b\udf38': 'L'
'\ud81b\udf39': 'L'
'\ud81b\udf3a': 'L'
'\ud81b\udf3b': 'L'
'\ud81b\udf3c': 'L'
'\ud81b\udf3d': 'L'
'\ud81b\udf3e': 'L'
'\ud81b\udf3f': 'L'
'\ud81b\udf40': 'L'
'\ud81b\udf41': 'L'
'\ud81b\udf42': 'L'
'\ud81b\udf43': 'L'
'\ud81b\udf44': 'L'
'\ud81b\udf50': 'L'
'\ud81b\udf93': 'L'
'\ud81b\udf94': 'L'
'\ud81b\udf95': 'L'
'\ud81b\udf96': 'L'
'\ud81b\udf97': 'L'
'\ud81b\udf98': 'L'
'\ud81b\udf99': 'L'
'\ud81b\udf9a': 'L'
'\ud81b\udf9b': 'L'
'\ud81b\udf9c': 'L'
'\ud81b\udf9d': 'L'
'\ud81b\udf9e': 'L'
'\ud81b\udf9f': 'L'
'\ud82c\udc00': 'L'
'\ud82c\udc01': 'L'
'\ud82f\udc00': 'L'
'\ud82f\udc01': 'L'
'\ud82f\udc02': 'L'
'\ud82f\udc03': 'L'
'\ud82f\udc04': 'L'
'\ud82f\udc05': 'L'
'\ud82f\udc06': 'L'
'\ud82f\udc07': 'L'
'\ud82f\udc08': 'L'
'\ud82f\udc09': 'L'
'\ud82f\udc0a': 'L'
'\ud82f\udc0b': 'L'
'\ud82f\udc0c': 'L'
'\ud82f\udc0d': 'L'
'\ud82f\udc0e': 'L'
'\ud82f\udc0f': 'L'
'\ud82f\udc10': 'L'
'\ud82f\udc11': 'L'
'\ud82f\udc12': 'L'
'\ud82f\udc13': 'L'
'\ud82f\udc14': 'L'
'\ud82f\udc15': 'L'
'\ud82f\udc16': 'L'
'\ud82f\udc17': 'L'
'\ud82f\udc18': 'L'
'\ud82f\udc19': 'L'
'\ud82f\udc1a': 'L'
'\ud82f\udc1b': 'L'
'\ud82f\udc1c': 'L'
'\ud82f\udc1d': 'L'
'\ud82f\udc1e': 'L'
'\ud82f\udc1f': 'L'
'\ud82f\udc20': 'L'
'\ud82f\udc21': 'L'
'\ud82f\udc22': 'L'
'\ud82f\udc23': 'L'
'\ud82f\udc24': 'L'
'\ud82f\udc25': 'L'
'\ud82f\udc26': 'L'
'\ud82f\udc27': 'L'
'\ud82f\udc28': 'L'
'\ud82f\udc29': 'L'
'\ud82f\udc2a': 'L'
'\ud82f\udc2b': 'L'
'\ud82f\udc2c': 'L'
'\ud82f\udc2d': 'L'
'\ud82f\udc2e': 'L'
'\ud82f\udc2f': 'L'
'\ud82f\udc30': 'L'
'\ud82f\udc31': 'L'
'\ud82f\udc32': 'L'
'\ud82f\udc33': 'L'
'\ud82f\udc34': 'L'
'\ud82f\udc35': 'L'
'\ud82f\udc36': 'L'
'\ud82f\udc37': 'L'
'\ud82f\udc38': 'L'
'\ud82f\udc39': 'L'
'\ud82f\udc3a': 'L'
'\ud82f\udc3b': 'L'
'\ud82f\udc3c': 'L'
'\ud82f\udc3d': 'L'
'\ud82f\udc3e': 'L'
'\ud82f\udc3f': 'L'
'\ud82f\udc40': 'L'
'\ud82f\udc41': 'L'
'\ud82f\udc42': 'L'
'\ud82f\udc43': 'L'
'\ud82f\udc44': 'L'
'\ud82f\udc45': 'L'
'\ud82f\udc46': 'L'
'\ud82f\udc47': 'L'
'\ud82f\udc48': 'L'
'\ud82f\udc49': 'L'
'\ud82f\udc4a': 'L'
'\ud82f\udc4b': 'L'
'\ud82f\udc4c': 'L'
'\ud82f\udc4d': 'L'
'\ud82f\udc4e': 'L'
'\ud82f\udc4f': 'L'
'\ud82f\udc50': 'L'
'\ud82f\udc51': 'L'
'\ud82f\udc52': 'L'
'\ud82f\udc53': 'L'
'\ud82f\udc54': 'L'
'\ud82f\udc55': 'L'
'\ud82f\udc56': 'L'
'\ud82f\udc57': 'L'
'\ud82f\udc58': 'L'
'\ud82f\udc59': 'L'
'\ud82f\udc5a': 'L'
'\ud82f\udc5b': 'L'
'\ud82f\udc5c': 'L'
'\ud82f\udc5d': 'L'
'\ud82f\udc5e': 'L'
'\ud82f\udc5f': 'L'
'\ud82f\udc60': 'L'
'\ud82f\udc61': 'L'
'\ud82f\udc62': 'L'
'\ud82f\udc63': 'L'
'\ud82f\udc64': 'L'
'\ud82f\udc65': 'L'
'\ud82f\udc66': 'L'
'\ud82f\udc67': 'L'
'\ud82f\udc68': 'L'
'\ud82f\udc69': 'L'
'\ud82f\udc6a': 'L'
'\ud82f\udc70': 'L'
'\ud82f\udc71': 'L'
'\ud82f\udc72': 'L'
'\ud82f\udc73': 'L'
'\ud82f\udc74': 'L'
'\ud82f\udc75': 'L'
'\ud82f\udc76': 'L'
'\ud82f\udc77': 'L'
'\ud82f\udc78': 'L'
'\ud82f\udc79': 'L'
'\ud82f\udc7a': 'L'
'\ud82f\udc7b': 'L'
'\ud82f\udc7c': 'L'
'\ud82f\udc80': 'L'
'\ud82f\udc81': 'L'
'\ud82f\udc82': 'L'
'\ud82f\udc83': 'L'
'\ud82f\udc84': 'L'
'\ud82f\udc85': 'L'
'\ud82f\udc86': 'L'
'\ud82f\udc87': 'L'
'\ud82f\udc88': 'L'
'\ud82f\udc90': 'L'
'\ud82f\udc91': 'L'
'\ud82f\udc92': 'L'
'\ud82f\udc93': 'L'
'\ud82f\udc94': 'L'
'\ud82f\udc95': 'L'
'\ud82f\udc96': 'L'
'\ud82f\udc97': 'L'
'\ud82f\udc98': 'L'
'\ud82f\udc99': 'L'
'\ud834\udf60': 'N'
'\ud834\udf61': 'N'
'\ud834\udf62': 'N'
'\ud834\udf63': 'N'
'\ud834\udf64': 'N'
'\ud834\udf65': 'N'
'\ud834\udf66': 'N'
'\ud834\udf67': 'N'
'\ud834\udf68': 'N'
'\ud834\udf69': 'N'
'\ud834\udf6a': 'N'
'\ud834\udf6b': 'N'
'\ud834\udf6c': 'N'
'\ud834\udf6d': 'N'
'\ud834\udf6e': 'N'
'\ud834\udf6f': 'N'
'\ud834\udf70': 'N'
'\ud834\udf71': 'N'
'\ud835\udc00': 'Lu'
'\ud835\udc01': 'Lu'
'\ud835\udc02': 'Lu'
'\ud835\udc03': 'Lu'
'\ud835\udc04': 'Lu'
'\ud835\udc05': 'Lu'
'\ud835\udc06': 'Lu'
'\ud835\udc07': 'Lu'
'\ud835\udc08': 'Lu'
'\ud835\udc09': 'Lu'
'\ud835\udc0a': 'Lu'
'\ud835\udc0b': 'Lu'
'\ud835\udc0c': 'Lu'
'\ud835\udc0d': 'Lu'
'\ud835\udc0e': 'Lu'
'\ud835\udc0f': 'Lu'
'\ud835\udc10': 'Lu'
'\ud835\udc11': 'Lu'
'\ud835\udc12': 'Lu'
'\ud835\udc13': 'Lu'
'\ud835\udc14': 'Lu'
'\ud835\udc15': 'Lu'
'\ud835\udc16': 'Lu'
'\ud835\udc17': 'Lu'
'\ud835\udc18': 'Lu'
'\ud835\udc19': 'Lu'
'\ud835\udc1a': 'L'
'\ud835\udc1b': 'L'
'\ud835\udc1c': 'L'
'\ud835\udc1d': 'L'
'\ud835\udc1e': 'L'
'\ud835\udc1f': 'L'
'\ud835\udc20': 'L'
'\ud835\udc21': 'L'
'\ud835\udc22': 'L'
'\ud835\udc23': 'L'
'\ud835\udc24': 'L'
'\ud835\udc25': 'L'
'\ud835\udc26': 'L'
'\ud835\udc27': 'L'
'\ud835\udc28': 'L'
'\ud835\udc29': 'L'
'\ud835\udc2a': 'L'
'\ud835\udc2b': 'L'
'\ud835\udc2c': 'L'
'\ud835\udc2d': 'L'
'\ud835\udc2e': 'L'
'\ud835\udc2f': 'L'
'\ud835\udc30': 'L'
'\ud835\udc31': 'L'
'\ud835\udc32': 'L'
'\ud835\udc33': 'L'
'\ud835\udc34': 'Lu'
'\ud835\udc35': 'Lu'
'\ud835\udc36': 'Lu'
'\ud835\udc37': 'Lu'
'\ud835\udc38': 'Lu'
'\ud835\udc39': 'Lu'
'\ud835\udc3a': 'Lu'
'\ud835\udc3b': 'Lu'
'\ud835\udc3c': 'Lu'
'\ud835\udc3d': 'Lu'
'\ud835\udc3e': 'Lu'
'\ud835\udc3f': 'Lu'
'\ud835\udc40': 'Lu'
'\ud835\udc41': 'Lu'
'\ud835\udc42': 'Lu'
'\ud835\udc43': 'Lu'
'\ud835\udc44': 'Lu'
'\ud835\udc45': 'Lu'
'\ud835\udc46': 'Lu'
'\ud835\udc47': 'Lu'
'\ud835\udc48': 'Lu'
'\ud835\udc49': 'Lu'
'\ud835\udc4a': 'Lu'
'\ud835\udc4b': 'Lu'
'\ud835\udc4c': 'Lu'
'\ud835\udc4d': 'Lu'
'\ud835\udc4e': 'L'
'\ud835\udc4f': 'L'
'\ud835\udc50': 'L'
'\ud835\udc51': 'L'
'\ud835\udc52': 'L'
'\ud835\udc53': 'L'
'\ud835\udc54': 'L'
'\ud835\udc56': 'L'
'\ud835\udc57': 'L'
'\ud835\udc58': 'L'
'\ud835\udc59': 'L'
'\ud835\udc5a': 'L'
'\ud835\udc5b': 'L'
'\ud835\udc5c': 'L'
'\ud835\udc5d': 'L'
'\ud835\udc5e': 'L'
'\ud835\udc5f': 'L'
'\ud835\udc60': 'L'
'\ud835\udc61': 'L'
'\ud835\udc62': 'L'
'\ud835\udc63': 'L'
'\ud835\udc64': 'L'
'\ud835\udc65': 'L'
'\ud835\udc66': 'L'
'\ud835\udc67': 'L'
'\ud835\udc68': 'Lu'
'\ud835\udc69': 'Lu'
'\ud835\udc6a': 'Lu'
'\ud835\udc6b': 'Lu'
'\ud835\udc6c': 'Lu'
'\ud835\udc6d': 'Lu'
'\ud835\udc6e': 'Lu'
'\ud835\udc6f': 'Lu'
'\ud835\udc70': 'Lu'
'\ud835\udc71': 'Lu'
'\ud835\udc72': 'Lu'
'\ud835\udc73': 'Lu'
'\ud835\udc74': 'Lu'
'\ud835\udc75': 'Lu'
'\ud835\udc76': 'Lu'
'\ud835\udc77': 'Lu'
'\ud835\udc78': 'Lu'
'\ud835\udc79': 'Lu'
'\ud835\udc7a': 'Lu'
'\ud835\udc7b': 'Lu'
'\ud835\udc7c': 'Lu'
'\ud835\udc7d': 'Lu'
'\ud835\udc7e': 'Lu'
'\ud835\udc7f': 'Lu'
'\ud835\udc80': 'Lu'
'\ud835\udc81': 'Lu'
'\ud835\udc82': 'L'
'\ud835\udc83': 'L'
'\ud835\udc84': 'L'
'\ud835\udc85': 'L'
'\ud835\udc86': 'L'
'\ud835\udc87': 'L'
'\ud835\udc88': 'L'
'\ud835\udc89': 'L'
'\ud835\udc8a': 'L'
'\ud835\udc8b': 'L'
'\ud835\udc8c': 'L'
'\ud835\udc8d': 'L'
'\ud835\udc8e': 'L'
'\ud835\udc8f': 'L'
'\ud835\udc90': 'L'
'\ud835\udc91': 'L'
'\ud835\udc92': 'L'
'\ud835\udc93': 'L'
'\ud835\udc94': 'L'
'\ud835\udc95': 'L'
'\ud835\udc96': 'L'
'\ud835\udc97': 'L'
'\ud835\udc98': 'L'
'\ud835\udc99': 'L'
'\ud835\udc9a': 'L'
'\ud835\udc9b': 'L'
'\ud835\udc9c': 'Lu'
'\ud835\udc9e': 'Lu'
'\ud835\udc9f': 'Lu'
'\ud835\udca2': 'Lu'
'\ud835\udca5': 'Lu'
'\ud835\udca6': 'Lu'
'\ud835\udca9': 'Lu'
'\ud835\udcaa': 'Lu'
'\ud835\udcab': 'Lu'
'\ud835\udcac': 'Lu'
'\ud835\udcae': 'Lu'
'\ud835\udcaf': 'Lu'
'\ud835\udcb0': 'Lu'
'\ud835\udcb1': 'Lu'
'\ud835\udcb2': 'Lu'
'\ud835\udcb3': 'Lu'
'\ud835\udcb4': 'Lu'
'\ud835\udcb5': 'Lu'
'\ud835\udcb6': 'L'
'\ud835\udcb7': 'L'
'\ud835\udcb8': 'L'
'\ud835\udcb9': 'L'
'\ud835\udcbb': 'L'
'\ud835\udcbd': 'L'
'\ud835\udcbe': 'L'
'\ud835\udcbf': 'L'
'\ud835\udcc0': 'L'
'\ud835\udcc1': 'L'
'\ud835\udcc2': 'L'
'\ud835\udcc3': 'L'
'\ud835\udcc5': 'L'
'\ud835\udcc6': 'L'
'\ud835\udcc7': 'L'
'\ud835\udcc8': 'L'
'\ud835\udcc9': 'L'
'\ud835\udcca': 'L'
'\ud835\udccb': 'L'
'\ud835\udccc': 'L'
'\ud835\udccd': 'L'
'\ud835\udcce': 'L'
'\ud835\udccf': 'L'
'\ud835\udcd0': 'Lu'
'\ud835\udcd1': 'Lu'
'\ud835\udcd2': 'Lu'
'\ud835\udcd3': 'Lu'
'\ud835\udcd4': 'Lu'
'\ud835\udcd5': 'Lu'
'\ud835\udcd6': 'Lu'
'\ud835\udcd7': 'Lu'
'\ud835\udcd8': 'Lu'
'\ud835\udcd9': 'Lu'
'\ud835\udcda': 'Lu'
'\ud835\udcdb': 'Lu'
'\ud835\udcdc': 'Lu'
'\ud835\udcdd': 'Lu'
'\ud835\udcde': 'Lu'
'\ud835\udcdf': 'Lu'
'\ud835\udce0': 'Lu'
'\ud835\udce1': 'Lu'
'\ud835\udce2': 'Lu'
'\ud835\udce3': 'Lu'
'\ud835\udce4': 'Lu'
'\ud835\udce5': 'Lu'
'\ud835\udce6': 'Lu'
'\ud835\udce7': 'Lu'
'\ud835\udce8': 'Lu'
'\ud835\udce9': 'Lu'
'\ud835\udcea': 'L'
'\ud835\udceb': 'L'
'\ud835\udcec': 'L'
'\ud835\udced': 'L'
'\ud835\udcee': 'L'
'\ud835\udcef': 'L'
'\ud835\udcf0': 'L'
'\ud835\udcf1': 'L'
'\ud835\udcf2': 'L'
'\ud835\udcf3': 'L'
'\ud835\udcf4': 'L'
'\ud835\udcf5': 'L'
'\ud835\udcf6': 'L'
'\ud835\udcf7': 'L'
'\ud835\udcf8': 'L'
'\ud835\udcf9': 'L'
'\ud835\udcfa': 'L'
'\ud835\udcfb': 'L'
'\ud835\udcfc': 'L'
'\ud835\udcfd': 'L'
'\ud835\udcfe': 'L'
'\ud835\udcff': 'L'
'\ud835\udd00': 'L'
'\ud835\udd01': 'L'
'\ud835\udd02': 'L'
'\ud835\udd03': 'L'
'\ud835\udd04': 'Lu'
'\ud835\udd05': 'Lu'
'\ud835\udd07': 'Lu'
'\ud835\udd08': 'Lu'
'\ud835\udd09': 'Lu'
'\ud835\udd0a': 'Lu'
'\ud835\udd0d': 'Lu'
'\ud835\udd0e': 'Lu'
'\ud835\udd0f': 'Lu'
'\ud835\udd10': 'Lu'
'\ud835\udd11': 'Lu'
'\ud835\udd12': 'Lu'
'\ud835\udd13': 'Lu'
'\ud835\udd14': 'Lu'
'\ud835\udd16': 'Lu'
'\ud835\udd17': 'Lu'
'\ud835\udd18': 'Lu'
'\ud835\udd19': 'Lu'
'\ud835\udd1a': 'Lu'
'\ud835\udd1b': 'Lu'
'\ud835\udd1c': 'Lu'
'\ud835\udd1e': 'L'
'\ud835\udd1f': 'L'
'\ud835\udd20': 'L'
'\ud835\udd21': 'L'
'\ud835\udd22': 'L'
'\ud835\udd23': 'L'
'\ud835\udd24': 'L'
'\ud835\udd25': 'L'
'\ud835\udd26': 'L'
'\ud835\udd27': 'L'
'\ud835\udd28': 'L'
'\ud835\udd29': 'L'
'\ud835\udd2a': 'L'
'\ud835\udd2b': 'L'
'\ud835\udd2c': 'L'
'\ud835\udd2d': 'L'
'\ud835\udd2e': 'L'
'\ud835\udd2f': 'L'
'\ud835\udd30': 'L'
'\ud835\udd31': 'L'
'\ud835\udd32': 'L'
'\ud835\udd33': 'L'
'\ud835\udd34': 'L'
'\ud835\udd35': 'L'
'\ud835\udd36': 'L'
'\ud835\udd37': 'L'
'\ud835\udd38': 'Lu'
'\ud835\udd39': 'Lu'
'\ud835\udd3b': 'Lu'
'\ud835\udd3c': 'Lu'
'\ud835\udd3d': 'Lu'
'\ud835\udd3e': 'Lu'
'\ud835\udd40': 'Lu'
'\ud835\udd41': 'Lu'
'\ud835\udd42': 'Lu'
'\ud835\udd43': 'Lu'
'\ud835\udd44': 'Lu'
'\ud835\udd46': 'Lu'
'\ud835\udd4a': 'Lu'
'\ud835\udd4b': 'Lu'
'\ud835\udd4c': 'Lu'
'\ud835\udd4d': 'Lu'
'\ud835\udd4e': 'Lu'
'\ud835\udd4f': 'Lu'
'\ud835\udd50': 'Lu'
'\ud835\udd52': 'L'
'\ud835\udd53': 'L'
'\ud835\udd54': 'L'
'\ud835\udd55': 'L'
'\ud835\udd56': 'L'
'\ud835\udd57': 'L'
'\ud835\udd58': 'L'
'\ud835\udd59': 'L'
'\ud835\udd5a': 'L'
'\ud835\udd5b': 'L'
'\ud835\udd5c': 'L'
'\ud835\udd5d': 'L'
'\ud835\udd5e': 'L'
'\ud835\udd5f': 'L'
'\ud835\udd60': 'L'
'\ud835\udd61': 'L'
'\ud835\udd62': 'L'
'\ud835\udd63': 'L'
'\ud835\udd64': 'L'
'\ud835\udd65': 'L'
'\ud835\udd66': 'L'
'\ud835\udd67': 'L'
'\ud835\udd68': 'L'
'\ud835\udd69': 'L'
'\ud835\udd6a': 'L'
'\ud835\udd6b': 'L'
'\ud835\udd6c': 'Lu'
'\ud835\udd6d': 'Lu'
'\ud835\udd6e': 'Lu'
'\ud835\udd6f': 'Lu'
'\ud835\udd70': 'Lu'
'\ud835\udd71': 'Lu'
'\ud835\udd72': 'Lu'
'\ud835\udd73': 'Lu'
'\ud835\udd74': 'Lu'
'\ud835\udd75': 'Lu'
'\ud835\udd76': 'Lu'
'\ud835\udd77': 'Lu'
'\ud835\udd78': 'Lu'
'\ud835\udd79': 'Lu'
'\ud835\udd7a': 'Lu'
'\ud835\udd7b': 'Lu'
'\ud835\udd7c': 'Lu'
'\ud835\udd7d': 'Lu'
'\ud835\udd7e': 'Lu'
'\ud835\udd7f': 'Lu'
'\ud835\udd80': 'Lu'
'\ud835\udd81': 'Lu'
'\ud835\udd82': 'Lu'
'\ud835\udd83': 'Lu'
'\ud835\udd84': 'Lu'
'\ud835\udd85': 'Lu'
'\ud835\udd86': 'L'
'\ud835\udd87': 'L'
'\ud835\udd88': 'L'
'\ud835\udd89': 'L'
'\ud835\udd8a': 'L'
'\ud835\udd8b': 'L'
'\ud835\udd8c': 'L'
'\ud835\udd8d': 'L'
'\ud835\udd8e': 'L'
'\ud835\udd8f': 'L'
'\ud835\udd90': 'L'
'\ud835\udd91': 'L'
'\ud835\udd92': 'L'
'\ud835\udd93': 'L'
'\ud835\udd94': 'L'
'\ud835\udd95': 'L'
'\ud835\udd96': 'L'
'\ud835\udd97': 'L'
'\ud835\udd98': 'L'
'\ud835\udd99': 'L'
'\ud835\udd9a': 'L'
'\ud835\udd9b': 'L'
'\ud835\udd9c': 'L'
'\ud835\udd9d': 'L'
'\ud835\udd9e': 'L'
'\ud835\udd9f': 'L'
'\ud835\udda0': 'Lu'
'\ud835\udda1': 'Lu'
'\ud835\udda2': 'Lu'
'\ud835\udda3': 'Lu'
'\ud835\udda4': 'Lu'
'\ud835\udda5': 'Lu'
'\ud835\udda6': 'Lu'
'\ud835\udda7': 'Lu'
'\ud835\udda8': 'Lu'
'\ud835\udda9': 'Lu'
'\ud835\uddaa': 'Lu'
'\ud835\uddab': 'Lu'
'\ud835\uddac': 'Lu'
'\ud835\uddad': 'Lu'
'\ud835\uddae': 'Lu'
'\ud835\uddaf': 'Lu'
'\ud835\uddb0': 'Lu'
'\ud835\uddb1': 'Lu'
'\ud835\uddb2': 'Lu'
'\ud835\uddb3': 'Lu'
'\ud835\uddb4': 'Lu'
'\ud835\uddb5': 'Lu'
'\ud835\uddb6': 'Lu'
'\ud835\uddb7': 'Lu'
'\ud835\uddb8': 'Lu'
'\ud835\uddb9': 'Lu'
'\ud835\uddba': 'L'
'\ud835\uddbb': 'L'
'\ud835\uddbc': 'L'
'\ud835\uddbd': 'L'
'\ud835\uddbe': 'L'
'\ud835\uddbf': 'L'
'\ud835\uddc0': 'L'
'\ud835\uddc1': 'L'
'\ud835\uddc2': 'L'
'\ud835\uddc3': 'L'
'\ud835\uddc4': 'L'
'\ud835\uddc5': 'L'
'\ud835\uddc6': 'L'
'\ud835\uddc7': 'L'
'\ud835\uddc8': 'L'
'\ud835\uddc9': 'L'
'\ud835\uddca': 'L'
'\ud835\uddcb': 'L'
'\ud835\uddcc': 'L'
'\ud835\uddcd': 'L'
'\ud835\uddce': 'L'
'\ud835\uddcf': 'L'
'\ud835\uddd0': 'L'
'\ud835\uddd1': 'L'
'\ud835\uddd2': 'L'
'\ud835\uddd3': 'L'
'\ud835\uddd4': 'Lu'
'\ud835\uddd5': 'Lu'
'\ud835\uddd6': 'Lu'
'\ud835\uddd7': 'Lu'
'\ud835\uddd8': 'Lu'
'\ud835\uddd9': 'Lu'
'\ud835\uddda': 'Lu'
'\ud835\udddb': 'Lu'
'\ud835\udddc': 'Lu'
'\ud835\udddd': 'Lu'
'\ud835\uddde': 'Lu'
'\ud835\udddf': 'Lu'
'\ud835\udde0': 'Lu'
'\ud835\udde1': 'Lu'
'\ud835\udde2': 'Lu'
'\ud835\udde3': 'Lu'
'\ud835\udde4': 'Lu'
'\ud835\udde5': 'Lu'
'\ud835\udde6': 'Lu'
'\ud835\udde7': 'Lu'
'\ud835\udde8': 'Lu'
'\ud835\udde9': 'Lu'
'\ud835\uddea': 'Lu'
'\ud835\uddeb': 'Lu'
'\ud835\uddec': 'Lu'
'\ud835\udded': 'Lu'
'\ud835\uddee': 'L'
'\ud835\uddef': 'L'
'\ud835\uddf0': 'L'
'\ud835\uddf1': 'L'
'\ud835\uddf2': 'L'
'\ud835\uddf3': 'L'
'\ud835\uddf4': 'L'
'\ud835\uddf5': 'L'
'\ud835\uddf6': 'L'
'\ud835\uddf7': 'L'
'\ud835\uddf8': 'L'
'\ud835\uddf9': 'L'
'\ud835\uddfa': 'L'
'\ud835\uddfb': 'L'
'\ud835\uddfc': 'L'
'\ud835\uddfd': 'L'
'\ud835\uddfe': 'L'
'\ud835\uddff': 'L'
'\ud835\ude00': 'L'
'\ud835\ude01': 'L'
'\ud835\ude02': 'L'
'\ud835\ude03': 'L'
'\ud835\ude04': 'L'
'\ud835\ude05': 'L'
'\ud835\ude06': 'L'
'\ud835\ude07': 'L'
'\ud835\ude08': 'Lu'
'\ud835\ude09': 'Lu'
'\ud835\ude0a': 'Lu'
'\ud835\ude0b': 'Lu'
'\ud835\ude0c': 'Lu'
'\ud835\ude0d': 'Lu'
'\ud835\ude0e': 'Lu'
'\ud835\ude0f': 'Lu'
'\ud835\ude10': 'Lu'
'\ud835\ude11': 'Lu'
'\ud835\ude12': 'Lu'
'\ud835\ude13': 'Lu'
'\ud835\ude14': 'Lu'
'\ud835\ude15': 'Lu'
'\ud835\ude16': 'Lu'
'\ud835\ude17': 'Lu'
'\ud835\ude18': 'Lu'
'\ud835\ude19': 'Lu'
'\ud835\ude1a': 'Lu'
'\ud835\ude1b': 'Lu'
'\ud835\ude1c': 'Lu'
'\ud835\ude1d': 'Lu'
'\ud835\ude1e': 'Lu'
'\ud835\ude1f': 'Lu'
'\ud835\ude20': 'Lu'
'\ud835\ude21': 'Lu'
'\ud835\ude22': 'L'
'\ud835\ude23': 'L'
'\ud835\ude24': 'L'
'\ud835\ude25': 'L'
'\ud835\ude26': 'L'
'\ud835\ude27': 'L'
'\ud835\ude28': 'L'
'\ud835\ude29': 'L'
'\ud835\ude2a': 'L'
'\ud835\ude2b': 'L'
'\ud835\ude2c': 'L'
'\ud835\ude2d': 'L'
'\ud835\ude2e': 'L'
'\ud835\ude2f': 'L'
'\ud835\ude30': 'L'
'\ud835\ude31': 'L'
'\ud835\ude32': 'L'
'\ud835\ude33': 'L'
'\ud835\ude34': 'L'
'\ud835\ude35': 'L'
'\ud835\ude36': 'L'
'\ud835\ude37': 'L'
'\ud835\ude38': 'L'
'\ud835\ude39': 'L'
'\ud835\ude3a': 'L'
'\ud835\ude3b': 'L'
'\ud835\ude3c': 'Lu'
'\ud835\ude3d': 'Lu'
'\ud835\ude3e': 'Lu'
'\ud835\ude3f': 'Lu'
'\ud835\ude40': 'Lu'
'\ud835\ude41': 'Lu'
'\ud835\ude42': 'Lu'
'\ud835\ude43': 'Lu'
'\ud835\ude44': 'Lu'
'\ud835\ude45': 'Lu'
'\ud835\ude46': 'Lu'
'\ud835\ude47': 'Lu'
'\ud835\ude48': 'Lu'
'\ud835\ude49': 'Lu'
'\ud835\ude4a': 'Lu'
'\ud835\ude4b': 'Lu'
'\ud835\ude4c': 'Lu'
'\ud835\ude4d': 'Lu'
'\ud835\ude4e': 'Lu'
'\ud835\ude4f': 'Lu'
'\ud835\ude50': 'Lu'
'\ud835\ude51': 'Lu'
'\ud835\ude52': 'Lu'
'\ud835\ude53': 'Lu'
'\ud835\ude54': 'Lu'
'\ud835\ude55': 'Lu'
'\ud835\ude56': 'L'
'\ud835\ude57': 'L'
'\ud835\ude58': 'L'
'\ud835\ude59': 'L'
'\ud835\ude5a': 'L'
'\ud835\ude5b': 'L'
'\ud835\ude5c': 'L'
'\ud835\ude5d': 'L'
'\ud835\ude5e': 'L'
'\ud835\ude5f': 'L'
'\ud835\ude60': 'L'
'\ud835\ude61': 'L'
'\ud835\ude62': 'L'
'\ud835\ude63': 'L'
'\ud835\ude64': 'L'
'\ud835\ude65': 'L'
'\ud835\ude66': 'L'
'\ud835\ude67': 'L'
'\ud835\ude68': 'L'
'\ud835\ude69': 'L'
'\ud835\ude6a': 'L'
'\ud835\ude6b': 'L'
'\ud835\ude6c': 'L'
'\ud835\ude6d': 'L'
'\ud835\ude6e': 'L'
'\ud835\ude6f': 'L'
'\ud835\ude70': 'Lu'
'\ud835\ude71': 'Lu'
'\ud835\ude72': 'Lu'
'\ud835\ude73': 'Lu'
'\ud835\ude74': 'Lu'
'\ud835\ude75': 'Lu'
'\ud835\ude76': 'Lu'
'\ud835\ude77': 'Lu'
'\ud835\ude78': 'Lu'
'\ud835\ude79': 'Lu'
'\ud835\ude7a': 'Lu'
'\ud835\ude7b': 'Lu'
'\ud835\ude7c': 'Lu'
'\ud835\ude7d': 'Lu'
'\ud835\ude7e': 'Lu'
'\ud835\ude7f': 'Lu'
'\ud835\ude80': 'Lu'
'\ud835\ude81': 'Lu'
'\ud835\ude82': 'Lu'
'\ud835\ude83': 'Lu'
'\ud835\ude84': 'Lu'
'\ud835\ude85': 'Lu'
'\ud835\ude86': 'Lu'
'\ud835\ude87': 'Lu'
'\ud835\ude88': 'Lu'
'\ud835\ude89': 'Lu'
'\ud835\ude8a': 'L'
'\ud835\ude8b': 'L'
'\ud835\ude8c': 'L'
'\ud835\ude8d': 'L'
'\ud835\ude8e': 'L'
'\ud835\ude8f': 'L'
'\ud835\ude90': 'L'
'\ud835\ude91': 'L'
'\ud835\ude92': 'L'
'\ud835\ude93': 'L'
'\ud835\ude94': 'L'
'\ud835\ude95': 'L'
'\ud835\ude96': 'L'
'\ud835\ude97': 'L'
'\ud835\ude98': 'L'
'\ud835\ude99': 'L'
'\ud835\ude9a': 'L'
'\ud835\ude9b': 'L'
'\ud835\ude9c': 'L'
'\ud835\ude9d': 'L'
'\ud835\ude9e': 'L'
'\ud835\ude9f': 'L'
'\ud835\udea0': 'L'
'\ud835\udea1': 'L'
'\ud835\udea2': 'L'
'\ud835\udea3': 'L'
'\ud835\udea4': 'L'
'\ud835\udea5': 'L'
'\ud835\udea8': 'Lu'
'\ud835\udea9': 'Lu'
'\ud835\udeaa': 'Lu'
'\ud835\udeab': 'Lu'
'\ud835\udeac': 'Lu'
'\ud835\udead': 'Lu'
'\ud835\udeae': 'Lu'
'\ud835\udeaf': 'Lu'
'\ud835\udeb0': 'Lu'
'\ud835\udeb1': 'Lu'
'\ud835\udeb2': 'Lu'
'\ud835\udeb3': 'Lu'
'\ud835\udeb4': 'Lu'
'\ud835\udeb5': 'Lu'
'\ud835\udeb6': 'Lu'
'\ud835\udeb7': 'Lu'
'\ud835\udeb8': 'Lu'
'\ud835\udeb9': 'PI:NAME:<NAME>END_PI'
'\ud835\udeba': 'Lu'
'\ud835\udebb': 'Lu'
'\ud835\udebc': 'Lu'
'\ud835\udebd': 'Lu'
'\ud835\udebe': 'Lu'
'\ud835\udebf': 'Lu'
'\ud835\udec0': 'Lu'
'\ud835\udec2': 'L'
'\ud835\udec3': 'L'
'\ud835\udec4': 'L'
'\ud835\udec5': 'L'
'\ud835\udec6': 'L'
'\ud835\udec7': 'L'
'\ud835\udec8': 'L'
'\ud835\udec9': 'L'
'\ud835\udeca': 'L'
'\ud835\udecb': 'L'
'\ud835\udecc': 'L'
'\ud835\udecd': 'L'
'\ud835\udece': 'L'
'\ud835\udecf': 'L'
'\ud835\uded0': 'L'
'\ud835\uded1': 'L'
'\ud835\uded2': 'L'
'\ud835\uded3': 'L'
'\ud835\uded4': 'L'
'\ud835\uded5': 'L'
'\ud835\uded6': 'L'
'\ud835\uded7': 'L'
'\ud835\uded8': 'L'
'\ud835\uded9': 'L'
'\ud835\udeda': 'L'
'\ud835\udedc': 'L'
'\ud835\udedd': 'L'
'\ud835\udede': 'L'
'\ud835\udedf': 'L'
'\ud835\udee0': 'L'
'\ud835\udee1': 'L'
'\ud835\udee2': 'Lu'
'\ud835\udee3': 'Lu'
'\ud835\udee4': 'Lu'
'\ud835\udee5': 'Lu'
'\ud835\udee6': 'Lu'
'\ud835\udee7': 'Lu'
'\ud835\udee8': 'Lu'
'\ud835\udee9': 'Lu'
'\ud835\udeea': 'Lu'
'\ud835\udeeb': 'Lu'
'\ud835\udeec': 'Lu'
'\ud835\udeed': 'Lu'
'\ud835\udeee': 'Lu'
'\ud835\udeef': 'Lu'
'\ud835\udef0': 'Lu'
'\ud835\udef1': 'Lu'
'\ud835\udef2': 'Lu'
'\ud835\udef3': 'Lu'
'\ud835\udef4': 'Lu'
'\ud835\udef5': 'Lu'
'\ud835\udef6': 'Lu'
'\ud835\udef7': 'Lu'
'\ud835\udef8': 'Lu'
'\ud835\udef9': 'Lu'
'\ud835\udefa': 'Lu'
'\ud835\udefc': 'L'
'\ud835\udefd': 'L'
'\ud835\udefe': 'L'
'\ud835\udeff': 'L'
'\ud835\udf00': 'L'
'\ud835\udf01': 'L'
'\ud835\udf02': 'L'
'\ud835\udf03': 'L'
'\ud835\udf04': 'L'
'\ud835\udf05': 'L'
'\ud835\udf06': 'L'
'\ud835\udf07': 'L'
'\ud835\udf08': 'L'
'\ud835\udf09': 'L'
'\ud835\udf0a': 'L'
'\ud835\udf0b': 'L'
'\ud835\udf0c': 'L'
'\ud835\udf0d': 'L'
'\ud835\udf0e': 'L'
'\ud835\udf0f': 'L'
'\ud835\udf10': 'L'
'\ud835\udf11': 'L'
'\ud835\udf12': 'L'
'\ud835\udf13': 'L'
'\ud835\udf14': 'L'
'\ud835\udf16': 'L'
'\ud835\udf17': 'L'
'\ud835\udf18': 'L'
'\ud835\udf19': 'L'
'\ud835\udf1a': 'L'
'\ud835\udf1b': 'L'
'\ud835\udf1c': 'Lu'
'\ud835\udf1d': 'Lu'
'\ud835\udf1e': 'Lu'
'\ud835\udf1f': 'Lu'
'\ud835\udf20': 'Lu'
'\ud835\udf21': 'Lu'
'\ud835\udf22': 'Lu'
'\ud835\udf23': 'Lu'
'\ud835\udf24': 'Lu'
'\ud835\udf25': 'Lu'
'\ud835\udf26': 'Lu'
'\ud835\udf27': 'Lu'
'\ud835\udf28': 'Lu'
'\ud835\udf29': 'Lu'
'\ud835\udf2a': 'Lu'
'\ud835\udf2b': 'Lu'
'\ud835\udf2c': 'Lu'
'\ud835\udf2d': 'Lu'
'\ud835\udf2e': 'Lu'
'\ud835\udf2f': 'Lu'
'\ud835\udf30': 'Lu'
'\ud835\udf31': 'Lu'
'\ud835\udf32': 'Lu'
'\ud835\udf33': 'Lu'
'\ud835\udf34': 'Lu'
'\ud835\udf36': 'L'
'\ud835\udf37': 'L'
'\ud835\udf38': 'L'
'\ud835\udf39': 'L'
'\ud835\udf3a': 'L'
'\ud835\udf3b': 'L'
'\ud835\udf3c': 'L'
'\ud835\udf3d': 'L'
'\ud835\udf3e': 'L'
'\ud835\udf3f': 'L'
'\ud835\udf40': 'L'
'\ud835\udf41': 'L'
'\ud835\udf42': 'L'
'\ud835\udf43': 'L'
'\ud835\udf44': 'L'
'\ud835\udf45': 'L'
'\ud835\udf46': 'L'
'\ud835\udf47': 'L'
'\ud835\udf48': 'L'
'\ud835\udf49': 'L'
'\ud835\udf4a': 'L'
'\ud835\udf4b': 'L'
'\ud835\udf4c': 'L'
'\ud835\udf4d': 'L'
'\ud835\udf4e': 'L'
'\ud835\udf50': 'L'
'\ud835\udf51': 'L'
'\ud835\udf52': 'L'
'\ud835\udf53': 'L'
'\ud835\udf54': 'L'
'\ud835\udf55': 'L'
'\ud835\udf56': 'Lu'
'\ud835\udf57': 'Lu'
'\ud835\udf58': 'Lu'
'\ud835\udf59': 'Lu'
'\ud835\udf5a': 'Lu'
'\ud835\udf5b': 'Lu'
'\ud835\udf5c': 'Lu'
'\ud835\udf5d': 'Lu'
'\ud835\udf5e': 'Lu'
'\ud835\udf5f': 'Lu'
'\ud835\udf60': 'Lu'
'\ud835\udf61': 'Lu'
'\ud835\udf62': 'Lu'
'\ud835\udf63': 'Lu'
'\ud835\udf64': 'Lu'
'\ud835\udf65': 'Lu'
'\ud835\udf66': 'Lu'
'\ud835\udf67': 'Lu'
'\ud835\udf68': 'Lu'
'\ud835\udf69': 'Lu'
'\ud835\udf6a': 'Lu'
'\ud835\udf6b': 'Lu'
'\ud835\udf6c': 'Lu'
'\ud835\udf6d': 'Lu'
'\ud835\udf6e': 'Lu'
'\ud835\udf70': 'L'
'\ud835\udf71': 'L'
'\ud835\udf72': 'L'
'\ud835\udf73': 'L'
'\ud835\udf74': 'L'
'\ud835\udf75': 'L'
'\ud835\udf76': 'L'
'\ud835\udf77': 'L'
'\ud835\udf78': 'L'
'\ud835\udf79': 'L'
'\ud835\udf7a': 'L'
'\ud835\udf7b': 'L'
'\ud835\udf7c': 'L'
'\ud835\udf7d': 'L'
'\ud835\udf7e': 'L'
'\ud835\udf7f': 'L'
'\ud835\udf80': 'L'
'\ud835\udf81': 'L'
'\ud835\udf82': 'L'
'\ud835\udf83': 'L'
'\ud835\udf84': 'L'
'\ud835\udf85': 'L'
'\ud835\udf86': 'L'
'\ud835\udf87': 'L'
'\ud835\udf88': 'L'
'\ud835\udf8a': 'L'
'\ud835\udf8b': 'L'
'\ud835\udf8c': 'L'
'\ud835\udf8d': 'L'
'\ud835\udf8e': 'L'
'\ud835\udf8f': 'L'
'\ud835\udf90': 'Lu'
'\ud835\udf91': 'Lu'
'\ud835\udf92': 'Lu'
'\ud835\udf93': 'Lu'
'\ud835\udf94': 'Lu'
'\ud835\udf95': 'Lu'
'\ud835\udf96': 'Lu'
'\ud835\udf97': 'Lu'
'\ud835\udf98': 'Lu'
'\ud835\udf99': 'Lu'
'\ud835\udf9a': 'Lu'
'\ud835\udf9b': 'Lu'
'\ud835\udf9c': 'Lu'
'\ud835\udf9d': 'Lu'
'\ud835\udf9e': 'Lu'
'\ud835\udf9f': 'Lu'
'\ud835\udfa0': 'Lu'
'\ud835\udfa1': 'Lu'
'\ud835\udfa2': 'Lu'
'\ud835\udfa3': 'Lu'
'\ud835\udfa4': 'Lu'
'\ud835\udfa5': 'Lu'
'\ud835\udfa6': 'Lu'
'\ud835\udfa7': 'Lu'
'\ud835\udfa8': 'Lu'
'\ud835\udfaa': 'L'
'\ud835\udfab': 'L'
'\ud835\udfac': 'L'
'\ud835\udfad': 'L'
'\ud835\udfae': 'L'
'\ud835\udfaf': 'L'
'\ud835\udfb0': 'L'
'\ud835\udfb1': 'L'
'\ud835\udfb2': 'L'
'\ud835\udfb3': 'L'
'\ud835\udfb4': 'L'
'\ud835\udfb5': 'L'
'\ud835\udfb6': 'L'
'\ud835\udfb7': 'L'
'\ud835\udfb8': 'L'
'\ud835\udfb9': 'L'
'\ud835\udfba': 'L'
'\ud835\udfbb': 'L'
'\ud835\udfbc': 'L'
'\ud835\udfbd': 'L'
'\ud835\udfbe': 'L'
'\ud835\udfbf': 'L'
'\ud835\udfc0': 'L'
'\ud835\udfc1': 'L'
'\ud835\udfc2': 'L'
'\ud835\udfc4': 'L'
'\ud835\udfc5': 'L'
'\ud835\udfc6': 'L'
'\ud835\udfc7': 'L'
'\ud835\udfc8': 'L'
'\ud835\udfc9': 'L'
'\ud835\udfca': 'Lu'
'\ud835\udfcb': 'L'
'\ud835\udfce': 'N'
'\ud835\udfcf': 'N'
'\ud835\udfd0': 'N'
'\ud835\udfd1': 'N'
'\ud835\udfd2': 'N'
'\ud835\udfd3': 'N'
'\ud835\udfd4': 'N'
'\ud835\udfd5': 'N'
'\ud835\udfd6': 'N'
'\ud835\udfd7': 'N'
'\ud835\udfd8': 'N'
'\ud835\udfd9': 'N'
'\ud835\udfda': 'N'
'\ud835\udfdb': 'N'
'\ud835\udfdc': 'N'
'\ud835\udfdd': 'N'
'\ud835\udfde': 'N'
'\ud835\udfdf': 'N'
'\ud835\udfe0': 'N'
'\ud835\udfe1': 'N'
'\ud835\udfe2': 'N'
'\ud835\udfe3': 'N'
'\ud835\udfe4': 'N'
'\ud835\udfe5': 'N'
'\ud835\udfe6': 'N'
'\ud835\udfe7': 'N'
'\ud835\udfe8': 'N'
'\ud835\udfe9': 'N'
'\ud835\udfea': 'N'
'\ud835\udfeb': 'N'
'\ud835\udfec': 'N'
'\ud835\udfed': 'N'
'\ud835\udfee': 'N'
'\ud835\udfef': 'N'
'\ud835\udff0': 'N'
'\ud835\udff1': 'N'
'\ud835\udff2': 'N'
'\ud835\udff3': 'N'
'\ud835\udff4': 'N'
'\ud835\udff5': 'N'
'\ud835\udff6': 'N'
'\ud835\udff7': 'N'
'\ud835\udff8': 'N'
'\ud835\udff9': 'N'
'\ud835\udffa': 'N'
'\ud835\udffb': 'N'
'\ud835\udffc': 'N'
'\ud835\udffd': 'N'
'\ud835\udffe': 'N'
'\ud835\udfff': 'N'
'\ud83a\udc00': 'L'
'\ud83a\udc01': 'L'
'\ud83a\udc02': 'L'
'\ud83a\udc03': 'L'
'\ud83a\udc04': 'L'
'\ud83a\udc05': 'L'
'\ud83a\udc06': 'L'
'\ud83a\udc07': 'L'
'\ud83a\udc08': 'L'
'\ud83a\udc09': 'L'
'\ud83a\udc0a': 'L'
'\ud83a\udc0b': 'L'
'\ud83a\udc0c': 'L'
'\ud83a\udc0d': 'L'
'\ud83a\udc0e': 'L'
'\ud83a\udc0f': 'L'
'\ud83a\udc10': 'L'
'\ud83a\udc11': 'L'
'\ud83a\udc12': 'L'
'\ud83a\udc13': 'L'
'\ud83a\udc14': 'L'
'\ud83a\udc15': 'L'
'\ud83a\udc16': 'L'
'\ud83a\udc17': 'L'
'\ud83a\udc18': 'L'
'\ud83a\udc19': 'L'
'\ud83a\udc1a': 'L'
'\ud83a\udc1b': 'L'
'\ud83a\udc1c': 'L'
'\ud83a\udc1d': 'L'
'\ud83a\udc1e': 'L'
'\ud83a\udc1f': 'L'
'\ud83a\udc20': 'L'
'\ud83a\udc21': 'L'
'\ud83a\udc22': 'L'
'\ud83a\udc23': 'L'
'\ud83a\udc24': 'L'
'\ud83a\udc25': 'L'
'\ud83a\udc26': 'L'
'\ud83a\udc27': 'L'
'\ud83a\udc28': 'L'
'\ud83a\udc29': 'L'
'\ud83a\udc2a': 'L'
'\ud83a\udc2b': 'L'
'\ud83a\udc2c': 'L'
'\ud83a\udc2d': 'L'
'\ud83a\udc2e': 'L'
'\ud83a\udc2f': 'L'
'\ud83a\udc30': 'L'
'\ud83a\udc31': 'L'
'\ud83a\udc32': 'L'
'\ud83a\udc33': 'L'
'\ud83a\udc34': 'L'
'\ud83a\udc35': 'L'
'\ud83a\udc36': 'L'
'\ud83a\udc37': 'L'
'\ud83a\udc38': 'L'
'\ud83a\udc39': 'L'
'\ud83a\udc3a': 'L'
'\ud83a\udc3b': 'L'
'\ud83a\udc3c': 'L'
'\ud83a\udc3d': 'L'
'\ud83a\udc3e': 'L'
'\ud83a\udc3f': 'L'
'\ud83a\udc40': 'L'
'\ud83a\udc41': 'L'
'\ud83a\udc42': 'L'
'\ud83a\udc43': 'L'
'\ud83a\udc44': 'L'
'\ud83a\udc45': 'L'
'\ud83a\udc46': 'L'
'\ud83a\udc47': 'L'
'\ud83a\udc48': 'L'
'\ud83a\udc49': 'L'
'\ud83a\udc4a': 'L'
'\ud83a\udc4b': 'L'
'\ud83a\udc4c': 'L'
'\ud83a\udc4d': 'L'
'\ud83a\udc4e': 'L'
'\ud83a\udc4f': 'L'
'\ud83a\udc50': 'L'
'\ud83a\udc51': 'L'
'\ud83a\udc52': 'L'
'\ud83a\udc53': 'L'
'\ud83a\udc54': 'L'
'\ud83a\udc55': 'L'
'\ud83a\udc56': 'L'
'\ud83a\udc57': 'L'
'\ud83a\udc58': 'L'
'\ud83a\udc59': 'L'
'\ud83a\udc5a': 'L'
'\ud83a\udc5b': 'L'
'\ud83a\udc5c': 'L'
'\ud83a\udc5d': 'L'
'\ud83a\udc5e': 'L'
'\ud83a\udc5f': 'L'
'\ud83a\udc60': 'L'
'\ud83a\udc61': 'L'
'\ud83a\udc62': 'L'
'\ud83a\udc63': 'L'
'\ud83a\udc64': 'L'
'\ud83a\udc65': 'L'
'\ud83a\udc66': 'L'
'\ud83a\udc67': 'L'
'\ud83a\udc68': 'L'
'\ud83a\udc69': 'L'
'\ud83a\udc6a': 'L'
'\ud83a\udc6b': 'L'
'\ud83a\udc6c': 'L'
'\ud83a\udc6d': 'L'
'\ud83a\udc6e': 'L'
'\ud83a\udc6f': 'L'
'\ud83a\udc70': 'L'
'\ud83a\udc71': 'L'
'\ud83a\udc72': 'L'
'\ud83a\udc73': 'L'
'\ud83a\udc74': 'L'
'\ud83a\udc75': 'L'
'\ud83a\udc76': 'L'
'\ud83a\udc77': 'L'
'\ud83a\udc78': 'L'
'\ud83a\udc79': 'L'
'\ud83a\udc7a': 'L'
'\ud83a\udc7b': 'L'
'\ud83a\udc7c': 'L'
'\ud83a\udc7d': 'L'
'\ud83a\udc7e': 'L'
'\ud83a\udc7f': 'L'
'\ud83a\udc80': 'L'
'\ud83a\udc81': 'L'
'\ud83a\udc82': 'L'
'\ud83a\udc83': 'L'
'\ud83a\udc84': 'L'
'\ud83a\udc85': 'L'
'\ud83a\udc86': 'L'
'\ud83a\udc87': 'L'
'\ud83a\udc88': 'L'
'\ud83a\udc89': 'L'
'\ud83a\udc8a': 'L'
'\ud83a\udc8b': 'L'
'\ud83a\udc8c': 'L'
'\ud83a\udc8d': 'L'
'\ud83a\udc8e': 'L'
'\ud83a\udc8f': 'L'
'\ud83a\udc90': 'L'
'\ud83a\udc91': 'L'
'\ud83a\udc92': 'L'
'\ud83a\udc93': 'L'
'\ud83a\udc94': 'L'
'\ud83a\udc95': 'L'
'\ud83a\udc96': 'L'
'\ud83a\udc97': 'L'
'\ud83a\udc98': 'L'
'\ud83a\udc99': 'L'
'\ud83a\udc9a': 'L'
'\ud83a\udc9b': 'L'
'\ud83a\udc9c': 'L'
'\ud83a\udc9d': 'L'
'\ud83a\udc9e': 'L'
'\ud83a\udc9f': 'L'
'\ud83a\udca0': 'L'
'\ud83a\udca1': 'L'
'\ud83a\udca2': 'L'
'\ud83a\udca3': 'L'
'\ud83a\udca4': 'L'
'\ud83a\udca5': 'L'
'\ud83a\udca6': 'L'
'\ud83a\udca7': 'L'
'\ud83a\udca8': 'L'
'\ud83a\udca9': 'L'
'\ud83a\udcaa': 'L'
'\ud83a\udcab': 'L'
'\ud83a\udcac': 'L'
'\ud83a\udcad': 'L'
'\ud83a\udcae': 'L'
'\ud83a\udcaf': 'L'
'\ud83a\udcb0': 'L'
'\ud83a\udcb1': 'L'
'\ud83a\udcb2': 'L'
'\ud83a\udcb3': 'L'
'\ud83a\udcb4': 'L'
'\ud83a\udcb5': 'L'
'\ud83a\udcb6': 'L'
'\ud83a\udcb7': 'L'
'\ud83a\udcb8': 'L'
'\ud83a\udcb9': 'L'
'\ud83a\udcba': 'L'
'\ud83a\udcbb': 'L'
'\ud83a\udcbc': 'L'
'\ud83a\udcbd': 'L'
'\ud83a\udcbe': 'L'
'\ud83a\udcbf': 'L'
'\ud83a\udcc0': 'L'
'\ud83a\udcc1': 'L'
'\ud83a\udcc2': 'L'
'\ud83a\udcc3': 'L'
'\ud83a\udcc4': 'L'
'\ud83a\udcc7': 'N'
'\ud83a\udcc8': 'N'
'\ud83a\udcc9': 'N'
'\ud83a\udcca': 'N'
'\ud83a\udccb': 'N'
'\ud83a\udccc': 'N'
'\ud83a\udccd': 'N'
'\ud83a\udcce': 'N'
'\ud83a\udccf': 'N'
'\ud83b\ude00': 'L'
'\ud83b\ude01': 'L'
'\ud83b\ude02': 'L'
'\ud83b\ude03': 'L'
'\ud83b\ude05': 'L'
'\ud83b\ude06': 'L'
'\ud83b\ude07': 'L'
'\ud83b\ude08': 'L'
'\ud83b\ude09': 'L'
'\ud83b\ude0a': 'L'
'\ud83b\ude0b': 'L'
'\ud83b\ude0c': 'L'
'\ud83b\ude0d': 'L'
'\ud83b\ude0e': 'L'
'\ud83b\ude0f': 'L'
'\ud83b\ude10': 'L'
'\ud83b\ude11': 'L'
'\ud83b\ude12': 'L'
'\ud83b\ude13': 'L'
'\ud83b\ude14': 'L'
'\ud83b\ude15': 'L'
'\ud83b\ude16': 'L'
'\ud83b\ude17': 'L'
'\ud83b\ude18': 'L'
'\ud83b\ude19': 'L'
'\ud83b\ude1a': 'L'
'\ud83b\ude1b': 'L'
'\ud83b\ude1c': 'L'
'\ud83b\ude1d': 'L'
'\ud83b\ude1e': 'L'
'\ud83b\ude1f': 'L'
'\ud83b\ude21': 'L'
'\ud83b\ude22': 'L'
'\ud83b\ude24': 'L'
'\ud83b\ude27': 'L'
'\ud83b\ude29': 'L'
'\ud83b\ude2a': 'L'
'\ud83b\ude2b': 'L'
'\ud83b\ude2c': 'L'
'\ud83b\ude2d': 'L'
'\ud83b\ude2e': 'L'
'\ud83b\ude2f': 'L'
'\ud83b\ude30': 'L'
'\ud83b\ude31': 'L'
'\ud83b\ude32': 'L'
'\ud83b\ude34': 'L'
'\ud83b\ude35': 'L'
'\ud83b\ude36': 'L'
'\ud83b\ude37': 'L'
'\ud83b\ude39': 'L'
'\ud83b\ude3b': 'L'
'\ud83b\ude42': 'L'
'\ud83b\ude47': 'L'
'\ud83b\ude49': 'L'
'\ud83b\ude4b': 'L'
'\ud83b\ude4d': 'L'
'\ud83b\ude4e': 'L'
'\ud83b\ude4f': 'L'
'\ud83b\ude51': 'L'
'\ud83b\ude52': 'L'
'\ud83b\ude54': 'L'
'\ud83b\ude57': 'L'
'\ud83b\ude59': 'L'
'\ud83b\ude5b': 'L'
'\ud83b\ude5d': 'L'
'\ud83b\ude5f': 'L'
'\ud83b\ude61': 'L'
'\ud83b\ude62': 'L'
'\ud83b\ude64': 'L'
'\ud83b\ude67': 'L'
'\ud83b\ude68': 'L'
'\ud83b\ude69': 'L'
'\ud83b\ude6a': 'L'
'\ud83b\ude6c': 'L'
'\ud83b\ude6d': 'L'
'\ud83b\ude6e': 'L'
'\ud83b\ude6f': 'L'
'\ud83b\ude70': 'L'
'\ud83b\ude71': 'L'
'\ud83b\ude72': 'L'
'\ud83b\ude74': 'L'
'\ud83b\ude75': 'L'
'\ud83b\ude76': 'L'
'\ud83b\ude77': 'L'
'\ud83b\ude79': 'L'
'\ud83b\ude7a': 'L'
'\ud83b\ude7b': 'L'
'\ud83b\ude7c': 'L'
'\ud83b\ude7e': 'L'
'\ud83b\ude80': 'L'
'\ud83b\ude81': 'L'
'\ud83b\ude82': 'L'
'\ud83b\ude83': 'L'
'\ud83b\ude84': 'L'
'\ud83b\ude85': 'L'
'\ud83b\ude86': 'L'
'\ud83b\ude87': 'L'
'\ud83b\ude88': 'L'
'\ud83b\ude89': 'L'
'\ud83b\ude8b': 'L'
'\ud83b\ude8c': 'L'
'\ud83b\ude8d': 'L'
'\ud83b\ude8e': 'L'
'\ud83b\ude8f': 'L'
'\ud83b\ude90': 'L'
'\ud83b\ude91': 'L'
'\ud83b\ude92': 'L'
'\ud83b\ude93': 'L'
'\ud83b\ude94': 'L'
'\ud83b\ude95': 'L'
'\ud83b\ude96': 'L'
'\ud83b\ude97': 'L'
'\ud83b\ude98': 'L'
'\ud83b\ude99': 'L'
'\ud83b\ude9a': 'L'
'\ud83b\ude9b': 'L'
'\ud83b\udea1': 'L'
'\ud83b\udea2': 'L'
'\ud83b\udea3': 'L'
'\ud83b\udea5': 'L'
'\ud83b\udea6': 'L'
'\ud83b\udea7': 'L'
'\ud83b\udea8': 'L'
'\ud83b\udea9': 'L'
'\ud83b\udeab': 'L'
'\ud83b\udeac': 'L'
'\ud83b\udead': 'L'
'\ud83b\udeae': 'L'
'\ud83b\udeaf': 'L'
'\ud83b\udeb0': 'L'
'\ud83b\udeb1': 'L'
'\ud83b\udeb2': 'L'
'\ud83b\udeb3': 'L'
'\ud83b\udeb4': 'L'
'\ud83b\udeb5': 'L'
'\ud83b\udeb6': 'L'
'\ud83b\udeb7': 'L'
'\ud83b\udeb8': 'L'
'\ud83b\udeb9': 'L'
'\ud83b\udeba': 'L'
'\ud83b\udebb': 'L'
'\ud83c\udd00': 'N'
'\ud83c\udd01': 'N'
'\ud83c\udd02': 'N'
'\ud83c\udd03': 'N'
'\ud83c\udd04': 'N'
'\ud83c\udd05': 'N'
'\ud83c\udd06': 'N'
'\ud83c\udd07': 'N'
'\ud83c\udd08': 'N'
'\ud83c\udd09': 'N'
'\ud83c\udd0a': 'N'
'\ud83c\udd0b': 'N'
'\ud83c\udd0c': 'N'
'\ud87e\udc00': 'L'
'\ud87e\udc01': 'L'
'\ud87e\udc02': 'L'
'\ud87e\udc03': 'L'
'\ud87e\udc04': 'L'
'\ud87e\udc05': 'L'
'\ud87e\udc06': 'L'
'\ud87e\udc07': 'L'
'\ud87e\udc08': 'L'
'\ud87e\udc09': 'L'
'\ud87e\udc0a': 'L'
'\ud87e\udc0b': 'L'
'\ud87e\udc0c': 'L'
'\ud87e\udc0d': 'L'
'\ud87e\udc0e': 'L'
'\ud87e\udc0f': 'L'
'\ud87e\udc10': 'L'
'\ud87e\udc11': 'L'
'\ud87e\udc12': 'L'
'\ud87e\udc13': 'L'
'\ud87e\udc14': 'L'
'\ud87e\udc15': 'L'
'\ud87e\udc16': 'L'
'\ud87e\udc17': 'L'
'\ud87e\udc18': 'L'
'\ud87e\udc19': 'L'
'\ud87e\udc1a': 'L'
'\ud87e\udc1b': 'L'
'\ud87e\udc1c': 'L'
'\ud87e\udc1d': 'L'
'\ud87e\udc1e': 'L'
'\ud87e\udc1f': 'L'
'\ud87e\udc20': 'L'
'\ud87e\udc21': 'L'
'\ud87e\udc22': 'L'
'\ud87e\udc23': 'L'
'\ud87e\udc24': 'L'
'\ud87e\udc25': 'L'
'\ud87e\udc26': 'L'
'\ud87e\udc27': 'L'
'\ud87e\udc28': 'L'
'\ud87e\udc29': 'L'
'\ud87e\udc2a': 'L'
'\ud87e\udc2b': 'L'
'\ud87e\udc2c': 'L'
'\ud87e\udc2d': 'L'
'\ud87e\udc2e': 'L'
'\ud87e\udc2f': 'L'
'\ud87e\udc30': 'L'
'\ud87e\udc31': 'L'
'\ud87e\udc32': 'L'
'\ud87e\udc33': 'L'
'\ud87e\udc34': 'L'
'\ud87e\udc35': 'L'
'\ud87e\udc36': 'L'
'\ud87e\udc37': 'L'
'\ud87e\udc38': 'L'
'\ud87e\udc39': 'L'
'\ud87e\udc3a': 'L'
'\ud87e\udc3b': 'L'
'\ud87e\udc3c': 'L'
'\ud87e\udc3d': 'L'
'\ud87e\udc3e': 'L'
'\ud87e\udc3f': 'L'
'\ud87e\udc40': 'L'
'\ud87e\udc41': 'L'
'\ud87e\udc42': 'L'
'\ud87e\udc43': 'L'
'\ud87e\udc44': 'L'
'\ud87e\udc45': 'L'
'\ud87e\udc46': 'L'
'\ud87e\udc47': 'L'
'\ud87e\udc48': 'L'
'\ud87e\udc49': 'L'
'\ud87e\udc4a': 'L'
'\ud87e\udc4b': 'L'
'\ud87e\udc4c': 'L'
'\ud87e\udc4d': 'L'
'\ud87e\udc4e': 'L'
'\ud87e\udc4f': 'L'
'\ud87e\udc50': 'L'
'\ud87e\udc51': 'L'
'\ud87e\udc52': 'L'
'\ud87e\udc53': 'L'
'\ud87e\udc54': 'L'
'\ud87e\udc55': 'L'
'\ud87e\udc56': 'L'
'\ud87e\udc57': 'L'
'\ud87e\udc58': 'L'
'\ud87e\udc59': 'L'
'\ud87e\udc5a': 'L'
'\ud87e\udc5b': 'L'
'\ud87e\udc5c': 'L'
'\ud87e\udc5d': 'L'
'\ud87e\udc5e': 'L'
'\ud87e\udc5f': 'L'
'\ud87e\udc60': 'L'
'\ud87e\udc61': 'L'
'\ud87e\udc62': 'L'
'\ud87e\udc63': 'L'
'\ud87e\udc64': 'L'
'\ud87e\udc65': 'L'
'\ud87e\udc66': 'L'
'\ud87e\udc67': 'L'
'\ud87e\udc68': 'L'
'\ud87e\udc69': 'L'
'\ud87e\udc6a': 'L'
'\ud87e\udc6b': 'L'
'\ud87e\udc6c': 'L'
'\ud87e\udc6d': 'L'
'\ud87e\udc6e': 'L'
'\ud87e\udc6f': 'L'
'\ud87e\udc70': 'L'
'\ud87e\udc71': 'L'
'\ud87e\udc72': 'L'
'\ud87e\udc73': 'L'
'\ud87e\udc74': 'L'
'\ud87e\udc75': 'L'
'\ud87e\udc76': 'L'
'\ud87e\udc77': 'L'
'\ud87e\udc78': 'L'
'\ud87e\udc79': 'L'
'\ud87e\udc7a': 'L'
'\ud87e\udc7b': 'L'
'\ud87e\udc7c': 'L'
'\ud87e\udc7d': 'L'
'\ud87e\udc7e': 'L'
'\ud87e\udc7f': 'L'
'\ud87e\udc80': 'L'
'\ud87e\udc81': 'L'
'\ud87e\udc82': 'L'
'\ud87e\udc83': 'L'
'\ud87e\udc84': 'L'
'\ud87e\udc85': 'L'
'\ud87e\udc86': 'L'
'\ud87e\udc87': 'L'
'\ud87e\udc88': 'L'
'\ud87e\udc89': 'L'
'\ud87e\udc8a': 'L'
'\ud87e\udc8b': 'L'
'\ud87e\udc8c': 'L'
'\ud87e\udc8d': 'L'
'\ud87e\udc8e': 'L'
'\ud87e\udc8f': 'L'
'\ud87e\udc90': 'L'
'\ud87e\udc91': 'L'
'\ud87e\udc92': 'L'
'\ud87e\udc93': 'L'
'\ud87e\udc94': 'L'
'\ud87e\udc95': 'L'
'\ud87e\udc96': 'L'
'\ud87e\udc97': 'L'
'\ud87e\udc98': 'L'
'\ud87e\udc99': 'L'
'\ud87e\udc9a': 'L'
'\ud87e\udc9b': 'L'
'\ud87e\udc9c': 'L'
'\ud87e\udc9d': 'L'
'\ud87e\udc9e': 'L'
'\ud87e\udc9f': 'L'
'\ud87e\udca0': 'L'
'\ud87e\udca1': 'L'
'\ud87e\udca2': 'L'
'\ud87e\udca3': 'L'
'\ud87e\udca4': 'L'
'\ud87e\udca5': 'L'
'\ud87e\udca6': 'L'
'\ud87e\udca7': 'L'
'\ud87e\udca8': 'L'
'\ud87e\udca9': 'L'
'\ud87e\udcaa': 'L'
'\ud87e\udcab': 'L'
'\ud87e\udcac': 'L'
'\ud87e\udcad': 'L'
'\ud87e\udcae': 'L'
'\ud87e\udcaf': 'L'
'\ud87e\udcb0': 'L'
'\ud87e\udcb1': 'L'
'\ud87e\udcb2': 'L'
'\ud87e\udcb3': 'L'
'\ud87e\udcb4': 'L'
'\ud87e\udcb5': 'L'
'\ud87e\udcb6': 'L'
'\ud87e\udcb7': 'L'
'\ud87e\udcb8': 'L'
'\ud87e\udcb9': 'L'
'\ud87e\udcba': 'L'
'\ud87e\udcbb': 'L'
'\ud87e\udcbc': 'L'
'\ud87e\udcbd': 'L'
'\ud87e\udcbe': 'L'
'\ud87e\udcbf': 'L'
'\ud87e\udcc0': 'L'
'\ud87e\udcc1': 'L'
'\ud87e\udcc2': 'L'
'\ud87e\udcc3': 'L'
'\ud87e\udcc4': 'L'
'\ud87e\udcc5': 'L'
'\ud87e\udcc6': 'L'
'\ud87e\udcc7': 'L'
'\ud87e\udcc8': 'L'
'\ud87e\udcc9': 'L'
'\ud87e\udcca': 'L'
'\ud87e\udccb': 'L'
'\ud87e\udccc': 'L'
'\ud87e\udccd': 'L'
'\ud87e\udcce': 'L'
'\ud87e\udccf': 'L'
'\ud87e\udcd0': 'L'
'\ud87e\udcd1': 'L'
'\ud87e\udcd2': 'L'
'\ud87e\udcd3': 'L'
'\ud87e\udcd4': 'L'
'\ud87e\udcd5': 'L'
'\ud87e\udcd6': 'L'
'\ud87e\udcd7': 'L'
'\ud87e\udcd8': 'L'
'\ud87e\udcd9': 'L'
'\ud87e\udcda': 'L'
'\ud87e\udcdb': 'L'
'\ud87e\udcdc': 'L'
'\ud87e\udcdd': 'L'
'\ud87e\udcde': 'L'
'\ud87e\udcdf': 'L'
'\ud87e\udce0': 'L'
'\ud87e\udce1': 'L'
'\ud87e\udce2': 'L'
'\ud87e\udce3': 'L'
'\ud87e\udce4': 'L'
'\ud87e\udce5': 'L'
'\ud87e\udce6': 'L'
'\ud87e\udce7': 'L'
'\ud87e\udce8': 'L'
'\ud87e\udce9': 'L'
'\ud87e\udcea': 'L'
'\ud87e\udceb': 'L'
'\ud87e\udcec': 'L'
'\ud87e\udced': 'L'
'\ud87e\udcee': 'L'
'\ud87e\udcef': 'L'
'\ud87e\udcf0': 'L'
'\ud87e\udcf1': 'L'
'\ud87e\udcf2': 'L'
'\ud87e\udcf3': 'L'
'\ud87e\udcf4': 'L'
'\ud87e\udcf5': 'L'
'\ud87e\udcf6': 'L'
'\ud87e\udcf7': 'L'
'\ud87e\udcf8': 'L'
'\ud87e\udcf9': 'L'
'\ud87e\udcfa': 'L'
'\ud87e\udcfb': 'L'
'\ud87e\udcfc': 'L'
'\ud87e\udcfd': 'L'
'\ud87e\udcfe': 'L'
'\ud87e\udcff': 'L'
'\ud87e\udd00': 'L'
'\ud87e\udd01': 'L'
'\ud87e\udd02': 'L'
'\ud87e\udd03': 'L'
'\ud87e\udd04': 'L'
'\ud87e\udd05': 'L'
'\ud87e\udd06': 'L'
'\ud87e\udd07': 'L'
'\ud87e\udd08': 'L'
'\ud87e\udd09': 'L'
'\ud87e\udd0a': 'L'
'\ud87e\udd0b': 'L'
'\ud87e\udd0c': 'L'
'\ud87e\udd0d': 'L'
'\ud87e\udd0e': 'L'
'\ud87e\udd0f': 'L'
'\ud87e\udd10': 'L'
'\ud87e\udd11': 'L'
'\ud87e\udd12': 'L'
'\ud87e\udd13': 'L'
'\ud87e\udd14': 'L'
'\ud87e\udd15': 'L'
'\ud87e\udd16': 'L'
'\ud87e\udd17': 'L'
'\ud87e\udd18': 'L'
'\ud87e\udd19': 'L'
'\ud87e\udd1a': 'L'
'\ud87e\udd1b': 'L'
'\ud87e\udd1c': 'L'
'\ud87e\udd1d': 'L'
'\ud87e\udd1e': 'L'
'\ud87e\udd1f': 'L'
'\ud87e\udd20': 'L'
'\ud87e\udd21': 'L'
'\ud87e\udd22': 'L'
'\ud87e\udd23': 'L'
'\ud87e\udd24': 'L'
'\ud87e\udd25': 'L'
'\ud87e\udd26': 'L'
'\ud87e\udd27': 'L'
'\ud87e\udd28': 'L'
'\ud87e\udd29': 'L'
'\ud87e\udd2a': 'L'
'\ud87e\udd2b': 'L'
'\ud87e\udd2c': 'L'
'\ud87e\udd2d': 'L'
'\ud87e\udd2e': 'L'
'\ud87e\udd2f': 'L'
'\ud87e\udd30': 'L'
'\ud87e\udd31': 'L'
'\ud87e\udd32': 'L'
'\ud87e\udd33': 'L'
'\ud87e\udd34': 'L'
'\ud87e\udd35': 'L'
'\ud87e\udd36': 'L'
'\ud87e\udd37': 'L'
'\ud87e\udd38': 'L'
'\ud87e\udd39': 'L'
'\ud87e\udd3a': 'L'
'\ud87e\udd3b': 'L'
'\ud87e\udd3c': 'L'
'\ud87e\udd3d': 'L'
'\ud87e\udd3e': 'L'
'\ud87e\udd3f': 'L'
'\ud87e\udd40': 'L'
'\ud87e\udd41': 'L'
'\ud87e\udd42': 'L'
'\ud87e\udd43': 'L'
'\ud87e\udd44': 'L'
'\ud87e\udd45': 'L'
'\ud87e\udd46': 'L'
'\ud87e\udd47': 'L'
'\ud87e\udd48': 'L'
'\ud87e\udd49': 'L'
'\ud87e\udd4a': 'L'
'\ud87e\udd4b': 'L'
'\ud87e\udd4c': 'L'
'\ud87e\udd4d': 'L'
'\ud87e\udd4e': 'L'
'\ud87e\udd4f': 'L'
'\ud87e\udd50': 'L'
'\ud87e\udd51': 'L'
'\ud87e\udd52': 'L'
'\ud87e\udd53': 'L'
'\ud87e\udd54': 'L'
'\ud87e\udd55': 'L'
'\ud87e\udd56': 'L'
'\ud87e\udd57': 'L'
'\ud87e\udd58': 'L'
'\ud87e\udd59': 'L'
'\ud87e\udd5a': 'L'
'\ud87e\udd5b': 'L'
'\ud87e\udd5c': 'L'
'\ud87e\udd5d': 'L'
'\ud87e\udd5e': 'L'
'\ud87e\udd5f': 'L'
'\ud87e\udd60': 'L'
'\ud87e\udd61': 'L'
'\ud87e\udd62': 'L'
'\ud87e\udd63': 'L'
'\ud87e\udd64': 'L'
'\ud87e\udd65': 'L'
'\ud87e\udd66': 'L'
'\ud87e\udd67': 'L'
'\ud87e\udd68': 'L'
'\ud87e\udd69': 'L'
'\ud87e\udd6a': 'L'
'\ud87e\udd6b': 'L'
'\ud87e\udd6c': 'L'
'\ud87e\udd6d': 'L'
'\ud87e\udd6e': 'L'
'\ud87e\udd6f': 'L'
'\ud87e\udd70': 'L'
'\ud87e\udd71': 'L'
'\ud87e\udd72': 'L'
'\ud87e\udd73': 'L'
'\ud87e\udd74': 'L'
'\ud87e\udd75': 'L'
'\ud87e\udd76': 'L'
'\ud87e\udd77': 'L'
'\ud87e\udd78': 'L'
'\ud87e\udd79': 'L'
'\ud87e\udd7a': 'L'
'\ud87e\udd7b': 'L'
'\ud87e\udd7c': 'L'
'\ud87e\udd7d': 'L'
'\ud87e\udd7e': 'L'
'\ud87e\udd7f': 'L'
'\ud87e\udd80': 'L'
'\ud87e\udd81': 'L'
'\ud87e\udd82': 'L'
'\ud87e\udd83': 'L'
'\ud87e\udd84': 'L'
'\ud87e\udd85': 'L'
'\ud87e\udd86': 'L'
'\ud87e\udd87': 'L'
'\ud87e\udd88': 'L'
'\ud87e\udd89': 'L'
'\ud87e\udd8a': 'L'
'\ud87e\udd8b': 'L'
'\ud87e\udd8c': 'L'
'\ud87e\udd8d': 'L'
'\ud87e\udd8e': 'L'
'\ud87e\udd8f': 'L'
'\ud87e\udd90': 'L'
'\ud87e\udd91': 'L'
'\ud87e\udd92': 'L'
'\ud87e\udd93': 'L'
'\ud87e\udd94': 'L'
'\ud87e\udd95': 'L'
'\ud87e\udd96': 'L'
'\ud87e\udd97': 'L'
'\ud87e\udd98': 'L'
'\ud87e\udd99': 'L'
'\ud87e\udd9a': 'L'
'\ud87e\udd9b': 'L'
'\ud87e\udd9c': 'L'
'\ud87e\udd9d': 'L'
'\ud87e\udd9e': 'L'
'\ud87e\udd9f': 'L'
'\ud87e\udda0': 'L'
'\ud87e\udda1': 'L'
'\ud87e\udda2': 'L'
'\ud87e\udda3': 'L'
'\ud87e\udda4': 'L'
'\ud87e\udda5': 'L'
'\ud87e\udda6': 'L'
'\ud87e\udda7': 'L'
'\ud87e\udda8': 'L'
'\ud87e\udda9': 'L'
'\ud87e\uddaa': 'L'
'\ud87e\uddab': 'L'
'\ud87e\uddac': 'L'
'\ud87e\uddad': 'L'
'\ud87e\uddae': 'L'
'\ud87e\uddaf': 'L'
'\ud87e\uddb0': 'L'
'\ud87e\uddb1': 'L'
'\ud87e\uddb2': 'L'
'\ud87e\uddb3': 'L'
'\ud87e\uddb4': 'L'
'\ud87e\uddb5': 'L'
'\ud87e\uddb6': 'L'
'\ud87e\uddb7': 'L'
'\ud87e\uddb8': 'L'
'\ud87e\uddb9': 'L'
'\ud87e\uddba': 'L'
'\ud87e\uddbb': 'L'
'\ud87e\uddbc': 'L'
'\ud87e\uddbd': 'L'
'\ud87e\uddbe': 'L'
'\ud87e\uddbf': 'L'
'\ud87e\uddc0': 'L'
'\ud87e\uddc1': 'L'
'\ud87e\uddc2': 'L'
'\ud87e\uddc3': 'L'
'\ud87e\uddc4': 'L'
'\ud87e\uddc5': 'L'
'\ud87e\uddc6': 'L'
'\ud87e\uddc7': 'L'
'\ud87e\uddc8': 'L'
'\ud87e\uddc9': 'L'
'\ud87e\uddca': 'L'
'\ud87e\uddcb': 'L'
'\ud87e\uddcc': 'L'
'\ud87e\uddcd': 'L'
'\ud87e\uddce': 'L'
'\ud87e\uddcf': 'L'
'\ud87e\uddd0': 'L'
'\ud87e\uddd1': 'L'
'\ud87e\uddd2': 'L'
'\ud87e\uddd3': 'L'
'\ud87e\uddd4': 'L'
'\ud87e\uddd5': 'L'
'\ud87e\uddd6': 'L'
'\ud87e\uddd7': 'L'
'\ud87e\uddd8': 'L'
'\ud87e\uddd9': 'L'
'\ud87e\uddda': 'L'
'\ud87e\udddb': 'L'
'\ud87e\udddc': 'L'
'\ud87e\udddd': 'L'
'\ud87e\uddde': 'L'
'\ud87e\udddf': 'L'
'\ud87e\udde0': 'L'
'\ud87e\udde1': 'L'
'\ud87e\udde2': 'L'
'\ud87e\udde3': 'L'
'\ud87e\udde4': 'L'
'\ud87e\udde5': 'L'
'\ud87e\udde6': 'L'
'\ud87e\udde7': 'L'
'\ud87e\udde8': 'L'
'\ud87e\udde9': 'L'
'\ud87e\uddea': 'L'
'\ud87e\uddeb': 'L'
'\ud87e\uddec': 'L'
'\ud87e\udded': 'L'
'\ud87e\uddee': 'L'
'\ud87e\uddef': 'L'
'\ud87e\uddf0': 'L'
'\ud87e\uddf1': 'L'
'\ud87e\uddf2': 'L'
'\ud87e\uddf3': 'L'
'\ud87e\uddf4': 'L'
'\ud87e\uddf5': 'L'
'\ud87e\uddf6': 'L'
'\ud87e\uddf7': 'L'
'\ud87e\uddf8': 'L'
'\ud87e\uddf9': 'L'
'\ud87e\uddfa': 'L'
'\ud87e\uddfb': 'L'
'\ud87e\uddfc': 'L'
'\ud87e\uddfd': 'L'
'\ud87e\uddfe': 'L'
'\ud87e\uddff': 'L'
'\ud87e\ude00': 'L'
'\ud87e\ude01': 'L'
'\ud87e\ude02': 'L'
'\ud87e\ude03': 'L'
'\ud87e\ude04': 'L'
'\ud87e\ude05': 'L'
'\ud87e\ude06': 'L'
'\ud87e\ude07': 'L'
'\ud87e\ude08': 'L'
'\ud87e\ude09': 'L'
'\ud87e\ude0a': 'L'
'\ud87e\ude0b': 'L'
'\ud87e\ude0c': 'L'
'\ud87e\ude0d': 'L'
'\ud87e\ude0e': 'L'
'\ud87e\ude0f': 'L'
'\ud87e\ude10': 'L'
'\ud87e\ude11': 'L'
'\ud87e\ude12': 'L'
'\ud87e\ude13': 'L'
'\ud87e\ude14': 'L'
'\ud87e\ude15': 'L'
'\ud87e\ude16': 'L'
'\ud87e\ude17': 'L'
'\ud87e\ude18': 'L'
'\ud87e\ude19': 'L'
'\ud87e\ude1a': 'L'
'\ud87e\ude1b': 'L'
'\ud87e\ude1c': 'L'
'\ud87e\ude1d': 'L'
|
[
{
"context": "recaptchaPublicKey = \"6LcVUwkTAAAAAHZed22DXWfp5KDOiM1ry9yPK0u6\"\n\nreloadCaptcha = ->\n apiCall \"GET\", \"/api/user/",
"end": 62,
"score": 0.9997237324714661,
"start": 22,
"tag": "KEY",
"value": "6LcVUwkTAAAAAHZed22DXWfp5KDOiM1ry9yPK0u6"
}
] | web/coffee/registration.coffee | IceCTF/ctf-platform | 10 | recaptchaPublicKey = "6LcVUwkTAAAAAHZed22DXWfp5KDOiM1ry9yPK0u6"
reloadCaptcha = ->
apiCall "GET", "/api/user/status", {}
.done (data) ->
console.log(data.data.enable_captcha)
if data.data.enable_captcha
grecaptcha.reset("captcha")
ga('send', 'event', 'Registration', 'NewCaptcha')
window.initCaptcha = initCaptcha = ->
grecaptcha.render("captcha", {sitekey: recaptchaPublicKey})
setRequired = ->
$('#user-registration-form :input').each () ->
if not $(this).is(':checkbox')
if not $(this).is(':radio')
$(this).prop('required', $(this).is(":visible"))
checkEligibility = ->
is_is = $("#country-select").val() in ["IS", ""]
is_student = $("#background-select").val() in ["student_el", "student_ms", "student_hs", "student_home", "student_undergrad", "student_grad"]
# This should be changed to reflect your eligibility requirements
if not is_student or not is_is
$("#eligibility-warning").show()
else
$("#eligibility-warning").hide()
if is_student
$("#school-group").show()
setRequired()
submitRegistration = (e) ->
e.preventDefault()
registrationData = $("#user-registration-form").serializeObject()
creatingNewTeam = $("#registration-new-team-page").is(":visible")
registrationData["create-new-team"] = creatingNewTeam
if creatingNewTeam
registrationData["ctf-emails"] = $("#checkbox-emails-create").is(':checked')
submitButton = "#register-button-create"
logType = "NewTeam"
else
registrationData["ctf-emails"] = $("#checkbox-emails-existing").is(':checked')
submitButton = "#register-button-existing"
logType = "JoinTeam"
apiCall "POST", "/api/user/create", registrationData
.done (data) ->
switch data['status']
when 0
$(submitButton).apiNotify(data, {position: "right"})
ga('send', 'event', 'Registration', 'Failure', logType + "::" + data.message)
reloadCaptcha()
when 1
ga('send', 'event', 'Registration', 'Success', logType)
document.location.href = window.baseurl + "/team"
$ ->
apiCall "GET", "/api/user/status", {}
.done (data) ->
if data.data.enable_captcha
$.getScript("https://www.google.com/recaptcha/api.js?onload=initCaptcha&render=explicit")
$("#user-registration-form").on "submit", submitRegistration
$("#registration-new-team-page").hide()
$("#registration-join-team-page").hide()
pageTransitionSpeed = 200
# Note that this height/auto sillyness is specific to the known height relationship
# between these pages. If one gets longer or shorter, we need to tweek it
offset = 0 # Not sure why this value is necessary. Check later
$("#button-new-team").click () ->
#$("#stretch-box").css("min-height", $("#stretch-box").height()+offset)
$("#registration-join-team-page").hide "slide", { direction: "up" }, pageTransitionSpeed, () ->
$("#registration-new-team-page").show "slide", { direction: "up" }, pageTransitionSpeed, () ->
ga('send', 'event', 'Registration', 'Switch', 'NewTeam')
setRequired()
$("#button-join-team").click () ->
#$("#stretch-box").css("min-height", $("#stretch-box").height()+offset)
$("#registration-new-team-page").hide "slide", { direction: "up" }, pageTransitionSpeed, () ->
$("#registration-join-team-page").show "slide", { direction: "up" }, pageTransitionSpeed, () ->
ga('send', 'event', 'Registration', 'Switch', 'JoinTeam')
setRequired()
$("#country-select").on "change", checkEligibility
$("#background-select").on "change", checkEligibility
$("#country-select").html('
<option value="">Country...</option>
<option value="IS">Iceland</option>
<option value="AF">Afghanistan</option>
<option value="AL">Albania</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AG">Angola</option>
<option value="AI">Anguilla</option>
<option value="AG">Antigua & Barbuda</option>
<option value="AR">Argentina</option>
<option value="AA">Armenia</option>
<option value="AW">Aruba</option>
<option value="AU">Australia</option>
<option value="AT">Austria</option>
<option value="AZ">Azerbaijan</option>
<option value="BS">Bahamas</option>
<option value="BH">Bahrain</option>
<option value="BD">Bangladesh</option>
<option value="BB">Barbados</option>
<option value="BY">Belarus</option>
<option value="BE">Belgium</option>
<option value="BZ">Belize</option>
<option value="BJ">Benin</option>
<option value="BM">Bermuda</option>
<option value="BT">Bhutan</option>
<option value="BO">Bolivia</option>
<option value="BL">Bonaire</option>
<option value="BA">Bosnia & Herzegovina</option>
<option value="BW">Botswana</option>
<option value="BR">Brazil</option>
<option value="BC">British Indian Ocean Ter</option>
<option value="BN">Brunei</option>
<option value="BG">Bulgaria</option>
<option value="BF">Burkina Faso</option>
<option value="BI">Burundi</option>
<option value="KH">Cambodia</option>
<option value="CM">Cameroon</option>
<option value="CA">Canada</option>
<option value="IC">Canary Islands</option>
<option value="CV">Cape Verde</option>
<option value="KY">Cayman Islands</option>
<option value="CF">Central African Republic</option>
<option value="TD">Chad</option>
<option value="CD">Channel Islands</option>
<option value="CL">Chile</option>
<option value="CN">China</option>
<option value="CI">Christmas Island</option>
<option value="CS">Cocos Island</option>
<option value="CO">Colombia</option>
<option value="CC">Comoros</option>
<option value="CG">Congo</option>
<option value="CK">Cook Islands</option>
<option value="CR">Costa Rica</option>
<option value="CT">Cote D\'Ivoire</option>
<option value="HR">Croatia</option>
<option value="CU">Cuba</option>
<option value="CB">Curacao</option>
<option value="CY">Cyprus</option>
<option value="CZ">Czech Republic</option>
<option value="DK">Denmark</option>
<option value="DJ">Djibouti</option>
<option value="DM">Dominica</option>
<option value="DO">Dominican Republic</option>
<option value="TM">East Timor</option>
<option value="EC">Ecuador</option>
<option value="EG">Egypt</option>
<option value="SV">El Salvador</option>
<option value="GQ">Equatorial Guinea</option>
<option value="ER">Eritrea</option>
<option value="EE">Estonia</option>
<option value="ET">Ethiopia</option>
<option value="FA">Falkland Islands</option>
<option value="FO">Faroe Islands</option>
<option value="FJ">Fiji</option>
<option value="FI">Finland</option>
<option value="FR">France</option>
<option value="GF">French Guiana</option>
<option value="PF">French Polynesia</option>
<option value="FS">French Southern Ter</option>
<option value="GA">Gabon</option>
<option value="GM">Gambia</option>
<option value="GE">Georgia</option>
<option value="DE">Germany</option>
<option value="GH">Ghana</option>
<option value="GI">Gibraltar</option>
<option value="GB">Great Britain</option>
<option value="GR">Greece</option>
<option value="GL">Greenland</option>
<option value="GD">Grenada</option>
<option value="GP">Guadeloupe</option>
<option value="GU">Guam</option>
<option value="GT">Guatemala</option>
<option value="GN">Guinea</option>
<option value="GY">Guyana</option>
<option value="HT">Haiti</option>
<option value="HW">Hawaii</option>
<option value="HN">Honduras</option>
<option value="HK">Hong Kong</option>
<option value="HU">Hungary</option>
<option value="IN">India</option>
<option value="ID">Indonesia</option>
<option value="IA">Iran</option>
<option value="IQ">Iraq</option>
<option value="IR">Ireland</option>
<option value="IM">Isle of Man</option>
<option value="IL">Israel</option>
<option value="IT">Italy</option>
<option value="JM">Jamaica</option>
<option value="JP">Japan</option>
<option value="JO">Jordan</option>
<option value="KZ">Kazakhstan</option>
<option value="KE">Kenya</option>
<option value="KI">Kiribati</option>
<option value="NK">Korea North</option>
<option value="KS">Korea South</option>
<option value="KW">Kuwait</option>
<option value="KG">Kyrgyzstan</option>
<option value="LA">Laos</option>
<option value="LV">Latvia</option>
<option value="LB">Lebanon</option>
<option value="LS">Lesotho</option>
<option value="LR">Liberia</option>
<option value="LY">Libya</option>
<option value="LI">Liechtenstein</option>
<option value="LT">Lithuania</option>
<option value="LU">Luxembourg</option>
<option value="MO">Macau</option>
<option value="MK">Macedonia</option>
<option value="MG">Madagascar</option>
<option value="MY">Malaysia</option>
<option value="MW">Malawi</option>
<option value="MV">Maldives</option>
<option value="ML">Mali</option>
<option value="MT">Malta</option>
<option value="MH">Marshall Islands</option>
<option value="MQ">Martinique</option>
<option value="MR">Mauritania</option>
<option value="MU">Mauritius</option>
<option value="ME">Mayotte</option>
<option value="MX">Mexico</option>
<option value="MI">Midway Islands</option>
<option value="MD">Moldova</option>
<option value="MC">Monaco</option>
<option value="MN">Mongolia</option>
<option value="MS">Montserrat</option>
<option value="MA">Morocco</option>
<option value="MZ">Mozambique</option>
<option value="MM">Myanmar</option>
<option value="NA">Nambia</option>
<option value="NU">Nauru</option>
<option value="NP">Nepal</option>
<option value="AN">Netherland Antilles</option>
<option value="NL">Netherlands (Holland, Europe)</option>
<option value="NV">Nevis</option>
<option value="NC">New Caledonia</option>
<option value="NZ">New Zealand</option>
<option value="NI">Nicaragua</option>
<option value="NE">Niger</option>
<option value="NG">Nigeria</option>
<option value="NW">Niue</option>
<option value="NF">Norfolk Island</option>
<option value="NO">Norway</option>
<option value="OM">Oman</option>
<option value="PK">Pakistan</option>
<option value="PW">Palau Island</option>
<option value="PS">Palestine</option>
<option value="PA">Panama</option>
<option value="PG">Papua New Guinea</option>
<option value="PY">Paraguay</option>
<option value="PE">Peru</option>
<option value="PH">Philippines</option>
<option value="PO">Pitcairn Island</option>
<option value="PL">Poland</option>
<option value="PT">Portugal</option>
<option value="PR">Puerto Rico</option>
<option value="QA">Qatar</option>
<option value="ME">Republic of Montenegro</option>
<option value="RS">Republic of Serbia</option>
<option value="RE">Reunion</option>
<option value="RO">Romania</option>
<option value="RU">Russia</option>
<option value="RW">Rwanda</option>
<option value="NT">St Barthelemy</option>
<option value="EU">St Eustatius</option>
<option value="HE">St Helena</option>
<option value="KN">St Kitts-Nevis</option>
<option value="LC">St Lucia</option>
<option value="MB">St Maarten</option>
<option value="PM">St Pierre & Miquelon</option>
<option value="VC">St Vincent & Grenadines</option>
<option value="SP">Saipan</option>
<option value="SO">Samoa</option>
<option value="AS">Samoa American</option>
<option value="SM">San Marino</option>
<option value="ST">Sao Tome & Principe</option>
<option value="SA">Saudi Arabia</option>
<option value="SN">Senegal</option>
<option value="RS">Serbia</option>
<option value="SC">Seychelles</option>
<option value="SL">Sierra Leone</option>
<option value="SG">Singapore</option>
<option value="SK">Slovakia</option>
<option value="SI">Slovenia</option>
<option value="SB">Solomon Islands</option>
<option value="OI">Somalia</option>
<option value="ZA">South Africa</option>
<option value="ES">Spain</option>
<option value="LK">Sri Lanka</option>
<option value="SD">Sudan</option>
<option value="SR">Suriname</option>
<option value="SZ">Swaziland</option>
<option value="SE">Sweden</option>
<option value="CH">Switzerland</option>
<option value="SY">Syria</option>
<option value="TA">Tahiti</option>
<option value="TW">Taiwan</option>
<option value="TJ">Tajikistan</option>
<option value="TZ">Tanzania</option>
<option value="TH">Thailand</option>
<option value="TG">Togo</option>
<option value="TK">Tokelau</option>
<option value="TO">Tonga</option>
<option value="TT">Trinidad & Tobago</option>
<option value="TN">Tunisia</option>
<option value="TR">Turkey</option>
<option value="TU">Turkmenistan</option>
<option value="TC">Turks & Caicos Is</option>
<option value="TV">Tuvalu</option>
<option value="UG">Uganda</option>
<option value="UA">Ukraine</option>
<option value="AE">United Arab Emirates</option>
<option value="GB">United Kingdom</option>
<option value="UY">Uruguay</option>
<option value="US">United States of America</option>
<option value="UZ">Uzbekistan</option>
<option value="VU">Vanuatu</option>
<option value="VS">Vatican City State</option>
<option value="VE">Venezuela</option>
<option value="VN">Vietnam</option>
<option value="VB">Virgin Islands (Brit)</option>
<option value="VA">Virgin Islands (USA)</option>
<option value="WK">Wake Island</option>
<option value="WF">Wallis & Futana Is</option>
<option value="YE">Yemen</option>
<option value="ZR">Zaire</option>
<option value="ZM">Zambia</option>
<option value="ZW">Zimbabwe</option>
')
| 32208 | recaptchaPublicKey = "<KEY>"
reloadCaptcha = ->
apiCall "GET", "/api/user/status", {}
.done (data) ->
console.log(data.data.enable_captcha)
if data.data.enable_captcha
grecaptcha.reset("captcha")
ga('send', 'event', 'Registration', 'NewCaptcha')
window.initCaptcha = initCaptcha = ->
grecaptcha.render("captcha", {sitekey: recaptchaPublicKey})
setRequired = ->
$('#user-registration-form :input').each () ->
if not $(this).is(':checkbox')
if not $(this).is(':radio')
$(this).prop('required', $(this).is(":visible"))
checkEligibility = ->
is_is = $("#country-select").val() in ["IS", ""]
is_student = $("#background-select").val() in ["student_el", "student_ms", "student_hs", "student_home", "student_undergrad", "student_grad"]
# This should be changed to reflect your eligibility requirements
if not is_student or not is_is
$("#eligibility-warning").show()
else
$("#eligibility-warning").hide()
if is_student
$("#school-group").show()
setRequired()
submitRegistration = (e) ->
e.preventDefault()
registrationData = $("#user-registration-form").serializeObject()
creatingNewTeam = $("#registration-new-team-page").is(":visible")
registrationData["create-new-team"] = creatingNewTeam
if creatingNewTeam
registrationData["ctf-emails"] = $("#checkbox-emails-create").is(':checked')
submitButton = "#register-button-create"
logType = "NewTeam"
else
registrationData["ctf-emails"] = $("#checkbox-emails-existing").is(':checked')
submitButton = "#register-button-existing"
logType = "JoinTeam"
apiCall "POST", "/api/user/create", registrationData
.done (data) ->
switch data['status']
when 0
$(submitButton).apiNotify(data, {position: "right"})
ga('send', 'event', 'Registration', 'Failure', logType + "::" + data.message)
reloadCaptcha()
when 1
ga('send', 'event', 'Registration', 'Success', logType)
document.location.href = window.baseurl + "/team"
$ ->
apiCall "GET", "/api/user/status", {}
.done (data) ->
if data.data.enable_captcha
$.getScript("https://www.google.com/recaptcha/api.js?onload=initCaptcha&render=explicit")
$("#user-registration-form").on "submit", submitRegistration
$("#registration-new-team-page").hide()
$("#registration-join-team-page").hide()
pageTransitionSpeed = 200
# Note that this height/auto sillyness is specific to the known height relationship
# between these pages. If one gets longer or shorter, we need to tweek it
offset = 0 # Not sure why this value is necessary. Check later
$("#button-new-team").click () ->
#$("#stretch-box").css("min-height", $("#stretch-box").height()+offset)
$("#registration-join-team-page").hide "slide", { direction: "up" }, pageTransitionSpeed, () ->
$("#registration-new-team-page").show "slide", { direction: "up" }, pageTransitionSpeed, () ->
ga('send', 'event', 'Registration', 'Switch', 'NewTeam')
setRequired()
$("#button-join-team").click () ->
#$("#stretch-box").css("min-height", $("#stretch-box").height()+offset)
$("#registration-new-team-page").hide "slide", { direction: "up" }, pageTransitionSpeed, () ->
$("#registration-join-team-page").show "slide", { direction: "up" }, pageTransitionSpeed, () ->
ga('send', 'event', 'Registration', 'Switch', 'JoinTeam')
setRequired()
$("#country-select").on "change", checkEligibility
$("#background-select").on "change", checkEligibility
$("#country-select").html('
<option value="">Country...</option>
<option value="IS">Iceland</option>
<option value="AF">Afghanistan</option>
<option value="AL">Albania</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AG">Angola</option>
<option value="AI">Anguilla</option>
<option value="AG">Antigua & Barbuda</option>
<option value="AR">Argentina</option>
<option value="AA">Armenia</option>
<option value="AW">Aruba</option>
<option value="AU">Australia</option>
<option value="AT">Austria</option>
<option value="AZ">Azerbaijan</option>
<option value="BS">Bahamas</option>
<option value="BH">Bahrain</option>
<option value="BD">Bangladesh</option>
<option value="BB">Barbados</option>
<option value="BY">Belarus</option>
<option value="BE">Belgium</option>
<option value="BZ">Belize</option>
<option value="BJ">Benin</option>
<option value="BM">Bermuda</option>
<option value="BT">Bhutan</option>
<option value="BO">Bolivia</option>
<option value="BL">Bonaire</option>
<option value="BA">Bosnia & Herzegovina</option>
<option value="BW">Botswana</option>
<option value="BR">Brazil</option>
<option value="BC">British Indian Ocean Ter</option>
<option value="BN">Brunei</option>
<option value="BG">Bulgaria</option>
<option value="BF">Burkina Faso</option>
<option value="BI">Burundi</option>
<option value="KH">Cambodia</option>
<option value="CM">Cameroon</option>
<option value="CA">Canada</option>
<option value="IC">Canary Islands</option>
<option value="CV">Cape Verde</option>
<option value="KY">Cayman Islands</option>
<option value="CF">Central African Republic</option>
<option value="TD">Chad</option>
<option value="CD">Channel Islands</option>
<option value="CL">Chile</option>
<option value="CN">China</option>
<option value="CI">Christmas Island</option>
<option value="CS">Cocos Island</option>
<option value="CO">Colombia</option>
<option value="CC">Comoros</option>
<option value="CG">Congo</option>
<option value="CK">Cook Islands</option>
<option value="CR">Costa Rica</option>
<option value="CT">Cote D\'Ivoire</option>
<option value="HR">Croatia</option>
<option value="CU">Cuba</option>
<option value="CB">Curacao</option>
<option value="CY">Cyprus</option>
<option value="CZ">Czech Republic</option>
<option value="DK">Denmark</option>
<option value="DJ">Djibouti</option>
<option value="DM">Dominica</option>
<option value="DO">Dominican Republic</option>
<option value="TM">East Timor</option>
<option value="EC">Ecuador</option>
<option value="EG">Egypt</option>
<option value="SV">El Salvador</option>
<option value="GQ">Equatorial Guinea</option>
<option value="ER">Eritrea</option>
<option value="EE">Estonia</option>
<option value="ET">Ethiopia</option>
<option value="FA">Falkland Islands</option>
<option value="FO">Faroe Islands</option>
<option value="FJ">Fiji</option>
<option value="FI">Finland</option>
<option value="FR">France</option>
<option value="GF">French Guiana</option>
<option value="PF">French Polynesia</option>
<option value="FS">French Southern Ter</option>
<option value="GA">Gabon</option>
<option value="GM">Gambia</option>
<option value="GE">Georgia</option>
<option value="DE">Germany</option>
<option value="GH">Ghana</option>
<option value="GI">Gibraltar</option>
<option value="GB">Great Britain</option>
<option value="GR">Greece</option>
<option value="GL">Greenland</option>
<option value="GD">Grenada</option>
<option value="GP">Guadeloupe</option>
<option value="GU">Guam</option>
<option value="GT">Guatemala</option>
<option value="GN">Guinea</option>
<option value="GY">Guyana</option>
<option value="HT">Haiti</option>
<option value="HW">Hawaii</option>
<option value="HN">Honduras</option>
<option value="HK">Hong Kong</option>
<option value="HU">Hungary</option>
<option value="IN">India</option>
<option value="ID">Indonesia</option>
<option value="IA">Iran</option>
<option value="IQ">Iraq</option>
<option value="IR">Ireland</option>
<option value="IM">Isle of Man</option>
<option value="IL">Israel</option>
<option value="IT">Italy</option>
<option value="JM">Jamaica</option>
<option value="JP">Japan</option>
<option value="JO">Jordan</option>
<option value="KZ">Kazakhstan</option>
<option value="KE">Kenya</option>
<option value="KI">Kiribati</option>
<option value="NK">Korea North</option>
<option value="KS">Korea South</option>
<option value="KW">Kuwait</option>
<option value="KG">Kyrgyzstan</option>
<option value="LA">Laos</option>
<option value="LV">Latvia</option>
<option value="LB">Lebanon</option>
<option value="LS">Lesotho</option>
<option value="LR">Liberia</option>
<option value="LY">Libya</option>
<option value="LI">Liechtenstein</option>
<option value="LT">Lithuania</option>
<option value="LU">Luxembourg</option>
<option value="MO">Macau</option>
<option value="MK">Macedonia</option>
<option value="MG">Madagascar</option>
<option value="MY">Malaysia</option>
<option value="MW">Malawi</option>
<option value="MV">Maldives</option>
<option value="ML">Mali</option>
<option value="MT">Malta</option>
<option value="MH">Marshall Islands</option>
<option value="MQ">Martinique</option>
<option value="MR">Mauritania</option>
<option value="MU">Mauritius</option>
<option value="ME">Mayotte</option>
<option value="MX">Mexico</option>
<option value="MI">Midway Islands</option>
<option value="MD">Moldova</option>
<option value="MC">Monaco</option>
<option value="MN">Mongolia</option>
<option value="MS">Montserrat</option>
<option value="MA">Morocco</option>
<option value="MZ">Mozambique</option>
<option value="MM">Myanmar</option>
<option value="NA">Nambia</option>
<option value="NU">Nauru</option>
<option value="NP">Nepal</option>
<option value="AN">Netherland Antilles</option>
<option value="NL">Netherlands (Holland, Europe)</option>
<option value="NV">Nevis</option>
<option value="NC">New Caledonia</option>
<option value="NZ">New Zealand</option>
<option value="NI">Nicaragua</option>
<option value="NE">Niger</option>
<option value="NG">Nigeria</option>
<option value="NW">Niue</option>
<option value="NF">Norfolk Island</option>
<option value="NO">Norway</option>
<option value="OM">Oman</option>
<option value="PK">Pakistan</option>
<option value="PW">Palau Island</option>
<option value="PS">Palestine</option>
<option value="PA">Panama</option>
<option value="PG">Papua New Guinea</option>
<option value="PY">Paraguay</option>
<option value="PE">Peru</option>
<option value="PH">Philippines</option>
<option value="PO">Pitcairn Island</option>
<option value="PL">Poland</option>
<option value="PT">Portugal</option>
<option value="PR">Puerto Rico</option>
<option value="QA">Qatar</option>
<option value="ME">Republic of Montenegro</option>
<option value="RS">Republic of Serbia</option>
<option value="RE">Reunion</option>
<option value="RO">Romania</option>
<option value="RU">Russia</option>
<option value="RW">Rwanda</option>
<option value="NT">St Barthelemy</option>
<option value="EU">St Eustatius</option>
<option value="HE">St Helena</option>
<option value="KN">St Kitts-Nevis</option>
<option value="LC">St Lucia</option>
<option value="MB">St Maarten</option>
<option value="PM">St Pierre & Miquelon</option>
<option value="VC">St Vincent & Grenadines</option>
<option value="SP">Saipan</option>
<option value="SO">Samoa</option>
<option value="AS">Samoa American</option>
<option value="SM">San Marino</option>
<option value="ST">Sao Tome & Principe</option>
<option value="SA">Saudi Arabia</option>
<option value="SN">Senegal</option>
<option value="RS">Serbia</option>
<option value="SC">Seychelles</option>
<option value="SL">Sierra Leone</option>
<option value="SG">Singapore</option>
<option value="SK">Slovakia</option>
<option value="SI">Slovenia</option>
<option value="SB">Solomon Islands</option>
<option value="OI">Somalia</option>
<option value="ZA">South Africa</option>
<option value="ES">Spain</option>
<option value="LK">Sri Lanka</option>
<option value="SD">Sudan</option>
<option value="SR">Suriname</option>
<option value="SZ">Swaziland</option>
<option value="SE">Sweden</option>
<option value="CH">Switzerland</option>
<option value="SY">Syria</option>
<option value="TA">Tahiti</option>
<option value="TW">Taiwan</option>
<option value="TJ">Tajikistan</option>
<option value="TZ">Tanzania</option>
<option value="TH">Thailand</option>
<option value="TG">Togo</option>
<option value="TK">Tokelau</option>
<option value="TO">Tonga</option>
<option value="TT">Trinidad & Tobago</option>
<option value="TN">Tunisia</option>
<option value="TR">Turkey</option>
<option value="TU">Turkmenistan</option>
<option value="TC">Turks & Caicos Is</option>
<option value="TV">Tuvalu</option>
<option value="UG">Uganda</option>
<option value="UA">Ukraine</option>
<option value="AE">United Arab Emirates</option>
<option value="GB">United Kingdom</option>
<option value="UY">Uruguay</option>
<option value="US">United States of America</option>
<option value="UZ">Uzbekistan</option>
<option value="VU">Vanuatu</option>
<option value="VS">Vatican City State</option>
<option value="VE">Venezuela</option>
<option value="VN">Vietnam</option>
<option value="VB">Virgin Islands (Brit)</option>
<option value="VA">Virgin Islands (USA)</option>
<option value="WK">Wake Island</option>
<option value="WF">Wallis & Futana Is</option>
<option value="YE">Yemen</option>
<option value="ZR">Zaire</option>
<option value="ZM">Zambia</option>
<option value="ZW">Zimbabwe</option>
')
| true | recaptchaPublicKey = "PI:KEY:<KEY>END_PI"
reloadCaptcha = ->
apiCall "GET", "/api/user/status", {}
.done (data) ->
console.log(data.data.enable_captcha)
if data.data.enable_captcha
grecaptcha.reset("captcha")
ga('send', 'event', 'Registration', 'NewCaptcha')
window.initCaptcha = initCaptcha = ->
grecaptcha.render("captcha", {sitekey: recaptchaPublicKey})
setRequired = ->
$('#user-registration-form :input').each () ->
if not $(this).is(':checkbox')
if not $(this).is(':radio')
$(this).prop('required', $(this).is(":visible"))
checkEligibility = ->
is_is = $("#country-select").val() in ["IS", ""]
is_student = $("#background-select").val() in ["student_el", "student_ms", "student_hs", "student_home", "student_undergrad", "student_grad"]
# This should be changed to reflect your eligibility requirements
if not is_student or not is_is
$("#eligibility-warning").show()
else
$("#eligibility-warning").hide()
if is_student
$("#school-group").show()
setRequired()
submitRegistration = (e) ->
e.preventDefault()
registrationData = $("#user-registration-form").serializeObject()
creatingNewTeam = $("#registration-new-team-page").is(":visible")
registrationData["create-new-team"] = creatingNewTeam
if creatingNewTeam
registrationData["ctf-emails"] = $("#checkbox-emails-create").is(':checked')
submitButton = "#register-button-create"
logType = "NewTeam"
else
registrationData["ctf-emails"] = $("#checkbox-emails-existing").is(':checked')
submitButton = "#register-button-existing"
logType = "JoinTeam"
apiCall "POST", "/api/user/create", registrationData
.done (data) ->
switch data['status']
when 0
$(submitButton).apiNotify(data, {position: "right"})
ga('send', 'event', 'Registration', 'Failure', logType + "::" + data.message)
reloadCaptcha()
when 1
ga('send', 'event', 'Registration', 'Success', logType)
document.location.href = window.baseurl + "/team"
$ ->
apiCall "GET", "/api/user/status", {}
.done (data) ->
if data.data.enable_captcha
$.getScript("https://www.google.com/recaptcha/api.js?onload=initCaptcha&render=explicit")
$("#user-registration-form").on "submit", submitRegistration
$("#registration-new-team-page").hide()
$("#registration-join-team-page").hide()
pageTransitionSpeed = 200
# Note that this height/auto sillyness is specific to the known height relationship
# between these pages. If one gets longer or shorter, we need to tweek it
offset = 0 # Not sure why this value is necessary. Check later
$("#button-new-team").click () ->
#$("#stretch-box").css("min-height", $("#stretch-box").height()+offset)
$("#registration-join-team-page").hide "slide", { direction: "up" }, pageTransitionSpeed, () ->
$("#registration-new-team-page").show "slide", { direction: "up" }, pageTransitionSpeed, () ->
ga('send', 'event', 'Registration', 'Switch', 'NewTeam')
setRequired()
$("#button-join-team").click () ->
#$("#stretch-box").css("min-height", $("#stretch-box").height()+offset)
$("#registration-new-team-page").hide "slide", { direction: "up" }, pageTransitionSpeed, () ->
$("#registration-join-team-page").show "slide", { direction: "up" }, pageTransitionSpeed, () ->
ga('send', 'event', 'Registration', 'Switch', 'JoinTeam')
setRequired()
$("#country-select").on "change", checkEligibility
$("#background-select").on "change", checkEligibility
$("#country-select").html('
<option value="">Country...</option>
<option value="IS">Iceland</option>
<option value="AF">Afghanistan</option>
<option value="AL">Albania</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AG">Angola</option>
<option value="AI">Anguilla</option>
<option value="AG">Antigua & Barbuda</option>
<option value="AR">Argentina</option>
<option value="AA">Armenia</option>
<option value="AW">Aruba</option>
<option value="AU">Australia</option>
<option value="AT">Austria</option>
<option value="AZ">Azerbaijan</option>
<option value="BS">Bahamas</option>
<option value="BH">Bahrain</option>
<option value="BD">Bangladesh</option>
<option value="BB">Barbados</option>
<option value="BY">Belarus</option>
<option value="BE">Belgium</option>
<option value="BZ">Belize</option>
<option value="BJ">Benin</option>
<option value="BM">Bermuda</option>
<option value="BT">Bhutan</option>
<option value="BO">Bolivia</option>
<option value="BL">Bonaire</option>
<option value="BA">Bosnia & Herzegovina</option>
<option value="BW">Botswana</option>
<option value="BR">Brazil</option>
<option value="BC">British Indian Ocean Ter</option>
<option value="BN">Brunei</option>
<option value="BG">Bulgaria</option>
<option value="BF">Burkina Faso</option>
<option value="BI">Burundi</option>
<option value="KH">Cambodia</option>
<option value="CM">Cameroon</option>
<option value="CA">Canada</option>
<option value="IC">Canary Islands</option>
<option value="CV">Cape Verde</option>
<option value="KY">Cayman Islands</option>
<option value="CF">Central African Republic</option>
<option value="TD">Chad</option>
<option value="CD">Channel Islands</option>
<option value="CL">Chile</option>
<option value="CN">China</option>
<option value="CI">Christmas Island</option>
<option value="CS">Cocos Island</option>
<option value="CO">Colombia</option>
<option value="CC">Comoros</option>
<option value="CG">Congo</option>
<option value="CK">Cook Islands</option>
<option value="CR">Costa Rica</option>
<option value="CT">Cote D\'Ivoire</option>
<option value="HR">Croatia</option>
<option value="CU">Cuba</option>
<option value="CB">Curacao</option>
<option value="CY">Cyprus</option>
<option value="CZ">Czech Republic</option>
<option value="DK">Denmark</option>
<option value="DJ">Djibouti</option>
<option value="DM">Dominica</option>
<option value="DO">Dominican Republic</option>
<option value="TM">East Timor</option>
<option value="EC">Ecuador</option>
<option value="EG">Egypt</option>
<option value="SV">El Salvador</option>
<option value="GQ">Equatorial Guinea</option>
<option value="ER">Eritrea</option>
<option value="EE">Estonia</option>
<option value="ET">Ethiopia</option>
<option value="FA">Falkland Islands</option>
<option value="FO">Faroe Islands</option>
<option value="FJ">Fiji</option>
<option value="FI">Finland</option>
<option value="FR">France</option>
<option value="GF">French Guiana</option>
<option value="PF">French Polynesia</option>
<option value="FS">French Southern Ter</option>
<option value="GA">Gabon</option>
<option value="GM">Gambia</option>
<option value="GE">Georgia</option>
<option value="DE">Germany</option>
<option value="GH">Ghana</option>
<option value="GI">Gibraltar</option>
<option value="GB">Great Britain</option>
<option value="GR">Greece</option>
<option value="GL">Greenland</option>
<option value="GD">Grenada</option>
<option value="GP">Guadeloupe</option>
<option value="GU">Guam</option>
<option value="GT">Guatemala</option>
<option value="GN">Guinea</option>
<option value="GY">Guyana</option>
<option value="HT">Haiti</option>
<option value="HW">Hawaii</option>
<option value="HN">Honduras</option>
<option value="HK">Hong Kong</option>
<option value="HU">Hungary</option>
<option value="IN">India</option>
<option value="ID">Indonesia</option>
<option value="IA">Iran</option>
<option value="IQ">Iraq</option>
<option value="IR">Ireland</option>
<option value="IM">Isle of Man</option>
<option value="IL">Israel</option>
<option value="IT">Italy</option>
<option value="JM">Jamaica</option>
<option value="JP">Japan</option>
<option value="JO">Jordan</option>
<option value="KZ">Kazakhstan</option>
<option value="KE">Kenya</option>
<option value="KI">Kiribati</option>
<option value="NK">Korea North</option>
<option value="KS">Korea South</option>
<option value="KW">Kuwait</option>
<option value="KG">Kyrgyzstan</option>
<option value="LA">Laos</option>
<option value="LV">Latvia</option>
<option value="LB">Lebanon</option>
<option value="LS">Lesotho</option>
<option value="LR">Liberia</option>
<option value="LY">Libya</option>
<option value="LI">Liechtenstein</option>
<option value="LT">Lithuania</option>
<option value="LU">Luxembourg</option>
<option value="MO">Macau</option>
<option value="MK">Macedonia</option>
<option value="MG">Madagascar</option>
<option value="MY">Malaysia</option>
<option value="MW">Malawi</option>
<option value="MV">Maldives</option>
<option value="ML">Mali</option>
<option value="MT">Malta</option>
<option value="MH">Marshall Islands</option>
<option value="MQ">Martinique</option>
<option value="MR">Mauritania</option>
<option value="MU">Mauritius</option>
<option value="ME">Mayotte</option>
<option value="MX">Mexico</option>
<option value="MI">Midway Islands</option>
<option value="MD">Moldova</option>
<option value="MC">Monaco</option>
<option value="MN">Mongolia</option>
<option value="MS">Montserrat</option>
<option value="MA">Morocco</option>
<option value="MZ">Mozambique</option>
<option value="MM">Myanmar</option>
<option value="NA">Nambia</option>
<option value="NU">Nauru</option>
<option value="NP">Nepal</option>
<option value="AN">Netherland Antilles</option>
<option value="NL">Netherlands (Holland, Europe)</option>
<option value="NV">Nevis</option>
<option value="NC">New Caledonia</option>
<option value="NZ">New Zealand</option>
<option value="NI">Nicaragua</option>
<option value="NE">Niger</option>
<option value="NG">Nigeria</option>
<option value="NW">Niue</option>
<option value="NF">Norfolk Island</option>
<option value="NO">Norway</option>
<option value="OM">Oman</option>
<option value="PK">Pakistan</option>
<option value="PW">Palau Island</option>
<option value="PS">Palestine</option>
<option value="PA">Panama</option>
<option value="PG">Papua New Guinea</option>
<option value="PY">Paraguay</option>
<option value="PE">Peru</option>
<option value="PH">Philippines</option>
<option value="PO">Pitcairn Island</option>
<option value="PL">Poland</option>
<option value="PT">Portugal</option>
<option value="PR">Puerto Rico</option>
<option value="QA">Qatar</option>
<option value="ME">Republic of Montenegro</option>
<option value="RS">Republic of Serbia</option>
<option value="RE">Reunion</option>
<option value="RO">Romania</option>
<option value="RU">Russia</option>
<option value="RW">Rwanda</option>
<option value="NT">St Barthelemy</option>
<option value="EU">St Eustatius</option>
<option value="HE">St Helena</option>
<option value="KN">St Kitts-Nevis</option>
<option value="LC">St Lucia</option>
<option value="MB">St Maarten</option>
<option value="PM">St Pierre & Miquelon</option>
<option value="VC">St Vincent & Grenadines</option>
<option value="SP">Saipan</option>
<option value="SO">Samoa</option>
<option value="AS">Samoa American</option>
<option value="SM">San Marino</option>
<option value="ST">Sao Tome & Principe</option>
<option value="SA">Saudi Arabia</option>
<option value="SN">Senegal</option>
<option value="RS">Serbia</option>
<option value="SC">Seychelles</option>
<option value="SL">Sierra Leone</option>
<option value="SG">Singapore</option>
<option value="SK">Slovakia</option>
<option value="SI">Slovenia</option>
<option value="SB">Solomon Islands</option>
<option value="OI">Somalia</option>
<option value="ZA">South Africa</option>
<option value="ES">Spain</option>
<option value="LK">Sri Lanka</option>
<option value="SD">Sudan</option>
<option value="SR">Suriname</option>
<option value="SZ">Swaziland</option>
<option value="SE">Sweden</option>
<option value="CH">Switzerland</option>
<option value="SY">Syria</option>
<option value="TA">Tahiti</option>
<option value="TW">Taiwan</option>
<option value="TJ">Tajikistan</option>
<option value="TZ">Tanzania</option>
<option value="TH">Thailand</option>
<option value="TG">Togo</option>
<option value="TK">Tokelau</option>
<option value="TO">Tonga</option>
<option value="TT">Trinidad & Tobago</option>
<option value="TN">Tunisia</option>
<option value="TR">Turkey</option>
<option value="TU">Turkmenistan</option>
<option value="TC">Turks & Caicos Is</option>
<option value="TV">Tuvalu</option>
<option value="UG">Uganda</option>
<option value="UA">Ukraine</option>
<option value="AE">United Arab Emirates</option>
<option value="GB">United Kingdom</option>
<option value="UY">Uruguay</option>
<option value="US">United States of America</option>
<option value="UZ">Uzbekistan</option>
<option value="VU">Vanuatu</option>
<option value="VS">Vatican City State</option>
<option value="VE">Venezuela</option>
<option value="VN">Vietnam</option>
<option value="VB">Virgin Islands (Brit)</option>
<option value="VA">Virgin Islands (USA)</option>
<option value="WK">Wake Island</option>
<option value="WF">Wallis & Futana Is</option>
<option value="YE">Yemen</option>
<option value="ZR">Zaire</option>
<option value="ZM">Zambia</option>
<option value="ZW">Zimbabwe</option>
')
|
[
{
"context": " 'following_ids'\n 'notification_count'\n 'username'\n 'authentication_token'\n 'manifest'\n 'a",
"end": 400,
"score": 0.9984070658683777,
"start": 392,
"tag": "USERNAME",
"value": "username"
},
{
"context": "r.get('access_token')\n .then ->\n ... | lib/passport/index.coffee | 1aurabrown/ervell | 0 | axios = require 'axios'
express = require 'express'
passport = require 'passport'
LocalStrategy = require('passport-local').Strategy
{ extend } = require 'underscore'
{ API_URL } = require '../../config'
redirectTo = require '../middleware/redirect_to'
CONFIG =
userKeys: [
'id'
'first_name'
'last_name'
'email'
'slug'
'following_ids'
'notification_count'
'username'
'authentication_token'
'manifest'
'announcements'
'shortcuts_id'
'avatar_image'
'registered'
'receive_email'
'receive_tips_emails'
'receive_newsletter'
'post_address'
'show_tour'
'is_premium'
'channel_count'
'exclude_from_indexes'
'following_count'
'home_path'
'created_at'
'private_connections_count'
'private_connections_limit'
'is_exceeding_private_connections_limit'
'is_confirmed'
'is_pending_reconfirmation'
'is_pending_confirmation'
'flags'
]
app = express()
authenticate = (req, res, next) ->
passport.authenticate('local', (err, user) ->
return next(err) if err
return req.login(user, next) if user
next()
)(req, res, next)
respond = (req, res, next) ->
next() unless req.xhr
res.send
code: 200
user: req.user.toJSON()
error = (err, req, res, next) ->
console.error(err.stack)
# Pass on to next error handler
# if this is not an XHR request
next(err) unless req.xhr
# Propagate the error response to the client
res
.status err.response.status
.send err.response.data
addLocals = (req, res, next) ->
if req.user
res.locals.user = req.user
res.locals.sd.CURRENT_USER = req.user.toJSON()
next()
strategy = new LocalStrategy {
usernameField: 'email'
passReqToCallback: true
}, (_req, email, password, done) ->
axios
.post "#{API_URL}/tokens", { email, password }
.then ({ data: { token } }) ->
done null, new CONFIG.CurrentUser(access_token: token)
.catch done
serializeUser = (user, done) ->
user
.fetch data: auth_token: user.get('access_token')
.then ->
keys = ['access_token'].concat CONFIG.userKeys
done null, user.pick(keys)
.catch done
deserializeUser = (attributes, done) ->
done null, new CONFIG.CurrentUser(attributes)
module.exports = (options = {}) ->
extend CONFIG, options
passport.serializeUser serializeUser
passport.deserializeUser deserializeUser
passport.use strategy
app
.use passport.initialize()
.use passport.session()
.post '/me/sign_in', authenticate, respond, redirectTo, error
.use addLocals
app
| 99172 | axios = require 'axios'
express = require 'express'
passport = require 'passport'
LocalStrategy = require('passport-local').Strategy
{ extend } = require 'underscore'
{ API_URL } = require '../../config'
redirectTo = require '../middleware/redirect_to'
CONFIG =
userKeys: [
'id'
'first_name'
'last_name'
'email'
'slug'
'following_ids'
'notification_count'
'username'
'authentication_token'
'manifest'
'announcements'
'shortcuts_id'
'avatar_image'
'registered'
'receive_email'
'receive_tips_emails'
'receive_newsletter'
'post_address'
'show_tour'
'is_premium'
'channel_count'
'exclude_from_indexes'
'following_count'
'home_path'
'created_at'
'private_connections_count'
'private_connections_limit'
'is_exceeding_private_connections_limit'
'is_confirmed'
'is_pending_reconfirmation'
'is_pending_confirmation'
'flags'
]
app = express()
authenticate = (req, res, next) ->
passport.authenticate('local', (err, user) ->
return next(err) if err
return req.login(user, next) if user
next()
)(req, res, next)
respond = (req, res, next) ->
next() unless req.xhr
res.send
code: 200
user: req.user.toJSON()
error = (err, req, res, next) ->
console.error(err.stack)
# Pass on to next error handler
# if this is not an XHR request
next(err) unless req.xhr
# Propagate the error response to the client
res
.status err.response.status
.send err.response.data
addLocals = (req, res, next) ->
if req.user
res.locals.user = req.user
res.locals.sd.CURRENT_USER = req.user.toJSON()
next()
strategy = new LocalStrategy {
usernameField: 'email'
passReqToCallback: true
}, (_req, email, password, done) ->
axios
.post "#{API_URL}/tokens", { email, password }
.then ({ data: { token } }) ->
done null, new CONFIG.CurrentUser(access_token: token)
.catch done
serializeUser = (user, done) ->
user
.fetch data: auth_token: user.get('access_token')
.then ->
keys = ['<KEY> CONFIG.userKeys
done null, user.pick(keys)
.catch done
deserializeUser = (attributes, done) ->
done null, new CONFIG.CurrentUser(attributes)
module.exports = (options = {}) ->
extend CONFIG, options
passport.serializeUser serializeUser
passport.deserializeUser deserializeUser
passport.use strategy
app
.use passport.initialize()
.use passport.session()
.post '/me/sign_in', authenticate, respond, redirectTo, error
.use addLocals
app
| true | axios = require 'axios'
express = require 'express'
passport = require 'passport'
LocalStrategy = require('passport-local').Strategy
{ extend } = require 'underscore'
{ API_URL } = require '../../config'
redirectTo = require '../middleware/redirect_to'
CONFIG =
userKeys: [
'id'
'first_name'
'last_name'
'email'
'slug'
'following_ids'
'notification_count'
'username'
'authentication_token'
'manifest'
'announcements'
'shortcuts_id'
'avatar_image'
'registered'
'receive_email'
'receive_tips_emails'
'receive_newsletter'
'post_address'
'show_tour'
'is_premium'
'channel_count'
'exclude_from_indexes'
'following_count'
'home_path'
'created_at'
'private_connections_count'
'private_connections_limit'
'is_exceeding_private_connections_limit'
'is_confirmed'
'is_pending_reconfirmation'
'is_pending_confirmation'
'flags'
]
app = express()
authenticate = (req, res, next) ->
passport.authenticate('local', (err, user) ->
return next(err) if err
return req.login(user, next) if user
next()
)(req, res, next)
respond = (req, res, next) ->
next() unless req.xhr
res.send
code: 200
user: req.user.toJSON()
error = (err, req, res, next) ->
console.error(err.stack)
# Pass on to next error handler
# if this is not an XHR request
next(err) unless req.xhr
# Propagate the error response to the client
res
.status err.response.status
.send err.response.data
addLocals = (req, res, next) ->
if req.user
res.locals.user = req.user
res.locals.sd.CURRENT_USER = req.user.toJSON()
next()
strategy = new LocalStrategy {
usernameField: 'email'
passReqToCallback: true
}, (_req, email, password, done) ->
axios
.post "#{API_URL}/tokens", { email, password }
.then ({ data: { token } }) ->
done null, new CONFIG.CurrentUser(access_token: token)
.catch done
serializeUser = (user, done) ->
user
.fetch data: auth_token: user.get('access_token')
.then ->
keys = ['PI:KEY:<KEY>END_PI CONFIG.userKeys
done null, user.pick(keys)
.catch done
deserializeUser = (attributes, done) ->
done null, new CONFIG.CurrentUser(attributes)
module.exports = (options = {}) ->
extend CONFIG, options
passport.serializeUser serializeUser
passport.deserializeUser deserializeUser
passport.use strategy
app
.use passport.initialize()
.use passport.session()
.post '/me/sign_in', authenticate, respond, redirectTo, error
.use addLocals
app
|
[
{
"context": " #{name}!\"\n\n # select addPerson('{ \"firstName\": \"mario\", \"lastName\": \"gutierrez\", \"likes\": [\"node.js\", \"",
"end": 314,
"score": 0.9997133016586304,
"start": 309,
"tag": "NAME",
"value": "mario"
},
{
"context": "t addPerson('{ \"firstName\": \"mario\", \... | plv8/app/example.coffee | mgutz/plv8-bedrock | 20 | str = require('underscore.string')
HSTORE = require('pg-hstore')
# create module specific logger
log = require('plv8-mantle/logger').getLogger('example')
module.exports =
hello: (name) ->
log.debug("ENTER hello") if log.isDebug
str.titleize "hello #{name}!"
# select addPerson('{ "firstName": "mario", "lastName": "gutierrez", "likes": ["node.js", "plv8", "postgres"], "meta": { "eyes": "brown"}}'::json);
addPerson: (person) ->
plv8.__executeScalar """
INSERT INTO people (first_name, last_name, likes, meta)
VALUES ($1, $2, $3, $4)
RETURNING id
""", [person.firstName, person.lastName, person.likes, HSTORE.stringify(person.meta)]
| 177117 | str = require('underscore.string')
HSTORE = require('pg-hstore')
# create module specific logger
log = require('plv8-mantle/logger').getLogger('example')
module.exports =
hello: (name) ->
log.debug("ENTER hello") if log.isDebug
str.titleize "hello #{name}!"
# select addPerson('{ "firstName": "<NAME>", "lastName": "<NAME>", "likes": ["node.js", "plv8", "postgres"], "meta": { "eyes": "brown"}}'::json);
addPerson: (person) ->
plv8.__executeScalar """
INSERT INTO people (first_name, last_name, likes, meta)
VALUES ($1, $2, $3, $4)
RETURNING id
""", [person.firstName, person.lastName, person.likes, HSTORE.stringify(person.meta)]
| true | str = require('underscore.string')
HSTORE = require('pg-hstore')
# create module specific logger
log = require('plv8-mantle/logger').getLogger('example')
module.exports =
hello: (name) ->
log.debug("ENTER hello") if log.isDebug
str.titleize "hello #{name}!"
# select addPerson('{ "firstName": "PI:NAME:<NAME>END_PI", "lastName": "PI:NAME:<NAME>END_PI", "likes": ["node.js", "plv8", "postgres"], "meta": { "eyes": "brown"}}'::json);
addPerson: (person) ->
plv8.__executeScalar """
INSERT INTO people (first_name, last_name, likes, meta)
VALUES ($1, $2, $3, $4)
RETURNING id
""", [person.firstName, person.lastName, person.likes, HSTORE.stringify(person.meta)]
|
[
{
"context": "d converting Percentile to Z score were adapted by John Walker from C implementations written by Gary Perlman of",
"end": 4654,
"score": 0.9995157122612,
"start": 4643,
"tag": "NAME",
"value": "John Walker"
},
{
"context": "d by John Walker from C implementations writte... | interface/components/qqplot/index.coffee | tsu-complete/taylorfit | 2 | require "./index.styl"
c3 = require "c3"
Model = require "../Model"
mean = (values) ->
if values.length == 0
return NaN
sum = 0
i = 0
while i < values.length
sum += values[i]
i++
sum /= values.length
return sum
variance = (values, mu) ->
if values.length == 0
return NaN
sum = 0
i = 0
while i < values.length
sum += (values[i] - mu) * (values[i] - mu)
i++
return sum /= (values.length - 1)
ko.components.register "tf-qqplot",
template: do require "./index.pug"
viewModel: ( params ) ->
unless ko.isObservable params.model
throw new TypeError "components/options:
expects [model] to be observable"
model = params.model()
@column_index = model.show_qqplot
@active = ko.computed ( ) => @column_index() != undefined
@column_name = ko.computed ( ) =>
if !@active()
return undefined
index = @column_index()[0]
if typeof index == "string"
if index.indexOf("Sensitivity") != -1
index = index.split("_")[1]
return "Sensitivity " + model.sensitivityColumns()[index].name
if index.indexOf("C.I.") != -1
index = 0
return "C.I."
if index.indexOf("P.I.") != -1
index = 0
return "P.I."
if index.indexOf("ImportanceRatio") != -1
index = index.split("_")[1]
return "Importance Ratio " + model.importanceRatioColumns()[index].name
return index
return model.columns()[index].name
@values = ko.computed ( ) =>
if !@active()
return undefined
table = @column_index()[1]
offset_start = 0
offset_end = 0
if @table == 'fit'
offset_start = 0
offset_end = model["data_fit"]().length
else if @table == 'cross'
offset_start = model["data_fit"]().length
offset_end = offset_start + model["data_cross"]().length
else
offset_start = model["data_fit"]().length
if model["data_cross"]() != undefined
offset_start += model["data_cross"]().length
offset_end = offset_start
if model["data_validation"]() != undefined
offset_end += model["data_validation"]().length
# We've gotten into a situation where there's only 1 data table
# Due to a bug, this doesn't fall under the 'fit' category,
# but this patch is easier than fixing the bug
if offset_start == offset_end
offset_start = 0
index = @column_index()[0]
if typeof index == "string"
if index == "Dependent"
index = 0
if index == "Predicted"
index = 1
if index == "Residual"
index = 2
if typeof index == "string" && index.indexOf("Sensitivity") != -1
# format is: Sensitivity_index
index = index.split("_")[1]
return Object.values(model.sensitivityData()[index])
if typeof index == "string" && index.indexOf("C.I.") != -1
# format is: C.I.
index = 0
return Object.values(model.confidenceData()[0].slice(offset_start, offset_end))
if typeof index == "string" && index.indexOf("P.I.") != -1
# format is: P.I.
index = 0
return Object.values(model.predictionData()[0].slice(offset_start, offset_end))
if typeof index == "string" && index.indexOf("ImportanceRatio") != -1
# format is: ImportanceRatio_index
index = index.split("_")[1]
return Object.values(model.importanceRatioData()[index])
return model["extra_#{table}"]().map((row) => row[index])
return model["data_#{table}"]().map((row) => row[index])
@close = ( ) ->
model.show_qqplot undefined
@bucket_size = ko.observable(10);
@charthtml = ko.computed () =>
if !@active() || @values().length == 0
return ""
numUniqueValues = @values().filter((val, i, arr) ->
return arr.indexOf(val) == i
).length
sorted = @values().filter((x) => !isNaN(x)).sort((a, b) => a - b)
if numUniqueValues != 1
mu = mean(sorted)
sigma = Math.sqrt(variance(sorted, mu))
student = sorted.map((x) -> return (x - mu) / sigma)
else
student = Array(sorted.length).fill(NaN)
# An ordinal sequence to rank the data points
rank = [1..sorted.length]
# Perform the quantile calculation over the data set points
quantile = rank.map((i) -> return (i - 0.5) / sorted.length)
# The following functions for converting Z score to Percentile and converting Percentile to Z score were adapted by John Walker from C implementations written by Gary Perlman of Wang Institute, Tyngsboro, MA 01879.
Z_MAX = 6
# Convert z-score to probability
poz = (z) ->
if z == 0.0
x = 0.0
else
y = 0.5 * Math.abs(z);
if (y > (Z_MAX * 0.5))
x = 1.0;
else if (y < 1.0)
w = y * y
x = ((((((((0.000124818987 * w -
0.001075204047) * w + 0.005198775019) * w -
0.019198292004) * w + 0.059054035642) * w -
0.151968751364) * w + 0.319152932694) * w -
0.531923007300) * w + 0.797884560593) * y * 2.0
else
y -= 2.0;
x = (((((((((((((-0.000045255659 * y +
0.000152529290) * y - 0.000019538132) * y -
0.000676904986) * y + 0.001390604284) * y -
0.000794620820) * y - 0.002034254874) * y +
0.006549791214) * y - 0.010557625006) * y +
0.011630447319) * y - 0.009279453341) * y +
0.005353579108) * y - 0.002141268741) * y +
0.000535310849) * y + 0.999936657524
return (if z > 0.0 then ((x + 1.0) * 0.5) else ((1.0 - x) * 0.5))
# Convert probability to z-score
critz = (p) ->
Z_EPSILON = 0.000001; # Accuracy of z approximation
minz = -Z_MAX;
maxz = Z_MAX;
zval = 0.0;
if p < 0.0
p = 0.0;
if p > 1.0
p = 1.0;
while (maxz - minz) > Z_EPSILON
pval = poz(zval)
if pval > p
maxz = zval;
else
minz = zval;
zval = (maxz + minz) * 0.5;
return zval
z_score = quantile.map((x) -> return critz(x))
min_z_score = z_score[0]
max_z_score = z_score[z_score.length-1]
if numUniqueValues != 1
min_student = student[0]
max_student = student[student.length-1]
min_scale_val = if min_z_score < min_student then Math.floor(min_z_score) else Math.floor(min_student)
max_scale_val = if max_z_score < max_student then Math.ceil(max_student) else Math.ceil(max_z_score)
else
min_scale_val = min_z_score
max_scale_val = max_z_score
# global varible 'chart' can be accessed in download function
global.chart = c3.generate
bindto: "#qqplot"
data:
type: "scatter"
x: "x"
columns: [
["x"].concat(z_score)
["y"].concat(student)
]
size:
height: 370
width: 600
axis:
x:
min: min_scale_val
max: max_scale_val
# x axis has a default padding value
padding:
top: 0
bottom: 0
tick:
count: 10
format: d3.format('.3s')
label:
text: 'Normal Theoretical Quantiles'
position: 'outer-center'
y:
min: min_scale_val
max: max_scale_val
# y axis has a default padding value
padding:
top: 0
bottom: 0
tick:
count: 10
format: d3.format('.3s')
label:
text: 'Sample Quantiles'
position: 'outer-middle'
legend:
show: false
grid:
x:
lines: [
value: 0
]
svg_element = chart.element.querySelector "svg"
xgrid_line = svg_element.querySelector ".c3-xgrid-line"
vertical_line = xgrid_line.getElementsByTagName("line")[0]
event_rect_area = svg_element.querySelector ".c3-event-rect"
shape_width = event_rect_area.getAttribute "width"
x1 = vertical_line.getAttribute "x1"
x2 = vertical_line.getAttribute "x2"
vertical_line.setAttribute "x1", shape_width
vertical_line.setAttribute "x2", 0
return chart.element.innerHTML
@download = ( ) ->
if !@active()
return undefined
svg_element = chart.element.querySelector "svg"
original_height = svg_element.getAttribute "height"
original_width = svg_element.getAttribute "width"
svg_element.removeAttribute "height"
svg_element.removeAttribute "width"
svg_element.style.overflow = "visible"
svg_element.style.padding = "10px"
box_size = svg_element.getBBox()
svg_element.style.height = box_size.height
svg_element.style.width = box_size.width
chart_line = svg_element.querySelector ".c3-chart-line"
chart_line.style.opacity = 1
node_list1 = svg_element.querySelectorAll ".c3-axis path"
node_list2 = svg_element.querySelectorAll ".c3 line"
node_list3 = svg_element.querySelectorAll "line"
node_list4 = svg_element.querySelectorAll ".c3 path"
x_and_y = Array.from node_list1
x_and_y.concat Array.from node_list2
x_and_y.forEach (e) ->
e.style.fill = "none"
e.style.stroke = "black"
scale = Array.from node_list3
scale.forEach (e) ->
e.style.fill = "none"
e.style.stroke = "black"
path = Array.from node_list4
path.forEach (e) ->
e.style.fill = "none"
svg_element.style.backgroundColor = "white"
tick = svg_element.querySelectorAll ".tick"
for i in [0..tick.length-1]
# use transform property to check if the SVG element is on the top position of y axis
# matrix(1, 0, 0, 1, 0, 1) -> ["1", "0", "0", "1", "0", "1"]
transform_y_val = (getComputedStyle(tick[i]).getPropertyValue('transform').replace(/^matrix(3d)?\((.*)\)$/,'$2').split(/, /)[5])*1
if transform_y_val == 1
text = tick[i].getElementsByTagName("text")
# stop the loop once the SVG element on the top position of y axis is found
break
original_y = text[0].getAttribute "y"
text[0].setAttribute "y", original_y + 3
xml = new XMLSerializer().serializeToString svg_element
data_url = "data:image/svg+xml;base64," + btoa xml
# Reset to original values
svg_element.style.padding = null
text[0].setAttribute "y", original_y
svg_element.setAttribute "height", original_height
svg_element.setAttribute "width", original_width
svg_element.style.backgroundColor = null
img = new Image()
img.src = data_url
img.onload = () ->
canvas_element = document.createElement "canvas"
canvas_element.width = svg_element.scrollWidth
canvas_element.height = svg_element.scrollHeight
ctx = canvas_element.getContext "2d"
ctx.drawImage img, 0, 0
png_data_url = canvas_element.toDataURL "image/png"
a_element = document.createElement "a"
a_element.href = png_data_url
a_element.style = "display: none;"
a_element.target = "_blank"
a_element.download = "chart"
document.body.appendChild a_element
a_element.click()
document.body.removeChild a_element
return undefined
return this
| 63782 | require "./index.styl"
c3 = require "c3"
Model = require "../Model"
mean = (values) ->
if values.length == 0
return NaN
sum = 0
i = 0
while i < values.length
sum += values[i]
i++
sum /= values.length
return sum
variance = (values, mu) ->
if values.length == 0
return NaN
sum = 0
i = 0
while i < values.length
sum += (values[i] - mu) * (values[i] - mu)
i++
return sum /= (values.length - 1)
ko.components.register "tf-qqplot",
template: do require "./index.pug"
viewModel: ( params ) ->
unless ko.isObservable params.model
throw new TypeError "components/options:
expects [model] to be observable"
model = params.model()
@column_index = model.show_qqplot
@active = ko.computed ( ) => @column_index() != undefined
@column_name = ko.computed ( ) =>
if !@active()
return undefined
index = @column_index()[0]
if typeof index == "string"
if index.indexOf("Sensitivity") != -1
index = index.split("_")[1]
return "Sensitivity " + model.sensitivityColumns()[index].name
if index.indexOf("C.I.") != -1
index = 0
return "C.I."
if index.indexOf("P.I.") != -1
index = 0
return "P.I."
if index.indexOf("ImportanceRatio") != -1
index = index.split("_")[1]
return "Importance Ratio " + model.importanceRatioColumns()[index].name
return index
return model.columns()[index].name
@values = ko.computed ( ) =>
if !@active()
return undefined
table = @column_index()[1]
offset_start = 0
offset_end = 0
if @table == 'fit'
offset_start = 0
offset_end = model["data_fit"]().length
else if @table == 'cross'
offset_start = model["data_fit"]().length
offset_end = offset_start + model["data_cross"]().length
else
offset_start = model["data_fit"]().length
if model["data_cross"]() != undefined
offset_start += model["data_cross"]().length
offset_end = offset_start
if model["data_validation"]() != undefined
offset_end += model["data_validation"]().length
# We've gotten into a situation where there's only 1 data table
# Due to a bug, this doesn't fall under the 'fit' category,
# but this patch is easier than fixing the bug
if offset_start == offset_end
offset_start = 0
index = @column_index()[0]
if typeof index == "string"
if index == "Dependent"
index = 0
if index == "Predicted"
index = 1
if index == "Residual"
index = 2
if typeof index == "string" && index.indexOf("Sensitivity") != -1
# format is: Sensitivity_index
index = index.split("_")[1]
return Object.values(model.sensitivityData()[index])
if typeof index == "string" && index.indexOf("C.I.") != -1
# format is: C.I.
index = 0
return Object.values(model.confidenceData()[0].slice(offset_start, offset_end))
if typeof index == "string" && index.indexOf("P.I.") != -1
# format is: P.I.
index = 0
return Object.values(model.predictionData()[0].slice(offset_start, offset_end))
if typeof index == "string" && index.indexOf("ImportanceRatio") != -1
# format is: ImportanceRatio_index
index = index.split("_")[1]
return Object.values(model.importanceRatioData()[index])
return model["extra_#{table}"]().map((row) => row[index])
return model["data_#{table}"]().map((row) => row[index])
@close = ( ) ->
model.show_qqplot undefined
@bucket_size = ko.observable(10);
@charthtml = ko.computed () =>
if !@active() || @values().length == 0
return ""
numUniqueValues = @values().filter((val, i, arr) ->
return arr.indexOf(val) == i
).length
sorted = @values().filter((x) => !isNaN(x)).sort((a, b) => a - b)
if numUniqueValues != 1
mu = mean(sorted)
sigma = Math.sqrt(variance(sorted, mu))
student = sorted.map((x) -> return (x - mu) / sigma)
else
student = Array(sorted.length).fill(NaN)
# An ordinal sequence to rank the data points
rank = [1..sorted.length]
# Perform the quantile calculation over the data set points
quantile = rank.map((i) -> return (i - 0.5) / sorted.length)
# The following functions for converting Z score to Percentile and converting Percentile to Z score were adapted by <NAME> from C implementations written by <NAME> of Wang Institute, Tyngsboro, MA 01879.
Z_MAX = 6
# Convert z-score to probability
poz = (z) ->
if z == 0.0
x = 0.0
else
y = 0.5 * Math.abs(z);
if (y > (Z_MAX * 0.5))
x = 1.0;
else if (y < 1.0)
w = y * y
x = ((((((((0.000124818987 * w -
0.001075204047) * w + 0.005198775019) * w -
0.019198292004) * w + 0.059054035642) * w -
0.151968751364) * w + 0.319152932694) * w -
0.531923007300) * w + 0.797884560593) * y * 2.0
else
y -= 2.0;
x = (((((((((((((-0.000045255659 * y +
0.000152529290) * y - 0.000019538132) * y -
0.000676904986) * y + 0.001390604284) * y -
0.000794620820) * y - 0.002034254874) * y +
0.006549791214) * y - 0.010557625006) * y +
0.011630447319) * y - 0.009279453341) * y +
0.005353579108) * y - 0.002141268741) * y +
0.000535310849) * y + 0.999936657524
return (if z > 0.0 then ((x + 1.0) * 0.5) else ((1.0 - x) * 0.5))
# Convert probability to z-score
critz = (p) ->
Z_EPSILON = 0.000001; # Accuracy of z approximation
minz = -Z_MAX;
maxz = Z_MAX;
zval = 0.0;
if p < 0.0
p = 0.0;
if p > 1.0
p = 1.0;
while (maxz - minz) > Z_EPSILON
pval = poz(zval)
if pval > p
maxz = zval;
else
minz = zval;
zval = (maxz + minz) * 0.5;
return zval
z_score = quantile.map((x) -> return critz(x))
min_z_score = z_score[0]
max_z_score = z_score[z_score.length-1]
if numUniqueValues != 1
min_student = student[0]
max_student = student[student.length-1]
min_scale_val = if min_z_score < min_student then Math.floor(min_z_score) else Math.floor(min_student)
max_scale_val = if max_z_score < max_student then Math.ceil(max_student) else Math.ceil(max_z_score)
else
min_scale_val = min_z_score
max_scale_val = max_z_score
# global varible 'chart' can be accessed in download function
global.chart = c3.generate
bindto: "#qqplot"
data:
type: "scatter"
x: "x"
columns: [
["x"].concat(z_score)
["y"].concat(student)
]
size:
height: 370
width: 600
axis:
x:
min: min_scale_val
max: max_scale_val
# x axis has a default padding value
padding:
top: 0
bottom: 0
tick:
count: 10
format: d3.format('.3s')
label:
text: 'Normal Theoretical Quantiles'
position: 'outer-center'
y:
min: min_scale_val
max: max_scale_val
# y axis has a default padding value
padding:
top: 0
bottom: 0
tick:
count: 10
format: d3.format('.3s')
label:
text: 'Sample Quantiles'
position: 'outer-middle'
legend:
show: false
grid:
x:
lines: [
value: 0
]
svg_element = chart.element.querySelector "svg"
xgrid_line = svg_element.querySelector ".c3-xgrid-line"
vertical_line = xgrid_line.getElementsByTagName("line")[0]
event_rect_area = svg_element.querySelector ".c3-event-rect"
shape_width = event_rect_area.getAttribute "width"
x1 = vertical_line.getAttribute "x1"
x2 = vertical_line.getAttribute "x2"
vertical_line.setAttribute "x1", shape_width
vertical_line.setAttribute "x2", 0
return chart.element.innerHTML
@download = ( ) ->
if !@active()
return undefined
svg_element = chart.element.querySelector "svg"
original_height = svg_element.getAttribute "height"
original_width = svg_element.getAttribute "width"
svg_element.removeAttribute "height"
svg_element.removeAttribute "width"
svg_element.style.overflow = "visible"
svg_element.style.padding = "10px"
box_size = svg_element.getBBox()
svg_element.style.height = box_size.height
svg_element.style.width = box_size.width
chart_line = svg_element.querySelector ".c3-chart-line"
chart_line.style.opacity = 1
node_list1 = svg_element.querySelectorAll ".c3-axis path"
node_list2 = svg_element.querySelectorAll ".c3 line"
node_list3 = svg_element.querySelectorAll "line"
node_list4 = svg_element.querySelectorAll ".c3 path"
x_and_y = Array.from node_list1
x_and_y.concat Array.from node_list2
x_and_y.forEach (e) ->
e.style.fill = "none"
e.style.stroke = "black"
scale = Array.from node_list3
scale.forEach (e) ->
e.style.fill = "none"
e.style.stroke = "black"
path = Array.from node_list4
path.forEach (e) ->
e.style.fill = "none"
svg_element.style.backgroundColor = "white"
tick = svg_element.querySelectorAll ".tick"
for i in [0..tick.length-1]
# use transform property to check if the SVG element is on the top position of y axis
# matrix(1, 0, 0, 1, 0, 1) -> ["1", "0", "0", "1", "0", "1"]
transform_y_val = (getComputedStyle(tick[i]).getPropertyValue('transform').replace(/^matrix(3d)?\((.*)\)$/,'$2').split(/, /)[5])*1
if transform_y_val == 1
text = tick[i].getElementsByTagName("text")
# stop the loop once the SVG element on the top position of y axis is found
break
original_y = text[0].getAttribute "y"
text[0].setAttribute "y", original_y + 3
xml = new XMLSerializer().serializeToString svg_element
data_url = "data:image/svg+xml;base64," + btoa xml
# Reset to original values
svg_element.style.padding = null
text[0].setAttribute "y", original_y
svg_element.setAttribute "height", original_height
svg_element.setAttribute "width", original_width
svg_element.style.backgroundColor = null
img = new Image()
img.src = data_url
img.onload = () ->
canvas_element = document.createElement "canvas"
canvas_element.width = svg_element.scrollWidth
canvas_element.height = svg_element.scrollHeight
ctx = canvas_element.getContext "2d"
ctx.drawImage img, 0, 0
png_data_url = canvas_element.toDataURL "image/png"
a_element = document.createElement "a"
a_element.href = png_data_url
a_element.style = "display: none;"
a_element.target = "_blank"
a_element.download = "chart"
document.body.appendChild a_element
a_element.click()
document.body.removeChild a_element
return undefined
return this
| true | require "./index.styl"
c3 = require "c3"
Model = require "../Model"
mean = (values) ->
if values.length == 0
return NaN
sum = 0
i = 0
while i < values.length
sum += values[i]
i++
sum /= values.length
return sum
variance = (values, mu) ->
if values.length == 0
return NaN
sum = 0
i = 0
while i < values.length
sum += (values[i] - mu) * (values[i] - mu)
i++
return sum /= (values.length - 1)
ko.components.register "tf-qqplot",
template: do require "./index.pug"
viewModel: ( params ) ->
unless ko.isObservable params.model
throw new TypeError "components/options:
expects [model] to be observable"
model = params.model()
@column_index = model.show_qqplot
@active = ko.computed ( ) => @column_index() != undefined
@column_name = ko.computed ( ) =>
if !@active()
return undefined
index = @column_index()[0]
if typeof index == "string"
if index.indexOf("Sensitivity") != -1
index = index.split("_")[1]
return "Sensitivity " + model.sensitivityColumns()[index].name
if index.indexOf("C.I.") != -1
index = 0
return "C.I."
if index.indexOf("P.I.") != -1
index = 0
return "P.I."
if index.indexOf("ImportanceRatio") != -1
index = index.split("_")[1]
return "Importance Ratio " + model.importanceRatioColumns()[index].name
return index
return model.columns()[index].name
@values = ko.computed ( ) =>
if !@active()
return undefined
table = @column_index()[1]
offset_start = 0
offset_end = 0
if @table == 'fit'
offset_start = 0
offset_end = model["data_fit"]().length
else if @table == 'cross'
offset_start = model["data_fit"]().length
offset_end = offset_start + model["data_cross"]().length
else
offset_start = model["data_fit"]().length
if model["data_cross"]() != undefined
offset_start += model["data_cross"]().length
offset_end = offset_start
if model["data_validation"]() != undefined
offset_end += model["data_validation"]().length
# We've gotten into a situation where there's only 1 data table
# Due to a bug, this doesn't fall under the 'fit' category,
# but this patch is easier than fixing the bug
if offset_start == offset_end
offset_start = 0
index = @column_index()[0]
if typeof index == "string"
if index == "Dependent"
index = 0
if index == "Predicted"
index = 1
if index == "Residual"
index = 2
if typeof index == "string" && index.indexOf("Sensitivity") != -1
# format is: Sensitivity_index
index = index.split("_")[1]
return Object.values(model.sensitivityData()[index])
if typeof index == "string" && index.indexOf("C.I.") != -1
# format is: C.I.
index = 0
return Object.values(model.confidenceData()[0].slice(offset_start, offset_end))
if typeof index == "string" && index.indexOf("P.I.") != -1
# format is: P.I.
index = 0
return Object.values(model.predictionData()[0].slice(offset_start, offset_end))
if typeof index == "string" && index.indexOf("ImportanceRatio") != -1
# format is: ImportanceRatio_index
index = index.split("_")[1]
return Object.values(model.importanceRatioData()[index])
return model["extra_#{table}"]().map((row) => row[index])
return model["data_#{table}"]().map((row) => row[index])
@close = ( ) ->
model.show_qqplot undefined
@bucket_size = ko.observable(10);
@charthtml = ko.computed () =>
if !@active() || @values().length == 0
return ""
numUniqueValues = @values().filter((val, i, arr) ->
return arr.indexOf(val) == i
).length
sorted = @values().filter((x) => !isNaN(x)).sort((a, b) => a - b)
if numUniqueValues != 1
mu = mean(sorted)
sigma = Math.sqrt(variance(sorted, mu))
student = sorted.map((x) -> return (x - mu) / sigma)
else
student = Array(sorted.length).fill(NaN)
# An ordinal sequence to rank the data points
rank = [1..sorted.length]
# Perform the quantile calculation over the data set points
quantile = rank.map((i) -> return (i - 0.5) / sorted.length)
# The following functions for converting Z score to Percentile and converting Percentile to Z score were adapted by PI:NAME:<NAME>END_PI from C implementations written by PI:NAME:<NAME>END_PI of Wang Institute, Tyngsboro, MA 01879.
Z_MAX = 6
# Convert z-score to probability
poz = (z) ->
if z == 0.0
x = 0.0
else
y = 0.5 * Math.abs(z);
if (y > (Z_MAX * 0.5))
x = 1.0;
else if (y < 1.0)
w = y * y
x = ((((((((0.000124818987 * w -
0.001075204047) * w + 0.005198775019) * w -
0.019198292004) * w + 0.059054035642) * w -
0.151968751364) * w + 0.319152932694) * w -
0.531923007300) * w + 0.797884560593) * y * 2.0
else
y -= 2.0;
x = (((((((((((((-0.000045255659 * y +
0.000152529290) * y - 0.000019538132) * y -
0.000676904986) * y + 0.001390604284) * y -
0.000794620820) * y - 0.002034254874) * y +
0.006549791214) * y - 0.010557625006) * y +
0.011630447319) * y - 0.009279453341) * y +
0.005353579108) * y - 0.002141268741) * y +
0.000535310849) * y + 0.999936657524
return (if z > 0.0 then ((x + 1.0) * 0.5) else ((1.0 - x) * 0.5))
# Convert probability to z-score
critz = (p) ->
Z_EPSILON = 0.000001; # Accuracy of z approximation
minz = -Z_MAX;
maxz = Z_MAX;
zval = 0.0;
if p < 0.0
p = 0.0;
if p > 1.0
p = 1.0;
while (maxz - minz) > Z_EPSILON
pval = poz(zval)
if pval > p
maxz = zval;
else
minz = zval;
zval = (maxz + minz) * 0.5;
return zval
z_score = quantile.map((x) -> return critz(x))
min_z_score = z_score[0]
max_z_score = z_score[z_score.length-1]
if numUniqueValues != 1
min_student = student[0]
max_student = student[student.length-1]
min_scale_val = if min_z_score < min_student then Math.floor(min_z_score) else Math.floor(min_student)
max_scale_val = if max_z_score < max_student then Math.ceil(max_student) else Math.ceil(max_z_score)
else
min_scale_val = min_z_score
max_scale_val = max_z_score
# global varible 'chart' can be accessed in download function
global.chart = c3.generate
bindto: "#qqplot"
data:
type: "scatter"
x: "x"
columns: [
["x"].concat(z_score)
["y"].concat(student)
]
size:
height: 370
width: 600
axis:
x:
min: min_scale_val
max: max_scale_val
# x axis has a default padding value
padding:
top: 0
bottom: 0
tick:
count: 10
format: d3.format('.3s')
label:
text: 'Normal Theoretical Quantiles'
position: 'outer-center'
y:
min: min_scale_val
max: max_scale_val
# y axis has a default padding value
padding:
top: 0
bottom: 0
tick:
count: 10
format: d3.format('.3s')
label:
text: 'Sample Quantiles'
position: 'outer-middle'
legend:
show: false
grid:
x:
lines: [
value: 0
]
svg_element = chart.element.querySelector "svg"
xgrid_line = svg_element.querySelector ".c3-xgrid-line"
vertical_line = xgrid_line.getElementsByTagName("line")[0]
event_rect_area = svg_element.querySelector ".c3-event-rect"
shape_width = event_rect_area.getAttribute "width"
x1 = vertical_line.getAttribute "x1"
x2 = vertical_line.getAttribute "x2"
vertical_line.setAttribute "x1", shape_width
vertical_line.setAttribute "x2", 0
return chart.element.innerHTML
@download = ( ) ->
if !@active()
return undefined
svg_element = chart.element.querySelector "svg"
original_height = svg_element.getAttribute "height"
original_width = svg_element.getAttribute "width"
svg_element.removeAttribute "height"
svg_element.removeAttribute "width"
svg_element.style.overflow = "visible"
svg_element.style.padding = "10px"
box_size = svg_element.getBBox()
svg_element.style.height = box_size.height
svg_element.style.width = box_size.width
chart_line = svg_element.querySelector ".c3-chart-line"
chart_line.style.opacity = 1
node_list1 = svg_element.querySelectorAll ".c3-axis path"
node_list2 = svg_element.querySelectorAll ".c3 line"
node_list3 = svg_element.querySelectorAll "line"
node_list4 = svg_element.querySelectorAll ".c3 path"
x_and_y = Array.from node_list1
x_and_y.concat Array.from node_list2
x_and_y.forEach (e) ->
e.style.fill = "none"
e.style.stroke = "black"
scale = Array.from node_list3
scale.forEach (e) ->
e.style.fill = "none"
e.style.stroke = "black"
path = Array.from node_list4
path.forEach (e) ->
e.style.fill = "none"
svg_element.style.backgroundColor = "white"
tick = svg_element.querySelectorAll ".tick"
for i in [0..tick.length-1]
# use transform property to check if the SVG element is on the top position of y axis
# matrix(1, 0, 0, 1, 0, 1) -> ["1", "0", "0", "1", "0", "1"]
transform_y_val = (getComputedStyle(tick[i]).getPropertyValue('transform').replace(/^matrix(3d)?\((.*)\)$/,'$2').split(/, /)[5])*1
if transform_y_val == 1
text = tick[i].getElementsByTagName("text")
# stop the loop once the SVG element on the top position of y axis is found
break
original_y = text[0].getAttribute "y"
text[0].setAttribute "y", original_y + 3
xml = new XMLSerializer().serializeToString svg_element
data_url = "data:image/svg+xml;base64," + btoa xml
# Reset to original values
svg_element.style.padding = null
text[0].setAttribute "y", original_y
svg_element.setAttribute "height", original_height
svg_element.setAttribute "width", original_width
svg_element.style.backgroundColor = null
img = new Image()
img.src = data_url
img.onload = () ->
canvas_element = document.createElement "canvas"
canvas_element.width = svg_element.scrollWidth
canvas_element.height = svg_element.scrollHeight
ctx = canvas_element.getContext "2d"
ctx.drawImage img, 0, 0
png_data_url = canvas_element.toDataURL "image/png"
a_element = document.createElement "a"
a_element.href = png_data_url
a_element.style = "display: none;"
a_element.target = "_blank"
a_element.download = "chart"
document.body.appendChild a_element
a_element.click()
document.body.removeChild a_element
return undefined
return this
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.