From 5893b62f60d50b5af1ba05142b1337eea575a996 Mon Sep 17 00:00:00 2001
From: wanghongjun <1445693971@qq,com>
Date: Tue, 24 Oct 2023 11:12:51 +0800
Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E7=BD=B2=E5=88=B0git?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
framework/library/emoji/emoji.php | 2082 +++++
framework/library/json/JSON.php | 806 ++
framework/library/pdo/PDO.class.php | 358 +
.../library/pdo/PDOStatement_mysql.class.php | 368 +
framework/library/pdo/PDO_mysql.class.php | 265 +
.../PHPExcel/CachedObjectStorage/APC.php | 295 +
.../CachedObjectStorage/CacheBase.php | 318 +
.../PHPExcel/CachedObjectStorage/DiscISAM.php | 219 +
.../PHPExcel/CachedObjectStorage/ICache.php | 112 +
.../PHPExcel/CachedObjectStorage/Igbinary.php | 152 +
.../PHPExcel/CachedObjectStorage/Memcache.php | 312 +
.../PHPExcel/CachedObjectStorage/Memory.php | 125 +
.../CachedObjectStorage/MemoryGZip.php | 137 +
.../CachedObjectStorage/MemorySerialized.php | 137 +
.../PHPExcel/CachedObjectStorage/PHPTemp.php | 206 +
.../PHPExcel/CachedObjectStorage/SQLite.php | 306 +
.../PHPExcel/CachedObjectStorage/SQLite3.php | 345 +
.../PHPExcel/CachedObjectStorage/Wincache.php | 294 +
.../CalcEngine/CyclicReferenceStack.php | 98 +
.../phpexcel/PHPExcel/CalcEngine/Logger.php | 153 +
.../PHPExcel/Calculation/Database.php | 725 ++
.../PHPExcel/Calculation/DateTime.php | 1475 ++++
.../PHPExcel/Calculation/Engineering.php | 2505 ++++++
.../PHPExcel/Calculation/Exception.php | 52 +
.../PHPExcel/Calculation/ExceptionHandler.php | 49 +
.../PHPExcel/Calculation/Financial.php | 2292 ++++++
.../PHPExcel/Calculation/FormulaParser.php | 614 ++
.../PHPExcel/Calculation/FormulaToken.php | 176 +
.../PHPExcel/Calculation/Function.php | 149 +
.../PHPExcel/Calculation/Functions.php | 814 ++
.../phpexcel/PHPExcel/Calculation/Logical.php | 288 +
.../PHPExcel/Calculation/LookupRef.php | 812 ++
.../PHPExcel/Calculation/MathTrig.php | 1369 ++++
.../PHPExcel/Calculation/Statistical.php | 3651 +++++++++
.../PHPExcel/Calculation/TextData.php | 589 ++
.../PHPExcel/Calculation/Token/Stack.php | 115 +
.../PHPExcel/Calculation/Token/phpsql.php | 1183 +++
.../PHPExcel/Calculation/functionlist.txt | 351 +
.../PHPExcel/Cell/AdvancedValueBinder.php | 192 +
.../phpexcel/PHPExcel/Cell/DataType.php | 122 +
.../phpexcel/PHPExcel/Cell/DataValidation.php | 472 ++
.../PHPExcel/Cell/DefaultValueBinder.php | 106 +
.../phpexcel/PHPExcel/Cell/Hyperlink.php | 126 +
.../phpexcel/PHPExcel/Cell/IValueBinder.php | 46 +
.../library/phpexcel/PHPExcel/Chart/Axis.php | 561 ++
.../phpexcel/PHPExcel/Chart/DataSeries.php | 354 +
.../PHPExcel/Chart/DataSeriesValues.php | 327 +
.../phpexcel/PHPExcel/Chart/Exception.php | 52 +
.../phpexcel/PHPExcel/Chart/GridLines.php | 472 ++
.../phpexcel/PHPExcel/Chart/Layout.php | 417 +
.../phpexcel/PHPExcel/Chart/Legend.php | 171 +
.../phpexcel/PHPExcel/Chart/PlotArea.php | 125 +
.../phpexcel/PHPExcel/Chart/Properties.php | 363 +
.../Chart/Renderer/PHP Charting Libraries.txt | 17 +
.../PHPExcel/Chart/Renderer/jpgraph.php | 837 ++
.../library/phpexcel/PHPExcel/Chart/Title.php | 89 +
.../library/phpexcel/PHPExcel/Helper/HTML.php | 808 ++
.../phpexcel/PHPExcel/Reader/Abstract.php | 227 +
.../library/phpexcel/PHPExcel/Reader/CSV.php | 415 +
.../PHPExcel/Reader/DefaultReadFilter.php | 58 +
.../phpexcel/PHPExcel/Reader/Excel2003XML.php | 802 ++
.../phpexcel/PHPExcel/Reader/Excel2007.php | 1982 +++++
.../PHPExcel/Reader/Excel2007/Chart.php | 517 ++
.../PHPExcel/Reader/Excel2007/Theme.php | 124 +
.../phpexcel/PHPExcel/Reader/Excel5.php | 6845 +++++++++++++++++
.../phpexcel/PHPExcel/Reader/Excel5/Color.php | 32 +
.../PHPExcel/Reader/Excel5/Color/BIFF5.php | 77 +
.../PHPExcel/Reader/Excel5/Color/BIFF8.php | 77 +
.../PHPExcel/Reader/Excel5/Color/BuiltIn.php | 31 +
.../PHPExcel/Reader/Excel5/ErrorCode.php | 28 +
.../PHPExcel/Reader/Excel5/Escher.php | 640 ++
.../phpexcel/PHPExcel/Reader/Excel5/MD5.php | 203 +
.../phpexcel/PHPExcel/Reader/Excel5/RC4.php | 81 +
.../PHPExcel/Reader/Excel5/Style/Border.php | 36 +
.../Reader/Excel5/Style/FillPattern.php | 41 +
.../phpexcel/PHPExcel/Reader/Exception.php | 52 +
.../phpexcel/PHPExcel/Reader/Gnumeric.php | 873 +++
.../library/phpexcel/PHPExcel/Reader/HTML.php | 468 ++
.../phpexcel/PHPExcel/Reader/IReadFilter.php | 47 +
.../phpexcel/PHPExcel/Reader/IReader.php | 53 +
.../phpexcel/PHPExcel/Reader/OOCalc.php | 695 ++
.../library/phpexcel/PHPExcel/Reader/SYLK.php | 450 ++
.../PHPExcel/RichText/ITextElement.php | 64 +
.../phpexcel/PHPExcel/RichText/Run.php | 102 +
.../PHPExcel/RichText/TextElement.php | 108 +
.../phpexcel/PHPExcel/Shared/CodePage.php | 101 +
.../library/phpexcel/PHPExcel/Shared/Date.php | 390 +
.../phpexcel/PHPExcel/Shared/Drawing.php | 272 +
.../phpexcel/PHPExcel/Shared/Escher.php | 91 +
.../PHPExcel/Shared/Escher/DgContainer.php | 83 +
.../Escher/DgContainer/SpgrContainer.php | 109 +
.../DgContainer/SpgrContainer/SpContainer.php | 395 +
.../PHPExcel/Shared/Escher/DggContainer.php | 203 +
.../Escher/DggContainer/BstoreContainer.php | 65 +
.../DggContainer/BstoreContainer/BSE.php | 120 +
.../DggContainer/BstoreContainer/BSE/Blip.php | 91 +
.../phpexcel/PHPExcel/Shared/Excel5.php | 317 +
.../library/phpexcel/PHPExcel/Shared/File.php | 178 +
.../library/phpexcel/PHPExcel/Shared/Font.php | 775 ++
.../PHPExcel/Shared/JAMA/CHANGELOG.TXT | 16 +
.../Shared/JAMA/CholeskyDecomposition.php | 149 +
.../Shared/JAMA/EigenvalueDecomposition.php | 862 +++
.../PHPExcel/Shared/JAMA/LUDecomposition.php | 258 +
.../phpexcel/PHPExcel/Shared/JAMA/Matrix.php | 1059 +++
.../PHPExcel/Shared/JAMA/QRDecomposition.php | 234 +
.../JAMA/SingularValueDecomposition.php | 526 ++
.../PHPExcel/Shared/JAMA/utils/Error.php | 82 +
.../PHPExcel/Shared/JAMA/utils/Maths.php | 43 +
.../library/phpexcel/PHPExcel/Shared/OLE.php | 531 ++
.../Shared/OLE/ChainedBlockStream.php | 229 +
.../phpexcel/PHPExcel/Shared/OLE/PPS.php | 230 +
.../phpexcel/PHPExcel/Shared/OLE/PPS/File.php | 84 +
.../phpexcel/PHPExcel/Shared/OLE/PPS/Root.php | 467 ++
.../phpexcel/PHPExcel/Shared/OLERead.php | 317 +
.../PHPExcel/Shared/PCLZip/gnu-lgpl.txt | 504 ++
.../PHPExcel/Shared/PCLZip/pclzip.lib.php | 5694 ++++++++++++++
.../PHPExcel/Shared/PCLZip/readme.txt | 421 +
.../PHPExcel/Shared/PasswordHasher.php | 66 +
.../phpexcel/PHPExcel/Shared/String.php | 776 ++
.../phpexcel/PHPExcel/Shared/TimeZone.php | 140 +
.../phpexcel/PHPExcel/Shared/XMLWriter.php | 127 +
.../phpexcel/PHPExcel/Shared/ZipArchive.php | 114 +
.../PHPExcel/Shared/ZipStreamWrapper.php | 201 +
.../PHPExcel/Shared/trend/bestFitClass.php | 432 ++
.../Shared/trend/exponentialBestFitClass.php | 148 +
.../Shared/trend/linearBestFitClass.php | 111 +
.../Shared/trend/logarithmicBestFitClass.php | 120 +
.../Shared/trend/polynomialBestFitClass.php | 224 +
.../Shared/trend/powerBestFitClass.php | 142 +
.../PHPExcel/Shared/trend/trendClass.php | 156 +
.../phpexcel/PHPExcel/locale/bg/config | 49 +
.../phpexcel/PHPExcel/locale/cs/config | 47 +
.../phpexcel/PHPExcel/locale/cs/functions | 438 ++
.../phpexcel/PHPExcel/locale/da/config | 48 +
.../phpexcel/PHPExcel/locale/da/functions | 438 ++
.../phpexcel/PHPExcel/locale/de/config | 47 +
.../phpexcel/PHPExcel/locale/de/functions | 438 ++
.../phpexcel/PHPExcel/locale/en/uk/config | 32 +
.../phpexcel/PHPExcel/locale/es/config | 47 +
.../phpexcel/PHPExcel/locale/es/functions | 438 ++
.../phpexcel/PHPExcel/locale/fi/config | 47 +
.../phpexcel/PHPExcel/locale/fi/functions | 438 ++
.../phpexcel/PHPExcel/locale/fr/config | 47 +
.../phpexcel/PHPExcel/locale/fr/functions | 438 ++
.../phpexcel/PHPExcel/locale/hu/config | 47 +
.../phpexcel/PHPExcel/locale/hu/functions | 438 ++
.../phpexcel/PHPExcel/locale/it/config | 47 +
.../phpexcel/PHPExcel/locale/it/functions | 438 ++
.../phpexcel/PHPExcel/locale/nl/config | 47 +
.../phpexcel/PHPExcel/locale/nl/functions | 438 ++
.../phpexcel/PHPExcel/locale/no/config | 47 +
.../phpexcel/PHPExcel/locale/no/functions | 438 ++
.../phpexcel/PHPExcel/locale/pl/config | 47 +
.../phpexcel/PHPExcel/locale/pl/functions | 438 ++
.../phpexcel/PHPExcel/locale/pt/br/config | 47 +
.../phpexcel/PHPExcel/locale/pt/br/functions | 408 +
.../phpexcel/PHPExcel/locale/pt/config | 47 +
.../phpexcel/PHPExcel/locale/pt/functions | 408 +
.../phpexcel/PHPExcel/locale/ru/config | 47 +
.../phpexcel/PHPExcel/locale/ru/functions | 438 ++
.../phpexcel/PHPExcel/locale/sv/config | 47 +
.../phpexcel/PHPExcel/locale/sv/functions | 408 +
.../phpexcel/PHPExcel/locale/tr/config | 47 +
.../phpexcel/PHPExcel/locale/tr/functions | 438 ++
.../library/pinyin/ChinesePinyinTable.php | 1 +
framework/library/pinyin/pinyin.php | 171 +
framework/library/pkcs7/errorCode.php | 23 +
framework/library/pkcs7/pkcs7Encoder.php | 96 +
framework/library/qiniu/autoload.php | 14 +
framework/library/qiniu/src/Qiniu/Auth.php | 163 +
framework/library/qiniu/src/Qiniu/Config.php | 25 +
framework/library/qiniu/src/Qiniu/Etag.php | 76 +
.../library/qiniu/src/Qiniu/Http/Client.php | 144 +
.../library/qiniu/src/Qiniu/Http/Error.php | 29 +
.../library/qiniu/src/Qiniu/Http/Request.php | 18 +
.../library/qiniu/src/Qiniu/Http/Response.php | 176 +
.../src/Qiniu/Processing/ImageUrlBuilder.php | 282 +
.../qiniu/src/Qiniu/Processing/Operation.php | 60 +
.../src/Qiniu/Processing/PersistentFop.php | 95 +
.../qiniu/src/Qiniu/Storage/BucketManager.php | 356 +
.../qiniu/src/Qiniu/Storage/FormUploader.php | 134 +
.../src/Qiniu/Storage/ResumeUploader.php | 160 +
.../qiniu/src/Qiniu/Storage/UploadManager.php | 141 +
framework/library/qiniu/src/Qiniu/Zone.php | 185 +
.../library/qiniu/src/Qiniu/functions.php | 241 +
framework/library/qiniu/src/Qiniu/phpsql.php | 1183 +++
framework/library/qrcode/phpqrcode.php | 3312 ++++++++
187 files changed, 77572 insertions(+)
create mode 100644 framework/library/emoji/emoji.php
create mode 100644 framework/library/json/JSON.php
create mode 100644 framework/library/pdo/PDO.class.php
create mode 100644 framework/library/pdo/PDOStatement_mysql.class.php
create mode 100644 framework/library/pdo/PDO_mysql.class.php
create mode 100644 framework/library/phpexcel/PHPExcel/CachedObjectStorage/APC.php
create mode 100644 framework/library/phpexcel/PHPExcel/CachedObjectStorage/CacheBase.php
create mode 100644 framework/library/phpexcel/PHPExcel/CachedObjectStorage/DiscISAM.php
create mode 100644 framework/library/phpexcel/PHPExcel/CachedObjectStorage/ICache.php
create mode 100644 framework/library/phpexcel/PHPExcel/CachedObjectStorage/Igbinary.php
create mode 100644 framework/library/phpexcel/PHPExcel/CachedObjectStorage/Memcache.php
create mode 100644 framework/library/phpexcel/PHPExcel/CachedObjectStorage/Memory.php
create mode 100644 framework/library/phpexcel/PHPExcel/CachedObjectStorage/MemoryGZip.php
create mode 100644 framework/library/phpexcel/PHPExcel/CachedObjectStorage/MemorySerialized.php
create mode 100644 framework/library/phpexcel/PHPExcel/CachedObjectStorage/PHPTemp.php
create mode 100644 framework/library/phpexcel/PHPExcel/CachedObjectStorage/SQLite.php
create mode 100644 framework/library/phpexcel/PHPExcel/CachedObjectStorage/SQLite3.php
create mode 100644 framework/library/phpexcel/PHPExcel/CachedObjectStorage/Wincache.php
create mode 100644 framework/library/phpexcel/PHPExcel/CalcEngine/CyclicReferenceStack.php
create mode 100644 framework/library/phpexcel/PHPExcel/CalcEngine/Logger.php
create mode 100644 framework/library/phpexcel/PHPExcel/Calculation/Database.php
create mode 100644 framework/library/phpexcel/PHPExcel/Calculation/DateTime.php
create mode 100644 framework/library/phpexcel/PHPExcel/Calculation/Engineering.php
create mode 100644 framework/library/phpexcel/PHPExcel/Calculation/Exception.php
create mode 100644 framework/library/phpexcel/PHPExcel/Calculation/ExceptionHandler.php
create mode 100644 framework/library/phpexcel/PHPExcel/Calculation/Financial.php
create mode 100644 framework/library/phpexcel/PHPExcel/Calculation/FormulaParser.php
create mode 100644 framework/library/phpexcel/PHPExcel/Calculation/FormulaToken.php
create mode 100644 framework/library/phpexcel/PHPExcel/Calculation/Function.php
create mode 100644 framework/library/phpexcel/PHPExcel/Calculation/Functions.php
create mode 100644 framework/library/phpexcel/PHPExcel/Calculation/Logical.php
create mode 100644 framework/library/phpexcel/PHPExcel/Calculation/LookupRef.php
create mode 100644 framework/library/phpexcel/PHPExcel/Calculation/MathTrig.php
create mode 100644 framework/library/phpexcel/PHPExcel/Calculation/Statistical.php
create mode 100644 framework/library/phpexcel/PHPExcel/Calculation/TextData.php
create mode 100644 framework/library/phpexcel/PHPExcel/Calculation/Token/Stack.php
create mode 100644 framework/library/phpexcel/PHPExcel/Calculation/Token/phpsql.php
create mode 100644 framework/library/phpexcel/PHPExcel/Calculation/functionlist.txt
create mode 100644 framework/library/phpexcel/PHPExcel/Cell/AdvancedValueBinder.php
create mode 100644 framework/library/phpexcel/PHPExcel/Cell/DataType.php
create mode 100644 framework/library/phpexcel/PHPExcel/Cell/DataValidation.php
create mode 100644 framework/library/phpexcel/PHPExcel/Cell/DefaultValueBinder.php
create mode 100644 framework/library/phpexcel/PHPExcel/Cell/Hyperlink.php
create mode 100644 framework/library/phpexcel/PHPExcel/Cell/IValueBinder.php
create mode 100644 framework/library/phpexcel/PHPExcel/Chart/Axis.php
create mode 100644 framework/library/phpexcel/PHPExcel/Chart/DataSeries.php
create mode 100644 framework/library/phpexcel/PHPExcel/Chart/DataSeriesValues.php
create mode 100644 framework/library/phpexcel/PHPExcel/Chart/Exception.php
create mode 100644 framework/library/phpexcel/PHPExcel/Chart/GridLines.php
create mode 100644 framework/library/phpexcel/PHPExcel/Chart/Layout.php
create mode 100644 framework/library/phpexcel/PHPExcel/Chart/Legend.php
create mode 100644 framework/library/phpexcel/PHPExcel/Chart/PlotArea.php
create mode 100644 framework/library/phpexcel/PHPExcel/Chart/Properties.php
create mode 100644 framework/library/phpexcel/PHPExcel/Chart/Renderer/PHP Charting Libraries.txt
create mode 100644 framework/library/phpexcel/PHPExcel/Chart/Renderer/jpgraph.php
create mode 100644 framework/library/phpexcel/PHPExcel/Chart/Title.php
create mode 100644 framework/library/phpexcel/PHPExcel/Helper/HTML.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/Abstract.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/CSV.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/DefaultReadFilter.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/Excel2003XML.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/Excel2007.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/Excel2007/Chart.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/Excel2007/Theme.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/Excel5.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/Excel5/Color.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/Excel5/Color/BIFF5.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/Excel5/Color/BIFF8.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/Excel5/Color/BuiltIn.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/Excel5/ErrorCode.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/Excel5/Escher.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/Excel5/MD5.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/Excel5/RC4.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/Excel5/Style/Border.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/Excel5/Style/FillPattern.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/Exception.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/Gnumeric.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/HTML.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/IReadFilter.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/IReader.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/OOCalc.php
create mode 100644 framework/library/phpexcel/PHPExcel/Reader/SYLK.php
create mode 100644 framework/library/phpexcel/PHPExcel/RichText/ITextElement.php
create mode 100644 framework/library/phpexcel/PHPExcel/RichText/Run.php
create mode 100644 framework/library/phpexcel/PHPExcel/RichText/TextElement.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/CodePage.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/Date.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/Drawing.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/Escher.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/Escher/DgContainer.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/Escher/DgContainer/SpgrContainer.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/Escher/DgContainer/SpgrContainer/SpContainer.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/Escher/DggContainer.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/Escher/DggContainer/BstoreContainer.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE/Blip.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/Excel5.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/File.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/Font.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/JAMA/CHANGELOG.TXT
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/JAMA/CholeskyDecomposition.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/JAMA/EigenvalueDecomposition.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/JAMA/LUDecomposition.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/JAMA/Matrix.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/JAMA/QRDecomposition.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/JAMA/SingularValueDecomposition.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/JAMA/utils/Error.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/JAMA/utils/Maths.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/OLE.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/OLE/ChainedBlockStream.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/OLE/PPS.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/OLE/PPS/File.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/OLE/PPS/Root.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/OLERead.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/PCLZip/gnu-lgpl.txt
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/PCLZip/pclzip.lib.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/PCLZip/readme.txt
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/PasswordHasher.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/String.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/TimeZone.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/XMLWriter.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/ZipArchive.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/ZipStreamWrapper.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/trend/bestFitClass.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/trend/exponentialBestFitClass.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/trend/linearBestFitClass.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/trend/logarithmicBestFitClass.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/trend/polynomialBestFitClass.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/trend/powerBestFitClass.php
create mode 100644 framework/library/phpexcel/PHPExcel/Shared/trend/trendClass.php
create mode 100644 framework/library/phpexcel/PHPExcel/locale/bg/config
create mode 100644 framework/library/phpexcel/PHPExcel/locale/cs/config
create mode 100644 framework/library/phpexcel/PHPExcel/locale/cs/functions
create mode 100644 framework/library/phpexcel/PHPExcel/locale/da/config
create mode 100644 framework/library/phpexcel/PHPExcel/locale/da/functions
create mode 100644 framework/library/phpexcel/PHPExcel/locale/de/config
create mode 100644 framework/library/phpexcel/PHPExcel/locale/de/functions
create mode 100644 framework/library/phpexcel/PHPExcel/locale/en/uk/config
create mode 100644 framework/library/phpexcel/PHPExcel/locale/es/config
create mode 100644 framework/library/phpexcel/PHPExcel/locale/es/functions
create mode 100644 framework/library/phpexcel/PHPExcel/locale/fi/config
create mode 100644 framework/library/phpexcel/PHPExcel/locale/fi/functions
create mode 100644 framework/library/phpexcel/PHPExcel/locale/fr/config
create mode 100644 framework/library/phpexcel/PHPExcel/locale/fr/functions
create mode 100644 framework/library/phpexcel/PHPExcel/locale/hu/config
create mode 100644 framework/library/phpexcel/PHPExcel/locale/hu/functions
create mode 100644 framework/library/phpexcel/PHPExcel/locale/it/config
create mode 100644 framework/library/phpexcel/PHPExcel/locale/it/functions
create mode 100644 framework/library/phpexcel/PHPExcel/locale/nl/config
create mode 100644 framework/library/phpexcel/PHPExcel/locale/nl/functions
create mode 100644 framework/library/phpexcel/PHPExcel/locale/no/config
create mode 100644 framework/library/phpexcel/PHPExcel/locale/no/functions
create mode 100644 framework/library/phpexcel/PHPExcel/locale/pl/config
create mode 100644 framework/library/phpexcel/PHPExcel/locale/pl/functions
create mode 100644 framework/library/phpexcel/PHPExcel/locale/pt/br/config
create mode 100644 framework/library/phpexcel/PHPExcel/locale/pt/br/functions
create mode 100644 framework/library/phpexcel/PHPExcel/locale/pt/config
create mode 100644 framework/library/phpexcel/PHPExcel/locale/pt/functions
create mode 100644 framework/library/phpexcel/PHPExcel/locale/ru/config
create mode 100644 framework/library/phpexcel/PHPExcel/locale/ru/functions
create mode 100644 framework/library/phpexcel/PHPExcel/locale/sv/config
create mode 100644 framework/library/phpexcel/PHPExcel/locale/sv/functions
create mode 100644 framework/library/phpexcel/PHPExcel/locale/tr/config
create mode 100644 framework/library/phpexcel/PHPExcel/locale/tr/functions
create mode 100644 framework/library/pinyin/ChinesePinyinTable.php
create mode 100644 framework/library/pinyin/pinyin.php
create mode 100644 framework/library/pkcs7/errorCode.php
create mode 100644 framework/library/pkcs7/pkcs7Encoder.php
create mode 100644 framework/library/qiniu/autoload.php
create mode 100644 framework/library/qiniu/src/Qiniu/Auth.php
create mode 100644 framework/library/qiniu/src/Qiniu/Config.php
create mode 100644 framework/library/qiniu/src/Qiniu/Etag.php
create mode 100644 framework/library/qiniu/src/Qiniu/Http/Client.php
create mode 100644 framework/library/qiniu/src/Qiniu/Http/Error.php
create mode 100644 framework/library/qiniu/src/Qiniu/Http/Request.php
create mode 100644 framework/library/qiniu/src/Qiniu/Http/Response.php
create mode 100644 framework/library/qiniu/src/Qiniu/Processing/ImageUrlBuilder.php
create mode 100644 framework/library/qiniu/src/Qiniu/Processing/Operation.php
create mode 100644 framework/library/qiniu/src/Qiniu/Processing/PersistentFop.php
create mode 100644 framework/library/qiniu/src/Qiniu/Storage/BucketManager.php
create mode 100644 framework/library/qiniu/src/Qiniu/Storage/FormUploader.php
create mode 100644 framework/library/qiniu/src/Qiniu/Storage/ResumeUploader.php
create mode 100644 framework/library/qiniu/src/Qiniu/Storage/UploadManager.php
create mode 100644 framework/library/qiniu/src/Qiniu/Zone.php
create mode 100644 framework/library/qiniu/src/Qiniu/functions.php
create mode 100644 framework/library/qiniu/src/Qiniu/phpsql.php
create mode 100644 framework/library/qrcode/phpqrcode.php
diff --git a/framework/library/emoji/emoji.php b/framework/library/emoji/emoji.php
new file mode 100644
index 0000000..0dacc85
--- /dev/null
+++ b/framework/library/emoji/emoji.php
@@ -0,0 +1,2082 @@
+ array(
+ "\xe2\x98\x80" => 'BLACK SUN WITH RAYS',
+ "\xe2\x98\x81" => 'CLOUD',
+ "\xe2\x98\x94" => 'UMBRELLA WITH RAIN DROPS',
+ "\xe2\x9b\x84" => 'SNOWMAN WITHOUT SNOW',
+ "\xe2\x9a\xa1" => 'HIGH VOLTAGE SIGN',
+ "\xf0\x9f\x8c\x80" => 'CYCLONE',
+ "\xf0\x9f\x8c\x81" => 'FOGGY',
+ "\xf0\x9f\x8c\x82" => 'CLOSED UMBRELLA',
+ "\xf0\x9f\x8c\x83" => 'NIGHT WITH STARS',
+ "\xf0\x9f\x8c\x84" => 'SUNRISE OVER MOUNTAINS',
+ "\xf0\x9f\x8c\x85" => 'SUNRISE',
+ "\xf0\x9f\x8c\x86" => 'CITYSCAPE AT DUSK',
+ "\xf0\x9f\x8c\x87" => 'SUNSET OVER BUILDINGS',
+ "\xf0\x9f\x8c\x88" => 'RAINBOW',
+ "\xe2\x9d\x84" => 'SNOWFLAKE',
+ "\xe2\x9b\x85" => 'SUN BEHIND CLOUD',
+ "\xf0\x9f\x8c\x89" => 'BRIDGE AT NIGHT',
+ "\xf0\x9f\x8c\x8a" => 'WATER WAVE',
+ "\xf0\x9f\x8c\x8b" => 'VOLCANO',
+ "\xf0\x9f\x8c\x8c" => 'MILKY WAY',
+ "\xf0\x9f\x8c\x8f" => 'EARTH GLOBE ASIA-AUSTRALIA',
+ "\xf0\x9f\x8c\x91" => 'NEW MOON SYMBOL',
+ "\xf0\x9f\x8c\x94" => 'WAXING GIBBOUS MOON SYMBOL',
+ "\xf0\x9f\x8c\x93" => 'FIRST QUARTER MOON SYMBOL',
+ "\xf0\x9f\x8c\x99" => 'CRESCENT MOON',
+ "\xf0\x9f\x8c\x95" => 'FULL MOON SYMBOL',
+ "\xf0\x9f\x8c\x9b" => 'FIRST QUARTER MOON WITH FACE',
+ "\xf0\x9f\x8c\x9f" => 'GLOWING STAR',
+ "\xf0\x9f\x8c\xa0" => 'SHOOTING STAR',
+ "\xf0\x9f\x95\x90" => 'CLOCK FACE ONE OCLOCK',
+ "\xf0\x9f\x95\x91" => 'CLOCK FACE TWO OCLOCK',
+ "\xf0\x9f\x95\x92" => 'CLOCK FACE THREE OCLOCK',
+ "\xf0\x9f\x95\x93" => 'CLOCK FACE FOUR OCLOCK',
+ "\xf0\x9f\x95\x94" => 'CLOCK FACE FIVE OCLOCK',
+ "\xf0\x9f\x95\x95" => 'CLOCK FACE SIX OCLOCK',
+ "\xf0\x9f\x95\x96" => 'CLOCK FACE SEVEN OCLOCK',
+ "\xf0\x9f\x95\x97" => 'CLOCK FACE EIGHT OCLOCK',
+ "\xf0\x9f\x95\x98" => 'CLOCK FACE NINE OCLOCK',
+ "\xf0\x9f\x95\x99" => 'CLOCK FACE TEN OCLOCK',
+ "\xf0\x9f\x95\x9a" => 'CLOCK FACE ELEVEN OCLOCK',
+ "\xf0\x9f\x95\x9b" => 'CLOCK FACE TWELVE OCLOCK',
+ "\xe2\x8c\x9a" => 'WATCH',
+ "\xe2\x8c\x9b" => 'HOURGLASS',
+ "\xe2\x8f\xb0" => 'ALARM CLOCK',
+ "\xe2\x8f\xb3" => 'HOURGLASS WITH FLOWING SAND',
+ "\xe2\x99\x88" => 'ARIES',
+ "\xe2\x99\x89" => 'TAURUS',
+ "\xe2\x99\x8a" => 'GEMINI',
+ "\xe2\x99\x8b" => 'CANCER',
+ "\xe2\x99\x8c" => 'LEO',
+ "\xe2\x99\x8d" => 'VIRGO',
+ "\xe2\x99\x8e" => 'LIBRA',
+ "\xe2\x99\x8f" => 'SCORPIUS',
+ "\xe2\x99\x90" => 'SAGITTARIUS',
+ "\xe2\x99\x91" => 'CAPRICORN',
+ "\xe2\x99\x92" => 'AQUARIUS',
+ "\xe2\x99\x93" => 'PISCES',
+ "\xe2\x9b\x8e" => 'OPHIUCHUS',
+ "\xf0\x9f\x8d\x80" => 'FOUR LEAF CLOVER',
+ "\xf0\x9f\x8c\xb7" => 'TULIP',
+ "\xf0\x9f\x8c\xb1" => 'SEEDLING',
+ "\xf0\x9f\x8d\x81" => 'MAPLE LEAF',
+ "\xf0\x9f\x8c\xb8" => 'CHERRY BLOSSOM',
+ "\xf0\x9f\x8c\xb9" => 'ROSE',
+ "\xf0\x9f\x8d\x82" => 'FALLEN LEAF',
+ "\xf0\x9f\x8d\x83" => 'LEAF FLUTTERING IN WIND',
+ "\xf0\x9f\x8c\xba" => 'HIBISCUS',
+ "\xf0\x9f\x8c\xbb" => 'SUNFLOWER',
+ "\xf0\x9f\x8c\xb4" => 'PALM TREE',
+ "\xf0\x9f\x8c\xb5" => 'CACTUS',
+ "\xf0\x9f\x8c\xbe" => 'EAR OF RICE',
+ "\xf0\x9f\x8c\xbd" => 'EAR OF MAIZE',
+ "\xf0\x9f\x8d\x84" => 'MUSHROOM',
+ "\xf0\x9f\x8c\xb0" => 'CHESTNUT',
+ "\xf0\x9f\x8c\xbc" => 'BLOSSOM',
+ "\xf0\x9f\x8c\xbf" => 'HERB',
+ "\xf0\x9f\x8d\x92" => 'CHERRIES',
+ "\xf0\x9f\x8d\x8c" => 'BANANA',
+ "\xf0\x9f\x8d\x8e" => 'RED APPLE',
+ "\xf0\x9f\x8d\x8a" => 'TANGERINE',
+ "\xf0\x9f\x8d\x93" => 'STRAWBERRY',
+ "\xf0\x9f\x8d\x89" => 'WATERMELON',
+ "\xf0\x9f\x8d\x85" => 'TOMATO',
+ "\xf0\x9f\x8d\x86" => 'AUBERGINE',
+ "\xf0\x9f\x8d\x88" => 'MELON',
+ "\xf0\x9f\x8d\x8d" => 'PINEAPPLE',
+ "\xf0\x9f\x8d\x87" => 'GRAPES',
+ "\xf0\x9f\x8d\x91" => 'PEACH',
+ "\xf0\x9f\x8d\x8f" => 'GREEN APPLE',
+ "\xf0\x9f\x91\x80" => 'EYES',
+ "\xf0\x9f\x91\x82" => 'EAR',
+ "\xf0\x9f\x91\x83" => 'NOSE',
+ "\xf0\x9f\x91\x84" => 'MOUTH',
+ "\xf0\x9f\x91\x85" => 'TONGUE',
+ "\xf0\x9f\x92\x84" => 'LIPSTICK',
+ "\xf0\x9f\x92\x85" => 'NAIL POLISH',
+ "\xf0\x9f\x92\x86" => 'FACE MASSAGE',
+ "\xf0\x9f\x92\x87" => 'HAIRCUT',
+ "\xf0\x9f\x92\x88" => 'BARBER POLE',
+ "\xf0\x9f\x91\xa4" => 'BUST IN SILHOUETTE',
+ "\xf0\x9f\x91\xa6" => 'BOY',
+ "\xf0\x9f\x91\xa7" => 'GIRL',
+ "\xf0\x9f\x91\xa8" => 'MAN',
+ "\xf0\x9f\x91\xa9" => 'WOMAN',
+ "\xf0\x9f\x91\xaa" => 'FAMILY',
+ "\xf0\x9f\x91\xab" => 'MAN AND WOMAN HOLDING HANDS',
+ "\xf0\x9f\x91\xae" => 'POLICE OFFICER',
+ "\xf0\x9f\x91\xaf" => 'WOMAN WITH BUNNY EARS',
+ "\xf0\x9f\x91\xb0" => 'BRIDE WITH VEIL',
+ "\xf0\x9f\x91\xb1" => 'PERSON WITH BLOND HAIR',
+ "\xf0\x9f\x91\xb2" => 'MAN WITH GUA PI MAO',
+ "\xf0\x9f\x91\xb3" => 'MAN WITH TURBAN',
+ "\xf0\x9f\x91\xb4" => 'OLDER MAN',
+ "\xf0\x9f\x91\xb5" => 'OLDER WOMAN',
+ "\xf0\x9f\x91\xb6" => 'BABY',
+ "\xf0\x9f\x91\xb7" => 'CONSTRUCTION WORKER',
+ "\xf0\x9f\x91\xb8" => 'PRINCESS',
+ "\xf0\x9f\x91\xb9" => 'JAPANESE OGRE',
+ "\xf0\x9f\x91\xba" => 'JAPANESE GOBLIN',
+ "\xf0\x9f\x91\xbb" => 'GHOST',
+ "\xf0\x9f\x91\xbc" => 'BABY ANGEL',
+ "\xf0\x9f\x91\xbd" => 'EXTRATERRESTRIAL ALIEN',
+ "\xf0\x9f\x91\xbe" => 'ALIEN MONSTER',
+ "\xf0\x9f\x91\xbf" => 'IMP',
+ "\xf0\x9f\x92\x80" => 'SKULL',
+ "\xf0\x9f\x92\x81" => 'INFORMATION DESK PERSON',
+ "\xf0\x9f\x92\x82" => 'GUARDSMAN',
+ "\xf0\x9f\x92\x83" => 'DANCER',
+ "\xf0\x9f\x90\x8c" => 'SNAIL',
+ "\xf0\x9f\x90\x8d" => 'SNAKE',
+ "\xf0\x9f\x90\x8e" => 'HORSE',
+ "\xf0\x9f\x90\x94" => 'CHICKEN',
+ "\xf0\x9f\x90\x97" => 'BOAR',
+ "\xf0\x9f\x90\xab" => 'BACTRIAN CAMEL',
+ "\xf0\x9f\x90\x98" => 'ELEPHANT',
+ "\xf0\x9f\x90\xa8" => 'KOALA',
+ "\xf0\x9f\x90\x92" => 'MONKEY',
+ "\xf0\x9f\x90\x91" => 'SHEEP',
+ "\xf0\x9f\x90\x99" => 'OCTOPUS',
+ "\xf0\x9f\x90\x9a" => 'SPIRAL SHELL',
+ "\xf0\x9f\x90\x9b" => 'BUG',
+ "\xf0\x9f\x90\x9c" => 'ANT',
+ "\xf0\x9f\x90\x9d" => 'HONEYBEE',
+ "\xf0\x9f\x90\x9e" => 'LADY BEETLE',
+ "\xf0\x9f\x90\xa0" => 'TROPICAL FISH',
+ "\xf0\x9f\x90\xa1" => 'BLOWFISH',
+ "\xf0\x9f\x90\xa2" => 'TURTLE',
+ "\xf0\x9f\x90\xa4" => 'BABY CHICK',
+ "\xf0\x9f\x90\xa5" => 'FRONT-FACING BABY CHICK',
+ "\xf0\x9f\x90\xa6" => 'BIRD',
+ "\xf0\x9f\x90\xa3" => 'HATCHING CHICK',
+ "\xf0\x9f\x90\xa7" => 'PENGUIN',
+ "\xf0\x9f\x90\xa9" => 'POODLE',
+ "\xf0\x9f\x90\x9f" => 'FISH',
+ "\xf0\x9f\x90\xac" => 'DOLPHIN',
+ "\xf0\x9f\x90\xad" => 'MOUSE FACE',
+ "\xf0\x9f\x90\xaf" => 'TIGER FACE',
+ "\xf0\x9f\x90\xb1" => 'CAT FACE',
+ "\xf0\x9f\x90\xb3" => 'SPOUTING WHALE',
+ "\xf0\x9f\x90\xb4" => 'HORSE FACE',
+ "\xf0\x9f\x90\xb5" => 'MONKEY FACE',
+ "\xf0\x9f\x90\xb6" => 'DOG FACE',
+ "\xf0\x9f\x90\xb7" => 'PIG FACE',
+ "\xf0\x9f\x90\xbb" => 'BEAR FACE',
+ "\xf0\x9f\x90\xb9" => 'HAMSTER FACE',
+ "\xf0\x9f\x90\xba" => 'WOLF FACE',
+ "\xf0\x9f\x90\xae" => 'COW FACE',
+ "\xf0\x9f\x90\xb0" => 'RABBIT FACE',
+ "\xf0\x9f\x90\xb8" => 'FROG FACE',
+ "\xf0\x9f\x90\xbe" => 'PAW PRINTS',
+ "\xf0\x9f\x90\xb2" => 'DRAGON FACE',
+ "\xf0\x9f\x90\xbc" => 'PANDA FACE',
+ "\xf0\x9f\x90\xbd" => 'PIG NOSE',
+ "\xf0\x9f\x98\xa0" => 'ANGRY FACE',
+ "\xf0\x9f\x98\xa9" => 'WEARY FACE',
+ "\xf0\x9f\x98\xb2" => 'ASTONISHED FACE',
+ "\xf0\x9f\x98\x9e" => 'DISAPPOINTED FACE',
+ "\xf0\x9f\x98\xb5" => 'DIZZY FACE',
+ "\xf0\x9f\x98\xb0" => 'FACE WITH OPEN MOUTH AND COLD SWEAT',
+ "\xf0\x9f\x98\x92" => 'UNAMUSED FACE',
+ "\xf0\x9f\x98\x8d" => 'SMILING FACE WITH HEART-SHAPED EYES',
+ "\xf0\x9f\x98\xa4" => 'FACE WITH LOOK OF TRIUMPH',
+ "\xf0\x9f\x98\x9c" => 'FACE WITH STUCK-OUT TONGUE AND WINKING EYE',
+ "\xf0\x9f\x98\x9d" => 'FACE WITH STUCK-OUT TONGUE AND TIGHTLY-CLOSED EYES',
+ "\xf0\x9f\x98\x8b" => 'FACE SAVOURING DELICIOUS FOOD',
+ "\xf0\x9f\x98\x98" => 'FACE THROWING A KISS',
+ "\xf0\x9f\x98\x9a" => 'KISSING FACE WITH CLOSED EYES',
+ "\xf0\x9f\x98\xb7" => 'FACE WITH MEDICAL MASK',
+ "\xf0\x9f\x98\xb3" => 'FLUSHED FACE',
+ "\xf0\x9f\x98\x83" => 'SMILING FACE WITH OPEN MOUTH',
+ "\xf0\x9f\x98\x85" => 'SMILING FACE WITH OPEN MOUTH AND COLD SWEAT',
+ "\xf0\x9f\x98\x86" => 'SMILING FACE WITH OPEN MOUTH AND TIGHTLY-CLOSED EYES',
+ "\xf0\x9f\x98\x81" => 'GRINNING FACE WITH SMILING EYES',
+ "\xf0\x9f\x98\x82" => 'FACE WITH TEARS OF JOY',
+ "\xf0\x9f\x98\x8a" => 'SMILING FACE WITH SMILING EYES',
+ "\xe2\x98\xba" => 'WHITE SMILING FACE',
+ "\xf0\x9f\x98\x84" => 'SMILING FACE WITH OPEN MOUTH AND SMILING EYES',
+ "\xf0\x9f\x98\xa2" => 'CRYING FACE',
+ "\xf0\x9f\x98\xad" => 'LOUDLY CRYING FACE',
+ "\xf0\x9f\x98\xa8" => 'FEARFUL FACE',
+ "\xf0\x9f\x98\xa3" => 'PERSEVERING FACE',
+ "\xf0\x9f\x98\xa1" => 'POUTING FACE',
+ "\xf0\x9f\x98\x8c" => 'RELIEVED FACE',
+ "\xf0\x9f\x98\x96" => 'CONFOUNDED FACE',
+ "\xf0\x9f\x98\x94" => 'PENSIVE FACE',
+ "\xf0\x9f\x98\xb1" => 'FACE SCREAMING IN FEAR',
+ "\xf0\x9f\x98\xaa" => 'SLEEPY FACE',
+ "\xf0\x9f\x98\x8f" => 'SMIRKING FACE',
+ "\xf0\x9f\x98\x93" => 'FACE WITH COLD SWEAT',
+ "\xf0\x9f\x98\xa5" => 'DISAPPOINTED BUT RELIEVED FACE',
+ "\xf0\x9f\x98\xab" => 'TIRED FACE',
+ "\xf0\x9f\x98\x89" => 'WINKING FACE',
+ "\xf0\x9f\x98\xba" => 'SMILING CAT FACE WITH OPEN MOUTH',
+ "\xf0\x9f\x98\xb8" => 'GRINNING CAT FACE WITH SMILING EYES',
+ "\xf0\x9f\x98\xb9" => 'CAT FACE WITH TEARS OF JOY',
+ "\xf0\x9f\x98\xbd" => 'KISSING CAT FACE WITH CLOSED EYES',
+ "\xf0\x9f\x98\xbb" => 'SMILING CAT FACE WITH HEART-SHAPED EYES',
+ "\xf0\x9f\x98\xbf" => 'CRYING CAT FACE',
+ "\xf0\x9f\x98\xbe" => 'POUTING CAT FACE',
+ "\xf0\x9f\x98\xbc" => 'CAT FACE WITH WRY SMILE',
+ "\xf0\x9f\x99\x80" => 'WEARY CAT FACE',
+ "\xf0\x9f\x99\x85" => 'FACE WITH NO GOOD GESTURE',
+ "\xf0\x9f\x99\x86" => 'FACE WITH OK GESTURE',
+ "\xf0\x9f\x99\x87" => 'PERSON BOWING DEEPLY',
+ "\xf0\x9f\x99\x88" => 'SEE-NO-EVIL MONKEY',
+ "\xf0\x9f\x99\x8a" => 'SPEAK-NO-EVIL MONKEY',
+ "\xf0\x9f\x99\x89" => 'HEAR-NO-EVIL MONKEY',
+ "\xf0\x9f\x99\x8b" => 'HAPPY PERSON RAISING ONE HAND',
+ "\xf0\x9f\x99\x8c" => 'PERSON RAISING BOTH HANDS IN CELEBRATION',
+ "\xf0\x9f\x99\x8d" => 'PERSON FROWNING',
+ "\xf0\x9f\x99\x8e" => 'PERSON WITH POUTING FACE',
+ "\xf0\x9f\x99\x8f" => 'PERSON WITH FOLDED HANDS',
+ "\xf0\x9f\x8f\xa0" => 'HOUSE BUILDING',
+ "\xf0\x9f\x8f\xa1" => 'HOUSE WITH GARDEN',
+ "\xf0\x9f\x8f\xa2" => 'OFFICE BUILDING',
+ "\xf0\x9f\x8f\xa3" => 'JAPANESE POST OFFICE',
+ "\xf0\x9f\x8f\xa5" => 'HOSPITAL',
+ "\xf0\x9f\x8f\xa6" => 'BANK',
+ "\xf0\x9f\x8f\xa7" => 'AUTOMATED TELLER MACHINE',
+ "\xf0\x9f\x8f\xa8" => 'HOTEL',
+ "\xf0\x9f\x8f\xa9" => 'LOVE HOTEL',
+ "\xf0\x9f\x8f\xaa" => 'CONVENIENCE STORE',
+ "\xf0\x9f\x8f\xab" => 'SCHOOL',
+ "\xe2\x9b\xaa" => 'CHURCH',
+ "\xe2\x9b\xb2" => 'FOUNTAIN',
+ "\xf0\x9f\x8f\xac" => 'DEPARTMENT STORE',
+ "\xf0\x9f\x8f\xaf" => 'JAPANESE CASTLE',
+ "\xf0\x9f\x8f\xb0" => 'EUROPEAN CASTLE',
+ "\xf0\x9f\x8f\xad" => 'FACTORY',
+ "\xe2\x9a\x93" => 'ANCHOR',
+ "\xf0\x9f\x8f\xae" => 'IZAKAYA LANTERN',
+ "\xf0\x9f\x97\xbb" => 'MOUNT FUJI',
+ "\xf0\x9f\x97\xbc" => 'TOKYO TOWER',
+ "\xf0\x9f\x97\xbd" => 'STATUE OF LIBERTY',
+ "\xf0\x9f\x97\xbe" => 'SILHOUETTE OF JAPAN',
+ "\xf0\x9f\x97\xbf" => 'MOYAI',
+ "\xf0\x9f\x91\x9e" => 'MANS SHOE',
+ "\xf0\x9f\x91\x9f" => 'ATHLETIC SHOE',
+ "\xf0\x9f\x91\xa0" => 'HIGH-HEELED SHOE',
+ "\xf0\x9f\x91\xa1" => 'WOMANS SANDAL',
+ "\xf0\x9f\x91\xa2" => 'WOMANS BOOTS',
+ "\xf0\x9f\x91\xa3" => 'FOOTPRINTS',
+ "\xf0\x9f\x91\x93" => 'EYEGLASSES',
+ "\xf0\x9f\x91\x95" => 'T-SHIRT',
+ "\xf0\x9f\x91\x96" => 'JEANS',
+ "\xf0\x9f\x91\x91" => 'CROWN',
+ "\xf0\x9f\x91\x94" => 'NECKTIE',
+ "\xf0\x9f\x91\x92" => 'WOMANS HAT',
+ "\xf0\x9f\x91\x97" => 'DRESS',
+ "\xf0\x9f\x91\x98" => 'KIMONO',
+ "\xf0\x9f\x91\x99" => 'BIKINI',
+ "\xf0\x9f\x91\x9a" => 'WOMANS CLOTHES',
+ "\xf0\x9f\x91\x9b" => 'PURSE',
+ "\xf0\x9f\x91\x9c" => 'HANDBAG',
+ "\xf0\x9f\x91\x9d" => 'POUCH',
+ "\xf0\x9f\x92\xb0" => 'MONEY BAG',
+ "\xf0\x9f\x92\xb1" => 'CURRENCY EXCHANGE',
+ "\xf0\x9f\x92\xb9" => 'CHART WITH UPWARDS TREND AND YEN SIGN',
+ "\xf0\x9f\x92\xb2" => 'HEAVY DOLLAR SIGN',
+ "\xf0\x9f\x92\xb3" => 'CREDIT CARD',
+ "\xf0\x9f\x92\xb4" => 'BANKNOTE WITH YEN SIGN',
+ "\xf0\x9f\x92\xb5" => 'BANKNOTE WITH DOLLAR SIGN',
+ "\xf0\x9f\x92\xb8" => 'MONEY WITH WINGS',
+ "\xf0\x9f\x87\xa8\xf0\x9f\x87\xb3" => 'REGIONAL INDICATOR SYMBOL LETTERS CN',
+ "\xf0\x9f\x87\xa9\xf0\x9f\x87\xaa" => 'REGIONAL INDICATOR SYMBOL LETTERS DE',
+ "\xf0\x9f\x87\xaa\xf0\x9f\x87\xb8" => 'REGIONAL INDICATOR SYMBOL LETTERS ES',
+ "\xf0\x9f\x87\xab\xf0\x9f\x87\xb7" => 'REGIONAL INDICATOR SYMBOL LETTERS FR',
+ "\xf0\x9f\x87\xac\xf0\x9f\x87\xa7" => 'REGIONAL INDICATOR SYMBOL LETTERS GB',
+ "\xf0\x9f\x87\xae\xf0\x9f\x87\xb9" => 'REGIONAL INDICATOR SYMBOL LETTERS IT',
+ "\xf0\x9f\x87\xaf\xf0\x9f\x87\xb5" => 'REGIONAL INDICATOR SYMBOL LETTERS JP',
+ "\xf0\x9f\x87\xb0\xf0\x9f\x87\xb7" => 'REGIONAL INDICATOR SYMBOL LETTERS KR',
+ "\xf0\x9f\x87\xb7\xf0\x9f\x87\xba" => 'REGIONAL INDICATOR SYMBOL LETTERS RU',
+ "\xf0\x9f\x87\xba\xf0\x9f\x87\xb8" => 'REGIONAL INDICATOR SYMBOL LETTERS US',
+ "\xf0\x9f\x94\xa5" => 'FIRE',
+ "\xf0\x9f\x94\xa6" => 'ELECTRIC TORCH',
+ "\xf0\x9f\x94\xa7" => 'WRENCH',
+ "\xf0\x9f\x94\xa8" => 'HAMMER',
+ "\xf0\x9f\x94\xa9" => 'NUT AND BOLT',
+ "\xf0\x9f\x94\xaa" => 'HOCHO',
+ "\xf0\x9f\x94\xab" => 'PISTOL',
+ "\xf0\x9f\x94\xae" => 'CRYSTAL BALL',
+ "\xf0\x9f\x94\xaf" => 'SIX POINTED STAR WITH MIDDLE DOT',
+ "\xf0\x9f\x94\xb0" => 'JAPANESE SYMBOL FOR BEGINNER',
+ "\xf0\x9f\x94\xb1" => 'TRIDENT EMBLEM',
+ "\xf0\x9f\x92\x89" => 'SYRINGE',
+ "\xf0\x9f\x92\x8a" => 'PILL',
+ "\xf0\x9f\x85\xb0" => 'NEGATIVE SQUARED LATIN CAPITAL LETTER A',
+ "\xf0\x9f\x85\xb1" => 'NEGATIVE SQUARED LATIN CAPITAL LETTER B',
+ "\xf0\x9f\x86\x8e" => 'NEGATIVE SQUARED AB',
+ "\xf0\x9f\x85\xbe" => 'NEGATIVE SQUARED LATIN CAPITAL LETTER O',
+ "\xf0\x9f\x8e\x80" => 'RIBBON',
+ "\xf0\x9f\x8e\x81" => 'WRAPPED PRESENT',
+ "\xf0\x9f\x8e\x82" => 'BIRTHDAY CAKE',
+ "\xf0\x9f\x8e\x84" => 'CHRISTMAS TREE',
+ "\xf0\x9f\x8e\x85" => 'FATHER CHRISTMAS',
+ "\xf0\x9f\x8e\x8c" => 'CROSSED FLAGS',
+ "\xf0\x9f\x8e\x86" => 'FIREWORKS',
+ "\xf0\x9f\x8e\x88" => 'BALLOON',
+ "\xf0\x9f\x8e\x89" => 'PARTY POPPER',
+ "\xf0\x9f\x8e\x8d" => 'PINE DECORATION',
+ "\xf0\x9f\x8e\x8e" => 'JAPANESE DOLLS',
+ "\xf0\x9f\x8e\x93" => 'GRADUATION CAP',
+ "\xf0\x9f\x8e\x92" => 'SCHOOL SATCHEL',
+ "\xf0\x9f\x8e\x8f" => 'CARP STREAMER',
+ "\xf0\x9f\x8e\x87" => 'FIREWORK SPARKLER',
+ "\xf0\x9f\x8e\x90" => 'WIND CHIME',
+ "\xf0\x9f\x8e\x83" => 'JACK-O-LANTERN',
+ "\xf0\x9f\x8e\x8a" => 'CONFETTI BALL',
+ "\xf0\x9f\x8e\x8b" => 'TANABATA TREE',
+ "\xf0\x9f\x8e\x91" => 'MOON VIEWING CEREMONY',
+ "\xf0\x9f\x93\x9f" => 'PAGER',
+ "\xe2\x98\x8e" => 'BLACK TELEPHONE',
+ "\xf0\x9f\x93\x9e" => 'TELEPHONE RECEIVER',
+ "\xf0\x9f\x93\xb1" => 'MOBILE PHONE',
+ "\xf0\x9f\x93\xb2" => 'MOBILE PHONE WITH RIGHTWARDS ARROW AT LEFT',
+ "\xf0\x9f\x93\x9d" => 'MEMO',
+ "\xf0\x9f\x93\xa0" => 'FAX MACHINE',
+ "\xe2\x9c\x89" => 'ENVELOPE',
+ "\xf0\x9f\x93\xa8" => 'INCOMING ENVELOPE',
+ "\xf0\x9f\x93\xa9" => 'ENVELOPE WITH DOWNWARDS ARROW ABOVE',
+ "\xf0\x9f\x93\xaa" => 'CLOSED MAILBOX WITH LOWERED FLAG',
+ "\xf0\x9f\x93\xab" => 'CLOSED MAILBOX WITH RAISED FLAG',
+ "\xf0\x9f\x93\xae" => 'POSTBOX',
+ "\xf0\x9f\x93\xb0" => 'NEWSPAPER',
+ "\xf0\x9f\x93\xa2" => 'PUBLIC ADDRESS LOUDSPEAKER',
+ "\xf0\x9f\x93\xa3" => 'CHEERING MEGAPHONE',
+ "\xf0\x9f\x93\xa1" => 'SATELLITE ANTENNA',
+ "\xf0\x9f\x93\xa4" => 'OUTBOX TRAY',
+ "\xf0\x9f\x93\xa5" => 'INBOX TRAY',
+ "\xf0\x9f\x93\xa6" => 'PACKAGE',
+ "\xf0\x9f\x93\xa7" => 'E-MAIL SYMBOL',
+ "\xf0\x9f\x94\xa0" => 'INPUT SYMBOL FOR LATIN CAPITAL LETTERS',
+ "\xf0\x9f\x94\xa1" => 'INPUT SYMBOL FOR LATIN SMALL LETTERS',
+ "\xf0\x9f\x94\xa2" => 'INPUT SYMBOL FOR NUMBERS',
+ "\xf0\x9f\x94\xa3" => 'INPUT SYMBOL FOR SYMBOLS',
+ "\xf0\x9f\x94\xa4" => 'INPUT SYMBOL FOR LATIN LETTERS',
+ "\xe2\x9c\x92" => 'BLACK NIB',
+ "\xf0\x9f\x92\xba" => 'SEAT',
+ "\xf0\x9f\x92\xbb" => 'PERSONAL COMPUTER',
+ "\xe2\x9c\x8f" => 'PENCIL',
+ "\xf0\x9f\x93\x8e" => 'PAPERCLIP',
+ "\xf0\x9f\x92\xbc" => 'BRIEFCASE',
+ "\xf0\x9f\x92\xbd" => 'MINIDISC',
+ "\xf0\x9f\x92\xbe" => 'FLOPPY DISK',
+ "\xf0\x9f\x92\xbf" => 'OPTICAL DISC',
+ "\xf0\x9f\x93\x80" => 'DVD',
+ "\xe2\x9c\x82" => 'BLACK SCISSORS',
+ "\xf0\x9f\x93\x8d" => 'ROUND PUSHPIN',
+ "\xf0\x9f\x93\x83" => 'PAGE WITH CURL',
+ "\xf0\x9f\x93\x84" => 'PAGE FACING UP',
+ "\xf0\x9f\x93\x85" => 'CALENDAR',
+ "\xf0\x9f\x93\x81" => 'FILE FOLDER',
+ "\xf0\x9f\x93\x82" => 'OPEN FILE FOLDER',
+ "\xf0\x9f\x93\x93" => 'NOTEBOOK',
+ "\xf0\x9f\x93\x96" => 'OPEN BOOK',
+ "\xf0\x9f\x93\x94" => 'NOTEBOOK WITH DECORATIVE COVER',
+ "\xf0\x9f\x93\x95" => 'CLOSED BOOK',
+ "\xf0\x9f\x93\x97" => 'GREEN BOOK',
+ "\xf0\x9f\x93\x98" => 'BLUE BOOK',
+ "\xf0\x9f\x93\x99" => 'ORANGE BOOK',
+ "\xf0\x9f\x93\x9a" => 'BOOKS',
+ "\xf0\x9f\x93\x9b" => 'NAME BADGE',
+ "\xf0\x9f\x93\x9c" => 'SCROLL',
+ "\xf0\x9f\x93\x8b" => 'CLIPBOARD',
+ "\xf0\x9f\x93\x86" => 'TEAR-OFF CALENDAR',
+ "\xf0\x9f\x93\x8a" => 'BAR CHART',
+ "\xf0\x9f\x93\x88" => 'CHART WITH UPWARDS TREND',
+ "\xf0\x9f\x93\x89" => 'CHART WITH DOWNWARDS TREND',
+ "\xf0\x9f\x93\x87" => 'CARD INDEX',
+ "\xf0\x9f\x93\x8c" => 'PUSHPIN',
+ "\xf0\x9f\x93\x92" => 'LEDGER',
+ "\xf0\x9f\x93\x8f" => 'STRAIGHT RULER',
+ "\xf0\x9f\x93\x90" => 'TRIANGULAR RULER',
+ "\xf0\x9f\x93\x91" => 'BOOKMARK TABS',
+ "\xf0\x9f\x8e\xbd" => 'RUNNING SHIRT WITH SASH',
+ "\xe2\x9a\xbe" => 'BASEBALL',
+ "\xe2\x9b\xb3" => 'FLAG IN HOLE',
+ "\xf0\x9f\x8e\xbe" => 'TENNIS RACQUET AND BALL',
+ "\xe2\x9a\xbd" => 'SOCCER BALL',
+ "\xf0\x9f\x8e\xbf" => 'SKI AND SKI BOOT',
+ "\xf0\x9f\x8f\x80" => 'BASKETBALL AND HOOP',
+ "\xf0\x9f\x8f\x81" => 'CHEQUERED FLAG',
+ "\xf0\x9f\x8f\x82" => 'SNOWBOARDER',
+ "\xf0\x9f\x8f\x83" => 'RUNNER',
+ "\xf0\x9f\x8f\x84" => 'SURFER',
+ "\xf0\x9f\x8f\x86" => 'TROPHY',
+ "\xf0\x9f\x8f\x88" => 'AMERICAN FOOTBALL',
+ "\xf0\x9f\x8f\x8a" => 'SWIMMER',
+ "\xf0\x9f\x9a\x83" => 'RAILWAY CAR',
+ "\xf0\x9f\x9a\x87" => 'METRO',
+ "\xe2\x93\x82" => 'CIRCLED LATIN CAPITAL LETTER M',
+ "\xf0\x9f\x9a\x84" => 'HIGH-SPEED TRAIN',
+ "\xf0\x9f\x9a\x85" => 'HIGH-SPEED TRAIN WITH BULLET NOSE',
+ "\xf0\x9f\x9a\x97" => 'AUTOMOBILE',
+ "\xf0\x9f\x9a\x99" => 'RECREATIONAL VEHICLE',
+ "\xf0\x9f\x9a\x8c" => 'BUS',
+ "\xf0\x9f\x9a\x8f" => 'BUS STOP',
+ "\xf0\x9f\x9a\xa2" => 'SHIP',
+ "\xe2\x9c\x88" => 'AIRPLANE',
+ "\xe2\x9b\xb5" => 'SAILBOAT',
+ "\xf0\x9f\x9a\x89" => 'STATION',
+ "\xf0\x9f\x9a\x80" => 'ROCKET',
+ "\xf0\x9f\x9a\xa4" => 'SPEEDBOAT',
+ "\xf0\x9f\x9a\x95" => 'TAXI',
+ "\xf0\x9f\x9a\x9a" => 'DELIVERY TRUCK',
+ "\xf0\x9f\x9a\x92" => 'FIRE ENGINE',
+ "\xf0\x9f\x9a\x91" => 'AMBULANCE',
+ "\xf0\x9f\x9a\x93" => 'POLICE CAR',
+ "\xe2\x9b\xbd" => 'FUEL PUMP',
+ "\xf0\x9f\x85\xbf" => 'NEGATIVE SQUARED LATIN CAPITAL LETTER P',
+ "\xf0\x9f\x9a\xa5" => 'HORIZONTAL TRAFFIC LIGHT',
+ "\xf0\x9f\x9a\xa7" => 'CONSTRUCTION SIGN',
+ "\xf0\x9f\x9a\xa8" => 'POLICE CARS REVOLVING LIGHT',
+ "\xe2\x99\xa8" => 'HOT SPRINGS',
+ "\xe2\x9b\xba" => 'TENT',
+ "\xf0\x9f\x8e\xa0" => 'CAROUSEL HORSE',
+ "\xf0\x9f\x8e\xa1" => 'FERRIS WHEEL',
+ "\xf0\x9f\x8e\xa2" => 'ROLLER COASTER',
+ "\xf0\x9f\x8e\xa3" => 'FISHING POLE AND FISH',
+ "\xf0\x9f\x8e\xa4" => 'MICROPHONE',
+ "\xf0\x9f\x8e\xa5" => 'MOVIE CAMERA',
+ "\xf0\x9f\x8e\xa6" => 'CINEMA',
+ "\xf0\x9f\x8e\xa7" => 'HEADPHONE',
+ "\xf0\x9f\x8e\xa8" => 'ARTIST PALETTE',
+ "\xf0\x9f\x8e\xa9" => 'TOP HAT',
+ "\xf0\x9f\x8e\xaa" => 'CIRCUS TENT',
+ "\xf0\x9f\x8e\xab" => 'TICKET',
+ "\xf0\x9f\x8e\xac" => 'CLAPPER BOARD',
+ "\xf0\x9f\x8e\xad" => 'PERFORMING ARTS',
+ "\xf0\x9f\x8e\xae" => 'VIDEO GAME',
+ "\xf0\x9f\x80\x84" => 'MAHJONG TILE RED DRAGON',
+ "\xf0\x9f\x8e\xaf" => 'DIRECT HIT',
+ "\xf0\x9f\x8e\xb0" => 'SLOT MACHINE',
+ "\xf0\x9f\x8e\xb1" => 'BILLIARDS',
+ "\xf0\x9f\x8e\xb2" => 'GAME DIE',
+ "\xf0\x9f\x8e\xb3" => 'BOWLING',
+ "\xf0\x9f\x8e\xb4" => 'FLOWER PLAYING CARDS',
+ "\xf0\x9f\x83\x8f" => 'PLAYING CARD BLACK JOKER',
+ "\xf0\x9f\x8e\xb5" => 'MUSICAL NOTE',
+ "\xf0\x9f\x8e\xb6" => 'MULTIPLE MUSICAL NOTES',
+ "\xf0\x9f\x8e\xb7" => 'SAXOPHONE',
+ "\xf0\x9f\x8e\xb8" => 'GUITAR',
+ "\xf0\x9f\x8e\xb9" => 'MUSICAL KEYBOARD',
+ "\xf0\x9f\x8e\xba" => 'TRUMPET',
+ "\xf0\x9f\x8e\xbb" => 'VIOLIN',
+ "\xf0\x9f\x8e\xbc" => 'MUSICAL SCORE',
+ "\xe3\x80\xbd" => 'PART ALTERNATION MARK',
+ "\xf0\x9f\x93\xb7" => 'CAMERA',
+ "\xf0\x9f\x93\xb9" => 'VIDEO CAMERA',
+ "\xf0\x9f\x93\xba" => 'TELEVISION',
+ "\xf0\x9f\x93\xbb" => 'RADIO',
+ "\xf0\x9f\x93\xbc" => 'VIDEOCASSETTE',
+ "\xf0\x9f\x92\x8b" => 'KISS MARK',
+ "\xf0\x9f\x92\x8c" => 'LOVE LETTER',
+ "\xf0\x9f\x92\x8d" => 'RING',
+ "\xf0\x9f\x92\x8e" => 'GEM STONE',
+ "\xf0\x9f\x92\x8f" => 'KISS',
+ "\xf0\x9f\x92\x90" => 'BOUQUET',
+ "\xf0\x9f\x92\x91" => 'COUPLE WITH HEART',
+ "\xf0\x9f\x92\x92" => 'WEDDING',
+ "\xf0\x9f\x94\x9e" => 'NO ONE UNDER EIGHTEEN SYMBOL',
+ "\xc2\xa9" => 'COPYRIGHT SIGN',
+ "\xc2\xae" => 'REGISTERED SIGN',
+ "\xe2\x84\xa2" => 'TRADE MARK SIGN',
+ "\xe2\x84\xb9" => 'INFORMATION SOURCE',
+ "#\xe2\x83\xa3" => 'HASH KEY',
+ "1\xe2\x83\xa3" => 'KEYCAP 1',
+ "2\xe2\x83\xa3" => 'KEYCAP 2',
+ "3\xe2\x83\xa3" => 'KEYCAP 3',
+ "4\xe2\x83\xa3" => 'KEYCAP 4',
+ "5\xe2\x83\xa3" => 'KEYCAP 5',
+ "6\xe2\x83\xa3" => 'KEYCAP 6',
+ "7\xe2\x83\xa3" => 'KEYCAP 7',
+ "8\xe2\x83\xa3" => 'KEYCAP 8',
+ "9\xe2\x83\xa3" => 'KEYCAP 9',
+ "0\xe2\x83\xa3" => 'KEYCAP 0',
+ "\xf0\x9f\x94\x9f" => 'KEYCAP TEN',
+ "\xf0\x9f\x93\xb6" => 'ANTENNA WITH BARS',
+ "\xf0\x9f\x93\xb3" => 'VIBRATION MODE',
+ "\xf0\x9f\x93\xb4" => 'MOBILE PHONE OFF',
+ "\xf0\x9f\x8d\x94" => 'HAMBURGER',
+ "\xf0\x9f\x8d\x99" => 'RICE BALL',
+ "\xf0\x9f\x8d\xb0" => 'SHORTCAKE',
+ "\xf0\x9f\x8d\x9c" => 'STEAMING BOWL',
+ "\xf0\x9f\x8d\x9e" => 'BREAD',
+ "\xf0\x9f\x8d\xb3" => 'COOKING',
+ "\xf0\x9f\x8d\xa6" => 'SOFT ICE CREAM',
+ "\xf0\x9f\x8d\x9f" => 'FRENCH FRIES',
+ "\xf0\x9f\x8d\xa1" => 'DANGO',
+ "\xf0\x9f\x8d\x98" => 'RICE CRACKER',
+ "\xf0\x9f\x8d\x9a" => 'COOKED RICE',
+ "\xf0\x9f\x8d\x9d" => 'SPAGHETTI',
+ "\xf0\x9f\x8d\x9b" => 'CURRY AND RICE',
+ "\xf0\x9f\x8d\xa2" => 'ODEN',
+ "\xf0\x9f\x8d\xa3" => 'SUSHI',
+ "\xf0\x9f\x8d\xb1" => 'BENTO BOX',
+ "\xf0\x9f\x8d\xb2" => 'POT OF FOOD',
+ "\xf0\x9f\x8d\xa7" => 'SHAVED ICE',
+ "\xf0\x9f\x8d\x96" => 'MEAT ON BONE',
+ "\xf0\x9f\x8d\xa5" => 'FISH CAKE WITH SWIRL DESIGN',
+ "\xf0\x9f\x8d\xa0" => 'ROASTED SWEET POTATO',
+ "\xf0\x9f\x8d\x95" => 'SLICE OF PIZZA',
+ "\xf0\x9f\x8d\x97" => 'POULTRY LEG',
+ "\xf0\x9f\x8d\xa8" => 'ICE CREAM',
+ "\xf0\x9f\x8d\xa9" => 'DOUGHNUT',
+ "\xf0\x9f\x8d\xaa" => 'COOKIE',
+ "\xf0\x9f\x8d\xab" => 'CHOCOLATE BAR',
+ "\xf0\x9f\x8d\xac" => 'CANDY',
+ "\xf0\x9f\x8d\xad" => 'LOLLIPOP',
+ "\xf0\x9f\x8d\xae" => 'CUSTARD',
+ "\xf0\x9f\x8d\xaf" => 'HONEY POT',
+ "\xf0\x9f\x8d\xa4" => 'FRIED SHRIMP',
+ "\xf0\x9f\x8d\xb4" => 'FORK AND KNIFE',
+ "\xe2\x98\x95" => 'HOT BEVERAGE',
+ "\xf0\x9f\x8d\xb8" => 'COCKTAIL GLASS',
+ "\xf0\x9f\x8d\xba" => 'BEER MUG',
+ "\xf0\x9f\x8d\xb5" => 'TEACUP WITHOUT HANDLE',
+ "\xf0\x9f\x8d\xb6" => 'SAKE BOTTLE AND CUP',
+ "\xf0\x9f\x8d\xb7" => 'WINE GLASS',
+ "\xf0\x9f\x8d\xbb" => 'CLINKING BEER MUGS',
+ "\xf0\x9f\x8d\xb9" => 'TROPICAL DRINK',
+ "\xe2\x86\x97" => 'NORTH EAST ARROW',
+ "\xe2\x86\x98" => 'SOUTH EAST ARROW',
+ "\xe2\x86\x96" => 'NORTH WEST ARROW',
+ "\xe2\x86\x99" => 'SOUTH WEST ARROW',
+ "\xe2\xa4\xb4" => 'ARROW POINTING RIGHTWARDS THEN CURVING UPWARDS',
+ "\xe2\xa4\xb5" => 'ARROW POINTING RIGHTWARDS THEN CURVING DOWNWARDS',
+ "\xe2\x86\x94" => 'LEFT RIGHT ARROW',
+ "\xe2\x86\x95" => 'UP DOWN ARROW',
+ "\xe2\xac\x86" => 'UPWARDS BLACK ARROW',
+ "\xe2\xac\x87" => 'DOWNWARDS BLACK ARROW',
+ "\xe2\x9e\xa1" => 'BLACK RIGHTWARDS ARROW',
+ "\xe2\xac\x85" => 'LEFTWARDS BLACK ARROW',
+ "\xe2\x96\xb6" => 'BLACK RIGHT-POINTING TRIANGLE',
+ "\xe2\x97\x80" => 'BLACK LEFT-POINTING TRIANGLE',
+ "\xe2\x8f\xa9" => 'BLACK RIGHT-POINTING DOUBLE TRIANGLE',
+ "\xe2\x8f\xaa" => 'BLACK LEFT-POINTING DOUBLE TRIANGLE',
+ "\xe2\x8f\xab" => 'BLACK UP-POINTING DOUBLE TRIANGLE',
+ "\xe2\x8f\xac" => 'BLACK DOWN-POINTING DOUBLE TRIANGLE',
+ "\xf0\x9f\x94\xba" => 'UP-POINTING RED TRIANGLE',
+ "\xf0\x9f\x94\xbb" => 'DOWN-POINTING RED TRIANGLE',
+ "\xf0\x9f\x94\xbc" => 'UP-POINTING SMALL RED TRIANGLE',
+ "\xf0\x9f\x94\xbd" => 'DOWN-POINTING SMALL RED TRIANGLE',
+ "\xe2\xad\x95" => 'HEAVY LARGE CIRCLE',
+ "\xe2\x9d\x8c" => 'CROSS MARK',
+ "\xe2\x9d\x8e" => 'NEGATIVE SQUARED CROSS MARK',
+ "\xe2\x9d\x97" => 'HEAVY EXCLAMATION MARK SYMBOL',
+ "\xe2\x81\x89" => 'EXCLAMATION QUESTION MARK',
+ "\xe2\x80\xbc" => 'DOUBLE EXCLAMATION MARK',
+ "\xe2\x9d\x93" => 'BLACK QUESTION MARK ORNAMENT',
+ "\xe2\x9d\x94" => 'WHITE QUESTION MARK ORNAMENT',
+ "\xe2\x9d\x95" => 'WHITE EXCLAMATION MARK ORNAMENT',
+ "\xe3\x80\xb0" => 'WAVY DASH',
+ "\xe2\x9e\xb0" => 'CURLY LOOP',
+ "\xe2\x9e\xbf" => 'DOUBLE CURLY LOOP',
+ "\xe2\x9d\xa4" => 'HEAVY BLACK HEART',
+ "\xf0\x9f\x92\x93" => 'BEATING HEART',
+ "\xf0\x9f\x92\x94" => 'BROKEN HEART',
+ "\xf0\x9f\x92\x95" => 'TWO HEARTS',
+ "\xf0\x9f\x92\x96" => 'SPARKLING HEART',
+ "\xf0\x9f\x92\x97" => 'GROWING HEART',
+ "\xf0\x9f\x92\x98" => 'HEART WITH ARROW',
+ "\xf0\x9f\x92\x99" => 'BLUE HEART',
+ "\xf0\x9f\x92\x9a" => 'GREEN HEART',
+ "\xf0\x9f\x92\x9b" => 'YELLOW HEART',
+ "\xf0\x9f\x92\x9c" => 'PURPLE HEART',
+ "\xf0\x9f\x92\x9d" => 'HEART WITH RIBBON',
+ "\xf0\x9f\x92\x9e" => 'REVOLVING HEARTS',
+ "\xf0\x9f\x92\x9f" => 'HEART DECORATION',
+ "\xe2\x99\xa5" => 'BLACK HEART SUIT',
+ "\xe2\x99\xa0" => 'BLACK SPADE SUIT',
+ "\xe2\x99\xa6" => 'BLACK DIAMOND SUIT',
+ "\xe2\x99\xa3" => 'BLACK CLUB SUIT',
+ "\xf0\x9f\x9a\xac" => 'SMOKING SYMBOL',
+ "\xf0\x9f\x9a\xad" => 'NO SMOKING SYMBOL',
+ "\xe2\x99\xbf" => 'WHEELCHAIR SYMBOL',
+ "\xf0\x9f\x9a\xa9" => 'TRIANGULAR FLAG ON POST',
+ "\xe2\x9a\xa0" => 'WARNING SIGN',
+ "\xe2\x9b\x94" => 'NO ENTRY',
+ "\xe2\x99\xbb" => 'BLACK UNIVERSAL RECYCLING SYMBOL',
+ "\xf0\x9f\x9a\xb2" => 'BICYCLE',
+ "\xf0\x9f\x9a\xb6" => 'PEDESTRIAN',
+ "\xf0\x9f\x9a\xb9" => 'MENS SYMBOL',
+ "\xf0\x9f\x9a\xba" => 'WOMENS SYMBOL',
+ "\xf0\x9f\x9b\x80" => 'BATH',
+ "\xf0\x9f\x9a\xbb" => 'RESTROOM',
+ "\xf0\x9f\x9a\xbd" => 'TOILET',
+ "\xf0\x9f\x9a\xbe" => 'WATER CLOSET',
+ "\xf0\x9f\x9a\xbc" => 'BABY SYMBOL',
+ "\xf0\x9f\x9a\xaa" => 'DOOR',
+ "\xf0\x9f\x9a\xab" => 'NO ENTRY SIGN',
+ "\xe2\x9c\x94" => 'HEAVY CHECK MARK',
+ "\xf0\x9f\x86\x91" => 'SQUARED CL',
+ "\xf0\x9f\x86\x92" => 'SQUARED COOL',
+ "\xf0\x9f\x86\x93" => 'SQUARED FREE',
+ "\xf0\x9f\x86\x94" => 'SQUARED ID',
+ "\xf0\x9f\x86\x95" => 'SQUARED NEW',
+ "\xf0\x9f\x86\x96" => 'SQUARED NG',
+ "\xf0\x9f\x86\x97" => 'SQUARED OK',
+ "\xf0\x9f\x86\x98" => 'SQUARED SOS',
+ "\xf0\x9f\x86\x99" => 'SQUARED UP WITH EXCLAMATION MARK',
+ "\xf0\x9f\x86\x9a" => 'SQUARED VS',
+ "\xf0\x9f\x88\x81" => 'SQUARED KATAKANA KOKO',
+ "\xf0\x9f\x88\x82" => 'SQUARED KATAKANA SA',
+ "\xf0\x9f\x88\xb2" => 'SQUARED CJK UNIFIED IDEOGRAPH-7981',
+ "\xf0\x9f\x88\xb3" => 'SQUARED CJK UNIFIED IDEOGRAPH-7A7A',
+ "\xf0\x9f\x88\xb4" => 'SQUARED CJK UNIFIED IDEOGRAPH-5408',
+ "\xf0\x9f\x88\xb5" => 'SQUARED CJK UNIFIED IDEOGRAPH-6E80',
+ "\xf0\x9f\x88\xb6" => 'SQUARED CJK UNIFIED IDEOGRAPH-6709',
+ "\xf0\x9f\x88\x9a" => 'SQUARED CJK UNIFIED IDEOGRAPH-7121',
+ "\xf0\x9f\x88\xb7" => 'SQUARED CJK UNIFIED IDEOGRAPH-6708',
+ "\xf0\x9f\x88\xb8" => 'SQUARED CJK UNIFIED IDEOGRAPH-7533',
+ "\xf0\x9f\x88\xb9" => 'SQUARED CJK UNIFIED IDEOGRAPH-5272',
+ "\xf0\x9f\x88\xaf" => 'SQUARED CJK UNIFIED IDEOGRAPH-6307',
+ "\xf0\x9f\x88\xba" => 'SQUARED CJK UNIFIED IDEOGRAPH-55B6',
+ "\xe3\x8a\x99" => 'CIRCLED IDEOGRAPH SECRET',
+ "\xe3\x8a\x97" => 'CIRCLED IDEOGRAPH CONGRATULATION',
+ "\xf0\x9f\x89\x90" => 'CIRCLED IDEOGRAPH ADVANTAGE',
+ "\xf0\x9f\x89\x91" => 'CIRCLED IDEOGRAPH ACCEPT',
+ "\xe2\x9e\x95" => 'HEAVY PLUS SIGN',
+ "\xe2\x9e\x96" => 'HEAVY MINUS SIGN',
+ "\xe2\x9c\x96" => 'HEAVY MULTIPLICATION X',
+ "\xe2\x9e\x97" => 'HEAVY DIVISION SIGN',
+ "\xf0\x9f\x92\xa0" => 'DIAMOND SHAPE WITH A DOT INSIDE',
+ "\xf0\x9f\x92\xa1" => 'ELECTRIC LIGHT BULB',
+ "\xf0\x9f\x92\xa2" => 'ANGER SYMBOL',
+ "\xf0\x9f\x92\xa3" => 'BOMB',
+ "\xf0\x9f\x92\xa4" => 'SLEEPING SYMBOL',
+ "\xf0\x9f\x92\xa5" => 'COLLISION SYMBOL',
+ "\xf0\x9f\x92\xa6" => 'SPLASHING SWEAT SYMBOL',
+ "\xf0\x9f\x92\xa7" => 'DROPLET',
+ "\xf0\x9f\x92\xa8" => 'DASH SYMBOL',
+ "\xf0\x9f\x92\xa9" => 'PILE OF POO',
+ "\xf0\x9f\x92\xaa" => 'FLEXED BICEPS',
+ "\xf0\x9f\x92\xab" => 'DIZZY SYMBOL',
+ "\xf0\x9f\x92\xac" => 'SPEECH BALLOON',
+ "\xe2\x9c\xa8" => 'SPARKLES',
+ "\xe2\x9c\xb4" => 'EIGHT POINTED BLACK STAR',
+ "\xe2\x9c\xb3" => 'EIGHT SPOKED ASTERISK',
+ "\xe2\x9a\xaa" => 'MEDIUM WHITE CIRCLE',
+ "\xe2\x9a\xab" => 'MEDIUM BLACK CIRCLE',
+ "\xf0\x9f\x94\xb4" => 'LARGE RED CIRCLE',
+ "\xf0\x9f\x94\xb5" => 'LARGE BLUE CIRCLE',
+ "\xf0\x9f\x94\xb2" => 'BLACK SQUARE BUTTON',
+ "\xf0\x9f\x94\xb3" => 'WHITE SQUARE BUTTON',
+ "\xe2\xad\x90" => 'WHITE MEDIUM STAR',
+ "\xe2\xac\x9c" => 'WHITE LARGE SQUARE',
+ "\xe2\xac\x9b" => 'BLACK LARGE SQUARE',
+ "\xe2\x96\xab" => 'WHITE SMALL SQUARE',
+ "\xe2\x96\xaa" => 'BLACK SMALL SQUARE',
+ "\xe2\x97\xbd" => 'WHITE MEDIUM SMALL SQUARE',
+ "\xe2\x97\xbe" => 'BLACK MEDIUM SMALL SQUARE',
+ "\xe2\x97\xbb" => 'WHITE MEDIUM SQUARE',
+ "\xe2\x97\xbc" => 'BLACK MEDIUM SQUARE',
+ "\xf0\x9f\x94\xb6" => 'LARGE ORANGE DIAMOND',
+ "\xf0\x9f\x94\xb7" => 'LARGE BLUE DIAMOND',
+ "\xf0\x9f\x94\xb8" => 'SMALL ORANGE DIAMOND',
+ "\xf0\x9f\x94\xb9" => 'SMALL BLUE DIAMOND',
+ "\xe2\x9d\x87" => 'SPARKLE',
+ "\xf0\x9f\x92\xae" => 'WHITE FLOWER',
+ "\xf0\x9f\x92\xaf" => 'HUNDRED POINTS SYMBOL',
+ "\xe2\x86\xa9" => 'LEFTWARDS ARROW WITH HOOK',
+ "\xe2\x86\xaa" => 'RIGHTWARDS ARROW WITH HOOK',
+ "\xf0\x9f\x94\x83" => 'CLOCKWISE DOWNWARDS AND UPWARDS OPEN CIRCLE ARROWS',
+ "\xf0\x9f\x94\x8a" => 'SPEAKER WITH THREE SOUND WAVES',
+ "\xf0\x9f\x94\x8b" => 'BATTERY',
+ "\xf0\x9f\x94\x8c" => 'ELECTRIC PLUG',
+ "\xf0\x9f\x94\x8d" => 'LEFT-POINTING MAGNIFYING GLASS',
+ "\xf0\x9f\x94\x8e" => 'RIGHT-POINTING MAGNIFYING GLASS',
+ "\xf0\x9f\x94\x92" => 'LOCK',
+ "\xf0\x9f\x94\x93" => 'OPEN LOCK',
+ "\xf0\x9f\x94\x8f" => 'LOCK WITH INK PEN',
+ "\xf0\x9f\x94\x90" => 'CLOSED LOCK WITH KEY',
+ "\xf0\x9f\x94\x91" => 'KEY',
+ "\xf0\x9f\x94\x94" => 'BELL',
+ "\xe2\x98\x91" => 'BALLOT BOX WITH CHECK',
+ "\xf0\x9f\x94\x98" => 'RADIO BUTTON',
+ "\xf0\x9f\x94\x96" => 'BOOKMARK',
+ "\xf0\x9f\x94\x97" => 'LINK SYMBOL',
+ "\xf0\x9f\x94\x99" => 'BACK WITH LEFTWARDS ARROW ABOVE',
+ "\xf0\x9f\x94\x9a" => 'END WITH LEFTWARDS ARROW ABOVE',
+ "\xf0\x9f\x94\x9b" => 'ON WITH EXCLAMATION MARK WITH LEFT RIGHT ARROW ABOVE',
+ "\xf0\x9f\x94\x9c" => 'SOON WITH RIGHTWARDS ARROW ABOVE',
+ "\xf0\x9f\x94\x9d" => 'TOP WITH UPWARDS ARROW ABOVE',
+ "\xe2\x9c\x85" => 'WHITE HEAVY CHECK MARK',
+ "\xe2\x9c\x8a" => 'RAISED FIST',
+ "\xe2\x9c\x8b" => 'RAISED HAND',
+ "\xe2\x9c\x8c" => 'VICTORY HAND',
+ "\xf0\x9f\x91\x8a" => 'FISTED HAND SIGN',
+ "\xf0\x9f\x91\x8d" => 'THUMBS UP SIGN',
+ "\xe2\x98\x9d" => 'WHITE UP POINTING INDEX',
+ "\xf0\x9f\x91\x86" => 'WHITE UP POINTING BACKHAND INDEX',
+ "\xf0\x9f\x91\x87" => 'WHITE DOWN POINTING BACKHAND INDEX',
+ "\xf0\x9f\x91\x88" => 'WHITE LEFT POINTING BACKHAND INDEX',
+ "\xf0\x9f\x91\x89" => 'WHITE RIGHT POINTING BACKHAND INDEX',
+ "\xf0\x9f\x91\x8b" => 'WAVING HAND SIGN',
+ "\xf0\x9f\x91\x8f" => 'CLAPPING HANDS SIGN',
+ "\xf0\x9f\x91\x8c" => 'OK HAND SIGN',
+ "\xf0\x9f\x91\x8e" => 'THUMBS DOWN SIGN',
+ "\xf0\x9f\x91\x90" => 'OPEN HANDS SIGN',
+ ),
+ 'kaomoji' => array(
+ "0"=>"[\xe9\x9c\xa7]", "1"=>"[\xe5\xa4\x95\xe7\x84\xbc\xe3\x81\x91]", "2"=>"[\xe8\x99\xb9]", "3"=>"[\xe9\x9b\xaa\xe7\xb5\x90\xe6\x99\xb6]",
+ "4"=>"[\xe7\x81\xab\xe5\xb1\xb1]", "5"=>"[\xe5\x9c\xb0\xe7\x90\x83]", "6"=>"\xe2\x97\x8f", "7"=>"\xe2\x97\x8b", "8"=>"[\xe2\x98\x86]",
+ "9"=>"\xe2\x98\x86\xe5\xbd\xa1", "10"=>"[\xe8\x85\x95\xe6\x99\x82\xe8\xa8\x88]", "11"=>"[\xe7\xa0\x82\xe6\x99\x82\xe8\xa8\x88]", "12"=>"[\xe8\x9b\x87\xe4\xbd\xbf\xe5\xba\xa7]", "13"=>"[\xe3\x83\x90\xe3\x83\xa9]",
+ "14"=>"[\xe9\xa2\xa8\xe3\x81\xab\xe8\x88\x9e\xe3\x81\x86\xe8\x91\x89]", "15"=>"[\xe3\x83\x8f\xe3\x82\xa4\xe3\x83\x93\xe3\x82\xb9\xe3\x82\xab\xe3\x82\xb9]", "16"=>"[\xe3\x81\xb2\xe3\x81\xbe\xe3\x82\x8f\xe3\x82\x8a]", "17"=>"[\xe3\x83\xa4\xe3\x82\xb7]", "18"=>"[\xe3\x82\xb5\xe3\x83\x9c\xe3\x83\x86\xe3\x83\xb3]",
+ "19"=>"[\xe7\xa8\xb2\xe7\xa9\x82]", "20"=>"[\xe3\x81\xa8\xe3\x81\x86\xe3\x82\x82\xe3\x82\x8d\xe3\x81\x93\xe3\x81\x97]", "21"=>"[\xe3\x82\xad\xe3\x83\x8e\xe3\x82\xb3]", "22"=>"[\xe6\xa0\x97]", "23"=>"[\xe8\x8a\xb1]",
+ "24"=>"[\xe3\x81\x95\xe3\x81\x8f\xe3\x82\x89\xe3\x82\x93\xe3\x81\xbc]", "25"=>"[\xe3\x83\x90\xe3\x83\x8a\xe3\x83\x8a]", "26"=>"[\xe3\x81\xbf\xe3\x81\x8b\xe3\x82\x93]", "27"=>"[\xe3\x82\xa4\xe3\x83\x81\xe3\x82\xb4]", "28"=>"[\xe3\x82\xb9\xe3\x82\xa4\xe3\x82\xab]",
+ "29"=>"[\xe3\x83\x88\xe3\x83\x9e\xe3\x83\x88]", "30"=>"[\xe3\x83\x8a\xe3\x82\xb9]", "31"=>"[\xe3\x83\xa1\xe3\x83\xad\xe3\x83\xb3]", "32"=>"[\xe3\x83\x91\xe3\x82\xa4\xe3\x83\x8a\xe3\x83\x83\xe3\x83\x97\xe3\x83\xab]", "33"=>"[\xe3\x83\x96\xe3\x83\x89\xe3\x82\xa6]",
+ "34"=>"[\xe3\x83\xa2\xe3\x83\xa2]", "35"=>"[\xe9\xbc\xbb]", "36"=>"[\xe3\x83\x9e\xe3\x83\x8b\xe3\x82\xad\xe3\x83\xa5\xe3\x82\xa2]", "37"=>"[\xe3\x82\xa8\xe3\x82\xb9\xe3\x83\x86]", "38"=>"[\xe5\xba\x8a\xe5\xb1\x8b]",
+ "39"=>"\xe3\x80\x93", "40"=>"[\xe5\xae\xb6\xe6\x97\x8f]", "41"=>"[\xe3\x82\xab\xe3\x83\x83\xe3\x83\x97\xe3\x83\xab]", "42"=>"[\xe8\xad\xa6\xe5\xae\x98]", "43"=>"[\xe3\x83\x90\xe3\x83\x8b\xe3\x83\xbc]",
+ "44"=>"[\xe8\x8a\xb1\xe5\xab\x81]", "45"=>"[\xe7\x99\xbd\xe4\xba\xba]", "46"=>"[\xe4\xb8\xad\xe5\x9b\xbd\xe4\xba\xba]", "47"=>"[\xe3\x82\xa4\xe3\x83\xb3\xe3\x83\x89\xe4\xba\xba]", "48"=>"[\xe3\x81\x8a\xe3\x81\x98\xe3\x81\x84\xe3\x81\x95\xe3\x82\x93]",
+ "49"=>"[\xe3\x81\x8a\xe3\x81\xb0\xe3\x81\x82\xe3\x81\x95\xe3\x82\x93]", "50"=>"[\xe8\xb5\xa4\xe3\x81\xa1\xe3\x82\x83\xe3\x82\x93]", "51"=>"[\xe5\xb7\xa5\xe4\xba\x8b\xe7\x8f\xbe\xe5\xa0\xb4\xe3\x81\xae\xe4\xba\xba]", "52"=>"[\xe3\x81\x8a\xe5\xa7\xab\xe6\xa7\x98]", "53"=>"[\xe3\x81\xaa\xe3\x81\xbe\xe3\x81\xaf\xe3\x81\x92]",
+ "54"=>"[\xe5\xa4\xa9\xe7\x8b\x97]", "55"=>"[\xe3\x81\x8a\xe5\x8c\x96\xe3\x81\x91]", "56"=>"[\xe5\xa4\xa9\xe4\xbd\xbf]", "57"=>"[UFO]", "58"=>"[\xe5\xae\x87\xe5\xae\x99\xe4\xba\xba]",
+ "59"=>"[\xe3\x82\xa2\xe3\x82\xaf\xe3\x83\x9e]", "60"=>"[\xe3\x83\x89\xe3\x82\xaf\xe3\x83\xad]", "61"=>"[\xe6\xa1\x88\xe5\x86\x85]", "62"=>"[\xe8\xa1\x9b\xe5\x85\xb5]", "63"=>"[\xe3\x83\x80\xe3\x83\xb3\xe3\x82\xb9]",
+ "64"=>"[\xe3\x82\xab\xe3\x82\xbf\xe3\x83\x84\xe3\x83\xa0\xe3\x83\xaa]", "65"=>"[\xe3\x83\x98\xe3\x83\x93]", "66"=>"[\xe3\x83\x8b\xe3\x83\xaf\xe3\x83\x88\xe3\x83\xaa]", "67"=>"[\xe3\x82\xa4\xe3\x83\x8e\xe3\x82\xb7\xe3\x82\xb7]", "68"=>"[\xe3\x83\xa9\xe3\x82\xaf\xe3\x83\x80]",
+ "69"=>"[\xe3\x82\xbe\xe3\x82\xa6]", "70"=>"[\xe3\x82\xb3\xe3\x82\xa2\xe3\x83\xa9]", "71"=>"[\xe3\x82\xb5\xe3\x83\xab]", "72"=>"[\xe3\x83\x92\xe3\x83\x84\xe3\x82\xb8]", "73"=>"[\xe3\x82\xbf\xe3\x82\xb3]",
+ "74"=>"[\xe5\xb7\xbb\xe8\xb2\x9d]", "75"=>"[\xe3\x82\xb2\xe3\x82\xb8\xe3\x82\xb2\xe3\x82\xb8]", "76"=>"[\xe3\x82\xa2\xe3\x83\xaa]", "77"=>"[\xe3\x83\x9f\xe3\x83\x84\xe3\x83\x90\xe3\x83\x81]", "78"=>"[\xe3\x81\xa6\xe3\x82\x93\xe3\x81\xa8\xe3\x81\x86\xe8\x99\xab]",
+ "79"=>"[\xe3\x82\xab\xe3\x83\xa1]", "80"=>"[\xe3\x82\xa4\xe3\x83\xab\xe3\x82\xab]", "81"=>"[\xe3\x83\x8d\xe3\x82\xba\xe3\x83\x9f]", "82"=>"[\xe3\x83\x88\xe3\x83\xa9]", "83"=>"[\xe3\x82\xaf\xe3\x82\xb8\xe3\x83\xa9]",
+ "84"=>"[\xe3\x82\xaf\xe3\x83\x9e]", "85"=>"[\xe3\x83\x8f\xe3\x83\xa0\xe3\x82\xb9\xe3\x82\xbf\xe3\x83\xbc]", "86"=>"[\xe7\x89\x9b]", "87"=>"[\xe3\x82\xa6\xe3\x82\xb5\xe3\x82\xae]", "88"=>"[\xe3\x82\xab\xe3\x82\xa8\xe3\x83\xab]",
+ "89"=>"[\xe8\xbe\xb0]", "90"=>"[\xe3\x83\x91\xe3\x83\xb3\xe3\x83\x80]", "91"=>"[\xe9\xa2\xa8\xe9\x82\xaa\xe3\x81\xb2\xe3\x81\x8d]", "92"=>"m(_ _)m", "93"=>"(/_\xef\xbc\xbc)",
+ "94"=>"(\xe3\x83\xbb\xc3\x97\xe3\x83\xbb)", "95"=>"|(\xe3\x83\xbb\xc3\x97\xe3\x83\xbb)|", "96"=>"(^-^)/", "97"=>"\xef\xbc\xbc(^o^)\xef\xbc\x8f", "98"=>"(>\xe4\xba\xba<)",
+ "99"=>"[\xe6\x95\x99\xe4\xbc\x9a]", "100"=>"[\xe5\x99\xb4\xe6\xb0\xb4]", "101"=>"[\xe3\x83\x87\xe3\x83\x91\xe3\x83\xbc\xe3\x83\x88]", "102"=>"[\xe5\x9f\x8e]", "103"=>"[\xe5\xb7\xa5\xe5\xa0\xb4]",
+ "104"=>"[\xe6\x9d\xb1\xe4\xba\xac\xe3\x82\xbf\xe3\x83\xaf\xe3\x83\xbc]", "105"=>"[\xe8\x87\xaa\xe7\x94\xb1\xe3\x81\xae\xe5\xa5\xb3\xe7\xa5\x9e]", "106"=>"[\xe6\x97\xa5\xe6\x9c\xac\xe5\x9c\xb0\xe5\x9b\xb3]", "107"=>"[\xe3\x83\xa2\xe3\x82\xa2\xe3\x82\xa4]", "108"=>"[\xe3\x83\x96\xe3\x83\xbc\xe3\x83\x84]",
+ "109"=>"[\xe3\x83\xa1\xe3\x82\xac\xe3\x83\x8d]", "110"=>"[\xe3\x82\xb8\xe3\x83\xbc\xe3\x83\xb3\xe3\x82\xba]", "111"=>"[\xe3\x83\x8d\xe3\x82\xaf\xe3\x82\xbf\xe3\x82\xa4]", "112"=>"[\xe5\xb8\xbd\xe5\xad\x90]", "113"=>"[\xe3\x83\x89\xe3\x83\xac\xe3\x82\xb9]",
+ "114"=>"[\xe7\x9d\x80\xe7\x89\xa9]", "115"=>"[\xe3\x83\x93\xe3\x82\xad\xe3\x83\x8b]", "116"=>"[\xe8\xb2\xa1\xe5\xb8\x83]", "117"=>"[\xe3\x81\xb5\xe3\x81\x8f\xe3\x82\x8d]", "118"=>"[$\xef\xbf\xa5]",
+ "119"=>"[\xe6\xa0\xaa\xe4\xbe\xa1]", "120"=>"[\xe3\x82\xab\xe3\x83\xbc\xe3\x83\x89]", "121"=>"\xef\xbf\xa5", "122"=>"[\xe9\xa3\x9b\xe3\x82\x93\xe3\x81\xa7\xe3\x81\x84\xe3\x81\x8f\xe3\x81\x8a\xe9\x87\x91]", "123"=>"[\xe4\xb8\xad\xe5\x9b\xbd]",
+ "124"=>"[\xe3\x83\x89\xe3\x82\xa4\xe3\x83\x84]", "125"=>"[\xe3\x82\xb9\xe3\x83\x9a\xe3\x82\xa4\xe3\x83\xb3]", "126"=>"[\xe3\x83\x95\xe3\x83\xa9\xe3\x83\xb3\xe3\x82\xb9]", "127"=>"[\xe3\x82\xa4\xe3\x82\xae\xe3\x83\xaa\xe3\x82\xb9]", "128"=>"[\xe3\x82\xa4\xe3\x82\xbf\xe3\x83\xaa\xe3\x82\xa2]",
+ "129"=>"[\xe6\x97\xa5\xe3\x81\xae\xe4\xb8\xb8]", "130"=>"[\xe9\x9f\x93\xe5\x9b\xbd]", "131"=>"[\xe3\x83\xad\xe3\x82\xb7\xe3\x82\xa2]", "132"=>"[USA]", "133"=>"[\xe7\x82\x8e]",
+ "134"=>"[\xe6\x87\x90\xe4\xb8\xad\xe9\x9b\xbb\xe7\x81\xaf]", "135"=>"[\xe3\x83\xac\xe3\x83\xb3\xe3\x83\x81]", "136"=>"[\xe3\x83\x8f\xe3\x83\xb3\xe3\x83\x9e\xe3\x83\xbc]", "137"=>"[\xe3\x83\x8d\xe3\x82\xb8]", "138"=>"[\xe5\x8c\x85\xe4\xb8\x81]",
+ "139"=>"[\xe3\x83\x94\xe3\x82\xb9\xe3\x83\x88\xe3\x83\xab]", "140"=>"[\xe5\x8d\xa0\xe3\x81\x84]", "141"=>"[\xe8\x8b\xa5\xe8\x91\x89\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]", "142"=>"[\xe6\xb3\xa8\xe5\xb0\x84]", "143"=>"[\xe8\x96\xac]",
+ "144"=>"[A]", "145"=>"[B]", "146"=>"[AB]", "147"=>"[O]", "148"=>"[\xe3\x82\xb5\xe3\x83\xb3\xe3\x82\xbf]",
+ "149"=>"[\xe7\xa5\x9d\xe6\x97\xa5]", "150"=>"[\xe8\x8a\xb1\xe7\x81\xab]", "151"=>"[\xe9\xa2\xa8\xe8\x88\xb9]", "152"=>"[\xe3\x82\xaf\xe3\x83\xa9\xe3\x83\x83\xe3\x82\xab\xe3\x83\xbc]", "153"=>"[\xe9\x96\x80\xe6\x9d\xbe]",
+ "154"=>"[\xe3\x81\xb2\xe3\x81\xaa\xe7\xa5\xad\xe3\x82\x8a]", "155"=>"[\xe5\x8d\x92\xe6\xa5\xad\xe5\xbc\x8f]", "156"=>"[\xe3\x83\xa9\xe3\x83\xb3\xe3\x83\x89\xe3\x82\xbb\xe3\x83\xab]", "157"=>"[\xe3\x81\x93\xe3\x81\x84\xe3\x81\xae\xe3\x81\xbc\xe3\x82\x8a]", "158"=>"[\xe7\xb7\x9a\xe9\xa6\x99\xe8\x8a\xb1\xe7\x81\xab]",
+ "159"=>"[\xe9\xa2\xa8\xe9\x88\xb4]", "160"=>"[\xe3\x83\x8f\xe3\x83\xad\xe3\x82\xa6\xe3\x82\xa3\xe3\x83\xb3]", "161"=>"[\xe3\x82\xaa\xe3\x83\xa1\xe3\x83\x87\xe3\x83\x88\xe3\x82\xa6]", "162"=>"[\xe4\xb8\x83\xe5\xa4\x95]", "163"=>"[\xe3\x81\x8a\xe6\x9c\x88\xe8\xa6\x8b]",
+ "164"=>"[\xe3\x83\x9d\xe3\x82\xb1\xe3\x83\x99\xe3\x83\xab]", "165"=>"[\xe6\x96\xb0\xe8\x81\x9e]", "166"=>"[\xe3\x82\xb9\xe3\x83\x94\xe3\x83\xbc\xe3\x82\xab]", "167"=>"[\xe3\x83\xa1\xe3\x82\xac\xe3\x83\x9b\xe3\x83\xb3]", "168"=>"[\xe3\x82\xa2\xe3\x83\xb3\xe3\x83\x86\xe3\x83\x8a]",
+ "169"=>"[\xe9\x80\x81\xe4\xbf\xa1BOX]", "170"=>"[\xe5\x8f\x97\xe4\xbf\xa1BOX]", "171"=>"[ABCD]", "172"=>"[abcd]", "173"=>"[1234]",
+ "174"=>"[\xe8\xa8\x98\xe5\x8f\xb7]", "175"=>"[ABC]", "176"=>"[\xe3\x83\x9a\xe3\x83\xb3]", "177"=>"[\xe3\x81\x84\xe3\x81\x99]", "178"=>"[\xe3\x82\xaf\xe3\x83\xaa\xe3\x83\x83\xe3\x83\x97]",
+ "179"=>"[MD]", "180"=>"[\xe3\x83\x95\xe3\x83\xad\xe3\x83\x83\xe3\x83\x94\xe3\x83\xbc]", "181"=>"[\xe7\x94\xbb\xe3\x81\xb3\xe3\x82\x87\xe3\x81\x86]", "182"=>"[\xe3\x82\xab\xe3\x83\xac\xe3\x83\xb3\xe3\x83\x80\xe3\x83\xbc]", "183"=>"[\xe3\x83\x95\xe3\x82\xa9\xe3\x83\xab\xe3\x83\x80]",
+ "184"=>"[\xe5\x90\x8d\xe6\x9c\xad]", "185"=>"[\xe3\x82\xb9\xe3\x82\xaf\xe3\x83\xad\xe3\x83\xbc\xe3\x83\xab]", "186"=>"[\xe3\x82\xb0\xe3\x83\xa9\xe3\x83\x95]", "187"=>"[\xe5\xae\x9a\xe8\xa6\x8f]", "188"=>"[\xe4\xb8\x89\xe8\xa7\x92\xe5\xae\x9a\xe8\xa6\x8f]",
+ "189"=>"[\xe3\x82\xb9\xe3\x83\x8e\xe3\x83\x9c]", "190"=>"[\xe3\x83\x88\xe3\x83\xad\xe3\x83\x95\xe3\x82\xa3\xe3\x83\xbc]", "191"=>"[\xe3\x83\x95\xe3\x83\x83\xe3\x83\x88\xe3\x83\x9c\xe3\x83\xbc\xe3\x83\xab]", "192"=>"[\xe6\xb0\xb4\xe6\xb3\xb3]", "193"=>"[\xe3\x83\x90\xe3\x82\xb9\xe5\x81\x9c]",
+ "194"=>"[\xe9\xa7\x85]", "195"=>"[\xe3\x83\xad\xe3\x82\xb1\xe3\x83\x83\xe3\x83\x88]", "196"=>"[\xe3\x83\x88\xe3\x83\xa9\xe3\x83\x83\xe3\x82\xaf]", "197"=>"[\xe6\xb6\x88\xe9\x98\xb2\xe8\xbb\x8a]", "198"=>"[\xe6\x95\x91\xe6\x80\xa5\xe8\xbb\x8a]",
+ "199"=>"[\xe3\x83\x91\xe3\x83\x88\xe3\x82\xab\xe3\x83\xbc]", "200"=>"[\xe5\xb7\xa5\xe4\xba\x8b\xe4\xb8\xad]", "201"=>"[\xe3\x82\xad\xe3\x83\xa3\xe3\x83\xb3\xe3\x83\x97]", "202"=>"[\xe8\xa6\xb3\xe8\xa6\xa7\xe8\xbb\x8a]", "203"=>"[\xe3\x82\xb8\xe3\x82\xa7\xe3\x83\x83\xe3\x83\x88\xe3\x82\xb3\xe3\x83\xbc\xe3\x82\xb9\xe3\x82\xbf\xe3\x83\xbc]",
+ "204"=>"[\xe3\x82\xa4\xe3\x83\x99\xe3\x83\xb3\xe3\x83\x88]", "205"=>"[\xe6\xbc\x94\xe5\x8a\x87]", "206"=>"[\xe3\x82\xb2\xe3\x83\xbc\xe3\x83\xa0]", "207"=>"[\xe9\xba\xbb\xe9\x9b\x80]", "208"=>"[\xe7\x9a\x84\xe4\xb8\xad]",
+ "209"=>"[777]", "210"=>"[\xe3\x83\x93\xe3\x83\xaa\xe3\x83\xa4\xe3\x83\xbc\xe3\x83\x89]", "211"=>"[\xe3\x82\xb5\xe3\x82\xa4\xe3\x82\xb3\xe3\x83\xad]", "212"=>"[\xe3\x83\x9c\xe3\x83\xbc\xe3\x83\xaa\xe3\x83\xb3\xe3\x82\xb0]", "213"=>"[\xe8\x8a\xb1\xe6\x9c\xad]",
+ "214"=>"[\xe3\x82\xb8\xe3\x83\xa7\xe3\x83\xbc\xe3\x82\xab\xe3\x83\xbc]", "215"=>"[\xe3\x82\xb5\xe3\x83\x83\xe3\x82\xaf\xe3\x82\xb9]", "216"=>"[\xe3\x82\xae\xe3\x82\xbf\xe3\x83\xbc]", "217"=>"[\xe3\x83\x94\xe3\x82\xa2\xe3\x83\x8e]", "218"=>"[\xe3\x83\x88\xe3\x83\xa9\xe3\x83\xb3\xe3\x83\x9a\xe3\x83\x83\xe3\x83\x88]",
+ "219"=>"[\xe3\x83\x90\xe3\x82\xa4\xe3\x82\xaa\xe3\x83\xaa\xe3\x83\xb3]", "220"=>"[\xe6\xad\x8c\xe8\xa8\x98\xe5\x8f\xb7]", "221"=>"[\xe3\x83\xa9\xe3\x82\xb8\xe3\x82\xaa]", "222"=>"[\xe3\x83\x93\xe3\x83\x87\xe3\x82\xaa]", "223"=>"[\xe8\x8a\xb1\xe6\x9d\x9f]",
+ "224"=>"[\xe7\xb5\x90\xe5\xa9\x9a\xe5\xbc\x8f]", "225"=>"[18\xe7\xa6\x81]", "226"=>"[\xef\xbd\x89]", "227"=>"[10]", "228"=>"[\xe3\x83\x90\xe3\x83\xaa3]",
+ "229"=>"[\xe3\x83\x9e\xe3\x83\x8a\xe3\x83\xbc\xe3\x83\xa2\xe3\x83\xbc\xe3\x83\x89]", "230"=>"[\xe3\x82\xb1\xe3\x83\xbc\xe3\x82\xbf\xe3\x82\xa4OFF]", "231"=>"[\xe3\x83\x95\xe3\x83\xa9\xe3\x82\xa4\xe3\x83\x91\xe3\x83\xb3]", "232"=>"[\xe3\x82\xbd\xe3\x83\x95\xe3\x83\x88\xe3\x82\xaf\xe3\x83\xaa\xe3\x83\xbc\xe3\x83\xa0]", "233"=>"[\xe3\x83\x9d\xe3\x83\x86\xe3\x83\x88]",
+ "234"=>"[\xe3\x81\xa0\xe3\x82\x93\xe3\x81\x94]", "235"=>"[\xe3\x81\x9b\xe3\x82\x93\xe3\x81\xb9\xe3\x81\x84]", "236"=>"[\xe3\x83\x91\xe3\x82\xb9\xe3\x82\xbf]", "237"=>"[\xe3\x82\xab\xe3\x83\xac\xe3\x83\xbc]", "238"=>"[\xe3\x81\x8a\xe3\x81\xa7\xe3\x82\x93]",
+ "239"=>"[\xe3\x81\x99\xe3\x81\x97]", "240"=>"[\xe5\xbc\x81\xe5\xbd\x93]", "241"=>"[\xe9\x8d\x8b]", "242"=>"[\xe3\x82\xab\xe3\x82\xad\xe6\xb0\xb7]", "243"=>"[\xe8\x82\x89]",
+ "244"=>"[\xe3\x81\xaa\xe3\x82\x8b\xe3\x81\xa8]", "245"=>"[\xe3\x82\x84\xe3\x81\x8d\xe3\x81\x84\xe3\x82\x82]", "246"=>"[\xe3\x83\x94\xe3\x82\xb6]", "247"=>"[\xe3\x83\x81\xe3\x82\xad\xe3\x83\xb3]", "248"=>"[\xe3\x82\xa2\xe3\x82\xa4\xe3\x82\xb9\xe3\x82\xaf\xe3\x83\xaa\xe3\x83\xbc\xe3\x83\xa0]",
+ "249"=>"[\xe3\x83\x89\xe3\x83\xbc\xe3\x83\x8a\xe3\x83\x84]", "250"=>"[\xe3\x82\xaf\xe3\x83\x83\xe3\x82\xad\xe3\x83\xbc]", "251"=>"[\xe3\x83\x81\xe3\x83\xa7\xe3\x82\xb3]", "252"=>"[\xe3\x82\xad\xe3\x83\xa3\xe3\x83\xb3\xe3\x83\x87\xe3\x82\xa3]", "253"=>"[\xe3\x83\x97\xe3\x83\xaa\xe3\x83\xb3]",
+ "254"=>"[\xe3\x83\x8f\xe3\x83\x81\xe3\x83\x9f\xe3\x83\x84]", "255"=>"[\xe3\x82\xa8\xe3\x83\x93\xe3\x83\x95\xe3\x83\xa9\xe3\x82\xa4]", "256"=>"\xe2\x87\x94", "257"=>"\xe2\x86\x91\xe2\x86\x93", "258"=>"[\xe2\x86\x91]",
+ "259"=>"[\xe2\x86\x93]", "260"=>"[\xe2\x86\x92]", "261"=>"[\xe2\x86\x90]", "262"=>"[>]", "263"=>"[<]",
+ "264"=>"[>>]", "265"=>"[<<]", "266"=>"\xe2\x96\xb2", "267"=>"\xe2\x96\xbc", "268"=>"[\xc3\x97]",
+ "269"=>"\xef\xbc\x81\xef\xbc\x9f", "270"=>"\xef\xbc\x81\xef\xbc\x81", "271"=>"[\xef\xbc\x9f]", "272"=>"\xef\xbd\x9e", "273"=>"[\xe3\x83\x95\xe3\x83\xaa\xe3\x83\xbc\xe3\x83\x80\xe3\x82\xa4\xe3\x83\xa4\xe3\x83\xab]",
+ "274"=>"[\xe6\x97\x97]", "275"=>"[\xe2\x99\x82]", "276"=>"[\xe2\x99\x80]", "277"=>"[\xe3\x83\x89\xe3\x82\xa2]", "278"=>"[\xe7\xa6\x81\xe6\xad\xa2]",
+ "279"=>"[\xe3\x83\x81\xe3\x82\xa7\xe3\x83\x83\xe3\x82\xaf\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]", "280"=>"[CL]", "281"=>"[COOL]", "282"=>"[FREE]", "283"=>"[NG]",
+ "284"=>"[SOS]", "285"=>"[UP!]", "286"=>"[VS]", "287"=>"[\xe3\x82\xb3\xe3\x82\xb3]", "288"=>"[\xe3\x82\xb5\xe3\x83\xbc\xe3\x83\x93\xe3\x82\xb9]",
+ "289"=>"[\xe7\xa6\x81]", "290"=>"[\xe5\x90\x88]", "291"=>"[\xe6\x9c\x89]", "292"=>"[\xe7\x84\xa1]", "293"=>"[\xe6\x9c\x88]",
+ "294"=>"[\xe7\x94\xb3]", "295"=>"[\xe5\x89\xb2]", "296"=>"[\xe6\x8c\x87]", "297"=>"[\xe5\x96\xb6]", "298"=>"[\xe7\xa5\x9d]",
+ "299"=>"[\xe5\xbe\x97]", "300"=>"[\xe5\x8f\xaf]", "301"=>"[\xef\xbc\x8b]", "302"=>"[\xef\xbc\x8d]", "303"=>"[\xc3\xb7]",
+ "304"=>"[\xe3\x83\x89\xe3\x83\xb3\xe3\x83\x83]", "305"=>"[\xe3\x82\xa6\xe3\x83\xb3\xe3\x83\x81]", "306"=>"[\xe5\x8a\x9b\xe3\x81\x93\xe3\x81\xb6]", "307"=>"[\xe3\x82\xaf\xe3\x83\xa9\xe3\x82\xaf\xe3\x83\xa9]", "308"=>"[\xe3\x83\x95\xe3\x82\xad\xe3\x83\x80\xe3\x82\xb7]",
+ "309"=>"\xe2\x96\xa0", "310"=>"\xe2\x97\x86", "311"=>"[\xe8\x8a\xb1\xe4\xb8\xb8]", "312"=>"[100\xe7\x82\xb9]", "313"=>"\xe2\x86\x90\xe2\x94\x98",
+ "314"=>"\xe2\x94\x94\xe2\x86\x92", "315"=>"[\xe9\x9b\xbb\xe6\xb1\xa0]", "316"=>"[\xe3\x82\xb3\xe3\x83\xb3\xe3\x82\xbb\xe3\x83\xb3\xe3\x83\x88]", "317"=>"[\xe3\x83\xa9\xe3\x82\xb8\xe3\x82\xaa\xe3\x83\x9c\xe3\x82\xbf\xe3\x83\xb3]", "318"=>"[\xe3\x83\x96\xe3\x83\x83\xe3\x82\xaf\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]",
+ "319"=>"[\xe3\x83\xaa\xe3\x83\xb3\xe3\x82\xaf]", "320"=>"[\xe2\x86\x90BACK]", "321"=>"[end]", "322"=>"[ON]", "323"=>"[SOON]",
+ "324"=>"[TOP]", "325"=>"[\xe4\xba\xba\xe5\xb7\xae\xe3\x81\x97\xe6\x8c\x87]", "326"=>"[\xe6\x8b\x8d\xe6\x89\x8b]",
+ ),
+ 'unified_to_docomo' => array(
+ "\xe2\x98\x80"=>"\xee\x98\xbe", "\xe2\x98\x81"=>"\xee\x98\xbf", "\xe2\x98\x94"=>"\xee\x99\x80", "\xe2\x9b\x84"=>"\xee\x99\x81",
+ "\xe2\x9a\xa1"=>"\xee\x99\x82", "\xf0\x9f\x8c\x80"=>"\xee\x99\x83", "\xf0\x9f\x8c\x81"=>"\xee\x99\x84", "\xf0\x9f\x8c\x82"=>"\xee\x99\x85", "\xf0\x9f\x8c\x83"=>"\xee\x9a\xb3",
+ "\xf0\x9f\x8c\x84"=>"\xee\x98\xbe", "\xf0\x9f\x8c\x85"=>"\xee\x98\xbe", "\xf0\x9f\x8c\x86"=>"[\xe5\xa4\x95\xe7\x84\xbc\xe3\x81\x91]", "\xf0\x9f\x8c\x87"=>"\xee\x98\xbe", "\xf0\x9f\x8c\x88"=>"[\xe8\x99\xb9]",
+ "\xe2\x9d\x84"=>"[\xe9\x9b\xaa\xe7\xb5\x90\xe6\x99\xb6]", "\xe2\x9b\x85"=>"\xee\x98\xbe\xee\x98\xbf", "\xf0\x9f\x8c\x89"=>"\xee\x9a\xb3", "\xf0\x9f\x8c\x8a"=>"\xee\x9c\xbf", "\xf0\x9f\x8c\x8b"=>"[\xe7\x81\xab\xe5\xb1\xb1]",
+ "\xf0\x9f\x8c\x8c"=>"\xee\x9a\xb3", "\xf0\x9f\x8c\x8f"=>"[\xe5\x9c\xb0\xe7\x90\x83]", "\xf0\x9f\x8c\x91"=>"\xee\x9a\x9c", "\xf0\x9f\x8c\x94"=>"\xee\x9a\x9d", "\xf0\x9f\x8c\x93"=>"\xee\x9a\x9e",
+ "\xf0\x9f\x8c\x99"=>"\xee\x9a\x9f", "\xf0\x9f\x8c\x95"=>"\xee\x9a\xa0", "\xf0\x9f\x8c\x9b"=>"\xee\x9a\x9e", "\xf0\x9f\x8c\x9f"=>"[\xe2\x98\x86]", "\xf0\x9f\x8c\xa0"=>"\xe2\x98\x86\xe5\xbd\xa1",
+ "\xf0\x9f\x95\x90"=>"\xee\x9a\xba", "\xf0\x9f\x95\x91"=>"\xee\x9a\xba", "\xf0\x9f\x95\x92"=>"\xee\x9a\xba", "\xf0\x9f\x95\x93"=>"\xee\x9a\xba", "\xf0\x9f\x95\x94"=>"\xee\x9a\xba",
+ "\xf0\x9f\x95\x95"=>"\xee\x9a\xba", "\xf0\x9f\x95\x96"=>"\xee\x9a\xba", "\xf0\x9f\x95\x97"=>"\xee\x9a\xba", "\xf0\x9f\x95\x98"=>"\xee\x9a\xba", "\xf0\x9f\x95\x99"=>"\xee\x9a\xba",
+ "\xf0\x9f\x95\x9a"=>"\xee\x9a\xba", "\xf0\x9f\x95\x9b"=>"\xee\x9a\xba", "\xe2\x8c\x9a"=>"\xee\x9c\x9f", "\xe2\x8c\x9b"=>"\xee\x9c\x9c", "\xe2\x8f\xb0"=>"\xee\x9a\xba",
+ "\xe2\x8f\xb3"=>"\xee\x9c\x9c", "\xe2\x99\x88"=>"\xee\x99\x86", "\xe2\x99\x89"=>"\xee\x99\x87", "\xe2\x99\x8a"=>"\xee\x99\x88", "\xe2\x99\x8b"=>"\xee\x99\x89",
+ "\xe2\x99\x8c"=>"\xee\x99\x8a", "\xe2\x99\x8d"=>"\xee\x99\x8b", "\xe2\x99\x8e"=>"\xee\x99\x8c", "\xe2\x99\x8f"=>"\xee\x99\x8d", "\xe2\x99\x90"=>"\xee\x99\x8e",
+ "\xe2\x99\x91"=>"\xee\x99\x8f", "\xe2\x99\x92"=>"\xee\x99\x90", "\xe2\x99\x93"=>"\xee\x99\x91", "\xe2\x9b\x8e"=>"[\xe8\x9b\x87\xe4\xbd\xbf\xe5\xba\xa7]", "\xf0\x9f\x8d\x80"=>"\xee\x9d\x81",
+ "\xf0\x9f\x8c\xb7"=>"\xee\x9d\x83", "\xf0\x9f\x8c\xb1"=>"\xee\x9d\x86", "\xf0\x9f\x8d\x81"=>"\xee\x9d\x87", "\xf0\x9f\x8c\xb8"=>"\xee\x9d\x88", "\xf0\x9f\x8c\xb9"=>"[\xe3\x83\x90\xe3\x83\xa9]",
+ "\xf0\x9f\x8d\x82"=>"\xee\x9d\x87", "\xf0\x9f\x8d\x83"=>"[\xe9\xa2\xa8\xe3\x81\xab\xe8\x88\x9e\xe3\x81\x86\xe8\x91\x89]", "\xf0\x9f\x8c\xba"=>"[\xe3\x83\x8f\xe3\x82\xa4\xe3\x83\x93\xe3\x82\xb9\xe3\x82\xab\xe3\x82\xb9]", "\xf0\x9f\x8c\xbb"=>"[\xe3\x81\xb2\xe3\x81\xbe\xe3\x82\x8f\xe3\x82\x8a]", "\xf0\x9f\x8c\xb4"=>"[\xe3\x83\xa4\xe3\x82\xb7]",
+ "\xf0\x9f\x8c\xb5"=>"[\xe3\x82\xb5\xe3\x83\x9c\xe3\x83\x86\xe3\x83\xb3]", "\xf0\x9f\x8c\xbe"=>"[\xe7\xa8\xb2\xe7\xa9\x82]", "\xf0\x9f\x8c\xbd"=>"[\xe3\x81\xa8\xe3\x81\x86\xe3\x82\x82\xe3\x82\x8d\xe3\x81\x93\xe3\x81\x97]", "\xf0\x9f\x8d\x84"=>"[\xe3\x82\xad\xe3\x83\x8e\xe3\x82\xb3]", "\xf0\x9f\x8c\xb0"=>"[\xe6\xa0\x97]",
+ "\xf0\x9f\x8c\xbc"=>"[\xe8\x8a\xb1]", "\xf0\x9f\x8c\xbf"=>"\xee\x9d\x81", "\xf0\x9f\x8d\x92"=>"\xee\x9d\x82", "\xf0\x9f\x8d\x8c"=>"\xee\x9d\x84", "\xf0\x9f\x8d\x8e"=>"\xee\x9d\x85",
+ "\xf0\x9f\x8d\x8a"=>"[\xe3\x81\xbf\xe3\x81\x8b\xe3\x82\x93]", "\xf0\x9f\x8d\x93"=>"[\xe3\x82\xa4\xe3\x83\x81\xe3\x82\xb4]", "\xf0\x9f\x8d\x89"=>"[\xe3\x82\xb9\xe3\x82\xa4\xe3\x82\xab]", "\xf0\x9f\x8d\x85"=>"[\xe3\x83\x88\xe3\x83\x9e\xe3\x83\x88]", "\xf0\x9f\x8d\x86"=>"[\xe3\x83\x8a\xe3\x82\xb9]",
+ "\xf0\x9f\x8d\x88"=>"[\xe3\x83\xa1\xe3\x83\xad\xe3\x83\xb3]", "\xf0\x9f\x8d\x8d"=>"[\xe3\x83\x91\xe3\x82\xa4\xe3\x83\x8a\xe3\x83\x83\xe3\x83\x97\xe3\x83\xab]", "\xf0\x9f\x8d\x87"=>"[\xe3\x83\x96\xe3\x83\x89\xe3\x82\xa6]", "\xf0\x9f\x8d\x91"=>"[\xe3\x83\xa2\xe3\x83\xa2]", "\xf0\x9f\x8d\x8f"=>"\xee\x9d\x85",
+ "\xf0\x9f\x91\x80"=>"\xee\x9a\x91", "\xf0\x9f\x91\x82"=>"\xee\x9a\x92", "\xf0\x9f\x91\x83"=>"[\xe9\xbc\xbb]", "\xf0\x9f\x91\x84"=>"\xee\x9b\xb9", "\xf0\x9f\x91\x85"=>"\xee\x9c\xa8",
+ "\xf0\x9f\x92\x84"=>"\xee\x9c\x90", "\xf0\x9f\x92\x85"=>"[\xe3\x83\x9e\xe3\x83\x8b\xe3\x82\xad\xe3\x83\xa5\xe3\x82\xa2]", "\xf0\x9f\x92\x86"=>"[\xe3\x82\xa8\xe3\x82\xb9\xe3\x83\x86]", "\xf0\x9f\x92\x87"=>"\xee\x99\xb5", "\xf0\x9f\x92\x88"=>"[\xe5\xba\x8a\xe5\xb1\x8b]",
+ "\xf0\x9f\x91\xa4"=>"\xee\x9a\xb1", "\xf0\x9f\x91\xa6"=>"\xee\x9b\xb0", "\xf0\x9f\x91\xa7"=>"\xee\x9b\xb0", "\xf0\x9f\x91\xa8"=>"\xee\x9b\xb0", "\xf0\x9f\x91\xa9"=>"\xee\x9b\xb0",
+ "\xf0\x9f\x91\xaa"=>"[\xe5\xae\xb6\xe6\x97\x8f]", "\xf0\x9f\x91\xab"=>"[\xe3\x82\xab\xe3\x83\x83\xe3\x83\x97\xe3\x83\xab]", "\xf0\x9f\x91\xae"=>"[\xe8\xad\xa6\xe5\xae\x98]", "\xf0\x9f\x91\xaf"=>"[\xe3\x83\x90\xe3\x83\x8b\xe3\x83\xbc]", "\xf0\x9f\x91\xb0"=>"[\xe8\x8a\xb1\xe5\xab\x81]",
+ "\xf0\x9f\x91\xb1"=>"[\xe7\x99\xbd\xe4\xba\xba]", "\xf0\x9f\x91\xb2"=>"[\xe4\xb8\xad\xe5\x9b\xbd\xe4\xba\xba]", "\xf0\x9f\x91\xb3"=>"[\xe3\x82\xa4\xe3\x83\xb3\xe3\x83\x89\xe4\xba\xba]", "\xf0\x9f\x91\xb4"=>"[\xe3\x81\x8a\xe3\x81\x98\xe3\x81\x84\xe3\x81\x95\xe3\x82\x93]", "\xf0\x9f\x91\xb5"=>"[\xe3\x81\x8a\xe3\x81\xb0\xe3\x81\x82\xe3\x81\x95\xe3\x82\x93]",
+ "\xf0\x9f\x91\xb6"=>"[\xe8\xb5\xa4\xe3\x81\xa1\xe3\x82\x83\xe3\x82\x93]", "\xf0\x9f\x91\xb7"=>"[\xe5\xb7\xa5\xe4\xba\x8b\xe7\x8f\xbe\xe5\xa0\xb4\xe3\x81\xae\xe4\xba\xba]", "\xf0\x9f\x91\xb8"=>"[\xe3\x81\x8a\xe5\xa7\xab\xe6\xa7\x98]", "\xf0\x9f\x91\xb9"=>"[\xe3\x81\xaa\xe3\x81\xbe\xe3\x81\xaf\xe3\x81\x92]", "\xf0\x9f\x91\xba"=>"[\xe5\xa4\xa9\xe7\x8b\x97]",
+ "\xf0\x9f\x91\xbb"=>"[\xe3\x81\x8a\xe5\x8c\x96\xe3\x81\x91]", "\xf0\x9f\x91\xbc"=>"[\xe5\xa4\xa9\xe4\xbd\xbf]", "\xf0\x9f\x91\xbd"=>"[UFO]", "\xf0\x9f\x91\xbe"=>"[\xe5\xae\x87\xe5\xae\x99\xe4\xba\xba]", "\xf0\x9f\x91\xbf"=>"[\xe3\x82\xa2\xe3\x82\xaf\xe3\x83\x9e]",
+ "\xf0\x9f\x92\x80"=>"[\xe3\x83\x89\xe3\x82\xaf\xe3\x83\xad]", "\xf0\x9f\x92\x81"=>"[\xe6\xa1\x88\xe5\x86\x85]", "\xf0\x9f\x92\x82"=>"[\xe8\xa1\x9b\xe5\x85\xb5]", "\xf0\x9f\x92\x83"=>"[\xe3\x83\x80\xe3\x83\xb3\xe3\x82\xb9]", "\xf0\x9f\x90\x8c"=>"\xee\x9d\x8e",
+ "\xf0\x9f\x90\x8d"=>"[\xe3\x83\x98\xe3\x83\x93]", "\xf0\x9f\x90\x8e"=>"\xee\x9d\x94", "\xf0\x9f\x90\x94"=>"[\xe3\x83\x8b\xe3\x83\xaf\xe3\x83\x88\xe3\x83\xaa]", "\xf0\x9f\x90\x97"=>"[\xe3\x82\xa4\xe3\x83\x8e\xe3\x82\xb7\xe3\x82\xb7]", "\xf0\x9f\x90\xab"=>"[\xe3\x83\xa9\xe3\x82\xaf\xe3\x83\x80]",
+ "\xf0\x9f\x90\x98"=>"[\xe3\x82\xbe\xe3\x82\xa6]", "\xf0\x9f\x90\xa8"=>"[\xe3\x82\xb3\xe3\x82\xa2\xe3\x83\xa9]", "\xf0\x9f\x90\x92"=>"[\xe3\x82\xb5\xe3\x83\xab]", "\xf0\x9f\x90\x91"=>"[\xe3\x83\x92\xe3\x83\x84\xe3\x82\xb8]", "\xf0\x9f\x90\x99"=>"[\xe3\x82\xbf\xe3\x82\xb3]",
+ "\xf0\x9f\x90\x9a"=>"[\xe5\xb7\xbb\xe8\xb2\x9d]", "\xf0\x9f\x90\x9b"=>"[\xe3\x82\xb2\xe3\x82\xb8\xe3\x82\xb2\xe3\x82\xb8]", "\xf0\x9f\x90\x9c"=>"[\xe3\x82\xa2\xe3\x83\xaa]", "\xf0\x9f\x90\x9d"=>"[\xe3\x83\x9f\xe3\x83\x84\xe3\x83\x90\xe3\x83\x81]", "\xf0\x9f\x90\x9e"=>"[\xe3\x81\xa6\xe3\x82\x93\xe3\x81\xa8\xe3\x81\x86\xe8\x99\xab]",
+ "\xf0\x9f\x90\xa0"=>"\xee\x9d\x91", "\xf0\x9f\x90\xa1"=>"\xee\x9d\x91", "\xf0\x9f\x90\xa2"=>"[\xe3\x82\xab\xe3\x83\xa1]", "\xf0\x9f\x90\xa4"=>"\xee\x9d\x8f", "\xf0\x9f\x90\xa5"=>"\xee\x9d\x8f",
+ "\xf0\x9f\x90\xa6"=>"\xee\x9d\x8f", "\xf0\x9f\x90\xa3"=>"\xee\x9d\x8f", "\xf0\x9f\x90\xa7"=>"\xee\x9d\x90", "\xf0\x9f\x90\xa9"=>"\xee\x9a\xa1", "\xf0\x9f\x90\x9f"=>"\xee\x9d\x91",
+ "\xf0\x9f\x90\xac"=>"[\xe3\x82\xa4\xe3\x83\xab\xe3\x82\xab]", "\xf0\x9f\x90\xad"=>"[\xe3\x83\x8d\xe3\x82\xba\xe3\x83\x9f]", "\xf0\x9f\x90\xaf"=>"[\xe3\x83\x88\xe3\x83\xa9]", "\xf0\x9f\x90\xb1"=>"\xee\x9a\xa2", "\xf0\x9f\x90\xb3"=>"[\xe3\x82\xaf\xe3\x82\xb8\xe3\x83\xa9]",
+ "\xf0\x9f\x90\xb4"=>"\xee\x9d\x94", "\xf0\x9f\x90\xb5"=>"[\xe3\x82\xb5\xe3\x83\xab]", "\xf0\x9f\x90\xb6"=>"\xee\x9a\xa1", "\xf0\x9f\x90\xb7"=>"\xee\x9d\x95", "\xf0\x9f\x90\xbb"=>"[\xe3\x82\xaf\xe3\x83\x9e]",
+ "\xf0\x9f\x90\xb9"=>"[\xe3\x83\x8f\xe3\x83\xa0\xe3\x82\xb9\xe3\x82\xbf\xe3\x83\xbc]", "\xf0\x9f\x90\xba"=>"\xee\x9a\xa1", "\xf0\x9f\x90\xae"=>"[\xe7\x89\x9b]", "\xf0\x9f\x90\xb0"=>"[\xe3\x82\xa6\xe3\x82\xb5\xe3\x82\xae]", "\xf0\x9f\x90\xb8"=>"[\xe3\x82\xab\xe3\x82\xa8\xe3\x83\xab]",
+ "\xf0\x9f\x90\xbe"=>"\xee\x9a\x98", "\xf0\x9f\x90\xb2"=>"[\xe8\xbe\xb0]", "\xf0\x9f\x90\xbc"=>"[\xe3\x83\x91\xe3\x83\xb3\xe3\x83\x80]", "\xf0\x9f\x90\xbd"=>"\xee\x9d\x95", "\xf0\x9f\x98\xa0"=>"\xee\x9b\xb1",
+ "\xf0\x9f\x98\xa9"=>"\xee\x9b\xb3", "\xf0\x9f\x98\xb2"=>"\xee\x9b\xb4", "\xf0\x9f\x98\x9e"=>"\xee\x9b\xb2", "\xf0\x9f\x98\xb5"=>"\xee\x9b\xb4", "\xf0\x9f\x98\xb0"=>"\xee\x9c\xa3",
+ "\xf0\x9f\x98\x92"=>"\xee\x9c\xa5", "\xf0\x9f\x98\x8d"=>"\xee\x9c\xa6", "\xf0\x9f\x98\xa4"=>"\xee\x9d\x93", "\xf0\x9f\x98\x9c"=>"\xee\x9c\xa8", "\xf0\x9f\x98\x9d"=>"\xee\x9c\xa8",
+ "\xf0\x9f\x98\x8b"=>"\xee\x9d\x92", "\xf0\x9f\x98\x98"=>"\xee\x9c\xa6", "\xf0\x9f\x98\x9a"=>"\xee\x9c\xa6", "\xf0\x9f\x98\xb7"=>"[\xe9\xa2\xa8\xe9\x82\xaa\xe3\x81\xb2\xe3\x81\x8d]", "\xf0\x9f\x98\xb3"=>"\xee\x9c\xaa",
+ "\xf0\x9f\x98\x83"=>"\xee\x9b\xb0", "\xf0\x9f\x98\x85"=>"\xee\x9c\xa2", "\xf0\x9f\x98\x86"=>"\xee\x9c\xaa", "\xf0\x9f\x98\x81"=>"\xee\x9d\x93", "\xf0\x9f\x98\x82"=>"\xee\x9c\xaa",
+ "\xf0\x9f\x98\x8a"=>"\xee\x9b\xb0", "\xe2\x98\xba"=>"\xee\x9b\xb0", "\xf0\x9f\x98\x84"=>"\xee\x9b\xb0", "\xf0\x9f\x98\xa2"=>"\xee\x9c\xae", "\xf0\x9f\x98\xad"=>"\xee\x9c\xad",
+ "\xf0\x9f\x98\xa8"=>"\xee\x9d\x97", "\xf0\x9f\x98\xa3"=>"\xee\x9c\xab", "\xf0\x9f\x98\xa1"=>"\xee\x9c\xa4", "\xf0\x9f\x98\x8c"=>"\xee\x9c\xa1", "\xf0\x9f\x98\x96"=>"\xee\x9b\xb3",
+ "\xf0\x9f\x98\x94"=>"\xee\x9c\xa0", "\xf0\x9f\x98\xb1"=>"\xee\x9d\x97", "\xf0\x9f\x98\xaa"=>"\xee\x9c\x81", "\xf0\x9f\x98\x8f"=>"\xee\x9c\xac", "\xf0\x9f\x98\x93"=>"\xee\x9c\xa3",
+ "\xf0\x9f\x98\xa5"=>"\xee\x9c\xa3", "\xf0\x9f\x98\xab"=>"\xee\x9c\xab", "\xf0\x9f\x98\x89"=>"\xee\x9c\xa9", "\xf0\x9f\x98\xba"=>"\xee\x9b\xb0", "\xf0\x9f\x98\xb8"=>"\xee\x9d\x93",
+ "\xf0\x9f\x98\xb9"=>"\xee\x9c\xaa", "\xf0\x9f\x98\xbd"=>"\xee\x9c\xa6", "\xf0\x9f\x98\xbb"=>"\xee\x9c\xa6", "\xf0\x9f\x98\xbf"=>"\xee\x9c\xae", "\xf0\x9f\x98\xbe"=>"\xee\x9c\xa4",
+ "\xf0\x9f\x98\xbc"=>"\xee\x9d\x93", "\xf0\x9f\x99\x80"=>"\xee\x9b\xb3", "\xf0\x9f\x99\x85"=>"\xee\x9c\xaf", "\xf0\x9f\x99\x86"=>"\xee\x9c\x8b", "\xf0\x9f\x99\x87"=>"m(_ _)m",
+ "\xf0\x9f\x99\x88"=>"(/_\xef\xbc\xbc)", "\xf0\x9f\x99\x8a"=>"(\xe3\x83\xbb\xc3\x97\xe3\x83\xbb)", "\xf0\x9f\x99\x89"=>"|(\xe3\x83\xbb\xc3\x97\xe3\x83\xbb)|", "\xf0\x9f\x99\x8b"=>"(^-^)/", "\xf0\x9f\x99\x8c"=>"\xef\xbc\xbc(^o^)\xef\xbc\x8f",
+ "\xf0\x9f\x99\x8d"=>"\xee\x9b\xb3", "\xf0\x9f\x99\x8e"=>"\xee\x9b\xb1", "\xf0\x9f\x99\x8f"=>"(>\xe4\xba\xba<)", "\xf0\x9f\x8f\xa0"=>"\xee\x99\xa3", "\xf0\x9f\x8f\xa1"=>"\xee\x99\xa3",
+ "\xf0\x9f\x8f\xa2"=>"\xee\x99\xa4", "\xf0\x9f\x8f\xa3"=>"\xee\x99\xa5", "\xf0\x9f\x8f\xa5"=>"\xee\x99\xa6", "\xf0\x9f\x8f\xa6"=>"\xee\x99\xa7", "\xf0\x9f\x8f\xa7"=>"\xee\x99\xa8",
+ "\xf0\x9f\x8f\xa8"=>"\xee\x99\xa9", "\xf0\x9f\x8f\xa9"=>"\xee\x99\xa9\xee\x9b\xaf", "\xf0\x9f\x8f\xaa"=>"\xee\x99\xaa", "\xf0\x9f\x8f\xab"=>"\xee\x9c\xbe", "\xe2\x9b\xaa"=>"[\xe6\x95\x99\xe4\xbc\x9a]",
+ "\xe2\x9b\xb2"=>"[\xe5\x99\xb4\xe6\xb0\xb4]", "\xf0\x9f\x8f\xac"=>"[\xe3\x83\x87\xe3\x83\x91\xe3\x83\xbc\xe3\x83\x88]", "\xf0\x9f\x8f\xaf"=>"[\xe5\x9f\x8e]", "\xf0\x9f\x8f\xb0"=>"[\xe5\x9f\x8e]", "\xf0\x9f\x8f\xad"=>"[\xe5\xb7\xa5\xe5\xa0\xb4]",
+ "\xe2\x9a\x93"=>"\xee\x99\xa1", "\xf0\x9f\x8f\xae"=>"\xee\x9d\x8b", "\xf0\x9f\x97\xbb"=>"\xee\x9d\x80", "\xf0\x9f\x97\xbc"=>"[\xe6\x9d\xb1\xe4\xba\xac\xe3\x82\xbf\xe3\x83\xaf\xe3\x83\xbc]", "\xf0\x9f\x97\xbd"=>"[\xe8\x87\xaa\xe7\x94\xb1\xe3\x81\xae\xe5\xa5\xb3\xe7\xa5\x9e]",
+ "\xf0\x9f\x97\xbe"=>"[\xe6\x97\xa5\xe6\x9c\xac\xe5\x9c\xb0\xe5\x9b\xb3]", "\xf0\x9f\x97\xbf"=>"[\xe3\x83\xa2\xe3\x82\xa2\xe3\x82\xa4]", "\xf0\x9f\x91\x9e"=>"\xee\x9a\x99", "\xf0\x9f\x91\x9f"=>"\xee\x9a\x99", "\xf0\x9f\x91\xa0"=>"\xee\x99\xb4",
+ "\xf0\x9f\x91\xa1"=>"\xee\x99\xb4", "\xf0\x9f\x91\xa2"=>"[\xe3\x83\x96\xe3\x83\xbc\xe3\x83\x84]", "\xf0\x9f\x91\xa3"=>"\xee\x9a\x98", "\xf0\x9f\x91\x93"=>"\xee\x9a\x9a", "\xf0\x9f\x91\x95"=>"\xee\x9c\x8e",
+ "\xf0\x9f\x91\x96"=>"\xee\x9c\x91", "\xf0\x9f\x91\x91"=>"\xee\x9c\x9a", "\xf0\x9f\x91\x94"=>"[\xe3\x83\x8d\xe3\x82\xaf\xe3\x82\xbf\xe3\x82\xa4]", "\xf0\x9f\x91\x92"=>"[\xe5\xb8\xbd\xe5\xad\x90]", "\xf0\x9f\x91\x97"=>"[\xe3\x83\x89\xe3\x83\xac\xe3\x82\xb9]",
+ "\xf0\x9f\x91\x98"=>"[\xe7\x9d\x80\xe7\x89\xa9]", "\xf0\x9f\x91\x99"=>"[\xe3\x83\x93\xe3\x82\xad\xe3\x83\x8b]", "\xf0\x9f\x91\x9a"=>"\xee\x9c\x8e", "\xf0\x9f\x91\x9b"=>"\xee\x9c\x8f", "\xf0\x9f\x91\x9c"=>"\xee\x9a\x82",
+ "\xf0\x9f\x91\x9d"=>"\xee\x9a\xad", "\xf0\x9f\x92\xb0"=>"\xee\x9c\x95", "\xf0\x9f\x92\xb1"=>"[$\xef\xbf\xa5]", "\xf0\x9f\x92\xb9"=>"[\xe6\xa0\xaa\xe4\xbe\xa1]", "\xf0\x9f\x92\xb2"=>"\xee\x9c\x95",
+ "\xf0\x9f\x92\xb3"=>"[\xe3\x82\xab\xe3\x83\xbc\xe3\x83\x89]", "\xf0\x9f\x92\xb4"=>"\xee\x9b\x96", "\xf0\x9f\x92\xb5"=>"\xee\x9c\x95", "\xf0\x9f\x92\xb8"=>"[\xe9\xa3\x9b\xe3\x82\x93\xe3\x81\xa7\xe3\x81\x84\xe3\x81\x8f\xe3\x81\x8a\xe9\x87\x91]", "\xf0\x9f\x87\xa8\xf0\x9f\x87\xb3"=>"[\xe4\xb8\xad\xe5\x9b\xbd]",
+ "\xf0\x9f\x87\xa9\xf0\x9f\x87\xaa"=>"[\xe3\x83\x89\xe3\x82\xa4\xe3\x83\x84]", "\xf0\x9f\x87\xaa\xf0\x9f\x87\xb8"=>"[\xe3\x82\xb9\xe3\x83\x9a\xe3\x82\xa4\xe3\x83\xb3]", "\xf0\x9f\x87\xab\xf0\x9f\x87\xb7"=>"[\xe3\x83\x95\xe3\x83\xa9\xe3\x83\xb3\xe3\x82\xb9]", "\xf0\x9f\x87\xac\xf0\x9f\x87\xa7"=>"[\xe3\x82\xa4\xe3\x82\xae\xe3\x83\xaa\xe3\x82\xb9]", "\xf0\x9f\x87\xae\xf0\x9f\x87\xb9"=>"[\xe3\x82\xa4\xe3\x82\xbf\xe3\x83\xaa\xe3\x82\xa2]",
+ "\xf0\x9f\x87\xaf\xf0\x9f\x87\xb5"=>"[\xe6\x97\xa5\xe3\x81\xae\xe4\xb8\xb8]", "\xf0\x9f\x87\xb0\xf0\x9f\x87\xb7"=>"[\xe9\x9f\x93\xe5\x9b\xbd]", "\xf0\x9f\x87\xb7\xf0\x9f\x87\xba"=>"[\xe3\x83\xad\xe3\x82\xb7\xe3\x82\xa2]", "\xf0\x9f\x87\xba\xf0\x9f\x87\xb8"=>"[USA]", "\xf0\x9f\x94\xa5"=>"[\xe7\x82\x8e]",
+ "\xf0\x9f\x94\xa6"=>"\xee\x9b\xbb", "\xf0\x9f\x94\xa7"=>"\xee\x9c\x98", "\xf0\x9f\x94\xa8"=>"[\xe3\x83\x8f\xe3\x83\xb3\xe3\x83\x9e\xe3\x83\xbc]", "\xf0\x9f\x94\xa9"=>"[\xe3\x83\x8d\xe3\x82\xb8]", "\xf0\x9f\x94\xaa"=>"[\xe5\x8c\x85\xe4\xb8\x81]",
+ "\xf0\x9f\x94\xab"=>"[\xe3\x83\x94\xe3\x82\xb9\xe3\x83\x88\xe3\x83\xab]", "\xf0\x9f\x94\xae"=>"[\xe5\x8d\xa0\xe3\x81\x84]", "\xf0\x9f\x94\xaf"=>"[\xe5\x8d\xa0\xe3\x81\x84]", "\xf0\x9f\x94\xb0"=>"[\xe8\x8b\xa5\xe8\x91\x89\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]", "\xf0\x9f\x94\xb1"=>"\xee\x9c\x9a",
+ "\xf0\x9f\x92\x89"=>"[\xe6\xb3\xa8\xe5\xb0\x84]", "\xf0\x9f\x92\x8a"=>"[\xe8\x96\xac]", "\xf0\x9f\x85\xb0"=>"[A]", "\xf0\x9f\x85\xb1"=>"[B]", "\xf0\x9f\x86\x8e"=>"[AB]",
+ "\xf0\x9f\x85\xbe"=>"[O]", "\xf0\x9f\x8e\x80"=>"\xee\x9a\x84", "\xf0\x9f\x8e\x81"=>"\xee\x9a\x85", "\xf0\x9f\x8e\x82"=>"\xee\x9a\x86", "\xf0\x9f\x8e\x84"=>"\xee\x9a\xa4",
+ "\xf0\x9f\x8e\x85"=>"[\xe3\x82\xb5\xe3\x83\xb3\xe3\x82\xbf]", "\xf0\x9f\x8e\x8c"=>"[\xe7\xa5\x9d\xe6\x97\xa5]", "\xf0\x9f\x8e\x86"=>"[\xe8\x8a\xb1\xe7\x81\xab]", "\xf0\x9f\x8e\x88"=>"[\xe9\xa2\xa8\xe8\x88\xb9]", "\xf0\x9f\x8e\x89"=>"[\xe3\x82\xaf\xe3\x83\xa9\xe3\x83\x83\xe3\x82\xab\xe3\x83\xbc]",
+ "\xf0\x9f\x8e\x8d"=>"[\xe9\x96\x80\xe6\x9d\xbe]", "\xf0\x9f\x8e\x8e"=>"[\xe3\x81\xb2\xe3\x81\xaa\xe7\xa5\xad\xe3\x82\x8a]", "\xf0\x9f\x8e\x93"=>"[\xe5\x8d\x92\xe6\xa5\xad\xe5\xbc\x8f]", "\xf0\x9f\x8e\x92"=>"[\xe3\x83\xa9\xe3\x83\xb3\xe3\x83\x89\xe3\x82\xbb\xe3\x83\xab]", "\xf0\x9f\x8e\x8f"=>"[\xe3\x81\x93\xe3\x81\x84\xe3\x81\xae\xe3\x81\xbc\xe3\x82\x8a]",
+ "\xf0\x9f\x8e\x87"=>"[\xe7\xb7\x9a\xe9\xa6\x99\xe8\x8a\xb1\xe7\x81\xab]", "\xf0\x9f\x8e\x90"=>"[\xe9\xa2\xa8\xe9\x88\xb4]", "\xf0\x9f\x8e\x83"=>"[\xe3\x83\x8f\xe3\x83\xad\xe3\x82\xa6\xe3\x82\xa3\xe3\x83\xb3]", "\xf0\x9f\x8e\x8a"=>"[\xe3\x82\xaa\xe3\x83\xa1\xe3\x83\x87\xe3\x83\x88\xe3\x82\xa6]", "\xf0\x9f\x8e\x8b"=>"[\xe4\xb8\x83\xe5\xa4\x95]",
+ "\xf0\x9f\x8e\x91"=>"[\xe3\x81\x8a\xe6\x9c\x88\xe8\xa6\x8b]", "\xf0\x9f\x93\x9f"=>"\xee\x99\x9a", "\xe2\x98\x8e"=>"\xee\x9a\x87", "\xf0\x9f\x93\x9e"=>"\xee\x9a\x87", "\xf0\x9f\x93\xb1"=>"\xee\x9a\x88",
+ "\xf0\x9f\x93\xb2"=>"\xee\x9b\x8e", "\xf0\x9f\x93\x9d"=>"\xee\x9a\x89", "\xf0\x9f\x93\xa0"=>"\xee\x9b\x90", "\xe2\x9c\x89"=>"\xee\x9b\x93", "\xf0\x9f\x93\xa8"=>"\xee\x9b\x8f",
+ "\xf0\x9f\x93\xa9"=>"\xee\x9b\x8f", "\xf0\x9f\x93\xaa"=>"\xee\x99\xa5", "\xf0\x9f\x93\xab"=>"\xee\x99\xa5", "\xf0\x9f\x93\xae"=>"\xee\x99\xa5", "\xf0\x9f\x93\xb0"=>"[\xe6\x96\xb0\xe8\x81\x9e]",
+ "\xf0\x9f\x93\xa2"=>"[\xe3\x82\xb9\xe3\x83\x94\xe3\x83\xbc\xe3\x82\xab]", "\xf0\x9f\x93\xa3"=>"[\xe3\x83\xa1\xe3\x82\xac\xe3\x83\x9b\xe3\x83\xb3]", "\xf0\x9f\x93\xa1"=>"[\xe3\x82\xa2\xe3\x83\xb3\xe3\x83\x86\xe3\x83\x8a]", "\xf0\x9f\x93\xa4"=>"[\xe9\x80\x81\xe4\xbf\xa1BOX]", "\xf0\x9f\x93\xa5"=>"[\xe5\x8f\x97\xe4\xbf\xa1BOX]",
+ "\xf0\x9f\x93\xa6"=>"\xee\x9a\x85", "\xf0\x9f\x93\xa7"=>"\xee\x9b\x93", "\xf0\x9f\x94\xa0"=>"[ABCD]", "\xf0\x9f\x94\xa1"=>"[abcd]", "\xf0\x9f\x94\xa2"=>"[1234]",
+ "\xf0\x9f\x94\xa3"=>"[\xe8\xa8\x98\xe5\x8f\xb7]", "\xf0\x9f\x94\xa4"=>"[ABC]", "\xe2\x9c\x92"=>"\xee\x9a\xae", "\xf0\x9f\x92\xba"=>"\xee\x9a\xb2", "\xf0\x9f\x92\xbb"=>"\xee\x9c\x96",
+ "\xe2\x9c\x8f"=>"\xee\x9c\x99", "\xf0\x9f\x93\x8e"=>"\xee\x9c\xb0", "\xf0\x9f\x92\xbc"=>"\xee\x9a\x82", "\xf0\x9f\x92\xbd"=>"[MD]", "\xf0\x9f\x92\xbe"=>"[\xe3\x83\x95\xe3\x83\xad\xe3\x83\x83\xe3\x83\x94\xe3\x83\xbc]",
+ "\xf0\x9f\x92\xbf"=>"\xee\x9a\x8c", "\xf0\x9f\x93\x80"=>"\xee\x9a\x8c", "\xe2\x9c\x82"=>"\xee\x99\xb5", "\xf0\x9f\x93\x8d"=>"[\xe7\x94\xbb\xe3\x81\xb3\xe3\x82\x87\xe3\x81\x86]", "\xf0\x9f\x93\x83"=>"\xee\x9a\x89",
+ "\xf0\x9f\x93\x84"=>"\xee\x9a\x89", "\xf0\x9f\x93\x85"=>"[\xe3\x82\xab\xe3\x83\xac\xe3\x83\xb3\xe3\x83\x80\xe3\x83\xbc]", "\xf0\x9f\x93\x81"=>"[\xe3\x83\x95\xe3\x82\xa9\xe3\x83\xab\xe3\x83\x80]", "\xf0\x9f\x93\x82"=>"[\xe3\x83\x95\xe3\x82\xa9\xe3\x83\xab\xe3\x83\x80]", "\xf0\x9f\x93\x93"=>"\xee\x9a\x83",
+ "\xf0\x9f\x93\x96"=>"\xee\x9a\x83", "\xf0\x9f\x93\x94"=>"\xee\x9a\x83", "\xf0\x9f\x93\x95"=>"\xee\x9a\x83", "\xf0\x9f\x93\x97"=>"\xee\x9a\x83", "\xf0\x9f\x93\x98"=>"\xee\x9a\x83",
+ "\xf0\x9f\x93\x99"=>"\xee\x9a\x83", "\xf0\x9f\x93\x9a"=>"\xee\x9a\x83", "\xf0\x9f\x93\x9b"=>"[\xe5\x90\x8d\xe6\x9c\xad]", "\xf0\x9f\x93\x9c"=>"\xee\x9c\x8a", "\xf0\x9f\x93\x8b"=>"\xee\x9a\x89",
+ "\xf0\x9f\x93\x86"=>"[\xe3\x82\xab\xe3\x83\xac\xe3\x83\xb3\xe3\x83\x80\xe3\x83\xbc]", "\xf0\x9f\x93\x8a"=>"[\xe3\x82\xb0\xe3\x83\xa9\xe3\x83\x95]", "\xf0\x9f\x93\x88"=>"[\xe3\x82\xb0\xe3\x83\xa9\xe3\x83\x95]", "\xf0\x9f\x93\x89"=>"[\xe3\x82\xb0\xe3\x83\xa9\xe3\x83\x95]", "\xf0\x9f\x93\x87"=>"\xee\x9a\x83",
+ "\xf0\x9f\x93\x8c"=>"[\xe7\x94\xbb\xe3\x81\xb3\xe3\x82\x87\xe3\x81\x86]", "\xf0\x9f\x93\x92"=>"\xee\x9a\x83", "\xf0\x9f\x93\x8f"=>"[\xe5\xae\x9a\xe8\xa6\x8f]", "\xf0\x9f\x93\x90"=>"[\xe4\xb8\x89\xe8\xa7\x92\xe5\xae\x9a\xe8\xa6\x8f]", "\xf0\x9f\x93\x91"=>"\xee\x9a\x89",
+ "\xf0\x9f\x8e\xbd"=>"\xee\x99\x92", "\xe2\x9a\xbe"=>"\xee\x99\x93", "\xe2\x9b\xb3"=>"\xee\x99\x94", "\xf0\x9f\x8e\xbe"=>"\xee\x99\x95", "\xe2\x9a\xbd"=>"\xee\x99\x96",
+ "\xf0\x9f\x8e\xbf"=>"\xee\x99\x97", "\xf0\x9f\x8f\x80"=>"\xee\x99\x98", "\xf0\x9f\x8f\x81"=>"\xee\x99\x99", "\xf0\x9f\x8f\x82"=>"\xee\x9c\x92", "\xf0\x9f\x8f\x83"=>"\xee\x9c\xb3",
+ "\xf0\x9f\x8f\x84"=>"\xee\x9c\x92", "\xf0\x9f\x8f\x86"=>"[\xe3\x83\x88\xe3\x83\xad\xe3\x83\x95\xe3\x82\xa3\xe3\x83\xbc]", "\xf0\x9f\x8f\x88"=>"[\xe3\x83\x95\xe3\x83\x83\xe3\x83\x88\xe3\x83\x9c\xe3\x83\xbc\xe3\x83\xab]", "\xf0\x9f\x8f\x8a"=>"[\xe6\xb0\xb4\xe6\xb3\xb3]", "\xf0\x9f\x9a\x83"=>"\xee\x99\x9b",
+ "\xf0\x9f\x9a\x87"=>"\xee\x99\x9c", "\xe2\x93\x82"=>"\xee\x99\x9c", "\xf0\x9f\x9a\x84"=>"\xee\x99\x9d", "\xf0\x9f\x9a\x85"=>"\xee\x99\x9d", "\xf0\x9f\x9a\x97"=>"\xee\x99\x9e",
+ "\xf0\x9f\x9a\x99"=>"\xee\x99\x9f", "\xf0\x9f\x9a\x8c"=>"\xee\x99\xa0", "\xf0\x9f\x9a\x8f"=>"[\xe3\x83\x90\xe3\x82\xb9\xe5\x81\x9c]", "\xf0\x9f\x9a\xa2"=>"\xee\x99\xa1", "\xe2\x9c\x88"=>"\xee\x99\xa2",
+ "\xe2\x9b\xb5"=>"\xee\x9a\xa3", "\xf0\x9f\x9a\x89"=>"[\xe9\xa7\x85]", "\xf0\x9f\x9a\x80"=>"[\xe3\x83\xad\xe3\x82\xb1\xe3\x83\x83\xe3\x83\x88]", "\xf0\x9f\x9a\xa4"=>"\xee\x9a\xa3", "\xf0\x9f\x9a\x95"=>"\xee\x99\x9e",
+ "\xf0\x9f\x9a\x9a"=>"[\xe3\x83\x88\xe3\x83\xa9\xe3\x83\x83\xe3\x82\xaf]", "\xf0\x9f\x9a\x92"=>"[\xe6\xb6\x88\xe9\x98\xb2\xe8\xbb\x8a]", "\xf0\x9f\x9a\x91"=>"[\xe6\x95\x91\xe6\x80\xa5\xe8\xbb\x8a]", "\xf0\x9f\x9a\x93"=>"[\xe3\x83\x91\xe3\x83\x88\xe3\x82\xab\xe3\x83\xbc]", "\xe2\x9b\xbd"=>"\xee\x99\xab",
+ "\xf0\x9f\x85\xbf"=>"\xee\x99\xac", "\xf0\x9f\x9a\xa5"=>"\xee\x99\xad", "\xf0\x9f\x9a\xa7"=>"[\xe5\xb7\xa5\xe4\xba\x8b\xe4\xb8\xad]", "\xf0\x9f\x9a\xa8"=>"[\xe3\x83\x91\xe3\x83\x88\xe3\x82\xab\xe3\x83\xbc]", "\xe2\x99\xa8"=>"\xee\x9b\xb7",
+ "\xe2\x9b\xba"=>"[\xe3\x82\xad\xe3\x83\xa3\xe3\x83\xb3\xe3\x83\x97]", "\xf0\x9f\x8e\xa0"=>"\xee\x99\xb9", "\xf0\x9f\x8e\xa1"=>"[\xe8\xa6\xb3\xe8\xa6\xa7\xe8\xbb\x8a]", "\xf0\x9f\x8e\xa2"=>"[\xe3\x82\xb8\xe3\x82\xa7\xe3\x83\x83\xe3\x83\x88\xe3\x82\xb3\xe3\x83\xbc\xe3\x82\xb9\xe3\x82\xbf\xe3\x83\xbc]", "\xf0\x9f\x8e\xa3"=>"\xee\x9d\x91",
+ "\xf0\x9f\x8e\xa4"=>"\xee\x99\xb6", "\xf0\x9f\x8e\xa5"=>"\xee\x99\xb7", "\xf0\x9f\x8e\xa6"=>"\xee\x99\xb7", "\xf0\x9f\x8e\xa7"=>"\xee\x99\xba", "\xf0\x9f\x8e\xa8"=>"\xee\x99\xbb",
+ "\xf0\x9f\x8e\xa9"=>"\xee\x99\xbc", "\xf0\x9f\x8e\xaa"=>"\xee\x99\xbd", "\xf0\x9f\x8e\xab"=>"\xee\x99\xbe", "\xf0\x9f\x8e\xac"=>"\xee\x9a\xac", "\xf0\x9f\x8e\xad"=>"[\xe6\xbc\x94\xe5\x8a\x87]",
+ "\xf0\x9f\x8e\xae"=>"\xee\x9a\x8b", "\xf0\x9f\x80\x84"=>"[\xe9\xba\xbb\xe9\x9b\x80]", "\xf0\x9f\x8e\xaf"=>"[\xe7\x9a\x84\xe4\xb8\xad]", "\xf0\x9f\x8e\xb0"=>"[777]", "\xf0\x9f\x8e\xb1"=>"[\xe3\x83\x93\xe3\x83\xaa\xe3\x83\xa4\xe3\x83\xbc\xe3\x83\x89]",
+ "\xf0\x9f\x8e\xb2"=>"[\xe3\x82\xb5\xe3\x82\xa4\xe3\x82\xb3\xe3\x83\xad]", "\xf0\x9f\x8e\xb3"=>"[\xe3\x83\x9c\xe3\x83\xbc\xe3\x83\xaa\xe3\x83\xb3\xe3\x82\xb0]", "\xf0\x9f\x8e\xb4"=>"[\xe8\x8a\xb1\xe6\x9c\xad]", "\xf0\x9f\x83\x8f"=>"[\xe3\x82\xb8\xe3\x83\xa7\xe3\x83\xbc\xe3\x82\xab\xe3\x83\xbc]", "\xf0\x9f\x8e\xb5"=>"\xee\x9b\xb6",
+ "\xf0\x9f\x8e\xb6"=>"\xee\x9b\xbf", "\xf0\x9f\x8e\xb7"=>"[\xe3\x82\xb5\xe3\x83\x83\xe3\x82\xaf\xe3\x82\xb9]", "\xf0\x9f\x8e\xb8"=>"[\xe3\x82\xae\xe3\x82\xbf\xe3\x83\xbc]", "\xf0\x9f\x8e\xb9"=>"[\xe3\x83\x94\xe3\x82\xa2\xe3\x83\x8e]", "\xf0\x9f\x8e\xba"=>"[\xe3\x83\x88\xe3\x83\xa9\xe3\x83\xb3\xe3\x83\x9a\xe3\x83\x83\xe3\x83\x88]",
+ "\xf0\x9f\x8e\xbb"=>"[\xe3\x83\x90\xe3\x82\xa4\xe3\x82\xaa\xe3\x83\xaa\xe3\x83\xb3]", "\xf0\x9f\x8e\xbc"=>"\xee\x9b\xbf", "\xe3\x80\xbd"=>"[\xe6\xad\x8c\xe8\xa8\x98\xe5\x8f\xb7]", "\xf0\x9f\x93\xb7"=>"\xee\x9a\x81", "\xf0\x9f\x93\xb9"=>"\xee\x99\xb7",
+ "\xf0\x9f\x93\xba"=>"\xee\x9a\x8a", "\xf0\x9f\x93\xbb"=>"[\xe3\x83\xa9\xe3\x82\xb8\xe3\x82\xaa]", "\xf0\x9f\x93\xbc"=>"[\xe3\x83\x93\xe3\x83\x87\xe3\x82\xaa]", "\xf0\x9f\x92\x8b"=>"\xee\x9b\xb9", "\xf0\x9f\x92\x8c"=>"\xee\x9c\x97",
+ "\xf0\x9f\x92\x8d"=>"\xee\x9c\x9b", "\xf0\x9f\x92\x8e"=>"\xee\x9c\x9b", "\xf0\x9f\x92\x8f"=>"\xee\x9b\xb9", "\xf0\x9f\x92\x90"=>"[\xe8\x8a\xb1\xe6\x9d\x9f]", "\xf0\x9f\x92\x91"=>"\xee\x9b\xad",
+ "\xf0\x9f\x92\x92"=>"[\xe7\xb5\x90\xe5\xa9\x9a\xe5\xbc\x8f]", "\xf0\x9f\x94\x9e"=>"[18\xe7\xa6\x81]", "\xc2\xa9"=>"\xee\x9c\xb1", "\xc2\xae"=>"\xee\x9c\xb6", "\xe2\x84\xa2"=>"\xee\x9c\xb2",
+ "\xe2\x84\xb9"=>"[\xef\xbd\x89]", "#\xe2\x83\xa3"=>"\xee\x9b\xa0", "1\xe2\x83\xa3"=>"\xee\x9b\xa2", "2\xe2\x83\xa3"=>"\xee\x9b\xa3", "3\xe2\x83\xa3"=>"\xee\x9b\xa4",
+ "4\xe2\x83\xa3"=>"\xee\x9b\xa5", "5\xe2\x83\xa3"=>"\xee\x9b\xa6", "6\xe2\x83\xa3"=>"\xee\x9b\xa7", "7\xe2\x83\xa3"=>"\xee\x9b\xa8", "8\xe2\x83\xa3"=>"\xee\x9b\xa9",
+ "9\xe2\x83\xa3"=>"\xee\x9b\xaa", "0\xe2\x83\xa3"=>"\xee\x9b\xab", "\xf0\x9f\x94\x9f"=>"[10]", "\xf0\x9f\x93\xb6"=>"[\xe3\x83\x90\xe3\x83\xaa3]", "\xf0\x9f\x93\xb3"=>"[\xe3\x83\x9e\xe3\x83\x8a\xe3\x83\xbc\xe3\x83\xa2\xe3\x83\xbc\xe3\x83\x89]",
+ "\xf0\x9f\x93\xb4"=>"[\xe3\x82\xb1\xe3\x83\xbc\xe3\x82\xbf\xe3\x82\xa4OFF]", "\xf0\x9f\x8d\x94"=>"\xee\x99\xb3", "\xf0\x9f\x8d\x99"=>"\xee\x9d\x89", "\xf0\x9f\x8d\xb0"=>"\xee\x9d\x8a", "\xf0\x9f\x8d\x9c"=>"\xee\x9d\x8c",
+ "\xf0\x9f\x8d\x9e"=>"\xee\x9d\x8d", "\xf0\x9f\x8d\xb3"=>"[\xe3\x83\x95\xe3\x83\xa9\xe3\x82\xa4\xe3\x83\x91\xe3\x83\xb3]", "\xf0\x9f\x8d\xa6"=>"[\xe3\x82\xbd\xe3\x83\x95\xe3\x83\x88\xe3\x82\xaf\xe3\x83\xaa\xe3\x83\xbc\xe3\x83\xa0]", "\xf0\x9f\x8d\x9f"=>"[\xe3\x83\x9d\xe3\x83\x86\xe3\x83\x88]", "\xf0\x9f\x8d\xa1"=>"[\xe3\x81\xa0\xe3\x82\x93\xe3\x81\x94]",
+ "\xf0\x9f\x8d\x98"=>"[\xe3\x81\x9b\xe3\x82\x93\xe3\x81\xb9\xe3\x81\x84]", "\xf0\x9f\x8d\x9a"=>"\xee\x9d\x8c", "\xf0\x9f\x8d\x9d"=>"[\xe3\x83\x91\xe3\x82\xb9\xe3\x82\xbf]", "\xf0\x9f\x8d\x9b"=>"[\xe3\x82\xab\xe3\x83\xac\xe3\x83\xbc]", "\xf0\x9f\x8d\xa2"=>"[\xe3\x81\x8a\xe3\x81\xa7\xe3\x82\x93]",
+ "\xf0\x9f\x8d\xa3"=>"[\xe3\x81\x99\xe3\x81\x97]", "\xf0\x9f\x8d\xb1"=>"[\xe5\xbc\x81\xe5\xbd\x93]", "\xf0\x9f\x8d\xb2"=>"[\xe9\x8d\x8b]", "\xf0\x9f\x8d\xa7"=>"[\xe3\x82\xab\xe3\x82\xad\xe6\xb0\xb7]", "\xf0\x9f\x8d\x96"=>"[\xe8\x82\x89]",
+ "\xf0\x9f\x8d\xa5"=>"\xee\x99\x83", "\xf0\x9f\x8d\xa0"=>"[\xe3\x82\x84\xe3\x81\x8d\xe3\x81\x84\xe3\x82\x82]", "\xf0\x9f\x8d\x95"=>"[\xe3\x83\x94\xe3\x82\xb6]", "\xf0\x9f\x8d\x97"=>"[\xe3\x83\x81\xe3\x82\xad\xe3\x83\xb3]", "\xf0\x9f\x8d\xa8"=>"[\xe3\x82\xa2\xe3\x82\xa4\xe3\x82\xb9\xe3\x82\xaf\xe3\x83\xaa\xe3\x83\xbc\xe3\x83\xa0]",
+ "\xf0\x9f\x8d\xa9"=>"[\xe3\x83\x89\xe3\x83\xbc\xe3\x83\x8a\xe3\x83\x84]", "\xf0\x9f\x8d\xaa"=>"[\xe3\x82\xaf\xe3\x83\x83\xe3\x82\xad\xe3\x83\xbc]", "\xf0\x9f\x8d\xab"=>"[\xe3\x83\x81\xe3\x83\xa7\xe3\x82\xb3]", "\xf0\x9f\x8d\xac"=>"[\xe3\x82\xad\xe3\x83\xa3\xe3\x83\xb3\xe3\x83\x87\xe3\x82\xa3]", "\xf0\x9f\x8d\xad"=>"[\xe3\x82\xad\xe3\x83\xa3\xe3\x83\xb3\xe3\x83\x87\xe3\x82\xa3]",
+ "\xf0\x9f\x8d\xae"=>"[\xe3\x83\x97\xe3\x83\xaa\xe3\x83\xb3]", "\xf0\x9f\x8d\xaf"=>"[\xe3\x83\x8f\xe3\x83\x81\xe3\x83\x9f\xe3\x83\x84]", "\xf0\x9f\x8d\xa4"=>"[\xe3\x82\xa8\xe3\x83\x93\xe3\x83\x95\xe3\x83\xa9\xe3\x82\xa4]", "\xf0\x9f\x8d\xb4"=>"\xee\x99\xaf", "\xe2\x98\x95"=>"\xee\x99\xb0",
+ "\xf0\x9f\x8d\xb8"=>"\xee\x99\xb1", "\xf0\x9f\x8d\xba"=>"\xee\x99\xb2", "\xf0\x9f\x8d\xb5"=>"\xee\x9c\x9e", "\xf0\x9f\x8d\xb6"=>"\xee\x9d\x8b", "\xf0\x9f\x8d\xb7"=>"\xee\x9d\x96",
+ "\xf0\x9f\x8d\xbb"=>"\xee\x99\xb2", "\xf0\x9f\x8d\xb9"=>"\xee\x99\xb1", "\xe2\x86\x97"=>"\xee\x99\xb8", "\xe2\x86\x98"=>"\xee\x9a\x96", "\xe2\x86\x96"=>"\xee\x9a\x97",
+ "\xe2\x86\x99"=>"\xee\x9a\xa5", "\xe2\xa4\xb4"=>"\xee\x9b\xb5", "\xe2\xa4\xb5"=>"\xee\x9c\x80", "\xe2\x86\x94"=>"\xee\x9c\xbc", "\xe2\x86\x95"=>"\xee\x9c\xbd",
+ "\xe2\xac\x86"=>"[\xe2\x86\x91]", "\xe2\xac\x87"=>"[\xe2\x86\x93]", "\xe2\x9e\xa1"=>"[\xe2\x86\x92]", "\xe2\xac\x85"=>"[\xe2\x86\x90]", "\xe2\x96\xb6"=>"[>]",
+ "\xe2\x97\x80"=>"[<]", "\xe2\x8f\xa9"=>"[>>]", "\xe2\x8f\xaa"=>"[<<]", "\xe2\x8f\xab"=>"\xe2\x96\xb2", "\xe2\x8f\xac"=>"\xe2\x96\xbc",
+ "\xf0\x9f\x94\xba"=>"\xe2\x96\xb2", "\xf0\x9f\x94\xbb"=>"\xe2\x96\xbc", "\xf0\x9f\x94\xbc"=>"\xe2\x96\xb2", "\xf0\x9f\x94\xbd"=>"\xe2\x96\xbc", "\xe2\xad\x95"=>"\xee\x9a\xa0",
+ "\xe2\x9d\x8c"=>"[\xc3\x97]", "\xe2\x9d\x8e"=>"[\xc3\x97]", "\xe2\x9d\x97"=>"\xee\x9c\x82", "\xe2\x81\x89"=>"\xee\x9c\x83", "\xe2\x80\xbc"=>"\xee\x9c\x84",
+ "\xe2\x9d\x93"=>"[\xef\xbc\x9f]", "\xe2\x9d\x94"=>"[\xef\xbc\x9f]", "\xe2\x9d\x95"=>"\xee\x9c\x82", "\xe3\x80\xb0"=>"\xee\x9c\x89", "\xe2\x9e\xb0"=>"\xee\x9c\x8a",
+ "\xe2\x9e\xbf"=>"\xee\x9b\x9f", "\xe2\x9d\xa4"=>"\xee\x9b\xac", "\xf0\x9f\x92\x93"=>"\xee\x9b\xad", "\xf0\x9f\x92\x94"=>"\xee\x9b\xae", "\xf0\x9f\x92\x95"=>"\xee\x9b\xaf",
+ "\xf0\x9f\x92\x96"=>"\xee\x9b\xac", "\xf0\x9f\x92\x97"=>"\xee\x9b\xad", "\xf0\x9f\x92\x98"=>"\xee\x9b\xac", "\xf0\x9f\x92\x99"=>"\xee\x9b\xac", "\xf0\x9f\x92\x9a"=>"\xee\x9b\xac",
+ "\xf0\x9f\x92\x9b"=>"\xee\x9b\xac", "\xf0\x9f\x92\x9c"=>"\xee\x9b\xac", "\xf0\x9f\x92\x9d"=>"\xee\x9b\xac", "\xf0\x9f\x92\x9e"=>"\xee\x9b\xad", "\xf0\x9f\x92\x9f"=>"\xee\x9b\xb8",
+ "\xe2\x99\xa5"=>"\xee\x9a\x8d", "\xe2\x99\xa0"=>"\xee\x9a\x8e", "\xe2\x99\xa6"=>"\xee\x9a\x8f", "\xe2\x99\xa3"=>"\xee\x9a\x90", "\xf0\x9f\x9a\xac"=>"\xee\x99\xbf",
+ "\xf0\x9f\x9a\xad"=>"\xee\x9a\x80", "\xe2\x99\xbf"=>"\xee\x9a\x9b", "\xf0\x9f\x9a\xa9"=>"\xee\x9b\x9e", "\xe2\x9a\xa0"=>"\xee\x9c\xb7", "\xe2\x9b\x94"=>"\xee\x9c\xaf",
+ "\xe2\x99\xbb"=>"\xee\x9c\xb5", "\xf0\x9f\x9a\xb2"=>"\xee\x9c\x9d", "\xf0\x9f\x9a\xb6"=>"\xee\x9c\xb3", "\xf0\x9f\x9a\xb9"=>"[\xe2\x99\x82]", "\xf0\x9f\x9a\xba"=>"[\xe2\x99\x80]",
+ "\xf0\x9f\x9b\x80"=>"\xee\x9b\xb7", "\xf0\x9f\x9a\xbb"=>"\xee\x99\xae", "\xf0\x9f\x9a\xbd"=>"\xee\x99\xae", "\xf0\x9f\x9a\xbe"=>"\xee\x99\xae", "\xf0\x9f\x9a\xbc"=>"[\xe8\xb5\xa4\xe3\x81\xa1\xe3\x82\x83\xe3\x82\x93]",
+ "\xf0\x9f\x9a\xaa"=>"\xee\x9c\x94", "\xf0\x9f\x9a\xab"=>"\xee\x9c\xb8", "\xe2\x9c\x94"=>"[\xe3\x83\x81\xe3\x82\xa7\xe3\x83\x83\xe3\x82\xaf\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]", "\xf0\x9f\x86\x91"=>"\xee\x9b\x9b", "\xf0\x9f\x86\x92"=>"[COOL]",
+ "\xf0\x9f\x86\x93"=>"\xee\x9b\x97", "\xf0\x9f\x86\x94"=>"\xee\x9b\x98", "\xf0\x9f\x86\x95"=>"\xee\x9b\x9d", "\xf0\x9f\x86\x96"=>"\xee\x9c\xaf", "\xf0\x9f\x86\x97"=>"\xee\x9c\x8b",
+ "\xf0\x9f\x86\x98"=>"[SOS]", "\xf0\x9f\x86\x99"=>"[UP!]", "\xf0\x9f\x86\x9a"=>"[VS]", "\xf0\x9f\x88\x81"=>"[\xe3\x82\xb3\xe3\x82\xb3]", "\xf0\x9f\x88\x82"=>"[\xe3\x82\xb5\xe3\x83\xbc\xe3\x83\x93\xe3\x82\xb9]",
+ "\xf0\x9f\x88\xb2"=>"\xee\x9c\xb8", "\xf0\x9f\x88\xb3"=>"\xee\x9c\xb9", "\xf0\x9f\x88\xb4"=>"\xee\x9c\xba", "\xf0\x9f\x88\xb5"=>"\xee\x9c\xbb", "\xf0\x9f\x88\xb6"=>"[\xe6\x9c\x89]",
+ "\xf0\x9f\x88\x9a"=>"[\xe7\x84\xa1]", "\xf0\x9f\x88\xb7"=>"[\xe6\x9c\x88]", "\xf0\x9f\x88\xb8"=>"[\xe7\x94\xb3]", "\xf0\x9f\x88\xb9"=>"[\xe5\x89\xb2]", "\xf0\x9f\x88\xaf"=>"[\xe6\x8c\x87]",
+ "\xf0\x9f\x88\xba"=>"[\xe5\x96\xb6]", "\xe3\x8a\x99"=>"\xee\x9c\xb4", "\xe3\x8a\x97"=>"[\xe7\xa5\x9d]", "\xf0\x9f\x89\x90"=>"[\xe5\xbe\x97]", "\xf0\x9f\x89\x91"=>"[\xe5\x8f\xaf]",
+ "\xe2\x9e\x95"=>"[\xef\xbc\x8b]", "\xe2\x9e\x96"=>"[\xef\xbc\x8d]", "\xe2\x9c\x96"=>"[\xc3\x97]", "\xe2\x9e\x97"=>"[\xc3\xb7]", "\xf0\x9f\x92\xa0"=>"\xee\x9b\xb8",
+ "\xf0\x9f\x92\xa1"=>"\xee\x9b\xbb", "\xf0\x9f\x92\xa2"=>"\xee\x9b\xbc", "\xf0\x9f\x92\xa3"=>"\xee\x9b\xbe", "\xf0\x9f\x92\xa4"=>"\xee\x9c\x81", "\xf0\x9f\x92\xa5"=>"\xee\x9c\x85",
+ "\xf0\x9f\x92\xa6"=>"\xee\x9c\x86", "\xf0\x9f\x92\xa7"=>"\xee\x9c\x87", "\xf0\x9f\x92\xa8"=>"\xee\x9c\x88", "\xf0\x9f\x92\xa9"=>"[\xe3\x82\xa6\xe3\x83\xb3\xe3\x83\x81]", "\xf0\x9f\x92\xaa"=>"[\xe5\x8a\x9b\xe3\x81\x93\xe3\x81\xb6]",
+ "\xf0\x9f\x92\xab"=>"[\xe3\x82\xaf\xe3\x83\xa9\xe3\x82\xaf\xe3\x83\xa9]", "\xf0\x9f\x92\xac"=>"[\xe3\x83\x95\xe3\x82\xad\xe3\x83\x80\xe3\x82\xb7]", "\xe2\x9c\xa8"=>"\xee\x9b\xba", "\xe2\x9c\xb4"=>"\xee\x9b\xb8", "\xe2\x9c\xb3"=>"\xee\x9b\xb8",
+ "\xe2\x9a\xaa"=>"\xee\x9a\x9c", "\xe2\x9a\xab"=>"\xee\x9a\x9c", "\xf0\x9f\x94\xb4"=>"\xee\x9a\x9c", "\xf0\x9f\x94\xb5"=>"\xee\x9a\x9c", "\xf0\x9f\x94\xb2"=>"\xee\x9a\x9c",
+ "\xf0\x9f\x94\xb3"=>"\xee\x9a\x9c", "\xe2\xad\x90"=>"[\xe2\x98\x86]", "\xe2\xac\x9c"=>"\xe2\x96\xa0", "\xe2\xac\x9b"=>"\xe2\x96\xa0", "\xe2\x96\xab"=>"\xe2\x96\xa0",
+ "\xe2\x96\xaa"=>"\xe2\x96\xa0", "\xe2\x97\xbd"=>"\xe2\x96\xa0", "\xe2\x97\xbe"=>"\xe2\x96\xa0", "\xe2\x97\xbb"=>"\xe2\x96\xa0", "\xe2\x97\xbc"=>"\xe2\x96\xa0",
+ "\xf0\x9f\x94\xb6"=>"\xe2\x97\x86", "\xf0\x9f\x94\xb7"=>"\xe2\x97\x86", "\xf0\x9f\x94\xb8"=>"\xe2\x97\x86", "\xf0\x9f\x94\xb9"=>"\xe2\x97\x86", "\xe2\x9d\x87"=>"\xee\x9b\xba",
+ "\xf0\x9f\x92\xae"=>"[\xe8\x8a\xb1\xe4\xb8\xb8]", "\xf0\x9f\x92\xaf"=>"[100\xe7\x82\xb9]", "\xe2\x86\xa9"=>"\xee\x9b\x9a", "\xe2\x86\xaa"=>"\xe2\x94\x94\xe2\x86\x92", "\xf0\x9f\x94\x83"=>"\xee\x9c\xb5",
+ "\xf0\x9f\x94\x8a"=>"[\xe3\x82\xb9\xe3\x83\x94\xe3\x83\xbc\xe3\x82\xab]", "\xf0\x9f\x94\x8b"=>"[\xe9\x9b\xbb\xe6\xb1\xa0]", "\xf0\x9f\x94\x8c"=>"[\xe3\x82\xb3\xe3\x83\xb3\xe3\x82\xbb\xe3\x83\xb3\xe3\x83\x88]", "\xf0\x9f\x94\x8d"=>"\xee\x9b\x9c", "\xf0\x9f\x94\x8e"=>"\xee\x9b\x9c",
+ "\xf0\x9f\x94\x92"=>"\xee\x9b\x99", "\xf0\x9f\x94\x93"=>"\xee\x9b\x99", "\xf0\x9f\x94\x8f"=>"\xee\x9b\x99", "\xf0\x9f\x94\x90"=>"\xee\x9b\x99", "\xf0\x9f\x94\x91"=>"\xee\x9b\x99",
+ "\xf0\x9f\x94\x94"=>"\xee\x9c\x93", "\xe2\x98\x91"=>"[\xe3\x83\x81\xe3\x82\xa7\xe3\x83\x83\xe3\x82\xaf\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]", "\xf0\x9f\x94\x98"=>"[\xe3\x83\xa9\xe3\x82\xb8\xe3\x82\xaa\xe3\x83\x9c\xe3\x82\xbf\xe3\x83\xb3]", "\xf0\x9f\x94\x96"=>"[\xe3\x83\x96\xe3\x83\x83\xe3\x82\xaf\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]", "\xf0\x9f\x94\x97"=>"[\xe3\x83\xaa\xe3\x83\xb3\xe3\x82\xaf]",
+ "\xf0\x9f\x94\x99"=>"[\xe2\x86\x90BACK]", "\xf0\x9f\x94\x9a"=>"\xee\x9a\xb9", "\xf0\x9f\x94\x9b"=>"\xee\x9a\xb8", "\xf0\x9f\x94\x9c"=>"\xee\x9a\xb7", "\xf0\x9f\x94\x9d"=>"[TOP]",
+ "\xe2\x9c\x85"=>"[\xe3\x83\x81\xe3\x82\xa7\xe3\x83\x83\xe3\x82\xaf\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]", "\xe2\x9c\x8a"=>"\xee\x9a\x93", "\xe2\x9c\x8b"=>"\xee\x9a\x95", "\xe2\x9c\x8c"=>"\xee\x9a\x94", "\xf0\x9f\x91\x8a"=>"\xee\x9b\xbd",
+ "\xf0\x9f\x91\x8d"=>"\xee\x9c\xa7", "\xe2\x98\x9d"=>"[\xe4\xba\xba\xe5\xb7\xae\xe3\x81\x97\xe6\x8c\x87]", "\xf0\x9f\x91\x86"=>"[\xe2\x86\x91]", "\xf0\x9f\x91\x87"=>"[\xe2\x86\x93]", "\xf0\x9f\x91\x88"=>"[\xe2\x86\x90]",
+ "\xf0\x9f\x91\x89"=>"[\xe2\x86\x92]", "\xf0\x9f\x91\x8b"=>"\xee\x9a\x95", "\xf0\x9f\x91\x8f"=>"[\xe6\x8b\x8d\xe6\x89\x8b]", "\xf0\x9f\x91\x8c"=>"\xee\x9c\x8b", "\xf0\x9f\x91\x8e"=>"\xee\x9c\x80",
+ "\xf0\x9f\x91\x90"=>"\xee\x9a\x95",
+ ),
+ 'unified_to_kddi' => array(
+ "\xe2\x98\x80"=>"\xee\x92\x88", "\xe2\x98\x81"=>"\xee\x92\x8d", "\xe2\x98\x94"=>"\xee\x92\x8c", "\xe2\x9b\x84"=>"\xee\x92\x85",
+ "\xe2\x9a\xa1"=>"\xee\x92\x87", "\xf0\x9f\x8c\x80"=>"\xee\x91\xa9", "\xf0\x9f\x8c\x81"=>"\xee\x96\x98", "\xf0\x9f\x8c\x82"=>"\xee\xab\xa8", "\xf0\x9f\x8c\x83"=>"\xee\xab\xb1",
+ "\xf0\x9f\x8c\x84"=>"\xee\xab\xb4", "\xf0\x9f\x8c\x85"=>"\xee\xab\xb4", "\xf0\x9f\x8c\x86"=>"\xee\x97\x9a", "\xf0\x9f\x8c\x87"=>"\xee\x97\x9a", "\xf0\x9f\x8c\x88"=>"\xee\xab\xb2",
+ "\xe2\x9d\x84"=>"\xee\x92\x8a", "\xe2\x9b\x85"=>"\xee\x92\x8e", "\xf0\x9f\x8c\x89"=>"\xee\x92\xbf", "\xf0\x9f\x8c\x8a"=>"\xee\xad\xbc", "\xf0\x9f\x8c\x8b"=>"\xee\xad\x93",
+ "\xf0\x9f\x8c\x8c"=>"\xee\xad\x9f", "\xf0\x9f\x8c\x8f"=>"\xee\x96\xb3", "\xf0\x9f\x8c\x91"=>"\xee\x96\xa8", "\xf0\x9f\x8c\x94"=>"\xee\x96\xa9", "\xf0\x9f\x8c\x93"=>"\xee\x96\xaa",
+ "\xf0\x9f\x8c\x99"=>"\xee\x92\x86", "\xf0\x9f\x8c\x95"=>"\xe2\x97\x8b", "\xf0\x9f\x8c\x9b"=>"\xee\x92\x89", "\xf0\x9f\x8c\x9f"=>"\xee\x92\x8b", "\xf0\x9f\x8c\xa0"=>"\xee\x91\xa8",
+ "\xf0\x9f\x95\x90"=>"\xee\x96\x94", "\xf0\x9f\x95\x91"=>"\xee\x96\x94", "\xf0\x9f\x95\x92"=>"\xee\x96\x94", "\xf0\x9f\x95\x93"=>"\xee\x96\x94", "\xf0\x9f\x95\x94"=>"\xee\x96\x94",
+ "\xf0\x9f\x95\x95"=>"\xee\x96\x94", "\xf0\x9f\x95\x96"=>"\xee\x96\x94", "\xf0\x9f\x95\x97"=>"\xee\x96\x94", "\xf0\x9f\x95\x98"=>"\xee\x96\x94", "\xf0\x9f\x95\x99"=>"\xee\x96\x94",
+ "\xf0\x9f\x95\x9a"=>"\xee\x96\x94", "\xf0\x9f\x95\x9b"=>"\xee\x96\x94", "\xe2\x8c\x9a"=>"\xee\x95\xba", "\xe2\x8c\x9b"=>"\xee\x95\xbb", "\xe2\x8f\xb0"=>"\xee\x96\x94",
+ "\xe2\x8f\xb3"=>"\xee\x91\xbc", "\xe2\x99\x88"=>"\xee\x92\x8f", "\xe2\x99\x89"=>"\xee\x92\x90", "\xe2\x99\x8a"=>"\xee\x92\x91", "\xe2\x99\x8b"=>"\xee\x92\x92",
+ "\xe2\x99\x8c"=>"\xee\x92\x93", "\xe2\x99\x8d"=>"\xee\x92\x94", "\xe2\x99\x8e"=>"\xee\x92\x95", "\xe2\x99\x8f"=>"\xee\x92\x96", "\xe2\x99\x90"=>"\xee\x92\x97",
+ "\xe2\x99\x91"=>"\xee\x92\x98", "\xe2\x99\x92"=>"\xee\x92\x99", "\xe2\x99\x93"=>"\xee\x92\x9a", "\xe2\x9b\x8e"=>"\xee\x92\x9b", "\xf0\x9f\x8d\x80"=>"\xee\x94\x93",
+ "\xf0\x9f\x8c\xb7"=>"\xee\x93\xa4", "\xf0\x9f\x8c\xb1"=>"\xee\xad\xbd", "\xf0\x9f\x8d\x81"=>"\xee\x93\x8e", "\xf0\x9f\x8c\xb8"=>"\xee\x93\x8a", "\xf0\x9f\x8c\xb9"=>"\xee\x96\xba",
+ "\xf0\x9f\x8d\x82"=>"\xee\x97\x8d", "\xf0\x9f\x8d\x83"=>"\xee\x97\x8d", "\xf0\x9f\x8c\xba"=>"\xee\xaa\x94", "\xf0\x9f\x8c\xbb"=>"\xee\x93\xa3", "\xf0\x9f\x8c\xb4"=>"\xee\x93\xa2",
+ "\xf0\x9f\x8c\xb5"=>"\xee\xaa\x96", "\xf0\x9f\x8c\xbe"=>"[\xe7\xa8\xb2\xe7\xa9\x82]", "\xf0\x9f\x8c\xbd"=>"\xee\xac\xb6", "\xf0\x9f\x8d\x84"=>"\xee\xac\xb7", "\xf0\x9f\x8c\xb0"=>"\xee\xac\xb8",
+ "\xf0\x9f\x8c\xbc"=>"\xee\xad\x89", "\xf0\x9f\x8c\xbf"=>"\xee\xae\x82", "\xf0\x9f\x8d\x92"=>"\xee\x93\x92", "\xf0\x9f\x8d\x8c"=>"\xee\xac\xb5", "\xf0\x9f\x8d\x8e"=>"\xee\xaa\xb9",
+ "\xf0\x9f\x8d\x8a"=>"\xee\xaa\xba", "\xf0\x9f\x8d\x93"=>"\xee\x93\x94", "\xf0\x9f\x8d\x89"=>"\xee\x93\x8d", "\xf0\x9f\x8d\x85"=>"\xee\xaa\xbb", "\xf0\x9f\x8d\x86"=>"\xee\xaa\xbc",
+ "\xf0\x9f\x8d\x88"=>"\xee\xac\xb2", "\xf0\x9f\x8d\x8d"=>"\xee\xac\xb3", "\xf0\x9f\x8d\x87"=>"\xee\xac\xb4", "\xf0\x9f\x8d\x91"=>"\xee\xac\xb9", "\xf0\x9f\x8d\x8f"=>"\xee\xad\x9a",
+ "\xf0\x9f\x91\x80"=>"\xee\x96\xa4", "\xf0\x9f\x91\x82"=>"\xee\x96\xa5", "\xf0\x9f\x91\x83"=>"\xee\xab\x90", "\xf0\x9f\x91\x84"=>"\xee\xab\x91", "\xf0\x9f\x91\x85"=>"\xee\xad\x87",
+ "\xf0\x9f\x92\x84"=>"\xee\x94\x89", "\xf0\x9f\x92\x85"=>"\xee\xaa\xa0", "\xf0\x9f\x92\x86"=>"\xee\x94\x8b", "\xf0\x9f\x92\x87"=>"\xee\xaa\xa1", "\xf0\x9f\x92\x88"=>"\xee\xaa\xa2",
+ "\xf0\x9f\x91\xa4"=>"\xe3\x80\x93", "\xf0\x9f\x91\xa6"=>"\xee\x93\xbc", "\xf0\x9f\x91\xa7"=>"\xee\x93\xba", "\xf0\x9f\x91\xa8"=>"\xee\x93\xbc", "\xf0\x9f\x91\xa9"=>"\xee\x93\xba",
+ "\xf0\x9f\x91\xaa"=>"\xee\x94\x81", "\xf0\x9f\x91\xab"=>"[\xe3\x82\xab\xe3\x83\x83\xe3\x83\x97\xe3\x83\xab]", "\xf0\x9f\x91\xae"=>"\xee\x97\x9d", "\xf0\x9f\x91\xaf"=>"\xee\xab\x9b", "\xf0\x9f\x91\xb0"=>"\xee\xab\xa9",
+ "\xf0\x9f\x91\xb1"=>"\xee\xac\x93", "\xf0\x9f\x91\xb2"=>"\xee\xac\x94", "\xf0\x9f\x91\xb3"=>"\xee\xac\x95", "\xf0\x9f\x91\xb4"=>"\xee\xac\x96", "\xf0\x9f\x91\xb5"=>"\xee\xac\x97",
+ "\xf0\x9f\x91\xb6"=>"\xee\xac\x98", "\xf0\x9f\x91\xb7"=>"\xee\xac\x99", "\xf0\x9f\x91\xb8"=>"\xee\xac\x9a", "\xf0\x9f\x91\xb9"=>"\xee\xad\x84", "\xf0\x9f\x91\xba"=>"\xee\xad\x85",
+ "\xf0\x9f\x91\xbb"=>"\xee\x93\x8b", "\xf0\x9f\x91\xbc"=>"\xee\x96\xbf", "\xf0\x9f\x91\xbd"=>"\xee\x94\x8e", "\xf0\x9f\x91\xbe"=>"\xee\x93\xac", "\xf0\x9f\x91\xbf"=>"\xee\x93\xaf",
+ "\xf0\x9f\x92\x80"=>"\xee\x93\xb8", "\xf0\x9f\x92\x81"=>"[\xe6\xa1\x88\xe5\x86\x85]", "\xf0\x9f\x92\x82"=>"[\xe8\xa1\x9b\xe5\x85\xb5]", "\xf0\x9f\x92\x83"=>"\xee\xac\x9c", "\xf0\x9f\x90\x8c"=>"\xee\xad\xbe",
+ "\xf0\x9f\x90\x8d"=>"\xee\xac\xa2", "\xf0\x9f\x90\x8e"=>"\xee\x93\x98", "\xf0\x9f\x90\x94"=>"\xee\xac\xa3", "\xf0\x9f\x90\x97"=>"\xee\xac\xa4", "\xf0\x9f\x90\xab"=>"\xee\xac\xa5",
+ "\xf0\x9f\x90\x98"=>"\xee\xac\x9f", "\xf0\x9f\x90\xa8"=>"\xee\xac\xa0", "\xf0\x9f\x90\x92"=>"\xee\x93\x99", "\xf0\x9f\x90\x91"=>"\xee\x92\x8f", "\xf0\x9f\x90\x99"=>"\xee\x97\x87",
+ "\xf0\x9f\x90\x9a"=>"\xee\xab\xac", "\xf0\x9f\x90\x9b"=>"\xee\xac\x9e", "\xf0\x9f\x90\x9c"=>"\xee\x93\x9d", "\xf0\x9f\x90\x9d"=>"\xee\xad\x97", "\xf0\x9f\x90\x9e"=>"\xee\xad\x98",
+ "\xf0\x9f\x90\xa0"=>"\xee\xac\x9d", "\xf0\x9f\x90\xa1"=>"\xee\x93\x93", "\xf0\x9f\x90\xa2"=>"\xee\x97\x94", "\xf0\x9f\x90\xa4"=>"\xee\x93\xa0", "\xf0\x9f\x90\xa5"=>"\xee\xad\xb6",
+ "\xf0\x9f\x90\xa6"=>"\xee\x93\xa0", "\xf0\x9f\x90\xa3"=>"\xee\x97\x9b", "\xf0\x9f\x90\xa7"=>"\xee\x93\x9c", "\xf0\x9f\x90\xa9"=>"\xee\x93\x9f", "\xf0\x9f\x90\x9f"=>"\xee\x92\x9a",
+ "\xf0\x9f\x90\xac"=>"\xee\xac\x9b", "\xf0\x9f\x90\xad"=>"\xee\x97\x82", "\xf0\x9f\x90\xaf"=>"\xee\x97\x80", "\xf0\x9f\x90\xb1"=>"\xee\x93\x9b", "\xf0\x9f\x90\xb3"=>"\xee\x91\xb0",
+ "\xf0\x9f\x90\xb4"=>"\xee\x93\x98", "\xf0\x9f\x90\xb5"=>"\xee\x93\x99", "\xf0\x9f\x90\xb6"=>"\xee\x93\xa1", "\xf0\x9f\x90\xb7"=>"\xee\x93\x9e", "\xf0\x9f\x90\xbb"=>"\xee\x97\x81",
+ "\xf0\x9f\x90\xb9"=>"[\xe3\x83\x8f\xe3\x83\xa0\xe3\x82\xb9\xe3\x82\xbf\xe3\x83\xbc]", "\xf0\x9f\x90\xba"=>"\xee\x93\xa1", "\xf0\x9f\x90\xae"=>"\xee\xac\xa1", "\xf0\x9f\x90\xb0"=>"\xee\x93\x97", "\xf0\x9f\x90\xb8"=>"\xee\x93\x9a",
+ "\xf0\x9f\x90\xbe"=>"\xee\x93\xae", "\xf0\x9f\x90\xb2"=>"\xee\xac\xbf", "\xf0\x9f\x90\xbc"=>"\xee\xad\x86", "\xf0\x9f\x90\xbd"=>"\xee\xad\x88", "\xf0\x9f\x98\xa0"=>"\xee\x91\xb2",
+ "\xf0\x9f\x98\xa9"=>"\xee\xad\xa7", "\xf0\x9f\x98\xb2"=>"\xee\xab\x8a", "\xf0\x9f\x98\x9e"=>"\xee\xab\x80", "\xf0\x9f\x98\xb5"=>"\xee\x96\xae", "\xf0\x9f\x98\xb0"=>"\xee\xab\x8b",
+ "\xf0\x9f\x98\x92"=>"\xee\xab\x89", "\xf0\x9f\x98\x8d"=>"\xee\x97\x84", "\xf0\x9f\x98\xa4"=>"\xee\xab\x81", "\xf0\x9f\x98\x9c"=>"\xee\x93\xa7", "\xf0\x9f\x98\x9d"=>"\xee\x93\xa7",
+ "\xf0\x9f\x98\x8b"=>"\xee\xab\x8d", "\xf0\x9f\x98\x98"=>"\xee\xab\x8f", "\xf0\x9f\x98\x9a"=>"\xee\xab\x8e", "\xf0\x9f\x98\xb7"=>"\xee\xab\x87", "\xf0\x9f\x98\xb3"=>"\xee\xab\x88",
+ "\xf0\x9f\x98\x83"=>"\xee\x91\xb1", "\xf0\x9f\x98\x85"=>"\xee\x91\xb1\xee\x96\xb1", "\xf0\x9f\x98\x86"=>"\xee\xab\x85", "\xf0\x9f\x98\x81"=>"\xee\xae\x80", "\xf0\x9f\x98\x82"=>"\xee\xad\xa4",
+ "\xf0\x9f\x98\x8a"=>"\xee\xab\x8d", "\xe2\x98\xba"=>"\xee\x93\xbb", "\xf0\x9f\x98\x84"=>"\xee\x91\xb1", "\xf0\x9f\x98\xa2"=>"\xee\xad\xa9", "\xf0\x9f\x98\xad"=>"\xee\x91\xb3",
+ "\xf0\x9f\x98\xa8"=>"\xee\xab\x86", "\xf0\x9f\x98\xa3"=>"\xee\xab\x82", "\xf0\x9f\x98\xa1"=>"\xee\xad\x9d", "\xf0\x9f\x98\x8c"=>"\xee\xab\x85", "\xf0\x9f\x98\x96"=>"\xee\xab\x83",
+ "\xf0\x9f\x98\x94"=>"\xee\xab\x80", "\xf0\x9f\x98\xb1"=>"\xee\x97\x85", "\xf0\x9f\x98\xaa"=>"\xee\xab\x84", "\xf0\x9f\x98\x8f"=>"\xee\xaa\xbf", "\xf0\x9f\x98\x93"=>"\xee\x97\x86",
+ "\xf0\x9f\x98\xa5"=>"\xee\x97\x86", "\xf0\x9f\x98\xab"=>"\xee\x91\xb4", "\xf0\x9f\x98\x89"=>"\xee\x97\x83", "\xf0\x9f\x98\xba"=>"\xee\xad\xa1", "\xf0\x9f\x98\xb8"=>"\xee\xad\xbf",
+ "\xf0\x9f\x98\xb9"=>"\xee\xad\xa3", "\xf0\x9f\x98\xbd"=>"\xee\xad\xa0", "\xf0\x9f\x98\xbb"=>"\xee\xad\xa5", "\xf0\x9f\x98\xbf"=>"\xee\xad\xa8", "\xf0\x9f\x98\xbe"=>"\xee\xad\x9e",
+ "\xf0\x9f\x98\xbc"=>"\xee\xad\xaa", "\xf0\x9f\x99\x80"=>"\xee\xad\xa6", "\xf0\x9f\x99\x85"=>"\xee\xab\x97", "\xf0\x9f\x99\x86"=>"\xee\xab\x98", "\xf0\x9f\x99\x87"=>"\xee\xab\x99",
+ "\xf0\x9f\x99\x88"=>"\xee\xad\x90", "\xf0\x9f\x99\x8a"=>"\xee\xad\x91", "\xf0\x9f\x99\x89"=>"\xee\xad\x92", "\xf0\x9f\x99\x8b"=>"\xee\xae\x85", "\xf0\x9f\x99\x8c"=>"\xee\xae\x86",
+ "\xf0\x9f\x99\x8d"=>"\xee\xae\x87", "\xf0\x9f\x99\x8e"=>"\xee\xae\x88", "\xf0\x9f\x99\x8f"=>"\xee\xab\x92", "\xf0\x9f\x8f\xa0"=>"\xee\x92\xab", "\xf0\x9f\x8f\xa1"=>"\xee\xac\x89",
+ "\xf0\x9f\x8f\xa2"=>"\xee\x92\xad", "\xf0\x9f\x8f\xa3"=>"\xee\x97\x9e", "\xf0\x9f\x8f\xa5"=>"\xee\x97\x9f", "\xf0\x9f\x8f\xa6"=>"\xee\x92\xaa", "\xf0\x9f\x8f\xa7"=>"\xee\x92\xa3",
+ "\xf0\x9f\x8f\xa8"=>"\xee\xaa\x81", "\xf0\x9f\x8f\xa9"=>"\xee\xab\xb3", "\xf0\x9f\x8f\xaa"=>"\xee\x92\xa4", "\xf0\x9f\x8f\xab"=>"\xee\xaa\x80", "\xe2\x9b\xaa"=>"\xee\x96\xbb",
+ "\xe2\x9b\xb2"=>"\xee\x97\x8f", "\xf0\x9f\x8f\xac"=>"\xee\xab\xb6", "\xf0\x9f\x8f\xaf"=>"\xee\xab\xb7", "\xf0\x9f\x8f\xb0"=>"\xee\xab\xb8", "\xf0\x9f\x8f\xad"=>"\xee\xab\xb9",
+ "\xe2\x9a\x93"=>"\xee\x92\xa9", "\xf0\x9f\x8f\xae"=>"\xee\x92\xbd", "\xf0\x9f\x97\xbb"=>"\xee\x96\xbd", "\xf0\x9f\x97\xbc"=>"\xee\x93\x80", "\xf0\x9f\x97\xbd"=>"[\xe8\x87\xaa\xe7\x94\xb1\xe3\x81\xae\xe5\xa5\xb3\xe7\xa5\x9e]",
+ "\xf0\x9f\x97\xbe"=>"\xee\x95\xb2", "\xf0\x9f\x97\xbf"=>"\xee\xad\xac", "\xf0\x9f\x91\x9e"=>"\xee\x96\xb7", "\xf0\x9f\x91\x9f"=>"\xee\xac\xab", "\xf0\x9f\x91\xa0"=>"\xee\x94\x9a",
+ "\xf0\x9f\x91\xa1"=>"\xee\x94\x9a", "\xf0\x9f\x91\xa2"=>"\xee\xaa\x9f", "\xf0\x9f\x91\xa3"=>"\xee\xac\xaa", "\xf0\x9f\x91\x93"=>"\xee\x93\xbe", "\xf0\x9f\x91\x95"=>"\xee\x96\xb6",
+ "\xf0\x9f\x91\x96"=>"\xee\xad\xb7", "\xf0\x9f\x91\x91"=>"\xee\x97\x89", "\xf0\x9f\x91\x94"=>"\xee\xaa\x93", "\xf0\x9f\x91\x92"=>"\xee\xaa\x9e", "\xf0\x9f\x91\x97"=>"\xee\xad\xab",
+ "\xf0\x9f\x91\x98"=>"\xee\xaa\xa3", "\xf0\x9f\x91\x99"=>"\xee\xaa\xa4", "\xf0\x9f\x91\x9a"=>"\xee\x94\x8d", "\xf0\x9f\x91\x9b"=>"\xee\x94\x84", "\xf0\x9f\x91\x9c"=>"\xee\x92\x9c",
+ "\xf0\x9f\x91\x9d"=>"[\xe3\x81\xb5\xe3\x81\x8f\xe3\x82\x8d]", "\xf0\x9f\x92\xb0"=>"\xee\x93\x87", "\xf0\x9f\x92\xb1"=>"[$\xef\xbf\xa5]", "\xf0\x9f\x92\xb9"=>"\xee\x97\x9c", "\xf0\x9f\x92\xb2"=>"\xee\x95\xb9",
+ "\xf0\x9f\x92\xb3"=>"\xee\x95\xbc", "\xf0\x9f\x92\xb4"=>"\xee\x95\xbd", "\xf0\x9f\x92\xb5"=>"\xee\x96\x85", "\xf0\x9f\x92\xb8"=>"\xee\xad\x9b", "\xf0\x9f\x87\xa8\xf0\x9f\x87\xb3"=>"\xee\xac\x91",
+ "\xf0\x9f\x87\xa9\xf0\x9f\x87\xaa"=>"\xee\xac\x8e", "\xf0\x9f\x87\xaa\xf0\x9f\x87\xb8"=>"\xee\x97\x95", "\xf0\x9f\x87\xab\xf0\x9f\x87\xb7"=>"\xee\xab\xba", "\xf0\x9f\x87\xac\xf0\x9f\x87\xa7"=>"\xee\xac\x90", "\xf0\x9f\x87\xae\xf0\x9f\x87\xb9"=>"\xee\xac\x8f",
+ "\xf0\x9f\x87\xaf\xf0\x9f\x87\xb5"=>"\xee\x93\x8c", "\xf0\x9f\x87\xb0\xf0\x9f\x87\xb7"=>"\xee\xac\x92", "\xf0\x9f\x87\xb7\xf0\x9f\x87\xba"=>"\xee\x97\x96", "\xf0\x9f\x87\xba\xf0\x9f\x87\xb8"=>"\xee\x95\xb3", "\xf0\x9f\x94\xa5"=>"\xee\x91\xbb",
+ "\xf0\x9f\x94\xa6"=>"\xee\x96\x83", "\xf0\x9f\x94\xa7"=>"\xee\x96\x87", "\xf0\x9f\x94\xa8"=>"\xee\x97\x8b", "\xf0\x9f\x94\xa9"=>"\xee\x96\x81", "\xf0\x9f\x94\xaa"=>"\xee\x95\xbf",
+ "\xf0\x9f\x94\xab"=>"\xee\x94\x8a", "\xf0\x9f\x94\xae"=>"\xee\xaa\x8f", "\xf0\x9f\x94\xaf"=>"\xee\xaa\x8f", "\xf0\x9f\x94\xb0"=>"\xee\x92\x80", "\xf0\x9f\x94\xb1"=>"\xee\x97\x89",
+ "\xf0\x9f\x92\x89"=>"\xee\x94\x90", "\xf0\x9f\x92\x8a"=>"\xee\xaa\x9a", "\xf0\x9f\x85\xb0"=>"\xee\xac\xa6", "\xf0\x9f\x85\xb1"=>"\xee\xac\xa7", "\xf0\x9f\x86\x8e"=>"\xee\xac\xa9",
+ "\xf0\x9f\x85\xbe"=>"\xee\xac\xa8", "\xf0\x9f\x8e\x80"=>"\xee\x96\x9f", "\xf0\x9f\x8e\x81"=>"\xee\x93\x8f", "\xf0\x9f\x8e\x82"=>"\xee\x96\xa0", "\xf0\x9f\x8e\x84"=>"\xee\x93\x89",
+ "\xf0\x9f\x8e\x85"=>"\xee\xab\xb0", "\xf0\x9f\x8e\x8c"=>"\xee\x97\x99", "\xf0\x9f\x8e\x86"=>"\xee\x97\x8c", "\xf0\x9f\x8e\x88"=>"\xee\xaa\x9b", "\xf0\x9f\x8e\x89"=>"\xee\xaa\x9c",
+ "\xf0\x9f\x8e\x8d"=>"\xee\xab\xa3", "\xf0\x9f\x8e\x8e"=>"\xee\xab\xa4", "\xf0\x9f\x8e\x93"=>"\xee\xab\xa5", "\xf0\x9f\x8e\x92"=>"\xee\xab\xa6", "\xf0\x9f\x8e\x8f"=>"\xee\xab\xa7",
+ "\xf0\x9f\x8e\x87"=>"\xee\xab\xab", "\xf0\x9f\x8e\x90"=>"\xee\xab\xad", "\xf0\x9f\x8e\x83"=>"\xee\xab\xae", "\xf0\x9f\x8e\x8a"=>"\xee\x91\xaf", "\xf0\x9f\x8e\x8b"=>"\xee\xac\xbd",
+ "\xf0\x9f\x8e\x91"=>"\xee\xab\xaf", "\xf0\x9f\x93\x9f"=>"\xee\x96\x9b", "\xe2\x98\x8e"=>"\xee\x96\x96", "\xf0\x9f\x93\x9e"=>"\xee\x94\x9e", "\xf0\x9f\x93\xb1"=>"\xee\x96\x88",
+ "\xf0\x9f\x93\xb2"=>"\xee\xac\x88", "\xf0\x9f\x93\x9d"=>"\xee\xaa\x92", "\xf0\x9f\x93\xa0"=>"\xee\x94\xa0", "\xe2\x9c\x89"=>"\xee\x94\xa1", "\xf0\x9f\x93\xa8"=>"\xee\x96\x91",
+ "\xf0\x9f\x93\xa9"=>"\xee\xad\xa2", "\xf0\x9f\x93\xaa"=>"\xee\x94\x9b", "\xf0\x9f\x93\xab"=>"\xee\xac\x8a", "\xf0\x9f\x93\xae"=>"\xee\x94\x9b", "\xf0\x9f\x93\xb0"=>"\xee\x96\x8b",
+ "\xf0\x9f\x93\xa2"=>"\xee\x94\x91", "\xf0\x9f\x93\xa3"=>"\xee\x94\x91", "\xf0\x9f\x93\xa1"=>"\xee\x92\xa8", "\xf0\x9f\x93\xa4"=>"\xee\x96\x92", "\xf0\x9f\x93\xa5"=>"\xee\x96\x93",
+ "\xf0\x9f\x93\xa6"=>"\xee\x94\x9f", "\xf0\x9f\x93\xa7"=>"\xee\xad\xb1", "\xf0\x9f\x94\xa0"=>"\xee\xab\xbd", "\xf0\x9f\x94\xa1"=>"\xee\xab\xbe", "\xf0\x9f\x94\xa2"=>"\xee\xab\xbf",
+ "\xf0\x9f\x94\xa3"=>"\xee\xac\x80", "\xf0\x9f\x94\xa4"=>"\xee\xad\x95", "\xe2\x9c\x92"=>"\xee\xac\x83", "\xf0\x9f\x92\xba"=>"[\xe3\x81\x84\xe3\x81\x99]", "\xf0\x9f\x92\xbb"=>"\xee\x96\xb8",
+ "\xe2\x9c\x8f"=>"\xee\x92\xa1", "\xf0\x9f\x93\x8e"=>"\xee\x92\xa0", "\xf0\x9f\x92\xbc"=>"\xee\x97\x8e", "\xf0\x9f\x92\xbd"=>"\xee\x96\x82", "\xf0\x9f\x92\xbe"=>"\xee\x95\xa2",
+ "\xf0\x9f\x92\xbf"=>"\xee\x94\x8c", "\xf0\x9f\x93\x80"=>"\xee\x94\x8c", "\xe2\x9c\x82"=>"\xee\x94\x96", "\xf0\x9f\x93\x8d"=>"\xee\x95\xa0", "\xf0\x9f\x93\x83"=>"\xee\x95\xa1",
+ "\xf0\x9f\x93\x84"=>"\xee\x95\xa9", "\xf0\x9f\x93\x85"=>"\xee\x95\xa3", "\xf0\x9f\x93\x81"=>"\xee\x96\x8f", "\xf0\x9f\x93\x82"=>"\xee\x96\x90", "\xf0\x9f\x93\x93"=>"\xee\x95\xab",
+ "\xf0\x9f\x93\x96"=>"\xee\x92\x9f", "\xf0\x9f\x93\x94"=>"\xee\x92\x9d", "\xf0\x9f\x93\x95"=>"\xee\x95\xa8", "\xf0\x9f\x93\x97"=>"\xee\x95\xa5", "\xf0\x9f\x93\x98"=>"\xee\x95\xa6",
+ "\xf0\x9f\x93\x99"=>"\xee\x95\xa7", "\xf0\x9f\x93\x9a"=>"\xee\x95\xaf", "\xf0\x9f\x93\x9b"=>"\xee\x94\x9d", "\xf0\x9f\x93\x9c"=>"\xee\x95\x9f", "\xf0\x9f\x93\x8b"=>"\xee\x95\xa4",
+ "\xf0\x9f\x93\x86"=>"\xee\x95\xaa", "\xf0\x9f\x93\x8a"=>"\xee\x95\xb4", "\xf0\x9f\x93\x88"=>"\xee\x95\xb5", "\xf0\x9f\x93\x89"=>"\xee\x95\xb6", "\xf0\x9f\x93\x87"=>"\xee\x95\xac",
+ "\xf0\x9f\x93\x8c"=>"\xee\x95\xad", "\xf0\x9f\x93\x92"=>"\xee\x95\xae", "\xf0\x9f\x93\x8f"=>"\xee\x95\xb0", "\xf0\x9f\x93\x90"=>"\xee\x92\xa2", "\xf0\x9f\x93\x91"=>"\xee\xac\x8b",
+ "\xf0\x9f\x8e\xbd"=>"\xe3\x80\x93", "\xe2\x9a\xbe"=>"\xee\x92\xba", "\xe2\x9b\xb3"=>"\xee\x96\x99", "\xf0\x9f\x8e\xbe"=>"\xee\x92\xb7", "\xe2\x9a\xbd"=>"\xee\x92\xb6",
+ "\xf0\x9f\x8e\xbf"=>"\xee\xaa\xac", "\xf0\x9f\x8f\x80"=>"\xee\x96\x9a", "\xf0\x9f\x8f\x81"=>"\xee\x92\xb9", "\xf0\x9f\x8f\x82"=>"\xee\x92\xb8", "\xf0\x9f\x8f\x83"=>"\xee\x91\xab",
+ "\xf0\x9f\x8f\x84"=>"\xee\xad\x81", "\xf0\x9f\x8f\x86"=>"\xee\x97\x93", "\xf0\x9f\x8f\x88"=>"\xee\x92\xbb", "\xf0\x9f\x8f\x8a"=>"\xee\xab\x9e", "\xf0\x9f\x9a\x83"=>"\xee\x92\xb5",
+ "\xf0\x9f\x9a\x87"=>"\xee\x96\xbc", "\xe2\x93\x82"=>"\xee\x96\xbc", "\xf0\x9f\x9a\x84"=>"\xee\x92\xb0", "\xf0\x9f\x9a\x85"=>"\xee\x92\xb0", "\xf0\x9f\x9a\x97"=>"\xee\x92\xb1",
+ "\xf0\x9f\x9a\x99"=>"\xee\x92\xb1", "\xf0\x9f\x9a\x8c"=>"\xee\x92\xaf", "\xf0\x9f\x9a\x8f"=>"\xee\x92\xa7", "\xf0\x9f\x9a\xa2"=>"\xee\xaa\x82", "\xe2\x9c\x88"=>"\xee\x92\xb3",
+ "\xe2\x9b\xb5"=>"\xee\x92\xb4", "\xf0\x9f\x9a\x89"=>"\xee\xad\xad", "\xf0\x9f\x9a\x80"=>"\xee\x97\x88", "\xf0\x9f\x9a\xa4"=>"\xee\x92\xb4", "\xf0\x9f\x9a\x95"=>"\xee\x92\xb1",
+ "\xf0\x9f\x9a\x9a"=>"\xee\x92\xb2", "\xf0\x9f\x9a\x92"=>"\xee\xab\x9f", "\xf0\x9f\x9a\x91"=>"\xee\xab\xa0", "\xf0\x9f\x9a\x93"=>"\xee\xab\xa1", "\xe2\x9b\xbd"=>"\xee\x95\xb1",
+ "\xf0\x9f\x85\xbf"=>"\xee\x92\xa6", "\xf0\x9f\x9a\xa5"=>"\xee\x91\xaa", "\xf0\x9f\x9a\xa7"=>"\xee\x97\x97", "\xf0\x9f\x9a\xa8"=>"\xee\xad\xb3", "\xe2\x99\xa8"=>"\xee\x92\xbc",
+ "\xe2\x9b\xba"=>"\xee\x97\x90", "\xf0\x9f\x8e\xa0"=>"\xe3\x80\x93", "\xf0\x9f\x8e\xa1"=>"\xee\x91\xad", "\xf0\x9f\x8e\xa2"=>"\xee\xab\xa2", "\xf0\x9f\x8e\xa3"=>"\xee\xad\x82",
+ "\xf0\x9f\x8e\xa4"=>"\xee\x94\x83", "\xf0\x9f\x8e\xa5"=>"\xee\x94\x97", "\xf0\x9f\x8e\xa6"=>"\xee\x94\x97", "\xf0\x9f\x8e\xa7"=>"\xee\x94\x88", "\xf0\x9f\x8e\xa8"=>"\xee\x96\x9c",
+ "\xf0\x9f\x8e\xa9"=>"\xee\xab\xb5", "\xf0\x9f\x8e\xaa"=>"\xee\x96\x9e", "\xf0\x9f\x8e\xab"=>"\xee\x92\x9e", "\xf0\x9f\x8e\xac"=>"\xee\x92\xbe", "\xf0\x9f\x8e\xad"=>"\xee\x96\x9d",
+ "\xf0\x9f\x8e\xae"=>"\xee\x93\x86", "\xf0\x9f\x80\x84"=>"\xee\x97\x91", "\xf0\x9f\x8e\xaf"=>"\xee\x93\x85", "\xf0\x9f\x8e\xb0"=>"\xee\x91\xae", "\xf0\x9f\x8e\xb1"=>"\xee\xab\x9d",
+ "\xf0\x9f\x8e\xb2"=>"\xee\x93\x88", "\xf0\x9f\x8e\xb3"=>"\xee\xad\x83", "\xf0\x9f\x8e\xb4"=>"\xee\xad\xae", "\xf0\x9f\x83\x8f"=>"\xee\xad\xaf", "\xf0\x9f\x8e\xb5"=>"\xee\x96\xbe",
+ "\xf0\x9f\x8e\xb6"=>"\xee\x94\x85", "\xf0\x9f\x8e\xb7"=>"[\xe3\x82\xb5\xe3\x83\x83\xe3\x82\xaf\xe3\x82\xb9]", "\xf0\x9f\x8e\xb8"=>"\xee\x94\x86", "\xf0\x9f\x8e\xb9"=>"\xee\xad\x80", "\xf0\x9f\x8e\xba"=>"\xee\xab\x9c",
+ "\xf0\x9f\x8e\xbb"=>"\xee\x94\x87", "\xf0\x9f\x8e\xbc"=>"\xee\xab\x8c", "\xe3\x80\xbd"=>"[\xe6\xad\x8c\xe8\xa8\x98\xe5\x8f\xb7]", "\xf0\x9f\x93\xb7"=>"\xee\x94\x95", "\xf0\x9f\x93\xb9"=>"\xee\x95\xbe",
+ "\xf0\x9f\x93\xba"=>"\xee\x94\x82", "\xf0\x9f\x93\xbb"=>"\xee\x96\xb9", "\xf0\x9f\x93\xbc"=>"\xee\x96\x80", "\xf0\x9f\x92\x8b"=>"\xee\x93\xab", "\xf0\x9f\x92\x8c"=>"\xee\xad\xb8",
+ "\xf0\x9f\x92\x8d"=>"\xee\x94\x94", "\xf0\x9f\x92\x8e"=>"\xee\x94\x94", "\xf0\x9f\x92\x8f"=>"\xee\x97\x8a", "\xf0\x9f\x92\x90"=>"\xee\xaa\x95", "\xf0\x9f\x92\x91"=>"\xee\xab\x9a",
+ "\xf0\x9f\x92\x92"=>"\xee\x96\xbb", "\xf0\x9f\x94\x9e"=>"\xee\xaa\x83", "\xc2\xa9"=>"\xee\x95\x98", "\xc2\xae"=>"\xee\x95\x99", "\xe2\x84\xa2"=>"\xee\x95\x8e",
+ "\xe2\x84\xb9"=>"\xee\x94\xb3", "#\xe2\x83\xa3"=>"\xee\xae\x84", "1\xe2\x83\xa3"=>"\xee\x94\xa2", "2\xe2\x83\xa3"=>"\xee\x94\xa3", "3\xe2\x83\xa3"=>"\xee\x94\xa4",
+ "4\xe2\x83\xa3"=>"\xee\x94\xa5", "5\xe2\x83\xa3"=>"\xee\x94\xa6", "6\xe2\x83\xa3"=>"\xee\x94\xa7", "7\xe2\x83\xa3"=>"\xee\x94\xa8", "8\xe2\x83\xa3"=>"\xee\x94\xa9",
+ "9\xe2\x83\xa3"=>"\xee\x94\xaa", "0\xe2\x83\xa3"=>"\xee\x96\xac", "\xf0\x9f\x94\x9f"=>"\xee\x94\xab", "\xf0\x9f\x93\xb6"=>"\xee\xaa\x84", "\xf0\x9f\x93\xb3"=>"\xee\xaa\x90",
+ "\xf0\x9f\x93\xb4"=>"\xee\xaa\x91", "\xf0\x9f\x8d\x94"=>"\xee\x93\x96", "\xf0\x9f\x8d\x99"=>"\xee\x93\x95", "\xf0\x9f\x8d\xb0"=>"\xee\x93\x90", "\xf0\x9f\x8d\x9c"=>"\xee\x96\xb4",
+ "\xf0\x9f\x8d\x9e"=>"\xee\xaa\xaf", "\xf0\x9f\x8d\xb3"=>"\xee\x93\x91", "\xf0\x9f\x8d\xa6"=>"\xee\xaa\xb0", "\xf0\x9f\x8d\x9f"=>"\xee\xaa\xb1", "\xf0\x9f\x8d\xa1"=>"\xee\xaa\xb2",
+ "\xf0\x9f\x8d\x98"=>"\xee\xaa\xb3", "\xf0\x9f\x8d\x9a"=>"\xee\xaa\xb4", "\xf0\x9f\x8d\x9d"=>"\xee\xaa\xb5", "\xf0\x9f\x8d\x9b"=>"\xee\xaa\xb6", "\xf0\x9f\x8d\xa2"=>"\xee\xaa\xb7",
+ "\xf0\x9f\x8d\xa3"=>"\xee\xaa\xb8", "\xf0\x9f\x8d\xb1"=>"\xee\xaa\xbd", "\xf0\x9f\x8d\xb2"=>"\xee\xaa\xbe", "\xf0\x9f\x8d\xa7"=>"\xee\xab\xaa", "\xf0\x9f\x8d\x96"=>"\xee\x93\x84",
+ "\xf0\x9f\x8d\xa5"=>"\xee\x93\xad", "\xf0\x9f\x8d\xa0"=>"\xee\xac\xba", "\xf0\x9f\x8d\x95"=>"\xee\xac\xbb", "\xf0\x9f\x8d\x97"=>"\xee\xac\xbc", "\xf0\x9f\x8d\xa8"=>"\xee\xad\x8a",
+ "\xf0\x9f\x8d\xa9"=>"\xee\xad\x8b", "\xf0\x9f\x8d\xaa"=>"\xee\xad\x8c", "\xf0\x9f\x8d\xab"=>"\xee\xad\x8d", "\xf0\x9f\x8d\xac"=>"\xee\xad\x8e", "\xf0\x9f\x8d\xad"=>"\xee\xad\x8f",
+ "\xf0\x9f\x8d\xae"=>"\xee\xad\x96", "\xf0\x9f\x8d\xaf"=>"\xee\xad\x99", "\xf0\x9f\x8d\xa4"=>"\xee\xad\xb0", "\xf0\x9f\x8d\xb4"=>"\xee\x92\xac", "\xe2\x98\x95"=>"\xee\x96\x97",
+ "\xf0\x9f\x8d\xb8"=>"\xee\x93\x82", "\xf0\x9f\x8d\xba"=>"\xee\x93\x83", "\xf0\x9f\x8d\xb5"=>"\xee\xaa\xae", "\xf0\x9f\x8d\xb6"=>"\xee\xaa\x97", "\xf0\x9f\x8d\xb7"=>"\xee\x93\x81",
+ "\xf0\x9f\x8d\xbb"=>"\xee\xaa\x98", "\xf0\x9f\x8d\xb9"=>"\xee\xac\xbe", "\xe2\x86\x97"=>"\xee\x95\x95", "\xe2\x86\x98"=>"\xee\x95\x8d", "\xe2\x86\x96"=>"\xee\x95\x8c",
+ "\xe2\x86\x99"=>"\xee\x95\x96", "\xe2\xa4\xb4"=>"\xee\xac\xad", "\xe2\xa4\xb5"=>"\xee\xac\xae", "\xe2\x86\x94"=>"\xee\xad\xba", "\xe2\x86\x95"=>"\xee\xad\xbb",
+ "\xe2\xac\x86"=>"\xee\x94\xbf", "\xe2\xac\x87"=>"\xee\x95\x80", "\xe2\x9e\xa1"=>"\xee\x95\x92", "\xe2\xac\x85"=>"\xee\x95\x93", "\xe2\x96\xb6"=>"\xee\x94\xae",
+ "\xe2\x97\x80"=>"\xee\x94\xad", "\xe2\x8f\xa9"=>"\xee\x94\xb0", "\xe2\x8f\xaa"=>"\xee\x94\xaf", "\xe2\x8f\xab"=>"\xee\x95\x85", "\xe2\x8f\xac"=>"\xee\x95\x84",
+ "\xf0\x9f\x94\xba"=>"\xee\x95\x9a", "\xf0\x9f\x94\xbb"=>"\xee\x95\x9b", "\xf0\x9f\x94\xbc"=>"\xee\x95\x83", "\xf0\x9f\x94\xbd"=>"\xee\x95\x82", "\xe2\xad\x95"=>"\xee\xaa\xad",
+ "\xe2\x9d\x8c"=>"\xee\x95\x90", "\xe2\x9d\x8e"=>"\xee\x95\x91", "\xe2\x9d\x97"=>"\xee\x92\x82", "\xe2\x81\x89"=>"\xee\xac\xaf", "\xe2\x80\xbc"=>"\xee\xac\xb0",
+ "\xe2\x9d\x93"=>"\xee\x92\x83", "\xe2\x9d\x94"=>"\xee\x92\x83", "\xe2\x9d\x95"=>"\xee\x92\x82", "\xe3\x80\xb0"=>"\xe3\x80\x93", "\xe2\x9e\xb0"=>"\xee\xac\xb1",
+ "\xe2\x9e\xbf"=>"[\xe3\x83\x95\xe3\x83\xaa\xe3\x83\xbc\xe3\x83\x80\xe3\x82\xa4\xe3\x83\xa4\xe3\x83\xab]", "\xe2\x9d\xa4"=>"\xee\x96\x95", "\xf0\x9f\x92\x93"=>"\xee\xad\xb5", "\xf0\x9f\x92\x94"=>"\xee\x91\xb7", "\xf0\x9f\x92\x95"=>"\xee\x91\xb8",
+ "\xf0\x9f\x92\x96"=>"\xee\xaa\xa6", "\xf0\x9f\x92\x97"=>"\xee\xad\xb5", "\xf0\x9f\x92\x98"=>"\xee\x93\xaa", "\xf0\x9f\x92\x99"=>"\xee\xaa\xa7", "\xf0\x9f\x92\x9a"=>"\xee\xaa\xa8",
+ "\xf0\x9f\x92\x9b"=>"\xee\xaa\xa9", "\xf0\x9f\x92\x9c"=>"\xee\xaa\xaa", "\xf0\x9f\x92\x9d"=>"\xee\xad\x94", "\xf0\x9f\x92\x9e"=>"\xee\x96\xaf", "\xf0\x9f\x92\x9f"=>"\xee\x96\x95",
+ "\xe2\x99\xa5"=>"\xee\xaa\xa5", "\xe2\x99\xa0"=>"\xee\x96\xa1", "\xe2\x99\xa6"=>"\xee\x96\xa2", "\xe2\x99\xa3"=>"\xee\x96\xa3", "\xf0\x9f\x9a\xac"=>"\xee\x91\xbd",
+ "\xf0\x9f\x9a\xad"=>"\xee\x91\xbe", "\xe2\x99\xbf"=>"\xee\x91\xbf", "\xf0\x9f\x9a\xa9"=>"\xee\xac\xac", "\xe2\x9a\xa0"=>"\xee\x92\x81", "\xe2\x9b\x94"=>"\xee\x92\x84",
+ "\xe2\x99\xbb"=>"\xee\xad\xb9", "\xf0\x9f\x9a\xb2"=>"\xee\x92\xae", "\xf0\x9f\x9a\xb6"=>"\xee\xad\xb2", "\xf0\x9f\x9a\xb9"=>"[\xe2\x99\x82]", "\xf0\x9f\x9a\xba"=>"[\xe2\x99\x80]",
+ "\xf0\x9f\x9b\x80"=>"\xee\x97\x98", "\xf0\x9f\x9a\xbb"=>"\xee\x92\xa5", "\xf0\x9f\x9a\xbd"=>"\xee\x92\xa5", "\xf0\x9f\x9a\xbe"=>"\xee\x92\xa5", "\xf0\x9f\x9a\xbc"=>"\xee\xac\x98",
+ "\xf0\x9f\x9a\xaa"=>"[\xe3\x83\x89\xe3\x82\xa2]", "\xf0\x9f\x9a\xab"=>"\xee\x95\x81", "\xe2\x9c\x94"=>"\xee\x95\x97", "\xf0\x9f\x86\x91"=>"\xee\x96\xab", "\xf0\x9f\x86\x92"=>"\xee\xaa\x85",
+ "\xf0\x9f\x86\x93"=>"\xee\x95\xb8", "\xf0\x9f\x86\x94"=>"\xee\xaa\x88", "\xf0\x9f\x86\x95"=>"\xee\x96\xb5", "\xf0\x9f\x86\x96"=>"[NG]", "\xf0\x9f\x86\x97"=>"\xee\x96\xad",
+ "\xf0\x9f\x86\x98"=>"\xee\x93\xa8", "\xf0\x9f\x86\x99"=>"\xee\x94\x8f", "\xf0\x9f\x86\x9a"=>"\xee\x97\x92", "\xf0\x9f\x88\x81"=>"[\xe3\x82\xb3\xe3\x82\xb3]", "\xf0\x9f\x88\x82"=>"\xee\xaa\x87",
+ "\xf0\x9f\x88\xb2"=>"[\xe7\xa6\x81]", "\xf0\x9f\x88\xb3"=>"\xee\xaa\x8a", "\xf0\x9f\x88\xb4"=>"[\xe5\x90\x88]", "\xf0\x9f\x88\xb5"=>"\xee\xaa\x89", "\xf0\x9f\x88\xb6"=>"[\xe6\x9c\x89]",
+ "\xf0\x9f\x88\x9a"=>"[\xe7\x84\xa1]", "\xf0\x9f\x88\xb7"=>"[\xe6\x9c\x88]", "\xf0\x9f\x88\xb8"=>"[\xe7\x94\xb3]", "\xf0\x9f\x88\xb9"=>"\xee\xaa\x86", "\xf0\x9f\x88\xaf"=>"\xee\xaa\x8b",
+ "\xf0\x9f\x88\xba"=>"\xee\xaa\x8c", "\xe3\x8a\x99"=>"\xee\x93\xb1", "\xe3\x8a\x97"=>"\xee\xaa\x99", "\xf0\x9f\x89\x90"=>"\xee\x93\xb7", "\xf0\x9f\x89\x91"=>"\xee\xac\x81",
+ "\xe2\x9e\x95"=>"\xee\x94\xbc", "\xe2\x9e\x96"=>"\xee\x94\xbd", "\xe2\x9c\x96"=>"\xee\x95\x8f", "\xe2\x9e\x97"=>"\xee\x95\x94", "\xf0\x9f\x92\xa0"=>"\xe3\x80\x93",
+ "\xf0\x9f\x92\xa1"=>"\xee\x91\xb6", "\xf0\x9f\x92\xa2"=>"\xee\x93\xa5", "\xf0\x9f\x92\xa3"=>"\xee\x91\xba", "\xf0\x9f\x92\xa4"=>"\xee\x91\xb5", "\xf0\x9f\x92\xa5"=>"\xee\x96\xb0",
+ "\xf0\x9f\x92\xa6"=>"\xee\x96\xb1", "\xf0\x9f\x92\xa7"=>"\xee\x93\xa6", "\xf0\x9f\x92\xa8"=>"\xee\x93\xb4", "\xf0\x9f\x92\xa9"=>"\xee\x93\xb5", "\xf0\x9f\x92\xaa"=>"\xee\x93\xa9",
+ "\xf0\x9f\x92\xab"=>"\xee\xad\x9c", "\xf0\x9f\x92\xac"=>"\xee\x93\xbd", "\xe2\x9c\xa8"=>"\xee\xaa\xab", "\xe2\x9c\xb4"=>"\xee\x91\xb9", "\xe2\x9c\xb3"=>"\xee\x94\xbe",
+ "\xe2\x9a\xaa"=>"\xee\x94\xba", "\xe2\x9a\xab"=>"\xee\x94\xbb", "\xf0\x9f\x94\xb4"=>"\xee\x95\x8a", "\xf0\x9f\x94\xb5"=>"\xee\x95\x8b", "\xf0\x9f\x94\xb2"=>"\xee\x95\x8b",
+ "\xf0\x9f\x94\xb3"=>"\xee\x95\x8b", "\xe2\xad\x90"=>"\xee\x92\x8b", "\xe2\xac\x9c"=>"\xee\x95\x88", "\xe2\xac\x9b"=>"\xee\x95\x89", "\xe2\x96\xab"=>"\xee\x94\xb1",
+ "\xe2\x96\xaa"=>"\xee\x94\xb2", "\xe2\x97\xbd"=>"\xee\x94\xb4", "\xe2\x97\xbe"=>"\xee\x94\xb5", "\xe2\x97\xbb"=>"\xee\x94\xb8", "\xe2\x97\xbc"=>"\xee\x94\xb9",
+ "\xf0\x9f\x94\xb6"=>"\xee\x95\x86", "\xf0\x9f\x94\xb7"=>"\xee\x95\x87", "\xf0\x9f\x94\xb8"=>"\xee\x94\xb6", "\xf0\x9f\x94\xb9"=>"\xee\x94\xb7", "\xe2\x9d\x87"=>"\xee\x91\xac",
+ "\xf0\x9f\x92\xae"=>"\xee\x93\xb0", "\xf0\x9f\x92\xaf"=>"\xee\x93\xb2", "\xe2\x86\xa9"=>"\xee\x95\x9d", "\xe2\x86\xaa"=>"\xee\x95\x9c", "\xf0\x9f\x94\x83"=>"\xee\xac\x8d",
+ "\xf0\x9f\x94\x8a"=>"\xee\x94\x91", "\xf0\x9f\x94\x8b"=>"\xee\x96\x84", "\xf0\x9f\x94\x8c"=>"\xee\x96\x89", "\xf0\x9f\x94\x8d"=>"\xee\x94\x98", "\xf0\x9f\x94\x8e"=>"\xee\xac\x85",
+ "\xf0\x9f\x94\x92"=>"\xee\x94\x9c", "\xf0\x9f\x94\x93"=>"\xee\x94\x9c", "\xf0\x9f\x94\x8f"=>"\xee\xac\x8c", "\xf0\x9f\x94\x90"=>"\xee\xab\xbc", "\xf0\x9f\x94\x91"=>"\xee\x94\x99",
+ "\xf0\x9f\x94\x94"=>"\xee\x94\x92", "\xe2\x98\x91"=>"\xee\xac\x82", "\xf0\x9f\x94\x98"=>"\xee\xac\x84", "\xf0\x9f\x94\x96"=>"\xee\xac\x87", "\xf0\x9f\x94\x97"=>"\xee\x96\x8a",
+ "\xf0\x9f\x94\x99"=>"\xee\xac\x86", "\xf0\x9f\x94\x9a"=>"[end]", "\xf0\x9f\x94\x9b"=>"[ON]", "\xf0\x9f\x94\x9c"=>"[SOON]", "\xf0\x9f\x94\x9d"=>"[TOP]",
+ "\xe2\x9c\x85"=>"\xee\x95\x9e", "\xe2\x9c\x8a"=>"\xee\xae\x83", "\xe2\x9c\x8b"=>"\xee\x96\xa7", "\xe2\x9c\x8c"=>"\xee\x96\xa6", "\xf0\x9f\x91\x8a"=>"\xee\x93\xb3",
+ "\xf0\x9f\x91\x8d"=>"\xee\x93\xb9", "\xe2\x98\x9d"=>"\xee\x93\xb6", "\xf0\x9f\x91\x86"=>"\xee\xaa\x8d", "\xf0\x9f\x91\x87"=>"\xee\xaa\x8e", "\xf0\x9f\x91\x88"=>"\xee\x93\xbf",
+ "\xf0\x9f\x91\x89"=>"\xee\x94\x80", "\xf0\x9f\x91\x8b"=>"\xee\xab\x96", "\xf0\x9f\x91\x8f"=>"\xee\xab\x93", "\xf0\x9f\x91\x8c"=>"\xee\xab\x94", "\xf0\x9f\x91\x8e"=>"\xee\xab\x95",
+ "\xf0\x9f\x91\x90"=>"\xee\xab\x96",
+ ),
+ 'unified_to_softbank' => array(
+ "\xe2\x98\x80"=>"\xee\x81\x8a", "\xe2\x98\x81"=>"\xee\x81\x89", "\xe2\x98\x94"=>"\xee\x81\x8b", "\xe2\x9b\x84"=>"\xee\x81\x88",
+ "\xe2\x9a\xa1"=>"\xee\x84\xbd", "\xf0\x9f\x8c\x80"=>"\xee\x91\x83", "\xf0\x9f\x8c\x81"=>"[\xe9\x9c\xa7]", "\xf0\x9f\x8c\x82"=>"\xee\x90\xbc", "\xf0\x9f\x8c\x83"=>"\xee\x91\x8b",
+ "\xf0\x9f\x8c\x84"=>"\xee\x81\x8d", "\xf0\x9f\x8c\x85"=>"\xee\x91\x89", "\xf0\x9f\x8c\x86"=>"\xee\x85\x86", "\xf0\x9f\x8c\x87"=>"\xee\x91\x8a", "\xf0\x9f\x8c\x88"=>"\xee\x91\x8c",
+ "\xe2\x9d\x84"=>"[\xe9\x9b\xaa\xe7\xb5\x90\xe6\x99\xb6]", "\xe2\x9b\x85"=>"\xee\x81\x8a\xee\x81\x89", "\xf0\x9f\x8c\x89"=>"\xee\x91\x8b", "\xf0\x9f\x8c\x8a"=>"\xee\x90\xbe", "\xf0\x9f\x8c\x8b"=>"[\xe7\x81\xab\xe5\xb1\xb1]",
+ "\xf0\x9f\x8c\x8c"=>"\xee\x91\x8b", "\xf0\x9f\x8c\x8f"=>"[\xe5\x9c\xb0\xe7\x90\x83]", "\xf0\x9f\x8c\x91"=>"\xe2\x97\x8f", "\xf0\x9f\x8c\x94"=>"\xee\x81\x8c", "\xf0\x9f\x8c\x93"=>"\xee\x81\x8c",
+ "\xf0\x9f\x8c\x99"=>"\xee\x81\x8c", "\xf0\x9f\x8c\x95"=>"\xe2\x97\x8b", "\xf0\x9f\x8c\x9b"=>"\xee\x81\x8c", "\xf0\x9f\x8c\x9f"=>"\xee\x8c\xb5", "\xf0\x9f\x8c\xa0"=>"\xe2\x98\x86\xe5\xbd\xa1",
+ "\xf0\x9f\x95\x90"=>"\xee\x80\xa4", "\xf0\x9f\x95\x91"=>"\xee\x80\xa5", "\xf0\x9f\x95\x92"=>"\xee\x80\xa6", "\xf0\x9f\x95\x93"=>"\xee\x80\xa7", "\xf0\x9f\x95\x94"=>"\xee\x80\xa8",
+ "\xf0\x9f\x95\x95"=>"\xee\x80\xa9", "\xf0\x9f\x95\x96"=>"\xee\x80\xaa", "\xf0\x9f\x95\x97"=>"\xee\x80\xab", "\xf0\x9f\x95\x98"=>"\xee\x80\xac", "\xf0\x9f\x95\x99"=>"\xee\x80\xad",
+ "\xf0\x9f\x95\x9a"=>"\xee\x80\xae", "\xf0\x9f\x95\x9b"=>"\xee\x80\xaf", "\xe2\x8c\x9a"=>"[\xe8\x85\x95\xe6\x99\x82\xe8\xa8\x88]", "\xe2\x8c\x9b"=>"[\xe7\xa0\x82\xe6\x99\x82\xe8\xa8\x88]", "\xe2\x8f\xb0"=>"\xee\x80\xad",
+ "\xe2\x8f\xb3"=>"[\xe7\xa0\x82\xe6\x99\x82\xe8\xa8\x88]", "\xe2\x99\x88"=>"\xee\x88\xbf", "\xe2\x99\x89"=>"\xee\x89\x80", "\xe2\x99\x8a"=>"\xee\x89\x81", "\xe2\x99\x8b"=>"\xee\x89\x82",
+ "\xe2\x99\x8c"=>"\xee\x89\x83", "\xe2\x99\x8d"=>"\xee\x89\x84", "\xe2\x99\x8e"=>"\xee\x89\x85", "\xe2\x99\x8f"=>"\xee\x89\x86", "\xe2\x99\x90"=>"\xee\x89\x87",
+ "\xe2\x99\x91"=>"\xee\x89\x88", "\xe2\x99\x92"=>"\xee\x89\x89", "\xe2\x99\x93"=>"\xee\x89\x8a", "\xe2\x9b\x8e"=>"\xee\x89\x8b", "\xf0\x9f\x8d\x80"=>"\xee\x84\x90",
+ "\xf0\x9f\x8c\xb7"=>"\xee\x8c\x84", "\xf0\x9f\x8c\xb1"=>"\xee\x84\x90", "\xf0\x9f\x8d\x81"=>"\xee\x84\x98", "\xf0\x9f\x8c\xb8"=>"\xee\x80\xb0", "\xf0\x9f\x8c\xb9"=>"\xee\x80\xb2",
+ "\xf0\x9f\x8d\x82"=>"\xee\x84\x99", "\xf0\x9f\x8d\x83"=>"\xee\x91\x87", "\xf0\x9f\x8c\xba"=>"\xee\x8c\x83", "\xf0\x9f\x8c\xbb"=>"\xee\x8c\x85", "\xf0\x9f\x8c\xb4"=>"\xee\x8c\x87",
+ "\xf0\x9f\x8c\xb5"=>"\xee\x8c\x88", "\xf0\x9f\x8c\xbe"=>"\xee\x91\x84", "\xf0\x9f\x8c\xbd"=>"[\xe3\x81\xa8\xe3\x81\x86\xe3\x82\x82\xe3\x82\x8d\xe3\x81\x93\xe3\x81\x97]", "\xf0\x9f\x8d\x84"=>"[\xe3\x82\xad\xe3\x83\x8e\xe3\x82\xb3]", "\xf0\x9f\x8c\xb0"=>"[\xe6\xa0\x97]",
+ "\xf0\x9f\x8c\xbc"=>"\xee\x8c\x85", "\xf0\x9f\x8c\xbf"=>"\xee\x84\x90", "\xf0\x9f\x8d\x92"=>"[\xe3\x81\x95\xe3\x81\x8f\xe3\x82\x89\xe3\x82\x93\xe3\x81\xbc]", "\xf0\x9f\x8d\x8c"=>"[\xe3\x83\x90\xe3\x83\x8a\xe3\x83\x8a]", "\xf0\x9f\x8d\x8e"=>"\xee\x8d\x85",
+ "\xf0\x9f\x8d\x8a"=>"\xee\x8d\x86", "\xf0\x9f\x8d\x93"=>"\xee\x8d\x87", "\xf0\x9f\x8d\x89"=>"\xee\x8d\x88", "\xf0\x9f\x8d\x85"=>"\xee\x8d\x89", "\xf0\x9f\x8d\x86"=>"\xee\x8d\x8a",
+ "\xf0\x9f\x8d\x88"=>"[\xe3\x83\xa1\xe3\x83\xad\xe3\x83\xb3]", "\xf0\x9f\x8d\x8d"=>"[\xe3\x83\x91\xe3\x82\xa4\xe3\x83\x8a\xe3\x83\x83\xe3\x83\x97\xe3\x83\xab]", "\xf0\x9f\x8d\x87"=>"[\xe3\x83\x96\xe3\x83\x89\xe3\x82\xa6]", "\xf0\x9f\x8d\x91"=>"[\xe3\x83\xa2\xe3\x83\xa2]", "\xf0\x9f\x8d\x8f"=>"\xee\x8d\x85",
+ "\xf0\x9f\x91\x80"=>"\xee\x90\x99", "\xf0\x9f\x91\x82"=>"\xee\x90\x9b", "\xf0\x9f\x91\x83"=>"\xee\x90\x9a", "\xf0\x9f\x91\x84"=>"\xee\x90\x9c", "\xf0\x9f\x91\x85"=>"\xee\x90\x89",
+ "\xf0\x9f\x92\x84"=>"\xee\x8c\x9c", "\xf0\x9f\x92\x85"=>"\xee\x8c\x9d", "\xf0\x9f\x92\x86"=>"\xee\x8c\x9e", "\xf0\x9f\x92\x87"=>"\xee\x8c\x9f", "\xf0\x9f\x92\x88"=>"\xee\x8c\xa0",
+ "\xf0\x9f\x91\xa4"=>"\xe3\x80\x93", "\xf0\x9f\x91\xa6"=>"\xee\x80\x81", "\xf0\x9f\x91\xa7"=>"\xee\x80\x82", "\xf0\x9f\x91\xa8"=>"\xee\x80\x84", "\xf0\x9f\x91\xa9"=>"\xee\x80\x85",
+ "\xf0\x9f\x91\xaa"=>"[\xe5\xae\xb6\xe6\x97\x8f]", "\xf0\x9f\x91\xab"=>"\xee\x90\xa8", "\xf0\x9f\x91\xae"=>"\xee\x85\x92", "\xf0\x9f\x91\xaf"=>"\xee\x90\xa9", "\xf0\x9f\x91\xb0"=>"[\xe8\x8a\xb1\xe5\xab\x81]",
+ "\xf0\x9f\x91\xb1"=>"\xee\x94\x95", "\xf0\x9f\x91\xb2"=>"\xee\x94\x96", "\xf0\x9f\x91\xb3"=>"\xee\x94\x97", "\xf0\x9f\x91\xb4"=>"\xee\x94\x98", "\xf0\x9f\x91\xb5"=>"\xee\x94\x99",
+ "\xf0\x9f\x91\xb6"=>"\xee\x94\x9a", "\xf0\x9f\x91\xb7"=>"\xee\x94\x9b", "\xf0\x9f\x91\xb8"=>"\xee\x94\x9c", "\xf0\x9f\x91\xb9"=>"[\xe3\x81\xaa\xe3\x81\xbe\xe3\x81\xaf\xe3\x81\x92]", "\xf0\x9f\x91\xba"=>"[\xe5\xa4\xa9\xe7\x8b\x97]",
+ "\xf0\x9f\x91\xbb"=>"\xee\x84\x9b", "\xf0\x9f\x91\xbc"=>"\xee\x81\x8e", "\xf0\x9f\x91\xbd"=>"\xee\x84\x8c", "\xf0\x9f\x91\xbe"=>"\xee\x84\xab", "\xf0\x9f\x91\xbf"=>"\xee\x84\x9a",
+ "\xf0\x9f\x92\x80"=>"\xee\x84\x9c", "\xf0\x9f\x92\x81"=>"\xee\x89\x93", "\xf0\x9f\x92\x82"=>"\xee\x94\x9e", "\xf0\x9f\x92\x83"=>"\xee\x94\x9f", "\xf0\x9f\x90\x8c"=>"[\xe3\x82\xab\xe3\x82\xbf\xe3\x83\x84\xe3\x83\xa0\xe3\x83\xaa]",
+ "\xf0\x9f\x90\x8d"=>"\xee\x94\xad", "\xf0\x9f\x90\x8e"=>"\xee\x84\xb4", "\xf0\x9f\x90\x94"=>"\xee\x94\xae", "\xf0\x9f\x90\x97"=>"\xee\x94\xaf", "\xf0\x9f\x90\xab"=>"\xee\x94\xb0",
+ "\xf0\x9f\x90\x98"=>"\xee\x94\xa6", "\xf0\x9f\x90\xa8"=>"\xee\x94\xa7", "\xf0\x9f\x90\x92"=>"\xee\x94\xa8", "\xf0\x9f\x90\x91"=>"\xee\x94\xa9", "\xf0\x9f\x90\x99"=>"\xee\x84\x8a",
+ "\xf0\x9f\x90\x9a"=>"\xee\x91\x81", "\xf0\x9f\x90\x9b"=>"\xee\x94\xa5", "\xf0\x9f\x90\x9c"=>"[\xe3\x82\xa2\xe3\x83\xaa]", "\xf0\x9f\x90\x9d"=>"[\xe3\x83\x9f\xe3\x83\x84\xe3\x83\x90\xe3\x83\x81]", "\xf0\x9f\x90\x9e"=>"[\xe3\x81\xa6\xe3\x82\x93\xe3\x81\xa8\xe3\x81\x86\xe8\x99\xab]",
+ "\xf0\x9f\x90\xa0"=>"\xee\x94\xa2", "\xf0\x9f\x90\xa1"=>"\xee\x80\x99", "\xf0\x9f\x90\xa2"=>"[\xe3\x82\xab\xe3\x83\xa1]", "\xf0\x9f\x90\xa4"=>"\xee\x94\xa3", "\xf0\x9f\x90\xa5"=>"\xee\x94\xa3",
+ "\xf0\x9f\x90\xa6"=>"\xee\x94\xa1", "\xf0\x9f\x90\xa3"=>"\xee\x94\xa3", "\xf0\x9f\x90\xa7"=>"\xee\x81\x95", "\xf0\x9f\x90\xa9"=>"\xee\x81\x92", "\xf0\x9f\x90\x9f"=>"\xee\x80\x99",
+ "\xf0\x9f\x90\xac"=>"\xee\x94\xa0", "\xf0\x9f\x90\xad"=>"\xee\x81\x93", "\xf0\x9f\x90\xaf"=>"\xee\x81\x90", "\xf0\x9f\x90\xb1"=>"\xee\x81\x8f", "\xf0\x9f\x90\xb3"=>"\xee\x81\x94",
+ "\xf0\x9f\x90\xb4"=>"\xee\x80\x9a", "\xf0\x9f\x90\xb5"=>"\xee\x84\x89", "\xf0\x9f\x90\xb6"=>"\xee\x81\x92", "\xf0\x9f\x90\xb7"=>"\xee\x84\x8b", "\xf0\x9f\x90\xbb"=>"\xee\x81\x91",
+ "\xf0\x9f\x90\xb9"=>"\xee\x94\xa4", "\xf0\x9f\x90\xba"=>"\xee\x94\xaa", "\xf0\x9f\x90\xae"=>"\xee\x94\xab", "\xf0\x9f\x90\xb0"=>"\xee\x94\xac", "\xf0\x9f\x90\xb8"=>"\xee\x94\xb1",
+ "\xf0\x9f\x90\xbe"=>"\xee\x94\xb6", "\xf0\x9f\x90\xb2"=>"[\xe8\xbe\xb0]", "\xf0\x9f\x90\xbc"=>"[\xe3\x83\x91\xe3\x83\xb3\xe3\x83\x80]", "\xf0\x9f\x90\xbd"=>"\xee\x84\x8b", "\xf0\x9f\x98\xa0"=>"\xee\x81\x99",
+ "\xf0\x9f\x98\xa9"=>"\xee\x90\x83", "\xf0\x9f\x98\xb2"=>"\xee\x90\x90", "\xf0\x9f\x98\x9e"=>"\xee\x81\x98", "\xf0\x9f\x98\xb5"=>"\xee\x90\x86", "\xf0\x9f\x98\xb0"=>"\xee\x90\x8f",
+ "\xf0\x9f\x98\x92"=>"\xee\x90\x8e", "\xf0\x9f\x98\x8d"=>"\xee\x84\x86", "\xf0\x9f\x98\xa4"=>"\xee\x90\x84", "\xf0\x9f\x98\x9c"=>"\xee\x84\x85", "\xf0\x9f\x98\x9d"=>"\xee\x90\x89",
+ "\xf0\x9f\x98\x8b"=>"\xee\x81\x96", "\xf0\x9f\x98\x98"=>"\xee\x90\x98", "\xf0\x9f\x98\x9a"=>"\xee\x90\x97", "\xf0\x9f\x98\xb7"=>"\xee\x90\x8c", "\xf0\x9f\x98\xb3"=>"\xee\x90\x8d",
+ "\xf0\x9f\x98\x83"=>"\xee\x81\x97", "\xf0\x9f\x98\x85"=>"\xee\x90\x95\xee\x8c\xb1", "\xf0\x9f\x98\x86"=>"\xee\x90\x8a", "\xf0\x9f\x98\x81"=>"\xee\x90\x84", "\xf0\x9f\x98\x82"=>"\xee\x90\x92",
+ "\xf0\x9f\x98\x8a"=>"\xee\x81\x96", "\xe2\x98\xba"=>"\xee\x90\x94", "\xf0\x9f\x98\x84"=>"\xee\x90\x95", "\xf0\x9f\x98\xa2"=>"\xee\x90\x93", "\xf0\x9f\x98\xad"=>"\xee\x90\x91",
+ "\xf0\x9f\x98\xa8"=>"\xee\x90\x8b", "\xf0\x9f\x98\xa3"=>"\xee\x90\x86", "\xf0\x9f\x98\xa1"=>"\xee\x90\x96", "\xf0\x9f\x98\x8c"=>"\xee\x90\x8a", "\xf0\x9f\x98\x96"=>"\xee\x90\x87",
+ "\xf0\x9f\x98\x94"=>"\xee\x90\x83", "\xf0\x9f\x98\xb1"=>"\xee\x84\x87", "\xf0\x9f\x98\xaa"=>"\xee\x90\x88", "\xf0\x9f\x98\x8f"=>"\xee\x90\x82", "\xf0\x9f\x98\x93"=>"\xee\x84\x88",
+ "\xf0\x9f\x98\xa5"=>"\xee\x90\x81", "\xf0\x9f\x98\xab"=>"\xee\x90\x86", "\xf0\x9f\x98\x89"=>"\xee\x90\x85", "\xf0\x9f\x98\xba"=>"\xee\x81\x97", "\xf0\x9f\x98\xb8"=>"\xee\x90\x84",
+ "\xf0\x9f\x98\xb9"=>"\xee\x90\x92", "\xf0\x9f\x98\xbd"=>"\xee\x90\x98", "\xf0\x9f\x98\xbb"=>"\xee\x84\x86", "\xf0\x9f\x98\xbf"=>"\xee\x90\x93", "\xf0\x9f\x98\xbe"=>"\xee\x90\x96",
+ "\xf0\x9f\x98\xbc"=>"\xee\x90\x84", "\xf0\x9f\x99\x80"=>"\xee\x90\x83", "\xf0\x9f\x99\x85"=>"\xee\x90\xa3", "\xf0\x9f\x99\x86"=>"\xee\x90\xa4", "\xf0\x9f\x99\x87"=>"\xee\x90\xa6",
+ "\xf0\x9f\x99\x88"=>"(/_\xef\xbc\xbc)", "\xf0\x9f\x99\x8a"=>"(\xe3\x83\xbb\xc3\x97\xe3\x83\xbb)", "\xf0\x9f\x99\x89"=>"|(\xe3\x83\xbb\xc3\x97\xe3\x83\xbb)|", "\xf0\x9f\x99\x8b"=>"\xee\x80\x92", "\xf0\x9f\x99\x8c"=>"\xee\x90\xa7",
+ "\xf0\x9f\x99\x8d"=>"\xee\x90\x83", "\xf0\x9f\x99\x8e"=>"\xee\x90\x96", "\xf0\x9f\x99\x8f"=>"\xee\x90\x9d", "\xf0\x9f\x8f\xa0"=>"\xee\x80\xb6", "\xf0\x9f\x8f\xa1"=>"\xee\x80\xb6",
+ "\xf0\x9f\x8f\xa2"=>"\xee\x80\xb8", "\xf0\x9f\x8f\xa3"=>"\xee\x85\x93", "\xf0\x9f\x8f\xa5"=>"\xee\x85\x95", "\xf0\x9f\x8f\xa6"=>"\xee\x85\x8d", "\xf0\x9f\x8f\xa7"=>"\xee\x85\x94",
+ "\xf0\x9f\x8f\xa8"=>"\xee\x85\x98", "\xf0\x9f\x8f\xa9"=>"\xee\x94\x81", "\xf0\x9f\x8f\xaa"=>"\xee\x85\x96", "\xf0\x9f\x8f\xab"=>"\xee\x85\x97", "\xe2\x9b\xaa"=>"\xee\x80\xb7",
+ "\xe2\x9b\xb2"=>"\xee\x84\xa1", "\xf0\x9f\x8f\xac"=>"\xee\x94\x84", "\xf0\x9f\x8f\xaf"=>"\xee\x94\x85", "\xf0\x9f\x8f\xb0"=>"\xee\x94\x86", "\xf0\x9f\x8f\xad"=>"\xee\x94\x88",
+ "\xe2\x9a\x93"=>"\xee\x88\x82", "\xf0\x9f\x8f\xae"=>"\xee\x8c\x8b", "\xf0\x9f\x97\xbb"=>"\xee\x80\xbb", "\xf0\x9f\x97\xbc"=>"\xee\x94\x89", "\xf0\x9f\x97\xbd"=>"\xee\x94\x9d",
+ "\xf0\x9f\x97\xbe"=>"[\xe6\x97\xa5\xe6\x9c\xac\xe5\x9c\xb0\xe5\x9b\xb3]", "\xf0\x9f\x97\xbf"=>"[\xe3\x83\xa2\xe3\x82\xa2\xe3\x82\xa4]", "\xf0\x9f\x91\x9e"=>"\xee\x80\x87", "\xf0\x9f\x91\x9f"=>"\xee\x80\x87", "\xf0\x9f\x91\xa0"=>"\xee\x84\xbe",
+ "\xf0\x9f\x91\xa1"=>"\xee\x8c\x9a", "\xf0\x9f\x91\xa2"=>"\xee\x8c\x9b", "\xf0\x9f\x91\xa3"=>"\xee\x94\xb6", "\xf0\x9f\x91\x93"=>"[\xe3\x83\xa1\xe3\x82\xac\xe3\x83\x8d]", "\xf0\x9f\x91\x95"=>"\xee\x80\x86",
+ "\xf0\x9f\x91\x96"=>"[\xe3\x82\xb8\xe3\x83\xbc\xe3\x83\xb3\xe3\x82\xba]", "\xf0\x9f\x91\x91"=>"\xee\x84\x8e", "\xf0\x9f\x91\x94"=>"\xee\x8c\x82", "\xf0\x9f\x91\x92"=>"\xee\x8c\x98", "\xf0\x9f\x91\x97"=>"\xee\x8c\x99",
+ "\xf0\x9f\x91\x98"=>"\xee\x8c\xa1", "\xf0\x9f\x91\x99"=>"\xee\x8c\xa2", "\xf0\x9f\x91\x9a"=>"\xee\x80\x86", "\xf0\x9f\x91\x9b"=>"[\xe8\xb2\xa1\xe5\xb8\x83]", "\xf0\x9f\x91\x9c"=>"\xee\x8c\xa3",
+ "\xf0\x9f\x91\x9d"=>"[\xe3\x81\xb5\xe3\x81\x8f\xe3\x82\x8d]", "\xf0\x9f\x92\xb0"=>"\xee\x84\xaf", "\xf0\x9f\x92\xb1"=>"\xee\x85\x89", "\xf0\x9f\x92\xb9"=>"\xee\x85\x8a", "\xf0\x9f\x92\xb2"=>"\xee\x84\xaf",
+ "\xf0\x9f\x92\xb3"=>"[\xe3\x82\xab\xe3\x83\xbc\xe3\x83\x89]", "\xf0\x9f\x92\xb4"=>"\xef\xbf\xa5", "\xf0\x9f\x92\xb5"=>"\xee\x84\xaf", "\xf0\x9f\x92\xb8"=>"[\xe9\xa3\x9b\xe3\x82\x93\xe3\x81\xa7\xe3\x81\x84\xe3\x81\x8f\xe3\x81\x8a\xe9\x87\x91]", "\xf0\x9f\x87\xa8\xf0\x9f\x87\xb3"=>"\xee\x94\x93",
+ "\xf0\x9f\x87\xa9\xf0\x9f\x87\xaa"=>"\xee\x94\x8e", "\xf0\x9f\x87\xaa\xf0\x9f\x87\xb8"=>"\xee\x94\x91", "\xf0\x9f\x87\xab\xf0\x9f\x87\xb7"=>"\xee\x94\x8d", "\xf0\x9f\x87\xac\xf0\x9f\x87\xa7"=>"\xee\x94\x90", "\xf0\x9f\x87\xae\xf0\x9f\x87\xb9"=>"\xee\x94\x8f",
+ "\xf0\x9f\x87\xaf\xf0\x9f\x87\xb5"=>"\xee\x94\x8b", "\xf0\x9f\x87\xb0\xf0\x9f\x87\xb7"=>"\xee\x94\x94", "\xf0\x9f\x87\xb7\xf0\x9f\x87\xba"=>"\xee\x94\x92", "\xf0\x9f\x87\xba\xf0\x9f\x87\xb8"=>"\xee\x94\x8c", "\xf0\x9f\x94\xa5"=>"\xee\x84\x9d",
+ "\xf0\x9f\x94\xa6"=>"[\xe6\x87\x90\xe4\xb8\xad\xe9\x9b\xbb\xe7\x81\xaf]", "\xf0\x9f\x94\xa7"=>"[\xe3\x83\xac\xe3\x83\xb3\xe3\x83\x81]", "\xf0\x9f\x94\xa8"=>"\xee\x84\x96", "\xf0\x9f\x94\xa9"=>"[\xe3\x83\x8d\xe3\x82\xb8]", "\xf0\x9f\x94\xaa"=>"[\xe5\x8c\x85\xe4\xb8\x81]",
+ "\xf0\x9f\x94\xab"=>"\xee\x84\x93", "\xf0\x9f\x94\xae"=>"\xee\x88\xbe", "\xf0\x9f\x94\xaf"=>"\xee\x88\xbe", "\xf0\x9f\x94\xb0"=>"\xee\x88\x89", "\xf0\x9f\x94\xb1"=>"\xee\x80\xb1",
+ "\xf0\x9f\x92\x89"=>"\xee\x84\xbb", "\xf0\x9f\x92\x8a"=>"\xee\x8c\x8f", "\xf0\x9f\x85\xb0"=>"\xee\x94\xb2", "\xf0\x9f\x85\xb1"=>"\xee\x94\xb3", "\xf0\x9f\x86\x8e"=>"\xee\x94\xb4",
+ "\xf0\x9f\x85\xbe"=>"\xee\x94\xb5", "\xf0\x9f\x8e\x80"=>"\xee\x8c\x94", "\xf0\x9f\x8e\x81"=>"\xee\x84\x92", "\xf0\x9f\x8e\x82"=>"\xee\x8d\x8b", "\xf0\x9f\x8e\x84"=>"\xee\x80\xb3",
+ "\xf0\x9f\x8e\x85"=>"\xee\x91\x88", "\xf0\x9f\x8e\x8c"=>"\xee\x85\x83", "\xf0\x9f\x8e\x86"=>"\xee\x84\x97", "\xf0\x9f\x8e\x88"=>"\xee\x8c\x90", "\xf0\x9f\x8e\x89"=>"\xee\x8c\x92",
+ "\xf0\x9f\x8e\x8d"=>"\xee\x90\xb6", "\xf0\x9f\x8e\x8e"=>"\xee\x90\xb8", "\xf0\x9f\x8e\x93"=>"\xee\x90\xb9", "\xf0\x9f\x8e\x92"=>"\xee\x90\xba", "\xf0\x9f\x8e\x8f"=>"\xee\x90\xbb",
+ "\xf0\x9f\x8e\x87"=>"\xee\x91\x80", "\xf0\x9f\x8e\x90"=>"\xee\x91\x82", "\xf0\x9f\x8e\x83"=>"\xee\x91\x85", "\xf0\x9f\x8e\x8a"=>"[\xe3\x82\xaa\xe3\x83\xa1\xe3\x83\x87\xe3\x83\x88\xe3\x82\xa6]", "\xf0\x9f\x8e\x8b"=>"[\xe4\xb8\x83\xe5\xa4\x95]",
+ "\xf0\x9f\x8e\x91"=>"\xee\x91\x86", "\xf0\x9f\x93\x9f"=>"[\xe3\x83\x9d\xe3\x82\xb1\xe3\x83\x99\xe3\x83\xab]", "\xe2\x98\x8e"=>"\xee\x80\x89", "\xf0\x9f\x93\x9e"=>"\xee\x80\x89", "\xf0\x9f\x93\xb1"=>"\xee\x80\x8a",
+ "\xf0\x9f\x93\xb2"=>"\xee\x84\x84", "\xf0\x9f\x93\x9d"=>"\xee\x8c\x81", "\xf0\x9f\x93\xa0"=>"\xee\x80\x8b", "\xe2\x9c\x89"=>"\xee\x84\x83", "\xf0\x9f\x93\xa8"=>"\xee\x84\x83",
+ "\xf0\x9f\x93\xa9"=>"\xee\x84\x83", "\xf0\x9f\x93\xaa"=>"\xee\x84\x81", "\xf0\x9f\x93\xab"=>"\xee\x84\x81", "\xf0\x9f\x93\xae"=>"\xee\x84\x82", "\xf0\x9f\x93\xb0"=>"[\xe6\x96\xb0\xe8\x81\x9e]",
+ "\xf0\x9f\x93\xa2"=>"\xee\x85\x82", "\xf0\x9f\x93\xa3"=>"\xee\x8c\x97", "\xf0\x9f\x93\xa1"=>"\xee\x85\x8b", "\xf0\x9f\x93\xa4"=>"[\xe9\x80\x81\xe4\xbf\xa1BOX]", "\xf0\x9f\x93\xa5"=>"[\xe5\x8f\x97\xe4\xbf\xa1BOX]",
+ "\xf0\x9f\x93\xa6"=>"\xee\x84\x92", "\xf0\x9f\x93\xa7"=>"\xee\x84\x83", "\xf0\x9f\x94\xa0"=>"[ABCD]", "\xf0\x9f\x94\xa1"=>"[abcd]", "\xf0\x9f\x94\xa2"=>"[1234]",
+ "\xf0\x9f\x94\xa3"=>"[\xe8\xa8\x98\xe5\x8f\xb7]", "\xf0\x9f\x94\xa4"=>"[ABC]", "\xe2\x9c\x92"=>"[\xe3\x83\x9a\xe3\x83\xb3]", "\xf0\x9f\x92\xba"=>"\xee\x84\x9f", "\xf0\x9f\x92\xbb"=>"\xee\x80\x8c",
+ "\xe2\x9c\x8f"=>"\xee\x8c\x81", "\xf0\x9f\x93\x8e"=>"[\xe3\x82\xaf\xe3\x83\xaa\xe3\x83\x83\xe3\x83\x97]", "\xf0\x9f\x92\xbc"=>"\xee\x84\x9e", "\xf0\x9f\x92\xbd"=>"\xee\x8c\x96", "\xf0\x9f\x92\xbe"=>"\xee\x8c\x96",
+ "\xf0\x9f\x92\xbf"=>"\xee\x84\xa6", "\xf0\x9f\x93\x80"=>"\xee\x84\xa7", "\xe2\x9c\x82"=>"\xee\x8c\x93", "\xf0\x9f\x93\x8d"=>"[\xe7\x94\xbb\xe3\x81\xb3\xe3\x82\x87\xe3\x81\x86]", "\xf0\x9f\x93\x83"=>"\xee\x8c\x81",
+ "\xf0\x9f\x93\x84"=>"\xee\x8c\x81", "\xf0\x9f\x93\x85"=>"[\xe3\x82\xab\xe3\x83\xac\xe3\x83\xb3\xe3\x83\x80\xe3\x83\xbc]", "\xf0\x9f\x93\x81"=>"[\xe3\x83\x95\xe3\x82\xa9\xe3\x83\xab\xe3\x83\x80]", "\xf0\x9f\x93\x82"=>"[\xe3\x83\x95\xe3\x82\xa9\xe3\x83\xab\xe3\x83\x80]", "\xf0\x9f\x93\x93"=>"\xee\x85\x88",
+ "\xf0\x9f\x93\x96"=>"\xee\x85\x88", "\xf0\x9f\x93\x94"=>"\xee\x85\x88", "\xf0\x9f\x93\x95"=>"\xee\x85\x88", "\xf0\x9f\x93\x97"=>"\xee\x85\x88", "\xf0\x9f\x93\x98"=>"\xee\x85\x88",
+ "\xf0\x9f\x93\x99"=>"\xee\x85\x88", "\xf0\x9f\x93\x9a"=>"\xee\x85\x88", "\xf0\x9f\x93\x9b"=>"[\xe5\x90\x8d\xe6\x9c\xad]", "\xf0\x9f\x93\x9c"=>"[\xe3\x82\xb9\xe3\x82\xaf\xe3\x83\xad\xe3\x83\xbc\xe3\x83\xab]", "\xf0\x9f\x93\x8b"=>"\xee\x8c\x81",
+ "\xf0\x9f\x93\x86"=>"[\xe3\x82\xab\xe3\x83\xac\xe3\x83\xb3\xe3\x83\x80\xe3\x83\xbc]", "\xf0\x9f\x93\x8a"=>"\xee\x85\x8a", "\xf0\x9f\x93\x88"=>"\xee\x85\x8a", "\xf0\x9f\x93\x89"=>"[\xe3\x82\xb0\xe3\x83\xa9\xe3\x83\x95]", "\xf0\x9f\x93\x87"=>"\xee\x85\x88",
+ "\xf0\x9f\x93\x8c"=>"[\xe7\x94\xbb\xe3\x81\xb3\xe3\x82\x87\xe3\x81\x86]", "\xf0\x9f\x93\x92"=>"\xee\x85\x88", "\xf0\x9f\x93\x8f"=>"[\xe5\xae\x9a\xe8\xa6\x8f]", "\xf0\x9f\x93\x90"=>"[\xe4\xb8\x89\xe8\xa7\x92\xe5\xae\x9a\xe8\xa6\x8f]", "\xf0\x9f\x93\x91"=>"\xee\x8c\x81",
+ "\xf0\x9f\x8e\xbd"=>"\xe3\x80\x93", "\xe2\x9a\xbe"=>"\xee\x80\x96", "\xe2\x9b\xb3"=>"\xee\x80\x94", "\xf0\x9f\x8e\xbe"=>"\xee\x80\x95", "\xe2\x9a\xbd"=>"\xee\x80\x98",
+ "\xf0\x9f\x8e\xbf"=>"\xee\x80\x93", "\xf0\x9f\x8f\x80"=>"\xee\x90\xaa", "\xf0\x9f\x8f\x81"=>"\xee\x84\xb2", "\xf0\x9f\x8f\x82"=>"[\xe3\x82\xb9\xe3\x83\x8e\xe3\x83\x9c]", "\xf0\x9f\x8f\x83"=>"\xee\x84\x95",
+ "\xf0\x9f\x8f\x84"=>"\xee\x80\x97", "\xf0\x9f\x8f\x86"=>"\xee\x84\xb1", "\xf0\x9f\x8f\x88"=>"\xee\x90\xab", "\xf0\x9f\x8f\x8a"=>"\xee\x90\xad", "\xf0\x9f\x9a\x83"=>"\xee\x80\x9e",
+ "\xf0\x9f\x9a\x87"=>"\xee\x90\xb4", "\xe2\x93\x82"=>"\xee\x90\xb4", "\xf0\x9f\x9a\x84"=>"\xee\x90\xb5", "\xf0\x9f\x9a\x85"=>"\xee\x80\x9f", "\xf0\x9f\x9a\x97"=>"\xee\x80\x9b",
+ "\xf0\x9f\x9a\x99"=>"\xee\x90\xae", "\xf0\x9f\x9a\x8c"=>"\xee\x85\x99", "\xf0\x9f\x9a\x8f"=>"\xee\x85\x90", "\xf0\x9f\x9a\xa2"=>"\xee\x88\x82", "\xe2\x9c\x88"=>"\xee\x80\x9d",
+ "\xe2\x9b\xb5"=>"\xee\x80\x9c", "\xf0\x9f\x9a\x89"=>"\xee\x80\xb9", "\xf0\x9f\x9a\x80"=>"\xee\x84\x8d", "\xf0\x9f\x9a\xa4"=>"\xee\x84\xb5", "\xf0\x9f\x9a\x95"=>"\xee\x85\x9a",
+ "\xf0\x9f\x9a\x9a"=>"\xee\x90\xaf", "\xf0\x9f\x9a\x92"=>"\xee\x90\xb0", "\xf0\x9f\x9a\x91"=>"\xee\x90\xb1", "\xf0\x9f\x9a\x93"=>"\xee\x90\xb2", "\xe2\x9b\xbd"=>"\xee\x80\xba",
+ "\xf0\x9f\x85\xbf"=>"\xee\x85\x8f", "\xf0\x9f\x9a\xa5"=>"\xee\x85\x8e", "\xf0\x9f\x9a\xa7"=>"\xee\x84\xb7", "\xf0\x9f\x9a\xa8"=>"\xee\x90\xb2", "\xe2\x99\xa8"=>"\xee\x84\xa3",
+ "\xe2\x9b\xba"=>"\xee\x84\xa2", "\xf0\x9f\x8e\xa0"=>"\xe3\x80\x93", "\xf0\x9f\x8e\xa1"=>"\xee\x84\xa4", "\xf0\x9f\x8e\xa2"=>"\xee\x90\xb3", "\xf0\x9f\x8e\xa3"=>"\xee\x80\x99",
+ "\xf0\x9f\x8e\xa4"=>"\xee\x80\xbc", "\xf0\x9f\x8e\xa5"=>"\xee\x80\xbd", "\xf0\x9f\x8e\xa6"=>"\xee\x94\x87", "\xf0\x9f\x8e\xa7"=>"\xee\x8c\x8a", "\xf0\x9f\x8e\xa8"=>"\xee\x94\x82",
+ "\xf0\x9f\x8e\xa9"=>"\xee\x94\x83", "\xf0\x9f\x8e\xaa"=>"[\xe3\x82\xa4\xe3\x83\x99\xe3\x83\xb3\xe3\x83\x88]", "\xf0\x9f\x8e\xab"=>"\xee\x84\xa5", "\xf0\x9f\x8e\xac"=>"\xee\x8c\xa4", "\xf0\x9f\x8e\xad"=>"\xee\x94\x83",
+ "\xf0\x9f\x8e\xae"=>"[\xe3\x82\xb2\xe3\x83\xbc\xe3\x83\xa0]", "\xf0\x9f\x80\x84"=>"\xee\x84\xad", "\xf0\x9f\x8e\xaf"=>"\xee\x84\xb0", "\xf0\x9f\x8e\xb0"=>"\xee\x84\xb3", "\xf0\x9f\x8e\xb1"=>"\xee\x90\xac",
+ "\xf0\x9f\x8e\xb2"=>"[\xe3\x82\xb5\xe3\x82\xa4\xe3\x82\xb3\xe3\x83\xad]", "\xf0\x9f\x8e\xb3"=>"[\xe3\x83\x9c\xe3\x83\xbc\xe3\x83\xaa\xe3\x83\xb3\xe3\x82\xb0]", "\xf0\x9f\x8e\xb4"=>"[\xe8\x8a\xb1\xe6\x9c\xad]", "\xf0\x9f\x83\x8f"=>"[\xe3\x82\xb8\xe3\x83\xa7\xe3\x83\xbc\xe3\x82\xab\xe3\x83\xbc]", "\xf0\x9f\x8e\xb5"=>"\xee\x80\xbe",
+ "\xf0\x9f\x8e\xb6"=>"\xee\x8c\xa6", "\xf0\x9f\x8e\xb7"=>"\xee\x81\x80", "\xf0\x9f\x8e\xb8"=>"\xee\x81\x81", "\xf0\x9f\x8e\xb9"=>"[\xe3\x83\x94\xe3\x82\xa2\xe3\x83\x8e]", "\xf0\x9f\x8e\xba"=>"\xee\x81\x82",
+ "\xf0\x9f\x8e\xbb"=>"[\xe3\x83\x90\xe3\x82\xa4\xe3\x82\xaa\xe3\x83\xaa\xe3\x83\xb3]", "\xf0\x9f\x8e\xbc"=>"\xee\x8c\xa6", "\xe3\x80\xbd"=>"\xee\x84\xac", "\xf0\x9f\x93\xb7"=>"\xee\x80\x88", "\xf0\x9f\x93\xb9"=>"\xee\x80\xbd",
+ "\xf0\x9f\x93\xba"=>"\xee\x84\xaa", "\xf0\x9f\x93\xbb"=>"\xee\x84\xa8", "\xf0\x9f\x93\xbc"=>"\xee\x84\xa9", "\xf0\x9f\x92\x8b"=>"\xee\x80\x83", "\xf0\x9f\x92\x8c"=>"\xee\x84\x83\xee\x8c\xa8",
+ "\xf0\x9f\x92\x8d"=>"\xee\x80\xb4", "\xf0\x9f\x92\x8e"=>"\xee\x80\xb5", "\xf0\x9f\x92\x8f"=>"\xee\x84\x91", "\xf0\x9f\x92\x90"=>"\xee\x8c\x86", "\xf0\x9f\x92\x91"=>"\xee\x90\xa5",
+ "\xf0\x9f\x92\x92"=>"\xee\x90\xbd", "\xf0\x9f\x94\x9e"=>"\xee\x88\x87", "\xc2\xa9"=>"\xee\x89\x8e", "\xc2\xae"=>"\xee\x89\x8f", "\xe2\x84\xa2"=>"\xee\x94\xb7",
+ "\xe2\x84\xb9"=>"[\xef\xbd\x89]", "#\xe2\x83\xa3"=>"\xee\x88\x90", "1\xe2\x83\xa3"=>"\xee\x88\x9c", "2\xe2\x83\xa3"=>"\xee\x88\x9d", "3\xe2\x83\xa3"=>"\xee\x88\x9e",
+ "4\xe2\x83\xa3"=>"\xee\x88\x9f", "5\xe2\x83\xa3"=>"\xee\x88\xa0", "6\xe2\x83\xa3"=>"\xee\x88\xa1", "7\xe2\x83\xa3"=>"\xee\x88\xa2", "8\xe2\x83\xa3"=>"\xee\x88\xa3",
+ "9\xe2\x83\xa3"=>"\xee\x88\xa4", "0\xe2\x83\xa3"=>"\xee\x88\xa5", "\xf0\x9f\x94\x9f"=>"[10]", "\xf0\x9f\x93\xb6"=>"\xee\x88\x8b", "\xf0\x9f\x93\xb3"=>"\xee\x89\x90",
+ "\xf0\x9f\x93\xb4"=>"\xee\x89\x91", "\xf0\x9f\x8d\x94"=>"\xee\x84\xa0", "\xf0\x9f\x8d\x99"=>"\xee\x8d\x82", "\xf0\x9f\x8d\xb0"=>"\xee\x81\x86", "\xf0\x9f\x8d\x9c"=>"\xee\x8d\x80",
+ "\xf0\x9f\x8d\x9e"=>"\xee\x8c\xb9", "\xf0\x9f\x8d\xb3"=>"\xee\x85\x87", "\xf0\x9f\x8d\xa6"=>"\xee\x8c\xba", "\xf0\x9f\x8d\x9f"=>"\xee\x8c\xbb", "\xf0\x9f\x8d\xa1"=>"\xee\x8c\xbc",
+ "\xf0\x9f\x8d\x98"=>"\xee\x8c\xbd", "\xf0\x9f\x8d\x9a"=>"\xee\x8c\xbe", "\xf0\x9f\x8d\x9d"=>"\xee\x8c\xbf", "\xf0\x9f\x8d\x9b"=>"\xee\x8d\x81", "\xf0\x9f\x8d\xa2"=>"\xee\x8d\x83",
+ "\xf0\x9f\x8d\xa3"=>"\xee\x8d\x84", "\xf0\x9f\x8d\xb1"=>"\xee\x8d\x8c", "\xf0\x9f\x8d\xb2"=>"\xee\x8d\x8d", "\xf0\x9f\x8d\xa7"=>"\xee\x90\xbf", "\xf0\x9f\x8d\x96"=>"[\xe8\x82\x89]",
+ "\xf0\x9f\x8d\xa5"=>"[\xe3\x81\xaa\xe3\x82\x8b\xe3\x81\xa8]", "\xf0\x9f\x8d\xa0"=>"[\xe3\x82\x84\xe3\x81\x8d\xe3\x81\x84\xe3\x82\x82]", "\xf0\x9f\x8d\x95"=>"[\xe3\x83\x94\xe3\x82\xb6]", "\xf0\x9f\x8d\x97"=>"[\xe3\x83\x81\xe3\x82\xad\xe3\x83\xb3]", "\xf0\x9f\x8d\xa8"=>"[\xe3\x82\xa2\xe3\x82\xa4\xe3\x82\xb9\xe3\x82\xaf\xe3\x83\xaa\xe3\x83\xbc\xe3\x83\xa0]",
+ "\xf0\x9f\x8d\xa9"=>"[\xe3\x83\x89\xe3\x83\xbc\xe3\x83\x8a\xe3\x83\x84]", "\xf0\x9f\x8d\xaa"=>"[\xe3\x82\xaf\xe3\x83\x83\xe3\x82\xad\xe3\x83\xbc]", "\xf0\x9f\x8d\xab"=>"[\xe3\x83\x81\xe3\x83\xa7\xe3\x82\xb3]", "\xf0\x9f\x8d\xac"=>"[\xe3\x82\xad\xe3\x83\xa3\xe3\x83\xb3\xe3\x83\x87\xe3\x82\xa3]", "\xf0\x9f\x8d\xad"=>"[\xe3\x82\xad\xe3\x83\xa3\xe3\x83\xb3\xe3\x83\x87\xe3\x82\xa3]",
+ "\xf0\x9f\x8d\xae"=>"[\xe3\x83\x97\xe3\x83\xaa\xe3\x83\xb3]", "\xf0\x9f\x8d\xaf"=>"[\xe3\x83\x8f\xe3\x83\x81\xe3\x83\x9f\xe3\x83\x84]", "\xf0\x9f\x8d\xa4"=>"[\xe3\x82\xa8\xe3\x83\x93\xe3\x83\x95\xe3\x83\xa9\xe3\x82\xa4]", "\xf0\x9f\x8d\xb4"=>"\xee\x81\x83", "\xe2\x98\x95"=>"\xee\x81\x85",
+ "\xf0\x9f\x8d\xb8"=>"\xee\x81\x84", "\xf0\x9f\x8d\xba"=>"\xee\x81\x87", "\xf0\x9f\x8d\xb5"=>"\xee\x8c\xb8", "\xf0\x9f\x8d\xb6"=>"\xee\x8c\x8b", "\xf0\x9f\x8d\xb7"=>"\xee\x81\x84",
+ "\xf0\x9f\x8d\xbb"=>"\xee\x8c\x8c", "\xf0\x9f\x8d\xb9"=>"\xee\x81\x84", "\xe2\x86\x97"=>"\xee\x88\xb6", "\xe2\x86\x98"=>"\xee\x88\xb8", "\xe2\x86\x96"=>"\xee\x88\xb7",
+ "\xe2\x86\x99"=>"\xee\x88\xb9", "\xe2\xa4\xb4"=>"\xee\x88\xb6", "\xe2\xa4\xb5"=>"\xee\x88\xb8", "\xe2\x86\x94"=>"\xe2\x87\x94", "\xe2\x86\x95"=>"\xe2\x86\x91\xe2\x86\x93",
+ "\xe2\xac\x86"=>"\xee\x88\xb2", "\xe2\xac\x87"=>"\xee\x88\xb3", "\xe2\x9e\xa1"=>"\xee\x88\xb4", "\xe2\xac\x85"=>"\xee\x88\xb5", "\xe2\x96\xb6"=>"\xee\x88\xba",
+ "\xe2\x97\x80"=>"\xee\x88\xbb", "\xe2\x8f\xa9"=>"\xee\x88\xbc", "\xe2\x8f\xaa"=>"\xee\x88\xbd", "\xe2\x8f\xab"=>"\xe2\x96\xb2", "\xe2\x8f\xac"=>"\xe2\x96\xbc",
+ "\xf0\x9f\x94\xba"=>"\xe2\x96\xb2", "\xf0\x9f\x94\xbb"=>"\xe2\x96\xbc", "\xf0\x9f\x94\xbc"=>"\xe2\x96\xb2", "\xf0\x9f\x94\xbd"=>"\xe2\x96\xbc", "\xe2\xad\x95"=>"\xee\x8c\xb2",
+ "\xe2\x9d\x8c"=>"\xee\x8c\xb3", "\xe2\x9d\x8e"=>"\xee\x8c\xb3", "\xe2\x9d\x97"=>"\xee\x80\xa1", "\xe2\x81\x89"=>"\xef\xbc\x81\xef\xbc\x9f", "\xe2\x80\xbc"=>"\xef\xbc\x81\xef\xbc\x81",
+ "\xe2\x9d\x93"=>"\xee\x80\xa0", "\xe2\x9d\x94"=>"\xee\x8c\xb6", "\xe2\x9d\x95"=>"\xee\x8c\xb7", "\xe3\x80\xb0"=>"\xe3\x80\x93", "\xe2\x9e\xb0"=>"\xef\xbd\x9e",
+ "\xe2\x9e\xbf"=>"\xee\x88\x91", "\xe2\x9d\xa4"=>"\xee\x80\xa2", "\xf0\x9f\x92\x93"=>"\xee\x8c\xa7", "\xf0\x9f\x92\x94"=>"\xee\x80\xa3", "\xf0\x9f\x92\x95"=>"\xee\x8c\xa7",
+ "\xf0\x9f\x92\x96"=>"\xee\x8c\xa7", "\xf0\x9f\x92\x97"=>"\xee\x8c\xa8", "\xf0\x9f\x92\x98"=>"\xee\x8c\xa9", "\xf0\x9f\x92\x99"=>"\xee\x8c\xaa", "\xf0\x9f\x92\x9a"=>"\xee\x8c\xab",
+ "\xf0\x9f\x92\x9b"=>"\xee\x8c\xac", "\xf0\x9f\x92\x9c"=>"\xee\x8c\xad", "\xf0\x9f\x92\x9d"=>"\xee\x90\xb7", "\xf0\x9f\x92\x9e"=>"\xee\x8c\xa7", "\xf0\x9f\x92\x9f"=>"\xee\x88\x84",
+ "\xe2\x99\xa5"=>"\xee\x88\x8c", "\xe2\x99\xa0"=>"\xee\x88\x8e", "\xe2\x99\xa6"=>"\xee\x88\x8d", "\xe2\x99\xa3"=>"\xee\x88\x8f", "\xf0\x9f\x9a\xac"=>"\xee\x8c\x8e",
+ "\xf0\x9f\x9a\xad"=>"\xee\x88\x88", "\xe2\x99\xbf"=>"\xee\x88\x8a", "\xf0\x9f\x9a\xa9"=>"[\xe6\x97\x97]", "\xe2\x9a\xa0"=>"\xee\x89\x92", "\xe2\x9b\x94"=>"\xee\x84\xb7",
+ "\xe2\x99\xbb"=>"\xe2\x86\x91\xe2\x86\x93", "\xf0\x9f\x9a\xb2"=>"\xee\x84\xb6", "\xf0\x9f\x9a\xb6"=>"\xee\x88\x81", "\xf0\x9f\x9a\xb9"=>"\xee\x84\xb8", "\xf0\x9f\x9a\xba"=>"\xee\x84\xb9",
+ "\xf0\x9f\x9b\x80"=>"\xee\x84\xbf", "\xf0\x9f\x9a\xbb"=>"\xee\x85\x91", "\xf0\x9f\x9a\xbd"=>"\xee\x85\x80", "\xf0\x9f\x9a\xbe"=>"\xee\x8c\x89", "\xf0\x9f\x9a\xbc"=>"\xee\x84\xba",
+ "\xf0\x9f\x9a\xaa"=>"[\xe3\x83\x89\xe3\x82\xa2]", "\xf0\x9f\x9a\xab"=>"[\xe7\xa6\x81\xe6\xad\xa2]", "\xe2\x9c\x94"=>"[\xe3\x83\x81\xe3\x82\xa7\xe3\x83\x83\xe3\x82\xaf\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]", "\xf0\x9f\x86\x91"=>"[CL]", "\xf0\x9f\x86\x92"=>"\xee\x88\x94",
+ "\xf0\x9f\x86\x93"=>"[FREE]", "\xf0\x9f\x86\x94"=>"\xee\x88\xa9", "\xf0\x9f\x86\x95"=>"\xee\x88\x92", "\xf0\x9f\x86\x96"=>"[NG]", "\xf0\x9f\x86\x97"=>"\xee\x89\x8d",
+ "\xf0\x9f\x86\x98"=>"[SOS]", "\xf0\x9f\x86\x99"=>"\xee\x88\x93", "\xf0\x9f\x86\x9a"=>"\xee\x84\xae", "\xf0\x9f\x88\x81"=>"\xee\x88\x83", "\xf0\x9f\x88\x82"=>"\xee\x88\xa8",
+ "\xf0\x9f\x88\xb2"=>"[\xe7\xa6\x81]", "\xf0\x9f\x88\xb3"=>"\xee\x88\xab", "\xf0\x9f\x88\xb4"=>"[\xe5\x90\x88]", "\xf0\x9f\x88\xb5"=>"\xee\x88\xaa", "\xf0\x9f\x88\xb6"=>"\xee\x88\x95",
+ "\xf0\x9f\x88\x9a"=>"\xee\x88\x96", "\xf0\x9f\x88\xb7"=>"\xee\x88\x97", "\xf0\x9f\x88\xb8"=>"\xee\x88\x98", "\xf0\x9f\x88\xb9"=>"\xee\x88\xa7", "\xf0\x9f\x88\xaf"=>"\xee\x88\xac",
+ "\xf0\x9f\x88\xba"=>"\xee\x88\xad", "\xe3\x8a\x99"=>"\xee\x8c\x95", "\xe3\x8a\x97"=>"\xee\x8c\x8d", "\xf0\x9f\x89\x90"=>"\xee\x88\xa6", "\xf0\x9f\x89\x91"=>"[\xe5\x8f\xaf]",
+ "\xe2\x9e\x95"=>"[\xef\xbc\x8b]", "\xe2\x9e\x96"=>"[\xef\xbc\x8d]", "\xe2\x9c\x96"=>"\xee\x8c\xb3", "\xe2\x9e\x97"=>"[\xc3\xb7]", "\xf0\x9f\x92\xa0"=>"\xe3\x80\x93",
+ "\xf0\x9f\x92\xa1"=>"\xee\x84\x8f", "\xf0\x9f\x92\xa2"=>"\xee\x8c\xb4", "\xf0\x9f\x92\xa3"=>"\xee\x8c\x91", "\xf0\x9f\x92\xa4"=>"\xee\x84\xbc", "\xf0\x9f\x92\xa5"=>"[\xe3\x83\x89\xe3\x83\xb3\xe3\x83\x83]",
+ "\xf0\x9f\x92\xa6"=>"\xee\x8c\xb1", "\xf0\x9f\x92\xa7"=>"\xee\x8c\xb1", "\xf0\x9f\x92\xa8"=>"\xee\x8c\xb0", "\xf0\x9f\x92\xa9"=>"\xee\x81\x9a", "\xf0\x9f\x92\xaa"=>"\xee\x85\x8c",
+ "\xf0\x9f\x92\xab"=>"\xee\x90\x87", "\xf0\x9f\x92\xac"=>"[\xe3\x83\x95\xe3\x82\xad\xe3\x83\x80\xe3\x82\xb7]", "\xe2\x9c\xa8"=>"\xee\x8c\xae", "\xe2\x9c\xb4"=>"\xee\x88\x85", "\xe2\x9c\xb3"=>"\xee\x88\x86",
+ "\xe2\x9a\xaa"=>"\xee\x88\x99", "\xe2\x9a\xab"=>"\xee\x88\x99", "\xf0\x9f\x94\xb4"=>"\xee\x88\x99", "\xf0\x9f\x94\xb5"=>"\xee\x88\x9a", "\xf0\x9f\x94\xb2"=>"\xee\x88\x9a",
+ "\xf0\x9f\x94\xb3"=>"\xee\x88\x9b", "\xe2\xad\x90"=>"\xee\x8c\xaf", "\xe2\xac\x9c"=>"\xee\x88\x9b", "\xe2\xac\x9b"=>"\xee\x88\x9a", "\xe2\x96\xab"=>"\xee\x88\x9b",
+ "\xe2\x96\xaa"=>"\xee\x88\x9a", "\xe2\x97\xbd"=>"\xee\x88\x9b", "\xe2\x97\xbe"=>"\xee\x88\x9a", "\xe2\x97\xbb"=>"\xee\x88\x9b", "\xe2\x97\xbc"=>"\xee\x88\x9a",
+ "\xf0\x9f\x94\xb6"=>"\xee\x88\x9b", "\xf0\x9f\x94\xb7"=>"\xee\x88\x9b", "\xf0\x9f\x94\xb8"=>"\xee\x88\x9b", "\xf0\x9f\x94\xb9"=>"\xee\x88\x9b", "\xe2\x9d\x87"=>"\xee\x8c\xae",
+ "\xf0\x9f\x92\xae"=>"[\xe8\x8a\xb1\xe4\xb8\xb8]", "\xf0\x9f\x92\xaf"=>"[100\xe7\x82\xb9]", "\xe2\x86\xa9"=>"\xe2\x86\x90\xe2\x94\x98", "\xe2\x86\xaa"=>"\xe2\x94\x94\xe2\x86\x92", "\xf0\x9f\x94\x83"=>"\xe2\x86\x91\xe2\x86\x93",
+ "\xf0\x9f\x94\x8a"=>"\xee\x85\x81", "\xf0\x9f\x94\x8b"=>"[\xe9\x9b\xbb\xe6\xb1\xa0]", "\xf0\x9f\x94\x8c"=>"[\xe3\x82\xb3\xe3\x83\xb3\xe3\x82\xbb\xe3\x83\xb3\xe3\x83\x88]", "\xf0\x9f\x94\x8d"=>"\xee\x84\x94", "\xf0\x9f\x94\x8e"=>"\xee\x84\x94",
+ "\xf0\x9f\x94\x92"=>"\xee\x85\x84", "\xf0\x9f\x94\x93"=>"\xee\x85\x85", "\xf0\x9f\x94\x8f"=>"\xee\x85\x84", "\xf0\x9f\x94\x90"=>"\xee\x85\x84", "\xf0\x9f\x94\x91"=>"\xee\x80\xbf",
+ "\xf0\x9f\x94\x94"=>"\xee\x8c\xa5", "\xe2\x98\x91"=>"[\xe3\x83\x81\xe3\x82\xa7\xe3\x83\x83\xe3\x82\xaf\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]", "\xf0\x9f\x94\x98"=>"[\xe3\x83\xa9\xe3\x82\xb8\xe3\x82\xaa\xe3\x83\x9c\xe3\x82\xbf\xe3\x83\xb3]", "\xf0\x9f\x94\x96"=>"[\xe3\x83\x96\xe3\x83\x83\xe3\x82\xaf\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]", "\xf0\x9f\x94\x97"=>"[\xe3\x83\xaa\xe3\x83\xb3\xe3\x82\xaf]",
+ "\xf0\x9f\x94\x99"=>"\xee\x88\xb5", "\xf0\x9f\x94\x9a"=>"[end]", "\xf0\x9f\x94\x9b"=>"[ON]", "\xf0\x9f\x94\x9c"=>"[SOON]", "\xf0\x9f\x94\x9d"=>"\xee\x89\x8c",
+ "\xe2\x9c\x85"=>"[\xe3\x83\x81\xe3\x82\xa7\xe3\x83\x83\xe3\x82\xaf\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]", "\xe2\x9c\x8a"=>"\xee\x80\x90", "\xe2\x9c\x8b"=>"\xee\x80\x92", "\xe2\x9c\x8c"=>"\xee\x80\x91", "\xf0\x9f\x91\x8a"=>"\xee\x80\x8d",
+ "\xf0\x9f\x91\x8d"=>"\xee\x80\x8e", "\xe2\x98\x9d"=>"\xee\x80\x8f", "\xf0\x9f\x91\x86"=>"\xee\x88\xae", "\xf0\x9f\x91\x87"=>"\xee\x88\xaf", "\xf0\x9f\x91\x88"=>"\xee\x88\xb0",
+ "\xf0\x9f\x91\x89"=>"\xee\x88\xb1", "\xf0\x9f\x91\x8b"=>"\xee\x90\x9e", "\xf0\x9f\x91\x8f"=>"\xee\x90\x9f", "\xf0\x9f\x91\x8c"=>"\xee\x90\xa0", "\xf0\x9f\x91\x8e"=>"\xee\x90\xa1",
+ "\xf0\x9f\x91\x90"=>"\xee\x90\xa2",
+ ),
+ 'unified_to_google' => array(
+ "\xe2\x98\x80"=>"\xf3\xbe\x80\x80", "\xe2\x98\x81"=>"\xf3\xbe\x80\x81", "\xe2\x98\x94"=>"\xf3\xbe\x80\x82", "\xe2\x9b\x84"=>"\xf3\xbe\x80\x83",
+ "\xe2\x9a\xa1"=>"\xf3\xbe\x80\x84", "\xf0\x9f\x8c\x80"=>"\xf3\xbe\x80\x85", "\xf0\x9f\x8c\x81"=>"\xf3\xbe\x80\x86", "\xf0\x9f\x8c\x82"=>"\xf3\xbe\x80\x87", "\xf0\x9f\x8c\x83"=>"\xf3\xbe\x80\x88",
+ "\xf0\x9f\x8c\x84"=>"\xf3\xbe\x80\x89", "\xf0\x9f\x8c\x85"=>"\xf3\xbe\x80\x8a", "\xf0\x9f\x8c\x86"=>"\xf3\xbe\x80\x8b", "\xf0\x9f\x8c\x87"=>"\xf3\xbe\x80\x8c", "\xf0\x9f\x8c\x88"=>"\xf3\xbe\x80\x8d",
+ "\xe2\x9d\x84"=>"\xf3\xbe\x80\x8e", "\xe2\x9b\x85"=>"\xf3\xbe\x80\x8f", "\xf0\x9f\x8c\x89"=>"\xf3\xbe\x80\x90", "\xf0\x9f\x8c\x8a"=>"\xf3\xbe\x80\xb8", "\xf0\x9f\x8c\x8b"=>"\xf3\xbe\x80\xba",
+ "\xf0\x9f\x8c\x8c"=>"\xf3\xbe\x80\xbb", "\xf0\x9f\x8c\x8f"=>"\xf3\xbe\x80\xb9", "\xf0\x9f\x8c\x91"=>"\xf3\xbe\x80\x91", "\xf0\x9f\x8c\x94"=>"\xf3\xbe\x80\x92", "\xf0\x9f\x8c\x93"=>"\xf3\xbe\x80\x93",
+ "\xf0\x9f\x8c\x99"=>"\xf3\xbe\x80\x94", "\xf0\x9f\x8c\x95"=>"\xf3\xbe\x80\x95", "\xf0\x9f\x8c\x9b"=>"\xf3\xbe\x80\x96", "\xf0\x9f\x8c\x9f"=>"\xf3\xbe\xad\xa9", "\xf0\x9f\x8c\xa0"=>"\xf3\xbe\xad\xaa",
+ "\xf0\x9f\x95\x90"=>"\xf3\xbe\x80\x9e", "\xf0\x9f\x95\x91"=>"\xf3\xbe\x80\x9f", "\xf0\x9f\x95\x92"=>"\xf3\xbe\x80\xa0", "\xf0\x9f\x95\x93"=>"\xf3\xbe\x80\xa1", "\xf0\x9f\x95\x94"=>"\xf3\xbe\x80\xa2",
+ "\xf0\x9f\x95\x95"=>"\xf3\xbe\x80\xa3", "\xf0\x9f\x95\x96"=>"\xf3\xbe\x80\xa4", "\xf0\x9f\x95\x97"=>"\xf3\xbe\x80\xa5", "\xf0\x9f\x95\x98"=>"\xf3\xbe\x80\xa6", "\xf0\x9f\x95\x99"=>"\xf3\xbe\x80\xa7",
+ "\xf0\x9f\x95\x9a"=>"\xf3\xbe\x80\xa8", "\xf0\x9f\x95\x9b"=>"\xf3\xbe\x80\xa9", "\xe2\x8c\x9a"=>"\xf3\xbe\x80\x9d", "\xe2\x8c\x9b"=>"\xf3\xbe\x80\x9c", "\xe2\x8f\xb0"=>"\xf3\xbe\x80\xaa",
+ "\xe2\x8f\xb3"=>"\xf3\xbe\x80\x9b", "\xe2\x99\x88"=>"\xf3\xbe\x80\xab", "\xe2\x99\x89"=>"\xf3\xbe\x80\xac", "\xe2\x99\x8a"=>"\xf3\xbe\x80\xad", "\xe2\x99\x8b"=>"\xf3\xbe\x80\xae",
+ "\xe2\x99\x8c"=>"\xf3\xbe\x80\xaf", "\xe2\x99\x8d"=>"\xf3\xbe\x80\xb0", "\xe2\x99\x8e"=>"\xf3\xbe\x80\xb1", "\xe2\x99\x8f"=>"\xf3\xbe\x80\xb2", "\xe2\x99\x90"=>"\xf3\xbe\x80\xb3",
+ "\xe2\x99\x91"=>"\xf3\xbe\x80\xb4", "\xe2\x99\x92"=>"\xf3\xbe\x80\xb5", "\xe2\x99\x93"=>"\xf3\xbe\x80\xb6", "\xe2\x9b\x8e"=>"\xf3\xbe\x80\xb7", "\xf0\x9f\x8d\x80"=>"\xf3\xbe\x80\xbc",
+ "\xf0\x9f\x8c\xb7"=>"\xf3\xbe\x80\xbd", "\xf0\x9f\x8c\xb1"=>"\xf3\xbe\x80\xbe", "\xf0\x9f\x8d\x81"=>"\xf3\xbe\x80\xbf", "\xf0\x9f\x8c\xb8"=>"\xf3\xbe\x81\x80", "\xf0\x9f\x8c\xb9"=>"\xf3\xbe\x81\x81",
+ "\xf0\x9f\x8d\x82"=>"\xf3\xbe\x81\x82", "\xf0\x9f\x8d\x83"=>"\xf3\xbe\x81\x83", "\xf0\x9f\x8c\xba"=>"\xf3\xbe\x81\x85", "\xf0\x9f\x8c\xbb"=>"\xf3\xbe\x81\x86", "\xf0\x9f\x8c\xb4"=>"\xf3\xbe\x81\x87",
+ "\xf0\x9f\x8c\xb5"=>"\xf3\xbe\x81\x88", "\xf0\x9f\x8c\xbe"=>"\xf3\xbe\x81\x89", "\xf0\x9f\x8c\xbd"=>"\xf3\xbe\x81\x8a", "\xf0\x9f\x8d\x84"=>"\xf3\xbe\x81\x8b", "\xf0\x9f\x8c\xb0"=>"\xf3\xbe\x81\x8c",
+ "\xf0\x9f\x8c\xbc"=>"\xf3\xbe\x81\x8d", "\xf0\x9f\x8c\xbf"=>"\xf3\xbe\x81\x8e", "\xf0\x9f\x8d\x92"=>"\xf3\xbe\x81\x8f", "\xf0\x9f\x8d\x8c"=>"\xf3\xbe\x81\x90", "\xf0\x9f\x8d\x8e"=>"\xf3\xbe\x81\x91",
+ "\xf0\x9f\x8d\x8a"=>"\xf3\xbe\x81\x92", "\xf0\x9f\x8d\x93"=>"\xf3\xbe\x81\x93", "\xf0\x9f\x8d\x89"=>"\xf3\xbe\x81\x94", "\xf0\x9f\x8d\x85"=>"\xf3\xbe\x81\x95", "\xf0\x9f\x8d\x86"=>"\xf3\xbe\x81\x96",
+ "\xf0\x9f\x8d\x88"=>"\xf3\xbe\x81\x97", "\xf0\x9f\x8d\x8d"=>"\xf3\xbe\x81\x98", "\xf0\x9f\x8d\x87"=>"\xf3\xbe\x81\x99", "\xf0\x9f\x8d\x91"=>"\xf3\xbe\x81\x9a", "\xf0\x9f\x8d\x8f"=>"\xf3\xbe\x81\x9b",
+ "\xf0\x9f\x91\x80"=>"\xf3\xbe\x86\x90", "\xf0\x9f\x91\x82"=>"\xf3\xbe\x86\x91", "\xf0\x9f\x91\x83"=>"\xf3\xbe\x86\x92", "\xf0\x9f\x91\x84"=>"\xf3\xbe\x86\x93", "\xf0\x9f\x91\x85"=>"\xf3\xbe\x86\x94",
+ "\xf0\x9f\x92\x84"=>"\xf3\xbe\x86\x95", "\xf0\x9f\x92\x85"=>"\xf3\xbe\x86\x96", "\xf0\x9f\x92\x86"=>"\xf3\xbe\x86\x97", "\xf0\x9f\x92\x87"=>"\xf3\xbe\x86\x98", "\xf0\x9f\x92\x88"=>"\xf3\xbe\x86\x99",
+ "\xf0\x9f\x91\xa4"=>"\xf3\xbe\x86\x9a", "\xf0\x9f\x91\xa6"=>"\xf3\xbe\x86\x9b", "\xf0\x9f\x91\xa7"=>"\xf3\xbe\x86\x9c", "\xf0\x9f\x91\xa8"=>"\xf3\xbe\x86\x9d", "\xf0\x9f\x91\xa9"=>"\xf3\xbe\x86\x9e",
+ "\xf0\x9f\x91\xaa"=>"\xf3\xbe\x86\x9f", "\xf0\x9f\x91\xab"=>"\xf3\xbe\x86\xa0", "\xf0\x9f\x91\xae"=>"\xf3\xbe\x86\xa1", "\xf0\x9f\x91\xaf"=>"\xf3\xbe\x86\xa2", "\xf0\x9f\x91\xb0"=>"\xf3\xbe\x86\xa3",
+ "\xf0\x9f\x91\xb1"=>"\xf3\xbe\x86\xa4", "\xf0\x9f\x91\xb2"=>"\xf3\xbe\x86\xa5", "\xf0\x9f\x91\xb3"=>"\xf3\xbe\x86\xa6", "\xf0\x9f\x91\xb4"=>"\xf3\xbe\x86\xa7", "\xf0\x9f\x91\xb5"=>"\xf3\xbe\x86\xa8",
+ "\xf0\x9f\x91\xb6"=>"\xf3\xbe\x86\xa9", "\xf0\x9f\x91\xb7"=>"\xf3\xbe\x86\xaa", "\xf0\x9f\x91\xb8"=>"\xf3\xbe\x86\xab", "\xf0\x9f\x91\xb9"=>"\xf3\xbe\x86\xac", "\xf0\x9f\x91\xba"=>"\xf3\xbe\x86\xad",
+ "\xf0\x9f\x91\xbb"=>"\xf3\xbe\x86\xae", "\xf0\x9f\x91\xbc"=>"\xf3\xbe\x86\xaf", "\xf0\x9f\x91\xbd"=>"\xf3\xbe\x86\xb0", "\xf0\x9f\x91\xbe"=>"\xf3\xbe\x86\xb1", "\xf0\x9f\x91\xbf"=>"\xf3\xbe\x86\xb2",
+ "\xf0\x9f\x92\x80"=>"\xf3\xbe\x86\xb3", "\xf0\x9f\x92\x81"=>"\xf3\xbe\x86\xb4", "\xf0\x9f\x92\x82"=>"\xf3\xbe\x86\xb5", "\xf0\x9f\x92\x83"=>"\xf3\xbe\x86\xb6", "\xf0\x9f\x90\x8c"=>"\xf3\xbe\x86\xb9",
+ "\xf0\x9f\x90\x8d"=>"\xf3\xbe\x87\x93", "\xf0\x9f\x90\x8e"=>"\xf3\xbe\x9f\x9c", "\xf0\x9f\x90\x94"=>"\xf3\xbe\x87\x94", "\xf0\x9f\x90\x97"=>"\xf3\xbe\x87\x95", "\xf0\x9f\x90\xab"=>"\xf3\xbe\x87\x96",
+ "\xf0\x9f\x90\x98"=>"\xf3\xbe\x87\x8c", "\xf0\x9f\x90\xa8"=>"\xf3\xbe\x87\x8d", "\xf0\x9f\x90\x92"=>"\xf3\xbe\x87\x8e", "\xf0\x9f\x90\x91"=>"\xf3\xbe\x87\x8f", "\xf0\x9f\x90\x99"=>"\xf3\xbe\x87\x85",
+ "\xf0\x9f\x90\x9a"=>"\xf3\xbe\x87\x86", "\xf0\x9f\x90\x9b"=>"\xf3\xbe\x87\x8b", "\xf0\x9f\x90\x9c"=>"\xf3\xbe\x87\x9a", "\xf0\x9f\x90\x9d"=>"\xf3\xbe\x87\xa1", "\xf0\x9f\x90\x9e"=>"\xf3\xbe\x87\xa2",
+ "\xf0\x9f\x90\xa0"=>"\xf3\xbe\x87\x89", "\xf0\x9f\x90\xa1"=>"\xf3\xbe\x87\x99", "\xf0\x9f\x90\xa2"=>"\xf3\xbe\x87\x9c", "\xf0\x9f\x90\xa4"=>"\xf3\xbe\x86\xba", "\xf0\x9f\x90\xa5"=>"\xf3\xbe\x86\xbb",
+ "\xf0\x9f\x90\xa6"=>"\xf3\xbe\x87\x88", "\xf0\x9f\x90\xa3"=>"\xf3\xbe\x87\x9d", "\xf0\x9f\x90\xa7"=>"\xf3\xbe\x86\xbc", "\xf0\x9f\x90\xa9"=>"\xf3\xbe\x87\x98", "\xf0\x9f\x90\x9f"=>"\xf3\xbe\x86\xbd",
+ "\xf0\x9f\x90\xac"=>"\xf3\xbe\x87\x87", "\xf0\x9f\x90\xad"=>"\xf3\xbe\x87\x82", "\xf0\x9f\x90\xaf"=>"\xf3\xbe\x87\x80", "\xf0\x9f\x90\xb1"=>"\xf3\xbe\x86\xb8", "\xf0\x9f\x90\xb3"=>"\xf3\xbe\x87\x83",
+ "\xf0\x9f\x90\xb4"=>"\xf3\xbe\x86\xbe", "\xf0\x9f\x90\xb5"=>"\xf3\xbe\x87\x84", "\xf0\x9f\x90\xb6"=>"\xf3\xbe\x86\xb7", "\xf0\x9f\x90\xb7"=>"\xf3\xbe\x86\xbf", "\xf0\x9f\x90\xbb"=>"\xf3\xbe\x87\x81",
+ "\xf0\x9f\x90\xb9"=>"\xf3\xbe\x87\x8a", "\xf0\x9f\x90\xba"=>"\xf3\xbe\x87\x90", "\xf0\x9f\x90\xae"=>"\xf3\xbe\x87\x91", "\xf0\x9f\x90\xb0"=>"\xf3\xbe\x87\x92", "\xf0\x9f\x90\xb8"=>"\xf3\xbe\x87\x97",
+ "\xf0\x9f\x90\xbe"=>"\xf3\xbe\x87\x9b", "\xf0\x9f\x90\xb2"=>"\xf3\xbe\x87\x9e", "\xf0\x9f\x90\xbc"=>"\xf3\xbe\x87\x9f", "\xf0\x9f\x90\xbd"=>"\xf3\xbe\x87\xa0", "\xf0\x9f\x98\xa0"=>"\xf3\xbe\x8c\xa0",
+ "\xf0\x9f\x98\xa9"=>"\xf3\xbe\x8c\xa1", "\xf0\x9f\x98\xb2"=>"\xf3\xbe\x8c\xa2", "\xf0\x9f\x98\x9e"=>"\xf3\xbe\x8c\xa3", "\xf0\x9f\x98\xb5"=>"\xf3\xbe\x8c\xa4", "\xf0\x9f\x98\xb0"=>"\xf3\xbe\x8c\xa5",
+ "\xf0\x9f\x98\x92"=>"\xf3\xbe\x8c\xa6", "\xf0\x9f\x98\x8d"=>"\xf3\xbe\x8c\xa7", "\xf0\x9f\x98\xa4"=>"\xf3\xbe\x8c\xa8", "\xf0\x9f\x98\x9c"=>"\xf3\xbe\x8c\xa9", "\xf0\x9f\x98\x9d"=>"\xf3\xbe\x8c\xaa",
+ "\xf0\x9f\x98\x8b"=>"\xf3\xbe\x8c\xab", "\xf0\x9f\x98\x98"=>"\xf3\xbe\x8c\xac", "\xf0\x9f\x98\x9a"=>"\xf3\xbe\x8c\xad", "\xf0\x9f\x98\xb7"=>"\xf3\xbe\x8c\xae", "\xf0\x9f\x98\xb3"=>"\xf3\xbe\x8c\xaf",
+ "\xf0\x9f\x98\x83"=>"\xf3\xbe\x8c\xb0", "\xf0\x9f\x98\x85"=>"\xf3\xbe\x8c\xb1", "\xf0\x9f\x98\x86"=>"\xf3\xbe\x8c\xb2", "\xf0\x9f\x98\x81"=>"\xf3\xbe\x8c\xb3", "\xf0\x9f\x98\x82"=>"\xf3\xbe\x8c\xb4",
+ "\xf0\x9f\x98\x8a"=>"\xf3\xbe\x8c\xb5", "\xe2\x98\xba"=>"\xf3\xbe\x8c\xb6", "\xf0\x9f\x98\x84"=>"\xf3\xbe\x8c\xb8", "\xf0\x9f\x98\xa2"=>"\xf3\xbe\x8c\xb9", "\xf0\x9f\x98\xad"=>"\xf3\xbe\x8c\xba",
+ "\xf0\x9f\x98\xa8"=>"\xf3\xbe\x8c\xbb", "\xf0\x9f\x98\xa3"=>"\xf3\xbe\x8c\xbc", "\xf0\x9f\x98\xa1"=>"\xf3\xbe\x8c\xbd", "\xf0\x9f\x98\x8c"=>"\xf3\xbe\x8c\xbe", "\xf0\x9f\x98\x96"=>"\xf3\xbe\x8c\xbf",
+ "\xf0\x9f\x98\x94"=>"\xf3\xbe\x8d\x80", "\xf0\x9f\x98\xb1"=>"\xf3\xbe\x8d\x81", "\xf0\x9f\x98\xaa"=>"\xf3\xbe\x8d\x82", "\xf0\x9f\x98\x8f"=>"\xf3\xbe\x8d\x83", "\xf0\x9f\x98\x93"=>"\xf3\xbe\x8d\x84",
+ "\xf0\x9f\x98\xa5"=>"\xf3\xbe\x8d\x85", "\xf0\x9f\x98\xab"=>"\xf3\xbe\x8d\x86", "\xf0\x9f\x98\x89"=>"\xf3\xbe\x8d\x87", "\xf0\x9f\x98\xba"=>"\xf3\xbe\x8d\x88", "\xf0\x9f\x98\xb8"=>"\xf3\xbe\x8d\x89",
+ "\xf0\x9f\x98\xb9"=>"\xf3\xbe\x8d\x8a", "\xf0\x9f\x98\xbd"=>"\xf3\xbe\x8d\x8b", "\xf0\x9f\x98\xbb"=>"\xf3\xbe\x8d\x8c", "\xf0\x9f\x98\xbf"=>"\xf3\xbe\x8d\x8d", "\xf0\x9f\x98\xbe"=>"\xf3\xbe\x8d\x8e",
+ "\xf0\x9f\x98\xbc"=>"\xf3\xbe\x8d\x8f", "\xf0\x9f\x99\x80"=>"\xf3\xbe\x8d\x90", "\xf0\x9f\x99\x85"=>"\xf3\xbe\x8d\x91", "\xf0\x9f\x99\x86"=>"\xf3\xbe\x8d\x92", "\xf0\x9f\x99\x87"=>"\xf3\xbe\x8d\x93",
+ "\xf0\x9f\x99\x88"=>"\xf3\xbe\x8d\x94", "\xf0\x9f\x99\x8a"=>"\xf3\xbe\x8d\x95", "\xf0\x9f\x99\x89"=>"\xf3\xbe\x8d\x96", "\xf0\x9f\x99\x8b"=>"\xf3\xbe\x8d\x97", "\xf0\x9f\x99\x8c"=>"\xf3\xbe\x8d\x98",
+ "\xf0\x9f\x99\x8d"=>"\xf3\xbe\x8d\x99", "\xf0\x9f\x99\x8e"=>"\xf3\xbe\x8d\x9a", "\xf0\x9f\x99\x8f"=>"\xf3\xbe\x8d\x9b", "\xf0\x9f\x8f\xa0"=>"\xf3\xbe\x92\xb0", "\xf0\x9f\x8f\xa1"=>"\xf3\xbe\x92\xb1",
+ "\xf0\x9f\x8f\xa2"=>"\xf3\xbe\x92\xb2", "\xf0\x9f\x8f\xa3"=>"\xf3\xbe\x92\xb3", "\xf0\x9f\x8f\xa5"=>"\xf3\xbe\x92\xb4", "\xf0\x9f\x8f\xa6"=>"\xf3\xbe\x92\xb5", "\xf0\x9f\x8f\xa7"=>"\xf3\xbe\x92\xb6",
+ "\xf0\x9f\x8f\xa8"=>"\xf3\xbe\x92\xb7", "\xf0\x9f\x8f\xa9"=>"\xf3\xbe\x92\xb8", "\xf0\x9f\x8f\xaa"=>"\xf3\xbe\x92\xb9", "\xf0\x9f\x8f\xab"=>"\xf3\xbe\x92\xba", "\xe2\x9b\xaa"=>"\xf3\xbe\x92\xbb",
+ "\xe2\x9b\xb2"=>"\xf3\xbe\x92\xbc", "\xf0\x9f\x8f\xac"=>"\xf3\xbe\x92\xbd", "\xf0\x9f\x8f\xaf"=>"\xf3\xbe\x92\xbe", "\xf0\x9f\x8f\xb0"=>"\xf3\xbe\x92\xbf", "\xf0\x9f\x8f\xad"=>"\xf3\xbe\x93\x80",
+ "\xe2\x9a\x93"=>"\xf3\xbe\x93\x81", "\xf0\x9f\x8f\xae"=>"\xf3\xbe\x93\x82", "\xf0\x9f\x97\xbb"=>"\xf3\xbe\x93\x83", "\xf0\x9f\x97\xbc"=>"\xf3\xbe\x93\x84", "\xf0\x9f\x97\xbd"=>"\xf3\xbe\x93\x86",
+ "\xf0\x9f\x97\xbe"=>"\xf3\xbe\x93\x87", "\xf0\x9f\x97\xbf"=>"\xf3\xbe\x93\x88", "\xf0\x9f\x91\x9e"=>"\xf3\xbe\x93\x8c", "\xf0\x9f\x91\x9f"=>"\xf3\xbe\x93\x8d", "\xf0\x9f\x91\xa0"=>"\xf3\xbe\x93\x96",
+ "\xf0\x9f\x91\xa1"=>"\xf3\xbe\x93\x97", "\xf0\x9f\x91\xa2"=>"\xf3\xbe\x93\x98", "\xf0\x9f\x91\xa3"=>"\xf3\xbe\x95\x93", "\xf0\x9f\x91\x93"=>"\xf3\xbe\x93\x8e", "\xf0\x9f\x91\x95"=>"\xf3\xbe\x93\x8f",
+ "\xf0\x9f\x91\x96"=>"\xf3\xbe\x93\x90", "\xf0\x9f\x91\x91"=>"\xf3\xbe\x93\x91", "\xf0\x9f\x91\x94"=>"\xf3\xbe\x93\x93", "\xf0\x9f\x91\x92"=>"\xf3\xbe\x93\x94", "\xf0\x9f\x91\x97"=>"\xf3\xbe\x93\x95",
+ "\xf0\x9f\x91\x98"=>"\xf3\xbe\x93\x99", "\xf0\x9f\x91\x99"=>"\xf3\xbe\x93\x9a", "\xf0\x9f\x91\x9a"=>"\xf3\xbe\x93\x9b", "\xf0\x9f\x91\x9b"=>"\xf3\xbe\x93\x9c", "\xf0\x9f\x91\x9c"=>"\xf3\xbe\x93\xb0",
+ "\xf0\x9f\x91\x9d"=>"\xf3\xbe\x93\xb1", "\xf0\x9f\x92\xb0"=>"\xf3\xbe\x93\x9d", "\xf0\x9f\x92\xb1"=>"\xf3\xbe\x93\x9e", "\xf0\x9f\x92\xb9"=>"\xf3\xbe\x93\x9f", "\xf0\x9f\x92\xb2"=>"\xf3\xbe\x93\xa0",
+ "\xf0\x9f\x92\xb3"=>"\xf3\xbe\x93\xa1", "\xf0\x9f\x92\xb4"=>"\xf3\xbe\x93\xa2", "\xf0\x9f\x92\xb5"=>"\xf3\xbe\x93\xa3", "\xf0\x9f\x92\xb8"=>"\xf3\xbe\x93\xa4", "\xf0\x9f\x87\xa8\xf0\x9f\x87\xb3"=>"\xf3\xbe\x93\xad",
+ "\xf0\x9f\x87\xa9\xf0\x9f\x87\xaa"=>"\xf3\xbe\x93\xa8", "\xf0\x9f\x87\xaa\xf0\x9f\x87\xb8"=>"\xf3\xbe\x93\xab", "\xf0\x9f\x87\xab\xf0\x9f\x87\xb7"=>"\xf3\xbe\x93\xa7", "\xf0\x9f\x87\xac\xf0\x9f\x87\xa7"=>"\xf3\xbe\x93\xaa", "\xf0\x9f\x87\xae\xf0\x9f\x87\xb9"=>"\xf3\xbe\x93\xa9",
+ "\xf0\x9f\x87\xaf\xf0\x9f\x87\xb5"=>"\xf3\xbe\x93\xa5", "\xf0\x9f\x87\xb0\xf0\x9f\x87\xb7"=>"\xf3\xbe\x93\xae", "\xf0\x9f\x87\xb7\xf0\x9f\x87\xba"=>"\xf3\xbe\x93\xac", "\xf0\x9f\x87\xba\xf0\x9f\x87\xb8"=>"\xf3\xbe\x93\xa6", "\xf0\x9f\x94\xa5"=>"\xf3\xbe\x93\xb6",
+ "\xf0\x9f\x94\xa6"=>"\xf3\xbe\x93\xbb", "\xf0\x9f\x94\xa7"=>"\xf3\xbe\x93\x89", "\xf0\x9f\x94\xa8"=>"\xf3\xbe\x93\x8a", "\xf0\x9f\x94\xa9"=>"\xf3\xbe\x93\x8b", "\xf0\x9f\x94\xaa"=>"\xf3\xbe\x93\xba",
+ "\xf0\x9f\x94\xab"=>"\xf3\xbe\x93\xb5", "\xf0\x9f\x94\xae"=>"\xf3\xbe\x93\xb7", "\xf0\x9f\x94\xaf"=>"\xf3\xbe\x93\xb8", "\xf0\x9f\x94\xb0"=>"\xf3\xbe\x81\x84", "\xf0\x9f\x94\xb1"=>"\xf3\xbe\x93\x92",
+ "\xf0\x9f\x92\x89"=>"\xf3\xbe\x94\x89", "\xf0\x9f\x92\x8a"=>"\xf3\xbe\x94\x8a", "\xf0\x9f\x85\xb0"=>"\xf3\xbe\x94\x8b", "\xf0\x9f\x85\xb1"=>"\xf3\xbe\x94\x8c", "\xf0\x9f\x86\x8e"=>"\xf3\xbe\x94\x8d",
+ "\xf0\x9f\x85\xbe"=>"\xf3\xbe\x94\x8e", "\xf0\x9f\x8e\x80"=>"\xf3\xbe\x94\x8f", "\xf0\x9f\x8e\x81"=>"\xf3\xbe\x94\x90", "\xf0\x9f\x8e\x82"=>"\xf3\xbe\x94\x91", "\xf0\x9f\x8e\x84"=>"\xf3\xbe\x94\x92",
+ "\xf0\x9f\x8e\x85"=>"\xf3\xbe\x94\x93", "\xf0\x9f\x8e\x8c"=>"\xf3\xbe\x94\x94", "\xf0\x9f\x8e\x86"=>"\xf3\xbe\x94\x95", "\xf0\x9f\x8e\x88"=>"\xf3\xbe\x94\x96", "\xf0\x9f\x8e\x89"=>"\xf3\xbe\x94\x97",
+ "\xf0\x9f\x8e\x8d"=>"\xf3\xbe\x94\x98", "\xf0\x9f\x8e\x8e"=>"\xf3\xbe\x94\x99", "\xf0\x9f\x8e\x93"=>"\xf3\xbe\x94\x9a", "\xf0\x9f\x8e\x92"=>"\xf3\xbe\x94\x9b", "\xf0\x9f\x8e\x8f"=>"\xf3\xbe\x94\x9c",
+ "\xf0\x9f\x8e\x87"=>"\xf3\xbe\x94\x9d", "\xf0\x9f\x8e\x90"=>"\xf3\xbe\x94\x9e", "\xf0\x9f\x8e\x83"=>"\xf3\xbe\x94\x9f", "\xf0\x9f\x8e\x8a"=>"\xf3\xbe\x94\xa0", "\xf0\x9f\x8e\x8b"=>"\xf3\xbe\x94\xa1",
+ "\xf0\x9f\x8e\x91"=>"\xf3\xbe\x80\x97", "\xf0\x9f\x93\x9f"=>"\xf3\xbe\x94\xa2", "\xe2\x98\x8e"=>"\xf3\xbe\x94\xa3", "\xf0\x9f\x93\x9e"=>"\xf3\xbe\x94\xa4", "\xf0\x9f\x93\xb1"=>"\xf3\xbe\x94\xa5",
+ "\xf0\x9f\x93\xb2"=>"\xf3\xbe\x94\xa6", "\xf0\x9f\x93\x9d"=>"\xf3\xbe\x94\xa7", "\xf0\x9f\x93\xa0"=>"\xf3\xbe\x94\xa8", "\xe2\x9c\x89"=>"\xf3\xbe\x94\xa9", "\xf0\x9f\x93\xa8"=>"\xf3\xbe\x94\xaa",
+ "\xf0\x9f\x93\xa9"=>"\xf3\xbe\x94\xab", "\xf0\x9f\x93\xaa"=>"\xf3\xbe\x94\xac", "\xf0\x9f\x93\xab"=>"\xf3\xbe\x94\xad", "\xf0\x9f\x93\xae"=>"\xf3\xbe\x94\xae", "\xf0\x9f\x93\xb0"=>"\xf3\xbe\xa0\xa2",
+ "\xf0\x9f\x93\xa2"=>"\xf3\xbe\x94\xaf", "\xf0\x9f\x93\xa3"=>"\xf3\xbe\x94\xb0", "\xf0\x9f\x93\xa1"=>"\xf3\xbe\x94\xb1", "\xf0\x9f\x93\xa4"=>"\xf3\xbe\x94\xb3", "\xf0\x9f\x93\xa5"=>"\xf3\xbe\x94\xb4",
+ "\xf0\x9f\x93\xa6"=>"\xf3\xbe\x94\xb5", "\xf0\x9f\x93\xa7"=>"\xf3\xbe\xae\x92", "\xf0\x9f\x94\xa0"=>"\xf3\xbe\xad\xbc", "\xf0\x9f\x94\xa1"=>"\xf3\xbe\xad\xbd", "\xf0\x9f\x94\xa2"=>"\xf3\xbe\xad\xbe",
+ "\xf0\x9f\x94\xa3"=>"\xf3\xbe\xad\xbf", "\xf0\x9f\x94\xa4"=>"\xf3\xbe\xae\x80", "\xe2\x9c\x92"=>"\xf3\xbe\x94\xb6", "\xf0\x9f\x92\xba"=>"\xf3\xbe\x94\xb7", "\xf0\x9f\x92\xbb"=>"\xf3\xbe\x94\xb8",
+ "\xe2\x9c\x8f"=>"\xf3\xbe\x94\xb9", "\xf0\x9f\x93\x8e"=>"\xf3\xbe\x94\xba", "\xf0\x9f\x92\xbc"=>"\xf3\xbe\x94\xbb", "\xf0\x9f\x92\xbd"=>"\xf3\xbe\x94\xbc", "\xf0\x9f\x92\xbe"=>"\xf3\xbe\x94\xbd",
+ "\xf0\x9f\x92\xbf"=>"\xf3\xbe\xa0\x9d", "\xf0\x9f\x93\x80"=>"\xf3\xbe\xa0\x9e", "\xe2\x9c\x82"=>"\xf3\xbe\x94\xbe", "\xf0\x9f\x93\x8d"=>"\xf3\xbe\x94\xbf", "\xf0\x9f\x93\x83"=>"\xf3\xbe\x95\x80",
+ "\xf0\x9f\x93\x84"=>"\xf3\xbe\x95\x81", "\xf0\x9f\x93\x85"=>"\xf3\xbe\x95\x82", "\xf0\x9f\x93\x81"=>"\xf3\xbe\x95\x83", "\xf0\x9f\x93\x82"=>"\xf3\xbe\x95\x84", "\xf0\x9f\x93\x93"=>"\xf3\xbe\x95\x85",
+ "\xf0\x9f\x93\x96"=>"\xf3\xbe\x95\x86", "\xf0\x9f\x93\x94"=>"\xf3\xbe\x95\x87", "\xf0\x9f\x93\x95"=>"\xf3\xbe\x94\x82", "\xf0\x9f\x93\x97"=>"\xf3\xbe\x93\xbf", "\xf0\x9f\x93\x98"=>"\xf3\xbe\x94\x80",
+ "\xf0\x9f\x93\x99"=>"\xf3\xbe\x94\x81", "\xf0\x9f\x93\x9a"=>"\xf3\xbe\x94\x83", "\xf0\x9f\x93\x9b"=>"\xf3\xbe\x94\x84", "\xf0\x9f\x93\x9c"=>"\xf3\xbe\x93\xbd", "\xf0\x9f\x93\x8b"=>"\xf3\xbe\x95\x88",
+ "\xf0\x9f\x93\x86"=>"\xf3\xbe\x95\x89", "\xf0\x9f\x93\x8a"=>"\xf3\xbe\x95\x8a", "\xf0\x9f\x93\x88"=>"\xf3\xbe\x95\x8b", "\xf0\x9f\x93\x89"=>"\xf3\xbe\x95\x8c", "\xf0\x9f\x93\x87"=>"\xf3\xbe\x95\x8d",
+ "\xf0\x9f\x93\x8c"=>"\xf3\xbe\x95\x8e", "\xf0\x9f\x93\x92"=>"\xf3\xbe\x95\x8f", "\xf0\x9f\x93\x8f"=>"\xf3\xbe\x95\x90", "\xf0\x9f\x93\x90"=>"\xf3\xbe\x95\x91", "\xf0\x9f\x93\x91"=>"\xf3\xbe\x95\x92",
+ "\xf0\x9f\x8e\xbd"=>"\xf3\xbe\x9f\x90", "\xe2\x9a\xbe"=>"\xf3\xbe\x9f\x91", "\xe2\x9b\xb3"=>"\xf3\xbe\x9f\x92", "\xf0\x9f\x8e\xbe"=>"\xf3\xbe\x9f\x93", "\xe2\x9a\xbd"=>"\xf3\xbe\x9f\x94",
+ "\xf0\x9f\x8e\xbf"=>"\xf3\xbe\x9f\x95", "\xf0\x9f\x8f\x80"=>"\xf3\xbe\x9f\x96", "\xf0\x9f\x8f\x81"=>"\xf3\xbe\x9f\x97", "\xf0\x9f\x8f\x82"=>"\xf3\xbe\x9f\x98", "\xf0\x9f\x8f\x83"=>"\xf3\xbe\x9f\x99",
+ "\xf0\x9f\x8f\x84"=>"\xf3\xbe\x9f\x9a", "\xf0\x9f\x8f\x86"=>"\xf3\xbe\x9f\x9b", "\xf0\x9f\x8f\x88"=>"\xf3\xbe\x9f\x9d", "\xf0\x9f\x8f\x8a"=>"\xf3\xbe\x9f\x9e", "\xf0\x9f\x9a\x83"=>"\xf3\xbe\x9f\x9f",
+ "\xf0\x9f\x9a\x87"=>"\xf3\xbe\x9f\xa0", "\xe2\x93\x82"=>"\xf3\xbe\x9f\xa1", "\xf0\x9f\x9a\x84"=>"\xf3\xbe\x9f\xa2", "\xf0\x9f\x9a\x85"=>"\xf3\xbe\x9f\xa3", "\xf0\x9f\x9a\x97"=>"\xf3\xbe\x9f\xa4",
+ "\xf0\x9f\x9a\x99"=>"\xf3\xbe\x9f\xa5", "\xf0\x9f\x9a\x8c"=>"\xf3\xbe\x9f\xa6", "\xf0\x9f\x9a\x8f"=>"\xf3\xbe\x9f\xa7", "\xf0\x9f\x9a\xa2"=>"\xf3\xbe\x9f\xa8", "\xe2\x9c\x88"=>"\xf3\xbe\x9f\xa9",
+ "\xe2\x9b\xb5"=>"\xf3\xbe\x9f\xaa", "\xf0\x9f\x9a\x89"=>"\xf3\xbe\x9f\xac", "\xf0\x9f\x9a\x80"=>"\xf3\xbe\x9f\xad", "\xf0\x9f\x9a\xa4"=>"\xf3\xbe\x9f\xae", "\xf0\x9f\x9a\x95"=>"\xf3\xbe\x9f\xaf",
+ "\xf0\x9f\x9a\x9a"=>"\xf3\xbe\x9f\xb1", "\xf0\x9f\x9a\x92"=>"\xf3\xbe\x9f\xb2", "\xf0\x9f\x9a\x91"=>"\xf3\xbe\x9f\xb3", "\xf0\x9f\x9a\x93"=>"\xf3\xbe\x9f\xb4", "\xe2\x9b\xbd"=>"\xf3\xbe\x9f\xb5",
+ "\xf0\x9f\x85\xbf"=>"\xf3\xbe\x9f\xb6", "\xf0\x9f\x9a\xa5"=>"\xf3\xbe\x9f\xb7", "\xf0\x9f\x9a\xa7"=>"\xf3\xbe\x9f\xb8", "\xf0\x9f\x9a\xa8"=>"\xf3\xbe\x9f\xb9", "\xe2\x99\xa8"=>"\xf3\xbe\x9f\xba",
+ "\xe2\x9b\xba"=>"\xf3\xbe\x9f\xbb", "\xf0\x9f\x8e\xa0"=>"\xf3\xbe\x9f\xbc", "\xf0\x9f\x8e\xa1"=>"\xf3\xbe\x9f\xbd", "\xf0\x9f\x8e\xa2"=>"\xf3\xbe\x9f\xbe", "\xf0\x9f\x8e\xa3"=>"\xf3\xbe\x9f\xbf",
+ "\xf0\x9f\x8e\xa4"=>"\xf3\xbe\xa0\x80", "\xf0\x9f\x8e\xa5"=>"\xf3\xbe\xa0\x81", "\xf0\x9f\x8e\xa6"=>"\xf3\xbe\xa0\x82", "\xf0\x9f\x8e\xa7"=>"\xf3\xbe\xa0\x83", "\xf0\x9f\x8e\xa8"=>"\xf3\xbe\xa0\x84",
+ "\xf0\x9f\x8e\xa9"=>"\xf3\xbe\xa0\x85", "\xf0\x9f\x8e\xaa"=>"\xf3\xbe\xa0\x86", "\xf0\x9f\x8e\xab"=>"\xf3\xbe\xa0\x87", "\xf0\x9f\x8e\xac"=>"\xf3\xbe\xa0\x88", "\xf0\x9f\x8e\xad"=>"\xf3\xbe\xa0\x89",
+ "\xf0\x9f\x8e\xae"=>"\xf3\xbe\xa0\x8a", "\xf0\x9f\x80\x84"=>"\xf3\xbe\xa0\x8b", "\xf0\x9f\x8e\xaf"=>"\xf3\xbe\xa0\x8c", "\xf0\x9f\x8e\xb0"=>"\xf3\xbe\xa0\x8d", "\xf0\x9f\x8e\xb1"=>"\xf3\xbe\xa0\x8e",
+ "\xf0\x9f\x8e\xb2"=>"\xf3\xbe\xa0\x8f", "\xf0\x9f\x8e\xb3"=>"\xf3\xbe\xa0\x90", "\xf0\x9f\x8e\xb4"=>"\xf3\xbe\xa0\x91", "\xf0\x9f\x83\x8f"=>"\xf3\xbe\xa0\x92", "\xf0\x9f\x8e\xb5"=>"\xf3\xbe\xa0\x93",
+ "\xf0\x9f\x8e\xb6"=>"\xf3\xbe\xa0\x94", "\xf0\x9f\x8e\xb7"=>"\xf3\xbe\xa0\x95", "\xf0\x9f\x8e\xb8"=>"\xf3\xbe\xa0\x96", "\xf0\x9f\x8e\xb9"=>"\xf3\xbe\xa0\x97", "\xf0\x9f\x8e\xba"=>"\xf3\xbe\xa0\x98",
+ "\xf0\x9f\x8e\xbb"=>"\xf3\xbe\xa0\x99", "\xf0\x9f\x8e\xbc"=>"\xf3\xbe\xa0\x9a", "\xe3\x80\xbd"=>"\xf3\xbe\xa0\x9b", "\xf0\x9f\x93\xb7"=>"\xf3\xbe\x93\xaf", "\xf0\x9f\x93\xb9"=>"\xf3\xbe\x93\xb9",
+ "\xf0\x9f\x93\xba"=>"\xf3\xbe\xa0\x9c", "\xf0\x9f\x93\xbb"=>"\xf3\xbe\xa0\x9f", "\xf0\x9f\x93\xbc"=>"\xf3\xbe\xa0\xa0", "\xf0\x9f\x92\x8b"=>"\xf3\xbe\xa0\xa3", "\xf0\x9f\x92\x8c"=>"\xf3\xbe\xa0\xa4",
+ "\xf0\x9f\x92\x8d"=>"\xf3\xbe\xa0\xa5", "\xf0\x9f\x92\x8e"=>"\xf3\xbe\xa0\xa6", "\xf0\x9f\x92\x8f"=>"\xf3\xbe\xa0\xa7", "\xf0\x9f\x92\x90"=>"\xf3\xbe\xa0\xa8", "\xf0\x9f\x92\x91"=>"\xf3\xbe\xa0\xa9",
+ "\xf0\x9f\x92\x92"=>"\xf3\xbe\xa0\xaa", "\xf0\x9f\x94\x9e"=>"\xf3\xbe\xac\xa5", "\xc2\xa9"=>"\xf3\xbe\xac\xa9", "\xc2\xae"=>"\xf3\xbe\xac\xad", "\xe2\x84\xa2"=>"\xf3\xbe\xac\xaa",
+ "\xe2\x84\xb9"=>"\xf3\xbe\xad\x87", "#\xe2\x83\xa3"=>"\xf3\xbe\xa0\xac", "1\xe2\x83\xa3"=>"\xf3\xbe\xa0\xae", "2\xe2\x83\xa3"=>"\xf3\xbe\xa0\xaf", "3\xe2\x83\xa3"=>"\xf3\xbe\xa0\xb0",
+ "4\xe2\x83\xa3"=>"\xf3\xbe\xa0\xb1", "5\xe2\x83\xa3"=>"\xf3\xbe\xa0\xb2", "6\xe2\x83\xa3"=>"\xf3\xbe\xa0\xb3", "7\xe2\x83\xa3"=>"\xf3\xbe\xa0\xb4", "8\xe2\x83\xa3"=>"\xf3\xbe\xa0\xb5",
+ "9\xe2\x83\xa3"=>"\xf3\xbe\xa0\xb6", "0\xe2\x83\xa3"=>"\xf3\xbe\xa0\xb7", "\xf0\x9f\x94\x9f"=>"\xf3\xbe\xa0\xbb", "\xf0\x9f\x93\xb6"=>"\xf3\xbe\xa0\xb8", "\xf0\x9f\x93\xb3"=>"\xf3\xbe\xa0\xb9",
+ "\xf0\x9f\x93\xb4"=>"\xf3\xbe\xa0\xba", "\xf0\x9f\x8d\x94"=>"\xf3\xbe\xa5\xa0", "\xf0\x9f\x8d\x99"=>"\xf3\xbe\xa5\xa1", "\xf0\x9f\x8d\xb0"=>"\xf3\xbe\xa5\xa2", "\xf0\x9f\x8d\x9c"=>"\xf3\xbe\xa5\xa3",
+ "\xf0\x9f\x8d\x9e"=>"\xf3\xbe\xa5\xa4", "\xf0\x9f\x8d\xb3"=>"\xf3\xbe\xa5\xa5", "\xf0\x9f\x8d\xa6"=>"\xf3\xbe\xa5\xa6", "\xf0\x9f\x8d\x9f"=>"\xf3\xbe\xa5\xa7", "\xf0\x9f\x8d\xa1"=>"\xf3\xbe\xa5\xa8",
+ "\xf0\x9f\x8d\x98"=>"\xf3\xbe\xa5\xa9", "\xf0\x9f\x8d\x9a"=>"\xf3\xbe\xa5\xaa", "\xf0\x9f\x8d\x9d"=>"\xf3\xbe\xa5\xab", "\xf0\x9f\x8d\x9b"=>"\xf3\xbe\xa5\xac", "\xf0\x9f\x8d\xa2"=>"\xf3\xbe\xa5\xad",
+ "\xf0\x9f\x8d\xa3"=>"\xf3\xbe\xa5\xae", "\xf0\x9f\x8d\xb1"=>"\xf3\xbe\xa5\xaf", "\xf0\x9f\x8d\xb2"=>"\xf3\xbe\xa5\xb0", "\xf0\x9f\x8d\xa7"=>"\xf3\xbe\xa5\xb1", "\xf0\x9f\x8d\x96"=>"\xf3\xbe\xa5\xb2",
+ "\xf0\x9f\x8d\xa5"=>"\xf3\xbe\xa5\xb3", "\xf0\x9f\x8d\xa0"=>"\xf3\xbe\xa5\xb4", "\xf0\x9f\x8d\x95"=>"\xf3\xbe\xa5\xb5", "\xf0\x9f\x8d\x97"=>"\xf3\xbe\xa5\xb6", "\xf0\x9f\x8d\xa8"=>"\xf3\xbe\xa5\xb7",
+ "\xf0\x9f\x8d\xa9"=>"\xf3\xbe\xa5\xb8", "\xf0\x9f\x8d\xaa"=>"\xf3\xbe\xa5\xb9", "\xf0\x9f\x8d\xab"=>"\xf3\xbe\xa5\xba", "\xf0\x9f\x8d\xac"=>"\xf3\xbe\xa5\xbb", "\xf0\x9f\x8d\xad"=>"\xf3\xbe\xa5\xbc",
+ "\xf0\x9f\x8d\xae"=>"\xf3\xbe\xa5\xbd", "\xf0\x9f\x8d\xaf"=>"\xf3\xbe\xa5\xbe", "\xf0\x9f\x8d\xa4"=>"\xf3\xbe\xa5\xbf", "\xf0\x9f\x8d\xb4"=>"\xf3\xbe\xa6\x80", "\xe2\x98\x95"=>"\xf3\xbe\xa6\x81",
+ "\xf0\x9f\x8d\xb8"=>"\xf3\xbe\xa6\x82", "\xf0\x9f\x8d\xba"=>"\xf3\xbe\xa6\x83", "\xf0\x9f\x8d\xb5"=>"\xf3\xbe\xa6\x84", "\xf0\x9f\x8d\xb6"=>"\xf3\xbe\xa6\x85", "\xf0\x9f\x8d\xb7"=>"\xf3\xbe\xa6\x86",
+ "\xf0\x9f\x8d\xbb"=>"\xf3\xbe\xa6\x87", "\xf0\x9f\x8d\xb9"=>"\xf3\xbe\xa6\x88", "\xe2\x86\x97"=>"\xf3\xbe\xab\xb0", "\xe2\x86\x98"=>"\xf3\xbe\xab\xb1", "\xe2\x86\x96"=>"\xf3\xbe\xab\xb2",
+ "\xe2\x86\x99"=>"\xf3\xbe\xab\xb3", "\xe2\xa4\xb4"=>"\xf3\xbe\xab\xb4", "\xe2\xa4\xb5"=>"\xf3\xbe\xab\xb5", "\xe2\x86\x94"=>"\xf3\xbe\xab\xb6", "\xe2\x86\x95"=>"\xf3\xbe\xab\xb7",
+ "\xe2\xac\x86"=>"\xf3\xbe\xab\xb8", "\xe2\xac\x87"=>"\xf3\xbe\xab\xb9", "\xe2\x9e\xa1"=>"\xf3\xbe\xab\xba", "\xe2\xac\x85"=>"\xf3\xbe\xab\xbb", "\xe2\x96\xb6"=>"\xf3\xbe\xab\xbc",
+ "\xe2\x97\x80"=>"\xf3\xbe\xab\xbd", "\xe2\x8f\xa9"=>"\xf3\xbe\xab\xbe", "\xe2\x8f\xaa"=>"\xf3\xbe\xab\xbf", "\xe2\x8f\xab"=>"\xf3\xbe\xac\x83", "\xe2\x8f\xac"=>"\xf3\xbe\xac\x82",
+ "\xf0\x9f\x94\xba"=>"\xf3\xbe\xad\xb8", "\xf0\x9f\x94\xbb"=>"\xf3\xbe\xad\xb9", "\xf0\x9f\x94\xbc"=>"\xf3\xbe\xac\x81", "\xf0\x9f\x94\xbd"=>"\xf3\xbe\xac\x80", "\xe2\xad\x95"=>"\xf3\xbe\xad\x84",
+ "\xe2\x9d\x8c"=>"\xf3\xbe\xad\x85", "\xe2\x9d\x8e"=>"\xf3\xbe\xad\x86", "\xe2\x9d\x97"=>"\xf3\xbe\xac\x84", "\xe2\x81\x89"=>"\xf3\xbe\xac\x85", "\xe2\x80\xbc"=>"\xf3\xbe\xac\x86",
+ "\xe2\x9d\x93"=>"\xf3\xbe\xac\x89", "\xe2\x9d\x94"=>"\xf3\xbe\xac\x8a", "\xe2\x9d\x95"=>"\xf3\xbe\xac\x8b", "\xe3\x80\xb0"=>"\xf3\xbe\xac\x87", "\xe2\x9e\xb0"=>"\xf3\xbe\xac\x88",
+ "\xe2\x9e\xbf"=>"\xf3\xbe\xa0\xab", "\xe2\x9d\xa4"=>"\xf3\xbe\xac\x8c", "\xf0\x9f\x92\x93"=>"\xf3\xbe\xac\x8d", "\xf0\x9f\x92\x94"=>"\xf3\xbe\xac\x8e", "\xf0\x9f\x92\x95"=>"\xf3\xbe\xac\x8f",
+ "\xf0\x9f\x92\x96"=>"\xf3\xbe\xac\x90", "\xf0\x9f\x92\x97"=>"\xf3\xbe\xac\x91", "\xf0\x9f\x92\x98"=>"\xf3\xbe\xac\x92", "\xf0\x9f\x92\x99"=>"\xf3\xbe\xac\x93", "\xf0\x9f\x92\x9a"=>"\xf3\xbe\xac\x94",
+ "\xf0\x9f\x92\x9b"=>"\xf3\xbe\xac\x95", "\xf0\x9f\x92\x9c"=>"\xf3\xbe\xac\x96", "\xf0\x9f\x92\x9d"=>"\xf3\xbe\xac\x97", "\xf0\x9f\x92\x9e"=>"\xf3\xbe\xac\x98", "\xf0\x9f\x92\x9f"=>"\xf3\xbe\xac\x99",
+ "\xe2\x99\xa5"=>"\xf3\xbe\xac\x9a", "\xe2\x99\xa0"=>"\xf3\xbe\xac\x9b", "\xe2\x99\xa6"=>"\xf3\xbe\xac\x9c", "\xe2\x99\xa3"=>"\xf3\xbe\xac\x9d", "\xf0\x9f\x9a\xac"=>"\xf3\xbe\xac\x9e",
+ "\xf0\x9f\x9a\xad"=>"\xf3\xbe\xac\x9f", "\xe2\x99\xbf"=>"\xf3\xbe\xac\xa0", "\xf0\x9f\x9a\xa9"=>"\xf3\xbe\xac\xa2", "\xe2\x9a\xa0"=>"\xf3\xbe\xac\xa3", "\xe2\x9b\x94"=>"\xf3\xbe\xac\xa6",
+ "\xe2\x99\xbb"=>"\xf3\xbe\xac\xac", "\xf0\x9f\x9a\xb2"=>"\xf3\xbe\x9f\xab", "\xf0\x9f\x9a\xb6"=>"\xf3\xbe\x9f\xb0", "\xf0\x9f\x9a\xb9"=>"\xf3\xbe\xac\xb3", "\xf0\x9f\x9a\xba"=>"\xf3\xbe\xac\xb4",
+ "\xf0\x9f\x9b\x80"=>"\xf3\xbe\x94\x85", "\xf0\x9f\x9a\xbb"=>"\xf3\xbe\x94\x86", "\xf0\x9f\x9a\xbd"=>"\xf3\xbe\x94\x87", "\xf0\x9f\x9a\xbe"=>"\xf3\xbe\x94\x88", "\xf0\x9f\x9a\xbc"=>"\xf3\xbe\xac\xb5",
+ "\xf0\x9f\x9a\xaa"=>"\xf3\xbe\x93\xb3", "\xf0\x9f\x9a\xab"=>"\xf3\xbe\xad\x88", "\xe2\x9c\x94"=>"\xf3\xbe\xad\x89", "\xf0\x9f\x86\x91"=>"\xf3\xbe\xae\x84", "\xf0\x9f\x86\x92"=>"\xf3\xbe\xac\xb8",
+ "\xf0\x9f\x86\x93"=>"\xf3\xbe\xac\xa1", "\xf0\x9f\x86\x94"=>"\xf3\xbe\xae\x81", "\xf0\x9f\x86\x95"=>"\xf3\xbe\xac\xb6", "\xf0\x9f\x86\x96"=>"\xf3\xbe\xac\xa8", "\xf0\x9f\x86\x97"=>"\xf3\xbe\xac\xa7",
+ "\xf0\x9f\x86\x98"=>"\xf3\xbe\xad\x8f", "\xf0\x9f\x86\x99"=>"\xf3\xbe\xac\xb7", "\xf0\x9f\x86\x9a"=>"\xf3\xbe\xac\xb2", "\xf0\x9f\x88\x81"=>"\xf3\xbe\xac\xa4", "\xf0\x9f\x88\x82"=>"\xf3\xbe\xac\xbf",
+ "\xf0\x9f\x88\xb2"=>"\xf3\xbe\xac\xae", "\xf0\x9f\x88\xb3"=>"\xf3\xbe\xac\xaf", "\xf0\x9f\x88\xb4"=>"\xf3\xbe\xac\xb0", "\xf0\x9f\x88\xb5"=>"\xf3\xbe\xac\xb1", "\xf0\x9f\x88\xb6"=>"\xf3\xbe\xac\xb9",
+ "\xf0\x9f\x88\x9a"=>"\xf3\xbe\xac\xba", "\xf0\x9f\x88\xb7"=>"\xf3\xbe\xac\xbb", "\xf0\x9f\x88\xb8"=>"\xf3\xbe\xac\xbc", "\xf0\x9f\x88\xb9"=>"\xf3\xbe\xac\xbe", "\xf0\x9f\x88\xaf"=>"\xf3\xbe\xad\x80",
+ "\xf0\x9f\x88\xba"=>"\xf3\xbe\xad\x81", "\xe3\x8a\x99"=>"\xf3\xbe\xac\xab", "\xe3\x8a\x97"=>"\xf3\xbe\xad\x83", "\xf0\x9f\x89\x90"=>"\xf3\xbe\xac\xbd", "\xf0\x9f\x89\x91"=>"\xf3\xbe\xad\x90",
+ "\xe2\x9e\x95"=>"\xf3\xbe\xad\x91", "\xe2\x9e\x96"=>"\xf3\xbe\xad\x92", "\xe2\x9c\x96"=>"\xf3\xbe\xad\x93", "\xe2\x9e\x97"=>"\xf3\xbe\xad\x94", "\xf0\x9f\x92\xa0"=>"\xf3\xbe\xad\x95",
+ "\xf0\x9f\x92\xa1"=>"\xf3\xbe\xad\x96", "\xf0\x9f\x92\xa2"=>"\xf3\xbe\xad\x97", "\xf0\x9f\x92\xa3"=>"\xf3\xbe\xad\x98", "\xf0\x9f\x92\xa4"=>"\xf3\xbe\xad\x99", "\xf0\x9f\x92\xa5"=>"\xf3\xbe\xad\x9a",
+ "\xf0\x9f\x92\xa6"=>"\xf3\xbe\xad\x9b", "\xf0\x9f\x92\xa7"=>"\xf3\xbe\xad\x9c", "\xf0\x9f\x92\xa8"=>"\xf3\xbe\xad\x9d", "\xf0\x9f\x92\xa9"=>"\xf3\xbe\x93\xb4", "\xf0\x9f\x92\xaa"=>"\xf3\xbe\xad\x9e",
+ "\xf0\x9f\x92\xab"=>"\xf3\xbe\xad\x9f", "\xf0\x9f\x92\xac"=>"\xf3\xbe\x94\xb2", "\xe2\x9c\xa8"=>"\xf3\xbe\xad\xa0", "\xe2\x9c\xb4"=>"\xf3\xbe\xad\xa1", "\xe2\x9c\xb3"=>"\xf3\xbe\xad\xa2",
+ "\xe2\x9a\xaa"=>"\xf3\xbe\xad\xa5", "\xe2\x9a\xab"=>"\xf3\xbe\xad\xa6", "\xf0\x9f\x94\xb4"=>"\xf3\xbe\xad\xa3", "\xf0\x9f\x94\xb5"=>"\xf3\xbe\xad\xa4", "\xf0\x9f\x94\xb2"=>"\xf3\xbe\xad\xa4",
+ "\xf0\x9f\x94\xb3"=>"\xf3\xbe\xad\xa7", "\xe2\xad\x90"=>"\xf3\xbe\xad\xa8", "\xe2\xac\x9c"=>"\xf3\xbe\xad\xab", "\xe2\xac\x9b"=>"\xf3\xbe\xad\xac", "\xe2\x96\xab"=>"\xf3\xbe\xad\xad",
+ "\xe2\x96\xaa"=>"\xf3\xbe\xad\xae", "\xe2\x97\xbd"=>"\xf3\xbe\xad\xaf", "\xe2\x97\xbe"=>"\xf3\xbe\xad\xb0", "\xe2\x97\xbb"=>"\xf3\xbe\xad\xb1", "\xe2\x97\xbc"=>"\xf3\xbe\xad\xb2",
+ "\xf0\x9f\x94\xb6"=>"\xf3\xbe\xad\xb3", "\xf0\x9f\x94\xb7"=>"\xf3\xbe\xad\xb4", "\xf0\x9f\x94\xb8"=>"\xf3\xbe\xad\xb5", "\xf0\x9f\x94\xb9"=>"\xf3\xbe\xad\xb6", "\xe2\x9d\x87"=>"\xf3\xbe\xad\xb7",
+ "\xf0\x9f\x92\xae"=>"\xf3\xbe\xad\xba", "\xf0\x9f\x92\xaf"=>"\xf3\xbe\xad\xbb", "\xe2\x86\xa9"=>"\xf3\xbe\xae\x83", "\xe2\x86\xaa"=>"\xf3\xbe\xae\x88", "\xf0\x9f\x94\x83"=>"\xf3\xbe\xae\x91",
+ "\xf0\x9f\x94\x8a"=>"\xf3\xbe\xa0\xa1", "\xf0\x9f\x94\x8b"=>"\xf3\xbe\x93\xbc", "\xf0\x9f\x94\x8c"=>"\xf3\xbe\x93\xbe", "\xf0\x9f\x94\x8d"=>"\xf3\xbe\xae\x85", "\xf0\x9f\x94\x8e"=>"\xf3\xbe\xae\x8d",
+ "\xf0\x9f\x94\x92"=>"\xf3\xbe\xae\x86", "\xf0\x9f\x94\x93"=>"\xf3\xbe\xae\x87", "\xf0\x9f\x94\x8f"=>"\xf3\xbe\xae\x90", "\xf0\x9f\x94\x90"=>"\xf3\xbe\xae\x8a", "\xf0\x9f\x94\x91"=>"\xf3\xbe\xae\x82",
+ "\xf0\x9f\x94\x94"=>"\xf3\xbe\x93\xb2", "\xe2\x98\x91"=>"\xf3\xbe\xae\x8b", "\xf0\x9f\x94\x98"=>"\xf3\xbe\xae\x8c", "\xf0\x9f\x94\x96"=>"\xf3\xbe\xae\x8f", "\xf0\x9f\x94\x97"=>"\xf3\xbe\xad\x8b",
+ "\xf0\x9f\x94\x99"=>"\xf3\xbe\xae\x8e", "\xf0\x9f\x94\x9a"=>"\xf3\xbe\x80\x9a", "\xf0\x9f\x94\x9b"=>"\xf3\xbe\x80\x99", "\xf0\x9f\x94\x9c"=>"\xf3\xbe\x80\x98", "\xf0\x9f\x94\x9d"=>"\xf3\xbe\xad\x82",
+ "\xe2\x9c\x85"=>"\xf3\xbe\xad\x8a", "\xe2\x9c\x8a"=>"\xf3\xbe\xae\x93", "\xe2\x9c\x8b"=>"\xf3\xbe\xae\x95", "\xe2\x9c\x8c"=>"\xf3\xbe\xae\x94", "\xf0\x9f\x91\x8a"=>"\xf3\xbe\xae\x96",
+ "\xf0\x9f\x91\x8d"=>"\xf3\xbe\xae\x97", "\xe2\x98\x9d"=>"\xf3\xbe\xae\x98", "\xf0\x9f\x91\x86"=>"\xf3\xbe\xae\x99", "\xf0\x9f\x91\x87"=>"\xf3\xbe\xae\x9a", "\xf0\x9f\x91\x88"=>"\xf3\xbe\xae\x9b",
+ "\xf0\x9f\x91\x89"=>"\xf3\xbe\xae\x9c", "\xf0\x9f\x91\x8b"=>"\xf3\xbe\xae\x9d", "\xf0\x9f\x91\x8f"=>"\xf3\xbe\xae\x9e", "\xf0\x9f\x91\x8c"=>"\xf3\xbe\xae\x9f", "\xf0\x9f\x91\x8e"=>"\xf3\xbe\xae\xa0",
+ "\xf0\x9f\x91\x90"=>"\xf3\xbe\xae\xa1",
+ ),
+ 'docomo_to_unified' => array(
+ "\xee\x98\xbe"=>"\xf0\x9f\x8c\x87", "\xee\x98\xbf"=>"\xe2\x98\x81", "\xee\x99\x80"=>"\xe2\x98\x94", "\xee\x99\x81"=>"\xe2\x9b\x84",
+ "\xee\x99\x82"=>"\xe2\x9a\xa1", "\xee\x99\x83"=>"\xf0\x9f\x8d\xa5", "\xee\x99\x84"=>"\xf0\x9f\x8c\x81", "\xee\x99\x85"=>"\xf0\x9f\x8c\x82", "\xee\x9a\xb3"=>"\xf0\x9f\x8c\x8c",
+ "[\xe5\xa4\x95\xe7\x84\xbc\xe3\x81\x91]"=>"\xf0\x9f\x8c\x86", "[\xe8\x99\xb9]"=>"\xf0\x9f\x8c\x88", "[\xe9\x9b\xaa\xe7\xb5\x90\xe6\x99\xb6]"=>"\xe2\x9d\x84", "\xee\x98\xbe\xee\x98\xbf"=>"\xe2\x9b\x85", "\xee\x9c\xbf"=>"\xf0\x9f\x8c\x8a",
+ "[\xe7\x81\xab\xe5\xb1\xb1]"=>"\xf0\x9f\x8c\x8b", "[\xe5\x9c\xb0\xe7\x90\x83]"=>"\xf0\x9f\x8c\x8f", "\xee\x9a\x9c"=>"\xf0\x9f\x94\xb3", "\xee\x9a\x9d"=>"\xf0\x9f\x8c\x94", "\xee\x9a\x9e"=>"\xf0\x9f\x8c\x9b",
+ "\xee\x9a\x9f"=>"\xf0\x9f\x8c\x99", "\xee\x9a\xa0"=>"\xe2\xad\x95", "[\xe2\x98\x86]"=>"\xe2\xad\x90", "\xe2\x98\x86\xe5\xbd\xa1"=>"\xf0\x9f\x8c\xa0", "\xee\x9a\xba"=>"\xe2\x8f\xb0",
+ "\xee\x9c\x9f"=>"\xe2\x8c\x9a", "\xee\x9c\x9c"=>"\xe2\x8f\xb3", "\xee\x99\x86"=>"\xe2\x99\x88", "\xee\x99\x87"=>"\xe2\x99\x89", "\xee\x99\x88"=>"\xe2\x99\x8a",
+ "\xee\x99\x89"=>"\xe2\x99\x8b", "\xee\x99\x8a"=>"\xe2\x99\x8c", "\xee\x99\x8b"=>"\xe2\x99\x8d", "\xee\x99\x8c"=>"\xe2\x99\x8e", "\xee\x99\x8d"=>"\xe2\x99\x8f",
+ "\xee\x99\x8e"=>"\xe2\x99\x90", "\xee\x99\x8f"=>"\xe2\x99\x91", "\xee\x99\x90"=>"\xe2\x99\x92", "\xee\x99\x91"=>"\xe2\x99\x93", "[\xe8\x9b\x87\xe4\xbd\xbf\xe5\xba\xa7]"=>"\xe2\x9b\x8e",
+ "\xee\x9d\x81"=>"\xf0\x9f\x8c\xbf", "\xee\x9d\x83"=>"\xf0\x9f\x8c\xb7", "\xee\x9d\x86"=>"\xf0\x9f\x8c\xb1", "\xee\x9d\x87"=>"\xf0\x9f\x8d\x82", "\xee\x9d\x88"=>"\xf0\x9f\x8c\xb8",
+ "[\xe3\x83\x90\xe3\x83\xa9]"=>"\xf0\x9f\x8c\xb9", "[\xe9\xa2\xa8\xe3\x81\xab\xe8\x88\x9e\xe3\x81\x86\xe8\x91\x89]"=>"\xf0\x9f\x8d\x83", "[\xe3\x83\x8f\xe3\x82\xa4\xe3\x83\x93\xe3\x82\xb9\xe3\x82\xab\xe3\x82\xb9]"=>"\xf0\x9f\x8c\xba", "[\xe3\x81\xb2\xe3\x81\xbe\xe3\x82\x8f\xe3\x82\x8a]"=>"\xf0\x9f\x8c\xbb", "[\xe3\x83\xa4\xe3\x82\xb7]"=>"\xf0\x9f\x8c\xb4",
+ "[\xe3\x82\xb5\xe3\x83\x9c\xe3\x83\x86\xe3\x83\xb3]"=>"\xf0\x9f\x8c\xb5", "[\xe7\xa8\xb2\xe7\xa9\x82]"=>"\xf0\x9f\x8c\xbe", "[\xe3\x81\xa8\xe3\x81\x86\xe3\x82\x82\xe3\x82\x8d\xe3\x81\x93\xe3\x81\x97]"=>"\xf0\x9f\x8c\xbd", "[\xe3\x82\xad\xe3\x83\x8e\xe3\x82\xb3]"=>"\xf0\x9f\x8d\x84", "[\xe6\xa0\x97]"=>"\xf0\x9f\x8c\xb0",
+ "[\xe8\x8a\xb1]"=>"\xf0\x9f\x8c\xbc", "\xee\x9d\x82"=>"\xf0\x9f\x8d\x92", "\xee\x9d\x84"=>"\xf0\x9f\x8d\x8c", "\xee\x9d\x85"=>"\xf0\x9f\x8d\x8f", "[\xe3\x81\xbf\xe3\x81\x8b\xe3\x82\x93]"=>"\xf0\x9f\x8d\x8a",
+ "[\xe3\x82\xa4\xe3\x83\x81\xe3\x82\xb4]"=>"\xf0\x9f\x8d\x93", "[\xe3\x82\xb9\xe3\x82\xa4\xe3\x82\xab]"=>"\xf0\x9f\x8d\x89", "[\xe3\x83\x88\xe3\x83\x9e\xe3\x83\x88]"=>"\xf0\x9f\x8d\x85", "[\xe3\x83\x8a\xe3\x82\xb9]"=>"\xf0\x9f\x8d\x86", "[\xe3\x83\xa1\xe3\x83\xad\xe3\x83\xb3]"=>"\xf0\x9f\x8d\x88",
+ "[\xe3\x83\x91\xe3\x82\xa4\xe3\x83\x8a\xe3\x83\x83\xe3\x83\x97\xe3\x83\xab]"=>"\xf0\x9f\x8d\x8d", "[\xe3\x83\x96\xe3\x83\x89\xe3\x82\xa6]"=>"\xf0\x9f\x8d\x87", "[\xe3\x83\xa2\xe3\x83\xa2]"=>"\xf0\x9f\x8d\x91", "\xee\x9a\x91"=>"\xf0\x9f\x91\x80", "\xee\x9a\x92"=>"\xf0\x9f\x91\x82",
+ "[\xe9\xbc\xbb]"=>"\xf0\x9f\x91\x83", "\xee\x9b\xb9"=>"\xf0\x9f\x92\x8f", "\xee\x9c\xa8"=>"\xf0\x9f\x98\x9d", "\xee\x9c\x90"=>"\xf0\x9f\x92\x84", "[\xe3\x83\x9e\xe3\x83\x8b\xe3\x82\xad\xe3\x83\xa5\xe3\x82\xa2]"=>"\xf0\x9f\x92\x85",
+ "[\xe3\x82\xa8\xe3\x82\xb9\xe3\x83\x86]"=>"\xf0\x9f\x92\x86", "\xee\x99\xb5"=>"\xe2\x9c\x82", "[\xe5\xba\x8a\xe5\xb1\x8b]"=>"\xf0\x9f\x92\x88", "\xee\x9a\xb1"=>"\xf0\x9f\x91\xa4", "\xee\x9b\xb0"=>"\xf0\x9f\x98\xba",
+ "[\xe5\xae\xb6\xe6\x97\x8f]"=>"\xf0\x9f\x91\xaa", "[\xe3\x82\xab\xe3\x83\x83\xe3\x83\x97\xe3\x83\xab]"=>"\xf0\x9f\x91\xab", "[\xe8\xad\xa6\xe5\xae\x98]"=>"\xf0\x9f\x91\xae", "[\xe3\x83\x90\xe3\x83\x8b\xe3\x83\xbc]"=>"\xf0\x9f\x91\xaf", "[\xe8\x8a\xb1\xe5\xab\x81]"=>"\xf0\x9f\x91\xb0",
+ "[\xe7\x99\xbd\xe4\xba\xba]"=>"\xf0\x9f\x91\xb1", "[\xe4\xb8\xad\xe5\x9b\xbd\xe4\xba\xba]"=>"\xf0\x9f\x91\xb2", "[\xe3\x82\xa4\xe3\x83\xb3\xe3\x83\x89\xe4\xba\xba]"=>"\xf0\x9f\x91\xb3", "[\xe3\x81\x8a\xe3\x81\x98\xe3\x81\x84\xe3\x81\x95\xe3\x82\x93]"=>"\xf0\x9f\x91\xb4", "[\xe3\x81\x8a\xe3\x81\xb0\xe3\x81\x82\xe3\x81\x95\xe3\x82\x93]"=>"\xf0\x9f\x91\xb5",
+ "[\xe8\xb5\xa4\xe3\x81\xa1\xe3\x82\x83\xe3\x82\x93]"=>"\xf0\x9f\x9a\xbc", "[\xe5\xb7\xa5\xe4\xba\x8b\xe7\x8f\xbe\xe5\xa0\xb4\xe3\x81\xae\xe4\xba\xba]"=>"\xf0\x9f\x91\xb7", "[\xe3\x81\x8a\xe5\xa7\xab\xe6\xa7\x98]"=>"\xf0\x9f\x91\xb8", "[\xe3\x81\xaa\xe3\x81\xbe\xe3\x81\xaf\xe3\x81\x92]"=>"\xf0\x9f\x91\xb9", "[\xe5\xa4\xa9\xe7\x8b\x97]"=>"\xf0\x9f\x91\xba",
+ "[\xe3\x81\x8a\xe5\x8c\x96\xe3\x81\x91]"=>"\xf0\x9f\x91\xbb", "[\xe5\xa4\xa9\xe4\xbd\xbf]"=>"\xf0\x9f\x91\xbc", "[UFO]"=>"\xf0\x9f\x91\xbd", "[\xe5\xae\x87\xe5\xae\x99\xe4\xba\xba]"=>"\xf0\x9f\x91\xbe", "[\xe3\x82\xa2\xe3\x82\xaf\xe3\x83\x9e]"=>"\xf0\x9f\x91\xbf",
+ "[\xe3\x83\x89\xe3\x82\xaf\xe3\x83\xad]"=>"\xf0\x9f\x92\x80", "[\xe6\xa1\x88\xe5\x86\x85]"=>"\xf0\x9f\x92\x81", "[\xe8\xa1\x9b\xe5\x85\xb5]"=>"\xf0\x9f\x92\x82", "[\xe3\x83\x80\xe3\x83\xb3\xe3\x82\xb9]"=>"\xf0\x9f\x92\x83", "\xee\x9d\x8e"=>"\xf0\x9f\x90\x8c",
+ "[\xe3\x83\x98\xe3\x83\x93]"=>"\xf0\x9f\x90\x8d", "\xee\x9d\x94"=>"\xf0\x9f\x90\xb4", "[\xe3\x83\x8b\xe3\x83\xaf\xe3\x83\x88\xe3\x83\xaa]"=>"\xf0\x9f\x90\x94", "[\xe3\x82\xa4\xe3\x83\x8e\xe3\x82\xb7\xe3\x82\xb7]"=>"\xf0\x9f\x90\x97", "[\xe3\x83\xa9\xe3\x82\xaf\xe3\x83\x80]"=>"\xf0\x9f\x90\xab",
+ "[\xe3\x82\xbe\xe3\x82\xa6]"=>"\xf0\x9f\x90\x98", "[\xe3\x82\xb3\xe3\x82\xa2\xe3\x83\xa9]"=>"\xf0\x9f\x90\xa8", "[\xe3\x82\xb5\xe3\x83\xab]"=>"\xf0\x9f\x90\xb5", "[\xe3\x83\x92\xe3\x83\x84\xe3\x82\xb8]"=>"\xf0\x9f\x90\x91", "[\xe3\x82\xbf\xe3\x82\xb3]"=>"\xf0\x9f\x90\x99",
+ "[\xe5\xb7\xbb\xe8\xb2\x9d]"=>"\xf0\x9f\x90\x9a", "[\xe3\x82\xb2\xe3\x82\xb8\xe3\x82\xb2\xe3\x82\xb8]"=>"\xf0\x9f\x90\x9b", "[\xe3\x82\xa2\xe3\x83\xaa]"=>"\xf0\x9f\x90\x9c", "[\xe3\x83\x9f\xe3\x83\x84\xe3\x83\x90\xe3\x83\x81]"=>"\xf0\x9f\x90\x9d", "[\xe3\x81\xa6\xe3\x82\x93\xe3\x81\xa8\xe3\x81\x86\xe8\x99\xab]"=>"\xf0\x9f\x90\x9e",
+ "\xee\x9d\x91"=>"\xf0\x9f\x8e\xa3", "[\xe3\x82\xab\xe3\x83\xa1]"=>"\xf0\x9f\x90\xa2", "\xee\x9d\x8f"=>"\xf0\x9f\x90\xa3", "\xee\x9d\x90"=>"\xf0\x9f\x90\xa7", "\xee\x9a\xa1"=>"\xf0\x9f\x90\xba",
+ "[\xe3\x82\xa4\xe3\x83\xab\xe3\x82\xab]"=>"\xf0\x9f\x90\xac", "[\xe3\x83\x8d\xe3\x82\xba\xe3\x83\x9f]"=>"\xf0\x9f\x90\xad", "[\xe3\x83\x88\xe3\x83\xa9]"=>"\xf0\x9f\x90\xaf", "\xee\x9a\xa2"=>"\xf0\x9f\x90\xb1", "[\xe3\x82\xaf\xe3\x82\xb8\xe3\x83\xa9]"=>"\xf0\x9f\x90\xb3",
+ "\xee\x9d\x95"=>"\xf0\x9f\x90\xbd", "[\xe3\x82\xaf\xe3\x83\x9e]"=>"\xf0\x9f\x90\xbb", "[\xe3\x83\x8f\xe3\x83\xa0\xe3\x82\xb9\xe3\x82\xbf\xe3\x83\xbc]"=>"\xf0\x9f\x90\xb9", "[\xe7\x89\x9b]"=>"\xf0\x9f\x90\xae", "[\xe3\x82\xa6\xe3\x82\xb5\xe3\x82\xae]"=>"\xf0\x9f\x90\xb0",
+ "[\xe3\x82\xab\xe3\x82\xa8\xe3\x83\xab]"=>"\xf0\x9f\x90\xb8", "\xee\x9a\x98"=>"\xf0\x9f\x91\xa3", "[\xe8\xbe\xb0]"=>"\xf0\x9f\x90\xb2", "[\xe3\x83\x91\xe3\x83\xb3\xe3\x83\x80]"=>"\xf0\x9f\x90\xbc", "\xee\x9b\xb1"=>"\xf0\x9f\x99\x8e",
+ "\xee\x9b\xb3"=>"\xf0\x9f\x99\x8d", "\xee\x9b\xb4"=>"\xf0\x9f\x98\xb5", "\xee\x9b\xb2"=>"\xf0\x9f\x98\x9e", "\xee\x9c\xa3"=>"\xf0\x9f\x98\xa5", "\xee\x9c\xa5"=>"\xf0\x9f\x98\x92",
+ "\xee\x9c\xa6"=>"\xf0\x9f\x98\xbb", "\xee\x9d\x93"=>"\xf0\x9f\x98\xbc", "\xee\x9d\x92"=>"\xf0\x9f\x98\x8b", "[\xe9\xa2\xa8\xe9\x82\xaa\xe3\x81\xb2\xe3\x81\x8d]"=>"\xf0\x9f\x98\xb7", "\xee\x9c\xaa"=>"\xf0\x9f\x98\xb9",
+ "\xee\x9c\xa2"=>"\xf0\x9f\x98\x85", "\xee\x9c\xae"=>"\xf0\x9f\x98\xbf", "\xee\x9c\xad"=>"\xf0\x9f\x98\xad", "\xee\x9d\x97"=>"\xf0\x9f\x98\xb1", "\xee\x9c\xab"=>"\xf0\x9f\x98\xab",
+ "\xee\x9c\xa4"=>"\xf0\x9f\x98\xbe", "\xee\x9c\xa1"=>"\xf0\x9f\x98\x8c", "\xee\x9c\xa0"=>"\xf0\x9f\x98\x94", "\xee\x9c\x81"=>"\xf0\x9f\x92\xa4", "\xee\x9c\xac"=>"\xf0\x9f\x98\x8f",
+ "\xee\x9c\xa9"=>"\xf0\x9f\x98\x89", "\xee\x9c\xaf"=>"\xf0\x9f\x86\x96", "\xee\x9c\x8b"=>"\xf0\x9f\x91\x8c", "m(_ _)m"=>"\xf0\x9f\x99\x87", "(/_\xef\xbc\xbc)"=>"\xf0\x9f\x99\x88",
+ "(\xe3\x83\xbb\xc3\x97\xe3\x83\xbb)"=>"\xf0\x9f\x99\x8a", "|(\xe3\x83\xbb\xc3\x97\xe3\x83\xbb)|"=>"\xf0\x9f\x99\x89", "(^-^)/"=>"\xf0\x9f\x99\x8b", "\xef\xbc\xbc(^o^)\xef\xbc\x8f"=>"\xf0\x9f\x99\x8c", "(>\xe4\xba\xba<)"=>"\xf0\x9f\x99\x8f",
+ "\xee\x99\xa3"=>"\xf0\x9f\x8f\xa1", "\xee\x99\xa4"=>"\xf0\x9f\x8f\xa2", "\xee\x99\xa5"=>"\xf0\x9f\x93\xae", "\xee\x99\xa6"=>"\xf0\x9f\x8f\xa5", "\xee\x99\xa7"=>"\xf0\x9f\x8f\xa6",
+ "\xee\x99\xa8"=>"\xf0\x9f\x8f\xa7", "\xee\x99\xa9"=>"\xf0\x9f\x8f\xa8", "\xee\x99\xa9\xee\x9b\xaf"=>"\xf0\x9f\x8f\xa9", "\xee\x99\xaa"=>"\xf0\x9f\x8f\xaa", "\xee\x9c\xbe"=>"\xf0\x9f\x8f\xab",
+ "[\xe6\x95\x99\xe4\xbc\x9a]"=>"\xe2\x9b\xaa", "[\xe5\x99\xb4\xe6\xb0\xb4]"=>"\xe2\x9b\xb2", "[\xe3\x83\x87\xe3\x83\x91\xe3\x83\xbc\xe3\x83\x88]"=>"\xf0\x9f\x8f\xac", "[\xe5\x9f\x8e]"=>"\xf0\x9f\x8f\xb0", "[\xe5\xb7\xa5\xe5\xa0\xb4]"=>"\xf0\x9f\x8f\xad",
+ "\xee\x99\xa1"=>"\xf0\x9f\x9a\xa2", "\xee\x9d\x8b"=>"\xf0\x9f\x8d\xb6", "\xee\x9d\x80"=>"\xf0\x9f\x97\xbb", "[\xe6\x9d\xb1\xe4\xba\xac\xe3\x82\xbf\xe3\x83\xaf\xe3\x83\xbc]"=>"\xf0\x9f\x97\xbc", "[\xe8\x87\xaa\xe7\x94\xb1\xe3\x81\xae\xe5\xa5\xb3\xe7\xa5\x9e]"=>"\xf0\x9f\x97\xbd",
+ "[\xe6\x97\xa5\xe6\x9c\xac\xe5\x9c\xb0\xe5\x9b\xb3]"=>"\xf0\x9f\x97\xbe", "[\xe3\x83\xa2\xe3\x82\xa2\xe3\x82\xa4]"=>"\xf0\x9f\x97\xbf", "\xee\x9a\x99"=>"\xf0\x9f\x91\x9f", "\xee\x99\xb4"=>"\xf0\x9f\x91\xa1", "[\xe3\x83\x96\xe3\x83\xbc\xe3\x83\x84]"=>"\xf0\x9f\x91\xa2",
+ "\xee\x9a\x9a"=>"\xf0\x9f\x91\x93", "\xee\x9c\x8e"=>"\xf0\x9f\x91\x9a", "\xee\x9c\x91"=>"\xf0\x9f\x91\x96", "\xee\x9c\x9a"=>"\xf0\x9f\x94\xb1", "[\xe3\x83\x8d\xe3\x82\xaf\xe3\x82\xbf\xe3\x82\xa4]"=>"\xf0\x9f\x91\x94",
+ "[\xe5\xb8\xbd\xe5\xad\x90]"=>"\xf0\x9f\x91\x92", "[\xe3\x83\x89\xe3\x83\xac\xe3\x82\xb9]"=>"\xf0\x9f\x91\x97", "[\xe7\x9d\x80\xe7\x89\xa9]"=>"\xf0\x9f\x91\x98", "[\xe3\x83\x93\xe3\x82\xad\xe3\x83\x8b]"=>"\xf0\x9f\x91\x99", "\xee\x9c\x8f"=>"\xf0\x9f\x91\x9b",
+ "\xee\x9a\x82"=>"\xf0\x9f\x92\xbc", "\xee\x9a\xad"=>"\xf0\x9f\x91\x9d", "\xee\x9c\x95"=>"\xf0\x9f\x92\xb5", "[$\xef\xbf\xa5]"=>"\xf0\x9f\x92\xb1", "[\xe6\xa0\xaa\xe4\xbe\xa1]"=>"\xf0\x9f\x92\xb9",
+ "[\xe3\x82\xab\xe3\x83\xbc\xe3\x83\x89]"=>"\xf0\x9f\x92\xb3", "\xee\x9b\x96"=>"\xf0\x9f\x92\xb4", "[\xe9\xa3\x9b\xe3\x82\x93\xe3\x81\xa7\xe3\x81\x84\xe3\x81\x8f\xe3\x81\x8a\xe9\x87\x91]"=>"\xf0\x9f\x92\xb8", "[\xe4\xb8\xad\xe5\x9b\xbd]"=>"\xf0\x9f\x87\xa8\xf0\x9f\x87\xb3", "[\xe3\x83\x89\xe3\x82\xa4\xe3\x83\x84]"=>"\xf0\x9f\x87\xa9\xf0\x9f\x87\xaa",
+ "[\xe3\x82\xb9\xe3\x83\x9a\xe3\x82\xa4\xe3\x83\xb3]"=>"\xf0\x9f\x87\xaa\xf0\x9f\x87\xb8", "[\xe3\x83\x95\xe3\x83\xa9\xe3\x83\xb3\xe3\x82\xb9]"=>"\xf0\x9f\x87\xab\xf0\x9f\x87\xb7", "[\xe3\x82\xa4\xe3\x82\xae\xe3\x83\xaa\xe3\x82\xb9]"=>"\xf0\x9f\x87\xac\xf0\x9f\x87\xa7", "[\xe3\x82\xa4\xe3\x82\xbf\xe3\x83\xaa\xe3\x82\xa2]"=>"\xf0\x9f\x87\xae\xf0\x9f\x87\xb9", "[\xe6\x97\xa5\xe3\x81\xae\xe4\xb8\xb8]"=>"\xf0\x9f\x87\xaf\xf0\x9f\x87\xb5",
+ "[\xe9\x9f\x93\xe5\x9b\xbd]"=>"\xf0\x9f\x87\xb0\xf0\x9f\x87\xb7", "[\xe3\x83\xad\xe3\x82\xb7\xe3\x82\xa2]"=>"\xf0\x9f\x87\xb7\xf0\x9f\x87\xba", "[USA]"=>"\xf0\x9f\x87\xba\xf0\x9f\x87\xb8", "[\xe7\x82\x8e]"=>"\xf0\x9f\x94\xa5", "\xee\x9b\xbb"=>"\xf0\x9f\x92\xa1",
+ "\xee\x9c\x98"=>"\xf0\x9f\x94\xa7", "[\xe3\x83\x8f\xe3\x83\xb3\xe3\x83\x9e\xe3\x83\xbc]"=>"\xf0\x9f\x94\xa8", "[\xe3\x83\x8d\xe3\x82\xb8]"=>"\xf0\x9f\x94\xa9", "[\xe5\x8c\x85\xe4\xb8\x81]"=>"\xf0\x9f\x94\xaa", "[\xe3\x83\x94\xe3\x82\xb9\xe3\x83\x88\xe3\x83\xab]"=>"\xf0\x9f\x94\xab",
+ "[\xe5\x8d\xa0\xe3\x81\x84]"=>"\xf0\x9f\x94\xaf", "[\xe8\x8b\xa5\xe8\x91\x89\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]"=>"\xf0\x9f\x94\xb0", "[\xe6\xb3\xa8\xe5\xb0\x84]"=>"\xf0\x9f\x92\x89", "[\xe8\x96\xac]"=>"\xf0\x9f\x92\x8a", "[A]"=>"\xf0\x9f\x85\xb0",
+ "[B]"=>"\xf0\x9f\x85\xb1", "[AB]"=>"\xf0\x9f\x86\x8e", "[O]"=>"\xf0\x9f\x85\xbe", "\xee\x9a\x84"=>"\xf0\x9f\x8e\x80", "\xee\x9a\x85"=>"\xf0\x9f\x93\xa6",
+ "\xee\x9a\x86"=>"\xf0\x9f\x8e\x82", "\xee\x9a\xa4"=>"\xf0\x9f\x8e\x84", "[\xe3\x82\xb5\xe3\x83\xb3\xe3\x82\xbf]"=>"\xf0\x9f\x8e\x85", "[\xe7\xa5\x9d\xe6\x97\xa5]"=>"\xf0\x9f\x8e\x8c", "[\xe8\x8a\xb1\xe7\x81\xab]"=>"\xf0\x9f\x8e\x86",
+ "[\xe9\xa2\xa8\xe8\x88\xb9]"=>"\xf0\x9f\x8e\x88", "[\xe3\x82\xaf\xe3\x83\xa9\xe3\x83\x83\xe3\x82\xab\xe3\x83\xbc]"=>"\xf0\x9f\x8e\x89", "[\xe9\x96\x80\xe6\x9d\xbe]"=>"\xf0\x9f\x8e\x8d", "[\xe3\x81\xb2\xe3\x81\xaa\xe7\xa5\xad\xe3\x82\x8a]"=>"\xf0\x9f\x8e\x8e", "[\xe5\x8d\x92\xe6\xa5\xad\xe5\xbc\x8f]"=>"\xf0\x9f\x8e\x93",
+ "[\xe3\x83\xa9\xe3\x83\xb3\xe3\x83\x89\xe3\x82\xbb\xe3\x83\xab]"=>"\xf0\x9f\x8e\x92", "[\xe3\x81\x93\xe3\x81\x84\xe3\x81\xae\xe3\x81\xbc\xe3\x82\x8a]"=>"\xf0\x9f\x8e\x8f", "[\xe7\xb7\x9a\xe9\xa6\x99\xe8\x8a\xb1\xe7\x81\xab]"=>"\xf0\x9f\x8e\x87", "[\xe9\xa2\xa8\xe9\x88\xb4]"=>"\xf0\x9f\x8e\x90", "[\xe3\x83\x8f\xe3\x83\xad\xe3\x82\xa6\xe3\x82\xa3\xe3\x83\xb3]"=>"\xf0\x9f\x8e\x83",
+ "[\xe3\x82\xaa\xe3\x83\xa1\xe3\x83\x87\xe3\x83\x88\xe3\x82\xa6]"=>"\xf0\x9f\x8e\x8a", "[\xe4\xb8\x83\xe5\xa4\x95]"=>"\xf0\x9f\x8e\x8b", "[\xe3\x81\x8a\xe6\x9c\x88\xe8\xa6\x8b]"=>"\xf0\x9f\x8e\x91", "\xee\x99\x9a"=>"\xf0\x9f\x93\x9f", "\xee\x9a\x87"=>"\xf0\x9f\x93\x9e",
+ "\xee\x9a\x88"=>"\xf0\x9f\x93\xb1", "\xee\x9b\x8e"=>"\xf0\x9f\x93\xb2", "\xee\x9a\x89"=>"\xf0\x9f\x93\x91", "\xee\x9b\x90"=>"\xf0\x9f\x93\xa0", "\xee\x9b\x93"=>"\xf0\x9f\x93\xa7",
+ "\xee\x9b\x8f"=>"\xf0\x9f\x93\xa9", "[\xe6\x96\xb0\xe8\x81\x9e]"=>"\xf0\x9f\x93\xb0", "[\xe3\x82\xb9\xe3\x83\x94\xe3\x83\xbc\xe3\x82\xab]"=>"\xf0\x9f\x94\x8a", "[\xe3\x83\xa1\xe3\x82\xac\xe3\x83\x9b\xe3\x83\xb3]"=>"\xf0\x9f\x93\xa3", "[\xe3\x82\xa2\xe3\x83\xb3\xe3\x83\x86\xe3\x83\x8a]"=>"\xf0\x9f\x93\xa1",
+ "[\xe9\x80\x81\xe4\xbf\xa1BOX]"=>"\xf0\x9f\x93\xa4", "[\xe5\x8f\x97\xe4\xbf\xa1BOX]"=>"\xf0\x9f\x93\xa5", "[ABCD]"=>"\xf0\x9f\x94\xa0", "[abcd]"=>"\xf0\x9f\x94\xa1", "[1234]"=>"\xf0\x9f\x94\xa2",
+ "[\xe8\xa8\x98\xe5\x8f\xb7]"=>"\xf0\x9f\x94\xa3", "[ABC]"=>"\xf0\x9f\x94\xa4", "\xee\x9a\xae"=>"\xe2\x9c\x92", "\xee\x9a\xb2"=>"\xf0\x9f\x92\xba", "\xee\x9c\x96"=>"\xf0\x9f\x92\xbb",
+ "\xee\x9c\x99"=>"\xe2\x9c\x8f", "\xee\x9c\xb0"=>"\xf0\x9f\x93\x8e", "[MD]"=>"\xf0\x9f\x92\xbd", "[\xe3\x83\x95\xe3\x83\xad\xe3\x83\x83\xe3\x83\x94\xe3\x83\xbc]"=>"\xf0\x9f\x92\xbe", "\xee\x9a\x8c"=>"\xf0\x9f\x93\x80",
+ "[\xe7\x94\xbb\xe3\x81\xb3\xe3\x82\x87\xe3\x81\x86]"=>"\xf0\x9f\x93\x8c", "[\xe3\x82\xab\xe3\x83\xac\xe3\x83\xb3\xe3\x83\x80\xe3\x83\xbc]"=>"\xf0\x9f\x93\x86", "[\xe3\x83\x95\xe3\x82\xa9\xe3\x83\xab\xe3\x83\x80]"=>"\xf0\x9f\x93\x82", "\xee\x9a\x83"=>"\xf0\x9f\x93\x92", "[\xe5\x90\x8d\xe6\x9c\xad]"=>"\xf0\x9f\x93\x9b",
+ "\xee\x9c\x8a"=>"\xe2\x9e\xb0", "[\xe3\x82\xb0\xe3\x83\xa9\xe3\x83\x95]"=>"\xf0\x9f\x93\x89", "[\xe5\xae\x9a\xe8\xa6\x8f]"=>"\xf0\x9f\x93\x8f", "[\xe4\xb8\x89\xe8\xa7\x92\xe5\xae\x9a\xe8\xa6\x8f]"=>"\xf0\x9f\x93\x90", "\xee\x99\x92"=>"\xf0\x9f\x8e\xbd",
+ "\xee\x99\x93"=>"\xe2\x9a\xbe", "\xee\x99\x94"=>"\xe2\x9b\xb3", "\xee\x99\x95"=>"\xf0\x9f\x8e\xbe", "\xee\x99\x96"=>"\xe2\x9a\xbd", "\xee\x99\x97"=>"\xf0\x9f\x8e\xbf",
+ "\xee\x99\x98"=>"\xf0\x9f\x8f\x80", "\xee\x99\x99"=>"\xf0\x9f\x8f\x81", "\xee\x9c\x92"=>"\xf0\x9f\x8f\x84", "\xee\x9c\xb3"=>"\xf0\x9f\x9a\xb6", "[\xe3\x83\x88\xe3\x83\xad\xe3\x83\x95\xe3\x82\xa3\xe3\x83\xbc]"=>"\xf0\x9f\x8f\x86",
+ "[\xe3\x83\x95\xe3\x83\x83\xe3\x83\x88\xe3\x83\x9c\xe3\x83\xbc\xe3\x83\xab]"=>"\xf0\x9f\x8f\x88", "[\xe6\xb0\xb4\xe6\xb3\xb3]"=>"\xf0\x9f\x8f\x8a", "\xee\x99\x9b"=>"\xf0\x9f\x9a\x83", "\xee\x99\x9c"=>"\xe2\x93\x82", "\xee\x99\x9d"=>"\xf0\x9f\x9a\x85",
+ "\xee\x99\x9e"=>"\xf0\x9f\x9a\x95", "\xee\x99\x9f"=>"\xf0\x9f\x9a\x99", "\xee\x99\xa0"=>"\xf0\x9f\x9a\x8c", "[\xe3\x83\x90\xe3\x82\xb9\xe5\x81\x9c]"=>"\xf0\x9f\x9a\x8f", "\xee\x99\xa2"=>"\xe2\x9c\x88",
+ "\xee\x9a\xa3"=>"\xf0\x9f\x9a\xa4", "[\xe9\xa7\x85]"=>"\xf0\x9f\x9a\x89", "[\xe3\x83\xad\xe3\x82\xb1\xe3\x83\x83\xe3\x83\x88]"=>"\xf0\x9f\x9a\x80", "[\xe3\x83\x88\xe3\x83\xa9\xe3\x83\x83\xe3\x82\xaf]"=>"\xf0\x9f\x9a\x9a", "[\xe6\xb6\x88\xe9\x98\xb2\xe8\xbb\x8a]"=>"\xf0\x9f\x9a\x92",
+ "[\xe6\x95\x91\xe6\x80\xa5\xe8\xbb\x8a]"=>"\xf0\x9f\x9a\x91", "[\xe3\x83\x91\xe3\x83\x88\xe3\x82\xab\xe3\x83\xbc]"=>"\xf0\x9f\x9a\xa8", "\xee\x99\xab"=>"\xe2\x9b\xbd", "\xee\x99\xac"=>"\xf0\x9f\x85\xbf", "\xee\x99\xad"=>"\xf0\x9f\x9a\xa5",
+ "[\xe5\xb7\xa5\xe4\xba\x8b\xe4\xb8\xad]"=>"\xf0\x9f\x9a\xa7", "\xee\x9b\xb7"=>"\xf0\x9f\x9b\x80", "[\xe3\x82\xad\xe3\x83\xa3\xe3\x83\xb3\xe3\x83\x97]"=>"\xe2\x9b\xba", "\xee\x99\xb9"=>"\xf0\x9f\x8e\xa0", "[\xe8\xa6\xb3\xe8\xa6\xa7\xe8\xbb\x8a]"=>"\xf0\x9f\x8e\xa1",
+ "[\xe3\x82\xb8\xe3\x82\xa7\xe3\x83\x83\xe3\x83\x88\xe3\x82\xb3\xe3\x83\xbc\xe3\x82\xb9\xe3\x82\xbf\xe3\x83\xbc]"=>"\xf0\x9f\x8e\xa2", "\xee\x99\xb6"=>"\xf0\x9f\x8e\xa4", "\xee\x99\xb7"=>"\xf0\x9f\x93\xb9", "\xee\x99\xba"=>"\xf0\x9f\x8e\xa7", "\xee\x99\xbb"=>"\xf0\x9f\x8e\xa8",
+ "\xee\x99\xbc"=>"\xf0\x9f\x8e\xa9", "\xee\x99\xbd"=>"\xf0\x9f\x8e\xaa", "\xee\x99\xbe"=>"\xf0\x9f\x8e\xab", "\xee\x9a\xac"=>"\xf0\x9f\x8e\xac", "[\xe6\xbc\x94\xe5\x8a\x87]"=>"\xf0\x9f\x8e\xad",
+ "\xee\x9a\x8b"=>"\xf0\x9f\x8e\xae", "[\xe9\xba\xbb\xe9\x9b\x80]"=>"\xf0\x9f\x80\x84", "[\xe7\x9a\x84\xe4\xb8\xad]"=>"\xf0\x9f\x8e\xaf", "[777]"=>"\xf0\x9f\x8e\xb0", "[\xe3\x83\x93\xe3\x83\xaa\xe3\x83\xa4\xe3\x83\xbc\xe3\x83\x89]"=>"\xf0\x9f\x8e\xb1",
+ "[\xe3\x82\xb5\xe3\x82\xa4\xe3\x82\xb3\xe3\x83\xad]"=>"\xf0\x9f\x8e\xb2", "[\xe3\x83\x9c\xe3\x83\xbc\xe3\x83\xaa\xe3\x83\xb3\xe3\x82\xb0]"=>"\xf0\x9f\x8e\xb3", "[\xe8\x8a\xb1\xe6\x9c\xad]"=>"\xf0\x9f\x8e\xb4", "[\xe3\x82\xb8\xe3\x83\xa7\xe3\x83\xbc\xe3\x82\xab\xe3\x83\xbc]"=>"\xf0\x9f\x83\x8f", "\xee\x9b\xb6"=>"\xf0\x9f\x8e\xb5",
+ "\xee\x9b\xbf"=>"\xf0\x9f\x8e\xbc", "[\xe3\x82\xb5\xe3\x83\x83\xe3\x82\xaf\xe3\x82\xb9]"=>"\xf0\x9f\x8e\xb7", "[\xe3\x82\xae\xe3\x82\xbf\xe3\x83\xbc]"=>"\xf0\x9f\x8e\xb8", "[\xe3\x83\x94\xe3\x82\xa2\xe3\x83\x8e]"=>"\xf0\x9f\x8e\xb9", "[\xe3\x83\x88\xe3\x83\xa9\xe3\x83\xb3\xe3\x83\x9a\xe3\x83\x83\xe3\x83\x88]"=>"\xf0\x9f\x8e\xba",
+ "[\xe3\x83\x90\xe3\x82\xa4\xe3\x82\xaa\xe3\x83\xaa\xe3\x83\xb3]"=>"\xf0\x9f\x8e\xbb", "[\xe6\xad\x8c\xe8\xa8\x98\xe5\x8f\xb7]"=>"\xe3\x80\xbd", "\xee\x9a\x81"=>"\xf0\x9f\x93\xb7", "\xee\x9a\x8a"=>"\xf0\x9f\x93\xba", "[\xe3\x83\xa9\xe3\x82\xb8\xe3\x82\xaa]"=>"\xf0\x9f\x93\xbb",
+ "[\xe3\x83\x93\xe3\x83\x87\xe3\x82\xaa]"=>"\xf0\x9f\x93\xbc", "\xee\x9c\x97"=>"\xf0\x9f\x92\x8c", "\xee\x9c\x9b"=>"\xf0\x9f\x92\x8e", "[\xe8\x8a\xb1\xe6\x9d\x9f]"=>"\xf0\x9f\x92\x90", "\xee\x9b\xad"=>"\xf0\x9f\x92\x9e",
+ "[\xe7\xb5\x90\xe5\xa9\x9a\xe5\xbc\x8f]"=>"\xf0\x9f\x92\x92", "[18\xe7\xa6\x81]"=>"\xf0\x9f\x94\x9e", "\xee\x9c\xb1"=>"\xc2\xa9", "\xee\x9c\xb6"=>"\xc2\xae", "\xee\x9c\xb2"=>"\xe2\x84\xa2",
+ "[\xef\xbd\x89]"=>"\xe2\x84\xb9", "\xee\x9b\xa0"=>"#\xe2\x83\xa3", "\xee\x9b\xa2"=>"1\xe2\x83\xa3", "\xee\x9b\xa3"=>"2\xe2\x83\xa3", "\xee\x9b\xa4"=>"3\xe2\x83\xa3",
+ "\xee\x9b\xa5"=>"4\xe2\x83\xa3", "\xee\x9b\xa6"=>"5\xe2\x83\xa3", "\xee\x9b\xa7"=>"6\xe2\x83\xa3", "\xee\x9b\xa8"=>"7\xe2\x83\xa3", "\xee\x9b\xa9"=>"8\xe2\x83\xa3",
+ "\xee\x9b\xaa"=>"9\xe2\x83\xa3", "\xee\x9b\xab"=>"0\xe2\x83\xa3", "[10]"=>"\xf0\x9f\x94\x9f", "[\xe3\x83\x90\xe3\x83\xaa3]"=>"\xf0\x9f\x93\xb6", "[\xe3\x83\x9e\xe3\x83\x8a\xe3\x83\xbc\xe3\x83\xa2\xe3\x83\xbc\xe3\x83\x89]"=>"\xf0\x9f\x93\xb3",
+ "[\xe3\x82\xb1\xe3\x83\xbc\xe3\x82\xbf\xe3\x82\xa4OFF]"=>"\xf0\x9f\x93\xb4", "\xee\x99\xb3"=>"\xf0\x9f\x8d\x94", "\xee\x9d\x89"=>"\xf0\x9f\x8d\x99", "\xee\x9d\x8a"=>"\xf0\x9f\x8d\xb0", "\xee\x9d\x8c"=>"\xf0\x9f\x8d\x9a",
+ "\xee\x9d\x8d"=>"\xf0\x9f\x8d\x9e", "[\xe3\x83\x95\xe3\x83\xa9\xe3\x82\xa4\xe3\x83\x91\xe3\x83\xb3]"=>"\xf0\x9f\x8d\xb3", "[\xe3\x82\xbd\xe3\x83\x95\xe3\x83\x88\xe3\x82\xaf\xe3\x83\xaa\xe3\x83\xbc\xe3\x83\xa0]"=>"\xf0\x9f\x8d\xa6", "[\xe3\x83\x9d\xe3\x83\x86\xe3\x83\x88]"=>"\xf0\x9f\x8d\x9f", "[\xe3\x81\xa0\xe3\x82\x93\xe3\x81\x94]"=>"\xf0\x9f\x8d\xa1",
+ "[\xe3\x81\x9b\xe3\x82\x93\xe3\x81\xb9\xe3\x81\x84]"=>"\xf0\x9f\x8d\x98", "[\xe3\x83\x91\xe3\x82\xb9\xe3\x82\xbf]"=>"\xf0\x9f\x8d\x9d", "[\xe3\x82\xab\xe3\x83\xac\xe3\x83\xbc]"=>"\xf0\x9f\x8d\x9b", "[\xe3\x81\x8a\xe3\x81\xa7\xe3\x82\x93]"=>"\xf0\x9f\x8d\xa2", "[\xe3\x81\x99\xe3\x81\x97]"=>"\xf0\x9f\x8d\xa3",
+ "[\xe5\xbc\x81\xe5\xbd\x93]"=>"\xf0\x9f\x8d\xb1", "[\xe9\x8d\x8b]"=>"\xf0\x9f\x8d\xb2", "[\xe3\x82\xab\xe3\x82\xad\xe6\xb0\xb7]"=>"\xf0\x9f\x8d\xa7", "[\xe8\x82\x89]"=>"\xf0\x9f\x8d\x96", "[\xe3\x82\x84\xe3\x81\x8d\xe3\x81\x84\xe3\x82\x82]"=>"\xf0\x9f\x8d\xa0",
+ "[\xe3\x83\x94\xe3\x82\xb6]"=>"\xf0\x9f\x8d\x95", "[\xe3\x83\x81\xe3\x82\xad\xe3\x83\xb3]"=>"\xf0\x9f\x8d\x97", "[\xe3\x82\xa2\xe3\x82\xa4\xe3\x82\xb9\xe3\x82\xaf\xe3\x83\xaa\xe3\x83\xbc\xe3\x83\xa0]"=>"\xf0\x9f\x8d\xa8", "[\xe3\x83\x89\xe3\x83\xbc\xe3\x83\x8a\xe3\x83\x84]"=>"\xf0\x9f\x8d\xa9", "[\xe3\x82\xaf\xe3\x83\x83\xe3\x82\xad\xe3\x83\xbc]"=>"\xf0\x9f\x8d\xaa",
+ "[\xe3\x83\x81\xe3\x83\xa7\xe3\x82\xb3]"=>"\xf0\x9f\x8d\xab", "[\xe3\x82\xad\xe3\x83\xa3\xe3\x83\xb3\xe3\x83\x87\xe3\x82\xa3]"=>"\xf0\x9f\x8d\xad", "[\xe3\x83\x97\xe3\x83\xaa\xe3\x83\xb3]"=>"\xf0\x9f\x8d\xae", "[\xe3\x83\x8f\xe3\x83\x81\xe3\x83\x9f\xe3\x83\x84]"=>"\xf0\x9f\x8d\xaf", "[\xe3\x82\xa8\xe3\x83\x93\xe3\x83\x95\xe3\x83\xa9\xe3\x82\xa4]"=>"\xf0\x9f\x8d\xa4",
+ "\xee\x99\xaf"=>"\xf0\x9f\x8d\xb4", "\xee\x99\xb0"=>"\xe2\x98\x95", "\xee\x99\xb1"=>"\xf0\x9f\x8d\xb9", "\xee\x99\xb2"=>"\xf0\x9f\x8d\xbb", "\xee\x9c\x9e"=>"\xf0\x9f\x8d\xb5",
+ "\xee\x9d\x96"=>"\xf0\x9f\x8d\xb7", "\xee\x99\xb8"=>"\xe2\x86\x97", "\xee\x9a\x96"=>"\xe2\x86\x98", "\xee\x9a\x97"=>"\xe2\x86\x96", "\xee\x9a\xa5"=>"\xe2\x86\x99",
+ "\xee\x9b\xb5"=>"\xe2\xa4\xb4", "\xee\x9c\x80"=>"\xf0\x9f\x91\x8e", "\xee\x9c\xbc"=>"\xe2\x86\x94", "\xee\x9c\xbd"=>"\xe2\x86\x95", "[\xe2\x86\x91]"=>"\xf0\x9f\x91\x86",
+ "[\xe2\x86\x93]"=>"\xf0\x9f\x91\x87", "[\xe2\x86\x92]"=>"\xf0\x9f\x91\x89", "[\xe2\x86\x90]"=>"\xf0\x9f\x91\x88", "[>]"=>"\xe2\x96\xb6", "[<]"=>"\xe2\x97\x80",
+ "[>>]"=>"\xe2\x8f\xa9", "[<<]"=>"\xe2\x8f\xaa", "\xe2\x96\xb2"=>"\xf0\x9f\x94\xbc", "\xe2\x96\xbc"=>"\xf0\x9f\x94\xbd", "[\xc3\x97]"=>"\xe2\x9c\x96",
+ "\xee\x9c\x82"=>"\xe2\x9d\x95", "\xee\x9c\x83"=>"\xe2\x81\x89", "\xee\x9c\x84"=>"\xe2\x80\xbc", "[\xef\xbc\x9f]"=>"\xe2\x9d\x94", "\xee\x9c\x89"=>"\xe3\x80\xb0",
+ "\xee\x9b\x9f"=>"\xe2\x9e\xbf", "\xee\x9b\xac"=>"\xf0\x9f\x92\x9d", "\xee\x9b\xae"=>"\xf0\x9f\x92\x94", "\xee\x9b\xaf"=>"\xf0\x9f\x92\x95", "\xee\x9b\xb8"=>"\xe2\x9c\xb3",
+ "\xee\x9a\x8d"=>"\xe2\x99\xa5", "\xee\x9a\x8e"=>"\xe2\x99\xa0", "\xee\x9a\x8f"=>"\xe2\x99\xa6", "\xee\x9a\x90"=>"\xe2\x99\xa3", "\xee\x99\xbf"=>"\xf0\x9f\x9a\xac",
+ "\xee\x9a\x80"=>"\xf0\x9f\x9a\xad", "\xee\x9a\x9b"=>"\xe2\x99\xbf", "\xee\x9b\x9e"=>"\xf0\x9f\x9a\xa9", "\xee\x9c\xb7"=>"\xe2\x9a\xa0", "\xee\x9c\xb5"=>"\xf0\x9f\x94\x83",
+ "\xee\x9c\x9d"=>"\xf0\x9f\x9a\xb2", "[\xe2\x99\x82]"=>"\xf0\x9f\x9a\xb9", "[\xe2\x99\x80]"=>"\xf0\x9f\x9a\xba", "\xee\x99\xae"=>"\xf0\x9f\x9a\xbe", "\xee\x9c\x94"=>"\xf0\x9f\x9a\xaa",
+ "\xee\x9c\xb8"=>"\xf0\x9f\x88\xb2", "[\xe3\x83\x81\xe3\x82\xa7\xe3\x83\x83\xe3\x82\xaf\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]"=>"\xe2\x9c\x85", "\xee\x9b\x9b"=>"\xf0\x9f\x86\x91", "[COOL]"=>"\xf0\x9f\x86\x92", "\xee\x9b\x97"=>"\xf0\x9f\x86\x93",
+ "\xee\x9b\x98"=>"\xf0\x9f\x86\x94", "\xee\x9b\x9d"=>"\xf0\x9f\x86\x95", "[SOS]"=>"\xf0\x9f\x86\x98", "[UP!]"=>"\xf0\x9f\x86\x99", "[VS]"=>"\xf0\x9f\x86\x9a",
+ "[\xe3\x82\xb3\xe3\x82\xb3]"=>"\xf0\x9f\x88\x81", "[\xe3\x82\xb5\xe3\x83\xbc\xe3\x83\x93\xe3\x82\xb9]"=>"\xf0\x9f\x88\x82", "\xee\x9c\xb9"=>"\xf0\x9f\x88\xb3", "\xee\x9c\xba"=>"\xf0\x9f\x88\xb4", "\xee\x9c\xbb"=>"\xf0\x9f\x88\xb5",
+ "[\xe6\x9c\x89]"=>"\xf0\x9f\x88\xb6", "[\xe7\x84\xa1]"=>"\xf0\x9f\x88\x9a", "[\xe6\x9c\x88]"=>"\xf0\x9f\x88\xb7", "[\xe7\x94\xb3]"=>"\xf0\x9f\x88\xb8", "[\xe5\x89\xb2]"=>"\xf0\x9f\x88\xb9",
+ "[\xe6\x8c\x87]"=>"\xf0\x9f\x88\xaf", "[\xe5\x96\xb6]"=>"\xf0\x9f\x88\xba", "\xee\x9c\xb4"=>"\xe3\x8a\x99", "[\xe7\xa5\x9d]"=>"\xe3\x8a\x97", "[\xe5\xbe\x97]"=>"\xf0\x9f\x89\x90",
+ "[\xe5\x8f\xaf]"=>"\xf0\x9f\x89\x91", "[\xef\xbc\x8b]"=>"\xe2\x9e\x95", "[\xef\xbc\x8d]"=>"\xe2\x9e\x96", "[\xc3\xb7]"=>"\xe2\x9e\x97", "\xee\x9b\xbc"=>"\xf0\x9f\x92\xa2",
+ "\xee\x9b\xbe"=>"\xf0\x9f\x92\xa3", "\xee\x9c\x85"=>"\xf0\x9f\x92\xa5", "\xee\x9c\x86"=>"\xf0\x9f\x92\xa6", "\xee\x9c\x87"=>"\xf0\x9f\x92\xa7", "\xee\x9c\x88"=>"\xf0\x9f\x92\xa8",
+ "[\xe3\x82\xa6\xe3\x83\xb3\xe3\x83\x81]"=>"\xf0\x9f\x92\xa9", "[\xe5\x8a\x9b\xe3\x81\x93\xe3\x81\xb6]"=>"\xf0\x9f\x92\xaa", "[\xe3\x82\xaf\xe3\x83\xa9\xe3\x82\xaf\xe3\x83\xa9]"=>"\xf0\x9f\x92\xab", "[\xe3\x83\x95\xe3\x82\xad\xe3\x83\x80\xe3\x82\xb7]"=>"\xf0\x9f\x92\xac", "\xee\x9b\xba"=>"\xe2\x9d\x87",
+ "\xe2\x96\xa0"=>"\xe2\x97\xbc", "\xe2\x97\x86"=>"\xf0\x9f\x94\xb9", "[\xe8\x8a\xb1\xe4\xb8\xb8]"=>"\xf0\x9f\x92\xae", "[100\xe7\x82\xb9]"=>"\xf0\x9f\x92\xaf", "\xee\x9b\x9a"=>"\xe2\x86\xa9",
+ "\xe2\x94\x94\xe2\x86\x92"=>"\xe2\x86\xaa", "[\xe9\x9b\xbb\xe6\xb1\xa0]"=>"\xf0\x9f\x94\x8b", "[\xe3\x82\xb3\xe3\x83\xb3\xe3\x82\xbb\xe3\x83\xb3\xe3\x83\x88]"=>"\xf0\x9f\x94\x8c", "\xee\x9b\x9c"=>"\xf0\x9f\x94\x8e", "\xee\x9b\x99"=>"\xf0\x9f\x94\x91",
+ "\xee\x9c\x93"=>"\xf0\x9f\x94\x94", "[\xe3\x83\xa9\xe3\x82\xb8\xe3\x82\xaa\xe3\x83\x9c\xe3\x82\xbf\xe3\x83\xb3]"=>"\xf0\x9f\x94\x98", "[\xe3\x83\x96\xe3\x83\x83\xe3\x82\xaf\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]"=>"\xf0\x9f\x94\x96", "[\xe3\x83\xaa\xe3\x83\xb3\xe3\x82\xaf]"=>"\xf0\x9f\x94\x97", "[\xe2\x86\x90BACK]"=>"\xf0\x9f\x94\x99",
+ "\xee\x9a\xb9"=>"\xf0\x9f\x94\x9a", "\xee\x9a\xb8"=>"\xf0\x9f\x94\x9b", "\xee\x9a\xb7"=>"\xf0\x9f\x94\x9c", "[TOP]"=>"\xf0\x9f\x94\x9d", "\xee\x9a\x93"=>"\xe2\x9c\x8a",
+ "\xee\x9a\x95"=>"\xf0\x9f\x91\x90", "\xee\x9a\x94"=>"\xe2\x9c\x8c", "\xee\x9b\xbd"=>"\xf0\x9f\x91\x8a", "\xee\x9c\xa7"=>"\xf0\x9f\x91\x8d", "[\xe4\xba\xba\xe5\xb7\xae\xe3\x81\x97\xe6\x8c\x87]"=>"\xe2\x98\x9d",
+ "[\xe6\x8b\x8d\xe6\x89\x8b]"=>"\xf0\x9f\x91\x8f",
+ ),
+ 'kddi_to_unified' => array(
+ "\xee\x92\x88"=>"\xe2\x98\x80", "\xee\x92\x8d"=>"\xe2\x98\x81", "\xee\x92\x8c"=>"\xe2\x98\x94", "\xee\x92\x85"=>"\xe2\x9b\x84",
+ "\xee\x92\x87"=>"\xe2\x9a\xa1", "\xee\x91\xa9"=>"\xf0\x9f\x8c\x80", "\xee\x96\x98"=>"\xf0\x9f\x8c\x81", "\xee\xab\xa8"=>"\xf0\x9f\x8c\x82", "\xee\xab\xb1"=>"\xf0\x9f\x8c\x83",
+ "\xee\xab\xb4"=>"\xf0\x9f\x8c\x85", "\xee\x97\x9a"=>"\xf0\x9f\x8c\x87", "\xee\xab\xb2"=>"\xf0\x9f\x8c\x88", "\xee\x92\x8a"=>"\xe2\x9d\x84", "\xee\x92\x8e"=>"\xe2\x9b\x85",
+ "\xee\x92\xbf"=>"\xf0\x9f\x8c\x89", "\xee\xad\xbc"=>"\xf0\x9f\x8c\x8a", "\xee\xad\x93"=>"\xf0\x9f\x8c\x8b", "\xee\xad\x9f"=>"\xf0\x9f\x8c\x8c", "\xee\x96\xb3"=>"\xf0\x9f\x8c\x8f",
+ "\xee\x96\xa8"=>"\xf0\x9f\x8c\x91", "\xee\x96\xa9"=>"\xf0\x9f\x8c\x94", "\xee\x96\xaa"=>"\xf0\x9f\x8c\x93", "\xee\x92\x86"=>"\xf0\x9f\x8c\x99", "\xe2\x97\x8b"=>"\xf0\x9f\x8c\x95",
+ "\xee\x92\x89"=>"\xf0\x9f\x8c\x9b", "\xee\x92\x8b"=>"\xe2\xad\x90", "\xee\x91\xa8"=>"\xf0\x9f\x8c\xa0", "\xee\x96\x94"=>"\xe2\x8f\xb0", "\xee\x95\xba"=>"\xe2\x8c\x9a",
+ "\xee\x95\xbb"=>"\xe2\x8c\x9b", "\xee\x91\xbc"=>"\xe2\x8f\xb3", "\xee\x92\x8f"=>"\xf0\x9f\x90\x91", "\xee\x92\x90"=>"\xe2\x99\x89", "\xee\x92\x91"=>"\xe2\x99\x8a",
+ "\xee\x92\x92"=>"\xe2\x99\x8b", "\xee\x92\x93"=>"\xe2\x99\x8c", "\xee\x92\x94"=>"\xe2\x99\x8d", "\xee\x92\x95"=>"\xe2\x99\x8e", "\xee\x92\x96"=>"\xe2\x99\x8f",
+ "\xee\x92\x97"=>"\xe2\x99\x90", "\xee\x92\x98"=>"\xe2\x99\x91", "\xee\x92\x99"=>"\xe2\x99\x92", "\xee\x92\x9a"=>"\xf0\x9f\x90\x9f", "\xee\x92\x9b"=>"\xe2\x9b\x8e",
+ "\xee\x94\x93"=>"\xf0\x9f\x8d\x80", "\xee\x93\xa4"=>"\xf0\x9f\x8c\xb7", "\xee\xad\xbd"=>"\xf0\x9f\x8c\xb1", "\xee\x93\x8e"=>"\xf0\x9f\x8d\x81", "\xee\x93\x8a"=>"\xf0\x9f\x8c\xb8",
+ "\xee\x96\xba"=>"\xf0\x9f\x8c\xb9", "\xee\x97\x8d"=>"\xf0\x9f\x8d\x83", "\xee\xaa\x94"=>"\xf0\x9f\x8c\xba", "\xee\x93\xa3"=>"\xf0\x9f\x8c\xbb", "\xee\x93\xa2"=>"\xf0\x9f\x8c\xb4",
+ "\xee\xaa\x96"=>"\xf0\x9f\x8c\xb5", "[\xe7\xa8\xb2\xe7\xa9\x82]"=>"\xf0\x9f\x8c\xbe", "\xee\xac\xb6"=>"\xf0\x9f\x8c\xbd", "\xee\xac\xb7"=>"\xf0\x9f\x8d\x84", "\xee\xac\xb8"=>"\xf0\x9f\x8c\xb0",
+ "\xee\xad\x89"=>"\xf0\x9f\x8c\xbc", "\xee\xae\x82"=>"\xf0\x9f\x8c\xbf", "\xee\x93\x92"=>"\xf0\x9f\x8d\x92", "\xee\xac\xb5"=>"\xf0\x9f\x8d\x8c", "\xee\xaa\xb9"=>"\xf0\x9f\x8d\x8e",
+ "\xee\xaa\xba"=>"\xf0\x9f\x8d\x8a", "\xee\x93\x94"=>"\xf0\x9f\x8d\x93", "\xee\x93\x8d"=>"\xf0\x9f\x8d\x89", "\xee\xaa\xbb"=>"\xf0\x9f\x8d\x85", "\xee\xaa\xbc"=>"\xf0\x9f\x8d\x86",
+ "\xee\xac\xb2"=>"\xf0\x9f\x8d\x88", "\xee\xac\xb3"=>"\xf0\x9f\x8d\x8d", "\xee\xac\xb4"=>"\xf0\x9f\x8d\x87", "\xee\xac\xb9"=>"\xf0\x9f\x8d\x91", "\xee\xad\x9a"=>"\xf0\x9f\x8d\x8f",
+ "\xee\x96\xa4"=>"\xf0\x9f\x91\x80", "\xee\x96\xa5"=>"\xf0\x9f\x91\x82", "\xee\xab\x90"=>"\xf0\x9f\x91\x83", "\xee\xab\x91"=>"\xf0\x9f\x91\x84", "\xee\xad\x87"=>"\xf0\x9f\x91\x85",
+ "\xee\x94\x89"=>"\xf0\x9f\x92\x84", "\xee\xaa\xa0"=>"\xf0\x9f\x92\x85", "\xee\x94\x8b"=>"\xf0\x9f\x92\x86", "\xee\xaa\xa1"=>"\xf0\x9f\x92\x87", "\xee\xaa\xa2"=>"\xf0\x9f\x92\x88",
+ "\xe3\x80\x93"=>"\xf0\x9f\x92\xa0", "\xee\x93\xbc"=>"\xf0\x9f\x91\xa8", "\xee\x93\xba"=>"\xf0\x9f\x91\xa9", "\xee\x94\x81"=>"\xf0\x9f\x91\xaa", "[\xe3\x82\xab\xe3\x83\x83\xe3\x83\x97\xe3\x83\xab]"=>"\xf0\x9f\x91\xab",
+ "\xee\x97\x9d"=>"\xf0\x9f\x91\xae", "\xee\xab\x9b"=>"\xf0\x9f\x91\xaf", "\xee\xab\xa9"=>"\xf0\x9f\x91\xb0", "\xee\xac\x93"=>"\xf0\x9f\x91\xb1", "\xee\xac\x94"=>"\xf0\x9f\x91\xb2",
+ "\xee\xac\x95"=>"\xf0\x9f\x91\xb3", "\xee\xac\x96"=>"\xf0\x9f\x91\xb4", "\xee\xac\x97"=>"\xf0\x9f\x91\xb5", "\xee\xac\x98"=>"\xf0\x9f\x9a\xbc", "\xee\xac\x99"=>"\xf0\x9f\x91\xb7",
+ "\xee\xac\x9a"=>"\xf0\x9f\x91\xb8", "\xee\xad\x84"=>"\xf0\x9f\x91\xb9", "\xee\xad\x85"=>"\xf0\x9f\x91\xba", "\xee\x93\x8b"=>"\xf0\x9f\x91\xbb", "\xee\x96\xbf"=>"\xf0\x9f\x91\xbc",
+ "\xee\x94\x8e"=>"\xf0\x9f\x91\xbd", "\xee\x93\xac"=>"\xf0\x9f\x91\xbe", "\xee\x93\xaf"=>"\xf0\x9f\x91\xbf", "\xee\x93\xb8"=>"\xf0\x9f\x92\x80", "[\xe6\xa1\x88\xe5\x86\x85]"=>"\xf0\x9f\x92\x81",
+ "[\xe8\xa1\x9b\xe5\x85\xb5]"=>"\xf0\x9f\x92\x82", "\xee\xac\x9c"=>"\xf0\x9f\x92\x83", "\xee\xad\xbe"=>"\xf0\x9f\x90\x8c", "\xee\xac\xa2"=>"\xf0\x9f\x90\x8d", "\xee\x93\x98"=>"\xf0\x9f\x90\xb4",
+ "\xee\xac\xa3"=>"\xf0\x9f\x90\x94", "\xee\xac\xa4"=>"\xf0\x9f\x90\x97", "\xee\xac\xa5"=>"\xf0\x9f\x90\xab", "\xee\xac\x9f"=>"\xf0\x9f\x90\x98", "\xee\xac\xa0"=>"\xf0\x9f\x90\xa8",
+ "\xee\x93\x99"=>"\xf0\x9f\x90\xb5", "\xee\x97\x87"=>"\xf0\x9f\x90\x99", "\xee\xab\xac"=>"\xf0\x9f\x90\x9a", "\xee\xac\x9e"=>"\xf0\x9f\x90\x9b", "\xee\x93\x9d"=>"\xf0\x9f\x90\x9c",
+ "\xee\xad\x97"=>"\xf0\x9f\x90\x9d", "\xee\xad\x98"=>"\xf0\x9f\x90\x9e", "\xee\xac\x9d"=>"\xf0\x9f\x90\xa0", "\xee\x93\x93"=>"\xf0\x9f\x90\xa1", "\xee\x97\x94"=>"\xf0\x9f\x90\xa2",
+ "\xee\x93\xa0"=>"\xf0\x9f\x90\xa6", "\xee\xad\xb6"=>"\xf0\x9f\x90\xa5", "\xee\x97\x9b"=>"\xf0\x9f\x90\xa3", "\xee\x93\x9c"=>"\xf0\x9f\x90\xa7", "\xee\x93\x9f"=>"\xf0\x9f\x90\xa9",
+ "\xee\xac\x9b"=>"\xf0\x9f\x90\xac", "\xee\x97\x82"=>"\xf0\x9f\x90\xad", "\xee\x97\x80"=>"\xf0\x9f\x90\xaf", "\xee\x93\x9b"=>"\xf0\x9f\x90\xb1", "\xee\x91\xb0"=>"\xf0\x9f\x90\xb3",
+ "\xee\x93\xa1"=>"\xf0\x9f\x90\xba", "\xee\x93\x9e"=>"\xf0\x9f\x90\xb7", "\xee\x97\x81"=>"\xf0\x9f\x90\xbb", "[\xe3\x83\x8f\xe3\x83\xa0\xe3\x82\xb9\xe3\x82\xbf\xe3\x83\xbc]"=>"\xf0\x9f\x90\xb9", "\xee\xac\xa1"=>"\xf0\x9f\x90\xae",
+ "\xee\x93\x97"=>"\xf0\x9f\x90\xb0", "\xee\x93\x9a"=>"\xf0\x9f\x90\xb8", "\xee\x93\xae"=>"\xf0\x9f\x90\xbe", "\xee\xac\xbf"=>"\xf0\x9f\x90\xb2", "\xee\xad\x86"=>"\xf0\x9f\x90\xbc",
+ "\xee\xad\x88"=>"\xf0\x9f\x90\xbd", "\xee\x91\xb2"=>"\xf0\x9f\x98\xa0", "\xee\xad\xa7"=>"\xf0\x9f\x98\xa9", "\xee\xab\x8a"=>"\xf0\x9f\x98\xb2", "\xee\xab\x80"=>"\xf0\x9f\x98\x94",
+ "\xee\x96\xae"=>"\xf0\x9f\x98\xb5", "\xee\xab\x8b"=>"\xf0\x9f\x98\xb0", "\xee\xab\x89"=>"\xf0\x9f\x98\x92", "\xee\x97\x84"=>"\xf0\x9f\x98\x8d", "\xee\xab\x81"=>"\xf0\x9f\x98\xa4",
+ "\xee\x93\xa7"=>"\xf0\x9f\x98\x9d", "\xee\xab\x8d"=>"\xf0\x9f\x98\x8a", "\xee\xab\x8f"=>"\xf0\x9f\x98\x98", "\xee\xab\x8e"=>"\xf0\x9f\x98\x9a", "\xee\xab\x87"=>"\xf0\x9f\x98\xb7",
+ "\xee\xab\x88"=>"\xf0\x9f\x98\xb3", "\xee\x91\xb1"=>"\xf0\x9f\x98\x84", "\xee\x91\xb1\xee\x96\xb1"=>"\xf0\x9f\x98\x85", "\xee\xab\x85"=>"\xf0\x9f\x98\x8c", "\xee\xae\x80"=>"\xf0\x9f\x98\x81",
+ "\xee\xad\xa4"=>"\xf0\x9f\x98\x82", "\xee\x93\xbb"=>"\xe2\x98\xba", "\xee\xad\xa9"=>"\xf0\x9f\x98\xa2", "\xee\x91\xb3"=>"\xf0\x9f\x98\xad", "\xee\xab\x86"=>"\xf0\x9f\x98\xa8",
+ "\xee\xab\x82"=>"\xf0\x9f\x98\xa3", "\xee\xad\x9d"=>"\xf0\x9f\x98\xa1", "\xee\xab\x83"=>"\xf0\x9f\x98\x96", "\xee\x97\x85"=>"\xf0\x9f\x98\xb1", "\xee\xab\x84"=>"\xf0\x9f\x98\xaa",
+ "\xee\xaa\xbf"=>"\xf0\x9f\x98\x8f", "\xee\x97\x86"=>"\xf0\x9f\x98\xa5", "\xee\x91\xb4"=>"\xf0\x9f\x98\xab", "\xee\x97\x83"=>"\xf0\x9f\x98\x89", "\xee\xad\xa1"=>"\xf0\x9f\x98\xba",
+ "\xee\xad\xbf"=>"\xf0\x9f\x98\xb8", "\xee\xad\xa3"=>"\xf0\x9f\x98\xb9", "\xee\xad\xa0"=>"\xf0\x9f\x98\xbd", "\xee\xad\xa5"=>"\xf0\x9f\x98\xbb", "\xee\xad\xa8"=>"\xf0\x9f\x98\xbf",
+ "\xee\xad\x9e"=>"\xf0\x9f\x98\xbe", "\xee\xad\xaa"=>"\xf0\x9f\x98\xbc", "\xee\xad\xa6"=>"\xf0\x9f\x99\x80", "\xee\xab\x97"=>"\xf0\x9f\x99\x85", "\xee\xab\x98"=>"\xf0\x9f\x99\x86",
+ "\xee\xab\x99"=>"\xf0\x9f\x99\x87", "\xee\xad\x90"=>"\xf0\x9f\x99\x88", "\xee\xad\x91"=>"\xf0\x9f\x99\x8a", "\xee\xad\x92"=>"\xf0\x9f\x99\x89", "\xee\xae\x85"=>"\xf0\x9f\x99\x8b",
+ "\xee\xae\x86"=>"\xf0\x9f\x99\x8c", "\xee\xae\x87"=>"\xf0\x9f\x99\x8d", "\xee\xae\x88"=>"\xf0\x9f\x99\x8e", "\xee\xab\x92"=>"\xf0\x9f\x99\x8f", "\xee\x92\xab"=>"\xf0\x9f\x8f\xa0",
+ "\xee\xac\x89"=>"\xf0\x9f\x8f\xa1", "\xee\x92\xad"=>"\xf0\x9f\x8f\xa2", "\xee\x97\x9e"=>"\xf0\x9f\x8f\xa3", "\xee\x97\x9f"=>"\xf0\x9f\x8f\xa5", "\xee\x92\xaa"=>"\xf0\x9f\x8f\xa6",
+ "\xee\x92\xa3"=>"\xf0\x9f\x8f\xa7", "\xee\xaa\x81"=>"\xf0\x9f\x8f\xa8", "\xee\xab\xb3"=>"\xf0\x9f\x8f\xa9", "\xee\x92\xa4"=>"\xf0\x9f\x8f\xaa", "\xee\xaa\x80"=>"\xf0\x9f\x8f\xab",
+ "\xee\x96\xbb"=>"\xf0\x9f\x92\x92", "\xee\x97\x8f"=>"\xe2\x9b\xb2", "\xee\xab\xb6"=>"\xf0\x9f\x8f\xac", "\xee\xab\xb7"=>"\xf0\x9f\x8f\xaf", "\xee\xab\xb8"=>"\xf0\x9f\x8f\xb0",
+ "\xee\xab\xb9"=>"\xf0\x9f\x8f\xad", "\xee\x92\xa9"=>"\xe2\x9a\x93", "\xee\x92\xbd"=>"\xf0\x9f\x8f\xae", "\xee\x96\xbd"=>"\xf0\x9f\x97\xbb", "\xee\x93\x80"=>"\xf0\x9f\x97\xbc",
+ "[\xe8\x87\xaa\xe7\x94\xb1\xe3\x81\xae\xe5\xa5\xb3\xe7\xa5\x9e]"=>"\xf0\x9f\x97\xbd", "\xee\x95\xb2"=>"\xf0\x9f\x97\xbe", "\xee\xad\xac"=>"\xf0\x9f\x97\xbf", "\xee\x96\xb7"=>"\xf0\x9f\x91\x9e", "\xee\xac\xab"=>"\xf0\x9f\x91\x9f",
+ "\xee\x94\x9a"=>"\xf0\x9f\x91\xa1", "\xee\xaa\x9f"=>"\xf0\x9f\x91\xa2", "\xee\xac\xaa"=>"\xf0\x9f\x91\xa3", "\xee\x93\xbe"=>"\xf0\x9f\x91\x93", "\xee\x96\xb6"=>"\xf0\x9f\x91\x95",
+ "\xee\xad\xb7"=>"\xf0\x9f\x91\x96", "\xee\x97\x89"=>"\xf0\x9f\x94\xb1", "\xee\xaa\x93"=>"\xf0\x9f\x91\x94", "\xee\xaa\x9e"=>"\xf0\x9f\x91\x92", "\xee\xad\xab"=>"\xf0\x9f\x91\x97",
+ "\xee\xaa\xa3"=>"\xf0\x9f\x91\x98", "\xee\xaa\xa4"=>"\xf0\x9f\x91\x99", "\xee\x94\x8d"=>"\xf0\x9f\x91\x9a", "\xee\x94\x84"=>"\xf0\x9f\x91\x9b", "\xee\x92\x9c"=>"\xf0\x9f\x91\x9c",
+ "[\xe3\x81\xb5\xe3\x81\x8f\xe3\x82\x8d]"=>"\xf0\x9f\x91\x9d", "\xee\x93\x87"=>"\xf0\x9f\x92\xb0", "[$\xef\xbf\xa5]"=>"\xf0\x9f\x92\xb1", "\xee\x97\x9c"=>"\xf0\x9f\x92\xb9", "\xee\x95\xb9"=>"\xf0\x9f\x92\xb2",
+ "\xee\x95\xbc"=>"\xf0\x9f\x92\xb3", "\xee\x95\xbd"=>"\xf0\x9f\x92\xb4", "\xee\x96\x85"=>"\xf0\x9f\x92\xb5", "\xee\xad\x9b"=>"\xf0\x9f\x92\xb8", "\xee\xac\x91"=>"\xf0\x9f\x87\xa8\xf0\x9f\x87\xb3",
+ "\xee\xac\x8e"=>"\xf0\x9f\x87\xa9\xf0\x9f\x87\xaa", "\xee\x97\x95"=>"\xf0\x9f\x87\xaa\xf0\x9f\x87\xb8", "\xee\xab\xba"=>"\xf0\x9f\x87\xab\xf0\x9f\x87\xb7", "\xee\xac\x90"=>"\xf0\x9f\x87\xac\xf0\x9f\x87\xa7", "\xee\xac\x8f"=>"\xf0\x9f\x87\xae\xf0\x9f\x87\xb9",
+ "\xee\x93\x8c"=>"\xf0\x9f\x87\xaf\xf0\x9f\x87\xb5", "\xee\xac\x92"=>"\xf0\x9f\x87\xb0\xf0\x9f\x87\xb7", "\xee\x97\x96"=>"\xf0\x9f\x87\xb7\xf0\x9f\x87\xba", "\xee\x95\xb3"=>"\xf0\x9f\x87\xba\xf0\x9f\x87\xb8", "\xee\x91\xbb"=>"\xf0\x9f\x94\xa5",
+ "\xee\x96\x83"=>"\xf0\x9f\x94\xa6", "\xee\x96\x87"=>"\xf0\x9f\x94\xa7", "\xee\x97\x8b"=>"\xf0\x9f\x94\xa8", "\xee\x96\x81"=>"\xf0\x9f\x94\xa9", "\xee\x95\xbf"=>"\xf0\x9f\x94\xaa",
+ "\xee\x94\x8a"=>"\xf0\x9f\x94\xab", "\xee\xaa\x8f"=>"\xf0\x9f\x94\xaf", "\xee\x92\x80"=>"\xf0\x9f\x94\xb0", "\xee\x94\x90"=>"\xf0\x9f\x92\x89", "\xee\xaa\x9a"=>"\xf0\x9f\x92\x8a",
+ "\xee\xac\xa6"=>"\xf0\x9f\x85\xb0", "\xee\xac\xa7"=>"\xf0\x9f\x85\xb1", "\xee\xac\xa9"=>"\xf0\x9f\x86\x8e", "\xee\xac\xa8"=>"\xf0\x9f\x85\xbe", "\xee\x96\x9f"=>"\xf0\x9f\x8e\x80",
+ "\xee\x93\x8f"=>"\xf0\x9f\x8e\x81", "\xee\x96\xa0"=>"\xf0\x9f\x8e\x82", "\xee\x93\x89"=>"\xf0\x9f\x8e\x84", "\xee\xab\xb0"=>"\xf0\x9f\x8e\x85", "\xee\x97\x99"=>"\xf0\x9f\x8e\x8c",
+ "\xee\x97\x8c"=>"\xf0\x9f\x8e\x86", "\xee\xaa\x9b"=>"\xf0\x9f\x8e\x88", "\xee\xaa\x9c"=>"\xf0\x9f\x8e\x89", "\xee\xab\xa3"=>"\xf0\x9f\x8e\x8d", "\xee\xab\xa4"=>"\xf0\x9f\x8e\x8e",
+ "\xee\xab\xa5"=>"\xf0\x9f\x8e\x93", "\xee\xab\xa6"=>"\xf0\x9f\x8e\x92", "\xee\xab\xa7"=>"\xf0\x9f\x8e\x8f", "\xee\xab\xab"=>"\xf0\x9f\x8e\x87", "\xee\xab\xad"=>"\xf0\x9f\x8e\x90",
+ "\xee\xab\xae"=>"\xf0\x9f\x8e\x83", "\xee\x91\xaf"=>"\xf0\x9f\x8e\x8a", "\xee\xac\xbd"=>"\xf0\x9f\x8e\x8b", "\xee\xab\xaf"=>"\xf0\x9f\x8e\x91", "\xee\x96\x9b"=>"\xf0\x9f\x93\x9f",
+ "\xee\x96\x96"=>"\xe2\x98\x8e", "\xee\x94\x9e"=>"\xf0\x9f\x93\x9e", "\xee\x96\x88"=>"\xf0\x9f\x93\xb1", "\xee\xac\x88"=>"\xf0\x9f\x93\xb2", "\xee\xaa\x92"=>"\xf0\x9f\x93\x9d",
+ "\xee\x94\xa0"=>"\xf0\x9f\x93\xa0", "\xee\x94\xa1"=>"\xe2\x9c\x89", "\xee\x96\x91"=>"\xf0\x9f\x93\xa8", "\xee\xad\xa2"=>"\xf0\x9f\x93\xa9", "\xee\x94\x9b"=>"\xf0\x9f\x93\xae",
+ "\xee\xac\x8a"=>"\xf0\x9f\x93\xab", "\xee\x96\x8b"=>"\xf0\x9f\x93\xb0", "\xee\x94\x91"=>"\xf0\x9f\x94\x8a", "\xee\x92\xa8"=>"\xf0\x9f\x93\xa1", "\xee\x96\x92"=>"\xf0\x9f\x93\xa4",
+ "\xee\x96\x93"=>"\xf0\x9f\x93\xa5", "\xee\x94\x9f"=>"\xf0\x9f\x93\xa6", "\xee\xad\xb1"=>"\xf0\x9f\x93\xa7", "\xee\xab\xbd"=>"\xf0\x9f\x94\xa0", "\xee\xab\xbe"=>"\xf0\x9f\x94\xa1",
+ "\xee\xab\xbf"=>"\xf0\x9f\x94\xa2", "\xee\xac\x80"=>"\xf0\x9f\x94\xa3", "\xee\xad\x95"=>"\xf0\x9f\x94\xa4", "\xee\xac\x83"=>"\xe2\x9c\x92", "[\xe3\x81\x84\xe3\x81\x99]"=>"\xf0\x9f\x92\xba",
+ "\xee\x96\xb8"=>"\xf0\x9f\x92\xbb", "\xee\x92\xa1"=>"\xe2\x9c\x8f", "\xee\x92\xa0"=>"\xf0\x9f\x93\x8e", "\xee\x97\x8e"=>"\xf0\x9f\x92\xbc", "\xee\x96\x82"=>"\xf0\x9f\x92\xbd",
+ "\xee\x95\xa2"=>"\xf0\x9f\x92\xbe", "\xee\x94\x8c"=>"\xf0\x9f\x93\x80", "\xee\x94\x96"=>"\xe2\x9c\x82", "\xee\x95\xa0"=>"\xf0\x9f\x93\x8d", "\xee\x95\xa1"=>"\xf0\x9f\x93\x83",
+ "\xee\x95\xa9"=>"\xf0\x9f\x93\x84", "\xee\x95\xa3"=>"\xf0\x9f\x93\x85", "\xee\x96\x8f"=>"\xf0\x9f\x93\x81", "\xee\x96\x90"=>"\xf0\x9f\x93\x82", "\xee\x95\xab"=>"\xf0\x9f\x93\x93",
+ "\xee\x92\x9f"=>"\xf0\x9f\x93\x96", "\xee\x92\x9d"=>"\xf0\x9f\x93\x94", "\xee\x95\xa8"=>"\xf0\x9f\x93\x95", "\xee\x95\xa5"=>"\xf0\x9f\x93\x97", "\xee\x95\xa6"=>"\xf0\x9f\x93\x98",
+ "\xee\x95\xa7"=>"\xf0\x9f\x93\x99", "\xee\x95\xaf"=>"\xf0\x9f\x93\x9a", "\xee\x94\x9d"=>"\xf0\x9f\x93\x9b", "\xee\x95\x9f"=>"\xf0\x9f\x93\x9c", "\xee\x95\xa4"=>"\xf0\x9f\x93\x8b",
+ "\xee\x95\xaa"=>"\xf0\x9f\x93\x86", "\xee\x95\xb4"=>"\xf0\x9f\x93\x8a", "\xee\x95\xb5"=>"\xf0\x9f\x93\x88", "\xee\x95\xb6"=>"\xf0\x9f\x93\x89", "\xee\x95\xac"=>"\xf0\x9f\x93\x87",
+ "\xee\x95\xad"=>"\xf0\x9f\x93\x8c", "\xee\x95\xae"=>"\xf0\x9f\x93\x92", "\xee\x95\xb0"=>"\xf0\x9f\x93\x8f", "\xee\x92\xa2"=>"\xf0\x9f\x93\x90", "\xee\xac\x8b"=>"\xf0\x9f\x93\x91",
+ "\xee\x92\xba"=>"\xe2\x9a\xbe", "\xee\x96\x99"=>"\xe2\x9b\xb3", "\xee\x92\xb7"=>"\xf0\x9f\x8e\xbe", "\xee\x92\xb6"=>"\xe2\x9a\xbd", "\xee\xaa\xac"=>"\xf0\x9f\x8e\xbf",
+ "\xee\x96\x9a"=>"\xf0\x9f\x8f\x80", "\xee\x92\xb9"=>"\xf0\x9f\x8f\x81", "\xee\x92\xb8"=>"\xf0\x9f\x8f\x82", "\xee\x91\xab"=>"\xf0\x9f\x8f\x83", "\xee\xad\x81"=>"\xf0\x9f\x8f\x84",
+ "\xee\x97\x93"=>"\xf0\x9f\x8f\x86", "\xee\x92\xbb"=>"\xf0\x9f\x8f\x88", "\xee\xab\x9e"=>"\xf0\x9f\x8f\x8a", "\xee\x92\xb5"=>"\xf0\x9f\x9a\x83", "\xee\x96\xbc"=>"\xe2\x93\x82",
+ "\xee\x92\xb0"=>"\xf0\x9f\x9a\x85", "\xee\x92\xb1"=>"\xf0\x9f\x9a\x95", "\xee\x92\xaf"=>"\xf0\x9f\x9a\x8c", "\xee\x92\xa7"=>"\xf0\x9f\x9a\x8f", "\xee\xaa\x82"=>"\xf0\x9f\x9a\xa2",
+ "\xee\x92\xb3"=>"\xe2\x9c\x88", "\xee\x92\xb4"=>"\xf0\x9f\x9a\xa4", "\xee\xad\xad"=>"\xf0\x9f\x9a\x89", "\xee\x97\x88"=>"\xf0\x9f\x9a\x80", "\xee\x92\xb2"=>"\xf0\x9f\x9a\x9a",
+ "\xee\xab\x9f"=>"\xf0\x9f\x9a\x92", "\xee\xab\xa0"=>"\xf0\x9f\x9a\x91", "\xee\xab\xa1"=>"\xf0\x9f\x9a\x93", "\xee\x95\xb1"=>"\xe2\x9b\xbd", "\xee\x92\xa6"=>"\xf0\x9f\x85\xbf",
+ "\xee\x91\xaa"=>"\xf0\x9f\x9a\xa5", "\xee\x97\x97"=>"\xf0\x9f\x9a\xa7", "\xee\xad\xb3"=>"\xf0\x9f\x9a\xa8", "\xee\x92\xbc"=>"\xe2\x99\xa8", "\xee\x97\x90"=>"\xe2\x9b\xba",
+ "\xee\x91\xad"=>"\xf0\x9f\x8e\xa1", "\xee\xab\xa2"=>"\xf0\x9f\x8e\xa2", "\xee\xad\x82"=>"\xf0\x9f\x8e\xa3", "\xee\x94\x83"=>"\xf0\x9f\x8e\xa4", "\xee\x94\x97"=>"\xf0\x9f\x8e\xa6",
+ "\xee\x94\x88"=>"\xf0\x9f\x8e\xa7", "\xee\x96\x9c"=>"\xf0\x9f\x8e\xa8", "\xee\xab\xb5"=>"\xf0\x9f\x8e\xa9", "\xee\x96\x9e"=>"\xf0\x9f\x8e\xaa", "\xee\x92\x9e"=>"\xf0\x9f\x8e\xab",
+ "\xee\x92\xbe"=>"\xf0\x9f\x8e\xac", "\xee\x96\x9d"=>"\xf0\x9f\x8e\xad", "\xee\x93\x86"=>"\xf0\x9f\x8e\xae", "\xee\x97\x91"=>"\xf0\x9f\x80\x84", "\xee\x93\x85"=>"\xf0\x9f\x8e\xaf",
+ "\xee\x91\xae"=>"\xf0\x9f\x8e\xb0", "\xee\xab\x9d"=>"\xf0\x9f\x8e\xb1", "\xee\x93\x88"=>"\xf0\x9f\x8e\xb2", "\xee\xad\x83"=>"\xf0\x9f\x8e\xb3", "\xee\xad\xae"=>"\xf0\x9f\x8e\xb4",
+ "\xee\xad\xaf"=>"\xf0\x9f\x83\x8f", "\xee\x96\xbe"=>"\xf0\x9f\x8e\xb5", "\xee\x94\x85"=>"\xf0\x9f\x8e\xb6", "[\xe3\x82\xb5\xe3\x83\x83\xe3\x82\xaf\xe3\x82\xb9]"=>"\xf0\x9f\x8e\xb7", "\xee\x94\x86"=>"\xf0\x9f\x8e\xb8",
+ "\xee\xad\x80"=>"\xf0\x9f\x8e\xb9", "\xee\xab\x9c"=>"\xf0\x9f\x8e\xba", "\xee\x94\x87"=>"\xf0\x9f\x8e\xbb", "\xee\xab\x8c"=>"\xf0\x9f\x8e\xbc", "[\xe6\xad\x8c\xe8\xa8\x98\xe5\x8f\xb7]"=>"\xe3\x80\xbd",
+ "\xee\x94\x95"=>"\xf0\x9f\x93\xb7", "\xee\x95\xbe"=>"\xf0\x9f\x93\xb9", "\xee\x94\x82"=>"\xf0\x9f\x93\xba", "\xee\x96\xb9"=>"\xf0\x9f\x93\xbb", "\xee\x96\x80"=>"\xf0\x9f\x93\xbc",
+ "\xee\x93\xab"=>"\xf0\x9f\x92\x8b", "\xee\xad\xb8"=>"\xf0\x9f\x92\x8c", "\xee\x94\x94"=>"\xf0\x9f\x92\x8e", "\xee\x97\x8a"=>"\xf0\x9f\x92\x8f", "\xee\xaa\x95"=>"\xf0\x9f\x92\x90",
+ "\xee\xab\x9a"=>"\xf0\x9f\x92\x91", "\xee\xaa\x83"=>"\xf0\x9f\x94\x9e", "\xee\x95\x98"=>"\xc2\xa9", "\xee\x95\x99"=>"\xc2\xae", "\xee\x95\x8e"=>"\xe2\x84\xa2",
+ "\xee\x94\xb3"=>"\xe2\x84\xb9", "\xee\xae\x84"=>"#\xe2\x83\xa3", "\xee\x94\xa2"=>"1\xe2\x83\xa3", "\xee\x94\xa3"=>"2\xe2\x83\xa3", "\xee\x94\xa4"=>"3\xe2\x83\xa3",
+ "\xee\x94\xa5"=>"4\xe2\x83\xa3", "\xee\x94\xa6"=>"5\xe2\x83\xa3", "\xee\x94\xa7"=>"6\xe2\x83\xa3", "\xee\x94\xa8"=>"7\xe2\x83\xa3", "\xee\x94\xa9"=>"8\xe2\x83\xa3",
+ "\xee\x94\xaa"=>"9\xe2\x83\xa3", "\xee\x96\xac"=>"0\xe2\x83\xa3", "\xee\x94\xab"=>"\xf0\x9f\x94\x9f", "\xee\xaa\x84"=>"\xf0\x9f\x93\xb6", "\xee\xaa\x90"=>"\xf0\x9f\x93\xb3",
+ "\xee\xaa\x91"=>"\xf0\x9f\x93\xb4", "\xee\x93\x96"=>"\xf0\x9f\x8d\x94", "\xee\x93\x95"=>"\xf0\x9f\x8d\x99", "\xee\x93\x90"=>"\xf0\x9f\x8d\xb0", "\xee\x96\xb4"=>"\xf0\x9f\x8d\x9c",
+ "\xee\xaa\xaf"=>"\xf0\x9f\x8d\x9e", "\xee\x93\x91"=>"\xf0\x9f\x8d\xb3", "\xee\xaa\xb0"=>"\xf0\x9f\x8d\xa6", "\xee\xaa\xb1"=>"\xf0\x9f\x8d\x9f", "\xee\xaa\xb2"=>"\xf0\x9f\x8d\xa1",
+ "\xee\xaa\xb3"=>"\xf0\x9f\x8d\x98", "\xee\xaa\xb4"=>"\xf0\x9f\x8d\x9a", "\xee\xaa\xb5"=>"\xf0\x9f\x8d\x9d", "\xee\xaa\xb6"=>"\xf0\x9f\x8d\x9b", "\xee\xaa\xb7"=>"\xf0\x9f\x8d\xa2",
+ "\xee\xaa\xb8"=>"\xf0\x9f\x8d\xa3", "\xee\xaa\xbd"=>"\xf0\x9f\x8d\xb1", "\xee\xaa\xbe"=>"\xf0\x9f\x8d\xb2", "\xee\xab\xaa"=>"\xf0\x9f\x8d\xa7", "\xee\x93\x84"=>"\xf0\x9f\x8d\x96",
+ "\xee\x93\xad"=>"\xf0\x9f\x8d\xa5", "\xee\xac\xba"=>"\xf0\x9f\x8d\xa0", "\xee\xac\xbb"=>"\xf0\x9f\x8d\x95", "\xee\xac\xbc"=>"\xf0\x9f\x8d\x97", "\xee\xad\x8a"=>"\xf0\x9f\x8d\xa8",
+ "\xee\xad\x8b"=>"\xf0\x9f\x8d\xa9", "\xee\xad\x8c"=>"\xf0\x9f\x8d\xaa", "\xee\xad\x8d"=>"\xf0\x9f\x8d\xab", "\xee\xad\x8e"=>"\xf0\x9f\x8d\xac", "\xee\xad\x8f"=>"\xf0\x9f\x8d\xad",
+ "\xee\xad\x96"=>"\xf0\x9f\x8d\xae", "\xee\xad\x99"=>"\xf0\x9f\x8d\xaf", "\xee\xad\xb0"=>"\xf0\x9f\x8d\xa4", "\xee\x92\xac"=>"\xf0\x9f\x8d\xb4", "\xee\x96\x97"=>"\xe2\x98\x95",
+ "\xee\x93\x82"=>"\xf0\x9f\x8d\xb8", "\xee\x93\x83"=>"\xf0\x9f\x8d\xba", "\xee\xaa\xae"=>"\xf0\x9f\x8d\xb5", "\xee\xaa\x97"=>"\xf0\x9f\x8d\xb6", "\xee\x93\x81"=>"\xf0\x9f\x8d\xb7",
+ "\xee\xaa\x98"=>"\xf0\x9f\x8d\xbb", "\xee\xac\xbe"=>"\xf0\x9f\x8d\xb9", "\xee\x95\x95"=>"\xe2\x86\x97", "\xee\x95\x8d"=>"\xe2\x86\x98", "\xee\x95\x8c"=>"\xe2\x86\x96",
+ "\xee\x95\x96"=>"\xe2\x86\x99", "\xee\xac\xad"=>"\xe2\xa4\xb4", "\xee\xac\xae"=>"\xe2\xa4\xb5", "\xee\xad\xba"=>"\xe2\x86\x94", "\xee\xad\xbb"=>"\xe2\x86\x95",
+ "\xee\x94\xbf"=>"\xe2\xac\x86", "\xee\x95\x80"=>"\xe2\xac\x87", "\xee\x95\x92"=>"\xe2\x9e\xa1", "\xee\x95\x93"=>"\xe2\xac\x85", "\xee\x94\xae"=>"\xe2\x96\xb6",
+ "\xee\x94\xad"=>"\xe2\x97\x80", "\xee\x94\xb0"=>"\xe2\x8f\xa9", "\xee\x94\xaf"=>"\xe2\x8f\xaa", "\xee\x95\x85"=>"\xe2\x8f\xab", "\xee\x95\x84"=>"\xe2\x8f\xac",
+ "\xee\x95\x9a"=>"\xf0\x9f\x94\xba", "\xee\x95\x9b"=>"\xf0\x9f\x94\xbb", "\xee\x95\x83"=>"\xf0\x9f\x94\xbc", "\xee\x95\x82"=>"\xf0\x9f\x94\xbd", "\xee\xaa\xad"=>"\xe2\xad\x95",
+ "\xee\x95\x90"=>"\xe2\x9d\x8c", "\xee\x95\x91"=>"\xe2\x9d\x8e", "\xee\x92\x82"=>"\xe2\x9d\x95", "\xee\xac\xaf"=>"\xe2\x81\x89", "\xee\xac\xb0"=>"\xe2\x80\xbc",
+ "\xee\x92\x83"=>"\xe2\x9d\x94", "\xee\xac\xb1"=>"\xe2\x9e\xb0", "[\xe3\x83\x95\xe3\x83\xaa\xe3\x83\xbc\xe3\x83\x80\xe3\x82\xa4\xe3\x83\xa4\xe3\x83\xab]"=>"\xe2\x9e\xbf", "\xee\x96\x95"=>"\xf0\x9f\x92\x9f", "\xee\xad\xb5"=>"\xf0\x9f\x92\x97",
+ "\xee\x91\xb7"=>"\xf0\x9f\x92\x94", "\xee\x91\xb8"=>"\xf0\x9f\x92\x95", "\xee\xaa\xa6"=>"\xf0\x9f\x92\x96", "\xee\x93\xaa"=>"\xf0\x9f\x92\x98", "\xee\xaa\xa7"=>"\xf0\x9f\x92\x99",
+ "\xee\xaa\xa8"=>"\xf0\x9f\x92\x9a", "\xee\xaa\xa9"=>"\xf0\x9f\x92\x9b", "\xee\xaa\xaa"=>"\xf0\x9f\x92\x9c", "\xee\xad\x94"=>"\xf0\x9f\x92\x9d", "\xee\x96\xaf"=>"\xf0\x9f\x92\x9e",
+ "\xee\xaa\xa5"=>"\xe2\x99\xa5", "\xee\x96\xa1"=>"\xe2\x99\xa0", "\xee\x96\xa2"=>"\xe2\x99\xa6", "\xee\x96\xa3"=>"\xe2\x99\xa3", "\xee\x91\xbd"=>"\xf0\x9f\x9a\xac",
+ "\xee\x91\xbe"=>"\xf0\x9f\x9a\xad", "\xee\x91\xbf"=>"\xe2\x99\xbf", "\xee\xac\xac"=>"\xf0\x9f\x9a\xa9", "\xee\x92\x81"=>"\xe2\x9a\xa0", "\xee\x92\x84"=>"\xe2\x9b\x94",
+ "\xee\xad\xb9"=>"\xe2\x99\xbb", "\xee\x92\xae"=>"\xf0\x9f\x9a\xb2", "\xee\xad\xb2"=>"\xf0\x9f\x9a\xb6", "[\xe2\x99\x82]"=>"\xf0\x9f\x9a\xb9", "[\xe2\x99\x80]"=>"\xf0\x9f\x9a\xba",
+ "\xee\x97\x98"=>"\xf0\x9f\x9b\x80", "\xee\x92\xa5"=>"\xf0\x9f\x9a\xbe", "[\xe3\x83\x89\xe3\x82\xa2]"=>"\xf0\x9f\x9a\xaa", "\xee\x95\x81"=>"\xf0\x9f\x9a\xab", "\xee\x95\x97"=>"\xe2\x9c\x94",
+ "\xee\x96\xab"=>"\xf0\x9f\x86\x91", "\xee\xaa\x85"=>"\xf0\x9f\x86\x92", "\xee\x95\xb8"=>"\xf0\x9f\x86\x93", "\xee\xaa\x88"=>"\xf0\x9f\x86\x94", "\xee\x96\xb5"=>"\xf0\x9f\x86\x95",
+ "[NG]"=>"\xf0\x9f\x86\x96", "\xee\x96\xad"=>"\xf0\x9f\x86\x97", "\xee\x93\xa8"=>"\xf0\x9f\x86\x98", "\xee\x94\x8f"=>"\xf0\x9f\x86\x99", "\xee\x97\x92"=>"\xf0\x9f\x86\x9a",
+ "[\xe3\x82\xb3\xe3\x82\xb3]"=>"\xf0\x9f\x88\x81", "\xee\xaa\x87"=>"\xf0\x9f\x88\x82", "[\xe7\xa6\x81]"=>"\xf0\x9f\x88\xb2", "\xee\xaa\x8a"=>"\xf0\x9f\x88\xb3", "[\xe5\x90\x88]"=>"\xf0\x9f\x88\xb4",
+ "\xee\xaa\x89"=>"\xf0\x9f\x88\xb5", "[\xe6\x9c\x89]"=>"\xf0\x9f\x88\xb6", "[\xe7\x84\xa1]"=>"\xf0\x9f\x88\x9a", "[\xe6\x9c\x88]"=>"\xf0\x9f\x88\xb7", "[\xe7\x94\xb3]"=>"\xf0\x9f\x88\xb8",
+ "\xee\xaa\x86"=>"\xf0\x9f\x88\xb9", "\xee\xaa\x8b"=>"\xf0\x9f\x88\xaf", "\xee\xaa\x8c"=>"\xf0\x9f\x88\xba", "\xee\x93\xb1"=>"\xe3\x8a\x99", "\xee\xaa\x99"=>"\xe3\x8a\x97",
+ "\xee\x93\xb7"=>"\xf0\x9f\x89\x90", "\xee\xac\x81"=>"\xf0\x9f\x89\x91", "\xee\x94\xbc"=>"\xe2\x9e\x95", "\xee\x94\xbd"=>"\xe2\x9e\x96", "\xee\x95\x8f"=>"\xe2\x9c\x96",
+ "\xee\x95\x94"=>"\xe2\x9e\x97", "\xee\x91\xb6"=>"\xf0\x9f\x92\xa1", "\xee\x93\xa5"=>"\xf0\x9f\x92\xa2", "\xee\x91\xba"=>"\xf0\x9f\x92\xa3", "\xee\x91\xb5"=>"\xf0\x9f\x92\xa4",
+ "\xee\x96\xb0"=>"\xf0\x9f\x92\xa5", "\xee\x96\xb1"=>"\xf0\x9f\x92\xa6", "\xee\x93\xa6"=>"\xf0\x9f\x92\xa7", "\xee\x93\xb4"=>"\xf0\x9f\x92\xa8", "\xee\x93\xb5"=>"\xf0\x9f\x92\xa9",
+ "\xee\x93\xa9"=>"\xf0\x9f\x92\xaa", "\xee\xad\x9c"=>"\xf0\x9f\x92\xab", "\xee\x93\xbd"=>"\xf0\x9f\x92\xac", "\xee\xaa\xab"=>"\xe2\x9c\xa8", "\xee\x91\xb9"=>"\xe2\x9c\xb4",
+ "\xee\x94\xbe"=>"\xe2\x9c\xb3", "\xee\x94\xba"=>"\xe2\x9a\xaa", "\xee\x94\xbb"=>"\xe2\x9a\xab", "\xee\x95\x8a"=>"\xf0\x9f\x94\xb4", "\xee\x95\x8b"=>"\xf0\x9f\x94\xb3",
+ "\xee\x95\x88"=>"\xe2\xac\x9c", "\xee\x95\x89"=>"\xe2\xac\x9b", "\xee\x94\xb1"=>"\xe2\x96\xab", "\xee\x94\xb2"=>"\xe2\x96\xaa", "\xee\x94\xb4"=>"\xe2\x97\xbd",
+ "\xee\x94\xb5"=>"\xe2\x97\xbe", "\xee\x94\xb8"=>"\xe2\x97\xbb", "\xee\x94\xb9"=>"\xe2\x97\xbc", "\xee\x95\x86"=>"\xf0\x9f\x94\xb6", "\xee\x95\x87"=>"\xf0\x9f\x94\xb7",
+ "\xee\x94\xb6"=>"\xf0\x9f\x94\xb8", "\xee\x94\xb7"=>"\xf0\x9f\x94\xb9", "\xee\x91\xac"=>"\xe2\x9d\x87", "\xee\x93\xb0"=>"\xf0\x9f\x92\xae", "\xee\x93\xb2"=>"\xf0\x9f\x92\xaf",
+ "\xee\x95\x9d"=>"\xe2\x86\xa9", "\xee\x95\x9c"=>"\xe2\x86\xaa", "\xee\xac\x8d"=>"\xf0\x9f\x94\x83", "\xee\x96\x84"=>"\xf0\x9f\x94\x8b", "\xee\x96\x89"=>"\xf0\x9f\x94\x8c",
+ "\xee\x94\x98"=>"\xf0\x9f\x94\x8d", "\xee\xac\x85"=>"\xf0\x9f\x94\x8e", "\xee\x94\x9c"=>"\xf0\x9f\x94\x93", "\xee\xac\x8c"=>"\xf0\x9f\x94\x8f", "\xee\xab\xbc"=>"\xf0\x9f\x94\x90",
+ "\xee\x94\x99"=>"\xf0\x9f\x94\x91", "\xee\x94\x92"=>"\xf0\x9f\x94\x94", "\xee\xac\x82"=>"\xe2\x98\x91", "\xee\xac\x84"=>"\xf0\x9f\x94\x98", "\xee\xac\x87"=>"\xf0\x9f\x94\x96",
+ "\xee\x96\x8a"=>"\xf0\x9f\x94\x97", "\xee\xac\x86"=>"\xf0\x9f\x94\x99", "[end]"=>"\xf0\x9f\x94\x9a", "[ON]"=>"\xf0\x9f\x94\x9b", "[SOON]"=>"\xf0\x9f\x94\x9c",
+ "[TOP]"=>"\xf0\x9f\x94\x9d", "\xee\x95\x9e"=>"\xe2\x9c\x85", "\xee\xae\x83"=>"\xe2\x9c\x8a", "\xee\x96\xa7"=>"\xe2\x9c\x8b", "\xee\x96\xa6"=>"\xe2\x9c\x8c",
+ "\xee\x93\xb3"=>"\xf0\x9f\x91\x8a", "\xee\x93\xb9"=>"\xf0\x9f\x91\x8d", "\xee\x93\xb6"=>"\xe2\x98\x9d", "\xee\xaa\x8d"=>"\xf0\x9f\x91\x86", "\xee\xaa\x8e"=>"\xf0\x9f\x91\x87",
+ "\xee\x93\xbf"=>"\xf0\x9f\x91\x88", "\xee\x94\x80"=>"\xf0\x9f\x91\x89", "\xee\xab\x96"=>"\xf0\x9f\x91\x90", "\xee\xab\x93"=>"\xf0\x9f\x91\x8f", "\xee\xab\x94"=>"\xf0\x9f\x91\x8c",
+ "\xee\xab\x95"=>"\xf0\x9f\x91\x8e",
+ ),
+ 'softbank_to_unified' => array(
+ "\xee\x81\x8a"=>"\xe2\x98\x80", "\xee\x81\x89"=>"\xe2\x98\x81", "\xee\x81\x8b"=>"\xe2\x98\x94", "\xee\x81\x88"=>"\xe2\x9b\x84",
+ "\xee\x84\xbd"=>"\xe2\x9a\xa1", "\xee\x91\x83"=>"\xf0\x9f\x8c\x80", "[\xe9\x9c\xa7]"=>"\xf0\x9f\x8c\x81", "\xee\x90\xbc"=>"\xf0\x9f\x8c\x82", "\xee\x91\x8b"=>"\xf0\x9f\x8c\x8c",
+ "\xee\x81\x8d"=>"\xf0\x9f\x8c\x84", "\xee\x91\x89"=>"\xf0\x9f\x8c\x85", "\xee\x85\x86"=>"\xf0\x9f\x8c\x86", "\xee\x91\x8a"=>"\xf0\x9f\x8c\x87", "\xee\x91\x8c"=>"\xf0\x9f\x8c\x88",
+ "[\xe9\x9b\xaa\xe7\xb5\x90\xe6\x99\xb6]"=>"\xe2\x9d\x84", "\xee\x81\x8a\xee\x81\x89"=>"\xe2\x9b\x85", "\xee\x90\xbe"=>"\xf0\x9f\x8c\x8a", "[\xe7\x81\xab\xe5\xb1\xb1]"=>"\xf0\x9f\x8c\x8b", "[\xe5\x9c\xb0\xe7\x90\x83]"=>"\xf0\x9f\x8c\x8f",
+ "\xe2\x97\x8f"=>"\xf0\x9f\x8c\x91", "\xee\x81\x8c"=>"\xf0\x9f\x8c\x9b", "\xe2\x97\x8b"=>"\xf0\x9f\x8c\x95", "\xee\x8c\xb5"=>"\xf0\x9f\x8c\x9f", "\xe2\x98\x86\xe5\xbd\xa1"=>"\xf0\x9f\x8c\xa0",
+ "\xee\x80\xa4"=>"\xf0\x9f\x95\x90", "\xee\x80\xa5"=>"\xf0\x9f\x95\x91", "\xee\x80\xa6"=>"\xf0\x9f\x95\x92", "\xee\x80\xa7"=>"\xf0\x9f\x95\x93", "\xee\x80\xa8"=>"\xf0\x9f\x95\x94",
+ "\xee\x80\xa9"=>"\xf0\x9f\x95\x95", "\xee\x80\xaa"=>"\xf0\x9f\x95\x96", "\xee\x80\xab"=>"\xf0\x9f\x95\x97", "\xee\x80\xac"=>"\xf0\x9f\x95\x98", "\xee\x80\xad"=>"\xe2\x8f\xb0",
+ "\xee\x80\xae"=>"\xf0\x9f\x95\x9a", "\xee\x80\xaf"=>"\xf0\x9f\x95\x9b", "[\xe8\x85\x95\xe6\x99\x82\xe8\xa8\x88]"=>"\xe2\x8c\x9a", "[\xe7\xa0\x82\xe6\x99\x82\xe8\xa8\x88]"=>"\xe2\x8f\xb3", "\xee\x88\xbf"=>"\xe2\x99\x88",
+ "\xee\x89\x80"=>"\xe2\x99\x89", "\xee\x89\x81"=>"\xe2\x99\x8a", "\xee\x89\x82"=>"\xe2\x99\x8b", "\xee\x89\x83"=>"\xe2\x99\x8c", "\xee\x89\x84"=>"\xe2\x99\x8d",
+ "\xee\x89\x85"=>"\xe2\x99\x8e", "\xee\x89\x86"=>"\xe2\x99\x8f", "\xee\x89\x87"=>"\xe2\x99\x90", "\xee\x89\x88"=>"\xe2\x99\x91", "\xee\x89\x89"=>"\xe2\x99\x92",
+ "\xee\x89\x8a"=>"\xe2\x99\x93", "\xee\x89\x8b"=>"\xe2\x9b\x8e", "\xee\x84\x90"=>"\xf0\x9f\x8c\xbf", "\xee\x8c\x84"=>"\xf0\x9f\x8c\xb7", "\xee\x84\x98"=>"\xf0\x9f\x8d\x81",
+ "\xee\x80\xb0"=>"\xf0\x9f\x8c\xb8", "\xee\x80\xb2"=>"\xf0\x9f\x8c\xb9", "\xee\x84\x99"=>"\xf0\x9f\x8d\x82", "\xee\x91\x87"=>"\xf0\x9f\x8d\x83", "\xee\x8c\x83"=>"\xf0\x9f\x8c\xba",
+ "\xee\x8c\x85"=>"\xf0\x9f\x8c\xbc", "\xee\x8c\x87"=>"\xf0\x9f\x8c\xb4", "\xee\x8c\x88"=>"\xf0\x9f\x8c\xb5", "\xee\x91\x84"=>"\xf0\x9f\x8c\xbe", "[\xe3\x81\xa8\xe3\x81\x86\xe3\x82\x82\xe3\x82\x8d\xe3\x81\x93\xe3\x81\x97]"=>"\xf0\x9f\x8c\xbd",
+ "[\xe3\x82\xad\xe3\x83\x8e\xe3\x82\xb3]"=>"\xf0\x9f\x8d\x84", "[\xe6\xa0\x97]"=>"\xf0\x9f\x8c\xb0", "[\xe3\x81\x95\xe3\x81\x8f\xe3\x82\x89\xe3\x82\x93\xe3\x81\xbc]"=>"\xf0\x9f\x8d\x92", "[\xe3\x83\x90\xe3\x83\x8a\xe3\x83\x8a]"=>"\xf0\x9f\x8d\x8c", "\xee\x8d\x85"=>"\xf0\x9f\x8d\x8f",
+ "\xee\x8d\x86"=>"\xf0\x9f\x8d\x8a", "\xee\x8d\x87"=>"\xf0\x9f\x8d\x93", "\xee\x8d\x88"=>"\xf0\x9f\x8d\x89", "\xee\x8d\x89"=>"\xf0\x9f\x8d\x85", "\xee\x8d\x8a"=>"\xf0\x9f\x8d\x86",
+ "[\xe3\x83\xa1\xe3\x83\xad\xe3\x83\xb3]"=>"\xf0\x9f\x8d\x88", "[\xe3\x83\x91\xe3\x82\xa4\xe3\x83\x8a\xe3\x83\x83\xe3\x83\x97\xe3\x83\xab]"=>"\xf0\x9f\x8d\x8d", "[\xe3\x83\x96\xe3\x83\x89\xe3\x82\xa6]"=>"\xf0\x9f\x8d\x87", "[\xe3\x83\xa2\xe3\x83\xa2]"=>"\xf0\x9f\x8d\x91", "\xee\x90\x99"=>"\xf0\x9f\x91\x80",
+ "\xee\x90\x9b"=>"\xf0\x9f\x91\x82", "\xee\x90\x9a"=>"\xf0\x9f\x91\x83", "\xee\x90\x9c"=>"\xf0\x9f\x91\x84", "\xee\x90\x89"=>"\xf0\x9f\x98\x9d", "\xee\x8c\x9c"=>"\xf0\x9f\x92\x84",
+ "\xee\x8c\x9d"=>"\xf0\x9f\x92\x85", "\xee\x8c\x9e"=>"\xf0\x9f\x92\x86", "\xee\x8c\x9f"=>"\xf0\x9f\x92\x87", "\xee\x8c\xa0"=>"\xf0\x9f\x92\x88", "\xe3\x80\x93"=>"\xf0\x9f\x92\xa0",
+ "\xee\x80\x81"=>"\xf0\x9f\x91\xa6", "\xee\x80\x82"=>"\xf0\x9f\x91\xa7", "\xee\x80\x84"=>"\xf0\x9f\x91\xa8", "\xee\x80\x85"=>"\xf0\x9f\x91\xa9", "[\xe5\xae\xb6\xe6\x97\x8f]"=>"\xf0\x9f\x91\xaa",
+ "\xee\x90\xa8"=>"\xf0\x9f\x91\xab", "\xee\x85\x92"=>"\xf0\x9f\x91\xae", "\xee\x90\xa9"=>"\xf0\x9f\x91\xaf", "[\xe8\x8a\xb1\xe5\xab\x81]"=>"\xf0\x9f\x91\xb0", "\xee\x94\x95"=>"\xf0\x9f\x91\xb1",
+ "\xee\x94\x96"=>"\xf0\x9f\x91\xb2", "\xee\x94\x97"=>"\xf0\x9f\x91\xb3", "\xee\x94\x98"=>"\xf0\x9f\x91\xb4", "\xee\x94\x99"=>"\xf0\x9f\x91\xb5", "\xee\x94\x9a"=>"\xf0\x9f\x91\xb6",
+ "\xee\x94\x9b"=>"\xf0\x9f\x91\xb7", "\xee\x94\x9c"=>"\xf0\x9f\x91\xb8", "[\xe3\x81\xaa\xe3\x81\xbe\xe3\x81\xaf\xe3\x81\x92]"=>"\xf0\x9f\x91\xb9", "[\xe5\xa4\xa9\xe7\x8b\x97]"=>"\xf0\x9f\x91\xba", "\xee\x84\x9b"=>"\xf0\x9f\x91\xbb",
+ "\xee\x81\x8e"=>"\xf0\x9f\x91\xbc", "\xee\x84\x8c"=>"\xf0\x9f\x91\xbd", "\xee\x84\xab"=>"\xf0\x9f\x91\xbe", "\xee\x84\x9a"=>"\xf0\x9f\x91\xbf", "\xee\x84\x9c"=>"\xf0\x9f\x92\x80",
+ "\xee\x89\x93"=>"\xf0\x9f\x92\x81", "\xee\x94\x9e"=>"\xf0\x9f\x92\x82", "\xee\x94\x9f"=>"\xf0\x9f\x92\x83", "[\xe3\x82\xab\xe3\x82\xbf\xe3\x83\x84\xe3\x83\xa0\xe3\x83\xaa]"=>"\xf0\x9f\x90\x8c", "\xee\x94\xad"=>"\xf0\x9f\x90\x8d",
+ "\xee\x84\xb4"=>"\xf0\x9f\x90\x8e", "\xee\x94\xae"=>"\xf0\x9f\x90\x94", "\xee\x94\xaf"=>"\xf0\x9f\x90\x97", "\xee\x94\xb0"=>"\xf0\x9f\x90\xab", "\xee\x94\xa6"=>"\xf0\x9f\x90\x98",
+ "\xee\x94\xa7"=>"\xf0\x9f\x90\xa8", "\xee\x94\xa8"=>"\xf0\x9f\x90\x92", "\xee\x94\xa9"=>"\xf0\x9f\x90\x91", "\xee\x84\x8a"=>"\xf0\x9f\x90\x99", "\xee\x91\x81"=>"\xf0\x9f\x90\x9a",
+ "\xee\x94\xa5"=>"\xf0\x9f\x90\x9b", "[\xe3\x82\xa2\xe3\x83\xaa]"=>"\xf0\x9f\x90\x9c", "[\xe3\x83\x9f\xe3\x83\x84\xe3\x83\x90\xe3\x83\x81]"=>"\xf0\x9f\x90\x9d", "[\xe3\x81\xa6\xe3\x82\x93\xe3\x81\xa8\xe3\x81\x86\xe8\x99\xab]"=>"\xf0\x9f\x90\x9e", "\xee\x94\xa2"=>"\xf0\x9f\x90\xa0",
+ "\xee\x80\x99"=>"\xf0\x9f\x8e\xa3", "[\xe3\x82\xab\xe3\x83\xa1]"=>"\xf0\x9f\x90\xa2", "\xee\x94\xa3"=>"\xf0\x9f\x90\xa3", "\xee\x94\xa1"=>"\xf0\x9f\x90\xa6", "\xee\x81\x95"=>"\xf0\x9f\x90\xa7",
+ "\xee\x81\x92"=>"\xf0\x9f\x90\xb6", "\xee\x94\xa0"=>"\xf0\x9f\x90\xac", "\xee\x81\x93"=>"\xf0\x9f\x90\xad", "\xee\x81\x90"=>"\xf0\x9f\x90\xaf", "\xee\x81\x8f"=>"\xf0\x9f\x90\xb1",
+ "\xee\x81\x94"=>"\xf0\x9f\x90\xb3", "\xee\x80\x9a"=>"\xf0\x9f\x90\xb4", "\xee\x84\x89"=>"\xf0\x9f\x90\xb5", "\xee\x84\x8b"=>"\xf0\x9f\x90\xbd", "\xee\x81\x91"=>"\xf0\x9f\x90\xbb",
+ "\xee\x94\xa4"=>"\xf0\x9f\x90\xb9", "\xee\x94\xaa"=>"\xf0\x9f\x90\xba", "\xee\x94\xab"=>"\xf0\x9f\x90\xae", "\xee\x94\xac"=>"\xf0\x9f\x90\xb0", "\xee\x94\xb1"=>"\xf0\x9f\x90\xb8",
+ "\xee\x94\xb6"=>"\xf0\x9f\x91\xa3", "[\xe8\xbe\xb0]"=>"\xf0\x9f\x90\xb2", "[\xe3\x83\x91\xe3\x83\xb3\xe3\x83\x80]"=>"\xf0\x9f\x90\xbc", "\xee\x81\x99"=>"\xf0\x9f\x98\xa0", "\xee\x90\x83"=>"\xf0\x9f\x99\x8d",
+ "\xee\x90\x90"=>"\xf0\x9f\x98\xb2", "\xee\x81\x98"=>"\xf0\x9f\x98\x9e", "\xee\x90\x86"=>"\xf0\x9f\x98\xab", "\xee\x90\x8f"=>"\xf0\x9f\x98\xb0", "\xee\x90\x8e"=>"\xf0\x9f\x98\x92",
+ "\xee\x84\x86"=>"\xf0\x9f\x98\xbb", "\xee\x90\x84"=>"\xf0\x9f\x98\xbc", "\xee\x84\x85"=>"\xf0\x9f\x98\x9c", "\xee\x81\x96"=>"\xf0\x9f\x98\x8a", "\xee\x90\x98"=>"\xf0\x9f\x98\xbd",
+ "\xee\x90\x97"=>"\xf0\x9f\x98\x9a", "\xee\x90\x8c"=>"\xf0\x9f\x98\xb7", "\xee\x90\x8d"=>"\xf0\x9f\x98\xb3", "\xee\x81\x97"=>"\xf0\x9f\x98\xba", "\xee\x90\x95\xee\x8c\xb1"=>"\xf0\x9f\x98\x85",
+ "\xee\x90\x8a"=>"\xf0\x9f\x98\x8c", "\xee\x90\x92"=>"\xf0\x9f\x98\xb9", "\xee\x90\x94"=>"\xe2\x98\xba", "\xee\x90\x95"=>"\xf0\x9f\x98\x84", "\xee\x90\x93"=>"\xf0\x9f\x98\xbf",
+ "\xee\x90\x91"=>"\xf0\x9f\x98\xad", "\xee\x90\x8b"=>"\xf0\x9f\x98\xa8", "\xee\x90\x96"=>"\xf0\x9f\x99\x8e", "\xee\x90\x87"=>"\xf0\x9f\x92\xab", "\xee\x84\x87"=>"\xf0\x9f\x98\xb1",
+ "\xee\x90\x88"=>"\xf0\x9f\x98\xaa", "\xee\x90\x82"=>"\xf0\x9f\x98\x8f", "\xee\x84\x88"=>"\xf0\x9f\x98\x93", "\xee\x90\x81"=>"\xf0\x9f\x98\xa5", "\xee\x90\x85"=>"\xf0\x9f\x98\x89",
+ "\xee\x90\xa3"=>"\xf0\x9f\x99\x85", "\xee\x90\xa4"=>"\xf0\x9f\x99\x86", "\xee\x90\xa6"=>"\xf0\x9f\x99\x87", "(/_\xef\xbc\xbc)"=>"\xf0\x9f\x99\x88", "(\xe3\x83\xbb\xc3\x97\xe3\x83\xbb)"=>"\xf0\x9f\x99\x8a",
+ "|(\xe3\x83\xbb\xc3\x97\xe3\x83\xbb)|"=>"\xf0\x9f\x99\x89", "\xee\x80\x92"=>"\xe2\x9c\x8b", "\xee\x90\xa7"=>"\xf0\x9f\x99\x8c", "\xee\x90\x9d"=>"\xf0\x9f\x99\x8f", "\xee\x80\xb6"=>"\xf0\x9f\x8f\xa1",
+ "\xee\x80\xb8"=>"\xf0\x9f\x8f\xa2", "\xee\x85\x93"=>"\xf0\x9f\x8f\xa3", "\xee\x85\x95"=>"\xf0\x9f\x8f\xa5", "\xee\x85\x8d"=>"\xf0\x9f\x8f\xa6", "\xee\x85\x94"=>"\xf0\x9f\x8f\xa7",
+ "\xee\x85\x98"=>"\xf0\x9f\x8f\xa8", "\xee\x94\x81"=>"\xf0\x9f\x8f\xa9", "\xee\x85\x96"=>"\xf0\x9f\x8f\xaa", "\xee\x85\x97"=>"\xf0\x9f\x8f\xab", "\xee\x80\xb7"=>"\xe2\x9b\xaa",
+ "\xee\x84\xa1"=>"\xe2\x9b\xb2", "\xee\x94\x84"=>"\xf0\x9f\x8f\xac", "\xee\x94\x85"=>"\xf0\x9f\x8f\xaf", "\xee\x94\x86"=>"\xf0\x9f\x8f\xb0", "\xee\x94\x88"=>"\xf0\x9f\x8f\xad",
+ "\xee\x88\x82"=>"\xf0\x9f\x9a\xa2", "\xee\x8c\x8b"=>"\xf0\x9f\x8d\xb6", "\xee\x80\xbb"=>"\xf0\x9f\x97\xbb", "\xee\x94\x89"=>"\xf0\x9f\x97\xbc", "\xee\x94\x9d"=>"\xf0\x9f\x97\xbd",
+ "[\xe6\x97\xa5\xe6\x9c\xac\xe5\x9c\xb0\xe5\x9b\xb3]"=>"\xf0\x9f\x97\xbe", "[\xe3\x83\xa2\xe3\x82\xa2\xe3\x82\xa4]"=>"\xf0\x9f\x97\xbf", "\xee\x80\x87"=>"\xf0\x9f\x91\x9f", "\xee\x84\xbe"=>"\xf0\x9f\x91\xa0", "\xee\x8c\x9a"=>"\xf0\x9f\x91\xa1",
+ "\xee\x8c\x9b"=>"\xf0\x9f\x91\xa2", "[\xe3\x83\xa1\xe3\x82\xac\xe3\x83\x8d]"=>"\xf0\x9f\x91\x93", "\xee\x80\x86"=>"\xf0\x9f\x91\x9a", "[\xe3\x82\xb8\xe3\x83\xbc\xe3\x83\xb3\xe3\x82\xba]"=>"\xf0\x9f\x91\x96", "\xee\x84\x8e"=>"\xf0\x9f\x91\x91",
+ "\xee\x8c\x82"=>"\xf0\x9f\x91\x94", "\xee\x8c\x98"=>"\xf0\x9f\x91\x92", "\xee\x8c\x99"=>"\xf0\x9f\x91\x97", "\xee\x8c\xa1"=>"\xf0\x9f\x91\x98", "\xee\x8c\xa2"=>"\xf0\x9f\x91\x99",
+ "[\xe8\xb2\xa1\xe5\xb8\x83]"=>"\xf0\x9f\x91\x9b", "\xee\x8c\xa3"=>"\xf0\x9f\x91\x9c", "[\xe3\x81\xb5\xe3\x81\x8f\xe3\x82\x8d]"=>"\xf0\x9f\x91\x9d", "\xee\x84\xaf"=>"\xf0\x9f\x92\xb5", "\xee\x85\x89"=>"\xf0\x9f\x92\xb1",
+ "\xee\x85\x8a"=>"\xf0\x9f\x93\x88", "[\xe3\x82\xab\xe3\x83\xbc\xe3\x83\x89]"=>"\xf0\x9f\x92\xb3", "\xef\xbf\xa5"=>"\xf0\x9f\x92\xb4", "[\xe9\xa3\x9b\xe3\x82\x93\xe3\x81\xa7\xe3\x81\x84\xe3\x81\x8f\xe3\x81\x8a\xe9\x87\x91]"=>"\xf0\x9f\x92\xb8", "\xee\x94\x93"=>"\xf0\x9f\x87\xa8\xf0\x9f\x87\xb3",
+ "\xee\x94\x8e"=>"\xf0\x9f\x87\xa9\xf0\x9f\x87\xaa", "\xee\x94\x91"=>"\xf0\x9f\x87\xaa\xf0\x9f\x87\xb8", "\xee\x94\x8d"=>"\xf0\x9f\x87\xab\xf0\x9f\x87\xb7", "\xee\x94\x90"=>"\xf0\x9f\x87\xac\xf0\x9f\x87\xa7", "\xee\x94\x8f"=>"\xf0\x9f\x87\xae\xf0\x9f\x87\xb9",
+ "\xee\x94\x8b"=>"\xf0\x9f\x87\xaf\xf0\x9f\x87\xb5", "\xee\x94\x94"=>"\xf0\x9f\x87\xb0\xf0\x9f\x87\xb7", "\xee\x94\x92"=>"\xf0\x9f\x87\xb7\xf0\x9f\x87\xba", "\xee\x94\x8c"=>"\xf0\x9f\x87\xba\xf0\x9f\x87\xb8", "\xee\x84\x9d"=>"\xf0\x9f\x94\xa5",
+ "[\xe6\x87\x90\xe4\xb8\xad\xe9\x9b\xbb\xe7\x81\xaf]"=>"\xf0\x9f\x94\xa6", "[\xe3\x83\xac\xe3\x83\xb3\xe3\x83\x81]"=>"\xf0\x9f\x94\xa7", "\xee\x84\x96"=>"\xf0\x9f\x94\xa8", "[\xe3\x83\x8d\xe3\x82\xb8]"=>"\xf0\x9f\x94\xa9", "[\xe5\x8c\x85\xe4\xb8\x81]"=>"\xf0\x9f\x94\xaa",
+ "\xee\x84\x93"=>"\xf0\x9f\x94\xab", "\xee\x88\xbe"=>"\xf0\x9f\x94\xaf", "\xee\x88\x89"=>"\xf0\x9f\x94\xb0", "\xee\x80\xb1"=>"\xf0\x9f\x94\xb1", "\xee\x84\xbb"=>"\xf0\x9f\x92\x89",
+ "\xee\x8c\x8f"=>"\xf0\x9f\x92\x8a", "\xee\x94\xb2"=>"\xf0\x9f\x85\xb0", "\xee\x94\xb3"=>"\xf0\x9f\x85\xb1", "\xee\x94\xb4"=>"\xf0\x9f\x86\x8e", "\xee\x94\xb5"=>"\xf0\x9f\x85\xbe",
+ "\xee\x8c\x94"=>"\xf0\x9f\x8e\x80", "\xee\x84\x92"=>"\xf0\x9f\x93\xa6", "\xee\x8d\x8b"=>"\xf0\x9f\x8e\x82", "\xee\x80\xb3"=>"\xf0\x9f\x8e\x84", "\xee\x91\x88"=>"\xf0\x9f\x8e\x85",
+ "\xee\x85\x83"=>"\xf0\x9f\x8e\x8c", "\xee\x84\x97"=>"\xf0\x9f\x8e\x86", "\xee\x8c\x90"=>"\xf0\x9f\x8e\x88", "\xee\x8c\x92"=>"\xf0\x9f\x8e\x89", "\xee\x90\xb6"=>"\xf0\x9f\x8e\x8d",
+ "\xee\x90\xb8"=>"\xf0\x9f\x8e\x8e", "\xee\x90\xb9"=>"\xf0\x9f\x8e\x93", "\xee\x90\xba"=>"\xf0\x9f\x8e\x92", "\xee\x90\xbb"=>"\xf0\x9f\x8e\x8f", "\xee\x91\x80"=>"\xf0\x9f\x8e\x87",
+ "\xee\x91\x82"=>"\xf0\x9f\x8e\x90", "\xee\x91\x85"=>"\xf0\x9f\x8e\x83", "[\xe3\x82\xaa\xe3\x83\xa1\xe3\x83\x87\xe3\x83\x88\xe3\x82\xa6]"=>"\xf0\x9f\x8e\x8a", "[\xe4\xb8\x83\xe5\xa4\x95]"=>"\xf0\x9f\x8e\x8b", "\xee\x91\x86"=>"\xf0\x9f\x8e\x91",
+ "[\xe3\x83\x9d\xe3\x82\xb1\xe3\x83\x99\xe3\x83\xab]"=>"\xf0\x9f\x93\x9f", "\xee\x80\x89"=>"\xf0\x9f\x93\x9e", "\xee\x80\x8a"=>"\xf0\x9f\x93\xb1", "\xee\x84\x84"=>"\xf0\x9f\x93\xb2", "\xee\x8c\x81"=>"\xf0\x9f\x93\x91",
+ "\xee\x80\x8b"=>"\xf0\x9f\x93\xa0", "\xee\x84\x83"=>"\xf0\x9f\x93\xa7", "\xee\x84\x81"=>"\xf0\x9f\x93\xab", "\xee\x84\x82"=>"\xf0\x9f\x93\xae", "[\xe6\x96\xb0\xe8\x81\x9e]"=>"\xf0\x9f\x93\xb0",
+ "\xee\x85\x82"=>"\xf0\x9f\x93\xa2", "\xee\x8c\x97"=>"\xf0\x9f\x93\xa3", "\xee\x85\x8b"=>"\xf0\x9f\x93\xa1", "[\xe9\x80\x81\xe4\xbf\xa1BOX]"=>"\xf0\x9f\x93\xa4", "[\xe5\x8f\x97\xe4\xbf\xa1BOX]"=>"\xf0\x9f\x93\xa5",
+ "[ABCD]"=>"\xf0\x9f\x94\xa0", "[abcd]"=>"\xf0\x9f\x94\xa1", "[1234]"=>"\xf0\x9f\x94\xa2", "[\xe8\xa8\x98\xe5\x8f\xb7]"=>"\xf0\x9f\x94\xa3", "[ABC]"=>"\xf0\x9f\x94\xa4",
+ "[\xe3\x83\x9a\xe3\x83\xb3]"=>"\xe2\x9c\x92", "\xee\x84\x9f"=>"\xf0\x9f\x92\xba", "\xee\x80\x8c"=>"\xf0\x9f\x92\xbb", "[\xe3\x82\xaf\xe3\x83\xaa\xe3\x83\x83\xe3\x83\x97]"=>"\xf0\x9f\x93\x8e", "\xee\x84\x9e"=>"\xf0\x9f\x92\xbc",
+ "\xee\x8c\x96"=>"\xf0\x9f\x92\xbe", "\xee\x84\xa6"=>"\xf0\x9f\x92\xbf", "\xee\x84\xa7"=>"\xf0\x9f\x93\x80", "\xee\x8c\x93"=>"\xe2\x9c\x82", "[\xe7\x94\xbb\xe3\x81\xb3\xe3\x82\x87\xe3\x81\x86]"=>"\xf0\x9f\x93\x8c",
+ "[\xe3\x82\xab\xe3\x83\xac\xe3\x83\xb3\xe3\x83\x80\xe3\x83\xbc]"=>"\xf0\x9f\x93\x86", "[\xe3\x83\x95\xe3\x82\xa9\xe3\x83\xab\xe3\x83\x80]"=>"\xf0\x9f\x93\x82", "\xee\x85\x88"=>"\xf0\x9f\x93\x92", "[\xe5\x90\x8d\xe6\x9c\xad]"=>"\xf0\x9f\x93\x9b", "[\xe3\x82\xb9\xe3\x82\xaf\xe3\x83\xad\xe3\x83\xbc\xe3\x83\xab]"=>"\xf0\x9f\x93\x9c",
+ "[\xe3\x82\xb0\xe3\x83\xa9\xe3\x83\x95]"=>"\xf0\x9f\x93\x89", "[\xe5\xae\x9a\xe8\xa6\x8f]"=>"\xf0\x9f\x93\x8f", "[\xe4\xb8\x89\xe8\xa7\x92\xe5\xae\x9a\xe8\xa6\x8f]"=>"\xf0\x9f\x93\x90", "\xee\x80\x96"=>"\xe2\x9a\xbe", "\xee\x80\x94"=>"\xe2\x9b\xb3",
+ "\xee\x80\x95"=>"\xf0\x9f\x8e\xbe", "\xee\x80\x98"=>"\xe2\x9a\xbd", "\xee\x80\x93"=>"\xf0\x9f\x8e\xbf", "\xee\x90\xaa"=>"\xf0\x9f\x8f\x80", "\xee\x84\xb2"=>"\xf0\x9f\x8f\x81",
+ "[\xe3\x82\xb9\xe3\x83\x8e\xe3\x83\x9c]"=>"\xf0\x9f\x8f\x82", "\xee\x84\x95"=>"\xf0\x9f\x8f\x83", "\xee\x80\x97"=>"\xf0\x9f\x8f\x84", "\xee\x84\xb1"=>"\xf0\x9f\x8f\x86", "\xee\x90\xab"=>"\xf0\x9f\x8f\x88",
+ "\xee\x90\xad"=>"\xf0\x9f\x8f\x8a", "\xee\x80\x9e"=>"\xf0\x9f\x9a\x83", "\xee\x90\xb4"=>"\xe2\x93\x82", "\xee\x90\xb5"=>"\xf0\x9f\x9a\x84", "\xee\x80\x9f"=>"\xf0\x9f\x9a\x85",
+ "\xee\x80\x9b"=>"\xf0\x9f\x9a\x97", "\xee\x90\xae"=>"\xf0\x9f\x9a\x99", "\xee\x85\x99"=>"\xf0\x9f\x9a\x8c", "\xee\x85\x90"=>"\xf0\x9f\x9a\x8f", "\xee\x80\x9d"=>"\xe2\x9c\x88",
+ "\xee\x80\x9c"=>"\xe2\x9b\xb5", "\xee\x80\xb9"=>"\xf0\x9f\x9a\x89", "\xee\x84\x8d"=>"\xf0\x9f\x9a\x80", "\xee\x84\xb5"=>"\xf0\x9f\x9a\xa4", "\xee\x85\x9a"=>"\xf0\x9f\x9a\x95",
+ "\xee\x90\xaf"=>"\xf0\x9f\x9a\x9a", "\xee\x90\xb0"=>"\xf0\x9f\x9a\x92", "\xee\x90\xb1"=>"\xf0\x9f\x9a\x91", "\xee\x90\xb2"=>"\xf0\x9f\x9a\xa8", "\xee\x80\xba"=>"\xe2\x9b\xbd",
+ "\xee\x85\x8f"=>"\xf0\x9f\x85\xbf", "\xee\x85\x8e"=>"\xf0\x9f\x9a\xa5", "\xee\x84\xb7"=>"\xe2\x9b\x94", "\xee\x84\xa3"=>"\xe2\x99\xa8", "\xee\x84\xa2"=>"\xe2\x9b\xba",
+ "\xee\x84\xa4"=>"\xf0\x9f\x8e\xa1", "\xee\x90\xb3"=>"\xf0\x9f\x8e\xa2", "\xee\x80\xbc"=>"\xf0\x9f\x8e\xa4", "\xee\x80\xbd"=>"\xf0\x9f\x93\xb9", "\xee\x94\x87"=>"\xf0\x9f\x8e\xa6",
+ "\xee\x8c\x8a"=>"\xf0\x9f\x8e\xa7", "\xee\x94\x82"=>"\xf0\x9f\x8e\xa8", "\xee\x94\x83"=>"\xf0\x9f\x8e\xad", "[\xe3\x82\xa4\xe3\x83\x99\xe3\x83\xb3\xe3\x83\x88]"=>"\xf0\x9f\x8e\xaa", "\xee\x84\xa5"=>"\xf0\x9f\x8e\xab",
+ "\xee\x8c\xa4"=>"\xf0\x9f\x8e\xac", "[\xe3\x82\xb2\xe3\x83\xbc\xe3\x83\xa0]"=>"\xf0\x9f\x8e\xae", "\xee\x84\xad"=>"\xf0\x9f\x80\x84", "\xee\x84\xb0"=>"\xf0\x9f\x8e\xaf", "\xee\x84\xb3"=>"\xf0\x9f\x8e\xb0",
+ "\xee\x90\xac"=>"\xf0\x9f\x8e\xb1", "[\xe3\x82\xb5\xe3\x82\xa4\xe3\x82\xb3\xe3\x83\xad]"=>"\xf0\x9f\x8e\xb2", "[\xe3\x83\x9c\xe3\x83\xbc\xe3\x83\xaa\xe3\x83\xb3\xe3\x82\xb0]"=>"\xf0\x9f\x8e\xb3", "[\xe8\x8a\xb1\xe6\x9c\xad]"=>"\xf0\x9f\x8e\xb4", "[\xe3\x82\xb8\xe3\x83\xa7\xe3\x83\xbc\xe3\x82\xab\xe3\x83\xbc]"=>"\xf0\x9f\x83\x8f",
+ "\xee\x80\xbe"=>"\xf0\x9f\x8e\xb5", "\xee\x8c\xa6"=>"\xf0\x9f\x8e\xbc", "\xee\x81\x80"=>"\xf0\x9f\x8e\xb7", "\xee\x81\x81"=>"\xf0\x9f\x8e\xb8", "[\xe3\x83\x94\xe3\x82\xa2\xe3\x83\x8e]"=>"\xf0\x9f\x8e\xb9",
+ "\xee\x81\x82"=>"\xf0\x9f\x8e\xba", "[\xe3\x83\x90\xe3\x82\xa4\xe3\x82\xaa\xe3\x83\xaa\xe3\x83\xb3]"=>"\xf0\x9f\x8e\xbb", "\xee\x84\xac"=>"\xe3\x80\xbd", "\xee\x80\x88"=>"\xf0\x9f\x93\xb7", "\xee\x84\xaa"=>"\xf0\x9f\x93\xba",
+ "\xee\x84\xa8"=>"\xf0\x9f\x93\xbb", "\xee\x84\xa9"=>"\xf0\x9f\x93\xbc", "\xee\x80\x83"=>"\xf0\x9f\x92\x8b", "\xee\x84\x83\xee\x8c\xa8"=>"\xf0\x9f\x92\x8c", "\xee\x80\xb4"=>"\xf0\x9f\x92\x8d",
+ "\xee\x80\xb5"=>"\xf0\x9f\x92\x8e", "\xee\x84\x91"=>"\xf0\x9f\x92\x8f", "\xee\x8c\x86"=>"\xf0\x9f\x92\x90", "\xee\x90\xa5"=>"\xf0\x9f\x92\x91", "\xee\x90\xbd"=>"\xf0\x9f\x92\x92",
+ "\xee\x88\x87"=>"\xf0\x9f\x94\x9e", "\xee\x89\x8e"=>"\xc2\xa9", "\xee\x89\x8f"=>"\xc2\xae", "\xee\x94\xb7"=>"\xe2\x84\xa2", "[\xef\xbd\x89]"=>"\xe2\x84\xb9",
+ "\xee\x88\x90"=>"#\xe2\x83\xa3", "\xee\x88\x9c"=>"1\xe2\x83\xa3", "\xee\x88\x9d"=>"2\xe2\x83\xa3", "\xee\x88\x9e"=>"3\xe2\x83\xa3", "\xee\x88\x9f"=>"4\xe2\x83\xa3",
+ "\xee\x88\xa0"=>"5\xe2\x83\xa3", "\xee\x88\xa1"=>"6\xe2\x83\xa3", "\xee\x88\xa2"=>"7\xe2\x83\xa3", "\xee\x88\xa3"=>"8\xe2\x83\xa3", "\xee\x88\xa4"=>"9\xe2\x83\xa3",
+ "\xee\x88\xa5"=>"0\xe2\x83\xa3", "[10]"=>"\xf0\x9f\x94\x9f", "\xee\x88\x8b"=>"\xf0\x9f\x93\xb6", "\xee\x89\x90"=>"\xf0\x9f\x93\xb3", "\xee\x89\x91"=>"\xf0\x9f\x93\xb4",
+ "\xee\x84\xa0"=>"\xf0\x9f\x8d\x94", "\xee\x8d\x82"=>"\xf0\x9f\x8d\x99", "\xee\x81\x86"=>"\xf0\x9f\x8d\xb0", "\xee\x8d\x80"=>"\xf0\x9f\x8d\x9c", "\xee\x8c\xb9"=>"\xf0\x9f\x8d\x9e",
+ "\xee\x85\x87"=>"\xf0\x9f\x8d\xb3", "\xee\x8c\xba"=>"\xf0\x9f\x8d\xa6", "\xee\x8c\xbb"=>"\xf0\x9f\x8d\x9f", "\xee\x8c\xbc"=>"\xf0\x9f\x8d\xa1", "\xee\x8c\xbd"=>"\xf0\x9f\x8d\x98",
+ "\xee\x8c\xbe"=>"\xf0\x9f\x8d\x9a", "\xee\x8c\xbf"=>"\xf0\x9f\x8d\x9d", "\xee\x8d\x81"=>"\xf0\x9f\x8d\x9b", "\xee\x8d\x83"=>"\xf0\x9f\x8d\xa2", "\xee\x8d\x84"=>"\xf0\x9f\x8d\xa3",
+ "\xee\x8d\x8c"=>"\xf0\x9f\x8d\xb1", "\xee\x8d\x8d"=>"\xf0\x9f\x8d\xb2", "\xee\x90\xbf"=>"\xf0\x9f\x8d\xa7", "[\xe8\x82\x89]"=>"\xf0\x9f\x8d\x96", "[\xe3\x81\xaa\xe3\x82\x8b\xe3\x81\xa8]"=>"\xf0\x9f\x8d\xa5",
+ "[\xe3\x82\x84\xe3\x81\x8d\xe3\x81\x84\xe3\x82\x82]"=>"\xf0\x9f\x8d\xa0", "[\xe3\x83\x94\xe3\x82\xb6]"=>"\xf0\x9f\x8d\x95", "[\xe3\x83\x81\xe3\x82\xad\xe3\x83\xb3]"=>"\xf0\x9f\x8d\x97", "[\xe3\x82\xa2\xe3\x82\xa4\xe3\x82\xb9\xe3\x82\xaf\xe3\x83\xaa\xe3\x83\xbc\xe3\x83\xa0]"=>"\xf0\x9f\x8d\xa8", "[\xe3\x83\x89\xe3\x83\xbc\xe3\x83\x8a\xe3\x83\x84]"=>"\xf0\x9f\x8d\xa9",
+ "[\xe3\x82\xaf\xe3\x83\x83\xe3\x82\xad\xe3\x83\xbc]"=>"\xf0\x9f\x8d\xaa", "[\xe3\x83\x81\xe3\x83\xa7\xe3\x82\xb3]"=>"\xf0\x9f\x8d\xab", "[\xe3\x82\xad\xe3\x83\xa3\xe3\x83\xb3\xe3\x83\x87\xe3\x82\xa3]"=>"\xf0\x9f\x8d\xad", "[\xe3\x83\x97\xe3\x83\xaa\xe3\x83\xb3]"=>"\xf0\x9f\x8d\xae", "[\xe3\x83\x8f\xe3\x83\x81\xe3\x83\x9f\xe3\x83\x84]"=>"\xf0\x9f\x8d\xaf",
+ "[\xe3\x82\xa8\xe3\x83\x93\xe3\x83\x95\xe3\x83\xa9\xe3\x82\xa4]"=>"\xf0\x9f\x8d\xa4", "\xee\x81\x83"=>"\xf0\x9f\x8d\xb4", "\xee\x81\x85"=>"\xe2\x98\x95", "\xee\x81\x84"=>"\xf0\x9f\x8d\xb9", "\xee\x81\x87"=>"\xf0\x9f\x8d\xba",
+ "\xee\x8c\xb8"=>"\xf0\x9f\x8d\xb5", "\xee\x8c\x8c"=>"\xf0\x9f\x8d\xbb", "\xee\x88\xb6"=>"\xe2\xa4\xb4", "\xee\x88\xb8"=>"\xe2\xa4\xb5", "\xee\x88\xb7"=>"\xe2\x86\x96",
+ "\xee\x88\xb9"=>"\xe2\x86\x99", "\xe2\x87\x94"=>"\xe2\x86\x94", "\xe2\x86\x91\xe2\x86\x93"=>"\xf0\x9f\x94\x83", "\xee\x88\xb2"=>"\xe2\xac\x86", "\xee\x88\xb3"=>"\xe2\xac\x87",
+ "\xee\x88\xb4"=>"\xe2\x9e\xa1", "\xee\x88\xb5"=>"\xf0\x9f\x94\x99", "\xee\x88\xba"=>"\xe2\x96\xb6", "\xee\x88\xbb"=>"\xe2\x97\x80", "\xee\x88\xbc"=>"\xe2\x8f\xa9",
+ "\xee\x88\xbd"=>"\xe2\x8f\xaa", "\xe2\x96\xb2"=>"\xf0\x9f\x94\xbc", "\xe2\x96\xbc"=>"\xf0\x9f\x94\xbd", "\xee\x8c\xb2"=>"\xe2\xad\x95", "\xee\x8c\xb3"=>"\xe2\x9c\x96",
+ "\xee\x80\xa1"=>"\xe2\x9d\x97", "\xef\xbc\x81\xef\xbc\x9f"=>"\xe2\x81\x89", "\xef\xbc\x81\xef\xbc\x81"=>"\xe2\x80\xbc", "\xee\x80\xa0"=>"\xe2\x9d\x93", "\xee\x8c\xb6"=>"\xe2\x9d\x94",
+ "\xee\x8c\xb7"=>"\xe2\x9d\x95", "\xef\xbd\x9e"=>"\xe2\x9e\xb0", "\xee\x88\x91"=>"\xe2\x9e\xbf", "\xee\x80\xa2"=>"\xe2\x9d\xa4", "\xee\x8c\xa7"=>"\xf0\x9f\x92\x9e",
+ "\xee\x80\xa3"=>"\xf0\x9f\x92\x94", "\xee\x8c\xa8"=>"\xf0\x9f\x92\x97", "\xee\x8c\xa9"=>"\xf0\x9f\x92\x98", "\xee\x8c\xaa"=>"\xf0\x9f\x92\x99", "\xee\x8c\xab"=>"\xf0\x9f\x92\x9a",
+ "\xee\x8c\xac"=>"\xf0\x9f\x92\x9b", "\xee\x8c\xad"=>"\xf0\x9f\x92\x9c", "\xee\x90\xb7"=>"\xf0\x9f\x92\x9d", "\xee\x88\x84"=>"\xf0\x9f\x92\x9f", "\xee\x88\x8c"=>"\xe2\x99\xa5",
+ "\xee\x88\x8e"=>"\xe2\x99\xa0", "\xee\x88\x8d"=>"\xe2\x99\xa6", "\xee\x88\x8f"=>"\xe2\x99\xa3", "\xee\x8c\x8e"=>"\xf0\x9f\x9a\xac", "\xee\x88\x88"=>"\xf0\x9f\x9a\xad",
+ "\xee\x88\x8a"=>"\xe2\x99\xbf", "[\xe6\x97\x97]"=>"\xf0\x9f\x9a\xa9", "\xee\x89\x92"=>"\xe2\x9a\xa0", "\xee\x84\xb6"=>"\xf0\x9f\x9a\xb2", "\xee\x88\x81"=>"\xf0\x9f\x9a\xb6",
+ "\xee\x84\xb8"=>"\xf0\x9f\x9a\xb9", "\xee\x84\xb9"=>"\xf0\x9f\x9a\xba", "\xee\x84\xbf"=>"\xf0\x9f\x9b\x80", "\xee\x85\x91"=>"\xf0\x9f\x9a\xbb", "\xee\x85\x80"=>"\xf0\x9f\x9a\xbd",
+ "\xee\x8c\x89"=>"\xf0\x9f\x9a\xbe", "\xee\x84\xba"=>"\xf0\x9f\x9a\xbc", "[\xe3\x83\x89\xe3\x82\xa2]"=>"\xf0\x9f\x9a\xaa", "[\xe7\xa6\x81\xe6\xad\xa2]"=>"\xf0\x9f\x9a\xab", "[\xe3\x83\x81\xe3\x82\xa7\xe3\x83\x83\xe3\x82\xaf\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]"=>"\xe2\x9c\x85",
+ "[CL]"=>"\xf0\x9f\x86\x91", "\xee\x88\x94"=>"\xf0\x9f\x86\x92", "[FREE]"=>"\xf0\x9f\x86\x93", "\xee\x88\xa9"=>"\xf0\x9f\x86\x94", "\xee\x88\x92"=>"\xf0\x9f\x86\x95",
+ "[NG]"=>"\xf0\x9f\x86\x96", "\xee\x89\x8d"=>"\xf0\x9f\x86\x97", "[SOS]"=>"\xf0\x9f\x86\x98", "\xee\x88\x93"=>"\xf0\x9f\x86\x99", "\xee\x84\xae"=>"\xf0\x9f\x86\x9a",
+ "\xee\x88\x83"=>"\xf0\x9f\x88\x81", "\xee\x88\xa8"=>"\xf0\x9f\x88\x82", "[\xe7\xa6\x81]"=>"\xf0\x9f\x88\xb2", "\xee\x88\xab"=>"\xf0\x9f\x88\xb3", "[\xe5\x90\x88]"=>"\xf0\x9f\x88\xb4",
+ "\xee\x88\xaa"=>"\xf0\x9f\x88\xb5", "\xee\x88\x95"=>"\xf0\x9f\x88\xb6", "\xee\x88\x96"=>"\xf0\x9f\x88\x9a", "\xee\x88\x97"=>"\xf0\x9f\x88\xb7", "\xee\x88\x98"=>"\xf0\x9f\x88\xb8",
+ "\xee\x88\xa7"=>"\xf0\x9f\x88\xb9", "\xee\x88\xac"=>"\xf0\x9f\x88\xaf", "\xee\x88\xad"=>"\xf0\x9f\x88\xba", "\xee\x8c\x95"=>"\xe3\x8a\x99", "\xee\x8c\x8d"=>"\xe3\x8a\x97",
+ "\xee\x88\xa6"=>"\xf0\x9f\x89\x90", "[\xe5\x8f\xaf]"=>"\xf0\x9f\x89\x91", "[\xef\xbc\x8b]"=>"\xe2\x9e\x95", "[\xef\xbc\x8d]"=>"\xe2\x9e\x96", "[\xc3\xb7]"=>"\xe2\x9e\x97",
+ "\xee\x84\x8f"=>"\xf0\x9f\x92\xa1", "\xee\x8c\xb4"=>"\xf0\x9f\x92\xa2", "\xee\x8c\x91"=>"\xf0\x9f\x92\xa3", "\xee\x84\xbc"=>"\xf0\x9f\x92\xa4", "[\xe3\x83\x89\xe3\x83\xb3\xe3\x83\x83]"=>"\xf0\x9f\x92\xa5",
+ "\xee\x8c\xb1"=>"\xf0\x9f\x92\xa7", "\xee\x8c\xb0"=>"\xf0\x9f\x92\xa8", "\xee\x81\x9a"=>"\xf0\x9f\x92\xa9", "\xee\x85\x8c"=>"\xf0\x9f\x92\xaa", "[\xe3\x83\x95\xe3\x82\xad\xe3\x83\x80\xe3\x82\xb7]"=>"\xf0\x9f\x92\xac",
+ "\xee\x8c\xae"=>"\xe2\x9d\x87", "\xee\x88\x85"=>"\xe2\x9c\xb4", "\xee\x88\x86"=>"\xe2\x9c\xb3", "\xee\x88\x99"=>"\xf0\x9f\x94\xb4", "\xee\x88\x9a"=>"\xe2\x97\xbc",
+ "\xee\x88\x9b"=>"\xf0\x9f\x94\xb9", "\xee\x8c\xaf"=>"\xe2\xad\x90", "[\xe8\x8a\xb1\xe4\xb8\xb8]"=>"\xf0\x9f\x92\xae", "[100\xe7\x82\xb9]"=>"\xf0\x9f\x92\xaf", "\xe2\x86\x90\xe2\x94\x98"=>"\xe2\x86\xa9",
+ "\xe2\x94\x94\xe2\x86\x92"=>"\xe2\x86\xaa", "\xee\x85\x81"=>"\xf0\x9f\x94\x8a", "[\xe9\x9b\xbb\xe6\xb1\xa0]"=>"\xf0\x9f\x94\x8b", "[\xe3\x82\xb3\xe3\x83\xb3\xe3\x82\xbb\xe3\x83\xb3\xe3\x83\x88]"=>"\xf0\x9f\x94\x8c", "\xee\x84\x94"=>"\xf0\x9f\x94\x8e",
+ "\xee\x85\x84"=>"\xf0\x9f\x94\x90", "\xee\x85\x85"=>"\xf0\x9f\x94\x93", "\xee\x80\xbf"=>"\xf0\x9f\x94\x91", "\xee\x8c\xa5"=>"\xf0\x9f\x94\x94", "[\xe3\x83\xa9\xe3\x82\xb8\xe3\x82\xaa\xe3\x83\x9c\xe3\x82\xbf\xe3\x83\xb3]"=>"\xf0\x9f\x94\x98",
+ "[\xe3\x83\x96\xe3\x83\x83\xe3\x82\xaf\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]"=>"\xf0\x9f\x94\x96", "[\xe3\x83\xaa\xe3\x83\xb3\xe3\x82\xaf]"=>"\xf0\x9f\x94\x97", "[end]"=>"\xf0\x9f\x94\x9a", "[ON]"=>"\xf0\x9f\x94\x9b", "[SOON]"=>"\xf0\x9f\x94\x9c",
+ "\xee\x89\x8c"=>"\xf0\x9f\x94\x9d", "\xee\x80\x90"=>"\xe2\x9c\x8a", "\xee\x80\x91"=>"\xe2\x9c\x8c", "\xee\x80\x8d"=>"\xf0\x9f\x91\x8a", "\xee\x80\x8e"=>"\xf0\x9f\x91\x8d",
+ "\xee\x80\x8f"=>"\xe2\x98\x9d", "\xee\x88\xae"=>"\xf0\x9f\x91\x86", "\xee\x88\xaf"=>"\xf0\x9f\x91\x87", "\xee\x88\xb0"=>"\xf0\x9f\x91\x88", "\xee\x88\xb1"=>"\xf0\x9f\x91\x89",
+ "\xee\x90\x9e"=>"\xf0\x9f\x91\x8b", "\xee\x90\x9f"=>"\xf0\x9f\x91\x8f", "\xee\x90\xa0"=>"\xf0\x9f\x91\x8c", "\xee\x90\xa1"=>"\xf0\x9f\x91\x8e", "\xee\x90\xa2"=>"\xf0\x9f\x91\x90",
+ ),
+ 'google_to_unified' => array(
+ "\xf3\xbe\x80\x80"=>"\xe2\x98\x80", "\xf3\xbe\x80\x81"=>"\xe2\x98\x81", "\xf3\xbe\x80\x82"=>"\xe2\x98\x94", "\xf3\xbe\x80\x83"=>"\xe2\x9b\x84",
+ "\xf3\xbe\x80\x84"=>"\xe2\x9a\xa1", "\xf3\xbe\x80\x85"=>"\xf0\x9f\x8c\x80", "\xf3\xbe\x80\x86"=>"\xf0\x9f\x8c\x81", "\xf3\xbe\x80\x87"=>"\xf0\x9f\x8c\x82", "\xf3\xbe\x80\x88"=>"\xf0\x9f\x8c\x83",
+ "\xf3\xbe\x80\x89"=>"\xf0\x9f\x8c\x84", "\xf3\xbe\x80\x8a"=>"\xf0\x9f\x8c\x85", "\xf3\xbe\x80\x8b"=>"\xf0\x9f\x8c\x86", "\xf3\xbe\x80\x8c"=>"\xf0\x9f\x8c\x87", "\xf3\xbe\x80\x8d"=>"\xf0\x9f\x8c\x88",
+ "\xf3\xbe\x80\x8e"=>"\xe2\x9d\x84", "\xf3\xbe\x80\x8f"=>"\xe2\x9b\x85", "\xf3\xbe\x80\x90"=>"\xf0\x9f\x8c\x89", "\xf3\xbe\x80\xb8"=>"\xf0\x9f\x8c\x8a", "\xf3\xbe\x80\xba"=>"\xf0\x9f\x8c\x8b",
+ "\xf3\xbe\x80\xbb"=>"\xf0\x9f\x8c\x8c", "\xf3\xbe\x80\xb9"=>"\xf0\x9f\x8c\x8f", "\xf3\xbe\x80\x91"=>"\xf0\x9f\x8c\x91", "\xf3\xbe\x80\x92"=>"\xf0\x9f\x8c\x94", "\xf3\xbe\x80\x93"=>"\xf0\x9f\x8c\x93",
+ "\xf3\xbe\x80\x94"=>"\xf0\x9f\x8c\x99", "\xf3\xbe\x80\x95"=>"\xf0\x9f\x8c\x95", "\xf3\xbe\x80\x96"=>"\xf0\x9f\x8c\x9b", "\xf3\xbe\xad\xa9"=>"\xf0\x9f\x8c\x9f", "\xf3\xbe\xad\xaa"=>"\xf0\x9f\x8c\xa0",
+ "\xf3\xbe\x80\x9e"=>"\xf0\x9f\x95\x90", "\xf3\xbe\x80\x9f"=>"\xf0\x9f\x95\x91", "\xf3\xbe\x80\xa0"=>"\xf0\x9f\x95\x92", "\xf3\xbe\x80\xa1"=>"\xf0\x9f\x95\x93", "\xf3\xbe\x80\xa2"=>"\xf0\x9f\x95\x94",
+ "\xf3\xbe\x80\xa3"=>"\xf0\x9f\x95\x95", "\xf3\xbe\x80\xa4"=>"\xf0\x9f\x95\x96", "\xf3\xbe\x80\xa5"=>"\xf0\x9f\x95\x97", "\xf3\xbe\x80\xa6"=>"\xf0\x9f\x95\x98", "\xf3\xbe\x80\xa7"=>"\xf0\x9f\x95\x99",
+ "\xf3\xbe\x80\xa8"=>"\xf0\x9f\x95\x9a", "\xf3\xbe\x80\xa9"=>"\xf0\x9f\x95\x9b", "\xf3\xbe\x80\x9d"=>"\xe2\x8c\x9a", "\xf3\xbe\x80\x9c"=>"\xe2\x8c\x9b", "\xf3\xbe\x80\xaa"=>"\xe2\x8f\xb0",
+ "\xf3\xbe\x80\x9b"=>"\xe2\x8f\xb3", "\xf3\xbe\x80\xab"=>"\xe2\x99\x88", "\xf3\xbe\x80\xac"=>"\xe2\x99\x89", "\xf3\xbe\x80\xad"=>"\xe2\x99\x8a", "\xf3\xbe\x80\xae"=>"\xe2\x99\x8b",
+ "\xf3\xbe\x80\xaf"=>"\xe2\x99\x8c", "\xf3\xbe\x80\xb0"=>"\xe2\x99\x8d", "\xf3\xbe\x80\xb1"=>"\xe2\x99\x8e", "\xf3\xbe\x80\xb2"=>"\xe2\x99\x8f", "\xf3\xbe\x80\xb3"=>"\xe2\x99\x90",
+ "\xf3\xbe\x80\xb4"=>"\xe2\x99\x91", "\xf3\xbe\x80\xb5"=>"\xe2\x99\x92", "\xf3\xbe\x80\xb6"=>"\xe2\x99\x93", "\xf3\xbe\x80\xb7"=>"\xe2\x9b\x8e", "\xf3\xbe\x80\xbc"=>"\xf0\x9f\x8d\x80",
+ "\xf3\xbe\x80\xbd"=>"\xf0\x9f\x8c\xb7", "\xf3\xbe\x80\xbe"=>"\xf0\x9f\x8c\xb1", "\xf3\xbe\x80\xbf"=>"\xf0\x9f\x8d\x81", "\xf3\xbe\x81\x80"=>"\xf0\x9f\x8c\xb8", "\xf3\xbe\x81\x81"=>"\xf0\x9f\x8c\xb9",
+ "\xf3\xbe\x81\x82"=>"\xf0\x9f\x8d\x82", "\xf3\xbe\x81\x83"=>"\xf0\x9f\x8d\x83", "\xf3\xbe\x81\x85"=>"\xf0\x9f\x8c\xba", "\xf3\xbe\x81\x86"=>"\xf0\x9f\x8c\xbb", "\xf3\xbe\x81\x87"=>"\xf0\x9f\x8c\xb4",
+ "\xf3\xbe\x81\x88"=>"\xf0\x9f\x8c\xb5", "\xf3\xbe\x81\x89"=>"\xf0\x9f\x8c\xbe", "\xf3\xbe\x81\x8a"=>"\xf0\x9f\x8c\xbd", "\xf3\xbe\x81\x8b"=>"\xf0\x9f\x8d\x84", "\xf3\xbe\x81\x8c"=>"\xf0\x9f\x8c\xb0",
+ "\xf3\xbe\x81\x8d"=>"\xf0\x9f\x8c\xbc", "\xf3\xbe\x81\x8e"=>"\xf0\x9f\x8c\xbf", "\xf3\xbe\x81\x8f"=>"\xf0\x9f\x8d\x92", "\xf3\xbe\x81\x90"=>"\xf0\x9f\x8d\x8c", "\xf3\xbe\x81\x91"=>"\xf0\x9f\x8d\x8e",
+ "\xf3\xbe\x81\x92"=>"\xf0\x9f\x8d\x8a", "\xf3\xbe\x81\x93"=>"\xf0\x9f\x8d\x93", "\xf3\xbe\x81\x94"=>"\xf0\x9f\x8d\x89", "\xf3\xbe\x81\x95"=>"\xf0\x9f\x8d\x85", "\xf3\xbe\x81\x96"=>"\xf0\x9f\x8d\x86",
+ "\xf3\xbe\x81\x97"=>"\xf0\x9f\x8d\x88", "\xf3\xbe\x81\x98"=>"\xf0\x9f\x8d\x8d", "\xf3\xbe\x81\x99"=>"\xf0\x9f\x8d\x87", "\xf3\xbe\x81\x9a"=>"\xf0\x9f\x8d\x91", "\xf3\xbe\x81\x9b"=>"\xf0\x9f\x8d\x8f",
+ "\xf3\xbe\x86\x90"=>"\xf0\x9f\x91\x80", "\xf3\xbe\x86\x91"=>"\xf0\x9f\x91\x82", "\xf3\xbe\x86\x92"=>"\xf0\x9f\x91\x83", "\xf3\xbe\x86\x93"=>"\xf0\x9f\x91\x84", "\xf3\xbe\x86\x94"=>"\xf0\x9f\x91\x85",
+ "\xf3\xbe\x86\x95"=>"\xf0\x9f\x92\x84", "\xf3\xbe\x86\x96"=>"\xf0\x9f\x92\x85", "\xf3\xbe\x86\x97"=>"\xf0\x9f\x92\x86", "\xf3\xbe\x86\x98"=>"\xf0\x9f\x92\x87", "\xf3\xbe\x86\x99"=>"\xf0\x9f\x92\x88",
+ "\xf3\xbe\x86\x9a"=>"\xf0\x9f\x91\xa4", "\xf3\xbe\x86\x9b"=>"\xf0\x9f\x91\xa6", "\xf3\xbe\x86\x9c"=>"\xf0\x9f\x91\xa7", "\xf3\xbe\x86\x9d"=>"\xf0\x9f\x91\xa8", "\xf3\xbe\x86\x9e"=>"\xf0\x9f\x91\xa9",
+ "\xf3\xbe\x86\x9f"=>"\xf0\x9f\x91\xaa", "\xf3\xbe\x86\xa0"=>"\xf0\x9f\x91\xab", "\xf3\xbe\x86\xa1"=>"\xf0\x9f\x91\xae", "\xf3\xbe\x86\xa2"=>"\xf0\x9f\x91\xaf", "\xf3\xbe\x86\xa3"=>"\xf0\x9f\x91\xb0",
+ "\xf3\xbe\x86\xa4"=>"\xf0\x9f\x91\xb1", "\xf3\xbe\x86\xa5"=>"\xf0\x9f\x91\xb2", "\xf3\xbe\x86\xa6"=>"\xf0\x9f\x91\xb3", "\xf3\xbe\x86\xa7"=>"\xf0\x9f\x91\xb4", "\xf3\xbe\x86\xa8"=>"\xf0\x9f\x91\xb5",
+ "\xf3\xbe\x86\xa9"=>"\xf0\x9f\x91\xb6", "\xf3\xbe\x86\xaa"=>"\xf0\x9f\x91\xb7", "\xf3\xbe\x86\xab"=>"\xf0\x9f\x91\xb8", "\xf3\xbe\x86\xac"=>"\xf0\x9f\x91\xb9", "\xf3\xbe\x86\xad"=>"\xf0\x9f\x91\xba",
+ "\xf3\xbe\x86\xae"=>"\xf0\x9f\x91\xbb", "\xf3\xbe\x86\xaf"=>"\xf0\x9f\x91\xbc", "\xf3\xbe\x86\xb0"=>"\xf0\x9f\x91\xbd", "\xf3\xbe\x86\xb1"=>"\xf0\x9f\x91\xbe", "\xf3\xbe\x86\xb2"=>"\xf0\x9f\x91\xbf",
+ "\xf3\xbe\x86\xb3"=>"\xf0\x9f\x92\x80", "\xf3\xbe\x86\xb4"=>"\xf0\x9f\x92\x81", "\xf3\xbe\x86\xb5"=>"\xf0\x9f\x92\x82", "\xf3\xbe\x86\xb6"=>"\xf0\x9f\x92\x83", "\xf3\xbe\x86\xb9"=>"\xf0\x9f\x90\x8c",
+ "\xf3\xbe\x87\x93"=>"\xf0\x9f\x90\x8d", "\xf3\xbe\x9f\x9c"=>"\xf0\x9f\x90\x8e", "\xf3\xbe\x87\x94"=>"\xf0\x9f\x90\x94", "\xf3\xbe\x87\x95"=>"\xf0\x9f\x90\x97", "\xf3\xbe\x87\x96"=>"\xf0\x9f\x90\xab",
+ "\xf3\xbe\x87\x8c"=>"\xf0\x9f\x90\x98", "\xf3\xbe\x87\x8d"=>"\xf0\x9f\x90\xa8", "\xf3\xbe\x87\x8e"=>"\xf0\x9f\x90\x92", "\xf3\xbe\x87\x8f"=>"\xf0\x9f\x90\x91", "\xf3\xbe\x87\x85"=>"\xf0\x9f\x90\x99",
+ "\xf3\xbe\x87\x86"=>"\xf0\x9f\x90\x9a", "\xf3\xbe\x87\x8b"=>"\xf0\x9f\x90\x9b", "\xf3\xbe\x87\x9a"=>"\xf0\x9f\x90\x9c", "\xf3\xbe\x87\xa1"=>"\xf0\x9f\x90\x9d", "\xf3\xbe\x87\xa2"=>"\xf0\x9f\x90\x9e",
+ "\xf3\xbe\x87\x89"=>"\xf0\x9f\x90\xa0", "\xf3\xbe\x87\x99"=>"\xf0\x9f\x90\xa1", "\xf3\xbe\x87\x9c"=>"\xf0\x9f\x90\xa2", "\xf3\xbe\x86\xba"=>"\xf0\x9f\x90\xa4", "\xf3\xbe\x86\xbb"=>"\xf0\x9f\x90\xa5",
+ "\xf3\xbe\x87\x88"=>"\xf0\x9f\x90\xa6", "\xf3\xbe\x87\x9d"=>"\xf0\x9f\x90\xa3", "\xf3\xbe\x86\xbc"=>"\xf0\x9f\x90\xa7", "\xf3\xbe\x87\x98"=>"\xf0\x9f\x90\xa9", "\xf3\xbe\x86\xbd"=>"\xf0\x9f\x90\x9f",
+ "\xf3\xbe\x87\x87"=>"\xf0\x9f\x90\xac", "\xf3\xbe\x87\x82"=>"\xf0\x9f\x90\xad", "\xf3\xbe\x87\x80"=>"\xf0\x9f\x90\xaf", "\xf3\xbe\x86\xb8"=>"\xf0\x9f\x90\xb1", "\xf3\xbe\x87\x83"=>"\xf0\x9f\x90\xb3",
+ "\xf3\xbe\x86\xbe"=>"\xf0\x9f\x90\xb4", "\xf3\xbe\x87\x84"=>"\xf0\x9f\x90\xb5", "\xf3\xbe\x86\xb7"=>"\xf0\x9f\x90\xb6", "\xf3\xbe\x86\xbf"=>"\xf0\x9f\x90\xb7", "\xf3\xbe\x87\x81"=>"\xf0\x9f\x90\xbb",
+ "\xf3\xbe\x87\x8a"=>"\xf0\x9f\x90\xb9", "\xf3\xbe\x87\x90"=>"\xf0\x9f\x90\xba", "\xf3\xbe\x87\x91"=>"\xf0\x9f\x90\xae", "\xf3\xbe\x87\x92"=>"\xf0\x9f\x90\xb0", "\xf3\xbe\x87\x97"=>"\xf0\x9f\x90\xb8",
+ "\xf3\xbe\x87\x9b"=>"\xf0\x9f\x90\xbe", "\xf3\xbe\x87\x9e"=>"\xf0\x9f\x90\xb2", "\xf3\xbe\x87\x9f"=>"\xf0\x9f\x90\xbc", "\xf3\xbe\x87\xa0"=>"\xf0\x9f\x90\xbd", "\xf3\xbe\x8c\xa0"=>"\xf0\x9f\x98\xa0",
+ "\xf3\xbe\x8c\xa1"=>"\xf0\x9f\x98\xa9", "\xf3\xbe\x8c\xa2"=>"\xf0\x9f\x98\xb2", "\xf3\xbe\x8c\xa3"=>"\xf0\x9f\x98\x9e", "\xf3\xbe\x8c\xa4"=>"\xf0\x9f\x98\xb5", "\xf3\xbe\x8c\xa5"=>"\xf0\x9f\x98\xb0",
+ "\xf3\xbe\x8c\xa6"=>"\xf0\x9f\x98\x92", "\xf3\xbe\x8c\xa7"=>"\xf0\x9f\x98\x8d", "\xf3\xbe\x8c\xa8"=>"\xf0\x9f\x98\xa4", "\xf3\xbe\x8c\xa9"=>"\xf0\x9f\x98\x9c", "\xf3\xbe\x8c\xaa"=>"\xf0\x9f\x98\x9d",
+ "\xf3\xbe\x8c\xab"=>"\xf0\x9f\x98\x8b", "\xf3\xbe\x8c\xac"=>"\xf0\x9f\x98\x98", "\xf3\xbe\x8c\xad"=>"\xf0\x9f\x98\x9a", "\xf3\xbe\x8c\xae"=>"\xf0\x9f\x98\xb7", "\xf3\xbe\x8c\xaf"=>"\xf0\x9f\x98\xb3",
+ "\xf3\xbe\x8c\xb0"=>"\xf0\x9f\x98\x83", "\xf3\xbe\x8c\xb1"=>"\xf0\x9f\x98\x85", "\xf3\xbe\x8c\xb2"=>"\xf0\x9f\x98\x86", "\xf3\xbe\x8c\xb3"=>"\xf0\x9f\x98\x81", "\xf3\xbe\x8c\xb4"=>"\xf0\x9f\x98\x82",
+ "\xf3\xbe\x8c\xb5"=>"\xf0\x9f\x98\x8a", "\xf3\xbe\x8c\xb6"=>"\xe2\x98\xba", "\xf3\xbe\x8c\xb8"=>"\xf0\x9f\x98\x84", "\xf3\xbe\x8c\xb9"=>"\xf0\x9f\x98\xa2", "\xf3\xbe\x8c\xba"=>"\xf0\x9f\x98\xad",
+ "\xf3\xbe\x8c\xbb"=>"\xf0\x9f\x98\xa8", "\xf3\xbe\x8c\xbc"=>"\xf0\x9f\x98\xa3", "\xf3\xbe\x8c\xbd"=>"\xf0\x9f\x98\xa1", "\xf3\xbe\x8c\xbe"=>"\xf0\x9f\x98\x8c", "\xf3\xbe\x8c\xbf"=>"\xf0\x9f\x98\x96",
+ "\xf3\xbe\x8d\x80"=>"\xf0\x9f\x98\x94", "\xf3\xbe\x8d\x81"=>"\xf0\x9f\x98\xb1", "\xf3\xbe\x8d\x82"=>"\xf0\x9f\x98\xaa", "\xf3\xbe\x8d\x83"=>"\xf0\x9f\x98\x8f", "\xf3\xbe\x8d\x84"=>"\xf0\x9f\x98\x93",
+ "\xf3\xbe\x8d\x85"=>"\xf0\x9f\x98\xa5", "\xf3\xbe\x8d\x86"=>"\xf0\x9f\x98\xab", "\xf3\xbe\x8d\x87"=>"\xf0\x9f\x98\x89", "\xf3\xbe\x8d\x88"=>"\xf0\x9f\x98\xba", "\xf3\xbe\x8d\x89"=>"\xf0\x9f\x98\xb8",
+ "\xf3\xbe\x8d\x8a"=>"\xf0\x9f\x98\xb9", "\xf3\xbe\x8d\x8b"=>"\xf0\x9f\x98\xbd", "\xf3\xbe\x8d\x8c"=>"\xf0\x9f\x98\xbb", "\xf3\xbe\x8d\x8d"=>"\xf0\x9f\x98\xbf", "\xf3\xbe\x8d\x8e"=>"\xf0\x9f\x98\xbe",
+ "\xf3\xbe\x8d\x8f"=>"\xf0\x9f\x98\xbc", "\xf3\xbe\x8d\x90"=>"\xf0\x9f\x99\x80", "\xf3\xbe\x8d\x91"=>"\xf0\x9f\x99\x85", "\xf3\xbe\x8d\x92"=>"\xf0\x9f\x99\x86", "\xf3\xbe\x8d\x93"=>"\xf0\x9f\x99\x87",
+ "\xf3\xbe\x8d\x94"=>"\xf0\x9f\x99\x88", "\xf3\xbe\x8d\x95"=>"\xf0\x9f\x99\x8a", "\xf3\xbe\x8d\x96"=>"\xf0\x9f\x99\x89", "\xf3\xbe\x8d\x97"=>"\xf0\x9f\x99\x8b", "\xf3\xbe\x8d\x98"=>"\xf0\x9f\x99\x8c",
+ "\xf3\xbe\x8d\x99"=>"\xf0\x9f\x99\x8d", "\xf3\xbe\x8d\x9a"=>"\xf0\x9f\x99\x8e", "\xf3\xbe\x8d\x9b"=>"\xf0\x9f\x99\x8f", "\xf3\xbe\x92\xb0"=>"\xf0\x9f\x8f\xa0", "\xf3\xbe\x92\xb1"=>"\xf0\x9f\x8f\xa1",
+ "\xf3\xbe\x92\xb2"=>"\xf0\x9f\x8f\xa2", "\xf3\xbe\x92\xb3"=>"\xf0\x9f\x8f\xa3", "\xf3\xbe\x92\xb4"=>"\xf0\x9f\x8f\xa5", "\xf3\xbe\x92\xb5"=>"\xf0\x9f\x8f\xa6", "\xf3\xbe\x92\xb6"=>"\xf0\x9f\x8f\xa7",
+ "\xf3\xbe\x92\xb7"=>"\xf0\x9f\x8f\xa8", "\xf3\xbe\x92\xb8"=>"\xf0\x9f\x8f\xa9", "\xf3\xbe\x92\xb9"=>"\xf0\x9f\x8f\xaa", "\xf3\xbe\x92\xba"=>"\xf0\x9f\x8f\xab", "\xf3\xbe\x92\xbb"=>"\xe2\x9b\xaa",
+ "\xf3\xbe\x92\xbc"=>"\xe2\x9b\xb2", "\xf3\xbe\x92\xbd"=>"\xf0\x9f\x8f\xac", "\xf3\xbe\x92\xbe"=>"\xf0\x9f\x8f\xaf", "\xf3\xbe\x92\xbf"=>"\xf0\x9f\x8f\xb0", "\xf3\xbe\x93\x80"=>"\xf0\x9f\x8f\xad",
+ "\xf3\xbe\x93\x81"=>"\xe2\x9a\x93", "\xf3\xbe\x93\x82"=>"\xf0\x9f\x8f\xae", "\xf3\xbe\x93\x83"=>"\xf0\x9f\x97\xbb", "\xf3\xbe\x93\x84"=>"\xf0\x9f\x97\xbc", "\xf3\xbe\x93\x86"=>"\xf0\x9f\x97\xbd",
+ "\xf3\xbe\x93\x87"=>"\xf0\x9f\x97\xbe", "\xf3\xbe\x93\x88"=>"\xf0\x9f\x97\xbf", "\xf3\xbe\x93\x8c"=>"\xf0\x9f\x91\x9e", "\xf3\xbe\x93\x8d"=>"\xf0\x9f\x91\x9f", "\xf3\xbe\x93\x96"=>"\xf0\x9f\x91\xa0",
+ "\xf3\xbe\x93\x97"=>"\xf0\x9f\x91\xa1", "\xf3\xbe\x93\x98"=>"\xf0\x9f\x91\xa2", "\xf3\xbe\x95\x93"=>"\xf0\x9f\x91\xa3", "\xf3\xbe\x93\x8e"=>"\xf0\x9f\x91\x93", "\xf3\xbe\x93\x8f"=>"\xf0\x9f\x91\x95",
+ "\xf3\xbe\x93\x90"=>"\xf0\x9f\x91\x96", "\xf3\xbe\x93\x91"=>"\xf0\x9f\x91\x91", "\xf3\xbe\x93\x93"=>"\xf0\x9f\x91\x94", "\xf3\xbe\x93\x94"=>"\xf0\x9f\x91\x92", "\xf3\xbe\x93\x95"=>"\xf0\x9f\x91\x97",
+ "\xf3\xbe\x93\x99"=>"\xf0\x9f\x91\x98", "\xf3\xbe\x93\x9a"=>"\xf0\x9f\x91\x99", "\xf3\xbe\x93\x9b"=>"\xf0\x9f\x91\x9a", "\xf3\xbe\x93\x9c"=>"\xf0\x9f\x91\x9b", "\xf3\xbe\x93\xb0"=>"\xf0\x9f\x91\x9c",
+ "\xf3\xbe\x93\xb1"=>"\xf0\x9f\x91\x9d", "\xf3\xbe\x93\x9d"=>"\xf0\x9f\x92\xb0", "\xf3\xbe\x93\x9e"=>"\xf0\x9f\x92\xb1", "\xf3\xbe\x93\x9f"=>"\xf0\x9f\x92\xb9", "\xf3\xbe\x93\xa0"=>"\xf0\x9f\x92\xb2",
+ "\xf3\xbe\x93\xa1"=>"\xf0\x9f\x92\xb3", "\xf3\xbe\x93\xa2"=>"\xf0\x9f\x92\xb4", "\xf3\xbe\x93\xa3"=>"\xf0\x9f\x92\xb5", "\xf3\xbe\x93\xa4"=>"\xf0\x9f\x92\xb8", "\xf3\xbe\x93\xad"=>"\xf0\x9f\x87\xa8\xf0\x9f\x87\xb3",
+ "\xf3\xbe\x93\xa8"=>"\xf0\x9f\x87\xa9\xf0\x9f\x87\xaa", "\xf3\xbe\x93\xab"=>"\xf0\x9f\x87\xaa\xf0\x9f\x87\xb8", "\xf3\xbe\x93\xa7"=>"\xf0\x9f\x87\xab\xf0\x9f\x87\xb7", "\xf3\xbe\x93\xaa"=>"\xf0\x9f\x87\xac\xf0\x9f\x87\xa7", "\xf3\xbe\x93\xa9"=>"\xf0\x9f\x87\xae\xf0\x9f\x87\xb9",
+ "\xf3\xbe\x93\xa5"=>"\xf0\x9f\x87\xaf\xf0\x9f\x87\xb5", "\xf3\xbe\x93\xae"=>"\xf0\x9f\x87\xb0\xf0\x9f\x87\xb7", "\xf3\xbe\x93\xac"=>"\xf0\x9f\x87\xb7\xf0\x9f\x87\xba", "\xf3\xbe\x93\xa6"=>"\xf0\x9f\x87\xba\xf0\x9f\x87\xb8", "\xf3\xbe\x93\xb6"=>"\xf0\x9f\x94\xa5",
+ "\xf3\xbe\x93\xbb"=>"\xf0\x9f\x94\xa6", "\xf3\xbe\x93\x89"=>"\xf0\x9f\x94\xa7", "\xf3\xbe\x93\x8a"=>"\xf0\x9f\x94\xa8", "\xf3\xbe\x93\x8b"=>"\xf0\x9f\x94\xa9", "\xf3\xbe\x93\xba"=>"\xf0\x9f\x94\xaa",
+ "\xf3\xbe\x93\xb5"=>"\xf0\x9f\x94\xab", "\xf3\xbe\x93\xb7"=>"\xf0\x9f\x94\xae", "\xf3\xbe\x93\xb8"=>"\xf0\x9f\x94\xaf", "\xf3\xbe\x81\x84"=>"\xf0\x9f\x94\xb0", "\xf3\xbe\x93\x92"=>"\xf0\x9f\x94\xb1",
+ "\xf3\xbe\x94\x89"=>"\xf0\x9f\x92\x89", "\xf3\xbe\x94\x8a"=>"\xf0\x9f\x92\x8a", "\xf3\xbe\x94\x8b"=>"\xf0\x9f\x85\xb0", "\xf3\xbe\x94\x8c"=>"\xf0\x9f\x85\xb1", "\xf3\xbe\x94\x8d"=>"\xf0\x9f\x86\x8e",
+ "\xf3\xbe\x94\x8e"=>"\xf0\x9f\x85\xbe", "\xf3\xbe\x94\x8f"=>"\xf0\x9f\x8e\x80", "\xf3\xbe\x94\x90"=>"\xf0\x9f\x8e\x81", "\xf3\xbe\x94\x91"=>"\xf0\x9f\x8e\x82", "\xf3\xbe\x94\x92"=>"\xf0\x9f\x8e\x84",
+ "\xf3\xbe\x94\x93"=>"\xf0\x9f\x8e\x85", "\xf3\xbe\x94\x94"=>"\xf0\x9f\x8e\x8c", "\xf3\xbe\x94\x95"=>"\xf0\x9f\x8e\x86", "\xf3\xbe\x94\x96"=>"\xf0\x9f\x8e\x88", "\xf3\xbe\x94\x97"=>"\xf0\x9f\x8e\x89",
+ "\xf3\xbe\x94\x98"=>"\xf0\x9f\x8e\x8d", "\xf3\xbe\x94\x99"=>"\xf0\x9f\x8e\x8e", "\xf3\xbe\x94\x9a"=>"\xf0\x9f\x8e\x93", "\xf3\xbe\x94\x9b"=>"\xf0\x9f\x8e\x92", "\xf3\xbe\x94\x9c"=>"\xf0\x9f\x8e\x8f",
+ "\xf3\xbe\x94\x9d"=>"\xf0\x9f\x8e\x87", "\xf3\xbe\x94\x9e"=>"\xf0\x9f\x8e\x90", "\xf3\xbe\x94\x9f"=>"\xf0\x9f\x8e\x83", "\xf3\xbe\x94\xa0"=>"\xf0\x9f\x8e\x8a", "\xf3\xbe\x94\xa1"=>"\xf0\x9f\x8e\x8b",
+ "\xf3\xbe\x80\x97"=>"\xf0\x9f\x8e\x91", "\xf3\xbe\x94\xa2"=>"\xf0\x9f\x93\x9f", "\xf3\xbe\x94\xa3"=>"\xe2\x98\x8e", "\xf3\xbe\x94\xa4"=>"\xf0\x9f\x93\x9e", "\xf3\xbe\x94\xa5"=>"\xf0\x9f\x93\xb1",
+ "\xf3\xbe\x94\xa6"=>"\xf0\x9f\x93\xb2", "\xf3\xbe\x94\xa7"=>"\xf0\x9f\x93\x9d", "\xf3\xbe\x94\xa8"=>"\xf0\x9f\x93\xa0", "\xf3\xbe\x94\xa9"=>"\xe2\x9c\x89", "\xf3\xbe\x94\xaa"=>"\xf0\x9f\x93\xa8",
+ "\xf3\xbe\x94\xab"=>"\xf0\x9f\x93\xa9", "\xf3\xbe\x94\xac"=>"\xf0\x9f\x93\xaa", "\xf3\xbe\x94\xad"=>"\xf0\x9f\x93\xab", "\xf3\xbe\x94\xae"=>"\xf0\x9f\x93\xae", "\xf3\xbe\xa0\xa2"=>"\xf0\x9f\x93\xb0",
+ "\xf3\xbe\x94\xaf"=>"\xf0\x9f\x93\xa2", "\xf3\xbe\x94\xb0"=>"\xf0\x9f\x93\xa3", "\xf3\xbe\x94\xb1"=>"\xf0\x9f\x93\xa1", "\xf3\xbe\x94\xb3"=>"\xf0\x9f\x93\xa4", "\xf3\xbe\x94\xb4"=>"\xf0\x9f\x93\xa5",
+ "\xf3\xbe\x94\xb5"=>"\xf0\x9f\x93\xa6", "\xf3\xbe\xae\x92"=>"\xf0\x9f\x93\xa7", "\xf3\xbe\xad\xbc"=>"\xf0\x9f\x94\xa0", "\xf3\xbe\xad\xbd"=>"\xf0\x9f\x94\xa1", "\xf3\xbe\xad\xbe"=>"\xf0\x9f\x94\xa2",
+ "\xf3\xbe\xad\xbf"=>"\xf0\x9f\x94\xa3", "\xf3\xbe\xae\x80"=>"\xf0\x9f\x94\xa4", "\xf3\xbe\x94\xb6"=>"\xe2\x9c\x92", "\xf3\xbe\x94\xb7"=>"\xf0\x9f\x92\xba", "\xf3\xbe\x94\xb8"=>"\xf0\x9f\x92\xbb",
+ "\xf3\xbe\x94\xb9"=>"\xe2\x9c\x8f", "\xf3\xbe\x94\xba"=>"\xf0\x9f\x93\x8e", "\xf3\xbe\x94\xbb"=>"\xf0\x9f\x92\xbc", "\xf3\xbe\x94\xbc"=>"\xf0\x9f\x92\xbd", "\xf3\xbe\x94\xbd"=>"\xf0\x9f\x92\xbe",
+ "\xf3\xbe\xa0\x9d"=>"\xf0\x9f\x92\xbf", "\xf3\xbe\xa0\x9e"=>"\xf0\x9f\x93\x80", "\xf3\xbe\x94\xbe"=>"\xe2\x9c\x82", "\xf3\xbe\x94\xbf"=>"\xf0\x9f\x93\x8d", "\xf3\xbe\x95\x80"=>"\xf0\x9f\x93\x83",
+ "\xf3\xbe\x95\x81"=>"\xf0\x9f\x93\x84", "\xf3\xbe\x95\x82"=>"\xf0\x9f\x93\x85", "\xf3\xbe\x95\x83"=>"\xf0\x9f\x93\x81", "\xf3\xbe\x95\x84"=>"\xf0\x9f\x93\x82", "\xf3\xbe\x95\x85"=>"\xf0\x9f\x93\x93",
+ "\xf3\xbe\x95\x86"=>"\xf0\x9f\x93\x96", "\xf3\xbe\x95\x87"=>"\xf0\x9f\x93\x94", "\xf3\xbe\x94\x82"=>"\xf0\x9f\x93\x95", "\xf3\xbe\x93\xbf"=>"\xf0\x9f\x93\x97", "\xf3\xbe\x94\x80"=>"\xf0\x9f\x93\x98",
+ "\xf3\xbe\x94\x81"=>"\xf0\x9f\x93\x99", "\xf3\xbe\x94\x83"=>"\xf0\x9f\x93\x9a", "\xf3\xbe\x94\x84"=>"\xf0\x9f\x93\x9b", "\xf3\xbe\x93\xbd"=>"\xf0\x9f\x93\x9c", "\xf3\xbe\x95\x88"=>"\xf0\x9f\x93\x8b",
+ "\xf3\xbe\x95\x89"=>"\xf0\x9f\x93\x86", "\xf3\xbe\x95\x8a"=>"\xf0\x9f\x93\x8a", "\xf3\xbe\x95\x8b"=>"\xf0\x9f\x93\x88", "\xf3\xbe\x95\x8c"=>"\xf0\x9f\x93\x89", "\xf3\xbe\x95\x8d"=>"\xf0\x9f\x93\x87",
+ "\xf3\xbe\x95\x8e"=>"\xf0\x9f\x93\x8c", "\xf3\xbe\x95\x8f"=>"\xf0\x9f\x93\x92", "\xf3\xbe\x95\x90"=>"\xf0\x9f\x93\x8f", "\xf3\xbe\x95\x91"=>"\xf0\x9f\x93\x90", "\xf3\xbe\x95\x92"=>"\xf0\x9f\x93\x91",
+ "\xf3\xbe\x9f\x90"=>"\xf0\x9f\x8e\xbd", "\xf3\xbe\x9f\x91"=>"\xe2\x9a\xbe", "\xf3\xbe\x9f\x92"=>"\xe2\x9b\xb3", "\xf3\xbe\x9f\x93"=>"\xf0\x9f\x8e\xbe", "\xf3\xbe\x9f\x94"=>"\xe2\x9a\xbd",
+ "\xf3\xbe\x9f\x95"=>"\xf0\x9f\x8e\xbf", "\xf3\xbe\x9f\x96"=>"\xf0\x9f\x8f\x80", "\xf3\xbe\x9f\x97"=>"\xf0\x9f\x8f\x81", "\xf3\xbe\x9f\x98"=>"\xf0\x9f\x8f\x82", "\xf3\xbe\x9f\x99"=>"\xf0\x9f\x8f\x83",
+ "\xf3\xbe\x9f\x9a"=>"\xf0\x9f\x8f\x84", "\xf3\xbe\x9f\x9b"=>"\xf0\x9f\x8f\x86", "\xf3\xbe\x9f\x9d"=>"\xf0\x9f\x8f\x88", "\xf3\xbe\x9f\x9e"=>"\xf0\x9f\x8f\x8a", "\xf3\xbe\x9f\x9f"=>"\xf0\x9f\x9a\x83",
+ "\xf3\xbe\x9f\xa0"=>"\xf0\x9f\x9a\x87", "\xf3\xbe\x9f\xa1"=>"\xe2\x93\x82", "\xf3\xbe\x9f\xa2"=>"\xf0\x9f\x9a\x84", "\xf3\xbe\x9f\xa3"=>"\xf0\x9f\x9a\x85", "\xf3\xbe\x9f\xa4"=>"\xf0\x9f\x9a\x97",
+ "\xf3\xbe\x9f\xa5"=>"\xf0\x9f\x9a\x99", "\xf3\xbe\x9f\xa6"=>"\xf0\x9f\x9a\x8c", "\xf3\xbe\x9f\xa7"=>"\xf0\x9f\x9a\x8f", "\xf3\xbe\x9f\xa8"=>"\xf0\x9f\x9a\xa2", "\xf3\xbe\x9f\xa9"=>"\xe2\x9c\x88",
+ "\xf3\xbe\x9f\xaa"=>"\xe2\x9b\xb5", "\xf3\xbe\x9f\xac"=>"\xf0\x9f\x9a\x89", "\xf3\xbe\x9f\xad"=>"\xf0\x9f\x9a\x80", "\xf3\xbe\x9f\xae"=>"\xf0\x9f\x9a\xa4", "\xf3\xbe\x9f\xaf"=>"\xf0\x9f\x9a\x95",
+ "\xf3\xbe\x9f\xb1"=>"\xf0\x9f\x9a\x9a", "\xf3\xbe\x9f\xb2"=>"\xf0\x9f\x9a\x92", "\xf3\xbe\x9f\xb3"=>"\xf0\x9f\x9a\x91", "\xf3\xbe\x9f\xb4"=>"\xf0\x9f\x9a\x93", "\xf3\xbe\x9f\xb5"=>"\xe2\x9b\xbd",
+ "\xf3\xbe\x9f\xb6"=>"\xf0\x9f\x85\xbf", "\xf3\xbe\x9f\xb7"=>"\xf0\x9f\x9a\xa5", "\xf3\xbe\x9f\xb8"=>"\xf0\x9f\x9a\xa7", "\xf3\xbe\x9f\xb9"=>"\xf0\x9f\x9a\xa8", "\xf3\xbe\x9f\xba"=>"\xe2\x99\xa8",
+ "\xf3\xbe\x9f\xbb"=>"\xe2\x9b\xba", "\xf3\xbe\x9f\xbc"=>"\xf0\x9f\x8e\xa0", "\xf3\xbe\x9f\xbd"=>"\xf0\x9f\x8e\xa1", "\xf3\xbe\x9f\xbe"=>"\xf0\x9f\x8e\xa2", "\xf3\xbe\x9f\xbf"=>"\xf0\x9f\x8e\xa3",
+ "\xf3\xbe\xa0\x80"=>"\xf0\x9f\x8e\xa4", "\xf3\xbe\xa0\x81"=>"\xf0\x9f\x8e\xa5", "\xf3\xbe\xa0\x82"=>"\xf0\x9f\x8e\xa6", "\xf3\xbe\xa0\x83"=>"\xf0\x9f\x8e\xa7", "\xf3\xbe\xa0\x84"=>"\xf0\x9f\x8e\xa8",
+ "\xf3\xbe\xa0\x85"=>"\xf0\x9f\x8e\xa9", "\xf3\xbe\xa0\x86"=>"\xf0\x9f\x8e\xaa", "\xf3\xbe\xa0\x87"=>"\xf0\x9f\x8e\xab", "\xf3\xbe\xa0\x88"=>"\xf0\x9f\x8e\xac", "\xf3\xbe\xa0\x89"=>"\xf0\x9f\x8e\xad",
+ "\xf3\xbe\xa0\x8a"=>"\xf0\x9f\x8e\xae", "\xf3\xbe\xa0\x8b"=>"\xf0\x9f\x80\x84", "\xf3\xbe\xa0\x8c"=>"\xf0\x9f\x8e\xaf", "\xf3\xbe\xa0\x8d"=>"\xf0\x9f\x8e\xb0", "\xf3\xbe\xa0\x8e"=>"\xf0\x9f\x8e\xb1",
+ "\xf3\xbe\xa0\x8f"=>"\xf0\x9f\x8e\xb2", "\xf3\xbe\xa0\x90"=>"\xf0\x9f\x8e\xb3", "\xf3\xbe\xa0\x91"=>"\xf0\x9f\x8e\xb4", "\xf3\xbe\xa0\x92"=>"\xf0\x9f\x83\x8f", "\xf3\xbe\xa0\x93"=>"\xf0\x9f\x8e\xb5",
+ "\xf3\xbe\xa0\x94"=>"\xf0\x9f\x8e\xb6", "\xf3\xbe\xa0\x95"=>"\xf0\x9f\x8e\xb7", "\xf3\xbe\xa0\x96"=>"\xf0\x9f\x8e\xb8", "\xf3\xbe\xa0\x97"=>"\xf0\x9f\x8e\xb9", "\xf3\xbe\xa0\x98"=>"\xf0\x9f\x8e\xba",
+ "\xf3\xbe\xa0\x99"=>"\xf0\x9f\x8e\xbb", "\xf3\xbe\xa0\x9a"=>"\xf0\x9f\x8e\xbc", "\xf3\xbe\xa0\x9b"=>"\xe3\x80\xbd", "\xf3\xbe\x93\xaf"=>"\xf0\x9f\x93\xb7", "\xf3\xbe\x93\xb9"=>"\xf0\x9f\x93\xb9",
+ "\xf3\xbe\xa0\x9c"=>"\xf0\x9f\x93\xba", "\xf3\xbe\xa0\x9f"=>"\xf0\x9f\x93\xbb", "\xf3\xbe\xa0\xa0"=>"\xf0\x9f\x93\xbc", "\xf3\xbe\xa0\xa3"=>"\xf0\x9f\x92\x8b", "\xf3\xbe\xa0\xa4"=>"\xf0\x9f\x92\x8c",
+ "\xf3\xbe\xa0\xa5"=>"\xf0\x9f\x92\x8d", "\xf3\xbe\xa0\xa6"=>"\xf0\x9f\x92\x8e", "\xf3\xbe\xa0\xa7"=>"\xf0\x9f\x92\x8f", "\xf3\xbe\xa0\xa8"=>"\xf0\x9f\x92\x90", "\xf3\xbe\xa0\xa9"=>"\xf0\x9f\x92\x91",
+ "\xf3\xbe\xa0\xaa"=>"\xf0\x9f\x92\x92", "\xf3\xbe\xac\xa5"=>"\xf0\x9f\x94\x9e", "\xf3\xbe\xac\xa9"=>"\xc2\xa9", "\xf3\xbe\xac\xad"=>"\xc2\xae", "\xf3\xbe\xac\xaa"=>"\xe2\x84\xa2",
+ "\xf3\xbe\xad\x87"=>"\xe2\x84\xb9", "\xf3\xbe\xa0\xac"=>"#\xe2\x83\xa3", "\xf3\xbe\xa0\xae"=>"1\xe2\x83\xa3", "\xf3\xbe\xa0\xaf"=>"2\xe2\x83\xa3", "\xf3\xbe\xa0\xb0"=>"3\xe2\x83\xa3",
+ "\xf3\xbe\xa0\xb1"=>"4\xe2\x83\xa3", "\xf3\xbe\xa0\xb2"=>"5\xe2\x83\xa3", "\xf3\xbe\xa0\xb3"=>"6\xe2\x83\xa3", "\xf3\xbe\xa0\xb4"=>"7\xe2\x83\xa3", "\xf3\xbe\xa0\xb5"=>"8\xe2\x83\xa3",
+ "\xf3\xbe\xa0\xb6"=>"9\xe2\x83\xa3", "\xf3\xbe\xa0\xb7"=>"0\xe2\x83\xa3", "\xf3\xbe\xa0\xbb"=>"\xf0\x9f\x94\x9f", "\xf3\xbe\xa0\xb8"=>"\xf0\x9f\x93\xb6", "\xf3\xbe\xa0\xb9"=>"\xf0\x9f\x93\xb3",
+ "\xf3\xbe\xa0\xba"=>"\xf0\x9f\x93\xb4", "\xf3\xbe\xa5\xa0"=>"\xf0\x9f\x8d\x94", "\xf3\xbe\xa5\xa1"=>"\xf0\x9f\x8d\x99", "\xf3\xbe\xa5\xa2"=>"\xf0\x9f\x8d\xb0", "\xf3\xbe\xa5\xa3"=>"\xf0\x9f\x8d\x9c",
+ "\xf3\xbe\xa5\xa4"=>"\xf0\x9f\x8d\x9e", "\xf3\xbe\xa5\xa5"=>"\xf0\x9f\x8d\xb3", "\xf3\xbe\xa5\xa6"=>"\xf0\x9f\x8d\xa6", "\xf3\xbe\xa5\xa7"=>"\xf0\x9f\x8d\x9f", "\xf3\xbe\xa5\xa8"=>"\xf0\x9f\x8d\xa1",
+ "\xf3\xbe\xa5\xa9"=>"\xf0\x9f\x8d\x98", "\xf3\xbe\xa5\xaa"=>"\xf0\x9f\x8d\x9a", "\xf3\xbe\xa5\xab"=>"\xf0\x9f\x8d\x9d", "\xf3\xbe\xa5\xac"=>"\xf0\x9f\x8d\x9b", "\xf3\xbe\xa5\xad"=>"\xf0\x9f\x8d\xa2",
+ "\xf3\xbe\xa5\xae"=>"\xf0\x9f\x8d\xa3", "\xf3\xbe\xa5\xaf"=>"\xf0\x9f\x8d\xb1", "\xf3\xbe\xa5\xb0"=>"\xf0\x9f\x8d\xb2", "\xf3\xbe\xa5\xb1"=>"\xf0\x9f\x8d\xa7", "\xf3\xbe\xa5\xb2"=>"\xf0\x9f\x8d\x96",
+ "\xf3\xbe\xa5\xb3"=>"\xf0\x9f\x8d\xa5", "\xf3\xbe\xa5\xb4"=>"\xf0\x9f\x8d\xa0", "\xf3\xbe\xa5\xb5"=>"\xf0\x9f\x8d\x95", "\xf3\xbe\xa5\xb6"=>"\xf0\x9f\x8d\x97", "\xf3\xbe\xa5\xb7"=>"\xf0\x9f\x8d\xa8",
+ "\xf3\xbe\xa5\xb8"=>"\xf0\x9f\x8d\xa9", "\xf3\xbe\xa5\xb9"=>"\xf0\x9f\x8d\xaa", "\xf3\xbe\xa5\xba"=>"\xf0\x9f\x8d\xab", "\xf3\xbe\xa5\xbb"=>"\xf0\x9f\x8d\xac", "\xf3\xbe\xa5\xbc"=>"\xf0\x9f\x8d\xad",
+ "\xf3\xbe\xa5\xbd"=>"\xf0\x9f\x8d\xae", "\xf3\xbe\xa5\xbe"=>"\xf0\x9f\x8d\xaf", "\xf3\xbe\xa5\xbf"=>"\xf0\x9f\x8d\xa4", "\xf3\xbe\xa6\x80"=>"\xf0\x9f\x8d\xb4", "\xf3\xbe\xa6\x81"=>"\xe2\x98\x95",
+ "\xf3\xbe\xa6\x82"=>"\xf0\x9f\x8d\xb8", "\xf3\xbe\xa6\x83"=>"\xf0\x9f\x8d\xba", "\xf3\xbe\xa6\x84"=>"\xf0\x9f\x8d\xb5", "\xf3\xbe\xa6\x85"=>"\xf0\x9f\x8d\xb6", "\xf3\xbe\xa6\x86"=>"\xf0\x9f\x8d\xb7",
+ "\xf3\xbe\xa6\x87"=>"\xf0\x9f\x8d\xbb", "\xf3\xbe\xa6\x88"=>"\xf0\x9f\x8d\xb9", "\xf3\xbe\xab\xb0"=>"\xe2\x86\x97", "\xf3\xbe\xab\xb1"=>"\xe2\x86\x98", "\xf3\xbe\xab\xb2"=>"\xe2\x86\x96",
+ "\xf3\xbe\xab\xb3"=>"\xe2\x86\x99", "\xf3\xbe\xab\xb4"=>"\xe2\xa4\xb4", "\xf3\xbe\xab\xb5"=>"\xe2\xa4\xb5", "\xf3\xbe\xab\xb6"=>"\xe2\x86\x94", "\xf3\xbe\xab\xb7"=>"\xe2\x86\x95",
+ "\xf3\xbe\xab\xb8"=>"\xe2\xac\x86", "\xf3\xbe\xab\xb9"=>"\xe2\xac\x87", "\xf3\xbe\xab\xba"=>"\xe2\x9e\xa1", "\xf3\xbe\xab\xbb"=>"\xe2\xac\x85", "\xf3\xbe\xab\xbc"=>"\xe2\x96\xb6",
+ "\xf3\xbe\xab\xbd"=>"\xe2\x97\x80", "\xf3\xbe\xab\xbe"=>"\xe2\x8f\xa9", "\xf3\xbe\xab\xbf"=>"\xe2\x8f\xaa", "\xf3\xbe\xac\x83"=>"\xe2\x8f\xab", "\xf3\xbe\xac\x82"=>"\xe2\x8f\xac",
+ "\xf3\xbe\xad\xb8"=>"\xf0\x9f\x94\xba", "\xf3\xbe\xad\xb9"=>"\xf0\x9f\x94\xbb", "\xf3\xbe\xac\x81"=>"\xf0\x9f\x94\xbc", "\xf3\xbe\xac\x80"=>"\xf0\x9f\x94\xbd", "\xf3\xbe\xad\x84"=>"\xe2\xad\x95",
+ "\xf3\xbe\xad\x85"=>"\xe2\x9d\x8c", "\xf3\xbe\xad\x86"=>"\xe2\x9d\x8e", "\xf3\xbe\xac\x84"=>"\xe2\x9d\x97", "\xf3\xbe\xac\x85"=>"\xe2\x81\x89", "\xf3\xbe\xac\x86"=>"\xe2\x80\xbc",
+ "\xf3\xbe\xac\x89"=>"\xe2\x9d\x93", "\xf3\xbe\xac\x8a"=>"\xe2\x9d\x94", "\xf3\xbe\xac\x8b"=>"\xe2\x9d\x95", "\xf3\xbe\xac\x87"=>"\xe3\x80\xb0", "\xf3\xbe\xac\x88"=>"\xe2\x9e\xb0",
+ "\xf3\xbe\xa0\xab"=>"\xe2\x9e\xbf", "\xf3\xbe\xac\x8c"=>"\xe2\x9d\xa4", "\xf3\xbe\xac\x8d"=>"\xf0\x9f\x92\x93", "\xf3\xbe\xac\x8e"=>"\xf0\x9f\x92\x94", "\xf3\xbe\xac\x8f"=>"\xf0\x9f\x92\x95",
+ "\xf3\xbe\xac\x90"=>"\xf0\x9f\x92\x96", "\xf3\xbe\xac\x91"=>"\xf0\x9f\x92\x97", "\xf3\xbe\xac\x92"=>"\xf0\x9f\x92\x98", "\xf3\xbe\xac\x93"=>"\xf0\x9f\x92\x99", "\xf3\xbe\xac\x94"=>"\xf0\x9f\x92\x9a",
+ "\xf3\xbe\xac\x95"=>"\xf0\x9f\x92\x9b", "\xf3\xbe\xac\x96"=>"\xf0\x9f\x92\x9c", "\xf3\xbe\xac\x97"=>"\xf0\x9f\x92\x9d", "\xf3\xbe\xac\x98"=>"\xf0\x9f\x92\x9e", "\xf3\xbe\xac\x99"=>"\xf0\x9f\x92\x9f",
+ "\xf3\xbe\xac\x9a"=>"\xe2\x99\xa5", "\xf3\xbe\xac\x9b"=>"\xe2\x99\xa0", "\xf3\xbe\xac\x9c"=>"\xe2\x99\xa6", "\xf3\xbe\xac\x9d"=>"\xe2\x99\xa3", "\xf3\xbe\xac\x9e"=>"\xf0\x9f\x9a\xac",
+ "\xf3\xbe\xac\x9f"=>"\xf0\x9f\x9a\xad", "\xf3\xbe\xac\xa0"=>"\xe2\x99\xbf", "\xf3\xbe\xac\xa2"=>"\xf0\x9f\x9a\xa9", "\xf3\xbe\xac\xa3"=>"\xe2\x9a\xa0", "\xf3\xbe\xac\xa6"=>"\xe2\x9b\x94",
+ "\xf3\xbe\xac\xac"=>"\xe2\x99\xbb", "\xf3\xbe\x9f\xab"=>"\xf0\x9f\x9a\xb2", "\xf3\xbe\x9f\xb0"=>"\xf0\x9f\x9a\xb6", "\xf3\xbe\xac\xb3"=>"\xf0\x9f\x9a\xb9", "\xf3\xbe\xac\xb4"=>"\xf0\x9f\x9a\xba",
+ "\xf3\xbe\x94\x85"=>"\xf0\x9f\x9b\x80", "\xf3\xbe\x94\x86"=>"\xf0\x9f\x9a\xbb", "\xf3\xbe\x94\x87"=>"\xf0\x9f\x9a\xbd", "\xf3\xbe\x94\x88"=>"\xf0\x9f\x9a\xbe", "\xf3\xbe\xac\xb5"=>"\xf0\x9f\x9a\xbc",
+ "\xf3\xbe\x93\xb3"=>"\xf0\x9f\x9a\xaa", "\xf3\xbe\xad\x88"=>"\xf0\x9f\x9a\xab", "\xf3\xbe\xad\x89"=>"\xe2\x9c\x94", "\xf3\xbe\xae\x84"=>"\xf0\x9f\x86\x91", "\xf3\xbe\xac\xb8"=>"\xf0\x9f\x86\x92",
+ "\xf3\xbe\xac\xa1"=>"\xf0\x9f\x86\x93", "\xf3\xbe\xae\x81"=>"\xf0\x9f\x86\x94", "\xf3\xbe\xac\xb6"=>"\xf0\x9f\x86\x95", "\xf3\xbe\xac\xa8"=>"\xf0\x9f\x86\x96", "\xf3\xbe\xac\xa7"=>"\xf0\x9f\x86\x97",
+ "\xf3\xbe\xad\x8f"=>"\xf0\x9f\x86\x98", "\xf3\xbe\xac\xb7"=>"\xf0\x9f\x86\x99", "\xf3\xbe\xac\xb2"=>"\xf0\x9f\x86\x9a", "\xf3\xbe\xac\xa4"=>"\xf0\x9f\x88\x81", "\xf3\xbe\xac\xbf"=>"\xf0\x9f\x88\x82",
+ "\xf3\xbe\xac\xae"=>"\xf0\x9f\x88\xb2", "\xf3\xbe\xac\xaf"=>"\xf0\x9f\x88\xb3", "\xf3\xbe\xac\xb0"=>"\xf0\x9f\x88\xb4", "\xf3\xbe\xac\xb1"=>"\xf0\x9f\x88\xb5", "\xf3\xbe\xac\xb9"=>"\xf0\x9f\x88\xb6",
+ "\xf3\xbe\xac\xba"=>"\xf0\x9f\x88\x9a", "\xf3\xbe\xac\xbb"=>"\xf0\x9f\x88\xb7", "\xf3\xbe\xac\xbc"=>"\xf0\x9f\x88\xb8", "\xf3\xbe\xac\xbe"=>"\xf0\x9f\x88\xb9", "\xf3\xbe\xad\x80"=>"\xf0\x9f\x88\xaf",
+ "\xf3\xbe\xad\x81"=>"\xf0\x9f\x88\xba", "\xf3\xbe\xac\xab"=>"\xe3\x8a\x99", "\xf3\xbe\xad\x83"=>"\xe3\x8a\x97", "\xf3\xbe\xac\xbd"=>"\xf0\x9f\x89\x90", "\xf3\xbe\xad\x90"=>"\xf0\x9f\x89\x91",
+ "\xf3\xbe\xad\x91"=>"\xe2\x9e\x95", "\xf3\xbe\xad\x92"=>"\xe2\x9e\x96", "\xf3\xbe\xad\x93"=>"\xe2\x9c\x96", "\xf3\xbe\xad\x94"=>"\xe2\x9e\x97", "\xf3\xbe\xad\x95"=>"\xf0\x9f\x92\xa0",
+ "\xf3\xbe\xad\x96"=>"\xf0\x9f\x92\xa1", "\xf3\xbe\xad\x97"=>"\xf0\x9f\x92\xa2", "\xf3\xbe\xad\x98"=>"\xf0\x9f\x92\xa3", "\xf3\xbe\xad\x99"=>"\xf0\x9f\x92\xa4", "\xf3\xbe\xad\x9a"=>"\xf0\x9f\x92\xa5",
+ "\xf3\xbe\xad\x9b"=>"\xf0\x9f\x92\xa6", "\xf3\xbe\xad\x9c"=>"\xf0\x9f\x92\xa7", "\xf3\xbe\xad\x9d"=>"\xf0\x9f\x92\xa8", "\xf3\xbe\x93\xb4"=>"\xf0\x9f\x92\xa9", "\xf3\xbe\xad\x9e"=>"\xf0\x9f\x92\xaa",
+ "\xf3\xbe\xad\x9f"=>"\xf0\x9f\x92\xab", "\xf3\xbe\x94\xb2"=>"\xf0\x9f\x92\xac", "\xf3\xbe\xad\xa0"=>"\xe2\x9c\xa8", "\xf3\xbe\xad\xa1"=>"\xe2\x9c\xb4", "\xf3\xbe\xad\xa2"=>"\xe2\x9c\xb3",
+ "\xf3\xbe\xad\xa5"=>"\xe2\x9a\xaa", "\xf3\xbe\xad\xa6"=>"\xe2\x9a\xab", "\xf3\xbe\xad\xa3"=>"\xf0\x9f\x94\xb4", "\xf3\xbe\xad\xa4"=>"\xf0\x9f\x94\xb2", "\xf3\xbe\xad\xa7"=>"\xf0\x9f\x94\xb3",
+ "\xf3\xbe\xad\xa8"=>"\xe2\xad\x90", "\xf3\xbe\xad\xab"=>"\xe2\xac\x9c", "\xf3\xbe\xad\xac"=>"\xe2\xac\x9b", "\xf3\xbe\xad\xad"=>"\xe2\x96\xab", "\xf3\xbe\xad\xae"=>"\xe2\x96\xaa",
+ "\xf3\xbe\xad\xaf"=>"\xe2\x97\xbd", "\xf3\xbe\xad\xb0"=>"\xe2\x97\xbe", "\xf3\xbe\xad\xb1"=>"\xe2\x97\xbb", "\xf3\xbe\xad\xb2"=>"\xe2\x97\xbc", "\xf3\xbe\xad\xb3"=>"\xf0\x9f\x94\xb6",
+ "\xf3\xbe\xad\xb4"=>"\xf0\x9f\x94\xb7", "\xf3\xbe\xad\xb5"=>"\xf0\x9f\x94\xb8", "\xf3\xbe\xad\xb6"=>"\xf0\x9f\x94\xb9", "\xf3\xbe\xad\xb7"=>"\xe2\x9d\x87", "\xf3\xbe\xad\xba"=>"\xf0\x9f\x92\xae",
+ "\xf3\xbe\xad\xbb"=>"\xf0\x9f\x92\xaf", "\xf3\xbe\xae\x83"=>"\xe2\x86\xa9", "\xf3\xbe\xae\x88"=>"\xe2\x86\xaa", "\xf3\xbe\xae\x91"=>"\xf0\x9f\x94\x83", "\xf3\xbe\xa0\xa1"=>"\xf0\x9f\x94\x8a",
+ "\xf3\xbe\x93\xbc"=>"\xf0\x9f\x94\x8b", "\xf3\xbe\x93\xbe"=>"\xf0\x9f\x94\x8c", "\xf3\xbe\xae\x85"=>"\xf0\x9f\x94\x8d", "\xf3\xbe\xae\x8d"=>"\xf0\x9f\x94\x8e", "\xf3\xbe\xae\x86"=>"\xf0\x9f\x94\x92",
+ "\xf3\xbe\xae\x87"=>"\xf0\x9f\x94\x93", "\xf3\xbe\xae\x90"=>"\xf0\x9f\x94\x8f", "\xf3\xbe\xae\x8a"=>"\xf0\x9f\x94\x90", "\xf3\xbe\xae\x82"=>"\xf0\x9f\x94\x91", "\xf3\xbe\x93\xb2"=>"\xf0\x9f\x94\x94",
+ "\xf3\xbe\xae\x8b"=>"\xe2\x98\x91", "\xf3\xbe\xae\x8c"=>"\xf0\x9f\x94\x98", "\xf3\xbe\xae\x8f"=>"\xf0\x9f\x94\x96", "\xf3\xbe\xad\x8b"=>"\xf0\x9f\x94\x97", "\xf3\xbe\xae\x8e"=>"\xf0\x9f\x94\x99",
+ "\xf3\xbe\x80\x9a"=>"\xf0\x9f\x94\x9a", "\xf3\xbe\x80\x99"=>"\xf0\x9f\x94\x9b", "\xf3\xbe\x80\x98"=>"\xf0\x9f\x94\x9c", "\xf3\xbe\xad\x82"=>"\xf0\x9f\x94\x9d", "\xf3\xbe\xad\x8a"=>"\xe2\x9c\x85",
+ "\xf3\xbe\xae\x93"=>"\xe2\x9c\x8a", "\xf3\xbe\xae\x95"=>"\xe2\x9c\x8b", "\xf3\xbe\xae\x94"=>"\xe2\x9c\x8c", "\xf3\xbe\xae\x96"=>"\xf0\x9f\x91\x8a", "\xf3\xbe\xae\x97"=>"\xf0\x9f\x91\x8d",
+ "\xf3\xbe\xae\x98"=>"\xe2\x98\x9d", "\xf3\xbe\xae\x99"=>"\xf0\x9f\x91\x86", "\xf3\xbe\xae\x9a"=>"\xf0\x9f\x91\x87", "\xf3\xbe\xae\x9b"=>"\xf0\x9f\x91\x88", "\xf3\xbe\xae\x9c"=>"\xf0\x9f\x91\x89",
+ "\xf3\xbe\xae\x9d"=>"\xf0\x9f\x91\x8b", "\xf3\xbe\xae\x9e"=>"\xf0\x9f\x91\x8f", "\xf3\xbe\xae\x9f"=>"\xf0\x9f\x91\x8c", "\xf3\xbe\xae\xa0"=>"\xf0\x9f\x91\x8e", "\xf3\xbe\xae\xa1"=>"\xf0\x9f\x91\x90",
+ ),
+ 'unified_to_html' => array(
+ "\xe2\x98\x80"=>"", "\xe2\x98\x81"=>"", "\xe2\x98\x94"=>"", "\xe2\x9b\x84"=>"",
+ "\xe2\x9a\xa1"=>"", "\xf0\x9f\x8c\x80"=>"", "\xf0\x9f\x8c\x81"=>"", "\xf0\x9f\x8c\x82"=>"", "\xf0\x9f\x8c\x83"=>"",
+ "\xf0\x9f\x8c\x84"=>"", "\xf0\x9f\x8c\x85"=>"", "\xf0\x9f\x8c\x86"=>"", "\xf0\x9f\x8c\x87"=>"", "\xf0\x9f\x8c\x88"=>"",
+ "\xe2\x9d\x84"=>"", "\xe2\x9b\x85"=>"", "\xf0\x9f\x8c\x89"=>"", "\xf0\x9f\x8c\x8a"=>"", "\xf0\x9f\x8c\x8b"=>"",
+ "\xf0\x9f\x8c\x8c"=>"", "\xf0\x9f\x8c\x8f"=>"", "\xf0\x9f\x8c\x91"=>"", "\xf0\x9f\x8c\x94"=>"", "\xf0\x9f\x8c\x93"=>"",
+ "\xf0\x9f\x8c\x99"=>"", "\xf0\x9f\x8c\x95"=>"", "\xf0\x9f\x8c\x9b"=>"", "\xf0\x9f\x8c\x9f"=>"", "\xf0\x9f\x8c\xa0"=>"",
+ "\xf0\x9f\x95\x90"=>"", "\xf0\x9f\x95\x91"=>"", "\xf0\x9f\x95\x92"=>"", "\xf0\x9f\x95\x93"=>"", "\xf0\x9f\x95\x94"=>"",
+ "\xf0\x9f\x95\x95"=>"", "\xf0\x9f\x95\x96"=>"", "\xf0\x9f\x95\x97"=>"", "\xf0\x9f\x95\x98"=>"", "\xf0\x9f\x95\x99"=>"",
+ "\xf0\x9f\x95\x9a"=>"", "\xf0\x9f\x95\x9b"=>"", "\xe2\x8c\x9a"=>"", "\xe2\x8c\x9b"=>"", "\xe2\x8f\xb0"=>"",
+ "\xe2\x8f\xb3"=>"", "\xe2\x99\x88"=>"", "\xe2\x99\x89"=>"", "\xe2\x99\x8a"=>"", "\xe2\x99\x8b"=>"",
+ "\xe2\x99\x8c"=>"", "\xe2\x99\x8d"=>"", "\xe2\x99\x8e"=>"", "\xe2\x99\x8f"=>"", "\xe2\x99\x90"=>"",
+ "\xe2\x99\x91"=>"", "\xe2\x99\x92"=>"", "\xe2\x99\x93"=>"", "\xe2\x9b\x8e"=>"", "\xf0\x9f\x8d\x80"=>"",
+ "\xf0\x9f\x8c\xb7"=>"", "\xf0\x9f\x8c\xb1"=>"", "\xf0\x9f\x8d\x81"=>"", "\xf0\x9f\x8c\xb8"=>"", "\xf0\x9f\x8c\xb9"=>"",
+ "\xf0\x9f\x8d\x82"=>"", "\xf0\x9f\x8d\x83"=>"", "\xf0\x9f\x8c\xba"=>"", "\xf0\x9f\x8c\xbb"=>"", "\xf0\x9f\x8c\xb4"=>"",
+ "\xf0\x9f\x8c\xb5"=>"", "\xf0\x9f\x8c\xbe"=>"", "\xf0\x9f\x8c\xbd"=>"", "\xf0\x9f\x8d\x84"=>"", "\xf0\x9f\x8c\xb0"=>"",
+ "\xf0\x9f\x8c\xbc"=>"", "\xf0\x9f\x8c\xbf"=>"", "\xf0\x9f\x8d\x92"=>"", "\xf0\x9f\x8d\x8c"=>"", "\xf0\x9f\x8d\x8e"=>"",
+ "\xf0\x9f\x8d\x8a"=>"", "\xf0\x9f\x8d\x93"=>"", "\xf0\x9f\x8d\x89"=>"", "\xf0\x9f\x8d\x85"=>"", "\xf0\x9f\x8d\x86"=>"",
+ "\xf0\x9f\x8d\x88"=>"", "\xf0\x9f\x8d\x8d"=>"", "\xf0\x9f\x8d\x87"=>"", "\xf0\x9f\x8d\x91"=>"", "\xf0\x9f\x8d\x8f"=>"",
+ "\xf0\x9f\x91\x80"=>"", "\xf0\x9f\x91\x82"=>"", "\xf0\x9f\x91\x83"=>"", "\xf0\x9f\x91\x84"=>"", "\xf0\x9f\x91\x85"=>"",
+ "\xf0\x9f\x92\x84"=>"", "\xf0\x9f\x92\x85"=>"", "\xf0\x9f\x92\x86"=>"", "\xf0\x9f\x92\x87"=>"", "\xf0\x9f\x92\x88"=>"",
+ "\xf0\x9f\x91\xa4"=>"", "\xf0\x9f\x91\xa6"=>"", "\xf0\x9f\x91\xa7"=>"", "\xf0\x9f\x91\xa8"=>"", "\xf0\x9f\x91\xa9"=>"",
+ "\xf0\x9f\x91\xaa"=>"", "\xf0\x9f\x91\xab"=>"", "\xf0\x9f\x91\xae"=>"", "\xf0\x9f\x91\xaf"=>"", "\xf0\x9f\x91\xb0"=>"",
+ "\xf0\x9f\x91\xb1"=>"", "\xf0\x9f\x91\xb2"=>"", "\xf0\x9f\x91\xb3"=>"", "\xf0\x9f\x91\xb4"=>"", "\xf0\x9f\x91\xb5"=>"",
+ "\xf0\x9f\x91\xb6"=>"", "\xf0\x9f\x91\xb7"=>"", "\xf0\x9f\x91\xb8"=>"", "\xf0\x9f\x91\xb9"=>"", "\xf0\x9f\x91\xba"=>"",
+ "\xf0\x9f\x91\xbb"=>"", "\xf0\x9f\x91\xbc"=>"", "\xf0\x9f\x91\xbd"=>"", "\xf0\x9f\x91\xbe"=>"", "\xf0\x9f\x91\xbf"=>"",
+ "\xf0\x9f\x92\x80"=>"", "\xf0\x9f\x92\x81"=>"", "\xf0\x9f\x92\x82"=>"", "\xf0\x9f\x92\x83"=>"", "\xf0\x9f\x90\x8c"=>"",
+ "\xf0\x9f\x90\x8d"=>"", "\xf0\x9f\x90\x8e"=>"", "\xf0\x9f\x90\x94"=>"", "\xf0\x9f\x90\x97"=>"", "\xf0\x9f\x90\xab"=>"",
+ "\xf0\x9f\x90\x98"=>"", "\xf0\x9f\x90\xa8"=>"", "\xf0\x9f\x90\x92"=>"", "\xf0\x9f\x90\x91"=>"", "\xf0\x9f\x90\x99"=>"",
+ "\xf0\x9f\x90\x9a"=>"", "\xf0\x9f\x90\x9b"=>"", "\xf0\x9f\x90\x9c"=>"", "\xf0\x9f\x90\x9d"=>"", "\xf0\x9f\x90\x9e"=>"",
+ "\xf0\x9f\x90\xa0"=>"", "\xf0\x9f\x90\xa1"=>"", "\xf0\x9f\x90\xa2"=>"", "\xf0\x9f\x90\xa4"=>"", "\xf0\x9f\x90\xa5"=>"",
+ "\xf0\x9f\x90\xa6"=>"", "\xf0\x9f\x90\xa3"=>"", "\xf0\x9f\x90\xa7"=>"", "\xf0\x9f\x90\xa9"=>"", "\xf0\x9f\x90\x9f"=>"",
+ "\xf0\x9f\x90\xac"=>"", "\xf0\x9f\x90\xad"=>"", "\xf0\x9f\x90\xaf"=>"", "\xf0\x9f\x90\xb1"=>"", "\xf0\x9f\x90\xb3"=>"",
+ "\xf0\x9f\x90\xb4"=>"", "\xf0\x9f\x90\xb5"=>"", "\xf0\x9f\x90\xb6"=>"", "\xf0\x9f\x90\xb7"=>"", "\xf0\x9f\x90\xbb"=>"",
+ "\xf0\x9f\x90\xb9"=>"", "\xf0\x9f\x90\xba"=>"", "\xf0\x9f\x90\xae"=>"", "\xf0\x9f\x90\xb0"=>"", "\xf0\x9f\x90\xb8"=>"",
+ "\xf0\x9f\x90\xbe"=>"", "\xf0\x9f\x90\xb2"=>"", "\xf0\x9f\x90\xbc"=>"", "\xf0\x9f\x90\xbd"=>"", "\xf0\x9f\x98\xa0"=>"",
+ "\xf0\x9f\x98\xa9"=>"", "\xf0\x9f\x98\xb2"=>"", "\xf0\x9f\x98\x9e"=>"", "\xf0\x9f\x98\xb5"=>"", "\xf0\x9f\x98\xb0"=>"",
+ "\xf0\x9f\x98\x92"=>"", "\xf0\x9f\x98\x8d"=>"", "\xf0\x9f\x98\xa4"=>"", "\xf0\x9f\x98\x9c"=>"", "\xf0\x9f\x98\x9d"=>"",
+ "\xf0\x9f\x98\x8b"=>"", "\xf0\x9f\x98\x98"=>"", "\xf0\x9f\x98\x9a"=>"", "\xf0\x9f\x98\xb7"=>"", "\xf0\x9f\x98\xb3"=>"",
+ "\xf0\x9f\x98\x83"=>"", "\xf0\x9f\x98\x85"=>"", "\xf0\x9f\x98\x86"=>"", "\xf0\x9f\x98\x81"=>"", "\xf0\x9f\x98\x82"=>"",
+ "\xf0\x9f\x98\x8a"=>"", "\xe2\x98\xba"=>"", "\xf0\x9f\x98\x84"=>"", "\xf0\x9f\x98\xa2"=>"", "\xf0\x9f\x98\xad"=>"",
+ "\xf0\x9f\x98\xa8"=>"", "\xf0\x9f\x98\xa3"=>"", "\xf0\x9f\x98\xa1"=>"", "\xf0\x9f\x98\x8c"=>"", "\xf0\x9f\x98\x96"=>"",
+ "\xf0\x9f\x98\x94"=>"", "\xf0\x9f\x98\xb1"=>"", "\xf0\x9f\x98\xaa"=>"", "\xf0\x9f\x98\x8f"=>"", "\xf0\x9f\x98\x93"=>"",
+ "\xf0\x9f\x98\xa5"=>"", "\xf0\x9f\x98\xab"=>"", "\xf0\x9f\x98\x89"=>"", "\xf0\x9f\x98\xba"=>"", "\xf0\x9f\x98\xb8"=>"",
+ "\xf0\x9f\x98\xb9"=>"", "\xf0\x9f\x98\xbd"=>"", "\xf0\x9f\x98\xbb"=>"", "\xf0\x9f\x98\xbf"=>"", "\xf0\x9f\x98\xbe"=>"",
+ "\xf0\x9f\x98\xbc"=>"", "\xf0\x9f\x99\x80"=>"", "\xf0\x9f\x99\x85"=>"", "\xf0\x9f\x99\x86"=>"", "\xf0\x9f\x99\x87"=>"",
+ "\xf0\x9f\x99\x88"=>"", "\xf0\x9f\x99\x8a"=>"", "\xf0\x9f\x99\x89"=>"", "\xf0\x9f\x99\x8b"=>"", "\xf0\x9f\x99\x8c"=>"",
+ "\xf0\x9f\x99\x8d"=>"", "\xf0\x9f\x99\x8e"=>"", "\xf0\x9f\x99\x8f"=>"", "\xf0\x9f\x8f\xa0"=>"", "\xf0\x9f\x8f\xa1"=>"",
+ "\xf0\x9f\x8f\xa2"=>"", "\xf0\x9f\x8f\xa3"=>"", "\xf0\x9f\x8f\xa5"=>"", "\xf0\x9f\x8f\xa6"=>"", "\xf0\x9f\x8f\xa7"=>"",
+ "\xf0\x9f\x8f\xa8"=>"", "\xf0\x9f\x8f\xa9"=>"", "\xf0\x9f\x8f\xaa"=>"", "\xf0\x9f\x8f\xab"=>"", "\xe2\x9b\xaa"=>"",
+ "\xe2\x9b\xb2"=>"", "\xf0\x9f\x8f\xac"=>"", "\xf0\x9f\x8f\xaf"=>"", "\xf0\x9f\x8f\xb0"=>"", "\xf0\x9f\x8f\xad"=>"",
+ "\xe2\x9a\x93"=>"", "\xf0\x9f\x8f\xae"=>"", "\xf0\x9f\x97\xbb"=>"", "\xf0\x9f\x97\xbc"=>"", "\xf0\x9f\x97\xbd"=>"",
+ "\xf0\x9f\x97\xbe"=>"", "\xf0\x9f\x97\xbf"=>"", "\xf0\x9f\x91\x9e"=>"", "\xf0\x9f\x91\x9f"=>"", "\xf0\x9f\x91\xa0"=>"",
+ "\xf0\x9f\x91\xa1"=>"", "\xf0\x9f\x91\xa2"=>"", "\xf0\x9f\x91\xa3"=>"", "\xf0\x9f\x91\x93"=>"", "\xf0\x9f\x91\x95"=>"",
+ "\xf0\x9f\x91\x96"=>"", "\xf0\x9f\x91\x91"=>"", "\xf0\x9f\x91\x94"=>"", "\xf0\x9f\x91\x92"=>"", "\xf0\x9f\x91\x97"=>"",
+ "\xf0\x9f\x91\x98"=>"", "\xf0\x9f\x91\x99"=>"", "\xf0\x9f\x91\x9a"=>"", "\xf0\x9f\x91\x9b"=>"", "\xf0\x9f\x91\x9c"=>"",
+ "\xf0\x9f\x91\x9d"=>"", "\xf0\x9f\x92\xb0"=>"", "\xf0\x9f\x92\xb1"=>"", "\xf0\x9f\x92\xb9"=>"", "\xf0\x9f\x92\xb2"=>"",
+ "\xf0\x9f\x92\xb3"=>"", "\xf0\x9f\x92\xb4"=>"", "\xf0\x9f\x92\xb5"=>"", "\xf0\x9f\x92\xb8"=>"", "\xf0\x9f\x87\xa8\xf0\x9f\x87\xb3"=>"",
+ "\xf0\x9f\x87\xa9\xf0\x9f\x87\xaa"=>"", "\xf0\x9f\x87\xaa\xf0\x9f\x87\xb8"=>"", "\xf0\x9f\x87\xab\xf0\x9f\x87\xb7"=>"", "\xf0\x9f\x87\xac\xf0\x9f\x87\xa7"=>"", "\xf0\x9f\x87\xae\xf0\x9f\x87\xb9"=>"",
+ "\xf0\x9f\x87\xaf\xf0\x9f\x87\xb5"=>"", "\xf0\x9f\x87\xb0\xf0\x9f\x87\xb7"=>"", "\xf0\x9f\x87\xb7\xf0\x9f\x87\xba"=>"", "\xf0\x9f\x87\xba\xf0\x9f\x87\xb8"=>"", "\xf0\x9f\x94\xa5"=>"",
+ "\xf0\x9f\x94\xa6"=>"", "\xf0\x9f\x94\xa7"=>"", "\xf0\x9f\x94\xa8"=>"", "\xf0\x9f\x94\xa9"=>"", "\xf0\x9f\x94\xaa"=>"",
+ "\xf0\x9f\x94\xab"=>"", "\xf0\x9f\x94\xae"=>"", "\xf0\x9f\x94\xaf"=>"", "\xf0\x9f\x94\xb0"=>"", "\xf0\x9f\x94\xb1"=>"",
+ "\xf0\x9f\x92\x89"=>"", "\xf0\x9f\x92\x8a"=>"", "\xf0\x9f\x85\xb0"=>"", "\xf0\x9f\x85\xb1"=>"", "\xf0\x9f\x86\x8e"=>"",
+ "\xf0\x9f\x85\xbe"=>"", "\xf0\x9f\x8e\x80"=>"", "\xf0\x9f\x8e\x81"=>"", "\xf0\x9f\x8e\x82"=>"", "\xf0\x9f\x8e\x84"=>"",
+ "\xf0\x9f\x8e\x85"=>"", "\xf0\x9f\x8e\x8c"=>"", "\xf0\x9f\x8e\x86"=>"", "\xf0\x9f\x8e\x88"=>"", "\xf0\x9f\x8e\x89"=>"",
+ "\xf0\x9f\x8e\x8d"=>"", "\xf0\x9f\x8e\x8e"=>"", "\xf0\x9f\x8e\x93"=>"", "\xf0\x9f\x8e\x92"=>"", "\xf0\x9f\x8e\x8f"=>"",
+ "\xf0\x9f\x8e\x87"=>"", "\xf0\x9f\x8e\x90"=>"", "\xf0\x9f\x8e\x83"=>"", "\xf0\x9f\x8e\x8a"=>"", "\xf0\x9f\x8e\x8b"=>"",
+ "\xf0\x9f\x8e\x91"=>"", "\xf0\x9f\x93\x9f"=>"", "\xe2\x98\x8e"=>"", "\xf0\x9f\x93\x9e"=>"", "\xf0\x9f\x93\xb1"=>"",
+ "\xf0\x9f\x93\xb2"=>"", "\xf0\x9f\x93\x9d"=>"", "\xf0\x9f\x93\xa0"=>"", "\xe2\x9c\x89"=>"", "\xf0\x9f\x93\xa8"=>"",
+ "\xf0\x9f\x93\xa9"=>"", "\xf0\x9f\x93\xaa"=>"", "\xf0\x9f\x93\xab"=>"", "\xf0\x9f\x93\xae"=>"", "\xf0\x9f\x93\xb0"=>"",
+ "\xf0\x9f\x93\xa2"=>"", "\xf0\x9f\x93\xa3"=>"", "\xf0\x9f\x93\xa1"=>"", "\xf0\x9f\x93\xa4"=>"", "\xf0\x9f\x93\xa5"=>"",
+ "\xf0\x9f\x93\xa6"=>"", "\xf0\x9f\x93\xa7"=>"", "\xf0\x9f\x94\xa0"=>"", "\xf0\x9f\x94\xa1"=>"", "\xf0\x9f\x94\xa2"=>"",
+ "\xf0\x9f\x94\xa3"=>"", "\xf0\x9f\x94\xa4"=>"", "\xe2\x9c\x92"=>"", "\xf0\x9f\x92\xba"=>"", "\xf0\x9f\x92\xbb"=>"",
+ "\xe2\x9c\x8f"=>"", "\xf0\x9f\x93\x8e"=>"", "\xf0\x9f\x92\xbc"=>"", "\xf0\x9f\x92\xbd"=>"", "\xf0\x9f\x92\xbe"=>"",
+ "\xf0\x9f\x92\xbf"=>"", "\xf0\x9f\x93\x80"=>"", "\xe2\x9c\x82"=>"", "\xf0\x9f\x93\x8d"=>"", "\xf0\x9f\x93\x83"=>"",
+ "\xf0\x9f\x93\x84"=>"", "\xf0\x9f\x93\x85"=>"", "\xf0\x9f\x93\x81"=>"", "\xf0\x9f\x93\x82"=>"", "\xf0\x9f\x93\x93"=>"",
+ "\xf0\x9f\x93\x96"=>"", "\xf0\x9f\x93\x94"=>"", "\xf0\x9f\x93\x95"=>"", "\xf0\x9f\x93\x97"=>"", "\xf0\x9f\x93\x98"=>"",
+ "\xf0\x9f\x93\x99"=>"", "\xf0\x9f\x93\x9a"=>"", "\xf0\x9f\x93\x9b"=>"", "\xf0\x9f\x93\x9c"=>"", "\xf0\x9f\x93\x8b"=>"",
+ "\xf0\x9f\x93\x86"=>"", "\xf0\x9f\x93\x8a"=>"", "\xf0\x9f\x93\x88"=>"", "\xf0\x9f\x93\x89"=>"", "\xf0\x9f\x93\x87"=>"",
+ "\xf0\x9f\x93\x8c"=>"", "\xf0\x9f\x93\x92"=>"", "\xf0\x9f\x93\x8f"=>"", "\xf0\x9f\x93\x90"=>"", "\xf0\x9f\x93\x91"=>"",
+ "\xf0\x9f\x8e\xbd"=>"", "\xe2\x9a\xbe"=>"", "\xe2\x9b\xb3"=>"", "\xf0\x9f\x8e\xbe"=>"", "\xe2\x9a\xbd"=>"",
+ "\xf0\x9f\x8e\xbf"=>"", "\xf0\x9f\x8f\x80"=>"", "\xf0\x9f\x8f\x81"=>"", "\xf0\x9f\x8f\x82"=>"", "\xf0\x9f\x8f\x83"=>"",
+ "\xf0\x9f\x8f\x84"=>"", "\xf0\x9f\x8f\x86"=>"", "\xf0\x9f\x8f\x88"=>"", "\xf0\x9f\x8f\x8a"=>"", "\xf0\x9f\x9a\x83"=>"",
+ "\xf0\x9f\x9a\x87"=>"", "\xe2\x93\x82"=>"", "\xf0\x9f\x9a\x84"=>"", "\xf0\x9f\x9a\x85"=>"", "\xf0\x9f\x9a\x97"=>"",
+ "\xf0\x9f\x9a\x99"=>"", "\xf0\x9f\x9a\x8c"=>"", "\xf0\x9f\x9a\x8f"=>"", "\xf0\x9f\x9a\xa2"=>"", "\xe2\x9c\x88"=>"",
+ "\xe2\x9b\xb5"=>"", "\xf0\x9f\x9a\x89"=>"", "\xf0\x9f\x9a\x80"=>"", "\xf0\x9f\x9a\xa4"=>"", "\xf0\x9f\x9a\x95"=>"",
+ "\xf0\x9f\x9a\x9a"=>"", "\xf0\x9f\x9a\x92"=>"", "\xf0\x9f\x9a\x91"=>"", "\xf0\x9f\x9a\x93"=>"", "\xe2\x9b\xbd"=>"",
+ "\xf0\x9f\x85\xbf"=>"", "\xf0\x9f\x9a\xa5"=>"", "\xf0\x9f\x9a\xa7"=>"", "\xf0\x9f\x9a\xa8"=>"", "\xe2\x99\xa8"=>"",
+ "\xe2\x9b\xba"=>"", "\xf0\x9f\x8e\xa0"=>"", "\xf0\x9f\x8e\xa1"=>"", "\xf0\x9f\x8e\xa2"=>"", "\xf0\x9f\x8e\xa3"=>"",
+ "\xf0\x9f\x8e\xa4"=>"", "\xf0\x9f\x8e\xa5"=>"", "\xf0\x9f\x8e\xa6"=>"", "\xf0\x9f\x8e\xa7"=>"", "\xf0\x9f\x8e\xa8"=>"",
+ "\xf0\x9f\x8e\xa9"=>"", "\xf0\x9f\x8e\xaa"=>"", "\xf0\x9f\x8e\xab"=>"", "\xf0\x9f\x8e\xac"=>"", "\xf0\x9f\x8e\xad"=>"",
+ "\xf0\x9f\x8e\xae"=>"", "\xf0\x9f\x80\x84"=>"", "\xf0\x9f\x8e\xaf"=>"", "\xf0\x9f\x8e\xb0"=>"", "\xf0\x9f\x8e\xb1"=>"",
+ "\xf0\x9f\x8e\xb2"=>"", "\xf0\x9f\x8e\xb3"=>"", "\xf0\x9f\x8e\xb4"=>"", "\xf0\x9f\x83\x8f"=>"", "\xf0\x9f\x8e\xb5"=>"",
+ "\xf0\x9f\x8e\xb6"=>"", "\xf0\x9f\x8e\xb7"=>"", "\xf0\x9f\x8e\xb8"=>"", "\xf0\x9f\x8e\xb9"=>"", "\xf0\x9f\x8e\xba"=>"",
+ "\xf0\x9f\x8e\xbb"=>"", "\xf0\x9f\x8e\xbc"=>"", "\xe3\x80\xbd"=>"", "\xf0\x9f\x93\xb7"=>"", "\xf0\x9f\x93\xb9"=>"",
+ "\xf0\x9f\x93\xba"=>"", "\xf0\x9f\x93\xbb"=>"", "\xf0\x9f\x93\xbc"=>"", "\xf0\x9f\x92\x8b"=>"", "\xf0\x9f\x92\x8c"=>"",
+ "\xf0\x9f\x92\x8d"=>"", "\xf0\x9f\x92\x8e"=>"", "\xf0\x9f\x92\x8f"=>"", "\xf0\x9f\x92\x90"=>"", "\xf0\x9f\x92\x91"=>"",
+ "\xf0\x9f\x92\x92"=>"", "\xf0\x9f\x94\x9e"=>"", "\xc2\xa9"=>"", "\xc2\xae"=>"", "\xe2\x84\xa2"=>"",
+ "\xe2\x84\xb9"=>"", "#\xe2\x83\xa3"=>"", "1\xe2\x83\xa3"=>"", "2\xe2\x83\xa3"=>"", "3\xe2\x83\xa3"=>"",
+ "4\xe2\x83\xa3"=>"", "5\xe2\x83\xa3"=>"", "6\xe2\x83\xa3"=>"", "7\xe2\x83\xa3"=>"", "8\xe2\x83\xa3"=>"",
+ "9\xe2\x83\xa3"=>"", "0\xe2\x83\xa3"=>"", "\xf0\x9f\x94\x9f"=>"", "\xf0\x9f\x93\xb6"=>"", "\xf0\x9f\x93\xb3"=>"",
+ "\xf0\x9f\x93\xb4"=>"", "\xf0\x9f\x8d\x94"=>"", "\xf0\x9f\x8d\x99"=>"", "\xf0\x9f\x8d\xb0"=>"", "\xf0\x9f\x8d\x9c"=>"",
+ "\xf0\x9f\x8d\x9e"=>"", "\xf0\x9f\x8d\xb3"=>"", "\xf0\x9f\x8d\xa6"=>"", "\xf0\x9f\x8d\x9f"=>"", "\xf0\x9f\x8d\xa1"=>"",
+ "\xf0\x9f\x8d\x98"=>"", "\xf0\x9f\x8d\x9a"=>"", "\xf0\x9f\x8d\x9d"=>"", "\xf0\x9f\x8d\x9b"=>"", "\xf0\x9f\x8d\xa2"=>"",
+ "\xf0\x9f\x8d\xa3"=>"", "\xf0\x9f\x8d\xb1"=>"", "\xf0\x9f\x8d\xb2"=>"", "\xf0\x9f\x8d\xa7"=>"", "\xf0\x9f\x8d\x96"=>"",
+ "\xf0\x9f\x8d\xa5"=>"", "\xf0\x9f\x8d\xa0"=>"", "\xf0\x9f\x8d\x95"=>"", "\xf0\x9f\x8d\x97"=>"", "\xf0\x9f\x8d\xa8"=>"",
+ "\xf0\x9f\x8d\xa9"=>"", "\xf0\x9f\x8d\xaa"=>"", "\xf0\x9f\x8d\xab"=>"", "\xf0\x9f\x8d\xac"=>"", "\xf0\x9f\x8d\xad"=>"",
+ "\xf0\x9f\x8d\xae"=>"", "\xf0\x9f\x8d\xaf"=>"", "\xf0\x9f\x8d\xa4"=>"", "\xf0\x9f\x8d\xb4"=>"", "\xe2\x98\x95"=>"",
+ "\xf0\x9f\x8d\xb8"=>"", "\xf0\x9f\x8d\xba"=>"", "\xf0\x9f\x8d\xb5"=>"", "\xf0\x9f\x8d\xb6"=>"", "\xf0\x9f\x8d\xb7"=>"",
+ "\xf0\x9f\x8d\xbb"=>"", "\xf0\x9f\x8d\xb9"=>"", "\xe2\x86\x97"=>"", "\xe2\x86\x98"=>"", "\xe2\x86\x96"=>"",
+ "\xe2\x86\x99"=>"", "\xe2\xa4\xb4"=>"", "\xe2\xa4\xb5"=>"", "\xe2\x86\x94"=>"", "\xe2\x86\x95"=>"",
+ "\xe2\xac\x86"=>"", "\xe2\xac\x87"=>"", "\xe2\x9e\xa1"=>"", "\xe2\xac\x85"=>"", "\xe2\x96\xb6"=>"",
+ "\xe2\x97\x80"=>"", "\xe2\x8f\xa9"=>"", "\xe2\x8f\xaa"=>"", "\xe2\x8f\xab"=>"", "\xe2\x8f\xac"=>"",
+ "\xf0\x9f\x94\xba"=>"", "\xf0\x9f\x94\xbb"=>"", "\xf0\x9f\x94\xbc"=>"", "\xf0\x9f\x94\xbd"=>"", "\xe2\xad\x95"=>"",
+ "\xe2\x9d\x8c"=>"", "\xe2\x9d\x8e"=>"", "\xe2\x9d\x97"=>"", "\xe2\x81\x89"=>"", "\xe2\x80\xbc"=>"",
+ "\xe2\x9d\x93"=>"", "\xe2\x9d\x94"=>"", "\xe2\x9d\x95"=>"", "\xe3\x80\xb0"=>"", "\xe2\x9e\xb0"=>"",
+ "\xe2\x9e\xbf"=>"", "\xe2\x9d\xa4"=>"", "\xf0\x9f\x92\x93"=>"", "\xf0\x9f\x92\x94"=>"", "\xf0\x9f\x92\x95"=>"",
+ "\xf0\x9f\x92\x96"=>"", "\xf0\x9f\x92\x97"=>"", "\xf0\x9f\x92\x98"=>"", "\xf0\x9f\x92\x99"=>"", "\xf0\x9f\x92\x9a"=>"",
+ "\xf0\x9f\x92\x9b"=>"", "\xf0\x9f\x92\x9c"=>"", "\xf0\x9f\x92\x9d"=>"", "\xf0\x9f\x92\x9e"=>"", "\xf0\x9f\x92\x9f"=>"",
+ "\xe2\x99\xa5"=>"", "\xe2\x99\xa0"=>"", "\xe2\x99\xa6"=>"", "\xe2\x99\xa3"=>"", "\xf0\x9f\x9a\xac"=>"",
+ "\xf0\x9f\x9a\xad"=>"", "\xe2\x99\xbf"=>"", "\xf0\x9f\x9a\xa9"=>"", "\xe2\x9a\xa0"=>"", "\xe2\x9b\x94"=>"",
+ "\xe2\x99\xbb"=>"", "\xf0\x9f\x9a\xb2"=>"", "\xf0\x9f\x9a\xb6"=>"", "\xf0\x9f\x9a\xb9"=>"", "\xf0\x9f\x9a\xba"=>"",
+ "\xf0\x9f\x9b\x80"=>"", "\xf0\x9f\x9a\xbb"=>"", "\xf0\x9f\x9a\xbd"=>"", "\xf0\x9f\x9a\xbe"=>"", "\xf0\x9f\x9a\xbc"=>"",
+ "\xf0\x9f\x9a\xaa"=>"", "\xf0\x9f\x9a\xab"=>"", "\xe2\x9c\x94"=>"", "\xf0\x9f\x86\x91"=>"", "\xf0\x9f\x86\x92"=>"",
+ "\xf0\x9f\x86\x93"=>"", "\xf0\x9f\x86\x94"=>"", "\xf0\x9f\x86\x95"=>"", "\xf0\x9f\x86\x96"=>"", "\xf0\x9f\x86\x97"=>"",
+ "\xf0\x9f\x86\x98"=>"", "\xf0\x9f\x86\x99"=>"", "\xf0\x9f\x86\x9a"=>"", "\xf0\x9f\x88\x81"=>"", "\xf0\x9f\x88\x82"=>"",
+ "\xf0\x9f\x88\xb2"=>"", "\xf0\x9f\x88\xb3"=>"", "\xf0\x9f\x88\xb4"=>"", "\xf0\x9f\x88\xb5"=>"", "\xf0\x9f\x88\xb6"=>"",
+ "\xf0\x9f\x88\x9a"=>"", "\xf0\x9f\x88\xb7"=>"", "\xf0\x9f\x88\xb8"=>"", "\xf0\x9f\x88\xb9"=>"", "\xf0\x9f\x88\xaf"=>"",
+ "\xf0\x9f\x88\xba"=>"", "\xe3\x8a\x99"=>"", "\xe3\x8a\x97"=>"", "\xf0\x9f\x89\x90"=>"", "\xf0\x9f\x89\x91"=>"",
+ "\xe2\x9e\x95"=>"", "\xe2\x9e\x96"=>"", "\xe2\x9c\x96"=>"", "\xe2\x9e\x97"=>"", "\xf0\x9f\x92\xa0"=>"",
+ "\xf0\x9f\x92\xa1"=>"", "\xf0\x9f\x92\xa2"=>"", "\xf0\x9f\x92\xa3"=>"", "\xf0\x9f\x92\xa4"=>"", "\xf0\x9f\x92\xa5"=>"",
+ "\xf0\x9f\x92\xa6"=>"", "\xf0\x9f\x92\xa7"=>"", "\xf0\x9f\x92\xa8"=>"", "\xf0\x9f\x92\xa9"=>"", "\xf0\x9f\x92\xaa"=>"",
+ "\xf0\x9f\x92\xab"=>"", "\xf0\x9f\x92\xac"=>"", "\xe2\x9c\xa8"=>"", "\xe2\x9c\xb4"=>"", "\xe2\x9c\xb3"=>"",
+ "\xe2\x9a\xaa"=>"", "\xe2\x9a\xab"=>"", "\xf0\x9f\x94\xb4"=>"", "\xf0\x9f\x94\xb5"=>"", "\xf0\x9f\x94\xb2"=>"",
+ "\xf0\x9f\x94\xb3"=>"", "\xe2\xad\x90"=>"", "\xe2\xac\x9c"=>"", "\xe2\xac\x9b"=>"", "\xe2\x96\xab"=>"",
+ "\xe2\x96\xaa"=>"", "\xe2\x97\xbd"=>"", "\xe2\x97\xbe"=>"", "\xe2\x97\xbb"=>"", "\xe2\x97\xbc"=>"",
+ "\xf0\x9f\x94\xb6"=>"", "\xf0\x9f\x94\xb7"=>"", "\xf0\x9f\x94\xb8"=>"", "\xf0\x9f\x94\xb9"=>"", "\xe2\x9d\x87"=>"",
+ "\xf0\x9f\x92\xae"=>"", "\xf0\x9f\x92\xaf"=>"", "\xe2\x86\xa9"=>"", "\xe2\x86\xaa"=>"", "\xf0\x9f\x94\x83"=>"",
+ "\xf0\x9f\x94\x8a"=>"", "\xf0\x9f\x94\x8b"=>"", "\xf0\x9f\x94\x8c"=>"", "\xf0\x9f\x94\x8d"=>"", "\xf0\x9f\x94\x8e"=>"",
+ "\xf0\x9f\x94\x92"=>"", "\xf0\x9f\x94\x93"=>"", "\xf0\x9f\x94\x8f"=>"", "\xf0\x9f\x94\x90"=>"", "\xf0\x9f\x94\x91"=>"",
+ "\xf0\x9f\x94\x94"=>"", "\xe2\x98\x91"=>"", "\xf0\x9f\x94\x98"=>"", "\xf0\x9f\x94\x96"=>"", "\xf0\x9f\x94\x97"=>"",
+ "\xf0\x9f\x94\x99"=>"", "\xf0\x9f\x94\x9a"=>"", "\xf0\x9f\x94\x9b"=>"", "\xf0\x9f\x94\x9c"=>"", "\xf0\x9f\x94\x9d"=>"",
+ "\xe2\x9c\x85"=>"", "\xe2\x9c\x8a"=>"", "\xe2\x9c\x8b"=>"", "\xe2\x9c\x8c"=>"", "\xf0\x9f\x91\x8a"=>"",
+ "\xf0\x9f\x91\x8d"=>"", "\xe2\x98\x9d"=>"", "\xf0\x9f\x91\x86"=>"", "\xf0\x9f\x91\x87"=>"", "\xf0\x9f\x91\x88"=>"",
+ "\xf0\x9f\x91\x89"=>"", "\xf0\x9f\x91\x8b"=>"", "\xf0\x9f\x91\x8f"=>"", "\xf0\x9f\x91\x8c"=>"", "\xf0\x9f\x91\x8e"=>"",
+ "\xf0\x9f\x91\x90"=>"",
+ ),
+ );
+
+ $GLOBALS['emoji_maps']['html_to_unified'] = array_flip($GLOBALS['emoji_maps']['unified_to_html']);
+
+
+ #
+ # functions to convert incoming data into the unified format
+ #
+
+ function emoji_docomo_to_unified( $text){ return emoji_convert($text, 'docomo_to_unified'); }
+ function emoji_kddi_to_unified( $text){ return emoji_convert($text, 'kddi_to_unified'); }
+ function emoji_softbank_to_unified( $text){ return emoji_convert($text, 'softbank_to_unified'); }
+ function emoji_google_to_unified( $text){ return emoji_convert($text, 'google_to_unified'); }
+
+
+ #
+ # functions to convert unified data into an outgoing format
+ #
+
+ function emoji_unified_to_docomo( $text){ return emoji_convert($text, 'unified_to_docomo'); }
+ function emoji_unified_to_kddi( $text){ return emoji_convert($text, 'unified_to_kddi'); }
+ function emoji_unified_to_softbank( $text){ return emoji_convert($text, 'unified_to_softbank'); }
+ function emoji_unified_to_google( $text){ return emoji_convert($text, 'unified_to_google'); }
+ function emoji_unified_to_html( $text){ return emoji_convert($text, 'unified_to_html'); }
+ function emoji_html_to_unified( $text){ return emoji_convert($text, 'html_to_unified'); }
+
+
+
+ function emoji_convert($text, $map){
+
+ return str_replace(array_keys($GLOBALS['emoji_maps'][$map]), $GLOBALS['emoji_maps'][$map], $text);
+ }
+
+ function emoji_get_name($unified_cp){
+
+ return $GLOBALS['emoji_maps']['names'][$unified_cp] ? $GLOBALS['emoji_maps']['names'][$unified_cp] : '?';
+ }
diff --git a/framework/library/json/JSON.php b/framework/library/json/JSON.php
new file mode 100644
index 0000000..b63cb3b
--- /dev/null
+++ b/framework/library/json/JSON.php
@@ -0,0 +1,806 @@
+
+ * @author Matt Knapp
+ * References:
+ *
+ * // create a new instance of Services_JSON
+ * $json = new Services_JSON();
+ *
+ * // convert a complexe value to JSON notation, and send it to the browser
+ * $value = array('foo', 'bar', array(1, 2, 'baz'), array(3, array(4)));
+ * $output = $json->encode($value);
+ *
+ * print($output);
+ * // prints: ["foo","bar",[1,2,"baz"],[3,[4]]]
+ *
+ * // accept incoming POST data, assumed to be in JSON notation
+ * $input = file_get_contents('php://input', 1000000);
+ * $value = $json->decode($input);
+ *
+ */
+class Services_JSON
+{
+ /**
+ * constructs a new JSON instance
+ *
+ * @param int $use object behavior flags; combine with boolean-OR
+ *
+ * possible values:
+ * - SERVICES_JSON_LOOSE_TYPE: loose typing.
+ * "{...}" syntax creates associative arrays
+ * instead of objects in decode().
+ * - SERVICES_JSON_SUPPRESS_ERRORS: error suppression.
+ * Values which can't be encoded (e.g. resources)
+ * appear as NULL instead of throwing errors.
+ * By default, a deeply-nested resource will
+ * bubble up with an error, so all return values
+ * from encode() should be checked with isError()
+ */
+ function Services_JSON($use = 0)
+ {
+ $this->use = $use;
+ }
+
+ /**
+ * convert a string from one UTF-16 char to one UTF-8 char
+ *
+ * Normally should be handled by mb_convert_encoding, but
+ * provides a slower PHP-only method for installations
+ * that lack the multibye string extension.
+ *
+ * @param string $utf16 UTF-16 character
+ * @return string UTF-8 character
+ * @access private
+ */
+ function utf162utf8($utf16)
+ {
+ // oh please oh please oh please oh please oh please
+ if(function_exists('mb_convert_encoding')) {
+ return mb_convert_encoding($utf16, 'UTF-8', 'UTF-16');
+ }
+
+ $bytes = (ord($utf16{0}) << 8) | ord($utf16{1});
+
+ switch(true) {
+ case ((0x7F & $bytes) == $bytes):
+ // this case should never be reached, because we are in ASCII range
+ // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
+ return chr(0x7F & $bytes);
+
+ case (0x07FF & $bytes) == $bytes:
+ // return a 2-byte UTF-8 character
+ // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
+ return chr(0xC0 | (($bytes >> 6) & 0x1F))
+ . chr(0x80 | ($bytes & 0x3F));
+
+ case (0xFFFF & $bytes) == $bytes:
+ // return a 3-byte UTF-8 character
+ // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
+ return chr(0xE0 | (($bytes >> 12) & 0x0F))
+ . chr(0x80 | (($bytes >> 6) & 0x3F))
+ . chr(0x80 | ($bytes & 0x3F));
+ }
+
+ // ignoring UTF-32 for now, sorry
+ return '';
+ }
+
+ /**
+ * convert a string from one UTF-8 char to one UTF-16 char
+ *
+ * Normally should be handled by mb_convert_encoding, but
+ * provides a slower PHP-only method for installations
+ * that lack the multibye string extension.
+ *
+ * @param string $utf8 UTF-8 character
+ * @return string UTF-16 character
+ * @access private
+ */
+ function utf82utf16($utf8)
+ {
+ // oh please oh please oh please oh please oh please
+ if(function_exists('mb_convert_encoding')) {
+ return mb_convert_encoding($utf8, 'UTF-16', 'UTF-8');
+ }
+
+ switch(strlen($utf8)) {
+ case 1:
+ // this case should never be reached, because we are in ASCII range
+ // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
+ return $utf8;
+
+ case 2:
+ // return a UTF-16 character from a 2-byte UTF-8 char
+ // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
+ return chr(0x07 & (ord($utf8{0}) >> 2))
+ . chr((0xC0 & (ord($utf8{0}) << 6))
+ | (0x3F & ord($utf8{1})));
+
+ case 3:
+ // return a UTF-16 character from a 3-byte UTF-8 char
+ // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
+ return chr((0xF0 & (ord($utf8{0}) << 4))
+ | (0x0F & (ord($utf8{1}) >> 2)))
+ . chr((0xC0 & (ord($utf8{1}) << 6))
+ | (0x7F & ord($utf8{2})));
+ }
+
+ // ignoring UTF-32 for now, sorry
+ return '';
+ }
+
+ /**
+ * encodes an arbitrary variable into JSON format
+ *
+ * @param mixed $var any number, boolean, string, array, or object to be encoded.
+ * see argument 1 to Services_JSON() above for array-parsing behavior.
+ * if var is a strng, note that encode() always expects it
+ * to be in ASCII or UTF-8 format!
+ *
+ * @return mixed JSON string representation of input var or an error if a problem occurs
+ * @access public
+ */
+ function encode($var)
+ {
+ switch (gettype($var)) {
+ case 'boolean':
+ return $var ? 'true' : 'false';
+
+ case 'NULL':
+ return 'null';
+
+ case 'integer':
+ return (int) $var;
+
+ case 'double':
+ case 'float':
+ return (float) $var;
+
+ case 'string':
+ // STRINGS ARE EXPECTED TO BE IN ASCII OR UTF-8 FORMAT
+ $ascii = '';
+ $strlen_var = strlen($var);
+
+ /*
+ * Iterate over every character in the string,
+ * escaping with a slash or encoding to UTF-8 where necessary
+ */
+ for ($c = 0; $c < $strlen_var; ++$c) {
+
+ $ord_var_c = ord($var{$c});
+
+ switch (true) {
+ case $ord_var_c == 0x08:
+ $ascii .= '\b';
+ break;
+ case $ord_var_c == 0x09:
+ $ascii .= '\t';
+ break;
+ case $ord_var_c == 0x0A:
+ $ascii .= '\n';
+ break;
+ case $ord_var_c == 0x0C:
+ $ascii .= '\f';
+ break;
+ case $ord_var_c == 0x0D:
+ $ascii .= '\r';
+ break;
+
+ case $ord_var_c == 0x22:
+ case $ord_var_c == 0x2F:
+ case $ord_var_c == 0x5C:
+ // double quote, slash, slosh
+ $ascii .= '\\'.$var{$c};
+ break;
+
+ case (($ord_var_c >= 0x20) && ($ord_var_c <= 0x7F)):
+ // characters U-00000000 - U-0000007F (same as ASCII)
+ $ascii .= $var{$c};
+ break;
+
+ case (($ord_var_c & 0xE0) == 0xC0):
+ // characters U-00000080 - U-000007FF, mask 110X XX XX
+ // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
+ $char = pack('C*', $ord_var_c, ord($var{$c + 1}));
+ $c += 1;
+ $utf16 = $this->utf82utf16($char);
+ $ascii .= sprintf('\u%04s', bin2hex($utf16));
+ break;
+
+ case (($ord_var_c & 0xF0) == 0xE0):
+ // characters U-00000800 - U-0000FFFF, mask 1110X XX X
+ // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
+ $char = pack('C*', $ord_var_c,
+ ord($var{$c + 1}),
+ ord($var{$c + 2}));
+ $c += 2;
+ $utf16 = $this->utf82utf16($char);
+ $ascii .= sprintf('\u%04s', bin2hex($utf16));
+ break;
+
+ case (($ord_var_c & 0xF8) == 0xF0):
+ // characters U-00010000 - U-001FFFFF, mask 11110X XX
+ // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
+ $char = pack('C*', $ord_var_c,
+ ord($var{$c + 1}),
+ ord($var{$c + 2}),
+ ord($var{$c + 3}));
+ $c += 3;
+ $utf16 = $this->utf82utf16($char);
+ $ascii .= sprintf('\u%04s', bin2hex($utf16));
+ break;
+
+ case (($ord_var_c & 0xFC) == 0xF8):
+ // characters U-00200000 - U-03FFFFFF, mask 111110XX
+ // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
+ $char = pack('C*', $ord_var_c,
+ ord($var{$c + 1}),
+ ord($var{$c + 2}),
+ ord($var{$c + 3}),
+ ord($var{$c + 4}));
+ $c += 4;
+ $utf16 = $this->utf82utf16($char);
+ $ascii .= sprintf('\u%04s', bin2hex($utf16));
+ break;
+
+ case (($ord_var_c & 0xFE) == 0xFC):
+ // characters U-04000000 - U-7FFFFFFF, mask 1111110X
+ // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
+ $char = pack('C*', $ord_var_c,
+ ord($var{$c + 1}),
+ ord($var{$c + 2}),
+ ord($var{$c + 3}),
+ ord($var{$c + 4}),
+ ord($var{$c + 5}));
+ $c += 5;
+ $utf16 = $this->utf82utf16($char);
+ $ascii .= sprintf('\u%04s', bin2hex($utf16));
+ break;
+ }
+ }
+
+ return '"'.$ascii.'"';
+
+ case 'array':
+ /*
+ * As per JSON spec if any array key is not an integer
+ * we must treat the the whole array as an object. We
+ * also try to catch a sparsely populated associative
+ * array with numeric keys here because some JS engines
+ * will create an array with empty indexes up to
+ * max_index which can cause memory issues and because
+ * the keys, which may be relevant, will be remapped
+ * otherwise.
+ *
+ * As per the ECMA and JSON specification an object may
+ * have any string as a property. Unfortunately due to
+ * a hole in the ECMA specification if the key is a
+ * ECMA reserved word or starts with a digit the
+ * parameter is only accessible using ECMAScript's
+ * bracket notation.
+ */
+
+ // treat as a JSON object
+ if (is_array($var) && count($var) && (array_keys($var) !== range(0, sizeof($var) - 1))) {
+ $properties = array_map(array($this, 'name_value'),
+ array_keys($var),
+ array_values($var));
+
+ foreach($properties as $property) {
+ if(Services_JSON::isError($property)) {
+ return $property;
+ }
+ }
+
+ return '{' . join(',', $properties) . '}';
+ }
+
+ // treat it like a regular array
+ $elements = array_map(array($this, 'encode'), $var);
+
+ foreach($elements as $element) {
+ if(Services_JSON::isError($element)) {
+ return $element;
+ }
+ }
+
+ return '[' . join(',', $elements) . ']';
+
+ case 'object':
+ $vars = get_object_vars($var);
+
+ $properties = array_map(array($this, 'name_value'),
+ array_keys($vars),
+ array_values($vars));
+
+ foreach($properties as $property) {
+ if(Services_JSON::isError($property)) {
+ return $property;
+ }
+ }
+
+ return '{' . join(',', $properties) . '}';
+
+ default:
+ return ($this->use & SERVICES_JSON_SUPPRESS_ERRORS)
+ ? 'null'
+ : new Services_JSON_Error(gettype($var)." can not be encoded as JSON string");
+ }
+ }
+
+ /**
+ * array-walking function for use in generating JSON-formatted name-value pairs
+ *
+ * @param string $name name of key to use
+ * @param mixed $value reference to an array element to be encoded
+ *
+ * @return string JSON-formatted name-value pair, like '"name":value'
+ * @access private
+ */
+ function name_value($name, $value)
+ {
+ $encoded_value = $this->encode($value);
+
+ if(Services_JSON::isError($encoded_value)) {
+ return $encoded_value;
+ }
+
+ return $this->encode(strval($name)) . ':' . $encoded_value;
+ }
+
+ /**
+ * reduce a string by removing leading and trailing comments and whitespace
+ *
+ * @param $str string string value to strip of comments and whitespace
+ *
+ * @return string string value stripped of comments and whitespace
+ * @access private
+ */
+ function reduce_string($str)
+ {
+ $str = preg_replace(array(
+
+ // eliminate single line comments in '// ...' form
+ '#^\s*//(.+)$#m',
+
+ // eliminate multi-line comments in '/* ... */' form, at start of string
+ '#^\s*/\*(.+)\*/#Us',
+
+ // eliminate multi-line comments in '/* ... */' form, at end of string
+ '#/\*(.+)\*/\s*$#Us'
+
+ ), '', $str);
+
+ // eliminate extraneous space
+ return trim($str);
+ }
+
+ /**
+ * decodes a JSON string into appropriate variable
+ *
+ * @param string $str JSON-formatted string
+ *
+ * @return mixed number, boolean, string, array, or object
+ * corresponding to given JSON input string.
+ * See argument 1 to Services_JSON() above for object-output behavior.
+ * Note that decode() always returns strings
+ * in ASCII or UTF-8 format!
+ * @access public
+ */
+ function decode($str)
+ {
+ $str = $this->reduce_string($str);
+
+ switch (strtolower($str)) {
+ case 'true':
+ return true;
+
+ case 'false':
+ return false;
+
+ case 'null':
+ return null;
+
+ default:
+ $m = array();
+
+ if (is_numeric($str)) {
+ // Lookie-loo, it's a number
+
+ // This would work on its own, but I'm trying to be
+ // good about returning integers where appropriate:
+ // return (float)$str;
+
+ // Return float or int, as appropriate
+ return ((float)$str == (integer)$str)
+ ? (integer)$str
+ : (float)$str;
+
+ } elseif (preg_match('/^("|\').*(\1)$/s', $str, $m) && $m[1] == $m[2]) {
+ // STRINGS RETURNED IN UTF-8 FORMAT
+ $delim = substr($str, 0, 1);
+ $chrs = substr($str, 1, -1);
+ $utf8 = '';
+ $strlen_chrs = strlen($chrs);
+
+ for ($c = 0; $c < $strlen_chrs; ++$c) {
+
+ $substr_chrs_c_2 = substr($chrs, $c, 2);
+ $ord_chrs_c = ord($chrs{$c});
+
+ switch (true) {
+ case $substr_chrs_c_2 == '\b':
+ $utf8 .= chr(0x08);
+ ++$c;
+ break;
+ case $substr_chrs_c_2 == '\t':
+ $utf8 .= chr(0x09);
+ ++$c;
+ break;
+ case $substr_chrs_c_2 == '\n':
+ $utf8 .= chr(0x0A);
+ ++$c;
+ break;
+ case $substr_chrs_c_2 == '\f':
+ $utf8 .= chr(0x0C);
+ ++$c;
+ break;
+ case $substr_chrs_c_2 == '\r':
+ $utf8 .= chr(0x0D);
+ ++$c;
+ break;
+
+ case $substr_chrs_c_2 == '\\"':
+ case $substr_chrs_c_2 == '\\\'':
+ case $substr_chrs_c_2 == '\\\\':
+ case $substr_chrs_c_2 == '\\/':
+ if (($delim == '"' && $substr_chrs_c_2 != '\\\'') ||
+ ($delim == "'" && $substr_chrs_c_2 != '\\"')) {
+ $utf8 .= $chrs{++$c};
+ }
+ break;
+
+ case preg_match('/\\\u[0-9A-F]{4}/i', substr($chrs, $c, 6)):
+ // single, escaped unicode character
+ $utf16 = chr(hexdec(substr($chrs, ($c + 2), 2)))
+ . chr(hexdec(substr($chrs, ($c + 4), 2)));
+ $utf8 .= $this->utf162utf8($utf16);
+ $c += 5;
+ break;
+
+ case ($ord_chrs_c >= 0x20) && ($ord_chrs_c <= 0x7F):
+ $utf8 .= $chrs{$c};
+ break;
+
+ case ($ord_chrs_c & 0xE0) == 0xC0:
+ // characters U-00000080 - U-000007FF, mask 110XX X XX
+ //see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
+ $utf8 .= substr($chrs, $c, 2);
+ ++$c;
+ break;
+
+ case ($ord_chrs_c & 0xF0) == 0xE0:
+ // characters U-00000800 - U-0000FFFF, mask 1110X X XX
+ // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
+ $utf8 .= substr($chrs, $c, 3);
+ $c += 2;
+ break;
+
+ case ($ord_chrs_c & 0xF8) == 0xF0:
+ // characters U-00010000 - U-001FFFFF, mask 11110X XX
+ // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
+ $utf8 .= substr($chrs, $c, 4);
+ $c += 3;
+ break;
+
+ case ($ord_chrs_c & 0xFC) == 0xF8:
+ // characters U-00200000 - U-03FFFFFF, mask 111110XX
+ // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
+ $utf8 .= substr($chrs, $c, 5);
+ $c += 4;
+ break;
+
+ case ($ord_chrs_c & 0xFE) == 0xFC:
+ // characters U-04000000 - U-7FFFFFFF, mask 1111110X
+ // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
+ $utf8 .= substr($chrs, $c, 6);
+ $c += 5;
+ break;
+
+ }
+
+ }
+
+ return $utf8;
+
+ } elseif (preg_match('/^\[.*\]$/s', $str) || preg_match('/^\{.*\}$/s', $str)) {
+ // array, or object notation
+
+ if ($str{0} == '[') {
+ $stk = array(SERVICES_JSON_IN_ARR);
+ $arr = array();
+ } else {
+ if ($this->use & SERVICES_JSON_LOOSE_TYPE) {
+ $stk = array(SERVICES_JSON_IN_OBJ);
+ $obj = array();
+ } else {
+ $stk = array(SERVICES_JSON_IN_OBJ);
+ $obj = new stdClass();
+ }
+ }
+
+ array_push($stk, array('what' => SERVICES_JSON_SLICE,
+ 'where' => 0,
+ 'delim' => false));
+
+ $chrs = substr($str, 1, -1);
+ $chrs = $this->reduce_string($chrs);
+
+ if ($chrs == '') {
+ if (reset($stk) == SERVICES_JSON_IN_ARR) {
+ return $arr;
+
+ } else {
+ return $obj;
+
+ }
+ }
+
+ //print("\nparsing {$chrs}\n");
+
+ $strlen_chrs = strlen($chrs);
+
+ for ($c = 0; $c <= $strlen_chrs; ++$c) {
+
+ $top = end($stk);
+ $substr_chrs_c_2 = substr($chrs, $c, 2);
+
+ if (($c == $strlen_chrs) || (($chrs{$c} == ',') && ($top['what'] == SERVICES_JSON_SLICE))) {
+ // found a comma that is not inside a string, array, etc.,
+ // OR we've reached the end of the character list
+ $slice = substr($chrs, $top['where'], ($c - $top['where']));
+ array_push($stk, array('what' => SERVICES_JSON_SLICE, 'where' => ($c + 1), 'delim' => false));
+ //print("Found split at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n");
+
+ if (reset($stk) == SERVICES_JSON_IN_ARR) {
+ // we are in an array, so just push an element onto the stack
+ array_push($arr, $this->decode($slice));
+
+ } elseif (reset($stk) == SERVICES_JSON_IN_OBJ) {
+ // we are in an object, so figure
+ // out the property name and set an
+ // element in an associative array,
+ // for now
+ $parts = array();
+
+ if (preg_match('/^\s*(["\'].*[^\\\]["\'])\s*:\s*(\S.*),?$/Uis', $slice, $parts)) {
+ // "name":value pair
+ $key = $this->decode($parts[1]);
+ $val = $this->decode($parts[2]);
+
+ if ($this->use & SERVICES_JSON_LOOSE_TYPE) {
+ $obj[$key] = $val;
+ } else {
+ $obj->$key = $val;
+ }
+ } elseif (preg_match('/^\s*(\w+)\s*:\s*(\S.*),?$/Uis', $slice, $parts)) {
+ // name:value pair, where name is unquoted
+ $key = $parts[1];
+ $val = $this->decode($parts[2]);
+
+ if ($this->use & SERVICES_JSON_LOOSE_TYPE) {
+ $obj[$key] = $val;
+ } else {
+ $obj->$key = $val;
+ }
+ }
+
+ }
+
+ } elseif ((($chrs{$c} == '"') || ($chrs{$c} == "'")) && ($top['what'] != SERVICES_JSON_IN_STR)) {
+ // found a quote, and we are not inside a string
+ array_push($stk, array('what' => SERVICES_JSON_IN_STR, 'where' => $c, 'delim' => $chrs{$c}));
+ //print("Found start of string at {$c}\n");
+
+ } elseif (($chrs{$c} == $top['delim']) &&
+ ($top['what'] == SERVICES_JSON_IN_STR) &&
+ ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
+ // found a quote, we're in a string, and it's not escaped
+ // we know that it's not escaped becase there is _not_ an
+ // odd number of backslashes at the end of the string so far
+ array_pop($stk);
+ //print("Found end of string at {$c}: ".substr($chrs, $top['where'], (1 + 1 + $c - $top['where']))."\n");
+
+ } elseif (($chrs{$c} == '[') &&
+ in_array($top['what'], array(SERVICES_JSON_SLICE, SERVICES_JSON_IN_ARR, SERVICES_JSON_IN_OBJ))) {
+ // found a left-bracket, and we are in an array, object, or slice
+ array_push($stk, array('what' => SERVICES_JSON_IN_ARR, 'where' => $c, 'delim' => false));
+ //print("Found start of array at {$c}\n");
+
+ } elseif (($chrs{$c} == ']') && ($top['what'] == SERVICES_JSON_IN_ARR)) {
+ // found a right-bracket, and we're in an array
+ array_pop($stk);
+ //print("Found end of array at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n");
+
+ } elseif (($chrs{$c} == '{') &&
+ in_array($top['what'], array(SERVICES_JSON_SLICE, SERVICES_JSON_IN_ARR, SERVICES_JSON_IN_OBJ))) {
+ // found a left-brace, and we are in an array, object, or slice
+ array_push($stk, array('what' => SERVICES_JSON_IN_OBJ, 'where' => $c, 'delim' => false));
+ //print("Found start of object at {$c}\n");
+
+ } elseif (($chrs{$c} == '}') && ($top['what'] == SERVICES_JSON_IN_OBJ)) {
+ // found a right-brace, and we're in an object
+ array_pop($stk);
+ //print("Found end of object at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n");
+
+ } elseif (($substr_chrs_c_2 == '/*') &&
+ in_array($top['what'], array(SERVICES_JSON_SLICE, SERVICES_JSON_IN_ARR, SERVICES_JSON_IN_OBJ))) {
+ // found a comment start, and we are in an array, object, or slice
+ array_push($stk, array('what' => SERVICES_JSON_IN_CMT, 'where' => $c, 'delim' => false));
+ $c++;
+ //print("Found start of comment at {$c}\n");
+
+ } elseif (($substr_chrs_c_2 == '*/') && ($top['what'] == SERVICES_JSON_IN_CMT)) {
+ // found a comment end, and we're in one now
+ array_pop($stk);
+ $c++;
+
+ for ($i = $top['where']; $i <= $c; ++$i)
+ $chrs = substr_replace($chrs, ' ', $i, 1);
+
+ //print("Found end of comment at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n");
+
+ }
+
+ }
+
+ if (reset($stk) == SERVICES_JSON_IN_ARR) {
+ return $arr;
+
+ } elseif (reset($stk) == SERVICES_JSON_IN_OBJ) {
+ return $obj;
+
+ }
+
+ }
+ }
+ }
+
+ /**
+ * @t odo Ultimately, this should just call PEAR::isError()
+ */
+ function isError($data, $code = null)
+ {
+ if (class_exists('pear')) {
+ return PEAR::isError($data, $code);
+ } elseif (is_object($data) && (get_class($data) == 'services_json_error' ||
+ is_subclass_of($data, 'services_json_error'))) {
+ return true;
+ }
+
+ return false;
+ }
+}
+
+if (class_exists('PEAR_Error')) {
+
+ class Services_JSON_Error extends PEAR_Error
+ {
+ function Services_JSON_Error($message = 'unknown error', $code = null,
+ $mode = null, $options = null, $userinfo = null)
+ {
+ parent::PEAR_Error($message, $code, $mode, $options, $userinfo);
+ }
+ }
+
+} else {
+
+ /**
+ * @t odo Ultimately, this class shall be descended from PEAR_Error
+ */
+ class Services_JSON_Error
+ {
+ function Services_JSON_Error($message = 'unknown error', $code = null,
+ $mode = null, $options = null, $userinfo = null)
+ {
+
+ }
+ }
+
+}
+
+?>
diff --git a/framework/library/pdo/PDO.class.php b/framework/library/pdo/PDO.class.php
new file mode 100644
index 0000000..146f132
--- /dev/null
+++ b/framework/library/pdo/PDO.class.php
@@ -0,0 +1,358 @@
+= PHP 4
+ * @Dependencies PDO_mysql.class.php
+ * PDO_sqlite.class.php
+ * PDOStatement_mysql.class.php
+ * PDOStatement_sqlite.class.php
+ * @Author Andrea Giammarchi
+ * @Site http://www.devpro.it/
+ * @Mail andrea [ at ] 3site [ dot ] it
+ * @Date 2005/10/13
+ * @LastModified 2005/12/01 21:40
+ * @Version 0.1b - tested, supports only PostgreSQL, MySQL or SQLITE databases
+ */
+ class PDO {
+
+ /** Modified on 2005/12/01 to support new PDO constants on PHP 5.1.X */
+ const FETCH_ASSOC = PDO_FETCH_ASSOC;
+ const FETCH_NUM = PDO_FETCH_NUM;
+ const FETCH_BOTH = PDO_FETCH_BOTH;
+ const FETCH_OBJ = PDO_FETCH_OBJ;
+ const FETCH_LAZY = PDO_FETCH_LAZY;
+ const FETCH_BOUND = PDO_FETCH_BOUND;
+ const ATTR_SERVER_VERSION = PDO_ATTR_SERVER_VERSION;
+ const ATTR_CLIENT_VERSION = PDO_ATTR_CLIENT_VERSION;
+ const ATTR_SERVER_INFO = PDO_ATTR_SERVER_INFO;
+ const ATTR_PERSISTENT = PDO_ATTR_PERSISTENT;
+
+
+ /**
+ * 'Private' variables:
+ * __driver:PDO_* Dedicated PDO database class
+ */
+ var $__driver;
+
+ /**
+ * Public constructor
+ * http://us2.php.net/manual/en/function.pdo-construct.php
+ */
+ function PDO($string_dsn, $string_username = '', $string_password = '', $array_driver_options = null) {
+ $con = &$this->__getDNS($string_dsn);
+ if($con['dbtype'] === 'mysql') {
+ require_once('PDO_mysql.class.php');
+ if(isset($con['port']))
+ $con['host'] .= ':'.$con['port'];
+ $this->__driver = new PDO_mysql(
+ $con['host'],
+ $con['dbname'],
+ $string_username,
+ $string_password
+ );
+ }
+ elseif($con['dbtype'] === 'sqlite2' || $con['dbtype'] === 'sqlite') {
+ require_once('PDO_sqlite.class.php');
+ $this->__driver = new PDO_sqlite($con['dbname']);
+ }
+ elseif($con['dbtype'] === 'pgsql') {
+ require_once('PDO_pgsql.class.php');
+ $string_dsn = "host={$con['host']} dbname={$con['dbname']} user={$string_username} password={$string_password}";
+ if(isset($con['port']))
+ $string_dsn .= " port={$con['port']}";
+ $this->__driver = new PDO_pgsql($string_dsn);
+ }
+ }
+
+ /** UNSUPPORTED
+ * Public method
+ * http://us2.php.net/manual/en/function.pdo-begintransaction.php
+ */
+ function beginTransaction() {
+ $this->__driver->beginTransaction();
+ }
+
+ /** NOT NATIVE BUT MAYBE USEFULL FOR PHP < 5.1 PDO DRIVER
+ * Public method
+ * Calls database_close function.
+ * this->close( Void ):Boolean
+ * @Return Boolean True on success, false otherwise
+ */
+ function close() {
+ return $this->__driver->close();
+ }
+
+ /** UNSUPPORTED
+ * Public method
+ * http://us2.php.net/manual/en/function.pdo-commit.php
+ */
+ function commit() {
+ $this->__driver->commit();
+ }
+
+ /**
+ * Public method
+ * http://us2.php.net/manual/en/function.pdo-exec.php
+ */
+ function exec($query) {
+ return $this->__driver->exec($query);
+ }
+
+ /**
+ * Public method
+ * http://us2.php.net/manual/en/function.pdo-errorcode.php
+ */
+ function errorCode() {
+ return $this->__driver->errorCode();
+ }
+
+ /**
+ * Public method
+ * http://us2.php.net/manual/en/function.pdo-errorinfo.php
+ */
+ function errorInfo() {
+ return $this->__driver->errorInfo();
+ }
+
+ /** NOT TOTALLY UNSUPPORTED
+ * Public method
+ * http://us2.php.net/manual/en/function.pdo-getattribute.php
+ */
+ function getAttribute($attribute) {
+ return $this->__driver->getAttribute($attribute);
+ }
+
+ /**
+ * Public method
+ * http://us2.php.net/manual/en/function.pdo-lastinsertid.php
+ */
+ function lastInsertId() {
+ return $this->__driver->lastInsertId();
+ }
+
+ /**
+ * Public method
+ * http://us2.php.net/manual/en/function.pdo-prepare.php
+ */
+ function prepare($query, $array = Array()) {
+ return $this->__driver->prepare($query, $array = Array());
+ }
+
+ /**
+ * Public method
+ * http://us2.php.net/manual/en/function.pdo-query.php
+ */
+ function query($query) {
+ return $this->__driver->query($query);
+ }
+
+ /**
+ * Public method
+ * http://us2.php.net/manual/en/function.pdo-quote.php
+ */
+ function quote($string) {
+ return $this->__driver->quote($string);
+ }
+
+ /** UNSUPPORTED
+ * Public method
+ * http://us2.php.net/manual/en/function.pdo-rollback.php
+ */
+ function rollBack() {
+ $this->__driver->rollBack();
+ }
+
+ /** NOT TOTALLY UNSUPPORTED
+ * Public method
+ * http://us2.php.net/manual/en/function.pdo-setattribute.php
+ */
+ function setAttribute($attribute, $mixed) {
+ return $this->__driver->setAttribute($attribute, $mixed);
+ }
+
+ // PRIVATE METHOD [uncommented]
+ function __getDNS(&$string) {
+ $result = array();
+ $pos = strpos($string, ':');
+ $parameters = explode(';', substr($string, ($pos + 1)));
+ $result['dbtype'] = strtolower(substr($string, 0, $pos));
+ for($a = 0, $b = count($parameters); $a < $b; $a++) {
+ $tmp = explode('=', $parameters[$a]);
+ if(count($tmp) == 2)
+ $result[$tmp[0]] = $tmp[1];
+ else
+ $result['dbname'] = $parameters[$a];
+ }
+ return $result;
+ }
+ }
+}
+// If you have PHP 5.1 but want to test this class, declare PDO variables as _PDO variables
+else {
+ /**
+ * Class _PDO
+ * (C) Andrea Giammarchi
+ * Please read PDO class comments to know more
+ */
+ class _PDO {
+ const FETCH_ASSOC = PDO::FETCH_ASSOC;
+ const FETCH_NUM = PDO::FETCH_NUM;
+ const FETCH_BOTH = PDO::FETCH_BOTH;
+ const FETCH_OBJ = PDO::FETCH_OBJ;
+ const FETCH_LAZY = PDO::FETCH_LAZY;
+ const FETCH_BOUND = PDO::FETCH_BOUND;
+ const ATTR_SERVER_VERSION = PDO::ATTR_SERVER_VERSION;
+ const ATTR_CLIENT_VERSION = PDO::ATTR_CLIENT_VERSION;
+ const ATTR_SERVER_INFO = PDO::ATTR_SERVER_INFO;
+ const ATTR_PERSISTENT = PDO::ATTR_PERSISTENT;
+ var $__driver;
+ function _PDO($string_dsn, $string_username = '', $string_password = '', $array_driver_options = null) {
+ $con = &$this->__getDNS($string_dsn);
+ if($con['dbtype'] === 'mysql') {
+ require_once('PDO_mysql.class.php');
+ if(isset($con['port']))
+ $con['host'] .= ':'.$con['port'];
+ $this->__driver = new PDO_mysql(
+ $con['host'],
+ $con['dbname'],
+ $string_username,
+ $string_password
+ );
+ }
+ elseif($con['dbtype'] === 'sqlite2' || $con['dbtype'] === 'sqlite') {
+ require_once('PDO_sqlite.class.php');
+ $this->__driver = new PDO_sqlite($con['dbname']);
+ }
+ elseif($con['dbtype'] === 'pgsql') {
+ require_once('PDO_pgsql.class.php');
+ $string_dsn = "host={$con['host']} dbname={$con['dbname']} user={$string_username} password={$string_password}";
+ if(isset($con['port']))
+ $string_dsn .= " port={$con['port']}";
+ $this->__driver = new PDO_pgsql($string_dsn);
+ }
+ }
+ function beginTransaction() {
+ $this->__driver->beginTransaction();
+ }
+ function close() {
+ return $this->__driver->close();
+ }
+ function commit() {
+ $this->__driver->commit();
+ }
+ function exec($query) {
+ return $this->__driver->exec($query);
+ }
+ function errorCode() {
+ return $this->__driver->errorCode();
+ }
+ function errorInfo() {
+ return $this->__driver->errorInfo();
+ }
+ function getAttribute($attribute) {
+ return $this->__driver->getAttribute($attribute);
+ }
+ function lastInsertId() {
+ return $this->__driver->lastInsertId();
+ }
+ function prepare($query, $array = Array()) {
+ return $this->__driver->prepare($query, $array = Array());
+ }
+ function query($query) {
+ return $this->__driver->query($query);
+ }
+ function quote($string) {
+ return $this->__driver->quote($string);
+ }
+ function rollBack() {
+ $this->__driver->rollBack();
+ }
+ function setAttribute($attribute, $mixed) {
+ return $this->__driver->setAttribute($attribute, $mixed);
+ }
+ function __getDNS(&$string) {
+ $result = array();
+ $pos = strpos($string, ':');
+ $parameters = explode(';', substr($string, ($pos + 1)));
+ $result['dbtype'] = strtolower(substr($string, 0, $pos));
+ for($a = 0, $b = count($parameters); $a < $b; $a++) {
+ $tmp = explode('=', $parameters[$a]);
+ if(count($tmp) == 2)
+ $result[$tmp[0]] = $tmp[1];
+ else
+ $result['dbname'] = $parameters[$a];
+ }
+ return $result;
+ }
+ }
+}
+?>
\ No newline at end of file
diff --git a/framework/library/pdo/PDOStatement_mysql.class.php b/framework/library/pdo/PDOStatement_mysql.class.php
new file mode 100644
index 0000000..e8c3999
--- /dev/null
+++ b/framework/library/pdo/PDOStatement_mysql.class.php
@@ -0,0 +1,368 @@
+= PHP 4
+ * @Dependencies PDO.class.php
+ * PDO_mysql.class.php
+ * @Author Andrea Giammarchi
+ * @Site http://www.devpro.it/
+ * @Mail andrea [ at ] 3site [ dot ] it
+ * @Date 2005/10/13
+ * @LastModified 2006/01/29 09:30 [fixed execute bug]
+ * @Version 0.1b - tested
+ */
+class PDOStatement_mysql {
+
+ /**
+ * 'Private' variables:
+ * __connection:Resource Database connection
+ * __dbinfo:Array Array with 4 elements used to manage connection
+ * __persistent:Boolean Connection mode, is true on persistent, false on normal (deafult) connection
+ * __query:String Last query used
+ * __result:Resource Last result from last query
+ * __fetchmode:Integer constant PDO_FETCH_* result mode
+ * __errorCode:String Last error string code
+ * __errorInfo:Array Last error informations, code, number, details
+ * __boundParams:Array Stored bindParam
+ */
+ var $__connection;
+ var $__dbinfo;
+ var $__persistent = false;
+ var $__query = '';
+ var $__result = null;
+ var $__fetchmode = PDO::FETCH_BOTH;
+ var $__errorCode = '';
+ var $__errorInfo = Array('');
+ var $__boundParams = Array();
+
+ /**
+ * Public constructor:
+ * Called from PDO to create a PDOStatement for this database
+ * new PDOStatement_sqlite( &$__query:String, &$__connection:Resource, $__dbinfo:Array )
+ * @Param String query to prepare
+ * @Param Resource database connection
+ * @Param Array 4 elements array to manage connection
+ */
+ function PDOStatement_mysql(&$__query, &$__connection, &$__dbinfo) {
+ $this->__query = &$__query;
+ $this->__connection = &$__connection;
+ $this->__dbinfo = &$__dbinfo;
+ }
+
+ /**
+ * Public method:
+ * Replace ? or :named values to execute prepared query
+ * this->bindParam( $mixed:Mixed, &$variable:Mixed, $type:Integer, $lenght:Integer ):Void
+ * @Param Mixed Integer or String to replace prepared value
+ * @Param Mixed variable to replace
+ * @Param Integer this variable is not used but respects PDO original accepted parameters
+ * @Param Integer this variable is not used but respects PDO original accepted parameters
+ */
+ function bindParam($mixed, &$variable, $type = null, $lenght = null) {
+ if(is_string($mixed))
+ $this->__boundParams[$mixed] = $variable;
+ else
+ array_push($this->__boundParams, $variable);
+ }
+
+ /**
+ * Public method:
+ * Checks if query was valid and returns how may fields returns
+ * this->columnCount( void ):Void
+ */
+ function columnCount() {
+ $result = 0;
+ if(!is_null($this->__result))
+ $result = mysql_num_fields($this->__result);
+ return $result;
+ }
+
+ /**
+ * Public method:
+ * Returns a code rappresentation of an error
+ * this->errorCode( void ):String
+ * @Return String String rappresentation of the error
+ */
+ function errorCode() {
+ return $this->__errorCode;
+ }
+
+ /**
+ * Public method:
+ * Returns an array with error informations
+ * this->errorInfo( void ):Array
+ * @Return Array Array with 3 keys:
+ * 0 => error code
+ * 1 => error number
+ * 2 => error string
+ */
+ function errorInfo() {
+ return $this->__errorInfo;
+ }
+
+ /**
+ * Public method:
+ * Excecutes a query and returns true on success or false.
+ * this->exec( $array:Array ):Boolean
+ * @Param Array If present, it should contain all replacements for prepared query
+ * @Return Boolean true if query has been done without errors, false otherwise
+ */
+ function execute($array = Array()) {
+ if(count($this->__boundParams) > 0)
+ $array = &$this->__boundParams;
+ $__query = $this->__query;
+ if(count($array) > 0) {
+ foreach($array as $k => $v) {
+ if(!is_int($k) || substr($k, 0, 1) === ':') {
+ if(!isset($tempf))
+ $tempf = $tempr = array();
+ array_push($tempf, $k);
+ if (strexists($v, '\u')) {
+ $v = str_replace('\u', '\\\\u', $v);
+ }
+ if (strexists($v, '\"')) {
+ $v = str_replace('\"', '\\\\"', $v);
+ }
+ array_push($tempr, '"'.mysql_escape_string($v).'"');
+ }
+ else {
+ $parse = create_function('$v', 'return \'"\'.mysql_escape_string($v).\'"\';');
+ $__query = preg_replace("/(\?)/e", '$parse($array[$k++]);', $__query);
+ break;
+ }
+ }
+ if(isset($tempf)) {
+ foreach ($tempf as $k=>$v) {
+ $search[$k] = '/' . preg_quote($tempf[$k],'`') . '\b/';
+ }
+ $__query = preg_replace($search, $tempr, $__query);
+ //$__query = str_replace($tempf, $tempr, $__query);
+ }
+ }
+ if(is_null($this->__result = &$this->__uquery($__query)))
+ $keyvars = false;
+ else
+ $keyvars = true;
+ $this->__boundParams = array();
+ return $keyvars;
+ }
+
+ /**
+ * Public method:
+ * Returns, if present, next row of executed query or false.
+ * this->fetch( $mode:Integer, $cursor:Integer, $offset:Integer ):Mixed
+ * @Param Integer PDO_FETCH_* constant to know how to read next row, default PDO_FETCH_BOTH
+ * NOTE: if $mode is omitted is used default setted mode, PDO_FETCH_BOTH
+ * @Param Integer this variable is not used but respects PDO original accepted parameters
+ * @Param Integer this variable is not used but respects PDO original accepted parameters
+ * @Return Mixed Next row of executed query or false if there is nomore.
+ */
+ function fetch($mode = PDO_FETCH_ASSOC, $cursor = null, $offset = null) {
+ if(func_num_args() == 0)
+ $mode = &$this->__fetchmode;
+ $result = false;
+ if(!is_null($this->__result)) {
+ switch($mode) {
+ case PDO::FETCH_NUM:
+ $result = mysql_fetch_row($this->__result);
+ break;
+ case PDO::FETCH_ASSOC:
+ $result = mysql_fetch_assoc($this->__result);
+ break;
+ case PDO::FETCH_OBJ:
+ $result = mysql_fetch_object($this->__result);
+ break;
+ case PDO::FETCH_BOTH:
+ default:
+ $result = mysql_fetch_array($this->__result);
+ break;
+ }
+ }
+ if(!$result)
+ $this->__result = null;
+ return $result;
+ }
+
+ /**
+ * Public method:
+ * Returns an array with all rows of executed query.
+ * this->fetchAll( $mode:Integer ):Array
+ * @Param Integer PDO_FETCH_* constant to know how to read all rows, default PDO_FETCH_BOTH
+ * NOTE: this doesn't work as fetch method, then it will use always PDO_FETCH_BOTH
+ * if this param is omitted
+ * @Return Array An array with all fetched rows
+ */
+ function fetchAll($mode = PDO_FETCH_ASSOC) {
+ $result = array();
+ if(!is_null($this->__result)) {
+ switch($mode) {
+ case PDO::FETCH_NUM:
+ while($r = mysql_fetch_row($this->__result))
+ array_push($result, $r);
+ break;
+ case PDO::FETCH_ASSOC:
+ while($r = mysql_fetch_assoc($this->__result))
+ array_push($result, $r);
+ break;
+ case PDO::FETCH_OBJ:
+ while($r = mysql_fetch_object($this->__result))
+ array_push($result, $r);
+ break;
+ case PDO::FETCH_BOTH:
+ default:
+ while($r = mysql_fetch_array($this->__result))
+ array_push($result, $r);
+ break;
+ }
+ }
+ $this->__result = null;
+ return $result;
+ }
+
+ /**
+ * Public method:
+ * Returns, if present, first column of next row of executed query
+ * this->fetchSingle( void ):Mixed
+ * @Return Mixed Null or next row's first column
+ */
+ function fetchSingle() {
+ $result = null;
+ if(!is_null($this->__result)) {
+ $result = @mysql_fetch_row($this->__result);
+ if($result)
+ $result = $result[0];
+ else
+ $this->__result = null;
+ }
+ return $result;
+ }
+
+ function fetchColumn($column=0) {
+ $row = mysql_fetch_row($this->__result);
+ return $row[$column];
+ }
+
+ /**
+ * Public method:
+ * Returns number of last affected database rows
+ * this->rowCount( void ):Integer
+ * @Return Integer number of last affected rows
+ * NOTE: works with INSERT, UPDATE and DELETE query type
+ */
+ function rowCount() {
+ return mysql_affected_rows($this->__connection);
+ }
+
+
+ // NOT TOTALLY SUPPORTED PUBLIC METHODS
+ /**
+ * Public method:
+ * Quotes correctly a string for this database
+ * this->getAttribute( $attribute:Integer ):Mixed
+ * @Param Integer a constant [ PDO_ATTR_SERVER_INFO,
+ * PDO_ATTR_SERVER_VERSION,
+ * PDO_ATTR_CLIENT_VERSION,
+ * PDO_ATTR_PERSISTENT ]
+ * @Return Mixed correct information or false
+ */
+ function getAttribute($attribute) {
+ $result = false;
+ switch($attribute) {
+ case PDO_ATTR_SERVER_INFO:
+ $result = mysql_get_host_info($this->__connection);
+ break;
+ case PDO_ATTR_SERVER_VERSION:
+ $result = mysql_get_server_info($this->__connection);
+ break;
+ case PDO_ATTR_CLIENT_VERSION:
+ $result = mysql_get_client_info();
+ break;
+ case PDO_ATTR_PERSISTENT:
+ $result = $this->__persistent;
+ break;
+ }
+ return $result;
+ }
+
+ /**
+ * Public method:
+ * Sets database attributes, in this version only connection mode.
+ * this->setAttribute( $attribute:Integer, $mixed:Mixed ):Boolean
+ * @Param Integer PDO_* constant, in this case only PDO_ATTR_PERSISTENT
+ * @Param Mixed value for PDO_* constant, in this case a Boolean value
+ * true for permanent connection, false for default not permament connection
+ * @Return Boolean true on change, false otherwise
+ */
+ function setAttribute($attribute, $mixed) {
+ $result = false;
+ if($attribute === PDO_ATTR_PERSISTENT && $mixed != $this->__persistent) {
+ $result = true;
+ $this->__persistent = (boolean) $mixed;
+ mysql_close($this->__connection);
+ if($this->__persistent === true)
+ $this->__connection = &mysql_pconnect($this->__dbinfo[0], $this->__dbinfo[1], $this->__dbinfo[2]);
+ else
+ $this->__connection = &mysql_connect($this->__dbinfo[0], $this->__dbinfo[1], $this->__dbinfo[2]);
+ mysql_select_db($this->__dbinfo[3], $this->__connection);
+ }
+ return $result;
+ }
+
+ /**
+ * Public method:
+ * Sets default fetch mode to use with this->fetch() method.
+ * this->setFetchMode( $mode:Integer ):Boolean
+ * @Param Integer PDO_FETCH_* constant to use while reading an execute query with fetch() method.
+ * NOTE: PDO_FETCH_LAZY and PDO_FETCH_BOUND are not supported
+ * @Return Boolean true on change, false otherwise
+ */
+ function setFetchMode($mode) {
+ $result = false;
+ switch($mode) {
+ case PDO_FETCH_NUM:
+ case PDO_FETCH_ASSOC:
+ case PDO_FETCH_OBJ:
+ case PDO_FETCH_BOTH:
+ $result = true;
+ $this->__fetchmode = &$mode;
+ break;
+ }
+ return $result;
+ }
+
+
+ // UNSUPPORTED PUBLIC METHODS
+ function bindColumn($mixewd, &$param, $type = null, $max_length = null, $driver_option = null) {
+ return false;
+ }
+
+ function __setErrors($er) {
+ if(!is_resource($this->__connection)) {
+ $errno = mysql_errno();
+ $errst = mysql_error();
+ }
+ else {
+ $errno = mysql_errno($this->__connection);
+ $errst = mysql_error($this->__connection);
+ }
+ $this->__errorCode = &$er;
+ $this->__errorInfo = Array($this->__errorCode, $errno, $errst);
+ $this->__result = null;
+ }
+
+ function __uquery(&$query) {
+ if(!@$query = mysql_query($query, $this->__connection)) {
+ $this->__setErrors('SQLER');
+ $query = null;
+ }
+ return $query;
+ }
+
+}
+?>
\ No newline at end of file
diff --git a/framework/library/pdo/PDO_mysql.class.php b/framework/library/pdo/PDO_mysql.class.php
new file mode 100644
index 0000000..23ce67b
--- /dev/null
+++ b/framework/library/pdo/PDO_mysql.class.php
@@ -0,0 +1,265 @@
+= PHP 4
+ * @Dependencies PDO.class.php
+ * PDOStatement_mysql.class.php
+ * @Author Andrea Giammarchi
+ * @Site http://www.devpro.it/
+ * @Mail andrea [ at ] 3site [ dot ] it
+ * @Date 2005/10/13
+ * @LastModified 2005/18/14 12:30
+ * @Version 0.1 - tested
+ */
+class PDO_mysql {
+
+ /**
+ * 'Private' variables:
+ * __connection:Resource Database connection
+ * __dbinfo:Array Array with 4 elements used to manage connection
+ * __persistent:Boolean Connection mode, is true on persistent, false on normal (deafult) connection
+ * __errorCode:String Last error code
+ * __errorInfo:Array Detailed errors
+ */
+ var $__connection;
+ var $__dbinfo;
+ var $__persistent = false;
+ var $__errorCode = '';
+ var $__errorInfo = Array('');
+
+ /**
+ * Public constructor:
+ * Checks connection and database selection
+ * new PDO_mysql( &$host:String, &$db:String, &$user:String, &$pass:String )
+ * @Param String host with or without port info
+ * @Param String database name
+ * @Param String database user
+ * @Param String database password
+ */
+ function PDO_mysql(&$host, &$db, &$user, &$pass) {
+ if(!@$this->__connection = &mysql_connect($host, $user, $pass))
+ $this->__setErrors('DBCON');
+ else {
+ if(!@mysql_select_db($db, $this->__connection))
+ $this->__setErrors('DBER');
+ else
+ $this->__dbinfo = Array($host, $user, $pass, $db);
+ }
+ }
+
+ /** NOT NATIVE BUT MAYBE USEFULL FOR PHP < 5.1 PDO DRIVER
+ * Public method
+ * Calls mysql_close function.
+ * this->close( Void ):Boolean
+ * @Return Boolean True on success, false otherwise
+ */
+ function close() {
+ $result = is_resource($this->__connection);
+ if($result) {
+ mysql_close($this->__connection);
+ }
+ return $result;
+ }
+
+ /**
+ * Public method:
+ * Returns a code rappresentation of an error
+ * this->errorCode( void ):String
+ * @Return String String rappresentation of the error
+ */
+ function errorCode() {
+ return $this->__errorCode;
+ }
+
+ /**
+ * Public method:
+ * Returns an array with error informations
+ * this->errorInfo( void ):Array
+ * @Return Array Array with 3 keys:
+ * 0 => error code
+ * 1 => error number
+ * 2 => error string
+ */
+ function errorInfo() {
+ return $this->__errorInfo;
+ }
+
+ /**
+ * Public method:
+ * Excecutes a query and returns affected rows
+ * this->exec( $query:String ):Mixed
+ * @Param String query to execute
+ * @Return Mixed Number of affected rows or false on bad query.
+ */
+ function exec($query) {
+ $result = 0;
+ if(!is_null($this->__uquery($query)))
+ $result = mysql_affected_rows($this->__connection);
+ if(is_null($result))
+ $result = false;
+ return $result;
+ }
+
+ /**
+ * Public method:
+ * Returns last inserted id
+ * this->lastInsertId( void ):Number
+ * @Return Number Last inserted id
+ */
+ function lastInsertId() {
+ $id = mysql_insert_id($this->__connection);
+ if ($id > 0) {
+ return $id;
+ } else {
+ $query = $this->prepare('SELECT last_insert_id()');
+ $query->execute();
+ return $query->fetchColumn();
+ }
+ }
+
+ /**
+ * Public method:
+ * Returns a new PDOStatement
+ * this->prepare( $query:String, $array:Array ):PDOStatement
+ * @Param String query to prepare
+ * @Param Array this variable is not used but respects PDO original accepted parameters
+ * @Return PDOStatement new PDOStatement to manage
+ */
+ function prepare($query, $array = Array()) {
+ return new PDOStatement_mysql($query, $this->__connection, $this->__dbinfo);
+ }
+
+ /**
+ * Public method:
+ * Executes directly a query and returns an array with result or false on bad query
+ * this->query( $query:String ):Mixed
+ * @Param String query to execute
+ * @Return Mixed false on error, array with all info on success
+ */
+ function query($query) {
+ $query = @mysql_unbuffered_query($query, $this->__connection);
+ if($query) {
+ $result = Array();
+ while($r = mysql_fetch_assoc($query))
+ array_push($result, $r);
+ }
+ else {
+ $result = false;
+ $this->__setErrors('SQLER');
+ }
+ return $result;
+ }
+
+ /**
+ * Public method:
+ * Quotes correctly a string for this database
+ * this->quote( $string:String ):String
+ * @Param String string to quote
+ * @Return String a correctly quoted string
+ */
+ function quote($string) {
+ return ('"'.mysql_escape_string($string).'"');
+ }
+
+
+ // NOT TOTALLY SUPPORTED PUBLIC METHODS
+ /**
+ * Public method:
+ * Quotes correctly a string for this database
+ * this->getAttribute( $attribute:Integer ):Mixed
+ * @Param Integer a constant [ PDO_ATTR_SERVER_INFO,
+ * PDO_ATTR_SERVER_VERSION,
+ * PDO_ATTR_CLIENT_VERSION,
+ * PDO_ATTR_PERSISTENT ]
+ * @Return Mixed correct information or false
+ */
+ function getAttribute($attribute) {
+ $result = false;
+ switch($attribute) {
+ case PDO_ATTR_SERVER_INFO:
+ $result = mysql_get_host_info($this->__connection);
+ break;
+ case PDO_ATTR_SERVER_VERSION:
+ $result = mysql_get_server_info($this->__connection);
+ break;
+ case PDO_ATTR_CLIENT_VERSION:
+ $result = mysql_get_client_info();
+ break;
+ case PDO_ATTR_PERSISTENT:
+ $result = $this->__persistent;
+ break;
+ }
+ return $result;
+ }
+
+ /**
+ * Public method:
+ * Sets database attributes, in this version only connection mode.
+ * this->setAttribute( $attribute:Integer, $mixed:Mixed ):Boolean
+ * @Param Integer PDO_* constant, in this case only PDO_ATTR_PERSISTENT
+ * @Param Mixed value for PDO_* constant, in this case a Boolean value
+ * true for permanent connection, false for default not permament connection
+ * @Return Boolean true on change, false otherwise
+ */
+ function setAttribute($attribute, $mixed) {
+ $result = false;
+ if($attribute === PDO_ATTR_PERSISTENT && $mixed != $this->__persistent) {
+ $result = true;
+ $this->__persistent = (boolean) $mixed;
+ mysql_close($this->__connection);
+ if($this->__persistent === true)
+ $this->__connection = &mysql_pconnect($this->__dbinfo[0], $this->__dbinfo[1], $this->__dbinfo[2]);
+ else
+ $this->__connection = &mysql_connect($this->__dbinfo[0], $this->__dbinfo[1], $this->__dbinfo[2]);
+ mysql_select_db($this->__dbinfo[3], $this->__connection);
+ }
+ return $result;
+ }
+
+
+ // UNSUPPORTED PUBLIC METHODS
+ function beginTransaction() {
+ return false;
+ }
+
+ function commit() {
+ return false;
+ }
+
+ function rollBack() {
+ return false;
+ }
+
+
+ // PRIVATE METHODS [ UNCOMMENTED ]
+ function __setErrors($er) {
+ if(!is_resource($this->__connection)) {
+ $errno = mysql_errno();
+ $errst = mysql_error();
+ }
+ else {
+ $errno = mysql_errno($this->__connection);
+ $errst = mysql_error($this->__connection);
+ }
+ $this->__errorCode = &$er;
+ $this->__errorInfo = Array($this->__errorCode, $errno, $errst);
+ }
+
+ function __uquery(&$query) {
+ if(!@$query = mysql_query($query, $this->__connection)) {
+ $this->__setErrors('SQLER');
+ $query = null;
+ }
+ return $query;
+ }
+}
+?>
\ No newline at end of file
diff --git a/framework/library/phpexcel/PHPExcel/CachedObjectStorage/APC.php b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/APC.php
new file mode 100644
index 0000000..044f453
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/APC.php
@@ -0,0 +1,295 @@
+_currentCellIsDirty) {
+ $this->_currentObject->detach();
+
+ if (!apc_store($this->_cachePrefix.$this->_currentObjectID.'.cache',serialize($this->_currentObject),$this->_cacheTime)) {
+ $this->__destruct();
+ throw new PHPExcel_Exception('Failed to store cell '.$this->_currentObjectID.' in APC');
+ }
+ $this->_currentCellIsDirty = false;
+ }
+ $this->_currentObjectID = $this->_currentObject = null;
+ } // function _storeData()
+
+
+ /**
+ * Add or Update a cell in cache identified by coordinate address
+ *
+ * @access public
+ * @param string $pCoord Coordinate address of the cell to update
+ * @param PHPExcel_Cell $cell Cell to update
+ * @return void
+ * @throws PHPExcel_Exception
+ */
+ public function addCacheData($pCoord, PHPExcel_Cell $cell) {
+ if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
+ $this->_storeData();
+ }
+ $this->_cellCache[$pCoord] = true;
+
+ $this->_currentObjectID = $pCoord;
+ $this->_currentObject = $cell;
+ $this->_currentCellIsDirty = true;
+
+ return $cell;
+ } // function addCacheData()
+
+
+ /**
+ * Is a value set in the current PHPExcel_CachedObjectStorage_ICache for an indexed cell?
+ *
+ * @access public
+ * @param string $pCoord Coordinate address of the cell to check
+ * @return void
+ * @return boolean
+ */
+ public function isDataSet($pCoord) {
+ // Check if the requested entry is the current object, or exists in the cache
+ if (parent::isDataSet($pCoord)) {
+ if ($this->_currentObjectID == $pCoord) {
+ return true;
+ }
+ // Check if the requested entry still exists in apc
+ $success = apc_fetch($this->_cachePrefix.$pCoord.'.cache');
+ if ($success === FALSE) {
+ // Entry no longer exists in APC, so clear it from the cache array
+ parent::deleteCacheData($pCoord);
+ throw new PHPExcel_Exception('Cell entry '.$pCoord.' no longer exists in APC cache');
+ }
+ return true;
+ }
+ return false;
+ } // function isDataSet()
+
+
+ /**
+ * Get cell at a specific coordinate
+ *
+ * @access public
+ * @param string $pCoord Coordinate of the cell
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Cell Cell that was found, or null if not found
+ */
+ public function getCacheData($pCoord) {
+ if ($pCoord === $this->_currentObjectID) {
+ return $this->_currentObject;
+ }
+ $this->_storeData();
+
+ // Check if the entry that has been requested actually exists
+ if (parent::isDataSet($pCoord)) {
+ $obj = apc_fetch($this->_cachePrefix.$pCoord.'.cache');
+ if ($obj === FALSE) {
+ // Entry no longer exists in APC, so clear it from the cache array
+ parent::deleteCacheData($pCoord);
+ throw new PHPExcel_Exception('Cell entry '.$pCoord.' no longer exists in APC cache');
+ }
+ } else {
+ // Return null if requested entry doesn't exist in cache
+ return null;
+ }
+
+ // Set current entry to the requested entry
+ $this->_currentObjectID = $pCoord;
+ $this->_currentObject = unserialize($obj);
+ // Re-attach this as the cell's parent
+ $this->_currentObject->attach($this);
+
+ // Return requested entry
+ return $this->_currentObject;
+ } // function getCacheData()
+
+
+ /**
+ * Get a list of all cell addresses currently held in cache
+ *
+ * @return array of string
+ */
+ public function getCellList() {
+ if ($this->_currentObjectID !== null) {
+ $this->_storeData();
+ }
+
+ return parent::getCellList();
+ }
+
+
+ /**
+ * Delete a cell in cache identified by coordinate address
+ *
+ * @access public
+ * @param string $pCoord Coordinate address of the cell to delete
+ * @throws PHPExcel_Exception
+ */
+ public function deleteCacheData($pCoord) {
+ // Delete the entry from APC
+ apc_delete($this->_cachePrefix.$pCoord.'.cache');
+
+ // Delete the entry from our cell address array
+ parent::deleteCacheData($pCoord);
+ } // function deleteCacheData()
+
+
+ /**
+ * Clone the cell collection
+ *
+ * @access public
+ * @param PHPExcel_Worksheet $parent The new worksheet
+ * @throws PHPExcel_Exception
+ * @return void
+ */
+ public function copyCellCollection(PHPExcel_Worksheet $parent) {
+ parent::copyCellCollection($parent);
+ // Get a new id for the new file name
+ $baseUnique = $this->_getUniqueID();
+ $newCachePrefix = substr(md5($baseUnique),0,8).'.';
+ $cacheList = $this->getCellList();
+ foreach($cacheList as $cellID) {
+ if ($cellID != $this->_currentObjectID) {
+ $obj = apc_fetch($this->_cachePrefix.$cellID.'.cache');
+ if ($obj === FALSE) {
+ // Entry no longer exists in APC, so clear it from the cache array
+ parent::deleteCacheData($cellID);
+ throw new PHPExcel_Exception('Cell entry '.$cellID.' no longer exists in APC');
+ }
+ if (!apc_store($newCachePrefix.$cellID.'.cache',$obj,$this->_cacheTime)) {
+ $this->__destruct();
+ throw new PHPExcel_Exception('Failed to store cell '.$cellID.' in APC');
+ }
+ }
+ }
+ $this->_cachePrefix = $newCachePrefix;
+ } // function copyCellCollection()
+
+
+ /**
+ * Clear the cell collection and disconnect from our parent
+ *
+ * @return void
+ */
+ public function unsetWorksheetCells() {
+ if ($this->_currentObject !== NULL) {
+ $this->_currentObject->detach();
+ $this->_currentObject = $this->_currentObjectID = null;
+ }
+
+ // Flush the APC cache
+ $this->__destruct();
+
+ $this->_cellCache = array();
+
+ // detach ourself from the worksheet, so that it can then delete this object successfully
+ $this->_parent = null;
+ } // function unsetWorksheetCells()
+
+
+ /**
+ * Initialise this new cell collection
+ *
+ * @param PHPExcel_Worksheet $parent The worksheet for this cell collection
+ * @param array of mixed $arguments Additional initialisation arguments
+ */
+ public function __construct(PHPExcel_Worksheet $parent, $arguments) {
+ $cacheTime = (isset($arguments['cacheTime'])) ? $arguments['cacheTime'] : 600;
+
+ if ($this->_cachePrefix === NULL) {
+ $baseUnique = $this->_getUniqueID();
+ $this->_cachePrefix = substr(md5($baseUnique),0,8).'.';
+ $this->_cacheTime = $cacheTime;
+
+ parent::__construct($parent);
+ }
+ } // function __construct()
+
+
+ /**
+ * Destroy this cell collection
+ */
+ public function __destruct() {
+ $cacheList = $this->getCellList();
+ foreach($cacheList as $cellID) {
+ apc_delete($this->_cachePrefix.$cellID.'.cache');
+ }
+ } // function __destruct()
+
+
+ /**
+ * Identify whether the caching method is currently available
+ * Some methods are dependent on the availability of certain extensions being enabled in the PHP build
+ *
+ * @return boolean
+ */
+ public static function cacheMethodIsAvailable() {
+ if (!function_exists('apc_store')) {
+ return FALSE;
+ }
+ if (apc_sma_info() === FALSE) {
+ return FALSE;
+ }
+
+ return TRUE;
+ }
+
+}
diff --git a/framework/library/phpexcel/PHPExcel/CachedObjectStorage/CacheBase.php b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/CacheBase.php
new file mode 100644
index 0000000..1bb931b
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/CacheBase.php
@@ -0,0 +1,318 @@
+_parent = $parent;
+ } // function __construct()
+
+
+ /**
+ * Return the parent worksheet for this cell collection
+ *
+ * @return PHPExcel_Worksheet
+ */
+ public function getParent()
+ {
+ return $this->_parent;
+ }
+
+ /**
+ * Is a value set in the current PHPExcel_CachedObjectStorage_ICache for an indexed cell?
+ *
+ * @param string $pCoord Coordinate address of the cell to check
+ * @return boolean
+ */
+ public function isDataSet($pCoord) {
+ if ($pCoord === $this->_currentObjectID) {
+ return true;
+ }
+ // Check if the requested entry exists in the cache
+ return isset($this->_cellCache[$pCoord]);
+ } // function isDataSet()
+
+
+ /**
+ * Move a cell object from one address to another
+ *
+ * @param string $fromAddress Current address of the cell to move
+ * @param string $toAddress Destination address of the cell to move
+ * @return boolean
+ */
+ public function moveCell($fromAddress, $toAddress) {
+ if ($fromAddress === $this->_currentObjectID) {
+ $this->_currentObjectID = $toAddress;
+ }
+ $this->_currentCellIsDirty = true;
+ if (isset($this->_cellCache[$fromAddress])) {
+ $this->_cellCache[$toAddress] = &$this->_cellCache[$fromAddress];
+ unset($this->_cellCache[$fromAddress]);
+ }
+
+ return TRUE;
+ } // function moveCell()
+
+
+ /**
+ * Add or Update a cell in cache
+ *
+ * @param PHPExcel_Cell $cell Cell to update
+ * @return void
+ * @throws PHPExcel_Exception
+ */
+ public function updateCacheData(PHPExcel_Cell $cell) {
+ return $this->addCacheData($cell->getCoordinate(),$cell);
+ } // function updateCacheData()
+
+
+ /**
+ * Delete a cell in cache identified by coordinate address
+ *
+ * @param string $pCoord Coordinate address of the cell to delete
+ * @throws PHPExcel_Exception
+ */
+ public function deleteCacheData($pCoord) {
+ if ($pCoord === $this->_currentObjectID) {
+ $this->_currentObject->detach();
+ $this->_currentObjectID = $this->_currentObject = null;
+ }
+
+ if (is_object($this->_cellCache[$pCoord])) {
+ $this->_cellCache[$pCoord]->detach();
+ unset($this->_cellCache[$pCoord]);
+ }
+ $this->_currentCellIsDirty = false;
+ } // function deleteCacheData()
+
+
+ /**
+ * Get a list of all cell addresses currently held in cache
+ *
+ * @return array of string
+ */
+ public function getCellList() {
+ return array_keys($this->_cellCache);
+ } // function getCellList()
+
+
+ /**
+ * Sort the list of all cell addresses currently held in cache by row and column
+ *
+ * @return void
+ */
+ public function getSortedCellList() {
+ $sortKeys = array();
+ foreach ($this->getCellList() as $coord) {
+ sscanf($coord,'%[A-Z]%d', $column, $row);
+ $sortKeys[sprintf('%09d%3s',$row,$column)] = $coord;
+ }
+ ksort($sortKeys);
+
+ return array_values($sortKeys);
+ } // function sortCellList()
+
+
+
+ /**
+ * Get highest worksheet column and highest row that have cell records
+ *
+ * @return array Highest column name and highest row number
+ */
+ public function getHighestRowAndColumn()
+ {
+ // Lookup highest column and highest row
+ $col = array('A' => '1A');
+ $row = array(1);
+ foreach ($this->getCellList() as $coord) {
+ sscanf($coord,'%[A-Z]%d', $c, $r);
+ $row[$r] = $r;
+ $col[$c] = strlen($c).$c;
+ }
+ if (!empty($row)) {
+ // Determine highest column and row
+ $highestRow = max($row);
+ $highestColumn = substr(max($col),1);
+ }
+
+ return array( 'row' => $highestRow,
+ 'column' => $highestColumn
+ );
+ }
+
+
+ /**
+ * Return the cell address of the currently active cell object
+ *
+ * @return string
+ */
+ public function getCurrentAddress()
+ {
+ return $this->_currentObjectID;
+ }
+
+ /**
+ * Return the column address of the currently active cell object
+ *
+ * @return string
+ */
+ public function getCurrentColumn()
+ {
+ sscanf($this->_currentObjectID, '%[A-Z]%d', $column, $row);
+ return $column;
+ }
+
+ /**
+ * Return the row address of the currently active cell object
+ *
+ * @return string
+ */
+ public function getCurrentRow()
+ {
+ sscanf($this->_currentObjectID, '%[A-Z]%d', $column, $row);
+ return $row;
+ }
+
+ /**
+ * Get highest worksheet column
+ *
+ * @return string Highest column name
+ */
+ public function getHighestColumn()
+ {
+ $colRow = $this->getHighestRowAndColumn();
+ return $colRow['column'];
+ }
+
+ /**
+ * Get highest worksheet row
+ *
+ * @return int Highest row number
+ */
+ public function getHighestRow()
+ {
+ $colRow = $this->getHighestRowAndColumn();
+ return $colRow['row'];
+ }
+
+
+ /**
+ * Generate a unique ID for cache referencing
+ *
+ * @return string Unique Reference
+ */
+ protected function _getUniqueID() {
+ if (function_exists('posix_getpid')) {
+ $baseUnique = posix_getpid();
+ } else {
+ $baseUnique = mt_rand();
+ }
+ return uniqid($baseUnique,true);
+ }
+
+ /**
+ * Clone the cell collection
+ *
+ * @param PHPExcel_Worksheet $parent The new worksheet
+ * @return void
+ */
+ public function copyCellCollection(PHPExcel_Worksheet $parent) {
+ $this->_currentCellIsDirty;
+ $this->_storeData();
+
+ $this->_parent = $parent;
+ if (($this->_currentObject !== NULL) && (is_object($this->_currentObject))) {
+ $this->_currentObject->attach($this);
+ }
+ } // function copyCellCollection()
+
+
+ /**
+ * Identify whether the caching method is currently available
+ * Some methods are dependent on the availability of certain extensions being enabled in the PHP build
+ *
+ * @return boolean
+ */
+ public static function cacheMethodIsAvailable() {
+ return true;
+ }
+
+}
diff --git a/framework/library/phpexcel/PHPExcel/CachedObjectStorage/DiscISAM.php b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/DiscISAM.php
new file mode 100644
index 0000000..1b598e5
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/DiscISAM.php
@@ -0,0 +1,219 @@
+_currentCellIsDirty) {
+ $this->_currentObject->detach();
+
+ fseek($this->_fileHandle,0,SEEK_END);
+ $offset = ftell($this->_fileHandle);
+ fwrite($this->_fileHandle, serialize($this->_currentObject));
+ $this->_cellCache[$this->_currentObjectID] = array('ptr' => $offset,
+ 'sz' => ftell($this->_fileHandle) - $offset
+ );
+ $this->_currentCellIsDirty = false;
+ }
+ $this->_currentObjectID = $this->_currentObject = null;
+ } // function _storeData()
+
+
+ /**
+ * Add or Update a cell in cache identified by coordinate address
+ *
+ * @param string $pCoord Coordinate address of the cell to update
+ * @param PHPExcel_Cell $cell Cell to update
+ * @return void
+ * @throws PHPExcel_Exception
+ */
+ public function addCacheData($pCoord, PHPExcel_Cell $cell) {
+ if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
+ $this->_storeData();
+ }
+
+ $this->_currentObjectID = $pCoord;
+ $this->_currentObject = $cell;
+ $this->_currentCellIsDirty = true;
+
+ return $cell;
+ } // function addCacheData()
+
+
+ /**
+ * Get cell at a specific coordinate
+ *
+ * @param string $pCoord Coordinate of the cell
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Cell Cell that was found, or null if not found
+ */
+ public function getCacheData($pCoord) {
+ if ($pCoord === $this->_currentObjectID) {
+ return $this->_currentObject;
+ }
+ $this->_storeData();
+
+ // Check if the entry that has been requested actually exists
+ if (!isset($this->_cellCache[$pCoord])) {
+ // Return null if requested entry doesn't exist in cache
+ return null;
+ }
+
+ // Set current entry to the requested entry
+ $this->_currentObjectID = $pCoord;
+ fseek($this->_fileHandle,$this->_cellCache[$pCoord]['ptr']);
+ $this->_currentObject = unserialize(fread($this->_fileHandle,$this->_cellCache[$pCoord]['sz']));
+ // Re-attach this as the cell's parent
+ $this->_currentObject->attach($this);
+
+ // Return requested entry
+ return $this->_currentObject;
+ } // function getCacheData()
+
+
+ /**
+ * Get a list of all cell addresses currently held in cache
+ *
+ * @return array of string
+ */
+ public function getCellList() {
+ if ($this->_currentObjectID !== null) {
+ $this->_storeData();
+ }
+
+ return parent::getCellList();
+ }
+
+
+ /**
+ * Clone the cell collection
+ *
+ * @param PHPExcel_Worksheet $parent The new worksheet
+ * @return void
+ */
+ public function copyCellCollection(PHPExcel_Worksheet $parent) {
+ parent::copyCellCollection($parent);
+ // Get a new id for the new file name
+ $baseUnique = $this->_getUniqueID();
+ $newFileName = $this->_cacheDirectory.'/PHPExcel.'.$baseUnique.'.cache';
+ // Copy the existing cell cache file
+ copy ($this->_fileName,$newFileName);
+ $this->_fileName = $newFileName;
+ // Open the copied cell cache file
+ $this->_fileHandle = fopen($this->_fileName,'a+');
+ } // function copyCellCollection()
+
+
+ /**
+ * Clear the cell collection and disconnect from our parent
+ *
+ * @return void
+ */
+ public function unsetWorksheetCells() {
+ if(!is_null($this->_currentObject)) {
+ $this->_currentObject->detach();
+ $this->_currentObject = $this->_currentObjectID = null;
+ }
+ $this->_cellCache = array();
+
+ // detach ourself from the worksheet, so that it can then delete this object successfully
+ $this->_parent = null;
+
+ // Close down the temporary cache file
+ $this->__destruct();
+ } // function unsetWorksheetCells()
+
+
+ /**
+ * Initialise this new cell collection
+ *
+ * @param PHPExcel_Worksheet $parent The worksheet for this cell collection
+ * @param array of mixed $arguments Additional initialisation arguments
+ */
+ public function __construct(PHPExcel_Worksheet $parent, $arguments) {
+ $this->_cacheDirectory = ((isset($arguments['dir'])) && ($arguments['dir'] !== NULL))
+ ? $arguments['dir']
+ : PHPExcel_Shared_File::sys_get_temp_dir();
+
+ parent::__construct($parent);
+ if (is_null($this->_fileHandle)) {
+ $baseUnique = $this->_getUniqueID();
+ $this->_fileName = $this->_cacheDirectory.'/PHPExcel.'.$baseUnique.'.cache';
+ $this->_fileHandle = fopen($this->_fileName,'a+');
+ }
+ } // function __construct()
+
+
+ /**
+ * Destroy this cell collection
+ */
+ public function __destruct() {
+ if (!is_null($this->_fileHandle)) {
+ fclose($this->_fileHandle);
+ unlink($this->_fileName);
+ }
+ $this->_fileHandle = null;
+ } // function __destruct()
+
+}
diff --git a/framework/library/phpexcel/PHPExcel/CachedObjectStorage/ICache.php b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/ICache.php
new file mode 100644
index 0000000..5902d66
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/ICache.php
@@ -0,0 +1,112 @@
+_currentCellIsDirty) {
+ $this->_currentObject->detach();
+
+ $this->_cellCache[$this->_currentObjectID] = igbinary_serialize($this->_currentObject);
+ $this->_currentCellIsDirty = false;
+ }
+ $this->_currentObjectID = $this->_currentObject = null;
+ } // function _storeData()
+
+
+ /**
+ * Add or Update a cell in cache identified by coordinate address
+ *
+ * @param string $pCoord Coordinate address of the cell to update
+ * @param PHPExcel_Cell $cell Cell to update
+ * @return void
+ * @throws PHPExcel_Exception
+ */
+ public function addCacheData($pCoord, PHPExcel_Cell $cell) {
+ if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
+ $this->_storeData();
+ }
+
+ $this->_currentObjectID = $pCoord;
+ $this->_currentObject = $cell;
+ $this->_currentCellIsDirty = true;
+
+ return $cell;
+ } // function addCacheData()
+
+
+ /**
+ * Get cell at a specific coordinate
+ *
+ * @param string $pCoord Coordinate of the cell
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Cell Cell that was found, or null if not found
+ */
+ public function getCacheData($pCoord) {
+ if ($pCoord === $this->_currentObjectID) {
+ return $this->_currentObject;
+ }
+ $this->_storeData();
+
+ // Check if the entry that has been requested actually exists
+ if (!isset($this->_cellCache[$pCoord])) {
+ // Return null if requested entry doesn't exist in cache
+ return null;
+ }
+
+ // Set current entry to the requested entry
+ $this->_currentObjectID = $pCoord;
+ $this->_currentObject = igbinary_unserialize($this->_cellCache[$pCoord]);
+ // Re-attach this as the cell's parent
+ $this->_currentObject->attach($this);
+
+ // Return requested entry
+ return $this->_currentObject;
+ } // function getCacheData()
+
+
+ /**
+ * Get a list of all cell addresses currently held in cache
+ *
+ * @return array of string
+ */
+ public function getCellList() {
+ if ($this->_currentObjectID !== null) {
+ $this->_storeData();
+ }
+
+ return parent::getCellList();
+ }
+
+
+ /**
+ * Clear the cell collection and disconnect from our parent
+ *
+ * @return void
+ */
+ public function unsetWorksheetCells() {
+ if(!is_null($this->_currentObject)) {
+ $this->_currentObject->detach();
+ $this->_currentObject = $this->_currentObjectID = null;
+ }
+ $this->_cellCache = array();
+
+ // detach ourself from the worksheet, so that it can then delete this object successfully
+ $this->_parent = null;
+ } // function unsetWorksheetCells()
+
+
+ /**
+ * Identify whether the caching method is currently available
+ * Some methods are dependent on the availability of certain extensions being enabled in the PHP build
+ *
+ * @return boolean
+ */
+ public static function cacheMethodIsAvailable() {
+ if (!function_exists('igbinary_serialize')) {
+ return false;
+ }
+
+ return true;
+ }
+
+}
diff --git a/framework/library/phpexcel/PHPExcel/CachedObjectStorage/Memcache.php b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/Memcache.php
new file mode 100644
index 0000000..e4f5e65
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/Memcache.php
@@ -0,0 +1,312 @@
+_currentCellIsDirty) {
+ $this->_currentObject->detach();
+
+ $obj = serialize($this->_currentObject);
+ if (!$this->_memcache->replace($this->_cachePrefix.$this->_currentObjectID.'.cache',$obj,NULL,$this->_cacheTime)) {
+ if (!$this->_memcache->add($this->_cachePrefix.$this->_currentObjectID.'.cache',$obj,NULL,$this->_cacheTime)) {
+ $this->__destruct();
+ throw new PHPExcel_Exception('Failed to store cell '.$this->_currentObjectID.' in MemCache');
+ }
+ }
+ $this->_currentCellIsDirty = false;
+ }
+ $this->_currentObjectID = $this->_currentObject = null;
+ } // function _storeData()
+
+
+ /**
+ * Add or Update a cell in cache identified by coordinate address
+ *
+ * @param string $pCoord Coordinate address of the cell to update
+ * @param PHPExcel_Cell $cell Cell to update
+ * @return void
+ * @throws PHPExcel_Exception
+ */
+ public function addCacheData($pCoord, PHPExcel_Cell $cell) {
+ if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
+ $this->_storeData();
+ }
+ $this->_cellCache[$pCoord] = true;
+
+ $this->_currentObjectID = $pCoord;
+ $this->_currentObject = $cell;
+ $this->_currentCellIsDirty = true;
+
+ return $cell;
+ } // function addCacheData()
+
+
+ /**
+ * Is a value set in the current PHPExcel_CachedObjectStorage_ICache for an indexed cell?
+ *
+ * @param string $pCoord Coordinate address of the cell to check
+ * @return void
+ * @return boolean
+ */
+ public function isDataSet($pCoord) {
+ // Check if the requested entry is the current object, or exists in the cache
+ if (parent::isDataSet($pCoord)) {
+ if ($this->_currentObjectID == $pCoord) {
+ return true;
+ }
+ // Check if the requested entry still exists in Memcache
+ $success = $this->_memcache->get($this->_cachePrefix.$pCoord.'.cache');
+ if ($success === false) {
+ // Entry no longer exists in Memcache, so clear it from the cache array
+ parent::deleteCacheData($pCoord);
+ throw new PHPExcel_Exception('Cell entry '.$pCoord.' no longer exists in MemCache');
+ }
+ return true;
+ }
+ return false;
+ } // function isDataSet()
+
+
+ /**
+ * Get cell at a specific coordinate
+ *
+ * @param string $pCoord Coordinate of the cell
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Cell Cell that was found, or null if not found
+ */
+ public function getCacheData($pCoord) {
+ if ($pCoord === $this->_currentObjectID) {
+ return $this->_currentObject;
+ }
+ $this->_storeData();
+
+ // Check if the entry that has been requested actually exists
+ if (parent::isDataSet($pCoord)) {
+ $obj = $this->_memcache->get($this->_cachePrefix.$pCoord.'.cache');
+ if ($obj === false) {
+ // Entry no longer exists in Memcache, so clear it from the cache array
+ parent::deleteCacheData($pCoord);
+ throw new PHPExcel_Exception('Cell entry '.$pCoord.' no longer exists in MemCache');
+ }
+ } else {
+ // Return null if requested entry doesn't exist in cache
+ return null;
+ }
+
+ // Set current entry to the requested entry
+ $this->_currentObjectID = $pCoord;
+ $this->_currentObject = unserialize($obj);
+ // Re-attach this as the cell's parent
+ $this->_currentObject->attach($this);
+
+ // Return requested entry
+ return $this->_currentObject;
+ } // function getCacheData()
+
+
+ /**
+ * Get a list of all cell addresses currently held in cache
+ *
+ * @return array of string
+ */
+ public function getCellList() {
+ if ($this->_currentObjectID !== null) {
+ $this->_storeData();
+ }
+
+ return parent::getCellList();
+ }
+
+
+ /**
+ * Delete a cell in cache identified by coordinate address
+ *
+ * @param string $pCoord Coordinate address of the cell to delete
+ * @throws PHPExcel_Exception
+ */
+ public function deleteCacheData($pCoord) {
+ // Delete the entry from Memcache
+ $this->_memcache->delete($this->_cachePrefix.$pCoord.'.cache');
+
+ // Delete the entry from our cell address array
+ parent::deleteCacheData($pCoord);
+ } // function deleteCacheData()
+
+
+ /**
+ * Clone the cell collection
+ *
+ * @param PHPExcel_Worksheet $parent The new worksheet
+ * @return void
+ */
+ public function copyCellCollection(PHPExcel_Worksheet $parent) {
+ parent::copyCellCollection($parent);
+ // Get a new id for the new file name
+ $baseUnique = $this->_getUniqueID();
+ $newCachePrefix = substr(md5($baseUnique),0,8).'.';
+ $cacheList = $this->getCellList();
+ foreach($cacheList as $cellID) {
+ if ($cellID != $this->_currentObjectID) {
+ $obj = $this->_memcache->get($this->_cachePrefix.$cellID.'.cache');
+ if ($obj === false) {
+ // Entry no longer exists in Memcache, so clear it from the cache array
+ parent::deleteCacheData($cellID);
+ throw new PHPExcel_Exception('Cell entry '.$cellID.' no longer exists in MemCache');
+ }
+ if (!$this->_memcache->add($newCachePrefix.$cellID.'.cache',$obj,NULL,$this->_cacheTime)) {
+ $this->__destruct();
+ throw new PHPExcel_Exception('Failed to store cell '.$cellID.' in MemCache');
+ }
+ }
+ }
+ $this->_cachePrefix = $newCachePrefix;
+ } // function copyCellCollection()
+
+
+ /**
+ * Clear the cell collection and disconnect from our parent
+ *
+ * @return void
+ */
+ public function unsetWorksheetCells() {
+ if(!is_null($this->_currentObject)) {
+ $this->_currentObject->detach();
+ $this->_currentObject = $this->_currentObjectID = null;
+ }
+
+ // Flush the Memcache cache
+ $this->__destruct();
+
+ $this->_cellCache = array();
+
+ // detach ourself from the worksheet, so that it can then delete this object successfully
+ $this->_parent = null;
+ } // function unsetWorksheetCells()
+
+
+ /**
+ * Initialise this new cell collection
+ *
+ * @param PHPExcel_Worksheet $parent The worksheet for this cell collection
+ * @param array of mixed $arguments Additional initialisation arguments
+ */
+ public function __construct(PHPExcel_Worksheet $parent, $arguments) {
+ $memcacheServer = (isset($arguments['memcacheServer'])) ? $arguments['memcacheServer'] : 'localhost';
+ $memcachePort = (isset($arguments['memcachePort'])) ? $arguments['memcachePort'] : 11211;
+ $cacheTime = (isset($arguments['cacheTime'])) ? $arguments['cacheTime'] : 600;
+
+ if (is_null($this->_cachePrefix)) {
+ $baseUnique = $this->_getUniqueID();
+ $this->_cachePrefix = substr(md5($baseUnique),0,8).'.';
+
+ // Set a new Memcache object and connect to the Memcache server
+ $this->_memcache = new Memcache();
+ if (!$this->_memcache->addServer($memcacheServer, $memcachePort, false, 50, 5, 5, true, array($this, 'failureCallback'))) {
+ throw new PHPExcel_Exception('Could not connect to MemCache server at '.$memcacheServer.':'.$memcachePort);
+ }
+ $this->_cacheTime = $cacheTime;
+
+ parent::__construct($parent);
+ }
+ } // function __construct()
+
+
+ /**
+ * Memcache error handler
+ *
+ * @param string $host Memcache server
+ * @param integer $port Memcache port
+ * @throws PHPExcel_Exception
+ */
+ public function failureCallback($host, $port) {
+ throw new PHPExcel_Exception('memcache '.$host.':'.$port.' failed');
+ }
+
+
+ /**
+ * Destroy this cell collection
+ */
+ public function __destruct() {
+ $cacheList = $this->getCellList();
+ foreach($cacheList as $cellID) {
+ $this->_memcache->delete($this->_cachePrefix.$cellID.'.cache');
+ }
+ } // function __destruct()
+
+ /**
+ * Identify whether the caching method is currently available
+ * Some methods are dependent on the availability of certain extensions being enabled in the PHP build
+ *
+ * @return boolean
+ */
+ public static function cacheMethodIsAvailable() {
+ if (!function_exists('memcache_add')) {
+ return false;
+ }
+
+ return true;
+ }
+
+}
diff --git a/framework/library/phpexcel/PHPExcel/CachedObjectStorage/Memory.php b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/Memory.php
new file mode 100644
index 0000000..142a171
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/Memory.php
@@ -0,0 +1,125 @@
+_cellCache[$pCoord] = $cell;
+
+ // Set current entry to the new/updated entry
+ $this->_currentObjectID = $pCoord;
+
+ return $cell;
+ } // function addCacheData()
+
+
+ /**
+ * Get cell at a specific coordinate
+ *
+ * @param string $pCoord Coordinate of the cell
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Cell Cell that was found, or null if not found
+ */
+ public function getCacheData($pCoord) {
+ // Check if the entry that has been requested actually exists
+ if (!isset($this->_cellCache[$pCoord])) {
+ $this->_currentObjectID = NULL;
+ // Return null if requested entry doesn't exist in cache
+ return null;
+ }
+
+ // Set current entry to the requested entry
+ $this->_currentObjectID = $pCoord;
+
+ // Return requested entry
+ return $this->_cellCache[$pCoord];
+ } // function getCacheData()
+
+
+ /**
+ * Clone the cell collection
+ *
+ * @param PHPExcel_Worksheet $parent The new worksheet
+ * @return void
+ */
+ public function copyCellCollection(PHPExcel_Worksheet $parent) {
+ parent::copyCellCollection($parent);
+
+ $newCollection = array();
+ foreach($this->_cellCache as $k => &$cell) {
+ $newCollection[$k] = clone $cell;
+ $newCollection[$k]->attach($parent);
+ }
+
+ $this->_cellCache = $newCollection;
+ }
+
+
+ /**
+ * Clear the cell collection and disconnect from our parent
+ *
+ * @return void
+ */
+ public function unsetWorksheetCells() {
+ // Because cells are all stored as intact objects in memory, we need to detach each one from the parent
+ foreach($this->_cellCache as $k => &$cell) {
+ $cell->detach();
+ $this->_cellCache[$k] = null;
+ }
+ unset($cell);
+
+ $this->_cellCache = array();
+
+ // detach ourself from the worksheet, so that it can then delete this object successfully
+ $this->_parent = null;
+ } // function unsetWorksheetCells()
+
+}
diff --git a/framework/library/phpexcel/PHPExcel/CachedObjectStorage/MemoryGZip.php b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/MemoryGZip.php
new file mode 100644
index 0000000..7a48894
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/MemoryGZip.php
@@ -0,0 +1,137 @@
+_currentCellIsDirty) {
+ $this->_currentObject->detach();
+
+ $this->_cellCache[$this->_currentObjectID] = gzdeflate(serialize($this->_currentObject));
+ $this->_currentCellIsDirty = false;
+ }
+ $this->_currentObjectID = $this->_currentObject = null;
+ } // function _storeData()
+
+
+ /**
+ * Add or Update a cell in cache identified by coordinate address
+ *
+ * @param string $pCoord Coordinate address of the cell to update
+ * @param PHPExcel_Cell $cell Cell to update
+ * @return void
+ * @throws PHPExcel_Exception
+ */
+ public function addCacheData($pCoord, PHPExcel_Cell $cell) {
+ if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
+ $this->_storeData();
+ }
+
+ $this->_currentObjectID = $pCoord;
+ $this->_currentObject = $cell;
+ $this->_currentCellIsDirty = true;
+
+ return $cell;
+ } // function addCacheData()
+
+
+ /**
+ * Get cell at a specific coordinate
+ *
+ * @param string $pCoord Coordinate of the cell
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Cell Cell that was found, or null if not found
+ */
+ public function getCacheData($pCoord) {
+ if ($pCoord === $this->_currentObjectID) {
+ return $this->_currentObject;
+ }
+ $this->_storeData();
+
+ // Check if the entry that has been requested actually exists
+ if (!isset($this->_cellCache[$pCoord])) {
+ // Return null if requested entry doesn't exist in cache
+ return null;
+ }
+
+ // Set current entry to the requested entry
+ $this->_currentObjectID = $pCoord;
+ $this->_currentObject = unserialize(gzinflate($this->_cellCache[$pCoord]));
+ // Re-attach this as the cell's parent
+ $this->_currentObject->attach($this);
+
+ // Return requested entry
+ return $this->_currentObject;
+ } // function getCacheData()
+
+
+ /**
+ * Get a list of all cell addresses currently held in cache
+ *
+ * @return array of string
+ */
+ public function getCellList() {
+ if ($this->_currentObjectID !== null) {
+ $this->_storeData();
+ }
+
+ return parent::getCellList();
+ }
+
+
+ /**
+ * Clear the cell collection and disconnect from our parent
+ *
+ * @return void
+ */
+ public function unsetWorksheetCells() {
+ if(!is_null($this->_currentObject)) {
+ $this->_currentObject->detach();
+ $this->_currentObject = $this->_currentObjectID = null;
+ }
+ $this->_cellCache = array();
+
+ // detach ourself from the worksheet, so that it can then delete this object successfully
+ $this->_parent = null;
+ } // function unsetWorksheetCells()
+
+}
diff --git a/framework/library/phpexcel/PHPExcel/CachedObjectStorage/MemorySerialized.php b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/MemorySerialized.php
new file mode 100644
index 0000000..a954e0b
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/MemorySerialized.php
@@ -0,0 +1,137 @@
+_currentCellIsDirty) {
+ $this->_currentObject->detach();
+
+ $this->_cellCache[$this->_currentObjectID] = serialize($this->_currentObject);
+ $this->_currentCellIsDirty = false;
+ }
+ $this->_currentObjectID = $this->_currentObject = null;
+ } // function _storeData()
+
+
+ /**
+ * Add or Update a cell in cache identified by coordinate address
+ *
+ * @param string $pCoord Coordinate address of the cell to update
+ * @param PHPExcel_Cell $cell Cell to update
+ * @return void
+ * @throws PHPExcel_Exception
+ */
+ public function addCacheData($pCoord, PHPExcel_Cell $cell) {
+ if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
+ $this->_storeData();
+ }
+
+ $this->_currentObjectID = $pCoord;
+ $this->_currentObject = $cell;
+ $this->_currentCellIsDirty = true;
+
+ return $cell;
+ } // function addCacheData()
+
+
+ /**
+ * Get cell at a specific coordinate
+ *
+ * @param string $pCoord Coordinate of the cell
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Cell Cell that was found, or null if not found
+ */
+ public function getCacheData($pCoord) {
+ if ($pCoord === $this->_currentObjectID) {
+ return $this->_currentObject;
+ }
+ $this->_storeData();
+
+ // Check if the entry that has been requested actually exists
+ if (!isset($this->_cellCache[$pCoord])) {
+ // Return null if requested entry doesn't exist in cache
+ return null;
+ }
+
+ // Set current entry to the requested entry
+ $this->_currentObjectID = $pCoord;
+ $this->_currentObject = unserialize($this->_cellCache[$pCoord]);
+ // Re-attach this as the cell's parent
+ $this->_currentObject->attach($this);
+
+ // Return requested entry
+ return $this->_currentObject;
+ } // function getCacheData()
+
+
+ /**
+ * Get a list of all cell addresses currently held in cache
+ *
+ * @return array of string
+ */
+ public function getCellList() {
+ if ($this->_currentObjectID !== null) {
+ $this->_storeData();
+ }
+
+ return parent::getCellList();
+ }
+
+
+ /**
+ * Clear the cell collection and disconnect from our parent
+ *
+ * @return void
+ */
+ public function unsetWorksheetCells() {
+ if(!is_null($this->_currentObject)) {
+ $this->_currentObject->detach();
+ $this->_currentObject = $this->_currentObjectID = null;
+ }
+ $this->_cellCache = array();
+
+ // detach ourself from the worksheet, so that it can then delete this object successfully
+ $this->_parent = null;
+ } // function unsetWorksheetCells()
+
+}
diff --git a/framework/library/phpexcel/PHPExcel/CachedObjectStorage/PHPTemp.php b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/PHPTemp.php
new file mode 100644
index 0000000..bedac12
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/PHPTemp.php
@@ -0,0 +1,206 @@
+_currentCellIsDirty) {
+ $this->_currentObject->detach();
+
+ fseek($this->_fileHandle,0,SEEK_END);
+ $offset = ftell($this->_fileHandle);
+ fwrite($this->_fileHandle, serialize($this->_currentObject));
+ $this->_cellCache[$this->_currentObjectID] = array('ptr' => $offset,
+ 'sz' => ftell($this->_fileHandle) - $offset
+ );
+ $this->_currentCellIsDirty = false;
+ }
+ $this->_currentObjectID = $this->_currentObject = null;
+ } // function _storeData()
+
+
+ /**
+ * Add or Update a cell in cache identified by coordinate address
+ *
+ * @param string $pCoord Coordinate address of the cell to update
+ * @param PHPExcel_Cell $cell Cell to update
+ * @return void
+ * @throws PHPExcel_Exception
+ */
+ public function addCacheData($pCoord, PHPExcel_Cell $cell) {
+ if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
+ $this->_storeData();
+ }
+
+ $this->_currentObjectID = $pCoord;
+ $this->_currentObject = $cell;
+ $this->_currentCellIsDirty = true;
+
+ return $cell;
+ } // function addCacheData()
+
+
+ /**
+ * Get cell at a specific coordinate
+ *
+ * @param string $pCoord Coordinate of the cell
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Cell Cell that was found, or null if not found
+ */
+ public function getCacheData($pCoord) {
+ if ($pCoord === $this->_currentObjectID) {
+ return $this->_currentObject;
+ }
+ $this->_storeData();
+
+ // Check if the entry that has been requested actually exists
+ if (!isset($this->_cellCache[$pCoord])) {
+ // Return null if requested entry doesn't exist in cache
+ return null;
+ }
+
+ // Set current entry to the requested entry
+ $this->_currentObjectID = $pCoord;
+ fseek($this->_fileHandle,$this->_cellCache[$pCoord]['ptr']);
+ $this->_currentObject = unserialize(fread($this->_fileHandle,$this->_cellCache[$pCoord]['sz']));
+ // Re-attach this as the cell's parent
+ $this->_currentObject->attach($this);
+
+ // Return requested entry
+ return $this->_currentObject;
+ } // function getCacheData()
+
+
+ /**
+ * Get a list of all cell addresses currently held in cache
+ *
+ * @return array of string
+ */
+ public function getCellList() {
+ if ($this->_currentObjectID !== null) {
+ $this->_storeData();
+ }
+
+ return parent::getCellList();
+ }
+
+
+ /**
+ * Clone the cell collection
+ *
+ * @param PHPExcel_Worksheet $parent The new worksheet
+ * @return void
+ */
+ public function copyCellCollection(PHPExcel_Worksheet $parent) {
+ parent::copyCellCollection($parent);
+ // Open a new stream for the cell cache data
+ $newFileHandle = fopen('php://temp/maxmemory:'.$this->_memoryCacheSize,'a+');
+ // Copy the existing cell cache data to the new stream
+ fseek($this->_fileHandle,0);
+ while (!feof($this->_fileHandle)) {
+ fwrite($newFileHandle,fread($this->_fileHandle, 1024));
+ }
+ $this->_fileHandle = $newFileHandle;
+ } // function copyCellCollection()
+
+
+ /**
+ * Clear the cell collection and disconnect from our parent
+ *
+ * @return void
+ */
+ public function unsetWorksheetCells() {
+ if(!is_null($this->_currentObject)) {
+ $this->_currentObject->detach();
+ $this->_currentObject = $this->_currentObjectID = null;
+ }
+ $this->_cellCache = array();
+
+ // detach ourself from the worksheet, so that it can then delete this object successfully
+ $this->_parent = null;
+
+ // Close down the php://temp file
+ $this->__destruct();
+ } // function unsetWorksheetCells()
+
+
+ /**
+ * Initialise this new cell collection
+ *
+ * @param PHPExcel_Worksheet $parent The worksheet for this cell collection
+ * @param array of mixed $arguments Additional initialisation arguments
+ */
+ public function __construct(PHPExcel_Worksheet $parent, $arguments) {
+ $this->_memoryCacheSize = (isset($arguments['memoryCacheSize'])) ? $arguments['memoryCacheSize'] : '1MB';
+
+ parent::__construct($parent);
+ if (is_null($this->_fileHandle)) {
+ $this->_fileHandle = fopen('php://temp/maxmemory:'.$this->_memoryCacheSize,'a+');
+ }
+ } // function __construct()
+
+
+ /**
+ * Destroy this cell collection
+ */
+ public function __destruct() {
+ if (!is_null($this->_fileHandle)) {
+ fclose($this->_fileHandle);
+ }
+ $this->_fileHandle = null;
+ } // function __destruct()
+
+}
diff --git a/framework/library/phpexcel/PHPExcel/CachedObjectStorage/SQLite.php b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/SQLite.php
new file mode 100644
index 0000000..c5b424d
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/SQLite.php
@@ -0,0 +1,306 @@
+_currentCellIsDirty) {
+ $this->_currentObject->detach();
+
+ if (!$this->_DBHandle->queryExec("INSERT OR REPLACE INTO kvp_".$this->_TableName." VALUES('".$this->_currentObjectID."','".sqlite_escape_string(serialize($this->_currentObject))."')"))
+ throw new PHPExcel_Exception(sqlite_error_string($this->_DBHandle->lastError()));
+ $this->_currentCellIsDirty = false;
+ }
+ $this->_currentObjectID = $this->_currentObject = null;
+ } // function _storeData()
+
+
+ /**
+ * Add or Update a cell in cache identified by coordinate address
+ *
+ * @param string $pCoord Coordinate address of the cell to update
+ * @param PHPExcel_Cell $cell Cell to update
+ * @return void
+ * @throws PHPExcel_Exception
+ */
+ public function addCacheData($pCoord, PHPExcel_Cell $cell) {
+ if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
+ $this->_storeData();
+ }
+
+ $this->_currentObjectID = $pCoord;
+ $this->_currentObject = $cell;
+ $this->_currentCellIsDirty = true;
+
+ return $cell;
+ } // function addCacheData()
+
+
+ /**
+ * Get cell at a specific coordinate
+ *
+ * @param string $pCoord Coordinate of the cell
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Cell Cell that was found, or null if not found
+ */
+ public function getCacheData($pCoord) {
+ if ($pCoord === $this->_currentObjectID) {
+ return $this->_currentObject;
+ }
+ $this->_storeData();
+
+ $query = "SELECT value FROM kvp_".$this->_TableName." WHERE id='".$pCoord."'";
+ $cellResultSet = $this->_DBHandle->query($query,SQLITE_ASSOC);
+ if ($cellResultSet === false) {
+ throw new PHPExcel_Exception(sqlite_error_string($this->_DBHandle->lastError()));
+ } elseif ($cellResultSet->numRows() == 0) {
+ // Return null if requested entry doesn't exist in cache
+ return null;
+ }
+
+ // Set current entry to the requested entry
+ $this->_currentObjectID = $pCoord;
+
+ $cellResult = $cellResultSet->fetchSingle();
+ $this->_currentObject = unserialize($cellResult);
+ // Re-attach this as the cell's parent
+ $this->_currentObject->attach($this);
+
+ // Return requested entry
+ return $this->_currentObject;
+ } // function getCacheData()
+
+
+ /**
+ * Is a value set for an indexed cell?
+ *
+ * @param string $pCoord Coordinate address of the cell to check
+ * @return boolean
+ */
+ public function isDataSet($pCoord) {
+ if ($pCoord === $this->_currentObjectID) {
+ return true;
+ }
+
+ // Check if the requested entry exists in the cache
+ $query = "SELECT id FROM kvp_".$this->_TableName." WHERE id='".$pCoord."'";
+ $cellResultSet = $this->_DBHandle->query($query,SQLITE_ASSOC);
+ if ($cellResultSet === false) {
+ throw new PHPExcel_Exception(sqlite_error_string($this->_DBHandle->lastError()));
+ } elseif ($cellResultSet->numRows() == 0) {
+ // Return null if requested entry doesn't exist in cache
+ return false;
+ }
+ return true;
+ } // function isDataSet()
+
+
+ /**
+ * Delete a cell in cache identified by coordinate address
+ *
+ * @param string $pCoord Coordinate address of the cell to delete
+ * @throws PHPExcel_Exception
+ */
+ public function deleteCacheData($pCoord) {
+ if ($pCoord === $this->_currentObjectID) {
+ $this->_currentObject->detach();
+ $this->_currentObjectID = $this->_currentObject = null;
+ }
+
+ // Check if the requested entry exists in the cache
+ $query = "DELETE FROM kvp_".$this->_TableName." WHERE id='".$pCoord."'";
+ if (!$this->_DBHandle->queryExec($query))
+ throw new PHPExcel_Exception(sqlite_error_string($this->_DBHandle->lastError()));
+
+ $this->_currentCellIsDirty = false;
+ } // function deleteCacheData()
+
+
+ /**
+ * Move a cell object from one address to another
+ *
+ * @param string $fromAddress Current address of the cell to move
+ * @param string $toAddress Destination address of the cell to move
+ * @return boolean
+ */
+ public function moveCell($fromAddress, $toAddress) {
+ if ($fromAddress === $this->_currentObjectID) {
+ $this->_currentObjectID = $toAddress;
+ }
+
+ $query = "DELETE FROM kvp_".$this->_TableName." WHERE id='".$toAddress."'";
+ $result = $this->_DBHandle->exec($query);
+ if ($result === false)
+ throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg());
+
+ $query = "UPDATE kvp_".$this->_TableName." SET id='".$toAddress."' WHERE id='".$fromAddress."'";
+ $result = $this->_DBHandle->exec($query);
+ if ($result === false)
+ throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg());
+
+ return TRUE;
+ } // function moveCell()
+
+
+ /**
+ * Get a list of all cell addresses currently held in cache
+ *
+ * @return array of string
+ */
+ public function getCellList() {
+ if ($this->_currentObjectID !== null) {
+ $this->_storeData();
+ }
+
+ $query = "SELECT id FROM kvp_".$this->_TableName;
+ $cellIdsResult = $this->_DBHandle->unbufferedQuery($query,SQLITE_ASSOC);
+ if ($cellIdsResult === false)
+ throw new PHPExcel_Exception(sqlite_error_string($this->_DBHandle->lastError()));
+
+ $cellKeys = array();
+ foreach($cellIdsResult as $row) {
+ $cellKeys[] = $row['id'];
+ }
+
+ return $cellKeys;
+ } // function getCellList()
+
+
+ /**
+ * Clone the cell collection
+ *
+ * @param PHPExcel_Worksheet $parent The new worksheet
+ * @return void
+ */
+ public function copyCellCollection(PHPExcel_Worksheet $parent) {
+ $this->_currentCellIsDirty;
+ $this->_storeData();
+
+ // Get a new id for the new table name
+ $tableName = str_replace('.','_',$this->_getUniqueID());
+ if (!$this->_DBHandle->queryExec('CREATE TABLE kvp_'.$tableName.' (id VARCHAR(12) PRIMARY KEY, value BLOB)
+ AS SELECT * FROM kvp_'.$this->_TableName))
+ throw new PHPExcel_Exception(sqlite_error_string($this->_DBHandle->lastError()));
+
+ // Copy the existing cell cache file
+ $this->_TableName = $tableName;
+ } // function copyCellCollection()
+
+
+ /**
+ * Clear the cell collection and disconnect from our parent
+ *
+ * @return void
+ */
+ public function unsetWorksheetCells() {
+ if(!is_null($this->_currentObject)) {
+ $this->_currentObject->detach();
+ $this->_currentObject = $this->_currentObjectID = null;
+ }
+ // detach ourself from the worksheet, so that it can then delete this object successfully
+ $this->_parent = null;
+
+ // Close down the temporary cache file
+ $this->__destruct();
+ } // function unsetWorksheetCells()
+
+
+ /**
+ * Initialise this new cell collection
+ *
+ * @param PHPExcel_Worksheet $parent The worksheet for this cell collection
+ */
+ public function __construct(PHPExcel_Worksheet $parent) {
+ parent::__construct($parent);
+ if (is_null($this->_DBHandle)) {
+ $this->_TableName = str_replace('.','_',$this->_getUniqueID());
+ $_DBName = ':memory:';
+
+ $this->_DBHandle = new SQLiteDatabase($_DBName);
+ if ($this->_DBHandle === false)
+ throw new PHPExcel_Exception(sqlite_error_string($this->_DBHandle->lastError()));
+ if (!$this->_DBHandle->queryExec('CREATE TABLE kvp_'.$this->_TableName.' (id VARCHAR(12) PRIMARY KEY, value BLOB)'))
+ throw new PHPExcel_Exception(sqlite_error_string($this->_DBHandle->lastError()));
+ }
+ } // function __construct()
+
+
+ /**
+ * Destroy this cell collection
+ */
+ public function __destruct() {
+ if (!is_null($this->_DBHandle)) {
+ $this->_DBHandle->queryExec('DROP TABLE kvp_'.$this->_TableName);
+ }
+ $this->_DBHandle = null;
+ } // function __destruct()
+
+
+ /**
+ * Identify whether the caching method is currently available
+ * Some methods are dependent on the availability of certain extensions being enabled in the PHP build
+ *
+ * @return boolean
+ */
+ public static function cacheMethodIsAvailable() {
+ if (!function_exists('sqlite_open')) {
+ return false;
+ }
+
+ return true;
+ }
+
+}
diff --git a/framework/library/phpexcel/PHPExcel/CachedObjectStorage/SQLite3.php b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/SQLite3.php
new file mode 100644
index 0000000..c5c5b68
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/SQLite3.php
@@ -0,0 +1,345 @@
+_currentCellIsDirty) {
+ $this->_currentObject->detach();
+
+ $this->_insertQuery->bindValue('id',$this->_currentObjectID,SQLITE3_TEXT);
+ $this->_insertQuery->bindValue('data',serialize($this->_currentObject),SQLITE3_BLOB);
+ $result = $this->_insertQuery->execute();
+ if ($result === false)
+ throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg());
+ $this->_currentCellIsDirty = false;
+ }
+ $this->_currentObjectID = $this->_currentObject = null;
+ } // function _storeData()
+
+
+ /**
+ * Add or Update a cell in cache identified by coordinate address
+ *
+ * @param string $pCoord Coordinate address of the cell to update
+ * @param PHPExcel_Cell $cell Cell to update
+ * @return void
+ * @throws PHPExcel_Exception
+ */
+ public function addCacheData($pCoord, PHPExcel_Cell $cell) {
+ if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
+ $this->_storeData();
+ }
+
+ $this->_currentObjectID = $pCoord;
+ $this->_currentObject = $cell;
+ $this->_currentCellIsDirty = true;
+
+ return $cell;
+ } // function addCacheData()
+
+
+ /**
+ * Get cell at a specific coordinate
+ *
+ * @param string $pCoord Coordinate of the cell
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Cell Cell that was found, or null if not found
+ */
+ public function getCacheData($pCoord) {
+ if ($pCoord === $this->_currentObjectID) {
+ return $this->_currentObject;
+ }
+ $this->_storeData();
+
+ $this->_selectQuery->bindValue('id',$pCoord,SQLITE3_TEXT);
+ $cellResult = $this->_selectQuery->execute();
+ if ($cellResult === FALSE) {
+ throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg());
+ }
+ $cellData = $cellResult->fetchArray(SQLITE3_ASSOC);
+ if ($cellData === FALSE) {
+ // Return null if requested entry doesn't exist in cache
+ return NULL;
+ }
+
+ // Set current entry to the requested entry
+ $this->_currentObjectID = $pCoord;
+
+ $this->_currentObject = unserialize($cellData['value']);
+ // Re-attach this as the cell's parent
+ $this->_currentObject->attach($this);
+
+ // Return requested entry
+ return $this->_currentObject;
+ } // function getCacheData()
+
+
+ /**
+ * Is a value set for an indexed cell?
+ *
+ * @param string $pCoord Coordinate address of the cell to check
+ * @return boolean
+ */
+ public function isDataSet($pCoord) {
+ if ($pCoord === $this->_currentObjectID) {
+ return TRUE;
+ }
+
+ // Check if the requested entry exists in the cache
+ $this->_selectQuery->bindValue('id',$pCoord,SQLITE3_TEXT);
+ $cellResult = $this->_selectQuery->execute();
+ if ($cellResult === FALSE) {
+ throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg());
+ }
+ $cellData = $cellResult->fetchArray(SQLITE3_ASSOC);
+
+ return ($cellData === FALSE) ? FALSE : TRUE;
+ } // function isDataSet()
+
+
+ /**
+ * Delete a cell in cache identified by coordinate address
+ *
+ * @param string $pCoord Coordinate address of the cell to delete
+ * @throws PHPExcel_Exception
+ */
+ public function deleteCacheData($pCoord) {
+ if ($pCoord === $this->_currentObjectID) {
+ $this->_currentObject->detach();
+ $this->_currentObjectID = $this->_currentObject = NULL;
+ }
+
+ // Check if the requested entry exists in the cache
+ $this->_deleteQuery->bindValue('id',$pCoord,SQLITE3_TEXT);
+ $result = $this->_deleteQuery->execute();
+ if ($result === FALSE)
+ throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg());
+
+ $this->_currentCellIsDirty = FALSE;
+ } // function deleteCacheData()
+
+
+ /**
+ * Move a cell object from one address to another
+ *
+ * @param string $fromAddress Current address of the cell to move
+ * @param string $toAddress Destination address of the cell to move
+ * @return boolean
+ */
+ public function moveCell($fromAddress, $toAddress) {
+ if ($fromAddress === $this->_currentObjectID) {
+ $this->_currentObjectID = $toAddress;
+ }
+
+ $this->_deleteQuery->bindValue('id',$toAddress,SQLITE3_TEXT);
+ $result = $this->_deleteQuery->execute();
+ if ($result === false)
+ throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg());
+
+ $this->_updateQuery->bindValue('toid',$toAddress,SQLITE3_TEXT);
+ $this->_updateQuery->bindValue('fromid',$fromAddress,SQLITE3_TEXT);
+ $result = $this->_updateQuery->execute();
+ if ($result === false)
+ throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg());
+
+ return TRUE;
+ } // function moveCell()
+
+
+ /**
+ * Get a list of all cell addresses currently held in cache
+ *
+ * @return array of string
+ */
+ public function getCellList() {
+ if ($this->_currentObjectID !== null) {
+ $this->_storeData();
+ }
+
+ $query = "SELECT id FROM kvp_".$this->_TableName;
+ $cellIdsResult = $this->_DBHandle->query($query);
+ if ($cellIdsResult === false)
+ throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg());
+
+ $cellKeys = array();
+ while ($row = $cellIdsResult->fetchArray(SQLITE3_ASSOC)) {
+ $cellKeys[] = $row['id'];
+ }
+
+ return $cellKeys;
+ } // function getCellList()
+
+
+ /**
+ * Clone the cell collection
+ *
+ * @param PHPExcel_Worksheet $parent The new worksheet
+ * @return void
+ */
+ public function copyCellCollection(PHPExcel_Worksheet $parent) {
+ $this->_currentCellIsDirty;
+ $this->_storeData();
+
+ // Get a new id for the new table name
+ $tableName = str_replace('.','_',$this->_getUniqueID());
+ if (!$this->_DBHandle->exec('CREATE TABLE kvp_'.$tableName.' (id VARCHAR(12) PRIMARY KEY, value BLOB)
+ AS SELECT * FROM kvp_'.$this->_TableName))
+ throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg());
+
+ // Copy the existing cell cache file
+ $this->_TableName = $tableName;
+ } // function copyCellCollection()
+
+
+ /**
+ * Clear the cell collection and disconnect from our parent
+ *
+ * @return void
+ */
+ public function unsetWorksheetCells() {
+ if(!is_null($this->_currentObject)) {
+ $this->_currentObject->detach();
+ $this->_currentObject = $this->_currentObjectID = null;
+ }
+ // detach ourself from the worksheet, so that it can then delete this object successfully
+ $this->_parent = null;
+
+ // Close down the temporary cache file
+ $this->__destruct();
+ } // function unsetWorksheetCells()
+
+
+ /**
+ * Initialise this new cell collection
+ *
+ * @param PHPExcel_Worksheet $parent The worksheet for this cell collection
+ */
+ public function __construct(PHPExcel_Worksheet $parent) {
+ parent::__construct($parent);
+ if (is_null($this->_DBHandle)) {
+ $this->_TableName = str_replace('.','_',$this->_getUniqueID());
+ $_DBName = ':memory:';
+
+ $this->_DBHandle = new SQLite3($_DBName);
+ if ($this->_DBHandle === false)
+ throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg());
+ if (!$this->_DBHandle->exec('CREATE TABLE kvp_'.$this->_TableName.' (id VARCHAR(12) PRIMARY KEY, value BLOB)'))
+ throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg());
+ }
+
+ $this->_selectQuery = $this->_DBHandle->prepare("SELECT value FROM kvp_".$this->_TableName." WHERE id = :id");
+ $this->_insertQuery = $this->_DBHandle->prepare("INSERT OR REPLACE INTO kvp_".$this->_TableName." VALUES(:id,:data)");
+ $this->_updateQuery = $this->_DBHandle->prepare("UPDATE kvp_".$this->_TableName." SET id=:toId WHERE id=:fromId");
+ $this->_deleteQuery = $this->_DBHandle->prepare("DELETE FROM kvp_".$this->_TableName." WHERE id = :id");
+ } // function __construct()
+
+
+ /**
+ * Destroy this cell collection
+ */
+ public function __destruct() {
+ if (!is_null($this->_DBHandle)) {
+ $this->_DBHandle->exec('DROP TABLE kvp_'.$this->_TableName);
+ $this->_DBHandle->close();
+ }
+ $this->_DBHandle = null;
+ } // function __destruct()
+
+
+ /**
+ * Identify whether the caching method is currently available
+ * Some methods are dependent on the availability of certain extensions being enabled in the PHP build
+ *
+ * @return boolean
+ */
+ public static function cacheMethodIsAvailable() {
+ if (!class_exists('SQLite3',FALSE)) {
+ return false;
+ }
+
+ return true;
+ }
+
+}
diff --git a/framework/library/phpexcel/PHPExcel/CachedObjectStorage/Wincache.php b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/Wincache.php
new file mode 100644
index 0000000..53c76b8
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/CachedObjectStorage/Wincache.php
@@ -0,0 +1,294 @@
+_currentCellIsDirty) {
+ $this->_currentObject->detach();
+
+ $obj = serialize($this->_currentObject);
+ if (wincache_ucache_exists($this->_cachePrefix.$this->_currentObjectID.'.cache')) {
+ if (!wincache_ucache_set($this->_cachePrefix.$this->_currentObjectID.'.cache', $obj, $this->_cacheTime)) {
+ $this->__destruct();
+ throw new PHPExcel_Exception('Failed to store cell '.$this->_currentObjectID.' in WinCache');
+ }
+ } else {
+ if (!wincache_ucache_add($this->_cachePrefix.$this->_currentObjectID.'.cache', $obj, $this->_cacheTime)) {
+ $this->__destruct();
+ throw new PHPExcel_Exception('Failed to store cell '.$this->_currentObjectID.' in WinCache');
+ }
+ }
+ $this->_currentCellIsDirty = false;
+ }
+
+ $this->_currentObjectID = $this->_currentObject = null;
+ } // function _storeData()
+
+
+ /**
+ * Add or Update a cell in cache identified by coordinate address
+ *
+ * @param string $pCoord Coordinate address of the cell to update
+ * @param PHPExcel_Cell $cell Cell to update
+ * @return void
+ * @throws PHPExcel_Exception
+ */
+ public function addCacheData($pCoord, PHPExcel_Cell $cell) {
+ if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
+ $this->_storeData();
+ }
+ $this->_cellCache[$pCoord] = true;
+
+ $this->_currentObjectID = $pCoord;
+ $this->_currentObject = $cell;
+ $this->_currentCellIsDirty = true;
+
+ return $cell;
+ } // function addCacheData()
+
+
+ /**
+ * Is a value set in the current PHPExcel_CachedObjectStorage_ICache for an indexed cell?
+ *
+ * @param string $pCoord Coordinate address of the cell to check
+ * @return boolean
+ */
+ public function isDataSet($pCoord) {
+ // Check if the requested entry is the current object, or exists in the cache
+ if (parent::isDataSet($pCoord)) {
+ if ($this->_currentObjectID == $pCoord) {
+ return true;
+ }
+ // Check if the requested entry still exists in cache
+ $success = wincache_ucache_exists($this->_cachePrefix.$pCoord.'.cache');
+ if ($success === false) {
+ // Entry no longer exists in Wincache, so clear it from the cache array
+ parent::deleteCacheData($pCoord);
+ throw new PHPExcel_Exception('Cell entry '.$pCoord.' no longer exists in WinCache');
+ }
+ return true;
+ }
+ return false;
+ } // function isDataSet()
+
+
+ /**
+ * Get cell at a specific coordinate
+ *
+ * @param string $pCoord Coordinate of the cell
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Cell Cell that was found, or null if not found
+ */
+ public function getCacheData($pCoord) {
+ if ($pCoord === $this->_currentObjectID) {
+ return $this->_currentObject;
+ }
+ $this->_storeData();
+
+ // Check if the entry that has been requested actually exists
+ $obj = null;
+ if (parent::isDataSet($pCoord)) {
+ $success = false;
+ $obj = wincache_ucache_get($this->_cachePrefix.$pCoord.'.cache', $success);
+ if ($success === false) {
+ // Entry no longer exists in WinCache, so clear it from the cache array
+ parent::deleteCacheData($pCoord);
+ throw new PHPExcel_Exception('Cell entry '.$pCoord.' no longer exists in WinCache');
+ }
+ } else {
+ // Return null if requested entry doesn't exist in cache
+ return null;
+ }
+
+ // Set current entry to the requested entry
+ $this->_currentObjectID = $pCoord;
+ $this->_currentObject = unserialize($obj);
+ // Re-attach this as the cell's parent
+ $this->_currentObject->attach($this);
+
+ // Return requested entry
+ return $this->_currentObject;
+ } // function getCacheData()
+
+
+ /**
+ * Get a list of all cell addresses currently held in cache
+ *
+ * @return array of string
+ */
+ public function getCellList() {
+ if ($this->_currentObjectID !== null) {
+ $this->_storeData();
+ }
+
+ return parent::getCellList();
+ }
+
+
+ /**
+ * Delete a cell in cache identified by coordinate address
+ *
+ * @param string $pCoord Coordinate address of the cell to delete
+ * @throws PHPExcel_Exception
+ */
+ public function deleteCacheData($pCoord) {
+ // Delete the entry from Wincache
+ wincache_ucache_delete($this->_cachePrefix.$pCoord.'.cache');
+
+ // Delete the entry from our cell address array
+ parent::deleteCacheData($pCoord);
+ } // function deleteCacheData()
+
+
+ /**
+ * Clone the cell collection
+ *
+ * @param PHPExcel_Worksheet $parent The new worksheet
+ * @return void
+ */
+ public function copyCellCollection(PHPExcel_Worksheet $parent) {
+ parent::copyCellCollection($parent);
+ // Get a new id for the new file name
+ $baseUnique = $this->_getUniqueID();
+ $newCachePrefix = substr(md5($baseUnique),0,8).'.';
+ $cacheList = $this->getCellList();
+ foreach($cacheList as $cellID) {
+ if ($cellID != $this->_currentObjectID) {
+ $success = false;
+ $obj = wincache_ucache_get($this->_cachePrefix.$cellID.'.cache', $success);
+ if ($success === false) {
+ // Entry no longer exists in WinCache, so clear it from the cache array
+ parent::deleteCacheData($cellID);
+ throw new PHPExcel_Exception('Cell entry '.$cellID.' no longer exists in Wincache');
+ }
+ if (!wincache_ucache_add($newCachePrefix.$cellID.'.cache', $obj, $this->_cacheTime)) {
+ $this->__destruct();
+ throw new PHPExcel_Exception('Failed to store cell '.$cellID.' in Wincache');
+ }
+ }
+ }
+ $this->_cachePrefix = $newCachePrefix;
+ } // function copyCellCollection()
+
+
+ /**
+ * Clear the cell collection and disconnect from our parent
+ *
+ * @return void
+ */
+ public function unsetWorksheetCells() {
+ if(!is_null($this->_currentObject)) {
+ $this->_currentObject->detach();
+ $this->_currentObject = $this->_currentObjectID = null;
+ }
+
+ // Flush the WinCache cache
+ $this->__destruct();
+
+ $this->_cellCache = array();
+
+ // detach ourself from the worksheet, so that it can then delete this object successfully
+ $this->_parent = null;
+ } // function unsetWorksheetCells()
+
+
+ /**
+ * Initialise this new cell collection
+ *
+ * @param PHPExcel_Worksheet $parent The worksheet for this cell collection
+ * @param array of mixed $arguments Additional initialisation arguments
+ */
+ public function __construct(PHPExcel_Worksheet $parent, $arguments) {
+ $cacheTime = (isset($arguments['cacheTime'])) ? $arguments['cacheTime'] : 600;
+
+ if (is_null($this->_cachePrefix)) {
+ $baseUnique = $this->_getUniqueID();
+ $this->_cachePrefix = substr(md5($baseUnique),0,8).'.';
+ $this->_cacheTime = $cacheTime;
+
+ parent::__construct($parent);
+ }
+ } // function __construct()
+
+
+ /**
+ * Destroy this cell collection
+ */
+ public function __destruct() {
+ $cacheList = $this->getCellList();
+ foreach($cacheList as $cellID) {
+ wincache_ucache_delete($this->_cachePrefix.$cellID.'.cache');
+ }
+ } // function __destruct()
+
+
+ /**
+ * Identify whether the caching method is currently available
+ * Some methods are dependent on the availability of certain extensions being enabled in the PHP build
+ *
+ * @return boolean
+ */
+ public static function cacheMethodIsAvailable() {
+ if (!function_exists('wincache_ucache_add')) {
+ return false;
+ }
+
+ return true;
+ }
+
+}
diff --git a/framework/library/phpexcel/PHPExcel/CalcEngine/CyclicReferenceStack.php b/framework/library/phpexcel/PHPExcel/CalcEngine/CyclicReferenceStack.php
new file mode 100644
index 0000000..cfc57c2
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/CalcEngine/CyclicReferenceStack.php
@@ -0,0 +1,98 @@
+_stack);
+ }
+
+ /**
+ * Push a new entry onto the stack
+ *
+ * @param mixed $value
+ */
+ public function push($value) {
+ $this->_stack[] = $value;
+ } // function push()
+
+ /**
+ * Pop the last entry from the stack
+ *
+ * @return mixed
+ */
+ public function pop() {
+ return array_pop($this->_stack);
+ } // function pop()
+
+ /**
+ * Test to see if a specified entry exists on the stack
+ *
+ * @param mixed $value The value to test
+ */
+ public function onStack($value) {
+ return in_array($value, $this->_stack);
+ }
+
+ /**
+ * Clear the stack
+ */
+ public function clear() {
+ $this->_stack = array();
+ } // function push()
+
+ /**
+ * Return an array of all entries on the stack
+ *
+ * @return mixed[]
+ */
+ public function showStack() {
+ return $this->_stack;
+ }
+
+} // class PHPExcel_CalcEngine_CyclicReferenceStack
diff --git a/framework/library/phpexcel/PHPExcel/CalcEngine/Logger.php b/framework/library/phpexcel/PHPExcel/CalcEngine/Logger.php
new file mode 100644
index 0000000..1484767
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/CalcEngine/Logger.php
@@ -0,0 +1,153 @@
+_cellStack = $stack;
+ }
+
+ /**
+ * Enable/Disable Calculation engine logging
+ *
+ * @param boolean $pValue
+ */
+ public function setWriteDebugLog($pValue = FALSE) {
+ $this->_writeDebugLog = $pValue;
+ }
+
+ /**
+ * Return whether calculation engine logging is enabled or disabled
+ *
+ * @return boolean
+ */
+ public function getWriteDebugLog() {
+ return $this->_writeDebugLog;
+ }
+
+ /**
+ * Enable/Disable echoing of debug log information
+ *
+ * @param boolean $pValue
+ */
+ public function setEchoDebugLog($pValue = FALSE) {
+ $this->_echoDebugLog = $pValue;
+ }
+
+ /**
+ * Return whether echoing of debug log information is enabled or disabled
+ *
+ * @return boolean
+ */
+ public function getEchoDebugLog() {
+ return $this->_echoDebugLog;
+ }
+
+ /**
+ * Write an entry to the calculation engine debug log
+ */
+ public function writeDebugLog() {
+ // Only write the debug log if logging is enabled
+ if ($this->_writeDebugLog) {
+ $message = implode(func_get_args());
+ $cellReference = implode(' -> ', $this->_cellStack->showStack());
+ if ($this->_echoDebugLog) {
+ echo $cellReference,
+ ($this->_cellStack->count() > 0 ? ' => ' : ''),
+ $message,
+ PHP_EOL;
+ }
+ $this->_debugLog[] = $cellReference .
+ ($this->_cellStack->count() > 0 ? ' => ' : '') .
+ $message;
+ }
+ } // function _writeDebug()
+
+ /**
+ * Clear the calculation engine debug log
+ */
+ public function clearLog() {
+ $this->_debugLog = array();
+ } // function flushLogger()
+
+ /**
+ * Return the calculation engine debug log
+ *
+ * @return string[]
+ */
+ public function getLog() {
+ return $this->_debugLog;
+ } // function flushLogger()
+
+} // class PHPExcel_CalcEngine_Logger
+
diff --git a/framework/library/phpexcel/PHPExcel/Calculation/Database.php b/framework/library/phpexcel/PHPExcel/Calculation/Database.php
new file mode 100644
index 0000000..df68045
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/Calculation/Database.php
@@ -0,0 +1,725 @@
+ $criteriaName) {
+ $testCondition = array();
+ $testConditionCount = 0;
+ foreach($criteria as $row => $criterion) {
+ if ($criterion[$key] > '') {
+ $testCondition[] = '[:'.$criteriaName.']'.PHPExcel_Calculation_Functions::_ifCondition($criterion[$key]);
+ $testConditionCount++;
+ }
+ }
+ if ($testConditionCount > 1) {
+ $testConditions[] = 'OR('.implode(',',$testCondition).')';
+ $testConditionsCount++;
+ } elseif($testConditionCount == 1) {
+ $testConditions[] = $testCondition[0];
+ $testConditionsCount++;
+ }
+ }
+
+ if ($testConditionsCount > 1) {
+ $testConditionSet = 'AND('.implode(',',$testConditions).')';
+ } elseif($testConditionsCount == 1) {
+ $testConditionSet = $testConditions[0];
+ }
+
+ // Loop through each row of the database
+ foreach($database as $dataRow => $dataValues) {
+ // Substitute actual values from the database row for our [:placeholders]
+ $testConditionList = $testConditionSet;
+ foreach($criteriaNames as $key => $criteriaName) {
+ $k = array_search($criteriaName,$fieldNames);
+ if (isset($dataValues[$k])) {
+ $dataValue = $dataValues[$k];
+ $dataValue = (is_string($dataValue)) ? PHPExcel_Calculation::_wrapResult(strtoupper($dataValue)) : $dataValue;
+ $testConditionList = str_replace('[:'.$criteriaName.']',$dataValue,$testConditionList);
+ }
+ }
+ // evaluate the criteria against the row data
+ $result = PHPExcel_Calculation::getInstance()->_calculateFormulaValue('='.$testConditionList);
+ // If the row failed to meet the criteria, remove it from the database
+ if (!$result) {
+ unset($database[$dataRow]);
+ }
+ }
+
+ return $database;
+ }
+
+
+ /**
+ * DAVERAGE
+ *
+ * Averages the values in a column of a list or database that match conditions you specify.
+ *
+ * Excel Function:
+ * DAVERAGE(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return float
+ *
+ */
+ public static function DAVERAGE($database,$field,$criteria) {
+ $field = self::__fieldExtract($database,$field);
+ if (is_null($field)) {
+ return NULL;
+ }
+ // reduce the database to a set of rows that match all the criteria
+ $database = self::__filter($database,$criteria);
+ // extract an array of values for the requested column
+ $colData = array();
+ foreach($database as $row) {
+ $colData[] = $row[$field];
+ }
+
+ // Return
+ return PHPExcel_Calculation_Statistical::AVERAGE($colData);
+ } // function DAVERAGE()
+
+
+ /**
+ * DCOUNT
+ *
+ * Counts the cells that contain numbers in a column of a list or database that match conditions
+ * that you specify.
+ *
+ * Excel Function:
+ * DCOUNT(database,[field],criteria)
+ *
+ * Excel Function:
+ * DAVERAGE(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return integer
+ *
+ * @TODO The field argument is optional. If field is omitted, DCOUNT counts all records in the
+ * database that match the criteria.
+ *
+ */
+ public static function DCOUNT($database,$field,$criteria) {
+ $field = self::__fieldExtract($database,$field);
+ if (is_null($field)) {
+ return NULL;
+ }
+
+ // reduce the database to a set of rows that match all the criteria
+ $database = self::__filter($database,$criteria);
+ // extract an array of values for the requested column
+ $colData = array();
+ foreach($database as $row) {
+ $colData[] = $row[$field];
+ }
+
+ // Return
+ return PHPExcel_Calculation_Statistical::COUNT($colData);
+ } // function DCOUNT()
+
+
+ /**
+ * DCOUNTA
+ *
+ * Counts the nonblank cells in a column of a list or database that match conditions that you specify.
+ *
+ * Excel Function:
+ * DCOUNTA(database,[field],criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return integer
+ *
+ * @TODO The field argument is optional. If field is omitted, DCOUNTA counts all records in the
+ * database that match the criteria.
+ *
+ */
+ public static function DCOUNTA($database,$field,$criteria) {
+ $field = self::__fieldExtract($database,$field);
+ if (is_null($field)) {
+ return NULL;
+ }
+
+ // reduce the database to a set of rows that match all the criteria
+ $database = self::__filter($database,$criteria);
+ // extract an array of values for the requested column
+ $colData = array();
+ foreach($database as $row) {
+ $colData[] = $row[$field];
+ }
+
+ // Return
+ return PHPExcel_Calculation_Statistical::COUNTA($colData);
+ } // function DCOUNTA()
+
+
+ /**
+ * DGET
+ *
+ * Extracts a single value from a column of a list or database that matches conditions that you
+ * specify.
+ *
+ * Excel Function:
+ * DGET(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return mixed
+ *
+ */
+ public static function DGET($database,$field,$criteria) {
+ $field = self::__fieldExtract($database,$field);
+ if (is_null($field)) {
+ return NULL;
+ }
+
+ // reduce the database to a set of rows that match all the criteria
+ $database = self::__filter($database,$criteria);
+ // extract an array of values for the requested column
+ $colData = array();
+ foreach($database as $row) {
+ $colData[] = $row[$field];
+ }
+
+ // Return
+ if (count($colData) > 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ return $colData[0];
+ } // function DGET()
+
+
+ /**
+ * DMAX
+ *
+ * Returns the largest number in a column of a list or database that matches conditions you that
+ * specify.
+ *
+ * Excel Function:
+ * DMAX(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return float
+ *
+ */
+ public static function DMAX($database,$field,$criteria) {
+ $field = self::__fieldExtract($database,$field);
+ if (is_null($field)) {
+ return NULL;
+ }
+
+ // reduce the database to a set of rows that match all the criteria
+ $database = self::__filter($database,$criteria);
+ // extract an array of values for the requested column
+ $colData = array();
+ foreach($database as $row) {
+ $colData[] = $row[$field];
+ }
+
+ // Return
+ return PHPExcel_Calculation_Statistical::MAX($colData);
+ } // function DMAX()
+
+
+ /**
+ * DMIN
+ *
+ * Returns the smallest number in a column of a list or database that matches conditions you that
+ * specify.
+ *
+ * Excel Function:
+ * DMIN(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return float
+ *
+ */
+ public static function DMIN($database,$field,$criteria) {
+ $field = self::__fieldExtract($database,$field);
+ if (is_null($field)) {
+ return NULL;
+ }
+
+ // reduce the database to a set of rows that match all the criteria
+ $database = self::__filter($database,$criteria);
+ // extract an array of values for the requested column
+ $colData = array();
+ foreach($database as $row) {
+ $colData[] = $row[$field];
+ }
+
+ // Return
+ return PHPExcel_Calculation_Statistical::MIN($colData);
+ } // function DMIN()
+
+
+ /**
+ * DPRODUCT
+ *
+ * Multiplies the values in a column of a list or database that match conditions that you specify.
+ *
+ * Excel Function:
+ * DPRODUCT(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return float
+ *
+ */
+ public static function DPRODUCT($database,$field,$criteria) {
+ $field = self::__fieldExtract($database,$field);
+ if (is_null($field)) {
+ return NULL;
+ }
+
+ // reduce the database to a set of rows that match all the criteria
+ $database = self::__filter($database,$criteria);
+ // extract an array of values for the requested column
+ $colData = array();
+ foreach($database as $row) {
+ $colData[] = $row[$field];
+ }
+
+ // Return
+ return PHPExcel_Calculation_MathTrig::PRODUCT($colData);
+ } // function DPRODUCT()
+
+
+ /**
+ * DSTDEV
+ *
+ * Estimates the standard deviation of a population based on a sample by using the numbers in a
+ * column of a list or database that match conditions that you specify.
+ *
+ * Excel Function:
+ * DSTDEV(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return float
+ *
+ */
+ public static function DSTDEV($database,$field,$criteria) {
+ $field = self::__fieldExtract($database,$field);
+ if (is_null($field)) {
+ return NULL;
+ }
+
+ // reduce the database to a set of rows that match all the criteria
+ $database = self::__filter($database,$criteria);
+ // extract an array of values for the requested column
+ $colData = array();
+ foreach($database as $row) {
+ $colData[] = $row[$field];
+ }
+
+ // Return
+ return PHPExcel_Calculation_Statistical::STDEV($colData);
+ } // function DSTDEV()
+
+
+ /**
+ * DSTDEVP
+ *
+ * Calculates the standard deviation of a population based on the entire population by using the
+ * numbers in a column of a list or database that match conditions that you specify.
+ *
+ * Excel Function:
+ * DSTDEVP(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return float
+ *
+ */
+ public static function DSTDEVP($database,$field,$criteria) {
+ $field = self::__fieldExtract($database,$field);
+ if (is_null($field)) {
+ return NULL;
+ }
+
+ // reduce the database to a set of rows that match all the criteria
+ $database = self::__filter($database,$criteria);
+ // extract an array of values for the requested column
+ $colData = array();
+ foreach($database as $row) {
+ $colData[] = $row[$field];
+ }
+
+ // Return
+ return PHPExcel_Calculation_Statistical::STDEVP($colData);
+ } // function DSTDEVP()
+
+
+ /**
+ * DSUM
+ *
+ * Adds the numbers in a column of a list or database that match conditions that you specify.
+ *
+ * Excel Function:
+ * DSUM(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return float
+ *
+ */
+ public static function DSUM($database,$field,$criteria) {
+ $field = self::__fieldExtract($database,$field);
+ if (is_null($field)) {
+ return NULL;
+ }
+
+ // reduce the database to a set of rows that match all the criteria
+ $database = self::__filter($database,$criteria);
+ // extract an array of values for the requested column
+ $colData = array();
+ foreach($database as $row) {
+ $colData[] = $row[$field];
+ }
+
+ // Return
+ return PHPExcel_Calculation_MathTrig::SUM($colData);
+ } // function DSUM()
+
+
+ /**
+ * DVAR
+ *
+ * Estimates the variance of a population based on a sample by using the numbers in a column
+ * of a list or database that match conditions that you specify.
+ *
+ * Excel Function:
+ * DVAR(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return float
+ *
+ */
+ public static function DVAR($database,$field,$criteria) {
+ $field = self::__fieldExtract($database,$field);
+ if (is_null($field)) {
+ return NULL;
+ }
+
+ // reduce the database to a set of rows that match all the criteria
+ $database = self::__filter($database,$criteria);
+ // extract an array of values for the requested column
+ $colData = array();
+ foreach($database as $row) {
+ $colData[] = $row[$field];
+ }
+
+ // Return
+ return PHPExcel_Calculation_Statistical::VARFunc($colData);
+ } // function DVAR()
+
+
+ /**
+ * DVARP
+ *
+ * Calculates the variance of a population based on the entire population by using the numbers
+ * in a column of a list or database that match conditions that you specify.
+ *
+ * Excel Function:
+ * DVARP(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return float
+ *
+ */
+ public static function DVARP($database,$field,$criteria) {
+ $field = self::__fieldExtract($database,$field);
+ if (is_null($field)) {
+ return NULL;
+ }
+
+ // reduce the database to a set of rows that match all the criteria
+ $database = self::__filter($database,$criteria);
+ // extract an array of values for the requested column
+ $colData = array();
+ foreach($database as $row) {
+ $colData[] = $row[$field];
+ }
+
+ // Return
+ return PHPExcel_Calculation_Statistical::VARP($colData);
+ } // function DVARP()
+
+
+} // class PHPExcel_Calculation_Database
diff --git a/framework/library/phpexcel/PHPExcel/Calculation/DateTime.php b/framework/library/phpexcel/PHPExcel/Calculation/DateTime.php
new file mode 100644
index 0000000..2d5180a
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/Calculation/DateTime.php
@@ -0,0 +1,1475 @@
+format('m');
+ $oYear = (int) $PHPDateObject->format('Y');
+
+ $adjustmentMonthsString = (string) $adjustmentMonths;
+ if ($adjustmentMonths > 0) {
+ $adjustmentMonthsString = '+'.$adjustmentMonths;
+ }
+ if ($adjustmentMonths != 0) {
+ $PHPDateObject->modify($adjustmentMonthsString.' months');
+ }
+ $nMonth = (int) $PHPDateObject->format('m');
+ $nYear = (int) $PHPDateObject->format('Y');
+
+ $monthDiff = ($nMonth - $oMonth) + (($nYear - $oYear) * 12);
+ if ($monthDiff != $adjustmentMonths) {
+ $adjustDays = (int) $PHPDateObject->format('d');
+ $adjustDaysString = '-'.$adjustDays.' days';
+ $PHPDateObject->modify($adjustDaysString);
+ }
+ return $PHPDateObject;
+ } // function _adjustDateByMonths()
+
+
+ /**
+ * DATETIMENOW
+ *
+ * Returns the current date and time.
+ * The NOW function is useful when you need to display the current date and time on a worksheet or
+ * calculate a value based on the current date and time, and have that value updated each time you
+ * open the worksheet.
+ *
+ * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date
+ * and time format of your regional settings. PHPExcel does not change cell formatting in this way.
+ *
+ * Excel Function:
+ * NOW()
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function DATETIMENOW() {
+ $saveTimeZone = date_default_timezone_get();
+ date_default_timezone_set('UTC');
+ $retValue = False;
+ switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
+ case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL :
+ $retValue = (float) PHPExcel_Shared_Date::PHPToExcel(time());
+ break;
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC :
+ $retValue = (integer) time();
+ break;
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT :
+ $retValue = new DateTime();
+ break;
+ }
+ date_default_timezone_set($saveTimeZone);
+
+ return $retValue;
+ } // function DATETIMENOW()
+
+
+ /**
+ * DATENOW
+ *
+ * Returns the current date.
+ * The NOW function is useful when you need to display the current date and time on a worksheet or
+ * calculate a value based on the current date and time, and have that value updated each time you
+ * open the worksheet.
+ *
+ * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date
+ * and time format of your regional settings. PHPExcel does not change cell formatting in this way.
+ *
+ * Excel Function:
+ * TODAY()
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function DATENOW() {
+ $saveTimeZone = date_default_timezone_get();
+ date_default_timezone_set('UTC');
+ $retValue = False;
+ $excelDateTime = floor(PHPExcel_Shared_Date::PHPToExcel(time()));
+ switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
+ case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL :
+ $retValue = (float) $excelDateTime;
+ break;
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC :
+ $retValue = (integer) PHPExcel_Shared_Date::ExcelToPHP($excelDateTime);
+ break;
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT :
+ $retValue = PHPExcel_Shared_Date::ExcelToPHPObject($excelDateTime);
+ break;
+ }
+ date_default_timezone_set($saveTimeZone);
+
+ return $retValue;
+ } // function DATENOW()
+
+
+ /**
+ * DATE
+ *
+ * The DATE function returns a value that represents a particular date.
+ *
+ * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date
+ * format of your regional settings. PHPExcel does not change cell formatting in this way.
+ *
+ * Excel Function:
+ * DATE(year,month,day)
+ *
+ * PHPExcel is a lot more forgiving than MS Excel when passing non numeric values to this function.
+ * A Month name or abbreviation (English only at this point) such as 'January' or 'Jan' will still be accepted,
+ * as will a day value with a suffix (e.g. '21st' rather than simply 21); again only English language.
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @param integer $year The value of the year argument can include one to four digits.
+ * Excel interprets the year argument according to the configured
+ * date system: 1900 or 1904.
+ * If year is between 0 (zero) and 1899 (inclusive), Excel adds that
+ * value to 1900 to calculate the year. For example, DATE(108,1,2)
+ * returns January 2, 2008 (1900+108).
+ * If year is between 1900 and 9999 (inclusive), Excel uses that
+ * value as the year. For example, DATE(2008,1,2) returns January 2,
+ * 2008.
+ * If year is less than 0 or is 10000 or greater, Excel returns the
+ * #NUM! error value.
+ * @param integer $month A positive or negative integer representing the month of the year
+ * from 1 to 12 (January to December).
+ * If month is greater than 12, month adds that number of months to
+ * the first month in the year specified. For example, DATE(2008,14,2)
+ * returns the serial number representing February 2, 2009.
+ * If month is less than 1, month subtracts the magnitude of that
+ * number of months, plus 1, from the first month in the year
+ * specified. For example, DATE(2008,-3,2) returns the serial number
+ * representing September 2, 2007.
+ * @param integer $day A positive or negative integer representing the day of the month
+ * from 1 to 31.
+ * If day is greater than the number of days in the month specified,
+ * day adds that number of days to the first day in the month. For
+ * example, DATE(2008,1,35) returns the serial number representing
+ * February 4, 2008.
+ * If day is less than 1, day subtracts the magnitude that number of
+ * days, plus one, from the first day of the month specified. For
+ * example, DATE(2008,1,-15) returns the serial number representing
+ * December 16, 2007.
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function DATE($year = 0, $month = 1, $day = 1) {
+ $year = PHPExcel_Calculation_Functions::flattenSingleValue($year);
+ $month = PHPExcel_Calculation_Functions::flattenSingleValue($month);
+ $day = PHPExcel_Calculation_Functions::flattenSingleValue($day);
+
+ if (($month !== NULL) && (!is_numeric($month))) {
+ $month = PHPExcel_Shared_Date::monthStringToNumber($month);
+ }
+
+ if (($day !== NULL) && (!is_numeric($day))) {
+ $day = PHPExcel_Shared_Date::dayStringToNumber($day);
+ }
+
+ $year = ($year !== NULL) ? PHPExcel_Shared_String::testStringAsNumeric($year) : 0;
+ $month = ($month !== NULL) ? PHPExcel_Shared_String::testStringAsNumeric($month) : 0;
+ $day = ($day !== NULL) ? PHPExcel_Shared_String::testStringAsNumeric($day) : 0;
+ if ((!is_numeric($year)) ||
+ (!is_numeric($month)) ||
+ (!is_numeric($day))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $year = (integer) $year;
+ $month = (integer) $month;
+ $day = (integer) $day;
+
+ $baseYear = PHPExcel_Shared_Date::getExcelCalendar();
+ // Validate parameters
+ if ($year < ($baseYear-1900)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if ((($baseYear-1900) != 0) && ($year < $baseYear) && ($year >= 1900)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ if (($year < $baseYear) && ($year >= ($baseYear-1900))) {
+ $year += 1900;
+ }
+
+ if ($month < 1) {
+ // Handle year/month adjustment if month < 1
+ --$month;
+ $year += ceil($month / 12) - 1;
+ $month = 13 - abs($month % 12);
+ } elseif ($month > 12) {
+ // Handle year/month adjustment if month > 12
+ $year += floor($month / 12);
+ $month = ($month % 12);
+ }
+
+ // Re-validate the year parameter after adjustments
+ if (($year < $baseYear) || ($year >= 10000)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // Execute function
+ $excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($year, $month, $day);
+ switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
+ case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL :
+ return (float) $excelDateValue;
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC :
+ return (integer) PHPExcel_Shared_Date::ExcelToPHP($excelDateValue);
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT :
+ return PHPExcel_Shared_Date::ExcelToPHPObject($excelDateValue);
+ }
+ } // function DATE()
+
+
+ /**
+ * TIME
+ *
+ * The TIME function returns a value that represents a particular time.
+ *
+ * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the time
+ * format of your regional settings. PHPExcel does not change cell formatting in this way.
+ *
+ * Excel Function:
+ * TIME(hour,minute,second)
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @param integer $hour A number from 0 (zero) to 32767 representing the hour.
+ * Any value greater than 23 will be divided by 24 and the remainder
+ * will be treated as the hour value. For example, TIME(27,0,0) =
+ * TIME(3,0,0) = .125 or 3:00 AM.
+ * @param integer $minute A number from 0 to 32767 representing the minute.
+ * Any value greater than 59 will be converted to hours and minutes.
+ * For example, TIME(0,750,0) = TIME(12,30,0) = .520833 or 12:30 PM.
+ * @param integer $second A number from 0 to 32767 representing the second.
+ * Any value greater than 59 will be converted to hours, minutes,
+ * and seconds. For example, TIME(0,0,2000) = TIME(0,33,22) = .023148
+ * or 12:33:20 AM
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function TIME($hour = 0, $minute = 0, $second = 0) {
+ $hour = PHPExcel_Calculation_Functions::flattenSingleValue($hour);
+ $minute = PHPExcel_Calculation_Functions::flattenSingleValue($minute);
+ $second = PHPExcel_Calculation_Functions::flattenSingleValue($second);
+
+ if ($hour == '') { $hour = 0; }
+ if ($minute == '') { $minute = 0; }
+ if ($second == '') { $second = 0; }
+
+ if ((!is_numeric($hour)) || (!is_numeric($minute)) || (!is_numeric($second))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $hour = (integer) $hour;
+ $minute = (integer) $minute;
+ $second = (integer) $second;
+
+ if ($second < 0) {
+ $minute += floor($second / 60);
+ $second = 60 - abs($second % 60);
+ if ($second == 60) { $second = 0; }
+ } elseif ($second >= 60) {
+ $minute += floor($second / 60);
+ $second = $second % 60;
+ }
+ if ($minute < 0) {
+ $hour += floor($minute / 60);
+ $minute = 60 - abs($minute % 60);
+ if ($minute == 60) { $minute = 0; }
+ } elseif ($minute >= 60) {
+ $hour += floor($minute / 60);
+ $minute = $minute % 60;
+ }
+
+ if ($hour > 23) {
+ $hour = $hour % 24;
+ } elseif ($hour < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // Execute function
+ switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
+ case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL :
+ $date = 0;
+ $calendar = PHPExcel_Shared_Date::getExcelCalendar();
+ if ($calendar != PHPExcel_Shared_Date::CALENDAR_WINDOWS_1900) {
+ $date = 1;
+ }
+ return (float) PHPExcel_Shared_Date::FormattedPHPToExcel($calendar, 1, $date, $hour, $minute, $second);
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC :
+ return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::FormattedPHPToExcel(1970, 1, 1, $hour, $minute, $second)); // -2147468400; // -2147472000 + 3600
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT :
+ $dayAdjust = 0;
+ if ($hour < 0) {
+ $dayAdjust = floor($hour / 24);
+ $hour = 24 - abs($hour % 24);
+ if ($hour == 24) { $hour = 0; }
+ } elseif ($hour >= 24) {
+ $dayAdjust = floor($hour / 24);
+ $hour = $hour % 24;
+ }
+ $phpDateObject = new DateTime('1900-01-01 '.$hour.':'.$minute.':'.$second);
+ if ($dayAdjust != 0) {
+ $phpDateObject->modify($dayAdjust.' days');
+ }
+ return $phpDateObject;
+ }
+ } // function TIME()
+
+
+ /**
+ * DATEVALUE
+ *
+ * Returns a value that represents a particular date.
+ * Use DATEVALUE to convert a date represented by a text string to an Excel or PHP date/time stamp
+ * value.
+ *
+ * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date
+ * format of your regional settings. PHPExcel does not change cell formatting in this way.
+ *
+ * Excel Function:
+ * DATEVALUE(dateValue)
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @param string $dateValue Text that represents a date in a Microsoft Excel date format.
+ * For example, "1/30/2008" or "30-Jan-2008" are text strings within
+ * quotation marks that represent dates. Using the default date
+ * system in Excel for Windows, date_text must represent a date from
+ * January 1, 1900, to December 31, 9999. Using the default date
+ * system in Excel for the Macintosh, date_text must represent a date
+ * from January 1, 1904, to December 31, 9999. DATEVALUE returns the
+ * #VALUE! error value if date_text is out of this range.
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function DATEVALUE($dateValue = 1) {
+ $dateValue = trim(PHPExcel_Calculation_Functions::flattenSingleValue($dateValue),'"');
+ // Strip any ordinals because they're allowed in Excel (English only)
+ $dateValue = preg_replace('/(\d)(st|nd|rd|th)([ -\/])/Ui','$1$3',$dateValue);
+ // Convert separators (/ . or space) to hyphens (should also handle dot used for ordinals in some countries, e.g. Denmark, Germany)
+ $dateValue = str_replace(array('/','.','-',' '),array(' ',' ',' ',' '),$dateValue);
+
+ $yearFound = false;
+ $t1 = explode(' ',$dateValue);
+ foreach($t1 as &$t) {
+ if ((is_numeric($t)) && ($t > 31)) {
+ if ($yearFound) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } else {
+ if ($t < 100) { $t += 1900; }
+ $yearFound = true;
+ }
+ }
+ }
+ if ((count($t1) == 1) && (strpos($t,':') != false)) {
+ // We've been fed a time value without any date
+ return 0.0;
+ } elseif (count($t1) == 2) {
+ // We only have two parts of the date: either day/month or month/year
+ if ($yearFound) {
+ array_unshift($t1,1);
+ } else {
+ array_push($t1,date('Y'));
+ }
+ }
+ unset($t);
+ $dateValue = implode(' ',$t1);
+
+ $PHPDateArray = date_parse($dateValue);
+ if (($PHPDateArray === False) || ($PHPDateArray['error_count'] > 0)) {
+ $testVal1 = strtok($dateValue,'- ');
+ if ($testVal1 !== False) {
+ $testVal2 = strtok('- ');
+ if ($testVal2 !== False) {
+ $testVal3 = strtok('- ');
+ if ($testVal3 === False) {
+ $testVal3 = strftime('%Y');
+ }
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $PHPDateArray = date_parse($testVal1.'-'.$testVal2.'-'.$testVal3);
+ if (($PHPDateArray === False) || ($PHPDateArray['error_count'] > 0)) {
+ $PHPDateArray = date_parse($testVal2.'-'.$testVal1.'-'.$testVal3);
+ if (($PHPDateArray === False) || ($PHPDateArray['error_count'] > 0)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ }
+
+ if (($PHPDateArray !== False) && ($PHPDateArray['error_count'] == 0)) {
+ // Execute function
+ if ($PHPDateArray['year'] == '') { $PHPDateArray['year'] = strftime('%Y'); }
+ if ($PHPDateArray['year'] < 1900)
+ return PHPExcel_Calculation_Functions::VALUE();
+ if ($PHPDateArray['month'] == '') { $PHPDateArray['month'] = strftime('%m'); }
+ if ($PHPDateArray['day'] == '') { $PHPDateArray['day'] = strftime('%d'); }
+ $excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
+
+ switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
+ case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL :
+ return (float) $excelDateValue;
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC :
+ return (integer) PHPExcel_Shared_Date::ExcelToPHP($excelDateValue);
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT :
+ return new DateTime($PHPDateArray['year'].'-'.$PHPDateArray['month'].'-'.$PHPDateArray['day'].' 00:00:00');
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function DATEVALUE()
+
+
+ /**
+ * TIMEVALUE
+ *
+ * Returns a value that represents a particular time.
+ * Use TIMEVALUE to convert a time represented by a text string to an Excel or PHP date/time stamp
+ * value.
+ *
+ * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the time
+ * format of your regional settings. PHPExcel does not change cell formatting in this way.
+ *
+ * Excel Function:
+ * TIMEVALUE(timeValue)
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @param string $timeValue A text string that represents a time in any one of the Microsoft
+ * Excel time formats; for example, "6:45 PM" and "18:45" text strings
+ * within quotation marks that represent time.
+ * Date information in time_text is ignored.
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function TIMEVALUE($timeValue) {
+ $timeValue = trim(PHPExcel_Calculation_Functions::flattenSingleValue($timeValue),'"');
+ $timeValue = str_replace(array('/','.'),array('-','-'),$timeValue);
+
+ $PHPDateArray = date_parse($timeValue);
+ if (($PHPDateArray !== False) && ($PHPDateArray['error_count'] == 0)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ $excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
+ } else {
+ $excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel(1900,1,1,$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']) - 1;
+ }
+
+ switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
+ case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL :
+ return (float) $excelDateValue;
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC :
+ return (integer) $phpDateValue = PHPExcel_Shared_Date::ExcelToPHP($excelDateValue+25569) - 3600;;
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT :
+ return new DateTime('1900-01-01 '.$PHPDateArray['hour'].':'.$PHPDateArray['minute'].':'.$PHPDateArray['second']);
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function TIMEVALUE()
+
+
+ /**
+ * DATEDIF
+ *
+ * @param mixed $startDate Excel date serial value, PHP date/time stamp, PHP DateTime object
+ * or a standard date string
+ * @param mixed $endDate Excel date serial value, PHP date/time stamp, PHP DateTime object
+ * or a standard date string
+ * @param string $unit
+ * @return integer Interval between the dates
+ */
+ public static function DATEDIF($startDate = 0, $endDate = 0, $unit = 'D') {
+ $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate);
+ $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate);
+ $unit = strtoupper(PHPExcel_Calculation_Functions::flattenSingleValue($unit));
+
+ if (is_string($startDate = self::_getDateValue($startDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($endDate = self::_getDateValue($endDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ // Validate parameters
+ if ($startDate >= $endDate) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // Execute function
+ $difference = $endDate - $startDate;
+
+ $PHPStartDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($startDate);
+ $startDays = $PHPStartDateObject->format('j');
+ $startMonths = $PHPStartDateObject->format('n');
+ $startYears = $PHPStartDateObject->format('Y');
+
+ $PHPEndDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($endDate);
+ $endDays = $PHPEndDateObject->format('j');
+ $endMonths = $PHPEndDateObject->format('n');
+ $endYears = $PHPEndDateObject->format('Y');
+
+ $retVal = PHPExcel_Calculation_Functions::NaN();
+ switch ($unit) {
+ case 'D':
+ $retVal = intval($difference);
+ break;
+ case 'M':
+ $retVal = intval($endMonths - $startMonths) + (intval($endYears - $startYears) * 12);
+ // We're only interested in full months
+ if ($endDays < $startDays) {
+ --$retVal;
+ }
+ break;
+ case 'Y':
+ $retVal = intval($endYears - $startYears);
+ // We're only interested in full months
+ if ($endMonths < $startMonths) {
+ --$retVal;
+ } elseif (($endMonths == $startMonths) && ($endDays < $startDays)) {
+ --$retVal;
+ }
+ break;
+ case 'MD':
+ if ($endDays < $startDays) {
+ $retVal = $endDays;
+ $PHPEndDateObject->modify('-'.$endDays.' days');
+ $adjustDays = $PHPEndDateObject->format('j');
+ if ($adjustDays > $startDays) {
+ $retVal += ($adjustDays - $startDays);
+ }
+ } else {
+ $retVal = $endDays - $startDays;
+ }
+ break;
+ case 'YM':
+ $retVal = intval($endMonths - $startMonths);
+ if ($retVal < 0) $retVal = 12 + $retVal;
+ // We're only interested in full months
+ if ($endDays < $startDays) {
+ --$retVal;
+ }
+ break;
+ case 'YD':
+ $retVal = intval($difference);
+ if ($endYears > $startYears) {
+ while ($endYears > $startYears) {
+ $PHPEndDateObject->modify('-1 year');
+ $endYears = $PHPEndDateObject->format('Y');
+ }
+ $retVal = $PHPEndDateObject->format('z') - $PHPStartDateObject->format('z');
+ if ($retVal < 0) { $retVal += 365; }
+ }
+ break;
+ default:
+ $retVal = PHPExcel_Calculation_Functions::NaN();
+ }
+ return $retVal;
+ } // function DATEDIF()
+
+
+ /**
+ * DAYS360
+ *
+ * Returns the number of days between two dates based on a 360-day year (twelve 30-day months),
+ * which is used in some accounting calculations. Use this function to help compute payments if
+ * your accounting system is based on twelve 30-day months.
+ *
+ * Excel Function:
+ * DAYS360(startDate,endDate[,method])
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param boolean $method US or European Method
+ * FALSE or omitted: U.S. (NASD) method. If the starting date is
+ * the last day of a month, it becomes equal to the 30th of the
+ * same month. If the ending date is the last day of a month and
+ * the starting date is earlier than the 30th of a month, the
+ * ending date becomes equal to the 1st of the next month;
+ * otherwise the ending date becomes equal to the 30th of the
+ * same month.
+ * TRUE: European method. Starting dates and ending dates that
+ * occur on the 31st of a month become equal to the 30th of the
+ * same month.
+ * @return integer Number of days between start date and end date
+ */
+ public static function DAYS360($startDate = 0, $endDate = 0, $method = false) {
+ $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate);
+ $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate);
+
+ if (is_string($startDate = self::_getDateValue($startDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($endDate = self::_getDateValue($endDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (!is_bool($method)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ // Execute function
+ $PHPStartDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($startDate);
+ $startDay = $PHPStartDateObject->format('j');
+ $startMonth = $PHPStartDateObject->format('n');
+ $startYear = $PHPStartDateObject->format('Y');
+
+ $PHPEndDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($endDate);
+ $endDay = $PHPEndDateObject->format('j');
+ $endMonth = $PHPEndDateObject->format('n');
+ $endYear = $PHPEndDateObject->format('Y');
+
+ return self::_dateDiff360($startDay, $startMonth, $startYear, $endDay, $endMonth, $endYear, !$method);
+ } // function DAYS360()
+
+
+ /**
+ * YEARFRAC
+ *
+ * Calculates the fraction of the year represented by the number of whole days between two dates
+ * (the start_date and the end_date).
+ * Use the YEARFRAC worksheet function to identify the proportion of a whole year's benefits or
+ * obligations to assign to a specific term.
+ *
+ * Excel Function:
+ * YEARFRAC(startDate,endDate[,method])
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param integer $method Method used for the calculation
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float fraction of the year
+ */
+ public static function YEARFRAC($startDate = 0, $endDate = 0, $method = 0) {
+ $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate);
+ $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate);
+ $method = PHPExcel_Calculation_Functions::flattenSingleValue($method);
+
+ if (is_string($startDate = self::_getDateValue($startDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($endDate = self::_getDateValue($endDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (((is_numeric($method)) && (!is_string($method))) || ($method == '')) {
+ switch($method) {
+ case 0 :
+ return self::DAYS360($startDate,$endDate) / 360;
+ case 1 :
+ $days = self::DATEDIF($startDate,$endDate);
+ $startYear = self::YEAR($startDate);
+ $endYear = self::YEAR($endDate);
+ $years = $endYear - $startYear + 1;
+ $leapDays = 0;
+ if ($years == 1) {
+ if (self::_isLeapYear($endYear)) {
+ $startMonth = self::MONTHOFYEAR($startDate);
+ $endMonth = self::MONTHOFYEAR($endDate);
+ $endDay = self::DAYOFMONTH($endDate);
+ if (($startMonth < 3) ||
+ (($endMonth * 100 + $endDay) >= (2 * 100 + 29))) {
+ $leapDays += 1;
+ }
+ }
+ } else {
+ for($year = $startYear; $year <= $endYear; ++$year) {
+ if ($year == $startYear) {
+ $startMonth = self::MONTHOFYEAR($startDate);
+ $startDay = self::DAYOFMONTH($startDate);
+ if ($startMonth < 3) {
+ $leapDays += (self::_isLeapYear($year)) ? 1 : 0;
+ }
+ } elseif($year == $endYear) {
+ $endMonth = self::MONTHOFYEAR($endDate);
+ $endDay = self::DAYOFMONTH($endDate);
+ if (($endMonth * 100 + $endDay) >= (2 * 100 + 29)) {
+ $leapDays += (self::_isLeapYear($year)) ? 1 : 0;
+ }
+ } else {
+ $leapDays += (self::_isLeapYear($year)) ? 1 : 0;
+ }
+ }
+ if ($years == 2) {
+ if (($leapDays == 0) && (self::_isLeapYear($startYear)) && ($days > 365)) {
+ $leapDays = 1;
+ } elseif ($days < 366) {
+ $years = 1;
+ }
+ }
+ $leapDays /= $years;
+ }
+ return $days / (365 + $leapDays);
+ case 2 :
+ return self::DATEDIF($startDate,$endDate) / 360;
+ case 3 :
+ return self::DATEDIF($startDate,$endDate) / 365;
+ case 4 :
+ return self::DAYS360($startDate,$endDate,True) / 360;
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function YEARFRAC()
+
+
+ /**
+ * NETWORKDAYS
+ *
+ * Returns the number of whole working days between start_date and end_date. Working days
+ * exclude weekends and any dates identified in holidays.
+ * Use NETWORKDAYS to calculate employee benefits that accrue based on the number of days
+ * worked during a specific term.
+ *
+ * Excel Function:
+ * NETWORKDAYS(startDate,endDate[,holidays[,holiday[,...]]])
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param mixed $holidays,... Optional series of Excel date serial value (float), PHP date
+ * timestamp (integer), PHP DateTime object, or a standard date
+ * strings that will be excluded from the working calendar, such
+ * as state and federal holidays and floating holidays.
+ * @return integer Interval between the dates
+ */
+ public static function NETWORKDAYS($startDate,$endDate) {
+ // Retrieve the mandatory start and end date that are referenced in the function definition
+ $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate);
+ $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate);
+ // Flush the mandatory start and end date that are referenced in the function definition, and get the optional days
+ $dateArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
+ array_shift($dateArgs);
+ array_shift($dateArgs);
+
+ // Validate the start and end dates
+ if (is_string($startDate = $sDate = self::_getDateValue($startDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $startDate = (float) floor($startDate);
+ if (is_string($endDate = $eDate = self::_getDateValue($endDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $endDate = (float) floor($endDate);
+
+ if ($sDate > $eDate) {
+ $startDate = $eDate;
+ $endDate = $sDate;
+ }
+
+ // Execute function
+ $startDoW = 6 - self::DAYOFWEEK($startDate,2);
+ if ($startDoW < 0) { $startDoW = 0; }
+ $endDoW = self::DAYOFWEEK($endDate,2);
+ if ($endDoW >= 6) { $endDoW = 0; }
+
+ $wholeWeekDays = floor(($endDate - $startDate) / 7) * 5;
+ $partWeekDays = $endDoW + $startDoW;
+ if ($partWeekDays > 5) {
+ $partWeekDays -= 5;
+ }
+
+ // Test any extra holiday parameters
+ $holidayCountedArray = array();
+ foreach ($dateArgs as $holidayDate) {
+ if (is_string($holidayDate = self::_getDateValue($holidayDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (($holidayDate >= $startDate) && ($holidayDate <= $endDate)) {
+ if ((self::DAYOFWEEK($holidayDate,2) < 6) && (!in_array($holidayDate,$holidayCountedArray))) {
+ --$partWeekDays;
+ $holidayCountedArray[] = $holidayDate;
+ }
+ }
+ }
+
+ if ($sDate > $eDate) {
+ return 0 - ($wholeWeekDays + $partWeekDays);
+ }
+ return $wholeWeekDays + $partWeekDays;
+ } // function NETWORKDAYS()
+
+
+ /**
+ * WORKDAY
+ *
+ * Returns the date that is the indicated number of working days before or after a date (the
+ * starting date). Working days exclude weekends and any dates identified as holidays.
+ * Use WORKDAY to exclude weekends or holidays when you calculate invoice due dates, expected
+ * delivery times, or the number of days of work performed.
+ *
+ * Excel Function:
+ * WORKDAY(startDate,endDays[,holidays[,holiday[,...]]])
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param integer $endDays The number of nonweekend and nonholiday days before or after
+ * startDate. A positive value for days yields a future date; a
+ * negative value yields a past date.
+ * @param mixed $holidays,... Optional series of Excel date serial value (float), PHP date
+ * timestamp (integer), PHP DateTime object, or a standard date
+ * strings that will be excluded from the working calendar, such
+ * as state and federal holidays and floating holidays.
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function WORKDAY($startDate,$endDays) {
+ // Retrieve the mandatory start date and days that are referenced in the function definition
+ $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate);
+ $endDays = PHPExcel_Calculation_Functions::flattenSingleValue($endDays);
+ // Flush the mandatory start date and days that are referenced in the function definition, and get the optional days
+ $dateArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
+ array_shift($dateArgs);
+ array_shift($dateArgs);
+
+ if ((is_string($startDate = self::_getDateValue($startDate))) || (!is_numeric($endDays))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $startDate = (float) floor($startDate);
+ $endDays = (int) floor($endDays);
+ // If endDays is 0, we always return startDate
+ if ($endDays == 0) { return $startDate; }
+
+ $decrementing = ($endDays < 0) ? True : False;
+
+ // Adjust the start date if it falls over a weekend
+
+ $startDoW = self::DAYOFWEEK($startDate,3);
+ if (self::DAYOFWEEK($startDate,3) >= 5) {
+ $startDate += ($decrementing) ? -$startDoW + 4: 7 - $startDoW;
+ ($decrementing) ? $endDays++ : $endDays--;
+ }
+
+ // Add endDays
+ $endDate = (float) $startDate + (intval($endDays / 5) * 7) + ($endDays % 5);
+
+ // Adjust the calculated end date if it falls over a weekend
+ $endDoW = self::DAYOFWEEK($endDate,3);
+ if ($endDoW >= 5) {
+ $endDate += ($decrementing) ? -$endDoW + 4: 7 - $endDoW;
+ }
+
+ // Test any extra holiday parameters
+ if (!empty($dateArgs)) {
+ $holidayCountedArray = $holidayDates = array();
+ foreach ($dateArgs as $holidayDate) {
+ if (($holidayDate !== NULL) && (trim($holidayDate) > '')) {
+ if (is_string($holidayDate = self::_getDateValue($holidayDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (self::DAYOFWEEK($holidayDate,3) < 5) {
+ $holidayDates[] = $holidayDate;
+ }
+ }
+ }
+ if ($decrementing) {
+ rsort($holidayDates, SORT_NUMERIC);
+ } else {
+ sort($holidayDates, SORT_NUMERIC);
+ }
+ foreach ($holidayDates as $holidayDate) {
+ if ($decrementing) {
+ if (($holidayDate <= $startDate) && ($holidayDate >= $endDate)) {
+ if (!in_array($holidayDate,$holidayCountedArray)) {
+ --$endDate;
+ $holidayCountedArray[] = $holidayDate;
+ }
+ }
+ } else {
+ if (($holidayDate >= $startDate) && ($holidayDate <= $endDate)) {
+ if (!in_array($holidayDate,$holidayCountedArray)) {
+ ++$endDate;
+ $holidayCountedArray[] = $holidayDate;
+ }
+ }
+ }
+ // Adjust the calculated end date if it falls over a weekend
+ $endDoW = self::DAYOFWEEK($endDate,3);
+ if ($endDoW >= 5) {
+ $endDate += ($decrementing) ? -$endDoW + 4: 7 - $endDoW;
+ }
+
+ }
+ }
+
+ switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
+ case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL :
+ return (float) $endDate;
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC :
+ return (integer) PHPExcel_Shared_Date::ExcelToPHP($endDate);
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT :
+ return PHPExcel_Shared_Date::ExcelToPHPObject($endDate);
+ }
+ } // function WORKDAY()
+
+
+ /**
+ * DAYOFMONTH
+ *
+ * Returns the day of the month, for a specified date. The day is given as an integer
+ * ranging from 1 to 31.
+ *
+ * Excel Function:
+ * DAY(dateValue)
+ *
+ * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @return int Day of the month
+ */
+ public static function DAYOFMONTH($dateValue = 1) {
+ $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
+
+ if (is_string($dateValue = self::_getDateValue($dateValue))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif ($dateValue == 0.0) {
+ return 0;
+ } elseif ($dateValue < 0.0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // Execute function
+ $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
+
+ return (int) $PHPDateObject->format('j');
+ } // function DAYOFMONTH()
+
+
+ /**
+ * DAYOFWEEK
+ *
+ * Returns the day of the week for a specified date. The day is given as an integer
+ * ranging from 0 to 7 (dependent on the requested style).
+ *
+ * Excel Function:
+ * WEEKDAY(dateValue[,style])
+ *
+ * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param int $style A number that determines the type of return value
+ * 1 or omitted Numbers 1 (Sunday) through 7 (Saturday).
+ * 2 Numbers 1 (Monday) through 7 (Sunday).
+ * 3 Numbers 0 (Monday) through 6 (Sunday).
+ * @return int Day of the week value
+ */
+ public static function DAYOFWEEK($dateValue = 1, $style = 1) {
+ $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
+ $style = PHPExcel_Calculation_Functions::flattenSingleValue($style);
+
+ if (!is_numeric($style)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif (($style < 1) || ($style > 3)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $style = floor($style);
+
+ if (is_string($dateValue = self::_getDateValue($dateValue))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif ($dateValue < 0.0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // Execute function
+ $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
+ $DoW = $PHPDateObject->format('w');
+
+ $firstDay = 1;
+ switch ($style) {
+ case 1: ++$DoW;
+ break;
+ case 2: if ($DoW == 0) { $DoW = 7; }
+ break;
+ case 3: if ($DoW == 0) { $DoW = 7; }
+ $firstDay = 0;
+ --$DoW;
+ break;
+ }
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL) {
+ // Test for Excel's 1900 leap year, and introduce the error as required
+ if (($PHPDateObject->format('Y') == 1900) && ($PHPDateObject->format('n') <= 2)) {
+ --$DoW;
+ if ($DoW < $firstDay) {
+ $DoW += 7;
+ }
+ }
+ }
+
+ return (int) $DoW;
+ } // function DAYOFWEEK()
+
+
+ /**
+ * WEEKOFYEAR
+ *
+ * Returns the week of the year for a specified date.
+ * The WEEKNUM function considers the week containing January 1 to be the first week of the year.
+ * However, there is a European standard that defines the first week as the one with the majority
+ * of days (four or more) falling in the new year. This means that for years in which there are
+ * three days or less in the first week of January, the WEEKNUM function returns week numbers
+ * that are incorrect according to the European standard.
+ *
+ * Excel Function:
+ * WEEKNUM(dateValue[,style])
+ *
+ * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param boolean $method Week begins on Sunday or Monday
+ * 1 or omitted Week begins on Sunday.
+ * 2 Week begins on Monday.
+ * @return int Week Number
+ */
+ public static function WEEKOFYEAR($dateValue = 1, $method = 1) {
+ $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
+ $method = PHPExcel_Calculation_Functions::flattenSingleValue($method);
+
+ if (!is_numeric($method)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif (($method < 1) || ($method > 2)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $method = floor($method);
+
+ if (is_string($dateValue = self::_getDateValue($dateValue))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif ($dateValue < 0.0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // Execute function
+ $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
+ $dayOfYear = $PHPDateObject->format('z');
+ $dow = $PHPDateObject->format('w');
+ $PHPDateObject->modify('-'.$dayOfYear.' days');
+ $dow = $PHPDateObject->format('w');
+ $daysInFirstWeek = 7 - (($dow + (2 - $method)) % 7);
+ $dayOfYear -= $daysInFirstWeek;
+ $weekOfYear = ceil($dayOfYear / 7) + 1;
+
+ return (int) $weekOfYear;
+ } // function WEEKOFYEAR()
+
+
+ /**
+ * MONTHOFYEAR
+ *
+ * Returns the month of a date represented by a serial number.
+ * The month is given as an integer, ranging from 1 (January) to 12 (December).
+ *
+ * Excel Function:
+ * MONTH(dateValue)
+ *
+ * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @return int Month of the year
+ */
+ public static function MONTHOFYEAR($dateValue = 1) {
+ $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
+
+ if (is_string($dateValue = self::_getDateValue($dateValue))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif ($dateValue < 0.0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // Execute function
+ $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
+
+ return (int) $PHPDateObject->format('n');
+ } // function MONTHOFYEAR()
+
+
+ /**
+ * YEAR
+ *
+ * Returns the year corresponding to a date.
+ * The year is returned as an integer in the range 1900-9999.
+ *
+ * Excel Function:
+ * YEAR(dateValue)
+ *
+ * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @return int Year
+ */
+ public static function YEAR($dateValue = 1) {
+ $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
+
+ if (is_string($dateValue = self::_getDateValue($dateValue))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif ($dateValue < 0.0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // Execute function
+ $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
+
+ return (int) $PHPDateObject->format('Y');
+ } // function YEAR()
+
+
+ /**
+ * HOUROFDAY
+ *
+ * Returns the hour of a time value.
+ * The hour is given as an integer, ranging from 0 (12:00 A.M.) to 23 (11:00 P.M.).
+ *
+ * Excel Function:
+ * HOUR(timeValue)
+ *
+ * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard time string
+ * @return int Hour
+ */
+ public static function HOUROFDAY($timeValue = 0) {
+ $timeValue = PHPExcel_Calculation_Functions::flattenSingleValue($timeValue);
+
+ if (!is_numeric($timeValue)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
+ $testVal = strtok($timeValue,'/-: ');
+ if (strlen($testVal) < strlen($timeValue)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ $timeValue = self::_getTimeValue($timeValue);
+ if (is_string($timeValue)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ // Execute function
+ if ($timeValue >= 1) {
+ $timeValue = fmod($timeValue,1);
+ } elseif ($timeValue < 0.0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $timeValue = PHPExcel_Shared_Date::ExcelToPHP($timeValue);
+
+ return (int) gmdate('G',$timeValue);
+ } // function HOUROFDAY()
+
+
+ /**
+ * MINUTEOFHOUR
+ *
+ * Returns the minutes of a time value.
+ * The minute is given as an integer, ranging from 0 to 59.
+ *
+ * Excel Function:
+ * MINUTE(timeValue)
+ *
+ * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard time string
+ * @return int Minute
+ */
+ public static function MINUTEOFHOUR($timeValue = 0) {
+ $timeValue = $timeTester = PHPExcel_Calculation_Functions::flattenSingleValue($timeValue);
+
+ if (!is_numeric($timeValue)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
+ $testVal = strtok($timeValue,'/-: ');
+ if (strlen($testVal) < strlen($timeValue)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ $timeValue = self::_getTimeValue($timeValue);
+ if (is_string($timeValue)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ // Execute function
+ if ($timeValue >= 1) {
+ $timeValue = fmod($timeValue,1);
+ } elseif ($timeValue < 0.0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $timeValue = PHPExcel_Shared_Date::ExcelToPHP($timeValue);
+
+ return (int) gmdate('i',$timeValue);
+ } // function MINUTEOFHOUR()
+
+
+ /**
+ * SECONDOFMINUTE
+ *
+ * Returns the seconds of a time value.
+ * The second is given as an integer in the range 0 (zero) to 59.
+ *
+ * Excel Function:
+ * SECOND(timeValue)
+ *
+ * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard time string
+ * @return int Second
+ */
+ public static function SECONDOFMINUTE($timeValue = 0) {
+ $timeValue = PHPExcel_Calculation_Functions::flattenSingleValue($timeValue);
+
+ if (!is_numeric($timeValue)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
+ $testVal = strtok($timeValue,'/-: ');
+ if (strlen($testVal) < strlen($timeValue)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ $timeValue = self::_getTimeValue($timeValue);
+ if (is_string($timeValue)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ // Execute function
+ if ($timeValue >= 1) {
+ $timeValue = fmod($timeValue,1);
+ } elseif ($timeValue < 0.0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $timeValue = PHPExcel_Shared_Date::ExcelToPHP($timeValue);
+
+ return (int) gmdate('s',$timeValue);
+ } // function SECONDOFMINUTE()
+
+
+ /**
+ * EDATE
+ *
+ * Returns the serial number that represents the date that is the indicated number of months
+ * before or after a specified date (the start_date).
+ * Use EDATE to calculate maturity dates or due dates that fall on the same day of the month
+ * as the date of issue.
+ *
+ * Excel Function:
+ * EDATE(dateValue,adjustmentMonths)
+ *
+ * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param int $adjustmentMonths The number of months before or after start_date.
+ * A positive value for months yields a future date;
+ * a negative value yields a past date.
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function EDATE($dateValue = 1, $adjustmentMonths = 0) {
+ $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
+ $adjustmentMonths = PHPExcel_Calculation_Functions::flattenSingleValue($adjustmentMonths);
+
+ if (!is_numeric($adjustmentMonths)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $adjustmentMonths = floor($adjustmentMonths);
+
+ if (is_string($dateValue = self::_getDateValue($dateValue))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ // Execute function
+ $PHPDateObject = self::_adjustDateByMonths($dateValue,$adjustmentMonths);
+
+ switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
+ case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL :
+ return (float) PHPExcel_Shared_Date::PHPToExcel($PHPDateObject);
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC :
+ return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT :
+ return $PHPDateObject;
+ }
+ } // function EDATE()
+
+
+ /**
+ * EOMONTH
+ *
+ * Returns the date value for the last day of the month that is the indicated number of months
+ * before or after start_date.
+ * Use EOMONTH to calculate maturity dates or due dates that fall on the last day of the month.
+ *
+ * Excel Function:
+ * EOMONTH(dateValue,adjustmentMonths)
+ *
+ * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param int $adjustmentMonths The number of months before or after start_date.
+ * A positive value for months yields a future date;
+ * a negative value yields a past date.
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function EOMONTH($dateValue = 1, $adjustmentMonths = 0) {
+ $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
+ $adjustmentMonths = PHPExcel_Calculation_Functions::flattenSingleValue($adjustmentMonths);
+
+ if (!is_numeric($adjustmentMonths)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $adjustmentMonths = floor($adjustmentMonths);
+
+ if (is_string($dateValue = self::_getDateValue($dateValue))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ // Execute function
+ $PHPDateObject = self::_adjustDateByMonths($dateValue,$adjustmentMonths+1);
+ $adjustDays = (int) $PHPDateObject->format('d');
+ $adjustDaysString = '-'.$adjustDays.' days';
+ $PHPDateObject->modify($adjustDaysString);
+
+ switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
+ case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL :
+ return (float) PHPExcel_Shared_Date::PHPToExcel($PHPDateObject);
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC :
+ return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT :
+ return $PHPDateObject;
+ }
+ } // function EOMONTH()
+
+} // class PHPExcel_Calculation_DateTime
+
diff --git a/framework/library/phpexcel/PHPExcel/Calculation/Engineering.php b/framework/library/phpexcel/PHPExcel/Calculation/Engineering.php
new file mode 100644
index 0000000..340ce32
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/Calculation/Engineering.php
@@ -0,0 +1,2505 @@
+ array( 'Group' => 'Mass', 'Unit Name' => 'Gram', 'AllowPrefix' => True ),
+ 'sg' => array( 'Group' => 'Mass', 'Unit Name' => 'Slug', 'AllowPrefix' => False ),
+ 'lbm' => array( 'Group' => 'Mass', 'Unit Name' => 'Pound mass (avoirdupois)', 'AllowPrefix' => False ),
+ 'u' => array( 'Group' => 'Mass', 'Unit Name' => 'U (atomic mass unit)', 'AllowPrefix' => True ),
+ 'ozm' => array( 'Group' => 'Mass', 'Unit Name' => 'Ounce mass (avoirdupois)', 'AllowPrefix' => False ),
+ 'm' => array( 'Group' => 'Distance', 'Unit Name' => 'Meter', 'AllowPrefix' => True ),
+ 'mi' => array( 'Group' => 'Distance', 'Unit Name' => 'Statute mile', 'AllowPrefix' => False ),
+ 'Nmi' => array( 'Group' => 'Distance', 'Unit Name' => 'Nautical mile', 'AllowPrefix' => False ),
+ 'in' => array( 'Group' => 'Distance', 'Unit Name' => 'Inch', 'AllowPrefix' => False ),
+ 'ft' => array( 'Group' => 'Distance', 'Unit Name' => 'Foot', 'AllowPrefix' => False ),
+ 'yd' => array( 'Group' => 'Distance', 'Unit Name' => 'Yard', 'AllowPrefix' => False ),
+ 'ang' => array( 'Group' => 'Distance', 'Unit Name' => 'Angstrom', 'AllowPrefix' => True ),
+ 'Pica' => array( 'Group' => 'Distance', 'Unit Name' => 'Pica (1/72 in)', 'AllowPrefix' => False ),
+ 'yr' => array( 'Group' => 'Time', 'Unit Name' => 'Year', 'AllowPrefix' => False ),
+ 'day' => array( 'Group' => 'Time', 'Unit Name' => 'Day', 'AllowPrefix' => False ),
+ 'hr' => array( 'Group' => 'Time', 'Unit Name' => 'Hour', 'AllowPrefix' => False ),
+ 'mn' => array( 'Group' => 'Time', 'Unit Name' => 'Minute', 'AllowPrefix' => False ),
+ 'sec' => array( 'Group' => 'Time', 'Unit Name' => 'Second', 'AllowPrefix' => True ),
+ 'Pa' => array( 'Group' => 'Pressure', 'Unit Name' => 'Pascal', 'AllowPrefix' => True ),
+ 'p' => array( 'Group' => 'Pressure', 'Unit Name' => 'Pascal', 'AllowPrefix' => True ),
+ 'atm' => array( 'Group' => 'Pressure', 'Unit Name' => 'Atmosphere', 'AllowPrefix' => True ),
+ 'at' => array( 'Group' => 'Pressure', 'Unit Name' => 'Atmosphere', 'AllowPrefix' => True ),
+ 'mmHg' => array( 'Group' => 'Pressure', 'Unit Name' => 'mm of Mercury', 'AllowPrefix' => True ),
+ 'N' => array( 'Group' => 'Force', 'Unit Name' => 'Newton', 'AllowPrefix' => True ),
+ 'dyn' => array( 'Group' => 'Force', 'Unit Name' => 'Dyne', 'AllowPrefix' => True ),
+ 'dy' => array( 'Group' => 'Force', 'Unit Name' => 'Dyne', 'AllowPrefix' => True ),
+ 'lbf' => array( 'Group' => 'Force', 'Unit Name' => 'Pound force', 'AllowPrefix' => False ),
+ 'J' => array( 'Group' => 'Energy', 'Unit Name' => 'Joule', 'AllowPrefix' => True ),
+ 'e' => array( 'Group' => 'Energy', 'Unit Name' => 'Erg', 'AllowPrefix' => True ),
+ 'c' => array( 'Group' => 'Energy', 'Unit Name' => 'Thermodynamic calorie', 'AllowPrefix' => True ),
+ 'cal' => array( 'Group' => 'Energy', 'Unit Name' => 'IT calorie', 'AllowPrefix' => True ),
+ 'eV' => array( 'Group' => 'Energy', 'Unit Name' => 'Electron volt', 'AllowPrefix' => True ),
+ 'ev' => array( 'Group' => 'Energy', 'Unit Name' => 'Electron volt', 'AllowPrefix' => True ),
+ 'HPh' => array( 'Group' => 'Energy', 'Unit Name' => 'Horsepower-hour', 'AllowPrefix' => False ),
+ 'hh' => array( 'Group' => 'Energy', 'Unit Name' => 'Horsepower-hour', 'AllowPrefix' => False ),
+ 'Wh' => array( 'Group' => 'Energy', 'Unit Name' => 'Watt-hour', 'AllowPrefix' => True ),
+ 'wh' => array( 'Group' => 'Energy', 'Unit Name' => 'Watt-hour', 'AllowPrefix' => True ),
+ 'flb' => array( 'Group' => 'Energy', 'Unit Name' => 'Foot-pound', 'AllowPrefix' => False ),
+ 'BTU' => array( 'Group' => 'Energy', 'Unit Name' => 'BTU', 'AllowPrefix' => False ),
+ 'btu' => array( 'Group' => 'Energy', 'Unit Name' => 'BTU', 'AllowPrefix' => False ),
+ 'HP' => array( 'Group' => 'Power', 'Unit Name' => 'Horsepower', 'AllowPrefix' => False ),
+ 'h' => array( 'Group' => 'Power', 'Unit Name' => 'Horsepower', 'AllowPrefix' => False ),
+ 'W' => array( 'Group' => 'Power', 'Unit Name' => 'Watt', 'AllowPrefix' => True ),
+ 'w' => array( 'Group' => 'Power', 'Unit Name' => 'Watt', 'AllowPrefix' => True ),
+ 'T' => array( 'Group' => 'Magnetism', 'Unit Name' => 'Tesla', 'AllowPrefix' => True ),
+ 'ga' => array( 'Group' => 'Magnetism', 'Unit Name' => 'Gauss', 'AllowPrefix' => True ),
+ 'C' => array( 'Group' => 'Temperature', 'Unit Name' => 'Celsius', 'AllowPrefix' => False ),
+ 'cel' => array( 'Group' => 'Temperature', 'Unit Name' => 'Celsius', 'AllowPrefix' => False ),
+ 'F' => array( 'Group' => 'Temperature', 'Unit Name' => 'Fahrenheit', 'AllowPrefix' => False ),
+ 'fah' => array( 'Group' => 'Temperature', 'Unit Name' => 'Fahrenheit', 'AllowPrefix' => False ),
+ 'K' => array( 'Group' => 'Temperature', 'Unit Name' => 'Kelvin', 'AllowPrefix' => False ),
+ 'kel' => array( 'Group' => 'Temperature', 'Unit Name' => 'Kelvin', 'AllowPrefix' => False ),
+ 'tsp' => array( 'Group' => 'Liquid', 'Unit Name' => 'Teaspoon', 'AllowPrefix' => False ),
+ 'tbs' => array( 'Group' => 'Liquid', 'Unit Name' => 'Tablespoon', 'AllowPrefix' => False ),
+ 'oz' => array( 'Group' => 'Liquid', 'Unit Name' => 'Fluid Ounce', 'AllowPrefix' => False ),
+ 'cup' => array( 'Group' => 'Liquid', 'Unit Name' => 'Cup', 'AllowPrefix' => False ),
+ 'pt' => array( 'Group' => 'Liquid', 'Unit Name' => 'U.S. Pint', 'AllowPrefix' => False ),
+ 'us_pt' => array( 'Group' => 'Liquid', 'Unit Name' => 'U.S. Pint', 'AllowPrefix' => False ),
+ 'uk_pt' => array( 'Group' => 'Liquid', 'Unit Name' => 'U.K. Pint', 'AllowPrefix' => False ),
+ 'qt' => array( 'Group' => 'Liquid', 'Unit Name' => 'Quart', 'AllowPrefix' => False ),
+ 'gal' => array( 'Group' => 'Liquid', 'Unit Name' => 'Gallon', 'AllowPrefix' => False ),
+ 'l' => array( 'Group' => 'Liquid', 'Unit Name' => 'Litre', 'AllowPrefix' => True ),
+ 'lt' => array( 'Group' => 'Liquid', 'Unit Name' => 'Litre', 'AllowPrefix' => True )
+ );
+
+ /**
+ * Details of the Multiplier prefixes that can be used with Units of Measure in CONVERTUOM()
+ *
+ * @var mixed[]
+ */
+ private static $_conversionMultipliers = array( 'Y' => array( 'multiplier' => 1E24, 'name' => 'yotta' ),
+ 'Z' => array( 'multiplier' => 1E21, 'name' => 'zetta' ),
+ 'E' => array( 'multiplier' => 1E18, 'name' => 'exa' ),
+ 'P' => array( 'multiplier' => 1E15, 'name' => 'peta' ),
+ 'T' => array( 'multiplier' => 1E12, 'name' => 'tera' ),
+ 'G' => array( 'multiplier' => 1E9, 'name' => 'giga' ),
+ 'M' => array( 'multiplier' => 1E6, 'name' => 'mega' ),
+ 'k' => array( 'multiplier' => 1E3, 'name' => 'kilo' ),
+ 'h' => array( 'multiplier' => 1E2, 'name' => 'hecto' ),
+ 'e' => array( 'multiplier' => 1E1, 'name' => 'deka' ),
+ 'd' => array( 'multiplier' => 1E-1, 'name' => 'deci' ),
+ 'c' => array( 'multiplier' => 1E-2, 'name' => 'centi' ),
+ 'm' => array( 'multiplier' => 1E-3, 'name' => 'milli' ),
+ 'u' => array( 'multiplier' => 1E-6, 'name' => 'micro' ),
+ 'n' => array( 'multiplier' => 1E-9, 'name' => 'nano' ),
+ 'p' => array( 'multiplier' => 1E-12, 'name' => 'pico' ),
+ 'f' => array( 'multiplier' => 1E-15, 'name' => 'femto' ),
+ 'a' => array( 'multiplier' => 1E-18, 'name' => 'atto' ),
+ 'z' => array( 'multiplier' => 1E-21, 'name' => 'zepto' ),
+ 'y' => array( 'multiplier' => 1E-24, 'name' => 'yocto' )
+ );
+
+ /**
+ * Details of the Units of measure conversion factors, organised by group
+ *
+ * @var mixed[]
+ */
+ private static $_unitConversions = array( 'Mass' => array( 'g' => array( 'g' => 1.0,
+ 'sg' => 6.85220500053478E-05,
+ 'lbm' => 2.20462291469134E-03,
+ 'u' => 6.02217000000000E+23,
+ 'ozm' => 3.52739718003627E-02
+ ),
+ 'sg' => array( 'g' => 1.45938424189287E+04,
+ 'sg' => 1.0,
+ 'lbm' => 3.21739194101647E+01,
+ 'u' => 8.78866000000000E+27,
+ 'ozm' => 5.14782785944229E+02
+ ),
+ 'lbm' => array( 'g' => 4.5359230974881148E+02,
+ 'sg' => 3.10810749306493E-02,
+ 'lbm' => 1.0,
+ 'u' => 2.73161000000000E+26,
+ 'ozm' => 1.60000023429410E+01
+ ),
+ 'u' => array( 'g' => 1.66053100460465E-24,
+ 'sg' => 1.13782988532950E-28,
+ 'lbm' => 3.66084470330684E-27,
+ 'u' => 1.0,
+ 'ozm' => 5.85735238300524E-26
+ ),
+ 'ozm' => array( 'g' => 2.83495152079732E+01,
+ 'sg' => 1.94256689870811E-03,
+ 'lbm' => 6.24999908478882E-02,
+ 'u' => 1.70725600000000E+25,
+ 'ozm' => 1.0
+ )
+ ),
+ 'Distance' => array( 'm' => array( 'm' => 1.0,
+ 'mi' => 6.21371192237334E-04,
+ 'Nmi' => 5.39956803455724E-04,
+ 'in' => 3.93700787401575E+01,
+ 'ft' => 3.28083989501312E+00,
+ 'yd' => 1.09361329797891E+00,
+ 'ang' => 1.00000000000000E+10,
+ 'Pica' => 2.83464566929116E+03
+ ),
+ 'mi' => array( 'm' => 1.60934400000000E+03,
+ 'mi' => 1.0,
+ 'Nmi' => 8.68976241900648E-01,
+ 'in' => 6.33600000000000E+04,
+ 'ft' => 5.28000000000000E+03,
+ 'yd' => 1.76000000000000E+03,
+ 'ang' => 1.60934400000000E+13,
+ 'Pica' => 4.56191999999971E+06
+ ),
+ 'Nmi' => array( 'm' => 1.85200000000000E+03,
+ 'mi' => 1.15077944802354E+00,
+ 'Nmi' => 1.0,
+ 'in' => 7.29133858267717E+04,
+ 'ft' => 6.07611548556430E+03,
+ 'yd' => 2.02537182785694E+03,
+ 'ang' => 1.85200000000000E+13,
+ 'Pica' => 5.24976377952723E+06
+ ),
+ 'in' => array( 'm' => 2.54000000000000E-02,
+ 'mi' => 1.57828282828283E-05,
+ 'Nmi' => 1.37149028077754E-05,
+ 'in' => 1.0,
+ 'ft' => 8.33333333333333E-02,
+ 'yd' => 2.77777777686643E-02,
+ 'ang' => 2.54000000000000E+08,
+ 'Pica' => 7.19999999999955E+01
+ ),
+ 'ft' => array( 'm' => 3.04800000000000E-01,
+ 'mi' => 1.89393939393939E-04,
+ 'Nmi' => 1.64578833693305E-04,
+ 'in' => 1.20000000000000E+01,
+ 'ft' => 1.0,
+ 'yd' => 3.33333333223972E-01,
+ 'ang' => 3.04800000000000E+09,
+ 'Pica' => 8.63999999999946E+02
+ ),
+ 'yd' => array( 'm' => 9.14400000300000E-01,
+ 'mi' => 5.68181818368230E-04,
+ 'Nmi' => 4.93736501241901E-04,
+ 'in' => 3.60000000118110E+01,
+ 'ft' => 3.00000000000000E+00,
+ 'yd' => 1.0,
+ 'ang' => 9.14400000300000E+09,
+ 'Pica' => 2.59200000085023E+03
+ ),
+ 'ang' => array( 'm' => 1.00000000000000E-10,
+ 'mi' => 6.21371192237334E-14,
+ 'Nmi' => 5.39956803455724E-14,
+ 'in' => 3.93700787401575E-09,
+ 'ft' => 3.28083989501312E-10,
+ 'yd' => 1.09361329797891E-10,
+ 'ang' => 1.0,
+ 'Pica' => 2.83464566929116E-07
+ ),
+ 'Pica' => array( 'm' => 3.52777777777800E-04,
+ 'mi' => 2.19205948372629E-07,
+ 'Nmi' => 1.90484761219114E-07,
+ 'in' => 1.38888888888898E-02,
+ 'ft' => 1.15740740740748E-03,
+ 'yd' => 3.85802469009251E-04,
+ 'ang' => 3.52777777777800E+06,
+ 'Pica' => 1.0
+ )
+ ),
+ 'Time' => array( 'yr' => array( 'yr' => 1.0,
+ 'day' => 365.25,
+ 'hr' => 8766.0,
+ 'mn' => 525960.0,
+ 'sec' => 31557600.0
+ ),
+ 'day' => array( 'yr' => 2.73785078713210E-03,
+ 'day' => 1.0,
+ 'hr' => 24.0,
+ 'mn' => 1440.0,
+ 'sec' => 86400.0
+ ),
+ 'hr' => array( 'yr' => 1.14077116130504E-04,
+ 'day' => 4.16666666666667E-02,
+ 'hr' => 1.0,
+ 'mn' => 60.0,
+ 'sec' => 3600.0
+ ),
+ 'mn' => array( 'yr' => 1.90128526884174E-06,
+ 'day' => 6.94444444444444E-04,
+ 'hr' => 1.66666666666667E-02,
+ 'mn' => 1.0,
+ 'sec' => 60.0
+ ),
+ 'sec' => array( 'yr' => 3.16880878140289E-08,
+ 'day' => 1.15740740740741E-05,
+ 'hr' => 2.77777777777778E-04,
+ 'mn' => 1.66666666666667E-02,
+ 'sec' => 1.0
+ )
+ ),
+ 'Pressure' => array( 'Pa' => array( 'Pa' => 1.0,
+ 'p' => 1.0,
+ 'atm' => 9.86923299998193E-06,
+ 'at' => 9.86923299998193E-06,
+ 'mmHg' => 7.50061707998627E-03
+ ),
+ 'p' => array( 'Pa' => 1.0,
+ 'p' => 1.0,
+ 'atm' => 9.86923299998193E-06,
+ 'at' => 9.86923299998193E-06,
+ 'mmHg' => 7.50061707998627E-03
+ ),
+ 'atm' => array( 'Pa' => 1.01324996583000E+05,
+ 'p' => 1.01324996583000E+05,
+ 'atm' => 1.0,
+ 'at' => 1.0,
+ 'mmHg' => 760.0
+ ),
+ 'at' => array( 'Pa' => 1.01324996583000E+05,
+ 'p' => 1.01324996583000E+05,
+ 'atm' => 1.0,
+ 'at' => 1.0,
+ 'mmHg' => 760.0
+ ),
+ 'mmHg' => array( 'Pa' => 1.33322363925000E+02,
+ 'p' => 1.33322363925000E+02,
+ 'atm' => 1.31578947368421E-03,
+ 'at' => 1.31578947368421E-03,
+ 'mmHg' => 1.0
+ )
+ ),
+ 'Force' => array( 'N' => array( 'N' => 1.0,
+ 'dyn' => 1.0E+5,
+ 'dy' => 1.0E+5,
+ 'lbf' => 2.24808923655339E-01
+ ),
+ 'dyn' => array( 'N' => 1.0E-5,
+ 'dyn' => 1.0,
+ 'dy' => 1.0,
+ 'lbf' => 2.24808923655339E-06
+ ),
+ 'dy' => array( 'N' => 1.0E-5,
+ 'dyn' => 1.0,
+ 'dy' => 1.0,
+ 'lbf' => 2.24808923655339E-06
+ ),
+ 'lbf' => array( 'N' => 4.448222,
+ 'dyn' => 4.448222E+5,
+ 'dy' => 4.448222E+5,
+ 'lbf' => 1.0
+ )
+ ),
+ 'Energy' => array( 'J' => array( 'J' => 1.0,
+ 'e' => 9.99999519343231E+06,
+ 'c' => 2.39006249473467E-01,
+ 'cal' => 2.38846190642017E-01,
+ 'eV' => 6.24145700000000E+18,
+ 'ev' => 6.24145700000000E+18,
+ 'HPh' => 3.72506430801000E-07,
+ 'hh' => 3.72506430801000E-07,
+ 'Wh' => 2.77777916238711E-04,
+ 'wh' => 2.77777916238711E-04,
+ 'flb' => 2.37304222192651E+01,
+ 'BTU' => 9.47815067349015E-04,
+ 'btu' => 9.47815067349015E-04
+ ),
+ 'e' => array( 'J' => 1.00000048065700E-07,
+ 'e' => 1.0,
+ 'c' => 2.39006364353494E-08,
+ 'cal' => 2.38846305445111E-08,
+ 'eV' => 6.24146000000000E+11,
+ 'ev' => 6.24146000000000E+11,
+ 'HPh' => 3.72506609848824E-14,
+ 'hh' => 3.72506609848824E-14,
+ 'Wh' => 2.77778049754611E-11,
+ 'wh' => 2.77778049754611E-11,
+ 'flb' => 2.37304336254586E-06,
+ 'BTU' => 9.47815522922962E-11,
+ 'btu' => 9.47815522922962E-11
+ ),
+ 'c' => array( 'J' => 4.18399101363672E+00,
+ 'e' => 4.18398900257312E+07,
+ 'c' => 1.0,
+ 'cal' => 9.99330315287563E-01,
+ 'eV' => 2.61142000000000E+19,
+ 'ev' => 2.61142000000000E+19,
+ 'HPh' => 1.55856355899327E-06,
+ 'hh' => 1.55856355899327E-06,
+ 'Wh' => 1.16222030532950E-03,
+ 'wh' => 1.16222030532950E-03,
+ 'flb' => 9.92878733152102E+01,
+ 'BTU' => 3.96564972437776E-03,
+ 'btu' => 3.96564972437776E-03
+ ),
+ 'cal' => array( 'J' => 4.18679484613929E+00,
+ 'e' => 4.18679283372801E+07,
+ 'c' => 1.00067013349059E+00,
+ 'cal' => 1.0,
+ 'eV' => 2.61317000000000E+19,
+ 'ev' => 2.61317000000000E+19,
+ 'HPh' => 1.55960800463137E-06,
+ 'hh' => 1.55960800463137E-06,
+ 'Wh' => 1.16299914807955E-03,
+ 'wh' => 1.16299914807955E-03,
+ 'flb' => 9.93544094443283E+01,
+ 'BTU' => 3.96830723907002E-03,
+ 'btu' => 3.96830723907002E-03
+ ),
+ 'eV' => array( 'J' => 1.60219000146921E-19,
+ 'e' => 1.60218923136574E-12,
+ 'c' => 3.82933423195043E-20,
+ 'cal' => 3.82676978535648E-20,
+ 'eV' => 1.0,
+ 'ev' => 1.0,
+ 'HPh' => 5.96826078912344E-26,
+ 'hh' => 5.96826078912344E-26,
+ 'Wh' => 4.45053000026614E-23,
+ 'wh' => 4.45053000026614E-23,
+ 'flb' => 3.80206452103492E-18,
+ 'BTU' => 1.51857982414846E-22,
+ 'btu' => 1.51857982414846E-22
+ ),
+ 'ev' => array( 'J' => 1.60219000146921E-19,
+ 'e' => 1.60218923136574E-12,
+ 'c' => 3.82933423195043E-20,
+ 'cal' => 3.82676978535648E-20,
+ 'eV' => 1.0,
+ 'ev' => 1.0,
+ 'HPh' => 5.96826078912344E-26,
+ 'hh' => 5.96826078912344E-26,
+ 'Wh' => 4.45053000026614E-23,
+ 'wh' => 4.45053000026614E-23,
+ 'flb' => 3.80206452103492E-18,
+ 'BTU' => 1.51857982414846E-22,
+ 'btu' => 1.51857982414846E-22
+ ),
+ 'HPh' => array( 'J' => 2.68451741316170E+06,
+ 'e' => 2.68451612283024E+13,
+ 'c' => 6.41616438565991E+05,
+ 'cal' => 6.41186757845835E+05,
+ 'eV' => 1.67553000000000E+25,
+ 'ev' => 1.67553000000000E+25,
+ 'HPh' => 1.0,
+ 'hh' => 1.0,
+ 'Wh' => 7.45699653134593E+02,
+ 'wh' => 7.45699653134593E+02,
+ 'flb' => 6.37047316692964E+07,
+ 'BTU' => 2.54442605275546E+03,
+ 'btu' => 2.54442605275546E+03
+ ),
+ 'hh' => array( 'J' => 2.68451741316170E+06,
+ 'e' => 2.68451612283024E+13,
+ 'c' => 6.41616438565991E+05,
+ 'cal' => 6.41186757845835E+05,
+ 'eV' => 1.67553000000000E+25,
+ 'ev' => 1.67553000000000E+25,
+ 'HPh' => 1.0,
+ 'hh' => 1.0,
+ 'Wh' => 7.45699653134593E+02,
+ 'wh' => 7.45699653134593E+02,
+ 'flb' => 6.37047316692964E+07,
+ 'BTU' => 2.54442605275546E+03,
+ 'btu' => 2.54442605275546E+03
+ ),
+ 'Wh' => array( 'J' => 3.59999820554720E+03,
+ 'e' => 3.59999647518369E+10,
+ 'c' => 8.60422069219046E+02,
+ 'cal' => 8.59845857713046E+02,
+ 'eV' => 2.24692340000000E+22,
+ 'ev' => 2.24692340000000E+22,
+ 'HPh' => 1.34102248243839E-03,
+ 'hh' => 1.34102248243839E-03,
+ 'Wh' => 1.0,
+ 'wh' => 1.0,
+ 'flb' => 8.54294774062316E+04,
+ 'BTU' => 3.41213254164705E+00,
+ 'btu' => 3.41213254164705E+00
+ ),
+ 'wh' => array( 'J' => 3.59999820554720E+03,
+ 'e' => 3.59999647518369E+10,
+ 'c' => 8.60422069219046E+02,
+ 'cal' => 8.59845857713046E+02,
+ 'eV' => 2.24692340000000E+22,
+ 'ev' => 2.24692340000000E+22,
+ 'HPh' => 1.34102248243839E-03,
+ 'hh' => 1.34102248243839E-03,
+ 'Wh' => 1.0,
+ 'wh' => 1.0,
+ 'flb' => 8.54294774062316E+04,
+ 'BTU' => 3.41213254164705E+00,
+ 'btu' => 3.41213254164705E+00
+ ),
+ 'flb' => array( 'J' => 4.21400003236424E-02,
+ 'e' => 4.21399800687660E+05,
+ 'c' => 1.00717234301644E-02,
+ 'cal' => 1.00649785509554E-02,
+ 'eV' => 2.63015000000000E+17,
+ 'ev' => 2.63015000000000E+17,
+ 'HPh' => 1.56974211145130E-08,
+ 'hh' => 1.56974211145130E-08,
+ 'Wh' => 1.17055614802000E-05,
+ 'wh' => 1.17055614802000E-05,
+ 'flb' => 1.0,
+ 'BTU' => 3.99409272448406E-05,
+ 'btu' => 3.99409272448406E-05
+ ),
+ 'BTU' => array( 'J' => 1.05505813786749E+03,
+ 'e' => 1.05505763074665E+10,
+ 'c' => 2.52165488508168E+02,
+ 'cal' => 2.51996617135510E+02,
+ 'eV' => 6.58510000000000E+21,
+ 'ev' => 6.58510000000000E+21,
+ 'HPh' => 3.93015941224568E-04,
+ 'hh' => 3.93015941224568E-04,
+ 'Wh' => 2.93071851047526E-01,
+ 'wh' => 2.93071851047526E-01,
+ 'flb' => 2.50369750774671E+04,
+ 'BTU' => 1.0,
+ 'btu' => 1.0,
+ ),
+ 'btu' => array( 'J' => 1.05505813786749E+03,
+ 'e' => 1.05505763074665E+10,
+ 'c' => 2.52165488508168E+02,
+ 'cal' => 2.51996617135510E+02,
+ 'eV' => 6.58510000000000E+21,
+ 'ev' => 6.58510000000000E+21,
+ 'HPh' => 3.93015941224568E-04,
+ 'hh' => 3.93015941224568E-04,
+ 'Wh' => 2.93071851047526E-01,
+ 'wh' => 2.93071851047526E-01,
+ 'flb' => 2.50369750774671E+04,
+ 'BTU' => 1.0,
+ 'btu' => 1.0,
+ )
+ ),
+ 'Power' => array( 'HP' => array( 'HP' => 1.0,
+ 'h' => 1.0,
+ 'W' => 7.45701000000000E+02,
+ 'w' => 7.45701000000000E+02
+ ),
+ 'h' => array( 'HP' => 1.0,
+ 'h' => 1.0,
+ 'W' => 7.45701000000000E+02,
+ 'w' => 7.45701000000000E+02
+ ),
+ 'W' => array( 'HP' => 1.34102006031908E-03,
+ 'h' => 1.34102006031908E-03,
+ 'W' => 1.0,
+ 'w' => 1.0
+ ),
+ 'w' => array( 'HP' => 1.34102006031908E-03,
+ 'h' => 1.34102006031908E-03,
+ 'W' => 1.0,
+ 'w' => 1.0
+ )
+ ),
+ 'Magnetism' => array( 'T' => array( 'T' => 1.0,
+ 'ga' => 10000.0
+ ),
+ 'ga' => array( 'T' => 0.0001,
+ 'ga' => 1.0
+ )
+ ),
+ 'Liquid' => array( 'tsp' => array( 'tsp' => 1.0,
+ 'tbs' => 3.33333333333333E-01,
+ 'oz' => 1.66666666666667E-01,
+ 'cup' => 2.08333333333333E-02,
+ 'pt' => 1.04166666666667E-02,
+ 'us_pt' => 1.04166666666667E-02,
+ 'uk_pt' => 8.67558516821960E-03,
+ 'qt' => 5.20833333333333E-03,
+ 'gal' => 1.30208333333333E-03,
+ 'l' => 4.92999408400710E-03,
+ 'lt' => 4.92999408400710E-03
+ ),
+ 'tbs' => array( 'tsp' => 3.00000000000000E+00,
+ 'tbs' => 1.0,
+ 'oz' => 5.00000000000000E-01,
+ 'cup' => 6.25000000000000E-02,
+ 'pt' => 3.12500000000000E-02,
+ 'us_pt' => 3.12500000000000E-02,
+ 'uk_pt' => 2.60267555046588E-02,
+ 'qt' => 1.56250000000000E-02,
+ 'gal' => 3.90625000000000E-03,
+ 'l' => 1.47899822520213E-02,
+ 'lt' => 1.47899822520213E-02
+ ),
+ 'oz' => array( 'tsp' => 6.00000000000000E+00,
+ 'tbs' => 2.00000000000000E+00,
+ 'oz' => 1.0,
+ 'cup' => 1.25000000000000E-01,
+ 'pt' => 6.25000000000000E-02,
+ 'us_pt' => 6.25000000000000E-02,
+ 'uk_pt' => 5.20535110093176E-02,
+ 'qt' => 3.12500000000000E-02,
+ 'gal' => 7.81250000000000E-03,
+ 'l' => 2.95799645040426E-02,
+ 'lt' => 2.95799645040426E-02
+ ),
+ 'cup' => array( 'tsp' => 4.80000000000000E+01,
+ 'tbs' => 1.60000000000000E+01,
+ 'oz' => 8.00000000000000E+00,
+ 'cup' => 1.0,
+ 'pt' => 5.00000000000000E-01,
+ 'us_pt' => 5.00000000000000E-01,
+ 'uk_pt' => 4.16428088074541E-01,
+ 'qt' => 2.50000000000000E-01,
+ 'gal' => 6.25000000000000E-02,
+ 'l' => 2.36639716032341E-01,
+ 'lt' => 2.36639716032341E-01
+ ),
+ 'pt' => array( 'tsp' => 9.60000000000000E+01,
+ 'tbs' => 3.20000000000000E+01,
+ 'oz' => 1.60000000000000E+01,
+ 'cup' => 2.00000000000000E+00,
+ 'pt' => 1.0,
+ 'us_pt' => 1.0,
+ 'uk_pt' => 8.32856176149081E-01,
+ 'qt' => 5.00000000000000E-01,
+ 'gal' => 1.25000000000000E-01,
+ 'l' => 4.73279432064682E-01,
+ 'lt' => 4.73279432064682E-01
+ ),
+ 'us_pt' => array( 'tsp' => 9.60000000000000E+01,
+ 'tbs' => 3.20000000000000E+01,
+ 'oz' => 1.60000000000000E+01,
+ 'cup' => 2.00000000000000E+00,
+ 'pt' => 1.0,
+ 'us_pt' => 1.0,
+ 'uk_pt' => 8.32856176149081E-01,
+ 'qt' => 5.00000000000000E-01,
+ 'gal' => 1.25000000000000E-01,
+ 'l' => 4.73279432064682E-01,
+ 'lt' => 4.73279432064682E-01
+ ),
+ 'uk_pt' => array( 'tsp' => 1.15266000000000E+02,
+ 'tbs' => 3.84220000000000E+01,
+ 'oz' => 1.92110000000000E+01,
+ 'cup' => 2.40137500000000E+00,
+ 'pt' => 1.20068750000000E+00,
+ 'us_pt' => 1.20068750000000E+00,
+ 'uk_pt' => 1.0,
+ 'qt' => 6.00343750000000E-01,
+ 'gal' => 1.50085937500000E-01,
+ 'l' => 5.68260698087162E-01,
+ 'lt' => 5.68260698087162E-01
+ ),
+ 'qt' => array( 'tsp' => 1.92000000000000E+02,
+ 'tbs' => 6.40000000000000E+01,
+ 'oz' => 3.20000000000000E+01,
+ 'cup' => 4.00000000000000E+00,
+ 'pt' => 2.00000000000000E+00,
+ 'us_pt' => 2.00000000000000E+00,
+ 'uk_pt' => 1.66571235229816E+00,
+ 'qt' => 1.0,
+ 'gal' => 2.50000000000000E-01,
+ 'l' => 9.46558864129363E-01,
+ 'lt' => 9.46558864129363E-01
+ ),
+ 'gal' => array( 'tsp' => 7.68000000000000E+02,
+ 'tbs' => 2.56000000000000E+02,
+ 'oz' => 1.28000000000000E+02,
+ 'cup' => 1.60000000000000E+01,
+ 'pt' => 8.00000000000000E+00,
+ 'us_pt' => 8.00000000000000E+00,
+ 'uk_pt' => 6.66284940919265E+00,
+ 'qt' => 4.00000000000000E+00,
+ 'gal' => 1.0,
+ 'l' => 3.78623545651745E+00,
+ 'lt' => 3.78623545651745E+00
+ ),
+ 'l' => array( 'tsp' => 2.02840000000000E+02,
+ 'tbs' => 6.76133333333333E+01,
+ 'oz' => 3.38066666666667E+01,
+ 'cup' => 4.22583333333333E+00,
+ 'pt' => 2.11291666666667E+00,
+ 'us_pt' => 2.11291666666667E+00,
+ 'uk_pt' => 1.75975569552166E+00,
+ 'qt' => 1.05645833333333E+00,
+ 'gal' => 2.64114583333333E-01,
+ 'l' => 1.0,
+ 'lt' => 1.0
+ ),
+ 'lt' => array( 'tsp' => 2.02840000000000E+02,
+ 'tbs' => 6.76133333333333E+01,
+ 'oz' => 3.38066666666667E+01,
+ 'cup' => 4.22583333333333E+00,
+ 'pt' => 2.11291666666667E+00,
+ 'us_pt' => 2.11291666666667E+00,
+ 'uk_pt' => 1.75975569552166E+00,
+ 'qt' => 1.05645833333333E+00,
+ 'gal' => 2.64114583333333E-01,
+ 'l' => 1.0,
+ 'lt' => 1.0
+ )
+ )
+ );
+
+
+ /**
+ * _parseComplex
+ *
+ * Parses a complex number into its real and imaginary parts, and an I or J suffix
+ *
+ * @param string $complexNumber The complex number
+ * @return string[] Indexed on "real", "imaginary" and "suffix"
+ */
+ public static function _parseComplex($complexNumber) {
+ $workString = (string) $complexNumber;
+
+ $realNumber = $imaginary = 0;
+ // Extract the suffix, if there is one
+ $suffix = substr($workString,-1);
+ if (!is_numeric($suffix)) {
+ $workString = substr($workString,0,-1);
+ } else {
+ $suffix = '';
+ }
+
+ // Split the input into its Real and Imaginary components
+ $leadingSign = 0;
+ if (strlen($workString) > 0) {
+ $leadingSign = (($workString{0} == '+') || ($workString{0} == '-')) ? 1 : 0;
+ }
+ $power = '';
+ $realNumber = strtok($workString, '+-');
+ if (strtoupper(substr($realNumber,-1)) == 'E') {
+ $power = strtok('+-');
+ ++$leadingSign;
+ }
+
+ $realNumber = substr($workString,0,strlen($realNumber)+strlen($power)+$leadingSign);
+
+ if ($suffix != '') {
+ $imaginary = substr($workString,strlen($realNumber));
+
+ if (($imaginary == '') && (($realNumber == '') || ($realNumber == '+') || ($realNumber == '-'))) {
+ $imaginary = $realNumber.'1';
+ $realNumber = '0';
+ } else if ($imaginary == '') {
+ $imaginary = $realNumber;
+ $realNumber = '0';
+ } elseif (($imaginary == '+') || ($imaginary == '-')) {
+ $imaginary .= '1';
+ }
+ }
+
+ return array( 'real' => $realNumber,
+ 'imaginary' => $imaginary,
+ 'suffix' => $suffix
+ );
+ } // function _parseComplex()
+
+
+ /**
+ * Cleans the leading characters in a complex number string
+ *
+ * @param string $complexNumber The complex number to clean
+ * @return string The "cleaned" complex number
+ */
+ private static function _cleanComplex($complexNumber) {
+ if ($complexNumber{0} == '+') $complexNumber = substr($complexNumber,1);
+ if ($complexNumber{0} == '0') $complexNumber = substr($complexNumber,1);
+ if ($complexNumber{0} == '.') $complexNumber = '0'.$complexNumber;
+ if ($complexNumber{0} == '+') $complexNumber = substr($complexNumber,1);
+ return $complexNumber;
+ }
+
+ /**
+ * Formats a number base string value with leading zeroes
+ *
+ * @param string $xVal The "number" to pad
+ * @param integer $places The length that we want to pad this value
+ * @return string The padded "number"
+ */
+ private static function _nbrConversionFormat($xVal, $places) {
+ if (!is_null($places)) {
+ if (strlen($xVal) <= $places) {
+ return substr(str_pad($xVal, $places, '0', STR_PAD_LEFT), -10);
+ } else {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ }
+
+ return substr($xVal, -10);
+ } // function _nbrConversionFormat()
+
+ /**
+ * BESSELI
+ *
+ * Returns the modified Bessel function In(x), which is equivalent to the Bessel function evaluated
+ * for purely imaginary arguments
+ *
+ * Excel Function:
+ * BESSELI(x,ord)
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param float $x The value at which to evaluate the function.
+ * If x is nonnumeric, BESSELI returns the #VALUE! error value.
+ * @param integer $ord The order of the Bessel function.
+ * If ord is not an integer, it is truncated.
+ * If $ord is nonnumeric, BESSELI returns the #VALUE! error value.
+ * If $ord < 0, BESSELI returns the #NUM! error value.
+ * @return float
+ *
+ */
+ public static function BESSELI($x, $ord) {
+ $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord);
+
+ if ((is_numeric($x)) && (is_numeric($ord))) {
+ $ord = floor($ord);
+ if ($ord < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ if (abs($x) <= 30) {
+ $fResult = $fTerm = pow($x / 2, $ord) / PHPExcel_Calculation_MathTrig::FACT($ord);
+ $ordK = 1;
+ $fSqrX = ($x * $x) / 4;
+ do {
+ $fTerm *= $fSqrX;
+ $fTerm /= ($ordK * ($ordK + $ord));
+ $fResult += $fTerm;
+ } while ((abs($fTerm) > 1e-12) && (++$ordK < 100));
+ } else {
+ $f_2_PI = 2 * M_PI;
+
+ $fXAbs = abs($x);
+ $fResult = exp($fXAbs) / sqrt($f_2_PI * $fXAbs);
+ if (($ord & 1) && ($x < 0)) {
+ $fResult = -$fResult;
+ }
+ }
+ return (is_nan($fResult)) ? PHPExcel_Calculation_Functions::NaN() : $fResult;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function BESSELI()
+
+
+ /**
+ * BESSELJ
+ *
+ * Returns the Bessel function
+ *
+ * Excel Function:
+ * BESSELJ(x,ord)
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param float $x The value at which to evaluate the function.
+ * If x is nonnumeric, BESSELJ returns the #VALUE! error value.
+ * @param integer $ord The order of the Bessel function. If n is not an integer, it is truncated.
+ * If $ord is nonnumeric, BESSELJ returns the #VALUE! error value.
+ * If $ord < 0, BESSELJ returns the #NUM! error value.
+ * @return float
+ *
+ */
+ public static function BESSELJ($x, $ord) {
+ $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord);
+
+ if ((is_numeric($x)) && (is_numeric($ord))) {
+ $ord = floor($ord);
+ if ($ord < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ $fResult = 0;
+ if (abs($x) <= 30) {
+ $fResult = $fTerm = pow($x / 2, $ord) / PHPExcel_Calculation_MathTrig::FACT($ord);
+ $ordK = 1;
+ $fSqrX = ($x * $x) / -4;
+ do {
+ $fTerm *= $fSqrX;
+ $fTerm /= ($ordK * ($ordK + $ord));
+ $fResult += $fTerm;
+ } while ((abs($fTerm) > 1e-12) && (++$ordK < 100));
+ } else {
+ $f_PI_DIV_2 = M_PI / 2;
+ $f_PI_DIV_4 = M_PI / 4;
+
+ $fXAbs = abs($x);
+ $fResult = sqrt(M_2DIVPI / $fXAbs) * cos($fXAbs - $ord * $f_PI_DIV_2 - $f_PI_DIV_4);
+ if (($ord & 1) && ($x < 0)) {
+ $fResult = -$fResult;
+ }
+ }
+ return (is_nan($fResult)) ? PHPExcel_Calculation_Functions::NaN() : $fResult;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function BESSELJ()
+
+
+ private static function _Besselk0($fNum) {
+ if ($fNum <= 2) {
+ $fNum2 = $fNum * 0.5;
+ $y = ($fNum2 * $fNum2);
+ $fRet = -log($fNum2) * self::BESSELI($fNum, 0) +
+ (-0.57721566 + $y * (0.42278420 + $y * (0.23069756 + $y * (0.3488590e-1 + $y * (0.262698e-2 + $y *
+ (0.10750e-3 + $y * 0.74e-5))))));
+ } else {
+ $y = 2 / $fNum;
+ $fRet = exp(-$fNum) / sqrt($fNum) *
+ (1.25331414 + $y * (-0.7832358e-1 + $y * (0.2189568e-1 + $y * (-0.1062446e-1 + $y *
+ (0.587872e-2 + $y * (-0.251540e-2 + $y * 0.53208e-3))))));
+ }
+ return $fRet;
+ } // function _Besselk0()
+
+
+ private static function _Besselk1($fNum) {
+ if ($fNum <= 2) {
+ $fNum2 = $fNum * 0.5;
+ $y = ($fNum2 * $fNum2);
+ $fRet = log($fNum2) * self::BESSELI($fNum, 1) +
+ (1 + $y * (0.15443144 + $y * (-0.67278579 + $y * (-0.18156897 + $y * (-0.1919402e-1 + $y *
+ (-0.110404e-2 + $y * (-0.4686e-4))))))) / $fNum;
+ } else {
+ $y = 2 / $fNum;
+ $fRet = exp(-$fNum) / sqrt($fNum) *
+ (1.25331414 + $y * (0.23498619 + $y * (-0.3655620e-1 + $y * (0.1504268e-1 + $y * (-0.780353e-2 + $y *
+ (0.325614e-2 + $y * (-0.68245e-3)))))));
+ }
+ return $fRet;
+ } // function _Besselk1()
+
+
+ /**
+ * BESSELK
+ *
+ * Returns the modified Bessel function Kn(x), which is equivalent to the Bessel functions evaluated
+ * for purely imaginary arguments.
+ *
+ * Excel Function:
+ * BESSELK(x,ord)
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param float $x The value at which to evaluate the function.
+ * If x is nonnumeric, BESSELK returns the #VALUE! error value.
+ * @param integer $ord The order of the Bessel function. If n is not an integer, it is truncated.
+ * If $ord is nonnumeric, BESSELK returns the #VALUE! error value.
+ * If $ord < 0, BESSELK returns the #NUM! error value.
+ * @return float
+ *
+ */
+ public static function BESSELK($x, $ord) {
+ $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord);
+
+ if ((is_numeric($x)) && (is_numeric($ord))) {
+ if (($ord < 0) || ($x == 0.0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ switch(floor($ord)) {
+ case 0 : return self::_Besselk0($x);
+ break;
+ case 1 : return self::_Besselk1($x);
+ break;
+ default : $fTox = 2 / $x;
+ $fBkm = self::_Besselk0($x);
+ $fBk = self::_Besselk1($x);
+ for ($n = 1; $n < $ord; ++$n) {
+ $fBkp = $fBkm + $n * $fTox * $fBk;
+ $fBkm = $fBk;
+ $fBk = $fBkp;
+ }
+ }
+ return (is_nan($fBk)) ? PHPExcel_Calculation_Functions::NaN() : $fBk;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function BESSELK()
+
+
+ private static function _Bessely0($fNum) {
+ if ($fNum < 8.0) {
+ $y = ($fNum * $fNum);
+ $f1 = -2957821389.0 + $y * (7062834065.0 + $y * (-512359803.6 + $y * (10879881.29 + $y * (-86327.92757 + $y * 228.4622733))));
+ $f2 = 40076544269.0 + $y * (745249964.8 + $y * (7189466.438 + $y * (47447.26470 + $y * (226.1030244 + $y))));
+ $fRet = $f1 / $f2 + 0.636619772 * self::BESSELJ($fNum, 0) * log($fNum);
+ } else {
+ $z = 8.0 / $fNum;
+ $y = ($z * $z);
+ $xx = $fNum - 0.785398164;
+ $f1 = 1 + $y * (-0.1098628627e-2 + $y * (0.2734510407e-4 + $y * (-0.2073370639e-5 + $y * 0.2093887211e-6)));
+ $f2 = -0.1562499995e-1 + $y * (0.1430488765e-3 + $y * (-0.6911147651e-5 + $y * (0.7621095161e-6 + $y * (-0.934945152e-7))));
+ $fRet = sqrt(0.636619772 / $fNum) * (sin($xx) * $f1 + $z * cos($xx) * $f2);
+ }
+ return $fRet;
+ } // function _Bessely0()
+
+
+ private static function _Bessely1($fNum) {
+ if ($fNum < 8.0) {
+ $y = ($fNum * $fNum);
+ $f1 = $fNum * (-0.4900604943e13 + $y * (0.1275274390e13 + $y * (-0.5153438139e11 + $y * (0.7349264551e9 + $y *
+ (-0.4237922726e7 + $y * 0.8511937935e4)))));
+ $f2 = 0.2499580570e14 + $y * (0.4244419664e12 + $y * (0.3733650367e10 + $y * (0.2245904002e8 + $y *
+ (0.1020426050e6 + $y * (0.3549632885e3 + $y)))));
+ $fRet = $f1 / $f2 + 0.636619772 * ( self::BESSELJ($fNum, 1) * log($fNum) - 1 / $fNum);
+ } else {
+ $fRet = sqrt(0.636619772 / $fNum) * sin($fNum - 2.356194491);
+ }
+ return $fRet;
+ } // function _Bessely1()
+
+
+ /**
+ * BESSELY
+ *
+ * Returns the Bessel function, which is also called the Weber function or the Neumann function.
+ *
+ * Excel Function:
+ * BESSELY(x,ord)
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param float $x The value at which to evaluate the function.
+ * If x is nonnumeric, BESSELK returns the #VALUE! error value.
+ * @param integer $ord The order of the Bessel function. If n is not an integer, it is truncated.
+ * If $ord is nonnumeric, BESSELK returns the #VALUE! error value.
+ * If $ord < 0, BESSELK returns the #NUM! error value.
+ *
+ * @return float
+ */
+ public static function BESSELY($x, $ord) {
+ $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord);
+
+ if ((is_numeric($x)) && (is_numeric($ord))) {
+ if (($ord < 0) || ($x == 0.0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ switch(floor($ord)) {
+ case 0 : return self::_Bessely0($x);
+ break;
+ case 1 : return self::_Bessely1($x);
+ break;
+ default: $fTox = 2 / $x;
+ $fBym = self::_Bessely0($x);
+ $fBy = self::_Bessely1($x);
+ for ($n = 1; $n < $ord; ++$n) {
+ $fByp = $n * $fTox * $fBy - $fBym;
+ $fBym = $fBy;
+ $fBy = $fByp;
+ }
+ }
+ return (is_nan($fBy)) ? PHPExcel_Calculation_Functions::NaN() : $fBy;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function BESSELY()
+
+
+ /**
+ * BINTODEC
+ *
+ * Return a binary value as decimal.
+ *
+ * Excel Function:
+ * BIN2DEC(x)
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The binary number (as a string) that you want to convert. The number
+ * cannot contain more than 10 characters (10 bits). The most significant
+ * bit of number is the sign bit. The remaining 9 bits are magnitude bits.
+ * Negative numbers are represented using two's-complement notation.
+ * If number is not a valid binary number, or if number contains more than
+ * 10 characters (10 bits), BIN2DEC returns the #NUM! error value.
+ * @return string
+ */
+ public static function BINTODEC($x) {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+
+ if (is_bool($x)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ $x = (int) $x;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
+ $x = floor($x);
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[01]/',$x,$out)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if (strlen($x) > 10) {
+ return PHPExcel_Calculation_Functions::NaN();
+ } elseif (strlen($x) == 10) {
+ // Two's Complement
+ $x = substr($x,-9);
+ return '-'.(512-bindec($x));
+ }
+ return bindec($x);
+ } // function BINTODEC()
+
+
+ /**
+ * BINTOHEX
+ *
+ * Return a binary value as hex.
+ *
+ * Excel Function:
+ * BIN2HEX(x[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The binary number (as a string) that you want to convert. The number
+ * cannot contain more than 10 characters (10 bits). The most significant
+ * bit of number is the sign bit. The remaining 9 bits are magnitude bits.
+ * Negative numbers are represented using two's-complement notation.
+ * If number is not a valid binary number, or if number contains more than
+ * 10 characters (10 bits), BIN2HEX returns the #NUM! error value.
+ * @param integer $places The number of characters to use. If places is omitted, BIN2HEX uses the
+ * minimum number of characters necessary. Places is useful for padding the
+ * return value with leading 0s (zeros).
+ * If places is not an integer, it is truncated.
+ * If places is nonnumeric, BIN2HEX returns the #VALUE! error value.
+ * If places is negative, BIN2HEX returns the #NUM! error value.
+ * @return string
+ */
+ public static function BINTOHEX($x, $places=NULL) {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ $x = (int) $x;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
+ $x = floor($x);
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[01]/',$x,$out)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if (strlen($x) > 10) {
+ return PHPExcel_Calculation_Functions::NaN();
+ } elseif (strlen($x) == 10) {
+ // Two's Complement
+ return str_repeat('F',8).substr(strtoupper(dechex(bindec(substr($x,-9)))),-2);
+ }
+ $hexVal = (string) strtoupper(dechex(bindec($x)));
+
+ return self::_nbrConversionFormat($hexVal,$places);
+ } // function BINTOHEX()
+
+
+ /**
+ * BINTOOCT
+ *
+ * Return a binary value as octal.
+ *
+ * Excel Function:
+ * BIN2OCT(x[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The binary number (as a string) that you want to convert. The number
+ * cannot contain more than 10 characters (10 bits). The most significant
+ * bit of number is the sign bit. The remaining 9 bits are magnitude bits.
+ * Negative numbers are represented using two's-complement notation.
+ * If number is not a valid binary number, or if number contains more than
+ * 10 characters (10 bits), BIN2OCT returns the #NUM! error value.
+ * @param integer $places The number of characters to use. If places is omitted, BIN2OCT uses the
+ * minimum number of characters necessary. Places is useful for padding the
+ * return value with leading 0s (zeros).
+ * If places is not an integer, it is truncated.
+ * If places is nonnumeric, BIN2OCT returns the #VALUE! error value.
+ * If places is negative, BIN2OCT returns the #NUM! error value.
+ * @return string
+ */
+ public static function BINTOOCT($x, $places=NULL) {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ $x = (int) $x;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
+ $x = floor($x);
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[01]/',$x,$out)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if (strlen($x) > 10) {
+ return PHPExcel_Calculation_Functions::NaN();
+ } elseif (strlen($x) == 10) {
+ // Two's Complement
+ return str_repeat('7',7).substr(strtoupper(decoct(bindec(substr($x,-9)))),-3);
+ }
+ $octVal = (string) decoct(bindec($x));
+
+ return self::_nbrConversionFormat($octVal,$places);
+ } // function BINTOOCT()
+
+
+ /**
+ * DECTOBIN
+ *
+ * Return a decimal value as binary.
+ *
+ * Excel Function:
+ * DEC2BIN(x[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The decimal integer you want to convert. If number is negative,
+ * valid place values are ignored and DEC2BIN returns a 10-character
+ * (10-bit) binary number in which the most significant bit is the sign
+ * bit. The remaining 9 bits are magnitude bits. Negative numbers are
+ * represented using two's-complement notation.
+ * If number < -512 or if number > 511, DEC2BIN returns the #NUM! error
+ * value.
+ * If number is nonnumeric, DEC2BIN returns the #VALUE! error value.
+ * If DEC2BIN requires more than places characters, it returns the #NUM!
+ * error value.
+ * @param integer $places The number of characters to use. If places is omitted, DEC2BIN uses
+ * the minimum number of characters necessary. Places is useful for
+ * padding the return value with leading 0s (zeros).
+ * If places is not an integer, it is truncated.
+ * If places is nonnumeric, DEC2BIN returns the #VALUE! error value.
+ * If places is zero or negative, DEC2BIN returns the #NUM! error value.
+ * @return string
+ */
+ public static function DECTOBIN($x, $places=NULL) {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ $x = (int) $x;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[-0123456789.]/',$x,$out)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $x = (string) floor($x);
+ $r = decbin($x);
+ if (strlen($r) == 32) {
+ // Two's Complement
+ $r = substr($r,-10);
+ } elseif (strlen($r) > 11) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ return self::_nbrConversionFormat($r,$places);
+ } // function DECTOBIN()
+
+
+ /**
+ * DECTOHEX
+ *
+ * Return a decimal value as hex.
+ *
+ * Excel Function:
+ * DEC2HEX(x[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The decimal integer you want to convert. If number is negative,
+ * places is ignored and DEC2HEX returns a 10-character (40-bit)
+ * hexadecimal number in which the most significant bit is the sign
+ * bit. The remaining 39 bits are magnitude bits. Negative numbers
+ * are represented using two's-complement notation.
+ * If number < -549,755,813,888 or if number > 549,755,813,887,
+ * DEC2HEX returns the #NUM! error value.
+ * If number is nonnumeric, DEC2HEX returns the #VALUE! error value.
+ * If DEC2HEX requires more than places characters, it returns the
+ * #NUM! error value.
+ * @param integer $places The number of characters to use. If places is omitted, DEC2HEX uses
+ * the minimum number of characters necessary. Places is useful for
+ * padding the return value with leading 0s (zeros).
+ * If places is not an integer, it is truncated.
+ * If places is nonnumeric, DEC2HEX returns the #VALUE! error value.
+ * If places is zero or negative, DEC2HEX returns the #NUM! error value.
+ * @return string
+ */
+ public static function DECTOHEX($x, $places=null) {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ $x = (int) $x;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[-0123456789.]/',$x,$out)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $x = (string) floor($x);
+ $r = strtoupper(dechex($x));
+ if (strlen($r) == 8) {
+ // Two's Complement
+ $r = 'FF'.$r;
+ }
+
+ return self::_nbrConversionFormat($r,$places);
+ } // function DECTOHEX()
+
+
+ /**
+ * DECTOOCT
+ *
+ * Return an decimal value as octal.
+ *
+ * Excel Function:
+ * DEC2OCT(x[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The decimal integer you want to convert. If number is negative,
+ * places is ignored and DEC2OCT returns a 10-character (30-bit)
+ * octal number in which the most significant bit is the sign bit.
+ * The remaining 29 bits are magnitude bits. Negative numbers are
+ * represented using two's-complement notation.
+ * If number < -536,870,912 or if number > 536,870,911, DEC2OCT
+ * returns the #NUM! error value.
+ * If number is nonnumeric, DEC2OCT returns the #VALUE! error value.
+ * If DEC2OCT requires more than places characters, it returns the
+ * #NUM! error value.
+ * @param integer $places The number of characters to use. If places is omitted, DEC2OCT uses
+ * the minimum number of characters necessary. Places is useful for
+ * padding the return value with leading 0s (zeros).
+ * If places is not an integer, it is truncated.
+ * If places is nonnumeric, DEC2OCT returns the #VALUE! error value.
+ * If places is zero or negative, DEC2OCT returns the #NUM! error value.
+ * @return string
+ */
+ public static function DECTOOCT($x, $places=null) {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ $x = (int) $x;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[-0123456789.]/',$x,$out)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $x = (string) floor($x);
+ $r = decoct($x);
+ if (strlen($r) == 11) {
+ // Two's Complement
+ $r = substr($r,-10);
+ }
+
+ return self::_nbrConversionFormat($r,$places);
+ } // function DECTOOCT()
+
+
+ /**
+ * HEXTOBIN
+ *
+ * Return a hex value as binary.
+ *
+ * Excel Function:
+ * HEX2BIN(x[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x the hexadecimal number you want to convert. Number cannot
+ * contain more than 10 characters. The most significant bit of
+ * number is the sign bit (40th bit from the right). The remaining
+ * 9 bits are magnitude bits. Negative numbers are represented
+ * using two's-complement notation.
+ * If number is negative, HEX2BIN ignores places and returns a
+ * 10-character binary number.
+ * If number is negative, it cannot be less than FFFFFFFE00, and
+ * if number is positive, it cannot be greater than 1FF.
+ * If number is not a valid hexadecimal number, HEX2BIN returns
+ * the #NUM! error value.
+ * If HEX2BIN requires more than places characters, it returns
+ * the #NUM! error value.
+ * @param integer $places The number of characters to use. If places is omitted,
+ * HEX2BIN uses the minimum number of characters necessary. Places
+ * is useful for padding the return value with leading 0s (zeros).
+ * If places is not an integer, it is truncated.
+ * If places is nonnumeric, HEX2BIN returns the #VALUE! error value.
+ * If places is negative, HEX2BIN returns the #NUM! error value.
+ * @return string
+ */
+ public static function HEXTOBIN($x, $places=null) {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[0123456789ABCDEF]/',strtoupper($x),$out)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $binVal = decbin(hexdec($x));
+
+ return substr(self::_nbrConversionFormat($binVal,$places),-10);
+ } // function HEXTOBIN()
+
+
+ /**
+ * HEXTODEC
+ *
+ * Return a hex value as decimal.
+ *
+ * Excel Function:
+ * HEX2DEC(x)
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The hexadecimal number you want to convert. This number cannot
+ * contain more than 10 characters (40 bits). The most significant
+ * bit of number is the sign bit. The remaining 39 bits are magnitude
+ * bits. Negative numbers are represented using two's-complement
+ * notation.
+ * If number is not a valid hexadecimal number, HEX2DEC returns the
+ * #NUM! error value.
+ * @return string
+ */
+ public static function HEXTODEC($x) {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+
+ if (is_bool($x)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[0123456789ABCDEF]/',strtoupper($x),$out)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return hexdec($x);
+ } // function HEXTODEC()
+
+
+ /**
+ * HEXTOOCT
+ *
+ * Return a hex value as octal.
+ *
+ * Excel Function:
+ * HEX2OCT(x[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The hexadecimal number you want to convert. Number cannot
+ * contain more than 10 characters. The most significant bit of
+ * number is the sign bit. The remaining 39 bits are magnitude
+ * bits. Negative numbers are represented using two's-complement
+ * notation.
+ * If number is negative, HEX2OCT ignores places and returns a
+ * 10-character octal number.
+ * If number is negative, it cannot be less than FFE0000000, and
+ * if number is positive, it cannot be greater than 1FFFFFFF.
+ * If number is not a valid hexadecimal number, HEX2OCT returns
+ * the #NUM! error value.
+ * If HEX2OCT requires more than places characters, it returns
+ * the #NUM! error value.
+ * @param integer $places The number of characters to use. If places is omitted, HEX2OCT
+ * uses the minimum number of characters necessary. Places is
+ * useful for padding the return value with leading 0s (zeros).
+ * If places is not an integer, it is truncated.
+ * If places is nonnumeric, HEX2OCT returns the #VALUE! error
+ * value.
+ * If places is negative, HEX2OCT returns the #NUM! error value.
+ * @return string
+ */
+ public static function HEXTOOCT($x, $places=null) {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[0123456789ABCDEF]/',strtoupper($x),$out)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $octVal = decoct(hexdec($x));
+
+ return self::_nbrConversionFormat($octVal,$places);
+ } // function HEXTOOCT()
+
+
+ /**
+ * OCTTOBIN
+ *
+ * Return an octal value as binary.
+ *
+ * Excel Function:
+ * OCT2BIN(x[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The octal number you want to convert. Number may not
+ * contain more than 10 characters. The most significant
+ * bit of number is the sign bit. The remaining 29 bits
+ * are magnitude bits. Negative numbers are represented
+ * using two's-complement notation.
+ * If number is negative, OCT2BIN ignores places and returns
+ * a 10-character binary number.
+ * If number is negative, it cannot be less than 7777777000,
+ * and if number is positive, it cannot be greater than 777.
+ * If number is not a valid octal number, OCT2BIN returns
+ * the #NUM! error value.
+ * If OCT2BIN requires more than places characters, it
+ * returns the #NUM! error value.
+ * @param integer $places The number of characters to use. If places is omitted,
+ * OCT2BIN uses the minimum number of characters necessary.
+ * Places is useful for padding the return value with
+ * leading 0s (zeros).
+ * If places is not an integer, it is truncated.
+ * If places is nonnumeric, OCT2BIN returns the #VALUE!
+ * error value.
+ * If places is negative, OCT2BIN returns the #NUM! error
+ * value.
+ * @return string
+ */
+ public static function OCTTOBIN($x, $places=null) {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $x = (string) $x;
+ if (preg_match_all('/[01234567]/',$x,$out) != strlen($x)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $r = decbin(octdec($x));
+
+ return self::_nbrConversionFormat($r,$places);
+ } // function OCTTOBIN()
+
+
+ /**
+ * OCTTODEC
+ *
+ * Return an octal value as decimal.
+ *
+ * Excel Function:
+ * OCT2DEC(x)
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The octal number you want to convert. Number may not contain
+ * more than 10 octal characters (30 bits). The most significant
+ * bit of number is the sign bit. The remaining 29 bits are
+ * magnitude bits. Negative numbers are represented using
+ * two's-complement notation.
+ * If number is not a valid octal number, OCT2DEC returns the
+ * #NUM! error value.
+ * @return string
+ */
+ public static function OCTTODEC($x) {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+
+ if (is_bool($x)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $x = (string) $x;
+ if (preg_match_all('/[01234567]/',$x,$out) != strlen($x)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return octdec($x);
+ } // function OCTTODEC()
+
+
+ /**
+ * OCTTOHEX
+ *
+ * Return an octal value as hex.
+ *
+ * Excel Function:
+ * OCT2HEX(x[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The octal number you want to convert. Number may not contain
+ * more than 10 octal characters (30 bits). The most significant
+ * bit of number is the sign bit. The remaining 29 bits are
+ * magnitude bits. Negative numbers are represented using
+ * two's-complement notation.
+ * If number is negative, OCT2HEX ignores places and returns a
+ * 10-character hexadecimal number.
+ * If number is not a valid octal number, OCT2HEX returns the
+ * #NUM! error value.
+ * If OCT2HEX requires more than places characters, it returns
+ * the #NUM! error value.
+ * @param integer $places The number of characters to use. If places is omitted, OCT2HEX
+ * uses the minimum number of characters necessary. Places is useful
+ * for padding the return value with leading 0s (zeros).
+ * If places is not an integer, it is truncated.
+ * If places is nonnumeric, OCT2HEX returns the #VALUE! error value.
+ * If places is negative, OCT2HEX returns the #NUM! error value.
+ * @return string
+ */
+ public static function OCTTOHEX($x, $places=null) {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $x = (string) $x;
+ if (preg_match_all('/[01234567]/',$x,$out) != strlen($x)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $hexVal = strtoupper(dechex(octdec($x)));
+
+ return self::_nbrConversionFormat($hexVal,$places);
+ } // function OCTTOHEX()
+
+
+ /**
+ * COMPLEX
+ *
+ * Converts real and imaginary coefficients into a complex number of the form x + yi or x + yj.
+ *
+ * Excel Function:
+ * COMPLEX(realNumber,imaginary[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param float $realNumber The real coefficient of the complex number.
+ * @param float $imaginary The imaginary coefficient of the complex number.
+ * @param string $suffix The suffix for the imaginary component of the complex number.
+ * If omitted, the suffix is assumed to be "i".
+ * @return string
+ */
+ public static function COMPLEX($realNumber=0.0, $imaginary=0.0, $suffix='i') {
+ $realNumber = (is_null($realNumber)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($realNumber);
+ $imaginary = (is_null($imaginary)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($imaginary);
+ $suffix = (is_null($suffix)) ? 'i' : PHPExcel_Calculation_Functions::flattenSingleValue($suffix);
+
+ if (((is_numeric($realNumber)) && (is_numeric($imaginary))) &&
+ (($suffix == 'i') || ($suffix == 'j') || ($suffix == ''))) {
+ $realNumber = (float) $realNumber;
+ $imaginary = (float) $imaginary;
+
+ if ($suffix == '') $suffix = 'i';
+ if ($realNumber == 0.0) {
+ if ($imaginary == 0.0) {
+ return (string) '0';
+ } elseif ($imaginary == 1.0) {
+ return (string) $suffix;
+ } elseif ($imaginary == -1.0) {
+ return (string) '-'.$suffix;
+ }
+ return (string) $imaginary.$suffix;
+ } elseif ($imaginary == 0.0) {
+ return (string) $realNumber;
+ } elseif ($imaginary == 1.0) {
+ return (string) $realNumber.'+'.$suffix;
+ } elseif ($imaginary == -1.0) {
+ return (string) $realNumber.'-'.$suffix;
+ }
+ if ($imaginary > 0) { $imaginary = (string) '+'.$imaginary; }
+ return (string) $realNumber.$imaginary.$suffix;
+ }
+
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function COMPLEX()
+
+
+ /**
+ * IMAGINARY
+ *
+ * Returns the imaginary coefficient of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMAGINARY(complexNumber)
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $complexNumber The complex number for which you want the imaginary
+ * coefficient.
+ * @return float
+ */
+ public static function IMAGINARY($complexNumber) {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+ return $parsedComplex['imaginary'];
+ } // function IMAGINARY()
+
+
+ /**
+ * IMREAL
+ *
+ * Returns the real coefficient of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMREAL(complexNumber)
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $complexNumber The complex number for which you want the real coefficient.
+ * @return float
+ */
+ public static function IMREAL($complexNumber) {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+ return $parsedComplex['real'];
+ } // function IMREAL()
+
+
+ /**
+ * IMABS
+ *
+ * Returns the absolute value (modulus) of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMABS(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the absolute value.
+ * @return float
+ */
+ public static function IMABS($complexNumber) {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+
+ return sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary']));
+ } // function IMABS()
+
+
+ /**
+ * IMARGUMENT
+ *
+ * Returns the argument theta of a complex number, i.e. the angle in radians from the real
+ * axis to the representation of the number in polar coordinates.
+ *
+ * Excel Function:
+ * IMARGUMENT(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the argument theta.
+ * @return float
+ */
+ public static function IMARGUMENT($complexNumber) {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+
+ if ($parsedComplex['real'] == 0.0) {
+ if ($parsedComplex['imaginary'] == 0.0) {
+ return 0.0;
+ } elseif($parsedComplex['imaginary'] < 0.0) {
+ return M_PI / -2;
+ } else {
+ return M_PI / 2;
+ }
+ } elseif ($parsedComplex['real'] > 0.0) {
+ return atan($parsedComplex['imaginary'] / $parsedComplex['real']);
+ } elseif ($parsedComplex['imaginary'] < 0.0) {
+ return 0 - (M_PI - atan(abs($parsedComplex['imaginary']) / abs($parsedComplex['real'])));
+ } else {
+ return M_PI - atan($parsedComplex['imaginary'] / abs($parsedComplex['real']));
+ }
+ } // function IMARGUMENT()
+
+
+ /**
+ * IMCONJUGATE
+ *
+ * Returns the complex conjugate of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMCONJUGATE(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the conjugate.
+ * @return string
+ */
+ public static function IMCONJUGATE($complexNumber) {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+
+ if ($parsedComplex['imaginary'] == 0.0) {
+ return $parsedComplex['real'];
+ } else {
+ return self::_cleanComplex( self::COMPLEX( $parsedComplex['real'],
+ 0 - $parsedComplex['imaginary'],
+ $parsedComplex['suffix']
+ )
+ );
+ }
+ } // function IMCONJUGATE()
+
+
+ /**
+ * IMCOS
+ *
+ * Returns the cosine of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMCOS(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the cosine.
+ * @return string|float
+ */
+ public static function IMCOS($complexNumber) {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+
+ if ($parsedComplex['imaginary'] == 0.0) {
+ return cos($parsedComplex['real']);
+ } else {
+ return self::IMCONJUGATE(self::COMPLEX(cos($parsedComplex['real']) * cosh($parsedComplex['imaginary']),sin($parsedComplex['real']) * sinh($parsedComplex['imaginary']),$parsedComplex['suffix']));
+ }
+ } // function IMCOS()
+
+
+ /**
+ * IMSIN
+ *
+ * Returns the sine of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMSIN(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the sine.
+ * @return string|float
+ */
+ public static function IMSIN($complexNumber) {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+
+ if ($parsedComplex['imaginary'] == 0.0) {
+ return sin($parsedComplex['real']);
+ } else {
+ return self::COMPLEX(sin($parsedComplex['real']) * cosh($parsedComplex['imaginary']),cos($parsedComplex['real']) * sinh($parsedComplex['imaginary']),$parsedComplex['suffix']);
+ }
+ } // function IMSIN()
+
+
+ /**
+ * IMSQRT
+ *
+ * Returns the square root of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMSQRT(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the square root.
+ * @return string
+ */
+ public static function IMSQRT($complexNumber) {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+
+ $theta = self::IMARGUMENT($complexNumber);
+ $d1 = cos($theta / 2);
+ $d2 = sin($theta / 2);
+ $r = sqrt(sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary'])));
+
+ if ($parsedComplex['suffix'] == '') {
+ return self::COMPLEX($d1 * $r,$d2 * $r);
+ } else {
+ return self::COMPLEX($d1 * $r,$d2 * $r,$parsedComplex['suffix']);
+ }
+ } // function IMSQRT()
+
+
+ /**
+ * IMLN
+ *
+ * Returns the natural logarithm of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMLN(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the natural logarithm.
+ * @return string
+ */
+ public static function IMLN($complexNumber) {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+
+ if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ $logR = log(sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary'])));
+ $t = self::IMARGUMENT($complexNumber);
+
+ if ($parsedComplex['suffix'] == '') {
+ return self::COMPLEX($logR,$t);
+ } else {
+ return self::COMPLEX($logR,$t,$parsedComplex['suffix']);
+ }
+ } // function IMLN()
+
+
+ /**
+ * IMLOG10
+ *
+ * Returns the common logarithm (base 10) of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMLOG10(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the common logarithm.
+ * @return string
+ */
+ public static function IMLOG10($complexNumber) {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+
+ if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ } elseif (($parsedComplex['real'] > 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
+ return log10($parsedComplex['real']);
+ }
+
+ return self::IMPRODUCT(log10(EULER),self::IMLN($complexNumber));
+ } // function IMLOG10()
+
+
+ /**
+ * IMLOG2
+ *
+ * Returns the base-2 logarithm of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMLOG2(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the base-2 logarithm.
+ * @return string
+ */
+ public static function IMLOG2($complexNumber) {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+
+ if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ } elseif (($parsedComplex['real'] > 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
+ return log($parsedComplex['real'],2);
+ }
+
+ return self::IMPRODUCT(log(EULER,2),self::IMLN($complexNumber));
+ } // function IMLOG2()
+
+
+ /**
+ * IMEXP
+ *
+ * Returns the exponential of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMEXP(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the exponential.
+ * @return string
+ */
+ public static function IMEXP($complexNumber) {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+
+ if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
+ return '1';
+ }
+
+ $e = exp($parsedComplex['real']);
+ $eX = $e * cos($parsedComplex['imaginary']);
+ $eY = $e * sin($parsedComplex['imaginary']);
+
+ if ($parsedComplex['suffix'] == '') {
+ return self::COMPLEX($eX,$eY);
+ } else {
+ return self::COMPLEX($eX,$eY,$parsedComplex['suffix']);
+ }
+ } // function IMEXP()
+
+
+ /**
+ * IMPOWER
+ *
+ * Returns a complex number in x + yi or x + yj text format raised to a power.
+ *
+ * Excel Function:
+ * IMPOWER(complexNumber,realNumber)
+ *
+ * @param string $complexNumber The complex number you want to raise to a power.
+ * @param float $realNumber The power to which you want to raise the complex number.
+ * @return string
+ */
+ public static function IMPOWER($complexNumber,$realNumber) {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+ $realNumber = PHPExcel_Calculation_Functions::flattenSingleValue($realNumber);
+
+ if (!is_numeric($realNumber)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ $parsedComplex = self::_parseComplex($complexNumber);
+
+ $r = sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary']));
+ $rPower = pow($r,$realNumber);
+ $theta = self::IMARGUMENT($complexNumber) * $realNumber;
+ if ($theta == 0) {
+ return 1;
+ } elseif ($parsedComplex['imaginary'] == 0.0) {
+ return self::COMPLEX($rPower * cos($theta),$rPower * sin($theta),$parsedComplex['suffix']);
+ } else {
+ return self::COMPLEX($rPower * cos($theta),$rPower * sin($theta),$parsedComplex['suffix']);
+ }
+ } // function IMPOWER()
+
+
+ /**
+ * IMDIV
+ *
+ * Returns the quotient of two complex numbers in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMDIV(complexDividend,complexDivisor)
+ *
+ * @param string $complexDividend The complex numerator or dividend.
+ * @param string $complexDivisor The complex denominator or divisor.
+ * @return string
+ */
+ public static function IMDIV($complexDividend,$complexDivisor) {
+ $complexDividend = PHPExcel_Calculation_Functions::flattenSingleValue($complexDividend);
+ $complexDivisor = PHPExcel_Calculation_Functions::flattenSingleValue($complexDivisor);
+
+ $parsedComplexDividend = self::_parseComplex($complexDividend);
+ $parsedComplexDivisor = self::_parseComplex($complexDivisor);
+
+ if (($parsedComplexDividend['suffix'] != '') && ($parsedComplexDivisor['suffix'] != '') &&
+ ($parsedComplexDividend['suffix'] != $parsedComplexDivisor['suffix'])) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if (($parsedComplexDividend['suffix'] != '') && ($parsedComplexDivisor['suffix'] == '')) {
+ $parsedComplexDivisor['suffix'] = $parsedComplexDividend['suffix'];
+ }
+
+ $d1 = ($parsedComplexDividend['real'] * $parsedComplexDivisor['real']) + ($parsedComplexDividend['imaginary'] * $parsedComplexDivisor['imaginary']);
+ $d2 = ($parsedComplexDividend['imaginary'] * $parsedComplexDivisor['real']) - ($parsedComplexDividend['real'] * $parsedComplexDivisor['imaginary']);
+ $d3 = ($parsedComplexDivisor['real'] * $parsedComplexDivisor['real']) + ($parsedComplexDivisor['imaginary'] * $parsedComplexDivisor['imaginary']);
+
+ $r = $d1/$d3;
+ $i = $d2/$d3;
+
+ if ($i > 0.0) {
+ return self::_cleanComplex($r.'+'.$i.$parsedComplexDivisor['suffix']);
+ } elseif ($i < 0.0) {
+ return self::_cleanComplex($r.$i.$parsedComplexDivisor['suffix']);
+ } else {
+ return $r;
+ }
+ } // function IMDIV()
+
+
+ /**
+ * IMSUB
+ *
+ * Returns the difference of two complex numbers in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMSUB(complexNumber1,complexNumber2)
+ *
+ * @param string $complexNumber1 The complex number from which to subtract complexNumber2.
+ * @param string $complexNumber2 The complex number to subtract from complexNumber1.
+ * @return string
+ */
+ public static function IMSUB($complexNumber1,$complexNumber2) {
+ $complexNumber1 = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber1);
+ $complexNumber2 = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber2);
+
+ $parsedComplex1 = self::_parseComplex($complexNumber1);
+ $parsedComplex2 = self::_parseComplex($complexNumber2);
+
+ if ((($parsedComplex1['suffix'] != '') && ($parsedComplex2['suffix'] != '')) &&
+ ($parsedComplex1['suffix'] != $parsedComplex2['suffix'])) {
+ return PHPExcel_Calculation_Functions::NaN();
+ } elseif (($parsedComplex1['suffix'] == '') && ($parsedComplex2['suffix'] != '')) {
+ $parsedComplex1['suffix'] = $parsedComplex2['suffix'];
+ }
+
+ $d1 = $parsedComplex1['real'] - $parsedComplex2['real'];
+ $d2 = $parsedComplex1['imaginary'] - $parsedComplex2['imaginary'];
+
+ return self::COMPLEX($d1,$d2,$parsedComplex1['suffix']);
+ } // function IMSUB()
+
+
+ /**
+ * IMSUM
+ *
+ * Returns the sum of two or more complex numbers in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMSUM(complexNumber[,complexNumber[,...]])
+ *
+ * @param string $complexNumber,... Series of complex numbers to add
+ * @return string
+ */
+ public static function IMSUM() {
+ // Return value
+ $returnValue = self::_parseComplex('0');
+ $activeSuffix = '';
+
+ // Loop through the arguments
+ $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ $parsedComplex = self::_parseComplex($arg);
+
+ if ($activeSuffix == '') {
+ $activeSuffix = $parsedComplex['suffix'];
+ } elseif (($parsedComplex['suffix'] != '') && ($activeSuffix != $parsedComplex['suffix'])) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ $returnValue['real'] += $parsedComplex['real'];
+ $returnValue['imaginary'] += $parsedComplex['imaginary'];
+ }
+
+ if ($returnValue['imaginary'] == 0.0) { $activeSuffix = ''; }
+ return self::COMPLEX($returnValue['real'],$returnValue['imaginary'],$activeSuffix);
+ } // function IMSUM()
+
+
+ /**
+ * IMPRODUCT
+ *
+ * Returns the product of two or more complex numbers in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMPRODUCT(complexNumber[,complexNumber[,...]])
+ *
+ * @param string $complexNumber,... Series of complex numbers to multiply
+ * @return string
+ */
+ public static function IMPRODUCT() {
+ // Return value
+ $returnValue = self::_parseComplex('1');
+ $activeSuffix = '';
+
+ // Loop through the arguments
+ $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ $parsedComplex = self::_parseComplex($arg);
+
+ $workValue = $returnValue;
+ if (($parsedComplex['suffix'] != '') && ($activeSuffix == '')) {
+ $activeSuffix = $parsedComplex['suffix'];
+ } elseif (($parsedComplex['suffix'] != '') && ($activeSuffix != $parsedComplex['suffix'])) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $returnValue['real'] = ($workValue['real'] * $parsedComplex['real']) - ($workValue['imaginary'] * $parsedComplex['imaginary']);
+ $returnValue['imaginary'] = ($workValue['real'] * $parsedComplex['imaginary']) + ($workValue['imaginary'] * $parsedComplex['real']);
+ }
+
+ if ($returnValue['imaginary'] == 0.0) { $activeSuffix = ''; }
+ return self::COMPLEX($returnValue['real'],$returnValue['imaginary'],$activeSuffix);
+ } // function IMPRODUCT()
+
+
+ /**
+ * DELTA
+ *
+ * Tests whether two values are equal. Returns 1 if number1 = number2; returns 0 otherwise.
+ * Use this function to filter a set of values. For example, by summing several DELTA
+ * functions you calculate the count of equal pairs. This function is also known as the
+ * Kronecker Delta function.
+ *
+ * Excel Function:
+ * DELTA(a[,b])
+ *
+ * @param float $a The first number.
+ * @param float $b The second number. If omitted, b is assumed to be zero.
+ * @return int
+ */
+ public static function DELTA($a, $b=0) {
+ $a = PHPExcel_Calculation_Functions::flattenSingleValue($a);
+ $b = PHPExcel_Calculation_Functions::flattenSingleValue($b);
+
+ return (int) ($a == $b);
+ } // function DELTA()
+
+
+ /**
+ * GESTEP
+ *
+ * Excel Function:
+ * GESTEP(number[,step])
+ *
+ * Returns 1 if number >= step; returns 0 (zero) otherwise
+ * Use this function to filter a set of values. For example, by summing several GESTEP
+ * functions you calculate the count of values that exceed a threshold.
+ *
+ * @param float $number The value to test against step.
+ * @param float $step The threshold value.
+ * If you omit a value for step, GESTEP uses zero.
+ * @return int
+ */
+ public static function GESTEP($number, $step=0) {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+ $step = PHPExcel_Calculation_Functions::flattenSingleValue($step);
+
+ return (int) ($number >= $step);
+ } // function GESTEP()
+
+
+ //
+ // Private method to calculate the erf value
+ //
+ private static $_two_sqrtpi = 1.128379167095512574;
+
+ public static function _erfVal($x) {
+ if (abs($x) > 2.2) {
+ return 1 - self::_erfcVal($x);
+ }
+ $sum = $term = $x;
+ $xsqr = ($x * $x);
+ $j = 1;
+ do {
+ $term *= $xsqr / $j;
+ $sum -= $term / (2 * $j + 1);
+ ++$j;
+ $term *= $xsqr / $j;
+ $sum += $term / (2 * $j + 1);
+ ++$j;
+ if ($sum == 0.0) {
+ break;
+ }
+ } while (abs($term / $sum) > PRECISION);
+ return self::$_two_sqrtpi * $sum;
+ } // function _erfVal()
+
+
+ /**
+ * ERF
+ *
+ * Returns the error function integrated between the lower and upper bound arguments.
+ *
+ * Note: In Excel 2007 or earlier, if you input a negative value for the upper or lower bound arguments,
+ * the function would return a #NUM! error. However, in Excel 2010, the function algorithm was
+ * improved, so that it can now calculate the function for both positive and negative ranges.
+ * PHPExcel follows Excel 2010 behaviour, and accepts nagative arguments.
+ *
+ * Excel Function:
+ * ERF(lower[,upper])
+ *
+ * @param float $lower lower bound for integrating ERF
+ * @param float $upper upper bound for integrating ERF.
+ * If omitted, ERF integrates between zero and lower_limit
+ * @return float
+ */
+ public static function ERF($lower, $upper = NULL) {
+ $lower = PHPExcel_Calculation_Functions::flattenSingleValue($lower);
+ $upper = PHPExcel_Calculation_Functions::flattenSingleValue($upper);
+
+ if (is_numeric($lower)) {
+ if (is_null($upper)) {
+ return self::_erfVal($lower);
+ }
+ if (is_numeric($upper)) {
+ return self::_erfVal($upper) - self::_erfVal($lower);
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function ERF()
+
+
+ //
+ // Private method to calculate the erfc value
+ //
+ private static $_one_sqrtpi = 0.564189583547756287;
+
+ private static function _erfcVal($x) {
+ if (abs($x) < 2.2) {
+ return 1 - self::_erfVal($x);
+ }
+ if ($x < 0) {
+ return 2 - self::ERFC(-$x);
+ }
+ $a = $n = 1;
+ $b = $c = $x;
+ $d = ($x * $x) + 0.5;
+ $q1 = $q2 = $b / $d;
+ $t = 0;
+ do {
+ $t = $a * $n + $b * $x;
+ $a = $b;
+ $b = $t;
+ $t = $c * $n + $d * $x;
+ $c = $d;
+ $d = $t;
+ $n += 0.5;
+ $q1 = $q2;
+ $q2 = $b / $d;
+ } while ((abs($q1 - $q2) / $q2) > PRECISION);
+ return self::$_one_sqrtpi * exp(-$x * $x) * $q2;
+ } // function _erfcVal()
+
+
+ /**
+ * ERFC
+ *
+ * Returns the complementary ERF function integrated between x and infinity
+ *
+ * Note: In Excel 2007 or earlier, if you input a negative value for the lower bound argument,
+ * the function would return a #NUM! error. However, in Excel 2010, the function algorithm was
+ * improved, so that it can now calculate the function for both positive and negative x values.
+ * PHPExcel follows Excel 2010 behaviour, and accepts nagative arguments.
+ *
+ * Excel Function:
+ * ERFC(x)
+ *
+ * @param float $x The lower bound for integrating ERFC
+ * @return float
+ */
+ public static function ERFC($x) {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+
+ if (is_numeric($x)) {
+ return self::_erfcVal($x);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function ERFC()
+
+
+ /**
+ * getConversionGroups
+ * Returns a list of the different conversion groups for UOM conversions
+ *
+ * @return array
+ */
+ public static function getConversionGroups() {
+ $conversionGroups = array();
+ foreach(self::$_conversionUnits as $conversionUnit) {
+ $conversionGroups[] = $conversionUnit['Group'];
+ }
+ return array_merge(array_unique($conversionGroups));
+ } // function getConversionGroups()
+
+
+ /**
+ * getConversionGroupUnits
+ * Returns an array of units of measure, for a specified conversion group, or for all groups
+ *
+ * @param string $group The group whose units of measure you want to retrieve
+ * @return array
+ */
+ public static function getConversionGroupUnits($group = NULL) {
+ $conversionGroups = array();
+ foreach(self::$_conversionUnits as $conversionUnit => $conversionGroup) {
+ if ((is_null($group)) || ($conversionGroup['Group'] == $group)) {
+ $conversionGroups[$conversionGroup['Group']][] = $conversionUnit;
+ }
+ }
+ return $conversionGroups;
+ } // function getConversionGroupUnits()
+
+
+ /**
+ * getConversionGroupUnitDetails
+ *
+ * @param string $group The group whose units of measure you want to retrieve
+ * @return array
+ */
+ public static function getConversionGroupUnitDetails($group = NULL) {
+ $conversionGroups = array();
+ foreach(self::$_conversionUnits as $conversionUnit => $conversionGroup) {
+ if ((is_null($group)) || ($conversionGroup['Group'] == $group)) {
+ $conversionGroups[$conversionGroup['Group']][] = array( 'unit' => $conversionUnit,
+ 'description' => $conversionGroup['Unit Name']
+ );
+ }
+ }
+ return $conversionGroups;
+ } // function getConversionGroupUnitDetails()
+
+
+ /**
+ * getConversionMultipliers
+ * Returns an array of the Multiplier prefixes that can be used with Units of Measure in CONVERTUOM()
+ *
+ * @return array of mixed
+ */
+ public static function getConversionMultipliers() {
+ return self::$_conversionMultipliers;
+ } // function getConversionGroups()
+
+
+ /**
+ * CONVERTUOM
+ *
+ * Converts a number from one measurement system to another.
+ * For example, CONVERT can translate a table of distances in miles to a table of distances
+ * in kilometers.
+ *
+ * Excel Function:
+ * CONVERT(value,fromUOM,toUOM)
+ *
+ * @param float $value The value in fromUOM to convert.
+ * @param string $fromUOM The units for value.
+ * @param string $toUOM The units for the result.
+ *
+ * @return float
+ */
+ public static function CONVERTUOM($value, $fromUOM, $toUOM) {
+ $value = PHPExcel_Calculation_Functions::flattenSingleValue($value);
+ $fromUOM = PHPExcel_Calculation_Functions::flattenSingleValue($fromUOM);
+ $toUOM = PHPExcel_Calculation_Functions::flattenSingleValue($toUOM);
+
+ if (!is_numeric($value)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $fromMultiplier = 1.0;
+ if (isset(self::$_conversionUnits[$fromUOM])) {
+ $unitGroup1 = self::$_conversionUnits[$fromUOM]['Group'];
+ } else {
+ $fromMultiplier = substr($fromUOM,0,1);
+ $fromUOM = substr($fromUOM,1);
+ if (isset(self::$_conversionMultipliers[$fromMultiplier])) {
+ $fromMultiplier = self::$_conversionMultipliers[$fromMultiplier]['multiplier'];
+ } else {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+ if ((isset(self::$_conversionUnits[$fromUOM])) && (self::$_conversionUnits[$fromUOM]['AllowPrefix'])) {
+ $unitGroup1 = self::$_conversionUnits[$fromUOM]['Group'];
+ } else {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+ }
+ $value *= $fromMultiplier;
+
+ $toMultiplier = 1.0;
+ if (isset(self::$_conversionUnits[$toUOM])) {
+ $unitGroup2 = self::$_conversionUnits[$toUOM]['Group'];
+ } else {
+ $toMultiplier = substr($toUOM,0,1);
+ $toUOM = substr($toUOM,1);
+ if (isset(self::$_conversionMultipliers[$toMultiplier])) {
+ $toMultiplier = self::$_conversionMultipliers[$toMultiplier]['multiplier'];
+ } else {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+ if ((isset(self::$_conversionUnits[$toUOM])) && (self::$_conversionUnits[$toUOM]['AllowPrefix'])) {
+ $unitGroup2 = self::$_conversionUnits[$toUOM]['Group'];
+ } else {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+ }
+ if ($unitGroup1 != $unitGroup2) {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+
+ if (($fromUOM == $toUOM) && ($fromMultiplier == $toMultiplier)) {
+ // We've already factored $fromMultiplier into the value, so we need
+ // to reverse it again
+ return $value / $fromMultiplier;
+ } elseif ($unitGroup1 == 'Temperature') {
+ if (($fromUOM == 'F') || ($fromUOM == 'fah')) {
+ if (($toUOM == 'F') || ($toUOM == 'fah')) {
+ return $value;
+ } else {
+ $value = (($value - 32) / 1.8);
+ if (($toUOM == 'K') || ($toUOM == 'kel')) {
+ $value += 273.15;
+ }
+ return $value;
+ }
+ } elseif ((($fromUOM == 'K') || ($fromUOM == 'kel')) &&
+ (($toUOM == 'K') || ($toUOM == 'kel'))) {
+ return $value;
+ } elseif ((($fromUOM == 'C') || ($fromUOM == 'cel')) &&
+ (($toUOM == 'C') || ($toUOM == 'cel'))) {
+ return $value;
+ }
+ if (($toUOM == 'F') || ($toUOM == 'fah')) {
+ if (($fromUOM == 'K') || ($fromUOM == 'kel')) {
+ $value -= 273.15;
+ }
+ return ($value * 1.8) + 32;
+ }
+ if (($toUOM == 'C') || ($toUOM == 'cel')) {
+ return $value - 273.15;
+ }
+ return $value + 273.15;
+ }
+ return ($value * self::$_unitConversions[$unitGroup1][$fromUOM][$toUOM]) / $toMultiplier;
+ } // function CONVERTUOM()
+
+} // class PHPExcel_Calculation_Engineering
diff --git a/framework/library/phpexcel/PHPExcel/Calculation/Exception.php b/framework/library/phpexcel/PHPExcel/Calculation/Exception.php
new file mode 100644
index 0000000..262e6b9
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/Calculation/Exception.php
@@ -0,0 +1,52 @@
+line = $line;
+ $e->file = $file;
+ throw $e;
+ }
+}
diff --git a/framework/library/phpexcel/PHPExcel/Calculation/ExceptionHandler.php b/framework/library/phpexcel/PHPExcel/Calculation/ExceptionHandler.php
new file mode 100644
index 0000000..a0f1dd4
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/Calculation/ExceptionHandler.php
@@ -0,0 +1,49 @@
+format('d') == $testDate->format('t'));
+ } // function _lastDayOfMonth()
+
+
+ /**
+ * _firstDayOfMonth
+ *
+ * Returns a boolean TRUE/FALSE indicating if this date is the first date of the month
+ *
+ * @param DateTime $testDate The date for testing
+ * @return boolean
+ */
+ private static function _firstDayOfMonth($testDate)
+ {
+ return ($testDate->format('d') == 1);
+ } // function _firstDayOfMonth()
+
+
+ private static function _coupFirstPeriodDate($settlement, $maturity, $frequency, $next)
+ {
+ $months = 12 / $frequency;
+
+ $result = PHPExcel_Shared_Date::ExcelToPHPObject($maturity);
+ $eom = self::_lastDayOfMonth($result);
+
+ while ($settlement < PHPExcel_Shared_Date::PHPToExcel($result)) {
+ $result->modify('-'.$months.' months');
+ }
+ if ($next) {
+ $result->modify('+'.$months.' months');
+ }
+
+ if ($eom) {
+ $result->modify('-1 day');
+ }
+
+ return PHPExcel_Shared_Date::PHPToExcel($result);
+ } // function _coupFirstPeriodDate()
+
+
+ private static function _validFrequency($frequency)
+ {
+ if (($frequency == 1) || ($frequency == 2) || ($frequency == 4)) {
+ return true;
+ }
+ if ((PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) &&
+ (($frequency == 6) || ($frequency == 12))) {
+ return true;
+ }
+ return false;
+ } // function _validFrequency()
+
+
+ /**
+ * _daysPerYear
+ *
+ * Returns the number of days in a specified year, as defined by the "basis" value
+ *
+ * @param integer $year The year against which we're testing
+ * @param integer $basis The type of day count:
+ * 0 or omitted US (NASD) 360
+ * 1 Actual (365 or 366 in a leap year)
+ * 2 360
+ * 3 365
+ * 4 European 360
+ * @return integer
+ */
+ private static function _daysPerYear($year, $basis=0)
+ {
+ switch ($basis) {
+ case 0 :
+ case 2 :
+ case 4 :
+ $daysPerYear = 360;
+ break;
+ case 3 :
+ $daysPerYear = 365;
+ break;
+ case 1 :
+ $daysPerYear = (PHPExcel_Calculation_DateTime::_isLeapYear($year)) ? 366 : 365;
+ break;
+ default :
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return $daysPerYear;
+ } // function _daysPerYear()
+
+
+ private static function _interestAndPrincipal($rate=0, $per=0, $nper=0, $pv=0, $fv=0, $type=0)
+ {
+ $pmt = self::PMT($rate, $nper, $pv, $fv, $type);
+ $capital = $pv;
+ for ($i = 1; $i<= $per; ++$i) {
+ $interest = ($type && $i == 1) ? 0 : -$capital * $rate;
+ $principal = $pmt - $interest;
+ $capital += $principal;
+ }
+ return array($interest, $principal);
+ } // function _interestAndPrincipal()
+
+
+ /**
+ * ACCRINT
+ *
+ * Returns the accrued interest for a security that pays periodic interest.
+ *
+ * Excel Function:
+ * ACCRINT(issue,firstinterest,settlement,rate,par,frequency[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param mixed $issue The security's issue date.
+ * @param mixed $firstinterest The security's first interest date.
+ * @param mixed $settlement The security's settlement date.
+ * The security settlement date is the date after the issue date
+ * when the security is traded to the buyer.
+ * @param float $rate The security's annual coupon rate.
+ * @param float $par The security's par value.
+ * If you omit par, ACCRINT uses $1,000.
+ * @param integer $frequency the number of coupon payments per year.
+ * Valid frequency values are:
+ * 1 Annual
+ * 2 Semi-Annual
+ * 4 Quarterly
+ * If working in Gnumeric Mode, the following frequency options are
+ * also available
+ * 6 Bimonthly
+ * 12 Monthly
+ * @param integer $basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function ACCRINT($issue, $firstinterest, $settlement, $rate, $par=1000, $frequency=1, $basis=0)
+ {
+ $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue);
+ $firstinterest = PHPExcel_Calculation_Functions::flattenSingleValue($firstinterest);
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $par = (is_null($par)) ? 1000 : PHPExcel_Calculation_Functions::flattenSingleValue($par);
+ $frequency = (is_null($frequency)) ? 1 : PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
+ $basis = (is_null($basis)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // Validate
+ if ((is_numeric($rate)) && (is_numeric($par))) {
+ $rate = (float) $rate;
+ $par = (float) $par;
+ if (($rate <= 0) || ($par <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis);
+ if (!is_numeric($daysBetweenIssueAndSettlement)) {
+ // return date error
+ return $daysBetweenIssueAndSettlement;
+ }
+
+ return $par * $rate * $daysBetweenIssueAndSettlement;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function ACCRINT()
+
+
+ /**
+ * ACCRINTM
+ *
+ * Returns the accrued interest for a security that pays interest at maturity.
+ *
+ * Excel Function:
+ * ACCRINTM(issue,settlement,rate[,par[,basis]])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param mixed issue The security's issue date.
+ * @param mixed settlement The security's settlement (or maturity) date.
+ * @param float rate The security's annual coupon rate.
+ * @param float par The security's par value.
+ * If you omit par, ACCRINT uses $1,000.
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function ACCRINTM($issue, $settlement, $rate, $par=1000, $basis=0) {
+ $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue);
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $par = (is_null($par)) ? 1000 : PHPExcel_Calculation_Functions::flattenSingleValue($par);
+ $basis = (is_null($basis)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // Validate
+ if ((is_numeric($rate)) && (is_numeric($par))) {
+ $rate = (float) $rate;
+ $par = (float) $par;
+ if (($rate <= 0) || ($par <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis);
+ if (!is_numeric($daysBetweenIssueAndSettlement)) {
+ // return date error
+ return $daysBetweenIssueAndSettlement;
+ }
+ return $par * $rate * $daysBetweenIssueAndSettlement;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function ACCRINTM()
+
+
+ /**
+ * AMORDEGRC
+ *
+ * Returns the depreciation for each accounting period.
+ * This function is provided for the French accounting system. If an asset is purchased in
+ * the middle of the accounting period, the prorated depreciation is taken into account.
+ * The function is similar to AMORLINC, except that a depreciation coefficient is applied in
+ * the calculation depending on the life of the assets.
+ * This function will return the depreciation until the last period of the life of the assets
+ * or until the cumulated value of depreciation is greater than the cost of the assets minus
+ * the salvage value.
+ *
+ * Excel Function:
+ * AMORDEGRC(cost,purchased,firstPeriod,salvage,period,rate[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float cost The cost of the asset.
+ * @param mixed purchased Date of the purchase of the asset.
+ * @param mixed firstPeriod Date of the end of the first period.
+ * @param mixed salvage The salvage value at the end of the life of the asset.
+ * @param float period The period.
+ * @param float rate Rate of depreciation.
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function AMORDEGRC($cost, $purchased, $firstPeriod, $salvage, $period, $rate, $basis=0) {
+ $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost);
+ $purchased = PHPExcel_Calculation_Functions::flattenSingleValue($purchased);
+ $firstPeriod = PHPExcel_Calculation_Functions::flattenSingleValue($firstPeriod);
+ $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage);
+ $period = floor(PHPExcel_Calculation_Functions::flattenSingleValue($period));
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // The depreciation coefficients are:
+ // Life of assets (1/rate) Depreciation coefficient
+ // Less than 3 years 1
+ // Between 3 and 4 years 1.5
+ // Between 5 and 6 years 2
+ // More than 6 years 2.5
+ $fUsePer = 1.0 / $rate;
+ if ($fUsePer < 3.0) {
+ $amortiseCoeff = 1.0;
+ } elseif ($fUsePer < 5.0) {
+ $amortiseCoeff = 1.5;
+ } elseif ($fUsePer <= 6.0) {
+ $amortiseCoeff = 2.0;
+ } else {
+ $amortiseCoeff = 2.5;
+ }
+
+ $rate *= $amortiseCoeff;
+ $fNRate = round(PHPExcel_Calculation_DateTime::YEARFRAC($purchased, $firstPeriod, $basis) * $rate * $cost,0);
+ $cost -= $fNRate;
+ $fRest = $cost - $salvage;
+
+ for ($n = 0; $n < $period; ++$n) {
+ $fNRate = round($rate * $cost,0);
+ $fRest -= $fNRate;
+
+ if ($fRest < 0.0) {
+ switch ($period - $n) {
+ case 0 :
+ case 1 : return round($cost * 0.5, 0);
+ break;
+ default : return 0.0;
+ break;
+ }
+ }
+ $cost -= $fNRate;
+ }
+ return $fNRate;
+ } // function AMORDEGRC()
+
+
+ /**
+ * AMORLINC
+ *
+ * Returns the depreciation for each accounting period.
+ * This function is provided for the French accounting system. If an asset is purchased in
+ * the middle of the accounting period, the prorated depreciation is taken into account.
+ *
+ * Excel Function:
+ * AMORLINC(cost,purchased,firstPeriod,salvage,period,rate[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float cost The cost of the asset.
+ * @param mixed purchased Date of the purchase of the asset.
+ * @param mixed firstPeriod Date of the end of the first period.
+ * @param mixed salvage The salvage value at the end of the life of the asset.
+ * @param float period The period.
+ * @param float rate Rate of depreciation.
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function AMORLINC($cost, $purchased, $firstPeriod, $salvage, $period, $rate, $basis=0) {
+ $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost);
+ $purchased = PHPExcel_Calculation_Functions::flattenSingleValue($purchased);
+ $firstPeriod = PHPExcel_Calculation_Functions::flattenSingleValue($firstPeriod);
+ $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage);
+ $period = PHPExcel_Calculation_Functions::flattenSingleValue($period);
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ $fOneRate = $cost * $rate;
+ $fCostDelta = $cost - $salvage;
+ // Note, quirky variation for leap years on the YEARFRAC for this function
+ $purchasedYear = PHPExcel_Calculation_DateTime::YEAR($purchased);
+ $yearFrac = PHPExcel_Calculation_DateTime::YEARFRAC($purchased, $firstPeriod, $basis);
+
+ if (($basis == 1) && ($yearFrac < 1) && (PHPExcel_Calculation_DateTime::_isLeapYear($purchasedYear))) {
+ $yearFrac *= 365 / 366;
+ }
+
+ $f0Rate = $yearFrac * $rate * $cost;
+ $nNumOfFullPeriods = intval(($cost - $salvage - $f0Rate) / $fOneRate);
+
+ if ($period == 0) {
+ return $f0Rate;
+ } elseif ($period <= $nNumOfFullPeriods) {
+ return $fOneRate;
+ } elseif ($period == ($nNumOfFullPeriods + 1)) {
+ return ($fCostDelta - $fOneRate * $nNumOfFullPeriods - $f0Rate);
+ } else {
+ return 0.0;
+ }
+ } // function AMORLINC()
+
+
+ /**
+ * COUPDAYBS
+ *
+ * Returns the number of days from the beginning of the coupon period to the settlement date.
+ *
+ * Excel Function:
+ * COUPDAYBS(settlement,maturity,frequency[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue
+ * date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param mixed frequency the number of coupon payments per year.
+ * Valid frequency values are:
+ * 1 Annual
+ * 2 Semi-Annual
+ * 4 Quarterly
+ * If working in Gnumeric Mode, the following frequency options are
+ * also available
+ * 6 Bimonthly
+ * 12 Monthly
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function COUPDAYBS($settlement, $maturity, $frequency, $basis=0) {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
+ $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (($settlement > $maturity) ||
+ (!self::_validFrequency($frequency)) ||
+ (($basis < 0) || ($basis > 4))) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ $daysPerYear = self::_daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement),$basis);
+ $prev = self::_coupFirstPeriodDate($settlement, $maturity, $frequency, False);
+
+ return PHPExcel_Calculation_DateTime::YEARFRAC($prev, $settlement, $basis) * $daysPerYear;
+ } // function COUPDAYBS()
+
+
+ /**
+ * COUPDAYS
+ *
+ * Returns the number of days in the coupon period that contains the settlement date.
+ *
+ * Excel Function:
+ * COUPDAYS(settlement,maturity,frequency[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue
+ * date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param mixed frequency the number of coupon payments per year.
+ * Valid frequency values are:
+ * 1 Annual
+ * 2 Semi-Annual
+ * 4 Quarterly
+ * If working in Gnumeric Mode, the following frequency options are
+ * also available
+ * 6 Bimonthly
+ * 12 Monthly
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function COUPDAYS($settlement, $maturity, $frequency, $basis=0) {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
+ $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (($settlement > $maturity) ||
+ (!self::_validFrequency($frequency)) ||
+ (($basis < 0) || ($basis > 4))) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ switch ($basis) {
+ case 3: // Actual/365
+ return 365 / $frequency;
+ case 1: // Actual/actual
+ if ($frequency == 1) {
+ $daysPerYear = self::_daysPerYear(PHPExcel_Calculation_DateTime::YEAR($maturity),$basis);
+ return ($daysPerYear / $frequency);
+ } else {
+ $prev = self::_coupFirstPeriodDate($settlement, $maturity, $frequency, False);
+ $next = self::_coupFirstPeriodDate($settlement, $maturity, $frequency, True);
+ return ($next - $prev);
+ }
+ default: // US (NASD) 30/360, Actual/360 or European 30/360
+ return 360 / $frequency;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function COUPDAYS()
+
+
+ /**
+ * COUPDAYSNC
+ *
+ * Returns the number of days from the settlement date to the next coupon date.
+ *
+ * Excel Function:
+ * COUPDAYSNC(settlement,maturity,frequency[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue
+ * date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param mixed frequency the number of coupon payments per year.
+ * Valid frequency values are:
+ * 1 Annual
+ * 2 Semi-Annual
+ * 4 Quarterly
+ * If working in Gnumeric Mode, the following frequency options are
+ * also available
+ * 6 Bimonthly
+ * 12 Monthly
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function COUPDAYSNC($settlement, $maturity, $frequency, $basis=0) {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
+ $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (($settlement > $maturity) ||
+ (!self::_validFrequency($frequency)) ||
+ (($basis < 0) || ($basis > 4))) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ $daysPerYear = self::_daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement),$basis);
+ $next = self::_coupFirstPeriodDate($settlement, $maturity, $frequency, True);
+
+ return PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $next, $basis) * $daysPerYear;
+ } // function COUPDAYSNC()
+
+
+ /**
+ * COUPNCD
+ *
+ * Returns the next coupon date after the settlement date.
+ *
+ * Excel Function:
+ * COUPNCD(settlement,maturity,frequency[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue
+ * date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param mixed frequency the number of coupon payments per year.
+ * Valid frequency values are:
+ * 1 Annual
+ * 2 Semi-Annual
+ * 4 Quarterly
+ * If working in Gnumeric Mode, the following frequency options are
+ * also available
+ * 6 Bimonthly
+ * 12 Monthly
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function COUPNCD($settlement, $maturity, $frequency, $basis=0) {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
+ $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (($settlement > $maturity) ||
+ (!self::_validFrequency($frequency)) ||
+ (($basis < 0) || ($basis > 4))) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ return self::_coupFirstPeriodDate($settlement, $maturity, $frequency, True);
+ } // function COUPNCD()
+
+
+ /**
+ * COUPNUM
+ *
+ * Returns the number of coupons payable between the settlement date and maturity date,
+ * rounded up to the nearest whole coupon.
+ *
+ * Excel Function:
+ * COUPNUM(settlement,maturity,frequency[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue
+ * date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param mixed frequency the number of coupon payments per year.
+ * Valid frequency values are:
+ * 1 Annual
+ * 2 Semi-Annual
+ * 4 Quarterly
+ * If working in Gnumeric Mode, the following frequency options are
+ * also available
+ * 6 Bimonthly
+ * 12 Monthly
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return integer
+ */
+ public static function COUPNUM($settlement, $maturity, $frequency, $basis=0) {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
+ $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (($settlement > $maturity) ||
+ (!self::_validFrequency($frequency)) ||
+ (($basis < 0) || ($basis > 4))) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ $settlement = self::_coupFirstPeriodDate($settlement, $maturity, $frequency, True);
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis) * 365;
+
+ switch ($frequency) {
+ case 1: // annual payments
+ return ceil($daysBetweenSettlementAndMaturity / 360);
+ case 2: // half-yearly
+ return ceil($daysBetweenSettlementAndMaturity / 180);
+ case 4: // quarterly
+ return ceil($daysBetweenSettlementAndMaturity / 90);
+ case 6: // bimonthly
+ return ceil($daysBetweenSettlementAndMaturity / 60);
+ case 12: // monthly
+ return ceil($daysBetweenSettlementAndMaturity / 30);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function COUPNUM()
+
+
+ /**
+ * COUPPCD
+ *
+ * Returns the previous coupon date before the settlement date.
+ *
+ * Excel Function:
+ * COUPPCD(settlement,maturity,frequency[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue
+ * date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param mixed frequency the number of coupon payments per year.
+ * Valid frequency values are:
+ * 1 Annual
+ * 2 Semi-Annual
+ * 4 Quarterly
+ * If working in Gnumeric Mode, the following frequency options are
+ * also available
+ * 6 Bimonthly
+ * 12 Monthly
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function COUPPCD($settlement, $maturity, $frequency, $basis=0) {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
+ $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (($settlement > $maturity) ||
+ (!self::_validFrequency($frequency)) ||
+ (($basis < 0) || ($basis > 4))) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ return self::_coupFirstPeriodDate($settlement, $maturity, $frequency, False);
+ } // function COUPPCD()
+
+
+ /**
+ * CUMIPMT
+ *
+ * Returns the cumulative interest paid on a loan between the start and end periods.
+ *
+ * Excel Function:
+ * CUMIPMT(rate,nper,pv,start,end[,type])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float $rate The Interest rate
+ * @param integer $nper The total number of payment periods
+ * @param float $pv Present Value
+ * @param integer $start The first period in the calculation.
+ * Payment periods are numbered beginning with 1.
+ * @param integer $end The last period in the calculation.
+ * @param integer $type A number 0 or 1 and indicates when payments are due:
+ * 0 or omitted At the end of the period.
+ * 1 At the beginning of the period.
+ * @return float
+ */
+ public static function CUMIPMT($rate, $nper, $pv, $start, $end, $type = 0) {
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper);
+ $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
+ $start = (int) PHPExcel_Calculation_Functions::flattenSingleValue($start);
+ $end = (int) PHPExcel_Calculation_Functions::flattenSingleValue($end);
+ $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if ($start < 1 || $start > $end) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ // Calculate
+ $interest = 0;
+ for ($per = $start; $per <= $end; ++$per) {
+ $interest += self::IPMT($rate, $per, $nper, $pv, 0, $type);
+ }
+
+ return $interest;
+ } // function CUMIPMT()
+
+
+ /**
+ * CUMPRINC
+ *
+ * Returns the cumulative principal paid on a loan between the start and end periods.
+ *
+ * Excel Function:
+ * CUMPRINC(rate,nper,pv,start,end[,type])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float $rate The Interest rate
+ * @param integer $nper The total number of payment periods
+ * @param float $pv Present Value
+ * @param integer $start The first period in the calculation.
+ * Payment periods are numbered beginning with 1.
+ * @param integer $end The last period in the calculation.
+ * @param integer $type A number 0 or 1 and indicates when payments are due:
+ * 0 or omitted At the end of the period.
+ * 1 At the beginning of the period.
+ * @return float
+ */
+ public static function CUMPRINC($rate, $nper, $pv, $start, $end, $type = 0) {
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper);
+ $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
+ $start = (int) PHPExcel_Calculation_Functions::flattenSingleValue($start);
+ $end = (int) PHPExcel_Calculation_Functions::flattenSingleValue($end);
+ $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if ($start < 1 || $start > $end) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ // Calculate
+ $principal = 0;
+ for ($per = $start; $per <= $end; ++$per) {
+ $principal += self::PPMT($rate, $per, $nper, $pv, 0, $type);
+ }
+
+ return $principal;
+ } // function CUMPRINC()
+
+
+ /**
+ * DB
+ *
+ * Returns the depreciation of an asset for a specified period using the
+ * fixed-declining balance method.
+ * This form of depreciation is used if you want to get a higher depreciation value
+ * at the beginning of the depreciation (as opposed to linear depreciation). The
+ * depreciation value is reduced with every depreciation period by the depreciation
+ * already deducted from the initial cost.
+ *
+ * Excel Function:
+ * DB(cost,salvage,life,period[,month])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float cost Initial cost of the asset.
+ * @param float salvage Value at the end of the depreciation.
+ * (Sometimes called the salvage value of the asset)
+ * @param integer life Number of periods over which the asset is depreciated.
+ * (Sometimes called the useful life of the asset)
+ * @param integer period The period for which you want to calculate the
+ * depreciation. Period must use the same units as life.
+ * @param integer month Number of months in the first year. If month is omitted,
+ * it defaults to 12.
+ * @return float
+ */
+ public static function DB($cost, $salvage, $life, $period, $month=12) {
+ $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost);
+ $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage);
+ $life = PHPExcel_Calculation_Functions::flattenSingleValue($life);
+ $period = PHPExcel_Calculation_Functions::flattenSingleValue($period);
+ $month = PHPExcel_Calculation_Functions::flattenSingleValue($month);
+
+ // Validate
+ if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life)) && (is_numeric($period)) && (is_numeric($month))) {
+ $cost = (float) $cost;
+ $salvage = (float) $salvage;
+ $life = (int) $life;
+ $period = (int) $period;
+ $month = (int) $month;
+ if ($cost == 0) {
+ return 0.0;
+ } elseif (($cost < 0) || (($salvage / $cost) < 0) || ($life <= 0) || ($period < 1) || ($month < 1)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ // Set Fixed Depreciation Rate
+ $fixedDepreciationRate = 1 - pow(($salvage / $cost), (1 / $life));
+ $fixedDepreciationRate = round($fixedDepreciationRate, 3);
+
+ // Loop through each period calculating the depreciation
+ $previousDepreciation = 0;
+ for ($per = 1; $per <= $period; ++$per) {
+ if ($per == 1) {
+ $depreciation = $cost * $fixedDepreciationRate * $month / 12;
+ } elseif ($per == ($life + 1)) {
+ $depreciation = ($cost - $previousDepreciation) * $fixedDepreciationRate * (12 - $month) / 12;
+ } else {
+ $depreciation = ($cost - $previousDepreciation) * $fixedDepreciationRate;
+ }
+ $previousDepreciation += $depreciation;
+ }
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
+ $depreciation = round($depreciation,2);
+ }
+ return $depreciation;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function DB()
+
+
+ /**
+ * DDB
+ *
+ * Returns the depreciation of an asset for a specified period using the
+ * double-declining balance method or some other method you specify.
+ *
+ * Excel Function:
+ * DDB(cost,salvage,life,period[,factor])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float cost Initial cost of the asset.
+ * @param float salvage Value at the end of the depreciation.
+ * (Sometimes called the salvage value of the asset)
+ * @param integer life Number of periods over which the asset is depreciated.
+ * (Sometimes called the useful life of the asset)
+ * @param integer period The period for which you want to calculate the
+ * depreciation. Period must use the same units as life.
+ * @param float factor The rate at which the balance declines.
+ * If factor is omitted, it is assumed to be 2 (the
+ * double-declining balance method).
+ * @return float
+ */
+ public static function DDB($cost, $salvage, $life, $period, $factor=2.0) {
+ $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost);
+ $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage);
+ $life = PHPExcel_Calculation_Functions::flattenSingleValue($life);
+ $period = PHPExcel_Calculation_Functions::flattenSingleValue($period);
+ $factor = PHPExcel_Calculation_Functions::flattenSingleValue($factor);
+
+ // Validate
+ if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life)) && (is_numeric($period)) && (is_numeric($factor))) {
+ $cost = (float) $cost;
+ $salvage = (float) $salvage;
+ $life = (int) $life;
+ $period = (int) $period;
+ $factor = (float) $factor;
+ if (($cost <= 0) || (($salvage / $cost) < 0) || ($life <= 0) || ($period < 1) || ($factor <= 0.0) || ($period > $life)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ // Set Fixed Depreciation Rate
+ $fixedDepreciationRate = 1 - pow(($salvage / $cost), (1 / $life));
+ $fixedDepreciationRate = round($fixedDepreciationRate, 3);
+
+ // Loop through each period calculating the depreciation
+ $previousDepreciation = 0;
+ for ($per = 1; $per <= $period; ++$per) {
+ $depreciation = min( ($cost - $previousDepreciation) * ($factor / $life), ($cost - $salvage - $previousDepreciation) );
+ $previousDepreciation += $depreciation;
+ }
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
+ $depreciation = round($depreciation,2);
+ }
+ return $depreciation;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function DDB()
+
+
+ /**
+ * DISC
+ *
+ * Returns the discount rate for a security.
+ *
+ * Excel Function:
+ * DISC(settlement,maturity,price,redemption[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue
+ * date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param integer price The security's price per $100 face value.
+ * @param integer redemption The security's redemption value per $100 face value.
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function DISC($settlement, $maturity, $price, $redemption, $basis=0) {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $price = PHPExcel_Calculation_Functions::flattenSingleValue($price);
+ $redemption = PHPExcel_Calculation_Functions::flattenSingleValue($redemption);
+ $basis = PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // Validate
+ if ((is_numeric($price)) && (is_numeric($redemption)) && (is_numeric($basis))) {
+ $price = (float) $price;
+ $redemption = (float) $redemption;
+ $basis = (int) $basis;
+ if (($price <= 0) || ($redemption <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ // return date error
+ return $daysBetweenSettlementAndMaturity;
+ }
+
+ return ((1 - $price / $redemption) / $daysBetweenSettlementAndMaturity);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function DISC()
+
+
+ /**
+ * DOLLARDE
+ *
+ * Converts a dollar price expressed as an integer part and a fraction
+ * part into a dollar price expressed as a decimal number.
+ * Fractional dollar numbers are sometimes used for security prices.
+ *
+ * Excel Function:
+ * DOLLARDE(fractional_dollar,fraction)
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float $fractional_dollar Fractional Dollar
+ * @param integer $fraction Fraction
+ * @return float
+ */
+ public static function DOLLARDE($fractional_dollar = Null, $fraction = 0) {
+ $fractional_dollar = PHPExcel_Calculation_Functions::flattenSingleValue($fractional_dollar);
+ $fraction = (int)PHPExcel_Calculation_Functions::flattenSingleValue($fraction);
+
+ // Validate parameters
+ if (is_null($fractional_dollar) || $fraction < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if ($fraction == 0) {
+ return PHPExcel_Calculation_Functions::DIV0();
+ }
+
+ $dollars = floor($fractional_dollar);
+ $cents = fmod($fractional_dollar,1);
+ $cents /= $fraction;
+ $cents *= pow(10,ceil(log10($fraction)));
+ return $dollars + $cents;
+ } // function DOLLARDE()
+
+
+ /**
+ * DOLLARFR
+ *
+ * Converts a dollar price expressed as a decimal number into a dollar price
+ * expressed as a fraction.
+ * Fractional dollar numbers are sometimes used for security prices.
+ *
+ * Excel Function:
+ * DOLLARFR(decimal_dollar,fraction)
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float $decimal_dollar Decimal Dollar
+ * @param integer $fraction Fraction
+ * @return float
+ */
+ public static function DOLLARFR($decimal_dollar = Null, $fraction = 0) {
+ $decimal_dollar = PHPExcel_Calculation_Functions::flattenSingleValue($decimal_dollar);
+ $fraction = (int)PHPExcel_Calculation_Functions::flattenSingleValue($fraction);
+
+ // Validate parameters
+ if (is_null($decimal_dollar) || $fraction < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if ($fraction == 0) {
+ return PHPExcel_Calculation_Functions::DIV0();
+ }
+
+ $dollars = floor($decimal_dollar);
+ $cents = fmod($decimal_dollar,1);
+ $cents *= $fraction;
+ $cents *= pow(10,-ceil(log10($fraction)));
+ return $dollars + $cents;
+ } // function DOLLARFR()
+
+
+ /**
+ * EFFECT
+ *
+ * Returns the effective interest rate given the nominal rate and the number of
+ * compounding payments per year.
+ *
+ * Excel Function:
+ * EFFECT(nominal_rate,npery)
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float $nominal_rate Nominal interest rate
+ * @param integer $npery Number of compounding payments per year
+ * @return float
+ */
+ public static function EFFECT($nominal_rate = 0, $npery = 0) {
+ $nominal_rate = PHPExcel_Calculation_Functions::flattenSingleValue($nominal_rate);
+ $npery = (int)PHPExcel_Calculation_Functions::flattenSingleValue($npery);
+
+ // Validate parameters
+ if ($nominal_rate <= 0 || $npery < 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ return pow((1 + $nominal_rate / $npery), $npery) - 1;
+ } // function EFFECT()
+
+
+ /**
+ * FV
+ *
+ * Returns the Future Value of a cash flow with constant payments and interest rate (annuities).
+ *
+ * Excel Function:
+ * FV(rate,nper,pmt[,pv[,type]])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float $rate The interest rate per period
+ * @param int $nper Total number of payment periods in an annuity
+ * @param float $pmt The payment made each period: it cannot change over the
+ * life of the annuity. Typically, pmt contains principal
+ * and interest but no other fees or taxes.
+ * @param float $pv Present Value, or the lump-sum amount that a series of
+ * future payments is worth right now.
+ * @param integer $type A number 0 or 1 and indicates when payments are due:
+ * 0 or omitted At the end of the period.
+ * 1 At the beginning of the period.
+ * @return float
+ */
+ public static function FV($rate = 0, $nper = 0, $pmt = 0, $pv = 0, $type = 0) {
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $nper = PHPExcel_Calculation_Functions::flattenSingleValue($nper);
+ $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt);
+ $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
+ $type = PHPExcel_Calculation_Functions::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // Calculate
+ if (!is_null($rate) && $rate != 0) {
+ return -$pv * pow(1 + $rate, $nper) - $pmt * (1 + $rate * $type) * (pow(1 + $rate, $nper) - 1) / $rate;
+ } else {
+ return -$pv - $pmt * $nper;
+ }
+ } // function FV()
+
+
+ /**
+ * FVSCHEDULE
+ *
+ * Returns the future value of an initial principal after applying a series of compound interest rates.
+ * Use FVSCHEDULE to calculate the future value of an investment with a variable or adjustable rate.
+ *
+ * Excel Function:
+ * FVSCHEDULE(principal,schedule)
+ *
+ * @param float $principal The present value.
+ * @param float[] $schedule An array of interest rates to apply.
+ * @return float
+ */
+ public static function FVSCHEDULE($principal, $schedule) {
+ $principal = PHPExcel_Calculation_Functions::flattenSingleValue($principal);
+ $schedule = PHPExcel_Calculation_Functions::flattenArray($schedule);
+
+ foreach($schedule as $rate) {
+ $principal *= 1 + $rate;
+ }
+
+ return $principal;
+ } // function FVSCHEDULE()
+
+
+ /**
+ * INTRATE
+ *
+ * Returns the interest rate for a fully invested security.
+ *
+ * Excel Function:
+ * INTRATE(settlement,maturity,investment,redemption[,basis])
+ *
+ * @param mixed $settlement The security's settlement date.
+ * The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed $maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param integer $investment The amount invested in the security.
+ * @param integer $redemption The amount to be received at maturity.
+ * @param integer $basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function INTRATE($settlement, $maturity, $investment, $redemption, $basis=0) {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $investment = PHPExcel_Calculation_Functions::flattenSingleValue($investment);
+ $redemption = PHPExcel_Calculation_Functions::flattenSingleValue($redemption);
+ $basis = PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // Validate
+ if ((is_numeric($investment)) && (is_numeric($redemption)) && (is_numeric($basis))) {
+ $investment = (float) $investment;
+ $redemption = (float) $redemption;
+ $basis = (int) $basis;
+ if (($investment <= 0) || ($redemption <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ // return date error
+ return $daysBetweenSettlementAndMaturity;
+ }
+
+ return (($redemption / $investment) - 1) / ($daysBetweenSettlementAndMaturity);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function INTRATE()
+
+
+ /**
+ * IPMT
+ *
+ * Returns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate.
+ *
+ * Excel Function:
+ * IPMT(rate,per,nper,pv[,fv][,type])
+ *
+ * @param float $rate Interest rate per period
+ * @param int $per Period for which we want to find the interest
+ * @param int $nper Number of periods
+ * @param float $pv Present Value
+ * @param float $fv Future Value
+ * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
+ * @return float
+ */
+ public static function IPMT($rate, $per, $nper, $pv, $fv = 0, $type = 0) {
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $per = (int) PHPExcel_Calculation_Functions::flattenSingleValue($per);
+ $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper);
+ $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
+ $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv);
+ $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if ($per <= 0 || $per > $nper) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ // Calculate
+ $interestAndPrincipal = self::_interestAndPrincipal($rate, $per, $nper, $pv, $fv, $type);
+ return $interestAndPrincipal[0];
+ } // function IPMT()
+
+ /**
+ * IRR
+ *
+ * Returns the internal rate of return for a series of cash flows represented by the numbers in values.
+ * These cash flows do not have to be even, as they would be for an annuity. However, the cash flows must occur
+ * at regular intervals, such as monthly or annually. The internal rate of return is the interest rate received
+ * for an investment consisting of payments (negative values) and income (positive values) that occur at regular
+ * periods.
+ *
+ * Excel Function:
+ * IRR(values[,guess])
+ *
+ * @param float[] $values An array or a reference to cells that contain numbers for which you want
+ * to calculate the internal rate of return.
+ * Values must contain at least one positive value and one negative value to
+ * calculate the internal rate of return.
+ * @param float $guess A number that you guess is close to the result of IRR
+ * @return float
+ */
+ public static function IRR($values, $guess = 0.1) {
+ if (!is_array($values)) return PHPExcel_Calculation_Functions::VALUE();
+ $values = PHPExcel_Calculation_Functions::flattenArray($values);
+ $guess = PHPExcel_Calculation_Functions::flattenSingleValue($guess);
+
+ // create an initial range, with a root somewhere between 0 and guess
+ $x1 = 0.0;
+ $x2 = $guess;
+ $f1 = self::NPV($x1, $values);
+ $f2 = self::NPV($x2, $values);
+ for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) {
+ if (($f1 * $f2) < 0.0) break;
+ if (abs($f1) < abs($f2)) {
+ $f1 = self::NPV($x1 += 1.6 * ($x1 - $x2), $values);
+ } else {
+ $f2 = self::NPV($x2 += 1.6 * ($x2 - $x1), $values);
+ }
+ }
+ if (($f1 * $f2) > 0.0) return PHPExcel_Calculation_Functions::VALUE();
+
+ $f = self::NPV($x1, $values);
+ if ($f < 0.0) {
+ $rtb = $x1;
+ $dx = $x2 - $x1;
+ } else {
+ $rtb = $x2;
+ $dx = $x1 - $x2;
+ }
+
+ for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) {
+ $dx *= 0.5;
+ $x_mid = $rtb + $dx;
+ $f_mid = self::NPV($x_mid, $values);
+ if ($f_mid <= 0.0)
+ $rtb = $x_mid;
+ if ((abs($f_mid) < FINANCIAL_PRECISION) || (abs($dx) < FINANCIAL_PRECISION))
+ return $x_mid;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function IRR()
+
+
+ /**
+ * ISPMT
+ *
+ * Returns the interest payment for an investment based on an interest rate and a constant payment schedule.
+ *
+ * Excel Function:
+ * =ISPMT(interest_rate, period, number_payments, PV)
+ *
+ * interest_rate is the interest rate for the investment
+ *
+ * period is the period to calculate the interest rate. It must be betweeen 1 and number_payments.
+ *
+ * number_payments is the number of payments for the annuity
+ *
+ * PV is the loan amount or present value of the payments
+ */
+ public static function ISPMT() {
+ // Return value
+ $returnValue = 0;
+
+ // Get the parameters
+ $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
+ $interestRate = array_shift($aArgs);
+ $period = array_shift($aArgs);
+ $numberPeriods = array_shift($aArgs);
+ $principleRemaining = array_shift($aArgs);
+
+ // Calculate
+ $principlePayment = ($principleRemaining * 1.0) / ($numberPeriods * 1.0);
+ for($i=0; $i <= $period; ++$i) {
+ $returnValue = $interestRate * $principleRemaining * -1;
+ $principleRemaining -= $principlePayment;
+ // principle needs to be 0 after the last payment, don't let floating point screw it up
+ if($i == $numberPeriods) {
+ $returnValue = 0;
+ }
+ }
+ return($returnValue);
+ } // function ISPMT()
+
+
+ /**
+ * MIRR
+ *
+ * Returns the modified internal rate of return for a series of periodic cash flows. MIRR considers both
+ * the cost of the investment and the interest received on reinvestment of cash.
+ *
+ * Excel Function:
+ * MIRR(values,finance_rate, reinvestment_rate)
+ *
+ * @param float[] $values An array or a reference to cells that contain a series of payments and
+ * income occurring at regular intervals.
+ * Payments are negative value, income is positive values.
+ * @param float $finance_rate The interest rate you pay on the money used in the cash flows
+ * @param float $reinvestment_rate The interest rate you receive on the cash flows as you reinvest them
+ * @return float
+ */
+ public static function MIRR($values, $finance_rate, $reinvestment_rate) {
+ if (!is_array($values)) return PHPExcel_Calculation_Functions::VALUE();
+ $values = PHPExcel_Calculation_Functions::flattenArray($values);
+ $finance_rate = PHPExcel_Calculation_Functions::flattenSingleValue($finance_rate);
+ $reinvestment_rate = PHPExcel_Calculation_Functions::flattenSingleValue($reinvestment_rate);
+ $n = count($values);
+
+ $rr = 1.0 + $reinvestment_rate;
+ $fr = 1.0 + $finance_rate;
+
+ $npv_pos = $npv_neg = 0.0;
+ foreach($values as $i => $v) {
+ if ($v >= 0) {
+ $npv_pos += $v / pow($rr, $i);
+ } else {
+ $npv_neg += $v / pow($fr, $i);
+ }
+ }
+
+ if (($npv_neg == 0) || ($npv_pos == 0) || ($reinvestment_rate <= -1)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ $mirr = pow((-$npv_pos * pow($rr, $n))
+ / ($npv_neg * ($rr)), (1.0 / ($n - 1))) - 1.0;
+
+ return (is_finite($mirr) ? $mirr : PHPExcel_Calculation_Functions::VALUE());
+ } // function MIRR()
+
+
+ /**
+ * NOMINAL
+ *
+ * Returns the nominal interest rate given the effective rate and the number of compounding payments per year.
+ *
+ * @param float $effect_rate Effective interest rate
+ * @param int $npery Number of compounding payments per year
+ * @return float
+ */
+ public static function NOMINAL($effect_rate = 0, $npery = 0) {
+ $effect_rate = PHPExcel_Calculation_Functions::flattenSingleValue($effect_rate);
+ $npery = (int)PHPExcel_Calculation_Functions::flattenSingleValue($npery);
+
+ // Validate parameters
+ if ($effect_rate <= 0 || $npery < 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // Calculate
+ return $npery * (pow($effect_rate + 1, 1 / $npery) - 1);
+ } // function NOMINAL()
+
+
+ /**
+ * NPER
+ *
+ * Returns the number of periods for a cash flow with constant periodic payments (annuities), and interest rate.
+ *
+ * @param float $rate Interest rate per period
+ * @param int $pmt Periodic payment (annuity)
+ * @param float $pv Present Value
+ * @param float $fv Future Value
+ * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
+ * @return float
+ */
+ public static function NPER($rate = 0, $pmt = 0, $pv = 0, $fv = 0, $type = 0) {
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt);
+ $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
+ $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv);
+ $type = PHPExcel_Calculation_Functions::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // Calculate
+ if (!is_null($rate) && $rate != 0) {
+ if ($pmt == 0 && $pv == 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return log(($pmt * (1 + $rate * $type) / $rate - $fv) / ($pv + $pmt * (1 + $rate * $type) / $rate)) / log(1 + $rate);
+ } else {
+ if ($pmt == 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return (-$pv -$fv) / $pmt;
+ }
+ } // function NPER()
+
+ /**
+ * NPV
+ *
+ * Returns the Net Present Value of a cash flow series given a discount rate.
+ *
+ * @return float
+ */
+ public static function NPV() {
+ // Return value
+ $returnValue = 0;
+
+ // Loop through arguments
+ $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
+
+ // Calculate
+ $rate = array_shift($aArgs);
+ for ($i = 1; $i <= count($aArgs); ++$i) {
+ // Is it a numeric value?
+ if (is_numeric($aArgs[$i - 1])) {
+ $returnValue += $aArgs[$i - 1] / pow(1 + $rate, $i);
+ }
+ }
+
+ // Return
+ return $returnValue;
+ } // function NPV()
+
+ /**
+ * PMT
+ *
+ * Returns the constant payment (annuity) for a cash flow with a constant interest rate.
+ *
+ * @param float $rate Interest rate per period
+ * @param int $nper Number of periods
+ * @param float $pv Present Value
+ * @param float $fv Future Value
+ * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
+ * @return float
+ */
+ public static function PMT($rate = 0, $nper = 0, $pv = 0, $fv = 0, $type = 0) {
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $nper = PHPExcel_Calculation_Functions::flattenSingleValue($nper);
+ $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
+ $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv);
+ $type = PHPExcel_Calculation_Functions::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // Calculate
+ if (!is_null($rate) && $rate != 0) {
+ return (-$fv - $pv * pow(1 + $rate, $nper)) / (1 + $rate * $type) / ((pow(1 + $rate, $nper) - 1) / $rate);
+ } else {
+ return (-$pv - $fv) / $nper;
+ }
+ } // function PMT()
+
+
+ /**
+ * PPMT
+ *
+ * Returns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate.
+ *
+ * @param float $rate Interest rate per period
+ * @param int $per Period for which we want to find the interest
+ * @param int $nper Number of periods
+ * @param float $pv Present Value
+ * @param float $fv Future Value
+ * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
+ * @return float
+ */
+ public static function PPMT($rate, $per, $nper, $pv, $fv = 0, $type = 0) {
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $per = (int) PHPExcel_Calculation_Functions::flattenSingleValue($per);
+ $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper);
+ $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
+ $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv);
+ $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if ($per <= 0 || $per > $nper) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ // Calculate
+ $interestAndPrincipal = self::_interestAndPrincipal($rate, $per, $nper, $pv, $fv, $type);
+ return $interestAndPrincipal[1];
+ } // function PPMT()
+
+
+ public static function PRICE($settlement, $maturity, $rate, $yield, $redemption, $frequency, $basis=0) {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $rate = (float) PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $yield = (float) PHPExcel_Calculation_Functions::flattenSingleValue($yield);
+ $redemption = (float) PHPExcel_Calculation_Functions::flattenSingleValue($redemption);
+ $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
+ $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (($settlement > $maturity) ||
+ (!self::_validFrequency($frequency)) ||
+ (($basis < 0) || ($basis > 4))) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ $dsc = self::COUPDAYSNC($settlement, $maturity, $frequency, $basis);
+ $e = self::COUPDAYS($settlement, $maturity, $frequency, $basis);
+ $n = self::COUPNUM($settlement, $maturity, $frequency, $basis);
+ $a = self::COUPDAYBS($settlement, $maturity, $frequency, $basis);
+
+ $baseYF = 1.0 + ($yield / $frequency);
+ $rfp = 100 * ($rate / $frequency);
+ $de = $dsc / $e;
+
+ $result = $redemption / pow($baseYF, (--$n + $de));
+ for($k = 0; $k <= $n; ++$k) {
+ $result += $rfp / (pow($baseYF, ($k + $de)));
+ }
+ $result -= $rfp * ($a / $e);
+
+ return $result;
+ } // function PRICE()
+
+
+ /**
+ * PRICEDISC
+ *
+ * Returns the price per $100 face value of a discounted security.
+ *
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param int discount The security's discount rate.
+ * @param int redemption The security's redemption value per $100 face value.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function PRICEDISC($settlement, $maturity, $discount, $redemption, $basis=0) {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $discount = (float) PHPExcel_Calculation_Functions::flattenSingleValue($discount);
+ $redemption = (float) PHPExcel_Calculation_Functions::flattenSingleValue($redemption);
+ $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // Validate
+ if ((is_numeric($discount)) && (is_numeric($redemption)) && (is_numeric($basis))) {
+ if (($discount <= 0) || ($redemption <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ // return date error
+ return $daysBetweenSettlementAndMaturity;
+ }
+
+ return $redemption * (1 - $discount * $daysBetweenSettlementAndMaturity);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function PRICEDISC()
+
+
+ /**
+ * PRICEMAT
+ *
+ * Returns the price per $100 face value of a security that pays interest at maturity.
+ *
+ * @param mixed settlement The security's settlement date.
+ * The security's settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param mixed issue The security's issue date.
+ * @param int rate The security's interest rate at date of issue.
+ * @param int yield The security's annual yield.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function PRICEMAT($settlement, $maturity, $issue, $rate, $yield, $basis=0) {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue);
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $yield = PHPExcel_Calculation_Functions::flattenSingleValue($yield);
+ $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // Validate
+ if (is_numeric($rate) && is_numeric($yield)) {
+ if (($rate <= 0) || ($yield <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $daysPerYear = self::_daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement),$basis);
+ if (!is_numeric($daysPerYear)) {
+ return $daysPerYear;
+ }
+ $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis);
+ if (!is_numeric($daysBetweenIssueAndSettlement)) {
+ // return date error
+ return $daysBetweenIssueAndSettlement;
+ }
+ $daysBetweenIssueAndSettlement *= $daysPerYear;
+ $daysBetweenIssueAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $maturity, $basis);
+ if (!is_numeric($daysBetweenIssueAndMaturity)) {
+ // return date error
+ return $daysBetweenIssueAndMaturity;
+ }
+ $daysBetweenIssueAndMaturity *= $daysPerYear;
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ // return date error
+ return $daysBetweenSettlementAndMaturity;
+ }
+ $daysBetweenSettlementAndMaturity *= $daysPerYear;
+
+ return ((100 + (($daysBetweenIssueAndMaturity / $daysPerYear) * $rate * 100)) /
+ (1 + (($daysBetweenSettlementAndMaturity / $daysPerYear) * $yield)) -
+ (($daysBetweenIssueAndSettlement / $daysPerYear) * $rate * 100));
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function PRICEMAT()
+
+
+ /**
+ * PV
+ *
+ * Returns the Present Value of a cash flow with constant payments and interest rate (annuities).
+ *
+ * @param float $rate Interest rate per period
+ * @param int $nper Number of periods
+ * @param float $pmt Periodic payment (annuity)
+ * @param float $fv Future Value
+ * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
+ * @return float
+ */
+ public static function PV($rate = 0, $nper = 0, $pmt = 0, $fv = 0, $type = 0) {
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $nper = PHPExcel_Calculation_Functions::flattenSingleValue($nper);
+ $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt);
+ $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv);
+ $type = PHPExcel_Calculation_Functions::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // Calculate
+ if (!is_null($rate) && $rate != 0) {
+ return (-$pmt * (1 + $rate * $type) * ((pow(1 + $rate, $nper) - 1) / $rate) - $fv) / pow(1 + $rate, $nper);
+ } else {
+ return -$fv - $pmt * $nper;
+ }
+ } // function PV()
+
+
+ /**
+ * RATE
+ *
+ * Returns the interest rate per period of an annuity.
+ * RATE is calculated by iteration and can have zero or more solutions.
+ * If the successive results of RATE do not converge to within 0.0000001 after 20 iterations,
+ * RATE returns the #NUM! error value.
+ *
+ * Excel Function:
+ * RATE(nper,pmt,pv[,fv[,type[,guess]]])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float nper The total number of payment periods in an annuity.
+ * @param float pmt The payment made each period and cannot change over the life
+ * of the annuity.
+ * Typically, pmt includes principal and interest but no other
+ * fees or taxes.
+ * @param float pv The present value - the total amount that a series of future
+ * payments is worth now.
+ * @param float fv The future value, or a cash balance you want to attain after
+ * the last payment is made. If fv is omitted, it is assumed
+ * to be 0 (the future value of a loan, for example, is 0).
+ * @param integer type A number 0 or 1 and indicates when payments are due:
+ * 0 or omitted At the end of the period.
+ * 1 At the beginning of the period.
+ * @param float guess Your guess for what the rate will be.
+ * If you omit guess, it is assumed to be 10 percent.
+ * @return float
+ **/
+ public static function RATE($nper, $pmt, $pv, $fv = 0.0, $type = 0, $guess = 0.1) {
+ $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper);
+ $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt);
+ $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
+ $fv = (is_null($fv)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($fv);
+ $type = (is_null($type)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($type);
+ $guess = (is_null($guess)) ? 0.1 : PHPExcel_Calculation_Functions::flattenSingleValue($guess);
+
+ $rate = $guess;
+ if (abs($rate) < FINANCIAL_PRECISION) {
+ $y = $pv * (1 + $nper * $rate) + $pmt * (1 + $rate * $type) * $nper + $fv;
+ } else {
+ $f = exp($nper * log(1 + $rate));
+ $y = $pv * $f + $pmt * (1 / $rate + $type) * ($f - 1) + $fv;
+ }
+ $y0 = $pv + $pmt * $nper + $fv;
+ $y1 = $pv * $f + $pmt * (1 / $rate + $type) * ($f - 1) + $fv;
+
+ // find root by secant method
+ $i = $x0 = 0.0;
+ $x1 = $rate;
+ while ((abs($y0 - $y1) > FINANCIAL_PRECISION) && ($i < FINANCIAL_MAX_ITERATIONS)) {
+ $rate = ($y1 * $x0 - $y0 * $x1) / ($y1 - $y0);
+ $x0 = $x1;
+ $x1 = $rate;
+ if (($nper * abs($pmt)) > ($pv - $fv))
+ $x1 = abs($x1);
+
+ if (abs($rate) < FINANCIAL_PRECISION) {
+ $y = $pv * (1 + $nper * $rate) + $pmt * (1 + $rate * $type) * $nper + $fv;
+ } else {
+ $f = exp($nper * log(1 + $rate));
+ $y = $pv * $f + $pmt * (1 / $rate + $type) * ($f - 1) + $fv;
+ }
+
+ $y0 = $y1;
+ $y1 = $y;
+ ++$i;
+ }
+ return $rate;
+ } // function RATE()
+
+
+ /**
+ * RECEIVED
+ *
+ * Returns the price per $100 face value of a discounted security.
+ *
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param int investment The amount invested in the security.
+ * @param int discount The security's discount rate.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function RECEIVED($settlement, $maturity, $investment, $discount, $basis=0) {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $investment = (float) PHPExcel_Calculation_Functions::flattenSingleValue($investment);
+ $discount = (float) PHPExcel_Calculation_Functions::flattenSingleValue($discount);
+ $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // Validate
+ if ((is_numeric($investment)) && (is_numeric($discount)) && (is_numeric($basis))) {
+ if (($investment <= 0) || ($discount <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ // return date error
+ return $daysBetweenSettlementAndMaturity;
+ }
+
+ return $investment / ( 1 - ($discount * $daysBetweenSettlementAndMaturity));
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function RECEIVED()
+
+
+ /**
+ * SLN
+ *
+ * Returns the straight-line depreciation of an asset for one period
+ *
+ * @param cost Initial cost of the asset
+ * @param salvage Value at the end of the depreciation
+ * @param life Number of periods over which the asset is depreciated
+ * @return float
+ */
+ public static function SLN($cost, $salvage, $life) {
+ $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost);
+ $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage);
+ $life = PHPExcel_Calculation_Functions::flattenSingleValue($life);
+
+ // Calculate
+ if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life))) {
+ if ($life < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return ($cost - $salvage) / $life;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function SLN()
+
+
+ /**
+ * SYD
+ *
+ * Returns the sum-of-years' digits depreciation of an asset for a specified period.
+ *
+ * @param cost Initial cost of the asset
+ * @param salvage Value at the end of the depreciation
+ * @param life Number of periods over which the asset is depreciated
+ * @param period Period
+ * @return float
+ */
+ public static function SYD($cost, $salvage, $life, $period) {
+ $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost);
+ $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage);
+ $life = PHPExcel_Calculation_Functions::flattenSingleValue($life);
+ $period = PHPExcel_Calculation_Functions::flattenSingleValue($period);
+
+ // Calculate
+ if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life)) && (is_numeric($period))) {
+ if (($life < 1) || ($period > $life)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return (($cost - $salvage) * ($life - $period + 1) * 2) / ($life * ($life + 1));
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function SYD()
+
+
+ /**
+ * TBILLEQ
+ *
+ * Returns the bond-equivalent yield for a Treasury bill.
+ *
+ * @param mixed settlement The Treasury bill's settlement date.
+ * The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
+ * @param mixed maturity The Treasury bill's maturity date.
+ * The maturity date is the date when the Treasury bill expires.
+ * @param int discount The Treasury bill's discount rate.
+ * @return float
+ */
+ public static function TBILLEQ($settlement, $maturity, $discount) {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $discount = PHPExcel_Calculation_Functions::flattenSingleValue($discount);
+
+ // Use TBILLPRICE for validation
+ $testValue = self::TBILLPRICE($settlement, $maturity, $discount);
+ if (is_string($testValue)) {
+ return $testValue;
+ }
+
+ if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ ++$maturity;
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity) * 360;
+ } else {
+ $daysBetweenSettlementAndMaturity = (PHPExcel_Calculation_DateTime::_getDateValue($maturity) - PHPExcel_Calculation_DateTime::_getDateValue($settlement));
+ }
+
+ return (365 * $discount) / (360 - $discount * $daysBetweenSettlementAndMaturity);
+ } // function TBILLEQ()
+
+
+ /**
+ * TBILLPRICE
+ *
+ * Returns the yield for a Treasury bill.
+ *
+ * @param mixed settlement The Treasury bill's settlement date.
+ * The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
+ * @param mixed maturity The Treasury bill's maturity date.
+ * The maturity date is the date when the Treasury bill expires.
+ * @param int discount The Treasury bill's discount rate.
+ * @return float
+ */
+ public static function TBILLPRICE($settlement, $maturity, $discount) {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $discount = PHPExcel_Calculation_Functions::flattenSingleValue($discount);
+
+ if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ // Validate
+ if (is_numeric($discount)) {
+ if ($discount <= 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ ++$maturity;
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity) * 360;
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ // return date error
+ return $daysBetweenSettlementAndMaturity;
+ }
+ } else {
+ $daysBetweenSettlementAndMaturity = (PHPExcel_Calculation_DateTime::_getDateValue($maturity) - PHPExcel_Calculation_DateTime::_getDateValue($settlement));
+ }
+
+ if ($daysBetweenSettlementAndMaturity > 360) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ $price = 100 * (1 - (($discount * $daysBetweenSettlementAndMaturity) / 360));
+ if ($price <= 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return $price;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function TBILLPRICE()
+
+
+ /**
+ * TBILLYIELD
+ *
+ * Returns the yield for a Treasury bill.
+ *
+ * @param mixed settlement The Treasury bill's settlement date.
+ * The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
+ * @param mixed maturity The Treasury bill's maturity date.
+ * The maturity date is the date when the Treasury bill expires.
+ * @param int price The Treasury bill's price per $100 face value.
+ * @return float
+ */
+ public static function TBILLYIELD($settlement, $maturity, $price) {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $price = PHPExcel_Calculation_Functions::flattenSingleValue($price);
+
+ // Validate
+ if (is_numeric($price)) {
+ if ($price <= 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ ++$maturity;
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity) * 360;
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ // return date error
+ return $daysBetweenSettlementAndMaturity;
+ }
+ } else {
+ $daysBetweenSettlementAndMaturity = (PHPExcel_Calculation_DateTime::_getDateValue($maturity) - PHPExcel_Calculation_DateTime::_getDateValue($settlement));
+ }
+
+ if ($daysBetweenSettlementAndMaturity > 360) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ return ((100 - $price) / $price) * (360 / $daysBetweenSettlementAndMaturity);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function TBILLYIELD()
+
+
+ public static function XIRR($values, $dates, $guess = 0.1) {
+ if ((!is_array($values)) && (!is_array($dates))) return PHPExcel_Calculation_Functions::VALUE();
+ $values = PHPExcel_Calculation_Functions::flattenArray($values);
+ $dates = PHPExcel_Calculation_Functions::flattenArray($dates);
+ $guess = PHPExcel_Calculation_Functions::flattenSingleValue($guess);
+ if (count($values) != count($dates)) return PHPExcel_Calculation_Functions::NaN();
+
+ // create an initial range, with a root somewhere between 0 and guess
+ $x1 = 0.0;
+ $x2 = $guess;
+ $f1 = self::XNPV($x1, $values, $dates);
+ $f2 = self::XNPV($x2, $values, $dates);
+ for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) {
+ if (($f1 * $f2) < 0.0) break;
+ if (abs($f1) < abs($f2)) {
+ $f1 = self::XNPV($x1 += 1.6 * ($x1 - $x2), $values, $dates);
+ } else {
+ $f2 = self::XNPV($x2 += 1.6 * ($x2 - $x1), $values, $dates);
+ }
+ }
+ if (($f1 * $f2) > 0.0) return PHPExcel_Calculation_Functions::VALUE();
+
+ $f = self::XNPV($x1, $values, $dates);
+ if ($f < 0.0) {
+ $rtb = $x1;
+ $dx = $x2 - $x1;
+ } else {
+ $rtb = $x2;
+ $dx = $x1 - $x2;
+ }
+
+ for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) {
+ $dx *= 0.5;
+ $x_mid = $rtb + $dx;
+ $f_mid = self::XNPV($x_mid, $values, $dates);
+ if ($f_mid <= 0.0) $rtb = $x_mid;
+ if ((abs($f_mid) < FINANCIAL_PRECISION) || (abs($dx) < FINANCIAL_PRECISION)) return $x_mid;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * XNPV
+ *
+ * Returns the net present value for a schedule of cash flows that is not necessarily periodic.
+ * To calculate the net present value for a series of cash flows that is periodic, use the NPV function.
+ *
+ * Excel Function:
+ * =XNPV(rate,values,dates)
+ *
+ * @param float $rate The discount rate to apply to the cash flows.
+ * @param array of float $values A series of cash flows that corresponds to a schedule of payments in dates. The first payment is optional and corresponds to a cost or payment that occurs at the beginning of the investment. If the first value is a cost or payment, it must be a negative value. All succeeding payments are discounted based on a 365-day year. The series of values must contain at least one positive value and one negative value.
+ * @param array of mixed $dates A schedule of payment dates that corresponds to the cash flow payments. The first payment date indicates the beginning of the schedule of payments. All other dates must be later than this date, but they may occur in any order.
+ * @return float
+ */
+ public static function XNPV($rate, $values, $dates) {
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ if (!is_numeric($rate)) return PHPExcel_Calculation_Functions::VALUE();
+ if ((!is_array($values)) || (!is_array($dates))) return PHPExcel_Calculation_Functions::VALUE();
+ $values = PHPExcel_Calculation_Functions::flattenArray($values);
+ $dates = PHPExcel_Calculation_Functions::flattenArray($dates);
+ $valCount = count($values);
+ if ($valCount != count($dates)) return PHPExcel_Calculation_Functions::NaN();
+ if ((min($values) > 0) || (max($values) < 0)) return PHPExcel_Calculation_Functions::VALUE();
+
+ $xnpv = 0.0;
+ for ($i = 0; $i < $valCount; ++$i) {
+ if (!is_numeric($values[$i])) return PHPExcel_Calculation_Functions::VALUE();
+ $xnpv += $values[$i] / pow(1 + $rate, PHPExcel_Calculation_DateTime::DATEDIF($dates[0],$dates[$i],'d') / 365);
+ }
+ return (is_finite($xnpv)) ? $xnpv : PHPExcel_Calculation_Functions::VALUE();
+ } // function XNPV()
+
+
+ /**
+ * YIELDDISC
+ *
+ * Returns the annual yield of a security that pays interest at maturity.
+ *
+ * @param mixed settlement The security's settlement date.
+ * The security's settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param int price The security's price per $100 face value.
+ * @param int redemption The security's redemption value per $100 face value.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function YIELDDISC($settlement, $maturity, $price, $redemption, $basis=0) {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $price = PHPExcel_Calculation_Functions::flattenSingleValue($price);
+ $redemption = PHPExcel_Calculation_Functions::flattenSingleValue($redemption);
+ $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // Validate
+ if (is_numeric($price) && is_numeric($redemption)) {
+ if (($price <= 0) || ($redemption <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $daysPerYear = self::_daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement),$basis);
+ if (!is_numeric($daysPerYear)) {
+ return $daysPerYear;
+ }
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity,$basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ // return date error
+ return $daysBetweenSettlementAndMaturity;
+ }
+ $daysBetweenSettlementAndMaturity *= $daysPerYear;
+
+ return (($redemption - $price) / $price) * ($daysPerYear / $daysBetweenSettlementAndMaturity);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function YIELDDISC()
+
+
+ /**
+ * YIELDMAT
+ *
+ * Returns the annual yield of a security that pays interest at maturity.
+ *
+ * @param mixed settlement The security's settlement date.
+ * The security's settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param mixed issue The security's issue date.
+ * @param int rate The security's interest rate at date of issue.
+ * @param int price The security's price per $100 face value.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function YIELDMAT($settlement, $maturity, $issue, $rate, $price, $basis=0) {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue);
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $price = PHPExcel_Calculation_Functions::flattenSingleValue($price);
+ $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // Validate
+ if (is_numeric($rate) && is_numeric($price)) {
+ if (($rate <= 0) || ($price <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $daysPerYear = self::_daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement),$basis);
+ if (!is_numeric($daysPerYear)) {
+ return $daysPerYear;
+ }
+ $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis);
+ if (!is_numeric($daysBetweenIssueAndSettlement)) {
+ // return date error
+ return $daysBetweenIssueAndSettlement;
+ }
+ $daysBetweenIssueAndSettlement *= $daysPerYear;
+ $daysBetweenIssueAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $maturity, $basis);
+ if (!is_numeric($daysBetweenIssueAndMaturity)) {
+ // return date error
+ return $daysBetweenIssueAndMaturity;
+ }
+ $daysBetweenIssueAndMaturity *= $daysPerYear;
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ // return date error
+ return $daysBetweenSettlementAndMaturity;
+ }
+ $daysBetweenSettlementAndMaturity *= $daysPerYear;
+
+ return ((1 + (($daysBetweenIssueAndMaturity / $daysPerYear) * $rate) - (($price / 100) + (($daysBetweenIssueAndSettlement / $daysPerYear) * $rate))) /
+ (($price / 100) + (($daysBetweenIssueAndSettlement / $daysPerYear) * $rate))) *
+ ($daysPerYear / $daysBetweenSettlementAndMaturity);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function YIELDMAT()
+
+} // class PHPExcel_Calculation_Financial
diff --git a/framework/library/phpexcel/PHPExcel/Calculation/FormulaParser.php b/framework/library/phpexcel/PHPExcel/Calculation/FormulaParser.php
new file mode 100644
index 0000000..821b085
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/Calculation/FormulaParser.php
@@ -0,0 +1,614 @@
+<";
+ const OPERATORS_POSTFIX = "%";
+
+ /**
+ * Formula
+ *
+ * @var string
+ */
+ private $_formula;
+
+ /**
+ * Tokens
+ *
+ * @var PHPExcel_Calculation_FormulaToken[]
+ */
+ private $_tokens = array();
+
+ /**
+ * Create a new PHPExcel_Calculation_FormulaParser
+ *
+ * @param string $pFormula Formula to parse
+ * @throws PHPExcel_Calculation_Exception
+ */
+ public function __construct($pFormula = '')
+ {
+ // Check parameters
+ if (is_null($pFormula)) {
+ throw new PHPExcel_Calculation_Exception("Invalid parameter passed: formula");
+ }
+
+ // Initialise values
+ $this->_formula = trim($pFormula);
+ // Parse!
+ $this->_parseToTokens();
+ }
+
+ /**
+ * Get Formula
+ *
+ * @return string
+ */
+ public function getFormula() {
+ return $this->_formula;
+ }
+
+ /**
+ * Get Token
+ *
+ * @param int $pId Token id
+ * @return string
+ * @throws PHPExcel_Calculation_Exception
+ */
+ public function getToken($pId = 0) {
+ if (isset($this->_tokens[$pId])) {
+ return $this->_tokens[$pId];
+ } else {
+ throw new PHPExcel_Calculation_Exception("Token with id $pId does not exist.");
+ }
+ }
+
+ /**
+ * Get Token count
+ *
+ * @return string
+ */
+ public function getTokenCount() {
+ return count($this->_tokens);
+ }
+
+ /**
+ * Get Tokens
+ *
+ * @return PHPExcel_Calculation_FormulaToken[]
+ */
+ public function getTokens() {
+ return $this->_tokens;
+ }
+
+ /**
+ * Parse to tokens
+ */
+ private function _parseToTokens() {
+ // No attempt is made to verify formulas; assumes formulas are derived from Excel, where
+ // they can only exist if valid; stack overflows/underflows sunk as nulls without exceptions.
+
+ // Check if the formula has a valid starting =
+ $formulaLength = strlen($this->_formula);
+ if ($formulaLength < 2 || $this->_formula{0} != '=') return;
+
+ // Helper variables
+ $tokens1 = $tokens2 = $stack = array();
+ $inString = $inPath = $inRange = $inError = false;
+ $token = $previousToken = $nextToken = null;
+
+ $index = 1;
+ $value = '';
+
+ $ERRORS = array("#NULL!", "#DIV/0!", "#VALUE!", "#REF!", "#NAME?", "#NUM!", "#N/A");
+ $COMPARATORS_MULTI = array(">=", "<=", "<>");
+
+ while ($index < $formulaLength) {
+ // state-dependent character evaluation (order is important)
+
+ // double-quoted strings
+ // embeds are doubled
+ // end marks token
+ if ($inString) {
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE) {
+ if ((($index + 2) <= $formulaLength) && ($this->_formula{$index + 1} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE)) {
+ $value .= PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE;
+ ++$index;
+ } else {
+ $inString = false;
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_TEXT);
+ $value = "";
+ }
+ } else {
+ $value .= $this->_formula{$index};
+ }
+ ++$index;
+ continue;
+ }
+
+ // single-quoted strings (links)
+ // embeds are double
+ // end does not mark a token
+ if ($inPath) {
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE) {
+ if ((($index + 2) <= $formulaLength) && ($this->_formula{$index + 1} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE)) {
+ $value .= PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE;
+ ++$index;
+ } else {
+ $inPath = false;
+ }
+ } else {
+ $value .= $this->_formula{$index};
+ }
+ ++$index;
+ continue;
+ }
+
+ // bracked strings (R1C1 range index or linked workbook name)
+ // no embeds (changed to "()" by Excel)
+ // end does not mark a token
+ if ($inRange) {
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::BRACKET_CLOSE) {
+ $inRange = false;
+ }
+ $value .= $this->_formula{$index};
+ ++$index;
+ continue;
+ }
+
+ // error values
+ // end marks a token, determined from absolute list of values
+ if ($inError) {
+ $value .= $this->_formula{$index};
+ ++$index;
+ if (in_array($value, $ERRORS)) {
+ $inError = false;
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_ERROR);
+ $value = "";
+ }
+ continue;
+ }
+
+ // scientific notation check
+ if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_SN, $this->_formula{$index}) !== false) {
+ if (strlen($value) > 1) {
+ if (preg_match("/^[1-9]{1}(\.[0-9]+)?E{1}$/", $this->_formula{$index}) != 0) {
+ $value .= $this->_formula{$index};
+ ++$index;
+ continue;
+ }
+ }
+ }
+
+ // independent character evaluation (order not important)
+
+ // establish state-dependent character evaluations
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE) {
+ if (strlen($value > 0)) { // unexpected
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
+ $value = "";
+ }
+ $inString = true;
+ ++$index;
+ continue;
+ }
+
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE) {
+ if (strlen($value) > 0) { // unexpected
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
+ $value = "";
+ }
+ $inPath = true;
+ ++$index;
+ continue;
+ }
+
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::BRACKET_OPEN) {
+ $inRange = true;
+ $value .= PHPExcel_Calculation_FormulaParser::BRACKET_OPEN;
+ ++$index;
+ continue;
+ }
+
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::ERROR_START) {
+ if (strlen($value) > 0) { // unexpected
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
+ $value = "";
+ }
+ $inError = true;
+ $value .= PHPExcel_Calculation_FormulaParser::ERROR_START;
+ ++$index;
+ continue;
+ }
+
+ // mark start and end of arrays and array rows
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::BRACE_OPEN) {
+ if (strlen($value) > 0) { // unexpected
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
+ $value = "";
+ }
+
+ $tmp = new PHPExcel_Calculation_FormulaToken("ARRAY", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
+ $tokens1[] = $tmp;
+ $stack[] = clone $tmp;
+
+ $tmp = new PHPExcel_Calculation_FormulaToken("ARRAYROW", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
+ $tokens1[] = $tmp;
+ $stack[] = clone $tmp;
+
+ ++$index;
+ continue;
+ }
+
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::SEMICOLON) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+
+ $tmp = array_pop($stack);
+ $tmp->setValue("");
+ $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
+ $tokens1[] = $tmp;
+
+ $tmp = new PHPExcel_Calculation_FormulaToken(",", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_ARGUMENT);
+ $tokens1[] = $tmp;
+
+ $tmp = new PHPExcel_Calculation_FormulaToken("ARRAYROW", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
+ $tokens1[] = $tmp;
+ $stack[] = clone $tmp;
+
+ ++$index;
+ continue;
+ }
+
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::BRACE_CLOSE) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+
+ $tmp = array_pop($stack);
+ $tmp->setValue("");
+ $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
+ $tokens1[] = $tmp;
+
+ $tmp = array_pop($stack);
+ $tmp->setValue("");
+ $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
+ $tokens1[] = $tmp;
+
+ ++$index;
+ continue;
+ }
+
+ // trim white-space
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::WHITESPACE) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken("", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_WHITESPACE);
+ ++$index;
+ while (($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::WHITESPACE) && ($index < $formulaLength)) {
+ ++$index;
+ }
+ continue;
+ }
+
+ // multi-character comparators
+ if (($index + 2) <= $formulaLength) {
+ if (in_array(substr($this->_formula, $index, 2), $COMPARATORS_MULTI)) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken(substr($this->_formula, $index, 2), PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL);
+ $index += 2;
+ continue;
+ }
+ }
+
+ // standard infix operators
+ if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_INFIX, $this->_formula{$index}) !== false) {
+ if (strlen($value) > 0) {
+ $tokens1[] =new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($this->_formula{$index}, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX);
+ ++$index;
+ continue;
+ }
+
+ // standard postfix operators (only one)
+ if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_POSTFIX, $this->_formula{$index}) !== false) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($this->_formula{$index}, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX);
+ ++$index;
+ continue;
+ }
+
+ // start subexpression or function
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::PAREN_OPEN) {
+ if (strlen($value) > 0) {
+ $tmp = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
+ $tokens1[] = $tmp;
+ $stack[] = clone $tmp;
+ $value = "";
+ } else {
+ $tmp = new PHPExcel_Calculation_FormulaToken("", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
+ $tokens1[] = $tmp;
+ $stack[] = clone $tmp;
+ }
+ ++$index;
+ continue;
+ }
+
+ // function, subexpression, or array parameters, or operand unions
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::COMMA) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+
+ $tmp = array_pop($stack);
+ $tmp->setValue("");
+ $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
+ $stack[] = $tmp;
+
+ if ($tmp->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken(",", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_UNION);
+ } else {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken(",", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_ARGUMENT);
+ }
+ ++$index;
+ continue;
+ }
+
+ // stop subexpression
+ if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::PAREN_CLOSE) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+
+ $tmp = array_pop($stack);
+ $tmp->setValue("");
+ $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
+ $tokens1[] = $tmp;
+
+ ++$index;
+ continue;
+ }
+
+ // token accumulation
+ $value .= $this->_formula{$index};
+ ++$index;
+ }
+
+ // dump remaining accumulation
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ }
+
+ // move tokenList to new set, excluding unnecessary white-space tokens and converting necessary ones to intersections
+ $tokenCount = count($tokens1);
+ for ($i = 0; $i < $tokenCount; ++$i) {
+ $token = $tokens1[$i];
+ if (isset($tokens1[$i - 1])) {
+ $previousToken = $tokens1[$i - 1];
+ } else {
+ $previousToken = null;
+ }
+ if (isset($tokens1[$i + 1])) {
+ $nextToken = $tokens1[$i + 1];
+ } else {
+ $nextToken = null;
+ }
+
+ if (is_null($token)) {
+ continue;
+ }
+
+ if ($token->getTokenType() != PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_WHITESPACE) {
+ $tokens2[] = $token;
+ continue;
+ }
+
+ if (is_null($previousToken)) {
+ continue;
+ }
+
+ if (! (
+ (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
+ (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
+ ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND)
+ ) ) {
+ continue;
+ }
+
+ if (is_null($nextToken)) {
+ continue;
+ }
+
+ if (! (
+ (($nextToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($nextToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START)) ||
+ (($nextToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($nextToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START)) ||
+ ($nextToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND)
+ ) ) {
+ continue;
+ }
+
+ $tokens2[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_INTERSECTION);
+ }
+
+ // move tokens to final list, switching infix "-" operators to prefix when appropriate, switching infix "+" operators
+ // to noop when appropriate, identifying operand and infix-operator subtypes, and pulling "@" from function names
+ $this->_tokens = array();
+
+ $tokenCount = count($tokens2);
+ for ($i = 0; $i < $tokenCount; ++$i) {
+ $token = $tokens2[$i];
+ if (isset($tokens2[$i - 1])) {
+ $previousToken = $tokens2[$i - 1];
+ } else {
+ $previousToken = null;
+ }
+ if (isset($tokens2[$i + 1])) {
+ $nextToken = $tokens2[$i + 1];
+ } else {
+ $nextToken = null;
+ }
+
+ if (is_null($token)) {
+ continue;
+ }
+
+ if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX && $token->getValue() == "-") {
+ if ($i == 0) {
+ $token->setTokenType(PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPREFIX);
+ } else if (
+ (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
+ (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
+ ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX) ||
+ ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND)
+ ) {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH);
+ } else {
+ $token->setTokenType(PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPREFIX);
+ }
+
+ $this->_tokens[] = $token;
+ continue;
+ }
+
+ if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX && $token->getValue() == "+") {
+ if ($i == 0) {
+ continue;
+ } else if (
+ (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
+ (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
+ ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX) ||
+ ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND)
+ ) {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH);
+ } else {
+ continue;
+ }
+
+ $this->_tokens[] = $token;
+ continue;
+ }
+
+ if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX && $token->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING) {
+ if (strpos("<>=", substr($token->getValue(), 0, 1)) !== false) {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL);
+ } else if ($token->getValue() == "&") {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_CONCATENATION);
+ } else {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH);
+ }
+
+ $this->_tokens[] = $token;
+ continue;
+ }
+
+ if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND && $token->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING) {
+ if (!is_numeric($token->getValue())) {
+ if (strtoupper($token->getValue()) == "TRUE" || strtoupper($token->getValue() == "FALSE")) {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL);
+ } else {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_RANGE);
+ }
+ } else {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NUMBER);
+ }
+
+ $this->_tokens[] = $token;
+ continue;
+ }
+
+ if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) {
+ if (strlen($token->getValue() > 0)) {
+ if (substr($token->getValue(), 0, 1) == "@") {
+ $token->setValue(substr($token->getValue(), 1));
+ }
+ }
+ }
+
+ $this->_tokens[] = $token;
+ }
+ }
+}
diff --git a/framework/library/phpexcel/PHPExcel/Calculation/FormulaToken.php b/framework/library/phpexcel/PHPExcel/Calculation/FormulaToken.php
new file mode 100644
index 0000000..5559e67
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/Calculation/FormulaToken.php
@@ -0,0 +1,176 @@
+_value = $pValue;
+ $this->_tokenType = $pTokenType;
+ $this->_tokenSubType = $pTokenSubType;
+ }
+
+ /**
+ * Get Value
+ *
+ * @return string
+ */
+ public function getValue() {
+ return $this->_value;
+ }
+
+ /**
+ * Set Value
+ *
+ * @param string $value
+ */
+ public function setValue($value) {
+ $this->_value = $value;
+ }
+
+ /**
+ * Get Token Type (represented by TOKEN_TYPE_*)
+ *
+ * @return string
+ */
+ public function getTokenType() {
+ return $this->_tokenType;
+ }
+
+ /**
+ * Set Token Type
+ *
+ * @param string $value
+ */
+ public function setTokenType($value = PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN) {
+ $this->_tokenType = $value;
+ }
+
+ /**
+ * Get Token SubType (represented by TOKEN_SUBTYPE_*)
+ *
+ * @return string
+ */
+ public function getTokenSubType() {
+ return $this->_tokenSubType;
+ }
+
+ /**
+ * Set Token SubType
+ *
+ * @param string $value
+ */
+ public function setTokenSubType($value = PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING) {
+ $this->_tokenSubType = $value;
+ }
+}
diff --git a/framework/library/phpexcel/PHPExcel/Calculation/Function.php b/framework/library/phpexcel/PHPExcel/Calculation/Function.php
new file mode 100644
index 0000000..b1371e1
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/Calculation/Function.php
@@ -0,0 +1,149 @@
+_category = $pCategory;
+ $this->_excelName = $pExcelName;
+ $this->_phpExcelName = $pPHPExcelName;
+ } else {
+ throw new PHPExcel_Calculation_Exception("Invalid parameters passed.");
+ }
+ }
+
+ /**
+ * Get Category (represented by CATEGORY_*)
+ *
+ * @return string
+ */
+ public function getCategory() {
+ return $this->_category;
+ }
+
+ /**
+ * Set Category (represented by CATEGORY_*)
+ *
+ * @param string $value
+ * @throws PHPExcel_Calculation_Exception
+ */
+ public function setCategory($value = null) {
+ if (!is_null($value)) {
+ $this->_category = $value;
+ } else {
+ throw new PHPExcel_Calculation_Exception("Invalid parameter passed.");
+ }
+ }
+
+ /**
+ * Get Excel name
+ *
+ * @return string
+ */
+ public function getExcelName() {
+ return $this->_excelName;
+ }
+
+ /**
+ * Set Excel name
+ *
+ * @param string $value
+ */
+ public function setExcelName($value) {
+ $this->_excelName = $value;
+ }
+
+ /**
+ * Get PHPExcel name
+ *
+ * @return string
+ */
+ public function getPHPExcelName() {
+ return $this->_phpExcelName;
+ }
+
+ /**
+ * Set PHPExcel name
+ *
+ * @param string $value
+ */
+ public function setPHPExcelName($value) {
+ $this->_phpExcelName = $value;
+ }
+}
diff --git a/framework/library/phpexcel/PHPExcel/Calculation/Functions.php b/framework/library/phpexcel/PHPExcel/Calculation/Functions.php
new file mode 100644
index 0000000..371a893
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/Calculation/Functions.php
@@ -0,0 +1,814 @@
+ '#NULL!',
+ 'divisionbyzero' => '#DIV/0!',
+ 'value' => '#VALUE!',
+ 'reference' => '#REF!',
+ 'name' => '#NAME?',
+ 'num' => '#NUM!',
+ 'na' => '#N/A',
+ 'gettingdata' => '#GETTING_DATA'
+ );
+
+
+ /**
+ * Set the Compatibility Mode
+ *
+ * @access public
+ * @category Function Configuration
+ * @param string $compatibilityMode Compatibility Mode
+ * Permitted values are:
+ * PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL 'Excel'
+ * PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC 'Gnumeric'
+ * PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE 'OpenOfficeCalc'
+ * @return boolean (Success or Failure)
+ */
+ public static function setCompatibilityMode($compatibilityMode) {
+ if (($compatibilityMode == self::COMPATIBILITY_EXCEL) ||
+ ($compatibilityMode == self::COMPATIBILITY_GNUMERIC) ||
+ ($compatibilityMode == self::COMPATIBILITY_OPENOFFICE)) {
+ self::$compatibilityMode = $compatibilityMode;
+ return True;
+ }
+ return False;
+ } // function setCompatibilityMode()
+
+
+ /**
+ * Return the current Compatibility Mode
+ *
+ * @access public
+ * @category Function Configuration
+ * @return string Compatibility Mode
+ * Possible Return values are:
+ * PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL 'Excel'
+ * PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC 'Gnumeric'
+ * PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE 'OpenOfficeCalc'
+ */
+ public static function getCompatibilityMode() {
+ return self::$compatibilityMode;
+ } // function getCompatibilityMode()
+
+
+ /**
+ * Set the Return Date Format used by functions that return a date/time (Excel, PHP Serialized Numeric or PHP Object)
+ *
+ * @access public
+ * @category Function Configuration
+ * @param string $returnDateType Return Date Format
+ * Permitted values are:
+ * PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC 'P'
+ * PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT 'O'
+ * PHPExcel_Calculation_Functions::RETURNDATE_EXCEL 'E'
+ * @return boolean Success or failure
+ */
+ public static function setReturnDateType($returnDateType) {
+ if (($returnDateType == self::RETURNDATE_PHP_NUMERIC) ||
+ ($returnDateType == self::RETURNDATE_PHP_OBJECT) ||
+ ($returnDateType == self::RETURNDATE_EXCEL)) {
+ self::$ReturnDateType = $returnDateType;
+ return True;
+ }
+ return False;
+ } // function setReturnDateType()
+
+
+ /**
+ * Return the current Return Date Format for functions that return a date/time (Excel, PHP Serialized Numeric or PHP Object)
+ *
+ * @access public
+ * @category Function Configuration
+ * @return string Return Date Format
+ * Possible Return values are:
+ * PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC 'P'
+ * PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT 'O'
+ * PHPExcel_Calculation_Functions::RETURNDATE_EXCEL 'E'
+ */
+ public static function getReturnDateType() {
+ return self::$ReturnDateType;
+ } // function getReturnDateType()
+
+
+ /**
+ * DUMMY
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #Not Yet Implemented
+ */
+ public static function DUMMY() {
+ return '#Not Yet Implemented';
+ } // function DUMMY()
+
+
+ /**
+ * DIV0
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #Not Yet Implemented
+ */
+ public static function DIV0() {
+ return self::$_errorCodes['divisionbyzero'];
+ } // function DIV0()
+
+
+ /**
+ * NA
+ *
+ * Excel Function:
+ * =NA()
+ *
+ * Returns the error value #N/A
+ * #N/A is the error value that means "no value is available."
+ *
+ * @access public
+ * @category Logical Functions
+ * @return string #N/A!
+ */
+ public static function NA() {
+ return self::$_errorCodes['na'];
+ } // function NA()
+
+
+ /**
+ * NaN
+ *
+ * Returns the error value #NUM!
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #NUM!
+ */
+ public static function NaN() {
+ return self::$_errorCodes['num'];
+ } // function NaN()
+
+
+ /**
+ * NAME
+ *
+ * Returns the error value #NAME?
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #NAME?
+ */
+ public static function NAME() {
+ return self::$_errorCodes['name'];
+ } // function NAME()
+
+
+ /**
+ * REF
+ *
+ * Returns the error value #REF!
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #REF!
+ */
+ public static function REF() {
+ return self::$_errorCodes['reference'];
+ } // function REF()
+
+
+ /**
+ * NULL
+ *
+ * Returns the error value #NULL!
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #REF!
+ */
+ public static function NULL() {
+ return self::$_errorCodes['null'];
+ } // function NULL()
+
+
+ /**
+ * VALUE
+ *
+ * Returns the error value #VALUE!
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #VALUE!
+ */
+ public static function VALUE() {
+ return self::$_errorCodes['value'];
+ } // function VALUE()
+
+
+ public static function isMatrixValue($idx) {
+ return ((substr_count($idx,'.') <= 1) || (preg_match('/\.[A-Z]/',$idx) > 0));
+ }
+
+
+ public static function isValue($idx) {
+ return (substr_count($idx,'.') == 0);
+ }
+
+
+ public static function isCellValue($idx) {
+ return (substr_count($idx,'.') > 1);
+ }
+
+
+ public static function _ifCondition($condition) {
+ $condition = PHPExcel_Calculation_Functions::flattenSingleValue($condition);
+ if (!isset($condition{0}))
+ $condition = '=""';
+ if (!in_array($condition{0},array('>', '<', '='))) {
+ if (!is_numeric($condition)) { $condition = PHPExcel_Calculation::_wrapResult(strtoupper($condition)); }
+ return '='.$condition;
+ } else {
+ preg_match('/([<>=]+)(.*)/',$condition,$matches);
+ list(,$operator,$operand) = $matches;
+ if (!is_numeric($operand)) { $operand = PHPExcel_Calculation::_wrapResult(strtoupper($operand)); }
+ return $operator.$operand;
+ }
+ } // function _ifCondition()
+
+
+ /**
+ * ERROR_TYPE
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function ERROR_TYPE($value = '') {
+ $value = self::flattenSingleValue($value);
+
+ $i = 1;
+ foreach(self::$_errorCodes as $errorCode) {
+ if ($value === $errorCode) {
+ return $i;
+ }
+ ++$i;
+ }
+ return self::NA();
+ } // function ERROR_TYPE()
+
+
+ /**
+ * IS_BLANK
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_BLANK($value = NULL) {
+ if (!is_null($value)) {
+ $value = self::flattenSingleValue($value);
+ }
+
+ return is_null($value);
+ } // function IS_BLANK()
+
+
+ /**
+ * IS_ERR
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_ERR($value = '') {
+ $value = self::flattenSingleValue($value);
+
+ return self::IS_ERROR($value) && (!self::IS_NA($value));
+ } // function IS_ERR()
+
+
+ /**
+ * IS_ERROR
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_ERROR($value = '') {
+ $value = self::flattenSingleValue($value);
+
+ if (!is_string($value))
+ return false;
+ return in_array($value, array_values(self::$_errorCodes));
+ } // function IS_ERROR()
+
+
+ /**
+ * IS_NA
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_NA($value = '') {
+ $value = self::flattenSingleValue($value);
+
+ return ($value === self::NA());
+ } // function IS_NA()
+
+
+ /**
+ * IS_EVEN
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_EVEN($value = NULL) {
+ $value = self::flattenSingleValue($value);
+
+ if ($value === NULL)
+ return self::NAME();
+ if ((is_bool($value)) || ((is_string($value)) && (!is_numeric($value))))
+ return self::VALUE();
+ return ($value % 2 == 0);
+ } // function IS_EVEN()
+
+
+ /**
+ * IS_ODD
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_ODD($value = NULL) {
+ $value = self::flattenSingleValue($value);
+
+ if ($value === NULL)
+ return self::NAME();
+ if ((is_bool($value)) || ((is_string($value)) && (!is_numeric($value))))
+ return self::VALUE();
+ return (abs($value) % 2 == 1);
+ } // function IS_ODD()
+
+
+ /**
+ * IS_NUMBER
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_NUMBER($value = NULL) {
+ $value = self::flattenSingleValue($value);
+
+ if (is_string($value)) {
+ return False;
+ }
+ return is_numeric($value);
+ } // function IS_NUMBER()
+
+
+ /**
+ * IS_LOGICAL
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_LOGICAL($value = NULL) {
+ $value = self::flattenSingleValue($value);
+
+ return is_bool($value);
+ } // function IS_LOGICAL()
+
+
+ /**
+ * IS_TEXT
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_TEXT($value = NULL) {
+ $value = self::flattenSingleValue($value);
+
+ return (is_string($value) && !self::IS_ERROR($value));
+ } // function IS_TEXT()
+
+
+ /**
+ * IS_NONTEXT
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_NONTEXT($value = NULL) {
+ return !self::IS_TEXT($value);
+ } // function IS_NONTEXT()
+
+
+ /**
+ * VERSION
+ *
+ * @return string Version information
+ */
+ public static function VERSION() {
+ return 'PHPExcel 1.7.9, 2013-06-02';
+ } // function VERSION()
+
+
+ /**
+ * N
+ *
+ * Returns a value converted to a number
+ *
+ * @param value The value you want converted
+ * @return number N converts values listed in the following table
+ * If value is or refers to N returns
+ * A number That number
+ * A date The serial number of that date
+ * TRUE 1
+ * FALSE 0
+ * An error value The error value
+ * Anything else 0
+ */
+ public static function N($value = NULL) {
+ while (is_array($value)) {
+ $value = array_shift($value);
+ }
+
+ switch (gettype($value)) {
+ case 'double' :
+ case 'float' :
+ case 'integer' :
+ return $value;
+ break;
+ case 'boolean' :
+ return (integer) $value;
+ break;
+ case 'string' :
+ // Errors
+ if ((strlen($value) > 0) && ($value{0} == '#')) {
+ return $value;
+ }
+ break;
+ }
+ return 0;
+ } // function N()
+
+
+ /**
+ * TYPE
+ *
+ * Returns a number that identifies the type of a value
+ *
+ * @param value The value you want tested
+ * @return number N converts values listed in the following table
+ * If value is or refers to N returns
+ * A number 1
+ * Text 2
+ * Logical Value 4
+ * An error value 16
+ * Array or Matrix 64
+ */
+ public static function TYPE($value = NULL) {
+ $value = self::flattenArrayIndexed($value);
+ if (is_array($value) && (count($value) > 1)) {
+ $a = array_keys($value);
+ $a = array_pop($a);
+ // Range of cells is an error
+ if (self::isCellValue($a)) {
+ return 16;
+ // Test for Matrix
+ } elseif (self::isMatrixValue($a)) {
+ return 64;
+ }
+ } elseif(empty($value)) {
+ // Empty Cell
+ return 1;
+ }
+ $value = self::flattenSingleValue($value);
+
+ if (($value === NULL) || (is_float($value)) || (is_int($value))) {
+ return 1;
+ } elseif(is_bool($value)) {
+ return 4;
+ } elseif(is_array($value)) {
+ return 64;
+ } elseif(is_string($value)) {
+ // Errors
+ if ((strlen($value) > 0) && ($value{0} == '#')) {
+ return 16;
+ }
+ return 2;
+ }
+ return 0;
+ } // function TYPE()
+
+
+ /**
+ * Convert a multi-dimensional array to a simple 1-dimensional array
+ *
+ * @param array $array Array to be flattened
+ * @return array Flattened array
+ */
+ public static function flattenArray($array) {
+ if (!is_array($array)) {
+ return (array) $array;
+ }
+
+ $arrayValues = array();
+ foreach ($array as $value) {
+ if (is_array($value)) {
+ foreach ($value as $val) {
+ if (is_array($val)) {
+ foreach ($val as $v) {
+ $arrayValues[] = $v;
+ }
+ } else {
+ $arrayValues[] = $val;
+ }
+ }
+ } else {
+ $arrayValues[] = $value;
+ }
+ }
+
+ return $arrayValues;
+ } // function flattenArray()
+
+
+ /**
+ * Convert a multi-dimensional array to a simple 1-dimensional array, but retain an element of indexing
+ *
+ * @param array $array Array to be flattened
+ * @return array Flattened array
+ */
+ public static function flattenArrayIndexed($array) {
+ if (!is_array($array)) {
+ return (array) $array;
+ }
+
+ $arrayValues = array();
+ foreach ($array as $k1 => $value) {
+ if (is_array($value)) {
+ foreach ($value as $k2 => $val) {
+ if (is_array($val)) {
+ foreach ($val as $k3 => $v) {
+ $arrayValues[$k1.'.'.$k2.'.'.$k3] = $v;
+ }
+ } else {
+ $arrayValues[$k1.'.'.$k2] = $val;
+ }
+ }
+ } else {
+ $arrayValues[$k1] = $value;
+ }
+ }
+
+ return $arrayValues;
+ } // function flattenArrayIndexed()
+
+
+ /**
+ * Convert an array to a single scalar value by extracting the first element
+ *
+ * @param mixed $value Array or scalar value
+ * @return mixed
+ */
+ public static function flattenSingleValue($value = '') {
+ while (is_array($value)) {
+ $value = array_pop($value);
+ }
+
+ return $value;
+ } // function flattenSingleValue()
+
+} // class PHPExcel_Calculation_Functions
+
+
+//
+// There are a few mathematical functions that aren't available on all versions of PHP for all platforms
+// These functions aren't available in Windows implementations of PHP prior to version 5.3.0
+// So we test if they do exist for this version of PHP/operating platform; and if not we create them
+//
+if (!function_exists('acosh')) {
+ function acosh($x) {
+ return 2 * log(sqrt(($x + 1) / 2) + sqrt(($x - 1) / 2));
+ } // function acosh()
+}
+
+if (!function_exists('asinh')) {
+ function asinh($x) {
+ return log($x + sqrt(1 + $x * $x));
+ } // function asinh()
+}
+
+if (!function_exists('atanh')) {
+ function atanh($x) {
+ return (log(1 + $x) - log(1 - $x)) / 2;
+ } // function atanh()
+}
+
+if (!function_exists('money_format')) {
+ function money_format($format, $number) {
+ $regex = array( '/%((?:[\^!\-]|\+|\(|\=.)*)([0-9]+)?(?:#([0-9]+))?',
+ '(?:\.([0-9]+))?([in%])/'
+ );
+ $regex = implode('', $regex);
+ if (setlocale(LC_MONETARY, null) == '') {
+ setlocale(LC_MONETARY, '');
+ }
+ $locale = localeconv();
+ $number = floatval($number);
+ if (!preg_match($regex, $format, $fmatch)) {
+ trigger_error("No format specified or invalid format", E_USER_WARNING);
+ return $number;
+ }
+ $flags = array( 'fillchar' => preg_match('/\=(.)/', $fmatch[1], $match) ? $match[1] : ' ',
+ 'nogroup' => preg_match('/\^/', $fmatch[1]) > 0,
+ 'usesignal' => preg_match('/\+|\(/', $fmatch[1], $match) ? $match[0] : '+',
+ 'nosimbol' => preg_match('/\!/', $fmatch[1]) > 0,
+ 'isleft' => preg_match('/\-/', $fmatch[1]) > 0
+ );
+ $width = trim($fmatch[2]) ? (int)$fmatch[2] : 0;
+ $left = trim($fmatch[3]) ? (int)$fmatch[3] : 0;
+ $right = trim($fmatch[4]) ? (int)$fmatch[4] : $locale['int_frac_digits'];
+ $conversion = $fmatch[5];
+ $positive = true;
+ if ($number < 0) {
+ $positive = false;
+ $number *= -1;
+ }
+ $letter = $positive ? 'p' : 'n';
+ $prefix = $suffix = $cprefix = $csuffix = $signal = '';
+ if (!$positive) {
+ $signal = $locale['negative_sign'];
+ switch (true) {
+ case $locale['n_sign_posn'] == 0 || $flags['usesignal'] == '(':
+ $prefix = '(';
+ $suffix = ')';
+ break;
+ case $locale['n_sign_posn'] == 1:
+ $prefix = $signal;
+ break;
+ case $locale['n_sign_posn'] == 2:
+ $suffix = $signal;
+ break;
+ case $locale['n_sign_posn'] == 3:
+ $cprefix = $signal;
+ break;
+ case $locale['n_sign_posn'] == 4:
+ $csuffix = $signal;
+ break;
+ }
+ }
+ if (!$flags['nosimbol']) {
+ $currency = $cprefix;
+ $currency .= ($conversion == 'i' ? $locale['int_curr_symbol'] : $locale['currency_symbol']);
+ $currency .= $csuffix;
+ $currency = iconv('ISO-8859-1','UTF-8',$currency);
+ } else {
+ $currency = '';
+ }
+ $space = $locale["{$letter}_sep_by_space"] ? ' ' : '';
+
+ if (!isset($locale['mon_decimal_point']) || empty($locale['mon_decimal_point'])) {
+ $locale['mon_decimal_point'] = (!isset($locale['decimal_point']) || empty($locale['decimal_point'])) ?
+ $locale['decimal_point'] :
+ '.';
+ }
+
+ $number = number_format($number, $right, $locale['mon_decimal_point'], $flags['nogroup'] ? '' : $locale['mon_thousands_sep'] );
+ $number = explode($locale['mon_decimal_point'], $number);
+
+ $n = strlen($prefix) + strlen($currency);
+ if ($left > 0 && $left > $n) {
+ if ($flags['isleft']) {
+ $number[0] .= str_repeat($flags['fillchar'], $left - $n);
+ } else {
+ $number[0] = str_repeat($flags['fillchar'], $left - $n) . $number[0];
+ }
+ }
+ $number = implode($locale['mon_decimal_point'], $number);
+ if ($locale["{$letter}_cs_precedes"]) {
+ $number = $prefix . $currency . $space . $number . $suffix;
+ } else {
+ $number = $prefix . $number . $space . $currency . $suffix;
+ }
+ if ($width > 0) {
+ $number = str_pad($number, $width, $flags['fillchar'], $flags['isleft'] ? STR_PAD_RIGHT : STR_PAD_LEFT);
+ }
+ $format = str_replace($fmatch[0], $number, $format);
+ return $format;
+ } // function money_format()
+}
+
+
+//
+// Strangely, PHP doesn't have a mb_str_replace multibyte function
+// As we'll only ever use this function with UTF-8 characters, we can simply "hard-code" the character set
+//
+if ((!function_exists('mb_str_replace')) &&
+ (function_exists('mb_substr')) && (function_exists('mb_strlen')) && (function_exists('mb_strpos'))) {
+ function mb_str_replace($search, $replace, $subject) {
+ if(is_array($subject)) {
+ $ret = array();
+ foreach($subject as $key => $val) {
+ $ret[$key] = mb_str_replace($search, $replace, $val);
+ }
+ return $ret;
+ }
+
+ foreach((array) $search as $key => $s) {
+ if($s == '') {
+ continue;
+ }
+ $r = !is_array($replace) ? $replace : (array_key_exists($key, $replace) ? $replace[$key] : '');
+ $pos = mb_strpos($subject, $s, 0, 'UTF-8');
+ while($pos !== false) {
+ $subject = mb_substr($subject, 0, $pos, 'UTF-8') . $r . mb_substr($subject, $pos + mb_strlen($s, 'UTF-8'), 65535, 'UTF-8');
+ $pos = mb_strpos($subject, $s, $pos + mb_strlen($r, 'UTF-8'), 'UTF-8');
+ }
+ }
+ return $subject;
+ }
+}
diff --git a/framework/library/phpexcel/PHPExcel/Calculation/Logical.php b/framework/library/phpexcel/PHPExcel/Calculation/Logical.php
new file mode 100644
index 0000000..85bc61b
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/Calculation/Logical.php
@@ -0,0 +1,288 @@
+ $arg) {
+ // Is it a boolean value?
+ if (is_bool($arg)) {
+ $returnValue = $returnValue && $arg;
+ } elseif ((is_numeric($arg)) && (!is_string($arg))) {
+ $returnValue = $returnValue && ($arg != 0);
+ } elseif (is_string($arg)) {
+ $arg = strtoupper($arg);
+ if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {
+ $arg = TRUE;
+ } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {
+ $arg = FALSE;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $returnValue = $returnValue && ($arg != 0);
+ }
+ }
+
+ // Return
+ if ($argCount < 0) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ return $returnValue;
+ } // function LOGICAL_AND()
+
+
+ /**
+ * LOGICAL_OR
+ *
+ * Returns boolean TRUE if any argument is TRUE; returns FALSE if all arguments are FALSE.
+ *
+ * Excel Function:
+ * =OR(logical1[,logical2[, ...]])
+ *
+ * The arguments must evaluate to logical values such as TRUE or FALSE, or the arguments must be arrays
+ * or references that contain logical values.
+ *
+ * Boolean arguments are treated as True or False as appropriate
+ * Integer or floating point arguments are treated as True, except for 0 or 0.0 which are False
+ * If any argument value is a string, or a Null, the function returns a #VALUE! error, unless the string holds
+ * the value TRUE or FALSE, in which case it is evaluated as the corresponding boolean value
+ *
+ * @access public
+ * @category Logical Functions
+ * @param mixed $arg,... Data values
+ * @return boolean The logical OR of the arguments.
+ */
+ public static function LOGICAL_OR() {
+ // Return value
+ $returnValue = FALSE;
+
+ // Loop through the arguments
+ $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
+ $argCount = -1;
+ foreach ($aArgs as $argCount => $arg) {
+ // Is it a boolean value?
+ if (is_bool($arg)) {
+ $returnValue = $returnValue || $arg;
+ } elseif ((is_numeric($arg)) && (!is_string($arg))) {
+ $returnValue = $returnValue || ($arg != 0);
+ } elseif (is_string($arg)) {
+ $arg = strtoupper($arg);
+ if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {
+ $arg = TRUE;
+ } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {
+ $arg = FALSE;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $returnValue = $returnValue || ($arg != 0);
+ }
+ }
+
+ // Return
+ if ($argCount < 0) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ return $returnValue;
+ } // function LOGICAL_OR()
+
+
+ /**
+ * NOT
+ *
+ * Returns the boolean inverse of the argument.
+ *
+ * Excel Function:
+ * =NOT(logical)
+ *
+ * The argument must evaluate to a logical value such as TRUE or FALSE
+ *
+ * Boolean arguments are treated as True or False as appropriate
+ * Integer or floating point arguments are treated as True, except for 0 or 0.0 which are False
+ * If any argument value is a string, or a Null, the function returns a #VALUE! error, unless the string holds
+ * the value TRUE or FALSE, in which case it is evaluated as the corresponding boolean value
+ *
+ * @access public
+ * @category Logical Functions
+ * @param mixed $logical A value or expression that can be evaluated to TRUE or FALSE
+ * @return boolean The boolean inverse of the argument.
+ */
+ public static function NOT($logical=FALSE) {
+ $logical = PHPExcel_Calculation_Functions::flattenSingleValue($logical);
+ if (is_string($logical)) {
+ $logical = strtoupper($logical);
+ if (($logical == 'TRUE') || ($logical == PHPExcel_Calculation::getTRUE())) {
+ return FALSE;
+ } elseif (($logical == 'FALSE') || ($logical == PHPExcel_Calculation::getFALSE())) {
+ return TRUE;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+
+ return !$logical;
+ } // function NOT()
+
+ /**
+ * STATEMENT_IF
+ *
+ * Returns one value if a condition you specify evaluates to TRUE and another value if it evaluates to FALSE.
+ *
+ * Excel Function:
+ * =IF(condition[,returnIfTrue[,returnIfFalse]])
+ *
+ * Condition is any value or expression that can be evaluated to TRUE or FALSE.
+ * For example, A10=100 is a logical expression; if the value in cell A10 is equal to 100,
+ * the expression evaluates to TRUE. Otherwise, the expression evaluates to FALSE.
+ * This argument can use any comparison calculation operator.
+ * ReturnIfTrue is the value that is returned if condition evaluates to TRUE.
+ * For example, if this argument is the text string "Within budget" and the condition argument evaluates to TRUE,
+ * then the IF function returns the text "Within budget"
+ * If condition is TRUE and ReturnIfTrue is blank, this argument returns 0 (zero). To display the word TRUE, use
+ * the logical value TRUE for this argument.
+ * ReturnIfTrue can be another formula.
+ * ReturnIfFalse is the value that is returned if condition evaluates to FALSE.
+ * For example, if this argument is the text string "Over budget" and the condition argument evaluates to FALSE,
+ * then the IF function returns the text "Over budget".
+ * If condition is FALSE and ReturnIfFalse is omitted, then the logical value FALSE is returned.
+ * If condition is FALSE and ReturnIfFalse is blank, then the value 0 (zero) is returned.
+ * ReturnIfFalse can be another formula.
+ *
+ * @access public
+ * @category Logical Functions
+ * @param mixed $condition Condition to evaluate
+ * @param mixed $returnIfTrue Value to return when condition is true
+ * @param mixed $returnIfFalse Optional value to return when condition is false
+ * @return mixed The value of returnIfTrue or returnIfFalse determined by condition
+ */
+ public static function STATEMENT_IF($condition = TRUE, $returnIfTrue = 0, $returnIfFalse = FALSE) {
+ $condition = (is_null($condition)) ? TRUE : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($condition);
+ $returnIfTrue = (is_null($returnIfTrue)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue);
+ $returnIfFalse = (is_null($returnIfFalse)) ? FALSE : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfFalse);
+
+ return ($condition) ? $returnIfTrue : $returnIfFalse;
+ } // function STATEMENT_IF()
+
+
+ /**
+ * IFERROR
+ *
+ * Excel Function:
+ * =IFERROR(testValue,errorpart)
+ *
+ * @access public
+ * @category Logical Functions
+ * @param mixed $testValue Value to check, is also the value returned when no error
+ * @param mixed $errorpart Value to return when testValue is an error condition
+ * @return mixed The value of errorpart or testValue determined by error condition
+ */
+ public static function IFERROR($testValue = '', $errorpart = '') {
+ $testValue = (is_null($testValue)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($testValue);
+ $errorpart = (is_null($errorpart)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($errorpart);
+
+ return self::STATEMENT_IF(PHPExcel_Calculation_Functions::IS_ERROR($testValue), $errorpart, $testValue);
+ } // function IFERROR()
+
+} // class PHPExcel_Calculation_Logical
diff --git a/framework/library/phpexcel/PHPExcel/Calculation/LookupRef.php b/framework/library/phpexcel/PHPExcel/Calculation/LookupRef.php
new file mode 100644
index 0000000..f357ff8
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/Calculation/LookupRef.php
@@ -0,0 +1,812 @@
+ '') {
+ if (strpos($sheetText,' ') !== False) { $sheetText = "'".$sheetText."'"; }
+ $sheetText .='!';
+ }
+ if ((!is_bool($referenceStyle)) || $referenceStyle) {
+ $rowRelative = $columnRelative = '$';
+ $column = PHPExcel_Cell::stringFromColumnIndex($column-1);
+ if (($relativity == 2) || ($relativity == 4)) { $columnRelative = ''; }
+ if (($relativity == 3) || ($relativity == 4)) { $rowRelative = ''; }
+ return $sheetText.$columnRelative.$column.$rowRelative.$row;
+ } else {
+ if (($relativity == 2) || ($relativity == 4)) { $column = '['.$column.']'; }
+ if (($relativity == 3) || ($relativity == 4)) { $row = '['.$row.']'; }
+ return $sheetText.'R'.$row.'C'.$column;
+ }
+ } // function CELL_ADDRESS()
+
+
+ /**
+ * COLUMN
+ *
+ * Returns the column number of the given cell reference
+ * If the cell reference is a range of cells, COLUMN returns the column numbers of each column in the reference as a horizontal array.
+ * If cell reference is omitted, and the function is being called through the calculation engine, then it is assumed to be the
+ * reference of the cell in which the COLUMN function appears; otherwise this function returns 0.
+ *
+ * Excel Function:
+ * =COLUMN([cellAddress])
+ *
+ * @param cellAddress A reference to a range of cells for which you want the column numbers
+ * @return integer or array of integer
+ */
+ public static function COLUMN($cellAddress=Null) {
+ if (is_null($cellAddress) || trim($cellAddress) === '') { return 0; }
+
+ if (is_array($cellAddress)) {
+ foreach($cellAddress as $columnKey => $value) {
+ $columnKey = preg_replace('/[^a-z]/i','',$columnKey);
+ return (integer) PHPExcel_Cell::columnIndexFromString($columnKey);
+ }
+ } else {
+ if (strpos($cellAddress,'!') !== false) {
+ list($sheet,$cellAddress) = explode('!',$cellAddress);
+ }
+ if (strpos($cellAddress,':') !== false) {
+ list($startAddress,$endAddress) = explode(':',$cellAddress);
+ $startAddress = preg_replace('/[^a-z]/i','',$startAddress);
+ $endAddress = preg_replace('/[^a-z]/i','',$endAddress);
+ $returnValue = array();
+ do {
+ $returnValue[] = (integer) PHPExcel_Cell::columnIndexFromString($startAddress);
+ } while ($startAddress++ != $endAddress);
+ return $returnValue;
+ } else {
+ $cellAddress = preg_replace('/[^a-z]/i','',$cellAddress);
+ return (integer) PHPExcel_Cell::columnIndexFromString($cellAddress);
+ }
+ }
+ } // function COLUMN()
+
+
+ /**
+ * COLUMNS
+ *
+ * Returns the number of columns in an array or reference.
+ *
+ * Excel Function:
+ * =COLUMNS(cellAddress)
+ *
+ * @param cellAddress An array or array formula, or a reference to a range of cells for which you want the number of columns
+ * @return integer The number of columns in cellAddress
+ */
+ public static function COLUMNS($cellAddress=Null) {
+ if (is_null($cellAddress) || $cellAddress === '') {
+ return 1;
+ } elseif (!is_array($cellAddress)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ $x = array_keys($cellAddress);
+ $x = array_shift($x);
+ $isMatrix = (is_numeric($x));
+ list($columns,$rows) = PHPExcel_Calculation::_getMatrixDimensions($cellAddress);
+
+ if ($isMatrix) {
+ return $rows;
+ } else {
+ return $columns;
+ }
+ } // function COLUMNS()
+
+
+ /**
+ * ROW
+ *
+ * Returns the row number of the given cell reference
+ * If the cell reference is a range of cells, ROW returns the row numbers of each row in the reference as a vertical array.
+ * If cell reference is omitted, and the function is being called through the calculation engine, then it is assumed to be the
+ * reference of the cell in which the ROW function appears; otherwise this function returns 0.
+ *
+ * Excel Function:
+ * =ROW([cellAddress])
+ *
+ * @param cellAddress A reference to a range of cells for which you want the row numbers
+ * @return integer or array of integer
+ */
+ public static function ROW($cellAddress=Null) {
+ if (is_null($cellAddress) || trim($cellAddress) === '') { return 0; }
+
+ if (is_array($cellAddress)) {
+ foreach($cellAddress as $columnKey => $rowValue) {
+ foreach($rowValue as $rowKey => $cellValue) {
+ return (integer) preg_replace('/[^0-9]/i','',$rowKey);
+ }
+ }
+ } else {
+ if (strpos($cellAddress,'!') !== false) {
+ list($sheet,$cellAddress) = explode('!',$cellAddress);
+ }
+ if (strpos($cellAddress,':') !== false) {
+ list($startAddress,$endAddress) = explode(':',$cellAddress);
+ $startAddress = preg_replace('/[^0-9]/','',$startAddress);
+ $endAddress = preg_replace('/[^0-9]/','',$endAddress);
+ $returnValue = array();
+ do {
+ $returnValue[][] = (integer) $startAddress;
+ } while ($startAddress++ != $endAddress);
+ return $returnValue;
+ } else {
+ list($cellAddress) = explode(':',$cellAddress);
+ return (integer) preg_replace('/[^0-9]/','',$cellAddress);
+ }
+ }
+ } // function ROW()
+
+
+ /**
+ * ROWS
+ *
+ * Returns the number of rows in an array or reference.
+ *
+ * Excel Function:
+ * =ROWS(cellAddress)
+ *
+ * @param cellAddress An array or array formula, or a reference to a range of cells for which you want the number of rows
+ * @return integer The number of rows in cellAddress
+ */
+ public static function ROWS($cellAddress=Null) {
+ if (is_null($cellAddress) || $cellAddress === '') {
+ return 1;
+ } elseif (!is_array($cellAddress)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ $i = array_keys($cellAddress);
+ $isMatrix = (is_numeric(array_shift($i)));
+ list($columns,$rows) = PHPExcel_Calculation::_getMatrixDimensions($cellAddress);
+
+ if ($isMatrix) {
+ return $columns;
+ } else {
+ return $rows;
+ }
+ } // function ROWS()
+
+
+ /**
+ * HYPERLINK
+ *
+ * Excel Function:
+ * =HYPERLINK(linkURL,displayName)
+ *
+ * @access public
+ * @category Logical Functions
+ * @param string $linkURL Value to check, is also the value returned when no error
+ * @param string $displayName Value to return when testValue is an error condition
+ * @param PHPExcel_Cell $pCell The cell to set the hyperlink in
+ * @return mixed The value of $displayName (or $linkURL if $displayName was blank)
+ */
+ public static function HYPERLINK($linkURL = '', $displayName = null, PHPExcel_Cell $pCell = null) {
+ $args = func_get_args();
+ $pCell = array_pop($args);
+
+ $linkURL = (is_null($linkURL)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($linkURL);
+ $displayName = (is_null($displayName)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($displayName);
+
+ if ((!is_object($pCell)) || (trim($linkURL) == '')) {
+ return PHPExcel_Calculation_Functions::REF();
+ }
+
+ if ((is_object($displayName)) || trim($displayName) == '') {
+ $displayName = $linkURL;
+ }
+
+ $pCell->getHyperlink()->setUrl($linkURL);
+
+ return $displayName;
+ } // function HYPERLINK()
+
+
+ /**
+ * INDIRECT
+ *
+ * Returns the reference specified by a text string.
+ * References are immediately evaluated to display their contents.
+ *
+ * Excel Function:
+ * =INDIRECT(cellAddress)
+ *
+ * NOTE - INDIRECT() does not yet support the optional a1 parameter introduced in Excel 2010
+ *
+ * @param cellAddress $cellAddress The cell address of the current cell (containing this formula)
+ * @param PHPExcel_Cell $pCell The current cell (containing this formula)
+ * @return mixed The cells referenced by cellAddress
+ *
+ * @todo Support for the optional a1 parameter introduced in Excel 2010
+ *
+ */
+ public static function INDIRECT($cellAddress = NULL, PHPExcel_Cell $pCell = NULL) {
+ $cellAddress = PHPExcel_Calculation_Functions::flattenSingleValue($cellAddress);
+ if (is_null($cellAddress) || $cellAddress === '') {
+ return PHPExcel_Calculation_Functions::REF();
+ }
+
+ $cellAddress1 = $cellAddress;
+ $cellAddress2 = NULL;
+ if (strpos($cellAddress,':') !== false) {
+ list($cellAddress1,$cellAddress2) = explode(':',$cellAddress);
+ }
+
+ if ((!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $cellAddress1, $matches)) ||
+ ((!is_null($cellAddress2)) && (!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $cellAddress2, $matches)))) {
+ if (!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_NAMEDRANGE.'$/i', $cellAddress1, $matches)) {
+ return PHPExcel_Calculation_Functions::REF();
+ }
+
+ if (strpos($cellAddress,'!') !== FALSE) {
+ list($sheetName, $cellAddress) = explode('!',$cellAddress);
+ $sheetName = trim($sheetName, "'");
+ $pSheet = $pCell->getParent()->getParent()->getSheetByName($sheetName);
+ } else {
+ $pSheet = $pCell->getParent();
+ }
+
+ return PHPExcel_Calculation::getInstance()->extractNamedRange($cellAddress, $pSheet, FALSE);
+ }
+
+ if (strpos($cellAddress,'!') !== FALSE) {
+ list($sheetName,$cellAddress) = explode('!',$cellAddress);
+ $sheetName = trim($sheetName, "'");
+ $pSheet = $pCell->getParent()->getParent()->getSheetByName($sheetName);
+ } else {
+ $pSheet = $pCell->getParent();
+ }
+
+ return PHPExcel_Calculation::getInstance()->extractCellRange($cellAddress, $pSheet, FALSE);
+ } // function INDIRECT()
+
+
+ /**
+ * OFFSET
+ *
+ * Returns a reference to a range that is a specified number of rows and columns from a cell or range of cells.
+ * The reference that is returned can be a single cell or a range of cells. You can specify the number of rows and
+ * the number of columns to be returned.
+ *
+ * Excel Function:
+ * =OFFSET(cellAddress, rows, cols, [height], [width])
+ *
+ * @param cellAddress The reference from which you want to base the offset. Reference must refer to a cell or
+ * range of adjacent cells; otherwise, OFFSET returns the #VALUE! error value.
+ * @param rows The number of rows, up or down, that you want the upper-left cell to refer to.
+ * Using 5 as the rows argument specifies that the upper-left cell in the reference is
+ * five rows below reference. Rows can be positive (which means below the starting reference)
+ * or negative (which means above the starting reference).
+ * @param cols The number of columns, to the left or right, that you want the upper-left cell of the result
+ * to refer to. Using 5 as the cols argument specifies that the upper-left cell in the
+ * reference is five columns to the right of reference. Cols can be positive (which means
+ * to the right of the starting reference) or negative (which means to the left of the
+ * starting reference).
+ * @param height The height, in number of rows, that you want the returned reference to be. Height must be a positive number.
+ * @param width The width, in number of columns, that you want the returned reference to be. Width must be a positive number.
+ * @return string A reference to a cell or range of cells
+ */
+ public static function OFFSET($cellAddress=Null,$rows=0,$columns=0,$height=null,$width=null) {
+ $rows = PHPExcel_Calculation_Functions::flattenSingleValue($rows);
+ $columns = PHPExcel_Calculation_Functions::flattenSingleValue($columns);
+ $height = PHPExcel_Calculation_Functions::flattenSingleValue($height);
+ $width = PHPExcel_Calculation_Functions::flattenSingleValue($width);
+ if ($cellAddress == Null) {
+ return 0;
+ }
+
+ $args = func_get_args();
+ $pCell = array_pop($args);
+ if (!is_object($pCell)) {
+ return PHPExcel_Calculation_Functions::REF();
+ }
+
+ $sheetName = NULL;
+ if (strpos($cellAddress,"!")) {
+ list($sheetName,$cellAddress) = explode("!",$cellAddress);
+ $sheetName = trim($sheetName, "'");
+ }
+ if (strpos($cellAddress,":")) {
+ list($startCell,$endCell) = explode(":",$cellAddress);
+ } else {
+ $startCell = $endCell = $cellAddress;
+ }
+ list($startCellColumn,$startCellRow) = PHPExcel_Cell::coordinateFromString($startCell);
+ list($endCellColumn,$endCellRow) = PHPExcel_Cell::coordinateFromString($endCell);
+
+ $startCellRow += $rows;
+ $startCellColumn = PHPExcel_Cell::columnIndexFromString($startCellColumn) - 1;
+ $startCellColumn += $columns;
+
+ if (($startCellRow <= 0) || ($startCellColumn < 0)) {
+ return PHPExcel_Calculation_Functions::REF();
+ }
+ $endCellColumn = PHPExcel_Cell::columnIndexFromString($endCellColumn) - 1;
+ if (($width != null) && (!is_object($width))) {
+ $endCellColumn = $startCellColumn + $width - 1;
+ } else {
+ $endCellColumn += $columns;
+ }
+ $startCellColumn = PHPExcel_Cell::stringFromColumnIndex($startCellColumn);
+
+ if (($height != null) && (!is_object($height))) {
+ $endCellRow = $startCellRow + $height - 1;
+ } else {
+ $endCellRow += $rows;
+ }
+
+ if (($endCellRow <= 0) || ($endCellColumn < 0)) {
+ return PHPExcel_Calculation_Functions::REF();
+ }
+ $endCellColumn = PHPExcel_Cell::stringFromColumnIndex($endCellColumn);
+
+ $cellAddress = $startCellColumn.$startCellRow;
+ if (($startCellColumn != $endCellColumn) || ($startCellRow != $endCellRow)) {
+ $cellAddress .= ':'.$endCellColumn.$endCellRow;
+ }
+
+ if ($sheetName !== NULL) {
+ $pSheet = $pCell->getParent()->getParent()->getSheetByName($sheetName);
+ } else {
+ $pSheet = $pCell->getParent();
+ }
+
+ return PHPExcel_Calculation::getInstance()->extractCellRange($cellAddress, $pSheet, False);
+ } // function OFFSET()
+
+
+ /**
+ * CHOOSE
+ *
+ * Uses lookup_value to return a value from the list of value arguments.
+ * Use CHOOSE to select one of up to 254 values based on the lookup_value.
+ *
+ * Excel Function:
+ * =CHOOSE(index_num, value1, [value2], ...)
+ *
+ * @param index_num Specifies which value argument is selected.
+ * Index_num must be a number between 1 and 254, or a formula or reference to a cell containing a number
+ * between 1 and 254.
+ * @param value1... Value1 is required, subsequent values are optional.
+ * Between 1 to 254 value arguments from which CHOOSE selects a value or an action to perform based on
+ * index_num. The arguments can be numbers, cell references, defined names, formulas, functions, or
+ * text.
+ * @return mixed The selected value
+ */
+ public static function CHOOSE() {
+ $chooseArgs = func_get_args();
+ $chosenEntry = PHPExcel_Calculation_Functions::flattenArray(array_shift($chooseArgs));
+ $entryCount = count($chooseArgs) - 1;
+
+ if(is_array($chosenEntry)) {
+ $chosenEntry = array_shift($chosenEntry);
+ }
+ if ((is_numeric($chosenEntry)) && (!is_bool($chosenEntry))) {
+ --$chosenEntry;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $chosenEntry = floor($chosenEntry);
+ if (($chosenEntry <= 0) || ($chosenEntry > $entryCount)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (is_array($chooseArgs[$chosenEntry])) {
+ return PHPExcel_Calculation_Functions::flattenArray($chooseArgs[$chosenEntry]);
+ } else {
+ return $chooseArgs[$chosenEntry];
+ }
+ } // function CHOOSE()
+
+
+ /**
+ * MATCH
+ *
+ * The MATCH function searches for a specified item in a range of cells
+ *
+ * Excel Function:
+ * =MATCH(lookup_value, lookup_array, [match_type])
+ *
+ * @param lookup_value The value that you want to match in lookup_array
+ * @param lookup_array The range of cells being searched
+ * @param match_type The number -1, 0, or 1. -1 means above, 0 means exact match, 1 means below. If match_type is 1 or -1, the list has to be ordered.
+ * @return integer The relative position of the found item
+ */
+ public static function MATCH($lookup_value, $lookup_array, $match_type=1) {
+ $lookup_array = PHPExcel_Calculation_Functions::flattenArray($lookup_array);
+ $lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value);
+ $match_type = (is_null($match_type)) ? 1 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($match_type);
+ // MATCH is not case sensitive
+ $lookup_value = strtolower($lookup_value);
+
+ // lookup_value type has to be number, text, or logical values
+ if ((!is_numeric($lookup_value)) && (!is_string($lookup_value)) && (!is_bool($lookup_value))) {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+
+ // match_type is 0, 1 or -1
+ if (($match_type !== 0) && ($match_type !== -1) && ($match_type !== 1)) {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+
+ // lookup_array should not be empty
+ $lookupArraySize = count($lookup_array);
+ if ($lookupArraySize <= 0) {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+
+ // lookup_array should contain only number, text, or logical values, or empty (null) cells
+ foreach($lookup_array as $i => $lookupArrayValue) {
+ // check the type of the value
+ if ((!is_numeric($lookupArrayValue)) && (!is_string($lookupArrayValue)) &&
+ (!is_bool($lookupArrayValue)) && (!is_null($lookupArrayValue))) {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+ // convert strings to lowercase for case-insensitive testing
+ if (is_string($lookupArrayValue)) {
+ $lookup_array[$i] = strtolower($lookupArrayValue);
+ }
+ if ((is_null($lookupArrayValue)) && (($match_type == 1) || ($match_type == -1))) {
+ $lookup_array = array_slice($lookup_array,0,$i-1);
+ }
+ }
+
+ // if match_type is 1 or -1, the list has to be ordered
+ if ($match_type == 1) {
+ asort($lookup_array);
+ $keySet = array_keys($lookup_array);
+ } elseif($match_type == -1) {
+ arsort($lookup_array);
+ $keySet = array_keys($lookup_array);
+ }
+
+ // **
+ // find the match
+ // **
+ // loop on the cells
+// var_dump($lookup_array);
+// echo '
';
+ foreach($lookup_array as $i => $lookupArrayValue) {
+ if (($match_type == 0) && ($lookupArrayValue == $lookup_value)) {
+ // exact match
+ return ++$i;
+ } elseif (($match_type == -1) && ($lookupArrayValue <= $lookup_value)) {
+// echo '$i = '.$i.' => ';
+// var_dump($lookupArrayValue);
+// echo '
';
+// echo 'Keyset = ';
+// var_dump($keySet);
+// echo '
';
+ $i = array_search($i,$keySet);
+// echo '$i='.$i.'
';
+ // if match_type is -1 <=> find the smallest value that is greater than or equal to lookup_value
+ if ($i < 1){
+ // 1st cell was allready smaller than the lookup_value
+ break;
+ } else {
+ // the previous cell was the match
+ return $keySet[$i-1]+1;
+ }
+ } elseif (($match_type == 1) && ($lookupArrayValue >= $lookup_value)) {
+// echo '$i = '.$i.' => ';
+// var_dump($lookupArrayValue);
+// echo '
';
+// echo 'Keyset = ';
+// var_dump($keySet);
+// echo '
';
+ $i = array_search($i,$keySet);
+// echo '$i='.$i.'
';
+ // if match_type is 1 <=> find the largest value that is less than or equal to lookup_value
+ if ($i < 1){
+ // 1st cell was allready bigger than the lookup_value
+ break;
+ } else {
+ // the previous cell was the match
+ return $keySet[$i-1]+1;
+ }
+ }
+ }
+
+ // unsuccessful in finding a match, return #N/A error value
+ return PHPExcel_Calculation_Functions::NA();
+ } // function MATCH()
+
+
+ /**
+ * INDEX
+ *
+ * Uses an index to choose a value from a reference or array
+ *
+ * Excel Function:
+ * =INDEX(range_array, row_num, [column_num])
+ *
+ * @param range_array A range of cells or an array constant
+ * @param row_num The row in array from which to return a value. If row_num is omitted, column_num is required.
+ * @param column_num The column in array from which to return a value. If column_num is omitted, row_num is required.
+ * @return mixed the value of a specified cell or array of cells
+ */
+ public static function INDEX($arrayValues,$rowNum = 0,$columnNum = 0) {
+
+ if (($rowNum < 0) || ($columnNum < 0)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (!is_array($arrayValues)) {
+ return PHPExcel_Calculation_Functions::REF();
+ }
+
+ $rowKeys = array_keys($arrayValues);
+ $columnKeys = @array_keys($arrayValues[$rowKeys[0]]);
+
+ if ($columnNum > count($columnKeys)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif ($columnNum == 0) {
+ if ($rowNum == 0) {
+ return $arrayValues;
+ }
+ $rowNum = $rowKeys[--$rowNum];
+ $returnArray = array();
+ foreach($arrayValues as $arrayColumn) {
+ if (is_array($arrayColumn)) {
+ if (isset($arrayColumn[$rowNum])) {
+ $returnArray[] = $arrayColumn[$rowNum];
+ } else {
+ return $arrayValues[$rowNum];
+ }
+ } else {
+ return $arrayValues[$rowNum];
+ }
+ }
+ return $returnArray;
+ }
+ $columnNum = $columnKeys[--$columnNum];
+ if ($rowNum > count($rowKeys)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif ($rowNum == 0) {
+ return $arrayValues[$columnNum];
+ }
+ $rowNum = $rowKeys[--$rowNum];
+
+ return $arrayValues[$rowNum][$columnNum];
+ } // function INDEX()
+
+
+ /**
+ * TRANSPOSE
+ *
+ * @param array $matrixData A matrix of values
+ * @return array
+ *
+ * Unlike the Excel TRANSPOSE function, which will only work on a single row or column, this function will transpose a full matrix.
+ */
+ public static function TRANSPOSE($matrixData) {
+ $returnMatrix = array();
+ if (!is_array($matrixData)) { $matrixData = array(array($matrixData)); }
+
+ $column = 0;
+ foreach($matrixData as $matrixRow) {
+ $row = 0;
+ foreach($matrixRow as $matrixCell) {
+ $returnMatrix[$row][$column] = $matrixCell;
+ ++$row;
+ }
+ ++$column;
+ }
+ return $returnMatrix;
+ } // function TRANSPOSE()
+
+
+ private static function _vlookupSort($a,$b) {
+ $f = array_keys($a);
+ $firstColumn = array_shift($f);
+ if (strtolower($a[$firstColumn]) == strtolower($b[$firstColumn])) {
+ return 0;
+ }
+ return (strtolower($a[$firstColumn]) < strtolower($b[$firstColumn])) ? -1 : 1;
+ } // function _vlookupSort()
+
+
+ /**
+ * VLOOKUP
+ * The VLOOKUP function searches for value in the left-most column of lookup_array and returns the value in the same row based on the index_number.
+ * @param lookup_value The value that you want to match in lookup_array
+ * @param lookup_array The range of cells being searched
+ * @param index_number The column number in table_array from which the matching value must be returned. The first column is 1.
+ * @param not_exact_match Determines if you are looking for an exact match based on lookup_value.
+ * @return mixed The value of the found cell
+ */
+ public static function VLOOKUP($lookup_value, $lookup_array, $index_number, $not_exact_match=true) {
+ $lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value);
+ $index_number = PHPExcel_Calculation_Functions::flattenSingleValue($index_number);
+ $not_exact_match = PHPExcel_Calculation_Functions::flattenSingleValue($not_exact_match);
+
+ // index_number must be greater than or equal to 1
+ if ($index_number < 1) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ // index_number must be less than or equal to the number of columns in lookup_array
+ if ((!is_array($lookup_array)) || (empty($lookup_array))) {
+ return PHPExcel_Calculation_Functions::REF();
+ } else {
+ $f = array_keys($lookup_array);
+ $firstRow = array_pop($f);
+ if ((!is_array($lookup_array[$firstRow])) || ($index_number > count($lookup_array[$firstRow]))) {
+ return PHPExcel_Calculation_Functions::REF();
+ } else {
+ $columnKeys = array_keys($lookup_array[$firstRow]);
+ $returnColumn = $columnKeys[--$index_number];
+ $firstColumn = array_shift($columnKeys);
+ }
+ }
+
+ if (!$not_exact_match) {
+ uasort($lookup_array,array('self','_vlookupSort'));
+ }
+
+ $rowNumber = $rowValue = False;
+ foreach($lookup_array as $rowKey => $rowData) {
+ if (strtolower($rowData[$firstColumn]) > strtolower($lookup_value)) {
+ break;
+ }
+ $rowNumber = $rowKey;
+ $rowValue = $rowData[$firstColumn];
+ }
+
+ if ($rowNumber !== false) {
+ if ((!$not_exact_match) && ($rowValue != $lookup_value)) {
+ // if an exact match is required, we have what we need to return an appropriate response
+ return PHPExcel_Calculation_Functions::NA();
+ } else {
+ // otherwise return the appropriate value
+ return $lookup_array[$rowNumber][$returnColumn];
+ }
+ }
+
+ return PHPExcel_Calculation_Functions::NA();
+ } // function VLOOKUP()
+
+
+ /**
+ * LOOKUP
+ * The LOOKUP function searches for value either from a one-row or one-column range or from an array.
+ * @param lookup_value The value that you want to match in lookup_array
+ * @param lookup_vector The range of cells being searched
+ * @param result_vector The column from which the matching value must be returned
+ * @return mixed The value of the found cell
+ */
+ public static function LOOKUP($lookup_value, $lookup_vector, $result_vector=null) {
+ $lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value);
+
+ if (!is_array($lookup_vector)) {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+ $lookupRows = count($lookup_vector);
+ $l = array_keys($lookup_vector);
+ $l = array_shift($l);
+ $lookupColumns = count($lookup_vector[$l]);
+ if ((($lookupRows == 1) && ($lookupColumns > 1)) || (($lookupRows == 2) && ($lookupColumns != 2))) {
+ $lookup_vector = self::TRANSPOSE($lookup_vector);
+ $lookupRows = count($lookup_vector);
+ $l = array_keys($lookup_vector);
+ $lookupColumns = count($lookup_vector[array_shift($l)]);
+ }
+
+ if (is_null($result_vector)) {
+ $result_vector = $lookup_vector;
+ }
+ $resultRows = count($result_vector);
+ $l = array_keys($result_vector);
+ $l = array_shift($l);
+ $resultColumns = count($result_vector[$l]);
+ if ((($resultRows == 1) && ($resultColumns > 1)) || (($resultRows == 2) && ($resultColumns != 2))) {
+ $result_vector = self::TRANSPOSE($result_vector);
+ $resultRows = count($result_vector);
+ $r = array_keys($result_vector);
+ $resultColumns = count($result_vector[array_shift($r)]);
+ }
+
+ if ($lookupRows == 2) {
+ $result_vector = array_pop($lookup_vector);
+ $lookup_vector = array_shift($lookup_vector);
+ }
+ if ($lookupColumns != 2) {
+ foreach($lookup_vector as &$value) {
+ if (is_array($value)) {
+ $k = array_keys($value);
+ $key1 = $key2 = array_shift($k);
+ $key2++;
+ $dataValue1 = $value[$key1];
+ } else {
+ $key1 = 0;
+ $key2 = 1;
+ $dataValue1 = $value;
+ }
+ $dataValue2 = array_shift($result_vector);
+ if (is_array($dataValue2)) {
+ $dataValue2 = array_shift($dataValue2);
+ }
+ $value = array($key1 => $dataValue1, $key2 => $dataValue2);
+ }
+ unset($value);
+ }
+
+ return self::VLOOKUP($lookup_value,$lookup_vector,2);
+ } // function LOOKUP()
+
+} // class PHPExcel_Calculation_LookupRef
diff --git a/framework/library/phpexcel/PHPExcel/Calculation/MathTrig.php b/framework/library/phpexcel/PHPExcel/Calculation/MathTrig.php
new file mode 100644
index 0000000..0e2ac95
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/Calculation/MathTrig.php
@@ -0,0 +1,1369 @@
+ 1; --$i) {
+ if (($value % $i) == 0) {
+ $factorArray = array_merge($factorArray,self::_factors($value / $i));
+ $factorArray = array_merge($factorArray,self::_factors($i));
+ if ($i <= sqrt($value)) {
+ break;
+ }
+ }
+ }
+ if (!empty($factorArray)) {
+ rsort($factorArray);
+ return $factorArray;
+ } else {
+ return array((integer) $value);
+ }
+ } // function _factors()
+
+
+ private static function _romanCut($num, $n) {
+ return ($num - ($num % $n ) ) / $n;
+ } // function _romanCut()
+
+
+ /**
+ * ATAN2
+ *
+ * This function calculates the arc tangent of the two variables x and y. It is similar to
+ * calculating the arc tangent of y ÷ x, except that the signs of both arguments are used
+ * to determine the quadrant of the result.
+ * The arctangent is the angle from the x-axis to a line containing the origin (0, 0) and a
+ * point with coordinates (xCoordinate, yCoordinate). The angle is given in radians between
+ * -pi and pi, excluding -pi.
+ *
+ * Note that the Excel ATAN2() function accepts its arguments in the reverse order to the standard
+ * PHP atan2() function, so we need to reverse them here before calling the PHP atan() function.
+ *
+ * Excel Function:
+ * ATAN2(xCoordinate,yCoordinate)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param float $xCoordinate The x-coordinate of the point.
+ * @param float $yCoordinate The y-coordinate of the point.
+ * @return float The inverse tangent of the specified x- and y-coordinates.
+ */
+ public static function ATAN2($xCoordinate = NULL, $yCoordinate = NULL) {
+ $xCoordinate = PHPExcel_Calculation_Functions::flattenSingleValue($xCoordinate);
+ $yCoordinate = PHPExcel_Calculation_Functions::flattenSingleValue($yCoordinate);
+
+ $xCoordinate = ($xCoordinate !== NULL) ? $xCoordinate : 0.0;
+ $yCoordinate = ($yCoordinate !== NULL) ? $yCoordinate : 0.0;
+
+ if (((is_numeric($xCoordinate)) || (is_bool($xCoordinate))) &&
+ ((is_numeric($yCoordinate))) || (is_bool($yCoordinate))) {
+ $xCoordinate = (float) $xCoordinate;
+ $yCoordinate = (float) $yCoordinate;
+
+ if (($xCoordinate == 0) && ($yCoordinate == 0)) {
+ return PHPExcel_Calculation_Functions::DIV0();
+ }
+
+ return atan2($yCoordinate, $xCoordinate);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function ATAN2()
+
+
+ /**
+ * CEILING
+ *
+ * Returns number rounded up, away from zero, to the nearest multiple of significance.
+ * For example, if you want to avoid using pennies in your prices and your product is
+ * priced at $4.42, use the formula =CEILING(4.42,0.05) to round prices up to the
+ * nearest nickel.
+ *
+ * Excel Function:
+ * CEILING(number[,significance])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param float $number The number you want to round.
+ * @param float $significance The multiple to which you want to round.
+ * @return float Rounded Number
+ */
+ public static function CEILING($number, $significance = NULL) {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+ $significance = PHPExcel_Calculation_Functions::flattenSingleValue($significance);
+
+ if ((is_null($significance)) &&
+ (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC)) {
+ $significance = $number/abs($number);
+ }
+
+ if ((is_numeric($number)) && (is_numeric($significance))) {
+ if ($significance == 0.0) {
+ return 0.0;
+ } elseif (self::SIGN($number) == self::SIGN($significance)) {
+ return ceil($number / $significance) * $significance;
+ } else {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function CEILING()
+
+
+ /**
+ * COMBIN
+ *
+ * Returns the number of combinations for a given number of items. Use COMBIN to
+ * determine the total possible number of groups for a given number of items.
+ *
+ * Excel Function:
+ * COMBIN(numObjs,numInSet)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param int $numObjs Number of different objects
+ * @param int $numInSet Number of objects in each combination
+ * @return int Number of combinations
+ */
+ public static function COMBIN($numObjs, $numInSet) {
+ $numObjs = PHPExcel_Calculation_Functions::flattenSingleValue($numObjs);
+ $numInSet = PHPExcel_Calculation_Functions::flattenSingleValue($numInSet);
+
+ if ((is_numeric($numObjs)) && (is_numeric($numInSet))) {
+ if ($numObjs < $numInSet) {
+ return PHPExcel_Calculation_Functions::NaN();
+ } elseif ($numInSet < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return round(self::FACT($numObjs) / self::FACT($numObjs - $numInSet)) / self::FACT($numInSet);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function COMBIN()
+
+
+ /**
+ * EVEN
+ *
+ * Returns number rounded up to the nearest even integer.
+ * You can use this function for processing items that come in twos. For example,
+ * a packing crate accepts rows of one or two items. The crate is full when
+ * the number of items, rounded up to the nearest two, matches the crate's
+ * capacity.
+ *
+ * Excel Function:
+ * EVEN(number)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param float $number Number to round
+ * @return int Rounded Number
+ */
+ public static function EVEN($number) {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+
+ if (is_null($number)) {
+ return 0;
+ } elseif (is_bool($number)) {
+ $number = (int) $number;
+ }
+
+ if (is_numeric($number)) {
+ $significance = 2 * self::SIGN($number);
+ return (int) self::CEILING($number,$significance);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function EVEN()
+
+
+ /**
+ * FACT
+ *
+ * Returns the factorial of a number.
+ * The factorial of a number is equal to 1*2*3*...* number.
+ *
+ * Excel Function:
+ * FACT(factVal)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param float $factVal Factorial Value
+ * @return int Factorial
+ */
+ public static function FACT($factVal) {
+ $factVal = PHPExcel_Calculation_Functions::flattenSingleValue($factVal);
+
+ if (is_numeric($factVal)) {
+ if ($factVal < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $factLoop = floor($factVal);
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
+ if ($factVal > $factLoop) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ }
+
+ $factorial = 1;
+ while ($factLoop > 1) {
+ $factorial *= $factLoop--;
+ }
+ return $factorial ;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function FACT()
+
+
+ /**
+ * FACTDOUBLE
+ *
+ * Returns the double factorial of a number.
+ *
+ * Excel Function:
+ * FACTDOUBLE(factVal)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param float $factVal Factorial Value
+ * @return int Double Factorial
+ */
+ public static function FACTDOUBLE($factVal) {
+ $factLoop = PHPExcel_Calculation_Functions::flattenSingleValue($factVal);
+
+ if (is_numeric($factLoop)) {
+ $factLoop = floor($factLoop);
+ if ($factVal < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $factorial = 1;
+ while ($factLoop > 1) {
+ $factorial *= $factLoop--;
+ --$factLoop;
+ }
+ return $factorial ;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function FACTDOUBLE()
+
+
+ /**
+ * FLOOR
+ *
+ * Rounds number down, toward zero, to the nearest multiple of significance.
+ *
+ * Excel Function:
+ * FLOOR(number[,significance])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param float $number Number to round
+ * @param float $significance Significance
+ * @return float Rounded Number
+ */
+ public static function FLOOR($number, $significance = NULL) {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+ $significance = PHPExcel_Calculation_Functions::flattenSingleValue($significance);
+
+ if ((is_null($significance)) && (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC)) {
+ $significance = $number/abs($number);
+ }
+
+ if ((is_numeric($number)) && (is_numeric($significance))) {
+ if ((float) $significance == 0.0) {
+ return PHPExcel_Calculation_Functions::DIV0();
+ }
+ if (self::SIGN($number) == self::SIGN($significance)) {
+ return floor($number / $significance) * $significance;
+ } else {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function FLOOR()
+
+
+ /**
+ * GCD
+ *
+ * Returns the greatest common divisor of a series of numbers.
+ * The greatest common divisor is the largest integer that divides both
+ * number1 and number2 without a remainder.
+ *
+ * Excel Function:
+ * GCD(number1[,number2[, ...]])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @return integer Greatest Common Divisor
+ */
+ public static function GCD() {
+ $returnValue = 1;
+ $allValuesFactors = array();
+ // Loop through arguments
+ foreach(PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $value) {
+ if (!is_numeric($value)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif ($value == 0) {
+ continue;
+ } elseif($value < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $myFactors = self::_factors($value);
+ $myCountedFactors = array_count_values($myFactors);
+ $allValuesFactors[] = $myCountedFactors;
+ }
+ $allValuesCount = count($allValuesFactors);
+ if ($allValuesCount == 0) {
+ return 0;
+ }
+
+ $mergedArray = $allValuesFactors[0];
+ for ($i=1;$i < $allValuesCount; ++$i) {
+ $mergedArray = array_intersect_key($mergedArray,$allValuesFactors[$i]);
+ }
+ $mergedArrayValues = count($mergedArray);
+ if ($mergedArrayValues == 0) {
+ return $returnValue;
+ } elseif ($mergedArrayValues > 1) {
+ foreach($mergedArray as $mergedKey => $mergedValue) {
+ foreach($allValuesFactors as $highestPowerTest) {
+ foreach($highestPowerTest as $testKey => $testValue) {
+ if (($testKey == $mergedKey) && ($testValue < $mergedValue)) {
+ $mergedArray[$mergedKey] = $testValue;
+ $mergedValue = $testValue;
+ }
+ }
+ }
+ }
+
+ $returnValue = 1;
+ foreach($mergedArray as $key => $value) {
+ $returnValue *= pow($key,$value);
+ }
+ return $returnValue;
+ } else {
+ $keys = array_keys($mergedArray);
+ $key = $keys[0];
+ $value = $mergedArray[$key];
+ foreach($allValuesFactors as $testValue) {
+ foreach($testValue as $mergedKey => $mergedValue) {
+ if (($mergedKey == $key) && ($mergedValue < $value)) {
+ $value = $mergedValue;
+ }
+ }
+ }
+ return pow($key,$value);
+ }
+ } // function GCD()
+
+
+ /**
+ * INT
+ *
+ * Casts a floating point value to an integer
+ *
+ * Excel Function:
+ * INT(number)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param float $number Number to cast to an integer
+ * @return integer Integer value
+ */
+ public static function INT($number) {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+
+ if (is_null($number)) {
+ return 0;
+ } elseif (is_bool($number)) {
+ return (int) $number;
+ }
+ if (is_numeric($number)) {
+ return (int) floor($number);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function INT()
+
+
+ /**
+ * LCM
+ *
+ * Returns the lowest common multiplier of a series of numbers
+ * The least common multiple is the smallest positive integer that is a multiple
+ * of all integer arguments number1, number2, and so on. Use LCM to add fractions
+ * with different denominators.
+ *
+ * Excel Function:
+ * LCM(number1[,number2[, ...]])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @return int Lowest Common Multiplier
+ */
+ public static function LCM() {
+ $returnValue = 1;
+ $allPoweredFactors = array();
+ // Loop through arguments
+ foreach(PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $value) {
+ if (!is_numeric($value)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if ($value == 0) {
+ return 0;
+ } elseif ($value < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $myFactors = self::_factors(floor($value));
+ $myCountedFactors = array_count_values($myFactors);
+ $myPoweredFactors = array();
+ foreach($myCountedFactors as $myCountedFactor => $myCountedPower) {
+ $myPoweredFactors[$myCountedFactor] = pow($myCountedFactor,$myCountedPower);
+ }
+ foreach($myPoweredFactors as $myPoweredValue => $myPoweredFactor) {
+ if (array_key_exists($myPoweredValue,$allPoweredFactors)) {
+ if ($allPoweredFactors[$myPoweredValue] < $myPoweredFactor) {
+ $allPoweredFactors[$myPoweredValue] = $myPoweredFactor;
+ }
+ } else {
+ $allPoweredFactors[$myPoweredValue] = $myPoweredFactor;
+ }
+ }
+ }
+ foreach($allPoweredFactors as $allPoweredFactor) {
+ $returnValue *= (integer) $allPoweredFactor;
+ }
+ return $returnValue;
+ } // function LCM()
+
+
+ /**
+ * LOG_BASE
+ *
+ * Returns the logarithm of a number to a specified base. The default base is 10.
+ *
+ * Excel Function:
+ * LOG(number[,base])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param float $number The positive real number for which you want the logarithm
+ * @param float $base The base of the logarithm. If base is omitted, it is assumed to be 10.
+ * @return float
+ */
+ public static function LOG_BASE($number = NULL, $base = 10) {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+ $base = (is_null($base)) ? 10 : (float) PHPExcel_Calculation_Functions::flattenSingleValue($base);
+
+ if ((!is_numeric($base)) || (!is_numeric($number)))
+ return PHPExcel_Calculation_Functions::VALUE();
+ if (($base <= 0) || ($number <= 0))
+ return PHPExcel_Calculation_Functions::NaN();
+ return log($number, $base);
+ } // function LOG_BASE()
+
+
+ /**
+ * MDETERM
+ *
+ * Returns the matrix determinant of an array.
+ *
+ * Excel Function:
+ * MDETERM(array)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param array $matrixValues A matrix of values
+ * @return float
+ */
+ public static function MDETERM($matrixValues) {
+ $matrixData = array();
+ if (!is_array($matrixValues)) { $matrixValues = array(array($matrixValues)); }
+
+ $row = $maxColumn = 0;
+ foreach($matrixValues as $matrixRow) {
+ if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); }
+ $column = 0;
+ foreach($matrixRow as $matrixCell) {
+ if ((is_string($matrixCell)) || ($matrixCell === null)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $matrixData[$column][$row] = $matrixCell;
+ ++$column;
+ }
+ if ($column > $maxColumn) { $maxColumn = $column; }
+ ++$row;
+ }
+ if ($row != $maxColumn) { return PHPExcel_Calculation_Functions::VALUE(); }
+
+ try {
+ $matrix = new PHPExcel_Shared_JAMA_Matrix($matrixData);
+ return $matrix->det();
+ } catch (PHPExcel_Exception $ex) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ } // function MDETERM()
+
+
+ /**
+ * MINVERSE
+ *
+ * Returns the inverse matrix for the matrix stored in an array.
+ *
+ * Excel Function:
+ * MINVERSE(array)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param array $matrixValues A matrix of values
+ * @return array
+ */
+ public static function MINVERSE($matrixValues) {
+ $matrixData = array();
+ if (!is_array($matrixValues)) { $matrixValues = array(array($matrixValues)); }
+
+ $row = $maxColumn = 0;
+ foreach($matrixValues as $matrixRow) {
+ if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); }
+ $column = 0;
+ foreach($matrixRow as $matrixCell) {
+ if ((is_string($matrixCell)) || ($matrixCell === null)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $matrixData[$column][$row] = $matrixCell;
+ ++$column;
+ }
+ if ($column > $maxColumn) { $maxColumn = $column; }
+ ++$row;
+ }
+ if ($row != $maxColumn) { return PHPExcel_Calculation_Functions::VALUE(); }
+
+ try {
+ $matrix = new PHPExcel_Shared_JAMA_Matrix($matrixData);
+ return $matrix->inverse()->getArray();
+ } catch (PHPExcel_Exception $ex) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ } // function MINVERSE()
+
+
+ /**
+ * MMULT
+ *
+ * @param array $matrixData1 A matrix of values
+ * @param array $matrixData2 A matrix of values
+ * @return array
+ */
+ public static function MMULT($matrixData1,$matrixData2) {
+ $matrixAData = $matrixBData = array();
+ if (!is_array($matrixData1)) { $matrixData1 = array(array($matrixData1)); }
+ if (!is_array($matrixData2)) { $matrixData2 = array(array($matrixData2)); }
+
+ $rowA = 0;
+ foreach($matrixData1 as $matrixRow) {
+ if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); }
+ $columnA = 0;
+ foreach($matrixRow as $matrixCell) {
+ if ((is_string($matrixCell)) || ($matrixCell === null)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $matrixAData[$rowA][$columnA] = $matrixCell;
+ ++$columnA;
+ }
+ ++$rowA;
+ }
+ try {
+ $matrixA = new PHPExcel_Shared_JAMA_Matrix($matrixAData);
+ $rowB = 0;
+ foreach($matrixData2 as $matrixRow) {
+ if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); }
+ $columnB = 0;
+ foreach($matrixRow as $matrixCell) {
+ if ((is_string($matrixCell)) || ($matrixCell === null)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $matrixBData[$rowB][$columnB] = $matrixCell;
+ ++$columnB;
+ }
+ ++$rowB;
+ }
+ $matrixB = new PHPExcel_Shared_JAMA_Matrix($matrixBData);
+
+ if (($rowA != $columnB) || ($rowB != $columnA)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ return $matrixA->times($matrixB)->getArray();
+ } catch (PHPExcel_Exception $ex) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ } // function MMULT()
+
+
+ /**
+ * MOD
+ *
+ * @param int $a Dividend
+ * @param int $b Divisor
+ * @return int Remainder
+ */
+ public static function MOD($a = 1, $b = 1) {
+ $a = PHPExcel_Calculation_Functions::flattenSingleValue($a);
+ $b = PHPExcel_Calculation_Functions::flattenSingleValue($b);
+
+ if ($b == 0.0) {
+ return PHPExcel_Calculation_Functions::DIV0();
+ } elseif (($a < 0.0) && ($b > 0.0)) {
+ return $b - fmod(abs($a),$b);
+ } elseif (($a > 0.0) && ($b < 0.0)) {
+ return $b + fmod($a,abs($b));
+ }
+
+ return fmod($a,$b);
+ } // function MOD()
+
+
+ /**
+ * MROUND
+ *
+ * Rounds a number to the nearest multiple of a specified value
+ *
+ * @param float $number Number to round
+ * @param int $multiple Multiple to which you want to round $number
+ * @return float Rounded Number
+ */
+ public static function MROUND($number,$multiple) {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+ $multiple = PHPExcel_Calculation_Functions::flattenSingleValue($multiple);
+
+ if ((is_numeric($number)) && (is_numeric($multiple))) {
+ if ($multiple == 0) {
+ return 0;
+ }
+ if ((self::SIGN($number)) == (self::SIGN($multiple))) {
+ $multiplier = 1 / $multiple;
+ return round($number * $multiplier) / $multiplier;
+ }
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function MROUND()
+
+
+ /**
+ * MULTINOMIAL
+ *
+ * Returns the ratio of the factorial of a sum of values to the product of factorials.
+ *
+ * @param array of mixed Data Series
+ * @return float
+ */
+ public static function MULTINOMIAL() {
+ $summer = 0;
+ $divisor = 1;
+ // Loop through arguments
+ foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) {
+ // Is it a numeric value?
+ if (is_numeric($arg)) {
+ if ($arg < 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $summer += floor($arg);
+ $divisor *= self::FACT($arg);
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+
+ // Return
+ if ($summer > 0) {
+ $summer = self::FACT($summer);
+ return $summer / $divisor;
+ }
+ return 0;
+ } // function MULTINOMIAL()
+
+
+ /**
+ * ODD
+ *
+ * Returns number rounded up to the nearest odd integer.
+ *
+ * @param float $number Number to round
+ * @return int Rounded Number
+ */
+ public static function ODD($number) {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+
+ if (is_null($number)) {
+ return 1;
+ } elseif (is_bool($number)) {
+ $number = (int) $number;
+ }
+
+ if (is_numeric($number)) {
+ $significance = self::SIGN($number);
+ if ($significance == 0) {
+ return 1;
+ }
+
+ $result = self::CEILING($number,$significance);
+ if ($result == self::EVEN($result)) {
+ $result += $significance;
+ }
+
+ return (int) $result;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function ODD()
+
+
+ /**
+ * POWER
+ *
+ * Computes x raised to the power y.
+ *
+ * @param float $x
+ * @param float $y
+ * @return float
+ */
+ public static function POWER($x = 0, $y = 2) {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $y = PHPExcel_Calculation_Functions::flattenSingleValue($y);
+
+ // Validate parameters
+ if ($x == 0.0 && $y == 0.0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ } elseif ($x == 0.0 && $y < 0.0) {
+ return PHPExcel_Calculation_Functions::DIV0();
+ }
+
+ // Return
+ $result = pow($x, $y);
+ return (!is_nan($result) && !is_infinite($result)) ? $result : PHPExcel_Calculation_Functions::NaN();
+ } // function POWER()
+
+
+ /**
+ * PRODUCT
+ *
+ * PRODUCT returns the product of all the values and cells referenced in the argument list.
+ *
+ * Excel Function:
+ * PRODUCT(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function PRODUCT() {
+ // Return value
+ $returnValue = null;
+
+ // Loop through arguments
+ foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ if (is_null($returnValue)) {
+ $returnValue = $arg;
+ } else {
+ $returnValue *= $arg;
+ }
+ }
+ }
+
+ // Return
+ if (is_null($returnValue)) {
+ return 0;
+ }
+ return $returnValue;
+ } // function PRODUCT()
+
+
+ /**
+ * QUOTIENT
+ *
+ * QUOTIENT function returns the integer portion of a division. Numerator is the divided number
+ * and denominator is the divisor.
+ *
+ * Excel Function:
+ * QUOTIENT(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function QUOTIENT() {
+ // Return value
+ $returnValue = null;
+
+ // Loop through arguments
+ foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ if (is_null($returnValue)) {
+ $returnValue = ($arg == 0) ? 0 : $arg;
+ } else {
+ if (($returnValue == 0) || ($arg == 0)) {
+ $returnValue = 0;
+ } else {
+ $returnValue /= $arg;
+ }
+ }
+ }
+ }
+
+ // Return
+ return intval($returnValue);
+ } // function QUOTIENT()
+
+
+ /**
+ * RAND
+ *
+ * @param int $min Minimal value
+ * @param int $max Maximal value
+ * @return int Random number
+ */
+ public static function RAND($min = 0, $max = 0) {
+ $min = PHPExcel_Calculation_Functions::flattenSingleValue($min);
+ $max = PHPExcel_Calculation_Functions::flattenSingleValue($max);
+
+ if ($min == 0 && $max == 0) {
+ return (rand(0,10000000)) / 10000000;
+ } else {
+ return rand($min, $max);
+ }
+ } // function RAND()
+
+
+ public static function ROMAN($aValue, $style=0) {
+ $aValue = PHPExcel_Calculation_Functions::flattenSingleValue($aValue);
+ $style = (is_null($style)) ? 0 : (integer) PHPExcel_Calculation_Functions::flattenSingleValue($style);
+ if ((!is_numeric($aValue)) || ($aValue < 0) || ($aValue >= 4000)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $aValue = (integer) $aValue;
+ if ($aValue == 0) {
+ return '';
+ }
+
+ $mill = Array('', 'M', 'MM', 'MMM', 'MMMM', 'MMMMM');
+ $cent = Array('', 'C', 'CC', 'CCC', 'CD', 'D', 'DC', 'DCC', 'DCCC', 'CM');
+ $tens = Array('', 'X', 'XX', 'XXX', 'XL', 'L', 'LX', 'LXX', 'LXXX', 'XC');
+ $ones = Array('', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX');
+
+ $roman = '';
+ while ($aValue > 5999) {
+ $roman .= 'M';
+ $aValue -= 1000;
+ }
+ $m = self::_romanCut($aValue, 1000); $aValue %= 1000;
+ $c = self::_romanCut($aValue, 100); $aValue %= 100;
+ $t = self::_romanCut($aValue, 10); $aValue %= 10;
+
+ return $roman.$mill[$m].$cent[$c].$tens[$t].$ones[$aValue];
+ } // function ROMAN()
+
+
+ /**
+ * ROUNDUP
+ *
+ * Rounds a number up to a specified number of decimal places
+ *
+ * @param float $number Number to round
+ * @param int $digits Number of digits to which you want to round $number
+ * @return float Rounded Number
+ */
+ public static function ROUNDUP($number,$digits) {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+ $digits = PHPExcel_Calculation_Functions::flattenSingleValue($digits);
+
+ if ((is_numeric($number)) && (is_numeric($digits))) {
+ $significance = pow(10,(int) $digits);
+ if ($number < 0.0) {
+ return floor($number * $significance) / $significance;
+ } else {
+ return ceil($number * $significance) / $significance;
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function ROUNDUP()
+
+
+ /**
+ * ROUNDDOWN
+ *
+ * Rounds a number down to a specified number of decimal places
+ *
+ * @param float $number Number to round
+ * @param int $digits Number of digits to which you want to round $number
+ * @return float Rounded Number
+ */
+ public static function ROUNDDOWN($number,$digits) {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+ $digits = PHPExcel_Calculation_Functions::flattenSingleValue($digits);
+
+ if ((is_numeric($number)) && (is_numeric($digits))) {
+ $significance = pow(10,(int) $digits);
+ if ($number < 0.0) {
+ return ceil($number * $significance) / $significance;
+ } else {
+ return floor($number * $significance) / $significance;
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function ROUNDDOWN()
+
+
+ /**
+ * SERIESSUM
+ *
+ * Returns the sum of a power series
+ *
+ * @param float $x Input value to the power series
+ * @param float $n Initial power to which you want to raise $x
+ * @param float $m Step by which to increase $n for each term in the series
+ * @param array of mixed Data Series
+ * @return float
+ */
+ public static function SERIESSUM() {
+ // Return value
+ $returnValue = 0;
+
+ // Loop through arguments
+ $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
+
+ $x = array_shift($aArgs);
+ $n = array_shift($aArgs);
+ $m = array_shift($aArgs);
+
+ if ((is_numeric($x)) && (is_numeric($n)) && (is_numeric($m))) {
+ // Calculate
+ $i = 0;
+ foreach($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $returnValue += $arg * pow($x,$n + ($m * $i++));
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ // Return
+ return $returnValue;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function SERIESSUM()
+
+
+ /**
+ * SIGN
+ *
+ * Determines the sign of a number. Returns 1 if the number is positive, zero (0)
+ * if the number is 0, and -1 if the number is negative.
+ *
+ * @param float $number Number to round
+ * @return int sign value
+ */
+ public static function SIGN($number) {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+
+ if (is_bool($number))
+ return (int) $number;
+ if (is_numeric($number)) {
+ if ($number == 0.0) {
+ return 0;
+ }
+ return $number / abs($number);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function SIGN()
+
+
+ /**
+ * SQRTPI
+ *
+ * Returns the square root of (number * pi).
+ *
+ * @param float $number Number
+ * @return float Square Root of Number * Pi
+ */
+ public static function SQRTPI($number) {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+
+ if (is_numeric($number)) {
+ if ($number < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return sqrt($number * M_PI) ;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function SQRTPI()
+
+
+ /**
+ * SUBTOTAL
+ *
+ * Returns a subtotal in a list or database.
+ *
+ * @param int the number 1 to 11 that specifies which function to
+ * use in calculating subtotals within a list.
+ * @param array of mixed Data Series
+ * @return float
+ */
+ public static function SUBTOTAL() {
+ $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
+
+ // Calculate
+ $subtotal = array_shift($aArgs);
+
+ if ((is_numeric($subtotal)) && (!is_string($subtotal))) {
+ switch($subtotal) {
+ case 1 :
+ return PHPExcel_Calculation_Statistical::AVERAGE($aArgs);
+ break;
+ case 2 :
+ return PHPExcel_Calculation_Statistical::COUNT($aArgs);
+ break;
+ case 3 :
+ return PHPExcel_Calculation_Statistical::COUNTA($aArgs);
+ break;
+ case 4 :
+ return PHPExcel_Calculation_Statistical::MAX($aArgs);
+ break;
+ case 5 :
+ return PHPExcel_Calculation_Statistical::MIN($aArgs);
+ break;
+ case 6 :
+ return self::PRODUCT($aArgs);
+ break;
+ case 7 :
+ return PHPExcel_Calculation_Statistical::STDEV($aArgs);
+ break;
+ case 8 :
+ return PHPExcel_Calculation_Statistical::STDEVP($aArgs);
+ break;
+ case 9 :
+ return self::SUM($aArgs);
+ break;
+ case 10 :
+ return PHPExcel_Calculation_Statistical::VARFunc($aArgs);
+ break;
+ case 11 :
+ return PHPExcel_Calculation_Statistical::VARP($aArgs);
+ break;
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ } // function SUBTOTAL()
+
+
+ /**
+ * SUM
+ *
+ * SUM computes the sum of all the values and cells referenced in the argument list.
+ *
+ * Excel Function:
+ * SUM(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function SUM() {
+ // Return value
+ $returnValue = 0;
+
+ // Loop through the arguments
+ foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $returnValue += $arg;
+ }
+ }
+
+ // Return
+ return $returnValue;
+ } // function SUM()
+
+
+ /**
+ * SUMIF
+ *
+ * Counts the number of cells that contain numbers within the list of arguments
+ *
+ * Excel Function:
+ * SUMIF(value1[,value2[, ...]],condition)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @param string $condition The criteria that defines which cells will be summed.
+ * @return float
+ */
+ public static function SUMIF($aArgs,$condition,$sumArgs = array()) {
+ // Return value
+ $returnValue = 0;
+
+ $aArgs = PHPExcel_Calculation_Functions::flattenArray($aArgs);
+ $sumArgs = PHPExcel_Calculation_Functions::flattenArray($sumArgs);
+ if (empty($sumArgs)) {
+ $sumArgs = $aArgs;
+ }
+ $condition = PHPExcel_Calculation_Functions::_ifCondition($condition);
+ // Loop through arguments
+ foreach ($aArgs as $key => $arg) {
+ if (!is_numeric($arg)) { $arg = PHPExcel_Calculation::_wrapResult(strtoupper($arg)); }
+ $testCondition = '='.$arg.$condition;
+ if (PHPExcel_Calculation::getInstance()->_calculateFormulaValue($testCondition)) {
+ // Is it a value within our criteria
+ $returnValue += $sumArgs[$key];
+ }
+ }
+
+ // Return
+ return $returnValue;
+ } // function SUMIF()
+
+
+ /**
+ * SUMPRODUCT
+ *
+ * Excel Function:
+ * SUMPRODUCT(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function SUMPRODUCT() {
+ $arrayList = func_get_args();
+
+ $wrkArray = PHPExcel_Calculation_Functions::flattenArray(array_shift($arrayList));
+ $wrkCellCount = count($wrkArray);
+
+ for ($i=0; $i< $wrkCellCount; ++$i) {
+ if ((!is_numeric($wrkArray[$i])) || (is_string($wrkArray[$i]))) {
+ $wrkArray[$i] = 0;
+ }
+ }
+
+ foreach($arrayList as $matrixData) {
+ $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData);
+ $count = count($array2);
+ if ($wrkCellCount != $count) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ foreach ($array2 as $i => $val) {
+ if ((!is_numeric($val)) || (is_string($val))) {
+ $val = 0;
+ }
+ $wrkArray[$i] *= $val;
+ }
+ }
+
+ return array_sum($wrkArray);
+ } // function SUMPRODUCT()
+
+
+ /**
+ * SUMSQ
+ *
+ * SUMSQ returns the sum of the squares of the arguments
+ *
+ * Excel Function:
+ * SUMSQ(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function SUMSQ() {
+ // Return value
+ $returnValue = 0;
+
+ // Loop through arguments
+ foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $returnValue += ($arg * $arg);
+ }
+ }
+
+ // Return
+ return $returnValue;
+ } // function SUMSQ()
+
+
+ /**
+ * SUMX2MY2
+ *
+ * @param mixed[] $matrixData1 Matrix #1
+ * @param mixed[] $matrixData2 Matrix #2
+ * @return float
+ */
+ public static function SUMX2MY2($matrixData1,$matrixData2) {
+ $array1 = PHPExcel_Calculation_Functions::flattenArray($matrixData1);
+ $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData2);
+ $count1 = count($array1);
+ $count2 = count($array2);
+ if ($count1 < $count2) {
+ $count = $count1;
+ } else {
+ $count = $count2;
+ }
+
+ $result = 0;
+ for ($i = 0; $i < $count; ++$i) {
+ if (((is_numeric($array1[$i])) && (!is_string($array1[$i]))) &&
+ ((is_numeric($array2[$i])) && (!is_string($array2[$i])))) {
+ $result += ($array1[$i] * $array1[$i]) - ($array2[$i] * $array2[$i]);
+ }
+ }
+
+ return $result;
+ } // function SUMX2MY2()
+
+
+ /**
+ * SUMX2PY2
+ *
+ * @param mixed[] $matrixData1 Matrix #1
+ * @param mixed[] $matrixData2 Matrix #2
+ * @return float
+ */
+ public static function SUMX2PY2($matrixData1,$matrixData2) {
+ $array1 = PHPExcel_Calculation_Functions::flattenArray($matrixData1);
+ $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData2);
+ $count1 = count($array1);
+ $count2 = count($array2);
+ if ($count1 < $count2) {
+ $count = $count1;
+ } else {
+ $count = $count2;
+ }
+
+ $result = 0;
+ for ($i = 0; $i < $count; ++$i) {
+ if (((is_numeric($array1[$i])) && (!is_string($array1[$i]))) &&
+ ((is_numeric($array2[$i])) && (!is_string($array2[$i])))) {
+ $result += ($array1[$i] * $array1[$i]) + ($array2[$i] * $array2[$i]);
+ }
+ }
+
+ return $result;
+ } // function SUMX2PY2()
+
+
+ /**
+ * SUMXMY2
+ *
+ * @param mixed[] $matrixData1 Matrix #1
+ * @param mixed[] $matrixData2 Matrix #2
+ * @return float
+ */
+ public static function SUMXMY2($matrixData1,$matrixData2) {
+ $array1 = PHPExcel_Calculation_Functions::flattenArray($matrixData1);
+ $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData2);
+ $count1 = count($array1);
+ $count2 = count($array2);
+ if ($count1 < $count2) {
+ $count = $count1;
+ } else {
+ $count = $count2;
+ }
+
+ $result = 0;
+ for ($i = 0; $i < $count; ++$i) {
+ if (((is_numeric($array1[$i])) && (!is_string($array1[$i]))) &&
+ ((is_numeric($array2[$i])) && (!is_string($array2[$i])))) {
+ $result += ($array1[$i] - $array2[$i]) * ($array1[$i] - $array2[$i]);
+ }
+ }
+
+ return $result;
+ } // function SUMXMY2()
+
+
+ /**
+ * TRUNC
+ *
+ * Truncates value to the number of fractional digits by number_digits.
+ *
+ * @param float $value
+ * @param int $digits
+ * @return float Truncated value
+ */
+ public static function TRUNC($value = 0, $digits = 0) {
+ $value = PHPExcel_Calculation_Functions::flattenSingleValue($value);
+ $digits = PHPExcel_Calculation_Functions::flattenSingleValue($digits);
+
+ // Validate parameters
+ if ((!is_numeric($value)) || (!is_numeric($digits)))
+ return PHPExcel_Calculation_Functions::VALUE();
+ $digits = floor($digits);
+
+ // Truncate
+ $adjust = pow(10, $digits);
+
+ if (($digits > 0) && (rtrim(intval((abs($value) - abs(intval($value))) * $adjust),'0') < $adjust/10))
+ return $value;
+
+ return (intval($value * $adjust)) / $adjust;
+ } // function TRUNC()
+
+} // class PHPExcel_Calculation_MathTrig
diff --git a/framework/library/phpexcel/PHPExcel/Calculation/Statistical.php b/framework/library/phpexcel/PHPExcel/Calculation/Statistical.php
new file mode 100644
index 0000000..4f6d28a
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/Calculation/Statistical.php
@@ -0,0 +1,3651 @@
+ $value) {
+ if ((is_bool($value)) || (is_string($value)) || (is_null($value))) {
+ unset($array1[$key]);
+ unset($array2[$key]);
+ }
+ }
+ foreach($array2 as $key => $value) {
+ if ((is_bool($value)) || (is_string($value)) || (is_null($value))) {
+ unset($array1[$key]);
+ unset($array2[$key]);
+ }
+ }
+ $array1 = array_merge($array1);
+ $array2 = array_merge($array2);
+
+ return True;
+ } // function _checkTrendArrays()
+
+
+ /**
+ * Beta function.
+ *
+ * @author Jaco van Kooten
+ *
+ * @param p require p>0
+ * @param q require q>0
+ * @return 0 if p<=0, q<=0 or p+q>2.55E305 to avoid errors and over/underflow
+ */
+ private static function _beta($p, $q) {
+ if ($p <= 0.0 || $q <= 0.0 || ($p + $q) > LOG_GAMMA_X_MAX_VALUE) {
+ return 0.0;
+ } else {
+ return exp(self::_logBeta($p, $q));
+ }
+ } // function _beta()
+
+
+ /**
+ * Incomplete beta function
+ *
+ * @author Jaco van Kooten
+ * @author Paul Meagher
+ *
+ * The computation is based on formulas from Numerical Recipes, Chapter 6.4 (W.H. Press et al, 1992).
+ * @param x require 0<=x<=1
+ * @param p require p>0
+ * @param q require q>0
+ * @return 0 if x<0, p<=0, q<=0 or p+q>2.55E305 and 1 if x>1 to avoid errors and over/underflow
+ */
+ private static function _incompleteBeta($x, $p, $q) {
+ if ($x <= 0.0) {
+ return 0.0;
+ } elseif ($x >= 1.0) {
+ return 1.0;
+ } elseif (($p <= 0.0) || ($q <= 0.0) || (($p + $q) > LOG_GAMMA_X_MAX_VALUE)) {
+ return 0.0;
+ }
+ $beta_gam = exp((0 - self::_logBeta($p, $q)) + $p * log($x) + $q * log(1.0 - $x));
+ if ($x < ($p + 1.0) / ($p + $q + 2.0)) {
+ return $beta_gam * self::_betaFraction($x, $p, $q) / $p;
+ } else {
+ return 1.0 - ($beta_gam * self::_betaFraction(1 - $x, $q, $p) / $q);
+ }
+ } // function _incompleteBeta()
+
+
+ // Function cache for _logBeta function
+ private static $_logBetaCache_p = 0.0;
+ private static $_logBetaCache_q = 0.0;
+ private static $_logBetaCache_result = 0.0;
+
+ /**
+ * The natural logarithm of the beta function.
+ *
+ * @param p require p>0
+ * @param q require q>0
+ * @return 0 if p<=0, q<=0 or p+q>2.55E305 to avoid errors and over/underflow
+ * @author Jaco van Kooten
+ */
+ private static function _logBeta($p, $q) {
+ if ($p != self::$_logBetaCache_p || $q != self::$_logBetaCache_q) {
+ self::$_logBetaCache_p = $p;
+ self::$_logBetaCache_q = $q;
+ if (($p <= 0.0) || ($q <= 0.0) || (($p + $q) > LOG_GAMMA_X_MAX_VALUE)) {
+ self::$_logBetaCache_result = 0.0;
+ } else {
+ self::$_logBetaCache_result = self::_logGamma($p) + self::_logGamma($q) - self::_logGamma($p + $q);
+ }
+ }
+ return self::$_logBetaCache_result;
+ } // function _logBeta()
+
+
+ /**
+ * Evaluates of continued fraction part of incomplete beta function.
+ * Based on an idea from Numerical Recipes (W.H. Press et al, 1992).
+ * @author Jaco van Kooten
+ */
+ private static function _betaFraction($x, $p, $q) {
+ $c = 1.0;
+ $sum_pq = $p + $q;
+ $p_plus = $p + 1.0;
+ $p_minus = $p - 1.0;
+ $h = 1.0 - $sum_pq * $x / $p_plus;
+ if (abs($h) < XMININ) {
+ $h = XMININ;
+ }
+ $h = 1.0 / $h;
+ $frac = $h;
+ $m = 1;
+ $delta = 0.0;
+ while ($m <= MAX_ITERATIONS && abs($delta-1.0) > PRECISION ) {
+ $m2 = 2 * $m;
+ // even index for d
+ $d = $m * ($q - $m) * $x / ( ($p_minus + $m2) * ($p + $m2));
+ $h = 1.0 + $d * $h;
+ if (abs($h) < XMININ) {
+ $h = XMININ;
+ }
+ $h = 1.0 / $h;
+ $c = 1.0 + $d / $c;
+ if (abs($c) < XMININ) {
+ $c = XMININ;
+ }
+ $frac *= $h * $c;
+ // odd index for d
+ $d = -($p + $m) * ($sum_pq + $m) * $x / (($p + $m2) * ($p_plus + $m2));
+ $h = 1.0 + $d * $h;
+ if (abs($h) < XMININ) {
+ $h = XMININ;
+ }
+ $h = 1.0 / $h;
+ $c = 1.0 + $d / $c;
+ if (abs($c) < XMININ) {
+ $c = XMININ;
+ }
+ $delta = $h * $c;
+ $frac *= $delta;
+ ++$m;
+ }
+ return $frac;
+ } // function _betaFraction()
+
+
+ /**
+ * logGamma function
+ *
+ * @version 1.1
+ * @author Jaco van Kooten
+ *
+ * Original author was Jaco van Kooten. Ported to PHP by Paul Meagher.
+ *
+ * The natural logarithm of the gamma function.
+ * Based on public domain NETLIB (Fortran) code by W. J. Cody and L. Stoltz
+ * Applied Mathematics Division
+ * Argonne National Laboratory
+ * Argonne, IL 60439
+ *
+ *
+ *
+ * From the original documentation: + *
+ *+ * This routine calculates the LOG(GAMMA) function for a positive real argument X. + * Computation is based on an algorithm outlined in references 1 and 2. + * The program uses rational functions that theoretically approximate LOG(GAMMA) + * to at least 18 significant decimal digits. The approximation for X > 12 is from + * reference 3, while approximations for X < 12.0 are similar to those in reference + * 1, but are unpublished. The accuracy achieved depends on the arithmetic system, + * the compiler, the intrinsic functions, and proper selection of the + * machine-dependent constants. + *
+ *
+ * Error returns:
+ * The program returns the value XINF for X .LE. 0.0 or when overflow would occur.
+ * The computation is believed to be free of underflow and overflow.
+ *
| "; + for($i=0;$i<$fields_num;$i++){ + if ($is_sht && $i>0) break; + $meta=mysql_fetch_field($sth,$i); + $meta->name = str_replace(array('Name','Database'),array('表','数据库'),$meta->name); + $headers.=" | ".$meta->name." | "; + } + if ($is_shd) $headers.="创建数据库SQL | 表状态 | 触发器 | "; + if ($is_sht) $headers.="类型 | 行数 | 数据大小 | 索引大小 | 创建表SQL | 详细 | 索引 | 导出 | 删除 | 清空 | 优化 | 修复 | "; + $headers.="
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| $v | " + ."".$row[1]." | " + ."".$row[4]." | " + ."".$row[6]." | " + ."".$row[8]." | " + ."显示 | " + ."详情 | " + ."索引 | " + ."导出 | " + ."删除 | " + ."清空 | " + ."优化 | " + ."修复"; + }elseif ($is_shd && $i==0 && $v){ + $url='?'.$xurl."&db=$v"; + $v="$v | " + ."显示 | " + ."状态 | " + ."触发器 | " + ; + }else{ + if (is_null($v)) $v="NULL"; + elseif (preg_match('/[\x00-\x09\x0B\x0C\x0E-\x1F]+/',$v)) { + $vl=strlen($v);$pf=''; + if ($vl>16 && $fields_num>1){ + $v=substr($v, 0, 16);$pf='...'; + } + $v='BINARY: '.chunk_split(strtoupper(bin2hex($v)),2,' ').$pf; + }else $v=htmlspecialchars($v); + } + if ($is_show_crt) $v="$v".(!strlen($v)?" ":'')." | ";
+ }
+ $sqldr.="
'; +// print_r($sharedFormulas); +// echo ''; + if (!isset($sharedFormulas[(string)$c->f['si']])) { +// echo 'SETTING NEW SHARED FORMULA
'; +// print_r($sharedFormulas); +// echo ''; + } else { +// echo 'GETTING SHARED FORMULA
'; +// echo htmlentities($gFileData,ENT_QUOTES,'UTF-8'); +// echo '
'; +// print_r($namespacesMeta); +// echo '
'; +// print_r($namespacesContent); +// echo '
= -1; --$k) {
+ if ($k == -1) {
+ break;
+ }
+ if (abs($e[$k]) <= $eps * (abs($this->s[$k]) + abs($this->s[$k+1]))) {
+ $e[$k] = 0.0;
+ break;
+ }
+ }
+ if ($k == $p - 2) {
+ $kase = 4;
+ } else {
+ for ($ks = $p - 1; $ks >= $k; --$ks) {
+ if ($ks == $k) {
+ break;
+ }
+ $t = ($ks != $p ? abs($e[$ks]) : 0.) + ($ks != $k + 1 ? abs($e[$ks-1]) : 0.);
+ if (abs($this->s[$ks]) <= $eps * $t) {
+ $this->s[$ks] = 0.0;
+ break;
+ }
+ }
+ if ($ks == $k) {
+ $kase = 3;
+ } else if ($ks == $p-1) {
+ $kase = 1;
+ } else {
+ $kase = 2;
+ $k = $ks;
+ }
+ }
+ ++$k;
+
+ // Perform the task indicated by kase.
+ switch ($kase) {
+ // Deflate negligible s(p).
+ case 1:
+ $f = $e[$p-2];
+ $e[$p-2] = 0.0;
+ for ($j = $p - 2; $j >= $k; --$j) {
+ $t = hypo($this->s[$j],$f);
+ $cs = $this->s[$j] / $t;
+ $sn = $f / $t;
+ $this->s[$j] = $t;
+ if ($j != $k) {
+ $f = -$sn * $e[$j-1];
+ $e[$j-1] = $cs * $e[$j-1];
+ }
+ if ($wantv) {
+ for ($i = 0; $i < $this->n; ++$i) {
+ $t = $cs * $this->V[$i][$j] + $sn * $this->V[$i][$p-1];
+ $this->V[$i][$p-1] = -$sn * $this->V[$i][$j] + $cs * $this->V[$i][$p-1];
+ $this->V[$i][$j] = $t;
+ }
+ }
+ }
+ break;
+ // Split at negligible s(k).
+ case 2:
+ $f = $e[$k-1];
+ $e[$k-1] = 0.0;
+ for ($j = $k; $j < $p; ++$j) {
+ $t = hypo($this->s[$j], $f);
+ $cs = $this->s[$j] / $t;
+ $sn = $f / $t;
+ $this->s[$j] = $t;
+ $f = -$sn * $e[$j];
+ $e[$j] = $cs * $e[$j];
+ if ($wantu) {
+ for ($i = 0; $i < $this->m; ++$i) {
+ $t = $cs * $this->U[$i][$j] + $sn * $this->U[$i][$k-1];
+ $this->U[$i][$k-1] = -$sn * $this->U[$i][$j] + $cs * $this->U[$i][$k-1];
+ $this->U[$i][$j] = $t;
+ }
+ }
+ }
+ break;
+ // Perform one qr step.
+ case 3:
+ // Calculate the shift.
+ $scale = max(max(max(max(
+ abs($this->s[$p-1]),abs($this->s[$p-2])),abs($e[$p-2])),
+ abs($this->s[$k])), abs($e[$k]));
+ $sp = $this->s[$p-1] / $scale;
+ $spm1 = $this->s[$p-2] / $scale;
+ $epm1 = $e[$p-2] / $scale;
+ $sk = $this->s[$k] / $scale;
+ $ek = $e[$k] / $scale;
+ $b = (($spm1 + $sp) * ($spm1 - $sp) + $epm1 * $epm1) / 2.0;
+ $c = ($sp * $epm1) * ($sp * $epm1);
+ $shift = 0.0;
+ if (($b != 0.0) || ($c != 0.0)) {
+ $shift = sqrt($b * $b + $c);
+ if ($b < 0.0) {
+ $shift = -$shift;
+ }
+ $shift = $c / ($b + $shift);
+ }
+ $f = ($sk + $sp) * ($sk - $sp) + $shift;
+ $g = $sk * $ek;
+ // Chase zeros.
+ for ($j = $k; $j < $p-1; ++$j) {
+ $t = hypo($f,$g);
+ $cs = $f/$t;
+ $sn = $g/$t;
+ if ($j != $k) {
+ $e[$j-1] = $t;
+ }
+ $f = $cs * $this->s[$j] + $sn * $e[$j];
+ $e[$j] = $cs * $e[$j] - $sn * $this->s[$j];
+ $g = $sn * $this->s[$j+1];
+ $this->s[$j+1] = $cs * $this->s[$j+1];
+ if ($wantv) {
+ for ($i = 0; $i < $this->n; ++$i) {
+ $t = $cs * $this->V[$i][$j] + $sn * $this->V[$i][$j+1];
+ $this->V[$i][$j+1] = -$sn * $this->V[$i][$j] + $cs * $this->V[$i][$j+1];
+ $this->V[$i][$j] = $t;
+ }
+ }
+ $t = hypo($f,$g);
+ $cs = $f/$t;
+ $sn = $g/$t;
+ $this->s[$j] = $t;
+ $f = $cs * $e[$j] + $sn * $this->s[$j+1];
+ $this->s[$j+1] = -$sn * $e[$j] + $cs * $this->s[$j+1];
+ $g = $sn * $e[$j+1];
+ $e[$j+1] = $cs * $e[$j+1];
+ if ($wantu && ($j < $this->m - 1)) {
+ for ($i = 0; $i < $this->m; ++$i) {
+ $t = $cs * $this->U[$i][$j] + $sn * $this->U[$i][$j+1];
+ $this->U[$i][$j+1] = -$sn * $this->U[$i][$j] + $cs * $this->U[$i][$j+1];
+ $this->U[$i][$j] = $t;
+ }
+ }
+ }
+ $e[$p-2] = $f;
+ $iter = $iter + 1;
+ break;
+ // Convergence.
+ case 4:
+ // Make the singular values positive.
+ if ($this->s[$k] <= 0.0) {
+ $this->s[$k] = ($this->s[$k] < 0.0 ? -$this->s[$k] : 0.0);
+ if ($wantv) {
+ for ($i = 0; $i <= $pp; ++$i) {
+ $this->V[$i][$k] = -$this->V[$i][$k];
+ }
+ }
+ }
+ // Order the singular values.
+ while ($k < $pp) {
+ if ($this->s[$k] >= $this->s[$k+1]) {
+ break;
+ }
+ $t = $this->s[$k];
+ $this->s[$k] = $this->s[$k+1];
+ $this->s[$k+1] = $t;
+ if ($wantv AND ($k < $this->n - 1)) {
+ for ($i = 0; $i < $this->n; ++$i) {
+ $t = $this->V[$i][$k+1];
+ $this->V[$i][$k+1] = $this->V[$i][$k];
+ $this->V[$i][$k] = $t;
+ }
+ }
+ if ($wantu AND ($k < $this->m-1)) {
+ for ($i = 0; $i < $this->m; ++$i) {
+ $t = $this->U[$i][$k+1];
+ $this->U[$i][$k+1] = $this->U[$i][$k];
+ $this->U[$i][$k] = $t;
+ }
+ }
+ ++$k;
+ }
+ $iter = 0;
+ --$p;
+ break;
+ } // end switch
+ } // end while
+
+ } // end constructor
+
+
+ /**
+ * Return the left singular vectors
+ *
+ * @access public
+ * @return U
+ */
+ public function getU() {
+ return new Matrix($this->U, $this->m, min($this->m + 1, $this->n));
+ }
+
+
+ /**
+ * Return the right singular vectors
+ *
+ * @access public
+ * @return V
+ */
+ public function getV() {
+ return new Matrix($this->V);
+ }
+
+
+ /**
+ * Return the one-dimensional array of singular values
+ *
+ * @access public
+ * @return diagonal of S.
+ */
+ public function getSingularValues() {
+ return $this->s;
+ }
+
+
+ /**
+ * Return the diagonal matrix of singular values
+ *
+ * @access public
+ * @return S
+ */
+ public function getS() {
+ for ($i = 0; $i < $this->n; ++$i) {
+ for ($j = 0; $j < $this->n; ++$j) {
+ $S[$i][$j] = 0.0;
+ }
+ $S[$i][$i] = $this->s[$i];
+ }
+ return new Matrix($S);
+ }
+
+
+ /**
+ * Two norm
+ *
+ * @access public
+ * @return max(S)
+ */
+ public function norm2() {
+ return $this->s[0];
+ }
+
+
+ /**
+ * Two norm condition number
+ *
+ * @access public
+ * @return max(S)/min(S)
+ */
+ public function cond() {
+ return $this->s[0] / $this->s[min($this->m, $this->n) - 1];
+ }
+
+
+ /**
+ * Effective numerical matrix rank
+ *
+ * @access public
+ * @return Number of nonnegligible singular values.
+ */
+ public function rank() {
+ $eps = pow(2.0, -52.0);
+ $tol = max($this->m, $this->n) * $this->s[0] * $eps;
+ $r = 0;
+ for ($i = 0; $i < count($this->s); ++$i) {
+ if ($this->s[$i] > $tol) {
+ ++$r;
+ }
+ }
+ return $r;
+ }
+
+} // class SingularValueDecomposition
diff --git a/framework/library/phpexcel/PHPExcel/Shared/JAMA/utils/Error.php b/framework/library/phpexcel/PHPExcel/Shared/JAMA/utils/Error.php
new file mode 100644
index 0000000..e73252b
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/Shared/JAMA/utils/Error.php
@@ -0,0 +1,82 @@
+ abs($b)) {
+ $r = $b / $a;
+ $r = abs($a) * sqrt(1 + $r * $r);
+ } elseif ($b != 0) {
+ $r = $a / $b;
+ $r = abs($b) * sqrt(1 + $r * $r);
+ } else {
+ $r = 0.0;
+ }
+ return $r;
+} // function hypo()
+
+
+/**
+ * Mike Bommarito's version.
+ * Compute n-dimensional hyotheneuse.
+ *
+function hypot() {
+ $s = 0;
+ foreach (func_get_args() as $d) {
+ if (is_numeric($d)) {
+ $s += pow($d, 2);
+ } else {
+ throw new PHPExcel_Calculation_Exception(JAMAError(ArgumentTypeException));
+ }
+ }
+ return sqrt($s);
+}
+*/
diff --git a/framework/library/phpexcel/PHPExcel/Shared/OLE.php b/framework/library/phpexcel/PHPExcel/Shared/OLE.php
new file mode 100644
index 0000000..9796282
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/Shared/OLE.php
@@ -0,0 +1,531 @@
+ |
+// | Based on OLE::Storage_Lite by Kawai, Takanori |
+// +----------------------------------------------------------------------+
+//
+// $Id: OLE.php,v 1.13 2007/03/07 14:38:25 schmidt Exp $
+
+
+/**
+* Array for storing OLE instances that are accessed from
+* OLE_ChainedBlockStream::stream_open().
+* @var array
+*/
+$GLOBALS['_OLE_INSTANCES'] = array();
+
+/**
+* OLE package base class.
+*
+* @author Xavier Noguer
';
+ $this->summaryInformation = count($this->props) - 1;
+ }
+
+ // Additional Document Summary information
+ if ($name == chr(5) . 'DocumentSummaryInformation') {
+// echo 'Document Summary Information
';
+ $this->documentSummaryInformation = count($this->props) - 1;
+ }
+
+ $offset += self::PROPERTY_STORAGE_BLOCK_SIZE;
+ }
+
+ }
+
+ /**
+ * Read 4 bytes of data at specified position
+ *
+ * @param string $data
+ * @param int $pos
+ * @return int
+ */
+ private static function _GetInt4d($data, $pos)
+ {
+ // FIX: represent numbers correctly on 64-bit system
+ // http://sourceforge.net/tracker/index.php?func=detail&aid=1487372&group_id=99160&atid=623334
+ // Hacked by Andreas Rehm 2006 to ensure correct result of the <<24 block on 32 and 64bit systems
+ $_or_24 = ord($data[$pos + 3]);
+ if ($_or_24 >= 128) {
+ // negative number
+ $_ord_24 = -abs((256 - $_or_24) << 24);
+ } else {
+ $_ord_24 = ($_or_24 & 127) << 24;
+ }
+ return ord($data[$pos]) | (ord($data[$pos + 1]) << 8) | (ord($data[$pos + 2]) << 16) | $_ord_24;
+ }
+
+}
diff --git a/framework/library/phpexcel/PHPExcel/Shared/PCLZip/gnu-lgpl.txt b/framework/library/phpexcel/PHPExcel/Shared/PCLZip/gnu-lgpl.txt
new file mode 100644
index 0000000..b1e3f5a
--- /dev/null
+++ b/framework/library/phpexcel/PHPExcel/Shared/PCLZip/gnu-lgpl.txt
@@ -0,0 +1,504 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL. It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it. You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+ When we speak of free software, we are referring to freedom of use,
+not price. Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+ To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights. These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ To protect each distributor, we want to make it very clear that
+there is no warranty for the free library. Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+ Finally, software patents pose a constant threat to the existence of
+any free program. We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder. Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+ Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License. This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License. We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+ When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library. The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom. The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+ We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License. It also provides other free software developers Less
+of an advantage over competing non-free programs. These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries. However, the Lesser license provides advantages in certain
+special circumstances.
+
+ For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard. To achieve this, non-free programs must be
+allowed to use the library. A more frequent case is that a free
+library does the same job as widely used non-free libraries. In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+ In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software. For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+ Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (1) uses at run time a
+ copy of the library already present on the user's computer system,
+ rather than copying library functions into the executable, and (2)
+ will operate properly with a modified version of the library, if
+ the user installs one, as long as the modified version is
+ interface-compatible with the version that the work was made with.
+
+ c) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ d) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ e) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+
";
+ if ($is_sht) $sqldr.=" 数据库: ·显示表状态";
+ $sqldr.="";
+ $headers="
\n".$abtn;
+
+}
+
+function print_header(){
+ global $err_msg,$VERSION,$DB,$dbh,$self,$is_sht,$xurl,$SHOW_T;
+ $dbn=$DB['db'];
+?>
+
+
+";
+ if ($is_sht) $headers.=" \n";
+ $sqldr.=$headers;
+ $swapper=false;
+ while($row=mysql_fetch_row($sth)){
+ $sqldr.="";
+ for($i=0;$i<$fields_num;$i++){
+ if ($is_sht && $i>0) break;
+ $meta=mysql_fetch_field($sth,$i);
+ $meta->name = str_replace(array('Name','Database'),array('表','数据库'),$meta->name);
+ $headers.=" ".$meta->name." ";
+ }
+ if ($is_shd) $headers.="创建数据库SQL 表状态 触发器 ";
+ if ($is_sht) $headers.="类型 行数 数据大小 索引大小 创建表SQL 详细 索引 导出 删除 清空 优化 修复 ";
+ $headers.="";
+ for($i=0;$i<$fields_num;$i++){
+ $v=$row[$i];$more='';
+ if ($is_sht && $v){
+ if ($i>0) break;
+ $vq='`'.$v.'`';
+ $url='?'.$xurl."&db=$dbn";
+ $v=""
+ ." \n";
+ }
+ $sqldr.="$v "
+ ."".$row[1]." "
+ ."".$row[4]." "
+ ."".$row[6]." "
+ ."".$row[8]." "
+ ."显示 "
+ ."详情 "
+ ."索引 "
+ ."导出 "
+ ."删除 "
+ ."清空 "
+ ."优化 "
+ ."修复";
+ }elseif ($is_shd && $i==0 && $v){
+ $url='?'.$xurl."&db=$v";
+ $v="$v "
+ ."显示 "
+ ."状态 "
+ ."触发器 "
+ ;
+ }else{
+ if (is_null($v)) $v="NULL";
+ elseif (preg_match('/[\x00-\x09\x0B\x0C\x0E-\x1F]+/',$v)) {
+ $vl=strlen($v);$pf='';
+ if ($vl>16 && $fields_num>1){
+ $v=substr($v, 0, 16);$pf='...';
+ }
+ $v='BINARY: '.chunk_split(strtoupper(bin2hex($v)),2,' ').$pf;
+ }else $v=htmlspecialchars($v);
+ }
+ if ($is_show_crt) $v="$v
";
+ $sqldr.="$v".(!strlen($v)?" ";
+ }
+ $sqldr.="
":'')."请输入访问密码
+数据库连接设置
+
+
\n$sql");
+ return $sth;
+}
+
+function db_array($sql, $dbh1=NULL, $skiperr=0, $isnum=0){
+ $sth=db_query($sql, $dbh1, $skiperr);
+ if (!$sth) return;
+ $res=array();
+ if ($isnum){
+ while($row=mysql_fetch_row($sth)) $res[]=$row;
+ }else{
+ while($row=mysql_fetch_assoc($sth)) $res[]=$row;
+ }
+ return $res;
+}
+
+function db_row($sql){
+ $sth=db_query($sql);
+ return mysql_fetch_assoc($sth);
+}
+
+function db_value($sql){
+ $sth=db_query($sql);
+ $row=mysql_fetch_row($sth);
+ return $row[0];
+}
+
+function get_identity($dbh1=NULL){
+ $dbh1=db_checkconnect($dbh1);
+ return mysql_insert_id($dbh1);
+}
+
+function get_db_select($sel=''){
+ global $DB,$SHOW_D;
+ if (is_array($_SESSION['sql_sd']) && $_REQUEST['db']!='*'){//check cache
+ $arr=$_SESSION['sql_sd'];
+ }else{
+ $arr=db_array($SHOW_D,NULL,1);
+ if (!is_array($arr)){
+ $arr=array( 0 => array('Database' => $DB['db']) );
+ }
+ $_SESSION['sql_sd']=$arr;
+ }
+ return @sel($arr,'Database',$sel);
+}
+
+function chset_select($sel=''){
+ global $DBDEF;
+ $result='';
+ if ($_SESSION['sql_chset']){
+ $arr=$_SESSION['sql_chset'];
+ }else{
+ $arr=db_array("show character set",NULL,1);
+ if (!is_array($arr)) $arr=array(array('Charset'=>$DBDEF['chset']));
+ $_SESSION['sql_chset']=$arr;
+ }
+
+ return @sel($arr,'Charset',$sel);
+}
+
+function sel($arr,$n,$sel=''){
+ foreach($arr as $a){
+ $b=$a[$n];
+ $res.="";
+ }
+ return $res;
+}
+
+function microtime_float(){
+ list($usec,$sec)=explode(" ",microtime());
+ return ((float)$usec+(float)$sec);
+}
+
+/* page nav
+*/
+function get_nav($pg, $all, $PP, $ptpl, $show_all=''){
+ $n=' ';
+ $sep=" $n|$n\n";
+ if (!$PP) $PP=10;
+ $allp=floor($all/$PP+0.999999);
+
+ $pname='';
+ $res='';
+ $w=array('Less','More','Back','Next','First','Total');
+
+ $sp=$pg-2;
+ if($sp<0) $sp=0;
+ if($allp-$sp<5 && $allp>=5) $sp=$allp-5;
+
+ $res="";
+
+ if($sp>0){
+ $pname=pen($sp-1,$ptpl);
+ $res.="$w[0]";
+ $res.=$sep;
+ }
+ for($p_p=$sp;$p_p<$allp && $p_p<$sp+5;$p_p++){
+ $first_s=$p_p*$PP+1;
+ $last_s=($p_p+1)*$PP;
+ $pname=pen($p_p,$ptpl);
+ if($last_s>$all){
+ $last_s=$all;
+ }
+ if($p_p==$pg){
+ $res.="$first_s..$last_s";
+ }else{
+ $res.="$first_s..$last_s";
+ }
+ if($p_p+1<$allp) $res.=$sep;
+ }
+ if($sp+5<$allp){
+ $pname=pen($sp+5,$ptpl);
+ $res.="$w[1]";
+ }
+ $res.="
\n";
+
+ if($pg>0){
+ $pname=pen($pg-1,$ptpl);
+ $res.="$w[2] $n|$n ";
+ $pname=pen(0,$ptpl);
+ $res.="$w[4]";
+ }
+ if($pg>0 && $pg+1<$allp) $res.=$sep;
+ if($pg+1<$allp){
+ $pname=pen($pg+1,$ptpl);
+ $res.="$w[3]";
+ }
+ if ($show_all) $res.=" ($w[5] - $all) ";
+
+ return $res;
+}
+
+function pen($p,$np=''){
+ return str_replace('%p%',$p, $np);
+}
+
+function killmq($value){
+ return is_array($value)?array_map('killmq',$value):stripslashes($value);
+}
+
+function savecfg(){
+ $v=$_REQUEST['v'];
+ $_SESSION['DB']=$v;
+ unset($_SESSION['sql_sd']);
+
+ if ($_REQUEST['rmb']){
+ $tm=time()+60*60*24*30;
+ newcookie("conn[db]", $v['db'],$tm);
+ newcookie("conn[user]",$v['user'],$tm);
+ newcookie("conn[pwd]", $v['pwd'],$tm);
+ newcookie("conn[host]",$v['host'],$tm);
+ newcookie("conn[port]",$v['port'],$tm);
+ newcookie("conn[chset]",$v['chset'],$tm);
+ }else{
+ newcookie("conn[db]", FALSE,-1);
+ newcookie("conn[user]",FALSE,-1);
+ newcookie("conn[pwd]", FALSE,-1);
+ newcookie("conn[host]",FALSE,-1);
+ newcookie("conn[port]",FALSE,-1);
+ newcookie("conn[chset]",FALSE,-1);
+ }
+}
+
+// Allow httponly cookies, or the password is stored plain text in a cookie
+function newcookie($n,$v,$e){$x;return setcookie($n,$v,$e,$x,$x,!!$x,!$x);}
+
+//during login only - from cookies or use defaults;
+function loadcfg(){
+ global $DBDEF;
+
+ if( isset($_COOKIE['conn']) ){
+ $a=$_COOKIE['conn'];
+ $_SESSION['DB']=$_COOKIE['conn'];
+ }else{
+ $_SESSION['DB']=$DBDEF;
+ }
+ if (!strlen($_SESSION['DB']['chset'])) $_SESSION['DB']['chset']=$DBDEF['chset'];
+}
+
+//each time - from session to $DB_*
+function loadsess(){
+ global $DB;
+
+ $DB=$_SESSION['DB'];
+
+ $rdb=$_REQUEST['db'];
+ if ($rdb=='*') $rdb='';
+ if ($rdb) {
+ $DB['db']=$rdb;
+ }
+}
+
+function print_export(){
+ global $self,$xurl,$DB;
+ $t=$_REQUEST['t'];
+ $l=($t)?"表 $t":"数据库";
+ print_header();
+?>
+导出
+
+ 数据
+
+
+
+
+
+
+
+导入数据库
+
+
+
+
+
+
\n";
+}
+
+function tmp_name() {
+ if ( function_exists('sys_get_temp_dir')) return tempnam(sys_get_temp_dir(),'pma');
+
+ if( !($temp=getenv('TMP')) )
+ if( !($temp=getenv('TEMP')) )
+ if( !($temp=getenv('TMPDIR')) ) {
+ $temp=tempnam(__FILE__,'');
+ if (file_exists($temp)) {
+ unlink($temp);
+ $temp=dirname($temp);
+ }
+ }
+ return $temp ? tempnam($temp,'pma') : null;
+}
+
+function hs($s){
+ return htmlspecialchars($s, ENT_COMPAT|ENT_HTML401,'UTF-8');
+}
+function eo($s){//echo+escape
+ echo hs($s);
+}
+?>
diff --git a/framework/library/qrcode/phpqrcode.php b/framework/library/qrcode/phpqrcode.php
new file mode 100644
index 0000000..ea8c08f
--- /dev/null
+++ b/framework/library/qrcode/phpqrcode.php
@@ -0,0 +1,3312 @@
+
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+
+
+/*
+ * Version: 1.1.4
+ * Build: 2010100721
+ */
+
+
+
+//---- qrconst.php -----------------------------
+
+
+
+
+
+/*
+ * PHP QR Code encoder
+ *
+ * Common constants
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi
+
';
+ }
+
+ }
+
+ //##########################################################################
+
+ QRtools::markTime('start');
+
+
+
+
+//---- qrspec.php -----------------------------
+
+
+
+
+/*
+ * PHP QR Code encoder
+ *
+ * QR Code specifications
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi
+ ';
+
+ foreach($GLOBALS['qr_time_bench'] as $markerId=>$thisTime) {
+ if ($p > 0) {
+ echo 'BENCHMARK ';
+ } else {
+ $startTime = $thisTime;
+ }
+
+ $p++;
+ $lastTime = $thisTime;
+ }
+
+ echo '
+ till '.$markerId.': '.number_format($thisTime-$lastTime, 6).'s
+
+ TOTAL: '.number_format($lastTime-$startTime, 6).'s
';
+ echo join("
", $frame);
+ echo '
';
+
+ } else {
+
+ foreach ($frame as &$frameLine) {
+ $frameLine = join(' ', explode("\xc0", $frameLine));
+ $frameLine = join('▒', explode("\xc1", $frameLine));
+ $frameLine = join(' ', explode("\xa0", $frameLine));
+ $frameLine = join('▒', explode("\xa1", $frameLine));
+ $frameLine = join('◇', explode("\x84", $frameLine)); //format 0
+ $frameLine = join('◆', explode("\x85", $frameLine)); //format 1
+ $frameLine = join('☢', explode("\x81", $frameLine)); //special bit
+ $frameLine = join(' ', explode("\x90", $frameLine)); //clock 0
+ $frameLine = join('◷', explode("\x91", $frameLine)); //clock 1
+ $frameLine = join(' ', explode("\x88", $frameLine)); //version
+ $frameLine = join('▒', explode("\x89", $frameLine)); //version
+ $frameLine = join('♦', explode("\x01", $frameLine));
+ $frameLine = join('⋅', explode("\0", $frameLine));
+ }
+
+ ?>
+
+ ";
+ echo join("
", $frame);
+ echo "";
+
+ }
+ }
+
+ //----------------------------------------------------------------------
+ public static function serial($frame)
+ {
+ return gzcompress(join("\n", $frame), 9);
+ }
+
+ //----------------------------------------------------------------------
+ public static function unserial($code)
+ {
+ return explode("\n", gzuncompress($code));
+ }
+
+ //----------------------------------------------------------------------
+ public static function newFrame($version)
+ {
+ if($version < 1 || $version > QRSPEC_VERSION_MAX)
+ return null;
+
+ if(!isset(self::$frames[$version])) {
+
+ $fileName = QR_CACHE_DIR.'frame_'.$version.'.dat';
+
+ if (QR_CACHEABLE) {
+ if (file_exists($fileName)) {
+ self::$frames[$version] = self::unserial(file_get_contents($fileName));
+ } else {
+ self::$frames[$version] = self::createFrame($version);
+ file_put_contents($fileName, self::serial(self::$frames[$version]));
+ }
+ } else {
+ self::$frames[$version] = self::createFrame($version);
+ }
+ }
+
+ if(is_null(self::$frames[$version]))
+ return null;
+
+ return self::$frames[$version];
+ }
+
+ //----------------------------------------------------------------------
+ public static function rsBlockNum($spec) { return $spec[0] + $spec[3]; }
+ public static function rsBlockNum1($spec) { return $spec[0]; }
+ public static function rsDataCodes1($spec) { return $spec[1]; }
+ public static function rsEccCodes1($spec) { return $spec[2]; }
+ public static function rsBlockNum2($spec) { return $spec[3]; }
+ public static function rsDataCodes2($spec) { return $spec[4]; }
+ public static function rsEccCodes2($spec) { return $spec[2]; }
+ public static function rsDataLength($spec) { return ($spec[0] * $spec[1]) + ($spec[3] * $spec[4]); }
+ public static function rsEccLength($spec) { return ($spec[0] + $spec[3]) * $spec[2]; }
+
+ }
+
+
+
+//---- qrimage.php -----------------------------
+
+
+
+
+/*
+ * PHP QR Code encoder
+ *
+ * Image output of code using GD2
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia