From 25479c729040fc5b312fe08a5eda6418109c2fd6 Mon Sep 17 00:00:00 2001 From: wizweishijun Date: Tue, 5 May 2020 13:18:56 +0800 Subject: [PATCH 01/31] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=A4=9C=E9=97=B4?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E5=A4=84=E7=90=86=E6=96=B9=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E8=BF=90=E8=A1=8C=E6=9C=9F=E9=97=B4=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E5=93=8D=E5=BA=94=E5=A4=96=E8=A7=82=E6=94=B9=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 2 +- build/osx/Info.plist | 4 +-- mac-package-old.sh | 61 +++++++++++++++++++++++++++++++ mac-package-qt-5.12.sh | 2 +- mac-package.sh | 8 +++-- src/WizCategoryView.cpp | 37 ++++++++++--------- src/WizCategoryView.h | 4 ++- src/WizDef.h | 2 +- src/WizDocumentListView.cpp | 34 +++++++++++++----- src/WizDocumentListView.h | 2 ++ src/WizDocumentView.cpp | 43 ++++++++++++++++++---- src/WizDocumentView.h | 3 ++ src/WizDocumentWebView.cpp | 5 +++ src/WizDocumentWebView.h | 2 ++ src/WizLineInputDialog.cpp | 1 + src/WizMainWindow.cpp | 70 ++++++++++++++++++++++++++---------- src/WizMainWindow.h | 9 ++++- src/WizTitleBar.cpp | 5 +++ src/WizTitleBar.h | 3 ++ src/WizTitleEdit.cpp | 15 +++++--- src/WizTitleEdit.h | 3 ++ src/mac/WizMacHelper.h | 1 + src/mac/WizMacHelper.mm | 47 ++++++++++++++++++++---- src/mac/WizMacHelper_mm.h | 2 +- src/main.cpp | 1 + src/share/WizUI.cpp | 15 ++++---- src/share/WizUIBase.h | 1 + src/utils/WizStyleHelper.cpp | 19 ++++++++-- 28 files changed, 317 insertions(+), 84 deletions(-) create mode 100644 mac-package-old.sh diff --git a/CMakeLists.txt b/CMakeLists.txt index 290187332..5d9dce68f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ else(APPLE) endif(APPLE) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") -set(CMAKE_OSX_SYSROOT "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk") +set(CMAKE_OSX_SYSROOT "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk") # rpath resolve. #set(CMAKE_BUILD_WITH_INSTALL_RPATH YES) // would cause wheelEvent problem on centos/fedora when compiled with qt5 diff --git a/build/osx/Info.plist b/build/osx/Info.plist index 11d0944ea..f7fdf963b 100644 --- a/build/osx/Info.plist +++ b/build/osx/Info.plist @@ -15,7 +15,7 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleShortVersionString - 2.8.5 + 2.8.6 LSApplicationCategoryType public.app-category.productivity CFBundleName @@ -59,8 +59,6 @@ - NSRequiresAquaSystemAppearance - NSServices diff --git a/mac-package-old.sh b/mac-package-old.sh new file mode 100644 index 000000000..fe5e01b23 --- /dev/null +++ b/mac-package-old.sh @@ -0,0 +1,61 @@ +# 挂载的volumn的名称 +volumn_name='wiznote-disk' +# 挂载点,一般不用修改,只配置volumn_name即可 +volumn_path="/Volumes/$volumn_name" + +REV=`git rev-list HEAD | wc -l | awk '{print $1}'` +echo "build version : " $REV + +# 以下参数只是用于自定义脚本的行为 +package_home="./macos-package" +package_output_path="$HOME" + +QTDIR="/Users/weishijun/Qt5.9.8/5.9.8/clang_64" + +mkdir ../WizQTClient-Release-QT5 +rm -rf ../WizQTClient-Release-QT5/* && \ +cd ../WizQTClient-Release-QT5 && \ +cmake -DCMAKE_BUILD_TYPE=Release -UPDATE_TRANSLATIONS=YES -DCMAKE_PREFIX_PATH=$QTDIR/lib/cmake -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk ../WizQTClient && \ +make -j5 + + +MYAPP="WizNote" +DEST="$MYAPP.app" # Our final App directory +BUILDDIR=$(pwd); + +echo "replace version" +plutil -replace CFBundleVersion -string $REV $MYAPP.app/Contents/Info.plist + +mkdir WizNote.app/Contents/Frameworks +#cp -R -p ~/Library/Frameworks/CrashReporter.framework WizNote.app/Contents/Frameworks + +echo "call macdeployqt" +$QTDIR/bin/macdeployqt $DEST + + +#install_name_tool -change @rpath/CrashReporter.framework/Versions/A/CrashReporter \ +# @executable_path/../Frameworks/CrashReporter.framework/Versions/A/CrashReporter WizNote.app/Contents/MacOS/WizNote + +APPLCERT="Developer ID Application: Beijing Wozhi Technology Co. Ltd (KCS8N3QJ92)" + +codesign --verbose=2 --deep --sign "$APPLCERT" WizNote.app + +cd ../WizQTClient + +setFile -a V ${package_home}/wiznote-disk-cover.jpg + +current_date=`date "+%Y-%m-%d"` +rm -f "${package_output_path}/tmp.dmg" +rm -f "${package_output_path}/wiznote-macos-${current_date}-old.dmg" +if [ -e "$package_home" ]; then + # 最好固定打包格式,可以只拷贝需要的文件,避免因为需要sudo权限才能访问的文件无法复制而导致失败 + #cp -R $volumn_path/wiznote.app $volumn_path/.wiznote-disk-cover.jpg $volumn_path/.DS_store $volumn_path/Applications $package_data_path + rm -rf ./${package_home}/WizNote.app && \ + cp -R ../WizQTClient-Release-QT5/WizNote.app ${package_home} && \ + hdiutil makehybrid -hfs -hfs-volume-name $volumn_name -hfs-openfolder $package_home $package_home -o "${package_output_path}/tmp.dmg" && \ + hdiutil convert -format UDZO "${package_output_path}/tmp.dmg" -o "${package_output_path}/wiznote-macos-${current_date}-old.dmg" && \ + rm -f "${package_output_path}/tmp.dmg" + rm -rf ./${package_home}/WizNote.app +else + echo "error:${package_home} not exist" +fi diff --git a/mac-package-qt-5.12.sh b/mac-package-qt-5.12.sh index 45c892267..413344d96 100755 --- a/mac-package-qt-5.12.sh +++ b/mac-package-qt-5.12.sh @@ -15,7 +15,7 @@ QTDIR="/Users/weishijun/Qt5.12.3/5.12.3/clang_64" mkdir ../WizQTClient-Release-QT5 rm -rf ../WizQTClient-Release-QT5/* && \ cd ../WizQTClient-Release-QT5 && \ -cmake -DCMAKE_BUILD_TYPE=Release -UPDATE_TRANSLATIONS=YES -DCMAKE_PREFIX_PATH=$QTDIR/lib/cmake -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk ../WizQTClient && \ +cmake -DCMAKE_BUILD_TYPE=Release -UPDATE_TRANSLATIONS=YES -DCMAKE_PREFIX_PATH=$QTDIR/lib/cmake -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk ../WizQTClient && \ make -j5 diff --git a/mac-package.sh b/mac-package.sh index 8e13f338c..2a9788655 100755 --- a/mac-package.sh +++ b/mac-package.sh @@ -10,12 +10,12 @@ echo "build version : " $REV package_home="./macos-package" package_output_path="$HOME" -QTDIR="/Users/weishijun/Qt5.7.1/5.7/clang_64" +QTDIR="/Users/weishijun/Qt5.12.8/5.12.8/clang_64" mkdir ../WizQTClient-Release-QT5 rm -rf ../WizQTClient-Release-QT5/* && \ cd ../WizQTClient-Release-QT5 && \ -cmake -DCMAKE_BUILD_TYPE=Release -UPDATE_TRANSLATIONS=YES -DCMAKE_PREFIX_PATH=$QTDIR/lib/cmake -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk ../WizQTClient && \ +cmake -DCMAKE_BUILD_TYPE=Release -UPDATE_TRANSLATIONS=YES -DCMAKE_PREFIX_PATH=$QTDIR/lib/cmake -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk ../WizQTClient && \ make -j5 @@ -40,6 +40,10 @@ APPLCERT="Developer ID Application: Beijing Wozhi Technology Co. Ltd (KCS8N3QJ92 codesign --verbose=2 --deep --sign "$APPLCERT" WizNote.app +#codesign --options=runtime --verbose=2 --deep --sign "$APPLCERT" WizNote.app +#ditto -ck --rsrc --sequesterRsrc "WizNote.app" "WizNote.zip" +#node ../WizQTClient/notarization.js $1 + cd ../WizQTClient setFile -a V ${package_home}/wiznote-disk-cover.jpg diff --git a/src/WizCategoryView.cpp b/src/WizCategoryView.cpp index e1583ceff..c20c2cbf5 100755 --- a/src/WizCategoryView.cpp +++ b/src/WizCategoryView.cpp @@ -214,6 +214,7 @@ WizCategoryBaseView::~WizCategoryBaseView() } } + void WizCategoryBaseView::mousePressEvent(QMouseEvent* event) { // saved for child item which need test hit position. @@ -1322,6 +1323,11 @@ WizCategoryView::~WizCategoryView() { } +void WizCategoryView::applyTheme() +{ + +} + void WizCategoryView::initMenus() { QAction* actionNewDoc = new QAction("ActionNewDocument", this); @@ -2473,22 +2479,20 @@ void WizCategoryView::on_action_user_copyFolder_confirmed(int result) void WizApplyDarkModeStyles_lineEditor(QObject* parent) { - if (isDarkMode()) { - for (QObject* child : parent->children()) { + for (QObject* child : parent->children()) { - if (QWidget* childWidget = dynamic_cast(child)) { - // - QString className = child->metaObject()->className(); - // - qDebug() << className << childWidget->geometry(); - // - if (QWidget* widget = dynamic_cast(child)) { - widget->setStyleSheet("color:#a6a6a6;background-color:#333333"); - } - } + if (QWidget* childWidget = dynamic_cast(child)) { + // + QString className = child->metaObject()->className(); + // + qDebug() << className << childWidget->geometry(); // - WizApplyDarkModeStyles_lineEditor(child); + if (QWidget* widget = dynamic_cast(child)) { + widget->setStyleSheet("color:#a6a6a6;background-color:#333333"); + } } + // + WizApplyDarkModeStyles_lineEditor(child); } } @@ -2513,12 +2517,7 @@ void WizCategoryView::on_action_renameItem() p->setFlags(p->flags() | Qt::ItemIsEditable); editItem(p, 0); // - if (isDarkMode()) { - //QTimer::singleShot(1000, [this] { - WizApplyDarkModeStyles_lineEditor(this); - //}); - } - + WizApplyDarkModeStyles_lineEditor(this); } } diff --git a/src/WizCategoryView.h b/src/WizCategoryView.h index 34a4c2729..d88dd1e5f 100755 --- a/src/WizCategoryView.h +++ b/src/WizCategoryView.h @@ -66,7 +66,7 @@ class WizCategoryBaseView : public QTreeWidget bool isCursorEntered() const { return m_cursorEntered; } QPoint hitPoint() const { return m_hitPos; } - + // protected: virtual void mousePressEvent(QMouseEvent* event); virtual void mouseReleaseEvent(QMouseEvent* event); @@ -239,6 +239,8 @@ class WizCategoryView : public WizCategoryBaseView bool isSectionVisible(CategorySection section) const; void loadSectionStatus(); + void applyTheme(); + public: WizCategoryViewItemBase* findFolder(const WIZDOCUMENTDATA& doc); diff --git a/src/WizDef.h b/src/WizDef.h index 5f5edb32f..78c922c67 100755 --- a/src/WizDef.h +++ b/src/WizDef.h @@ -3,7 +3,7 @@ #include -#define WIZ_CLIENT_VERSION "2.8.5" +#define WIZ_CLIENT_VERSION "2.8.6" #define WIZNOTE_FTS_VERSION "5" #define WIZNOTE_THUMB_VERSION "3" #define WIZ_NEW_FEATURE_GUIDE_VERSION "4" diff --git a/src/WizDocumentListView.cpp b/src/WizDocumentListView.cpp index 7b20e220c..5fcd6fa83 100755 --- a/src/WizDocumentListView.cpp +++ b/src/WizDocumentListView.cpp @@ -116,10 +116,8 @@ WizDocumentListView::WizDocumentListView(WizExplorerApp& app, QWidget *parent /* // setup style QString strSkinName = m_app.userSettings().skin(); setStyle(::WizGetStyle(strSkinName)); - - QPalette pal = palette(); - pal.setColor(QPalette::Base, Utils::WizStyleHelper::listViewBackground()); - setPalette(pal); + // + applyTheme(); setCursor(QCursor(Qt::ArrowCursor)); // @@ -275,6 +273,12 @@ WizDocumentListView::~WizDocumentListView() disconnect(); } +void WizDocumentListView::applyTheme() +{ + QPalette pal = palette(); + pal.setColor(QPalette::Base, Utils::WizStyleHelper::listViewBackground()); + setPalette(pal); +} void WizDocumentListView::resizeEvent(QResizeEvent* event) { #ifdef WIZNOTE_CUSTOM_SCROLLBAR @@ -2326,13 +2330,26 @@ void WizDocumentListView::setItemsNeedUpdate(const QString& strKbGUID, const QSt void WizDocumentListView::paintEvent(QPaintEvent *e) { - QListView::paintEvent(e); - if (model() && model()->rowCount(rootIndex()) > 0) - return; + if (model() && model()->rowCount(rootIndex()) > 0) { + // + QPainter p(viewport()); + // + QRect rc = rect(); + p.fillRect(rc, Utils::WizStyleHelper::listViewBackground()); + // + QListView::paintEvent(e); + // + return; + } + // // The view is empty. - + QListView::paintEvent(e); + // QPainter p(viewport()); // + QRect rc = rect(); + p.fillRect(rc, Utils::WizStyleHelper::listViewBackground()); + // if (m_emptyFolder.isNull()) { m_emptyFolder = QPixmap(Utils::WizStyleHelper::loadPixmap("empty_folder")); } @@ -2346,7 +2363,6 @@ void WizDocumentListView::paintEvent(QPaintEvent *e) imageSize.setWidth(int(imageSize.width() / pixmap.devicePixelRatio())); imageSize.setHeight(int(imageSize.height() / pixmap.devicePixelRatio())); #endif - QRect rc = rect(); // QString text = isSearchResult() ? tr("No search results...\nTry to change another keyword or advanced searching") diff --git a/src/WizDocumentListView.h b/src/WizDocumentListView.h index 3b19dd842..4c85d0f8c 100755 --- a/src/WizDocumentListView.h +++ b/src/WizDocumentListView.h @@ -52,6 +52,8 @@ class WizDocumentListView : public QListWidget public: explicit WizDocumentListView(WizExplorerApp& app, QWidget *parent = 0); virtual ~WizDocumentListView(); + // + void applyTheme(); void resetItemsViewType(int type); diff --git a/src/WizDocumentView.cpp b/src/WizDocumentView.cpp index 1a6b2b17f..6043a3bf9 100755 --- a/src/WizDocumentView.cpp +++ b/src/WizDocumentView.cpp @@ -79,13 +79,6 @@ WizDocumentView::WizDocumentView(WizExplorerApp& app, QWidget* parent) // m_tab = new QStackedWidget(this); // - if (isDarkMode()) { - setAutoFillBackground(true); - setStyleSheet("background-color:#272727;"); - m_tab->setAutoFillBackground(true); - m_tab->setStyleSheet("background-color:#272727;"); - } - m_passwordView->setGeometry(this->geometry()); connect(m_passwordView, SIGNAL(cipherCheckRequest()), SLOT(onCipherCheckRequest())); // @@ -119,6 +112,7 @@ WizDocumentView::WizDocumentView(WizExplorerApp& app, QWidget* parent) m_commentWidget->hide(); QWidget* wgtEditor = new QWidget(m_docView); + m_wgtEditor = wgtEditor; // //使用一个widget包含webview,否则夜间模式下新建编辑,界面容易出现晃动 QWidget* webContainer = new QWidget(wgtEditor); @@ -215,6 +209,8 @@ WizDocumentView::WizDocumentView(WizExplorerApp& app, QWidget* parent) connect(checkThread, SIGNAL(finished()), m_editStatusChecker, SLOT(clearTimers())); m_editStatusChecker->moveToThread(checkThread); checkThread->start(); + // + applyTheme(); } WizDocumentView::~WizDocumentView() @@ -226,6 +222,39 @@ WizDocumentView::~WizDocumentView() delete m_editStatusChecker; } +void WizDocumentView::applyTheme() { + // + m_title->applyTheme(); + m_web->editorResetFont(); + // + if (isDarkMode()) { + // + setAutoFillBackground(true); + setStyleSheet("background-color:#272727;"); + // + m_tab->setAutoFillBackground(true); + m_tab->setStyleSheet("background-color:#272727;"); + // + m_wgtEditor->setAutoFillBackground(true); + m_wgtEditor->setStyleSheet("background-color:#272727"); + // + titleBar()->setStyleSheet(QString("QWidget{background-color:#272727;} QLineEdit{padding:0px; padding-left:-2px; padding-bottom:1px; border:0px; border-radius:0px;}")); + titleBar()->setAutoFillBackground(true); + } else { + setAutoFillBackground(true); + setStyleSheet("background-color:#f5f5f5;"); + // + m_tab->setAutoFillBackground(true); + m_tab->setStyleSheet("background-color:#f5f5f5;"); + // + m_wgtEditor->setAutoFillBackground(true); + m_wgtEditor->setStyleSheet("background-color:white"); + // + titleBar()->setStyleSheet(QString("QWidget{background-color:#ffffff;} QLineEdit{padding:0px; padding-left:-2px; padding-bottom:1px; border:0px; border-radius:0px;}")); + titleBar()->setAutoFillBackground(true); + } +} + QSize WizDocumentView::sizeHint() const { return m_sizeHint; diff --git a/src/WizDocumentView.h b/src/WizDocumentView.h index 6f5a55067..91837be32 100755 --- a/src/WizDocumentView.h +++ b/src/WizDocumentView.h @@ -41,6 +41,8 @@ class WizDocumentView : public QWidget public: WizDocumentView(WizExplorerApp& app, QWidget* parent = 0); ~WizDocumentView(); + void applyTheme(); + // virtual QSize sizeHint() const; void setSizeHint(QSize size); @@ -73,6 +75,7 @@ class WizDocumentView : public QWidget WizSplitter* m_splitter; WizTitleBar* m_title; QWidget* m_blankView; + QWidget* m_wgtEditor; WizUserCipherForm* m_passwordView; WizDocumentEditStatusSyncThread* m_editStatusSyncThread; diff --git a/src/WizDocumentWebView.cpp b/src/WizDocumentWebView.cpp index 73fa45ec2..590466677 100755 --- a/src/WizDocumentWebView.cpp +++ b/src/WizDocumentWebView.cpp @@ -187,6 +187,11 @@ WizDocumentWebView::WizDocumentWebView(WizExplorerApp& app, QWidget* parent) WizDocumentWebView::~WizDocumentWebView() { +} + +void WizDocumentWebView::applyTheme() +{ + } void WizDocumentWebView::waitForDone() { diff --git a/src/WizDocumentWebView.h b/src/WizDocumentWebView.h index ecfadac9b..f7c0d688b 100755 --- a/src/WizDocumentWebView.h +++ b/src/WizDocumentWebView.h @@ -151,6 +151,8 @@ class WizDocumentWebView : public WizWebEngineView WizDocumentWebView(WizExplorerApp& app, QWidget* parent); ~WizDocumentWebView(); // + void applyTheme(); + // WizDocumentView* view() const; // void clear(); diff --git a/src/WizLineInputDialog.cpp b/src/WizLineInputDialog.cpp index 9d8043c46..3add74ad4 100755 --- a/src/WizLineInputDialog.cpp +++ b/src/WizLineInputDialog.cpp @@ -26,6 +26,7 @@ WizLineInputDialog::WizLineInputDialog(const QString& strTitle, connect(ui->editInput, SIGNAL(textChanged(QString)), SIGNAL(textChanged(QString))); // + if (isDarkMode()) { ui->editInput->setStyleSheet(QString("background-color:%1").arg(WizColorLineEditorBackground.name())); WizApplyDarkModeStyles(this); diff --git a/src/WizMainWindow.cpp b/src/WizMainWindow.cpp index bb0dab11a..d8135d6f2 100755 --- a/src/WizMainWindow.cpp +++ b/src/WizMainWindow.cpp @@ -236,7 +236,7 @@ WizMainWindow::WizMainWindow(WizDatabaseManager& dbMgr, QWidget *parent) m_doc, SLOT(on_document_data_changed(QString,WizDocumentView*))); connect(m_doc->titleBar(), SIGNAL(viewNoteInSeparateWindow_request()), SLOT(viewCurrentNoteInSeparateWindow())); - + // #if QT_VERSION > 0x050400 connect(&m_dbMgr, &WizDatabaseManager::userIdChanged, [](const QString& oldId, const QString& newId){ WizAvatarHost::deleteAvatar(oldId); @@ -296,6 +296,50 @@ WizMainWindow::WizMainWindow(WizDatabaseManager& dbMgr, QWidget *parent) syncMessageTimer->setInterval(3 * 1000 * 60); syncMessageTimer->start(3 * 1000 * 60); } + // + applyTheme(); +} + +void WizMainWindow::applyTheme() +{ + m_category->applyTheme(); + m_documents->applyTheme(); + m_doc->applyTheme(); + // + QPalette pal = m_noteListWidget->palette(); + if (isDarkMode()) { + pal.setColor(QPalette::Window, QColor("#272727")); + pal.setColor(QPalette::Base, QColor("#272727")); + + } else { + pal.setColor(QPalette::Window, QColor("#F5F5F5")); + pal.setColor(QPalette::Base, QColor("#F5F5F5")); + } + m_noteListWidget->setPalette(pal); + // + if (isDarkMode()) { + m_noteButtonsContainer->setStyleSheet("background-color:#333333"); + } else { + m_noteButtonsContainer->setStyleSheet("background-color:#f5f5f5"); + } + // + if (isDarkMode()) { + m_notelistHeaderSep->setStyleSheet("border-top-width:1;border-top-style:solid;border-top-color:#474747"); + } else { + m_notelistHeaderSep->setStyleSheet("border-top-width:1;border-top-style:solid;border-top-color:#DADAD9"); + } + // + //message list + pal = m_msgListWidget->palette(); + if (isDarkMode()) { + pal.setColor(QPalette::Window, QColor("#272727")); + pal.setColor(QPalette::Base, QColor("#272727")); + } else { + pal.setColor(QPalette::Window, QColor("#F5F5F5")); + pal.setColor(QPalette::Base, QColor("#F5F5F5")); + } + m_msgListWidget->setPalette(pal); + m_msgListWidget->setAutoFillBackground(true); } bool WizMainWindow::eventFilter(QObject* watched, QEvent* event) @@ -1926,8 +1970,6 @@ void WizMainWindow::initClient() m_clienWgt = new QWidget(this); setCentralWidget(m_clienWgt); - m_doc->setStyleSheet("{background-color:#f6f6f6"); - #else setCentralWidget(rootWidget()); // @@ -2018,10 +2060,6 @@ void WizMainWindow::initClient() m_doc->commentWidget()->setMinimumWidth(isHighPix ? 170 : 195); m_doc->web()->setMinimumWidth(576); - m_doc->setStyleSheet(QString("QLineEdit{border:1px solid #DDDDDD; border-radius:2px;}" - "QToolButton {border:0px; padding:0px; border-radius:0px;}")); - m_doc->titleBar()->setStyleSheet(QString("QLineEdit{padding:0px; padding-left:-2px; padding-bottom:1px; border:0px; border-radius:0px;}")); - m_msgListWidget->hide(); // connect(m_splitter, SIGNAL(splitterMoved(int, int)), SLOT(on_client_splitterMoved(int, int))); @@ -2059,6 +2097,7 @@ QWidget* WizMainWindow::createNoteListView() if (isDarkMode()) { noteButtonsContainer->setStyleSheet("background-color:#333333"); } + m_noteButtonsContainer = noteButtonsContainer; WizViewTypePopupButton* viewBtn = new WizViewTypePopupButton(*this, this); viewBtn->setFixedHeight(Utils::WizStyleHelper::listViewSortControlWidgetHeight()); @@ -2103,6 +2142,7 @@ QWidget* WizMainWindow::createNoteListView() } else { line2->setStyleSheet("border-top-width:1;border-top-style:solid;border-top-color:#DADAD9"); } + m_notelistHeaderSep = line2; layoutList->addWidget(noteButtonsContainer); layoutList->addWidget(line2); @@ -2125,16 +2165,6 @@ QWidget*WizMainWindow::createMessageListView() layoutList->setContentsMargins(0, 0, 0, 0); layoutList->setSpacing(0); m_msgListWidget->setLayout(layoutList); - QPalette pal = m_msgListWidget->palette(); - if (isDarkMode()) { - pal.setColor(QPalette::Window, QColor("#272727")); - pal.setColor(QPalette::Base, QColor("#272727")); - } else { - pal.setColor(QPalette::Window, QColor("#F5F5F5")); - pal.setColor(QPalette::Base, QColor("#F5F5F5")); - } - m_msgListWidget->setPalette(pal); - m_msgListWidget->setAutoFillBackground(true); m_msgListTitleBar = new WizMessageListTitleBar(*this, this); connect(m_msgListTitleBar, SIGNAL(messageSelector_senderSelected(QString)), @@ -4513,5 +4543,9 @@ void WizMainWindow::setNeedResetGroups() } - +void WizMainWindow::onThemeChanged() +{ + applyTheme(); + emit themeChanged(); +} diff --git a/src/WizMainWindow.h b/src/WizMainWindow.h index e68f2deb7..0865023cd 100755 --- a/src/WizMainWindow.h +++ b/src/WizMainWindow.h @@ -185,6 +185,8 @@ class WizMainWindow WizDocumentListView* m_documents; WizMessageListView* m_msgList; QWidget* m_noteListWidget; + QWidget* m_noteButtonsContainer; + QWidget* m_notelistHeaderSep; QWidget* m_msgListWidget; WizMessageListTitleBar* m_msgListTitleBar; @@ -278,9 +280,12 @@ class WizMainWindow // void processCategoryItemChanged(); // + void applyTheme(); + // signals: void documentsViewTypeChanged(int); void documentsSortTypeChanged(int); + void themeChanged(); public Q_SLOTS: void on_actionExit_triggered(); @@ -463,7 +468,9 @@ public Q_SLOTS: // void onAttachmentModified(QString strKbGUID, QString strGUID,QString strFileName, QString strMD5, QDateTime dtLastModified); - + // + // + void onThemeChanged(); public: // WizExplorerApp pointer virtual QWidget* mainWindow(); diff --git a/src/WizTitleBar.cpp b/src/WizTitleBar.cpp index aeda8fa21..217c261b5 100755 --- a/src/WizTitleBar.cpp +++ b/src/WizTitleBar.cpp @@ -216,6 +216,11 @@ WizTitleBar::WizTitleBar(WizExplorerApp& app, QWidget *parent) SLOT(on_commentCountAcquired(QString,int))); } +void WizTitleBar::applyTheme() +{ + m_editTitle->applyTheme(); +} + void WizTitleBar::initPlugins(QLayout* layout) { int nTitleHeight = Utils::WizStyleHelper::titleEditorHeight(); diff --git a/src/WizTitleBar.h b/src/WizTitleBar.h index bf8b3f14a..7a8932712 100755 --- a/src/WizTitleBar.h +++ b/src/WizTitleBar.h @@ -38,6 +38,9 @@ class WizTitleBar : public QWidget public: explicit WizTitleBar(WizExplorerApp& app, QWidget *parent); + void applyTheme(); + // + // WizDocumentView* noteView(); WizEditorToolBar* editorToolBar(); void setLocked(bool bReadOnly, int nReason, bool bIsGroup); diff --git a/src/WizTitleEdit.cpp b/src/WizTitleEdit.cpp index 9bd759b20..7245ae668 100755 --- a/src/WizTitleEdit.cpp +++ b/src/WizTitleEdit.cpp @@ -33,6 +33,15 @@ WizTitleEdit::WizTitleEdit(QWidget *parent) setFont(f); } +void WizTitleEdit::applyTheme() +{ + if (isDarkMode()) { + setStyleSheet("color:#a6a6a6;background-color:#272727"); + } else { + setStyleSheet("color:#535353;"); + } +} + QSize WizTitleEdit::sizeHint() const { return QSize(fontMetrics().width(text()), fontMetrics().height() + 10); @@ -229,11 +238,7 @@ void WizTitleEdit::setText(const QString& text) { QLineEdit::setText(text); setCursorPosition(0); - if (isDarkMode()) { - setStyleSheet("color:#a6a6a6;background-color:#272727"); - } else { - setStyleSheet("color:#535353;"); - } + applyTheme(); } void WizTitleEdit::onTitleReturnPressed() diff --git a/src/WizTitleEdit.h b/src/WizTitleEdit.h index 02cf6b868..ff919908d 100755 --- a/src/WizTitleEdit.h +++ b/src/WizTitleEdit.h @@ -15,6 +15,9 @@ class WizTitleEdit : public QLineEdit public: explicit WizTitleEdit(QWidget *parent); + void applyTheme(); + // + // void resetTitle(const QString& strTitle); void setReadOnly(bool b); diff --git a/src/mac/WizMacHelper.h b/src/mac/WizMacHelper.h index 63e656c7f..72ac0e249 100755 --- a/src/mac/WizMacHelper.h +++ b/src/mac/WizMacHelper.h @@ -60,6 +60,7 @@ int getSystemPatchVersion(); bool isDarkMode(); bool isMojaveOrHigher(); +void wizMacThemeInit(); void updateShareExtensionAccount(const QString &userId, const QString &userGUID, const QString &myWiz, const QString &displayName); void readShareExtensionAccount(); diff --git a/src/mac/WizMacHelper.mm b/src/mac/WizMacHelper.mm index f2d2788cd..304cf5394 100755 --- a/src/mac/WizMacHelper.mm +++ b/src/mac/WizMacHelper.mm @@ -31,13 +31,9 @@ #include #endif - - #define WizShareSettingsName @"KCS8N3QJ92.cn.wiz.extension" - - @interface DBSCustomView: NSView - (void)drawRect:(NSRect)dirtyRect; @@ -826,11 +822,12 @@ int getSystemPatchVersion() return bugfix; } -bool isDarkMode() +// +bool detectDarkMode(bool force) { static bool first = true; static bool ret = false; - if (first) { + if (first || force) { first = false; // int major = getSystemMajorVersion(); @@ -858,6 +855,16 @@ bool isDarkMode() } return ret; } +// +void resetDarkMode() +{ + detectDarkMode(true); +} + +bool isDarkMode() +{ + return detectDarkMode(false); +} bool isMojaveOrHigher() { @@ -1023,3 +1030,31 @@ void readShareExtensionAccount() return windowTitles; } + +@interface WizThemeHelper : NSObject +- (void) themeChanged: (NSNotification *) notification; +@end + +@implementation WizThemeHelper +- (id) init { + [super init]; + [NSDistributedNotificationCenter.defaultCenter addObserver:self selector:@selector(themeChanged:) name:@"AppleInterfaceThemeChangedNotification" object: nil]; +} + +-(void)themeChanged:(NSNotification *) notification { + + resetDarkMode(); + // + WizMainWindow *window = WizMainWindow::instance(); + if (window) { + window->onThemeChanged(); + } + // +} +@end + + +void wizMacThemeInit() { + static WizThemeHelper* helper = [WizThemeHelper new]; +} + diff --git a/src/mac/WizMacHelper_mm.h b/src/mac/WizMacHelper_mm.h index d7b0b7158..1b706871a 100755 --- a/src/mac/WizMacHelper_mm.h +++ b/src/mac/WizMacHelper_mm.h @@ -42,6 +42,6 @@ class WizChangeCocoaImplementation bool _apply; }; - +void wizMacThemeInit(); #endif // WIZMACHELPER_MM_H diff --git a/src/main.cpp b/src/main.cpp index 72960cf7a..162df7cfa 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -167,6 +167,7 @@ int mainCore(int argc, char *argv[]) #ifdef Q_OS_MAC wizMacInitUncaughtExceptionHandler(); wizMacRegisterSystemService(); + wizMacThemeInit(); // init sys local for crash report QString sysLocal = QLocale::system().name(); diff --git a/src/share/WizUI.cpp b/src/share/WizUI.cpp index 9a350b3f0..1dbbc814f 100755 --- a/src/share/WizUI.cpp +++ b/src/share/WizUI.cpp @@ -152,13 +152,14 @@ WizIconLineEditContainer::WizIconLineEditContainer(QWidget* parent) m_layout = new QHBoxLayout(this); m_edit = new QLineEdit(this); m_edit->setAttribute(Qt::WA_MacShowFocusRect, false); - if (isDarkMode()) { - m_edit->setStyleSheet(QString("QLineEdit{ border:none; color:#999999; " - "selection-background-color: #cccccc;}")); - } else { - m_edit->setStyleSheet(QString("QLineEdit{ border:none; color:#2F2F2F; " - "selection-background-color: #8ECAF1;}")); - } + m_edit->setStyleSheet(QString("QLineEdit{ border:none;}")); +// if (isDarkMode()) { +// m_edit->setStyleSheet(QString("QLineEdit{ border:none; color:#999999; " +// "selection-background-color: #cccccc;}")); +// } else { +// m_edit->setStyleSheet(QString("QLineEdit{ border:none; color:#2F2F2F; " +// "selection-background-color: #8ECAF1;}")); +// } m_leftIcon = new QLabel(this); m_rightIcon = new QLabel(this); // diff --git a/src/share/WizUIBase.h b/src/share/WizUIBase.h index da898e1fe..f6ab7d004 100755 --- a/src/share/WizUIBase.h +++ b/src/share/WizUIBase.h @@ -2,6 +2,7 @@ #define WIZUIBASE_H #include +#include bool isDarkMode(); QPixmap qpixmapWithTintColor(const QPixmap& pixmap, QColor tintColor); diff --git a/src/utils/WizStyleHelper.cpp b/src/utils/WizStyleHelper.cpp index 6b57482bd..cb984fab2 100755 --- a/src/utils/WizStyleHelper.cpp +++ b/src/utils/WizStyleHelper.cpp @@ -521,7 +521,8 @@ int WizStyleHelper::listViewItemHeight(int nType) QColor WizStyleHelper::listViewBackground() { - return QColor(getValue("Documents/Background", "#ffffff").toString()); + QString text = getValue("Documents/Background", "#ffffff").toString(); + return QColor(text); } int WizStyleHelper::listViewItemHorizontalPadding() @@ -1102,7 +1103,21 @@ int WizStyleHelper::editComboFontSize() QVariant WizStyleHelper::getValue(const QString& key, const QVariant& defaultValue) { - if (!m_settings) { + static bool oldIsDarkMode = isDarkMode(); + // + bool resetSettings = false; + if (oldIsDarkMode != isDarkMode()) { + oldIsDarkMode = isDarkMode(); + resetSettings = true; + } + // + if (!m_settings || resetSettings) { + // + if (m_settings) { + delete m_settings; + m_settings = nullptr; + } + // QString fileName = WizPathResolve::themePath(themeName()) + "skin.ini"; if (isDarkMode()) { QString darkFileName = WizPathResolve::themePath(themeName()) + "skin_dark.ini"; From 7f56aaf1acffc25e882f75d582aaf5bf0a58e295 Mon Sep 17 00:00:00 2001 From: wizweishijun Date: Tue, 5 May 2020 17:46:16 +0800 Subject: [PATCH 02/31] =?UTF-8?q?=E7=94=B1=E4=BA=8Ecmake=E5=B7=A5=E7=A8=8B?= =?UTF-8?q?=E6=89=93=E5=BC=80=E5=A4=AA=E6=85=A2=E4=BA=86=EF=BC=8C=E5=B0=9D?= =?UTF-8?q?=E8=AF=95=E4=BD=BF=E7=94=A8qmake=E5=B7=A5=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WizNote.pro | 8 + WizNote.pro.user | 222 +++++++ lib/cryptopp/cryptopp.pro | 53 ++ lib/quazip/quazip.pro | 45 ++ lib/zlib/CMakeCache.txt | 337 ++++++++++ .../CMakeFiles/3.12.3/CMakeCCompiler.cmake | 73 ++ .../3.12.3/CMakeDetermineCompilerABI_C.bin | Bin 0 -> 4304 bytes lib/zlib/CMakeFiles/3.12.3/CMakeSystem.cmake | 15 + .../3.12.3/CompilerIdC/CMakeCCompilerId.c | 623 ++++++++++++++++++ lib/zlib/CMakeFiles/3.12.3/CompilerIdC/a.out | Bin 0 -> 8616 bytes .../CMakeDirectoryInformation.cmake | 16 + lib/zlib/CMakeFiles/CMakeError.log | 90 +++ lib/zlib/CMakeFiles/CMakeOutput.log | 212 ++++++ lib/zlib/CMakeFiles/CheckTypeSize/OFF64_T.c | 46 ++ lib/zlib/CMakeFiles/Makefile.cmake | 113 ++++ lib/zlib/CMakeFiles/Makefile2 | 113 ++++ lib/zlib/CMakeFiles/TargetDirectories.txt | 4 + lib/zlib/CMakeFiles/cmake.check_cache | 1 + lib/zlib/CMakeFiles/feature_tests.bin | Bin 0 -> 4288 bytes lib/zlib/CMakeFiles/feature_tests.c | 34 + lib/zlib/CMakeFiles/progress.marks | 1 + lib/zlib/CMakeFiles/zlib.dir/DependInfo.cmake | 42 ++ lib/zlib/CMakeFiles/zlib.dir/build.make | 315 +++++++++ .../CMakeFiles/zlib.dir/cmake_clean.cmake | 26 + lib/zlib/CMakeFiles/zlib.dir/depend.make | 2 + lib/zlib/CMakeFiles/zlib.dir/flags.make | 10 + lib/zlib/CMakeFiles/zlib.dir/link.txt | 1 + lib/zlib/CMakeFiles/zlib.dir/progress.make | 17 + lib/zlib/CTestTestfile.cmake | 6 + lib/zlib/Makefile | 430 ++++++++++++ lib/zlib/cmake_install.cmake | 44 ++ lib/zlib/zconf.h | 513 ++++++++++++++ lib/zlib/zlib.pc | 13 + lib/zlib/zlib.pro | 41 ++ src/WizAttachmentListWidget.cpp | 2 +- src/WizCategoryView.cpp | 2 +- src/WizCategoryViewItem.cpp | 2 +- src/WizCombineNotesDialog.cpp | 2 +- src/WizDocTemplateDialog.cpp | 2 +- src/WizDocumentWebView.cpp | 2 +- src/WizFileImporter.cpp | 2 +- src/WizMainWindow.cpp | 2 +- src/WizMessageListView.cpp | 2 +- src/WizSvgEditorDialog.cpp | 2 +- src/WizThumbCache_p.h | 4 +- src/core/WizNoteManager.cpp | 2 +- src/html/WizHtmlCollector.cpp | 2 +- ...SearchWidget.mm => WizSearchWidget_mac.mm} | 0 src/share/WizAnalyzer.cpp | 2 +- src/share/WizDatabase.cpp | 2 +- src/share/WizFileIconProvider.cpp | 2 +- src/share/WizHtml2Zip.cpp | 2 +- src/share/WizIndex.cpp | 2 +- src/share/WizMd5.cpp | 2 +- src/share/WizMisc.cpp | 2 +- src/share/WizSearch.h | 2 +- src/share/WizZip.cpp | 2 +- src/src.pro | 459 +++++++++++++ src/sync/WizKMServer.cpp | 2 +- src/sync/WizSync.cpp | 2 +- src/utils/WizLogger.cpp | 2 +- src/utils/{WizMisc.cpp => WizMisc_utils.cpp} | 3 +- src/utils/{WizMisc.h => WizMisc_utils.h} | 0 src/utils/{WizNotify.mm => WizNotify_mac.mm} | 0 src/utils/WizPinyin.cpp | 2 +- src/utils/WizStyleHelper.cpp | 2 +- src/widgets/WizShareLinkDialog.cpp | 2 +- 67 files changed, 3954 insertions(+), 32 deletions(-) create mode 100644 WizNote.pro create mode 100644 WizNote.pro.user create mode 100644 lib/cryptopp/cryptopp.pro create mode 100644 lib/quazip/quazip.pro create mode 100644 lib/zlib/CMakeCache.txt create mode 100644 lib/zlib/CMakeFiles/3.12.3/CMakeCCompiler.cmake create mode 100755 lib/zlib/CMakeFiles/3.12.3/CMakeDetermineCompilerABI_C.bin create mode 100644 lib/zlib/CMakeFiles/3.12.3/CMakeSystem.cmake create mode 100644 lib/zlib/CMakeFiles/3.12.3/CompilerIdC/CMakeCCompilerId.c create mode 100755 lib/zlib/CMakeFiles/3.12.3/CompilerIdC/a.out create mode 100644 lib/zlib/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 lib/zlib/CMakeFiles/CMakeError.log create mode 100644 lib/zlib/CMakeFiles/CMakeOutput.log create mode 100644 lib/zlib/CMakeFiles/CheckTypeSize/OFF64_T.c create mode 100644 lib/zlib/CMakeFiles/Makefile.cmake create mode 100644 lib/zlib/CMakeFiles/Makefile2 create mode 100644 lib/zlib/CMakeFiles/TargetDirectories.txt create mode 100644 lib/zlib/CMakeFiles/cmake.check_cache create mode 100755 lib/zlib/CMakeFiles/feature_tests.bin create mode 100644 lib/zlib/CMakeFiles/feature_tests.c create mode 100644 lib/zlib/CMakeFiles/progress.marks create mode 100644 lib/zlib/CMakeFiles/zlib.dir/DependInfo.cmake create mode 100644 lib/zlib/CMakeFiles/zlib.dir/build.make create mode 100644 lib/zlib/CMakeFiles/zlib.dir/cmake_clean.cmake create mode 100644 lib/zlib/CMakeFiles/zlib.dir/depend.make create mode 100644 lib/zlib/CMakeFiles/zlib.dir/flags.make create mode 100644 lib/zlib/CMakeFiles/zlib.dir/link.txt create mode 100644 lib/zlib/CMakeFiles/zlib.dir/progress.make create mode 100644 lib/zlib/CTestTestfile.cmake create mode 100644 lib/zlib/Makefile create mode 100644 lib/zlib/cmake_install.cmake create mode 100644 lib/zlib/zconf.h create mode 100644 lib/zlib/zlib.pc create mode 100644 lib/zlib/zlib.pro rename src/mac/{WizSearchWidget.mm => WizSearchWidget_mac.mm} (100%) create mode 100644 src/src.pro rename src/utils/{WizMisc.cpp => WizMisc_utils.cpp} (95%) rename src/utils/{WizMisc.h => WizMisc_utils.h} (100%) rename src/utils/{WizNotify.mm => WizNotify_mac.mm} (100%) diff --git a/WizNote.pro b/WizNote.pro new file mode 100644 index 000000000..c39305680 --- /dev/null +++ b/WizNote.pro @@ -0,0 +1,8 @@ +TEMPLATE = subdirs + +SUBDIRS += \ + src \ + lib/quazip \ + lib/zlib \ + lib/cryptopp + diff --git a/WizNote.pro.user b/WizNote.pro.user new file mode 100644 index 000000000..809e44bf5 --- /dev/null +++ b/WizNote.pro.user @@ -0,0 +1,222 @@ + + + + + + EnvironmentId + {08ac04b0-605c-40b9-b125-0073f5bfaff8} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + true + false + 0 + true + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + true + + + + ProjectExplorer.Project.Target.0 + + Desktop Qt 5.12.8 clang 64bit + Desktop Qt 5.12.8 clang 64bit + qt.qt5.5128.clang_64_kit + 0 + 0 + 0 + + /Users/weishijun/WizTeam/build-WizNote-Desktop_Qt_5_12_8_clang_64bit-Debug + + + true + QtProjectManager.QMakeBuildStep + true + + false + false + false + + + true + Qt4ProjectManager.MakeStep + + false + + + false + + 2 + Build + Build + ProjectExplorer.BuildSteps.Build + + + + true + Qt4ProjectManager.MakeStep + + true + clean + + false + + 1 + Clean + Clean + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + Qt4ProjectManager.Qt4BuildConfiguration + 2 + + 1 + + + 0 + Deploy + Deploy + ProjectExplorer.BuildSteps.Deploy + + 1 + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + dwarf + + cpu-cycles + + + 250 + + -e + cpu-cycles + --call-graph + dwarf,4096 + -F + 250 + + -F + true + 4096 + false + false + 1000 + + true + + false + false + false + false + true + 0.01 + 10 + true + kcachegrind + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 2 + + Qt4ProjectManager.Qt4RunConfiguration:/Users/weishijun/WizTeam/WizQTClient/WizNote.pro + /Users/weishijun/WizTeam/WizQTClient/WizNote.pro + + false + + false + true + false + true + false + false + true + + /Users/weishijun/WizTeam/build-WizNote-Desktop_Qt_5_12_8_clang_64bit-Debug/WizNote.app/Contents/MacOS + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.FileVersion + 22 + + + Version + 22 + + diff --git a/lib/cryptopp/cryptopp.pro b/lib/cryptopp/cryptopp.pro new file mode 100644 index 000000000..a6d21453f --- /dev/null +++ b/lib/cryptopp/cryptopp.pro @@ -0,0 +1,53 @@ +QT -= gui + +TEMPLATE = lib +CONFIG += staticlib + +CONFIG += c++11 + +# The following define makes your compiler emit warnings if you use +# any Qt feature that has been marked deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if it uses deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + +macx { + DEFINES += CRYPTOPP_DISABLE_ASM + QMAKE_CXXFLAGS += -Wno-tautological-compare -Wno-unused-value -Wno-switch -Wno-string-plus-int -Wno-unused-variable -Wno-unused-parameter +} + +SOURCES += \ +3way.cpp cbcmac.cpp eccrypto.cpp hmac.cpp osrng.cpp rw.cpp tftables.cpp \ +adhoc.cpp ccm.cpp ecp.cpp hrtimer.cpp panama.cpp safer.cpp tiger.cpp \ +adler32.cpp channels.cpp elgamal.cpp ida.cpp pch.cpp salsa.cpp tigertab.cpp \ +algebra.cpp cmac.cpp emsa2.cpp idea.cpp pkcspad.cpp seal.cpp trdlocal.cpp \ +algparam.cpp cpu.cpp eprecomp.cpp integer.cpp polynomi.cpp seed.cpp ttmac.cpp \ +arc4.cpp crc.cpp esign.cpp iterhash.cpp pssr.cpp serpent.cpp twofish.cpp \ +asn.cpp cryptlib.cpp files.cpp luc.cpp pubkey.cpp sha.cpp validat1.cpp \ +authenc.cpp cryptlib_bds.cpp filters.cpp mars.cpp queue.cpp shacal2.cpp validat2.cpp \ +base32.cpp datatest.cpp fips140.cpp marss.cpp rabin.cpp shark.cpp validat3.cpp \ +base64.cpp default.cpp fipsalgt.cpp md2.cpp randpool.cpp sharkbox.cpp vmac.cpp \ +basecode.cpp des.cpp fipstest.cpp md4.cpp rc2.cpp simple.cpp wait.cpp \ +bench.cpp dessp.cpp gcm.cpp md5.cpp rc5.cpp skipjack.cpp wake.cpp \ +bench2.cpp dh.cpp gf256.cpp misc.cpp rc6.cpp socketft.cpp whrlpool.cpp \ +bfinit.cpp dh2.cpp gf2_32.cpp modes.cpp rdtables.cpp sosemanuk.cpp winpipes.cpp \ +blowfish.cpp dll.cpp gf2n.cpp mqueue.cpp regtest.cpp square.cpp xtr.cpp \ +blumshub.cpp dlltest.cpp gfpcrypt.cpp mqv.cpp rijndael.cpp squaretb.cpp xtrcrypt.cpp \ +camellia.cpp dsa.cpp gost.cpp nbtheory.cpp ripemd.cpp strciphr.cpp zdeflate.cpp \ +cast.cpp eax.cpp gzip.cpp network.cpp rng.cpp tea.cpp zinflate.cpp \ +casts.cpp ec2n.cpp hex.cpp oaep.cpp rsa.cpp test.cpp zlib.cpp + + + + +# Default rules for deployment. +unix { + target.path = $$[QT_INSTALL_PLUGINS]/generic +} +!isEmpty(target.path): INSTALLS += target + diff --git a/lib/quazip/quazip.pro b/lib/quazip/quazip.pro new file mode 100644 index 000000000..8fe3bb652 --- /dev/null +++ b/lib/quazip/quazip.pro @@ -0,0 +1,45 @@ +QT -= gui + +TEMPLATE = lib +CONFIG += staticlib + +CONFIG += c++11 + +# The following define makes your compiler emit warnings if you use +# any Qt feature that has been marked deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if it uses deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + +SOURCES += \ + JlCompress.cpp \ + quagzipfile.cpp \ + quazipfile.cpp \ + qioapi.cpp \ + quaziodevice.cpp \ + quazipfileinfo.cpp \ + quaadler32.cpp \ + quazip.cpp \ + quazipnewinfo.cpp \ + quacrc32.cpp \ + quazipdir.cpp \ + zip.c \ + unzip.c + + + +HEADERS += \ + quazipfile.h \ + quazip.h + +# Default rules for deployment. +unix { + target.path = $$[QT_INSTALL_PLUGINS]/generic +} +!isEmpty(target.path): INSTALLS += target + diff --git a/lib/zlib/CMakeCache.txt b/lib/zlib/CMakeCache.txt new file mode 100644 index 000000000..341bc2cab --- /dev/null +++ b/lib/zlib/CMakeCache.txt @@ -0,0 +1,337 @@ +# This is the CMakeCache file. +# For build in directory: /Users/weishijun/WizTeam/WizQTClient/lib/zlib +# It was generated by CMake: /usr/local/Cellar/cmake/3.12.3/bin/cmake +# You can edit this file to change values found and used by cmake. +# If you do not want to change any of the values, simply exit the editor. +# If you do want to change a value, simply edit, save, and exit the editor. +# The syntax for the file is as follows: +# KEY:TYPE=VALUE +# KEY is the name of a variable in the cache. +# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. +# VALUE is the current value for the KEY. + +######################## +# EXTERNAL cache entries +######################## + +//Enable building amd64 assembly implementation +AMD64:BOOL=OFF + +//Enable building i686 assembly implementation +ASM686:BOOL=OFF + +//Path to a program. +CMAKE_AR:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar + +//For backwards compatibility, what version of CMake commands and +// syntax should this version of CMake try to support. +CMAKE_BACKWARDS_COMPATIBILITY:STRING=2.4 + +//Choose the type of build, options are: None Debug Release RelWithDebInfo +// MinSizeRel ... +CMAKE_BUILD_TYPE:STRING= + +//Enable/Disable color output during build. +CMAKE_COLOR_MAKEFILE:BOOL=ON + +//C compiler +CMAKE_C_COMPILER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc + +//Flags used by the C compiler during all build types. +CMAKE_C_FLAGS:STRING= + +//Flags used by the C compiler during DEBUG builds. +CMAKE_C_FLAGS_DEBUG:STRING=-g + +//Flags used by the C compiler during MINSIZEREL builds. +CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG + +//Flags used by the C compiler during RELEASE builds. +CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG + +//Flags used by the C compiler during RELWITHDEBINFO builds. +CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG + +//Flags used by the linker during all build types. +CMAKE_EXE_LINKER_FLAGS:STRING= + +//Flags used by the linker during DEBUG builds. +CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during MINSIZEREL builds. +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during RELEASE builds. +CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during RELWITHDEBINFO builds. +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Enable/Disable output of compile commands during generation. +CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF + +//Path to a program. +CMAKE_INSTALL_NAME_TOOL:FILEPATH=/usr/bin/install_name_tool + +//Install path prefix, prepended onto install directories. +CMAKE_INSTALL_PREFIX:PATH=/usr/local + +//Path to a program. +CMAKE_LINKER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld + +//Path to a program. +CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make + +//Flags used by the linker during the creation of modules during +// all build types. +CMAKE_MODULE_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of modules during +// DEBUG builds. +CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of modules during +// MINSIZEREL builds. +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of modules during +// RELEASE builds. +CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of modules during +// RELWITHDEBINFO builds. +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_NM:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm + +//Path to a program. +CMAKE_OBJCOPY:FILEPATH=CMAKE_OBJCOPY-NOTFOUND + +//Path to a program. +CMAKE_OBJDUMP:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump + +//Build architectures for OSX +CMAKE_OSX_ARCHITECTURES:STRING= + +//Minimum OS X version to target for deployment (at runtime); newer +// APIs weak linked. Set to empty string for default value. +CMAKE_OSX_DEPLOYMENT_TARGET:STRING= + +//The product will be built against the headers and libraries located +// inside the indicated SDK. +CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk + +//Value Computed by CMake +CMAKE_PROJECT_NAME:STATIC=zlib + +//Path to a program. +CMAKE_RANLIB:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib + +//Flags used by the linker during the creation of shared libraries +// during all build types. +CMAKE_SHARED_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of shared libraries +// during DEBUG builds. +CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of shared libraries +// during MINSIZEREL builds. +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of shared libraries +// during RELEASE builds. +CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of shared libraries +// during RELWITHDEBINFO builds. +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//If set, runtime paths are not added when installing shared libraries, +// but are added when building. +CMAKE_SKIP_INSTALL_RPATH:BOOL=NO + +//If set, runtime paths are not added when using shared libraries. +CMAKE_SKIP_RPATH:BOOL=NO + +//Flags used by the linker during the creation of static libraries +// during all build types. +CMAKE_STATIC_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of static libraries +// during DEBUG builds. +CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of static libraries +// during MINSIZEREL builds. +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of static libraries +// during RELEASE builds. +CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of static libraries +// during RELWITHDEBINFO builds. +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_STRIP:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip + +//If this value is on, makefiles will be generated without the +// .SILENT directive, and all commands will be echoed to the console +// during the make. This is useful for debugging only. With Visual +// Studio IDE projects all commands are done without /nologo. +CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE + +//Single output directory for building all executables. +EXECUTABLE_OUTPUT_PATH:PATH= + +//Single output directory for building all libraries. +LIBRARY_OUTPUT_PATH:PATH= + +//Value Computed by CMake +zlib_BINARY_DIR:STATIC=/Users/weishijun/WizTeam/WizQTClient/lib/zlib + +//Value Computed by CMake +zlib_SOURCE_DIR:STATIC=/Users/weishijun/WizTeam/WizQTClient/lib/zlib + + +######################## +# INTERNAL cache entries +######################## + +//ADVANCED property for variable: CMAKE_AR +CMAKE_AR-ADVANCED:INTERNAL=1 +//This is the directory where this CMakeCache.txt was created +CMAKE_CACHEFILE_DIR:INTERNAL=/Users/weishijun/WizTeam/WizQTClient/lib/zlib +//Major version of cmake used to create the current loaded cache +CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 +//Minor version of cmake used to create the current loaded cache +CMAKE_CACHE_MINOR_VERSION:INTERNAL=12 +//Patch version of cmake used to create the current loaded cache +CMAKE_CACHE_PATCH_VERSION:INTERNAL=3 +//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE +CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1 +//Path to CMake executable. +CMAKE_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.12.3/bin/cmake +//Path to cpack program executable. +CMAKE_CPACK_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.12.3/bin/cpack +//Path to ctest program executable. +CMAKE_CTEST_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.12.3/bin/ctest +//ADVANCED property for variable: CMAKE_C_COMPILER +CMAKE_C_COMPILER-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS +CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG +CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL +CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE +CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO +CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//Path to cache edit program executable. +CMAKE_EDIT_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.12.3/bin/ccmake +//Executable file format +CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS +CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG +CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE +CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS +CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1 +//Name of external makefile project generator. +CMAKE_EXTRA_GENERATOR:INTERNAL= +//Name of generator. +CMAKE_GENERATOR:INTERNAL=Unix Makefiles +//Generator instance identifier. +CMAKE_GENERATOR_INSTANCE:INTERNAL= +//Name of generator platform. +CMAKE_GENERATOR_PLATFORM:INTERNAL= +//Name of generator toolset. +CMAKE_GENERATOR_TOOLSET:INTERNAL= +//Source directory with the top level CMakeLists.txt file for this +// project +CMAKE_HOME_DIRECTORY:INTERNAL=/Users/weishijun/WizTeam/WizQTClient/lib/zlib +//ADVANCED property for variable: CMAKE_INSTALL_NAME_TOOL +CMAKE_INSTALL_NAME_TOOL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_LINKER +CMAKE_LINKER-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MAKE_PROGRAM +CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS +CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG +CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE +CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_NM +CMAKE_NM-ADVANCED:INTERNAL=1 +//number of local generators +CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1 +//ADVANCED property for variable: CMAKE_OBJCOPY +CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_OBJDUMP +CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 +//Platform information initialized +CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_RANLIB +CMAKE_RANLIB-ADVANCED:INTERNAL=1 +//Path to CMake installation. +CMAKE_ROOT:INTERNAL=/usr/local/Cellar/cmake/3.12.3/share/cmake +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS +CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG +CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE +CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH +CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_RPATH +CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS +CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG +CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE +CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STRIP +CMAKE_STRIP-ADVANCED:INTERNAL=1 +//uname command +CMAKE_UNAME:INTERNAL=/usr/bin/uname +//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE +CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 +//Have function fseeko +HAVE_FSEEKO:INTERNAL=1 +//Result of TRY_COMPILE +HAVE_OFF64_T:INTERNAL=FALSE +//Have include stddef.h +HAVE_STDDEF_H:INTERNAL=1 +//Have include stdint.h +HAVE_STDINT_H:INTERNAL=1 +//Have include sys/types.h +HAVE_SYS_TYPES_H:INTERNAL=1 +//CHECK_TYPE_SIZE: off64_t unknown +OFF64_T:INTERNAL= +//Have include unistd.h +Z_HAVE_UNISTD_H:INTERNAL=1 + diff --git a/lib/zlib/CMakeFiles/3.12.3/CMakeCCompiler.cmake b/lib/zlib/CMakeFiles/3.12.3/CMakeCCompiler.cmake new file mode 100644 index 000000000..7e0deca30 --- /dev/null +++ b/lib/zlib/CMakeFiles/3.12.3/CMakeCCompiler.cmake @@ -0,0 +1,73 @@ +set(CMAKE_C_COMPILER "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc") +set(CMAKE_C_COMPILER_ARG1 "") +set(CMAKE_C_COMPILER_ID "AppleClang") +set(CMAKE_C_COMPILER_VERSION "11.0.3.11030032") +set(CMAKE_C_COMPILER_VERSION_INTERNAL "") +set(CMAKE_C_COMPILER_WRAPPER "") +set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") +set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") +set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") +set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") +set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") + +set(CMAKE_C_PLATFORM_ID "Darwin") +set(CMAKE_C_SIMULATE_ID "") +set(CMAKE_C_SIMULATE_VERSION "") + + + +set(CMAKE_AR "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar") +set(CMAKE_C_COMPILER_AR "") +set(CMAKE_RANLIB "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib") +set(CMAKE_C_COMPILER_RANLIB "") +set(CMAKE_LINKER "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld") +set(CMAKE_COMPILER_IS_GNUCC ) +set(CMAKE_C_COMPILER_LOADED 1) +set(CMAKE_C_COMPILER_WORKS TRUE) +set(CMAKE_C_ABI_COMPILED TRUE) +set(CMAKE_COMPILER_IS_MINGW ) +set(CMAKE_COMPILER_IS_CYGWIN ) +if(CMAKE_COMPILER_IS_CYGWIN) + set(CYGWIN 1) + set(UNIX 1) +endif() + +set(CMAKE_C_COMPILER_ENV_VAR "CC") + +if(CMAKE_COMPILER_IS_MINGW) + set(MINGW 1) +endif() +set(CMAKE_C_COMPILER_ID_RUN 1) +set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) +set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) +set(CMAKE_C_LINKER_PREFERENCE 10) + +# Save compiler ABI information. +set(CMAKE_C_SIZEOF_DATA_PTR "8") +set(CMAKE_C_COMPILER_ABI "") +set(CMAKE_C_LIBRARY_ARCHITECTURE "") + +if(CMAKE_C_SIZEOF_DATA_PTR) + set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") +endif() + +if(CMAKE_C_COMPILER_ABI) + set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") +endif() + +if(CMAKE_C_LIBRARY_ARCHITECTURE) + set(CMAKE_LIBRARY_ARCHITECTURE "") +endif() + +set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") +if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) + set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") +endif() + + + + + +set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "") +set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib") +set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks") diff --git a/lib/zlib/CMakeFiles/3.12.3/CMakeDetermineCompilerABI_C.bin b/lib/zlib/CMakeFiles/3.12.3/CMakeDetermineCompilerABI_C.bin new file mode 100755 index 0000000000000000000000000000000000000000..a436e109367a10a06eecbf537c9c70ee740664e6 GIT binary patch literal 4304 zcmeHK&ubGw7@ckE544&hDvF|^2eBeaF@ixnsJOa8X^S=>Y8jjCmM%0K&2F$2gkC%Z z5qj_{^yD8P2zv42p%+1KdKAH1M2|&8d~Y%}v)c9_a6WjM@6C^I-n{JPd-vn(uPs72 z86iX;uoEbOJQO)(LhJ`TK+5rRm)slf)iKVd!%5RM8S9j=QOXJT`b2t*IzO166Pj>E>OYu6H|&$6%qTw~+Vuwv#NFRLWW-ihBkB*0-eV?a_zGQ}xVZ$fayW z_rl1RVKm)PJgx7gu18N9L==p!8JbKx^P+s*8{-k`w_~60Mv2! z`K@ms-WH#|`ZzrF^z(~dCoq=-)ScOFq90(czLU+z`;H-pdlc1hIpNFonicN?k0PB1B*@|&kbNXe&I$#~J4p;}Q1J(iSfOWt+ zU>*2B9jJKiFU#&vKEC~6#cQ{|FS{Kwuja0Jk9QnInti?7$y7S+O6QT=nS8ToMtSt& z*y%XDA2g<=eOV literal 0 HcmV?d00001 diff --git a/lib/zlib/CMakeFiles/3.12.3/CMakeSystem.cmake b/lib/zlib/CMakeFiles/3.12.3/CMakeSystem.cmake new file mode 100644 index 000000000..44e06d90b --- /dev/null +++ b/lib/zlib/CMakeFiles/3.12.3/CMakeSystem.cmake @@ -0,0 +1,15 @@ +set(CMAKE_HOST_SYSTEM "Darwin-19.2.0") +set(CMAKE_HOST_SYSTEM_NAME "Darwin") +set(CMAKE_HOST_SYSTEM_VERSION "19.2.0") +set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") + + + +set(CMAKE_SYSTEM "Darwin-19.2.0") +set(CMAKE_SYSTEM_NAME "Darwin") +set(CMAKE_SYSTEM_VERSION "19.2.0") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(CMAKE_CROSSCOMPILING "FALSE") + +set(CMAKE_SYSTEM_LOADED 1) diff --git a/lib/zlib/CMakeFiles/3.12.3/CompilerIdC/CMakeCCompilerId.c b/lib/zlib/CMakeFiles/3.12.3/CompilerIdC/CMakeCCompilerId.c new file mode 100644 index 000000000..bfc6ebbfb --- /dev/null +++ b/lib/zlib/CMakeFiles/3.12.3/CompilerIdC/CMakeCCompilerId.c @@ -0,0 +1,623 @@ +#ifdef __cplusplus +# error "A C++ compiler has been selected for C." +#endif + +#if defined(__18CXX) +# define ID_VOID_MAIN +#endif +#if defined(__CLASSIC_C__) +/* cv-qualifiers did not exist in K&R C */ +# define const +# define volatile +#endif + + +/* Version number components: V=Version, R=Revision, P=Patch + Version date components: YYYY=Year, MM=Month, DD=Day */ + +#if defined(__INTEL_COMPILER) || defined(__ICC) +# define COMPILER_ID "Intel" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif + /* __INTEL_COMPILER = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) +# if defined(__INTEL_COMPILER_UPDATE) +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) +# else +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) +# endif +# if defined(__INTEL_COMPILER_BUILD_DATE) + /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ +# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) +# endif +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__PATHCC__) +# define COMPILER_ID "PathScale" +# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) +# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) +# if defined(__PATHCC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) +# endif + +#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) +# define COMPILER_ID "Embarcadero" +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) +# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) + +#elif defined(__BORLANDC__) +# define COMPILER_ID "Borland" + /* __BORLANDC__ = 0xVRR */ +# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) +# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) + +#elif defined(__WATCOMC__) && __WATCOMC__ < 1200 +# define COMPILER_ID "Watcom" + /* __WATCOMC__ = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__WATCOMC__) +# define COMPILER_ID "OpenWatcom" + /* __WATCOMC__ = VVRP + 1100 */ +# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__SUNPRO_C) +# define COMPILER_ID "SunPro" +# if __SUNPRO_C >= 0x5100 + /* __SUNPRO_C = 0xVRRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) +# else + /* __SUNPRO_CC = 0xVRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) +# endif + +#elif defined(__HP_cc) +# define COMPILER_ID "HP" + /* __HP_cc = VVRRPP */ +# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000) +# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100) +# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100) + +#elif defined(__DECC) +# define COMPILER_ID "Compaq" + /* __DECC_VER = VVRRTPPPP */ +# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000) +# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100) +# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000) + +#elif defined(__IBMC__) && defined(__COMPILER_VER__) +# define COMPILER_ID "zOS" +# if defined(__ibmxl__) +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) +# else + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) +# endif + + +#elif defined(__ibmxl__) || (defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800) +# define COMPILER_ID "XL" +# if defined(__ibmxl__) +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) +# else + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) +# endif + + +#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800 +# define COMPILER_ID "VisualAge" +# if defined(__ibmxl__) +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) +# else + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) +# endif + + +#elif defined(__PGI) +# define COMPILER_ID "PGI" +# define COMPILER_VERSION_MAJOR DEC(__PGIC__) +# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) +# if defined(__PGIC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) +# endif + +#elif defined(_CRAYC) +# define COMPILER_ID "Cray" +# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) + +#elif defined(__TI_COMPILER_VERSION__) +# define COMPILER_ID "TI" + /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ +# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) +# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) +# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) + +#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) +# define COMPILER_ID "Fujitsu" + +#elif defined(__TINYC__) +# define COMPILER_ID "TinyCC" + +#elif defined(__BCC__) +# define COMPILER_ID "Bruce" + +#elif defined(__SCO_VERSION__) +# define COMPILER_ID "SCO" + +#elif defined(__clang__) && defined(__apple_build_version__) +# define COMPILER_ID "AppleClang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) + +#elif defined(__clang__) +# define COMPILER_ID "Clang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__GNUC__) +# define COMPILER_ID "GNU" +# define COMPILER_VERSION_MAJOR DEC(__GNUC__) +# if defined(__GNUC_MINOR__) +# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(_MSC_VER) +# define COMPILER_ID "MSVC" + /* _MSC_VER = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) +# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) +# if defined(_MSC_FULL_VER) +# if _MSC_VER >= 1400 + /* _MSC_FULL_VER = VVRRPPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) +# else + /* _MSC_FULL_VER = VVRRPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) +# endif +# endif +# if defined(_MSC_BUILD) +# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) +# endif + +#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) +# define COMPILER_ID "ADSP" +#if defined(__VISUALDSPVERSION__) + /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ +# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) +# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) +#endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# define COMPILER_ID "IAR" +# if defined(__VER__) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) +# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) +# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# endif + +#elif defined(__ARMCC_VERSION) +# define COMPILER_ID "ARMCC" +#if __ARMCC_VERSION >= 1000000 + /* __ARMCC_VERSION = VRRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#else + /* __ARMCC_VERSION = VRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#endif + + +#elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC) +# define COMPILER_ID "SDCC" +# if defined(__SDCC_VERSION_MAJOR) +# define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR) +# define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR) +# define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH) +# else + /* SDCC = VRP */ +# define COMPILER_VERSION_MAJOR DEC(SDCC/100) +# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10) +# define COMPILER_VERSION_PATCH DEC(SDCC % 10) +# endif + +#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) +# define COMPILER_ID "MIPSpro" +# if defined(_SGI_COMPILER_VERSION) + /* _SGI_COMPILER_VERSION = VRP */ +# define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100) +# define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10) +# define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10) +# else + /* _COMPILER_VERSION = VRP */ +# define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100) +# define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10) +# define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10) +# endif + + +/* These compilers are either not known or too old to define an + identification macro. Try to identify the platform and guess that + it is the native compiler. */ +#elif defined(__sgi) +# define COMPILER_ID "MIPSpro" + +#elif defined(__hpux) || defined(__hpua) +# define COMPILER_ID "HP" + +#else /* unknown compiler */ +# define COMPILER_ID "" +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; +#ifdef SIMULATE_ID +char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; +#endif + +#ifdef __QNXNTO__ +char const* qnxnto = "INFO" ":" "qnxnto[]"; +#endif + +#if defined(__CRAYXE) || defined(__CRAYXC) +char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; +#endif + +#define STRINGIFY_HELPER(X) #X +#define STRINGIFY(X) STRINGIFY_HELPER(X) + +/* Identify known platforms by name. */ +#if defined(__linux) || defined(__linux__) || defined(linux) +# define PLATFORM_ID "Linux" + +#elif defined(__CYGWIN__) +# define PLATFORM_ID "Cygwin" + +#elif defined(__MINGW32__) +# define PLATFORM_ID "MinGW" + +#elif defined(__APPLE__) +# define PLATFORM_ID "Darwin" + +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) +# define PLATFORM_ID "Windows" + +#elif defined(__FreeBSD__) || defined(__FreeBSD) +# define PLATFORM_ID "FreeBSD" + +#elif defined(__NetBSD__) || defined(__NetBSD) +# define PLATFORM_ID "NetBSD" + +#elif defined(__OpenBSD__) || defined(__OPENBSD) +# define PLATFORM_ID "OpenBSD" + +#elif defined(__sun) || defined(sun) +# define PLATFORM_ID "SunOS" + +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) +# define PLATFORM_ID "AIX" + +#elif defined(__sgi) || defined(__sgi__) || defined(_SGI) +# define PLATFORM_ID "IRIX" + +#elif defined(__hpux) || defined(__hpux__) +# define PLATFORM_ID "HP-UX" + +#elif defined(__HAIKU__) +# define PLATFORM_ID "Haiku" + +#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) +# define PLATFORM_ID "BeOS" + +#elif defined(__QNX__) || defined(__QNXNTO__) +# define PLATFORM_ID "QNX" + +#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) +# define PLATFORM_ID "Tru64" + +#elif defined(__riscos) || defined(__riscos__) +# define PLATFORM_ID "RISCos" + +#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) +# define PLATFORM_ID "SINIX" + +#elif defined(__UNIX_SV__) +# define PLATFORM_ID "UNIX_SV" + +#elif defined(__bsdos__) +# define PLATFORM_ID "BSDOS" + +#elif defined(_MPRAS) || defined(MPRAS) +# define PLATFORM_ID "MP-RAS" + +#elif defined(__osf) || defined(__osf__) +# define PLATFORM_ID "OSF1" + +#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) +# define PLATFORM_ID "SCO_SV" + +#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) +# define PLATFORM_ID "ULTRIX" + +#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) +# define PLATFORM_ID "Xenix" + +#elif defined(__WATCOMC__) +# if defined(__LINUX__) +# define PLATFORM_ID "Linux" + +# elif defined(__DOS__) +# define PLATFORM_ID "DOS" + +# elif defined(__OS2__) +# define PLATFORM_ID "OS2" + +# elif defined(__WINDOWS__) +# define PLATFORM_ID "Windows3x" + +# else /* unknown platform */ +# define PLATFORM_ID +# endif + +#else /* unknown platform */ +# define PLATFORM_ID + +#endif + +/* For windows compilers MSVC and Intel we can determine + the architecture of the compiler being used. This is because + the compilers do not have flags that can change the architecture, + but rather depend on which compiler is being used +*/ +#if defined(_WIN32) && defined(_MSC_VER) +# if defined(_M_IA64) +# define ARCHITECTURE_ID "IA64" + +# elif defined(_M_X64) || defined(_M_AMD64) +# define ARCHITECTURE_ID "x64" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# elif defined(_M_ARM64) +# define ARCHITECTURE_ID "ARM64" + +# elif defined(_M_ARM) +# if _M_ARM == 4 +# define ARCHITECTURE_ID "ARMV4I" +# elif _M_ARM == 5 +# define ARCHITECTURE_ID "ARMV5I" +# else +# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) +# endif + +# elif defined(_M_MIPS) +# define ARCHITECTURE_ID "MIPS" + +# elif defined(_M_SH) +# define ARCHITECTURE_ID "SHx" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__WATCOMC__) +# if defined(_M_I86) +# define ARCHITECTURE_ID "I86" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# if defined(__ICCARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__ICCAVR__) +# define ARCHITECTURE_ID "AVR" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif +#else +# define ARCHITECTURE_ID +#endif + +/* Convert integer to decimal digit literals. */ +#define DEC(n) \ + ('0' + (((n) / 10000000)%10)), \ + ('0' + (((n) / 1000000)%10)), \ + ('0' + (((n) / 100000)%10)), \ + ('0' + (((n) / 10000)%10)), \ + ('0' + (((n) / 1000)%10)), \ + ('0' + (((n) / 100)%10)), \ + ('0' + (((n) / 10)%10)), \ + ('0' + ((n) % 10)) + +/* Convert integer to hex digit literals. */ +#define HEX(n) \ + ('0' + ((n)>>28 & 0xF)), \ + ('0' + ((n)>>24 & 0xF)), \ + ('0' + ((n)>>20 & 0xF)), \ + ('0' + ((n)>>16 & 0xF)), \ + ('0' + ((n)>>12 & 0xF)), \ + ('0' + ((n)>>8 & 0xF)), \ + ('0' + ((n)>>4 & 0xF)), \ + ('0' + ((n) & 0xF)) + +/* Construct a string literal encoding the version number components. */ +#ifdef COMPILER_VERSION_MAJOR +char const info_version[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', + COMPILER_VERSION_MAJOR, +# ifdef COMPILER_VERSION_MINOR + '.', COMPILER_VERSION_MINOR, +# ifdef COMPILER_VERSION_PATCH + '.', COMPILER_VERSION_PATCH, +# ifdef COMPILER_VERSION_TWEAK + '.', COMPILER_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct a string literal encoding the internal version number. */ +#ifdef COMPILER_VERSION_INTERNAL +char const info_version_internal[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', + 'i','n','t','e','r','n','a','l','[', + COMPILER_VERSION_INTERNAL,']','\0'}; +#endif + +/* Construct a string literal encoding the version number components. */ +#ifdef SIMULATE_VERSION_MAJOR +char const info_simulate_version[] = { + 'I', 'N', 'F', 'O', ':', + 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', + SIMULATE_VERSION_MAJOR, +# ifdef SIMULATE_VERSION_MINOR + '.', SIMULATE_VERSION_MINOR, +# ifdef SIMULATE_VERSION_PATCH + '.', SIMULATE_VERSION_PATCH, +# ifdef SIMULATE_VERSION_TWEAK + '.', SIMULATE_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; +char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; + + + + +#if !defined(__STDC__) +# if (defined(_MSC_VER) && !defined(__clang__)) \ + || (defined(__ibmxl__) || defined(__IBMC__)) +# define C_DIALECT "90" +# else +# define C_DIALECT +# endif +#elif __STDC_VERSION__ >= 201000L +# define C_DIALECT "11" +#elif __STDC_VERSION__ >= 199901L +# define C_DIALECT "99" +#else +# define C_DIALECT "90" +#endif +const char* info_language_dialect_default = + "INFO" ":" "dialect_default[" C_DIALECT "]"; + +/*--------------------------------------------------------------------------*/ + +#ifdef ID_VOID_MAIN +void main() {} +#else +# if defined(__CLASSIC_C__) +int main(argc, argv) int argc; char *argv[]; +# else +int main(int argc, char* argv[]) +# endif +{ + int require = 0; + require += info_compiler[argc]; + require += info_platform[argc]; + require += info_arch[argc]; +#ifdef COMPILER_VERSION_MAJOR + require += info_version[argc]; +#endif +#ifdef COMPILER_VERSION_INTERNAL + require += info_version_internal[argc]; +#endif +#ifdef SIMULATE_ID + require += info_simulate[argc]; +#endif +#ifdef SIMULATE_VERSION_MAJOR + require += info_simulate_version[argc]; +#endif +#if defined(__CRAYXE) || defined(__CRAYXC) + require += info_cray[argc]; +#endif + require += info_language_dialect_default[argc]; + (void)argv; + return require; +} +#endif diff --git a/lib/zlib/CMakeFiles/3.12.3/CompilerIdC/a.out b/lib/zlib/CMakeFiles/3.12.3/CompilerIdC/a.out new file mode 100755 index 0000000000000000000000000000000000000000..6bfb0163f62a23b46c41ea116296fe66e5d46e6c GIT binary patch literal 8616 zcmeHNO=uHA6rS`)gH}_aXvH74J(Mb?&9)+&25W58lpvZ|1#y`|SjF=H=th z@4pW+7HVdUH9;d#t%b2COhb>clh6c|^U2s~{9gR_1X=4PR1fz=6lVn!IiHH(ovNQA z{M+koOyX9UNs*Ee&RuiCl>kj+ytSiv7}%f5DTIArVQOK^a!53sXG*SP>*XStQ1DF|H8-y0c^-Vq7m z#+wiyT4A@qBAiHR1fk{q5DUbW_KEM4kcJ=G4jTfJKUjCRL zgiV8rdqxhS=k*1b2l|@M1B2SC^y2v`4z2s3(0wmKY0O(6A^faDwOo+ToyC%C=K8Po zBQGoMdH0~9`0JX-&pC-VfR!i)6a$I@#eiZ!F`yVw3@8Tvm4RfU@@+Hzi^5cvb`q8H z_GWyGP-3-p5+A{d%&ncs`;KsPa;uWuf^m2+R#N|vOSF~)?NyUmq+Z?uy{OmLnBSqVAX9`X(HDWl}ok^?VWad(`pS29z%(y&j z&KPCeP3ihHJ%#7)2j&k=r(_lKsi+WL@Ao>`6qY^xJhM=_unPz)#r6a$I@#eiZ! zF`yVw3@8Q^1B!wFmVsm4%&WA9IO^=pJU7S91v682O+IHDS<_*?Im61cKB_-+rqfwN zGg~`@s=PeBV2*#B!RGyQ5%!4ALfGRFotc!4S(7)Mhp?yk$HDelgj&{cS)t1sU8v4T zLU$mc`$a-tg_900juS@ZvK=PET@q7~l5kYwPKhTZ4om!iFb+lhI=oF7j{g4!9AH2S wB}7A|d^abe8qdWudfh4o9^Ch_z2PcN9`uRif@vxW^O9Rm^EB%IcmYEG0A#rn1poj5 literal 0 HcmV?d00001 diff --git a/lib/zlib/CMakeFiles/CMakeDirectoryInformation.cmake b/lib/zlib/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 000000000..526c189f6 --- /dev/null +++ b/lib/zlib/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.12 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/weishijun/WizTeam/WizQTClient/lib/zlib") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/weishijun/WizTeam/WizQTClient/lib/zlib") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/lib/zlib/CMakeFiles/CMakeError.log b/lib/zlib/CMakeFiles/CMakeError.log new file mode 100644 index 000000000..22ec2fa35 --- /dev/null +++ b/lib/zlib/CMakeFiles/CMakeError.log @@ -0,0 +1,90 @@ +Determining size of off64_t failed with the following output: +Change Dir: /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_2b6e6/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_2b6e6.dir/build.make CMakeFiles/cmTC_2b6e6.dir/build +Building C object CMakeFiles/cmTC_2b6e6.dir/OFF64_T.c.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DHAVE_STDDEF_H -DHAVE_STDINT_H -DHAVE_SYS_TYPES_H -D_LARGEFILE64_SOURCE=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_2b6e6.dir/OFF64_T.c.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CheckTypeSize/OFF64_T.c +/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CheckTypeSize/OFF64_T.c:25:12: error: use of undeclared identifier 'off64_t' + ('0' + ((SIZE / 10000)%10)), + ^ +/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CheckTypeSize/OFF64_T.c:23:22: note: expanded from macro 'SIZE' +#define SIZE (sizeof(off64_t)) + ^ +/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CheckTypeSize/OFF64_T.c:26:12: error: use of undeclared identifier 'off64_t' + ('0' + ((SIZE / 1000)%10)), + ^ +/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CheckTypeSize/OFF64_T.c:23:22: note: expanded from macro 'SIZE' +#define SIZE (sizeof(off64_t)) + ^ +/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CheckTypeSize/OFF64_T.c:27:12: error: use of undeclared identifier 'off64_t' + ('0' + ((SIZE / 100)%10)), + ^ +/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CheckTypeSize/OFF64_T.c:23:22: note: expanded from macro 'SIZE' +#define SIZE (sizeof(off64_t)) + ^ +/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CheckTypeSize/OFF64_T.c:28:12: error: use of undeclared identifier 'off64_t' + ('0' + ((SIZE / 10)%10)), + ^ +/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CheckTypeSize/OFF64_T.c:23:22: note: expanded from macro 'SIZE' +#define SIZE (sizeof(off64_t)) + ^ +/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CheckTypeSize/OFF64_T.c:29:12: error: use of undeclared identifier 'off64_t' + ('0' + (SIZE % 10)), + ^ +/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CheckTypeSize/OFF64_T.c:23:22: note: expanded from macro 'SIZE' +#define SIZE (sizeof(off64_t)) + ^ +5 errors generated. +make[1]: *** [CMakeFiles/cmTC_2b6e6.dir/OFF64_T.c.o] Error 1 +make: *** [cmTC_2b6e6/fast] Error 2 + +/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CheckTypeSize/OFF64_T.c: +#include +#include +#include + + +#undef KEY +#if defined(__i386) +# define KEY '_','_','i','3','8','6' +#elif defined(__x86_64) +# define KEY '_','_','x','8','6','_','6','4' +#elif defined(__ppc__) +# define KEY '_','_','p','p','c','_','_' +#elif defined(__ppc64__) +# define KEY '_','_','p','p','c','6','4','_','_' +#elif defined(__aarch64__) +# define KEY '_','_','a','a','r','c','h','6','4','_','_' +#elif defined(__ARM_ARCH_7A__) +# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_' +#elif defined(__ARM_ARCH_7S__) +# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_' +#endif + +#define SIZE (sizeof(off64_t)) +char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[', + ('0' + ((SIZE / 10000)%10)), + ('0' + ((SIZE / 1000)%10)), + ('0' + ((SIZE / 100)%10)), + ('0' + ((SIZE / 10)%10)), + ('0' + (SIZE % 10)), + ']', +#ifdef KEY + ' ','k','e','y','[', KEY, ']', +#endif + '\0'}; + +#ifdef __CLASSIC_C__ +int main(argc, argv) int argc; char *argv[]; +#else +int main(int argc, char *argv[]) +#endif +{ + int require = 0; + require += info_size[argc]; + (void)argv; + return require; +} + + diff --git a/lib/zlib/CMakeFiles/CMakeOutput.log b/lib/zlib/CMakeFiles/CMakeOutput.log new file mode 100644 index 000000000..adbdecc8a --- /dev/null +++ b/lib/zlib/CMakeFiles/CMakeOutput.log @@ -0,0 +1,212 @@ +The system is: Darwin - 19.2.0 - x86_64 +Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. +Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc +Build flags: +Id flags: + +The output was: +0 + + +Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" + +The C compiler identification is AppleClang, found in "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/3.12.3/CompilerIdC/a.out" + +Determining if the C compiler works passed with the following output: +Change Dir: /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_b1769/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_b1769.dir/build.make CMakeFiles/cmTC_b1769.dir/build +Building C object CMakeFiles/cmTC_b1769.dir/testCCompiler.c.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_b1769.dir/testCCompiler.c.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CMakeTmp/testCCompiler.c +Linking C executable cmTC_b1769 +/usr/local/Cellar/cmake/3.12.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b1769.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_b1769.dir/testCCompiler.c.o -o cmTC_b1769 + + +Detecting C compiler ABI info compiled with the following output: +Change Dir: /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_8bb88/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_8bb88.dir/build.make CMakeFiles/cmTC_8bb88.dir/build +Building C object CMakeFiles/cmTC_8bb88.dir/CMakeCCompilerABI.c.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_8bb88.dir/CMakeCCompilerABI.c.o -c /usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeCCompilerABI.c +Linking C executable cmTC_8bb88 +/usr/local/Cellar/cmake/3.12.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8bb88.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -v -Wl,-v CMakeFiles/cmTC_8bb88.dir/CMakeCCompilerABI.c.o -o cmTC_8bb88 +Apple clang version 11.0.3 (clang-1103.0.32.59) +Target: x86_64-apple-darwin19.2.0 +Thread model: posix +InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin + "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -lto_library /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib -dynamic -arch x86_64 -platform_version macos 10.15.0 10.15.4 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -o cmTC_8bb88 -search_paths_first -headerpad_max_install_names -v CMakeFiles/cmTC_8bb88.dir/CMakeCCompilerABI.c.o -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/lib/darwin/libclang_rt.osx.a +@(#)PROGRAM:ld PROJECT:ld64-556.6 +BUILD 13:10:29 Apr 7 2020 +configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em +Library search paths: + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib +Framework search paths: + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ + + +Parsed C implicit link information from above output: + link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] + ignore line: [Change Dir: /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CMakeTmp] + ignore line: [] + ignore line: [Run Build Command:"/usr/bin/make" "cmTC_8bb88/fast"] + ignore line: [/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_8bb88.dir/build.make CMakeFiles/cmTC_8bb88.dir/build] + ignore line: [Building C object CMakeFiles/cmTC_8bb88.dir/CMakeCCompilerABI.c.o] + ignore line: [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_8bb88.dir/CMakeCCompilerABI.c.o -c /usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeCCompilerABI.c] + ignore line: [Linking C executable cmTC_8bb88] + ignore line: [/usr/local/Cellar/cmake/3.12.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8bb88.dir/link.txt --verbose=1] + ignore line: [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -v -Wl,-v CMakeFiles/cmTC_8bb88.dir/CMakeCCompilerABI.c.o -o cmTC_8bb88 ] + ignore line: [Apple clang version 11.0.3 (clang-1103.0.32.59)] + ignore line: [Target: x86_64-apple-darwin19.2.0] + ignore line: [Thread model: posix] + ignore line: [InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin] + link line: [ "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -lto_library /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib -dynamic -arch x86_64 -platform_version macos 10.15.0 10.15.4 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -o cmTC_8bb88 -search_paths_first -headerpad_max_install_names -v CMakeFiles/cmTC_8bb88.dir/CMakeCCompilerABI.c.o -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/lib/darwin/libclang_rt.osx.a] + arg [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld] ==> ignore + arg [-demangle] ==> ignore + arg [-lto_library] ==> ignore, skip following value + arg [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib] ==> skip value of -lto_library + arg [-dynamic] ==> ignore + arg [-arch] ==> ignore + arg [x86_64] ==> ignore + arg [-platform_version] ==> ignore + arg [macos] ==> ignore + arg [10.15.0] ==> ignore + arg [10.15.4] ==> ignore + arg [-syslibroot] ==> ignore + arg [/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk] ==> ignore + arg [-o] ==> ignore + arg [cmTC_8bb88] ==> ignore + arg [-search_paths_first] ==> ignore + arg [-headerpad_max_install_names] ==> ignore + arg [-v] ==> ignore + arg [CMakeFiles/cmTC_8bb88.dir/CMakeCCompilerABI.c.o] ==> ignore + arg [-lSystem] ==> lib [System] + arg [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/lib/darwin/libclang_rt.osx.a] ==> lib [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/lib/darwin/libclang_rt.osx.a] + Library search paths: [;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib] + Framework search paths: [;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/] + remove lib [System] + remove lib [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/lib/darwin/libclang_rt.osx.a] + collapse library dir [/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib] ==> [/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib] + collapse framework dir [/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/] ==> [/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks] + implicit libs: [] + implicit dirs: [/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib] + implicit fwks: [/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks] + + + + +Detecting C [-std=c11] compiler features compiled with the following output: +Change Dir: /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_ad128/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_ad128.dir/build.make CMakeFiles/cmTC_ad128.dir/build +Building C object CMakeFiles/cmTC_ad128.dir/feature_tests.c.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -std=c11 -o CMakeFiles/cmTC_ad128.dir/feature_tests.c.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/feature_tests.c +Linking C executable cmTC_ad128 +/usr/local/Cellar/cmake/3.12.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ad128.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_ad128.dir/feature_tests.c.o -o cmTC_ad128 + + + Feature record: C_FEATURE:1c_function_prototypes + Feature record: C_FEATURE:1c_restrict + Feature record: C_FEATURE:1c_static_assert + Feature record: C_FEATURE:1c_variadic_macros + + +Detecting C [-std=c99] compiler features compiled with the following output: +Change Dir: /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_fb5c3/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_fb5c3.dir/build.make CMakeFiles/cmTC_fb5c3.dir/build +Building C object CMakeFiles/cmTC_fb5c3.dir/feature_tests.c.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -std=c99 -o CMakeFiles/cmTC_fb5c3.dir/feature_tests.c.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/feature_tests.c +Linking C executable cmTC_fb5c3 +/usr/local/Cellar/cmake/3.12.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_fb5c3.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_fb5c3.dir/feature_tests.c.o -o cmTC_fb5c3 + + + Feature record: C_FEATURE:1c_function_prototypes + Feature record: C_FEATURE:1c_restrict + Feature record: C_FEATURE:0c_static_assert + Feature record: C_FEATURE:1c_variadic_macros + + +Detecting C [-std=c90] compiler features compiled with the following output: +Change Dir: /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_785de/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_785de.dir/build.make CMakeFiles/cmTC_785de.dir/build +Building C object CMakeFiles/cmTC_785de.dir/feature_tests.c.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -std=c90 -o CMakeFiles/cmTC_785de.dir/feature_tests.c.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/feature_tests.c +Linking C executable cmTC_785de +/usr/local/Cellar/cmake/3.12.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_785de.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_785de.dir/feature_tests.c.o -o cmTC_785de + + + Feature record: C_FEATURE:1c_function_prototypes + Feature record: C_FEATURE:0c_restrict + Feature record: C_FEATURE:0c_static_assert + Feature record: C_FEATURE:0c_variadic_macros +Determining if the include file sys/types.h exists passed with the following output: +Change Dir: /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_cbd35/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_cbd35.dir/build.make CMakeFiles/cmTC_cbd35.dir/build +Building C object CMakeFiles/cmTC_cbd35.dir/CheckIncludeFile.c.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_cbd35.dir/CheckIncludeFile.c.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CMakeTmp/CheckIncludeFile.c +Linking C executable cmTC_cbd35 +/usr/local/Cellar/cmake/3.12.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_cbd35.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_cbd35.dir/CheckIncludeFile.c.o -o cmTC_cbd35 + + +Determining if the include file stdint.h exists passed with the following output: +Change Dir: /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_462be/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_462be.dir/build.make CMakeFiles/cmTC_462be.dir/build +Building C object CMakeFiles/cmTC_462be.dir/CheckIncludeFile.c.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_462be.dir/CheckIncludeFile.c.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CMakeTmp/CheckIncludeFile.c +Linking C executable cmTC_462be +/usr/local/Cellar/cmake/3.12.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_462be.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_462be.dir/CheckIncludeFile.c.o -o cmTC_462be + + +Determining if the include file stddef.h exists passed with the following output: +Change Dir: /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_9aaae/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_9aaae.dir/build.make CMakeFiles/cmTC_9aaae.dir/build +Building C object CMakeFiles/cmTC_9aaae.dir/CheckIncludeFile.c.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_9aaae.dir/CheckIncludeFile.c.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CMakeTmp/CheckIncludeFile.c +Linking C executable cmTC_9aaae +/usr/local/Cellar/cmake/3.12.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9aaae.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_9aaae.dir/CheckIncludeFile.c.o -o cmTC_9aaae + + +Determining if the function fseeko exists passed with the following output: +Change Dir: /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_e4c6c/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_e4c6c.dir/build.make CMakeFiles/cmTC_e4c6c.dir/build +Building C object CMakeFiles/cmTC_e4c6c.dir/CheckFunctionExists.c.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCHECK_FUNCTION_EXISTS=fseeko -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_e4c6c.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CheckFunctionExists.c +Linking C executable cmTC_e4c6c +/usr/local/Cellar/cmake/3.12.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e4c6c.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCHECK_FUNCTION_EXISTS=fseeko -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_e4c6c.dir/CheckFunctionExists.c.o -o cmTC_e4c6c + + +Determining if the include file unistd.h exists passed with the following output: +Change Dir: /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_f7eb5/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_f7eb5.dir/build.make CMakeFiles/cmTC_f7eb5.dir/build +Building C object CMakeFiles/cmTC_f7eb5.dir/CheckIncludeFile.c.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_f7eb5.dir/CheckIncludeFile.c.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/CMakeTmp/CheckIncludeFile.c +Linking C executable cmTC_f7eb5 +/usr/local/Cellar/cmake/3.12.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f7eb5.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_f7eb5.dir/CheckIncludeFile.c.o -o cmTC_f7eb5 + + diff --git a/lib/zlib/CMakeFiles/CheckTypeSize/OFF64_T.c b/lib/zlib/CMakeFiles/CheckTypeSize/OFF64_T.c new file mode 100644 index 000000000..8b3ae5313 --- /dev/null +++ b/lib/zlib/CMakeFiles/CheckTypeSize/OFF64_T.c @@ -0,0 +1,46 @@ +#include +#include +#include + + +#undef KEY +#if defined(__i386) +# define KEY '_','_','i','3','8','6' +#elif defined(__x86_64) +# define KEY '_','_','x','8','6','_','6','4' +#elif defined(__ppc__) +# define KEY '_','_','p','p','c','_','_' +#elif defined(__ppc64__) +# define KEY '_','_','p','p','c','6','4','_','_' +#elif defined(__aarch64__) +# define KEY '_','_','a','a','r','c','h','6','4','_','_' +#elif defined(__ARM_ARCH_7A__) +# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_' +#elif defined(__ARM_ARCH_7S__) +# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_' +#endif + +#define SIZE (sizeof(off64_t)) +char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[', + ('0' + ((SIZE / 10000)%10)), + ('0' + ((SIZE / 1000)%10)), + ('0' + ((SIZE / 100)%10)), + ('0' + ((SIZE / 10)%10)), + ('0' + (SIZE % 10)), + ']', +#ifdef KEY + ' ','k','e','y','[', KEY, ']', +#endif + '\0'}; + +#ifdef __CLASSIC_C__ +int main(argc, argv) int argc; char *argv[]; +#else +int main(int argc, char *argv[]) +#endif +{ + int require = 0; + require += info_size[argc]; + (void)argv; + return require; +} diff --git a/lib/zlib/CMakeFiles/Makefile.cmake b/lib/zlib/CMakeFiles/Makefile.cmake new file mode 100644 index 000000000..2ccf5f579 --- /dev/null +++ b/lib/zlib/CMakeFiles/Makefile.cmake @@ -0,0 +1,113 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.12 + +# The generator used is: +set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") + +# The top level Makefile was generated from the following files: +set(CMAKE_MAKEFILE_DEPENDS + "CMakeCache.txt" + "CMakeFiles/3.12.3/CMakeCCompiler.cmake" + "CMakeFiles/3.12.3/CMakeSystem.cmake" + "CMakeFiles/CheckTypeSize/OFF64_T.c" + "CMakeFiles/feature_tests.c" + "CMakeLists.txt" + "zconf.h.cmakein" + "zlib.pc.cmakein" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeCCompiler.cmake.in" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeCCompilerABI.c" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeCInformation.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeCommonLanguageInclude.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeCompilerIdDetection.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeDetermineCCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeDetermineCompileFeatures.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeDetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeDetermineCompilerABI.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeDetermineCompilerId.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeDetermineSystem.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeFindBinUtils.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeGenericSystem.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeInitializeConfigs.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeLanguageInformation.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeParseImplicitLinkInfo.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeSystem.cmake.in" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeSystemSpecificInformation.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeSystemSpecificInitialize.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeTestCCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeTestCompilerCommon.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CMakeUnixFindMake.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CheckCSourceCompiles.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CheckFunctionExists.c" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CheckFunctionExists.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CheckIncludeFile.c.in" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CheckIncludeFile.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CheckIncludeFileCXX.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CheckTypeSize.c.in" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CheckTypeSize.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/ADSP-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/ARMCC-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/AppleClang-C-FeatureTests.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/AppleClang-C.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/AppleClang-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/Borland-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/Bruce-C-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/CMakeCommonCompilerMacros.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/Clang-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/Clang-DetermineCompilerInternal.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/Clang.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/Compaq-C-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/Cray-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/Embarcadero-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/Fujitsu-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/GHS-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/GNU-C-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/GNU.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/HP-C-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/IAR-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/Intel-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/MIPSpro-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/MSVC-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/NVIDIA-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/PGI-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/PathScale-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/SCO-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/SDCC-C-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/SunPro-C-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/TI-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/Watcom-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/XL-C-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Compiler/zOS-C-DetermineCompiler.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Internal/FeatureTesting.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Platform/Apple-AppleClang-C.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Platform/Apple-Clang-C.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Platform/Apple-Clang.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Platform/Darwin-Initialize.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Platform/Darwin.cmake" + "/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/Platform/UnixPaths.cmake" + ) + +# The corresponding makefile is: +set(CMAKE_MAKEFILE_OUTPUTS + "Makefile" + "CMakeFiles/cmake.check_cache" + ) + +# Byproducts of CMake generate step: +set(CMAKE_MAKEFILE_PRODUCTS + "CMakeFiles/3.12.3/CMakeSystem.cmake" + "CMakeFiles/3.12.3/CMakeCCompiler.cmake" + "CMakeFiles/3.12.3/CMakeCCompiler.cmake" + "CMakeFiles/CheckTypeSize/OFF64_T.c" + "zlib.pc" + "zconf.h" + "CMakeFiles/CMakeDirectoryInformation.cmake" + ) + +# Dependency information for all targets: +set(CMAKE_DEPEND_INFO_FILES + "CMakeFiles/zlib.dir/DependInfo.cmake" + ) diff --git a/lib/zlib/CMakeFiles/Makefile2 b/lib/zlib/CMakeFiles/Makefile2 new file mode 100644 index 000000000..8f3c27474 --- /dev/null +++ b/lib/zlib/CMakeFiles/Makefile2 @@ -0,0 +1,113 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.12 + +# Default target executed when no arguments are given to make. +default_target: all + +.PHONY : default_target + +# The main recursive all target +all: + +.PHONY : all + +# The main recursive preinstall target +preinstall: + +.PHONY : preinstall + +# The main recursive clean target +clean: + +.PHONY : clean + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/local/Cellar/cmake/3.12.3/bin/cmake + +# The command to remove a file. +RM = /usr/local/Cellar/cmake/3.12.3/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/weishijun/WizTeam/WizQTClient/lib/zlib + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/weishijun/WizTeam/WizQTClient/lib/zlib + +#============================================================================= +# Target rules for target CMakeFiles/zlib.dir + +# All Build rule for target. +CMakeFiles/zlib.dir/all: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/depend + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/build + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles --progress-num=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 "Built target zlib" +.PHONY : CMakeFiles/zlib.dir/all + +# Include target in all. +all: CMakeFiles/zlib.dir/all + +.PHONY : all + +# Build rule for subdir invocation for target. +CMakeFiles/zlib.dir/rule: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles 16 + $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/zlib.dir/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles 0 +.PHONY : CMakeFiles/zlib.dir/rule + +# Convenience name for target. +zlib: CMakeFiles/zlib.dir/rule + +.PHONY : zlib + +# clean rule for target. +CMakeFiles/zlib.dir/clean: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/clean +.PHONY : CMakeFiles/zlib.dir/clean + +# clean rule for target. +clean: CMakeFiles/zlib.dir/clean + +.PHONY : clean + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/lib/zlib/CMakeFiles/TargetDirectories.txt b/lib/zlib/CMakeFiles/TargetDirectories.txt new file mode 100644 index 000000000..507bfcc2e --- /dev/null +++ b/lib/zlib/CMakeFiles/TargetDirectories.txt @@ -0,0 +1,4 @@ +/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/rebuild_cache.dir +/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/edit_cache.dir +/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/test.dir +/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/zlib.dir diff --git a/lib/zlib/CMakeFiles/cmake.check_cache b/lib/zlib/CMakeFiles/cmake.check_cache new file mode 100644 index 000000000..3dccd7317 --- /dev/null +++ b/lib/zlib/CMakeFiles/cmake.check_cache @@ -0,0 +1 @@ +# This file is generated by cmake for dependency checking of the CMakeCache.txt file diff --git a/lib/zlib/CMakeFiles/feature_tests.bin b/lib/zlib/CMakeFiles/feature_tests.bin new file mode 100755 index 0000000000000000000000000000000000000000..2a09dbce341c065fd0b7a197d015d3605c00c543 GIT binary patch literal 4288 zcmeHK&ui2`6rOa~A8f0;Ac&%rpdkLD+e!~hPg^ybqG+jG5J4WQxa1^>AMZ&$bK=19knB2c93>Sd#(mCN4q(}l z`xowSrZFnly$;9R7mZ= 400 +"1" +#else +"0" +#endif +"c_function_prototypes\n" +"C_FEATURE:" +#if ((__clang_major__ * 100) + __clang_minor__) >= 400 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +"1" +#else +"0" +#endif +"c_restrict\n" +"C_FEATURE:" +#if ((__clang_major__ * 100) + __clang_minor__) >= 400 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L +"1" +#else +"0" +#endif +"c_static_assert\n" +"C_FEATURE:" +#if ((__clang_major__ * 100) + __clang_minor__) >= 400 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +"1" +#else +"0" +#endif +"c_variadic_macros\n" + +}; + +int main(int argc, char** argv) { (void)argv; return features[argc]; } diff --git a/lib/zlib/CMakeFiles/progress.marks b/lib/zlib/CMakeFiles/progress.marks new file mode 100644 index 000000000..b6a7d89c6 --- /dev/null +++ b/lib/zlib/CMakeFiles/progress.marks @@ -0,0 +1 @@ +16 diff --git a/lib/zlib/CMakeFiles/zlib.dir/DependInfo.cmake b/lib/zlib/CMakeFiles/zlib.dir/DependInfo.cmake new file mode 100644 index 000000000..de4c1e94a --- /dev/null +++ b/lib/zlib/CMakeFiles/zlib.dir/DependInfo.cmake @@ -0,0 +1,42 @@ +# The set of languages for which implicit dependencies are needed: +set(CMAKE_DEPENDS_LANGUAGES + "C" + ) +# The set of files for implicit dependencies of each language: +set(CMAKE_DEPENDS_CHECK_C + "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/adler32.c" "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/zlib.dir/adler32.o" + "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/compress.c" "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/zlib.dir/compress.o" + "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/crc32.c" "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/zlib.dir/crc32.o" + "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/deflate.c" "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/zlib.dir/deflate.o" + "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/gzclose.c" "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/zlib.dir/gzclose.o" + "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/gzlib.c" "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/zlib.dir/gzlib.o" + "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/gzread.c" "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/zlib.dir/gzread.o" + "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/gzwrite.c" "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/zlib.dir/gzwrite.o" + "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/infback.c" "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/zlib.dir/infback.o" + "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/inffast.c" "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/zlib.dir/inffast.o" + "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/inflate.c" "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/zlib.dir/inflate.o" + "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/inftrees.c" "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/zlib.dir/inftrees.o" + "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/trees.c" "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/zlib.dir/trees.o" + "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/uncompr.c" "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/zlib.dir/uncompr.o" + "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/zutil.c" "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/zlib.dir/zutil.o" + ) +set(CMAKE_C_COMPILER_ID "Clang") + +# The include file search paths: +set(CMAKE_C_TARGET_INCLUDE_PATH + "." + ) + +# Pairs of files generated by the same build rule. +set(CMAKE_MULTIPLE_OUTPUT_PAIRS + "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/libz.1.dylib" "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/libz.1.2.8.dylib" + "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/libz.dylib" "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/libz.1.2.8.dylib" + ) + + +# Targets to which this target links. +set(CMAKE_TARGET_LINKED_INFO_FILES + ) + +# Fortran module output directory. +set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/lib/zlib/CMakeFiles/zlib.dir/build.make b/lib/zlib/CMakeFiles/zlib.dir/build.make new file mode 100644 index 000000000..914883ac0 --- /dev/null +++ b/lib/zlib/CMakeFiles/zlib.dir/build.make @@ -0,0 +1,315 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.12 + +# Delete rule output on recipe failure. +.DELETE_ON_ERROR: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/local/Cellar/cmake/3.12.3/bin/cmake + +# The command to remove a file. +RM = /usr/local/Cellar/cmake/3.12.3/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/weishijun/WizTeam/WizQTClient/lib/zlib + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/weishijun/WizTeam/WizQTClient/lib/zlib + +# Include any dependencies generated for this target. +include CMakeFiles/zlib.dir/depend.make + +# Include the progress variables for this target. +include CMakeFiles/zlib.dir/progress.make + +# Include the compile flags for this target's objects. +include CMakeFiles/zlib.dir/flags.make + +CMakeFiles/zlib.dir/adler32.o: CMakeFiles/zlib.dir/flags.make +CMakeFiles/zlib.dir/adler32.o: adler32.c + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building C object CMakeFiles/zlib.dir/adler32.o" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/zlib.dir/adler32.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/adler32.c + +CMakeFiles/zlib.dir/adler32.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/zlib.dir/adler32.i" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /Users/weishijun/WizTeam/WizQTClient/lib/zlib/adler32.c > CMakeFiles/zlib.dir/adler32.i + +CMakeFiles/zlib.dir/adler32.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/zlib.dir/adler32.s" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /Users/weishijun/WizTeam/WizQTClient/lib/zlib/adler32.c -o CMakeFiles/zlib.dir/adler32.s + +CMakeFiles/zlib.dir/compress.o: CMakeFiles/zlib.dir/flags.make +CMakeFiles/zlib.dir/compress.o: compress.c + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building C object CMakeFiles/zlib.dir/compress.o" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/zlib.dir/compress.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/compress.c + +CMakeFiles/zlib.dir/compress.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/zlib.dir/compress.i" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /Users/weishijun/WizTeam/WizQTClient/lib/zlib/compress.c > CMakeFiles/zlib.dir/compress.i + +CMakeFiles/zlib.dir/compress.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/zlib.dir/compress.s" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /Users/weishijun/WizTeam/WizQTClient/lib/zlib/compress.c -o CMakeFiles/zlib.dir/compress.s + +CMakeFiles/zlib.dir/crc32.o: CMakeFiles/zlib.dir/flags.make +CMakeFiles/zlib.dir/crc32.o: crc32.c + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Building C object CMakeFiles/zlib.dir/crc32.o" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/zlib.dir/crc32.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/crc32.c + +CMakeFiles/zlib.dir/crc32.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/zlib.dir/crc32.i" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /Users/weishijun/WizTeam/WizQTClient/lib/zlib/crc32.c > CMakeFiles/zlib.dir/crc32.i + +CMakeFiles/zlib.dir/crc32.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/zlib.dir/crc32.s" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /Users/weishijun/WizTeam/WizQTClient/lib/zlib/crc32.c -o CMakeFiles/zlib.dir/crc32.s + +CMakeFiles/zlib.dir/deflate.o: CMakeFiles/zlib.dir/flags.make +CMakeFiles/zlib.dir/deflate.o: deflate.c + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles --progress-num=$(CMAKE_PROGRESS_4) "Building C object CMakeFiles/zlib.dir/deflate.o" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/zlib.dir/deflate.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/deflate.c + +CMakeFiles/zlib.dir/deflate.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/zlib.dir/deflate.i" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /Users/weishijun/WizTeam/WizQTClient/lib/zlib/deflate.c > CMakeFiles/zlib.dir/deflate.i + +CMakeFiles/zlib.dir/deflate.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/zlib.dir/deflate.s" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /Users/weishijun/WizTeam/WizQTClient/lib/zlib/deflate.c -o CMakeFiles/zlib.dir/deflate.s + +CMakeFiles/zlib.dir/gzclose.o: CMakeFiles/zlib.dir/flags.make +CMakeFiles/zlib.dir/gzclose.o: gzclose.c + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles --progress-num=$(CMAKE_PROGRESS_5) "Building C object CMakeFiles/zlib.dir/gzclose.o" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/zlib.dir/gzclose.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/gzclose.c + +CMakeFiles/zlib.dir/gzclose.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/zlib.dir/gzclose.i" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /Users/weishijun/WizTeam/WizQTClient/lib/zlib/gzclose.c > CMakeFiles/zlib.dir/gzclose.i + +CMakeFiles/zlib.dir/gzclose.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/zlib.dir/gzclose.s" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /Users/weishijun/WizTeam/WizQTClient/lib/zlib/gzclose.c -o CMakeFiles/zlib.dir/gzclose.s + +CMakeFiles/zlib.dir/gzlib.o: CMakeFiles/zlib.dir/flags.make +CMakeFiles/zlib.dir/gzlib.o: gzlib.c + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles --progress-num=$(CMAKE_PROGRESS_6) "Building C object CMakeFiles/zlib.dir/gzlib.o" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/zlib.dir/gzlib.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/gzlib.c + +CMakeFiles/zlib.dir/gzlib.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/zlib.dir/gzlib.i" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /Users/weishijun/WizTeam/WizQTClient/lib/zlib/gzlib.c > CMakeFiles/zlib.dir/gzlib.i + +CMakeFiles/zlib.dir/gzlib.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/zlib.dir/gzlib.s" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /Users/weishijun/WizTeam/WizQTClient/lib/zlib/gzlib.c -o CMakeFiles/zlib.dir/gzlib.s + +CMakeFiles/zlib.dir/gzread.o: CMakeFiles/zlib.dir/flags.make +CMakeFiles/zlib.dir/gzread.o: gzread.c + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles --progress-num=$(CMAKE_PROGRESS_7) "Building C object CMakeFiles/zlib.dir/gzread.o" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/zlib.dir/gzread.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/gzread.c + +CMakeFiles/zlib.dir/gzread.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/zlib.dir/gzread.i" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /Users/weishijun/WizTeam/WizQTClient/lib/zlib/gzread.c > CMakeFiles/zlib.dir/gzread.i + +CMakeFiles/zlib.dir/gzread.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/zlib.dir/gzread.s" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /Users/weishijun/WizTeam/WizQTClient/lib/zlib/gzread.c -o CMakeFiles/zlib.dir/gzread.s + +CMakeFiles/zlib.dir/gzwrite.o: CMakeFiles/zlib.dir/flags.make +CMakeFiles/zlib.dir/gzwrite.o: gzwrite.c + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles --progress-num=$(CMAKE_PROGRESS_8) "Building C object CMakeFiles/zlib.dir/gzwrite.o" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/zlib.dir/gzwrite.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/gzwrite.c + +CMakeFiles/zlib.dir/gzwrite.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/zlib.dir/gzwrite.i" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /Users/weishijun/WizTeam/WizQTClient/lib/zlib/gzwrite.c > CMakeFiles/zlib.dir/gzwrite.i + +CMakeFiles/zlib.dir/gzwrite.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/zlib.dir/gzwrite.s" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /Users/weishijun/WizTeam/WizQTClient/lib/zlib/gzwrite.c -o CMakeFiles/zlib.dir/gzwrite.s + +CMakeFiles/zlib.dir/inflate.o: CMakeFiles/zlib.dir/flags.make +CMakeFiles/zlib.dir/inflate.o: inflate.c + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles --progress-num=$(CMAKE_PROGRESS_9) "Building C object CMakeFiles/zlib.dir/inflate.o" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/zlib.dir/inflate.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/inflate.c + +CMakeFiles/zlib.dir/inflate.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/zlib.dir/inflate.i" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /Users/weishijun/WizTeam/WizQTClient/lib/zlib/inflate.c > CMakeFiles/zlib.dir/inflate.i + +CMakeFiles/zlib.dir/inflate.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/zlib.dir/inflate.s" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /Users/weishijun/WizTeam/WizQTClient/lib/zlib/inflate.c -o CMakeFiles/zlib.dir/inflate.s + +CMakeFiles/zlib.dir/infback.o: CMakeFiles/zlib.dir/flags.make +CMakeFiles/zlib.dir/infback.o: infback.c + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles --progress-num=$(CMAKE_PROGRESS_10) "Building C object CMakeFiles/zlib.dir/infback.o" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/zlib.dir/infback.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/infback.c + +CMakeFiles/zlib.dir/infback.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/zlib.dir/infback.i" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /Users/weishijun/WizTeam/WizQTClient/lib/zlib/infback.c > CMakeFiles/zlib.dir/infback.i + +CMakeFiles/zlib.dir/infback.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/zlib.dir/infback.s" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /Users/weishijun/WizTeam/WizQTClient/lib/zlib/infback.c -o CMakeFiles/zlib.dir/infback.s + +CMakeFiles/zlib.dir/inftrees.o: CMakeFiles/zlib.dir/flags.make +CMakeFiles/zlib.dir/inftrees.o: inftrees.c + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles --progress-num=$(CMAKE_PROGRESS_11) "Building C object CMakeFiles/zlib.dir/inftrees.o" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/zlib.dir/inftrees.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/inftrees.c + +CMakeFiles/zlib.dir/inftrees.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/zlib.dir/inftrees.i" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /Users/weishijun/WizTeam/WizQTClient/lib/zlib/inftrees.c > CMakeFiles/zlib.dir/inftrees.i + +CMakeFiles/zlib.dir/inftrees.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/zlib.dir/inftrees.s" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /Users/weishijun/WizTeam/WizQTClient/lib/zlib/inftrees.c -o CMakeFiles/zlib.dir/inftrees.s + +CMakeFiles/zlib.dir/inffast.o: CMakeFiles/zlib.dir/flags.make +CMakeFiles/zlib.dir/inffast.o: inffast.c + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles --progress-num=$(CMAKE_PROGRESS_12) "Building C object CMakeFiles/zlib.dir/inffast.o" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/zlib.dir/inffast.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/inffast.c + +CMakeFiles/zlib.dir/inffast.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/zlib.dir/inffast.i" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /Users/weishijun/WizTeam/WizQTClient/lib/zlib/inffast.c > CMakeFiles/zlib.dir/inffast.i + +CMakeFiles/zlib.dir/inffast.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/zlib.dir/inffast.s" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /Users/weishijun/WizTeam/WizQTClient/lib/zlib/inffast.c -o CMakeFiles/zlib.dir/inffast.s + +CMakeFiles/zlib.dir/trees.o: CMakeFiles/zlib.dir/flags.make +CMakeFiles/zlib.dir/trees.o: trees.c + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles --progress-num=$(CMAKE_PROGRESS_13) "Building C object CMakeFiles/zlib.dir/trees.o" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/zlib.dir/trees.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/trees.c + +CMakeFiles/zlib.dir/trees.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/zlib.dir/trees.i" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /Users/weishijun/WizTeam/WizQTClient/lib/zlib/trees.c > CMakeFiles/zlib.dir/trees.i + +CMakeFiles/zlib.dir/trees.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/zlib.dir/trees.s" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /Users/weishijun/WizTeam/WizQTClient/lib/zlib/trees.c -o CMakeFiles/zlib.dir/trees.s + +CMakeFiles/zlib.dir/uncompr.o: CMakeFiles/zlib.dir/flags.make +CMakeFiles/zlib.dir/uncompr.o: uncompr.c + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles --progress-num=$(CMAKE_PROGRESS_14) "Building C object CMakeFiles/zlib.dir/uncompr.o" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/zlib.dir/uncompr.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/uncompr.c + +CMakeFiles/zlib.dir/uncompr.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/zlib.dir/uncompr.i" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /Users/weishijun/WizTeam/WizQTClient/lib/zlib/uncompr.c > CMakeFiles/zlib.dir/uncompr.i + +CMakeFiles/zlib.dir/uncompr.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/zlib.dir/uncompr.s" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /Users/weishijun/WizTeam/WizQTClient/lib/zlib/uncompr.c -o CMakeFiles/zlib.dir/uncompr.s + +CMakeFiles/zlib.dir/zutil.o: CMakeFiles/zlib.dir/flags.make +CMakeFiles/zlib.dir/zutil.o: zutil.c + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles --progress-num=$(CMAKE_PROGRESS_15) "Building C object CMakeFiles/zlib.dir/zutil.o" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/zlib.dir/zutil.o -c /Users/weishijun/WizTeam/WizQTClient/lib/zlib/zutil.c + +CMakeFiles/zlib.dir/zutil.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/zlib.dir/zutil.i" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /Users/weishijun/WizTeam/WizQTClient/lib/zlib/zutil.c > CMakeFiles/zlib.dir/zutil.i + +CMakeFiles/zlib.dir/zutil.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/zlib.dir/zutil.s" + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /Users/weishijun/WizTeam/WizQTClient/lib/zlib/zutil.c -o CMakeFiles/zlib.dir/zutil.s + +# Object files for target zlib +zlib_OBJECTS = \ +"CMakeFiles/zlib.dir/adler32.o" \ +"CMakeFiles/zlib.dir/compress.o" \ +"CMakeFiles/zlib.dir/crc32.o" \ +"CMakeFiles/zlib.dir/deflate.o" \ +"CMakeFiles/zlib.dir/gzclose.o" \ +"CMakeFiles/zlib.dir/gzlib.o" \ +"CMakeFiles/zlib.dir/gzread.o" \ +"CMakeFiles/zlib.dir/gzwrite.o" \ +"CMakeFiles/zlib.dir/inflate.o" \ +"CMakeFiles/zlib.dir/infback.o" \ +"CMakeFiles/zlib.dir/inftrees.o" \ +"CMakeFiles/zlib.dir/inffast.o" \ +"CMakeFiles/zlib.dir/trees.o" \ +"CMakeFiles/zlib.dir/uncompr.o" \ +"CMakeFiles/zlib.dir/zutil.o" + +# External object files for target zlib +zlib_EXTERNAL_OBJECTS = + +libz.1.2.8.dylib: CMakeFiles/zlib.dir/adler32.o +libz.1.2.8.dylib: CMakeFiles/zlib.dir/compress.o +libz.1.2.8.dylib: CMakeFiles/zlib.dir/crc32.o +libz.1.2.8.dylib: CMakeFiles/zlib.dir/deflate.o +libz.1.2.8.dylib: CMakeFiles/zlib.dir/gzclose.o +libz.1.2.8.dylib: CMakeFiles/zlib.dir/gzlib.o +libz.1.2.8.dylib: CMakeFiles/zlib.dir/gzread.o +libz.1.2.8.dylib: CMakeFiles/zlib.dir/gzwrite.o +libz.1.2.8.dylib: CMakeFiles/zlib.dir/inflate.o +libz.1.2.8.dylib: CMakeFiles/zlib.dir/infback.o +libz.1.2.8.dylib: CMakeFiles/zlib.dir/inftrees.o +libz.1.2.8.dylib: CMakeFiles/zlib.dir/inffast.o +libz.1.2.8.dylib: CMakeFiles/zlib.dir/trees.o +libz.1.2.8.dylib: CMakeFiles/zlib.dir/uncompr.o +libz.1.2.8.dylib: CMakeFiles/zlib.dir/zutil.o +libz.1.2.8.dylib: CMakeFiles/zlib.dir/build.make +libz.1.2.8.dylib: CMakeFiles/zlib.dir/link.txt + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles --progress-num=$(CMAKE_PROGRESS_16) "Linking C shared library libz.dylib" + $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/zlib.dir/link.txt --verbose=$(VERBOSE) + $(CMAKE_COMMAND) -E cmake_symlink_library libz.1.2.8.dylib libz.1.dylib libz.dylib + +libz.1.dylib: libz.1.2.8.dylib + @$(CMAKE_COMMAND) -E touch_nocreate libz.1.dylib + +libz.dylib: libz.1.2.8.dylib + @$(CMAKE_COMMAND) -E touch_nocreate libz.dylib + +# Rule to build all files generated by this target. +CMakeFiles/zlib.dir/build: libz.dylib + +.PHONY : CMakeFiles/zlib.dir/build + +CMakeFiles/zlib.dir/clean: + $(CMAKE_COMMAND) -P CMakeFiles/zlib.dir/cmake_clean.cmake +.PHONY : CMakeFiles/zlib.dir/clean + +CMakeFiles/zlib.dir/depend: + cd /Users/weishijun/WizTeam/WizQTClient/lib/zlib && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /Users/weishijun/WizTeam/WizQTClient/lib/zlib /Users/weishijun/WizTeam/WizQTClient/lib/zlib /Users/weishijun/WizTeam/WizQTClient/lib/zlib /Users/weishijun/WizTeam/WizQTClient/lib/zlib /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/zlib.dir/DependInfo.cmake --color=$(COLOR) +.PHONY : CMakeFiles/zlib.dir/depend + diff --git a/lib/zlib/CMakeFiles/zlib.dir/cmake_clean.cmake b/lib/zlib/CMakeFiles/zlib.dir/cmake_clean.cmake new file mode 100644 index 000000000..000ea6c76 --- /dev/null +++ b/lib/zlib/CMakeFiles/zlib.dir/cmake_clean.cmake @@ -0,0 +1,26 @@ +file(REMOVE_RECURSE + "CMakeFiles/zlib.dir/adler32.o" + "CMakeFiles/zlib.dir/compress.o" + "CMakeFiles/zlib.dir/crc32.o" + "CMakeFiles/zlib.dir/deflate.o" + "CMakeFiles/zlib.dir/gzclose.o" + "CMakeFiles/zlib.dir/gzlib.o" + "CMakeFiles/zlib.dir/gzread.o" + "CMakeFiles/zlib.dir/gzwrite.o" + "CMakeFiles/zlib.dir/inflate.o" + "CMakeFiles/zlib.dir/infback.o" + "CMakeFiles/zlib.dir/inftrees.o" + "CMakeFiles/zlib.dir/inffast.o" + "CMakeFiles/zlib.dir/trees.o" + "CMakeFiles/zlib.dir/uncompr.o" + "CMakeFiles/zlib.dir/zutil.o" + "libz.pdb" + "libz.1.2.8.dylib" + "libz.dylib" + "libz.1.dylib" +) + +# Per-language clean rules from dependency scanning. +foreach(lang C) + include(CMakeFiles/zlib.dir/cmake_clean_${lang}.cmake OPTIONAL) +endforeach() diff --git a/lib/zlib/CMakeFiles/zlib.dir/depend.make b/lib/zlib/CMakeFiles/zlib.dir/depend.make new file mode 100644 index 000000000..2e658d7b2 --- /dev/null +++ b/lib/zlib/CMakeFiles/zlib.dir/depend.make @@ -0,0 +1,2 @@ +# Empty dependencies file for zlib. +# This may be replaced when dependencies are built. diff --git a/lib/zlib/CMakeFiles/zlib.dir/flags.make b/lib/zlib/CMakeFiles/zlib.dir/flags.make new file mode 100644 index 000000000..79fcbf48a --- /dev/null +++ b/lib/zlib/CMakeFiles/zlib.dir/flags.make @@ -0,0 +1,10 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.12 + +# compile C with /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc +C_FLAGS = -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -fPIC + +C_DEFINES = -DZLIB_DLL + +C_INCLUDES = -I/Users/weishijun/WizTeam/WizQTClient/lib/zlib + diff --git a/lib/zlib/CMakeFiles/zlib.dir/link.txt b/lib/zlib/CMakeFiles/zlib.dir/link.txt new file mode 100644 index 000000000..d482ab7ac --- /dev/null +++ b/lib/zlib/CMakeFiles/zlib.dir/link.txt @@ -0,0 +1 @@ +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -dynamiclib -Wl,-headerpad_max_install_names -compatibility_version 1.0.0 -current_version 1.2.8 -o libz.1.2.8.dylib -install_name /Users/weishijun/WizTeam/WizQTClient/lib/zlib/libz.1.dylib CMakeFiles/zlib.dir/adler32.o CMakeFiles/zlib.dir/compress.o CMakeFiles/zlib.dir/crc32.o CMakeFiles/zlib.dir/deflate.o CMakeFiles/zlib.dir/gzclose.o CMakeFiles/zlib.dir/gzlib.o CMakeFiles/zlib.dir/gzread.o CMakeFiles/zlib.dir/gzwrite.o CMakeFiles/zlib.dir/inflate.o CMakeFiles/zlib.dir/infback.o CMakeFiles/zlib.dir/inftrees.o CMakeFiles/zlib.dir/inffast.o CMakeFiles/zlib.dir/trees.o CMakeFiles/zlib.dir/uncompr.o CMakeFiles/zlib.dir/zutil.o diff --git a/lib/zlib/CMakeFiles/zlib.dir/progress.make b/lib/zlib/CMakeFiles/zlib.dir/progress.make new file mode 100644 index 000000000..b497c8ad6 --- /dev/null +++ b/lib/zlib/CMakeFiles/zlib.dir/progress.make @@ -0,0 +1,17 @@ +CMAKE_PROGRESS_1 = 1 +CMAKE_PROGRESS_2 = 2 +CMAKE_PROGRESS_3 = 3 +CMAKE_PROGRESS_4 = 4 +CMAKE_PROGRESS_5 = 5 +CMAKE_PROGRESS_6 = 6 +CMAKE_PROGRESS_7 = 7 +CMAKE_PROGRESS_8 = 8 +CMAKE_PROGRESS_9 = 9 +CMAKE_PROGRESS_10 = 10 +CMAKE_PROGRESS_11 = 11 +CMAKE_PROGRESS_12 = 12 +CMAKE_PROGRESS_13 = 13 +CMAKE_PROGRESS_14 = 14 +CMAKE_PROGRESS_15 = 15 +CMAKE_PROGRESS_16 = 16 + diff --git a/lib/zlib/CTestTestfile.cmake b/lib/zlib/CTestTestfile.cmake new file mode 100644 index 000000000..54b33e123 --- /dev/null +++ b/lib/zlib/CTestTestfile.cmake @@ -0,0 +1,6 @@ +# CMake generated Testfile for +# Source directory: /Users/weishijun/WizTeam/WizQTClient/lib/zlib +# Build directory: /Users/weishijun/WizTeam/WizQTClient/lib/zlib +# +# This file includes the relevant testing commands required for +# testing this directory and lists subdirectories to be tested as well. diff --git a/lib/zlib/Makefile b/lib/zlib/Makefile new file mode 100644 index 000000000..316c50dca --- /dev/null +++ b/lib/zlib/Makefile @@ -0,0 +1,430 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.12 + +# Default target executed when no arguments are given to make. +default_target: all + +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/local/Cellar/cmake/3.12.3/bin/cmake + +# The command to remove a file. +RM = /usr/local/Cellar/cmake/3.12.3/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/weishijun/WizTeam/WizQTClient/lib/zlib + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/weishijun/WizTeam/WizQTClient/lib/zlib + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/local/Cellar/cmake/3.12.3/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache + +.PHONY : rebuild_cache/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." + /usr/local/Cellar/cmake/3.12.3/bin/ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache + +.PHONY : edit_cache/fast + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..." + /usr/local/Cellar/cmake/3.12.3/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test + +.PHONY : test/fast + +# The main all target +all: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles/progress.marks + $(MAKE) -f CMakeFiles/Makefile2 all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/weishijun/WizTeam/WizQTClient/lib/zlib/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + $(MAKE) -f CMakeFiles/Makefile2 clean +.PHONY : clean + +# The main clean target +clean/fast: clean + +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + $(MAKE) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + $(MAKE) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +#============================================================================= +# Target rules for targets named zlib + +# Build rule for target. +zlib: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 zlib +.PHONY : zlib + +# fast build rule for target. +zlib/fast: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/build +.PHONY : zlib/fast + +# target to build an object file +adler32.o: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/adler32.o +.PHONY : adler32.o + +# target to preprocess a source file +adler32.i: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/adler32.i +.PHONY : adler32.i + +# target to generate assembly for a file +adler32.s: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/adler32.s +.PHONY : adler32.s + +# target to build an object file +compress.o: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/compress.o +.PHONY : compress.o + +# target to preprocess a source file +compress.i: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/compress.i +.PHONY : compress.i + +# target to generate assembly for a file +compress.s: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/compress.s +.PHONY : compress.s + +# target to build an object file +crc32.o: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/crc32.o +.PHONY : crc32.o + +# target to preprocess a source file +crc32.i: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/crc32.i +.PHONY : crc32.i + +# target to generate assembly for a file +crc32.s: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/crc32.s +.PHONY : crc32.s + +# target to build an object file +deflate.o: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/deflate.o +.PHONY : deflate.o + +# target to preprocess a source file +deflate.i: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/deflate.i +.PHONY : deflate.i + +# target to generate assembly for a file +deflate.s: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/deflate.s +.PHONY : deflate.s + +# target to build an object file +gzclose.o: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/gzclose.o +.PHONY : gzclose.o + +# target to preprocess a source file +gzclose.i: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/gzclose.i +.PHONY : gzclose.i + +# target to generate assembly for a file +gzclose.s: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/gzclose.s +.PHONY : gzclose.s + +# target to build an object file +gzlib.o: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/gzlib.o +.PHONY : gzlib.o + +# target to preprocess a source file +gzlib.i: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/gzlib.i +.PHONY : gzlib.i + +# target to generate assembly for a file +gzlib.s: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/gzlib.s +.PHONY : gzlib.s + +# target to build an object file +gzread.o: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/gzread.o +.PHONY : gzread.o + +# target to preprocess a source file +gzread.i: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/gzread.i +.PHONY : gzread.i + +# target to generate assembly for a file +gzread.s: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/gzread.s +.PHONY : gzread.s + +# target to build an object file +gzwrite.o: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/gzwrite.o +.PHONY : gzwrite.o + +# target to preprocess a source file +gzwrite.i: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/gzwrite.i +.PHONY : gzwrite.i + +# target to generate assembly for a file +gzwrite.s: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/gzwrite.s +.PHONY : gzwrite.s + +# target to build an object file +infback.o: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/infback.o +.PHONY : infback.o + +# target to preprocess a source file +infback.i: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/infback.i +.PHONY : infback.i + +# target to generate assembly for a file +infback.s: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/infback.s +.PHONY : infback.s + +# target to build an object file +inffast.o: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/inffast.o +.PHONY : inffast.o + +# target to preprocess a source file +inffast.i: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/inffast.i +.PHONY : inffast.i + +# target to generate assembly for a file +inffast.s: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/inffast.s +.PHONY : inffast.s + +# target to build an object file +inflate.o: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/inflate.o +.PHONY : inflate.o + +# target to preprocess a source file +inflate.i: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/inflate.i +.PHONY : inflate.i + +# target to generate assembly for a file +inflate.s: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/inflate.s +.PHONY : inflate.s + +# target to build an object file +inftrees.o: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/inftrees.o +.PHONY : inftrees.o + +# target to preprocess a source file +inftrees.i: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/inftrees.i +.PHONY : inftrees.i + +# target to generate assembly for a file +inftrees.s: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/inftrees.s +.PHONY : inftrees.s + +# target to build an object file +trees.o: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/trees.o +.PHONY : trees.o + +# target to preprocess a source file +trees.i: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/trees.i +.PHONY : trees.i + +# target to generate assembly for a file +trees.s: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/trees.s +.PHONY : trees.s + +# target to build an object file +uncompr.o: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/uncompr.o +.PHONY : uncompr.o + +# target to preprocess a source file +uncompr.i: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/uncompr.i +.PHONY : uncompr.i + +# target to generate assembly for a file +uncompr.s: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/uncompr.s +.PHONY : uncompr.s + +# target to build an object file +zutil.o: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/zutil.o +.PHONY : zutil.o + +# target to preprocess a source file +zutil.i: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/zutil.i +.PHONY : zutil.i + +# target to generate assembly for a file +zutil.s: + $(MAKE) -f CMakeFiles/zlib.dir/build.make CMakeFiles/zlib.dir/zutil.s +.PHONY : zutil.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... rebuild_cache" + @echo "... edit_cache" + @echo "... test" + @echo "... zlib" + @echo "... adler32.o" + @echo "... adler32.i" + @echo "... adler32.s" + @echo "... compress.o" + @echo "... compress.i" + @echo "... compress.s" + @echo "... crc32.o" + @echo "... crc32.i" + @echo "... crc32.s" + @echo "... deflate.o" + @echo "... deflate.i" + @echo "... deflate.s" + @echo "... gzclose.o" + @echo "... gzclose.i" + @echo "... gzclose.s" + @echo "... gzlib.o" + @echo "... gzlib.i" + @echo "... gzlib.s" + @echo "... gzread.o" + @echo "... gzread.i" + @echo "... gzread.s" + @echo "... gzwrite.o" + @echo "... gzwrite.i" + @echo "... gzwrite.s" + @echo "... infback.o" + @echo "... infback.i" + @echo "... infback.s" + @echo "... inffast.o" + @echo "... inffast.i" + @echo "... inffast.s" + @echo "... inflate.o" + @echo "... inflate.i" + @echo "... inflate.s" + @echo "... inftrees.o" + @echo "... inftrees.i" + @echo "... inftrees.s" + @echo "... trees.o" + @echo "... trees.i" + @echo "... trees.s" + @echo "... uncompr.o" + @echo "... uncompr.i" + @echo "... uncompr.s" + @echo "... zutil.o" + @echo "... zutil.i" + @echo "... zutil.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/lib/zlib/cmake_install.cmake b/lib/zlib/cmake_install.cmake new file mode 100644 index 000000000..36a993bde --- /dev/null +++ b/lib/zlib/cmake_install.cmake @@ -0,0 +1,44 @@ +# Install script for directory: /Users/weishijun/WizTeam/WizQTClient/lib/zlib + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +if(CMAKE_INSTALL_COMPONENT) + set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") +else() + set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +file(WRITE "/Users/weishijun/WizTeam/WizQTClient/lib/zlib/${CMAKE_INSTALL_MANIFEST}" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") diff --git a/lib/zlib/zconf.h b/lib/zlib/zconf.h new file mode 100644 index 000000000..a3a6b54fc --- /dev/null +++ b/lib/zlib/zconf.h @@ -0,0 +1,513 @@ +/* zconf.h -- configuration of the zlib compression library + * Copyright (C) 1995-2013 Jean-loup Gailly. + * For conditions of distribution and use, see copyright notice in zlib.h + */ + +/* @(#) $Id$ */ + +#ifndef ZCONF_H +#define ZCONF_H +/* #undef Z_PREFIX */ +#define Z_HAVE_UNISTD_H + +/* + * If you *really* need a unique prefix for all types and library functions, + * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it. + * Even better than compiling with -DZ_PREFIX would be to use configure to set + * this permanently in zconf.h using "./configure --zprefix". + */ +#ifdef Z_PREFIX /* may be set to #if 1 by ./configure */ +# define Z_PREFIX_SET + +/* all linked symbols */ +# define _dist_code z__dist_code +# define _length_code z__length_code +# define _tr_align z__tr_align +# define _tr_flush_bits z__tr_flush_bits +# define _tr_flush_block z__tr_flush_block +# define _tr_init z__tr_init +# define _tr_stored_block z__tr_stored_block +# define _tr_tally z__tr_tally +# define adler32 z_adler32 +# define adler32_combine z_adler32_combine +# define adler32_combine64 z_adler32_combine64 +# ifndef Z_SOLO +# define compress z_compress +# define compress2 z_compress2 +# define compressBound z_compressBound +# endif +# define crc32 z_crc32 +# define crc32_combine z_crc32_combine +# define crc32_combine64 z_crc32_combine64 +# define deflate z_deflate +# define deflateBound z_deflateBound +# define deflateCopy z_deflateCopy +# define deflateEnd z_deflateEnd +# define deflateInit2_ z_deflateInit2_ +# define deflateInit_ z_deflateInit_ +# define deflateParams z_deflateParams +# define deflatePending z_deflatePending +# define deflatePrime z_deflatePrime +# define deflateReset z_deflateReset +# define deflateResetKeep z_deflateResetKeep +# define deflateSetDictionary z_deflateSetDictionary +# define deflateSetHeader z_deflateSetHeader +# define deflateTune z_deflateTune +# define deflate_copyright z_deflate_copyright +# define get_crc_table z_get_crc_table +# ifndef Z_SOLO +# define gz_error z_gz_error +# define gz_intmax z_gz_intmax +# define gz_strwinerror z_gz_strwinerror +# define gzbuffer z_gzbuffer +# define gzclearerr z_gzclearerr +# define gzclose z_gzclose +# define gzclose_r z_gzclose_r +# define gzclose_w z_gzclose_w +# define gzdirect z_gzdirect +# define gzdopen z_gzdopen +# define gzeof z_gzeof +# define gzerror z_gzerror +# define gzflush z_gzflush +# define gzgetc z_gzgetc +# define gzgetc_ z_gzgetc_ +# define gzgets z_gzgets +# define gzoffset z_gzoffset +# define gzoffset64 z_gzoffset64 +# define gzopen z_gzopen +# define gzopen64 z_gzopen64 +# ifdef _WIN32 +# define gzopen_w z_gzopen_w +# endif +# define gzprintf z_gzprintf +# define gzvprintf z_gzvprintf +# define gzputc z_gzputc +# define gzputs z_gzputs +# define gzread z_gzread +# define gzrewind z_gzrewind +# define gzseek z_gzseek +# define gzseek64 z_gzseek64 +# define gzsetparams z_gzsetparams +# define gztell z_gztell +# define gztell64 z_gztell64 +# define gzungetc z_gzungetc +# define gzwrite z_gzwrite +# endif +# define inflate z_inflate +# define inflateBack z_inflateBack +# define inflateBackEnd z_inflateBackEnd +# define inflateBackInit_ z_inflateBackInit_ +# define inflateCopy z_inflateCopy +# define inflateEnd z_inflateEnd +# define inflateGetHeader z_inflateGetHeader +# define inflateInit2_ z_inflateInit2_ +# define inflateInit_ z_inflateInit_ +# define inflateMark z_inflateMark +# define inflatePrime z_inflatePrime +# define inflateReset z_inflateReset +# define inflateReset2 z_inflateReset2 +# define inflateSetDictionary z_inflateSetDictionary +# define inflateGetDictionary z_inflateGetDictionary +# define inflateSync z_inflateSync +# define inflateSyncPoint z_inflateSyncPoint +# define inflateUndermine z_inflateUndermine +# define inflateResetKeep z_inflateResetKeep +# define inflate_copyright z_inflate_copyright +# define inflate_fast z_inflate_fast +# define inflate_table z_inflate_table +# ifndef Z_SOLO +# define uncompress z_uncompress +# endif +# define zError z_zError +# ifndef Z_SOLO +# define zcalloc z_zcalloc +# define zcfree z_zcfree +# endif +# define zlibCompileFlags z_zlibCompileFlags +# define zlibVersion z_zlibVersion + +/* all zlib typedefs in zlib.h and zconf.h */ +# define Byte z_Byte +# define Bytef z_Bytef +# define alloc_func z_alloc_func +# define charf z_charf +# define free_func z_free_func +# ifndef Z_SOLO +# define gzFile z_gzFile +# endif +# define gz_header z_gz_header +# define gz_headerp z_gz_headerp +# define in_func z_in_func +# define intf z_intf +# define out_func z_out_func +# define uInt z_uInt +# define uIntf z_uIntf +# define uLong z_uLong +# define uLongf z_uLongf +# define voidp z_voidp +# define voidpc z_voidpc +# define voidpf z_voidpf + +/* all zlib structs in zlib.h and zconf.h */ +# define gz_header_s z_gz_header_s +# define internal_state z_internal_state + +#endif + +#if defined(__MSDOS__) && !defined(MSDOS) +# define MSDOS +#endif +#if (defined(OS_2) || defined(__OS2__)) && !defined(OS2) +# define OS2 +#endif +#if defined(_WINDOWS) && !defined(WINDOWS) +# define WINDOWS +#endif +#if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__) +# ifndef WIN32 +# define WIN32 +# endif +#endif +#if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32) +# if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__) +# ifndef SYS16BIT +# define SYS16BIT +# endif +# endif +#endif + +/* + * Compile with -DMAXSEG_64K if the alloc function cannot allocate more + * than 64k bytes at a time (needed on systems with 16-bit int). + */ +#ifdef SYS16BIT +# define MAXSEG_64K +#endif +#ifdef MSDOS +# define UNALIGNED_OK +#endif + +#ifdef __STDC_VERSION__ +# ifndef STDC +# define STDC +# endif +# if __STDC_VERSION__ >= 199901L +# ifndef STDC99 +# define STDC99 +# endif +# endif +#endif +#if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus)) +# define STDC +#endif +#if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__)) +# define STDC +#endif +#if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32)) +# define STDC +#endif +#if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__)) +# define STDC +#endif + +#if defined(__OS400__) && !defined(STDC) /* iSeries (formerly AS/400). */ +# define STDC +#endif + +#ifndef STDC +# ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */ +# define const /* note: need a more gentle solution here */ +# endif +#endif + +#if defined(ZLIB_CONST) && !defined(z_const) +# define z_const const +#else +# define z_const +#endif + +/* Some Mac compilers merge all .h files incorrectly: */ +#if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__) +# define NO_DUMMY_DECL +#endif + +/* Maximum value for memLevel in deflateInit2 */ +#ifndef MAX_MEM_LEVEL +# ifdef MAXSEG_64K +# define MAX_MEM_LEVEL 8 +# else +# define MAX_MEM_LEVEL 9 +# endif +#endif + +/* Maximum value for windowBits in deflateInit2 and inflateInit2. + * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files + * created by gzip. (Files created by minigzip can still be extracted by + * gzip.) + */ +#ifndef MAX_WBITS +# define MAX_WBITS 15 /* 32K LZ77 window */ +#endif + +/* The memory requirements for deflate are (in bytes): + (1 << (windowBits+2)) + (1 << (memLevel+9)) + that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values) + plus a few kilobytes for small objects. For example, if you want to reduce + the default memory requirements from 256K to 128K, compile with + make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7" + Of course this will generally degrade compression (there's no free lunch). + + The memory requirements for inflate are (in bytes) 1 << windowBits + that is, 32K for windowBits=15 (default value) plus a few kilobytes + for small objects. +*/ + + /* Type declarations */ + +#ifndef OF /* function prototypes */ +# ifdef STDC +# define OF(args) args +# else +# define OF(args) () +# endif +#endif + +#ifndef Z_ARG /* function prototypes for stdarg */ +# if defined(STDC) || defined(Z_HAVE_STDARG_H) +# define Z_ARG(args) args +# else +# define Z_ARG(args) () +# endif +#endif + +/* The following definitions for FAR are needed only for MSDOS mixed + * model programming (small or medium model with some far allocations). + * This was tested only with MSC; for other MSDOS compilers you may have + * to define NO_MEMCPY in zutil.h. If you don't need the mixed model, + * just define FAR to be empty. + */ +#ifdef SYS16BIT +# if defined(M_I86SM) || defined(M_I86MM) + /* MSC small or medium model */ +# define SMALL_MEDIUM +# ifdef _MSC_VER +# define FAR _far +# else +# define FAR far +# endif +# endif +# if (defined(__SMALL__) || defined(__MEDIUM__)) + /* Turbo C small or medium model */ +# define SMALL_MEDIUM +# ifdef __BORLANDC__ +# define FAR _far +# else +# define FAR far +# endif +# endif +#endif + +#if defined(WINDOWS) || defined(WIN32) + /* If building or using zlib as a DLL, define ZLIB_DLL. + * This is not mandatory, but it offers a little performance increase. + */ +# ifdef ZLIB_DLL +# if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500)) +# ifdef ZLIB_INTERNAL +# define ZEXTERN extern __declspec(dllexport) +# else +# define ZEXTERN extern __declspec(dllimport) +# endif +# endif +# endif /* ZLIB_DLL */ + /* If building or using zlib with the WINAPI/WINAPIV calling convention, + * define ZLIB_WINAPI. + * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI. + */ +# ifdef ZLIB_WINAPI +# ifdef FAR +# undef FAR +# endif +# include + /* No need for _export, use ZLIB.DEF instead. */ + /* For complete Windows compatibility, use WINAPI, not __stdcall. */ +# define ZEXPORT WINAPI +# ifdef WIN32 +# define ZEXPORTVA WINAPIV +# else +# define ZEXPORTVA FAR CDECL +# endif +# endif +#endif + +#if defined (__BEOS__) +# ifdef ZLIB_DLL +# ifdef ZLIB_INTERNAL +# define ZEXPORT __declspec(dllexport) +# define ZEXPORTVA __declspec(dllexport) +# else +# define ZEXPORT __declspec(dllimport) +# define ZEXPORTVA __declspec(dllimport) +# endif +# endif +#endif + +#ifndef ZEXTERN +# define ZEXTERN extern +#endif +#ifndef ZEXPORT +# define ZEXPORT +#endif +#ifndef ZEXPORTVA +# define ZEXPORTVA +#endif + +#ifndef FAR +# define FAR +#endif + +#if !defined(__MACTYPES__) +typedef unsigned char Byte; /* 8 bits */ +#endif +typedef unsigned int uInt; /* 16 bits or more */ +typedef unsigned long uLong; /* 32 bits or more */ + +#ifdef SMALL_MEDIUM + /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */ +# define Bytef Byte FAR +#else + typedef Byte FAR Bytef; +#endif +typedef char FAR charf; +typedef int FAR intf; +typedef uInt FAR uIntf; +typedef uLong FAR uLongf; + +#ifdef STDC + typedef void const *voidpc; + typedef void FAR *voidpf; + typedef void *voidp; +#else + typedef Byte const *voidpc; + typedef Byte FAR *voidpf; + typedef Byte *voidp; +#endif + +#if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC) +# include +# if (UINT_MAX == 0xffffffffUL) +# define Z_U4 unsigned +# elif (ULONG_MAX == 0xffffffffUL) +# define Z_U4 unsigned long +# elif (USHRT_MAX == 0xffffffffUL) +# define Z_U4 unsigned short +# endif +#endif + +#ifdef Z_U4 + typedef Z_U4 z_crc_t; +#else + typedef unsigned long z_crc_t; +#endif + +#ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */ +# define Z_HAVE_UNISTD_H +#endif + +#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */ +# define Z_HAVE_STDARG_H +#endif + +#ifdef STDC +# ifndef Z_SOLO +# include /* for off_t */ +# endif +#endif + +#if defined(STDC) || defined(Z_HAVE_STDARG_H) +# ifndef Z_SOLO +# include /* for va_list */ +# endif +#endif + +#ifdef _WIN32 +# ifndef Z_SOLO +# include /* for wchar_t */ +# endif +#endif + +/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and + * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even + * though the former does not conform to the LFS document), but considering + * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as + * equivalently requesting no 64-bit operations + */ +#if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1 +# undef _LARGEFILE64_SOURCE +#endif + +#if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H) +# define Z_HAVE_UNISTD_H +#endif +#ifndef Z_SOLO +# if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) +# include /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ +# ifdef VMS +# include /* for off_t */ +# endif +# ifndef z_off_t +# define z_off_t off_t +# endif +# endif +#endif + +#if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0 +# define Z_LFS64 +#endif + +#if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64) +# define Z_LARGE64 +#endif + +#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64) +# define Z_WANT64 +#endif + +#if !defined(SEEK_SET) && !defined(Z_SOLO) +# define SEEK_SET 0 /* Seek from beginning of file. */ +# define SEEK_CUR 1 /* Seek from current position. */ +# define SEEK_END 2 /* Set file pointer to EOF plus "offset" */ +#endif + +#ifndef z_off_t +# define z_off_t long +#endif + +#if !defined(_WIN32) && defined(Z_LARGE64) +# define z_off64_t off64_t +#else +# if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO) +# define z_off64_t __int64 +# else +# define z_off64_t z_off_t +# endif +#endif + +/* MVS linker does not support external names larger than 8 bytes */ +#if defined(__MVS__) + #pragma map(deflateInit_,"DEIN") + #pragma map(deflateInit2_,"DEIN2") + #pragma map(deflateEnd,"DEEND") + #pragma map(deflateBound,"DEBND") + #pragma map(inflateInit_,"ININ") + #pragma map(inflateInit2_,"ININ2") + #pragma map(inflateEnd,"INEND") + #pragma map(inflateSync,"INSY") + #pragma map(inflateSetDictionary,"INSEDI") + #pragma map(compressBound,"CMBND") + #pragma map(inflate_table,"INTABL") + #pragma map(inflate_fast,"INFA") + #pragma map(inflate_copyright,"INCOPY") +#endif + +#endif /* ZCONF_H */ diff --git a/lib/zlib/zlib.pc b/lib/zlib/zlib.pc new file mode 100644 index 000000000..df681d03c --- /dev/null +++ b/lib/zlib/zlib.pc @@ -0,0 +1,13 @@ +prefix=/usr/local +exec_prefix=/usr/local +libdir= +sharedlibdir= +includedir= + +Name: zlib +Description: zlib compression library +Version: 1.2.8 + +Requires: +Libs: -L${libdir} -L${sharedlibdir} -lz +Cflags: -I${includedir} diff --git a/lib/zlib/zlib.pro b/lib/zlib/zlib.pro new file mode 100644 index 000000000..4844073ce --- /dev/null +++ b/lib/zlib/zlib.pro @@ -0,0 +1,41 @@ +QT -= gui + +TEMPLATE = lib +CONFIG += staticlib + +CONFIG += c++11 + +# The following define makes your compiler emit warnings if you use +# any Qt feature that has been marked deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if it uses deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + +SOURCES += \ + adler32.c\ + crc32.c \ + gzclose.c \ + gzread.c \ + infback.c \ + inflate.c \ + trees.c \ + zutil.c \ + compress.c \ + deflate.c \ + gzlib.c \ + gzwrite.c \ + inffast.c \ + inftrees.c \ + uncompr.c + +# Default rules for deployment. +unix { + target.path = $$[QT_INSTALL_PLUGINS]/generic +} +!isEmpty(target.path): INSTALLS += target + diff --git a/src/WizAttachmentListWidget.cpp b/src/WizAttachmentListWidget.cpp index fe1c01d0d..1e5f29cea 100755 --- a/src/WizAttachmentListWidget.cpp +++ b/src/WizAttachmentListWidget.cpp @@ -20,7 +20,7 @@ #include "share/WizMessageBox.h" #include "utils/WizPathResolve.h" #include "utils/WizStyleHelper.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "WizNoteStyle.h" #include "WizButton.h" #include "WizMainWindow.h" diff --git a/src/WizCategoryView.cpp b/src/WizCategoryView.cpp index c20c2cbf5..52ade9a32 100755 --- a/src/WizCategoryView.cpp +++ b/src/WizCategoryView.cpp @@ -11,7 +11,7 @@ #include "WizDef.h" #include "utils/WizStyleHelper.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "utils/WizLogger.h" #include "share/WizDrawTextHelper.h" #include "share/WizSettings.h" diff --git a/src/WizCategoryViewItem.cpp b/src/WizCategoryViewItem.cpp index 68f0974bd..ed7dd63ba 100755 --- a/src/WizCategoryViewItem.cpp +++ b/src/WizCategoryViewItem.cpp @@ -11,7 +11,7 @@ #include "utils/WizStyleHelper.h" #include "utils/WizNotify.h" #include "utils/WizLogger.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "WizCategoryView.h" #include "WizMainWindow.h" diff --git a/src/WizCombineNotesDialog.cpp b/src/WizCombineNotesDialog.cpp index 82259f995..fd7f5d48f 100755 --- a/src/WizCombineNotesDialog.cpp +++ b/src/WizCombineNotesDialog.cpp @@ -14,7 +14,7 @@ #include "share/WizSettings.h" #include "utils/WizPathResolve.h" #include "utils/WizLogger.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "share/WizMessageBox.h" #include "core/WizNoteManager.h" diff --git a/src/WizDocTemplateDialog.cpp b/src/WizDocTemplateDialog.cpp index 698c08f2d..ec5d4bfa1 100755 --- a/src/WizDocTemplateDialog.cpp +++ b/src/WizDocTemplateDialog.cpp @@ -13,7 +13,7 @@ #include "share/jsoncpp/json/json.h" #include "utils/WizPathResolve.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "share/WizMisc.h" #include "share/WizZip.h" #include "share/WizSettings.h" diff --git a/src/WizDocumentWebView.cpp b/src/WizDocumentWebView.cpp index 590466677..4340c9aa8 100755 --- a/src/WizDocumentWebView.cpp +++ b/src/WizDocumentWebView.cpp @@ -31,7 +31,7 @@ #include "WizDef.h" #include "utils/WizPathResolve.h" #include "utils/WizLogger.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "utils/WizStyleHelper.h" #include "share/WizMisc.h" diff --git a/src/WizFileImporter.cpp b/src/WizFileImporter.cpp index b945f1ac5..f2869b150 100755 --- a/src/WizFileImporter.cpp +++ b/src/WizFileImporter.cpp @@ -6,7 +6,7 @@ #include #include "utils/WizPathResolve.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "html/WizHtmlCollector.h" #include "share/WizMisc.h" #include "share/WizRtfReader.h" diff --git a/src/WizMainWindow.cpp b/src/WizMainWindow.cpp index d8135d6f2..281f2f358 100755 --- a/src/WizMainWindow.cpp +++ b/src/WizMainWindow.cpp @@ -56,7 +56,7 @@ #include "share/WizObjectDataDownloader.h" #include "utils/WizPathResolve.h" #include "utils/WizStyleHelper.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "utils/WizPinyin.h" #include "widgets/WizFramelessWebDialog.h" #include "widgets/WizScreenShotWidget.h" diff --git a/src/WizMessageListView.cpp b/src/WizMessageListView.cpp index d2d249c98..3ab154fe6 100755 --- a/src/WizMessageListView.cpp +++ b/src/WizMessageListView.cpp @@ -17,7 +17,7 @@ #include "share/jsoncpp/json/json.h" #include "utils/WizStyleHelper.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "utils/WizPinyin.h" #include "sync/WizAvatarHost.h" #include "sync/WizAsyncApi.h" diff --git a/src/WizSvgEditorDialog.cpp b/src/WizSvgEditorDialog.cpp index e29a5f722..fca58730a 100755 --- a/src/WizSvgEditorDialog.cpp +++ b/src/WizSvgEditorDialog.cpp @@ -5,7 +5,7 @@ #include "share/WizThreads.h" #include "share/WizMisc.h" #include "utils/WizPathResolve.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "share/jsoncpp/json/json.h" #include "share/WizDatabaseManager.h" #include "share/WizDatabase.h" diff --git a/src/WizThumbCache_p.h b/src/WizThumbCache_p.h index cef4c5130..f70d5581c 100755 --- a/src/WizThumbCache_p.h +++ b/src/WizThumbCache_p.h @@ -3,11 +3,9 @@ #include #include +#include "share/WizObject.h" -struct WIZABSTRACT; -struct WIZDOCUMENTDATA; - class WizThumbCache; diff --git a/src/core/WizNoteManager.cpp b/src/core/WizNoteManager.cpp index d8f98346b..0abbb9979 100755 --- a/src/core/WizNoteManager.cpp +++ b/src/core/WizNoteManager.cpp @@ -10,7 +10,7 @@ #include "share/jsoncpp/json/json.h" #include "utils/WizPathResolve.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "sync/WizApiEntry.h" #include "sync/WizToken.h" #include "share/WizObject.h" diff --git a/src/html/WizHtmlCollector.cpp b/src/html/WizHtmlCollector.cpp index 6e71b97b9..7504f5473 100755 --- a/src/html/WizHtmlCollector.cpp +++ b/src/html/WizHtmlCollector.cpp @@ -9,7 +9,7 @@ #include "../share/WizHtml2Zip.h" #include "../share/WizObjectDataDownloader.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "utils/WizLogger.h" bool WizHtmlFileMap::lookup(const QString& strUrl, QString& strFileName) diff --git a/src/mac/WizSearchWidget.mm b/src/mac/WizSearchWidget_mac.mm similarity index 100% rename from src/mac/WizSearchWidget.mm rename to src/mac/WizSearchWidget_mac.mm diff --git a/src/share/WizAnalyzer.cpp b/src/share/WizAnalyzer.cpp index da9d8694f..0d0c84cf4 100755 --- a/src/share/WizAnalyzer.cpp +++ b/src/share/WizAnalyzer.cpp @@ -13,7 +13,7 @@ #include "WizDef.h" #include "WizMisc.h" #include "utils/WizPathResolve.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "sync/WizApiEntry.h" #include "share/WizEventLoop.h" #include "share/WizThreads.h" diff --git a/src/share/WizDatabase.cpp b/src/share/WizDatabase.cpp index a23329a77..8493bcb04 100755 --- a/src/share/WizDatabase.cpp +++ b/src/share/WizDatabase.cpp @@ -22,7 +22,7 @@ #include "share/jsoncpp/json/json.h" #include "utils/WizPathResolve.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "utils/WizLogger.h" #include "sync/WizAvatarHost.h" #include "WizObjectDataDownloader.h" diff --git a/src/share/WizFileIconProvider.cpp b/src/share/WizFileIconProvider.cpp index 161bdcd88..6a30dc177 100755 --- a/src/share/WizFileIconProvider.cpp +++ b/src/share/WizFileIconProvider.cpp @@ -21,7 +21,7 @@ #endif #include "utils/WizPathResolve.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" WizFileIconProvider::WizFileIconProvider() diff --git a/src/share/WizHtml2Zip.cpp b/src/share/WizHtml2Zip.cpp index 628a47dc7..0031c0935 100755 --- a/src/share/WizHtml2Zip.cpp +++ b/src/share/WizHtml2Zip.cpp @@ -6,7 +6,7 @@ #include "WizMisc.h" #include "utils/WizPathResolve.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include diff --git a/src/share/WizIndex.cpp b/src/share/WizIndex.cpp index 452c85f75..b21b084e9 100755 --- a/src/share/WizIndex.cpp +++ b/src/share/WizIndex.cpp @@ -5,7 +5,7 @@ #include #include "WizKMCore.h" #include "utils/WizLogger.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "WizMisc.h" diff --git a/src/share/WizMd5.cpp b/src/share/WizMd5.cpp index 56a574569..737eed5f0 100755 --- a/src/share/WizMd5.cpp +++ b/src/share/WizMd5.cpp @@ -5,7 +5,7 @@ #include "WizMisc.h" #include "../utils/WizLogger.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" namespace wizmd5 diff --git a/src/share/WizMisc.cpp b/src/share/WizMisc.cpp index e30ae80c8..267a387d3 100755 --- a/src/share/WizMisc.cpp +++ b/src/share/WizMisc.cpp @@ -25,7 +25,7 @@ #include "utils/WizLogger.h" #include "utils/WizPathResolve.h" #include "utils/WizStyleHelper.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "mac/WizMacHelper.h" #include "sync/WizApiEntry.h" #include "share/WizAnalyzer.h" diff --git a/src/share/WizSearch.h b/src/share/WizSearch.h index 999020560..b15bcfde1 100755 --- a/src/share/WizSearch.h +++ b/src/share/WizSearch.h @@ -9,8 +9,8 @@ #include "WizDatabaseManager.h" #include "share/WizQtHelper.h" +#include "WizObject.h" -struct WIZDOCUMENTDATAEX; typedef std::deque CWizDocumentDataArray; diff --git a/src/share/WizZip.cpp b/src/share/WizZip.cpp index abd9fb6de..3c9e1c32c 100755 --- a/src/share/WizZip.cpp +++ b/src/share/WizZip.cpp @@ -9,7 +9,7 @@ #include #include -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "utils/WizLogger.h" #include "quazip/quazip.h" diff --git a/src/src.pro b/src/src.pro new file mode 100644 index 000000000..f1f55225c --- /dev/null +++ b/src/src.pro @@ -0,0 +1,459 @@ +QT += core gui + + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets webengine webenginewidgets svg xml websockets + +macx { + QT += macextras + LIBS += -framework Carbon + LIBS += -framework Cocoa + LIBS += -framework StoreKit + LIBS += -framework IOKit + + QMAKE_INFO_PLIST = ../build/osx/info.plist + ICON = ../build/common/logo/wiznote.icns +} + +TARGET = WizNote + +CONFIG += c++11 + +# The following define makes your compiler emit warnings if you use +# any Qt feature that has been marked deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +macx { +DEFINES += USECOCOATOOLBAR +} + +# You can also make your code fail to compile if it uses deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + +SOURCES += \ + mac/WizSearchWidget_mac.mm \ + utils/WizLogger.cpp \ + utils/WizMisc_utils.cpp \ + utils/WizNotify.cpp \ + utils/WizNotify_mac.mm \ + utils/WizPinyin.cpp \ + share/WizZip.cpp \ + share/WizQtHelper.cpp \ + share/WizMisc.cpp \ + share/sqlite3.c \ + share/cppsqlite3.cpp \ + share/WizObject.cpp \ + share/WizKMCore.cpp \ + share/WizGlobal.cpp \ + share/WizDatabase.cpp \ + share/WizDatabaseManager.cpp \ + share/WizSettings.cpp \ + share/WizUI.cpp \ + share/WizMd5.cpp \ + share/WizHtml2Zip.cpp \ + share/WizWin32Helper.cpp \ + share/WizDrawTextHelper.cpp \ + share/WizUIHelper.cpp \ + share/WizUIBase.cpp \ + share/WizCommonUI.cpp \ + share/WizAnimateAction.cpp \ + share/WizPopupWidget.cpp \ + share/WizMultiLineListWidget.cpp \ + share/WizFileIconProvider.cpp \ + share/WizWindowsHelper.cpp \ + share/WizIndexBase.cpp \ + share/WizIndex.cpp \ + share/WizThumbIndex.cpp \ + share/WizEnc.cpp \ + share/WizZiwReader.cpp \ + html/WizHtmlReader.cpp \ + html/WizHtmlCollector.cpp \ + share/WizSearch.cpp \ + widgets/WizScrollBar.cpp \ + sync/WizToken.cpp \ + sync/WizApiEntry.cpp \ + share/WizObjectDataDownloader.cpp \ + sync/WizAvatarHost.cpp \ + sync/WizKMServer.cpp \ + sync/WizKMSync.cpp \ + sync/WizAsyncApi.cpp \ + sync/WizAvatarUploader.cpp \ + sync/WizJSONServerBase.cpp \ + sync/WizSync.cpp \ + widgets/WizUserInfoWidget.cpp \ + widgets/WizUserInfoWidgetBase.cpp \ + widgets/WizSegmentedButton.cpp \ + utils/WizStyleHelper.cpp \ + utils/WizPathResolve.cpp \ + share/WizWindowTitleBar.cpp \ + share/WizShadowEffect.cpp \ + widgets/WizTagBar.cpp \ + widgets/WizTrayIcon.cpp \ + share/WizEventLoop.cpp \ + share/WizObjectOperator.cpp \ + widgets/WizAboutDialog.cpp \ + widgets/WizLocalProgressWebView.cpp \ + widgets/WizCrashReportDialog.cpp \ + widgets/WizCustomToolBar.cpp \ + widgets/WizTipsWidget.cpp \ + widgets/WizSingleDocumentView.cpp \ + widgets/WizShareLinkDialog.cpp \ + share/WizAnalyzer.cpp \ + share/WizTranslater.cpp \ + widgets/WizAdvancedSearchDialog.cpp \ + share/WizUdpClient.cpp \ + share/WizMessageBox.cpp \ + share/WizFileMonitor.cpp \ + share/WizLockedFile.cpp \ + share/WizLocalPeer.cpp \ + share/WizSingleApplication.cpp \ + widgets/WizImageButton.cpp \ + widgets/WizCodeEditorDialog.cpp \ + widgets/WizFramelessWebDialog.cpp \ + widgets/WizScreenShotWidget.cpp \ + widgets/WizVerificationCodeDialog.cpp \ + widgets/WizEmailShareDialog.cpp \ + widgets/WizTemplatePurchaseDialog.cpp \ + widgets/WizExecutingActionDialog.cpp \ + share/WebSocketClientWrapper.cpp \ + share/WebSocketTransport.cpp \ + share/WizWebEngineView.cpp \ + widgets/WizTableSelector.cpp \ + widgets/WizUserServiceExprDialog.cpp \ + share/jsoncpp/jsoncpp.cpp \ + share/WizRequest.cpp \ + WizCategoryView.cpp \ + WizCategoryViewItem.cpp \ + WizDocumentListView.cpp \ + WizDocumentListViewItem.cpp \ + WizDocumentView.cpp \ + WizDocumentWebView.cpp \ + WizActions.cpp \ + WizNoteStyle.cpp \ + WizLineInputDialog.cpp \ + WizDocumentHistory.cpp \ + WizAttachmentListWidget.cpp \ + WizTagListWidget.cpp \ + WizConsoleDialog.cpp \ + WizPreferenceDialog.cpp \ + WizProxyDialog.cpp \ + WizCreateAccountDialog.cpp \ + WizMainWindow.cpp \ + WizCellButton.cpp \ + WizTitleBar.cpp \ + WizInfoBar.cpp \ + WizNotifyBar.cpp \ + WizTitleEdit.cpp \ + WizStatusBar.cpp \ + WizUpgradeNotifyDialog.cpp \ + WizUserCipherForm.cpp \ + WizNoteInfoForm.cpp \ + WizSearchWidget.cpp \ + WizEditorInsertLinkForm.cpp \ + WizUpgrade.cpp \ + WizButton.cpp \ + WizEditorToolBar.cpp \ + WizEditorInsertTableForm.cpp \ + WizFileImporter.cpp \ + WizFolderSelector.cpp \ + WizProgressDialog.cpp \ + WizFolderView.cpp \ + WizDocumentSelectionView.cpp \ + WizDocumentTransitionView.cpp \ + WizPopupButton.cpp \ + WizWebSettingsDialog.cpp \ + WizUserVerifyDialog.cpp \ + WizMessageListView.cpp \ + WizThumbCache.cpp \ + WizMessageCompleter.cpp \ + WizDocumentEditStatus.cpp \ + WizLoginDialog.cpp \ + WizSearchReplaceWidget.cpp \ + WizDocTemplateDialog.cpp \ + WizMobileFileReceiver.cpp \ + WizWebEngineInjectObject.cpp \ + WizCombineNotesDialog.cpp \ + WizSvgEditorDialog.cpp \ + WizOEMSettings.cpp \ + mac/WizSearchWidget_mm.cpp \ + core/WizAccountManager.cpp \ + core/WizCommentManager.cpp \ + core/WizNoteManager.cpp \ + share/WizThreads.cpp \ + WizPositionDelegate.cpp \ + main.cpp \ + WizInitBizCertDialog.cpp \ + share/WizDocumentStyle.cpp \ + WizPlugins.cpp + +HEADERS += \ + share/WizZip.h \ + share/WizQtHelper.h \ + share/WizMisc.h \ + share/sqlite3ext.h \ + share/sqlite3.h \ + share/cppsqlite3.h \ + share/WizObject.h \ + share/WizKMCore.h \ + share/WizDatabase.h \ + share/WizDatabaseManager.h \ + share/WizSettings.h \ + share/WizUI.h \ + share/WizHtml2Zip.h \ + share/WizMd5.h \ + share/WizWin32Helper.h \ + share/WizDrawTextHelper.h \ + share/WizUIHelper.h \ + share/WizUIBase.h \ + share/WizCommonUI.h \ + share/WizAnimateAction.h \ + share/WizPopupWidget.h \ + share/WizMultiLineListWidget.h \ + share/WizFileIconProvider.h \ + share/WizWindowsHelper.h \ + share/WizIndexBase.h \ + share/WizIndex.h \ + share/WizThumbIndex.h \ + share/WizEnc.h \ + share/WizZiwReader.h \ + share/WizGlobal.h \ + html/WizHtmlReader.h \ + html/WizHtmlCollector.h \ + sync/WizKMServer.h \ + sync/WizKMSync.h \ + sync/WizAsyncApi.h \ + sync/WizAvatarUploader.h \ + share/WizSyncableDatabase.h \ + share/WizSearch.h \ + utils/WizMisc_utils.h \ + utils/WizNotify.h \ + widgets/WizAboutDialog.h \ + widgets/WizSegmentedButton.h \ + widgets/WizUserInfoWidget.h \ + widgets/WizUserInfoWidgetBase.h \ + widgets/WizScrollBar.h \ + sync/WizToken.h \ + sync/WizToken_p.h \ + sync/WizApiEntry.h \ + share/WizObjectDataDownloader.h \ + sync/WizAvatarHost.h \ + sync/WizAvatarHost_p.h \ + utils/WizStyleHelper.h \ + utils/WizPathResolve.h \ + share/WizWindowTitleBar.h \ + share/WizShadowWindow.h \ + share/WizShadowEffect.h \ + widgets/WizTableSelector.h \ + share/jsoncpp/json/json.h \ + share/jsoncpp/json/json-forwards.h \ + share/WizRequest.h \ + WizDef.h \ + WizActions.h \ + WizNoteStyle.h \ + WizCategoryView.h \ + WizCategoryViewItem.h \ + WizDocumentListView.h \ + WizDocumentListViewItem.h \ + WizDocumentView.h \ + WizDocumentWebView.h \ + WizDocumentHistory.h \ + WizAttachmentListWidget.h \ + WizTagListWidget.h \ + WizConsoleDialog.h \ + WizPreferenceDialog.h \ + WizProxyDialog.h \ + WizCreateAccountDialog.h \ + WizMainWindow.h \ + WizCellButton.h \ + WizTitleBar.h \ + WizInfoBar.h \ + WizNotifyBar.h \ + WizTitleEdit.h \ + sync/WizSync.h \ + sync/WizKMSync_p.h \ + WizStatusBar.h \ + WizUpgradeNotifyDialog.h \ + WizUserCipherForm.h \ + WizNoteInfoForm.h \ + WizLineInputDialog.h \ + WizSearchWidget.h \ + WizEditorInsertLinkForm.h \ + WizUpgrade.h \ + WizEditorToolBar.h \ + WizWebSettingsDialog.h \ + WizPopupButton.h \ + WizDocumentTransitionView.h \ + WizButton.h \ + WizEditorInsertTableForm.h \ + WizFileImporter.h \ + WizFolderSelector.h \ + WizProgressDialog.h \ + WizFolderView.h \ + WizDocumentSelectionView.h \ + WizUserVerifyDialog.h \ + utils/WizLogger.h \ + utils/WizPinyin.h \ + WizMessageListView.h \ + WizThumbCache.h \ + WizThumbCache_p.h \ + WizMessageCompleter.h \ + widgets/WizImageButton.h \ + WizDocumentEditStatus.h \ + WizLoginDialog.h \ + share/WizFileMonitor.h \ + WizSearchReplaceWidget.h \ + widgets/WizCodeEditorDialog.h \ + WizDocTemplateDialog.h \ + WizMobileFileReceiver.h \ + widgets/WizFramelessWebDialog.h \ + share/WizLockedFile.h \ + share/WizLocalPeer.h \ + share/WizSingleApplication.h \ + widgets/WizScreenShotWidget.h \ + widgets/WizVerificationCodeDialog.h \ + widgets/WizEmailShareDialog.h \ + share/WebSocketClientWrapper.h \ + share/WebSocketTransport.h \ + share/WizWebEngineView.h \ + WizWebEngineInjectObject.h \ + widgets/WizShareLinkDialog.h \ + share/WizAnalyzer.h \ + share/WizTranslater.h \ + widgets/WizAdvancedSearchDialog.h \ + share/WizUdpClient.h \ + share/WizMessageBox.h \ + WizOEMSettings.h \ + widgets/WizTagBar.h \ + widgets/WizTrayIcon.h \ + share/WizEventLoop.h \ + sync/WizJSONServerBase.h \ + share/WizObjectOperator_p.h \ + share/WizObjectOperator.h \ + widgets/WizLocalProgressWebView.h \ + widgets/WizCrashReportDialog.h \ + widgets/WizCustomToolBar.h \ + widgets/WizSingleDocumentView.h \ + widgets/WizTemplatePurchaseDialog.h \ + widgets/WizExecutingActionDialog.h \ + widgets/WizUserServiceExprDialog.h \ + WizPositionDelegate.h \ + core/WizAccountManager.h \ + core/WizCommentManager.h \ + core/WizNoteManager.h \ + share/WizThreads.h \ + share/WizThreads_p.h \ + WizInitBizCertDialog.h \ + share/WizDocumentStyle.h \ + WizCombineNotesDialog.h \ + WizSvgEditorDialog.h \ + widgets/WizTipsWidget.h\ + WizPlugins.h + +FORMS += \ + ui/WizLineInputDialog.ui \ + ui/WizConsoleDialog.ui \ + ui/WizPreferenceDialog.ui \ + ui/WizProxyDialog.ui \ + ui/WizCreateAccountDialog.ui \ + ui/WizUpgradeNotifyDialog.ui \ + ui/WizUserCipherForm.ui \ + ui/WizNoteInfoForm.ui \ + ui/WizEditorInsertLinkForm.ui \ + ui/WizEditorInsertTableForm.ui \ + ui/WizProgressDialog.ui \ + ui/WizLoginDialog.ui \ + ui/WizSearchReplaceWidget.ui \ + ui/WizDocTemplateDialog.ui \ + ui/WizVerificationCodeDialog.ui \ + ui/WizEmailShareDialog.ui \ + ui/WizAdvancedSearchDialog.ui \ + ui/WizCrashReportDialog.ui \ + ui/WizTemplatePurchaseDialog.ui \ + ui/WizExecutingActionDialog.ui \ + ui/WizInitBizCertDialog.ui \ + ui/WizUserServiceExprDialog.ui \ + ui/WizCombineNotesDialog.ui + + +macx { + +SOURCES += \ + mac/WizMacHelper.mm \ + mac/WizMacToolBar.mm \ + mac/WizMacToolBarDelegate.mm \ + mac/WizMacActionHelper.cpp \ + mac/WizUserInfoWidgetBaseMac.mm \ + mac/WizUserInfoWidgetBaseMac_mm.cpp \ + mac/WizIAPHelper.mm \ + mac/rmstore/RMAppReceipt.mm \ + mac/rmstore/RMStoreAppReceiptVerificator.mm \ + mac/WizNotificationCenter.mm \ + widgets/WizIAPDialog.cpp \ + mac/DTWebArchive.m + +HEADERS += \ + mac/WizMacHelper.h \ + mac/WizMacHelper_mm.h \ + mac/WizSearchWidget_mm.h \ + mac/WizMacToolBar.h \ + mac/WizMacToolBarDelegate.h \ + mac/WizMacActionHelper.h \ + mac/WizUserInfoWidgetBaseMac_mm.h \ + mac/WizIAPHelper.h \ + mac/rmstore/RMAppReceipt.h \ + mac/rmstore/RMStoreAppReceiptVerificator.h \ + mac/WizNotificationCenter.h \ + widgets/WizIAPDialog.h \ + mac/DTWebArchive.h + +FORMS += \ + ui/WizIAPDialog.ui +} + + +# Default rules for deployment. +qnx: target.path = /tmp/$${TARGET}/bin +else: unix:!android: target.path = /opt/$${TARGET}/bin +!isEmpty(target.path): INSTALLS += target + +win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../lib/quazip/release/ -lquazip +else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../lib/quazip/debug/ -lquazip +else:unix: LIBS += -L$$OUT_PWD/../lib/quazip/ -lquazip + +INCLUDEPATH += $$PWD/../lib +DEPENDPATH += $$PWD/../lib/quazip + +win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../lib/quazip/release/libquazip.a +else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../lib/quazip/debug/libquazip.a +else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../lib/quazip/release/quazip.lib +else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../lib/quazip/debug/quazip.lib +else:unix: PRE_TARGETDEPS += $$OUT_PWD/../lib/quazip/libquazip.a + +win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../lib/zlib/release/ -lzlib +else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../lib/zlib/debug/ -lzlib +else:unix: LIBS += -L$$OUT_PWD/../lib/zlib/ -lzlib + +INCLUDEPATH += $$PWD/../lib/zlib +DEPENDPATH += $$PWD/../lib/zlib + +win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../lib/zlib/release/libzlib.a +else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../lib/zlib/debug/libzlib.a +else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../lib/zlib/release/zlib.lib +else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../lib/zlib/debug/zlib.lib +else:unix: PRE_TARGETDEPS += $$OUT_PWD/../lib/zlib/libzlib.a + +win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../lib/cryptopp/release/ -lcryptopp +else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../lib/cryptopp/debug/ -lcryptopp +else:unix: LIBS += -L$$OUT_PWD/../lib/cryptopp/ -lcryptopp + +INCLUDEPATH += $$PWD/../lib/cryptopp +DEPENDPATH += $$PWD/../lib/cryptopp + +win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../lib/cryptopp/release/libcryptopp.a +else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../lib/cryptopp/debug/libcryptopp.a +else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../lib/cryptopp/release/cryptopp.lib +else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../lib/cryptopp/debug/cryptopp.lib +else:unix: PRE_TARGETDEPS += $$OUT_PWD/../lib/cryptopp/libcryptopp.a diff --git a/src/sync/WizKMServer.cpp b/src/sync/WizKMServer.cpp index df3a50cdd..16afd28ae 100755 --- a/src/sync/WizKMServer.cpp +++ b/src/sync/WizKMServer.cpp @@ -11,7 +11,7 @@ #include "share/WizRequest.h" #include "share/WizThreads.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "utils/WizLogger.h" #include "share/WizDatabase.h" #include "share/WizDatabaseManager.h" diff --git a/src/sync/WizSync.cpp b/src/sync/WizSync.cpp index 3744b797b..9b73e4278 100755 --- a/src/sync/WizSync.cpp +++ b/src/sync/WizSync.cpp @@ -12,7 +12,7 @@ #include "share/WizAnalyzer.h" #include "share/WizEventLoop.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #define IDS_BIZ_SERVICE_EXPR "Your {p} business service has expired." #define IDS_BIZ_NOTE_COUNT_LIMIT QObject::tr("Group notes count limit exceeded!") diff --git a/src/utils/WizLogger.cpp b/src/utils/WizLogger.cpp index 1c6df35bb..ae7b8c4e5 100755 --- a/src/utils/WizLogger.cpp +++ b/src/utils/WizLogger.cpp @@ -10,7 +10,7 @@ #include #include #include -#include "WizMisc.h" +#include "WizMisc_utils.h" #include "WizPathResolve.h" #define LOG_LINES_MAX 30000 diff --git a/src/utils/WizMisc.cpp b/src/utils/WizMisc_utils.cpp similarity index 95% rename from src/utils/WizMisc.cpp rename to src/utils/WizMisc_utils.cpp index 1cd731100..6992ac286 100755 --- a/src/utils/WizMisc.cpp +++ b/src/utils/WizMisc_utils.cpp @@ -1,5 +1,4 @@ -#include "WizMisc.h" - +#include "WizMisc_utils.h" #include #include #include diff --git a/src/utils/WizMisc.h b/src/utils/WizMisc_utils.h similarity index 100% rename from src/utils/WizMisc.h rename to src/utils/WizMisc_utils.h diff --git a/src/utils/WizNotify.mm b/src/utils/WizNotify_mac.mm similarity index 100% rename from src/utils/WizNotify.mm rename to src/utils/WizNotify_mac.mm diff --git a/src/utils/WizPinyin.cpp b/src/utils/WizPinyin.cpp index 4adbf9a05..16bf6ddba 100755 --- a/src/utils/WizPinyin.cpp +++ b/src/utils/WizPinyin.cpp @@ -6,7 +6,7 @@ #include "../share/WizQtHelper.h" #include "../share/WizMisc.h" -#include "WizMisc.h" +#include "WizMisc_utils.h" struct WIZCHINESEWORDPINYINDATA diff --git a/src/utils/WizStyleHelper.cpp b/src/utils/WizStyleHelper.cpp index cb984fab2..3f3a1b3ce 100755 --- a/src/utils/WizStyleHelper.cpp +++ b/src/utils/WizStyleHelper.cpp @@ -13,7 +13,7 @@ #include "WizPathResolve.h" #include "../share/WizMisc.h" -#include "../utils/WizMisc.h" +#include "../utils/WizMisc_utils.h" #include "../share/WizSettings.h" #include "../share/WizGlobal.h" #include "../share/WizUIBase.h" diff --git a/src/widgets/WizShareLinkDialog.cpp b/src/widgets/WizShareLinkDialog.cpp index 06a6cbf10..e37d2a257 100755 --- a/src/widgets/WizShareLinkDialog.cpp +++ b/src/widgets/WizShareLinkDialog.cpp @@ -1,7 +1,7 @@ #include "WizShareLinkDialog.h" #include "sync/WizToken.h" #include "utils/WizPathResolve.h" -#include "utils/WizMisc.h" +#include "utils/WizMisc_utils.h" #include "share/WizSettings.h" #include #include From c681303be7bb06711bd29aa37ead388f6e858038 Mon Sep 17 00:00:00 2001 From: wizweishijun Date: Wed, 6 May 2020 12:42:06 +0800 Subject: [PATCH 03/31] package by make --- .gitignore | 4 + Makefile | 564 +++++++++++++++++++++++++++++++++++++++++++++++ WizNote.pro | 1 + WizNote.pro.user | 222 ------------------- mac-package.sh | 15 +- src/src.pro | 35 ++- 6 files changed, 613 insertions(+), 228 deletions(-) create mode 100644 Makefile delete mode 100644 WizNote.pro.user diff --git a/.gitignore b/.gitignore index fc5021636..3ae0d4cc8 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,7 @@ CMakeLists.txt.user* !macos-package/.DS_Store *.autosave .idea/* + +*.user + +*.stash diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..ca525528e --- /dev/null +++ b/Makefile @@ -0,0 +1,564 @@ +############################################################################# +# Makefile for building: WizNote +# Generated by qmake (3.1) (Qt 5.12.8) +# Project: WizNote.pro +# Template: subdirs +# Command: /Users/weishijun/Qt5.12.8/5.12.8/clang_64/bin/qmake -o Makefile WizNote.pro CONFIG+=release +############################################################################# + +MAKEFILE = Makefile + +EQ = = + +first: make_first +QMAKE = /Users/weishijun/Qt5.12.8/5.12.8/clang_64/bin/qmake +DEL_FILE = rm -f +CHK_DIR_EXISTS= test -d +MKDIR = mkdir -p +COPY = cp -f +COPY_FILE = cp -f +COPY_DIR = cp -f -R +INSTALL_FILE = install -m 644 -p +INSTALL_PROGRAM = install -m 755 -p +INSTALL_DIR = cp -f -R +QINSTALL = /Users/weishijun/Qt5.12.8/5.12.8/clang_64/bin/qmake -install qinstall +QINSTALL_PROGRAM = /Users/weishijun/Qt5.12.8/5.12.8/clang_64/bin/qmake -install qinstall -exe +DEL_FILE = rm -f +SYMLINK = ln -f -s +DEL_DIR = rmdir +MOVE = mv -f +TAR = tar -cf +COMPRESS = gzip -9f +DISTNAME = WizNote1.0.0 +DISTDIR = /Users/weishijun/WizTeam/WizQTClient/.tmp/WizNote1.0.0 +SUBTARGETS = \ + sub-src \ + sub-lib-quazip \ + sub-lib-zlib \ + sub-lib-cryptopp + + +####### Custom Variables +EXPORT_VALID_ARCHS = x86_64 +EXPORT_ACTIVE_ARCHS = $(filter $(EXPORT_VALID_ARCHS), $(ARCHS)) +EXPORT_ARCH_ARGS = $(foreach arch, $(if $(EXPORT_ACTIVE_ARCHS), $(EXPORT_ACTIVE_ARCHS), $(EXPORT_VALID_ARCHS)), -arch $(arch)) +EXPORT__PRO_FILE_ = /Users/weishijun/WizTeam/WizQTClient/WizNote.pro + +sub-src-qmake_all: FORCE + @test -d src/ || mkdir -p src/ + cd src/ && $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/src/src.pro CONFIG+=release + cd src/ && $(MAKE) -f Makefile qmake_all +sub-src: FORCE + @test -d src/ || mkdir -p src/ + cd src/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/src/src.pro CONFIG+=release ) && $(MAKE) -f Makefile +sub-src-make_first: FORCE + @test -d src/ || mkdir -p src/ + cd src/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/src/src.pro CONFIG+=release ) && $(MAKE) -f Makefile +sub-src-all: FORCE + @test -d src/ || mkdir -p src/ + cd src/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/src/src.pro CONFIG+=release ) && $(MAKE) -f Makefile all +sub-src-clean: FORCE + @test -d src/ || mkdir -p src/ + cd src/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/src/src.pro CONFIG+=release ) && $(MAKE) -f Makefile clean +sub-src-distclean: FORCE + @test -d src/ || mkdir -p src/ + cd src/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/src/src.pro CONFIG+=release ) && $(MAKE) -f Makefile distclean +sub-src-install_subtargets: FORCE + @test -d src/ || mkdir -p src/ + cd src/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/src/src.pro CONFIG+=release ) && $(MAKE) -f Makefile install +sub-src-uninstall_subtargets: FORCE + @test -d src/ || mkdir -p src/ + cd src/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/src/src.pro CONFIG+=release ) && $(MAKE) -f Makefile uninstall +sub-lib-quazip-qmake_all: FORCE + @test -d lib/quazip/ || mkdir -p lib/quazip/ + cd lib/quazip/ && $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/quazip/quazip.pro CONFIG+=release + cd lib/quazip/ && $(MAKE) -f Makefile qmake_all +sub-lib-quazip: FORCE + @test -d lib/quazip/ || mkdir -p lib/quazip/ + cd lib/quazip/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/quazip/quazip.pro CONFIG+=release ) && $(MAKE) -f Makefile +sub-lib-quazip-make_first: FORCE + @test -d lib/quazip/ || mkdir -p lib/quazip/ + cd lib/quazip/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/quazip/quazip.pro CONFIG+=release ) && $(MAKE) -f Makefile +sub-lib-quazip-all: FORCE + @test -d lib/quazip/ || mkdir -p lib/quazip/ + cd lib/quazip/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/quazip/quazip.pro CONFIG+=release ) && $(MAKE) -f Makefile all +sub-lib-quazip-clean: FORCE + @test -d lib/quazip/ || mkdir -p lib/quazip/ + cd lib/quazip/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/quazip/quazip.pro CONFIG+=release ) && $(MAKE) -f Makefile clean +sub-lib-quazip-distclean: FORCE + @test -d lib/quazip/ || mkdir -p lib/quazip/ + cd lib/quazip/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/quazip/quazip.pro CONFIG+=release ) && $(MAKE) -f Makefile distclean +sub-lib-quazip-install_subtargets: FORCE + @test -d lib/quazip/ || mkdir -p lib/quazip/ + cd lib/quazip/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/quazip/quazip.pro CONFIG+=release ) && $(MAKE) -f Makefile install +sub-lib-quazip-uninstall_subtargets: FORCE + @test -d lib/quazip/ || mkdir -p lib/quazip/ + cd lib/quazip/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/quazip/quazip.pro CONFIG+=release ) && $(MAKE) -f Makefile uninstall +sub-lib-zlib-qmake_all: FORCE + @test -d lib/zlib/ || mkdir -p lib/zlib/ + cd lib/zlib/ && $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/zlib/zlib.pro CONFIG+=release + cd lib/zlib/ && $(MAKE) -f Makefile qmake_all +sub-lib-zlib: FORCE + @test -d lib/zlib/ || mkdir -p lib/zlib/ + cd lib/zlib/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/zlib/zlib.pro CONFIG+=release ) && $(MAKE) -f Makefile +sub-lib-zlib-make_first: FORCE + @test -d lib/zlib/ || mkdir -p lib/zlib/ + cd lib/zlib/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/zlib/zlib.pro CONFIG+=release ) && $(MAKE) -f Makefile +sub-lib-zlib-all: FORCE + @test -d lib/zlib/ || mkdir -p lib/zlib/ + cd lib/zlib/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/zlib/zlib.pro CONFIG+=release ) && $(MAKE) -f Makefile all +sub-lib-zlib-clean: FORCE + @test -d lib/zlib/ || mkdir -p lib/zlib/ + cd lib/zlib/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/zlib/zlib.pro CONFIG+=release ) && $(MAKE) -f Makefile clean +sub-lib-zlib-distclean: FORCE + @test -d lib/zlib/ || mkdir -p lib/zlib/ + cd lib/zlib/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/zlib/zlib.pro CONFIG+=release ) && $(MAKE) -f Makefile distclean +sub-lib-zlib-install_subtargets: FORCE + @test -d lib/zlib/ || mkdir -p lib/zlib/ + cd lib/zlib/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/zlib/zlib.pro CONFIG+=release ) && $(MAKE) -f Makefile install +sub-lib-zlib-uninstall_subtargets: FORCE + @test -d lib/zlib/ || mkdir -p lib/zlib/ + cd lib/zlib/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/zlib/zlib.pro CONFIG+=release ) && $(MAKE) -f Makefile uninstall +sub-lib-cryptopp-qmake_all: FORCE + @test -d lib/cryptopp/ || mkdir -p lib/cryptopp/ + cd lib/cryptopp/ && $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/cryptopp/cryptopp.pro CONFIG+=release + cd lib/cryptopp/ && $(MAKE) -f Makefile qmake_all +sub-lib-cryptopp: FORCE + @test -d lib/cryptopp/ || mkdir -p lib/cryptopp/ + cd lib/cryptopp/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/cryptopp/cryptopp.pro CONFIG+=release ) && $(MAKE) -f Makefile +sub-lib-cryptopp-make_first: FORCE + @test -d lib/cryptopp/ || mkdir -p lib/cryptopp/ + cd lib/cryptopp/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/cryptopp/cryptopp.pro CONFIG+=release ) && $(MAKE) -f Makefile +sub-lib-cryptopp-all: FORCE + @test -d lib/cryptopp/ || mkdir -p lib/cryptopp/ + cd lib/cryptopp/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/cryptopp/cryptopp.pro CONFIG+=release ) && $(MAKE) -f Makefile all +sub-lib-cryptopp-clean: FORCE + @test -d lib/cryptopp/ || mkdir -p lib/cryptopp/ + cd lib/cryptopp/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/cryptopp/cryptopp.pro CONFIG+=release ) && $(MAKE) -f Makefile clean +sub-lib-cryptopp-distclean: FORCE + @test -d lib/cryptopp/ || mkdir -p lib/cryptopp/ + cd lib/cryptopp/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/cryptopp/cryptopp.pro CONFIG+=release ) && $(MAKE) -f Makefile distclean +sub-lib-cryptopp-install_subtargets: FORCE + @test -d lib/cryptopp/ || mkdir -p lib/cryptopp/ + cd lib/cryptopp/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/cryptopp/cryptopp.pro CONFIG+=release ) && $(MAKE) -f Makefile install +sub-lib-cryptopp-uninstall_subtargets: FORCE + @test -d lib/cryptopp/ || mkdir -p lib/cryptopp/ + cd lib/cryptopp/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/cryptopp/cryptopp.pro CONFIG+=release ) && $(MAKE) -f Makefile uninstall + +Makefile: WizNote.pro ../../Qt5.12.8/5.12.8/clang_64/mkspecs/macx-clang/qmake.conf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/spec_pre.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/qdevice.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/device_config.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/unix.conf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/mac.conf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/macx.conf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/sanitize.conf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/gcc-base.conf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/gcc-base-mac.conf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/clang.conf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/clang-mac.conf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/qconfig.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3danimation.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3danimation_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dcore.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dcore_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dextras.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dextras_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dinput.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dinput_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dlogic.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dlogic_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquick.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquick_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickanimation.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickanimation_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickextras.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickextras_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickinput.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickinput_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickrender.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickrender_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickscene2d.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickscene2d_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3drender.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3drender_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_accessibility_support_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_bluetooth.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_bluetooth_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_bootstrap_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_clipboard_support_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_concurrent.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_concurrent_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_core.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_core_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_dbus.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_dbus_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_designer.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_designer_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_designercomponents_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_devicediscovery_support_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_edid_support_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_fb_support_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_fontdatabase_support_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_gamepad.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_gamepad_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_graphics_support_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_gui.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_gui_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_help.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_help_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_location.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_location_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_macextras.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_macextras_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_multimedia.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_multimedia_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_multimediawidgets.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_multimediawidgets_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_network.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_network_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_nfc.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_nfc_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_opengl.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_opengl_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_openglextensions.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_openglextensions_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_packetprotocol_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_platformcompositor_support_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_positioning.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_positioning_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_positioningquick.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_positioningquick_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_printsupport.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_printsupport_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qml.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qml_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qmldebug_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qmldevtools_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qmltest.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qmltest_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quick.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quick_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quickcontrols2.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quickcontrols2_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quickparticles_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quickshapes_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quicktemplates2.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quicktemplates2_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quickwidgets.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quickwidgets_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_remoteobjects.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_remoteobjects_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_repparser.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_repparser_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_scxml.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_scxml_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_sensors.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_sensors_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_serialbus.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_serialbus_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_serialport.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_serialport_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_service_support_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_sql.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_sql_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_svg.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_svg_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_testlib.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_testlib_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_texttospeech.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_texttospeech_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_theme_support_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_uiplugin.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_uitools.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_uitools_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webchannel.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webchannel_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webengine.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webengine_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webenginecore.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webenginecore_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webenginecoreheaders_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webenginewidgets.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webenginewidgets_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_websockets.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_websockets_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webview.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webview_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_widgets.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_widgets_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_xml.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_xml_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_xmlpatterns.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_xmlpatterns_private.pri \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/qt_functions.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/qt_config.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/macx-clang/qmake.conf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/spec_post.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/exclusive_builds.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/sdk.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/toolchain.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/toolchain.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/default_pre.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/default_pre.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/resolve_config.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/default_post.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/default_post.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/objective_c.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/mac.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/warn_on.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/qmake_use.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/file_copies.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/rez.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/asset_catalogs.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/testcase_targets.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/exceptions.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/yacc.prf \ + ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/lex.prf \ + WizNote.pro + $(QMAKE) -o Makefile WizNote.pro CONFIG+=release +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/spec_pre.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/qdevice.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/device_config.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/unix.conf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/mac.conf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/macx.conf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/sanitize.conf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/gcc-base.conf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/gcc-base-mac.conf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/clang.conf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/clang-mac.conf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/qconfig.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3danimation.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3danimation_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dcore.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dcore_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dextras.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dextras_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dinput.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dinput_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dlogic.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dlogic_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquick.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquick_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickanimation.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickanimation_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickextras.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickextras_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickinput.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickinput_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickrender.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickrender_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickscene2d.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickscene2d_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3drender.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3drender_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_accessibility_support_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_bluetooth.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_bluetooth_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_bootstrap_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_clipboard_support_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_concurrent.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_concurrent_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_core.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_core_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_dbus.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_dbus_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_designer.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_designer_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_designercomponents_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_devicediscovery_support_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_edid_support_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_fb_support_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_fontdatabase_support_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_gamepad.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_gamepad_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_graphics_support_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_gui.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_gui_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_help.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_help_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_location.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_location_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_macextras.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_macextras_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_multimedia.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_multimedia_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_multimediawidgets.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_multimediawidgets_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_network.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_network_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_nfc.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_nfc_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_opengl.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_opengl_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_openglextensions.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_openglextensions_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_packetprotocol_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_platformcompositor_support_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_positioning.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_positioning_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_positioningquick.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_positioningquick_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_printsupport.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_printsupport_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qml.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qml_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qmldebug_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qmldevtools_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qmltest.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qmltest_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quick.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quick_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quickcontrols2.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quickcontrols2_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quickparticles_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quickshapes_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quicktemplates2.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quicktemplates2_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quickwidgets.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quickwidgets_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_remoteobjects.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_remoteobjects_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_repparser.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_repparser_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_scxml.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_scxml_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_sensors.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_sensors_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_serialbus.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_serialbus_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_serialport.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_serialport_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_service_support_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_sql.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_sql_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_svg.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_svg_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_testlib.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_testlib_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_texttospeech.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_texttospeech_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_theme_support_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_uiplugin.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_uitools.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_uitools_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webchannel.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webchannel_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webengine.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webengine_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webenginecore.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webenginecore_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webenginecoreheaders_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webenginewidgets.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webenginewidgets_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_websockets.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_websockets_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webview.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webview_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_widgets.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_widgets_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_xml.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_xml_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_xmlpatterns.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_xmlpatterns_private.pri: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/qt_functions.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/qt_config.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/macx-clang/qmake.conf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/spec_post.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/exclusive_builds.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/sdk.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/toolchain.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/toolchain.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/default_pre.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/default_pre.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/resolve_config.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/default_post.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/default_post.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/objective_c.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/mac.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/warn_on.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/qmake_use.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/file_copies.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/rez.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/asset_catalogs.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/testcase_targets.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/exceptions.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/yacc.prf: +../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/lex.prf: +WizNote.pro: +qmake: FORCE + @$(QMAKE) -o Makefile WizNote.pro CONFIG+=release + +qmake_all: sub-src-qmake_all sub-lib-quazip-qmake_all sub-lib-zlib-qmake_all sub-lib-cryptopp-qmake_all FORCE + +make_first: sub-src-make_first sub-lib-quazip-make_first sub-lib-zlib-make_first sub-lib-cryptopp-make_first FORCE +all: sub-src-all sub-lib-quazip-all sub-lib-zlib-all sub-lib-cryptopp-all FORCE +clean: sub-src-clean sub-lib-quazip-clean sub-lib-zlib-clean sub-lib-cryptopp-clean FORCE +distclean: sub-src-distclean sub-lib-quazip-distclean sub-lib-zlib-distclean sub-lib-cryptopp-distclean FORCE + -$(DEL_FILE) Makefile +install_subtargets: sub-src-install_subtargets sub-lib-quazip-install_subtargets sub-lib-zlib-install_subtargets sub-lib-cryptopp-install_subtargets FORCE +uninstall_subtargets: sub-src-uninstall_subtargets sub-lib-quazip-uninstall_subtargets sub-lib-zlib-uninstall_subtargets sub-lib-cryptopp-uninstall_subtargets FORCE + +xcodeproj: + @$(QMAKE) -spec macx-xcode "$(EXPORT__PRO_FILE_)" CONFIG+=release + +sub-src-check: + @test -d src/ || mkdir -p src/ + cd src/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/src/src.pro CONFIG+=release ) && $(MAKE) -f Makefile check +sub-lib-quazip-check: + @test -d lib/quazip/ || mkdir -p lib/quazip/ + cd lib/quazip/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/quazip/quazip.pro CONFIG+=release ) && $(MAKE) -f Makefile check +sub-lib-zlib-check: + @test -d lib/zlib/ || mkdir -p lib/zlib/ + cd lib/zlib/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/zlib/zlib.pro CONFIG+=release ) && $(MAKE) -f Makefile check +sub-lib-cryptopp-check: + @test -d lib/cryptopp/ || mkdir -p lib/cryptopp/ + cd lib/cryptopp/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/cryptopp/cryptopp.pro CONFIG+=release ) && $(MAKE) -f Makefile check +check: sub-src-check sub-lib-quazip-check sub-lib-zlib-check sub-lib-cryptopp-check + +sub-src-benchmark: + @test -d src/ || mkdir -p src/ + cd src/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/src/src.pro CONFIG+=release ) && $(MAKE) -f Makefile benchmark +sub-lib-quazip-benchmark: + @test -d lib/quazip/ || mkdir -p lib/quazip/ + cd lib/quazip/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/quazip/quazip.pro CONFIG+=release ) && $(MAKE) -f Makefile benchmark +sub-lib-zlib-benchmark: + @test -d lib/zlib/ || mkdir -p lib/zlib/ + cd lib/zlib/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/zlib/zlib.pro CONFIG+=release ) && $(MAKE) -f Makefile benchmark +sub-lib-cryptopp-benchmark: + @test -d lib/cryptopp/ || mkdir -p lib/cryptopp/ + cd lib/cryptopp/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/cryptopp/cryptopp.pro CONFIG+=release ) && $(MAKE) -f Makefile benchmark +benchmark: sub-src-benchmark sub-lib-quazip-benchmark sub-lib-zlib-benchmark sub-lib-cryptopp-benchmark +install:install_subtargets FORCE + +uninstall: uninstall_subtargets FORCE + +FORCE: + +dist: distdir FORCE + (cd `dirname $(DISTDIR)` && $(TAR) $(DISTNAME).tar $(DISTNAME) && $(COMPRESS) $(DISTNAME).tar) && $(MOVE) `dirname $(DISTDIR)`/$(DISTNAME).tar.gz . && $(DEL_FILE) -r $(DISTDIR) + +distdir: sub-src-distdir sub-lib-quazip-distdir sub-lib-zlib-distdir sub-lib-cryptopp-distdir FORCE + @test -d $(DISTDIR) || mkdir -p $(DISTDIR) + $(COPY_FILE) --parents ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/spec_pre.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/qdevice.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/device_config.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/unix.conf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/mac.conf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/macx.conf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/sanitize.conf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/gcc-base.conf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/gcc-base-mac.conf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/clang.conf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/common/clang-mac.conf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/qconfig.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3danimation.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3danimation_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dcore.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dcore_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dextras.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dextras_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dinput.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dinput_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dlogic.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dlogic_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquick.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquick_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickanimation.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickanimation_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickextras.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickextras_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickinput.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickinput_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickrender.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickrender_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickscene2d.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3dquickscene2d_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3drender.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_3drender_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_accessibility_support_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_bluetooth.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_bluetooth_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_bootstrap_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_clipboard_support_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_concurrent.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_concurrent_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_core.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_core_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_dbus.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_dbus_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_designer.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_designer_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_designercomponents_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_devicediscovery_support_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_edid_support_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_fb_support_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_fontdatabase_support_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_gamepad.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_gamepad_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_graphics_support_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_gui.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_gui_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_help.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_help_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_location.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_location_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_macextras.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_macextras_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_multimedia.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_multimedia_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_multimediawidgets.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_multimediawidgets_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_network.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_network_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_nfc.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_nfc_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_opengl.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_opengl_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_openglextensions.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_openglextensions_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_packetprotocol_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_platformcompositor_support_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_positioning.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_positioning_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_positioningquick.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_positioningquick_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_printsupport.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_printsupport_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qml.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qml_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qmldebug_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qmldevtools_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qmltest.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qmltest_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quick.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quick_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quickcontrols2.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quickcontrols2_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quickparticles_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quickshapes_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quicktemplates2.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quicktemplates2_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quickwidgets.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_quickwidgets_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_remoteobjects.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_remoteobjects_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_repparser.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_repparser_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_scxml.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_scxml_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_sensors.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_sensors_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_serialbus.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_serialbus_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_serialport.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_serialport_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_service_support_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_sql.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_sql_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_svg.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_svg_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_testlib.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_testlib_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_texttospeech.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_texttospeech_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_theme_support_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_uiplugin.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_uitools.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_uitools_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webchannel.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webchannel_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webengine.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webengine_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webenginecore.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webenginecore_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webenginecoreheaders_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webenginewidgets.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webenginewidgets_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_websockets.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_websockets_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webview.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_webview_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_widgets.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_widgets_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_xml.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_xml_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_xmlpatterns.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/modules/qt_lib_xmlpatterns_private.pri ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/qt_functions.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/qt_config.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/macx-clang/qmake.conf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/spec_post.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/exclusive_builds.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/sdk.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/toolchain.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/toolchain.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/default_pre.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/default_pre.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/resolve_config.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/default_post.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/default_post.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/objective_c.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/mac.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/warn_on.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/qmake_use.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/file_copies.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/rez.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/mac/asset_catalogs.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/testcase_targets.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/exceptions.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/yacc.prf ../../Qt5.12.8/5.12.8/clang_64/mkspecs/features/lex.prf WizNote.pro $(DISTDIR)/ + +sub-src-distdir: FORCE + @test -d src/ || mkdir -p src/ + cd src/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/src/src.pro CONFIG+=release ) && $(MAKE) -e -f Makefile distdir DISTDIR=$(DISTDIR)/src + +sub-lib-quazip-distdir: FORCE + @test -d lib/quazip/ || mkdir -p lib/quazip/ + cd lib/quazip/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/quazip/quazip.pro CONFIG+=release ) && $(MAKE) -e -f Makefile distdir DISTDIR=$(DISTDIR)/lib/quazip + +sub-lib-zlib-distdir: FORCE + @test -d lib/zlib/ || mkdir -p lib/zlib/ + cd lib/zlib/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/zlib/zlib.pro CONFIG+=release ) && $(MAKE) -e -f Makefile distdir DISTDIR=$(DISTDIR)/lib/zlib + +sub-lib-cryptopp-distdir: FORCE + @test -d lib/cryptopp/ || mkdir -p lib/cryptopp/ + cd lib/cryptopp/ && ( test -e Makefile || $(QMAKE) -o Makefile /Users/weishijun/WizTeam/WizQTClient/lib/cryptopp/cryptopp.pro CONFIG+=release ) && $(MAKE) -e -f Makefile distdir DISTDIR=$(DISTDIR)/lib/cryptopp + diff --git a/WizNote.pro b/WizNote.pro index c39305680..1a4da0e18 100644 --- a/WizNote.pro +++ b/WizNote.pro @@ -6,3 +6,4 @@ SUBDIRS += \ lib/zlib \ lib/cryptopp + diff --git a/WizNote.pro.user b/WizNote.pro.user deleted file mode 100644 index 809e44bf5..000000000 --- a/WizNote.pro.user +++ /dev/null @@ -1,222 +0,0 @@ - - - - - - EnvironmentId - {08ac04b0-605c-40b9-b125-0073f5bfaff8} - - - ProjectExplorer.Project.ActiveTarget - 0 - - - ProjectExplorer.Project.EditorSettings - - true - false - true - - Cpp - - CppGlobal - - - - QmlJS - - QmlJSGlobal - - - 2 - UTF-8 - false - 4 - false - 80 - true - true - 1 - true - false - 0 - true - true - 0 - 8 - true - 1 - true - true - true - false - - - - ProjectExplorer.Project.PluginSettings - - - true - - - - ProjectExplorer.Project.Target.0 - - Desktop Qt 5.12.8 clang 64bit - Desktop Qt 5.12.8 clang 64bit - qt.qt5.5128.clang_64_kit - 0 - 0 - 0 - - /Users/weishijun/WizTeam/build-WizNote-Desktop_Qt_5_12_8_clang_64bit-Debug - - - true - QtProjectManager.QMakeBuildStep - true - - false - false - false - - - true - Qt4ProjectManager.MakeStep - - false - - - false - - 2 - Build - Build - ProjectExplorer.BuildSteps.Build - - - - true - Qt4ProjectManager.MakeStep - - true - clean - - false - - 1 - Clean - Clean - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Debug - Qt4ProjectManager.Qt4BuildConfiguration - 2 - - 1 - - - 0 - Deploy - Deploy - ProjectExplorer.BuildSteps.Deploy - - 1 - ProjectExplorer.DefaultDeployConfiguration - - 1 - - - dwarf - - cpu-cycles - - - 250 - - -e - cpu-cycles - --call-graph - dwarf,4096 - -F - 250 - - -F - true - 4096 - false - false - 1000 - - true - - false - false - false - false - true - 0.01 - 10 - true - kcachegrind - 1 - 25 - - 1 - true - false - true - valgrind - - 0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - - 2 - - Qt4ProjectManager.Qt4RunConfiguration:/Users/weishijun/WizTeam/WizQTClient/WizNote.pro - /Users/weishijun/WizTeam/WizQTClient/WizNote.pro - - false - - false - true - false - true - false - false - true - - /Users/weishijun/WizTeam/build-WizNote-Desktop_Qt_5_12_8_clang_64bit-Debug/WizNote.app/Contents/MacOS - - 1 - - - - ProjectExplorer.Project.TargetCount - 1 - - - ProjectExplorer.Project.Updater.FileVersion - 22 - - - Version - 22 - - diff --git a/mac-package.sh b/mac-package.sh index 2a9788655..6bd3cc394 100755 --- a/mac-package.sh +++ b/mac-package.sh @@ -13,11 +13,16 @@ package_output_path="$HOME" QTDIR="/Users/weishijun/Qt5.12.8/5.12.8/clang_64" mkdir ../WizQTClient-Release-QT5 -rm -rf ../WizQTClient-Release-QT5/* && \ -cd ../WizQTClient-Release-QT5 && \ -cmake -DCMAKE_BUILD_TYPE=Release -UPDATE_TRANSLATIONS=YES -DCMAKE_PREFIX_PATH=$QTDIR/lib/cmake -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk ../WizQTClient && \ -make -j5 - +#rm -rf ../WizQTClient-Release-QT5/* && \ +cd ../WizQTClient-Release-QT5 +$QTDIR/bin/qmake ../WizQTClient/WizNote.pro -spec macx-clang CONFIG+=x86_64 CONFIG+=qtquickcompiler && make -f ./Makefile qmake_all +cd lib +cd zlib && make -f ./Makefile && cd .. +cd quazip && make -f ./Makefile && cd .. +cd cryptopp && make -f ./Makefile && cd .. +cd .. +echo $(pwd) +cd src && make -f ./Makefile && rm -r ../WizNote.app && mv ./WizNote.app ../ && cd .. MYAPP="WizNote" DEST="$MYAPP.app" # Our final App directory diff --git a/src/src.pro b/src/src.pro index f1f55225c..16760f865 100644 --- a/src/src.pro +++ b/src/src.pro @@ -1,6 +1,5 @@ QT += core gui - greaterThan(QT_MAJOR_VERSION, 4): QT += widgets webengine webenginewidgets svg xml websockets macx { @@ -12,6 +11,8 @@ macx { QMAKE_INFO_PLIST = ../build/osx/info.plist ICON = ../build/common/logo/wiznote.icns + + QMAKE_CXXFLAGS += -Wno-unused-value -Wno-unused-variable -Wno-unused-parameter -Wno-inconsistent-missing-overrid } TARGET = WizNote @@ -457,3 +458,35 @@ else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../lib/ else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../lib/cryptopp/release/cryptopp.lib else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../lib/cryptopp/debug/cryptopp.lib else:unix: PRE_TARGETDEPS += $$OUT_PWD/../lib/cryptopp/libcryptopp.a + + + +# copy resources +# https://dragly.org/2013/11/05/copying-data-files-to-the-build-directory-when-working-with-qmake/ +WIZNOTE_RESOURCESPATH = $$OUT_PWD/share +macx { + WIZNOTE_RESOURCESPATH = $$OUT_PWD/$${TARGET}.app/Contents/Resources +} + +message($$WIZNOTE_RESOURCESPATH) + +macx { + copyResource.commands = $(COPY_DIR) $$PWD/../share/ $$WIZNOTE_RESOURCESPATH +} +first.depends = $(first) copyResource +export(first.depends) +export(copyResource.commands) + +# copy mac translations +macx { + copyServiceMenu.commands = $(COPY_DIR) $$PWD/../build/osx/localize/ $$WIZNOTE_RESOURCESPATH + first.depends = $(first) copyResource copyServiceMenu + export(first.depends) + export(copyServiceMenu.commands) + + QMAKE_EXTRA_TARGETS += first copyServiceMenu copyResource +} else { + QMAKE_EXTRA_TARGETS += first copyResource +} + + From dd3005c8723305d0c56d6aa6d04e49b011d1c94a Mon Sep 17 00:00:00 2001 From: wizweishijun Date: Wed, 6 May 2020 17:00:06 +0800 Subject: [PATCH 04/31] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/cryptopp/cryptopp.pro | 17 ++------- lib/quazip/quazip.pro | 1 + lib/zlib/zlib.pro | 1 + mac-package.sh | 8 ++--- src/WizActions.cpp | 46 ++++++++++++------------- src/WizAttachmentListWidget.cpp | 5 +-- src/WizCategoryView.cpp | 18 +++++++--- src/WizCategoryViewItem.cpp | 22 ++++++++---- src/WizCategoryViewItem.h | 22 ++++++------ src/WizCombineNotesDialog.cpp | 3 +- src/WizDocTemplateDialog.cpp | 3 ++ src/WizDocumentEditStatus.cpp | 5 ++- src/WizDocumentListView.cpp | 15 +++++--- src/WizDocumentListViewItem.cpp | 4 ++- src/WizDocumentListViewItem.h | 6 +++- src/WizDocumentSelectionView.cpp | 6 ++-- src/WizDocumentView.cpp | 10 +++++- src/WizDocumentWebView.cpp | 4 ++- src/WizEditorToolBar.cpp | 10 ++++-- src/WizFolderSelector.cpp | 8 ++--- src/WizLoginDialog.cpp | 5 +++ src/WizMainWindow.cpp | 19 +++++++--- src/WizMessageCompleter.cpp | 2 +- src/WizMessageListView.cpp | 40 ++++++++++----------- src/WizMobileFileReceiver.cpp | 2 ++ src/WizNoteStyle.cpp | 7 ++-- src/WizNotifyBar.cpp | 2 +- src/WizPreferenceDialog.cpp | 1 + src/WizProgressDialog.cpp | 2 ++ src/WizTagListWidget.cpp | 4 +-- src/WizTitleBar.cpp | 2 ++ src/WizTitleEdit.cpp | 1 + src/WizUpgrade.cpp | 2 +- src/WizUserCipherForm.cpp | 2 +- src/WizUserCipherForm.h | 2 +- src/WizWebEngineInjectObject.cpp | 4 +-- src/WizWebSettingsDialog.h | 2 +- src/html/WizHtmlReader.cpp | 4 +-- src/html/WizHtmlReader.h | 4 +-- src/mac/DTWebArchive.m | 16 ++++----- src/mac/WizMacHelper.mm | 20 +++++++++-- src/mac/WizMacToolBar.mm | 3 ++ src/mac/WizMacToolBarDelegate.mm | 8 +++-- src/mac/WizSearchWidget_mac.mm | 4 ++- src/mac/WizSearchWidget_mm.cpp | 1 + src/mac/WizUserInfoWidgetBaseMac.mm | 7 +++- src/mac/WizUserInfoWidgetBaseMac_mm.h | 2 +- src/share/WizAnalyzer.cpp | 2 +- src/share/WizCommonUI.cpp | 2 +- src/share/WizDatabase.cpp | 21 ++++++----- src/share/WizDatabase.h | 2 +- src/share/WizDatabaseManager.cpp | 4 +-- src/share/WizEnc.h | 13 +++++++ src/share/WizEventLoop.cpp | 4 ++- src/share/WizIndex.cpp | 6 ++-- src/share/WizIndexBase.cpp | 2 +- src/share/WizIndexBase.h | 2 +- src/share/WizMisc.cpp | 2 ++ src/share/WizObject.cpp | 5 ++- src/share/WizObjectOperator.cpp | 1 + src/share/WizQtHelper.h | 4 +++ src/share/WizSearch.cpp | 2 +- src/share/WizSyncableDatabase.h | 26 +++++++------- src/share/WizUIBase.cpp | 36 ++++++++++--------- src/share/WizUdpClient.cpp | 2 +- src/share/WizWebEngineView.cpp | 7 ++++ src/share/cppsqlite3.cpp | 2 +- src/share/sqlite3.c | 3 ++ src/src.pro | 10 +++--- src/sync/WizApiEntry.cpp | 2 ++ src/sync/WizKMServer.cpp | 10 ++++-- src/sync/WizKMServer.h | 9 +++++ src/sync/WizKMSync_p.h | 1 + src/sync/WizSync.cpp | 34 ++++++++++++++++-- src/ui/WizPreferenceDialog.ui | 2 +- src/utils/WizLogger.cpp | 4 +-- src/utils/WizNotify_mac.mm | 2 ++ src/utils/WizStyleHelper.cpp | 15 ++++++-- src/widgets/WizAdvancedSearchDialog.cpp | 1 + src/widgets/WizCodeEditorDialog.cpp | 1 + src/widgets/WizFramelessWebDialog.cpp | 3 ++ src/widgets/WizScreenShotWidget.cpp | 1 + src/widgets/WizShareLinkDialog.cpp | 3 ++ src/widgets/WizShareLinkDialog.h | 2 +- src/widgets/WizTagBar.cpp | 3 +- src/widgets/WizTipsWidget.cpp | 10 +++--- src/widgets/WizUserInfoWidget.cpp | 1 + src/widgets/WizUserInfoWidgetBase.h | 2 +- 88 files changed, 430 insertions(+), 216 deletions(-) diff --git a/lib/cryptopp/cryptopp.pro b/lib/cryptopp/cryptopp.pro index a6d21453f..5b53ff7ba 100644 --- a/lib/cryptopp/cryptopp.pro +++ b/lib/cryptopp/cryptopp.pro @@ -2,23 +2,12 @@ QT -= gui TEMPLATE = lib CONFIG += staticlib - -CONFIG += c++11 - -# The following define makes your compiler emit warnings if you use -# any Qt feature that has been marked deprecated (the exact warnings -# depend on your compiler). Please consult the documentation of the -# deprecated API in order to know how to port your code away from it. -DEFINES += QT_DEPRECATED_WARNINGS - -# You can also make your code fail to compile if it uses deprecated APIs. -# In order to do so, uncomment the following line. -# You can also select to disable deprecated APIs only up to a certain version of Qt. -#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 +CONFIG += warn_off macx { DEFINES += CRYPTOPP_DISABLE_ASM - QMAKE_CXXFLAGS += -Wno-tautological-compare -Wno-unused-value -Wno-switch -Wno-string-plus-int -Wno-unused-variable -Wno-unused-parameter + QMAKE_CXXFLAGS += -Wno-tautological-compare -Wno-unused-value -Wno-switch -Wno-string-plus-int -Wno-unused-variable -Wno-unused-parameter -Wno-everything + QMAKE_CFLAGS += -Wno-unused-value -Wno-switch -Wno-string-plus-int -Wno-unused-variable -Wno-unused-parameter -Wno-everything } SOURCES += \ diff --git a/lib/quazip/quazip.pro b/lib/quazip/quazip.pro index 8fe3bb652..35b3c45d7 100644 --- a/lib/quazip/quazip.pro +++ b/lib/quazip/quazip.pro @@ -2,6 +2,7 @@ QT -= gui TEMPLATE = lib CONFIG += staticlib +CONFIG += warn_off CONFIG += c++11 diff --git a/lib/zlib/zlib.pro b/lib/zlib/zlib.pro index 4844073ce..13b047e30 100644 --- a/lib/zlib/zlib.pro +++ b/lib/zlib/zlib.pro @@ -2,6 +2,7 @@ QT -= gui TEMPLATE = lib CONFIG += staticlib +CONFIG += warn_off CONFIG += c++11 diff --git a/mac-package.sh b/mac-package.sh index 6bd3cc394..62d86d2ee 100755 --- a/mac-package.sh +++ b/mac-package.sh @@ -17,12 +17,12 @@ mkdir ../WizQTClient-Release-QT5 cd ../WizQTClient-Release-QT5 $QTDIR/bin/qmake ../WizQTClient/WizNote.pro -spec macx-clang CONFIG+=x86_64 CONFIG+=qtquickcompiler && make -f ./Makefile qmake_all cd lib -cd zlib && make -f ./Makefile && cd .. -cd quazip && make -f ./Makefile && cd .. -cd cryptopp && make -f ./Makefile && cd .. +cd zlib && make -j4 -f ./Makefile && cd .. +cd quazip && make -j4 -f ./Makefile && cd .. +cd cryptopp && make -j4 -f ./Makefile && cd .. cd .. echo $(pwd) -cd src && make -f ./Makefile && rm -r ../WizNote.app && mv ./WizNote.app ../ && cd .. +cd src && make -j4 -f ./Makefile && rm -r ../WizNote.app && mv ./WizNote.app ../ && cd .. MYAPP="WizNote" DEST="$MYAPP.app" # Our final App directory diff --git a/src/WizActions.cpp b/src/WizActions.cpp index 7f5fc8705..0cb463a4e 100755 --- a/src/WizActions.cpp +++ b/src/WizActions.cpp @@ -31,33 +31,33 @@ WIZACTION* WizActions::actionsData() static WIZACTION arrayRoot[] = { #ifdef Q_OS_LINUX - {"actionFile", QObject::tr("&File")}, - {"actionEdit", QObject::tr("&Edit")}, - {"actionView", QObject::tr("&View")}, - {"actionFormat", QObject::tr("For&mat")}, - {"actionTools", QObject::tr("&Tools")}, - {"actionWindow", QObject::tr("&Window")}, - {"actionHelp", QObject::tr("&Help")}, + {"actionFile", QObject::tr("&File"), "", QKeySequence()}, + {"actionEdit", QObject::tr("&Edit"), "", QKeySequence()}, + {"actionView", QObject::tr("&View"), "", QKeySequence()}, + {"actionFormat", QObject::tr("For&mat"), "", QKeySequence()}, + {"actionTools", QObject::tr("&Tools"), "", QKeySequence()}, + {"actionWindow", QObject::tr("&Window"), "", QKeySequence()}, + {"actionHelp", QObject::tr("&Help"), "", QKeySequence()}, #else // root - {"actionFile", QObject::tr("File")}, - {"actionEdit", QObject::tr("Edit")}, - {"actionView", QObject::tr("View")}, - {"actionFormat", QObject::tr("Format")}, - {"actionTools", QObject::tr("Tools")}, - {"actionWindow", QObject::tr("Window")}, - {"actionHelp", QObject::tr("Help")}, + {"actionFile", QObject::tr("File"), "", QKeySequence()}, + {"actionEdit", QObject::tr("Edit"), "", QKeySequence()}, + {"actionView", QObject::tr("View"), "", QKeySequence()}, + {"actionFormat", QObject::tr("Format"), "", QKeySequence()}, + {"actionTools", QObject::tr("Tools"), "", QKeySequence()}, + {"actionWindow", QObject::tr("Window"), "", QKeySequence()}, + {"actionHelp", QObject::tr("Help"), "", QKeySequence()}, #endif // sub - {"actionText", QObject::tr("Text")}, - {"actionList", QObject::tr("List")}, - {"actionTable", QObject::tr("Table")}, - {"actionLink", QObject::tr("Link")}, - {"actionStyle", QObject::tr("Style")}, - {"actionInsert", QObject::tr("Insert")}, - {"actionCategoryOption", QObject::tr("Category Option")}, - {"actionSortBy", QObject::tr("Sort By")} + {"actionText", QObject::tr("Text"), "", QKeySequence()}, + {"actionList", QObject::tr("List"), "", QKeySequence()}, + {"actionTable", QObject::tr("Table"), "", QKeySequence()}, + {"actionLink", QObject::tr("Link"), "", QKeySequence()}, + {"actionStyle", QObject::tr("Style"), "", QKeySequence()}, + {"actionInsert", QObject::tr("Insert"), "", QKeySequence()}, + {"actionCategoryOption", QObject::tr("Category Option"), "", QKeySequence()}, + {"actionSortBy", QObject::tr("Sort By"), "", QKeySequence()} }; Q_UNUSED(arrayRoot); @@ -219,7 +219,7 @@ WizShortcutAction *WizActions::actionFromName(const QString& strActionName) return pAction; } - WIZACTION data = {strActionName, strActionName}; + WIZACTION data = {strActionName, strActionName, "", QKeySequence()}; return addAction(data, false); } diff --git a/src/WizAttachmentListWidget.cpp b/src/WizAttachmentListWidget.cpp index 1e5f29cea..446a4c3fc 100755 --- a/src/WizAttachmentListWidget.cpp +++ b/src/WizAttachmentListWidget.cpp @@ -313,8 +313,8 @@ void WizAttachmentListView::resetPermission() nPerm = WIZ_USERGROUP_READER; } - if (nPerm <= WIZ_USERGROUP_EDITOR - || (nPerm == WIZ_USERGROUP_AUTHOR && m_document.strOwner == strUserId)) { + if (nPerm <= (int)WIZ_USERGROUP_EDITOR + || (nPerm == (int)WIZ_USERGROUP_AUTHOR && m_document.strOwner == strUserId)) { findAction(WIZACTION_ATTACHMENT_ADD)->setEnabled(true); findAction(WIZACTION_ATTACHMENT_DELETE)->setEnabled(true); } else { @@ -797,6 +797,7 @@ int WizAttachmentListViewItem::loadProgress() const void WizAttachmentListViewItem::on_downloadFinished(const WIZOBJECTDATA& data, bool bSucceed) { + Q_UNUSED(bSucceed); if (data.strObjectGUID == m_attachment.strGUID) { m_loadState = Downloaded; diff --git a/src/WizCategoryView.cpp b/src/WizCategoryView.cpp index 52ade9a32..5e42a2497 100755 --- a/src/WizCategoryView.cpp +++ b/src/WizCategoryView.cpp @@ -401,7 +401,7 @@ void WizCategoryBaseView::dragMoveEvent(QDragMoveEvent *event) } } - if (nAccept == m_dragDocArray.size()) { + if (nAccept == (int)m_dragDocArray.size()) { event->acceptProposedAction(); } else @@ -3027,6 +3027,7 @@ void WizCategoryView::on_itemSelectionChanged() void WizCategoryView::on_itemChanged(QTreeWidgetItem* item, int column) { + Q_UNUSED(column); //ignore item changed signal that caused by drag-drop if (m_dragItem) return; @@ -3066,6 +3067,7 @@ void WizCategoryView::on_itemChanged(QTreeWidgetItem* item, int column) void WizCategoryView::on_itemClicked(QTreeWidgetItem *item, int column) { + Q_UNUSED(column); if (WizCategoryViewLinkItem* pLink = dynamic_cast(item)) { if (LINK_COMMAND_ID_CREATE_GROUP == pLink->commandId()) @@ -4750,7 +4752,7 @@ void WizCategoryView::initGroup(WizDatabase& db, bool& itemCreeated) WizExecuteOnThread(WIZ_THREAD_MAIN, [=](){ // only show trash if permission is enough WizDatabase& newDb = m_dbMgr.db(strKbGUID); - if (newDb.permission() > WIZ_USERGROUP_SUPER) + if (newDb.permission() > (int)WIZ_USERGROUP_SUPER) { pTrashItem->setHidden(true); } @@ -5673,7 +5675,7 @@ void WizCategoryView::on_group_permissionChanged(const QString& strKbGUID) int nPerm = m_dbMgr.db(strKbGUID).permission(); // only Admin and Super user see trash folder and operate with tag (group folder) - if (nPerm > WIZ_USERGROUP_SUPER) { + if (nPerm > (int)WIZ_USERGROUP_SUPER) { WizCategoryViewTrashItem* pItem = findTrash(strKbGUID); if (pItem) pItem->setHidden(true); @@ -5696,13 +5698,13 @@ void WizCategoryView::on_group_permissionChanged(const QString& strKbGUID) } // permission greater than author can create new document - if (nPerm >= WIZ_USERGROUP_READER) { + if (nPerm >= (int)WIZ_USERGROUP_READER) { findAction(ActionNewDocument)->setEnabled(false); } else { findAction(ActionNewDocument)->setEnabled(true); } - if (nPerm >= WIZ_USERGROUP_READER) { + if (nPerm >= (int)WIZ_USERGROUP_READER) { findAction(ActionImportFile)->setEnabled(false); } else { findAction(ActionImportFile)->setEnabled(true); @@ -5711,6 +5713,7 @@ void WizCategoryView::on_group_permissionChanged(const QString& strKbGUID) void WizCategoryView::on_group_bizChanged(const QString& strKbGUID) { + Q_UNUSED(strKbGUID); //TODO: } @@ -6022,6 +6025,7 @@ bool WizCategoryView::movePersonalFolder(const QString& sourceFolder, WizFolderS void WizCategoryView::movePersonalFolderToPersonalFolder(const QString& sourceFolder, const QString& targetParentFolder, bool combineFolder) { + Q_UNUSED(combineFolder); QString name = WizDatabase::getLocationName(sourceFolder); QString newLocation = targetParentFolder + name + "/"; // @@ -6168,6 +6172,10 @@ void WizCategoryView::moveDocumentsToGroupFolder(const CWizDocumentDataArray& ar void WizCategoryView::dropItemAsBrother(WizCategoryViewItemBase* targetItem, WizCategoryViewItemBase* dragedItem, bool dropAtTop, bool deleteDragSource) { + Q_UNUSED(targetItem); + Q_UNUSED(dragedItem); + Q_UNUSED(dropAtTop); + Q_UNUSED(deleteDragSource); // if (targetItem->type() == Category_FolderItem) // { // CWizCategoryViewFolderItem* folderItem = dynamic_cast(targetItem); diff --git a/src/WizCategoryViewItem.cpp b/src/WizCategoryViewItem.cpp index ed7dd63ba..88e324105 100755 --- a/src/WizCategoryViewItem.cpp +++ b/src/WizCategoryViewItem.cpp @@ -594,6 +594,7 @@ void WizCategoryViewMessageItem::mousePressed(const QPoint& pos) void WizCategoryViewMessageItem::mouseReleased(const QPoint& pos) { + Q_UNUSED(pos); m_extraButtonIconPressed = false; } @@ -1350,6 +1351,7 @@ void WizCategoryViewBizGroupRootItem::mousePressed(const QPoint& pos) void WizCategoryViewBizGroupRootItem::mouseReleased(const QPoint& pos) { + Q_UNUSED(pos); m_extraButtonIconPressed = false; } @@ -1462,16 +1464,16 @@ bool WizCategoryViewBizGroupRootItem::hitTestUnread() bool WizCategoryViewBizGroupRootItem::isOwner() { - return m_biz.bizUserRole == WIZ_BIZROLE_OWNER; + return m_biz.bizUserRole == (int)WIZ_BIZROLE_OWNER; } bool WizCategoryViewBizGroupRootItem::isAdmin() { - return m_biz.bizUserRole == WIZ_BIZROLE_ADMIN; + return m_biz.bizUserRole == (int)WIZ_BIZROLE_ADMIN; } bool WizCategoryViewBizGroupRootItem::isHr() { - return m_biz.bizUserRole <= WIZ_BIZROLE_HR; + return m_biz.bizUserRole <= (int)WIZ_BIZROLE_HR; } WizCategoryViewOwnGroupRootItem::WizCategoryViewOwnGroupRootItem(WizExplorerApp& app) @@ -1571,7 +1573,7 @@ bool WizCategoryViewGroupRootItem::acceptDrop(const WIZDOCUMENTDATA &data) const Q_UNUSED(data); WizDatabase& db = WizDatabaseManager::instance()->db(kbGUID()); - if (WIZ_USERGROUP_AUTHOR >= db.permission()) + if ((int)WIZ_USERGROUP_AUTHOR >= db.permission()) return true; return false; @@ -1610,7 +1612,7 @@ bool WizCategoryViewGroupRootItem::acceptDrop(const QString& urls) const Q_UNUSED(urls); WizDatabase& db = m_app.databaseManager().db(kbGUID()); - return WIZ_USERGROUP_AUTHOR >= db.permission(); + return (int)WIZ_USERGROUP_AUTHOR >= db.permission(); } void WizCategoryViewGroupRootItem::drop(const CWizDocumentDataArray& arrayDocument, bool forceCopy) @@ -1675,6 +1677,7 @@ void WizCategoryViewGroupRootItem::reload(WizDatabase& db) void WizCategoryViewGroupRootItem::mousePressed(const QPoint& pos) { + Q_UNUSED(pos); QRect rcBorder = treeWidget()->visualItemRect(this); QRect rcIcon = getExtraButtonRect(rcBorder, true); if (rcIcon.contains(pos)) @@ -1685,6 +1688,7 @@ void WizCategoryViewGroupRootItem::mousePressed(const QPoint& pos) void WizCategoryViewGroupRootItem::mouseReleased(const QPoint& pos) { + Q_UNUSED(pos); m_extraButtonIconPressed = false; } @@ -1904,7 +1908,7 @@ bool WizCategoryViewGroupItem::acceptDrop(const WIZDOCUMENTDATA& data) const Q_UNUSED(data); WizDatabase& db = WizDatabaseManager::instance()->db(kbGUID()); - if (WIZ_USERGROUP_AUTHOR >= db.permission()) { + if ((int)WIZ_USERGROUP_AUTHOR >= db.permission()) { return true; } // @@ -1917,7 +1921,7 @@ bool WizCategoryViewGroupItem::acceptDrop(const QString& urls) const Q_UNUSED(urls); WizDatabase& db = m_app.databaseManager().db(kbGUID()); - return WIZ_USERGROUP_AUTHOR >= db.permission(); + return (int)WIZ_USERGROUP_AUTHOR >= db.permission(); } void WizCategoryViewGroupItem::drop(const CWizDocumentDataArray& arrayDocument, bool forceCopy) @@ -1998,6 +2002,7 @@ WizCategoryViewTrashItem::WizCategoryViewTrashItem(WizExplorerApp& app, void WizCategoryViewTrashItem::showContextMenu(WizCategoryBaseView* pCtrl, QPoint pos) { + Q_UNUSED(pos); if (WizCategoryView* view = dynamic_cast(pCtrl)) { //no menu //view->showTrashContextMenu(pos); @@ -2030,11 +2035,14 @@ bool WizCategoryViewTrashItem::acceptDrop(const WIZDOCUMENTDATA &data) const bool WizCategoryViewTrashItem::acceptDrop(const WizCategoryViewItemBase* pItem) const { + Q_UNUSED(pItem); return false; } void WizCategoryViewTrashItem::drop(const CWizDocumentDataArray& arrayDocument, bool forceCopy) { + Q_UNUSED(forceCopy); + // CWizDocumentDataArray arrayOp; for (WIZDOCUMENTDATA doc : arrayDocument) { diff --git a/src/WizCategoryViewItem.h b/src/WizCategoryViewItem.h index 33a03b37f..9a829d89f 100755 --- a/src/WizCategoryViewItem.h +++ b/src/WizCategoryViewItem.h @@ -50,7 +50,7 @@ class WizCategoryViewItemBase : public QTreeWidgetItem WizCategoryViewItemBase(WizExplorerApp& app, const QString& strName = "", const QString& strKbGUID = "", int type = Type); virtual void showContextMenu(WizCategoryBaseView* pCtrl, QPoint pos) = 0; virtual void getDocuments(WizDatabase& db, CWizDocumentDataArray& arrayDocument) = 0; - virtual bool accept(WizDatabase& db, const WIZDOCUMENTDATA& data) { Q_UNUSED(data); return false; } + virtual bool accept(WizDatabase& db, const WIZDOCUMENTDATA& data) { Q_UNUSED(db); Q_UNUSED(data); return false; } virtual bool acceptDrop(const WizCategoryViewItemBase* pItem) const { Q_UNUSED(pItem); return false;} virtual bool acceptDrop(const WIZDOCUMENTDATA& data) const { Q_UNUSED(data); return false; } virtual bool acceptDrop(const QString& urls) const { Q_UNUSED(urls); return false; } @@ -114,7 +114,7 @@ class WizCategoryViewSectionItem : public WizCategoryViewItemBase public: WizCategoryViewSectionItem(WizExplorerApp& app, const QString& strName, int sortOrder); virtual void showContextMenu(WizCategoryBaseView* pCtrl, QPoint pos) { Q_UNUSED(pCtrl); Q_UNUSED(pos); } - virtual void getDocuments(WizDatabase& db, CWizDocumentDataArray& arrayDocument) { Q_UNUSED(arrayDocument); } + virtual void getDocuments(WizDatabase& db, CWizDocumentDataArray& arrayDocument) { Q_UNUSED(db); Q_UNUSED(arrayDocument); } virtual int getItemHeight(int nHeight) const; virtual int getSortOrder() const { return m_sortOrder; } void reset(const QString& sectionName, int sortOrder); @@ -144,7 +144,7 @@ class WizCategoryViewMessageItem : public WizCategoryViewItemBase { Q_UNUSED(pCtrl); Q_UNUSED(pos); } virtual void getDocuments(WizDatabase& db, CWizDocumentDataArray& arrayDocument) - { Q_UNUSED(arrayDocument); } + { Q_UNUSED(db); Q_UNUSED(arrayDocument); } virtual bool acceptMousePressedInfo() { return true; } @@ -204,10 +204,10 @@ class WizCategoryViewShortcutPlaceHoldItem : public WizCategoryViewItemBase public: WizCategoryViewShortcutPlaceHoldItem(WizExplorerApp& app, const QString& strName); - virtual void showContextMenu(WizCategoryBaseView* pCtrl, QPoint pos) {} + virtual void showContextMenu(WizCategoryBaseView* pCtrl, QPoint pos) { Q_UNUSED(pCtrl); Q_UNUSED(pos);} virtual void getDocuments(WizDatabase& db, CWizDocumentDataArray& arrayDocument) - { Q_UNUSED(arrayDocument); } + { Q_UNUSED(db); Q_UNUSED(arrayDocument); } virtual int getItemHeight(int hintHeight) const; virtual QTreeWidgetItem *clone() const {return new WizCategoryViewShortcutPlaceHoldItem(m_app,m_strName); } @@ -232,7 +232,7 @@ class WizCategoryViewShortcutItem : public WizCategoryViewItemBase virtual void showContextMenu(WizCategoryBaseView* pCtrl, QPoint pos); virtual void getDocuments(WizDatabase& db, CWizDocumentDataArray& arrayDocument) - { Q_UNUSED(arrayDocument); } + { Q_UNUSED(db); Q_UNUSED(arrayDocument); } virtual bool accept(WizDatabase& db, const WIZDOCUMENTDATA& data); virtual QTreeWidgetItem *clone() const {return new WizCategoryViewShortcutItem(m_app, m_strName, m_type, m_strKbGUID, m_strGuid, m_location, m_bEncrypted); } @@ -257,7 +257,7 @@ class WizCategoryViewSearchRootItem : public WizCategoryViewItemBase virtual void getDocuments(WizDatabase& db, CWizDocumentDataArray& arrayDocument) - { Q_UNUSED(arrayDocument); } + { Q_UNUSED(db); Q_UNUSED(arrayDocument); } virtual QString getSectionName(); virtual int getSortOrder() const { return 12; } @@ -274,7 +274,7 @@ class WizCategoryViewSearchItem : public WizCategoryViewItemBase virtual void getDocuments(WizDatabase& db, CWizDocumentDataArray& arrayDocument) - { Q_UNUSED(arrayDocument); } + { Q_UNUSED(db); Q_UNUSED(arrayDocument); } virtual QString getSQLWhere() { return ""; } virtual QString getSelectParam() { return ""; } @@ -411,7 +411,7 @@ class WizCategoryViewStyleRootItem : public WizCategoryViewItemBase virtual void getDocuments(WizDatabase& db, CWizDocumentDataArray& arrayDocument) - { Q_UNUSED(arrayDocument); } + { Q_UNUSED(db); Q_UNUSED(arrayDocument); } virtual QString getSectionName(); virtual int getSortOrder() const { return 22; } virtual QTreeWidgetItem *clone() const {return new WizCategoryViewStyleRootItem(m_app, m_strName); } @@ -503,7 +503,7 @@ class WizCategoryViewLinkItem : public WizCategoryViewItemBase { Q_UNUSED(pCtrl); Q_UNUSED(pos); } virtual void getDocuments(WizDatabase& db, CWizDocumentDataArray& arrayDocument) - { Q_UNUSED(arrayDocument); } + { Q_UNUSED(db); Q_UNUSED(arrayDocument); } int commandId() const { return m_commandId; } virtual void drawItemBody(QPainter* p, const QStyleOptionViewItem* vopt) const; @@ -633,7 +633,7 @@ class WizCategoryViewMySharesItem : public WizCategoryViewItemBase { Q_UNUSED(pCtrl); Q_UNUSED(pos); } virtual void getDocuments(WizDatabase& db, CWizDocumentDataArray& arrayDocument) - { Q_UNUSED(arrayDocument); } + { Q_UNUSED(db); Q_UNUSED(arrayDocument); } virtual QString getSectionName(); virtual int getSortOrder() const { return 13; } virtual bool isWebView() const { return true; } diff --git a/src/WizCombineNotesDialog.cpp b/src/WizCombineNotesDialog.cpp index fd7f5d48f..921073864 100755 --- a/src/WizCombineNotesDialog.cpp +++ b/src/WizCombineNotesDialog.cpp @@ -263,6 +263,7 @@ BOOL WizHtmlGetContentByHiddenTag(const CString& strHtmlText, CString& strConten static const QString lpszEnd = WizGetHtmlContentHiddenTagEnd(); static const int nBeginLen = (int)lpszBegin.length(); static const int nEndLen = (int)lpszEnd.length(); + Q_UNUSED(nEndLen); // int nBegin = strHtmlText.find(lpszBegin); if (-1 == nBegin) @@ -372,7 +373,7 @@ BOOL WizCombineHtmlText(CString& strTextTo, QString lpszTextFrom) BOOL WizHTMLIsCommentedOutCode(UINT nPos, CString strHTML) { - if (-1 == nPos) + if (-1 == (int)nPos) return FALSE; // CString strSubText = strHTML.right(strHTML.length() - nPos); diff --git a/src/WizDocTemplateDialog.cpp b/src/WizDocTemplateDialog.cpp index ec5d4bfa1..6ed601773 100755 --- a/src/WizDocTemplateDialog.cpp +++ b/src/WizDocTemplateDialog.cpp @@ -206,6 +206,8 @@ void WizDocTemplateDialog::getPurchasedTemplates() bool isTemplateUsable(const TemplateData& tmplData, WizDatabaseManager& dbMgr) { + Q_UNUSED(dbMgr); + // if (WizServerTemplate != tmplData.type || tmplData.isFree) return true; @@ -357,6 +359,7 @@ void WizDocTemplateDialog::on_btn_cancel_clicked() void WizDocTemplateDialog::download_templateFile_finished(QString fileName, bool ok) { + Q_UNUSED(ok); qDebug() << "template file downloaded ; " << fileName; for (int i = 0; i < ui->treeWidget->topLevelItemCount(); ++i) { diff --git a/src/WizDocumentEditStatus.cpp b/src/WizDocumentEditStatus.cpp index a4f11d2ee..76bb7ac7b 100755 --- a/src/WizDocumentEditStatus.cpp +++ b/src/WizDocumentEditStatus.cpp @@ -270,7 +270,7 @@ WizDocumentStatusChecker::WizDocumentStatusChecker(QObject* parent) //, m_loopCheckTimer(0) , m_stop(false) { - + Q_UNUSED(parent); } WizDocumentStatusChecker::~WizDocumentStatusChecker() @@ -292,6 +292,9 @@ void WizDocumentStatusChecker::checkEditStatus(const QString& strKbGUID, const Q void WizDocumentStatusChecker::stopCheckStatus(const QString& strKbGUID, const QString& strGUID) { + Q_UNUSED(strKbGUID); + Q_UNUSED(strGUID); + // m_timeOutTimer->stop(); // m_loopCheckTimer->stop(); m_stop = true; diff --git a/src/WizDocumentListView.cpp b/src/WizDocumentListView.cpp index 5fcd6fa83..2ffbc14b2 100755 --- a/src/WizDocumentListView.cpp +++ b/src/WizDocumentListView.cpp @@ -921,7 +921,7 @@ void WizDocumentListView::resetPermission() findAction(WIZACTION_LIST_DOCUMENT_HISTORY)->setEnabled(false); // int num = numOfEncryptedDocuments(arrayDocument); - if (num == arrayDocument.size()) + if (num == (int)arrayDocument.size()) { setEncryptDocumentActionEnable(false); } @@ -1106,7 +1106,7 @@ QString note2Mime(const CWizDocumentDataArray& arrayDocument) CString strMime; ::WizStringArrayToText(arrayGUID, strMime, ";"); - return strMime; + return QString(strMime); } bool mime2Notes(const QString& mime, WizDatabaseManager& dbMgr, CWizDocumentDataArray& arrayDocument) @@ -1193,7 +1193,7 @@ QPixmap CreateDocumentDragBadget(const CWizDocumentDataArray& arrayDocument) } //draw more - if (nItemCount < arrayDocument.size()) + if (nItemCount < (int)arrayDocument.size()) { rcItem.adjust(0, -nItemHeight / 2, 0, -nItemHeight / 2); QPen pen(QColor("#3177EE")); @@ -1209,6 +1209,7 @@ QPixmap CreateDocumentDragBadget(const CWizDocumentDataArray& arrayDocument) QPixmap createDragImage(const QString& strMime, WizDatabaseManager& dbMgr, Qt::DropActions supportedActions) { + Q_UNUSED(supportedActions); CWizDocumentDataArray arrayDocument; if (!mime2Notes(strMime, dbMgr, arrayDocument)) return QPixmap(); @@ -1954,6 +1955,8 @@ void WizDocumentListView::on_action_copyWebClientLink() void WizDocumentListView::on_action_showDocumentInFloatWindow() { WizMainWindow::instance()->trySaveCurrentNote([=](const QVariant& vRet) { + // + Q_UNUSED(vRet); // ::WizGetAnalyzer().logAction("documentListMenuOpenInFloatWindow"); WizMainWindow* mainWindow = qobject_cast(m_app.mainWindow()); @@ -1977,6 +1980,8 @@ void WizDocumentListView::on_menu_aboutToHide() void WizDocumentListView::on_action_encryptDocument() { WizMainWindow::instance()->trySaveCurrentNote([=](const QVariant& vRet) { + // + Q_UNUSED(vRet); // ::WizGetAnalyzer().logAction("documentListMenuEncryptDocument"); foreach (WizDocumentListViewDocumentItem* item, m_rightButtonFocusedItems) @@ -1991,6 +1996,8 @@ void WizDocumentListView::on_action_encryptDocument() void WizDocumentListView::on_action_cancelEncryption() { WizMainWindow::instance()->trySaveCurrentNote([=](const QVariant& vRet) { + // + Q_UNUSED(vRet); // ::WizGetAnalyzer().logAction("documentListMenuCancelEncryptionn"); // @@ -2271,7 +2278,7 @@ void WizDocumentListView::drawItem(QPainter* p, const QStyleOptionViewItem* vopt if (WizDocumentListViewBaseItem* pItem = itemFromIndex(vopt->index)) { p->save(); - int nRightMargin = WizSmartScaleUI(12); + //int nRightMargin = WizSmartScaleUI(12); QStyleOptionViewItem newVopt(*vopt); //newVopt.rect.setRight(newVopt.rect.right() - nRightMargin); pItem->draw(p, &newVopt, viewType()); diff --git a/src/WizDocumentListViewItem.cpp b/src/WizDocumentListViewItem.cpp index 2b7e5bd3d..242bfb2e3 100755 --- a/src/WizDocumentListViewItem.cpp +++ b/src/WizDocumentListViewItem.cpp @@ -47,6 +47,7 @@ WizDocumentListViewDocumentItem::WizDocumentListViewDocumentItem(WizExplorerApp& void WizDocumentListViewDocumentItem::resetAvatar(const QString& strFileName) { + Q_UNUSED(strFileName); Q_EMIT thumbnailReloaded(); } @@ -58,7 +59,7 @@ bool WizDocumentListViewDocumentItem::isAvatarNeedUpdate(const QString& strFileN QFileInfo info(strFileName); - QDateTime tCreated = info.created(); + QDateTime tCreated = info.birthTime(); QDateTime tNow = QDateTime::currentDateTime(); if (tCreated.daysTo(tNow) >= 1) { // download avatar before yesterday return true; @@ -853,6 +854,7 @@ bool WizDocumentListViewSectionItem::operator<(const QListWidgetItem& other) con void WizDocumentListViewSectionItem::draw(QPainter* p, const QStyleOptionViewItem* vopt, int nViewType) const { + Q_UNUSED(nViewType); p->save(); p->fillRect(vopt->rect, Utils::WizStyleHelper::listViewSectionItemBackground()); diff --git a/src/WizDocumentListViewItem.h b/src/WizDocumentListViewItem.h index 3c4a41623..430e656d9 100755 --- a/src/WizDocumentListViewItem.h +++ b/src/WizDocumentListViewItem.h @@ -51,7 +51,11 @@ class WizDocumentListViewBaseItem : public QObject, public QListWidgetItem virtual void setLeadInfoState(int state); // drawing - virtual void draw(QPainter* p, const QStyleOptionViewItem* vopt, int nViewType) const {} + virtual void draw(QPainter* p, const QStyleOptionViewItem* vopt, int nViewType) const { + Q_UNUSED(p); + Q_UNUSED(vopt); + Q_UNUSED(nViewType); + } protected: int m_nSortingType; // upercase : - decrease : + diff --git a/src/WizDocumentSelectionView.cpp b/src/WizDocumentSelectionView.cpp index ca2076417..8a84b56bc 100755 --- a/src/WizDocumentSelectionView.cpp +++ b/src/WizDocumentSelectionView.cpp @@ -40,6 +40,8 @@ class CWizDocumentGraphicsPixmapItem : public QGraphicsObject virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) { Q_UNUSED(widget); + Q_UNUSED(option); + // painter->setRenderHint(QPainter::SmoothPixmapTransform); painter->drawPixmap(pos(), m_pixmap); @@ -97,7 +99,7 @@ void WizDocumentSelectionView::requestDocuments(const CWizDocumentDataArray& arr CWizDocumentDataArray::iterator it; for(it = m_docs.begin(); it != m_docs.end(); it++) { - const WIZDOCUMENTDATAEX& doc = *it; + //const WIZDOCUMENTDATAEX& doc = *it; //m_thumbCache->load(doc.strKbGUID, doc.strGUID); } } @@ -151,7 +153,7 @@ bool WizDocumentSelectionView::isThumbNeedBuild(const WIZABSTRACT& abs) QPoint WizDocumentSelectionView::getThumbPosition(const WIZABSTRACT& abs) { - for (int i = 0; i < m_docs.size(); i++) { + for (int i = 0; i < (int)m_docs.size(); i++) { const WIZDOCUMENTDATAEX& doc = m_docs.at(i); if (abs.strKbGUID == doc.strKbGUID && abs.guid == doc.strKbGUID) { int x = (size().width() - (WIZ_SELECTION_ITEM_MAX - 1) * WIZ_SELECTION_ITEM_OFFSET_X) / 2 + WIZ_SELECTION_ITEM_OFFSET_X * i; diff --git a/src/WizDocumentView.cpp b/src/WizDocumentView.cpp index 6043a3bf9..7482bb89b 100755 --- a/src/WizDocumentView.cpp +++ b/src/WizDocumentView.cpp @@ -273,6 +273,8 @@ void WizDocumentView::waitForDone() // bool done = false; m_web->trySaveDocument(m_note, false, [=, &done](const QVariant& ret){ + // + Q_UNUSED(ret); m_web->waitForDone(); // @@ -339,6 +341,9 @@ void WizDocumentView::onViewNoteRequested(WizDocumentView* view, const WIZDOCUME void WizDocumentView::onViewNoteLoaded(WizDocumentView* view, const WIZDOCUMENTDATAEX& doc, bool bOk) { + Q_UNUSED(view); + Q_UNUSED(doc); + Q_UNUSED(bOk); } bool WizDocumentView::reload() @@ -408,6 +413,8 @@ void WizDocumentView::viewNote(const WIZDOCUMENTDATAEX& wizDoc, bool forceEdit) WIZDOCUMENTDATAEX dataTemp = wizDoc; // m_web->trySaveDocument(m_note, false, [=](const QVariant& ret){ + // + Q_UNUSED(ret); // WIZDOCUMENTDATAEX data = dataTemp; @@ -1021,7 +1028,8 @@ void WizDocumentView::on_commentWidget_statusChanged() int maxWidth = maximumWidth(); if (!WizIsHighPixel()) { - if (qApp->desktop()->availableGeometry().width() < 1440) + QScreen* screen = QGuiApplication::screenAt(QCursor::pos()); + if (screen && screen->size().width() < 1440) { maxWidth = 916; } diff --git a/src/WizDocumentWebView.cpp b/src/WizDocumentWebView.cpp index 4340c9aa8..96123cd05 100755 --- a/src/WizDocumentWebView.cpp +++ b/src/WizDocumentWebView.cpp @@ -116,6 +116,7 @@ void WizDocumentWebViewPage::triggerAction(QWebEnginePage::WebAction typeAction, void WizDocumentWebViewPage::javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMessageLevel level, const QString& message, int lineNumber, const QString& sourceID) { Q_UNUSED(sourceID); + Q_UNUSED(level); qDebug() << "[Console]line: " << lineNumber << ", " << message; } @@ -1023,7 +1024,7 @@ QString WizDocumentWebView::getHighlightKeywords() // CString ret; ::WizStringArrayToText(arr, ret, ","); - return ret; + return QString(ret); } @@ -1090,6 +1091,7 @@ bool WizDocumentWebView::isInternalUrl(const QUrl& url) void WizDocumentWebView::onEditorLinkClicked(QUrl url, QWebEnginePage::NavigationType navigationType, bool isMainFrame, WizWebEnginePage* page) { + Q_UNUSED(navigationType); if (!isMainFrame) return; // diff --git a/src/WizEditorToolBar.cpp b/src/WizEditorToolBar.cpp index 61601d1f8..86e691444 100755 --- a/src/WizEditorToolBar.cpp +++ b/src/WizEditorToolBar.cpp @@ -1049,6 +1049,8 @@ class WizToolLineWidthComboboxItemDelegate : public WizToolComboboxItemDelegate void drawTextItem(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index, bool useDefaultFont = false) const { + Q_UNUSED(useDefaultFont); + QStyleOptionViewItem opt = option; initStyleOption(&opt, index); // @@ -2000,6 +2002,9 @@ void WizEditorToolBar::resetToolbar(const QString& currentStyle) // bool subscript = QString::fromStdString(d["subscript"].asString()) == "1"; bool superscript = QString::fromStdString(d["superscript"].asString()) == "1"; + Q_UNUSED(subscript); + Q_UNUSED(superscript); + // // bool bold = QString::fromStdString(d["bold"].asString()) == "1"; bool italic = QString::fromStdString(d["italic"].asString()) == "1"; @@ -2010,6 +2015,7 @@ void WizEditorToolBar::resetToolbar(const QString& currentStyle) bool justifycenter = QString::fromStdString(d["justifycenter"].asString()) == "1"; bool justifyright = QString::fromStdString(d["justifyright"].asString()) == "1"; bool justifyfull = QString::fromStdString(d["justifyfull"].asString()) == "1"; + Q_UNUSED(justifyfull); // bool InsertOrderedList = QString::fromStdString(d["InsertOrderedList"].asString()) == "1"; bool InsertUnorderedList = QString::fromStdString(d["InsertUnorderedList"].asString()) == "1"; @@ -2300,7 +2306,7 @@ void WizEditorToolBar::on_delegate_markerInitiated(const QString& data) // QString type = QString::fromStdString(d["curType"].asString()); Json::Value tools = d["tools"]; - for (int i = 0; i < tools.size(); i++) { + for (int i = 0; i < (int)tools.size(); i++) { // Json::Value tool = tools[i]; QString toolType = QString::fromStdString(tool["type"].asString()); @@ -3076,7 +3082,7 @@ void WizEditorToolBar::savePixmap(QPixmap& pix, const QString& strType, bool bUs void WizEditorToolBar::saveGif(const QByteArray& ba) { - + Q_UNUSED(ba); } bool WizEditorToolBar::hasFocus() diff --git a/src/WizFolderSelector.cpp b/src/WizFolderSelector.cpp index 8d2f0258f..161e88282 100755 --- a/src/WizFolderSelector.cpp +++ b/src/WizFolderSelector.cpp @@ -15,10 +15,10 @@ WizFolderSelector::WizFolderSelector(const QString& strTitle, WizExplorerApp& ap unsigned int nPermission, QWidget *parent) : QDialog(parent) , m_app(app) - , m_nMinPermission(nPermission) , m_bAcceptRoot(true) , m_bKeepTime(true) , m_bKeepTags(true) + , m_nMinPermission(nPermission) { setWindowTitle(strTitle); setFixedSize(400, 420); @@ -78,13 +78,13 @@ bool WizFolderSelector::isSelectGroupFolder() return false; int nPermission = m_app.databaseManager().db(baseItem->kbGUID()).permission(); - if (nPermission > m_nMinPermission) + if (nPermission > (int)m_nMinPermission) { - if (nPermission >= WIZ_USERGROUP_READER) + if (nPermission >= (int)WIZ_USERGROUP_READER) { WizMessageBox::warning(this, tr("Info"), tr("You have no permission to create note in this group!")); } - else if (nPermission >= WIZ_USERGROUP_EDITOR) + else if (nPermission >= (int)WIZ_USERGROUP_EDITOR) { WizMessageBox::warning(this, tr("Info"), tr("You have no permission to create folder in this group!")); } diff --git a/src/WizLoginDialog.cpp b/src/WizLoginDialog.cpp index 0aad6c042..b16ea9b91 100755 --- a/src/WizLoginDialog.cpp +++ b/src/WizLoginDialog.cpp @@ -1494,6 +1494,9 @@ void WizLoginDialog::onSNSLoginSuccess(const QString& strUrl) void WizLoginDialog::onWizBoxResponse(const QString& boardAddress, const QString& serverAddress, const QString& responseMessage) { + Q_UNUSED(boardAddress); + Q_UNUSED(serverAddress); + // qDebug() << "response from wizbox : " << responseMessage; if (responseMessage.isEmpty()) @@ -2057,6 +2060,8 @@ void WizActionWidget::leaveEvent(QEvent* event) void WizActionWidget::paintEvent(QPaintEvent * event) { + Q_UNUSED(event); + // QStyleOption opt; opt.init(this); QPainter p(this); diff --git a/src/WizMainWindow.cpp b/src/WizMainWindow.cpp index 281f2f358..be9f80a2a 100755 --- a/src/WizMainWindow.cpp +++ b/src/WizMainWindow.cpp @@ -1119,7 +1119,7 @@ void WizMainWindow::initDockMenu() { #ifdef Q_OS_MAC m_dockMenu = new QMenu(this); - qt_mac_set_dock_menu(m_dockMenu); + m_dockMenu->setAsDockMenu(); connect(m_dockMenu, SIGNAL(aboutToShow()), SLOT(resetDockMenu())); @@ -1128,6 +1128,7 @@ void WizMainWindow::initDockMenu() void WizMainWindow::on_editor_statusChanged(const QString& currentStyle) { + Q_UNUSED(currentStyle); } void WizMainWindow::createNoteByTemplate(const TemplateData& tmplData) @@ -1442,7 +1443,7 @@ void WizMainWindow::resetWindowListMenu(QMenu* menu, bool removeExists) newActions.append(action); } - qSort(newActions.begin(), newActions.end(), caseInsensitiveLessThan); + std::sort(newActions.begin(), newActions.end(), caseInsensitiveLessThan); for (QAction* action : newActions) { connect(action, SIGNAL(triggered()), SLOT(on_dockMenuAction_triggered())); @@ -1537,6 +1538,8 @@ void WizMainWindow::showTemplateIAPDlg(const TemplateData& tmpl) } m_templateIAPDialog->showTemplateInfo(tmpl.id, tmpl.strName, tmpl.strThumbUrl); m_templateIAPDialog->open(); +#else + Q_UNUSED(tmpl); #endif } @@ -1703,7 +1706,7 @@ void WizMainWindow::onClickedImage(const QString& src, const QString& list) CWizStdStringArray files; if (d.isArray()) { - for (int i = 0; i < d.size(); i++) + for (int i = 0; i < (int)d.size(); i++) { QString file = QString::fromStdString(d[i].asString()); files.push_back(file); @@ -3346,6 +3349,9 @@ void WizMainWindow::on_search_doSearch(const QString& keywords) void WizMainWindow::on_searchProcess(const QString& strKeywords, const CWizDocumentDataArray& arrayDocument, bool bStart, bool bEnd) { + Q_UNUSED(strKeywords); + Q_UNUSED(bEnd); + // if (bStart) { m_documents->setLeadInfoState(DocumentLeadInfo_SearchResult); m_documents->setDocuments(arrayDocument); @@ -3386,6 +3392,8 @@ void WizMainWindow::on_menuButtonClicked() void WizMainWindow::on_client_splitterMoved(int pos, int index) { + Q_UNUSED(pos); + Q_UNUSED(index); #ifndef Q_OS_MAC adjustToolBarLayout(); #endif @@ -3652,8 +3660,10 @@ void WizMainWindow::on_options_restartForSettings() void WizMainWindow::resetPermission(const QString& strKbGUID, const QString& strOwner) { + Q_UNUSED(strOwner); + int nPerm = m_dbMgr.db(strKbGUID).permission(); - bool isGroup = m_dbMgr.db().kbGUID() != strKbGUID; + //bool isGroup = m_dbMgr.db().kbGUID() != strKbGUID; // Admin, Super, do anything if (nPerm == WIZ_USERGROUP_ADMIN || nPerm == WIZ_USERGROUP_SUPER) @@ -3901,6 +3911,7 @@ QObject* WizMainWindow::CreateWizObject(const QString& strObjectID) void WizMainWindow::SetSavingDocument(bool saving) { + Q_UNUSED(saving); } void WizMainWindow::ProcessClipboardBeforePaste(const QVariantMap& data) diff --git a/src/WizMessageCompleter.cpp b/src/WizMessageCompleter.cpp index 43218c7a3..9b8806122 100755 --- a/src/WizMessageCompleter.cpp +++ b/src/WizMessageCompleter.cpp @@ -126,7 +126,7 @@ MessageCompleterModel::MessageCompleterModel(const CWizBizUserDataArray& arrayUs } if (!m_users.isEmpty()) { - qSort(m_users.begin(), m_users.end(), caseInsensitiveLessThan); + std::sort(m_users.begin(), m_users.end(), caseInsensitiveLessThan); m_users.insert(0, UserItem()); m_users[0].strUserId = QString(); m_users[0].strAlias = tr("all"); diff --git a/src/WizMessageListView.cpp b/src/WizMessageListView.cpp index 3ab154fe6..06aeae8a2 100755 --- a/src/WizMessageListView.cpp +++ b/src/WizMessageListView.cpp @@ -130,8 +130,8 @@ class MessageListViewItem : public QListWidgetItem } - void setData(const WIZMESSAGEDATA& data) { m_data = data; } - const WIZMESSAGEDATA& data() const { return m_data; } + void setMessageData(const WIZMESSAGEDATA& data) { m_data = data; } + const WIZMESSAGEDATA& messageData() const { return m_data; } virtual bool operator <(const QListWidgetItem &other) const { @@ -448,7 +448,7 @@ void WizMessageListView::addMessages(const CWizMessageDataArray& arrayMessage) void WizMessageListView::addMessage(const WIZMESSAGEDATA& msg, bool sort) { - if (msg.nDeleteStatus == 1 || msg.nMessageType > WIZ_USERGROUP_MAX) + if (msg.nDeleteStatus == 1 || msg.nMessageType > (int)WIZ_USERGROUP_MAX) { return; } @@ -475,7 +475,7 @@ int WizMessageListView::rowFromId(qint64 nId) const { for (int i = 0; i < count(); i++) { if (MessageListViewItem* pItem = messageItem(i)) { - if (pItem->data().nId == nId) { + if (pItem->messageData().nId == nId) { return i; } } @@ -487,7 +487,7 @@ int WizMessageListView::rowFromId(qint64 nId) const void WizMessageListView::specialFocusedMessages(QList& arrayMsg) { foreach(MessageListViewItem* item, m_rightButtonFocusedItems) { - arrayMsg.push_back(item->data()); + arrayMsg.push_back(item->messageData()); } } @@ -495,7 +495,7 @@ void WizMessageListView::selectMessage(qint64 nId) { for (int i = 0; i < count(); i++) { if (MessageListViewItem* pItem = messageItem(i)) { - if (pItem->data().nId == nId) { + if (pItem->messageData().nId == nId) { setCurrentItem(pItem, QItemSelectionModel::ClearAndSelect); } } @@ -508,7 +508,7 @@ void WizMessageListView::selectedMessages(QList& arrayMsg) foreach(QListWidgetItem* item, items) { MessageListViewItem* pItem = dynamic_cast(item); - arrayMsg.push_back(pItem->data()); + arrayMsg.push_back(pItem->messageData()); } } @@ -530,7 +530,7 @@ const WIZMESSAGEDATA& WizMessageListView::messageFromIndex(const QModelIndex& in { MessageListViewItem* pItem = dynamic_cast(itemFromIndex(index)); Q_ASSERT(pItem); - return pItem->data(); + return pItem->messageData(); } void WizMessageListView::drawItem(QPainter* p, const QStyleOptionViewItem* vopt) const @@ -558,9 +558,9 @@ void WizMessageListView::markAllMessagesReaded(bool removeItems) { for (int i = 0; i < count(); i++) { MessageListViewItem* pItem = messageItem(i); - if (!pItem->data().nReadStatus) { - m_dbMgr.db().setMessageReadStatus(pItem->data()); - m_readList.push_back(pItem->data().nId); + if (!pItem->messageData().nReadStatus) { + m_dbMgr.db().setMessageReadStatus(pItem->messageData()); + m_readList.push_back(pItem->messageData().nId); } } m_timerTriggerSync.start(); @@ -619,7 +619,7 @@ void WizMessageListView::onAvatarLoaded(const QString& strUserId) { for (int i = 0; i < count(); i++) { MessageListViewItem* pItem = messageItem(i); - if (pItem->data().senderId == strUserId) { + if (pItem->messageData().senderId == strUserId) { update(indexFromItem(pItem)); } } @@ -631,7 +631,7 @@ void WizMessageListView::onCurrentItemChanged(QListWidgetItem* current,QListWidg if (current) { MessageListViewItem* pItem = dynamic_cast(current); - if (pItem && !pItem->data().nReadStatus) { + if (pItem && !pItem->messageData().nReadStatus) { m_pCurrentItem = pItem; m_timerRead.start(); } @@ -640,9 +640,9 @@ void WizMessageListView::onCurrentItemChanged(QListWidgetItem* current,QListWidg void WizMessageListView::onReadTimeout() { - if (m_pCurrentItem && !m_pCurrentItem->data().nReadStatus) { - m_dbMgr.db().setMessageReadStatus(m_pCurrentItem->data()); - m_readList.push_back(m_pCurrentItem->data().nId); + if (m_pCurrentItem && !m_pCurrentItem->messageData().nReadStatus) { + m_dbMgr.db().setMessageReadStatus(m_pCurrentItem->messageData()); + m_readList.push_back(m_pCurrentItem->messageData().nId); m_timerTriggerSync.start(); } } @@ -757,7 +757,7 @@ void WizMessageListView::on_action_message_locate() MessageListViewItem* pItem = m_rightButtonFocusedItems.first(); if (pItem) { - emit loacteDocumetRequest(pItem->data().kbGUID, pItem->data().documentGUID); + emit loacteDocumetRequest(pItem->messageData().kbGUID, pItem->messageData().documentGUID); } } @@ -769,7 +769,7 @@ void WizMessageListView::on_action_message_viewInSeparateWindow() MessageListViewItem* pItem = m_rightButtonFocusedItems.first(); if (pItem) { - WIZMESSAGEDATA message = pItem->data(); + WIZMESSAGEDATA message = pItem->messageData(); WIZDOCUMENTDATA doc; WizDatabase& db = m_dbMgr.db(message.kbGUID); if (!db.documentFromGuid(message.documentGUID, doc)) @@ -798,7 +798,7 @@ void WizMessageListView::on_message_modified(const WIZMESSAGEDATA& oldMsg, int i = rowFromId(newMsg.nId); if (i != -1) { if (MessageListViewItem* pItem = messageItem(i)) { - pItem->setData(newMsg); + pItem->setMessageData(newMsg); update(indexFromItem(pItem)); // if (newMsg.nDeleteStatus == 1) { @@ -899,7 +899,7 @@ void WizMessageListView::on_itemDoubleClicked(QListWidgetItem* item) MessageListViewItem* pItem = dynamic_cast(item); if (pItem) { - WIZMESSAGEDATA message = pItem->data(); + WIZMESSAGEDATA message = pItem->messageData(); WIZDOCUMENTDATA doc; WizDatabase& db = m_dbMgr.db(message.kbGUID); if (!db.documentFromGuid(message.documentGUID, doc)) diff --git a/src/WizMobileFileReceiver.cpp b/src/WizMobileFileReceiver.cpp index 1c3542f14..706e0efc8 100755 --- a/src/WizMobileFileReceiver.cpp +++ b/src/WizMobileFileReceiver.cpp @@ -391,6 +391,8 @@ QAbstractSocket::SocketState WizMobileTcpContainer::tcpState() void WizMobileTcpContainer::connectToHost(const QString& address, quint16 port) { + Q_UNUSED(port); + // m_strHost = address; if (!isRunning()) { diff --git a/src/WizNoteStyle.cpp b/src/WizNoteStyle.cpp index be5b84d4f..89db04d7f 100755 --- a/src/WizNoteStyle.cpp +++ b/src/WizNoteStyle.cpp @@ -74,7 +74,7 @@ class CWizNoteStyle : public CWizNoteBaseStyle }; -const int IMAGE_WIDTH = 80; +//const int IMAGE_WIDTH = 80; CWizNoteStyle::CWizNoteStyle(const QString& strSkinName) { @@ -314,8 +314,8 @@ void CWizNoteStyle::drawControl(ControlElement element, const QStyleOption *opti } else if (const WizDocumentListView *view = dynamic_cast(widget)) { - QSize sz = view->size(); - QRect rc = vopt->rect; + //QSize sz = view->size(); + //QRect rc = vopt->rect; // qDebug() << "view left top : " << view->mapToGlobal(view->rect().topLeft()); view->drawItem(painter, vopt); //drawDocumentListViewItem(vopt, painter, view); @@ -509,6 +509,7 @@ class CWizImageButtonStyle : public CWizNoteBaseStyle protected: virtual void drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const { + Q_UNUSED(widget); switch (element) { case CE_PushButton: diff --git a/src/WizNotifyBar.cpp b/src/WizNotifyBar.cpp index eebeff539..72fb0aca4 100755 --- a/src/WizNotifyBar.cpp +++ b/src/WizNotifyBar.cpp @@ -12,8 +12,8 @@ WizNotifyBar::WizNotifyBar(QWidget *parent) : QWidget(parent) - , m_type(NoNotify) , m_childWgt(new QWidget(this)) + , m_type(NoNotify) { QVBoxLayout* layout = new QVBoxLayout(); layout->setContentsMargins(0, 0, 0, 0); // On most platforms, the margin is 11 pixels in all directions. diff --git a/src/WizPreferenceDialog.cpp b/src/WizPreferenceDialog.cpp index e3e5b829d..bb01ee745 100755 --- a/src/WizPreferenceDialog.cpp +++ b/src/WizPreferenceDialog.cpp @@ -564,6 +564,7 @@ void WizPreferenceWindow::on_comboDownloadAttachments_activated(int index) void WizPreferenceWindow::on_tabWidget_currentChanged(int index) { + Q_UNUSED(index); // if (index == 1) // { // setFixedHeight(350); diff --git a/src/WizProgressDialog.cpp b/src/WizProgressDialog.cpp index 9d2cbb21d..0e8269cee 100755 --- a/src/WizProgressDialog.cpp +++ b/src/WizProgressDialog.cpp @@ -41,6 +41,8 @@ void WizProgressDialog::setProgress(int nMax, int nCurrent) void WizProgressDialog::setProgress(QString strObjGUID, int nMax, int nCurrent) { + Q_UNUSED(strObjGUID); + // ui->progressBar->setMaximum(nMax); ui->progressBar->setValue(nCurrent); update(); diff --git a/src/WizTagListWidget.cpp b/src/WizTagListWidget.cpp index 044ee20bb..c1987777a 100755 --- a/src/WizTagListWidget.cpp +++ b/src/WizTagListWidget.cpp @@ -157,11 +157,11 @@ void WizTagListWidget::setDocuments(const CWizDocumentDataArray& arrayDocument) CWizTagListWidgetItem* pItem = dynamic_cast(m_list->item(i)); int n = listGUIDs.count(pItem->tag().strGUID); - if (n && n < arrayDocument.size()) { + if (n && n < (int)arrayDocument.size()) { m_list->takeItem(i); m_list->insertItem(0, pItem); pItem->setCheckState(Qt::PartiallyChecked); - } else if (n == arrayDocument.size()) { + } else if (n == (int)arrayDocument.size()) { m_list->takeItem(i); m_list->insertItem(0, pItem); pItem->setCheckState(Qt::Checked); diff --git a/src/WizTitleBar.cpp b/src/WizTitleBar.cpp index 217c261b5..a2a0544dd 100755 --- a/src/WizTitleBar.cpp +++ b/src/WizTitleBar.cpp @@ -429,6 +429,7 @@ void WizTitleBar::onEditorChanged() void WizTitleBar::setNote(const WIZDOCUMENTDATA& data, WizEditorMode editorMode, bool locked) { + Q_UNUSED(locked); updateInfo(data); setEditorMode(editorMode); // @@ -737,6 +738,7 @@ bool isNetworkAccessible() void WizTitleBar::onCommentsButtonClicked() { QWebEngineView* comments = noteView()->commentView(); + Q_UNUSED(comments); WizDocumentView* view = noteView(); if (!view) diff --git a/src/WizTitleEdit.cpp b/src/WizTitleEdit.cpp index 7245ae668..047701201 100755 --- a/src/WizTitleEdit.cpp +++ b/src/WizTitleEdit.cpp @@ -282,4 +282,5 @@ void WizTitleEdit::onTextEdit(const QString& text) void WizTitleEdit::onTextChanged(const QString& text) { + Q_UNUSED(text); } diff --git a/src/WizUpgrade.cpp b/src/WizUpgrade.cpp index 763ad4c14..61697451c 100755 --- a/src/WizUpgrade.cpp +++ b/src/WizUpgrade.cpp @@ -85,7 +85,7 @@ void WizUpgradeChecker::_check(const QString& strUrl) QDate dateUpgrade(y, m, d); QFileInfo fi(::WizGetAppFileName()); - QDate dateLocal = fi.created().date(); + QDate dateLocal = fi.birthTime().date(); if (dateUpgrade > dateLocal) { TOLOG(QObject::tr("INFO: Upgrade is avaliable, version time: %1").arg(dateUpgrade.toString())); diff --git a/src/WizUserCipherForm.cpp b/src/WizUserCipherForm.cpp index 97222bfa3..ef4f09862 100755 --- a/src/WizUserCipherForm.cpp +++ b/src/WizUserCipherForm.cpp @@ -56,7 +56,7 @@ WizUserCipherForm::WizUserCipherForm(WizExplorerApp& app, QWidget *parent) } -QSize WizUserCipherForm::sizeHint() +QSize WizUserCipherForm::sizeHint() const { return QSize(WizSmartScaleUI(350), WizSmartScaleUI(120)); } diff --git a/src/WizUserCipherForm.h b/src/WizUserCipherForm.h index 4c4186510..a1b256fe3 100755 --- a/src/WizUserCipherForm.h +++ b/src/WizUserCipherForm.h @@ -29,7 +29,7 @@ class WizUserCipherForm : public QWidget void cipherCorrect(); protected: - virtual QSize sizeHint(); + virtual QSize sizeHint() const; virtual void showEvent(QShowEvent* event); private: diff --git a/src/WizWebEngineInjectObject.cpp b/src/WizWebEngineInjectObject.cpp index e534c46d1..d31001441 100755 --- a/src/WizWebEngineInjectObject.cpp +++ b/src/WizWebEngineInjectObject.cpp @@ -4,8 +4,8 @@ WizCodeExternal::WizCodeExternal(WizCodeEditorDialog* editor, QObject* parent) - : m_editor(editor) - , QObject(parent) + : QObject(parent) + , m_editor(editor) { } diff --git a/src/WizWebSettingsDialog.h b/src/WizWebSettingsDialog.h index 510352fef..b2567ad13 100755 --- a/src/WizWebSettingsDialog.h +++ b/src/WizWebSettingsDialog.h @@ -27,7 +27,7 @@ class WizWebSettingsDialog : public WizWebEngineViewContainerDialog void init(const WizWebEngineViewInjectObjects& objects, QSize sz, QWidget *parent); protected: virtual void load(); - virtual void onLoaded(bool ok) {} + virtual void onLoaded(bool) {} protected: QString m_url; WizLocalProgressWebView* m_progressWebView; diff --git a/src/html/WizHtmlReader.cpp b/src/html/WizHtmlReader.cpp index c59c10681..0044ea0c9 100755 --- a/src/html/WizHtmlReader.cpp +++ b/src/html/WizHtmlReader.cpp @@ -1545,7 +1545,7 @@ void WizHtmlReader::normalizeCharacters(CString &rCharacters) } -const unsigned short WizHtmlReader::readChar(void) +unsigned short WizHtmlReader::readChar(void) { ATLASSERT(m_lpszBuffer != NULL); if (m_dwBufPos >= m_dwBufLen) @@ -1553,7 +1553,7 @@ const unsigned short WizHtmlReader::readChar(void) return (m_lpszBuffer[m_dwBufPos++]); } -const unsigned short WizHtmlReader::ungetChar(void) +unsigned short WizHtmlReader::ungetChar(void) { ATLASSERT(m_lpszBuffer != NULL); ATLASSERT(m_dwBufPos); diff --git a/src/html/WizHtmlReader.h b/src/html/WizHtmlReader.h index e574b098a..cecb4fcf8 100755 --- a/src/html/WizHtmlReader.h +++ b/src/html/WizHtmlReader.h @@ -204,8 +204,8 @@ class WizHtmlReader virtual void normalizeCharacters(CString &rCharacters); void resetSeekPointer(void) { m_dwBufPos = 0L; } - const unsigned short readChar(void); - const unsigned short ungetChar(void); + unsigned short readChar(void); + unsigned short ungetChar(void); bool getEventNotify(DWORD dwEvent) const ; bool isWhiteSpace(int ch) const { return (::wiz_isspace(ch) ? true : false); } diff --git a/src/mac/DTWebArchive.m b/src/mac/DTWebArchive.m index f31599148..8fe84f6ca 100755 --- a/src/mac/DTWebArchive.m +++ b/src/mac/DTWebArchive.m @@ -218,7 +218,7 @@ - (id)initWithData:(NSData *)data URL:(NSURL *)URL MIMEType:(NSString *)MIMEType @implementation DTWebResource (Dictionary) -- (id)initWithDictionary:(NSDictionary *)dictionary; +- (id)initWithDictionary:(NSDictionary *)dictionary { NSData *data = nil; NSString *frameName = nil; @@ -295,13 +295,13 @@ - (NSDictionary *)dictionaryRepresentation static NSString * const LegacyWebArchiveMainResourceKey = @"WebMainResource"; static NSString * const LegacyWebArchiveSubresourcesKey = @"WebSubresources"; static NSString * const LegacyWebArchiveSubframeArchivesKey =@"WebSubframeArchives"; -static NSString * const LegacyWebArchiveResourceDataKey = @"WebResourceData"; -static NSString * const LegacyWebArchiveResourceFrameNameKey = @"WebResourceFrameName"; -static NSString * const LegacyWebArchiveResourceMIMETypeKey = @"WebResourceMIMEType"; -static NSString * const LegacyWebArchiveResourceURLKey = @"WebResourceURL"; -static NSString * const LegacyWebArchiveResourceTextEncodingNameKey = @"WebResourceTextEncodingName"; -static NSString * const LegacyWebArchiveResourceResponseKey = @"WebResourceResponse"; -static NSString * const LegacyWebArchiveResourceResponseVersionKey = @"WebResourceResponseVersion"; +//static NSString * const LegacyWebArchiveResourceDataKey = @"WebResourceData"; +//static NSString * const LegacyWebArchiveResourceFrameNameKey = @"WebResourceFrameName"; +//static NSString * const LegacyWebArchiveResourceMIMETypeKey = @"WebResourceMIMEType"; +//static NSString * const LegacyWebArchiveResourceURLKey = @"WebResourceURL"; +//static NSString * const LegacyWebArchiveResourceTextEncodingNameKey = @"WebResourceTextEncodingName"; +//static NSString * const LegacyWebArchiveResourceResponseKey = @"WebResourceResponse"; +//static NSString * const LegacyWebArchiveResourceResponseVersionKey = @"WebResourceResponseVersion"; NSString * WebArchivePboardType = @"Apple Web Archive pasteboard type"; diff --git a/src/mac/WizMacHelper.mm b/src/mac/WizMacHelper.mm index 304cf5394..75f21e001 100755 --- a/src/mac/WizMacHelper.mm +++ b/src/mac/WizMacHelper.mm @@ -33,6 +33,7 @@ #define WizShareSettingsName @"KCS8N3QJ92.cn.wiz.extension" +#pragma clang diagnostic ignored "-Wdeprecated-declarations" @interface DBSCustomView: NSView @@ -328,6 +329,9 @@ - (void)serviceCreateNote:(NSPasteboard *)pboard userData:(NSString *)userData error:(NSString **)error { + Q_UNUSED(userData); + Q_UNUSED(error); + // for (NSString *type in [pboard types]) { //NSLog(@"types %@", type); @@ -410,6 +414,8 @@ QString wizConvertYosemiteFilePathToNormalPath(const QString& strYosePath) void wizHIDictionaryWindowShow(const QString& strText, QRect rcText) { + Q_UNUSED(strText); + Q_UNUSED(rcText); // CFStringRef cfString = (CFStringRef)WizToNSString(strText); // [HIDictionaryWindowShow dictionary:NULL textString:cfString selectionRange:]; } @@ -509,6 +515,9 @@ bool processWebarchiveImageUrl(const QString& strFileName, QString& strHtml, con virtual void startTag(WizHtmlTag *pTag, DWORD dwAppData, bool &bAbort) { + Q_UNUSED(bAbort); + Q_UNUSED(dwAppData); + // QString tagName = pTag->getTagName(); tagName = tagName.toUpper(); // @@ -644,8 +653,11 @@ void wizMacSetClipboardText(const QString& strText) void wizMacGetClipboardHtml(const QString& html, QString& url) { + Q_UNUSED(html); + Q_UNUSED(url); + // NSArray* arr = [[NSPasteboard generalPasteboard] types]; - for (int i = 0; i < arr.count; i++) + for (int i = 0; i < (int)arr.count; i++) { NSString* type = arr[i]; NSLog(@"%@", type); @@ -664,8 +676,9 @@ void wizMacGetClipboardHtml(const QString& html, QString& url) NSArray *subItems = [NSArray arrayWithArray:[webArchive objectForKey:@"WebSubresources"]]; NSPredicate *iPredicate = [NSPredicate predicateWithFormat:@"WebResourceMIMEType like 'image*'"]; NSArray *imagesArray = [subItems filteredArrayUsingPredicate:iPredicate]; - for (int i=0; i<[imagesArray count]; i++) { + for (int i=0; i < (int)[imagesArray count]; i++) { NSDictionary *sItem = [NSDictionary dictionaryWithDictionary:[imagesArray objectAtIndex:i]]; + Q_UNUSED(sItem); //NSImage *sImage = [NSImage imageWithData:[sItem valueForKey:@"WebResourceData"]]; // handle images } @@ -1039,10 +1052,12 @@ @implementation WizThemeHelper - (id) init { [super init]; [NSDistributedNotificationCenter.defaultCenter addObserver:self selector:@selector(themeChanged:) name:@"AppleInterfaceThemeChangedNotification" object: nil]; + return self; } -(void)themeChanged:(NSNotification *) notification { + Q_UNUSED(notification); resetDarkMode(); // WizMainWindow *window = WizMainWindow::instance(); @@ -1056,5 +1071,6 @@ -(void)themeChanged:(NSNotification *) notification { void wizMacThemeInit() { static WizThemeHelper* helper = [WizThemeHelper new]; + Q_UNUSED(helper); } diff --git a/src/mac/WizMacToolBar.mm b/src/mac/WizMacToolBar.mm index 56488e419..c48d5b080 100755 --- a/src/mac/WizMacToolBar.mm +++ b/src/mac/WizMacToolBar.mm @@ -157,6 +157,7 @@ void WizMacToolBar::setSizeMode(SizeMode sizeMode) { + Q_UNUSED(sizeMode); // [d->toolbar setDisplayMode : NSToolbarSizeMode(sizeMode)]; } @@ -263,6 +264,7 @@ WizMacFixedSpacer::WizMacFixedSpacer(QSize sz, QWidget* parent) : m_sz(sz) { + Q_UNUSED(parent); } void WizMacFixedSpacer::adjustWidth(int width) @@ -326,6 +328,7 @@ - (void)buttonPressed WizMacToolBarButtonItem::WizMacToolBarButtonItem(const QString& title, const QPixmap& extraMenuIcon, int width, QWidget* parent) : m_width(width) { + Q_UNUSED(parent); // WizButtonItem *myButton = [[WizButtonItem alloc] initWithFrame:NSMakeRect(0, 0, sizeHint().width(), sizeHint().height())]; // [myButton setTitle: WizToNSString(title)]; // [myButton setImage: [NSImage imageNamed: NSImageNameAddTemplate]]; diff --git a/src/mac/WizMacToolBarDelegate.mm b/src/mac/WizMacToolBarDelegate.mm index eb570083b..0c96c8154 100755 --- a/src/mac/WizMacToolBarDelegate.mm +++ b/src/mac/WizMacToolBarDelegate.mm @@ -203,6 +203,7 @@ void on_action_changed() , m_strLabel(label) , m_strTooltip(tooltip) { + Q_UNUSED(m_delegate); } NSView* view() { return m_container->cocoaView(); } @@ -258,6 +259,7 @@ void on_action_changed() , m_strTooltip(tooltip) , m_width(width) { + Q_UNUSED(m_delegate); } private: CWizMacToolBarDelegate* m_delegate; @@ -385,9 +387,9 @@ - (BOOL) becomeFirstResponder - (void)controlTextDidEndEditing:(NSNotification *)aNotification { - NSWindow* window1 = [[NSApp windows] objectAtIndex:0]; - NSWindow* window2 = [[NSApp windows] objectAtIndex:1]; - NSWindow* window3 = [NSApp mainWindow]; +// NSWindow* window1 = [[NSApp windows] objectAtIndex:0]; +// NSWindow* window2 = [[NSApp windows] objectAtIndex:1]; +// NSWindow* window3 = [NSApp mainWindow]; //NSWindow* window4 = [self window]; // [[self window] makeFirstResponder:[self window]]; diff --git a/src/mac/WizSearchWidget_mac.mm b/src/mac/WizSearchWidget_mac.mm index 430062004..ea9bf24af 100755 --- a/src/mac/WizSearchWidget_mac.mm +++ b/src/mac/WizSearchWidget_mac.mm @@ -11,6 +11,8 @@ #include "WizMacHelper_mm.h" #include "WizMacToolBar.h" +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + // WizSearchField @interface WizSearchField: NSSearchField @@ -188,7 +190,7 @@ - (void)textDidBeginEditing:(NSNotification *)aNotification m_pSearchWidget->on_search_textChanging(); } -- (void) changePlaceHolderString:(NSString*)text; +- (void) changePlaceHolderString:(NSString*)text { [self setPlaceholderString:text]; NSString* currentSearchStringValue = self.stringValue; diff --git a/src/mac/WizSearchWidget_mm.cpp b/src/mac/WizSearchWidget_mm.cpp index 78319eec6..6fb4481e5 100755 --- a/src/mac/WizSearchWidget_mm.cpp +++ b/src/mac/WizSearchWidget_mm.cpp @@ -448,6 +448,7 @@ void WizSuggestCompletionon::on_advanced_buttonClicked() void WizSuggestCompletionon::resetContainerSize(int width, int height) { + Q_UNUSED(width); m_popupWgt->setFixedSize(m_editor->sizeHint().width(), height); QRect rect(0, 0, m_editor->sizeHint().width(), height); //= geometry(); QRegion region = Utils::WizStyleHelper::borderRadiusRegion(rect); diff --git a/src/mac/WizUserInfoWidgetBaseMac.mm b/src/mac/WizUserInfoWidgetBaseMac.mm index f9bd559a5..922f97894 100755 --- a/src/mac/WizUserInfoWidgetBaseMac.mm +++ b/src/mac/WizUserInfoWidgetBaseMac.mm @@ -12,6 +12,8 @@ #import #endif +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + bool isHighPixel() { return qApp->devicePixelRatio() >= 2; @@ -67,7 +69,7 @@ - (NSFont*) font; @end @implementation WizUserInfoView -- (id)initWithWidget:(WizUserInfoWidgetBaseMac*)object; +- (id)initWithWidget:(WizUserInfoWidgetBaseMac*)object { self = [super init]; m_widget = object; @@ -132,6 +134,8 @@ - (NSRect)drawImageAtPoint:(NSPoint)point image:(NSImage*)img - (void)drawRect:(NSRect)dirtyRect { + Q_UNUSED(dirtyRect); + // const int nAvatarWidth = 26; // CGRect rect = [self frame]; @@ -301,6 +305,7 @@ - (void)mouseExited:(NSEvent *)theEvent , m_textWidth(0) , m_textHeight(0) { + Q_UNUSED(parent); WizUserInfoView* view = [[WizUserInfoView alloc] initWithWidget:this]; [view setAutoresizesSubviews: YES]; diff --git a/src/mac/WizUserInfoWidgetBaseMac_mm.h b/src/mac/WizUserInfoWidgetBaseMac_mm.h index 2f209e49f..65900117a 100755 --- a/src/mac/WizUserInfoWidgetBaseMac_mm.h +++ b/src/mac/WizUserInfoWidgetBaseMac_mm.h @@ -44,7 +44,7 @@ class WizUserInfoWidgetBaseMac : public WizCocoaViewContainer #endif // virtual QString userId() { return QString(); } - virtual QPixmap getAvatar(int width, int height) { return QPixmap(); } + virtual QPixmap getAvatar(int width, int height) { Q_UNUSED(width); Q_UNUSED(height); return QPixmap(); } virtual QIcon getVipIcon() { return QIcon(); } virtual QIcon getArrow() { return QIcon(); } virtual int textWidth() const; diff --git a/src/share/WizAnalyzer.cpp b/src/share/WizAnalyzer.cpp index 0d0c84cf4..378c2c830 100755 --- a/src/share/WizAnalyzer.cpp +++ b/src/share/WizAnalyzer.cpp @@ -55,7 +55,7 @@ CString WizAnalyzer::getInstallDays() if (days == 0) { QFileInfo info(QApplication::applicationFilePath()); - days = info.created().daysTo(QDateTime::currentDateTime()); + days = info.birthTime().daysTo(QDateTime::currentDateTime()); ::WizIniWriteInt(m_strRecordFileNameNoDelete, "Common", "useDays", days); } // diff --git a/src/share/WizCommonUI.cpp b/src/share/WizCommonUI.cpp index cbedbdfac..bd3eb093d 100755 --- a/src/share/WizCommonUI.cpp +++ b/src/share/WizCommonUI.cpp @@ -47,5 +47,5 @@ QString WizCommonUI::clipboardToImage(int hwnd, const QString& strOptions) if (!image.save(strFileName)) return CString(); // - return strFileName; + return QString(strFileName); } diff --git a/src/share/WizDatabase.cpp b/src/share/WizDatabase.cpp index 8493bcb04..bc29fd620 100755 --- a/src/share/WizDatabase.cpp +++ b/src/share/WizDatabase.cpp @@ -647,7 +647,7 @@ QString WizDatabase::getPassword() strPassword = ::WizDecryptPassword(strPassword); } - return strPassword; + return QString(strPassword); } qint64 WizDatabase::getObjectVersion(const QString& strObjectName) @@ -1143,6 +1143,7 @@ IWizSyncableDatabase* WizDatabase::getGroupDatabase(const WIZGROUPDATA& group) void WizDatabase::closeGroupDatabase(IWizSyncableDatabase* pDatabase) { + Q_UNUSED(pDatabase); // CWizDatabase* db = dynamic_cast(pDatabase); // Q_ASSERT(db); @@ -1243,7 +1244,7 @@ bool WizDatabase::hasBiz() bool WizDatabase::isGroupAdmin() { - if (permission() <= WIZ_USERGROUP_ADMIN) + if (permission() <= (int)WIZ_USERGROUP_ADMIN) return true; return false; @@ -1256,7 +1257,7 @@ bool WizDatabase::isGroupOwner() bool WizDatabase::isGroupSuper() { - if (permission() <= WIZ_USERGROUP_SUPER) + if (permission() <= (int)WIZ_USERGROUP_SUPER) return true; return false; @@ -1264,7 +1265,7 @@ bool WizDatabase::isGroupSuper() bool WizDatabase::isGroupEditor() { - if (permission() <= WIZ_USERGROUP_EDITOR) + if (permission() <= (int)WIZ_USERGROUP_EDITOR) return true; return false; @@ -1272,7 +1273,7 @@ bool WizDatabase::isGroupEditor() bool WizDatabase::isGroupAuthor() { - if (permission() <= WIZ_USERGROUP_AUTHOR) + if (permission() <= (int)WIZ_USERGROUP_AUTHOR) return true; return false; @@ -1280,7 +1281,7 @@ bool WizDatabase::isGroupAuthor() bool WizDatabase::isGroupReader() { - if (permission() <= WIZ_USERGROUP_READER) + if (permission() <= (int)WIZ_USERGROUP_READER) return true; return false; @@ -1288,7 +1289,7 @@ bool WizDatabase::isGroupReader() bool WizDatabase::canEditDocument(const WIZDOCUMENTDATA& data) { - if (permission() < WIZ_USERGROUP_AUTHOR || + if (permission() < (int)WIZ_USERGROUP_AUTHOR || (permission() == WIZ_USERGROUP_AUTHOR && data.strOwner == getUserId())) { return true; } @@ -1367,6 +1368,7 @@ bool WizDatabase::setLocalFlags(const QString& strObjectGUID, void WizDatabase::getAccountKeys(CWizStdStringArray& arrayKey) { + Q_UNUSED(arrayKey); Q_ASSERT(!isGroup()); } @@ -1380,6 +1382,7 @@ void WizDatabase::setAccountLocalValue(const QString& strKey, qint64 nServerVersion, bool bSaveVersion) { + Q_UNUSED(strValue); Q_ASSERT(!isGroup()); if (bSaveVersion) { @@ -1725,7 +1728,7 @@ QString WizDatabase::getFolders() CString str; ::WizStringArrayToText(arrayFolder, str, "*"); - return str; + return QString(str); } QString WizDatabase::getFoldersPos() @@ -2055,7 +2058,7 @@ bool WizDatabase::setAllBizInfoCore(const CWizBizDataArray& arrayBiz) setMeta("Bizs", "Count", QString::number(arrayBiz.size())); // - for (int i = 0; i < arrayBiz.size(); i++) + for (int i = 0; i < (int)arrayBiz.size(); i++) { const WIZBIZDATA& biz = arrayBiz[i]; QString bizSection = "Biz_" + QString::number(i); diff --git a/src/share/WizDatabase.h b/src/share/WizDatabase.h index 9e8a7f32a..e2b03cb70 100755 --- a/src/share/WizDatabase.h +++ b/src/share/WizDatabase.h @@ -315,7 +315,7 @@ class WizDatabase virtual bool deleteAttachmentFromLocal(const QString& strAttachmentGuid); public: - bool open(const QString& strAccountFolderName, const QString& strKbGUID = NULL); + virtual bool open(const QString& strAccountFolderName, const QString& strKbGUID = NULL); bool loadDatabaseInfo(); bool setDatabaseInfo(const WIZDATABASEINFO& dbInfo); bool initDatabaseInfo(const WIZDATABASEINFO& dbInfo); diff --git a/src/share/WizDatabaseManager.cpp b/src/share/WizDatabaseManager.cpp index 59b9dd76d..eb4de295c 100755 --- a/src/share/WizDatabaseManager.cpp +++ b/src/share/WizDatabaseManager.cpp @@ -14,8 +14,8 @@ WizDatabaseManager* WizDatabaseManager::instance() } WizDatabaseManager::WizDatabaseManager(const QString& strAccountFolderName) - : m_strAccountFolderName(strAccountFolderName) - , m_mutex(QMutex::Recursive) + : m_mutex(QMutex::Recursive) + , m_strAccountFolderName(strAccountFolderName) { Q_ASSERT(!m_instance); diff --git a/src/share/WizEnc.h b/src/share/WizEnc.h index 190376055..6ebd08adc 100755 --- a/src/share/WizEnc.h +++ b/src/share/WizEnc.h @@ -1,12 +1,25 @@ #ifndef WIZENC_H #define WIZENC_H +#ifdef __APPLE__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-variable" +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wexceptions" +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#pragma clang diagnostic ignored "-Wunused-function" +#endif + #include "cryptopp/aes.h" #include "cryptopp/rsa.h" #include "cryptopp/randpool.h" #include "cryptopp/modes.h" #include "cryptopp/osrng.h" +#ifdef __APPLE__ +#pragma clang diagnostic pop +#endif + #include diff --git a/src/share/WizEventLoop.cpp b/src/share/WizEventLoop.cpp index 0182e2bd3..4a1b1af6a 100755 --- a/src/share/WizEventLoop.cpp +++ b/src/share/WizEventLoop.cpp @@ -7,6 +7,7 @@ const int TIMEOUT_WAIT_SECONDS = 120; WizAutoTimeOutEventLoop::WizAutoTimeOutEventLoop(QNetworkReply* pReply, QObject *parent /*= 0*/) : QEventLoop(parent) + , m_reply(pReply) , m_error(QNetworkReply::NoError) , m_timeOut(false) , m_timeOutSeconds(TIMEOUT_WAIT_SECONDS) @@ -14,7 +15,6 @@ WizAutoTimeOutEventLoop::WizAutoTimeOutEventLoop(QNetworkReply* pReply, QObject , m_lastDownloadBytes(-1) , m_uploadBytes(0) , m_lastUploadBytes(-1) - , m_reply(pReply) , m_finished(false) { m_url = pReply->request().url(); @@ -135,6 +135,8 @@ void WizAutoTimeOutEventLoop::on_downloadProgress(qint64 bytesReceived, qint64 b void WizAutoTimeOutEventLoop::on_uploadProgress(qint64 bytesSent, qint64 bytesTotal) { + Q_UNUSED(bytesTotal); + m_uploadBytes = bytesSent; // qDebug() << "upload progress changed " << bytesSent << " totoal : " << bytesTotal; } diff --git a/src/share/WizIndex.cpp b/src/share/WizIndex.cpp index b21b084e9..3fd7529ce 100755 --- a/src/share/WizIndex.cpp +++ b/src/share/WizIndex.cpp @@ -365,6 +365,8 @@ bool WizIndex::createDocument(const CString& strTitle, const CString& strName, \ int nIconIndex, int nSync, int nProtected, WIZDOCUMENTDATA& data) { Q_UNUSED(strOwner); + Q_UNUSED(nIconIndex); + Q_UNUSED(nSync); if (strTitle.isEmpty()) { TOLOG("NULL Pointer or Document title is empty: CreateDocument:Title!"); @@ -2267,7 +2269,7 @@ bool WizIndex::searchDocumentByTitle(const QString& strTitle, if (!sqlToDocumentDataArray(strSQL, arrayDocument)) return false; - if (arrayDocument.size() > nMaxCount) { + if ((int)arrayDocument.size() > nMaxCount) { arrayDocument.resize(nMaxCount); } @@ -3299,7 +3301,7 @@ bool WizIndex::searchDocumentByWhere(const QString& strWhere, int nMaxCount, CWi if (!sqlToDocumentDataArray(strSQL, arrayDocument)) return false; - if (arrayDocument.size() > nMaxCount) { + if ((int)arrayDocument.size() > nMaxCount) { arrayDocument.resize(nMaxCount); } diff --git a/src/share/WizIndexBase.cpp b/src/share/WizIndexBase.cpp index ac1470db1..cae929fe8 100755 --- a/src/share/WizIndexBase.cpp +++ b/src/share/WizIndexBase.cpp @@ -25,7 +25,7 @@ WizIndexBase::~WizIndexBase(void) close(); } -bool WizIndexBase::open(const CString& strFileName) +bool WizIndexBase::open(const QString& strFileName, const QString&) { m_strFileName = strFileName; //m_strDatabasePath = WizExtractFilePath(strFileName); diff --git a/src/share/WizIndexBase.h b/src/share/WizIndexBase.h index 72ddaff39..229e307a0 100755 --- a/src/share/WizIndexBase.h +++ b/src/share/WizIndexBase.h @@ -19,7 +19,7 @@ class WizIndexBase : public QObject WizIndexBase(void); ~WizIndexBase(void); - virtual bool open(const CString& strFileName); + virtual bool open(const QString& strFileName, const QString& strKbGUID = NULL); bool isOpened(); void close(); bool checkTable(const QString& strTableName); diff --git a/src/share/WizMisc.cpp b/src/share/WizMisc.cpp index 267a387d3..5f4c735b7 100755 --- a/src/share/WizMisc.cpp +++ b/src/share/WizMisc.cpp @@ -1869,6 +1869,8 @@ void WizScaleIconToSize(QIcon& icon, QSize size) QIcon WizLoadPngSkinIcon(const QString& fileName, const QSize& iconSize, const WizIconOptions& options) { + Q_UNUSED(iconSize); + // QIcon icon; if (isDarkMode()) { // diff --git a/src/share/WizObject.cpp b/src/share/WizObject.cpp index 4cf859958..63c20ae89 100755 --- a/src/share/WizObject.cpp +++ b/src/share/WizObject.cpp @@ -113,7 +113,7 @@ bool WIZKBVALUEVERSIONS::fromJson(const Json::Value& value) // Json::Value versionsVal = value["versions"]; // - for (int i = 0; i < versionsVal.size(); i++) + for (int i = 0; i < (int)versionsVal.size(); i++) { Json::Value version = versionsVal[i]; // @@ -329,6 +329,7 @@ bool WIZTAGDATA::fromJson(const Json::Value& value) bool WIZTAGDATA::toJson(QString kbGuid, Json::Value& value) const { + Q_UNUSED(kbGuid); //value["kbGuid"] = kbGuid.toStdString(); value["tagGuid"] = strGUID.toStdString(); value["parentTagGuid"] = strParentGUID.toStdString(); @@ -458,6 +459,8 @@ bool WIZDELETEDGUIDDATA::fromJson(const Json::Value& value) bool WIZDELETEDGUIDDATA::toJson(QString kbGuid, Json::Value& value) const { + Q_UNUSED(kbGuid); + value["deletedGuid"] = strGUID.toStdString(); value["type"] = WIZOBJECTDATA::objectTypeToTypeString(eType).toStdString(); value["created"] = tDeleted.toTime_t() * (Json::UInt64)1000; diff --git a/src/share/WizObjectOperator.cpp b/src/share/WizObjectOperator.cpp index 1a708edf5..49eed34b1 100755 --- a/src/share/WizObjectOperator.cpp +++ b/src/share/WizObjectOperator.cpp @@ -869,6 +869,7 @@ bool WizAskUserCipherToOperateEncryptedNote(const CWizDocumentDataArray& arrayDo void WizClearUserCipher(WizDatabase& db, WizUserSettings& settings) { + Q_UNUSED(db); if (!settings.isRememberNotePasswordForSession()) { //TODO:wsj diff --git a/src/share/WizQtHelper.h b/src/share/WizQtHelper.h index 64b41aee9..75b9b70e4 100755 --- a/src/share/WizQtHelper.h +++ b/src/share/WizQtHelper.h @@ -21,6 +21,10 @@ //#include #else +#ifdef __APPLE__ +#pragma clang diagnostic ignored "-Wreorder" +#endif + #ifndef BOOL #define BOOL bool #endif diff --git a/src/share/WizSearch.cpp b/src/share/WizSearch.cpp index e5e492b0a..934c33513 100755 --- a/src/share/WizSearch.cpp +++ b/src/share/WizSearch.cpp @@ -495,7 +495,7 @@ QString JsonValueToText(const Json::Value& value) // CString text; ::WizStringArrayToText(arr, text, " "); - return text; + return QString(text); } else if (value.isString()) { diff --git a/src/share/WizSyncableDatabase.h b/src/share/WizSyncableDatabase.h index 4ec79ef61..a391f14d2 100755 --- a/src/share/WizSyncableDatabase.h +++ b/src/share/WizSyncableDatabase.h @@ -184,7 +184,7 @@ struct IWizKMSyncEvents m_bIsNetworkError = false; } - virtual void onSyncProgress(int pos) {} + virtual void onSyncProgress(int) {} virtual HRESULT onText(WizKMSyncProgressMessageType type, const QString& strStatus) = 0; virtual HRESULT onMessage(WizKMSyncProgressMessageType type, const QString& strTitle, const QString& strMessage) = 0; virtual HRESULT onBubbleNotification(const QVariant& param) = 0; @@ -198,18 +198,18 @@ struct IWizKMSyncEvents virtual void setLastErrorMessage(const QString& message) { m_strLastErrorMessage = message; } virtual QString getLastErrorMessage() const { return m_strLastErrorMessage; } virtual void clearLastErrorMessage() { m_strLastErrorMessage.clear(); } - virtual void setDatabaseCount(int count) {} - virtual void setCurrentDatabase(int index) {} - virtual void clearLastSyncError(IWizSyncableDatabase* pDatabase) {} - virtual void onTrafficLimit(IWizSyncableDatabase* pDatabase) {} - virtual void onStorageLimit(IWizSyncableDatabase* pDatabase) {} - virtual void onBizServiceExpr(IWizSyncableDatabase* pDatabase) {} - virtual void onBizNoteCountLimit(IWizSyncableDatabase* pDatabase) {} - virtual void onFreeServiceExpr(WIZGROUPDATA group) {} - virtual void onVipServiceExpr(WIZGROUPDATA group) {} - virtual void onUploadDocument(const QString& strDocumentGUID, bool bDone) {} - virtual void onBeginKb(const QString& strKbGUID) {} - virtual void onEndKb(const QString& strKbGUID) {} + virtual void setDatabaseCount(int ) {} + virtual void setCurrentDatabase(int ) {} + virtual void clearLastSyncError(IWizSyncableDatabase* ) {} + virtual void onTrafficLimit(IWizSyncableDatabase* ) {} + virtual void onStorageLimit(IWizSyncableDatabase* ) {} + virtual void onBizServiceExpr(IWizSyncableDatabase* ) {} + virtual void onBizNoteCountLimit(IWizSyncableDatabase* ) {} + virtual void onFreeServiceExpr(WIZGROUPDATA ) {} + virtual void onVipServiceExpr(WIZGROUPDATA ) {} + virtual void onUploadDocument(const QString& , bool ) {} + virtual void onBeginKb(const QString& ) {} + virtual void onEndKb(const QString& ) {} public: void onStatus(const QString& strText) { onText(wizSyncMessageNormal, strText); } diff --git a/src/share/WizUIBase.cpp b/src/share/WizUIBase.cpp index c34ff2eea..2d5bf6cd5 100755 --- a/src/share/WizUIBase.cpp +++ b/src/share/WizUIBase.cpp @@ -10,22 +10,22 @@ #include #include -static int ComputeOverlay(int upperLayerValue, int lowerLayerValue) -{ - int a = lowerLayerValue; - int b = upperLayerValue; - // - if (a < 128) - { - int ret = 2 * a * b / 255; - return ret; - } - else - { - int ret = 255 - 2 * (255 - a) * (255 - b) / 255; - return ret; - } -} +//static int ComputeOverlay(int upperLayerValue, int lowerLayerValue) +//{ +// int a = lowerLayerValue; +// int b = upperLayerValue; +// // +// if (a < 128) +// { +// int ret = 2 * a * b / 255; +// return ret; +// } +// else +// { +// int ret = 255 - 2 * (255 - a) * (255 - b) / 255; +// return ret; +// } +//} QImage qimageWithTintColor(const QImage& image, QColor tintColor) { @@ -56,7 +56,7 @@ QImage qimageWithTintColor(const QImage& image, QColor tintColor) int Db = b; //dest alpha = 0xFF; int Dg = g; //dest alpha = 0xFF; int Dr = r; //dest alpha = 0xFF; - int Da = 0xFF; + //int Da = 0xFF; // bool argb = format == QImage::Format_ARGB32_Premultiplied; // @@ -167,5 +167,7 @@ void WizApplyDarkModeStyles(QWidget* widget) } } } +#else + Q_UNUSED(widget); #endif } diff --git a/src/share/WizUdpClient.cpp b/src/share/WizUdpClient.cpp index 2781ae55d..5b1f7f234 100755 --- a/src/share/WizUdpClient.cpp +++ b/src/share/WizUdpClient.cpp @@ -4,7 +4,7 @@ #include #include -const int MAX_BUF_LEN = 255; +//const int MAX_BUF_LEN = 255; WizUdpClient::WizUdpClient(QObject* parent) : QObject(parent) diff --git a/src/share/WizWebEngineView.cpp b/src/share/WizWebEngineView.cpp index 405dfaddb..8281fd6cb 100755 --- a/src/share/WizWebEngineView.cpp +++ b/src/share/WizWebEngineView.cpp @@ -33,6 +33,9 @@ class WizInvisibleWebEngineView : public QWebEngineView bool acceptNavigationRequest(const QUrl &url, QWebEnginePage::NavigationType type, bool isMainFrame) { + Q_UNUSED(type); + Q_UNUSED(isMainFrame); + emit m_ownerPage->openLinkInNewWindow(url); // parent()->deleteLater(); @@ -147,6 +150,9 @@ void WizWebEnginePage::init(const WizWebEngineViewInjectObjects& objects) void WizWebEnginePage::javaScriptConsoleMessage(JavaScriptConsoleMessageLevel level, const QString& message, int lineNumber, const QString& sourceID) { + Q_UNUSED(level); + Q_UNUSED(lineNumber); + Q_UNUSED(sourceID); qDebug() << message; } @@ -162,6 +168,7 @@ bool WizWebEnginePage::acceptNavigationRequest(const QUrl &url, QWebEnginePage:: } QWebEnginePage *WizWebEnginePage::createWindow(WebWindowType type) { + Q_UNUSED(type); return WizInvisibleWebEngineView::create(this); } diff --git a/src/share/cppsqlite3.cpp b/src/share/cppsqlite3.cpp index d9a237edc..dac841a56 100755 --- a/src/share/cppsqlite3.cpp +++ b/src/share/cppsqlite3.cpp @@ -35,7 +35,7 @@ // Named constant for passing to CppSQLite3Exception when passing it a string // that cannot be deleted. -static const bool DONT_DELETE_MSG=false; +//static const bool DONT_DELETE_MSG=false; //////////////////////////////////////////////////////////////////////////////// // Prototypes for SQLite functions not included in SQLite DLL, but copied below diff --git a/src/share/sqlite3.c b/src/share/sqlite3.c index a4974f753..8640694ee 100755 --- a/src/share/sqlite3.c +++ b/src/share/sqlite3.c @@ -7718,7 +7718,10 @@ typedef INT8_TYPE i8; /* 1-byte signed integer */ ** evaluated at runtime. */ #ifdef SQLITE_AMALGAMATION +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-variable" SQLITE_PRIVATE const int sqlite3one = 1; +#pragma clang diagnostic pop #else SQLITE_PRIVATE const int sqlite3one; #endif diff --git a/src/src.pro b/src/src.pro index 16760f865..51aaff3bb 100644 --- a/src/src.pro +++ b/src/src.pro @@ -12,7 +12,7 @@ macx { QMAKE_INFO_PLIST = ../build/osx/info.plist ICON = ../build/common/logo/wiznote.icns - QMAKE_CXXFLAGS += -Wno-unused-value -Wno-unused-variable -Wno-unused-parameter -Wno-inconsistent-missing-overrid + QMAKE_CXXFLAGS += -Wno-unused-value -Wno-unused-variable -Wno-unused-parameter -Wno-inconsistent-missing-override } TARGET = WizNote @@ -34,6 +34,9 @@ DEFINES += USECOCOATOOLBAR # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 +TRANSLATIONS = ../i18n/wiznote_zh_CN.ts ../i18n/wiznote_zh_TW.ts +CONFIG+=lrelease embed_translations + SOURCES += \ mac/WizSearchWidget_mac.mm \ utils/WizLogger.cpp \ @@ -470,9 +473,8 @@ macx { message($$WIZNOTE_RESOURCESPATH) -macx { - copyResource.commands = $(COPY_DIR) $$PWD/../share/ $$WIZNOTE_RESOURCESPATH -} + +copyResource.commands = $(COPY_DIR) $$PWD/../share/ $$WIZNOTE_RESOURCESPATH first.depends = $(first) copyResource export(first.depends) export(copyResource.commands) diff --git a/src/sync/WizApiEntry.cpp b/src/sync/WizApiEntry.cpp index 79b757f0c..6780aa1bf 100755 --- a/src/sync/WizApiEntry.cpp +++ b/src/sync/WizApiEntry.cpp @@ -346,6 +346,8 @@ QString WizCommonApiEntry::appstoreParam(bool useAndSymbol) } else { strParam = "appstore=1"; } +#else + Q_UNUSED(useAndSymbol); #endif return strParam; diff --git a/src/sync/WizKMServer.cpp b/src/sync/WizKMServer.cpp index 16afd28ae..d147b11cb 100755 --- a/src/sync/WizKMServer.cpp +++ b/src/sync/WizKMServer.cpp @@ -196,7 +196,7 @@ bool queryJsonList(WizKMApiServerBase& server, QString url, QString method, cons return false; } // - for (int i = 0; i < result.size(); i++) + for (int i = 0; i < (int)result.size(); i++) { Json::Value elem = result[i]; TData data; @@ -359,6 +359,7 @@ bool WizKMApiServerBase::getValue(const QString& strMethodPrefix, const QString& bool WizKMApiServerBase::setValue(const QString& strMethodPrefix, const QString& strGuid, const QString& strKey, const QString& strValue, __int64& nRetVersion) { + Q_UNUSED(nRetVersion); QString urlPath = "/" + strMethodPrefix + "/kv/value/" + strGuid; // Json::Value body; @@ -828,6 +829,7 @@ bool WizKMAccountsServer::setMessageReadStatus(const QString& strMessageIDs, int bool WizKMAccountsServer::setMessageDeleteStatus(const QString& strMessageIDs, int nStatus) { + Q_UNUSED(nStatus); QString strUrl = WizCommonApiEntry::messageServerUrl(); strUrl += QString("/messages?ids=%1").arg(strMessageIDs); qDebug() << "set message delete status, strToken:" << m_userInfo.strToken << " ids : " << strMessageIDs << " url : " << strUrl; @@ -956,6 +958,7 @@ bool WizKMDatabaseServer::getCommentCount(const QString& strDocumentGuid, int& c void WizKMDatabaseServer::onDocumentObjectDownloadProgress(QUrl url, qint64 downloadSize, qint64 totalSize) { + Q_UNUSED(totalSize); QString urlString = url.toString(); m_objectDownloadedSize[urlString] = downloadSize; // @@ -1190,6 +1193,7 @@ struct WIZRESOURCEDATA bool uploadResources(WizKMDatabaseServer& server, const QString& url, const QString& key, const QString& kbGuid, const QString& docGuid, const std::vector& files, bool isLast, Json::Value& res) { + Q_UNUSED(res); QString objType = "resource"; // QHttpMultiPart *multiPart = new QHttpMultiPart(QHttpMultiPart::FormDataType); @@ -1559,7 +1563,7 @@ bool WizKMDatabaseServer::document_postDataNew(const WIZDOCUMENTDATAEX& dataTemp std::vector resLess300K; std::vector resLarge; // - for (int i = 0; i < resCount; i++) + for (int i = 0; i < (int)resCount; i++) { QString resName = QString::fromUtf8(resourcesWaitForUpload[i].asString().c_str()); WIZZIPENTRYDATA entry = localResources[resName]; @@ -1724,7 +1728,7 @@ bool WizKMDatabaseServer::document_getListByGuids(const CWizStdStringArray& arra url = appendNormalParams(url, getToken()); // Json::Value guids(Json::arrayValue); - for (int i = 0; i < arrayDocumentGUID.size(); i++) + for (int i = 0; i < (int)arrayDocumentGUID.size(); i++) { guids[i] = arrayDocumentGUID[i].toStdString(); } diff --git a/src/sync/WizKMServer.h b/src/sync/WizKMServer.h index c992ded0b..88e7b3de4 100755 --- a/src/sync/WizKMServer.h +++ b/src/sync/WizKMServer.h @@ -210,6 +210,10 @@ public slots: template bool getList(int nCountPerPage, __int64 nVersion, std::deque& arrayRet) { + Q_UNUSED(nCountPerPage); + Q_UNUSED(nVersion); + Q_UNUSED(arrayRet); + ATLASSERT(FALSE); return FALSE; } @@ -247,6 +251,7 @@ public slots: template bool postList(std::deque& arrayData) { + Q_UNUSED(arrayData); ATLASSERT(FALSE); return FALSE; } @@ -275,6 +280,10 @@ public slots: template bool postData(TData& data, bool bWithData, __int64& nServerVersion) { + Q_UNUSED(data); + Q_UNUSED(bWithData); + Q_UNUSED(nServerVersion); + // ATLASSERT(FALSE); return FALSE; } diff --git a/src/sync/WizKMSync_p.h b/src/sync/WizKMSync_p.h index 3ec5e0356..53f81c6ea 100755 --- a/src/sync/WizKMSync_p.h +++ b/src/sync/WizKMSync_p.h @@ -130,6 +130,7 @@ class WizKMSync template bool onDownloadList(const std::deque& arrayData) { + Q_UNUSED(arrayData); ATLASSERT(FALSE); return FALSE; } diff --git a/src/sync/WizSync.cpp b/src/sync/WizSync.cpp index 9b73e4278..f07bfc73c 100755 --- a/src/sync/WizSync.cpp +++ b/src/sync/WizSync.cpp @@ -413,6 +413,9 @@ bool WizKMSync::downloadValue(const QString& strKey) template bool GetModifiedObjectList(IWizSyncableDatabase* pDatabase, std::deque& arrayData) { + Q_UNUSED(pDatabase); + Q_UNUSED(arrayData); + // ATLASSERT(FALSE); return FALSE; } @@ -464,6 +467,7 @@ bool onUploadObject(IWizSyncableDatabase* pDatabase, const TData& data, const QS template bool onUploadObject(IWizSyncableDatabase* pDatabase, const WIZDOCUMENTPARAMDATA& data, const QString& strObjectType) { + Q_UNUSED(strObjectType); return pDatabase->onUploadParam(data.strDocumentGuid, data.strName); } @@ -557,6 +561,8 @@ QByteArray WizCompressAttachmentFile(const QByteArray& stream, QString& strTempF template bool CanEditData(IWizSyncableDatabase* pDatabase, const TData& data) { + Q_UNUSED(pDatabase); + Q_UNUSED(data); ATLASSERT(FALSE); return FALSE; } @@ -646,6 +652,9 @@ void SaveServerError(const WIZKBINFO& kbInfo, const WizKMDatabaseServer& server, bool UploadDocumentCore(const WIZKBINFO& kbInfo, int size, int start, int total, int index, WIZDOCUMENTDATAEX& local, IWizKMSyncEvents* pEvents, IWizSyncableDatabase* pDatabase, WizKMDatabaseServer& server, const QString& strObjectType, WizKMSyncProgress progress, bool forceUploadData) { + Q_UNUSED(kbInfo); + Q_UNUSED(progress); + QString strDisplayName; strDisplayName = local.strTitle; @@ -803,6 +812,9 @@ bool UploadDocument(const WIZKBINFO& kbInfo, int size, int start, int total, int bool UploadAttachment(const WIZKBINFO& kbInfo, int size, int start, int total, int index, WIZDOCUMENTATTACHMENTDATAEX& local, IWizKMSyncEvents* pEvents, IWizSyncableDatabase* pDatabase, WizKMDatabaseServer& server, const QString& strObjectType, WizKMSyncProgress progress) { + Q_UNUSED(kbInfo); + Q_UNUSED(progress); + QString strDisplayName; strDisplayName = local.strName; @@ -924,8 +936,22 @@ bool UploadAttachment(const WIZKBINFO& kbInfo, int size, int start, int total, i template -bool UploadObject(const WIZKBINFO& kbInfo, int size, int start, int total, int index, std::map& mapDataOnServer, TData& local, IWizKMSyncEvents* pEvents, IWizSyncableDatabase* pDatabase, WizKMDatabaseServer& server, const QString& strObjectType, WizKMSyncProgress progress) +bool UploadObject(const WIZKBINFO& kbInfo, int size, int start, int total, int index, + std::map& mapDataOnServer, TData& local, IWizKMSyncEvents* pEvents, IWizSyncableDatabase* pDatabase, WizKMDatabaseServer& server, const QString& strObjectType, WizKMSyncProgress progress) { + Q_UNUSED(kbInfo); + Q_UNUSED(size); + Q_UNUSED(start); + Q_UNUSED(total); + Q_UNUSED(index); + Q_UNUSED(server); + Q_UNUSED(strObjectType); + Q_UNUSED(progress); + Q_UNUSED(pDatabase); + Q_UNUSED(mapDataOnServer); + Q_UNUSED(local); + Q_UNUSED(pEvents); + ATLASSERT(false); } @@ -1393,6 +1419,8 @@ bool WizDownloadMessages(IWizKMSyncEvents* pEvents, WizKMAccountsServer& server, bool WizUploadMessages(IWizKMSyncEvents* pEvents, WizKMAccountsServer& server, IWizSyncableDatabase* pDatabase) { + Q_UNUSED(pEvents); + // CWizMessageDataArray arrayMessage; pDatabase->getModifiedMessageList(arrayMessage); @@ -1514,7 +1542,7 @@ class CWizAvatarStatusChecker if (it.key() != m_currentUserGUID) { QFileInfo info(strFileName); - if (info.created().daysTo(QDateTime::currentDateTime()) < 7) + if (info.birthTime().daysTo(QDateTime::currentDateTime()) < 7) { continue; } @@ -1562,6 +1590,8 @@ QString downloadFromUrl(const QString& strUrl) void syncGroupUsers(WizKMAccountsServer& server, const CWizGroupDataArray& arrayGroup, IWizKMSyncEvents* pEvents, IWizSyncableDatabase* pDatabase, bool background) { + Q_UNUSED(background); + pEvents->onStatus(QObject::tr("Sync group users")); for (CWizGroupDataArray::const_iterator it = arrayGroup.begin(); diff --git a/src/ui/WizPreferenceDialog.ui b/src/ui/WizPreferenceDialog.ui index 83c30caae..22cdca1f4 100755 --- a/src/ui/WizPreferenceDialog.ui +++ b/src/ui/WizPreferenceDialog.ui @@ -519,7 +519,7 @@ - + Spacing diff --git a/src/utils/WizLogger.cpp b/src/utils/WizLogger.cpp index ae7b8c4e5..731a7f746 100755 --- a/src/utils/WizLogger.cpp +++ b/src/utils/WizLogger.cpp @@ -20,8 +20,8 @@ namespace Utils { WizLogger::WizLogger() - : m_buffer(new QBuffer()) - , m_mutex(QMutex::Recursive) + : m_mutex(QMutex::Recursive) + , m_buffer(new QBuffer()) { connect(m_buffer, SIGNAL(readyRead()), SLOT(onBuffer_readRead())); } diff --git a/src/utils/WizNotify_mac.mm b/src/utils/WizNotify_mac.mm index 305896484..ae5ce978e 100755 --- a/src/utils/WizNotify_mac.mm +++ b/src/utils/WizNotify_mac.mm @@ -7,6 +7,8 @@ void WizNotify::sendNotify(const QString& strTile, const QString& strText) { + Q_UNUSED(strTile); + Q_UNUSED(strText); /* NSUserNotification* userNotification = [[[NSUserNotification alloc] init] autorelease]; userNotification.title = ::WizToNSString(strTile); diff --git a/src/utils/WizStyleHelper.cpp b/src/utils/WizStyleHelper.cpp index 3f3a1b3ce..65e75e4cd 100755 --- a/src/utils/WizStyleHelper.cpp +++ b/src/utils/WizStyleHelper.cpp @@ -380,7 +380,8 @@ QColor WizStyleHelper::treeViewItemMessageText() } QColor WizStyleHelper::treeViewItemText(bool bSelected, bool bSecondLevel) -{ +{ + Q_UNUSED(bSecondLevel); if (bSelected) { return QColor(getValue("Category/TextSelected", "#ffffff").toString()); } else { @@ -562,26 +563,36 @@ QColor WizStyleHelper::listViewItemBackground(int stat) QColor WizStyleHelper::listViewItemType(bool bSelected, bool bFocused) { + Q_UNUSED(bSelected); + Q_UNUSED(bFocused); return QColor(getValue("Documents/Type", "#3177EE").toString()); } QColor WizStyleHelper::listViewItemTitle(bool bSelected, bool bFocused) { + Q_UNUSED(bSelected); + Q_UNUSED(bFocused); return QColor(getValue("Documents/Title", "#464646").toString()); } QColor WizStyleHelper::listViewItemLead(bool bSelected, bool bFocused) { + Q_UNUSED(bSelected); + Q_UNUSED(bFocused); return QColor(getValue("Documents/Lead", "#6B6B6B").toString()); } QColor WizStyleHelper::listViewItemLocation(bool bSelected, bool bFocused) { + Q_UNUSED(bSelected); + Q_UNUSED(bFocused); return QColor(getValue("Documents/Location", "#3177EE").toString()); } QColor WizStyleHelper::listViewItemSummary(bool bSelected, bool bFocused) -{ +{ + Q_UNUSED(bSelected); + Q_UNUSED(bFocused); return QColor(getValue("Documents/Summary", "#8c8c8c").toString()); } diff --git a/src/widgets/WizAdvancedSearchDialog.cpp b/src/widgets/WizAdvancedSearchDialog.cpp index e4006331d..dc833b4aa 100755 --- a/src/widgets/WizAdvancedSearchDialog.cpp +++ b/src/widgets/WizAdvancedSearchDialog.cpp @@ -484,6 +484,7 @@ void WizSearchParamItem::draw(QPainter* p, const QStyleOptionViewItem* vopt) con QRect WizSearchParamItem::drawItemBackground(QPainter* p, const QRect& rect, bool selected, bool focused) const { + Q_UNUSED(focused); QBrush brush; selected ? brush.setColor(Qt::blue) : brush.setColor(Qt::white); brush.setStyle(Qt::SolidPattern); diff --git a/src/widgets/WizCodeEditorDialog.cpp b/src/widgets/WizCodeEditorDialog.cpp index 214234bba..46a087683 100755 --- a/src/widgets/WizCodeEditorDialog.cpp +++ b/src/widgets/WizCodeEditorDialog.cpp @@ -58,6 +58,7 @@ WizCodeEditorDialog::WizCodeEditorDialog(WizExplorerApp& app, WizDocumentWebView void WizCodeEditorDialog::setCode(const QString& strCode) { + Q_UNUSED(strCode); // if (!strCode.isEmpty()) // { // //m_codeEditor->page()->mainFrame()->setHtml(strCode); diff --git a/src/widgets/WizFramelessWebDialog.cpp b/src/widgets/WizFramelessWebDialog.cpp index 64e8c203c..179b9cdab 100755 --- a/src/widgets/WizFramelessWebDialog.cpp +++ b/src/widgets/WizFramelessWebDialog.cpp @@ -37,6 +37,9 @@ void WizFramelessWebDialog::loadAndShow(const QString& strUrl) void WizFramelessWebDialog::Execute(const QString& strFunction, QVariant param1, QVariant param2, QVariant param3, QVariant param4) { + Q_UNUSED(param2); + Q_UNUSED(param3); + Q_UNUSED(param4); if (strFunction == "close") { ::WizExecuteOnThread(WIZ_THREAD_MAIN, [=]{ diff --git a/src/widgets/WizScreenShotWidget.cpp b/src/widgets/WizScreenShotWidget.cpp index 53725e19d..77137b6e9 100755 --- a/src/widgets/WizScreenShotWidget.cpp +++ b/src/widgets/WizScreenShotWidget.cpp @@ -77,6 +77,7 @@ QPixmap WizScreenShotWidget::getFullScreenPixmap() void WizScreenShotWidget::paintEvent(QPaintEvent *event) { + Q_UNUSED(event); QColor shadowColor; shadowColor= QColor(0, 0, 0, 100); painter.begin(this); diff --git a/src/widgets/WizShareLinkDialog.cpp b/src/widgets/WizShareLinkDialog.cpp index e37d2a257..f328b6cdc 100755 --- a/src/widgets/WizShareLinkDialog.cpp +++ b/src/widgets/WizShareLinkDialog.cpp @@ -70,6 +70,7 @@ void WizShareLinkDialog::getToken() QString strToken = WizToken::token(); m_view->page()->runJavaScript(QString("setToken('%1')").arg(strToken), [=](const QVariant& vRet){ + Q_UNUSED(vRet); emit tokenObtained(); }); @@ -92,6 +93,7 @@ QString WizShareLinkDialog::getTitle() void WizShareLinkDialog::resizeEx(int nWidth, int nHeight) { + Q_UNUSED(nWidth); // resize(nWidth, nHeight); QRect rec = geometry(); rec.setHeight(nHeight); @@ -164,6 +166,7 @@ QString WizShareLinkDialog::formateISO8601String() void WizShareLinkDialog::notifyEvent(const QString& event, const QVariant& params) { + Q_UNUSED(params); qDebug() << event; if (event == "UpgradeToVip") { // diff --git a/src/widgets/WizShareLinkDialog.h b/src/widgets/WizShareLinkDialog.h index 1e7f8a8de..29c815eef 100755 --- a/src/widgets/WizShareLinkDialog.h +++ b/src/widgets/WizShareLinkDialog.h @@ -50,7 +50,7 @@ class WizShareLinkDialog : public WizWebEngineViewContainerDialog Q_PROPERTY(QString shareLinkFirstTips READ getShareLinkFirstTips WRITE setShareLinkFirstTips) Q_PROPERTY(QString localLanguage READ getLocalLanguage) - Q_PROPERTY(QString formateISO8601StringParam WRITE setFormateISO8601StringParam) + Q_PROPERTY(QString formateISO8601StringParam READ formateISO8601String WRITE setFormateISO8601StringParam) Q_PROPERTY(QString formateISO8601StringResult READ formateISO8601String NOTIFY formateISO8601StringChanged) public slots: diff --git a/src/widgets/WizTagBar.cpp b/src/widgets/WizTagBar.cpp index 61c399e66..0b8c794bc 100644 --- a/src/widgets/WizTagBar.cpp +++ b/src/widgets/WizTagBar.cpp @@ -20,7 +20,7 @@ #include "share/WizAnalyzer.h" const int TAGITEM_MARGIN = 16; -const int TAGITEM_HEIGHT = 16; +//const int TAGITEM_HEIGHT = 16; const int TAGITEM_DELETEICONSIZE = 14; @@ -453,6 +453,7 @@ void WizTagBar::on_documentTagModified(const WIZDOCUMENTDATA& document) void WizTagBar::on_lineEditTextChanged(const QString& text) { + Q_UNUSED(text); // if (text.isEmpty()) // { // m_lineEdit->setStyleSheet("QLineEdit {border: 0px; color:#6c6c6c;}"); diff --git a/src/widgets/WizTipsWidget.cpp b/src/widgets/WizTipsWidget.cpp index 492492f0e..388086dc7 100755 --- a/src/widgets/WizTipsWidget.cpp +++ b/src/widgets/WizTipsWidget.cpp @@ -13,15 +13,15 @@ QSet WizTipsWidget::m_tipsList = QSet(); WizTipsWidget::WizTipsWidget(const QString& id, QWidget *parent) : WizPopupWidget(parent) + , m_targetWidget(nullptr) + , m_xOff(0) + , m_yOff(0) , m_hintSize(318, 82) + , m_id(id) + , m_autoAdjustPosition(false) , m_showFunction(emptyFunction) , m_hideFunction(emptyFunction) , m_closeFunction(emptyFunction) - , m_id(id) - , m_autoAdjustPosition(false) - , m_targetWidget(nullptr) - , m_xOff(0) - , m_yOff(0) { Qt::WindowFlags flags = windowFlags(); flags = flags & ~Qt::Popup; diff --git a/src/widgets/WizUserInfoWidget.cpp b/src/widgets/WizUserInfoWidget.cpp index 9a3a64904..a03876d50 100755 --- a/src/widgets/WizUserInfoWidget.cpp +++ b/src/widgets/WizUserInfoWidget.cpp @@ -277,6 +277,7 @@ QPixmap WizUserInfoWidget::getCircleAvatar(int width, int height) QPixmap WizUserInfoWidget::getAvatar(int width, int height) { + Q_UNUSED(height); return getCircleAvatar(width, width); } diff --git a/src/widgets/WizUserInfoWidgetBase.h b/src/widgets/WizUserInfoWidgetBase.h index 88fab8643..8090fb33b 100755 --- a/src/widgets/WizUserInfoWidgetBase.h +++ b/src/widgets/WizUserInfoWidgetBase.h @@ -18,7 +18,7 @@ class WizUserInfoWidgetBase : public QToolButton protected: virtual void paintEvent(QPaintEvent *event); // - virtual QPixmap getAvatar(int width, int height) { return QPixmap(); } + virtual QPixmap getAvatar(int width, int height) { Q_UNUSED(width); Q_UNUSED(height); return QPixmap(); } virtual QIcon getArrow() { return QIcon(); } virtual QIcon getVipIcon() { return QIcon(); } // From c1ecdef4731bda628f31af2eecd0da85bbf25dfa Mon Sep 17 00:00:00 2001 From: wizweishijun Date: Thu, 7 May 2020 11:00:00 +0800 Subject: [PATCH 05/31] =?UTF-8?q?=E6=89=93=E5=8C=85=E4=BF=AE=E6=94=B9=20?= =?UTF-8?q?=E5=A4=9C=E9=97=B4=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- i18n/wiznote_zh_CN.ts | 714 ++++++++++++++++----------------- i18n/wiznote_zh_TW.ts | 712 ++++++++++++++++---------------- mac-package.sh | 10 +- share/locales/wiznote_zh_CN.qm | Bin 0 -> 83607 bytes share/locales/wiznote_zh_TW.qm | Bin 0 -> 69558 bytes src/WizMainWindow.cpp | 5 + src/WizMainWindow.h | 1 + src/WizMessageListView.cpp | 58 ++- src/WizMessageListView.h | 5 + src/src.pro | 3 +- src/utils/WizStyleHelper.cpp | 9 +- src/widgets/WizAboutDialog.cpp | 2 +- 12 files changed, 782 insertions(+), 737 deletions(-) create mode 100644 share/locales/wiznote_zh_CN.qm create mode 100644 share/locales/wiznote_zh_TW.qm diff --git a/i18n/wiznote_zh_CN.ts b/i18n/wiznote_zh_CN.ts index 76a716614..e6bc6e748 100644 --- a/i18n/wiznote_zh_CN.ts +++ b/i18n/wiznote_zh_CN.ts @@ -489,7 +489,7 @@ - + Can not open database 无法打开数据库 @@ -716,13 +716,13 @@ 恢复已删除笔记... - + Syncing 正在同步 - + WizNote is synchronizing notes, please wait for the synchronization to complete before the operation. 笔记同步中,请等待同步完成后再操作。 @@ -773,35 +773,35 @@ 置顶 - + Add to Shortcuts 添加到快捷方式 - + Unknown size 未知大小 - + More than 100MB 大于100MB - - - - + + + + Move notes to %1 移动笔记到 %1 - - - - - - + + + + + + Copy notes to %1 复制笔记到 %1 @@ -897,25 +897,25 @@ - + Cut 剪切 - - + + Copy 拷贝 - + Paste 粘贴 - + Use "Google" search 使用 “Google" 搜索 @@ -1111,22 +1111,22 @@ 雅痞-简 - + Use "Baidu" search 使用 "百度" 搜索 - + Paste plain text 粘贴为纯文本 - + Remove link 删除链接 - + Unselect 取消选择 @@ -1136,8 +1136,8 @@ 插入链接 - - + + Unknown @@ -1176,18 +1176,18 @@ 从笔记列表拖动笔记 - - + + You have %1 unread notes 您有 %1 条未读笔记 - + Your enterprise services has expired 您的企业服务已到期 - + Your group is in the abnormal state 您的群组处于异常状态 @@ -1208,43 +1208,43 @@ - + Yesterday 昨天 - + The day before yesterday 前天 - + Just now 刚刚 - + 1 minute ago 1分钟前 - + %1 minutes ago %1 分钟前 - + 1 hour ago 1小时前 - + %1 hours ago %1 小时前 @@ -1366,38 +1366,38 @@ %1 字节 - + Note History 笔记版本历史 - + Attachment History 附件版本历史 - + Download Note %1 ... 下载笔记 %1 ... - - + + Downloading 正在下载 - + Download Attachment %1 ... 下载附件 %1 ... - + Your {p} business service has expired. 您的{p}企业服务已到期。 - + Group notes count limit exceeded! 群组笔记数目超出限制! @@ -1535,146 +1535,146 @@ 下载附件失败! - + Can't upload list! 上传数据失败! - + Upload note [%2] %1 上传笔记 [%2] %1 - + Cannot upload note data: %1 上传笔记数据失败: %1 - + Can't upload object, error code : %1 上传数据失败,错误代码 : %1 - + Team service of ' %1 ' has expired, temporarily unable to sync the new and edited notes, please renew on time. %1 的团队服务已到期,暂时无法上传新创建或修改的笔记,请及时付费哦。 - - - - + + + + User service of has expired, please upgrade to VIP. 用户服务已到期,请升级到VIP。 - - - - + + + + VIP service of has expired, please renew to VIP. VIP服务已到期,请续费VIP服务。 - + New Message 新消息 - + Sync group users 同步群组用户 - + ----------Sync start---------- ----------同步开始---------- - + ----------sync private notes---------- ----------同步个人笔记---------- - - + + Cannot sync! 同步失败! - + ----------sync groups---------- ----------同步群组---------- - + ----------Sync group: %1---------- ----------同步群组: %1---------- - - + + Cannot open group: %1 打开群组: %1 失败 - + Sync group %1 done 群组 %1 同步完成 - - + + Cannot sync group %1 群组 %1 同步失败 - + ----------Downloading notes---------- ----------下载笔记内容---------- - + ----------Sync done---------- ----------同步完成---------- - + Connecting to server 连接服务器 - + Signing in 登录 - + Get Biz info 获取企业群组信息 - + Get groups info 获取群组信息 - + Can not get groups 获取群组信息失败 - + Downloading settings 下载设置 - + Downloading messages 下载消息 - + Upload modified messages 上传消息 @@ -1796,54 +1796,54 @@ - + Empty Note 空白笔记 - + Markdown Note Markdown 笔记 - + Markdown Note.md Markdown 笔记.md - - + + Handwriting Note 手写笔记 - - + + Outline Note 大纲笔记 - + You can use this template after upgrading to VIP or buy it. 您需要升级 VIP 后才可使用该模板。 - + Cancel 取消 - + Purchase 购买 - + Upgrade to VIP 现在升级 @@ -1914,8 +1914,8 @@ - - + + No change, skip 未改动,跳过 @@ -1965,7 +1965,7 @@ 完成群组: %1 - + @@ -1994,7 +1994,7 @@ 笔记列表中包含加密笔记,是否继续执行操作? - + [ Top ] [ 置顶 ] @@ -2010,7 +2010,7 @@ - + @@ -2030,26 +2030,26 @@ - + Saving comments... 正在保存备注... - + Please enter the password of team cert: %1 Password hint: %2 请输入团队证书密码:%1 密码提示:%2 - + Please enter the password of cert: Password hint: %1 请输入证书密码 密码提示%1 - + Cert Password 证书密码 @@ -2084,38 +2084,38 @@ Password hint: %1 Json格式错误 - + Note has not been downloaded 笔记还没有下载 - - + + Failed to get note data 获取笔记数据失败 - + Failed to read note data 读取笔记数据失败 - + Note attachment %1 has not been downloaded 笔记附件 %1 还没有下载 - + Cannot combine html because html contains frame set 不能合并html,因为html包含frame set - + Cannot combine html 不能合并html - + Cannot save note html 不能保存笔记html @@ -2129,8 +2129,8 @@ Password hint: %1 - <span style="font-size:10px">Copyright 2011-2019 Beijing Wozhi Technology Co., Ltd. All rights reserved.</span> - <span style="font-size:10px">版权所有 2011-2019 北京我知科技有限公司. 保留所有权利.</span> {10p?} {2011-2019 ?} + <span style="font-size:10px">Copyright 2011-2020 Beijing Wozhi Technology Co. Ltd. All rights reserved.</span> + <span style="font-size:10px">北京我知科技有限公司 版权所有 2011-2020 保留所有权利.</span> @@ -2284,371 +2284,371 @@ Password hint: %1 WizCategoryView - - - + + + Please input folder name: 请输入文件夹名称: - + New tag 新建标签 - - + + Please input tag name: 请输入标签名称: - + New group folder 新建群组文件夹 - + Copy folder 复制文件夹 - + Rename tag 重命名标签 - + Rename group folder 重命名群组文件夹 - - - + + + Cancel 取消 - - - + + + OK 确定 - + Delete tag 删除标签 - + Do you really want to delete tag: %1 ? (include child tags if any) 确定要删除标签 %1 吗?(如果存在子标签也将被删除) - + Delete group folder 删除群组文件夹 - - - - - - - - + + + + + + + + Info 提示 - - - - - + + + + + Folder '%1' already exists, combine these folders? 文件夹 '%1' 已存在,是否合并? - + Add to Shortcuts 添加到快捷方式 - + The default folder can not be renamed. 默认目录不支持重命名。 - + Do you really want to delete all notes inside folder: %1 ? (All notes will deleted in local and removed to trash from cloud server) 确认删除 %1 下的所有笔记 ? (笔记会在本地删除并存入服务器的回收站中) - + Do you really want to delete folder: %1? (All notes will deleted in local and removed to trash from cloud server) 确认删除文件夹 %1 ? (所有笔记会在本地删除并存入服务器的回收站中) - + All Notes 全部笔记 - + Your enterprise services has expired, could not manage members. Please purchase services or apply for an extension. 您的企业服务已到期,将无法进行成员管理。请购买服务或申请延期。 - - + + View group info 群组信息 - - + + Manage group 管理群组信息 - + Storage Limit Info 容量限制信息 - + Traffic Limit Info 流量限制信息 - + Note Count Limit Info 笔记数目限制信息 - + Group notes count limit exceeded! 群组笔记数目超出限制! - + View team info 团队信息 - + Manage team 管理团队信息 - + loading... 正在导入... - + %1 files to import. 导入 %1 文件。 - + Untitled 无标题 - + Created since Yesterday 两天内创建 - + Created since the day before yesterday 三天内创建 - + Modified since Yesterday 两天内修改 - + Modified since the day before yesterday 三天内修改 - + Accessed since Yesterday 两天内访问 - + Accessed since the day before yesterday 三天内访问 - + Create Team for Free 免费开通团队服务 - + Invalid folder name 无效的文件夹名称 - - + + Folder has already exists 文件夹已经存在 - + Tag has already exists 标签已经存在 - + Create Team for Free... 免费开通团队服务... - + Search by Date Created 通过创建日期 - + Search by Date Modified 通过修改日期 - + Search by Date Accessed 通过访问日期 - + Created since Today 今日 - + Created since one week 一周内 - + Created since one month 一月内 - + Modified since Today 今日 - + Modified since one week 一周内 - + Modified since one month 一月内 - + Accessed since Today 今日 - + Accessed since one week 一周内 - + Accessed since one month 一月内 - + Moving folder... 正在移动文件夹... - + Recent meesages 最近消息 - + Add custom search 添加自定义搜索 - + Edit custom search 编辑 - + Remove custom search 删除 - + Select one or more files to open 选择文件 - - + + Moving note %1 ... 移动笔记 %1 ... - - + + Move notes from %1 to %2 从 %1 移动到 %2 - + No tag notes 无标签笔记 - + New folder 新建文件夹 - + Move folder 移动文件夹 - + Please input new folder name: 请输入新的文件夹名: - + Rename folder 重命名文件夹 - + Delete Folder 删除文件夹 @@ -2844,69 +2844,69 @@ Password hint: %1 WizDatabase - + Downloading cert... 正在下载证书... - + My Notes 我的笔记 - + My Journals 我的日记 - + My Contacts 我的联系人 - + My Events 我的事件 - + My Sticky Notes 我的桌面便笺 - + My Emails 我的邮件 - + My Drafts 我的草稿 - + My Tasks 我的任务 - + Inbox 收集箱 - + Completed 已完成 - + Invalid password. 密码错误。 - + Info 提示 @@ -2917,7 +2917,7 @@ Password hint: %1 未发现加密证书,请从Windows客户端创建加密证书。 - + password error! 密码错误! @@ -2960,18 +2960,18 @@ Password hint: %1 官方模版 - - + + Info 提示 - + extract ziw file failed! 提取Ziw文件失败! - + You have unfinished transation, continue to process it? 您有未完成的购买记录,继续处理? @@ -2979,29 +2979,29 @@ Password hint: %1 WizDocumentListView - + Open in new Window 在新窗口中打开 - + Move notes 移动笔记 - + Copy documents 复制笔记 - + No search results... Try to change another keyword or advanced searching 寻而未果 尝试更换关键词或高级搜索看看 - + Nothing in here Go to create a note 文件夹空空如也 @@ -3061,47 +3061,47 @@ Go to create a note WizDocumentView - + Encrypted group password 绝密群组密码 - + Personal notes certificate password 个人笔记证书密码 - + You have occupied this note by clicking checklist ! Switch to other notes to free this note. 您点击了阅读状态的清单项,当前笔记正被您占用!如需解除,请切换到其他笔记。 - + WizNote 为知笔记 - + Invalid password. 密码错误。 - + %1 is currently editing this note. Note has been locked. 当前笔记正在被 %1 编辑,笔记已处于锁定状态。 - + %1 is currently editing this note. 当前笔记正在被 %1 编辑。 - + The current network in poor condition, you are <b> offline editing mode </b>. 当前网络状况不佳,您正处于 <b> 离线编辑模式 </b>。 - + New version on server avalible. <a href='%1'>Click to download new version.<a> 服务器上有新版本 <a href='%1'>点击下载新版本<a> @@ -3127,65 +3127,65 @@ Go to create a note WizDocumentWebView - - - + + + Info 提示 - + Can not add a 0 bit size file as attachment! File name : ' %1 ' 不能添加0字节的文件作为附件!文件名:' %1 ' - + Can not add a bundle file as attachment! File name : ' %1 ' 不能添加包文件作为附件!文件名:' %1 ' - + Do not support insert comment into markdown note. 暂不支持插入评论到Markdown笔记中。 - + Failed to save note. 保存笔记失败。 - - + + Error 错误 - + Can't copy style files 不能复制样式文件 - + Image File 图片文件 - + Images (*.png *.bmp *.gif *.jpg) 图片 (*.png *.bmp *.gif *.jpg) - + PDF Files (*.pdf) PDF 文件 (*.pdf) - + Html Files (*.html) Html文件(*.html) - + Markdown Files (*.md) Markdown文件(*.md) @@ -3193,12 +3193,12 @@ Go to create a note WizDocumentWebViewLoaderThread - + Error 错误 - + Can't view note: (Can't unzip note data) 无法查看笔记:(不能解压缩笔记数据) @@ -3290,174 +3290,174 @@ Go to create a note WizEditorToolBar - + Font Panel 字体面板 - + Format Painter 格式刷 - + Remove Format 清除样式 - + ForeColor 字体颜色 - + BackColor 背景色 - + Bold %1B 粗体 %1B - + Italic %1I 斜体 %1I - + Extra 更多工具 - + Underline %1U 下划线 %1U - + Strike Through %1%2K 删除线 %1%2K - + Justify 段落方向 - + Justify Left 左对齐 - + Justify Center 居中 - + Justify Right 右对齐 - + UnorderedList %1%2U 无序列表 %1%2U - + OrderedList %1%2O 有序列表 %1%2O - - + + Insert Table 插入表格 - + Insert Horizontal %1%2H 插入水平标尺 %1%2H - + Start Markup 标记笔记 - + Insert Handwriting 插入手写内容 - + Insert Checklist %1O 插入清单 %1O - + Insert Link %1K 插入链接 %1K - + Insert Image %1%2I 插入图片 %1%2I - + Insert Date %1%2D 插入日期 %1%2D - + Receive mobile image 手机传图 - + Find & Replace %1F 查找 & 替换 %1F - + Screen shot 屏幕截图 - + Insert code %1%2C 插入代码 %1%2C - + Back to Text Editor 回到文本编辑 - - + + show more colors... 显示更多颜色... - + More tool items 更多工具 - + Use to show or hide extra tool items. 可以显示或收起更多编辑工具。 - + Save as... 另存为... - + Image Files (*.%1) 图片文件 (*.%1) @@ -3832,7 +3832,7 @@ Go to create a note - + No account yet, 还没有帐号, @@ -3844,7 +3844,7 @@ Go to create a note - + There is no server address, please input it. 没找到服务器地址,请手动输入服务器地址。 @@ -3939,7 +3939,7 @@ Go to create a note 登录过于频繁,请稍后重试。 - + The user can't sigin in to the server, it had been signed in to other servers. 该用户在其他服务器上登录过,不能在此服务器上登录。 @@ -3959,7 +3959,7 @@ Go to create a note 移除用户会删除该用户已下载的笔记数据,确定移除用户 %1 ? - + Already got account, 已有帐号, @@ -3984,8 +3984,8 @@ Go to create a note - - + + Info 提示 @@ -3994,179 +3994,179 @@ Go to create a note WizMainWindow - + WizNote 为知笔记 - - - - - - - - - - - + + + + + + + + + + + Info 提示 - + Connection is not available, please check your network connection. 网络连接不可用,请检查网络连接. - + Username / password error. Please login again. 用户名 / 密码错误,请重新登录。 - + Can't find note %1 , may be it has been deleted. 找不到笔记 %1 , 该篇笔记可能已被删除。 - + Downloading template... 正在下载模版... - + Error 错误 - + Can't download template from server. Please try again later. - + Your permission is insufficient, super member or group administrators can share notes. 您的权限不足,超级成员或群组管理员才可分享笔记。 - + You are using the free version of the service, upgrade now, you can share notes. 您使用的是免费版服务,现在升级,即可分享笔记。 - + Can not share encrpyted notes. 加密笔记不能创建公开链接。 - + Upgrading to VIP 升级VIP - + Only VIP user can create link, please retry after upgrading to VIP and syncing to server. 仅 VIP 用户能创建链接,请升级 VIP 并同步后重试。 - + Cancel 取消 - + Upgrade now 立即升级 - + Account settings 帐户设置 - + Search 搜索 - - + + New Note 新建笔记 - + Unread documents 未读笔记 - + Mark all documents read 将所有未读笔记标记为已读 - - + + Sync failed 同步失败 - + Bad network connection, can not sync now. Please try again later. (code: %1) 网络错误,现在无法同步。请稍后重试:(错误码:%1) - + There is something wrong with sync service. Please try again later. (code: %1) 服务端返回错误:同步异常,请稍后重试。(错误码:%1) - + Mark all as readed 标记为已读 - + Mark all documents as readed. 将所有未读笔记标记为已读。 - + Searching... 正在搜索... - + Can't find the specified attachment, may be it has been deleted. 找不到指定附件,该附件可能已被删除. - + Show/Hide MainWindow 显示/隐藏主窗口 - + Hide TrayIcon 隐藏托盘图标 - + Logout 退出登录 - + Exit 退出 - + Downloading attachment file %1 ... 下载附件 %1 ... - + Downloading 正在下载 @@ -4430,14 +4430,14 @@ Asian characters: %5 WizOEMDownloader - + Can not find server %1 找不到服务器 %1 - - - + + + Licence not found : %1 无法获取Licence : %1 @@ -4948,7 +4948,7 @@ Asian characters: %5 退出 - + Tips mouse dragging screenshots; area right in the screenshots saved; screenshots area right outside cancellation; ESC to exit. @@ -4957,7 +4957,7 @@ Asian characters: %5 选区外右键取消选取;ECS键退出截图。 - + Coordinate information x: %1 y: %2 w: %3 h: %4 @@ -5110,7 +5110,7 @@ w: %3 h: %4 标签 - + Click here to add tags 点此添加标签 @@ -5118,47 +5118,47 @@ w: %3 h: %4 WizTagItem - + Rename... 重命名... - + Remove 移除 - + Delete 删除 - + Rename tag 重命名标签 - + Please input tag name: 请输入标签名称: - + Delete tag 删除标签 - + Cancel 取消 - + OK 确定 - + Do you really want to delete tag: %1 ? (include child tags if any) 确定要删除标签 %1 吗?(如果存在子标签也将被删除) @@ -5343,12 +5343,12 @@ w: %3 h: %4 浏览并添加评论 %1C - + Switch to reading mode 切换到阅读模式 - + In reading mode, the note can not be edited and markdown note can be redered. 在阅读模式下,不能编辑笔记。Markdown笔记会在阅读模式下进行渲染。 diff --git a/i18n/wiznote_zh_TW.ts b/i18n/wiznote_zh_TW.ts index da159f77f..1b29eb012 100644 --- a/i18n/wiznote_zh_TW.ts +++ b/i18n/wiznote_zh_TW.ts @@ -889,7 +889,7 @@ Reason: %3 - + Can not open database 無法開啟資料庫 @@ -1081,13 +1081,13 @@ Reason: %3 復原已刪除筆記... - + Syncing - + WizNote is synchronizing notes, please wait for the synchronization to complete before the operation. @@ -1173,35 +1173,35 @@ Reason: %3 - + Add to Shortcuts 添加到捷徑 - + Unknown size 未知大小 - + More than 100MB 大于100MB - - - - + + + + Move notes to %1 移動筆記到 %1 - - - - - - + + + + + + Copy notes to %1 複製筆記到 %1 @@ -1297,25 +1297,25 @@ Reason: %3 - + Cut 剪下 - - + + Copy 複製 - + Paste 貼上 - + Use "Google" search 使用「Google」搜尋 @@ -1510,22 +1510,22 @@ Reason: %3 雅痞-簡 - + Use "Baidu" search 使用「百度」搜尋 - + Paste plain text - + Remove link - + Unselect @@ -1535,8 +1535,8 @@ Reason: %3 插入連結 - - + + Unknown @@ -1575,18 +1575,18 @@ Reason: %3 - - + + You have %1 unread notes 您有 %1 條未讀筆記 - + Your enterprise services has expired 您的企業服務已到期 - + Your group is in the abnormal state 您的群組處於異常狀態 @@ -1607,43 +1607,43 @@ Reason: %3 - + Yesterday 昨天 - + The day before yesterday 前天 - + Just now 剛才 - + 1 minute ago 1 分鐘前 - + %1 minutes ago %1 分鐘前 - + 1 hour ago 1 小時前 - + %1 hours ago %1 小時前 @@ -1765,38 +1765,38 @@ Reason: %3 %1 字節 - + Note History 筆記版本歷史 - + Attachment History 附件版本歷史 - + Download Note %1 ... 下載筆記 %1 ... - - + + Downloading 正在下載 - + Download Attachment %1 ... 下載附件 %1 ... - + Your {p} business service has expired. - + Group notes count limit exceeded! 群組筆記數目超出限制! @@ -1934,146 +1934,146 @@ Reason: %3 下載附件失敗! - + Can't upload list! 上傳數據失敗! - + Upload note [%2] %1 上傳筆記 [%2] %1 - + Cannot upload note data: %1 上傳筆記數據失敗: %1 - + Can't upload object, error code : %1 上傳數據失敗,錯誤代碼 : %1 - + Team service of ' %1 ' has expired, temporarily unable to sync the new and edited notes, please renew on time. %1 的團隊服務已到期,暫時無法上傳新創建或修改的筆記,請及時付費哦~ - - - - + + + + User service of has expired, please upgrade to VIP. - - - - + + + + VIP service of has expired, please renew to VIP. - + New Message 新訊息 - + Sync group users 同步群組用戶 - + ----------Sync start---------- ----------同步開始---------- - + ----------sync private notes---------- ----------同步個人筆記---------- - - + + Cannot sync! 同步失敗! - + ----------sync groups---------- ----------同步群組---------- - + ----------Sync group: %1---------- ----------同步群組: %1---------- - - + + Cannot open group: %1 打開群組: %1 失敗 - + Sync group %1 done 群組 %1 同步完成 - - + + Cannot sync group %1 群組 %1 同步失敗 - + ----------Downloading notes---------- ----------下載筆記內容---------- - + ----------Sync done---------- ----------同步完成---------- - + Connecting to server 連接伺服器 - + Signing in 登錄 - + Get Biz info 獲取企業群組資訊 - + Get groups info 獲取群組資訊 - + Can not get groups 獲取群組資訊失敗 - + Downloading settings 下載設置 - + Downloading messages 下載訊息 - + Upload modified messages 上傳訊息 @@ -2194,54 +2194,54 @@ Reason: %3 - + Empty Note - + Markdown Note - + Markdown Note.md - - + + Handwriting Note - - + + Outline Note - + You can use this template after upgrading to VIP or buy it. 您需要升级 VIP 后才可以使用该模板。 - + Cancel 取消 - + Purchase 購買 - + Upgrade to VIP 现在升级 @@ -2312,8 +2312,8 @@ Reason: %3 - - + + No change, skip 未改動,跳過 @@ -2363,7 +2363,7 @@ Reason: %3 完成群組: %1 - + @@ -2392,7 +2392,7 @@ Reason: %3 筆記列表中包含加密筆記,是否繼續執行操作? - + [ Top ] [ 置顶 ] @@ -2408,7 +2408,7 @@ Reason: %3 - + @@ -2428,24 +2428,24 @@ Reason: %3 - + Saving comments... - + Please enter the password of team cert: %1 Password hint: %2 - + Please enter the password of cert: Password hint: %1 - + Cert Password @@ -2480,38 +2480,38 @@ Password hint: %1 - + Note has not been downloaded - - + + Failed to get note data - + Failed to read note data - + Note attachment %1 has not been downloaded - + Cannot combine html because html contains frame set - + Cannot combine html - + Cannot save note html @@ -2569,7 +2569,7 @@ Password hint: %1 - <span style="font-size:10px">Copyright 2011-2019 Beijing Wozhi Technology Co., Ltd. All rights reserved.</span> + <span style="font-size:10px">Copyright 2011-2020 Beijing Wozhi Technology Co. Ltd. All rights reserved.</span> @@ -2724,365 +2724,365 @@ Password hint: %1 WizCategoryView - - - - - - - - + + + + + + + + Info 提示 - - - - - + + + + + Folder '%1' already exists, combine these folders? 資料夾 '%1' 已存在,是否合併? - + Add to Shortcuts 添加到捷徑 - + Add custom search 加入自訂搜尋 - + Edit custom search 編輯 - + Remove custom search 刪除 - + Select one or more files to open 選擇檔案 - + New folder 新增資料夾 - - - + + + Please input folder name: 請輸入資料夾名稱: - + Invalid folder name - - + + Folder has already exists - + New tag 新增標籤 - - + + Please input tag name: 請輸入標籤名稱: - + Tag has already exists - + New group folder 新增群組資料夾 - + Move folder 移動資料夾 - - + + Moving note %1 ... 移動筆記 %1 ... - - + + Move notes from %1 to %2 從 %1 移動到 %2 - + Copy folder 複製資料夾 - + The default folder can not be renamed. - + Rename folder 重新命名資料夾 - + Please input new folder name: 請輸入新的資料夾名稱: - + Rename tag 重新命名標籤 - + Rename group folder 重新命名群組資料夾 - + Delete Folder 刪除資料夾 - - - + + + Cancel 取消 - - - + + + OK 確定 - + Do you really want to delete all notes inside folder: %1 ? (All notes will deleted in local and removed to trash from cloud server) 確認刪除 %1 下的所有筆記 ? (筆記會在本地刪除並存入伺服器的回收站中) - + Delete tag 刪除標籤 - + Do you really want to delete tag: %1 ? (include child tags if any) 確定要刪除標籤 %1 嗎?(如果存在子標籤也將被刪除) - + Delete group folder 刪除群組資料夾 - + Do you really want to delete folder: %1? (All notes will deleted in local and removed to trash from cloud server) 確認刪除資料夾 %1 ? (筆記會在本地刪除並存入伺服器的回收站中) - + Recent meesages 最近訊息 - + All Notes 全部筆記 - + No tag notes 無標籤筆記 - + Your enterprise services has expired, could not manage members. Please purchase services or apply for an extension. 您的企業服務已到期,將無法進行成員管理。請購買服務或申請延期。 - + Create Team for Free - - + + View group info 群組資訊 - - + + Manage group 管理群組資訊 - + Storage Limit Info 容量限制資訊 - + Traffic Limit Info 流量限制資訊 - + Note Count Limit Info 筆記數目限制資訊 - + Group notes count limit exceeded! 群組筆記數目超出限制! - + View team info 團隊資訊 - + Manage team 管理團隊資訊 - + loading... 正在匯入... - + %1 files to import. 導入 %1 檔案 - + Untitled 無標題 - + Create Team for Free... - + Search by Date Created 透過建立日期 - + Search by Date Modified 透過修改日期 - + Search by Date Accessed 透過存取日期 - + Created since Today 今日 - + Created since Yesterday - + Created since the day before yesterday - + Modified since Yesterday - + Modified since the day before yesterday - + Accessed since Yesterday - + Accessed since the day before yesterday - + Created since one week 一週內 - + Created since one month 一月內 - + Modified since Today 今日 - + Modified since one week 一週內 - + Modified since one month 一月內 - + Accessed since Today 今日 - + Accessed since one week 一週內 - + Accessed since one month 一月內 - + Moving folder... @@ -3280,7 +3280,7 @@ Password hint: %1 - + Info 提示 @@ -3291,67 +3291,67 @@ Password hint: %1 未發現加密憑證,請從 Windows 客戶端建立加密憑證。 - + Downloading cert... - + My Notes 我的筆記 - + My Journals 我的日記 - + My Contacts 我的聯絡人 - + My Events 我的事件 - + My Sticky Notes 我的自黏便籤 - + My Emails 我的郵件 - + My Drafts 我的草稿 - + My Tasks 我的任務 - + Inbox 收集箱 - + Completed 已完成 - + Invalid password. - + password error! 密碼錯誤! @@ -3394,18 +3394,18 @@ Password hint: %1 推薦模板 - - + + Info 提示 - + extract ziw file failed! 提取 Ziw 檔案失敗! - + You have unfinished transation, continue to process it? 您有未完成的購買記錄,繼續處理? @@ -3413,28 +3413,28 @@ Password hint: %1 WizDocumentListView - + Open in new Window 在新視窗中開啟 - + Move notes 移動筆記 - + Copy documents 複製筆記 - + No search results... Try to change another keyword or advanced searching - + Nothing in here Go to create a note @@ -3493,47 +3493,47 @@ Go to create a note WizDocumentView - + Encrypted group password - + Personal notes certificate password - + You have occupied this note by clicking checklist ! Switch to other notes to free this note. 您點擊了閱讀狀態的清單項,目前筆記正被您佔用!如需解除,請切換到其他筆記。 - + WizNote 為知筆記 - + Invalid password. - + %1 is currently editing this note. Note has been locked. 目前筆記正在被 %1 編輯,筆記已處於鎖定狀態。 - + %1 is currently editing this note. 目前筆記正在被 %1 編輯。 - + The current network in poor condition, you are <b> offline editing mode </b>. 目前網路狀況不佳,您正處於 <b> 離線編輯模式 </b>。 - + New version on server avalible. <a href='%1'>Click to download new version.<a> 伺服器上有新版本 <a href='%1'>點擊下載新版本<a> @@ -3559,65 +3559,65 @@ Go to create a note WizDocumentWebView - - - + + + Info 提示 - + Can not add a 0 bit size file as attachment! File name : ' %1 ' 不能添加0字節的文件作為附件!文件名:' %1 ' - + Can not add a bundle file as attachment! File name : ' %1 ' - + Do not support insert comment into markdown note. 贊不支持插入評論到Markdown筆記中。 - + Failed to save note. - - + + Error - + Can't copy style files - + Image File 圖片檔案 - + Images (*.png *.bmp *.gif *.jpg) 圖片 (*.png *.bmp *.gif *.jpg) - + PDF Files (*.pdf) PDF 檔案 (*.pdf) - + Html Files (*.html) - + Markdown Files (*.md) @@ -3625,12 +3625,12 @@ Go to create a note WizDocumentWebViewLoaderThread - + Error - + Can't view note: (Can't unzip note data) @@ -3722,174 +3722,174 @@ Go to create a note WizEditorToolBar - + Font Panel 字體面板 - + Format Painter - + Remove Format 清除樣式 - + ForeColor 字型顏色 - + BackColor 背景顏色 - + Bold %1B 粗體 %1B - + Italic %1I 斜體 %1I - + Extra 更多工具 - + Underline %1U 底線 %1U - + Strike Through %1%2K 刪除線 %1%2K - + Justify 段落方向 - + Justify Left 靠左對齊 - + Justify Center 置中 - + Justify Right 靠右對齊 - + UnorderedList %1%2U 無序列表 %1%2U - + OrderedList %1%2O 有序列表 %1%2O - - + + Insert Table 插入表格 - + Insert Horizontal %1%2H 插入水平線 %1%2H - + Start Markup - + Insert Handwriting - + Insert Checklist %1O 插入清單 %1O - + Insert Link %1K 插入鏈接 %1K - + Insert Image %1%2I 插入圖片 %1%2I - + Insert Date %1%2D 插入日期 %1%2D - + Receive mobile image 手機傳圖 - + Find & Replace %1F 尋找 & 取代 %1F - + Screen shot 螢幕擷圖 - + Insert code %1%2C 插入代碼 %1%2C - + Back to Text Editor - - + + show more colors... 顯示更多顏色... - + More tool items 更多工具 - + Use to show or hide extra tool items. 可以顯示或收起更多編輯工具 - + Save as... 另存為... - + Image Files (*.%1) 圖片檔案 (*.%1) @@ -4328,15 +4328,15 @@ Go to create a note - - + + Info 提示 - + There is no server address, please input it. 沒找到伺服器位址,請手動輸入伺服器位址。 @@ -4357,7 +4357,7 @@ Go to create a note - + No account yet, 還沒有帳號, @@ -4412,12 +4412,12 @@ Go to create a note 移除用戶會刪除該用戶已下載的筆記數據,確定移除用戶 %1 ? - + The user can't sigin in to the server, it had been signed in to other servers. 該使用者在其他伺服器上登錄過,不能在此伺服器上登錄。 - + Already got account, 已有帳號, @@ -4426,179 +4426,179 @@ Go to create a note WizMainWindow - + WizNote 為知筆記 - - - - - - - - - - - + + + + + + + + + + + Info 提示 - + Connection is not available, please check your network connection. 網路連接不可用,請檢查網路連接。 - + Username / password error. Please login again. 用戶名 / 密碼錯誤,請重新登錄。 - + Can't find note %1 , may be it has been deleted. 找不到筆記 %1,該篇筆記可能已被刪除。 - + Downloading template... - + Error - + Can't download template from server. Please try again later. - + Your permission is insufficient, super member or group administrators can share notes. 您的權限不足,超級成員或群組管理員才可分享筆記。 - + You are using the free version of the service, upgrade now, you can share notes. 您使用的是免費版服務,現在升級,即可分享筆記! - + Can not share encrpyted notes. 加密筆記不能建立公開連結。 - + Upgrading to VIP 升級 VIP - + Only VIP user can create link, please retry after upgrading to VIP and syncing to server. 僅 VIP 使用者能建立連結,請升級 VIP 並同步後重試! - + Cancel 取消 - + Upgrade now 立即升級 - + Account settings 帳號設定 - + Search 搜尋 - - + + New Note 新增筆記 - + Unread documents 未讀筆記 - + Mark all documents read 將所有未讀筆記標記為已讀 - - + + Sync failed - + Bad network connection, can not sync now. Please try again later. (code: %1) - + There is something wrong with sync service. Please try again later. (code: %1) - + Mark all as readed 標記為已讀 - + Mark all documents as readed. 將所有未讀筆記標記為已讀 - + Searching... - + Can't find the specified attachment, may be it has been deleted. 找不到指定附件,該附件可能已被刪除。 - + Show/Hide MainWindow 顯示/隱藏主視窗 - + Hide TrayIcon 隱藏系統匣圖示 - + Logout 登出 - + Exit 退出 - + Downloading attachment file %1 ... 下載附件 %1 ... - + Downloading 正在下載 @@ -4858,14 +4858,14 @@ Asian characters: %5 WizOEMDownloader - + Can not find server %1 找不到伺服器 %1 - - - + + + Licence not found : %1 無法取得 Licence : %1 @@ -5375,7 +5375,7 @@ Asian characters: %5 退出 - + Tips mouse dragging screenshots; area right in the screenshots saved; screenshots area right outside cancellation; ESC to exit. @@ -5384,7 +5384,7 @@ Asian characters: %5 選取區外右鍵取消選取;ECS 鍵退出擷圖。 - + Coordinate information x: %1 y: %2 w: %3 h: %4 @@ -5537,7 +5537,7 @@ w: %3 h: %4 標籤 - + Click here to add tags 點此加入標籤 @@ -5545,47 +5545,47 @@ w: %3 h: %4 WizTagItem - + Rename... 重新命名... - + Remove 移除 - + Delete 刪除 - + Rename tag 重新命名標籤 - + Please input tag name: 請輸入標籤名稱: - + Delete tag 刪除標籤 - + Cancel 取消 - + OK 確定 - + Do you really want to delete tag: %1 ? (include child tags if any) 確定要刪除標籤 %1 嗎?(如果存在子標籤也將被刪除) @@ -5770,12 +5770,12 @@ w: %3 h: %4 瀏覽並添加評論 %1C - + Switch to reading mode 切換到閱讀模式 - + In reading mode, the note can not be edited and markdown note can be redered. 在閱讀模式下,不能編輯筆記。Markdown筆記會在閱讀模式下進行渲染 diff --git a/mac-package.sh b/mac-package.sh index 62d86d2ee..e8a7306e6 100755 --- a/mac-package.sh +++ b/mac-package.sh @@ -12,8 +12,16 @@ package_output_path="$HOME" QTDIR="/Users/weishijun/Qt5.12.8/5.12.8/clang_64" +# prepare language files +$QTDIR/bin/lrelease ./i18n/wiznote_zh_CN.ts ./share/locales/wiznote_zh_CN.qm +$QTDIR/bin/lrelease ./i18n/wiznote_zh_TW.ts ./share/locales/wiznote_zh_TW.qm +rm ./share/locales/wiznote_zh_CN.qm +rm ./share/locales/wiznote_zh_TW.qm +mv ./i18n/wiznote_zh_CN.qm ./share/locales/wiznote_zh_CN.qm +mv ./i18n/wiznote_zh_TW.qm ./share/locales/wiznote_zh_TW.qm + mkdir ../WizQTClient-Release-QT5 -#rm -rf ../WizQTClient-Release-QT5/* && \ +rm -rf ../WizQTClient-Release-QT5/* cd ../WizQTClient-Release-QT5 $QTDIR/bin/qmake ../WizQTClient/WizNote.pro -spec macx-clang CONFIG+=x86_64 CONFIG+=qtquickcompiler && make -f ./Makefile qmake_all cd lib diff --git a/share/locales/wiznote_zh_CN.qm b/share/locales/wiznote_zh_CN.qm new file mode 100644 index 0000000000000000000000000000000000000000..3c5e99d5e0d718a6aff8d577ef1e37f375850f07 GIT binary patch literal 83607 zcmdSC2Vj)N);B(zE!n;ygiu6SkP>=FMMUW}8%3>t&VPI~jVxlvhs`W4Qbzs(iRY< z_iL1Sj13+k$_p)M)6LjTBSm@VV~mX-#0;j6j7`3UvEnNko3@uRd}R4Um?856#?EVC zY~nY(G#Kt-Y~gc^`PYc@!e+)Q`ZH!|$JpY_7%MuTnJ&GKF_(dvw)H@HD>L2J$XNR# zW_rTJ*r{o}G}yZ`(|&yJa!`~nH!{=fJsIn|nwbu+XNJ?pGSj!9)oHIW)AzSB_KTUB zO`z>}dr|IZtmj*zod2{agI-Zqo+`@5*`i$awJ0y{C(5gii1L=NM7gWKDDPh)%75G^ z%9js`^6inL{P0szes_$Q2E!OpS}daU2AO&AbjJEFKzR$wHOxHY7-N52!pvphg`xXJ z`O&+~9No;=kGq+-X zF!nh<-}XCWS1%Xkq3@Xa_Rkob3@57usm?e8YW3wM%=~G59gKZE?r~ZHZI!oVTW~|xD(vM^A z=T$LZ;YK;!#e&-{m)=M7PM!E?pdrCN;c(PmNOjd!Y~Ep zQIuhpGa?h^no!1EZOnjc5 zw*ucE+RRIX@oRS8)A)XZj}@PXbvV_|ipz$f9K?#(Vckq^V)NW+@6un`yqW0V&lB0a z3va-(-NEMHv7E7UHnK(SvKZ@hH!FPw?LQJ_4G+J=SfH;cH{02=rLQseNLamK2iVOO5IiLqz9 zufV z4(!>tCZK;&_T1@bfZvv}=O0Bshdj?-zV}ncdf&hfZV5x4ENAaNkNNrp|Nr_HW4*et z!^U=u{p(it)y4So+f4S|yW<$Ut{?kx(?n+QZf8Hfc^>HB-{3y`dB$e7F|==9hxUFm zbTWfp!&Vx+%*WWP1%}gBVq720GW3`{oUv!#FbrCN`F;J6VbI3Y7_+YyW$D+3VOH?r zM+mN4wezYBG@L&5LWM`3K)(1a9E*2Z+_MFMs z^qsskbWJmqJa-HD)@mrr16>~8ZwNQ$V1Bz8VqXC7oihv#50_wl9yB!G_cY}DEW?V} zo8X(@4HvD#JPh+1u6ANS`nJMw^}+~aUtVR{@d)@lt=Mq;@dB*3R}A-!0Ke95H{AE| z3dSya#_(_h=HKPH{=*zz8b%uvBU6+?MKGe-EMfL z+qH~s%P_p&u7t7un+$Ip`43|c>@&QRw*me8$ngH>7_ZG}_{a+UxxX8}{bUeh>GKWW z<=xBJKRz`4V7`g5F^ke{V=!L>eok|Y4ltILndTe^d3F9j(mMb2B4b-#O*{3YOBwsr znAZOxw0qg*X@mdKzzp5qN*i*;Q{aa_X+y8a{xtN4v|%pL)%|4J>D7-x{=J!Y)*nXj z)#|j|n?GX)=1nVbZ(*!(PnzHHHDlpvX|oSxFjl!Kt#r~Gn4d0bwTrG|Z1eWC#y>u%XZJIMb57b5 zwBC%5rtMoZ5prNu+JPsJF_!&8+B^I4{keH*?>9b(^?p;@hv_C}aP&y~_<|c4i@clm zX~A8Lm3B(|^u8gCWj>kqz2i;BMobaqompu=bO)bY|6SS-!!VEi_NN`&ih1eqa@q-d zA!G0SYP4K_l(Fw0H@dC^ozJ_|=pp!plZ|b^zml=tJ&f)8)-krc%-H_T`!O#U89P6V z@tm?olrPm7yA1k}u|3^*X*g|*vCB0Fz@Kj!2OPpYK5)Kq!0#Oyd+i(JfD;>-!TO4E zcz5(;&8NnZzdXy>7iq?EtIveKaG`Nh^;3{1hm6zj!uWfAW6aI{fEh9hjJfw<{yy1d zTsX?d*gw;a3(q-$^=mUOJPi76|5TLMFE%b30D4cn$`~wMz}SYZ#^7AEdtIq9bl_CR z&Ten4+IC*(^HnrIX~r!c(DBzC)FN!7d`+!UTl1L*S*l60>-^-PJkYLjPK6s0(#zOJVbK* zw!4gnbJ35p3XESi)L^}QY5aOTpU-*P_}!d~nW5|B#-qjHqYv8{j}7j_ zSji3(`|3-`=S8Np^TB85SM$+zw2yrebNqm z`Maqd!@SK~XKMcl){on0>Okvk*oUT0H$skj51LM?#Qe2=(9~tp&5XS}$<)96PsYsK zOoJZ(2=v`!8o9R=mMC9*PLyvw#!G|Y4N;o=n6^*r z$=KF)rt6mxf1hT${%>os|D7Sqcl@Tm?byiJSBFe@FF(3F?Mm2>AC(F;q(2beZ5~~tn50| zKaDnwd%WqzG%qt`-)eesS#Rh&UzlF`k>EZvz19qQW~ee9?2Gl+^;6TqtI#iRP?X=D zV*27tGc&Z=WcvDy=NKDUV*2L$wv3JKg7Pzz(@ozx_CQzv)AZdR;3HRq>BMZ%yQjx= z;?ptMZ$B|Le{v1v?E+DL)y{0NVP4MNVm93k{_c63*}P*5%HPcPH9ukBU21kTt-w4t znw=kEeje*&&K!vEpPp^b?vMG-A7t)7qZayEwYk6lL6if`gF1&8%Q2cqYzLkCrHk^T zapn;_u+G|iYaa2%UeMWUKBM>o$hA@CQ7>eH4u{QSia_TfE6tO)-GOy{wR!rj2FT}~ zX5WzW!SAcg`JGllFTT$_>#Oe>vj)v&4}HoEp3BYUcLDC$W^=_lJLICnym*F>u}7aY zFPVe!zj>ZHGUGhxQ6_VB)>DjqcDK3y>ZgJKKjx)lA&-i#G%x+n<;;-&komIPCPN>4 z*L=mK=b6Dc*Svo6^;kE>=8gYa2EOcW-t;u~=jR5RxAfo5*xnW9Ys)T2dzYE7BmHai zv!Z-0-MpjUEvR2;-Z8Kg`+c@~rxop;d(3>(cQ-&D8O%4&*o=MqS@X?#W3ca!G2itC zjpu;*?ljEjgc|eiM?lZ%<3w3E%Di{NACN2a&2P22m$7^E&2JZiPmb1`-=2-~v-3rH z^g&VnR?17mX>XW6o?gya!2d(7XKVSMkdGk<%@kI+*ligL-b7Dq4e->08h z+^@9-|IM&?UILx|8L)KR3;BD=RhBN_Ku*79vh?Z?e!SLV$+@$JvA?BR#y^Al?Y5(Q zANt&4%hY=_VHe$InZE1?W^mnPDHt&e^FP2+a6fF;YoD_CI}d|>^Q7gx3x2}Bd4r{R z$D7!92U-?%0)0-u!xFqQ4E^hAOQ=g1$m?E~ve;C{es^0c+bqET|C6O^Gx%Z5r*bp*D>A^(D~^cr>02zTCV;-4 zCoHR)>VR*c<)YqSGbr+++|*f=TN*8wRY9J1n`LQw`Ul3UU$AWL3qITWtY!Nh=--Jw zmTP|=k9qmQa=qnq?4J)=uK(LDjP-X|uK(#Y?4Mbd8*^ijuNy2kO~Sq$$+g^mY%KKU z3oLhC<$%3)gXMvS6PS;8Esq^R{UVFyiE@nBxzFnBNJ_>8E7ogZ^F8dw+2ud>iA^2OJ#83>|u<54sfazYI%1>#YaSub0#3oCiCg z{p0ELFPwmN+%-Ma6Z=cw_tUH1dkyQOgD7t_it^yF^jLo*_QPK34IeCkUQw97svPwO z4oP2q3f9;5HtB0m?FYT6SNg@TuYnvcPrqXS)zAaRrf>Wl^ZHnI`j(;|(0h8MUw7Xz z(Czy4TW)|na2-s)b1eAk?aK7~+K$G0yCVI;4B$O$bNYi%Lf-gqPJikF^n2pz>3eP+ z!wi-y)AzjKhJAfS`pfTk!aj6Q`pbWUZ!dTz{naj882iSTzJIlou|NB!f3#peV-}YF z|*hOot zRu}qx!78hLcM0U;?a zUkSN5@Mqhd8@fThEVSLX2;)gRZhP>V7nz}BjqTxM81K_|+Y?>EhrthR&%S{1P5Z+3 z<|ml%&X3sM+75cXe~0az-Dd1Z>ug^w9t*o_neCgitk8d+v;8mv>pOeC?P$lf*q?5+ z{dNL)PU&L%yKH(LNyeQO0~z>_gH)&lBD4XYOr)-95@ax*YYMf7?E8EBvIr?z2z%`xva(YwhPf z3i|wzXP-9>{4)Jbd&%CukZZf_q1!NyWk>8~UoOBtSYa=}>@4h8ciGEtY!AKRO?&wr z;QKyr*~90d{)z$iaOsPn|5AJPQ;;LU0(+PeP?Mru!fSo(lzWnz$ zVGqt1<-UHrG-UbgD*|X|(h&Q)cMMoZGwhe$w;${9H~W{I^z_It^o7gppInXke(Oj3XJ7pa|LFw#7n`1fol|B1`h*GV=Lh>Y z>oLD`Hrku7c!RO>4;_Y6eX!HQ4g>ri2Fn)?BT82Pu){?3omkxU};O9Bh9QAj0ggku7(Xjh<$h~66@_g{e*qa?If;}J?9gdZK zZh$^9%&~GG=+a@hV{J!_W7(6Ab<>}Mzw0c=1}n;c?s06~j(IzB!m(-3`{0K&9M^1m z2=ZsPW5@4@F#o?fZvGJa;@MjrchLTS#yu#%hMZdDxbMohLB}nQ2R3zueA?o8@)p$3 zU*g!i0P=6{8IBk3{}}6`((&RxeD4|Oc=__z;4cb0Ug?R?kKE;W_aX3E?zN8h9y%ZU z=N4WX(n}m4Wv|A*yVUW~O4RH4k>lg(lcA5ab$qe*N63*)j$^+rfE;_%$@&e4-{>}Q3}4(2|vBkpvba^w#1SCO;Z{jV{Dw}Z3Wf6$-9!=0!3@clQJJA41)hupuzne&w! z`%8Q0fK6i=TY8Uk(6{}7_lR@w0};rNx1EzR9)LdC(OEEi1NeN8b6y+lM}z`B>L;&+{{5>nc7YxGNrkg! zALy9pan@daEA*dZ&bqXxV6U%p)|1_~e5bSFfg0@R#VEmVvoCcn-{)h7tT&yjzd6AS z=796E?+!CI@_Jqx(!Y0Z4nQuIw|8#!tM(57y_k#ZWoi`sWf*-USFAZruoVUfmZ@oWo-utADu|?CJ z_glBZ&%DvO=a(bUSNDqYV1sk-r;yW;OPnvRgS;Cs(D~|zJz@7aoCnSt1i#UJ&Ue2V z4}Ih-=QqPquKn71Hhq13d*W~yGB!SAm0>5x0? z7q}cxLS8>z`y;O%U!h?{={RhHXZP}-<7U*T|xiTj=Hk1!+uhFn<$UZaJB#L zXU2}d;Oa6LWy2+|9)nzvzpuD@-VZyWLz%08r3w4f`K~j5e-6KY$u+8QCo{Nza*eut z4d&?+*QmYYQ0{d3>Kd_6_2#7^ZI&zVLh#RscCMM1Vc+vz?wYe6@_1>Ht2hY!v)^&e zyMG||@3UROyWfOA!0sx26YJhP%vJjDPXYIZD|G#1=x4Dj{4RaJ&QgOb=YZ?Nm#d*iPj{`Ji*aWUbgg@;3*_f$*X3Us zv3}o1`4h_9TDp{ofp1zz1|M;<&h4q59XA^&osgHVF&QTiE7t3 zZ5O~_d)W2uWnCD%dzb5nBjB?!SGxZ5;#kOmBd*^gX#c5K+~&p58!jB?whqVdm!5Dt z51}9Je{*|gV}1(OigH6xl&|08_FQCufBOe_=EPx;V}JA90BmG5+Sei8F|-S6%$pMwt9-|X)3&RXbkL*2bDssVpwp}Yv?MEBXX0qEJY z+~a;izaJg#o*MZCe$ia_jJMW79=z+G)%`QrgZIvyK(~X^jpYFL%a6w=v?&Y>$Ba_@4o>*?Qz!;zIoH#%d=N7)^v^gilX(9 zhmW{7HSdC7;(7Nqm;3|%Kd<}t*_ijAm%4Y;eirq*AAIF9X6T&nesm|+se7z@&%Ucc zkA?21e?A0%|7`c(Ue{tij=T4*@j$N{<9@y8i}34x?0&ro<6P3=v-s!{hn=f-qC%Q=ejv)cadF`!D~D_t^plg<2`qNf$?2&x99FFH-J71 zJojRMHe_Ald2IO2(2suhJav8>oLBfgd&UC)ZJj*NpGxzw%JcG=BRH3x?AcH2sl#=i z*Zr@7Pfqu|wYqN%RtEOn>?TO!}!~~JpW$i#(4kqd^Zv6z`DhAq{AlIv(29G zv-`lmX7T*E2mLFo^Zb6|JbZq|b3FSloOccm@9Ut3`FA6W45G|>z3Poy*LcxiV@^B<%AlNeqmU&qY>&phRY8GMT_(VSk zSrtBupUYX8l}SG@#<%6HkJ6Txw^ifK={vAGQts_LFj!TMf6K#V_;+!2d7oB#(3#C- z6WAo?r4gulQi>Mit+bgrVGM+ggRfqzY)y%X+dQ%v(3C z>DPiA^Fu3dS+SRSy`A~@L-Et8N*_-{9|P6ZmElmSw>Iis9F9i3wG|<6c`RC2?d|UE zIn>)daRfkb7wC(N)~rzw*?}n7SR2Zz;WUkp81;LJ`ty&j*k9-jcoywyrBi)@t0GY2 z4V1@1=vQO3j`uAZK8e0LMO*Vcp{OI}lu%{0 z7W4eW`3<~sp{lZ_S79_-S);98ez?KGYtL5IHustx4mD^iFT2|R8LwQVs+``dC>$w` zYO4=t1GIm9j*S;C&uZG8e{u0++TXGP3gLPVQ2v_`ZHQDx1Epa|f=CqfSAH`<)5pPj zNDG}yLd91EGxUC^G@3BD&uxHQ&z}7-mO|1=8)eO=Q*Ubh6+tjaJRd~U1 z-{UGk*Pz@+@Azn>Hc(Ql1LhQ97foGujta;@KoeqtvKBx#-HUB7-a!sBu__R*Ox=pF zNe84Jdwpt<&|%C~ycIs0X%MrKKnv~g362BVX*51sbIoilDD8Lv&S?)v^$DIs8#TGXPpw>xD*0Q#WwnKn=@VoAzuy68dH9F$Kmowxk4V z6KNXZDy~u{?0W91;{`Vs3|{!}l7`S@3q1;0#@JG>oA@ix*^;_i?WSfY$fOQh0HxQh z4s0wd#gKv+lGoQ<+=PMpF~Cx#z09$t(IC{`K%~4TiXF&bTdEmc0+t&NZY82B0CxxQ8Ne6{n^unKN92VL}d>fRpo5z+xnbi!}nqRT$t6)aq9HpXT zY-Oc4H&hi2#kBKbS{d11uT*u7t!xN1)_C(G-omI>e=#lCQkSDtHjjle+NkM(Y1;&~ zVKTNB0<(hb5KT=d)r?Ik@9)3Fe^f!68Heyr3D?v{V>)dVx;HTe!Za>WvP6U38oYJe z!)(CvRZ2bUxInZLGdx~X*A)6%MOn+ZP+2sl<$7zL!PkklSOuefTzHvxGU?wsl)d2U zJik)YG!C1Trd?-2?#c++Eu_6Ebu-7sNS&f-gPuPrhCN3EnQ_r0{)5z)yiXQI=MGul zGY&mI5TOm$TOPt+{l2+FA6LE|^e<$g>XOKUs}$IFGHkRu6!De@Y6HPQjg}B@pFPh@ zpww`)K>^PMc<)+oT{UTh-bzefH%-UA39!zs9h<)QeYO-)g-p`R6l^^butm95*54b7 z#iB8932Zno>0=uFCjY^zbqWp(aFm3&9he}%tW>Mu#^M*0n%SZz-`>0vBPFrM>RMP> z8vGeP*Q!4YtqbZ|1w>I5t5h(w1qPyfNwg{mYuj5AeAE>DHu}%q-%<`9}-9+e!=Cud7Hx*fSX+>~5}kiMdRLl=qJ`k0f-bB%=ed zVejd)StfC~Y|!|h4OOeyRD-BG0Ai&;#Cub5`a(}qZ`vpKrlz*BGE}2wc!3~&`HCb2 zwAP4S6mr)F%5}iAX_+S2EnY&Tu!M|;uUN%Q(Xee6@m=0W#dEkym(02{lA1uhP|o$4 zH;eZ}@>q}&kkFGXX+UwqLT`QAWjNJ@I8~5(1cbEF;nz+Qlq7Cc+^WTa!`VDZ{v6>)9SGaj~LIre{Vp1v%$Ha+7j zD}G^Vd4bhl(zcuC8Z2eAII_B|}QN7)bq&r_GNqRI)2`<>V+|g55 ztxbEI9~_G{L@RZz2@`E%N(Vs! zu_I|k(#A?`d^zQ|1shqPmD&DZX$w){+5--w;RDNy!M=wrG6Nb#Dm0;w3C;3eNoYE$ z(9DWJt7`$1DfsL9xVzOfK3c8SJe_l01tW<$@-NGNB&CY^T7W__DAqh66CD-^^h+H^i7mo63X2U82DF99ZkiwF*im<8ey(&Wq{%^f0!8tmjdEaKxoI(0xT&h z%AqbQ01g=dB2`npi(DPEnIld;@NXZ@+-9qgcyllvJ^Sd+D<5J44=OWB61_?=qE5G| z%S}(Mj40hsfP=MA3wSMDrtdZ4A`;NSg9W?jX9YtCxHpCGACA~q75DAxvqDzM>y4wD zJ5@YgemJz7?EVDx@sx=L1$hOdyyGiEB}-sKmd66H@yg%_4e4y;bfBYj!K8bRW6i&K zWh6ncw3!GeNNFi~wNi-|d&InKnQ$5_=-W=Ls;-3_SM4{}OtE#@vU+}cqJY^27_BUA zZL&QR$mo=8PQH0)>gUMy%lpz477Q-$Uo^PcNk-1b57x~f9q8ICnx0YV)DtCq7_3-k z0mwf5q}Urog{ZeOS`w)2?=6vh2H0`KWsTlyNr6gIq!W%z9XM3R(yhpu<<}k~S~q@> zAIh(om#0u8VTnIqvo#y2(nnQosEq&M7n| za(vL3xw5SxWk%C+|3O_89pWgk#|gUW<1i&CZYJH6L3jD#;EJ;5l3o3m#ecQ}}k*WpMjr;Ya#ZwZkgHl!*t_s(BLrY6= z)Ez2KS{yh$w^pQY-wvT3*UQqTXgySNt)WU^)20m7j7qLGOjT=G%38x!wT7pxH9}Qu zM9NwtRkcQHYXzt0Uy~rYGNyo;8)EQ$W9!kCcJ|=(@&RyptDUhDAc-e?JK`t`E^no4z#f>JQJ==y(VM;RTFUloffS8@IXBVt8`?b?Tu7dg<7hs zgV#hM1j;B)x{(9+ZJRFMpLhGl$5iIAb4nN+q#yqT1KM){J2};pM2}tar|YST8MLF& zrd&3toYD5I^r+iZ-=w@z-Wjx0c(Fm$P~b_p23s@=rvcwkp2k z`wuKIh7Ol^ZSIs{zVsJO%#t>JAP>|BD#L+bWvIW>q_8-2OdHd}KkGtDcP&%P$mK?w~ zLI)WdU{gV-f=&v6bs8*TY(d%p9;>g%vhR!k^S7Bw-8NL0l(%uw+6pcfw8-a8^u@y{ z+%mv;@S~33$TI(nga({){TZP$E!SE6KPA+5$+Zi@Z*mQ zsH-DP?fKQddu}+8u+_L`1R}IKRfKd8{}d2a18NYRR!ly7xmBUOeMSJYR0R&M(30F| zFN{02Y`kVeD5Uianfy;Ih#&Nbij5&1!EPlrIZ?Hq5hA~R3#zqs+r$2M6KGQkg?!K7@UW<*IgYCWw6hn)4_?l>~AF@ouFOVcx_#^ z!c=^1Uam3=7TTb6_9E-X%7VcODBYr_?61+x8P1mTf3IJ@a8}Yzfv%Jzl0r|`XD;7a zYmtv*lfXQ=fd~cXa(yx-@a#{wbtR=Y3D_+G7lr~=da(A2^rqduQS*;B9akuknHz{L z;m5}a%q)NP$iq?;#4xmmhhO21_TcC(+{Op7eSZe>`-3^?5q!t z;Z~^vIx-TF46M?2!%A)s-++bBDGj?NzneFO9J4OGcVl$h^EVt&AUwI@l327RT2||w z8-Na{8LOq7&GY!P6##2)I0D^&na)N?PQAp?8N?Td%XpBk-X7wf+Zz!(L)c*a$z|h| zCOo<1oUEEK!6YsA_A(^Gv%Q6qi%PGDZfcYc z+maC22|;0?Tn{F#u$MBIX+9k@y1Z}b%z|Cb&h$)8%HRQN<5(R6Cu&JSQd+V4qT}jnYjwgcoJ1x~jF6Man=(466T#4d zF-&nDT)*+%%AL3ypmx{x0I+9`r5=E-bGLm+Brx zXHYbyE`qjsk%^JgR=}XxPl5fXsuiN<8`j3)^+?H;|%p`3B8zp8^*YGqgd1&p~ zO5bcV5#0i3dbL(LwUghNM5;*MYwGpg$h*-4drqgMPqbZL2i zr7LZDWiOW5%t{0)LBuW9S_b-{83GgzQ@UBA2WO>-^n@MDGZW5=C>_YA*ta-H!bG|i z5SmHtPS?5V*Ns=@hvc{e#wkdadxAS-_{_=>;^w^EuHtueswIcIH(KT`fzdw7j`8pq z1#d+-QmeZRb3|LD7|QJlw~4A%YB%mj9Nl8OwNN2N;}CY5_O%{J_sqPx{IDpA2VFB` zp)#DuBd|_y@tM{S@WoH;tTXFk*gy2bED~eK6ej7EUl&5ihh7klW@Whvhlq$sa2U52 zI7C1McmKkDtryK_UHI=!T}wM(*j;JfnO}!Ub*~?$SBZATXzM$8{Z!S-l1Si5JF3@u z3n?s9Gn%YL!MQFGq(n@aMD~sap%UnMAdP$w#aUE$3O2tw^E_olrh-tZcDuKiyuSI$ zyhU`!NU51w5W+1gA-YKAbCnG$v{t@dzm_eIyM+{zp9(D1h@}aUM>PWF1NuL?K1;oe zA-XgyVyABSM&0mk(=7@L4^SXVIy50v7O1P#2{kg2GOkp|0HI%NFkAgT=*kGPS1Q{5 zg>qoMer@uHE49=8h1?siUzI#K>Z;s-qhFPR)ilfhMe!U&BTW%8y-CdD;c(ctrXZwOkA*r@Qvgr4kQ2?0wlW&o$kjuY zDfL9$kxfM4mJvV;(1UeKu!&H12}%zllL8Z{^K;WHze*Z)CgA8ur$h>2(}Q=<%Uduj z*mw4cBv`kfpYhVF*7cW|5|)xBmH4Du3H!4{)YR9rGReFW@kA6glF&r91PH@QiY_9x zs7k{$8AUm)m|G3=eFG9OxFrnGKZ<(}nXiE~!4QhGnq9h~re_B^>1G?@E)S?~O0<o`kZFBnYbd;$zQ2pCvuIuLfTr6w5L zXoI2)Q@E|O7y1iw#bpADlKcc~f zsZ`~ek}DT%Ot|ot z?x&-}aoX+FU1F0j)e(>~)V3S|j3F-Ad3Dd304#@5CIDy2z;Z~XF0`}6CcIt=ux=SP zMI?#6#6}cOfN{z&L}|^80D|Hj5+GbML}9pAq@qZOV8+18j)iuUzcc|%8Q839I!`Xu zCrgePmTv$B7|Q`s%}(f7y;gj=;=5q^x*4Uf=FMx4A4=x>al^F)QDi)NrY3$n2F43r z@R5U~`g=(tQ1XJBI`YCsy|_*hLr=(fgKh@JEL3xjh5~(QvCv7#U+B_IsY@IskCXeK z?v;fCR9Ea#SkCRQjfIzlyoD98I?A;+jVVE!H~Z-xi)N^al`OoHju4>B9ZJI{y3DS@ zq`5>w-X;YmlV5-@C;Nz8a&*yOgTYCykX2Qe6Fgmk%uqq%I+V^`M=QZ4L_fMXOvTxDR(fwPq+kbaC35mAm5gxh zwo=7}D%yF$X^+NNoK7`$H$d_@By0nAI(FltJ;1y_jeP#mtp;3n8Rh?`={W1pymQxF&4?~dzg9n% zfBdq~wi-%oTkcg+WHR9=aX}^`;x(6GNEANEV-%y2%Eta)er*Jlpx=6f+>`D_Ivx^e z5lYKKgwPIkoE>Z*bfgm$KI9s6EV zh54Hcqq=eZly*g7FjUgZwqji|_S&}+w34=kh(JbE8}}flQcEmJvBG8mA<6~kbqO0E z!Znh8;)M;-7JT9s5$LP*+BGXOfDTvbX06U~E~*z;E?BNqcg~8GRKml^bt+A7EIvm; zrfP?<&4MBxBL}vos;Tsrtt#IwVQZ>>^l&TWih_^;hAK`a;$+S}HTW7(sLWx2&U9f~cCf!9{vz9a#?Rm3PR#*~r zPnS?sQr?28*aiAMz<*X7H){`-{<(MW%qve&Ml&IXK z&G}!wW?hoGo&jLo8^AUeM4AUZg@r>REcuEgNH>Q>08L#$*K5b&LW4>SNpKzx=dY`# zxKO=FIswM|Ryzr}_lK!OEqR@d-wP&TPBnj&-Yc|~r2_wFWVt=LUMViIpBslWHCBS9~ zSZE=s;N0^0e$qT-0+I(Cw-B~$N;tqU>7FmU$yU&bt;(d@;%pFiH_LP{LAq1KWwqh3 zTvts6YCq3-o-rvR-BuK601@>(5lVHnFG8xW=Zm;5Z|Ua5kiMc&IH(`uXcd(cFpJ7M zm`w@ENGvHb$XR`(8V)B&#&jvekcKaMP&G26d;>`BUp{r=#q^0b8PY7tW>@iVNJ2x} zE@||zS|j0QB+0nR3}sj7@eRneL$S16 zBx@kGxvXK{LU%CN|2@g!ro$9lq$1^6vMOE&NnT6Jx_s|V(#wV9A=(OA-~~B@b&Xy< zYax5lu5z2$Lz%ZcP~Nxcc*68|pvEfbfCcJ7T|~J-rQIYm7wxKFOBa3O5=|jy4`6|l znF5lLEDqh4WM_@q0Mu|;7Gb1SKG)>iK!Iop+URKC&22yIuKoHji5R2x8@}Z-o zb|;kO5*6KlDz z6Sc;cBh%`IiG)$L(u=pUy!t{+Q4Kjsu|6a-StaAOxUEH&WGOVajv}Jy#n^L2+3 zmVtFHHbNwD)A5~(x+BW?b%A0iH zl5iC41yO_c;1VjR>Tr5~9wTySg@WR+;FfwhvmC3I;;i2~)K=pN;u zK?C3sv)qN5QLjh|{+BUgjZh9X=>agO+A0KTUbeIXcG6#QGwmg2W#{Ox^r2ir6p zZaffNRc_lhGr!XR8}mXR8czq;z%~?hhv3fu{u6!j=6zH*mwsD5zMu~@rqOJW(t3P_ zMMl?D!w18yjh$V@X*2DaiQ>H+6juH z%PPX&!ca*?Bw86Qr<|7qy)$Y{2l9w=4n+~-Bzi)n14j>{cE->&xv_EcRD%=30RZxB z({uhZX@=KXS%XAw8q1+DQdJDS3>s0RO2*J zT0@0}jYw!nHQN(KO6w^FS*bWZR*}Yf?Yk>(PcXQUhfvg21(p1lQN#_lmQhgnZh|

0N5W|zCTZ+4W zEq323Xw60`RJBeQ)Ew0+t96*$$=6rF`wlN#Rxz5Kxm%BI+oIqan2X4vF!bg46xARJ zH z?P$HVmcl%3+=dV$ zI39>+?jz=CM{-E{iY{xB^~wdbn|2b~O5slGtI7=EBq=~ysA_Whip=||aSWwp&-1zt zrabfYYw6q|Z=P=yb*$Myp9)UIg;J8-U_wOLFzSHHQoSq+dJ4BgjGj76>pqE zh2vxC#_#BQDUJ`hAH}&)E5jQpcg=66ZZPQxne{oz?wys`y7l97+7 zq`A{`s@!l5SyXWvkTD_rlr2nZ3i;9kgq>o*L`RgVk;2s!z9IXy6>?ioiXHiaR?reV z7KKZZw1YEbV)|G|oNeRVQ7X_(x;!ZJ7)`gzcxuai)?jBMAfipkvqyvRfUV^;bIPJH z`Cd{f{8>saWLRA|lT;3ww6F)YuxJ&7e;B5Yr}cbIZA-2_VNWfFK>30%0bTH!1nGM^ASVwb>i zs+6+n8A~Hgx9~Us>E4{rQNNb-16n_jtLNY^_d4WtD$1dBAyjukees<95P9-uS0D(4 zKeyl;pwc8Rnh@o#2si{Q;SFej=ZR#nIGXh0JE1hgEmuSNOvK3e8RI$L9K{y#HiS`A z0F{yp51|h5-HA8|3NPTXthIFbE&^doDx-B|V^Gj4S73BGeTqC}L2Y^S5JQ!R{+EV( zev8A6kM4hAa3kre;AN|6mU#S+G^>T}o4Yn!=dLN=Q9P$8r+6m)&bM%$MZ|!p-p3i& z;!waz@+@J2SJq+f#B&^Ua7oc8fkW~EY*EgzU41ay6YM<1H zzpz#HP6GYwdlkidC2ckio*6()eM<6Y`(BgfrIcQP1Wf!kBFF;Mg&WdBBtr!!>xJJm z)Mdvkinok+CrORT06ub1if*-}zhn~*Y185tz>_d#N|>l`bXwICE_*zSfWn=2x@O-B zb@&y1oqarmU{7unmoND%?WPlKOFOuo!kU(^NYHn2SDs+vt|?v8XAlfsx1cO|33n;m zk**9UFeSj7!4u%gxv6v!>AG-qYi5c2t%CJP_`pTrRmR$Bra0yeN2>97jYWpLU{o2o9n_(P{r23~6dmIZL z1Sh0FOYV#;l~bazQluiyhC&JW{P?40B>Z9WRZ%_|?tvqz3729dB`#<2W1IJD7H*~= zw?gSG>?BsLljcOD*kl(%Zu}LkhVG?O5`UkI!m7ks3dx5cuBpmPk0OO3hsn>3 zs3a_%($sz#XVqA}aU$fl48ch!GtL&{K6RPKN=%<15IsEfM=*R?O4Fwgs!?m)9F&wA zm@p!hsV?LgI;74^h>&P@&O_%#x?g(UiBzt^X-&V9y4DpUE-Gm4r+)&=`GSmOe20mu=mp15DYjevPO4M zZra_si!SMYD#b@)V{d5}PU(?pOa41#C?o?S8dDvwnVP=4JRZ1gMGCm`IxGfSL#bi( za;v1Q?IdR>ZJP;^#BTC#am7M8EGNI~cwuVLURtB-rB!}wLXiS4sb>7TMGN4(3*@#< z$fT{xW6ZtkiocWw-vYKwa+b>-!a242fq_o(+{m)kM1v#?uobLsE^&7gp%Qx8QH2p^ z83Z_O$aFWf6@(e|a)wY>#0yjk?Ya<3Iz55FL@&jy22?4IJH19YhfFogLF-$ z2R5$rQWp1C20@_q1kiL2I*X@;XrWCcQk8kGxs%eahcv@D*YVS*7Lb^>uf6P_3UE3S zdelp~9$EmxecFN;Zpatnn)?h@+ipMZZr0K@k12(@Gg@t$@<%95+r~q{#E@H-d!;h? zLg5dKsMd&`lqK;Bi2|1{y+1-!)`ybbyC_(^ez@vs2|Sm=-@EXZREDdAQ7K!sJ_epY zAc1Awah9cHnbeKj;}`LjF57UOo=%O#`-?3!89Kc19R*6HEI>F#>c$W|Mp1#JPxu&; z;JC;+Av9nG%`gf=l1_BRl?WWR@nbBm{xwvDODYfogM|VnlKdm7TXZ*lvEl`tfLb^i z@%UJ!e5)*rrjtB!NOX?#7S)tmDdjOj>Eg-5vncH`9n8eYXat}S%a(eO8i`Iqv(%N( z_1Twn+xYsr8FGL}=okNix~{%U=J$zQBs@oS@0&gaZ!Mfg{R_77eM@~@=2);%LK22TQPA*PL^rTv{^lDI97>_l`S%~%A6tElVx}pBi|R?&9Jz0D)|k-wxZ|LNMkBuqo|HwVEUrqoL=KC1I#(fs z4cbRFf25B_?Epi-CgP7k^21r4E`+}!f`_+~oGQw*F65)399NP)r$J&7Pwgsgn)&m( zy6vUdk~JumL}n`87ultS2UDgMCx#X@{@An9BL`AlVukRRo^|`hvt!az&k6`-#}w~8 zrv^w!DnS6^mFLs|^vrWY3lsSp|Ek!J;fMj^lOoEn6b2?fLo5E8uH1)(7ol8@A{ zl^=LkU_5|PzwVs6DSE6~0i&k)3(dOqN0#@c1S(-Zwj8i z?0XVRaxK;5&xF%Uo_EfSLS)0Zlueovp>rlxqD)i`NJ|oJK(YYw5*OrTjffS{5JX`+ zb^bgBBhO08^XF**MRtul4ZN zks7I0e(z4{kelo830Y{!K9|`lA+*gZp8_b*c5Y&knZyNLO2}Tt$5$cFynF|<&pWm0 z?XqJfL5iMidNr6W2kkaERC)8JK-x&rtO$&z9BkP8?1k8c$q?n)bKxTqm*1rjSnfbc zj5@`FB`!(Xt1iNKyA1!$UE^EG_{oHiE#F7WtS}x@cN!!(lIT$G9cY!YkbN@G$SVoF z05=m`Y{*@d6WUFezX%dD zw38g-aB`0MUh{1hkrbq3Q4gD)%UsK+#wHh>1@%%ozlUFj;{NeRp=f{dI7n_Z;RfKz zz|=7iIdss~vyY^dbyQIt?o)W~=w_!90N1P4-Xyl)v-S2*u3?^9ncfT_yIZxNcjM0m zc%voAA%?9E_9|qEdca({Yh_fODM=Yol}5MjE}5PbiJ)q#JLrU4Vp6g)csS|q7A>d5 z>s#dFl*Nuhx524fXy%!$=O3jTYLozkZm6kRJ)`wjxn{(|mFMB5vio$*z%?yg0<{EO;xnhlip=CaSWm6B>-kX{lj7)%*w zi0rD-&R4V@TKU!dQ3WOE49@+aqL(b8waMQSs6&kgbTbDCgDW#OtU9___Th@daus?H!#%p67255!fb2vQ<=`OiT( z2dbr?%b_QgNk1>fx8ri28bX6416RQ26-iGcc)w0UPG zy3M(Q(qhA%PF{DC7AgH)+l7h)k3f6zHYMmleE$CW_ z$l-SiZ&>IZdBMfVKt*m;l{dx76>QRUs!QU}pk%7mXaPqOqE&2m8Jo(*?^NO9-sV=Z zWRd2T|NGXCv?bFkKBTNDqZ`!_ZRj6YrX>4aPR1eL^1)dLF3?La{XiLsVBjz-PHGG( z{Y!LPNSyAAm;WfE?j+ps=d;Hj@Jq}MFKSV0HJ*64MR46Lr|o{3>!@J>yShR zo-R@$!^z{1k!SNS<4-v`EqBXO&^}bHA{I_%j8L8kofqmn1HWdyo2 z+cJn{-He3ZnhQXyljy5+_Mw8ol*S+-q`mDpWUHe2qYRQ>!N4?;bnq)aQ69o^ff(mw z%c@t(qHAIbJJ<*s)Dka5>ccoMxEgsqgi~Og0%;wGfOpvX<5D+fEju>1Q({iUiR7P4 z4UtW6S)-|5%*$W27L86)8qMTyTK9rGn!jj`<|m~_W-Ttt^IsiQxrObM;Izb9WF*8N zjnW@32iv|wO(gJts1+hv=n>9>)0LjOY0cpE&6zkIL&!qvUS`WSfTBZ_jT+ZJGUFBj z*P(k3;aiS=-!tSVS*7X9Q~Hx7i7Wol+&w{i8sXH`s5sGi{&&Hy(-kxx)gFNkO;3&EB;=6(jPr5Od%7yRj8{4! zPgDt6;xr7NTt^?1lOCOwu*4~07mv>ZxCIJW=^?1lV})&$hSQ~2SyPYL)Y==d`n_!R zvDg$~t-czo52qDj())>!sW|QkRdENuK5SOGZNWy$+O3+J_=0Sc7lVQrDy5?YJ~b_@ zMl0SmAC>1-y>y0{?2=Fz5iC{FAh{^RRZ`5MepgQBF&%x#lX~hyAJi(p*`aWSLwc

4ac*Xyp0^+Ehscpp8{! zlJ`UgNKykpTV$P%;khp?d43#*Z)IlX)^G~qQ455dw!S2{e_M`}2Z}>)jK<`^D;-P; zSG$dpGoDUvcnku6eL`iP#Nc_94el}g=MX#(rSL}5ryz0~l_JLx{Y)OM0J0s0;lql+ zmD?Tu3Hq6!DZkNy)!*O>2Kh0od42L{#-RtrTTz(moY7>-j~QJ73vJMt(ZOhGlXAw`2u*G7#VR6Pc+OkQaa2c*eQIj~wjm|D2vDtUJ*;DP=x4J%fBHL~jtjAs0}K^g?>; zxk%liOpbNDa3yiII3<QUP7#KSKYSFqwjZ;b*b3JX-QnCR7<7AfWouH9r<@m{da>Tl-%sKDXz zAcX!QZ%Kgr09(YsAD{_l6#Pwr7VrDi)WJloQBJOP7j6dKl%Y5y>UDyw#swAhKv?J) zGo|tgRpAi6#ja$KV}Ve~u_;QI`13*VytgJvGD&>J*&*TC@KgLG6XBE>d_j>5h!H@J z`_}lvLiey#T*+UX3Dn|fuw}lq_|DqCT?J?L*Ky}e%TP$v({Px)L@KF{{bmWymBedE zTzaQwN;=#k9~@nMAkU~OEU+U^{U{tFr>2jTltc=Q;60*a7V^^X7!ct6WinpQK z{IavSM--Ln)9aMVw3+0)dnsyT1(g^mriu-c^PVfP?Wc!A)recA0MS7_#0VRk^u%=v zbO@m?F(h2~vT-E1?8W&w1(>e!o}zAFy*!;o$c0KrpS}V7@&V7yp^DKOsT?as5GEE+ z+X;y%MM+5U1UOjZr@s8Cln1M%=tWM;y^!CCR`p?ct9>9@MMrxl*MpXlS^0p8)7z!+ zh;oAB0R6ouiyJQ%+P zZtik@jg3Y9YUT$F)eP~&Yq)gDg-VedLSf_jkK7aL)yZo^x3#D;(6!M}toxXR9Eb>Y zRI)vetgbzae2UT7sMCg@5f~mCd{*}{D$g*#7b9+GkFBnz3xjy)8v(%dP>PaZIUwRK zAnK(Iiuy{IW-8gy|2L+R0`6$PZRQUPkw?DJUDq`<1(TPMT=OqY+_wJ@CQg1!7w3Ci z6;P%sp8lG0G}Q+F>O_6>f8|7#VU3QI{_r(N6Gb~Htu7G}|KFIP4gYf!R8}?;|6ye* z6C{pDl=+DVodBs4(RKluLPo=OvM$I7o}TbZR)%!N z0}(g16bZ$*676d5!mpo5U16pKw)J!BP|YBeKAud->*71=~_4@EwIr`t@h_j%$>e(8s2J);Uz;%;%@HYQyQ zQQ*qpDB!^=bgKorAt~wFzIMp-Uwef}15f>`U+Zh@yQ|=DtNv7a)NkTas5fDHsvABB zBR9^kH@|%z<3V@uh+wAB0Za#Vg+maB0L{JkwZjkdFzvm z8Ep%lX;Yw92%~t#AildRI6JCwLSvG+IwjVj{_p9jXU?G8>abqsV*&4<*5;-G43i~)7>!_5&-EcrLMCWThb`_iHbHM*jY`T`_ z{g>=7x5^j(@wPH$&E}C+@;bzKBk&zX#l-0{0(7C=36a_gIEdBzEL=&lu z0FH@#E+lYO)^Ucw#8a2@n_w-Y(Yv9T4KESDq1Z_CDF>-?vp98sGUbrhf>Y

Qe8 zTUEAx=j6awT%M>!qH;=j+zMJdq4Q_cAeFUlBZ_#59xab8gYq;K&Y>9GBo_kC#>D-! zKxq{Pa7x!9`CgZLh&&pXOnTMO+%qLutno-~D}(7QLJ>r_Xq&HJE62I2X7H?pyOp$c z$^D}z8EH->OPOzNd<2j>JaE620Z2J|Xu}e@L5Vb~mb+?Nrrk+tz7^~lz8=25;_9UT z%+0wfyr)v&tUL(h1CZ}J<1o0Sq7|%>jqjBWqPx{Hf62kzEB3Fui=3~tng*v)NGk=u z2D8cQz{8oKs1~-NG$4ZBNL77M=1t1MO%EnDI~UZ`JW$ke5-n~nq+nP4ACOliR0-~j z=+ET|J&J<;oQH!4;Ncx0tzEk2Rv5*W0Ck7Lg2h!g?)y|!tU%2YE(K|BRZD@CF`l0! zVNQ9TMQDHIEUDq|AwADD29+hgOO_&P_aWOtM>t_jmk>`MD zrCJ2txv=FvIpuBN#0d9R7Dh_P8U?N)nkY1tGEu3dpRSiGRpm^2T%hrpa@(e_Rwf_g zbQVtx;Jq8V@qz?7crmV#2W(2J1HG((6ba#os&)JPqd3RJh3sahLeZ?TQi8*BXx9O8 zFS|d_iW;Z`|kG zuzmB2v1(IHB^1YitGJ6XN^!vvoT$N{3yBkf#KGAjWhTHEip)^VSe03(H-^Nw;LV(M zQ!z#c*$u=PK9~P{yha!wZ+F>hknBW65|S*$d%yKKx1dLVQ;yxa@!iUun&siaH9cun zcpF2tDOZMxM2oTltn%)fY6Qv!8I^a}BLj&O0&Z;TQOYUys#Sl|iy2CjZ4_vXcOpHC zk*e)1Uk{|UxGFzXzgA$PgaHbkb}}B???|`fn_Vhg8A3AtY^**)$6TD zuQ==VlncUw!L<3xG@&Fg^=}lZ16b`f zVWjNg)Z?^mj|b*oMrLO@(e^$kCmHS618||8<1Byp`ZNJBmO)f9E99MrZ@Sck~^E+ zDRqa{15weH-?`&-)$OXLH~O8HMwD{T%BkELTp_zoX`#}d9h_dUix#k$ar#!(ul|^C zECuWlIL1tr%F324mbCPqqaJ}Wg%As7licC{yKV~mQtT1}`suwDNC#Q&hz7}h8~Z=i zU3-k2)pg&(?Ck7#yk0+8JI2_93uGaS*UuDe6tEWy(|BjsJ7aIGwb$O6oqcp4Gu_z- zYrud52y1a{D5eSOQ>t2|NRg{bmH4ZwRH`ZsqBJE0@E@N!J@;h-92 znzUXX4LTF8;3vhX7_^`2v}V&W+6_psifR`~_HJ#^TuxPx&6~z;W-TS>;+d7os15i} zJBN%95pknd?NEmgV29O)LV%yaF@Do!gLzvpgd|?&D&5ZB(N-$JVxJan)J=O-VCP2OC#{vBws^%ay%Cb2ULSuD;MlB)!Zd~rBt`(LWIbfpOs10y% z%{04d1Af&KVU4F^2*JYF#N0k(VwkAN4&!;5t+&PM1?#-dd_)C>Ir@Eiso}^^%?QK} zJ~S@oKc6pCFJ5};_57FSzkBTCu_jYunqIDJE0o{ z6!PO#J_ge7^j}mJ^Z=?Dr+Fxf?`4er+jMXHq zk`~vXPmSSJ5lH1aZkZq*WqkFJ}(j2%7JCu$9NEj^q@V2|0075=qTi;@tt{9sTf8D| ztD~KJ0geIao{B3ObtDX2MM9-H;f(NIy2_u9bmnd&XDr@l4m8cI#s}^xf1xXzRW~v& zWDXHEcc@&#fm$3k=bBP07O=_C1Db*z^&VKHvXHHiormW*b;(>U!CZ%G?$QUE$QB5^ zN<)PWq^pFC#Xb%E92#is7($;9gf%G7qyacV!2!)!@p>C!<*aiN*R3O~x07f=YZL;5 ziRjd(hAw~u5x(V&zTz^Fj#*CYRx`vP{XpwQ;s3cvUacidjAEUlTa|{)0bsMOEw%~T zu*|<`;d&rsu$8?aqS1j`Z$vrCXLhOCifCBnaCIp%W2Li12no=uB1)};OW#Gh;aV4> zJ#j&&^@^@%Rrq?2BHAHr)SM2pHx;2Y0ph$TB8t})FBT!=8dFw8NUayh5FthqJ-X7W zND5oHGl&6^Ss@W_xB5FnPjbw(s{^nOWVp|&)02o~WL|gwE1py~e{2@TM??gCTQ2^gFkU5J0wi00E zM6u1`-~8Q-gt$%PziOf3gdp)B!c_&PN*XK@nh?yDeL71Nbf*ELEBH5f&E%)`2F3lZ zFIe>pn(=Jw!pK6A|Mx<{XAx<5=P)2*fM&pdwin(rCr;A9!nfmpBO?H>8pbqUm_}<- zXtG6vTOC5UonOcugH`yzVt@%_?8Sx_8+fUw+pNnv?`X?_Yk;0u`iy ze8pZ!=imhu_<(OO<2@%HZ?sA^A=(bk)8GQF-W6ho=%&y~;5qNx0&#F>zGAf@)rFl5 zZ$m`OX+g9~B^;1caMNQfVVc`)KvjWFOX^)5d^Gc2dRe;L=pgw>>g!3yj{yr=uIX{-Is@;&!cU=iUycBKt!=I%)A_$&Wb z@zgLqiE%9lS3vuOYuUwn7N(0Kt1f;V07k19jaj5w5AH$C6}J^bDyZP$jPqMtG`|iI z?J_SnlO5&oP+k##_zp@S1q4`yDP+L=AN^qTYi?uI0PA`+E^J!a92%etr6AlU_rKjJCz`c1dfK~x^XS#~>q zwbS)0We739+?C9frtjQe86TQn;1F_#V6?+DDZ$rtzEl!A zCf}h-aJV@Erc8`u8(6~{^*~WhF&V-t)|^ax)hCKFpgDMRhQ;?B?AF#{C!jLT`Iabx z!?^fW1R4LVg|W9ChTVWrdcJ^F3J?x7o9QpQ?exBp&i;0?0-XQrV;|S(Na_8P3qy-Y zriIQ@sD%5G90>M{JE;{J(PiG=mHzSJ(c-M!td3~H4eJ-(2jwnWG;nr(FE_L^bd#b< zR6HLj~_dChs zWUyF$u!L4RA9M<5f)R`q;~x;SH$_$RLk099^Ml#AD<-C;cc%0ZxE!sB82_T{Xjsd2 z_Psp#!W?L|=bxPa#^ZlvnsQTL5#vXk6`)CyPmN|PGSybVYZ~0Sm`h458~(9t^kcNT zhDZj}`P-&_ja`$ain$njC+FNC#Dq=+WC}DnDS%i3_qu-(T5C;_l|n3;jw%Si8+^#mr5&MYz-z#XS5GFMbhy`DvUZfZ?q3i zOr7`43><@~W78|xdtwF(-pWTXX#;$nG`Ic%^3eS%R{ zB@2LaS=>Xwcgo@5JgsCo1h(LskL^H-DPCO1#yr$?t)!--T^fFPi7XCXbg|3|OD}9X zP@0`BO^IgcU#&|!jCbL}ohgM^;L0b5^9uf~&;qIQD-*-CF}t|rZZHooCp}snT?;rV z{X2%8x#9QTI5$IP@8yKr{pw<{+*L?qOJ{5uU_X%ZL(^#2N5XWm2+yosvw`vxj3(o~ zX;vCej9rja)IS**ZA&g5*1>2U|{7u-QEQd50X7WO!-&d~bX^8b6}YeaE?GXGVQ zQJnkn(%Y6Yc~iDr#OW-|!aSeak){OHYGdgVaB3m?71W8Czr`T1^@8mxzGB_H3ft8! znRd z=ngN^N?a0WTtD{AgtY-Gg}YxSoB@)<>RlJw^O$Sfy2n-pdWIJ#9?vu&Mi3sqCqWr( zQ=@o0x)RNkx#HqK5B{+!u@+y^xy7Xco)Re#A|Td#Vj^z}$3PV&naTsIi!)Tgx}g)m z&#*-@z6=%+^O+US+V+*NXFej{pEmO2=SF{rFC^>vu!%l3D6jh2-2UJQP^HRDB5T=C zXoB;_bH}thb#R*3A!2-By<>0vilrp|$ZSK|RkZog>})x-T)g;wSBa)fDg1ll@2o*` zr$qK^S@O&~*&k#-py|nUDc%eHW3LH-@eXW~O?u?v{v~UvuaJ+@xy7>b|M*pvU^&+c z^)Y$+6>J6EsRTRv1YF*GT;s7KTPjRc_Joc}!oeq2A45qALdhTqC2;ZF)89MRB>Bjb z@aHR+$PO%|G)QWViv`F4_20YXH)GDpO6pj>sxRtwiDuAB-qD{!tBWT^*M+($l%hGhOb`Hy}-J=Vk~8haki#=W zqtMt!(-k12i_-`(o~`U7W^*Vl#JDngQzO}MH;Ow;5jo|uGA32LTo)qZzk&wzr- z?A|`{$sYNdDcaJ7%L85oNys=a2Rb1S}VvBC3?2!dxX+I3?kG zlZRhu4_VS07wkvLZxJ~(iR=S|7Yon#tv3yB*`LS{3HTe3e6hM!ndnwMw?S1>3_AZm0sAEDc5W2V##wN3ml5)YyGk#gi*Jl>ah+zX`jqKUm9N4f zvjGxXFaFbW-(uJYr40Ub=^JJRZFY+AX4KXnoZ|~nc^PUE)wGyP*ovyK>H!eYq-)A9 zmz^I~$#yJNGr*EYP@>=G;xCx`uF1Zm-!^DVhcmCG-G5`G$sc} zl&E{t?c>OjHpdGa95QOu(#UNI_7TzJz5VdTN_#(Aqv##jHd?R{ja$`^*SlC5&<+V` zRtmFMPK;Cq)zMYt1b%~+goE$V+)DTO_7x>qCSZJ1s)#54s#z6sq7%LC5nPq^LTJos zTou6v_zQ8&S|4y3ny$b1ULiyvYFb0nH9M)b7ki67KUgfQE zLi5D!T)$M$0&k;Ks{EEeuy1RwBOt_@dQkF1}qy-M|TQ zS9c~5ou=Fkd`8-y6Ic>%-N`1b5K&eL%7&?)^M5lqPjO85D^?0#!Cgj}dXuUQER{4Q zb@>X4xe^h^r~vtXcc{OeW_2PGfYK0l8J48W29b82uqXbM$d+meM&(WK9R0Snp1L0- zA+6f)%rf2~uX*wDSdoK8G>8NWc%s6CBk_O={m5_NOa$@?nxsNM)r?YrC!prLBn=jW z^De)^3bBjuS*+X#HHFfukfN_)QKApcMA-9stB8_tZNphZu{`OB+~n*8%=0=O8R{#z zRdO+@@d%c&Q8iH`OMNA6%9@sO3DnUtM`~!tEva?(x1~CqTxw=Dw^iF`uNmK^x{=6u zwKp8)w05hlmvQHmXl*=X5;iM=JwGbm&6Ry(@bqVW2k~Yj6ziFORxV}$5ojO`5uf1O z>50`AbTuV{fVLZ+8WPKS&Enf!8%^cgq^%-JHWkce6)=M#xCiMPAR6g(0@jS{7~I?L z=)}V+U3h^YPuZ%D5WZ;UOXI@;iZFql;vFNdMO1X^o(fbyqg6?l_(nlMavr0;T;*W% z5s(j0r*g(dmAQ`w!fgxVXJiD1fs-tN?iy}*03h+6!1;mL;@L%WmB9=;i%-&hx7{zy zrh?dys$`{luRHw<=n6WxnGb*Z;4VGTxBc>ukXnLM6kh|-;g_fLh&dIcu<{&evWtfM^@o)Se-!Pi=`AP9bM(PZ|G z%9Y|3hWVH_w2J+aFlHzCo+C($h0}?QU>5Y^!S528tGSjV7nZ8rh0U}k8f#K$*+>qB zu+sI0pN7duaRv0ZpZyE21~Uk2#q){*l<*TcT>(<5t|Z~KxAKs0rVN%Jcy{7VtfDSB zQ5bosd=}OChFi2$MT!qzN8GYR2kM#PGdsANt-2a(!7|g0Usdhys_eBYOBV1?MNk!7 z9g-)wsHz(eX@+V#4(ZwH8ZX0$Vj>2wD}LV$;Psi#{S+PWX$VbcK#6#$!!4jt0(wsm z3z~L)26lnsRGu^kplFcvOcgp(6{Ampm^)5o=`|j0II$|*mT!B!k?z}E%W_IXK}qw* zYAki?*ZYYgEq&^R}woaStkH(Wr= z>ZC~1r5V9yslP2cU5Mx1w-%w3zzBnd&_Rbd54IpNSo(J#-`)GVM@%cCn5J<90m+1O zEJB8+L-NQ#xE@K7!V9-DI_I$?U!9xr(n+mh9A0{%m`@ib$i_E1|_XK1nhZE+dgi_M|zSX3?%Z3RY>n@Au0<+S|%+LdBWtZvHx@ z2|2S${U^K$$?8CuM$p>DAyBlUOvlb6AgdTzkgLS#6TA`_-UU9yEvED;=R67oCeVuZbQzPdT?==Ujc!e&Gd>b`FMPQn_n*AoS_ zw&q|^VRc?a)M!BVP7T)Jek(?if&PHcVRomBMK*MJ=YNAdH5YC}GM_i++DEsb+ut5N zh498J)oyBd+X+AyCg0>RfXei_GwNhI-$7mM$|c(H%`L}BnQA}VA+ zxJDhuENe*qJcnKh>(1;9lPf?s9WTK%01hxSCh%3z$*C0!j0ZWhc$Ch`66HgMJ$2#1 z)v$;Tt|1^8aQ7!2%u`kv!=rKnK2);A!X7;%q~$_f1JzLZym)wmwFrFI!*D)=x|`b} zd@#>`dV{%~(5n`)qW^g6H*>F9R`!4U`qx^%3B=%+;>_f4;iU zeY#^Ay2AhUmu`H20gL6i2O^@9VACp4oC^z~(yxN~09c)|0S*_Qd8Vg(Ql!tfd9 z+ZxjRN#AyTuvnq(zvT?KO6#Hc#=Q5KTuGJzPo2}uGUC_~_{K)4xu~2O7%x+Nk&01`jNU*qEGek2LUld)K7$Rc+q~X zMuF4R}{6eY57(Yeul_R042xxa0bt;6C}uo7JEZOx3tFjMHhZIzr-3Jv6oi+$+;RJ5hK!%3Dbp8of`Ia1A zdDF<1QJ;X!E#3y?7D}I>0erl=0=rk=e6xo)lGD(#;3TuL9+AQk;3Be3DUJZe${$#a zr(I-T7jJ#8H4>xcAxM5;9uu!fbn6qO9Pue#AKKQhV2yQRwXsg<$A3`w062YY+GW{j zA>b5Qp6m=0K9weE(O2vn<^)^mSo5=Z4k@Fh-$W-L?#MJ3UvW)!5~|_Ma2YHJ3X$zo pVS+Kcu0kz%ix(z%y$A(qU>8|%^52gR-D?z_x52E7x-Pk*(0+p`1vKeY6^2i~5_SpT(*neJrlxG5<2p{zx@ALSO5ccH}3rn^zT zj`ALqM;SAp#@GndrLyFJD3?Aj%9@Ww*#w;Q`!#(;xi(dl7q1iL?n$ED-(Qq(JtNBZ z+C=%~lPC)r8@^4H!QG6Fb}^RHOOzV`N1r?AGdAl+#tNg1opp$@K0O&L9?jUNKE}=l zuG7(HD&NF-mORSXoMob12E28{8B1Nv*s_g`&HEQKU34X5t{i6CegevSnd#3$Pq$1D})`=goZ2tFTc5#?>~GSl;e@p%|Cy^1!z{x>syK8mq{gPG~8n;3h(l$lLC z8GC9f$|H;&f08JRuM=fijVKq_in2CWlns9tWz$+wu6$gS9j}RU%d?`~=@#YHeMEWt zEK%<36y`B ze+)BkY6iW~9+l6&Aj%IMDF4LRm}$(s8FYE+DQ4dJ7-Qpt%)EO#W1AK+^L4*6_V8KE zeDhD3zgI-LM*4iPA2Z+bKIZ9lQQrR$Gw)dnx;@Iwe?UJb|HRCDr!h7Ove zmznRG$k>r;WGx* z%i&L1);Y7Wh8kJ#oPRSmb~NkzFY5nTc0y%u#=d%#4WaVPW|lV&Ydy6S<+mvBWO?JW zQND;0_)@=P!)Se&+SxE#2d10ZFq(hUOY9`-k9i~;k#ioG;3E|H$TdfIj($SozXY#-6#Km3N|i_5`-zsY9TXgDp6G1t#H z%1LZd5&C!Ja<=%km5iN|!j|^RVXW^awqp5njNSewTe<9?n9qZ3)oH->6W9-Ra*~O=VA3T!DF5U4nW0f1&Wyf|hc6|}MvT8r-z0I!s{7c5J z>c?(;?PKtWK5S3pM8*zS*q+Bg_l-ZZy~RrytNst$yASi_JBvN?GS+Wj4}0|FQ?O31 zVvpU6@sC)^UcEdBzPX3J_88{jfpP5b|9Tnwx`lmw!QUBsqLY2oIfJn;+frPoKL(!k zOG@vf8yKs~OK~#~V|(sSIsRPq_ufCHoG@z~`e#bXuf)9EF)}6plH;*19usBxjVWWT zSQlpuNEv$q=(O$9lyQw8GB$B_$|+}nj|}*8N^u_A%l>DIch~ETE&MvA?9K1Mr|wHx zIJk(hX}v`GMW2*ldmiZDD<$#~@LcjqO4~ht#@_olrTxx_!C&uASrd5)^XW@De=X=a z@{N=o4)E?LK1$iKB*fUG-=*ySa}{H0H>BM1a|z0vlsoTP!&rDh$~|qEC)ZmkPtAP? z{hXij)ITuZP1cmB|Acv7KP%<%4*Y(4R?0IO-!K+UNqJ`AF2+{9kn(&lwEu^9QeOP> zN5-yLlk(TXi^0d&ro8b1#$}tE^0pQDXM|Ed|9d`T)|*nkD7=HQtEZ)AOa{G&U6|^a z3O?ZbBK6p}FJkP$(^H4vP53`Z9rXbC{8#6uj^6wr=FOTq<|=$1S(-Z52|8sSNj%|4u0_Xzf*VDWBv}#PQAYEZqR#u>J9JjW9-Aa)ca{&n_21;=VAUY8kG9N z!S5OC^=9fD?RQ~6eUkcCI{3r~<5J%%*~3`*pw##7#5t9HZt7Qd(0^39C@;A)_3J^H z&-ISfug8M^dH+cLejDi8`<>KZZKaIeU7Tj=_!j(&r8%zzojjY;G6~+Bm)7&E%dk!k zr}Y}v!dUIMX}w=UzdGG%{U1TU`wbE0ZAEDV^4|g<*euF#=B5p};swTf?noQ)4(8#C zytEO&qI@qWZQLNVA8JXP@B{eNBPD55*PV*PCeZiu!nC=2FwPUsNGm9Kld*ri zl~(Xa%*O-oq%E1~VeFQfX-m%d75ip*+L8}Jr*r=z%JVm-Egb=Rp1vfls(x{IsATE+PVk+2|n@X zv`e=V-Lum!&jh_*XiMAuunYUMXWG@37ch3xLuuFj=O)b0w`qUa{3ZDBt!Z~H*^l-3 zPTD=U-oe<0g0w^Dp?`nBHSM*s0iaJ=+B?MWHeZ?cVFB71cVF5++M=jmk@m?n@PSbu zr+u*ic)z$J?b`~>|9$nQ)N`)II=o(#Z+&Aj{{sAvGLvNs%11VsEVoj5$Yj6%QSkRg zCgX{G!6--#V1B^L{cd`{Qhsx0)hrUk3kQY+7-S z3;g6~)A^@jJY!xL<=fj#8>%qgmQzfdUd4D^)ut^uSof7S)5Yb>F#fMimu|k8vF8G& zopTN{mX$BcqW46(ptmS%&J$&mU6iYD5aqc=qTF(oD0fT0zx7)2d0$UazPV47@4RE$ zdDdX?g*m3Hu2~O$f0Zcj`jhGQv;&~?4W>T~$2|6#Aj&u2G~IKHnX!Tb)4fB}7;DTi zJ$(6AoSW~O9vyx@KF=^cwct!=_a-wIILCDK?^l2i?H1*sc5_Mw=zGc*v*{05PlJ9jn|EK1^P$jeJMTN}muJn{ zBT-)a7jy1#%+IWY=Hc_28FTD45BJ`MveBI1Kfu`FW6a}s-h};syeJRsHjm#8KG)-W z^Z1VrfllX`PpMdibA7FO*7n=5{y#R)y(tBJ>fdJ1=yR~HwwjCkt%dx()?D`SSBz!c zZmzleJ?ztLbL}1z=J#E5-3A-v_s`As3ox#|_n1TT&c?Z2X>Q7Skg3gAmIUp{;gzWch#VtcbWN0 zI^V}%FUmhOn0KFaBkGMcUuOm0Q@$`?|Haife|+W}=3R>O`%LqmkI+wBU-KVQF%OfL znfLw~beVduD65|~ADaFj#!fzBe!0gTjBWk5`IXW%$R%awSLUO9=sr$rZ%Eb`JMEP(-7 zHz!?asfo;C?B&sxh8~qTzy4@xycF|#a;YWU1U_NA#M1QP8R*v#QSKUPY1?9DY{*q8 zL6_TYmbIH&z&BpBoPQ$rHG5E$?N^I(t}-RRz799<@+fZ*VC3g zTkSXxU$pFR`<1bK##rwA67}b8w%lKfaX8qys;ho!N1?~!DF5H{#47SXI>4uL@Zxr z0RJ3v^xkh^UMBsJeoS^T&V!fJPyA>#&gG8u z{EGnh{CVl8y}Tdt#Tn@f&W4X-b4!w|mdHD%AfA^+edFS^S z|K9W)ug1RnXkYs6Q!wxQ9#6ls=OnEA&(rTZi2XZfQ~HDZ(XZ1-rayGkWX9g@mHyD< zF5G*Dr62wU>nK>B{_KFuaUb|D{m428V}JFgzg@YQvGm#LpMHjM-*!RzXQyvtZ06_b zKOgfC#{SqxlppU*|9RX}#&&k3|L4p?$eH(8tj!`N8_KO%H+JjLJJHUB ztF0&P`i`-?nye$J-VJ-LW3I14y&_SrUuhll!^x0iKNscOORZxEVZ1}PSjRVjA5PqB zo%{>dX-zhS+Wp?XqhiBgj`FphWnYVAmJz$LW z*|h!W{|DB$ufLeFKebx_HYO8%y2bk5BjXv{^0W1uonK&{_gjD1hkbC}4c32`pO1A~ zVEqwyKvs2w_2}E!ho5iDu)l$QVV|GT=ek?5FK1@-bJk&>-j{J)>1^mlZWiSm=@~;N zflk(@jB#%Ta30;BG42~GU(Xod2D+aR7UgPu{uk!ygsU@7{SNfH^_h$rE$H8%Lm4xl z0iC8?lri&#V#wQ9WE6Z3I`o{KQIU^*oOMY?#VV|WQ~#O~9P|p#iyt!T?>P(WwpT`b z(>BI--=4AhL9CaLQZv@%4Q1@gkr`_|Pvf3(R>t|amqCtuFr(wosGoAGC=WcHv3=sN zxEDQ_adQxK>(QKX`^5vn4|`?YxfJ6tP0P6FdyMbemW=z4!#bKjDC3dGF`lU#GG6*S z=I@wZ887d=19VTz`0HLX`1PKQPfxSr9AA*}^?2;F&!5luw(olI?adkg{uS_jAIbRX zq-^l_#*Cw`!QcZ=+N^y>GWPyLoAp1Z;@%Ur^;^CM=i~_6fFmy4BNy046x<6wa?mz9 z9rSu_uI#Q@26Cbb{43`%h@^t{-e?-wQe%-ey~L7Uq50ESvw( zFv!Ih*#bAC-?b}jHUFr@`LNnnyYV#a%O`BLw_%+Q`Pvpd8}*hwY716B1^R||_+ac|pwZ@!0n!!@?YJL|z$J8e%jgYHv4usyvt3cbw> zw!iPdyzHB6`=}G}pFU{&=#>6-g2$I^C8F`Tk`Bzbl#19ezJY{Pw!xU-m~BE z7S4$Yr`m6$b8gITl%Ieftg-L!JPz~umi^$3s5k51_CuB6E1og-$M?O9ee<6EsVDG# zR+;^9$8%WU&)Z+S8}mNHWqeM z(fV&7zYMg0|F25MnnyU;7uZL$PH?0>iFPwG9U0#PU*CT^YMW z`Mo3i=#A)ay(lmE+|jc)_Qk}xjy~q0pts2}a3A{h#lIW_e?vhm;9OtNg5@r4+qP*ruN7KQ}urD2s$SNE7`=yTP6X?gxm5$~e zH!-%q$kF;X@YjuSwC#^#UwncR>tbFn$I2%>jD6POSobN~`CG1I;};*|9{I2+{~mH& z>cc)?@RMVk7vG=sxhVIX@7T5XeXNIj9J@zi9lZ3TD*Uh~H^jze);ni~N zlLMlB%jCE@g7tC2caA#_W-wMd+_BFJKJ)s$j)#8u68q~XQSN`qap*npw|28&M}6ve;k10*8+$ok`*a%QoGFekS3L;%q>tmv4{^@iu+;JOLX78)4;;VN zpr7{3oh*yybE?yR5d3X-(CK_X1by5OPFLeH=v7{E_UMDpdAB=z9S6D&oa4;B5`4GZ zFUnWioV~yJCu6UC@S4pz@z7Mz`Dv%8rJb>ggQ9$E zyt8mM=6Tc!&Z3Rr`!jxWR#X9g-eTvXeIs#B^>bGJ;U(<*{m$x_u)mId%NcwP<$%%7 z#+QC%Y}d`suq6lMu5h07Y#H`B6Xo*vM7h%CjQsgx=-$6e&IuAVw zId8xMQ9gOt`Q-W4*!Pb(kE{j$o1b*P)d%zR+7-@EdsZ^GVzcw}jcD((Lg&|CVtt=% za{l<#6zsD*oj--p&NU~y%*$}@1)p*`-a&i4ovzIJpyQk#qHOy>lz;rim3e*&&gZjS z*)zuC_mf=Nw}CHLRl9Pn58>R*boF@{?OgPttIxaNVjWF%^?%BQ`LA>h_yFTP{}I;- ze_aoGW07mf`BCi87L=HO_ioqe%|4v>uej!f{ti9QI@i3HH(na=cKIZp5SCzXb z>J3JT&+Yri$0kv>fA4CTj&bI#6y;~nxxx$4{$uT~7J@Gt?pm3<26~AfU7O2c zM=>9DbsoJH_sE-FS6ui2^dWVwTjpcljy&PoOZsLUMn6yWMJM0wQ?QGWeU z=HNG8!g>5$=C~g*j-8KWjvt75`sC5f(@QbW!}@0yTzWn9f5FW8^;ABWSPnTYlxoZ3v$fGA`Zu)pE z*5iXHA4Pd-X6K1Gr))jjy2(0TINw9Na)-2lEiCG){^df+~{HuIq=xSwpcWgedVCG@)=W*(vS+WU^o=e<~u zEjuz_?+k%1#hGth4!ZV#G4uVCFpk_onV+q2K~C+P`Na&Zw~V(kzwCqi+aC)uzj+A# zILnv$)30Y^9*@cVId>2A4?Tj6eb+w?8`4^y8=1B2^19hz7npGTwasbt)dt)%gAIXn zeC#!?Jh)DUVf0s4Y4(*}`{aF#4&So+3t zYP1+@rAN{9nS4B=q3W8h&{{AA{874@Hge=h>WO7~(AN;I<%72r7MvS8+E1yIF)!@* zH3!3?iBxm=jOERNP!u1%?a}5y*_TVv$V?H#Ri{K$n7Wb)X?7?I`|JDw_w7cF&qh)zga$tCj`) z%{mq4c2%LEs|uxY6=-m5FdGdfJhtO-$+g9Sb8lQdow?op`S)Y+)3Hh)k4GPUO-&8K zK()I$>|TcXb~o1r+_jN#OOtz$d+-?dAngc%-X_pjl&^ePL1Y7>s`lnUUX-uR*oaYo zh^W8#+tpi39lp$^w|3E~VZc@Ai@JTakpTMD9&X`%3kSQ=H-~6zQD)85k^-f74#F62 zi4e|k!gwT@63gX%R4^{UGzLR0%>e_b)gNDy57se+%}{Ms^N<A|xMIvN_XTC`8I4yXOEcmZSq464zW)B-rX}4s^LvatLeZ^6DoliZ(wH zxMJaC`mB(v_lObRKm&NR+g}%KsCL(c8>$155s3@V#_|_`TQY2WHOp6kGxMhdwi&!? z4vxxbegbh_EWfHp>-x3f)jrPw6`(V}pxr$!9BTIYn{~h(0_^-bE6z{>*$HTR#8;C9 zr1PJiAL2n~G}3vU*g2^c&n6v^R>(}oAb}4tS1~g1(VPV~3n{@Eh)-|~$VQ{_&@NBx zS(X_8x=*h@Quxp+HN|@nl(#wPuQvpihxK#G>#9ET=1P6hdY$HSL~|YvvG`lgL1G=v zp(X{SeC$^zc3FcXFk$=SEALdbo)yC}CsY+)o(ONFgFEi@vWde>_w3^J<4!Jzd~oSP zm{w1%uTqw-c}i6{l6YQaZ+k0nu<1bChkUlQ!ekaeTAJOEs%hFJ$x?HGSt}NJU#*$C zZL89ZbBf;&k%^>?U?UgHH2}88pG&SS8Rc(Va;XB6HKm%%B;Go7(BIOWc$nD&dly_C zC+S)MrPrlCYznJpVF>mC=Jp(|*aU{{WzDQwX)k+9b+`)G24AQ)8pg@vZRUcark@%t zSHH09Y!Q-Y0jS}GWAQ-dqqvq+TIA=auLyIxjmnx^8s zNodzmf-4$bK}Zl&>Sj-kkYq$N0g-)X1jk1LWL7ldeUh|WrP zZ2*7u`{p`lV8bihHkB=*gR*ju0^3W54L1cs?rLANugVuqB!tUjE7~7eUi}6&d^AM? z&j$F3&F+>a67Jj$n7n}r9d~PB9b5A|ZuGpr{2=z3Bw{JpPS9Wr^9$B+cYyA1Za=PL zZW65$@SD7^Hf~UGSb)PH;8!}$KDSb>l4~m-S8C>pn*5}4&j|S=?M-x7PQdRXftMC; z+}H;Ko~RDNnaj3rpR(|y2BgTLITW%+N$(AHaR>*;Bg6%iiy(p$Mo4-8h^fb+J0>0- zI*W^s{v>fE%Z^`?8Hc2IJd$X0dqW_aILiV--&NId2xx(6sMPGM)dA0~@^0Itk-Oc5 zNSQ1d4PT~;n4K_JIUI#_Stj{YgCs}lOH8KKTTeC_PPNV*DoDMtV|VDRkbV-Bv^`Yo zBN0aq?GnSKal95&_ZCJULP-ll-na=HPF^BX2Wf$D9-zC=I1kWSXEIe)NOUHcL+dOs zd157K01EK6KoJ+*|gk~vKWSYB;LW?p6LTpfh>kT-Jh7YVTg3B6& z%Xv6c61TZPbIw3QvvNorntm!YWg(pFNidlK~>40fkxG7Qga8Mmu_{FtbpH%9i zvrX-8S%oT2k$J&TqFCZ0@YVZvrbK4bWGVS;Tzfys4;3cn1Ts-RDw9*p{Zkwp0}R~8n;WZ_>e@%zb|Ftza*veG_f_CjClZ$n63Hbi`xM}w3b0stBu?mq5wlmo zG8Hhv;SE5*;1v+30zzCp5un~*o=4qN0PHdVI9x*Y0djQ^Gf!xg@$b-t3CdL=ap!@i zgNN!)4kxQ-At}>A47O3MCY^3mmpewB8&bNhfr|#3n*pB)m*aoFed5u6%dW5eFtC@d zP#VeRm>DG{g(VZ+)9M2LdWhq-5g)|m8fb?CiEGqEYHp=@ldg8#T3lQC)5=4&!P&b4FuRGn89uZCb+QSV=Iam9Bs}B!Qgs)r9(aa{bz2 zM9z{?wZqFt9d*zhr*q7Pc@>W@Ke(%W(;SrmH$%dQ?u&Kni*Ws-BE8eN!tMqb%o>Kf z{nCXBhf%Pm-QDDiM%%)X>Nu%QV;Zu<2#LK=msjRZG?!RA#}o&O>lPI%swm0|8 zmWGC?A2yN1Ylo?m75}8vH_ceCV}mehgb9A|(gUbV*is^|SUPSkTIbpCE1{+0y5 zbp5*Lx<%+!m2OyOawTfQgv8fN7xfaCv7>I%l1yyCA*?`cfS4JM3~BTwG7=M2SGOL~ ztyNOcIYz04wj*tNyxCNFib|Q0J}VFkM0|-iMSjtiFaC7dRxmqe;et&HfMBR5oInGI z`hu>&WD<6<{%Lzr$pqEP9mur}(yH}`TOcSj1RI0R?!aRk+3))*7d(HO{cscvY?O zhP5WBYE97A((F9PY<|Ne5hY&HV^ps+P9dbJX9vC&!6K+b;?a?z^xRL*{iM*#My#2l zbT0-FkC*0x>l8IgDM^zU*N0eL6>6)ftAp1>7Dc5CCS60KZTp=U94Tt<>`>i$9J7Ns z8NB$X%9p4fwADi~7sn`Ul1@%fM9Ct?OQ%syel4SON$JtRIi8t?6W!#2(BK9iCBFlA zFp9H@_$(Ani9+5Gam2N*ivB8&xT6kHwyr9i9r&>JxTF2(;8vO#E}AHlPCFp?wfY)@ zzN&`6aHUBhwdx4RrX|0$1QcABIkj|C&@MAfiOZW`9N?B-tsLi?)7S(hHh1CBBa9JT zrV1{q2k2OEb;-4BM*1&X-LGV@s(YboJ%y@?NT$>>&C%maCjX1Y>VbxEXH4X@R;m>; zm))UY>oJGdlw=Csdl&~IWu5|Lmw}+JOCTn%P7|3>eY)Oyuu+#9##KgFzo7ugothnv z1Xs{4Gm(GuR>%!V0dh#4;+{SFz3M!Eb&*nE9)#|NjHB0BLgebDdUg;~V7E#sY?*@| z2mJ|sFqKqP#e5sAXW=>oj-P0dw-yIie6`4V%~?ucdr(~xQl^HR>-fG-M1F3_6Elmt zWPoW{P&%pu>yD+1KhiYekRj#;YIGLPj-}r3H1(Zw{gPm9oelsuk!U!gWEj!mh@!5V zBZ|5@9MN{+2+tp{enDdZaL)6ENS>|>=vo035LE+e5S>;`9$T$dp}uXN4>Q$>g;EJj+l-@B20S0QG#LJ?U?zo;2OCD7gs7un6xQ!Udk~=Q`+xEwe*i@y7%mN(uaE!x77(HrKyh|QV{;c+&OJ1SHlc;zr2xHHQYovkVjbIZM zZyZiv@n$7w5?V=02Q%QCz}HUVC92QreOtb2X{tQssH5XBX#|#RzVz9S8r7v?v?tJv z8*4r8ci~2yIDsfGwOltqu7Dx&%i-h~7{atSN801Awlsb+#Y=8ATG_|x3ADMz1y65n zS^|4DdJ#KSm)1McS34|lYRM}{9b3NZ^e8nmJz>xt{s)jqqxHc= zU%%AW3zfIqM6X>QiBTRMnD3C4B@k=D@6 z?jo2CduWqs=FrKZ8l|0<&^^=g0~NcJaikW`O{kGY?g`vD7jN|KRT!EYfb;R(DtCR= zlG>JFwXXFki+p!<5%eq!%?MR@0q!WfW5Yc1lnmUbQYbhJLjh8|2i&^ek|qLBhGi;* zi9BIoHZrQmt)q0Rskex%#jPH0!&i_x3b6+xMjPD`I%ZLigv&sBVN0{_ZNNqwW38FY zd`bi9g>6uC=;-ZD^>?p7U8$B)CmP122ddS6}JRnm8{mW{wFLyjzic7H5<0Kz#+_oT=4|OnVxrpb;)O)$5r=V6tk{4 zid*1>=k`JZ^(U@|#QJt#->5o?teSbUp?b5sl-yJjMw7GTHt#h;fvm&d`<4X!IC()D zS)0tKO>YXgw+A6ph>9?Q>O`(>4VkxBYYY|6l0YLJ?@%J@sTv(it|pf@&xrP)Ro13n z5>QP9Ml56RHrJ)k2KJV&E_KGOr;L(7$k(X9mT<7g?r!Fi01N~PWV2rS?71QB9P)}r zb7&)^O$T;nsZeJE0-jfa>46$wOM{N_+C(CTLQeDqQbS@-&i^WK5&7aN6>Z*9+5b+z zHtENd+Ued>uJO{ZN|!-(RelxJuS!02N>z)ul>FurYMP42R4hRG9t?kSz?{itFA?AvZO8>e(5YlxfYOb!XgHoLj8L2udSC4|`(t~zL z&{`;)1f>Vzy6F1Kvg&`8=f-u^<>fXBTFScj9+PIVS&a5R)uMf@kj^e@>Wg<-otd4U zb)R;mdLMZ^)>YF)44w+?RrmK47Kb(~=x{^v_Zk%X^-K?eZ?iBAV2x23hDK=|sB zn?!==&HyjW3jUS|4k37;Np5@K^VNany5du|z(qEO1Y97m3I{ha=;CmdSUh`3LlC!G zoZdRJrjfQlZ;@GBS9PY4_qsAOE&+h){79lAv|fz+EqUMg%TWYG-?c@MjR0(`j`OGj)Uj z%fb^EWvaX_EM8oDb;LC*_X<{P%`%9mHS6lNq{=F-mRwm!qhYG7S5tbtw9=FcGd zYG52P3{g5^?E!+UXBr5n3{e_v77?f#A1w^5=KH{2(n@H+l!28sk-ei@pDcM|Se_B& zLM7X^k2-4dONXpkwPthqzc$RPeztJY(U{V_z>9zkKg|2w78`|YtnjvSLm(w5R@ufq z+)dk(V(p?Wr0WQ~;XN5aPw3tsl{6SkmHWZ z5a9AQM}qYMcWE6Y$=XCY)ufT?%wBR^O&F@Sl7&}Fyat%aAyirGCW^gEz?9&4O4n5d zCY#4=aVs#n=}=r+0tN@QLXvVzURBKWnWchkfi$1kJ1fCy97>!V#?X_*y6WfE=V%Th zmk0=!omLXMX4+6!H%S?cxs)tyiIqs9qEt$Q8l{UWCR9lr4m6YrdYN>psdu!@6plQt z>q(7T>nwR4cZX516FO@4)J!FB5bk=um#)QCxun!+T~CXf)MnnNYo>Z$+kAiNM{JGK z>k#Q%xld&f`zu`IK9Q#DL>{^tSl$$bD=Ns#kc}O*A{|`i6U~Ls~nj~Ak9VCqR5Q*4#rhIhy58I=CN;lf9rOC#$~-mr79Ge zMfhn~lkFDXG4&V{`HYaR7~^PYAMWP83o~y%24Z?+!KTMl>BX zEBrD?tPgV&ky&P9cO2CVHm*z154lR~S{kcDaHBF%5P6JH?k%xVA z)s5G~eu{7{9CwL0YlpRcsMJj_3sGGifsU$?_@Gq9n0QrpR8MrUoHLL_2c@>P47NuI z42eb+n=CJ=1V5*c5)9pJqkGHqytCHaqM&!ljt^Mf^XC*LjM7TXPZOGzT_)mmRBoRM zP~1;ntSXJ6?-&WTTUx1HIr2chYcRLwJnSzclX7^_b;Df)n@_Y(hgv$=NSmw>qOTq{ z9vq!8I!+VK+1Ez`mUY|mA((hFDd7~j-&f$^8N(LiC$&RLPYD<2OBI91EXJ_(yP&xh zJ5*qa&GIg5gc+<99&TmmNh^g)CEIm1vS>bSPL%a?yIrGWsG$<0c$g4476*&lw>|q+%ECGu{SMonjfOE+Pp}3A_1CqOF zC2{tOGl%G!Ok5KL@MskYF}BW9vTH~7G1U<~iUVYz5#1Zq1w?d&u}&1&w)<-RuP zy!HGXlGjgn?QN(r{Siux({Wr%R#Q z3G-{+FfZ7q>8fo3wrssmmky~l`3lOkg*p}x9xmK^p{kk<)r_o^rkXsJIFx~!2C``0 z(pz`1jqB(*1J{|)<{)R1yVO-x;Qh+;A@P7sACjF{CGedli*_yGBF!ZH$zJG^oF{zV zi93no(2bbUs+M-Qp6r>s^w!!8!MmBe?yA~ho3vgceWY1Y6)>!m)~p?$eq3P z*4FjpD;&FgCuYJ8nW*Z`)qvaV~TVFL@HDWdU48-Ki2Y&X0ciqf>k07M4Ts>#y?l8qqm#Z zj0{Xx=x;hZ98S~`J8*Wp&kgNt#r!W;>ZVt?OT$g>#oFo6G@IiOjcg09puaS9#EUoj z67>Ks3J3IDNEFwc@jd(^D3Gp25q@#eHU)=^)IdxoP1CzbI5zFl!R%}xH3-n^V|7um zhYnb_BJddZ$Tk0+CASG!8kRz>>*@` z+NRTNXJvWJe3a87N!*Qr0Hx=0H@7z>3iK{k4tXJhbPzo2TC7Qm+AwZ1RpoYP()GAo zz$URM62$qCNY0I)npryuCG2!I2e`Jl=2sf?sugU3$Fr>c{QaxUDKKfsxIs00Q!CZ26i{C+OfahE5Yw{#VvU4{L>Z#4 z%I^5PQN$#~)?&A{tCdFKVKSw35_{7|^4=>T=?XbOEQbt3lUM9#>O%!!?-u*x%#e}Hz4+eh7Yk8)Q*^GFPw zH%?AWv9S!~(IReg^*|;Qp<3=@csZoRCJzMaN`fQmv2x>4l2v03k)S3t4@oFzu!)mE z*kT<~#@|zT7bufMcY`j*#9cnSoO8Zw6tpzw<-uwsxZ$&|%{XL_tqra|NeY^^$W@Gd zQNnPb37_oAbx>F_L_Qd9>Bde&$;8T$Q$;B2&g6MoC9dTtxv-)^9F~wJCHYMk*5YBc zh_6*>*e4De)}dHPff0tz(JBnRbuh@G2D%6wblxW%Cp~EI`9&yx>?F}e(CzeIy3qVu zsX2f6sqKMW&1X;-$nenAt!<;c3Brn?5ZcZ&9|*H)H)pn|Y?S^z6Wd!0{M+X>HxWV7 zX|<6dC2r78;VdUPY#R>SMW8}?Lzxs6n)Q^x#htSY+VSiP8atp(0*C6+u<3cr4|Hsy z=H+eavA3=#mn&K!`0fn+&7+@d)5`NG;E?KihEyyl4hYZ3*7ft>2~1e=x@Uyy1UP?s znBR(UdvCyHr45%*+So#W?Z$UP*ufn-N)eG_WLyz_hC5G@A>D03)D%F~bl--R3m0u+ z0wdcJci?FztBdgd@i&B9NHV0fEd1cnU7geAA&be92mU*UdQQ@z#zywPFt7>a3BGY1 z%@8-_N{qJbxueIiyoKl0?ygu+o>x&szw<0vlrBtvs#%+wbSPLw@(h8`Hnd>gL~c*g zY?IN^7iu>qx;F1Y_6#x-c8}YgpiI+={NR8jfMk*wiSW}XwHCIh{4>VPE%Xu|VMCGQQwC5M4;->iO1{zfsvG_gp;(M zlC44)7f;d|H!K^4&U7&<9(JR1#AFd{_s$nNa7S52=>(hXaIuk5c2%`T*gy;n!3Y8x zPC^#Jki#S;WYFY+=tY7GlKfIGhIu>}gB*CROE2A9p>ECWj>DInQXCMpjk|*OD-tdw z!B7)YwF*-6yM%BS)Ww%8@CEj^uGhsmK!cN9Q@V#YOW-BK#`Utd1|ugjt~*J(XsubP)xn#kSUDnx=VzkA-_xw8kNU2Mxth%Prx2|vNXOMc44_=fJHgkKa> z9(U5&$aexqU9uC-@T%F9bOA_hL9$~wqSA(&IBy!?X&-4Q z`cP7u!IEX053V{xfkT!`o@UVPZwNM3g{6c{`WSeSjV7U)YbMWKM!TGpTS*$%4SLB? zf?kXvd85d8zgg+Bi0o-dMxjAVZ}mOZ5g{A3hasTQdFito(_7cmDM(6bO+e9DGRjG6 z=%`?0KA{%mM@(B?&|e4R6ckRh7sLg@xVx^7=;~2Ao)x%Z^H+PM^_)W!OV?3k^@0XV zHM!Qx`jXpV_Kk^=Ig~YsR9z7gCjm$+h_ zgCC`BtqDdN-E!@iGFUh531qj3gHE3WP$4 z3@}e1fpv(+ZO3dt;NeNo#S>WK!3U+fnLqNNTh-t`oq*C7dpATuYe%vNED!!@h%R!T zAA(*DQ9vj^gm^N<7(f$sMF8T#5Muy(F+|hC4E|h*F#x?6q5#k+`-w)LqW_K#7gT+o4HheD$p&rKr6r)gTY2l0-z_z8CSQ;bD%6u z#E8OKZ#x5*twx|xzlOdK1ceWNBK*Gt|4V85$ ziunqMNFb*qSuH${1+oA=>jJ+ydP#BGdVbAXF2u=1M7T`T90SY?X6nE1hz2VN~`# z;wl9awB?1NF)3SRRha^9i>cdaP7EPk<#~a<8@I36;Tb_$K@|AxLR?hIct9GKn2)D1 z9=ZQQ38>(4@KNCOBNZL>q@QXGXai0T;Yg8qJd2-RS)?Hm8jd(rS(05w()V-^9k&tD z_KHL1l92s|p1EWq$Dwj4r0(VrC(t!-$<^DxUGbGL2FV$#k2+R3SI&vdDme`@ie!d> z5_M?Yb#S;k-!mTo58_svaq>tZI(VogVE0wg9I60Vk7yGqhT*(!^hX<@Ke+22bgyZy zu%xVOw2R8r($hema?Ks~BVru#GHxE&O42=;Ye6|1?qX#9TfZzRpxLJpZrCH!l>7@- zXW$^v3L=^mnvNSgd5m(mTsdM(xw6Z6WEfHsijWDXk`3ZH7ofit$c@oa<(Fa5N0S`|or(gpexzL^k>AcdDPJbtl!N zdNB*Chg8(C26Bg5_|yv9pvYB<;K7mZNj`TS63U!T_M*vn3jkqsxSPnKR-9=_;3Fsb zxceVzaT2IEiKs`J!6FYg{Kexej2?9?y|vy?6ytrbVw0JB`+KY3pcz{>5NVicMEQ6> zYqE-x1r+cnCl-(rg%Rs&3PbaPgF=L)4dsK|}#mdo0d!vbGk(1Xcd5b|B^Vier<;l|;V8U|`bi2K6!Dd|DF-c(_RY+`u zdyUi}leh3rr>~NXzN;6GrL*n--2=zQ9r&NTZ)}Y9|FsWRwrWS=Ne+c24clUaq>R8G z%0){~&~U;k!1j)?dg)RSq9x@Sp;}azBLl6UHZHdSP2_+dK5u`kk;Oz9I5G0vyjYx;G;>|Vky%WlDk#m{S zwNNT8E{^il$(j_ia_VF`t4mUFT{~)02#e99<4K|1!n%p$5ehEubU7BuL*1Ua+qS|t zbh#>3-7(~M*F;;pA&MJqGrR$iPLvLYv7?BNed4IWGbbqI`0edP!fn5!9mB~=-aSi6 z@4#}^iiIJdp`|g(7i)4zKF^w*5po7@C3Qq{1iCYw9K^C=o~F0v640tUeO>!ZO?YSF zc@broXVBx47;BiP$0vh@SkM%>Kh+oEE7?I$Jz{~7{1?k9Yo#Y2aarKcx9bC1YrbFD zPn!^62HkOKwdh0S()%4~Y6x@lS3E?cGnMXU^LIRkKqPX#QxRq1Hj5RX^DhY9O!~bxw4dl-jjFsNKUR;?uu-lkDWV3N8NeDMh+g$ zeYf07phPmqmJ%`ryB=|%62NvLAE z5i%t-#Bs(k%kTD#7fZwT0B@_Ylx1V$odv<8=g@(yp7 z8;>%F-ru9_4yt7q+fO~Dr}s!H#usdo&19{byKG6({_PIoxloqclH!xvK8!anR z5NOV*!AN63QVqz1>_riG9eGT1-7LP9*Big?8W4`~6J|O?;uLT_Ia2P}12HNbkrO@X zW3t3Sr%9?Y(xr0a7EdjxlH?=ManwoKI4AR;1Gv87;dy97CPDWR#?S5i=O#>t4_3?| z5>JG9glB~ROwfquY+bePQv?B##-xeYC(TI=IzQHmGM#5kszajB$&>2f0h~X1QdPLR zee$Fx7(2DrXpLL&>yh6t+MIMuJp=6Y}UMn;`W=abdVo-af#y6yJNlGsZp;U>p@-wYm zMl__di{1=d8(!`69MGi0$(ZdA;ORfBvP!N|phd3KXbbL6QN%e=MQ>0$yYOv)3R%}#zMLXUAxrPMfj|>nc*ugD&yCGElcXm<4A5B# zoyM~^gCl`oEnj#BV7k{&gStp%5}#b7Jg*}{Zk(PGG!kKcQyDcUC_3j5+y!E}Ho(Lr z_W;Q#$FqCDmco5MxyjR@4?~jmL4IIE)q`Nk~O%gK)gKso?7XG)RkNLPWW5;$aVFgc4uB9xKjkWdrs@%M`iewc0>q1Eb{d2cKg5d${EZ;7#PMt#I|bs&IA9)y-vT!=Gwz}? z1rSZl3n;3K;8t02Nlq+e1Qjw97hUAuP|vzA$lRRtv?p)i=Nkw*Oz4IQcyb*f;nIu1poBKt(p* z5JkVk70CBnC+gGxPfk<~_UQ!a58rn*QQS{O@lyOBOwh&uy$PzRnSlSWvy=%EYJX*Z zVos93aR<40Tq=d(YB{z24EGtyS+xdI#jI@t(wJLY$?cV%UQv$!EXn5;_Vd^i*@?S- z0FPQY-hWfcC}F`DOi;X#r4o6@$hi|F%LiR=y*z3+kzQ~x27}{rQDTFGs6p?mOLl-f z37nX_62|21UUH*6e`AC+B~8uzWKYC9fm{t?dHlX*H2t)CYqQ1weBqU7B~SLxTWh8m zpzS|b6p@TfbybnH3q@`iIQGhRNOJSW#hs@?;oi_Z(w{1b#AH%9MnrPiRp5yGa?3Wk z2}g&zNtjLS?|@w|?=8nS+Q}xya_s-Lt%nIh-JBe9kKbVyK3 zgwZoXd)g~F`>Jt5mXcPvA=XLWuPEg%h2^!bNB_r=?W@QxrL$74Jy8!eU?r1&AJgr7 zNyH>SPb_i-7euI}+wz!EP#)1kGe~f$ybBEN|7e}BITch3Pk-J0@AyF`Qh!YSky@)9 zA;uqlp+^QubFZQi|9(8aC$E7Rb;g4_6wHQaL!tX=;fc+}quvnrM~|B2&Kr+63A;D` zNo9Aee1h)AET599P`+Y{dQ*BtEhqMgESl;b&E!2oTs88la$O4ex+YXj(#DmWcQEsC7;m_kKI(v~E6Ku(_0|tCwuSw)h3e0X@FCUGC1?6X|&i>pvA$lkrsp&~&M5&u_ z@Lpir}(EedFR&CSz&v3v-x!dqPm?LNmb=boxkZPT@xQBB^Mh zHx9f$qsq%?=IhUBab%GX2rUke)B6>YFvpVk50cM2N!F1vd*bneR*ausFfbguqjP=3 zWeJ;vp0$+r23{O!HryX3P0W$CNEKnEH`?yLG^hvb5aB~>f1%uc%Ess+H%UIJGblNq z5%qG4gY^R`_`Y?0ED%Y-(@Vw^g;P!FM2cL62cQuyDeQ`t`~14{QRQbUc#e@GTt(Ow z$z3=arS;bZHo;~z1nnY-OOH%8;oFh~O*1f;~{wP|D~?1<3Mi@)U#TRaym9yNR8sDna9 zY6KMG2o|xD)*3-cgXL9?-oCwkxC~1b)SfMxsZcG8OGx`^m>{@{H$b@ z9F!^OqEMkPJ#i&inG$SC%vn4YuZM4(h=*NkF3%$uTiJ11a80XM5v2YwUeEK3>$e_um)OD{Cr|VgyTpsgR%pnjkZpc{*F#{V9Q~qG%I@ktU!C2b zd%*BZs1YCRrXGZp>jemZ6~RT^MXjIwmKg0n65Wa$wrwKkOV#QaAj_pu{(>L9AJ){a zyjsMkTL*Jq)f$ge7-j_r!)!;y9mM<9+F#@ceN^p?LOa;n2tMO^A9#kL;W$I-*&?yA z$*qw@WAWy#QOhTYmi_4!yLfI+v`eKyt7ocO<(#A`;1`ea#cnpgrx%8o5*=E(wL%%~ z3v$_&zg5v_sw{=a(ylAwnX)C4dhQxg%}Vk&okPkhw5ycwwDNR1o=X5kT;-6`MlBt$ zLZQAX@+dthROAd&I;c(bCa}^M(~RXo?sKD4)3yE13y#opW!~eFwWWJfP(0& z_Bjw~4Mt#aUC?QUr0iISEReDh!DxUL?~`@(X*#g@+f8eg?qnCho1e$Hg5y)VHxW#( z(^8*B=@e8ezc`?S>sSSs60JyCWCd2E8SWZwZymIR(_oZ5N2|u*Zlx$DI@$~%CKWw~ zm7-Dp3ARHlhnBrsl?D^l5PG&wXk}HF$%Tb@Qp_#u|F{B4vWYgpTT$5t5qf;s=-~&R znH#1Ex>Z6v5QmEqJ73i!o z@x+8O;YN@v4tt|SMg>yQMB@D_10a1BW|mN4N+go>m^woqL_#dytLB=2<%Gp-Qraq# zp;QcPB%QYWu+5L1wZfx7PVCb_`V&>62Avj@2ZreYj6}c}1iRMtHTk3$hn|uPbJ1Vv zxvbUwjygcIujoNpTF$DaRs@X~7onkmrj-Iwlj|BG=!!_a8vY$EALu29BfMQGeL-pw z{RYtwS9=n|AqxbA6*#UUV{UL6sx?ZOMCBpOKuO28`Xa@M4#$jG;n~PF zDJc2t0n!s{d{!uRgv3%P!B0)~z^9kDpa}w{6l0n!U+Aj8r>b z>Ddld#tbs#sHQ=7BumNq4W1+9`J@fwAB5~9HTX+G{o>!QJh#ZdYdQR_M!Qj+_Qwj+iO2;;cQd5=vBb0qOTZ?-RH<%e zHuoK9PtuHjmQ3Bjo7SA(VO6^1m^(GUVCryW5XAFNh6K|tOsER*PA9(->$YH_hly4F z&*1fGKN&W_(^qM-O=l2k_@kMIKyfc~(pomGYo*uFHOtOY*cJ*TS#=ijDNv2V?4<|F z3>z?M9IlmD-t`GYb=9a#;hAlW+AyA57dc{W1ADcLTY6(T`Qpx@ut_o?i?f3D=tHUs&Kg8kcd`lmHMH;n5YTE`q@JC z7P@wETT>u&HNv;hhe$3@6l7I6qd?Z>1%%JO+NEtCjxXWVO#iy&2c2Wc=izotzFZiR zxZElJRQkyKtvS6WzdVm8p}BtJ_P~8hGRb2?BLldnG_?8JqddVgzg?3&KvCGZsgIyj zpXk8RH__=7RXq(Pp{E=%@^kLpLtg>`rW@!fKnY~XQdE3QIJEe@kq0FW_64pvdQCApnFUY)cEiqnjjr@Aqf`J z^U9B{klTuarMJ8)xMq`9ER5f9>ovw@^}OF~(Kv0oiX!3V?a;x+TsHNmEr%3JWlKt4 z@jcaoBx-n6b#_fy>B_MscuLkMa<=+-9%xe6P&TzFvhx^s$fUty@+PmWnE{hGDe+C) z-rBZN>7RL8LpZ7&14RujS~nr9oVr&5NSBiKQrC%NB!D;wgv?o*qrf>M5`mhhD`5CF zRczew_QG8Ml}d{gblr?Jj4+#u#*{NIq3vt}l)H?$K-j1iG&!QS+y$h5k~oR(C|ra| z#{sjagoO_W+dMfEdMa369x9ze4|!2g#8nV^&A5(Nw;xvWQCyT+6HC=#fx{sj9fQsdMTd+rhkEtwZHb9L>1`x~TvA8qa=<#l7*IFbkP7+w2GeiqJc2u`utqHAWbg$9w zu-0SLtW}4r8jh$tj5Qv4JWn-5K7`ci^vM09bb91To^9FSEk{Bq%kUI9$09Wsznh4+ zQ^i9~P%!%Ikb51g+*bpiZP-l&He2EzLqTm0Fxf|kj&|x>fjxvp?@{D9ro)Oa6 z!YImvW0EdLlgF--lhW}XX>+)dOG<{#nl$;}!K0A>J!u;bx?YeTRg>zYmvXg`l9+d+ zvj*JJu&Y)&%P7f+GQ$q}45K)rq`e*ze-6^|T=du?C(^SY;DT31V7BUb&X+OMk>;k; zF^^lF@UCmU@IQxAJsJ-A#0z2k+&1huPsl{aCz(o>&iBzAoiS@O=eb?u(j3DBG`Q#h zMj#aVzz7ppQqtIDBd%)ct|I#HPAQOEQ(ATS!~sOTIQu z6f3Miq|XZAqUCEyK4%m)f3m(b2tJ)YP{z`~>*g$pp58AWJsaz0?H|7=xMY2Q|W7YLz7!fBSY57{D7Y3nM; zyi@(pUwTFvJ@wP*i$ESvPIH@lSg4jt zuOj&zAYR+8jhA}$JIWx;MPa0ROiEO1QQ^YXnhTRHws(?3no4?mn^a9jx@^kmZst|p z%?vkuw{CWZ&?dT#E1flwRG55l-tSb?U@4(QDP3$?l3J7&EFuFz(l%V=%%S62)Qe|v zh_**zq@*P2?e3uDVq`o#{fnbveJj-`y@%3aJ6$&21)Q@d?=^vvu9;pxSJ9{^M?fJ4 z(3F5vU`uyFFpo_IZYm8oC9iKOyQ8o`1z|1=1-qD&EON^r3d^#+GTdBvir_HgB(Cz| z6#yZ^Cmp#-vrV+L7487Z!O3e!>41q`b*MfiRDg=2mf}BDP6bwqsOub4d9wo16SYXA zPdprPlpG)l0#nhV`YHw3gpl^8B(d32xTe4u__)H)a#m!(9`4aDiAww z!d==fy>YJx*DY?R2bc|inK0C)^|0DObD$ZW-5d7TN5>}}p(Ezdtm?9jyD@v{9Yv!_ zm{fVovcCLrC>souWPlWb1#aZF5}(E}8;qOc=dt)b+tV5>JV*4kv|Q*vstB!jdS!YZV`^2hV`v<@9$jh zeO2j^6*?aNa#qrI_)A`Zi-mIZ;OUXTxT6pokfzDc<9-YqKAWsY%vSYk&3B;}u5nWr zs{d7<>piplZ%2>uXA}oLcKXhHCcW=<^cZFnpBCnNzuVg4eYJ4|ea81QxYv$*YYTa} z5(bsJ>ip7RQxwE&47Y&$RpSvt2qm@dDEu1(A%uuEM^7VnG@qO21tWzw={Qxt<`1D& zp9U1_FI6CLTIEk!!zSSmG{Dmcb9b71hIbmdLBgv_yeDHw1jT`gf@PE$(0>!2{M^J# zlcbdw$$dM=Y`<6onmMJqmAXRDVf!ND3ZesO^PXA4O-vP^DXqGu;aC6|e_cU5|3)4O zqDd*!scNCQv^i2^XtcReX%QtuV<9xEjb|oszUPucE!j+dXG)_c4{YaMHdRuf0kT5w zYYk#)bOi`cD9`&!Tj>%lx`N^^E*eO?1PN0MzuP1oAwjC>f?dgT&2~u|YiH$xtNoXi z^j13Tni7S%hzu<}%Ov%iUNH2E>rqj-sikRZ3shSnX-!pzj?uuwee1U%aQQQ2>pWf0 zly2lo4N~4PM52+Yo`k0^x&v$!NI~+K23v0xHsP*}SK+%x=kW9N;tMBhko8m{qsQiH z7kAMwn?Hk0v>G&-Dl`Rofy6T!qgUlX77GnSggEG+7kZY8;wN|96R*8zx>DE_M zB0-H+K3C{;c?=c~2Si@cgV?<73?PCPUiNO&TJzKJ8yZ@CB{~BYB3oc@#sNh2Yy#OF zT&DPjHff%0wg_KLy^7p%Q`2R>N@J5C0!j5~+pRaJjGz13}@U5%q6TON~;h{%drcbj%Wmujr0JbvU6+_zV6|$kTz7k!j*ek7mfeM&RLHs<0VnyM4vt_rQ!6eXNe3@d+v zOWfCYpWHv^R7amEQ?}|-jS(|$W`u_64NGGmuV-+w?-%y+fxy302ZjmK>jT~UH-&$R z?<&@f?_9lkVY;$AzE?N^Cmu7J)TwJ$dAPg^R0G(qCL#w97@F@c1Of00m_3H7LDbyU zR+$L~CmxcZ08tGoB)UlZO{3e1y?&e}lyiOWXC{v@`p0IoW~h=0q=#V4vny3L`bCY` zJo~a!wNZvSz7(2jSi9)1f|EI{uats77ioSC{h3vVMI%E|96U?})Mc9_DovP0C-D>u7OJdoMe?RVYS$S`QhuEzHrW7BLuyvf zST>3mQb%m%PSm9!;S4A{I_j&9+$1({8V~>O4&C?>VN)zik{x@PA}u$aN1osc5qi`? z5Mm*nu*kga=U;XYu8c;=RX^qRpsKs2r}L3B49Bs;CTK>n@bvdV$bob&IX{2nE0@B2 zb{*5plJYPji(u~|mog+c(>!>Wx@@#Yc*V33q5hdQ?JqtU5sdhF*y$pEc1h!wpHy}0 z09#$Lj=xL+CPoOzLZE6kENYMWfjl}Cu#FL;-((0PjTV8+IiAKqTG9EL{DQeWw7-R? z{zDo6Z*vb}N+R0!!g~fLjb5M@oDy7QEvSHMK)9mF+|a}e2$LmSZnXT!G$H4MqJ<&C;?!a*Elct9tFj74L z=4DpHV-WbMQCbpVo(~UI0A)x!^rM5Pp$4#Xh@0OW^xK1PO{&gM&CRdWmQi$~AR`@Q jIl9)Hh`a}3_ijNtNs?3u8applyTheme(); m_documents->applyTheme(); + m_msgList->applyTheme(); m_doc->applyTheme(); + m_msgListTitleBar->applyTheme(); // QPalette pal = m_noteListWidget->palette(); if (isDarkMode()) { @@ -325,8 +327,10 @@ void WizMainWindow::applyTheme() // if (isDarkMode()) { m_notelistHeaderSep->setStyleSheet("border-top-width:1;border-top-style:solid;border-top-color:#474747"); + m_messagelistHeaderSep->setStyleSheet("border-top-width:1;border-top-style:solid;border-top-color:#474747"); } else { m_notelistHeaderSep->setStyleSheet("border-top-width:1;border-top-style:solid;border-top-color:#DADAD9"); + m_messagelistHeaderSep->setStyleSheet("border-top-width:1;border-top-style:solid;border-top-color:#DADAD9"); } // //message list @@ -2188,6 +2192,7 @@ QWidget*WizMainWindow::createMessageListView() } else { line2->setStyleSheet("border-top-width:1;border-top-style:solid;border-top-color:#DADAD9"); } + m_messagelistHeaderSep = line2; layoutList->addLayout(titleBarLayout); layoutList->addWidget(line2); diff --git a/src/WizMainWindow.h b/src/WizMainWindow.h index 0865023cd..9be678cb5 100755 --- a/src/WizMainWindow.h +++ b/src/WizMainWindow.h @@ -187,6 +187,7 @@ class WizMainWindow QWidget* m_noteListWidget; QWidget* m_noteButtonsContainer; QWidget* m_notelistHeaderSep; + QWidget* m_messagelistHeaderSep; QWidget* m_msgListWidget; WizMessageListTitleBar* m_msgListTitleBar; diff --git a/src/WizMessageListView.cpp b/src/WizMessageListView.cpp index 06aeae8a2..eb0e2d6aa 100755 --- a/src/WizMessageListView.cpp +++ b/src/WizMessageListView.cpp @@ -341,9 +341,6 @@ WizMessageListView::WizMessageListView(WizDatabaseManager& dbMgr, QWidget *paren QString strSkinName = "default"; // FIXME setStyle(::WizGetStyle(strSkinName)); - QPalette pal = palette(); - pal.setColor(QPalette::Base, Utils::WizStyleHelper::listViewBackground()); - setPalette(pal); setCursor(QCursor(Qt::ArrowCursor)); @@ -405,6 +402,15 @@ WizMessageListView::WizMessageListView(WizDatabaseManager& dbMgr, QWidget *paren SLOT(on_itemSelectionChanged())); connect(WizAvatarHost::instance(), SIGNAL(loaded(const QString&)), SLOT(onAvatarLoaded(const QString&))); + // + applyTheme(); +} + +void WizMessageListView::applyTheme() +{ + QString style = QString("background-color: %1").arg(Utils::WizStyleHelper::listViewBackground().name()); + setStyleSheet(style); + setAutoFillBackground(true); } void WizMessageListView::resizeEvent(QResizeEvent* event) @@ -982,14 +988,6 @@ WizMessageListTitleBar::WizMessageListTitleBar(WizExplorerApp& app, QWidget* par , m_currentSenderGUID(QString()) { setFixedHeight(Utils::WizStyleHelper::listViewSortControlWidgetHeight()); - QPalette pal = palette(); - if (isDarkMode()) { - pal.setColor(QPalette::Window, QColor("#333333")); - } else { - pal.setColor(QPalette::Window, QColor("#F7F7F7")); - } - setPalette(pal); - setAutoFillBackground(true); QHBoxLayout* hLayout = new QHBoxLayout; hLayout->setContentsMargins(0, 0, 0, 0); @@ -1038,6 +1036,23 @@ WizMessageListTitleBar::WizMessageListTitleBar(WizExplorerApp& app, QWidget* par connect(&m_dbMgr, SIGNAL(messageCreated(WIZMESSAGEDATA)), SLOT(on_message_created(WIZMESSAGEDATA))); + // + applyTheme(); +} + +void WizMessageListTitleBar::applyTheme() +{ + QPalette pal = palette(); + if (isDarkMode()) { + pal.setColor(QPalette::Window, QColor("#333333")); + } else { + pal.setColor(QPalette::Window, QColor("#F7F7F7")); + } + setPalette(pal); + setAutoFillBackground(true); + if (m_msgSenderSelector) { + m_msgSenderSelector->applyTheme(); + } } #define MESSAGELISTTITLEBARTIPSCHECKED "MessageListTitleBarTipsChecked" @@ -1281,19 +1296,26 @@ WizMessageSenderSelector::WizMessageSenderSelector(WizDatabaseManager& dbMgr, QW layout->addWidget(m_userList); // - setStyleSheet(QString(".QWidget{padding:0px; background-color:#FFFFFF;} \ - QListWidget{border:0px;padding:0xp;background-color:#FFFFFF;}")); - m_userList->verticalScrollBar()->setStyleSheet(Utils::WizStyleHelper::wizCommonScrollBarStyleSheet()); - QPalette pl = palette(); - pl.setColor(QPalette::Window, QColor(Qt::white)); - setPalette(pl); - connect(m_userList, SIGNAL(itemClicked(QListWidgetItem*)), SLOT(on_selectorItem_clicked(QListWidgetItem*))); WizListItemStyle* listStyle = new WizListItemStyle(); m_userList->setStyle(listStyle); connect(m_userList, SIGNAL(itemClicked(QListWidgetItem*)), SLOT(on_selectorItem_clicked(QListWidgetItem*))); + // + applyTheme(); +} + +void WizMessageSenderSelector::applyTheme() +{ + if (isDarkMode()) { + setStyleSheet(QString(".QWidget{padding:0px; background-color:#272727;} \ + QListWidget{border:0px;padding:0xp;background-color:#272727;}")); + } else { + setStyleSheet(QString(".QWidget{padding:0px; background-color:#FFFFFF;} \ + QListWidget{border:0px;padding:0xp;background-color:#FFFFFF;}")); + } + m_userList->verticalScrollBar()->setStyleSheet(Utils::WizStyleHelper::wizCommonScrollBarStyleSheet()); } QSize WizMessageSenderSelector::sizeHint() const diff --git a/src/WizMessageListView.h b/src/WizMessageListView.h index c8064b228..98eaedfbe 100755 --- a/src/WizMessageListView.h +++ b/src/WizMessageListView.h @@ -62,6 +62,7 @@ class WizMessageSenderSelector : public WizPopupWidget Q_OBJECT public: WizMessageSenderSelector(WizDatabaseManager& dbMgr, QWidget* parent = 0); + void applyTheme(); virtual QSize sizeHint() const; @@ -120,6 +121,7 @@ class WizMessageListTitleBar : public QWidget Q_OBJECT public: WizMessageListTitleBar(WizExplorerApp& app, QWidget* parent = 0); + void applyTheme(); void setUnreadMode(bool unread, int unreadCount); bool isUnreadMode() const; @@ -165,6 +167,9 @@ class WizMessageListView : public QListWidget public: explicit WizMessageListView(WizDatabaseManager& dbMgr, QWidget *parent = 0); + // + void applyTheme(); + // virtual QSize sizeHint() const { return QSize(200, 1); } void setMessages(const CWizMessageDataArray& arrayMsg); diff --git a/src/src.pro b/src/src.pro index 51aaff3bb..f6e4ef119 100644 --- a/src/src.pro +++ b/src/src.pro @@ -34,8 +34,7 @@ DEFINES += USECOCOATOOLBAR # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 -TRANSLATIONS = ../i18n/wiznote_zh_CN.ts ../i18n/wiznote_zh_TW.ts -CONFIG+=lrelease embed_translations +RESOURCES += ../resources/wiznote.qrc SOURCES += \ mac/WizSearchWidget_mac.mm \ diff --git a/src/utils/WizStyleHelper.cpp b/src/utils/WizStyleHelper.cpp index 65e75e4cd..3647b2ae3 100755 --- a/src/utils/WizStyleHelper.cpp +++ b/src/utils/WizStyleHelper.cpp @@ -288,13 +288,16 @@ QString WizStyleHelper::wizCommonStyleSheet() QString WizStyleHelper::wizCommonScrollBarStyleSheet(int marginTop) { + const QString bgColor = isDarkMode() ? "#272727" : "#ffffff"; + const QString handColor = isDarkMode() ? "#88686868" : "#DADADA"; + // return QString("QScrollBar {\ - background: #FFFFFF;\ + background: %8;\ width: %1px; \ }\ QScrollBar::handle:vertical {\ width: %2px; \ - background:#DADADA; \ + background:%9; \ border-radius:%3px;\ min-height:%4px; \ margin-top:%5px; \ @@ -318,6 +321,8 @@ QString WizStyleHelper::wizCommonScrollBarStyleSheet(int marginTop) .arg(WizSmartScaleUI(marginTop)) .arg(WizSmartScaleUI(3)) .arg(WizSmartScaleUI(3)) + .arg(bgColor) + .arg(handColor) ; } diff --git a/src/widgets/WizAboutDialog.cpp b/src/widgets/WizAboutDialog.cpp index 56e1335f4..dbcfcdd4b 100755 --- a/src/widgets/WizAboutDialog.cpp +++ b/src/widgets/WizAboutDialog.cpp @@ -61,7 +61,7 @@ WizAboutDialog::WizAboutDialog(QWidget *parent) textCredits->setHtml(strHtml); QLabel* labelCopyright = new QLabel(this); - labelCopyright->setText(tr("Copyright 2011-2019 Beijing Wozhi Technology Co., Ltd. All rights reserved.")); + labelCopyright->setText(tr("Copyright 2011-2020 Beijing Wozhi Technology Co. Ltd. All rights reserved.")); QVBoxLayout* layout = new QVBoxLayout(this); layout->setContentsMargins(0, 10, 0, 10); From 38fd473068ad9d8aaa87ef56cace938138bd3c47 Mon Sep 17 00:00:00 2001 From: wizweishijun Date: Thu, 7 May 2020 12:32:09 +0800 Subject: [PATCH 06/31] =?UTF-8?q?=E5=9B=BE=E6=A0=87=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=20=E5=90=8C=E6=AD=A5=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/WizCategoryView.cpp | 6 ++- src/WizCategoryViewItem.cpp | 83 +++++++++++++++++++------------------ src/WizCategoryViewItem.h | 3 ++ src/share/WizObject.h | 3 ++ src/sync/WizKMSync.cpp | 6 +-- src/sync/WizKMSync.h | 2 +- src/sync/WizSync.cpp | 4 +- 7 files changed, 60 insertions(+), 47 deletions(-) diff --git a/src/WizCategoryView.cpp b/src/WizCategoryView.cpp index 5e42a2497..d3fcaa6bb 100755 --- a/src/WizCategoryView.cpp +++ b/src/WizCategoryView.cpp @@ -1325,7 +1325,11 @@ WizCategoryView::~WizCategoryView() void WizCategoryView::applyTheme() { - + for (int i = 0; i< topLevelItemCount(); i++) { + if (WizCategoryViewItemBase* item = dynamic_cast(topLevelItem(i))) { + item->resetIcon(true); + } + } } void WizCategoryView::initMenus() diff --git a/src/WizCategoryViewItem.cpp b/src/WizCategoryViewItem.cpp index 88e324105..f9dad9cf7 100755 --- a/src/WizCategoryViewItem.cpp +++ b/src/WizCategoryViewItem.cpp @@ -63,6 +63,28 @@ WizCategoryViewItemBase::WizCategoryViewItemBase(WizExplorerApp& app, { } +void WizCategoryViewItemBase::setIconName(QString name) +{ + m_iconName = name; + resetIcon(false); +} +void WizCategoryViewItemBase::resetIcon(bool withChildren) +{ + if (!m_iconName.isEmpty()) { + QIcon icon = WizLoadSkinIcon(m_app.userSettings().skin(), m_iconName, QSize(), ICON_OPTIONS); + setIcon(0, icon); + } + // + if (withChildren) { + for (int i = 0; i < childCount(); i++) { + if (WizCategoryViewItemBase* childItem = dynamic_cast(child(i))) { + childItem->resetIcon(withChildren); + } + } + } + // +} + void WizCategoryViewItemBase::drawItemBody(QPainter *p, const QStyleOptionViewItem *vopt) const { bool bSelected = vopt->state.testFlag(QStyle::State_Selected); @@ -389,8 +411,7 @@ WizCategoryViewMessageItem::WizCategoryViewMessageItem(WizExplorerApp& app, , m_nUnread(unread) , m_szUnreadSize(unreadSize) { - QIcon icon = WizLoadSkinIcon(app.userSettings().skin(), "category_messages", QSize(), ICON_OPTIONS); - setIcon(0, icon); + setIconName("category_messages"); setText(0, strName); m_nFilter = nFilterType; @@ -603,8 +624,7 @@ WizCategoryViewShortcutRootItem::WizCategoryViewShortcutRootItem(WizExplorerApp& const QString& strName) : WizCategoryViewItemBase(app, strName, "", Category_ShortcutRootItem) { - QIcon icon = WizLoadSkinIcon(app.userSettings().skin(), "category_shortcut", QSize(), ICON_OPTIONS); - setIcon(0, icon); + setIconName("category_shortcut"); setText(0, strName); } @@ -814,8 +834,7 @@ WizCategoryViewSearchRootItem::WizCategoryViewSearchRootItem(WizExplorerApp& app const QString& strName) : WizCategoryViewItemBase(app, strName, "", Category_QuickSearchRootItem) { - QIcon icon = WizLoadSkinIcon(app.userSettings().skin(), "category_search", QSize(), ICON_OPTIONS); - setIcon(0, icon); + setIconName("category_search"); setText(0, strName); } @@ -839,8 +858,7 @@ WizCategoryViewAllFoldersItem::WizCategoryViewAllFoldersItem(WizExplorerApp& app const QString& strKbGUID) : WizCategoryViewItemBase(app, strName, strKbGUID, Category_AllFoldersItem) { - QIcon icon = WizLoadSkinIcon(app.userSettings().skin(), "category_folders", QSize(), ICON_OPTIONS); - setIcon(0, icon); + setIconName("category_folders"); setText(0, strName); } @@ -887,13 +905,11 @@ WizCategoryViewFolderItem::WizCategoryViewFolderItem(WizExplorerApp& app, const QString& strKbGUID) : WizCategoryViewItemBase(app, strLocation, strKbGUID, Category_FolderItem) { - QIcon icon; if (::WizIsPredefinedLocation(strLocation) && strLocation == "/My Journals/") { - icon = WizLoadSkinIcon(app.userSettings().skin(), "category_folder_diary", QSize(), ICON_OPTIONS); + setIconName("category_folder_diary"); } else { - icon = WizLoadSkinIcon(app.userSettings().skin(), "category_folder", QSize(), ICON_OPTIONS); + setIconName("category_folder"); } - setIcon(0, icon); setText(0, WizDatabase::getLocationDisplayName(strLocation)); } @@ -1040,8 +1056,7 @@ WizCategoryViewAllTagsItem::WizCategoryViewAllTagsItem(WizExplorerApp& app, const QString& strKbGUID) : WizCategoryViewItemBase(app, strName, strKbGUID, Category_AllTagsItem) { - QIcon icon = WizLoadSkinIcon(app.userSettings().skin(), "category_tags", QSize(), ICON_OPTIONS); - setIcon(0, icon); + setIconName("category_tags"); setText(0, strName); } @@ -1089,8 +1104,7 @@ WizCategoryViewTagItem::WizCategoryViewTagItem(WizExplorerApp& app, : WizCategoryViewItemBase(app, tag.strName, strKbGUID, Category_TagItem) , m_tag(tag) { - QIcon icon = WizLoadSkinIcon(app.userSettings().skin(), "category_tagItem", QSize(), ICON_OPTIONS); - setIcon(0, icon); + setIconName("category_tagItem"); setText(0, WizDatabase::tagNameToDisplayName(tag.strName)); } @@ -1186,8 +1200,7 @@ WizCategoryViewStyleRootItem::WizCategoryViewStyleRootItem(WizExplorerApp& app, const QString& strName) : WizCategoryViewItemBase(app, strName) { - QIcon icon = WizLoadSkinIcon(app.userSettings().skin(), "style", QSize(), ICON_OPTIONS); - setIcon(0, icon); + setIconName("style"); setText(0, strName); } @@ -1201,8 +1214,7 @@ QString WizCategoryViewStyleRootItem::getSectionName() WizCategoryViewGroupsRootItem::WizCategoryViewGroupsRootItem(WizExplorerApp& app, const QString& strName) : WizCategoryViewItemBase(app, strName, "", Category_GroupsRootItem) { - QIcon icon = WizLoadSkinIcon(app.userSettings().skin(), "category_group", QSize(), ICON_OPTIONS); - setIcon(0, icon); + setIconName("category_group"); setText(0, strName); } @@ -1270,8 +1282,7 @@ WizCategoryViewBizGroupRootItem::WizCategoryViewBizGroupRootItem(WizExplorerApp& , m_biz(biz) , m_unReadCount(0) { - QIcon icon = WizLoadSkinIcon(app.userSettings().skin(), "category_biz", QSize(), ICON_OPTIONS); - setIcon(0, icon); + setIconName("category_biz"); } void WizCategoryViewBizGroupRootItem::showContextMenu(WizCategoryBaseView *pCtrl, QPoint pos) @@ -1514,16 +1525,14 @@ WizCategoryViewGroupRootItem::WizCategoryViewGroupRootItem(WizExplorerApp& app, , m_group(group) , m_nUnread(0) { - QIcon icon; if (group.bEncryptData) { - icon = WizLoadSkinIcon(app.userSettings().skin(), "category_group_enc", QSize(), ICON_OPTIONS); + setIconName("category_group_enc"); } else { - icon = WizLoadSkinIcon(app.userSettings().skin(), "category_group", QSize(), ICON_OPTIONS); + setIconName("category_group"); } - setIcon(0, icon); setText(0, m_strName); } @@ -1828,8 +1837,7 @@ WizCategoryViewGroupNoTagItem::WizCategoryViewGroupNoTagItem(WizExplorerApp& app const QString& strKbGUID) : WizCategoryViewItemBase(app, PREDEFINED_UNCLASSIFIED, strKbGUID, Category_GroupNoTagItem) { - QIcon icon = WizLoadSkinIcon(app.userSettings().skin(), "category_unclassified", QSize(), ICON_OPTIONS); - setIcon(0, icon); + setIconName("category_unclassified"); setText(0, PREDEFINED_UNCLASSIFIED); } @@ -1863,8 +1871,7 @@ WizCategoryViewGroupItem::WizCategoryViewGroupItem(WizExplorerApp& app, : WizCategoryViewItemBase(app, tag.strName, strKbGUID, Category_GroupItem) , m_tag(tag) { - QIcon icon = WizLoadSkinIcon(app.userSettings().skin(), "category_folder", QSize(), ICON_OPTIONS); - setIcon(0, icon); + setIconName("category_folder"); setText(0, WizDatabase::tagNameToDisplayName(tag.strName)); } @@ -1995,8 +2002,7 @@ WizCategoryViewTrashItem::WizCategoryViewTrashItem(WizExplorerApp& app, const QString& strKbGUID) : WizCategoryViewFolderItem(app, "/Deleted Items/", strKbGUID) { - QIcon icon = WizLoadSkinIcon(app.userSettings().skin(), "category_trash", QSize(), ICON_OPTIONS); - setIcon(0, icon); + setIconName("category_trash"); setText(0, PREDEFINED_TRASH); } @@ -2069,35 +2075,33 @@ WizCategoryViewShortcutItem::WizCategoryViewShortcutItem(WizExplorerApp& app, , m_location(location) , m_bEncrypted(bEncrypted) { - QIcon icon; switch (type) { case Document: { if (bEncrypted) { - icon = WizLoadSkinIcon(app.userSettings().skin(), "document_badge_encrypted", QSize(), ICON_OPTIONS); + setIconName("document_badge_encrypted"); } else { - icon = WizLoadSkinIcon(app.userSettings().skin(), "document_badge", QSize(), ICON_OPTIONS); + setIconName("document_badge"); } } break; case PersonalFolder: case GroupTag: { - icon = WizLoadSkinIcon(app.userSettings().skin(), "category_folder", QSize(), ICON_OPTIONS); + setIconName("category_folder"); } break; case PersonalTag: { - icon = WizLoadSkinIcon(app.userSettings().skin(), "category_tag", QSize(), ICON_OPTIONS); + setIconName("category_tag"); } break; } // - setIcon(0, icon); setText(0, strName); } @@ -2344,8 +2348,7 @@ void WizCategoryViewLinkItem::drawItemBody(QPainter *p, const QStyleOptionViewIt WizCategoryViewMySharesItem::WizCategoryViewMySharesItem(WizExplorerApp& app, const QString& strName) : WizCategoryViewItemBase(app, strName, "", Category_MySharesItem) { - QIcon icon = WizLoadSkinIcon(app.userSettings().skin(), "category_share", QSize(), ICON_OPTIONS); - setIcon(0, icon); + setIconName("category_share"); setText(0, strName); } diff --git a/src/WizCategoryViewItem.h b/src/WizCategoryViewItem.h index 9a829d89f..353df774c 100755 --- a/src/WizCategoryViewItem.h +++ b/src/WizCategoryViewItem.h @@ -48,6 +48,8 @@ class WizCategoryViewItemBase : public QTreeWidgetItem { public: WizCategoryViewItemBase(WizExplorerApp& app, const QString& strName = "", const QString& strKbGUID = "", int type = Type); + virtual void setIconName(QString name); + virtual void resetIcon(bool withChildren); virtual void showContextMenu(WizCategoryBaseView* pCtrl, QPoint pos) = 0; virtual void getDocuments(WizDatabase& db, CWizDocumentDataArray& arrayDocument) = 0; virtual bool accept(WizDatabase& db, const WIZDOCUMENTDATA& data) { Q_UNUSED(db); Q_UNUSED(data); return false; } @@ -105,6 +107,7 @@ class WizCategoryViewItemBase : public QTreeWidgetItem QString m_countString; bool m_extraButtonIconPressed; bool m_bWillBeDeleted; + QString m_iconName; }; diff --git a/src/share/WizObject.h b/src/share/WizObject.h index dc788c24e..224b96eec 100755 --- a/src/share/WizObject.h +++ b/src/share/WizObject.h @@ -353,6 +353,7 @@ struct WIZDOCUMENTDATAEX : public WIZDOCUMENTDATA WIZDOCUMENTDATAEX& operator= (const WIZDOCUMENTDATAEX& right); bool fromJson(const Json::Value& value); + QString displayName() const { return strTitle; } // field: document_tags, guid list CWizStdStringArray arrayTagGUID; @@ -388,6 +389,8 @@ struct WIZDOCUMENTATTACHMENTDATA : public WIZOBJECTBASE // friend bool operator< (const WIZDOCUMENTATTACHMENTDATA& data1,const WIZDOCUMENTATTACHMENTDATA& data2 ) throw(); BOOL equalForSync(const WIZDOCUMENTATTACHMENTDATA& data) const; + // + QString displayName() const { return strName; } static QString versionName() { return "attachment_version"; } static QString objectName() { return "attachment"; } diff --git a/src/sync/WizKMSync.cpp b/src/sync/WizKMSync.cpp index 25b46816f..501b3c91e 100755 --- a/src/sync/WizKMSync.cpp +++ b/src/sync/WizKMSync.cpp @@ -86,15 +86,15 @@ void WizKMSyncEvents::onVipServiceExpr(WIZGROUPDATA group) emit promptVipServiceExpr(group); } -void WizKMSyncEvents::onUploadDocument(const QString& strDocumentGUID, bool bDone) +void WizKMSyncEvents::onUploadDocument(const QString& strTitle, bool bDone) { if (bDone) { - onStatus(QObject::tr("Upload document: %1 finished").arg(strDocumentGUID)); + onStatus(QObject::tr("Upload document: %1 finished").arg(strTitle)); } else { - onStatus(QObject::tr("Upload document: %1 start").arg(strDocumentGUID)); + onStatus(QObject::tr("Upload document: %1 start").arg(strTitle)); } } diff --git a/src/sync/WizKMSync.h b/src/sync/WizKMSync.h index 9aebd90ec..b1322fbd0 100755 --- a/src/sync/WizKMSync.h +++ b/src/sync/WizKMSync.h @@ -30,7 +30,7 @@ class WizKMSyncEvents : public QObject , public IWizKMSyncEvents virtual void onBizNoteCountLimit(IWizSyncableDatabase* pDatabase); virtual void onFreeServiceExpr(WIZGROUPDATA group); virtual void onVipServiceExpr(WIZGROUPDATA group); - virtual void onUploadDocument(const QString& strDocumentGUID, bool bDone); + virtual void onUploadDocument(const QString& strTitle, bool bDone); virtual void onBeginKb(const QString& strKbGUID); virtual void onEndKb(const QString& strKbGUID); diff --git a/src/sync/WizSync.cpp b/src/sync/WizSync.cpp index f07bfc73c..1f5ab1c5f 100755 --- a/src/sync/WizSync.cpp +++ b/src/sync/WizSync.cpp @@ -1002,7 +1002,7 @@ bool UploadList(const WIZKBINFO& kbInfo, IWizKMSyncEvents* pEvents, IWizSyncable // if (_document) // { - pEvents->onUploadDocument(local.strGUID, FALSE); + pEvents->onUploadDocument(local.displayName(), FALSE); } // BOOL bUploaded = TRUE; @@ -1047,7 +1047,7 @@ bool UploadList(const WIZKBINFO& kbInfo, IWizKMSyncEvents* pEvents, IWizSyncable // if (_document && bUploaded) // { - pEvents->onUploadDocument(local.strGUID, TRUE); + pEvents->onUploadDocument(local.displayName(), TRUE); pDatabase->onObjectUploaded(local.strGUID, "document"); } } From 10589d26532ae72019fc52091a956254ea0ee046 Mon Sep 17 00:00:00 2001 From: wizweishijun Date: Thu, 7 May 2020 14:46:40 +0800 Subject: [PATCH 07/31] compile --- mac-package-cmake.sh | 65 +++++++++++++++++++++++++++++++++ mac-package-old.sh | 0 mac-package.sh | 5 ++- src/CMakeLists.txt | 8 ++-- src/WizDocumentListViewItem.cpp | 4 ++ src/WizUpgrade.cpp | 4 ++ src/share/WizAnalyzer.cpp | 4 ++ src/sync/WizSync.cpp | 4 ++ 8 files changed, 89 insertions(+), 5 deletions(-) create mode 100644 mac-package-cmake.sh mode change 100644 => 100755 mac-package-old.sh diff --git a/mac-package-cmake.sh b/mac-package-cmake.sh new file mode 100644 index 000000000..2a9788655 --- /dev/null +++ b/mac-package-cmake.sh @@ -0,0 +1,65 @@ +# 挂载的volumn的名称 +volumn_name='wiznote-disk' +# 挂载点,一般不用修改,只配置volumn_name即可 +volumn_path="/Volumes/$volumn_name" + +REV=`git rev-list HEAD | wc -l | awk '{print $1}'` +echo "build version : " $REV + +# 以下参数只是用于自定义脚本的行为 +package_home="./macos-package" +package_output_path="$HOME" + +QTDIR="/Users/weishijun/Qt5.12.8/5.12.8/clang_64" + +mkdir ../WizQTClient-Release-QT5 +rm -rf ../WizQTClient-Release-QT5/* && \ +cd ../WizQTClient-Release-QT5 && \ +cmake -DCMAKE_BUILD_TYPE=Release -UPDATE_TRANSLATIONS=YES -DCMAKE_PREFIX_PATH=$QTDIR/lib/cmake -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk ../WizQTClient && \ +make -j5 + + +MYAPP="WizNote" +DEST="$MYAPP.app" # Our final App directory +BUILDDIR=$(pwd); + +echo "replace version" +plutil -replace CFBundleVersion -string $REV $MYAPP.app/Contents/Info.plist + +mkdir WizNote.app/Contents/Frameworks +#cp -R -p ~/Library/Frameworks/CrashReporter.framework WizNote.app/Contents/Frameworks + +echo "call macdeployqt" +$QTDIR/bin/macdeployqt $DEST + + +#install_name_tool -change @rpath/CrashReporter.framework/Versions/A/CrashReporter \ +# @executable_path/../Frameworks/CrashReporter.framework/Versions/A/CrashReporter WizNote.app/Contents/MacOS/WizNote + +APPLCERT="Developer ID Application: Beijing Wozhi Technology Co. Ltd (KCS8N3QJ92)" + +codesign --verbose=2 --deep --sign "$APPLCERT" WizNote.app + +#codesign --options=runtime --verbose=2 --deep --sign "$APPLCERT" WizNote.app +#ditto -ck --rsrc --sequesterRsrc "WizNote.app" "WizNote.zip" +#node ../WizQTClient/notarization.js $1 + +cd ../WizQTClient + +setFile -a V ${package_home}/wiznote-disk-cover.jpg + +current_date=`date "+%Y-%m-%d"` +rm -f "${package_output_path}/tmp.dmg" +rm -f "${package_output_path}/wiznote-macos-${current_date}.dmg" +if [ -e "$package_home" ]; then + # 最好固定打包格式,可以只拷贝需要的文件,避免因为需要sudo权限才能访问的文件无法复制而导致失败 + #cp -R $volumn_path/wiznote.app $volumn_path/.wiznote-disk-cover.jpg $volumn_path/.DS_store $volumn_path/Applications $package_data_path + rm -rf ./${package_home}/WizNote.app && \ + cp -R ../WizQTClient-Release-QT5/WizNote.app ${package_home} && \ + hdiutil makehybrid -hfs -hfs-volume-name $volumn_name -hfs-openfolder $package_home $package_home -o "${package_output_path}/tmp.dmg" && \ + hdiutil convert -format UDZO "${package_output_path}/tmp.dmg" -o "${package_output_path}/wiznote-macos-${current_date}.dmg" && \ + rm -f "${package_output_path}/tmp.dmg" + rm -rf ./${package_home}/WizNote.app +else + echo "error:${package_home} not exist" +fi diff --git a/mac-package-old.sh b/mac-package-old.sh old mode 100644 new mode 100755 diff --git a/mac-package.sh b/mac-package.sh index e8a7306e6..6b7be2b5d 100755 --- a/mac-package.sh +++ b/mac-package.sh @@ -30,7 +30,10 @@ cd quazip && make -j4 -f ./Makefile && cd .. cd cryptopp && make -j4 -f ./Makefile && cd .. cd .. echo $(pwd) -cd src && make -j4 -f ./Makefile && rm -r ../WizNote.app && mv ./WizNote.app ../ && cd .. +cd src && make -j4 -f ./Makefile +rm -r ../WizNote.app +mv ./WizNote.app ../ +cd .. MYAPP="WizNote" DEST="$MYAPP.app" # Our final App directory diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e2c99e075..d74f0fbb0 100755 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -3,14 +3,14 @@ project(WizNote) add_subdirectory(test) set(wiznote_SOURCES_MAC - mac/WizSearchWidget.mm + mac/WizSearchWidget_mac.mm mac/WizMacHelper.mm mac/WizMacToolBar.mm mac/WizMacToolBarDelegate.mm mac/WizMacActionHelper.cpp mac/WizUserInfoWidgetBaseMac.mm mac/WizUserInfoWidgetBaseMac_mm.cpp - utils/WizNotify.mm + utils/WizNotify_mac.mm mac/WizIAPHelper.mm mac/rmstore/RMAppReceipt.mm mac/rmstore/RMStoreAppReceiptVerificator.mm @@ -42,7 +42,7 @@ set(wiznote_FORMS_MAC set(wiznote_SOURCES utils/WizLogger.cpp - utils/WizMisc.cpp + utils/WizMisc_utils.cpp utils/WizPinyin.cpp utils/WizNotify.cpp share/WizZip.cpp @@ -305,7 +305,7 @@ set(wiznote_HEADERS WizDocumentSelectionView.h WizUserVerifyDialog.h utils/WizLogger.h - utils/WizMisc.h + utils/WizMisc_utils.h utils/WizPinyin.h utils/WizNotify.h WizMessageListView.h diff --git a/src/WizDocumentListViewItem.cpp b/src/WizDocumentListViewItem.cpp index 242bfb2e3..cb76f1c5d 100755 --- a/src/WizDocumentListViewItem.cpp +++ b/src/WizDocumentListViewItem.cpp @@ -59,7 +59,11 @@ bool WizDocumentListViewDocumentItem::isAvatarNeedUpdate(const QString& strFileN QFileInfo info(strFileName); +#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) QDateTime tCreated = info.birthTime(); +#else + QDateTime tCreated = info.created(); +#endif QDateTime tNow = QDateTime::currentDateTime(); if (tCreated.daysTo(tNow) >= 1) { // download avatar before yesterday return true; diff --git a/src/WizUpgrade.cpp b/src/WizUpgrade.cpp index 61697451c..26a1290a0 100755 --- a/src/WizUpgrade.cpp +++ b/src/WizUpgrade.cpp @@ -85,7 +85,11 @@ void WizUpgradeChecker::_check(const QString& strUrl) QDate dateUpgrade(y, m, d); QFileInfo fi(::WizGetAppFileName()); +#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) QDate dateLocal = fi.birthTime().date(); +#else + QDate dateLocal = fi.created().date(); +#endif if (dateUpgrade > dateLocal) { TOLOG(QObject::tr("INFO: Upgrade is avaliable, version time: %1").arg(dateUpgrade.toString())); diff --git a/src/share/WizAnalyzer.cpp b/src/share/WizAnalyzer.cpp index 378c2c830..0146b1bc9 100755 --- a/src/share/WizAnalyzer.cpp +++ b/src/share/WizAnalyzer.cpp @@ -55,7 +55,11 @@ CString WizAnalyzer::getInstallDays() if (days == 0) { QFileInfo info(QApplication::applicationFilePath()); +#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) days = info.birthTime().daysTo(QDateTime::currentDateTime()); +#else + days = info.created().daysTo(QDateTime::currentDateTime()); +#endif ::WizIniWriteInt(m_strRecordFileNameNoDelete, "Common", "useDays", days); } // diff --git a/src/sync/WizSync.cpp b/src/sync/WizSync.cpp index 1f5ab1c5f..09c0bd424 100755 --- a/src/sync/WizSync.cpp +++ b/src/sync/WizSync.cpp @@ -1542,7 +1542,11 @@ class CWizAvatarStatusChecker if (it.key() != m_currentUserGUID) { QFileInfo info(strFileName); +#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) if (info.birthTime().daysTo(QDateTime::currentDateTime()) < 7) +#else + if (info.created().daysTo(QDateTime::currentDateTime()) < 7) +#endif { continue; } From 312950203b8f2d0a81fc8061be4946dd79b0afc0 Mon Sep 17 00:00:00 2001 From: wizweishijun Date: Thu, 7 May 2020 14:58:49 +0800 Subject: [PATCH 08/31] bug fix --- src/WizCategoryViewItem.cpp | 3 ++- src/WizCategoryViewItem.h | 2 +- src/WizDocumentView.cpp | 4 ++++ src/widgets/WizImageButton.h | 6 +++--- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/WizCategoryViewItem.cpp b/src/WizCategoryViewItem.cpp index f9dad9cf7..101ab4dc3 100755 --- a/src/WizCategoryViewItem.cpp +++ b/src/WizCategoryViewItem.cpp @@ -66,7 +66,8 @@ WizCategoryViewItemBase::WizCategoryViewItemBase(WizExplorerApp& app, void WizCategoryViewItemBase::setIconName(QString name) { m_iconName = name; - resetIcon(false); + QIcon icon = WizLoadSkinIcon(m_app.userSettings().skin(), m_iconName, QSize(), ICON_OPTIONS); + setIcon(0, icon); } void WizCategoryViewItemBase::resetIcon(bool withChildren) { diff --git a/src/WizCategoryViewItem.h b/src/WizCategoryViewItem.h index 353df774c..df72ceca4 100755 --- a/src/WizCategoryViewItem.h +++ b/src/WizCategoryViewItem.h @@ -48,7 +48,7 @@ class WizCategoryViewItemBase : public QTreeWidgetItem { public: WizCategoryViewItemBase(WizExplorerApp& app, const QString& strName = "", const QString& strKbGUID = "", int type = Type); - virtual void setIconName(QString name); + void setIconName(QString name); virtual void resetIcon(bool withChildren); virtual void showContextMenu(WizCategoryBaseView* pCtrl, QPoint pos) = 0; virtual void getDocuments(WizDatabase& db, CWizDocumentDataArray& arrayDocument) = 0; diff --git a/src/WizDocumentView.cpp b/src/WizDocumentView.cpp index 7482bb89b..d1aaf20e6 100755 --- a/src/WizDocumentView.cpp +++ b/src/WizDocumentView.cpp @@ -1028,8 +1028,12 @@ void WizDocumentView::on_commentWidget_statusChanged() int maxWidth = maximumWidth(); if (!WizIsHighPixel()) { +#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) QScreen* screen = QGuiApplication::screenAt(QCursor::pos()); if (screen && screen->size().width() < 1440) +#else + if (qApp->desktop()->availableGeometry().width() < 1440) +#endif { maxWidth = 916; } diff --git a/src/widgets/WizImageButton.h b/src/widgets/WizImageButton.h index fa7839ecb..f0e010630 100755 --- a/src/widgets/WizImageButton.h +++ b/src/widgets/WizImageButton.h @@ -31,9 +31,9 @@ class WizImageButton : public QPushButton public slots: protected slots: - void paintEvent(QPaintEvent* event); - void mousePressEvent(QMouseEvent* event); - void mouseReleaseEvent(QMouseEvent* event); + void paintEvent(QPaintEvent* event) override; + void mousePressEvent(QMouseEvent* event) override; + void mouseReleaseEvent(QMouseEvent* event) override; private: QPixmap m_normalIcon; From 545ee806f81c605df29dbda21ebb896a3b135021 Mon Sep 17 00:00:00 2001 From: wizweishijun Date: Thu, 21 May 2020 11:32:09 +0800 Subject: [PATCH 09/31] =?UTF-8?q?bug=20fix=20=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- share/files/wizeditor/default.css | 4 +- .../files/wizeditor/dependency/WizContent.js | 2 +- .../codemirror/addon/edit/matchbrackets.js | 2 +- .../dependency/codemirror/codemirror.js | 2 +- .../dependency/codemirror/mode/mode.js | 2 +- share/files/wizeditor/dependency/fonts.css | 31 ++++-- .../dependency/fonts/wizEditorIcons.eot | Bin 4836 -> 5600 bytes .../dependency/fonts/wizEditorIcons.svg | 5 + .../dependency/fonts/wizEditorIcons.ttf | Bin 4644 -> 5408 bytes .../dependency/fonts/wizEditorIcons.woff | Bin 4720 -> 5484 bytes .../dependency/minder/kityminder.core.css | 4 +- .../dependency/minder/kityminder.core.min.js | 4 +- .../minder/wizThemeSvg/wiz-black.svg | 87 +++++++++++++++++ .../minder/wizThemeSvg/wiz-blue.svg | 87 +++++++++++++++++ .../minder/wizThemeSvg/wiz-cyan.svg | 87 +++++++++++++++++ .../minder/wizThemeSvg/wiz-darkBlue.svg | 87 +++++++++++++++++ .../minder/wizThemeSvg/wiz-golden.svg | 88 ++++++++++++++++++ .../minder/wizThemeSvg/wiz-green.svg | 87 +++++++++++++++++ .../wizThemeSvg/wiz-lightGreen-night.svg | 87 +++++++++++++++++ .../minder/wizThemeSvg/wiz-lightGreen.svg | 87 +++++++++++++++++ .../minder/wizThemeSvg/wiz-purple.svg | 87 +++++++++++++++++ .../minder/wizThemeSvg/wiz-sakura.svg | 87 +++++++++++++++++ .../minder/wizThemeSvg/wiz-silver.svg | 87 +++++++++++++++++ share/files/wizeditor/wizEditorForMac.js | 4 +- src/WizDocumentWebView.cpp | 16 +--- src/WizMainWindow.cpp | 1 + 26 files changed, 1005 insertions(+), 30 deletions(-) mode change 100755 => 100644 share/files/wizeditor/default.css create mode 100644 share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-black.svg create mode 100644 share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-blue.svg create mode 100644 share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-cyan.svg create mode 100644 share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-darkBlue.svg create mode 100644 share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-golden.svg create mode 100644 share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-green.svg create mode 100644 share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-lightGreen-night.svg create mode 100644 share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-lightGreen.svg create mode 100644 share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-purple.svg create mode 100644 share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-sakura.svg create mode 100644 share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-silver.svg diff --git a/share/files/wizeditor/default.css b/share/files/wizeditor/default.css old mode 100755 new mode 100644 index b7ded76fd..4fcc84ae6 --- a/share/files/wizeditor/default.css +++ b/share/files/wizeditor/default.css @@ -1,9 +1,11 @@ -html, .wiz-editor-body {font-size: 12pt;}.wiz-editor-body {font-family: Helvetica, "Hiragino Sans GB", "微软雅黑", "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif;line-height: 1.7;margin: 0 auto;position:relative;padding: 20px 16px;padding: 1.25rem 1rem;}.wiz-editor-body h1,.wiz-editor-body h2,.wiz-editor-body h3,.wiz-editor-body h4,.wiz-editor-body h5,.wiz-editor-body h6 {margin:20px 0 10px;margin:1.25rem 0 0.625rem;padding: 0;font-weight: bold;}.wiz-editor-body h1 {font-size:20pt;font-size:1.67rem;}.wiz-editor-body h2 {font-size:18pt;font-size:1.5rem;}.wiz-editor-body h3 {font-size:15pt;font-size:1.25rem;}.wiz-editor-body h4 {font-size:14pt;font-size:1.17rem;}.wiz-editor-body h5 {font-size:12pt;font-size:1rem;}.wiz-editor-body h6 {font-size:12pt;font-size:1rem;color: #777777;margin: 1rem 0;}.wiz-editor-body div,.wiz-editor-body p,.wiz-editor-body ul,.wiz-editor-body ol,.wiz-editor-body dl,.wiz-editor-body li {margin:8px 0;}.wiz-editor-body blockquote,.wiz-editor-body table,.wiz-editor-body pre,.wiz-editor-body code {margin:8px 0;}.wiz-editor-body .CodeMirror pre {margin:0;}.wiz-editor-body a {word-wrap: break-word;text-decoration-skip-ink: none;}.wiz-editor-body ul,.wiz-editor-body ol {padding-left:32px;padding-left:2rem;}.wiz-editor-body ol.wiz-list-level1 > li {list-style-type:decimal;}.wiz-editor-body ol.wiz-list-level2 > li {list-style-type:lower-latin;}.wiz-editor-body ol.wiz-list-level3 > li {list-style-type:lower-roman;}.wiz-editor-body li.wiz-list-align-style {list-style-position: inside; margin-left: -1em;}.wiz-editor-body blockquote {padding: 0 12px;}.wiz-editor-body blockquote > :first-child {margin-top:0;}.wiz-editor-body blockquote > :last-child {margin-bottom:0;}.wiz-editor-body img {border:0;max-width:100%;height:auto !important;margin:2px 0;}.wiz-editor-body table {border-collapse:collapse;border:1px solid #bbbbbb;}.wiz-editor-body td,.wiz-editor-body th {padding:4px 8px;border-collapse:collapse;border:1px solid #bbbbbb;min-height:28px;word-break:break-word;box-sizing: border-box;}.wiz-editor-body td > div:first-child {margin-top:0;}.wiz-editor-body td > div:last-child {margin-bottom:0;}.wiz-editor-body img.wiz-svg-image {box-shadow:1px 1px 4px #E8E8E8;}.wiz-hide {display:none !important;} +html, .wiz-editor-body {font-size: 12pt;}.wiz-editor-body {font-family: Helvetica, "Hiragino Sans GB", "微软雅黑", "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif;line-height: 1.7;margin: 0 auto;position:relative;padding: 20px 48px;}.wiz-editor-body h1,.wiz-editor-body h2,.wiz-editor-body h3,.wiz-editor-body h4,.wiz-editor-body h5,.wiz-editor-body h6 {margin:20px 0 10px;margin:1.25rem 0 0.625rem;padding: 0;font-weight: bold;}.wiz-editor-body h1 {font-size:20pt;font-size:1.67rem;}.wiz-editor-body h2 {font-size:18pt;font-size:1.5rem;}.wiz-editor-body h3 {font-size:15pt;font-size:1.25rem;}.wiz-editor-body h4 {font-size:14pt;font-size:1.17rem;}.wiz-editor-body h5 {font-size:12pt;font-size:1rem;}.wiz-editor-body h6 {font-size:12pt;font-size:1rem;color: #777777;margin: 1rem 0;}.wiz-editor-body div,.wiz-editor-body p,.wiz-editor-body ul,.wiz-editor-body ol,.wiz-editor-body dl,.wiz-editor-body li {margin:8px 0 0;}.wiz-editor-body blockquote,.wiz-editor-body table,.wiz-editor-body pre,.wiz-editor-body code {margin:8px 0;}.wiz-editor-body .CodeMirror pre {margin:0;}.wiz-editor-body a {word-wrap: break-word;text-decoration-skip-ink: none;}.wiz-editor-body ul,.wiz-editor-body ol {padding-left:32px;padding-left:2rem;}.wiz-editor-body ol.wiz-list-level1 > li {list-style-type:decimal;}.wiz-editor-body ol.wiz-list-level2 > li {list-style-type:lower-latin;}.wiz-editor-body ol.wiz-list-level3 > li {list-style-type:lower-roman;}.wiz-editor-body li.wiz-list-align-style {list-style-position: inside; margin-left: -1em;}.wiz-editor-body blockquote {padding: 0 12px;}.wiz-editor-body blockquote > :first-child {margin-top:0;}.wiz-editor-body blockquote > :last-child {margin-bottom:0;}.wiz-editor-body img {border:0;max-width:100%;height:auto !important;margin:2px 0;padding: 2px;vertical-align:bottom;}.wiz-editor-body table {border-collapse:collapse;border:1px solid #a7afbc;}.wiz-editor-body td,.wiz-editor-body th {padding:4px 8px;border-collapse:collapse;border:1px solid #a7afbc;min-height:28px;word-break:break-word;box-sizing: border-box;}.wiz-editor-body td > div:first-child {margin-top:0;}.wiz-editor-body td > div:last-child {margin-bottom:0;}.wiz-editor-body img.wiz-svg-image {box-shadow:1px 1px 4px #E8E8E8;}.wiz-hide {display:none !important;} + html, .wiz-editor-body { /*default-font-family*/ /*default-font-size*/ /*default-background-color*/ /*default-line-height*/ + /*default-text-color*/ } body.wiz-editor-body div, body.wiz-editor-body p, body.wiz-editor-body ul, body.wiz-editor-body ol, body.wiz-editor-body dl, body.wiz-editor-body li { /*default-para-spacing*/ diff --git a/share/files/wizeditor/dependency/WizContent.js b/share/files/wizeditor/dependency/WizContent.js index e149134cd..5045a6864 100644 --- a/share/files/wizeditor/dependency/WizContent.js +++ b/share/files/wizeditor/dependency/WizContent.js @@ -1 +1 @@ -!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=557)}({557:function(t,e){!function(){var t=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;"wiz".trim||(String.prototype.trim=function(){return this.replace(t,"")});var e={OTHER_ATTR:{WIZ_SPAN:"data-wiz-span",MATHJAX:"data-mathml"},OTHER_CLASS:{CODE_MIRROR:"wiz-code-container",WIZ_BODY:"wiz-editor-body",WIZ_TABLE_BODY:"wiz-table-body",WIZ_TABLE_CONTAINER:"wiz-table-container"},WIZ_EDITOR_ID:{},BORDER_COLOR:"#F0F2F4",HTML_BG_COLOR:"#E8E8E8",BODY_BG_COLOR:"#FFFFFF",CONTENT_STYLE:"\n * {box-sizing: border-box;}\n html {\n height:100%; \n background-color:{htmlBgColor} !important;\n /*margin-left: calc(100vw - 100%) !important;*/\n }\n body, .wiz-editor-body {\n max-width:100%;\n }\n body, .wiz-editor-body, .markdown-body {\n background-color:{bodyBgColor} !important;\n border:1px solid {borderColor} !important;\n max-width:820px !important;\n min-height:initial !important;\n min-height:calc(100% - 80px) !important;\n margin:0px auto !important;\n padding:16px !important;\n }\n\n @media screen and (min-width: 821px) {\n body, .wiz-editor-body, .markdown-body {\n margin:40px auto !important;\n padding:48px 75px !important;\n }\n }\n\n /*h1, h2, h3, h4, h5, h6 {\n font-weight: 600;\n line-height: 1.25;\n margin-top: 1em;\n margin-bottom:.5em;\n }*/\n \n /*p, div {margin: 0 0 24px;}*/\n /*li p, li div {margin-bottom: 8px;}*/\n /*wiz_code_mirror p, wiz_code_mirror div {margin-bottom:0;}*/\n \n a, a:visited, a:active {color: #448aff;}\n th, td {\n min-width: 50px;\n }\n tr ol, tr ul {\n margin: 0;\n -webkit-padding-start: 15px;\n }\n pre {\n background-color:#fafbfc;\n border:1px solid #e1e4e8;\n font-size:13px;\n padding:8px;\n white-space: pre-wrap;\n }\n \n .wiz-title, .wiz-article, wiz-comment {\n margin:0;\n word-break: break-word;\n }\n \n .wiz-title {\n border-bottom: 1px solid #e9e9e9;\n margin-bottom:20px;\n }\n .wiz-title h1 {\n /* font-size: 28px; */\n }\n \n .wiz-article {\n /* color:#2f2f2f;\n font-size: 16px;\n font-weight: 400;\n line-height: 1.7; */\n }\n \n .wiz-comment {\n /* color:#2f2f2f;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.7; */\n } \n \n svg, img {\n max-width:100%;\n } \n ",CONTENT_PATCH_STYLE:"\n /* body {visibility: hidden;} */\n ",CONTENT_ID:{STYLE:"wiz-content-read-model-style",IFRAME:"wiz-content-iframe-viewer"},CONTENT_CLASS:{IFRAME_ACTIVE:"wiz-content-active"},CONTENT_ATTR:{DOM:"data-wiz-content-read-dom",TYPE:"data-wiz-content-read-type",TMP_REMOVE_FLAG:"data-wiz-content-remove",TMP_STYLE_FLAG:"data-wiz-content-style",TMP_IMG_INSERT_BR:"data-wiz-img-insert-br"},CONTENT_TYPE:{ARTICLE:"article",COMMENTS:"comments"},MAX_AREA_COUNT:180,MAX_DEPTH:20,MAX_PARENT_END_COUNT:5,MIN_AREA_COUNT:80,MIN_HEIGHT_IMG:100,MIN_WIDTH_IMG:500,MIN_WIDTH_RATE_IMG:.6},n=["iframe","frameset","script","noscript","link","style","input","button","select"],r="",o=!1,i=!0,a=!0,l="",d="",s="",u="",c="",m=!1,T="".concat("max-height"," 800ms cubic-bezier(0.52, 0.03, 0.42, 0.99)"),f={appendCount:function(t){var n=t.dom,r=t.text||"",o=t.result,i=t.isParentEnd,a=t.isAD,l=t.isBorder;f.isEmpty(r)&&(r="");var d=r.length,s=[];if(1===n.nodeType&&!i){s=f.isTag(n,["img"])?[n]:n.querySelectorAll("img");for(var u=0;ue.MIN_HEIGHT_IMG*e.MIN_WIDTH_IMG||g>e.MIN_HEIGHT_IMG&&y>=e.MIN_WIDTH_RATE_IMG)!0,d+=Math.min(Math.floor(T*g/900),e.MAX_AREA_COUNT),r+=m}}!function(t,e,n,i,a){var l=a.isAD,d=a.isBorder;o.domList.push(t),o.domOptionsList.push({text:e,isParentEnd:i,isAD:l,isBorder:d});var s=0,u=[],c=0;if(1===t.nodeType&&n>0){s=0,u=t.querySelectorAll("a");for(var m={},T=0,g=0,y=0;y0&&g/T>.5||c>=.75*n?s=1:c>=.4*n&&(s=.5),n*=1-s}!l&&n>0&&r.length>0&&o.notEmptyDomCount++;l&&(n/=10);d&&(n/=3);o.countList.push(n),o.totalCount+=n}(n,r,d,i,{isAD:a,isBorder:l})},count:function(t,r,o){var i,a,l=!0,d=!1,s=o.isAD||f.isAD(t),u=o.isBorder||f.isBorder(t),c=o.depth||0;if((1===t.nodeType||3===t.nodeType)&&!f.isTag(t,n)&&f.isVisibleDom(t))if(3===t.nodeType?(a=f.getText(t),l=!1):c>=e.MAX_DEPTH&&(a=f.getText(t),l=!1),l&&!s){for(var m=0,T=(i=t.childNodes||[]).length;mg&&2*i>y&&(s=r,u=p)),r.rateSum>40||r.rateCount>40){if(s&&(s.rateSum>40||s.rateCount>40))continue;s=r,u=p}if(t.bodyArea.length<3&&s)return f.log("总个数少于 3,且找到 文章区域,直接设置为文章模式"),R(u,s),void P();for(var h=0;h=3&&w(N[0],N[1])){d=N[1],m=n.index,T=!0;break}}if(T&&s&&u>m&&(f.log("如果评论在 正文之前,则正文很可能是内容更多的其他内容,只能当作辅助正文"),s=null,u=null),T&&s&&s.rootParent.className.trim()!==n)f.log("如果有评论,且文章区域的 className 与 评论区域 的 className 不一致,则设置为文章,并且保留评论内容"),R(u,s);else if(!T&&s){if(f.log("bodyArea >= 3 && 没有评论 && 存在文章区域"),R(u,s),u+110||C.rateCount>10)&&C.start-s.end<20&&t.article.bodyAreaIndex.push(v)}}else if(T&&!s){f.log("如果有评论,且无明确的正文区域");for(var O=0;O10||r.rateSum>10)&&(f.log("评论后面的内容只能当作评论"),t.comments.itemList.push(r.rootParent)))}else T||s||f.log("无评论,且无明确的正文区域");P()}function P(){if(0!==t.article.bodyAreaIndex.length)for(var e=0;e3||c>3){a=[];break}if(d=g,s=y,o){if(f.isParent(T,o))continue;o=null}if(o=f.checkPathIsSame(l[m+1].parentNode,T.parentNode)){i=I(o,n,r);for(var p=0;p5&&f.isVisibleDom(d)&&(r=d)}!n&&r&&(n=r),n&&(e.article.title=n)},clearAttr:function(t){if(!t.getAttribute(e.OTHER_ATTR.WIZ_SPAN)){var n,r,o,i=t.attributes,a=f.isTag(t,["td","tr","table"]);a&&(n=t.style.width,r=t.style.height,o=t.style.backgroundColor);for(var l=i.length-1;l>=0;l--){var d=i[l];/^(on|style)/gi.test(d.name)&&t.removeAttribute(d.name)}a&&(n&&(t.style.width=n),r&&(t.style.height=r),o&&(t.style.backgroundColor=o));var s=t.getAttribute(e.CONTENT_ATTR.TMP_STYLE_FLAG);if(s&&t.setAttribute("style",s),t.getAttribute(e.CONTENT_ATTR.TMP_IMG_INSERT_BR)){var u=t.parentNode;u.insertBefore(document.createElement("br"),t),u.insertBefore(document.createElement("br"),t.nextSibling)}}},clearContentTempAttr:function(t,e){for(var n=0;n=0;i--){o[i].removeAttribute(r)}},traversalElement:function(t,n){if(!f.hasClass(t,e.OTHER_CLASS.CODE_MIRROR)&&!t.getAttribute(e.OTHER_ATTR.MATHJAX)){var r=f.isAD(t);if(n(t,r),!r&&!f.isTag(t,["wiz_tmp_tag"]))for(var o=t.children,i=o.length-1;i>=0;i--)f.traversalElement(o[i],n)}},getContentHtml:function(t){if(f.isTag(t,["tbody","thead"])&&(t=t.parentNode),f.isTag(t,["table"])){var n=t.parentNode.parentNode;f.hasClass(n,e.OTHER_CLASS.WIZ_TABLE_CONTAINER)&&(t=n)}var r;f.traversalElement(t,(function(t,n){n||!f.isTag(t,["br","style","link"])&&!f.isVisibleDom(t)?t.setAttribute(e.CONTENT_ATTR.TMP_REMOVE_FLAG,"true"):f.isTag(t,["img"])&&(t.setAttribute(e.CONTENT_ATTR.TMP_STYLE_FLAG,"display:block;"),t.setAttribute(e.CONTENT_ATTR.TMP_IMG_INSERT_BR,"1"))}));for(var o=t.cloneNode(!0),i=(r=o.querySelectorAll("iframe")).length-1;i>=0;i--)f.removeDom(r[i]);for(var a=(r=o.querySelectorAll("script")).length-1;a>=0;a--)f.removeDom(r[a]);for(var l=(r=o.querySelectorAll("[".concat(e.CONTENT_ATTR.TMP_REMOVE_FLAG,"]"))).length-1;l>=0;l--)f.removeDom(r[l]);return f.traversalElement(o,(function(t){if(f.isTag(t,["style","link","video","audio"]))f.removeDom(t);else if(1===t.childNodes.length&&!function(t){return!!f.getParentByFilter(t,(function(t){return f.isTag(t,["pre"])}),!1)}(t)&&f.isTag(t.firstChild,["br"])){t.isEmpty=!0;var e=t.nextSibling;e&&e.isEmpty&&t.parentNode.removeChild(t)}else f.clearAttr(t)})),f.clearAttr(o),f.clearContentTempAttr(t,[e.CONTENT_ATTR.TMP_REMOVE_FLAG,e.CONTENT_ATTR.TMP_STYLE_FLAG,e.CONTENT_ATTR.TMP_IMG_INSERT_BR]),o.outerHTML},getParentByClass:function(t,e,n){return f.getParentByFilter(t,(function(t){return f.hasClass(t,e)}),n)},getParentByFilter:function(t,e,n){if(t&&t!==document.body)for(t=n?t:t.parentNode;t;){if(!e||e(t))return t;if(t===document.body)return null;t=t.parentNode}return null},getParentRoot:function(t){if(!t||0===t.length)return null;var e,n,r=[];for(n=1===t[0].nodeType?t[0]:t[0].parentNode;n&&n!==document.body;)r.push(n),n=n.parentNode;for(var o=1,i=t.length;o-1){r.splice(0,e);break}n=n.parentNode}return 0===r.length?document.body:r[0]},getText:function(t){return 3===t.nodeType?t.nodeValue:"string"==typeof t.innerText?t.innerText:t.textContent},hasClass:function(t,e){return!(!t||1!==t.nodeType)&&(" "+t.className+" ").indexOf(" "+e+" ")>-1},insertStyle:function(t,e){var n=document.createElement("style");return t.name&&n.setAttribute("name",t.name),t.id&&(n.setAttribute("id",t.id),f.removeStyleById(t.id)),document.getElementsByTagName("HEAD")[0].insertBefore(n,null),n.innerHTML=e,n},isAD:function(t){if(!t||1!==t.nodeType)return!1;var e=(t.className||"")+","+(t.id||"");return/(^ad[^a-zA-Z])|([^a-zA-Z]ad$)/gi.test(e)},isBorder:function(t){if(!t||!t.parentNode)return!1;var e=(t.className||"")+","+(t.id||"");return/(^|[^a-zA-Z])(sidebar|bottom|footer|navbar|feed)([^a-zA-Z]|$)/gi.test(e)},isBlock:function(t){if(!t||1!==t.nodeType)return!1;if(f.isTag(t,["p"]))return!1;if(f.isTag(t,["div","ul","ol","li"]))return!0;if(f.isTag(t,["tr","td"])&&!t.querySelector("table")&&!t.querySelector("div"))return!1;var e=window.getComputedStyle(t,null).display;return!!e&&!/^(inline|inline-block|inline-table)$/i.test(e)},isEmpty:function(t){var e=new RegExp("[\r\n​\\s]*","ig");return 0===t.replace(e,"").length},isParent:function(t,e){if(!t||!e)return!1;for(var n=t.parentNode;n&&n!==document.body;){if(e===n)return!0;n=n.parentNode}return!1},isTag:function(t,e){if(!t||1!==t.nodeType)return!1;for(var n=t.tagName.toLowerCase(),r=0,o=e.length;r0;if(n&&f.isBlock(t)){var r=parseInt(e.width,10),o=parseInt(e.height,10);if(!r||!o){var i=t.getBoundingClientRect();r=i.width,o=i.height}n=!(0===r&&0===o)}return n},log:function(t){o&&console.trace(t)},mergeBodyArea:function(t){for(var e,n=t.bodyArea.length-1;n>=0;n--){t.bodyArea[n].rootParent===document.body&&t.bodyArea.splice(n,1)}for(var r=0;r0&&(e=t.bodyArea[r-1],o.rootParent===e.rootParent||f.isParent(o.rootParent,e.rootParent)?(f.log("整合具有相同 rootParent 的区间"),i=!0):f.isParent(e.rootParent,o.rootParent)&&o.start-e.end<20?(f.log("后面合并前面的时候,如果相隔距离太远不进行处理"),i=!0,e.rootParent=o.rootParent):o.start-e.end<3||o.rootParent.previousElementSibling===e.rootParent?(f.log("后面合并前面的时候,如果相隔距离极其接近 < 3 或 两者的父容器并排,不考虑父容器是否相关(尝试)"),i=!0,e.rootParent=f.getParentRoot([e.rootParent,o.rootParent]),o.rootParent=e.rootParent):i=!1,i);)f.log(["merge.... (",e.start,", ",e.end,") - (",o.start,", ",o.end,")"].join("")),e.end=o.end,e.endDom=o.endDom,e.totalCount=0,e.totalSum=0,o=e,t.bodyArea.splice(r,1),r--;f.sumArea(o,t)}},removeDom:function(t){t&&1===t.nodeType&&t.parentNode.removeChild(t)},removeStyleById:function(t){var e=document.getElementById(t);e&&f.isTag(e,["style","link"])&&f.removeDom(e)},resumePage:function(){f.removeStyleById(e.CONTENT_ID.STYLE);for(var t=document.querySelectorAll("[".concat(e.CONTENT_ATTR.DOM,"]")),n=t.length-1;n>=0;n--)t[n].removeAttribute(e.CONTENT_ATTR.DOM),t[n].removeAttribute(e.CONTENT_ATTR.TYPE)},showContent:function(t,n){var o="";if(t.contentType){if(b(t.article.title,"title"),t.contentType===e.CONTENT_TYPE.ARTICLE)for(var l=0;l=0;d--)b(t.comments.itemList[d],e.CONTENT_TYPE.COMMENTS);o=(o="string"==typeof(o=t.article.title||"")?o.replace(//g,">"):o.innerText).replace(/^(\s| )*/,"")}else i?f.log("此页面 不适合进行内容提取"):f.log("将整篇内容进行展示"),document.body.setAttribute(e.CONTENT_ATTR.TYPE,e.CONTENT_TYPE.ARTICLE);var s=p("["+e.CONTENT_ATTR.TYPE+'="'+e.CONTENT_TYPE.ARTICLE+'"]'),u=p("["+e.CONTENT_ATTR.TYPE+'="'+e.CONTENT_TYPE.COMMENTS+'"]'),y=function(){for(var t=[],e=document.querySelector("head").children,n=0;n

'.concat(o,"

"):"",A="".concat(o,"\n").concat(y.join(""),'\n\n\n\n\n\n
\n').concat(h,'\n
').concat(s.join(""),'
\n
').concat(u.join(""),"
\n
\n\n");return a&&g(),f.clearContentTempAttr(document.body,[e.CONTENT_ATTR.DOM,e.CONTENT_ATTR.TYPE]),void setTimeout((function(){var r=document.createElement("wiz_tmp_tag"),o=document.createElement("iframe");o.id=e.CONTENT_ID.IFRAME,o.className=e.CONTENT_CLASS.IFRAME_ACTIVE,a?(o.style.margin="0",o.style.padding="0",o.style.position="fixed",o.style.top="0",o.style.right="0",o.style.left="0",o.style.bottom="0",o.style.width="100%",o.style.height="100%",o.style.zIndex="2147483647",o.style.border="none",o.style.transition=T,o.style["max-height"]="0",o.style.background="silver"):o.style.display="none",r.appendChild(o),document.body.appendChild(r);var i=o.contentWindow.document;i.open("text/html","replace"),i.write(A),i.close(),setTimeout((function(){m&&(o.style["max-height"]="100%")}),750),t.iframe=o,t.iframeDoc=i,t.iframeWin=o.contentWindow,n&&n(t)}),0);function b(t,n){if(t&&"string"!=typeof t)for(var r=t,o="show";t&&t!==document.body;){if(t!==r&&"show"===t.getAttribute(e.CONTENT_ATTR.DOM)){r.removeAttribute(e.CONTENT_ATTR.DOM),r.removeAttribute(e.CONTENT_ATTR.TYPE);break}t.setAttribute(e.CONTENT_ATTR.DOM,o),"show"===o&&t.setAttribute(e.CONTENT_ATTR.TYPE,n),o="parent",t=t.parentNode}}},splitBody:function(t){for(var n,r,o,i,a,l=0,d=null,s=!1,u=!1,c=0,m=[],T=0,g=t.countList.length;T=a)o=null,c=0;else if(s&&(r=e.MAX_PARENT_END_COUNT||y===p-1){if(s=!1,o=o||y-1,c=0,d&&d.rootParent!==document.body)for(var h=l-1;h>d.end&&h>l-30;h--){var A=t.domList[h],b=t.domOptionsList[h];if(A===d.rootParent||b.isBorder)break;if(f.isTag(A,["h1","h2","h3"])){l=h;break}}i={start:l,end:o,startDom:t.domList[l],endDom:t.domList[o],totalCount:0,totalSum:0,rateCount:0,rateSum:0,rootParent:null},f.log("bodyEnd "+l+" to "+o),i.rootParent=f.getParentRoot([i.startDom,i.endDom]),t.bodyArea.push(i),d=i}m.push(t.countList[y])}},sumArea:function(t,e){for(var n=t.start;n<=t.end;n++)t.totalCount+=e.countList[n],e.countList[n]>0&&(t.totalSum+=e.sumList[n]);t.rateCount=(t.totalCount/e.totalCount*100).toFixed(2),t.rateSum=(t.totalSum/e.totalSum*100).toFixed(2)},sumCount:function(t,n){var r=t-2<0?0:t-2,o=t+2>n.countList.length-1?n.countList.length-1:t+2,i=0;i+=n.countList[t];for(var a=t-1;a>=r&&!(n.countList[a]>e.MAX_AREA_COUNT);a--)i+=n.countList[a];for(var l=t+1;l<=o&&!(n.countList[l]>e.MAX_AREA_COUNT);l++)i+=n.countList[l];return n.countList[t]>0&&(n.totalSum+=i),i}},g=function(){document.body.style.overflow="hidden",document.body.style.marginRight="calc(100vw - 100%)";var t=document.body.parentElement;t.style.overflow="hidden",t.style.height="100%",t.style.width="100%"},y=function(){document.body.style.overflow=null,document.body.style.marginRight=null;var t=document.body.parentElement;t.style.overflow=null,t.style.height=null,t.style.width=null},p={result:null,init:function(t,e){return r=t||"",o=!!e,p},destory:function(){m=!1;var t=document.getElementById(e.CONTENT_ID.IFRAME);if(t){var n=t.parentNode;n.parentNode.removeChild(n),setTimeout((function(){y()}),200)}return p.result=null,p},on:function(t,n){m=!0;var r=document.getElementById(e.CONTENT_ID.IFRAME);if(r)return g(),setTimeout((function(){r.style["max-height"]="100%"}),100),n&&n(p.result),p;var o={article:{title:null,bodyAreaIndex:[]},avgSum:0,bodyArea:[],comments:{itemList:[]},contentType:null,countList:[],domList:[],domOptionsList:[],sumList:[],textList:[],notEmptyDomCount:0,totalCount:0,totalSum:0,iframeDoc:null,iframeWin:null};return i=!t||t.needContentExtraction,a=!t||t.needShow,l=t&&t.borderColor||e.BORDER_COLOR,d=t&&t.htmlBgColor||e.HTML_BG_COLOR,s=t&&t.bodyBgColor||e.BODY_BG_COLOR,u=t&&t.stylePatch||"",c=e.CONTENT_STYLE.replace(/\{borderColor\}/gi,l).replace(/\{htmlBgColor\}/gi,d).replace(/\{bodyBgColor\}/gi,s)+u,i&&(f.count(document.body,o,{isAD:!1,isBorder:!1,depth:0}),f.splitBody(o),f.mergeBodyArea(o),f.checkContentType(o)),f.showContent(o,n),p.result=o,f.log(o),p},off:function(){m=!1;var t=document.getElementById(e.CONTENT_ID.IFRAME);return t&&(t.style["max-height"]="0",t.className="",setTimeout((function(){y()}),200)),p}};window.WizContent=p}()}}); \ No newline at end of file +!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=564)}({564:function(t,e){!function(){var t=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;"wiz".trim||(String.prototype.trim=function(){return this.replace(t,"")});var e={OTHER_ATTR:{WIZ_SPAN:"data-wiz-span",MATHJAX:"data-mathml"},OTHER_CLASS:{CODE_MIRROR:"wiz-code-container",WIZ_BODY:"wiz-editor-body",WIZ_TABLE_BODY:"wiz-table-body",WIZ_TABLE_CONTAINER:"wiz-table-container"},WIZ_EDITOR_ID:{},BORDER_COLOR:"#F0F2F4",HTML_BG_COLOR:"#E8E8E8",BODY_BG_COLOR:"#FFFFFF",CONTENT_STYLE:"\n * {box-sizing: border-box;}\n html {\n height:100%; \n background-color:{htmlBgColor} !important;\n /*margin-left: calc(100vw - 100%) !important;*/\n }\n body, .wiz-editor-body {\n max-width:100%;\n }\n body, .wiz-editor-body, .markdown-body {\n background-color:{bodyBgColor} !important;\n border:1px solid {borderColor} !important;\n max-width:820px !important;\n min-height:initial !important;\n min-height:calc(100% - 80px) !important;\n margin:0px auto !important;\n padding:16px !important;\n }\n\n @media screen and (min-width: 821px) {\n body, .wiz-editor-body, .markdown-body {\n margin:40px auto !important;\n padding:48px 75px !important;\n }\n }\n\n /*h1, h2, h3, h4, h5, h6 {\n font-weight: 600;\n line-height: 1.25;\n margin-top: 1em;\n margin-bottom:.5em;\n }*/\n \n /*p, div {margin: 0 0 24px;}*/\n /*li p, li div {margin-bottom: 8px;}*/\n /*wiz_code_mirror p, wiz_code_mirror div {margin-bottom:0;}*/\n \n a, a:visited, a:active {color: #448aff;}\n th, td {\n min-width: 50px;\n }\n tr ol, tr ul {\n margin: 0;\n -webkit-padding-start: 15px;\n }\n pre {\n background-color:#fafbfc;\n border:1px solid #e1e4e8;\n font-size:13px;\n padding:8px;\n white-space: pre-wrap;\n }\n \n .wiz-title, .wiz-article, wiz-comment {\n margin:0;\n word-break: break-word;\n }\n \n .wiz-title {\n border-bottom: 1px solid #e9e9e9;\n margin-bottom:20px;\n }\n .wiz-title h1 {\n /* font-size: 28px; */\n }\n \n .wiz-article {\n /* color:#2f2f2f;\n font-size: 16px;\n font-weight: 400;\n line-height: 1.7; */\n }\n \n .wiz-comment {\n /* color:#2f2f2f;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.7; */\n } \n \n svg, img {\n max-width:100%;\n } \n ",CONTENT_PATCH_STYLE:"\n /* body {visibility: hidden;} */\n ",CONTENT_ID:{STYLE:"wiz-content-read-model-style",IFRAME:"wiz-content-iframe-viewer"},CONTENT_CLASS:{IFRAME_ACTIVE:"wiz-content-active"},CONTENT_ATTR:{DOM:"data-wiz-content-read-dom",TYPE:"data-wiz-content-read-type",TMP_REMOVE_FLAG:"data-wiz-content-remove",TMP_STYLE_FLAG:"data-wiz-content-style",TMP_IMG_INSERT_BR:"data-wiz-img-insert-br"},CONTENT_TYPE:{ARTICLE:"article",COMMENTS:"comments"},MAX_AREA_COUNT:180,MAX_DEPTH:20,MAX_PARENT_END_COUNT:5,MIN_AREA_COUNT:80,MIN_HEIGHT_IMG:100,MIN_WIDTH_IMG:500,MIN_WIDTH_RATE_IMG:.6},n=["iframe","frameset","script","noscript","link","style","input","button","select"],r="",o=!1,i=!0,a=!0,l="",d="",s="",u="",c="",m=!1,T="".concat("max-height"," 800ms cubic-bezier(0.52, 0.03, 0.42, 0.99)"),f={appendCount:function(t){var n=t.dom,r=t.text||"",o=t.result,i=t.isParentEnd,a=t.isAD,l=t.isBorder;f.isEmpty(r)&&(r="");var d=r.length,s=[];if(1===n.nodeType&&!i){s=f.isTag(n,["img"])?[n]:n.querySelectorAll("img");for(var u=0;ue.MIN_HEIGHT_IMG*e.MIN_WIDTH_IMG||g>e.MIN_HEIGHT_IMG&&y>=e.MIN_WIDTH_RATE_IMG)!0,d+=Math.min(Math.floor(T*g/900),e.MAX_AREA_COUNT),r+=m}}!function(t,e,n,i,a){var l=a.isAD,d=a.isBorder;o.domList.push(t),o.domOptionsList.push({text:e,isParentEnd:i,isAD:l,isBorder:d});var s=0,u=[],c=0;if(1===t.nodeType&&n>0){s=0,u=t.querySelectorAll("a");for(var m={},T=0,g=0,y=0;y0&&g/T>.5||c>=.75*n?s=1:c>=.4*n&&(s=.5),n*=1-s}!l&&n>0&&r.length>0&&o.notEmptyDomCount++;l&&(n/=10);d&&(n/=3);o.countList.push(n),o.totalCount+=n}(n,r,d,i,{isAD:a,isBorder:l})},count:function(t,r,o){var i,a,l=!0,d=!1,s=o.isAD||f.isAD(t),u=o.isBorder||f.isBorder(t),c=o.depth||0;if((1===t.nodeType||3===t.nodeType)&&!f.isTag(t,n)&&f.isVisibleDom(t))if(3===t.nodeType?(a=f.getText(t),l=!1):c>=e.MAX_DEPTH&&(a=f.getText(t),l=!1),l&&!s){for(var m=0,T=(i=t.childNodes||[]).length;mg&&2*i>y&&(s=r,u=p)),r.rateSum>40||r.rateCount>40){if(s&&(s.rateSum>40||s.rateCount>40))continue;s=r,u=p}if(t.bodyArea.length<3&&s)return f.log("总个数少于 3,且找到 文章区域,直接设置为文章模式"),R(u,s),void P();for(var h=0;h=3&&w(N[0],N[1])){d=N[1],m=n.index,T=!0;break}}if(T&&s&&u>m&&(f.log("如果评论在 正文之前,则正文很可能是内容更多的其他内容,只能当作辅助正文"),s=null,u=null),T&&s&&s.rootParent.className.trim()!==n)f.log("如果有评论,且文章区域的 className 与 评论区域 的 className 不一致,则设置为文章,并且保留评论内容"),R(u,s);else if(!T&&s){if(f.log("bodyArea >= 3 && 没有评论 && 存在文章区域"),R(u,s),u+110||C.rateCount>10)&&C.start-s.end<20&&t.article.bodyAreaIndex.push(v)}}else if(T&&!s){f.log("如果有评论,且无明确的正文区域");for(var O=0;O10||r.rateSum>10)&&(f.log("评论后面的内容只能当作评论"),t.comments.itemList.push(r.rootParent)))}else T||s||f.log("无评论,且无明确的正文区域");P()}function P(){if(0!==t.article.bodyAreaIndex.length)for(var e=0;e3||c>3){a=[];break}if(d=g,s=y,o){if(f.isParent(T,o))continue;o=null}if(o=f.checkPathIsSame(l[m+1].parentNode,T.parentNode)){i=I(o,n,r);for(var p=0;p5&&f.isVisibleDom(d)&&(r=d)}!n&&r&&(n=r),n&&(e.article.title=n)},clearAttr:function(t){if(!t.getAttribute(e.OTHER_ATTR.WIZ_SPAN)){var n,r,o,i=t.attributes,a=f.isTag(t,["td","tr","table"]);a&&(n=t.style.width,r=t.style.height,o=t.style.backgroundColor);for(var l=i.length-1;l>=0;l--){var d=i[l];/^(on|style)/gi.test(d.name)&&t.removeAttribute(d.name)}a&&(n&&(t.style.width=n),r&&(t.style.height=r),o&&(t.style.backgroundColor=o));var s=t.getAttribute(e.CONTENT_ATTR.TMP_STYLE_FLAG);if(s&&t.setAttribute("style",s),t.getAttribute(e.CONTENT_ATTR.TMP_IMG_INSERT_BR)){var u=t.parentNode;u.insertBefore(document.createElement("br"),t),u.insertBefore(document.createElement("br"),t.nextSibling)}}},clearContentTempAttr:function(t,e){for(var n=0;n=0;i--){o[i].removeAttribute(r)}},traversalElement:function(t,n){if(!f.hasClass(t,e.OTHER_CLASS.CODE_MIRROR)&&!t.getAttribute(e.OTHER_ATTR.MATHJAX)){var r=f.isAD(t);if(n(t,r),!r&&!f.isTag(t,["wiz_tmp_tag"]))for(var o=t.children,i=o.length-1;i>=0;i--)f.traversalElement(o[i],n)}},getContentHtml:function(t){if(f.isTag(t,["tbody","thead"])&&(t=t.parentNode),f.isTag(t,["table"])){var n=t.parentNode.parentNode;f.hasClass(n,e.OTHER_CLASS.WIZ_TABLE_CONTAINER)&&(t=n)}var r;f.traversalElement(t,(function(t,n){n||!f.isTag(t,["br","style","link"])&&!f.isVisibleDom(t)?t.setAttribute(e.CONTENT_ATTR.TMP_REMOVE_FLAG,"true"):f.isTag(t,["img"])&&(t.setAttribute(e.CONTENT_ATTR.TMP_STYLE_FLAG,"display:block;"),t.setAttribute(e.CONTENT_ATTR.TMP_IMG_INSERT_BR,"1"))}));for(var o=t.cloneNode(!0),i=(r=o.querySelectorAll("iframe")).length-1;i>=0;i--)f.removeDom(r[i]);for(var a=(r=o.querySelectorAll("script")).length-1;a>=0;a--)f.removeDom(r[a]);for(var l=(r=o.querySelectorAll("[".concat(e.CONTENT_ATTR.TMP_REMOVE_FLAG,"]"))).length-1;l>=0;l--)f.removeDom(r[l]);return f.traversalElement(o,(function(t){if(f.isTag(t,["style","link","video","audio"]))f.removeDom(t);else if(1===t.childNodes.length&&!function(t){return!!f.getParentByFilter(t,(function(t){return f.isTag(t,["pre"])}),!1)}(t)&&f.isTag(t.firstChild,["br"])){t.isEmpty=!0;var e=t.nextSibling;e&&e.isEmpty&&t.parentNode.removeChild(t)}else f.clearAttr(t)})),f.clearAttr(o),f.clearContentTempAttr(t,[e.CONTENT_ATTR.TMP_REMOVE_FLAG,e.CONTENT_ATTR.TMP_STYLE_FLAG,e.CONTENT_ATTR.TMP_IMG_INSERT_BR]),o.outerHTML},getParentByClass:function(t,e,n){return f.getParentByFilter(t,(function(t){return f.hasClass(t,e)}),n)},getParentByFilter:function(t,e,n){if(t&&t!==document.body)for(t=n?t:t.parentNode;t;){if(!e||e(t))return t;if(t===document.body)return null;t=t.parentNode}return null},getParentRoot:function(t){if(!t||0===t.length)return null;var e,n,r=[];for(n=1===t[0].nodeType?t[0]:t[0].parentNode;n&&n!==document.body;)r.push(n),n=n.parentNode;for(var o=1,i=t.length;o-1){r.splice(0,e);break}n=n.parentNode}return 0===r.length?document.body:r[0]},getText:function(t){return 3===t.nodeType?t.nodeValue:"string"==typeof t.innerText?t.innerText:t.textContent},hasClass:function(t,e){return!(!t||1!==t.nodeType)&&(" "+t.className+" ").indexOf(" "+e+" ")>-1},insertStyle:function(t,e){var n=document.createElement("style");return t.name&&n.setAttribute("name",t.name),t.id&&(n.setAttribute("id",t.id),f.removeStyleById(t.id)),document.getElementsByTagName("HEAD")[0].insertBefore(n,null),n.innerHTML=e,n},isAD:function(t){if(!t||1!==t.nodeType)return!1;var e=(t.className||"")+","+(t.id||"");return/(^ad[^a-zA-Z])|([^a-zA-Z]ad$)/gi.test(e)},isBorder:function(t){if(!t||!t.parentNode)return!1;var e=(t.className||"")+","+(t.id||"");return/(^|[^a-zA-Z])(sidebar|bottom|footer|navbar|feed)([^a-zA-Z]|$)/gi.test(e)},isBlock:function(t){if(!t||1!==t.nodeType)return!1;if(f.isTag(t,["p"]))return!1;if(f.isTag(t,["div","ul","ol","li"]))return!0;if(f.isTag(t,["tr","td"])&&!t.querySelector("table")&&!t.querySelector("div"))return!1;var e=window.getComputedStyle(t,null).display;return!!e&&!/^(inline|inline-block|inline-table)$/i.test(e)},isEmpty:function(t){var e=new RegExp("[\r\n​\\s]*","ig");return 0===t.replace(e,"").length},isParent:function(t,e){if(!t||!e)return!1;for(var n=t.parentNode;n&&n!==document.body;){if(e===n)return!0;n=n.parentNode}return!1},isTag:function(t,e){if(!t||1!==t.nodeType)return!1;for(var n=t.tagName.toLowerCase(),r=0,o=e.length;r0;if(n&&f.isBlock(t)){var r=parseInt(e.width,10),o=parseInt(e.height,10);if(!r||!o){var i=t.getBoundingClientRect();r=i.width,o=i.height}n=!(0===r&&0===o)}return n},log:function(t){o&&console.trace(t)},mergeBodyArea:function(t){for(var e,n=t.bodyArea.length-1;n>=0;n--){t.bodyArea[n].rootParent===document.body&&t.bodyArea.splice(n,1)}for(var r=0;r0&&(e=t.bodyArea[r-1],o.rootParent===e.rootParent||f.isParent(o.rootParent,e.rootParent)?(f.log("整合具有相同 rootParent 的区间"),i=!0):f.isParent(e.rootParent,o.rootParent)&&o.start-e.end<20?(f.log("后面合并前面的时候,如果相隔距离太远不进行处理"),i=!0,e.rootParent=o.rootParent):o.start-e.end<3||o.rootParent.previousElementSibling===e.rootParent?(f.log("后面合并前面的时候,如果相隔距离极其接近 < 3 或 两者的父容器并排,不考虑父容器是否相关(尝试)"),i=!0,e.rootParent=f.getParentRoot([e.rootParent,o.rootParent]),o.rootParent=e.rootParent):i=!1,i);)f.log(["merge.... (",e.start,", ",e.end,") - (",o.start,", ",o.end,")"].join("")),e.end=o.end,e.endDom=o.endDom,e.totalCount=0,e.totalSum=0,o=e,t.bodyArea.splice(r,1),r--;f.sumArea(o,t)}},removeDom:function(t){t&&1===t.nodeType&&t.parentNode.removeChild(t)},removeStyleById:function(t){var e=document.getElementById(t);e&&f.isTag(e,["style","link"])&&f.removeDom(e)},resumePage:function(){f.removeStyleById(e.CONTENT_ID.STYLE);for(var t=document.querySelectorAll("[".concat(e.CONTENT_ATTR.DOM,"]")),n=t.length-1;n>=0;n--)t[n].removeAttribute(e.CONTENT_ATTR.DOM),t[n].removeAttribute(e.CONTENT_ATTR.TYPE)},showContent:function(t,n){var o="";if(t.contentType){if(b(t.article.title,"title"),t.contentType===e.CONTENT_TYPE.ARTICLE)for(var l=0;l=0;d--)b(t.comments.itemList[d],e.CONTENT_TYPE.COMMENTS);o=(o="string"==typeof(o=t.article.title||"")?o.replace(//g,">"):o.innerText).replace(/^(\s| )*/,"")}else i?f.log("此页面 不适合进行内容提取"):f.log("将整篇内容进行展示"),document.body.setAttribute(e.CONTENT_ATTR.TYPE,e.CONTENT_TYPE.ARTICLE);var s=p("["+e.CONTENT_ATTR.TYPE+'="'+e.CONTENT_TYPE.ARTICLE+'"]'),u=p("["+e.CONTENT_ATTR.TYPE+'="'+e.CONTENT_TYPE.COMMENTS+'"]'),y=function(){for(var t=[],e=document.querySelector("head").children,n=0;n

'.concat(o,"

"):"",A="".concat(o,"\n").concat(y.join(""),'\n\n\n\n\n\n
\n').concat(h,'\n
').concat(s.join(""),'
\n
').concat(u.join(""),"
\n
\n\n");return a&&g(),f.clearContentTempAttr(document.body,[e.CONTENT_ATTR.DOM,e.CONTENT_ATTR.TYPE]),void setTimeout((function(){var r=document.createElement("wiz_tmp_tag"),o=document.createElement("iframe");o.id=e.CONTENT_ID.IFRAME,o.className=e.CONTENT_CLASS.IFRAME_ACTIVE,a?(o.style.margin="0",o.style.padding="0",o.style.position="fixed",o.style.top="0",o.style.right="0",o.style.left="0",o.style.bottom="0",o.style.width="100%",o.style.height="100%",o.style.zIndex="2147483647",o.style.border="none",o.style.transition=T,o.style["max-height"]="0",o.style.background="silver"):o.style.display="none",r.appendChild(o),document.body.appendChild(r);var i=o.contentWindow.document;i.open("text/html","replace"),i.write(A),i.close(),setTimeout((function(){m&&(o.style["max-height"]="100%")}),750),t.iframe=o,t.iframeDoc=i,t.iframeWin=o.contentWindow,n&&n(t)}),0);function b(t,n){if(t&&"string"!=typeof t)for(var r=t,o="show";t&&t!==document.body;){if(t!==r&&"show"===t.getAttribute(e.CONTENT_ATTR.DOM)){r.removeAttribute(e.CONTENT_ATTR.DOM),r.removeAttribute(e.CONTENT_ATTR.TYPE);break}t.setAttribute(e.CONTENT_ATTR.DOM,o),"show"===o&&t.setAttribute(e.CONTENT_ATTR.TYPE,n),o="parent",t=t.parentNode}}},splitBody:function(t){for(var n,r,o,i,a,l=0,d=null,s=!1,u=!1,c=0,m=[],T=0,g=t.countList.length;T=a)o=null,c=0;else if(s&&(r=e.MAX_PARENT_END_COUNT||y===p-1){if(s=!1,o=o||y-1,c=0,d&&d.rootParent!==document.body)for(var h=l-1;h>d.end&&h>l-30;h--){var A=t.domList[h],b=t.domOptionsList[h];if(A===d.rootParent||b.isBorder)break;if(f.isTag(A,["h1","h2","h3"])){l=h;break}}i={start:l,end:o,startDom:t.domList[l],endDom:t.domList[o],totalCount:0,totalSum:0,rateCount:0,rateSum:0,rootParent:null},f.log("bodyEnd "+l+" to "+o),i.rootParent=f.getParentRoot([i.startDom,i.endDom]),t.bodyArea.push(i),d=i}m.push(t.countList[y])}},sumArea:function(t,e){for(var n=t.start;n<=t.end;n++)t.totalCount+=e.countList[n],e.countList[n]>0&&(t.totalSum+=e.sumList[n]);t.rateCount=(t.totalCount/e.totalCount*100).toFixed(2),t.rateSum=(t.totalSum/e.totalSum*100).toFixed(2)},sumCount:function(t,n){var r=t-2<0?0:t-2,o=t+2>n.countList.length-1?n.countList.length-1:t+2,i=0;i+=n.countList[t];for(var a=t-1;a>=r&&!(n.countList[a]>e.MAX_AREA_COUNT);a--)i+=n.countList[a];for(var l=t+1;l<=o&&!(n.countList[l]>e.MAX_AREA_COUNT);l++)i+=n.countList[l];return n.countList[t]>0&&(n.totalSum+=i),i}},g=function(){document.body.style.overflow="hidden",document.body.style.marginRight="calc(100vw - 100%)";var t=document.body.parentElement;t.style.overflow="hidden",t.style.height="100%",t.style.width="100%"},y=function(){document.body.style.overflow=null,document.body.style.marginRight=null;var t=document.body.parentElement;t.style.overflow=null,t.style.height=null,t.style.width=null},p={result:null,init:function(t,e){return r=t||"",o=!!e,p},destory:function(){m=!1;var t=document.getElementById(e.CONTENT_ID.IFRAME);if(t){var n=t.parentNode;n.parentNode.removeChild(n),setTimeout((function(){y()}),200)}return p.result=null,p},on:function(t,n){m=!0;var r=document.getElementById(e.CONTENT_ID.IFRAME);if(r)return g(),setTimeout((function(){r.style["max-height"]="100%"}),100),n&&n(p.result),p;var o={article:{title:null,bodyAreaIndex:[]},avgSum:0,bodyArea:[],comments:{itemList:[]},contentType:null,countList:[],domList:[],domOptionsList:[],sumList:[],textList:[],notEmptyDomCount:0,totalCount:0,totalSum:0,iframeDoc:null,iframeWin:null};return i=!t||t.needContentExtraction,a=!t||t.needShow,l=t&&t.borderColor||e.BORDER_COLOR,d=t&&t.htmlBgColor||e.HTML_BG_COLOR,s=t&&t.bodyBgColor||e.BODY_BG_COLOR,u=t&&t.stylePatch||"",c=e.CONTENT_STYLE.replace(/\{borderColor\}/gi,l).replace(/\{htmlBgColor\}/gi,d).replace(/\{bodyBgColor\}/gi,s)+u,i&&(f.count(document.body,o,{isAD:!1,isBorder:!1,depth:0}),f.splitBody(o),f.mergeBodyArea(o),f.checkContentType(o)),f.showContent(o,n),p.result=o,f.log(o),p},off:function(){m=!1;var t=document.getElementById(e.CONTENT_ID.IFRAME);return t&&(t.style["max-height"]="0",t.className="",setTimeout((function(){y()}),200)),p}};window.WizContent=p}()}}); \ No newline at end of file diff --git a/share/files/wizeditor/dependency/codemirror/addon/edit/matchbrackets.js b/share/files/wizeditor/dependency/codemirror/addon/edit/matchbrackets.js index dc8a5af7e..eded8d529 100644 --- a/share/files/wizeditor/dependency/codemirror/addon/edit/matchbrackets.js +++ b/share/files/wizeditor/dependency/codemirror/addon/edit/matchbrackets.js @@ -1 +1 @@ -!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}(function(r){var s=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),d=r.Pos,k={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function p(t){return t&&t.bracketRegex||/[(){}[\]]/}function u(t,e,n){var r=t.getLineHandle(e.line),i=e.ch-1,a=n&&n.afterCursor;null==a&&(a=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var c=p(n),o=!a&&0<=i&&c.test(r.text.charAt(i))&&k[r.text.charAt(i)]||c.test(r.text.charAt(i+1))&&k[r.text.charAt(++i)];if(!o)return null;var l=">"==o.charAt(1)?1:-1;if(n&&n.strict&&0a))for(s==e.line&&(f=e.ch-(n<0?1:0));f!=m;f+=n){var g=u.charAt(f);if(l.test(g)&&(void 0===r||t.getTokenTypeAt(d(s,f+1))==r))if(">"==k[g].charAt(1)==0",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function v(t){return t&&t.bracketRegex||/[(){}[\]]/}function u(t,e,n){var r=t.getLineHandle(e.line),i=e.ch-1,a=n&&n.afterCursor;null==a&&(a=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var c=v(n),o=!a&&0<=i&&c.test(r.text.charAt(i))&&p[r.text.charAt(i)]||c.test(r.text.charAt(i+1))&&p[r.text.charAt(++i)];if(!o)return null;var l=">"==o.charAt(1)?1:-1;if(n&&n.strict&&0a))for(s==e.line&&(f=e.ch-(n<0?1:0));f!=m;f+=n){var g=u.charAt(f);if(l.test(g)&&(void 0===r||t.getTokenTypeAt(k(s,f+1))==r)){var d=p[g];if(d&&">"==d.charAt(1)==0=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t=e.first&&to?ve(o,ae(e,o).text.length):(n=ae(e,(r=t).line).text.length,null==(i=r.ch)||n=t:o.to>t);(n=n||[]).push(new Me(l,o.from,s?null:o.to))}}return n}(r,i,l),a=function(e,t,r){var n;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==l.type&&(!r||o.marker.insertLeft)){var s=null==o.from||(l.inclusiveLeft?o.from<=t:o.fromt)&&(!r||Ee(r,o.marker)<0)&&(r=o.marker)}return r}function Ge(e,t,r,n,i){var o=ae(e,t),l=Te&&o.markedSpans;if(l)for(var s=0;se.lastLine())return t;var r,n=ae(e,t);if(!je(e,n))return t;for(;r=Re(n);)n=r.find(1,!0).line;return fe(n)+1}function je(e,t){var r=Te&&t.markedSpans;if(r)for(var n=void 0,i=0;ir.maxLineLength&&(r.maxLineLength=t,r.maxLine=e)})}var qe=null;function Ze(e,t,r){var n;qe=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==r?n=i:qe=i),o.from==t&&(o.from!=o.to&&"before"!=r?n=i:qe=i)}return null!=n?n:qe}var Qe,Je,et,tt,rt,nt,it,ot=(Qe="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",Je="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",et=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,tt=/[stwN]/,rt=/[LRr]/,nt=/[Lb1n]/,it=/[1n]/,function(e,t){var r="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!et.test(e))return!1;for(var n,i=e.length,o=[],l=0;l=this.string.length},Ut.prototype.sol=function(){return this.pos==this.lineStart},Ut.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ut.prototype.next=function(){if(this.post},Ut.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ut.prototype.skipToEnd=function(){this.pos=this.string.length},Ut.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(-1e.options.maxHighlightLength&&Rt(e.doc.mode,n.state),o=jt(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Yt(r,n,e){var t=r.doc,i=r.display;if(!t.mode.startState)return new Kt(t,!0,n);var o=function(e,t,r){for(var n,i,o=e.doc,l=r?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;lt.first&&ae(t,o-1).stateAfter,s=l?Kt.fromSaved(t,l,o):new Kt(t,Gt(t.mode),o);return t.iter(o,n,function(e){_t(r,e.text,s);var t=s.line;e.stateAfter=t==n-1||t%5==0||t>=i.viewFrom&&tt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}Kt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Kt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Kt.prototype.nextLine=function(){this.line++,0e.options.maxHighlightLength?(s=!1,l&&_t(e,t,n,h.pos),h.pos=t.length,null):Jt(qt(r,h,n.state,f),o),f){var d=f[0].name;d&&(a="m-"+(a?d+" "+a:d))}if(!s||c!=a){for(;us&&u.from<=s);c++);if(u.to>=a)return h(e,t,r,n,i,o,l);h(e,t.slice(0,u.to-s),r,n,null,o,l),n=null,t=t.slice(u.to-s),s=u.to}}}function ur(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i=i||e.content.appendChild(document.createElement("span"))).setAttribute("cm-marker",r.id),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function cr(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(n)for(var l,s,a,u,c,h,f,d=i.length,p=0,g=1,v="",m=0;;){if(m==p){a=u=c=s="",h=f=null,m=1/0;for(var y=[],b=void 0,w=0;wp||C.collapsed&&x.to==p&&x.from==p)){if(null!=x.to&&x.to!=p&&m>x.to&&(m=x.to,u=""),C.className&&(a+=" "+C.className),C.css&&(s=(s?s+";":"")+C.css),C.startStyle&&x.from==p&&(c+=" "+C.startStyle),C.endStyle&&x.to==m&&(b=b||[]).push(C.endStyle,x.to),C.title&&((f=f||{}).title=C.title),C.attributes)for(var S in C.attributes)(f=f||{})[S]=C.attributes[S];C.collapsed&&(!h||Ee(h.marker,C)<0)&&(h=x)}else x.from>p&&m>x.from&&(m=x.from)}if(b)for(var L=0;Lr)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Ir(e,t,r,n){return Br(e,Rr(e,t),r,n)}function zr(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&tt)&&(i=(o=a-s)-1,a<=t&&(l="right")),null!=i){if(n=e[u+2],s==a&&r==(n.insertLeft?"left":"right")&&(l=r),"left"==r&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)n=e[2+(u-=3)],l="left";if("right"==r&&i==a-s)for(;u=o.text.length?(t=o.text.length,r="before"):t<=0&&(t=0,r="after"),!u)return a("before"==r?t-1:t,"before"==r);function c(e,t,r){return a(r?e-1:e,1==u[t].level!=r)}var h=Ze(u,t,r),f=qe,d=c(t,h,"before"==r);return null!=f&&(d.other=c(t,f,"before"!=r)),d}function tn(e,t){var r=0;t=Se(e.doc,t),e.options.lineWrapping||(r=cn(e.display)*t.ch);var n=ae(e.doc,t.line),i=Ye(n)+Ar(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function rn(e,t,r,n,i){var o=ve(e,t,r);return o.xRel=i,n&&(o.outside=!0),o}function nn(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return rn(n.first,0,null,!0,-1);var i=de(n,r),o=n.first+n.size-1;if(on},o,i)}}function ln(e,t,r,n){return on(e,t,r=r||Rr(e,t),Zr(e,t,Br(e,r,n),"line").top)}function sn(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function an(r,e,t,n,i){i-=Ye(e);var o=Rr(r,e),l=qr(e),s=0,a=e.text.length,u=!0,c=st(e,r.doc.direction);if(c){var h=(r.options.lineWrapping?function(e,t,r,n,i,o,l){var s=on(e,t,n,l),a=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,h=null,f=0;f=u||d.to<=a)){var p=1!=d.level,g=Br(e,n,p?Math.min(u,d.to)-1:Math.max(a,d.from)).right,v=gu&&(c={from:c.from,to:u,level:c.level});return c}:function(n,i,o,l,s,a,u){var e=le(function(e){var t=s[e],r=1!=t.level;return sn(en(n,ve(o,r?t.to:t.from,r?"before":"after"),"line",i,l),a,u,!0)},0,s.length-1),t=s[e];if(0u&&(t=s[e-1])}return t})(r,e,t,o,c,n,i);s=(u=1!=h.level)?h.from:h.to-1,a=u?h.to:h.from-1}var f,d,p=null,g=null,v=le(function(e){var t=Br(r,o,e);return t.top+=l,t.bottom+=l,sn(t,n,i,!1)&&(t.top<=i&&t.left<=n&&(p=e,g=t),1)},s,a),m=!1;if(g){var y=n-g.left=w.bottom}return rn(t,v=oe(e.text,v,1),d,m,n-f)}function un(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Gr){Gr=A("pre");for(var t=0;t<49;++t)Gr.appendChild(document.createTextNode("x")),Gr.appendChild(A("br"));Gr.appendChild(document.createTextNode("x"))}N(e.measure,Gr);var r=Gr.offsetHeight/50;return 3=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;n=e.display.viewTo||s.to().linet||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),1==l.level?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}(k,y||0,null==b?C:b,function(e,t,r,n){var i="ltr"==r,o=S(e,i?"left":"right"),l=S(t-1,i?"right":"left"),s=null==y&&0==e,a=null==b&&t==C,u=0==n,c=!k||n==k.length-1;if(l.top-o.top<=3){var h=(N?a:s)&&c,f=(N?s:a)&&u?T:(i?o:l).left,d=h?M:(i?l:o).right;O(f,o.top,d-f,o.bottom)}else{var p,g,v,m;m=i?(p=N&&s&&u?T:o.left,g=N?M:L(e,r,"before"),v=N?T:L(t,r,"after"),N&&a&&c?M:l.right):(p=N?L(e,r,"before"):T,g=!N&&s&&u?M:o.right,v=!N&&a&&c?T:l.left,N?L(t,r,"after"):M),O(p,o.top,g-p,o.bottom),o.bottome.display.sizerWidth){var f=Math.ceil(s/cn(e.display));f>e.display.maxLineLength&&(e.display.maxLineLength=f,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Nn(e){if(e.widgets)for(var t=0;t=l&&(o=de(t,Ye(ae(t,a))-e.wrapper.clientHeight),l=a)}return{from:o,to:Math.max(l,o+1)}}function An(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=fn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",l=0;lo&&(t.bottom=t.top+o);var s=e.doc.height+Dr(r),a=t.tops-n;if(t.topi+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(l.scrollTop=c)}var h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft,f=Fr(e)-(e.options.fixedGutter?r.gutters.offsetWidth:0),d=t.right-t.left>f;return d&&(t.right=t.left+f),t.left<10?l.scrollLeft=0:t.leftf+h-3&&(l.scrollLeft=t.right+(d?0:10)-f),l}function Hn(e,t){null!=t&&(En(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Fn(e){En(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Pn(e,t,r){null==t&&null==r||En(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function En(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,In(e,tn(e,t.from),tn(e,t.to),t.margin))}function In(e,t,r,n){var i=Wn(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});Pn(e,i.scrollLeft,i.scrollTop)}function zn(e,t){Math.abs(e.doc.scrollTop-t)<2||(g||gi(e,{top:t}),Rn(e,t,!0),g&&gi(e),ci(e,100))}function Rn(e,t,r){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),e.display.scroller.scrollTop==t&&!r||(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Bn(e,t,r,n){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,An(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Gn(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Dr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Hr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}function Un(e,t,r){this.cm=r;var n=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),ut(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),ut(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,x&&C<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}Un.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&0=i.viewTo)||i.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new fi(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Qn(e){var t=e.cm,r=t.display;e.updatedDisplay&&Mn(t),e.barMeasure=Gn(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ir(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Hr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Fr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function Jn(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!u){var o=A("div","​",null,"position: absolute;\n top: "+(t.top-r.viewOffset-Ar(e.display))+"px;\n height: "+(t.bottom-t.top+Hr(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,r,n){var i;null==n&&(n=0),e.options.lineWrapping||t!=r||(r="before"==(t=t.ch?ve(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?ve(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var l=!1,s=en(e,t),a=r&&r!=t?en(e,r):s,u=Wn(e,i={left:Math.min(s.left,a.left),top:Math.min(s.top,a.top)-n,right:Math.max(s.left,a.left),bottom:Math.max(s.bottom,a.bottom)+n}),c=e.doc.scrollTop,h=e.doc.scrollLeft;if(null!=u.scrollTop&&(zn(e,u.scrollTop),1t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Te&&Ve(e.doc,t)i.viewFrom?si(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)si(e);else if(t<=i.viewFrom){var o=ai(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):si(e)}else if(r>=i.viewTo){var l=ai(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):si(e)}else{var s=ai(e,t,t,-1),a=ai(e,r,r+n,1);s&&a?(i.view=i.view.slice(0,s.index).concat(fr(e,s.lineN,a.lineN)).concat(i.view.slice(a.index)),i.viewTo+=n):si(e)}var u=i.externalMeasured;u&&(r=i.lineN&&t=n.viewTo)){var o=n.view[vn(e,t)];if(null!=o.node){var l=o.changes||(o.changes=[]);-1==B(l,r)&&l.push(r)}}}function si(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ai(e,t,r,n){var i,o=vn(e,t),l=e.display.view;if(!Te||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var s=e.display.viewFrom,a=0;a=a.display.viewTo)){var c=+new Date+a.options.workTime,h=Yt(a,u.highlightFrontier),f=[];u.iter(h.line,Math.min(u.first+u.size,a.display.viewTo+500),function(e){if(h.line>=a.display.viewFrom){var t=e.styles,r=e.text.length>a.options.maxHighlightLength?Rt(u.mode,h.state):null,n=jt(a,e,h,!0);r&&(h.state=r),e.styles=n.styles;var i=e.styleClasses,o=n.classes;o?e.styleClasses=o:i&&(e.styleClasses=null);for(var l=!t||t.length!=e.styles.length||i!=o&&(!i||!o||i.bgClass!=o.bgClass||i.textClass!=o.textClass),s=0;!l&&sc)return ci(a,a.options.workDelay),!0}),u.highlightFrontier=h.line,u.modeFrontier=Math.max(u.modeFrontier,h.line),f.length&&ti(a,function(){for(var e=0;e=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==ui(e))return!1;Dn(e)&&(si(e),t.dims=hn(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFroml&&r.viewTo-l<20&&(l=Math.min(i,r.viewTo)),Te&&(o=Ve(e.doc,o),l=Ke(e.doc,l));var s,a,u,c,h=o!=r.viewFrom||l!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;a=o,u=l,0==(c=(s=e).display).view.length||a>=c.viewTo||u<=c.viewFrom?(c.view=fr(s,a,u),c.viewFrom=a):(c.viewFrom>a?c.view=fr(s,a,c.viewFrom).concat(c.view):c.viewFromu&&(c.view=c.view.slice(0,vn(s,u)))),c.viewTo=u,r.viewOffset=Ye(ae(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var f=ui(e);if(!h&&0==f&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var d=function(e){if(e.hasFocus())return null;var t=W();if(!t||!D(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&D(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}(e);return 4=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&di(e,t);n=!1){Mn(e);var i=Gn(e);mn(e),Kn(e,i),mi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function gi(e,t){var r=new fi(e,t);if(di(e,r)){Mn(e),pi(e,r);var n=Gn(e);mn(e),Kn(e,n),mi(e,n),r.finish()}}function vi(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function mi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Hr(e)+"px"}function yi(e){var t=e.display.gutters,r=e.options.gutters;M(t);for(var n=0;nl.clientWidth,a=l.scrollHeight>l.clientHeight;if(n&&s||i&&a){if(i&&w&&b)e:for(var u=t.target,c=o.view;u!=l;u=u.parentNode)for(var h=0;ha-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=(s=i).lastOp==n?(Ui(s.done),$(s.done)):s.done.length&&!$(s.done).ranges?$(s.done):1i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,l||ft(e,"historyAdded")}function Ki(e,t,r,n){var i,o,l,s,a,u=e.history,c=n&&n.origin;r==u.lastSelOp||c&&u.lastSelOrigin==c&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==c||(i=e,o=c,l=$(u.done),s=t,"*"==(a=o.charAt(0))||"+"==a&&l.ranges.length==s.ranges.length&&l.somethingSelected()==s.somethingSelected()&&new Date-i.history.lastSelTime<=(i.cm?i.cm.options.historyEventDelay:500)))?u.done[u.done.length-1]=t:ji(t,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=c,u.lastSelOp=r,n&&!1!==n.clearRedo&&Ui(u.undone)}function ji(e,t){var r=$(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Xi(t,r,e,n){var i=r["spans_"+t.id],o=0;t.iter(Math.max(t.first,e),Math.min(t.first+t.size,n),function(e){e.markedSpans&&((i=i||(r["spans_"+t.id]={}))[o]=e.markedSpans),++o})}function Yi(e){if(!e)return null;for(var t,r=0;r=t.ch:s.to>t.ch))){if(i&&(ft(a,"beforeCursorEnter"),a.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(!a.atomic)continue;if(r){var u=a.find(n<0?1:-1),c=void 0;if((n<0?a.inclusiveRight:a.inclusiveLeft)&&(u=uo(e,u,-n,u&&u.line==t.line?o:null)),u&&u.line==t.line&&(c=me(u,r))&&(n<0?c<0:0e.first?Se(e,ve(t.line-1)):null:0e.lastLine())){if(t.from.lineo&&(t={from:t.from,to:ve(o,ae(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ue(e,t.from,t.to),r=r||Di(e,t),e.cm?function(e,t,r){var n=e.doc,i=e.display,o=t.from,l=t.to,s=!1,a=o.line;e.options.lineWrapping||(a=fe(Ue(ae(n,o.line))),n.iter(a,l.line+1,function(e){if(e==i.maxLine)return s=!0}));-1i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiert.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=h,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&oi(t,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&oo(t.doc)),t&&vr(t,"markerCleared",t,this,i,o),r&&qn(t),this.parent&&this.parent.clear()}},No.prototype.find=function(e,t){var r,n;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(i,o,l){i=Se(this,i),o=Se(this,o);var s=[],a=i.line;return this.iter(i.line,o.line+1,function(e){var t=e.markedSpans;if(t)for(var r=0;r=n.to||null==n.from&&a!=i.line||null!=n.from&&a==o.line&&n.from>=o.ch||l&&!l(n.marker)||s.push(n.marker.parent||n.marker)}++a}),s},getAllMarks:function(){var n=[];return this.iter(function(e){var t=e.markedSpans;if(t)for(var r=0;rt&&(t=e.from),null!=e.to&&e.toe.text.length?null:n}function rl(e,t,r){var n=tl(e,t.ch,r);return null==n?null:new ve(t.line,n,r<0?"after":"before")}function nl(e,t,r,n,i){if(e){var o=st(r,t.doc.direction);if(o){var l,s=i<0?$(o):o[0],a=i<0==(1==s.level)?"after":"before";if(0=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var n=Ze(a,s.ch,s.sticky),i=a[n];if("ltr"==t.doc.direction&&i.level%2==0&&(0s.ch:i.from=i.from&&f>=c.begin)){var d=h?"before":"after";return new ve(s.line,f,d)}}function p(e,t,r){for(var n=function(e,t){return t?new ve(s.line,u(e,1),"before"):new ve(s.line,e,"after")};0<=e&&el.doc.first){var o=ae(l.doc,n.line-1).text;o&&(n=new ve(n.line,1),l.replaceRange(i.charAt(0)+l.doc.lineSeparator()+o.charAt(o.length-1),ve(n.line-1,o.length-1),n,"+transpose"))}t.push(new Ti(n,n))}l.setSelections(t)})},newlineAndIndent:function(n){return ti(n,function(){for(var e=n.listSelections(),t=e.length-1;0<=t;t--)n.replaceRange(n.doc.lineSeparator(),e[t].anchor,e[t].head,"+input");e=n.listSelections();for(var r=0;rc&&t.push(new Ti(ve(s,c),ve(s,X(u,l,r))))}t.length||t.push(new Ti(m,m)),ro(b,Mi(v,C.ranges.slice(0,x).concat(t),x),{origin:"*mouse",scroll:!1}),v.scrollIntoView(e)}else{var h,f=w,d=xl(v,e,y.unit),p=f.anchor;p=0=i.to||n.linea.bottom?20:0;o&&setTimeout(ri(v,function(){u==r&&(l.scroller.scrollTop+=o,e(t))}),50)}}:n)(e)}),o=ri(v,n);v.state.selectingText=o,ut(l.wrapper.ownerDocument,"mousemove",i),ut(l.wrapper.ownerDocument,"mouseup",o)})(e,n,t,o)}(t,l,a,e):xt(e)==r.scroller&&mt(e):2==s?(l&&Zi(t.doc,l),setTimeout(function(){return r.input.focus()},20)):3==s&&(S?t.display.input.onContextMenu(e):Ln(t)))}}function xl(e,t,r){if("char"==r)return new Ti(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new Ti(ve(t.line,0),Se(e.doc,ve(t.line+1,0)));var n=r(e,t);return new Ti(n.from,n.to)}function Cl(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&mt(t);var l=e.display,s=l.lineDiv.getBoundingClientRect();if(o>s.bottom||!gt(e,r))return bt(t);o-=s.top-l.viewOffset;for(var a=0;a=i)return ft(e,r,e,de(e.doc,o),e.options.gutters[a],t),bt(t)}}function Sl(e,t){return Cl(e,t,"gutterClick",!0)}function Ll(e,t){var r,n;Or(e.display,t)||(n=t,gt(r=e,"gutterContextMenu")&&Cl(r,n,"gutterContextMenu",!1))||dt(e,t,"contextmenu")||S||e.display.input.onContextMenu(t)}function kl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Yr(e)}bl.prototype.compare=function(e,t,r){return this.time+400>e&&0==me(t,this.pos)&&r==this.button};var Tl={toString:function(){return"CodeMirror.Init"}},Ml={},Nl={};function Ol(e){yi(e),oi(e),An(e)}function Al(e,t,r){if(!t!=!(r&&r!=Tl)){var n=e.display.dragFunctions,i=t?ut:ht;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function Dl(e){e.options.lineWrapping?(H(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),$e(e)),pn(e),oi(e),Yr(e),setTimeout(function(){return Kn(e)},100)}function Wl(e,t){var r=this;if(!(this instanceof Wl))return new Wl(e,t);this.options=t=t?I(t):{},I(Ml,t,!1),bi(t);var n=t.value;"string"==typeof n?n=new Fo(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Wl.inputStyles[t.inputStyle](this),o=this.display=new se(e,n,i);for(var l in yi(o.wrapper.CodeMirror=this),kl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Yn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new R,keySeq:null,specialChars:null},t.autofocus&&!f&&o.input.focus(),x&&C<11&&setTimeout(function(){return r.display.input.reset(!0)},20),function(i){var o=i.display;ut(o.scroller,"mousedown",ri(i,wl)),ut(o.scroller,"dblclick",x&&C<11?ri(i,function(e){if(!dt(i,e)){var t=gn(i,e);if(t&&!Sl(i,e)&&!Or(i.display,e)){mt(e);var r=i.findWordAt(t);Zi(i.doc,r.anchor,r.head)}}}):function(e){return dt(i,e)||mt(e)});ut(o.scroller,"contextmenu",function(e){return Ll(i,e)});var r,n={end:0};function l(){o.activeTouch&&(r=setTimeout(function(){return o.activeTouch=null},1e3),(n=o.activeTouch).end=+new Date)}function s(e,t){if(null==t.left)return 1;var r=t.left-e.left,n=t.top-e.top;return 400o.first?z(ae(o,t-1).text,null,l):0:"add"==r?u=a+e.options.indentUnit:"subtract"==r?u=a-e.options.indentUnit:"number"==typeof r&&(u=a+r),u=Math.max(0,u);var h="",f=0;if(e.options.indentWithTabs)for(var d=Math.floor(u/l);d;--d)f+=l,h+="\t";if(f=n.first+n.size||(i=new ve(r,i.ch,i.sticky),!(s=ae(n,r))))return;i=nl(l,n.cm,s,i.line,o)}else i=t;return 1}if("char"==e)a();else if("column"==e)a(!0);else if("word"==e||"group"==e)for(var u=null,c="group"==e,h=n.cm&&n.cm.getHelper(i,"wordChars"),f=!0;!(o<0)||a(!f);f=!1){var d=s.text.charAt(i.ch)||"\n",p=te(d,h)?"w":c&&"\n"==d?"n":!c||/\s/.test(d)?null:"p";if(!c||f||p||(p="s"),u&&u!=p){o<0&&(o=1,a(),i.sticky="after");break}if(p&&(u=p),0=l.height){o.hitSide=!0;break}i+=5*r}return o}function jl(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null}function Xl(e,t){var r=zr(e,t.line);if(!r||r.hidden)return null;var n=ae(e.doc,t.line),i=Er(r,n,t.line),o=st(n,e.doc.direction),l="left";o&&(l=Ze(o,t.ch)%2?"right":"left");var s=Vr(i.map,t.ch,l);return s.offset="right"==s.collapse?s.end:s.start,s}function Yl(e,t){return t&&(e.bad=!0),e}function _l(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[r]))return Yl(e.clipPos(ve(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||i.line=t.display.viewFrom&&Xl(t,n)||{node:s[0].measure.map[2],offset:0},u=i.linen.firstLine()&&(l=ve(l.line-1,ae(n.doc,l.line-1).length)),s.ch==ae(n.doc,s.line).text.length&&s.linei.viewTo-1)return!1;r=l.line==i.viewFrom||0==(e=vn(n,l.line))?(t=fe(i.view[0].line),i.view[0].node):(t=fe(i.view[e].line),i.view[e-1].node.nextSibling);var a,u,c=vn(n,s.line);if(u=c==i.view.length-1?(a=i.viewTo-1,i.lineDiv.lastChild):(a=fe(i.view[c+1].line)-1,i.view[c+1].node.previousSibling),!r)return!1;for(var h=n.doc.splitLines(function(a,e,t,u,c){var r="",h=!1,f=a.doc.lineSeparator(),d=!1;function p(){h&&(r+=f,d&&(r+=f),h=d=!1)}function g(e){e&&(p(),r+=e)}function v(e){if(1==e.nodeType){var t=e.getAttribute("cm-text");if(t)return void g(t);var r,n=e.getAttribute("cm-marker");if(n){var i=a.findMarks(ve(u,0),ve(c+1,0),(s=+n,function(e){return e.id==s}));return void(i.length&&(r=i[0].find(0))&&g(ue(a.doc,r.from,r.to).join(f)))}if("false"==e.getAttribute("contenteditable"))return;var o=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;o&&p();for(var l=0;ll.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)d--,p++;h[h.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),h[0]=h[0].slice(d).replace(/\u200b+$/,"");var x=ve(t,d),C=ve(a,f.length?$(f).length-p:0);return 1n&&(Fl(t,o.head.line,e,!0),n=o.head.line,i==t.doc.sel.primIndex&&Fn(t));else{var l=o.from(),s=o.to(),a=Math.max(n,l.line);n=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var u=a;u>1;if((l?r[2*l-1]:0)>=o)i=l;else{if(!(r[2*l+1]h)&&e.top>t.offsetHeight?u=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=h&&(u=e.bottom),c+t.offsetWidth>f&&(c=f-t.offsetWidth)}t.style.top=u+"px",t.style.left=t.style.right="","right"==i?(c=a.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),r&&(o=this,l={left:c,top:u,right:c+t.offsetWidth,bottom:u+t.offsetHeight},null!=(s=Wn(o,l)).scrollTop&&zn(o,s.scrollTop),null!=s.scrollLeft&&Bn(o,s.scrollLeft))},triggerOnKeyDown:ni(pl),triggerOnKeyPress:ni(vl),triggerOnKeyUp:gl,triggerOnMouseDown:ni(wl),execCommand:function(e){if(ol.hasOwnProperty(e))return ol[e].call(null,this)},triggerElectric:ni(function(e){Rl(this,e)}),findPosH:function(e,t,r,n){var i=1;t<0&&(i=-1,t=-t);for(var o=Se(this.doc,e),l=0;lt)return i;o.to==t&&(o.from!=o.to&&"before"==r?n=i:se=i),o.from==t&&(o.from!=o.to&&"before"!=r?n=i:se=i)}return null!=n?n:se}var ue,ce,he,fe,de,pe,ge,ve=(ue="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ce="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",he=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,fe=/[stwN]/,de=/[LRr]/,pe=/[Lb1n]/,ge=/[1n]/,function(e,t){var r="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!he.test(e))return!1;for(var n,i=e.length,o=[],l=0;l=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t=e.first&&to?at(o,et(e,o).text.length):(n=et(e,(r=t).line).text.length,null==(i=r.ch)||n=this.string.length},Je.prototype.sol=function(){return this.pos==this.lineStart},Je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Je.prototype.next=function(){if(this.post},Je.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Je.prototype.skipToEnd=function(){this.pos=this.string.length},Je.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(-1e.options.maxHighlightLength&&qe(e.doc.mode,n.state),o=bt(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function xt(r,n,e){var t=r.doc,i=r.display;if(!t.mode.startState)return new yt(t,!0,n);var o=function(e,t,r){for(var n,i,o=e.doc,l=r?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;lt.first&&et(t,o-1).stateAfter,s=l?yt.fromSaved(t,l,o):new yt(t,Qe(t.mode),o);return t.iter(o,n,function(e){Ct(r,e.text,s);var t=s.line;e.stateAfter=t==n-1||t%5==0||t>=i.viewFrom&&tt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}yt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},yt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},yt.prototype.nextLine=function(){this.line++,0e.options.maxHighlightLength?(s=!1,l&&Ct(e,t,n,h.pos),h.pos=t.length,null):Mt(Lt(r,h,n.state,f),o),f){var d=f[0].name;d&&(a="m-"+(a?d+" "+a:d))}if(!s||c!=a){for(;u=t:o.to>t);(n=n||[]).push(new Dt(l,o.from,s?null:o.to))}}return n}(r,i,l),a=function(e,t,r){var n;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==l.type&&(!r||o.marker.insertLeft)){var s=null==o.from||(l.inclusiveLeft?o.from<=t:o.fromt)&&(!r||Bt(r,o.marker)<0)&&(r=o.marker)}return r}function jt(e,t,r,n,i){var o=et(e,t),l=At&&o.markedSpans;if(l)for(var s=0;se.lastLine())return t;var r,n=et(e,t);if(!$t(e,n))return t;for(;r=Vt(n);)n=r.find(1,!0).line;return it(n)+1}function $t(e,t){var r=At&&t.markedSpans;if(r)for(var n=void 0,i=0;ir.maxLineLength&&(r.maxLineLength=t,r.maxLine=e)})}var er=function(e,t,r){this.text=e,It(this,t),this.height=r?r(this):1};er.prototype.lineNo=function(){return it(this)},Me(er);var tr={},rr={};function nr(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?rr:tr;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function ir(e,t){var r=O("span",null,null,b?"padding-right: .1px":null),n={pre:O("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;n.pos=0,n.addToken=lr,ze(e.display.measure)&&(l=ye(o,e.doc.direction))&&(n.addToken=sr(n.addToken,l)),n.map=[],ur(o,n,wt(e,o,t!=e.display.externalMeasured&&it(o))),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=F(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=F(o.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(Ie(e.display.measure))),0==i?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(b){var s=n.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Se(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=F(n.pre.className,n.textClass||"")),n}function or(e){var t=A("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function lr(e,t,r,n,i,o,l){if(t){var s,a=e.splitSpaces?function(e,t){if(1s&&u.from<=s);c++);if(u.to>=a)return h(e,t,r,n,i,o,l);h(e,t.slice(0,u.to-s),r,n,null,o,l),n=null,t=t.slice(u.to-s),s=u.to}}}function ar(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i=i||e.content.appendChild(document.createElement("span"))).setAttribute("cm-marker",r.id),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function ur(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(n)for(var l,s,a,u,c,h,f,d=i.length,p=0,g=1,v="",m=0;;){if(m==p){a=u=c=s="",h=f=null,m=1/0;for(var y=[],b=void 0,w=0;wp||C.collapsed&&x.to==p&&x.from==p)){if(null!=x.to&&x.to!=p&&m>x.to&&(m=x.to,u=""),C.className&&(a+=" "+C.className),C.css&&(s=(s?s+";":"")+C.css),C.startStyle&&x.from==p&&(c+=" "+C.startStyle),C.endStyle&&x.to==m&&(b=b||[]).push(C.endStyle,x.to),C.title&&((f=f||{}).title=C.title),C.attributes)for(var S in C.attributes)(f=f||{})[S]=C.attributes[S];C.collapsed&&(!h||Bt(h.marker,C)<0)&&(h=x)}else x.from>p&&m>x.from&&(m=x.from)}if(b)for(var L=0;Lr)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Er(e,t,r,n){return Rr(e,zr(e,t),r,n)}function Ir(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&tt)&&(i=(o=a-s)-1,a<=t&&(l="right")),null!=i){if(n=e[u+2],s==a&&r==(n.insertLeft?"left":"right")&&(l=r),"left"==r&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)n=e[2+(u-=3)],l="left";if("right"==r&&i==a-s)for(;u=o.text.length?(t=o.text.length,r="before"):t<=0&&(t=0,r="after"),!u)return a("before"==r?t-1:t,"before"==r);function c(e,t,r){return a(r?e-1:e,1==u[t].level!=r)}var h=ae(u,t,r),f=se,d=c(t,h,"before"==r);return null!=f&&(d.other=c(t,f,"before"!=r)),d}function en(e,t){var r=0;t=gt(e.doc,t),e.options.lineWrapping||(r=un(e.display)*t.ch);var n=et(e.doc,t.line),i=Zt(n)+Or(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function tn(e,t,r,n,i){var o=at(e,t,r);return o.xRel=i,n&&(o.outside=n),o}function rn(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return tn(n.first,0,null,-1,-1);var i=ot(n,r),o=n.first+n.size-1;if(on},o,i)}}function on(e,t,r,n){return nn(e,t,r=r||zr(e,t),qr(e,t,Rr(e,r,n),"line").top)}function ln(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function sn(r,e,t,n,i){i-=Zt(e);var o=zr(r,e),l=$r(e),s=0,a=e.text.length,u=!0,c=ye(e,r.doc.direction);if(c){var h=(r.options.lineWrapping?function(e,t,r,n,i,o,l){var s=nn(e,t,n,l),a=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,h=null,f=0;f=u||d.to<=a)){var p=1!=d.level,g=Rr(e,n,p?Math.min(u,d.to)-1:Math.max(a,d.from)).right,v=gu&&(c={from:c.from,to:u,level:c.level});return c}:function(n,i,o,l,s,a,u){var e=le(function(e){var t=s[e],r=1!=t.level;return ln(Jr(n,at(o,r?t.to:t.from,r?"before":"after"),"line",i,l),a,u,!0)},0,s.length-1),t=s[e];if(0u&&(t=s[e-1])}return t})(r,e,t,o,c,n,i);s=(u=1!=h.level)?h.from:h.to-1,a=u?h.to:h.from-1}var f,d,p=null,g=null,v=le(function(e){var t=Rr(r,o,e);return t.top+=l,t.bottom+=l,ln(t,n,i,!1)&&(t.top<=i&&t.left<=n&&(p=e,g=t),1)},s,a),m=!1;if(g){var y=n-g.left=w.bottom?1:0}return tn(t,v=oe(e.text,v,1),d,m,n-f)}function an(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Br){Br=A("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Br.appendChild(document.createTextNode("x")),Br.appendChild(A("br"));Br.appendChild(document.createTextNode("x"))}N(e.measure,Br);var r=Br.offsetHeight/50;return 3=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;nt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)At&&Yt(e.doc,t)i.viewFrom?yn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)yn(e);else if(t<=i.viewFrom){var o=bn(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):yn(e)}else if(r>=i.viewTo){var l=bn(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):yn(e)}else{var s=bn(e,t,t,-1),a=bn(e,r,r+n,1);s&&a?(i.view=i.view.slice(0,s.index).concat(hr(e,s.lineN,a.lineN)).concat(i.view.slice(a.index)),i.viewTo+=n):yn(e)}var u=i.externalMeasured;u&&(r=i.lineN&&t=n.viewTo)){var o=n.view[gn(e,t)];if(null!=o.node){var l=o.changes||(o.changes=[]);-1==B(l,r)&&l.push(r)}}}function yn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function bn(e,t,r,n){var i,o=gn(e,t),l=e.display.view;if(!At||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var s=e.display.viewFrom,a=0;a=e.display.viewTo||s.to().linet||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),1==l.level?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}(k,y||0,null==b?C:b,function(e,t,r,n){var i="ltr"==r,o=S(e,i?"left":"right"),l=S(t-1,i?"right":"left"),s=null==y&&0==e,a=null==b&&t==C,u=0==n,c=!k||n==k.length-1;if(l.top-o.top<=3){var h=(N?a:s)&&c,f=(N?s:a)&&u?T:(i?o:l).left,d=h?M:(i?l:o).right;O(f,o.top,d-f,o.bottom)}else{var p,g,v,m;m=i?(p=N&&s&&u?T:o.left,g=N?M:L(e,r,"before"),v=N?T:L(t,r,"after"),N&&a&&c?M:l.right):(p=N?L(e,r,"before"):T,g=!N&&s&&u?M:o.right,v=!N&&a&&c?T:l.left,N?L(t,r,"after"):M),O(p,o.top,g-p,o.bottom),o.bottome.display.sizerWidth){var f=Math.ceil(s/un(e.display));f>e.display.maxLineLength&&(e.display.maxLineLength=f,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Wn(e){if(e.widgets)for(var t=0;t=l&&(o=ot(t,Zt(et(t,a))-e.wrapper.clientHeight),l=a)}return{from:o,to:Math.max(l,o+1)}}function Fn(e,t){var r=e.display,n=an(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,o=Fr(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Ar(r),a=t.tops-n;if(t.topi+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(l.scrollTop=c)}var h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft,f=Hr(e)-(e.options.fixedGutter?r.gutters.offsetWidth:0),d=t.right-t.left>f;return d&&(t.right=t.left+f),t.left<10?l.scrollLeft=0:t.leftf+h-3&&(l.scrollLeft=t.right+(d?0:10)-f),l}function Pn(e,t){null!=t&&(zn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function En(e){zn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function In(e,t,r){null==t&&null==r||zn(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function zn(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Rn(e,en(e,t.from),en(e,t.to),t.margin))}function Rn(e,t,r,n){var i=Fn(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});In(e,i.scrollLeft,i.scrollTop)}function Bn(e,t){Math.abs(e.doc.scrollTop-t)<2||(g||fi(e,{top:t}),Gn(e,t,!0),g&&fi(e),si(e,100))}function Gn(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!r||(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Un(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,gi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Vn(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Ar(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Wr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}function Kn(e,t,r){this.cm=r;var n=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),we(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),we(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,x&&C<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}Kn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&0=i.viewTo)||i.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new ui(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ei(e){var t=e.cm,r=t.display;e.updatedDisplay&&Dn(t),e.barMeasure=Vn(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Er(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Wr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Hr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function ti(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!a){var o=A("div","​",null,"position: absolute;\n top: "+(t.top-r.viewOffset-Or(e.display))+"px;\n height: "+(t.bottom-t.top+Wr(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,r,n){var i;null==n&&(n=0),e.options.lineWrapping||t!=r||(r="before"==(t=t.ch?at(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?at(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var l=!1,s=Jr(e,t),a=r&&r!=t?Jr(e,r):s,u=Fn(e,i={left:Math.min(s.left,a.left),top:Math.min(s.top,a.top)-n,right:Math.max(s.left,a.left),bottom:Math.max(s.bottom,a.bottom)+n}),c=e.doc.scrollTop,h=e.doc.scrollLeft;if(null!=u.scrollTop&&(Bn(e,u.scrollTop),1=a.display.viewTo)){var c=+new Date+a.options.workTime,h=xt(a,u.highlightFrontier),f=[];u.iter(h.line,Math.min(u.first+u.size,a.display.viewTo+500),function(e){if(h.line>=a.display.viewFrom){var t=e.styles,r=e.text.length>a.options.maxHighlightLength?qe(u.mode,h.state):null,n=bt(a,e,h,!0);r&&(h.state=r),e.styles=n.styles;var i=e.styleClasses,o=n.classes;o?e.styleClasses=o:i&&(e.styleClasses=null);for(var l=!t||t.length!=e.styles.length||i!=o&&(!i||!o||i.bgClass!=o.bgClass||i.textClass!=o.textClass),s=0;!l&&sc)return si(a,a.options.workDelay),!0}),u.highlightFrontier=h.line,u.modeFrontier=Math.max(u.modeFrontier,h.line),f.length&&ni(a,function(){for(var e=0;e=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==wn(e))return!1;vi(e)&&(yn(e),t.dims=cn(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFroml&&r.viewTo-l<20&&(l=Math.min(i,r.viewTo)),At&&(o=Yt(e.doc,o),l=_t(e.doc,l));var s,a,u,c,h=o!=r.viewFrom||l!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;a=o,u=l,0==(c=(s=e).display).view.length||a>=c.viewTo||u<=c.viewFrom?(c.view=hr(s,a,u),c.viewFrom=a):(c.viewFrom>a?c.view=hr(s,a,c.viewFrom).concat(c.view):c.viewFromu&&(c.view=c.view.slice(0,gn(s,u)))),c.viewTo=u,r.viewOffset=Zt(et(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var f=wn(e);if(!h&&0==f&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var d=function(e){if(e.hasFocus())return null;var t=W();if(!t||!D(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&D(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}(e);return 4=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ci(e,t))break;Dn(e);var i=Vn(e);xn(e),Xn(e,i),pi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function fi(e,t){var r=new ui(e,t);if(ci(e,r)){Dn(e),hi(e,r);var n=Vn(e);xn(e),Xn(e,n),pi(e,n),r.finish()}}function di(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function pi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Wr(e)+"px"}function gi(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=hn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",l=0;ll.clientWidth,a=l.scrollHeight>l.clientHeight;if(n&&s||i&&a){if(i&&w&&b)e:for(var u=t.target,c=o.view;u!=l;u=u.parentNode)for(var h=0;ha-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=(s=i).lastOp==n?(Vi(s.done),$(s.done)):s.done.length&&!$(s.done).ranges?$(s.done):1i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,l||Se(e,"historyAdded")}function ji(e,t,r,n){var i,o,l,s,a,u=e.history,c=n&&n.origin;r==u.lastSelOp||c&&u.lastSelOrigin==c&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==c||(i=e,o=c,l=$(u.done),s=t,"*"==(a=o.charAt(0))||"+"==a&&l.ranges.length==s.ranges.length&&l.somethingSelected()==s.somethingSelected()&&new Date-i.history.lastSelTime<=(i.cm?i.cm.options.historyEventDelay:500)))?u.done[u.done.length-1]=t:Xi(t,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=c,u.lastSelOp=r,n&&!1!==n.clearRedo&&Vi(u.undone)}function Xi(e,t){var r=$(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Yi(t,r,e,n){var i=r["spans_"+t.id],o=0;t.iter(Math.max(t.first,e),Math.min(t.first+t.size,n),function(e){e.markedSpans&&((i=i||(r["spans_"+t.id]={}))[o]=e.markedSpans),++o})}function _i(e){if(!e)return null;for(var t,r=0;r=t.ch:s.to>t.ch))){if(i&&(Se(a,"beforeCursorEnter"),a.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(!a.atomic)continue;if(r){var h=a.find(n<0?1:-1),f=void 0;if((n<0?c:u)&&(h=co(e,h,-n,h&&h.line==t.line?o:null)),h&&h.line==t.line&&(f=ut(h,r))&&(n<0?f<0:0e.first?gt(e,at(t.line-1)):null:0e.lastLine())){if(t.from.lineo&&(t={from:t.from,to:at(o,et(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=tt(e,t.from,t.to),r=r||Wi(e,t),e.cm?function(e,t,r){var n=e.doc,i=e.display,o=t.from,l=t.to,s=!1,a=o.line;e.options.lineWrapping||(a=it(Xt(et(n,o.line))),n.iter(a,l.line+1,function(e){if(e==i.maxLine)return s=!0}));-1i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiere.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=n&&e&&this.collapsed&&vn(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&lo(e.doc)),e&&gr(e,"markerCleared",e,this,n,i),t&&Qn(e),this.parent&&this.parent.clear()}},Oo.prototype.find=function(e,t){var r,n;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(i,o,l){i=gt(this,i),o=gt(this,o);var s=[],a=i.line;return this.iter(i.line,o.line+1,function(e){var t=e.markedSpans;if(t)for(var r=0;r=n.to||null==n.from&&a!=i.line||null!=n.from&&a==o.line&&n.from>=o.ch||l&&!l(n.marker)||s.push(n.marker.parent||n.marker)}++a}),s},getAllMarks:function(){var n=[];return this.iter(function(e){var t=e.markedSpans;if(t)for(var r=0;rt&&(t=e.from),null!=e.to&&e.toe.text.length?null:n}function nl(e,t,r){var n=rl(e,t.ch,r);return null==n?null:new at(t.line,n,r<0?"after":"before")}function il(e,t,r,n,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=ye(r,t.doc.direction);if(o){var l,s=i<0?$(o):o[0],a=i<0==(1==s.level)?"after":"before";if(0=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var n=ae(a,s.ch,s.sticky),i=a[n];if("ltr"==t.doc.direction&&i.level%2==0&&(0s.ch:i.from=i.from&&f>=c.begin)){var d=h?"before":"after";return new at(s.line,f,d)}}function p(e,t,r){for(var n=function(e,t){return t?new at(s.line,u(e,1),"before"):new at(s.line,e,"after")};0<=e&&el.doc.first){var o=et(l.doc,n.line-1).text;o&&(n=new at(n.line,1),l.replaceRange(i.charAt(0)+l.doc.lineSeparator()+o.charAt(o.length-1),at(n.line-1,o.length-1),n,"+transpose"))}t.push(new Mi(n,n))}l.setSelections(t)})},newlineAndIndent:function(n){return ni(n,function(){for(var e=n.listSelections(),t=e.length-1;0<=t;t--)n.replaceRange(n.doc.lineSeparator(),e[t].anchor,e[t].head,"+input");e=n.listSelections();for(var r=0;rc&&t.push(new Mi(at(s,c),at(s,X(u,l,r))))}t.length||t.push(new Mi(m,m)),no(b,Ni(v,C.ranges.slice(0,x).concat(t),x),{origin:"*mouse",scroll:!1}),v.scrollIntoView(e)}else{var h,f=w,d=Cl(v,e,y.unit),p=f.anchor;p=0=i.to||n.linea.bottom?20:0;o&&setTimeout(ii(v,function(){u==r&&(l.scroller.scrollTop+=o,e(t))}),50)}}:n)(e)}),o=ii(v,n);v.state.selectingText=o,we(l.wrapper.ownerDocument,"mousemove",i),we(l.wrapper.ownerDocument,"mouseup",o)})(e,n,t,o)}(t,l,a,e):We(e)==r.scroller&&Ne(e):2==s?(l&&Qi(t.doc,l),setTimeout(function(){return r.input.focus()},20)):3==s&&(S?t.display.input.onContextMenu(e):Nn(t)))}}function Cl(e,t,r){if("char"==r)return new Mi(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new Mi(at(t.line,0),gt(e.doc,at(t.line+1,0)));var n=r(e,t);return new Mi(n.from,n.to)}function Sl(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&Ne(t);var l=e.display,s=l.lineDiv.getBoundingClientRect();if(o>s.bottom||!Te(e,r))return Ae(t);o-=s.top-l.viewOffset;for(var a=0;a=i)return Se(e,r,e,ot(e.doc,o),e.display.gutterSpecs[a].className,t),Ae(t)}}function Ll(e,t){return Sl(e,t,"gutterClick",!0)}function kl(e,t){var r,n;Nr(e.display,t)||(n=t,Te(r=e,"gutterContextMenu")&&Sl(r,n,"gutterContextMenu",!1))||Le(e,t,"contextmenu")||S||e.display.input.onContextMenu(t)}function Tl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Xr(e)}wl.prototype.compare=function(e,t,r){return this.time+400>e&&0==ut(t,this.pos)&&r==this.button};var Ml={toString:function(){return"CodeMirror.Init"}},Nl={},Ol={};function Al(e,t,r){if(!t!=!(r&&r!=Ml)){var n=e.display.dragFunctions,i=t?we:Ce;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function Dl(e){e.options.lineWrapping?(H(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),Jt(e)),dn(e),vn(e),Xr(e),setTimeout(function(){return Xn(e)},100)}function Wl(e,t){var r=this;if(!(this instanceof Wl))return new Wl(e,t);this.options=t=t?I(t):{},I(Nl,t,!1);var n=t.value;"string"==typeof n?n=new Po(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Wl.inputStyles[t.inputStyle](this),o=this.display=new wi(e,n,i,t);for(var l in Tl(o.wrapper.CodeMirror=this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),$n(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new R,keySeq:null,specialChars:null},t.autofocus&&!f&&o.input.focus(),x&&C<11&&setTimeout(function(){return r.display.input.reset(!0)},20),function(i){var o=i.display;we(o.scroller,"mousedown",ii(i,xl)),we(o.scroller,"dblclick",x&&C<11?ii(i,function(e){if(!Le(i,e)){var t=pn(i,e);if(t&&!Ll(i,e)&&!Nr(i.display,e)){Ne(e);var r=i.findWordAt(t);Qi(i.doc,r.anchor,r.head)}}}):function(e){return Le(i,e)||Ne(e)});we(o.scroller,"contextmenu",function(e){return kl(i,e)}),we(o.input.getField(),"contextmenu",function(e){o.scroller.contains(e.target)||kl(i,e)});var r,n={end:0};function l(){o.activeTouch&&(r=setTimeout(function(){return o.activeTouch=null},1e3),(n=o.activeTouch).end=+new Date)}function s(e,t){if(null==t.left)return 1;var r=t.left-e.left,n=t.top-e.top;return 400o.first?z(et(o,t-1).text,null,l):0:"add"==r?u=a+e.options.indentUnit:"subtract"==r?u=a-e.options.indentUnit:"number"==typeof r&&(u=a+r),u=Math.max(0,u);var h="",f=0;if(e.options.indentWithTabs)for(var d=Math.floor(u/l);d;--d)f+=l,h+="\t";if(fl,a=Be(t),u=null;if(s&&1l?"cut":"+input")};po(e.doc,v),gr(e,"inputRead",e,v)}t&&!s&&Rl(e,t),En(e),e.curOp.updateInput<2&&(e.curOp.updateInput=h),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function zl(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");return r&&(e.preventDefault(),t.isReadOnly()||t.options.disableInput||ni(t,function(){return Il(t,r,0,null,"paste")}),1)}function Rl(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;0<=n;n--){var i=r.ranges[n];if(!(100=n.first+n.size||(i=new at(r,i.ch,i.sticky),!(s=et(n,r))))return;i=il(l,n.cm,s,i.line,a)}else i=t;return 1}if("char"==e)u();else if("column"==e)u(!0);else if("word"==e||"group"==e)for(var c=null,h="group"==e,f=n.cm&&n.cm.getHelper(i,"wordChars"),d=!0;!(o<0)||u(!d);d=!1){var p=s.text.charAt(i.ch)||"\n",g=te(p,f)?"w":h&&"\n"==p?"n":!h||/\s/.test(p)?null:"p";if(!h||d||g||(g="s"),c&&c!=g){o<0&&(o=1,u(),i.sticky="after");break}if(g&&(c=g),0=l.height){o.hitSide=!0;break}i+=5*r}return o}function jl(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null}function Xl(e,t){var r=Ir(e,t.line);if(!r||r.hidden)return null;var n=et(e.doc,t.line),i=Pr(r,n,t.line),o=ye(n,e.doc.direction),l="left";o&&(l=ae(o,t.ch)%2?"right":"left");var s=Ur(i.map,t.ch,l);return s.offset="right"==s.collapse?s.end:s.start,s}function Yl(e,t){return t&&(e.bad=!0),e}function _l(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[r]))return Yl(e.clipPos(at(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||i.line=t.display.viewFrom&&Xl(t,n)||{node:s[0].measure.map[2],offset:0},u=i.linen.firstLine()&&(l=at(l.line-1,et(n.doc,l.line-1).length)),s.ch==et(n.doc,s.line).text.length&&s.linei.viewTo-1)return!1;r=l.line==i.viewFrom||0==(e=gn(n,l.line))?(t=it(i.view[0].line),i.view[0].node):(t=it(i.view[e].line),i.view[e-1].node.nextSibling);var a,u,c=gn(n,s.line);if(u=c==i.view.length-1?(a=i.viewTo-1,i.lineDiv.lastChild):(a=it(i.view[c+1].line)-1,i.view[c+1].node.previousSibling),!r)return!1;for(var h=n.doc.splitLines(function(a,e,t,u,c){var r="",h=!1,f=a.doc.lineSeparator(),d=!1;function p(){h&&(r+=f,d&&(r+=f),h=d=!1)}function g(e){e&&(p(),r+=e)}function v(e){if(1==e.nodeType){var t=e.getAttribute("cm-text");if(t)return void g(t);var r,n=e.getAttribute("cm-marker");if(n){var i=a.findMarks(at(u,0),at(c+1,0),(s=+n,function(e){return e.id==s}));return void(i.length&&(r=i[0].find(0))&&g(tt(a.doc,r.from,r.to).join(f)))}if("false"==e.getAttribute("contenteditable"))return;var o=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;o&&p();for(var l=0;ll.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)d--,p++;h[h.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),h[0]=h[0].slice(d).replace(/\u200b+$/,"");var x=at(t,d),C=at(a,f.length?$(f).length-p:0);return 1r&&(Fl(this,i.head.line,e,!0),r=i.head.line,n==this.doc.sel.primIndex&&En(this));else{var o=i.from(),l=i.to(),s=Math.max(r,o.line);r=Math.min(this.lastLine(),l.line-(l.ch?0:1))+1;for(var a=s;a>1;if((l?r[2*l-1]:0)>=o)i=l;else{if(!(r[2*l+1]h)&&e.top>t.offsetHeight?u=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=h&&(u=e.bottom),c+t.offsetWidth>f&&(c=f-t.offsetWidth)}t.style.top=u+"px",t.style.left=t.style.right="","right"==i?(c=a.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),r&&(o=this,l={left:c,top:u,right:c+t.offsetWidth,bottom:u+t.offsetHeight},null!=(s=Fn(o,l)).scrollTop&&Bn(o,s.scrollTop),null!=s.scrollLeft&&Un(o,s.scrollLeft))},triggerOnKeyDown:oi(gl),triggerOnKeyPress:oi(ml),triggerOnKeyUp:vl,triggerOnMouseDown:oi(xl),execCommand:function(e){if(ll.hasOwnProperty(e))return ll[e].call(null,this)},triggerElectric:oi(function(e){Rl(this,e)}),findPosH:function(e,t,r,n){var i=1;t<0&&(i=-1,t=-t);for(var o=gt(this.doc,e),l=0;l":[null,"greaterThan"],"≥":[null,"greaterThanOrEqual"],"≠":[null,"notEqual"],"≡":["depth","match"],"≢":[null,"notMatch"],"∈":["enlist","membership"],"⍷":[null,"find"],"∪":["unique","union"],"∩":[null,"intersection"],"∼":["not","without"],"∨":[null,"or"],"∧":[null,"and"],"⍱":[null,"nor"],"⍲":[null,"nand"],"⍴":["shapeOf","reshape"],",":["ravel","catenate"],"⍪":[null,"firstAxisCatenate"],"⌽":["reverse","rotate"],"⊖":["axis1Reverse","axis1Rotate"],"⍉":["transpose",null],"↑":["first","take"],"↓":[null,"drop"],"⊂":["enclose","partitionWithAxis"],"⊃":["diclose","pick"],"⌷":[null,"index"],"⍋":["gradeUp",null],"⍒":["gradeDown",null],"⊤":["encode",null],"⊥":["decode",null],"⍕":["format","formatByExample"],"⍎":["execute",null],"⊣":["stop","left"],"⊢":["pass","right"]},l=/[\.\/⌿⍀¨⍣]/,c=/⍬/,u=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,d=/←/,m=/[⍝#].*$/;return{startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(e,t){var r,n,i,a;return e.eatSpace()?null:'"'===(r=e.next())||"'"===r?(e.eatWhile((i=r,a=!1,function(e){return(a=e)!==i||"\\"===a})),e.next(),t.prev=!0,"string"):/[\[{\(]/.test(r)?(t.prev=!1,null):/[\]}\)]/.test(r)?(t.prev=!0,null):c.test(r)?(t.prev=!1,"niladic"):/[¯\d]/.test(r)?(t.func?(t.func=!1,t.prev=!1):t.prev=!0,e.eatWhile(/[\w\.]/),"number"):l.test(r)?"operator apl-"+o[r]:d.test(r)?"apl-arrow":u.test(r)?(n="apl-",null!=s[r]&&(t.prev?n+=s[r][1]:n+=s[r][0]),t.func=!0,t.prev=!1,"function "+n):m.test(r)?(e.skipToEnd(),"comment"):"∘"===r&&"."===e.peek()?(e.next(),"function jot-dot"):(e.eatWhile(/[\w\$_]/),t.prev=!0,"keyword")}}}),e.defineMIME("text/apl","apl")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(C){"use strict";function I(e,t,r,n,i,a){this.indented=e,this.column=t,this.type=r,this.info=n,this.align=i,this.prev=a}function A(e,t,r,n){var i=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=r&&(i=e.context.indented),e.context=new I(i,t,r,n,null,e.context)}function $(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function j(e,t,r){return"variable"==t.prevToken||"type"==t.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,r))||(!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0))}function O(e){for(;;){if(!e||"top"==e.type)return 1;if("}"==e.type&&"namespace"!=e.prev.info)return;e=e.prev}}function e(e){for(var t={},r=e.split(" "),n=0;n!?|\/]/,q=s.isIdentifierChar||/[\w\$_\xa1-\uffff]/,S=s.isReservedIdentifier||!1;function E(e,t){var a,r=e.next();if(_[r]){var n=_[r](e,t);if(!1!==n)return n}if('"'==r||"'"==r)return t.tokenize=(a=r,function(e,t){for(var r,n=!1,i=!1;null!=(r=e.next());){if(r==a&&!n){i=!0;break}n=!n&&"\\"==r}return!i&&(n||y)||(t.tokenize=null),"string"}),t.tokenize(e,t);if(k.test(r))return o=r,null;if(x.test(r)){if(e.backUp(1),e.match(w))return"number";e.next()}if("/"==r){if(e.eat("*"))return(t.tokenize=T)(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(z.test(r)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(z););return"operator"}if(e.eatWhile(q),v)for(;e.match(v);)e.eatWhile(q);var i=e.current();return N(m,i)?(N(h,i)&&(o="newstatement"),N(g,i)&&(l=!0),"keyword"):N(p,i)?"type":N(f,i)||S&&S(i)?(N(h,i)&&(o="newstatement"),"builtin"):N(b,i)?"atom":"variable"}function T(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=null;break}n="*"==r}return"comment"}function M(e,t){s.typeFirstDefinitions&&e.eol()&&O(t.context)&&(t.typeAtEndOfLine=j(e,t,e.pos))}return{startState:function(e){return{tokenize:null,context:new I((e||0)-c,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return M(e,t),null;o=l=null;var n=(t.tokenize||E)(e,t);if("comment"==n||"meta"==n)return n;if(null==r.align&&(r.align=!0),";"==o||":"==o||","==o&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)$(t);else if("{"==o)A(t,e.column(),"}");else if("["==o)A(t,e.column(),"]");else if("("==o)A(t,e.column(),")");else if("}"==o){for(;"statement"==r.type;)r=$(t);for("}"==r.type&&(r=$(t));"statement"==r.type;)r=$(t)}else o==r.type?$(t):a&&(("}"==r.type||"top"==r.type)&&";"!=o||"statement"==r.type&&"newstatement"==o)&&A(t,e.column(),"statement",e.current());if("variable"==n&&("def"==t.prevToken||s.typeFirstDefinitions&&j(e,t,e.start)&&O(t.context)&&e.match(/^\s*\(/,!1))&&(n="def"),_.token){var i=_.token(e,t,n);void 0!==i&&(n=i)}return"def"==n&&!1===s.styleDefs&&(n="variable"),t.startOfLine=!1,t.prevToken=l?"def":n||o,M(e,t),n},indent:function(e,t){if(e.tokenize!=E&&null!=e.tokenize||e.typeAtEndOfLine)return C.Pass;var r=e.context,n=t&&t.charAt(0),i=n==r.type;if("statement"==r.type&&"}"==n&&(r=r.prev),s.dontIndentStatements)for(;"statement"==r.type&&s.dontIndentStatements.test(r.info);)r=r.prev;if(_.indent){var a=_.indent(e,r,t,c);if("number"==typeof a)return a}var o=r.prev&&"switch"==r.prev.info;if(s.allmanIndentation&&/[{(]/.test(n)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==n?0:u):!r.align||d&&")"==r.type?")"!=r.type||i?r.indented+(i?0:c)+(i||!o||/^(?:case|default)\b/.test(t)?0:c):r.indented+u:r.column+(i?0:1)},electricInput:t?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});var t="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",r=e("int long char short double float unsigned signed void bool"),n=e("SEL instancetype id Class Protocol BOOL");function i(e){return N(r,e)||/.+_t/.test(e)}var a="case do else for if switch while struct enum union",o="struct enum union";function s(e,t){if(!t.startOfLine)return!1;for(var r,n=null;r=e.peek();){if("\\"==r&&e.match(/^.$/)){n=s;break}if("/"==r&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=n,"meta"}function l(e,t){return"type"==t.prevToken&&"type"}function c(e){return!(!e||e.length<2)&&("_"==e[0]&&("_"==e[1]||e[1]!==e[1].toLowerCase()))}function u(e){return e.eatWhile(/[\w\.']/),"number"}function d(e,t){if(e.backUp(1),e.match(/(R|u8R|uR|UR|LR)/)){var r=e.match(/"([^\s\\()]{0,16})\(/);return r?(t.cpp11RawStringDelim=r[1],(t.tokenize=p)(e,t)):!1}return e.match(/(u8|u|U|L)/)?!!e.match(/["']/,!1)&&"string":(e.next(),!1)}function m(e,t){for(var r;null!=(r=e.next());)if('"'==r&&!e.eat('"')){t.tokenize=null;break}return"string"}function p(e,t){var r=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+r+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function f(e,t){"string"==typeof e&&(e=[e]);var r=[];function n(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}n(t.keywords),n(t.types),n(t.builtin),n(t.atoms),r.length&&(t.helperType=e[0],C.registerHelper("hintWords",e[0],r));for(var i=0;i!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=h,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,t){var r=t.context;return!("}"!=r.type||!r.align||!e.eat(">"))&&(t.context=new I(r.indented,r.column,r.type,r.info,null,r.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=function n(i){return function(e,t){for(var r;r=e.next();){if("*"==r&&e.eat("/")){if(1!=i)return t.tokenize=n(i-1),t.tokenize(e,t);t.tokenize=null;break}if("/"==r&&e.eat("*"))return t.tokenize=n(i+1),t.tokenize(e,t)}return"comment"}}(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),f("text/x-kotlin",{name:"clike",keywords:e("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:e("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:e("catch class do else finally for if where try while enum"),defKeywords:e("class val var object interface fun"),atoms:e("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){var a;return t.tokenize=(a=e.match('""'),function(e,t){for(var r,n=!1,i=!1;!e.eol();){if(!a&&!n&&e.match('"')){i=!0;break}if(a&&e.match('"""')){i=!0;break}r=e.next(),!n&&"$"==r&&e.match("{")&&e.skipTo("}"),n=!n&&"\\"==r&&!a}return!i&&a||(t.tokenize=null),"string"}),t.tokenize(e,t)},indent:function(e,t,r,n){var i=r&&r.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=r?"operator"==e.prevToken&&"}"!=r||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*n+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(r||"").charAt(0)?0:n):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),f(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:e("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:e("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:e("for while do if else struct"),builtin:e("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:e("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":s},modeProps:{fold:["brace","include"]}}),f("text/x-nesc",{name:"clike",keywords:e(t+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:i,blockKeywords:e(a),atoms:e("null true false"),hooks:{"#":s},modeProps:{fold:["brace","include"]}}),f("text/x-objectivec",{name:"clike",keywords:e(t+" bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available"),types:function(e){return i(e)||N(n,e)},builtin:e("FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINED NS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT"),blockKeywords:e(a+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:e(o+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:e("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:c,hooks:{"#":s,"*":l},modeProps:{fold:["brace","include"]}}),f("text/x-squirrel",{name:"clike",keywords:e("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:i,blockKeywords:e("case catch class else for foreach if switch try while"),defKeywords:e("function local class"),typeFirstDefinitions:!0,atoms:e("true false null"),hooks:{"#":s},modeProps:{fold:["brace","include"]}});var g=null;f("text/x-ceylon",{name:"clike",keywords:e("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:e("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:e("class dynamic function interface module object package value"),builtin:e("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:e("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=function a(o){return function(e,t){for(var r,n=!1,i=!1;!e.eol();){if(!n&&e.match('"')&&("single"==o||e.match('""'))){i=!0;break}if(!n&&e.match("``")){g=a(o),i=!0;break}r=e.next(),n="single"==o&&!n&&"\\"==r}return i&&(t.tokenize=null),"string"}}(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!g||!e.match("`"))&&(t.tokenize=g,g=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,r){if(("variable"==r||"type"==r)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("commonlisp",function(n){var i,a=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,o=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,s=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,r=/[^\s'`,@()\[\]";]/;function l(e){for(var t;t=e.next();)if("\\"==t)e.next();else if(!r.test(t)){e.backUp(1);break}return e.current()}function c(e,t){if(e.eatSpace())return i="ws",null;if(e.match(s))return"number";var r;if("\\"==(r=e.next())&&(r=e.next()),'"'==r)return(t.tokenize=u)(e,t);if("("==r)return i="open","bracket";if(")"==r||"]"==r)return i="close","bracket";if(";"==r)return e.skipToEnd(),i="ws","comment";if(/['`,@]/.test(r))return null;if("|"==r)return e.skipTo("|")?(e.next(),"symbol"):(e.skipToEnd(),"error");if("#"==r)return"("==(r=e.next())?(i="open","bracket"):/[+\-=\.']/.test(r)||/\d/.test(r)&&e.match(/^\d*#/)?null:"|"==r?(t.tokenize=d)(e,t):":"==r?(l(e),"meta"):"\\"==r?(e.next(),l(e),"string-2"):"error";var n=l(e);return"."==n?null:(i="symbol","nil"==n||"t"==n||":"==n.charAt(0)?"atom":"open"==t.lastType&&(a.test(n)||o.test(n))?"keyword":"&"==n.charAt(0)?"variable-2":"variable")}function u(e,t){for(var r,n=!1;r=e.next();){if('"'==r&&!n){t.tokenize=c;break}n=!n&&"\\"==r}return"string"}function d(e,t){for(var r,n;r=e.next();){if("#"==r&&"|"==n){t.tokenize=c;break}n=r}return i="ws","comment"}return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:c}},token:function(e,t){e.sol()&&"number"!=typeof t.ctx.indentTo&&(t.ctx.indentTo=t.ctx.start+1),i=null;var r=t.tokenize(e,t);return"ws"!=i&&(null==t.ctx.indentTo?"symbol"==i&&o.test(e.current())?t.ctx.indentTo=t.ctx.start+n.indentUnit:t.ctx.indentTo="next":"next"==t.ctx.indentTo&&(t.ctx.indentTo=e.column()),t.lastType=i),"open"==i?t.ctx={prev:t.ctx,start:e.column(),indentTo:null}:"close"==i&&(t.ctx=t.ctx.prev||t.ctx),r},indent:function(e,t){var r=e.ctx.indentTo;return"number"==typeof r?r:e.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:";;",blockCommentStart:"#|",blockCommentEnd:"|#"}}),e.defineMIME("text/x-common-lisp","commonlisp")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(C){"use strict";function e(e){for(var t={},r=0;r*\/]/.test(r)?v(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?v("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?v(null,r):("u"==r||"U"==r)&&e.match(/rl(-prefix)?\(/i)||("d"==r||"D"==r)&&e.match("omain(",!0,!0)||("r"==r||"R"==r)&&e.match("egexp(",!0,!0)?(e.backUp(1),t.tokenize=x,v("property","word")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),v("property","word")):v(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),v("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?v("variable-2","variable-definition"):v("variable-2","variable")):e.match(/^\w+-/)?v("meta","meta"):void 0})(e,t);return r&&"object"==typeof r&&(n=r[1],r=r[0]),i=r,"comment"!=n&&(t.state=M[t.state](n,e,t)),i},indent:function(e,t){var r=e.context,n=t&&t.charAt(0),i=r.indent;return"prop"!=r.type||"}"!=n&&")"!=n||(r=r.prev),r.prev&&("}"!=n||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=n||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=n||"at"!=r.type&&"atBlock"!=r.type)||(i=Math.max(0,r.indent-a)):i=(r=r.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:_,fold:"brace"}});var t=["domain","regexp","url","url-prefix"],r=e(t),n=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=e(n),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],o=e(a),s=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],l=e(s),c=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],u=e(c),d=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],m=e(d),p=e(["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),f=e(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),h=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],g=e(h),b=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],_=e(b),y=t.concat(n).concat(a).concat(s).concat(c).concat(d).concat(h).concat(b);function v(e,t){for(var r,n=!1;null!=(r=e.next());){if(n&&"/"==r){t.tokenize=null;break}n="*"==r}return["comment","comment"]}C.registerHelper("hintWords","css",y),C.defineMIME("text/css",{documentTypes:r,mediaTypes:i,mediaFeatures:o,mediaValueKeywords:l,propertyKeywords:u,nonStandardPropertyKeywords:m,fontProperties:p,counterDescriptors:f,colorKeywords:g,valueKeywords:_,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=v)(e,t)}},name:"css"}),C.defineMIME("text/x-scss",{mediaTypes:i,mediaFeatures:o,mediaValueKeywords:l,propertyKeywords:u,nonStandardPropertyKeywords:m,colorKeywords:g,valueKeywords:_,fontProperties:p,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=v)(e,t):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),C.defineMIME("text/x-less",{mediaTypes:i,mediaFeatures:o,mediaValueKeywords:l,propertyKeywords:u,nonStandardPropertyKeywords:m,colorKeywords:g,valueKeywords:_,fontProperties:p,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=v)(e,t):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),C.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:i,mediaFeatures:o,propertyKeywords:u,nonStandardPropertyKeywords:m,fontProperties:p,counterDescriptors:f,colorKeywords:g,valueKeywords:_,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=v)(e,t)}},name:"css",helperType:"gss"})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../clike/clike")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../clike/clike"],e):e(CodeMirror)}(function(t){"use strict";var e="this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as".split(" "),r="try catch finally do else for if switch while".split(" "),n="true false null".split(" "),i="void bool num int double dynamic var String".split(" ");function a(e){for(var t={},r=0;r,;]/,c=["->",";",","],u=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],d=/[\+\-\*\/<>=\|:!]/,m=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],f=/[<\(\[\{]/,h=["<<","(","[","{"],g=/[>\)\]\}]/,b=["}","]",")",">>"],_=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],y=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],v=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,k=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function x(e,t,r){if(1==e.current().length&&t.test(e.current())){for(e.backUp(1);t.test(e.peek());)if(e.next(),S(e.current(),r))return 1;e.backUp(e.current().length-1)}}function w(e,t,r){if(1==e.current().length&&t.test(e.current())){for(;t.test(e.peek());)e.next();for(;0>":return C(e,{i:["<<"]});case"end":return C(e,{i:["begin","case","fun","if","receive","try"]});case",":return C(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return C(e,{r:["when"],m:["try","if","case","receive"]});case";":return C(e,{E:["case","fun","if","receive","try","when"]});case"catch":return C(e,{e:["try"]});case"of":return C(e,{e:["case"]});case"after":return C(e,{e:["receive","try"]});default:return e}}(n.tokenStack)),r){case"atom":return"atom";case"attribute":return"attribute";case"boolean":return"atom";case"builtin":return"builtin";case"close_paren":case"colon":return null;case"comment":return"comment";case"dot":return null;case"error":return"error";case"fun":return"meta";case"function":return"tag";case"guard":return"property";case"keyword":return"keyword";case"macro":return"variable-2";case"number":return"number";case"open_paren":return null;case"operator":return"operator";case"record":return"bracket";case"separator":return null;case"string":return"string";case"type":return"def";case"variable":return"variable";default:return null}}function T(e,t,r,n){return{token:e,column:t,indent:r,type:n}}function M(e,t){var r=e.tokenStack.length,n=t||1;return!(r>|\|+|\(/))&&0===n.index?n[0]:"",d=M(e,1),m=M(e,2);return e.in_string||e.in_atom?j.Pass:m?"when"==d.token?d.column+c:"when"===u&&"function"===m.type?m.indent+c:"("===u&&"fun"===d.token?d.column+3:"catch"===u&&(r=I(e,["try"]))?r.column:S(u,["end","after","of"])?(r=I(e,["begin","case","fun","if","receive","try"]))?r.column:j.Pass:S(u,b)?(r=I(e,h))?r.column:j.Pass:S(d.token,[",","|","||"])||S(u,[",","|","||"])?(s=e.tokenStack.slice(0,-1),l=A(s,"type",["open_paren"]),(r=!!$(s[l])&&s[l])?r.column+r.token.length:c):"->"==d.token?S(m.token,["receive","case","if","try"])?m.column+c+c:m.column+c:S(d.token,h)?d.column+d.token.length:(i=e.tokenStack,a=A(i,"type",["open_paren","separator","keyword"]),o=A(i,"type",["operator"]),r=$(a)&&$(o)&&a!|\/]/;function c(e,t){var a,r=e.next();if('"'==r||"'"==r||"`"==r)return t.tokenize=(a=r,function(e,t){for(var r,n=!1,i=!1;null!=(r=e.next());){if(r==a&&!n){i=!0;break}n=!n&&"`"!=a&&"\\"==r}return(i||!n&&"`"!=a)&&(t.tokenize=c),"string"}),t.tokenize(e,t);if(/[\d\.]/.test(r))return"."==r?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==r?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(r))return i=r,null;if("/"==r){if(e.eat("*"))return(t.tokenize=u)(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(l.test(r))return e.eatWhile(l),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var n=e.current();return o.propertyIsEnumerable(n)?("case"!=n&&"default"!=n||(i="case"),"keyword"):s.propertyIsEnumerable(n)?"atom":"variable"}function u(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=c;break}n="*"==r}return"comment"}function n(e,t,r,n,i){this.indented=e,this.column=t,this.type=r,this.align=n,this.prev=i}function d(e,t,r){return e.context=new n(e.indented,t,r,null,e.context)}function m(e){if(e.context.prev){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}}return{startState:function(e){return{tokenize:null,context:new n((e||0)-a,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"case"==r.type&&(r.type="}")),e.eatSpace())return null;i=null;var n=(t.tokenize||c)(e,t);return"comment"==n||(null==r.align&&(r.align=!0),"{"==i?d(t,e.column(),"}"):"["==i?d(t,e.column(),"]"):"("==i?d(t,e.column(),")"):"case"==i?r.type="case":"}"==i&&"}"==r.type?m(t):i==r.type&&m(t),t.startOfLine=!1),n},indent:function(e,t){if(e.tokenize!=c&&null!=e.tokenize)return p.Pass;var r=e.context,n=t&&t.charAt(0);if("case"==r.type&&/^(?:case|default)\b/.test(t))return e.context.type="}",r.indented;var i=n==r.type;return r.align?r.column+(i?0:1):r.indented+(i?0:a)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),p.defineMIME("text/x-go","go")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],e):e(CodeMirror)}(function(f){"use strict";var i={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};var a={};function h(e,t){var r,n=e.match(a[r=t]||(a[r]=new RegExp("\\s+"+r+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function g(e,t){return new RegExp((t?"^":"")+"","i")}function o(e,t){for(var r in e)for(var n=t[r]||(t[r]=[]),i=e[r],a=i.length-1;0<=a;a--)n.unshift(i[a])}f.defineMode("htmlmixed",function(u,e){var d=f.getMode(u,{name:"xml",htmlMode:!0,multilineTagIndentFactor:e.multilineTagIndentFactor,multilineTagIndentPastTag:e.multilineTagIndentPastTag}),m={},t=e&&e.tags,r=e&&e.scriptTypes;if(o(i,m),t&&o(t,m),r)for(var n=r.length-1;0<=n;n--)m.script.unshift(["type",r[n].matches,r[n].mode]);function p(e,t){var r,n=d.token(e,t.htmlState),i=/\btag\b/.test(n);if(i&&!/[<>\s\/]/.test(e.current())&&(r=t.htmlState.tagName&&t.htmlState.tagName.toLowerCase())&&m.hasOwnProperty(r))t.inTag=r+" ";else if(t.inTag&&i&&/>$/.test(e.current())){var a=/^([\S]+) (.*)/.exec(t.inTag);t.inTag=null;var o=">"==e.current()&&function(e,t){for(var r=0;r!?|~^@]/,y=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function v(e,t,r){return g=e,b=r,t}function k(e,t){var i,r=e.next();if('"'==r||"'"==r)return t.tokenize=(i=r,function(e,t){var r,n=!1;if(s&&"@"==e.peek()&&e.match(y))return t.tokenize=k,v("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=i||n);)n=!n&&"\\"==r;return n||(t.tokenize=k),v("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return v("number","number");if("."==r&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return v(r);if("="==r&&e.eat(">"))return v("=>","operator");if("0"==r&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return v("number","number");if(/\d/.test(r))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),v("number","number");if("/"==r)return e.eat("*")?(t.tokenize=x)(e,t):e.eat("/")?(e.skipToEnd(),v("comment","comment")):Je(e,t,1)?(function(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==r)return(t.tokenize=w)(e,t);if("#"==r)return e.skipToEnd(),v("error","error");if(_.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),v("operator","operator",e.current());if(u.test(r)){e.eatWhile(u);var n=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(n)){var a=f[n];return v(a.type,a.style,n)}if("async"==n&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",n)}return v("variable","variable",n)}}function x(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=k;break}n="*"==r}return v("comment","comment")}function w(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=k;break}n=!n&&"\\"==r}return v("quasi","string-2",e.current())}var z="([{}])";function q(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(c){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var i=0,a=!1,o=r-1;0<=o;--o){var s=e.string.charAt(o),l=z.indexOf(s);if(0<=l&&l<3){if(!i){++o;break}if(0==--i){"("==s&&(a=!0);break}}else if(3<=l&&l<6)++i;else if(u.test(s))a=!0;else{if(/["'\/]/.test(s))return;if(a&&!i){++o;break}}}a&&!i&&(t.fatArrowAt=o)}}var S={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function E(e,t,r,n,i,a){this.indented=e,this.column=t,this.type=r,this.prev=i,this.info=a,null!=n&&(this.align=n)}function T(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return 1;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return 1}var M={state:null,column:null,marked:null,cc:null};function C(){for(var e=arguments.length-1;0<=e;e--)M.cc.push(arguments[e])}function I(){return C.apply(null,arguments),!0}function A(e,t){for(var r=t;r;r=r.next)if(r.name==e)return 1}function $(e){var t=M.state;if(M.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=function e(t,r){{if(r){if(r.block){var n=e(t,r.prev);return n?n==r.prev?r:new O(n,r.vars,!0):null}return A(t,r.vars)?r:new O(r.prev,new N(t,r.vars),!1)}return null}}(e,t.context);if(null!=r)return void(t.context=r)}else if(!A(e,t.localVars))return void(t.localVars=new N(e,t.localVars));d.globalVars&&!A(e,t.globalVars)&&(t.globalVars=new N(e,t.globalVars))}function j(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function O(e,t,r){this.prev=e,this.vars=t,this.block=r}function N(e,t){this.name=e,this.next=t}var L=new N("this",new N("arguments",null));function P(){M.state.context=new O(M.state.context,M.state.localVars,!1),M.state.localVars=L}function R(){M.state.context=new O(M.state.context,M.state.localVars,!0),M.state.localVars=null}function F(){M.state.localVars=M.state.context.vars,M.state.context=M.state.context.prev}function D(n,i){function e(){var e=M.state,t=e.indented;if("stat"==e.lexical.type)t=e.lexical.indented;else for(var r=e.lexical;r&&")"==r.type&&r.align;r=r.prev)t=r.indented;e.lexical=new E(t,M.stream.column(),n,null,e.lexical,i)}return e.lex=!0,e}function U(){var e=M.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function W(r){return function e(t){return t==r?I():";"==r||"}"==t||")"==t||"]"==t?C():I(e)}}function B(e,t){return"var"==e?I(D("vardef",t),ze,W(";"),U):"keyword a"==e?I(D("form"),G,B,U):"keyword b"==e?I(D("form"),B,U):"keyword d"==e?M.stream.match(/^\s*$/,!1)?I():I(D("stat"),Q,W(";"),U):"debugger"==e?I(W(";")):"{"==e?I(D("}"),R,me,U,F):";"==e?I():"if"==e?("else"==M.state.lexical.info&&M.state.cc[M.state.cc.length-1]==U&&M.state.cc.pop()(),I(D("form"),G,B,U,Ce)):"function"==e?I(Ne):"for"==e?I(D("form"),Ie,B,U):"class"==e||c&&"interface"==t?(M.marked="keyword",I(D("form"),Re,U)):"variable"==e?c&&"declare"==t?(M.marked="keyword",I(B)):c&&("module"==t||"enum"==t||"type"==t)&&M.stream.match(/^\s*\w/,!1)?(M.marked="keyword","enum"==t?I(Xe):"type"==t?I(ge,W("operator"),ge,W(";")):I(D("form"),qe,W("{"),D("}"),me,U,U)):c&&"namespace"==t?(M.marked="keyword",I(D("form"),K,me,U)):c&&"abstract"==t?(M.marked="keyword",I(B)):I(D("stat"),ae):"switch"==e?I(D("form"),G,W("{"),D("}","switch"),R,me,U,U,F):"case"==e?I(K,W(":")):"default"==e?I(W(":")):"catch"==e?I(D("form"),P,V,B,U,F):"export"==e?I(D("stat"),We,U):"import"==e?I(D("stat"),Ve,U):"async"==e?I(B):"@"==t?I(K,B):C(D("stat"),K,W(";"),U)}function V(e){if("("==e)return I(Le,W(")"))}function K(e,t){return H(e,t,!1)}function Z(e,t){return H(e,t,!0)}function G(e){return"("!=e?C():I(D(")"),K,W(")"),U)}function H(e,t,r){if(M.state.fatArrowAt==M.stream.start){var n=r?re:te;if("("==e)return I(P,D(")"),ue(Le,")"),U,W("=>"),n,F);if("variable"==e)return C(P,qe,W("=>"),n,F)}var i,a=r?Y:X;return S.hasOwnProperty(e)?I(a):"function"==e?I(Ne,a):"class"==e||c&&"interface"==t?(M.marked="keyword",I(D("form"),Pe,U)):"keyword c"==e||"async"==e?I(r?Z:K):"("==e?I(D(")"),Q,W(")"),U,a):"operator"==e||"spread"==e?I(r?Z:K):"["==e?I(D("]"),Qe,U,a):"{"==e?de(se,"}",null,a):"quasi"==e?C(J,a):"new"==e?I((i=r,function(e){return"."==e?I(i?ie:ne):"variable"==e&&c?I(ke,i?Y:X):C(i?Z:K)})):"import"==e?I(K):I()}function Q(e){return e.match(/[;\}\)\],]/)?C():C(K)}function X(e,t){return","==e?I(K):Y(e,t,!1)}function Y(e,t,r){var n=0==r?X:Y,i=0==r?K:Z;return"=>"==e?I(P,r?re:te,F):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?I(n):c&&"<"==t&&M.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?I(D(">"),ue(ge,">"),U,n):"?"==t?I(K,W(":"),i):I(i):"quasi"==e?C(J,n):";"!=e?"("==e?de(Z,")","call",n):"."==e?I(oe,n):"["==e?I(D("]"),Q,W("]"),U,n):c&&"as"==t?(M.marked="keyword",I(ge,n)):"regexp"==e?(M.state.lastType=M.marked="operator",M.stream.backUp(M.stream.pos-M.stream.start-1),I(i)):void 0:void 0}function J(e,t){return"quasi"!=e?C():"${"!=t.slice(t.length-2)?I(J):I(K,ee)}function ee(e){if("}"==e)return M.marked="string-2",M.state.tokenize=w,I(J)}function te(e){return q(M.stream,M.state),C("{"==e?B:K)}function re(e){return q(M.stream,M.state),C("{"==e?B:Z)}function ne(e,t){if("target"==t)return M.marked="keyword",I(X)}function ie(e,t){if("target"==t)return M.marked="keyword",I(Y)}function ae(e){return":"==e?I(U,B):C(X,W(";"),U)}function oe(e){if("variable"==e)return M.marked="property",I()}function se(e,t){if("async"==e)return M.marked="property",I(se);if("variable"==e||"keyword"==M.style){return(M.marked="property","get"==t||"set"==t)?I(le):(c&&M.state.fatArrowAt==M.stream.start&&(r=M.stream.match(/^\s*:\s*/,!1))&&(M.state.fatArrowAt=M.stream.pos+r[0].length),I(ce));var r}else{if("number"==e||"string"==e)return M.marked=s?"property":M.style+" property",I(ce);if("jsonld-keyword"==e)return I(ce);if(c&&j(t))return M.marked="keyword",I(se);if("["==e)return I(K,pe,W("]"),ce);if("spread"==e)return I(Z,ce);if("*"==t)return M.marked="keyword",I(se);if(":"==e)return C(ce)}}function le(e){return"variable"!=e?C(ce):(M.marked="property",I(Ne))}function ce(e){return":"==e?I(Z):"("==e?C(Ne):void 0}function ue(n,i,a){function o(e,t){if(a?-1"),ge):void 0}function be(e){if("=>"==e)return I(ge)}function _e(e,t){return"variable"==e||"keyword"==M.style?(M.marked="property",I(_e)):"?"==t?I(_e):":"==e?I(ge):"["==e?I(K,pe,W("]"),_e):void 0}function ye(e,t){return"variable"==e&&M.stream.match(/^\s*[?:]/,!1)||"?"==t?I(ye):(":"==e?I:C)(ge)}function ve(e,t){return"<"==t?I(D(">"),ue(ge,">"),U,ve):"|"==t||"."==e||"&"==t?I(ge):"["==e?I(W("]"),ve):"extends"==t||"implements"==t?(M.marked="keyword",I(ge)):void 0}function ke(e,t){if("<"==t)return I(D(">"),ue(ge,">"),U,ve)}function xe(){return C(ge,we)}function we(e,t){if("="==t)return I(ge)}function ze(e,t){return"enum"==t?(M.marked="keyword",I(Xe)):C(qe,pe,Te,Me)}function qe(e,t){return c&&j(t)?(M.marked="keyword",I(qe)):"variable"==e?($(t),I()):"spread"==e?I(qe):"["==e?de(Ee,"]"):"{"==e?de(Se,"}"):void 0}function Se(e,t){return"variable"!=e||M.stream.match(/^\s*:/,!1)?("variable"==e&&(M.marked="property"),"spread"==e?I(qe):"}"==e?C():"["==e?I(K,W("]"),W(":"),Se):I(W(":"),qe,Te)):($(t),I(Te))}function Ee(){return C(qe,Te)}function Te(e,t){if("="==t)return I(Z)}function Me(e){if(","==e)return I(ze)}function Ce(e,t){if("keyword b"==e&&"else"==t)return I(D("form","else"),B,U)}function Ie(e,t){return"await"==t?I(Ie):"("==e?I(D(")"),Ae,W(")"),U):void 0}function Ae(e){return"var"==e?I(ze,W(";"),je):";"==e?I(je):"variable"==e?I($e):C(K,W(";"),je)}function $e(e,t){return"in"==t||"of"==t?(M.marked="keyword",I(K)):I(X,je)}function je(e,t){return";"==e?I(Oe):"in"==t||"of"==t?(M.marked="keyword",I(K)):C(K,W(";"),Oe)}function Oe(e){")"!=e&&I(K)}function Ne(e,t){return"*"==t?(M.marked="keyword",I(Ne)):"variable"==e?($(t),I(Ne)):"("==e?I(P,D(")"),ue(Le,")"),U,fe,B,F):c&&"<"==t?I(D(">"),ue(xe,">"),U,Ne):void 0}function Le(e,t){return"@"==t&&I(K,Le),"spread"==e?I(Le):c&&j(t)?(M.marked="keyword",I(Le)):C(qe,pe,Te)}function Pe(e,t){return("variable"==e?Re:Fe)(e,t)}function Re(e,t){if("variable"==e)return $(t),I(Fe)}function Fe(e,t){return"<"==t?I(D(">"),ue(xe,">"),U,Fe):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(M.marked="keyword"),I(c?ge:K,Fe)):"{"==e?I(D("}"),De,U):void 0}function De(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&j(t))&&M.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(M.marked="keyword",I(De)):"variable"==e||"keyword"==M.style?(M.marked="property",I(c?Ue:Ne,De)):"["==e?I(K,pe,W("]"),c?Ue:Ne,De):"*"==t?(M.marked="keyword",I(De)):";"==e?I(De):"}"==e?I():"@"==t?I(K,De):void 0}function Ue(e,t){return"?"==t?I(Ue):":"==e?I(ge,Te):"="==t?I(Z):C(Ne)}function We(e,t){return"*"==t?(M.marked="keyword",I(He,W(";"))):"default"==t?(M.marked="keyword",I(K,W(";"))):"{"==e?I(ue(Be,"}"),He,W(";")):C(B)}function Be(e,t){return"as"==t?(M.marked="keyword",I(W("variable"))):"variable"==e?C(Z,Be):void 0}function Ve(e){return"string"==e?I():"("==e?C(K):C(Ke,Ze,He)}function Ke(e,t){return"{"==e?de(Ke,"}"):("variable"==e&&$(t),"*"==t&&(M.marked="keyword"),I(Ge))}function Ze(e){if(","==e)return I(Ke,Ze)}function Ge(e,t){if("as"==t)return M.marked="keyword",I(Ke)}function He(e,t){if("from"==t)return M.marked="keyword",I(K)}function Qe(e){return"]"==e?I():C(ue(Z,"]"))}function Xe(){return C(D("form"),qe,W("{"),D("}"),ue(Ye,"}"),U,U)}function Ye(){return C(qe,Te)}function Je(e,t,r){return t.tokenize==k&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return U.lex=F.lex=!0,{startState:function(e){var t={tokenize:k,lastType:"sof",cc:[],lexical:new E((e||0)-m,0,"block",!1),localVars:d.localVars,context:d.localVars&&new O(null,null,!1),indented:e||0};return d.globalVars&&"object"==typeof d.globalVars&&(t.globalVars=d.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),q(e,t)),t.tokenize!=x&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==g?r:(t.lastType="operator"!=g||"++"!=b&&"--"!=b?g:"incdec",function(e,t,r,n,i){var a=e.cc;for(M.state=e,M.stream=i,M.marked=null,M.cc=a,M.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){if((a.length?a.pop():l?K:B)(r,n)){for(;a.length&&a[a.length-1].lex;)a.pop()();return M.marked?M.marked:"variable"==r&&T(e,n)?"variable-2":t}}}(t,r,g,b,e))},indent:function(e,t){if(e.tokenize==x)return et.Pass;if(e.tokenize!=k)return 0;var r,n=t&&t.charAt(0),i=e.lexical;if(!/^\s*else\b/.test(t))for(var a=e.cc.length-1;0<=a;--a){var o=e.cc[a];if(o==U)i=i.prev;else if(o!=Ce)break}for(;("stat"==i.type||"form"==i.type)&&("}"==n||(r=e.cc[e.cc.length-1])&&(r==X||r==Y)&&!/^[,\.=+\-*:?[\(]/.test(t));)i=i.prev;p&&")"==i.type&&"stat"==i.prev.type&&(i=i.prev);var s,l,c=i.type,u=n==c;return"vardef"==c?i.indented+("operator"==e.lastType||","==e.lastType?i.info.length+1:0):"form"==c&&"{"==n?i.indented:"form"==c?i.indented+m:"stat"==c?i.indented+(l=t,"operator"==(s=e).lastType||","==s.lastType||_.test(l.charAt(0))||/[,.]/.test(l.charAt(0))?p||m:0):"switch"!=i.info||u||0==d.doubleIndentSwitch?i.align?i.column+(u?0:1):i.indented+(u?0:m):i.indented+(/^(?:case|default)\b/.test(t)?m:2*m)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:Je,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=K&&t!=Z||e.cc.pop()}}}),et.registerHelper("wordChars","javascript",/[\w$]/),et.defineMIME("text/javascript","javascript"),et.defineMIME("text/ecmascript","javascript"),et.defineMIME("application/javascript","javascript"),et.defineMIME("application/x-javascript","javascript"),et.defineMIME("application/ecmascript","javascript"),et.defineMIME("application/json",{name:"javascript",json:!0}),et.defineMIME("application/x-json",{name:"javascript",json:!0}),et.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),et.defineMIME("text/typescript",{name:"javascript",typescript:!0}),et.defineMIME("application/typescript",{name:"javascript",typescript:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript"],e):e(CodeMirror)}(function(p){"use strict";function f(e,t,r,n){this.state=e,this.mode=t,this.depth=r,this.prev=n}p.defineMode("jsx",function(l,e){var c=p.getMode(l,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),u=p.getMode(l,e&&e.base||"javascript");function d(e){var t=e.tagName;e.tagName=null;var r=c.indent(e,"");return e.tagName=t,r}function m(e,t){return(t.context.mode==c?function(e,t,r){if(2==r.depth)return e.match(/^.*?\*\//)?r.depth=1:e.skipToEnd(),"comment";if("{"==e.peek()){c.skipAttribute(r.state);var n=d(r.state),i=r.state.context;if(i&&e.match(/^[^>]*>\s*$/,!1)){for(;i.prev&&!i.startOfLine;)i=i.prev;i.startOfLine?n-=l.indentUnit:r.prev.state.lexical&&(n=r.prev.state.lexical.indented)}else 1==r.depth&&(n+=l.indentUnit);return t.context=new f(p.startState(u,n),u,0,t.context),null}if(1==r.depth){if("<"==e.peek())return c.skipAttribute(r.state),t.context=new f(p.startState(c,d(r.state)),c,0,t.context),null;if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return r.depth=2,m(e,t)}var a,o=c.token(e,r.state),s=e.current();/\btag\b/.test(o)?/>$/.test(s)?r.state.context?r.depth=0:t.context=t.context.prev:/^]:","[<>=]=","<<=?",">>>?=?","=>","->","\\/\\/","[\\\\%*+\\-<>!=\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),c=e.delimiters||/^[;,()[\]{}]/,u=e.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,a=t(["\\\\[0-7]{1,3}","\\\\x[A-Fa-f0-9]{1,2}","\\\\[abefnrtv0%?'\"\\\\]","([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])"],"'"),r=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],i=["true","false","nothing","NaN","Inf"];o.registerHelper("hintWords","julia",r.concat(i));var d=t(["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"]),m=t(["end","else","elseif","catch","finally"]),p=t(r),f=t(i),h=/^@[_A-Za-z][\w]*/,g=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,b=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/;function _(e){return y(e,"[")}function y(e,t,r){void 0===t&&(t="("),void 0===r&&(r=0);var n=v(e,r);return!!(0==r&&"if"===n&&y(e,t,r+1)||"for"===n&&y(e,t,r+1)||n===t)}function v(e,t){return void 0===t&&(t=0),e.scopes.length<=t?null:e.scopes[e.scopes.length-(t+1)]}function k(e,t){if(e.match(/^#=/,!1))return t.tokenize=z,t.tokenize(e,t);var r=t.leavingExpr;if(e.sol()&&(r=!1),t.leavingExpr=!1,r&&e.match(/^'+/))return"operator";if(e.match(/\.{4,}/))return"error";if(e.match(/\.{1,3}/))return"operator";if(e.eatSpace())return null;var n,i=e.peek();if("#"===i)return e.skipToEnd(),"comment";if("["===i&&t.scopes.push("["),"("===i&&t.scopes.push("("),_(t)&&"]"===i){for("if"===v(t)&&t.scopes.pop();"for"===v(t);)t.scopes.pop();t.scopes.pop(),t.leavingExpr=!0}if(y(t)&&")"===i){for("if"===v(t)&&t.scopes.pop();"for"===v(t);)t.scopes.pop();t.scopes.pop(),t.leavingExpr=!0}if(_(t)){if("end"==t.lastToken&&e.match(/^:/))return"operator";if(e.match(/^end/))return"number"}if(n=e.match(d))return t.scopes.push(n[0]),"keyword";if(e.match(m))return t.scopes.pop(),"keyword";if(e.match(/^::(?![:\$])/))return t.tokenize=w,t.tokenize(e,t);if(!r&&e.match(g)||e.match(/:([<>]:|<<=?|>>>?=?|->|\/\/|\.{2,3}|[\.\\%*+\-<>!\/^|&]=?|[~\?\$])/))return"builtin";if(e.match(l))return"operator";if(e.match(/^\.?\d/,!1)){var a=RegExp(/^im\b/),o=!1;if(e.match(/^\d*\.(?!\.)\d*([Eef][\+\-]?\d+)?/i)&&(o=!0),e.match(/^\d+\.(?!\.)\d*/)&&(o=!0),e.match(/^\.\d+/)&&(o=!0),e.match(/^0x\.[0-9a-f]+p[\+\-]?\d+/i)&&(o=!0),e.match(/^0x[0-9a-f]+/i)&&(o=!0),e.match(/^0b[01]+/i)&&(o=!0),e.match(/^0o[0-7]+/i)&&(o=!0),e.match(/^[1-9]\d*(e[\+\-]?\d+)?/)&&(o=!0),e.match(/^0(?![\dx])/i)&&(o=!0),o)return e.match(a),t.leavingExpr=!0,"number"}if(e.match(/^'/))return t.tokenize=q,t.tokenize(e,t);if(e.match(b))return t.tokenize=function(r){'"""'===r.substr(-3)?r='"""':'"'===r.substr(-1)&&(r='"');return function(e,t){if(e.eat("\\"))e.next();else{if(e.match(r))return t.tokenize=k,t.leavingExpr=!0,"string";e.eat(/[`"]/)}return e.eatWhile(/[^\\`"]/),"string"}}(e.current()),t.tokenize(e,t);if(e.match(h))return"meta";if(e.match(c))return null;if(e.match(p))return"keyword";if(e.match(f))return"builtin";var s=t.isDefinition||"function"==t.lastToken||"macro"==t.lastToken||"type"==t.lastToken||"struct"==t.lastToken||"immutable"==t.lastToken;return e.match(u)?s?"."===e.peek()?(t.isDefinition=!0,"variable"):(t.isDefinition=!1,"def"):e.match(/^({[^}]*})*\(/,!1)?(t.tokenize=x,t.tokenize(e,t)):(t.leavingExpr=!0,"variable"):(e.next(),"error")}function x(e,t){var r=e.match(/^(\(\s*)/);if(r&&(t.firstParenPos<0&&(t.firstParenPos=t.scopes.length),t.scopes.push("("),t.charsAdvanced+=r[1].length),"("==v(t)&&e.match(/^\)/)&&(t.scopes.pop(),t.charsAdvanced+=1,t.scopes.length<=t.firstParenPos)){var n=e.match(/^(\s*where\s+[^\s=]+)*\s*?=(?!=)/,!1);return e.backUp(t.charsAdvanced),t.firstParenPos=-1,t.charsAdvanced=0,t.tokenize=k,n?"def":"builtin"}if(e.match(/^$/g,!1)){for(e.backUp(t.charsAdvanced);t.scopes.length>t.firstParenPos;)t.scopes.pop();return t.firstParenPos=-1,t.charsAdvanced=0,t.tokenize=k,"builtin"}return t.charsAdvanced+=e.match(/^([^()]*)/)[1].length,t.tokenize(e,t)}function w(e,t){return e.match(/.*?(?=,|;|{|}|\(|\)|=|$|\s)/),e.match(/^{/)?t.nestedLevels++:e.match(/^}/)&&t.nestedLevels--,0!@'\\\\]"),a=new RegExp("^[\\(\\[\\{\\},:=;]"),o=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),s=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),l=new RegExp("^((>>=)|(<<=))"),c=new RegExp("^[\\]\\)]"),u=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*"),d=n(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),m=n(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function p(e,t){return e.sol()||"'"!==e.peek()?(t.tokenize=h)(e,t):(e.next(),t.tokenize=h,"operator")}function f(e,t){return e.match(/^.*%}/)?t.tokenize=h:e.skipToEnd(),"comment"}function h(e,t){if(e.eatSpace())return null;if(e.match("%{"))return t.tokenize=f,e.skipToEnd(),"comment";if(e.match(/^[%#]/))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return e.tokenize=h,"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(e.match(n(["nan","NaN","inf","Inf"])))return"number";var r=e.match(/^"(?:[^"]|"")*("|$)/)||e.match(/^'(?:[^']|'')*('|$)/);return r?r[1]?"string":"string error":e.match(m)?"keyword":e.match(d)?"builtin":e.match(u)?"variable":e.match(i)||e.match(o)?"operator":e.match(a)||e.match(s)||e.match(l)?null:e.match(c)?(t.tokenize=p,null):(e.next(),"error")}return{startState:function(){return{tokenize:h}},token:function(e,t){var r=t.tokenize(e,t);return"number"!==r&&"variable"!==r||(t.tokenize=p),r},lineComment:"%",fold:"indent"}}),e.defineMIME("text/x-octave","octave")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("pascal",function(){var i=function(e){for(var t={},r=e.split(" "),n=0;n!?|\/]/;function n(e,t){var a,r=e.next();if("#"==r&&t.startOfLine)return e.skipToEnd(),"meta";if('"'==r||"'"==r)return t.tokenize=(a=r,function(e,t){for(var r,n=!1,i=!1;null!=(r=e.next());){if(r==a&&!n){i=!0;break}n=!n&&"\\"==r}return!i&&n||(t.tokenize=null),"string"}),t.tokenize(e,t);if("("==r&&e.eat("*"))return(t.tokenize=l)(e,t);if(/[\[\]{}\(\),;\:\.]/.test(r))return null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r&&e.eat("/"))return e.skipToEnd(),"comment";if(s.test(r))return e.eatWhile(s),"operator";e.eatWhile(/[\w\$_]/);var n=e.current();return i.propertyIsEnumerable(n)?"keyword":o.propertyIsEnumerable(n)?"atom":"variable"}function l(e,t){for(var r,n=!1;r=e.next();){if(")"==r&&n){t.tokenize=null;break}n="*"==r}return"comment"}return{startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var r=(t.tokenize||n)(e,t);return r},electricChars:"{}"}}),e.defineMIME("text/x-pascal","pascal")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function p(e,t){return e.string.charAt(e.pos+(t||0))}function f(e,t){if(t){var r=e.pos-t;return e.string.substr(0<=r?r:0,t)}return e.string.substr(0,e.pos-1)}function h(e,t){var r=e.string.length,n=r-e.pos+1;return e.string.substr(e.pos,t&&t=(r=e.string.length-1)?e.pos=r:e.pos=n}e.defineMode("perl",function(){var s={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},l="string-2",c=/[goseximacplud]/;function u(e,t,a,o,s){return t.chain=null,t.style=null,t.tail=null,t.tokenize=function(e,t){for(var r,n=!1,i=0;r=e.next();){if(r===a[i]&&!n)return void 0!==a[++i]?(t.chain=a[i],t.style=o,t.tail=s):s&&e.eatWhile(s),t.tokenize=m,o;n=!n&&"\\"==r}return o},t.tokenize(e,t)}function d(e,t,r){return t.tokenize=function(e,t){return e.string==r&&(t.tokenize=m),e.skipToEnd(),"string"},t.tokenize(e,t)}function m(e,t){if(e.eatSpace())return null;if(t.chain)return u(e,t,t.chain,t.style,t.tail);if(e.match(/^\-?[\d\.]/,!1)&&e.match(/^(\-?(\d*\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F]+|0b[01]+|\d+(e[+-]?\d+)?)/))return"number";if(e.match(/^<<(?=\w)/))return e.eatWhile(/\w/),d(e,t,e.current().substr(2));if(e.sol()&&e.match(/^\=item(?!\w)/))return d(e,t,"=cut");var r=e.next();if('"'==r||"'"==r){if(f(e,3)=="<<"+r){var n=e.pos;e.eatWhile(/\w/);var i=e.current().substr(1);if(i&&e.eat(r))return d(e,t,i);e.pos=n}return u(e,t,[r],"string")}if("q"==r&&(!(a=p(e,-2))||!/\w/.test(a)))if("x"==(a=p(e,0))){if("("==(a=p(e,1)))return g(e,2),u(e,t,[")"],l,c);if("["==a)return g(e,2),u(e,t,["]"],l,c);if("{"==a)return g(e,2),u(e,t,["}"],l,c);if("<"==a)return g(e,2),u(e,t,[">"],l,c);if(/[\^'"!~\/]/.test(a))return g(e,1),u(e,t,[e.eat(a)],l,c)}else if("q"==a){if("("==(a=p(e,1)))return g(e,2),u(e,t,[")"],"string");if("["==a)return g(e,2),u(e,t,["]"],"string");if("{"==a)return g(e,2),u(e,t,["}"],"string");if("<"==a)return g(e,2),u(e,t,[">"],"string");if(/[\^'"!~\/]/.test(a))return g(e,1),u(e,t,[e.eat(a)],"string")}else if("w"==a){if("("==(a=p(e,1)))return g(e,2),u(e,t,[")"],"bracket");if("["==a)return g(e,2),u(e,t,["]"],"bracket");if("{"==a)return g(e,2),u(e,t,["}"],"bracket");if("<"==a)return g(e,2),u(e,t,[">"],"bracket");if(/[\^'"!~\/]/.test(a))return g(e,1),u(e,t,[e.eat(a)],"bracket")}else if("r"==a){if("("==(a=p(e,1)))return g(e,2),u(e,t,[")"],l,c);if("["==a)return g(e,2),u(e,t,["]"],l,c);if("{"==a)return g(e,2),u(e,t,["}"],l,c);if("<"==a)return g(e,2),u(e,t,[">"],l,c);if(/[\^'"!~\/]/.test(a))return g(e,1),u(e,t,[e.eat(a)],l,c)}else if(/[\^'"!~\/(\[{<]/.test(a)){if("("==a)return g(e,1),u(e,t,[")"],"string");if("["==a)return g(e,1),u(e,t,["]"],"string");if("{"==a)return g(e,1),u(e,t,["}"],"string");if("<"==a)return g(e,1),u(e,t,[">"],"string");if(/[\^'"!~\/]/.test(a))return u(e,t,[e.eat(a)],"string")}if("m"==r&&((!(a=p(e,-2))||!/\w/.test(a))&&(a=e.eat(/[(\[{<\^'"!~\/]/)))){if(/[\^'"!~\/]/.test(a))return u(e,t,[a],l,c);if("("==a)return u(e,t,[")"],l,c);if("["==a)return u(e,t,["]"],l,c);if("{"==a)return u(e,t,["}"],l,c);if("<"==a)return u(e,t,[">"],l,c)}if("s"==r&&(!(a=/[\/>\]})\w]/.test(p(e,-2)))&&(a=e.eat(/[(\[{<\^'"!~\/]/))))return u(e,t,"["==a?["]","]"]:"{"==a?["}","}"]:"<"==a?[">",">"]:"("==a?[")",")"]:[a,a],l,c);if("y"==r&&(!(a=/[\/>\]})\w]/.test(p(e,-2)))&&(a=e.eat(/[(\[{<\^'"!~\/]/))))return u(e,t,"["==a?["]","]"]:"{"==a?["}","}"]:"<"==a?[">",">"]:"("==a?[")",")"]:[a,a],l,c);if("t"==r&&(!(a=/[\/>\]})\w]/.test(p(e,-2)))&&(a=(a=e.eat("r"))&&e.eat(/[(\[{<\^'"!~\/]/))))return u(e,t,"["==a?["]","]"]:"{"==a?["}","}"]:"<"==a?[">",">"]:"("==a?[")",")"]:[a,a],l,c);if("`"==r)return u(e,t,[r],"variable-2");if("/"==r)return/~\s*$/.test(f(e))?u(e,t,[r],l,c):"operator";if("$"==r){n=e.pos;if(e.eatWhile(/\d/)||e.eat("{")&&e.eatWhile(/\d/)&&e.eat("}"))return"variable-2";e.pos=n}if(/[$@%]/.test(r)){n=e.pos;if(e.eat("^")&&e.eat(/[A-Z]/)||!/[@$%&]/.test(p(e,-2))&&e.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var a=e.current();if(s[a])return"variable-2"}e.pos=n}if(/[$@%&]/.test(r)&&(e.eatWhile(/[\w$\[\]]/)||e.eat("{")&&e.eatWhile(/[\w$\[\]]/)&&e.eat("}"))){a=e.current();return s[a]?"variable-2":"variable"}if("#"==r&&"$"!=p(e,-2))return e.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(r)){n=e.pos;if(e.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),s[e.current()])return"operator";e.pos=n}if("_"==r&&1==e.pos){if("_END__"==h(e,6))return u(e,t,["\0"],"comment");if("_DATA__"==h(e,7))return u(e,t,["\0"],"variable-2");if("_C__"==h(e,7))return u(e,t,["\0"],"string")}if(/\w/.test(r)){n=e.pos;if("{"==p(e,-2)&&("}"==p(e,0)||e.eatWhile(/\w/)&&"}"==p(e,0)))return"string";e.pos=n}if(/[A-Z]/.test(r)){var o=p(e,-2);n=e.pos;if(e.eatWhile(/[A-Z_]/),!/[\da-z]/.test(p(e,0)))return(a=s[e.current()])?(a[1]&&(a=a[0]),":"!=o?1==a?"keyword":2==a?"def":3==a?"atom":4==a?"operator":5==a?"variable-2":"meta":"meta"):"meta";e.pos=n}if(/[a-zA-Z_]/.test(r)){o=p(e,-2);return e.eatWhile(/\w/),(a=s[e.current()])?(a[1]&&(a=a[0]),":"!=o?1==a?"keyword":2==a?"def":3==a?"atom":4==a?"operator":5==a?"variable-2":"meta":"meta"):"meta"}return null}return{startState:function(){return{tokenize:m,chain:null,style:null,tail:null}},token:function(e,t){return(t.tokenize||m)(e,t)},lineComment:"#"}}),e.registerHelper("wordChars","perl",/[\w$]/),e.defineMIME("text/x-perl","perl")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../clike/clike")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],e):e(CodeMirror)}(function(c){"use strict";function e(e){for(var t={},r=e.split(" "),n=0;n\w/,!1)&&(t.tokenize=s([[["->",null]],[[/[\w]+/,"variable"]]],r,n)),"variable-2";var i=!1;for(;!e.eol()&&(i||!1===n||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!i&&e.match(r)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}i="\\"==e.next()&&!i}return"string"}(e,t,r,n)}}var t="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",r="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",n="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";c.registerHelper("hintWords","php",[t,r,n].join(" ").split(" ")),c.registerHelper("wordChars","php",/[\w$]/);var i={name:"clike",helperType:"php",keywords:e(t),blockKeywords:e("catch do else elseif for foreach if switch try while finally"),defKeywords:e("class function interface namespace trait"),atoms:e(r),builtin:e(n),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){var r;if(r=e.match(/<<\s*/)){var n=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var i=e.current().slice(r[0].length+(n?2:1));if(n&&e.eat(n),i)return(t.tokStack||(t.tokStack=[])).push(i,0),t.tokenize=l(i,"'"!=n),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=l('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&0")?(t.curMode=s,t.curState=t.html,t.php.context.prev||(t.php=null),"meta"):l.token(e,t.curState);if(e.match(/^<\?\w*/))return t.curMode=l,t.php||(t.php=c.startState(l,s.indent(t.html,""))),t.curState=t.php,"meta";if('"'==t.pending||"'"==t.pending){for(;!e.eol()&&e.next()!=t.pending;);var n="string"}else if(t.pending&&e.pos/.test(a)?t.pending=i[0]:t.pending={end:e.pos,style:n},e.backUp(a.length-o)),n},indent:function(e,t){return e.curMode!=l&&/^\s*<\//.test(t)||e.curMode==l&&/^\?>/.test(t)?s.indent(e.html,t):e.curMode.indent(e.curState,t)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}},"htmlmixed","clike"),c.defineMIME("application/x-httpd-php","php"),c.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),c.defineMIME("text/x-php",i)}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(y){"use strict";function v(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var k=v(["and","or","not","is"]),x=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],w=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];function z(e){return e.scopes[e.scopes.length-1]}y.registerHelper("hintWords","python",x.concat(w)),y.defineMode("python",function(t,l){for(var c="error",o=l.delimiters||l.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,s=[l.singleOperators,l.doubleOperators,l.doubleDelimiters,l.tripleDelimiters,l.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@])/],e=0;er;){if("py"!=z(t).type)return 1;t.scopes.pop()}return z(t).offset!=r}function a(e,t){e.sol()&&(t.beginningOfLine=!0);var r,n,i,a,o=t.tokenize(e,t),s=e.current();if(t.beginningOfLine&&"@"==s)return e.match(m,!1)?"meta":d?"operator":c;if(/\S/.test(s)&&(t.beginningOfLine=!1),"variable"!=o&&"builtin"!=o||"meta"!=t.lastToken||(o="meta"),"pass"!=s&&"return"!=s||(t.dedent+=1),"lambda"==s&&(t.lambda=!0),":"!=s||t.lambda||"py"!=z(t).type||b(t),1==s.length&&!/string|comment/.test(o)){var l="[({".indexOf(s);if(-1!=l&&(r=e,n=t,i="])}".slice(l,l+1),a=r.match(/^([\s\[\{\(]|#.*)*$/,!1)?null:r.column()+1,n.scopes.push({offset:n.indent+u,type:i,align:a})),-1!=(l="])}".indexOf(s))){if(z(t).type!=s)return c;t.indent=t.scopes.pop().offset-u}}return 0]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if("@"==i&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if("$"==i)return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(i))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if("|"!=i||!t.varList&&"{"!=t.lastTok&&"do"!=t.lastTok){if(/[\(\)\[\]{}\\;]/.test(i))return c=i,null;if("-"==i&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(i)){var l=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."!=i||l||(c="."),"operator"}return null}return c="|",null}function p(r){return r=r||1,function(e,t){if("}"==e.peek()){if(1==r)return t.tokenize.pop(),t.tokenize[t.tokenize.length-1](e,t);t.tokenize[t.tokenize.length-1]=p(r-1)}else"{"==e.peek()&&(t.tokenize[t.tokenize.length-1]=p(r+1));return m(e,t)}}function f(){var r=!1;return function(e,t){return r?(t.tokenize.pop(),t.tokenize[t.tokenize.length-1](e,t)):(r=!0,m(e,t))}}function h(i,a,o,s){return function(e,t){var r,n=!1;for("read-quoted-paused"===t.context.type&&(t.context=t.context.prev,e.eat("}"));null!=(r=e.next());){if(r==i&&(s||!n)){t.tokenize.pop();break}if(o&&"#"==r&&!n){if(e.eat("{")){"}"==i&&(t.context={prev:t.context,type:"read-quoted-paused"}),t.tokenize.push(p());break}if(/[@\$]/.test(e.peek())){t.tokenize.push(f());break}}n=!n&&"\\"==r}return a}}function g(e,t){return e.sol()&&e.match("=end")&&e.eol()&&t.tokenize.pop(),e.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[m],indented:0,context:{type:"top",indented:-a.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,t){c=null,e.sol()&&(t.indented=e.indentation());var r,n=t.tokenize[t.tokenize.length-1](e,t),i=c;if("ident"==n){var a=e.current();"keyword"==(n="."==t.lastTok?"property":o.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(a)?"tag":"def"==t.lastTok||"class"==t.lastTok||t.varList?"def":"variable")&&(i=a,s.propertyIsEnumerable(a)?r="indent":l.propertyIsEnumerable(a)?r="dedent":"if"!=a&&"unless"!=a||e.column()!=e.indentation()?"do"==a&&t.context.indented!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"variable-3"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],electricInput:/^\s*\}$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),e.defineMIME("text/x-rustsrc","rust"),e.defineMIME("text/rust","rust")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(i){"use strict";i.defineMode("shell",function(){var a={};function e(e,t){for(var r=0;r!=&|~^\/]/,d=e.support||{},m=e.hooks||{},p=e.dateSQL||{date:!0,time:!0,timestamp:!0},f=!1!==e.backslashStringEscapes,h=e.brackets||/^[\{}\(\)\[\]]/,g=e.punctuation||/^[;.,:]/;function b(e,t){var i,r=e.next();if(m[r]){var n=m[r](e,t);if(!1!==n)return n}if(d.hexNumber&&("0"==r&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==r||"X"==r)&&e.match(/^'[0-9a-fA-F]+'/)))return"number";if(d.binaryNumber&&(("b"==r||"B"==r)&&e.match(/^'[01]+'/)||"0"==r&&e.match(/^b[01]+/)))return"number";if(47!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:n("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":t}}),_.defineMIME("text/x-mysql",{name:"sql",client:n("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:n(i+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:n("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:n("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:n("date time timestamp"),support:n("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":t,"`":e,"\\":r}}),_.defineMIME("text/x-mariadb",{name:"sql",client:n("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:n(i+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:n("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:n("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:n("date time timestamp"),support:n("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":t,"`":e,"\\":r}}),_.defineMIME("text/x-sqlite",{name:"sql",client:n("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:n(i+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:n("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:n("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:n("date time timestamp datetime"),support:n("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":t,":":t,"?":t,$:t,'"':function(e){for(var t;null!=(t=e.next());)if('"'==t&&!e.eat('"'))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null},"`":e}}),_.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:n("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:n("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:n("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:n("commentSlashSlash decimallessFloat"),hooks:{}}),_.defineMIME("text/x-plsql",{name:"sql",client:n("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:n("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:n("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:n("date time timestamp"),support:n("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),_.defineMIME("text/x-hive",{name:"sql",keywords:n("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:n("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:n("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:n("date timestamp"),support:n("ODBCdotTable doubleQuote binaryNumber hexNumber")}),_.defineMIME("text/x-pgsql",{name:"sql",client:n("source"),keywords:n(i+"a abort abs absent absolute access according action ada add admin after aggregate all allocate also always analyse analyze any are array array_agg array_max_cardinality asensitive assertion assignment asymmetric at atomic attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli binary bit_length blob blocked bom both breadth c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain characteristics characters character_length character_set_catalog character_set_name character_set_schema char_length check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column columns column_name command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constraint constraints constraint_catalog constraint_name constraint_schema constructor contains content continue control conversion convert copy corr corresponding cost covar_pop covar_samp cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datetime_interval_code datetime_interval_precision day db deallocate dec declare default defaults deferrable deferred defined definer degree delimiter delimiters dense_rank depth deref derived describe descriptor deterministic diagnostics dictionary disable discard disconnect dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain dynamic dynamic_function dynamic_function_code each element else empty enable encoding encrypted end end-exec end_frame end_partition enforced enum equals escape event every except exception exclude excluding exclusive exec execute exists exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreign fortran forward found frame_row free freeze fs full function functions fusion g general generated get gettoken global go goto grant granted greatest grouping groups handler header headline hex hierarchy hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import including increment indent index indexes indicator inherit inherits init initially inline inner inout input insensitive instance instantiable instead integrity intersect intersection invoker isnull isolation k key key_member key_type label lag language large last last_value lateral lc_collate lc_ctype lead leading leakproof least left length level lexize lextypes library like_regex link listen ln load local localtime localtimestamp location locator lock locked logged lower m map mapping match matched materialized max maxvalue max_cardinality member merge message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized nothing notify notnull nowait nth_value ntile null nullable nullif nulls number object occurrences_regex octets octet_length of off offset oids old only open operator option options ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password percent percentile_cont percentile_disc percent_rank period permission placing plans pli policy portion position position_regex power precedes preceding prepare prepared preserve primary prior privileges procedural procedure program public publication quote range rank read reads reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict restricted result return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns revoke right role rollback rollup routine routine_catalog routine_name routine_schema row rows row_count row_number rule savepoint scale schema schema_name scope scope_catalog scope_name scope_schema scroll search second section security selective self sensitive sequence sequences serializable server server_name session session_user setof sets share show similar simple size skip snapshot some source space specific specifictype specific_name sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t tables tablesample tablespace table_name temp template temporary then ties timezone_hour timezone_minute to token top_level_count trailing transaction transactions_committed transactions_rolled_back transaction_active transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted unique unknown unlink unlisten unlogged unnamed unnest until untyped upper uri usage user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of varbinary variadic var_pop var_samp verbose version versioning view views volatile when whenever whitespace width_bucket window within work wrapper write xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes loop repeat attach path depends detach zone"),builtin:n("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:n("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,dateSQL:n("date time timestamp"),support:n("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),_.defineMIME("text/x-gql",{name:"sql",keywords:n("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:n("false true"),builtin:n("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),_.defineMIME("text/x-gpsql",{name:"sql",client:n("source"),keywords:n("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:n("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:n("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:n("date time timestamp"),support:n("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),_.defineMIME("text/x-sparksql",{name:"sql",keywords:n("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases datata dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:n("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:n("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:n("date time timestamp"),support:n("ODBCdotTable doubleQuote zerolessFloat")}),_.defineMIME("text/x-esper",{name:"sql",client:n("source"),keywords:n("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:n("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:n("time"),support:n("decimallessFloat zerolessFloat binaryNumber hexNumber")})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},r=0;r~^?!",p=":;,.(){}[]",f=/^\-?0b[01][01_]*/,h=/^\-?0o[0-7][0-7_]*/,g=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,b=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,_=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,y=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,v=/^\#[A-Za-z]+/,k=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function a(e,t,r){if(e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;var i,a,n=e.peek();if("/"==n){if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.tokenize.push(w),w(e,t)}if(e.match(v))return"builtin";if(e.match(k))return"attribute";if(e.match(f))return"number";if(e.match(h))return"number";if(e.match(g))return"number";if(e.match(b))return"number";if(e.match(y))return"property";if(-1=]"),c=new RegExp("^((<>)|(<=)|(>=))"),u=new RegExp("^[\\.,]"),d=new RegExp("^[\\(\\)]"),m=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),p=e(["and","or","not","xor","is","mod","eqv","imp"]),t=["WScript","err","debug","RegExp"],f=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"].concat(["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"]);t=t.concat(["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"]),n.isASP&&(t=t.concat(["server","response","request","session","application"]),f=f.concat(["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"]));var h=e(["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"]),g=e(["true","false","nothing","empty","null"]),b=e(["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"]),_=e(t),y=e(f),v='"',k=e(["class","sub","select","while","if","function","property","with","for"]),x=e(["else","elseif","case"]),w=e(["next","loop","wend"]),z=e(["end"]),q=e(["do"]),S=e(["on error resume next","exit"]),E=e(["rem"]);function T(e,t){t.currentIndent++}function M(e,t){t.currentIndent--}function C(e,t){if(e.eatSpace())return"space";var r,n;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(E))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var i=!1;if(e.match(/^\d*\.\d+/i)||e.match(/^\d+\.\d*/)?i=!0:e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var a=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?a=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),a=!0):e.match(/^0(?![\dx])/i)&&(a=!0),a)return e.eat(/L/i),"number"}return e.match(v)?(t.tokenize=(r=e.current(),n=1==r.length,function(e,t){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(r))return t.tokenize=C,"string";e.eat(/['"]/)}if(n){if(o.singleLineStringErrors)return s;t.tokenize=C}return"string"}),t.tokenize(e,t)):e.match(c)||e.match(l)||e.match(p)?"operator":e.match(u)?null:e.match(d)?"bracket":e.match(S)?(t.doInCurrentLine=!0,"keyword"):e.match(q)?(T(0,t),t.doInCurrentLine=!0,"keyword"):e.match(k)?(t.doInCurrentLine?t.doInCurrentLine=!1:T(0,t),"keyword"):e.match(x)?"keyword":e.match(z)?(M(0,t),M(0,t),"keyword"):e.match(w)?(t.doInCurrentLine?t.doInCurrentLine=!1:M(0,t),"keyword"):e.match(h)?"keyword":e.match(g)?"atom":e.match(y)?"variable-2":e.match(b)?"builtin":e.match(_)?"variable-2":e.match(m)?"variable":(e.next(),s)}return{electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:C,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var r,n,i,a,o=(r=e,i=(n=t).tokenize(r,n),"."===(a=r.current())?(i=n.tokenize(r,n),a=r.current(),!i||"variable"!==i.substr(0,8)&&"builtin"!==i&&"keyword"!==i?s:("builtin"!==i&&"keyword"!==i||(i="variable"),-1":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"hr","/":"property","/-":"property","@":"variable-3","@-":"variable-3","@++":"variable-3","@+=":"variable-3","@+=-":"variable-3","@--":"variable-3","@-=":"variable-3","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable-2","**":"variable-2","\\":"keyword",'"':"comment"},h={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"},g=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,b=/^[! ] /,_=/^[! ] */,y=/^\/[\/\*]/;function v(e,t,r){var n=t/3;return"tlv-"+e.tlvIndentationStyle[n]+"-"+r}$.defineMIME("text/x-tlv",{name:"verilog",hooks:{electricInput:!1,token:function(e,t){var r,n=void 0;if(e.sol()&&!t.tlvInBlockComment){"\\"==e.peek()&&(n="def",e.skipToEnd(),e.string.match(/\\SV/)?t.tlvCodeActive=!1:e.string.match(/\\TLV/)&&(t.tlvCodeActive=!0)),t.tlvCodeActive&&0==e.pos&&0==t.indented&&(u=e.match(_,!1))&&(t.indented=u[0].length);var i=t.indented,a=i/3;if(a<=t.tlvIndentationStyle.length){var o=e.string.length==i,s=3*a;if(sa;)t.tlvIndentationStyle.pop()}t.tlvNextIndent=i}if(t.tlvCodeActive){var u,d=!1;if(0,void 0!==n)n+=" "+v(t,0,"scope-ident");else if(e.pos/3")):null:t.match("--")?e(i("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),e(function n(i){return function(e,t){for(var r;null!=(r=e.next());){if("<"==r)return t.tokenize=n(i+1),t.tokenize(e,t);if(">"==r){if(1!=i)return t.tokenize=n(i-1),t.tokenize(e,t);t.tokenize=c;break}}return"meta"}}(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),r.tokenize=i("meta","?>"),"meta"):(o=t.eat("/")?"closeTag":"openTag",r.tokenize=u,"tag bracket"):"&"!=n?(t.eatWhile(/[^&<]/),null):(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error"}function u(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=c,o=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return o="equals",null;if("<"!=r)return/[\'\"]/.test(r)?(t.tokenize=(n=r,a.isInAttribute=!0,a),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word");t.tokenize=c,t.state=f,t.tagName=t.tagStart=null;var n,i=t.tokenize(e,t);return i?i+" tag error":"tag error";function a(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=u;break}return"string"}}function i(r,n){return function(e,t){for(;!e.eol();){if(e.match(n)){t.tokenize=c;break}e.next()}return r}}function d(e,t,r){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=r,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function m(e){e.context&&(e.context=e.context.prev)}function p(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!l.contextGrabbers.hasOwnProperty(r)||!l.contextGrabbers[r].hasOwnProperty(t))return;m(e)}}function f(e,t,r){return"openTag"==e?(r.tagStart=t.column(),h):"closeTag"==e?g:f}function h(e,t,r){return"word"==e?(r.tagName=t.current(),a="tag",y):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",y(e,t,r)):(a="error",h)}function g(e,t,r){if("word"!=e)return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",b(e,t,r)):(a="error",_);var n=t.current();return r.context&&r.context.tagName!=n&&l.implicitlyClosed.hasOwnProperty(r.context.tagName)&&m(r),r.context&&r.context.tagName==n||!1===l.matchClosing?(a="tag",b):(a="tag error",_)}function b(e,t,r){return"endTag"!=e?(a="error",b):(m(r),f)}function _(e,t,r){return a="error",b(e,0,r)}function y(e,t,r){if("word"==e)return a="attribute",v;if("endTag"!=e&&"selfcloseTag"!=e)return a="error",y;var n=r.tagName,i=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(n)?p(r,n):(p(r,n),r.context=new d(r,n,i==r.indented)),f}function v(e,t,r){return"equals"==e?k:(l.allowMissing||(a="error"),y(e,0,r))}function k(e,t,r){return"string"==e?x:"word"==e&&l.allowUnquoted?(a="string",y):(a="error",y(e,0,r))}function x(e,t,r){return"string"==e?x:y(e,0,r)}return c.isInText=!0,{startState:function(e){var t={tokenize:c,state:f,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var r=t.tokenize(e,t);return(r||o)&&"comment"!=r&&(a=null,t.state=t.state(o||r,e,t),a&&(r="error"==a?r+" error":a)),r},indent:function(e,t,r){var n=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+s;if(n&&n.noIndent)return w.Pass;if(e.tokenize!=u&&e.tokenize!=c)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==k&&(e.state=y)}}}),w.defineMIME("text/xml","xml"),w.defineMIME("application/xml","xml"),w.mimeModes.hasOwnProperty("text/html")||w.defineMIME("text/html",{name:"xml",htmlMode:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("yaml",function(){var i=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");return{token:function(e,t){var r=e.peek(),n=t.escaped;if(t.escaped=!1,"#"==r&&(0==e.pos||/\s/.test(e.string.charAt(e.pos-1))))return e.skipToEnd(),"comment";if(e.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(t.literal&&e.indentation()>t.keyCol)return e.skipToEnd(),"string";if(t.literal&&(t.literal=!1),e.sol()){if(t.keyCol=0,t.pair=!1,t.pairStart=!1,e.match(/---/))return"def";if(e.match(/\.\.\./))return"def";if(e.match(/\s*-\s+/))return"meta"}if(e.match(/^(\{|\}|\[|\])/))return"{"==r?t.inlinePairs++:"}"==r?t.inlinePairs--:"["==r?t.inlineList++:t.inlineList--,"meta";if(0)\s*/))return t.literal=!0,"meta";if(e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==t.inlinePairs&&e.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(0'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(t.pair=!0,t.keyCol=e.indentation(),"atom"):t.pair&&e.match(/^:\s*/)?(t.pairStart=!0,"meta"):(t.pairStart=!1,t.escaped="\\"==r,e.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),e.defineMIME("text/x-yaml","yaml"),e.defineMIME("text/yaml","yaml")}); \ No newline at end of file +!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("apl",function(){var o={".":"innerProduct","\\":"scan","/":"reduce","⌿":"reduce1Axis","⍀":"scan1Axis","¨":"each","⍣":"power"},s={"+":["conjugate","add"],"−":["negate","subtract"],"×":["signOf","multiply"],"÷":["reciprocal","divide"],"⌈":["ceiling","greaterOf"],"⌊":["floor","lesserOf"],"∣":["absolute","residue"],"⍳":["indexGenerate","indexOf"],"?":["roll","deal"],"⋆":["exponentiate","toThePowerOf"],"⍟":["naturalLog","logToTheBase"],"○":["piTimes","circularFuncs"],"!":["factorial","binomial"],"⌹":["matrixInverse","matrixDivide"],"<":[null,"lessThan"],"≤":[null,"lessThanOrEqual"],"=":[null,"equals"],">":[null,"greaterThan"],"≥":[null,"greaterThanOrEqual"],"≠":[null,"notEqual"],"≡":["depth","match"],"≢":[null,"notMatch"],"∈":["enlist","membership"],"⍷":[null,"find"],"∪":["unique","union"],"∩":[null,"intersection"],"∼":["not","without"],"∨":[null,"or"],"∧":[null,"and"],"⍱":[null,"nor"],"⍲":[null,"nand"],"⍴":["shapeOf","reshape"],",":["ravel","catenate"],"⍪":[null,"firstAxisCatenate"],"⌽":["reverse","rotate"],"⊖":["axis1Reverse","axis1Rotate"],"⍉":["transpose",null],"↑":["first","take"],"↓":[null,"drop"],"⊂":["enclose","partitionWithAxis"],"⊃":["diclose","pick"],"⌷":[null,"index"],"⍋":["gradeUp",null],"⍒":["gradeDown",null],"⊤":["encode",null],"⊥":["decode",null],"⍕":["format","formatByExample"],"⍎":["execute",null],"⊣":["stop","left"],"⊢":["pass","right"]},l=/[\.\/⌿⍀¨⍣]/,c=/⍬/,u=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,d=/←/,m=/[⍝#].*$/;return{startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(e,t){var r,n,i,a;return e.eatSpace()?null:'"'===(r=e.next())||"'"===r?(e.eatWhile((i=r,a=!1,function(e){return(a=e)!==i||"\\"===a})),e.next(),t.prev=!0,"string"):/[\[{\(]/.test(r)?(t.prev=!1,null):/[\]}\)]/.test(r)?(t.prev=!0,null):c.test(r)?(t.prev=!1,"niladic"):/[¯\d]/.test(r)?(t.func?(t.func=!1,t.prev=!1):t.prev=!0,e.eatWhile(/[\w\.]/),"number"):l.test(r)?"operator apl-"+o[r]:d.test(r)?"apl-arrow":u.test(r)?(n="apl-",null!=s[r]&&(t.prev?n+=s[r][1]:n+=s[r][0]),t.func=!0,t.prev=!1,"function "+n):m.test(r)?(e.skipToEnd(),"comment"):"∘"===r&&"."===e.peek()?(e.next(),"function jot-dot"):(e.eatWhile(/[\w\$_]/),t.prev=!0,"keyword")}}}),e.defineMIME("text/apl","apl")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(C){"use strict";function I(e,t,r,n,i,a){this.indented=e,this.column=t,this.type=r,this.info=n,this.align=i,this.prev=a}function A(e,t,r,n){var i=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=r&&(i=e.context.indented),e.context=new I(i,t,r,n,null,e.context)}function $(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function j(e,t,r){return"variable"==t.prevToken||"type"==t.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,r))||(!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0))}function O(e){for(;;){if(!e||"top"==e.type)return 1;if("}"==e.type&&"namespace"!=e.prev.info)return;e=e.prev}}function e(e){for(var t={},r=e.split(" "),n=0;n!?|\/]/,q=s.isIdentifierChar||/[\w\$_\xa1-\uffff]/,S=s.isReservedIdentifier||!1;function E(e,t){var a,r=e.next();if(_[r]){var n=_[r](e,t);if(!1!==n)return n}if('"'==r||"'"==r)return t.tokenize=(a=r,function(e,t){for(var r,n=!1,i=!1;null!=(r=e.next());){if(r==a&&!n){i=!0;break}n=!n&&"\\"==r}return!i&&(n||y)||(t.tokenize=null),"string"}),t.tokenize(e,t);if(k.test(r))return o=r,null;if(x.test(r)){if(e.backUp(1),e.match(w))return"number";e.next()}if("/"==r){if(e.eat("*"))return(t.tokenize=T)(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(z.test(r)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(z););return"operator"}if(e.eatWhile(q),v)for(;e.match(v);)e.eatWhile(q);var i=e.current();return N(m,i)?(N(g,i)&&(o="newstatement"),N(h,i)&&(l=!0),"keyword"):N(p,i)?"type":N(f,i)||S&&S(i)?(N(g,i)&&(o="newstatement"),"builtin"):N(b,i)?"atom":"variable"}function T(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=null;break}n="*"==r}return"comment"}function M(e,t){s.typeFirstDefinitions&&e.eol()&&O(t.context)&&(t.typeAtEndOfLine=j(e,t,e.pos))}return{startState:function(e){return{tokenize:null,context:new I((e||0)-c,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return M(e,t),null;o=l=null;var n=(t.tokenize||E)(e,t);if("comment"==n||"meta"==n)return n;if(null==r.align&&(r.align=!0),";"==o||":"==o||","==o&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)$(t);else if("{"==o)A(t,e.column(),"}");else if("["==o)A(t,e.column(),"]");else if("("==o)A(t,e.column(),")");else if("}"==o){for(;"statement"==r.type;)r=$(t);for("}"==r.type&&(r=$(t));"statement"==r.type;)r=$(t)}else o==r.type?$(t):a&&(("}"==r.type||"top"==r.type)&&";"!=o||"statement"==r.type&&"newstatement"==o)&&A(t,e.column(),"statement",e.current());if("variable"==n&&("def"==t.prevToken||s.typeFirstDefinitions&&j(e,t,e.start)&&O(t.context)&&e.match(/^\s*\(/,!1))&&(n="def"),_.token){var i=_.token(e,t,n);void 0!==i&&(n=i)}return"def"==n&&!1===s.styleDefs&&(n="variable"),t.startOfLine=!1,t.prevToken=l?"def":n||o,M(e,t),n},indent:function(e,t){if(e.tokenize!=E&&null!=e.tokenize||e.typeAtEndOfLine)return C.Pass;var r=e.context,n=t&&t.charAt(0),i=n==r.type;if("statement"==r.type&&"}"==n&&(r=r.prev),s.dontIndentStatements)for(;"statement"==r.type&&s.dontIndentStatements.test(r.info);)r=r.prev;if(_.indent){var a=_.indent(e,r,t,c);if("number"==typeof a)return a}var o=r.prev&&"switch"==r.prev.info;if(s.allmanIndentation&&/[{(]/.test(n)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==n?0:u):!r.align||d&&")"==r.type?")"!=r.type||i?r.indented+(i?0:c)+(i||!o||/^(?:case|default)\b/.test(t)?0:c):r.indented+u:r.column+(i?0:1)},electricInput:t?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});var t="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",r="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",n="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",i="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",a=e("int long char short double float unsigned signed void bool"),o=e("SEL instancetype id Class Protocol BOOL");function s(e){return N(a,e)||/.+_t$/.test(e)}function l(e){return s(e)||N(o,e)}var c="case do else for if switch while struct enum union",u="struct enum union";function d(e,t){if(!t.startOfLine)return!1;for(var r,n=null;r=e.peek();){if("\\"==r&&e.match(/^.$/)){n=d;break}if("/"==r&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=n,"meta"}function m(e,t){return"type"==t.prevToken&&"type"}function p(e){return!(!e||e.length<2)&&("_"==e[0]&&("_"==e[1]||e[1]!==e[1].toLowerCase()))}function f(e){return e.eatWhile(/[\w\.']/),"number"}function g(e,t){if(e.backUp(1),e.match(/(R|u8R|uR|UR|LR)/)){var r=e.match(/"([^\s\\()]{0,16})\(/);return r?(t.cpp11RawStringDelim=r[1],(t.tokenize=_)(e,t)):!1}return e.match(/(u8|u|U|L)/)?!!e.match(/["']/,!1)&&"string":(e.next(),!1)}function h(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function b(e,t){for(var r;null!=(r=e.next());)if('"'==r&&!e.eat('"')){t.tokenize=null;break}return"string"}function _(e,t){var r=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+r+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function y(e,t){"string"==typeof e&&(e=[e]);var r=[];function n(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}n(t.keywords),n(t.types),n(t.builtin),n(t.atoms),r.length&&(t.helperType=e[0],C.registerHelper("hintWords",e[0],r));for(var i=0;i!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=v,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,t){var r=t.context;return!("}"!=r.type||!r.align||!e.eat(">"))&&(t.context=new I(r.indented,r.column,r.type,r.info,null,r.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=k(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),y("text/x-kotlin",{name:"clike",keywords:e("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:e("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:e("catch class do else finally for if where try while enum"),defKeywords:e("class val var object interface fun"),atoms:e("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){var a;return t.tokenize=(a=e.match('""'),function(e,t){for(var r,n=!1,i=!1;!e.eol();){if(!a&&!n&&e.match('"')){i=!0;break}if(a&&e.match('"""')){i=!0;break}r=e.next(),!n&&"$"==r&&e.match("{")&&e.skipTo("}"),n=!n&&"\\"==r&&!a}return!i&&a||(t.tokenize=null),"string"}),t.tokenize(e,t)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=k(1),t.tokenize(e,t))},indent:function(e,t,r,n){var i=r&&r.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=r?"operator"==e.prevToken&&"}"!=r&&"}"!=e.context.type||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*n+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(r||"").charAt(0)?0:n):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),y(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:e("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:e("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:e("for while do if else struct"),builtin:e("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:e("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":d},modeProps:{fold:["brace","include"]}}),y("text/x-nesc",{name:"clike",keywords:e(t+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:s,blockKeywords:e(c),atoms:e("null true false"),hooks:{"#":d},modeProps:{fold:["brace","include"]}}),y("text/x-objectivec",{name:"clike",keywords:e(t+" "+n),types:l,builtin:e(i),blockKeywords:e(c+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:e(u+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:e("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:p,hooks:{"#":d,"*":m},modeProps:{fold:["brace","include"]}}),y("text/x-objectivec++",{name:"clike",keywords:e(t+" "+n+" "+r),types:l,builtin:e(i),blockKeywords:e(c+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:e(u+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:e("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:p,hooks:{"#":d,"*":m,u:g,U:g,L:g,R:g,0:f,1:f,2:f,3:f,4:f,5:f,6:f,7:f,8:f,9:f,token:function(e,t,r){if("variable"==r&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&h(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),y("text/x-squirrel",{name:"clike",keywords:e("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:s,blockKeywords:e("case catch class else for foreach if switch try while"),defKeywords:e("function local class"),typeFirstDefinitions:!0,atoms:e("true false null"),hooks:{"#":d},modeProps:{fold:["brace","include"]}});var x=null;y("text/x-ceylon",{name:"clike",keywords:e("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:e("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:e("class dynamic function interface module object package value"),builtin:e("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:e("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=function a(o){return function(e,t){for(var r,n=!1,i=!1;!e.eol();){if(!n&&e.match('"')&&("single"==o||e.match('""'))){i=!0;break}if(!n&&e.match("``")){x=a(o),i=!0;break}r=e.next(),n="single"==o&&!n&&"\\"==r}return i&&(t.tokenize=null),"string"}}(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!x||!e.match("`"))&&(t.tokenize=x,x=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,r){if(("variable"==r||"type"==r)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("commonlisp",function(n){var i,a=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,o=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,s=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,r=/[^\s'`,@()\[\]";]/;function l(e){for(var t;t=e.next();)if("\\"==t)e.next();else if(!r.test(t)){e.backUp(1);break}return e.current()}function c(e,t){if(e.eatSpace())return i="ws",null;if(e.match(s))return"number";var r;if("\\"==(r=e.next())&&(r=e.next()),'"'==r)return(t.tokenize=u)(e,t);if("("==r)return i="open","bracket";if(")"==r||"]"==r)return i="close","bracket";if(";"==r)return e.skipToEnd(),i="ws","comment";if(/['`,@]/.test(r))return null;if("|"==r)return e.skipTo("|")?(e.next(),"symbol"):(e.skipToEnd(),"error");if("#"==r)return"("==(r=e.next())?(i="open","bracket"):/[+\-=\.']/.test(r)||/\d/.test(r)&&e.match(/^\d*#/)?null:"|"==r?(t.tokenize=d)(e,t):":"==r?(l(e),"meta"):"\\"==r?(e.next(),l(e),"string-2"):"error";var n=l(e);return"."==n?null:(i="symbol","nil"==n||"t"==n||":"==n.charAt(0)?"atom":"open"==t.lastType&&(a.test(n)||o.test(n))?"keyword":"&"==n.charAt(0)?"variable-2":"variable")}function u(e,t){for(var r,n=!1;r=e.next();){if('"'==r&&!n){t.tokenize=c;break}n=!n&&"\\"==r}return"string"}function d(e,t){for(var r,n;r=e.next();){if("#"==r&&"|"==n){t.tokenize=c;break}n=r}return i="ws","comment"}return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:c}},token:function(e,t){e.sol()&&"number"!=typeof t.ctx.indentTo&&(t.ctx.indentTo=t.ctx.start+1),i=null;var r=t.tokenize(e,t);return"ws"!=i&&(null==t.ctx.indentTo?"symbol"==i&&o.test(e.current())?t.ctx.indentTo=t.ctx.start+n.indentUnit:t.ctx.indentTo="next":"next"==t.ctx.indentTo&&(t.ctx.indentTo=e.column()),t.lastType=i),"open"==i?t.ctx={prev:t.ctx,start:e.column(),indentTo:null}:"close"==i&&(t.ctx=t.ctx.prev||t.ctx),r},indent:function(e,t){var r=e.ctx.indentTo;return"number"==typeof r?r:e.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:";;",blockCommentStart:"#|",blockCommentEnd:"|#"}}),e.defineMIME("text/x-common-lisp","commonlisp")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(C){"use strict";function e(e){for(var t={},r=0;r*\/]/.test(r)?v(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?v("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?v(null,r):e.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(e.current().toLowerCase())&&(t.tokenize=x),v("variable callee","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),v("property","word")):v(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),v("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?v("variable-2","variable-definition"):v("variable-2","variable")):e.match(/^\w+-/)?v("meta","meta"):void 0})(e,t);return r&&"object"==typeof r&&(n=r[1],r=r[0]),i=r,"comment"!=n&&(t.state=M[t.state](n,e,t)),i},indent:function(e,t){var r=e.context,n=t&&t.charAt(0),i=r.indent;return"prop"!=r.type||"}"!=n&&")"!=n||(r=r.prev),r.prev&&("}"!=n||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=n||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=n||"at"!=r.type&&"atBlock"!=r.type)||(i=Math.max(0,r.indent-a)):i=(r=r.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:_,fold:"brace"}});var t=["domain","regexp","url","url-prefix"],r=e(t),n=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=e(n),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],o=e(a),s=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],l=e(s),c=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],u=e(c),d=["border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],m=e(d),p=e(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),f=e(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),g=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],h=e(g),b=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],_=e(b),y=t.concat(n).concat(a).concat(s).concat(c).concat(d).concat(g).concat(b);function v(e,t){for(var r,n=!1;null!=(r=e.next());){if(n&&"/"==r){t.tokenize=null;break}n="*"==r}return["comment","comment"]}C.registerHelper("hintWords","css",y),C.defineMIME("text/css",{documentTypes:r,mediaTypes:i,mediaFeatures:o,mediaValueKeywords:l,propertyKeywords:u,nonStandardPropertyKeywords:m,fontProperties:p,counterDescriptors:f,colorKeywords:h,valueKeywords:_,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=v)(e,t)}},name:"css"}),C.defineMIME("text/x-scss",{mediaTypes:i,mediaFeatures:o,mediaValueKeywords:l,propertyKeywords:u,nonStandardPropertyKeywords:m,colorKeywords:h,valueKeywords:_,fontProperties:p,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=v)(e,t):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),C.defineMIME("text/x-less",{mediaTypes:i,mediaFeatures:o,mediaValueKeywords:l,propertyKeywords:u,nonStandardPropertyKeywords:m,colorKeywords:h,valueKeywords:_,fontProperties:p,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=v)(e,t):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),C.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:i,mediaFeatures:o,propertyKeywords:u,nonStandardPropertyKeywords:m,fontProperties:p,counterDescriptors:f,colorKeywords:h,valueKeywords:_,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=v)(e,t)}},name:"css",helperType:"gss"})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../clike/clike")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../clike/clike"],e):e(CodeMirror)}(function(t){"use strict";var e="this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield".split(" "),r="try catch finally do else for if switch while".split(" "),n="true false null".split(" "),i="void bool num int double dynamic var String".split(" ");function a(e){for(var t={},r=0;r,;]/,c=["->",";",","],u=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],d=/[\+\-\*\/<>=\|:!]/,m=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],f=/[<\(\[\{]/,g=["<<","(","[","{"],h=/[>\)\]\}]/,b=["}","]",")",">>"],_=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],y=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],v=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,k=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function x(e,t,r){if(1==e.current().length&&t.test(e.current())){for(e.backUp(1);t.test(e.peek());)if(e.next(),S(e.current(),r))return 1;e.backUp(e.current().length-1)}}function w(e,t,r){if(1==e.current().length&&t.test(e.current())){for(;t.test(e.peek());)e.next();for(;0>":return C(e,{i:["<<"]});case"end":return C(e,{i:["begin","case","fun","if","receive","try"]});case",":return C(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return C(e,{r:["when"],m:["try","if","case","receive"]});case";":return C(e,{E:["case","fun","if","receive","try","when"]});case"catch":return C(e,{e:["try"]});case"of":return C(e,{e:["case"]});case"after":return C(e,{e:["receive","try"]});default:return e}}(n.tokenStack)),r){case"atom":return"atom";case"attribute":return"attribute";case"boolean":return"atom";case"builtin":return"builtin";case"close_paren":case"colon":return null;case"comment":return"comment";case"dot":return null;case"error":return"error";case"fun":return"meta";case"function":return"tag";case"guard":return"property";case"keyword":return"keyword";case"macro":return"variable-2";case"number":return"number";case"open_paren":return null;case"operator":return"operator";case"record":return"bracket";case"separator":return null;case"string":return"string";case"type":return"def";case"variable":return"variable";default:return null}}function T(e,t,r,n){return{token:e,column:t,indent:r,type:n}}function M(e,t){var r=e.tokenStack.length,n=t||1;return!(r>|\|+|\(/))&&0===n.index?n[0]:"",d=M(e,1),m=M(e,2);return e.in_string||e.in_atom?j.Pass:m?"when"==d.token?d.column+c:"when"===u&&"function"===m.type?m.indent+c:"("===u&&"fun"===d.token?d.column+3:"catch"===u&&(r=I(e,["try"]))?r.column:S(u,["end","after","of"])?(r=I(e,["begin","case","fun","if","receive","try"]))?r.column:j.Pass:S(u,b)?(r=I(e,g))?r.column:j.Pass:S(d.token,[",","|","||"])||S(u,[",","|","||"])?(s=e.tokenStack.slice(0,-1),l=A(s,"type",["open_paren"]),(r=!!$(s[l])&&s[l])?r.column+r.token.length:c):"->"==d.token?S(m.token,["receive","case","if","try"])?m.column+c+c:m.column+c:S(d.token,g)?d.column+d.token.length:(i=e.tokenStack,a=A(i,"type",["open_paren","separator","keyword"]),o=A(i,"type",["operator"]),r=$(a)&&$(o)&&a\/\:]/,c=new RegExp("(.and.|.or.|.eq.|.lt.|.le.|.gt.|.ge.|.ne.|.not.|.eqv.|.neqv.)","i");function n(e,t){if(e.match(c))return"operator";var a,r=e.next();if("!"==r)return e.skipToEnd(),"comment";if('"'==r||"'"==r)return t.tokenize=(a=r,function(e,t){for(var r,n=!1,i=!1;null!=(r=e.next());){if(r==a&&!n){i=!0;break}n=!n&&"\\"==r}return!i&&n||(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]\(\),]/.test(r))return null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if(l.test(r))return e.eatWhile(l),"operator";e.eatWhile(/[\w\$_]/);var n=e.current().toLowerCase();return i.hasOwnProperty(n)?"keyword":o.hasOwnProperty(n)||s.hasOwnProperty(n)?"builtin":"variable"}return{startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var r=(t.tokenize||n)(e,t);return r}}}),e.defineMIME("text/x-fortran","fortran")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(p){"use strict";p.defineMode("go",function(e){var i,a=e.indentUnit,o={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0},s={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},l=/[+\-*&^%:=<>!|\/]/;function c(e,t){var a,r=e.next();if('"'==r||"'"==r||"`"==r)return t.tokenize=(a=r,function(e,t){for(var r,n=!1,i=!1;null!=(r=e.next());){if(r==a&&!n){i=!0;break}n=!n&&"`"!=a&&"\\"==r}return(i||!n&&"`"!=a)&&(t.tokenize=c),"string"}),t.tokenize(e,t);if(/[\d\.]/.test(r))return"."==r?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==r?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(r))return i=r,null;if("/"==r){if(e.eat("*"))return(t.tokenize=u)(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(l.test(r))return e.eatWhile(l),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var n=e.current();return o.propertyIsEnumerable(n)?("case"!=n&&"default"!=n||(i="case"),"keyword"):s.propertyIsEnumerable(n)?"atom":"variable"}function u(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=c;break}n="*"==r}return"comment"}function n(e,t,r,n,i){this.indented=e,this.column=t,this.type=r,this.align=n,this.prev=i}function d(e,t,r){return e.context=new n(e.indented,t,r,null,e.context)}function m(e){if(e.context.prev){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}}return{startState:function(e){return{tokenize:null,context:new n((e||0)-a,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"case"==r.type&&(r.type="}")),e.eatSpace())return null;i=null;var n=(t.tokenize||c)(e,t);return"comment"==n||(null==r.align&&(r.align=!0),"{"==i?d(t,e.column(),"}"):"["==i?d(t,e.column(),"]"):"("==i?d(t,e.column(),")"):"case"==i?r.type="case":"}"==i&&"}"==r.type?m(t):i==r.type&&m(t),t.startOfLine=!1),n},indent:function(e,t){if(e.tokenize!=c&&null!=e.tokenize)return p.Pass;var r=e.context,n=t&&t.charAt(0);if("case"==r.type&&/^(?:case|default)\b/.test(t))return e.context.type="}",r.indented;var i=n==r.type;return r.align?r.column+(i?0:1):r.indented+(i?0:a)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),p.defineMIME("text/x-go","go")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],e):e(CodeMirror)}(function(f){"use strict";var i={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};var a={};function g(e,t){var r,n=e.match(a[r=t]||(a[r]=new RegExp("\\s+"+r+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function h(e,t){return new RegExp((t?"^":"")+"","i")}function o(e,t){for(var r in e)for(var n=t[r]||(t[r]=[]),i=e[r],a=i.length-1;0<=a;a--)n.unshift(i[a])}f.defineMode("htmlmixed",function(u,e){var d=f.getMode(u,{name:"xml",htmlMode:!0,multilineTagIndentFactor:e.multilineTagIndentFactor,multilineTagIndentPastTag:e.multilineTagIndentPastTag}),m={},t=e&&e.tags,r=e&&e.scriptTypes;if(o(i,m),t&&o(t,m),r)for(var n=r.length-1;0<=n;n--)m.script.unshift(["type",r[n].matches,r[n].mode]);function p(e,t){var r,n=d.token(e,t.htmlState),i=/\btag\b/.test(n);if(i&&!/[<>\s\/]/.test(e.current())&&(r=t.htmlState.tagName&&t.htmlState.tagName.toLowerCase())&&m.hasOwnProperty(r))t.inTag=r+" ";else if(t.inTag&&i&&/>$/.test(e.current())){var a=/^([\S]+) (.*)/.exec(t.inTag);t.inTag=null;var o=">"==e.current()&&function(e,t){for(var r=0;r!?|~^@]/,y=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function v(e,t,r){return h=e,b=r,t}function k(e,t){var i,r=e.next();if('"'==r||"'"==r)return t.tokenize=(i=r,function(e,t){var r,n=!1;if(s&&"@"==e.peek()&&e.match(y))return t.tokenize=k,v("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=i||n);)n=!n&&"\\"==r;return n||(t.tokenize=k),v("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return v("number","number");if("."==r&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return v(r);if("="==r&&e.eat(">"))return v("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return v("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),v("number","number");if("/"==r)return e.eat("*")?(t.tokenize=x)(e,t):e.eat("/")?(e.skipToEnd(),v("comment","comment")):et(e,t,1)?(function(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==r)return(t.tokenize=w)(e,t);if("#"==r)return e.skipToEnd(),v("error","error");if("<"==r&&e.match("!--")||"-"==r&&e.match("->"))return e.skipToEnd(),v("comment","comment");if(_.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),v("operator","operator",e.current());if(u.test(r)){e.eatWhile(u);var n=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(n)){var a=f[n];return v(a.type,a.style,n)}if("async"==n&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",n)}return v("variable","variable",n)}}function x(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=k;break}n="*"==r}return v("comment","comment")}function w(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=k;break}n=!n&&"\\"==r}return v("quasi","string-2",e.current())}var z="([{}])";function q(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(c){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var i=0,a=!1,o=r-1;0<=o;--o){var s=e.string.charAt(o),l=z.indexOf(s);if(0<=l&&l<3){if(!i){++o;break}if(0==--i){"("==s&&(a=!0);break}}else if(3<=l&&l<6)++i;else if(u.test(s))a=!0;else if(/["'\/`]/.test(s))for(;;--o){if(0==o)return;if(e.string.charAt(o-1)==s&&"\\"!=e.string.charAt(o-2)){o--;break}}else if(a&&!i){++o;break}}a&&!i&&(t.fatArrowAt=o)}}var S={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function E(e,t,r,n,i,a){this.indented=e,this.column=t,this.type=r,this.prev=i,this.info=a,null!=n&&(this.align=n)}function T(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return 1;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return 1}var M={state:null,column:null,marked:null,cc:null};function C(){for(var e=arguments.length-1;0<=e;e--)M.cc.push(arguments[e])}function I(){return C.apply(null,arguments),!0}function A(e,t){for(var r=t;r;r=r.next)if(r.name==e)return 1}function $(e){var t=M.state;if(M.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=function e(t,r){{if(r){if(r.block){var n=e(t,r.prev);return n?n==r.prev?r:new O(n,r.vars,!0):null}return A(t,r.vars)?r:new O(r.prev,new N(t,r.vars),!1)}return null}}(e,t.context);if(null!=r)return void(t.context=r)}else if(!A(e,t.localVars))return void(t.localVars=new N(e,t.localVars));d.globalVars&&!A(e,t.globalVars)&&(t.globalVars=new N(e,t.globalVars))}function j(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function O(e,t,r){this.prev=e,this.vars=t,this.block=r}function N(e,t){this.name=e,this.next=t}var P=new N("this",new N("arguments",null));function L(){M.state.context=new O(M.state.context,M.state.localVars,!1),M.state.localVars=P}function R(){M.state.context=new O(M.state.context,M.state.localVars,!0),M.state.localVars=null}function F(){M.state.localVars=M.state.context.vars,M.state.context=M.state.context.prev}function D(n,i){function e(){var e=M.state,t=e.indented;if("stat"==e.lexical.type)t=e.lexical.indented;else for(var r=e.lexical;r&&")"==r.type&&r.align;r=r.prev)t=r.indented;e.lexical=new E(t,M.stream.column(),n,null,e.lexical,i)}return e.lex=!0,e}function U(){var e=M.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function W(r){return function e(t){return t==r?I():";"==r||"}"==t||")"==t||"]"==t?C():I(e)}}function B(e,t){return"var"==e?I(D("vardef",t),qe,W(";"),U):"keyword a"==e?I(D("form"),G,B,U):"keyword b"==e?I(D("form"),B,U):"keyword d"==e?M.stream.match(/^\s*$/,!1)?I():I(D("stat"),Q,W(";"),U):"debugger"==e?I(W(";")):"{"==e?I(D("}"),R,me,U,F):";"==e?I():"if"==e?("else"==M.state.lexical.info&&M.state.cc[M.state.cc.length-1]==U&&M.state.cc.pop()(),I(D("form"),G,B,U,Ie)):"function"==e?I(Oe):"for"==e?I(D("form"),Ae,B,U):"class"==e||c&&"interface"==t?(M.marked="keyword",I(D("form","class"==e?e:t),Fe,U)):"variable"==e?c&&"declare"==t?(M.marked="keyword",I(B)):c&&("module"==t||"enum"==t||"type"==t)&&M.stream.match(/^\s*\w/,!1)?(M.marked="keyword","enum"==t?I(Ye):"type"==t?I(Pe,W("operator"),be,W(";")):I(D("form"),Se,W("{"),D("}"),me,U,U)):c&&"namespace"==t?(M.marked="keyword",I(D("form"),K,B,U)):c&&"abstract"==t?(M.marked="keyword",I(B)):I(D("stat"),ae):"switch"==e?I(D("form"),G,W("{"),D("}","switch"),R,me,U,U,F):"case"==e?I(K,W(":")):"default"==e?I(W(":")):"catch"==e?I(D("form"),L,V,B,U,F):"export"==e?I(D("stat"),Be,U):"import"==e?I(D("stat"),Ke,U):"async"==e?I(B):"@"==t?I(K,B):C(D("stat"),K,W(";"),U)}function V(e){if("("==e)return I(Le,W(")"))}function K(e,t){return H(e,t,!1)}function Z(e,t){return H(e,t,!0)}function G(e){return"("!=e?C():I(D(")"),Q,W(")"),U)}function H(e,t,r){if(M.state.fatArrowAt==M.stream.start){var n=r?re:te;if("("==e)return I(L,D(")"),ue(Le,")"),U,W("=>"),n,F);if("variable"==e)return C(L,Se,W("=>"),n,F)}var i,a=r?Y:X;return S.hasOwnProperty(e)?I(a):"function"==e?I(Oe,a):"class"==e||c&&"interface"==t?(M.marked="keyword",I(D("form"),Re,U)):"keyword c"==e||"async"==e?I(r?Z:K):"("==e?I(D(")"),Q,W(")"),U,a):"operator"==e||"spread"==e?I(r?Z:K):"["==e?I(D("]"),Xe,U,a):"{"==e?de(se,"}",null,a):"quasi"==e?C(J,a):"new"==e?I((i=r,function(e){return"."==e?I(i?ie:ne):"variable"==e&&c?I(xe,i?Y:X):C(i?Z:K)})):"import"==e?I(K):I()}function Q(e){return e.match(/[;\}\)\],]/)?C():C(K)}function X(e,t){return","==e?I(Q):Y(e,t,!1)}function Y(e,t,r){var n=0==r?X:Y,i=0==r?K:Z;return"=>"==e?I(L,r?re:te,F):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?I(n):c&&"<"==t&&M.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?I(D(">"),ue(be,">"),U,n):"?"==t?I(K,W(":"),i):I(i):"quasi"==e?C(J,n):";"!=e?"("==e?de(Z,")","call",n):"."==e?I(oe,n):"["==e?I(D("]"),Q,W("]"),U,n):c&&"as"==t?(M.marked="keyword",I(be,n)):"regexp"==e?(M.state.lastType=M.marked="operator",M.stream.backUp(M.stream.pos-M.stream.start-1),I(i)):void 0:void 0}function J(e,t){return"quasi"!=e?C():"${"!=t.slice(t.length-2)?I(J):I(K,ee)}function ee(e){if("}"==e)return M.marked="string-2",M.state.tokenize=w,I(J)}function te(e){return q(M.stream,M.state),C("{"==e?B:K)}function re(e){return q(M.stream,M.state),C("{"==e?B:Z)}function ne(e,t){if("target"==t)return M.marked="keyword",I(X)}function ie(e,t){if("target"==t)return M.marked="keyword",I(Y)}function ae(e){return":"==e?I(U,B):C(X,W(";"),U)}function oe(e){if("variable"==e)return M.marked="property",I()}function se(e,t){if("async"==e)return M.marked="property",I(se);if("variable"==e||"keyword"==M.style){return(M.marked="property","get"==t||"set"==t)?I(le):(c&&M.state.fatArrowAt==M.stream.start&&(r=M.stream.match(/^\s*:\s*/,!1))&&(M.state.fatArrowAt=M.stream.pos+r[0].length),I(ce));var r}else{if("number"==e||"string"==e)return M.marked=s?"property":M.style+" property",I(ce);if("jsonld-keyword"==e)return I(ce);if(c&&j(t))return M.marked="keyword",I(se);if("["==e)return I(K,pe,W("]"),ce);if("spread"==e)return I(Z,ce);if("*"==t)return M.marked="keyword",I(se);if(":"==e)return C(ce)}}function le(e){return"variable"!=e?C(ce):(M.marked="property",I(Oe))}function ce(e){return":"==e?I(Z):"("==e?C(Oe):void 0}function ue(n,i,a){function o(e,t){if(a?-1"),be):void 0}function _e(e){if("=>"==e)return I(be)}function ye(e,t){return"variable"==e||"keyword"==M.style?(M.marked="property",I(ye)):"?"==t||"number"==e||"string"==e?I(ye):":"==e?I(be):"["==e?I(W("variable"),fe,W("]"),ye):"("==e?C(Ne,ye):void 0}function ve(e,t){return"variable"==e&&M.stream.match(/^\s*[?:]/,!1)||"?"==t?I(ve):":"==e?I(be):"spread"==e?I(ve):C(be)}function ke(e,t){return"<"==t?I(D(">"),ue(be,">"),U,ke):"|"==t||"."==e||"&"==t?I(be):"["==e?I(be,W("]"),ke):"extends"==t||"implements"==t?(M.marked="keyword",I(be)):"?"==t?I(be,W(":"),be):void 0}function xe(e,t){if("<"==t)return I(D(">"),ue(be,">"),U,ke)}function we(){return C(be,ze)}function ze(e,t){if("="==t)return I(be)}function qe(e,t){return"enum"==t?(M.marked="keyword",I(Ye)):C(Se,pe,Me,Ce)}function Se(e,t){return c&&j(t)?(M.marked="keyword",I(Se)):"variable"==e?($(t),I()):"spread"==e?I(Se):"["==e?de(Te,"]"):"{"==e?de(Ee,"}"):void 0}function Ee(e,t){return"variable"!=e||M.stream.match(/^\s*:/,!1)?("variable"==e&&(M.marked="property"),"spread"==e?I(Se):"}"==e?C():"["==e?I(K,W("]"),W(":"),Ee):I(W(":"),Se,Me)):($(t),I(Me))}function Te(){return C(Se,Me)}function Me(e,t){if("="==t)return I(Z)}function Ce(e){if(","==e)return I(qe)}function Ie(e,t){if("keyword b"==e&&"else"==t)return I(D("form","else"),B,U)}function Ae(e,t){return"await"==t?I(Ae):"("==e?I(D(")"),$e,U):void 0}function $e(e){return"var"==e?I(qe,je):("variable"==e?I:C)(je)}function je(e,t){return")"==e?I():";"==e?I(je):"in"==t||"of"==t?(M.marked="keyword",I(K,je)):C(K,je)}function Oe(e,t){return"*"==t?(M.marked="keyword",I(Oe)):"variable"==e?($(t),I(Oe)):"("==e?I(L,D(")"),ue(Le,")"),U,ge,B,F):c&&"<"==t?I(D(">"),ue(we,">"),U,Oe):void 0}function Ne(e,t){return"*"==t?(M.marked="keyword",I(Ne)):"variable"==e?($(t),I(Ne)):"("==e?I(L,D(")"),ue(Le,")"),U,ge,F):c&&"<"==t?I(D(">"),ue(we,">"),U,Ne):void 0}function Pe(e,t){return"keyword"==e||"variable"==e?(M.marked="type",I(Pe)):"<"==t?I(D(">"),ue(we,">"),U):void 0}function Le(e,t){return"@"==t&&I(K,Le),"spread"==e?I(Le):c&&j(t)?(M.marked="keyword",I(Le)):c&&"this"==e?I(pe,Me):C(Se,pe,Me)}function Re(e,t){return("variable"==e?Fe:De)(e,t)}function Fe(e,t){if("variable"==e)return $(t),I(De)}function De(e,t){return"<"==t?I(D(">"),ue(we,">"),U,De):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(M.marked="keyword"),I(c?be:K,De)):"{"==e?I(D("}"),Ue,U):void 0}function Ue(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&j(t))&&M.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(M.marked="keyword",I(Ue)):"variable"==e||"keyword"==M.style?(M.marked="property",I(c?We:Oe,Ue)):"number"==e||"string"==e?I(c?We:Oe,Ue):"["==e?I(K,pe,W("]"),c?We:Oe,Ue):"*"==t?(M.marked="keyword",I(Ue)):c&&"("==e?C(Ne,Ue):";"==e||","==e?I(Ue):"}"==e?I():"@"==t?I(K,Ue):void 0}function We(e,t){if("?"==t)return I(We);if(":"==e)return I(be,Me);if("="==t)return I(Z);var r=M.state.lexical.prev;return C(r&&"interface"==r.info?Ne:Oe)}function Be(e,t){return"*"==t?(M.marked="keyword",I(Qe,W(";"))):"default"==t?(M.marked="keyword",I(K,W(";"))):"{"==e?I(ue(Ve,"}"),Qe,W(";")):C(B)}function Ve(e,t){return"as"==t?(M.marked="keyword",I(W("variable"))):"variable"==e?C(Z,Ve):void 0}function Ke(e){return"string"==e?I():"("==e?C(K):C(Ze,Ge,Qe)}function Ze(e,t){return"{"==e?de(Ze,"}"):("variable"==e&&$(t),"*"==t&&(M.marked="keyword"),I(He))}function Ge(e){if(","==e)return I(Ze,Ge)}function He(e,t){if("as"==t)return M.marked="keyword",I(Ze)}function Qe(e,t){if("from"==t)return M.marked="keyword",I(K)}function Xe(e){return"]"==e?I():C(ue(Z,"]"))}function Ye(){return C(D("form"),Se,W("{"),D("}"),ue(Je,"}"),U,U)}function Je(){return C(Se,Me)}function et(e,t,r){return t.tokenize==k&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return U.lex=F.lex=!0,{startState:function(e){var t={tokenize:k,lastType:"sof",cc:[],lexical:new E((e||0)-m,0,"block",!1),localVars:d.localVars,context:d.localVars&&new O(null,null,!1),indented:e||0};return d.globalVars&&"object"==typeof d.globalVars&&(t.globalVars=d.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),q(e,t)),t.tokenize!=x&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==h?r:(t.lastType="operator"!=h||"++"!=b&&"--"!=b?h:"incdec",function(e,t,r,n,i){var a=e.cc;for(M.state=e,M.stream=i,M.marked=null,M.cc=a,M.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){if((a.length?a.pop():l?K:B)(r,n)){for(;a.length&&a[a.length-1].lex;)a.pop()();return M.marked?M.marked:"variable"==r&&T(e,n)?"variable-2":t}}}(t,r,h,b,e))},indent:function(e,t){if(e.tokenize==x)return tt.Pass;if(e.tokenize!=k)return 0;var r,n=t&&t.charAt(0),i=e.lexical;if(!/^\s*else\b/.test(t))for(var a=e.cc.length-1;0<=a;--a){var o=e.cc[a];if(o==U)i=i.prev;else if(o!=Ie)break}for(;("stat"==i.type||"form"==i.type)&&("}"==n||(r=e.cc[e.cc.length-1])&&(r==X||r==Y)&&!/^[,\.=+\-*:?[\(]/.test(t));)i=i.prev;p&&")"==i.type&&"stat"==i.prev.type&&(i=i.prev);var s,l,c=i.type,u=n==c;return"vardef"==c?i.indented+("operator"==e.lastType||","==e.lastType?i.info.length+1:0):"form"==c&&"{"==n?i.indented:"form"==c?i.indented+m:"stat"==c?i.indented+(l=t,"operator"==(s=e).lastType||","==s.lastType||_.test(l.charAt(0))||/[,.]/.test(l.charAt(0))?p||m:0):"switch"!=i.info||u||0==d.doubleIndentSwitch?i.align?i.column+(u?0:1):i.indented+(u?0:m):i.indented+(/^(?:case|default)\b/.test(t)?m:2*m)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:et,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=K&&t!=Z||e.cc.pop()}}}),tt.registerHelper("wordChars","javascript",/[\w$]/),tt.defineMIME("text/javascript","javascript"),tt.defineMIME("text/ecmascript","javascript"),tt.defineMIME("application/javascript","javascript"),tt.defineMIME("application/x-javascript","javascript"),tt.defineMIME("application/ecmascript","javascript"),tt.defineMIME("application/json",{name:"javascript",json:!0}),tt.defineMIME("application/x-json",{name:"javascript",json:!0}),tt.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),tt.defineMIME("text/typescript",{name:"javascript",typescript:!0}),tt.defineMIME("application/typescript",{name:"javascript",typescript:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript"],e):e(CodeMirror)}(function(p){"use strict";function f(e,t,r,n){this.state=e,this.mode=t,this.depth=r,this.prev=n}p.defineMode("jsx",function(l,e){var c=p.getMode(l,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),u=p.getMode(l,e&&e.base||"javascript");function d(e){var t=e.tagName;e.tagName=null;var r=c.indent(e,"","");return e.tagName=t,r}function m(e,t){return(t.context.mode==c?function(e,t,r){if(2==r.depth)return e.match(/^.*?\*\//)?r.depth=1:e.skipToEnd(),"comment";if("{"==e.peek()){c.skipAttribute(r.state);var n=d(r.state),i=r.state.context;if(i&&e.match(/^[^>]*>\s*$/,!1)){for(;i.prev&&!i.startOfLine;)i=i.prev;i.startOfLine?n-=l.indentUnit:r.prev.state.lexical&&(n=r.prev.state.lexical.indented)}else 1==r.depth&&(n+=l.indentUnit);return t.context=new f(p.startState(u,n),u,0,t.context),null}if(1==r.depth){if("<"==e.peek())return c.skipAttribute(r.state),t.context=new f(p.startState(c,d(r.state)),c,0,t.context),null;if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return r.depth=2,m(e,t)}var a,o=c.token(e,r.state),s=e.current();/\btag\b/.test(o)?/>$/.test(s)?r.state.context?r.depth=0:t.context=t.context.prev:/^]:","[<>=]=","<<=?",">>>?=?","=>","->","\\/\\/","[\\\\%*+\\-<>!=\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),c=e.delimiters||/^[;,()[\]{}]/,u=e.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,a=t(["\\\\[0-7]{1,3}","\\\\x[A-Fa-f0-9]{1,2}","\\\\[abefnrtv0%?'\"\\\\]","([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])"],"'"),r=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],i=["true","false","nothing","NaN","Inf"];o.registerHelper("hintWords","julia",r.concat(i));var d=t(["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"]),m=t(["end","else","elseif","catch","finally"]),p=t(r),f=t(i),g=/^@[_A-Za-z][\w]*/,h=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,b=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/;function _(e){return 0]:|<<=?|>>>?=?|->|\/\/|\.{2,3}|[\.\\%*+\-<>!\/^|&]=?|[~\?\$])/))return"builtin";if(e.match(l))return"operator";if(e.match(/^\.?\d/,!1)){var a=RegExp(/^im\b/),o=!1;if(e.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(o=!0),e.match(/^0x[0-9a-f_]+/i)&&(o=!0),e.match(/^0b[01_]+/i)&&(o=!0),e.match(/^0o[0-7_]+/i)&&(o=!0),e.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(o=!0),e.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(o=!0),o)return e.match(a),t.leavingExpr=!0,"number"}if(e.match(/^'/))return t.tokenize=z,t.tokenize(e,t);if(e.match(b))return t.tokenize=function(r){'"""'===r.substr(-3)?r='"""':'"'===r.substr(-1)&&(r='"');return function(e,t){if(e.eat("\\"))e.next();else{if(e.match(r))return t.tokenize=v,t.leavingExpr=!0,"string";e.eat(/[`"]/)}return e.eatWhile(/[^\\`"]/),"string"}}(e.current()),t.tokenize(e,t);if(e.match(g))return"meta";if(e.match(c))return null;if(e.match(p))return"keyword";if(e.match(f))return"builtin";var s=t.isDefinition||"function"==t.lastToken||"macro"==t.lastToken||"type"==t.lastToken||"struct"==t.lastToken||"immutable"==t.lastToken;return e.match(u)?s?"."===e.peek()?(t.isDefinition=!0,"variable"):(t.isDefinition=!1,"def"):e.match(/^({[^}]*})*\(/,!1)?(t.tokenize=k,t.tokenize(e,t)):(t.leavingExpr=!0,"variable"):(e.next(),"error")}function k(e,t){var r=e.match(/^(\(\s*)/);if(r&&(t.firstParenPos<0&&(t.firstParenPos=t.scopes.length),t.scopes.push("("),t.charsAdvanced+=r[1].length),"("==y(t)&&e.match(/^\)/)&&(t.scopes.pop(),t.charsAdvanced+=1,t.scopes.length<=t.firstParenPos)){var n=e.match(/^(\s*where\s+[^\s=]+)*\s*?=(?!=)/,!1);return e.backUp(t.charsAdvanced),t.firstParenPos=-1,t.charsAdvanced=0,t.tokenize=v,n?"def":"builtin"}if(e.match(/^$/g,!1)){for(e.backUp(t.charsAdvanced);t.scopes.length>t.firstParenPos;)t.scopes.pop();return t.firstParenPos=-1,t.charsAdvanced=0,t.tokenize=v,"builtin"}return t.charsAdvanced+=e.match(/^([^()]*)/)[1].length,t.tokenize(e,t)}function x(e,t){return e.match(/.*?(?=,|;|{|}|\(|\)|=|$|\s)/),e.match(/^{/)?t.nestedParameters++:e.match(/^}/)&&0!@'\\\\]"),a=new RegExp("^[\\(\\[\\{\\},:=;\\.]"),o=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),s=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),l=new RegExp("^((>>=)|(<<=))"),c=new RegExp("^[\\]\\)]"),u=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*"),d=n(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),m=n(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function p(e,t){return e.sol()||"'"!==e.peek()?(t.tokenize=g)(e,t):(e.next(),t.tokenize=g,"operator")}function f(e,t){return e.match(/^.*%}/)?t.tokenize=g:e.skipToEnd(),"comment"}function g(e,t){if(e.eatSpace())return null;if(e.match("%{"))return t.tokenize=f,e.skipToEnd(),"comment";if(e.match(/^[%#]/))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return e.tokenize=g,"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(e.match(n(["nan","NaN","inf","Inf"])))return"number";var r=e.match(/^"(?:[^"]|"")*("|$)/)||e.match(/^'(?:[^']|'')*('|$)/);return r?r[1]?"string":"string error":e.match(m)?"keyword":e.match(d)?"builtin":e.match(u)?"variable":e.match(i)||e.match(o)?"operator":e.match(a)||e.match(s)||e.match(l)?null:e.match(c)?(t.tokenize=p,null):(e.next(),"error")}return{startState:function(){return{tokenize:g}},token:function(e,t){var r=t.tokenize(e,t);return"number"!==r&&"variable"!==r||(t.tokenize=p),r},lineComment:"%",fold:"indent"}}),e.defineMIME("text/x-octave","octave")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("pascal",function(){var i=function(e){for(var t={},r=e.split(" "),n=0;n!?|\/]/;function n(e,t){var a,r=e.next();if("#"==r&&t.startOfLine)return e.skipToEnd(),"meta";if('"'==r||"'"==r)return t.tokenize=(a=r,function(e,t){for(var r,n=!1,i=!1;null!=(r=e.next());){if(r==a&&!n){i=!0;break}n=!n&&"\\"==r}return!i&&n||(t.tokenize=null),"string"}),t.tokenize(e,t);if("("==r&&e.eat("*"))return(t.tokenize=l)(e,t);if(/[\[\]{}\(\),;\:\.]/.test(r))return null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r&&e.eat("/"))return e.skipToEnd(),"comment";if(s.test(r))return e.eatWhile(s),"operator";e.eatWhile(/[\w\$_]/);var n=e.current();return i.propertyIsEnumerable(n)?"keyword":o.propertyIsEnumerable(n)?"atom":"variable"}function l(e,t){for(var r,n=!1;r=e.next();){if(")"==r&&n){t.tokenize=null;break}n="*"==r}return"comment"}return{startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var r=(t.tokenize||n)(e,t);return r},electricChars:"{}"}}),e.defineMIME("text/x-pascal","pascal")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function p(e,t){return e.string.charAt(e.pos+(t||0))}function f(e,t){if(t){var r=e.pos-t;return e.string.substr(0<=r?r:0,t)}return e.string.substr(0,e.pos-1)}function g(e,t){var r=e.string.length,n=r-e.pos+1;return e.string.substr(e.pos,t&&t=(r=e.string.length-1)?e.pos=r:e.pos=n}e.defineMode("perl",function(){var s={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},l="string-2",c=/[goseximacplud]/;function u(e,t,a,o,s){return t.chain=null,t.style=null,t.tail=null,t.tokenize=function(e,t){for(var r,n=!1,i=0;r=e.next();){if(r===a[i]&&!n)return void 0!==a[++i]?(t.chain=a[i],t.style=o,t.tail=s):s&&e.eatWhile(s),t.tokenize=m,o;n=!n&&"\\"==r}return o},t.tokenize(e,t)}function d(e,t,r){return t.tokenize=function(e,t){return e.string==r&&(t.tokenize=m),e.skipToEnd(),"string"},t.tokenize(e,t)}function m(e,t){if(e.eatSpace())return null;if(t.chain)return u(e,t,t.chain,t.style,t.tail);if(e.match(/^\-?[\d\.]/,!1)&&e.match(/^(\-?(\d*\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F]+|0b[01]+|\d+(e[+-]?\d+)?)/))return"number";if(e.match(/^<<(?=\w)/))return e.eatWhile(/\w/),d(e,t,e.current().substr(2));if(e.sol()&&e.match(/^\=item(?!\w)/))return d(e,t,"=cut");var r=e.next();if('"'==r||"'"==r){if(f(e,3)=="<<"+r){var n=e.pos;e.eatWhile(/\w/);var i=e.current().substr(1);if(i&&e.eat(r))return d(e,t,i);e.pos=n}return u(e,t,[r],"string")}if("q"==r&&(!(a=p(e,-2))||!/\w/.test(a)))if("x"==(a=p(e,0))){if("("==(a=p(e,1)))return h(e,2),u(e,t,[")"],l,c);if("["==a)return h(e,2),u(e,t,["]"],l,c);if("{"==a)return h(e,2),u(e,t,["}"],l,c);if("<"==a)return h(e,2),u(e,t,[">"],l,c);if(/[\^'"!~\/]/.test(a))return h(e,1),u(e,t,[e.eat(a)],l,c)}else if("q"==a){if("("==(a=p(e,1)))return h(e,2),u(e,t,[")"],"string");if("["==a)return h(e,2),u(e,t,["]"],"string");if("{"==a)return h(e,2),u(e,t,["}"],"string");if("<"==a)return h(e,2),u(e,t,[">"],"string");if(/[\^'"!~\/]/.test(a))return h(e,1),u(e,t,[e.eat(a)],"string")}else if("w"==a){if("("==(a=p(e,1)))return h(e,2),u(e,t,[")"],"bracket");if("["==a)return h(e,2),u(e,t,["]"],"bracket");if("{"==a)return h(e,2),u(e,t,["}"],"bracket");if("<"==a)return h(e,2),u(e,t,[">"],"bracket");if(/[\^'"!~\/]/.test(a))return h(e,1),u(e,t,[e.eat(a)],"bracket")}else if("r"==a){if("("==(a=p(e,1)))return h(e,2),u(e,t,[")"],l,c);if("["==a)return h(e,2),u(e,t,["]"],l,c);if("{"==a)return h(e,2),u(e,t,["}"],l,c);if("<"==a)return h(e,2),u(e,t,[">"],l,c);if(/[\^'"!~\/]/.test(a))return h(e,1),u(e,t,[e.eat(a)],l,c)}else if(/[\^'"!~\/(\[{<]/.test(a)){if("("==a)return h(e,1),u(e,t,[")"],"string");if("["==a)return h(e,1),u(e,t,["]"],"string");if("{"==a)return h(e,1),u(e,t,["}"],"string");if("<"==a)return h(e,1),u(e,t,[">"],"string");if(/[\^'"!~\/]/.test(a))return u(e,t,[e.eat(a)],"string")}if("m"==r&&((!(a=p(e,-2))||!/\w/.test(a))&&(a=e.eat(/[(\[{<\^'"!~\/]/)))){if(/[\^'"!~\/]/.test(a))return u(e,t,[a],l,c);if("("==a)return u(e,t,[")"],l,c);if("["==a)return u(e,t,["]"],l,c);if("{"==a)return u(e,t,["}"],l,c);if("<"==a)return u(e,t,[">"],l,c)}if("s"==r&&(!(a=/[\/>\]})\w]/.test(p(e,-2)))&&(a=e.eat(/[(\[{<\^'"!~\/]/))))return u(e,t,"["==a?["]","]"]:"{"==a?["}","}"]:"<"==a?[">",">"]:"("==a?[")",")"]:[a,a],l,c);if("y"==r&&(!(a=/[\/>\]})\w]/.test(p(e,-2)))&&(a=e.eat(/[(\[{<\^'"!~\/]/))))return u(e,t,"["==a?["]","]"]:"{"==a?["}","}"]:"<"==a?[">",">"]:"("==a?[")",")"]:[a,a],l,c);if("t"==r&&(!(a=/[\/>\]})\w]/.test(p(e,-2)))&&(a=(a=e.eat("r"))&&e.eat(/[(\[{<\^'"!~\/]/))))return u(e,t,"["==a?["]","]"]:"{"==a?["}","}"]:"<"==a?[">",">"]:"("==a?[")",")"]:[a,a],l,c);if("`"==r)return u(e,t,[r],"variable-2");if("/"==r)return/~\s*$/.test(f(e))?u(e,t,[r],l,c):"operator";if("$"==r){n=e.pos;if(e.eatWhile(/\d/)||e.eat("{")&&e.eatWhile(/\d/)&&e.eat("}"))return"variable-2";e.pos=n}if(/[$@%]/.test(r)){n=e.pos;if(e.eat("^")&&e.eat(/[A-Z]/)||!/[@$%&]/.test(p(e,-2))&&e.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var a=e.current();if(s[a])return"variable-2"}e.pos=n}if(/[$@%&]/.test(r)&&(e.eatWhile(/[\w$\[\]]/)||e.eat("{")&&e.eatWhile(/[\w$\[\]]/)&&e.eat("}"))){a=e.current();return s[a]?"variable-2":"variable"}if("#"==r&&"$"!=p(e,-2))return e.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(r)){n=e.pos;if(e.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),s[e.current()])return"operator";e.pos=n}if("_"==r&&1==e.pos){if("_END__"==g(e,6))return u(e,t,["\0"],"comment");if("_DATA__"==g(e,7))return u(e,t,["\0"],"variable-2");if("_C__"==g(e,7))return u(e,t,["\0"],"string")}if(/\w/.test(r)){n=e.pos;if("{"==p(e,-2)&&("}"==p(e,0)||e.eatWhile(/\w/)&&"}"==p(e,0)))return"string";e.pos=n}if(/[A-Z]/.test(r)){var o=p(e,-2);n=e.pos;if(e.eatWhile(/[A-Z_]/),!/[\da-z]/.test(p(e,0)))return(a=s[e.current()])?(a[1]&&(a=a[0]),":"!=o?1==a?"keyword":2==a?"def":3==a?"atom":4==a?"operator":5==a?"variable-2":"meta":"meta"):"meta";e.pos=n}if(/[a-zA-Z_]/.test(r)){o=p(e,-2);return e.eatWhile(/\w/),(a=s[e.current()])?(a[1]&&(a=a[0]),":"!=o?1==a?"keyword":2==a?"def":3==a?"atom":4==a?"operator":5==a?"variable-2":"meta":"meta"):"meta"}return null}return{startState:function(){return{tokenize:m,chain:null,style:null,tail:null}},token:function(e,t){return(t.tokenize||m)(e,t)},lineComment:"#"}}),e.registerHelper("wordChars","perl",/[\w$]/),e.defineMIME("text/x-perl","perl")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../clike/clike")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],e):e(CodeMirror)}(function(c){"use strict";function e(e){for(var t={},r=e.split(" "),n=0;n\w/,!1)&&(t.tokenize=s([[["->",null]],[[/[\w]+/,"variable"]]],r,n)),"variable-2";var i=!1;for(;!e.eol()&&(i||!1===n||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!i&&e.match(r)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}i="\\"==e.next()&&!i}return"string"}(e,t,r,n)}}var t="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",r="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",n="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";c.registerHelper("hintWords","php",[t,r,n].join(" ").split(" ")),c.registerHelper("wordChars","php",/[\w$]/);var i={name:"clike",helperType:"php",keywords:e(t),blockKeywords:e("catch do else elseif for foreach if switch try while finally"),defKeywords:e("class function interface namespace trait"),atoms:e(r),builtin:e(n),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){var r;if(r=e.match(/<<\s*/)){var n=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var i=e.current().slice(r[0].length+(n?2:1));if(n&&e.eat(n),i)return(t.tokStack||(t.tokStack=[])).push(i,0),t.tokenize=l(i,"'"!=n),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=l('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&0")?(t.curMode=s,t.curState=t.html,t.php.context.prev||(t.php=null),"meta"):l.token(e,t.curState);if(e.match(/^<\?\w*/))return t.curMode=l,t.php||(t.php=c.startState(l,s.indent(t.html,"",""))),t.curState=t.php,"meta";if('"'==t.pending||"'"==t.pending){for(;!e.eol()&&e.next()!=t.pending;);var n="string"}else if(t.pending&&e.pos/.test(a)?t.pending=i[0]:t.pending={end:e.pos,style:n},e.backUp(a.length-o)),n},indent:function(e,t,r){return e.curMode!=l&&/^\s*<\//.test(t)||e.curMode==l&&/^\?>/.test(t)?s.indent(e.html,t,r):e.curMode.indent(e.curState,t,r)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}},"htmlmixed","clike"),c.defineMIME("application/x-httpd-php","php"),c.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),c.defineMIME("text/x-php",i)}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(y){"use strict";function v(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var k=v(["and","or","not","is"]),x=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],w=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];function z(e){return e.scopes[e.scopes.length-1]}y.registerHelper("hintWords","python",x.concat(w)),y.defineMode("python",function(t,l){for(var c="error",s=l.delimiters||l.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,u=[l.singleOperators,l.doubleOperators,l.doubleDelimiters,l.tripleDelimiters,l.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],e=0;er;){if("py"!=z(t).type)return 1;t.scopes.pop()}return z(t).offset!=r}function a(e,t){e.sol()&&(t.beginningOfLine=!0);var r,n,i,a,o=t.tokenize(e,t),s=e.current();if(t.beginningOfLine&&"@"==s)return e.match(p,!1)?"meta":m?"operator":c;if(/\S/.test(s)&&(t.beginningOfLine=!1),"variable"!=o&&"builtin"!=o||"meta"!=t.lastToken||(o="meta"),"pass"!=s&&"return"!=s||(t.dedent+=1),"lambda"==s&&(t.lambda=!0),":"!=s||t.lambda||"py"!=z(t).type||_(t),1==s.length&&!/string|comment/.test(o)){var l="[({".indexOf(s);if(-1!=l&&(r=e,n=t,i="])}".slice(l,l+1),a=r.match(/^([\s\[\{\(]|#.*)*$/,!1)?null:r.column()+1,n.scopes.push({offset:n.indent+d,type:i,align:a})),-1!=(l="])}".indexOf(s))){if(z(t).type!=s)return c;t.indent=t.scopes.pop().offset-d}}return 0]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if("@"==a&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if("$"==a)return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(a))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if("|"!=a||!t.varList&&"{"!=t.lastTok&&"do"!=t.lastTok){if(/[\(\)\[\]{}\\;]/.test(a))return u=a,null;if("-"==a&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(a)){var c=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."!=a||c||(u="."),"operator"}return null}return u="|",null}function f(r){return r=r||1,function(e,t){if("}"==e.peek()){if(1==r)return t.tokenize.pop(),t.tokenize[t.tokenize.length-1](e,t);t.tokenize[t.tokenize.length-1]=f(r-1)}else"{"==e.peek()&&(t.tokenize[t.tokenize.length-1]=f(r+1));return p(e,t)}}function g(){var r=!1;return function(e,t){return r?(t.tokenize.pop(),t.tokenize[t.tokenize.length-1](e,t)):(r=!0,p(e,t))}}function h(i,a,o,s){return function(e,t){var r,n=!1;for("read-quoted-paused"===t.context.type&&(t.context=t.context.prev,e.eat("}"));null!=(r=e.next());){if(r==i&&(s||!n)){t.tokenize.pop();break}if(o&&"#"==r&&!n){if(e.eat("{")){"}"==i&&(t.context={prev:t.context,type:"read-quoted-paused"}),t.tokenize.push(f());break}if(/[@\$]/.test(e.peek())){t.tokenize.push(g());break}}n=!n&&"\\"==r}return a}}function b(e,t){return e.sol()&&e.match("=end")&&e.eol()&&t.tokenize.pop(),e.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[p],indented:0,context:{type:"top",indented:-a.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,t){u=null,e.sol()&&(t.indented=e.indentation());var r,n=t.tokenize[t.tokenize.length-1](e,t),i=u;if("ident"==n){var a=e.current();"keyword"==(n="."==t.lastTok?"property":o.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(a)?"tag":"def"==t.lastTok||"class"==t.lastTok||t.varList?"def":"variable")&&(i=a,s.propertyIsEnumerable(a)?r="indent":l.propertyIsEnumerable(a)?r="dedent":"if"!=a&&"unless"!=a||e.column()!=e.indentation()?"do"==a&&t.context.indented!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"variable-3"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],electricInput:/^\s*\}$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),e.defineMIME("text/x-rustsrc","rust"),e.defineMIME("text/rust","rust")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(i){"use strict";i.defineMode("shell",function(){var a={};function e(e,t){for(var r=0;r!=&|~^\/]/,u=e.support||{},d=e.hooks||{},m=e.dateSQL||{date:!0,time:!0,timestamp:!0},p=!1!==e.backslashStringEscapes,f=e.brackets||/^[\{}\(\)\[\]]/,g=e.punctuation||/^[;.,:]/;function h(e,t){var r=e.next();if(d[r]){var n=d[r](e,t);if(!1!==n)return n}if(u.hexNumber&&("0"==r&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==r||"X"==r)&&e.match(/^'[0-9a-fA-F]+'/)))return"number";if(u.binaryNumber&&(("b"==r||"B"==r)&&e.match(/^'[01]+'/)||"0"==r&&e.match(/^b[01]+/)))return"number";if(47!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:v("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":t}}),y.defineMIME("text/x-mysql",{name:"sql",client:v("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:v(n+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:v("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:v("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:v("date time timestamp"),support:v("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":t,"`":e,"\\":r}}),y.defineMIME("text/x-mariadb",{name:"sql",client:v("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:v(n+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:v("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:v("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:v("date time timestamp"),support:v("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":t,"`":e,"\\":r}}),y.defineMIME("text/x-sqlite",{name:"sql",client:v("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:v(n+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:v("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:v("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:v("date time timestamp datetime"),support:v("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":t,":":t,"?":t,$:t,'"':function(e){for(var t;null!=(t=e.next());)if('"'==t&&!e.eat('"'))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null},"`":e}}),y.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:v("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:v("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:v("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:v("commentSlashSlash decimallessFloat"),hooks:{}}),y.defineMIME("text/x-plsql",{name:"sql",client:v("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:v("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:v("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:v("date time timestamp"),support:v("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),y.defineMIME("text/x-hive",{name:"sql",keywords:v("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:v("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:v("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:v("date timestamp"),support:v("ODBCdotTable doubleQuote binaryNumber hexNumber")}),y.defineMIME("text/x-pgsql",{name:"sql",client:v("source"),keywords:v(n+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:v("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:v("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:v("date time timestamp"),support:v("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),y.defineMIME("text/x-gql",{name:"sql",keywords:v("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:v("false true"),builtin:v("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),y.defineMIME("text/x-gpsql",{name:"sql",client:v("source"),keywords:v("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:v("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:v("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:v("date time timestamp"),support:v("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),y.defineMIME("text/x-sparksql",{name:"sql",keywords:v("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases datata dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:v("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:v("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:v("date time timestamp"),support:v("ODBCdotTable doubleQuote zerolessFloat")}),y.defineMIME("text/x-esper",{name:"sql",client:v("source"),keywords:v("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:v("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:v("time"),support:v("decimallessFloat zerolessFloat binaryNumber hexNumber")})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},r=0;r~^?!",m=":;,.(){}[]",p=/^\-?0b[01][01_]*/,f=/^\-?0o[0-7][0-7_]*/,g=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,h=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,b=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,_=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,y=/^\#[A-Za-z]+/,v=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function a(e,t,r){if(e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;var n,i=e.peek();if("/"==i){if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.tokenize.push(x),x(e,t)}if(e.match(y))return"builtin";if(e.match(v))return"attribute";if(e.match(p))return"number";if(e.match(f))return"number";if(e.match(g))return"number";if(e.match(h))return"number";if(e.match(_))return"property";if(-1=]"),c=new RegExp("^((<>)|(<=)|(>=))"),u=new RegExp("^[\\.,]"),d=new RegExp("^[\\(\\)]"),m=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),p=e(["and","or","not","xor","is","mod","eqv","imp"]),t=["WScript","err","debug","RegExp"],f=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"].concat(["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"]);t=t.concat(["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"]),n.isASP&&(t=t.concat(["server","response","request","session","application"]),f=f.concat(["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"]));var g=e(["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"]),h=e(["true","false","nothing","empty","null"]),b=e(["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"]),_=e(t),y=e(f),v='"',k=e(["class","sub","select","while","if","function","property","with","for"]),x=e(["else","elseif","case"]),w=e(["next","loop","wend"]),z=e(["end"]),q=e(["do"]),S=e(["on error resume next","exit"]),E=e(["rem"]);function T(e,t){t.currentIndent++}function M(e,t){t.currentIndent--}function C(e,t){if(e.eatSpace())return"space";var r,n;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(E))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var i=!1;if(e.match(/^\d*\.\d+/i)||e.match(/^\d+\.\d*/)?i=!0:e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var a=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?a=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),a=!0):e.match(/^0(?![\dx])/i)&&(a=!0),a)return e.eat(/L/i),"number"}return e.match(v)?(t.tokenize=(r=e.current(),n=1==r.length,function(e,t){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(r))return t.tokenize=C,"string";e.eat(/['"]/)}if(n){if(o.singleLineStringErrors)return s;t.tokenize=C}return"string"}),t.tokenize(e,t)):e.match(c)||e.match(l)||e.match(p)?"operator":e.match(u)?null:e.match(d)?"bracket":e.match(S)?(t.doInCurrentLine=!0,"keyword"):e.match(q)?(T(0,t),t.doInCurrentLine=!0,"keyword"):e.match(k)?(t.doInCurrentLine?t.doInCurrentLine=!1:T(0,t),"keyword"):e.match(x)?"keyword":e.match(z)?(M(0,t),M(0,t),"keyword"):e.match(w)?(t.doInCurrentLine?t.doInCurrentLine=!1:M(0,t),"keyword"):e.match(g)?"keyword":e.match(h)?"atom":e.match(y)?"variable-2":e.match(b)?"builtin":e.match(_)?"variable-2":e.match(m)?"variable":(e.next(),s)}return{electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:C,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var r,n,i,a,o=(r=e,i=(n=t).tokenize(r,n),"."===(a=r.current())?(i=n.tokenize(r,n),a=r.current(),!i||"variable"!==i.substr(0,8)&&"builtin"!==i&&"keyword"!==i?s:("builtin"!==i&&"keyword"!==i||(i="variable"),-1":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"hr","/":"property","/-":"property","@":"variable-3","@-":"variable-3","@++":"variable-3","@+=":"variable-3","@+=-":"variable-3","@--":"variable-3","@-=":"variable-3","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable-2","**":"variable-2","\\":"keyword",'"':"comment"},g={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"},h=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,b=/^[! ] /,_=/^[! ] */,y=/^\/[\/\*]/;function v(e,t,r){var n=t/3;return"tlv-"+e.tlvIndentationStyle[n]+"-"+r}$.defineMIME("text/x-tlv",{name:"verilog",hooks:{electricInput:!1,token:function(e,t){var r,n=void 0;if(e.sol()&&!t.tlvInBlockComment){"\\"==e.peek()&&(n="def",e.skipToEnd(),e.string.match(/\\SV/)?t.tlvCodeActive=!1:e.string.match(/\\TLV/)&&(t.tlvCodeActive=!0)),t.tlvCodeActive&&0==e.pos&&0==t.indented&&(u=e.match(_,!1))&&(t.indented=u[0].length);var i=t.indented,a=i/3;if(a<=t.tlvIndentationStyle.length){var o=e.string.length==i,s=3*a;if(sa;)t.tlvIndentationStyle.pop()}t.tlvNextIndent=i}if(t.tlvCodeActive){var u,d=!1;if(0,void 0!==n)n+=" "+v(t,0,"scope-ident");else if(e.pos/3")):null:t.match("--")?e(i("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),e(function n(i){return function(e,t){for(var r;null!=(r=e.next());){if("<"==r)return t.tokenize=n(i+1),t.tokenize(e,t);if(">"==r){if(1!=i)return t.tokenize=n(i-1),t.tokenize(e,t);t.tokenize=c;break}}return"meta"}}(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),r.tokenize=i("meta","?>"),"meta"):(o=t.eat("/")?"closeTag":"openTag",r.tokenize=u,"tag bracket"):"&"!=n?(t.eatWhile(/[^&<]/),null):(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error"}function u(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=c,o=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return o="equals",null;if("<"!=r)return/[\'\"]/.test(r)?(t.tokenize=(n=r,a.isInAttribute=!0,a),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word");t.tokenize=c,t.state=f,t.tagName=t.tagStart=null;var n,i=t.tokenize(e,t);return i?i+" tag error":"tag error";function a(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=u;break}return"string"}}function i(r,n){return function(e,t){for(;!e.eol();){if(e.match(n)){t.tokenize=c;break}e.next()}return r}}function d(e,t,r){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=r,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function m(e){e.context&&(e.context=e.context.prev)}function p(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!l.contextGrabbers.hasOwnProperty(r)||!l.contextGrabbers[r].hasOwnProperty(t))return;m(e)}}function f(e,t,r){return"openTag"==e?(r.tagStart=t.column(),g):"closeTag"==e?h:f}function g(e,t,r){return"word"==e?(r.tagName=t.current(),a="tag",y):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",y(e,t,r)):(a="error",g)}function h(e,t,r){if("word"!=e)return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",b(e,t,r)):(a="error",_);var n=t.current();return r.context&&r.context.tagName!=n&&l.implicitlyClosed.hasOwnProperty(r.context.tagName)&&m(r),r.context&&r.context.tagName==n||!1===l.matchClosing?(a="tag",b):(a="tag error",_)}function b(e,t,r){return"endTag"!=e?(a="error",b):(m(r),f)}function _(e,t,r){return a="error",b(e,0,r)}function y(e,t,r){if("word"==e)return a="attribute",v;if("endTag"!=e&&"selfcloseTag"!=e)return a="error",y;var n=r.tagName,i=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(n)?p(r,n):(p(r,n),r.context=new d(r,n,i==r.indented)),f}function v(e,t,r){return"equals"==e?k:(l.allowMissing||(a="error"),y(e,0,r))}function k(e,t,r){return"string"==e?x:"word"==e&&l.allowUnquoted?(a="string",y):(a="error",y(e,0,r))}function x(e,t,r){return"string"==e?x:y(e,0,r)}return c.isInText=!0,{startState:function(e){var t={tokenize:c,state:f,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var r=t.tokenize(e,t);return(r||o)&&"comment"!=r&&(a=null,t.state=t.state(o||r,e,t),a&&(r="error"==a?r+" error":a)),r},indent:function(e,t,r){var n=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+s;if(n&&n.noIndent)return w.Pass;if(e.tokenize!=u&&e.tokenize!=c)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==k&&(e.state=y)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],r=e.context;r;r=r.prev)r.tagName&&t.push(r.tagName);return t.reverse()}}}),w.defineMIME("text/xml","xml"),w.defineMIME("application/xml","xml"),w.mimeModes.hasOwnProperty("text/html")||w.defineMIME("text/html",{name:"xml",htmlMode:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("yaml",function(){var i=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");return{token:function(e,t){var r=e.peek(),n=t.escaped;if(t.escaped=!1,"#"==r&&(0==e.pos||/\s/.test(e.string.charAt(e.pos-1))))return e.skipToEnd(),"comment";if(e.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(t.literal&&e.indentation()>t.keyCol)return e.skipToEnd(),"string";if(t.literal&&(t.literal=!1),e.sol()){if(t.keyCol=0,t.pair=!1,t.pairStart=!1,e.match(/---/))return"def";if(e.match(/\.\.\./))return"def";if(e.match(/\s*-\s+/))return"meta"}if(e.match(/^(\{|\}|\[|\])/))return"{"==r?t.inlinePairs++:"}"==r?t.inlinePairs--:"["==r?t.inlineList++:t.inlineList--,"meta";if(0)\s*/))return t.literal=!0,"meta";if(e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==t.inlinePairs&&e.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(0'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(t.pair=!0,t.keyCol=e.indentation(),"atom"):t.pair&&e.match(/^:\s*/)?(t.pairStart=!0,"meta"):(t.pairStart=!1,t.escaped="\\"==r,e.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),e.defineMIME("text/x-yaml","yaml"),e.defineMIME("text/yaml","yaml")}); \ No newline at end of file diff --git a/share/files/wizeditor/dependency/fonts.css b/share/files/wizeditor/dependency/fonts.css index 40b9ee866..42146f261 100644 --- a/share/files/wizeditor/dependency/fonts.css +++ b/share/files/wizeditor/dependency/fonts.css @@ -1,10 +1,10 @@ @font-face { font-family: 'wizEditorIcons'; - src: url('fonts/wizEditorIcons.eot?5wq4nr'); - src: url('fonts/wizEditorIcons.eot?5wq4nr#iefix') format('embedded-opentype'), - url('fonts/wizEditorIcons.ttf?5wq4nr') format('truetype'), - url('fonts/wizEditorIcons.woff?5wq4nr') format('woff'), - url('fonts/wizEditorIcons.svg?5wq4nr#wizEditorIcons') format('svg'); + src: url('fonts/wizEditorIcons.eot?s6r2s8'); + src: url('fonts/wizEditorIcons.eot?s6r2s8#iefix') format('embedded-opentype'), + url('fonts/wizEditorIcons.ttf?s6r2s8') format('truetype'), + url('fonts/wizEditorIcons.woff?s6r2s8') format('woff'), + url('fonts/wizEditorIcons.svg?s6r2s8#wizEditorIcons') format('svg'); font-weight: normal; font-style: normal; font-display: block; @@ -25,9 +25,6 @@ -moz-osx-font-smoothing: grayscale; } -.icon-down_arrow_small.editor-icon:before { - content: "\e900"; -} .icon-merge.editor-icon:before { content: "\e101"; } @@ -70,6 +67,9 @@ .icon-down_arrow.editor-icon:before { content: "\e10e"; } +.icon-down_arrow_small.editor-icon:before { + content: "\e900"; +} .icon-undo.editor-icon:before { content: "\e901"; } @@ -115,3 +115,18 @@ .icon-checkmark.editor-icon:before { content: "\e90f"; } +.icon-rotation_right.editor-icon:before { + content: "\e910"; +} +.icon-rotation_left.editor-icon:before { + content: "\e911"; +} +.icon-zoom.editor-icon:before { + content: "\e912"; +} +.icon-theme.editor-icon:before { + content: "\e913"; +} +.icon-organization.editor-icon:before { + content: "\e914"; +} \ No newline at end of file diff --git a/share/files/wizeditor/dependency/fonts/wizEditorIcons.eot b/share/files/wizeditor/dependency/fonts/wizEditorIcons.eot index 3adbc2eaa3c0dffebd543e9ba8d5dacd03cf4cbb..048541c24634183500c0726dabd577386f3dfbdf 100644 GIT binary patch delta 1049 zcma)*O-vI}5Xa~3HoMp&Td><=Yv~8wHnjx%xrKg!XkucBu_r)7(1rqyp|S}i&;u#) z#6^WPX=36@55y~YB!(Cdy{IuE9ylQ}AzVBVP0+*YylsmO@!(-+=Kq`b_WgHu_p7uY z;PyoTr?}3^I{tX$X#Hxr6bFE9yzWmHvdU5B%XVov5GB&P`_1>a}syuTf_T z*(C*{y^sgEphMt%m@Q0oEL_Ncep<>sWYrHfe17O$_D_`JRp3GqRVgp{P8tof5k zzpD6?IwpDS2CH=>mCjThj$x;RJW+S)3etn|lOV_*DUePiCfu%8{oPHQb;xEb zL9>C&=o=3en@mW-_yCE^Az#oWa(o-%IbPOCL}YvD(RCYY(cv6+II5X+YQ${0cCi#zcPpaZE~+nRtf;$TEz=PG_0O7IujFuL zeOa#3R5$ac8Xtl_2pnx3^Y?_*4=~Ul24L@C@m#T96w5n8ocPKo!m0_oO6?+j^?J0t ZV!UDGzVShRn%{2e(r)S7`d~COe*iH{+=2iA delta 278 zcmaE${X~`Ri4X&WiqJ$hGnU1jjV~rTOs+R%U|`q-#0kl{i3KmcAD(4kV3Yy!W6~3g z3xKo$kY53$Inr|~(>#whGywTP%o~%DnwTOP{-}_Ff$t7b-Yf$sz_FO+5d#Ci2#~Lm zky}zx&%o^gg*c?M?YACnsx?HTzeA7J!l`GBDg) + + + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/fonts/wizEditorIcons.ttf b/share/files/wizeditor/dependency/fonts/wizEditorIcons.ttf index 8b88e15a85f5f600e995a847bd2b4240dc3db55c..f5633e6d58a5b816fd4ec97aee711ca82f9e7d66 100644 GIT binary patch delta 1047 zcma)*Ur19?9LIlWS9WbPkJ|2LTXTQh-DN7d-EDWeKZ*rGNI3}9LagD`5iTz%=pJO! zlP{Gi41yk_g6LIyl#u9QFA;(C;9I_kFFi;>^>FKV?lv3JLl@5P_xpa%Irn_|-Fsg8 zo^=(00Du`*frH@4jb53y8DmIxaNL>7XVjzgmk$8s0_us`%z}!!1@$uK#@V^TjQH_$ z2=yxBWNtc>J^wyD575f?D>(#>FB%R}e?#rdqEB$f?wjaas?lSgNZ z22g)%+&Xt3C6UQUr zesYZdPCUpC$B^Bzb<^DB@lM9$scz9%R4B~?7)T%dFq92z&;}x!==2($1Un%sDS{yy z@!J?dELf}w!f?b-4ofCVO(wd6>1`#M7&5F;J)2h8Y?)TF&hRrdfC@qEcp5wIDnc&| z{ynhvYERWbO>?L8>3MRu#5%zOd2&+fS`V6V0=aZ$U1hRZ1c>{}1Dqin6v>5}Zy!d(L7>+mrRog8b{BHMv~M;>zl> zY^koU=XJGyY4PG7y*lP^)8uzBv+Dw|f3S3>P%R1@G)AP&KDuVXNwqRaU$q|F+@)7q Vj9>X6Kf~`dcIa=Ewwqh5hCk9;)yDt; delta 277 zcmZ3WwM3{RD6$8L6OwZi3toCZJj=kqCDk1_pi+AYUaT zx1^$;f!hPfw*c}xa`KZM6ZM6(UjYRU00rD~6DtZB^cgaMc5nds3VDgSsS@SAKm!Cc zfR@}U$S*DdIur^+5KJ@?q diff --git a/share/files/wizeditor/dependency/fonts/wizEditorIcons.woff b/share/files/wizeditor/dependency/fonts/wizEditorIcons.woff index 89e6d0c770b2de8169ff8b86bc17fa2726c5a56e..463909bbd1511954b57a39a8f5044fa14abb7369 100644 GIT binary patch delta 1087 zcma)*OK1~O6o${qluS)xCv9gEO-R$EnS?Y&^G=&bYZVI8YO`u+oW8QZ72y>7;p)#5U-cL2sDGx@`( zKz1p!2++lPqRcMtht{$LiCv-E#jO2B+i^Cxu}O@2;Tf|sba+N^n<{mVg%x=#m^te4q4Df!H1o8`TSt^G=6BH@j=Kj9RTF zXcf>;`sq-qMTG2+4Pz`C@c2bZ%Xc8J<)bPIN!$QCx-LU0+Iz?C_G&tnoU&N-HkUjT z4h`Wc>1%2TTCJlN>+UVR!Qq^b$5TGpRf-A%ja`F-@IzD8Y(p2wB%;r$wINL+7)>F$ zNZ4&=gs>!<63B4ajmH(8An0_$7KJyppkqk0EvQkq#a63AEvk$@LmTA5PZLkm#O)=x z3?qLJY;5hQ3ux5bnfmNH-l?!jFo#c?samT}k(!W8*ZOLUr3P1qTXBPuGMI+z+$$~y zlT2pB5mARy`#ac-5-2&OGxB^G3H=Y_3ZXx3pS))nw2mW8#g#Z8m delta 335 zcmaE(^+83f+~3WOfsp|SgbEnA!L$kkxqZKnRep0LJl.x?"right":"left";a.getMinder().getPaper().addResource(g),h=new e.Point(l.cx,l.cy),i="left"==o?new e.Point(k.right+2,k.cy):new e.Point(k.left-2,k.cy),j=e.Vector.fromPoints(h,i),n.push("M",h),n.push("A",m(j.x),m(j.y),0,0,j.x*j.y>0?0:1,i),c.setMarker(g),g.dot.fill(f),c.setPathData(n)})}},b[1]={value:function(a,c,d){var e=b.r(17),f=b.r(11),g=(new e.Marker).pipe(function(){var a=7,b=new e.Circle(a-1);this.addShape(b),this.setRef(a-1,0).setViewBox(-a,-a,a+a,a+a).setWidth(a).setHeight(a),this.dot=b,this.node.setAttribute("markerUnits","userSpaceOnUse")});f.register("arc_tp",function(a,b,c,d,f){var h=a.getLayoutBox(),i=b.getLayoutBox(),j=a.getIndex(),k=b.getChildren()[j+1];a.getIndex()>0&&(i=b.getChildren()[j-1].getLayoutBox());var l,m,n=(Math.abs,[]);h.x,i.x;a.getMinder().getPaper().addResource(g),l=new e.Point(i.cx,i.cy),m=new e.Point(h.cx,h.cy);var o=Math.sqrt(Math.pow(l.x-m.x,2)+Math.pow(l.y-m.y,2));if(o=0==a.getIndex()?.4*o:o,e.Vector.fromPoints(l,m),n.push("M",l),n.push("A",o,o,0,0,1,m),c.setMarker(g),g.dot.fill(f),c.setPathData(n),k&&k.getConnection()){var p=k.getConnection(),q=k.getLayoutBox(),r=new e.Point(q.cx,q.cy),s=Math.sqrt(Math.pow(m.x-r.x,2)+Math.pow(m.y-r.y,2));n=[],n.push("M",m),n.push("A",s,s,0,0,1,r),p.setMarker(g),g.dot.fill(f),p.setPathData(n)}})}},b[2]={value:function(a,c,d){b.r(17);b.r(11).register("bezier",function(a,b,c){var d=b.getLayoutVertexOut(),e=a.getLayoutVertexIn(),f=b.getLayoutVectorOut().normalize(),g=Math.round,h=Math.abs,i=[];if(i.push("M",g(d.x),g(d.y)),h(f.x)>h(f.y)){var j=(e.x+d.x)/2;i.push("C",j,d.y,j,e.y,e.x,e.y)}else{var k=(e.y+d.y)/2;i.push("C",d.x,k,e.x,k,e.x,e.y)}c.setMarker(null),c.setPathData(i)})}},b[3]={value:function(a,c,d){b.r(17);b.r(11).register("fish-bone-master",function(a,b,c){var d=b.getLayoutVertexOut(),e=a.getLayoutVertexIn(),f=Math.abs,g=f(d.y-e.y),h=f(d.x-e.x),i=[];i.push("M",d.x,d.y),i.push("h",h-g),i.push("L",e.x,e.y),c.setMarker(null),c.setPathData(i)})}},b[4]={value:function(a,c,d){b.r(17);b.r(11).register("l",function(a,b,c){var d=b.getLayoutVertexOut(),e=a.getLayoutVertexIn(),f=b.getLayoutVectorOut(),g=[],h=Math.round,i=Math.abs;g.push("M",d.round()),i(f.x)>i(f.y)?g.push("H",h(e.x)):g.push("V",e.y),g.push("L",e),c.setPathData(g)})}},b[5]={value:function(a,c,d){b.r(17);b.r(11).register("poly",function(a,b,c,d){var e=b.getLayoutVertexOut(),f=a.getLayoutVertexIn(),g=b.getLayoutVectorOut().normalize(),h=Math.round,i=Math.abs,j=[];switch(j.push("M",h(e.x),h(e.y)),!0){case i(g.x)>i(g.y)&&g.x<0:j.push("h",-b.getStyle("margin-left")),j.push("v",f.y-e.y),j.push("H",f.x);break;case i(g.x)>i(g.y)&&g.x>=0:j.push("h",b.getStyle("margin-right")),j.push("v",f.y-e.y),j.push("H",f.x);break;case i(g.x)<=i(g.y)&&g.y<0:j.push("v",-b.getStyle("margin-top")),j.push("h",f.x-e.x),j.push("V",f.y);break;case i(g.x)<=i(g.y)&&g.y>=0:j.push("v",b.getStyle("margin-bottom")),j.push("h",f.x-e.x),j.push("V",f.y)}c.setMarker(null),c.setPathData(j)})}},b[6]={value:function(a,c,d){var e=b.r(17);b.r(11).register("under",function(a,b,c,d,f){var g,h,i,j,k=a.getLayoutBox(),l=b.getLayoutBox(),m=(Math.abs,[]),n=k.x>l.x?"right":"left",o=(a.getStyle("connect-radius"),k.bottom+3),p="sub"==b.getType()?l.bottom+3:l.cy;"right"==n?(g=new e.Point(l.right,p),h=new e.Point(k.left-10,o),i=new e.Point(k.right,o)):(g=new e.Point(l.left,p),h=new e.Point(k.right+10,o),i=new e.Point(k.left,o)),j=(g.x+h.x)/2,m.push("M",g),m.push("C",j,g.y,j,h.y,h),m.push("L",i),c.setMarker(null),c.setPathData(m)})}},b[7]={value:function(a,c,d){var e=b.r(17),f=b.r(19);if(-1!=location.href.indexOf("boxv")){var g;Object.defineProperty(e.Box.prototype,"visualization",{get:function(){return g?g.setBox(this):null}}),f.registerInitHook(function(){this.on("paperrender",function(){g=new e.Rect,g.fill("rgba(200, 200, 200, .5)"),g.stroke("orange"),this.getRenderContainer().addShape(g)})})}}},b[8]={value:function(a,c,d){var e=b.r(19),f={enableAnimation:!0,layoutAnimationDuration:300,viewAnimationDuration:100,zoomAnimationDuration:300},g={};e.registerInitHook(function(){this.setDefaultOptions(f),this.getOption("enableAnimation")||this.disableAnimation()}),e.prototype.enableAnimation=function(){for(var a in f)f.hasOwnProperty(a)&&this.setOption(g[a])},e.prototype.disableAnimation=function(){for(var a in f)f.hasOwnProperty(a)&&(g[a]=this.getOption(a),this.setOption(a,0))}}},b[9]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19)),g=(b.r(21),b.r(13)),h=0,i=e.createClass("Command",{constructor:function(){this._isContentChange=!0,this._isSelectionChange=!1},execute:function(a,b){throw new Error("Not Implement: Command.execute()")},setContentChanged:function(a){this._isContentChange=!!a},isContentChanged:function(){return this._isContentChange},setSelectionChanged:function(a){this._isSelectionChange=!!a},isSelectionChanged:function(){return this._isContentChange},queryState:function(a){return h},queryValue:function(a){return 0},isNeedUndo:function(){return!0}});i.STATE_NORMAL=h,i.STATE_ACTIVE=1,i.STATE_DISABLED=-1,e.extendClass(f,{_getCommand:function(a){return this._commands[a.toLowerCase()]},_queryCommand:function(a,b,c){var d=this._getCommand(a);if(d){var e=d["query"+b];if(e)return e.apply(d,[this].concat(c))}return 0},queryCommandState:function(a){return this._queryCommand(a,"State",[].slice.call(arguments,1))},queryCommandValue:function(a){return this._queryCommand(a,"Value",[].slice.call(arguments,1))},execCommand:function(a){if(!a)return null;a=a.toLowerCase();var b,c,d,e,f=[].slice.call(arguments,1),h=this;return b=this._getCommand(a),e={command:b,commandName:a.toLowerCase(),commandArgs:f},!(!b||!~this.queryCommandState(a))&&(this._hasEnterExecCommand?(d=b.execute.apply(b,[h].concat(f)),this._hasEnterExecCommand||this._interactChange()):(this._hasEnterExecCommand=!0,c=this._fire(new g("beforeExecCommand",e,!0)),c||(this._fire(new g("preExecCommand",e,!1)),d=b.execute.apply(b,[h].concat(f)),this._fire(new g("execCommand",e,!1)),b.isContentChanged()&&this._firePharse(new g("contentchange")),this._interactChange()),this._hasEnterExecCommand=!1),void 0===d?null:d)}}),d.exports=i}},b[10]={value:function(a,c,d){function e(a){switch(a.version||(a.root?"1.4.0":"1.1.3")){case"1.1.3":h(a);case"1.2.0":case"1.2.1":g(a);case"1.3.0":case"1.3.1":case"1.3.2":case"1.3.3":case"1.3.4":case"1.3.5":i(a)}return a}function f(a,b){b(a),a.children&&a.children.forEach(function(a){f(a,b)})}function g(a){f(a,function(a){var b=a.data;delete b.layout_bottom_offset,delete b.layout_default_offset,delete b.layout_filetree_offset})}function h(a){var b=a.data.currentstyle;delete a.data.currentstyle,"bottom"==b?(a.template="structure",a.theme="snow"):"default"==b&&(a.template="default",a.theme="classic"),f(a,function(a){var b=a.data;"PriorityIcon"in b&&(b.priority=b.PriorityIcon,delete b.PriorityIcon),"ProgressIcon"in b&&(b.progress=1+(b.ProgressIcon-1<<1),delete b.ProgressIcon),delete b.point,delete b.layout})}function i(a){a.root={data:a.data,children:a.children},delete a.data,delete a.children}b.r(33);return e}},b[11]={value:function(a,c,d){function e(a,b){k[a]=b}var f=b.r(17),g=b.r(33),h=b.r(20),i=b.r(19),j=b.r(21),k={};e("default",function(a,b,c){c.setPathData(["M",b.getLayoutVertexOut(),"L",a.getLayoutVertexIn()])}),f.extendClass(j,{getConnect:function(){return this.data.connect||"default"},getConnectProvider:function(){return k[this.getConnect()]||k.default},getConnection:function(){return this._connection||null}}),f.extendClass(i,{getConnectContainer:function(){return this._connectContainer},createConnect:function(a){if(!a.isRoot()){var b=new f.Path;a._connection=b,this._connectContainer.addShape(b),this.updateConnect(a)}},removeConnect:function(a){var b=this;a.traverse(function(a){b._connectContainer.removeShape(a._connection),a._connection=null})},updateConnect:function(a){var b=a._connection,c=a.parent;if(c&&b){if(c.isCollapsed())return void b.setVisible(!1);b.setVisible(!0);var d=a.getConnectProvider(),e=a.getStyle("connect-color")||"white",f=a.getStyle("connect-width")||2;b.stroke(e,f),d(a,c,b,f,e),f%2==0?b.setTranslate(.5,.5):b.setTranslate(0,0)}}}),h.register("Connect",{init:function(){this._connectContainer=(new f.Group).setId(g.uuid("minder_connect_group")),this.getRenderContainer().prependShape(this._connectContainer)},events:{nodeattach:function(a){this.createConnect(a.node)},nodedetach:function(a){this.removeConnect(a.node)},"layoutapply layoutfinish noderender":function(a){this.updateConnect(a.node)}}}),c.register=e}},b[12]={value:function(a,c,d){function e(a,b){l[a]=b;for(var c in l)l.hasOwnProperty(c)&&(l[c]=l[c],l[c].name=c)}function f(a){return void 0===a?l:l[a]||null}var g=b.r(17),h=(b.r(33),b.r(19)),i=(b.r(21),b.r(13)),j=b.r(10),k=b.r(25),l={};c.registerProtocol=e,c.getRegisterProtocol=f,g.extendClass(h,{setup:function(a){if("string"==typeof a&&(a=document.querySelector(a)),a){var b=a.getAttribute("minder-data-type");if(b in l){var c=a.textContent;a.textContent=null,this.renderTo(a),this.importData(b,c)}return this}},exportJson:function(){function a(b){var c={};c.data=b.getData();var d=b.getChildren();c.children=[];for(var e=0;e200&&(b=0),f(a,a.parent?a.parent.getGlobalLayoutTransform():new g.Matrix),this}}),d.exports=l}},b[19]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=[],h=e.createClass("Minder",{constructor:function(a){this._options=f.extend({},a);for(var b,c=g.slice();c.length;)"function"==typeof(b=c.shift())&&b.call(this,this._options);this.fire("finishInitHook")}});h.version="1.4.43",h.registerInitHook=function(a){g.push(a)},d.exports=h}},b[20]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(19),h={};c.register=function(a,b){h[a]=b},g.registerInitHook(function(){this._initModules()}),e.extendClass(g,{_initModules:function(){var a=h,b=this._options.modules||f.keys(a);this._commands={},this._query={},this._modules={},this._rendererClasses={};var c,d,e,g,i,j,k,l=this;for(c=0;c=0&&(b=this.children.splice(c,1)[0],b.parent=null,b.root=b)},clearChildren:function(){this.children=[]},getChild:function(a){return this.children[a]},getRenderContainer:function(){return this.rc},getCommonAncestor:function(a){return h.getCommonAncestor(this,a)},contains:function(a){return this==a||this.isAncestorOf(a)},clone:function(){var a=new h;return a.data=f.clone(this.data),this.children.forEach(function(b){a.appendChild(b.clone())}),a},compareTo:function(a){if(!f.comparePlainObject(this.data,a.data))return!1;if(!f.comparePlainObject(this.temp,a.temp))return!1;if(this.children.length!=a.children.length)return!1;for(var b=0;this.children[b];){if(!this.children[b].compareTo(a.children[b]))return!1;b++}return!0},getMinder:function(){return this.getRoot().minder}});h.getCommonAncestor=function(a,b){if(a instanceof Array)return h.getCommonAncestor.apply(this,a);switch(arguments.length){case 1:return a.parent||a;case 2:if(a.isAncestorOf(b))return a;if(b.isAncestorOf(a))return b;for(var c=a.parent;c&&!c.isAncestorOf(b);)c=c.parent;return c;default:return Array.prototype.reduce.call(arguments,function(a,b){return h.getCommonAncestor(a,b)},a)}},e.extendClass(g,{getRoot:function(){return this._root},setRoot:function(a){this._root=a,a.minder=this},getAllNode:function(){var a=[];return this.getRoot().traverse(function(b){a.push(b)}),a},getNodeById:function(a){return this.getNodesById([a])[0]},getNodesById:function(a){var b=this.getAllNode(),c=[];return b.forEach(function(b){-1!=a.indexOf(b.getData("id"))&&c.push(b)}),c},createNode:function(a,b,c){var d=new h(a);return this.fire("nodecreate",{node:d,parent:b,index:c}),this.appendNode(d,b,c),d},appendNode:function(a,b,c){return b&&b.insertChild(a,c),this.attachNode(a),this},removeNode:function(a){a.parent&&(a.parent.removeChild(a),this.detachNode(a),this.fire("noderemove",{node:a}))},attachNode:function(a){var b=this.getRenderContainer();a.traverse(function(a){a.attached=!0,b.addShape(a.getRenderContainer())}),b.addShape(a.getRenderContainer()),this.fire("nodeattach",{node:a})},detachNode:function(a){var b=this.getRenderContainer();a.traverse(function(a){a.attached=!1,b.removeShape(a.getRenderContainer())}),this.fire("nodedetach",{node:a})},getMinderTitle:function(){return this.getRoot().getText()}}),d.exports=h}},b[22]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(19);g.registerInitHook(function(a){this._defaultOptions={}}),e.extendClass(g,{setDefaultOptions:function(a){return f.extend(this._defaultOptions,a),this},getOption:function(a){return a?a in this._options?this._options[a]:this._defaultOptions[a]:f.extend({},this._defaultOptions,this._options)},setOption:function(a,b){this._options[a]=b}})}},b[23]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(19);g.registerInitHook(function(){this._initPaper()}),e.extendClass(g,{_initPaper:function(){this._paper=new e.Paper,this._paper._minder=this,this._paper.getNode().ondragstart=function(a){a.preventDefault()},this._paper.shapeNode.setAttribute("transform","translate(0.5, 0.5)"),this._addRenderContainer(),this.setRoot(this.createNode()),this._options.renderTo&&this.renderTo(this._options.renderTo)},_addRenderContainer:function(){this._rc=(new e.Group).setId(f.uuid("minder")),this._paper.addShape(this._rc)},renderTo:function(a){if("string"==typeof a&&(a=document.querySelector(a)),a){if("script"==a.tagName.toLowerCase()){var b=document.createElement("div");b.id=a.id,b.class=a.class,a.parentNode.insertBefore(b,a),a.parentNode.removeChild(a),a=b}a.classList.add("km-view"),this._paper.renderTo(this._renderTarget=a),this._bindEvents(),this.fire("paperrender")}return this},getRenderContainer:function(){return this._rc},getPaper:function(){return this._paper},getRenderTarget:function(){return this._renderTarget}})}},b[24]={value:function(a,c,d){function e(a,b,c,d){return c=a.createNode(b.data,c,d),b.children.forEach(function(b,d){e(a,b,c,d)}),c}function f(a,b){var c=b.path.split("/");c.shift();var d,f=c.shift();if("root"==f){var g=c.indexOf("data");if(g>-1){f="data";var h=c.splice(g+1);b.dataPath=h}else f="node";d=a.getRoot();for(var i,j;i=c.shift();)"children"!=i&&(void 0!==j&&(d=d.getChild(j)),j=+i);b.index=j,b.node=d}switch(b.express=[f,b.op].join(".")){case"theme.replace":a.useTheme(b.value);break;case"template.replace":a.useTemplate(b.value);break;case"node.add":e(a,b.value,b.node,b.index).renderTree(),a.layout();break;case"node.remove":a.removeNode(b.node.getChild(b.index)),a.layout();break;case"data.add":case"data.replace":case"data.remove":var k,l=b.node.data;for(c=b.dataPath.slice();l&&c.length>1;)k=c.shift(),k in l?l=l[k]:"remove"!=b.op&&(l=l[k]={});l&&(k=c.shift(),l[k]=b.value),"expandState"==k?d.renderTree():d.render(),a.layout()}a.fire("patch",{patch:b})}var g=b.r(17),h=b.r(19);g.extendClass(h,{applyPatches:function(a){for(var b=0;b=0;--c)if(a[c].isAncestorOf(b))return!0;return!1}var c,d=this.getSelectedNodes().slice(0),e=[],f=d.indexOf(this.getRoot());for(~f&&!a&&d.splice(f,1),d.sort(function(a,b){return a.getLevel()-b.getLevel()});c=d.pop();)b(d,c)||e.push(c);return e}}),e.extendClass(h,{isSelected:function(){var a=this.getMinder();return a&&-1!=a.getSelectedNodes().indexOf(this)}})}},b[29]={value:function(a,c,d){function e(a){var b=4096,c=8192,d=16384,e=0;return"string"==typeof a?a.toLowerCase().split(/\+\s*/).forEach(function(a){switch(a){case"ctrl":case"cmd":e|=b;break;case"alt":e|=c;break;case"shift":e|=d;break;default:e|=h[a]}}):((a.ctrlKey||a.metaKey)&&(e|=b),a.altKey&&(e|=c),a.shiftKey&&(e|=d),e|=a.keyCode),e}var f=b.r(17),g=b.r(33),h=b.r(15),i=b.r(19),j=b.r(13);f.extendClass(j,{isShortcutKey:function(a){var b=this.originEvent;return!!b&&e(a)==e(b)}}),i.registerInitHook(function(){this._initShortcutKey()}),f.extendClass(i,{_initShortcutKey:function(){this._bindShortcutKeys()},_bindShortcutKeys:function(){var a=this._shortcutKeys={};this.on("keydown",function(b){for(var c in a)if(a.hasOwnProperty(c)&&b.isShortcutKey(c)){var d=a[c];if(d.__statusCondition&&d.__statusCondition!=this.getStatus())return;d(),b.preventDefault()}})},addShortcut:function(a,b){var c=this._shortcutKeys;a.split(/\|\s*/).forEach(function(a){var d,e=a.split("::");e.length>1&&(a=e[1],d=e[0],b.__statusCondition=d),c[a]=b})},addCommandShortcutKeys:function(a,b){var c=this._commandShortcutKeys||(this._commandShortcutKeys={}),d={};b?d[a]=b:d=a;var e=this;g.each(d,function(a,b){c[b]=a,e.addShortcut(a,function(){-1!==e.queryCommandState(b)&&e.execCommand(b)})})},getCommandShortcutKey:function(a){var b=this._commandShortcutKeys;return b&&b[a]||null},supportClipboardEvent:function(a){return!!a.ClipboardEvent}(window)})}},b[30]={value:function(a,c,d){var e=b.r(17),f=b.r(19),g=~window.location.href.indexOf("status"),h=~window.location.href.indexOf("trace");f.registerInitHook(function(){this._initStatus()}),e.extendClass(f,{_initStatus:function(){this._status="normal",this._rollbackStatus="normal"},setStatus:function(a,b){return"readonly"!=this._status||b?(a!=this._status&&(this._rollbackStatus=this._status,this._status=a,this.fire("statuschange",{lastStatus:this._rollbackStatus,currentStatus:this._status}),g&&(console.log(window.event.type,this._rollbackStatus,"->",this._status),h&&console.trace())),this):this},rollbackStatus:function(){this.setStatus(this._rollbackStatus)},getRollbackStatus:function(){return this._rollbackStatus},getStatus:function(){return this._status}})}},b[31]={value:function(a,c,d){function e(a,b){l[a]=b}var f=b.r(17),g=b.r(33),h=b.r(19),i=b.r(9),j=b.r(21),k=b.r(20),l={};c.register=e,g.extend(h,{getTemplateList:function(){return l}}),f.extendClass(h,function(){var a=h.prototype.getTheme;return{useTemplate:function(a,b){this.setTemplate(a),this.refresh(b||800)},getTemplate:function(){return this._template||"default"},setTemplate:function(a){this._template=a||null},getTemplateSupport:function(a){var b=l[this.getTemplate()];return b&&b[a]},getTheme:function(b){return(this.getTemplateSupport("getTheme")||a).call(this,b)}}}()),f.extendClass(j,function(){var a=j.prototype.getLayout,b=j.prototype.getConnect;return{getLayout:function(){return(this.getMinder().getTemplateSupport("getLayout")||a).call(this,this)},getConnect:function(){return(this.getMinder().getTemplateSupport("getConnect")||b).call(this,this)}}}()),k.register("TemplateModule",{commands:{template:f.createClass("TemplateCommand",{base:i,execute:function(a,b){a.useTemplate(b),a.execCommand("camera")},queryValue:function(a){return a.getTemplate()||"default"}})}})}},b[32]={value:function(a,c,d){function e(a,b){m[a]=b}var f=b.r(17),g=b.r(33),h=b.r(19),i=b.r(21),j=b.r(20),k=b.r(9),l={left:function(a){return 3 in a&&a[3]||1 in a&&a[1]||a[0]},right:function(a){return 1 in a&&a[1]||a[0]},top:function(a){return a[0]},bottom:function(a){return 2 in a&&a[2]||a[0]}},m={};c.register=e,g.extend(h,{getThemeList:function(){return m}}),f.extendClass(h,{themeRegister:e,useTheme:function(a){return this.setTheme(a),this.refresh(800),!0},setTheme:function(a){if(a&&!m[a])throw new Error("Theme "+a+" not exists!");var b=this._theme;this._theme=a||null;var c=this.getRenderTarget();return c&&(c.classList.remove("km-theme-"+b),a&&c.classList.add("km-theme-"+a),c.style.background=this.getStyle("background")),this.fire("themechange",{theme:a}),this},getTheme:function(a){return this._theme||this.getOption("defaultTheme")||"fresh-blue"},getThemeItems:function(a){this.getTheme(a);return m[this.getTheme(a)]},getStyle:function(a,b){var c,d,e,f,h=this.getThemeItems(b);if(a in h)return h[a];if(c=a.split("-"),c.length<2)return null;if(d=c.pop(),(a=c.join("-"))in h){if(e=h[a],g.isArray(e)&&(f=l[d]))return f(e);if(!isNaN(e))return e}return null},getNodeStyle:function(a,b){var c=this.getStyle(a.getType()+"-"+b,a);return null!==c?c:this.getStyle(b,a)}}),f.extendClass(i,{getStyle:function(a){return this.getMinder().getNodeStyle(this,a)}}),j.register("Theme",{defaultOptions:{defaultTheme:"fresh-blue"},commands:{theme:f.createClass("ThemeCommand",{base:k,execute:function(a,b){return a.useTheme(b)},queryValue:function(a){return a.getTheme()||"default"}})}}),h.registerInitHook(function(){this.setTheme()})}},b[33]={value:function(a,c){var d=b.r(17),e={};c.extend=d.Utils.extend.bind(d.Utils),c.each=d.Utils.each.bind(d.Utils),c.uuid=function(a){return e[a]=e[a]?e[a]+1:1,a+e[a]},c.guid=function(){return(1e6*+new Date+Math.floor(1e6*Math.random())).toString(36)},c.trim=function(a){return a.replace(/(^[ \t\n\r]+)|([ \t\n\r]+$)/g,"")},c.keys=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b},c.clone=function(a){return JSON.parse(JSON.stringify(a))},c.comparePlainObject=function(a,b){return JSON.stringify(a)==JSON.stringify(b)},c.encodeHtml=function(a,b){return a?a.replace(b||/[&<">'](?:(amp|lt|quot|gt|#39|nbsp);)?/g,function(a,b){return b?a:{"<":"<","&":"&",'"':""",">":">","'":"'"}[a]}):""},c.clearWhiteSpace=function(a){return a.replace(/[\u200b\t\r\n]/g,"")},c.each(["String","Function","Array","Number","RegExp","Object"],function(a){var b=Object.prototype.toString;c["is"+a]=function(c){return b.apply(c)=="[object "+a+"]"}})}},b[34]={value:function(a,c,d){d.exports=window.kityminder=b.r(35)}},b[35]={value:function(a,c,d){var e={version:b.r(19).version};b.r(33),e.Minder=b.r(19),e.Command=b.r(9),e.Node=b.r(21),b.r(22),b.r(8),e.Event=b.r(13),e.data=b.r(12),b.r(10),e.KeyMap=b.r(15),b.r(29),b.r(30),b.r(23),b.r(28),b.r(14),b.r(16),e.Module=b.r(20),b.r(26),e.Render=b.r(27),e.Connect=b.r(11),e.Layout=b.r(18),e.Theme=b.r(32),e.Template=b.r(31),e.Promise=b.r(25),b.r(7),b.r(24),b.r(42),b.r(43),b.r(44),b.r(45),b.r(46),b.r(47),b.r(48),b.r(50),b.r(49),b.r(51),b.r(52),b.r(53),b.r(54),b.r(55),b.r(56),b.r(57),b.r(58),b.r(59),b.r(60),b.r(61),b.r(62),b.r(63),b.r(64),b.r(68),b.r(65),b.r(67),b.r(66),b.r(40),b.r(36),b.r(37),b.r(38),b.r(39),b.r(41),b.r(75),b.r(78),b.r(77),b.r(76),b.r(78),b.r(80),b.r(79),b.r(81),b.r(0),b.r(1),b.r(2),b.r(3),b.r(4),b.r(5),b.r(6),b.r(69),b.r(73),b.r(70),b.r(72),b.r(71),b.r(74),d.exports=e}},b[36]={value:function(a,c,d){function e(a){function b(a){var b=[],d=a.getLayoutBox(),e=5;return"x"==c?(b.push({type:"up",node:a,area:new f.Box({x:d.x,y:d.top-a.getStyle("margin-top")-e,width:d.width,height:a.getStyle("margin-top")}),path:["M",d.x,d.top-e,"L",d.right,d.top-e]}),b.push({type:"down",node:a,area:new f.Box({x:d.x,y:d.bottom+e,width:d.width,height:a.getStyle("margin-bottom")}),path:["M",d.x,d.bottom+e,"L",d.right,d.bottom+e]})):(b.push({type:"up",node:a,area:new f.Box({x:d.left-a.getStyle("margin-left")-e,y:d.top,width:a.getStyle("margin-left"),height:d.height}),path:["M",d.left-e,d.top,"L",d.left-e,d.bottom]}),b.push({type:"down",node:a,area:new f.Box({x:d.right+e,y:d.top,width:a.getStyle("margin-right"),height:d.height}),path:["M",d.right+e,d.top,"L",d.right+e,d.bottom]})),b}var c="left"==a||"right"==a?"x":"y",d="left"==a||"top"==a?-1:1,e={left:"right",right:"left",top:"bottom",bottom:"top",x:"y",y:"x"};g.register(a,f.createClass({base:g,doLayout:function(b,g){var h=b.getContentBox();if("x"==c?(b.setVertexOut(new f.Point(h[a],h.cy)),b.setLayoutVectorOut(new f.Vector(d,0))):(b.setVertexOut(new f.Point(h.cx,h[a])),b.setLayoutVectorOut(new f.Vector(0,d))),!g.length)return!1;g.forEach(function(b){var g=b.getContentBox();b.setLayoutTransform(new f.Matrix),"x"==c?(b.setVertexIn(new f.Point(g[e[a]],g.cy)),b.setLayoutVectorIn(new f.Vector(d,0))):(b.setVertexIn(new f.Point(g.cx,g[e[a]])),b.setLayoutVectorIn(new f.Vector(0,d)))}),this.align(g,e[a]),this.stack(g,e[c]);var i=this.getBranchBox(g),j=0,k=0;"x"==c?(j=h[a],j+=d*b.getStyle("margin-"+a),j+=d*g[0].getStyle("margin-"+e[a]),k=h.bottom,k-=h.height/2,k-=i.height/2,k-=i.y):(j=h.right,j-=h.width/2,j-=i.width/2,j-=i.x,k=h[a],k+=d*b.getStyle("margin-"+a),k+=d*g[0].getStyle("margin-"+e[a])),this.move(g,j,k)},getOrderHint:b}))}var f=b.r(17),g=b.r(18);["left","right","top","bottom"].forEach(e)}},b[37]={value:function(a,c,d){function e(a){var b="filetree-"+(a>0?"down":"up");g.register(b,f.createClass({base:g,doLayout:function(b,c,d){var e=b.getContentBox(),g=20;if(b.setVertexOut(new f.Point(e.left+g,a>0?e.bottom:e.top)),b.setLayoutVectorOut(new f.Vector(0,a)),c.length){c.forEach(function(a){var b=a.getContentBox();a.setLayoutTransform(new f.Matrix),a.setVertexIn(new f.Point(b.left,b.cy)),a.setLayoutVectorIn(new f.Vector(1,0))}),this.align(c,"left"),this.stack(c,"y");var h=0;h+=e.left,h+=g,h+=c[0].getStyle("margin-left");var i=0;a>0?(i+=e.bottom,i+=b.getStyle("margin-bottom"),i+=c[0].getStyle("margin-top")):(i-=this.getTreeBox(c).bottom,i+=e.top,i-=b.getStyle("margin-top"),i-=c[0].getStyle("margin-bottom")),this.move(c,h,i)}},getOrderHint:function(a){var b=[],c=a.getLayoutBox(),d=a.getLevel()>1?3:5;return b.push({type:"up",node:a,area:new f.Box({x:c.x,y:c.top-a.getStyle("margin-top")-d,width:c.width,height:a.getStyle("margin-top")}),path:["M",c.x,c.top-d,"L",c.right,c.top-d]}),b.push({type:"down",node:a,area:new f.Box({x:c.x,y:c.bottom+d,width:c.width,height:a.getStyle("margin-bottom")}),path:["M",c.x,c.bottom+d,"L",c.right,c.bottom+d]}),b}}))}var f=b.r(17),g=b.r(18);[-1,1].forEach(e)}},b[38]={value:function(a,c,d){var e=b.r(17),f=b.r(18);f.register("fish-bone-master",e.createClass("FishBoneMasterLayout",{base:f,doLayout:function(a,b,c){var d=[],f=[],g=b[0],h=a.getContentBox();if(a.setVertexOut(new e.Point(h.right,h.cy)),a.setLayoutVectorOut(new e.Vector(1,0)),g){var i=(g.getContentBox(),a.getStyle("margin-right")),j=g.getStyle("margin-left"),k=g.getStyle("margin-top"),l=g.getStyle("margin-bottom");b.forEach(function(a,b){a.setLayoutTransform(new e.Matrix);var c=a.getContentBox();b%2?(f.push(a),a.setVertexIn(new e.Point(c.left,c.top)),a.setLayoutVectorIn(new e.Vector(1,1))):(d.push(a),a.setVertexIn(new e.Point(c.left,c.bottom)),a.setLayoutVectorIn(new e.Vector(1,-1)))}),this.stack(d,"x"),this.stack(f,"x"),this.align(d,"bottom"),this.align(f,"top");var m=h.right+i+j,n=h.cy-l-a.getStyle("margin-top"),o=h.cy+k+a.getStyle("margin-bottom");this.move(d,m,n),this.move(f,m+j,o)}}}))}},b[39]={value:function(a,c,d){var e=b.r(17),f=b.r(18);f.register("fish-bone-slave",e.createClass("FishBoneSlaveLayout",{base:f,doLayout:function(a,b,c){var d=this,f=Math.abs,g=.382,h=a.getContentBox(),i=a.getLayoutVectorIn();a.setLayoutVectorOut(i);var j=h.left+h.width*g,k=new e.Point(j,i.y>0?h.bottom:h.top);a.setVertexOut(k);var l=b[0];if(l){var m=l.getContentBox();b.forEach(function(a,b){a.setLayoutTransform(new e.Matrix),a.setLayoutVectorIn(new e.Vector(1,0)),a.setVertexIn(new e.Point(m.left,m.cy))}),this.stack(b,"y"),this.align(b,"left");var n=0,o=0;n+=k.x,a.getLayoutVectorOut().y<0?(o-=this.getTreeBox(b).bottom,o+=a.getContentBox().top,o-=a.getStyle("margin-top"),o-=l.getStyle("margin-bottom")):(o+=a.getContentBox().bottom,o+=a.getStyle("margin-bottom"),o+=l.getStyle("margin-top")),this.move(b,n,o),2==c&&b.forEach(function(a){var b=a.getLayoutTransform(),c=a.getContentBox(),g=b.transformPoint(new e.Point(c.left,0));d.move([a],f(g.y-k.y),0)})}}}))}},b[40]={value:function(a,c,d){var e=b.r(17),f=b.r(18),g=b.r(19);f.register("mind",e.createClass({base:f,doLayout:function(a,b){var c=Math.ceil(a.children.length/2),d=[],f=[];b.forEach(function(a){a.getIndex()=c.length))return c.splice(this.getIndex(),1),c.splice(a,0,this),this}}});var k=g.createClass("ArrangeUpCommand",{base:i,execute:function(a){var b=a.getSelectedNodes();b.sort(e);var c=b.map(function(a){return a.getIndex()});b.forEach(function(a,b){a.arrange(c[b]-1)}),a.layout(300)},queryState:function(a){return a.getSelectedNode()?0:-1}}),l=g.createClass("ArrangeUpCommand",{base:i,execute:function(a){var b=a.getSelectedNodes();b.sort(f);var c=b.map(function(a){return a.getIndex()});b.forEach(function(a,b){a.arrange(c[b]+1)}),a.layout(300)},queryState:function(a){return a.getSelectedNode()?0:-1}}),m=g.createClass("ArrangeCommand",{base:i,execute:function(a,b){var c=a.getSelectedNodes().slice();if(c.length){if(h.getCommonAncestor(c)==c[0].parent){var d=c.map(function(a){return{index:a.getIndex(),node:a}}),e=Math.min.apply(Math,d.map(function(a){return a.index}))>=b;d.sort(function(a,b){return e?b.index-a.index:a.index-b.index}),d.forEach(function(a){a.node.arrange(b)}),a.layout(300)}}},queryState:function(a){return a.getSelectedNode()?0:-1}});j.register("ArrangeModule",{commands:{arrangeup:k,arrangedown:l,arrange:m},contextmenu:[{command:"arrangeup"},{command:"arrangedown"},{divider:!0}],commandShortcutKeys:{arrangeup:"normal::alt+Up",arrangedown:"normal::alt+Down"}})}},b[43]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19),b.r(21),b.r(9)),g=b.r(20),h=b.r(61);g.register("basestylemodule",function(){function a(a,b){return a.getData(b)||a.getStyle(b)}var b=this;return h.registerStyleHook(function(b,c){var d=a(b,"font-weight"),e=a(b,"font-style");[d,e].join("/");c.eachItem(function(a,b){b.setFont({weight:d,style:e})})}),{commands:{bold:e.createClass("boldCommand",{base:f,execute:function(a){var b=a.getSelectedNodes();1==this.queryState("bold")?b.forEach(function(a){a.setData("font-weight").render()}):b.forEach(function(a){a.setData("font-weight","bold").render()}),a.layout()},queryState:function(){var a=b.getSelectedNodes(),c=0;return 0===a.length?-1:(a.forEach(function(a){if(a&&a.getData("font-weight"))return c=1,!1}),c)}}),italic:e.createClass("italicCommand",{base:f,execute:function(a){var b=a.getSelectedNodes();1==this.queryState("italic")?b.forEach(function(a){a.setData("font-style").render()}):b.forEach(function(a){a.setData("font-style","italic").render()}),a.layout()},queryState:function(){var a=b.getSelectedNodes(),c=0;return 0===a.length?-1:(a.forEach(function(a){if(a&&a.getData("font-style"))return c=1,!1}),c)}})},commandShortcutKeys:{bold:"ctrl+b",italic:"ctrl+i"}}})}},b[44]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(21)),g=b.r(9);b.r(20).register("ClipboardModule",function(){function a(b,d){h.push(d),c.appendNode(d,b),d.render(),d.setLayoutOffset(null);var e=d.children.map(function(a){return a.clone()});d.clearChildren();for(var f,g=0;f=e[g];g++)a(d,f)}function b(a){a.length&&(a.sort(function(a,b){return a.getIndex()-b.getIndex()}),d=a.map(function(a){return a.clone()}))}var c=this,d=[],h=[],i=e.createClass("CopyCommand",{base:g,execute:function(a){b(a.getSelectedAncestors(!0)),this.setContentChanged(!1)}}),j=e.createClass("CutCommand",{base:g,execute:function(a){var c=a.getSelectedAncestors();0!==c.length&&(b(c),a.select(f.getCommonAncestor(c),!0),c.slice().forEach(function(b){a.removeNode(b)}),a.layout(300))}}),k=e.createClass("PasteCommand",{base:g,execute:function(b){if(d.length){var c=b.getSelectedNodes();if(!c.length)return;for(var e,f=0;e=d[f];f++)for(var g,i=0;g=c[i];i++)a(g,e.clone());b.select(h,!0),h=[],b.layout(300)}},queryState:function(a){return a.getSelectedNode()?0:-1}});if(c.supportClipboardEvent&&!e.Browser.gecko){var l=function(a){this.fire("beforeCopy",a)},m=function(a){this.fire("beforeCut",a)},n=function(a){this.fire("beforePaste",a)};return{commands:{copy:i,cut:j,paste:k},clipBoardEvents:{copy:l.bind(c),cut:m.bind(c),paste:n.bind(c)},sendToClipboard:b}}return{commands:{copy:i,cut:j,paste:k},commandShortcutKeys:{copy:"normal::ctrl+c|",cut:"normal::ctrl+x",paste:"normal::ctrl+v"},sendToClipboard:b}})}},b[45]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(21)),g=b.r(9),h=b.r(20),i=e.createClass("MoveToParentCommand",{base:g,execute:function(a,b,c){for(var d,e=0;ed&&"up"==a.type&&b--,a.node.setLayoutOffset(null),this._minder.execCommand("arrange",b),this._renderOrderHint(null)}else this._minder.fire("savescene");this._minder.layout(300),this._leaveDragMode(),this._minder.fire("contentchange")}},_enterDragMode:function(){return this._calcDragSources(),this._dragSources.length?(this._fadeDragSources(.5),this._calcDropTargets(),this._calcOrderHints(),this._dragMode=!0,this._minder.setStatus("dragtree"),!0):(this._startPosition=null,!1)},_calcDragSources:function(){this._dragSources=this._minder.getSelectedAncestors()},_fadeDragSources:function(a){var b=this._minder;this._dragSources.forEach(function(c){c.getRenderContainer().setOpacity(a,200),c.traverse(function(c){a<1?b.detachNode(c):b.attachNode(c)},!0)})},_calcDropTargets:function(){function a(b,c){var d,e=[];return e.push(c),c.getChildren().forEach(function(c){for(d=0;d.5*Math.min(d(b),d(c))||(a.width+1>=Math.min(b.width,c.width)||a.height+1>=Math.min(b.height,c.height))))}),this._renderDropHint(this._dropSucceedTarget),!!this._dropSucceedTarget},_orderTest:function(){return this._orderSucceedHint=this._boxTest(this._orderHints,function(a){return a.area}),this._renderOrderHint(this._orderSucceedHint),!!this._orderSucceedHint},_renderDropHint:function(a){this._dropHinter.render(a)},_renderOrderHint:function(a){this._orderHinter.render(a)},preventDragMove:function(){this._startPosition=null}});h.register("DragTree",function(){var a;return{init:function(){a=new l(this),window.addEventListener("mouseup",function(){a.dragEnd()})},events:{"normal.mousedown inputready.mousedown":function(b){b.originEvent.button||b.getTargetNode()&&b.getTargetNode()!=this.getRoot()&&a.dragStart(b.getPosition())},"normal.mousemove dragtree.mousemove":function(b){a.dragMove(b.getPosition())},"normal.mouseup dragtree.beforemouseup":function(b){a.dragEnd(),b.preventDefault()},statuschange:function(b){"textedit"==b.lastStatus&&"normal"==b.currentStatus&&a.preventDragMove()}},commands:{movetoparent:i}}})}},b[46]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(15),h=b.r(21),i=b.r(9),j=b.r(20),k=b.r(27);j.register("Expand",function(){var a=this,b="expandState",c="collapse";e.extendClass(h,{expand:function(){return this.setData(b,"expand"),this},collapse:function(){return this.setData(b,c),this},isExpanded:function(){return this.getData(b)!==c&&(this.isRoot()||this.parent.isExpanded())},isCollapsed:function(){return!this.isExpanded()}});var d=e.createClass("ExpandCommand",{base:i,execute:function(a,b){var c=a.getSelectedNode();if(c){for(b&&(c=c.parent);c.parent;)c.expand(),c=c.parent;c.renderTree(),a.layout(100)}},queryState:function(a){var b=a.getSelectedNode();return!b||b.isRoot()||b.isExpanded()?-1:0}}),j=e.createClass("ExpandToLevelCommand",{base:i,execute:function(a,b){a.getRoot().traverse(function(a){a.getLevel()c&&e>f?(a=c,b=a/e):b>d&&(b=d,a=b*e),{width:0|a,height:0|b}}return{defaultOptions:{maxImageWidth:200,maxImageHeight:200},commands:{image:e.createClass("ImageCommand",{base:f,execute:function(c,d,e){var f=c.getSelectedNodes();a(d,function(a,g){f.forEach(function(f){var h=b(a,g,c.getOption("maxImageWidth"),c.getOption("maxImageHeight"));f.setData("image",d),f.setData("imageTitle",d&&e),f.setData("imageSize",d&&h),f.render()}),c.fire("saveScene"),c.layout(300)})},queryState:function(a){var b=a.getSelectedNodes(),c=0;return 0===b.length?-1:(b.forEach(function(a){if(a&&a.getData("image"))return c=0,!1}),c)},queryValue:function(a){var b=a.getSelectedNode();return{url:b.getData("image"),title:b.getData("imageTitle")}}})},renderers:{top:e.createClass("ImageRenderer",{base:h,create:function(a){return new e.Image(a.getData("image"))},shouldRender:function(a){return a.getData("image")},update:function(a,b,c){var d=b.getData("image"),f=b.getData("imageTitle"),g=b.getData("imageSize"),h=b.getStyle("space-top");if(g){f&&a.node.setAttributeNS("http://www.w3.org/1999/xlink","title",f);var i=c.cx-g.width/2,j=c.y-g.height-h;return a.setUrl(d).setX(0|i).setY(0|j).setWidth(0|g.width).setHeight(0|g.height),new e.Box(0|i,0|j,0|g.width,0|g.height)}}})}}})}},b[51]={value:function(a,c,d){var e=(b.r(17),b.r(33),b.r(15),b.r(19),b.r(21),b.r(9),b.r(20));b.r(27);e.register("KeyboardModule",function(){function a(a){var b,d=[];a.traverse(function(a){b=a.getLayoutBox(),b.width&&b.height&&d.push({left:b.x,top:b.y,right:b.x+b.width,bottom:b.y+b.height,width:b.width,height:b.height,node:a})});for(var e=0;ef.right&&(!g.right||ef.bottom&&(!g.down||e>1].getGlobalLayoutTransform()),a.select(e,!0),a.layout(600)},queryState:function(a){var b=a.getSelectedNodes();if(!b.length)return-1;var c=b[0].parent;if(!c)return-1;for(var d=1;d>>c|d<<32-c},b=function(a,b,j,k,l){var m=d+f[c][a]%16,n=d+(f[c][a]>>4);b%=4,j=4+j%4,k=8+k%4,l=12+l%4,h[b]+=h[j]+(i[m]^e[n%16]),g(l,b,16),h[k]+=h[l],g(j,k,12),h[b]+=h[j]+(i[n]^e[m%16]),g(l,b,8),h[k]+=h[l],g(j,k,7)},function(f,g){g instanceof Array&&4===g.length||(g=[0,0,0,0]);var k,l,m,n,o,p,q,r;for(l=a.slice(0),k=e.slice(0,8),c=0;c<4;c+=1)k[c]^=g[c];if(m=16*f.length,o=m%512>446||m%512==0?0:m,m%512==432)f+="老";else{for(f+="耀";f.length%32!=27;)f+="\0";f+=""}for(i=[],r=0;r=0;c--)d=b.charCodeAt(c),e^=(e<<5)+d+(e>>2);return 2147483647&e},getResourceColor:function(a){var c,d=this._getResourceColorIndexMapping();return Object.prototype.hasOwnProperty.call(d,a)||(c=this._getNextResourceColorIndex(),d[a]=c),b[d[a]]||e.Color.createHSL(Math.floor(this.getHashCode(a)/2147483647*359),100,85)},getUsedResource:function(){var a,b=this._getResourceColorIndexMapping(),c=[];for(a in b)Object.prototype.hasOwnProperty.call(b,a)&&c.push(a);return c},_getNextResourceColorIndex:function(){var a,c,d,e=this._getResourceColorIndexMapping();c=[];for(a in e)Object.prototype.hasOwnProperty.call(e,a)&&c.push(e[a]);for(d=0;dv)for(var w=u-v;w--;)s=(new e.Text).setAttr("text-rendering","inherit"),e.Browser.ie||e.Browser.edge?s.setVerticalAlign("top"):s.setAttr("dominant-baseline","text-before-edge"),a.addItem(s);for(q=0,s;t=g[q],s=a.getItem(q);q++)s.setContent(t),(e.Browser.ie||e.Browser.edge)&&s.fixPosition();this.setTextStyle(b,a);var x=b.getText()+["font-size","font-name","font-weight","font-style"].map(c).join("/");return b._currentTextHash==x&&b._currentTextGroupBox?b._currentTextGroupBox:(b._currentTextHash=x,function(){a.eachItem(function(a,b){var c=m+a*i*h;b.setY(c);var d=b.getBoundaryBox();o=o.merge(new e.Box(0,c,d.height&&d.width||1,i))});var c=new e.Box(p(o.x),p(o.y),p(o.width),p(o.height));return b._currentTextGroupBox=c,c})},setTextStyle:function(a,b){l._styleHooks.forEach(function(c){c(a,b)})}}),m=e.createClass({base:h,execute:function(a,b){var c=a.getSelectedNode();c&&(c.setText(b),c.render(),a.layout())},queryState:function(a){return 1==a.getSelectedNodes().length?0:-1},queryValue:function(a){var b=a.getSelectedNode();return b?b.getText():null}});f.extend(l,{_styleHooks:[],registerStyleHook:function(a){l._styleHooks.push(a)}}),e.extendClass(g,{getTextGroup:function(){return this.getRenderer("TextRenderer").getRenderShape()}}),i.register("text",{commands:{text:m},renderers:{center:l}}),d.exports=l}},b[62]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19),b.r(21),b.r(9)),g=b.r(20),h=(b.r(27),e.createClass("ViewDragger",{constructor:function(a){this._minder=a,this._enabled=!1,this._bind();var b=this;this._minder.getViewDragger=function(){return b},this.setEnabled(!1)},isEnabled:function(){return this._enabled},setEnabled:function(a){var b=this._minder.getPaper();b.setStyle("cursor",a?"pointer":"default"),b.setStyle("cursor",a?"-webkit-grab":"default"),this._enabled=a},timeline:function(){return this._moveTimeline},move:function(a,b){var c=(this._minder,this.getMovement().offset(a));this.moveTo(c,b)},moveTo:function(a,b){if(b){var c=this;return this._moveTimeline&&this._moveTimeline.stop(),this._moveTimeline=this._minder.getRenderContainer().animate(new e.Animator(this.getMovement(),a,function(a,b){c.moveTo(b)}),b,"easeOutCubic").timeline(),this._moveTimeline.on("finish",function(){c._moveTimeline=null}),this}this._minder.getRenderContainer().setTranslate(a.round()),this._minder.fire("viewchange")},getMovement:function(){var a=this._minder.getRenderContainer().transform.translate;return a?a[0]:new e.Point},getView:function(){var a=this._minder,b=a._lastClientSize||{width:a.getRenderTarget().clientWidth,height:a.getRenderTarget().clientHeight},c=this.getMovement(),d=new e.Box(0,0,b.width,b.height);return a.getPaper().getViewPortMatrix().inverse().translate(-c.x,-c.y).transformBox(d)},_bind:function(){function a(a){if(d){d=null,a.stopPropagation(),c&&(b.setEnabled(!1),c=!1,"hand"==b._minder.getStatus()&&b._minder.rollbackStatus());b._minder.getPaper().setStyle("cursor","hand"==b._minder.getStatus()?"-webkit-grab":"default"),b._minder.fire("viewchanged")}}var b=this,c=!1,d=null,f=null;this._minder.on("normal.mousedown normal.touchstart inputready.mousedown inputready.touchstart readonly.mousedown readonly.touchstart",function(a){2==a.originEvent.button&&a.originEvent.preventDefault(),(a.getTargetNode()==this.getRoot()||2==a.originEvent.button||a.originEvent.altKey)&&(d=a.getPosition("view"),c=!0)}).on("normal.mousemove normal.touchmove readonly.mousemove readonly.touchmove inputready.mousemove inputready.touchmove",function(a){if("touchmove"==a.type&&a.preventDefault(),c){if(e.Vector.fromPoints(d,a.getPosition("view")).length()>10){this.setStatus("hand",!0);b._minder.getPaper().setStyle("cursor","-webkit-grabbing")}}}).on("hand.beforemousedown hand.beforetouchstart",function(a){if(b.isEnabled()){d=a.getPosition("view"),a.stopPropagation();b._minder.getPaper().setStyle("cursor","-webkit-grabbing")}}).on("hand.beforemousemove hand.beforetouchmove",function(a){if(d){f=a.getPosition("view");var c=e.Vector.fromPoints(d,f);b.move(c),a.stopPropagation(),a.preventDefault(),a.originEvent.preventDefault(),d=f}}).on("mouseup touchend",a),window.addEventListener("mouseup",a),this._minder.on("contextmenu",function(a){a.preventDefault()})}}));g.register("View",function(){var a=e.createClass("ToggleHandCommand",{base:f,execute:function(a){"hand"!=a.getStatus()?a.setStatus("hand",!0):a.rollbackStatus(),this.setContentChanged(!1)},queryState:function(a){return"hand"==a.getStatus()?1:0},enableReadOnly:!0}),b=e.createClass("CameraCommand",{base:f,execute:function(a,b){b=b||a.getRoot();var c=a.getPaper().getViewPort(),d=b.getRenderContainer().getRenderBox("view"),f=c.center.x-d.x-d.width/2,g=c.center.y-d.y,h=a._viewDragger,i=a.getOption("viewAnimationDuration");h.move(new e.Point(f,g),i),this.setContentChanged(!1)},enableReadOnly:!0}),c=e.createClass("MoveCommand",{base:f,execute:function(a,b,c){var d=a._viewDragger,f=a._lastClientSize;if(void 0!==c&&null!==c||(c=a.getOption("viewAnimationDuration")),"string"!=typeof b){var g=d.getMovement(),h=g.x,i=g.y;void 0!==b.x&&(h=b.x),void 0!==b.y&&(i=b.y),d.moveTo(new e.Point(h,i),c)}else switch(b){case"auto":var j=d._minder.getRenderContainer().node.getBBox(),h=40;j.widthg.right?j+=g.right-h.right-i:h.leftg.bottom&&(k+=g.bottom-h.bottom-i),h.top=100?"optimize-speed":"geometricPrecision";h.getRenderContainer().setAttr("text-rendering",a)}function b(a){var b=a.shapeNode,c=b.getCTM(),d=new e.Matrix(c.a,c.b,c.c,c.d,.5+(0|c.e),.5+(0|c.f));b.setAttribute("transform","matrix("+d.toString()+")")}function c(b,c){var f=b.getPaper();f.getViewPort();if(c){a();var g=b.getOption("zoomAnimationDuration");if(b.getRoot().getComplex()>200||!g)b._zoomValue=c,b.zoom(c),b.fire("viewchange");else{var h=new e.Animator({beginValue:b._zoomValue,finishValue:c,setter:function(a,b){a.zoom(b)}});b._zoomValue=c,d&&d.pause(),d=h.start(b,g,"easeInOutSine"),d.on("finish",function(){b.fire("viewchange")})}b.fire("zoom",{zoom:c})}}var d,h=this;e.extendClass(f,{zoom:function(a){var c=this.getPaper(),d=c.getViewPort();d.zoom=a/100,d.center={x:d.center.x,y:d.center.y},c.setViewPort(d),100==a&&b(c)},getZoomValue:function(){return this._zoomValue}});var i=e.createClass("Zoom",{base:g,execute:c,queryValue:function(a){return a._zoomValue}}),j=e.createClass("ZoomInCommand",{base:g,execute:function(a){c(a,this.nextValue(a))},queryState:function(a){return+!this.nextValue(a)},nextValue:function(a){var b,c=a.getOption("zoom");for(b=0;ba._zoomValue)return c[b];return 0},enableReadOnly:!0}),k=e.createClass("ZoomOutCommand",{base:g,execute:function(a){c(a,this.nextValue(a))},queryState:function(a){return+!this.nextValue(a)},nextValue:function(a){var b,c=a.getOption("zoom");for(b=c.length-1;b>=0;b--)if(c[b]100&&(clearTimeout(this._wheelZoomTimeout),this._wheelZoomTimeout=setTimeout(function(){c.getPaper()._zoom;b>0?c.execCommand("zoomin"):b<0&&c.execCommand("zoomout")},100),a.originEvent.preventDefault())}}},commandShortcutKeys:{zoomin:"ctrl+=",zoomout:"ctrl+-"}}})}},b[64]={value:function(a,c,d){b.r(12).registerProtocol("json",d.exports={fileDescription:"KityMinder 格式",fileExtension:".km",dataType:"text",mineType:"application/json",encode:function(a){return JSON.stringify(a)},decode:function(a){return JSON.parse(a)}})}},b[65]={value:function(a,c,d){function e(a){return f(a,1).join("\n")}function f(a,b){var c=[];b=b||1;var d=g(b);c.push(d+" "+a.data.text),c.push(o);var e=a.data.note;if(e){var h=/^#/.test(e);h&&(c.push(p),e=e.replace(/^#+/gm,function(a){return d+a})),c.push(e),h&&c.push(q),c.push(o)}return a.children&&a.children.forEach(function(a){c=c.concat(f(a,b+1))}),c}function g(a){for(var b="";a--;)b+="#";return b}function h(a){var b,c,d,e,f,g,h,m={};a=a.replace(/^(.+)\n={3,}/,function(a,b){return"# "+b}),b=a.split(n);for(var o=0;oe+1?f&&j(f,c):(e=d.level,f=i(d.content,m[e-1]),m[e]=f));return l(m[1]),m[1]}function i(a,b){var c={data:{text:a,note:""}};return b&&(b.children?b.children.push(c):b.children=[c]),c}function j(a,b){a.data.note+=b+"\n"}function k(a){var b=/^(#+)?\s*(.*)$/.exec(a);return{level:b[1]&&b[1].length||null,content:b[2],noteStart:a==p,noteClose:a==q,codeBlock:/^\s*```/.test(a)}}function l(a){if(/\S/.test(a.data.note)){for(var b=a.data.note.split("\n");b.length&&!/\S/.test(b[0]);)b.shift();for(;b.length&&!/\S/.test(b[b.length-1]);)b.pop();a.data.note=b.join("\n")}else a.data.note=null,delete a.data.note;a.children&&a.children.forEach(l)}var m=b.r(12),n=/\r\n|\r|\n/,o="",p="\x3c!--Note--\x3e",q="\x3c!--/Note--\x3e";m.registerProtocol("markdown",d.exports={fileDescription:"Markdown/GFM 格式",fileExtension:".md",mineType:"text/markdown",dataType:"text",encode:function(a){return e(a.root)},decode:function(a){return h(a)}})}},b[66]={value:function(a,c,d){function e(a,b){return new k(function(b,c){var d=document.createElement("img");d.onload=function(){b({element:this,x:a.x,y:a.y,width:a.width,height:a.height})},d.onerror=function(a){c(a)},d.crossOrigin="anonymous",d.src=a.url})}function f(a,b){return k(function(b,c){var d=new XMLHttpRequest;d.open("GET",a.url+"?_="+Date.now(),!0),d.responseType="blob",d.onreadystatechange=function(){if(4===d.readyState&&200===d.status){var c=d.response,e=document.createElement("img");e.src=l.createObjectURL(c),e.onload=function(){l.revokeObjectURL(e.src),b({element:e,x:a.x,y:a.y,width:a.width,height:a.height})}}},d.send()})}function g(a){function b(c){var d=c.data;if(d.image){a.renderNode(c);var d=c.data,e=d.image,f=d.imageSize,g=c.getRenderBox("ImageRenderer",a.getRenderContainer()),h={url:e,width:f.width,height:f.height,x:-j.getBoundaryBox().x+g.x,y:-j.getBoundaryBox().y+g.y};o.push(h)}if("collapse"!==d.expandState)for(var i=c.getChildren(),k=0;kt.width?c.width:t.width,v=c&&c.height&&c.height>t.height?c.height:t.height,w=c&&c.width&&c.width>t.width?(c.width-t.width)/2:0,x=c&&c.height&&c.height>t.height?(c.height-t.height)/2:0,y=t.dataUrl,z=t.imagesInfo,A=20;if(o.width=u+2*A,o.height=v+2*A,r){return e({url:r[1]}).then(function(a){return d(p,p.createPattern(a.element,"repeat")),n()})}return d(p,s.toString()),n()}var i=b.r(17),j=b.r(12),k=b.r(25),l=window.URL||window.webkitURL||window;j.registerProtocol("png",d.exports={fileDescription:"PNG 图片",fileExtension:".png",mineType:"image/png",dataType:"base64",encode:h})}},b[67]={value:function(a,c,d){function e(a,b,c){function d(a,b){var c;try{c=b.getScreenCTM().inverse()}catch(a){throw new Error("Can not inverse source element' ctm.")}return c.multiply(a.getScreenCTM())}function e(a,b){b instanceof Function||(b=function(){});for(var c=[],d=[],e=[],f=0,g=a.length;f0?"right":"left":a.parent.getLayout()},getConnect:function(a){return 1==a.getLevel()?"arc":"under"}})}},b[70]={value:function(a,c,d){b.r(31).register("filetree",{getLayout:function(a){return a.getData("layout")?a.getData("layout"):a.isRoot()?"bottom":"filetree-down"},getConnect:function(a){return 1==a.getLevel()?"poly":"l"}})}},b[71]={value:function(a,c,d){b.r(31).register("fish-bone",{getLayout:function(a){if(a.getData("layout"))return a.getData("layout");var b=a.getLevel();return 0===b?"fish-bone-master":1===b?"fish-bone-slave":a.getLayoutPointPreview().y>0?"filetree-up":"filetree-down"},getConnect:function(a){switch(a.getLevel()){case 1:return"fish-bone-master";case 2:return"line";default:return"l"}}})}},b[72]={value:function(a,c,d){b.r(31).register("right",{getLayout:function(a){return a.getData("layout")||"right"},getConnect:function(a){return 1==a.getLevel()?"arc":"bezier"}})}},b[73]={value:function(a,c,d){b.r(31).register("structure",{getLayout:function(a){return a.getData("layout")||"bottom"},getConnect:function(a){return"poly"}})}},b[74]={value:function(a,c,d){b.r(31).register("tianpan",{getLayout:function(a){return a.getData("layout")?a.getData("layout"):0===a.getLevel()?"tianpan":a.parent.getLayout()},getConnect:function(a){return"arc_tp"}})}},b[75]={value:function(a,c,d){var e=b.r(32);["classic","classic-compact"].forEach(function(a){var b="classic-compact"==a;e.register(a,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":b?[10,25]:[15,25],"root-margin":b?[15,25]:[30,100],"root-radius":30,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":b?[5,15]:[6,20],"main-margin":b?[5,10]:20,"main-radius":10,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"white","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":[5,10],"sub-margin":b?[5,10]:[15,20],"sub-tree-margin":30,"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})})}},b[76]={value:function(a,c,d){b.r(32).register("fish",{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":[35,35],"root-margin":30,"root-radius":100,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":[6,20],"main-margin":[20,20],"main-radius":5,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"black","sub-background":"white","sub-stroke":"white","sub-font-size":12,"sub-padding":[5,10],"sub-margin":[10],"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":3,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})}},b[77]={value:function(a,c,d){function e(a,b,c){return h.Color.createHSL(a,b,c)}function f(a,b){return{background:"#fbfbfb","root-color":"white","root-background":e(a,37,60),"root-stroke":e(a,37,60),"root-font-size":16,"root-padding":b?[6,12]:[12,24],"root-margin":b?10:[30,100],"root-radius":5,"root-space":10,"main-color":"black","main-background":e(a,33,95),"main-stroke":e(a,37,60),"main-stroke-width":1,"main-font-size":14,"main-padding":[6,20],"main-margin":b?8:20,"main-radius":3,"main-space":5,"sub-color":"black","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":b?[3,5]:[5,10],"sub-margin":b?[4,8]:[15,20],"sub-radius":5,"sub-space":5,"connect-color":e(a,37,60),"connect-width":1,"connect-radius":5,"selected-stroke":e(a,26,30),"selected-stroke-width":"3","blur-selected-stroke":e(a,10,60),"marquee-background":e(a,100,80).set("a",.1),"marquee-stroke":e(a,37,60),"drop-hint-color":e(a,26,35),"drop-hint-width":5,"order-hint-area-color":e(a,100,30).set("a",.5),"order-hint-path-color":e(a,100,25),"order-hint-path-width":1,"text-selection-color":e(a,100,20),"line-height":1.5}}var g,h=b.r(17),i=b.r(32),j={red:0,soil:25,green:122,blue:204,purple:246,pink:334};for(g in j)i.register("fresh-"+g,f(j[g])),i.register("fresh-"+g+"-compat",f(j[g],!0))}},b[78]={value:function(a,c,d){var e=b.r(32);["snow","snow-compact"].forEach(function(a){var b="snow-compact"==a;e.register(a,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":b?[5,10]:[15,25],"root-margin":b?15:30,"root-radius":5,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":b?[4,10]:[6,20],"main-margin":b?[5,10]:[20,40],"main-radius":5,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"black","sub-background":"white","sub-stroke":"white","sub-font-size":12,"sub-padding":[5,10],"sub-margin":b?[5,10]:[10,20],"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})})}},b[79]={value:function(a,c,d){var e=b.r(32);["tianpan","tianpan-compact"].forEach(function(a){var b="tianpan-compact"==a;e.register(a,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":25,"root-padding":b?15:20,"root-margin":b?[15,25]:100,"root-radius":30,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","root-shape":"circle","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":15,"main-padding":b?10:12,"main-margin":b?10:12,"main-radius":10,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","main-shape":"circle","sub-color":"#333","sub-background":"#99ca6a","sub-stroke":"#a4c5c0","sub-font-size":13,"sub-padding":5,"sub-margin":b?6:10,"sub-tree-margin":30,"sub-radius":5,"sub-space":5,"sub-shadow":"rgba(0, 0, 0, .25)","sub-shape":"circle","connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.4})})}},b[80]={value:function(a,c,d){b.r(32).register("wire",{background:"black",color:"#999",stroke:"none",padding:10,margin:20,"font-size":14,"connect-color":"#999","connect-width":1,"selected-background":"#999","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})}},b[81]={value:function(a,c,d){var e=b.r(32);e.register("wiz",{background:"#fbfbfb","root-color":"white","root-background":"rgb(115, 161, 191)","root-stroke":"rgb(115, 161, 191)","root-font-size":16,"root-padding":[12,24],"root-margin":[30,100],"root-radius":5,"root-space":10,"main-color":"black","main-background":"rgb(238, 243, 246)","main-stroke":"rgb{115, 161, 191)","main-stroke-width":1,"main-font-size":14,"main-padding":[6,20],"main-margin":20,"main-radius":3,"main-space":5,"sub-color":"black","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":[5,10],"sub-margin":[15,20],"sub-radius":5,"sub-space":5,"connect-color":"rgb(115, 161, 191)","connect-width":1,"connect-radius":5,"selected-stroke":"rgb(57, 80, 96)","selected-stroke-width":"3","blur-selected-stroke":"rgb(143, 155, 163)","marquee-background":"rgba(153, 214, 255, 0.1)","marquee-stroke":"rgb(115, 161 191)","drop-hint-color":"rgb(66, 94, 112)","drop-hint-width":5,"order-hint-area-color":"rgba(0, 92, 153, 0.5)","order-hint-path-color":"rgb(0, 76, 128)","order-hint-path-width":1,"text-selection-color":"rgb(0, 61, 102)","line-height":1.5,"expander-outline-stroke":"gray","expander-outline-fill":"white","expander-sign-stroke":"gray"}),e.register("wiz-windows-night",{background:"#23272e","root-color":"#2d3138","root-background":"#97a3b8","root-stroke":"#97a3b8","root-font-size":16,"root-padding":[12,24],"root-margin":[30,100],"root-radius":5,"root-space":10,"main-color":"#97a3b8","main-background":"#2b2f38","main-stroke":"#2b2f38","main-stroke-width":1,"main-font-size":14,"main-padding":[6,20],"main-margin":20,"main-radius":3,"main-space":5,"sub-color":"#97a3b8","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":[5,10],"sub-margin":[15,20],"sub-radius":5,"sub-space":5,"connect-color":"#404959","connect-width":1,"connect-radius":5,"selected-stroke":"#448aff","selected-stroke-width":"3","blur-selected-stroke":"#627088","marquee-background":"rgba(153, 214, 255, 0.1)","marquee-stroke":"rgb(115, 161 191)","drop-hint-color":"rgb(66, 94, 112)","drop-hint-width":5,"order-hint-area-color":"rgba(0, 92, 153, 0.5)","order-hint-path-color":"rgb(0, 76, 128)","order-hint-path-width":1,"text-selection-color":"rgb(0, 61, 102)","line-height":1.5,"expander-outline-stroke":"#97a3b8","expander-outline-fill":"#97a3b8","expander-sign-stroke":"#2d3138"}),e.register("wiz-mac-night",{background:"#272727","root-color":"#000000","root-background":"#848484","root-stroke":"#848484","root-font-size":16,"root-padding":[12,24],"root-margin":[30,100],"root-radius":5,"root-space":10,"main-color":"#a6a6a6","main-background":"#333333","main-stroke":"#333333","main-stroke-width":1,"main-font-size":14,"main-padding":[6,20],"main-margin":20,"main-radius":3,"main-space":5,"sub-color":"#a6a6a6","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":[5,10],"sub-margin":[15,20],"sub-radius":5,"sub-space":5,"connect-color":"#474747","connect-width":1,"connect-radius":5,"selected-stroke":"#448aff","selected-stroke-width":"3","blur-selected-stroke":"#5c5c5c","marquee-background":"rgba(153, 214, 255, 0.1)","marquee-stroke":"rgb(115, 161 191)","drop-hint-color":"rgb(66, 94, 112)","drop-hint-width":5,"order-hint-area-color":"rgba(0, 92, 153, 0.5)","order-hint-path-color":"rgb(0, 76, 128)","order-hint-path-width":1,"text-selection-color":"rgb(0, 61, 102)","line-height":1.5,"expander-outline-stroke":"#848484","expander-outline-fill":"#848484","expander-sign-stroke":"#000000"}),e.register("wiz-ios-night",{background:"#1f2126","root-color":"#353c47","root-background":"#7990b6","root-stroke":"#7990b6","root-font-size":16,"root-padding":[12,24],"root-margin":[30,100],"root-radius":5,"root-space":10,"main-color":"#7990b6","main-background":"#32353e","main-stroke":"#32353e","main-stroke-width":1,"main-font-size":14,"main-padding":[6,20],"main-margin":20,"main-radius":3,"main-space":5,"sub-color":"#7990b6","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":[5,10],"sub-margin":[15,20],"sub-radius":5,"sub-space":5,"connect-color":"rgba(68, 138, 255, .2)","connect-width":1,"connect-radius":5,"selected-stroke":"#448aff","selected-stroke-width":"3","blur-selected-stroke":"#536178","marquee-background":"rgba(153, 214, 255, 0.1)","marquee-stroke":"rgb(115, 161 191)","drop-hint-color":"rgb(66, 94, 112)","drop-hint-width":5,"order-hint-area-color":"rgba(0, 92, 153, 0.5)","order-hint-path-color":"rgb(0, 76, 128)","order-hint-path-width":1,"text-selection-color":"rgb(0, 61, 102)","line-height":1.5,"expander-outline-stroke":"#7990b6","expander-outline-fill":"#7990b6","expander-sign-stroke":"#353c47"}),e.register("wiz-android-night",{background:"#1f2126","root-color":"#455a64","root-background":"#7990b6","root-stroke":"#7990b6","root-font-size":16,"root-padding":[12,24],"root-margin":[30,100],"root-radius":5,"root-space":10,"main-color":"#7990b6","main-background":"#353c47","main-stroke":"#353c47","main-stroke-width":1,"main-font-size":14,"main-padding":[6,20],"main-margin":20,"main-radius":3,"main-space":5,"sub-color":"#7990b6","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":[5,10],"sub-margin":[15,20],"sub-radius":5,"sub-space":5,"connect-color":"#273d62","connect-width":1,"connect-radius":5,"selected-stroke":"#448aff","selected-stroke-width":"3","blur-selected-stroke":"#536178","marquee-background":"rgba(153, 214, 255, 0.1)","marquee-stroke":"rgb(115, 161 191)","drop-hint-color":"rgb(66, 94, 112)","drop-hint-width":5,"order-hint-area-color":"rgba(0, 92, 153, 0.5)","order-hint-path-color":"rgb(0, 76, 128)","order-hint-path-width":1,"text-selection-color":"rgb(0, 61, 102)","line-height":1.5,"expander-outline-stroke":"#7990b6","expander-outline-fill":"#7990b6","expander-sign-stroke":"#455a64"})}};var c={"expose-kityminder":34};a("expose-kityminder")}(); \ No newline at end of file +!function(){function a(a){b.r([c[a]])}var b={r:function(a){if(b[a].inited)return b[a].value;if("function"!=typeof b[a].value)return b[a].inited=!0,b[a].value;var c={exports:{}},d=b[a].value(null,c.exports,c);if(b[a].inited=!0,b[a].value=d,void 0!==d)return d;for(var e in c.exports)if(c.exports.hasOwnProperty(e))return b[a].inited=!0,b[a].value=c.exports,c.exports}};b[0]={value:function(a,c,d){var e=b.r(17),f=b.r(11),g=(new e.Marker).pipe(function(){var a=7,b=new e.Circle(a-1);this.addShape(b),this.setRef(a-1,0).setViewBox(-a,-a,a+a,a+a).setWidth(a).setHeight(a),this.dot=b,this.node.setAttribute("markerUnits","userSpaceOnUse")});f.register("arc",function(a,b,c,d,f){var h,i,j,k=a.getLayoutBox(),l=b.getLayoutBox(),m=Math.abs,n=[],o=k.x>l.x?"right":"left";a.getMinder().getPaper().addResource(g),h=new e.Point(l.cx,l.cy),i="left"==o?new e.Point(k.right+2,k.cy):new e.Point(k.left-2,k.cy),j=e.Vector.fromPoints(h,i),n.push("M",h),n.push("A",m(j.x),m(j.y),0,0,j.x*j.y>0?0:1,i),c.setMarker(g),g.dot.fill(f),c.setPathData(n)})}},b[1]={value:function(a,c,d){var e=b.r(17),f=b.r(11),g=(new e.Marker).pipe(function(){var a=7,b=new e.Circle(a-1);this.addShape(b),this.setRef(a-1,0).setViewBox(-a,-a,a+a,a+a).setWidth(a).setHeight(a),this.dot=b,this.node.setAttribute("markerUnits","userSpaceOnUse")});f.register("arc_tp",function(a,b,c,d,f){var h=a.getLayoutBox(),i=b.getLayoutBox(),j=a.getIndex(),k=b.getChildren()[j+1];a.getIndex()>0&&(i=b.getChildren()[j-1].getLayoutBox());var l,m,n=(Math.abs,[]);h.x,i.x;a.getMinder().getPaper().addResource(g),l=new e.Point(i.cx,i.cy),m=new e.Point(h.cx,h.cy);var o=Math.sqrt(Math.pow(l.x-m.x,2)+Math.pow(l.y-m.y,2));if(o=0==a.getIndex()?.4*o:o,e.Vector.fromPoints(l,m),n.push("M",l),n.push("A",o,o,0,0,1,m),c.setMarker(g),g.dot.fill(f),c.setPathData(n),k&&k.getConnection()){var p=k.getConnection(),q=k.getLayoutBox(),r=new e.Point(q.cx,q.cy),s=Math.sqrt(Math.pow(m.x-r.x,2)+Math.pow(m.y-r.y,2));n=[],n.push("M",m),n.push("A",s,s,0,0,1,r),p.setMarker(g),g.dot.fill(f),p.setPathData(n)}})}},b[2]={value:function(a,c,d){b.r(17);b.r(11).register("bezier",function(a,b,c){var d=b.getLayoutVertexOut(),e=a.getLayoutVertexIn(),f=b.getLayoutVectorOut().normalize(),g=Math.round,h=Math.abs,i=[];if(i.push("M",g(d.x),g(d.y)),h(f.x)>h(f.y)){var j=(e.x+d.x)/2;i.push("C",j,d.y,j,e.y,e.x,e.y)}else{var k=(e.y+d.y)/2;i.push("C",d.x,k,e.x,k,e.x,e.y)}c.setMarker(null),c.setPathData(i)})}},b[3]={value:function(a,c,d){b.r(17);b.r(11).register("fish-bone-master",function(a,b,c){var d=b.getLayoutVertexOut(),e=a.getLayoutVertexIn(),f=Math.abs,g=f(d.y-e.y),h=f(d.x-e.x),i=[];i.push("M",d.x,d.y),i.push("h",h-g),i.push("L",e.x,e.y),c.setMarker(null),c.setPathData(i)})}},b[4]={value:function(a,c,d){b.r(17);b.r(11).register("l",function(a,b,c){var d=b.getLayoutVertexOut(),e=a.getLayoutVertexIn(),f=b.getLayoutVectorOut(),g=[],h=Math.round,i=Math.abs;g.push("M",d.round()),i(f.x)>i(f.y)?g.push("H",h(e.x)):g.push("V",e.y),g.push("L",e),c.setPathData(g)})}},b[5]={value:function(a,c,d){b.r(17);b.r(11).register("poly",function(a,b,c,d){var e=b.getLayoutVertexOut(),f=a.getLayoutVertexIn(),g=b.getLayoutVectorOut().normalize(),h=Math.round,i=Math.abs,j=[];switch(j.push("M",h(e.x),h(e.y)),!0){case i(g.x)>i(g.y)&&g.x<0:j.push("h",-b.getStyle("margin-left")),j.push("v",f.y-e.y),j.push("H",f.x);break;case i(g.x)>i(g.y)&&g.x>=0:j.push("h",b.getStyle("margin-right")),j.push("v",f.y-e.y),j.push("H",f.x);break;case i(g.x)<=i(g.y)&&g.y<0:j.push("v",-b.getStyle("margin-top")),j.push("h",f.x-e.x),j.push("V",f.y);break;case i(g.x)<=i(g.y)&&g.y>=0:j.push("v",b.getStyle("margin-bottom")),j.push("h",f.x-e.x),j.push("V",f.y)}c.setMarker(null),c.setPathData(j)})}},b[6]={value:function(a,c,d){var e=b.r(17);b.r(11).register("under",function(a,b,c,d,f){var g,h,i,j,k=a.getLayoutBox(),l=b.getLayoutBox(),m=(Math.abs,[]),n=k.x>l.x?"right":"left",o=(a.getStyle("connect-radius"),k.bottom+3),p="sub"==b.getType()?l.bottom+3:l.cy;"right"==n?(g=new e.Point(l.right,p),h=new e.Point(k.left-10,o),i=new e.Point(k.right,o)):(g=new e.Point(l.left,p),h=new e.Point(k.right+10,o),i=new e.Point(k.left,o)),j=(g.x+h.x)/2,m.push("M",g),m.push("C",j,g.y,j,h.y,h),m.push("L",i),c.setMarker(null),c.setPathData(m)})}},b[7]={value:function(a,c,d){var e=b.r(17),f=b.r(19);if(-1!=location.href.indexOf("boxv")){var g;Object.defineProperty(e.Box.prototype,"visualization",{get:function(){return g?g.setBox(this):null}}),f.registerInitHook(function(){this.on("paperrender",function(){g=new e.Rect,g.fill("rgba(200, 200, 200, .5)"),g.stroke("orange"),this.getRenderContainer().addShape(g)})})}}},b[8]={value:function(a,c,d){var e=b.r(19),f={enableAnimation:!0,layoutAnimationDuration:300,viewAnimationDuration:100,zoomAnimationDuration:300},g={};e.registerInitHook(function(){this.setDefaultOptions(f),this.getOption("enableAnimation")||this.disableAnimation()}),e.prototype.enableAnimation=function(){for(var a in f)f.hasOwnProperty(a)&&this.setOption(g[a])},e.prototype.disableAnimation=function(){for(var a in f)f.hasOwnProperty(a)&&(g[a]=this.getOption(a),this.setOption(a,0))}}},b[9]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19)),g=(b.r(21),b.r(13)),h=0,i=e.createClass("Command",{constructor:function(){this._isContentChange=!0,this._isSelectionChange=!1},execute:function(a,b){throw new Error("Not Implement: Command.execute()")},setContentChanged:function(a){this._isContentChange=!!a},isContentChanged:function(){return this._isContentChange},setSelectionChanged:function(a){this._isSelectionChange=!!a},isSelectionChanged:function(){return this._isContentChange},queryState:function(a){return h},queryValue:function(a){return 0},isNeedUndo:function(){return!0}});i.STATE_NORMAL=h,i.STATE_ACTIVE=1,i.STATE_DISABLED=-1,e.extendClass(f,{_getCommand:function(a){return this._commands[a.toLowerCase()]},_queryCommand:function(a,b,c){var d=this._getCommand(a);if(d){var e=d["query"+b];if(e)return e.apply(d,[this].concat(c))}return 0},queryCommandState:function(a){return this._queryCommand(a,"State",[].slice.call(arguments,1))},queryCommandValue:function(a){return this._queryCommand(a,"Value",[].slice.call(arguments,1))},execCommand:function(a){if(!a)return null;a=a.toLowerCase();var b,c,d,e,f=[].slice.call(arguments,1),h=this;return b=this._getCommand(a),e={command:b,commandName:a.toLowerCase(),commandArgs:f},!(!b||!~this.queryCommandState(a))&&(this._hasEnterExecCommand?(d=b.execute.apply(b,[h].concat(f)),this._hasEnterExecCommand||this._interactChange()):(this._hasEnterExecCommand=!0,c=this._fire(new g("beforeExecCommand",e,!0)),c||(this._fire(new g("preExecCommand",e,!1)),d=b.execute.apply(b,[h].concat(f)),this._fire(new g("execCommand",e,!1)),b.isContentChanged()&&this._firePharse(new g("contentchange")),this._interactChange()),this._hasEnterExecCommand=!1),void 0===d?null:d)}}),d.exports=i}},b[10]={value:function(a,c,d){function e(a){switch(a.version||(a.root?"1.4.0":"1.1.3")){case"1.1.3":h(a);case"1.2.0":case"1.2.1":g(a);case"1.3.0":case"1.3.1":case"1.3.2":case"1.3.3":case"1.3.4":case"1.3.5":i(a)}return a}function f(a,b){b(a),a.children&&a.children.forEach(function(a){f(a,b)})}function g(a){f(a,function(a){var b=a.data;delete b.layout_bottom_offset,delete b.layout_default_offset,delete b.layout_filetree_offset})}function h(a){var b=a.data.currentstyle;delete a.data.currentstyle,"bottom"==b?(a.template="structure",a.theme="snow"):"default"==b&&(a.template="default",a.theme="classic"),f(a,function(a){var b=a.data;"PriorityIcon"in b&&(b.priority=b.PriorityIcon,delete b.PriorityIcon),"ProgressIcon"in b&&(b.progress=1+(b.ProgressIcon-1<<1),delete b.ProgressIcon),delete b.point,delete b.layout})}function i(a){a.root={data:a.data,children:a.children},delete a.data,delete a.children}b.r(33);return e}},b[11]={value:function(a,c,d){function e(a,b){k[a]=b}var f=b.r(17),g=b.r(33),h=b.r(20),i=b.r(19),j=b.r(21),k={};e("default",function(a,b,c){c.setPathData(["M",b.getLayoutVertexOut(),"L",a.getLayoutVertexIn()])}),f.extendClass(j,{getConnect:function(){return this.data.connect||"default"},getConnectProvider:function(){return k[this.getConnect()]||k.default},getConnection:function(){return this._connection||null}}),f.extendClass(i,{getConnectContainer:function(){return this._connectContainer},createConnect:function(a){if(!a.isRoot()){var b=new f.Path;a._connection=b,this._connectContainer.addShape(b),this.updateConnect(a)}},removeConnect:function(a){var b=this;a.traverse(function(a){b._connectContainer.removeShape(a._connection),a._connection=null})},updateConnect:function(a){var b=a._connection,c=a.parent;if(c&&b){if(c.isCollapsed())return void b.setVisible(!1);b.setVisible(!0);var d=a.getConnectProvider(),e=a.getStyle("connect-color")||"white",f=a.getStyle("connect-width")||2;b.stroke(e,f),d(a,c,b,f,e),f%2==0?b.setTranslate(.5,.5):b.setTranslate(0,0)}}}),h.register("Connect",{init:function(){this._connectContainer=(new f.Group).setId(g.uuid("minder_connect_group")),this.getRenderContainer().prependShape(this._connectContainer)},events:{nodeattach:function(a){this.createConnect(a.node)},nodedetach:function(a){this.removeConnect(a.node)},"layoutapply layoutfinish noderender":function(a){this.updateConnect(a.node)}}}),c.register=e}},b[12]={value:function(a,c,d){function e(a,b){l[a]=b;for(var c in l)l.hasOwnProperty(c)&&(l[c]=l[c],l[c].name=c)}function f(a){return void 0===a?l:l[a]||null}var g=b.r(17),h=(b.r(33),b.r(19)),i=(b.r(21),b.r(13)),j=b.r(10),k=b.r(25),l={};c.registerProtocol=e,c.getRegisterProtocol=f,g.extendClass(h,{setup:function(a){if("string"==typeof a&&(a=document.querySelector(a)),a){var b=a.getAttribute("minder-data-type");if(b in l){var c=a.textContent;a.textContent=null,this.renderTo(a),this.importData(b,c)}return this}},exportJson:function(){function a(b){var c={};c.data=b.getData();var d=b.getChildren();c.children=[];for(var e=0;e200&&(b=0),f(a,a.parent?a.parent.getGlobalLayoutTransform():new g.Matrix),this}}),d.exports=l}},b[19]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=[],h=e.createClass("Minder",{constructor:function(a){this._options=f.extend({},a);for(var b,c=g.slice();c.length;)"function"==typeof(b=c.shift())&&b.call(this,this._options);this.fire("finishInitHook")}});h.version="1.4.43",h.registerInitHook=function(a){g.push(a)},d.exports=h}},b[20]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(19),h={};c.register=function(a,b){h[a]=b},g.registerInitHook(function(){this._initModules()}),e.extendClass(g,{_initModules:function(){var a=h,b=this._options.modules||f.keys(a);this._commands={},this._query={},this._modules={},this._rendererClasses={};var c,d,e,g,i,j,k,l=this;for(c=0;c=0&&(b=this.children.splice(c,1)[0],b.parent=null,b.root=b)},clearChildren:function(){this.children=[]},getChild:function(a){return this.children[a]},getRenderContainer:function(){return this.rc},getCommonAncestor:function(a){return h.getCommonAncestor(this,a)},contains:function(a){return this==a||this.isAncestorOf(a)},clone:function(){var a=new h;return a.data=f.clone(this.data),this.children.forEach(function(b){a.appendChild(b.clone())}),a},compareTo:function(a){if(!f.comparePlainObject(this.data,a.data))return!1;if(!f.comparePlainObject(this.temp,a.temp))return!1;if(this.children.length!=a.children.length)return!1;for(var b=0;this.children[b];){if(!this.children[b].compareTo(a.children[b]))return!1;b++}return!0},getMinder:function(){return this.getRoot().minder}});h.getCommonAncestor=function(a,b){if(a instanceof Array)return h.getCommonAncestor.apply(this,a);switch(arguments.length){case 1:return a.parent||a;case 2:if(a.isAncestorOf(b))return a;if(b.isAncestorOf(a))return b;for(var c=a.parent;c&&!c.isAncestorOf(b);)c=c.parent;return c;default:return Array.prototype.reduce.call(arguments,function(a,b){return h.getCommonAncestor(a,b)},a)}},e.extendClass(g,{getRoot:function(){return this._root},setRoot:function(a){this._root=a,a.minder=this},getAllNode:function(){var a=[];return this.getRoot().traverse(function(b){a.push(b)}),a},getNodeById:function(a){return this.getNodesById([a])[0]},getNodesById:function(a){var b=this.getAllNode(),c=[];return b.forEach(function(b){-1!=a.indexOf(b.getData("id"))&&c.push(b)}),c},createNode:function(a,b,c){var d=new h(a);return this.fire("nodecreate",{node:d,parent:b,index:c}),this.appendNode(d,b,c),d},appendNode:function(a,b,c){return b&&b.insertChild(a,c),this.attachNode(a),this},removeNode:function(a){a.parent&&(a.parent.removeChild(a),this.detachNode(a),this.fire("noderemove",{node:a}))},attachNode:function(a){var b=this.getRenderContainer();a.traverse(function(a){a.attached=!0,b.addShape(a.getRenderContainer())}),b.addShape(a.getRenderContainer()),this.fire("nodeattach",{node:a})},detachNode:function(a){var b=this.getRenderContainer();a.traverse(function(a){a.attached=!1,b.removeShape(a.getRenderContainer())}),this.fire("nodedetach",{node:a})},getMinderTitle:function(){return this.getRoot().getText()}}),d.exports=h}},b[22]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(19);g.registerInitHook(function(a){this._defaultOptions={}}),e.extendClass(g,{setDefaultOptions:function(a){return f.extend(this._defaultOptions,a),this},getOption:function(a){return a?a in this._options?this._options[a]:this._defaultOptions[a]:f.extend({},this._defaultOptions,this._options)},setOption:function(a,b){this._options[a]=b}})}},b[23]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(19);g.registerInitHook(function(){this._initPaper()}),e.extendClass(g,{_initPaper:function(){this._paper=new e.Paper,this._paper._minder=this,this._paper.getNode().ondragstart=function(a){a.preventDefault()},this._paper.shapeNode.setAttribute("transform","translate(0.5, 0.5)"),this._addRenderContainer(),this.setRoot(this.createNode()),this._options.renderTo&&this.renderTo(this._options.renderTo)},_addRenderContainer:function(){this._rc=(new e.Group).setId(f.uuid("minder")),this._paper.addShape(this._rc)},renderTo:function(a){if("string"==typeof a&&(a=document.querySelector(a)),a){if("script"==a.tagName.toLowerCase()){var b=document.createElement("div");b.id=a.id,b.class=a.class,a.parentNode.insertBefore(b,a),a.parentNode.removeChild(a),a=b}a.classList.add("km-view"),this._paper.renderTo(this._renderTarget=a),this._bindEvents(),this.fire("paperrender")}return this},getRenderContainer:function(){return this._rc},getPaper:function(){return this._paper},getRenderTarget:function(){return this._renderTarget}})}},b[24]={value:function(a,c,d){function e(a,b,c,d){return c=a.createNode(b.data,c,d),b.children.forEach(function(b,d){e(a,b,c,d)}),c}function f(a,b){var c=b.path.split("/");c.shift();var d,f=c.shift();if("root"==f){var g=c.indexOf("data");if(g>-1){f="data";var h=c.splice(g+1);b.dataPath=h}else f="node";d=a.getRoot();for(var i,j;i=c.shift();)"children"!=i&&(void 0!==j&&(d=d.getChild(j)),j=+i);b.index=j,b.node=d}switch(b.express=[f,b.op].join(".")){case"theme.replace":a.useTheme(b.value);break;case"template.replace":a.useTemplate(b.value);break;case"node.add":e(a,b.value,b.node,b.index).renderTree(),a.layout();break;case"node.remove":a.removeNode(b.node.getChild(b.index)),a.layout();break;case"data.add":case"data.replace":case"data.remove":var k,l=b.node.data;for(c=b.dataPath.slice();l&&c.length>1;)k=c.shift(),k in l?l=l[k]:"remove"!=b.op&&(l=l[k]={});l&&(k=c.shift(),l[k]=b.value),"expandState"==k?d.renderTree():d.render(),a.layout()}a.fire("patch",{patch:b})}var g=b.r(17),h=b.r(19);g.extendClass(h,{applyPatches:function(a){for(var b=0;b=0;--c)if(a[c].isAncestorOf(b))return!0;return!1}var c,d=this.getSelectedNodes().slice(0),e=[],f=d.indexOf(this.getRoot());for(~f&&!a&&d.splice(f,1),d.sort(function(a,b){return a.getLevel()-b.getLevel()});c=d.pop();)b(d,c)||e.push(c);return e}}),e.extendClass(h,{isSelected:function(){var a=this.getMinder();return a&&-1!=a.getSelectedNodes().indexOf(this)}})}},b[29]={value:function(a,c,d){function e(a){var b=4096,c=8192,d=16384,e=0;return"string"==typeof a?a.toLowerCase().split(/\+\s*/).forEach(function(a){switch(a){case"ctrl":case"cmd":e|=b;break;case"alt":e|=c;break;case"shift":e|=d;break;default:e|=h[a]}}):((a.ctrlKey||a.metaKey)&&(e|=b),a.altKey&&(e|=c),a.shiftKey&&(e|=d),e|=a.keyCode),e}var f=b.r(17),g=b.r(33),h=b.r(15),i=b.r(19),j=b.r(13);f.extendClass(j,{isShortcutKey:function(a){var b=this.originEvent;return!!b&&e(a)==e(b)}}),i.registerInitHook(function(){this._initShortcutKey()}),f.extendClass(i,{_initShortcutKey:function(){this._bindShortcutKeys()},_bindShortcutKeys:function(){var a=this._shortcutKeys={};this.on("keydown",function(b){for(var c in a)if(a.hasOwnProperty(c)&&b.isShortcutKey(c)){var d=a[c];if(d.__statusCondition&&d.__statusCondition!=this.getStatus())return;d(),b.preventDefault()}})},addShortcut:function(a,b){var c=this._shortcutKeys;a.split(/\|\s*/).forEach(function(a){var d,e=a.split("::");e.length>1&&(a=e[1],d=e[0],b.__statusCondition=d),c[a]=b})},addCommandShortcutKeys:function(a,b){var c=this._commandShortcutKeys||(this._commandShortcutKeys={}),d={};b?d[a]=b:d=a;var e=this;g.each(d,function(a,b){c[b]=a,e.addShortcut(a,function(){-1!==e.queryCommandState(b)&&e.execCommand(b)})})},getCommandShortcutKey:function(a){var b=this._commandShortcutKeys;return b&&b[a]||null},supportClipboardEvent:function(a){return!!a.ClipboardEvent}(window)})}},b[30]={value:function(a,c,d){var e=b.r(17),f=b.r(19),g=~window.location.href.indexOf("status"),h=~window.location.href.indexOf("trace");f.registerInitHook(function(){this._initStatus()}),e.extendClass(f,{_initStatus:function(){this._status="normal",this._rollbackStatus="normal"},setStatus:function(a,b){return"readonly"!=this._status||b?(a!=this._status&&(this._rollbackStatus=this._status,this._status=a,this.fire("statuschange",{lastStatus:this._rollbackStatus,currentStatus:this._status}),g&&(console.log(window.event.type,this._rollbackStatus,"->",this._status),h&&console.trace())),this):this},rollbackStatus:function(){this.setStatus(this._rollbackStatus)},getRollbackStatus:function(){return this._rollbackStatus},getStatus:function(){return this._status}})}},b[31]={value:function(a,c,d){function e(a,b){l[a]=b}var f=b.r(17),g=b.r(33),h=b.r(19),i=b.r(9),j=b.r(21),k=b.r(20),l={};c.register=e,g.extend(h,{getTemplateList:function(){return l}}),f.extendClass(h,function(){var a=h.prototype.getTheme;return{useTemplate:function(a,b){this.setTemplate(a),this.refresh(b||800)},getTemplate:function(){return this._template||"default"},setTemplate:function(a){this._template=a||null},getTemplateSupport:function(a){var b=l[this.getTemplate()];return b&&b[a]},getTheme:function(b){return(this.getTemplateSupport("getTheme")||a).call(this,b)}}}()),f.extendClass(j,function(){var a=j.prototype.getLayout,b=j.prototype.getConnect;return{getLayout:function(){return(this.getMinder().getTemplateSupport("getLayout")||a).call(this,this)},getConnect:function(){return(this.getMinder().getTemplateSupport("getConnect")||b).call(this,this)}}}()),k.register("TemplateModule",{commands:{template:f.createClass("TemplateCommand",{base:i,execute:function(a,b){a.useTemplate(b),a.execCommand("camera")},queryValue:function(a){return a.getTemplate()||"default"}})}})}},b[32]={value:function(a,c,d){function e(a,b){m[a]=b}var f=b.r(17),g=b.r(33),h=b.r(19),i=b.r(21),j=b.r(20),k=b.r(9),l={left:function(a){return 3 in a&&a[3]||1 in a&&a[1]||a[0]},right:function(a){return 1 in a&&a[1]||a[0]},top:function(a){return a[0]},bottom:function(a){return 2 in a&&a[2]||a[0]}},m={};c.register=e,g.extend(h,{getThemeList:function(){return m}}),f.extendClass(h,{themeRegister:e,useTheme:function(a){return this.setTheme(a),this.refresh(800),!0},setTheme:function(a){if(a&&!m[a])throw new Error("Theme "+a+" not exists!");var b=this._theme;this._theme=a||null;var c=this.getRenderTarget();return c&&(c.classList.remove("km-theme-"+b),a&&c.classList.add("km-theme-"+a),c.style.background=this.getStyle("background")),this.fire("themechange",{theme:a}),this},getTheme:function(a){return this._theme||this.getOption("defaultTheme")||"fresh-blue"},getThemeData:function(a){return a&&m[a]?m[a]:null},getThemeItems:function(a){this.getTheme(a);return m[this.getTheme(a)]},getStyle:function(a,b){var c,d,e,f,h=this.getThemeItems(b);if(a in h)return h[a];if(c=a.split("-"),c.length<2)return null;if(d=c.pop(),(a=c.join("-"))in h){if(e=h[a],g.isArray(e)&&(f=l[d]))return f(e);if(!isNaN(e))return e}return null},getNodeStyle:function(a,b){var c=this.getStyle(a.getType()+"-"+b,a);return null!==c?c:this.getStyle(b,a)}}),f.extendClass(i,{getStyle:function(a){return this.getMinder().getNodeStyle(this,a)}}),j.register("Theme",{defaultOptions:{defaultTheme:"fresh-blue"},commands:{theme:f.createClass("ThemeCommand",{base:k,execute:function(a,b){return a.useTheme(b)},queryValue:function(a){return a.getTheme()||"default"}})}}),h.registerInitHook(function(){this.setTheme()})}},b[33]={value:function(a,c){var d=b.r(17),e={};c.extend=d.Utils.extend.bind(d.Utils),c.each=d.Utils.each.bind(d.Utils),c.uuid=function(a){return e[a]=e[a]?e[a]+1:1,a+e[a]},c.guid=function(){return(1e6*+new Date+Math.floor(1e6*Math.random())).toString(36)},c.trim=function(a){return a.replace(/(^[ \t\n\r]+)|([ \t\n\r]+$)/g,"")},c.keys=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b},c.clone=function(a){return JSON.parse(JSON.stringify(a))},c.comparePlainObject=function(a,b){return JSON.stringify(a)==JSON.stringify(b)},c.encodeHtml=function(a,b){return a?a.replace(b||/[&<">'](?:(amp|lt|quot|gt|#39|nbsp);)?/g,function(a,b){return b?a:{"<":"<","&":"&",'"':""",">":">","'":"'"}[a]}):""},c.clearWhiteSpace=function(a){return a.replace(/[\u200b\t\r\n]/g,"")},c.each(["String","Function","Array","Number","RegExp","Object"],function(a){var b=Object.prototype.toString;c["is"+a]=function(c){return b.apply(c)=="[object "+a+"]"}})}},b[34]={value:function(a,c,d){d.exports=window.kityminder=b.r(35)}},b[35]={value:function(a,c,d){var e={version:b.r(19).version};b.r(33),e.Minder=b.r(19),e.Command=b.r(9),e.Node=b.r(21),b.r(22),b.r(8),e.Event=b.r(13),e.data=b.r(12),b.r(10),e.KeyMap=b.r(15),b.r(29),b.r(30),b.r(23),b.r(28),b.r(14),b.r(16),e.Module=b.r(20),b.r(26),e.Render=b.r(27),e.Connect=b.r(11),e.Layout=b.r(18),e.Theme=b.r(32),e.Template=b.r(31),e.Promise=b.r(25),b.r(7),b.r(24),b.r(42),b.r(43),b.r(44),b.r(45),b.r(46),b.r(47),b.r(48),b.r(50),b.r(49),b.r(51),b.r(52),b.r(53),b.r(54),b.r(55),b.r(56),b.r(57),b.r(58),b.r(59),b.r(60),b.r(61),b.r(62),b.r(63),b.r(64),b.r(68),b.r(65),b.r(67),b.r(66),b.r(40),b.r(36),b.r(37),b.r(38),b.r(39),b.r(41),b.r(75),b.r(78),b.r(77),b.r(76),b.r(78),b.r(80),b.r(79),b.r(81),b.r(0),b.r(1),b.r(2),b.r(3),b.r(4),b.r(5),b.r(6),b.r(69),b.r(73),b.r(70),b.r(72),b.r(71),b.r(74),d.exports=e}},b[36]={value:function(a,c,d){function e(a){function b(a){var b=[],d=a.getLayoutBox(),e=5;return"x"==c?(b.push({type:"up",node:a,area:new f.Box({x:d.x,y:d.top-a.getStyle("margin-top")-e,width:d.width,height:a.getStyle("margin-top")}),path:["M",d.x,d.top-e,"L",d.right,d.top-e]}),b.push({type:"down",node:a,area:new f.Box({x:d.x,y:d.bottom+e,width:d.width,height:a.getStyle("margin-bottom")}),path:["M",d.x,d.bottom+e,"L",d.right,d.bottom+e]})):(b.push({type:"up",node:a,area:new f.Box({x:d.left-a.getStyle("margin-left")-e,y:d.top,width:a.getStyle("margin-left"),height:d.height}),path:["M",d.left-e,d.top,"L",d.left-e,d.bottom]}),b.push({type:"down",node:a,area:new f.Box({x:d.right+e,y:d.top,width:a.getStyle("margin-right"),height:d.height}),path:["M",d.right+e,d.top,"L",d.right+e,d.bottom]})),b}var c="left"==a||"right"==a?"x":"y",d="left"==a||"top"==a?-1:1,e={left:"right",right:"left",top:"bottom",bottom:"top",x:"y",y:"x"};g.register(a,f.createClass({base:g,doLayout:function(b,g){var h=b.getContentBox();if("x"==c?(b.setVertexOut(new f.Point(h[a],h.cy)),b.setLayoutVectorOut(new f.Vector(d,0))):(b.setVertexOut(new f.Point(h.cx,h[a])),b.setLayoutVectorOut(new f.Vector(0,d))),!g.length)return!1;g.forEach(function(b){var g=b.getContentBox();b.setLayoutTransform(new f.Matrix),"x"==c?(b.setVertexIn(new f.Point(g[e[a]],g.cy)),b.setLayoutVectorIn(new f.Vector(d,0))):(b.setVertexIn(new f.Point(g.cx,g[e[a]])),b.setLayoutVectorIn(new f.Vector(0,d)))}),this.align(g,e[a]),this.stack(g,e[c]);var i=this.getBranchBox(g),j=0,k=0;"x"==c?(j=h[a],j+=d*b.getStyle("margin-"+a),j+=d*g[0].getStyle("margin-"+e[a]),k=h.bottom,k-=h.height/2,k-=i.height/2,k-=i.y):(j=h.right,j-=h.width/2,j-=i.width/2,j-=i.x,k=h[a],k+=d*b.getStyle("margin-"+a),k+=d*g[0].getStyle("margin-"+e[a])),this.move(g,j,k)},getOrderHint:b}))}var f=b.r(17),g=b.r(18);["left","right","top","bottom"].forEach(e)}},b[37]={value:function(a,c,d){function e(a){var b="filetree-"+(a>0?"down":"up");g.register(b,f.createClass({base:g,doLayout:function(b,c,d){var e=b.getContentBox(),g=20;if(b.setVertexOut(new f.Point(e.left+g,a>0?e.bottom:e.top)),b.setLayoutVectorOut(new f.Vector(0,a)),c.length){c.forEach(function(a){var b=a.getContentBox();a.setLayoutTransform(new f.Matrix),a.setVertexIn(new f.Point(b.left,b.cy)),a.setLayoutVectorIn(new f.Vector(1,0))}),this.align(c,"left"),this.stack(c,"y");var h=0;h+=e.left,h+=g,h+=c[0].getStyle("margin-left");var i=0;a>0?(i+=e.bottom,i+=b.getStyle("margin-bottom"),i+=c[0].getStyle("margin-top")):(i-=this.getTreeBox(c).bottom,i+=e.top,i-=b.getStyle("margin-top"),i-=c[0].getStyle("margin-bottom")),this.move(c,h,i)}},getOrderHint:function(a){var b=[],c=a.getLayoutBox(),d=a.getLevel()>1?3:5;return b.push({type:"up",node:a,area:new f.Box({x:c.x,y:c.top-a.getStyle("margin-top")-d,width:c.width,height:a.getStyle("margin-top")}),path:["M",c.x,c.top-d,"L",c.right,c.top-d]}),b.push({type:"down",node:a,area:new f.Box({x:c.x,y:c.bottom+d,width:c.width,height:a.getStyle("margin-bottom")}),path:["M",c.x,c.bottom+d,"L",c.right,c.bottom+d]}),b}}))}var f=b.r(17),g=b.r(18);[-1,1].forEach(e)}},b[38]={value:function(a,c,d){var e=b.r(17),f=b.r(18);f.register("fish-bone-master",e.createClass("FishBoneMasterLayout",{base:f,doLayout:function(a,b,c){var d=[],f=[],g=b[0],h=a.getContentBox();if(a.setVertexOut(new e.Point(h.right,h.cy)),a.setLayoutVectorOut(new e.Vector(1,0)),g){var i=(g.getContentBox(),a.getStyle("margin-right")),j=g.getStyle("margin-left"),k=g.getStyle("margin-top"),l=g.getStyle("margin-bottom");b.forEach(function(a,b){a.setLayoutTransform(new e.Matrix);var c=a.getContentBox();b%2?(f.push(a),a.setVertexIn(new e.Point(c.left,c.top)),a.setLayoutVectorIn(new e.Vector(1,1))):(d.push(a),a.setVertexIn(new e.Point(c.left,c.bottom)),a.setLayoutVectorIn(new e.Vector(1,-1)))}),this.stack(d,"x"),this.stack(f,"x"),this.align(d,"bottom"),this.align(f,"top");var m=h.right+i+j,n=h.cy-l-a.getStyle("margin-top"),o=h.cy+k+a.getStyle("margin-bottom");this.move(d,m,n),this.move(f,m+j,o)}}}))}},b[39]={value:function(a,c,d){var e=b.r(17),f=b.r(18);f.register("fish-bone-slave",e.createClass("FishBoneSlaveLayout",{base:f,doLayout:function(a,b,c){var d=this,f=Math.abs,g=.382,h=a.getContentBox(),i=a.getLayoutVectorIn();a.setLayoutVectorOut(i);var j=h.left+h.width*g,k=new e.Point(j,i.y>0?h.bottom:h.top);a.setVertexOut(k);var l=b[0];if(l){var m=l.getContentBox();b.forEach(function(a,b){a.setLayoutTransform(new e.Matrix),a.setLayoutVectorIn(new e.Vector(1,0)),a.setVertexIn(new e.Point(m.left,m.cy))}),this.stack(b,"y"),this.align(b,"left");var n=0,o=0;n+=k.x,a.getLayoutVectorOut().y<0?(o-=this.getTreeBox(b).bottom,o+=a.getContentBox().top,o-=a.getStyle("margin-top"),o-=l.getStyle("margin-bottom")):(o+=a.getContentBox().bottom,o+=a.getStyle("margin-bottom"),o+=l.getStyle("margin-top")),this.move(b,n,o),2==c&&b.forEach(function(a){var b=a.getLayoutTransform(),c=a.getContentBox(),g=b.transformPoint(new e.Point(c.left,0));d.move([a],f(g.y-k.y),0)})}}}))}},b[40]={value:function(a,c,d){var e=b.r(17),f=b.r(18),g=b.r(19);f.register("mind",e.createClass({base:f,doLayout:function(a,b){var c=Math.ceil(a.children.length/2),d=[],f=[];b.forEach(function(a){a.getIndex()=c.length))return c.splice(this.getIndex(),1),c.splice(a,0,this),this}}});var k=g.createClass("ArrangeUpCommand",{base:i,execute:function(a){var b=a.getSelectedNodes();b.sort(e);var c=b.map(function(a){return a.getIndex()});b.forEach(function(a,b){a.arrange(c[b]-1)}),a.layout(300)},queryState:function(a){return a.getSelectedNode()?0:-1}}),l=g.createClass("ArrangeUpCommand",{base:i,execute:function(a){var b=a.getSelectedNodes();b.sort(f);var c=b.map(function(a){return a.getIndex()});b.forEach(function(a,b){a.arrange(c[b]+1)}),a.layout(300)},queryState:function(a){return a.getSelectedNode()?0:-1}}),m=g.createClass("ArrangeCommand",{base:i,execute:function(a,b){var c=a.getSelectedNodes().slice();if(c.length){if(h.getCommonAncestor(c)==c[0].parent){var d=c.map(function(a){return{index:a.getIndex(),node:a}}),e=Math.min.apply(Math,d.map(function(a){return a.index}))>=b;d.sort(function(a,b){return e?b.index-a.index:a.index-b.index}),d.forEach(function(a){a.node.arrange(b)}),a.layout(300)}}},queryState:function(a){return a.getSelectedNode()?0:-1}});j.register("ArrangeModule",{commands:{arrangeup:k,arrangedown:l,arrange:m},contextmenu:[{command:"arrangeup"},{command:"arrangedown"},{divider:!0}],commandShortcutKeys:{arrangeup:"normal::alt+Up",arrangedown:"normal::alt+Down"}})}},b[43]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19),b.r(21),b.r(9)),g=b.r(20),h=b.r(61);g.register("basestylemodule",function(){function a(a,b){return a.getData(b)||a.getStyle(b)}var b=this;return h.registerStyleHook(function(b,c){var d=a(b,"font-weight"),e=a(b,"font-style");[d,e].join("/");c.eachItem(function(a,b){b.setFont({weight:d,style:e})})}),{commands:{bold:e.createClass("boldCommand",{base:f,execute:function(a){var b=a.getSelectedNodes();1==this.queryState("bold")?b.forEach(function(a){a.setData("font-weight").render()}):b.forEach(function(a){a.setData("font-weight","bold").render()}),a.layout()},queryState:function(){var a=b.getSelectedNodes(),c=0;return 0===a.length?-1:(a.forEach(function(a){if(a&&a.getData("font-weight"))return c=1,!1}),c)}}),italic:e.createClass("italicCommand",{base:f,execute:function(a){var b=a.getSelectedNodes();1==this.queryState("italic")?b.forEach(function(a){a.setData("font-style").render()}):b.forEach(function(a){a.setData("font-style","italic").render()}),a.layout()},queryState:function(){var a=b.getSelectedNodes(),c=0;return 0===a.length?-1:(a.forEach(function(a){if(a&&a.getData("font-style"))return c=1,!1}),c)}})},commandShortcutKeys:{bold:"ctrl+b",italic:"ctrl+i"}}})}},b[44]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(21)),g=b.r(9);b.r(20).register("ClipboardModule",function(){function a(b,d){h.push(d),c.appendNode(d,b),d.render(),d.setLayoutOffset(null);var e=d.children.map(function(a){return a.clone()});d.clearChildren();for(var f,g=0;f=e[g];g++)a(d,f)}function b(a){a.length&&(a.sort(function(a,b){return a.getIndex()-b.getIndex()}),d=a.map(function(a){return a.clone()}))}var c=this,d=[],h=[],i=e.createClass("CopyCommand",{base:g,execute:function(a){b(a.getSelectedAncestors(!0)),this.setContentChanged(!1)}}),j=e.createClass("CutCommand",{base:g,execute:function(a){var c=a.getSelectedAncestors();0!==c.length&&(b(c),a.select(f.getCommonAncestor(c),!0),c.slice().forEach(function(b){a.removeNode(b)}),a.layout(300))}}),k=e.createClass("PasteCommand",{base:g,execute:function(b){if(d.length){var c=b.getSelectedNodes();if(!c.length)return;for(var e,f=0;e=d[f];f++)for(var g,i=0;g=c[i];i++)a(g,e.clone());b.select(h,!0),h=[],b.layout(300)}},queryState:function(a){return a.getSelectedNode()?0:-1}});if(c.supportClipboardEvent&&!e.Browser.gecko){var l=function(a){this.fire("beforeCopy",a)},m=function(a){this.fire("beforeCut",a)},n=function(a){this.fire("beforePaste",a)};return{commands:{copy:i,cut:j,paste:k},clipBoardEvents:{copy:l.bind(c),cut:m.bind(c),paste:n.bind(c)},sendToClipboard:b}}return{commands:{copy:i,cut:j,paste:k},commandShortcutKeys:{copy:"normal::ctrl+c|",cut:"normal::ctrl+x",paste:"normal::ctrl+v"},sendToClipboard:b}})}},b[45]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(21)),g=b.r(9),h=b.r(20),i=e.createClass("MoveToParentCommand",{base:g,execute:function(a,b,c){for(var d,e=0;ed&&"up"==a.type&&b--,a.node.setLayoutOffset(null),this._minder.execCommand("arrange",b),this._renderOrderHint(null)}else this._minder.fire("savescene");this._minder.layout(300),this._leaveDragMode(),this._minder.fire("contentchange")}},_enterDragMode:function(){return this._calcDragSources(),this._dragSources.length?(this._fadeDragSources(.5),this._calcDropTargets(),this._calcOrderHints(),this._dragMode=!0,this._minder.setStatus("dragtree"),!0):(this._startPosition=null,!1)},_calcDragSources:function(){this._dragSources=this._minder.getSelectedAncestors()},_fadeDragSources:function(a){var b=this._minder;this._dragSources.forEach(function(c){c.getRenderContainer().setOpacity(a,200),c.traverse(function(c){a<1?b.detachNode(c):b.attachNode(c)},!0)})},_calcDropTargets:function(){function a(b,c){var d,e=[];return e.push(c),c.getChildren().forEach(function(c){for(d=0;d.5*Math.min(d(b),d(c))||(a.width+1>=Math.min(b.width,c.width)||a.height+1>=Math.min(b.height,c.height))))}),this._renderDropHint(this._dropSucceedTarget),!!this._dropSucceedTarget},_orderTest:function(){return this._orderSucceedHint=this._boxTest(this._orderHints,function(a){return a.area}),this._renderOrderHint(this._orderSucceedHint),!!this._orderSucceedHint},_renderDropHint:function(a){this._dropHinter.render(a)},_renderOrderHint:function(a){this._orderHinter.render(a)},preventDragMove:function(){this._startPosition=null}});h.register("DragTree",function(){var a;return{init:function(){a=new l(this),window.addEventListener("mouseup",function(){a.dragEnd()})},events:{"normal.mousedown inputready.mousedown":function(b){b.originEvent.button||b.getTargetNode()&&b.getTargetNode()!=this.getRoot()&&a.dragStart(b.getPosition())},"normal.mousemove dragtree.mousemove":function(b){a.dragMove(b.getPosition())},"normal.mouseup dragtree.beforemouseup":function(b){a.dragEnd(),b.preventDefault()},statuschange:function(b){"textedit"==b.lastStatus&&"normal"==b.currentStatus&&a.preventDragMove()}},commands:{movetoparent:i}}})}},b[46]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(15),h=b.r(21),i=b.r(9),j=b.r(20),k=b.r(27);j.register("Expand",function(){var a=this,b="expandState",c="collapse";e.extendClass(h,{expand:function(){return this.setData(b,"expand"),this},collapse:function(){return this.setData(b,c),this},isExpanded:function(){return this.getData(b)!==c&&(this.isRoot()||this.parent.isExpanded())},isCollapsed:function(){return!this.isExpanded()}});var d=e.createClass("ExpandCommand",{base:i,execute:function(a,b){var c=a.getSelectedNode();if(c){for(b&&(c=c.parent);c.parent;)c.expand(),c=c.parent;c.renderTree(),a.layout(100)}},queryState:function(a){var b=a.getSelectedNode();return!b||b.isRoot()||b.isExpanded()?-1:0}}),j=e.createClass("ExpandToLevelCommand",{base:i,execute:function(a,b){a.getRoot().traverse(function(a){a.getLevel()c&&e>f?(a=c,b=a/e):b>d&&(b=d,a=b*e),{width:0|a,height:0|b}}return{defaultOptions:{maxImageWidth:200,maxImageHeight:200},commands:{image:e.createClass("ImageCommand",{base:f,execute:function(c,d,e){var f=c.getSelectedNodes();a(d,function(a,g){f.forEach(function(f){var h=b(a,g,c.getOption("maxImageWidth"),c.getOption("maxImageHeight"));f.setData("image",d),f.setData("imageTitle",d&&e),f.setData("imageSize",d&&h),f.render()}),c.fire("saveScene"),c.layout(300)})},queryState:function(a){var b=a.getSelectedNodes(),c=0;return 0===b.length?-1:(b.forEach(function(a){if(a&&a.getData("image"))return c=0,!1}),c)},queryValue:function(a){var b=a.getSelectedNode();return{url:b.getData("image"),title:b.getData("imageTitle")}}})},renderers:{top:e.createClass("ImageRenderer",{base:h,create:function(a){return new e.Image(a.getData("image"))},shouldRender:function(a){return a.getData("image")},update:function(a,b,c){var d=b.getData("image"),f=b.getData("imageTitle"),g=b.getData("imageSize"),h=b.getStyle("space-top");if(g){f&&a.node.setAttributeNS("http://www.w3.org/1999/xlink","title",f);var i=c.cx-g.width/2,j=c.y-g.height-h;return a.setUrl(d).setX(0|i).setY(0|j).setWidth(0|g.width).setHeight(0|g.height),new e.Box(0|i,0|j,0|g.width,0|g.height)}}})}}})}},b[51]={value:function(a,c,d){var e=(b.r(17),b.r(33),b.r(15),b.r(19),b.r(21),b.r(9),b.r(20));b.r(27);e.register("KeyboardModule",function(){function a(a){var b,d=[];a.traverse(function(a){b=a.getLayoutBox(),b.width&&b.height&&d.push({left:b.x,top:b.y,right:b.x+b.width,bottom:b.y+b.height,width:b.width,height:b.height,node:a})});for(var e=0;ef.right&&(!g.right||ef.bottom&&(!g.down||e>1].getGlobalLayoutTransform()),a.select(e,!0),a.layout(600)},queryState:function(a){var b=a.getSelectedNodes();if(!b.length)return-1;var c=b[0].parent;if(!c)return-1;for(var d=1;d>>c|d<<32-c},b=function(a,b,j,k,l){var m=d+f[c][a]%16,n=d+(f[c][a]>>4);b%=4,j=4+j%4,k=8+k%4,l=12+l%4,h[b]+=h[j]+(i[m]^e[n%16]),g(l,b,16),h[k]+=h[l],g(j,k,12),h[b]+=h[j]+(i[n]^e[m%16]),g(l,b,8),h[k]+=h[l],g(j,k,7)},function(f,g){g instanceof Array&&4===g.length||(g=[0,0,0,0]);var k,l,m,n,o,p,q,r;for(l=a.slice(0),k=e.slice(0,8),c=0;c<4;c+=1)k[c]^=g[c];if(m=16*f.length,o=m%512>446||m%512==0?0:m,m%512==432)f+="老";else{for(f+="耀";f.length%32!=27;)f+="\0";f+=""}for(i=[],r=0;r=0;c--)d=b.charCodeAt(c),e^=(e<<5)+d+(e>>2);return 2147483647&e},getResourceColor:function(a){var c,d=this._getResourceColorIndexMapping();return Object.prototype.hasOwnProperty.call(d,a)||(c=this._getNextResourceColorIndex(),d[a]=c),b[d[a]]||e.Color.createHSL(Math.floor(this.getHashCode(a)/2147483647*359),100,85)},getUsedResource:function(){var a,b=this._getResourceColorIndexMapping(),c=[];for(a in b)Object.prototype.hasOwnProperty.call(b,a)&&c.push(a);return c},_getNextResourceColorIndex:function(){var a,c,d,e=this._getResourceColorIndexMapping();c=[];for(a in e)Object.prototype.hasOwnProperty.call(e,a)&&c.push(e[a]);for(d=0;dv)for(var w=u-v;w--;)s=(new e.Text).setAttr("text-rendering","inherit"),e.Browser.ie||e.Browser.edge?s.setVerticalAlign("top"):s.setAttr("dominant-baseline","text-before-edge"),a.addItem(s);for(q=0,s;t=g[q],s=a.getItem(q);q++)s.setContent(t),(e.Browser.ie||e.Browser.edge)&&s.fixPosition();this.setTextStyle(b,a);var x=b.getText()+["font-size","font-name","font-weight","font-style"].map(c).join("/");return b._currentTextHash==x&&b._currentTextGroupBox?b._currentTextGroupBox:(b._currentTextHash=x,function(){a.eachItem(function(a,b){var c=m+a*i*h;b.setY(c);var d=b.getBoundaryBox();o=o.merge(new e.Box(0,c,d.height&&d.width||1,i))});var c=new e.Box(p(o.x),p(o.y),p(o.width),p(o.height));return b._currentTextGroupBox=c,c})},setTextStyle:function(a,b){l._styleHooks.forEach(function(c){c(a,b)})}}),m=e.createClass({base:h,execute:function(a,b){var c=a.getSelectedNode();c&&(c.setText(b),c.render(),a.layout())},queryState:function(a){return 1==a.getSelectedNodes().length?0:-1},queryValue:function(a){var b=a.getSelectedNode();return b?b.getText():null}});f.extend(l,{_styleHooks:[],registerStyleHook:function(a){l._styleHooks.push(a)}}),e.extendClass(g,{getTextGroup:function(){return this.getRenderer("TextRenderer").getRenderShape()}}),i.register("text",{commands:{text:m},renderers:{center:l}}),d.exports=l}},b[62]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19),b.r(21),b.r(9)),g=b.r(20),h=(b.r(27),e.createClass("ViewDragger",{constructor:function(a){this._minder=a,this._enabled=!1,this._bind();var b=this;this._minder.getViewDragger=function(){return b},this.setEnabled(!1)},isEnabled:function(){return this._enabled},setEnabled:function(a){if(this._minder.getOption("enableChangeCursor")){var b=this._minder.getPaper();b.setStyle("cursor",a?"pointer":"default"),b.setStyle("cursor",a?"-webkit-grab":"default")}this._enabled=a},timeline:function(){return this._moveTimeline},move:function(a,b){var c=(this._minder,this.getMovement().offset(a));this.moveTo(c,b)},moveTo:function(a,b){if(b){var c=this;return this._moveTimeline&&this._moveTimeline.stop(),this._moveTimeline=this._minder.getRenderContainer().animate(new e.Animator(this.getMovement(),a,function(a,b){c.moveTo(b)}),b,"easeOutCubic").timeline(),this._moveTimeline.on("finish",function(){c._moveTimeline=null}),this}this._minder.getRenderContainer().setTranslate(a.round()),this._minder.fire("viewchange")},getMovement:function(){var a=this._minder.getRenderContainer().transform.translate;return a?a[0]:new e.Point},getView:function(){var a=this._minder,b=a._lastClientSize||{width:a.getRenderTarget().clientWidth,height:a.getRenderTarget().clientHeight},c=this.getMovement(),d=new e.Box(0,0,b.width,b.height);return a.getPaper().getViewPortMatrix().inverse().translate(-c.x,-c.y).transformBox(d)},_bind:function(){function a(a){if(d){d=null,a.stopPropagation(),c&&(b.setEnabled(!1),c=!1,"hand"==b._minder.getStatus()&&b._minder.rollbackStatus());if(b._minder.getOption("enableChangeCursor")){b._minder.getPaper().setStyle("cursor","hand"==b._minder.getStatus()?"-webkit-grab":"default")}b._minder.fire("viewchanged")}}var b=this,c=!1,d=null,f=null;this._minder.on("normal.mousedown normal.touchstart inputready.mousedown inputready.touchstart readonly.mousedown readonly.touchstart",function(a){2==a.originEvent.button&&a.originEvent.preventDefault(),(a.getTargetNode()==this.getRoot()||2==a.originEvent.button||a.originEvent.altKey)&&(d=a.getPosition("view"),c=!0)}).on("normal.mousemove normal.touchmove readonly.mousemove readonly.touchmove inputready.mousemove inputready.touchmove",function(a){if("touchmove"==a.type&&a.preventDefault(),c){if(e.Vector.fromPoints(d,a.getPosition("view")).length()>10){this.setStatus("hand",!0);if(b._minder.getOption("enableChangeCursor")){b._minder.getPaper().setStyle("cursor","-webkit-grabbing")}}}}).on("hand.beforemousedown hand.beforetouchstart",function(a){if(b.isEnabled()){d=a.getPosition("view"),a.stopPropagation();if(b._minder.getOption("enableChangeCursor")){b._minder.getPaper().setStyle("cursor","-webkit-grabbing")}}}).on("hand.beforemousemove hand.beforetouchmove",function(a){if(d){f=a.getPosition("view");var c=e.Vector.fromPoints(d,f);b.move(c),a.stopPropagation(),a.preventDefault(),a.originEvent.preventDefault(),d=f}}).on("mouseup touchend",a),window.addEventListener("mouseup",a),this._minder.on("contextmenu",function(a){a.preventDefault()})}}));g.register("View",function(){var a=e.createClass("ToggleHandCommand",{base:f,execute:function(a){"hand"!=a.getStatus()?a.setStatus("hand",!0):a.rollbackStatus(),this.setContentChanged(!1)},queryState:function(a){return"hand"==a.getStatus()?1:0},enableReadOnly:!0}),b=e.createClass("CameraCommand",{base:f,execute:function(a,b){b=b||a.getRoot();var c=a.getPaper().getViewPort(),d=b.getRenderContainer().getRenderBox("view"),f=c.center.x-d.x-d.width/2,g=c.center.y-d.y,h=a._viewDragger,i=a.getOption("viewAnimationDuration");h.move(new e.Point(f,g),i),this.setContentChanged(!1)},enableReadOnly:!0}),c=e.createClass("MoveCommand",{base:f,execute:function(a,b,c){var d=a._viewDragger,f=a._lastClientSize;if(void 0!==c&&null!==c||(c=a.getOption("viewAnimationDuration")),"string"!=typeof b){var g=d.getMovement(),h=g.x,i=g.y;void 0!==b.x&&(h=b.x),void 0!==b.y&&(i=b.y),d.moveTo(new e.Point(h,i),c)}else switch(b){case"auto":var j=d._minder.getRenderContainer().node.getBBox(),h=40;j.widthg.right?j+=g.right-h.right-i:h.leftg.bottom&&(k+=g.bottom-h.bottom-i),h.top=100?"optimize-speed":"geometricPrecision";h.getRenderContainer().setAttr("text-rendering",a)}function b(a){var b=a.shapeNode,c=b.getCTM(),d=new e.Matrix(c.a,c.b,c.c,c.d,.5+(0|c.e),.5+(0|c.f));b.setAttribute("transform","matrix("+d.toString()+")")}function c(b,c){var f=b.getPaper();f.getViewPort();if(c){a();var g=b.getOption("zoomAnimationDuration");if(b.getRoot().getComplex()>200||!g)b._zoomValue=c,b.zoom(c),b.fire("viewchange");else{var h=new e.Animator({beginValue:b._zoomValue,finishValue:c,setter:function(a,b){a.zoom(b)}});b._zoomValue=c,d&&d.pause(),d=h.start(b,g,"easeInOutSine"),d.on("finish",function(){b.fire("viewchange")})}b.fire("zoom",{zoom:c})}}var d,h=this;e.extendClass(f,{zoom:function(a){var c=this.getPaper(),d=c.getViewPort();d.zoom=a/100,d.center={x:d.center.x,y:d.center.y},c.setViewPort(d),100==a&&b(c)},getZoomValue:function(){return this._zoomValue}});var i=e.createClass("Zoom",{base:g,execute:c,queryValue:function(a){return a._zoomValue}}),j=e.createClass("ZoomInCommand",{base:g,execute:function(a){c(a,this.nextValue(a))},queryState:function(a){return+!this.nextValue(a)},nextValue:function(a){var b,c=a.getOption("zoom");for(b=0;ba._zoomValue)return c[b];return 0},enableReadOnly:!0}),k=e.createClass("ZoomOutCommand",{base:g,execute:function(a){c(a,this.nextValue(a))},queryState:function(a){return+!this.nextValue(a)},nextValue:function(a){var b,c=a.getOption("zoom");for(b=c.length-1;b>=0;b--)if(c[b]100&&(clearTimeout(this._wheelZoomTimeout),this._wheelZoomTimeout=setTimeout(function(){c.getPaper()._zoom;b>0?c.execCommand("zoomin"):b<0&&c.execCommand("zoomout")},100),a.originEvent.preventDefault())}}},commandShortcutKeys:{zoomin:"ctrl+=",zoomout:"ctrl+-"}}})}},b[64]={value:function(a,c,d){b.r(12).registerProtocol("json",d.exports={fileDescription:"KityMinder 格式",fileExtension:".km",dataType:"text",mineType:"application/json",encode:function(a){return JSON.stringify(a)},decode:function(a){return JSON.parse(a)}})}},b[65]={value:function(a,c,d){function e(a){return f(a,1).join("\n")}function f(a,b){var c=[];b=b||1;var d=g(b);c.push(d+" "+a.data.text),c.push(o);var e=a.data.note;if(e){var h=/^#/.test(e);h&&(c.push(p),e=e.replace(/^#+/gm,function(a){return d+a})),c.push(e),h&&c.push(q),c.push(o)}return a.children&&a.children.forEach(function(a){c=c.concat(f(a,b+1))}),c}function g(a){for(var b="";a--;)b+="#";return b}function h(a){var b,c,d,e,f,g,h,m={};a=a.replace(/^(.+)\n={3,}/,function(a,b){return"# "+b}),b=a.split(n);for(var o=0;oe+1?f&&j(f,c):(e=d.level,f=i(d.content,m[e-1]),m[e]=f));return l(m[1]),m[1]}function i(a,b){var c={data:{text:a,note:""}};return b&&(b.children?b.children.push(c):b.children=[c]),c}function j(a,b){a.data.note+=b+"\n"}function k(a){var b=/^(#+)?\s*(.*)$/.exec(a);return{level:b[1]&&b[1].length||null,content:b[2],noteStart:a==p,noteClose:a==q,codeBlock:/^\s*```/.test(a)}}function l(a){if(/\S/.test(a.data.note)){for(var b=a.data.note.split("\n");b.length&&!/\S/.test(b[0]);)b.shift();for(;b.length&&!/\S/.test(b[b.length-1]);)b.pop();a.data.note=b.join("\n")}else a.data.note=null,delete a.data.note;a.children&&a.children.forEach(l)}var m=b.r(12),n=/\r\n|\r|\n/,o="",p="\x3c!--Note--\x3e",q="\x3c!--/Note--\x3e";m.registerProtocol("markdown",d.exports={fileDescription:"Markdown/GFM 格式",fileExtension:".md",mineType:"text/markdown",dataType:"text",encode:function(a){return e(a.root)},decode:function(a){return h(a)}})}},b[66]={value:function(a,c,d){function e(a,b){return new k(function(b,c){var d=document.createElement("img");d.onload=function(){b({element:this,x:a.x,y:a.y,width:a.width,height:a.height})},d.onerror=function(a){c(a)},d.crossOrigin="anonymous",d.src=a.url})}function f(a,b){return k(function(b,c){var d=new XMLHttpRequest;d.open("GET",a.url+"?_="+Date.now(),!0),d.responseType="blob",d.onreadystatechange=function(){if(4===d.readyState&&200===d.status){var c=d.response,e=document.createElement("img");e.src=l.createObjectURL(c),e.onload=function(){l.revokeObjectURL(e.src),b({element:e,x:a.x,y:a.y,width:a.width,height:a.height})}}},d.send()})}function g(a){function b(c){var d=c.data;if(d.image){a.renderNode(c);var d=c.data,e=d.image,f=d.imageSize,g=c.getRenderBox("ImageRenderer",a.getRenderContainer()),h={url:e,width:f.width,height:f.height,x:-j.getBoundaryBox().x+g.x,y:-j.getBoundaryBox().y+g.y};o.push(h)}if("collapse"!==d.expandState)for(var i=c.getChildren(),k=0;kt.width?c.width:t.width,v=c&&c.height&&c.height>t.height?c.height:t.height,w=c&&c.width&&c.width>t.width?(c.width-t.width)/2:0,x=c&&c.height&&c.height>t.height?(c.height-t.height)/2:0,y=t.dataUrl,z=t.imagesInfo,A=20;if(o.width=u+2*A,o.height=v+2*A,r){return e({url:r[1]}).then(function(a){return d(p,p.createPattern(a.element,"repeat")),n()})}return d(p,s.toString()),n()}var i=b.r(17),j=b.r(12),k=b.r(25),l=window.URL||window.webkitURL||window;j.registerProtocol("png",d.exports={fileDescription:"PNG 图片",fileExtension:".png",mineType:"image/png",dataType:"base64",encode:h})}},b[67]={value:function(a,c,d){function e(a,b,c){function d(a,b){var c;try{c=b.getScreenCTM().inverse()}catch(a){throw new Error("Can not inverse source element' ctm.")}return c.multiply(a.getScreenCTM())}function e(a,b){b instanceof Function||(b=function(){});for(var c=[],d=[],e=[],f=0,g=a.length;f0?"right":"left":a.parent.getLayout()},getConnect:function(a){return 1==a.getLevel()?"arc":"under"}})}},b[70]={value:function(a,c,d){b.r(31).register("filetree",{getLayout:function(a){return a.getData("layout")?a.getData("layout"):a.isRoot()?"bottom":"filetree-down"},getConnect:function(a){return 1==a.getLevel()?"poly":"l"}})}},b[71]={value:function(a,c,d){b.r(31).register("fish-bone",{getLayout:function(a){if(a.getData("layout"))return a.getData("layout");var b=a.getLevel();return 0===b?"fish-bone-master":1===b?"fish-bone-slave":a.getLayoutPointPreview().y>0?"filetree-up":"filetree-down"},getConnect:function(a){switch(a.getLevel()){case 1:return"fish-bone-master";case 2:return"line";default:return"l"}}})}},b[72]={value:function(a,c,d){b.r(31).register("right",{getLayout:function(a){return a.getData("layout")||"right"},getConnect:function(a){return 1==a.getLevel()?"arc":"bezier"}})}},b[73]={value:function(a,c,d){b.r(31).register("structure",{getLayout:function(a){return a.getData("layout")||"bottom"},getConnect:function(a){return"poly"}})}},b[74]={value:function(a,c,d){b.r(31).register("tianpan",{getLayout:function(a){return a.getData("layout")?a.getData("layout"):0===a.getLevel()?"tianpan":a.parent.getLayout()},getConnect:function(a){return"arc_tp"}})}},b[75]={value:function(a,c,d){var e=b.r(32);["classic","classic-compact"].forEach(function(a){var b="classic-compact"==a;e.register(a,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":b?[10,25]:[15,25],"root-margin":b?[15,25]:[30,100],"root-radius":30,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":b?[5,15]:[6,20],"main-margin":b?[5,10]:20,"main-radius":10,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"white","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":[5,10],"sub-margin":b?[5,10]:[15,20],"sub-tree-margin":30,"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})})}},b[76]={value:function(a,c,d){b.r(32).register("fish",{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":[35,35],"root-margin":30,"root-radius":100,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":[6,20],"main-margin":[20,20],"main-radius":5,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"black","sub-background":"white","sub-stroke":"white","sub-font-size":12,"sub-padding":[5,10],"sub-margin":[10],"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":3,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})}},b[77]={value:function(a,c,d){function e(a,b,c){return h.Color.createHSL(a,b,c)}function f(a,b){return{background:"#fbfbfb","root-color":"white","root-background":e(a,37,60),"root-stroke":e(a,37,60),"root-font-size":16,"root-padding":b?[6,12]:[12,24],"root-margin":b?10:[30,100],"root-radius":5,"root-space":10,"main-color":"black","main-background":e(a,33,95),"main-stroke":e(a,37,60),"main-stroke-width":1,"main-font-size":14,"main-padding":[6,20],"main-margin":b?8:20,"main-radius":3,"main-space":5,"sub-color":"black","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":b?[3,5]:[5,10],"sub-margin":b?[4,8]:[15,20],"sub-radius":5,"sub-space":5,"connect-color":e(a,37,60),"connect-width":1,"connect-radius":5,"selected-stroke":e(a,26,30),"selected-stroke-width":"3","blur-selected-stroke":e(a,10,60),"marquee-background":e(a,100,80).set("a",.1),"marquee-stroke":e(a,37,60),"drop-hint-color":e(a,26,35),"drop-hint-width":5,"order-hint-area-color":e(a,100,30).set("a",.5),"order-hint-path-color":e(a,100,25),"order-hint-path-width":1,"text-selection-color":e(a,100,20),"line-height":1.5}}var g,h=b.r(17),i=b.r(32),j={red:0,soil:25,green:122,blue:204,purple:246,pink:334};for(g in j)i.register("fresh-"+g,f(j[g])),i.register("fresh-"+g+"-compat",f(j[g],!0))}},b[78]={value:function(a,c,d){var e=b.r(32);["snow","snow-compact"].forEach(function(a){var b="snow-compact"==a;e.register(a,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":b?[5,10]:[15,25],"root-margin":b?15:30,"root-radius":5,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":b?[4,10]:[6,20],"main-margin":b?[5,10]:[20,40],"main-radius":5,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"black","sub-background":"white","sub-stroke":"white","sub-font-size":12,"sub-padding":[5,10],"sub-margin":b?[5,10]:[10,20],"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})})}},b[79]={value:function(a,c,d){var e=b.r(32);["tianpan","tianpan-compact"].forEach(function(a){var b="tianpan-compact"==a;e.register(a,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":25,"root-padding":b?15:20,"root-margin":b?[15,25]:100,"root-radius":30,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","root-shape":"circle","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":15,"main-padding":b?10:12,"main-margin":b?10:12,"main-radius":10,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","main-shape":"circle","sub-color":"#333","sub-background":"#99ca6a","sub-stroke":"#a4c5c0","sub-font-size":13,"sub-padding":5,"sub-margin":b?6:10,"sub-tree-margin":30,"sub-radius":5,"sub-space":5,"sub-shadow":"rgba(0, 0, 0, .25)","sub-shape":"circle","connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.4})})}},b[80]={value:function(a,c,d){b.r(32).register("wire",{background:"black",color:"#999",stroke:"none",padding:10,margin:20,"font-size":14,"connect-color":"#999","connect-width":1,"selected-background":"#999","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})}},b[81]={value:function(a,c,d){function e(){return{background:"#fbfbfb","root-color":"white","root-background":"rgb(115, 161, 191)","root-stroke":"rgb(115, 161, 191)","root-font-size":16,"root-padding":[12,24],"root-margin":[30,100],"root-radius":5,"root-space":10,"main-color":"black","main-background":"rgb(238, 243, 246)","main-stroke":"rgb{115, 161, 191)","main-stroke-width":1,"main-font-size":14,"main-padding":[6,20],"main-margin":20,"main-radius":3,"main-space":5,"sub-color":"black","sub-background":"transparent","sub-stroke":"none","sub-font-size":14,"sub-padding":[5,10],"sub-margin":[15,20],"sub-radius":5,"sub-space":5,"connect-color":"rgb(115, 161, 191)","connect-width":1,"connect-radius":5,"selected-stroke":"rgb{115, 161, 191)","selected-stroke-width":"1","blur-selected-stroke":"rgb(143, 155, 163)","marquee-background":"rgba(153, 214, 255, 0.1)","marquee-stroke":"rgb(115, 161 191)","drop-hint-color":"rgb(66, 94, 112)","drop-hint-width":5,"order-hint-area-color":"rgba(0, 92, 153, 0.5)","order-hint-path-color":"rgb(0, 76, 128)","order-hint-path-width":1,"text-selection-color":"rgb(0, 61, 102)","line-height":1.5,"expander-outline-stroke":"gray","expander-outline-fill":"white","expander-sign-stroke":"gray"}}var f=b.r(32),g=e();g.background="#E8F2FF",g["root-color"]="#FFFFFF",g["root-background"]="#448AFF",g["root-stroke"]="#448AFF",g["main-color"]="#505F79",g["main-background"]="#FFFFFF",g["main-stroke"]="#D6D9DD",g["sub-color"]="#505F79",g["connect-color"]="#D6D9DD",g["selected-stroke"]="#172B4D",g["blur-selected-stroke"]="#A7AFBC",g["expander-outline-stroke"]="#D6D9DD",g["expander-outline-fill"]="#E8F2FF",g["expander-sign-stroke"]="#D6D9DD",f.register("wiz-blue",g);var h=e();h.background="#FEF5E2",h["root-color"]="#FFFFFF",h["root-background"]="#BB9325",h["root-stroke"]="#BB9325",h["main-color"]="#505F79",h["main-background"]="#F7DD98",h["main-stroke"]="#F7DD98",h["sub-color"]="#505F79",h["connect-color"]="#BB9325",h["selected-stroke"]="#448AFF",h["blur-selected-stroke"]="#D6D9DD",h["expander-outline-stroke"]="#BB9325",h["expander-outline-fill"]="#FEF5E2",h["expander-sign-stroke"]="#BB9325",f.register("wiz-golden",h);var i=e();i.background="#FFFFFF",i["root-color"]="#247056",i["root-background"]="#CEF2DF",i["root-stroke"]="#0E9C6C",i["main-color"]="#008399",i["main-background"]="#E6FCFF",i["main-stroke"]="#00A3BF",i["sub-color"]="#505F79",i["connect-color"]="#A7AFBC",i["selected-stroke"]="#448AFF",i["blur-selected-stroke"]="#D6D9DD",i["expander-outline-stroke"]="#A7AFBC",i["expander-outline-fill"]="#FFFFFF",i["expander-sign-stroke"]="#A7AFBC",f.register("wiz-lightGreen",i);var j=e();j.background="#FDF6F6",j["root-color"]="#EF403A",j["root-background"]="#FFFFFF",j["root-stroke"]="#FFFFFF",j["main-color"]="#DA251F",j["main-background"]="#FFDBDB",j["main-stroke"]="#FFDBDB",j["sub-color"]="#EF403A",j["connect-color"]="#FFBDAD",j["selected-stroke"]="#448AFF",j["blur-selected-stroke"]="#D6D9DD",j["expander-outline-stroke"]="#FFBDAD",j["expander-outline-fill"]="#FDF6F6",j["expander-sign-stroke"]="#FFBDAD",f.register("wiz-sakura",j);var k=e();k.background="#172B4D",k["root-color"]="#172B4D",k["root-background"]="#88B5FF",k["root-stroke"]="#88B5FF",k["main-color"]="#FFFFFF",k["main-background"]="#448AFF",k["main-stroke"]="#448AFF",k["sub-color"]="#88B5FF",k["connect-color"]="#88B5FF",k["selected-stroke"]="#FFFFFF",k["blur-selected-stroke"]="#A7AFBC",k["expander-outline-stroke"]="#88B5FF",k["expander-outline-fill"]="#88B5FF",k["expander-sign-stroke"]="#172B4D",f.register("wiz-darkBlue",k);var l=e();l.background="#E6E9ED",l["root-color"]="#FFFFFF",l["root-background"]="#DA251F",l["root-stroke"]="#DA251F",l["main-color"]="#FFFFFF",l["main-background"]="#272F40",l["main-stroke"]="#272F40",l["sub-color"]="#172B4D",l["connect-color"]="#272F40",l["selected-stroke"]="#448AFF",l["blur-selected-stroke"]="#A7AFBC",l["expander-outline-stroke"]="#272F40",l["expander-outline-fill"]="#E6E9ED",l["expander-sign-stroke"]="#272F40",f.register("wiz-black",l);var m=e();m.background="#E9DFFF",m["root-color"]="#8251DD",m["root-background"]="#FFFFFF",m["root-stroke"]="#FFFFFF",m["main-color"]="#6238B0",m["main-background"]="#DDC4FF",m["main-stroke"]="#DDC4FF",m["sub-color"]="#6238B0",m["connect-color"]="#8251DD",m["selected-stroke"]="#448AFF",m["blur-selected-stroke"]="#A7AFBC",m["expander-outline-stroke"]="#8251DD",m["expander-outline-fill"]="#E9DFFF",m["expander-sign-stroke"]="#8251DD",f.register("wiz-purple",m);var n=e();n.background="#272F40",n["root-color"]="#FFFFFF",n["root-background"]="#448AFF",n["root-stroke"]="#448AFF",n["main-color"]="#172B4D",n["main-background"]="#D6D9DD",n["main-stroke"]="#D6D9DD",n["sub-color"]="#D6D9DD",n["connect-color"]="#D6D9DD",n["selected-stroke"]="#1B63DC",n["blur-selected-stroke"]="#A7AFBC",n["expander-outline-stroke"]="#D6D9DD",n["expander-outline-fill"]="#272F40",n["expander-sign-stroke"]="#D6D9DD",f.register("wiz-cyan",n);var o=e();o.background="#E6E9ED",o["root-color"]="#FFFFFF",o["root-background"]="#FF8B00",o["root-stroke"]="#FF8B00",o["main-color"]="#272F40",o["main-background"]="#FFFFFF",o["main-stroke"]="#FFFFFF",o["sub-color"]="#272F40",o["connect-color"]="#A7AFBC",o["selected-stroke"]="#448AFF",o["blur-selected-stroke"]="#A7AFBC",o["expander-outline-stroke"]="#A7AFBC",o["expander-outline-fill"]="#E6E9ED",o["expander-sign-stroke"]="#A7AFBC",f.register("wiz-silver",o);var p=e();p.background="#247056",p["root-color"]="#247056",p["root-background"]="#FFFFFF",p["root-stroke"]="#FFFFFF",p["main-color"]="#247056",p["main-background"]="#F7DD98",p["main-stroke"]="#F7DD98",p["sub-color"]="#FFECC6",p["connect-color"]="#F7DD98",p["selected-stroke"]="#172B4D",p["blur-selected-stroke"]="#A7AFBC",p["expander-outline-stroke"]="#F7DD98",p["expander-outline-fill"]="#247056",p["expander-sign-stroke"]="#F7DD98",f.register("wiz-green",p),f.register("wiz",i);var q=e();q.background="#23272e",q["root-color"]="#2d3138",q["root-background"]="#97a3b8",q["root-stroke"]="#97a3b8",q["main-color"]="#97a3b8",q["main-background"]="#2b2f38",q["main-stroke"]="#2b2f38",q["sub-color"]="#97a3b8",q["connect-color"]="#404959",q["selected-stroke"]="#448aff",q["blur-selected-stroke"]="#627088",q["expander-outline-stroke"]="#97a3b8",q["expander-outline-fill"]="#97a3b8",q["expander-sign-stroke"]="#2d3138",f.register("wiz-windows-night",q);var r=e();r.background="#272727",r["root-color"]="#000000",r["root-background"]="#848484",r["root-stroke"]="#848484",r["main-color"]="#a6a6a6",r["main-background"]="#333333",r["main-stroke"]="#333333",r["sub-color"]="#a6a6a6",r["connect-color"]="#474747",r["selected-stroke"]="#448aff",r["blur-selected-stroke"]="#5c5c5c",r["expander-outline-stroke"]="#848484",r["expander-outline-fill"]="#848484",r["expander-sign-stroke"]="#000000",f.register("wiz-mac-night",r);var s=e();s.background="#1f2126",s["root-color"]="#353c47",s["root-background"]="#7990b6",s["root-stroke"]="#7990b6",s["main-color"]="#7990b6",s["main-background"]="#32353e",s["main-stroke"]="#32353e",s["sub-color"]="#7990b6",s["connect-color"]="rgba(68, 138, 255, .2)",s["selected-stroke"]="#448aff",s["blur-selected-stroke"]="#536178",s["expander-outline-stroke"]="#7990b6",s["expander-outline-fill"]="#7990b6",s["expander-sign-stroke"]="#353c47",f.register("wiz-ios-night",s);var t=e();t.background="#1f2126",t["root-color"]="#455a64",t["root-background"]="#7990b6",t["root-stroke"]="#7990b6",t["main-color"]="#7990b6",t["main-background"]="#353c47",t["main-stroke"]="#353c47",t["sub-color"]="#7990b6",t["connect-color"]="#273d62",t["selected-stroke"]="#448aff",t["blur-selected-stroke"]="#536178",t["expander-outline-stroke"]="#7990b6",t["expander-outline-fill"]="#7990b6",t["expander-sign-stroke"]="#455a64",f.register("wiz-android-night",t)}};var c={"expose-kityminder":34};a("expose-kityminder")}(); \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-black.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-black.svg new file mode 100644 index 000000000..c6fd85adf --- /dev/null +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-black.svg @@ -0,0 +1,87 @@ + + + 主题6 + + + + + + + + + + + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-blue.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-blue.svg new file mode 100644 index 000000000..16903b8e7 --- /dev/null +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-blue.svg @@ -0,0 +1,87 @@ + + + 主题1 + + + + + + + + + + + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-cyan.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-cyan.svg new file mode 100644 index 000000000..c278a74f5 --- /dev/null +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-cyan.svg @@ -0,0 +1,87 @@ + + + 主题8 + + + + + + + + + + + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-darkBlue.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-darkBlue.svg new file mode 100644 index 000000000..f9d51facc --- /dev/null +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-darkBlue.svg @@ -0,0 +1,87 @@ + + + 主题5 + + + + + + + + + + + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-golden.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-golden.svg new file mode 100644 index 000000000..3a8e91236 --- /dev/null +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-golden.svg @@ -0,0 +1,88 @@ + + + 主题2 + + + + + + + + + + + + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-green.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-green.svg new file mode 100644 index 000000000..fdcbd2ee4 --- /dev/null +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-green.svg @@ -0,0 +1,87 @@ + + + 主题10 + + + + + + + + + + + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-lightGreen-night.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-lightGreen-night.svg new file mode 100644 index 000000000..e360263fa --- /dev/null +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-lightGreen-night.svg @@ -0,0 +1,87 @@ + + + 主题夜间 + + + + + + + + + + + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-lightGreen.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-lightGreen.svg new file mode 100644 index 000000000..45a138027 --- /dev/null +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-lightGreen.svg @@ -0,0 +1,87 @@ + + + 主题3 + + + + + + + + + + + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-purple.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-purple.svg new file mode 100644 index 000000000..99432a92c --- /dev/null +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-purple.svg @@ -0,0 +1,87 @@ + + + 主题7 + + + + + + + + + + + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-sakura.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-sakura.svg new file mode 100644 index 000000000..3f460bd78 --- /dev/null +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-sakura.svg @@ -0,0 +1,87 @@ + + + 主题4 + + + + + + + + + + + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-silver.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-silver.svg new file mode 100644 index 000000000..8ee1e2ba1 --- /dev/null +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-silver.svg @@ -0,0 +1,87 @@ + + + 主题9 + + + + + + + + + + + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/wizEditorForMac.js b/share/files/wizeditor/wizEditorForMac.js index bf9e41dab..f6c59b4d5 100644 --- a/share/files/wizeditor/wizEditorForMac.js +++ b/share/files/wizeditor/wizEditorForMac.js @@ -1,8 +1,8 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=558)}([function(e,t,n){var r=n(6),o=n(12),i=n(21),a=n(18),l=n(27),s=function e(t,n,s){var c,d,u,f,h=t&e.F,p=t&e.G,m=t&e.P,g=t&e.B,v=p?r:t&e.S?r[n]||(r[n]={}):(r[n]||{}).prototype,b=p?o:o[n]||(o[n]={}),y=b.prototype||(b.prototype={});for(c in p&&(s=n),s)u=((d=!h&&v&&void 0!==v[c])?v:s)[c],f=g&&d?l(u,r):m&&"function"==typeof u?l(Function.call,u):u,v&&a(v,c,u,t&e.U),b[c]!=u&&i(b,c,f),m&&y[c]!=u&&(y[c]=u)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){var n={version:"1.0.60.9",wizContentVersion:"0.1.7",wizPainterVersion:"0.1.9",minderVersion:"1.4.50.4",WIZ_DOCUMENT_MIN_VERSION:{OUTLINE:"1.0.60"},AMEND_TIME_SPACE:18e4,AMEND_BATCH_TIME_SPACE:3e4,SPACE_CHAR:" ",SPACE_CHAR_REG:/\u00A0/gi,FILL_CHAR:"​",FILL_CHAR_REG:new RegExp("​","ig"),WIZ_TABLE_IN_MARKDOWN_SRC_REG:"
]*wiz-table-container[^>]*>(.|\\n)*?
",EMPTY_NOTE_TEMPLATE:"${body}",AMEND:{INFO_SPACE:0,INFO_TIMER:300},ATTR:{IMG:"data-wiz-img",IMG_MASK:"data-wiz-img-mask",IMG_RATE:"data-wiz-img-rate",IMG_EDITING:"data-wiz-img-editing",SPAN:"data-wiz-span",SPAN_USERID:"data-wiz-user-id",SPAN_INSERT:"data-wiz-insert",SPAN_DELETE:"data-wiz-delete",SPAN_PASTE:"data-wiz-paste",SPAN_PASTE_TYPE:"data-wiz-paste-type",SPAN_PASTE_ID:"data-wiz-paste-id",SPAN_TIMESTAMP:"data-wiz-amend-time",TODO_ID:"wiz_todo_id",TODO_CHECK:"data-wiz-check",WIZ_DOCUMENT_MIN_VERSION:"data-wiz-document-min-version",WIZ_DOCUMENT_TYPE:"data-wiz-document-type"},CLASS:{BLOCK_SCROLL:"wiz-block-scroll",CODE_CONTAINER:"wiz-code-container",CODE_CONTAINER_PASTE:"wiz-code-container-paste",CODE_CONTAINER_OLD:"prettyprint",CODE_MIRROR:"CodeMirror",CODE_MIRROR_LINE:"CodeMirror-line",CODE_MIRROR_MEASURE:"CodeMirror-measure",CODE_MIRROR_GUTTER:"CodeMirror-gutter-wrapper",CODE_MIRROR_HSCROLL:"CodeMirror-scroll",CODE_TOOLS:"wiz-code-tools",CODE_TOOLS_INFO:"wiz-code-tools-info",CODE_TOOLS_MODE:"wiz-code-tools-mode",CODE_TOOLS_THEME:"wiz-code-tools-theme",CODE_TOOLS_MORE:"wiz-code-tools-more",EDITOR_CONTAINER:"wiz-editor-container",EDITOR_PREVIEW_SHOW:"wiz-editor-preview-show",HOTKEY:"hotkey",HOTKEY_LAYER:"hotkey-layer",IMG_ATTACHMENT:"wiz-img-attachment",IMG_NOT_DRAG:"wiz-img-cannot-drag",IMG_RESIZE_ACTIVE:"wiz-img-resize-active",IMG_RESIZE_CONTAINER:"wiz-img-resize-container",IMG_RESIZE_HANDLE:"wiz-img-resize-handle",MARKDOWN_BODY:"markdown-body",MENU_PLUGIN_CONTAINER:"wiz-menu-plugin-container",MENU_PLUGIN_OPTIONS:"wiz-menu-plugin-options",MENU_PLUGIN_OPTIONS_ITEM:"wiz-menu-plugin-options-item",ORDER_LIST_LEVEL:["wiz-list-level3","wiz-list-level1","wiz-list-level2"],ORDER_LIST_ALIGN_STYLE:"wiz-list-align-style",READONLY:"wiz-readonly",EDITING:"wiz-editing",SELECTED_CELL:"wiz-selected-cell",SELECTED_CELL_MULTI:"wiz-selected-cell-multi",SELECT_PLUGIN_CONTAINER:"wiz-select-plugin-container",SELECT_PLUGIN_HEADER:"wiz-select-plugin-header",SELECT_PLUGIN_HEADER_TEXT:"wiz-select-plugin-header-text",SELECT_PLUGIN_MENU:"wiz-select-plugin-menu",SVG_IMAGE:"wiz-svg-image",SVG_TEMPLATE:"wiz-svg-template",TEMPLATE_EDITABLE:"wiz-template-editable",TABLE_CONTAINER:"wiz-table-container",TABLE_TOOLS:"wiz-table-tools",TABLE_BODY:"wiz-table-body",TABLE_MENU_BUTTON:"wiz-table-menu-button",TABLE_MENU_ITEM:"wiz-table-menu-item",TABLE_MOVING:"wiz-table-moving",TODO_ACCOUNT:"wiz-todo-account",TODO_AVATAR:"wiz-todo-avatar",TODO_CHECKBOX:"wiz-todo-checkbox",TODO_CHECK_IMG_OLD:"wiz-todo-img",TODO_DATE:"wiz-todo-dt",TODO_LAYER:"wiz-todo-layer",TODO_MAIN:"wiz-todo-main",TODO_LABEL_OLD:"wiz-todo-label",TODO_CHECKED:"wiz-todo-checked",TODO_UNCHECKED:"wiz-todo-unchecked",TODO_CHECKED_OLD:"wiz-todo-label-checked",TODO_UNCHECKED_OLD:"wiz-todo-label-unchecked",TODO_TAIL_OLD:"wiz-todo-tail",TODO_USER_AVATAR:"wiz-todo-avatar-",TODO_USER_INFO:"wiz-todo-completed-info",TOOL_TIP:"wiz-tooltip",TOOL_TIP_ITEM:"wiz-tooltip-item",TOOL_TIP_ARROW:"wiz-tooltip-arrow",TOOL_TIP_ARROW_BG:"wiz-tooltip-arrow-bg",WIZ_BODY:"wiz-editor-body",WIZ_CONTENT_IFRAME_ACTIVE:"wiz-content-active",WIZ_EIDTOR_BODY_CONTAINER:"wiz-editor-body-container",WIZ_EIDTOR_IFRAME:"wiz-editor-iframe",WIZ_EIDTOR_PREVIEW_CONTAINER:"wiz-editor-preview-container",WIZ_EIDTOR_TOOlBAR_CONTAINER:"wiz-editor-toolbar-container",WIZ_EIDTOR_TOOlBAR_MAIN:"wiz-editor-toolbar-main",WIZ_EIDTOR_TOOlBAR_SIDE:"wiz-editor-toolbar-side"},CLIENT_EVENT:{WizEditorClickImg:"WizEditorClickImg",WizEditorClickSvg:"WizEditorClickSvg",WizEditorAfterCopied:"WizEditorAfterCopied",WizEditorPaste:"WizEditorPaste",WizEditorSetScrollTop:"WizEditorSetScrollTop",WizEditorTrackEvent:"WizEditorTrackEvent",WizMarkdownRender:"WizMarkdownRender",WizReaderClickImg:"WizReaderClickImg",IosPrompt:"IosPrompt"},CODE:{StorageKey:{Mode:"wiz-code-mode",Theme:"wiz-code-theme",Wrap:"wiz-code-wrap"}},COLOR:["#CB3C3C","#0C9460","#FF3399","#FF6005","#8058BD","#009999","#8AA725","#339900","#CC6600","#3BBABA","#D4CA1A","#2389B0","#006699","#FF8300","#2C6ED5","#FF0000","#B07CFF","#CC3399","#EB4847","#3917E6"],CSS:{DEFAULT_FONT:'Helvetica, "Hiragino Sans GB", "微软雅黑", "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif',IMG:{SPAN:{position:"relative",display:"inline-block"},MASK:{position:"absolute",width:"100% !important",height:"100% !important",top:"0",left:"0",opacity:".5",filter:"alpha(opacity=50)",border:"2px solid","box-sizing":"border-box","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box"}},IMG_DELETED:{background:"#fdc6c6 url(data:image/gif;base64,R0lGODlhDwAPAIABAIcUFP///yH5BAEKAAEALAAAAAAPAA8AAAIajI8IybadHjxyhjox1I0zH1mU6JCXCSpmUAAAOw==)","border-color":"#E47070"},IMG_INSERT:{background:"#ccffcc","border-color":"#00AA00"},TODO_LIST:{IMG_WIDTH:40},Z_INDEX:{amendInfo:150,tableBorder:105,tableColRowLine:120,tableRangeDot:110,tableTDBefore:100,tableTools:130,tableToolsArrow:10}},DOCUMENT_TYPE:{COMMON:"common",OUTLINE:"outline"},EVENT:{BEFORE_GET_DOCHTML:"BEFORE_GET_DOCHTML",BEFORE_SAVESNAP:"BEFORE_SAVESNAP",AFTER_INSERT_DOM:"AFTER_INSERT_DOM",AFTER_RESTORE_HISTORY:"AFTER_RESTORE_HISTORY",AUTO_EDIT:"AUTO_EDIT",EXEC_COMMEND:"EXEC_COMMEND",ON_DBLCLICK:"ON_DBLCLICK",ON_CLICK:"ON_CLICK",ON_COMPOSITION_START:"ON_COMPOSITION_START",ON_COMPOSITION_END:"ON_COMPOSITION_END",ON_COPY:"ON_COPY",ON_CUT:"ON_CUT",ON_DOM_SUBTREE_MODIFIED:"ON_DOM_SUBTREE_MODIFIED",ON_DRAG_START:"ON_DRAG_START",ON_DRAG_ENTER:"ON_DRAG_ENTER",ON_DROP:"ON_DROP",ON_EXEC_COMMAND:"ON_EXEC_COMMAND",ON_KEY_DOWN:"ON_KEY_DOWN",ON_KEY_UP:"ON_KEY_UP",ON_MARKER_INITIATED:"ON_MARKER_INITIATED",ON_MENU_PLUGIN_HIDE:"ON_MENU_PLUGIN_HIDE",ON_MENU_PLUGIN_SHOW:"ON_MENU_PLUGIN_SHOW",ON_MOUSE_DOWN:"ON_MOUSE_DOWN",ON_MOUSE_MOVE:"ON_MOUSE_MOVE",ON_MOUSE_OVER:"ON_MOUSE_OVER",ON_MOUSE_UP:"ON_MOUSE_UP",ON_ORIENTATION_CHANGE:"ON_ORIENTATION_CHANGE",ON_PASTE:"ON_PASTE",ON_SCROLL:"ON_SCROLL",ON_SELECT_PLUGIN_CHANGE:"ON_SELECT_PLUGIN_CHANGE",ON_SELECT_PLUGIN_HIDE:"ON_SELECT_PLUGIN_HIDE",ON_SELECT_PLUGIN_SHOW:"ON_SELECT_PLUGIN_SHOW",ON_SELECTION_CHANGE:"ON_SELECTION_CHANGE",ON_SELECT_START:"ON_SELECT_START",ON_TEXT_INPUT:"ON_TEXT_INPUT",ON_TOUCH_START:"ON_TOUCH_START",ON_TOUCH_END:"ON_TOUCH_END",UPDATE_RENDER:"UPDATE_RENDER"},HISTORY:{TYPE:{CODE_MIRROR:"CODE_MIRROR",COMMON:"COMMON"}},ID:{BODY_TMP_BOTTOM_STYLE:"wiz-tmp-bottom-style",AMEND_INFO:"wiz-amend-info",AMEND_INFO_SINGLE:"wiz-amend-info-single",AMEND_INFO_MULTI:"wiz-amend-info-multi",AMEND_INFO_NAME:"wiz-amend-info-name",AMEND_INFO_IMG:"wiz-amend-info-image",AMEND_INFO_CONTENT:"wiz-amend-info-content",AMEND_INFO_TIME:"wiz-amend-info-time",AMEND_INFO_TOOLS:"wiz-amend-info-tools",AMEND_INFO_ACCEPT:"wiz-amend-info-accept",AMEND_INFO_REFUSE:"wiz-amend-info-refuse",AMEND_USER_INFO:"wiz-amend-user",CODE_STYLE:"wiz_code_style",FORMAT_PAINTER_STYLE:"wiz_format_painter_style",IFRAME_FOR_SAVE:"wiz-iframe-for-save",MARKER_ROOT:"wiz-painter-root",MARKER_STYLE:"wiz-marker-style",PURE_READ_STYLE:"wiz-pure-read-style",TABLE_RANGE_BORDER:"wiz-table-range-border",TABLE_ROW_LINE:"wiz-table-row-line",TABLE_COL_LINE:"wiz-table-col-line",TODO_STYLE:"wiz_todo_style",TODO_STYLE_OLD:"wiz_todo_style_id",TODO_AVATAR_STYLE:"wiz_todo_style_avatar_",TMP_STYLE_PRE:"wiz_tmp_style_",WIZ_DEFAULT_STYLE:"wiz_custom_css",WIZ_EIDTOR_FRAME_STYLE:"wiz-editor-frame-style",WIZ_EIDTOR_FRAME_BODY_STYLE:"wiz-editor-frame-body-style",WIZ_EIDTOR_PREVIEW_STYLE:"wiz-editor-preview-style",WIZ_EIDTOR_TOOlBAR_STYLE:"wiz-editor-toolbar-style",WIZ_TEMPLATE_INFO:"wiz-template-info"},NAME:{CODE_STYLE:"wiz_code_style",TMP_STYLE:"wiz_tmp_editor_style",UNSAVE_STYLE:"wiz_unsave_style"},NOTE_READER_TYPE:{COMMON:"common",MARKDOWN:"markdown",MATHJAX:"mathjax",OUTLINE:"outline"},NOTE_EDITOR_TYPE:{COMMON:"common",MARKDOWN:"markdown",OUTLINE:"outline"},MENU_PLUGIN:{TYPE:{MENU:"menu",SELECT:"select"}},SELECT_PLUGIN:{TYPE:{COMMON:"common",ICON:"icon"}},TAG:{CODE_MIRROR:"wiz_code_mirror",MARKER:"wiz_marker",TMP_TAG:"wiz_tmp_tag",TMP_PLUGIN_TAG:"wiz_tmp_plugin_tag",TMP_HIGHLIGHT_TAG:"wiz_tmp_highlight_tag"},TYPE:{EDITOR_EVENT:{SelectionChange:"selectionchange",HistoryUndo:"historyUndo"},IMG_DELETE:"delete",IMG_INSERT:"insert",LAYOUT:{BOTTOM:"BOTTOM",BOTTOM_END:"BOTTOM_END",BOTTOM_START:"BOTTOM_START",TOP:"TOP",TOP_END:"TOP_END",TOP_START:"TOP_START",LEFT_START:"LEFT_START",LEFT_END:"LEFT_END",RIGHT_START:"RIGHT_START",RIGHT_END:"RIGHT_END"},PASTE:{START:"start",END:"end",CONTENT:"content"},TABLE:{COPY:"copy",PASTE:"paste",CLEAR_CELL:"clearCell",MERGE_CELL:"mergeCell",SPLIT_CELL:"splitCell",INSERT_ROW_UP:"insertRowUp",INSERT_ROW_DOWN:"insertRowDown",INSERT_COL_LEFT:"insertColLeft",INSERT_COL_RIGHT:"insertColRight",DELETE_ROW:"deleteRow",DELETE_COL:"deleteCol",SET_CELL_BG:"setCellBg",SET_CELL_ALIGN:"setCellAlign",DISTRIBUTE_COLS:"distributeCols",DELETE_TABLE:"deleteTable"}}};e.exports=n},function(e,t){function n(e,t){for(var n=0;ne?1:-1}}var i=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;"wiz".trim||(String.prototype.trim=function(){return this.replace(i,"")});var a=/[\-\[\]{}()*+?.,\\^$|#\s]/g;try{"abc".escapeRegex()}catch(e){String.prototype.escapeRegex=function(){return this.toString().replace(a,"\\$&")}}try{"abc".escapeReplace()}catch(e){String.prototype.escapeReplace=function(){return this.toString().replace(/\$/gi,"$$$$")}}Array.prototype.indexOf||(Array.prototype.indexOf=function(e){for(var t=0;t=48&&t<=57||t>=65&&t<=90||t>=96&&t<=107||t>=109&&t<=111||t>=186&&t<=192||t>=219&&t<=222||229===t||0===t||13===t||32===t)},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},isEmpty:function(e){if(!e)return!0;var t=new RegExp("[\r\n"+r.FILL_CHAR+"]","ig"),n=/\r?\n/gi.test(e),o=e.replace(t,""),i=0===e.replace(t,"").trim().length;return 0===o.length||n&&i},isSameAmendTime:function(e,t){if(!e||!t)return!1;var n=l.getDateForTimeStr(e),o=l.getDateForTimeStr(t);return Math.abs(n-o)<=r.AMEND_BATCH_TIME_SPACE},checkChar:function(e,t){var n,r,o,i;for(n=0,r=t.length;n1?t[n][1]:null)&&e===o)return!0;if(null!==i&&e>=o&&e<=i)return!0}return!1},compareVersion:function(e,t){var n,r,o,i;for(e=e.split("."),t=t.split("."),n=0,r=e.length;ni)return 1}return e.length=0;t--)n^=(n<<5)+e.charCodeAt(t)+(n>>2);return 2147483647&n},getTime:function(){var e=new Date;return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())+" "+t(e.getHours())+":"+t(e.getMinutes())+":"+t(e.getSeconds());function t(e){var t=e.toString();return 1===t.length?"0"+t:t}},getDateForTimeStr:function(e){return new Date(Date.parse(e.replace(/-/g,"/")))},listToMap:function(e){if(!e)return{};var t,n,r,o={};for(t=0,n=(e=l.isArray(e)?e:e.split(",")).length;t/g,">")+"";else{var h=0===f?"span":"div";o="<"+h+">"+n.replace(/&/g,"&").replace(//g,">")+""}else o="
";a.push(o)}return a.join("")},dom:{insertToHead:function(e,t){t.querySelector("HEAD").appendChild(e)}},math:{getRandomArbitrary:function(e,t){return l.math.random()*(t-e)+e},random:function(){return o()()}}};e.exports=l},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){var r=n(16),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),i(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(9);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return"object"===n(e)?null!==e:"function"==typeof e}},function(e,t,n){var r=n(73)("wks"),o=n(43),i=n(6).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(29),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,r){"use strict";function o(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var l;"object"===t(e)?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{l=n(442).Buffer}catch(e){}function s(e,t,n){for(var r=0,o=Math.min(e.length,n),i=t;i=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function c(e,t,n,r){for(var o=0,i=Math.min(e.length,n),a=t;a=49?l-49+10:l>=17?l-17+10:l}return o}a.isBN=function(e){return e instanceof a||null!==e&&"object"===t(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,n,r){if("number"==typeof e)return this._initNumber(e,n,r);if("object"===t(e))return this._initArray(e,n,r);"hex"===n&&(n=16),o(n===(0|n)&&n>=2&&n<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===n?this._parseHex(e,i):this._parseBase(e,n,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),n,r)},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(o(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(o("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r=0;r-=3)a=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[i]|=a<>>26-l&67108863,(l+=24)>=26&&(l-=26,i++);else if("le"===n)for(r=0,i=0;r>>26-l&67108863,(l+=24)>=26&&(l-=26,i++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)o=s(e,n,n+6),this.words[r]|=o<>>26-i&4194303,(i+=24)>=26&&(i-=26,r++);n+6!==t&&(o=s(e,t,n+6),this.words[r]|=o<>>26-i&4194303),this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,o=1;o<=67108863;o*=t)r++;r--,o=o/t|0;for(var i=e.length-n,a=i%r,l=Math.min(i,i-a)+n,s=0,d=n;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var o=0|e.words[0],i=0|t.words[0],a=o*i,l=67108863&a,s=a/67108864|0;n.words[0]=l;for(var c=1;c>>26,u=67108863&s,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;d+=(a=(o=0|e.words[p])*(i=0|t.words[h])+u)/67108864|0,u=67108863&a}n.words[c]=0|u,s=0|d}return 0!==s?n.words[c]=0|s:n.length--,n.strip()}a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var r=0,i=0,a=0;a>>24-r&16777215)||a!==this.length-1?d[6-s.length]+s+n:s+n,(r+=2)>=26&&(r-=26,a--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=u[e],h=f[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);n=(p=p.idivn(h)).isZero()?m+n:d[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return o(void 0!==l),this.toArrayLike(l,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var r=this.byteLength(),i=n||Math.max(1,r);o(r<=i,"byte array longer than desired length"),o(i>0,"Requested array length <= 0"),this.strip();var a,l,s="le"===t,c=new e(i),d=this.clone();if(s){for(l=0;!d.isZero();l++)a=d.andln(255),d.iushrn(8),c[l]=a;for(;l=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){o("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){o("number"==typeof e&&e>=0);var n=e/26|0,r=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var o=0,i=0;i>>26;for(;0!==o&&i>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==i&&a>26,this.words[a]=67108863&t;if(0===i&&a>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],_=8191&y,S=y>>>13,C=0|a[4],E=8191&C,T=C>>>13,w=0|a[5],O=8191&w,A=w>>>13,N=0|a[6],L=8191&N,I=N>>>13,U=0|a[7],D=8191&U,x=U>>>13,R=0|a[8],M=8191&R,k=R>>>13,P=0|a[9],B=8191&P,z=P>>>13,F=0|l[0],j=8191&F,q=F>>>13,W=0|l[1],H=8191&W,Y=W>>>13,V=0|l[2],G=8191&V,Z=V>>>13,K=0|l[3],X=8191&K,$=K>>>13,J=0|l[4],Q=8191&J,ee=J>>>13,te=0|l[5],ne=8191&te,re=te>>>13,oe=0|l[6],ie=8191&oe,ae=oe>>>13,le=0|l[7],se=8191&le,ce=le>>>13,de=0|l[8],ue=8191&de,fe=de>>>13,he=0|l[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(c+(r=Math.imul(u,j))|0)+((8191&(o=(o=Math.imul(u,q))+Math.imul(f,j)|0))<<13)|0;c=((i=Math.imul(f,q))+(o>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,j),o=(o=Math.imul(p,q))+Math.imul(m,j)|0,i=Math.imul(m,q);var ve=(c+(r=r+Math.imul(u,H)|0)|0)+((8191&(o=(o=o+Math.imul(u,Y)|0)+Math.imul(f,H)|0))<<13)|0;c=((i=i+Math.imul(f,Y)|0)+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,j),o=(o=Math.imul(v,q))+Math.imul(b,j)|0,i=Math.imul(b,q),r=r+Math.imul(p,H)|0,o=(o=o+Math.imul(p,Y)|0)+Math.imul(m,H)|0,i=i+Math.imul(m,Y)|0;var be=(c+(r=r+Math.imul(u,G)|0)|0)+((8191&(o=(o=o+Math.imul(u,Z)|0)+Math.imul(f,G)|0))<<13)|0;c=((i=i+Math.imul(f,Z)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(_,j),o=(o=Math.imul(_,q))+Math.imul(S,j)|0,i=Math.imul(S,q),r=r+Math.imul(v,H)|0,o=(o=o+Math.imul(v,Y)|0)+Math.imul(b,H)|0,i=i+Math.imul(b,Y)|0,r=r+Math.imul(p,G)|0,o=(o=o+Math.imul(p,Z)|0)+Math.imul(m,G)|0,i=i+Math.imul(m,Z)|0;var ye=(c+(r=r+Math.imul(u,X)|0)|0)+((8191&(o=(o=o+Math.imul(u,$)|0)+Math.imul(f,X)|0))<<13)|0;c=((i=i+Math.imul(f,$)|0)+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(E,j),o=(o=Math.imul(E,q))+Math.imul(T,j)|0,i=Math.imul(T,q),r=r+Math.imul(_,H)|0,o=(o=o+Math.imul(_,Y)|0)+Math.imul(S,H)|0,i=i+Math.imul(S,Y)|0,r=r+Math.imul(v,G)|0,o=(o=o+Math.imul(v,Z)|0)+Math.imul(b,G)|0,i=i+Math.imul(b,Z)|0,r=r+Math.imul(p,X)|0,o=(o=o+Math.imul(p,$)|0)+Math.imul(m,X)|0,i=i+Math.imul(m,$)|0;var _e=(c+(r=r+Math.imul(u,Q)|0)|0)+((8191&(o=(o=o+Math.imul(u,ee)|0)+Math.imul(f,Q)|0))<<13)|0;c=((i=i+Math.imul(f,ee)|0)+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(O,j),o=(o=Math.imul(O,q))+Math.imul(A,j)|0,i=Math.imul(A,q),r=r+Math.imul(E,H)|0,o=(o=o+Math.imul(E,Y)|0)+Math.imul(T,H)|0,i=i+Math.imul(T,Y)|0,r=r+Math.imul(_,G)|0,o=(o=o+Math.imul(_,Z)|0)+Math.imul(S,G)|0,i=i+Math.imul(S,Z)|0,r=r+Math.imul(v,X)|0,o=(o=o+Math.imul(v,$)|0)+Math.imul(b,X)|0,i=i+Math.imul(b,$)|0,r=r+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,i=i+Math.imul(m,ee)|0;var Se=(c+(r=r+Math.imul(u,ne)|0)|0)+((8191&(o=(o=o+Math.imul(u,re)|0)+Math.imul(f,ne)|0))<<13)|0;c=((i=i+Math.imul(f,re)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,j),o=(o=Math.imul(L,q))+Math.imul(I,j)|0,i=Math.imul(I,q),r=r+Math.imul(O,H)|0,o=(o=o+Math.imul(O,Y)|0)+Math.imul(A,H)|0,i=i+Math.imul(A,Y)|0,r=r+Math.imul(E,G)|0,o=(o=o+Math.imul(E,Z)|0)+Math.imul(T,G)|0,i=i+Math.imul(T,Z)|0,r=r+Math.imul(_,X)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(S,X)|0,i=i+Math.imul(S,$)|0,r=r+Math.imul(v,Q)|0,o=(o=o+Math.imul(v,ee)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,ee)|0,r=r+Math.imul(p,ne)|0,o=(o=o+Math.imul(p,re)|0)+Math.imul(m,ne)|0,i=i+Math.imul(m,re)|0;var Ce=(c+(r=r+Math.imul(u,ie)|0)|0)+((8191&(o=(o=o+Math.imul(u,ae)|0)+Math.imul(f,ie)|0))<<13)|0;c=((i=i+Math.imul(f,ae)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(D,j),o=(o=Math.imul(D,q))+Math.imul(x,j)|0,i=Math.imul(x,q),r=r+Math.imul(L,H)|0,o=(o=o+Math.imul(L,Y)|0)+Math.imul(I,H)|0,i=i+Math.imul(I,Y)|0,r=r+Math.imul(O,G)|0,o=(o=o+Math.imul(O,Z)|0)+Math.imul(A,G)|0,i=i+Math.imul(A,Z)|0,r=r+Math.imul(E,X)|0,o=(o=o+Math.imul(E,$)|0)+Math.imul(T,X)|0,i=i+Math.imul(T,$)|0,r=r+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,ee)|0)+Math.imul(S,Q)|0,i=i+Math.imul(S,ee)|0,r=r+Math.imul(v,ne)|0,o=(o=o+Math.imul(v,re)|0)+Math.imul(b,ne)|0,i=i+Math.imul(b,re)|0,r=r+Math.imul(p,ie)|0,o=(o=o+Math.imul(p,ae)|0)+Math.imul(m,ie)|0,i=i+Math.imul(m,ae)|0;var Ee=(c+(r=r+Math.imul(u,se)|0)|0)+((8191&(o=(o=o+Math.imul(u,ce)|0)+Math.imul(f,se)|0))<<13)|0;c=((i=i+Math.imul(f,ce)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(M,j),o=(o=Math.imul(M,q))+Math.imul(k,j)|0,i=Math.imul(k,q),r=r+Math.imul(D,H)|0,o=(o=o+Math.imul(D,Y)|0)+Math.imul(x,H)|0,i=i+Math.imul(x,Y)|0,r=r+Math.imul(L,G)|0,o=(o=o+Math.imul(L,Z)|0)+Math.imul(I,G)|0,i=i+Math.imul(I,Z)|0,r=r+Math.imul(O,X)|0,o=(o=o+Math.imul(O,$)|0)+Math.imul(A,X)|0,i=i+Math.imul(A,$)|0,r=r+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,ee)|0)+Math.imul(T,Q)|0,i=i+Math.imul(T,ee)|0,r=r+Math.imul(_,ne)|0,o=(o=o+Math.imul(_,re)|0)+Math.imul(S,ne)|0,i=i+Math.imul(S,re)|0,r=r+Math.imul(v,ie)|0,o=(o=o+Math.imul(v,ae)|0)+Math.imul(b,ie)|0,i=i+Math.imul(b,ae)|0,r=r+Math.imul(p,se)|0,o=(o=o+Math.imul(p,ce)|0)+Math.imul(m,se)|0,i=i+Math.imul(m,ce)|0;var Te=(c+(r=r+Math.imul(u,ue)|0)|0)+((8191&(o=(o=o+Math.imul(u,fe)|0)+Math.imul(f,ue)|0))<<13)|0;c=((i=i+Math.imul(f,fe)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,j),o=(o=Math.imul(B,q))+Math.imul(z,j)|0,i=Math.imul(z,q),r=r+Math.imul(M,H)|0,o=(o=o+Math.imul(M,Y)|0)+Math.imul(k,H)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(D,G)|0,o=(o=o+Math.imul(D,Z)|0)+Math.imul(x,G)|0,i=i+Math.imul(x,Z)|0,r=r+Math.imul(L,X)|0,o=(o=o+Math.imul(L,$)|0)+Math.imul(I,X)|0,i=i+Math.imul(I,$)|0,r=r+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,ee)|0)+Math.imul(A,Q)|0,i=i+Math.imul(A,ee)|0,r=r+Math.imul(E,ne)|0,o=(o=o+Math.imul(E,re)|0)+Math.imul(T,ne)|0,i=i+Math.imul(T,re)|0,r=r+Math.imul(_,ie)|0,o=(o=o+Math.imul(_,ae)|0)+Math.imul(S,ie)|0,i=i+Math.imul(S,ae)|0,r=r+Math.imul(v,se)|0,o=(o=o+Math.imul(v,ce)|0)+Math.imul(b,se)|0,i=i+Math.imul(b,ce)|0,r=r+Math.imul(p,ue)|0,o=(o=o+Math.imul(p,fe)|0)+Math.imul(m,ue)|0,i=i+Math.imul(m,fe)|0;var we=(c+(r=r+Math.imul(u,pe)|0)|0)+((8191&(o=(o=o+Math.imul(u,me)|0)+Math.imul(f,pe)|0))<<13)|0;c=((i=i+Math.imul(f,me)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(B,H),o=(o=Math.imul(B,Y))+Math.imul(z,H)|0,i=Math.imul(z,Y),r=r+Math.imul(M,G)|0,o=(o=o+Math.imul(M,Z)|0)+Math.imul(k,G)|0,i=i+Math.imul(k,Z)|0,r=r+Math.imul(D,X)|0,o=(o=o+Math.imul(D,$)|0)+Math.imul(x,X)|0,i=i+Math.imul(x,$)|0,r=r+Math.imul(L,Q)|0,o=(o=o+Math.imul(L,ee)|0)+Math.imul(I,Q)|0,i=i+Math.imul(I,ee)|0,r=r+Math.imul(O,ne)|0,o=(o=o+Math.imul(O,re)|0)+Math.imul(A,ne)|0,i=i+Math.imul(A,re)|0,r=r+Math.imul(E,ie)|0,o=(o=o+Math.imul(E,ae)|0)+Math.imul(T,ie)|0,i=i+Math.imul(T,ae)|0,r=r+Math.imul(_,se)|0,o=(o=o+Math.imul(_,ce)|0)+Math.imul(S,se)|0,i=i+Math.imul(S,ce)|0,r=r+Math.imul(v,ue)|0,o=(o=o+Math.imul(v,fe)|0)+Math.imul(b,ue)|0,i=i+Math.imul(b,fe)|0;var Oe=(c+(r=r+Math.imul(p,pe)|0)|0)+((8191&(o=(o=o+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((i=i+Math.imul(m,me)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(B,G),o=(o=Math.imul(B,Z))+Math.imul(z,G)|0,i=Math.imul(z,Z),r=r+Math.imul(M,X)|0,o=(o=o+Math.imul(M,$)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,$)|0,r=r+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,ee)|0)+Math.imul(x,Q)|0,i=i+Math.imul(x,ee)|0,r=r+Math.imul(L,ne)|0,o=(o=o+Math.imul(L,re)|0)+Math.imul(I,ne)|0,i=i+Math.imul(I,re)|0,r=r+Math.imul(O,ie)|0,o=(o=o+Math.imul(O,ae)|0)+Math.imul(A,ie)|0,i=i+Math.imul(A,ae)|0,r=r+Math.imul(E,se)|0,o=(o=o+Math.imul(E,ce)|0)+Math.imul(T,se)|0,i=i+Math.imul(T,ce)|0,r=r+Math.imul(_,ue)|0,o=(o=o+Math.imul(_,fe)|0)+Math.imul(S,ue)|0,i=i+Math.imul(S,fe)|0;var Ae=(c+(r=r+Math.imul(v,pe)|0)|0)+((8191&(o=(o=o+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0;c=((i=i+Math.imul(b,me)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(B,X),o=(o=Math.imul(B,$))+Math.imul(z,X)|0,i=Math.imul(z,$),r=r+Math.imul(M,Q)|0,o=(o=o+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(D,ne)|0,o=(o=o+Math.imul(D,re)|0)+Math.imul(x,ne)|0,i=i+Math.imul(x,re)|0,r=r+Math.imul(L,ie)|0,o=(o=o+Math.imul(L,ae)|0)+Math.imul(I,ie)|0,i=i+Math.imul(I,ae)|0,r=r+Math.imul(O,se)|0,o=(o=o+Math.imul(O,ce)|0)+Math.imul(A,se)|0,i=i+Math.imul(A,ce)|0,r=r+Math.imul(E,ue)|0,o=(o=o+Math.imul(E,fe)|0)+Math.imul(T,ue)|0,i=i+Math.imul(T,fe)|0;var Ne=(c+(r=r+Math.imul(_,pe)|0)|0)+((8191&(o=(o=o+Math.imul(_,me)|0)+Math.imul(S,pe)|0))<<13)|0;c=((i=i+Math.imul(S,me)|0)+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(B,Q),o=(o=Math.imul(B,ee))+Math.imul(z,Q)|0,i=Math.imul(z,ee),r=r+Math.imul(M,ne)|0,o=(o=o+Math.imul(M,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(D,ie)|0,o=(o=o+Math.imul(D,ae)|0)+Math.imul(x,ie)|0,i=i+Math.imul(x,ae)|0,r=r+Math.imul(L,se)|0,o=(o=o+Math.imul(L,ce)|0)+Math.imul(I,se)|0,i=i+Math.imul(I,ce)|0,r=r+Math.imul(O,ue)|0,o=(o=o+Math.imul(O,fe)|0)+Math.imul(A,ue)|0,i=i+Math.imul(A,fe)|0;var Le=(c+(r=r+Math.imul(E,pe)|0)|0)+((8191&(o=(o=o+Math.imul(E,me)|0)+Math.imul(T,pe)|0))<<13)|0;c=((i=i+Math.imul(T,me)|0)+(o>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(B,ne),o=(o=Math.imul(B,re))+Math.imul(z,ne)|0,i=Math.imul(z,re),r=r+Math.imul(M,ie)|0,o=(o=o+Math.imul(M,ae)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,ae)|0,r=r+Math.imul(D,se)|0,o=(o=o+Math.imul(D,ce)|0)+Math.imul(x,se)|0,i=i+Math.imul(x,ce)|0,r=r+Math.imul(L,ue)|0,o=(o=o+Math.imul(L,fe)|0)+Math.imul(I,ue)|0,i=i+Math.imul(I,fe)|0;var Ie=(c+(r=r+Math.imul(O,pe)|0)|0)+((8191&(o=(o=o+Math.imul(O,me)|0)+Math.imul(A,pe)|0))<<13)|0;c=((i=i+Math.imul(A,me)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(B,ie),o=(o=Math.imul(B,ae))+Math.imul(z,ie)|0,i=Math.imul(z,ae),r=r+Math.imul(M,se)|0,o=(o=o+Math.imul(M,ce)|0)+Math.imul(k,se)|0,i=i+Math.imul(k,ce)|0,r=r+Math.imul(D,ue)|0,o=(o=o+Math.imul(D,fe)|0)+Math.imul(x,ue)|0,i=i+Math.imul(x,fe)|0;var Ue=(c+(r=r+Math.imul(L,pe)|0)|0)+((8191&(o=(o=o+Math.imul(L,me)|0)+Math.imul(I,pe)|0))<<13)|0;c=((i=i+Math.imul(I,me)|0)+(o>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,r=Math.imul(B,se),o=(o=Math.imul(B,ce))+Math.imul(z,se)|0,i=Math.imul(z,ce),r=r+Math.imul(M,ue)|0,o=(o=o+Math.imul(M,fe)|0)+Math.imul(k,ue)|0,i=i+Math.imul(k,fe)|0;var De=(c+(r=r+Math.imul(D,pe)|0)|0)+((8191&(o=(o=o+Math.imul(D,me)|0)+Math.imul(x,pe)|0))<<13)|0;c=((i=i+Math.imul(x,me)|0)+(o>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(B,ue),o=(o=Math.imul(B,fe))+Math.imul(z,ue)|0,i=Math.imul(z,fe);var xe=(c+(r=r+Math.imul(M,pe)|0)|0)+((8191&(o=(o=o+Math.imul(M,me)|0)+Math.imul(k,pe)|0))<<13)|0;c=((i=i+Math.imul(k,me)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863;var Re=(c+(r=Math.imul(B,pe))|0)+((8191&(o=(o=Math.imul(B,me))+Math.imul(z,pe)|0))<<13)|0;return c=((i=Math.imul(z,me))+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863,s[0]=ge,s[1]=ve,s[2]=be,s[3]=ye,s[4]=_e,s[5]=Se,s[6]=Ce,s[7]=Ee,s[8]=Te,s[9]=we,s[10]=Oe,s[11]=Ae,s[12]=Ne,s[13]=Le,s[14]=Ie,s[15]=Ue,s[16]=De,s[17]=xe,s[18]=Re,0!==c&&(s[19]=c,n.length++),n};function m(e,t,n){return(new g).mulp(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,o=0,i=0;i>>26)|0)>>>26,a&=67108863}n.words[i]=l,r=a,a=o}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,n,r,o,i){for(var a=0;a>>=1)o++;return 1<>>=13,n[2*a+1]=8191&i,i>>>=13;for(a=2*t;a>=26,t+=r/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>o}return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r=0);var t,n=e%26,r=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t=0),r=t?(t-t%26)/26:0;var i=e%26,a=Math.min((e-i)/26,this.length),l=67108863^67108863>>>i<a)for(this.length-=a,c=0;c=0&&(0!==d||c>=r);c--){var u=0|this.words[c];this.words[c]=d<<26-i|u>>>i,d=u&l}return s&&0!==d&&(s.words[s.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return o(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){o("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,r=1<=0);var t=e%26,n=(e-t)/26;if(o(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var r=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(o("number"==typeof e),o(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[r+n]=67108863&i}for(;r>26,this.words[r+n]=67108863&i;if(0===l)return this.strip();for(o(-1===l),l=0,r=0;r>26,this.words[r]=67108863&i;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,i=0|o.words[o.length-1];0!==(n=26-this._countBits(i))&&(o=o.ushln(n),r.iushln(n),i=0|o.words[o.length-1]);var l,s=r.length-o.length;if("mod"!==t){(l=new a(null)).length=s+1,l.words=new Array(l.length);for(var c=0;c=0;u--){var f=67108864*(0|r.words[o.length+u])+(0|r.words[o.length+u-1]);for(f=Math.min(f/i|0,67108863),r._ishlnsubmul(o,f,u);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(o,1,u),r.isZero()||(r.negative^=1);l&&(l.words[u]=f)}return l&&l.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:l||null,mod:r}},a.prototype.divmod=function(e,t,n){return o(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(l=this.neg().divmod(e,t),"mod"!==t&&(r=l.div.neg()),"div"!==t&&(i=l.mod.neg(),n&&0!==i.negative&&i.iadd(e)),{div:r,mod:i}):0===this.negative&&0!==e.negative?(l=this.divmod(e.neg(),t),"mod"!==t&&(r=l.div.neg()),{div:r,mod:l.mod}):0!=(this.negative&e.negative)?(l=this.neg().divmod(e.neg(),t),"div"!==t&&(i=l.mod.neg(),n&&0!==i.negative&&i.isub(e)),{div:l.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,i,l},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),o=e.andln(1),i=n.cmp(r);return i<0||1===o&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){o(e<=67108863);for(var t=(1<<26)%e,n=0,r=this.length-1;r>=0;r--)n=(t*n+(0|this.words[r]))%e;return n},a.prototype.idivn=function(e){o(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*t;this.words[n]=r/e|0,t=r%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){o(0===e.negative),o(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new a(1),i=new a(0),l=new a(0),s=new a(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var d=n.clone(),u=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(r.isOdd()||i.isOdd())&&(r.iadd(d),i.isub(u)),r.iushrn(1),i.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(l.isOdd()||s.isOdd())&&(l.iadd(d),s.isub(u)),l.iushrn(1),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),r.isub(l),i.isub(s)):(n.isub(t),l.isub(r),s.isub(i))}return{a:l,b:s,gcd:n.iushln(c)}},a.prototype._invmp=function(e){o(0===e.negative),o(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,i=new a(1),l=new a(0),s=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,d=1;0==(t.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(t.iushrn(c);c-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,f=1;0==(n.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(n.iushrn(u);u-- >0;)l.isOdd()&&l.iadd(s),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(l)):(n.isub(t),l.isub(i))}return(r=0===t.cmpn(1)?i:l).cmpn(0)<0&&r.iadd(e),r},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=t.cmp(n);if(o<0){var i=t;t=n,n=i}else if(0===o||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){o("number"==typeof e);var t=e%26,n=(e-t)/26,r=1<>>26,l&=67108863,this.words[a]=l}return 0!==i&&(this.words[a]=i,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),o(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:re.length)return 1;if(this.length=0;n--){var r=0|this.words[n],o=0|e.words[n];if(r!==o){ro&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return o(!this.red,"Already a number in reduction context"),o(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return o(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return o(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else o(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(y,b),y.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r>>22,o=i}o>>>=22,e.words[r-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=o,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new _;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new C}return v[e]=t,t},E.prototype._verify1=function(e){o(0===e.negative,"red works only with positives"),o(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){o(0==(e.negative|t.negative),"red works only with positives"),o(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(o(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var r=this.m.subn(1),i=0;!r.isZero()&&0===r.andln(1);)i++,r.iushrn(1);o(!r.isZero());var l=new a(1).toRed(this),s=l.redNeg(),c=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new a(2*d*d).toRed(this);0!==this.pow(d,c).cmp(s);)d.redIAdd(s);for(var u=this.pow(d,r),f=this.pow(e,r.addn(1).iushrn(1)),h=this.pow(e,r),p=i;0!==h.cmp(l);){for(var m=h,g=0;0!==m.cmp(l);g++)m=m.redSqr();o(g=0;r--){for(var c=t.words[r],d=s-1;d>=0;d--){var u=c>>d&1;o!==n[0]&&(o=this.sqr(o)),0!==u||0!==i?(i<<=1,i|=u,(4===++l||0===r&&0===d)&&(o=this.mul(o,n[i]),l=0,i=0)):l=0}s=26}return o},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new T(e)},i(T,E),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(117)(e))},function(e,t,n){e.exports=!n(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(8),o=n(141),i=n(38),a=Object.defineProperty;t.f=n(14)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";(function(e){ +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=565)}([function(e,t,n){var r=n(6),o=n(12),i=n(21),a=n(18),l=n(27),s=function e(t,n,s){var c,d,u,f,h=t&e.F,p=t&e.G,m=t&e.P,g=t&e.B,v=p?r:t&e.S?r[n]||(r[n]={}):(r[n]||{}).prototype,b=p?o:o[n]||(o[n]={}),y=b.prototype||(b.prototype={});for(c in p&&(s=n),s)u=((d=!h&&v&&void 0!==v[c])?v:s)[c],f=g&&d?l(u,r):m&&"function"==typeof u?l(Function.call,u):u,v&&a(v,c,u,t&e.U),b[c]!=u&&i(b,c,f),m&&y[c]!=u&&(y[c]=u)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){var n;function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o={version:"1.0.60.14",wizContentVersion:"0.1.7",wizPainterVersion:"0.1.9",minderVersion:"1.4.50.6",WIZ_DOCUMENT_MIN_VERSION:{OUTLINE:"1.0.60.14"},AMEND_TIME_SPACE:18e4,AMEND_BATCH_TIME_SPACE:3e4,SPACE_CHAR:" ",SPACE_CHAR_REG:/\u00A0/gi,FILL_CHAR:"​",FILL_CHAR_REG:new RegExp("​","ig"),WIZ_TABLE_IN_MARKDOWN_SRC_REG:"
]*wiz-table-container[^>]*>(.|\\n)*?
",EMPTY_NOTE_TEMPLATE:"${body}",AMEND:{INFO_SPACE:0,INFO_TIMER:300},ATTR:{IMG:"data-wiz-img",IMG_MASK:"data-wiz-img-mask",IMG_RATE:"data-wiz-img-rate",IMG_EDITING:"data-wiz-img-editing",SPAN:"data-wiz-span",SPAN_USERID:"data-wiz-user-id",SPAN_INSERT:"data-wiz-insert",SPAN_DELETE:"data-wiz-delete",SPAN_PASTE:"data-wiz-paste",SPAN_PASTE_TYPE:"data-wiz-paste-type",SPAN_PASTE_ID:"data-wiz-paste-id",SPAN_TIMESTAMP:"data-wiz-amend-time",TODO_ID:"wiz_todo_id",TODO_CHECK:"data-wiz-check",WIZ_DOCUMENT_MIN_VERSION:"data-wiz-document-min-version",WIZ_DOCUMENT_TYPE:"data-wiz-document-type"},CLASS:(n={BLOCK_SCROLL:"wiz-block-scroll",CODE_CONTAINER:"wiz-code-container",CODE_CONTAINER_PASTE:"wiz-code-container-paste",CODE_CONTAINER_OLD:"prettyprint",CODE_MIRROR:"CodeMirror",CODE_MIRROR_LINE:"CodeMirror-line",CODE_MIRROR_MEASURE:"CodeMirror-measure",CODE_MIRROR_GUTTER:"CodeMirror-gutter-wrapper",CODE_MIRROR_HSCROLL:"CodeMirror-scroll",CODE_TOOLS:"wiz-code-tools",CODE_TOOLS_INFO:"wiz-code-tools-info",CODE_TOOLS_MODE:"wiz-code-tools-mode",CODE_TOOLS_THEME:"wiz-code-tools-theme",CODE_TOOLS_MORE:"wiz-code-tools-more",EDITOR_CONTAINER:"wiz-editor-container",EDITOR_PREVIEW_SHOW:"wiz-editor-preview-show",HOTKEY:"hotkey",HOTKEY_LAYER:"hotkey-layer",IMG_ATTACHMENT:"wiz-img-attachment",IMG_NOT_DRAG:"wiz-img-cannot-drag",IMG_CONTAINER:"wiz-image-container",IMG_MENU:"wiz-img-menu",IMG_RESIZE_ACTIVE:"wiz-img-resize-active",IMG_RESIZE_CONTAINER:"wiz-img-resize-container",IMG_RESIZE_HANDLE:"wiz-img-resize-handle",IMG_SUB_MENU:"wiz-img-sub-menu",IMG_SUB_MENU_CONTAINER:"wiz-img-sub-menu-container",IMG_SUB_MENU_ITEM:"wiz-img-sub-menu-item",IMG_TITLE:"wiz-image-title",MARKDOWN_BODY:"markdown-body",MEDIA_DATA:"wiz-media-data",MENU_PLUGIN_CONTAINER:"wiz-menu-plugin-container",MENU_PLUGIN_OPTIONS:"wiz-menu-plugin-options",MENU_PLUGIN_OPTIONS_ITEM:"wiz-menu-plugin-options-item",ORDER_LIST_LEVEL:["wiz-list-level3","wiz-list-level1","wiz-list-level2"],ORDER_LIST_ALIGN_STYLE:"wiz-list-align-style",READONLY:"wiz-readonly",EDITING:"wiz-editing",SELECTED_CELL:"wiz-selected-cell",SELECTED_CELL_MULTI:"wiz-selected-cell-multi",SELECT_PLUGIN_CONTAINER:"wiz-select-plugin-container",SELECT_PLUGIN_HEADER:"wiz-select-plugin-header",SELECT_PLUGIN_HEADER_TEXT:"wiz-select-plugin-header-text",SELECT_PLUGIN_MENU:"wiz-select-plugin-menu",SVG_IMAGE:"wiz-svg-image",SVG_TEMPLATE:"wiz-svg-template",TEMPLATE_EDITABLE:"wiz-template-editable",TABLE_DELETE_ZONE:"wiz-table-delete-zone",TABLE_CONTAINER:"wiz-table-container",TABLE_BODY:"wiz-table-body",TABLE_LINE_BOX:"wiz-table-bar-box",TABLE_MENU_BUTTON:"wiz-table-menu-button",TABLE_MENU_ITEM:"wiz-table-menu-item",TABLE_SUB_MENU:"wiz-table-sub-menu",TABLE_TOOLS:"wiz-table-tools"},r(n,"TABLE_LINE_BOX","wiz-table-bar-box"),r(n,"TABLE_LINE_POINT","wiz-table-bar-point"),r(n,"TABLE_DELETE_ZONE","wiz-table-delete-zone"),r(n,"TABLE_MOVING","wiz-table-moving"),r(n,"TABLE_BAR","wiz-table-bar"),r(n,"TABLE_ALL_BAR","wiz-table-all-bar"),r(n,"TABLE_ROW_BAR","wiz-table-row-bar"),r(n,"TABLE_COL_BAR","wiz-table-col-bar"),r(n,"TABLE_ADD_BTN","wiz-table-add-btn"),r(n,"TODO_ACCOUNT","wiz-todo-account"),r(n,"TODO_AVATAR","wiz-todo-avatar"),r(n,"TODO_CHECKBOX","wiz-todo-checkbox"),r(n,"TODO_CHECK_IMG_OLD","wiz-todo-img"),r(n,"TODO_DATE","wiz-todo-dt"),r(n,"TODO_LAYER","wiz-todo-layer"),r(n,"TODO_MAIN","wiz-todo-main"),r(n,"TODO_LABEL_OLD","wiz-todo-label"),r(n,"TODO_CHECKED","wiz-todo-checked"),r(n,"TODO_UNCHECKED","wiz-todo-unchecked"),r(n,"TODO_CHECKED_OLD","wiz-todo-label-checked"),r(n,"TODO_UNCHECKED_OLD","wiz-todo-label-unchecked"),r(n,"TODO_TAIL_OLD","wiz-todo-tail"),r(n,"TODO_USER_AVATAR","wiz-todo-avatar-"),r(n,"TODO_USER_INFO","wiz-todo-completed-info"),r(n,"TOOL_TIP","wiz-tooltip"),r(n,"TOOL_TIP_ITEM","wiz-tooltip-item"),r(n,"TOOL_TIP_ARROW","wiz-tooltip-arrow"),r(n,"TOOL_TIP_COLOR_BOX","wiz-tooltip-color-box"),r(n,"TOOL_TIP_ARROW_BG","wiz-tooltip-arrow-bg"),r(n,"WIZ_BODY","wiz-editor-body"),r(n,"WIZ_CONTENT_IFRAME_ACTIVE","wiz-content-active"),r(n,"WIZ_EIDTOR_BODY_CONTAINER","wiz-editor-body-container"),r(n,"WIZ_EIDTOR_IFRAME","wiz-editor-iframe"),r(n,"WIZ_EIDTOR_PREVIEW_CONTAINER","wiz-editor-preview-container"),r(n,"WIZ_EIDTOR_TOOlBAR_CONTAINER","wiz-editor-toolbar-container"),r(n,"WIZ_EIDTOR_TOOlBAR_MAIN","wiz-editor-toolbar-main"),r(n,"WIZ_EIDTOR_TOOlBAR_SIDE","wiz-editor-toolbar-side"),n),CLIENT_EVENT:{WizEditorClickImg:"WizEditorClickImg",WizEditorClickSvg:"WizEditorClickSvg",WizEditorAfterCopied:"WizEditorAfterCopied",WizEditorPaste:"WizEditorPaste",WizEditorSetScrollTop:"WizEditorSetScrollTop",WizEditorTrackEvent:"WizEditorTrackEvent",WizMarkdownRender:"WizMarkdownRender",WizReaderClickImg:"WizReaderClickImg",IosPrompt:"IosPrompt"},CODE:{StorageKey:{Mode:"wiz-code-mode",Theme:"wiz-code-theme",Wrap:"wiz-code-wrap"}},COLOR:["#CB3C3C","#0C9460","#FF3399","#FF6005","#8058BD","#009999","#8AA725","#339900","#CC6600","#3BBABA","#D4CA1A","#2389B0","#006699","#FF8300","#2C6ED5","#FF0000","#B07CFF","#CC3399","#EB4847","#3917E6"],CSS:{DEFAULT_FONT:'Helvetica, "Hiragino Sans GB", "微软雅黑", "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif',IMG:{SPAN:{position:"relative",display:"inline-block"},MASK:{position:"absolute",width:"100% !important",height:"100% !important",top:"0",left:"0",opacity:".5",filter:"alpha(opacity=50)",border:"2px solid","box-sizing":"border-box","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box"}},IMG_DELETED:{background:"#fdc6c6 url(data:image/gif;base64,R0lGODlhDwAPAIABAIcUFP///yH5BAEKAAEALAAAAAAPAA8AAAIajI8IybadHjxyhjox1I0zH1mU6JCXCSpmUAAAOw==)","border-color":"#E47070"},IMG_INSERT:{background:"#ccffcc","border-color":"#00AA00"},TODO_LIST:{IMG_WIDTH:40},Z_INDEX:{amendInfo:150,tableBorder:105,tableColRowLine:120,tableRangeDot:110,tableTDBefore:100,tableTools:130,tableToolsArrow:10},TABLECOMPONENT:{PADDING:28}},DOCUMENT_TYPE:{COMMON:"common",OUTLINE:"outline"},EVENT:{BEFORE_GET_DOCHTML:"BEFORE_GET_DOCHTML",BEFORE_SAVESNAP:"BEFORE_SAVESNAP",AFTER_INSERT_DOM:"AFTER_INSERT_DOM",AFTER_RESTORE_HISTORY:"AFTER_RESTORE_HISTORY",AUTO_EDIT:"AUTO_EDIT",EXEC_COMMEND:"EXEC_COMMEND",ON_DBLCLICK:"ON_DBLCLICK",ON_CLICK:"ON_CLICK",ON_COMPOSITION_START:"ON_COMPOSITION_START",ON_COMPOSITION_END:"ON_COMPOSITION_END",ON_COPY:"ON_COPY",ON_CUT:"ON_CUT",ON_DOM_SUBTREE_MODIFIED:"ON_DOM_SUBTREE_MODIFIED",ON_DRAG_START:"ON_DRAG_START",ON_DRAG_ENTER:"ON_DRAG_ENTER",ON_DROP:"ON_DROP",ON_EXEC_COMMAND:"ON_EXEC_COMMAND",ON_KEY_DOWN:"ON_KEY_DOWN",ON_KEY_UP:"ON_KEY_UP",ON_MARKER_INITIATED:"ON_MARKER_INITIATED",ON_MENU_PLUGIN_HIDE:"ON_MENU_PLUGIN_HIDE",ON_MENU_PLUGIN_SHOW:"ON_MENU_PLUGIN_SHOW",ON_MOUSE_DOWN:"ON_MOUSE_DOWN",ON_MOUSE_MOVE:"ON_MOUSE_MOVE",ON_MOUSE_OVER:"ON_MOUSE_OVER",ON_MOUSE_UP:"ON_MOUSE_UP",ON_ORIENTATION_CHANGE:"ON_ORIENTATION_CHANGE",ON_PASTE:"ON_PASTE",ON_RESIZE:"ON_RESIZE",ON_SCROLL:"ON_SCROLL",ON_SELECT_PLUGIN_CHANGE:"ON_SELECT_PLUGIN_CHANGE",ON_SELECT_PLUGIN_HIDE:"ON_SELECT_PLUGIN_HIDE",ON_SELECT_PLUGIN_SHOW:"ON_SELECT_PLUGIN_SHOW",ON_SELECTION_CHANGE:"ON_SELECTION_CHANGE",ON_SELECT_START:"ON_SELECT_START",ON_TEXT_INPUT:"ON_TEXT_INPUT",ON_TOUCH_START:"ON_TOUCH_START",ON_TOUCH_END:"ON_TOUCH_END",UPDATE_TABLE_RENDER:"UPDATE_TABLE_RENDER"},HISTORY:{TYPE:{CODE_MIRROR:"CODE_MIRROR",COMMON:"COMMON"}},ID:{BODY_TMP_BOTTOM_STYLE:"wiz-tmp-bottom-style",AMEND_INFO:"wiz-amend-info",AMEND_INFO_SINGLE:"wiz-amend-info-single",AMEND_INFO_MULTI:"wiz-amend-info-multi",AMEND_INFO_NAME:"wiz-amend-info-name",AMEND_INFO_IMG:"wiz-amend-info-image",AMEND_INFO_CONTENT:"wiz-amend-info-content",AMEND_INFO_TIME:"wiz-amend-info-time",AMEND_INFO_TOOLS:"wiz-amend-info-tools",AMEND_INFO_ACCEPT:"wiz-amend-info-accept",AMEND_INFO_REFUSE:"wiz-amend-info-refuse",AMEND_USER_INFO:"wiz-amend-user",CODE_STYLE:"wiz_code_style",FORMAT_PAINTER_STYLE:"wiz_format_painter_style",IFRAME_FOR_SAVE:"wiz-iframe-for-save",IMAGE_MENU_CONTAINER:"wiz-img-menu-container",MARKER_ROOT:"wiz-painter-root",MARKER_STYLE:"wiz-marker-style",MEDIA_STYLE:"wiz-media-style",PURE_READ_STYLE:"wiz-pure-read-style",TABLE_RANGE_BORDER:"wiz-table-range-border",TABLE_ROW_LINE:"wiz-table-row-line",TABLE_COL_LINE:"wiz-table-col-line",TODO_STYLE:"wiz_todo_style",TODO_STYLE_OLD:"wiz_todo_style_id",TODO_AVATAR_STYLE:"wiz_todo_style_avatar_",TMP_STYLE_PRE:"wiz_tmp_style_",WIZ_DEFAULT_STYLE:"wiz_custom_css",WIZ_EIDTOR_FRAME_STYLE:"wiz-editor-frame-style",WIZ_EIDTOR_FRAME_BODY_STYLE:"wiz-editor-frame-body-style",WIZ_EIDTOR_PREVIEW_STYLE:"wiz-editor-preview-style",WIZ_EIDTOR_TOOlBAR_STYLE:"wiz-editor-toolbar-style",WIZ_TEMPLATE_INFO:"wiz-template-info"},NAME:{CODE_STYLE:"wiz_code_style",TMP_STYLE:"wiz_tmp_editor_style",UNSAVE_STYLE:"wiz_unsave_style"},NOTE_READER_TYPE:{COMMON:"common",MARKDOWN:"markdown",MATHJAX:"mathjax",OUTLINE:"outline"},NOTE_EDITOR_TYPE:{COMMON:"common",MARKDOWN:"markdown",OUTLINE:"outline"},MENU_PLUGIN:{TYPE:{MENU:"menu",SELECT:"select"}},SELECT_PLUGIN:{TYPE:{COMMON:"common",ICON:"icon"}},TAG:{CODE_MIRROR:"wiz_code_mirror",MARKER:"wiz_marker",MEDIA:"wiz_media",TMP_TAG:"wiz_tmp_tag",TMP_PLUGIN_TAG:"wiz_tmp_plugin_tag",TMP_HIGHLIGHT_TAG:"wiz_tmp_highlight_tag"},TYPE:{EDITOR_EVENT:{SelectionChange:"selectionchange",HistoryUndo:"historyUndo"},IMG_DELETE:"delete",IMG_INSERT:"insert",LAYOUT:{BOTTOM:"BOTTOM",BOTTOM_END:"BOTTOM_END",BOTTOM_START:"BOTTOM_START",TOP:"TOP",TOP_END:"TOP_END",TOP_START:"TOP_START",LEFT_START:"LEFT_START",LEFT_END:"LEFT_END",RIGHT_START:"RIGHT_START",RIGHT_END:"RIGHT_END"},PASTE:{START:"start",END:"end",CONTENT:"content"},TABLE:{COPY:"copy",PASTE:"paste",CLEAR_CELL:"clearCell",MERGE_CELL:"mergeCell",SPLIT_CELL:"splitCell",INSERT_ROW_UP:"insertRowUp",INSERT_ROW_DOWN:"insertRowDown",INSERT_COL_LEFT:"insertColLeft",INSERT_COL_RIGHT:"insertColRight",DELETE_ROW:"deleteRow",DELETE_COL:"deleteCol",SET_CELL_BG:"setCellBg",SELECT_BG:"selectBg",SET_CELL_ALIGN:"setCellAlign",DISTRIBUTE_COLS:"distributeCols",DELETE_TABLE:"deleteTable",OPEN_MENU:"openMenu",OPEN_SUB_MENU:"openSubMenu"}}};e.exports=o},function(e,t){function n(e,t){for(var n=0;ne?1:-1}}var i=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;"wiz".trim||(String.prototype.trim=function(){return this.replace(i,"")});var a=/[\-\[\]{}()*+?.,\\^$|#\s]/g;try{"abc".escapeRegex()}catch(e){String.prototype.escapeRegex=function(){return this.toString().replace(a,"\\$&")}}try{"abc".escapeReplace()}catch(e){String.prototype.escapeReplace=function(){return this.toString().replace(/\$/gi,"$$$$")}}Array.prototype.indexOf||(Array.prototype.indexOf=function(e){for(var t=0;t=48&&t<=57||t>=65&&t<=90||t>=96&&t<=107||t>=109&&t<=111||t>=186&&t<=192||t>=219&&t<=222||229===t||0===t||13===t||32===t)},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},isBoolean:function(e){return"[object Boolean]"===Object.prototype.toString.apply(e)},isEmpty:function(e){if(!e)return!0;var t=new RegExp("[\r\n"+r.FILL_CHAR+"]","ig"),n=/\r?\n/gi.test(e),o=e.replace(t,""),i=0===e.replace(t,"").trim().length;return 0===o.length||n&&i},isSameAmendTime:function(e,t){if(!e||!t)return!1;var n=l.getDateForTimeStr(e),o=l.getDateForTimeStr(t);return Math.abs(n-o)<=r.AMEND_BATCH_TIME_SPACE},checkChar:function(e,t){var n,r,o,i;for(n=0,r=t.length;n1?t[n][1]:null)&&e===o)return!0;if(null!==i&&e>=o&&e<=i)return!0}return!1},compareVersion:function(e,t){var n,r,o,i;for(e=e.split("."),t=t.split("."),n=0,r=e.length;ni)return 1}return e.length=0;t--)n^=(n<<5)+e.charCodeAt(t)+(n>>2);return 2147483647&n},getTime:function(){var e=new Date;return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())+" "+t(e.getHours())+":"+t(e.getMinutes())+":"+t(e.getSeconds());function t(e){var t=e.toString();return 1===t.length?"0"+t:t}},getDateForTimeStr:function(e){return new Date(Date.parse(e.replace(/-/g,"/")))},listToMap:function(e){if(!e)return{};var t,n,r,o={};for(t=0,n=(e=l.isArray(e)?e:e.split(",")).length;t/g,">")+"";else{var h=0===f?"span":"div";o="<"+h+">"+n.replace(/&/g,"&").replace(//g,">")+""}else o="
";a.push(o)}return a.join("")},dom:{insertToHead:function(e,t){t.querySelector("HEAD").appendChild(e)}},math:{getRandomArbitrary:function(e,t){return l.math.random()*(t-e)+e},random:function(){return o()()}},storage:{get:function(e){try{var t=window.localStorage[e];return t?JSON.parse(t):null}catch(e){return console.error(e),null}},set:function(e,t){try{window.localStorage.setItem(e,JSON.stringify(t))}catch(e){console.error(e)}},remove:function(e){window.localStorage.removeItem(e)}}};e.exports=l},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){var r=n(16),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),i(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(9);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return"object"===n(e)?null!==e:"function"==typeof e}},function(e,t,n){var r=n(74)("wks"),o=n(43),i=n(6).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(29),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,r){"use strict";function o(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var l;"object"===t(e)?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{l=n(442).Buffer}catch(e){}function s(e,t,n){for(var r=0,o=Math.min(e.length,n),i=t;i=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function c(e,t,n,r){for(var o=0,i=Math.min(e.length,n),a=t;a=49?l-49+10:l>=17?l-17+10:l}return o}a.isBN=function(e){return e instanceof a||null!==e&&"object"===t(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,n,r){if("number"==typeof e)return this._initNumber(e,n,r);if("object"===t(e))return this._initArray(e,n,r);"hex"===n&&(n=16),o(n===(0|n)&&n>=2&&n<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===n?this._parseHex(e,i):this._parseBase(e,n,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),n,r)},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(o(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(o("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r=0;r-=3)a=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[i]|=a<>>26-l&67108863,(l+=24)>=26&&(l-=26,i++);else if("le"===n)for(r=0,i=0;r>>26-l&67108863,(l+=24)>=26&&(l-=26,i++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)o=s(e,n,n+6),this.words[r]|=o<>>26-i&4194303,(i+=24)>=26&&(i-=26,r++);n+6!==t&&(o=s(e,t,n+6),this.words[r]|=o<>>26-i&4194303),this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,o=1;o<=67108863;o*=t)r++;r--,o=o/t|0;for(var i=e.length-n,a=i%r,l=Math.min(i,i-a)+n,s=0,d=n;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var o=0|e.words[0],i=0|t.words[0],a=o*i,l=67108863&a,s=a/67108864|0;n.words[0]=l;for(var c=1;c>>26,u=67108863&s,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;d+=(a=(o=0|e.words[p])*(i=0|t.words[h])+u)/67108864|0,u=67108863&a}n.words[c]=0|u,s=0|d}return 0!==s?n.words[c]=0|s:n.length--,n.strip()}a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var r=0,i=0,a=0;a>>24-r&16777215)||a!==this.length-1?d[6-s.length]+s+n:s+n,(r+=2)>=26&&(r-=26,a--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=u[e],h=f[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);n=(p=p.idivn(h)).isZero()?m+n:d[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return o(void 0!==l),this.toArrayLike(l,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var r=this.byteLength(),i=n||Math.max(1,r);o(r<=i,"byte array longer than desired length"),o(i>0,"Requested array length <= 0"),this.strip();var a,l,s="le"===t,c=new e(i),d=this.clone();if(s){for(l=0;!d.isZero();l++)a=d.andln(255),d.iushrn(8),c[l]=a;for(;l=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){o("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){o("number"==typeof e&&e>=0);var n=e/26|0,r=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var o=0,i=0;i>>26;for(;0!==o&&i>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==i&&a>26,this.words[a]=67108863&t;if(0===i&&a>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],_=8191&y,S=y>>>13,E=0|a[4],C=8191&E,T=E>>>13,A=0|a[5],O=8191&A,w=A>>>13,N=0|a[6],L=8191&N,I=N>>>13,U=0|a[7],D=8191&U,M=U>>>13,x=0|a[8],R=8191&x,k=x>>>13,P=0|a[9],B=8191&P,z=P>>>13,F=0|l[0],j=8191&F,q=F>>>13,W=0|l[1],H=8191&W,Y=W>>>13,G=0|l[2],V=8191&G,Z=G>>>13,K=0|l[3],X=8191&K,$=K>>>13,J=0|l[4],Q=8191&J,ee=J>>>13,te=0|l[5],ne=8191&te,re=te>>>13,oe=0|l[6],ie=8191&oe,ae=oe>>>13,le=0|l[7],se=8191&le,ce=le>>>13,de=0|l[8],ue=8191&de,fe=de>>>13,he=0|l[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(c+(r=Math.imul(u,j))|0)+((8191&(o=(o=Math.imul(u,q))+Math.imul(f,j)|0))<<13)|0;c=((i=Math.imul(f,q))+(o>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,j),o=(o=Math.imul(p,q))+Math.imul(m,j)|0,i=Math.imul(m,q);var ve=(c+(r=r+Math.imul(u,H)|0)|0)+((8191&(o=(o=o+Math.imul(u,Y)|0)+Math.imul(f,H)|0))<<13)|0;c=((i=i+Math.imul(f,Y)|0)+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,j),o=(o=Math.imul(v,q))+Math.imul(b,j)|0,i=Math.imul(b,q),r=r+Math.imul(p,H)|0,o=(o=o+Math.imul(p,Y)|0)+Math.imul(m,H)|0,i=i+Math.imul(m,Y)|0;var be=(c+(r=r+Math.imul(u,V)|0)|0)+((8191&(o=(o=o+Math.imul(u,Z)|0)+Math.imul(f,V)|0))<<13)|0;c=((i=i+Math.imul(f,Z)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(_,j),o=(o=Math.imul(_,q))+Math.imul(S,j)|0,i=Math.imul(S,q),r=r+Math.imul(v,H)|0,o=(o=o+Math.imul(v,Y)|0)+Math.imul(b,H)|0,i=i+Math.imul(b,Y)|0,r=r+Math.imul(p,V)|0,o=(o=o+Math.imul(p,Z)|0)+Math.imul(m,V)|0,i=i+Math.imul(m,Z)|0;var ye=(c+(r=r+Math.imul(u,X)|0)|0)+((8191&(o=(o=o+Math.imul(u,$)|0)+Math.imul(f,X)|0))<<13)|0;c=((i=i+Math.imul(f,$)|0)+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(C,j),o=(o=Math.imul(C,q))+Math.imul(T,j)|0,i=Math.imul(T,q),r=r+Math.imul(_,H)|0,o=(o=o+Math.imul(_,Y)|0)+Math.imul(S,H)|0,i=i+Math.imul(S,Y)|0,r=r+Math.imul(v,V)|0,o=(o=o+Math.imul(v,Z)|0)+Math.imul(b,V)|0,i=i+Math.imul(b,Z)|0,r=r+Math.imul(p,X)|0,o=(o=o+Math.imul(p,$)|0)+Math.imul(m,X)|0,i=i+Math.imul(m,$)|0;var _e=(c+(r=r+Math.imul(u,Q)|0)|0)+((8191&(o=(o=o+Math.imul(u,ee)|0)+Math.imul(f,Q)|0))<<13)|0;c=((i=i+Math.imul(f,ee)|0)+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(O,j),o=(o=Math.imul(O,q))+Math.imul(w,j)|0,i=Math.imul(w,q),r=r+Math.imul(C,H)|0,o=(o=o+Math.imul(C,Y)|0)+Math.imul(T,H)|0,i=i+Math.imul(T,Y)|0,r=r+Math.imul(_,V)|0,o=(o=o+Math.imul(_,Z)|0)+Math.imul(S,V)|0,i=i+Math.imul(S,Z)|0,r=r+Math.imul(v,X)|0,o=(o=o+Math.imul(v,$)|0)+Math.imul(b,X)|0,i=i+Math.imul(b,$)|0,r=r+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,i=i+Math.imul(m,ee)|0;var Se=(c+(r=r+Math.imul(u,ne)|0)|0)+((8191&(o=(o=o+Math.imul(u,re)|0)+Math.imul(f,ne)|0))<<13)|0;c=((i=i+Math.imul(f,re)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,j),o=(o=Math.imul(L,q))+Math.imul(I,j)|0,i=Math.imul(I,q),r=r+Math.imul(O,H)|0,o=(o=o+Math.imul(O,Y)|0)+Math.imul(w,H)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(C,V)|0,o=(o=o+Math.imul(C,Z)|0)+Math.imul(T,V)|0,i=i+Math.imul(T,Z)|0,r=r+Math.imul(_,X)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(S,X)|0,i=i+Math.imul(S,$)|0,r=r+Math.imul(v,Q)|0,o=(o=o+Math.imul(v,ee)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,ee)|0,r=r+Math.imul(p,ne)|0,o=(o=o+Math.imul(p,re)|0)+Math.imul(m,ne)|0,i=i+Math.imul(m,re)|0;var Ee=(c+(r=r+Math.imul(u,ie)|0)|0)+((8191&(o=(o=o+Math.imul(u,ae)|0)+Math.imul(f,ie)|0))<<13)|0;c=((i=i+Math.imul(f,ae)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(D,j),o=(o=Math.imul(D,q))+Math.imul(M,j)|0,i=Math.imul(M,q),r=r+Math.imul(L,H)|0,o=(o=o+Math.imul(L,Y)|0)+Math.imul(I,H)|0,i=i+Math.imul(I,Y)|0,r=r+Math.imul(O,V)|0,o=(o=o+Math.imul(O,Z)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,Z)|0,r=r+Math.imul(C,X)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(T,X)|0,i=i+Math.imul(T,$)|0,r=r+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,ee)|0)+Math.imul(S,Q)|0,i=i+Math.imul(S,ee)|0,r=r+Math.imul(v,ne)|0,o=(o=o+Math.imul(v,re)|0)+Math.imul(b,ne)|0,i=i+Math.imul(b,re)|0,r=r+Math.imul(p,ie)|0,o=(o=o+Math.imul(p,ae)|0)+Math.imul(m,ie)|0,i=i+Math.imul(m,ae)|0;var Ce=(c+(r=r+Math.imul(u,se)|0)|0)+((8191&(o=(o=o+Math.imul(u,ce)|0)+Math.imul(f,se)|0))<<13)|0;c=((i=i+Math.imul(f,ce)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(R,j),o=(o=Math.imul(R,q))+Math.imul(k,j)|0,i=Math.imul(k,q),r=r+Math.imul(D,H)|0,o=(o=o+Math.imul(D,Y)|0)+Math.imul(M,H)|0,i=i+Math.imul(M,Y)|0,r=r+Math.imul(L,V)|0,o=(o=o+Math.imul(L,Z)|0)+Math.imul(I,V)|0,i=i+Math.imul(I,Z)|0,r=r+Math.imul(O,X)|0,o=(o=o+Math.imul(O,$)|0)+Math.imul(w,X)|0,i=i+Math.imul(w,$)|0,r=r+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,ee)|0)+Math.imul(T,Q)|0,i=i+Math.imul(T,ee)|0,r=r+Math.imul(_,ne)|0,o=(o=o+Math.imul(_,re)|0)+Math.imul(S,ne)|0,i=i+Math.imul(S,re)|0,r=r+Math.imul(v,ie)|0,o=(o=o+Math.imul(v,ae)|0)+Math.imul(b,ie)|0,i=i+Math.imul(b,ae)|0,r=r+Math.imul(p,se)|0,o=(o=o+Math.imul(p,ce)|0)+Math.imul(m,se)|0,i=i+Math.imul(m,ce)|0;var Te=(c+(r=r+Math.imul(u,ue)|0)|0)+((8191&(o=(o=o+Math.imul(u,fe)|0)+Math.imul(f,ue)|0))<<13)|0;c=((i=i+Math.imul(f,fe)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,j),o=(o=Math.imul(B,q))+Math.imul(z,j)|0,i=Math.imul(z,q),r=r+Math.imul(R,H)|0,o=(o=o+Math.imul(R,Y)|0)+Math.imul(k,H)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(D,V)|0,o=(o=o+Math.imul(D,Z)|0)+Math.imul(M,V)|0,i=i+Math.imul(M,Z)|0,r=r+Math.imul(L,X)|0,o=(o=o+Math.imul(L,$)|0)+Math.imul(I,X)|0,i=i+Math.imul(I,$)|0,r=r+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(C,ne)|0,o=(o=o+Math.imul(C,re)|0)+Math.imul(T,ne)|0,i=i+Math.imul(T,re)|0,r=r+Math.imul(_,ie)|0,o=(o=o+Math.imul(_,ae)|0)+Math.imul(S,ie)|0,i=i+Math.imul(S,ae)|0,r=r+Math.imul(v,se)|0,o=(o=o+Math.imul(v,ce)|0)+Math.imul(b,se)|0,i=i+Math.imul(b,ce)|0,r=r+Math.imul(p,ue)|0,o=(o=o+Math.imul(p,fe)|0)+Math.imul(m,ue)|0,i=i+Math.imul(m,fe)|0;var Ae=(c+(r=r+Math.imul(u,pe)|0)|0)+((8191&(o=(o=o+Math.imul(u,me)|0)+Math.imul(f,pe)|0))<<13)|0;c=((i=i+Math.imul(f,me)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(B,H),o=(o=Math.imul(B,Y))+Math.imul(z,H)|0,i=Math.imul(z,Y),r=r+Math.imul(R,V)|0,o=(o=o+Math.imul(R,Z)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,Z)|0,r=r+Math.imul(D,X)|0,o=(o=o+Math.imul(D,$)|0)+Math.imul(M,X)|0,i=i+Math.imul(M,$)|0,r=r+Math.imul(L,Q)|0,o=(o=o+Math.imul(L,ee)|0)+Math.imul(I,Q)|0,i=i+Math.imul(I,ee)|0,r=r+Math.imul(O,ne)|0,o=(o=o+Math.imul(O,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(C,ie)|0,o=(o=o+Math.imul(C,ae)|0)+Math.imul(T,ie)|0,i=i+Math.imul(T,ae)|0,r=r+Math.imul(_,se)|0,o=(o=o+Math.imul(_,ce)|0)+Math.imul(S,se)|0,i=i+Math.imul(S,ce)|0,r=r+Math.imul(v,ue)|0,o=(o=o+Math.imul(v,fe)|0)+Math.imul(b,ue)|0,i=i+Math.imul(b,fe)|0;var Oe=(c+(r=r+Math.imul(p,pe)|0)|0)+((8191&(o=(o=o+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((i=i+Math.imul(m,me)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(B,V),o=(o=Math.imul(B,Z))+Math.imul(z,V)|0,i=Math.imul(z,Z),r=r+Math.imul(R,X)|0,o=(o=o+Math.imul(R,$)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,$)|0,r=r+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,ee)|0)+Math.imul(M,Q)|0,i=i+Math.imul(M,ee)|0,r=r+Math.imul(L,ne)|0,o=(o=o+Math.imul(L,re)|0)+Math.imul(I,ne)|0,i=i+Math.imul(I,re)|0,r=r+Math.imul(O,ie)|0,o=(o=o+Math.imul(O,ae)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,ae)|0,r=r+Math.imul(C,se)|0,o=(o=o+Math.imul(C,ce)|0)+Math.imul(T,se)|0,i=i+Math.imul(T,ce)|0,r=r+Math.imul(_,ue)|0,o=(o=o+Math.imul(_,fe)|0)+Math.imul(S,ue)|0,i=i+Math.imul(S,fe)|0;var we=(c+(r=r+Math.imul(v,pe)|0)|0)+((8191&(o=(o=o+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0;c=((i=i+Math.imul(b,me)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(B,X),o=(o=Math.imul(B,$))+Math.imul(z,X)|0,i=Math.imul(z,$),r=r+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,ee)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(D,ne)|0,o=(o=o+Math.imul(D,re)|0)+Math.imul(M,ne)|0,i=i+Math.imul(M,re)|0,r=r+Math.imul(L,ie)|0,o=(o=o+Math.imul(L,ae)|0)+Math.imul(I,ie)|0,i=i+Math.imul(I,ae)|0,r=r+Math.imul(O,se)|0,o=(o=o+Math.imul(O,ce)|0)+Math.imul(w,se)|0,i=i+Math.imul(w,ce)|0,r=r+Math.imul(C,ue)|0,o=(o=o+Math.imul(C,fe)|0)+Math.imul(T,ue)|0,i=i+Math.imul(T,fe)|0;var Ne=(c+(r=r+Math.imul(_,pe)|0)|0)+((8191&(o=(o=o+Math.imul(_,me)|0)+Math.imul(S,pe)|0))<<13)|0;c=((i=i+Math.imul(S,me)|0)+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(B,Q),o=(o=Math.imul(B,ee))+Math.imul(z,Q)|0,i=Math.imul(z,ee),r=r+Math.imul(R,ne)|0,o=(o=o+Math.imul(R,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(D,ie)|0,o=(o=o+Math.imul(D,ae)|0)+Math.imul(M,ie)|0,i=i+Math.imul(M,ae)|0,r=r+Math.imul(L,se)|0,o=(o=o+Math.imul(L,ce)|0)+Math.imul(I,se)|0,i=i+Math.imul(I,ce)|0,r=r+Math.imul(O,ue)|0,o=(o=o+Math.imul(O,fe)|0)+Math.imul(w,ue)|0,i=i+Math.imul(w,fe)|0;var Le=(c+(r=r+Math.imul(C,pe)|0)|0)+((8191&(o=(o=o+Math.imul(C,me)|0)+Math.imul(T,pe)|0))<<13)|0;c=((i=i+Math.imul(T,me)|0)+(o>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(B,ne),o=(o=Math.imul(B,re))+Math.imul(z,ne)|0,i=Math.imul(z,re),r=r+Math.imul(R,ie)|0,o=(o=o+Math.imul(R,ae)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,ae)|0,r=r+Math.imul(D,se)|0,o=(o=o+Math.imul(D,ce)|0)+Math.imul(M,se)|0,i=i+Math.imul(M,ce)|0,r=r+Math.imul(L,ue)|0,o=(o=o+Math.imul(L,fe)|0)+Math.imul(I,ue)|0,i=i+Math.imul(I,fe)|0;var Ie=(c+(r=r+Math.imul(O,pe)|0)|0)+((8191&(o=(o=o+Math.imul(O,me)|0)+Math.imul(w,pe)|0))<<13)|0;c=((i=i+Math.imul(w,me)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(B,ie),o=(o=Math.imul(B,ae))+Math.imul(z,ie)|0,i=Math.imul(z,ae),r=r+Math.imul(R,se)|0,o=(o=o+Math.imul(R,ce)|0)+Math.imul(k,se)|0,i=i+Math.imul(k,ce)|0,r=r+Math.imul(D,ue)|0,o=(o=o+Math.imul(D,fe)|0)+Math.imul(M,ue)|0,i=i+Math.imul(M,fe)|0;var Ue=(c+(r=r+Math.imul(L,pe)|0)|0)+((8191&(o=(o=o+Math.imul(L,me)|0)+Math.imul(I,pe)|0))<<13)|0;c=((i=i+Math.imul(I,me)|0)+(o>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,r=Math.imul(B,se),o=(o=Math.imul(B,ce))+Math.imul(z,se)|0,i=Math.imul(z,ce),r=r+Math.imul(R,ue)|0,o=(o=o+Math.imul(R,fe)|0)+Math.imul(k,ue)|0,i=i+Math.imul(k,fe)|0;var De=(c+(r=r+Math.imul(D,pe)|0)|0)+((8191&(o=(o=o+Math.imul(D,me)|0)+Math.imul(M,pe)|0))<<13)|0;c=((i=i+Math.imul(M,me)|0)+(o>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(B,ue),o=(o=Math.imul(B,fe))+Math.imul(z,ue)|0,i=Math.imul(z,fe);var Me=(c+(r=r+Math.imul(R,pe)|0)|0)+((8191&(o=(o=o+Math.imul(R,me)|0)+Math.imul(k,pe)|0))<<13)|0;c=((i=i+Math.imul(k,me)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863;var xe=(c+(r=Math.imul(B,pe))|0)+((8191&(o=(o=Math.imul(B,me))+Math.imul(z,pe)|0))<<13)|0;return c=((i=Math.imul(z,me))+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,s[0]=ge,s[1]=ve,s[2]=be,s[3]=ye,s[4]=_e,s[5]=Se,s[6]=Ee,s[7]=Ce,s[8]=Te,s[9]=Ae,s[10]=Oe,s[11]=we,s[12]=Ne,s[13]=Le,s[14]=Ie,s[15]=Ue,s[16]=De,s[17]=Me,s[18]=xe,0!==c&&(s[19]=c,n.length++),n};function m(e,t,n){return(new g).mulp(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,o=0,i=0;i>>26)|0)>>>26,a&=67108863}n.words[i]=l,r=a,a=o}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,n,r,o,i){for(var a=0;a>>=1)o++;return 1<>>=13,n[2*a+1]=8191&i,i>>>=13;for(a=2*t;a>=26,t+=r/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>o}return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r=0);var t,n=e%26,r=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t=0),r=t?(t-t%26)/26:0;var i=e%26,a=Math.min((e-i)/26,this.length),l=67108863^67108863>>>i<a)for(this.length-=a,c=0;c=0&&(0!==d||c>=r);c--){var u=0|this.words[c];this.words[c]=d<<26-i|u>>>i,d=u&l}return s&&0!==d&&(s.words[s.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return o(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){o("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,r=1<=0);var t=e%26,n=(e-t)/26;if(o(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var r=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(o("number"==typeof e),o(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[r+n]=67108863&i}for(;r>26,this.words[r+n]=67108863&i;if(0===l)return this.strip();for(o(-1===l),l=0,r=0;r>26,this.words[r]=67108863&i;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,i=0|o.words[o.length-1];0!==(n=26-this._countBits(i))&&(o=o.ushln(n),r.iushln(n),i=0|o.words[o.length-1]);var l,s=r.length-o.length;if("mod"!==t){(l=new a(null)).length=s+1,l.words=new Array(l.length);for(var c=0;c=0;u--){var f=67108864*(0|r.words[o.length+u])+(0|r.words[o.length+u-1]);for(f=Math.min(f/i|0,67108863),r._ishlnsubmul(o,f,u);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(o,1,u),r.isZero()||(r.negative^=1);l&&(l.words[u]=f)}return l&&l.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:l||null,mod:r}},a.prototype.divmod=function(e,t,n){return o(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(l=this.neg().divmod(e,t),"mod"!==t&&(r=l.div.neg()),"div"!==t&&(i=l.mod.neg(),n&&0!==i.negative&&i.iadd(e)),{div:r,mod:i}):0===this.negative&&0!==e.negative?(l=this.divmod(e.neg(),t),"mod"!==t&&(r=l.div.neg()),{div:r,mod:l.mod}):0!=(this.negative&e.negative)?(l=this.neg().divmod(e.neg(),t),"div"!==t&&(i=l.mod.neg(),n&&0!==i.negative&&i.isub(e)),{div:l.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,i,l},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),o=e.andln(1),i=n.cmp(r);return i<0||1===o&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){o(e<=67108863);for(var t=(1<<26)%e,n=0,r=this.length-1;r>=0;r--)n=(t*n+(0|this.words[r]))%e;return n},a.prototype.idivn=function(e){o(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*t;this.words[n]=r/e|0,t=r%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){o(0===e.negative),o(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new a(1),i=new a(0),l=new a(0),s=new a(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var d=n.clone(),u=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(r.isOdd()||i.isOdd())&&(r.iadd(d),i.isub(u)),r.iushrn(1),i.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(l.isOdd()||s.isOdd())&&(l.iadd(d),s.isub(u)),l.iushrn(1),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),r.isub(l),i.isub(s)):(n.isub(t),l.isub(r),s.isub(i))}return{a:l,b:s,gcd:n.iushln(c)}},a.prototype._invmp=function(e){o(0===e.negative),o(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,i=new a(1),l=new a(0),s=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,d=1;0==(t.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(t.iushrn(c);c-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,f=1;0==(n.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(n.iushrn(u);u-- >0;)l.isOdd()&&l.iadd(s),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(l)):(n.isub(t),l.isub(i))}return(r=0===t.cmpn(1)?i:l).cmpn(0)<0&&r.iadd(e),r},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=t.cmp(n);if(o<0){var i=t;t=n,n=i}else if(0===o||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){o("number"==typeof e);var t=e%26,n=(e-t)/26,r=1<>>26,l&=67108863,this.words[a]=l}return 0!==i&&(this.words[a]=i,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),o(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:re.length)return 1;if(this.length=0;n--){var r=0|this.words[n],o=0|e.words[n];if(r!==o){ro&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new C(e)},a.prototype.toRed=function(e){return o(!this.red,"Already a number in reduction context"),o(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return o(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return o(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else o(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(y,b),y.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r>>22,o=i}o>>>=22,e.words[r-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=o,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new _;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return v[e]=t,t},C.prototype._verify1=function(e){o(0===e.negative,"red works only with positives"),o(e.red,"red works only with red numbers")},C.prototype._verify2=function(e,t){o(0==(e.negative|t.negative),"red works only with positives"),o(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},C.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},C.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},C.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(o(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var r=this.m.subn(1),i=0;!r.isZero()&&0===r.andln(1);)i++,r.iushrn(1);o(!r.isZero());var l=new a(1).toRed(this),s=l.redNeg(),c=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new a(2*d*d).toRed(this);0!==this.pow(d,c).cmp(s);)d.redIAdd(s);for(var u=this.pow(d,r),f=this.pow(e,r.addn(1).iushrn(1)),h=this.pow(e,r),p=i;0!==h.cmp(l);){for(var m=h,g=0;0!==m.cmp(l);g++)m=m.redSqr();o(g=0;r--){for(var c=t.words[r],d=s-1;d>=0;d--){var u=c>>d&1;o!==n[0]&&(o=this.sqr(o)),0!==u||0!==i?(i<<=1,i|=u,(4===++l||0===r&&0===d)&&(o=this.mul(o,n[i]),l=0,i=0)):l=0}s=26}return o},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new T(e)},i(T,C),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(117)(e))},function(e,t,n){e.exports=!n(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(8),o=n(141),i=n(38),a=Object.defineProperty;t.f=n(14)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var r=n(406),o=n(407),i=n(175);function a(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return w(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){var i,a=1,l=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,l/=2,s/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var d=-1;for(i=n;il&&(n=l-s),i=n;i>=0;i--){for(var u=!0,f=0;fo&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function w(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+u<=n)switch(u){case 1:c<128&&(d=c);break;case 2:128==(192&(i=e[o+1]))&&(s=(31&c)<<6|63&i)>127&&(d=s);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(s=(15&c)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(d=s);break;case 4:i=e[o+1],a=e[o+2],l=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&l)&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&s<1114112&&(d=s)}null===d?(d=65533,u=1):d>65535&&(d-=65536,r.push(d>>>10&1023|55296),d=56320|1023&d),r.push(d),o+=u}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},s.prototype.compare=function(e,t,n,r,o){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),l=Math.min(i,a),c=this.slice(r,o),d=e.slice(t,n),u=0;uo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return C(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function A(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,o,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function x(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function M(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function k(e,t,n,r,i){return i||M(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function P(e,t,n,r,i){return i||M(e,0,n,8),o.write(e,t,n,r,52,8),n+8}s.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);D(this,e,t,n,o-1,-o)}var i=0,a=1,l=0;for(this[t]=255&e;++i>0)-l&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);D(this,e,t,n,o-1,-o)}var i=n-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a>>0)-l&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!s.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function j(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(37))},function(e,t,n){var r=n(35);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(6),o=n(21),i=n(20),a=n(43)("src"),l=n(223),s=(""+l).split("toString");n(12).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,l){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(i(n,a)||o(n,a,e[t]?""+e[t]:s.join(String(t)))),e===r?e[t]=n:l?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||l.call(this)}))},function(e,t,n){var r=n(0),o=n(7),i=n(35),a=/"/g,l=function(e,t,n,r){var o=String(i(e)),l="<"+t;return""!==n&&(l+=" "+n+'="'+String(r).replace(a,""")+'"'),l+">"+o+""};e.exports=function(e,t){var n={};n[e]=t(l),r(r.P+r.F*o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(15),o=n(42);e.exports=n(14)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(63),o=n(35);e.exports=function(e){return r(o(e))}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=t,o=n(13),i=n(23),a=n(199);r.assert=i,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var o=1<(o>>1)-1?(o>>1)-s:s,i.isubn(l)):l=0,r[a]=l,i.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,o=0;e.cmpn(-r)>0||t.cmpn(-o)>0;){var i,a,l,s=e.andln(3)+r&3,c=t.andln(3)+o&3;if(3===s&&(s=-1),3===c&&(c=-1),0==(1&s))i=0;else i=3!==(l=e.andln(7)+r&7)&&5!==l||2!==c?s:-s;if(n[0].push(i),0==(1&c))a=0;else a=3!==(l=t.andln(7)+o&7)&&5!==l||2!==s?c:-c;n[1].push(a),2*r===i+1&&(r=1-r),2*o===a+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new o(e,"hex","le")}},function(e,t,n){"use strict";var r=n(7);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,n){var r=n(1),o=n(3),i=n(216);function a(e,t,n){var r=0,o=t.length;return function a(){r0?r:n)(e)}},function(e,t,n){var r=n(64),o=n(42),i=n(22),a=n(38),l=n(20),s=n(141),c=Object.getOwnPropertyDescriptor;t.f=n(14)?c:function(e,t){if(e=i(e),t=a(t,!0),s)try{return c(e,t)}catch(e){}if(l(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(0),o=n(12),i=n(7);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},function(e,t,n){var r=n(27),o=n(63),i=n(17),a=n(11),l=n(157);e.exports=function(e,t){var n=1==e,s=2==e,c=3==e,d=4==e,u=6==e,f=5==e||u,h=t||l;return function(t,l,p){for(var m,g,v=i(t),b=o(v),y=r(l,p,3),_=a(b.length),S=0,C=n?h(t,_):s?h(t,0):void 0;_>S;S++)if((f||S in b)&&(g=y(m=b[S],S,v),e))if(n)C[S]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return S;case 2:C.push(m)}else if(d)return!1;return u?-1:c||d?d:C}}},function(e,t,n){"use strict";var r=n(23),o=n(4);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function l(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o>6|192,n[r++]=63&a|128):i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(o=0;o>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},t.sum64=function(e,t,n,r){var o=e[t],i=r+e[t+1]>>>0,a=(i>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,o,i,a,l){var s=0,c=t;return s+=(c=c+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,o,i,a,l){return t+r+i+l>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,a,l,s,c){var d=0,u=t;return d+=(u=u+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,o,i,a,l,s,c){return t+r+i+l+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}if(n(14)){var o=n(44),i=n(6),a=n(7),l=n(0),s=n(84),c=n(116),d=n(27),u=n(58),f=n(42),h=n(21),p=n(59),m=n(29),g=n(11),v=n(168),b=n(46),y=n(38),_=n(20),S=n(65),C=n(9),E=n(17),T=n(108),w=n(47),O=n(49),A=n(48).f,N=n(110),L=n(43),I=n(10),U=n(32),D=n(74),x=n(66),R=n(112),M=n(56),k=n(77),P=n(57),B=n(111),z=n(159),F=n(15),j=n(30),q=F.f,W=j.f,H=i.RangeError,Y=i.TypeError,V=i.Uint8Array,G=Array.prototype,Z=c.ArrayBuffer,K=c.DataView,X=U(0),$=U(2),J=U(3),Q=U(4),ee=U(5),te=U(6),ne=D(!0),re=D(!1),oe=R.values,ie=R.keys,ae=R.entries,le=G.lastIndexOf,se=G.reduce,ce=G.reduceRight,de=G.join,ue=G.sort,fe=G.slice,he=G.toString,pe=G.toLocaleString,me=I("iterator"),ge=I("toStringTag"),ve=L("typed_constructor"),be=L("def_constructor"),ye=s.CONSTR,_e=s.TYPED,Se=s.VIEW,Ce=U(1,(function(e,t){return Ae(x(e,e[be]),t)})),Ee=a((function(){return 1===new V(new Uint16Array([1]).buffer)[0]})),Te=!!V&&!!V.prototype.set&&a((function(){new V(1).set({})})),we=function(e,t){var n=m(e);if(n<0||n%t)throw H("Wrong offset!");return n},Oe=function(e){if(C(e)&&_e in e)return e;throw Y(e+" is not a typed array!")},Ae=function(e,t){if(!(C(e)&&ve in e))throw Y("It is not a typed array constructor!");return new e(t)},Ne=function(e,t){return Le(x(e,e[be]),t)},Le=function(e,t){for(var n=0,r=t.length,o=Ae(e,r);r>n;)o[n]=t[n++];return o},Ie=function(e,t,n){q(e,t,{get:function(){return this._d[n]}})},Ue=function(e){var t,n,r,o,i,a,l=E(e),s=arguments.length,c=s>1?arguments[1]:void 0,u=void 0!==c,f=N(l);if(null!=f&&!T(f)){for(a=f.call(l),r=[],t=0;!(i=a.next()).done;t++)r.push(i.value);l=r}for(u&&s>2&&(c=d(c,arguments[2],2)),t=0,n=g(l.length),o=Ae(this,n);n>t;t++)o[t]=u?c(l[t],t):l[t];return o},De=function(){for(var e=0,t=arguments.length,n=Ae(this,t);t>e;)n[e]=arguments[e++];return n},xe=!!V&&a((function(){pe.call(new V(1))})),Re=function(){return pe.apply(xe?fe.call(Oe(this)):Oe(this),arguments)},Me={copyWithin:function(e,t){return z.call(Oe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Q(Oe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return B.apply(Oe(this),arguments)},filter:function(e){return Ne(this,$(Oe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return ee(Oe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return te(Oe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){X(Oe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return re(Oe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return ne(Oe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return de.apply(Oe(this),arguments)},lastIndexOf:function(e){return le.apply(Oe(this),arguments)},map:function(e){return Ce(Oe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Oe(this),arguments)},reduceRight:function(e){return ce.apply(Oe(this),arguments)},reverse:function(){for(var e,t=Oe(this).length,n=Math.floor(t/2),r=0;r1?arguments[1]:void 0)},sort:function(e){return ue.call(Oe(this),e)},subarray:function(e,t){var n=Oe(this),r=n.length,o=b(e,r);return new(x(n,n[be]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,g((void 0===t?r:b(t,r))-o))}},ke=function(e,t){return Ne(this,fe.call(Oe(this),e,t))},Pe=function(e){Oe(this);var t=we(arguments[1],1),n=this.length,r=E(e),o=g(r.length),i=0;if(o+t>n)throw H("Wrong length!");for(;i255?255:255&o),i.v[f](n*t+i.o,o,Ee)}(this,n,e)},enumerable:!0})};y?(p=n((function(e,n,r,o){u(e,p,c,"_d");var i,a,l,s,d=0,f=0;if(C(n)){if(!(n instanceof Z||"ArrayBuffer"==(s=S(n))||"SharedArrayBuffer"==s))return _e in n?Le(p,n):Ue.call(p,n);i=n,f=we(r,t);var m=n.byteLength;if(void 0===o){if(m%t)throw H("Wrong length!");if((a=m-f)<0)throw H("Wrong length!")}else if((a=g(o)*t)+f>m)throw H("Wrong length!");l=a/t}else l=v(n),i=new Z(a=l*t);for(h(e,"_d",{b:i,o:f,l:a,e:l,v:new K(i)});d1)for(var n=1;ndocument.F=Object<\/script>"),e.close(),s=e.F;r--;)delete s.prototype[i[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=r(e),n=new l,l.prototype=null,n[a]=e):n=s(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(143),o=n(95).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(20),o=n(17),i=n(94)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(10)("unscopables"),o=Array.prototype;null==o[r]&&n(21)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t,n){var r=n(9);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";var r=n(85),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var i=Object.create(n(68));i.inherits=n(4);var a=n(177),l=n(125);i.inherits(u,a);for(var s=o(l.prototype),c=0;c=0;o--){(0,r.splice(o,1)[0])()}n[t.loadId]=[]}}}},function(e,t,n){var r=n(15).f,o=n(20),i=n(10)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(0),o=n(35),i=n(7),a=n(98),l="["+a+"]",s=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),d=function(e,t,n){var o={},l=i((function(){return!!a[e]()||"​…"!="​…"[e]()})),s=o[e]=l?t(u):a[e];n&&(o[n]=s),r(r.P+r.F*l,"String",o)},u=d.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(s,"")),2&t&&(e=e.replace(c,"")),e};e.exports=d},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(6),o=n(15),i=n(14),a=n(10)("species");e.exports=function(e){var t=r[e];i&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(18);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){"use strict";(function(t,r){var o=n(5).Buffer,i=t.crypto||t.msCrypto;i&&i.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=o.allocUnsafe(e);if(e>0)if(e>65536)for(var a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,o=(n-r)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=o},function(e,t,n){var r=n(174),o={run:function(e){e.wizMath={getRandomArbitrary:function(t,n){return e.wizMath.random()*(n-t)+t},random:function(){return r()()}},e.Selection&&!e.Selection.prototype.extend&&(e.Selection.prototype.extend=function(t,n){var r=e.document.getSelection();try{if(!r||0===r.rangeCount)return}catch(e){return}var o=r.getRangeAt(0),i=e.document.createRange(),a=e.document.createRange();a.setStart(o.startContainer,o.startOffset);var l=e.document.createRange();l.setStart(t,n),l.compareBoundaryPoints(Range.START_TO_START,a)>=0?(i.setStart(o.startContainer,o.startOffset),i.setEnd(t,n)):(i.setStart(t,n),i.setEnd(o.startContainer,o.startOffset)),this.removeAllRanges(),this.addRange(i)}),e.document.body.addEventListener("mscontrolselect",(function(e){e.preventDefault()}))}};e.exports=o},function(e,t,n){var r=n(34);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(34),o=n(10)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var r=n(8),o=n(28),i=n(10)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},function(e,t,n){"use strict";var r=n(4),o=n(121),i=n(127),a=n(128),l=n(41);function s(e){l.call(this,"digest"),this._hash=e}r(s,l),s.prototype._update=function(e){this._hash.update(e)},s.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new o:"rmd160"===e||"ripemd160"===e?new i:new s(a(e))}},function(e,t,n){(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"===n(e)},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"===n(e)&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===n(e)||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(16).Buffer)},function(e,t,n){(function(t){e.exports=function(e,n){for(var r=Math.min(e.length,n.length),o=new t(r),i=0;i=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var o=0;o>>24&255,r[o++]=e>>>16&255,r[o++]=e>>>8&255,r[o++]=255&e}else for(r[o++]=255&e,r[o++]=e>>>8&255,r[o++]=e>>>16&255,r[o++]=e>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;id;)if((l=s[d++])!=l)return!0}else for(;c>d;d++)if((e||d in s)&&s[d]===n)return e||d||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(34);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(10)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(8);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(65),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var a=n.call(e,t);if("object"!==r(a))throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==o(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,n){"use strict";n(161);var r=n(18),o=n(21),i=n(7),a=n(35),l=n(10),s=n(113),c=l("species"),d=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$
")})),u=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var f=l(e),h=!i((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),p=h?!i((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!t})):void 0;if(!h||!p||"replace"===e&&!d||"split"===e&&!u){var m=/./[f],g=n(a,f,""[e],(function(e,t,n,r,o){return t.exec===s?h&&!o?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=g[0],b=g[1];r(String.prototype,e,v),o(RegExp.prototype,f,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},function(e,t,n){var r=n(27),o=n(156),i=n(108),a=n(8),l=n(11),s=n(110),c={},d={};(t=e.exports=function(e,t,n,u,f){var h,p,m,g,v=f?function(){return e}:s(e),b=r(n,u,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(i(v)){for(h=l(e.length);h>y;y++)if((g=t?b(a(p=e[y])[0],p[1]):b(e[y]))===c||g===d)return g}else for(m=v.call(e);!(p=m.next()).done;)if((g=o(m,b,p.value,t))===c||g===d)return g}).BREAK=c,t.RETURN=d},function(e,t,n){var r=n(6).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){"use strict";var r=n(6),o=n(0),i=n(18),a=n(59),l=n(39),s=n(81),c=n(58),d=n(9),u=n(7),f=n(77),h=n(54),p=n(99);e.exports=function(e,t,n,m,g,v){var b=r[e],y=b,_=g?"set":"add",S=y&&y.prototype,C={},E=function(e){var t=S[e];i(S,e,"delete"==e?function(e){return!(v&&!d(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!d(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!d(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof y&&(v||S.forEach&&!u((function(){(new y).entries().next()})))){var T=new y,w=T[_](v?{}:-0,1)!=T,O=u((function(){T.has(1)})),A=f((function(e){new y(e)})),N=!v&&u((function(){for(var e=new y,t=5;t--;)e[_](t,t);return!e.has(-0)}));A||((y=t((function(t,n){c(t,y,e);var r=p(new b,t,y);return null!=n&&s(n,g,r[_],r),r}))).prototype=S,S.constructor=y),(O||N)&&(E("delete"),E("has"),g&&E("get")),(N||w)&&E(_),v&&S.clear&&delete S.clear}else y=m.getConstructor(t,e,g,_),a(y.prototype,n),l.NEED=!0;return h(y,e),C[e]=y,o(o.G+o.W+o.F*(y!=b),C),v||m.setStrong(y,e,g),y}},function(e,t,n){for(var r,o=n(6),i=n(21),a=n(43),l=a("typed_array"),s=a("view"),c=!(!o.ArrayBuffer||!o.DataView),d=c,u=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");u<9;)(r=o[f[u++]])?(i(r.prototype,l,!0),i(r.prototype,s,!0)):d=!1;e.exports={ABV:c,CONSTR:d,TYPED:l,VIEW:s}},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,l=arguments.length;switch(l){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,o)}));default:for(i=new Array(l-1),a=0;a>>24]^d[p>>>16&255]^u[m>>>8&255]^f[255&g]^t[v++],a=c[p>>>24]^d[m>>>16&255]^u[g>>>8&255]^f[255&h]^t[v++],l=c[m>>>24]^d[g>>>16&255]^u[h>>>8&255]^f[255&p]^t[v++],s=c[g>>>24]^d[h>>>16&255]^u[p>>>8&255]^f[255&m]^t[v++],h=i,p=a,m=l,g=s;return i=(r[h>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&g])^t[v++],a=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[g>>>8&255]<<8|r[255&h])^t[v++],l=(r[m>>>24]<<24|r[g>>>16&255]<<16|r[h>>>8&255]<<8|r[255&p])^t[v++],s=(r[g>>>24]<<24|r[h>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^t[v++],[i>>>=0,a>>>=0,l>>>=0,s>>>=0]}var l=[0,1,2,4,8,16,32,64,128,27,54],s=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],o=[[],[],[],[]],i=[[],[],[],[]],a=0,l=0,s=0;s<256;++s){var c=l^l<<1^l<<2^l<<3^l<<4;c=c>>>8^255&c^99,n[a]=c,r[c]=a;var d=e[a],u=e[d],f=e[u],h=257*e[c]^16843008*c;o[0][a]=h<<24|h>>>8,o[1][a]=h<<16|h>>>16,o[2][a]=h<<8|h>>>24,o[3][a]=h,h=16843009*f^65537*u^257*d^16843008*a,i[0][c]=h<<24|h>>>8,i[1][c]=h<<16|h>>>16,i[2][c]=h<<8|h>>>24,i[3][c]=h,0===a?a=l=1:(a=d^e[e[e[f^d]]],l^=e[e[l]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:o,INV_SUB_MIX:i}}();function c(e){this._key=o(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),o=[],i=0;i>>24,a=s.SBOX[a>>>24]<<24|s.SBOX[a>>>16&255]<<16|s.SBOX[a>>>8&255]<<8|s.SBOX[255&a],a^=l[i/t|0]<<24):t>6&&i%t==4&&(a=s.SBOX[a>>>24]<<24|s.SBOX[a>>>16&255]<<16|s.SBOX[a>>>8&255]<<8|s.SBOX[255&a]),o[i]=o[i-t]^a}for(var c=[],d=0;d>>24]]^s.INV_SUB_MIX[1][s.SBOX[f>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[f>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[255&f]]}this._nRounds=n,this._keySchedule=o,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return a(e=o(e),this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},c.prototype.decryptBlock=function(e){var t=(e=o(e))[1];e[1]=e[3],e[3]=t;var n=a(e,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),i=r.allocUnsafe(16);return i.writeUInt32BE(n[0],0),i.writeUInt32BE(n[3],4),i.writeUInt32BE(n[2],8),i.writeUInt32BE(n[1],12),i},c.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},e.exports.AES=c},function(e,t,n){var r=n(5).Buffer,o=n(121);e.exports=function(e,t,n,i){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,l=r.alloc(a),s=r.alloc(i||0),c=r.alloc(0);a>0||i>0;){var d=new o;d.update(c),d.update(e),t&&d.update(t),c=d.digest();var u=0;if(a>0){var f=l.length-a;u=Math.min(a,c.length),c.copy(l,f,0,u),a-=u}if(u0){var h=s.length-i,p=Math.min(i,c.length-u);c.copy(s,h,u,u+p),i-=p}}return c.fill(0),{key:l,iv:s}}},function(e,t,n){"use strict";var r=n(13),o=n(24),i=o.getNAF,a=o.getJSF,l=o.assert;function s(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=s,s.prototype.point=function(){throw new Error("Not implemented")},s.prototype.validate=function(){throw new Error("Not implemented")},s.prototype._fixedNafMul=function(e,t){l(e.precomputed);var n=e._getDoubles(),r=i(t,1,this._bitLength),o=(1<=s;t--)c=(c<<1)+r[t];a.push(c)}for(var d=this.jpoint(null,null,null),u=this.jpoint(null,null,null),f=o;f>0;f--){for(s=0;s=0;c--){for(t=0;c>=0&&0===a[c];c--)t++;if(c>=0&&t++,s=s.dblp(t),c<0)break;var d=a[c];l(0!==d),s="affine"===e.type?d>0?s.mixedAdd(o[d-1>>1]):s.mixedAdd(o[-d-1>>1].neg()):d>0?s.add(o[d-1>>1]):s.add(o[-d-1>>1].neg())}return"affine"===e.type?s.toP():s},s.prototype._wnafMulAdd=function(e,t,n,r,o){for(var l=this._wnafT1,s=this._wnafT2,c=this._wnafT3,d=0,u=0;u=1;u-=2){var h=u-1,p=u;if(1===l[h]&&1===l[p]){var m=[t[h],null,null,t[p]];0===t[h].y.cmp(t[p].y)?(m[1]=t[h].add(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg())):0===t[h].y.cmp(t[p].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].add(t[p].neg())):(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=a(n[h],n[p]);d=Math.max(v[0].length,d),c[h]=new Array(d),c[p]=new Array(d);for(var b=0;b=0;u--){for(var E=0;u>=0;){var T=!0;for(b=0;b=0&&E++,S=S.dblp(E),u<0)break;for(b=0;b0?w=s[b][O-1>>1]:O<0&&(w=s[b][-O-1>>1].neg()),S="affine"===w.type?S.mixedAdd(w):S.add(w))}}for(u=0;u=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,o=0;o>>6)+s(128|63&t):s(224|t>>>12&15)+s(128|t>>>6&63)+s(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return s(240|t>>>18&7)+s(128|t>>>12&63)+s(128|t>>>6&63)+s(128|63&t)},d=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,u=function(e){return e.replace(d,c)},f=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[a.charAt(n>>>18),a.charAt(n>>>12&63),t>=2?"=":a.charAt(n>>>6&63),t>=1?"=":a.charAt(63&n)].join("")},h=o.btoa?function(e){return o.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,f)},p=r?function(e){return(e.constructor===r.constructor?e:new r(e)).toString("base64")}:function(e){return h(u(e))},m=function(e,t){return t?p(String(e)).replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,""):p(String(e))},g=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),v=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return s(55296+(t>>>10))+s(56320+(1023&t));case 3:return s((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return s((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},b=function(e){return e.replace(g,v)},y=function(e){var t=e.length,n=t%4,r=(t>0?l[e.charAt(0)]<<18:0)|(t>1?l[e.charAt(1)]<<12:0)|(t>2?l[e.charAt(2)]<<6:0)|(t>3?l[e.charAt(3)]:0),o=[s(r>>>16),s(r>>>8&255),s(255&r)];return o.length-=[0,0,2,1][n],o.join("")},_=o.atob?function(e){return o.atob(e)}:function(e){return e.replace(/[\s\S]{1,4}/g,y)},S=r?function(e){return(e.constructor===r.constructor?e:new r(e,"base64")).toString()}:function(e){return b(_(e))},C=function(e){return S(String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,""))};if(o.Base64={VERSION:"2.1.8",atob:_,btoa:h,fromBase64:C,toBase64:m,utob:u,encode:m,encodeURI:function(e){return m(e,!0)},btou:b,decode:C,noConflict:function(){var e=o.Base64;return o.Base64=i,e}},"function"==typeof Object.defineProperty){var E=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};o.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",E((function(){return C(this)}))),Object.defineProperty(String.prototype,"toBase64",E((function(e){return m(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",E((function(){return m(this,!0)})))}}e.exports=o.Base64},function(e,t){e.exports={CLASS:{CONTAINER:"outline-container",NODE:"node",COLLAPSED:"collapsed",ROW:"row",SWITCH:"switch",OPERATOR_CONTAINER:"operator-container",OPERATOR_BAR:"operator-bar",DOT:"dot",DOT_ICON:"dot-icon",CHILD:"child",CHILDREN:"children",CONTENT:"content",NOTES:"notes",IMAGE:"image",COMPLETE:"complete",NODE_SHOW_MENU:"show-menu",NODE_SELECTED:"selected"},ID:{STYLE:"wiz_outline_style",MINDER_CONTAINER:"wiz-minder-container"},NAME:{STYLE:"wiz_outline_style"},MENU:{ADD_NOTES:"add_notes",COMPLETE:"complete",COPY:"copy",DUPLICATE:"duplicate",INDENT:"indent",OUTDENT:"outdent",DELETE:"remove",UNCOMPLETE:"uncomplete"},NODE_ITEM_TYPE:{CONTENT:"content",NOTES:"notes"},HOTKEY_MAP:{WIN:{ADD_NOTES:"Shift + Enter",COMPLETE:"Ctrl + Enter",DUPLICATE:"Shift + Ctrl + D",INDENT:"Tab",OUTDENT:"Shift + Tab",DELETE:"Delete",UNCOMPLETE:"Ctrl + Enter"},MAC:{ADD_NOTES:"Shift + Enter",COMPLETE:"⌘ + Enter",DUPLICATE:"Shift + Ctrl + D",INDENT:"Tab",OUTDENT:"Shift + Tab",DELETE:"Delete",UNCOMPLETE:"⌘ + Enter"}}}},function(e,t,n){var r=n(9),o=n(6).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){t.f=n(10)},function(e,t,n){var r=n(73)("keys"),o=n(43);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(6).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(9),o=n(8),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(27)(Function.call,n(30).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(e,t,n){var r=n(9),o=n(97).set;e.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},function(e,t,n){"use strict";var r=n(29),o=n(35);e.exports=function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){var r=n(29),o=n(35);e.exports=function(e){return function(t,n){var i,a,l=String(o(t)),s=r(n),c=l.length;return s<0||s>=c?e?"":void 0:(i=l.charCodeAt(s))<55296||i>56319||s+1===c||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(44),o=n(0),i=n(18),a=n(21),l=n(56),s=n(155),c=n(54),d=n(49),u=n(10)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,p,m,g,v){s(n,t,p);var b,y,_,S=function(e){if(!f&&e in w)return w[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",E="values"==m,T=!1,w=e.prototype,O=w[u]||w["@@iterator"]||m&&w[m],A=O||S(m),N=m?E?S("entries"):A:void 0,L="Array"==t&&w.entries||O;if(L&&(_=d(L.call(new e)))!==Object.prototype&&_.next&&(c(_,C,!0),r||"function"==typeof _[u]||a(_,u,h)),E&&O&&"values"!==O.name&&(T=!0,A=function(){return O.call(this)}),r&&!v||!f&&!T&&w[u]||a(w,u,A),l[t]=A,l[C]=h,m)if(b={values:E?A:S("values"),keys:g?A:S("keys"),entries:N},v)for(y in b)y in w||i(w,y,b[y]);else o(o.P+o.F*(f||T),t,b);return b}},function(e,t,n){var r=n(106),o=n(35);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){var r=n(9),o=n(34),i=n(10)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(10)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var r=n(56),o=n(10)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){"use strict";var r=n(15),o=n(42);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){var r=n(65),o=n(10)("iterator"),i=n(56);e.exports=n(12).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){"use strict";var r=n(17),o=n(46),i=n(11);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,l=o(a>1?arguments[1]:void 0,n),s=a>2?arguments[2]:void 0,c=void 0===s?n:o(s,n);c>l;)t[l++]=e;return t}},function(e,t,n){"use strict";var r=n(50),o=n(160),i=n(56),a=n(22);e.exports=n(104)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r,o,i=n(78),a=RegExp.prototype.exec,l=String.prototype.replace,s=a,c=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),d=void 0!==/()??/.exec("")[1];(c||d)&&(s=function(e){var t,n,r,o,s=this;return d&&(n=new RegExp("^"+s.source+"$(?!\\s)",i.call(s))),c&&(t=s.lastIndex),r=a.call(s,e),c&&r&&(s.lastIndex=s.global?r.index+r[0].length:t),d&&r&&r.length>1&&l.call(r[0],n,(function(){for(o=1;on;)t.push(arguments[n++]);return v[++g]=function(){l("function"==typeof e?e:Function(e),t)},r(g),g},h=function(e){delete v[e]},"process"==n(34)(u)?r=function(e){u.nextTick(a(b,e,1))}:m&&m.now?r=function(e){m.now(a(b,e,1))}:p?(i=(o=new p).port2,o.port1.onmessage=y,r=a(i.postMessage,i,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts?(r=function(e){d.postMessage(e+"","*")},d.addEventListener("message",y,!1)):r="onreadystatechange"in c("script")?function(e){s.appendChild(c("script")).onreadystatechange=function(){s.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),e.exports={set:f,clear:h}},function(e,t,n){"use strict";var r=n(6),o=n(14),i=n(44),a=n(84),l=n(21),s=n(59),c=n(7),d=n(58),u=n(29),f=n(11),h=n(168),p=n(48).f,m=n(15).f,g=n(111),v=n(54),b=r.ArrayBuffer,y=r.DataView,_=r.Math,S=r.RangeError,C=r.Infinity,E=b,T=_.abs,w=_.pow,O=_.floor,A=_.log,N=_.LN2,L=o?"_b":"buffer",I=o?"_l":"byteLength",U=o?"_o":"byteOffset";function D(e,t,n){var r,o,i,a=new Array(n),l=8*n-t-1,s=(1<>1,d=23===t?w(2,-24)-w(2,-77):0,u=0,f=e<0||0===e&&1/e<0?1:0;for((e=T(e))!=e||e===C?(o=e!=e?1:0,r=s):(r=O(A(e)/N),e*(i=w(2,-r))<1&&(r--,i*=2),(e+=r+c>=1?d/i:d*w(2,1-c))*i>=2&&(r++,i/=2),r+c>=s?(o=0,r=s):r+c>=1?(o=(e*i-1)*w(2,t),r+=c):(o=e*w(2,c-1)*w(2,t),r=0));t>=8;a[u++]=255&o,o/=256,t-=8);for(r=r<0;a[u++]=255&r,r/=256,l-=8);return a[--u]|=128*f,a}function x(e,t,n){var r,o=8*n-t-1,i=(1<>1,l=o-7,s=n-1,c=e[s--],d=127&c;for(c>>=7;l>0;d=256*d+e[s],s--,l-=8);for(r=d&(1<<-l)-1,d>>=-l,l+=t;l>0;r=256*r+e[s],s--,l-=8);if(0===d)d=1-a;else{if(d===i)return r?NaN:c?-C:C;r+=w(2,t),d-=a}return(c?-1:1)*r*w(2,d-t)}function R(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function M(e){return[255&e]}function k(e){return[255&e,e>>8&255]}function P(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function B(e){return D(e,52,8)}function z(e){return D(e,23,4)}function F(e,t,n){m(e.prototype,t,{get:function(){return this[n]}})}function j(e,t,n,r){var o=h(+n);if(o+t>e[I])throw S("Wrong index!");var i=e[L]._b,a=o+e[U],l=i.slice(a,a+t);return r?l:l.reverse()}function q(e,t,n,r,o,i){var a=h(+n);if(a+t>e[I])throw S("Wrong index!");for(var l=e[L]._b,s=a+e[U],c=r(+o),d=0;dV;)(W=Y[V++])in b||l(b,W,E[W]);i||(H.constructor=b)}var G=new y(new b(2)),Z=y.prototype.setInt8;G.setInt8(0,2147483648),G.setInt8(1,2147483649),!G.getInt8(0)&&G.getInt8(1)||s(y.prototype,{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},!0)}else b=function(e){d(this,b,"ArrayBuffer");var t=h(e);this._b=g.call(new Array(t),0),this[I]=t},y=function(e,t,n){d(this,y,"DataView"),d(e,b,"DataView");var r=e[I],o=u(t);if(o<0||o>r)throw S("Wrong offset!");if(o+(n=void 0===n?r-o:f(n))>r)throw S("Wrong length!");this[L]=e,this[U]=o,this[I]=n},o&&(F(b,"byteLength","_l"),F(y,"buffer","_b"),F(y,"byteLength","_l"),F(y,"byteOffset","_o")),s(y.prototype,{getInt8:function(e){return j(this,1,e)[0]<<24>>24},getUint8:function(e){return j(this,1,e)[0]},getInt16:function(e){var t=j(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=j(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return R(j(this,4,e,arguments[1]))},getUint32:function(e){return R(j(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return x(j(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return x(j(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){q(this,1,e,M,t)},setUint8:function(e,t){q(this,1,e,M,t)},setInt16:function(e,t){q(this,2,e,k,t,arguments[2])},setUint16:function(e,t){q(this,2,e,k,t,arguments[2])},setInt32:function(e,t){q(this,4,e,P,t,arguments[2])},setUint32:function(e,t){q(this,4,e,P,t,arguments[2])},setFloat32:function(e,t){q(this,4,e,z,t,arguments[2])},setFloat64:function(e,t){q(this,8,e,B,t,arguments[2])}});v(b,"ArrayBuffer"),v(y,"DataView"),l(y.prototype,a.VIEW,!0),t.ArrayBuffer=b,t.DataView=y},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return"object"===n(e)?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(173)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(4),o=n(176),i=n(5).Buffer,a=new Array(16);function l(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(e,t){return e<>>32-t}function c(e,t,n,r,o,i,a){return s(e+(t&n|~t&r)+o+i|0,a)+t|0}function d(e,t,n,r,o,i,a){return s(e+(t&r|n&~r)+o+i|0,a)+t|0}function u(e,t,n,r,o,i,a){return s(e+(t^n^r)+o+i|0,a)+t|0}function f(e,t,n,r,o,i,a){return s(e+(n^(t|~r))+o+i|0,a)+t|0}r(l,o),l.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,o=this._c,i=this._d;n=c(n,r,o,i,e[0],3614090360,7),i=c(i,n,r,o,e[1],3905402710,12),o=c(o,i,n,r,e[2],606105819,17),r=c(r,o,i,n,e[3],3250441966,22),n=c(n,r,o,i,e[4],4118548399,7),i=c(i,n,r,o,e[5],1200080426,12),o=c(o,i,n,r,e[6],2821735955,17),r=c(r,o,i,n,e[7],4249261313,22),n=c(n,r,o,i,e[8],1770035416,7),i=c(i,n,r,o,e[9],2336552879,12),o=c(o,i,n,r,e[10],4294925233,17),r=c(r,o,i,n,e[11],2304563134,22),n=c(n,r,o,i,e[12],1804603682,7),i=c(i,n,r,o,e[13],4254626195,12),o=c(o,i,n,r,e[14],2792965006,17),n=d(n,r=c(r,o,i,n,e[15],1236535329,22),o,i,e[1],4129170786,5),i=d(i,n,r,o,e[6],3225465664,9),o=d(o,i,n,r,e[11],643717713,14),r=d(r,o,i,n,e[0],3921069994,20),n=d(n,r,o,i,e[5],3593408605,5),i=d(i,n,r,o,e[10],38016083,9),o=d(o,i,n,r,e[15],3634488961,14),r=d(r,o,i,n,e[4],3889429448,20),n=d(n,r,o,i,e[9],568446438,5),i=d(i,n,r,o,e[14],3275163606,9),o=d(o,i,n,r,e[3],4107603335,14),r=d(r,o,i,n,e[8],1163531501,20),n=d(n,r,o,i,e[13],2850285829,5),i=d(i,n,r,o,e[2],4243563512,9),o=d(o,i,n,r,e[7],1735328473,14),n=u(n,r=d(r,o,i,n,e[12],2368359562,20),o,i,e[5],4294588738,4),i=u(i,n,r,o,e[8],2272392833,11),o=u(o,i,n,r,e[11],1839030562,16),r=u(r,o,i,n,e[14],4259657740,23),n=u(n,r,o,i,e[1],2763975236,4),i=u(i,n,r,o,e[4],1272893353,11),o=u(o,i,n,r,e[7],4139469664,16),r=u(r,o,i,n,e[10],3200236656,23),n=u(n,r,o,i,e[13],681279174,4),i=u(i,n,r,o,e[0],3936430074,11),o=u(o,i,n,r,e[3],3572445317,16),r=u(r,o,i,n,e[6],76029189,23),n=u(n,r,o,i,e[9],3654602809,4),i=u(i,n,r,o,e[12],3873151461,11),o=u(o,i,n,r,e[15],530742520,16),n=f(n,r=u(r,o,i,n,e[2],3299628645,23),o,i,e[0],4096336452,6),i=f(i,n,r,o,e[7],1126891415,10),o=f(o,i,n,r,e[14],2878612391,15),r=f(r,o,i,n,e[5],4237533241,21),n=f(n,r,o,i,e[12],1700485571,6),i=f(i,n,r,o,e[3],2399980690,10),o=f(o,i,n,r,e[10],4293915773,15),r=f(r,o,i,n,e[1],2240044497,21),n=f(n,r,o,i,e[8],1873313359,6),i=f(i,n,r,o,e[15],4264355552,10),o=f(o,i,n,r,e[6],2734768916,15),r=f(r,o,i,n,e[13],1309151649,21),n=f(n,r,o,i,e[4],4149444226,6),i=f(i,n,r,o,e[11],3174756917,10),o=f(o,i,n,r,e[2],718787259,15),r=f(r,o,i,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+o|0,this._d=this._d+i|0},l.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=l},function(e,t,n){e.exports=o;var r=n(123).EventEmitter;function o(){r.call(this)}n(4)(o,r),o.Readable=n(124),o.Writable=n(415),o.Duplex=n(416),o.Transform=n(417),o.PassThrough=n(418),o.Stream=o,o.prototype.pipe=function(e,t){var n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",l),n.on("close",s));var a=!1;function l(){a||(a=!0,e.end())}function s(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(d(),0===r.listenerCount(this,"error"))throw e}function d(){n.removeListener("data",o),e.removeListener("drain",i),n.removeListener("end",l),n.removeListener("close",s),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",d),n.removeListener("close",d),e.removeListener("close",d)}return n.on("error",c),e.on("error",c),n.on("end",d),n.on("close",d),e.on("close",d),e.emit("pipe",n),e}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,i="object"===("undefined"==typeof Reflect?"undefined":r(Reflect))?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};o=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var l=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function d(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(e))}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var o,i,a,l;if(d(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=u(e))>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,l=s,console&&console.warn&&console.warn(l)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=h.bind(r);return o.listener=n,r.wrapFn=o,o}function m(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(i=t[0]),i instanceof Error)throw i;var l=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw l.context=i,l}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)a(s,this,t);else{var c=s.length,d=v(s,c);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},function(e,t,n){(t=e.exports=n(177)).Stream=t,t.Readable=t,t.Writable=n(125),t.Duplex=n(52),t.Transform=n(180),t.PassThrough=n(414)},function(e,t,n){"use strict";(function(t,r,o){var i=n(85);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=b;var l,s=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:i.nextTick;b.WritableState=v;var c=Object.create(n(68));c.inherits=n(4);var d={deprecate:n(413)},u=n(178),f=n(5).Buffer,h=o.Uint8Array||function(){};var p,m=n(179);function g(){}function v(e,t){l=l||n(52),e=e||{};var r=t instanceof l;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,c=e.writableHighWaterMark,d=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(c||0===c)?c:d,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(T,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),T(e,t))}(e,n,r,t,o);else{var a=C(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||S(e,n),r?s(_,e,n,a,o):_(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function b(e){if(l=l||n(52),!(p.call(b,this)||this instanceof l))return new b(e);this._writableState=new v(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function y(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),T(e,t)}function S(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var l=0,s=!0;n;)o[l]=n,n.isBuf||(s=!1),n=n.next,l+=1;o.allBuffers=s,y(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,d=n.encoding,u=n.callback;if(y(e,t,!1,t.objectMode?1:c.length,c,d,u),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function C(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),T(e,t)}))}function T(e,t){var n=C(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(b,u),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:d.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===b&&(e&&e._writableState instanceof v)}})):p=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,l=!o.objectMode&&(r=e,f.isBuffer(r)||r instanceof h);return l&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(n=t,t=null),l?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=g),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(l||function(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,o,i){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n));return t}(t,r,o);r!==a&&(n=!0,o="buffer",r=a)}var l=t.objectMode?1:r.length;t.length+=l;var s=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,T(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(40),n(411).setImmediate,n(37))},function(e,t,n){"use strict";var r=n(5).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=c,t=4;break;case"utf8":this.fillLast=l,t=4;break;case"base64":this.text=d,this.end=u,t=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function l(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function d(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return o>0&&(e.lastNeed=o-1),o;if(--r=0)return o>0&&(e.lastNeed=o-2),o;if(--r=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";var r=n(16).Buffer,o=n(4),i=n(176),a=new Array(16),l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],s=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],d=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],u=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function h(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function m(e,t,n,r,o,i,a,l){return p(e+(t^n^r)+i+a|0,l)+o|0}function g(e,t,n,r,o,i,a,l){return p(e+(t&n|~t&r)+i+a|0,l)+o|0}function v(e,t,n,r,o,i,a,l){return p(e+((t|~n)^r)+i+a|0,l)+o|0}function b(e,t,n,r,o,i,a,l){return p(e+(t&r|n&~r)+i+a|0,l)+o|0}function y(e,t,n,r,o,i,a,l){return p(e+(t^(n|~r))+i+a|0,l)+o|0}o(h,i),h.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,o=0|this._c,i=0|this._d,h=0|this._e,_=0|this._a,S=0|this._b,C=0|this._c,E=0|this._d,T=0|this._e,w=0;w<80;w+=1){var O,A;w<16?(O=m(n,r,o,i,h,e[l[w]],u[0],c[w]),A=y(_,S,C,E,T,e[s[w]],f[0],d[w])):w<32?(O=g(n,r,o,i,h,e[l[w]],u[1],c[w]),A=b(_,S,C,E,T,e[s[w]],f[1],d[w])):w<48?(O=v(n,r,o,i,h,e[l[w]],u[2],c[w]),A=v(_,S,C,E,T,e[s[w]],f[2],d[w])):w<64?(O=b(n,r,o,i,h,e[l[w]],u[3],c[w]),A=g(_,S,C,E,T,e[s[w]],f[3],d[w])):(O=y(n,r,o,i,h,e[l[w]],u[4],c[w]),A=m(_,S,C,E,T,e[s[w]],f[4],d[w])),n=h,h=i,i=p(o,10),o=r,r=O,_=T,T=E,E=p(C,10),C=S,S=A}var N=this._b+o+E|0;this._b=this._c+i+T|0,this._c=this._d+h+_|0,this._d=this._e+n+S|0,this._e=this._a+r+C|0,this._a=N},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(419),t.sha1=n(420),t.sha224=n(421),t.sha256=n(181),t.sha384=n(422),t.sha512=n(182)},function(e,t,n){"use strict";var r=n(23);function o(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=o,o.prototype._init=function(){},o.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},o.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(o,n);return t+=this._buffer(e,t),o},o.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},o.prototype._pad=function(e,t){if(0===t)return!1;for(;t=0||!n.umod(e.prime1)||!n.umod(e.prime2);)n=new r(o(t));return n}e.exports=i,i.getr=a}).call(this,n(16).Buffer)},function(e,t,n){"use strict";var r=t;r.version=n(448).version,r.utils=n(24),r.rand=n(132),r.curve=n(200),r.curves=n(135),r.ec=n(459),r.eddsa=n(463)},function(e,t,n){"use strict";var r,o=t,i=n(136),a=n(200),l=n(24).assert;function s(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,l(this.g.validate(),"Invalid curve"),l(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(o,e,{configurable:!0,enumerable:!0,get:function(){var n=new s(t);return Object.defineProperty(o,e,{configurable:!0,enumerable:!0,value:n}),n}})}o.PresetCurve=s,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(458)}catch(e){r=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(e,t,n){var r=t;r.utils=n(33),r.common=n(70),r.sha=n(452),r.ripemd=n(456),r.hmac=n(457),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t,n){var r=n(485),o={xssFilter:function(){if(void 0===r)return null;var e=decodeURIComponent(location.pathname),t=e.lastIndexOf("/")+1,n=e.lastIndexOf(".");e=n>0?e.substring(t,n)+"_files":"";var o=/^((file|wiz(note)?):\/\/)|(index_files\/)|(data:image\/(?!svg))/,i=new RegExp("^("+"#".escapeRegex()+(e?"|"+e.escapeRegex():"")+")","i"),a=/^(id|class|name|style|data|width|height)/i,l=new r.FilterXSS({onIgnoreTag:function(e,t,n){if(/script/gi.test(e))return r.escapeAttrValue(t);if(n.isClosing)return"";var o=r.parseAttr(t,(function(t,n){return n=l.options.safeAttrValue(e,t,n,l),/^on/i.test(t)?"":n?t+'="'+n+'"':t}));return o=/^"},onIgnoreTagAttr:function(e,t,n){return!/^object$/i.test(e)&&n&&a.test(t)?t+'="'+n+'"':""},safeAttrValue:function(e,t,n){if("title"===t&&(n=n.replace(//g,">")),/^meta$/i.test(e)&&/^http-equiv$/i.test(t)&&/refresh/i.test(n))return"";if("href"===t||"src"===t){var a=window.location.protocol;if(/^https?:/.test(a)||(a="http:"),n=n.replace(/^\/\//,a+"//"),o.test(n)||i.test(n))return r.escapeAttrValue(n)}return r.safeAttrValue(e,t,n)}});return l.options.whiteList.iframe=["src","scrolling"],l.options.whiteList.button=["title","type","value"],l.options.whiteList.object=[],l.options.whiteList.noscript=[],function(e){return e=(e=l.process(e)).replace(/(]*)?>)(.*)(<\/style>)/gi,(function(e,t,n,r,o){return t+r.replace(/>/gi,">")+o}))}}()};e.exports=o},function(e,t,n){var r=n(213),o=n(486);for(var i in(t=e.exports=function(e,t){return new o(t).process(e)}).FilterCSS=o,r)t[i]=r[i];"undefined"!=typeof window&&(window.filterCSS=e.exports)},function(e,t){e.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n0?l.list:[l.startDom])}for(var f=0,h=l.length;f=0;o--)r[o]!==n&&n||r.splice(o,1);0===r.length&&e.env.event.remove(s.EVENT.ON_SELECTION_CHANGE,e._onSelectionChange)}}},e.startTrackEvent=function(t,n){e._eventTrackHandler[n]||(e._eventTrackHandler[n]=function(t){e.env.client.sendCmdToWizClient(s.CLIENT_EVENT.WizEditorTrackEvent,{id:n,e:e._eventStringify(t)})},e.env.body.addEventListener(t,e._eventTrackHandler[n]))},e.stopTrackEvent=function(t,n){e._eventTrackHandler[n]&&(e.env.body.removeEventListener(t,e._eventTrackHandler[n]),delete e._eventTrackHandler[n])},e.triggerListener=function(t,n){var r=e._editorListener[t];if(r)for(var o=0,a=r.length;os;)r(l,n=t[s++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var r=n(15),o=n(8),i=n(45);e.exports=n(14)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),l=a.length,s=0;l>s;)r.f(e,n=a[s++],t[n]);return e}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(22),i=n(48).f,a={}.toString,l="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return l&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(e){return l.slice()}}(e):i(o(e))}},function(e,t,n){"use strict";var r=n(14),o=n(45),i=n(75),a=n(64),l=n(17),s=n(63),c=Object.assign;e.exports=!c||n(7)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r}))?function(e,t){for(var n=l(e),c=arguments.length,d=1,u=i.f,f=a.f;c>d;)for(var h,p=s(arguments[d++]),m=u?o(p).concat(u(p)):o(p),g=m.length,v=0;g>v;)h=m[v++],r&&!f.call(p,h)||(n[h]=p[h]);return n}:c},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var r=n(28),o=n(9),i=n(149),a=[].slice,l={},s=function(e,t,n){if(!(t in l)){for(var r=[],o=0;o>>0||(a.test(n)?16:10))}:r},function(e,t,n){var r=n(6).parseFloat,o=n(55).trim;e.exports=1/r(n(98)+"-0")!=-1/0?function(e){var t=o(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(34);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(9),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){"use strict";var r=n(47),o=n(42),i=n(54),a={};n(21)(a,n(10)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(8);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(313);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(28),o=n(17),i=n(63),a=n(11);e.exports=function(e,t,n,l,s){r(t);var c=o(e),d=i(c),u=a(c.length),f=s?u-1:0,h=s?-1:1;if(n<2)for(;;){if(f in d){l=d[f],f+=h;break}if(f+=h,s?f<0:u<=f)throw TypeError("Reduce of empty array with no initial value")}for(;s?f>=0:u>f;f+=h)f in d&&(l=t(l,d[f],f,c));return l}},function(e,t,n){"use strict";var r=n(17),o=n(46),i=n(11);e.exports=[].copyWithin||function(e,t){var n=r(this),a=i(n.length),l=o(e,a),s=o(t,a),c=arguments.length>2?arguments[2]:void 0,d=Math.min((void 0===c?a:o(c,a))-s,a-l),u=1;for(s0;)s in n?n[l]=n[s]:delete n[l],l+=u,s+=u;return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var r=n(113);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(e,t,n){n(14)&&"g"!=/./g.flags&&n(15).f(RegExp.prototype,"flags",{configurable:!0,get:n(78)})},function(e,t,n){"use strict";var r,o,i,a,l=n(44),s=n(6),c=n(27),d=n(65),u=n(0),f=n(9),h=n(28),p=n(58),m=n(81),g=n(66),v=n(115).set,b=n(333)(),y=n(164),_=n(334),S=n(82),C=n(165),E=s.TypeError,T=s.process,w=T&&T.versions,O=w&&w.v8||"",A=s.Promise,N="process"==d(T),L=function(){},I=o=y.f,U=!!function(){try{var e=A.resolve(1),t=(e.constructor={})[n(10)("species")]=function(e){e(L,L)};return(N||"function"==typeof PromiseRejectionEvent)&&e.then(L)instanceof t&&0!==O.indexOf("6.6")&&-1===S.indexOf("Chrome/66")}catch(e){}}(),D=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},x=function(e,t){if(!e._n){e._n=!0;var n=e._c;b((function(){for(var r=e._v,o=1==e._s,i=0,a=function(t){var n,i,a,l=o?t.ok:t.fail,s=t.resolve,c=t.reject,d=t.domain;try{l?(o||(2==e._h&&k(e),e._h=1),!0===l?n=r:(d&&d.enter(),n=l(r),d&&(d.exit(),a=!0)),n===t.promise?c(E("Promise-chain cycle")):(i=D(n))?i.call(n,s,c):s(n)):c(r)}catch(e){d&&!a&&d.exit(),c(e)}};n.length>i;)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&R(e)}))}},R=function(e){v.call(s,(function(){var t,n,r,o=e._v,i=M(e);if(i&&(t=_((function(){N?T.emit("unhandledRejection",o,e):(n=s.onunhandledrejection)?n({promise:e,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)})),e._h=N||M(e)?2:1),e._a=void 0,i&&t.e)throw t.v}))},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},k=function(e){v.call(s,(function(){var t;N?T.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})}))},P=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),x(t,!0))},B=function e(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw E("Promise can't be resolved itself");(n=D(t))?b((function(){var o={_w:r,_d:!1};try{n.call(t,c(e,o,1),c(P,o,1))}catch(e){P.call(o,e)}})):(r._v=t,r._s=1,x(r,!1))}catch(e){P.call({_w:r,_d:!1},e)}}};U||(A=function(e){p(this,A,"Promise","_h"),h(e),r.call(this);try{e(c(B,this,1),c(P,this,1))}catch(e){P.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(59)(A.prototype,{then:function(e,t){var n=I(g(this,A));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=N?T.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&x(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=c(B,e,1),this.reject=c(P,e,1)},y.f=I=function(e){return e===A||e===a?new i(e):o(e)}),u(u.G+u.W+u.F*!U,{Promise:A}),n(54)(A,"Promise"),n(57)("Promise"),a=n(12).Promise,u(u.S+u.F*!U,"Promise",{reject:function(e){var t=I(this);return(0,t.reject)(e),t.promise}}),u(u.S+u.F*(l||!U),"Promise",{resolve:function(e){return C(l&&this===a?A:this,e)}}),u(u.S+u.F*!(U&&n(77)((function(e){A.all(e).catch(L)}))),"Promise",{all:function(e){var t=this,n=I(t),r=n.resolve,o=n.reject,i=_((function(){var n=[],i=0,a=1;m(e,!1,(function(e){var l=i++,s=!1;n.push(void 0),a++,t.resolve(e).then((function(e){s||(s=!0,n[l]=e,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=I(t),r=n.reject,o=_((function(){m(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(e,t,n){"use strict";var r=n(28);function o(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new o(e)}},function(e,t,n){var r=n(8),o=n(9),i=n(164);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(15).f,o=n(47),i=n(59),a=n(27),l=n(58),s=n(81),c=n(104),d=n(160),u=n(57),f=n(14),h=n(39).fastKey,p=n(51),m=f?"_s":"size",g=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var d=e((function(e,r){l(e,d,t,"_i"),e._t=t,e._i=o(null),e._f=void 0,e._l=void 0,e[m]=0,null!=r&&s(r,n,e[c],e)}));return i(d.prototype,{clear:function(){for(var e=p(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=p(this,t),r=g(n,e);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[m]--}return!!r},forEach:function(e){p(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(p(this,t),e)}}),f&&r(d.prototype,"size",{get:function(){return p(this,t)[m]}}),d},def:function(e,t,n){var r,o,i=g(e,t);return i?i.v=n:(e._l=i={i:o=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[m]++,"F"!==o&&(e._i[o]=i)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,(function(e,n){this._t=p(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?d(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,d(1))}),n?"entries":"values",!n,!0),u(t)}}},function(e,t,n){"use strict";var r=n(59),o=n(39).getWeak,i=n(8),a=n(9),l=n(58),s=n(81),c=n(32),d=n(20),u=n(51),f=c(5),h=c(6),p=0,m=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},v=function(e,t){return f(e.a,(function(e){return e[0]===t}))};g.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var n=v(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=h(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var c=e((function(e,r){l(e,c,t,"_i"),e._t=t,e._i=p++,e._l=void 0,null!=r&&s(r,n,e[i],e)}));return r(c.prototype,{delete:function(e){if(!a(e))return!1;var n=o(e);return!0===n?m(u(this,t)).delete(e):n&&d(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=o(e);return!0===n?m(u(this,t)).has(e):n&&d(n,this._i)}}),c},def:function(e,t,n){var r=o(i(t),!0);return!0===r?m(e).set(t,n):r[e._i]=n,e},ufstore:m}},function(e,t,n){var r=n(29),o=n(11);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){var r=n(48),o=n(75),i=n(8),a=n(6).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(11),o=n(100),i=n(35);e.exports=function(e,t,n,a){var l=String(i(e)),s=l.length,c=void 0===n?" ":String(n),d=r(t);if(d<=s||""==c)return l;var u=d-s,f=o.call(c,Math.ceil(u/c.length));return f.length>u&&(f=f.slice(0,u)),a?f+l:l+f}},function(e,t,n){var r=n(14),o=n(45),i=n(22),a=n(64).f;e.exports=function(e){return function(t){for(var n,l=i(t),s=o(l),c=s.length,d=0,u=[];c>d;)n=s[d++],r&&!a.call(l,n)||u.push(e?[n,l[n]]:l[n]);return u}}},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(module,exports,__webpack_require__){(function(module){var __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a,b){var l,c=eval("this"),d=256,g="random",h=b.pow(d,6),i=b.pow(2,52),j=2*i,k=d-1;function m(e,t,r){var u=[],f=q(function e(t,n){var r,o=[],i=_typeof(t);if(n&&"object"==i)for(r in t)try{o.push(e(t[r],n-1))}catch(e){}return o.length?o:"string"==i?t:t+"\0"}((t=1==t?{entropy:!0}:t||{}).entropy?[e,s(a)]:null==e?function(){try{var e;return l&&(e=l.randomBytes)?e=e(d):(e=new Uint8Array(d),(c.crypto||c.msCrypto).getRandomValues(e)),s(e)}catch(e){var t=c.navigator,n=t&&t.plugins;return[+new Date,c,n,c.screen,s(a)]}}():e,3),u),p=new n(u),m=function(){for(var e=p.g(6),t=h,n=0;e>>=1;return(e+n)/t};return m.int32=function(){return 0|p.g(4)},m.quick=function(){return p.g(4)/4294967296},m.double=m,q(s(p.S),a),(t.pass||r||function(e,t,n,r){return r&&(r.S&&o(r,p),e.state=function(){return o(p,{})}),n?(b[g]=e,t):e})(m,f,"global"in t?t.global:this==b,t.state)}function n(e){var t,n=e.length,r=this,o=0,i=r.i=r.j=0,a=r.S=[];for(n||(e=[n++]);o=this._blockSize;){for(var i=this._blockOffset;i0;++a)this._length[a]+=l,(l=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*l);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=i},function(e,t,n){"use strict";(function(t,r){var o=n(85);e.exports=y;var i,a=n(175);y.ReadableState=b;n(123).EventEmitter;var l=function(e,t){return e.listeners(t).length},s=n(178),c=n(5).Buffer,d=t.Uint8Array||function(){};var u=Object.create(n(68));u.inherits=n(4);var f=n(408),h=void 0;h=f&&f.debuglog?f.debuglog("stream"):function(){};var p,m=n(409),g=n(179);u.inherits(y,s);var v=["error","close","destroy","pause","resume"];function b(e,t){e=e||{};var r=t instanceof(i=i||n(52));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(a||0===a)?a:l,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(126).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(i=i||n(52),!(this instanceof y))return new y(e);this._readableState=new b(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function _(e,t,n,r,o){var i,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,E(e)}(e,a)):(o||(i=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof d||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),i?e.emit("error",i):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):S(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?S(e,a,t,!1):w(e,a)):S(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function E(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(T,e):T(e))}function T(e){h("emit readable"),e.emit("readable"),L(e)}function w(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(O,e,t))}function O(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;ei.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0===(e-=a)){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),0===(e-=a)){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function U(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(D,t,e))}function D(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function x(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):E(this),null;if(0===(e=C(e,t))&&t.ended)return 0===t.length&&U(this),null;var r,o=t.needReadable;return h("need readable",o),(0===t.length||t.length-e0?I(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,t);var s=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?d:y;function c(t,r){h("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),e.removeListener("close",v),e.removeListener("finish",b),e.removeListener("drain",u),e.removeListener("error",g),e.removeListener("unpipe",c),n.removeListener("end",d),n.removeListener("end",y),n.removeListener("data",m),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function d(){h("onend"),e.end()}i.endEmitted?o.nextTick(s):n.once("end",s),e.on("unpipe",c);var u=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&l(e,"data")&&(t.flowing=!0,L(e))}}(n);e.on("drain",u);var f=!1;var p=!1;function m(t){h("ondata"),p=!1,!1!==e.write(t)||p||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==x(i.pipes,e))&&!f&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function g(t){h("onerror",t),y(),e.removeListener("error",g),0===l(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",b),y()}function b(){h("onfinish"),e.removeListener("close",v),y()}function y(){h("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",g),e.once("close",v),e.once("finish",b),e.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(s,o),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},s.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,l=0|this._d,s=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,v=0;v<16;++v)n[v]=e.readInt32BE(4*v);for(;v<64;++v)n[v]=0|(((t=n[v-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[v-7]+h(n[v-15])+n[v-16];for(var b=0;b<64;++b){var y=g+f(s)+c(s,p,m)+a[b]+n[b]|0,_=u(r)+d(r,o,i)|0;g=m,m=p,p=s,s=l+y|0,l=i,i=o,o=r,r=y+_|0}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=l+this._d|0,this._e=s+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},s.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=s},function(e,t,n){var r=n(4),o=n(61),i=n(5).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],l=new Array(160);function s(){this.init(),this._w=l,o.call(this,128,112)}function c(e,t,n){return n^e&(t^n)}function d(e,t,n){return e&t|n&(e|t)}function u(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return e>>>0>>0?1:0}r(s,o),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},s.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,o=0|this._ch,i=0|this._dh,l=0|this._eh,s=0|this._fh,b=0|this._gh,y=0|this._hh,_=0|this._al,S=0|this._bl,C=0|this._cl,E=0|this._dl,T=0|this._el,w=0|this._fl,O=0|this._gl,A=0|this._hl,N=0;N<32;N+=2)t[N]=e.readInt32BE(4*N),t[N+1]=e.readInt32BE(4*N+4);for(;N<160;N+=2){var L=t[N-30],I=t[N-30+1],U=h(L,I),D=p(I,L),x=m(L=t[N-4],I=t[N-4+1]),R=g(I,L),M=t[N-14],k=t[N-14+1],P=t[N-32],B=t[N-32+1],z=D+k|0,F=U+M+v(z,D)|0;F=(F=F+x+v(z=z+R|0,R)|0)+P+v(z=z+B|0,B)|0,t[N]=F,t[N+1]=z}for(var j=0;j<160;j+=2){F=t[j],z=t[j+1];var q=d(n,r,o),W=d(_,S,C),H=u(n,_),Y=u(_,n),V=f(l,T),G=f(T,l),Z=a[j],K=a[j+1],X=c(l,s,b),$=c(T,w,O),J=A+G|0,Q=y+V+v(J,A)|0;Q=(Q=(Q=Q+X+v(J=J+$|0,$)|0)+Z+v(J=J+K|0,K)|0)+F+v(J=J+z|0,z)|0;var ee=Y+W|0,te=H+q+v(ee,Y)|0;y=b,A=O,b=s,O=w,s=l,w=T,l=i+Q+v(T=E+J|0,E)|0,i=o,E=C,o=r,C=S,r=n,S=_,n=Q+te+v(_=J+ee|0,J)|0}this._al=this._al+_|0,this._bl=this._bl+S|0,this._cl=this._cl+C|0,this._dl=this._dl+E|0,this._el=this._el+T|0,this._fl=this._fl+w|0,this._gl=this._gl+O|0,this._hl=this._hl+A|0,this._ah=this._ah+n+v(this._al,_)|0,this._bh=this._bh+r+v(this._bl,S)|0,this._ch=this._ch+o+v(this._cl,C)|0,this._dh=this._dh+i+v(this._dl,E)|0,this._eh=this._eh+l+v(this._el,T)|0,this._fh=this._fh+s+v(this._fl,w)|0,this._gh=this._gh+b+v(this._gl,O)|0,this._hh=this._hh+y+v(this._hl,A)|0},s.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=s},function(e,t,n){"use strict";var r=n(4),o=n(423),i=n(41),a=n(5).Buffer,l=n(184),s=n(127),c=n(128),d=a.alloc(128);function u(e,t){i.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var n="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>n)?t=("rmd160"===e?new s:c(e)).update(t).digest():t.lengthn||i!=i)throw new TypeError("Bad key length")}}).call(this,n(16).Buffer)},function(e,t,n){(function(t){var n;t.browser?n="utf-8":n=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=n}).call(this,n(40))},function(e,t,n){var r=n(184),o=n(127),i=n(128),a=n(187),l=n(188),s=n(5).Buffer,c=s.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function u(e,t,n){var a=function(e){function t(t){return i(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new o).update(e).digest()}:"md5"===e?r:t}(e),l="sha512"===e||"sha384"===e?128:64;t.length>l?t=a(t):t.length>>0},t.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,r){for(var o=0,i=0,a=6;a>=0;a-=2){for(var l=0;l<=24;l+=8)o<<=1,o|=t>>>l+a&1;for(l=0;l<=24;l+=8)o<<=1,o|=e>>>l+a&1}for(a=6;a>=0;a-=2){for(l=1;l<=25;l+=8)i<<=1,i|=t>>>l+a&1;for(l=1;l<=25;l+=8)i<<=1,i|=e>>>l+a&1}n[r+0]=o>>>0,n[r+1]=i>>>0},t.rip=function(e,t,n,r){for(var o=0,i=0,a=0;a<4;a++)for(var l=24;l>=0;l-=8)o<<=1,o|=t>>>l+a&1,o<<=1,o|=e>>>l+a&1;for(a=4;a<8;a++)for(l=24;l>=0;l-=8)i<<=1,i|=t>>>l+a&1,i<<=1,i|=e>>>l+a&1;n[r+0]=o>>>0,n[r+1]=i>>>0},t.pc1=function(e,t,n,r){for(var o=0,i=0,a=7;a>=5;a--){for(var l=0;l<=24;l+=8)o<<=1,o|=t>>l+a&1;for(l=0;l<=24;l+=8)o<<=1,o|=e>>l+a&1}for(l=0;l<=24;l+=8)o<<=1,o|=t>>l+a&1;for(a=1;a<=3;a++){for(l=0;l<=24;l+=8)i<<=1,i|=t>>l+a&1;for(l=0;l<=24;l+=8)i<<=1,i|=e>>l+a&1}for(l=0;l<=24;l+=8)i<<=1,i|=e>>l+a&1;n[r+0]=o>>>0,n[r+1]=i>>>0},t.r28shl=function(e,t){return e<>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,o){for(var i=0,a=0,l=r.length>>>1,s=0;s>>r[s]&1;for(s=l;s>>r[s]&1;n[o+0]=i>>>0,n[o+1]=a>>>0},t.expand=function(e,t,n){var r=0,o=0;r=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)r<<=6,r|=e>>>i&63;for(i=11;i>=3;i-=4)o|=e>>>i&63,o<<=6;o|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=o>>>0};var o=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var n=0,r=0;r<4;r++){n<<=4,n|=o[64*r+(e>>>18-6*r&63)]}for(r=0;r<4;r++){n<<=4,n|=o[256+64*r+(t>>>18-6*r&63)]}return n>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,n=0;n>>i[n]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.length>>1];n=i.r28shl(n,l),o=i.r28shl(o,l),i.pc2(n,o,e.keys,a)}},s.prototype._update=function(e,t,n,r){var o=this._desState,a=i.readUInt32BE(e,t),l=i.readUInt32BE(e,t+4);i.ip(a,l,o.tmp,0),a=o.tmp[0],l=o.tmp[1],"encrypt"===this.type?this._encrypt(o,a,l,o.tmp,0):this._decrypt(o,a,l,o.tmp,0),a=o.tmp[0],l=o.tmp[1],i.writeUInt32BE(n,a,r),i.writeUInt32BE(n,l,r+4)},s.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r>>0,a=f}i.rip(l,a,r,o)},s.prototype._decrypt=function(e,t,n,r,o){for(var a=n,l=t,s=e.keys.length-2;s>=0;s-=2){var c=e.keys[s],d=e.keys[s+1];i.expand(a,e.tmp,0),c^=e.tmp[0],d^=e.tmp[1];var u=i.substitute(c,d),f=a;a=(l^i.permute(u))>>>0,l=f}i.rip(a,l,r,o)}},function(e,t,n){var r=n(69),o=n(5).Buffer,i=n(193);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return i(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),i=e._cache.length;e._cache=o.concat([e._cache,o.allocUnsafe(16*n)]);for(var l=0;le;)n.ishrn(1);if(n.isEven()&&n.iadd(l),n.testn(1)||n.iadd(s),t.cmp(s)){if(!t.cmp(c))for(;n.mod(d).cmp(u);)n.iadd(h)}else for(;n.mod(i).cmp(f);)n.iadd(h);if(g(p=n.shrn(1))&&g(n)&&v(p)&&v(n)&&a.test(p)&&a.test(n))return n}}},function(e,t,n){var r=n(13),o=n(132);function i(e){this.rand=e||new o.Rand}e.exports=i,i.create=function(e){return new i(e)},i.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var o=new r(this.rand.generate(n))}while(o.cmp(e)>=0);return o},i.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},i.prototype.test=function(e,t,n){var o=e.bitLength(),i=r.mont(e),a=new r(1).toRed(i);t||(t=Math.max(1,o/48|0));for(var l=e.subn(1),s=0;!l.testn(s);s++);for(var c=e.shrn(s),d=l.toRed(i);t>0;t--){var u=this._randrange(new r(2),l);n&&n(u);var f=u.toRed(i).redPow(c);if(0!==f.cmp(a)&&0!==f.cmp(d)){for(var h=1;h0;t--){var d=this._randrange(new r(2),a),u=e.gcd(d);if(0!==u.cmpn(1))return u;var f=d.toRed(o).redPow(s);if(0!==f.cmp(i)&&0!==f.cmp(c)){for(var h=1;h>8,a=255&o;i?n.push(i,a):n.push(a)}return n},r.zero2=o,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},function(e,t,n){"use strict";var r=t;r.base=n(88),r.short=n(449),r.mont=n(450),r.edwards=n(451)},function(e,t,n){"use strict";var r=n(33).rotr32;function o(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?o(t,n,r):1===e||3===e?a(t,n,r):2===e?i(t,n,r):void 0},t.ch32=o,t.maj32=i,t.p32=a,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){"use strict";var r=n(33),o=n(70),i=n(201),a=n(23),l=r.sum32,s=r.sum32_4,c=r.sum32_5,d=i.ch32,u=i.maj32,f=i.s0_256,h=i.s1_256,p=i.g0_256,m=i.g1_256,g=o.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(b,g),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r>6],o=0==(32&n);if(31==(31&n)){var i=n;for(n=0;128==(128&i);){if(i=e.readUInt8(t),e.isError(i))return i;n<<=7,n|=127&i}}else n&=31;return{cls:r,primitive:o,tag:n,tagStr:l.tag[n]}}function u(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;var o=127&r;if(o>4)return e.error("length octect is too long");r=0;for(var i=0;i=31)return r.error("Multi-octet tag encoding unsupported");t||(o|=32);return o|=l.tagClassByName[n||"universal"]<<6}(e,t,n,this.reporter);if(r.length<128)return(i=new o(2))[0]=a,i[1]=r.length,this._createEncoderBuffer([i,r]);for(var s=1,c=r.length;c>=256;c>>=8)s++;(i=new o(2+s))[0]=a,i[1]=128|s;c=1+s;for(var d=r.length;d>0;c--,d>>=8)i[c]=255&d;return this._createEncoderBuffer([i,r])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=new o(2*e.length),r=0;r=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var i=0;for(r=0;r=128;a>>=7)i++}var l=new o(i),s=l.length-1;for(r=e.length-1;r>=0;r--){a=e[r];for(l[s--]=127&a;(a>>=7)>0;)l[s--]=128|127&a}return this._createEncoderBuffer(l)},c.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[d(r.getFullYear()),d(r.getUTCMonth()+1),d(r.getUTCDate()),d(r.getUTCHours()),d(r.getUTCMinutes()),d(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[d(r.getFullYear()%100),d(r.getUTCMonth()+1),d(r.getUTCDate()),d(r.getUTCHours()),d(r.getUTCMinutes()),d(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!o.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new o(n)}if(o.isBuffer(e)){var r=e.length;0===e.length&&r++;var i=new o(r);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);r=1;for(var a=e;a>=256;a>>=8)r++;for(a=(i=new Array(r)).length-1;a>=0;a--)i[a]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new o(i))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,n){var r,o=this._baseState;if(null===o.default)return!1;var i=e.join();if(void 0===o.defaultBuffer&&(o.defaultBuffer=this._encodeValue(o.default,t,n).join()),i.length!==o.defaultBuffer.length)return!1;for(r=0;r/g,u=/"/g,f=/"/g,h=/&#([a-zA-Z0-9]*);?/gim,p=/:?/gim,m=/&newline;?/gim,g=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,v=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,b=/u\s*r\s*l\s*\(.*/gi;function y(e){return e.replace(u,""")}function _(e){return e.replace(f,'"')}function S(e){return e.replace(h,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function C(e){return e.replace(p,":").replace(m," ")}function E(e){for(var t="",n=0,r=e.length;n/g;t.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],strong:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","loop","preload","src","height","width"]},t.getDefaultWhiteList=a,t.onTag=function(e,t,n){},t.onIgnoreTag=function(e,t,n){},t.onTagAttr=function(e,t,n){},t.onIgnoreTagAttr=function(e,t,n){},t.safeAttrValue=function(e,t,n,r){if(n=T(n),"href"===t||"src"===t){if("#"===(n=i.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(g.lastIndex=0,g.test(n))return""}else if("style"===t){if(v.lastIndex=0,v.test(n))return"";if(b.lastIndex=0,b.test(n)&&(g.lastIndex=0,g.test(n)))return"";!1!==r&&(n=(r=r||l).process(n))}return n=w(n)},t.escapeHtml=s,t.escapeQuote=y,t.unescapeQuote=_,t.escapeHtmlEntities=S,t.escapeDangerHtml5Entities=C,t.clearNonPrintableCharacter=E,t.friendlyAttrValue=T,t.escapeAttrValue=w,t.onIgnoreTagStripAll=function(){return""},t.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),r=[],o=!1;return{onIgnoreTag:function(a,l,s){if(function(t){return!!n||-1!==i.indexOf(e,t)}(a)){if(s.isClosing){var c="[/removed]",d=s.position+c.length;return r.push([!1!==o?o:s.position,d]),o=!1,c}return o||(o=s.position),"[removed]"}return t(a,l,s)},remove:function(e){var t="",n=0;return i.forEach(r,(function(r){t+=e.slice(n,r[0]),n=r[1]})),t+=e.slice(n)}}},t.stripCommentTag=function(e){return e.replace(O,"")},t.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},t.cssFilter=l,t.getDefaultCSSWhiteList=o},function(e,t){function n(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var r=/javascript\s*\:/gim;t.whiteList=n(),t.getDefaultWhiteList=n,t.onAttr=function(e,t,n){},t.onIgnoreAttr=function(e,t,n){},t.safeAttrValue=function(e,t){return r.test(t)?"":t}},function(e,t){e.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function c(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}t.parseTag=function(e,t,n){var r="",a=0,l=!1,s=!1,c=0,d=e.length,u="",f="";for(c=0;c"===h){r+=n(e.slice(a,l)),u=o(f=e.slice(l,c+1)),r+=t(l,r.length,u,f,i(f)),a=c+1,l=!1;continue}if(('"'===h||"'"===h)&&"="===e.charAt(c-1)){s=h;continue}}else if(h===s){s=!1;continue}}return aa",e.style.opacity="0",f.appendChild(e);var t=e.innerText;if(b.remove(e),!t)for(var n,r,o,i=c.getElementsByTagName("math");i.length>0;)r=(n=i[0]).parentNode,(o=c.createElement("span")).innerText=n.textContent,r.insertBefore(o,n),r.removeChild(n)}();for(var t=e.querySelectorAll("br"),n=t.length-1;n>=0;n--){var r=t[n];if(r.previousSibling&&!r.nextSibling)b.remove(r);else if(!r.previousSibling&&!r.nextSibling){var i=b.getBlockParent(r,!1);b.isEmptyDom(i)||b.remove(r)}}var a=e.innerText;return a?"\n"===a.charAt(a.length-1)&&(a=a.substr(0,a.length-1)):a=b.getInnerText(e),a=(a=a.replace(String.fromCharCode(65279),"")).replace(o.SPACE_CHAR_REG," ")},markdownConvert:function(){var e,r,i,s,c,d,u=/(\$\$?|\\(?:begin|end){[a-z]*\*?}|\\[\\{}$]|[{}]|(?:\n\s*)+|@@\d+@@)/i,h=!1,p=n.$(f);p.addClass(o.CLASS.MARKDOWN_BODY);var g=new a.Converter({nonAsciiLetters:!0,asteriskIntraWordEmphasis:!0,imgSrcFilter:function(e){return m.options.reader.markdownPlugIn.imgSrcFilter?m.options.reader.markdownPlugIn.imgSrcFilter(e):e},customBlockGamut:function(e){return m.options.reader.markdownPlugIn.customBlockGamut?m.options.reader.markdownPlugIn.customBlockGamut(e):e}}),v=function(t,n){var o=s.slice(t,n+1).join("");if(!o.match(/`/i)){for(o=o.replace(/&/g,"&").replace(//g,">");n>t;)s[n]="",n--;s[t]="@@"+c.length+"@@",c.push(o)}e=r=i=null};try{var b;C?b=S:(S=f.innerHTML,b=t.getMarkdownSrc(f)),b=T.tocReady(b);var y=b.match(/^```/gm);y=y?y.length/2:0,l.init(g,{extensions:"all",highlighter:y>50?"prettify":"codeMirror"});var E=b.replace(/\n/g,"\\n").replace(/\r\n?/g,"\n").replace(/```(.*\n)+?```/gm,"");(_=/(\$\$?)[^$\n]+\1/.test(E))&&(b=function(t){var n;e=r=i=null,c=[];for(var o=1,a=(s=t.replace(/\r\n?/g,"\n").split(u)).length;o]*>(.|\r?\n)*<\/textarea>/gi,(function(e){return e.replace(t,"$1")}))},tocRender:function(){var e={},t=[],r=6;n.$("h1,h2,h3,h4,h5,h6",f).each((function(e,t){var n=parseInt(t.tagName.charAt(1),10);r=Math.min(r,n)})),n.$("h1,h2,h3,h4,h5,h6",f).each((function(o,i){var a=(i.textContent||i.innerText).replace(/[()<> '"\r\n]/g,"");e[a]?(++e[a],a+="-"+e[a]):e[a]=1;var l=parseInt(i.tagName.charAt(1),10),s=n.$(i);s.attr("id",a),t.push(''+s.text()+"")})),t='
'+t.join("
")+"
",n.$("a",f).each((function(e,r){"#wizToc"===(r=n.$(r)).attr("href")&&(r.before(t),r.css("display","none"))}))},flowRender:function(){n.flowchart&&n.$(".language-flow",f).parents("pre").each((function(e,t){var r="wiz-flow-"+e,o=n.$("textarea",t).val();if(o.length>0)try{t.style.display="none";var i=n.flowchart.parse(o),a=c.createElement("div");if(a.id=r,t.parentNode.insertBefore(a,t),i.drawSVG(r),m.client.type.isPhone){var l=n.$("svg",a);l.attr("width")&&l.css({"max-width":l.attr("width")}).attr({height:null,width:"95%"})}}catch(e){console.error(e)}}))},sequenceRender:function(){if(n.Diagram){var e=function(e){e.each((function(e,t){var r="wiz-sequence-"+e,o=n.$("textarea",t).val();if(o.length>0)try{t.style.display="none";var i=n.Diagram.parse(o),a=c.createElement("div");if(a.id=r,t.parentNode.insertBefore(a,t),i.drawSVG(r,{theme:"simple"}),m.client.type.isPhone){var l=n.$("svg",a);l.attr("width")&&(b.attr(l.get(0),{viewBox:"0 0 "+l.attr("width")+" "+l.attr("height")}),l.css({"max-width":l.attr("width")}).attr({preserveAspectRatio:"xMidYMid meet",height:null,width:"95%"}))}}catch(e){console.error(e)}}))},t=n.$(".language-sequence",f).parents("pre");e(t),e(t=n.$(".language-seq",f).parents("pre"))}},xssFilter:d.xssFilter};this.getMarkdownSrcForEditor=function(e){var n,r;v&&v.saveToText(),e=e||{},r=m.readonly?S.replace(/\n/g,"

"):m.body.innerHTML;var i=m.doc.createElement("div");e.escapeHtml&&(r=r.replace(/&/g,"&")),i.innerHTML=r,b.html2Markdown(i,{}),b.css(i,{opacity:0,position:"absolute",top:"-9999px",left:"-9999px",width:"1px",height:"1px",overflow:"hidden"}),m.body.appendChild(i),v&&v.clearCodeForMarkdown(i);for(var a=i.querySelectorAll(o.TAG.TMP_TAG),l=a.length-1;l>=0;l--)b.remove(a[l]);return n=t.getMarkdownSrc(i),n=b.restoreImgPath(n),m.body.removeChild(i),i=null,n},this.getMarkdownSrc=function(e){var t=e||f;return T.markdownPreProcess(t),T.getBodyTxt(t)},this.do=function(e,t){e.container&&(f=e.container),"string"==typeof e.markdownSrc?(S=e.markdownSrc,C=!0):(S="",C=!1);!function(e){u.addCallback(c,e),u.getLoading(c)||(n.$&&n.Diagram&&n.flowchart&&n.prettyPrint?u.callback(c):(u.setLoading(c,!0),s.loadJs(c,s.getDependencyFiles(m.dependency,"js","markdown"),(function(){u.setLoading(c,!1),u.callback(c)}))))}((function(){b.addClass(f,o.CLASS.READONLY);var e=m.options.reader.timeout.markdown;t=t||h;var n=!1,i=function(){t&&/^function$/i.test(r(t))&&!n&&(t(),n=!0)};setTimeout(i,e),E((function(){i()}))}))},this.init=function(){n=e.win||m.win,c=e.doc||m.doc,f=e.container||m.body,h=e.callback,y&&y.init()}}},function(e,t,n){n(219);var r,o,i,a=n(1),l=n(3),s=n(90),c=n(62),d=n(137),u=n(489),f=n(490),h=n(491),p=n(492),m=n(493),g=n(494),v=n(495),b=n(496),y=n(497);r=n(498),o=n(499),i=n(500);var _,S=n(501);_=n(502);var C,E=n(503),T=n(504),w=n(505),O=n(506),A=n(507),N=n(508),L=n(509),I=n(510),U=n(511),D=n(512),x=n(513),R=n(514),M=n(515),k=n(516),P=n(517),B=n(518),z=n(519),F=n(520),j=n(521),q=n(522),W=n(523),H=n(524),Y=n(525),V=n(526),G=n(527),Z=n(528),K=n(529);C=n(217);var X,$,J=n(532),Q=n(533);X=n(534),$=n(535);var ee,te,ne,re,oe=n(536),ie=n(537),ae=n(538),le=n(539),se=n(540),ce=n(541),de=n(542),ue=n(543),fe=n(544),he=n(545),pe=n(546),me=n(547),ge=n(548),ve=n(549);ee=n(550),te=n(551),ne=n(552),re=n(553);var be=n(554),ye=n(555),_e=function(e,t){for(var n=new u(e),_e={env:n,lang:new f(n.options.lang,n),require:{amend:new h,amendInfo:new p,amendUser:new m,amendUserAction:new g,amendUtils:new v,blockCore:new b,blockUtils:new y,codeCore:r?new r:null,codeStyle:o?new o:null,codeUtils:i?new i:null,commandExtend:new S,commonUtils:new w,contentCore:_?new _:null,clientBridge:new E,clipboardUtils:new T,domUtils:new O,editorBridge:new A,editorCommon:new N,editorCommonEvent:new L,editorOutline:new I,editorOutlineEvent:new U,formatPainter:new x,frameViewCore:new R,frameViewStyle:new M,frameViewUtils:new k,highlightUtils:new P,historyUtils:new B,lazyLoadCore:new z,lazyLoadUtils:new F,menuPlugin:new j,imgClick:new q,imgCore:new W,imgResize:new H,imgUtils:new Y,linkCore:new G,linkMenu:new Z,linkUtils:new K,markdownRender:C?new C:null,markerCore:new J,markerStyle:new Q,MathJaxRender:X||null,mathJaxRender:X?new X:null,nightModeUtils:$?new $:null,outlineCore:new oe,outlineStyle:new ie,outlineUtils:new D,pasteUtils:new ae,rangeUtils:new le,readerCommon:new se,readerCommonEvent:new ce,readerOutline:new de,readerOutlineEvent:new ue,selectPlugin:new fe,svgClick:new V,tabKey:new he,tableCore:new pe,tableMenu:new me,tableUtils:new ge,tableZone:new ve,todoCore:ee?new ee:null,todoStyle:te?new te:null,todoUtils:ne?new ne:null,toolbarMarkdown:re?new re:null,tooltip:new be,wizStyle:new ye}},Se=_e.require,Ce=0,Ee=Object.keys(Se);Ce
")),s.close()}n.doc=o.contentDocument,n.win=o.contentWindow,n.body=n.doc.body,n.frame.dom=o,c.run(n.win)}else(i=r.querySelector("."+a.CLASS.WIZ_BODY))||((i=n.doc.createElement("div")).innerHTML="

",r.appendChild(i)),n.body=i;ze.attr(n.body,{spellcheck:"false"}),n.frame.toolbarDoc=e,n.frame.toolbarContainer=t,n.frame.bodyContainer=r}();var ot=function(e){if(n.readonly&&!n.options.pureReadMode.enable&&n.options.reader.type!==a.NOTE_READER_TYPE.MARKDOWN&&n.options.reader.type!==a.NOTE_READER_TYPE.MATHJAX&&n.options.reader.autoEdit){if(!Re.getBridge().hasPermission())return!1;var t=tt.getModifiedListFromReader(),r=Be.lastFocusCodeForReader,o=Je.getRange(),i=n.client.type.isIOS;if(r||o||i){if(!o&&i&&(e.target!==n.body&&(o=Je.getEventCaretRange(e)),!o)){var l=ze.getLast();Je.setRange(l,ze.getEndOffset(l)),o=Je.getRange()}var s,c,d,u;r||(s=o.startContainer,c=o.startOffset,d=o.endContainer,u=o.endOffset),st.editor.on({},(function(){t.length>0&&setTimeout((function(){Oe.setOriginalHtml("isModified")}),500),r?Be.setSelection(r.id,r.anchor,r.head):Je.setRange(s,c,d,u),n.options.reader.callback.onAutoEdit&&n.options.reader.callback.onAutoEdit()}))}}},it=function(){we.forEach((function(e){Ae.addListener(e.eName,e.fun)})),we=[]},at=function(){var e=Ie.init();Oe=e.editor,Ae=e.editorEvent,Ne=e.editorUtils,Le=e.reader,Oe.type===a.DOCUMENT_TYPE.COMMON&&(Le.noteSrcIsText=!1,Le.noteTextSrc="")},lt=function(e){if(e=Ye.imgPreprocess(e),n.options.useFrame?(n.doc.open("text/html","replace"),n.doc.write(e),n.doc.close(),n.body=n.doc.body):n.body.innerHTML=e,ze.attr(n.body,{spellcheck:"false"}),c.run(n.win),n.client.type.isWeb){rt.insertDefaultStyle(!1,"")}},st={version:a.version,destroy:function(){n.isWizTemplate&&n.win.WizTemplate&&n.win.WizTemplate.off(),n.isWizTemplate=!1,Oe&&Oe.offEvent(),Le&&Le.offEvent(),n.body.innerHTML="",n.readonly=null},setOptions:n.setOptions,getDocumentType:function(){return Ie&&Ie.isOutline?a.DOCUMENT_TYPE.OUTLINE:a.DOCUMENT_TYPE.COMMON},editor:{on:function(e,t){if(n.event.remove(a.EVENT.AUTO_EDIT,ot),!1!==n.readonly){var r=function(){it(),"function"==typeof t&&t()};"function"==typeof e&&(t=e,e={});var o=(e=e||{}).documentBody,i=e.documentBodyType;if(void 0!==e.htmlBaseUrl&&(n.options.htmlBaseUrl=e.htmlBaseUrl),void 0!==e.minHeight&&(n.options.editor.minHeight=e.minHeight),e.reader&&e.reader.type&&(n.options.reader.type=e.reader.type),o||Ie.checkDocumentEditable()){var s=function(){"string"!=typeof o||("text"===i?n.body.innerHTML=d.xssFilter(l.txt2HTML(o,{wizTableSaveDom:!0})):(o=d.xssFilter(o),o=ze.initDocHtml(o),lt(o)),Ie.checkDocumentEditable())?(at(),Oe.on(e,r)):r()};if(Le)if(Le.type===a.DOCUMENT_TYPE.COMMON){var c={noteSrc:null,useContentExtractionHtml:e.useContentExtractionHtml};"string"!=typeof o&&Le.noteSrcIsText&&(c.noteSrc=d.xssFilter(l.txt2HTML(Le.noteTextSrc,{wizTableSaveDom:!0}))),Le.off(c,s)}else Le.off({},s);else s()}else r()}},caretBackup:function(){return Je.caretBackup()},createSvg:function(){Qe.createSvg()},execCommand:function(){We.saveSnap(!1);for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if(We.saveSnap(!1),!r.insertStart&&!r.insertEnd){var o=xe.insertBlock(n.doc.createElement("div"));o.innerHTML=""}Ne.insertDom(He.makeAttachmentDom(e,t),r)},insertByPath:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(We.saveSnap(!1),!t.insertStart&&!t.insertEnd){var r=xe.insertBlock(n.doc.createElement("div"));r.innerHTML=""}Ne.insertDom(He.makeDomByPath(e),t)},removeCur:function(){We.saveSnap(!1);var e="img["+a.ATTR.IMG_EDITING+"]";He.remove(e)},replaceCur:function(e){We.saveSnap(!1);var t="img["+a.ATTR.IMG_EDITING+"]";He.replaceSrc(t,e)}},link:{on:function(){Ve.on()},off:function(){Ve.off()},getCurrentLink:function(){return Ge.getCurrentLink()},removeSelectedLink:function(){Ge.removeSelectedLink()},setCurrentLink:function(e){Ge.setCurrentLink(e)}},marker:{start:function(){Ke.start()},quit:function(e){Ke.quit(e)},checkMarker:function(){return Ke.checkMarker()},hide:function(){Ke.hide()},show:function(){Ke.show()}},range:{moveToPoint:function(e,t){Je.moveToPoint(e,t)}},table:{canCreateTable:et.canCreateTable,clearCellValue:et.clearCellValue,deleteCols:et.deleteCols,deleteRows:et.deleteRows,deleteTable:et.deleteTable,distributeCols:et.distributeCols,insertCol:et.insertCol,insertRow:et.insertRow,insertTable:et.insertTable,merge:et.merge,setCellAlign:et.setCellAlign,setCellBg:et.setCellBg,split:et.split},todo:{setTodo:function(){tt&&tt.setTodo()},setTodoInfo:function(e){tt&&tt.setTodoInfo(e)}},utils:{clearStyleFromHtml:function(e,t){return We.saveSnap(!1),ze.clearStyleFromHtml(e,t)}},toolbar:{setImgUploaderId:function(e){nt&&nt.setImgUploaderId(e)},onImgUploadBegin:function(e,t){nt&&nt.onImgUploadBegin(e,t)},onImgUploadProgress:function(e,t){nt&&nt.onImgUploadProgress(e,t)},onImgUploadComplete:function(e,t){nt&&nt.onImgUploadComplete(e,t)},onImgUploadError:function(e){nt&&nt.onImgUploadError(e)}}},reader:{on:function(e,t){if(n.event.add(a.EVENT.AUTO_EDIT,ot),!0!==n.readonly){"function"==typeof e&&(t=e,e={}),void 0!==(e=e||{}).minHeight&&(n.options.reader.minHeight=e.minHeight),void 0!==e.htmlBaseUrl&&(n.options.htmlBaseUrl=e.htmlBaseUrl),e.reader&&e.reader.type&&(n.options.reader.type=e.reader.type),n.options.pc.pluginModified=!1;var r=e.documentBody,o=e.documentBodyType;"string"==typeof r?(n.options.reader.type===a.NOTE_READER_TYPE.MARKDOWN&&(n.body.style.opacity="0"),"text"===o?(at(),Le.noteSrcIsText=!0,Le.noteTextSrc=r):(r=d.xssFilter(r),r=ze.initDocHtml(r),lt(r),at())):at();Le.on(e,(function(){"function"==typeof t&&(it(),t()),n.options.pureReadMode.enable&&st.reader.pureRead.on()}))}},closeDocument:function(){return tt?tt.closeDocument():null},getRenderDocument:function(){return Ue.hideAmendInfo(),ze.getRenderDocument()},getWordCount:function(){var e=ze.getWordCount();return JSON.stringify(e)},setPluginModify:function(e){return n.options.pc.pluginModified?n.options.pc.pluginModified:(n.options.reader.type===a.NOTE_READER_TYPE.COMMON&&(n.options.pc.pluginModified=!!e),n.options.pc.pluginModified)},amendInfo:{on:De.on,off:De.off},highlight:{next:function(){qe.next()},off:function(){qe.off()},on:function(e,t){return qe.on(e,t)},previous:function(){qe.previous()}},pureRead:{on:function(e){n.options.pureReadMode.enable=!0,e=e||{},ke&&ke.on({needContentExtraction:e.needContentExtraction},(function(){}))},off:function(){n.options.pureReadMode.enable=!1,ke&&ke.off()}},todo:{setTodoInfo:function(e){tt&&tt.setTodoInfo(e)},onCheckDocLock:function(e,t){tt&&tt.onCheckDocLock(e,t)}},marker:{hide:function(){Ke.hide()},show:function(){Ke.show()}}},outline:{addNotes:function(){Ie.isOutline&&!n.readonly&&Oe.addNotes()},setCompleted:function(e){Ie.isOutline&&!n.readonly&&Oe.setCompleted(e)},deleteNodes:function(){Ie.isOutline&&!n.readonly&&Oe.deleteNodes()},indent:function(){Ie.isOutline&&!n.readonly&&Oe.indent()},outdent:function(){Ie.isOutline&&!n.readonly&&Oe.outdent()},hideMinder:function(){Ie.isOutline&&Oe.hideMinder()},minderThemeRegister:function(e){Ie.isOutline&&Oe.minderThemeRegister(e)},showMinder:function(e){Ie.isOutline&&Oe.showMinder(e)},userMinderTheme:function(e){Ie.isOutline&&Oe.userMinderTheme(e)}},frame:{getFrameElement:je.getFrameElement,adjustContainerSize:je.onAdjustContainerSize},nightMode:{on:function(e,t,r){n.options.nightMode.enable=!0,e&&(n.options.nightMode.color=e),t&&(n.options.nightMode.bgColor=t),r&&(n.options.nightMode.brightness=r),Xe&&Xe.on()},off:function(){n.options.nightMode.enable=!1,Xe&&Xe.off()}},insertCustomStyle:function(e,t,n){rt.insertCustomStyle(e,t,n)},insertDefaultStyle:function(e,t){rt.insertDefaultStyle(e,t)},removeStyleById:function(e){rt.removeStyleById(e)}};return t&&t(_e),n.event.add(a.EVENT.ON_MARKER_INITIATED,(function(e){var t=e.editorTools;for(var n in st.editor.marker.tools=t,t)t.hasOwnProperty(n)&&(st.editor.marker[n]=t[n])})),st;function ct(e){return e?(e.total=!!e.total,e.cursor=!!e.cursor):e={dom:null,cursor:!1,total:!0},e}};window.WizDocument=_e,_e.version=a.version,e.exports=_e},function(e,t,n){"use strict";n(220);var r,o=(r=n(392))&&r.__esModule?r:{default:r};o.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),o.default._babelPolyfill=!0},function(e,t,n){"use strict";n(221),n(364),n(366),n(369),n(371),n(373),n(375),n(377),n(379),n(381),n(383),n(385),n(387),n(391)},function(e,t,n){n(222),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(303),n(304),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(112),n(327),n(161),n(328),n(162),n(329),n(330),n(331),n(332),n(163),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),e.exports=n(12)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(6),i=n(20),a=n(14),l=n(0),s=n(18),c=n(39).KEY,d=n(7),u=n(73),f=n(54),h=n(43),p=n(10),m=n(93),g=n(142),v=n(224),b=n(76),y=n(8),_=n(9),S=n(17),C=n(22),E=n(38),T=n(42),w=n(47),O=n(145),A=n(30),N=n(75),L=n(15),I=n(45),U=A.f,D=L.f,x=O.f,R=o.Symbol,M=o.JSON,k=M&&M.stringify,P=p("_hidden"),B=p("toPrimitive"),z={}.propertyIsEnumerable,F=u("symbol-registry"),j=u("symbols"),q=u("op-symbols"),W=Object.prototype,H="function"==typeof R&&!!N.f,Y=o.QObject,V=!Y||!Y.prototype||!Y.prototype.findChild,G=a&&d((function(){return 7!=w(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=U(W,t);r&&delete W[t],D(e,t,n),r&&e!==W&&D(W,t,r)}:D,Z=function(e){var t=j[e]=w(R.prototype);return t._k=e,t},K=H&&"symbol"==r(R.iterator)?function(e){return"symbol"==r(e)}:function(e){return e instanceof R},X=function(e,t,n){return e===W&&X(q,t,n),y(e),t=E(t,!0),y(n),i(j,t)?(n.enumerable?(i(e,P)&&e[P][t]&&(e[P][t]=!1),n=w(n,{enumerable:T(0,!1)})):(i(e,P)||D(e,P,T(1,{})),e[P][t]=!0),G(e,t,n)):D(e,t,n)},$=function(e,t){y(e);for(var n,r=v(t=C(t)),o=0,i=r.length;i>o;)X(e,n=r[o++],t[n]);return e},J=function(e){var t=z.call(this,e=E(e,!0));return!(this===W&&i(j,e)&&!i(q,e))&&(!(t||!i(this,e)||!i(j,e)||i(this,P)&&this[P][e])||t)},Q=function(e,t){if(e=C(e),t=E(t,!0),e!==W||!i(j,t)||i(q,t)){var n=U(e,t);return!n||!i(j,t)||i(e,P)&&e[P][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=x(C(e)),r=[],o=0;n.length>o;)i(j,t=n[o++])||t==P||t==c||r.push(t);return r},te=function(e){for(var t,n=e===W,r=x(n?q:C(e)),o=[],a=0;r.length>a;)!i(j,t=r[a++])||n&&!i(W,t)||o.push(j[t]);return o};H||(s((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function t(n){this===W&&t.call(q,n),i(this,P)&&i(this[P],e)&&(this[P][e]=!1),G(this,e,T(1,n))};return a&&V&&G(W,e,{configurable:!0,set:t}),Z(e)}).prototype,"toString",(function(){return this._k})),A.f=Q,L.f=X,n(48).f=O.f=ee,n(64).f=J,N.f=te,a&&!n(44)&&s(W,"propertyIsEnumerable",J,!0),m.f=function(e){return Z(p(e))}),l(l.G+l.W+l.F*!H,{Symbol:R});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)p(ne[re++]);for(var oe=I(p.store),ie=0;oe.length>ie;)g(oe[ie++]);l(l.S+l.F*!H,"Symbol",{for:function(e){return i(F,e+="")?F[e]:F[e]=R(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),l(l.S+l.F*!H,"Object",{create:function(e,t){return void 0===t?w(e):$(w(e),t)},defineProperty:X,defineProperties:$,getOwnPropertyDescriptor:Q,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=d((function(){N.f(1)}));l(l.S+l.F*ae,"Object",{getOwnPropertySymbols:function(e){return N.f(S(e))}}),M&&l(l.S+l.F*(!H||d((function(){var e=R();return"[null]"!=k([e])||"{}"!=k({a:e})||"{}"!=k(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(_(t)||void 0!==e)&&!K(e))return b(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,k.apply(M,r)}}),R.prototype[B]||n(21)(R.prototype,B,R.prototype.valueOf),f(R,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},function(e,t,n){e.exports=n(73)("native-function-to-string",Function.toString)},function(e,t,n){var r=n(45),o=n(75),i=n(64);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,l=n(e),s=i.f,c=0;l.length>c;)s.call(e,a=l[c++])&&t.push(a);return t}},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(47)})},function(e,t,n){var r=n(0);r(r.S+r.F*!n(14),"Object",{defineProperty:n(15).f})},function(e,t,n){var r=n(0);r(r.S+r.F*!n(14),"Object",{defineProperties:n(144)})},function(e,t,n){var r=n(22),o=n(30).f;n(31)("getOwnPropertyDescriptor",(function(){return function(e,t){return o(r(e),t)}}))},function(e,t,n){var r=n(17),o=n(49);n(31)("getPrototypeOf",(function(){return function(e){return o(r(e))}}))},function(e,t,n){var r=n(17),o=n(45);n(31)("keys",(function(){return function(e){return o(r(e))}}))},function(e,t,n){n(31)("getOwnPropertyNames",(function(){return n(145).f}))},function(e,t,n){var r=n(9),o=n(39).onFreeze;n(31)("freeze",(function(e){return function(t){return e&&r(t)?e(o(t)):t}}))},function(e,t,n){var r=n(9),o=n(39).onFreeze;n(31)("seal",(function(e){return function(t){return e&&r(t)?e(o(t)):t}}))},function(e,t,n){var r=n(9),o=n(39).onFreeze;n(31)("preventExtensions",(function(e){return function(t){return e&&r(t)?e(o(t)):t}}))},function(e,t,n){var r=n(9);n(31)("isFrozen",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},function(e,t,n){var r=n(9);n(31)("isSealed",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},function(e,t,n){var r=n(9);n(31)("isExtensible",(function(e){return function(t){return!!r(t)&&(!e||e(t))}}))},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(146)})},function(e,t,n){var r=n(0);r(r.S,"Object",{is:n(147)})},function(e,t,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(97).set})},function(e,t,n){"use strict";var r=n(65),o={};o[n(10)("toStringTag")]="z",o+""!="[object z]"&&n(18)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(148)})},function(e,t,n){var r=n(15).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(14)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(9),o=n(49),i=n(10)("hasInstance"),a=Function.prototype;i in a||n(15).f(a,i,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(0),o=n(150);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(e,t,n){var r=n(0),o=n(151);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(e,t,n){"use strict";var r=n(6),o=n(20),i=n(34),a=n(99),l=n(38),s=n(7),c=n(48).f,d=n(30).f,u=n(15).f,f=n(55).trim,h=r.Number,p=h,m=h.prototype,g="Number"==i(n(47)(m)),v="trim"in String.prototype,b=function(e){var t=l(e,!1);if("string"==typeof t&&t.length>2){var n,r,o,i=(t=v?t.trim():f(t,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+t}for(var a,s=t.slice(2),c=0,d=s.length;co)return NaN;return parseInt(s,r)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof h&&(g?s((function(){m.valueOf.call(n)})):"Number"!=i(n))?a(new p(b(t)),n,h):b(t)};for(var y,_=n(14)?c(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;_.length>S;S++)o(p,y=_[S])&&!o(h,y)&&u(h,y,d(p,y));h.prototype=m,m.constructor=h,n(18)(r,"Number",h)}},function(e,t,n){"use strict";var r=n(0),o=n(29),i=n(152),a=n(100),l=1..toFixed,s=Math.floor,c=[0,0,0,0,0,0],d="Number.toFixed: incorrect invocation!",u=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=s(r/1e7)},f=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=s(n/e),n=n%e*1e7},h=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t},p=function e(t,n,r){return 0===n?r:n%2==1?e(t,n-1,r*t):e(t*t,n/2,r)};r(r.P+r.F*(!!l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(7)((function(){l.call({})}))),"Number",{toFixed:function(e){var t,n,r,l,s=i(this,d),c=o(e),m="",g="0";if(c<0||c>20)throw RangeError(d);if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(m="-",s=-s),s>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(s*p(2,69,1))-69)<0?s*p(2,-t,1):s/p(2,t,1),n*=4503599627370496,(t=52-t)>0){for(u(0,n),r=c;r>=7;)u(1e7,0),r-=7;for(u(p(10,r,1),0),r=t-1;r>=23;)f(1<<23),r-=23;f(1<0?m+((l=g.length)<=c?"0."+a.call("0",c-l)+g:g.slice(0,l-c)+"."+g.slice(l-c)):m+g}})},function(e,t,n){"use strict";var r=n(0),o=n(7),i=n(152),a=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))),"Number",{toPrecision:function(e){var t=i(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(0),o=n(6).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},function(e,t,n){var r=n(0);r(r.S,"Number",{isInteger:n(153)})},function(e,t,n){var r=n(0);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(0),o=n(153),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},function(e,t,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(0),o=n(151);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(e,t,n){var r=n(0),o=n(150);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(e,t,n){var r=n(0),o=n(154),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:o(e-1+i(e-1)*i(e+1))}})},function(e,t,n){var r=n(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(0),o=n(101);r(r.S,"Math",{cbrt:function(e){return o(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(0);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},function(e,t,n){var r=n(0),o=n(102);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(e,t,n){var r=n(0);r(r.S,"Math",{fround:n(267)})},function(e,t,n){var r=n(101),o=Math.pow,i=o(2,-52),a=o(2,-23),l=o(2,127)*(2-a),s=o(2,-126);e.exports=Math.fround||function(e){var t,n,o=Math.abs(e),c=r(e);return ol||n!=n?c*(1/0):c*n}},function(e,t,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,i=0,a=0,l=arguments.length,s=0;a0?(r=n/s)*r:n;return s===1/0?1/0:s*Math.sqrt(i)}})},function(e,t,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(7)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(e,t){var n=+e,r=+t,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=n(0);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var r=n(0);r(r.S,"Math",{log1p:n(154)})},function(e,t,n){var r=n(0);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(0);r(r.S,"Math",{sign:n(101)})},function(e,t,n){var r=n(0),o=n(102),i=Math.exp;r(r.S+r.F*n(7)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(0),o=n(102),i=Math.exp;r(r.S,"Math",{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){var r=n(0);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var r=n(0),o=n(46),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(0),o=n(22),i=n(11);r(r.S,"String",{raw:function(e){for(var t=o(e.raw),n=i(t.length),r=arguments.length,a=[],l=0;n>l;)a.push(String(t[l++])),l=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var r=n(0),o=n(103)(!1);r(r.P,"String",{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r=n(0),o=n(11),i=n(105),a="".endsWith;r(r.P+r.F*n(107)("endsWith"),"String",{endsWith:function(e){var t=i(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(t.length),l=void 0===n?r:Math.min(o(n),r),s=String(e);return a?a.call(t,s,l):t.slice(l-s.length,l)===s}})},function(e,t,n){"use strict";var r=n(0),o=n(105);r(r.P+r.F*n(107)("includes"),"String",{includes:function(e){return!!~o(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(0);r(r.P,"String",{repeat:n(100)})},function(e,t,n){"use strict";var r=n(0),o=n(11),i=n(105),a="".startsWith;r(r.P+r.F*n(107)("startsWith"),"String",{startsWith:function(e){var t=i(this,e,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return a?a.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";n(19)("anchor",(function(e){return function(t){return e(this,"a","name",t)}}))},function(e,t,n){"use strict";n(19)("big",(function(e){return function(){return e(this,"big","","")}}))},function(e,t,n){"use strict";n(19)("blink",(function(e){return function(){return e(this,"blink","","")}}))},function(e,t,n){"use strict";n(19)("bold",(function(e){return function(){return e(this,"b","","")}}))},function(e,t,n){"use strict";n(19)("fixed",(function(e){return function(){return e(this,"tt","","")}}))},function(e,t,n){"use strict";n(19)("fontcolor",(function(e){return function(t){return e(this,"font","color",t)}}))},function(e,t,n){"use strict";n(19)("fontsize",(function(e){return function(t){return e(this,"font","size",t)}}))},function(e,t,n){"use strict";n(19)("italics",(function(e){return function(){return e(this,"i","","")}}))},function(e,t,n){"use strict";n(19)("link",(function(e){return function(t){return e(this,"a","href",t)}}))},function(e,t,n){"use strict";n(19)("small",(function(e){return function(){return e(this,"small","","")}}))},function(e,t,n){"use strict";n(19)("strike",(function(e){return function(){return e(this,"strike","","")}}))},function(e,t,n){"use strict";n(19)("sub",(function(e){return function(){return e(this,"sub","","")}}))},function(e,t,n){"use strict";n(19)("sup",(function(e){return function(){return e(this,"sup","","")}}))},function(e,t,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var r=n(0),o=n(17),i=n(38);r(r.P+r.F*n(7)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=o(this),n=i(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var r=n(0),o=n(302);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(e,t,n){"use strict";var r=n(7),o=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-5e13-1))}))||!r((function(){i.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},function(e,t,n){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(18)(r,"toString",(function(){var e=i.call(this);return e==e?o.call(this):"Invalid Date"}))},function(e,t,n){var r=n(10)("toPrimitive"),o=Date.prototype;r in o||n(21)(o,r,n(305))},function(e,t,n){"use strict";var r=n(8),o=n(38);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!=e)}},function(e,t,n){var r=n(0);r(r.S,"Array",{isArray:n(76)})},function(e,t,n){"use strict";var r=n(27),o=n(0),i=n(17),a=n(156),l=n(108),s=n(11),c=n(109),d=n(110);o(o.S+o.F*!n(77)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,u,f=i(e),h="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,b=d(f);if(g&&(m=r(m,p>2?arguments[2]:void 0,2)),null==b||h==Array&&l(b))for(n=new h(t=s(f.length));t>v;v++)c(n,v,g?m(f[v],v):f[v]);else for(u=b.call(f),n=new h;!(o=u.next()).done;v++)c(n,v,g?a(u,m,[o.value,v],!0):o.value);return n.length=v,n}})},function(e,t,n){"use strict";var r=n(0),o=n(109);r(r.S+r.F*n(7)((function(){function e(){}return!(Array.of.call(e)instanceof e)})),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)o(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(0),o=n(22),i=[].join;r(r.P+r.F*(n(63)!=Object||!n(25)(i)),"Array",{join:function(e){return i.call(o(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(0),o=n(96),i=n(34),a=n(46),l=n(11),s=[].slice;r(r.P+r.F*n(7)((function(){o&&s.call(o)})),"Array",{slice:function(e,t){var n=l(this.length),r=i(this);if(t=void 0===t?n:t,"Array"==r)return s.call(this,e,t);for(var o=a(e,n),c=a(t,n),d=l(c-o),u=new Array(d),f=0;f1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},function(e,t,n){var r=n(0);r(r.P,"Array",{copyWithin:n(159)}),n(50)("copyWithin")},function(e,t,n){var r=n(0);r(r.P,"Array",{fill:n(111)}),n(50)("fill")},function(e,t,n){"use strict";var r=n(0),o=n(32)(5),i=!0;"find"in[]&&Array(1).find((function(){i=!1})),r(r.P+r.F*i,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(50)("find")},function(e,t,n){"use strict";var r=n(0),o=n(32)(6),i="findIndex",a=!0;i in[]&&Array(1)[i]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(50)(i)},function(e,t,n){n(57)("Array")},function(e,t,n){var r=n(6),o=n(99),i=n(15).f,a=n(48).f,l=n(106),s=n(78),c=r.RegExp,d=c,u=c.prototype,f=/a/g,h=/a/g,p=new c(f)!==f;if(n(14)&&(!p||n(7)((function(){return h[n(10)("match")]=!1,c(f)!=f||c(h)==h||"/a/i"!=c(f,"i")})))){c=function(e,t){var n=this instanceof c,r=l(e),i=void 0===t;return!n&&r&&e.constructor===c&&i?e:o(p?new d(r&&!i?e.source:e,t):d((r=e instanceof c)?e.source:e,r&&i?s.call(e):t),n?this:u,c)};for(var m=function(e){e in c||i(c,e,{configurable:!0,get:function(){return d[e]},set:function(t){d[e]=t}})},g=a(d),v=0;g.length>v;)m(g[v++]);u.constructor=c,c.prototype=u,n(18)(r,"RegExp",c)}n(57)("RegExp")},function(e,t,n){"use strict";n(162);var r=n(8),o=n(78),i=n(14),a=/./.toString,l=function(e){n(18)(RegExp.prototype,"toString",e,!0)};n(7)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?l((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?o.call(e):void 0)})):"toString"!=a.name&&l((function(){return a.call(this)}))},function(e,t,n){"use strict";var r=n(8),o=n(11),i=n(114),a=n(79);n(80)("match",1,(function(e,t,n,l){return[function(n){var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=l(n,e,this);if(t.done)return t.value;var s=r(e),c=String(this);if(!s.global)return a(s,c);var d=s.unicode;s.lastIndex=0;for(var u,f=[],h=0;null!==(u=a(s,c));){var p=String(u[0]);f[h]=p,""===p&&(s.lastIndex=i(c,o(s.lastIndex),d)),h++}return 0===h?null:f}]}))},function(e,t,n){"use strict";var r=n(8),o=n(17),i=n(11),a=n(29),l=n(114),s=n(79),c=Math.max,d=Math.min,u=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;n(80)("replace",2,(function(e,t,n,p){return[function(r,o){var i=e(this),a=null==r?void 0:r[t];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(e,t){var o=p(n,e,this,t);if(o.done)return o.value;var u=r(e),f=String(this),h="function"==typeof t;h||(t=String(t));var g=u.global;if(g){var v=u.unicode;u.lastIndex=0}for(var b=[];;){var y=s(u,f);if(null===y)break;if(b.push(y),!g)break;""===String(y[0])&&(u.lastIndex=l(f,i(u.lastIndex),v))}for(var _,S="",C=0,E=0;E=C&&(S+=f.slice(C,w)+I,C=w+T.length)}return S+f.slice(C)}];function m(e,t,r,i,a,l){var s=r+e.length,c=i.length,d=h;return void 0!==a&&(a=o(a),d=f),n.call(l,d,(function(n,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(s);case"<":l=a[o.slice(1,-1)];break;default:var d=+o;if(0===d)return n;if(d>c){var f=u(d/10);return 0===f?n:f<=c?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):n}l=i[d-1]}return void 0===l?"":l}))}}))},function(e,t,n){"use strict";var r=n(8),o=n(147),i=n(79);n(80)("search",1,(function(e,t,n,a){return[function(n){var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var l=r(e),s=String(this),c=l.lastIndex;o(c,0)||(l.lastIndex=0);var d=i(l,s);return o(l.lastIndex,c)||(l.lastIndex=c),null===d?-1:d.index}]}))},function(e,t,n){"use strict";var r=n(106),o=n(8),i=n(66),a=n(114),l=n(11),s=n(79),c=n(113),d=n(7),u=Math.min,f=[].push,h=!d((function(){RegExp(4294967295,"y")}));n(80)("split",2,(function(e,t,n,d){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(o,e,t);for(var i,a,l,s=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,h=void 0===t?4294967295:t>>>0,p=new RegExp(e.source,d+"g");(i=c.call(p,o))&&!((a=p.lastIndex)>u&&(s.push(o.slice(u,i.index)),i.length>1&&i.index=h));)p.lastIndex===i.index&&p.lastIndex++;return u===o.length?!l&&p.test("")||s.push(""):s.push(o.slice(u)),s.length>h?s.slice(0,h):s}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var o=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):p.call(String(o),n,r)},function(e,t){var r=d(p,e,this,t,p!==n);if(r.done)return r.value;var c=o(e),f=String(this),m=i(c,RegExp),g=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(h?"y":"g"),b=new m(h?c:"^(?:"+c.source+")",v),y=void 0===t?4294967295:t>>>0;if(0===y)return[];if(0===f.length)return null===s(b,f)?[f]:[];for(var _=0,S=0,C=[];S0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(o(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(166),o=n(51);e.exports=n(83)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(o(this,"Set"),e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r,o=n(6),i=n(32)(0),a=n(18),l=n(39),s=n(146),c=n(167),d=n(9),u=n(51),f=n(51),h=!o.ActiveXObject&&"ActiveXObject"in o,p=l.getWeak,m=Object.isExtensible,g=c.ufstore,v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},b={get:function(e){if(d(e)){var t=p(e);return!0===t?g(u(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(u(this,"WeakMap"),e,t)}},y=e.exports=n(83)("WeakMap",v,b,c,!0,!0);f&&h&&(s((r=c.getConstructor(v,"WeakMap")).prototype,b),l.NEED=!0,i(["delete","has","get","set"],(function(e){var t=y.prototype,n=t[e];a(t,e,(function(t,o){if(d(t)&&!m(t)){this._f||(this._f=new r);var i=this._f[e](t,o);return"set"==e?this:i}return n.call(this,t,o)}))})))},function(e,t,n){"use strict";var r=n(167),o=n(51);n(83)("WeakSet",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(o(this,"WeakSet"),e,!0)}},r,!1,!0)},function(e,t,n){"use strict";var r=n(0),o=n(84),i=n(116),a=n(8),l=n(46),s=n(11),c=n(9),d=n(6).ArrayBuffer,u=n(66),f=i.ArrayBuffer,h=i.DataView,p=o.ABV&&d.isView,m=f.prototype.slice,g=o.VIEW;r(r.G+r.W+r.F*(d!==f),{ArrayBuffer:f}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(e){return p&&p(e)||c(e)&&g in e}}),r(r.P+r.U+r.F*n(7)((function(){return!new f(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(e,t){if(void 0!==m&&void 0===t)return m.call(a(this),e);for(var n=a(this).byteLength,r=l(e,n),o=l(void 0===t?n:t,n),i=new(u(this,f))(s(o-r)),c=new h(this),d=new h(i),p=0;r=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}})),r(r.S,"Reflect",{enumerate:function(e){return new i(e)}})},function(e,t,n){var r=n(30),o=n(49),i=n(20),a=n(0),l=n(9),s=n(8);a(a.S,"Reflect",{get:function e(t,n){var a,c,d=arguments.length<3?t:arguments[2];return s(t)===d?t[n]:(a=r.f(t,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(d):void 0:l(c=o(t))?e(c,n,d):void 0}})},function(e,t,n){var r=n(30),o=n(0),i=n(8);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(i(e),t)}})},function(e,t,n){var r=n(0),o=n(49),i=n(8);r(r.S,"Reflect",{getPrototypeOf:function(e){return o(i(e))}})},function(e,t,n){var r=n(0);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(0),o=n(8),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return o(e),!i||i(e)}})},function(e,t,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(169)})},function(e,t,n){var r=n(0),o=n(8),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){o(e);try{return i&&i(e),!0}catch(e){return!1}}})},function(e,t,n){var r=n(15),o=n(30),i=n(49),a=n(20),l=n(0),s=n(42),c=n(8),d=n(9);l(l.S,"Reflect",{set:function e(t,n,l){var u,f,h=arguments.length<4?t:arguments[3],p=o.f(c(t),n);if(!p){if(d(f=i(t)))return e(f,n,l,h);p=s(0)}if(a(p,"value")){if(!1===p.writable||!d(h))return!1;if(u=o.f(h,n)){if(u.get||u.set||!1===u.writable)return!1;u.value=l,r.f(h,n,u)}else r.f(h,n,s(0,l));return!0}return void 0!==p.set&&(p.set.call(h,l),!0)}})},function(e,t,n){var r=n(0),o=n(97);o&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){o.check(e,t);try{return o.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){n(365),e.exports=n(12).Array.includes},function(e,t,n){"use strict";var r=n(0),o=n(74)(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(50)("includes")},function(e,t,n){n(367),e.exports=n(12).Array.flatMap},function(e,t,n){"use strict";var r=n(0),o=n(368),i=n(17),a=n(11),l=n(28),s=n(157);r(r.P,"Array",{flatMap:function(e){var t,n,r=i(this);return l(e),t=a(r.length),n=s(r,0),o(n,r,r,t,0,1,e,arguments[1]),n}}),n(50)("flatMap")},function(e,t,n){"use strict";var r=n(76),o=n(9),i=n(11),a=n(27),l=n(10)("isConcatSpreadable");e.exports=function e(t,n,s,c,d,u,f,h){for(var p,m,g=d,v=0,b=!!f&&a(f,h,3);v0)g=e(t,n,p,i(p.length),g,u-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=p}g++}v++}return g}},function(e,t,n){n(370),e.exports=n(12).String.padStart},function(e,t,n){"use strict";var r=n(0),o=n(170),i=n(82),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){n(372),e.exports=n(12).String.padEnd},function(e,t,n){"use strict";var r=n(0),o=n(170),i=n(82),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){n(374),e.exports=n(12).String.trimLeft},function(e,t,n){"use strict";n(55)("trimLeft",(function(e){return function(){return e(this,1)}}),"trimStart")},function(e,t,n){n(376),e.exports=n(12).String.trimRight},function(e,t,n){"use strict";n(55)("trimRight",(function(e){return function(){return e(this,2)}}),"trimEnd")},function(e,t,n){n(378),e.exports=n(93).f("asyncIterator")},function(e,t,n){n(142)("asyncIterator")},function(e,t,n){n(380),e.exports=n(12).Object.getOwnPropertyDescriptors},function(e,t,n){var r=n(0),o=n(169),i=n(22),a=n(30),l=n(109);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),s=a.f,c=o(r),d={},u=0;c.length>u;)void 0!==(n=s(r,t=c[u++]))&&l(d,t,n);return d}})},function(e,t,n){n(382),e.exports=n(12).Object.values},function(e,t,n){var r=n(0),o=n(171)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){n(384),e.exports=n(12).Object.entries},function(e,t,n){var r=n(0),o=n(171)(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){"use strict";n(163),n(386),e.exports=n(12).Promise.finally},function(e,t,n){"use strict";var r=n(0),o=n(12),i=n(6),a=n(66),l=n(165);r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}})},function(e,t,n){n(388),n(389),n(390),e.exports=n(12)},function(e,t,n){var r=n(6),o=n(0),i=n(82),a=[].slice,l=/MSIE .\./.test(i),s=function(e){return function(t,n){var r=arguments.length>2,o=!!r&&a.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};o(o.G+o.B+o.F*l,{setTimeout:s(r.setTimeout),setInterval:s(r.setInterval)})},function(e,t,n){var r=n(0),o=n(115);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(e,t,n){for(var r=n(112),o=n(45),i=n(18),a=n(6),l=n(21),s=n(56),c=n(10),d=c("iterator"),u=c("toStringTag"),f=s.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=o(h),m=0;m=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(117)(e))},function(e,t,n){n(393),e.exports=n(172).global},function(e,t,n){var r=n(394);r(r.G,{global:n(118)})},function(e,t,n){var r=n(118),o=n(172),i=n(395),a=n(397),l=n(404),s=function e(t,n,s){var c,d,u,f=t&e.F,h=t&e.G,p=t&e.S,m=t&e.P,g=t&e.B,v=t&e.W,b=h?o:o[n]||(o[n]={}),y=b.prototype,_=h?r:p?r[n]:(r[n]||{}).prototype;for(c in h&&(s=n),s)(d=!f&&_&&void 0!==_[c])&&l(b,c)||(u=d?_[c]:s[c],b[c]=h&&"function"!=typeof _[c]?s[c]:g&&d?i(u,r):v&&_[c]==u?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(u):m&&"function"==typeof u?i(Function.call,u):u,m&&((b.virtual||(b.virtual={}))[c]=u,t&e.R&&y&&!y[c]&&a(y,c,u)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){var r=n(396);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(398),o=n(403);e.exports=n(120)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(399),o=n(400),i=n(402),a=Object.defineProperty;t.f=n(120)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(119);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(120)&&!n(173)((function(){return 7!=Object.defineProperty(n(401)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(119),o=n(118).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(119);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(60),t.createHash=t.Hash=n(67),t.createHmac=t.Hmac=n(183);var r=n(424),o=Object.keys(r),i=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);t.getHashes=function(){return i};var a=n(186);t.pbkdf2=a.pbkdf2,t.pbkdf2Sync=a.pbkdf2Sync;var l=n(426);t.Cipher=l.Cipher,t.createCipher=l.createCipher,t.Cipheriv=l.Cipheriv,t.createCipheriv=l.createCipheriv,t.Decipher=l.Decipher,t.createDecipher=l.createDecipher,t.Decipheriv=l.Decipheriv,t.createDecipheriv=l.createDecipheriv,t.getCiphers=l.getCiphers,t.listCiphers=l.listCiphers;var s=n(441);t.DiffieHellmanGroup=s.DiffieHellmanGroup,t.createDiffieHellmanGroup=s.createDiffieHellmanGroup,t.getDiffieHellman=s.getDiffieHellman,t.createDiffieHellman=s.createDiffieHellman,t.DiffieHellman=s.DiffieHellman;var c=n(446);t.createSign=c.createSign,t.Sign=c.Sign,t.createVerify=c.createVerify,t.Verify=c.Verify,t.createECDH=n(480);var d=n(481);t.publicEncrypt=d.publicEncrypt,t.privateEncrypt=d.privateEncrypt,t.publicDecrypt=d.publicDecrypt,t.privateDecrypt=d.privateDecrypt;var u=n(484);t.randomFill=u.randomFill,t.randomFillSync=u.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],l=r[1],s=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),d=0,u=l>0?a-4:a;for(n=0;n>16&255,s[d++]=t>>8&255,s[d++]=255&t;2===l&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,s[d++]=255&t);1===l&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,s[d++]=t>>8&255,s[d++]=255&t);return s},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,l=n-o;al?l:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,s=a.length;l0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function d(e,t,n){for(var o,i,a=[],l=t;l>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,l=8*o-r-1,s=(1<>1,d=-7,u=n?o-1:0,f=n?-1:1,h=e[t+u];for(u+=f,i=h&(1<<-d)-1,h>>=-d,d+=l;d>0;i=256*i+e[t+u],u+=f,d-=8);for(a=i&(1<<-d)-1,i>>=-d,d+=r;d>0;a=256*a+e[t+u],u+=f,d-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=c}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,l,s,c=8*i-o-1,d=(1<>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+u>=1?f/s:f*Math.pow(2,1-u))*s>=2&&(a++,s/=2),a+u>=d?(l=0,a=d):a+u>=1?(l=(t*s-1)*Math.pow(2,o),a+=u):(l=t*Math.pow(2,u-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&l,h+=p,l/=256,o-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,c-=8);e[n+h-p]|=128*m}},function(e,t){},function(e,t,n){"use strict";var r=n(5).Buffer,o=n(410);function i(e,t,n){e.copy(t,n)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t=r.allocUnsafe(e>>>0),n=this.head,o=0;n;)i(n.data,t,o),o+=n.data.length,n=n.next;return t},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(412),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(37))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,l,s=1,c={},d=!1,u=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){i.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(o=u.documentElement,r=function(e){var t=u.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",l=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",l,!1):e.attachEvent("onmessage",l),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n>>2}function d(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(s,o),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,l=0|this._d,s=0|this._e,u=0;u<16;++u)n[u]=e.readInt32BE(4*u);for(;u<80;++u)n[u]=n[u-3]^n[u-8]^n[u-14]^n[u-16];for(var f=0;f<80;++f){var h=~~(f/20),p=0|((t=r)<<5|t>>>27)+d(h,o,i,l)+s+n[f]+a[h];s=l,l=i,i=c(o),o=r,r=p}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=l+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s},function(e,t,n){var r=n(4),o=n(61),i=n(5).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],l=new Array(80);function s(){this.init(),this._w=l,o.call(this,64,56)}function c(e){return e<<5|e>>>27}function d(e){return e<<30|e>>>2}function u(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(s,o),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,l=0|this._d,s=0|this._e,f=0;f<16;++f)n[f]=e.readInt32BE(4*f);for(;f<80;++f)n[f]=(t=n[f-3]^n[f-8]^n[f-14]^n[f-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),m=c(r)+u(p,o,i,l)+s+n[h]+a[p]|0;s=l,l=i,i=d(o),o=r,r=m}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=l+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s},function(e,t,n){var r=n(4),o=n(181),i=n(61),a=n(5).Buffer,l=new Array(64);function s(){this.init(),this._w=l,i.call(this,64,56)}r(s,o),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=s},function(e,t,n){var r=n(4),o=n(182),i=n(61),a=n(5).Buffer,l=new Array(160);function s(){this.init(),this._w=l,i.call(this,128,112)}r(s,o),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=s},function(e,t,n){"use strict";var r=n(4),o=n(5).Buffer,i=n(41),a=o.alloc(128);function l(e,t){i.call(this,"digest"),"string"==typeof t&&(t=o.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=o.concat([t,a],64));for(var n=this._ipad=o.allocUnsafe(64),r=this._opad=o.allocUnsafe(64),l=0;l<64;l++)n[l]=54^t[l],r[l]=92^t[l];this._hash=[n]}r(l,i),l.prototype._update=function(e){this._hash.push(e)},l.prototype._final=function(){var e=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,e]))},e.exports=l},function(e,t,n){e.exports=n(185)},function(e,t,n){(function(t,r){var o,i=n(187),a=n(188),l=n(189),s=n(5).Buffer,c=t.crypto&&t.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},u=[];function f(e,t,n,r,o){return c.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return c.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:o}},e,r<<3)})).then((function(e){return s.from(e)}))}e.exports=function(e,n,h,p,m,g){"function"==typeof m&&(g=m,m=void 0);var v=d[(m=m||"sha1").toLowerCase()];if(!v||"function"!=typeof t.Promise)return r.nextTick((function(){var t;try{t=l(e,n,h,p,m)}catch(e){return g(e)}g(null,t)}));if(i(e,n,h,p),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");s.isBuffer(e)||(e=s.from(e,a)),s.isBuffer(n)||(n=s.from(n,a)),function(e,t){e.then((function(e){r.nextTick((function(){t(null,e)}))}),(function(e){r.nextTick((function(){t(e)}))}))}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==u[e])return u[e];var n=f(o=o||s.alloc(8),o,10,128,e).then((function(){return!0})).catch((function(){return!1}));return u[e]=n,n}(v).then((function(t){return t?f(e,n,h,p,v):l(e,n,h,p,m)})),g)}}).call(this,n(37),n(40))},function(e,t,n){var r=n(427),o=n(130),i=n(131),a=n(440),l=n(87);function s(e,t,n){if(e=e.toLowerCase(),i[e])return o.createCipheriv(e,t,n);if(a[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function c(e,t,n){if(e=e.toLowerCase(),i[e])return o.createDecipheriv(e,t,n);if(a[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),i[e])n=i[e].key,r=i[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");n=8*a[e].key,r=a[e].iv}var o=l(t,!1,n,r);return s(e,o.key,o.iv)},t.createCipheriv=t.Cipheriv=s,t.createDecipher=t.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),i[e])n=i[e].key,r=i[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");n=8*a[e].key,r=a[e].iv}var o=l(t,!1,n,r);return c(e,o.key,o.iv)},t.createDecipheriv=t.Decipheriv=c,t.listCiphers=t.getCiphers=function(){return Object.keys(a).concat(o.getCiphers())}},function(e,t,n){var r=n(41),o=n(428),i=n(4),a=n(5).Buffer,l={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};function s(e){r.call(this);var t,n=e.mode.toLowerCase(),o=l[n];t=e.decrypt?"decrypt":"encrypt";var i=e.key;a.isBuffer(i)||(i=a.from(i)),"des-ede"!==n&&"des-ede-cbc"!==n||(i=a.concat([i,i.slice(0,8)]));var s=e.iv;a.isBuffer(s)||(s=a.from(s)),this._des=o.create({key:i,iv:s,type:t})}l.des=l["des-cbc"],l.des3=l["des-ede3-cbc"],e.exports=s,i(s,r),s.prototype._update=function(e){return a.from(this._des.update(e))},s.prototype._final=function(){return a.from(this._des.final())}},function(e,t,n){"use strict";t.utils=n(190),t.Cipher=n(129),t.DES=n(191),t.CBC=n(429),t.EDE=n(430)},function(e,t,n){"use strict";var r=n(23),o=n(4),i={};function a(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=i.allocUnsafe(e),n=-1;++n>a%8,e._prev=i(e._prev,n?r:o);return l}function i(e,t){var n=e.length,o=-1,i=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++o>7;return i}t.encrypt=function(e,t,n){for(var i=t.length,a=r.allocUnsafe(i),l=-1;++l>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=i(o)},a.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,o],16)),this.ghash(i([0,e,0,t])),this.state},e.exports=a},function(e,t,n){var r=n(195),o=n(5).Buffer,i=n(131),a=n(196),l=n(41),s=n(86),c=n(87);function d(e,t,n){l.call(this),this._cache=new u,this._last=void 0,this._cipher=new s.AES(t),this._prev=o.from(n),this._mode=e,this._autopadding=!0}function u(){this.cache=o.allocUnsafe(0)}function f(e,t,n){var l=i[e.toLowerCase()];if(!l)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=o.from(n)),"GCM"!==l.mode&&n.length!==l.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=o.from(t)),t.length!==l.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===l.type?new a(l.module,t,n,!0):"auth"===l.type?new r(l.module,t,n,!0):new d(l.module,t,n)}n(4)(d,l),d.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return o.concat(r)},d.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var n=-1;for(;++n16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=i[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=c(t,!1,n.key,n.iv);return f(e,r.key,r.iv)},t.createDecipheriv=f},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,n){(function(e){var r=n(197),o=n(444),i=n(445);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var n=new e(o[t].prime,"hex"),r=new e(o[t].gen,"hex");return new i(n,r)},t.createDiffieHellman=t.DiffieHellman=function t(n,o,l,s){return e.isBuffer(o)||void 0===a[o]?t(n,"binary",o,l):(o=o||"binary",s=s||"binary",l=l||new e([2]),e.isBuffer(l)||(l=new e(l,s)),"number"==typeof n?new i(r(n,l),l,!0):(e.isBuffer(n)||(n=new e(n,o)),new i(n,l,!0)))}}).call(this,n(16).Buffer)},function(e,t){},function(e,t){},function(e){e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(e,t,n){(function(t){var r=n(13),o=new(n(198)),i=new r(24),a=new r(11),l=new r(10),s=new r(3),c=new r(7),d=n(197),u=n(60);function f(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._pub=new r(e),this}function h(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._priv=new r(e),this}e.exports=m;var p={};function m(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=f,this.setPrivateKey=h):this._primeCode=8}function g(e,n){var r=new t(e.toArray());return n?r.toString(n):r}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in p)return p[r];var u,f=0;if(e.isEven()||!d.simpleSieve||!d.fermatTest(e)||!o.test(e))return f+=1,f+="02"===n||"05"===n?8:4,p[r]=f,f;switch(o.test(e.shrn(1))||(f+=2),n){case"02":e.mod(i).cmp(a)&&(f+=8);break;case"05":(u=e.mod(l)).cmp(s)&&u.cmp(c)&&(f+=8);break;default:f+=4}return p[r]=f,f}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new r(u(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var n=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),o=new t(n.toArray()),i=this.getPrime();if(o.length0&&n.ishrn(r),n}function u(e,n,o){var i,a;do{for(i=new t(0);8*i.length=0&&(a=t,l=n),r.negative&&(r=r.neg(),i=i.neg()),a.negative&&(a=a.neg(),l=l.neg()),[{a:r,b:i},{a:a,b:l}]},s.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],o=r.b.mul(e).divRound(this.n),i=n.b.neg().mul(e).divRound(this.n),a=o.mul(n.a),l=i.mul(r.a),s=o.mul(n.b),c=i.mul(r.b);return{k1:e.sub(a).sub(l),k2:s.add(c).neg()}},s.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},s.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),o=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(o).cmpn(0)},s.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,o=this._endoWnafT2,i=0;i":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),o=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),i=o.redSqr().redISub(this.x.redAdd(this.x)),a=o.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,n){var r=[this,t],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o):this.curve._wnafMulAdd(1,r,o,2)},c.prototype.jmulAdd=function(e,t,n){var r=[this,t],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o,!0):this.curve._wnafMulAdd(1,r,o,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},i(d,a.BasePoint),s.prototype.jpoint=function(e,t,n){return new d(this,e,t,n)},d.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},d.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},d.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),o=e.x.redMul(n),i=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),l=r.redSub(o),s=i.redSub(a);if(0===l.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=l.redSqr(),d=c.redMul(l),u=r.redMul(c),f=s.redSqr().redIAdd(d).redISub(u).redISub(u),h=s.redMul(u.redISub(f)).redISub(i.redMul(d)),p=this.z.redMul(e.z).redMul(l);return this.curve.jpoint(f,h,p)},d.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),o=this.y,i=e.y.redMul(t).redMul(this.z),a=n.redSub(r),l=o.redSub(i);if(0===a.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=a.redSqr(),c=s.redMul(a),d=n.redMul(s),u=l.redSqr().redIAdd(c).redISub(d).redISub(d),f=l.redMul(d.redISub(u)).redISub(o.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(u,f,h)},d.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,n=0;n=0)return!1;if(n.redIAdd(o),0===this.x.cmp(n))return!0}},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,n){"use strict";var r=n(13),o=n(4),i=n(88),a=n(24);function l(e){i.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function s(e,t,n){i.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(l,i),e.exports=l,l.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},o(s,i.BasePoint),l.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},l.prototype.point=function(e,t){return new s(this,e,t)},l.prototype.pointFromJSON=function(e){return s.fromJSON(this,e)},s.prototype.precompute=function(){},s.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},s.fromJSON=function(e,t){return new s(e,t[0],t[1]||e.one)},s.prototype.inspect=function(){return this.isInfinity()?"":""},s.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},s.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),o=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,o)},s.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),o=e.x.redAdd(e.z),i=e.x.redSub(e.z).redMul(n),a=o.redMul(r),l=t.z.redMul(i.redAdd(a).redSqr()),s=t.x.redMul(i.redISub(a).redSqr());return this.curve.point(l,s)},s.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var i=o.length-1;i>=0;i--)0===o[i]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},s.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},s.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,n){"use strict";var r=n(24),o=n(13),i=n(4),a=n(88),l=r.assert;function s(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),l(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,n,r,i){a.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(n,16),this.z=r?new o(r,16):this.curve.one,this.t=i&&new o(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}i(s,a),e.exports=s,s.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},s.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},s.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},s.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),a=r.redMul(i.redInvm()),l=a.redSqrt();if(0!==l.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var s=l.fromRed().isOdd();return(t&&!s||!t&&s)&&(l=l.redNeg()),this.point(e,l)},s.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),a=r.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var l=a.redSqrt();if(0!==l.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return l.fromRed().isOdd()!==t&&(l=l.redNeg()),this.point(l,e)},s.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),o=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(o)},i(c,a.BasePoint),s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},s.prototype.point=function(e,t,n,r){return new c(this,e,t,n,r)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),o=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i=r.redAdd(t),a=i.redSub(n),l=r.redSub(t),s=o.redMul(a),c=i.redMul(l),d=o.redMul(l),u=a.redMul(i);return this.curve.point(s,c,u,d)},c.prototype._projDbl=function(){var e,t,n,r=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),i=this.y.redSqr();if(this.curve.twisted){var a=(c=this.curve._mulA(o)).redAdd(i);if(this.zOne)e=r.redSub(o).redSub(i).redMul(a.redSub(this.curve.two)),t=a.redMul(c.redSub(i)),n=a.redSqr().redSub(a).redSub(a);else{var l=this.z.redSqr(),s=a.redSub(l).redISub(l);e=r.redSub(o).redISub(i).redMul(s),t=a.redMul(c.redSub(i)),n=a.redMul(s)}}else{var c=o.redAdd(i);l=this.curve._mulC(this.z).redSqr(),s=c.redSub(l).redSub(l);e=this.curve._mulC(r.redISub(c)).redMul(s),t=this.curve._mulC(c).redMul(o.redISub(i)),n=c.redMul(s)}return this.curve.point(e,t,n)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),o=this.z.redMul(e.z.redAdd(e.z)),i=n.redSub(t),a=o.redSub(r),l=o.redAdd(r),s=n.redAdd(t),c=i.redMul(a),d=l.redMul(s),u=i.redMul(s),f=a.redMul(l);return this.curve.point(c,d,f,u)},c.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),o=r.redSqr(),i=this.x.redMul(e.x),a=this.y.redMul(e.y),l=this.curve.d.redMul(i).redMul(a),s=o.redSub(l),c=o.redAdd(l),d=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(a),u=r.redMul(s).redMul(d);return this.curve.twisted?(t=r.redMul(c).redMul(a.redSub(this.curve._mulA(i))),n=s.redMul(c)):(t=r.redMul(c).redMul(a.redSub(i)),n=this.curve._mulC(s).redMul(c)),this.curve.point(u,t,n)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},c.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,n){"use strict";t.sha1=n(453),t.sha224=n(454),t.sha256=n(202),t.sha384=n(455),t.sha512=n(203)},function(e,t,n){"use strict";var r=n(33),o=n(70),i=n(201),a=r.rotl32,l=r.sum32,s=r.sum32_5,c=i.ft_1,d=o.BlockHash,u=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(f,d),e.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;rthis.blockSize&&(e=(new this.Hash).update(e).digest()),o(e.length<=this.blockSize);for(var t=e.length;t0))return a.iaddn(1),this.keyFromPrivate(a)}},f.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,n,a){"object"===r(n)&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new o(e,16));for(var l=this.n.byteLength(),s=t.getPrivate().toArray("be",l),c=e.toArray("be",l),d=new i({hash:this.hash,entropy:s,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"}),f=this.n.sub(new o(1)),h=0;;h++){var p=a.k?a.k(h):new o(d.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(f)>=0)){var m=this.g.mul(p);if(!m.isInfinity()){var g=m.getX(),v=g.umod(this.n);if(0!==v.cmpn(0)){var b=p.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e));if(0!==(b=b.umod(this.n)).cmpn(0)){var y=(m.getY().isOdd()?1:0)|(0!==g.cmp(v)?2:0);return a.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),y^=1),new u({r:v,s:b,recoveryParam:y})}}}}}},f.prototype.verify=function(e,t,n,r){e=this._truncateToN(new o(e,16)),n=this.keyFromPublic(n,r);var i=(t=new u(t,"hex")).r,a=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var l,s=a.invm(this.n),c=s.mul(e).umod(this.n),d=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(l=this.g.jmulAdd(c,n.getPublic(),d)).isInfinity()&&l.eqXToP(i):!(l=this.g.mulAdd(c,n.getPublic(),d)).isInfinity()&&0===l.getX().umod(this.n).cmp(i)},f.prototype.recoverPubKey=function(e,t,n,r){c((3&n)===n,"The recovery param is more than two bits"),t=new u(t,r);var i=this.n,a=new o(e),l=t.r,s=t.s,d=1&n,f=n>>1;if(l.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");l=f?this.curve.pointFromX(l.add(this.curve.n),d):this.curve.pointFromX(l,d);var h=t.r.invm(i),p=i.sub(a).mul(h).umod(i),m=s.mul(h).umod(i);return this.g.mulAdd(p,l,m)},f.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new u(t,r)).recoveryParam)return t.recoveryParam;for(var o=0;o<4;o++){var i;try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(n))return o}throw new Error("Unable to find valid recovery factor")}},function(e,t,n){"use strict";var r=n(136),o=n(199),i=n(23);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=o.toArray(e.entropy,e.entropyEnc||"hex"),n=o.toArray(e.nonce,e.nonceEnc||"hex"),r=o.toArray(e.pers,e.persEnc||"hex");i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=a,a.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},a.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=o.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length"}},function(e,t,n){"use strict";var r=n(13),o=n(24),i=o.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(i(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function l(){this.place=0}function s(e,t){var n=e[t.place++];if(!(128&n))return n;for(var r=15&n,o=0,i=0,a=t.place;i>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=o.toArray(e,t);var n=new l;if(48!==e[n.place++])return!1;if(s(e,n)+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var i=s(e,n),a=e.slice(n.place,i+n.place);if(n.place+=i,2!==e[n.place++])return!1;var c=s(e,n);if(e.length!==c+n.place)return!1;var d=e.slice(n.place,c+n.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===d[0]&&128&d[1]&&(d=d.slice(1)),this.r=new r(a),this.s=new r(d),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=c(t),n=c(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];d(r,t.length),(r=r.concat(t)).push(2),d(r,n.length);var i=r.concat(n),a=[48];return d(a,i.length),a=a.concat(i),o.encode(a,e)}},function(e,t,n){"use strict";var r=n(136),o=n(135),i=n(24),a=i.assert,l=i.parseBytes,s=n(464),c=n(465);function d(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof d))return new d(e);e=o[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=d,d.prototype.sign=function(e,t){e=l(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),o=this.g.mul(r),i=this.encodePoint(o),a=this.hashInt(i,n.pubBytes(),e).mul(n.priv()),s=r.add(a).umod(this.curve.n);return this.makeSignature({R:o,S:s,Rencoded:i})},d.prototype.verify=function(e,t,n){e=l(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),o=this.hashInt(t.Rencoded(),r.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(r.pub().mul(o)).eq(i)},d.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=t)throw new Error("invalid sig")}e.exports=function(e,n,s,c,d){var u=i(s);if("ec"===u.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,n){var r=a[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var i=new o(r),l=n.data.subjectPrivateKey.data;return i.verify(t,e,l)}(e,n,u)}if("dsa"===u.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,n){var o=n.data.p,a=n.data.q,s=n.data.g,c=n.data.pub_key,d=i.signature.decode(e,"der"),u=d.s,f=d.r;l(u,a),l(f,a);var h=r.mont(o),p=u.invm(a);return 0===s.toRed(h).redPow(new r(t).mul(p).mod(a)).fromRed().mul(c.toRed(h).redPow(f.mul(p).mod(a)).fromRed()).mod(o).mod(a).cmp(f)}(e,n,u)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");n=t.concat([d,n]);for(var f=u.modulus.byteLength(),h=[1],p=0;n.length+h.length+2n-f-2)throw new Error("message too long");var h=u.alloc(n-r-f-2),p=n-d-1,m=o(d),g=l(u.concat([c,h,u.alloc(1,1),t],p),a(m,p)),v=l(m,a(g,d));return new s(u.concat([u.alloc(1),v,g],n))}(p,t);else if(1===f)h=function(e,t,n){var r,i=t.length,a=e.modulus.byteLength();if(i>a-11)throw new Error("message too long");r=n?u.alloc(a-i-3,255):function(e){var t,n=u.allocUnsafe(e),r=0,i=o(2*e),a=0;for(;r=0)throw new Error("data too long for modulus")}return n?d(h,p):c(h,p)}},function(e,t,n){var r=n(89),o=n(209),i=n(210),a=n(13),l=n(133),s=n(67),c=n(211),d=n(5).Buffer;e.exports=function(e,t,n){var u;u=e.padding?e.padding:n?1:4;var f,h=r(e),p=h.modulus.byteLength();if(t.length>p||new a(t).cmp(h.modulus)>=0)throw new Error("decryption error");f=n?c(new a(t),h):l(t,h);var m=d.alloc(p-f.length);if(f=d.concat([m,f],p),4===u)return function(e,t){var n=e.modulus.byteLength(),r=s("sha1").update(d.alloc(0)).digest(),a=r.length;if(0!==t[0])throw new Error("decryption error");var l=t.slice(1,a+1),c=t.slice(a+1),u=i(l,o(c,a)),f=i(c,o(u,n-a-1));if(function(e,t){e=d.from(e),t=d.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));var o=-1;for(;++o=t.length){i++;break}var a=t.slice(2,o-1);("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&i++;a.length<8&&i++;if(i)throw new Error("decryption error");return t.slice(o)}(0,f,n);if(3===u)return f;throw new Error("unknown padding")}},function(e,t,n){"use strict";(function(e,r){function o(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var i=n(5),a=n(60),l=i.Buffer,s=i.kMaxLength,c=e.crypto||e.msCrypto,d=Math.pow(2,32)-1;function u(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>d||e<0)throw new TypeError("offset must be a uint32");if(e>s||e>t)throw new RangeError("offset out of range")}function f(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>d||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>s)throw new RangeError("buffer too small")}function h(e,t,n,o){if(r.browser){var i=e.buffer,l=new Uint8Array(i,t,n);return c.getRandomValues(l),o?void r.nextTick((function(){o(null,e)})):e}if(!o)return a(n).copy(e,t),e;a(n,(function(n,r){if(n)return o(n);r.copy(e,t),o(null,e)}))}c&&c.getRandomValues||!r.browser?(t.randomFill=function(t,n,r,o){if(!(l.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)o=n,n=0,r=t.length;else if("function"==typeof r)o=r,r=t.length-n;else if("function"!=typeof o)throw new TypeError('"cb" argument must be a function');return u(n,t.length),f(r,n,t.length),h(t,n,r,o)},t.randomFillSync=function(t,n,r){void 0===n&&(n=0);if(!(l.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');u(n,t.length),void 0===r&&(r=t.length-n);return f(r,n,t.length),h(t,n,r)}):(t.randomFill=o,t.randomFillSync=o)}).call(this,n(37),n(40))},function(e,t,n){var r=n(212),o=n(215),i=n(488);function a(e,t){return new i(t).process(e)}for(var l in(t=e.exports=a).filterXSS=a,t.FilterXSS=i,r)t[l]=r[l];for(var l in o)t[l]=o[l];"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)},function(e,t,n){var r=n(213),o=n(487);n(214);function i(e){return null==e}function a(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).whiteList=e.whiteList||r.whiteList,e.onAttr=e.onAttr||r.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||r.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||r.safeAttrValue,this.options=e}a.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onAttr,a=t.onIgnoreAttr,l=t.safeAttrValue;return o(e,(function(e,t,o,s,c){var d=n[o],u=!1;if(!0===d?u=d:"function"==typeof d?u=d(s):d instanceof RegExp&&(u=d.test(s)),!0!==u&&(u=!1),s=l(o,s)){var f,h={position:t,sourcePosition:e,source:c,isWhite:u};return u?i(f=r(o,s,h))?o+":"+s:f:i(f=a(o,s,h))?void 0:f}}))},e.exports=a},function(e,t,n){var r=n(214);e.exports=function(e,t){";"!==(e=r.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,o=!1,i=0,a=0,l="";function s(){if(!o){var n=r.trim(e.slice(i,a)),s=n.indexOf(":");if(-1!==s){var c=r.trim(n.slice(0,s)),d=r.trim(n.slice(s+1));if(c){var u=t(i,l.length,c,d,n);u&&(l+=u+"; ")}}}i=a+1}for(;a";var b=function(e){var t=s.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=s.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=s.trim(e.slice(0,-1))),{html:e,closing:n}}(a),y=n[o],_=l(b.html,(function(e,t){var n,r=-1!==s.indexOf(y,e);return c(n=d(o,e,t,r))?r?(t=f(o,e,t,p))?e+'="'+t+'"':e:c(n=u(o,e,t,r))?void 0:n:n}));a="<"+o;return _&&(a+=" "+_),b.closing&&(a+=" /"),a+=">"}return c(g=i(o,a,v))?h(a):g}),h);return m&&(g=m.remove(g)),g},e.exports=d},function(e,t,n){var r=n(1),o=n(90),i=n(62),a=navigator.userAgent;function l(e,t){var n;if(t)for(n in e)e.hasOwnProperty(n)&&void 0!==t[n]&&(/^(editor|reader|lazyLoad|wizTemplate|pureReadMode|nightMode|documentData|callback|timeout|markdownPlugIn|ios|pc|table|code)$/.test(n)?l(e[n],t[n]):e[n]=t[n])}e.exports=function(e){var t=function(e){var t=this,n={},o=!0;window.localStorage&&(o="1"===window.localStorage.getItem(r.CODE.StorageKey.Wrap));var i={options:{document:null,container:null,useFrame:!1,lazyLoad:{enable:!1},htmlBaseUrl:"",lang:"en",clientType:"",userInfo:null,usersData:[],userNameEncoder:"",dependencyUrl:"",wizTemplate:{url:""},pureReadMode:{enable:!1,needContentExtraction:!1,borderColor:"",htmlBgColor:"",bodyBgColor:""},nightMode:{enable:!1,color:"",bgColor:"",brightness:""},editor:{type:r.NOTE_EDITOR_TYPE.COMMON,autoFocus:!0,autoCheckLink:!0,minHeight:300,maxUndo:100,callback:{undo:null,markerUndo:null,markerInitiated:null,onKeyDown:null,onClick:null,onPasteFile:null,onDropFile:null,onClickToolbarInsertImg:null,onClickToolbarHelp:null}},reader:{type:r.NOTE_READER_TYPE.COMMON,minHeight:300,codeNoIDE:!1,autoEdit:!1,noAmend:!1,markdownPlugIn:{imgSrcFilter:null,customBlockGamut:null},callback:{beforeMarkdownRender:null,markdown:null,mathJax:null,onClick:null,onAutoEdit:null},timeout:{markdown:3e4,mathJax:3e4}},callback:{onClickLink:null},clientRoute:{getUserAlias:null,getUserAvatarFileName:null,getUserGuid:null,hasPermission:null,isPersonalDocument:null,checkDocLock:null,getOriginalDoc:null,saveDoc:null},pc:{pluginModified:!1},table:{colWidth:120,colWidthMin:30,rowHeightMin:33},code:{lineWrapping:o}},locale:{},win:null,doc:null,body:null,documentType:r.DOCUMENT_TYPE.COMMON,scrollContainer:null,readonly:null,isShowPreview:!1,isSetBodyFontSize:!1,isWizTemplate:null,compositionStart:!1,compositionStartRange:null,indexFilesPath:"",indexFilesFullPath:"",supportTouchEvent:!1,frame:{dom:null,toolbarDoc:null,toolbarContainer:null,bodyContainer:null},dependency:{files:{css:{fonts:"".concat(e,"/fonts.css?v=").concat(r.version),github2:"".concat(e,"/github2.css?v=").concat(r.version),kityminder:"".concat(e,"/minder/kityminder.core.css?v=").concat(r.minderVersion),wizToc:"".concat(e,"/wizToc.css?v=").concat(r.version)},cursor:{formatPainter:"".concat(e,"/format-painter-wiz.cur?v=").concat(r.version)},js:{codemirror:"".concat(e,"/codemirror/codemirror.js?v=").concat(r.version),cmSimple:"".concat(e,"/codemirror/addon/mode/simple.js?v=").concat(r.version),cmActiveLine:"".concat(e,"/codemirror/addon/selection/active-line.js?v=").concat(r.version),cmMatchBrackets:"".concat(e,"/codemirror/addon/edit/matchbrackets.js?v=").concat(r.version),cmMode:"".concat(e,"/codemirror/mode/mode.js?v=").concat(r.version),flowchart:"".concat(e,"/flowchart.js?v=").concat(r.version),jquery:"".concat(e,"/jquery-3.3.1.js?v=").concat(r.version),kity:"".concat(e,"/minder/kity.min.js?v=").concat(r.minderVersion),kityminder:"".concat(e,"/minder/kityminder.core.min.js?v=").concat(r.minderVersion),mathJax:"".concat(e,"/mathjax/MathJax.js?config=TeX-AMS-MML_SVG&v=").concat(r.version),prettify:"".concat(e,"/prettify.js?v=").concat(r.version),raphael:"".concat(e,"/raphael.js?v=").concat(r.version),sequence:"".concat(e,"/sequence-diagram.js?v=").concat(r.version),underscore:"".concat(e,"/underscore.js?v=").concat(r.version),wizContent:"".concat(e,"/WizContent.js?v=").concat(r.wizContentVersion),wizPainter:"".concat(e,"/painter/WizSvgPainter.js?v=").concat(r.wizPainterVersion),wizTemplate:""}},css:{fonts:["fonts"],markdown:["github2","wizToc"],minder:["kityminder"]},js:{codeMirror:[["codemirror"],["cmSimple","cmActiveLine","cmMatchBrackets","cmMode"]],markdown:[["jquery"],["prettify","raphael","underscore"],["flowchart","sequence"]],mathJax:[["jquery"],["mathJax"]],minder:[["kity"],["kityminder"]],wizContent:[["wizContent"]],wizPainter:[["wizPainter"]],wizTemplate:[["wizTemplate"]]}},client:{type:{isWeb:location&&0===location.protocol.indexOf("http"),isWin:!1,isMac:!1,isLinux:!1,isIOS:!1,isAndroid:!1,isPad:!1,isPhone:!1},sendCmdToWizClient:function(){}},browser:{isAndroid:!!a.match(/Android/i),isIOS:!!a.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/i),isIPad:!!a.match(/iPad/i),isIPhone:!!a.match(/iPhone/i),isLinux:!!a.match(/Linux/i),isMac:!!a.match(/Macintosh/i),isMobile:!!a.match(/AppleWebKit.*Mobile.*/i),isWeChat:!!a.match(/MicroMessenger/i),isWindows:!!a.match(/Window/i),isIe:!!a.match(/msie|trident/i)}};return i.event={isPause:function(e){return!!i.event[e+"_pause"]},setPause:function(e,t){i.event[e+"_pause"]=!!t},add:function(e,t){var r=n[e];r||(r=[]);e&&t&&!function(e,t){if(!e||!t)return!1;var r,o,i=n[e];if(!i||0===i.length)return!1;for(r=0,o=i.length;r-1)t.client.type.isWin=!0,t.client.sendCmdToWizClient=function(e,n){e===r.CLIENT_EVENT.WizReaderClickImg?t.win.external.OnClickedImage(n.src,JSON.stringify(n.imgList)):e===r.CLIENT_EVENT.WizEditorClickSvg&&t.win.external.OnClickedSvg(JSON.stringify(n))};else if(e.indexOf("ios")>-1)t.client.type.isIOS=!0,t.client.sendCmdToWizClient=function(e,n){if(e===r.CLIENT_EVENT.WizEditorClickSvg)t.win.webkit.messageHandlers.onClickedSvg.postMessage(JSON.stringify(n));else if(e===r.CLIENT_EVENT.WizEditorPaste)t.win.webkit.messageHandlers.didWizEditorPaste.postMessage(null);else if(e===r.CLIENT_EVENT.WizEditorSetScrollTop)t.win.webkit.messageHandlers.setScrollTop.postMessage(n);else if(e===r.CLIENT_EVENT.WizEditorTrackEvent)t.win.webkit.messageHandlers.didWizEditorTrackEvent.postMessage({options:n});else if(e===r.CLIENT_EVENT.WizReaderClickImg)t.win.webkit.messageHandlers.WizReaderClickImg.postMessage({src:n.src});else if(e===r.CLIENT_EVENT.IosPrompt)return JSON.parse(prompt(JSON.stringify(n)))};else if(e.indexOf("android")>-1)t.client.type.isAndroid=!0,t.client.sendCmdToWizClient=function(e,n){e===r.CLIENT_EVENT.WizReaderClickImg?t.win.WizNote.onClickImg(n.src,n.imgList.join(",")):e===r.CLIENT_EVENT.WizEditorClickImg?t.win.WizNote.onEditorClickImage(n.src):e===r.CLIENT_EVENT.WizEditorClickSvg&&t.win.WizNote.onClickedSvg(JSON.stringify(n))};else if(e.indexOf("mac")>-1){var o=t.win.navigator.userAgent;/Mac/i.test(o)||(t.client.type.isLinux=!0),t.client.type.isMac=!0,t.client.sendCmdToWizClient=function(e,n){e===r.CLIENT_EVENT.WizReaderClickImg?t.win.WizExplorerApp.onClickedImage(n.src,JSON.stringify(n.imgList)):e===r.CLIENT_EVENT.WizEditorAfterCopied?setTimeout((function(){t.win.WizQtEditor.afterCopied()}),100):e===r.CLIENT_EVENT.WizEditorClickSvg?t.win.WizQtEditor.onClickedSvg(JSON.stringify(n)):e===r.CLIENT_EVENT.WizEditorPaste&&t.win.WizQtEditor.doPaste()}}else(e.indexOf("web")>-1||t.client.type.isWeb)&&(n=!0,t.client.type.isWeb=!0,t.client.sendCmdToWizClient=function(e,n){var o=t.options.document.defaultView;e===r.CLIENT_EVENT.WizEditorClickSvg&&o.WizWebEditor.onClickedSvg(n)});n||(t.client.type.isWeb=!1),(t.client.type.isIOS||t.client.type.isAndroid)&&(e.indexOf("pad")>-1?t.client.type.isPad=!0:t.client.type.isPhone=!0)}}(t.options.clientType,t);var c=decodeURIComponent(location.pathname),d=c.lastIndexOf("/")+1,u=c.lastIndexOf("."),f="";if(u>0&&(f=c.substring(d,u)),t.indexFilesPath=f+"_files",t.indexFilesFullPath=location.protocol+"//"+location.host+c.substr(0,d)+t.indexFilesPath+"/","base64"===t.options.userNameEncoder&&((n=t.options.userInfo)&&n.user_name&&(n.user_name=o.decode(n.user_name)),t.options.userData))for(var h=0;h0)):g?n.domUtils.after(i,g):1===r.nodeType?o0),n.rangeUtils.setRange(e,1,e,1))}();else if(C)!function(){var e=n.domUtils.createSpan();e.innerHTML=d.FILL_CHAR,(m=n._amendUtils.splitDeletedDom(r,o))?(n.domUtils.after(e,C),n.rangeUtils.setRange(e,1,e,1)):(n.domUtils.before(e,C,o>0),n.rangeUtils.setRange(e,1,e,1))}();else if(n._h6Patch())return void u.stopEvent(e);b.collapseToEnd()}},onKeyDownReverse:function(e){var t=e.keyCode||e.which,r=n.rangeUtils.getRange(),o=n._amendUtils.fixedAmendRange(),i=function(e,t){var r,o;e&&((o=n._amendUtils.getWizAmendParent(e))&&1===o.childNodes.length&&((r=n.domUtils.createSpan()).innerHTML=d.FILL_CHAR+d.FILL_CHAR,n.domUtils.before(r,o,t>0),n.domUtils.remove(o),n.rangeUtils.setRange(r,t>0?0:2,r,1)))};if(8===t)return n.req.historyUtils.saveSnap(!1),void(r&&r.collapsed&&o&&o.leftDom&&(o.startImg=n._amendUtils.getWizAmendImgParent(o.leftDom),o.startImg?(o.startDom=o.startImg,o.startOffset=0,n.rangeUtils.setRange(o.startDom,o.startOffset,o.endDom,o.endOffset)):3===o.leftDom.nodeType&&1===o.leftDom.nodeValue.length&&i(o.leftDom,-1)));if(46===t)return n.req.historyUtils.saveSnap(!1),void(r&&r.collapsed&&o&&o.rightDom&&(o.endImg=n._amendUtils.getWizAmendImgParent(o.rightDom),o.endImg?(o.endDom=o.endImg,o.endOffset=o.endImg.childNodes.length,n.rangeUtils.setRange(o.startDom,o.startOffset,o.endDom,o.endOffset)):3===o.rightDom.nodeType&&1===o.rightDom.nodeValue.length&&i(o.rightDom,1)));if(!u.checkNonTxtKey(e)){n.req.historyUtils.saveSnap(!1),n.splitAmendDomByRange(o);var a=n.req.tableUtils.checkCaretInTableContainer();n.req.blockUtils.insertEmptyLine(a.tableContainer,a.after),13===t&&n._h6Patch()&&u.stopEvent(e)}},onMouseDown:function(e){n._amendInfo.isInfo(e.target)?u.stopEvent(e):n._amendInfo.stop()},onMouseUp:function(){n._amendInfo.start()},onTouchStart:function(e){}},n.accept=function(e){var t,r=n.rangeUtils.getSelection(),o={};if(e.total)o.selection=!0,o.selectAll=!0;else if(e.dom&&!e.isSelection)o.domList=n._amendUtils.getSameTimeStampDom(e.dom),o.selection=!1;else{if(0===r.rangeCount)return;o.selection=!0,o.selectAll=!1}n.req.historyUtils.saveSnap(!1),(t=o.selection&&!o.selectAll?n._amendUtils.getSelectedAmendDoms():n._amendUtils.getAmendDoms(o))&&(n._amendUtils.splitSelectedAmendDoms(t),n._amendUtils.wizAmendDelete(t.deleteList),n._amendUtils.wizAmendDelete(t.deletedInsertList),n._amendUtils.wizAmendSave(t.insertList)),n.domUtils.clearChildSpan(n.env.body,[])},n.changeCurUser=function(e){n.env.options.userInfo=e,n._amendUser.initUser()},n.fixPaste=function(e,t,r){n._amendUtils.modifyDomForPaste(e,t,r)},n.fragmentFilter=function(e){if(!e)return!1;for(var t=e.querySelectorAll("."+d.CLASS.WIZ_BODY+" span["+d.ATTR.SPAN_DELETE+'="'+n._amendUser.getCurUser().hash+'"]'),r=t.length-1;r>=0;r--){var o=t[r];n.domUtils.remove(o)}},n.hideAmendInfo=function(){n._amendInfo.hide(!0)},n.isAmendEdited=function(){return n._amendUtils.isAmendEdited()},n.hasAmendSpanByCursor=function(){var e=n._amendUtils.getAmendDoms({selection:!0,selectAll:!1});return e.insertList.length>0||e.deleteList.length>0||e.deletedInsertList.length>0},n.readyForPaste=function(){var e,t,r,o,i,a,l,s,c,u,f,h,p,m,g,v=n.rangeUtils.getRange();v&&(v.collapsed||(e=n.domUtils.getParentByTagName(v.endContainer,["td","th"],!0,null),n._amendUtils.removeSelection(n._amendUser.getCurUser()),n._amendUtils.removeUserDel(null,n._amendUser.getCurUser())),t=(v=n.rangeUtils.getRange()).endContainer,r=v.endOffset,n.domUtils.isTag(t,["td","th"])&&0===r&&e!==t&&(t=e,r=n.domUtils.getEndOffset(t)),p=n._amendUtils.splitInsertDom(t,r,!0,n._amendUser.getCurUser()),o=(new Date).valueOf(),i=n._amendUtils.createDomForPaste(o),a=i.start,l=i.content,s=i.end,m=n._amendUtils.getWizAmendImgParent(t),p.split?(3===t.nodeType&&(t=t.parentNode),n.domUtils.before([a,l,s],t,r>0)):m?n.domUtils.after([a,l,s],m):1===t.nodeType?(g=!1,n.domUtils.isTag(t,["td","th"])&&(n.domUtils.isEmptyDom(t)&&(t.innerHTML="",t.appendChild(n.domUtils.createSpan())),g=!0),r0&&0===t.deleteList.length&&0===t.insertList.length;n._amendUtils.wizAmendSave(t.deleteList),i&&n._amendUtils.wizAmendSave(t.deletedInsertList),n._amendUtils.wizAmendDelete(t.insertList),i||n._amendUtils.wizAmendDelete(t.deletedInsertList)}n.domUtils.clearChildSpan(n.env.body,[])},n.splitAmendDomByRange=function(e){return n._amendUtils.splitAmendDomByRange(e)},n.start=function(){n._isAmendEditing=!0,n.stopReverse(),n._event.bind(),n.startAmendInfo()},n.startReverse=function(){n.stop(),n._event.bindReverse(),n.startAmendInfo()},n.startAmendInfo=function(e){n._amendInfo.init(e,{onAccept:n._handler.onAccept,onRefuse:n._handler.onRefuse})},n.stop=function(){n._isAmendEditing=!1,n._event.unbind(),n._amendInfo.off()},n.stopReverse=function(){n._event.unbindReverse(),n._amendInfo.off()},n.stopAmendInfo=function(){n._amendInfo.off()},n}var n,r,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,e),n=t,(r=[{key:"initCore",value:function(e){var n=this;l(s(t.prototype),"initCore",this).call(this,e),this._amendInfo=e.require.amendInfo,this._amendUser=e.require.amendUser,this._amendUtils=e.require.amendUtils,function(){var e=n.domUtils.modifyNodeStyle;n.domUtils.modifyNodeStyle=function(t,r,o,i){var a;return 1===t.nodeType&&o&&o[d.ATTR.SPAN_DELETE]&&n.domUtils.isTag(t,"img")?(n._amendUtils.deleteImg(t,n._amendUser.getCurUser()),t):1===t.nodeType&&o&&o[d.ATTR.SPAN_DELETE]&&n.domUtils.isEmptyDom(t)?((a=t.parentNode).removeChild(t),n.domUtils.removeEmptyParent(a),t):1===t.nodeType&&o&&o[d.ATTR.SPAN_DELETE]&&n.domUtils.isSelfClosingTag(t)?t:o&&o[d.ATTR.SPAN_DELETE]&&n._amendUtils.getWizDeleteParent(t)?t:e(t,r,o,i)};var t=n.domUtils.addDomForGetDomList;n.domUtils.addDomForGetDomList=function(e,r){n._amendUtils.isWizDelete(r)||3===r.nodeType&&!n.domUtils.getParentByTagName(r,["td","th"],!1,null)&&n.domUtils.getParentByTagName(r,"table",!1,null)||t(e,r)}}()}},{key:"isAmendEditing",get:function(){return this._isAmendEditing}}])&&i(n.prototype,r),f&&i(n,f),t}(n(2));e.exports=f},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n
|\\x03",")",")"].join(""),"gm");return a(e=(e=(e=(e=i(e)).replace(/\n{2,}(?=\\x03)/,"\n")).replace(o,(function(e,r,o){for(var i=t(o).split("\n"),a="",s=0;s"+(c=l(t(c),n))+"
"}return a+"\n"}))).replace(c,(function(e,t,o,i){return"\n
"+(i=t||i.match(/\n{2,}/)?"\n"+s(i=r(i=Array(o.length+1).join(" ")+i)+"\n\n",n)+"\n":l(r(i=i.replace(/\s+$/g,"")),n))+"
\n"})))},n.Extra.prototype.todo_list=function(e){return e.replace(/^([ ]*)\[ \]/g,"$1").replace(/^([ ]*)\[x\]/g,"$1")},n.Extra.prototype.strikethrough=function(e){return e.replace(/~T~T(?=\S)([^\r]*?\S[\*_]*)~T~T/g,"$1")},n.Extra.prototype.newlines=function(e){return e.replace(/(<(?:br|\/li)>)?\n/g,(function(e,t){return t?e:"
\n"}))}}(),e.exports=n.Extra},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n0;){var d=n._createDiv();n.domUtils.after(d,t),t=d,c--}return t}},n._fixSvgSize=function(){var e=n._getMarkerRoot();if(e){var t,r=e.querySelector("svg"),o=n._getSvgSize(r);n.wizSvgPainter?(n.wizSvgPainter.page.setSvgSize(o.width,Math.max(n.env.body.offsetHeight,o.height)),t=(o=n._getSvgSize(r)).height+"px"):t="100%",n.req.markerStyle.insertBodyStyle(o.width+"px",t)}},n._fixStyleForSave=function(){n._getMarkerRoot()&&n.wizSvgPainter?(n.minArea=n.wizSvgPainter.editorTools.getMinAreaFromPath(),n.req.markerStyle.insertBodyStyle(n.minArea.width+"px",n.minArea.maxHeight+"px")):(n.minArea=null,n._fixSvgSize()),n.req.markerStyle.fixStyle()},n._getMarkerRoot=function(){return n.env.doc.querySelector("#"+d.ID.MARKER_ROOT)},n._getToolsData=function(){var e=n.wizSvgPainter.editorTools,t=e.cur(),r=e.ToolType,o={curType:t.type,stylusMode:e.getStylusMode(),tools:[]};for(var i in r)if(r.hasOwnProperty(i)){var a=e.getToolByType(i),l={type:a.type,color:a.color,lineWidth:a.lineWidth,highlighterOnly:a.highlighterOnly,clearFullPath:a.clearFullPath};o.tools.push(l)}return o},n._getSvgSize=function(e){return{width:e.viewBox.baseVal.width,height:e.viewBox.baseVal.height}},n._event={bind:function(){n._event.unbind(),n.env.event.add(d.EVENT.BEFORE_GET_DOCHTML,n._handler.beforeGetDocHtml)},unbind:function(){n.env.event.remove(d.EVENT.BEFORE_GET_DOCHTML,n._handler.beforeGetDocHtml)}},n._handler={beforeGetDocHtml:function(){n._fixStyleForSave()}},n.hasLoaded=!1,n.on=function(){n.show()},n.off=function(){n.show(),n._event.unbind(),n.req.markerStyle.removeEditActiveStyle(),n.wizSvgPainter&&n.quit(),n.hasLoaded=!1},n.checkMarker=function(){return!!n._getMarkerRoot()},n.start=function(){n._markerOriginalHtml="";var e=function(){n.env.event.call(d.EVENT.ON_MARKER_INITIATED,n.wizSvgPainter),n.env.options.editor.callback.markerInitiated&&n.env.options.editor.callback.markerInitiated(JSON.stringify(n._getToolsData()))};n._loadDependency((function(){if(n.wizSvgPainter)e();else{if(n.req.markerStyle.insertCommon(),n.env.readonly||n.req.markerStyle.insertTemp(),n.hasLoaded=!0,n._event.bind(),n.wizSvgPainter=new n.env.win.WizSvgPainter({clientType:"web",lang:n.env.options.lang,maxUndo:200,callback:{undo:function(e){n.env.options.editor.callback.markerUndo&&n.env.options.editor.callback.markerUndo(JSON.stringify(e))}}},{isCreateNote:!0,isNoteMarker:!0},(function(){})),n.env.readonly)n.wizSvgPainter.reader.on();else n.rangeUtils.getSelection().empty(),n.domUtils.setContenteditable(null,!1),n.wizSvgPainter.editor.on();var t=n._getMarkerRoot();t&&(n.env.readonly||(n._markerOriginalHtml=t.outerHTML),n.domUtils.setContenteditable(t,!1)),n._fixSvgSize(),e()}}))},n.quit=function(e){e||n._fixStyleForSave(),n.wizSvgPainter&&(n.wizSvgPainter.destroy(),n.wizSvgPainter=null),e&&n._abandonAllModified(),n.env.readonly||n.domUtils.setContenteditable(null,!0);var t=n._getMarkerRoot();if(t){var r=t.querySelector("svg");if(0===r.children.length||1===r.children.length&&n.domUtils.isTag(r.firstElementChild,d.TAG.TMP_TAG))return n.domUtils.remove(t),void n.req.markerStyle.fixStyle();var o=null;e||(o=n._fixTextArea(r)),n.req.markerStyle.insertTempByType("quit"),!n.env.readonly&&o&&(n.rangeUtils.setRange(o,0),n.env.client.type.isPhone||n.env.client.type.isPad?setTimeout((function(){n.domUtils.scrollIntoView(o)}),300):n.domUtils.scrollIntoView(o))}},n.hide=function(){var e=n._getMarkerRoot();e&&(n.domUtils.css(e,{display:"none"}),n.req.markerStyle.insertTempByType("hide"))},n.show=function(){n.req.markerStyle.fixStyle();var e=n._getMarkerRoot();if(e){n.domUtils.css(e,{display:null}),n.req.markerStyle.removeTempByType("hide");var t=e.querySelector("svg");if(t&&n.env.browser.isIe&&!t.style.height){var r=n._getSvgSize(t);t.style.width=r.width+"px",t.style.height=r.height+"px"}}},n.fixSvgFromHtml=function(e){return n.wizSvgPainter&&n.minArea&&(e=e.replace(/]*>.*<\/wiz_marker>/i,(function(e){return n.wizSvgPainter.editorTools.fixSvgHtmlViewBox(e,0,0,n.minArea.width,n.minArea.maxHeight)}))),e},n}var n,r,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,e),n=t,(r=[{key:"initCore",value:function(e){l(s(t.prototype),"initCore",this).call(this,e)}}])&&i(n.prototype,r),u&&i(n,u),t}(h);e.exports=m},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n-1){var f=d.doc.getElementById("wiz_"+c);f&&u.remove(f)}}r.loadJs(a,t,(function(){i.setLoading(a,!1),i.callback(a)}))}}((function(){var e=d.options.reader.timeout.mathJax;t=t||s;var r,o=!1,i=function(){t&&!o&&(t(),o=!0)};setTimeout(i,e),r=function(){d.options.reader.callback.mathJax&&d.options.reader.callback.mathJax(),i()},n.MathJax.Hub.Queue(["Typeset",n.MathJax.Hub,l,function(){r()}])}))},this.init=function(){n=e.win||d.win,a=e.doc||d.doc,l=e.container||d.body,s=e.callback}}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n0?"\\"+e:e}))]="")},n._addItemAttrToMap=function(e,t,r){if(t){var o=t.tagName.toLowerCase();if(!/^(style|script|link|meta|img)$/gi.test(o)&&!n.domUtils.hasClass(t,d.CLASS.TODO_CHECKBOX)&&!n.domUtils.hasClass(t,d.CLASS.TODO_AVATAR)){var i=t.className;if(i&&i.length>0)for(var a=i.split(" "),l=0;l0&&n._addKeyToMap("#"+n._keyFilter(c),r),e&&!/wiz[\-_]/i.test(e)?n._addKeyToMap("#"+n._keyFilter(e)+" "+o,r):n._addKeyToMap(n._keyFilter(o),r)}}},n._checkElement=function(e,t,r){if(!n.domUtils.hasClass(t,d.CLASS.TABLE_TOOLS)&&e!==d.ID.TABLE_RANGE_BORDER&&t.id!==d.ID.TABLE_RANGE_BORDER&&t.id!==d.ID.MARKER_ROOT&&!n.domUtils.hasClass(t,d.CLASS.CODE_CONTAINER)){n._addItemAttrToMap(e,t,r);for(var o=t.children,i=0;i div,")+".".concat(d.CLASS.TABLE_TOOLS," .").concat(d.CLASS.TABLE_MENU_ITEM,",")+".".concat(d.CLASS.TABLE_TOOLS," .").concat(d.CLASS.TABLE_MENU_ITEM," .").concat(d.CLASS.TABLE_MENU_BUTTON,",")+".".concat(d.CLASS.TABLE_TOOLS," .wiz-table-cell-align .wiz-table-cell-align-item,")+".".concat(d.CLASS.TABLE_TOOLS," .wiz-table-color-pad .wiz-table-color-pad-item {background-color: transparent !important;}")+".".concat(d.CLASS.TABLE_TOOLS," {background-color:#22272F !important; border-color: #3E495B !important;}")+".".concat(d.CLASS.TABLE_TOOLS," i.editor-icon {color: #97A3B8;}")+"#wiz-table-col-line, #wiz-table-row-line,#wiz-table-range-border_start_top, #wiz-table-range-border_range_top,#wiz-table-range-border_start_right, #wiz-table-range-border_range_right,#wiz-table-range-border_start_bottom, #wiz-table-range-border_range_bottom,#wiz-table-range-border_start_left, #wiz-table-range-border_range_left,#wiz-table-range-border_start_dot, #wiz-table-range-border_range_dot {background-color: #448aff !important;}"+".".concat(d.CLASS.WIZ_BODY," .wiz-select-plugin-header {background-color: transparent !important;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(d.CLASS.SELECT_PLUGIN_CONTAINER,",")+".".concat(d.CLASS.WIZ_BODY," .").concat(d.CLASS.MENU_PLUGIN_OPTIONS,",")+".".concat(d.CLASS.WIZ_BODY," .").concat(d.CLASS.MENU_PLUGIN_OPTIONS_ITEM,",")+".".concat(d.CLASS.WIZ_BODY," .wiz-select-plugin-header-text")+" {background-color:#22272F !important; border-color: #3E495B !important;color: #97A3B8 !important;box-shadow:none;}"+".".concat(d.CLASS.WIZ_BODY," .wiz-select-plugin-header {color: #97A3B8 !important;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(d.CLASS.MENU_PLUGIN_OPTIONS," .").concat(d.CLASS.MENU_PLUGIN_OPTIONS_ITEM,".selected,")+".".concat(d.CLASS.WIZ_BODY," .").concat(d.CLASS.MENU_PLUGIN_OPTIONS," .").concat(d.CLASS.MENU_PLUGIN_OPTIONS_ITEM,":hover")+" {background-color: #2E353F !important;}"+".".concat(d.CLASS.WIZ_BODY," .wiz-select-plugin-header i {border-left-color: #3E495B !important;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(d.CLASS.MENU_PLUGIN_OPTIONS," .").concat(d.CLASS.MENU_PLUGIN_OPTIONS_ITEM," div,")+".".concat(d.CLASS.WIZ_BODY," .").concat(d.CLASS.MENU_PLUGIN_OPTIONS," .").concat(d.CLASS.MENU_PLUGIN_OPTIONS_ITEM," span")+" {background-color: transparent !important;}"+".".concat(d.CLASS.WIZ_BODY," .").concat(d.CLASS.MENU_PLUGIN_OPTIONS," .").concat(d.CLASS.MENU_PLUGIN_OPTIONS_ITEM,":hover div")+" {color: #FFFFFF !important;}.wiz-content-outer {border-color: transparent !important;}"+".".concat(d.CLASS.WIZ_BODY," .").concat(d.CLASS.MENU_PLUGIN_OPTIONS_ITEM," .").concat(d.CLASS.HOTKEY_LAYER," .").concat(d.CLASS.HOTKEY," {color:").concat(r.hotkey," !important;}"),n.req.editorBridge.isOutline?o+=""+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.ROW,",")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.DOT,",")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.CONTENT,",")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.CHILD,",")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.OPERATOR_CONTAINER,",")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.OPERATOR_BAR,",")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.ROW," .").concat(u.CLASS.SWITCH,",")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.ROW," .").concat(u.CLASS.SWITCH," i.editor-icon,")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE,".").concat(u.CLASS.NODE_SHOW_MENU," .").concat(u.CLASS.NODE)+" {background-color:transparent !important;}"+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.ROW,":hover .").concat(u.CLASS.SWITCH,".active i {color:").concat(r.outline.switchHover," !important;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.DOT_ICON," {background-color:").concat(r.outline.dot," !important;}")+".".concat(d.CLASS.WIZ_BODY,".").concat(d.CLASS.EDITING," .").concat(u.CLASS.NODE," .").concat(u.CLASS.DOT,":hover {background-color:").concat(r.outline.dotHover," !important;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.CHILD," {border-color:").concat(r.outline.border," !important;;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE,".").concat(u.CLASS.COMPLETE," > .").concat(u.CLASS.ROW," .").concat(u.CLASS.CONTENT," {color:").concat(r.outline.completed," !important;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.NOTES," {color:").concat(r.outline.notes," !important;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE,".").concat(u.CLASS.NODE_SHOW_MENU," {background-color:").concat(r.outline.nodeShowMenu," !important;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE,".").concat(u.CLASS.NODE_SELECTED," {background-color:").concat(r.outline.nodeSelected," !important;}"):o+="div.wiz-code-container .CodeMirror {border: 1px solid rgba(255, 255, 255, 0.2) !important; box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2) !important;}div.CodeMirror-selected {background-color: #49483E !important;}"+".".concat(d.CLASS.WIZ_BODY," .wiz_toc_layer {background-color:").concat(r.toc.bg," !important;}")+".".concat(d.CLASS.WIZ_BODY," .wiz_toc_layer a,")+".".concat(d.CLASS.WIZ_BODY," .wiz_toc_layer a:visited,")+".".concat(d.CLASS.WIZ_BODY," .wiz_toc_layer a:active {background-color:").concat(r.toc.bg," !important; color: #448aff !important;}")+".".concat(d.CLASS.MARKDOWN_BODY," table tr {background-color:transparent !important;}")+".".concat(d.CLASS.MARKDOWN_BODY," code,")+".".concat(d.CLASS.MARKDOWN_BODY," tt {background-color:#4c3d40 !important; color:#cf506f !important;}")+".".concat(d.CLASS.WIZ_BODY," .CodeMirror-activeline .CodeMirror-activeline-gutter, ")+".".concat(d.CLASS.WIZ_BODY," #").concat(d.ID.MARKER_ROOT,", ")+".".concat(d.CLASS.WIZ_BODY," #").concat(d.ID.MARKER_ROOT," div {background-color: transparent !important;}")+".".concat(d.CLASS.WIZ_BODY," #").concat(d.ID.MARKER_ROOT,' svg *[stroke="#333333"] {stroke:#a6a6a6;}'),n.req.wizStyle.insertStyle({id:n._styleId,name:d.NAME.TMP_STYLE},o)}},n.off=function(){var e=n.env.doc.getElementById(n._styleId);e&&e.remove()},n}var n,r,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,e),n=t,(r=[{key:"initCore",value:function(e){l(s(t.prototype),"initCore",this).call(this,e)}}])&&i(n.prototype,r),f&&i(n,f),t}(f);e.exports=h},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=e._outlineUtils.getCurNodes(),r=t.getAllSelected?n.selectedAllNodes:n.selectedRootNodes;return n.focusNode?r.push(n.focusNode):n.showMenuNode&&(r.push(n.showMenuNode),t.includeShowMenuNodeChildren&&(r=r.concat(e._outlineUtils.getNodeAllChildNodes(n.showMenuNode)))),r},e._getMenuOptionsDataForDot=function(t){var n=e.env.browser.isMac?"MAC":"WIN",r=e._createOptionItem(e.lang.Outline.AddNotes,d.HOTKEY_MAP[n].ADD_NOTES),o=e._createOptionItem(e.lang.Outline.AddImage,d.HOTKEY_MAP[n].ADD_IMAGE),i=e._createOptionItem(e.lang.Common.Complete,d.HOTKEY_MAP[n].COMPLETE),a=e._createOptionItem(e.lang.Common.Delete,d.HOTKEY_MAP[n].DELETE),l=e._createOptionItem(e.lang.Outline.Duplicate,d.HOTKEY_MAP[n].DUPLICATE),s=e._createOptionItem(e.lang.Common.Indent,d.HOTKEY_MAP[n].INDENT),c=e._createOptionItem(e.lang.Common.Outdent,d.HOTKEY_MAP[n].OUTDENT),u=e._createOptionItem(e.lang.Common.UnComplete,d.HOTKEY_MAP[n].UNCOMPLETE),f=[{obj:r,value:d.MENU.ADD_NOTES},{obj:o,value:d.MENU.ADD_IMAGE},{obj:s,value:d.MENU.INDENT},{obj:c,value:d.MENU.OUTDENT},{obj:l,value:d.MENU.DUPLICATE},{obj:a,value:d.MENU.DELETE}];return e._outlineUtils.isNodeCompleted(t)?f.splice(0,0,{obj:u,value:d.MENU.UNCOMPLETE}):f.splice(0,0,{obj:i,value:d.MENU.COMPLETE}),f},e._getMenuOptionsDataForSelect=function(t){var n=e.env.browser.isMac?"MAC":"WIN",r=e._createOptionItem(e.lang.Common.Complete,d.HOTKEY_MAP[n].COMPLETE),o=e._createOptionItem(e.lang.Common.Delete,d.HOTKEY_MAP[n].DELETE),i=e._createOptionItem(e.lang.Common.UnComplete,d.HOTKEY_MAP[n].UNCOMPLETE),a=[{obj:o,value:d.MENU.DELETE}];return e._outlineUtils.isNodeCompleted(t)?a.splice(0,0,{obj:i,value:d.MENU.UNCOMPLETE}):a.splice(0,0,{obj:r,value:d.MENU.COMPLETE}),a},e._hideAllMenu=function(){e._tooltipForMinderNote&&e._tooltipForMinderNote.hide(),e._menuForDot&&e._menuForDot.hide(),e._outlineUtils.cancelSelected(),e._autoHideSelectMenu()},e._hideSelectMenu=function(){e._menuForSelected&&e._menuForSelected.hide(),e._selectStartNode=null,e._selectStartNodeTarget={},e._selectEndNode=null},e._initDragData=function(t,n,r){e._dragData={start:!1,startX:n,startY:r,startNode:t,startIsCollapsed:!0,dragContainer:null,target:null,moveX:n,moveY:r}},e._showNodeMenu=function(t){if(t){var n=e._outlineUtils.getNodeDotButton(t);e.domUtils.addClass(t,d.CLASS.NODE_SHOW_MENU);var r=e._getMenuOptionsDataForDot(t);if(e._menuForDot&&e._menuForDot.parentNode){if(e._menuForDot.show(n,r),!e._menuForDot.isShow())return void e._outlineUtils.focusNode(t)}else e._menuForDot=e.req.menuPlugin.show({data:r,target:n,layout:c.TYPE.LAYOUT.BOTTOM_START,space:8,onSelected:e._handler.onSelectedMenuForDot,onHidden:e._handler.onHiddenMenuForDot});e.rangeUtils.remove()}},e._showSelectedNodesMenu=function(){if(!e._autoHideSelectMenu())if(e.env.readonly)e.rangeUtils.remove();else{var t=e._outlineUtils.getSelectedNodes()[0],n=e._outlineUtils.getNodeRow(t),r=e._getMenuOptionsDataForSelect(t);e._menuForSelected?e._menuForSelected.show(n,r):e._menuForSelected=e.req.menuPlugin.show({data:r,target:n,autoHide:!1,onSelected:e._handler.onSelectedMenuForSelect,onHidden:e._handler.onHiddenMenuForSelect}),e.rangeUtils.remove()}},e._event={bind:function(){e._event.unbind(),e.env.event.add(c.EVENT.AFTER_RESTORE_HISTORY,e._handler.afterRestoreHistory),e.env.event.add(c.EVENT.ON_CLICK,e._handler.onClick),e.env.event.add(c.EVENT.ON_KEY_DOWN,e._handler.onKeydown),e.env.event.add(c.EVENT.ON_MOUSE_DOWN,e._handler.onMousedown),e.env.event.add(c.EVENT.ON_SELECTION_CHANGE,e._handler.onSelectionChange)},unbind:function(){e.env.event.remove(c.EVENT.AFTER_RESTORE_HISTORY,e._handler.afterRestoreHistory),e.env.event.remove(c.EVENT.ON_CLICK,e._handler.onClick),e.env.event.remove(c.EVENT.ON_KEY_DOWN,e._handler.onKeydown),e.env.event.remove(c.EVENT.ON_MOUSE_DOWN,e._handler.onMousedown),e.env.event.remove(c.EVENT.ON_SELECTION_CHANGE,e._handler.onSelectionChange)},bindDragNode:function(){e._event.unbindDragNode(),e.env.doc.addEventListener("mousemove",e._handler.onMousemoveForDrag),e.env.doc.addEventListener("mouseup",e._handler.onMouseupForDrag)},unbindDragNode:function(){e.env.doc.removeEventListener("mousemove",e._handler.onMousemoveForDrag),e.env.doc.removeEventListener("mouseup",e._handler.onMouseupForDrag)},bindSelectNodes:function(){e._event.unbindSelectNodes(),e.env.doc.addEventListener("mousemove",e._handler.onMousemoveForSelect),e.env.doc.addEventListener("mouseup",e._handler.onMouseupForSelect)},unbindSelectNodes:function(){e.env.doc.removeEventListener("mousemove",e._handler.onMousemoveForSelect),e.env.doc.removeEventListener("mouseup",e._handler.onMouseupForSelect)}},e._handler={afterRestoreHistory:function(){e._menuForDot=null,e._menuForSelected=null,e._selectStartNode=null,e._selectEndNode=null;if(e._outlineUtils.getSelectedNodes(!0).length>0)e._showSelectedNodesMenu();else{var t=e._outlineUtils.getShowMenuNode();t&&e._showNodeMenu(t)}},onClick:function(t){var n=t.target,r=e._outlineUtils.getNode(n);if(e.domUtils.getParentByClass(n,d.CLASS.SWITCH,!0))e._outlineUtils.switchNode(r,!0);else if(!e.env.readonly)if(e.domUtils.getParentByClass(n,d.CLASS.DOT,!0))e._showNodeMenu(r);else if(n===e.env.body){if(e._outlineUtils.getSelectedNodes(!0).length>0)return;var o=e._outlineUtils.getContainer(),i=e.domUtils.getPageScroll();t.clientY+i.top>o.clientHeight&&e._outlineUtils.focusLastNode()}},onKeydown:function(t){var n=t.keyCode||t.which,r=e.rangeUtils.getRange();if(r){var o=e._outlineUtils.getNode(),i=e._outlineUtils.getNodeContent(o),a=e._outlineUtils.getNodeNotes(o);if(o){var l=t.target,s=!!e._outlineUtils.getNodeContentFromDom(l),c=!s&&!!e._outlineUtils.getNodeNotesFromDom(l);if(68===n&&t.shiftKey&&(t.metaKey&&e.env.browser.isMac||t.ctrlKey&&!e.env.browser.isMac))e.req.historyUtils.saveSnap(!1),e._outlineUtils.cloneNode(o,!0);else if(46===n&&s){if(e.req.historyUtils.saveSnap(!1),!r.collapsed||!e._outlineUtils.isCaretInLast(i))return;e._outlineUtils.mergeNext()}else if(8===n){e.req.historyUtils.saveSnap(!1);var d=!1;if(r.collapsed&&(s&&e._outlineUtils.isCaretInFirst(i)?d=!0:c&&e.domUtils.isEmptyDom(a)&&(d=!0)),!d)return;if(c)e._outlineUtils.removeNotes(o),e._outlineUtils.focusNode(o,!0);else if(s)if(e._outlineUtils.isEmptyNode(o)){e.deleteNodes([o],!0)}else e._outlineUtils.mergePrevious()}else if(13===n&&(t.metaKey&&e.env.browser.isMac||t.ctrlKey&&!e.env.browser.isMac))e.req.historyUtils.saveSnap(!1),e.setCompleted(void 0,[o]);else if(13===n)if(e.req.historyUtils.saveSnap(!1),t.shiftKey){if(c)return;e.addNotes()}else if(c)e._outlineUtils.createNextNode();else{if(!o)return;var f=e._outlineUtils.getNodeContent(o);e.domUtils.isEmptyDom(f)&&e._outlineUtils.outdent()||e._outlineUtils.splitNodeFromRange()}else{if(37===n&&t.shiftKey)return;if(37===n&&r.collapsed)if(s&&e._outlineUtils.isCaretInFirst(i))e._outlineUtils.focusPreviousNode(null,!0);else{if(!c||!e._outlineUtils.isCaretInFirst(a))return;e._outlineUtils.focusNode(o,!0)}else{if(39===n&&t.shiftKey)return;if(39===n&&r.collapsed){if(!(s&&e._outlineUtils.isCaretInLast(i)||c&&e._outlineUtils.isCaretInLast(a)))return;e._outlineUtils.focusNextNode(null,!1)}else if(38===n&&t.shiftKey){if(!s||!e._outlineUtils.isCaretInFirst(i,r.startContainer,r.startOffset))return;e._selectStartNode=o,e._selectEndNode=o,e._outlineUtils.selectNodeA2B(e._selectStartNode,e._selectEndNode),e._showSelectedNodesMenu()}else if(38===n&&c){if(!e._outlineUtils.isCaretInFirst(a))return;e._outlineUtils.focusNode(o,!0)}else if(38===n&&s){if(!e._outlineUtils.focusPreviousNode(null,!1))return}else if(40===n&&t.shiftKey){if(!s||!e._outlineUtils.isCaretInLast(i,r.endContainer,r.endOffset))return;e._selectStartNode=o,e._selectEndNode=o,e._outlineUtils.selectNodeA2B(e._selectStartNode,e._selectEndNode),e._showSelectedNodesMenu()}else if(40===n&&c){if(!e._outlineUtils.isCaretInLast(a))return;e._outlineUtils.focusNextNode(o,!1)}else if(40===n&&s){if(!e._outlineUtils.focusNextNode(null,!1))return}else{if(9!==n){if(u.checkNonTxtKey(t))return;return void e.req.historyUtils.saveSnap(!1)}if(e.req.historyUtils.saveSnap(!1),c){var h=String.fromCharCode(160),p=e.env.doc.createTextNode(h+" "+h+h);r.insertNode(p),r.collapse()}else t.shiftKey?e.outdent():e.indent()}}}u.stopEvent(t)}}else e._handler.onKeydownForMultiNotes(t)},onKeydownForMultiNotes:function(t){var n=t.keyCode||t.which,r=e._outlineUtils.getShowMenuNode(),o=r?[r]:e._outlineUtils.getSelectedNodes(!0),i=r?[r]:e._outlineUtils.getSelectedNodes();if(r||0!==o.length){var a=o[0],l=o[o.length-1];if(68===n&&t.shiftKey&&r&&(t.metaKey&&e.env.browser.isMac||t.ctrlKey&&!e.env.browser.isMac))e.req.historyUtils.saveSnap(!1),e._outlineUtils.cloneNode(r,!0),e._hideAllMenu();else if(46===n&&t.shiftKey)e.req.historyUtils.saveSnap(!1),e.deleteNodes(o),e._hideAllMenu();else if(13===n&&(t.metaKey&&e.env.browser.isMac||t.ctrlKey&&!e.env.browser.isMac)){e.req.historyUtils.saveSnap(!1);var s=!e._outlineUtils.isNodeCompleted(a);e.setCompleted(s,i),e._hideAllMenu()}else if(13===n&&t.shiftKey&&r)e.addNotes([r]),e._hideAllMenu();else{if(37===n&&t.shiftKey)return;if(37===n)e._outlineUtils.focusNode(a),e._hideAllMenu();else{if(39===n&&t.shiftKey)return;if(39===n)e._outlineUtils.focusNode(l,!0),e._hideAllMenu();else if(38===n&&t.shiftKey){e._selectStartNode||(e._selectStartNode=a,e._selectEndNode=a);var c=e._outlineUtils.compareNodeIndex(e._selectStartNode,e._selectEndNode),d={includeChildren:c>0,ignoreCollapsed:!0},f=e._outlineUtils.getPreviousNode(e._selectEndNode,d),h=e._outlineUtils.compareNodeIndex(e._selectStartNode,f),p=!1;c<0&&h>0&&(p=!0,f=e._outlineUtils.getLastChildNode(f,{ignoreCollapsed:!0})),f&&(e._outlineUtils.selectNodeA2B(e._selectStartNode,f),p?(o=e._outlineUtils.getSelectedNodes(!0),e._selectEndNode=o[o.length-1]):e._selectEndNode=f,e._showSelectedNodesMenu())}else if(38===n){var m=e._outlineUtils.getPreviousNode(a,{includeChildren:!0,ignoreCollapsed:!0})||a;e._outlineUtils.focusNode(m),e._hideAllMenu()}else if(40===n&&t.shiftKey){e._selectStartNode||(e._selectStartNode=a,e._selectEndNode=a);var g={includeChildren:e._outlineUtils.compareNodeIndex(e._selectStartNode,e._selectEndNode)>0>0,ignoreCollapsed:!0},v=e._outlineUtils.getNextNode(e._selectEndNode,g);v&&(e._selectEndNode=v,e._outlineUtils.selectNodeA2B(e._selectStartNode,e._selectEndNode),e._showSelectedNodesMenu())}else if(40===n){var b=e._outlineUtils.getNextNode(l,{ignoreCollapsed:!0});b?e._outlineUtils.focusNode(b):(b=e._outlineUtils.getLastChildNode(l,{ignoreCollapsed:!0})||l,e._outlineUtils.focusNode(b,!0)),e._hideAllMenu()}else if(9===n)e.req.historyUtils.saveSnap(!1),t.shiftKey?e.outdent():e.indent();else if(u.checkNonTxtKey(t))return}}u.stopEvent(t)}},onHiddenMenuForDot:function(){if(e._menuForDot){var t=e._outlineUtils.getNode(e._menuForDot.target);e.domUtils.removeClass(t,d.CLASS.NODE_SHOW_MENU)}},onHiddenMenuForSelect:function(){},onMinderLayoutFinish:function(){e.req.minderMenu.show({onChangeTheme:function(t){e._kityminder&&(e._minderTheme=t,u.storage.set(d.STORAGE_KEY.MINDER_THEME,t),e._kityminder.useTheme(e._outlineUtils.minderThemeFilter(t)))},onChangeTemplate:function(t){e._kityminder&&(e._minderTemplate=t,u.storage.set(d.STORAGE_KEY.MINDER_TEMPLATE,t),e._kityminder.useTemplate(t))},initTheme:e._minderTheme,initTemplate:e._minderTemplate}),e._kityminder._renderTarget.addEventListener("mousedown",e._handler.onMinderMousedown),e._kityminder.execCommand("Move","auto"),e._outlineStyle.insertAfterShowMinder(),e._kityminder.off("layoutallfinish",e._handler.onMinderLayoutFinish)},onMinderHideNote:function(){},onMinderMousedown:function(t){e._tooltipForMinderNote&&(!t.minder&&e.domUtils.isParent(t.target,e._tooltipForMinderNote.target)||e._hideAllMenu())},onMinderShowNote:function(t){var n=[{disabled:!0,text:t.node.data.note,value:""}];e._tooltipForMinderNote?e._tooltipForMinderNote.show(t.icon.node,n):e._tooltipForMinderNote=e.req.menuPlugin.show({className:d.CLASS.MINDER_NOTE,data:n,target:t.icon.node,layout:c.TYPE.LAYOUT.BOTTOM,space:8,autoHide:!0,onHidden:e._handler.onMinderHideNote})},onMousedown:function(t){var n=t.target;e._menuForSelected&&e.domUtils.isParent(n,e._menuForSelected)||(e._outlineUtils.cancelSelected(),e._menuForSelected&&e._autoHideSelectMenu());var r=e._outlineUtils.getNode(n),o=!!e._outlineUtils.getNodeContentFromDom(n);return e.env.readonly&&r||o?(e._selectStartNode=r,void e._event.bindSelectNodes()):e.env.readonly?void 0:e.domUtils.getParentByClass(n,d.CLASS.DOT,!0)?(e._initDragData(r,t.clientX,t.clientY),void e._event.bindDragNode()):void 0},onMousemoveForDrag:function(t){clearTimeout(e._dragTimerForParent);var n=t.clientX,r=t.clientY;if(u.stopEvent(t),!(!e._dragData.start&&Math.abs(n-e._dragData.startX)<9&&Math.abs(r-e._dragData.startY)<9)){var o=e._dragData.startNode,i=e._dragData.dragContainer;if(!e._dragData.start){e._dragData.start=!0,e._outlineStyle.insertDragNode(),e._hideAllMenu(),e._outlineUtils.getNodeChildrenContainer(o)&&!e._outlineUtils.isCollapsed(o)&&(e._dragData.startIsCollapsed=!1,e._outlineUtils.switchNode(o,!1));var a=e._outlineUtils.cloneNode(o,!1),l=e._outlineUtils.getNodeNotes(a),s=e._outlineUtils.getNodeChildrenContainer(a);e.domUtils.remove(l),e.domUtils.remove(s),i=e._dragData.dragContainer=e.env.doc.createElement(c.TAG.TMP_TAG),e.domUtils.addClass(e._dragData.dragContainer,d.CLASS.DRAG_CONTAINER),i.appendChild(a),e.env.body.appendChild(i)}e.domUtils.css(i,{top:r+10+"px",left:n+10+"px"}),e.domUtils.isInWizTmp(t.target)||(e._dragData.target=t.target),e._dragData.moveX=t.clientX,e._dragData.moveY=t.clientY;var f=e._outlineUtils.checkDragPosition(e._dragData);f.toNode?(e._outlineUtils.isCollapsed(f.toNode)&&(e._dragTimerForParent=setTimeout((function(){e._outlineUtils.switchNode(f.toNode,!1)}),1e3)),e._createPositionFlag(f.toNode,f.isNext)):e._clearPositionFlag()}},onMousemoveForSelect:function(t){var n=t.target,r=e._outlineUtils.getNode(n),o=!0;if(e.env.readonly&&r===e._selectStartNode){var i=e.rangeUtils.getRange();if(i&&!i.collapsed){var a=i.startContainer,l=i.endContainer,s=!!e._outlineUtils.getNodeContentFromDom(a),c=!s&&!!e._outlineUtils.getNodeNotesFromDom(a);(s&&!e._outlineUtils.getNodeContentFromDom(l)||c&&!e._outlineUtils.getNodeNotesFromDom(l))&&(o=!1)}}else o=!!e._outlineUtils.getNodeContentFromDom(n);if(r===e._selectStartNode&&o)e._outlineUtils.cancelSelected();else{var d=e._outlineUtils.getContainer(),u=t.pageY;if(u<5&&(u=5),u>d.clientHeight&&(u=d.clientHeight-5),e.env.doc.elementFromPoint){var f=e.env.body.clientWidth,h=e.env.doc.elementFromPoint(f/2,u),p=e._outlineUtils.getNode(h);p&&(e._selectEndNode=p,e._outlineUtils.selectNodeA2B(e._selectStartNode,p))}}},onMouseupForDrag:function(t){clearTimeout(e._dragTimerForParent),e._clearPositionFlag();var n=e._outlineUtils.checkDragPosition(e._dragData);if(n.toNode){e.req.historyUtils.saveSnap(!1);var r=e._outlineUtils.getParentNode(e._dragData.startNode);n.isPrevious?e.domUtils.before(e._dragData.startNode,n.toNode):n.isNext&&e.domUtils.after(e._dragData.startNode,n.toNode),e._outlineUtils.clearNodeChildren(r)}var o=e._dragData.startNode;o&&!e._dragData.startIsCollapsed&&e._outlineUtils.switchNode(o,!1),e._dragData.dragContainer&&e.domUtils.remove(e._dragData.dragContainer),e._outlineStyle.removeDragNode(),e._dragData.start=!1,e._event.unbindDragNode(),e._outlineUtils.focusNode(o)},onMouseupForSelect:function(t){e._event.unbindSelectNodes(),e._showSelectedNodesMenu()},onSelectedMenuForDot:function(t,n){e.req.historyUtils.saveSnap(!1);var r=e._outlineUtils.getNode(t);n.value!==d.MENU.ADD_NOTES?n.value!==d.MENU.ADD_IMAGE?n.value!==d.MENU.DUPLICATE?n.value!==d.MENU.DELETE?(n.value===d.MENU.UNCOMPLETE?e.setCompleted(!1,[r]):n.value===d.MENU.COMPLETE?e.setCompleted(!0,[r]):n.value===d.MENU.INDENT?e.indent([r]):n.value===d.MENU.OUTDENT&&e.outdent([r]),e._outlineUtils.focusNode(r)):e.deleteNodes([r]):e._outlineUtils.cloneNode(r,!0):e.addImage(r):e.addNotes([r])},onSelectedMenuForSelect:function(t,n){e.req.historyUtils.saveSnap(!1);var r=e._outlineUtils.getSelectedNodes(!0),o=e._outlineUtils.getSelectedNodes();n.value===d.MENU.DELETE?e.deleteNodes(r):n.value===d.MENU.UNCOMPLETE?e.setCompleted(!1,o):n.value===d.MENU.COMPLETE&&e.setCompleted(!0,o),e._autoHideSelectMenu()},onSelectionChange:function(){var t=e.rangeUtils.getRange();if(t){var n=t.startContainer,r=e._outlineUtils.getNodeNotesFromDom(n);if(e._curNotes&&e._curNotes!==r&&e.domUtils.isEmptyDom(e._curNotes)){var o=e._outlineUtils.getNode(e._curNotes);e._outlineUtils.removeNotes(o)}e._curNotes=r}}},e.copySelection=function(t,n,r){var o=function(){r()};if(e.rangeUtils.getRange())o();else{var i=e._getCurNodes({getAllSelected:!1});if(0!==i.length){for(var a="",l="",s=0;s0&&(l+="\n"),a+=e._outlineUtils.exportHtml(c),l+=e._outlineUtils.exportText(c)}n&&e.deleteNodes(i),e.req.clipboardUtils.setData(t,a,l,(function(){o()})),e.env.browser.isIe||u.stopEvent(t)}else o()}},e.insert=function(t){if(!e.env.readonly&&t){e.req.historyUtils.saveSnap(!1);var n=e._outlineUtils.insertNodeFromText(t,null);n.length>0&&e._outlineUtils.focusNode(n[n.length-1],!0)}},e.on=function(){e._event.bind()},e.off=function(){e._event.unbindSelectNodes(),e._event.unbind(),e._hideAllMenu(),e.hideMinder()},e.addNotes=function(t){e.env.readonly||(t||(t=e._getCurNodes({getAllSelected:!1})),t.length>0&&(e.req.historyUtils.saveSnap(!1),e._outlineUtils.createNotes(t[0]),e._hideAllMenu()))},e.createImg=function(t){e.env.readonly||e._selectcurNodes.length>0&&(e.req.historyUtils.saveSnap(!1),e._outlineUtils.getNodeImgContainer(e._selectcurNodes[0],!0).appendChild(t),e._hideAllMenu())},e.addImage=function(t){e._selectcurNodes=e._getCurNodes({getAllSelected:!1}),e.env.options.editor.callback.onUploadImage&&e.env.options.editor.callback.onUploadImage()},e.deleteNodes=function(t,n){e.env.readonly||(t||(t=e._getCurNodes({getAllSelected:!1})),e.req.historyUtils.saveSnap(!1),e._outlineUtils.deleteNodes(t,n),e._hideAllMenu())},e.exportJson=function(t){var n={template:e._minderTemplate,theme:e._outlineUtils.minderThemeFilter(e._minderTheme),root:{data:{text:t}}},r=e._outlineUtils.getRootNodes();if(r.length>0){n.root.children=[];for(var o=0;o0)){var n=e._outlineUtils.getFirstNode();e._outlineUtils.focusNode(n)}},e.getContentFormatBlock=function(){var t=e._getCurNodes({getAllSelected:!1});return 0===t.length?"":e._outlineUtils.getNodeContent(t[0]).tagName.toLowerCase()},e.hideMinder=function(){e._hideAllMenu(),e.req.minderMenu.hide();var t=!!e._kityminder;if(t){var n=e._kityminder._renderTarget;e._kityminder.destroy(),e._kityminder=null,n.removeEventListener("mousedown",e._handler.onMinderMousedown),e.domUtils.remove(n)}e.env.options.useFrame&&e.domUtils.css(e.env.frame.bodyContainer,{height:null}),e._outlineStyle.removeShowMinder(),(t||e.env.scrollContainer._overflow)&&e.domUtils.css(e.env.scrollContainer,{overflow:e.env.scrollContainer._overflow||""}),e.req.frameViewUtils.setAdjustPause(!1),e.req.frameViewUtils.onAdjustContainerSize()},e.indent=function(t){e.env.readonly||(t||(t=e._getCurNodes({getAllSelected:!1})),t.length>0&&(e.req.historyUtils.saveSnap(!1),e._outlineUtils.indentNodes(t),e.rangeUtils.getRange()||e._outlineUtils.focusNode(t[0]),e._hideAllMenu()))},e.minderThemeRegister=function(t){e._minderThemeData=t,e.setMinderThemeData()},e.outdent=function(t){e.env.readonly||(t||(t=e._getCurNodes({getAllSelected:!1})),t.length>0&&(e.req.historyUtils.saveSnap(!1),e._outlineUtils.outdentNodes(t),e.rangeUtils.getRange()||e._outlineUtils.focusNode(t[0]),e._hideAllMenu()))},e.patchExecForFormatBlock=function(t){if(!e.env.readonly){var n=e.rangeUtils.getRange();if(n){var r=n.startContainer;if(!!e._outlineUtils.getNodeNotesFromDom(r))return}return e._getCurNodes({getAllSelected:!0,includeShowMenuNodeChildren:!0}).forEach((function(n){e._outlineUtils.setNodeFormatBlock(n,t)})),!0}},e.setCompleted=function(t,n){if(!e.env.readonly){if(n||(n=e._getCurNodes({getAllSelected:!t})),n.length>0){void 0===t&&(t=!e._outlineUtils.isNodeCompleted(n[0])),e.req.historyUtils.saveSnap(!1),e._outlineUtils.setNodesCompleted(n,t,!0)}e._hideAllMenu()}},e.setMinderThemeData=function(){if(e._kityminder)if(e._minderThemeData)e._kityminder.themeRegister("wiz",e._minderThemeData),e.userMinderTheme("wiz");else if(e.env.options.nightMode.enable){var t="";e.env.client.type.isWin?t="wiz-windows-night":e.env.client.type.isMac?t="wiz-mac-night":e.env.client.type.isIOS?t="wiz-ios-night":e.env.client.type.isAndroid&&(t="wiz-android-night"),t&&e.userMinderTheme(t)}},e.showMinder=function(t){e._hideAllMenu(),e.req.imgMenu.hide(),e.req.imgResize.hide(),e.env.scrollContainer._overflow=e.env.scrollContainer.style.overflow,e.domUtils.css(e.env.scrollContainer,{overflow:"hidden"}),e._outlineStyle.insertShowMinder(),e.env.options.useFrame&&e.domUtils.css(e.env.frame.bodyContainer,{height:e.env.scrollContainer.clientHeight+"px"}),e.req.frameViewUtils.setAdjustPause(!0),h.loadCss(e.env.doc,h.getDependencyFiles(e.env.dependency,"css","minder"));e._loadDependency((function(){var n=e.env.doc.createElement(c.TAG.TMP_TAG);e.domUtils.attr(n,{id:d.ID.MINDER_CONTAINER,type:"application/kityminder","minder-data-type":"json"});var r=e.exportJson(t);n.innerText=JSON.stringify(r),e.env.body.appendChild(n);var o={enableKeyReceiver:!e.env.supportTouchEvent,defaultTheme:"wiz"};e._kityminder=new e.env.win.kityminder.Minder(o),e._kityminder.on("layoutallfinish",e._handler.onMinderLayoutFinish),e._kityminder.on("editnoterequest",e._handler.onMinderShowNote),e._kityminder.on("contentchange",e._handler.onMinderMousedown),e._kityminder.setup("#"+d.ID.MINDER_CONTAINER),e._kityminder.execCommand("hand")}))},e.userMinderTheme=function(t){e._kityminder&&e._kityminder.execCommand("Theme",t)},e}var n,r,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),n=t,(r=[{key:"initCore",value:function(e){a(l(t.prototype),"initCore",this).call(this,e),this._outlineUtils=e.require.outlineUtils,this._outlineStyle=e.require.outlineStyle}}])&&o(n.prototype,r),f&&o(n,f),t}(p);e.exports=g},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n .").concat(u.CLASS.NODE," {margin-right:24px; margin-left:30px;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE,".").concat(u.CLASS.COLLAPSED," .").concat(u.CLASS.CHILDREN," {display:none;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.ROW," {position:relative; padding-left:26px;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.SWITCH," {width:18px; height:18px;display:flex;flex-direction: column;align-items: center;overflow: hidden;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.SWITCH," i {font-size:20px;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.SWITCH,".active {cursor:pointer;color:transparent; transition:transform 200ms ease 0s;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.ROW,":hover .").concat(u.CLASS.SWITCH,".active {color:").concat(m,"}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE,".").concat(u.CLASS.COLLAPSED," .").concat(u.CLASS.SWITCH,".active {transform:rotateZ(-90deg);}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.OPERATOR_CONTAINER," {width:36px;position:absolute; top:4px; left:-18px;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.OPERATOR_BAR," {position:absolute; top:0; left:0; right:0; bottom:0; display:flex; align-items:center; justify-content:center;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.DOT," {display:flex; align-items:center; justify-content:center; border-radius:100%; width:18px; height:18px;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE,".").concat(u.CLASS.COLLAPSED," .").concat(u.CLASS.DOT," {background-color:").concat(g,";}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.DOT_ICON," {background-color:").concat(m,"; border-radius:100%; width:6px; height:6px;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.CHILD," {margin-left:8px; border-left:1px solid ").concat(h,"; padding-left:17px;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.CONTENT," {outline:none; padding:4px 0;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," div.").concat(u.CLASS.CONTENT," {font-size:1rem;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE,".").concat(u.CLASS.COMPLETE," > .").concat(u.CLASS.ROW," .").concat(u.CLASS.CONTENT," {text-decoration:line-through;color:").concat(p,";}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.NOTES," {outline:none; font-size:.8rem; color:").concat(b,";}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE," .").concat(u.CLASS.IMAGE," {outline:none; padding-top:4px; padding-bottom:4px;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.CONTAINER," h1,")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.CONTAINER," h2,")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.CONTAINER," h3,")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.CONTAINER," h4,")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.CONTAINER," h5,")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.CONTAINER," h6 {margin:0;}"),tmp:{afterShowMinder:".".concat(d.CLASS.WIZ_BODY," #").concat(u.ID.MINDER_CONTAINER," {opacity:1;}"),common:""+".".concat(d.CLASS.WIZ_BODY,".").concat(d.CLASS.EDITING," .").concat(u.CLASS.NODE," .").concat(u.CLASS.DOT," {cursor:pointer;}")+".".concat(d.CLASS.WIZ_BODY,".").concat(d.CLASS.EDITING," .").concat(u.CLASS.NODE," .").concat(u.CLASS.DOT,":hover {background-color:").concat(v,";}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE,".").concat(u.CLASS.NODE_SHOW_MENU," {background:").concat(y,";}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.NODE,".").concat(u.CLASS.NODE_SELECTED," {background:").concat(_,";}")+".".concat(d.CLASS.WIZ_BODY," #").concat(u.ID.MINDER_CONTAINER," {position:absolute;top:0;left:0;right:0;bottom:0;z-index:1000;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(d.CLASS.MENU_PLUGIN_CONTAINER,".").concat(u.CLASS.MINDER_NOTE," .").concat(d.CLASS.MENU_PLUGIN_OPTIONS," {max-width: 500px;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(d.CLASS.MENU_PLUGIN_CONTAINER,".").concat(u.CLASS.MINDER_NOTE," .").concat(d.CLASS.MENU_PLUGIN_OPTIONS_ITEM," {white-space: normal;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.MINDER_MENU_SVG_ICON," {fill-rule:evenodd;clip-rule:evenodd;fill:currentcolor;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.MINDER_MENU_SVG_ICON_LIGHT," {opacity:0.5;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.MINDERMENU," div {margin: 0;}")+".".concat(u.CLASS.MINDERMENU," {display:none;z-index:1100;position: absolute;width: 35px;height: 32px;background-color: #fff;box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.2);border-radius: 4px;opacity: 0.98;top: 24px;right: 24px;}")+".".concat(u.CLASS.MINDERMENU,".active {display: flex;}")+".".concat(u.CLASS.MINDERMENU," .menu-item {display: flex;align-items: center;justify-content: center;flex: 1;cursor: pointer;color: #505f79;}")+".".concat(u.CLASS.MINDERMENU," .menu-item .menu-name {margin-left: 12px; font-size: 14px}")+".".concat(u.CLASS.MINDERMENU," .subMenu {background-color: #fff;box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.2);border-radius: 4px;position: absolute;top: 40px; padding: 16px;;display: none;box-sizing: border-box;right: 0px;width: 294px;}")+".".concat(u.CLASS.MINDERMENU," .subMenu.active {display: block;}")+".".concat(u.CLASS.MINDERMENU," .subMenu .submenu-group .group-title {font-size: 14px;line-height: 25px;color: #505f79;letter-spacing: 0px;}")+".".concat(u.CLASS.MINDERMENU," .subMenu .submenu-group .content-container {display: flex;}")+".".concat(u.CLASS.MINDERMENU," .subMenu .submenu-group .organization-menu .submenu-item {flex: 1; cursor: pointer;}")+".".concat(u.CLASS.MINDERMENU," .subMenu .submenu-group .organization-menu .submenu-item:not(:nth-last-child(1)) {margin-right: 30px;}")+".".concat(u.CLASS.MINDERMENU," .subMenu .submenu-group .organization-menu .submenu-item.active {color: #448aff;}")+".".concat(u.CLASS.MINDERMENU," .subMenu .submenu-group .theme-menu {flex-wrap: wrap;align-items: center;justify-content: space-between;}")+".".concat(u.CLASS.MINDERMENU," .subMenu .submenu-group .theme-menu .submenu-item{width: 128px; height: 81px;cursor: pointer;margin-bottom: 8px;box-sizing: border-box;border: 1px solid transparent;overflow: hidden;}")+".".concat(u.CLASS.MINDERMENU," .subMenu .submenu-group .theme-menu .submenu-item:nth-child(2n){marger-left: 8px;}")+".".concat(u.CLASS.MINDERMENU," .subMenu .submenu-group .theme-menu .submenu-item .theme-img{border: 1px solid #d6d9dd;width: 100%;height: 100% !important;box-sizing: border-box;margin: 0;padding: 0;display: block;}")+".".concat(u.CLASS.MINDERMENU," .subMenu .submenu-group .theme-menu .submenu-item.active{border: 2px solid #448aff}")+".".concat(u.CLASS.MINDERMENU," .subMenu .submenu-group .theme-menu .submenu-item.active .theme-img{border: none;}"),dragNode:"body {cursor: pointer}"+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.DRAG_CONTAINER," div {margin:0;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.DRAG_CONTAINER," {position:absolute;top:0;left:0;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.DRAG_CONTAINER," .").concat(u.CLASS.NODE," {border-radius: 4px;padding:0 8px;background-color:rgba(255,255,255, 0.95);box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.15);}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.DRAG_CONTAINER," .").concat(u.CLASS.NODE," .").concat(u.CLASS.SWITCH,",")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.DRAG_CONTAINER," .").concat(u.CLASS.NODE," .").concat(u.CLASS.IMAGE," {display:none;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.DRAG_CONTAINER," .").concat(u.CLASS.NODE," .").concat(u.CLASS.CONTENT," {white-space:nowrap;max-width: 150px;overflow:hidden;text-overflow: ellipsis;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.DRAG_FLAG," {background:#448aff;height:2px;width:80%;position:absolute;}")+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.DRAG_FLAG,":before {content:'';background:#448aff;border-radius:100%;width:6px;height:6px;position:absolute;top:-2px;left:0;}"),showMinder:""+".".concat(d.CLASS.WIZ_BODY," .").concat(u.CLASS.CONTAINER," {display:none;}")+".".concat(d.CLASS.WIZ_BODY," #").concat(u.ID.MINDER_CONTAINER," {opacity:0;transition: opacity 100ms;}")}},E=function(e){function t(){var e,n;o(this,t);for(var r=arguments.length,i=new Array(r),l=0;l]*>[^<>]*<\/style>/gi;e=(e=(e=(e=e.replace(/)/gi,"")).replace(/]*>/gi,"")).replace(/]*>[\s\S]*?<\/iframe>/gi,"")).replace(/]*\/>/gi,""),n.env.options.editor.type===d.NOTE_EDITOR_TYPE.MARKDOWN&&(e=(e=(e=e.replace(i,"")).replace(/(<[^>]*)(class[ ]*=[ ]*(['"])[^>]*\3)([^>]*>)/gi,"$1$4")).replace(/(<[^>]*)(id[ ]*=[ ]*(['"])[^>]*\3)([^>]*>)/gi,"$1$4"));try{t=/]*>([\s\S]*)<\/body>/gi.exec(e)}catch(e){console.error(e)}if(t){if(r=/]*>([\s\S]*)<\/head>/i.exec(e),e="",r)for(r=r[1];null!==(o=i.exec(r));)o.index===i.lastIndex&&i.lastIndex++,e+=o[0];e+=t[1]}else{for(var a=[/]*)?>/i,/]*)?>/i],l=[/<\/body>/i,/<\/html>/i],s=0,c=a.length;s"+e+""),e},n._insertTxt=function(e){var t=n.rangeUtils.getSelection(),r=e.match(/\n/g);if(r&&r.length>400){var o=u.txt2HTML(e,{wizTableSaveDom:!1});n.req.commandExtend.execCommand("insertparagraph");var i=n.rangeUtils.getRange(),a=n.env.doc.createElement("div");i.insertNode(a),a.innerHTML=o,n.rangeUtils.setRangeToEnd(a)}else e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e=u.space2HTML(e),n.req.commandExtend.execCommand("insertText",!1,e);t.collapseToEnd()},n._pasteWithStandard=function(e,t){var r,o=n.env.doc.createElement("div");n.req.amend.isAmendEditing?n.req.amend.readyForPaste():(r=n.req.amendUtils.fixedAmendRange(),n.req.amend.splitAmendDomByRange(r));var i,a,l,s,c,u,f=n.rangeUtils.getRange(),h=null;if(e)for(o.innerHTML=e,n.env.options.editor.type===d.NOTE_EDITOR_TYPE.MARKDOWN&&n.domUtils.html2Markdown(o,{}),n.req.codeUtils&&n.req.codeUtils.pastePatch.ready(o),n.req.todoUtils.pastePatch.fix(o),n._clearWidth(o),f.deleteContents(),f=n.rangeUtils.getRange(),i=n.rangeUtils.getRangeDetail(f.startContainer,f.startOffset),a=n.domUtils.getParentByTagName(i.container,["li","td","th"],!0),n.domUtils.isEmptyDom(a)?(n.rangeUtils.setRange(a,0,a,n.domUtils.getEndOffset(a)),f=n.rangeUtils.getRange()):n.domUtils.isTag(i.container,"br")&&(n.rangeUtils.setRange(i.container.parentNode,n.domUtils.getIndex(i.container)),f=n.rangeUtils.getRange()),n.domUtils.isTag(a,"li")&&1===o.childNodes.length&&n.domUtils.isTag(o.firstChild,["ul","ol"])&&(o=o.firstChild);o.firstChild;){if(f=n.rangeUtils.getRange(),i=n.rangeUtils.getRangeDetail(f.startContainer,f.startOffset),u=n.domUtils.getBlockParent(i.container,!0),(l=n.domUtils.getParentByTagName(u,["pre"],!0))&&(u=l),c=o.firstChild,/^h[1-6]$/i.test(u.tagName)&&(c.tagName===u.tagName||3===c.nodeType||n.domUtils.isTag(c,["span"])))(s=n.env.doc.createElement("span")).appendChild(n.env.doc.createTextNode(3===c.nodeType?c.nodeValue:c.innerText)),f.insertNode(s),o.removeChild(c),c=s;else if(/^h[1-6]$/i.test(u.tagName)||/^h[1-6]$/i.test(c.tagName)&&u!==n.env.body&&!n.domUtils.isParent(u,h))s=n.env.doc.createElement("span"),f.insertNode(s),u=n.domUtils.splitDomBeforeSub(u,s),n.domUtils.after(c,u),n.domUtils.isEmptyDom(u)?n.domUtils.remove(u):n.domUtils.remove(s);else if(h)n.domUtils.after(c,h);else if(n.domUtils.isTag(u,"li")&&n.domUtils.isTag(c,"li")){var p=void 0;if(n.domUtils.isEmptyDom(u))(p=u).innerHTML="";else{var m=n.env.doc.createElement("br");f.insertNode(m),p=n.domUtils.splitDomSingle(u,m),n.domUtils.remove(m)}for(;c.firstChild;)p.appendChild(c.firstChild);n.domUtils.remove(c),c=p}else f.insertNode(c);n.env.options.editor.type===d.NOTE_EDITOR_TYPE.MARKDOWN&&(n._clearTable(c),c=n._transformDomToSpan(c)),n.rangeUtils.setRangeToEnd(c),h=c}else n._insertTxt(t)},n._clearTable=function(e){if(1===e.nodeType){var t=function(e){for(var t=0;t=0;l--)o(a++,r[l],n);for(var s=e.querySelectorAll("a"),c=s.length-1;c>=0;c--)o(a++,s[c],t);e.innerText=e.innerText.trim();var d=e.innerHTML;e.innerHTML=i(i(d,t),n)},o=function(e,t,r){r[e="$$_WIZ_"+(new Date).valueOf()+"_"+e+"_$$"]=t.outerHTML;var o=n.env.doc.createTextNode(e);n.domUtils.after(o,t),n.domUtils.remove(t)},i=function(e,t){for(var n in t)e=e.replace(n,t[n]);return e};t(e.querySelectorAll("td")),t(e.querySelectorAll("th"))}},n._clearWidth=function(e){for(var t=e.querySelectorAll("[style]"),r=t.length-1;r>=0;r--){var o=t[r];if(!o.getAttribute(d.ATTR.SPAN)&&!n.domUtils.isTag(o,["td","table"]))o.style.width&&(o.style.width=null)}},n._transformDomToSpan=function(e){if(1!==e.nodeType)return e;var t=function(e){for(var t=[],r=e.length-1;r>=0;r--){for(var o=e[r],i=n.env.doc.createElement("span");o.firstChild;)i.appendChild(o.firstChild);n.domUtils.before(i,o),n.domUtils.remove(o),t.push(i)}return t};return t(e.querySelectorAll("strong")),t(e.querySelectorAll("u")),t(e.querySelectorAll("i")),t(e.querySelectorAll("b")),n.domUtils.isTag(e,["u","i","b","strong"])&&(e=t([e])[0]),e},n._pasteWithTable=function(e,t){var r,o,i,a,l,s,c,d,u,f,h,p,m,g=n.rangeUtils.getRange(),v=n.req.tableZone.getZone();if(e?((r=n.req.tableUtils.getTemplateByHtmlForPaste(e)).isHtml=!0,n.req.codeUtils&&n.req.codeUtils.pastePatch.ready(r.pasteDom,!0)):t&&!n.req.tableZone.isSingleCell()?(r=n.req.tableUtils.getTemplateByTxtForPaste(t)).isHtml=!0:r={isTable:!1,isHtml:!1,pasteDom:n.env.doc.createElement("div")},r.isTable){for(n._clearWidth(r.pasteDom),i=n.req.tableUtils.getTableGrid(r.pasteDom),s=i.length,l=i[0]?i[0].length:0,d=v.grid.length-v.range.minY-s,c=v.grid[0].length-v.range.minX-l,p=d;p<0;p++)n.req.tableCore.insertRow(!1);for(h=c;h<0;h++)n.req.tableCore.insertCol(!1);v=n.req.tableZone.getZone(),e?(f=Math.max(v.range.minY+s-1,v.range.maxY),u=Math.max(v.range.minX+l-1,v.range.maxX)):(f=v.range.minY+s-1,u=v.range.minX+l-1),n.req.tableUtils.eachRange(v.grid,{minY:v.range.minY,maxY:f,minX:v.range.minX,maxX:u},(function(e){if(!e.fake)if(m=e.cell,a=i[(e.y-v.range.minY)%s][(e.x-v.range.minX)%l],n.req.amend.isAmendEditing){if(n.rangeUtils.setRange(m,0,m.lastChild,n.domUtils.getEndOffset(m.lastChild)),n.req.amendUtils.removeSelection(n.req.amendUser.getCurUser()),n.req.amendUtils.removeUserDel(m,n.req.amendUser.getCurUser()),a.fake)return;if(n.domUtils.isEmptyDom(m))m.innerHTML=a.cell.innerHTML;else for(;a.cell.firstChild;)m.appendChild(a.cell.firstChild);n.req.amend.fixPaste(m.firstChild,m.lastChild,n.req.amendUser.getCurUser())}else m.innerHTML=a.fake?"":a.cell.innerHTML})),n.req.tableZone.setStart(v.grid[v.range.minY][v.range.minX].cell).setEnd(v.grid[f][u].cell)}else!g&&v.range&&(o=v.grid[v.range.minY][v.range.minX].cell,n.req.tableZone.setStart(o).setEnd(o),n.rangeUtils.setRange(o,0,o.lastChild,n.domUtils.getEndOffset(o.lastChild))),n._pasteWithStandard(e,t)},n.paste=function(e,t){var r=n.req.editorBridge;if(r.isOutline)r.bridge.editor.insert(t);else{e=n._clearClipHtml(e),e=u.replaceSpecialChar(e),t=u.replaceSpecialChar(t);var o=n.rangeUtils.getRange(),i=n.req.tableZone.getZone();if((o||i.table||i.range)&&(e||t)){if(o){var a=n.req.codeUtils&&n.req.codeUtils.getContainerFromChild(o.startContainer);if(a)return void n.req.codeUtils.insertCodeSrc(a,t)}n.req.historyUtils.saveSnap(!1),i.table||i.range?n._pasteWithTable(e,t):n._pasteWithStandard(e,t),n.domUtils.fixList(),n.req.svgClick.fixSvgId(),n.req.todoUtils.oldPatch.fixOldTodo(),n.req.todoUtils.fixNewTodo();var l=function(){n.req.codeUtils&&(n.rangeUtils.caretBackup(),n.req.codeUtils.pastePatch.fix(),n.rangeUtils.caretRestore())};if(n.req.codeCore&&!n.req.codeCore.hasLoaded)n.req.codeCore.on({},l);else{for(var s=n.req.codeUtils?n.req.codeUtils.oldPatch.fixOldCode():[],c=0;c-1&&(t=l.substr(0,a.startOffset),i=l.substr(a.startOffset),t=t.replace(r.FILL_CHAR_REG,""),i=i.replace(r.FILL_CHAR_REG,""),e.nodeValue=t+i,n.setRange(e,t.length))}},this.collapse=function(e){var t=n.getRange();t&&!t.collapsed&&(e?n.setRange(t.startContainer,t.startOffset):n.setRange(t.endContainer,t.endOffset))},this.compare=function(e,t){return!(!e||!t)&&(e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset)},this.fixRange=function(e){var t=!e.startDom.parentNode,r=!e.endDom.parentNode,o=s.isSelfClosingTag(e.endDom);t&&s.isSelfClosingTag(e.startDomBak)&&(e.startDomBak=s.getNextNode(e.startDomBak,!1,e.endDomBak),e.startOffsetBak=0),r&&s.isSelfClosingTag(e.endDomBak)&&(e.endDomBak=s.getPreviousNode(e.endDomBak,!1,e.startDomBak),e.endOffsetBak=s.getEndOffset(e.endDomBak)),n.setRange(t?e.startDomBak:e.startDom,t?e.startOffsetBak:e.startOffset,r||o?e.endDomBak:e.endDom,r||o?e.endOffsetBak:e.endOffset)},this.fixRangeSpan=function(){var e=n.getRange();if(e&&!e.collapsed){for(var t=n.getRangeDomList({noSplit:!0}),r=0;r0&&(e.top=e.top+c.topOriginal),o=c.top,i=c.left,a.options.useFrame&&(u=a.body.parentElement.scrollTop,e.top-=o);var f=(parseInt(s.getComputedStyle(a.doc.body,"line-height"),10)||27)+8,h=a.client.type.isPhone?1.5:3,p=0,m=!1,g=null,v=null;if(e.top<0)g=o+e.top-30;else if(e.top+e.height+u>t.height-f*(h-.5)){p=f*h,g=o+e.top+e.height+u-t.height+p;var b="."+r.CLASS.EDITING+"."+r.CLASS.WIZ_BODY+" {margin-bottom: "+p+"px;}";a.client.type.isWeb||a.client.type.isIOS||d.getStyleById(r.ID.BODY_TMP_BOTTOM_STYLE,a.doc)||(m=!0,d.insertCustomStyle(r.ID.BODY_TMP_BOTTOM_STYLE,b,!0))}e.leftt.width&&(v=i+e.left+e.width-t.width);var y=function(){a.client.type.isWeb||a.client.type.isIOS?s.setPageScrollTop(g):s.setPageScrollTopAni(g)};if(null!==g&&(a.client.type.isIOS&&(g-=c.toolbarVisibleHeight),n.clearScrollTimer(),m?n.scrollTimer=setTimeout((function(){y()}),200):y()),null!==v&&s.setPageScrollLeft(v),!a.compositionStart&&a.doc.querySelector("#"+r.ID.BODY_TMP_BOTTOM_STYLE)){s.css(a.doc.body,{minHeight:"0"});var _=a.doc.body.clientHeight;s.css(a.doc.body,{minHeight:null}),a.doc.body.clientHeight-_>3*f&&d.removeStyleById(r.ID.BODY_TMP_BOTTOM_STYLE)}}}),30)},this.getFragmentForCopy=function(){var e=n.getRange(),t=null;return!e||e.collapsed?t:((t=a.doc.createElement("div")).appendChild(e.cloneContents()),s.fragmentFilterForCopy(t),s.css(t,{position:"absolute",top:"-99999px",left:"-99999px",overflow:"hidden"}),a.body.appendChild(t),t)},this.getRange=function(){var e=n.getSelection();try{if(!e||0===e.rangeCount)return null}catch(e){return null}var t,r=e.getRangeAt(0);r.startContainer!==a.body||0!==r.startOffset||!r.collapsed||a.body.firstChild&&!s.isInWizTmp(a.body.firstChild)||((t=a.doc.createElement("div")).appendChild(a.doc.createElement("br")),a.body.insertBefore(t,a.body.firstChild),n.setRange(t,0));var o=n.getRangeDetail(r.startContainer,r.startOffset);return s.isInWizBody(o.container)||(r=null),r},this.getRangeAnchor=function(e){var t=n.getRange();if(!t)return null;var r=e?t.startContainer:t.endContainer,o=e?t.startOffset:t.endOffset;return t.collapsed||e?3===r.nodeType&&o0?r:3===r.nodeType?s.getPreviousNode(r,!1,null):o>0?s.getLastDeepChild(r.childNodes[o-1]):s.getPreviousNode(r,!1,null)},this.getRangeClientRect=function(){var e=n.getRange();if(!e)return null;var t,r,o=e.getBoundingClientRect();(0===o.width&&0===o.height&&(t=n.getRange().getClientRects()).length>0&&(o=t[0]),0===(o={bottom:o.bottom,height:o.height,left:o.left,right:o.right,top:o.top,width:o.width}).width&&0===o.height)&&((r=n.getRangeDetail(e.startContainer,e.startOffset).container).getBoundingClientRect&&(o={bottom:(o=r.getBoundingClientRect()).bottom,height:o.height,left:o.left+o.width,right:o.right,top:o.top,width:0}));return 0===o.top&&0===o.left&&0===o.width&&0===o.height?null:o},this.getRangeDetail=function(e,t){var n=!1;return t>0&&t===s.getEndOffset(e)?(1===e.nodeType&&(e=s.getLastDeepChild(e.childNodes[t-1]),t=s.getEndOffset(e)),n=!0):1===e.nodeType&&(0===e.childNodes.length||t0?r=s.getLastDeepChild(o.endDom.childNodes[o.endOffset-1]):1===o.endDom.nodeType&&(r=s.getPreviousNode(o.endDom,!1,null)),o.isStart=o.startDom===e||o.startDom===t,o.isEnd=o.endDom===e||o.endDom===r,o},this.modifyCaretStyle=function(e,t){var o,i,a,l,c=n.getSelection(),d=c.focusNode,u=!0;for(i in 3===d.nodeType&&(d=d.parentNode),e)e.hasOwnProperty(i)&&"string"==typeof i&&(a=e[i],d.style[i]!==a&&(u=!1));if(!u){var f=d;if(s.isTag(d,"span")&&s.isEmptyDom(d)){if(s.modifyStyle(d,e,t),l=d,o=c.getRangeAt(0)){var h=(f=o.startContainer).childNodes.length;1===f.nodeType&&o.startOffset0&&o-1&&""===a.replace(r.FILL_CHAR_REG,"")&&n.modify("extend",c,"character"))},this.setRange=function(e,t,r,o){if(e||r){var i=s.getEndOffset(e),l=s.getEndOffset(r);t<0?t=0:t>i&&(t=i),o<0?o=s.getEndOffset(r):o>l&&(o=l);var c,d=n.getSelection();if(e||(e=a.body,t=0),a.browser.isIe&&n.remove(),0===d.rangeCount){(c=a.doc.createRange()).selectNode(e);try{d.addRange(c)}catch(e){return void console.error(e)}}try{d.collapse(e,t),!r||r===e&&o===t||d.extend(r,o)}catch(e){console.log(e)}}},this.setRangeToEnd=function(e){var t=s.getLastDeepChild(e),r=s.getEndOffset(t);s.isSelfClosingTag(t)&&(t=t.parentNode,r=s.getIndex(e)+1),n.setRange(t,r)},this.getEventCaretRange=function(e){var t,n=e.clientX||0,r=e.clientY||0;if(a.doc.body.createTextRange)(t=a.doc.body.createTextRange()).moveToPoint(n,r);else if(void 0!==a.doc.createRange)if(void 0!==e.rangeParent)(t=a.doc.createRange()).setStart(e.rangeParent,e.rangeOffset),t.collapse(!0);else if(a.doc.caretPositionFromPoint){var o=a.doc.caretPositionFromPoint(n,r);(t=a.doc.createRange()).setStart(o.offsetNode,o.offset),t.collapse(!0)}else a.doc.caretRangeFromPoint&&(t=a.doc.caretRangeFromPoint(n,r));return t},this.selectRange=function(e){if(e)if(void 0!==e.select)e.select();else if(void 0!==window.getSelection){var t=n.getSelection();t.removeAllRanges(),t.addRange(e)}}}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n]*)opacity:[ ]*0;?/gi,"$1"),n.env.frame.toolbarContainer&&n.env.options.document!==n.env.doc&&f.loadCss(n.env.options.document,[n.env.dependency.files.css.fonts]),f.loadCss(n.env.doc,[n.env.dependency.files.css.fonts]),n.req.wizStyle.insertTmpReaderStyle()},n._setDomReadOnly=function(e,t){for(var r=n.env.body.getElementsByTagName(e),o=0;o)/gi.test(n._noteSrc)||(n._noteSrc=d.EMPTY_NOTE_TEMPLATE.replace("${body}",n._noteSrc.escapeReplace())),n.env.doc.body.style.overflow="hidden",void setTimeout((function(){n.env.doc.open("text/html","replace"),n.env.doc.write(n._noteSrc),n.env.doc.close(),n.env.body=n.env.doc.body,n.domUtils.attr(n.env.body,{spellcheck:"false"}),u.run(n.env.win),n.env.scrollContainer=n.domUtils.getScrollContainer(),t()}),0);n.env.body.innerHTML=n._noteSrc,n.domUtils.removeClass(n.env.body,d.CLASS.MARKDOWN_BODY)}else n.domUtils.removeByTag(d.TAG.TMP_TAG),n._setDomReadOnly("input",!1),n._setDomReadOnly("textarea",!1);t()}else t()},n.offEvent=function(){n.req.highlightUtils.off(),n.req.readerCommonEvent.off(),n.req.blockCore.off(),n.req.todoCore&&n.req.todoCore.off(),n.req.codeCore&&n.req.codeCore.off(),n.req.tableCore.off(),n.req.menuPlugin.off(),n.req.selectPlugin.off(),n.req.imgCore.off(),n.req.markerCore.off(),n.req.frameViewCore.off()},n.on=function(e,t){var r=n.domUtils.getPageScroll().top,o=function(){!1!==n.env.readonly&&n._afterRender((function(){n.env.client.type.isPhone||n.env.client.type.isPad||n.domUtils.setPageScrollTop(r),n.env.body.style.opacity="1",n.req.nightModeUtils&&n.req.nightModeUtils.on(),n.req.lazyLoadUtils.init(),t()}))};n.req.editorBridge.editorUtils.initWizDocument((function(){n.env.isWizTemplate&&n.env.win.WizTemplate&&n.env.win.WizTemplate.off(),n.req.editorCommon.off(),n._componentOn(),n.req.amendInfo.on(),n.env.isWizTemplate&&n.env.win.WizTemplate&&n.env.win.WizTemplate.on(!0),n.req.markdownRender&&n.env.options.reader.type===d.NOTE_READER_TYPE.MARKDOWN?n._noteSrcIsText?n.req.markdownRender.do({container:n.env.body,markdownSrc:n._noteTextSrc},o):n.req.markdownRender.do({container:n.env.body},o):n.req.mathJaxRender&&n.env.options.reader.type===d.NOTE_READER_TYPE.MATHJAX?n.req.mathJaxRender.do({container:n.env.body},o):o()}))},n}var n,r,h;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,e),n=t,(r=[{key:"initCore",value:function(e){l(s(t.prototype),"initCore",this).call(this,e)}},{key:"noteSrcIsText",get:function(){return this._noteSrcIsText},set:function(e){this._noteSrcIsText=e}},{key:"noteTextSrc",get:function(){return this._noteTextSrc},set:function(e){this._noteTextSrc=e}}])&&i(n.prototype,r),h&&i(n,h),t}(n(2));e.exports=h},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n=0;r--){var o=t[r];n.domUtils.removeClass(o,h),o.menu&&o.menu.hide(),n.env.event.call(d.EVENT.ON_SELECT_PLUGIN_HIDE,o)}},selectOption:function(e,t){e&&!t.disabled&&(n._selectUtils.showHead(e,t),n._selectUtils.hideOptions(e),n.env.event.call(d.EVENT.ON_SELECT_PLUGIN_CHANGE,e))},showHead:function(e,t){if(!(e.selectType===d.SELECT_PLUGIN.TYPE.ICON)){var r=n._selectUtils.getHeaderText(e);r&&(r.textContent=t.text)}e.value=t.value},showOptions:function(e){var t=n._selectUtils.getContainerFromDom(e);n.domUtils.hasClass(t,h)?n._selectUtils.hideOptions(t):(n._selectUtils.hideOptions(),n.domUtils.addClass(t,h),t.menu?t.menu.show():t.menu=n.req.menuPlugin.show({type:t.optionsType,data:t.optionsData,defaultValue:t.defaultValue,target:t,className:d.CLASS.SELECT_PLUGIN_MENU+" "+t.menuClassName,onSelected:n._selectUtils.selectOption}),n.env.event.call(d.EVENT.ON_SELECT_PLUGIN_SHOW,t))}},n.on=function(){n._event.bind()},n.off=function(){n._event.unbind()},n.create=function(e){var t=e.optionsData,r=e.className,o=e.defaultValue,i=e.type,a=i===d.SELECT_PLUGIN.TYPE.ICON,l=n.env.doc.createElement("div"),s=n.env.doc.createElement("div"),c=a?null:n.env.doc.createElement("span"),u=n.env.doc.createElement("i");c&&s.appendChild(c),s.appendChild(u),l.appendChild(s),l.selectType=i,l.hideOptions=function(){n._selectUtils.hideOptions(l)},l.optionsType=e.optionsType||d.MENU_PLUGIN.TYPE.SELECT,l.optionsData=e.optionsData,l.defaultValue=e.defaultValue,l.menuClassName=e.menuClassName;var f=a?"icon-more editor-icon":"icon-down_arrow editor-icon";n.domUtils.addClass(u,f),c&&n.domUtils.addClass(c,d.CLASS.SELECT_PLUGIN_HEADER_TEXT),n.domUtils.addClass(s,d.CLASS.SELECT_PLUGIN_HEADER),n.domUtils.addClass(l,d.CLASS.SELECT_PLUGIN_CONTAINER+" "+r+" "+i),n.domUtils.attr(l,{onselectstart:"return false;"});for(var h=0,p=t.length;hc.maxY||(a.maxY=c.maxY&&a.maxX>c.maxX))&&(s=f,c=a))}n._tableZone.setEnd(s),n._menuMotheds.remove(),n._menuMotheds.show()}else n._tableZone.clear()}else n._tableZone.clear()},onDragStart:function(e){n.domUtils.getParentByTagName(e.target,"table",!0,null)&&u.stopEvent(e)},onKeyDown:function(e){var t=n.rangeUtils.getSelection(),r=n._tableZone.getZone();if(n.env.browser.isIe)return!0;if(!r.range||!t)return!0;var o,i,a,l,s,c,d,f=e.shiftKey?"extend":"move",h=e.keyCode||e.which,p=!1,m=t.focusNode;switch(h){case 37:e.ctrlKey||e.metaKey||!m||(p=!0,n.rangeUtils.modify(f,"backward","character")),o={x:-1,y:0};break;case 38:e.ctrlKey||e.metaKey||!m||(p=!0,n.rangeUtils.modify("move","backward","line")),o={x:0,y:-1};break;case 9:e.shiftKey||(o={x:1,y:0,canChangeRow:!0});break;case 39:e.ctrlKey||e.metaKey||!m||(p=!0,n.rangeUtils.modify(f,"forward","character")),o={x:1,y:0};break;case 13:if(!e.ctrlKey&&!e.metaKey)break;case 40:e.ctrlKey||e.metaKey||!m||(p=!0,n.rangeUtils.modify("move","forward","line")),o={x:0,y:1}}if(p){if(i=t.focusNode,m=n.domUtils.getParentByTagName(m,["td","th"],!0,null),(i=n.domUtils.getParentByTagName(i,["td","th"],!0,null))&&i!==m&&(38===h||40===h||13===h?p=!1:n._tableZone.setStart(i).setEnd(i)),p)return c=n._tableUtils.checkCaretInTableContainer(e),i||c.tableContainer?c.before&&(n.rangeUtils.setRange(r.start.cell,0),n._tableZone.setStart(r.start.cell).setEnd(r.start.cell)):(n._tableZone.clear(),n._menuMotheds.show()),u.stopEvent(e),!1;if(38===h&&r.start.cell===r.end.cell&&0===r.start.y_src){for(a=r.start.x,i=n.domUtils.getPreviousNode(n._tableUtils.getContainer(m));i&&!n.domUtils.isTag(i,"br")&&n.domUtils.isEmptyDom(i);)i=n.domUtils.getPreviousNode(i);return i?(n._tableZone.clear(),n._menuMotheds.show(),(d=n.req.codeUtils&&n.req.codeUtils.getContainerFromChild(i))?n.req.codeUtils.focusToLast(d.codeMirror):(n.rangeUtils.setRange(i,n.domUtils.getEndOffset(i)),0!==a||n.domUtils.getParentByTagName(i,["table"],!0,null)||n.rangeUtils.modify("move","backward","lineboundary"),n.rangeUtils.fixScroll())):(n.rangeUtils.setRange(r.start.cell,0),n._tableZone.setStart(r.start.cell).setEnd(r.start.cell)),u.stopEvent(e),!1}if(40===h&&r.start.cell===r.end.cell&&r.start.y_src+r.start.cell.rowSpan>=r.grid.length){for(a=r.start.x,i=n.domUtils.getNextNode(n._tableUtils.getContainer(m));i&&!n.domUtils.isTag(i,"br")&&n.domUtils.isEmptyDom(i);)i=n.domUtils.getNextNode(i);return i?(n._tableZone.clear(),n._menuMotheds.show(),(d=n.req.codeUtils&&n.req.codeUtils.getContainerFromChild(i))?n.req.codeUtils.focusToFirst(d.codeMirror):(n.rangeUtils.setRange(i,n.domUtils.getEndOffset(i)),0!==a||n.domUtils.getParentByTagName(i,["table"],!0,null)||n.rangeUtils.modify("move","backward","lineboundary"),n.rangeUtils.fixScroll())):n._tableZone.setStart(r.start.cell).setEnd(r.start.cell),u.stopEvent(e),!1}}if(o){if(l=e.shiftKey&&r.end||r.start,(s=n._tableZone.switchCell(l,o))===l)return u.stopEvent(e),!1;if(s)return e.shiftKey?n._tableZone.setEnd(s.cell,!0):n._tableZone.setStart(s.cell,s.x,s.y).setEnd(s.cell),n.rangeUtils.fixScroll(),u.stopEvent(e),!1}return!0},onKeyUp:function(e){var t=e.keyCode||e.which;if(!(!n.env.browser.isMac&&(e.ctrlKey&&65===t||17===t)||n.env.browser.isMac&&(e.metaKey&&65===t||91===t||93===t))){var r,o=n._tableZone.getZone(),i=n.rangeUtils.getRange();!o.range&&i&&i.collapsed&&(r=n.domUtils.getParentByTagName(i.startContainer,["td","th"],!0,null))&&(n._tableZone.setStart(r).setEnd(r),n._menuMotheds.show()),n._tableUtils.fixSelection(e)}},onMouseDown:function(e){if("mousedown"!==e.type||0===e.button||1===e.button){var t=n._tableUtils.isMenu(e.target),r=n._tableUtils.isBar(e.target);if(!t&&!r){n._menuMotheds.setMenuPos("end");var o=n.domUtils.getParentByTagName(e.target,["th","td"],!0,null),i=o?n.domUtils.getParentByTagName(o,"table",!1,null):null,a=n._tableUtils.getMousePosition(e,i),l=n._tableZone.isZoneBorder(e);if(l.isBodyBorder||l.isContainer)n.env.client.type.isPhone||n.env.client.type.isPad||u.stopEvent(e);else{if(!n.env.client.type.isPhone&&!n.env.client.type.isPad){if(l.isRight)return void n._tableZone.startDragColLine(e.target,a.x);if(l.isBottom)return void n._tableZone.startDragRowLine(e.target,a.y);if(l.isDot)return}l.isBorder||l.isScroll||(n._tableZone.setStart(o),n._menuMotheds.show())}}}else n._menuMotheds.hide()},onMouseOver:function(e){var t=n.domUtils.getParentByTagName(e.target,["td","th"],!0,null);n._tableZone.modify(t)},onMouseUp:function(e){if(n._tableUtils.fixSelection(e),"mouseup"!==e.type||0===e.button||1===e.button){var t;if(!n._tableZone.getZone().active){if(n._tableUtils.isMenu(e.target))return;if((t=n._tableZone.isZoneBorder(e)).isRight&&!n._tableZone.isRangeActiving())return;if(t.isBottom&&!n._tableZone.isRangeActiving())return;if(t.isDot)return;if(t.isBorder||t.isScroll)return}var r=n.domUtils.getParentByTagName(e.target,["td","th"],!0,null);n._tableZone.setEnd(r)}},onSelectionChange:function(e){var t,r,o=n._tableUtils.checkCaretInTableContainer(e),i=n.rangeUtils.getRange();i&&!i.collapsed&&((r=n._tableUtils.getContainer(i.startContainer))&&n._tableUtils.moveOutFromTableContainer(r),(r=n._tableUtils.getContainer(i.endContainer))&&n._tableUtils.moveOutFromTableContainer(r));var a=n._tableZone.getZone();if(n.env.browser.isIe&&!a.active&&(i=n.rangeUtils.getRange())&&i.collapsed){var l=n.domUtils.getParentByTagName(i.startContainer,["td","th"],!0,null);if(a.range&&a.start.cell===l)return;l?(n.env.event.setPause(d.EVENT.ON_SELECTION_CHANGE,!0),n._tableZone.setStart(l).setEnd(l),n._menuMotheds.show(),setTimeout((function(){n.env.event.setPause(d.EVENT.ON_SELECTION_CHANGE,!1)}),10)):(n.env.event.setPause(d.EVENT.ON_SELECTION_CHANGE,!0),n._menuMotheds.hide(),n._tableZone.clear(),setTimeout((function(){n.env.event.setPause(d.EVENT.ON_SELECTION_CHANGE,!1)}),10))}else o.tableContainer&&a.table&&!a.table.parentNode?(n._menuMotheds.hide(),n._tableZone.clear()):o.tableContainer&&!a.range&&(t=o.tableContainer.querySelectorAll("td"),(t=o.this&&o.this._tableMenu||o.after?t[t.length-1]:o.before?t[0]:null)&&(n._tableZone.setStart(t).setEnd(t),n._menuMotheds.show()))}},n._menuMotheds={remove:function(){n._tableMenu&&n._tableMenu.remove()},show:function(){n._tableMenu&&n._tableMenu.show()},hide:function(){n._tableMenu&&n._tableMenu.hide()},setMenuPos:function(e){n._tableMenu&&n._tableMenu.setMenuPos(e)}},n.on=function(){n.env.readonly||n._event.bind(),n._tableUtils.fixTable(),n._tableUtils.initTableContainer(null),n._tableZone.clear()},n.off=function(){n._tableZone.clear(),n._event.unbind()},n.canCreateTable=function(){return n._tableUtils.canCreateTable(n._tableZone.getZone())},n.clearCellValue=function(){var e=n._tableZone.getZone();e.range&&(n.req.historyUtils.saveSnap(!1),n._tableUtils.clearCellValue(e.grid,e.range))},n.deleteCols=function(){var e=n._tableZone.getZone();if(e.range)if(0!==e.range.minX||e.range.maxX!==e.grid[0].length-1){n.req.historyUtils.saveSnap(!1);for(var t=e.range.maxX;t>=e.range.minX;t--)n._tableUtils.deleteCols(e.grid,t);n._tableZone.clear()}else n.deleteTable()},n.deleteRows=function(){var e=n._tableZone.getZone();if(e.range)if(0!==e.range.minY||e.range.maxY!==e.grid.length-1){n.req.historyUtils.saveSnap(!1);for(var t=e.range.maxY;t>=e.range.minY;t--)n._tableUtils.deleteRows(e.grid,t);n._tableZone.clear()}else n.deleteTable()},n.deleteTable=function(){var e=n._tableZone.getZone();if(e.table){n.req.historyUtils.saveSnap(!1);var t,r=e.table.parentNode;r&&r.removeChild(e.table),n._menuMotheds.remove(),n._tableZone.remove(),(r=n.domUtils.getParentByFilter(r,(function(e){return n.domUtils.hasClass(e,d.CLASS.TABLE_CONTAINER)}),!0))&&(r.parentNode===n.env.body?(t=n.env.doc.createElement("div")).appendChild(n.env.doc.createElement("br")):t=n.env.doc.createElement("br"),n.domUtils.before(t,r),n.domUtils.remove(r),n.rangeUtils.setRange(t,0))}},n.distributeCols=function(){var e=n._tableZone.getZone();e.range&&(n.req.historyUtils.saveSnap(!1),n._tableUtils.distributeCols(e.table,e.grid),n._tableZone.updateGrid())},n.insertCol=function(e){var t=n._tableZone.getZone();t.range&&(n.req.historyUtils.saveSnap(!1),n._tableUtils.insertCol(t.grid,e?t.range.minX:t.range.maxX+1),n._tableZone.updateGrid())},n.insertRow=function(e){var t=n._tableZone.getZone();t.range&&(n.req.historyUtils.saveSnap(!1),n._tableUtils.insertRow(t.grid,e?t.range.minY:t.range.maxY+1),n._tableZone.updateGrid())},n.insertTable=function(e,t){n.req.historyUtils.saveSnap(!1);var r,o,i,a,l=n.rangeUtils.getRange();n.canCreateTable()&&(l&&(l.deleteContents(),o=n.rangeUtils.getRangeDetail(l.startContainer,l.startOffset),(o=n.domUtils.getBlockParent(o.container,!0))&&o!==n.env.body&&n.domUtils.isEmptyDom(o)&&n.domUtils.isTag(o,"div")&&(i=o,o.innerHTML="")),a=n._tableUtils.createTable(e,t),(i=i||n.env.doc.createElement("div")).appendChild(a),i.parentNode||(i=n.req.blockUtils.insertBlock(a)),n._tableUtils.initTableContainer(a),n._tableUtils.fixTableWidth(a),r=a.querySelector("td"),n._tableZone.setStart(r).setEnd(r),n.env.event.call(d.EVENT.UPDATE_TABLE_RENDER))},n.merge=function(){var e=n._tableZone.getZone();if(e.range){n.req.historyUtils.saveSnap(!1);var t=n._tableUtils.mergeCell(e.grid,e.range);t&&(n._tableZone.updateGrid(),n._tableZone.setStart(t).setEnd(t))}},n.modifySelectionBlock=function(e){var t=n.rangeUtils.getRange(),r=n._tableZone.getZone();return!(t&&!t.collapsed||!r.range)&&(n._tableUtils.modifySelectionBlock(r,e),!0)},n.modifySelectionDom=function(e,t){var r=n.rangeUtils.getRange(),o=n._tableZone.getZone();return!(r&&!r.collapsed||!o.range)&&(n._tableUtils.modifySelectionDom(o,e,t),!0)},n.onKeyDown=n._handler.onKeyDown,n.setCellAlign=function(e,t){var r=n._tableZone.getZone();r.range&&(n.req.historyUtils.saveSnap(!1),n._tableUtils.setCellAlign(r.grid,r.range,{align:e,valign:t}),n._tableZone.setStartRange())},n.setCellBg=function(e){var t=n._tableZone.getZone();t.range&&(n.req.historyUtils.saveSnap(!1),n._tableUtils.setCellBg(t.grid,t.range,e),n._tableZone.setStartRange())},n.split=function(){var e=n._tableZone.getZone(),t=n._tableUtils.splitCell(e.table,e.grid,e.range);t&&(n.req.historyUtils.saveSnap(!1),n._tableZone.updateGrid(),e=n._tableZone.getZone(),n._tableZone.setStart(e.grid[t.minY][t.minX].cell).setEnd(e.grid[t.maxY][t.maxX].cell))},n}var n,r,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,e),n=t,(r=[{key:"initCore",value:function(e){l(s(t.prototype),"initCore",this).call(this,e),this._tableMenu=e.require.tableMenuList,this._tableUtils=e.require.tableUtils,this._tableZone=e.require.tableZone}}])&&i(n.prototype,r),f&&i(n,f),t}(n(2));e.exports=f},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n'),r=0;r";for(var o=0;o',n+='
',n+=0===r&&0===o?'':'
'),n+="";n+=""}return n+=""}}},{id:f,name:this.lang.Table.CellAlign,isHover:!0,subMenu:{type:E,list:[{type:d.TYPE.TABLE.SET_CELL_ALIGN,icon:"icon-valign_top",name:this.lang.Table.AlignTop,attr:{"data-align-type":"valign","data-align-value":S[0]}},{type:d.TYPE.TABLE.SET_CELL_ALIGN,icon:"icon-valign_middle",name:this.lang.Table.AlignMiddle,attr:{"data-align-type":"valign","data-align-value":S[1]}},{type:d.TYPE.TABLE.SET_CELL_ALIGN,icon:"icon-valign_bottom",name:this.lang.Table.AlignBottom,attr:{"data-align-type":"valign","data-align-value":S[2]}}]}},{id:m,type:d.TYPE.TABLE.DISTRIBUTE_COLS,name:this.lang.Table.DistributeCols},{id:p,type:d.TYPE.TABLE.MERGE_CELL,name:this.lang.Table.MergeCell,isSplit:!0},{id:_,type:d.TYPE.TABLE.SPLIT_CELL,name:this.lang.Table.SplitCell,isSplit:!0},{id:g,type:d.TYPE.TABLE.CLEAR_CELL,name:this.lang.Table.ClearCell},{id:v,type:d.TYPE.TABLE.DELETE_ROW,isHover:!0,name:this.lang.Table.DeleteRow},{id:b,type:d.TYPE.TABLE.DELETE_COL,isHover:!0,name:this.lang.Table.DeleteCol},{id:y,type:d.TYPE.TABLE.DELETE_TABLE,name:this.lang.Table.DeleteTable}]}},{key:"_createdMenuBtn",value:function(){var e=this.env.doc.createElement(d.TAG.TMP_TAG);return this.domUtils.addClass(e,d.CLASS.TABLE_TOOLS),e.innerHTML=''),this._createdMenuList(),e}},{key:"_createdDeleteZone",value:function(){var e=this.env.doc.createElement(d.TAG.TMP_TAG);return this.domUtils.addClass(e,d.CLASS.TABLE_DELETE_ZONE),e}},{key:"_createdMenuList",value:function(){var e=this,t=this.req.tooltip.create();this._menuListDom=t.container,this._showMenuFn=function(){return t.show(e._menuBtnDom,d.TYPE.LAYOUT.BOTTOM_START,{x:!0,y:!1},e._zone.table.parentNode)},this._hideMenuFn=t.hide,this.domUtils.addClass(this._menuListDom,d.CLASS.TOOL_TIP),this.domUtils.addClass(this._menuListDom,N),this._menuListDom.innerHTML="".concat(this._meunList.reduce((function(t,n){return t+'
  • ').concat(n.name,"").concat(n.subMenu?'':"").concat(n.subMenu?e._createdSubMenu(n.subMenu):"","
  • ")}),"
      "),"
    ")}},{key:"showMenu",value:function(){if(null!==this._menuBtnDom){null===this._menuListDom&&(this._menuListDom=this._menuBtnDom.querySelector(".".concat(N)));var e=this._tableUtils.canMerge(this._zone.grid,this._zone.range),t=this._menuListDom.querySelector("[data-type="+d.TYPE.TABLE.MERGE_CELL+"]"),n=this._menuListDom.querySelector("[data-type="+d.TYPE.TABLE.DISTRIBUTE_COLS+"]"),r=this._tableUtils.canSplit(this._zone.grid,this._zone.range),o=this._menuListDom.querySelector("[data-type="+d.TYPE.TABLE.SPLIT_CELL+"]");t&&e?t.style.display="block":t&&(t.style.display="none"),this._zone.range.maxX!==this._zone.range.minX?n.style.display="block":n.style.display="none",o&&r?o.style.display="block":o&&(o.style.display="none"),this._showMenuFn&&this._showMenuFn()}}},{key:"hideMenu",value:function(){null!==this._menuBtnDom&&(null===this._menuListDom&&(this._menuListDom=this._menuBtnDom.querySelector(".".concat(N))),this._hideMenuFn&&this._hideMenuFn())}},{key:"switchMenu",value:function(){null!==this._menuBtnDom&&(null===this._menuListDom&&(this._menuListDom=this._menuBtnDom.querySelector(".".concat(N))),"block"!==this._menuListDom.style.display?this.showMenu():this.hideMenu())}},{key:"_createdSubMenu",value:function(e){if(e.render)return e.render();if(e.list&&e.list.length){var t='
    ');return t+="
      ".concat(e.list.reduce((function(e,t){return e+'
    • ').concat(t.name,"
    • ")}),""),"
    "),"".concat(t,"
    ")}}},{key:"_getPositionObj",value:function(e,t){var n=this.domUtils.getRelativePosition(e,t);return{top:n.y+10+"px",left:n.x+e.offsetWidth-7+"px"}}},{key:"show",value:function(){var e=this;if(!this.env.client.type.isPhone&&!this.env.client.type.isPad&&(this._zone=this._tableZone.getZone(),this._selectCells=this._tableZone.getSelectedCells(),this.hide(),this._zone.grid&&this._zone.range&&0!==this._selectCells.length)){var t=this.domUtils.getParentByFilter(this._zone.table,(function(t){return e.domUtils.hasClass(t,d.CLASS.TABLE_BODY)}),!1);this._menuBtnDom=t.querySelector(".".concat(d.CLASS.TABLE_TOOLS)),null===this._menuBtnDom&&(this._menuBtnDom=this._createdMenuBtn(),this.domUtils.setContenteditable(this._menuBtnDom,!1),t.appendChild(this._menuBtnDom),this._event.bind()),this._deleteZoneDom=t.querySelector("."+d.CLASS.TABLE_DELETE_ZONE),this._deleteZoneDom||(this._deleteZoneDom=this._createdDeleteZone(),t.appendChild(this._deleteZoneDom)),this.domUtils.css(this._menuBtnDom,this._getPositionObj(this._selectCells[this._isFrist?0:this._selectCells.length-1],t)),this._menuBtnDom.style.display="block"}}},{key:"hide",value:function(){null!==this._menuBtnDom&&(this.hideMenu(),this._menuBtnDom.style.display="none",this._deleteZoneDom.style.display="none")}},{key:"remove",value:function(){null!==this._menuBtnDom&&(this._event.unbind(),this.domUtils.remove(this._menuBtnDom),this.domUtils.remove(this._deleteZoneDom),this._menuBtnDom=null,this._menuListDom=null,this._deleteZoneDom=null)}},{key:"setMenuPos",value:function(e){this._isFrist="frist"===e}}])&&i(n.prototype,r),u&&i(n,u),t}(u);e.exports=L},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n0?s.after=!0:s.before=!0)),s)},n.clearCellValue=function(e,t){e&&t&&n.eachRange(e,t,(function(e){e.fake||(e.cell.innerHTML="
    ")}))},n.cloneCell=function(e,t){var r=n.env.doc.createElement(e.tagName);return r.style.cssText=e.style.cssText,t?r.innerHTML="
    ":(r.colSpan=e.colSpan,r.rowSpan=e.rowSpan,r.innerHTML=e.innerHTML),r},n.createCell=function(e){var t=n.env.doc.createElement("td"),r={align:"left",valign:"middle"};return e&&(r.style="width:"+e+"px"),n.domUtils.attr(t,r),t.appendChild(n.env.doc.createElement("br")),t},n.createTable=function(e,t){if(e&&t){for(var r=n.env.doc.createElement("table"),o=n.env.doc.createElement("tbody"),i=0;ie[0].length)){for(var r=n.domUtils.getParentByTagName(e[0][0].cell,"table",!1,null),o=[],i=n.env.options.table.colWidth,a=0;a1?(l.cell.colSpan--,o.push(l.cell)):l.y_src===a&&(i=n.getCellWidth(l.cell),l.cell.parentElement.removeChild(l.cell)),e[a].splice(t,1)}for(var s=0;se.length)){for(var r=n.domUtils.getParentByTagName(e[0][0].cell,"table",!1,null),o=r.rows,i=e[t].length-1;i>=0;i--){var a=e[t][i];if(a.x_src===i&&a.y_src1&&t+1=0;i--)for(var a=r[i].cells.length-1;a>=0;a--){var l=r[i].cells[a];l.style.width=o*l.colSpan+"px"}e.style.width=e.offsetWidth+"px"}}},n.eachRange=function(e,t,n){if(e&&t&&n&&"function"==typeof n)for(var r=!0,o=t.minY;!1!==r&&o=0||(n.fixColTimer&&clearTimeout(n.fixColTimer),n.fixColTimer=setTimeout((function(){var a=i;e.style.width=t+"px";for(var l=0,s=r.length;li){e.style.width=t-i+a+"px";for(var f=0,h=r.length;f=0;r--){var o=t[r];n.domUtils.isInWizTmp(o)||e(n.domUtils.getParentByTagName(o,["tr"],!1))}},n.fixTableWidth=function(e){if(e){for(var t=e.rows,r=0,o=0;o0)return n.cells[0];n=n.nextElementSibling}return null},n.getNextCellDataInRow=function(e,t){if(!e)return null;for(var n=t;nl&&g"),o=i(d,s);for(var p=0;p0||m>0}}}}}return a},n.getTemplateByHtmlForPaste=function(e){var t,r,o=!1,i=n.env.doc.createElement("div");if(i.innerHTML=e,n.domUtils.childNodesFilter(i),1===(t=i.querySelectorAll("table")).length){var a=t[0];n.domUtils.remove(a),n.domUtils.isEmptyDom(i)?(o=!0,r=a):i.innerHTML=e}if(!o){for(var l=(t=i.querySelectorAll("table")).length-1;l>=0;l--){var s=t[l];n.domUtils.before(n.env.doc.createTextNode(s.innerText),s),n.domUtils.remove(s)}for(var c=i.childNodes.length-1;c>=0;c--){var d=i.childNodes[c];1!==d.nodeType&&3!==d.nodeType&&n.domUtils.isEmptyDom(d)&&i.removeChild(d)}r=i}return{isTable:o,pasteDom:r}},n.getTemplateByTxtForPaste=function(e){var t=(e=(e||"").trim()).split(/\r?\n/),r=n.env.doc.createElement("table"),o=n.env.doc.createElement("tbody"),i=0;r.appendChild(o);for(var a=0;a=0;t--)for(var n=e.rows[t].cells.length-1;n>=0;n--){var r=e.rows[t].cells[n];r.style.width=r.offsetWidth+"px"}e.style.width=e.offsetWidth+"px"},n.initTableContainer=function(e){for(var t=e?[e]:n.env.body.querySelectorAll("."+d.CLASS.WIZ_BODY+" table"),r=function(e,t){var r=e.parentNode;if(t(r)){if(n.domUtils.isTag(r,"blockquote")){var o=r;r=n.env.doc.createElement("div"),n.domUtils.before(r,o),r.appendChild(e),n.domUtils.remove(o)}}else r=n.env.doc.createElement("div"),n.domUtils.before(r,e),r.appendChild(e);return r},o=0,i=t.length;ot?o=(r=e[d][t]).cell:(r=null,o=null),o&&o!==c&&r.x_srct?t:e.length-1,a=e[i],l=0;lt&&s.y_src1&&(r.style.width=s.cell.offsetWidth/s.cell.colSpan+"px"),o.appendChild(r))}var c=n.domUtils.getParentByTagName(e[0][0].cell,"table",!1,null).rows[i],d=c.parentElement;e.length<=t&&(c=null),d.insertBefore(o,c)}},n.isMenu=function(e){return!!e&&!!n.domUtils.getParentByFilter(e,(function(e){return n.domUtils.hasClass(e,d.CLASS.TABLE_TOOLS)||n.domUtils.hasClass(e,d.CLASS.TOOL_TIP)}),!0)},n.mergeCell=function(e,t){if(!n.canMerge(e,t))return null;var r=t.maxY-t.minY+1,o=t.maxX-t.minX+1,i=e[t.minY][t.minX].cell,a=n.env.doc.createElement("div");for(n.eachRange(e,t,(function(e){if(!e.fake&&e.cell!==i){if(!n.domUtils.isEmptyDom(e.cell))for(a.lastChild&&a.appendChild(n.env.doc.createElement("br"));e.cell.firstChild;)a.appendChild(e.cell.firstChild);n.domUtils.remove(e.cell)}}));a.firstChild;)i.appendChild(a.firstChild);return i.rowSpan=r,i.colSpan=o,i.style.width=i.offsetWidth+"px",i},n.modifySelectionBlock=function(e,t){n.eachRange(e.grid,e.range,(function(e){e.fake||n.domUtils.modifyBlockStyle(e.cell,t)})),n.env.event.call(d.EVENT.UPDATE_TABLE_RENDER)},n.modifySelectionDom=function(e,t,r){var o=t["text-align"]||null,i=t["text-valign"]||null;delete t["text-align"],delete t["text-valign"],n.eachRange(e.grid,e.range,(function(e){if(!e.fake){var o=[];e.cell.childNodes.length>0&&(o.push(e.cell),n.domUtils.modifyNodesStyleAndClear(n.getDomsByCellList(o),t,r,[]))}})),(o||i)&&n.setCellAlign(e.grid,e.range,{align:o,valign:i}),n.env.event.call(d.EVENT.UPDATE_TABLE_RENDER)},n.moveOutFromTableContainer=function(e){if(e){var t=function(e,t){if(e&&t){for(var r=e===t,o=t.childNodes,i=e,a=o.length-1;a>=0;a--){var l=o[a],s=!1,c=!1;1!==l.nodeType||!(r&&n.domUtils.hasClass(l,d.CLASS.TABLE_BODY)||!r&&n.domUtils.isTag(l,["table",d.TAG.TMP_TAG]))||c?n.domUtils.hasClass(l,d.CLASS.TABLE_TOOLS)||n.domUtils.hasClass(l,d.CLASS.TABLE_DELETE_ZONE)||n.domUtils.hasClass(l,d.CLASS.TABLE_BAR)||(n.domUtils.before(l,i,!s),s&&(i=l)):(n.domUtils.hasClass(l,d.CLASS.TABLE_BODY)||n.domUtils.isTag(l,"table"))&&(s=!0,c=!0)}0===t.childNodes.length&&n.domUtils.remove(e)}};t(e,e),t(e,e.querySelector("."+d.CLASS.TABLE_BODY))}},n.setCellAlign=function(e,t,r){if(e&&t){var o={};null!=r.align&&(o.align=r.align||"left"),null!=r.valign&&(o.valign=r.valign||"middle"),n.eachRange(e,t,(function(e){e.fake||(o.align&&n.domUtils.css(e.cell,{textAlign:""}),o.valign&&n.domUtils.css(e.cell,{textValign:""}),n.domUtils.attr(e.cell,o))}))}},n.setCellBg=function(e,t,r){e&&t&&("transparent"===(r=r||"").toLowerCase()&&(r=""),n.eachRange(e,t,(function(e){e.fake||(n.domUtils.css(e.cell,{backgroundColor:r}),e.cell.setAttribute("data-background-color",r))})))},n.setColWidth=function(e,t,r,o){o=function(){for(var e=o,i=0;i=0;t--)n.domUtils.removeClass(e[t],[u.CLASS.SELECTED_CELL,u.CLASS.SELECTED_CELL_MULTI])},n._colLineRender=function(e){if(n._zone.table){var t=n._getRangeBorder(),r=t.colLine.minLeft;e1?" "+u.CLASS.SELECTED_CELL_MULTI:""))},n._event={bind:function(){n._event.unbind(),n.env.event.add(u.EVENT.ON_SELECTION_CHANGE,n._handler.onSelectionChange),n.env.event.add(u.EVENT.UPDATE_TABLE_RENDER,n._handler.updateRender);var e=n._tableUtils.getTableBody(n._zone.table);e&&e.addEventListener("scroll",n._handler.onScroll),n._zone.table&&(n._zone.table.addEventListener("DOMSubtreeModified",n._handler.onDomModified),n.env.event.add(u.EVENT.ON_RESIZE,n._handler.onDomModified)),n.env.client.type.isPhone||n.env.client.type.isPad,n.env.supportTouchEvent||(n.env.event.add(u.EVENT.ON_MOUSE_DOWN,n._handler.onBarStartMove),n._locationBarDom.container&&(n._locationBarDom.row.addEventListener("mouseover",n._handler.onPointMouseOver),n._locationBarDom.col.addEventListener("mouseover",n._handler.onPointMouseOver),n._locationBarDom.all.addEventListener("mouseover",n._handler.onPointMouseOver),n._locationBarDom.addBtn.addEventListener("mouseout",n._handler.onPointMouseOut),n._locationBarDom.addBtn.addEventListener("click",n._handler.addBtnClick))),n.env.event.add(u.EVENT.AFTER_RESTORE_HISTORY,n._handler.onAfterRestoreHistory)},unbind:function(){n.env.event.remove(u.EVENT.ON_SELECTION_CHANGE,n._handler.onSelectionChange),n.env.event.remove(u.EVENT.UPDATE_TABLE_RENDER,n._handler.updateRender);var e=n._tableUtils.getTableBody(n._zone.table);e&&e.removeEventListener("scroll",n._handler.onScroll),n._zone.table&&(n._zone.table.removeEventListener("DOMSubtreeModified",n._handler.onDomModified),n.env.event.remove(u.EVENT.ON_RESIZE,n._handler.onDomModified)),n.env.event.remove(u.EVENT.ON_TOUCH_START,n._handler.onBarStartMove),n.env.event.remove(u.EVENT.ON_MOUSE_DOWN,n._handler.onBarStartMove),n.env.supportTouchEvent||(n.env.event.remove(u.EVENT.ON_TOUCH_START,n._handler.onBarStartMove),n.env.event.remove(u.EVENT.ON_MOUSE_DOWN,n._handler.onBarStartMove),n._locationBarDom.container&&(n._locationBarDom.row.removeEventListener("mouseover",n._handler.onPointMouseOver),n._locationBarDom.col.removeEventListener("mouseover",n._handler.onPointMouseOver),n._locationBarDom.all.removeEventListener("mouseover",n._handler.onPointMouseOver),n._locationBarDom.addBtn.removeEventListener("mouseout",n._handler.onPointMouseOut),n._locationBarDom.addBtn.removeEventListener("click",n._handler.addBtnClick))),n.env.event.remove(u.EVENT.AFTER_RESTORE_HISTORY,n._handler.onAfterRestoreHistory)},bindStopSelectStart:function(){n._event.unbindStopSelectStart(),n.env.event.add(u.EVENT.ON_SELECT_START,n._handler.onStopSelectStart)},unbindStopSelectStart:function(){n.env.event.remove(u.EVENT.ON_SELECT_START,n._handler.onStopSelectStart)},bindDragLine:function(){n._event.unbindDragLine(),n._event.bindStopSelectStart(),n.env.event.add(u.EVENT.ON_MOUSE_MOVE,n._handler.onDragLineMove),n.env.event.add(u.EVENT.ON_MOUSE_UP,n._handler.onDragLineEnd)},unbindDragLine:function(){n._event.unbindStopSelectStart(),n.env.event.remove(u.EVENT.ON_MOUSE_MOVE,n._handler.onDragLineMove),n.env.event.remove(u.EVENT.ON_MOUSE_UP,n._handler.onDragLineEnd)}},n._handler={onDragLineMove:function(e){var t=n._getRangeBorder(),r=n._tableUtils.getMousePosition(e,n._zone.table);"block"===t.colLine.style.display?n._colLineRender(r.x-t.colLine.startMouse+t.colLine.startLine):n._rowLineRender(r.y-t.rowLine.startMouse+t.rowLine.startLine)},onDragLineEnd:function(e){n._event.unbindDragLine();var t,r=n._getRangeBorder(),o=n._tableUtils.getMousePosition(e,n._zone.table),i="block"===r.colLine.style.display,a="block"===r.rowLine.style.display;r.colLine.style.display="none",r.rowLine.style.display="none",n.req.historyUtils.saveSnap(!1),i&&r.colLine.startMouse!==o.x?(t=r.colLine.cellData)&&(n._tableUtils.initTable(n._zone.table),n._tableUtils.setColWidth(n._zone.table,n._zone.grid,t.x,o.x-r.colLine.startMouse)):a&&r.rowLine.startMouse!==o.y&&(t=r.rowLine.cellData)&&(n._tableUtils.initTable(n._zone.table),n._tableUtils.setRowHeight(n._zone.table,n._zone.grid,t.y,o.y-r.rowLine.startMouse)),r.colLine.cellData=null,r.colLine.minLeft=null,r.colLine.startLine=null,r.colLine.startMouse=null,r.rowLine.cellData=null,r.rowLine.minTop=null,r.rowLine.startLine=null,r.rowLine.startMouse=null,n.env.supportTouchEvent||n.locationBarRander(),n.env.event.call(u.EVENT.UPDATE_TABLE_RENDER)},onSelectionChange:function(e){n.env.browser.isIe||n._isStartFocus()||(n.rangeUtils.remove(),f.stopEvent(e))},onDomModified:function(e){var t=e&&"DOMSubtreeModified"===e.type&&1===e.target.nodeType&&e.target.querySelector("img");n._domModifiedTimer&&clearTimeout(n._domModifiedTimer),n._domModifiedTimer=setTimeout((function(){n.env.event.call(u.EVENT.UPDATE_TABLE_RENDER,e,t,!0)}),100)},onStopSelectStart:function(e){return f.stopEvent(e),!1},updateRender:function(e,t,r){n._updateRenderTimes=0,function e(t,r){n._rangeRender(r),t&&n._updateRenderTimes<60&&(n._updateRenderTimer&&clearTimeout(n._updateRenderTimer),n._updateRenderTimer=setTimeout((function(){n._updateRenderTimes++,e(t,r)}),500))}(t,r)},onBarStartMove:function(e){if((0===e.button||1===e.button)&&n.domUtils.hasClass(e.target,v)){var t=e.target.getAttribute("data-type"),r=parseInt(e.target.getAttribute("data-index")),o=n._zone.grid;switch(n._unBorder=!0,n._tableMenu.setMenuPos("frist"),t){case g:var i=o.length-1;n.setStart(o[0][0].cell).setEnd(o[i][o[i].length-1].cell);break;case m:n.setStart(o[0][r].cell).setEnd(o[o.length-1][r].cell);break;case p:n.setStart(o[r][0].cell).setEnd(o[r][o[r].length-1].cell)}n.domUtils.hasClass(e.target,b)&&(n._moveType=t,n._moveInitIndex=r,n._moveType&&!isNaN(n._moveInitIndex)&&(n.env.event.add(u.EVENT.ON_MOUSE_MOVE,n._handler.onBarMove),n.env.event.add(u.EVENT.ON_MOUSE_UP,n._handler.onBarEndMove)))}else n._unBorder=!1},onBarMove:function(e){var t=e.target.getAttribute("data-type");if(n._moveType){var r=parseInt(e.target.getAttribute("data-index"));if(t===n._moveType&&n._moveIndex!==r){var o=n._zone.grid,i=Math.min(n._moveInitIndex,r),a=Math.max(n._moveInitIndex,r);n._moveType===m?n.setStart(o[0][i].cell,void 0,void 0,!0).setEnd(o[o.length-1][a].cell):n._moveType===p&&n.setStart(o[i][0].cell,void 0,void 0,!0).setEnd(o[a][o[a].length-1].cell),n._moveIndex=r}}},onBarEndMove:function(e){n._moveType&&void 0!==n._moveInitIndex&&(n.env.event.remove(u.EVENT.ON_MOUSE_MOVE,n._handler.onBarMove),n.env.event.remove(u.EVENT.ON_MOUSE_UP,n._handler.onBarEndMove),n._moveType="")},addBtnClick:function(){n.req.historyUtils.saveSnap(!1);var e=n._zone.grid,t=parseInt(n._locationBarDom.addBtn.getAttribute("data-add-index"));n._locationBarDom.addBtn.getAttribute("data-add-type")===p?n._tableUtils.insertRow(e,t):n._tableUtils.insertCol(e,t),n.updateGrid()},addBtnMouseDown:function(e){return f.stopEventDefault(e)},onPointMouseOver:function(e){if(n.domUtils.hasClass(e.target,u.CLASS.TABLE_LINE_POINT)){var t=parseInt(e.target.getAttribute("data-index")),r=e.target.getAttribute("data-type"),o=n.env.body.querySelector(".".concat(u.CLASS.TABLE_CONTAINER)),i=n.domUtils.getRelativePosition(e.target,o,!0);n._locationBarDom.addBtn.setAttribute("data-add-type",r),n._locationBarDom.addBtn.setAttribute("data-add-index",t),r===m?(n.domUtils.css(n._locationBarDom.addBtn,{left:"".concat(i.x+u.CSS.TABLECOMPONENT.PADDING,"px"),top:"-10px",transform:"rotate(45deg)",display:"block"}),n.domUtils.css(n._locationBarDom.line,{width:"2px",height:"".concat(n._zone.table.offsetHeight+16,"px"),left:"".concat(i.x+u.CSS.TABLECOMPONENT.PADDING+11,"px"),top:"11px",display:"block"})):(n.domUtils.css(n._locationBarDom.addBtn,{top:"".concat(i.y-2,"px"),left:"-10px",transform:"rotate(-45deg)",display:"block"}),n.domUtils.css(n._locationBarDom.line,{height:"2px",width:"".concat(Math.min(n._zone.table.offsetWidth-n._zone.table.parentNode.scrollLeft,n._zone.table.parentNode.offsetWidth)+16,"px"),top:"".concat(i.y+9,"px"),left:"12px",display:"block"})),f.stopEvent(e)}},onPointMouseOut:function(){setTimeout((function(){n._locationBarDom.addBtn.style.display="none",n._locationBarDom.line.style.display="none"}))},onAfterRestoreHistory:function(){n._locationBarDom.container=null,n._createdLocationBar(),n._locationBarDom.line.style="none",n._locationBarDom.addBtn.style="none",n._event.bind()},onScroll:function(e){e.target.scrollLeft?n.domUtils.css(n._locationBarDom.container.querySelector(".bar-box-shadow"),{opacity:1}):n.domUtils.css(n._locationBarDom.container.querySelector(".bar-box-shadow"),{opacity:0})}},n.clear=function(){if(n._zone.active=!1,n._zone.start=null,n._zone.end=null,n._zone.range=null,n._zone.grid=null,n.env.body.querySelector("table")){n._rangeRender();var e=n._getRangeBorder();e.colLine.style.display="none",e.rowLine.style.display="none",n._locationBarDom.container&&(n._locationBarDom.container.style.display="none"),n._locationBarDom.col&&(n._locationBarDom.col.style.display="none"),n._zone.table=null,n._event.unbind()}return l(n)},n.getFragmentForCopy=function(){var e=null;if(!n._zone.range)return e;var t=n.env.doc.createElement("table"),r=n.env.doc.createElement("tbody");t.appendChild(r);for(var o=n._zone.range.minY;o<=n._zone.range.maxY;o++){for(var i=n.env.doc.createElement("tr"),a=n._zone.range.minX;a<=n._zone.range.maxX;a++){var l=n._zone.grid[o][a];if(!l.fake){var s=n._tableUtils.cloneCell(l.cell,!1);i.children.length>0&&i.appendChild(n.env.doc.createTextNode("\t")),i.appendChild(s)}}i.appendChild(n.env.doc.createTextNode("\n")),r.appendChild(i)}return(e=n.env.doc.createElement("div")).appendChild(t),e},n.getSelectedCells=function(){return n._tableUtils.getCellsByRange(n._zone.grid,n._zone.range)},n.getZone=function(){return{active:n._zone.active,table:n._zone.table,start:n._zone.start,end:n._zone.end,range:n._zone.range,grid:n._zone.grid}},n.isRangeActiving=function(){return n._zone.start&&n._zone.active},n.isSingleCell=function(){if(!n._zone.grid||!n._zone.range)return!1;var e=n._zone.grid[n._zone.range.minY][n._zone.range.minX],t=n._zone.grid[n._zone.range.maxY][n._zone.range.maxX],r=n._zone.start;return e.cell===t.cell&&t.cell===r.cell},n.isZoneBorder=function(e){var t,r,o,i=e.target,a=e.offsetX,l=e.offsetY,s=f.getEventClientPos(e),c=!1,d=!1,h=!1,p=!1,m=!1,g=!!n.domUtils.getParentByFilter(i,(function(e){return e&&1===e.nodeType&&(e.id===u.ID.TABLE_RANGE_BORDER+"_start_dot"||e.id===u.ID.TABLE_RANGE_BORDER+"_range_dot")}),!0);if(g||(h=!!n.domUtils.getParentByFilter(i,(function(e){return!(!e||1!==e.nodeType||e.id!==u.ID.TABLE_RANGE_BORDER+"_start_right"&&e.id!==u.ID.TABLE_RANGE_BORDER+"_range_right")||!(!e||1!==e.nodeType||!n.domUtils.isTag(e,["td","th"]))&&(t=e.offsetWidth-4,r=e.offsetWidth+4,a>=t&&a<=r);var t,r}),!0)),g||h||(p=!!n.domUtils.getParentByFilter(i,(function(e){return!(!e||1!==e.nodeType||e.id!==u.ID.TABLE_RANGE_BORDER+"_start_bottom"&&e.id!==u.ID.TABLE_RANGE_BORDER+"_range_bottom")||!(!e||1!==e.nodeType||!n.domUtils.isTag(e,["td","th"]))&&(t=e.offsetHeight-4,r=e.offsetHeight+4,l>=t&&l<=r);var t,r}),!0)),p||g||h||(d=!!n.domUtils.getParentByFilter(i,(function(e){return e&&1===e.nodeType&&e.id===u.ID.TABLE_RANGE_BORDER}),!0)),!(p||g||h||d||(m=!!n._tableUtils.getContainerExcludeTable(i))||i!==n.env.body)){t=n.env.win.getComputedStyle(i);var v=n.domUtils.getOffset(n.env.body);r=parseInt(t.paddingLeft),o=parseInt(t.paddingRight),c=s.x-v.x<=r||s.x-v.x>=n.env.body.offsetWidth-o}return{isBodyBorder:c,isBorder:d,isBottom:p,isContainer:m,isDot:g,isRight:h,isScroll:(e.target.clientWidth>0&&e.target.clientWidth0&&e.target.clientHeight=e.offsetX||e.target.offsetHeight>=e.offsetY)}},n.modify=function(e){if(!n._zone.active||!e)return l(n);var t=n.domUtils.getParentByTagName(e,["table"],!0,null);if(!t||t!==n._zone.table)return l(n);var r=n._tableUtils.getCellData(n._zone.grid,e);n._zone.range=n._tableUtils.getRangeByCellsData(n._zone.grid,n._zone.start,r),n._zone.end=r,n._rangeRender();var o=n._tableUtils.getTableBody(n._zone.table);return n.domUtils.addClass(o,u.CLASS.TABLE_MOVING),l(n)},n.remove=function(){n.clear();var e,t=n._getRangeBorder();t&&(e=t.container.parentNode)&&e.removeChild(t.container)},n.setEnd=function(e,t){t&&(n._zone.active=!0),n.modify(e),n._zone.active=!1,n.setStartRange(),n.env.event.call(u.EVENT.ON_SELECTION_CHANGE,null);var r=n._tableUtils.getTableBody(n._zone.table);return n.domUtils.removeClass(r,u.CLASS.TABLE_MOVING),l(n)},n.setStart=function(e,t,r){if(!e)return n.clear(),l(n);var o=n.domUtils.getParentByTagName(e,["table"],!0,null);if(!o||n.domUtils.isInWizTmp(o))return n.clear(),l(n);if(o!==n._zone.table&&(n.clear(),n._initZone(o)),n._zone.active=!0,n._zone.end=null,n._zone.start=n._tableUtils.getCellData(n._zone.grid,e),void 0!==t&&"undefined"!=typeof curY)try{var i=n._zone.grid[curY][t];i&&i.cell===n._zone.start.cell&&(n._zone.start=i)}catch(e){}return n._zone.range=n._tableUtils.getRangeByCellsData(n._zone.grid,n._zone.start,n._zone.start),n._rangeRender(),n.domUtils.scrollIntoView(n._zone.start.cell),n._event.bind(),l(n)},n.setStartRange=function(){n._zone.grid&&n._zone.range&&!n.isSingleCell()?n.rangeUtils.remove():n.env.client.type.isIOS||n._isStartFocus()||n.rangeUtils.setRange(n._zone.start.cell,0)},n.startDragColLine=function(e,t){var r,o;if(e&&1===e.nodeType&&e.id===u.ID.TABLE_RANGE_BORDER+"_start_right")o=n._zone.start,e=n._zone.start.cell,r=n._zone.table;else if(e&&1===e.nodeType&&e.id===u.ID.TABLE_RANGE_BORDER+"_range_right")e=(o=n._zone.grid[n._zone.range.maxY][n._zone.range.maxX]).cell,r=n._zone.table;else{if(!(e=n.domUtils.getParentByTagName(e,["th","td"],!0,null)))return;if(!(r=n.domUtils.getParentByTagName(e,["table"],!0,null)))return;r!==n._zone.table&&(n._clearSelectedCell(),n.clear()),n._zone.grid||n._initZone(r),o=n._tableUtils.getCellData(n._zone.grid,e)}for(var i,a=o.x;a+1=0&&i=n._zone.grid[i].length&&(o=0,i+=1))};t.x=t.x?t.x>0?1:-1:0,t.y=t.y?t.y>0?1:-1:0;var o=e.x+t.x,i=e.y+t.y;r();for(var a=e;i>=0&&i=0&&o
    '),r||this._event.bind()}}},{key:"_createdLocationBarItem",value:function(e,t,n,r){return'
    ')}},{key:"_hideAddTool",value:function(){var e=this,t=this.domUtils.getParentByFilter(this._zone.table,(function(t){return e.domUtils.hasClass(t,u.CLASS.TABLE_CONTAINER)}));t&&(this._locationBarDom.addBtn=this._getDomByClass(t,u.CLASS.TABLE_ADD_BTN,"button"),this._locationBarDom.line=this._getDomByClass(t,"add-tip-line","div")),this._locationBarDom.addBtn&&(this._locationBarDom.addBtn.style.display="none"),this._locationBarDom.line&&(this._locationBarDom.line.style.display="none")}},{key:"locationBarRander",value:function(){var e=this;this._zone.table.rows.length&&this._zone.table.rows[0].cells.length&&(this._locationBarDom.col.innerHTML=Array.prototype.reduce.call(this._zone.table.rows[0].cells,(function(t,n,r){return t+e._createdLocationBarItem(m,r,n.offsetWidth,e._zone.range&&r>=e._zone.range.minX&&r<=e._zone.range.maxX)}),""),this._locationBarDom.row.innerHTML=Array.prototype.reduce.call(this._zone.table.rows,(function(t,n,r){return t+e._createdLocationBarItem(p,r,n.cells[0].offsetHeight,e._zone.range&&r>=e._zone.range.minY&&r<=e._zone.range.maxY)}),""))}}])&&i(n.prototype,r),h&&i(n,h),t}(h);e.exports=y},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n=0;u--){var h=t[u].index,p=t[u].checked,m=o[h];if(m){var g=n._todoUtils.getMainFromChild(m);n._todoUtils.check(g,p),c||n._todoUtils.addUserInfo(g,p,n._clientItem)}}return n._todoUtils.checkTodoStyle(!0),e=n.req.editorBridge.getContentHtml(),n.env.body=l,n.env.doc=i,n.env.win=a,n.env.scrollContainer=n.domUtils.getScrollContainer(),n.env.body.removeChild(r),e}},n._event={bind:function(){n._event.unbind(),n.env.event.add(d.EVENT.ON_SELECTION_CHANGE,n._handler.onSelectionChange),n.env.event.add(d.EVENT.AFTER_RESTORE_HISTORY,n._handler.afterRestoreHistory),n.env.event.add(d.EVENT.ON_EXEC_COMMAND,n._handler.onExecCommand),n.env.event.add(d.EVENT.ON_PASTE,n._handler.onPaste),n.env.event.add(d.EVENT.AFTER_INSERT_DOM,n._handler.afterInsertDom),n.env.client.type.isIOS||n.env.client.type.isAndroid?(n.env.event.add(d.EVENT.ON_TOUCH_END,n._handler.onTouchEnd),n.env.event.add(d.EVENT.ON_TOUCH_START,n._handler.onTouchStart)):n.env.event.add(d.EVENT.ON_CLICK,n._handler.onClick)},unbind:function(){n.env.event.remove(d.EVENT.ON_CLICK,n._handler.onClick),n.env.event.remove(d.EVENT.ON_SELECTION_CHANGE,n._handler.onSelectionChange),n.env.event.remove(d.EVENT.ON_TOUCH_END,n._handler.onTouchEnd),n.env.event.remove(d.EVENT.ON_TOUCH_START,n._handler.onTouchStart),n.env.event.remove(d.EVENT.AFTER_RESTORE_HISTORY,n._handler.afterRestoreHistory)}},n._handler={afterInsertDom:function(){n._todoUtils.fixNewTodo(),n._todoUtils.checkTodoStyle(!1)},afterRestoreHistory:function(){n._todoUtils.checkTodoStyle(!1),n._todoUtils.fixNewTodo(),n.req.todoStyle.restoreUserAvatarStyle()},onCheckDocLock:function(e,t){n._patchForReader.docLockChecked=!t,e||n._checkTodo(n._patchForReader.curCheckbox),n._patchForReader.curCheckbox=null},onClick:function(e){return n.onClickTodo(e)},onExecCommand:function(){var e,t,r=n.rangeUtils.getRange();if(r&&(e=r.collapsed?r.startContainer:n.domUtils.getParentRoot([r.startContainer,r.endContainer]),e=n.domUtils.getBlockParent(e,!0)))for(var o=0,i=(t=e.querySelectorAll("."+d.CLASS.TODO_CHECKBOX)).length;o0){n.req.historyUtils.saveSnap(!1),i=t.endContainer,a=t.endOffset,3!==i.nodeType&&(t.endOffset===i.childNodes.length?(i=n.domUtils.getLastDeepChild(i),a=n.domUtils.getEndOffset(i)):(i=i.childNodes[t.endOffset],a=0)),p=n._todoUtils.getContainerFromChild(i);for(var E=_.list.length-1;E>=0;E--)y=_.list[E],n._todoUtils.isCheckbox(y)&&(h=n._todoUtils.getContainerFromChild(y),(f=n._todoUtils.getMainFromChild(y))&&(c=f.parentNode,n._todoUtils.cancelTodo(c,!0)),p&&h===p&&(i.parentNode||(i=c,a=n.domUtils.getEndOffset(i)),n.rangeUtils.setRange(t.startContainer,t.startOffset,i,a)));return!0}}if(l=n._todoUtils.isCaretAfterCheckbox(),c=(s=n._todoUtils.getMainByCaret())?n.domUtils.getBlockParent(s,!1):n._todoUtils.getContainerFromChild(t.startContainer),m=n.domUtils.getEndOffset(t.endContainer)===t.endOffset,!c||s||n._todoUtils.getCheckbox(c)||(n._todoUtils.clearTodoClass(c),c=null),!c&&!m&&13!==S)return!0;if(8===S&&l)return n.req.historyUtils.saveSnap(!1),n._todoUtils.cancelTodo(c),u.stopEvent(e),!1;if(46===S&&(n.req.historyUtils.saveSnap(!1),r=t.startContainer,o=t.startOffset,n.rangeUtils.selectCharIncludeFillChar(),i=(t=n.rangeUtils.getRange()).endContainer,f=n._todoUtils.getMainFromChild(i)||n._todoUtils.getMainInDom(i),n.rangeUtils.setRange(r,o),f&&f!==s))return n._todoUtils.cancelTodo(f.parentNode,!0),!1;if(37===S&&l&&(y=n.domUtils.getPreviousNode(c)))return n.rangeUtils.setRange(y,n.domUtils.getEndOffset(y)),u.stopEvent(e),!1;if(!c||13!==S||e.shiftKey)return!0;if(n.req.historyUtils.saveSnap(!1),n._todoUtils.isEmptyContainer(c))return c.innerHTML="
    ",n._todoUtils.clearTodoClass(c),n.rangeUtils.setRange(c,1),n.domUtils.getParentByTagName(c,["blockquote","ul","ol"])&&n.env.event.call(d.EVENT.EXEC_COMMEND,"outdent",!1),u.stopEvent(e),!1;t.deleteContents(),n._todoUtils.fixNewTodo(c);var C,T=!1,A=n._todoUtils.getUserInfoInDom(c);A?(C=n.domUtils.getPreviousNode(A,!1,c),t.startContainer===A&&t.startOffset!==n.domUtils.getEndOffset(A)?T=!0:n._todoUtils.getUserInfoFromChild(t.startContainer)&&(T=!0)):C=c,t.setEndAfter(T?c:C);var O,w=t.cloneContents(),N=n.env.doc.createElement("div");for(w.appendChild(N);w.childNodes.length>1;)N.appendChild(w.firstChild);if(n.domUtils.isEmptyDom(N)){if(v=n._todoUtils.cloneTodo(c),n.domUtils.after(v,c),n._todoUtils.setTodo(v),s=n._todoUtils.getMainInDom(v),3===(y=n.domUtils.getLastDeepChild(v)).nodeType)y.nodeValue=d.FILL_CHAR+d.FILL_CHAR;else if(n.domUtils.isSelfClosingTag(y)){var L=n.env.doc.createTextNode(d.FILL_CHAR+d.FILL_CHAR);n.domUtils.after(L,y),y=L}else y.appendChild(n.env.doc.createTextNode(d.FILL_CHAR+d.FILL_CHAR)),y=y.childNodes[0];n.rangeUtils.setRange(y,1)}else{O=t.extractContents(),b=[];for(var I=0;I0&&(s=s[0]),n._todoUtils.insertToMain(b,s);for(var U=0;U ."+d.CLASS.TODO_MAIN+" {padding-left: 0}."+d.CLASS.TODO_CHECKED+" {color: #666;}."+d.CLASS.TODO_UNCHECKED+" {text-decoration: initial;}"+".".concat(d.CLASS.WIZ_BODY," .").concat(d.CLASS.TODO_CHECKED," .").concat(d.CLASS.TODO_CHECKBOX," {background-image:url(").concat(f,")}")+"."+d.CLASS.TODO_UNCHECKED+" ."+d.CLASS.TODO_CHECKBOX+" {background-image:url("+h+")}"+".".concat(d.CLASS.WIZ_BODY," .").concat(d.CLASS.TODO_CHECKBOX," {border-radius:0;position:relative;top:-1px;vertical-align:middle;border:0;background-color:transparent;outline:none;width:18px !important; height:18px !important; cursor:default; padding:0px 10px 0px 5px;-webkit-user-select: none;background-size:18px;background-repeat:no-repeat;background-position:5px;box-sizing:initial;}")+"."+d.CLASS.TODO_AVATAR+" {border:0;background-color:transparent;outline:none;width:20px !important; height: 20px !important; vertical-align: -20%; padding:0; margin:0 10px 0 0; border-radius:100%;background-size:20px;background-repeat:no-repeat;}."+d.CLASS.TODO_USER_INFO+" {padding-left: 20px;}input."+d.CLASS.TODO_AVATAR+" {position:relative;top:-4px;}."+d.CLASS.TODO_ACCOUNT+", ."+d.CLASS.TODO_DATE+" { color: #666; }"},m=function(e){function t(){var e,n;o(this,t);for(var r=arguments.length,i=new Array(r),l=0;l=0;r--)if((e=t[r]).id&&0===e.id.indexOf(d.ID.TODO_AVATAR_STYLE)){var o=n._getGuidFromStyleId(e.id);n._todoStyleMap[o]=e.innerHTML,n.domUtils.remove(e)}},n.removeUnUsedTodoStyle=function(e){var t,r,o,i,a=n.env.doc.querySelectorAll("style");if(e)return r=d.ID.TODO_AVATAR_STYLE+e,o=d.CLASS.TODO_USER_AVATAR+e,i=n.env.doc.querySelector("."+o),void((t=n.env.doc.getElementById(r))&&!i&&(n._todoStyleMap[e]=t.innerHTML,n.domUtils.remove(t)));for(var l=a.length-1;l>=0;l--)(r=(t=a[l]).id)&&0===r.indexOf(d.ID.TODO_AVATAR_STYLE)&&(e=n._getGuidFromStyleId(r),n.env.body.querySelector("."+d.CLASS.TODO_USER_AVATAR+e)||(n._todoStyleMap[e]=t.innerHTML,n.domUtils.remove(t)))},n.restoreUserAvatarStyle=function(){for(var e in n._todoStyleMap)if(n._todoStyleMap.hasOwnProperty(e)){var t=d.ID.TODO_AVATAR_STYLE+e;!n.env.doc.querySelector("#"+t)&&n.env.body.querySelector("."+d.CLASS.TODO_USER_AVATAR+e)&&n.req.wizStyle.replaceStyleById(t,n._todoStyleMap[e],!1)}},n}var n,r,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,e),n=t,(r=[{key:"initCore",value:function(e){l(s(t.prototype),"initCore",this).call(this,e)}}])&&i(n.prototype,r),u&&i(n,u),t}(u);e.exports=m},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n'+o+"
    ",a.innerHTML=o,i=n.getMainInDom(a);a.lastChild;)t.insertBefore(a.lastChild,t.firstChild);for(r=n.domUtils.getLastDeepChild(t);n.domUtils.isTag(r,"br")||3===r.nodeType&&f.isEmpty(r.nodeValue);)n.domUtils.remove(r),r=n.domUtils.getLastDeepChild(t);n.domUtils.isSelfClosingTag(r)?n.rangeUtils.setRange(r.parentNode,n.domUtils.getIndex(r)+1):(3===r.nodeType?(0===r.nodeValue.length&&(r.nodeValue=d.FILL_CHAR),l=r):(l=n.env.doc.createTextNode(d.FILL_CHAR),r.appendChild(l)),l.nodeValue===d.FILL_CHAR?n.rangeUtils.setRange(l,0,l,1):n.rangeUtils.setRange(l,l.nodeValue.length));return n.checkTodoStyle(!1),i},n.addUserInfo=function(e,t,r){var o,i,a,l,s,c,u;if(e)if(o=n.deleteUserInfo(e.parentNode),t){o=r.getUserGuid(),i=r.getUserAlias(),a=r.getUserAvatarFileName(d.CSS.TODO_LIST.IMG_WIDTH),l=n.getTime(),n.setUserAvatarStyle(o,a),s=n.getUserInfoHtml(o,i,l),c=n.env.doc.createElement("span"),n.domUtils.addClass(c,d.CLASS.TODO_USER_INFO),c.innerHTML=s;for(var f=e.childNodes.length-1;f>=0;f--){var h=e.childNodes[f];n.domUtils.isTag(h,"br")&&e.removeChild(h)}for(u=e.nextElementSibling;u;){if(n.isMain(u)){e.parentElement.insertBefore(c,u);break}if(n.domUtils.isTag(u,"br")){e.parentElement.insertBefore(c,u);break}u=u.nextElementSibling}u||e.parentElement.appendChild(c),c.hasChildNodes()||c.appendChild(n.env.doc.createElement("br")),n.rangeUtils.setRange(c,c.childNodes.length)}else n.req.todoStyle.removeUnUsedTodoStyle(o)},n.canBeContainer=function(e){return!n.domUtils.isTag(e,["body","blockquote","td","th"])&&n.domUtils.isBlock(e)},n.cancelTodo=function(e,t){if(e){var r,o,i,a,l=n.rangeUtils.getRange();r=l?l.startContainer:null,o=l?l.startOffset:0,i=n.getMainInDom(e),a=n.deleteUserInfo(e),n.req.todoStyle.removeUnUsedTodoStyle(a),n.deleteMain(i),n.clearTodoClass(e),n.domUtils.isEmptyDom(e)&&!n.domUtils.isIncludeBr(e)&&(e.innerHTML="
    "),t||(r&&r.parentNode||(r=e,o=0),n.rangeUtils.setRange(r,o)),n.checkTodoStyle(!1)}},n.check=function(e,t){var r=n.getContainerFromChild(e);t?(n.domUtils.removeClass(r,d.CLASS.TODO_UNCHECKED),n.domUtils.addClass(r,d.CLASS.TODO_CHECKED)):(n.domUtils.removeClass(r,d.CLASS.TODO_CHECKED),n.domUtils.addClass(r,d.CLASS.TODO_UNCHECKED));var o=n.getCheckbox(e),i=t?"checked":"unchecked",a={};a[d.ATTR.TODO_CHECK]=i,n.domUtils.attr(o,a)},n.checkTodo=function(e,t){var r={checkbox:null,checked:!1};n.req.historyUtils.saveSnap(!1);var o,i=n.getMainFromChild(e);return i&&i.children[0]===e||n.fixCheckbox(e,!1),o="checked"!==e.getAttribute(d.ATTR.TODO_CHECK),n.check(i,o),r.checkbox=e,r.checked=o,t.isPersonalDocument()||n.addUserInfo(i,o,t),r},n.checkTodoStyle=function(e){n.env.doc.querySelector("."+d.CLASS.TODO_CHECKBOX)?n.req.todoStyle.insertTodoStyle(e):n.req.todoStyle.removeTodoStyle()},n.clearBlock=function(e){if(!e||1!==e.nodeType&&3!==e.nodeType&&11!==e.nodeType)return!1;for(var t=0;t0))return n.domUtils.remove(e),!0;n.domUtils.peelDom(e)}else(a||i)&&n.domUtils.peelDom(e);return!1},n.clearTodoClass=function(e){e&&n.domUtils.removeClass(e,[d.CLASS.TODO_ACCOUNT,d.CLASS.TODO_AVATAR,d.CLASS.TODO_DATE,d.CLASS.TODO_LAYER,d.CLASS.TODO_MAIN,d.CLASS.TODO_CHECKED,d.CLASS.TODO_UNCHECKED,d.CLASS.TODO_USER_INFO])},n.cloneTodo=function(e){if(!e)return null;var t,r,o;if(t=n.domUtils.clone(e,!1),!n.getMainInDom(e))return null;n.domUtils.removeClass(t,d.CLASS.TODO_CHECKED),n.domUtils.addClass(t,d.CLASS.TODO_UNCHECKED);for(var i=e,a=t;i&&i.childNodes&&i.childNodes.length;){for(o=i.childNodes[i.childNodes.length-1];o&&(3===o.nodeType&&0===o.nodeValue.replace(d.FILL_CHAR_REG,"").length||n.domUtils.isBlock(o)||n.domUtils.hasClass(o,d.CLASS.TODO_USER_INFO)||n.domUtils.isSelfClosingTag(o));)o=o.previousSibling;!o||n.isCheckbox(o)?(r=n.env.doc.createTextNode(""),o=null):3===(r=n.domUtils.clone(o,!1)).nodeType&&(r.nodeValue=""),n.clearTodoClass(r),a.appendChild(r),a=r,i=o}return t},n.deleteMain=function(e){return n.domUtils.peelDom(e,(function(e){return!n.isMain(e)&&!n.isCheckbox(e)}))},n.deleteUserInfo=function(e){var t="",r=n.getMainInDom(e),o=e.querySelector("."+d.CLASS.TODO_AVATAR),i=o?o.className:"",a=new RegExp("^(.*"+d.CLASS.TODO_USER_AVATAR+")([^ ]*)(.*)$","i");i.indexOf(d.CLASS.TODO_USER_AVATAR)>-1&&(t=i.replace(a,"$2"));for(var l=r?r.nextElementSibling:e.firstChild;l&&!n.isMain(l);)if(n.isUserInfo(l)){var s=l;l=l.nextElementSibling,e.removeChild(s)}else l=l.nextElementSibling;return t},n.fixCheckbox=function(e,t){if(e){if(n.domUtils.attr(e,{style:null}),n.domUtils.isTag(e,"input")){var r=n.env.doc.createElement("img");r.className=e.className,r.src=p;var o={};o[d.ATTR.TODO_CHECK]=e.getAttribute(d.ATTR.TODO_CHECK),n.domUtils.attr(r,o),n.domUtils.before(r,e),n.domUtils.remove(e),e=r}if(t||!n.getMainFromChild(e)){var i,a,l,s,c=n.domUtils.getBlockParent(e),u=n.canBeContainer(c),f=n.env.doc.createElement("span"),h=!1;for(f.className=(t?d.CLASS.TODO_LABEL_OLD:d.CLASS.TODO_MAIN)+" "+d.CLASS.TODO_UNCHECKED,i=n.env.doc.createElement(u?c.tagName:"div"),u?n.domUtils.after(i,c):n.domUtils.before(i,e),i.appendChild(f),a=e;a;){if(l=a.nextSibling,n.domUtils.isBlock(a)){if(!u)break;h=!0,s=i.nextSibling}h?n.domUtils.before(a,s):n.isUserInfo(a)?n.domUtils.after(a,f):f.appendChild(a),a=l}n.domUtils.addClass(i,d.CLASS.TODO_LAYER);var m=n.getContainerFromChild(i.parentNode);m&&n.clearTodoClass(m),u&&n.domUtils.isEmptyDom(c)&&n.domUtils.remove(c)}}},n.fixMain=function(e){if(e){var t,r,o=n.domUtils.getLastDeepChild(e),i=n.getCheckbox(e);if(i||n.domUtils.removeClass(e,d.CLASS.TODO_MAIN),n.domUtils.attr(e,{style:null}),(t=n.getContainerFromChild(e))&&t!==e&&t!==e.parentNode)try{t.appendChild(e)}catch(e){console.error(e)}n.domUtils.hasClass(e,d.CLASS.TODO_CHECKED)?(n.domUtils.addClass(t,d.CLASS.TODO_CHECKED),n.domUtils.removeClass(e,d.CLASS.TODO_CHECKED)):n.domUtils.hasClass(e,d.CLASS.TODO_UNCHECKED)&&(n.domUtils.addClass(t,d.CLASS.TODO_UNCHECKED),n.domUtils.removeClass(e,d.CLASS.TODO_UNCHECKED));var a=e.querySelectorAll("."+d.CLASS.TODO_MAIN);for(r=a.length-1;r>=0;r--)n.domUtils.after(a[r],e);if(n.domUtils.isEmptyDom(e)&&e.parentNode&&n.domUtils.remove(e),o!==i&&(1!==o.nodeType&&3!==o.nodeType||1===o.nodeType&&n.domUtils.isTag(o,"br"))){for(t=o.parentNode;t!==e&&1===t.childNodes.length;)o=t,t=t.parentNode;n.domUtils.remove(o),n.fixMain(e)}}},n.fixNewTodo=function(e){var t,r,o,i,a,l,s,c,u,f,h,p=function(e){n.domUtils.isEmptyDom(e)?n.domUtils.remove(e):(s=n.getCheckbox(e))||n.clearTodoClass(e)};r=(t=e||n.env.doc).querySelectorAll("."+d.CLASS.TODO_LAYER);for(var m=0;m=0;t--){var r=e[t];n.domUtils.hasClass(r,d.CLASS.TODO_LAYER)||n.clearTodoClass(r)}};S(t.querySelectorAll("."+d.CLASS.TODO_CHECKED)),S(t.querySelectorAll("."+d.CLASS.TODO_UNCHECKED))},n.getCheckbox=function(e){return e?e.querySelector("."+d.CLASS.TODO_CHECKBOX):null},n.getContainerFromChild=function(e){return e?n.domUtils.getParentByFilter(e,(function(e){return n.isLayer(e)}),!0):null},n.getMainByCaret=function(){var e=n.rangeUtils.getRange();if(!e)return null;var t=n.rangeUtils.getRangeDetail(e.startContainer,e.startOffset);return n.getMainFromChild(t.container)},n.getMainFromChild=function(e){return e?n.domUtils.getParentByClass(e,d.CLASS.TODO_MAIN,!0):null},n.getMainHtml=function(){return''+n.getCheckboxHtml()+""},n.getCheckboxHtml=function(){return''},n.getMainInDom=function(e){return e&&e.hasChildNodes()?e.querySelector("."+d.CLASS.TODO_MAIN):null},n.getUserInfoFromChild=function(e){return e?n.domUtils.getParentByClass(e,d.CLASS.TODO_USER_INFO,!0):null},n.getUserInfoInDom=function(e){return e.querySelector("."+d.CLASS.TODO_USER_INFO)},n.getUserInfoHtml=function(e,t,n){var r='%2, %3.',o=d.CLASS.TODO_USER_AVATAR+u.encode(e);return r.replace("%1",d.CLASS.IMG_NOT_DRAG+" "+d.CLASS.TODO_AVATAR+" "+o).replace("%2",t).replace("%3",n)},n.getTime=function(){var e,t=function(e){return(e<10?"0":"")+e},r=new Date;return e=t(r.getHours())+":"+t(r.getMinutes()),"en"===n.lang.version?n.lang.Month[r.getMonth()]+" "+r.getDate()+", "+r.getFullYear()+" at "+e:r.getFullYear()+n.lang.Date.Year+(r.getMonth()+1)+n.lang.Date.Month+r.getDate()+n.lang.Date.Day+" "+e},n.insertToMain=function(e,t){if(e&&t)for(var r=null,o=e.length-1;o>=0;o--){var i=e[o];n.clearTodoClass(i),t.insertBefore(i,r),r=i}},n.isCaretAfterCheckbox=function(){var e,t,r,o,i=n.rangeUtils.getRange();return!!i&&(!!(r=n.getMainByCaret())&&(!!i.collapsed&&(!(3===(e=n.rangeUtils.getRangeDetail(i.startContainer,i.startOffset)).container.nodeType&&e.offset>0&&(o=e.container.nodeValue.substr(0,e.offset),!f.isEmpty(o)))&&(t=e.isEnd?e.container:n.domUtils.getPreviousNode(e.container,!1,r),n.isCheckbox(t)))))},n.isCaretBeforeCheckbox=function(){var e={enable:!1,checkbox:null},t=n.rangeUtils.getRange();if(!t)return e;var r=t.endContainer;return 1===r.nodeType?r=r.childNodes[t.endOffset]:3===r.nodeType&&n.domUtils.isEmptyDom(r)&&t.endOffset===r.nodeValue.length&&!n.getContainerFromChild(r)&&(r=n.domUtils.getNextNode(r,!1))&&(r=n.domUtils.getParentByFilter(r,(function(e){return n.isLayer(e)}),!0)),n.isLayer(r)||n.isMain(r)?(e.enable=!0,e.checkbox=n.getCheckbox(r)):n.isCheckbox(r)&&(e.enable=!0,e.checkbox=r),e.checkbox||(e.enable=!1),e},n.isCheckbox=function(e){return n.domUtils.hasClass(e,d.CLASS.TODO_CHECKBOX)},n.isEmptyContainer=function(e){if(!e)return!0;for(var t=e.childNodes,r=0;r0)for(var o=0;o0)for(var o=t.length-1;o>=0;o--){var i=t[o],a=n.domUtils.splitDomBeforeSub(e,i);n.domUtils.remove(i),r.push(n._setTodoSingle(a)),0===o&&a!==e&&r.push(n._setTodoSingle(e))}else r.push(n._setTodoSingle(e))}(e)},i=function(e){return!!n.domUtils.isTag(e,"li")||!n.domUtils.hasClass(e,d.CLASS.TABLE_CONTAINER)&&!e.querySelector("."+d.CLASS.TABLE_CONTAINER)&&(!n.domUtils.hasClass(e,d.CLASS.CODE_CONTAINER)&&!e.querySelector("."+d.CLASS.CODE_CONTAINER)&&!n.domUtils.isTag(e,["hr"]))},a=!0,l=t[0],s=n.getMainInDom(l),c=n.getUserInfoInDom(l);(!!n.getCheckbox(s)||c)&&(a=!1);for(var u=0;u=0;l--){var s=o[l],c=n.oldPatch.getLabelFromChild(s);c&&c.children[0]===s||n.fixCheckbox(s,!0),n.oldPatch.fixImg(s)}i=n.env.body.querySelectorAll("."+d.CLASS.TODO_LABEL_OLD);for(var u=0;u0;p--)t=e[p],r=n.oldPatch.packageTodo(t),n.domUtils.after(r,h);n.oldPatch.fixUserInfo(f)}for(var m=(i=n.env.body.querySelectorAll("."+d.CLASS.TODO_LABEL_OLD)).length-1;m>=0;m--)n.oldPatch.fixLabel(i[m]);for(var g=(a=n.env.body.querySelectorAll("."+d.CLASS.TODO_TAIL_OLD)).length-1;g>=0;g--){var v=a[g];n.domUtils.isEmptyDom(v)?n.domUtils.remove(v):n.domUtils.removeClass(d.CLASS.TODO_TAIL_OLD)}},fixUserInfo:function(e){for(var t=e.parentNode,r=n.oldPatch.getCheckImg(e),o=r?r.id:"",i=t.childNodes,a=!1,l=0;l=e.undoCount-1?n.domUtils.addClass(r,g):n.domUtils.removeClass(r,g)},onMouseOverTable:function(e){var t,r=e.target,o=0,i=0;1===r.nodeType&&/^td$/i.test(r.tagName)&&(t=r.getAttribute("data-index").split("-"),i=parseInt(t[0],10),o=parseInt(t[1],10));var a=n.domUtils.getParentByClass(r,y),l=n.domUtils.getParentByClass(r,S),s=a.querySelector("."+_);if(o&&i){s.innerHTML=i+" x "+o,l.selectRow=i,l.selectCol=o;for(var c=0;c<10;c++)for(var d=0;d<10;d++)l.rows[c].cells[d].className=c=0;a--)n.domUtils.removeClass(o[a],b);return e.querySelector("."+_).innerHTML="0 x 0",i}t=n.env.doc.createElement("div"),n.domUtils.addClass(t,_),t.innerHTML="0 x 0",i=n.env.doc.createElement("table"),r=n.env.doc.createElement("tbody");for(var l=1;l<11;l++){for(var s=n.env.doc.createElement("tr"),c=1;c<11;c++){var d=n.env.doc.createElement("td");n.domUtils.attr(d,{"data-index":l+"-"+c,unselectable:"on",onmousedown:"return false;"}),s.appendChild(d)}r.appendChild(s)}return n.domUtils.addClass(i,S),i.appendChild(r),e.appendChild(t),e.appendChild(i),e},createToolbar:function(){if(!(n.env.frame.toolbarContainer.children.length>0)){var e=n.env.doc.createElement("div");n.domUtils.addClass(e,d.CLASS.WIZ_EIDTOR_TOOlBAR_MAIN);var t=n.env.doc.createElement("div");n.domUtils.addClass(t,d.CLASS.WIZ_EIDTOR_TOOlBAR_SIDE),n.env.frame.toolbarContainer.appendChild(e),n.env.frame.toolbarContainer.appendChild(t);var r=n._mainTools,o=n._sideTools;u.forEach(r,(function(t){e.appendChild(n._view.createToolIcon(t))})),u.forEach(o,(function(e){t.appendChild(n._view.createToolIcon(e))}))}},createToolIcon:function(e){var t,r=n.env.doc.createElement("div"),o=n.env.doc.createElement("i");if(e.id===k?n.domUtils.addClass(o,E):(e.id!==B&&e.id!==R||n.domUtils.addClass(o,g),n.domUtils.addClass(o,v),n.domUtils.addClass(o,"icon-"+e.icon),n.domUtils.attr(o,{unselectable:"on",onmousedown:"return false;"}),t=e.id,o.id=t,n._toolsButtonMap[t]=o),n.domUtils.addClass(r,m),e.id===N){var i=n.env.doc.createElement("label");n.domUtils.attr(i,{for:n._uploaderId}),i.appendChild(o),r.appendChild(i)}else r.appendChild(o);return r},getImgUploadingTmp:function(e){return n.env.body.querySelector("#"+n._view.getImgUploadingTmpId(e))},getImgUploadingTmpId:function(e){return T+"_"+e},getLineStartList:function(){var e,t,r=n.rangeUtils.getRange(),o=[],i=[];if(!r)return o;var a,l,s=n.rangeUtils.getRangeDetail(r.startContainer,r.startOffset),c=n.domUtils.getPrevBlock(!r.collapsed&&s.isEnd?n.domUtils.getNextNode(s.container):s.container);if(r.collapsed)n._view.checkBlock(c)&&i.push(c);else for(a=n.rangeUtils.getRangeDetail(r.endContainer,r.endOffset),l=n.domUtils.getPrevBlock(0===a.offset?n.domUtils.getPreviousNode(a.container):a.container),n._view.checkBlock(l)&&i.push(l),e=n.domUtils.getPrevBlock(n.domUtils.getPreviousNode(l));l!==n.env.body&&l!==c&&e&&e!==n.env.body&&(n._view.checkBlock(e)&&i.splice(0,0,e),e!==c);)e=n.domUtils.getPrevBlock(n.domUtils.getPreviousNode(e));for(var d=0;d0%)'):'
    '+t.name+'
    0%
    ',a.style.color="#BDBDBD",a.id=n._view.getImgUploadingTmpId(e),n.domUtils.setContenteditable(a,!1),r.insertNode(a),r.insertNode(n.env.doc.createElement("br"));var l=n.domUtils.getIndex(o);n.rangeUtils.setRange(o.parentNode,l+1)}},insertListOl:function(){n._view.insertTextAtLineStart("1."+String.fromCharCode(160),n._view.getLineStartList())},insertListUl:function(){n._view.insertTextAtLineStart("*"+String.fromCharCode(160),n._view.getLineStartList())},insertQuotes:function(){n._view.insertTextAtLineStart(">"+String.fromCharCode(160),n._view.getLineStartList())},insertText:function(e){var t,r,o=n.rangeUtils.getRange();return"\n"===e?(t=n.env.doc.createElement("div")).appendChild(n.env.doc.createElement("br")):t=n.env.doc.createTextNode(e),o?(o.deleteContents(),n.rangeUtils.insertNode(t),n.rangeUtils.setRange(t,n.domUtils.getEndOffset(t))):3===t.nodeType?((r=n.env.doc.createElement("div")).appendChild(t),n.env.body.appendChild(r)):n.env.body.appendChild(t),t},insertTextAtLineStart:function(e,t){var r;if(0!==t.length)for(var o=0;o=0;o--)n.domUtils.remove(r[o]);for(;t.firstChild;)e.appendChild(t.firstChild);n._markdownRender.do({container:e},(function(){}))},setActive:function(e,t){if(!t)return n.domUtils.removeClass(e,p),void(n._activeButton===e&&(n._event.unbindSubMenu(),n._activeButton=null));n._activeButton!==e&&(n.domUtils.removeClass(n._activeButton,p),n._activeButton=e,n.domUtils.addClass(e,p),n._event.bindSubMenu())},show:function(){n._view.createToolbar(),n.env.frame.toolbarContainer.style.display="flex"}},n.off=function(){n.env.isShowPreview=!1,n._event.unbind(),n._view.hide()},n.on=function(){n.env.readonly||(n.req.frameViewStyle.insertToolbarStyle(),n.req.frameViewStyle.insertPreviewStyle()),n._markdownRender||(n._markdownRender=new f({win:n.env.win,doc:n.env.doc,callback:function(){}}),n._markdownRender.initCore(n.core)),n._view.show(),n._event.bind()},n.setImgUploaderId=function(e){var t;if(n._uploaderId=e,!n.env.readonly&&n.env.frame.toolbarContainer){if(!(t=n.env.frame.toolbarContainer.querySelector("#"+N)))return;n.domUtils.attr(t.parentNode,{for:n._uploaderId})}},n.onImgUploadBegin=function(e,t){n._view.insertImgUploadingTmp(e,t)},n.onImgUploadComplete=function(e,t){var r,o=n._view.getImgUploadingTmp(e);o&&(r=n.env.options.editor.type===d.NOTE_EDITOR_TYPE.MARKDOWN?n.env.doc.createTextNode(t.markdownSrc):n.req.imgUtils.makeDomByPath(t.url),n.domUtils.before(r,o),n.domUtils.remove(o))},n.onImgUploadError=function(e){n._view.clearImgUploadingTmp(e)},n.onImgUploadProgress=function(e,t){var r=n._view.getImgUploadingTmp(e);if(r){var o=r.querySelector(".progress_txt"),i=r.querySelector(".progress_line");o&&(o.firstChild.nodeValue=t.progress+"%"),i&&(i.style.width=t.progress+"%")}},n}var n,r,h;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,e),n=t,(r=[{key:"initCore",value:function(e){l(s(t.prototype),"initCore",this).call(this,e)}}])&&i(n.prototype,r),h&&i(n,h),t}(h);e.exports=z},function(e,t,n){var r=n(1);e.exports=function(){var e=null,t=null,n=null;this.initCore=function(r){t=(e=r).env,n=e.require.domUtils};this.create=function(e){var o,i,a;o||(o=t.doc.createElement(r.TAG.TMP_TAG),n.addClass(o,r.CLASS.TOOL_TIP),i=t.doc.createElement("span"),n.addClass(i,r.CLASS.TOOL_TIP_ARROW_BG),a=t.doc.createElement("span"),n.addClass(a,r.CLASS.TOOL_TIP_ARROW),o.appendChild(i),o.appendChild(a),n.attr(o,{contenteditable:"false"}),e&&(o.id=e));var l={container:o,arrow:a,arrowBg:i,isShow:function(){return n.hasClass(o,"active")}};return l.hide=function(){var e;e=l,n.removeClass(e.container,"active")},l.show=function(e,o,i,a){!function(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.TYPE.LAYOUT.TOP,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4?arguments[4]:void 0;if(e){if(t.body.appendChild(e.container),o){n.css(e.container,{display:"block",visibility:"hidden"});var s=n.setLayout({layerObj:e.container,target:o,layout:i,isFixed:a,isReverse:!0,space:8,scrollDom:l});s.top div {font-size:15px;min-width:80px;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TOOL_TIP," div {margin:0;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TOOL_TIP," .").concat(r.CLASS.TOOL_TIP_ARROW_BG,",")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TOOL_TIP," .").concat(r.CLASS.TOOL_TIP_ARROW," {position: absolute;border-style: solid;border-color: transparent;border-bottom-color: #cccccc;left: 22px;margin-left: -14px;top: -8px;border-width: 0 8px 8px 8px;z-index:").concat(r.CSS.Z_INDEX.tableToolsArrow,";}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TOOL_TIP," .").concat(r.CLASS.TOOL_TIP_ARROW," {border-bottom-color: #ffffff;top: -7px;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TOOL_TIP,".top .").concat(r.CLASS.TOOL_TIP_ARROW_BG," {top: auto;bottom: -8px;transform:rotate(180deg);}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TOOL_TIP,".top .").concat(r.CLASS.TOOL_TIP_ARROW," {top: auto;bottom: -7px;transform:rotate(180deg);}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TOOL_TIP_ITEM," {margin:0;padding: 4px 12px;font-size: 14px;display: flex;justify-content: space-between; align-items: center;position: relative;cursor: pointer;color: #172b4d;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TOOL_TIP_ITEM," span {white-space: nowrap;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TOOL_TIP_ITEM,".has-sub-menu:hover .").concat(r.CLASS.TABLE_SUB_MENU,".").concat(r.CLASS.TOOL_TIP," {display: block;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TABLE_SUB_MENU," .").concat(r.CLASS.TOOL_TIP_ITEM," {justify-content: flex-start;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TOOL_TIP_ITEM,".split {padding-top: 8px; padding-bottom: 8px;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TOOL_TIP_ITEM,".split::before {width: calc(100% - 24px); height: 1px;background-color: #e6e9ed;content: '';position: absolute; left: 50%;transform: translateX(-50%); top: 0;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TOOL_TIP_ITEM,".split::after {width: calc(100% - 24px); height: 1px;background-color: #e6e9ed;content: '';position: absolute; left: 50%;transform: translateX(-50%); bottom: 0;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TOOL_TIP_ITEM,":hover {background-color: #ececec;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TOOL_TIP_ITEM,".disabled {color: #bbbbbb;cursor: default;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TOOL_TIP_ITEM,".disabled:hover {background-color: transparent;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TOOL_TIP_ITEM," .").concat(r.CLASS.TABLE_SUB_MENU," {position: absolute;right: 0;top: 0; left: auto;transform: translateX(100%);}"),tableInMarkdown:".".concat(r.CLASS.EDITING,".").concat(r.CLASS.WIZ_BODY," table tr {background-color:white;}")+".".concat(r.CLASS.EDITING,".").concat(r.CLASS.WIZ_BODY," table tr:nth-child(2n) {background-color:#f8f8f8;}"),table:".".concat(r.CLASS.EDITING," .").concat(r.CLASS.TABLE_BODY,".").concat(r.CLASS.TABLE_MOVING," *,")+" .".concat(r.CLASS.EDITING," .").concat(r.CLASS.TABLE_BODY,".").concat(r.CLASS.TABLE_MOVING," *:before,")+" .".concat(r.CLASS.EDITING," .").concat(r.CLASS.TABLE_BODY,".").concat(r.CLASS.TABLE_MOVING," *:after {cursor:default !important;}")+" .".concat(r.CLASS.EDITING,".").concat(r.CLASS.WIZ_BODY," td,")+" .".concat(r.CLASS.EDITING,".").concat(r.CLASS.WIZ_BODY," th {position:relative;}")+"#wiz-table-range-border {display: none;width: 0;height: 0;position: absolute;top: 0;left: 0; z-index:".concat(r.CSS.Z_INDEX.tableBorder,"}")+"#wiz-table-col-line, #wiz-table-row-line {margin:0;display: none;background-color: #448aff;position: absolute;z-index:".concat(r.CSS.Z_INDEX.tableColRowLine,";}")+"#wiz-table-col-line {width: 1px;cursor:col-resize;}#wiz-table-row-line {height: 1px;cursor:row-resize;}#wiz-table-range-border_start, #wiz-table-range-border_range {display: none;width: 0;height: 0;margin: 0;position: absolute;}#wiz-table-range-border_start div, #wiz-table-range-border_range div {margin: 0;}#wiz-table-range-border_start_top, #wiz-table-range-border_range_top {height: 2px;background-color: #448aff;position: absolute;top: 0;left: 0;}#wiz-table-range-border_range_top {height: 1px;}#wiz-table-range-border_start_right, #wiz-table-range-border_range_right {width: 2px;background-color: #448aff;position: absolute;top: 0;}#wiz-table-range-border_range_right {width: 1px;}#wiz-table-range-border_start_bottom, #wiz-table-range-border_range_bottom {height: 2px;background-color: #448aff;position: absolute;top: 0;}#wiz-table-range-border_range_bottom {height: 1px;}#wiz-table-range-border_start_left, #wiz-table-range-border_range_left {width: 2px;background-color: #448aff;position: absolute;top: 0;left: 0;}#wiz-table-range-border_range_left {width: 1px;}"+"#wiz-table-range-border_start_dot, #wiz-table-range-border_range_dot {width: 5px;height: 5px;border: 2px solid rgb(255, 255, 255);background-color: #448aff;cursor: crosshair;position: absolute;z-index:".concat(r.CSS.Z_INDEX.tableRangeDot,";}")+".".concat(r.CLASS.TABLE_BAR," {position: absolute;left: 0;top: 1px; margin: 0;display: flex;flex-direction: column;transform: translateX(-100%);z-index:").concat(r.CSS.Z_INDEX.tableBorder+1,"}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TABLE_BAR," div {margin: 0;}")+".".concat(r.CLASS.TABLE_LINE_BOX," {background-color: #f4f6f9;cursor: pointer;position: absolute;}")+".".concat(r.CLASS.TABLE_LINE_BOX,":hover {background-color: #d6d9dd;}")+".".concat(r.CLASS.TABLE_LINE_BOX,".active {background-color: #448aff;opacity: 0.3;}")+".".concat(r.CLASS.TABLE_LINE_POINT," {width: 24px; height: 24px; cursor: pointer; position: absolute;z-index: 2;}")+".".concat(r.CLASS.TABLE_LINE_POINT,"::after {width: 4px; height: 4px; background-color: #d6d9dd; position: absolute;transform: translate(-50%, -50%);content: '';border-radius: 4px;}")+".".concat(r.CLASS.TABLE_LINE_POINT,".cols,.").concat(r.CLASS.TABLE_COL_BAR," .").concat(r.CLASS.TABLE_LINE_POINT," {right: 0;bottom: 16px;transform: translateX(50%);}")+".".concat(r.CLASS.TABLE_LINE_POINT,".cols::after,.").concat(r.CLASS.TABLE_COL_BAR," .").concat(r.CLASS.TABLE_LINE_POINT,"::after {left: 50%; top: 75%;}")+".".concat(r.CLASS.TABLE_LINE_POINT,".rows,.").concat(r.CLASS.TABLE_BAR," .").concat(r.CLASS.TABLE_ROW_BAR," .").concat(r.CLASS.TABLE_LINE_POINT," {bottom: 0;right: 15px;transform: translateY(50%);}")+".".concat(r.CLASS.TABLE_LINE_POINT,".rows::after,.").concat(r.CLASS.TABLE_BAR," .").concat(r.CLASS.TABLE_ROW_BAR," .").concat(r.CLASS.TABLE_LINE_POINT,"::after {left: 75%; top: 50%}")+".".concat(r.CLASS.TABLE_BAR," .").concat(r.CLASS.TABLE_ADD_BTN," {width: 22px; height: 22px; border-radius: 11px 11px 2px 11px; position: absolute;border: none;background-color: #448aff;display: none;outline: none;cursor: pointer;z-index: 2;}")+".".concat(r.CLASS.TABLE_BAR," .").concat(r.CLASS.TABLE_ADD_BTN,"::before {content: '';width: 10px; height: 2px; background-color: #fff;position: absolute;left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(45deg);}")+".".concat(r.CLASS.TABLE_BAR," .").concat(r.CLASS.TABLE_ADD_BTN,"::after {content: '';width: 2px; height: 10px; background-color: #fff;position: absolute;left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(45deg);}")+".".concat(r.CLASS.TABLE_BAR," .").concat(r.CLASS.TABLE_ALL_BAR," {width: ").concat(r.CSS.TABLECOMPONENT.PADDING,"px;height: ").concat(r.CSS.TABLECOMPONENT.PADDING,"px;position: relative;}")+".".concat(r.CLASS.TABLE_BAR," .").concat(r.CLASS.TABLE_ALL_BAR," .").concat(r.CLASS.TABLE_LINE_BOX," {border-radius: 4px 0px 0px 0px;width: 17px;height: 17px; bottom: 0; right: 0;}")+".add-tip-line{display: none;position: absolute; background-color: #448aff;}"+".bar-box-shadow{background-image: linear-gradient(90deg,rgba(38,38,38,.15),rgba(38,38,38,0));opacity: 0;transition: opacity .15s;position: absolute;top: ".concat(r.CSS.TABLECOMPONENT.PADDING,"px;bottom: 0;right: 0;transform: translateX(100%); width: 8px;}")+".".concat(r.CLASS.TABLE_BAR," .").concat(r.CLASS.TABLE_ROW_BAR," {width: ").concat(r.CSS.TABLECOMPONENT.PADDING,"px; display: flex;flex-direction: column;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TABLE_COL_BAR," {position: absolute;height: ").concat(r.CSS.TABLECOMPONENT.PADDING,"px;top: 0;left: 1px;display: flex;margin: 0;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TABLE_COL_BAR," div {margin: 0;}")+".wiz-table-localtion-bar-block {width: 100%;height: 100%;position: relative;}"+".".concat(r.CLASS.TABLE_BAR," .").concat(r.CLASS.TABLE_ROW_BAR," .").concat(r.CLASS.TABLE_LINE_BOX," {width: 16px;height: 100%;bottom: 0; right: 0;}")+".".concat(r.CLASS.TABLE_COL_BAR," .").concat(r.CLASS.TABLE_LINE_BOX," {width: 100%;height: 16px;bottom: 0; right: 0;}")+".".concat(r.CLASS.TABLE_BAR," .").concat(r.CLASS.TABLE_ROW_BAR," .wiz-table-localtion-bar-block .").concat(r.CLASS.TABLE_LINE_BOX," {border-top: 1px solid #d6d9dd;}")+".".concat(r.CLASS.TABLE_BAR," .").concat(r.CLASS.TABLE_ROW_BAR," .wiz-table-localtion-bar-block:nth-last-of-type(1) .").concat(r.CLASS.TABLE_LINE_BOX," {border-radius: 0px 0px 0px 4px;}")+".".concat(r.CLASS.TABLE_COL_BAR," .wiz-table-localtion-bar-block .").concat(r.CLASS.TABLE_LINE_BOX," {border-left: 1px solid #d6d9dd;}")+".".concat(r.CLASS.TABLE_COL_BAR," .wiz-table-localtion-bar-block:nth-last-of-type(1) .").concat(r.CLASS.TABLE_LINE_BOX," {border-radius: 0px 4px 0px 0px;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TABLE_TOOLS," {display: none;position: absolute;left: 0px;transform: translate(-75%, -25%);z-index:").concat(r.CSS.Z_INDEX.tableTools,";margin: 0;}")+".wiz-table-tools ul {margin:0 !important;}.wiz-table-tools ul {list-style: none !important;padding: 0;width:auto;}"+".".concat(r.CLASS.TABLE_MENU_ITEM," {position: relative;float: left;margin:4px 2px 2px 8px;clear: initial;text-align: left;}")+".".concat(r.CLASS.TABLE_MENU_ITEM," .").concat(r.CLASS.TABLE_MENU_BUTTON," {margin:0; font-size:15px;width:20px;height:20px;line-height:20px;cursor: pointer;position:relative;}")+".".concat(r.CLASS.TABLE_DELETE_ZONE," {position: absolute; background-color: #ffb7be;border: 2px solid #ef403a;box-sizing: border-box; display: none;z-index: -10;}")+".".concat(r.CLASS.TOOL_TIP," i.editor-icon{font-size: 15px;color: #455a64; position: absolute;top: 0px;left: 0;z-index:1}")+".".concat(r.CLASS.TOOL_TIP," i.editor-icon.list-icon{position: static;transform: rotate(-90deg);margin-left: 10px;}")+".".concat(r.CLASS.TABLE_SUB_MENU," i.editor-icon.list-icon.position-icon{border: 1px solid #455a64;transform: none;color: #a7afbc;padding-left: 1px;}")+".".concat(r.CLASS.TABLE_SUB_MENU," i.editor-icon.list-icon{transform: translateY(-25%);margin-left: 0;margin-right: 10px;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TABLE_MENU_ITEM,".active .").concat(r.CLASS.TOOL_TIP," {display: block}")+".".concat(r.CLASS.TOOL_TIP_COLOR_BOX," i.editor-icon.color-box{position: static;margin-left: 10px;border: 1px solid #455a64; width: 15px; height: 15px; display: block;}")+".".concat(r.CLASS.TOOL_TIP_COLOR_BOX," i.editor-icon.color-box.no-color{color: #cc0000;}")+".".concat(r.CLASS.TABLE_MENU_ITEM," .").concat(r.CLASS.TABLE_MENU_BUTTON," i#wiz-menu-bg-demo{position: absolute;top:1px;left:0;}")+".".concat(r.CLASS.TABLE_MENU_ITEM,".wiz-table-cell-bg:hover .wiz-table-color-pad {display: block;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TOOL_TIP,".wiz-table-color-pad {padding: 10px;box-sizing: border-box;min-width: 85px;width: 85px;height: 88px;background-color: #fff;cursor: default;}")+".".concat(r.CLASS.TABLE_TOOLS," .").concat(r.CLASS.TABLE_MENU_BUTTON," {background-color: #e6e9ed; width: 20px; height: 20px;border-radius: 2px; border: 1px solid #ddd;text-align:center;line-height: 18px;padding: 0; outline: none;color: #505f79;font-size: 24px;cursor: pointer;}")+".".concat(r.CLASS.TABLE_TOOLS," .").concat(r.CLASS.TABLE_MENU_BUTTON,"::before {transform: translateX(-3px);display: block;}")+".wiz-table-color-pad > div{font-size:15px;}"+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TOOL_TIP," .wiz-table-color-pad .wiz-table-color-pad-item {display: inline-block;width: 16px;height: 16px;margin-right: 9px;position: relative;}")+".wiz-table-color-pad .wiz-table-color-pad-item .icon-oblique_line{color: #cc0000;font-size: 16px;}.wiz-table-color-pad .wiz-table-color-pad-item:last-child {margin-right: 0;}.wiz-table-color-pad .wiz-table-color-pad-item.active i.editor-icon.icon-box {color: #448aff;}.wiz-table-color-pad .wiz-table-color-pad-item .color-block-icon {width: 14px; height: 14px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);}.wiz-table-color-pad .wiz-table-color-pad-item .icon-border {width: 14px;margin: 0;height: 14px; border: 1px solid #a7afbc; border-radius: 2px;position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);}.wiz-table-color-pad .wiz-table-color-pad-item.active .icon-border {border: 2px solid #448aff;}.wiz-table-cell-align {display: none;padding: 10px;box-sizing: border-box;min-width: 85px;height: 65px;background-color: #fff;cursor: default;}.wiz-table-cell-align .wiz-table-cell-align-item {display: inline-block;width: 15px;height: 15px;margin-right: 9px;position: relative;}.wiz-table-cell-align .wiz-table-cell-align-item[data-align-type=align] {margin-right:8px}.wiz-table-cell-align .wiz-table-cell-align-item:last-child {margin-right:0}.wiz-table-cell-align .wiz-table-cell-align-item i.valign{color: #d2d2d2;}.wiz-table-cell-align-item i.editor-icon.align {font-size:17px;}.wiz-table-cell-align-item.active i.editor-icon.valign {color: #a1c4ff;}.wiz-table-cell-align-item.active i.editor-icon.icon-box,.wiz-table-cell-align-item.active i.editor-icon.align {color: #448aff;}.wiz-table-color-pad .wiz-table-color-pad-item:last-child,.wiz-table-cell-align .wiz-table-cell-align-item:last-child {margin-right: 0;}"+".".concat(r.CLASS.EDITING,".").concat(r.CLASS.WIZ_BODY," th.wiz-selected-cell-multi,")+".".concat(r.CLASS.EDITING,".").concat(r.CLASS.WIZ_BODY," td.wiz-selected-cell-multi {background: rgba(0,102,255,.05);}")+".".concat(r.CLASS.EDITING,".").concat(r.CLASS.WIZ_BODY," th:before,")+".".concat(r.CLASS.EDITING,".").concat(r.CLASS.WIZ_BODY," td:before,")+"#wiz-table-col-line:before,#wiz-table-range-border_start_right:before,"+'#wiz-table-range-border_range_right:before {content: " ";position: absolute;top: 0;bottom: 0;right: -5px;width: 9px;cursor: col-resize;background: transparent;z-index:'.concat(r.CSS.Z_INDEX.tableTDBefore,";}")+".".concat(r.CLASS.EDITING,".").concat(r.CLASS.WIZ_BODY," th:after,")+".".concat(r.CLASS.EDITING,".").concat(r.CLASS.WIZ_BODY," td:after,")+"#wiz-table-row-line:before,#wiz-table-range-border_start_bottom:before,"+'#wiz-table-range-border_range_bottom:before {content: " ";position: absolute;left: 0;right: 0;bottom: -5px;height: 9px;cursor: row-resize;background: transparent;z-index:'.concat(r.CSS.Z_INDEX.tableTDBefore,";}")+".".concat(r.CLASS.EDITING,".").concat(r.CLASS.WIZ_BODY," tr:last-child th:after,")+".".concat(r.CLASS.EDITING,".").concat(r.CLASS.WIZ_BODY," tr:last-child td:after,")+"#wiz-table-row-line:before,#wiz-table-range-border_start_bottom:before,#wiz-table-range-border_range_bottom:before {bottom: 0px;height: 4px;}"+"#".concat(r.ID.IMAGE_MENU_CONTAINER," {position: absolute; z-index: 400;}")+".".concat(r.CLASS.WIZ_BODY," #").concat(r.ID.IMAGE_MENU_CONTAINER," div,.").concat(r.CLASS.WIZ_BODY," #").concat(r.ID.IMAGE_MENU_CONTAINER," ul,.").concat(r.CLASS.WIZ_BODY," #").concat(r.ID.IMAGE_MENU_CONTAINER," li {margin: 0;}")+"#".concat(r.ID.IMAGE_MENU_CONTAINER," .").concat(r.CLASS.IMG_MENU," {display: flex;height: 32px;background-color: #ffffff;box-shadow: 0px 3px 8px 0px \n rgba(0, 0, 0, 0.2);border-radius: 4px;opacity: 0.98;}")+"#".concat(r.ID.IMAGE_MENU_CONTAINER," .").concat(r.CLASS.IMG_MENU," .icon-button{display:flex;justify-items:center;width:44px;height:32px;line-height:32px;border: none;outline:none;font-size: 14px;padding:0 0 0 10px;cursor: pointer;border-radius: 4px;}")+"#".concat(r.ID.IMAGE_MENU_CONTAINER," .").concat(r.CLASS.IMG_MENU," .icon-button i{align-self:center;}")+"#".concat(r.ID.IMAGE_MENU_CONTAINER," .").concat(r.CLASS.IMG_MENU," .icon-button .icon-rotation_right {font-size: 18px;}")+"#".concat(r.ID.IMAGE_MENU_CONTAINER," .").concat(r.CLASS.IMG_SUB_MENU_CONTAINER," {position: relative;}")+"#".concat(r.ID.IMAGE_MENU_CONTAINER," .").concat(r.CLASS.IMG_SUB_MENU_CONTAINER," .").concat(r.CLASS.IMG_SUB_MENU," {position: absolute; top: 40px;list-style-type: none; padding: 8px 0;background-color: #ffffff;box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.2);opacity: 0.98;display: none;}")+"#".concat(r.ID.IMAGE_MENU_CONTAINER," .").concat(r.CLASS.IMG_SUB_MENU_CONTAINER," .").concat(r.CLASS.IMG_SUB_MENU," .").concat(r.CLASS.IMG_SUB_MENU_ITEM," {padding: 0 15px;font-size: 14px;height: 32px;line-height: 32px;cursor: pointer;white-space: nowrap;color:#172b4d;}")+"#".concat(r.ID.IMAGE_MENU_CONTAINER," .").concat(r.CLASS.IMG_SUB_MENU_CONTAINER," .").concat(r.CLASS.IMG_SUB_MENU," .").concat(r.CLASS.IMG_SUB_MENU_ITEM,":hover {background-color: #e8f2ff;}")+"#".concat(r.ID.IMAGE_MENU_CONTAINER," .").concat(r.CLASS.IMG_SUB_MENU_CONTAINER," .").concat(r.CLASS.IMG_SUB_MENU," .").concat(r.CLASS.IMG_SUB_MENU_ITEM,".is-del {color: #ef403a;}")},a={ios:".".concat(r.CLASS.WIZ_BODY," {cursor:pointer;}")+".".concat(r.CLASS.READONLY,".").concat(r.CLASS.WIZ_BODY," img {")+"max-width: 100%;height: auto !important;margin: 0px auto;cursor: pointer;}"},l="html, body {min-width: 0; max-width: 100%;}",s="html {height:100%;} "+"body, .".concat(r.CLASS.WIZ_BODY," {-webkit-tap-highlight-color:rgba(255,255,255,0);}")+".".concat(r.CLASS.WIZ_BODY," {min-height:100%;box-sizing:border-box;word-wrap: break-word !important;outline:none;}")+".".concat(r.CLASS.WIZ_BODY," img::selection {background-color: rgba(0, 0, 255, 0.3);}")+".".concat(r.CLASS.WIZ_BODY," input:disabled, ")+".".concat(r.CLASS.WIZ_BODY," textarea:disabled {opacity: 1;}")+"a {cursor:pointer;}::-ms-clear,::-ms-reveal{display:none;}"+r.TAG.TMP_TAG+" {line-height: 1.7;}",c=".wiz-block-scroll::-webkit-scrollbar {width: 7px;height: 7px;}.wiz-block-scroll::-webkit-scrollbar-thumb {background-color: #7f7f7f;border-radius: 7px;}.wiz-block-scroll::-webkit-scrollbar-button {display: none;}",d=".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.SELECT_PLUGIN_CONTAINER," {position:relative;display:inline-block;width:160px;height:28px;border-radius:4px;padding:0;margin-left:5px;cursor:pointer;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.SELECT_PLUGIN_CONTAINER,".icon {width:28px;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.MENU_PLUGIN_CONTAINER," div,")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.SELECT_PLUGIN_CONTAINER," div {margin-top:0;margin-bottom:0;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.SELECT_PLUGIN_CONTAINER,", ")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.MENU_PLUGIN_OPTIONS," {box-sizing:border-box;background:white;border:1px solid #e7e7e7;color:#172b4d;box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.15)}")+".".concat(r.CLASS.WIZ_BODY," .wiz-select-plugin-header {line-height:28px;font-size:14px;padding: 0 0 0 5px;overflow:hidden;margin-right:27px;white-space:nowrap;}")+".".concat(r.CLASS.WIZ_BODY," .wiz-select-plugin-header i {position:absolute;top:0;right:0;line-height:26px;padding:0;text-align:center;min-width:27px;border-left:1px solid #e7e7e7;box-sizing:border-box;}")+".".concat(r.CLASS.WIZ_BODY," .wiz-select-plugin-header i.icon-more {font-size:16px;border:0;width:100%;height:100%}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.MENU_PLUGIN_OPTIONS," {display:none;background:white;list-style:none;padding:8px 0;margin:0;white-space:nowrap;min-width:160px;max-width:260px;overflow-x:hidden;overflow-y:auto;position:absolute;z-index:999999;border-radius:4px;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.MENU_PLUGIN_OPTIONS_ITEM," {cursor:pointer;font-size:14px;padding:6px 20px;line-height:normal;margin: 0px !important;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.MENU_PLUGIN_OPTIONS_ITEM,".disabled {color:#a7afbc;cursor:default;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.MENU_PLUGIN_OPTIONS_ITEM,".selected {background:#f4f6f9;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.MENU_PLUGIN_OPTIONS_ITEM,":hover {background:#f4f6f9 !important;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.MENU_PLUGIN_OPTIONS_ITEM,".disabled:hover {background:transparent !important;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.MENU_PLUGIN_OPTIONS_ITEM," .icon-checkmark {visibility: hidden;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.MENU_PLUGIN_OPTIONS_ITEM," .icon-checkmark.active {visibility: visible;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.MENU_PLUGIN_OPTIONS_ITEM," .").concat(r.CLASS.HOTKEY_LAYER," {min-width:160px;display:flex;align-items:center;justify-content:space-between;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.MENU_PLUGIN_OPTIONS_ITEM," .").concat(r.CLASS.HOTKEY_LAYER," .").concat(r.CLASS.HOTKEY," {color:#A7AFBC;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.MENU_PLUGIN_CONTAINER,".active .").concat(r.CLASS.MENU_PLUGIN_OPTIONS," {display:block;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.MENU_PLUGIN_CONTAINER,".").concat(r.CLASS.SELECT_PLUGIN_MENU," .").concat(r.CLASS.MENU_PLUGIN_OPTIONS," {max-height:250px;}"),u=".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TABLE_CONTAINER," {border:0px !important;margin-top:0;margin-bottom:20px;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TABLE_BODY," {border:0px !important;position:relative;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;outline:none;margin-top:0;padding: ").concat(r.CSS.TABLECOMPONENT.PADDING,"px 0px 5px 0px;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TABLE_BODY," table {margin:0;outline:none;}")+".".concat(r.CLASS.WIZ_BODY," td,")+".".concat(r.CLASS.WIZ_BODY," th {outline:none;}"),f={common:"html, .".concat(r.CLASS.WIZ_BODY," {")+"font-size: 12pt;}"+".".concat(r.CLASS.WIZ_BODY," {")+"font-family: ".concat(r.CSS.DEFAULT_FONT,";line-height: 1.7;")+"margin: 0 auto;position:relative;padding: 20px 48px;}"+".".concat(r.CLASS.WIZ_BODY," h1,")+".".concat(r.CLASS.WIZ_BODY," h2,")+".".concat(r.CLASS.WIZ_BODY," h3,")+".".concat(r.CLASS.WIZ_BODY," h4,")+".".concat(r.CLASS.WIZ_BODY," h5,")+".".concat(r.CLASS.WIZ_BODY," h6 {margin:20px 0 10px;margin:1.25rem 0 0.625rem;padding: 0;font-weight: bold;}")+".".concat(r.CLASS.WIZ_BODY," h1 {font-size:20pt;font-size:1.67rem;}")+".".concat(r.CLASS.WIZ_BODY," h2 {font-size:18pt;font-size:1.5rem;}")+".".concat(r.CLASS.WIZ_BODY," h3 {font-size:15pt;font-size:1.25rem;}")+".".concat(r.CLASS.WIZ_BODY," h4 {font-size:14pt;font-size:1.17rem;}")+".".concat(r.CLASS.WIZ_BODY," h5 {font-size:12pt;font-size:1rem;}")+".".concat(r.CLASS.WIZ_BODY," h6 {font-size:12pt;font-size:1rem;color: #777777;margin: 1rem 0;}")+".".concat(r.CLASS.WIZ_BODY," div,")+".".concat(r.CLASS.WIZ_BODY," p,")+".".concat(r.CLASS.WIZ_BODY," ul,")+".".concat(r.CLASS.WIZ_BODY," ol,")+".".concat(r.CLASS.WIZ_BODY," dl,")+".".concat(r.CLASS.WIZ_BODY," li {margin:8px 0 0;}")+".".concat(r.CLASS.WIZ_BODY," blockquote,")+".".concat(r.CLASS.WIZ_BODY," table,")+".".concat(r.CLASS.WIZ_BODY," pre,")+".".concat(r.CLASS.WIZ_BODY," code {margin:8px 0;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.CODE_MIRROR," pre {margin:0;}")+".".concat(r.CLASS.WIZ_BODY," a {word-wrap: break-word;text-decoration-skip-ink: none;}")+".".concat(r.CLASS.WIZ_BODY," ul,")+".".concat(r.CLASS.WIZ_BODY," ol {padding-left:32px;padding-left:2rem;}")+".".concat(r.CLASS.WIZ_BODY," ol.").concat(r.CLASS.ORDER_LIST_LEVEL[1]," > li {list-style-type:decimal;}")+".".concat(r.CLASS.WIZ_BODY," ol.").concat(r.CLASS.ORDER_LIST_LEVEL[2]," > li {list-style-type:lower-latin;}")+".".concat(r.CLASS.WIZ_BODY," ol.").concat(r.CLASS.ORDER_LIST_LEVEL[0]," > li {list-style-type:lower-roman;}")+".".concat(r.CLASS.WIZ_BODY," li.").concat(r.CLASS.ORDER_LIST_ALIGN_STYLE," {list-style-position: inside; margin-left: -1em;}")+".".concat(r.CLASS.WIZ_BODY," blockquote {padding: 0 12px;}")+".".concat(r.CLASS.WIZ_BODY," blockquote > :first-child {margin-top:0;}")+".".concat(r.CLASS.WIZ_BODY," blockquote > :last-child {margin-bottom:0;}")+".".concat(r.CLASS.WIZ_BODY," img {border:0;max-width:100%;height:auto !important;margin:2px 0;padding: 2px;vertical-align:bottom;}")+".".concat(r.CLASS.WIZ_BODY," table {border-collapse:collapse;border:1px solid #a7afbc;}")+".".concat(r.CLASS.WIZ_BODY," td,")+".".concat(r.CLASS.WIZ_BODY," th {padding:4px 8px;border-collapse:collapse;border:1px solid #a7afbc;min-height:28px;word-break:break-word;box-sizing: border-box;}")+".".concat(r.CLASS.WIZ_BODY," td > div:first-child {margin-top:0;}")+".".concat(r.CLASS.WIZ_BODY," td > div:last-child {margin-bottom:0;}")+".".concat(r.CLASS.WIZ_BODY," img.").concat(r.CLASS.SVG_IMAGE," {box-shadow:1px 1px 4px #E8E8E8;}")+".wiz-hide {display:none !important;}",img:".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.IMG_CONTAINER," {margin:0;max-width: 100%;display: inline-flex;flex-direction: column;}")+".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.IMG_CONTAINER," .").concat(r.CLASS.IMG_TITLE," {display:inline-block;text-align: center;color: #a7afbc;line-height: 18px;font-size: 12px;min-height: 18px;width: 100%;white-space: normal;}")},h=".".concat(r.CLASS.WIZ_BODY," .").concat(r.CLASS.TABLE_BODY," {padding-top: 0px;}"),p=".".concat(r.CLASS.WIZ_BODY," {padding-left: 16px; padding-right: 16px;}");e.exports=function(){var e=this,t=null,n=null,m=null,g=function(){n.body===n.doc.body&&(n.body.style.height="",n.body.style.width="")};this.initCore=function(e){n=(t=e).env,m=t.require.domUtils},this.insertDefaultStyle=function(t,n){if(e.insertStyle({id:r.ID.TMP_STYLE_PRE+"default_img"},f.img),e.replaceStyleById(r.ID.WIZ_DEFAULT_STYLE,f.common,t),n){var o,i=!1;if("string"==typeof n)o=n,i=!0;else{for(var a in o="html, body{",n)n.hasOwnProperty(a)&&("font-family"===a.toLowerCase()?o+=a+":"+n[a]+","+r.CSS.DEFAULT_FONT+";":o+=a+":"+n[a]+";",i=!0);o+="}"}i&&e.insertStyle({id:r.ID.TMP_STYLE_PRE+"default_custom",name:r.NAME.TMP_STYLE},o)}},this.insertCustomStyle=function(t,n,o){if(t&&n){var i={id:t};o&&(i.name=r.NAME.TMP_STYLE),e.insertStyle(i,n)}},this.insertStyle=function(t,r,i){i||(i=n.doc);var a=i.createElement("style");t.name&&m.attr(a,{name:t.name});var l=null,s=null;return t.id&&(s=t.id+"_tmp",(l=e.getStyleById(t.id,i))&&m.attr(l,{id:s}),m.attr(a,{id:t.id})),a.innerHTML=r,o.dom.insertToHead(a,i),e.removeStyleById(s,i),a},this.insertTmpEditorStyle=function(){g();var t=s+u+d+i.code+i.imageResize+i.tooltip+i.table;n.options.useFrame&&(t+=l),n.options.editor.type===r.NOTE_EDITOR_TYPE.MARKDOWN&&(t+=i.tableInMarkdown),n.supportTouchEvent&&(t+=h+p),e.insertStyle({id:r.ID.TMP_STYLE_PRE+"editor_common",name:r.NAME.TMP_STYLE},t),n.client.type.isIOS&&n.client.type.isPhone?e.insertStyle({id:r.ID.TMP_STYLE_PRE+"editor_ios_phone",name:r.NAME.TMP_STYLE},i.iosPhone):n.client.type.isIOS&&n.client.type.isPad&&e.insertStyle({id:r.ID.TMP_STYLE_PRE+"editor_ios_pad",name:r.NAME.TMP_STYLE},i.iosPad),n.client.type.isMac&&e.insertStyle({id:r.ID.TMP_STYLE_PRE+"editor_block_scroll",name:r.NAME.TMP_STYLE},c)},this.insertTmpReaderStyle=function(){g();var t=s+u+d;n.options.useFrame&&(t+=l),n.supportTouchEvent&&(t+=h+p),e.insertStyle({id:r.ID.TMP_STYLE_PRE+"reader_common",name:r.NAME.TMP_STYLE},t),n.client.type.isIOS&&e.insertStyle({id:r.ID.TMP_STYLE_PRE+"reader_ios",name:r.NAME.TMP_STYLE},a.ios),n.client.type.isMac&&e.insertStyle({id:r.ID.TMP_STYLE_PRE+"reader_block_scroll",name:r.NAME.TMP_STYLE},c)},this.removeFormat=function(e,t,o){var i,a,l,s,c,d=function(e){return!!e&&1===e.nodeType&&(m.isTag(e,[r.TAG.TMP_TAG,r.TAG.TMP_PLUGIN_TAG])||e.getAttribute("name")===r.NAME.TMP_STYLE||/^wiz[_-]/i.test(e.id)||/(^| )wiz[_-]/i.test(e.className))};try{if(e&&n.doc.execCommand("SelectAll"),t&&n.doc.execCommand("RemoveFormat"),e&&(i=n.doc.documentElement)&&o&&m.eachChild(i,(function(e){return!m.hasClass(e,r.CLASS.CODE_CONTAINER)}),(function(e){d(e)||(m.attr(e,{style:null}),m.attr(e,{class:null}),e.style.cssText&&(e.style.cssText=""))})),o){for(var u=(a=n.doc.getElementsByTagName("link")).length-1;u>=0;u--)"stylesheet"!==(l=a[u]).getAttribute("rel")||d(l)||l.remove();for(var f=(s=n.doc.getElementsByTagName("style")).length-1;f>=0;f--)c=s[f],d(c)||c.remove()}}catch(e){return void console.error(e)}},this.getStyleById=function(e,t){t||(t=n.doc);var r=t.getElementById(e);return r&&m.isTag(r,["style","link"])?r:null},this.removeStyleById=function(t,n){if(t){var r=e.getStyleById(t,n);r&&m.remove(r)}},this.removeStyleByName=function(e){for(var t=n.doc.getElementsByName(e),r=t.length-1;r>=0;r--){var o=t[r];o&&m.isTag(o,["style","link"])&&m.remove(o)}},this.replaceStyleById=function(e,t,r){r=!!r;var i=n.doc.getElementById(e);i||r||((i=n.doc.createElement("style")).id=e,o.dom.insertToHead(i,n.doc)),i&&(i.innerHTML=t)}}},function(e,t,n){var r,o,i,a=n(218),l={init:function(e){return(e=e||{}).editor||(e.editor={}),e.reader||(e.reader={}),void 0!==e.autoFocus&&(e.editor.autoFocus=e.autoFocus,delete e.autoFocus),void 0!==e.maxUndo&&(e.editor.maxUndo=e.maxUndo,delete e.maxUndo),void 0!==e.noAmend&&(e.reader.noAmend=e.noAmend,delete e.noAmend),void 0!==e.codeNoIDE&&(e.reader.codeNoIDE=e.codeNoIDE,delete e.codeNoIDE),void 0!==e.markdownPlugIn&&(e.reader.markdownPlugIn=e.markdownPlugIn,delete e.markdownPlugIn),void 0!==e.timeout&&(e.reader.timeout=e.timeout,delete e.timeout),e.editor.callback=e.editor.callback||{},e.reader.callback=e.reader.callback||{},void 0!==e.callback&&(e.callback.undo&&(e.editor.callback.undo=e.callback.undo),e.callback.markerUndo&&(e.editor.callback.markerUndo=e.callback.markerUndo),e.callback.markerInitiated&&(e.editor.callback.markerInitiated=e.callback.markerInitiated),e.callback.beforeMarkdownRender&&(e.reader.callback.beforeMarkdownRender=e.callback.beforeMarkdownRender),e.callback.markdown&&(e.reader.callback.markdown=e.callback.markdown),e.callback.mathJax&&(e.reader.callback.mathJax=e.callback.mathJax),e.callback.onClickLink?(delete e.callback.beforeMarkdownRender,delete e.callback.markdown,delete e.callback.mathJax,delete e.callback.undo,delete e.callback.markerUndo,delete e.callback.markerInitiated):delete e.callback),r=new a(e,(function(e){o=e})),l.version=r.version,l.destroy=r.destroy,l.on=function(e,t){return r.editor.on(e,t),l},l.off=function(e,t){return r.reader.on(e,t),l},l.backupCaret=r.editor.caretBackup,l.createSvg=r.editor.createSvg,l.execCommand=r.editor.execCommand,l.find=r.editor.find,l.focus=function(){return r.editor.focus(),l},l.getBodyText=r.editor.getBodyText,l.getContentHtml=r.editor.getContentHtml,l.getMarkdownSrc=r.editor.getMarkdownSrc,l.insertCustomStyle=function(e,t,n){return r.insertCustomStyle(e,t,n),l},l.insertDefaultStyle=function(e,t){return r.insertDefaultStyle(e,t),l},l.insertB64Html=r.editor.insertB64Html,l.insertHtml=r.editor.insertHtml,l.isModified=r.editor.isModified,l.modifySelectionBlock=r.editor.modifySelectionBlock,l.modifySelectionDom=r.editor.modifySelectionDom,l.paste=r.editor.paste,l.pasteB64=r.editor.pasteB64,l.redo=function(){return r.editor.redo(),l},l.removeFormat=function(e,t,n){return r.editor.removeFormat(e,t,n),l},l.removeStyleById=function(e){return r.removeStyleById(e),l},l.replace=r.editor.replace,l.replaceAll=r.editor.replaceAll,l.restoreCaret=r.editor.caretRestore,l.saveSnap=r.editor.saveSnap,l.setUnModified=r.editor.setUnModified,l.undo=function(){return r.editor.undo(),l},l.ListenerType=r.editor.ListenerType,l.addListener=function(e,t){return r.editor.addListener(e,t),l},l.removeListener=function(e,t){return r.editor.removeListener(e,t),l},l.triggerListener=function(e,t){return r.editor.triggerListener(e,t),l},l.startTrackEvent=r.editor.startTrackEvent,l.stopTrackEvent=r.editor.stopTrackEvent,l.amend.on=function(){return r.editor.amend.on(),l},l.amend.off=function(){return r.editor.amend.off(),l},l.amend.changeCurUser=r.editor.amend.changeCurUser,l.amend.isEdited=r.editor.amend.isEdited,l.amend.isEditing=r.editor.amend.isEditing,l.amend.hasAmendSpanByCursor=r.editor.amend.hasAmendSpanByCursor,l.amend.accept=r.editor.amend.accept,l.amend.refuse=r.editor.amend.refuse,l.nightMode.on=r.nightMode.on,l.nightMode.off=r.nightMode.off,l.code=r.editor.code,l.formatPainter=r.editor.formatPainter,l.img=r.editor.img,l.link=r.editor.link,l.marker=r.editor.marker,l.range=r.editor.range,l.table=r.editor.table,l.todo=r.editor.todo,l.toolbar=r.editor.toolbar,l.utils=r.editor.utils,l.outline=r.outline,s.on=function(e,t){return r.reader.on(e,t),s},s.off=function(e,t){return r.editor.on(e,t),s},s.closeDocument=r.reader.closeDocument,s.getRenderDocument=r.reader.getRenderDocument,s.getWordCount=r.reader.getWordCount,s.insertCustomStyle=function(e,t,n){return r.insertCustomStyle(e,t,n),s},s.insertDefaultStyle=function(e,t){return r.insertDefaultStyle(e,t),s},s.removeStyleById=function(e){return r.removeStyleById(e),s},s.setPluginModify=r.reader.setPluginModify,s.amendInfo.on=function(){return r.reader.amend.on(),s},s.amendInfo.off=function(){return r.reader.amend.off(),s},s.highlight.next=r.reader.highlight.next,s.highlight.on=r.reader.highlight.on,s.highlight.off=r.reader.highlight.off,s.highlight.previous=r.reader.highlight.previous,s.img.getAll=r.editor.img.getAll,s.marker=r.reader.marker,s.pureRead.on=r.reader.pureRead.on,s.pureRead.off=r.reader.pureRead.off,s.todo.setTodoInfo=r.reader.todo.setTodoInfo,s.todo.onCheckDocLock=r.reader.todo.onCheckDocLock,s.nightMode.on=r.nightMode.on,s.nightMode.off=r.nightMode.off,i&&i(o),l},amend:{},code:{},formatPainter:{},img:{},link:{},range:{},table:{},todo:{},nightMode:{},utils:{},toolbar:{}},s={init:l.init,amendInfo:{},highlight:{},img:{},nightMode:{},pureRead:{},todo:{}};window.WizEditor=l,window.WizReader=s,e.exports={wizEditor:l,wizReader:s,setCoreCallback:function(e){i=e}}},,function(e,t,n){(0,n(563).setCoreCallback)((function(e){var t=e.env,n=e.require.clientBridge;t.win.initForWebEngine=function(){n.setQtEditor()}}))}]); \ No newline at end of file diff --git a/src/WizDocumentWebView.cpp b/src/WizDocumentWebView.cpp index 96123cd05..a759b33b4 100755 --- a/src/WizDocumentWebView.cpp +++ b/src/WizDocumentWebView.cpp @@ -698,14 +698,17 @@ void WizDocumentWebView::replaceDefaultCss(QString& strHtml) backgroundColor = m_bInSeperateWindow ? "#F5F5F5" : "#FFFFFF"; } // + QString textColor = "#000000"; if (isDarkMode()) { backgroundColor = "#272727"; + textColor = "#a6a6a6"; } // strCss.replace("/*default-background-color*/", QString("background-color:%1;").arg(backgroundColor)); strCss.replace("/*default-line-height*/", QString("line-height:%1;").arg(lineHeight)); strCss.replace("/*default-para-spacing*/", QString("margin-top:%1px; margin-bottom:%1px").arg(paraSpacing)); + strCss.replace("/*default-text-color*/", QString("color: %1;").arg(textColor)); // const QString customCssId("wiz_custom_css"); @@ -1030,14 +1033,6 @@ QString WizDocumentWebView::getHighlightKeywords() void WizDocumentWebView::onEditorLoadFinished(bool ok) { - WizDocumentWebView* self = this; - if (isDarkMode()) { - // - QTimer::singleShot(1000, [=] { - self->setVisible(true); - }); - } - // if (!ok) return; // @@ -1301,7 +1296,7 @@ void WizDocumentWebView::on_insertCodeHtml_requset(QString strOldHtml) #ifdef QT_DEBUG -//#define DEBUG_EDITOR +#define DEBUG_EDITOR #endif void WizDocumentWebView::getAllEditorScriptAndStypeFileName(std::map& files) @@ -1310,7 +1305,7 @@ void WizDocumentWebView::getAllEditorScriptAndStypeFileName(std::mapsetBackgroundColor(QColor("#272727")); - setVisible(false); } // m_strNoteHtmlFileName = strFileName; diff --git a/src/WizMainWindow.cpp b/src/WizMainWindow.cpp index 94cfb83ec..b639dba2c 100755 --- a/src/WizMainWindow.cpp +++ b/src/WizMainWindow.cpp @@ -429,6 +429,7 @@ void WizMainWindow::on_application_aboutToQuit() void WizMainWindow::cleanOnQuit() { m_quiting = true; + qInstallMessageHandler(nullptr); // WizObjectDownloaderHost::instance()->waitForDone(); WizKMSyncThread::setQuickThread(NULL); From 8472fc1278848378df050c722b2e284df91af1b7 Mon Sep 17 00:00:00 2001 From: wizweishijun Date: Thu, 28 May 2020 10:44:04 +0800 Subject: [PATCH 10/31] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=99=A8=EF=BC=8C=E4=BB=85=E7=94=A8analyze?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WizNote.pro | 10 +++++---- build/osx/Info.plist | 2 ++ share/files/wizeditor/default.css | 4 ++-- share/files/wizeditor/dependency/github2.css | 22 +++++++++++++------- share/files/wizeditor/wizEditorForMac.js | 2 +- src/WizDocumentWebView.cpp | 2 +- src/share/WizAnalyzer.cpp | 9 ++++++++ src/sync/WizAvatarHost.cpp | 1 + src/sync/WizKMServer.h | 1 + 9 files changed, 38 insertions(+), 15 deletions(-) mode change 100644 => 100755 share/files/wizeditor/dependency/github2.css mode change 100644 => 100755 share/files/wizeditor/wizEditorForMac.js diff --git a/WizNote.pro b/WizNote.pro index 1a4da0e18..3325488d5 100644 --- a/WizNote.pro +++ b/WizNote.pro @@ -1,9 +1,11 @@ TEMPLATE = subdirs +CONFIG += ordered + SUBDIRS += \ - src \ - lib/quazip \ lib/zlib \ - lib/cryptopp - + lib/quazip \ + lib/cryptopp \ + src +quazip.depends = zlib diff --git a/build/osx/Info.plist b/build/osx/Info.plist index f7fdf963b..5eee6c577 100644 --- a/build/osx/Info.plist +++ b/build/osx/Info.plist @@ -59,6 +59,8 @@
    + NSRequiresAquaSystemAppearance + NSServices diff --git a/share/files/wizeditor/default.css b/share/files/wizeditor/default.css index 4fcc84ae6..243a35a8b 100644 --- a/share/files/wizeditor/default.css +++ b/share/files/wizeditor/default.css @@ -1,4 +1,4 @@ -html, .wiz-editor-body {font-size: 12pt;}.wiz-editor-body {font-family: Helvetica, "Hiragino Sans GB", "微软雅黑", "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif;line-height: 1.7;margin: 0 auto;position:relative;padding: 20px 48px;}.wiz-editor-body h1,.wiz-editor-body h2,.wiz-editor-body h3,.wiz-editor-body h4,.wiz-editor-body h5,.wiz-editor-body h6 {margin:20px 0 10px;margin:1.25rem 0 0.625rem;padding: 0;font-weight: bold;}.wiz-editor-body h1 {font-size:20pt;font-size:1.67rem;}.wiz-editor-body h2 {font-size:18pt;font-size:1.5rem;}.wiz-editor-body h3 {font-size:15pt;font-size:1.25rem;}.wiz-editor-body h4 {font-size:14pt;font-size:1.17rem;}.wiz-editor-body h5 {font-size:12pt;font-size:1rem;}.wiz-editor-body h6 {font-size:12pt;font-size:1rem;color: #777777;margin: 1rem 0;}.wiz-editor-body div,.wiz-editor-body p,.wiz-editor-body ul,.wiz-editor-body ol,.wiz-editor-body dl,.wiz-editor-body li {margin:8px 0 0;}.wiz-editor-body blockquote,.wiz-editor-body table,.wiz-editor-body pre,.wiz-editor-body code {margin:8px 0;}.wiz-editor-body .CodeMirror pre {margin:0;}.wiz-editor-body a {word-wrap: break-word;text-decoration-skip-ink: none;}.wiz-editor-body ul,.wiz-editor-body ol {padding-left:32px;padding-left:2rem;}.wiz-editor-body ol.wiz-list-level1 > li {list-style-type:decimal;}.wiz-editor-body ol.wiz-list-level2 > li {list-style-type:lower-latin;}.wiz-editor-body ol.wiz-list-level3 > li {list-style-type:lower-roman;}.wiz-editor-body li.wiz-list-align-style {list-style-position: inside; margin-left: -1em;}.wiz-editor-body blockquote {padding: 0 12px;}.wiz-editor-body blockquote > :first-child {margin-top:0;}.wiz-editor-body blockquote > :last-child {margin-bottom:0;}.wiz-editor-body img {border:0;max-width:100%;height:auto !important;margin:2px 0;padding: 2px;vertical-align:bottom;}.wiz-editor-body table {border-collapse:collapse;border:1px solid #a7afbc;}.wiz-editor-body td,.wiz-editor-body th {padding:4px 8px;border-collapse:collapse;border:1px solid #a7afbc;min-height:28px;word-break:break-word;box-sizing: border-box;}.wiz-editor-body td > div:first-child {margin-top:0;}.wiz-editor-body td > div:last-child {margin-bottom:0;}.wiz-editor-body img.wiz-svg-image {box-shadow:1px 1px 4px #E8E8E8;}.wiz-hide {display:none !important;} +html, .wiz-editor-body {font-size: 12pt;}.wiz-editor-body {font-family: Helvetica, "Hiragino Sans GB", "微软雅黑", "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif;line-height: 1.7;margin: 0 auto;position:relative;padding: 20px 48px;}.wiz-editor-body h1,.wiz-editor-body h2,.wiz-editor-body h3,.wiz-editor-body h4,.wiz-editor-body h5,.wiz-editor-body h6 {margin:20px 0 10px;margin:1.25rem 0 0.625rem;padding: 0;font-weight: bold;}.wiz-editor-body h1 {font-size:20pt;font-size:1.67rem;}.wiz-editor-body h2 {font-size:18pt;font-size:1.5rem;}.wiz-editor-body h3 {font-size:15pt;font-size:1.25rem;}.wiz-editor-body h4 {font-size:14pt;font-size:1.17rem;}.wiz-editor-body h5 {font-size:12pt;font-size:1rem;}.wiz-editor-body h6 {font-size:12pt;font-size:1rem;color: #777777;margin: 1rem 0;}.wiz-editor-body div,.wiz-editor-body p,.wiz-editor-body ul,.wiz-editor-body ol,.wiz-editor-body dl,.wiz-editor-body li {margin:8px 0 0;}.wiz-editor-body blockquote,.wiz-editor-body table,.wiz-editor-body pre,.wiz-editor-body code {margin:8px 0;}.wiz-editor-body .CodeMirror pre {margin:0;}.wiz-editor-body a {word-wrap: break-word;text-decoration-skip-ink: none;}.wiz-editor-body ul,.wiz-editor-body ol {padding-left:32px;padding-left:2rem;}.wiz-editor-body ol.wiz-list-level1 > li {list-style-type:decimal;}.wiz-editor-body ol.wiz-list-level2 > li {list-style-type:lower-latin;}.wiz-editor-body ol.wiz-list-level3 > li {list-style-type:lower-roman;}.wiz-editor-body li.wiz-list-align-style {list-style-position: inside; margin-left: -1em;}.wiz-editor-body blockquote {padding: 0 12px;}.wiz-editor-body blockquote > :first-child {margin-top:0;}.wiz-editor-body blockquote > :last-child {margin-bottom:0;}.wiz-editor-body img {border:0;max-width:100%;height:auto !important;margin:2px 0;padding: 2px;vertical-align:bottom;}.wiz-editor-body table {border-collapse:collapse;border:1px solid #a7afbc;}.wiz-editor-body td,.wiz-editor-body th {padding:4px 8px;border-collapse:collapse;border:1px solid #a7afbc;min-height:28px;word-break:break-word;box-sizing: border-box;}.wiz-editor-body td > div:first-child {margin-top:0;}.wiz-editor-body td > div:last-child {margin-bottom:0;}.wiz-editor-body img.wiz-svg-image {box-shadow:1px 1px 4px #E8E8E8;}.wiz-editor-body .wiz-image-container {margin:0;max-width: 100%;display: inline-flex;flex-direction: column;}.wiz-editor-body .wiz-image-container .wiz-image-title {display:inline-block;text-align: center;color: #a7afbc;line-height: 18px;font-size: 12px;min-height: 18px;width: 100%;white-space: normal;}.wiz-hide {display:none !important;} html, .wiz-editor-body { /*default-font-family*/ @@ -11,5 +11,5 @@ body.wiz-editor-body div, body.wiz-editor-body p, body.wiz-editor-body ul, body. /*default-para-spacing*/ } body, .wiz-editor-body { - padding-top: 8px; + padding-top: 8px !important; } diff --git a/share/files/wizeditor/dependency/github2.css b/share/files/wizeditor/dependency/github2.css old mode 100644 new mode 100755 index 4e58bcb23..22349a6d1 --- a/share/files/wizeditor/dependency/github2.css +++ b/share/files/wizeditor/dependency/github2.css @@ -1,6 +1,6 @@ .markdown-body { margin: 0 auto; - padding: 20px 36px; + padding: 20px 48px; } .markdown-body.mobile { @@ -100,15 +100,15 @@ /*margin: 1em 0;*/ /*}*/ -.markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, +/* .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body pre { margin: 0 0 10px; margin: 0 0 .83rem; -} +} */ -.markdown-body li { +/* .markdown-body li { margin: 5px 0; -} +} */ .markdown-body li.wiz-md-todo-list-item { list-style: none; @@ -162,10 +162,10 @@ padding-left: 8px; } -.markdown-body ul, .markdown-body ol { +/* .markdown-body ul, .markdown-body ol { padding-left: 34px; padding-left: 2.13rem; -} +} */ .markdown-body td ul, .markdown-body td ol { padding-left: 16px; padding-left: 1rem; @@ -559,6 +559,7 @@ only screen and (min-device-pixel-ratio: 3) { } } + /*评论页面修正*/ .comment-list-item .markdown-body { padding: 0; @@ -568,4 +569,11 @@ only screen and (min-device-pixel-ratio: 3) { .markdown-body .wiz-code-container, .markdown-body .wiz-table-body { padding: 0; +} + +/* 修正 br 高度*/ +br { + display: block; + margin: 0 0 8px; + content: " "; } \ No newline at end of file diff --git a/share/files/wizeditor/wizEditorForMac.js b/share/files/wizeditor/wizEditorForMac.js old mode 100644 new mode 100755 index f6c59b4d5..f64f89ef1 --- a/share/files/wizeditor/wizEditorForMac.js +++ b/share/files/wizeditor/wizEditorForMac.js @@ -5,4 +5,4 @@ * @author Feross Aboukhadijeh * @license MIT */ -var r=n(406),o=n(407),i=n(175);function a(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return w(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){var i,a=1,l=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,l/=2,s/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var d=-1;for(i=n;il&&(n=l-s),i=n;i>=0;i--){for(var u=!0,f=0;fo&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+u<=n)switch(u){case 1:c<128&&(d=c);break;case 2:128==(192&(i=e[o+1]))&&(s=(31&c)<<6|63&i)>127&&(d=s);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(s=(15&c)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(d=s);break;case 4:i=e[o+1],a=e[o+2],l=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&l)&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&s<1114112&&(d=s)}null===d?(d=65533,u=1):d>65535&&(d-=65536,r.push(d>>>10&1023|55296),d=56320|1023&d),r.push(d),o+=u}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},s.prototype.compare=function(e,t,n,r,o){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),l=Math.min(i,a),c=this.slice(r,o),d=e.slice(t,n),u=0;uo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function w(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,o,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function x(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function R(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function k(e,t,n,r,i){return i||R(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function P(e,t,n,r,i){return i||R(e,0,n,8),o.write(e,t,n,r,52,8),n+8}s.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):x(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);D(this,e,t,n,o-1,-o)}var i=0,a=1,l=0;for(this[t]=255&e;++i>0)-l&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);D(this,e,t,n,o-1,-o)}var i=n-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a>>0)-l&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):x(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!s.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function j(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(37))},function(e,t,n){var r=n(35);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(6),o=n(21),i=n(20),a=n(43)("src"),l=n(223),s=(""+l).split("toString");n(12).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,l){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(i(n,a)||o(n,a,e[t]?""+e[t]:s.join(String(t)))),e===r?e[t]=n:l?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||l.call(this)}))},function(e,t,n){var r=n(0),o=n(7),i=n(35),a=/"/g,l=function(e,t,n,r){var o=String(i(e)),l="<"+t;return""!==n&&(l+=" "+n+'="'+String(r).replace(a,""")+'"'),l+">"+o+""};e.exports=function(e,t){var n={};n[e]=t(l),r(r.P+r.F*o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(15),o=n(42);e.exports=n(14)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(64),o=n(35);e.exports=function(e){return r(o(e))}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=t,o=n(13),i=n(23),a=n(199);r.assert=i,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var o=1<(o>>1)-1?(o>>1)-s:s,i.isubn(l)):l=0,r[a]=l,i.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,o=0;e.cmpn(-r)>0||t.cmpn(-o)>0;){var i,a,l,s=e.andln(3)+r&3,c=t.andln(3)+o&3;if(3===s&&(s=-1),3===c&&(c=-1),0==(1&s))i=0;else i=3!==(l=e.andln(7)+r&7)&&5!==l||2!==c?s:-s;if(n[0].push(i),0==(1&c))a=0;else a=3!==(l=t.andln(7)+o&7)&&5!==l||2!==s?c:-c;n[1].push(a),2*r===i+1&&(r=1-r),2*o===a+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new o(e,"hex","le")}},function(e,t,n){"use strict";var r=n(7);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,n){var r=n(1),o=n(3),i=n(216);function a(e,t,n){var r=0,o=t.length;return function a(){r0?r:n)(e)}},function(e,t,n){var r=n(65),o=n(42),i=n(22),a=n(38),l=n(20),s=n(141),c=Object.getOwnPropertyDescriptor;t.f=n(14)?c:function(e,t){if(e=i(e),t=a(t,!0),s)try{return c(e,t)}catch(e){}if(l(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(0),o=n(12),i=n(7);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},function(e,t,n){var r=n(27),o=n(64),i=n(17),a=n(11),l=n(157);e.exports=function(e,t){var n=1==e,s=2==e,c=3==e,d=4==e,u=6==e,f=5==e||u,h=t||l;return function(t,l,p){for(var m,g,v=i(t),b=o(v),y=r(l,p,3),_=a(b.length),S=0,E=n?h(t,_):s?h(t,0):void 0;_>S;S++)if((f||S in b)&&(g=y(m=b[S],S,v),e))if(n)E[S]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return S;case 2:E.push(m)}else if(d)return!1;return u?-1:c||d?d:E}}},function(e,t,n){"use strict";var r=n(23),o=n(4);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function l(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o>6|192,n[r++]=63&a|128):i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(o=0;o>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},t.sum64=function(e,t,n,r){var o=e[t],i=r+e[t+1]>>>0,a=(i>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,o,i,a,l){var s=0,c=t;return s+=(c=c+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,o,i,a,l){return t+r+i+l>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,a,l,s,c){var d=0,u=t;return d+=(u=u+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,o,i,a,l,s,c){return t+r+i+l+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}if(n(14)){var o=n(44),i=n(6),a=n(7),l=n(0),s=n(85),c=n(116),d=n(27),u=n(59),f=n(42),h=n(21),p=n(60),m=n(29),g=n(11),v=n(168),b=n(46),y=n(38),_=n(20),S=n(66),E=n(9),C=n(17),T=n(108),A=n(47),O=n(49),w=n(48).f,N=n(110),L=n(43),I=n(10),U=n(32),D=n(75),M=n(67),x=n(112),R=n(57),k=n(78),P=n(58),B=n(111),z=n(159),F=n(15),j=n(30),q=F.f,W=j.f,H=i.RangeError,Y=i.TypeError,G=i.Uint8Array,V=Array.prototype,Z=c.ArrayBuffer,K=c.DataView,X=U(0),$=U(2),J=U(3),Q=U(4),ee=U(5),te=U(6),ne=D(!0),re=D(!1),oe=x.values,ie=x.keys,ae=x.entries,le=V.lastIndexOf,se=V.reduce,ce=V.reduceRight,de=V.join,ue=V.sort,fe=V.slice,he=V.toString,pe=V.toLocaleString,me=I("iterator"),ge=I("toStringTag"),ve=L("typed_constructor"),be=L("def_constructor"),ye=s.CONSTR,_e=s.TYPED,Se=s.VIEW,Ee=U(1,(function(e,t){return we(M(e,e[be]),t)})),Ce=a((function(){return 1===new G(new Uint16Array([1]).buffer)[0]})),Te=!!G&&!!G.prototype.set&&a((function(){new G(1).set({})})),Ae=function(e,t){var n=m(e);if(n<0||n%t)throw H("Wrong offset!");return n},Oe=function(e){if(E(e)&&_e in e)return e;throw Y(e+" is not a typed array!")},we=function(e,t){if(!(E(e)&&ve in e))throw Y("It is not a typed array constructor!");return new e(t)},Ne=function(e,t){return Le(M(e,e[be]),t)},Le=function(e,t){for(var n=0,r=t.length,o=we(e,r);r>n;)o[n]=t[n++];return o},Ie=function(e,t,n){q(e,t,{get:function(){return this._d[n]}})},Ue=function(e){var t,n,r,o,i,a,l=C(e),s=arguments.length,c=s>1?arguments[1]:void 0,u=void 0!==c,f=N(l);if(null!=f&&!T(f)){for(a=f.call(l),r=[],t=0;!(i=a.next()).done;t++)r.push(i.value);l=r}for(u&&s>2&&(c=d(c,arguments[2],2)),t=0,n=g(l.length),o=we(this,n);n>t;t++)o[t]=u?c(l[t],t):l[t];return o},De=function(){for(var e=0,t=arguments.length,n=we(this,t);t>e;)n[e]=arguments[e++];return n},Me=!!G&&a((function(){pe.call(new G(1))})),xe=function(){return pe.apply(Me?fe.call(Oe(this)):Oe(this),arguments)},Re={copyWithin:function(e,t){return z.call(Oe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Q(Oe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return B.apply(Oe(this),arguments)},filter:function(e){return Ne(this,$(Oe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return ee(Oe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return te(Oe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){X(Oe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return re(Oe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return ne(Oe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return de.apply(Oe(this),arguments)},lastIndexOf:function(e){return le.apply(Oe(this),arguments)},map:function(e){return Ee(Oe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Oe(this),arguments)},reduceRight:function(e){return ce.apply(Oe(this),arguments)},reverse:function(){for(var e,t=Oe(this).length,n=Math.floor(t/2),r=0;r1?arguments[1]:void 0)},sort:function(e){return ue.call(Oe(this),e)},subarray:function(e,t){var n=Oe(this),r=n.length,o=b(e,r);return new(M(n,n[be]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,g((void 0===t?r:b(t,r))-o))}},ke=function(e,t){return Ne(this,fe.call(Oe(this),e,t))},Pe=function(e){Oe(this);var t=Ae(arguments[1],1),n=this.length,r=C(e),o=g(r.length),i=0;if(o+t>n)throw H("Wrong length!");for(;i255?255:255&o),i.v[f](n*t+i.o,o,Ce)}(this,n,e)},enumerable:!0})};y?(p=n((function(e,n,r,o){u(e,p,c,"_d");var i,a,l,s,d=0,f=0;if(E(n)){if(!(n instanceof Z||"ArrayBuffer"==(s=S(n))||"SharedArrayBuffer"==s))return _e in n?Le(p,n):Ue.call(p,n);i=n,f=Ae(r,t);var m=n.byteLength;if(void 0===o){if(m%t)throw H("Wrong length!");if((a=m-f)<0)throw H("Wrong length!")}else if((a=g(o)*t)+f>m)throw H("Wrong length!");l=a/t}else l=v(n),i=new Z(a=l*t);for(h(e,"_d",{b:i,o:f,l:a,e:l,v:new K(i)});d1)for(var n=1;ndocument.F=Object<\/script>"),e.close(),s=e.F;r--;)delete s.prototype[i[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=r(e),n=new l,l.prototype=null,n[a]=e):n=s(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(143),o=n(95).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(20),o=n(17),i=n(94)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(10)("unscopables"),o=Array.prototype;null==o[r]&&n(21)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t,n){var r=n(9);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";var r=n(86),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var i=Object.create(n(69));i.inherits=n(4);var a=n(177),l=n(125);i.inherits(u,a);for(var s=o(l.prototype),c=0;c=0;o--){(0,r.splice(o,1)[0])()}n[t.loadId]=[]}}}},function(e,t){e.exports={CLASS:{CHILD:"child",CHILDREN:"children",COLLAPSED:"collapsed",COMPLETE:"complete",CONTAINER:"outline-container",CONTENT:"content",DOT:"dot",DOT_ICON:"dot-icon",DRAG_CONTAINER:"outline-drag-container",DRAG_FLAG:"outline-drag-flag",IMAGE:"image",MINDER_NOTE:"minder-note",MINDER_MENU_SVG_ICON:"minder-menu-svg-icon",MINDER_MENU_SVG_ICON_LIGHT:"minder-menu-svg-icon-light",NODE:"node",NODE_SELECTED:"selected",NODE_SHOW_MENU:"show-menu",NOTES:"notes",OPERATOR_CONTAINER:"operator-container",OPERATOR_BAR:"operator-bar",ROW:"row",SWITCH:"switch",MINDERMENU:"minder-menu"},ID:{STYLE:"wiz_outline_style",MINDER_CONTAINER:"wiz-minder-container"},NAME:{STYLE:"wiz_outline_style"},MENU:{ADD_NOTES:"add_notes",ADD_IMAGE:"add_image",COMPLETE:"complete",COPY:"copy",DUPLICATE:"duplicate",INDENT:"indent",OUTDENT:"outdent",DELETE:"remove",UNCOMPLETE:"uncomplete"},MINDER_TEMPLATE_TYPE:{DEFAULT:"default",FISH_BONE:"fish-bone",RIGHT:"right",STRUCTURE:"structure"},MINDER_THEME_TYPE:{LIGHT_GREEN:"wiz-lightGreen",BLUE:"wiz-blue",GOLDEN:"wiz-golden",SAKURA:"wiz-sakura",DARK_BLUE:"wiz-darkBlue",BLACK:"wiz-black",PURPLE:"wiz-purple",CYAN:"wiz-cyan",SILVER:"wiz-silver",GREEN:"wiz-green"},NODE_ITEM_TYPE:{CONTENT:"content",NOTES:"notes"},HOTKEY_MAP:{WIN:{ADD_NOTES:"Shift + Enter",ADD_IMAGE:"",COMPLETE:"Ctrl + Enter",DUPLICATE:"Shift + Ctrl + D",INDENT:"Tab",OUTDENT:"Shift + Tab",DELETE:"Shift + Delete",UNCOMPLETE:"Ctrl + Enter"},MAC:{ADD_NOTES:"Shift + Enter",ADD_IMAGE:"",COMPLETE:"⌘ + Enter",DUPLICATE:"Shift + Ctrl + D",INDENT:"Tab",OUTDENT:"Shift + Tab",DELETE:"Shift + Delete",UNCOMPLETE:"⌘ + Enter"}},STORAGE_KEY:{MINDER_TEMPLATE:"wiz-minder-template",MINDER_THEME:"wiz-minder-theme"}}},function(e,t,n){var r=n(15).f,o=n(20),i=n(10)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(0),o=n(35),i=n(7),a=n(98),l="["+a+"]",s=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),d=function(e,t,n){var o={},l=i((function(){return!!a[e]()||"​…"!="​…"[e]()})),s=o[e]=l?t(u):a[e];n&&(o[n]=s),r(r.P+r.F*l,"String",o)},u=d.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(s,"")),2&t&&(e=e.replace(c,"")),e};e.exports=d},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(6),o=n(15),i=n(14),a=n(10)("species");e.exports=function(e){var t=r[e];i&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(18);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){"use strict";(function(t,r){var o=n(5).Buffer,i=t.crypto||t.msCrypto;i&&i.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=o.allocUnsafe(e);if(e>0)if(e>65536)for(var a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,o=(n-r)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=o},function(e,t,n){var r=n(174),o={run:function(e){e.wizMath={getRandomArbitrary:function(t,n){return e.wizMath.random()*(n-t)+t},random:function(){return r()()}},e.Selection&&!e.Selection.prototype.extend&&(e.Selection.prototype.extend=function(t,n){var r=e.document.getSelection();try{if(!r||0===r.rangeCount)return}catch(e){return}var o=r.getRangeAt(0),i=e.document.createRange(),a=e.document.createRange();a.setStart(o.startContainer,o.startOffset);var l=e.document.createRange();l.setStart(t,n),l.compareBoundaryPoints(Range.START_TO_START,a)>=0?(i.setStart(o.startContainer,o.startOffset),i.setEnd(t,n)):(i.setStart(t,n),i.setEnd(o.startContainer,o.startOffset)),this.removeAllRanges(),this.addRange(i)}),e.document.body.addEventListener("mscontrolselect",(function(e){e.preventDefault()}))}};e.exports=o},function(e,t,n){var r=n(34);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(34),o=n(10)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var r=n(8),o=n(28),i=n(10)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},function(e,t,n){"use strict";var r=n(4),o=n(121),i=n(127),a=n(128),l=n(41);function s(e){l.call(this,"digest"),this._hash=e}r(s,l),s.prototype._update=function(e){this._hash.update(e)},s.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new o:"rmd160"===e||"ripemd160"===e?new i:new s(a(e))}},function(e,t,n){(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"===n(e)},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"===n(e)&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===n(e)||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(16).Buffer)},function(e,t,n){(function(t){e.exports=function(e,n){for(var r=Math.min(e.length,n.length),o=new t(r),i=0;i=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var o=0;o>>24&255,r[o++]=e>>>16&255,r[o++]=e>>>8&255,r[o++]=255&e}else for(r[o++]=255&e,r[o++]=e>>>8&255,r[o++]=e>>>16&255,r[o++]=e>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;id;)if((l=s[d++])!=l)return!0}else for(;c>d;d++)if((e||d in s)&&s[d]===n)return e||d||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(34);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(10)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(8);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(66),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var a=n.call(e,t);if("object"!==r(a))throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==o(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,n){"use strict";n(161);var r=n(18),o=n(21),i=n(7),a=n(35),l=n(10),s=n(113),c=l("species"),d=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),u=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var f=l(e),h=!i((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),p=h?!i((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!t})):void 0;if(!h||!p||"replace"===e&&!d||"split"===e&&!u){var m=/./[f],g=n(a,f,""[e],(function(e,t,n,r,o){return t.exec===s?h&&!o?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=g[0],b=g[1];r(String.prototype,e,v),o(RegExp.prototype,f,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},function(e,t,n){var r=n(27),o=n(156),i=n(108),a=n(8),l=n(11),s=n(110),c={},d={};(t=e.exports=function(e,t,n,u,f){var h,p,m,g,v=f?function(){return e}:s(e),b=r(n,u,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(i(v)){for(h=l(e.length);h>y;y++)if((g=t?b(a(p=e[y])[0],p[1]):b(e[y]))===c||g===d)return g}else for(m=v.call(e);!(p=m.next()).done;)if((g=o(m,b,p.value,t))===c||g===d)return g}).BREAK=c,t.RETURN=d},function(e,t,n){var r=n(6).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){"use strict";var r=n(6),o=n(0),i=n(18),a=n(60),l=n(39),s=n(82),c=n(59),d=n(9),u=n(7),f=n(78),h=n(55),p=n(99);e.exports=function(e,t,n,m,g,v){var b=r[e],y=b,_=g?"set":"add",S=y&&y.prototype,E={},C=function(e){var t=S[e];i(S,e,"delete"==e?function(e){return!(v&&!d(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!d(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!d(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof y&&(v||S.forEach&&!u((function(){(new y).entries().next()})))){var T=new y,A=T[_](v?{}:-0,1)!=T,O=u((function(){T.has(1)})),w=f((function(e){new y(e)})),N=!v&&u((function(){for(var e=new y,t=5;t--;)e[_](t,t);return!e.has(-0)}));w||((y=t((function(t,n){c(t,y,e);var r=p(new b,t,y);return null!=n&&s(n,g,r[_],r),r}))).prototype=S,S.constructor=y),(O||N)&&(C("delete"),C("has"),g&&C("get")),(N||A)&&C(_),v&&S.clear&&delete S.clear}else y=m.getConstructor(t,e,g,_),a(y.prototype,n),l.NEED=!0;return h(y,e),E[e]=y,o(o.G+o.W+o.F*(y!=b),E),v||m.setStrong(y,e,g),y}},function(e,t,n){for(var r,o=n(6),i=n(21),a=n(43),l=a("typed_array"),s=a("view"),c=!(!o.ArrayBuffer||!o.DataView),d=c,u=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");u<9;)(r=o[f[u++]])?(i(r.prototype,l,!0),i(r.prototype,s,!0)):d=!1;e.exports={ABV:c,CONSTR:d,TYPED:l,VIEW:s}},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,l=arguments.length;switch(l){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,o)}));default:for(i=new Array(l-1),a=0;a>>24]^d[p>>>16&255]^u[m>>>8&255]^f[255&g]^t[v++],a=c[p>>>24]^d[m>>>16&255]^u[g>>>8&255]^f[255&h]^t[v++],l=c[m>>>24]^d[g>>>16&255]^u[h>>>8&255]^f[255&p]^t[v++],s=c[g>>>24]^d[h>>>16&255]^u[p>>>8&255]^f[255&m]^t[v++],h=i,p=a,m=l,g=s;return i=(r[h>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&g])^t[v++],a=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[g>>>8&255]<<8|r[255&h])^t[v++],l=(r[m>>>24]<<24|r[g>>>16&255]<<16|r[h>>>8&255]<<8|r[255&p])^t[v++],s=(r[g>>>24]<<24|r[h>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^t[v++],[i>>>=0,a>>>=0,l>>>=0,s>>>=0]}var l=[0,1,2,4,8,16,32,64,128,27,54],s=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],o=[[],[],[],[]],i=[[],[],[],[]],a=0,l=0,s=0;s<256;++s){var c=l^l<<1^l<<2^l<<3^l<<4;c=c>>>8^255&c^99,n[a]=c,r[c]=a;var d=e[a],u=e[d],f=e[u],h=257*e[c]^16843008*c;o[0][a]=h<<24|h>>>8,o[1][a]=h<<16|h>>>16,o[2][a]=h<<8|h>>>24,o[3][a]=h,h=16843009*f^65537*u^257*d^16843008*a,i[0][c]=h<<24|h>>>8,i[1][c]=h<<16|h>>>16,i[2][c]=h<<8|h>>>24,i[3][c]=h,0===a?a=l=1:(a=d^e[e[e[f^d]]],l^=e[e[l]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:o,INV_SUB_MIX:i}}();function c(e){this._key=o(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),o=[],i=0;i>>24,a=s.SBOX[a>>>24]<<24|s.SBOX[a>>>16&255]<<16|s.SBOX[a>>>8&255]<<8|s.SBOX[255&a],a^=l[i/t|0]<<24):t>6&&i%t==4&&(a=s.SBOX[a>>>24]<<24|s.SBOX[a>>>16&255]<<16|s.SBOX[a>>>8&255]<<8|s.SBOX[255&a]),o[i]=o[i-t]^a}for(var c=[],d=0;d>>24]]^s.INV_SUB_MIX[1][s.SBOX[f>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[f>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[255&f]]}this._nRounds=n,this._keySchedule=o,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return a(e=o(e),this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},c.prototype.decryptBlock=function(e){var t=(e=o(e))[1];e[1]=e[3],e[3]=t;var n=a(e,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),i=r.allocUnsafe(16);return i.writeUInt32BE(n[0],0),i.writeUInt32BE(n[3],4),i.writeUInt32BE(n[2],8),i.writeUInt32BE(n[1],12),i},c.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},e.exports.AES=c},function(e,t,n){var r=n(5).Buffer,o=n(121);e.exports=function(e,t,n,i){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,l=r.alloc(a),s=r.alloc(i||0),c=r.alloc(0);a>0||i>0;){var d=new o;d.update(c),d.update(e),t&&d.update(t),c=d.digest();var u=0;if(a>0){var f=l.length-a;u=Math.min(a,c.length),c.copy(l,f,0,u),a-=u}if(u0){var h=s.length-i,p=Math.min(i,c.length-u);c.copy(s,h,u,u+p),i-=p}}return c.fill(0),{key:l,iv:s}}},function(e,t,n){"use strict";var r=n(13),o=n(24),i=o.getNAF,a=o.getJSF,l=o.assert;function s(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=s,s.prototype.point=function(){throw new Error("Not implemented")},s.prototype.validate=function(){throw new Error("Not implemented")},s.prototype._fixedNafMul=function(e,t){l(e.precomputed);var n=e._getDoubles(),r=i(t,1,this._bitLength),o=(1<=s;t--)c=(c<<1)+r[t];a.push(c)}for(var d=this.jpoint(null,null,null),u=this.jpoint(null,null,null),f=o;f>0;f--){for(s=0;s=0;c--){for(t=0;c>=0&&0===a[c];c--)t++;if(c>=0&&t++,s=s.dblp(t),c<0)break;var d=a[c];l(0!==d),s="affine"===e.type?d>0?s.mixedAdd(o[d-1>>1]):s.mixedAdd(o[-d-1>>1].neg()):d>0?s.add(o[d-1>>1]):s.add(o[-d-1>>1].neg())}return"affine"===e.type?s.toP():s},s.prototype._wnafMulAdd=function(e,t,n,r,o){for(var l=this._wnafT1,s=this._wnafT2,c=this._wnafT3,d=0,u=0;u=1;u-=2){var h=u-1,p=u;if(1===l[h]&&1===l[p]){var m=[t[h],null,null,t[p]];0===t[h].y.cmp(t[p].y)?(m[1]=t[h].add(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg())):0===t[h].y.cmp(t[p].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].add(t[p].neg())):(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=a(n[h],n[p]);d=Math.max(v[0].length,d),c[h]=new Array(d),c[p]=new Array(d);for(var b=0;b=0;u--){for(var C=0;u>=0;){var T=!0;for(b=0;b=0&&C++,S=S.dblp(C),u<0)break;for(b=0;b0?A=s[b][O-1>>1]:O<0&&(A=s[b][-O-1>>1].neg()),S="affine"===A.type?S.mixedAdd(A):S.add(A))}}for(u=0;u=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,o=0;o>>6)+s(128|63&t):s(224|t>>>12&15)+s(128|t>>>6&63)+s(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return s(240|t>>>18&7)+s(128|t>>>12&63)+s(128|t>>>6&63)+s(128|63&t)},d=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,u=function(e){return e.replace(d,c)},f=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[a.charAt(n>>>18),a.charAt(n>>>12&63),t>=2?"=":a.charAt(n>>>6&63),t>=1?"=":a.charAt(63&n)].join("")},h=o.btoa?function(e){return o.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,f)},p=r?function(e){return(e.constructor===r.constructor?e:new r(e)).toString("base64")}:function(e){return h(u(e))},m=function(e,t){return t?p(String(e)).replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,""):p(String(e))},g=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),v=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return s(55296+(t>>>10))+s(56320+(1023&t));case 3:return s((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return s((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},b=function(e){return e.replace(g,v)},y=function(e){var t=e.length,n=t%4,r=(t>0?l[e.charAt(0)]<<18:0)|(t>1?l[e.charAt(1)]<<12:0)|(t>2?l[e.charAt(2)]<<6:0)|(t>3?l[e.charAt(3)]:0),o=[s(r>>>16),s(r>>>8&255),s(255&r)];return o.length-=[0,0,2,1][n],o.join("")},_=o.atob?function(e){return o.atob(e)}:function(e){return e.replace(/[\s\S]{1,4}/g,y)},S=r?function(e){return(e.constructor===r.constructor?e:new r(e,"base64")).toString()}:function(e){return b(_(e))},E=function(e){return S(String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,""))};if(o.Base64={VERSION:"2.1.8",atob:_,btoa:h,fromBase64:E,toBase64:m,utob:u,encode:m,encodeURI:function(e){return m(e,!0)},btou:b,decode:E,noConflict:function(){var e=o.Base64;return o.Base64=i,e}},"function"==typeof Object.defineProperty){var C=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};o.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",C((function(){return E(this)}))),Object.defineProperty(String.prototype,"toBase64",C((function(e){return m(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",C((function(){return m(this,!0)})))}}e.exports=o.Base64},function(e,t,n){var r=n(9),o=n(6).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){t.f=n(10)},function(e,t,n){var r=n(74)("keys"),o=n(43);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(6).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(9),o=n(8),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(27)(Function.call,n(30).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(e,t,n){var r=n(9),o=n(97).set;e.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},function(e,t,n){"use strict";var r=n(29),o=n(35);e.exports=function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){var r=n(29),o=n(35);e.exports=function(e){return function(t,n){var i,a,l=String(o(t)),s=r(n),c=l.length;return s<0||s>=c?e?"":void 0:(i=l.charCodeAt(s))<55296||i>56319||s+1===c||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(44),o=n(0),i=n(18),a=n(21),l=n(57),s=n(155),c=n(55),d=n(49),u=n(10)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,p,m,g,v){s(n,t,p);var b,y,_,S=function(e){if(!f&&e in A)return A[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",C="values"==m,T=!1,A=e.prototype,O=A[u]||A["@@iterator"]||m&&A[m],w=O||S(m),N=m?C?S("entries"):w:void 0,L="Array"==t&&A.entries||O;if(L&&(_=d(L.call(new e)))!==Object.prototype&&_.next&&(c(_,E,!0),r||"function"==typeof _[u]||a(_,u,h)),C&&O&&"values"!==O.name&&(T=!0,w=function(){return O.call(this)}),r&&!v||!f&&!T&&A[u]||a(A,u,w),l[t]=w,l[E]=h,m)if(b={values:C?w:S("values"),keys:g?w:S("keys"),entries:N},v)for(y in b)y in A||i(A,y,b[y]);else o(o.P+o.F*(f||T),t,b);return b}},function(e,t,n){var r=n(106),o=n(35);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){var r=n(9),o=n(34),i=n(10)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(10)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var r=n(57),o=n(10)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){"use strict";var r=n(15),o=n(42);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){var r=n(66),o=n(10)("iterator"),i=n(57);e.exports=n(12).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){"use strict";var r=n(17),o=n(46),i=n(11);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,l=o(a>1?arguments[1]:void 0,n),s=a>2?arguments[2]:void 0,c=void 0===s?n:o(s,n);c>l;)t[l++]=e;return t}},function(e,t,n){"use strict";var r=n(50),o=n(160),i=n(57),a=n(22);e.exports=n(104)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r,o,i=n(79),a=RegExp.prototype.exec,l=String.prototype.replace,s=a,c=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),d=void 0!==/()??/.exec("")[1];(c||d)&&(s=function(e){var t,n,r,o,s=this;return d&&(n=new RegExp("^"+s.source+"$(?!\\s)",i.call(s))),c&&(t=s.lastIndex),r=a.call(s,e),c&&r&&(s.lastIndex=s.global?r.index+r[0].length:t),d&&r&&r.length>1&&l.call(r[0],n,(function(){for(o=1;on;)t.push(arguments[n++]);return v[++g]=function(){l("function"==typeof e?e:Function(e),t)},r(g),g},h=function(e){delete v[e]},"process"==n(34)(u)?r=function(e){u.nextTick(a(b,e,1))}:m&&m.now?r=function(e){m.now(a(b,e,1))}:p?(i=(o=new p).port2,o.port1.onmessage=y,r=a(i.postMessage,i,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts?(r=function(e){d.postMessage(e+"","*")},d.addEventListener("message",y,!1)):r="onreadystatechange"in c("script")?function(e){s.appendChild(c("script")).onreadystatechange=function(){s.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),e.exports={set:f,clear:h}},function(e,t,n){"use strict";var r=n(6),o=n(14),i=n(44),a=n(85),l=n(21),s=n(60),c=n(7),d=n(59),u=n(29),f=n(11),h=n(168),p=n(48).f,m=n(15).f,g=n(111),v=n(55),b=r.ArrayBuffer,y=r.DataView,_=r.Math,S=r.RangeError,E=r.Infinity,C=b,T=_.abs,A=_.pow,O=_.floor,w=_.log,N=_.LN2,L=o?"_b":"buffer",I=o?"_l":"byteLength",U=o?"_o":"byteOffset";function D(e,t,n){var r,o,i,a=new Array(n),l=8*n-t-1,s=(1<>1,d=23===t?A(2,-24)-A(2,-77):0,u=0,f=e<0||0===e&&1/e<0?1:0;for((e=T(e))!=e||e===E?(o=e!=e?1:0,r=s):(r=O(w(e)/N),e*(i=A(2,-r))<1&&(r--,i*=2),(e+=r+c>=1?d/i:d*A(2,1-c))*i>=2&&(r++,i/=2),r+c>=s?(o=0,r=s):r+c>=1?(o=(e*i-1)*A(2,t),r+=c):(o=e*A(2,c-1)*A(2,t),r=0));t>=8;a[u++]=255&o,o/=256,t-=8);for(r=r<0;a[u++]=255&r,r/=256,l-=8);return a[--u]|=128*f,a}function M(e,t,n){var r,o=8*n-t-1,i=(1<>1,l=o-7,s=n-1,c=e[s--],d=127&c;for(c>>=7;l>0;d=256*d+e[s],s--,l-=8);for(r=d&(1<<-l)-1,d>>=-l,l+=t;l>0;r=256*r+e[s],s--,l-=8);if(0===d)d=1-a;else{if(d===i)return r?NaN:c?-E:E;r+=A(2,t),d-=a}return(c?-1:1)*r*A(2,d-t)}function x(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function R(e){return[255&e]}function k(e){return[255&e,e>>8&255]}function P(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function B(e){return D(e,52,8)}function z(e){return D(e,23,4)}function F(e,t,n){m(e.prototype,t,{get:function(){return this[n]}})}function j(e,t,n,r){var o=h(+n);if(o+t>e[I])throw S("Wrong index!");var i=e[L]._b,a=o+e[U],l=i.slice(a,a+t);return r?l:l.reverse()}function q(e,t,n,r,o,i){var a=h(+n);if(a+t>e[I])throw S("Wrong index!");for(var l=e[L]._b,s=a+e[U],c=r(+o),d=0;dG;)(W=Y[G++])in b||l(b,W,C[W]);i||(H.constructor=b)}var V=new y(new b(2)),Z=y.prototype.setInt8;V.setInt8(0,2147483648),V.setInt8(1,2147483649),!V.getInt8(0)&&V.getInt8(1)||s(y.prototype,{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},!0)}else b=function(e){d(this,b,"ArrayBuffer");var t=h(e);this._b=g.call(new Array(t),0),this[I]=t},y=function(e,t,n){d(this,y,"DataView"),d(e,b,"DataView");var r=e[I],o=u(t);if(o<0||o>r)throw S("Wrong offset!");if(o+(n=void 0===n?r-o:f(n))>r)throw S("Wrong length!");this[L]=e,this[U]=o,this[I]=n},o&&(F(b,"byteLength","_l"),F(y,"buffer","_b"),F(y,"byteLength","_l"),F(y,"byteOffset","_o")),s(y.prototype,{getInt8:function(e){return j(this,1,e)[0]<<24>>24},getUint8:function(e){return j(this,1,e)[0]},getInt16:function(e){var t=j(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=j(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return x(j(this,4,e,arguments[1]))},getUint32:function(e){return x(j(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return M(j(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return M(j(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){q(this,1,e,R,t)},setUint8:function(e,t){q(this,1,e,R,t)},setInt16:function(e,t){q(this,2,e,k,t,arguments[2])},setUint16:function(e,t){q(this,2,e,k,t,arguments[2])},setInt32:function(e,t){q(this,4,e,P,t,arguments[2])},setUint32:function(e,t){q(this,4,e,P,t,arguments[2])},setFloat32:function(e,t){q(this,4,e,z,t,arguments[2])},setFloat64:function(e,t){q(this,8,e,B,t,arguments[2])}});v(b,"ArrayBuffer"),v(y,"DataView"),l(y.prototype,a.VIEW,!0),t.ArrayBuffer=b,t.DataView=y},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return"object"===n(e)?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(173)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(4),o=n(176),i=n(5).Buffer,a=new Array(16);function l(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(e,t){return e<>>32-t}function c(e,t,n,r,o,i,a){return s(e+(t&n|~t&r)+o+i|0,a)+t|0}function d(e,t,n,r,o,i,a){return s(e+(t&r|n&~r)+o+i|0,a)+t|0}function u(e,t,n,r,o,i,a){return s(e+(t^n^r)+o+i|0,a)+t|0}function f(e,t,n,r,o,i,a){return s(e+(n^(t|~r))+o+i|0,a)+t|0}r(l,o),l.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,o=this._c,i=this._d;n=c(n,r,o,i,e[0],3614090360,7),i=c(i,n,r,o,e[1],3905402710,12),o=c(o,i,n,r,e[2],606105819,17),r=c(r,o,i,n,e[3],3250441966,22),n=c(n,r,o,i,e[4],4118548399,7),i=c(i,n,r,o,e[5],1200080426,12),o=c(o,i,n,r,e[6],2821735955,17),r=c(r,o,i,n,e[7],4249261313,22),n=c(n,r,o,i,e[8],1770035416,7),i=c(i,n,r,o,e[9],2336552879,12),o=c(o,i,n,r,e[10],4294925233,17),r=c(r,o,i,n,e[11],2304563134,22),n=c(n,r,o,i,e[12],1804603682,7),i=c(i,n,r,o,e[13],4254626195,12),o=c(o,i,n,r,e[14],2792965006,17),n=d(n,r=c(r,o,i,n,e[15],1236535329,22),o,i,e[1],4129170786,5),i=d(i,n,r,o,e[6],3225465664,9),o=d(o,i,n,r,e[11],643717713,14),r=d(r,o,i,n,e[0],3921069994,20),n=d(n,r,o,i,e[5],3593408605,5),i=d(i,n,r,o,e[10],38016083,9),o=d(o,i,n,r,e[15],3634488961,14),r=d(r,o,i,n,e[4],3889429448,20),n=d(n,r,o,i,e[9],568446438,5),i=d(i,n,r,o,e[14],3275163606,9),o=d(o,i,n,r,e[3],4107603335,14),r=d(r,o,i,n,e[8],1163531501,20),n=d(n,r,o,i,e[13],2850285829,5),i=d(i,n,r,o,e[2],4243563512,9),o=d(o,i,n,r,e[7],1735328473,14),n=u(n,r=d(r,o,i,n,e[12],2368359562,20),o,i,e[5],4294588738,4),i=u(i,n,r,o,e[8],2272392833,11),o=u(o,i,n,r,e[11],1839030562,16),r=u(r,o,i,n,e[14],4259657740,23),n=u(n,r,o,i,e[1],2763975236,4),i=u(i,n,r,o,e[4],1272893353,11),o=u(o,i,n,r,e[7],4139469664,16),r=u(r,o,i,n,e[10],3200236656,23),n=u(n,r,o,i,e[13],681279174,4),i=u(i,n,r,o,e[0],3936430074,11),o=u(o,i,n,r,e[3],3572445317,16),r=u(r,o,i,n,e[6],76029189,23),n=u(n,r,o,i,e[9],3654602809,4),i=u(i,n,r,o,e[12],3873151461,11),o=u(o,i,n,r,e[15],530742520,16),n=f(n,r=u(r,o,i,n,e[2],3299628645,23),o,i,e[0],4096336452,6),i=f(i,n,r,o,e[7],1126891415,10),o=f(o,i,n,r,e[14],2878612391,15),r=f(r,o,i,n,e[5],4237533241,21),n=f(n,r,o,i,e[12],1700485571,6),i=f(i,n,r,o,e[3],2399980690,10),o=f(o,i,n,r,e[10],4293915773,15),r=f(r,o,i,n,e[1],2240044497,21),n=f(n,r,o,i,e[8],1873313359,6),i=f(i,n,r,o,e[15],4264355552,10),o=f(o,i,n,r,e[6],2734768916,15),r=f(r,o,i,n,e[13],1309151649,21),n=f(n,r,o,i,e[4],4149444226,6),i=f(i,n,r,o,e[11],3174756917,10),o=f(o,i,n,r,e[2],718787259,15),r=f(r,o,i,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+o|0,this._d=this._d+i|0},l.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=l},function(e,t,n){e.exports=o;var r=n(123).EventEmitter;function o(){r.call(this)}n(4)(o,r),o.Readable=n(124),o.Writable=n(415),o.Duplex=n(416),o.Transform=n(417),o.PassThrough=n(418),o.Stream=o,o.prototype.pipe=function(e,t){var n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",l),n.on("close",s));var a=!1;function l(){a||(a=!0,e.end())}function s(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(d(),0===r.listenerCount(this,"error"))throw e}function d(){n.removeListener("data",o),e.removeListener("drain",i),n.removeListener("end",l),n.removeListener("close",s),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",d),n.removeListener("close",d),e.removeListener("close",d)}return n.on("error",c),e.on("error",c),n.on("end",d),n.on("close",d),e.on("close",d),e.emit("pipe",n),e}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,i="object"===("undefined"==typeof Reflect?"undefined":r(Reflect))?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};o=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var l=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function d(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(e))}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var o,i,a,l;if(d(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=u(e))>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,l=s,console&&console.warn&&console.warn(l)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=h.bind(r);return o.listener=n,r.wrapFn=o,o}function m(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(i=t[0]),i instanceof Error)throw i;var l=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw l.context=i,l}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)a(s,this,t);else{var c=s.length,d=v(s,c);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},function(e,t,n){(t=e.exports=n(177)).Stream=t,t.Readable=t,t.Writable=n(125),t.Duplex=n(52),t.Transform=n(180),t.PassThrough=n(414)},function(e,t,n){"use strict";(function(t,r,o){var i=n(86);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=b;var l,s=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:i.nextTick;b.WritableState=v;var c=Object.create(n(69));c.inherits=n(4);var d={deprecate:n(413)},u=n(178),f=n(5).Buffer,h=o.Uint8Array||function(){};var p,m=n(179);function g(){}function v(e,t){l=l||n(52),e=e||{};var r=t instanceof l;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,c=e.writableHighWaterMark,d=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(c||0===c)?c:d,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(T,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),T(e,t))}(e,n,r,t,o);else{var a=E(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||S(e,n),r?s(_,e,n,a,o):_(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function b(e){if(l=l||n(52),!(p.call(b,this)||this instanceof l))return new b(e);this._writableState=new v(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function y(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),T(e,t)}function S(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var l=0,s=!0;n;)o[l]=n,n.isBuf||(s=!1),n=n.next,l+=1;o.allBuffers=s,y(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,d=n.encoding,u=n.callback;if(y(e,t,!1,t.objectMode?1:c.length,c,d,u),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),T(e,t)}))}function T(e,t){var n=E(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(C,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(b,u),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:d.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===b&&(e&&e._writableState instanceof v)}})):p=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,l=!o.objectMode&&(r=e,f.isBuffer(r)||r instanceof h);return l&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(n=t,t=null),l?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=g),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(l||function(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,o,i){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n));return t}(t,r,o);r!==a&&(n=!0,o="buffer",r=a)}var l=t.objectMode?1:r.length;t.length+=l;var s=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,T(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(40),n(411).setImmediate,n(37))},function(e,t,n){"use strict";var r=n(5).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=c,t=4;break;case"utf8":this.fillLast=l,t=4;break;case"base64":this.text=d,this.end=u,t=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function l(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function d(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return o>0&&(e.lastNeed=o-1),o;if(--r=0)return o>0&&(e.lastNeed=o-2),o;if(--r=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";var r=n(16).Buffer,o=n(4),i=n(176),a=new Array(16),l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],s=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],d=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],u=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function h(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function m(e,t,n,r,o,i,a,l){return p(e+(t^n^r)+i+a|0,l)+o|0}function g(e,t,n,r,o,i,a,l){return p(e+(t&n|~t&r)+i+a|0,l)+o|0}function v(e,t,n,r,o,i,a,l){return p(e+((t|~n)^r)+i+a|0,l)+o|0}function b(e,t,n,r,o,i,a,l){return p(e+(t&r|n&~r)+i+a|0,l)+o|0}function y(e,t,n,r,o,i,a,l){return p(e+(t^(n|~r))+i+a|0,l)+o|0}o(h,i),h.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,o=0|this._c,i=0|this._d,h=0|this._e,_=0|this._a,S=0|this._b,E=0|this._c,C=0|this._d,T=0|this._e,A=0;A<80;A+=1){var O,w;A<16?(O=m(n,r,o,i,h,e[l[A]],u[0],c[A]),w=y(_,S,E,C,T,e[s[A]],f[0],d[A])):A<32?(O=g(n,r,o,i,h,e[l[A]],u[1],c[A]),w=b(_,S,E,C,T,e[s[A]],f[1],d[A])):A<48?(O=v(n,r,o,i,h,e[l[A]],u[2],c[A]),w=v(_,S,E,C,T,e[s[A]],f[2],d[A])):A<64?(O=b(n,r,o,i,h,e[l[A]],u[3],c[A]),w=g(_,S,E,C,T,e[s[A]],f[3],d[A])):(O=y(n,r,o,i,h,e[l[A]],u[4],c[A]),w=m(_,S,E,C,T,e[s[A]],f[4],d[A])),n=h,h=i,i=p(o,10),o=r,r=O,_=T,T=C,C=p(E,10),E=S,S=w}var N=this._b+o+C|0;this._b=this._c+i+T|0,this._c=this._d+h+_|0,this._d=this._e+n+S|0,this._e=this._a+r+E|0,this._a=N},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(419),t.sha1=n(420),t.sha224=n(421),t.sha256=n(181),t.sha384=n(422),t.sha512=n(182)},function(e,t,n){"use strict";var r=n(23);function o(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=o,o.prototype._init=function(){},o.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},o.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(o,n);return t+=this._buffer(e,t),o},o.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},o.prototype._pad=function(e,t){if(0===t)return!1;for(;t=0||!n.umod(e.prime1)||!n.umod(e.prime2);)n=new r(o(t));return n}e.exports=i,i.getr=a}).call(this,n(16).Buffer)},function(e,t,n){"use strict";var r=t;r.version=n(448).version,r.utils=n(24),r.rand=n(132),r.curve=n(200),r.curves=n(135),r.ec=n(459),r.eddsa=n(463)},function(e,t,n){"use strict";var r,o=t,i=n(136),a=n(200),l=n(24).assert;function s(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,l(this.g.validate(),"Invalid curve"),l(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(o,e,{configurable:!0,enumerable:!0,get:function(){var n=new s(t);return Object.defineProperty(o,e,{configurable:!0,enumerable:!0,value:n}),n}})}o.PresetCurve=s,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(458)}catch(e){r=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(e,t,n){var r=t;r.utils=n(33),r.common=n(71),r.sha=n(452),r.ripemd=n(456),r.hmac=n(457),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t,n){var r=n(485);function o(e){return e=e.replace(//g,">")}var i={xssFilter:function(){if(void 0===r)return null;var e=decodeURIComponent(location.pathname),t=e.lastIndexOf("/")+1,n=e.lastIndexOf(".");e=n>0?e.substring(t,n)+"_files":"";var i=/^((file|wiz(note)?):\/\/)|(index_files\/)|(data:image\/(?!svg))/,a=new RegExp("^("+"#".escapeRegex()+(e?"|"+e.escapeRegex():"")+")","i"),l=/^(id|class|name|style|data|width|height)/i,s=new r.FilterXSS({onIgnoreTag:function(e,t,n){if(/script/gi.test(e))return r.escapeAttrValue(t);if(n.isClosing)return"";var o=r.parseAttr(t,(function(t,n){return n=s.options.safeAttrValue(e,t,n,s),/^on/i.test(t)?"":n?t+'="'+n+'"':t}));return o=/^"},onIgnoreTagAttr:function(e,t,n){return n=o(n),!/^object$/i.test(e)&&n&&l.test(t)?t+'="'+n+'"':""},safeAttrValue:function(e,t,n){if(n=o(n),/^meta$/i.test(e)&&/^http-equiv$/i.test(t)&&/refresh/i.test(n))return"";if("href"===t||"src"===t){var l=window.location.protocol;if(/^https?:/.test(l)||(l="http:"),n=n.replace(/^\/\//,l+"//"),i.test(n)||a.test(n))return r.escapeAttrValue(n)}return r.safeAttrValue(e,t,n)}});return s.options.whiteList.iframe=["src","scrolling"],s.options.whiteList.button=["title","type","value"],s.options.whiteList.object=[],s.options.whiteList.noscript=[],function(e){return e=(e=s.process(e)).replace(/(]*)?>)(.*)(<\/style>)/gi,(function(e,t,n,r,o){return t+r.replace(/>/gi,">")+o}))}}()};e.exports=i},function(e,t,n){var r=n(213),o=n(486);for(var i in(t=e.exports=function(e,t){return new o(t).process(e)}).FilterCSS=o,r)t[i]=r[i];"undefined"!=typeof window&&(window.filterCSS=e.exports)},function(e,t){e.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n0?l.list:[l.startDom])}for(var g=0,v=l.length;g=0;o--)r[o]!==n&&n||r.splice(o,1);0===r.length&&e.env.event.remove(s.EVENT.ON_SELECTION_CHANGE,e._onSelectionChange)}}},e.startTrackEvent=function(t,n){e._eventTrackHandler[n]||(e._eventTrackHandler[n]=function(t){e.env.client.sendCmdToWizClient(s.CLIENT_EVENT.WizEditorTrackEvent,{id:n,e:e._eventStringify(t)})},e.env.body.addEventListener(t,e._eventTrackHandler[n]))},e.stopTrackEvent=function(t,n){e._eventTrackHandler[n]&&(e.env.body.removeEventListener(t,e._eventTrackHandler[n]),delete e._eventTrackHandler[n])},e.triggerListener=function(t,n){var r=e._editorListener[t];if(r)for(var o=0,a=r.length;os;)r(l,n=t[s++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var r=n(15),o=n(8),i=n(45);e.exports=n(14)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),l=a.length,s=0;l>s;)r.f(e,n=a[s++],t[n]);return e}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(22),i=n(48).f,a={}.toString,l="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return l&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(e){return l.slice()}}(e):i(o(e))}},function(e,t,n){"use strict";var r=n(14),o=n(45),i=n(76),a=n(65),l=n(17),s=n(64),c=Object.assign;e.exports=!c||n(7)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r}))?function(e,t){for(var n=l(e),c=arguments.length,d=1,u=i.f,f=a.f;c>d;)for(var h,p=s(arguments[d++]),m=u?o(p).concat(u(p)):o(p),g=m.length,v=0;g>v;)h=m[v++],r&&!f.call(p,h)||(n[h]=p[h]);return n}:c},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var r=n(28),o=n(9),i=n(149),a=[].slice,l={},s=function(e,t,n){if(!(t in l)){for(var r=[],o=0;o>>0||(a.test(n)?16:10))}:r},function(e,t,n){var r=n(6).parseFloat,o=n(56).trim;e.exports=1/r(n(98)+"-0")!=-1/0?function(e){var t=o(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(34);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(9),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){"use strict";var r=n(47),o=n(42),i=n(55),a={};n(21)(a,n(10)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(8);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(313);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(28),o=n(17),i=n(64),a=n(11);e.exports=function(e,t,n,l,s){r(t);var c=o(e),d=i(c),u=a(c.length),f=s?u-1:0,h=s?-1:1;if(n<2)for(;;){if(f in d){l=d[f],f+=h;break}if(f+=h,s?f<0:u<=f)throw TypeError("Reduce of empty array with no initial value")}for(;s?f>=0:u>f;f+=h)f in d&&(l=t(l,d[f],f,c));return l}},function(e,t,n){"use strict";var r=n(17),o=n(46),i=n(11);e.exports=[].copyWithin||function(e,t){var n=r(this),a=i(n.length),l=o(e,a),s=o(t,a),c=arguments.length>2?arguments[2]:void 0,d=Math.min((void 0===c?a:o(c,a))-s,a-l),u=1;for(s0;)s in n?n[l]=n[s]:delete n[l],l+=u,s+=u;return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var r=n(113);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(e,t,n){n(14)&&"g"!=/./g.flags&&n(15).f(RegExp.prototype,"flags",{configurable:!0,get:n(79)})},function(e,t,n){"use strict";var r,o,i,a,l=n(44),s=n(6),c=n(27),d=n(66),u=n(0),f=n(9),h=n(28),p=n(59),m=n(82),g=n(67),v=n(115).set,b=n(333)(),y=n(164),_=n(334),S=n(83),E=n(165),C=s.TypeError,T=s.process,A=T&&T.versions,O=A&&A.v8||"",w=s.Promise,N="process"==d(T),L=function(){},I=o=y.f,U=!!function(){try{var e=w.resolve(1),t=(e.constructor={})[n(10)("species")]=function(e){e(L,L)};return(N||"function"==typeof PromiseRejectionEvent)&&e.then(L)instanceof t&&0!==O.indexOf("6.6")&&-1===S.indexOf("Chrome/66")}catch(e){}}(),D=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},M=function(e,t){if(!e._n){e._n=!0;var n=e._c;b((function(){for(var r=e._v,o=1==e._s,i=0,a=function(t){var n,i,a,l=o?t.ok:t.fail,s=t.resolve,c=t.reject,d=t.domain;try{l?(o||(2==e._h&&k(e),e._h=1),!0===l?n=r:(d&&d.enter(),n=l(r),d&&(d.exit(),a=!0)),n===t.promise?c(C("Promise-chain cycle")):(i=D(n))?i.call(n,s,c):s(n)):c(r)}catch(e){d&&!a&&d.exit(),c(e)}};n.length>i;)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&x(e)}))}},x=function(e){v.call(s,(function(){var t,n,r,o=e._v,i=R(e);if(i&&(t=_((function(){N?T.emit("unhandledRejection",o,e):(n=s.onunhandledrejection)?n({promise:e,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)})),e._h=N||R(e)?2:1),e._a=void 0,i&&t.e)throw t.v}))},R=function(e){return 1!==e._h&&0===(e._a||e._c).length},k=function(e){v.call(s,(function(){var t;N?T.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})}))},P=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),M(t,!0))},B=function e(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw C("Promise can't be resolved itself");(n=D(t))?b((function(){var o={_w:r,_d:!1};try{n.call(t,c(e,o,1),c(P,o,1))}catch(e){P.call(o,e)}})):(r._v=t,r._s=1,M(r,!1))}catch(e){P.call({_w:r,_d:!1},e)}}};U||(w=function(e){p(this,w,"Promise","_h"),h(e),r.call(this);try{e(c(B,this,1),c(P,this,1))}catch(e){P.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(60)(w.prototype,{then:function(e,t){var n=I(g(this,w));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=N?T.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=c(B,e,1),this.reject=c(P,e,1)},y.f=I=function(e){return e===w||e===a?new i(e):o(e)}),u(u.G+u.W+u.F*!U,{Promise:w}),n(55)(w,"Promise"),n(58)("Promise"),a=n(12).Promise,u(u.S+u.F*!U,"Promise",{reject:function(e){var t=I(this);return(0,t.reject)(e),t.promise}}),u(u.S+u.F*(l||!U),"Promise",{resolve:function(e){return E(l&&this===a?w:this,e)}}),u(u.S+u.F*!(U&&n(78)((function(e){w.all(e).catch(L)}))),"Promise",{all:function(e){var t=this,n=I(t),r=n.resolve,o=n.reject,i=_((function(){var n=[],i=0,a=1;m(e,!1,(function(e){var l=i++,s=!1;n.push(void 0),a++,t.resolve(e).then((function(e){s||(s=!0,n[l]=e,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=I(t),r=n.reject,o=_((function(){m(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(e,t,n){"use strict";var r=n(28);function o(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new o(e)}},function(e,t,n){var r=n(8),o=n(9),i=n(164);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(15).f,o=n(47),i=n(60),a=n(27),l=n(59),s=n(82),c=n(104),d=n(160),u=n(58),f=n(14),h=n(39).fastKey,p=n(51),m=f?"_s":"size",g=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var d=e((function(e,r){l(e,d,t,"_i"),e._t=t,e._i=o(null),e._f=void 0,e._l=void 0,e[m]=0,null!=r&&s(r,n,e[c],e)}));return i(d.prototype,{clear:function(){for(var e=p(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=p(this,t),r=g(n,e);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[m]--}return!!r},forEach:function(e){p(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(p(this,t),e)}}),f&&r(d.prototype,"size",{get:function(){return p(this,t)[m]}}),d},def:function(e,t,n){var r,o,i=g(e,t);return i?i.v=n:(e._l=i={i:o=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[m]++,"F"!==o&&(e._i[o]=i)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,(function(e,n){this._t=p(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?d(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,d(1))}),n?"entries":"values",!n,!0),u(t)}}},function(e,t,n){"use strict";var r=n(60),o=n(39).getWeak,i=n(8),a=n(9),l=n(59),s=n(82),c=n(32),d=n(20),u=n(51),f=c(5),h=c(6),p=0,m=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},v=function(e,t){return f(e.a,(function(e){return e[0]===t}))};g.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var n=v(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=h(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var c=e((function(e,r){l(e,c,t,"_i"),e._t=t,e._i=p++,e._l=void 0,null!=r&&s(r,n,e[i],e)}));return r(c.prototype,{delete:function(e){if(!a(e))return!1;var n=o(e);return!0===n?m(u(this,t)).delete(e):n&&d(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=o(e);return!0===n?m(u(this,t)).has(e):n&&d(n,this._i)}}),c},def:function(e,t,n){var r=o(i(t),!0);return!0===r?m(e).set(t,n):r[e._i]=n,e},ufstore:m}},function(e,t,n){var r=n(29),o=n(11);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){var r=n(48),o=n(76),i=n(8),a=n(6).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(11),o=n(100),i=n(35);e.exports=function(e,t,n,a){var l=String(i(e)),s=l.length,c=void 0===n?" ":String(n),d=r(t);if(d<=s||""==c)return l;var u=d-s,f=o.call(c,Math.ceil(u/c.length));return f.length>u&&(f=f.slice(0,u)),a?f+l:l+f}},function(e,t,n){var r=n(14),o=n(45),i=n(22),a=n(65).f;e.exports=function(e){return function(t){for(var n,l=i(t),s=o(l),c=s.length,d=0,u=[];c>d;)n=s[d++],r&&!a.call(l,n)||u.push(e?[n,l[n]]:l[n]);return u}}},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(module,exports,__webpack_require__){(function(module){var __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a,b){var l,c=eval("this"),d=256,g="random",h=b.pow(d,6),i=b.pow(2,52),j=2*i,k=d-1;function m(e,t,r){var u=[],f=q(function e(t,n){var r,o=[],i=_typeof(t);if(n&&"object"==i)for(r in t)try{o.push(e(t[r],n-1))}catch(e){}return o.length?o:"string"==i?t:t+"\0"}((t=1==t?{entropy:!0}:t||{}).entropy?[e,s(a)]:null==e?function(){try{var e;return l&&(e=l.randomBytes)?e=e(d):(e=new Uint8Array(d),(c.crypto||c.msCrypto).getRandomValues(e)),s(e)}catch(e){var t=c.navigator,n=t&&t.plugins;return[+new Date,c,n,c.screen,s(a)]}}():e,3),u),p=new n(u),m=function(){for(var e=p.g(6),t=h,n=0;e>>=1;return(e+n)/t};return m.int32=function(){return 0|p.g(4)},m.quick=function(){return p.g(4)/4294967296},m.double=m,q(s(p.S),a),(t.pass||r||function(e,t,n,r){return r&&(r.S&&o(r,p),e.state=function(){return o(p,{})}),n?(b[g]=e,t):e})(m,f,"global"in t?t.global:this==b,t.state)}function n(e){var t,n=e.length,r=this,o=0,i=r.i=r.j=0,a=r.S=[];for(n||(e=[n++]);o=this._blockSize;){for(var i=this._blockOffset;i0;++a)this._length[a]+=l,(l=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*l);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=i},function(e,t,n){"use strict";(function(t,r){var o=n(86);e.exports=y;var i,a=n(175);y.ReadableState=b;n(123).EventEmitter;var l=function(e,t){return e.listeners(t).length},s=n(178),c=n(5).Buffer,d=t.Uint8Array||function(){};var u=Object.create(n(69));u.inherits=n(4);var f=n(408),h=void 0;h=f&&f.debuglog?f.debuglog("stream"):function(){};var p,m=n(409),g=n(179);u.inherits(y,s);var v=["error","close","destroy","pause","resume"];function b(e,t){e=e||{};var r=t instanceof(i=i||n(52));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(a||0===a)?a:l,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(126).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(i=i||n(52),!(this instanceof y))return new y(e);this._readableState=new b(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function _(e,t,n,r,o){var i,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,C(e)}(e,a)):(o||(i=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof d||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),i?e.emit("error",i):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):S(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?S(e,a,t,!1):A(e,a)):S(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(T,e):T(e))}function T(e){h("emit readable"),e.emit("readable"),L(e)}function A(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(O,e,t))}function O(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;ei.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0===(e-=a)){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),0===(e-=a)){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function U(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(D,t,e))}function D(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function M(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):C(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&U(this),null;var r,o=t.needReadable;return h("need readable",o),(0===t.length||t.length-e0?I(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,t);var s=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?d:y;function c(t,r){h("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),e.removeListener("close",v),e.removeListener("finish",b),e.removeListener("drain",u),e.removeListener("error",g),e.removeListener("unpipe",c),n.removeListener("end",d),n.removeListener("end",y),n.removeListener("data",m),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function d(){h("onend"),e.end()}i.endEmitted?o.nextTick(s):n.once("end",s),e.on("unpipe",c);var u=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&l(e,"data")&&(t.flowing=!0,L(e))}}(n);e.on("drain",u);var f=!1;var p=!1;function m(t){h("ondata"),p=!1,!1!==e.write(t)||p||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==M(i.pipes,e))&&!f&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function g(t){h("onerror",t),y(),e.removeListener("error",g),0===l(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",b),y()}function b(){h("onfinish"),e.removeListener("close",v),y()}function y(){h("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",g),e.once("close",v),e.once("finish",b),e.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(s,o),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},s.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,l=0|this._d,s=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,v=0;v<16;++v)n[v]=e.readInt32BE(4*v);for(;v<64;++v)n[v]=0|(((t=n[v-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[v-7]+h(n[v-15])+n[v-16];for(var b=0;b<64;++b){var y=g+f(s)+c(s,p,m)+a[b]+n[b]|0,_=u(r)+d(r,o,i)|0;g=m,m=p,p=s,s=l+y|0,l=i,i=o,o=r,r=y+_|0}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=l+this._d|0,this._e=s+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},s.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=s},function(e,t,n){var r=n(4),o=n(62),i=n(5).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],l=new Array(160);function s(){this.init(),this._w=l,o.call(this,128,112)}function c(e,t,n){return n^e&(t^n)}function d(e,t,n){return e&t|n&(e|t)}function u(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return e>>>0>>0?1:0}r(s,o),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},s.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,o=0|this._ch,i=0|this._dh,l=0|this._eh,s=0|this._fh,b=0|this._gh,y=0|this._hh,_=0|this._al,S=0|this._bl,E=0|this._cl,C=0|this._dl,T=0|this._el,A=0|this._fl,O=0|this._gl,w=0|this._hl,N=0;N<32;N+=2)t[N]=e.readInt32BE(4*N),t[N+1]=e.readInt32BE(4*N+4);for(;N<160;N+=2){var L=t[N-30],I=t[N-30+1],U=h(L,I),D=p(I,L),M=m(L=t[N-4],I=t[N-4+1]),x=g(I,L),R=t[N-14],k=t[N-14+1],P=t[N-32],B=t[N-32+1],z=D+k|0,F=U+R+v(z,D)|0;F=(F=F+M+v(z=z+x|0,x)|0)+P+v(z=z+B|0,B)|0,t[N]=F,t[N+1]=z}for(var j=0;j<160;j+=2){F=t[j],z=t[j+1];var q=d(n,r,o),W=d(_,S,E),H=u(n,_),Y=u(_,n),G=f(l,T),V=f(T,l),Z=a[j],K=a[j+1],X=c(l,s,b),$=c(T,A,O),J=w+V|0,Q=y+G+v(J,w)|0;Q=(Q=(Q=Q+X+v(J=J+$|0,$)|0)+Z+v(J=J+K|0,K)|0)+F+v(J=J+z|0,z)|0;var ee=Y+W|0,te=H+q+v(ee,Y)|0;y=b,w=O,b=s,O=A,s=l,A=T,l=i+Q+v(T=C+J|0,C)|0,i=o,C=E,o=r,E=S,r=n,S=_,n=Q+te+v(_=J+ee|0,J)|0}this._al=this._al+_|0,this._bl=this._bl+S|0,this._cl=this._cl+E|0,this._dl=this._dl+C|0,this._el=this._el+T|0,this._fl=this._fl+A|0,this._gl=this._gl+O|0,this._hl=this._hl+w|0,this._ah=this._ah+n+v(this._al,_)|0,this._bh=this._bh+r+v(this._bl,S)|0,this._ch=this._ch+o+v(this._cl,E)|0,this._dh=this._dh+i+v(this._dl,C)|0,this._eh=this._eh+l+v(this._el,T)|0,this._fh=this._fh+s+v(this._fl,A)|0,this._gh=this._gh+b+v(this._gl,O)|0,this._hh=this._hh+y+v(this._hl,w)|0},s.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=s},function(e,t,n){"use strict";var r=n(4),o=n(423),i=n(41),a=n(5).Buffer,l=n(184),s=n(127),c=n(128),d=a.alloc(128);function u(e,t){i.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var n="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>n)?t=("rmd160"===e?new s:c(e)).update(t).digest():t.lengthn||i!=i)throw new TypeError("Bad key length")}}).call(this,n(16).Buffer)},function(e,t,n){(function(t){var n;t.browser?n="utf-8":n=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=n}).call(this,n(40))},function(e,t,n){var r=n(184),o=n(127),i=n(128),a=n(187),l=n(188),s=n(5).Buffer,c=s.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function u(e,t,n){var a=function(e){function t(t){return i(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new o).update(e).digest()}:"md5"===e?r:t}(e),l="sha512"===e||"sha384"===e?128:64;t.length>l?t=a(t):t.length>>0},t.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,r){for(var o=0,i=0,a=6;a>=0;a-=2){for(var l=0;l<=24;l+=8)o<<=1,o|=t>>>l+a&1;for(l=0;l<=24;l+=8)o<<=1,o|=e>>>l+a&1}for(a=6;a>=0;a-=2){for(l=1;l<=25;l+=8)i<<=1,i|=t>>>l+a&1;for(l=1;l<=25;l+=8)i<<=1,i|=e>>>l+a&1}n[r+0]=o>>>0,n[r+1]=i>>>0},t.rip=function(e,t,n,r){for(var o=0,i=0,a=0;a<4;a++)for(var l=24;l>=0;l-=8)o<<=1,o|=t>>>l+a&1,o<<=1,o|=e>>>l+a&1;for(a=4;a<8;a++)for(l=24;l>=0;l-=8)i<<=1,i|=t>>>l+a&1,i<<=1,i|=e>>>l+a&1;n[r+0]=o>>>0,n[r+1]=i>>>0},t.pc1=function(e,t,n,r){for(var o=0,i=0,a=7;a>=5;a--){for(var l=0;l<=24;l+=8)o<<=1,o|=t>>l+a&1;for(l=0;l<=24;l+=8)o<<=1,o|=e>>l+a&1}for(l=0;l<=24;l+=8)o<<=1,o|=t>>l+a&1;for(a=1;a<=3;a++){for(l=0;l<=24;l+=8)i<<=1,i|=t>>l+a&1;for(l=0;l<=24;l+=8)i<<=1,i|=e>>l+a&1}for(l=0;l<=24;l+=8)i<<=1,i|=e>>l+a&1;n[r+0]=o>>>0,n[r+1]=i>>>0},t.r28shl=function(e,t){return e<>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,o){for(var i=0,a=0,l=r.length>>>1,s=0;s>>r[s]&1;for(s=l;s>>r[s]&1;n[o+0]=i>>>0,n[o+1]=a>>>0},t.expand=function(e,t,n){var r=0,o=0;r=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)r<<=6,r|=e>>>i&63;for(i=11;i>=3;i-=4)o|=e>>>i&63,o<<=6;o|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=o>>>0};var o=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var n=0,r=0;r<4;r++){n<<=4,n|=o[64*r+(e>>>18-6*r&63)]}for(r=0;r<4;r++){n<<=4,n|=o[256+64*r+(t>>>18-6*r&63)]}return n>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,n=0;n>>i[n]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.length>>1];n=i.r28shl(n,l),o=i.r28shl(o,l),i.pc2(n,o,e.keys,a)}},s.prototype._update=function(e,t,n,r){var o=this._desState,a=i.readUInt32BE(e,t),l=i.readUInt32BE(e,t+4);i.ip(a,l,o.tmp,0),a=o.tmp[0],l=o.tmp[1],"encrypt"===this.type?this._encrypt(o,a,l,o.tmp,0):this._decrypt(o,a,l,o.tmp,0),a=o.tmp[0],l=o.tmp[1],i.writeUInt32BE(n,a,r),i.writeUInt32BE(n,l,r+4)},s.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r>>0,a=f}i.rip(l,a,r,o)},s.prototype._decrypt=function(e,t,n,r,o){for(var a=n,l=t,s=e.keys.length-2;s>=0;s-=2){var c=e.keys[s],d=e.keys[s+1];i.expand(a,e.tmp,0),c^=e.tmp[0],d^=e.tmp[1];var u=i.substitute(c,d),f=a;a=(l^i.permute(u))>>>0,l=f}i.rip(a,l,r,o)}},function(e,t,n){var r=n(70),o=n(5).Buffer,i=n(193);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return i(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),i=e._cache.length;e._cache=o.concat([e._cache,o.allocUnsafe(16*n)]);for(var l=0;le;)n.ishrn(1);if(n.isEven()&&n.iadd(l),n.testn(1)||n.iadd(s),t.cmp(s)){if(!t.cmp(c))for(;n.mod(d).cmp(u);)n.iadd(h)}else for(;n.mod(i).cmp(f);)n.iadd(h);if(g(p=n.shrn(1))&&g(n)&&v(p)&&v(n)&&a.test(p)&&a.test(n))return n}}},function(e,t,n){var r=n(13),o=n(132);function i(e){this.rand=e||new o.Rand}e.exports=i,i.create=function(e){return new i(e)},i.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var o=new r(this.rand.generate(n))}while(o.cmp(e)>=0);return o},i.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},i.prototype.test=function(e,t,n){var o=e.bitLength(),i=r.mont(e),a=new r(1).toRed(i);t||(t=Math.max(1,o/48|0));for(var l=e.subn(1),s=0;!l.testn(s);s++);for(var c=e.shrn(s),d=l.toRed(i);t>0;t--){var u=this._randrange(new r(2),l);n&&n(u);var f=u.toRed(i).redPow(c);if(0!==f.cmp(a)&&0!==f.cmp(d)){for(var h=1;h0;t--){var d=this._randrange(new r(2),a),u=e.gcd(d);if(0!==u.cmpn(1))return u;var f=d.toRed(o).redPow(s);if(0!==f.cmp(i)&&0!==f.cmp(c)){for(var h=1;h>8,a=255&o;i?n.push(i,a):n.push(a)}return n},r.zero2=o,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},function(e,t,n){"use strict";var r=t;r.base=n(89),r.short=n(449),r.mont=n(450),r.edwards=n(451)},function(e,t,n){"use strict";var r=n(33).rotr32;function o(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?o(t,n,r):1===e||3===e?a(t,n,r):2===e?i(t,n,r):void 0},t.ch32=o,t.maj32=i,t.p32=a,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){"use strict";var r=n(33),o=n(71),i=n(201),a=n(23),l=r.sum32,s=r.sum32_4,c=r.sum32_5,d=i.ch32,u=i.maj32,f=i.s0_256,h=i.s1_256,p=i.g0_256,m=i.g1_256,g=o.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(b,g),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r>6],o=0==(32&n);if(31==(31&n)){var i=n;for(n=0;128==(128&i);){if(i=e.readUInt8(t),e.isError(i))return i;n<<=7,n|=127&i}}else n&=31;return{cls:r,primitive:o,tag:n,tagStr:l.tag[n]}}function u(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;var o=127&r;if(o>4)return e.error("length octect is too long");r=0;for(var i=0;i=31)return r.error("Multi-octet tag encoding unsupported");t||(o|=32);return o|=l.tagClassByName[n||"universal"]<<6}(e,t,n,this.reporter);if(r.length<128)return(i=new o(2))[0]=a,i[1]=r.length,this._createEncoderBuffer([i,r]);for(var s=1,c=r.length;c>=256;c>>=8)s++;(i=new o(2+s))[0]=a,i[1]=128|s;c=1+s;for(var d=r.length;d>0;c--,d>>=8)i[c]=255&d;return this._createEncoderBuffer([i,r])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=new o(2*e.length),r=0;r=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var i=0;for(r=0;r=128;a>>=7)i++}var l=new o(i),s=l.length-1;for(r=e.length-1;r>=0;r--){a=e[r];for(l[s--]=127&a;(a>>=7)>0;)l[s--]=128|127&a}return this._createEncoderBuffer(l)},c.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[d(r.getFullYear()),d(r.getUTCMonth()+1),d(r.getUTCDate()),d(r.getUTCHours()),d(r.getUTCMinutes()),d(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[d(r.getFullYear()%100),d(r.getUTCMonth()+1),d(r.getUTCDate()),d(r.getUTCHours()),d(r.getUTCMinutes()),d(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!o.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new o(n)}if(o.isBuffer(e)){var r=e.length;0===e.length&&r++;var i=new o(r);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);r=1;for(var a=e;a>=256;a>>=8)r++;for(a=(i=new Array(r)).length-1;a>=0;a--)i[a]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new o(i))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,n){var r,o=this._baseState;if(null===o.default)return!1;var i=e.join();if(void 0===o.defaultBuffer&&(o.defaultBuffer=this._encodeValue(o.default,t,n).join()),i.length!==o.defaultBuffer.length)return!1;for(r=0;r/g,u=/"/g,f=/"/g,h=/&#([a-zA-Z0-9]*);?/gim,p=/:?/gim,m=/&newline;?/gim,g=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,v=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,b=/u\s*r\s*l\s*\(.*/gi;function y(e){return e.replace(u,""")}function _(e){return e.replace(f,'"')}function S(e){return e.replace(h,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function E(e){return e.replace(p,":").replace(m," ")}function C(e){for(var t="",n=0,r=e.length;n/g;t.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],strong:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","loop","preload","src","height","width"]},t.getDefaultWhiteList=a,t.onTag=function(e,t,n){},t.onIgnoreTag=function(e,t,n){},t.onTagAttr=function(e,t,n){},t.onIgnoreTagAttr=function(e,t,n){},t.safeAttrValue=function(e,t,n,r){if(n=T(n),"href"===t||"src"===t){if("#"===(n=i.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(g.lastIndex=0,g.test(n))return""}else if("style"===t){if(v.lastIndex=0,v.test(n))return"";if(b.lastIndex=0,b.test(n)&&(g.lastIndex=0,g.test(n)))return"";!1!==r&&(n=(r=r||l).process(n))}return n=A(n)},t.escapeHtml=s,t.escapeQuote=y,t.unescapeQuote=_,t.escapeHtmlEntities=S,t.escapeDangerHtml5Entities=E,t.clearNonPrintableCharacter=C,t.friendlyAttrValue=T,t.escapeAttrValue=A,t.onIgnoreTagStripAll=function(){return""},t.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),r=[],o=!1;return{onIgnoreTag:function(a,l,s){if(function(t){return!!n||-1!==i.indexOf(e,t)}(a)){if(s.isClosing){var c="[/removed]",d=s.position+c.length;return r.push([!1!==o?o:s.position,d]),o=!1,c}return o||(o=s.position),"[removed]"}return t(a,l,s)},remove:function(e){var t="",n=0;return i.forEach(r,(function(r){t+=e.slice(n,r[0]),n=r[1]})),t+=e.slice(n)}}},t.stripCommentTag=function(e){return e.replace(O,"")},t.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},t.cssFilter=l,t.getDefaultCSSWhiteList=o},function(e,t){function n(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var r=/javascript\s*\:/gim;t.whiteList=n(),t.getDefaultWhiteList=n,t.onAttr=function(e,t,n){},t.onIgnoreAttr=function(e,t,n){},t.safeAttrValue=function(e,t){return r.test(t)?"":t}},function(e,t){e.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function c(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}t.parseTag=function(e,t,n){var r="",a=0,l=!1,s=!1,c=0,d=e.length,u="",f="";for(c=0;c"===h){r+=n(e.slice(a,l)),u=o(f=e.slice(l,c+1)),r+=t(l,r.length,u,f,i(f)),a=c+1,l=!1;continue}if(('"'===h||"'"===h)&&"="===e.charAt(c-1)){s=h;continue}}else if(h===s){s=!1;continue}}return aa",e.style.opacity="0",f.appendChild(e);var t=e.innerText;if(b.remove(e),!t)for(var n,r,o,i=c.getElementsByTagName("math");i.length>0;)r=(n=i[0]).parentNode,(o=c.createElement("span")).innerText=n.textContent,r.insertBefore(o,n),r.removeChild(n)}();for(var t=e.querySelectorAll("br"),n=t.length-1;n>=0;n--){var r=t[n];if(r.previousSibling&&!r.nextSibling)b.remove(r);else if(!r.previousSibling&&!r.nextSibling){var i=b.getBlockParent(r,!1);b.isEmptyDom(i)||b.remove(r)}}var a=e.innerText;return a?"\n"===a.charAt(a.length-1)&&(a=a.substr(0,a.length-1)):a=b.getInnerText(e),a=(a=a.replace(String.fromCharCode(65279),"")).replace(o.SPACE_CHAR_REG," ")},markdownConvert:function(){var e,r,i,s,c,d,u=/(\$\$?|\\(?:begin|end){[a-z]*\*?}|\\[\\{}$]|[{}]|(?:\n\s*)+|@@\d+@@)/i,h=!1,p=n.$(f);p.addClass(o.CLASS.MARKDOWN_BODY);var g=new a.Converter({nonAsciiLetters:!0,asteriskIntraWordEmphasis:!0,imgSrcFilter:function(e){return m.options.reader.markdownPlugIn.imgSrcFilter?m.options.reader.markdownPlugIn.imgSrcFilter(e):e},customBlockGamut:function(e){return m.options.reader.markdownPlugIn.customBlockGamut?m.options.reader.markdownPlugIn.customBlockGamut(e):e}}),v=function(t,n){var o=s.slice(t,n+1).join("");if(!o.match(/`/i)){for(o=o.replace(/&/g,"&").replace(//g,">");n>t;)s[n]="",n--;s[t]="@@"+c.length+"@@",c.push(o)}e=r=i=null};try{var b;E?b=S:(S=f.innerHTML,b=t.getMarkdownSrc(f)),b=T.tocReady(b);var y=b.match(/^```/gm);y=y?y.length/2:0,l.init(g,{extensions:"all",highlighter:y>50?"prettify":"codeMirror"});var C=b.replace(/\n/g,"\\n").replace(/\r\n?/g,"\n").replace(/```(.*\n)+?```/gm,"");(_=/(\$\$?)[^$\n]+\1/.test(C))&&(b=function(t){var n;e=r=i=null,c=[];for(var o=1,a=(s=t.replace(/\r\n?/g,"\n").split(u)).length;o]*>(.|\r?\n)*<\/textarea>/gi,(function(e){return e.replace(t,"$1")}))},tocRender:function(){var e={},t=[],r=6;n.$("h1,h2,h3,h4,h5,h6",f).each((function(e,t){var n=parseInt(t.tagName.charAt(1),10);r=Math.min(r,n)})),n.$("h1,h2,h3,h4,h5,h6",f).each((function(o,i){var a=(i.textContent||i.innerText).replace(/[()<> '"\r\n]/g,"");e[a]?(++e[a],a+="-"+e[a]):e[a]=1;var l=parseInt(i.tagName.charAt(1),10),s=n.$(i);s.attr("id",a),t.push(''+s.text()+"")})),t='
    '+t.join("
    ")+"
    ",n.$("a",f).each((function(e,r){"#wizToc"===(r=n.$(r)).attr("href")&&(r.before(t),r.css("display","none"))}))},flowRender:function(){n.flowchart&&n.$(".language-flow",f).parents("pre").each((function(e,t){var r="wiz-flow-"+e,o=n.$("textarea",t).val();if(o.length>0)try{t.style.display="none";var i=n.flowchart.parse(o),a=c.createElement("div");if(a.id=r,t.parentNode.insertBefore(a,t),i.drawSVG(r),m.client.type.isPhone){var l=n.$("svg",a);l.attr("width")&&l.css({"max-width":l.attr("width")}).attr({height:null,width:"95%"})}}catch(e){console.error(e)}}))},sequenceRender:function(){if(n.Diagram){var e=function(e){e.each((function(e,t){var r="wiz-sequence-"+e,o=n.$("textarea",t).val();if(o.length>0)try{t.style.display="none";var i=n.Diagram.parse(o),a=c.createElement("div");if(a.id=r,t.parentNode.insertBefore(a,t),i.drawSVG(r,{theme:"simple"}),m.client.type.isPhone){var l=n.$("svg",a);l.attr("width")&&(b.attr(l.get(0),{viewBox:"0 0 "+l.attr("width")+" "+l.attr("height")}),l.css({"max-width":l.attr("width")}).attr({preserveAspectRatio:"xMidYMid meet",height:null,width:"95%"}))}}catch(e){console.error(e)}}))},t=n.$(".language-sequence",f).parents("pre");e(t),e(t=n.$(".language-seq",f).parents("pre"))}},xssFilter:d.xssFilter};this.getMarkdownSrcForEditor=function(e){var n,r;v&&v.saveToText(),e=e||{},r=m.readonly?S.replace(/\n/g,"

    "):m.body.innerHTML;var i=m.doc.createElement("div");e.escapeHtml&&(r=r.replace(/&/g,"&")),i.innerHTML=r,b.html2Markdown(i,{}),b.css(i,{opacity:0,position:"absolute",top:"-9999px",left:"-9999px",width:"1px",height:"1px",overflow:"hidden"}),m.body.appendChild(i),v&&v.clearCodeForMarkdown(i);for(var a=i.querySelectorAll(o.TAG.TMP_TAG),l=a.length-1;l>=0;l--)b.remove(a[l]);return n=t.getMarkdownSrc(i),n=b.restoreImgPath(n),m.body.removeChild(i),i=null,n},this.getMarkdownSrc=function(e){var t=e||f;return T.markdownPreProcess(t),T.getBodyTxt(t)},this.do=function(e,t){e.container&&(f=e.container),"string"==typeof e.markdownSrc?(S=e.markdownSrc,E=!0):(S="",E=!1);!function(e){u.addCallback(c,e),u.getLoading(c)||(n.$&&n.Diagram&&n.flowchart&&n.prettyPrint?u.callback(c):(u.setLoading(c,!0),s.loadJs(c,s.getDependencyFiles(m.dependency,"js","markdown"),(function(){u.setLoading(c,!1),u.callback(c)}))))}((function(){b.addClass(f,o.CLASS.READONLY);var e=m.options.reader.timeout.markdown;t=t||h;var n=!1,i=function(){t&&/^function$/i.test(r(t))&&!n&&(t(),n=!0)};setTimeout(i,e),C((function(){i()}))}))},this.init=function(){n=e.win||m.win,c=e.doc||m.doc,f=e.container||m.body,h=e.callback,y&&y.init()}}},function(e,t,n){n(219);var r,o,i,a=n(1),l=n(3),s=n(91),c=n(63),d=n(137),u=n(489),f=n(490),h=n(491),p=n(492),m=n(493),g=n(494),v=n(495),b=n(496),y=n(497);r=n(498),o=n(499),i=n(500);var _,S=n(501);_=n(502);var E,C=n(503),T=n(504),A=n(505),O=n(506),w=n(507),N=n(508),L=n(509),I=n(510),U=n(511),D=n(512),M=n(514),x=n(515),R=n(516),k=n(517),P=n(518),B=n(519),z=n(520),F=n(521),j=n(522),q=n(523),W=n(524),H=n(525),Y=n(526),G=n(527),V=n(528),Z=n(529),K=n(530),X=n(531),$=n(532),J=n(533),Q=n(534),ee=n(535),te=n(536);E=n(217);var ne,re,oe=n(539),ie=n(540);ne=n(541),re=n(542);var ae,le,se,ce,de=n(543),ue=n(544),fe=n(545),he=n(546),pe=n(547),me=n(548),ge=n(549),ve=n(550),be=n(551),ye=n(552),_e=n(553),Se=n(554),Ee=n(555),Ce=n(556);ae=n(557),le=n(558),se=n(559),ce=n(560);var Te=n(561),Ae=n(562),Oe=function(e,t){for(var n=new u(e),Oe={env:n,lang:new f(n.options.lang,n),require:{amend:new h,amendInfo:new p,amendUser:new m,amendUserAction:new g,amendUtils:new v,blockCore:new b,blockUtils:new y,codeCore:r?new r:null,codeStyle:o?new o:null,codeUtils:i?new i:null,commandExtend:new S,commonUtils:new A,contentCore:_?new _:null,clientBridge:new C,clipboardUtils:new T,domUtils:new O,editorBridge:new w,editorCommon:new N,editorCommonEvent:new L,editorOutline:new I,editorOutlineEvent:new U,formatPainter:new x,frameViewCore:new R,frameViewStyle:new k,frameViewUtils:new P,highlightUtils:new B,historyUtils:new z,lazyLoadCore:new F,lazyLoadUtils:new j,menuPlugin:new q,imgClick:new W,imgCore:new H,imgMenu:new Y,imgResize:new G,imgUpload:new V,imgUtils:new Z,linkCore:new X,linkMenu:new $,linkUtils:new J,markdownRender:E?new E:null,markerCore:new oe,markerStyle:new ie,MathJaxRender:ne||null,mathJaxRender:ne?new ne:null,mediaCore:new Q,mediaStyle:new ee,mediaUtils:new te,minderMenu:new D,nightModeUtils:re?new re:null,outlineCore:new de,outlineStyle:new ue,outlineUtils:new M,pasteUtils:new fe,rangeUtils:new he,readerCommon:new pe,readerCommonEvent:new me,readerOutline:new ge,readerOutlineEvent:new ve,selectPlugin:new be,svgClick:new K,tabKey:new ye,tableCore:new _e,tableMenuList:new Se,tableUtils:new Ee,tableZone:new Ce,todoCore:ae?new ae:null,todoStyle:le?new le:null,todoUtils:se?new se:null,toolbarMarkdown:ce?new ce:null,tooltip:new Te,wizStyle:new Ae}},we=Oe.require,Ne=0,Le=Object.keys(we);Ne
    ")),s.close()}n.doc=o.contentDocument,n.win=o.contentWindow,n.body=n.doc.body,n.frame.dom=o,c.run(n.win)}else(i=r.querySelector("."+a.CLASS.WIZ_BODY))||((i=n.doc.createElement("div")).innerHTML="

    ",r.appendChild(i)),n.body=i;Ge.attr(n.body,{spellcheck:"false"}),n.frame.toolbarDoc=e,n.frame.toolbarContainer=t,n.frame.bodyContainer=r}();var ut=function(e){if(n.readonly&&!n.options.pureReadMode.enable&&n.options.reader.type!==a.NOTE_READER_TYPE.MARKDOWN&&n.options.reader.type!==a.NOTE_READER_TYPE.MATHJAX&&n.options.reader.autoEdit){if(!je.getBridge().hasPermission())return!1;var t=st.getModifiedListFromReader(),r=Ye.lastFocusCodeForReader,o=it.getRange(),i=n.client.type.isIOS;if(r||o||i){if(!o&&i&&(e.target!==n.body&&(o=it.getEventCaretRange(e)),!o)){var l=Ge.getLast();it.setRange(l,Ge.getEndOffset(l)),o=it.getRange()}var s,c,d,u;r||(s=o.startContainer,c=o.startOffset,d=o.endContainer,u=o.endOffset),mt.editor.on({},(function(){t.length>0&&setTimeout((function(){Me.setOriginalHtml("isModified")}),500),r?Ye.setSelection(r.id,r.anchor,r.head):it.setRange(s,c,d,u),n.options.reader.callback.onAutoEdit&&n.options.reader.callback.onAutoEdit()}))}}},ft=function(){De.forEach((function(e){xe.addListener(e.eName,e.fun)})),De=[]},ht=function(){var e=Pe.init();Me=e.editor,xe=e.editorEvent,Re=e.editorUtils,ke=e.reader,Me.type===a.DOCUMENT_TYPE.COMMON&&(ke.noteSrcIsText=!1,ke.noteTextSrc="")},pt=function(e){if(e=Je.imgPreprocess(e),n.options.useFrame?(n.doc.open("text/html","replace"),n.doc.write(e),n.doc.close(),n.body=n.doc.body):n.body.innerHTML=e,Ge.attr(n.body,{spellcheck:"false"}),c.run(n.win),n.client.type.isWeb){dt.insertDefaultStyle(!1,"")}},mt={version:a.version,destroy:function(){n.isWizTemplate&&n.win.WizTemplate&&n.win.WizTemplate.off(),n.isWizTemplate=!1,Me&&Me.offEvent(),ke&&ke.offEvent(),n.body.innerHTML="",n.readonly=null},setOptions:n.setOptions,getDocumentType:function(){return Pe&&Pe.isOutline?a.DOCUMENT_TYPE.OUTLINE:a.DOCUMENT_TYPE.COMMON},editor:{on:function(e,t){if(n.event.remove(a.EVENT.AUTO_EDIT,ut),!1!==n.readonly){var r=function(){ft(),"function"==typeof t&&t()};"function"==typeof e&&(t=e,e={});var o=(e=e||{}).documentBody,i=e.documentBodyType;if(void 0!==e.htmlBaseUrl&&(n.options.htmlBaseUrl=e.htmlBaseUrl),void 0!==e.minHeight&&(n.options.editor.minHeight=e.minHeight),e.reader&&e.reader.type&&(n.options.reader.type=e.reader.type),o||Pe.checkDocumentEditable()){var s=function(){"string"!=typeof o||("text"===i?n.body.innerHTML=d.xssFilter(l.txt2HTML(o,{wizTableSaveDom:!0})):(o=d.xssFilter(o),o=Ge.initDocHtml(o),pt(o)),Pe.checkDocumentEditable())?(ht(),Me.on(e,r)):r()};if(ke)if(ke.type===a.DOCUMENT_TYPE.COMMON){var c={noteSrc:null,useContentExtractionHtml:e.useContentExtractionHtml};"string"!=typeof o&&ke.noteSrcIsText&&(c.noteSrc=d.xssFilter(l.txt2HTML(ke.noteTextSrc,{wizTableSaveDom:!0}))),ke.off(c,s)}else ke.off({},s);else s()}else r()}},caretBackup:function(){return it.caretBackup()},createSvg:function(){at.createSvg()},execCommand:function(){Xe.saveSnap(!1);for(var e=arguments.length,t=new Array(e),n=0;n]*>([\s\S]*)<\/body>/i,i=o.exec(t);i=i&&i[1]||t;var l=o.exec(r);return l=l&&l[1]||r,!1===n.readonly&&i!==l},modifySelectionBlock:function(e){Xe.saveSnap(!1),Re.modifySelectionBlock(e)},modifySelectionDom:function(e,t){n.event.setPause(a.EVENT.ON_SELECTION_CHANGE,!0),Xe.saveSnap(!1),Re.modifySelectionDom(e,t),setTimeout((function(){n.event.setPause(a.EVENT.ON_SELECTION_CHANGE,!1)}),10)},paste:function(e,t){!1===n.readonly&&ot.pasteFromClient(e,t)},pasteB64:function(e,t){var n=s.decode(e),r=s.decode(t);mt.editor.paste(n,r)},redo:function(){Xe.redo()},removeFormat:function(e,t,n){Xe.saveSnap(!1),dt.removeFormat(e,t,n)},replace:function(e,t,n){return Re.replace(e,t,n)},replaceAll:function(e,t,n){Xe.saveSnap(!1),Re.replaceAll(e,t,n)},caretRestore:function(){return it.caretRestore()},saveSnap:function(){Xe.saveSnap(!1)},setUnModified:function(){Me.setOriginalHtml()},undo:function(){Xe.undo()},ListenerType:a.TYPE.EDITOR_EVENT,addListener:function(e,t){xe?xe.addListener(e,t):De.push({eName:e,fun:t})},removeListener:function(e,t){xe&&xe.removeListener(e,t)},triggerListener:function(e,t){xe&&xe.triggerListener(e,t)},startTrackEvent:function(e,t){xe&&xe.startTrackEvent(e,t)},stopTrackEvent:function(e,t){xe&&xe.stopTrackEvent(e,t)},amend:{on:function(){Be.start()},off:function(){Be.startReverse()},changeCurUser:function(e){Be.changeCurUser(e)},isEdited:function(){return Be.isAmendEdited()},isEditing:function(){return Be.isAmendEditing},hasAmendSpanByCursor:function(){return Be.hasAmendSpanByCursor()},accept:function(e){Be.accept(gt(e))},refuse:function(e){Be.refuse(gt(e))}},code:{insertCode:function(){He&&He.insertCode()}},formatPainter:{on:function(e){return Ve.on(e)},off:function(){Ve.off()}},img:{getAll:function(e,t){return $e.getAll(e,t).join(",")},insertAsAttachment:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Xe.saveSnap(!1),!r.insertStart&&!r.insertEnd){var o=Fe.insertBlock(n.doc.createElement("div"));o.innerHTML=""}Re.insertDom($e.makeAttachmentDom(e,t),r)},insertByPath:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Xe.saveSnap(!1),!t.insertStart&&!t.insertEnd){var r=Fe.insertBlock(n.doc.createElement("div"));r.innerHTML=""}Re.insertDom($e.makeDomByPath(e),t)},uploadImg:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!n.readonly){var r=we.imgUpload.createdUploadNode(e);if(Pe.isOutline){it.caretRestore();Me.createImg(r.dom)}else{if(Xe.saveSnap(!1),!t.insertStart&&!t.insertEnd){var o=Fe.insertBlock(n.doc.createElement("div"));o.innerHTML=""}Re.insertDom(r.dom,t)}return r.key}},onImgUploadProgress:function(){var e;return(e=we.imgUpload).onImgUploadProgress.apply(e,arguments)},onImgUploadComplete:function(){var e;return(e=we.imgUpload).onImgUploadComplete.apply(e,arguments)},onImgUploadError:function(){var e;return(e=we.imgUpload).onImgUploadError.apply(e,arguments)},getDom:function(e){return we.imgUpload.getUploadDom(e)},removeCur:function(){Xe.saveSnap(!1);var e="img["+a.ATTR.IMG_EDITING+"]";$e.remove(e)},replaceCur:function(e){Xe.saveSnap(!1);var t="img["+a.ATTR.IMG_EDITING+"]";$e.replaceSrc(t,e)}},link:{on:function(){Qe.on()},off:function(){Qe.off()},getCurrentLink:function(){return et.getCurrentLink()},removeSelectedLink:function(){et.removeSelectedLink()},setCurrentLink:function(e){et.setCurrentLink(e)}},marker:{start:function(){nt.start()},quit:function(e){nt.quit(e)},checkMarker:function(){return nt.checkMarker()},hide:function(){nt.hide()},show:function(){nt.show()}},range:{moveToPoint:function(e,t){it.moveToPoint(e,t)}},table:{canCreateTable:lt.canCreateTable,clearCellValue:lt.clearCellValue,deleteCols:lt.deleteCols,deleteRows:lt.deleteRows,deleteTable:lt.deleteTable,distributeCols:lt.distributeCols,insertCol:lt.insertCol,insertRow:lt.insertRow,insertTable:lt.insertTable,merge:lt.merge,setCellAlign:lt.setCellAlign,setCellBg:lt.setCellBg,split:lt.split},todo:{setTodo:function(){st&&st.setTodo()},setTodoInfo:function(e){st&&st.setTodoInfo(e)}},utils:{clearStyleFromHtml:function(e,t){return Xe.saveSnap(!1),Ge.clearStyleFromHtml(e,t)}},toolbar:{setImgUploaderId:function(e){ct&&ct.setImgUploaderId(e)},onImgUploadBegin:function(e,t){ct&&ct.onImgUploadBegin(e,t)},onImgUploadProgress:function(e,t){ct&&ct.onImgUploadProgress(e,t)},onImgUploadComplete:function(e,t){ct&&ct.onImgUploadComplete(e,t)},onImgUploadError:function(e){ct&&ct.onImgUploadError(e)}}},reader:{on:function(e,t){if(n.event.add(a.EVENT.AUTO_EDIT,ut),!0!==n.readonly){"function"==typeof e&&(t=e,e={}),void 0!==(e=e||{}).minHeight&&(n.options.reader.minHeight=e.minHeight),void 0!==e.htmlBaseUrl&&(n.options.htmlBaseUrl=e.htmlBaseUrl),e.reader&&e.reader.type&&(n.options.reader.type=e.reader.type),n.options.pc.pluginModified=!1;var r=e.documentBody,o=e.documentBodyType;"string"==typeof r?(n.options.reader.type===a.NOTE_READER_TYPE.MARKDOWN&&(n.body.style.opacity="0"),"text"===o?(ht(),ke.noteSrcIsText=!0,ke.noteTextSrc=r):(r=d.xssFilter(r),r=Ge.initDocHtml(r),pt(r),ht())):ht();ke.on(e,(function(){"function"==typeof t&&(ft(),t()),n.options.pureReadMode.enable&&mt.reader.pureRead.on()}))}},closeDocument:function(){return st?st.closeDocument():null},getRenderDocument:function(){return Be.hideAmendInfo(),Ge.getRenderDocument()},getWordCount:function(){var e=Ge.getWordCount();return JSON.stringify(e)},setPluginModify:function(e){return n.options.pc.pluginModified?n.options.pc.pluginModified:(n.options.reader.type===a.NOTE_READER_TYPE.COMMON&&(n.options.pc.pluginModified=!!e),n.options.pc.pluginModified)},amendInfo:{on:ze.on,off:ze.off},highlight:{next:function(){Ke.next()},off:function(){Ke.off()},on:function(e,t){return Ke.on(e,t)},previous:function(){Ke.previous()}},pureRead:{on:function(e){n.options.pureReadMode.enable=!0,e=e||{},We&&We.on({needContentExtraction:e.needContentExtraction},(function(){}))},off:function(){n.options.pureReadMode.enable=!1,We&&We.off()}},todo:{setTodoInfo:function(e){st&&st.setTodoInfo(e)},onCheckDocLock:function(e,t){st&&st.onCheckDocLock(e,t)}},marker:{hide:function(){nt.hide()},show:function(){nt.show()}}},outline:{addNotes:function(){Pe.isOutline&&!n.readonly&&Me.addNotes()},setCompleted:function(e){Pe.isOutline&&!n.readonly&&Me.setCompleted(e)},deleteNodes:function(){Pe.isOutline&&!n.readonly&&Me.deleteNodes()},indent:function(){Pe.isOutline&&!n.readonly&&Me.indent()},outdent:function(){Pe.isOutline&&!n.readonly&&Me.outdent()},hideMinder:function(){Pe.isOutline&&Me.hideMinder()},minderThemeRegister:function(e){Pe.isOutline&&Me.minderThemeRegister(e)},showMinder:function(e){Pe.isOutline&&Me.showMinder(e)},userMinderTheme:function(e){Pe.isOutline&&Me.userMinderTheme(e)}},frame:{getFrameElement:Ze.getFrameElement,adjustContainerSize:Ze.onAdjustContainerSize},nightMode:{on:function(e,t,r){n.options.nightMode.enable=!0,e&&(n.options.nightMode.color=e),t&&(n.options.nightMode.bgColor=t),r&&(n.options.nightMode.brightness=r),rt&&rt.on()},off:function(){n.options.nightMode.enable=!1,rt&&rt.off()}},insertCustomStyle:function(e,t,n){dt.insertCustomStyle(e,t,n)},insertDefaultStyle:function(e,t){dt.insertDefaultStyle(e,t)},removeStyleById:function(e){dt.removeStyleById(e)}};return t&&t(Oe),n.event.add(a.EVENT.ON_MARKER_INITIATED,(function(e){var t=e.editorTools;for(var n in mt.editor.marker.tools=t,t)t.hasOwnProperty(n)&&(mt.editor.marker[n]=t[n])})),mt;function gt(e){return e?(e.total=!!e.total,e.cursor=!!e.cursor):e={dom:null,cursor:!1,total:!0},e}};window.WizDocument=Oe,Oe.version=a.version,e.exports=Oe},function(e,t,n){"use strict";n(220);var r,o=(r=n(392))&&r.__esModule?r:{default:r};o.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),o.default._babelPolyfill=!0},function(e,t,n){"use strict";n(221),n(364),n(366),n(369),n(371),n(373),n(375),n(377),n(379),n(381),n(383),n(385),n(387),n(391)},function(e,t,n){n(222),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(303),n(304),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(112),n(327),n(161),n(328),n(162),n(329),n(330),n(331),n(332),n(163),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),e.exports=n(12)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(6),i=n(20),a=n(14),l=n(0),s=n(18),c=n(39).KEY,d=n(7),u=n(74),f=n(55),h=n(43),p=n(10),m=n(93),g=n(142),v=n(224),b=n(77),y=n(8),_=n(9),S=n(17),E=n(22),C=n(38),T=n(42),A=n(47),O=n(145),w=n(30),N=n(76),L=n(15),I=n(45),U=w.f,D=L.f,M=O.f,x=o.Symbol,R=o.JSON,k=R&&R.stringify,P=p("_hidden"),B=p("toPrimitive"),z={}.propertyIsEnumerable,F=u("symbol-registry"),j=u("symbols"),q=u("op-symbols"),W=Object.prototype,H="function"==typeof x&&!!N.f,Y=o.QObject,G=!Y||!Y.prototype||!Y.prototype.findChild,V=a&&d((function(){return 7!=A(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=U(W,t);r&&delete W[t],D(e,t,n),r&&e!==W&&D(W,t,r)}:D,Z=function(e){var t=j[e]=A(x.prototype);return t._k=e,t},K=H&&"symbol"==r(x.iterator)?function(e){return"symbol"==r(e)}:function(e){return e instanceof x},X=function(e,t,n){return e===W&&X(q,t,n),y(e),t=C(t,!0),y(n),i(j,t)?(n.enumerable?(i(e,P)&&e[P][t]&&(e[P][t]=!1),n=A(n,{enumerable:T(0,!1)})):(i(e,P)||D(e,P,T(1,{})),e[P][t]=!0),V(e,t,n)):D(e,t,n)},$=function(e,t){y(e);for(var n,r=v(t=E(t)),o=0,i=r.length;i>o;)X(e,n=r[o++],t[n]);return e},J=function(e){var t=z.call(this,e=C(e,!0));return!(this===W&&i(j,e)&&!i(q,e))&&(!(t||!i(this,e)||!i(j,e)||i(this,P)&&this[P][e])||t)},Q=function(e,t){if(e=E(e),t=C(t,!0),e!==W||!i(j,t)||i(q,t)){var n=U(e,t);return!n||!i(j,t)||i(e,P)&&e[P][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=M(E(e)),r=[],o=0;n.length>o;)i(j,t=n[o++])||t==P||t==c||r.push(t);return r},te=function(e){for(var t,n=e===W,r=M(n?q:E(e)),o=[],a=0;r.length>a;)!i(j,t=r[a++])||n&&!i(W,t)||o.push(j[t]);return o};H||(s((x=function(){if(this instanceof x)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function t(n){this===W&&t.call(q,n),i(this,P)&&i(this[P],e)&&(this[P][e]=!1),V(this,e,T(1,n))};return a&&G&&V(W,e,{configurable:!0,set:t}),Z(e)}).prototype,"toString",(function(){return this._k})),w.f=Q,L.f=X,n(48).f=O.f=ee,n(65).f=J,N.f=te,a&&!n(44)&&s(W,"propertyIsEnumerable",J,!0),m.f=function(e){return Z(p(e))}),l(l.G+l.W+l.F*!H,{Symbol:x});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)p(ne[re++]);for(var oe=I(p.store),ie=0;oe.length>ie;)g(oe[ie++]);l(l.S+l.F*!H,"Symbol",{for:function(e){return i(F,e+="")?F[e]:F[e]=x(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){G=!0},useSimple:function(){G=!1}}),l(l.S+l.F*!H,"Object",{create:function(e,t){return void 0===t?A(e):$(A(e),t)},defineProperty:X,defineProperties:$,getOwnPropertyDescriptor:Q,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=d((function(){N.f(1)}));l(l.S+l.F*ae,"Object",{getOwnPropertySymbols:function(e){return N.f(S(e))}}),R&&l(l.S+l.F*(!H||d((function(){var e=x();return"[null]"!=k([e])||"{}"!=k({a:e})||"{}"!=k(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(_(t)||void 0!==e)&&!K(e))return b(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,k.apply(R,r)}}),x.prototype[B]||n(21)(x.prototype,B,x.prototype.valueOf),f(x,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},function(e,t,n){e.exports=n(74)("native-function-to-string",Function.toString)},function(e,t,n){var r=n(45),o=n(76),i=n(65);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,l=n(e),s=i.f,c=0;l.length>c;)s.call(e,a=l[c++])&&t.push(a);return t}},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(47)})},function(e,t,n){var r=n(0);r(r.S+r.F*!n(14),"Object",{defineProperty:n(15).f})},function(e,t,n){var r=n(0);r(r.S+r.F*!n(14),"Object",{defineProperties:n(144)})},function(e,t,n){var r=n(22),o=n(30).f;n(31)("getOwnPropertyDescriptor",(function(){return function(e,t){return o(r(e),t)}}))},function(e,t,n){var r=n(17),o=n(49);n(31)("getPrototypeOf",(function(){return function(e){return o(r(e))}}))},function(e,t,n){var r=n(17),o=n(45);n(31)("keys",(function(){return function(e){return o(r(e))}}))},function(e,t,n){n(31)("getOwnPropertyNames",(function(){return n(145).f}))},function(e,t,n){var r=n(9),o=n(39).onFreeze;n(31)("freeze",(function(e){return function(t){return e&&r(t)?e(o(t)):t}}))},function(e,t,n){var r=n(9),o=n(39).onFreeze;n(31)("seal",(function(e){return function(t){return e&&r(t)?e(o(t)):t}}))},function(e,t,n){var r=n(9),o=n(39).onFreeze;n(31)("preventExtensions",(function(e){return function(t){return e&&r(t)?e(o(t)):t}}))},function(e,t,n){var r=n(9);n(31)("isFrozen",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},function(e,t,n){var r=n(9);n(31)("isSealed",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},function(e,t,n){var r=n(9);n(31)("isExtensible",(function(e){return function(t){return!!r(t)&&(!e||e(t))}}))},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(146)})},function(e,t,n){var r=n(0);r(r.S,"Object",{is:n(147)})},function(e,t,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(97).set})},function(e,t,n){"use strict";var r=n(66),o={};o[n(10)("toStringTag")]="z",o+""!="[object z]"&&n(18)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(148)})},function(e,t,n){var r=n(15).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(14)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(9),o=n(49),i=n(10)("hasInstance"),a=Function.prototype;i in a||n(15).f(a,i,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(0),o=n(150);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(e,t,n){var r=n(0),o=n(151);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(e,t,n){"use strict";var r=n(6),o=n(20),i=n(34),a=n(99),l=n(38),s=n(7),c=n(48).f,d=n(30).f,u=n(15).f,f=n(56).trim,h=r.Number,p=h,m=h.prototype,g="Number"==i(n(47)(m)),v="trim"in String.prototype,b=function(e){var t=l(e,!1);if("string"==typeof t&&t.length>2){var n,r,o,i=(t=v?t.trim():f(t,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+t}for(var a,s=t.slice(2),c=0,d=s.length;co)return NaN;return parseInt(s,r)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof h&&(g?s((function(){m.valueOf.call(n)})):"Number"!=i(n))?a(new p(b(t)),n,h):b(t)};for(var y,_=n(14)?c(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;_.length>S;S++)o(p,y=_[S])&&!o(h,y)&&u(h,y,d(p,y));h.prototype=m,m.constructor=h,n(18)(r,"Number",h)}},function(e,t,n){"use strict";var r=n(0),o=n(29),i=n(152),a=n(100),l=1..toFixed,s=Math.floor,c=[0,0,0,0,0,0],d="Number.toFixed: incorrect invocation!",u=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=s(r/1e7)},f=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=s(n/e),n=n%e*1e7},h=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t},p=function e(t,n,r){return 0===n?r:n%2==1?e(t,n-1,r*t):e(t*t,n/2,r)};r(r.P+r.F*(!!l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(7)((function(){l.call({})}))),"Number",{toFixed:function(e){var t,n,r,l,s=i(this,d),c=o(e),m="",g="0";if(c<0||c>20)throw RangeError(d);if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(m="-",s=-s),s>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(s*p(2,69,1))-69)<0?s*p(2,-t,1):s/p(2,t,1),n*=4503599627370496,(t=52-t)>0){for(u(0,n),r=c;r>=7;)u(1e7,0),r-=7;for(u(p(10,r,1),0),r=t-1;r>=23;)f(1<<23),r-=23;f(1<0?m+((l=g.length)<=c?"0."+a.call("0",c-l)+g:g.slice(0,l-c)+"."+g.slice(l-c)):m+g}})},function(e,t,n){"use strict";var r=n(0),o=n(7),i=n(152),a=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))),"Number",{toPrecision:function(e){var t=i(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(0),o=n(6).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},function(e,t,n){var r=n(0);r(r.S,"Number",{isInteger:n(153)})},function(e,t,n){var r=n(0);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(0),o=n(153),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},function(e,t,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(0),o=n(151);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(e,t,n){var r=n(0),o=n(150);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(e,t,n){var r=n(0),o=n(154),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:o(e-1+i(e-1)*i(e+1))}})},function(e,t,n){var r=n(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(0),o=n(101);r(r.S,"Math",{cbrt:function(e){return o(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(0);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},function(e,t,n){var r=n(0),o=n(102);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(e,t,n){var r=n(0);r(r.S,"Math",{fround:n(267)})},function(e,t,n){var r=n(101),o=Math.pow,i=o(2,-52),a=o(2,-23),l=o(2,127)*(2-a),s=o(2,-126);e.exports=Math.fround||function(e){var t,n,o=Math.abs(e),c=r(e);return ol||n!=n?c*(1/0):c*n}},function(e,t,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,i=0,a=0,l=arguments.length,s=0;a0?(r=n/s)*r:n;return s===1/0?1/0:s*Math.sqrt(i)}})},function(e,t,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(7)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(e,t){var n=+e,r=+t,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=n(0);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var r=n(0);r(r.S,"Math",{log1p:n(154)})},function(e,t,n){var r=n(0);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(0);r(r.S,"Math",{sign:n(101)})},function(e,t,n){var r=n(0),o=n(102),i=Math.exp;r(r.S+r.F*n(7)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(0),o=n(102),i=Math.exp;r(r.S,"Math",{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){var r=n(0);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var r=n(0),o=n(46),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(0),o=n(22),i=n(11);r(r.S,"String",{raw:function(e){for(var t=o(e.raw),n=i(t.length),r=arguments.length,a=[],l=0;n>l;)a.push(String(t[l++])),l=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var r=n(0),o=n(103)(!1);r(r.P,"String",{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r=n(0),o=n(11),i=n(105),a="".endsWith;r(r.P+r.F*n(107)("endsWith"),"String",{endsWith:function(e){var t=i(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(t.length),l=void 0===n?r:Math.min(o(n),r),s=String(e);return a?a.call(t,s,l):t.slice(l-s.length,l)===s}})},function(e,t,n){"use strict";var r=n(0),o=n(105);r(r.P+r.F*n(107)("includes"),"String",{includes:function(e){return!!~o(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(0);r(r.P,"String",{repeat:n(100)})},function(e,t,n){"use strict";var r=n(0),o=n(11),i=n(105),a="".startsWith;r(r.P+r.F*n(107)("startsWith"),"String",{startsWith:function(e){var t=i(this,e,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return a?a.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";n(19)("anchor",(function(e){return function(t){return e(this,"a","name",t)}}))},function(e,t,n){"use strict";n(19)("big",(function(e){return function(){return e(this,"big","","")}}))},function(e,t,n){"use strict";n(19)("blink",(function(e){return function(){return e(this,"blink","","")}}))},function(e,t,n){"use strict";n(19)("bold",(function(e){return function(){return e(this,"b","","")}}))},function(e,t,n){"use strict";n(19)("fixed",(function(e){return function(){return e(this,"tt","","")}}))},function(e,t,n){"use strict";n(19)("fontcolor",(function(e){return function(t){return e(this,"font","color",t)}}))},function(e,t,n){"use strict";n(19)("fontsize",(function(e){return function(t){return e(this,"font","size",t)}}))},function(e,t,n){"use strict";n(19)("italics",(function(e){return function(){return e(this,"i","","")}}))},function(e,t,n){"use strict";n(19)("link",(function(e){return function(t){return e(this,"a","href",t)}}))},function(e,t,n){"use strict";n(19)("small",(function(e){return function(){return e(this,"small","","")}}))},function(e,t,n){"use strict";n(19)("strike",(function(e){return function(){return e(this,"strike","","")}}))},function(e,t,n){"use strict";n(19)("sub",(function(e){return function(){return e(this,"sub","","")}}))},function(e,t,n){"use strict";n(19)("sup",(function(e){return function(){return e(this,"sup","","")}}))},function(e,t,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var r=n(0),o=n(17),i=n(38);r(r.P+r.F*n(7)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=o(this),n=i(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var r=n(0),o=n(302);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(e,t,n){"use strict";var r=n(7),o=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-5e13-1))}))||!r((function(){i.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},function(e,t,n){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(18)(r,"toString",(function(){var e=i.call(this);return e==e?o.call(this):"Invalid Date"}))},function(e,t,n){var r=n(10)("toPrimitive"),o=Date.prototype;r in o||n(21)(o,r,n(305))},function(e,t,n){"use strict";var r=n(8),o=n(38);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!=e)}},function(e,t,n){var r=n(0);r(r.S,"Array",{isArray:n(77)})},function(e,t,n){"use strict";var r=n(27),o=n(0),i=n(17),a=n(156),l=n(108),s=n(11),c=n(109),d=n(110);o(o.S+o.F*!n(78)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,u,f=i(e),h="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,b=d(f);if(g&&(m=r(m,p>2?arguments[2]:void 0,2)),null==b||h==Array&&l(b))for(n=new h(t=s(f.length));t>v;v++)c(n,v,g?m(f[v],v):f[v]);else for(u=b.call(f),n=new h;!(o=u.next()).done;v++)c(n,v,g?a(u,m,[o.value,v],!0):o.value);return n.length=v,n}})},function(e,t,n){"use strict";var r=n(0),o=n(109);r(r.S+r.F*n(7)((function(){function e(){}return!(Array.of.call(e)instanceof e)})),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)o(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(0),o=n(22),i=[].join;r(r.P+r.F*(n(64)!=Object||!n(25)(i)),"Array",{join:function(e){return i.call(o(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(0),o=n(96),i=n(34),a=n(46),l=n(11),s=[].slice;r(r.P+r.F*n(7)((function(){o&&s.call(o)})),"Array",{slice:function(e,t){var n=l(this.length),r=i(this);if(t=void 0===t?n:t,"Array"==r)return s.call(this,e,t);for(var o=a(e,n),c=a(t,n),d=l(c-o),u=new Array(d),f=0;f1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},function(e,t,n){var r=n(0);r(r.P,"Array",{copyWithin:n(159)}),n(50)("copyWithin")},function(e,t,n){var r=n(0);r(r.P,"Array",{fill:n(111)}),n(50)("fill")},function(e,t,n){"use strict";var r=n(0),o=n(32)(5),i=!0;"find"in[]&&Array(1).find((function(){i=!1})),r(r.P+r.F*i,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(50)("find")},function(e,t,n){"use strict";var r=n(0),o=n(32)(6),i="findIndex",a=!0;i in[]&&Array(1)[i]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(50)(i)},function(e,t,n){n(58)("Array")},function(e,t,n){var r=n(6),o=n(99),i=n(15).f,a=n(48).f,l=n(106),s=n(79),c=r.RegExp,d=c,u=c.prototype,f=/a/g,h=/a/g,p=new c(f)!==f;if(n(14)&&(!p||n(7)((function(){return h[n(10)("match")]=!1,c(f)!=f||c(h)==h||"/a/i"!=c(f,"i")})))){c=function(e,t){var n=this instanceof c,r=l(e),i=void 0===t;return!n&&r&&e.constructor===c&&i?e:o(p?new d(r&&!i?e.source:e,t):d((r=e instanceof c)?e.source:e,r&&i?s.call(e):t),n?this:u,c)};for(var m=function(e){e in c||i(c,e,{configurable:!0,get:function(){return d[e]},set:function(t){d[e]=t}})},g=a(d),v=0;g.length>v;)m(g[v++]);u.constructor=c,c.prototype=u,n(18)(r,"RegExp",c)}n(58)("RegExp")},function(e,t,n){"use strict";n(162);var r=n(8),o=n(79),i=n(14),a=/./.toString,l=function(e){n(18)(RegExp.prototype,"toString",e,!0)};n(7)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?l((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?o.call(e):void 0)})):"toString"!=a.name&&l((function(){return a.call(this)}))},function(e,t,n){"use strict";var r=n(8),o=n(11),i=n(114),a=n(80);n(81)("match",1,(function(e,t,n,l){return[function(n){var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=l(n,e,this);if(t.done)return t.value;var s=r(e),c=String(this);if(!s.global)return a(s,c);var d=s.unicode;s.lastIndex=0;for(var u,f=[],h=0;null!==(u=a(s,c));){var p=String(u[0]);f[h]=p,""===p&&(s.lastIndex=i(c,o(s.lastIndex),d)),h++}return 0===h?null:f}]}))},function(e,t,n){"use strict";var r=n(8),o=n(17),i=n(11),a=n(29),l=n(114),s=n(80),c=Math.max,d=Math.min,u=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;n(81)("replace",2,(function(e,t,n,p){return[function(r,o){var i=e(this),a=null==r?void 0:r[t];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(e,t){var o=p(n,e,this,t);if(o.done)return o.value;var u=r(e),f=String(this),h="function"==typeof t;h||(t=String(t));var g=u.global;if(g){var v=u.unicode;u.lastIndex=0}for(var b=[];;){var y=s(u,f);if(null===y)break;if(b.push(y),!g)break;""===String(y[0])&&(u.lastIndex=l(f,i(u.lastIndex),v))}for(var _,S="",E=0,C=0;C=E&&(S+=f.slice(E,A)+I,E=A+T.length)}return S+f.slice(E)}];function m(e,t,r,i,a,l){var s=r+e.length,c=i.length,d=h;return void 0!==a&&(a=o(a),d=f),n.call(l,d,(function(n,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(s);case"<":l=a[o.slice(1,-1)];break;default:var d=+o;if(0===d)return n;if(d>c){var f=u(d/10);return 0===f?n:f<=c?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):n}l=i[d-1]}return void 0===l?"":l}))}}))},function(e,t,n){"use strict";var r=n(8),o=n(147),i=n(80);n(81)("search",1,(function(e,t,n,a){return[function(n){var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var l=r(e),s=String(this),c=l.lastIndex;o(c,0)||(l.lastIndex=0);var d=i(l,s);return o(l.lastIndex,c)||(l.lastIndex=c),null===d?-1:d.index}]}))},function(e,t,n){"use strict";var r=n(106),o=n(8),i=n(67),a=n(114),l=n(11),s=n(80),c=n(113),d=n(7),u=Math.min,f=[].push,h=!d((function(){RegExp(4294967295,"y")}));n(81)("split",2,(function(e,t,n,d){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(o,e,t);for(var i,a,l,s=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,h=void 0===t?4294967295:t>>>0,p=new RegExp(e.source,d+"g");(i=c.call(p,o))&&!((a=p.lastIndex)>u&&(s.push(o.slice(u,i.index)),i.length>1&&i.index=h));)p.lastIndex===i.index&&p.lastIndex++;return u===o.length?!l&&p.test("")||s.push(""):s.push(o.slice(u)),s.length>h?s.slice(0,h):s}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var o=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):p.call(String(o),n,r)},function(e,t){var r=d(p,e,this,t,p!==n);if(r.done)return r.value;var c=o(e),f=String(this),m=i(c,RegExp),g=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(h?"y":"g"),b=new m(h?c:"^(?:"+c.source+")",v),y=void 0===t?4294967295:t>>>0;if(0===y)return[];if(0===f.length)return null===s(b,f)?[f]:[];for(var _=0,S=0,E=[];S0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(o(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(166),o=n(51);e.exports=n(84)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(o(this,"Set"),e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r,o=n(6),i=n(32)(0),a=n(18),l=n(39),s=n(146),c=n(167),d=n(9),u=n(51),f=n(51),h=!o.ActiveXObject&&"ActiveXObject"in o,p=l.getWeak,m=Object.isExtensible,g=c.ufstore,v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},b={get:function(e){if(d(e)){var t=p(e);return!0===t?g(u(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(u(this,"WeakMap"),e,t)}},y=e.exports=n(84)("WeakMap",v,b,c,!0,!0);f&&h&&(s((r=c.getConstructor(v,"WeakMap")).prototype,b),l.NEED=!0,i(["delete","has","get","set"],(function(e){var t=y.prototype,n=t[e];a(t,e,(function(t,o){if(d(t)&&!m(t)){this._f||(this._f=new r);var i=this._f[e](t,o);return"set"==e?this:i}return n.call(this,t,o)}))})))},function(e,t,n){"use strict";var r=n(167),o=n(51);n(84)("WeakSet",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(o(this,"WeakSet"),e,!0)}},r,!1,!0)},function(e,t,n){"use strict";var r=n(0),o=n(85),i=n(116),a=n(8),l=n(46),s=n(11),c=n(9),d=n(6).ArrayBuffer,u=n(67),f=i.ArrayBuffer,h=i.DataView,p=o.ABV&&d.isView,m=f.prototype.slice,g=o.VIEW;r(r.G+r.W+r.F*(d!==f),{ArrayBuffer:f}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(e){return p&&p(e)||c(e)&&g in e}}),r(r.P+r.U+r.F*n(7)((function(){return!new f(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(e,t){if(void 0!==m&&void 0===t)return m.call(a(this),e);for(var n=a(this).byteLength,r=l(e,n),o=l(void 0===t?n:t,n),i=new(u(this,f))(s(o-r)),c=new h(this),d=new h(i),p=0;r=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}})),r(r.S,"Reflect",{enumerate:function(e){return new i(e)}})},function(e,t,n){var r=n(30),o=n(49),i=n(20),a=n(0),l=n(9),s=n(8);a(a.S,"Reflect",{get:function e(t,n){var a,c,d=arguments.length<3?t:arguments[2];return s(t)===d?t[n]:(a=r.f(t,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(d):void 0:l(c=o(t))?e(c,n,d):void 0}})},function(e,t,n){var r=n(30),o=n(0),i=n(8);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(i(e),t)}})},function(e,t,n){var r=n(0),o=n(49),i=n(8);r(r.S,"Reflect",{getPrototypeOf:function(e){return o(i(e))}})},function(e,t,n){var r=n(0);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(0),o=n(8),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return o(e),!i||i(e)}})},function(e,t,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(169)})},function(e,t,n){var r=n(0),o=n(8),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){o(e);try{return i&&i(e),!0}catch(e){return!1}}})},function(e,t,n){var r=n(15),o=n(30),i=n(49),a=n(20),l=n(0),s=n(42),c=n(8),d=n(9);l(l.S,"Reflect",{set:function e(t,n,l){var u,f,h=arguments.length<4?t:arguments[3],p=o.f(c(t),n);if(!p){if(d(f=i(t)))return e(f,n,l,h);p=s(0)}if(a(p,"value")){if(!1===p.writable||!d(h))return!1;if(u=o.f(h,n)){if(u.get||u.set||!1===u.writable)return!1;u.value=l,r.f(h,n,u)}else r.f(h,n,s(0,l));return!0}return void 0!==p.set&&(p.set.call(h,l),!0)}})},function(e,t,n){var r=n(0),o=n(97);o&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){o.check(e,t);try{return o.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){n(365),e.exports=n(12).Array.includes},function(e,t,n){"use strict";var r=n(0),o=n(75)(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(50)("includes")},function(e,t,n){n(367),e.exports=n(12).Array.flatMap},function(e,t,n){"use strict";var r=n(0),o=n(368),i=n(17),a=n(11),l=n(28),s=n(157);r(r.P,"Array",{flatMap:function(e){var t,n,r=i(this);return l(e),t=a(r.length),n=s(r,0),o(n,r,r,t,0,1,e,arguments[1]),n}}),n(50)("flatMap")},function(e,t,n){"use strict";var r=n(77),o=n(9),i=n(11),a=n(27),l=n(10)("isConcatSpreadable");e.exports=function e(t,n,s,c,d,u,f,h){for(var p,m,g=d,v=0,b=!!f&&a(f,h,3);v0)g=e(t,n,p,i(p.length),g,u-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=p}g++}v++}return g}},function(e,t,n){n(370),e.exports=n(12).String.padStart},function(e,t,n){"use strict";var r=n(0),o=n(170),i=n(83),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){n(372),e.exports=n(12).String.padEnd},function(e,t,n){"use strict";var r=n(0),o=n(170),i=n(83),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){n(374),e.exports=n(12).String.trimLeft},function(e,t,n){"use strict";n(56)("trimLeft",(function(e){return function(){return e(this,1)}}),"trimStart")},function(e,t,n){n(376),e.exports=n(12).String.trimRight},function(e,t,n){"use strict";n(56)("trimRight",(function(e){return function(){return e(this,2)}}),"trimEnd")},function(e,t,n){n(378),e.exports=n(93).f("asyncIterator")},function(e,t,n){n(142)("asyncIterator")},function(e,t,n){n(380),e.exports=n(12).Object.getOwnPropertyDescriptors},function(e,t,n){var r=n(0),o=n(169),i=n(22),a=n(30),l=n(109);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),s=a.f,c=o(r),d={},u=0;c.length>u;)void 0!==(n=s(r,t=c[u++]))&&l(d,t,n);return d}})},function(e,t,n){n(382),e.exports=n(12).Object.values},function(e,t,n){var r=n(0),o=n(171)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){n(384),e.exports=n(12).Object.entries},function(e,t,n){var r=n(0),o=n(171)(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){"use strict";n(163),n(386),e.exports=n(12).Promise.finally},function(e,t,n){"use strict";var r=n(0),o=n(12),i=n(6),a=n(67),l=n(165);r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}})},function(e,t,n){n(388),n(389),n(390),e.exports=n(12)},function(e,t,n){var r=n(6),o=n(0),i=n(83),a=[].slice,l=/MSIE .\./.test(i),s=function(e){return function(t,n){var r=arguments.length>2,o=!!r&&a.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};o(o.G+o.B+o.F*l,{setTimeout:s(r.setTimeout),setInterval:s(r.setInterval)})},function(e,t,n){var r=n(0),o=n(115);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(e,t,n){for(var r=n(112),o=n(45),i=n(18),a=n(6),l=n(21),s=n(57),c=n(10),d=c("iterator"),u=c("toStringTag"),f=s.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=o(h),m=0;m=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(117)(e))},function(e,t,n){n(393),e.exports=n(172).global},function(e,t,n){var r=n(394);r(r.G,{global:n(118)})},function(e,t,n){var r=n(118),o=n(172),i=n(395),a=n(397),l=n(404),s=function e(t,n,s){var c,d,u,f=t&e.F,h=t&e.G,p=t&e.S,m=t&e.P,g=t&e.B,v=t&e.W,b=h?o:o[n]||(o[n]={}),y=b.prototype,_=h?r:p?r[n]:(r[n]||{}).prototype;for(c in h&&(s=n),s)(d=!f&&_&&void 0!==_[c])&&l(b,c)||(u=d?_[c]:s[c],b[c]=h&&"function"!=typeof _[c]?s[c]:g&&d?i(u,r):v&&_[c]==u?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(u):m&&"function"==typeof u?i(Function.call,u):u,m&&((b.virtual||(b.virtual={}))[c]=u,t&e.R&&y&&!y[c]&&a(y,c,u)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){var r=n(396);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(398),o=n(403);e.exports=n(120)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(399),o=n(400),i=n(402),a=Object.defineProperty;t.f=n(120)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(119);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(120)&&!n(173)((function(){return 7!=Object.defineProperty(n(401)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(119),o=n(118).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(119);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(61),t.createHash=t.Hash=n(68),t.createHmac=t.Hmac=n(183);var r=n(424),o=Object.keys(r),i=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);t.getHashes=function(){return i};var a=n(186);t.pbkdf2=a.pbkdf2,t.pbkdf2Sync=a.pbkdf2Sync;var l=n(426);t.Cipher=l.Cipher,t.createCipher=l.createCipher,t.Cipheriv=l.Cipheriv,t.createCipheriv=l.createCipheriv,t.Decipher=l.Decipher,t.createDecipher=l.createDecipher,t.Decipheriv=l.Decipheriv,t.createDecipheriv=l.createDecipheriv,t.getCiphers=l.getCiphers,t.listCiphers=l.listCiphers;var s=n(441);t.DiffieHellmanGroup=s.DiffieHellmanGroup,t.createDiffieHellmanGroup=s.createDiffieHellmanGroup,t.getDiffieHellman=s.getDiffieHellman,t.createDiffieHellman=s.createDiffieHellman,t.DiffieHellman=s.DiffieHellman;var c=n(446);t.createSign=c.createSign,t.Sign=c.Sign,t.createVerify=c.createVerify,t.Verify=c.Verify,t.createECDH=n(480);var d=n(481);t.publicEncrypt=d.publicEncrypt,t.privateEncrypt=d.privateEncrypt,t.publicDecrypt=d.publicDecrypt,t.privateDecrypt=d.privateDecrypt;var u=n(484);t.randomFill=u.randomFill,t.randomFillSync=u.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],l=r[1],s=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),d=0,u=l>0?a-4:a;for(n=0;n>16&255,s[d++]=t>>8&255,s[d++]=255&t;2===l&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,s[d++]=255&t);1===l&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,s[d++]=t>>8&255,s[d++]=255&t);return s},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,l=n-o;al?l:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,s=a.length;l0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function d(e,t,n){for(var o,i,a=[],l=t;l>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,l=8*o-r-1,s=(1<>1,d=-7,u=n?o-1:0,f=n?-1:1,h=e[t+u];for(u+=f,i=h&(1<<-d)-1,h>>=-d,d+=l;d>0;i=256*i+e[t+u],u+=f,d-=8);for(a=i&(1<<-d)-1,i>>=-d,d+=r;d>0;a=256*a+e[t+u],u+=f,d-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=c}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,l,s,c=8*i-o-1,d=(1<>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+u>=1?f/s:f*Math.pow(2,1-u))*s>=2&&(a++,s/=2),a+u>=d?(l=0,a=d):a+u>=1?(l=(t*s-1)*Math.pow(2,o),a+=u):(l=t*Math.pow(2,u-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&l,h+=p,l/=256,o-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,c-=8);e[n+h-p]|=128*m}},function(e,t){},function(e,t,n){"use strict";var r=n(5).Buffer,o=n(410);function i(e,t,n){e.copy(t,n)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t=r.allocUnsafe(e>>>0),n=this.head,o=0;n;)i(n.data,t,o),o+=n.data.length,n=n.next;return t},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(412),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(37))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,l,s=1,c={},d=!1,u=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){i.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(o=u.documentElement,r=function(e){var t=u.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",l=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",l,!1):e.attachEvent("onmessage",l),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n>>2}function d(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(s,o),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,l=0|this._d,s=0|this._e,u=0;u<16;++u)n[u]=e.readInt32BE(4*u);for(;u<80;++u)n[u]=n[u-3]^n[u-8]^n[u-14]^n[u-16];for(var f=0;f<80;++f){var h=~~(f/20),p=0|((t=r)<<5|t>>>27)+d(h,o,i,l)+s+n[f]+a[h];s=l,l=i,i=c(o),o=r,r=p}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=l+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s},function(e,t,n){var r=n(4),o=n(62),i=n(5).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],l=new Array(80);function s(){this.init(),this._w=l,o.call(this,64,56)}function c(e){return e<<5|e>>>27}function d(e){return e<<30|e>>>2}function u(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(s,o),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,l=0|this._d,s=0|this._e,f=0;f<16;++f)n[f]=e.readInt32BE(4*f);for(;f<80;++f)n[f]=(t=n[f-3]^n[f-8]^n[f-14]^n[f-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),m=c(r)+u(p,o,i,l)+s+n[h]+a[p]|0;s=l,l=i,i=d(o),o=r,r=m}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=l+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s},function(e,t,n){var r=n(4),o=n(181),i=n(62),a=n(5).Buffer,l=new Array(64);function s(){this.init(),this._w=l,i.call(this,64,56)}r(s,o),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=s},function(e,t,n){var r=n(4),o=n(182),i=n(62),a=n(5).Buffer,l=new Array(160);function s(){this.init(),this._w=l,i.call(this,128,112)}r(s,o),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=s},function(e,t,n){"use strict";var r=n(4),o=n(5).Buffer,i=n(41),a=o.alloc(128);function l(e,t){i.call(this,"digest"),"string"==typeof t&&(t=o.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=o.concat([t,a],64));for(var n=this._ipad=o.allocUnsafe(64),r=this._opad=o.allocUnsafe(64),l=0;l<64;l++)n[l]=54^t[l],r[l]=92^t[l];this._hash=[n]}r(l,i),l.prototype._update=function(e){this._hash.push(e)},l.prototype._final=function(){var e=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,e]))},e.exports=l},function(e,t,n){e.exports=n(185)},function(e,t,n){(function(t,r){var o,i=n(187),a=n(188),l=n(189),s=n(5).Buffer,c=t.crypto&&t.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},u=[];function f(e,t,n,r,o){return c.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return c.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:o}},e,r<<3)})).then((function(e){return s.from(e)}))}e.exports=function(e,n,h,p,m,g){"function"==typeof m&&(g=m,m=void 0);var v=d[(m=m||"sha1").toLowerCase()];if(!v||"function"!=typeof t.Promise)return r.nextTick((function(){var t;try{t=l(e,n,h,p,m)}catch(e){return g(e)}g(null,t)}));if(i(e,n,h,p),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");s.isBuffer(e)||(e=s.from(e,a)),s.isBuffer(n)||(n=s.from(n,a)),function(e,t){e.then((function(e){r.nextTick((function(){t(null,e)}))}),(function(e){r.nextTick((function(){t(e)}))}))}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==u[e])return u[e];var n=f(o=o||s.alloc(8),o,10,128,e).then((function(){return!0})).catch((function(){return!1}));return u[e]=n,n}(v).then((function(t){return t?f(e,n,h,p,v):l(e,n,h,p,m)})),g)}}).call(this,n(37),n(40))},function(e,t,n){var r=n(427),o=n(130),i=n(131),a=n(440),l=n(88);function s(e,t,n){if(e=e.toLowerCase(),i[e])return o.createCipheriv(e,t,n);if(a[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function c(e,t,n){if(e=e.toLowerCase(),i[e])return o.createDecipheriv(e,t,n);if(a[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),i[e])n=i[e].key,r=i[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");n=8*a[e].key,r=a[e].iv}var o=l(t,!1,n,r);return s(e,o.key,o.iv)},t.createCipheriv=t.Cipheriv=s,t.createDecipher=t.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),i[e])n=i[e].key,r=i[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");n=8*a[e].key,r=a[e].iv}var o=l(t,!1,n,r);return c(e,o.key,o.iv)},t.createDecipheriv=t.Decipheriv=c,t.listCiphers=t.getCiphers=function(){return Object.keys(a).concat(o.getCiphers())}},function(e,t,n){var r=n(41),o=n(428),i=n(4),a=n(5).Buffer,l={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};function s(e){r.call(this);var t,n=e.mode.toLowerCase(),o=l[n];t=e.decrypt?"decrypt":"encrypt";var i=e.key;a.isBuffer(i)||(i=a.from(i)),"des-ede"!==n&&"des-ede-cbc"!==n||(i=a.concat([i,i.slice(0,8)]));var s=e.iv;a.isBuffer(s)||(s=a.from(s)),this._des=o.create({key:i,iv:s,type:t})}l.des=l["des-cbc"],l.des3=l["des-ede3-cbc"],e.exports=s,i(s,r),s.prototype._update=function(e){return a.from(this._des.update(e))},s.prototype._final=function(){return a.from(this._des.final())}},function(e,t,n){"use strict";t.utils=n(190),t.Cipher=n(129),t.DES=n(191),t.CBC=n(429),t.EDE=n(430)},function(e,t,n){"use strict";var r=n(23),o=n(4),i={};function a(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=i.allocUnsafe(e),n=-1;++n>a%8,e._prev=i(e._prev,n?r:o);return l}function i(e,t){var n=e.length,o=-1,i=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++o>7;return i}t.encrypt=function(e,t,n){for(var i=t.length,a=r.allocUnsafe(i),l=-1;++l>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=i(o)},a.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,o],16)),this.ghash(i([0,e,0,t])),this.state},e.exports=a},function(e,t,n){var r=n(195),o=n(5).Buffer,i=n(131),a=n(196),l=n(41),s=n(87),c=n(88);function d(e,t,n){l.call(this),this._cache=new u,this._last=void 0,this._cipher=new s.AES(t),this._prev=o.from(n),this._mode=e,this._autopadding=!0}function u(){this.cache=o.allocUnsafe(0)}function f(e,t,n){var l=i[e.toLowerCase()];if(!l)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=o.from(n)),"GCM"!==l.mode&&n.length!==l.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=o.from(t)),t.length!==l.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===l.type?new a(l.module,t,n,!0):"auth"===l.type?new r(l.module,t,n,!0):new d(l.module,t,n)}n(4)(d,l),d.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return o.concat(r)},d.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var n=-1;for(;++n16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=i[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=c(t,!1,n.key,n.iv);return f(e,r.key,r.iv)},t.createDecipheriv=f},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,n){(function(e){var r=n(197),o=n(444),i=n(445);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var n=new e(o[t].prime,"hex"),r=new e(o[t].gen,"hex");return new i(n,r)},t.createDiffieHellman=t.DiffieHellman=function t(n,o,l,s){return e.isBuffer(o)||void 0===a[o]?t(n,"binary",o,l):(o=o||"binary",s=s||"binary",l=l||new e([2]),e.isBuffer(l)||(l=new e(l,s)),"number"==typeof n?new i(r(n,l),l,!0):(e.isBuffer(n)||(n=new e(n,o)),new i(n,l,!0)))}}).call(this,n(16).Buffer)},function(e,t){},function(e,t){},function(e){e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(e,t,n){(function(t){var r=n(13),o=new(n(198)),i=new r(24),a=new r(11),l=new r(10),s=new r(3),c=new r(7),d=n(197),u=n(61);function f(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._pub=new r(e),this}function h(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._priv=new r(e),this}e.exports=m;var p={};function m(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=f,this.setPrivateKey=h):this._primeCode=8}function g(e,n){var r=new t(e.toArray());return n?r.toString(n):r}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in p)return p[r];var u,f=0;if(e.isEven()||!d.simpleSieve||!d.fermatTest(e)||!o.test(e))return f+=1,f+="02"===n||"05"===n?8:4,p[r]=f,f;switch(o.test(e.shrn(1))||(f+=2),n){case"02":e.mod(i).cmp(a)&&(f+=8);break;case"05":(u=e.mod(l)).cmp(s)&&u.cmp(c)&&(f+=8);break;default:f+=4}return p[r]=f,f}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new r(u(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var n=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),o=new t(n.toArray()),i=this.getPrime();if(o.length0&&n.ishrn(r),n}function u(e,n,o){var i,a;do{for(i=new t(0);8*i.length=0&&(a=t,l=n),r.negative&&(r=r.neg(),i=i.neg()),a.negative&&(a=a.neg(),l=l.neg()),[{a:r,b:i},{a:a,b:l}]},s.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],o=r.b.mul(e).divRound(this.n),i=n.b.neg().mul(e).divRound(this.n),a=o.mul(n.a),l=i.mul(r.a),s=o.mul(n.b),c=i.mul(r.b);return{k1:e.sub(a).sub(l),k2:s.add(c).neg()}},s.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},s.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),o=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(o).cmpn(0)},s.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,o=this._endoWnafT2,i=0;i":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),o=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),i=o.redSqr().redISub(this.x.redAdd(this.x)),a=o.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,n){var r=[this,t],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o):this.curve._wnafMulAdd(1,r,o,2)},c.prototype.jmulAdd=function(e,t,n){var r=[this,t],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o,!0):this.curve._wnafMulAdd(1,r,o,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},i(d,a.BasePoint),s.prototype.jpoint=function(e,t,n){return new d(this,e,t,n)},d.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},d.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},d.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),o=e.x.redMul(n),i=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),l=r.redSub(o),s=i.redSub(a);if(0===l.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=l.redSqr(),d=c.redMul(l),u=r.redMul(c),f=s.redSqr().redIAdd(d).redISub(u).redISub(u),h=s.redMul(u.redISub(f)).redISub(i.redMul(d)),p=this.z.redMul(e.z).redMul(l);return this.curve.jpoint(f,h,p)},d.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),o=this.y,i=e.y.redMul(t).redMul(this.z),a=n.redSub(r),l=o.redSub(i);if(0===a.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=a.redSqr(),c=s.redMul(a),d=n.redMul(s),u=l.redSqr().redIAdd(c).redISub(d).redISub(d),f=l.redMul(d.redISub(u)).redISub(o.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(u,f,h)},d.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,n=0;n=0)return!1;if(n.redIAdd(o),0===this.x.cmp(n))return!0}},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,n){"use strict";var r=n(13),o=n(4),i=n(89),a=n(24);function l(e){i.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function s(e,t,n){i.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(l,i),e.exports=l,l.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},o(s,i.BasePoint),l.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},l.prototype.point=function(e,t){return new s(this,e,t)},l.prototype.pointFromJSON=function(e){return s.fromJSON(this,e)},s.prototype.precompute=function(){},s.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},s.fromJSON=function(e,t){return new s(e,t[0],t[1]||e.one)},s.prototype.inspect=function(){return this.isInfinity()?"":""},s.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},s.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),o=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,o)},s.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),o=e.x.redAdd(e.z),i=e.x.redSub(e.z).redMul(n),a=o.redMul(r),l=t.z.redMul(i.redAdd(a).redSqr()),s=t.x.redMul(i.redISub(a).redSqr());return this.curve.point(l,s)},s.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var i=o.length-1;i>=0;i--)0===o[i]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},s.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},s.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,n){"use strict";var r=n(24),o=n(13),i=n(4),a=n(89),l=r.assert;function s(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),l(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,n,r,i){a.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(n,16),this.z=r?new o(r,16):this.curve.one,this.t=i&&new o(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}i(s,a),e.exports=s,s.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},s.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},s.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},s.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),a=r.redMul(i.redInvm()),l=a.redSqrt();if(0!==l.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var s=l.fromRed().isOdd();return(t&&!s||!t&&s)&&(l=l.redNeg()),this.point(e,l)},s.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),a=r.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var l=a.redSqrt();if(0!==l.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return l.fromRed().isOdd()!==t&&(l=l.redNeg()),this.point(l,e)},s.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),o=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(o)},i(c,a.BasePoint),s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},s.prototype.point=function(e,t,n,r){return new c(this,e,t,n,r)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),o=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i=r.redAdd(t),a=i.redSub(n),l=r.redSub(t),s=o.redMul(a),c=i.redMul(l),d=o.redMul(l),u=a.redMul(i);return this.curve.point(s,c,u,d)},c.prototype._projDbl=function(){var e,t,n,r=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),i=this.y.redSqr();if(this.curve.twisted){var a=(c=this.curve._mulA(o)).redAdd(i);if(this.zOne)e=r.redSub(o).redSub(i).redMul(a.redSub(this.curve.two)),t=a.redMul(c.redSub(i)),n=a.redSqr().redSub(a).redSub(a);else{var l=this.z.redSqr(),s=a.redSub(l).redISub(l);e=r.redSub(o).redISub(i).redMul(s),t=a.redMul(c.redSub(i)),n=a.redMul(s)}}else{var c=o.redAdd(i);l=this.curve._mulC(this.z).redSqr(),s=c.redSub(l).redSub(l);e=this.curve._mulC(r.redISub(c)).redMul(s),t=this.curve._mulC(c).redMul(o.redISub(i)),n=c.redMul(s)}return this.curve.point(e,t,n)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),o=this.z.redMul(e.z.redAdd(e.z)),i=n.redSub(t),a=o.redSub(r),l=o.redAdd(r),s=n.redAdd(t),c=i.redMul(a),d=l.redMul(s),u=i.redMul(s),f=a.redMul(l);return this.curve.point(c,d,f,u)},c.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),o=r.redSqr(),i=this.x.redMul(e.x),a=this.y.redMul(e.y),l=this.curve.d.redMul(i).redMul(a),s=o.redSub(l),c=o.redAdd(l),d=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(a),u=r.redMul(s).redMul(d);return this.curve.twisted?(t=r.redMul(c).redMul(a.redSub(this.curve._mulA(i))),n=s.redMul(c)):(t=r.redMul(c).redMul(a.redSub(i)),n=this.curve._mulC(s).redMul(c)),this.curve.point(u,t,n)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},c.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,n){"use strict";t.sha1=n(453),t.sha224=n(454),t.sha256=n(202),t.sha384=n(455),t.sha512=n(203)},function(e,t,n){"use strict";var r=n(33),o=n(71),i=n(201),a=r.rotl32,l=r.sum32,s=r.sum32_5,c=i.ft_1,d=o.BlockHash,u=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(f,d),e.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;rthis.blockSize&&(e=(new this.Hash).update(e).digest()),o(e.length<=this.blockSize);for(var t=e.length;t0))return a.iaddn(1),this.keyFromPrivate(a)}},f.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,n,a){"object"===r(n)&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new o(e,16));for(var l=this.n.byteLength(),s=t.getPrivate().toArray("be",l),c=e.toArray("be",l),d=new i({hash:this.hash,entropy:s,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"}),f=this.n.sub(new o(1)),h=0;;h++){var p=a.k?a.k(h):new o(d.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(f)>=0)){var m=this.g.mul(p);if(!m.isInfinity()){var g=m.getX(),v=g.umod(this.n);if(0!==v.cmpn(0)){var b=p.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e));if(0!==(b=b.umod(this.n)).cmpn(0)){var y=(m.getY().isOdd()?1:0)|(0!==g.cmp(v)?2:0);return a.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),y^=1),new u({r:v,s:b,recoveryParam:y})}}}}}},f.prototype.verify=function(e,t,n,r){e=this._truncateToN(new o(e,16)),n=this.keyFromPublic(n,r);var i=(t=new u(t,"hex")).r,a=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var l,s=a.invm(this.n),c=s.mul(e).umod(this.n),d=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(l=this.g.jmulAdd(c,n.getPublic(),d)).isInfinity()&&l.eqXToP(i):!(l=this.g.mulAdd(c,n.getPublic(),d)).isInfinity()&&0===l.getX().umod(this.n).cmp(i)},f.prototype.recoverPubKey=function(e,t,n,r){c((3&n)===n,"The recovery param is more than two bits"),t=new u(t,r);var i=this.n,a=new o(e),l=t.r,s=t.s,d=1&n,f=n>>1;if(l.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");l=f?this.curve.pointFromX(l.add(this.curve.n),d):this.curve.pointFromX(l,d);var h=t.r.invm(i),p=i.sub(a).mul(h).umod(i),m=s.mul(h).umod(i);return this.g.mulAdd(p,l,m)},f.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new u(t,r)).recoveryParam)return t.recoveryParam;for(var o=0;o<4;o++){var i;try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(n))return o}throw new Error("Unable to find valid recovery factor")}},function(e,t,n){"use strict";var r=n(136),o=n(199),i=n(23);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=o.toArray(e.entropy,e.entropyEnc||"hex"),n=o.toArray(e.nonce,e.nonceEnc||"hex"),r=o.toArray(e.pers,e.persEnc||"hex");i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=a,a.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},a.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=o.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length"}},function(e,t,n){"use strict";var r=n(13),o=n(24),i=o.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(i(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function l(){this.place=0}function s(e,t){var n=e[t.place++];if(!(128&n))return n;for(var r=15&n,o=0,i=0,a=t.place;i>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=o.toArray(e,t);var n=new l;if(48!==e[n.place++])return!1;if(s(e,n)+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var i=s(e,n),a=e.slice(n.place,i+n.place);if(n.place+=i,2!==e[n.place++])return!1;var c=s(e,n);if(e.length!==c+n.place)return!1;var d=e.slice(n.place,c+n.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===d[0]&&128&d[1]&&(d=d.slice(1)),this.r=new r(a),this.s=new r(d),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=c(t),n=c(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];d(r,t.length),(r=r.concat(t)).push(2),d(r,n.length);var i=r.concat(n),a=[48];return d(a,i.length),a=a.concat(i),o.encode(a,e)}},function(e,t,n){"use strict";var r=n(136),o=n(135),i=n(24),a=i.assert,l=i.parseBytes,s=n(464),c=n(465);function d(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof d))return new d(e);e=o[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=d,d.prototype.sign=function(e,t){e=l(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),o=this.g.mul(r),i=this.encodePoint(o),a=this.hashInt(i,n.pubBytes(),e).mul(n.priv()),s=r.add(a).umod(this.curve.n);return this.makeSignature({R:o,S:s,Rencoded:i})},d.prototype.verify=function(e,t,n){e=l(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),o=this.hashInt(t.Rencoded(),r.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(r.pub().mul(o)).eq(i)},d.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=t)throw new Error("invalid sig")}e.exports=function(e,n,s,c,d){var u=i(s);if("ec"===u.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,n){var r=a[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var i=new o(r),l=n.data.subjectPrivateKey.data;return i.verify(t,e,l)}(e,n,u)}if("dsa"===u.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,n){var o=n.data.p,a=n.data.q,s=n.data.g,c=n.data.pub_key,d=i.signature.decode(e,"der"),u=d.s,f=d.r;l(u,a),l(f,a);var h=r.mont(o),p=u.invm(a);return 0===s.toRed(h).redPow(new r(t).mul(p).mod(a)).fromRed().mul(c.toRed(h).redPow(f.mul(p).mod(a)).fromRed()).mod(o).mod(a).cmp(f)}(e,n,u)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");n=t.concat([d,n]);for(var f=u.modulus.byteLength(),h=[1],p=0;n.length+h.length+2n-f-2)throw new Error("message too long");var h=u.alloc(n-r-f-2),p=n-d-1,m=o(d),g=l(u.concat([c,h,u.alloc(1,1),t],p),a(m,p)),v=l(m,a(g,d));return new s(u.concat([u.alloc(1),v,g],n))}(p,t);else if(1===f)h=function(e,t,n){var r,i=t.length,a=e.modulus.byteLength();if(i>a-11)throw new Error("message too long");r=n?u.alloc(a-i-3,255):function(e){var t,n=u.allocUnsafe(e),r=0,i=o(2*e),a=0;for(;r=0)throw new Error("data too long for modulus")}return n?d(h,p):c(h,p)}},function(e,t,n){var r=n(90),o=n(209),i=n(210),a=n(13),l=n(133),s=n(68),c=n(211),d=n(5).Buffer;e.exports=function(e,t,n){var u;u=e.padding?e.padding:n?1:4;var f,h=r(e),p=h.modulus.byteLength();if(t.length>p||new a(t).cmp(h.modulus)>=0)throw new Error("decryption error");f=n?c(new a(t),h):l(t,h);var m=d.alloc(p-f.length);if(f=d.concat([m,f],p),4===u)return function(e,t){var n=e.modulus.byteLength(),r=s("sha1").update(d.alloc(0)).digest(),a=r.length;if(0!==t[0])throw new Error("decryption error");var l=t.slice(1,a+1),c=t.slice(a+1),u=i(l,o(c,a)),f=i(c,o(u,n-a-1));if(function(e,t){e=d.from(e),t=d.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));var o=-1;for(;++o=t.length){i++;break}var a=t.slice(2,o-1);("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&i++;a.length<8&&i++;if(i)throw new Error("decryption error");return t.slice(o)}(0,f,n);if(3===u)return f;throw new Error("unknown padding")}},function(e,t,n){"use strict";(function(e,r){function o(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var i=n(5),a=n(61),l=i.Buffer,s=i.kMaxLength,c=e.crypto||e.msCrypto,d=Math.pow(2,32)-1;function u(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>d||e<0)throw new TypeError("offset must be a uint32");if(e>s||e>t)throw new RangeError("offset out of range")}function f(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>d||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>s)throw new RangeError("buffer too small")}function h(e,t,n,o){if(r.browser){var i=e.buffer,l=new Uint8Array(i,t,n);return c.getRandomValues(l),o?void r.nextTick((function(){o(null,e)})):e}if(!o)return a(n).copy(e,t),e;a(n,(function(n,r){if(n)return o(n);r.copy(e,t),o(null,e)}))}c&&c.getRandomValues||!r.browser?(t.randomFill=function(t,n,r,o){if(!(l.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)o=n,n=0,r=t.length;else if("function"==typeof r)o=r,r=t.length-n;else if("function"!=typeof o)throw new TypeError('"cb" argument must be a function');return u(n,t.length),f(r,n,t.length),h(t,n,r,o)},t.randomFillSync=function(t,n,r){void 0===n&&(n=0);if(!(l.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');u(n,t.length),void 0===r&&(r=t.length-n);return f(r,n,t.length),h(t,n,r)}):(t.randomFill=o,t.randomFillSync=o)}).call(this,n(37),n(40))},function(e,t,n){var r=n(212),o=n(215),i=n(488);function a(e,t){return new i(t).process(e)}for(var l in(t=e.exports=a).filterXSS=a,t.FilterXSS=i,r)t[l]=r[l];for(var l in o)t[l]=o[l];"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)},function(e,t,n){var r=n(213),o=n(487);n(214);function i(e){return null==e}function a(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).whiteList=e.whiteList||r.whiteList,e.onAttr=e.onAttr||r.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||r.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||r.safeAttrValue,this.options=e}a.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onAttr,a=t.onIgnoreAttr,l=t.safeAttrValue;return o(e,(function(e,t,o,s,c){var d=n[o],u=!1;if(!0===d?u=d:"function"==typeof d?u=d(s):d instanceof RegExp&&(u=d.test(s)),!0!==u&&(u=!1),s=l(o,s)){var f,h={position:t,sourcePosition:e,source:c,isWhite:u};return u?i(f=r(o,s,h))?o+":"+s:f:i(f=a(o,s,h))?void 0:f}}))},e.exports=a},function(e,t,n){var r=n(214);e.exports=function(e,t){";"!==(e=r.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,o=!1,i=0,a=0,l="";function s(){if(!o){var n=r.trim(e.slice(i,a)),s=n.indexOf(":");if(-1!==s){var c=r.trim(n.slice(0,s)),d=r.trim(n.slice(s+1));if(c){var u=t(i,l.length,c,d,n);u&&(l+=u+"; ")}}}i=a+1}for(;a";var b=function(e){var t=s.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=s.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=s.trim(e.slice(0,-1))),{html:e,closing:n}}(a),y=n[o],_=l(b.html,(function(e,t){var n,r=-1!==s.indexOf(y,e);return c(n=d(o,e,t,r))?r?(t=f(o,e,t,p))?e+'="'+t+'"':e:c(n=u(o,e,t,r))?void 0:n:n}));a="<"+o;return _&&(a+=" "+_),b.closing&&(a+=" /"),a+=">"}return c(g=i(o,a,v))?h(a):g}),h);return m&&(g=m.remove(g)),g},e.exports=d},function(e,t,n){var r=n(1),o=n(91),i=n(3),a=n(63),l=navigator.userAgent;function s(e,t){var n;if(t)for(n in e)e.hasOwnProperty(n)&&void 0!==t[n]&&(/^(editor|reader|lazyLoad|wizTemplate|pureReadMode|nightMode|documentData|callback|timeout|markdownPlugIn|ios|pc|table|code)$/.test(n)?s(e[n],t[n]):e[n]=t[n])}e.exports=function(e){var t=function(e){var t=this,n={},o="1"===i.storage.get(r.CODE.StorageKey.Wrap),a={options:{document:null,container:null,useFrame:!1,lazyLoad:{enable:!1},htmlBaseUrl:"",lang:"en",clientType:"",userInfo:null,usersData:[],userNameEncoder:"",dependencyUrl:"",wizTemplate:{url:""},pureReadMode:{enable:!1,needContentExtraction:!1,borderColor:"",htmlBgColor:"",bodyBgColor:""},nightMode:{enable:!1,color:"",bgColor:"",brightness:""},editor:{type:r.NOTE_EDITOR_TYPE.COMMON,autoFocus:!0,autoCheckLink:!0,minHeight:300,maxUndo:100,callback:{undo:null,markerUndo:null,markerInitiated:null,onKeyDown:null,onClick:null,onPasteFile:null,onDropFile:null,onClickToolbarInsertImg:null,onClickToolbarHelp:null,onReuploadImage:null,onUploadImage:null}},reader:{type:r.NOTE_READER_TYPE.COMMON,minHeight:300,codeNoIDE:!1,autoEdit:!1,noAmend:!1,clickImageEvent:"dblclick",markdownPlugIn:{imgSrcFilter:null,customBlockGamut:null},callback:{beforeMarkdownRender:null,markdown:null,mathJax:null,onClick:null,onAutoEdit:null},timeout:{markdown:3e4,mathJax:3e4}},callback:{onClickLink:null},clientRoute:{getUserAlias:null,getUserAvatarFileName:null,getUserGuid:null,hasPermission:null,isPersonalDocument:null,checkDocLock:null,getOriginalDoc:null,saveDoc:null},pc:{pluginModified:!1},table:{colWidth:120,colWidthMin:30,rowHeightMin:33},code:{lineWrapping:o}},locale:{},win:null,doc:null,body:null,documentType:r.DOCUMENT_TYPE.COMMON,scrollContainer:null,readonly:null,isShowPreview:!1,isSetBodyFontSize:!1,isWizTemplate:null,compositionStart:!1,compositionStartRange:null,indexFilesPath:"",indexFilesFullPath:"",supportTouchEvent:!1,frame:{dom:null,toolbarDoc:null,toolbarContainer:null,bodyContainer:null},dependency:{files:{css:{fonts:"".concat(e,"/fonts.css?v=").concat(r.version),github2:"".concat(e,"/github2.css?v=").concat(r.version),kityminder:"".concat(e,"/minder/kityminder.core.css?v=").concat(r.minderVersion),wizToc:"".concat(e,"/wizToc.css?v=").concat(r.version)},cursor:{formatPainter:"".concat(e,"/format-painter-wiz.cur?v=").concat(r.version)},js:{codemirror:"".concat(e,"/codemirror/codemirror.js?v=").concat(r.version),cmSimple:"".concat(e,"/codemirror/addon/mode/simple.js?v=").concat(r.version),cmActiveLine:"".concat(e,"/codemirror/addon/selection/active-line.js?v=").concat(r.version),cmMatchBrackets:"".concat(e,"/codemirror/addon/edit/matchbrackets.js?v=").concat(r.version),cmMode:"".concat(e,"/codemirror/mode/mode.js?v=").concat(r.version),flowchart:"".concat(e,"/flowchart.js?v=").concat(r.version),jquery:"".concat(e,"/jquery-3.3.1.js?v=").concat(r.version),kity:"".concat(e,"/minder/kity.min.js?v=").concat(r.minderVersion),kityminder:"".concat(e,"/minder/kityminder.core.min.js?v=").concat(r.minderVersion),mathJax:"".concat(e,"/mathjax/MathJax.js?config=TeX-AMS-MML_SVG&v=").concat(r.version),prettify:"".concat(e,"/prettify.js?v=").concat(r.version),raphael:"".concat(e,"/raphael.js?v=").concat(r.version),sequence:"".concat(e,"/sequence-diagram.js?v=").concat(r.version),underscore:"".concat(e,"/underscore.js?v=").concat(r.version),wizContent:"".concat(e,"/WizContent.js?v=").concat(r.wizContentVersion),wizPainter:"".concat(e,"/painter/WizSvgPainter.js?v=").concat(r.wizPainterVersion),wizTemplate:""}},css:{fonts:["fonts"],markdown:["github2","wizToc"],minder:["kityminder"]},js:{codeMirror:[["codemirror"],["cmSimple","cmActiveLine","cmMatchBrackets","cmMode"]],markdown:[["jquery"],["prettify","raphael","underscore"],["flowchart","sequence"]],mathJax:[["jquery"],["mathJax"]],minder:[["kity"],["kityminder"]],wizContent:[["wizContent"]],wizPainter:[["wizPainter"]],wizTemplate:[["wizTemplate"]]}},client:{type:{isWeb:location&&0===location.protocol.indexOf("http"),isWin:!1,isMac:!1,isLinux:!1,isIOS:!1,isAndroid:!1,isPad:!1,isPhone:!1},sendCmdToWizClient:function(){}},browser:{isAndroid:!!l.match(/Android/i),isIOS:!!l.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/i),isIPad:!!l.match(/iPad/i),isIPhone:!!l.match(/iPhone/i),isLinux:!!l.match(/Linux/i),isMac:!!l.match(/Macintosh/i),isMobile:!!l.match(/AppleWebKit.*Mobile.*/i),isWeChat:!!l.match(/MicroMessenger/i),isWindows:!!l.match(/Window/i),isIe:!!l.match(/msie|trident/i)}};return a.event={isPause:function(e){return!!a.event[e+"_pause"]},setPause:function(e,t){a.event[e+"_pause"]=!!t},add:function(e,t){var r=n[e];r||(r=[]);e&&t&&!function(e,t){if(!e||!t)return!1;var r,o,i=n[e];if(!i||0===i.length)return!1;for(r=0,o=i.length;r-1)t.client.type.isWin=!0,t.client.sendCmdToWizClient=function(e,n){e===r.CLIENT_EVENT.WizReaderClickImg?t.win.external.OnClickedImage(n.src,JSON.stringify(n.imgList)):e===r.CLIENT_EVENT.WizEditorClickSvg&&t.win.external.OnClickedSvg(JSON.stringify(n))};else if(e.indexOf("ios")>-1)t.client.type.isIOS=!0,t.client.sendCmdToWizClient=function(e,n){if(e===r.CLIENT_EVENT.WizEditorClickSvg)t.win.webkit.messageHandlers.onClickedSvg.postMessage(JSON.stringify(n));else if(e===r.CLIENT_EVENT.WizEditorPaste)t.win.webkit.messageHandlers.didWizEditorPaste.postMessage(null);else if(e===r.CLIENT_EVENT.WizEditorSetScrollTop)t.win.webkit.messageHandlers.setScrollTop.postMessage(n);else if(e===r.CLIENT_EVENT.WizEditorTrackEvent)t.win.webkit.messageHandlers.didWizEditorTrackEvent.postMessage({options:n});else if(e===r.CLIENT_EVENT.WizReaderClickImg)t.win.webkit.messageHandlers.WizReaderClickImg.postMessage({src:n.src});else if(e===r.CLIENT_EVENT.IosPrompt)return JSON.parse(prompt(JSON.stringify(n)))};else if(e.indexOf("android")>-1)t.client.type.isAndroid=!0,t.client.sendCmdToWizClient=function(e,n){e===r.CLIENT_EVENT.WizReaderClickImg?t.win.WizNote.onClickImg(n.src,n.imgList.join(",")):e===r.CLIENT_EVENT.WizEditorClickImg?t.win.WizNote.onEditorClickImage(n.src):e===r.CLIENT_EVENT.WizEditorClickSvg&&t.win.WizNote.onClickedSvg(JSON.stringify(n))};else if(e.indexOf("mac")>-1){var o=t.win.navigator.userAgent;/Mac/i.test(o)||(t.client.type.isLinux=!0),t.client.type.isMac=!0,t.client.sendCmdToWizClient=function(e,n){e===r.CLIENT_EVENT.WizReaderClickImg?t.win.WizExplorerApp.onClickedImage(n.src,JSON.stringify(n.imgList)):e===r.CLIENT_EVENT.WizEditorAfterCopied?setTimeout((function(){t.win.WizQtEditor.afterCopied()}),100):e===r.CLIENT_EVENT.WizEditorClickSvg?t.win.WizQtEditor.onClickedSvg(JSON.stringify(n)):e===r.CLIENT_EVENT.WizEditorPaste&&t.win.WizQtEditor.doPaste()}}else(e.indexOf("web")>-1||t.client.type.isWeb)&&(n=!0,t.client.type.isWeb=!0,t.client.sendCmdToWizClient=function(e,n){var o=t.options.document.defaultView;e===r.CLIENT_EVENT.WizEditorClickSvg&&o.WizWebEditor.onClickedSvg(n)});n||(t.client.type.isWeb=!1),(t.client.type.isIOS||t.client.type.isAndroid)&&(e.indexOf("pad")>-1?t.client.type.isPad=!0:t.client.type.isPhone=!0)}}(t.options.clientType,t);var d=decodeURIComponent(location.pathname),u=d.lastIndexOf("/")+1,f=d.lastIndexOf("."),h="";if(f>0&&(h=d.substring(u,f)),t.indexFilesPath=h+"_files",t.indexFilesFullPath=location.protocol+"//"+location.host+d.substr(0,u)+t.indexFilesPath+"/","base64"===t.options.userNameEncoder&&((n=t.options.userInfo)&&n.user_name&&(n.user_name=o.decode(n.user_name)),t.options.userData))for(var p=0;p0)):g?n.domUtils.after(i,g):1===r.nodeType?o0),n.rangeUtils.setRange(e,1,e,1))}();else if(E)!function(){var e=n.domUtils.createSpan();e.innerHTML=d.FILL_CHAR,(m=n._amendUtils.splitDeletedDom(r,o))?(n.domUtils.after(e,E),n.rangeUtils.setRange(e,1,e,1)):(n.domUtils.before(e,E,o>0),n.rangeUtils.setRange(e,1,e,1))}();else if(n._h6Patch())return void u.stopEvent(e);b.collapseToEnd()}},onKeyDownReverse:function(e){var t=e.keyCode||e.which,r=n.rangeUtils.getRange(),o=n._amendUtils.fixedAmendRange(),i=function(e,t){var r,o;e&&((o=n._amendUtils.getWizAmendParent(e))&&1===o.childNodes.length&&((r=n.domUtils.createSpan()).innerHTML=d.FILL_CHAR+d.FILL_CHAR,n.domUtils.before(r,o,t>0),n.domUtils.remove(o),n.rangeUtils.setRange(r,t>0?0:2,r,1)))};if(8===t)return n.req.historyUtils.saveSnap(!1),void(r&&r.collapsed&&o&&o.leftDom&&(o.startImg=n._amendUtils.getWizAmendImgParent(o.leftDom),o.startImg?(o.startDom=o.startImg,o.startOffset=0,n.rangeUtils.setRange(o.startDom,o.startOffset,o.endDom,o.endOffset)):3===o.leftDom.nodeType&&1===o.leftDom.nodeValue.length&&i(o.leftDom,-1)));if(46===t)return n.req.historyUtils.saveSnap(!1),void(r&&r.collapsed&&o&&o.rightDom&&(o.endImg=n._amendUtils.getWizAmendImgParent(o.rightDom),o.endImg?(o.endDom=o.endImg,o.endOffset=o.endImg.childNodes.length,n.rangeUtils.setRange(o.startDom,o.startOffset,o.endDom,o.endOffset)):3===o.rightDom.nodeType&&1===o.rightDom.nodeValue.length&&i(o.rightDom,1)));if(!u.checkNonTxtKey(e)){n.req.historyUtils.saveSnap(!1),n.splitAmendDomByRange(o);var a=n.req.tableUtils.checkCaretInTableContainer();n.req.blockUtils.insertEmptyLine(a.tableContainer,a.after),13===t&&n._h6Patch()&&u.stopEvent(e)}},onMouseDown:function(e){n._amendInfo.isInfo(e.target)?u.stopEvent(e):n._amendInfo.stop()},onMouseUp:function(){n._amendInfo.start()},onTouchStart:function(e){}},n.accept=function(e){var t,r=n.rangeUtils.getSelection(),o={};if(e.total)o.selection=!0,o.selectAll=!0;else if(e.dom&&!e.isSelection)o.domList=n._amendUtils.getSameTimeStampDom(e.dom),o.selection=!1;else{if(0===r.rangeCount)return;o.selection=!0,o.selectAll=!1}n.req.historyUtils.saveSnap(!1),(t=o.selection&&!o.selectAll?n._amendUtils.getSelectedAmendDoms():n._amendUtils.getAmendDoms(o))&&(n._amendUtils.splitSelectedAmendDoms(t),n._amendUtils.wizAmendDelete(t.deleteList),n._amendUtils.wizAmendDelete(t.deletedInsertList),n._amendUtils.wizAmendSave(t.insertList)),n.domUtils.clearChildSpan(n.env.body,[])},n.changeCurUser=function(e){n.env.options.userInfo=e,n._amendUser.initUser()},n.fixPaste=function(e,t,r){n._amendUtils.modifyDomForPaste(e,t,r)},n.fragmentFilter=function(e){if(!e)return!1;for(var t=e.querySelectorAll("."+d.CLASS.WIZ_BODY+" span["+d.ATTR.SPAN_DELETE+'="'+n._amendUser.getCurUser().hash+'"]'),r=t.length-1;r>=0;r--){var o=t[r];n.domUtils.remove(o)}},n.hideAmendInfo=function(){n._amendInfo.hide(!0)},n.isAmendEdited=function(){return n._amendUtils.isAmendEdited()},n.hasAmendSpanByCursor=function(){var e=n._amendUtils.getAmendDoms({selection:!0,selectAll:!1});return e.insertList.length>0||e.deleteList.length>0||e.deletedInsertList.length>0},n.readyForPaste=function(){var e,t,r,o,i,a,l,s,c,u,f,h,p,m,g,v=n.rangeUtils.getRange();v&&(v.collapsed||(e=n.domUtils.getParentByTagName(v.endContainer,["td","th"],!0,null),n._amendUtils.removeSelection(n._amendUser.getCurUser()),n._amendUtils.removeUserDel(null,n._amendUser.getCurUser())),t=(v=n.rangeUtils.getRange()).endContainer,r=v.endOffset,n.domUtils.isTag(t,["td","th"])&&0===r&&e!==t&&(t=e,r=n.domUtils.getEndOffset(t)),p=n._amendUtils.splitInsertDom(t,r,!0,n._amendUser.getCurUser()),o=(new Date).valueOf(),i=n._amendUtils.createDomForPaste(o),a=i.start,l=i.content,s=i.end,m=n._amendUtils.getWizAmendImgParent(t),p.split?(3===t.nodeType&&(t=t.parentNode),n.domUtils.before([a,l,s],t,r>0)):m?n.domUtils.after([a,l,s],m):1===t.nodeType?(g=!1,n.domUtils.isTag(t,["td","th"])&&(n.domUtils.isEmptyDom(t)&&(t.innerHTML="",t.appendChild(n.domUtils.createSpan())),g=!0),r0&&0===t.deleteList.length&&0===t.insertList.length;n._amendUtils.wizAmendSave(t.deleteList),i&&n._amendUtils.wizAmendSave(t.deletedInsertList),n._amendUtils.wizAmendDelete(t.insertList),i||n._amendUtils.wizAmendDelete(t.deletedInsertList)}n.domUtils.clearChildSpan(n.env.body,[])},n.splitAmendDomByRange=function(e){return n._amendUtils.splitAmendDomByRange(e)},n.start=function(){n._isAmendEditing=!0,n.stopReverse(),n._event.bind(),n.startAmendInfo()},n.startReverse=function(){n.stop(),n._event.bindReverse(),n.startAmendInfo()},n.startAmendInfo=function(e){n._amendInfo.init(e,{onAccept:n._handler.onAccept,onRefuse:n._handler.onRefuse})},n.stop=function(){n._isAmendEditing=!1,n._event.unbind(),n._amendInfo.off()},n.stopReverse=function(){n._event.unbindReverse(),n._amendInfo.off()},n.stopAmendInfo=function(){n._amendInfo.off()},n}var n,r,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,e),n=t,(r=[{key:"initCore",value:function(e){var n=this;l(s(t.prototype),"initCore",this).call(this,e),this._amendInfo=e.require.amendInfo,this._amendUser=e.require.amendUser,this._amendUtils=e.require.amendUtils,function(){var e=n.domUtils.modifyNodeStyle;n.domUtils.modifyNodeStyle=function(t,r,o,i){var a;return 1===t.nodeType&&o&&o[d.ATTR.SPAN_DELETE]&&n.domUtils.isTag(t,"img")?(n._amendUtils.deleteImg(t,n._amendUser.getCurUser()),t):1===t.nodeType&&o&&o[d.ATTR.SPAN_DELETE]&&n.domUtils.isEmptyDom(t)?((a=t.parentNode).removeChild(t),n.domUtils.removeEmptyParent(a),t):1===t.nodeType&&o&&o[d.ATTR.SPAN_DELETE]&&n.domUtils.isSelfClosingTag(t)?t:o&&o[d.ATTR.SPAN_DELETE]&&n._amendUtils.getWizDeleteParent(t)?t:e(t,r,o,i)};var t=n.domUtils.addDomForGetDomList;n.domUtils.addDomForGetDomList=function(e,r){n._amendUtils.isWizDelete(r)||3===r.nodeType&&!n.domUtils.getParentByTagName(r,["td","th"],!1,null)&&n.domUtils.getParentByTagName(r,"table",!1,null)||t(e,r)}}()}},{key:"isAmendEditing",get:function(){return this._isAmendEditing}}])&&i(n.prototype,r),f&&i(n,f),t}(n(2));e.exports=f},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n
    - NSRequiresAquaSystemAppearance - NSServices diff --git a/mac-package-cmake.sh b/mac-package-cmake.sh index 2a9788655..605373653 100644 --- a/mac-package-cmake.sh +++ b/mac-package-cmake.sh @@ -10,7 +10,7 @@ echo "build version : " $REV package_home="./macos-package" package_output_path="$HOME" -QTDIR="/Users/weishijun/Qt5.12.8/5.12.8/clang_64" +QTDIR="/Users/weishijun/Qt/5.14.2/clang_64" mkdir ../WizQTClient-Release-QT5 rm -rf ../WizQTClient-Release-QT5/* && \ diff --git a/mac-package.sh b/mac-package.sh index 6b7be2b5d..e5c6d0e32 100755 --- a/mac-package.sh +++ b/mac-package.sh @@ -10,7 +10,9 @@ echo "build version : " $REV package_home="./macos-package" package_output_path="$HOME" -QTDIR="/Users/weishijun/Qt5.12.8/5.12.8/clang_64" + +# 注意,需要切换xcode为10 +QTDIR="/Users/weishijun/Qt/5.14.2/clang_64" # prepare language files $QTDIR/bin/lrelease ./i18n/wiznote_zh_CN.ts ./share/locales/wiznote_zh_CN.qm diff --git a/src/src.pro b/src/src.pro index f6e4ef119..97e4e97b3 100644 --- a/src/src.pro +++ b/src/src.pro @@ -3,6 +3,9 @@ QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets webengine webenginewidgets svg xml websockets macx { + QMAKE_MAC_SDK = macosx10.14 + QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.14 + QT += macextras LIBS += -framework Carbon LIBS += -framework Cocoa @@ -13,6 +16,8 @@ macx { ICON = ../build/common/logo/wiznote.icns QMAKE_CXXFLAGS += -Wno-unused-value -Wno-unused-variable -Wno-unused-parameter -Wno-inconsistent-missing-override + + } TARGET = WizNote From 3622e998465100a8fe3063729fbb2b422f5e825f Mon Sep 17 00:00:00 2001 From: wizweishijun Date: Fri, 29 May 2020 16:18:25 +0800 Subject: [PATCH 12/31] switch style --- .../default/actionFormatInsertPainter.svg | 2 +- src/WizEditorToolBar.cpp | 149 +++++++++++++++--- src/WizEditorToolBar.h | 3 + src/WizMainWindow.cpp | 2 + src/WizTitleBar.cpp | 1 + src/mac/WizMacToolBarDelegate.mm | 4 +- src/mac/WizSearchWidget_mac.mm | 9 ++ src/mac/WizSearchWidget_mm.cpp | 74 +++++++-- src/mac/WizSearchWidget_mm.h | 9 ++ src/main.cpp | 2 - 10 files changed, 211 insertions(+), 44 deletions(-) diff --git a/share/skins/default/actionFormatInsertPainter.svg b/share/skins/default/actionFormatInsertPainter.svg index 3fe29742d..1a9f36fb2 100644 --- a/share/skins/default/actionFormatInsertPainter.svg +++ b/share/skins/default/actionFormatInsertPainter.svg @@ -5,7 +5,7 @@ width="1024px" height="1024px" viewBox="0 0 1024 1024" enable-background="new 0 0 1024 1024" xml:space="preserve"> - setPosition(ButtonPosition::Right); connect(m_btnOrderedList, SIGNAL(clicked()), SLOT(on_btnOrderedList_clicked())); - QWidgetAction* tableAction = new QWidgetAction(this); - tableAction->setIcon(::WizLoadSkinIcon(skin, "actionFormatInsertTable", editIconSize, ICON_OPTIONS)); - tableAction->setText(tr("Insert Table")); + m_tableAction = new QWidgetAction(this); + m_tableAction->setIcon(::WizLoadSkinIcon(skin, "actionFormatInsertTable", editIconSize, ICON_OPTIONS)); + m_tableAction->setText(tr("Insert Table")); WizTableSelectorWidget* tableWidget = new WizTableSelectorWidget(this); - tableAction->setDefaultWidget(tableWidget); + m_tableAction->setDefaultWidget(tableWidget); // connect(tableWidget, SIGNAL(itemSelected(int,int)), SLOT(on_btnTable_clicked(int,int))); // QMenu* menuTable = new QMenu(this); - menuTable->addAction(tableAction); + menuTable->addAction(m_tableAction); // m_btnTable = new CWizToolButton(this); m_btnTable->setCheckable(false); @@ -1951,6 +1968,88 @@ void WizEditorToolBar::switchToNormalMode() { } } +void applySplitterTheme(QWidget* parent) { + // + QObjectList widgetList = parent->children(); + for (QObject* child : widgetList) { + if (CWizEditorButtonSpliter* splitter = dynamic_cast(child)) { + splitter->applyTheme(); + } else if (QWidget* widget = dynamic_cast(child)) { + applySplitterTheme(widget); + } + } +} + +void WizEditorToolBar::applyTheme() { + // + applySplitterTheme(this); + // + if (isDarkMode()) { + m_comboParagraph->setStyleSheet("QComboBox QListView{min-width:95px;background:#323232;}" + "QComboBox QAbstractItemView::item {min-height:20px;background:transparent;}"); + } else { + m_comboParagraph->setStyleSheet("QComboBox QListView{min-width:95px;background:#F6F6F6;}" + "QComboBox QAbstractItemView::item {min-height:20px;background:transparent;}"); + } + // + if (isDarkMode()) { + m_comboFontFamily->setStyleSheet("QComboBox QListView{min-width:150px;background:#323232;}" + "QComboBox QAbstractItemView::item {min-height:30px;background:transparent;}"); + } else { + m_comboFontFamily->setStyleSheet("QComboBox QListView{min-width:150px;background:#F6F6F6;}" + "QComboBox QAbstractItemView::item {min-height:30px;background:transparent;}"); + } + // + if (isDarkMode()) { + m_comboFontSize->setStyleSheet("QComboBox QListView{min-width:50px;background:#323232;}" + "QComboBox QAbstractItemView::item {min-height:20px;background:transparent;}"); + } else { + m_comboFontSize->setStyleSheet("QComboBox QListView{min-width:50px;background:#F6F6F6;}" + "QComboBox QAbstractItemView::item {min-height:20px;background:transparent;}"); + } + + // + QString skin = Utils::WizStyleHelper::themeName(); + QSize editIconSize = QSize(Utils::WizStyleHelper::editIconHeight(), Utils::WizStyleHelper::editIconHeight()); + // + m_btnFormatPainter->setIcon(::WizLoadSkinIcon(skin, "formatter", editIconSize, ICON_OPTIONS)); + m_btnRemoveFormat->setIcon(::WizLoadSkinIcon(skin, "actionFormatRemoveFormat", editIconSize, ICON_OPTIONS)); + m_btnForeColor->setIcon(::WizLoadSkinIcon(skin, "actionFormatForeColor", editIconSize, ICON_OPTIONS)); + m_btnBackColor->setIcon(::WizLoadSkinIcon(skin, "actionFormatBackColor", editIconSize, ICON_OPTIONS)); + m_btnBold->setIcon(::WizLoadSkinIcon(skin, "actionFormatBold", editIconSize, ICON_OPTIONS)); + m_btnItalic->setIcon(::WizLoadSkinIcon(skin, "actionFormatItalic", editIconSize, ICON_OPTIONS)); + m_btnShowExtra->setIcon(::WizLoadSkinIcon(skin, "actionFormatExtra", editIconSize, ICON_OPTIONS)); + m_btnUnderLine->setIcon(::WizLoadSkinIcon(skin, "actionFormatUnderLine", editIconSize, ICON_OPTIONS)); + m_btnStrikeThrough->setIcon(::WizLoadSkinIcon(skin, "actionFormatStrikeThrough", editIconSize, ICON_OPTIONS)); + m_btnJustify->setIcon(::WizLoadSkinIcon(skin, "actionFormatJustifyLeft", editIconSize, ICON_OPTIONS)); + m_btnUnorderedList->setIcon(::WizLoadSkinIcon(skin, "actionFormatInsertUnorderedList", editIconSize, ICON_OPTIONS)); + m_btnOrderedList->setIcon(::WizLoadSkinIcon(skin, "actionFormatInsertOrderedList", editIconSize, ICON_OPTIONS)); + m_tableAction->setIcon(::WizLoadSkinIcon(skin, "actionFormatInsertTable", editIconSize, ICON_OPTIONS)); + m_btnTable->setIcon(::WizLoadSkinIcon(skin, "actionFormatInsertTable", editIconSize, ICON_OPTIONS)); + m_btnHorizontal->setIcon(::WizLoadSkinIcon(skin, "actionFormatInsertHorizontal", editIconSize, ICON_OPTIONS)); + m_btnStartMarkup->setIcon(::WizLoadSkinIcon(skin, "actionFormatStartMarkup", editIconSize, ICON_OPTIONS)); + m_btnInsertPainter->setIcon(::WizLoadSkinIcon(skin, "actionFormatInsertPainter", editIconSize, ICON_OPTIONS)); + m_btnCheckList->setIcon(::WizLoadSkinIcon(skin, "actionFormatInsertCheckList", editIconSize, ICON_OPTIONS)); + m_btnInsertLink->setIcon(::WizLoadSkinIcon(skin, "actionFormatInsertLink", editIconSize, ICON_OPTIONS)); + m_btnInsertImage->setIcon(::WizLoadSkinIcon(skin, "actionFormatInsertImage", editIconSize, ICON_OPTIONS)); + m_btnInsertDate->setIcon(::WizLoadSkinIcon(skin, "actionFormatInsertDate", editIconSize, ICON_OPTIONS)); + m_btnMobileImage->setIcon(::WizLoadSkinIcon(skin, "actionMobileImage", editIconSize, ICON_OPTIONS)); + m_btnSearchReplace->setIcon(::WizLoadSkinIcon(skin, "actionFormatSearchReplace", editIconSize, ICON_OPTIONS)); + m_btnInsertCode->setIcon(::WizLoadSkinIcon(skin, "actionFormatInsertCode", editIconSize, ICON_OPTIONS)); + m_btnPencil->setIcon(::WizLoadSkinIcon(skin, "actionMarkupPencil", editIconSize, ICON_OPTIONS)); + m_btnHighlighter->setIcon(::WizLoadSkinIcon(skin, "actionMarkupHighlighter", editIconSize, ICON_OPTIONS)); + m_btnEraser->setIcon(::WizLoadSkinIcon(skin, "actionMarkupEraser", editIconSize, ICON_OPTIONS)); + m_btnShape->setIcon(::WizLoadSkinIcon(skin, "actionMarkupShape", editIconSize, ICON_OPTIONS)); + m_btnUndo->setIcon(::WizLoadSkinIcon(skin, "actionMarkupUndo", editIconSize, ICON_OPTIONS)); + m_btnRedo->setIcon(::WizLoadSkinIcon(skin, "actionMarkupRedo", editIconSize, ICON_OPTIONS)); + m_btnUndoOutline->setIcon(::WizLoadSkinIcon(skin, "actionMarkupUndo", editIconSize, ICON_OPTIONS)); + m_btnRedoOutline->setIcon(::WizLoadSkinIcon(skin, "actionMarkupRedo", editIconSize, ICON_OPTIONS)); + m_btnOutdentOutline->setIcon(::WizLoadSkinIcon(skin, "outline_outdent", editIconSize, ICON_OPTIONS)); + m_btnIndentOutline->setIcon(::WizLoadSkinIcon(skin, "outline_indent", editIconSize, ICON_OPTIONS)); + m_btnNotesOutline->setIcon(::WizLoadSkinIcon(skin, "outline_notes", editIconSize, ICON_OPTIONS)); + m_btnCompleteOutline->setIcon(::WizLoadSkinIcon(skin, "outline_complete", editIconSize, ICON_OPTIONS)); +} + void WizEditorToolBar::setToolbarType(QString type) { // m_strToolbarType = type; diff --git a/src/WizEditorToolBar.h b/src/WizEditorToolBar.h index f3656bde2..e4503a002 100755 --- a/src/WizEditorToolBar.h +++ b/src/WizEditorToolBar.h @@ -21,6 +21,7 @@ class CWizToolComboBoxFont; class WizExplorerApp; class WizTipsWidget; class CWizToolLineWidthComboBox; +class QWidgetAction; class WizDblclickableToolButton : public QToolButton @@ -52,6 +53,7 @@ class WizEditorToolBar : public QWidget void adjustButtonPosition(); void switchToNormalMode(); + void applyTheme(); // WizTipsWidget* showCoachingTips(); @@ -93,6 +95,7 @@ class WizEditorToolBar : public QWidget QAction* m_actionJustifyLeft; QAction* m_actionJustifyCenter; QAction* m_actionJustifyRight; + QWidgetAction* m_tableAction; QString m_strImageSrc; diff --git a/src/WizMainWindow.cpp b/src/WizMainWindow.cpp index b639dba2c..3bc9ebbc9 100755 --- a/src/WizMainWindow.cpp +++ b/src/WizMainWindow.cpp @@ -4563,6 +4563,8 @@ void WizMainWindow::setNeedResetGroups() void WizMainWindow::onThemeChanged() { applyTheme(); + m_searchWidget->applyTheme(); + // emit themeChanged(); } diff --git a/src/WizTitleBar.cpp b/src/WizTitleBar.cpp index a2a0544dd..7b2574c0a 100755 --- a/src/WizTitleBar.cpp +++ b/src/WizTitleBar.cpp @@ -219,6 +219,7 @@ WizTitleBar::WizTitleBar(WizExplorerApp& app, QWidget *parent) void WizTitleBar::applyTheme() { m_editTitle->applyTheme(); + m_editorBar->applyTheme(); } void WizTitleBar::initPlugins(QLayout* layout) diff --git a/src/mac/WizMacToolBarDelegate.mm b/src/mac/WizMacToolBarDelegate.mm index 0c96c8154..8d1f63fed 100755 --- a/src/mac/WizMacToolBarDelegate.mm +++ b/src/mac/WizMacToolBarDelegate.mm @@ -387,6 +387,7 @@ - (BOOL) becomeFirstResponder - (void)controlTextDidEndEditing:(NSNotification *)aNotification { + Q_UNUSED(aNotification); // NSWindow* window1 = [[NSApp windows] objectAtIndex:0]; // NSWindow* window2 = [[NSApp windows] objectAtIndex:1]; // NSWindow* window3 = [NSApp mainWindow]; @@ -400,7 +401,8 @@ - (void)controlTextDidEndEditing:(NSNotification *)aNotification - (BOOL) control:(NSControl *)control textShouldEndEditing:(NSText *)fieldEditor //- (BOOL) textShouldEndEditing:(NSText *) textObject; { - //Q_UNUSED(control); + Q_UNUSED(control); + Q_UNUSED(fieldEditor); // if (!m_toolbar) return YES; diff --git a/src/mac/WizSearchWidget_mac.mm b/src/mac/WizSearchWidget_mac.mm index ea9bf24af..e8e721a63 100755 --- a/src/mac/WizSearchWidget_mac.mm +++ b/src/mac/WizSearchWidget_mac.mm @@ -69,6 +69,9 @@ - (void)hideSearchCompleter - (BOOL)control:(NSControl *)control textView:(NSTextView *)textView doCommandBySelector:(SEL)commandSelector { + Q_UNUSED(control); + Q_UNUSED(textView); + if (commandSelector == @selector(insertNewline:)) { [self enterKeyPressed]; @@ -226,6 +229,7 @@ - (void)textDidEndEditing:(NSNotification *)aNotification } - (void)textDidChange:(NSNotification *)aNotification { + Q_UNUSED(aNotification); // QString text = WizToQString([self stringValue]); m_pSearchWidget->on_search_textChanged(text); @@ -269,6 +273,11 @@ - (void)textDidChange:(NSNotification *)aNotification [pSearchField setStringValue:@""]; } +void WizSearchView::applyTheme() +{ + m_completer->applyTheme(); +} + void WizSearchView::clearFocus() { WizSearchField* pSearchField = reinterpret_cast(cocoaView()); diff --git a/src/mac/WizSearchWidget_mm.cpp b/src/mac/WizSearchWidget_mm.cpp index 6fb4481e5..f6148c8cb 100755 --- a/src/mac/WizSearchWidget_mm.cpp +++ b/src/mac/WizSearchWidget_mm.cpp @@ -110,40 +110,44 @@ WizSuggestCompletionon::WizSuggestCompletionon(WizSearchView *parent) m_treeWgt->setItemDelegate(suggestionDelegate); - QPushButton* advancedSearchButton = new QPushButton(m_popupWgt); - advancedSearchButton->setFocusPolicy(Qt::NoFocus); - advancedSearchButton->setFocusProxy(m_popupWgt); - advancedSearchButton->setText(tr("Advanced Search")); + m_advancedSearchButton = new QPushButton(m_popupWgt); + m_advancedSearchButton->setFocusPolicy(Qt::NoFocus); + m_advancedSearchButton->setFocusProxy(m_popupWgt); + m_advancedSearchButton->setText(tr("Advanced Search")); if (isDarkMode()) { - advancedSearchButton->setStyleSheet("QPushButton { background-color:#666666; border-width: 1px; \ + m_advancedSearchButton->setStyleSheet("QPushButton { background-color:#666666; border-width: 1px; \ padding: 0px 4px; border-style: solid; border-color: #ECECEC; \ border-radius: 2px; border-bottom-color:#E0E0E0; }"); } else { - advancedSearchButton->setStyleSheet("QPushButton { background-color:#FFFFFF; border-width: 1px; \ + m_advancedSearchButton->setStyleSheet("QPushButton { background-color:#FFFFFF; border-width: 1px; \ padding: 0px 4px; border-style: solid; border-color: #ECECEC; \ border-radius: 2px; border-bottom-color:#E0E0E0; }"); } - connect(advancedSearchButton, SIGNAL(clicked(bool)), this, SLOT(on_advanced_buttonClicked())); + connect(m_advancedSearchButton, SIGNAL(clicked(bool)), this, SLOT(on_advanced_buttonClicked())); - QWidget* buttonContainer = new QWidget(m_popupWgt); - buttonContainer->setFixedHeight(40); + m_buttonContainer = new QWidget(m_popupWgt); + m_buttonContainer->setFixedHeight(40); if (isDarkMode()) { - buttonContainer->setStyleSheet("background-color:#666666; border-top:1px solid #666666;"); + m_buttonContainer->setStyleSheet("background-color:#666666; border-top:1px solid #666666;"); } else { } - QHBoxLayout* buttonLayout = new QHBoxLayout(buttonContainer); + QHBoxLayout* buttonLayout = new QHBoxLayout(m_buttonContainer); buttonLayout->setContentsMargins(8, 8, 8, 8); buttonLayout->setSpacing(0); - buttonContainer->setLayout(buttonLayout); + m_buttonContainer->setLayout(buttonLayout); buttonLayout->addStretch(0); - buttonLayout->addWidget(advancedSearchButton); + buttonLayout->addWidget(m_advancedSearchButton); m_infoWgt = new QWidget(m_popupWgt); m_infoWgt->setFixedHeight(135); - m_infoWgt->setStyleSheet("background-color:#FFFFFF;"); + if (isDarkMode()) { + m_infoWgt->setStyleSheet("background-color:#666666;"); + } else { + m_infoWgt->setStyleSheet("background-color:#FFFFFF;"); + } QVBoxLayout* infoLayout = new QVBoxLayout(m_infoWgt); QLabel* label = new QLabel(m_infoWgt); label->setText(tr("Suggestion will be showed here")); @@ -156,7 +160,7 @@ WizSuggestCompletionon::WizSuggestCompletionon(WizSearchView *parent) m_popupWgt->setLayout(layout); layout->addWidget(m_treeWgt); layout->addWidget(m_infoWgt); - layout->addWidget(buttonContainer); + layout->addWidget(m_buttonContainer); m_infoWgt->setVisible(false); @@ -184,6 +188,45 @@ WizSuggestCompletionon::~WizSuggestCompletionon() delete m_popupWgt; } +void WizSuggestCompletionon::applyTheme() +{ + if (isDarkMode()) { + m_treeWgt->setStyleSheet("QTreeWidget{ border:0px; outline:0; color: #c6c6c6; background-color:#666666;} " + "QTreeView::item{background-color:#666666; color:#c6c6c6} " + "QTreeView::branch { color:#c6c6c6; border-left:20px solid #666666; margin-left:20px; }"); + m_treeWgt->header()->setStyleSheet("QHeaderView:section{ background-color:#666666; height:20px; " + "border:0px; padding-left:8px; color:#C1C1C1; font-size:12px; }"); + } else { + m_treeWgt->setStyleSheet("QTreeWidget{ border:0px; outline:0; } " + "QTreeView::branch { color:#AAAAAA; border-left:20px solid #FFFFFF; margin-left:20px; }"); + m_treeWgt->header()->setStyleSheet("QHeaderView:section{ background-color:#FFFFFF; height:20px; " + "border:0px; padding-left:8px; color:#C1C1C1; font-size:12px; }"); + } + + if (isDarkMode()) { + m_advancedSearchButton->setStyleSheet("QPushButton { background-color:#666666; border-width: 1px; \ + padding: 0px 4px; border-style: solid; border-color: #ECECEC; \ + border-radius: 2px; border-bottom-color:#E0E0E0; }"); + } else { + m_advancedSearchButton->setStyleSheet("QPushButton { background-color:#FFFFFF; border-width: 1px; \ + padding: 0px 4px; border-style: solid; border-color: #ECECEC; \ + border-radius: 2px; border-bottom-color:#E0E0E0; }"); + } + + if (isDarkMode()) { + m_buttonContainer->setStyleSheet("background-color:#666666; border-top:1px solid #666666;"); + } else { + m_buttonContainer->setStyleSheet("background-color:transparent; border-top:1px solid #666666;"); + } + + if (isDarkMode()) { + m_infoWgt->setStyleSheet("background-color:#666666;"); + } else { + m_infoWgt->setStyleSheet("background-color:#FFFFFF;"); + } + +} + void WizSuggestCompletionon::setUserSettings(WizUserSettings* settings) { m_settings = settings; @@ -256,6 +299,7 @@ void WizSuggestCompletionon::showCompletion(const QStringList &choices, bool isR m_treeWgt->setVisible(false); m_infoWgt->setVisible(true); m_popupWgt->setFixedHeight(170); + m_popupWgt->setFixedWidth(width); } else { diff --git a/src/mac/WizSearchWidget_mm.h b/src/mac/WizSearchWidget_mm.h index bbe996042..d99b6da2e 100755 --- a/src/mac/WizSearchWidget_mm.h +++ b/src/mac/WizSearchWidget_mm.h @@ -11,9 +11,11 @@ QT_BEGIN_NAMESPACE class QLineEdit; class QTimer; class QTreeWidget; +class QPushButton; class WizUserSettings; QT_END_NAMESPACE + class WizSuggestCompletionon; const int TOOLBARITEMHEIGHT = 23; @@ -55,6 +57,9 @@ class WizSearchView : public WizCocoaViewContainer virtual QSize sizeHint() const; QRect globalRect(); + // + void applyTheme(); + public Q_SLOTS: void on_search_editFinished(const QString& strText); void on_search_textChanged(const QString& strText); @@ -118,6 +123,8 @@ class WizSuggestCompletionon : public QObject void selectSuggestItem(bool up); QString getCurrentText(); void updatePlaceHolder(); + // + void applyTheme(); public slots: void showCompletion(const QStringList &choices, bool isRecentSearches); @@ -146,6 +153,8 @@ public slots: bool m_focused; WizSuggestionSeacher* m_searcher; + QPushButton* m_advancedSearchButton; + QWidget* m_buttonContainer; WizUserSettings* m_settings; }; diff --git a/src/main.cpp b/src/main.cpp index 162df7cfa..4eddc93dd 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -136,8 +136,6 @@ int mainCore(int argc, char *argv[]) QApplication::setLibraryPaths(QStringList(dir.absolutePath())); #endif // - QtWebEngine::initialize(); - #ifdef BUILD4APPSTORE WizIAPHelper helper; helper.validteReceiptOnLauch(); From 9a58056b7a324ac53b632ea99307b22231207356 Mon Sep 17 00:00:00 2001 From: wizweishijun Date: Tue, 9 Jun 2020 17:18:38 +0800 Subject: [PATCH 13/31] 1. bug fix 2. insert image for outline note --- mac-package-old.sh | 2 +- share/files/wizeditor/default.css | 32 ++--- .../files/wizeditor/dependency/WizContent.js | 2 +- share/files/wizeditor/dependency/github2.css | 8 +- .../dependency/minder/kityminder.core.min.js | 4 +- .../minder/wizThemeSvg/wiz-black.svg | 124 ++++++----------- .../minder/wizThemeSvg/wiz-blue.svg | 124 ++++++----------- .../minder/wizThemeSvg/wiz-cyan.svg | 124 ++++++----------- .../minder/wizThemeSvg/wiz-darkBlue.svg | 124 ++++++----------- .../minder/wizThemeSvg/wiz-golden.svg | 125 ++++++------------ .../minder/wizThemeSvg/wiz-green.svg | 124 ++++++----------- .../wizThemeSvg/wiz-lightGreen-night.svg | 124 ++++++----------- .../minder/wizThemeSvg/wiz-lightGreen.svg | 124 ++++++----------- .../minder/wizThemeSvg/wiz-purple.svg | 124 ++++++----------- .../minder/wizThemeSvg/wiz-sakura.svg | 124 ++++++----------- .../minder/wizThemeSvg/wiz-silver.svg | 124 ++++++----------- share/files/wizeditor/wizEditorForMac.js | 4 +- src/WizCategoryView.cpp | 18 ++- src/WizDocumentWebView.cpp | 2 +- src/WizEditorToolBar.cpp | 20 ++- src/WizEditorToolBar.h | 1 + 21 files changed, 498 insertions(+), 960 deletions(-) mode change 100755 => 100644 share/files/wizeditor/dependency/github2.css mode change 100755 => 100644 share/files/wizeditor/wizEditorForMac.js diff --git a/mac-package-old.sh b/mac-package-old.sh index fe5e01b23..c8f485171 100755 --- a/mac-package-old.sh +++ b/mac-package-old.sh @@ -10,7 +10,7 @@ echo "build version : " $REV package_home="./macos-package" package_output_path="$HOME" -QTDIR="/Users/weishijun/Qt5.9.8/5.9.8/clang_64" +QTDIR="/Users/weishijun/Qt/5.9.8/clang_64" mkdir ../WizQTClient-Release-QT5 rm -rf ../WizQTClient-Release-QT5/* && \ diff --git a/share/files/wizeditor/default.css b/share/files/wizeditor/default.css index 243a35a8b..dbc112b9d 100644 --- a/share/files/wizeditor/default.css +++ b/share/files/wizeditor/default.css @@ -1,15 +1,17 @@ -html, .wiz-editor-body {font-size: 12pt;}.wiz-editor-body {font-family: Helvetica, "Hiragino Sans GB", "微软雅黑", "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif;line-height: 1.7;margin: 0 auto;position:relative;padding: 20px 48px;}.wiz-editor-body h1,.wiz-editor-body h2,.wiz-editor-body h3,.wiz-editor-body h4,.wiz-editor-body h5,.wiz-editor-body h6 {margin:20px 0 10px;margin:1.25rem 0 0.625rem;padding: 0;font-weight: bold;}.wiz-editor-body h1 {font-size:20pt;font-size:1.67rem;}.wiz-editor-body h2 {font-size:18pt;font-size:1.5rem;}.wiz-editor-body h3 {font-size:15pt;font-size:1.25rem;}.wiz-editor-body h4 {font-size:14pt;font-size:1.17rem;}.wiz-editor-body h5 {font-size:12pt;font-size:1rem;}.wiz-editor-body h6 {font-size:12pt;font-size:1rem;color: #777777;margin: 1rem 0;}.wiz-editor-body div,.wiz-editor-body p,.wiz-editor-body ul,.wiz-editor-body ol,.wiz-editor-body dl,.wiz-editor-body li {margin:8px 0 0;}.wiz-editor-body blockquote,.wiz-editor-body table,.wiz-editor-body pre,.wiz-editor-body code {margin:8px 0;}.wiz-editor-body .CodeMirror pre {margin:0;}.wiz-editor-body a {word-wrap: break-word;text-decoration-skip-ink: none;}.wiz-editor-body ul,.wiz-editor-body ol {padding-left:32px;padding-left:2rem;}.wiz-editor-body ol.wiz-list-level1 > li {list-style-type:decimal;}.wiz-editor-body ol.wiz-list-level2 > li {list-style-type:lower-latin;}.wiz-editor-body ol.wiz-list-level3 > li {list-style-type:lower-roman;}.wiz-editor-body li.wiz-list-align-style {list-style-position: inside; margin-left: -1em;}.wiz-editor-body blockquote {padding: 0 12px;}.wiz-editor-body blockquote > :first-child {margin-top:0;}.wiz-editor-body blockquote > :last-child {margin-bottom:0;}.wiz-editor-body img {border:0;max-width:100%;height:auto !important;margin:2px 0;padding: 2px;vertical-align:bottom;}.wiz-editor-body table {border-collapse:collapse;border:1px solid #a7afbc;}.wiz-editor-body td,.wiz-editor-body th {padding:4px 8px;border-collapse:collapse;border:1px solid #a7afbc;min-height:28px;word-break:break-word;box-sizing: border-box;}.wiz-editor-body td > div:first-child {margin-top:0;}.wiz-editor-body td > div:last-child {margin-bottom:0;}.wiz-editor-body img.wiz-svg-image {box-shadow:1px 1px 4px #E8E8E8;}.wiz-editor-body .wiz-image-container {margin:0;max-width: 100%;display: inline-flex;flex-direction: column;}.wiz-editor-body .wiz-image-container .wiz-image-title {display:inline-block;text-align: center;color: #a7afbc;line-height: 18px;font-size: 12px;min-height: 18px;width: 100%;white-space: normal;}.wiz-hide {display:none !important;} - -html, .wiz-editor-body { - /*default-font-family*/ - /*default-font-size*/ - /*default-background-color*/ - /*default-line-height*/ - /*default-text-color*/ -} -body.wiz-editor-body div, body.wiz-editor-body p, body.wiz-editor-body ul, body.wiz-editor-body ol, body.wiz-editor-body dl, body.wiz-editor-body li { - /*default-para-spacing*/ -} -body, .wiz-editor-body { - padding-top: 8px !important; -} +html, .wiz-editor-body {font-size: 12pt;}.wiz-editor-body {font-family: Helvetica, "Hiragino Sans GB", "微软雅黑", "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif;line-height: 1.7;margin: 0 auto;position:relative;padding: 20px 16px;}.wiz-editor-body h1,.wiz-editor-body h2,.wiz-editor-body h3,.wiz-editor-body h4,.wiz-editor-body h5,.wiz-editor-body h6 {margin:20px 0 10px;margin:1.25rem 0 0.625rem;padding: 0;font-weight: bold;}.wiz-editor-body h1 {font-size:20pt;font-size:1.67rem;}.wiz-editor-body h2 {font-size:18pt;font-size:1.5rem;}.wiz-editor-body h3 {font-size:15pt;font-size:1.25rem;}.wiz-editor-body h4 {font-size:14pt;font-size:1.17rem;}.wiz-editor-body h5 {font-size:12pt;font-size:1rem;}.wiz-editor-body h6 {font-size:12pt;font-size:1rem;color: #777777;margin: 1rem 0;}.wiz-editor-body div,.wiz-editor-body p,.wiz-editor-body ul,.wiz-editor-body ol,.wiz-editor-body dl,.wiz-editor-body li {margin:8px 0 0;}.wiz-editor-body blockquote,.wiz-editor-body table,.wiz-editor-body pre,.wiz-editor-body code {margin:8px 0;}.wiz-editor-body .CodeMirror pre {margin:0;}.wiz-editor-body a {word-wrap: break-word;text-decoration-skip-ink: none;}.wiz-editor-body ul,.wiz-editor-body ol {padding-left:32px;padding-left:2rem;}.wiz-editor-body ol.wiz-list-level1 > li {list-style-type:decimal;}.wiz-editor-body ol.wiz-list-level2 > li {list-style-type:lower-latin;}.wiz-editor-body ol.wiz-list-level3 > li {list-style-type:lower-roman;}.wiz-editor-body li.wiz-list-align-style {list-style-position: inside; margin-left: -1em;}.wiz-editor-body blockquote {padding: 0 12px;}.wiz-editor-body blockquote > :first-child {margin-top:0;}.wiz-editor-body blockquote > :last-child {margin-bottom:0;}.wiz-editor-body img {border:0;max-width:100%;height:auto !important;margin:2px 0;padding: 2px;vertical-align:bottom;}.wiz-editor-body table {border-collapse:collapse;border:1px solid #a7afbc;}.wiz-editor-body td,.wiz-editor-body th {padding:4px 8px;border-collapse:collapse;border:1px solid #a7afbc;min-height:28px;word-break:break-word;box-sizing: border-box;}.wiz-editor-body td > div:first-child {margin-top:0;}.wiz-editor-body td > div:last-child {margin-bottom:0;}.wiz-editor-body img.wiz-svg-image {box-shadow:1px 1px 4px #E8E8E8;}.wiz-editor-body .wiz-image-container {margin:0;max-width: 100%;display: inline-flex;flex-direction: column;}.wiz-editor-body .wiz-image-container .wiz-image-title {display:inline-block;text-align: center;color: #a7afbc;line-height: 18px;font-size: 12px;min-height: 18px;width: 100%;white-space: normal;}.wiz-hide {display:none !important;}.wiz-editor-body.wiz-editor-outline {padding-right:0; padding-left:0;}.wiz-editor-body.wiz-editor-outline .outline-container {margin:0; padding:0; line-height:1.5;}.wiz-editor-body.wiz-editor-outline .outline-container div {margin:0;}.wiz-editor-body.wiz-editor-outline .node {margin:0; padding: 0;}.wiz-editor-body.wiz-editor-outline .outline-container > .node {margin-right:24px; margin-left:30px;}.wiz-editor-body.wiz-editor-outline .node.collapsed .children {display:none;}.wiz-editor-body.wiz-editor-outline .node .row {position:relative; padding-left:26px;}.wiz-editor-body.wiz-editor-outline .node .operator-container {width:36px;position:absolute; top:4px; left:-18px;}.wiz-editor-body.wiz-editor-outline .node .operator-bar {position:absolute; top:0; left:0; right:0; bottom:0; display:flex; align-items:center; justify-content:center;}.wiz-editor-body.wiz-editor-outline .node .switch {width:18px; height:18px;display:flex;flex-direction: column;align-items: center;overflow: hidden;}.wiz-editor-body.wiz-editor-outline .node .switch i {font-size:20px;position:relative;left:-1px;top:-1px;}.wiz-editor-body.wiz-editor-outline .node .switch.active {cursor:pointer;color:transparent; transition:transform 200ms ease 0s;}.wiz-editor-body.wiz-editor-outline .node.collapsed .switch.active {transform:rotateZ(-90deg);}.wiz-editor-body.wiz-editor-outline .node .row:hover .switch.active {color:#505F79}.wiz-editor-body.wiz-editor-outline .node .dot {display:flex; align-items:center; justify-content:center; border-radius:100%; width:18px; height:18px;}.wiz-editor-body.wiz-editor-outline .node.collapsed .dot {background-color:rgba(80, 95, 121, .15);}.wiz-editor-body.wiz-editor-outline .node .dot-icon {background-color:#505F79; border-radius:100%; width:6px; height:6px;}.wiz-editor-body.wiz-editor-outline .node .child {margin-left:8px; border-left:1px solid #E6E9ED; padding-left:17px;}.wiz-editor-body.wiz-editor-outline .node .content {flex:1;outline:none; padding:4px 0;}.wiz-editor-body.wiz-editor-outline .node div.content {font-size:1rem;}.wiz-editor-body.wiz-editor-outline .node.complete > .row .content {text-decoration:line-through;color:#A7AFBC;}.wiz-editor-body.wiz-editor-outline .node .notes {outline:none; font-size:.8rem; color:#A7AFBC;}.wiz-editor-body.wiz-editor-outline .node .image {outline:none; padding-top:4px; padding-bottom:4px;}.wiz-editor-body.wiz-editor-outline .outline-container h1,.wiz-editor-body.wiz-editor-outline .outline-container h2,.wiz-editor-body.wiz-editor-outline .outline-container h3,.wiz-editor-body.wiz-editor-outline .outline-container h4,.wiz-editor-body.wiz-editor-outline .outline-container h5,.wiz-editor-body.wiz-editor-outline .outline-container h6 {margin:0;} + +html, .wiz-editor-body { + /*default-font-family*/ + /*default-font-size*/ + /*default-background-color*/ + /*default-line-height*/ + /*default-text-color*/ +} +body.wiz-editor-body div, body.wiz-editor-body p, body.wiz-editor-body ul, body.wiz-editor-body ol, body.wiz-editor-body dl, body.wiz-editor-body li { + /*default-para-spacing*/ +} +body, .wiz-editor-body { + padding-top: 8px !important; + padding-left: 48px; + padding-right: 48px; +} diff --git a/share/files/wizeditor/dependency/WizContent.js b/share/files/wizeditor/dependency/WizContent.js index 5045a6864..388ffb640 100644 --- a/share/files/wizeditor/dependency/WizContent.js +++ b/share/files/wizeditor/dependency/WizContent.js @@ -1 +1 @@ -!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=564)}({564:function(t,e){!function(){var t=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;"wiz".trim||(String.prototype.trim=function(){return this.replace(t,"")});var e={OTHER_ATTR:{WIZ_SPAN:"data-wiz-span",MATHJAX:"data-mathml"},OTHER_CLASS:{CODE_MIRROR:"wiz-code-container",WIZ_BODY:"wiz-editor-body",WIZ_TABLE_BODY:"wiz-table-body",WIZ_TABLE_CONTAINER:"wiz-table-container"},WIZ_EDITOR_ID:{},BORDER_COLOR:"#F0F2F4",HTML_BG_COLOR:"#E8E8E8",BODY_BG_COLOR:"#FFFFFF",CONTENT_STYLE:"\n * {box-sizing: border-box;}\n html {\n height:100%; \n background-color:{htmlBgColor} !important;\n /*margin-left: calc(100vw - 100%) !important;*/\n }\n body, .wiz-editor-body {\n max-width:100%;\n }\n body, .wiz-editor-body, .markdown-body {\n background-color:{bodyBgColor} !important;\n border:1px solid {borderColor} !important;\n max-width:820px !important;\n min-height:initial !important;\n min-height:calc(100% - 80px) !important;\n margin:0px auto !important;\n padding:16px !important;\n }\n\n @media screen and (min-width: 821px) {\n body, .wiz-editor-body, .markdown-body {\n margin:40px auto !important;\n padding:48px 75px !important;\n }\n }\n\n /*h1, h2, h3, h4, h5, h6 {\n font-weight: 600;\n line-height: 1.25;\n margin-top: 1em;\n margin-bottom:.5em;\n }*/\n \n /*p, div {margin: 0 0 24px;}*/\n /*li p, li div {margin-bottom: 8px;}*/\n /*wiz_code_mirror p, wiz_code_mirror div {margin-bottom:0;}*/\n \n a, a:visited, a:active {color: #448aff;}\n th, td {\n min-width: 50px;\n }\n tr ol, tr ul {\n margin: 0;\n -webkit-padding-start: 15px;\n }\n pre {\n background-color:#fafbfc;\n border:1px solid #e1e4e8;\n font-size:13px;\n padding:8px;\n white-space: pre-wrap;\n }\n \n .wiz-title, .wiz-article, wiz-comment {\n margin:0;\n word-break: break-word;\n }\n \n .wiz-title {\n border-bottom: 1px solid #e9e9e9;\n margin-bottom:20px;\n }\n .wiz-title h1 {\n /* font-size: 28px; */\n }\n \n .wiz-article {\n /* color:#2f2f2f;\n font-size: 16px;\n font-weight: 400;\n line-height: 1.7; */\n }\n \n .wiz-comment {\n /* color:#2f2f2f;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.7; */\n } \n \n svg, img {\n max-width:100%;\n } \n ",CONTENT_PATCH_STYLE:"\n /* body {visibility: hidden;} */\n ",CONTENT_ID:{STYLE:"wiz-content-read-model-style",IFRAME:"wiz-content-iframe-viewer"},CONTENT_CLASS:{IFRAME_ACTIVE:"wiz-content-active"},CONTENT_ATTR:{DOM:"data-wiz-content-read-dom",TYPE:"data-wiz-content-read-type",TMP_REMOVE_FLAG:"data-wiz-content-remove",TMP_STYLE_FLAG:"data-wiz-content-style",TMP_IMG_INSERT_BR:"data-wiz-img-insert-br"},CONTENT_TYPE:{ARTICLE:"article",COMMENTS:"comments"},MAX_AREA_COUNT:180,MAX_DEPTH:20,MAX_PARENT_END_COUNT:5,MIN_AREA_COUNT:80,MIN_HEIGHT_IMG:100,MIN_WIDTH_IMG:500,MIN_WIDTH_RATE_IMG:.6},n=["iframe","frameset","script","noscript","link","style","input","button","select"],r="",o=!1,i=!0,a=!0,l="",d="",s="",u="",c="",m=!1,T="".concat("max-height"," 800ms cubic-bezier(0.52, 0.03, 0.42, 0.99)"),f={appendCount:function(t){var n=t.dom,r=t.text||"",o=t.result,i=t.isParentEnd,a=t.isAD,l=t.isBorder;f.isEmpty(r)&&(r="");var d=r.length,s=[];if(1===n.nodeType&&!i){s=f.isTag(n,["img"])?[n]:n.querySelectorAll("img");for(var u=0;ue.MIN_HEIGHT_IMG*e.MIN_WIDTH_IMG||g>e.MIN_HEIGHT_IMG&&y>=e.MIN_WIDTH_RATE_IMG)!0,d+=Math.min(Math.floor(T*g/900),e.MAX_AREA_COUNT),r+=m}}!function(t,e,n,i,a){var l=a.isAD,d=a.isBorder;o.domList.push(t),o.domOptionsList.push({text:e,isParentEnd:i,isAD:l,isBorder:d});var s=0,u=[],c=0;if(1===t.nodeType&&n>0){s=0,u=t.querySelectorAll("a");for(var m={},T=0,g=0,y=0;y0&&g/T>.5||c>=.75*n?s=1:c>=.4*n&&(s=.5),n*=1-s}!l&&n>0&&r.length>0&&o.notEmptyDomCount++;l&&(n/=10);d&&(n/=3);o.countList.push(n),o.totalCount+=n}(n,r,d,i,{isAD:a,isBorder:l})},count:function(t,r,o){var i,a,l=!0,d=!1,s=o.isAD||f.isAD(t),u=o.isBorder||f.isBorder(t),c=o.depth||0;if((1===t.nodeType||3===t.nodeType)&&!f.isTag(t,n)&&f.isVisibleDom(t))if(3===t.nodeType?(a=f.getText(t),l=!1):c>=e.MAX_DEPTH&&(a=f.getText(t),l=!1),l&&!s){for(var m=0,T=(i=t.childNodes||[]).length;mg&&2*i>y&&(s=r,u=p)),r.rateSum>40||r.rateCount>40){if(s&&(s.rateSum>40||s.rateCount>40))continue;s=r,u=p}if(t.bodyArea.length<3&&s)return f.log("总个数少于 3,且找到 文章区域,直接设置为文章模式"),R(u,s),void P();for(var h=0;h=3&&w(N[0],N[1])){d=N[1],m=n.index,T=!0;break}}if(T&&s&&u>m&&(f.log("如果评论在 正文之前,则正文很可能是内容更多的其他内容,只能当作辅助正文"),s=null,u=null),T&&s&&s.rootParent.className.trim()!==n)f.log("如果有评论,且文章区域的 className 与 评论区域 的 className 不一致,则设置为文章,并且保留评论内容"),R(u,s);else if(!T&&s){if(f.log("bodyArea >= 3 && 没有评论 && 存在文章区域"),R(u,s),u+110||C.rateCount>10)&&C.start-s.end<20&&t.article.bodyAreaIndex.push(v)}}else if(T&&!s){f.log("如果有评论,且无明确的正文区域");for(var O=0;O10||r.rateSum>10)&&(f.log("评论后面的内容只能当作评论"),t.comments.itemList.push(r.rootParent)))}else T||s||f.log("无评论,且无明确的正文区域");P()}function P(){if(0!==t.article.bodyAreaIndex.length)for(var e=0;e3||c>3){a=[];break}if(d=g,s=y,o){if(f.isParent(T,o))continue;o=null}if(o=f.checkPathIsSame(l[m+1].parentNode,T.parentNode)){i=I(o,n,r);for(var p=0;p5&&f.isVisibleDom(d)&&(r=d)}!n&&r&&(n=r),n&&(e.article.title=n)},clearAttr:function(t){if(!t.getAttribute(e.OTHER_ATTR.WIZ_SPAN)){var n,r,o,i=t.attributes,a=f.isTag(t,["td","tr","table"]);a&&(n=t.style.width,r=t.style.height,o=t.style.backgroundColor);for(var l=i.length-1;l>=0;l--){var d=i[l];/^(on|style)/gi.test(d.name)&&t.removeAttribute(d.name)}a&&(n&&(t.style.width=n),r&&(t.style.height=r),o&&(t.style.backgroundColor=o));var s=t.getAttribute(e.CONTENT_ATTR.TMP_STYLE_FLAG);if(s&&t.setAttribute("style",s),t.getAttribute(e.CONTENT_ATTR.TMP_IMG_INSERT_BR)){var u=t.parentNode;u.insertBefore(document.createElement("br"),t),u.insertBefore(document.createElement("br"),t.nextSibling)}}},clearContentTempAttr:function(t,e){for(var n=0;n=0;i--){o[i].removeAttribute(r)}},traversalElement:function(t,n){if(!f.hasClass(t,e.OTHER_CLASS.CODE_MIRROR)&&!t.getAttribute(e.OTHER_ATTR.MATHJAX)){var r=f.isAD(t);if(n(t,r),!r&&!f.isTag(t,["wiz_tmp_tag"]))for(var o=t.children,i=o.length-1;i>=0;i--)f.traversalElement(o[i],n)}},getContentHtml:function(t){if(f.isTag(t,["tbody","thead"])&&(t=t.parentNode),f.isTag(t,["table"])){var n=t.parentNode.parentNode;f.hasClass(n,e.OTHER_CLASS.WIZ_TABLE_CONTAINER)&&(t=n)}var r;f.traversalElement(t,(function(t,n){n||!f.isTag(t,["br","style","link"])&&!f.isVisibleDom(t)?t.setAttribute(e.CONTENT_ATTR.TMP_REMOVE_FLAG,"true"):f.isTag(t,["img"])&&(t.setAttribute(e.CONTENT_ATTR.TMP_STYLE_FLAG,"display:block;"),t.setAttribute(e.CONTENT_ATTR.TMP_IMG_INSERT_BR,"1"))}));for(var o=t.cloneNode(!0),i=(r=o.querySelectorAll("iframe")).length-1;i>=0;i--)f.removeDom(r[i]);for(var a=(r=o.querySelectorAll("script")).length-1;a>=0;a--)f.removeDom(r[a]);for(var l=(r=o.querySelectorAll("[".concat(e.CONTENT_ATTR.TMP_REMOVE_FLAG,"]"))).length-1;l>=0;l--)f.removeDom(r[l]);return f.traversalElement(o,(function(t){if(f.isTag(t,["style","link","video","audio"]))f.removeDom(t);else if(1===t.childNodes.length&&!function(t){return!!f.getParentByFilter(t,(function(t){return f.isTag(t,["pre"])}),!1)}(t)&&f.isTag(t.firstChild,["br"])){t.isEmpty=!0;var e=t.nextSibling;e&&e.isEmpty&&t.parentNode.removeChild(t)}else f.clearAttr(t)})),f.clearAttr(o),f.clearContentTempAttr(t,[e.CONTENT_ATTR.TMP_REMOVE_FLAG,e.CONTENT_ATTR.TMP_STYLE_FLAG,e.CONTENT_ATTR.TMP_IMG_INSERT_BR]),o.outerHTML},getParentByClass:function(t,e,n){return f.getParentByFilter(t,(function(t){return f.hasClass(t,e)}),n)},getParentByFilter:function(t,e,n){if(t&&t!==document.body)for(t=n?t:t.parentNode;t;){if(!e||e(t))return t;if(t===document.body)return null;t=t.parentNode}return null},getParentRoot:function(t){if(!t||0===t.length)return null;var e,n,r=[];for(n=1===t[0].nodeType?t[0]:t[0].parentNode;n&&n!==document.body;)r.push(n),n=n.parentNode;for(var o=1,i=t.length;o-1){r.splice(0,e);break}n=n.parentNode}return 0===r.length?document.body:r[0]},getText:function(t){return 3===t.nodeType?t.nodeValue:"string"==typeof t.innerText?t.innerText:t.textContent},hasClass:function(t,e){return!(!t||1!==t.nodeType)&&(" "+t.className+" ").indexOf(" "+e+" ")>-1},insertStyle:function(t,e){var n=document.createElement("style");return t.name&&n.setAttribute("name",t.name),t.id&&(n.setAttribute("id",t.id),f.removeStyleById(t.id)),document.getElementsByTagName("HEAD")[0].insertBefore(n,null),n.innerHTML=e,n},isAD:function(t){if(!t||1!==t.nodeType)return!1;var e=(t.className||"")+","+(t.id||"");return/(^ad[^a-zA-Z])|([^a-zA-Z]ad$)/gi.test(e)},isBorder:function(t){if(!t||!t.parentNode)return!1;var e=(t.className||"")+","+(t.id||"");return/(^|[^a-zA-Z])(sidebar|bottom|footer|navbar|feed)([^a-zA-Z]|$)/gi.test(e)},isBlock:function(t){if(!t||1!==t.nodeType)return!1;if(f.isTag(t,["p"]))return!1;if(f.isTag(t,["div","ul","ol","li"]))return!0;if(f.isTag(t,["tr","td"])&&!t.querySelector("table")&&!t.querySelector("div"))return!1;var e=window.getComputedStyle(t,null).display;return!!e&&!/^(inline|inline-block|inline-table)$/i.test(e)},isEmpty:function(t){var e=new RegExp("[\r\n​\\s]*","ig");return 0===t.replace(e,"").length},isParent:function(t,e){if(!t||!e)return!1;for(var n=t.parentNode;n&&n!==document.body;){if(e===n)return!0;n=n.parentNode}return!1},isTag:function(t,e){if(!t||1!==t.nodeType)return!1;for(var n=t.tagName.toLowerCase(),r=0,o=e.length;r0;if(n&&f.isBlock(t)){var r=parseInt(e.width,10),o=parseInt(e.height,10);if(!r||!o){var i=t.getBoundingClientRect();r=i.width,o=i.height}n=!(0===r&&0===o)}return n},log:function(t){o&&console.trace(t)},mergeBodyArea:function(t){for(var e,n=t.bodyArea.length-1;n>=0;n--){t.bodyArea[n].rootParent===document.body&&t.bodyArea.splice(n,1)}for(var r=0;r0&&(e=t.bodyArea[r-1],o.rootParent===e.rootParent||f.isParent(o.rootParent,e.rootParent)?(f.log("整合具有相同 rootParent 的区间"),i=!0):f.isParent(e.rootParent,o.rootParent)&&o.start-e.end<20?(f.log("后面合并前面的时候,如果相隔距离太远不进行处理"),i=!0,e.rootParent=o.rootParent):o.start-e.end<3||o.rootParent.previousElementSibling===e.rootParent?(f.log("后面合并前面的时候,如果相隔距离极其接近 < 3 或 两者的父容器并排,不考虑父容器是否相关(尝试)"),i=!0,e.rootParent=f.getParentRoot([e.rootParent,o.rootParent]),o.rootParent=e.rootParent):i=!1,i);)f.log(["merge.... (",e.start,", ",e.end,") - (",o.start,", ",o.end,")"].join("")),e.end=o.end,e.endDom=o.endDom,e.totalCount=0,e.totalSum=0,o=e,t.bodyArea.splice(r,1),r--;f.sumArea(o,t)}},removeDom:function(t){t&&1===t.nodeType&&t.parentNode.removeChild(t)},removeStyleById:function(t){var e=document.getElementById(t);e&&f.isTag(e,["style","link"])&&f.removeDom(e)},resumePage:function(){f.removeStyleById(e.CONTENT_ID.STYLE);for(var t=document.querySelectorAll("[".concat(e.CONTENT_ATTR.DOM,"]")),n=t.length-1;n>=0;n--)t[n].removeAttribute(e.CONTENT_ATTR.DOM),t[n].removeAttribute(e.CONTENT_ATTR.TYPE)},showContent:function(t,n){var o="";if(t.contentType){if(b(t.article.title,"title"),t.contentType===e.CONTENT_TYPE.ARTICLE)for(var l=0;l=0;d--)b(t.comments.itemList[d],e.CONTENT_TYPE.COMMENTS);o=(o="string"==typeof(o=t.article.title||"")?o.replace(//g,">"):o.innerText).replace(/^(\s| )*/,"")}else i?f.log("此页面 不适合进行内容提取"):f.log("将整篇内容进行展示"),document.body.setAttribute(e.CONTENT_ATTR.TYPE,e.CONTENT_TYPE.ARTICLE);var s=p("["+e.CONTENT_ATTR.TYPE+'="'+e.CONTENT_TYPE.ARTICLE+'"]'),u=p("["+e.CONTENT_ATTR.TYPE+'="'+e.CONTENT_TYPE.COMMENTS+'"]'),y=function(){for(var t=[],e=document.querySelector("head").children,n=0;n

    '.concat(o,"

    "):"",A="".concat(o,"\n").concat(y.join(""),'\n\n\n\n\n\n
    \n').concat(h,'\n
    ').concat(s.join(""),'
    \n
    ').concat(u.join(""),"
    \n
    \n\n");return a&&g(),f.clearContentTempAttr(document.body,[e.CONTENT_ATTR.DOM,e.CONTENT_ATTR.TYPE]),void setTimeout((function(){var r=document.createElement("wiz_tmp_tag"),o=document.createElement("iframe");o.id=e.CONTENT_ID.IFRAME,o.className=e.CONTENT_CLASS.IFRAME_ACTIVE,a?(o.style.margin="0",o.style.padding="0",o.style.position="fixed",o.style.top="0",o.style.right="0",o.style.left="0",o.style.bottom="0",o.style.width="100%",o.style.height="100%",o.style.zIndex="2147483647",o.style.border="none",o.style.transition=T,o.style["max-height"]="0",o.style.background="silver"):o.style.display="none",r.appendChild(o),document.body.appendChild(r);var i=o.contentWindow.document;i.open("text/html","replace"),i.write(A),i.close(),setTimeout((function(){m&&(o.style["max-height"]="100%")}),750),t.iframe=o,t.iframeDoc=i,t.iframeWin=o.contentWindow,n&&n(t)}),0);function b(t,n){if(t&&"string"!=typeof t)for(var r=t,o="show";t&&t!==document.body;){if(t!==r&&"show"===t.getAttribute(e.CONTENT_ATTR.DOM)){r.removeAttribute(e.CONTENT_ATTR.DOM),r.removeAttribute(e.CONTENT_ATTR.TYPE);break}t.setAttribute(e.CONTENT_ATTR.DOM,o),"show"===o&&t.setAttribute(e.CONTENT_ATTR.TYPE,n),o="parent",t=t.parentNode}}},splitBody:function(t){for(var n,r,o,i,a,l=0,d=null,s=!1,u=!1,c=0,m=[],T=0,g=t.countList.length;T=a)o=null,c=0;else if(s&&(r=e.MAX_PARENT_END_COUNT||y===p-1){if(s=!1,o=o||y-1,c=0,d&&d.rootParent!==document.body)for(var h=l-1;h>d.end&&h>l-30;h--){var A=t.domList[h],b=t.domOptionsList[h];if(A===d.rootParent||b.isBorder)break;if(f.isTag(A,["h1","h2","h3"])){l=h;break}}i={start:l,end:o,startDom:t.domList[l],endDom:t.domList[o],totalCount:0,totalSum:0,rateCount:0,rateSum:0,rootParent:null},f.log("bodyEnd "+l+" to "+o),i.rootParent=f.getParentRoot([i.startDom,i.endDom]),t.bodyArea.push(i),d=i}m.push(t.countList[y])}},sumArea:function(t,e){for(var n=t.start;n<=t.end;n++)t.totalCount+=e.countList[n],e.countList[n]>0&&(t.totalSum+=e.sumList[n]);t.rateCount=(t.totalCount/e.totalCount*100).toFixed(2),t.rateSum=(t.totalSum/e.totalSum*100).toFixed(2)},sumCount:function(t,n){var r=t-2<0?0:t-2,o=t+2>n.countList.length-1?n.countList.length-1:t+2,i=0;i+=n.countList[t];for(var a=t-1;a>=r&&!(n.countList[a]>e.MAX_AREA_COUNT);a--)i+=n.countList[a];for(var l=t+1;l<=o&&!(n.countList[l]>e.MAX_AREA_COUNT);l++)i+=n.countList[l];return n.countList[t]>0&&(n.totalSum+=i),i}},g=function(){document.body.style.overflow="hidden",document.body.style.marginRight="calc(100vw - 100%)";var t=document.body.parentElement;t.style.overflow="hidden",t.style.height="100%",t.style.width="100%"},y=function(){document.body.style.overflow=null,document.body.style.marginRight=null;var t=document.body.parentElement;t.style.overflow=null,t.style.height=null,t.style.width=null},p={result:null,init:function(t,e){return r=t||"",o=!!e,p},destory:function(){m=!1;var t=document.getElementById(e.CONTENT_ID.IFRAME);if(t){var n=t.parentNode;n.parentNode.removeChild(n),setTimeout((function(){y()}),200)}return p.result=null,p},on:function(t,n){m=!0;var r=document.getElementById(e.CONTENT_ID.IFRAME);if(r)return g(),setTimeout((function(){r.style["max-height"]="100%"}),100),n&&n(p.result),p;var o={article:{title:null,bodyAreaIndex:[]},avgSum:0,bodyArea:[],comments:{itemList:[]},contentType:null,countList:[],domList:[],domOptionsList:[],sumList:[],textList:[],notEmptyDomCount:0,totalCount:0,totalSum:0,iframeDoc:null,iframeWin:null};return i=!t||t.needContentExtraction,a=!t||t.needShow,l=t&&t.borderColor||e.BORDER_COLOR,d=t&&t.htmlBgColor||e.HTML_BG_COLOR,s=t&&t.bodyBgColor||e.BODY_BG_COLOR,u=t&&t.stylePatch||"",c=e.CONTENT_STYLE.replace(/\{borderColor\}/gi,l).replace(/\{htmlBgColor\}/gi,d).replace(/\{bodyBgColor\}/gi,s)+u,i&&(f.count(document.body,o,{isAD:!1,isBorder:!1,depth:0}),f.splitBody(o),f.mergeBodyArea(o),f.checkContentType(o)),f.showContent(o,n),p.result=o,f.log(o),p},off:function(){m=!1;var t=document.getElementById(e.CONTENT_ID.IFRAME);return t&&(t.style["max-height"]="0",t.className="",setTimeout((function(){y()}),200)),p}};window.WizContent=p}()}}); \ No newline at end of file +!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=565)}({565:function(t,e){!function(){var t=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;"wiz".trim||(String.prototype.trim=function(){return this.replace(t,"")});var e={OTHER_ATTR:{WIZ_SPAN:"data-wiz-span",MATHJAX:"data-mathml"},OTHER_CLASS:{CODE_MIRROR:"wiz-code-container",WIZ_BODY:"wiz-editor-body",WIZ_TABLE_BODY:"wiz-table-body",WIZ_TABLE_CONTAINER:"wiz-table-container"},WIZ_EDITOR_ID:{},BORDER_COLOR:"#F0F2F4",HTML_BG_COLOR:"#E8E8E8",BODY_BG_COLOR:"#FFFFFF",CONTENT_STYLE:"\n * {box-sizing: border-box;}\n html {\n height:100%; \n background-color:{htmlBgColor} !important;\n /*margin-left: calc(100vw - 100%) !important;*/\n }\n body, .wiz-editor-body {\n max-width:100%;\n }\n body, .wiz-editor-body, .markdown-body {\n background-color:{bodyBgColor} !important;\n border:1px solid {borderColor} !important;\n max-width:820px !important;\n min-height:initial !important;\n min-height:calc(100% - 80px) !important;\n margin:0px auto !important;\n padding:16px !important;\n }\n\n @media screen and (min-width: 821px) {\n body, .wiz-editor-body, .markdown-body {\n margin:40px auto !important;\n padding:48px 75px !important;\n }\n }\n\n /*h1, h2, h3, h4, h5, h6 {\n font-weight: 600;\n line-height: 1.25;\n margin-top: 1em;\n margin-bottom:.5em;\n }*/\n \n /*p, div {margin: 0 0 24px;}*/\n /*li p, li div {margin-bottom: 8px;}*/\n /*wiz_code_mirror p, wiz_code_mirror div {margin-bottom:0;}*/\n \n a, a:visited, a:active {color: #448aff;}\n th, td {\n min-width: 50px;\n }\n tr ol, tr ul {\n margin: 0;\n -webkit-padding-start: 15px;\n }\n pre {\n background-color:#fafbfc;\n border:1px solid #e1e4e8;\n font-size:13px;\n padding:8px;\n white-space: pre-wrap;\n }\n \n .wiz-title, .wiz-article, wiz-comment {\n margin:0;\n word-break: break-word;\n }\n \n .wiz-title {\n border-bottom: 1px solid #e9e9e9;\n margin-bottom:20px;\n }\n .wiz-title h1 {\n /* font-size: 28px; */\n }\n \n .wiz-article {\n /* color:#2f2f2f;\n font-size: 16px;\n font-weight: 400;\n line-height: 1.7; */\n }\n \n .wiz-comment {\n /* color:#2f2f2f;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.7; */\n } \n \n svg, img {\n max-width:100%;\n } \n ",CONTENT_PATCH_STYLE:"\n /* body {visibility: hidden;} */\n ",CONTENT_ID:{STYLE:"wiz-content-read-model-style",IFRAME:"wiz-content-iframe-viewer"},CONTENT_CLASS:{IFRAME_ACTIVE:"wiz-content-active"},CONTENT_ATTR:{DOM:"data-wiz-content-read-dom",TYPE:"data-wiz-content-read-type",TMP_REMOVE_FLAG:"data-wiz-content-remove",TMP_STYLE_FLAG:"data-wiz-content-style",TMP_IMG_INSERT_BR:"data-wiz-img-insert-br"},CONTENT_TYPE:{ARTICLE:"article",COMMENTS:"comments"},MAX_AREA_COUNT:180,MAX_DEPTH:20,MAX_PARENT_END_COUNT:5,MIN_AREA_COUNT:80,MIN_HEIGHT_IMG:100,MIN_WIDTH_IMG:500,MIN_WIDTH_RATE_IMG:.6},n=["iframe","frameset","script","noscript","link","style","input","button","select"],r="",o=!1,i=!0,a=!0,l="",d="",s="",u="",c="",m=!1,T="".concat("max-height"," 800ms cubic-bezier(0.52, 0.03, 0.42, 0.99)"),f={appendCount:function(t){var n=t.dom,r=t.text||"",o=t.result,i=t.isParentEnd,a=t.isAD,l=t.isBorder;f.isEmpty(r)&&(r="");var d=r.length,s=[];if(1===n.nodeType&&!i){s=f.isTag(n,["img"])?[n]:n.querySelectorAll("img");for(var u=0;ue.MIN_HEIGHT_IMG*e.MIN_WIDTH_IMG||g>e.MIN_HEIGHT_IMG&&y>=e.MIN_WIDTH_RATE_IMG)!0,d+=Math.min(Math.floor(T*g/900),e.MAX_AREA_COUNT),r+=m}}!function(t,e,n,i,a){var l=a.isAD,d=a.isBorder;o.domList.push(t),o.domOptionsList.push({text:e,isParentEnd:i,isAD:l,isBorder:d});var s=0,u=[],c=0;if(1===t.nodeType&&n>0){s=0,u=t.querySelectorAll("a");for(var m={},T=0,g=0,y=0;y0&&g/T>.5||c>=.75*n?s=1:c>=.4*n&&(s=.5),n*=1-s}!l&&n>0&&r.length>0&&o.notEmptyDomCount++;l&&(n/=10);d&&(n/=3);o.countList.push(n),o.totalCount+=n}(n,r,d,i,{isAD:a,isBorder:l})},count:function(t,r,o){var i,a,l=!0,d=!1,s=o.isAD||f.isAD(t),u=o.isBorder||f.isBorder(t),c=o.depth||0;if((1===t.nodeType||3===t.nodeType)&&!f.isTag(t,n)&&f.isVisibleDom(t))if(3===t.nodeType?(a=f.getText(t),l=!1):c>=e.MAX_DEPTH&&(a=f.getText(t),l=!1),l&&!s){for(var m=0,T=(i=t.childNodes||[]).length;mg&&2*i>y&&(s=r,u=p)),r.rateSum>40||r.rateCount>40){if(s&&(s.rateSum>40||s.rateCount>40))continue;s=r,u=p}if(t.bodyArea.length<3&&s)return f.log("总个数少于 3,且找到 文章区域,直接设置为文章模式"),R(u,s),void P();for(var h=0;h=3&&w(N[0],N[1])){d=N[1],m=n.index,T=!0;break}}if(T&&s&&u>m&&(f.log("如果评论在 正文之前,则正文很可能是内容更多的其他内容,只能当作辅助正文"),s=null,u=null),T&&s&&s.rootParent.className.trim()!==n)f.log("如果有评论,且文章区域的 className 与 评论区域 的 className 不一致,则设置为文章,并且保留评论内容"),R(u,s);else if(!T&&s){if(f.log("bodyArea >= 3 && 没有评论 && 存在文章区域"),R(u,s),u+110||C.rateCount>10)&&C.start-s.end<20&&t.article.bodyAreaIndex.push(v)}}else if(T&&!s){f.log("如果有评论,且无明确的正文区域");for(var O=0;O10||r.rateSum>10)&&(f.log("评论后面的内容只能当作评论"),t.comments.itemList.push(r.rootParent)))}else T||s||f.log("无评论,且无明确的正文区域");P()}function P(){if(0!==t.article.bodyAreaIndex.length)for(var e=0;e3||c>3){a=[];break}if(d=g,s=y,o){if(f.isParent(T,o))continue;o=null}if(o=f.checkPathIsSame(l[m+1].parentNode,T.parentNode)){i=I(o,n,r);for(var p=0;p5&&f.isVisibleDom(d)&&(r=d)}!n&&r&&(n=r),n&&(e.article.title=n)},clearAttr:function(t){if(!t.getAttribute(e.OTHER_ATTR.WIZ_SPAN)){var n,r,o,i=t.attributes,a=f.isTag(t,["td","tr","table"]);a&&(n=t.style.width,r=t.style.height,o=t.style.backgroundColor);for(var l=i.length-1;l>=0;l--){var d=i[l];/^(on|style)/gi.test(d.name)&&t.removeAttribute(d.name)}a&&(n&&(t.style.width=n),r&&(t.style.height=r),o&&(t.style.backgroundColor=o));var s=t.getAttribute(e.CONTENT_ATTR.TMP_STYLE_FLAG);if(s&&t.setAttribute("style",s),t.getAttribute(e.CONTENT_ATTR.TMP_IMG_INSERT_BR)){var u=t.parentNode;u.insertBefore(document.createElement("br"),t),u.insertBefore(document.createElement("br"),t.nextSibling)}}},clearContentTempAttr:function(t,e){for(var n=0;n=0;i--){o[i].removeAttribute(r)}},traversalElement:function(t,n){if(!f.hasClass(t,e.OTHER_CLASS.CODE_MIRROR)&&!t.getAttribute(e.OTHER_ATTR.MATHJAX)){var r=f.isAD(t);if(n(t,r),!r&&!f.isTag(t,["wiz_tmp_tag"]))for(var o=t.children,i=o.length-1;i>=0;i--)f.traversalElement(o[i],n)}},getContentHtml:function(t){if(f.isTag(t,["tbody","thead"])&&(t=t.parentNode),f.isTag(t,["table"])){var n=t.parentNode.parentNode;f.hasClass(n,e.OTHER_CLASS.WIZ_TABLE_CONTAINER)&&(t=n)}var r;f.traversalElement(t,(function(t,n){n||!f.isTag(t,["br","style","link"])&&!f.isVisibleDom(t)?t.setAttribute(e.CONTENT_ATTR.TMP_REMOVE_FLAG,"true"):f.isTag(t,["img"])&&(t.setAttribute(e.CONTENT_ATTR.TMP_STYLE_FLAG,"display:block;"),t.setAttribute(e.CONTENT_ATTR.TMP_IMG_INSERT_BR,"1"))}));for(var o=t.cloneNode(!0),i=(r=o.querySelectorAll("iframe")).length-1;i>=0;i--)f.removeDom(r[i]);for(var a=(r=o.querySelectorAll("script")).length-1;a>=0;a--)f.removeDom(r[a]);for(var l=(r=o.querySelectorAll("[".concat(e.CONTENT_ATTR.TMP_REMOVE_FLAG,"]"))).length-1;l>=0;l--)f.removeDom(r[l]);return f.traversalElement(o,(function(t){if(f.isTag(t,["style","link","video","audio"]))f.removeDom(t);else if(1===t.childNodes.length&&!function(t){return!!f.getParentByFilter(t,(function(t){return f.isTag(t,["pre"])}),!1)}(t)&&f.isTag(t.firstChild,["br"])){t.isEmpty=!0;var e=t.nextSibling;e&&e.isEmpty&&t.parentNode.removeChild(t)}else f.clearAttr(t)})),f.clearAttr(o),f.clearContentTempAttr(t,[e.CONTENT_ATTR.TMP_REMOVE_FLAG,e.CONTENT_ATTR.TMP_STYLE_FLAG,e.CONTENT_ATTR.TMP_IMG_INSERT_BR]),o.outerHTML},getParentByClass:function(t,e,n){return f.getParentByFilter(t,(function(t){return f.hasClass(t,e)}),n)},getParentByFilter:function(t,e,n){if(t&&t!==document.body)for(t=n?t:t.parentNode;t;){if(!e||e(t))return t;if(t===document.body)return null;t=t.parentNode}return null},getParentRoot:function(t){if(!t||0===t.length)return null;var e,n,r=[];for(n=1===t[0].nodeType?t[0]:t[0].parentNode;n&&n!==document.body;)r.push(n),n=n.parentNode;for(var o=1,i=t.length;o-1){r.splice(0,e);break}n=n.parentNode}return 0===r.length?document.body:r[0]},getText:function(t){return 3===t.nodeType?t.nodeValue:"string"==typeof t.innerText?t.innerText:t.textContent},hasClass:function(t,e){return!(!t||1!==t.nodeType)&&(" "+t.className+" ").indexOf(" "+e+" ")>-1},insertStyle:function(t,e){var n=document.createElement("style");return t.name&&n.setAttribute("name",t.name),t.id&&(n.setAttribute("id",t.id),f.removeStyleById(t.id)),document.getElementsByTagName("HEAD")[0].insertBefore(n,null),n.innerHTML=e,n},isAD:function(t){if(!t||1!==t.nodeType)return!1;var e=(t.className||"")+","+(t.id||"");return/(^ad[^a-zA-Z])|([^a-zA-Z]ad$)/gi.test(e)},isBorder:function(t){if(!t||!t.parentNode)return!1;var e=(t.className||"")+","+(t.id||"");return/(^|[^a-zA-Z])(sidebar|bottom|footer|navbar|feed)([^a-zA-Z]|$)/gi.test(e)},isBlock:function(t){if(!t||1!==t.nodeType)return!1;if(f.isTag(t,["p"]))return!1;if(f.isTag(t,["div","ul","ol","li"]))return!0;if(f.isTag(t,["tr","td"])&&!t.querySelector("table")&&!t.querySelector("div"))return!1;var e=window.getComputedStyle(t,null).display;return!!e&&!/^(inline|inline-block|inline-table)$/i.test(e)},isEmpty:function(t){var e=new RegExp("[\r\n​\\s]*","ig");return 0===t.replace(e,"").length},isParent:function(t,e){if(!t||!e)return!1;for(var n=t.parentNode;n&&n!==document.body;){if(e===n)return!0;n=n.parentNode}return!1},isTag:function(t,e){if(!t||1!==t.nodeType)return!1;for(var n=t.tagName.toLowerCase(),r=0,o=e.length;r0;if(n&&f.isBlock(t)){var r=parseInt(e.width,10),o=parseInt(e.height,10);if(!r||!o){var i=t.getBoundingClientRect();r=i.width,o=i.height}n=!(0===r&&0===o)}return n},log:function(t){o&&console.trace(t)},mergeBodyArea:function(t){for(var e,n=t.bodyArea.length-1;n>=0;n--){t.bodyArea[n].rootParent===document.body&&t.bodyArea.splice(n,1)}for(var r=0;r0&&(e=t.bodyArea[r-1],o.rootParent===e.rootParent||f.isParent(o.rootParent,e.rootParent)?(f.log("整合具有相同 rootParent 的区间"),i=!0):f.isParent(e.rootParent,o.rootParent)&&o.start-e.end<20?(f.log("后面合并前面的时候,如果相隔距离太远不进行处理"),i=!0,e.rootParent=o.rootParent):o.start-e.end<3||o.rootParent.previousElementSibling===e.rootParent?(f.log("后面合并前面的时候,如果相隔距离极其接近 < 3 或 两者的父容器并排,不考虑父容器是否相关(尝试)"),i=!0,e.rootParent=f.getParentRoot([e.rootParent,o.rootParent]),o.rootParent=e.rootParent):i=!1,i);)f.log(["merge.... (",e.start,", ",e.end,") - (",o.start,", ",o.end,")"].join("")),e.end=o.end,e.endDom=o.endDom,e.totalCount=0,e.totalSum=0,o=e,t.bodyArea.splice(r,1),r--;f.sumArea(o,t)}},removeDom:function(t){t&&1===t.nodeType&&t.parentNode.removeChild(t)},removeStyleById:function(t){var e=document.getElementById(t);e&&f.isTag(e,["style","link"])&&f.removeDom(e)},resumePage:function(){f.removeStyleById(e.CONTENT_ID.STYLE);for(var t=document.querySelectorAll("[".concat(e.CONTENT_ATTR.DOM,"]")),n=t.length-1;n>=0;n--)t[n].removeAttribute(e.CONTENT_ATTR.DOM),t[n].removeAttribute(e.CONTENT_ATTR.TYPE)},showContent:function(t,n){var o="";if(t.contentType){if(b(t.article.title,"title"),t.contentType===e.CONTENT_TYPE.ARTICLE)for(var l=0;l=0;d--)b(t.comments.itemList[d],e.CONTENT_TYPE.COMMENTS);o=(o="string"==typeof(o=t.article.title||"")?o.replace(//g,">"):o.innerText).replace(/^(\s| )*/,"")}else i?f.log("此页面 不适合进行内容提取"):f.log("将整篇内容进行展示"),document.body.setAttribute(e.CONTENT_ATTR.TYPE,e.CONTENT_TYPE.ARTICLE);var s=p("["+e.CONTENT_ATTR.TYPE+'="'+e.CONTENT_TYPE.ARTICLE+'"]'),u=p("["+e.CONTENT_ATTR.TYPE+'="'+e.CONTENT_TYPE.COMMENTS+'"]'),y=function(){for(var t=[],e=document.querySelector("head").children,n=0;n

    '.concat(o,"

    "):"",A="".concat(o,"\n").concat(y.join(""),'\n\n\n\n\n\n
    \n').concat(h,'\n
    ').concat(s.join(""),'
    \n
    ').concat(u.join(""),"
    \n
    \n\n");return a&&g(),f.clearContentTempAttr(document.body,[e.CONTENT_ATTR.DOM,e.CONTENT_ATTR.TYPE]),void setTimeout((function(){var r=document.createElement("wiz_tmp_tag"),o=document.createElement("iframe");o.id=e.CONTENT_ID.IFRAME,o.className=e.CONTENT_CLASS.IFRAME_ACTIVE,a?(o.style.margin="0",o.style.padding="0",o.style.position="fixed",o.style.top="0",o.style.right="0",o.style.left="0",o.style.bottom="0",o.style.width="100%",o.style.height="100%",o.style.zIndex="2147483647",o.style.border="none",o.style.transition=T,o.style["max-height"]="0",o.style.background="silver"):o.style.display="none",r.appendChild(o),document.body.appendChild(r);var i=o.contentWindow.document;i.open("text/html","replace"),i.write(A),i.close(),setTimeout((function(){m&&(o.style["max-height"]="100%")}),750),t.iframe=o,t.iframeDoc=i,t.iframeWin=o.contentWindow,n&&n(t)}),0);function b(t,n){if(t&&"string"!=typeof t)for(var r=t,o="show";t&&t!==document.body;){if(t!==r&&"show"===t.getAttribute(e.CONTENT_ATTR.DOM)){r.removeAttribute(e.CONTENT_ATTR.DOM),r.removeAttribute(e.CONTENT_ATTR.TYPE);break}t.setAttribute(e.CONTENT_ATTR.DOM,o),"show"===o&&t.setAttribute(e.CONTENT_ATTR.TYPE,n),o="parent",t=t.parentNode}}},splitBody:function(t){for(var n,r,o,i,a,l=0,d=null,s=!1,u=!1,c=0,m=[],T=0,g=t.countList.length;T=a)o=null,c=0;else if(s&&(r=e.MAX_PARENT_END_COUNT||y===p-1){if(s=!1,o=o||y-1,c=0,d&&d.rootParent!==document.body)for(var h=l-1;h>d.end&&h>l-30;h--){var A=t.domList[h],b=t.domOptionsList[h];if(A===d.rootParent||b.isBorder)break;if(f.isTag(A,["h1","h2","h3"])){l=h;break}}i={start:l,end:o,startDom:t.domList[l],endDom:t.domList[o],totalCount:0,totalSum:0,rateCount:0,rateSum:0,rootParent:null},f.log("bodyEnd "+l+" to "+o),i.rootParent=f.getParentRoot([i.startDom,i.endDom]),t.bodyArea.push(i),d=i}m.push(t.countList[y])}},sumArea:function(t,e){for(var n=t.start;n<=t.end;n++)t.totalCount+=e.countList[n],e.countList[n]>0&&(t.totalSum+=e.sumList[n]);t.rateCount=(t.totalCount/e.totalCount*100).toFixed(2),t.rateSum=(t.totalSum/e.totalSum*100).toFixed(2)},sumCount:function(t,n){var r=t-2<0?0:t-2,o=t+2>n.countList.length-1?n.countList.length-1:t+2,i=0;i+=n.countList[t];for(var a=t-1;a>=r&&!(n.countList[a]>e.MAX_AREA_COUNT);a--)i+=n.countList[a];for(var l=t+1;l<=o&&!(n.countList[l]>e.MAX_AREA_COUNT);l++)i+=n.countList[l];return n.countList[t]>0&&(n.totalSum+=i),i}},g=function(){document.body.style.overflow="hidden",document.body.style.marginRight="calc(100vw - 100%)";var t=document.body.parentElement;t.style.overflow="hidden",t.style.height="100%",t.style.width="100%"},y=function(){document.body.style.overflow=null,document.body.style.marginRight=null;var t=document.body.parentElement;t.style.overflow=null,t.style.height=null,t.style.width=null},p={result:null,init:function(t,e){return r=t||"",o=!!e,p},destory:function(){m=!1;var t=document.getElementById(e.CONTENT_ID.IFRAME);if(t){var n=t.parentNode;n.parentNode.removeChild(n),setTimeout((function(){y()}),200)}return p.result=null,p},on:function(t,n){m=!0;var r=document.getElementById(e.CONTENT_ID.IFRAME);if(r)return g(),setTimeout((function(){r.style["max-height"]="100%"}),100),n&&n(p.result),p;var o={article:{title:null,bodyAreaIndex:[]},avgSum:0,bodyArea:[],comments:{itemList:[]},contentType:null,countList:[],domList:[],domOptionsList:[],sumList:[],textList:[],notEmptyDomCount:0,totalCount:0,totalSum:0,iframeDoc:null,iframeWin:null};return i=!t||t.needContentExtraction,a=!t||t.needShow,l=t&&t.borderColor||e.BORDER_COLOR,d=t&&t.htmlBgColor||e.HTML_BG_COLOR,s=t&&t.bodyBgColor||e.BODY_BG_COLOR,u=t&&t.stylePatch||"",c=e.CONTENT_STYLE.replace(/\{borderColor\}/gi,l).replace(/\{htmlBgColor\}/gi,d).replace(/\{bodyBgColor\}/gi,s)+u,i&&(f.count(document.body,o,{isAD:!1,isBorder:!1,depth:0}),f.splitBody(o),f.mergeBodyArea(o),f.checkContentType(o)),f.showContent(o,n),p.result=o,f.log(o),p},off:function(){m=!1;var t=document.getElementById(e.CONTENT_ID.IFRAME);return t&&(t.style["max-height"]="0",t.className="",setTimeout((function(){y()}),200)),p}};window.WizContent=p}()}}); \ No newline at end of file diff --git a/share/files/wizeditor/dependency/github2.css b/share/files/wizeditor/dependency/github2.css old mode 100755 new mode 100644 index 22349a6d1..175e20ea5 --- a/share/files/wizeditor/dependency/github2.css +++ b/share/files/wizeditor/dependency/github2.css @@ -1,6 +1,6 @@ .markdown-body { margin: 0 auto; - padding: 20px 48px; + /* padding: 20px 48px; */ } .markdown-body.mobile { @@ -534,7 +534,7 @@ @media screen and (max-width: 660px) { .markdown-body { - padding: 20px 18px; + padding: 20px 16px; } } @@ -545,12 +545,12 @@ only screen and (max-device-width: 1024px), only screen and (-webkit-min-device-pixel-ratio: 3), only screen and (-o-min-device-pixel-ratio: 3), only screen and (min-device-pixel-ratio: 3) { - .markdown-body { + /* .markdown-body { padding: 12px 15px; } .markdown-body ul, .markdown-body ol { padding-left: 40px; - } + } */ .markdown-body blockquote { border-left: 4px solid #c8d4e8; diff --git a/share/files/wizeditor/dependency/minder/kityminder.core.min.js b/share/files/wizeditor/dependency/minder/kityminder.core.min.js index d0902a7ec..2b7494092 100644 --- a/share/files/wizeditor/dependency/minder/kityminder.core.min.js +++ b/share/files/wizeditor/dependency/minder/kityminder.core.min.js @@ -1,10 +1,10 @@ /*! * ==================================================== - * Kity Minder Core - v1.4.50.6 - 2020-05-19 + * Kity Minder Core - v1.4.50.7 - 2020-05-29 * https://github.com/fex-team/kityminder-core * GitHub: https://github.com/fex-team/kityminder-core.git * Copyright (c) 2020 Baidu FEX; Licensed BSD-3-Clause * ==================================================== */ -!function(){function a(a){b.r([c[a]])}var b={r:function(a){if(b[a].inited)return b[a].value;if("function"!=typeof b[a].value)return b[a].inited=!0,b[a].value;var c={exports:{}},d=b[a].value(null,c.exports,c);if(b[a].inited=!0,b[a].value=d,void 0!==d)return d;for(var e in c.exports)if(c.exports.hasOwnProperty(e))return b[a].inited=!0,b[a].value=c.exports,c.exports}};b[0]={value:function(a,c,d){var e=b.r(17),f=b.r(11),g=(new e.Marker).pipe(function(){var a=7,b=new e.Circle(a-1);this.addShape(b),this.setRef(a-1,0).setViewBox(-a,-a,a+a,a+a).setWidth(a).setHeight(a),this.dot=b,this.node.setAttribute("markerUnits","userSpaceOnUse")});f.register("arc",function(a,b,c,d,f){var h,i,j,k=a.getLayoutBox(),l=b.getLayoutBox(),m=Math.abs,n=[],o=k.x>l.x?"right":"left";a.getMinder().getPaper().addResource(g),h=new e.Point(l.cx,l.cy),i="left"==o?new e.Point(k.right+2,k.cy):new e.Point(k.left-2,k.cy),j=e.Vector.fromPoints(h,i),n.push("M",h),n.push("A",m(j.x),m(j.y),0,0,j.x*j.y>0?0:1,i),c.setMarker(g),g.dot.fill(f),c.setPathData(n)})}},b[1]={value:function(a,c,d){var e=b.r(17),f=b.r(11),g=(new e.Marker).pipe(function(){var a=7,b=new e.Circle(a-1);this.addShape(b),this.setRef(a-1,0).setViewBox(-a,-a,a+a,a+a).setWidth(a).setHeight(a),this.dot=b,this.node.setAttribute("markerUnits","userSpaceOnUse")});f.register("arc_tp",function(a,b,c,d,f){var h=a.getLayoutBox(),i=b.getLayoutBox(),j=a.getIndex(),k=b.getChildren()[j+1];a.getIndex()>0&&(i=b.getChildren()[j-1].getLayoutBox());var l,m,n=(Math.abs,[]);h.x,i.x;a.getMinder().getPaper().addResource(g),l=new e.Point(i.cx,i.cy),m=new e.Point(h.cx,h.cy);var o=Math.sqrt(Math.pow(l.x-m.x,2)+Math.pow(l.y-m.y,2));if(o=0==a.getIndex()?.4*o:o,e.Vector.fromPoints(l,m),n.push("M",l),n.push("A",o,o,0,0,1,m),c.setMarker(g),g.dot.fill(f),c.setPathData(n),k&&k.getConnection()){var p=k.getConnection(),q=k.getLayoutBox(),r=new e.Point(q.cx,q.cy),s=Math.sqrt(Math.pow(m.x-r.x,2)+Math.pow(m.y-r.y,2));n=[],n.push("M",m),n.push("A",s,s,0,0,1,r),p.setMarker(g),g.dot.fill(f),p.setPathData(n)}})}},b[2]={value:function(a,c,d){b.r(17);b.r(11).register("bezier",function(a,b,c){var d=b.getLayoutVertexOut(),e=a.getLayoutVertexIn(),f=b.getLayoutVectorOut().normalize(),g=Math.round,h=Math.abs,i=[];if(i.push("M",g(d.x),g(d.y)),h(f.x)>h(f.y)){var j=(e.x+d.x)/2;i.push("C",j,d.y,j,e.y,e.x,e.y)}else{var k=(e.y+d.y)/2;i.push("C",d.x,k,e.x,k,e.x,e.y)}c.setMarker(null),c.setPathData(i)})}},b[3]={value:function(a,c,d){b.r(17);b.r(11).register("fish-bone-master",function(a,b,c){var d=b.getLayoutVertexOut(),e=a.getLayoutVertexIn(),f=Math.abs,g=f(d.y-e.y),h=f(d.x-e.x),i=[];i.push("M",d.x,d.y),i.push("h",h-g),i.push("L",e.x,e.y),c.setMarker(null),c.setPathData(i)})}},b[4]={value:function(a,c,d){b.r(17);b.r(11).register("l",function(a,b,c){var d=b.getLayoutVertexOut(),e=a.getLayoutVertexIn(),f=b.getLayoutVectorOut(),g=[],h=Math.round,i=Math.abs;g.push("M",d.round()),i(f.x)>i(f.y)?g.push("H",h(e.x)):g.push("V",e.y),g.push("L",e),c.setPathData(g)})}},b[5]={value:function(a,c,d){b.r(17);b.r(11).register("poly",function(a,b,c,d){var e=b.getLayoutVertexOut(),f=a.getLayoutVertexIn(),g=b.getLayoutVectorOut().normalize(),h=Math.round,i=Math.abs,j=[];switch(j.push("M",h(e.x),h(e.y)),!0){case i(g.x)>i(g.y)&&g.x<0:j.push("h",-b.getStyle("margin-left")),j.push("v",f.y-e.y),j.push("H",f.x);break;case i(g.x)>i(g.y)&&g.x>=0:j.push("h",b.getStyle("margin-right")),j.push("v",f.y-e.y),j.push("H",f.x);break;case i(g.x)<=i(g.y)&&g.y<0:j.push("v",-b.getStyle("margin-top")),j.push("h",f.x-e.x),j.push("V",f.y);break;case i(g.x)<=i(g.y)&&g.y>=0:j.push("v",b.getStyle("margin-bottom")),j.push("h",f.x-e.x),j.push("V",f.y)}c.setMarker(null),c.setPathData(j)})}},b[6]={value:function(a,c,d){var e=b.r(17);b.r(11).register("under",function(a,b,c,d,f){var g,h,i,j,k=a.getLayoutBox(),l=b.getLayoutBox(),m=(Math.abs,[]),n=k.x>l.x?"right":"left",o=(a.getStyle("connect-radius"),k.bottom+3),p="sub"==b.getType()?l.bottom+3:l.cy;"right"==n?(g=new e.Point(l.right,p),h=new e.Point(k.left-10,o),i=new e.Point(k.right,o)):(g=new e.Point(l.left,p),h=new e.Point(k.right+10,o),i=new e.Point(k.left,o)),j=(g.x+h.x)/2,m.push("M",g),m.push("C",j,g.y,j,h.y,h),m.push("L",i),c.setMarker(null),c.setPathData(m)})}},b[7]={value:function(a,c,d){var e=b.r(17),f=b.r(19);if(-1!=location.href.indexOf("boxv")){var g;Object.defineProperty(e.Box.prototype,"visualization",{get:function(){return g?g.setBox(this):null}}),f.registerInitHook(function(){this.on("paperrender",function(){g=new e.Rect,g.fill("rgba(200, 200, 200, .5)"),g.stroke("orange"),this.getRenderContainer().addShape(g)})})}}},b[8]={value:function(a,c,d){var e=b.r(19),f={enableAnimation:!0,layoutAnimationDuration:300,viewAnimationDuration:100,zoomAnimationDuration:300},g={};e.registerInitHook(function(){this.setDefaultOptions(f),this.getOption("enableAnimation")||this.disableAnimation()}),e.prototype.enableAnimation=function(){for(var a in f)f.hasOwnProperty(a)&&this.setOption(g[a])},e.prototype.disableAnimation=function(){for(var a in f)f.hasOwnProperty(a)&&(g[a]=this.getOption(a),this.setOption(a,0))}}},b[9]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19)),g=(b.r(21),b.r(13)),h=0,i=e.createClass("Command",{constructor:function(){this._isContentChange=!0,this._isSelectionChange=!1},execute:function(a,b){throw new Error("Not Implement: Command.execute()")},setContentChanged:function(a){this._isContentChange=!!a},isContentChanged:function(){return this._isContentChange},setSelectionChanged:function(a){this._isSelectionChange=!!a},isSelectionChanged:function(){return this._isContentChange},queryState:function(a){return h},queryValue:function(a){return 0},isNeedUndo:function(){return!0}});i.STATE_NORMAL=h,i.STATE_ACTIVE=1,i.STATE_DISABLED=-1,e.extendClass(f,{_getCommand:function(a){return this._commands[a.toLowerCase()]},_queryCommand:function(a,b,c){var d=this._getCommand(a);if(d){var e=d["query"+b];if(e)return e.apply(d,[this].concat(c))}return 0},queryCommandState:function(a){return this._queryCommand(a,"State",[].slice.call(arguments,1))},queryCommandValue:function(a){return this._queryCommand(a,"Value",[].slice.call(arguments,1))},execCommand:function(a){if(!a)return null;a=a.toLowerCase();var b,c,d,e,f=[].slice.call(arguments,1),h=this;return b=this._getCommand(a),e={command:b,commandName:a.toLowerCase(),commandArgs:f},!(!b||!~this.queryCommandState(a))&&(this._hasEnterExecCommand?(d=b.execute.apply(b,[h].concat(f)),this._hasEnterExecCommand||this._interactChange()):(this._hasEnterExecCommand=!0,c=this._fire(new g("beforeExecCommand",e,!0)),c||(this._fire(new g("preExecCommand",e,!1)),d=b.execute.apply(b,[h].concat(f)),this._fire(new g("execCommand",e,!1)),b.isContentChanged()&&this._firePharse(new g("contentchange")),this._interactChange()),this._hasEnterExecCommand=!1),void 0===d?null:d)}}),d.exports=i}},b[10]={value:function(a,c,d){function e(a){switch(a.version||(a.root?"1.4.0":"1.1.3")){case"1.1.3":h(a);case"1.2.0":case"1.2.1":g(a);case"1.3.0":case"1.3.1":case"1.3.2":case"1.3.3":case"1.3.4":case"1.3.5":i(a)}return a}function f(a,b){b(a),a.children&&a.children.forEach(function(a){f(a,b)})}function g(a){f(a,function(a){var b=a.data;delete b.layout_bottom_offset,delete b.layout_default_offset,delete b.layout_filetree_offset})}function h(a){var b=a.data.currentstyle;delete a.data.currentstyle,"bottom"==b?(a.template="structure",a.theme="snow"):"default"==b&&(a.template="default",a.theme="classic"),f(a,function(a){var b=a.data;"PriorityIcon"in b&&(b.priority=b.PriorityIcon,delete b.PriorityIcon),"ProgressIcon"in b&&(b.progress=1+(b.ProgressIcon-1<<1),delete b.ProgressIcon),delete b.point,delete b.layout})}function i(a){a.root={data:a.data,children:a.children},delete a.data,delete a.children}b.r(33);return e}},b[11]={value:function(a,c,d){function e(a,b){k[a]=b}var f=b.r(17),g=b.r(33),h=b.r(20),i=b.r(19),j=b.r(21),k={};e("default",function(a,b,c){c.setPathData(["M",b.getLayoutVertexOut(),"L",a.getLayoutVertexIn()])}),f.extendClass(j,{getConnect:function(){return this.data.connect||"default"},getConnectProvider:function(){return k[this.getConnect()]||k.default},getConnection:function(){return this._connection||null}}),f.extendClass(i,{getConnectContainer:function(){return this._connectContainer},createConnect:function(a){if(!a.isRoot()){var b=new f.Path;a._connection=b,this._connectContainer.addShape(b),this.updateConnect(a)}},removeConnect:function(a){var b=this;a.traverse(function(a){b._connectContainer.removeShape(a._connection),a._connection=null})},updateConnect:function(a){var b=a._connection,c=a.parent;if(c&&b){if(c.isCollapsed())return void b.setVisible(!1);b.setVisible(!0);var d=a.getConnectProvider(),e=a.getStyle("connect-color")||"white",f=a.getStyle("connect-width")||2;b.stroke(e,f),d(a,c,b,f,e),f%2==0?b.setTranslate(.5,.5):b.setTranslate(0,0)}}}),h.register("Connect",{init:function(){this._connectContainer=(new f.Group).setId(g.uuid("minder_connect_group")),this.getRenderContainer().prependShape(this._connectContainer)},events:{nodeattach:function(a){this.createConnect(a.node)},nodedetach:function(a){this.removeConnect(a.node)},"layoutapply layoutfinish noderender":function(a){this.updateConnect(a.node)}}}),c.register=e}},b[12]={value:function(a,c,d){function e(a,b){l[a]=b;for(var c in l)l.hasOwnProperty(c)&&(l[c]=l[c],l[c].name=c)}function f(a){return void 0===a?l:l[a]||null}var g=b.r(17),h=(b.r(33),b.r(19)),i=(b.r(21),b.r(13)),j=b.r(10),k=b.r(25),l={};c.registerProtocol=e,c.getRegisterProtocol=f,g.extendClass(h,{setup:function(a){if("string"==typeof a&&(a=document.querySelector(a)),a){var b=a.getAttribute("minder-data-type");if(b in l){var c=a.textContent;a.textContent=null,this.renderTo(a),this.importData(b,c)}return this}},exportJson:function(){function a(b){var c={};c.data=b.getData();var d=b.getChildren();c.children=[];for(var e=0;e200&&(b=0),f(a,a.parent?a.parent.getGlobalLayoutTransform():new g.Matrix),this}}),d.exports=l}},b[19]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=[],h=e.createClass("Minder",{constructor:function(a){this._options=f.extend({},a);for(var b,c=g.slice();c.length;)"function"==typeof(b=c.shift())&&b.call(this,this._options);this.fire("finishInitHook")}});h.version="1.4.43",h.registerInitHook=function(a){g.push(a)},d.exports=h}},b[20]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(19),h={};c.register=function(a,b){h[a]=b},g.registerInitHook(function(){this._initModules()}),e.extendClass(g,{_initModules:function(){var a=h,b=this._options.modules||f.keys(a);this._commands={},this._query={},this._modules={},this._rendererClasses={};var c,d,e,g,i,j,k,l=this;for(c=0;c=0&&(b=this.children.splice(c,1)[0],b.parent=null,b.root=b)},clearChildren:function(){this.children=[]},getChild:function(a){return this.children[a]},getRenderContainer:function(){return this.rc},getCommonAncestor:function(a){return h.getCommonAncestor(this,a)},contains:function(a){return this==a||this.isAncestorOf(a)},clone:function(){var a=new h;return a.data=f.clone(this.data),this.children.forEach(function(b){a.appendChild(b.clone())}),a},compareTo:function(a){if(!f.comparePlainObject(this.data,a.data))return!1;if(!f.comparePlainObject(this.temp,a.temp))return!1;if(this.children.length!=a.children.length)return!1;for(var b=0;this.children[b];){if(!this.children[b].compareTo(a.children[b]))return!1;b++}return!0},getMinder:function(){return this.getRoot().minder}});h.getCommonAncestor=function(a,b){if(a instanceof Array)return h.getCommonAncestor.apply(this,a);switch(arguments.length){case 1:return a.parent||a;case 2:if(a.isAncestorOf(b))return a;if(b.isAncestorOf(a))return b;for(var c=a.parent;c&&!c.isAncestorOf(b);)c=c.parent;return c;default:return Array.prototype.reduce.call(arguments,function(a,b){return h.getCommonAncestor(a,b)},a)}},e.extendClass(g,{getRoot:function(){return this._root},setRoot:function(a){this._root=a,a.minder=this},getAllNode:function(){var a=[];return this.getRoot().traverse(function(b){a.push(b)}),a},getNodeById:function(a){return this.getNodesById([a])[0]},getNodesById:function(a){var b=this.getAllNode(),c=[];return b.forEach(function(b){-1!=a.indexOf(b.getData("id"))&&c.push(b)}),c},createNode:function(a,b,c){var d=new h(a);return this.fire("nodecreate",{node:d,parent:b,index:c}),this.appendNode(d,b,c),d},appendNode:function(a,b,c){return b&&b.insertChild(a,c),this.attachNode(a),this},removeNode:function(a){a.parent&&(a.parent.removeChild(a),this.detachNode(a),this.fire("noderemove",{node:a}))},attachNode:function(a){var b=this.getRenderContainer();a.traverse(function(a){a.attached=!0,b.addShape(a.getRenderContainer())}),b.addShape(a.getRenderContainer()),this.fire("nodeattach",{node:a})},detachNode:function(a){var b=this.getRenderContainer();a.traverse(function(a){a.attached=!1,b.removeShape(a.getRenderContainer())}),this.fire("nodedetach",{node:a})},getMinderTitle:function(){return this.getRoot().getText()}}),d.exports=h}},b[22]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(19);g.registerInitHook(function(a){this._defaultOptions={}}),e.extendClass(g,{setDefaultOptions:function(a){return f.extend(this._defaultOptions,a),this},getOption:function(a){return a?a in this._options?this._options[a]:this._defaultOptions[a]:f.extend({},this._defaultOptions,this._options)},setOption:function(a,b){this._options[a]=b}})}},b[23]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(19);g.registerInitHook(function(){this._initPaper()}),e.extendClass(g,{_initPaper:function(){this._paper=new e.Paper,this._paper._minder=this,this._paper.getNode().ondragstart=function(a){a.preventDefault()},this._paper.shapeNode.setAttribute("transform","translate(0.5, 0.5)"),this._addRenderContainer(),this.setRoot(this.createNode()),this._options.renderTo&&this.renderTo(this._options.renderTo)},_addRenderContainer:function(){this._rc=(new e.Group).setId(f.uuid("minder")),this._paper.addShape(this._rc)},renderTo:function(a){if("string"==typeof a&&(a=document.querySelector(a)),a){if("script"==a.tagName.toLowerCase()){var b=document.createElement("div");b.id=a.id,b.class=a.class,a.parentNode.insertBefore(b,a),a.parentNode.removeChild(a),a=b}a.classList.add("km-view"),this._paper.renderTo(this._renderTarget=a),this._bindEvents(),this.fire("paperrender")}return this},getRenderContainer:function(){return this._rc},getPaper:function(){return this._paper},getRenderTarget:function(){return this._renderTarget}})}},b[24]={value:function(a,c,d){function e(a,b,c,d){return c=a.createNode(b.data,c,d),b.children.forEach(function(b,d){e(a,b,c,d)}),c}function f(a,b){var c=b.path.split("/");c.shift();var d,f=c.shift();if("root"==f){var g=c.indexOf("data");if(g>-1){f="data";var h=c.splice(g+1);b.dataPath=h}else f="node";d=a.getRoot();for(var i,j;i=c.shift();)"children"!=i&&(void 0!==j&&(d=d.getChild(j)),j=+i);b.index=j,b.node=d}switch(b.express=[f,b.op].join(".")){case"theme.replace":a.useTheme(b.value);break;case"template.replace":a.useTemplate(b.value);break;case"node.add":e(a,b.value,b.node,b.index).renderTree(),a.layout();break;case"node.remove":a.removeNode(b.node.getChild(b.index)),a.layout();break;case"data.add":case"data.replace":case"data.remove":var k,l=b.node.data;for(c=b.dataPath.slice();l&&c.length>1;)k=c.shift(),k in l?l=l[k]:"remove"!=b.op&&(l=l[k]={});l&&(k=c.shift(),l[k]=b.value),"expandState"==k?d.renderTree():d.render(),a.layout()}a.fire("patch",{patch:b})}var g=b.r(17),h=b.r(19);g.extendClass(h,{applyPatches:function(a){for(var b=0;b=0;--c)if(a[c].isAncestorOf(b))return!0;return!1}var c,d=this.getSelectedNodes().slice(0),e=[],f=d.indexOf(this.getRoot());for(~f&&!a&&d.splice(f,1),d.sort(function(a,b){return a.getLevel()-b.getLevel()});c=d.pop();)b(d,c)||e.push(c);return e}}),e.extendClass(h,{isSelected:function(){var a=this.getMinder();return a&&-1!=a.getSelectedNodes().indexOf(this)}})}},b[29]={value:function(a,c,d){function e(a){var b=4096,c=8192,d=16384,e=0;return"string"==typeof a?a.toLowerCase().split(/\+\s*/).forEach(function(a){switch(a){case"ctrl":case"cmd":e|=b;break;case"alt":e|=c;break;case"shift":e|=d;break;default:e|=h[a]}}):((a.ctrlKey||a.metaKey)&&(e|=b),a.altKey&&(e|=c),a.shiftKey&&(e|=d),e|=a.keyCode),e}var f=b.r(17),g=b.r(33),h=b.r(15),i=b.r(19),j=b.r(13);f.extendClass(j,{isShortcutKey:function(a){var b=this.originEvent;return!!b&&e(a)==e(b)}}),i.registerInitHook(function(){this._initShortcutKey()}),f.extendClass(i,{_initShortcutKey:function(){this._bindShortcutKeys()},_bindShortcutKeys:function(){var a=this._shortcutKeys={};this.on("keydown",function(b){for(var c in a)if(a.hasOwnProperty(c)&&b.isShortcutKey(c)){var d=a[c];if(d.__statusCondition&&d.__statusCondition!=this.getStatus())return;d(),b.preventDefault()}})},addShortcut:function(a,b){var c=this._shortcutKeys;a.split(/\|\s*/).forEach(function(a){var d,e=a.split("::");e.length>1&&(a=e[1],d=e[0],b.__statusCondition=d),c[a]=b})},addCommandShortcutKeys:function(a,b){var c=this._commandShortcutKeys||(this._commandShortcutKeys={}),d={};b?d[a]=b:d=a;var e=this;g.each(d,function(a,b){c[b]=a,e.addShortcut(a,function(){-1!==e.queryCommandState(b)&&e.execCommand(b)})})},getCommandShortcutKey:function(a){var b=this._commandShortcutKeys;return b&&b[a]||null},supportClipboardEvent:function(a){return!!a.ClipboardEvent}(window)})}},b[30]={value:function(a,c,d){var e=b.r(17),f=b.r(19),g=~window.location.href.indexOf("status"),h=~window.location.href.indexOf("trace");f.registerInitHook(function(){this._initStatus()}),e.extendClass(f,{_initStatus:function(){this._status="normal",this._rollbackStatus="normal"},setStatus:function(a,b){return"readonly"!=this._status||b?(a!=this._status&&(this._rollbackStatus=this._status,this._status=a,this.fire("statuschange",{lastStatus:this._rollbackStatus,currentStatus:this._status}),g&&(console.log(window.event.type,this._rollbackStatus,"->",this._status),h&&console.trace())),this):this},rollbackStatus:function(){this.setStatus(this._rollbackStatus)},getRollbackStatus:function(){return this._rollbackStatus},getStatus:function(){return this._status}})}},b[31]={value:function(a,c,d){function e(a,b){l[a]=b}var f=b.r(17),g=b.r(33),h=b.r(19),i=b.r(9),j=b.r(21),k=b.r(20),l={};c.register=e,g.extend(h,{getTemplateList:function(){return l}}),f.extendClass(h,function(){var a=h.prototype.getTheme;return{useTemplate:function(a,b){this.setTemplate(a),this.refresh(b||800)},getTemplate:function(){return this._template||"default"},setTemplate:function(a){this._template=a||null},getTemplateSupport:function(a){var b=l[this.getTemplate()];return b&&b[a]},getTheme:function(b){return(this.getTemplateSupport("getTheme")||a).call(this,b)}}}()),f.extendClass(j,function(){var a=j.prototype.getLayout,b=j.prototype.getConnect;return{getLayout:function(){return(this.getMinder().getTemplateSupport("getLayout")||a).call(this,this)},getConnect:function(){return(this.getMinder().getTemplateSupport("getConnect")||b).call(this,this)}}}()),k.register("TemplateModule",{commands:{template:f.createClass("TemplateCommand",{base:i,execute:function(a,b){a.useTemplate(b),a.execCommand("camera")},queryValue:function(a){return a.getTemplate()||"default"}})}})}},b[32]={value:function(a,c,d){function e(a,b){m[a]=b}var f=b.r(17),g=b.r(33),h=b.r(19),i=b.r(21),j=b.r(20),k=b.r(9),l={left:function(a){return 3 in a&&a[3]||1 in a&&a[1]||a[0]},right:function(a){return 1 in a&&a[1]||a[0]},top:function(a){return a[0]},bottom:function(a){return 2 in a&&a[2]||a[0]}},m={};c.register=e,g.extend(h,{getThemeList:function(){return m}}),f.extendClass(h,{themeRegister:e,useTheme:function(a){return this.setTheme(a),this.refresh(800),!0},setTheme:function(a){if(a&&!m[a])throw new Error("Theme "+a+" not exists!");var b=this._theme;this._theme=a||null;var c=this.getRenderTarget();return c&&(c.classList.remove("km-theme-"+b),a&&c.classList.add("km-theme-"+a),c.style.background=this.getStyle("background")),this.fire("themechange",{theme:a}),this},getTheme:function(a){return this._theme||this.getOption("defaultTheme")||"fresh-blue"},getThemeData:function(a){return a&&m[a]?m[a]:null},getThemeItems:function(a){this.getTheme(a);return m[this.getTheme(a)]},getStyle:function(a,b){var c,d,e,f,h=this.getThemeItems(b);if(a in h)return h[a];if(c=a.split("-"),c.length<2)return null;if(d=c.pop(),(a=c.join("-"))in h){if(e=h[a],g.isArray(e)&&(f=l[d]))return f(e);if(!isNaN(e))return e}return null},getNodeStyle:function(a,b){var c=this.getStyle(a.getType()+"-"+b,a);return null!==c?c:this.getStyle(b,a)}}),f.extendClass(i,{getStyle:function(a){return this.getMinder().getNodeStyle(this,a)}}),j.register("Theme",{defaultOptions:{defaultTheme:"fresh-blue"},commands:{theme:f.createClass("ThemeCommand",{base:k,execute:function(a,b){return a.useTheme(b)},queryValue:function(a){return a.getTheme()||"default"}})}}),h.registerInitHook(function(){this.setTheme()})}},b[33]={value:function(a,c){var d=b.r(17),e={};c.extend=d.Utils.extend.bind(d.Utils),c.each=d.Utils.each.bind(d.Utils),c.uuid=function(a){return e[a]=e[a]?e[a]+1:1,a+e[a]},c.guid=function(){return(1e6*+new Date+Math.floor(1e6*Math.random())).toString(36)},c.trim=function(a){return a.replace(/(^[ \t\n\r]+)|([ \t\n\r]+$)/g,"")},c.keys=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b},c.clone=function(a){return JSON.parse(JSON.stringify(a))},c.comparePlainObject=function(a,b){return JSON.stringify(a)==JSON.stringify(b)},c.encodeHtml=function(a,b){return a?a.replace(b||/[&<">'](?:(amp|lt|quot|gt|#39|nbsp);)?/g,function(a,b){return b?a:{"<":"<","&":"&",'"':""",">":">","'":"'"}[a]}):""},c.clearWhiteSpace=function(a){return a.replace(/[\u200b\t\r\n]/g,"")},c.each(["String","Function","Array","Number","RegExp","Object"],function(a){var b=Object.prototype.toString;c["is"+a]=function(c){return b.apply(c)=="[object "+a+"]"}})}},b[34]={value:function(a,c,d){d.exports=window.kityminder=b.r(35)}},b[35]={value:function(a,c,d){var e={version:b.r(19).version};b.r(33),e.Minder=b.r(19),e.Command=b.r(9),e.Node=b.r(21),b.r(22),b.r(8),e.Event=b.r(13),e.data=b.r(12),b.r(10),e.KeyMap=b.r(15),b.r(29),b.r(30),b.r(23),b.r(28),b.r(14),b.r(16),e.Module=b.r(20),b.r(26),e.Render=b.r(27),e.Connect=b.r(11),e.Layout=b.r(18),e.Theme=b.r(32),e.Template=b.r(31),e.Promise=b.r(25),b.r(7),b.r(24),b.r(42),b.r(43),b.r(44),b.r(45),b.r(46),b.r(47),b.r(48),b.r(50),b.r(49),b.r(51),b.r(52),b.r(53),b.r(54),b.r(55),b.r(56),b.r(57),b.r(58),b.r(59),b.r(60),b.r(61),b.r(62),b.r(63),b.r(64),b.r(68),b.r(65),b.r(67),b.r(66),b.r(40),b.r(36),b.r(37),b.r(38),b.r(39),b.r(41),b.r(75),b.r(78),b.r(77),b.r(76),b.r(78),b.r(80),b.r(79),b.r(81),b.r(0),b.r(1),b.r(2),b.r(3),b.r(4),b.r(5),b.r(6),b.r(69),b.r(73),b.r(70),b.r(72),b.r(71),b.r(74),d.exports=e}},b[36]={value:function(a,c,d){function e(a){function b(a){var b=[],d=a.getLayoutBox(),e=5;return"x"==c?(b.push({type:"up",node:a,area:new f.Box({x:d.x,y:d.top-a.getStyle("margin-top")-e,width:d.width,height:a.getStyle("margin-top")}),path:["M",d.x,d.top-e,"L",d.right,d.top-e]}),b.push({type:"down",node:a,area:new f.Box({x:d.x,y:d.bottom+e,width:d.width,height:a.getStyle("margin-bottom")}),path:["M",d.x,d.bottom+e,"L",d.right,d.bottom+e]})):(b.push({type:"up",node:a,area:new f.Box({x:d.left-a.getStyle("margin-left")-e,y:d.top,width:a.getStyle("margin-left"),height:d.height}),path:["M",d.left-e,d.top,"L",d.left-e,d.bottom]}),b.push({type:"down",node:a,area:new f.Box({x:d.right+e,y:d.top,width:a.getStyle("margin-right"),height:d.height}),path:["M",d.right+e,d.top,"L",d.right+e,d.bottom]})),b}var c="left"==a||"right"==a?"x":"y",d="left"==a||"top"==a?-1:1,e={left:"right",right:"left",top:"bottom",bottom:"top",x:"y",y:"x"};g.register(a,f.createClass({base:g,doLayout:function(b,g){var h=b.getContentBox();if("x"==c?(b.setVertexOut(new f.Point(h[a],h.cy)),b.setLayoutVectorOut(new f.Vector(d,0))):(b.setVertexOut(new f.Point(h.cx,h[a])),b.setLayoutVectorOut(new f.Vector(0,d))),!g.length)return!1;g.forEach(function(b){var g=b.getContentBox();b.setLayoutTransform(new f.Matrix),"x"==c?(b.setVertexIn(new f.Point(g[e[a]],g.cy)),b.setLayoutVectorIn(new f.Vector(d,0))):(b.setVertexIn(new f.Point(g.cx,g[e[a]])),b.setLayoutVectorIn(new f.Vector(0,d)))}),this.align(g,e[a]),this.stack(g,e[c]);var i=this.getBranchBox(g),j=0,k=0;"x"==c?(j=h[a],j+=d*b.getStyle("margin-"+a),j+=d*g[0].getStyle("margin-"+e[a]),k=h.bottom,k-=h.height/2,k-=i.height/2,k-=i.y):(j=h.right,j-=h.width/2,j-=i.width/2,j-=i.x,k=h[a],k+=d*b.getStyle("margin-"+a),k+=d*g[0].getStyle("margin-"+e[a])),this.move(g,j,k)},getOrderHint:b}))}var f=b.r(17),g=b.r(18);["left","right","top","bottom"].forEach(e)}},b[37]={value:function(a,c,d){function e(a){var b="filetree-"+(a>0?"down":"up");g.register(b,f.createClass({base:g,doLayout:function(b,c,d){var e=b.getContentBox(),g=20;if(b.setVertexOut(new f.Point(e.left+g,a>0?e.bottom:e.top)),b.setLayoutVectorOut(new f.Vector(0,a)),c.length){c.forEach(function(a){var b=a.getContentBox();a.setLayoutTransform(new f.Matrix),a.setVertexIn(new f.Point(b.left,b.cy)),a.setLayoutVectorIn(new f.Vector(1,0))}),this.align(c,"left"),this.stack(c,"y");var h=0;h+=e.left,h+=g,h+=c[0].getStyle("margin-left");var i=0;a>0?(i+=e.bottom,i+=b.getStyle("margin-bottom"),i+=c[0].getStyle("margin-top")):(i-=this.getTreeBox(c).bottom,i+=e.top,i-=b.getStyle("margin-top"),i-=c[0].getStyle("margin-bottom")),this.move(c,h,i)}},getOrderHint:function(a){var b=[],c=a.getLayoutBox(),d=a.getLevel()>1?3:5;return b.push({type:"up",node:a,area:new f.Box({x:c.x,y:c.top-a.getStyle("margin-top")-d,width:c.width,height:a.getStyle("margin-top")}),path:["M",c.x,c.top-d,"L",c.right,c.top-d]}),b.push({type:"down",node:a,area:new f.Box({x:c.x,y:c.bottom+d,width:c.width,height:a.getStyle("margin-bottom")}),path:["M",c.x,c.bottom+d,"L",c.right,c.bottom+d]}),b}}))}var f=b.r(17),g=b.r(18);[-1,1].forEach(e)}},b[38]={value:function(a,c,d){var e=b.r(17),f=b.r(18);f.register("fish-bone-master",e.createClass("FishBoneMasterLayout",{base:f,doLayout:function(a,b,c){var d=[],f=[],g=b[0],h=a.getContentBox();if(a.setVertexOut(new e.Point(h.right,h.cy)),a.setLayoutVectorOut(new e.Vector(1,0)),g){var i=(g.getContentBox(),a.getStyle("margin-right")),j=g.getStyle("margin-left"),k=g.getStyle("margin-top"),l=g.getStyle("margin-bottom");b.forEach(function(a,b){a.setLayoutTransform(new e.Matrix);var c=a.getContentBox();b%2?(f.push(a),a.setVertexIn(new e.Point(c.left,c.top)),a.setLayoutVectorIn(new e.Vector(1,1))):(d.push(a),a.setVertexIn(new e.Point(c.left,c.bottom)),a.setLayoutVectorIn(new e.Vector(1,-1)))}),this.stack(d,"x"),this.stack(f,"x"),this.align(d,"bottom"),this.align(f,"top");var m=h.right+i+j,n=h.cy-l-a.getStyle("margin-top"),o=h.cy+k+a.getStyle("margin-bottom");this.move(d,m,n),this.move(f,m+j,o)}}}))}},b[39]={value:function(a,c,d){var e=b.r(17),f=b.r(18);f.register("fish-bone-slave",e.createClass("FishBoneSlaveLayout",{base:f,doLayout:function(a,b,c){var d=this,f=Math.abs,g=.382,h=a.getContentBox(),i=a.getLayoutVectorIn();a.setLayoutVectorOut(i);var j=h.left+h.width*g,k=new e.Point(j,i.y>0?h.bottom:h.top);a.setVertexOut(k);var l=b[0];if(l){var m=l.getContentBox();b.forEach(function(a,b){a.setLayoutTransform(new e.Matrix),a.setLayoutVectorIn(new e.Vector(1,0)),a.setVertexIn(new e.Point(m.left,m.cy))}),this.stack(b,"y"),this.align(b,"left");var n=0,o=0;n+=k.x,a.getLayoutVectorOut().y<0?(o-=this.getTreeBox(b).bottom,o+=a.getContentBox().top,o-=a.getStyle("margin-top"),o-=l.getStyle("margin-bottom")):(o+=a.getContentBox().bottom,o+=a.getStyle("margin-bottom"),o+=l.getStyle("margin-top")),this.move(b,n,o),2==c&&b.forEach(function(a){var b=a.getLayoutTransform(),c=a.getContentBox(),g=b.transformPoint(new e.Point(c.left,0));d.move([a],f(g.y-k.y),0)})}}}))}},b[40]={value:function(a,c,d){var e=b.r(17),f=b.r(18),g=b.r(19);f.register("mind",e.createClass({base:f,doLayout:function(a,b){var c=Math.ceil(a.children.length/2),d=[],f=[];b.forEach(function(a){a.getIndex()=c.length))return c.splice(this.getIndex(),1),c.splice(a,0,this),this}}});var k=g.createClass("ArrangeUpCommand",{base:i,execute:function(a){var b=a.getSelectedNodes();b.sort(e);var c=b.map(function(a){return a.getIndex()});b.forEach(function(a,b){a.arrange(c[b]-1)}),a.layout(300)},queryState:function(a){return a.getSelectedNode()?0:-1}}),l=g.createClass("ArrangeUpCommand",{base:i,execute:function(a){var b=a.getSelectedNodes();b.sort(f);var c=b.map(function(a){return a.getIndex()});b.forEach(function(a,b){a.arrange(c[b]+1)}),a.layout(300)},queryState:function(a){return a.getSelectedNode()?0:-1}}),m=g.createClass("ArrangeCommand",{base:i,execute:function(a,b){var c=a.getSelectedNodes().slice();if(c.length){if(h.getCommonAncestor(c)==c[0].parent){var d=c.map(function(a){return{index:a.getIndex(),node:a}}),e=Math.min.apply(Math,d.map(function(a){return a.index}))>=b;d.sort(function(a,b){return e?b.index-a.index:a.index-b.index}),d.forEach(function(a){a.node.arrange(b)}),a.layout(300)}}},queryState:function(a){return a.getSelectedNode()?0:-1}});j.register("ArrangeModule",{commands:{arrangeup:k,arrangedown:l,arrange:m},contextmenu:[{command:"arrangeup"},{command:"arrangedown"},{divider:!0}],commandShortcutKeys:{arrangeup:"normal::alt+Up",arrangedown:"normal::alt+Down"}})}},b[43]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19),b.r(21),b.r(9)),g=b.r(20),h=b.r(61);g.register("basestylemodule",function(){function a(a,b){return a.getData(b)||a.getStyle(b)}var b=this;return h.registerStyleHook(function(b,c){var d=a(b,"font-weight"),e=a(b,"font-style");[d,e].join("/");c.eachItem(function(a,b){b.setFont({weight:d,style:e})})}),{commands:{bold:e.createClass("boldCommand",{base:f,execute:function(a){var b=a.getSelectedNodes();1==this.queryState("bold")?b.forEach(function(a){a.setData("font-weight").render()}):b.forEach(function(a){a.setData("font-weight","bold").render()}),a.layout()},queryState:function(){var a=b.getSelectedNodes(),c=0;return 0===a.length?-1:(a.forEach(function(a){if(a&&a.getData("font-weight"))return c=1,!1}),c)}}),italic:e.createClass("italicCommand",{base:f,execute:function(a){var b=a.getSelectedNodes();1==this.queryState("italic")?b.forEach(function(a){a.setData("font-style").render()}):b.forEach(function(a){a.setData("font-style","italic").render()}),a.layout()},queryState:function(){var a=b.getSelectedNodes(),c=0;return 0===a.length?-1:(a.forEach(function(a){if(a&&a.getData("font-style"))return c=1,!1}),c)}})},commandShortcutKeys:{bold:"ctrl+b",italic:"ctrl+i"}}})}},b[44]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(21)),g=b.r(9);b.r(20).register("ClipboardModule",function(){function a(b,d){h.push(d),c.appendNode(d,b),d.render(),d.setLayoutOffset(null);var e=d.children.map(function(a){return a.clone()});d.clearChildren();for(var f,g=0;f=e[g];g++)a(d,f)}function b(a){a.length&&(a.sort(function(a,b){return a.getIndex()-b.getIndex()}),d=a.map(function(a){return a.clone()}))}var c=this,d=[],h=[],i=e.createClass("CopyCommand",{base:g,execute:function(a){b(a.getSelectedAncestors(!0)),this.setContentChanged(!1)}}),j=e.createClass("CutCommand",{base:g,execute:function(a){var c=a.getSelectedAncestors();0!==c.length&&(b(c),a.select(f.getCommonAncestor(c),!0),c.slice().forEach(function(b){a.removeNode(b)}),a.layout(300))}}),k=e.createClass("PasteCommand",{base:g,execute:function(b){if(d.length){var c=b.getSelectedNodes();if(!c.length)return;for(var e,f=0;e=d[f];f++)for(var g,i=0;g=c[i];i++)a(g,e.clone());b.select(h,!0),h=[],b.layout(300)}},queryState:function(a){return a.getSelectedNode()?0:-1}});if(c.supportClipboardEvent&&!e.Browser.gecko){var l=function(a){this.fire("beforeCopy",a)},m=function(a){this.fire("beforeCut",a)},n=function(a){this.fire("beforePaste",a)};return{commands:{copy:i,cut:j,paste:k},clipBoardEvents:{copy:l.bind(c),cut:m.bind(c),paste:n.bind(c)},sendToClipboard:b}}return{commands:{copy:i,cut:j,paste:k},commandShortcutKeys:{copy:"normal::ctrl+c|",cut:"normal::ctrl+x",paste:"normal::ctrl+v"},sendToClipboard:b}})}},b[45]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(21)),g=b.r(9),h=b.r(20),i=e.createClass("MoveToParentCommand",{base:g,execute:function(a,b,c){for(var d,e=0;ed&&"up"==a.type&&b--,a.node.setLayoutOffset(null),this._minder.execCommand("arrange",b),this._renderOrderHint(null)}else this._minder.fire("savescene");this._minder.layout(300),this._leaveDragMode(),this._minder.fire("contentchange")}},_enterDragMode:function(){return this._calcDragSources(),this._dragSources.length?(this._fadeDragSources(.5),this._calcDropTargets(),this._calcOrderHints(),this._dragMode=!0,this._minder.setStatus("dragtree"),!0):(this._startPosition=null,!1)},_calcDragSources:function(){this._dragSources=this._minder.getSelectedAncestors()},_fadeDragSources:function(a){var b=this._minder;this._dragSources.forEach(function(c){c.getRenderContainer().setOpacity(a,200),c.traverse(function(c){a<1?b.detachNode(c):b.attachNode(c)},!0)})},_calcDropTargets:function(){function a(b,c){var d,e=[];return e.push(c),c.getChildren().forEach(function(c){for(d=0;d.5*Math.min(d(b),d(c))||(a.width+1>=Math.min(b.width,c.width)||a.height+1>=Math.min(b.height,c.height))))}),this._renderDropHint(this._dropSucceedTarget),!!this._dropSucceedTarget},_orderTest:function(){return this._orderSucceedHint=this._boxTest(this._orderHints,function(a){return a.area}),this._renderOrderHint(this._orderSucceedHint),!!this._orderSucceedHint},_renderDropHint:function(a){this._dropHinter.render(a)},_renderOrderHint:function(a){this._orderHinter.render(a)},preventDragMove:function(){this._startPosition=null}});h.register("DragTree",function(){var a;return{init:function(){a=new l(this),window.addEventListener("mouseup",function(){a.dragEnd()})},events:{"normal.mousedown inputready.mousedown":function(b){b.originEvent.button||b.getTargetNode()&&b.getTargetNode()!=this.getRoot()&&a.dragStart(b.getPosition())},"normal.mousemove dragtree.mousemove":function(b){a.dragMove(b.getPosition())},"normal.mouseup dragtree.beforemouseup":function(b){a.dragEnd(),b.preventDefault()},statuschange:function(b){"textedit"==b.lastStatus&&"normal"==b.currentStatus&&a.preventDragMove()}},commands:{movetoparent:i}}})}},b[46]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(15),h=b.r(21),i=b.r(9),j=b.r(20),k=b.r(27);j.register("Expand",function(){var a=this,b="expandState",c="collapse";e.extendClass(h,{expand:function(){return this.setData(b,"expand"),this},collapse:function(){return this.setData(b,c),this},isExpanded:function(){return this.getData(b)!==c&&(this.isRoot()||this.parent.isExpanded())},isCollapsed:function(){return!this.isExpanded()}});var d=e.createClass("ExpandCommand",{base:i,execute:function(a,b){var c=a.getSelectedNode();if(c){for(b&&(c=c.parent);c.parent;)c.expand(),c=c.parent;c.renderTree(),a.layout(100)}},queryState:function(a){var b=a.getSelectedNode();return!b||b.isRoot()||b.isExpanded()?-1:0}}),j=e.createClass("ExpandToLevelCommand",{base:i,execute:function(a,b){a.getRoot().traverse(function(a){a.getLevel()c&&e>f?(a=c,b=a/e):b>d&&(b=d,a=b*e),{width:0|a,height:0|b}}return{defaultOptions:{maxImageWidth:200,maxImageHeight:200},commands:{image:e.createClass("ImageCommand",{base:f,execute:function(c,d,e){var f=c.getSelectedNodes();a(d,function(a,g){f.forEach(function(f){var h=b(a,g,c.getOption("maxImageWidth"),c.getOption("maxImageHeight"));f.setData("image",d),f.setData("imageTitle",d&&e),f.setData("imageSize",d&&h),f.render()}),c.fire("saveScene"),c.layout(300)})},queryState:function(a){var b=a.getSelectedNodes(),c=0;return 0===b.length?-1:(b.forEach(function(a){if(a&&a.getData("image"))return c=0,!1}),c)},queryValue:function(a){var b=a.getSelectedNode();return{url:b.getData("image"),title:b.getData("imageTitle")}}})},renderers:{top:e.createClass("ImageRenderer",{base:h,create:function(a){return new e.Image(a.getData("image"))},shouldRender:function(a){return a.getData("image")},update:function(a,b,c){var d=b.getData("image"),f=b.getData("imageTitle"),g=b.getData("imageSize"),h=b.getStyle("space-top");if(g){f&&a.node.setAttributeNS("http://www.w3.org/1999/xlink","title",f);var i=c.cx-g.width/2,j=c.y-g.height-h;return a.setUrl(d).setX(0|i).setY(0|j).setWidth(0|g.width).setHeight(0|g.height),new e.Box(0|i,0|j,0|g.width,0|g.height)}}})}}})}},b[51]={value:function(a,c,d){var e=(b.r(17),b.r(33),b.r(15),b.r(19),b.r(21),b.r(9),b.r(20));b.r(27);e.register("KeyboardModule",function(){function a(a){var b,d=[];a.traverse(function(a){b=a.getLayoutBox(),b.width&&b.height&&d.push({left:b.x,top:b.y,right:b.x+b.width,bottom:b.y+b.height,width:b.width,height:b.height,node:a})});for(var e=0;ef.right&&(!g.right||ef.bottom&&(!g.down||e>1].getGlobalLayoutTransform()),a.select(e,!0),a.layout(600)},queryState:function(a){var b=a.getSelectedNodes();if(!b.length)return-1;var c=b[0].parent;if(!c)return-1;for(var d=1;d>>c|d<<32-c},b=function(a,b,j,k,l){var m=d+f[c][a]%16,n=d+(f[c][a]>>4);b%=4,j=4+j%4,k=8+k%4,l=12+l%4,h[b]+=h[j]+(i[m]^e[n%16]),g(l,b,16),h[k]+=h[l],g(j,k,12),h[b]+=h[j]+(i[n]^e[m%16]),g(l,b,8),h[k]+=h[l],g(j,k,7)},function(f,g){g instanceof Array&&4===g.length||(g=[0,0,0,0]);var k,l,m,n,o,p,q,r;for(l=a.slice(0),k=e.slice(0,8),c=0;c<4;c+=1)k[c]^=g[c];if(m=16*f.length,o=m%512>446||m%512==0?0:m,m%512==432)f+="老";else{for(f+="耀";f.length%32!=27;)f+="\0";f+=""}for(i=[],r=0;r=0;c--)d=b.charCodeAt(c),e^=(e<<5)+d+(e>>2);return 2147483647&e},getResourceColor:function(a){var c,d=this._getResourceColorIndexMapping();return Object.prototype.hasOwnProperty.call(d,a)||(c=this._getNextResourceColorIndex(),d[a]=c),b[d[a]]||e.Color.createHSL(Math.floor(this.getHashCode(a)/2147483647*359),100,85)},getUsedResource:function(){var a,b=this._getResourceColorIndexMapping(),c=[];for(a in b)Object.prototype.hasOwnProperty.call(b,a)&&c.push(a);return c},_getNextResourceColorIndex:function(){var a,c,d,e=this._getResourceColorIndexMapping();c=[];for(a in e)Object.prototype.hasOwnProperty.call(e,a)&&c.push(e[a]);for(d=0;dv)for(var w=u-v;w--;)s=(new e.Text).setAttr("text-rendering","inherit"),e.Browser.ie||e.Browser.edge?s.setVerticalAlign("top"):s.setAttr("dominant-baseline","text-before-edge"),a.addItem(s);for(q=0,s;t=g[q],s=a.getItem(q);q++)s.setContent(t),(e.Browser.ie||e.Browser.edge)&&s.fixPosition();this.setTextStyle(b,a);var x=b.getText()+["font-size","font-name","font-weight","font-style"].map(c).join("/");return b._currentTextHash==x&&b._currentTextGroupBox?b._currentTextGroupBox:(b._currentTextHash=x,function(){a.eachItem(function(a,b){var c=m+a*i*h;b.setY(c);var d=b.getBoundaryBox();o=o.merge(new e.Box(0,c,d.height&&d.width||1,i))});var c=new e.Box(p(o.x),p(o.y),p(o.width),p(o.height));return b._currentTextGroupBox=c,c})},setTextStyle:function(a,b){l._styleHooks.forEach(function(c){c(a,b)})}}),m=e.createClass({base:h,execute:function(a,b){var c=a.getSelectedNode();c&&(c.setText(b),c.render(),a.layout())},queryState:function(a){return 1==a.getSelectedNodes().length?0:-1},queryValue:function(a){var b=a.getSelectedNode();return b?b.getText():null}});f.extend(l,{_styleHooks:[],registerStyleHook:function(a){l._styleHooks.push(a)}}),e.extendClass(g,{getTextGroup:function(){return this.getRenderer("TextRenderer").getRenderShape()}}),i.register("text",{commands:{text:m},renderers:{center:l}}),d.exports=l}},b[62]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19),b.r(21),b.r(9)),g=b.r(20),h=(b.r(27),e.createClass("ViewDragger",{constructor:function(a){this._minder=a,this._enabled=!1,this._bind();var b=this;this._minder.getViewDragger=function(){return b},this.setEnabled(!1)},isEnabled:function(){return this._enabled},setEnabled:function(a){if(this._minder.getOption("enableChangeCursor")){var b=this._minder.getPaper();b.setStyle("cursor",a?"pointer":"default"),b.setStyle("cursor",a?"-webkit-grab":"default")}this._enabled=a},timeline:function(){return this._moveTimeline},move:function(a,b){var c=(this._minder,this.getMovement().offset(a));this.moveTo(c,b)},moveTo:function(a,b){if(b){var c=this;return this._moveTimeline&&this._moveTimeline.stop(),this._moveTimeline=this._minder.getRenderContainer().animate(new e.Animator(this.getMovement(),a,function(a,b){c.moveTo(b)}),b,"easeOutCubic").timeline(),this._moveTimeline.on("finish",function(){c._moveTimeline=null}),this}this._minder.getRenderContainer().setTranslate(a.round()),this._minder.fire("viewchange")},getMovement:function(){var a=this._minder.getRenderContainer().transform.translate;return a?a[0]:new e.Point},getView:function(){var a=this._minder,b=a._lastClientSize||{width:a.getRenderTarget().clientWidth,height:a.getRenderTarget().clientHeight},c=this.getMovement(),d=new e.Box(0,0,b.width,b.height);return a.getPaper().getViewPortMatrix().inverse().translate(-c.x,-c.y).transformBox(d)},_bind:function(){function a(a){if(d){d=null,a.stopPropagation(),c&&(b.setEnabled(!1),c=!1,"hand"==b._minder.getStatus()&&b._minder.rollbackStatus());if(b._minder.getOption("enableChangeCursor")){b._minder.getPaper().setStyle("cursor","hand"==b._minder.getStatus()?"-webkit-grab":"default")}b._minder.fire("viewchanged")}}var b=this,c=!1,d=null,f=null;this._minder.on("normal.mousedown normal.touchstart inputready.mousedown inputready.touchstart readonly.mousedown readonly.touchstart",function(a){2==a.originEvent.button&&a.originEvent.preventDefault(),(a.getTargetNode()==this.getRoot()||2==a.originEvent.button||a.originEvent.altKey)&&(d=a.getPosition("view"),c=!0)}).on("normal.mousemove normal.touchmove readonly.mousemove readonly.touchmove inputready.mousemove inputready.touchmove",function(a){if("touchmove"==a.type&&a.preventDefault(),c){if(e.Vector.fromPoints(d,a.getPosition("view")).length()>10){this.setStatus("hand",!0);if(b._minder.getOption("enableChangeCursor")){b._minder.getPaper().setStyle("cursor","-webkit-grabbing")}}}}).on("hand.beforemousedown hand.beforetouchstart",function(a){if(b.isEnabled()){d=a.getPosition("view"),a.stopPropagation();if(b._minder.getOption("enableChangeCursor")){b._minder.getPaper().setStyle("cursor","-webkit-grabbing")}}}).on("hand.beforemousemove hand.beforetouchmove",function(a){if(d){f=a.getPosition("view");var c=e.Vector.fromPoints(d,f);b.move(c),a.stopPropagation(),a.preventDefault(),a.originEvent.preventDefault(),d=f}}).on("mouseup touchend",a),window.addEventListener("mouseup",a),this._minder.on("contextmenu",function(a){a.preventDefault()})}}));g.register("View",function(){var a=e.createClass("ToggleHandCommand",{base:f,execute:function(a){"hand"!=a.getStatus()?a.setStatus("hand",!0):a.rollbackStatus(),this.setContentChanged(!1)},queryState:function(a){return"hand"==a.getStatus()?1:0},enableReadOnly:!0}),b=e.createClass("CameraCommand",{base:f,execute:function(a,b){b=b||a.getRoot();var c=a.getPaper().getViewPort(),d=b.getRenderContainer().getRenderBox("view"),f=c.center.x-d.x-d.width/2,g=c.center.y-d.y,h=a._viewDragger,i=a.getOption("viewAnimationDuration");h.move(new e.Point(f,g),i),this.setContentChanged(!1)},enableReadOnly:!0}),c=e.createClass("MoveCommand",{base:f,execute:function(a,b,c){var d=a._viewDragger,f=a._lastClientSize;if(void 0!==c&&null!==c||(c=a.getOption("viewAnimationDuration")),"string"!=typeof b){var g=d.getMovement(),h=g.x,i=g.y;void 0!==b.x&&(h=b.x),void 0!==b.y&&(i=b.y),d.moveTo(new e.Point(h,i),c)}else switch(b){case"auto":var j=d._minder.getRenderContainer().node.getBBox(),h=40;j.widthg.right?j+=g.right-h.right-i:h.leftg.bottom&&(k+=g.bottom-h.bottom-i),h.top=100?"optimize-speed":"geometricPrecision";h.getRenderContainer().setAttr("text-rendering",a)}function b(a){var b=a.shapeNode,c=b.getCTM(),d=new e.Matrix(c.a,c.b,c.c,c.d,.5+(0|c.e),.5+(0|c.f));b.setAttribute("transform","matrix("+d.toString()+")")}function c(b,c){var f=b.getPaper();f.getViewPort();if(c){a();var g=b.getOption("zoomAnimationDuration");if(b.getRoot().getComplex()>200||!g)b._zoomValue=c,b.zoom(c),b.fire("viewchange");else{var h=new e.Animator({beginValue:b._zoomValue,finishValue:c,setter:function(a,b){a.zoom(b)}});b._zoomValue=c,d&&d.pause(),d=h.start(b,g,"easeInOutSine"),d.on("finish",function(){b.fire("viewchange")})}b.fire("zoom",{zoom:c})}}var d,h=this;e.extendClass(f,{zoom:function(a){var c=this.getPaper(),d=c.getViewPort();d.zoom=a/100,d.center={x:d.center.x,y:d.center.y},c.setViewPort(d),100==a&&b(c)},getZoomValue:function(){return this._zoomValue}});var i=e.createClass("Zoom",{base:g,execute:c,queryValue:function(a){return a._zoomValue}}),j=e.createClass("ZoomInCommand",{base:g,execute:function(a){c(a,this.nextValue(a))},queryState:function(a){return+!this.nextValue(a)},nextValue:function(a){var b,c=a.getOption("zoom");for(b=0;ba._zoomValue)return c[b];return 0},enableReadOnly:!0}),k=e.createClass("ZoomOutCommand",{base:g,execute:function(a){c(a,this.nextValue(a))},queryState:function(a){return+!this.nextValue(a)},nextValue:function(a){var b,c=a.getOption("zoom");for(b=c.length-1;b>=0;b--)if(c[b]100&&(clearTimeout(this._wheelZoomTimeout),this._wheelZoomTimeout=setTimeout(function(){c.getPaper()._zoom;b>0?c.execCommand("zoomin"):b<0&&c.execCommand("zoomout")},100),a.originEvent.preventDefault())}}},commandShortcutKeys:{zoomin:"ctrl+=",zoomout:"ctrl+-"}}})}},b[64]={value:function(a,c,d){b.r(12).registerProtocol("json",d.exports={fileDescription:"KityMinder 格式",fileExtension:".km",dataType:"text",mineType:"application/json",encode:function(a){return JSON.stringify(a)},decode:function(a){return JSON.parse(a)}})}},b[65]={value:function(a,c,d){function e(a){return f(a,1).join("\n")}function f(a,b){var c=[];b=b||1;var d=g(b);c.push(d+" "+a.data.text),c.push(o);var e=a.data.note;if(e){var h=/^#/.test(e);h&&(c.push(p),e=e.replace(/^#+/gm,function(a){return d+a})),c.push(e),h&&c.push(q),c.push(o)}return a.children&&a.children.forEach(function(a){c=c.concat(f(a,b+1))}),c}function g(a){for(var b="";a--;)b+="#";return b}function h(a){var b,c,d,e,f,g,h,m={};a=a.replace(/^(.+)\n={3,}/,function(a,b){return"# "+b}),b=a.split(n);for(var o=0;oe+1?f&&j(f,c):(e=d.level,f=i(d.content,m[e-1]),m[e]=f));return l(m[1]),m[1]}function i(a,b){var c={data:{text:a,note:""}};return b&&(b.children?b.children.push(c):b.children=[c]),c}function j(a,b){a.data.note+=b+"\n"}function k(a){var b=/^(#+)?\s*(.*)$/.exec(a);return{level:b[1]&&b[1].length||null,content:b[2],noteStart:a==p,noteClose:a==q,codeBlock:/^\s*```/.test(a)}}function l(a){if(/\S/.test(a.data.note)){for(var b=a.data.note.split("\n");b.length&&!/\S/.test(b[0]);)b.shift();for(;b.length&&!/\S/.test(b[b.length-1]);)b.pop();a.data.note=b.join("\n")}else a.data.note=null,delete a.data.note;a.children&&a.children.forEach(l)}var m=b.r(12),n=/\r\n|\r|\n/,o="",p="\x3c!--Note--\x3e",q="\x3c!--/Note--\x3e";m.registerProtocol("markdown",d.exports={fileDescription:"Markdown/GFM 格式",fileExtension:".md",mineType:"text/markdown",dataType:"text",encode:function(a){return e(a.root)},decode:function(a){return h(a)}})}},b[66]={value:function(a,c,d){function e(a,b){return new k(function(b,c){var d=document.createElement("img");d.onload=function(){b({element:this,x:a.x,y:a.y,width:a.width,height:a.height})},d.onerror=function(a){c(a)},d.crossOrigin="anonymous",d.src=a.url})}function f(a,b){return k(function(b,c){var d=new XMLHttpRequest;d.open("GET",a.url+"?_="+Date.now(),!0),d.responseType="blob",d.onreadystatechange=function(){if(4===d.readyState&&200===d.status){var c=d.response,e=document.createElement("img");e.src=l.createObjectURL(c),e.onload=function(){l.revokeObjectURL(e.src),b({element:e,x:a.x,y:a.y,width:a.width,height:a.height})}}},d.send()})}function g(a){function b(c){var d=c.data;if(d.image){a.renderNode(c);var d=c.data,e=d.image,f=d.imageSize,g=c.getRenderBox("ImageRenderer",a.getRenderContainer()),h={url:e,width:f.width,height:f.height,x:-j.getBoundaryBox().x+g.x,y:-j.getBoundaryBox().y+g.y};o.push(h)}if("collapse"!==d.expandState)for(var i=c.getChildren(),k=0;kt.width?c.width:t.width,v=c&&c.height&&c.height>t.height?c.height:t.height,w=c&&c.width&&c.width>t.width?(c.width-t.width)/2:0,x=c&&c.height&&c.height>t.height?(c.height-t.height)/2:0,y=t.dataUrl,z=t.imagesInfo,A=20;if(o.width=u+2*A,o.height=v+2*A,r){return e({url:r[1]}).then(function(a){return d(p,p.createPattern(a.element,"repeat")),n()})}return d(p,s.toString()),n()}var i=b.r(17),j=b.r(12),k=b.r(25),l=window.URL||window.webkitURL||window;j.registerProtocol("png",d.exports={fileDescription:"PNG 图片",fileExtension:".png",mineType:"image/png",dataType:"base64",encode:h})}},b[67]={value:function(a,c,d){function e(a,b,c){function d(a,b){var c;try{c=b.getScreenCTM().inverse()}catch(a){throw new Error("Can not inverse source element' ctm.")}return c.multiply(a.getScreenCTM())}function e(a,b){b instanceof Function||(b=function(){});for(var c=[],d=[],e=[],f=0,g=a.length;f0?"right":"left":a.parent.getLayout()},getConnect:function(a){return 1==a.getLevel()?"arc":"under"}})}},b[70]={value:function(a,c,d){b.r(31).register("filetree",{getLayout:function(a){return a.getData("layout")?a.getData("layout"):a.isRoot()?"bottom":"filetree-down"},getConnect:function(a){return 1==a.getLevel()?"poly":"l"}})}},b[71]={value:function(a,c,d){b.r(31).register("fish-bone",{getLayout:function(a){if(a.getData("layout"))return a.getData("layout");var b=a.getLevel();return 0===b?"fish-bone-master":1===b?"fish-bone-slave":a.getLayoutPointPreview().y>0?"filetree-up":"filetree-down"},getConnect:function(a){switch(a.getLevel()){case 1:return"fish-bone-master";case 2:return"line";default:return"l"}}})}},b[72]={value:function(a,c,d){b.r(31).register("right",{getLayout:function(a){return a.getData("layout")||"right"},getConnect:function(a){return 1==a.getLevel()?"arc":"bezier"}})}},b[73]={value:function(a,c,d){b.r(31).register("structure",{getLayout:function(a){return a.getData("layout")||"bottom"},getConnect:function(a){return"poly"}})}},b[74]={value:function(a,c,d){b.r(31).register("tianpan",{getLayout:function(a){return a.getData("layout")?a.getData("layout"):0===a.getLevel()?"tianpan":a.parent.getLayout()},getConnect:function(a){return"arc_tp"}})}},b[75]={value:function(a,c,d){var e=b.r(32);["classic","classic-compact"].forEach(function(a){var b="classic-compact"==a;e.register(a,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":b?[10,25]:[15,25],"root-margin":b?[15,25]:[30,100],"root-radius":30,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":b?[5,15]:[6,20],"main-margin":b?[5,10]:20,"main-radius":10,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"white","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":[5,10],"sub-margin":b?[5,10]:[15,20],"sub-tree-margin":30,"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})})}},b[76]={value:function(a,c,d){b.r(32).register("fish",{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":[35,35],"root-margin":30,"root-radius":100,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":[6,20],"main-margin":[20,20],"main-radius":5,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"black","sub-background":"white","sub-stroke":"white","sub-font-size":12,"sub-padding":[5,10],"sub-margin":[10],"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":3,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})}},b[77]={value:function(a,c,d){function e(a,b,c){return h.Color.createHSL(a,b,c)}function f(a,b){return{background:"#fbfbfb","root-color":"white","root-background":e(a,37,60),"root-stroke":e(a,37,60),"root-font-size":16,"root-padding":b?[6,12]:[12,24],"root-margin":b?10:[30,100],"root-radius":5,"root-space":10,"main-color":"black","main-background":e(a,33,95),"main-stroke":e(a,37,60),"main-stroke-width":1,"main-font-size":14,"main-padding":[6,20],"main-margin":b?8:20,"main-radius":3,"main-space":5,"sub-color":"black","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":b?[3,5]:[5,10],"sub-margin":b?[4,8]:[15,20],"sub-radius":5,"sub-space":5,"connect-color":e(a,37,60),"connect-width":1,"connect-radius":5,"selected-stroke":e(a,26,30),"selected-stroke-width":"3","blur-selected-stroke":e(a,10,60),"marquee-background":e(a,100,80).set("a",.1),"marquee-stroke":e(a,37,60),"drop-hint-color":e(a,26,35),"drop-hint-width":5,"order-hint-area-color":e(a,100,30).set("a",.5),"order-hint-path-color":e(a,100,25),"order-hint-path-width":1,"text-selection-color":e(a,100,20),"line-height":1.5}}var g,h=b.r(17),i=b.r(32),j={red:0,soil:25,green:122,blue:204,purple:246,pink:334};for(g in j)i.register("fresh-"+g,f(j[g])),i.register("fresh-"+g+"-compat",f(j[g],!0))}},b[78]={value:function(a,c,d){var e=b.r(32);["snow","snow-compact"].forEach(function(a){var b="snow-compact"==a;e.register(a,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":b?[5,10]:[15,25],"root-margin":b?15:30,"root-radius":5,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":b?[4,10]:[6,20],"main-margin":b?[5,10]:[20,40],"main-radius":5,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"black","sub-background":"white","sub-stroke":"white","sub-font-size":12,"sub-padding":[5,10],"sub-margin":b?[5,10]:[10,20],"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})})}},b[79]={value:function(a,c,d){var e=b.r(32);["tianpan","tianpan-compact"].forEach(function(a){var b="tianpan-compact"==a;e.register(a,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":25,"root-padding":b?15:20,"root-margin":b?[15,25]:100,"root-radius":30,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","root-shape":"circle","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":15,"main-padding":b?10:12,"main-margin":b?10:12,"main-radius":10,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","main-shape":"circle","sub-color":"#333","sub-background":"#99ca6a","sub-stroke":"#a4c5c0","sub-font-size":13,"sub-padding":5,"sub-margin":b?6:10,"sub-tree-margin":30,"sub-radius":5,"sub-space":5,"sub-shadow":"rgba(0, 0, 0, .25)","sub-shape":"circle","connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.4})})}},b[80]={value:function(a,c,d){b.r(32).register("wire",{background:"black",color:"#999",stroke:"none",padding:10,margin:20,"font-size":14,"connect-color":"#999","connect-width":1,"selected-background":"#999","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})}},b[81]={value:function(a,c,d){function e(){return{background:"#fbfbfb","root-color":"white","root-background":"rgb(115, 161, 191)","root-stroke":"rgb(115, 161, 191)","root-font-size":16,"root-padding":[12,24],"root-margin":[30,100],"root-radius":5,"root-space":10,"main-color":"black","main-background":"rgb(238, 243, 246)","main-stroke":"rgb{115, 161, 191)","main-stroke-width":1,"main-font-size":14,"main-padding":[6,20],"main-margin":20,"main-radius":3,"main-space":5,"sub-color":"black","sub-background":"transparent","sub-stroke":"none","sub-font-size":14,"sub-padding":[5,10],"sub-margin":[15,20],"sub-radius":5,"sub-space":5,"connect-color":"rgb(115, 161, 191)","connect-width":1,"connect-radius":5,"selected-stroke":"rgb{115, 161, 191)","selected-stroke-width":"1","blur-selected-stroke":"rgb(143, 155, 163)","marquee-background":"rgba(153, 214, 255, 0.1)","marquee-stroke":"rgb(115, 161 191)","drop-hint-color":"rgb(66, 94, 112)","drop-hint-width":5,"order-hint-area-color":"rgba(0, 92, 153, 0.5)","order-hint-path-color":"rgb(0, 76, 128)","order-hint-path-width":1,"text-selection-color":"rgb(0, 61, 102)","line-height":1.5,"expander-outline-stroke":"gray","expander-outline-fill":"white","expander-sign-stroke":"gray"}}var f=b.r(32),g=e();g.background="#E8F2FF",g["root-color"]="#FFFFFF",g["root-background"]="#448AFF",g["root-stroke"]="#448AFF",g["main-color"]="#505F79",g["main-background"]="#FFFFFF",g["main-stroke"]="#D6D9DD",g["sub-color"]="#505F79",g["connect-color"]="#D6D9DD",g["selected-stroke"]="#172B4D",g["blur-selected-stroke"]="#A7AFBC",g["expander-outline-stroke"]="#D6D9DD",g["expander-outline-fill"]="#E8F2FF",g["expander-sign-stroke"]="#D6D9DD",f.register("wiz-blue",g);var h=e();h.background="#FEF5E2",h["root-color"]="#FFFFFF",h["root-background"]="#BB9325",h["root-stroke"]="#BB9325",h["main-color"]="#505F79",h["main-background"]="#F7DD98",h["main-stroke"]="#F7DD98",h["sub-color"]="#505F79",h["connect-color"]="#BB9325",h["selected-stroke"]="#448AFF",h["blur-selected-stroke"]="#D6D9DD",h["expander-outline-stroke"]="#BB9325",h["expander-outline-fill"]="#FEF5E2",h["expander-sign-stroke"]="#BB9325",f.register("wiz-golden",h);var i=e();i.background="#FFFFFF",i["root-color"]="#247056",i["root-background"]="#CEF2DF",i["root-stroke"]="#0E9C6C",i["main-color"]="#008399",i["main-background"]="#E6FCFF",i["main-stroke"]="#00A3BF",i["sub-color"]="#505F79",i["connect-color"]="#A7AFBC",i["selected-stroke"]="#448AFF",i["blur-selected-stroke"]="#D6D9DD",i["expander-outline-stroke"]="#A7AFBC",i["expander-outline-fill"]="#FFFFFF",i["expander-sign-stroke"]="#A7AFBC",f.register("wiz-lightGreen",i);var j=e();j.background="#FDF6F6",j["root-color"]="#EF403A",j["root-background"]="#FFFFFF",j["root-stroke"]="#FFFFFF",j["main-color"]="#DA251F",j["main-background"]="#FFDBDB",j["main-stroke"]="#FFDBDB",j["sub-color"]="#EF403A",j["connect-color"]="#FFBDAD",j["selected-stroke"]="#448AFF",j["blur-selected-stroke"]="#D6D9DD",j["expander-outline-stroke"]="#FFBDAD",j["expander-outline-fill"]="#FDF6F6",j["expander-sign-stroke"]="#FFBDAD",f.register("wiz-sakura",j);var k=e();k.background="#172B4D",k["root-color"]="#172B4D",k["root-background"]="#88B5FF",k["root-stroke"]="#88B5FF",k["main-color"]="#FFFFFF",k["main-background"]="#448AFF",k["main-stroke"]="#448AFF",k["sub-color"]="#88B5FF",k["connect-color"]="#88B5FF",k["selected-stroke"]="#FFFFFF",k["blur-selected-stroke"]="#A7AFBC",k["expander-outline-stroke"]="#88B5FF",k["expander-outline-fill"]="#88B5FF",k["expander-sign-stroke"]="#172B4D",f.register("wiz-darkBlue",k);var l=e();l.background="#E6E9ED",l["root-color"]="#FFFFFF",l["root-background"]="#DA251F",l["root-stroke"]="#DA251F",l["main-color"]="#FFFFFF",l["main-background"]="#272F40",l["main-stroke"]="#272F40",l["sub-color"]="#172B4D",l["connect-color"]="#272F40",l["selected-stroke"]="#448AFF",l["blur-selected-stroke"]="#A7AFBC",l["expander-outline-stroke"]="#272F40",l["expander-outline-fill"]="#E6E9ED",l["expander-sign-stroke"]="#272F40",f.register("wiz-black",l);var m=e();m.background="#E9DFFF",m["root-color"]="#8251DD",m["root-background"]="#FFFFFF",m["root-stroke"]="#FFFFFF",m["main-color"]="#6238B0",m["main-background"]="#DDC4FF",m["main-stroke"]="#DDC4FF",m["sub-color"]="#6238B0",m["connect-color"]="#8251DD",m["selected-stroke"]="#448AFF",m["blur-selected-stroke"]="#A7AFBC",m["expander-outline-stroke"]="#8251DD",m["expander-outline-fill"]="#E9DFFF",m["expander-sign-stroke"]="#8251DD",f.register("wiz-purple",m);var n=e();n.background="#272F40",n["root-color"]="#FFFFFF",n["root-background"]="#448AFF",n["root-stroke"]="#448AFF",n["main-color"]="#172B4D",n["main-background"]="#D6D9DD",n["main-stroke"]="#D6D9DD",n["sub-color"]="#D6D9DD",n["connect-color"]="#D6D9DD",n["selected-stroke"]="#1B63DC",n["blur-selected-stroke"]="#A7AFBC",n["expander-outline-stroke"]="#D6D9DD",n["expander-outline-fill"]="#272F40",n["expander-sign-stroke"]="#D6D9DD",f.register("wiz-cyan",n);var o=e();o.background="#E6E9ED",o["root-color"]="#FFFFFF",o["root-background"]="#FF8B00",o["root-stroke"]="#FF8B00",o["main-color"]="#272F40",o["main-background"]="#FFFFFF",o["main-stroke"]="#FFFFFF",o["sub-color"]="#272F40",o["connect-color"]="#A7AFBC",o["selected-stroke"]="#448AFF",o["blur-selected-stroke"]="#A7AFBC",o["expander-outline-stroke"]="#A7AFBC",o["expander-outline-fill"]="#E6E9ED",o["expander-sign-stroke"]="#A7AFBC",f.register("wiz-silver",o);var p=e();p.background="#247056",p["root-color"]="#247056",p["root-background"]="#FFFFFF",p["root-stroke"]="#FFFFFF",p["main-color"]="#247056",p["main-background"]="#F7DD98",p["main-stroke"]="#F7DD98",p["sub-color"]="#FFECC6",p["connect-color"]="#F7DD98",p["selected-stroke"]="#172B4D",p["blur-selected-stroke"]="#A7AFBC",p["expander-outline-stroke"]="#F7DD98",p["expander-outline-fill"]="#247056",p["expander-sign-stroke"]="#F7DD98",f.register("wiz-green",p),f.register("wiz",i);var q=e();q.background="#23272e",q["root-color"]="#2d3138",q["root-background"]="#97a3b8",q["root-stroke"]="#97a3b8",q["main-color"]="#97a3b8",q["main-background"]="#2b2f38",q["main-stroke"]="#2b2f38",q["sub-color"]="#97a3b8",q["connect-color"]="#404959",q["selected-stroke"]="#448aff",q["blur-selected-stroke"]="#627088",q["expander-outline-stroke"]="#97a3b8",q["expander-outline-fill"]="#97a3b8",q["expander-sign-stroke"]="#2d3138",f.register("wiz-windows-night",q);var r=e();r.background="#272727",r["root-color"]="#000000",r["root-background"]="#848484",r["root-stroke"]="#848484",r["main-color"]="#a6a6a6",r["main-background"]="#333333",r["main-stroke"]="#333333",r["sub-color"]="#a6a6a6",r["connect-color"]="#474747",r["selected-stroke"]="#448aff",r["blur-selected-stroke"]="#5c5c5c",r["expander-outline-stroke"]="#848484",r["expander-outline-fill"]="#848484",r["expander-sign-stroke"]="#000000",f.register("wiz-mac-night",r);var s=e();s.background="#1f2126",s["root-color"]="#353c47",s["root-background"]="#7990b6",s["root-stroke"]="#7990b6",s["main-color"]="#7990b6",s["main-background"]="#32353e",s["main-stroke"]="#32353e",s["sub-color"]="#7990b6",s["connect-color"]="rgba(68, 138, 255, .2)",s["selected-stroke"]="#448aff",s["blur-selected-stroke"]="#536178",s["expander-outline-stroke"]="#7990b6",s["expander-outline-fill"]="#7990b6",s["expander-sign-stroke"]="#353c47",f.register("wiz-ios-night",s);var t=e();t.background="#1f2126",t["root-color"]="#455a64",t["root-background"]="#7990b6",t["root-stroke"]="#7990b6",t["main-color"]="#7990b6",t["main-background"]="#353c47",t["main-stroke"]="#353c47",t["sub-color"]="#7990b6",t["connect-color"]="#273d62",t["selected-stroke"]="#448aff",t["blur-selected-stroke"]="#536178",t["expander-outline-stroke"]="#7990b6",t["expander-outline-fill"]="#7990b6",t["expander-sign-stroke"]="#455a64",f.register("wiz-android-night",t)}};var c={"expose-kityminder":34};a("expose-kityminder")}(); \ No newline at end of file +!function(){function a(a){b.r([c[a]])}var b={r:function(a){if(b[a].inited)return b[a].value;if("function"!=typeof b[a].value)return b[a].inited=!0,b[a].value;var c={exports:{}},d=b[a].value(null,c.exports,c);if(b[a].inited=!0,b[a].value=d,void 0!==d)return d;for(var e in c.exports)if(c.exports.hasOwnProperty(e))return b[a].inited=!0,b[a].value=c.exports,c.exports}};b[0]={value:function(a,c,d){var e=b.r(17),f=b.r(11),g=(new e.Marker).pipe(function(){var a=7,b=new e.Circle(a-1);this.addShape(b),this.setRef(a-1,0).setViewBox(-a,-a,a+a,a+a).setWidth(a).setHeight(a),this.dot=b,this.node.setAttribute("markerUnits","userSpaceOnUse")});f.register("arc",function(a,b,c,d,f){var h,i,j,k=a.getLayoutBox(),l=b.getLayoutBox(),m=Math.abs,n=[],o=k.x>l.x?"right":"left";a.getMinder().getPaper().addResource(g),h=new e.Point(l.cx,l.cy),i="left"==o?new e.Point(k.right+2,k.cy):new e.Point(k.left-2,k.cy),j=e.Vector.fromPoints(h,i),n.push("M",h),n.push("A",m(j.x),m(j.y),0,0,j.x*j.y>0?0:1,i),c.setMarker(g),g.dot.fill(f),c.setPathData(n)})}},b[1]={value:function(a,c,d){var e=b.r(17),f=b.r(11),g=(new e.Marker).pipe(function(){var a=7,b=new e.Circle(a-1);this.addShape(b),this.setRef(a-1,0).setViewBox(-a,-a,a+a,a+a).setWidth(a).setHeight(a),this.dot=b,this.node.setAttribute("markerUnits","userSpaceOnUse")});f.register("arc_tp",function(a,b,c,d,f){var h=a.getLayoutBox(),i=b.getLayoutBox(),j=a.getIndex(),k=b.getChildren()[j+1];a.getIndex()>0&&(i=b.getChildren()[j-1].getLayoutBox());var l,m,n=(Math.abs,[]);h.x,i.x;a.getMinder().getPaper().addResource(g),l=new e.Point(i.cx,i.cy),m=new e.Point(h.cx,h.cy);var o=Math.sqrt(Math.pow(l.x-m.x,2)+Math.pow(l.y-m.y,2));if(o=0==a.getIndex()?.4*o:o,e.Vector.fromPoints(l,m),n.push("M",l),n.push("A",o,o,0,0,1,m),c.setMarker(g),g.dot.fill(f),c.setPathData(n),k&&k.getConnection()){var p=k.getConnection(),q=k.getLayoutBox(),r=new e.Point(q.cx,q.cy),s=Math.sqrt(Math.pow(m.x-r.x,2)+Math.pow(m.y-r.y,2));n=[],n.push("M",m),n.push("A",s,s,0,0,1,r),p.setMarker(g),g.dot.fill(f),p.setPathData(n)}})}},b[2]={value:function(a,c,d){b.r(17);b.r(11).register("bezier",function(a,b,c){var d=b.getLayoutVertexOut(),e=a.getLayoutVertexIn(),f=b.getLayoutVectorOut().normalize(),g=Math.round,h=Math.abs,i=[];if(i.push("M",g(d.x),g(d.y)),h(f.x)>h(f.y)){var j=(e.x+d.x)/2;i.push("C",j,d.y,j,e.y,e.x,e.y)}else{var k=(e.y+d.y)/2;i.push("C",d.x,k,e.x,k,e.x,e.y)}c.setMarker(null),c.setPathData(i)})}},b[3]={value:function(a,c,d){b.r(17);b.r(11).register("fish-bone-master",function(a,b,c){var d=b.getLayoutVertexOut(),e=a.getLayoutVertexIn(),f=Math.abs,g=f(d.y-e.y),h=f(d.x-e.x),i=[];i.push("M",d.x,d.y),i.push("h",h-g),i.push("L",e.x,e.y),c.setMarker(null),c.setPathData(i)})}},b[4]={value:function(a,c,d){b.r(17);b.r(11).register("l",function(a,b,c){var d=b.getLayoutVertexOut(),e=a.getLayoutVertexIn(),f=b.getLayoutVectorOut(),g=[],h=Math.round,i=Math.abs;g.push("M",d.round()),i(f.x)>i(f.y)?g.push("H",h(e.x)):g.push("V",e.y),g.push("L",e),c.setPathData(g)})}},b[5]={value:function(a,c,d){b.r(17);b.r(11).register("poly",function(a,b,c,d){var e=b.getLayoutVertexOut(),f=a.getLayoutVertexIn(),g=b.getLayoutVectorOut().normalize(),h=Math.round,i=Math.abs,j=[];switch(j.push("M",h(e.x),h(e.y)),!0){case i(g.x)>i(g.y)&&g.x<0:j.push("h",-b.getStyle("margin-left")),j.push("v",f.y-e.y),j.push("H",f.x);break;case i(g.x)>i(g.y)&&g.x>=0:j.push("h",b.getStyle("margin-right")),j.push("v",f.y-e.y),j.push("H",f.x);break;case i(g.x)<=i(g.y)&&g.y<0:j.push("v",-b.getStyle("margin-top")),j.push("h",f.x-e.x),j.push("V",f.y);break;case i(g.x)<=i(g.y)&&g.y>=0:j.push("v",b.getStyle("margin-bottom")),j.push("h",f.x-e.x),j.push("V",f.y)}c.setMarker(null),c.setPathData(j)})}},b[6]={value:function(a,c,d){var e=b.r(17);b.r(11).register("under",function(a,b,c,d,f){var g,h,i,j,k=a.getLayoutBox(),l=b.getLayoutBox(),m=(Math.abs,[]),n=k.x>l.x?"right":"left",o=(a.getStyle("connect-radius"),k.bottom+3),p="sub"==b.getType()?l.bottom+3:l.cy;"right"==n?(g=new e.Point(l.right,p),h=new e.Point(k.left-10,o),i=new e.Point(k.right,o)):(g=new e.Point(l.left,p),h=new e.Point(k.right+10,o),i=new e.Point(k.left,o)),j=(g.x+h.x)/2,m.push("M",g),m.push("C",j,g.y,j,h.y,h),m.push("L",i),c.setMarker(null),c.setPathData(m)})}},b[7]={value:function(a,c,d){var e=b.r(17),f=b.r(19);if(-1!=location.href.indexOf("boxv")){var g;Object.defineProperty(e.Box.prototype,"visualization",{get:function(){return g?g.setBox(this):null}}),f.registerInitHook(function(){this.on("paperrender",function(){g=new e.Rect,g.fill("rgba(200, 200, 200, .5)"),g.stroke("orange"),this.getRenderContainer().addShape(g)})})}}},b[8]={value:function(a,c,d){var e=b.r(19),f={enableAnimation:!0,layoutAnimationDuration:300,viewAnimationDuration:100,zoomAnimationDuration:300},g={};e.registerInitHook(function(){this.setDefaultOptions(f),this.getOption("enableAnimation")||this.disableAnimation()}),e.prototype.enableAnimation=function(){for(var a in f)f.hasOwnProperty(a)&&this.setOption(g[a])},e.prototype.disableAnimation=function(){for(var a in f)f.hasOwnProperty(a)&&(g[a]=this.getOption(a),this.setOption(a,0))}}},b[9]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19)),g=(b.r(21),b.r(13)),h=0,i=e.createClass("Command",{constructor:function(){this._isContentChange=!0,this._isSelectionChange=!1},execute:function(a,b){throw new Error("Not Implement: Command.execute()")},setContentChanged:function(a){this._isContentChange=!!a},isContentChanged:function(){return this._isContentChange},setSelectionChanged:function(a){this._isSelectionChange=!!a},isSelectionChanged:function(){return this._isContentChange},queryState:function(a){return h},queryValue:function(a){return 0},isNeedUndo:function(){return!0}});i.STATE_NORMAL=h,i.STATE_ACTIVE=1,i.STATE_DISABLED=-1,e.extendClass(f,{_getCommand:function(a){return this._commands[a.toLowerCase()]},_queryCommand:function(a,b,c){var d=this._getCommand(a);if(d){var e=d["query"+b];if(e)return e.apply(d,[this].concat(c))}return 0},queryCommandState:function(a){return this._queryCommand(a,"State",[].slice.call(arguments,1))},queryCommandValue:function(a){return this._queryCommand(a,"Value",[].slice.call(arguments,1))},execCommand:function(a){if(!a)return null;a=a.toLowerCase();var b,c,d,e,f=[].slice.call(arguments,1),h=this;return b=this._getCommand(a),e={command:b,commandName:a.toLowerCase(),commandArgs:f},!(!b||!~this.queryCommandState(a))&&(this._hasEnterExecCommand?(d=b.execute.apply(b,[h].concat(f)),this._hasEnterExecCommand||this._interactChange()):(this._hasEnterExecCommand=!0,c=this._fire(new g("beforeExecCommand",e,!0)),c||(this._fire(new g("preExecCommand",e,!1)),d=b.execute.apply(b,[h].concat(f)),this._fire(new g("execCommand",e,!1)),b.isContentChanged()&&this._firePharse(new g("contentchange")),this._interactChange()),this._hasEnterExecCommand=!1),void 0===d?null:d)}}),d.exports=i}},b[10]={value:function(a,c,d){function e(a){switch(a.version||(a.root?"1.4.0":"1.1.3")){case"1.1.3":h(a);case"1.2.0":case"1.2.1":g(a);case"1.3.0":case"1.3.1":case"1.3.2":case"1.3.3":case"1.3.4":case"1.3.5":i(a)}return a}function f(a,b){b(a),a.children&&a.children.forEach(function(a){f(a,b)})}function g(a){f(a,function(a){var b=a.data;delete b.layout_bottom_offset,delete b.layout_default_offset,delete b.layout_filetree_offset})}function h(a){var b=a.data.currentstyle;delete a.data.currentstyle,"bottom"==b?(a.template="structure",a.theme="snow"):"default"==b&&(a.template="default",a.theme="classic"),f(a,function(a){var b=a.data;"PriorityIcon"in b&&(b.priority=b.PriorityIcon,delete b.PriorityIcon),"ProgressIcon"in b&&(b.progress=1+(b.ProgressIcon-1<<1),delete b.ProgressIcon),delete b.point,delete b.layout})}function i(a){a.root={data:a.data,children:a.children},delete a.data,delete a.children}b.r(33);return e}},b[11]={value:function(a,c,d){function e(a,b){k[a]=b}var f=b.r(17),g=b.r(33),h=b.r(20),i=b.r(19),j=b.r(21),k={};e("default",function(a,b,c){c.setPathData(["M",b.getLayoutVertexOut(),"L",a.getLayoutVertexIn()])}),f.extendClass(j,{getConnect:function(){return this.data.connect||"default"},getConnectProvider:function(){return k[this.getConnect()]||k.default},getConnection:function(){return this._connection||null}}),f.extendClass(i,{getConnectContainer:function(){return this._connectContainer},createConnect:function(a){if(!a.isRoot()){var b=new f.Path;a._connection=b,this._connectContainer.addShape(b),this.updateConnect(a)}},removeConnect:function(a){var b=this;a.traverse(function(a){b._connectContainer.removeShape(a._connection),a._connection=null})},updateConnect:function(a){var b=a._connection,c=a.parent;if(c&&b){if(c.isCollapsed())return void b.setVisible(!1);b.setVisible(!0);var d=a.getConnectProvider(),e=a.getStyle("connect-color")||"white",f=a.getStyle("connect-width")||2;b.stroke(e,f),d(a,c,b,f,e),f%2==0?b.setTranslate(.5,.5):b.setTranslate(0,0)}}}),h.register("Connect",{init:function(){this._connectContainer=(new f.Group).setId(g.uuid("minder_connect_group")),this.getRenderContainer().prependShape(this._connectContainer)},events:{nodeattach:function(a){this.createConnect(a.node)},nodedetach:function(a){this.removeConnect(a.node)},"layoutapply layoutfinish noderender":function(a){this.updateConnect(a.node)}}}),c.register=e}},b[12]={value:function(a,c,d){function e(a,b){l[a]=b;for(var c in l)l.hasOwnProperty(c)&&(l[c]=l[c],l[c].name=c)}function f(a){return void 0===a?l:l[a]||null}var g=b.r(17),h=(b.r(33),b.r(19)),i=(b.r(21),b.r(13)),j=b.r(10),k=b.r(25),l={};c.registerProtocol=e,c.getRegisterProtocol=f,g.extendClass(h,{setup:function(a){if("string"==typeof a&&(a=document.querySelector(a)),a){var b=a.getAttribute("minder-data-type");if(b in l){var c=a.textContent;a.textContent=null,this.renderTo(a),this.importData(b,c)}return this}},exportJson:function(){function a(b){var c={};c.data=b.getData();var d=b.getChildren();c.children=[];for(var e=0;e200&&(b=0),f(a,a.parent?a.parent.getGlobalLayoutTransform():new g.Matrix),this}}),d.exports=l}},b[19]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=[],h=e.createClass("Minder",{constructor:function(a){this._options=f.extend({},a);for(var b,c=g.slice();c.length;)"function"==typeof(b=c.shift())&&b.call(this,this._options);this.fire("finishInitHook")}});h.version="1.4.43",h.registerInitHook=function(a){g.push(a)},d.exports=h}},b[20]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(19),h={};c.register=function(a,b){h[a]=b},g.registerInitHook(function(){this._initModules()}),e.extendClass(g,{_initModules:function(){var a=h,b=this._options.modules||f.keys(a);this._commands={},this._query={},this._modules={},this._rendererClasses={};var c,d,e,g,i,j,k,l=this;for(c=0;c=0&&(b=this.children.splice(c,1)[0],b.parent=null,b.root=b)},clearChildren:function(){this.children=[]},getChild:function(a){return this.children[a]},getRenderContainer:function(){return this.rc},getCommonAncestor:function(a){return h.getCommonAncestor(this,a)},contains:function(a){return this==a||this.isAncestorOf(a)},clone:function(){var a=new h;return a.data=f.clone(this.data),this.children.forEach(function(b){a.appendChild(b.clone())}),a},compareTo:function(a){if(!f.comparePlainObject(this.data,a.data))return!1;if(!f.comparePlainObject(this.temp,a.temp))return!1;if(this.children.length!=a.children.length)return!1;for(var b=0;this.children[b];){if(!this.children[b].compareTo(a.children[b]))return!1;b++}return!0},getMinder:function(){return this.getRoot().minder}});h.getCommonAncestor=function(a,b){if(a instanceof Array)return h.getCommonAncestor.apply(this,a);switch(arguments.length){case 1:return a.parent||a;case 2:if(a.isAncestorOf(b))return a;if(b.isAncestorOf(a))return b;for(var c=a.parent;c&&!c.isAncestorOf(b);)c=c.parent;return c;default:return Array.prototype.reduce.call(arguments,function(a,b){return h.getCommonAncestor(a,b)},a)}},e.extendClass(g,{getRoot:function(){return this._root},setRoot:function(a){this._root=a,a.minder=this},getAllNode:function(){var a=[];return this.getRoot().traverse(function(b){a.push(b)}),a},getNodeById:function(a){return this.getNodesById([a])[0]},getNodesById:function(a){var b=this.getAllNode(),c=[];return b.forEach(function(b){-1!=a.indexOf(b.getData("id"))&&c.push(b)}),c},createNode:function(a,b,c){var d=new h(a);return this.fire("nodecreate",{node:d,parent:b,index:c}),this.appendNode(d,b,c),d},appendNode:function(a,b,c){return b&&b.insertChild(a,c),this.attachNode(a),this},removeNode:function(a){a.parent&&(a.parent.removeChild(a),this.detachNode(a),this.fire("noderemove",{node:a}))},attachNode:function(a){var b=this.getRenderContainer();a.traverse(function(a){a.attached=!0,b.addShape(a.getRenderContainer())}),b.addShape(a.getRenderContainer()),this.fire("nodeattach",{node:a})},detachNode:function(a){var b=this.getRenderContainer();a.traverse(function(a){a.attached=!1,b.removeShape(a.getRenderContainer())}),this.fire("nodedetach",{node:a})},getMinderTitle:function(){return this.getRoot().getText()}}),d.exports=h}},b[22]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(19);g.registerInitHook(function(a){this._defaultOptions={}}),e.extendClass(g,{setDefaultOptions:function(a){return f.extend(this._defaultOptions,a),this},getOption:function(a){return a?a in this._options?this._options[a]:this._defaultOptions[a]:f.extend({},this._defaultOptions,this._options)},setOption:function(a,b){this._options[a]=b}})}},b[23]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(19);g.registerInitHook(function(){this._initPaper()}),e.extendClass(g,{_initPaper:function(){this._paper=new e.Paper,this._paper._minder=this,this._paper.getNode().ondragstart=function(a){a.preventDefault()},this._paper.shapeNode.setAttribute("transform","translate(0.5, 0.5)"),this._addRenderContainer(),this.setRoot(this.createNode()),this._options.renderTo&&this.renderTo(this._options.renderTo)},_addRenderContainer:function(){this._rc=(new e.Group).setId(f.uuid("minder")),this._paper.addShape(this._rc)},renderTo:function(a){if("string"==typeof a&&(a=document.querySelector(a)),a){if("script"==a.tagName.toLowerCase()){var b=document.createElement("div");b.id=a.id,b.class=a.class,a.parentNode.insertBefore(b,a),a.parentNode.removeChild(a),a=b}a.classList.add("km-view"),this._paper.renderTo(this._renderTarget=a),this._bindEvents(),this.fire("paperrender")}return this},getRenderContainer:function(){return this._rc},getPaper:function(){return this._paper},getRenderTarget:function(){return this._renderTarget}})}},b[24]={value:function(a,c,d){function e(a,b,c,d){return c=a.createNode(b.data,c,d),b.children.forEach(function(b,d){e(a,b,c,d)}),c}function f(a,b){var c=b.path.split("/");c.shift();var d,f=c.shift();if("root"==f){var g=c.indexOf("data");if(g>-1){f="data";var h=c.splice(g+1);b.dataPath=h}else f="node";d=a.getRoot();for(var i,j;i=c.shift();)"children"!=i&&(void 0!==j&&(d=d.getChild(j)),j=+i);b.index=j,b.node=d}switch(b.express=[f,b.op].join(".")){case"theme.replace":a.useTheme(b.value);break;case"template.replace":a.useTemplate(b.value);break;case"node.add":e(a,b.value,b.node,b.index).renderTree(),a.layout();break;case"node.remove":a.removeNode(b.node.getChild(b.index)),a.layout();break;case"data.add":case"data.replace":case"data.remove":var k,l=b.node.data;for(c=b.dataPath.slice();l&&c.length>1;)k=c.shift(),k in l?l=l[k]:"remove"!=b.op&&(l=l[k]={});l&&(k=c.shift(),l[k]=b.value),"expandState"==k?d.renderTree():d.render(),a.layout()}a.fire("patch",{patch:b})}var g=b.r(17),h=b.r(19);g.extendClass(h,{applyPatches:function(a){for(var b=0;b=0;--c)if(a[c].isAncestorOf(b))return!0;return!1}var c,d=this.getSelectedNodes().slice(0),e=[],f=d.indexOf(this.getRoot());for(~f&&!a&&d.splice(f,1),d.sort(function(a,b){return a.getLevel()-b.getLevel()});c=d.pop();)b(d,c)||e.push(c);return e}}),e.extendClass(h,{isSelected:function(){var a=this.getMinder();return a&&-1!=a.getSelectedNodes().indexOf(this)}})}},b[29]={value:function(a,c,d){function e(a){var b=4096,c=8192,d=16384,e=0;return"string"==typeof a?a.toLowerCase().split(/\+\s*/).forEach(function(a){switch(a){case"ctrl":case"cmd":e|=b;break;case"alt":e|=c;break;case"shift":e|=d;break;default:e|=h[a]}}):((a.ctrlKey||a.metaKey)&&(e|=b),a.altKey&&(e|=c),a.shiftKey&&(e|=d),e|=a.keyCode),e}var f=b.r(17),g=b.r(33),h=b.r(15),i=b.r(19),j=b.r(13);f.extendClass(j,{isShortcutKey:function(a){var b=this.originEvent;return!!b&&e(a)==e(b)}}),i.registerInitHook(function(){this._initShortcutKey()}),f.extendClass(i,{_initShortcutKey:function(){this._bindShortcutKeys()},_bindShortcutKeys:function(){var a=this._shortcutKeys={};this.on("keydown",function(b){for(var c in a)if(a.hasOwnProperty(c)&&b.isShortcutKey(c)){var d=a[c];if(d.__statusCondition&&d.__statusCondition!=this.getStatus())return;d(),b.preventDefault()}})},addShortcut:function(a,b){var c=this._shortcutKeys;a.split(/\|\s*/).forEach(function(a){var d,e=a.split("::");e.length>1&&(a=e[1],d=e[0],b.__statusCondition=d),c[a]=b})},addCommandShortcutKeys:function(a,b){var c=this._commandShortcutKeys||(this._commandShortcutKeys={}),d={};b?d[a]=b:d=a;var e=this;g.each(d,function(a,b){c[b]=a,e.addShortcut(a,function(){-1!==e.queryCommandState(b)&&e.execCommand(b)})})},getCommandShortcutKey:function(a){var b=this._commandShortcutKeys;return b&&b[a]||null},supportClipboardEvent:function(a){return!!a.ClipboardEvent}(window)})}},b[30]={value:function(a,c,d){var e=b.r(17),f=b.r(19),g=~window.location.href.indexOf("status"),h=~window.location.href.indexOf("trace");f.registerInitHook(function(){this._initStatus()}),e.extendClass(f,{_initStatus:function(){this._status="normal",this._rollbackStatus="normal"},setStatus:function(a,b){return"readonly"!=this._status||b?(a!=this._status&&(this._rollbackStatus=this._status,this._status=a,this.fire("statuschange",{lastStatus:this._rollbackStatus,currentStatus:this._status}),g&&(console.log(window.event.type,this._rollbackStatus,"->",this._status),h&&console.trace())),this):this},rollbackStatus:function(){this.setStatus(this._rollbackStatus)},getRollbackStatus:function(){return this._rollbackStatus},getStatus:function(){return this._status}})}},b[31]={value:function(a,c,d){function e(a,b){l[a]=b}var f=b.r(17),g=b.r(33),h=b.r(19),i=b.r(9),j=b.r(21),k=b.r(20),l={};c.register=e,g.extend(h,{getTemplateList:function(){return l}}),f.extendClass(h,function(){var a=h.prototype.getTheme;return{useTemplate:function(a,b){this.setTemplate(a),this.refresh(b||800)},getTemplate:function(){return this._template||"default"},setTemplate:function(a){this._template=a||null},getTemplateSupport:function(a){var b=l[this.getTemplate()];return b&&b[a]},getTheme:function(b){return(this.getTemplateSupport("getTheme")||a).call(this,b)}}}()),f.extendClass(j,function(){var a=j.prototype.getLayout,b=j.prototype.getConnect;return{getLayout:function(){return(this.getMinder().getTemplateSupport("getLayout")||a).call(this,this)},getConnect:function(){return(this.getMinder().getTemplateSupport("getConnect")||b).call(this,this)}}}()),k.register("TemplateModule",{commands:{template:f.createClass("TemplateCommand",{base:i,execute:function(a,b){a.useTemplate(b),a.execCommand("camera")},queryValue:function(a){return a.getTemplate()||"default"}})}})}},b[32]={value:function(a,c,d){function e(a,b){m[a]=b}var f=b.r(17),g=b.r(33),h=b.r(19),i=b.r(21),j=b.r(20),k=b.r(9),l={left:function(a){return 3 in a&&a[3]||1 in a&&a[1]||a[0]},right:function(a){return 1 in a&&a[1]||a[0]},top:function(a){return a[0]},bottom:function(a){return 2 in a&&a[2]||a[0]}},m={};c.register=e,g.extend(h,{getThemeList:function(){return m}}),f.extendClass(h,{themeRegister:e,useTheme:function(a){return this.setTheme(a),this.refresh(800),!0},setTheme:function(a){if(a&&!m[a])throw new Error("Theme "+a+" not exists!");var b=this._theme;this._theme=a||null;var c=this.getRenderTarget();return c&&(c.classList.remove("km-theme-"+b),a&&c.classList.add("km-theme-"+a),c.style.background=this.getStyle("background")),this.fire("themechange",{theme:a}),this},getTheme:function(a){return this._theme||this.getOption("defaultTheme")||"fresh-blue"},getThemeData:function(a){return a&&m[a]?m[a]:null},getThemeItems:function(a){this.getTheme(a);return m[this.getTheme(a)]},getStyle:function(a,b){var c,d,e,f,h=this.getThemeItems(b);if(a in h)return h[a];if(c=a.split("-"),c.length<2)return null;if(d=c.pop(),(a=c.join("-"))in h){if(e=h[a],g.isArray(e)&&(f=l[d]))return f(e);if(!isNaN(e))return e}return null},getNodeStyle:function(a,b){var c=this.getStyle(a.getType()+"-"+b,a);return null!==c?c:this.getStyle(b,a)}}),f.extendClass(i,{getStyle:function(a){return this.getMinder().getNodeStyle(this,a)}}),j.register("Theme",{defaultOptions:{defaultTheme:"fresh-blue"},commands:{theme:f.createClass("ThemeCommand",{base:k,execute:function(a,b){return a.useTheme(b)},queryValue:function(a){return a.getTheme()||"default"}})}}),h.registerInitHook(function(){this.setTheme()})}},b[33]={value:function(a,c){var d=b.r(17),e={};c.extend=d.Utils.extend.bind(d.Utils),c.each=d.Utils.each.bind(d.Utils),c.uuid=function(a){return e[a]=e[a]?e[a]+1:1,a+e[a]},c.guid=function(){return(1e6*+new Date+Math.floor(1e6*Math.random())).toString(36)},c.trim=function(a){return a.replace(/(^[ \t\n\r]+)|([ \t\n\r]+$)/g,"")},c.keys=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b},c.clone=function(a){return JSON.parse(JSON.stringify(a))},c.comparePlainObject=function(a,b){return JSON.stringify(a)==JSON.stringify(b)},c.encodeHtml=function(a,b){return a?a.replace(b||/[&<">'](?:(amp|lt|quot|gt|#39|nbsp);)?/g,function(a,b){return b?a:{"<":"<","&":"&",'"':""",">":">","'":"'"}[a]}):""},c.clearWhiteSpace=function(a){return a.replace(/[\u200b\t\r\n]/g,"")},c.each(["String","Function","Array","Number","RegExp","Object"],function(a){var b=Object.prototype.toString;c["is"+a]=function(c){return b.apply(c)=="[object "+a+"]"}})}},b[34]={value:function(a,c,d){d.exports=window.kityminder=b.r(35)}},b[35]={value:function(a,c,d){var e={version:b.r(19).version};b.r(33),e.Minder=b.r(19),e.Command=b.r(9),e.Node=b.r(21),b.r(22),b.r(8),e.Event=b.r(13),e.data=b.r(12),b.r(10),e.KeyMap=b.r(15),b.r(29),b.r(30),b.r(23),b.r(28),b.r(14),b.r(16),e.Module=b.r(20),b.r(26),e.Render=b.r(27),e.Connect=b.r(11),e.Layout=b.r(18),e.Theme=b.r(32),e.Template=b.r(31),e.Promise=b.r(25),b.r(7),b.r(24),b.r(42),b.r(43),b.r(44),b.r(45),b.r(46),b.r(47),b.r(48),b.r(50),b.r(49),b.r(51),b.r(52),b.r(53),b.r(54),b.r(55),b.r(56),b.r(57),b.r(58),b.r(59),b.r(60),b.r(61),b.r(62),b.r(63),b.r(64),b.r(68),b.r(65),b.r(67),b.r(66),b.r(40),b.r(36),b.r(37),b.r(38),b.r(39),b.r(41),b.r(75),b.r(78),b.r(77),b.r(76),b.r(78),b.r(80),b.r(79),b.r(81),b.r(0),b.r(1),b.r(2),b.r(3),b.r(4),b.r(5),b.r(6),b.r(69),b.r(73),b.r(70),b.r(72),b.r(71),b.r(74),d.exports=e}},b[36]={value:function(a,c,d){function e(a){function b(a){var b=[],d=a.getLayoutBox(),e=5;return"x"==c?(b.push({type:"up",node:a,area:new f.Box({x:d.x,y:d.top-a.getStyle("margin-top")-e,width:d.width,height:a.getStyle("margin-top")}),path:["M",d.x,d.top-e,"L",d.right,d.top-e]}),b.push({type:"down",node:a,area:new f.Box({x:d.x,y:d.bottom+e,width:d.width,height:a.getStyle("margin-bottom")}),path:["M",d.x,d.bottom+e,"L",d.right,d.bottom+e]})):(b.push({type:"up",node:a,area:new f.Box({x:d.left-a.getStyle("margin-left")-e,y:d.top,width:a.getStyle("margin-left"),height:d.height}),path:["M",d.left-e,d.top,"L",d.left-e,d.bottom]}),b.push({type:"down",node:a,area:new f.Box({x:d.right+e,y:d.top,width:a.getStyle("margin-right"),height:d.height}),path:["M",d.right+e,d.top,"L",d.right+e,d.bottom]})),b}var c="left"==a||"right"==a?"x":"y",d="left"==a||"top"==a?-1:1,e={left:"right",right:"left",top:"bottom",bottom:"top",x:"y",y:"x"};g.register(a,f.createClass({base:g,doLayout:function(b,g){var h=b.getContentBox();if("x"==c?(b.setVertexOut(new f.Point(h[a],h.cy)),b.setLayoutVectorOut(new f.Vector(d,0))):(b.setVertexOut(new f.Point(h.cx,h[a])),b.setLayoutVectorOut(new f.Vector(0,d))),!g.length)return!1;g.forEach(function(b){var g=b.getContentBox();b.setLayoutTransform(new f.Matrix),"x"==c?(b.setVertexIn(new f.Point(g[e[a]],g.cy)),b.setLayoutVectorIn(new f.Vector(d,0))):(b.setVertexIn(new f.Point(g.cx,g[e[a]])),b.setLayoutVectorIn(new f.Vector(0,d)))}),this.align(g,e[a]),this.stack(g,e[c]);var i=this.getBranchBox(g),j=0,k=0;"x"==c?(j=h[a],j+=d*b.getStyle("margin-"+a),j+=d*g[0].getStyle("margin-"+e[a]),k=h.bottom,k-=h.height/2,k-=i.height/2,k-=i.y):(j=h.right,j-=h.width/2,j-=i.width/2,j-=i.x,k=h[a],k+=d*b.getStyle("margin-"+a),k+=d*g[0].getStyle("margin-"+e[a])),this.move(g,j,k)},getOrderHint:b}))}var f=b.r(17),g=b.r(18);["left","right","top","bottom"].forEach(e)}},b[37]={value:function(a,c,d){function e(a){var b="filetree-"+(a>0?"down":"up");g.register(b,f.createClass({base:g,doLayout:function(b,c,d){var e=b.getContentBox(),g=20;if(b.setVertexOut(new f.Point(e.left+g,a>0?e.bottom:e.top)),b.setLayoutVectorOut(new f.Vector(0,a)),c.length){c.forEach(function(a){var b=a.getContentBox();a.setLayoutTransform(new f.Matrix),a.setVertexIn(new f.Point(b.left,b.cy)),a.setLayoutVectorIn(new f.Vector(1,0))}),this.align(c,"left"),this.stack(c,"y");var h=0;h+=e.left,h+=g,h+=c[0].getStyle("margin-left");var i=0;a>0?(i+=e.bottom,i+=b.getStyle("margin-bottom"),i+=c[0].getStyle("margin-top")):(i-=this.getTreeBox(c).bottom,i+=e.top,i-=b.getStyle("margin-top"),i-=c[0].getStyle("margin-bottom")),this.move(c,h,i)}},getOrderHint:function(a){var b=[],c=a.getLayoutBox(),d=a.getLevel()>1?3:5;return b.push({type:"up",node:a,area:new f.Box({x:c.x,y:c.top-a.getStyle("margin-top")-d,width:c.width,height:a.getStyle("margin-top")}),path:["M",c.x,c.top-d,"L",c.right,c.top-d]}),b.push({type:"down",node:a,area:new f.Box({x:c.x,y:c.bottom+d,width:c.width,height:a.getStyle("margin-bottom")}),path:["M",c.x,c.bottom+d,"L",c.right,c.bottom+d]}),b}}))}var f=b.r(17),g=b.r(18);[-1,1].forEach(e)}},b[38]={value:function(a,c,d){var e=b.r(17),f=b.r(18);f.register("fish-bone-master",e.createClass("FishBoneMasterLayout",{base:f,doLayout:function(a,b,c){var d=[],f=[],g=b[0],h=a.getContentBox();if(a.setVertexOut(new e.Point(h.right,h.cy)),a.setLayoutVectorOut(new e.Vector(1,0)),g){var i=(g.getContentBox(),a.getStyle("margin-right")),j=g.getStyle("margin-left"),k=g.getStyle("margin-top"),l=g.getStyle("margin-bottom");b.forEach(function(a,b){a.setLayoutTransform(new e.Matrix);var c=a.getContentBox();b%2?(f.push(a),a.setVertexIn(new e.Point(c.left,c.top)),a.setLayoutVectorIn(new e.Vector(1,1))):(d.push(a),a.setVertexIn(new e.Point(c.left,c.bottom)),a.setLayoutVectorIn(new e.Vector(1,-1)))}),this.stack(d,"x"),this.stack(f,"x"),this.align(d,"bottom"),this.align(f,"top");var m=h.right+i+j,n=h.cy-l-a.getStyle("margin-top"),o=h.cy+k+a.getStyle("margin-bottom");this.move(d,m,n),this.move(f,m+j,o)}}}))}},b[39]={value:function(a,c,d){var e=b.r(17),f=b.r(18);f.register("fish-bone-slave",e.createClass("FishBoneSlaveLayout",{base:f,doLayout:function(a,b,c){var d=this,f=Math.abs,g=.382,h=a.getContentBox(),i=a.getLayoutVectorIn();a.setLayoutVectorOut(i);var j=h.left+h.width*g,k=new e.Point(j,i.y>0?h.bottom:h.top);a.setVertexOut(k);var l=b[0];if(l){var m=l.getContentBox();b.forEach(function(a,b){a.setLayoutTransform(new e.Matrix),a.setLayoutVectorIn(new e.Vector(1,0)),a.setVertexIn(new e.Point(m.left,m.cy))}),this.stack(b,"y"),this.align(b,"left");var n=0,o=0;n+=k.x,a.getLayoutVectorOut().y<0?(o-=this.getTreeBox(b).bottom,o+=a.getContentBox().top,o-=a.getStyle("margin-top"),o-=l.getStyle("margin-bottom")):(o+=a.getContentBox().bottom,o+=a.getStyle("margin-bottom"),o+=l.getStyle("margin-top")),this.move(b,n,o),2==c&&b.forEach(function(a){var b=a.getLayoutTransform(),c=a.getContentBox(),g=b.transformPoint(new e.Point(c.left,0));d.move([a],f(g.y-k.y),0)})}}}))}},b[40]={value:function(a,c,d){var e=b.r(17),f=b.r(18),g=b.r(19);f.register("mind",e.createClass({base:f,doLayout:function(a,b){var c=Math.ceil(a.children.length/2),d=[],f=[];b.forEach(function(a){a.getIndex()=c.length))return c.splice(this.getIndex(),1),c.splice(a,0,this),this}}});var k=g.createClass("ArrangeUpCommand",{base:i,execute:function(a){var b=a.getSelectedNodes();b.sort(e);var c=b.map(function(a){return a.getIndex()});b.forEach(function(a,b){a.arrange(c[b]-1)}),a.layout(300)},queryState:function(a){return a.getSelectedNode()?0:-1}}),l=g.createClass("ArrangeUpCommand",{base:i,execute:function(a){var b=a.getSelectedNodes();b.sort(f);var c=b.map(function(a){return a.getIndex()});b.forEach(function(a,b){a.arrange(c[b]+1)}),a.layout(300)},queryState:function(a){return a.getSelectedNode()?0:-1}}),m=g.createClass("ArrangeCommand",{base:i,execute:function(a,b){var c=a.getSelectedNodes().slice();if(c.length){if(h.getCommonAncestor(c)==c[0].parent){var d=c.map(function(a){return{index:a.getIndex(),node:a}}),e=Math.min.apply(Math,d.map(function(a){return a.index}))>=b;d.sort(function(a,b){return e?b.index-a.index:a.index-b.index}),d.forEach(function(a){a.node.arrange(b)}),a.layout(300)}}},queryState:function(a){return a.getSelectedNode()?0:-1}});j.register("ArrangeModule",{commands:{arrangeup:k,arrangedown:l,arrange:m},contextmenu:[{command:"arrangeup"},{command:"arrangedown"},{divider:!0}],commandShortcutKeys:{arrangeup:"normal::alt+Up",arrangedown:"normal::alt+Down"}})}},b[43]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19),b.r(21),b.r(9)),g=b.r(20),h=b.r(61);g.register("basestylemodule",function(){function a(a,b){return a.getData(b)||a.getStyle(b)}var b=this;return h.registerStyleHook(function(b,c){var d=a(b,"font-weight"),e=a(b,"font-style");[d,e].join("/");c.eachItem(function(a,b){b.setFont({weight:d,style:e})})}),{commands:{bold:e.createClass("boldCommand",{base:f,execute:function(a){var b=a.getSelectedNodes();1==this.queryState("bold")?b.forEach(function(a){a.setData("font-weight").render()}):b.forEach(function(a){a.setData("font-weight","bold").render()}),a.layout()},queryState:function(){var a=b.getSelectedNodes(),c=0;return 0===a.length?-1:(a.forEach(function(a){if(a&&a.getData("font-weight"))return c=1,!1}),c)}}),italic:e.createClass("italicCommand",{base:f,execute:function(a){var b=a.getSelectedNodes();1==this.queryState("italic")?b.forEach(function(a){a.setData("font-style").render()}):b.forEach(function(a){a.setData("font-style","italic").render()}),a.layout()},queryState:function(){var a=b.getSelectedNodes(),c=0;return 0===a.length?-1:(a.forEach(function(a){if(a&&a.getData("font-style"))return c=1,!1}),c)}})},commandShortcutKeys:{bold:"ctrl+b",italic:"ctrl+i"}}})}},b[44]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(21)),g=b.r(9);b.r(20).register("ClipboardModule",function(){function a(b,d){h.push(d),c.appendNode(d,b),d.render(),d.setLayoutOffset(null);var e=d.children.map(function(a){return a.clone()});d.clearChildren();for(var f,g=0;f=e[g];g++)a(d,f)}function b(a){a.length&&(a.sort(function(a,b){return a.getIndex()-b.getIndex()}),d=a.map(function(a){return a.clone()}))}var c=this,d=[],h=[],i=e.createClass("CopyCommand",{base:g,execute:function(a){b(a.getSelectedAncestors(!0)),this.setContentChanged(!1)}}),j=e.createClass("CutCommand",{base:g,execute:function(a){var c=a.getSelectedAncestors();0!==c.length&&(b(c),a.select(f.getCommonAncestor(c),!0),c.slice().forEach(function(b){a.removeNode(b)}),a.layout(300))}}),k=e.createClass("PasteCommand",{base:g,execute:function(b){if(d.length){var c=b.getSelectedNodes();if(!c.length)return;for(var e,f=0;e=d[f];f++)for(var g,i=0;g=c[i];i++)a(g,e.clone());b.select(h,!0),h=[],b.layout(300)}},queryState:function(a){return a.getSelectedNode()?0:-1}});if(c.supportClipboardEvent&&!e.Browser.gecko){var l=function(a){this.fire("beforeCopy",a)},m=function(a){this.fire("beforeCut",a)},n=function(a){this.fire("beforePaste",a)};return{commands:{copy:i,cut:j,paste:k},clipBoardEvents:{copy:l.bind(c),cut:m.bind(c),paste:n.bind(c)},sendToClipboard:b}}return{commands:{copy:i,cut:j,paste:k},commandShortcutKeys:{copy:"normal::ctrl+c|",cut:"normal::ctrl+x",paste:"normal::ctrl+v"},sendToClipboard:b}})}},b[45]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(21)),g=b.r(9),h=b.r(20),i=e.createClass("MoveToParentCommand",{base:g,execute:function(a,b,c){for(var d,e=0;ed&&"up"==a.type&&b--,a.node.setLayoutOffset(null),this._minder.execCommand("arrange",b),this._renderOrderHint(null)}else this._minder.fire("savescene");this._minder.layout(300),this._leaveDragMode(),this._minder.fire("contentchange")}},_enterDragMode:function(){return this._calcDragSources(),this._dragSources.length?(this._fadeDragSources(.5),this._calcDropTargets(),this._calcOrderHints(),this._dragMode=!0,this._minder.setStatus("dragtree"),!0):(this._startPosition=null,!1)},_calcDragSources:function(){this._dragSources=this._minder.getSelectedAncestors()},_fadeDragSources:function(a){var b=this._minder;this._dragSources.forEach(function(c){c.getRenderContainer().setOpacity(a,200),c.traverse(function(c){a<1?b.detachNode(c):b.attachNode(c)},!0)})},_calcDropTargets:function(){function a(b,c){var d,e=[];return e.push(c),c.getChildren().forEach(function(c){for(d=0;d.5*Math.min(d(b),d(c))||(a.width+1>=Math.min(b.width,c.width)||a.height+1>=Math.min(b.height,c.height))))}),this._renderDropHint(this._dropSucceedTarget),!!this._dropSucceedTarget},_orderTest:function(){return this._orderSucceedHint=this._boxTest(this._orderHints,function(a){return a.area}),this._renderOrderHint(this._orderSucceedHint),!!this._orderSucceedHint},_renderDropHint:function(a){this._dropHinter.render(a)},_renderOrderHint:function(a){this._orderHinter.render(a)},preventDragMove:function(){this._startPosition=null}});h.register("DragTree",function(){var a;return{init:function(){a=new l(this),window.addEventListener("mouseup",function(){a.dragEnd()})},events:{"normal.mousedown inputready.mousedown":function(b){b.originEvent.button||b.getTargetNode()&&b.getTargetNode()!=this.getRoot()&&a.dragStart(b.getPosition())},"normal.mousemove dragtree.mousemove":function(b){a.dragMove(b.getPosition())},"normal.mouseup dragtree.beforemouseup":function(b){a.dragEnd(),b.preventDefault()},statuschange:function(b){"textedit"==b.lastStatus&&"normal"==b.currentStatus&&a.preventDragMove()}},commands:{movetoparent:i}}})}},b[46]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(15),h=b.r(21),i=b.r(9),j=b.r(20),k=b.r(27);j.register("Expand",function(){var a=this,b="expandState",c="collapse";e.extendClass(h,{expand:function(){return this.setData(b,"expand"),this},collapse:function(){return this.setData(b,c),this},isExpanded:function(){return this.getData(b)!==c&&(this.isRoot()||this.parent.isExpanded())},isCollapsed:function(){return!this.isExpanded()}});var d=e.createClass("ExpandCommand",{base:i,execute:function(a,b){var c=a.getSelectedNode();if(c){for(b&&(c=c.parent);c.parent;)c.expand(),c=c.parent;c.renderTree(),a.layout(100)}},queryState:function(a){var b=a.getSelectedNode();return!b||b.isRoot()||b.isExpanded()?-1:0}}),j=e.createClass("ExpandToLevelCommand",{base:i,execute:function(a,b){a.getRoot().traverse(function(a){a.getLevel()c&&e>f?(a=c,b=a/e):b>d&&(b=d,a=b*e),{width:0|a,height:0|b}}return{defaultOptions:{maxImageWidth:200,maxImageHeight:200},commands:{image:e.createClass("ImageCommand",{base:f,execute:function(c,d,e){var f=c.getSelectedNodes();a(d,function(a,g){f.forEach(function(f){var h=b(a,g,c.getOption("maxImageWidth"),c.getOption("maxImageHeight"));f.setData("image",d),f.setData("imageTitle",d&&e),f.setData("imageSize",d&&h),f.render()}),c.fire("saveScene"),c.layout(300)})},queryState:function(a){var b=a.getSelectedNodes(),c=0;return 0===b.length?-1:(b.forEach(function(a){if(a&&a.getData("image"))return c=0,!1}),c)},queryValue:function(a){var b=a.getSelectedNode();return{url:b.getData("image"),title:b.getData("imageTitle")}}})},renderers:{top:e.createClass("ImageRenderer",{base:h,create:function(a){return new e.Image(a.getData("image"))},shouldRender:function(a){return a.getData("image")},update:function(a,b,c){var d=b.getData("image"),f=b.getData("imageTitle"),g=b.getData("imageSize"),h=b.getStyle("space-top");if(g){f&&a.node.setAttributeNS("http://www.w3.org/1999/xlink","title",f);var i=c.cx-g.width/2,j=c.y-g.height-h;return a.setUrl(d).setX(0|i).setY(0|j).setWidth(0|g.width).setHeight(0|g.height),new e.Box(0|i,0|j,0|g.width,0|g.height)}}})}}})}},b[51]={value:function(a,c,d){var e=(b.r(17),b.r(33),b.r(15),b.r(19),b.r(21),b.r(9),b.r(20));b.r(27);e.register("KeyboardModule",function(){function a(a){var b,d=[];a.traverse(function(a){b=a.getLayoutBox(),b.width&&b.height&&d.push({left:b.x,top:b.y,right:b.x+b.width,bottom:b.y+b.height,width:b.width,height:b.height,node:a})});for(var e=0;ef.right&&(!g.right||ef.bottom&&(!g.down||e>1].getGlobalLayoutTransform()),a.select(e,!0),a.layout(600)},queryState:function(a){var b=a.getSelectedNodes();if(!b.length)return-1;var c=b[0].parent;if(!c)return-1;for(var d=1;d>>c|d<<32-c},b=function(a,b,j,k,l){var m=d+f[c][a]%16,n=d+(f[c][a]>>4);b%=4,j=4+j%4,k=8+k%4,l=12+l%4,h[b]+=h[j]+(i[m]^e[n%16]),g(l,b,16),h[k]+=h[l],g(j,k,12),h[b]+=h[j]+(i[n]^e[m%16]),g(l,b,8),h[k]+=h[l],g(j,k,7)},function(f,g){g instanceof Array&&4===g.length||(g=[0,0,0,0]);var k,l,m,n,o,p,q,r;for(l=a.slice(0),k=e.slice(0,8),c=0;c<4;c+=1)k[c]^=g[c];if(m=16*f.length,o=m%512>446||m%512==0?0:m,m%512==432)f+="老";else{for(f+="耀";f.length%32!=27;)f+="\0";f+=""}for(i=[],r=0;r=0;c--)d=b.charCodeAt(c),e^=(e<<5)+d+(e>>2);return 2147483647&e},getResourceColor:function(a){var c,d=this._getResourceColorIndexMapping();return Object.prototype.hasOwnProperty.call(d,a)||(c=this._getNextResourceColorIndex(),d[a]=c),b[d[a]]||e.Color.createHSL(Math.floor(this.getHashCode(a)/2147483647*359),100,85)},getUsedResource:function(){var a,b=this._getResourceColorIndexMapping(),c=[];for(a in b)Object.prototype.hasOwnProperty.call(b,a)&&c.push(a);return c},_getNextResourceColorIndex:function(){var a,c,d,e=this._getResourceColorIndexMapping();c=[];for(a in e)Object.prototype.hasOwnProperty.call(e,a)&&c.push(e[a]);for(d=0;dv)for(var w=u-v;w--;)s=(new e.Text).setAttr("text-rendering","inherit"),e.Browser.ie||e.Browser.edge?s.setVerticalAlign("top"):s.setAttr("dominant-baseline","text-before-edge"),a.addItem(s);for(q=0,s;t=g[q],s=a.getItem(q);q++)s.setContent(t),(e.Browser.ie||e.Browser.edge)&&s.fixPosition();this.setTextStyle(b,a);var x=b.getText()+["font-size","font-name","font-weight","font-style"].map(c).join("/");return b._currentTextHash==x&&b._currentTextGroupBox?b._currentTextGroupBox:(b._currentTextHash=x,function(){a.eachItem(function(a,b){var c=m+a*i*h;b.setY(c);var d=b.getBoundaryBox();o=o.merge(new e.Box(0,c,d.height&&d.width||1,i))});var c=new e.Box(p(o.x),p(o.y),p(o.width),p(o.height));return b._currentTextGroupBox=c,c})},setTextStyle:function(a,b){l._styleHooks.forEach(function(c){c(a,b)})}}),m=e.createClass({base:h,execute:function(a,b){var c=a.getSelectedNode();c&&(c.setText(b),c.render(),a.layout())},queryState:function(a){return 1==a.getSelectedNodes().length?0:-1},queryValue:function(a){var b=a.getSelectedNode();return b?b.getText():null}});f.extend(l,{_styleHooks:[],registerStyleHook:function(a){l._styleHooks.push(a)}}),e.extendClass(g,{getTextGroup:function(){return this.getRenderer("TextRenderer").getRenderShape()}}),i.register("text",{commands:{text:m},renderers:{center:l}}),d.exports=l}},b[62]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19)),g=(b.r(21),b.r(9)),h=b.r(20);b.r(27);e.extendClass(f,function(){return{getMovement:function(){var a=this.getRenderContainer().transform.translate;return a?a[0]:new e.Point}}}());var i=e.createClass("ViewDragger",{constructor:function(a){this._minder=a,this._enabled=!1,this._bind();var b=this;this._minder.getViewDragger=function(){return b},this.setEnabled(!1)},isEnabled:function(){return this._enabled},setEnabled:function(a){if(this._minder.getOption("enableChangeCursor")){var b=this._minder.getPaper();b.setStyle("cursor",a?"pointer":"default"),b.setStyle("cursor",a?"-webkit-grab":"default")}this._enabled=a},timeline:function(){return this._moveTimeline},move:function(a,b){var c=this._minder,d=c.getMovement().offset(a);this.moveTo(d,b)},moveTo:function(a,b){if(b){var c=this;return this._moveTimeline&&this._moveTimeline.stop(),this._moveTimeline=this._minder.getRenderContainer().animate(new e.Animator(this._minder.getMovement(),a,function(a,b){c.moveTo(b)}),b,"easeOutCubic").timeline(),this._moveTimeline.on("finish",function(){c._moveTimeline=null,c._minder.fire("MoveEnd")}),this}this._minder.getRenderContainer().setTranslate(a.round()),this._minder.fire("viewchange")},getView:function(){var a=this._minder,b=a._lastClientSize||{width:a.getRenderTarget().clientWidth,height:a.getRenderTarget().clientHeight},c=a.getMovement(),d=new e.Box(0,0,b.width,b.height);return a.getPaper().getViewPortMatrix().inverse().translate(-c.x,-c.y).transformBox(d)},_bind:function(){function a(a){if(d){d=null,a.stopPropagation(),c&&(b.setEnabled(!1),c=!1,"hand"==b._minder.getStatus()&&b._minder.rollbackStatus());if(b._minder.getOption("enableChangeCursor")){b._minder.getPaper().setStyle("cursor","hand"==b._minder.getStatus()?"-webkit-grab":"default")}b._minder.fire("viewchanged")}}var b=this,c=!1,d=null,f=null;this._minder.on("normal.mousedown normal.touchstart inputready.mousedown inputready.touchstart readonly.mousedown readonly.touchstart",function(a){2==a.originEvent.button&&a.originEvent.preventDefault(),(a.getTargetNode()==this.getRoot()||2==a.originEvent.button||a.originEvent.altKey)&&(d=a.getPosition("view"),c=!0)}).on("normal.mousemove normal.touchmove readonly.mousemove readonly.touchmove inputready.mousemove inputready.touchmove",function(a){if("touchmove"==a.type&&a.preventDefault(),c){if(e.Vector.fromPoints(d,a.getPosition("view")).length()>10){this.setStatus("hand",!0);if(b._minder.getOption("enableChangeCursor")){b._minder.getPaper().setStyle("cursor","-webkit-grabbing")}}}}).on("hand.beforemousedown hand.beforetouchstart",function(a){if(b.isEnabled()){d=a.getPosition("view"),a.stopPropagation();if(b._minder.getOption("enableChangeCursor")){b._minder.getPaper().setStyle("cursor","-webkit-grabbing")}}}).on("hand.beforemousemove hand.beforetouchmove",function(c){if(b.isEnabled()){if(d){f=c.getPosition("view");var g=e.Vector.fromPoints(d,f);b.move(g),c.stopPropagation(),c.preventDefault(),c.originEvent.preventDefault(),d=f}}else a(c)}).on("mouseup touchend",a),window.addEventListener("mouseup",a),this._minder.on("contextmenu",function(a){a.preventDefault()})}});h.register("View",function(){var a=e.createClass("ToggleHandCommand",{base:g,execute:function(a){"hand"!=a.getStatus()?a.setStatus("hand",!0):a.rollbackStatus(),this.setContentChanged(!1)},queryState:function(a){return"hand"==a.getStatus()?1:0},enableReadOnly:!0}),b=e.createClass("CameraCommand",{base:g,execute:function(a,b){b=b||a.getRoot();var c=a.getPaper().getViewPort(),d=b.getRenderContainer().getRenderBox("view"),f=c.center.x-d.x-d.width/2,g=c.center.y-d.y,h=a._viewDragger,i=a.getOption("viewAnimationDuration");h.move(new e.Point(f,g),i),this.setContentChanged(!1)},enableReadOnly:!0}),c=e.createClass("MoveCommand",{base:g,execute:function(a,b,c){var d=a._viewDragger,f=a._lastClientSize;if(void 0!==c&&null!==c||(c=a.getOption("viewAnimationDuration")),"string"!=typeof b){var g=b.x||0,h=b.y||0;d.move(new e.Point(g,h),c)}else switch(b){case"up":d.move(new e.Point(0,f.height/2),c);break;case"down":d.move(new e.Point(0,-f.height/2),c);break;case"left":d.move(new e.Point(f.width/2,0),c);break;case"right":d.move(new e.Point(-f.width/2,0),c)}},enableReadOnly:!0});return{init:function(){this._viewDragger=new i(this)},commands:{hand:a,camera:b,move:c},events:{statuschange:function(a){this._viewDragger.setEnabled("hand"==a.currentStatus)},mousewheel:function(a){var b,c;if(a=a.originEvent,!a.ctrlKey&&!a.shiftKey){"wheelDeltaX"in a?(b=a.wheelDeltaX||0,c=a.wheelDeltaY||0):(b=0,c=a.wheelDelta),this._viewDragger.move({x:b/2.5,y:c/2.5});var d=this;clearTimeout(this._mousewheeltimer),this._mousewheeltimer=setTimeout(function(){d.fire("viewchanged")},100),a.preventDefault()}},"normal.dblclick readonly.dblclick":function(a){a.kityEvent.targetShape instanceof e.Paper&&this.execCommand("camera",this.getRoot(),800)},"paperrender finishInitHook":function(){this.getRenderTarget()&&(this.execCommand("camera",null,0),this._lastClientSize={width:this.getRenderTarget().clientWidth,height:this.getRenderTarget().clientHeight})},resize:function(a){var b={width:this.getRenderTarget().clientWidth,height:this.getRenderTarget().clientHeight},c=this._lastClientSize;this._viewDragger.move(new e.Point((b.width-c.width)/2|0,(b.height-c.height)/2|0)),this._lastClientSize=b},"selectionchange layoutallfinish":function(a){var b=this.getSelectedNode(),c=this;if(e.Browser.edge&&this.fire("paperrender"),b){var d=this._viewDragger,f=d.timeline();if(f)return void f.on("finish",function(){c.fire("selectionchange")});var g=d.getView(),h=b.getLayoutBox(),i=50,j=0,k=0;h.right>g.right?j+=g.right-h.right-i:h.leftg.bottom&&(k+=g.bottom-h.bottom-i),h.top=100?"optimize-speed":"geometricPrecision";h.getRenderContainer().setAttr("text-rendering",a)}function b(a){var b=a.shapeNode,c=b.getCTM(),d=new e.Matrix(c.a,c.b,c.c,c.d,.5+(0|c.e),.5+(0|c.f));b.setAttribute("transform","matrix("+d.toString()+")")}function c(b,c){var f=b.getPaper();f.getViewPort();if(c){a();var g=b.getOption("zoomAnimationDuration");if(b.getRoot().getComplex()>200||!g)b._zoomValue=c,b.zoom(c),b.fire("ZoomEnd");else{var h=new e.Animator({beginValue:b._zoomValue,finishValue:c,setter:function(a,b){a.zoom(b)}});b._zoomValue=c,d&&d.pause(),d=h.start(b,g,"easeInOutSine"),d.on("finish",function(){b.fire("ZoomEnd")})}b.fire("zoom",{zoom:c})}}var d,h=this;e.extendClass(f,{zoom:function(a){var c=this.getPaper(),d=c.getViewPort();d.zoom=a/100,d.center={x:d.center.x,y:d.center.y},c.setViewPort(d),100==a&&b(c)},getZoomValue:function(){return this._zoomValue}});var i=e.createClass("Zoom",{base:g,execute:c,queryValue:function(a){return a._zoomValue}}),j=e.createClass("ZoomInCommand",{base:g,execute:function(a){c(a,this.nextValue(a))},queryState:function(a){return+!this.nextValue(a)},nextValue:function(a){var b,c=a.getOption("zoom");for(b=0;ba._zoomValue)return c[b];return 0},enableReadOnly:!0}),k=e.createClass("ZoomOutCommand",{base:g,execute:function(a){c(a,this.nextValue(a))},queryState:function(a){return+!this.nextValue(a)},nextValue:function(a){var b,c=a.getOption("zoom");for(b=c.length-1;b>=0;b--)if(c[b]100&&(clearTimeout(this._wheelZoomTimeout),this._wheelZoomTimeout=setTimeout(function(){c.getPaper()._zoom;b>0?c.execCommand("zoomin"):b<0&&c.execCommand("zoomout")},100),a.originEvent.preventDefault())}}},commandShortcutKeys:{zoomin:"ctrl+=",zoomout:"ctrl+-"}}})}},b[64]={value:function(a,c,d){b.r(12).registerProtocol("json",d.exports={fileDescription:"KityMinder 格式",fileExtension:".km",dataType:"text",mineType:"application/json",encode:function(a){return JSON.stringify(a)},decode:function(a){return JSON.parse(a)}})}},b[65]={value:function(a,c,d){function e(a){return f(a,1).join("\n")}function f(a,b){var c=[];b=b||1;var d=g(b);c.push(d+" "+a.data.text),c.push(o);var e=a.data.note;if(e){var h=/^#/.test(e);h&&(c.push(p),e=e.replace(/^#+/gm,function(a){return d+a})),c.push(e),h&&c.push(q),c.push(o)}return a.children&&a.children.forEach(function(a){c=c.concat(f(a,b+1))}),c}function g(a){for(var b="";a--;)b+="#";return b}function h(a){var b,c,d,e,f,g,h,m={};a=a.replace(/^(.+)\n={3,}/,function(a,b){return"# "+b}),b=a.split(n);for(var o=0;oe+1?f&&j(f,c):(e=d.level,f=i(d.content,m[e-1]),m[e]=f));return l(m[1]),m[1]}function i(a,b){var c={data:{text:a,note:""}};return b&&(b.children?b.children.push(c):b.children=[c]),c}function j(a,b){a.data.note+=b+"\n"}function k(a){var b=/^(#+)?\s*(.*)$/.exec(a);return{level:b[1]&&b[1].length||null,content:b[2],noteStart:a==p,noteClose:a==q,codeBlock:/^\s*```/.test(a)}}function l(a){if(/\S/.test(a.data.note)){for(var b=a.data.note.split("\n");b.length&&!/\S/.test(b[0]);)b.shift();for(;b.length&&!/\S/.test(b[b.length-1]);)b.pop();a.data.note=b.join("\n")}else a.data.note=null,delete a.data.note;a.children&&a.children.forEach(l)}var m=b.r(12),n=/\r\n|\r|\n/,o="",p="\x3c!--Note--\x3e",q="\x3c!--/Note--\x3e";m.registerProtocol("markdown",d.exports={fileDescription:"Markdown/GFM 格式",fileExtension:".md",mineType:"text/markdown",dataType:"text",encode:function(a){return e(a.root)},decode:function(a){return h(a)}})}},b[66]={value:function(a,c,d){function e(a,b){return new k(function(b,c){var d=document.createElement("img");d.onload=function(){b({element:this,x:a.x,y:a.y,width:a.width,height:a.height})},d.onerror=function(a){c(a)},d.crossOrigin="anonymous",d.src=a.url})}function f(a,b){return k(function(b,c){var d=new XMLHttpRequest;d.open("GET",a.url+"?_="+Date.now(),!0),d.responseType="blob",d.onreadystatechange=function(){if(4===d.readyState&&200===d.status){var c=d.response,e=document.createElement("img");e.src=l.createObjectURL(c),e.onload=function(){l.revokeObjectURL(e.src),b({element:e,x:a.x,y:a.y,width:a.width,height:a.height})}}},d.send()})}function g(a){function b(c){var d=c.data;if(d.image){a.renderNode(c);var d=c.data,e=d.image,f=d.imageSize,g=c.getRenderBox("ImageRenderer",a.getRenderContainer()),h={url:e,width:f.width,height:f.height,x:-j.getBoundaryBox().x+g.x,y:-j.getBoundaryBox().y+g.y};o.push(h)}if("collapse"!==d.expandState)for(var i=c.getChildren(),k=0;kt.width?c.width:t.width,v=c&&c.height&&c.height>t.height?c.height:t.height,w=c&&c.width&&c.width>t.width?(c.width-t.width)/2:0,x=c&&c.height&&c.height>t.height?(c.height-t.height)/2:0,y=t.dataUrl,z=t.imagesInfo,A=20;if(o.width=u+2*A,o.height=v+2*A,r){return e({url:r[1]}).then(function(a){return d(p,p.createPattern(a.element,"repeat")),n()})}return d(p,s.toString()),n()}var i=b.r(17),j=b.r(12),k=b.r(25),l=window.URL||window.webkitURL||window;j.registerProtocol("png",d.exports={fileDescription:"PNG 图片",fileExtension:".png",mineType:"image/png",dataType:"base64",encode:h})}},b[67]={value:function(a,c,d){function e(a,b,c){function d(a,b){var c;try{c=b.getScreenCTM().inverse()}catch(a){throw new Error("Can not inverse source element' ctm.")}return c.multiply(a.getScreenCTM())}function e(a,b){b instanceof Function||(b=function(){});for(var c=[],d=[],e=[],f=0,g=a.length;f0?"right":"left":a.parent.getLayout()},getConnect:function(a){return 1==a.getLevel()?"arc":"under"}})}},b[70]={value:function(a,c,d){b.r(31).register("filetree",{getLayout:function(a){return a.getData("layout")?a.getData("layout"):a.isRoot()?"bottom":"filetree-down"},getConnect:function(a){return 1==a.getLevel()?"poly":"l"}})}},b[71]={value:function(a,c,d){b.r(31).register("fish-bone",{getLayout:function(a){if(a.getData("layout"))return a.getData("layout");var b=a.getLevel();return 0===b?"fish-bone-master":1===b?"fish-bone-slave":a.getLayoutPointPreview().y>0?"filetree-up":"filetree-down"},getConnect:function(a){switch(a.getLevel()){case 1:return"fish-bone-master";case 2:return"line";default:return"l"}}})}},b[72]={value:function(a,c,d){b.r(31).register("right",{getLayout:function(a){return a.getData("layout")||"right"},getConnect:function(a){return 1==a.getLevel()?"arc":"bezier"}})}},b[73]={value:function(a,c,d){b.r(31).register("structure",{getLayout:function(a){return a.getData("layout")||"bottom"},getConnect:function(a){return"poly"}})}},b[74]={value:function(a,c,d){b.r(31).register("tianpan",{getLayout:function(a){return a.getData("layout")?a.getData("layout"):0===a.getLevel()?"tianpan":a.parent.getLayout()},getConnect:function(a){return"arc_tp"}})}},b[75]={value:function(a,c,d){var e=b.r(32);["classic","classic-compact"].forEach(function(a){var b="classic-compact"==a;e.register(a,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":b?[10,25]:[15,25],"root-margin":b?[15,25]:[30,100],"root-radius":30,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":b?[5,15]:[6,20],"main-margin":b?[5,10]:20,"main-radius":10,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"white","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":[5,10],"sub-margin":b?[5,10]:[15,20],"sub-tree-margin":30,"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})})}},b[76]={value:function(a,c,d){b.r(32).register("fish",{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":[35,35],"root-margin":30,"root-radius":100,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":[6,20],"main-margin":[20,20],"main-radius":5,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"black","sub-background":"white","sub-stroke":"white","sub-font-size":12,"sub-padding":[5,10],"sub-margin":[10],"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":3,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})}},b[77]={value:function(a,c,d){function e(a,b,c){return h.Color.createHSL(a,b,c)}function f(a,b){return{background:"#fbfbfb","root-color":"white","root-background":e(a,37,60),"root-stroke":e(a,37,60),"root-font-size":16,"root-padding":b?[6,12]:[12,24],"root-margin":b?10:[30,100],"root-radius":5,"root-space":10,"main-color":"black","main-background":e(a,33,95),"main-stroke":e(a,37,60),"main-stroke-width":1,"main-font-size":14,"main-padding":[6,20],"main-margin":b?8:20,"main-radius":3,"main-space":5,"sub-color":"black","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":b?[3,5]:[5,10],"sub-margin":b?[4,8]:[15,20],"sub-radius":5,"sub-space":5,"connect-color":e(a,37,60),"connect-width":1,"connect-radius":5,"selected-stroke":e(a,26,30),"selected-stroke-width":"3","blur-selected-stroke":e(a,10,60),"marquee-background":e(a,100,80).set("a",.1),"marquee-stroke":e(a,37,60),"drop-hint-color":e(a,26,35),"drop-hint-width":5,"order-hint-area-color":e(a,100,30).set("a",.5),"order-hint-path-color":e(a,100,25),"order-hint-path-width":1,"text-selection-color":e(a,100,20),"line-height":1.5}}var g,h=b.r(17),i=b.r(32),j={red:0,soil:25,green:122,blue:204,purple:246,pink:334};for(g in j)i.register("fresh-"+g,f(j[g])),i.register("fresh-"+g+"-compat",f(j[g],!0))}},b[78]={value:function(a,c,d){var e=b.r(32);["snow","snow-compact"].forEach(function(a){var b="snow-compact"==a;e.register(a,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":b?[5,10]:[15,25],"root-margin":b?15:30,"root-radius":5,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":b?[4,10]:[6,20],"main-margin":b?[5,10]:[20,40],"main-radius":5,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"black","sub-background":"white","sub-stroke":"white","sub-font-size":12,"sub-padding":[5,10],"sub-margin":b?[5,10]:[10,20],"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})})}},b[79]={value:function(a,c,d){var e=b.r(32);["tianpan","tianpan-compact"].forEach(function(a){var b="tianpan-compact"==a;e.register(a,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":25,"root-padding":b?15:20,"root-margin":b?[15,25]:100,"root-radius":30,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","root-shape":"circle","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":15,"main-padding":b?10:12,"main-margin":b?10:12,"main-radius":10,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","main-shape":"circle","sub-color":"#333","sub-background":"#99ca6a","sub-stroke":"#a4c5c0","sub-font-size":13,"sub-padding":5,"sub-margin":b?6:10,"sub-tree-margin":30,"sub-radius":5,"sub-space":5,"sub-shadow":"rgba(0, 0, 0, .25)","sub-shape":"circle","connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.4})})}},b[80]={value:function(a,c,d){b.r(32).register("wire",{background:"black",color:"#999",stroke:"none",padding:10,margin:20,"font-size":14,"connect-color":"#999","connect-width":1,"selected-background":"#999","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})}},b[81]={value:function(a,c,d){function e(){return{background:"#fbfbfb","root-color":"white","root-background":"rgb(115, 161, 191)","root-stroke":"rgb(115, 161, 191)","root-font-size":16,"root-padding":[12,24],"root-margin":[30,100],"root-radius":5,"root-space":10,"main-color":"black","main-background":"rgb(238, 243, 246)","main-stroke":"rgb{115, 161, 191)","main-stroke-width":1,"main-font-size":14,"main-padding":[6,20],"main-margin":20,"main-radius":3,"main-space":5,"sub-color":"black","sub-background":"transparent","sub-stroke":"none","sub-font-size":14,"sub-padding":[5,10],"sub-margin":[15,20],"sub-radius":5,"sub-space":5,"connect-color":"rgb(115, 161, 191)","connect-width":1,"connect-radius":5,"selected-stroke":"rgb{115, 161, 191)","selected-stroke-width":"1","blur-selected-stroke":"rgb(143, 155, 163)","marquee-background":"rgba(153, 214, 255, 0.1)","marquee-stroke":"rgb(115, 161 191)","drop-hint-color":"rgb(66, 94, 112)","drop-hint-width":5,"order-hint-area-color":"rgba(0, 92, 153, 0.5)","order-hint-path-color":"rgb(0, 76, 128)","order-hint-path-width":1,"text-selection-color":"rgb(0, 61, 102)","line-height":1.5,"expander-outline-stroke":"gray","expander-outline-fill":"white","expander-sign-stroke":"gray"}}var f=b.r(32),g=e();g.background="#E8F2FF",g["root-color"]="#FFFFFF",g["root-background"]="#448AFF",g["root-stroke"]="#448AFF",g["main-color"]="#505F79",g["main-background"]="#FFFFFF",g["main-stroke"]="#D6D9DD",g["sub-color"]="#505F79",g["connect-color"]="#D6D9DD",g["selected-stroke"]="#172B4D",g["blur-selected-stroke"]="#A7AFBC",g["expander-outline-stroke"]="#D6D9DD",g["expander-outline-fill"]="#E8F2FF",g["expander-sign-stroke"]="#D6D9DD",f.register("wiz-blue",g);var h=e();h.background="#FEF5E2",h["root-color"]="#FFFFFF",h["root-background"]="#BB9325",h["root-stroke"]="#BB9325",h["main-color"]="#505F79",h["main-background"]="#F7DD98",h["main-stroke"]="#F7DD98",h["sub-color"]="#505F79",h["connect-color"]="#BB9325",h["selected-stroke"]="#448AFF",h["blur-selected-stroke"]="#D6D9DD",h["expander-outline-stroke"]="#BB9325",h["expander-outline-fill"]="#FEF5E2",h["expander-sign-stroke"]="#BB9325",f.register("wiz-golden",h);var i=e();i.background="#FFFFFF",i["root-color"]="#247056",i["root-background"]="#CEF2DF",i["root-stroke"]="#0E9C6C",i["main-color"]="#008399",i["main-background"]="#E6FCFF",i["main-stroke"]="#00A3BF",i["sub-color"]="#505F79",i["connect-color"]="#A7AFBC",i["selected-stroke"]="#448AFF",i["blur-selected-stroke"]="#D6D9DD",i["expander-outline-stroke"]="#A7AFBC",i["expander-outline-fill"]="#FFFFFF",i["expander-sign-stroke"]="#A7AFBC",f.register("wiz-lightGreen",i);var j=e();j.background="#FDF6F6",j["root-color"]="#EF403A",j["root-background"]="#FFFFFF",j["root-stroke"]="#FFFFFF",j["main-color"]="#DA251F",j["main-background"]="#FFDBDB",j["main-stroke"]="#FFDBDB",j["sub-color"]="#EF403A",j["connect-color"]="#FFBDAD",j["selected-stroke"]="#448AFF",j["blur-selected-stroke"]="#D6D9DD",j["expander-outline-stroke"]="#FFBDAD",j["expander-outline-fill"]="#FDF6F6",j["expander-sign-stroke"]="#FFBDAD",f.register("wiz-sakura",j);var k=e();k.background="#172B4D",k["root-color"]="#172B4D",k["root-background"]="#88B5FF",k["root-stroke"]="#88B5FF",k["main-color"]="#FFFFFF",k["main-background"]="#448AFF",k["main-stroke"]="#448AFF",k["sub-color"]="#88B5FF",k["connect-color"]="#88B5FF",k["selected-stroke"]="#FFFFFF",k["blur-selected-stroke"]="#A7AFBC",k["expander-outline-stroke"]="#88B5FF",k["expander-outline-fill"]="#88B5FF",k["expander-sign-stroke"]="#172B4D",f.register("wiz-darkBlue",k);var l=e();l.background="#E6E9ED",l["root-color"]="#FFFFFF",l["root-background"]="#DA251F",l["root-stroke"]="#DA251F",l["main-color"]="#FFFFFF",l["main-background"]="#272F40",l["main-stroke"]="#272F40",l["sub-color"]="#172B4D",l["connect-color"]="#272F40",l["selected-stroke"]="#448AFF",l["blur-selected-stroke"]="#A7AFBC",l["expander-outline-stroke"]="#272F40",l["expander-outline-fill"]="#E6E9ED",l["expander-sign-stroke"]="#272F40",f.register("wiz-black",l);var m=e();m.background="#E9DFFF",m["root-color"]="#8251DD",m["root-background"]="#FFFFFF",m["root-stroke"]="#FFFFFF",m["main-color"]="#6238B0",m["main-background"]="#DDC4FF",m["main-stroke"]="#DDC4FF",m["sub-color"]="#6238B0",m["connect-color"]="#8251DD",m["selected-stroke"]="#448AFF",m["blur-selected-stroke"]="#A7AFBC",m["expander-outline-stroke"]="#8251DD",m["expander-outline-fill"]="#E9DFFF",m["expander-sign-stroke"]="#8251DD",f.register("wiz-purple",m);var n=e();n.background="#272F40",n["root-color"]="#FFFFFF",n["root-background"]="#448AFF",n["root-stroke"]="#448AFF",n["main-color"]="#172B4D",n["main-background"]="#D6D9DD",n["main-stroke"]="#D6D9DD",n["sub-color"]="#D6D9DD",n["connect-color"]="#D6D9DD",n["selected-stroke"]="#1B63DC",n["blur-selected-stroke"]="#A7AFBC",n["expander-outline-stroke"]="#D6D9DD",n["expander-outline-fill"]="#272F40",n["expander-sign-stroke"]="#D6D9DD",f.register("wiz-cyan",n);var o=e();o.background="#E6E9ED",o["root-color"]="#FFFFFF",o["root-background"]="#FF8B00",o["root-stroke"]="#FF8B00",o["main-color"]="#272F40",o["main-background"]="#FFFFFF",o["main-stroke"]="#FFFFFF",o["sub-color"]="#272F40",o["connect-color"]="#A7AFBC",o["selected-stroke"]="#448AFF",o["blur-selected-stroke"]="#A7AFBC",o["expander-outline-stroke"]="#A7AFBC",o["expander-outline-fill"]="#E6E9ED",o["expander-sign-stroke"]="#A7AFBC",f.register("wiz-silver",o);var p=e();p.background="#247056",p["root-color"]="#247056",p["root-background"]="#FFFFFF",p["root-stroke"]="#FFFFFF",p["main-color"]="#247056",p["main-background"]="#F7DD98",p["main-stroke"]="#F7DD98",p["sub-color"]="#FFECC6",p["connect-color"]="#F7DD98",p["selected-stroke"]="#172B4D",p["blur-selected-stroke"]="#A7AFBC",p["expander-outline-stroke"]="#F7DD98",p["expander-outline-fill"]="#247056",p["expander-sign-stroke"]="#F7DD98",f.register("wiz-green",p),f.register("wiz",i);var q=e();q.background="#23272e",q["root-color"]="#2d3138",q["root-background"]="#97a3b8",q["root-stroke"]="#97a3b8",q["main-color"]="#97a3b8",q["main-background"]="#2b2f38",q["main-stroke"]="#2b2f38",q["sub-color"]="#97a3b8",q["connect-color"]="#404959",q["selected-stroke"]="#448aff",q["blur-selected-stroke"]="#627088",q["expander-outline-stroke"]="#97a3b8",q["expander-outline-fill"]="#97a3b8",q["expander-sign-stroke"]="#2d3138",f.register("wiz-windows-night",q);var r=e();r.background="#272727",r["root-color"]="#000000",r["root-background"]="#848484",r["root-stroke"]="#848484",r["main-color"]="#a6a6a6",r["main-background"]="#333333",r["main-stroke"]="#333333",r["sub-color"]="#a6a6a6",r["connect-color"]="#474747",r["selected-stroke"]="#448aff",r["blur-selected-stroke"]="#5c5c5c",r["expander-outline-stroke"]="#848484",r["expander-outline-fill"]="#848484",r["expander-sign-stroke"]="#000000",f.register("wiz-mac-night",r);var s=e();s.background="#1f2126",s["root-color"]="#353c47",s["root-background"]="#7990b6",s["root-stroke"]="#7990b6",s["main-color"]="#7990b6",s["main-background"]="#32353e",s["main-stroke"]="#32353e",s["sub-color"]="#7990b6",s["connect-color"]="rgba(68, 138, 255, .2)",s["selected-stroke"]="#448aff",s["blur-selected-stroke"]="#536178",s["expander-outline-stroke"]="#7990b6",s["expander-outline-fill"]="#7990b6",s["expander-sign-stroke"]="#353c47",f.register("wiz-ios-night",s);var t=e();t.background="#1f2126",t["root-color"]="#455a64",t["root-background"]="#7990b6",t["root-stroke"]="#7990b6",t["main-color"]="#7990b6",t["main-background"]="#353c47",t["main-stroke"]="#353c47",t["sub-color"]="#7990b6",t["connect-color"]="#273d62",t["selected-stroke"]="#448aff",t["blur-selected-stroke"]="#536178",t["expander-outline-stroke"]="#7990b6",t["expander-outline-fill"]="#7990b6",t["expander-sign-stroke"]="#455a64",f.register("wiz-android-night",t)}};var c={"expose-kityminder":34};a("expose-kityminder")}(); \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-black.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-black.svg index c6fd85adf..5f005053f 100644 --- a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-black.svg +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-black.svg @@ -1,87 +1,43 @@ - - 主题6 - - - - - - - - - - - - - - - - - - - - - 思维导图 - - - - - - - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - + + 赤黑 + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-blue.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-blue.svg index 16903b8e7..0897806db 100644 --- a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-blue.svg +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-blue.svg @@ -1,87 +1,43 @@ - - 主题1 - - - - - - - - - - - - - - - - - - - - - 思维导图 - - - - - - - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - + + 青空 + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-cyan.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-cyan.svg index c278a74f5..d703c0002 100644 --- a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-cyan.svg +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-cyan.svg @@ -1,87 +1,43 @@ - - 主题8 - - - - - - - - - - - - - - - - - - - - - 思维导图 - - - - - - - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - + + 雪青 + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-darkBlue.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-darkBlue.svg index f9d51facc..0252d6df7 100644 --- a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-darkBlue.svg +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-darkBlue.svg @@ -1,87 +1,43 @@ - - 主题5 - - - - - - - - - - - - - - - - - - - - - 思维导图 - - - - - - - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - + + 藏蓝 + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-golden.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-golden.svg index 3a8e91236..bad5fb4c1 100644 --- a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-golden.svg +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-golden.svg @@ -1,88 +1,43 @@ - - 主题2 - - - - - - - - - - - - - - - - - - - - - - 思维导图 - - - - - - - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - + + 栀金 + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-green.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-green.svg index fdcbd2ee4..553ad18a7 100644 --- a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-green.svg +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-green.svg @@ -1,87 +1,43 @@ - - 主题10 - - - - - - - - - - - - - - - - - - - - - 思维导图 - - - - - - - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - + + 苔绿 + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-lightGreen-night.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-lightGreen-night.svg index e360263fa..adad106e2 100644 --- a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-lightGreen-night.svg +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-lightGreen-night.svg @@ -1,87 +1,43 @@ - - 主题夜间 - - - - - - - - - - - - - - - - - - - - - 思维导图 - - - - - - - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - + + 夜间 + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-lightGreen.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-lightGreen.svg index 45a138027..c858edb75 100644 --- a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-lightGreen.svg +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-lightGreen.svg @@ -1,87 +1,43 @@ - - 主题3 - - - - - - - - - - - - - - - - - - - - - 思维导图 - - - - - - - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - + + 浅葱 + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-purple.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-purple.svg index 99432a92c..3a315bab5 100644 --- a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-purple.svg +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-purple.svg @@ -1,87 +1,43 @@ - - 主题7 - - - - - - - - - - - - - - - - - - - - - 思维导图 - - - - - - - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - + + 藤紫 + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-sakura.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-sakura.svg index 3f460bd78..ae7be0e0d 100644 --- a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-sakura.svg +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-sakura.svg @@ -1,87 +1,43 @@ - - 主题4 - - - - - - - - - - - - - - - - - - - - - 思维导图 - - - - - - - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - + + 樱粉 + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-silver.svg b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-silver.svg index 8ee1e2ba1..4cc391408 100644 --- a/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-silver.svg +++ b/share/files/wizeditor/dependency/minder/wizThemeSvg/wiz-silver.svg @@ -1,87 +1,43 @@ - - 主题9 - - - - - - - - - - - - - - - - - - - - - 思维导图 - - - - - - - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - - - 思维导图 - + + 夕银 + + + + + + + + + + + 思维导图 + + + + + + + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + 思维导图 + + + \ No newline at end of file diff --git a/share/files/wizeditor/wizEditorForMac.js b/share/files/wizeditor/wizEditorForMac.js old mode 100755 new mode 100644 index f64f89ef1..e899359d8 --- a/share/files/wizeditor/wizEditorForMac.js +++ b/share/files/wizeditor/wizEditorForMac.js @@ -1,8 +1,8 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=565)}([function(e,t,n){var r=n(6),o=n(12),i=n(21),a=n(18),l=n(27),s=function e(t,n,s){var c,d,u,f,h=t&e.F,p=t&e.G,m=t&e.P,g=t&e.B,v=p?r:t&e.S?r[n]||(r[n]={}):(r[n]||{}).prototype,b=p?o:o[n]||(o[n]={}),y=b.prototype||(b.prototype={});for(c in p&&(s=n),s)u=((d=!h&&v&&void 0!==v[c])?v:s)[c],f=g&&d?l(u,r):m&&"function"==typeof u?l(Function.call,u):u,v&&a(v,c,u,t&e.U),b[c]!=u&&i(b,c,f),m&&y[c]!=u&&(y[c]=u)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){var n;function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o={version:"1.0.60.14",wizContentVersion:"0.1.7",wizPainterVersion:"0.1.9",minderVersion:"1.4.50.6",WIZ_DOCUMENT_MIN_VERSION:{OUTLINE:"1.0.60.14"},AMEND_TIME_SPACE:18e4,AMEND_BATCH_TIME_SPACE:3e4,SPACE_CHAR:" ",SPACE_CHAR_REG:/\u00A0/gi,FILL_CHAR:"​",FILL_CHAR_REG:new RegExp("​","ig"),WIZ_TABLE_IN_MARKDOWN_SRC_REG:"
    ]*wiz-table-container[^>]*>(.|\\n)*?
    ",EMPTY_NOTE_TEMPLATE:"${body}",AMEND:{INFO_SPACE:0,INFO_TIMER:300},ATTR:{IMG:"data-wiz-img",IMG_MASK:"data-wiz-img-mask",IMG_RATE:"data-wiz-img-rate",IMG_EDITING:"data-wiz-img-editing",SPAN:"data-wiz-span",SPAN_USERID:"data-wiz-user-id",SPAN_INSERT:"data-wiz-insert",SPAN_DELETE:"data-wiz-delete",SPAN_PASTE:"data-wiz-paste",SPAN_PASTE_TYPE:"data-wiz-paste-type",SPAN_PASTE_ID:"data-wiz-paste-id",SPAN_TIMESTAMP:"data-wiz-amend-time",TODO_ID:"wiz_todo_id",TODO_CHECK:"data-wiz-check",WIZ_DOCUMENT_MIN_VERSION:"data-wiz-document-min-version",WIZ_DOCUMENT_TYPE:"data-wiz-document-type"},CLASS:(n={BLOCK_SCROLL:"wiz-block-scroll",CODE_CONTAINER:"wiz-code-container",CODE_CONTAINER_PASTE:"wiz-code-container-paste",CODE_CONTAINER_OLD:"prettyprint",CODE_MIRROR:"CodeMirror",CODE_MIRROR_LINE:"CodeMirror-line",CODE_MIRROR_MEASURE:"CodeMirror-measure",CODE_MIRROR_GUTTER:"CodeMirror-gutter-wrapper",CODE_MIRROR_HSCROLL:"CodeMirror-scroll",CODE_TOOLS:"wiz-code-tools",CODE_TOOLS_INFO:"wiz-code-tools-info",CODE_TOOLS_MODE:"wiz-code-tools-mode",CODE_TOOLS_THEME:"wiz-code-tools-theme",CODE_TOOLS_MORE:"wiz-code-tools-more",EDITOR_CONTAINER:"wiz-editor-container",EDITOR_PREVIEW_SHOW:"wiz-editor-preview-show",HOTKEY:"hotkey",HOTKEY_LAYER:"hotkey-layer",IMG_ATTACHMENT:"wiz-img-attachment",IMG_NOT_DRAG:"wiz-img-cannot-drag",IMG_CONTAINER:"wiz-image-container",IMG_MENU:"wiz-img-menu",IMG_RESIZE_ACTIVE:"wiz-img-resize-active",IMG_RESIZE_CONTAINER:"wiz-img-resize-container",IMG_RESIZE_HANDLE:"wiz-img-resize-handle",IMG_SUB_MENU:"wiz-img-sub-menu",IMG_SUB_MENU_CONTAINER:"wiz-img-sub-menu-container",IMG_SUB_MENU_ITEM:"wiz-img-sub-menu-item",IMG_TITLE:"wiz-image-title",MARKDOWN_BODY:"markdown-body",MEDIA_DATA:"wiz-media-data",MENU_PLUGIN_CONTAINER:"wiz-menu-plugin-container",MENU_PLUGIN_OPTIONS:"wiz-menu-plugin-options",MENU_PLUGIN_OPTIONS_ITEM:"wiz-menu-plugin-options-item",ORDER_LIST_LEVEL:["wiz-list-level3","wiz-list-level1","wiz-list-level2"],ORDER_LIST_ALIGN_STYLE:"wiz-list-align-style",READONLY:"wiz-readonly",EDITING:"wiz-editing",SELECTED_CELL:"wiz-selected-cell",SELECTED_CELL_MULTI:"wiz-selected-cell-multi",SELECT_PLUGIN_CONTAINER:"wiz-select-plugin-container",SELECT_PLUGIN_HEADER:"wiz-select-plugin-header",SELECT_PLUGIN_HEADER_TEXT:"wiz-select-plugin-header-text",SELECT_PLUGIN_MENU:"wiz-select-plugin-menu",SVG_IMAGE:"wiz-svg-image",SVG_TEMPLATE:"wiz-svg-template",TEMPLATE_EDITABLE:"wiz-template-editable",TABLE_DELETE_ZONE:"wiz-table-delete-zone",TABLE_CONTAINER:"wiz-table-container",TABLE_BODY:"wiz-table-body",TABLE_LINE_BOX:"wiz-table-bar-box",TABLE_MENU_BUTTON:"wiz-table-menu-button",TABLE_MENU_ITEM:"wiz-table-menu-item",TABLE_SUB_MENU:"wiz-table-sub-menu",TABLE_TOOLS:"wiz-table-tools"},r(n,"TABLE_LINE_BOX","wiz-table-bar-box"),r(n,"TABLE_LINE_POINT","wiz-table-bar-point"),r(n,"TABLE_DELETE_ZONE","wiz-table-delete-zone"),r(n,"TABLE_MOVING","wiz-table-moving"),r(n,"TABLE_BAR","wiz-table-bar"),r(n,"TABLE_ALL_BAR","wiz-table-all-bar"),r(n,"TABLE_ROW_BAR","wiz-table-row-bar"),r(n,"TABLE_COL_BAR","wiz-table-col-bar"),r(n,"TABLE_ADD_BTN","wiz-table-add-btn"),r(n,"TODO_ACCOUNT","wiz-todo-account"),r(n,"TODO_AVATAR","wiz-todo-avatar"),r(n,"TODO_CHECKBOX","wiz-todo-checkbox"),r(n,"TODO_CHECK_IMG_OLD","wiz-todo-img"),r(n,"TODO_DATE","wiz-todo-dt"),r(n,"TODO_LAYER","wiz-todo-layer"),r(n,"TODO_MAIN","wiz-todo-main"),r(n,"TODO_LABEL_OLD","wiz-todo-label"),r(n,"TODO_CHECKED","wiz-todo-checked"),r(n,"TODO_UNCHECKED","wiz-todo-unchecked"),r(n,"TODO_CHECKED_OLD","wiz-todo-label-checked"),r(n,"TODO_UNCHECKED_OLD","wiz-todo-label-unchecked"),r(n,"TODO_TAIL_OLD","wiz-todo-tail"),r(n,"TODO_USER_AVATAR","wiz-todo-avatar-"),r(n,"TODO_USER_INFO","wiz-todo-completed-info"),r(n,"TOOL_TIP","wiz-tooltip"),r(n,"TOOL_TIP_ITEM","wiz-tooltip-item"),r(n,"TOOL_TIP_ARROW","wiz-tooltip-arrow"),r(n,"TOOL_TIP_COLOR_BOX","wiz-tooltip-color-box"),r(n,"TOOL_TIP_ARROW_BG","wiz-tooltip-arrow-bg"),r(n,"WIZ_BODY","wiz-editor-body"),r(n,"WIZ_CONTENT_IFRAME_ACTIVE","wiz-content-active"),r(n,"WIZ_EIDTOR_BODY_CONTAINER","wiz-editor-body-container"),r(n,"WIZ_EIDTOR_IFRAME","wiz-editor-iframe"),r(n,"WIZ_EIDTOR_PREVIEW_CONTAINER","wiz-editor-preview-container"),r(n,"WIZ_EIDTOR_TOOlBAR_CONTAINER","wiz-editor-toolbar-container"),r(n,"WIZ_EIDTOR_TOOlBAR_MAIN","wiz-editor-toolbar-main"),r(n,"WIZ_EIDTOR_TOOlBAR_SIDE","wiz-editor-toolbar-side"),n),CLIENT_EVENT:{WizEditorClickImg:"WizEditorClickImg",WizEditorClickSvg:"WizEditorClickSvg",WizEditorAfterCopied:"WizEditorAfterCopied",WizEditorPaste:"WizEditorPaste",WizEditorSetScrollTop:"WizEditorSetScrollTop",WizEditorTrackEvent:"WizEditorTrackEvent",WizMarkdownRender:"WizMarkdownRender",WizReaderClickImg:"WizReaderClickImg",IosPrompt:"IosPrompt"},CODE:{StorageKey:{Mode:"wiz-code-mode",Theme:"wiz-code-theme",Wrap:"wiz-code-wrap"}},COLOR:["#CB3C3C","#0C9460","#FF3399","#FF6005","#8058BD","#009999","#8AA725","#339900","#CC6600","#3BBABA","#D4CA1A","#2389B0","#006699","#FF8300","#2C6ED5","#FF0000","#B07CFF","#CC3399","#EB4847","#3917E6"],CSS:{DEFAULT_FONT:'Helvetica, "Hiragino Sans GB", "微软雅黑", "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif',IMG:{SPAN:{position:"relative",display:"inline-block"},MASK:{position:"absolute",width:"100% !important",height:"100% !important",top:"0",left:"0",opacity:".5",filter:"alpha(opacity=50)",border:"2px solid","box-sizing":"border-box","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box"}},IMG_DELETED:{background:"#fdc6c6 url(data:image/gif;base64,R0lGODlhDwAPAIABAIcUFP///yH5BAEKAAEALAAAAAAPAA8AAAIajI8IybadHjxyhjox1I0zH1mU6JCXCSpmUAAAOw==)","border-color":"#E47070"},IMG_INSERT:{background:"#ccffcc","border-color":"#00AA00"},TODO_LIST:{IMG_WIDTH:40},Z_INDEX:{amendInfo:150,tableBorder:105,tableColRowLine:120,tableRangeDot:110,tableTDBefore:100,tableTools:130,tableToolsArrow:10},TABLECOMPONENT:{PADDING:28}},DOCUMENT_TYPE:{COMMON:"common",OUTLINE:"outline"},EVENT:{BEFORE_GET_DOCHTML:"BEFORE_GET_DOCHTML",BEFORE_SAVESNAP:"BEFORE_SAVESNAP",AFTER_INSERT_DOM:"AFTER_INSERT_DOM",AFTER_RESTORE_HISTORY:"AFTER_RESTORE_HISTORY",AUTO_EDIT:"AUTO_EDIT",EXEC_COMMEND:"EXEC_COMMEND",ON_DBLCLICK:"ON_DBLCLICK",ON_CLICK:"ON_CLICK",ON_COMPOSITION_START:"ON_COMPOSITION_START",ON_COMPOSITION_END:"ON_COMPOSITION_END",ON_COPY:"ON_COPY",ON_CUT:"ON_CUT",ON_DOM_SUBTREE_MODIFIED:"ON_DOM_SUBTREE_MODIFIED",ON_DRAG_START:"ON_DRAG_START",ON_DRAG_ENTER:"ON_DRAG_ENTER",ON_DROP:"ON_DROP",ON_EXEC_COMMAND:"ON_EXEC_COMMAND",ON_KEY_DOWN:"ON_KEY_DOWN",ON_KEY_UP:"ON_KEY_UP",ON_MARKER_INITIATED:"ON_MARKER_INITIATED",ON_MENU_PLUGIN_HIDE:"ON_MENU_PLUGIN_HIDE",ON_MENU_PLUGIN_SHOW:"ON_MENU_PLUGIN_SHOW",ON_MOUSE_DOWN:"ON_MOUSE_DOWN",ON_MOUSE_MOVE:"ON_MOUSE_MOVE",ON_MOUSE_OVER:"ON_MOUSE_OVER",ON_MOUSE_UP:"ON_MOUSE_UP",ON_ORIENTATION_CHANGE:"ON_ORIENTATION_CHANGE",ON_PASTE:"ON_PASTE",ON_RESIZE:"ON_RESIZE",ON_SCROLL:"ON_SCROLL",ON_SELECT_PLUGIN_CHANGE:"ON_SELECT_PLUGIN_CHANGE",ON_SELECT_PLUGIN_HIDE:"ON_SELECT_PLUGIN_HIDE",ON_SELECT_PLUGIN_SHOW:"ON_SELECT_PLUGIN_SHOW",ON_SELECTION_CHANGE:"ON_SELECTION_CHANGE",ON_SELECT_START:"ON_SELECT_START",ON_TEXT_INPUT:"ON_TEXT_INPUT",ON_TOUCH_START:"ON_TOUCH_START",ON_TOUCH_END:"ON_TOUCH_END",UPDATE_TABLE_RENDER:"UPDATE_TABLE_RENDER"},HISTORY:{TYPE:{CODE_MIRROR:"CODE_MIRROR",COMMON:"COMMON"}},ID:{BODY_TMP_BOTTOM_STYLE:"wiz-tmp-bottom-style",AMEND_INFO:"wiz-amend-info",AMEND_INFO_SINGLE:"wiz-amend-info-single",AMEND_INFO_MULTI:"wiz-amend-info-multi",AMEND_INFO_NAME:"wiz-amend-info-name",AMEND_INFO_IMG:"wiz-amend-info-image",AMEND_INFO_CONTENT:"wiz-amend-info-content",AMEND_INFO_TIME:"wiz-amend-info-time",AMEND_INFO_TOOLS:"wiz-amend-info-tools",AMEND_INFO_ACCEPT:"wiz-amend-info-accept",AMEND_INFO_REFUSE:"wiz-amend-info-refuse",AMEND_USER_INFO:"wiz-amend-user",CODE_STYLE:"wiz_code_style",FORMAT_PAINTER_STYLE:"wiz_format_painter_style",IFRAME_FOR_SAVE:"wiz-iframe-for-save",IMAGE_MENU_CONTAINER:"wiz-img-menu-container",MARKER_ROOT:"wiz-painter-root",MARKER_STYLE:"wiz-marker-style",MEDIA_STYLE:"wiz-media-style",PURE_READ_STYLE:"wiz-pure-read-style",TABLE_RANGE_BORDER:"wiz-table-range-border",TABLE_ROW_LINE:"wiz-table-row-line",TABLE_COL_LINE:"wiz-table-col-line",TODO_STYLE:"wiz_todo_style",TODO_STYLE_OLD:"wiz_todo_style_id",TODO_AVATAR_STYLE:"wiz_todo_style_avatar_",TMP_STYLE_PRE:"wiz_tmp_style_",WIZ_DEFAULT_STYLE:"wiz_custom_css",WIZ_EIDTOR_FRAME_STYLE:"wiz-editor-frame-style",WIZ_EIDTOR_FRAME_BODY_STYLE:"wiz-editor-frame-body-style",WIZ_EIDTOR_PREVIEW_STYLE:"wiz-editor-preview-style",WIZ_EIDTOR_TOOlBAR_STYLE:"wiz-editor-toolbar-style",WIZ_TEMPLATE_INFO:"wiz-template-info"},NAME:{CODE_STYLE:"wiz_code_style",TMP_STYLE:"wiz_tmp_editor_style",UNSAVE_STYLE:"wiz_unsave_style"},NOTE_READER_TYPE:{COMMON:"common",MARKDOWN:"markdown",MATHJAX:"mathjax",OUTLINE:"outline"},NOTE_EDITOR_TYPE:{COMMON:"common",MARKDOWN:"markdown",OUTLINE:"outline"},MENU_PLUGIN:{TYPE:{MENU:"menu",SELECT:"select"}},SELECT_PLUGIN:{TYPE:{COMMON:"common",ICON:"icon"}},TAG:{CODE_MIRROR:"wiz_code_mirror",MARKER:"wiz_marker",MEDIA:"wiz_media",TMP_TAG:"wiz_tmp_tag",TMP_PLUGIN_TAG:"wiz_tmp_plugin_tag",TMP_HIGHLIGHT_TAG:"wiz_tmp_highlight_tag"},TYPE:{EDITOR_EVENT:{SelectionChange:"selectionchange",HistoryUndo:"historyUndo"},IMG_DELETE:"delete",IMG_INSERT:"insert",LAYOUT:{BOTTOM:"BOTTOM",BOTTOM_END:"BOTTOM_END",BOTTOM_START:"BOTTOM_START",TOP:"TOP",TOP_END:"TOP_END",TOP_START:"TOP_START",LEFT_START:"LEFT_START",LEFT_END:"LEFT_END",RIGHT_START:"RIGHT_START",RIGHT_END:"RIGHT_END"},PASTE:{START:"start",END:"end",CONTENT:"content"},TABLE:{COPY:"copy",PASTE:"paste",CLEAR_CELL:"clearCell",MERGE_CELL:"mergeCell",SPLIT_CELL:"splitCell",INSERT_ROW_UP:"insertRowUp",INSERT_ROW_DOWN:"insertRowDown",INSERT_COL_LEFT:"insertColLeft",INSERT_COL_RIGHT:"insertColRight",DELETE_ROW:"deleteRow",DELETE_COL:"deleteCol",SET_CELL_BG:"setCellBg",SELECT_BG:"selectBg",SET_CELL_ALIGN:"setCellAlign",DISTRIBUTE_COLS:"distributeCols",DELETE_TABLE:"deleteTable",OPEN_MENU:"openMenu",OPEN_SUB_MENU:"openSubMenu"}}};e.exports=o},function(e,t){function n(e,t){for(var n=0;ne?1:-1}}var i=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;"wiz".trim||(String.prototype.trim=function(){return this.replace(i,"")});var a=/[\-\[\]{}()*+?.,\\^$|#\s]/g;try{"abc".escapeRegex()}catch(e){String.prototype.escapeRegex=function(){return this.toString().replace(a,"\\$&")}}try{"abc".escapeReplace()}catch(e){String.prototype.escapeReplace=function(){return this.toString().replace(/\$/gi,"$$$$")}}Array.prototype.indexOf||(Array.prototype.indexOf=function(e){for(var t=0;t=48&&t<=57||t>=65&&t<=90||t>=96&&t<=107||t>=109&&t<=111||t>=186&&t<=192||t>=219&&t<=222||229===t||0===t||13===t||32===t)},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},isBoolean:function(e){return"[object Boolean]"===Object.prototype.toString.apply(e)},isEmpty:function(e){if(!e)return!0;var t=new RegExp("[\r\n"+r.FILL_CHAR+"]","ig"),n=/\r?\n/gi.test(e),o=e.replace(t,""),i=0===e.replace(t,"").trim().length;return 0===o.length||n&&i},isSameAmendTime:function(e,t){if(!e||!t)return!1;var n=l.getDateForTimeStr(e),o=l.getDateForTimeStr(t);return Math.abs(n-o)<=r.AMEND_BATCH_TIME_SPACE},checkChar:function(e,t){var n,r,o,i;for(n=0,r=t.length;n1?t[n][1]:null)&&e===o)return!0;if(null!==i&&e>=o&&e<=i)return!0}return!1},compareVersion:function(e,t){var n,r,o,i;for(e=e.split("."),t=t.split("."),n=0,r=e.length;ni)return 1}return e.length=0;t--)n^=(n<<5)+e.charCodeAt(t)+(n>>2);return 2147483647&n},getTime:function(){var e=new Date;return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())+" "+t(e.getHours())+":"+t(e.getMinutes())+":"+t(e.getSeconds());function t(e){var t=e.toString();return 1===t.length?"0"+t:t}},getDateForTimeStr:function(e){return new Date(Date.parse(e.replace(/-/g,"/")))},listToMap:function(e){if(!e)return{};var t,n,r,o={};for(t=0,n=(e=l.isArray(e)?e:e.split(",")).length;t/g,">")+"";else{var h=0===f?"span":"div";o="<"+h+">"+n.replace(/&/g,"&").replace(//g,">")+""}else o="
    ";a.push(o)}return a.join("")},dom:{insertToHead:function(e,t){t.querySelector("HEAD").appendChild(e)}},math:{getRandomArbitrary:function(e,t){return l.math.random()*(t-e)+e},random:function(){return o()()}},storage:{get:function(e){try{var t=window.localStorage[e];return t?JSON.parse(t):null}catch(e){return console.error(e),null}},set:function(e,t){try{window.localStorage.setItem(e,JSON.stringify(t))}catch(e){console.error(e)}},remove:function(e){window.localStorage.removeItem(e)}}};e.exports=l},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){var r=n(16),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),i(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(9);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return"object"===n(e)?null!==e:"function"==typeof e}},function(e,t,n){var r=n(74)("wks"),o=n(43),i=n(6).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(29),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,r){"use strict";function o(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var l;"object"===t(e)?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{l=n(442).Buffer}catch(e){}function s(e,t,n){for(var r=0,o=Math.min(e.length,n),i=t;i=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function c(e,t,n,r){for(var o=0,i=Math.min(e.length,n),a=t;a=49?l-49+10:l>=17?l-17+10:l}return o}a.isBN=function(e){return e instanceof a||null!==e&&"object"===t(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,n,r){if("number"==typeof e)return this._initNumber(e,n,r);if("object"===t(e))return this._initArray(e,n,r);"hex"===n&&(n=16),o(n===(0|n)&&n>=2&&n<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===n?this._parseHex(e,i):this._parseBase(e,n,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),n,r)},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(o(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(o("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r=0;r-=3)a=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[i]|=a<>>26-l&67108863,(l+=24)>=26&&(l-=26,i++);else if("le"===n)for(r=0,i=0;r>>26-l&67108863,(l+=24)>=26&&(l-=26,i++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)o=s(e,n,n+6),this.words[r]|=o<>>26-i&4194303,(i+=24)>=26&&(i-=26,r++);n+6!==t&&(o=s(e,t,n+6),this.words[r]|=o<>>26-i&4194303),this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,o=1;o<=67108863;o*=t)r++;r--,o=o/t|0;for(var i=e.length-n,a=i%r,l=Math.min(i,i-a)+n,s=0,d=n;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var o=0|e.words[0],i=0|t.words[0],a=o*i,l=67108863&a,s=a/67108864|0;n.words[0]=l;for(var c=1;c>>26,u=67108863&s,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;d+=(a=(o=0|e.words[p])*(i=0|t.words[h])+u)/67108864|0,u=67108863&a}n.words[c]=0|u,s=0|d}return 0!==s?n.words[c]=0|s:n.length--,n.strip()}a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var r=0,i=0,a=0;a>>24-r&16777215)||a!==this.length-1?d[6-s.length]+s+n:s+n,(r+=2)>=26&&(r-=26,a--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=u[e],h=f[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);n=(p=p.idivn(h)).isZero()?m+n:d[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return o(void 0!==l),this.toArrayLike(l,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var r=this.byteLength(),i=n||Math.max(1,r);o(r<=i,"byte array longer than desired length"),o(i>0,"Requested array length <= 0"),this.strip();var a,l,s="le"===t,c=new e(i),d=this.clone();if(s){for(l=0;!d.isZero();l++)a=d.andln(255),d.iushrn(8),c[l]=a;for(;l=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){o("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){o("number"==typeof e&&e>=0);var n=e/26|0,r=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var o=0,i=0;i>>26;for(;0!==o&&i>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==i&&a>26,this.words[a]=67108863&t;if(0===i&&a>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],_=8191&y,S=y>>>13,E=0|a[4],C=8191&E,T=E>>>13,A=0|a[5],O=8191&A,w=A>>>13,N=0|a[6],L=8191&N,I=N>>>13,U=0|a[7],D=8191&U,M=U>>>13,x=0|a[8],R=8191&x,k=x>>>13,P=0|a[9],B=8191&P,z=P>>>13,F=0|l[0],j=8191&F,q=F>>>13,W=0|l[1],H=8191&W,Y=W>>>13,G=0|l[2],V=8191&G,Z=G>>>13,K=0|l[3],X=8191&K,$=K>>>13,J=0|l[4],Q=8191&J,ee=J>>>13,te=0|l[5],ne=8191&te,re=te>>>13,oe=0|l[6],ie=8191&oe,ae=oe>>>13,le=0|l[7],se=8191&le,ce=le>>>13,de=0|l[8],ue=8191&de,fe=de>>>13,he=0|l[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(c+(r=Math.imul(u,j))|0)+((8191&(o=(o=Math.imul(u,q))+Math.imul(f,j)|0))<<13)|0;c=((i=Math.imul(f,q))+(o>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,j),o=(o=Math.imul(p,q))+Math.imul(m,j)|0,i=Math.imul(m,q);var ve=(c+(r=r+Math.imul(u,H)|0)|0)+((8191&(o=(o=o+Math.imul(u,Y)|0)+Math.imul(f,H)|0))<<13)|0;c=((i=i+Math.imul(f,Y)|0)+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,j),o=(o=Math.imul(v,q))+Math.imul(b,j)|0,i=Math.imul(b,q),r=r+Math.imul(p,H)|0,o=(o=o+Math.imul(p,Y)|0)+Math.imul(m,H)|0,i=i+Math.imul(m,Y)|0;var be=(c+(r=r+Math.imul(u,V)|0)|0)+((8191&(o=(o=o+Math.imul(u,Z)|0)+Math.imul(f,V)|0))<<13)|0;c=((i=i+Math.imul(f,Z)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(_,j),o=(o=Math.imul(_,q))+Math.imul(S,j)|0,i=Math.imul(S,q),r=r+Math.imul(v,H)|0,o=(o=o+Math.imul(v,Y)|0)+Math.imul(b,H)|0,i=i+Math.imul(b,Y)|0,r=r+Math.imul(p,V)|0,o=(o=o+Math.imul(p,Z)|0)+Math.imul(m,V)|0,i=i+Math.imul(m,Z)|0;var ye=(c+(r=r+Math.imul(u,X)|0)|0)+((8191&(o=(o=o+Math.imul(u,$)|0)+Math.imul(f,X)|0))<<13)|0;c=((i=i+Math.imul(f,$)|0)+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(C,j),o=(o=Math.imul(C,q))+Math.imul(T,j)|0,i=Math.imul(T,q),r=r+Math.imul(_,H)|0,o=(o=o+Math.imul(_,Y)|0)+Math.imul(S,H)|0,i=i+Math.imul(S,Y)|0,r=r+Math.imul(v,V)|0,o=(o=o+Math.imul(v,Z)|0)+Math.imul(b,V)|0,i=i+Math.imul(b,Z)|0,r=r+Math.imul(p,X)|0,o=(o=o+Math.imul(p,$)|0)+Math.imul(m,X)|0,i=i+Math.imul(m,$)|0;var _e=(c+(r=r+Math.imul(u,Q)|0)|0)+((8191&(o=(o=o+Math.imul(u,ee)|0)+Math.imul(f,Q)|0))<<13)|0;c=((i=i+Math.imul(f,ee)|0)+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(O,j),o=(o=Math.imul(O,q))+Math.imul(w,j)|0,i=Math.imul(w,q),r=r+Math.imul(C,H)|0,o=(o=o+Math.imul(C,Y)|0)+Math.imul(T,H)|0,i=i+Math.imul(T,Y)|0,r=r+Math.imul(_,V)|0,o=(o=o+Math.imul(_,Z)|0)+Math.imul(S,V)|0,i=i+Math.imul(S,Z)|0,r=r+Math.imul(v,X)|0,o=(o=o+Math.imul(v,$)|0)+Math.imul(b,X)|0,i=i+Math.imul(b,$)|0,r=r+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,i=i+Math.imul(m,ee)|0;var Se=(c+(r=r+Math.imul(u,ne)|0)|0)+((8191&(o=(o=o+Math.imul(u,re)|0)+Math.imul(f,ne)|0))<<13)|0;c=((i=i+Math.imul(f,re)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,j),o=(o=Math.imul(L,q))+Math.imul(I,j)|0,i=Math.imul(I,q),r=r+Math.imul(O,H)|0,o=(o=o+Math.imul(O,Y)|0)+Math.imul(w,H)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(C,V)|0,o=(o=o+Math.imul(C,Z)|0)+Math.imul(T,V)|0,i=i+Math.imul(T,Z)|0,r=r+Math.imul(_,X)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(S,X)|0,i=i+Math.imul(S,$)|0,r=r+Math.imul(v,Q)|0,o=(o=o+Math.imul(v,ee)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,ee)|0,r=r+Math.imul(p,ne)|0,o=(o=o+Math.imul(p,re)|0)+Math.imul(m,ne)|0,i=i+Math.imul(m,re)|0;var Ee=(c+(r=r+Math.imul(u,ie)|0)|0)+((8191&(o=(o=o+Math.imul(u,ae)|0)+Math.imul(f,ie)|0))<<13)|0;c=((i=i+Math.imul(f,ae)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(D,j),o=(o=Math.imul(D,q))+Math.imul(M,j)|0,i=Math.imul(M,q),r=r+Math.imul(L,H)|0,o=(o=o+Math.imul(L,Y)|0)+Math.imul(I,H)|0,i=i+Math.imul(I,Y)|0,r=r+Math.imul(O,V)|0,o=(o=o+Math.imul(O,Z)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,Z)|0,r=r+Math.imul(C,X)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(T,X)|0,i=i+Math.imul(T,$)|0,r=r+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,ee)|0)+Math.imul(S,Q)|0,i=i+Math.imul(S,ee)|0,r=r+Math.imul(v,ne)|0,o=(o=o+Math.imul(v,re)|0)+Math.imul(b,ne)|0,i=i+Math.imul(b,re)|0,r=r+Math.imul(p,ie)|0,o=(o=o+Math.imul(p,ae)|0)+Math.imul(m,ie)|0,i=i+Math.imul(m,ae)|0;var Ce=(c+(r=r+Math.imul(u,se)|0)|0)+((8191&(o=(o=o+Math.imul(u,ce)|0)+Math.imul(f,se)|0))<<13)|0;c=((i=i+Math.imul(f,ce)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(R,j),o=(o=Math.imul(R,q))+Math.imul(k,j)|0,i=Math.imul(k,q),r=r+Math.imul(D,H)|0,o=(o=o+Math.imul(D,Y)|0)+Math.imul(M,H)|0,i=i+Math.imul(M,Y)|0,r=r+Math.imul(L,V)|0,o=(o=o+Math.imul(L,Z)|0)+Math.imul(I,V)|0,i=i+Math.imul(I,Z)|0,r=r+Math.imul(O,X)|0,o=(o=o+Math.imul(O,$)|0)+Math.imul(w,X)|0,i=i+Math.imul(w,$)|0,r=r+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,ee)|0)+Math.imul(T,Q)|0,i=i+Math.imul(T,ee)|0,r=r+Math.imul(_,ne)|0,o=(o=o+Math.imul(_,re)|0)+Math.imul(S,ne)|0,i=i+Math.imul(S,re)|0,r=r+Math.imul(v,ie)|0,o=(o=o+Math.imul(v,ae)|0)+Math.imul(b,ie)|0,i=i+Math.imul(b,ae)|0,r=r+Math.imul(p,se)|0,o=(o=o+Math.imul(p,ce)|0)+Math.imul(m,se)|0,i=i+Math.imul(m,ce)|0;var Te=(c+(r=r+Math.imul(u,ue)|0)|0)+((8191&(o=(o=o+Math.imul(u,fe)|0)+Math.imul(f,ue)|0))<<13)|0;c=((i=i+Math.imul(f,fe)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,j),o=(o=Math.imul(B,q))+Math.imul(z,j)|0,i=Math.imul(z,q),r=r+Math.imul(R,H)|0,o=(o=o+Math.imul(R,Y)|0)+Math.imul(k,H)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(D,V)|0,o=(o=o+Math.imul(D,Z)|0)+Math.imul(M,V)|0,i=i+Math.imul(M,Z)|0,r=r+Math.imul(L,X)|0,o=(o=o+Math.imul(L,$)|0)+Math.imul(I,X)|0,i=i+Math.imul(I,$)|0,r=r+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(C,ne)|0,o=(o=o+Math.imul(C,re)|0)+Math.imul(T,ne)|0,i=i+Math.imul(T,re)|0,r=r+Math.imul(_,ie)|0,o=(o=o+Math.imul(_,ae)|0)+Math.imul(S,ie)|0,i=i+Math.imul(S,ae)|0,r=r+Math.imul(v,se)|0,o=(o=o+Math.imul(v,ce)|0)+Math.imul(b,se)|0,i=i+Math.imul(b,ce)|0,r=r+Math.imul(p,ue)|0,o=(o=o+Math.imul(p,fe)|0)+Math.imul(m,ue)|0,i=i+Math.imul(m,fe)|0;var Ae=(c+(r=r+Math.imul(u,pe)|0)|0)+((8191&(o=(o=o+Math.imul(u,me)|0)+Math.imul(f,pe)|0))<<13)|0;c=((i=i+Math.imul(f,me)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(B,H),o=(o=Math.imul(B,Y))+Math.imul(z,H)|0,i=Math.imul(z,Y),r=r+Math.imul(R,V)|0,o=(o=o+Math.imul(R,Z)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,Z)|0,r=r+Math.imul(D,X)|0,o=(o=o+Math.imul(D,$)|0)+Math.imul(M,X)|0,i=i+Math.imul(M,$)|0,r=r+Math.imul(L,Q)|0,o=(o=o+Math.imul(L,ee)|0)+Math.imul(I,Q)|0,i=i+Math.imul(I,ee)|0,r=r+Math.imul(O,ne)|0,o=(o=o+Math.imul(O,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(C,ie)|0,o=(o=o+Math.imul(C,ae)|0)+Math.imul(T,ie)|0,i=i+Math.imul(T,ae)|0,r=r+Math.imul(_,se)|0,o=(o=o+Math.imul(_,ce)|0)+Math.imul(S,se)|0,i=i+Math.imul(S,ce)|0,r=r+Math.imul(v,ue)|0,o=(o=o+Math.imul(v,fe)|0)+Math.imul(b,ue)|0,i=i+Math.imul(b,fe)|0;var Oe=(c+(r=r+Math.imul(p,pe)|0)|0)+((8191&(o=(o=o+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((i=i+Math.imul(m,me)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(B,V),o=(o=Math.imul(B,Z))+Math.imul(z,V)|0,i=Math.imul(z,Z),r=r+Math.imul(R,X)|0,o=(o=o+Math.imul(R,$)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,$)|0,r=r+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,ee)|0)+Math.imul(M,Q)|0,i=i+Math.imul(M,ee)|0,r=r+Math.imul(L,ne)|0,o=(o=o+Math.imul(L,re)|0)+Math.imul(I,ne)|0,i=i+Math.imul(I,re)|0,r=r+Math.imul(O,ie)|0,o=(o=o+Math.imul(O,ae)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,ae)|0,r=r+Math.imul(C,se)|0,o=(o=o+Math.imul(C,ce)|0)+Math.imul(T,se)|0,i=i+Math.imul(T,ce)|0,r=r+Math.imul(_,ue)|0,o=(o=o+Math.imul(_,fe)|0)+Math.imul(S,ue)|0,i=i+Math.imul(S,fe)|0;var we=(c+(r=r+Math.imul(v,pe)|0)|0)+((8191&(o=(o=o+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0;c=((i=i+Math.imul(b,me)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(B,X),o=(o=Math.imul(B,$))+Math.imul(z,X)|0,i=Math.imul(z,$),r=r+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,ee)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(D,ne)|0,o=(o=o+Math.imul(D,re)|0)+Math.imul(M,ne)|0,i=i+Math.imul(M,re)|0,r=r+Math.imul(L,ie)|0,o=(o=o+Math.imul(L,ae)|0)+Math.imul(I,ie)|0,i=i+Math.imul(I,ae)|0,r=r+Math.imul(O,se)|0,o=(o=o+Math.imul(O,ce)|0)+Math.imul(w,se)|0,i=i+Math.imul(w,ce)|0,r=r+Math.imul(C,ue)|0,o=(o=o+Math.imul(C,fe)|0)+Math.imul(T,ue)|0,i=i+Math.imul(T,fe)|0;var Ne=(c+(r=r+Math.imul(_,pe)|0)|0)+((8191&(o=(o=o+Math.imul(_,me)|0)+Math.imul(S,pe)|0))<<13)|0;c=((i=i+Math.imul(S,me)|0)+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(B,Q),o=(o=Math.imul(B,ee))+Math.imul(z,Q)|0,i=Math.imul(z,ee),r=r+Math.imul(R,ne)|0,o=(o=o+Math.imul(R,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(D,ie)|0,o=(o=o+Math.imul(D,ae)|0)+Math.imul(M,ie)|0,i=i+Math.imul(M,ae)|0,r=r+Math.imul(L,se)|0,o=(o=o+Math.imul(L,ce)|0)+Math.imul(I,se)|0,i=i+Math.imul(I,ce)|0,r=r+Math.imul(O,ue)|0,o=(o=o+Math.imul(O,fe)|0)+Math.imul(w,ue)|0,i=i+Math.imul(w,fe)|0;var Le=(c+(r=r+Math.imul(C,pe)|0)|0)+((8191&(o=(o=o+Math.imul(C,me)|0)+Math.imul(T,pe)|0))<<13)|0;c=((i=i+Math.imul(T,me)|0)+(o>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(B,ne),o=(o=Math.imul(B,re))+Math.imul(z,ne)|0,i=Math.imul(z,re),r=r+Math.imul(R,ie)|0,o=(o=o+Math.imul(R,ae)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,ae)|0,r=r+Math.imul(D,se)|0,o=(o=o+Math.imul(D,ce)|0)+Math.imul(M,se)|0,i=i+Math.imul(M,ce)|0,r=r+Math.imul(L,ue)|0,o=(o=o+Math.imul(L,fe)|0)+Math.imul(I,ue)|0,i=i+Math.imul(I,fe)|0;var Ie=(c+(r=r+Math.imul(O,pe)|0)|0)+((8191&(o=(o=o+Math.imul(O,me)|0)+Math.imul(w,pe)|0))<<13)|0;c=((i=i+Math.imul(w,me)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(B,ie),o=(o=Math.imul(B,ae))+Math.imul(z,ie)|0,i=Math.imul(z,ae),r=r+Math.imul(R,se)|0,o=(o=o+Math.imul(R,ce)|0)+Math.imul(k,se)|0,i=i+Math.imul(k,ce)|0,r=r+Math.imul(D,ue)|0,o=(o=o+Math.imul(D,fe)|0)+Math.imul(M,ue)|0,i=i+Math.imul(M,fe)|0;var Ue=(c+(r=r+Math.imul(L,pe)|0)|0)+((8191&(o=(o=o+Math.imul(L,me)|0)+Math.imul(I,pe)|0))<<13)|0;c=((i=i+Math.imul(I,me)|0)+(o>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,r=Math.imul(B,se),o=(o=Math.imul(B,ce))+Math.imul(z,se)|0,i=Math.imul(z,ce),r=r+Math.imul(R,ue)|0,o=(o=o+Math.imul(R,fe)|0)+Math.imul(k,ue)|0,i=i+Math.imul(k,fe)|0;var De=(c+(r=r+Math.imul(D,pe)|0)|0)+((8191&(o=(o=o+Math.imul(D,me)|0)+Math.imul(M,pe)|0))<<13)|0;c=((i=i+Math.imul(M,me)|0)+(o>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(B,ue),o=(o=Math.imul(B,fe))+Math.imul(z,ue)|0,i=Math.imul(z,fe);var Me=(c+(r=r+Math.imul(R,pe)|0)|0)+((8191&(o=(o=o+Math.imul(R,me)|0)+Math.imul(k,pe)|0))<<13)|0;c=((i=i+Math.imul(k,me)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863;var xe=(c+(r=Math.imul(B,pe))|0)+((8191&(o=(o=Math.imul(B,me))+Math.imul(z,pe)|0))<<13)|0;return c=((i=Math.imul(z,me))+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,s[0]=ge,s[1]=ve,s[2]=be,s[3]=ye,s[4]=_e,s[5]=Se,s[6]=Ee,s[7]=Ce,s[8]=Te,s[9]=Ae,s[10]=Oe,s[11]=we,s[12]=Ne,s[13]=Le,s[14]=Ie,s[15]=Ue,s[16]=De,s[17]=Me,s[18]=xe,0!==c&&(s[19]=c,n.length++),n};function m(e,t,n){return(new g).mulp(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,o=0,i=0;i>>26)|0)>>>26,a&=67108863}n.words[i]=l,r=a,a=o}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,n,r,o,i){for(var a=0;a>>=1)o++;return 1<>>=13,n[2*a+1]=8191&i,i>>>=13;for(a=2*t;a>=26,t+=r/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>o}return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r=0);var t,n=e%26,r=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t=0),r=t?(t-t%26)/26:0;var i=e%26,a=Math.min((e-i)/26,this.length),l=67108863^67108863>>>i<a)for(this.length-=a,c=0;c=0&&(0!==d||c>=r);c--){var u=0|this.words[c];this.words[c]=d<<26-i|u>>>i,d=u&l}return s&&0!==d&&(s.words[s.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return o(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){o("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,r=1<=0);var t=e%26,n=(e-t)/26;if(o(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var r=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(o("number"==typeof e),o(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[r+n]=67108863&i}for(;r>26,this.words[r+n]=67108863&i;if(0===l)return this.strip();for(o(-1===l),l=0,r=0;r>26,this.words[r]=67108863&i;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,i=0|o.words[o.length-1];0!==(n=26-this._countBits(i))&&(o=o.ushln(n),r.iushln(n),i=0|o.words[o.length-1]);var l,s=r.length-o.length;if("mod"!==t){(l=new a(null)).length=s+1,l.words=new Array(l.length);for(var c=0;c=0;u--){var f=67108864*(0|r.words[o.length+u])+(0|r.words[o.length+u-1]);for(f=Math.min(f/i|0,67108863),r._ishlnsubmul(o,f,u);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(o,1,u),r.isZero()||(r.negative^=1);l&&(l.words[u]=f)}return l&&l.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:l||null,mod:r}},a.prototype.divmod=function(e,t,n){return o(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(l=this.neg().divmod(e,t),"mod"!==t&&(r=l.div.neg()),"div"!==t&&(i=l.mod.neg(),n&&0!==i.negative&&i.iadd(e)),{div:r,mod:i}):0===this.negative&&0!==e.negative?(l=this.divmod(e.neg(),t),"mod"!==t&&(r=l.div.neg()),{div:r,mod:l.mod}):0!=(this.negative&e.negative)?(l=this.neg().divmod(e.neg(),t),"div"!==t&&(i=l.mod.neg(),n&&0!==i.negative&&i.isub(e)),{div:l.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,i,l},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),o=e.andln(1),i=n.cmp(r);return i<0||1===o&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){o(e<=67108863);for(var t=(1<<26)%e,n=0,r=this.length-1;r>=0;r--)n=(t*n+(0|this.words[r]))%e;return n},a.prototype.idivn=function(e){o(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*t;this.words[n]=r/e|0,t=r%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){o(0===e.negative),o(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new a(1),i=new a(0),l=new a(0),s=new a(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var d=n.clone(),u=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(r.isOdd()||i.isOdd())&&(r.iadd(d),i.isub(u)),r.iushrn(1),i.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(l.isOdd()||s.isOdd())&&(l.iadd(d),s.isub(u)),l.iushrn(1),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),r.isub(l),i.isub(s)):(n.isub(t),l.isub(r),s.isub(i))}return{a:l,b:s,gcd:n.iushln(c)}},a.prototype._invmp=function(e){o(0===e.negative),o(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,i=new a(1),l=new a(0),s=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,d=1;0==(t.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(t.iushrn(c);c-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,f=1;0==(n.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(n.iushrn(u);u-- >0;)l.isOdd()&&l.iadd(s),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(l)):(n.isub(t),l.isub(i))}return(r=0===t.cmpn(1)?i:l).cmpn(0)<0&&r.iadd(e),r},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=t.cmp(n);if(o<0){var i=t;t=n,n=i}else if(0===o||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){o("number"==typeof e);var t=e%26,n=(e-t)/26,r=1<>>26,l&=67108863,this.words[a]=l}return 0!==i&&(this.words[a]=i,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),o(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:re.length)return 1;if(this.length=0;n--){var r=0|this.words[n],o=0|e.words[n];if(r!==o){ro&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new C(e)},a.prototype.toRed=function(e){return o(!this.red,"Already a number in reduction context"),o(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return o(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return o(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else o(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(y,b),y.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r>>22,o=i}o>>>=22,e.words[r-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=o,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new _;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return v[e]=t,t},C.prototype._verify1=function(e){o(0===e.negative,"red works only with positives"),o(e.red,"red works only with red numbers")},C.prototype._verify2=function(e,t){o(0==(e.negative|t.negative),"red works only with positives"),o(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},C.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},C.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},C.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(o(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var r=this.m.subn(1),i=0;!r.isZero()&&0===r.andln(1);)i++,r.iushrn(1);o(!r.isZero());var l=new a(1).toRed(this),s=l.redNeg(),c=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new a(2*d*d).toRed(this);0!==this.pow(d,c).cmp(s);)d.redIAdd(s);for(var u=this.pow(d,r),f=this.pow(e,r.addn(1).iushrn(1)),h=this.pow(e,r),p=i;0!==h.cmp(l);){for(var m=h,g=0;0!==m.cmp(l);g++)m=m.redSqr();o(g=0;r--){for(var c=t.words[r],d=s-1;d>=0;d--){var u=c>>d&1;o!==n[0]&&(o=this.sqr(o)),0!==u||0!==i?(i<<=1,i|=u,(4===++l||0===r&&0===d)&&(o=this.mul(o,n[i]),l=0,i=0)):l=0}s=26}return o},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new T(e)},i(T,C),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(117)(e))},function(e,t,n){e.exports=!n(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(8),o=n(141),i=n(38),a=Object.defineProperty;t.f=n(14)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";(function(e){ +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=566)}([function(e,t,n){var r=n(6),o=n(12),i=n(21),a=n(18),l=n(27),s=function e(t,n,s){var c,d,u,f,h=t&e.F,p=t&e.G,m=t&e.P,g=t&e.B,v=p?r:t&e.S?r[n]||(r[n]={}):(r[n]||{}).prototype,b=p?o:o[n]||(o[n]={}),y=b.prototype||(b.prototype={});for(c in p&&(s=n),s)u=((d=!h&&v&&void 0!==v[c])?v:s)[c],f=g&&d?l(u,r):m&&"function"==typeof u?l(Function.call,u):u,v&&a(v,c,u,t&e.U),b[c]!=u&&i(b,c,f),m&&y[c]!=u&&(y[c]=u)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){var n={version:"1.0.60.16",wizContentVersion:"0.1.7",wizPainterVersion:"0.1.9",minderVersion:"1.4.50.7",WIZ_DOCUMENT_MIN_VERSION:{OUTLINE:"1.0.60.14"},AMEND_TIME_SPACE:18e4,AMEND_BATCH_TIME_SPACE:3e4,SPACE_CHAR:" ",SPACE_CHAR_REG:/\u00A0/gi,FILL_CHAR:"​",FILL_CHAR_REG:new RegExp("​","ig"),WIZ_TABLE_IN_MARKDOWN_SRC_REG:"
    ]*wiz-table-container[^>]*>(.|\\n)*?
    ",EMPTY_NOTE_TEMPLATE:"${body}",AMEND:{INFO_SPACE:0,INFO_TIMER:300},ATTR:{IMG:"data-wiz-img",IMG_MASK:"data-wiz-img-mask",IMG_RATE:"data-wiz-img-rate",IMG_EDITING:"data-wiz-img-editing",SPAN:"data-wiz-span",SPAN_USERID:"data-wiz-user-id",SPAN_INSERT:"data-wiz-insert",SPAN_DELETE:"data-wiz-delete",SPAN_PASTE:"data-wiz-paste",SPAN_PASTE_TYPE:"data-wiz-paste-type",SPAN_PASTE_ID:"data-wiz-paste-id",SPAN_TIMESTAMP:"data-wiz-amend-time",TODO_ID:"wiz_todo_id",TODO_CHECK:"data-wiz-check",WIZ_DOCUMENT_MIN_VERSION:"data-wiz-document-min-version",WIZ_DOCUMENT_TYPE:"data-wiz-document-type"},CLASS:{BLOCK_SCROLL:"wiz-block-scroll",CODE_CONTAINER:"wiz-code-container",CODE_CONTAINER_PASTE:"wiz-code-container-paste",CODE_CONTAINER_OLD:"prettyprint",CODE_MIRROR:"CodeMirror",CODE_MIRROR_LINE:"CodeMirror-line",CODE_MIRROR_MEASURE:"CodeMirror-measure",CODE_MIRROR_GUTTER:"CodeMirror-gutter-wrapper",CODE_MIRROR_HSCROLL:"CodeMirror-scroll",CODE_TOOLS:"wiz-code-tools",CODE_TOOLS_INFO:"wiz-code-tools-info",CODE_TOOLS_MODE:"wiz-code-tools-mode",CODE_TOOLS_THEME:"wiz-code-tools-theme",CODE_TOOLS_MORE:"wiz-code-tools-more",EDITING:"wiz-editing",EDITOR_CONTAINER:"wiz-editor-container",EDITOR_PREVIEW_SHOW:"wiz-editor-preview-show",FLOAT_LAYER:"wiz-float-layer",HOTKEY:"hotkey",HOTKEY_LAYER:"hotkey-layer",IMG_ATTACHMENT:"wiz-img-attachment",IMG_NOT_DRAG:"wiz-img-cannot-drag",IMG_CONTAINER:"wiz-image-container",IMG_MENU:"wiz-img-menu",IMG_RESIZE_ACTIVE:"wiz-img-resize-active",IMG_RESIZE_CONTAINER:"wiz-img-resize-container",IMG_RESIZE_HANDLE:"wiz-img-resize-handle",IMG_SUB_MENU:"wiz-img-sub-menu",IMG_SUB_MENU_CONTAINER:"wiz-img-sub-menu-container",IMG_SUB_MENU_ITEM:"wiz-img-sub-menu-item",IMG_TITLE:"wiz-image-title",MARKDOWN_BODY:"markdown-body",MEDIA_DATA:"wiz-media-data",MENU_PLUGIN_CONTAINER:"wiz-menu-plugin-container",MENU_PLUGIN_OPTIONS:"wiz-menu-plugin-options",MENU_PLUGIN_OPTIONS_ITEM:"wiz-menu-plugin-options-item",ORDER_LIST_LEVEL:["wiz-list-level3","wiz-list-level1","wiz-list-level2"],ORDER_LIST_ALIGN_STYLE:"wiz-list-align-style",READONLY:"wiz-readonly",SELECTED_CELL:"wiz-selected-cell",SELECTED_CELL_MULTI:"wiz-selected-cell-multi",SELECT_PLUGIN_CONTAINER:"wiz-select-plugin-container",SELECT_PLUGIN_HEADER:"wiz-select-plugin-header",SELECT_PLUGIN_HEADER_TEXT:"wiz-select-plugin-header-text",SELECT_PLUGIN_MENU:"wiz-select-plugin-menu",SVG_IMAGE:"wiz-svg-image",SVG_TEMPLATE:"wiz-svg-template",TEMPLATE_EDITABLE:"wiz-template-editable",TABLE_ADD_BTN:"wiz-table-add-btn",TABLE_ADD_TIP_LINE:"wiz-table-add-tip-line",TABLE_ALL_BAR:"wiz-table-all-bar",TABLE_BAR:"wiz-table-bar",TABLE_BODY:"wiz-table-body",TABLE_COL_BAR:"wiz-table-col-bar",TABLE_COLOR_PAD:"wiz-table-color-pad",TABLE_COLOR_PAD_ROW:"wiz-table-color-pad-row",TABLE_COLOR_PAD_ITEM:"wiz-table-color-pad-item",TABLE_CONTAINER:"wiz-table-container",TABLE_DELETE_ZONE:"wiz-table-delete-zone",TABLE_LINE_BOX:"wiz-table-bar-box",TABLE_LINE_POINT:"wiz-table-bar-point",TABLE_MAIN_MENU:"wiz-table-main-meun",TABLE_MENU_BUTTON:"wiz-table-menu-button",TABLE_MOVING:"wiz-table-moving",TABLE_ROW_BAR:"wiz-table-row-bar",TABLE_SUB_MENU:"wiz-table-sub-menu",TABLE_TOOLS:"wiz-table-tools",TODO_ACCOUNT:"wiz-todo-account",TODO_AVATAR:"wiz-todo-avatar",TODO_CHECKBOX:"wiz-todo-checkbox",TODO_CHECK_IMG_OLD:"wiz-todo-img",TODO_DATE:"wiz-todo-dt",TODO_LAYER:"wiz-todo-layer",TODO_MAIN:"wiz-todo-main",TODO_LABEL_OLD:"wiz-todo-label",TODO_CHECKED:"wiz-todo-checked",TODO_UNCHECKED:"wiz-todo-unchecked",TODO_CHECKED_OLD:"wiz-todo-label-checked",TODO_UNCHECKED_OLD:"wiz-todo-label-unchecked",TODO_TAIL_OLD:"wiz-todo-tail",TODO_USER_AVATAR:"wiz-todo-avatar-",TODO_USER_INFO:"wiz-todo-completed-info",TOOL_TIP:"wiz-tooltip",TOOL_TIP_ITEM:"wiz-tooltip-item",TOOL_TIP_ARROW:"wiz-tooltip-arrow",TOOL_TIP_COLOR_BOX:"wiz-tooltip-color-box",TOOL_TIP_ARROW_BG:"wiz-tooltip-arrow-bg",WIZ_BODY:"wiz-editor-body",WIZ_OUTLINE:"wiz-editor-outline",WIZ_CONTENT_IFRAME_ACTIVE:"wiz-content-active",WIZ_EIDTOR_BODY_CONTAINER:"wiz-editor-body-container",WIZ_EIDTOR_IFRAME:"wiz-editor-iframe",WIZ_EIDTOR_PREVIEW_CONTAINER:"wiz-editor-preview-container",WIZ_EIDTOR_TOOlBAR_CONTAINER:"wiz-editor-toolbar-container",WIZ_EIDTOR_TOOlBAR_MAIN:"wiz-editor-toolbar-main",WIZ_EIDTOR_TOOlBAR_SIDE:"wiz-editor-toolbar-side"},CLIENT_EVENT:{WizEditorClickImg:"WizEditorClickImg",WizEditorClickSvg:"WizEditorClickSvg",WizEditorAfterCopied:"WizEditorAfterCopied",WizEditorPaste:"WizEditorPaste",WizEditorSetScrollTop:"WizEditorSetScrollTop",WizEditorTrackEvent:"WizEditorTrackEvent",WizMarkdownRender:"WizMarkdownRender",WizReaderClickImg:"WizReaderClickImg",IosPrompt:"IosPrompt"},CODE:{StorageKey:{Mode:"wiz-code-mode",Theme:"wiz-code-theme",Wrap:"wiz-code-wrap"}},COLOR:["#CB3C3C","#0C9460","#FF3399","#FF6005","#8058BD","#009999","#8AA725","#339900","#CC6600","#3BBABA","#D4CA1A","#2389B0","#006699","#FF8300","#2C6ED5","#FF0000","#B07CFF","#CC3399","#EB4847","#3917E6"],CSS:{DEFAULT_FONT:'Helvetica, "Hiragino Sans GB", "微软雅黑", "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif',IMG:{SPAN:{position:"relative",display:"inline-block"},MASK:{position:"absolute",width:"100% !important",height:"100% !important",top:"0",left:"0",opacity:".5",filter:"alpha(opacity=50)",border:"2px solid","box-sizing":"border-box","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box"}},IMG_DELETED:{background:"#fdc6c6 url(data:image/gif;base64,R0lGODlhDwAPAIABAIcUFP///yH5BAEKAAEALAAAAAAPAA8AAAIajI8IybadHjxyhjox1I0zH1mU6JCXCSpmUAAAOw==)","border-color":"#E47070"},IMG_INSERT:{background:"#ccffcc","border-color":"#00AA00"},TODO_LIST:{IMG_WIDTH:40},Z_INDEX:{amendInfo:150,tableBorder:105,tableColRowLine:120,tableRangeDot:110,tableTDBefore:100,tableTools:130,tableToolsArrow:10},TABLECOMPONENT:{PADDING:28}},DOCUMENT_TYPE:{COMMON:"common",OUTLINE:"outline"},EVENT:{BEFORE_GET_DOCHTML:"BEFORE_GET_DOCHTML",BEFORE_SAVESNAP:"BEFORE_SAVESNAP",AFTER_INSERT_DOM:"AFTER_INSERT_DOM",AFTER_RESTORE_HISTORY:"AFTER_RESTORE_HISTORY",AUTO_EDIT:"AUTO_EDIT",EXEC_COMMEND:"EXEC_COMMEND",ON_DBLCLICK:"ON_DBLCLICK",ON_CLICK:"ON_CLICK",ON_COMPOSITION_START:"ON_COMPOSITION_START",ON_COMPOSITION_END:"ON_COMPOSITION_END",ON_COPY:"ON_COPY",ON_CUT:"ON_CUT",ON_DOM_SUBTREE_MODIFIED:"ON_DOM_SUBTREE_MODIFIED",ON_DRAG_START:"ON_DRAG_START",ON_DRAG_ENTER:"ON_DRAG_ENTER",ON_DROP:"ON_DROP",ON_EXEC_COMMAND:"ON_EXEC_COMMAND",ON_INPUT:"ON_INPUT",ON_KEY_DOWN:"ON_KEY_DOWN",ON_KEY_UP:"ON_KEY_UP",ON_MARKER_INITIATED:"ON_MARKER_INITIATED",ON_MENU_PLUGIN_HIDE:"ON_MENU_PLUGIN_HIDE",ON_MENU_PLUGIN_SHOW:"ON_MENU_PLUGIN_SHOW",ON_MOUSE_DOWN:"ON_MOUSE_DOWN",ON_MOUSE_MOVE:"ON_MOUSE_MOVE",ON_MOUSE_OVER:"ON_MOUSE_OVER",ON_MOUSE_UP:"ON_MOUSE_UP",ON_ORIENTATION_CHANGE:"ON_ORIENTATION_CHANGE",ON_PASTE:"ON_PASTE",ON_RESIZE:"ON_RESIZE",ON_SCROLL:"ON_SCROLL",ON_SELECT_PLUGIN_CHANGE:"ON_SELECT_PLUGIN_CHANGE",ON_SELECT_PLUGIN_HIDE:"ON_SELECT_PLUGIN_HIDE",ON_SELECT_PLUGIN_SHOW:"ON_SELECT_PLUGIN_SHOW",ON_SELECTION_CHANGE:"ON_SELECTION_CHANGE",ON_SELECT_START:"ON_SELECT_START",ON_TEXT_INPUT:"ON_TEXT_INPUT",ON_TOUCH_START:"ON_TOUCH_START",ON_TOUCH_END:"ON_TOUCH_END",UPDATE_TABLE_RENDER:"UPDATE_TABLE_RENDER"},HISTORY:{TYPE:{CODE_MIRROR:"CODE_MIRROR",COMMON:"COMMON"}},ID:{BODY_TMP_BOTTOM_STYLE:"wiz-tmp-bottom-style",AMEND_INFO:"wiz-amend-info",AMEND_INFO_SINGLE:"wiz-amend-info-single",AMEND_INFO_MULTI:"wiz-amend-info-multi",AMEND_INFO_NAME:"wiz-amend-info-name",AMEND_INFO_IMG:"wiz-amend-info-image",AMEND_INFO_CONTENT:"wiz-amend-info-content",AMEND_INFO_TIME:"wiz-amend-info-time",AMEND_INFO_TOOLS:"wiz-amend-info-tools",AMEND_INFO_ACCEPT:"wiz-amend-info-accept",AMEND_INFO_REFUSE:"wiz-amend-info-refuse",AMEND_USER_INFO:"wiz-amend-user",CODE_STYLE:"wiz_code_style",FORMAT_PAINTER_STYLE:"wiz_format_painter_style",IFRAME_FOR_SAVE:"wiz-iframe-for-save",IMAGE_MENU_CONTAINER:"wiz-img-menu-container",MARKER_ROOT:"wiz-painter-root",MARKER_STYLE:"wiz-marker-style",MEDIA_STYLE:"wiz-media-style",PURE_READ_STYLE:"wiz-pure-read-style",TABLE_RANGE_BORDER:"wiz-table-range-border",TABLE_ROW_LINE:"wiz-table-row-line",TABLE_COL_LINE:"wiz-table-col-line",TODO_STYLE:"wiz_todo_style",TODO_STYLE_OLD:"wiz_todo_style_id",TODO_AVATAR_STYLE:"wiz_todo_style_avatar_",TMP_STYLE_PRE:"wiz_tmp_style_",WIZ_DEFAULT_STYLE:"wiz_custom_css",WIZ_EIDTOR_FRAME_STYLE:"wiz-editor-frame-style",WIZ_EIDTOR_FRAME_BODY_STYLE:"wiz-editor-frame-body-style",WIZ_EIDTOR_PREVIEW_STYLE:"wiz-editor-preview-style",WIZ_EIDTOR_TOOlBAR_STYLE:"wiz-editor-toolbar-style",WIZ_TEMPLATE_INFO:"wiz-template-info"},NAME:{CODE_STYLE:"wiz_code_style",TMP_STYLE:"wiz_tmp_editor_style",UNSAVE_STYLE:"wiz_unsave_style"},NOTE_READER_TYPE:{COMMON:"common",MARKDOWN:"markdown",MATHJAX:"mathjax",OUTLINE:"outline"},NOTE_EDITOR_TYPE:{COMMON:"common",MARKDOWN:"markdown",OUTLINE:"outline"},MENU_PLUGIN:{TYPE:{MENU:"menu",SELECT:"select"}},SELECT_PLUGIN:{TYPE:{COMMON:"common",ICON:"icon"}},TAG:{CODE_MIRROR:"wiz_code_mirror",MARKER:"wiz_marker",MEDIA:"wiz_media",TMP_TAG:"wiz_tmp_tag",TMP_PLUGIN_TAG:"wiz_tmp_plugin_tag",TMP_HIGHLIGHT_TAG:"wiz_tmp_highlight_tag"},TYPE:{EDITOR_EVENT:{SelectionChange:"selectionchange",HistoryUndo:"historyUndo"},IMG_DELETE:"delete",IMG_INSERT:"insert",LAYOUT:{BOTTOM:"BOTTOM",BOTTOM_END:"BOTTOM_END",BOTTOM_START:"BOTTOM_START",TOP:"TOP",TOP_END:"TOP_END",TOP_START:"TOP_START",LEFT_START:"LEFT_START",LEFT_END:"LEFT_END",RIGHT_START:"RIGHT_START",RIGHT_END:"RIGHT_END"},PASTE:{START:"start",END:"end",CONTENT:"content"},TABLE:{COPY:"copy",PASTE:"paste",CLEAR_CELL:"clearCell",MERGE_CELL:"mergeCell",SPLIT_CELL:"splitCell",INSERT_ROW_UP:"insertRowUp",INSERT_ROW_DOWN:"insertRowDown",INSERT_COL_LEFT:"insertColLeft",INSERT_COL_RIGHT:"insertColRight",DELETE_ROW:"deleteRow",DELETE_COL:"deleteCol",SET_CELL_BG:"setCellBg",SELECT_BG:"selectBg",SET_CELL_ALIGN:"setCellAlign",DISTRIBUTE_COLS:"distributeCols",DELETE_TABLE:"deleteTable",OPEN_MENU:"openMenu",OPEN_SUB_MENU:"openSubMenu"}}};e.exports=n},function(e,t){function n(e,t){for(var n=0;ne?1:-1}}var i=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;"wiz".trim||(String.prototype.trim=function(){return this.replace(i,"")});var a=/[\-\[\]{}()*+?.,\\^$|#\s]/g;try{"abc".escapeRegex()}catch(e){String.prototype.escapeRegex=function(){return this.toString().replace(a,"\\$&")}}try{"abc".escapeReplace()}catch(e){String.prototype.escapeReplace=function(){return this.toString().replace(/\$/gi,"$$$$")}}Array.prototype.indexOf||(Array.prototype.indexOf=function(e){for(var t=0;t=48&&t<=57||t>=65&&t<=90||t>=96&&t<=107||t>=109&&t<=111||t>=186&&t<=192||t>=219&&t<=222||229===t||0===t||13===t||32===t)},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},isBoolean:function(e){return"[object Boolean]"===Object.prototype.toString.apply(e)},isEmpty:function(e){if(!e)return!0;var t=new RegExp("[\r\n"+r.FILL_CHAR+"]","ig"),n=/\r?\n/gi.test(e),o=e.replace(t,""),i=0===e.replace(t,"").trim().length;return 0===o.length||n&&i},isSameAmendTime:function(e,t){if(!e||!t)return!1;var n=l.getDateForTimeStr(e),o=l.getDateForTimeStr(t);return Math.abs(n-o)<=r.AMEND_BATCH_TIME_SPACE},checkChar:function(e,t){var n,r,o,i;for(n=0,r=t.length;n1?t[n][1]:null)&&e===o)return!0;if(null!==i&&e>=o&&e<=i)return!0}return!1},compareVersion:function(e,t){var n,r,o,i;for(e=e.split("."),t=t.split("."),n=0,r=e.length;ni)return 1}return e.length=0;t--)n^=(n<<5)+e.charCodeAt(t)+(n>>2);return 2147483647&n},getTime:function(){var e=new Date;return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())+" "+t(e.getHours())+":"+t(e.getMinutes())+":"+t(e.getSeconds());function t(e){var t=e.toString();return 1===t.length?"0"+t:t}},getDateForTimeStr:function(e){return new Date(Date.parse(e.replace(/-/g,"/")))},listToMap:function(e){if(!e)return{};var t,n,r,o={};for(t=0,n=(e=l.isArray(e)?e:e.split(",")).length;t0&&o.push(a.join("")),o},stopEvent:function(e){e&&(l.stopEventBubble(e),l.stopEventDefault(e))},stopEventBubble:function(e){e.stopPropagation()},stopEventDefault:function(e){e.preventDefault()},space2HTML:function(e){var t=/ /g;return(e||"").replace(/ /g," ").replace(t,r.SPACE_CHAR+" ").replace(t,r.SPACE_CHAR+" ").replace(/^ /gm,r.SPACE_CHAR)},txt2HTML:function(e,t){for(var n,o,i=!!(t=t||{}).wizTableSaveDom,a=[],s=(e=l.space2HTML(e)).split(/\r?\n/),c=new RegExp(r.WIZ_TABLE_IN_MARKDOWN_SRC_REG),d=/^```/,u=!1,f=0;f/g,">")+"";else{var h=0===f?"span":"div";o="<"+h+">"+n.replace(/&/g,"&").replace(//g,">")+""}else o="
    ";a.push(o)}return a.join("")},dom:{insertToHead:function(e,t){t.querySelector("HEAD").appendChild(e)}},math:{getDistance:function(e,t){if(e.x===t.x)return Math.abs(t.y-e.y);if(e.y===t.y)return Math.abs(t.x-e.x);var n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)},getRandomArbitrary:function(e,t){return l.math.random()*(t-e)+e},random:function(){return o()()}},storage:{get:function(e){try{var t=window.localStorage[e];return t?JSON.parse(t):null}catch(e){return console.error(e),null}},set:function(e,t){try{window.localStorage.setItem(e,JSON.stringify(t))}catch(e){console.error(e)}},remove:function(e){window.localStorage.removeItem(e)}}};e.exports=l},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){var r=n(16),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),i(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(9);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return"object"===n(e)?null!==e:"function"==typeof e}},function(e,t,n){var r=n(74)("wks"),o=n(45),i=n(6).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(29),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,r){"use strict";function o(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var l;"object"===t(e)?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{l=n(442).Buffer}catch(e){}function s(e,t,n){for(var r=0,o=Math.min(e.length,n),i=t;i=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function c(e,t,n,r){for(var o=0,i=Math.min(e.length,n),a=t;a=49?l-49+10:l>=17?l-17+10:l}return o}a.isBN=function(e){return e instanceof a||null!==e&&"object"===t(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,n,r){if("number"==typeof e)return this._initNumber(e,n,r);if("object"===t(e))return this._initArray(e,n,r);"hex"===n&&(n=16),o(n===(0|n)&&n>=2&&n<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===n?this._parseHex(e,i):this._parseBase(e,n,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),n,r)},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(o(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(o("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r=0;r-=3)a=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[i]|=a<>>26-l&67108863,(l+=24)>=26&&(l-=26,i++);else if("le"===n)for(r=0,i=0;r>>26-l&67108863,(l+=24)>=26&&(l-=26,i++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)o=s(e,n,n+6),this.words[r]|=o<>>26-i&4194303,(i+=24)>=26&&(i-=26,r++);n+6!==t&&(o=s(e,t,n+6),this.words[r]|=o<>>26-i&4194303),this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,o=1;o<=67108863;o*=t)r++;r--,o=o/t|0;for(var i=e.length-n,a=i%r,l=Math.min(i,i-a)+n,s=0,d=n;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var o=0|e.words[0],i=0|t.words[0],a=o*i,l=67108863&a,s=a/67108864|0;n.words[0]=l;for(var c=1;c>>26,u=67108863&s,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;d+=(a=(o=0|e.words[p])*(i=0|t.words[h])+u)/67108864|0,u=67108863&a}n.words[c]=0|u,s=0|d}return 0!==s?n.words[c]=0|s:n.length--,n.strip()}a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var r=0,i=0,a=0;a>>24-r&16777215)||a!==this.length-1?d[6-s.length]+s+n:s+n,(r+=2)>=26&&(r-=26,a--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=u[e],h=f[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);n=(p=p.idivn(h)).isZero()?m+n:d[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return o(void 0!==l),this.toArrayLike(l,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var r=this.byteLength(),i=n||Math.max(1,r);o(r<=i,"byte array longer than desired length"),o(i>0,"Requested array length <= 0"),this.strip();var a,l,s="le"===t,c=new e(i),d=this.clone();if(s){for(l=0;!d.isZero();l++)a=d.andln(255),d.iushrn(8),c[l]=a;for(;l=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){o("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){o("number"==typeof e&&e>=0);var n=e/26|0,r=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var o=0,i=0;i>>26;for(;0!==o&&i>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==i&&a>26,this.words[a]=67108863&t;if(0===i&&a>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],_=8191&y,S=y>>>13,E=0|a[4],C=8191&E,T=E>>>13,A=0|a[5],O=8191&A,w=A>>>13,N=0|a[6],L=8191&N,I=N>>>13,U=0|a[7],D=8191&U,M=U>>>13,x=0|a[8],R=8191&x,k=x>>>13,P=0|a[9],B=8191&P,z=P>>>13,F=0|l[0],j=8191&F,q=F>>>13,W=0|l[1],H=8191&W,Y=W>>>13,G=0|l[2],V=8191&G,Z=G>>>13,K=0|l[3],X=8191&K,J=K>>>13,$=0|l[4],Q=8191&$,ee=$>>>13,te=0|l[5],ne=8191&te,re=te>>>13,oe=0|l[6],ie=8191&oe,ae=oe>>>13,le=0|l[7],se=8191&le,ce=le>>>13,de=0|l[8],ue=8191&de,fe=de>>>13,he=0|l[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(c+(r=Math.imul(u,j))|0)+((8191&(o=(o=Math.imul(u,q))+Math.imul(f,j)|0))<<13)|0;c=((i=Math.imul(f,q))+(o>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,j),o=(o=Math.imul(p,q))+Math.imul(m,j)|0,i=Math.imul(m,q);var ve=(c+(r=r+Math.imul(u,H)|0)|0)+((8191&(o=(o=o+Math.imul(u,Y)|0)+Math.imul(f,H)|0))<<13)|0;c=((i=i+Math.imul(f,Y)|0)+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,j),o=(o=Math.imul(v,q))+Math.imul(b,j)|0,i=Math.imul(b,q),r=r+Math.imul(p,H)|0,o=(o=o+Math.imul(p,Y)|0)+Math.imul(m,H)|0,i=i+Math.imul(m,Y)|0;var be=(c+(r=r+Math.imul(u,V)|0)|0)+((8191&(o=(o=o+Math.imul(u,Z)|0)+Math.imul(f,V)|0))<<13)|0;c=((i=i+Math.imul(f,Z)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(_,j),o=(o=Math.imul(_,q))+Math.imul(S,j)|0,i=Math.imul(S,q),r=r+Math.imul(v,H)|0,o=(o=o+Math.imul(v,Y)|0)+Math.imul(b,H)|0,i=i+Math.imul(b,Y)|0,r=r+Math.imul(p,V)|0,o=(o=o+Math.imul(p,Z)|0)+Math.imul(m,V)|0,i=i+Math.imul(m,Z)|0;var ye=(c+(r=r+Math.imul(u,X)|0)|0)+((8191&(o=(o=o+Math.imul(u,J)|0)+Math.imul(f,X)|0))<<13)|0;c=((i=i+Math.imul(f,J)|0)+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(C,j),o=(o=Math.imul(C,q))+Math.imul(T,j)|0,i=Math.imul(T,q),r=r+Math.imul(_,H)|0,o=(o=o+Math.imul(_,Y)|0)+Math.imul(S,H)|0,i=i+Math.imul(S,Y)|0,r=r+Math.imul(v,V)|0,o=(o=o+Math.imul(v,Z)|0)+Math.imul(b,V)|0,i=i+Math.imul(b,Z)|0,r=r+Math.imul(p,X)|0,o=(o=o+Math.imul(p,J)|0)+Math.imul(m,X)|0,i=i+Math.imul(m,J)|0;var _e=(c+(r=r+Math.imul(u,Q)|0)|0)+((8191&(o=(o=o+Math.imul(u,ee)|0)+Math.imul(f,Q)|0))<<13)|0;c=((i=i+Math.imul(f,ee)|0)+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(O,j),o=(o=Math.imul(O,q))+Math.imul(w,j)|0,i=Math.imul(w,q),r=r+Math.imul(C,H)|0,o=(o=o+Math.imul(C,Y)|0)+Math.imul(T,H)|0,i=i+Math.imul(T,Y)|0,r=r+Math.imul(_,V)|0,o=(o=o+Math.imul(_,Z)|0)+Math.imul(S,V)|0,i=i+Math.imul(S,Z)|0,r=r+Math.imul(v,X)|0,o=(o=o+Math.imul(v,J)|0)+Math.imul(b,X)|0,i=i+Math.imul(b,J)|0,r=r+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,i=i+Math.imul(m,ee)|0;var Se=(c+(r=r+Math.imul(u,ne)|0)|0)+((8191&(o=(o=o+Math.imul(u,re)|0)+Math.imul(f,ne)|0))<<13)|0;c=((i=i+Math.imul(f,re)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,j),o=(o=Math.imul(L,q))+Math.imul(I,j)|0,i=Math.imul(I,q),r=r+Math.imul(O,H)|0,o=(o=o+Math.imul(O,Y)|0)+Math.imul(w,H)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(C,V)|0,o=(o=o+Math.imul(C,Z)|0)+Math.imul(T,V)|0,i=i+Math.imul(T,Z)|0,r=r+Math.imul(_,X)|0,o=(o=o+Math.imul(_,J)|0)+Math.imul(S,X)|0,i=i+Math.imul(S,J)|0,r=r+Math.imul(v,Q)|0,o=(o=o+Math.imul(v,ee)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,ee)|0,r=r+Math.imul(p,ne)|0,o=(o=o+Math.imul(p,re)|0)+Math.imul(m,ne)|0,i=i+Math.imul(m,re)|0;var Ee=(c+(r=r+Math.imul(u,ie)|0)|0)+((8191&(o=(o=o+Math.imul(u,ae)|0)+Math.imul(f,ie)|0))<<13)|0;c=((i=i+Math.imul(f,ae)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(D,j),o=(o=Math.imul(D,q))+Math.imul(M,j)|0,i=Math.imul(M,q),r=r+Math.imul(L,H)|0,o=(o=o+Math.imul(L,Y)|0)+Math.imul(I,H)|0,i=i+Math.imul(I,Y)|0,r=r+Math.imul(O,V)|0,o=(o=o+Math.imul(O,Z)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,Z)|0,r=r+Math.imul(C,X)|0,o=(o=o+Math.imul(C,J)|0)+Math.imul(T,X)|0,i=i+Math.imul(T,J)|0,r=r+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,ee)|0)+Math.imul(S,Q)|0,i=i+Math.imul(S,ee)|0,r=r+Math.imul(v,ne)|0,o=(o=o+Math.imul(v,re)|0)+Math.imul(b,ne)|0,i=i+Math.imul(b,re)|0,r=r+Math.imul(p,ie)|0,o=(o=o+Math.imul(p,ae)|0)+Math.imul(m,ie)|0,i=i+Math.imul(m,ae)|0;var Ce=(c+(r=r+Math.imul(u,se)|0)|0)+((8191&(o=(o=o+Math.imul(u,ce)|0)+Math.imul(f,se)|0))<<13)|0;c=((i=i+Math.imul(f,ce)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(R,j),o=(o=Math.imul(R,q))+Math.imul(k,j)|0,i=Math.imul(k,q),r=r+Math.imul(D,H)|0,o=(o=o+Math.imul(D,Y)|0)+Math.imul(M,H)|0,i=i+Math.imul(M,Y)|0,r=r+Math.imul(L,V)|0,o=(o=o+Math.imul(L,Z)|0)+Math.imul(I,V)|0,i=i+Math.imul(I,Z)|0,r=r+Math.imul(O,X)|0,o=(o=o+Math.imul(O,J)|0)+Math.imul(w,X)|0,i=i+Math.imul(w,J)|0,r=r+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,ee)|0)+Math.imul(T,Q)|0,i=i+Math.imul(T,ee)|0,r=r+Math.imul(_,ne)|0,o=(o=o+Math.imul(_,re)|0)+Math.imul(S,ne)|0,i=i+Math.imul(S,re)|0,r=r+Math.imul(v,ie)|0,o=(o=o+Math.imul(v,ae)|0)+Math.imul(b,ie)|0,i=i+Math.imul(b,ae)|0,r=r+Math.imul(p,se)|0,o=(o=o+Math.imul(p,ce)|0)+Math.imul(m,se)|0,i=i+Math.imul(m,ce)|0;var Te=(c+(r=r+Math.imul(u,ue)|0)|0)+((8191&(o=(o=o+Math.imul(u,fe)|0)+Math.imul(f,ue)|0))<<13)|0;c=((i=i+Math.imul(f,fe)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,j),o=(o=Math.imul(B,q))+Math.imul(z,j)|0,i=Math.imul(z,q),r=r+Math.imul(R,H)|0,o=(o=o+Math.imul(R,Y)|0)+Math.imul(k,H)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(D,V)|0,o=(o=o+Math.imul(D,Z)|0)+Math.imul(M,V)|0,i=i+Math.imul(M,Z)|0,r=r+Math.imul(L,X)|0,o=(o=o+Math.imul(L,J)|0)+Math.imul(I,X)|0,i=i+Math.imul(I,J)|0,r=r+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(C,ne)|0,o=(o=o+Math.imul(C,re)|0)+Math.imul(T,ne)|0,i=i+Math.imul(T,re)|0,r=r+Math.imul(_,ie)|0,o=(o=o+Math.imul(_,ae)|0)+Math.imul(S,ie)|0,i=i+Math.imul(S,ae)|0,r=r+Math.imul(v,se)|0,o=(o=o+Math.imul(v,ce)|0)+Math.imul(b,se)|0,i=i+Math.imul(b,ce)|0,r=r+Math.imul(p,ue)|0,o=(o=o+Math.imul(p,fe)|0)+Math.imul(m,ue)|0,i=i+Math.imul(m,fe)|0;var Ae=(c+(r=r+Math.imul(u,pe)|0)|0)+((8191&(o=(o=o+Math.imul(u,me)|0)+Math.imul(f,pe)|0))<<13)|0;c=((i=i+Math.imul(f,me)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(B,H),o=(o=Math.imul(B,Y))+Math.imul(z,H)|0,i=Math.imul(z,Y),r=r+Math.imul(R,V)|0,o=(o=o+Math.imul(R,Z)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,Z)|0,r=r+Math.imul(D,X)|0,o=(o=o+Math.imul(D,J)|0)+Math.imul(M,X)|0,i=i+Math.imul(M,J)|0,r=r+Math.imul(L,Q)|0,o=(o=o+Math.imul(L,ee)|0)+Math.imul(I,Q)|0,i=i+Math.imul(I,ee)|0,r=r+Math.imul(O,ne)|0,o=(o=o+Math.imul(O,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(C,ie)|0,o=(o=o+Math.imul(C,ae)|0)+Math.imul(T,ie)|0,i=i+Math.imul(T,ae)|0,r=r+Math.imul(_,se)|0,o=(o=o+Math.imul(_,ce)|0)+Math.imul(S,se)|0,i=i+Math.imul(S,ce)|0,r=r+Math.imul(v,ue)|0,o=(o=o+Math.imul(v,fe)|0)+Math.imul(b,ue)|0,i=i+Math.imul(b,fe)|0;var Oe=(c+(r=r+Math.imul(p,pe)|0)|0)+((8191&(o=(o=o+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((i=i+Math.imul(m,me)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(B,V),o=(o=Math.imul(B,Z))+Math.imul(z,V)|0,i=Math.imul(z,Z),r=r+Math.imul(R,X)|0,o=(o=o+Math.imul(R,J)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,J)|0,r=r+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,ee)|0)+Math.imul(M,Q)|0,i=i+Math.imul(M,ee)|0,r=r+Math.imul(L,ne)|0,o=(o=o+Math.imul(L,re)|0)+Math.imul(I,ne)|0,i=i+Math.imul(I,re)|0,r=r+Math.imul(O,ie)|0,o=(o=o+Math.imul(O,ae)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,ae)|0,r=r+Math.imul(C,se)|0,o=(o=o+Math.imul(C,ce)|0)+Math.imul(T,se)|0,i=i+Math.imul(T,ce)|0,r=r+Math.imul(_,ue)|0,o=(o=o+Math.imul(_,fe)|0)+Math.imul(S,ue)|0,i=i+Math.imul(S,fe)|0;var we=(c+(r=r+Math.imul(v,pe)|0)|0)+((8191&(o=(o=o+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0;c=((i=i+Math.imul(b,me)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(B,X),o=(o=Math.imul(B,J))+Math.imul(z,X)|0,i=Math.imul(z,J),r=r+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,ee)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(D,ne)|0,o=(o=o+Math.imul(D,re)|0)+Math.imul(M,ne)|0,i=i+Math.imul(M,re)|0,r=r+Math.imul(L,ie)|0,o=(o=o+Math.imul(L,ae)|0)+Math.imul(I,ie)|0,i=i+Math.imul(I,ae)|0,r=r+Math.imul(O,se)|0,o=(o=o+Math.imul(O,ce)|0)+Math.imul(w,se)|0,i=i+Math.imul(w,ce)|0,r=r+Math.imul(C,ue)|0,o=(o=o+Math.imul(C,fe)|0)+Math.imul(T,ue)|0,i=i+Math.imul(T,fe)|0;var Ne=(c+(r=r+Math.imul(_,pe)|0)|0)+((8191&(o=(o=o+Math.imul(_,me)|0)+Math.imul(S,pe)|0))<<13)|0;c=((i=i+Math.imul(S,me)|0)+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(B,Q),o=(o=Math.imul(B,ee))+Math.imul(z,Q)|0,i=Math.imul(z,ee),r=r+Math.imul(R,ne)|0,o=(o=o+Math.imul(R,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(D,ie)|0,o=(o=o+Math.imul(D,ae)|0)+Math.imul(M,ie)|0,i=i+Math.imul(M,ae)|0,r=r+Math.imul(L,se)|0,o=(o=o+Math.imul(L,ce)|0)+Math.imul(I,se)|0,i=i+Math.imul(I,ce)|0,r=r+Math.imul(O,ue)|0,o=(o=o+Math.imul(O,fe)|0)+Math.imul(w,ue)|0,i=i+Math.imul(w,fe)|0;var Le=(c+(r=r+Math.imul(C,pe)|0)|0)+((8191&(o=(o=o+Math.imul(C,me)|0)+Math.imul(T,pe)|0))<<13)|0;c=((i=i+Math.imul(T,me)|0)+(o>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(B,ne),o=(o=Math.imul(B,re))+Math.imul(z,ne)|0,i=Math.imul(z,re),r=r+Math.imul(R,ie)|0,o=(o=o+Math.imul(R,ae)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,ae)|0,r=r+Math.imul(D,se)|0,o=(o=o+Math.imul(D,ce)|0)+Math.imul(M,se)|0,i=i+Math.imul(M,ce)|0,r=r+Math.imul(L,ue)|0,o=(o=o+Math.imul(L,fe)|0)+Math.imul(I,ue)|0,i=i+Math.imul(I,fe)|0;var Ie=(c+(r=r+Math.imul(O,pe)|0)|0)+((8191&(o=(o=o+Math.imul(O,me)|0)+Math.imul(w,pe)|0))<<13)|0;c=((i=i+Math.imul(w,me)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(B,ie),o=(o=Math.imul(B,ae))+Math.imul(z,ie)|0,i=Math.imul(z,ae),r=r+Math.imul(R,se)|0,o=(o=o+Math.imul(R,ce)|0)+Math.imul(k,se)|0,i=i+Math.imul(k,ce)|0,r=r+Math.imul(D,ue)|0,o=(o=o+Math.imul(D,fe)|0)+Math.imul(M,ue)|0,i=i+Math.imul(M,fe)|0;var Ue=(c+(r=r+Math.imul(L,pe)|0)|0)+((8191&(o=(o=o+Math.imul(L,me)|0)+Math.imul(I,pe)|0))<<13)|0;c=((i=i+Math.imul(I,me)|0)+(o>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,r=Math.imul(B,se),o=(o=Math.imul(B,ce))+Math.imul(z,se)|0,i=Math.imul(z,ce),r=r+Math.imul(R,ue)|0,o=(o=o+Math.imul(R,fe)|0)+Math.imul(k,ue)|0,i=i+Math.imul(k,fe)|0;var De=(c+(r=r+Math.imul(D,pe)|0)|0)+((8191&(o=(o=o+Math.imul(D,me)|0)+Math.imul(M,pe)|0))<<13)|0;c=((i=i+Math.imul(M,me)|0)+(o>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(B,ue),o=(o=Math.imul(B,fe))+Math.imul(z,ue)|0,i=Math.imul(z,fe);var Me=(c+(r=r+Math.imul(R,pe)|0)|0)+((8191&(o=(o=o+Math.imul(R,me)|0)+Math.imul(k,pe)|0))<<13)|0;c=((i=i+Math.imul(k,me)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863;var xe=(c+(r=Math.imul(B,pe))|0)+((8191&(o=(o=Math.imul(B,me))+Math.imul(z,pe)|0))<<13)|0;return c=((i=Math.imul(z,me))+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,s[0]=ge,s[1]=ve,s[2]=be,s[3]=ye,s[4]=_e,s[5]=Se,s[6]=Ee,s[7]=Ce,s[8]=Te,s[9]=Ae,s[10]=Oe,s[11]=we,s[12]=Ne,s[13]=Le,s[14]=Ie,s[15]=Ue,s[16]=De,s[17]=Me,s[18]=xe,0!==c&&(s[19]=c,n.length++),n};function m(e,t,n){return(new g).mulp(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,o=0,i=0;i>>26)|0)>>>26,a&=67108863}n.words[i]=l,r=a,a=o}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,n,r,o,i){for(var a=0;a>>=1)o++;return 1<>>=13,n[2*a+1]=8191&i,i>>>=13;for(a=2*t;a>=26,t+=r/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>o}return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r=0);var t,n=e%26,r=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t=0),r=t?(t-t%26)/26:0;var i=e%26,a=Math.min((e-i)/26,this.length),l=67108863^67108863>>>i<a)for(this.length-=a,c=0;c=0&&(0!==d||c>=r);c--){var u=0|this.words[c];this.words[c]=d<<26-i|u>>>i,d=u&l}return s&&0!==d&&(s.words[s.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return o(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){o("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,r=1<=0);var t=e%26,n=(e-t)/26;if(o(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var r=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(o("number"==typeof e),o(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[r+n]=67108863&i}for(;r>26,this.words[r+n]=67108863&i;if(0===l)return this.strip();for(o(-1===l),l=0,r=0;r>26,this.words[r]=67108863&i;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,i=0|o.words[o.length-1];0!==(n=26-this._countBits(i))&&(o=o.ushln(n),r.iushln(n),i=0|o.words[o.length-1]);var l,s=r.length-o.length;if("mod"!==t){(l=new a(null)).length=s+1,l.words=new Array(l.length);for(var c=0;c=0;u--){var f=67108864*(0|r.words[o.length+u])+(0|r.words[o.length+u-1]);for(f=Math.min(f/i|0,67108863),r._ishlnsubmul(o,f,u);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(o,1,u),r.isZero()||(r.negative^=1);l&&(l.words[u]=f)}return l&&l.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:l||null,mod:r}},a.prototype.divmod=function(e,t,n){return o(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(l=this.neg().divmod(e,t),"mod"!==t&&(r=l.div.neg()),"div"!==t&&(i=l.mod.neg(),n&&0!==i.negative&&i.iadd(e)),{div:r,mod:i}):0===this.negative&&0!==e.negative?(l=this.divmod(e.neg(),t),"mod"!==t&&(r=l.div.neg()),{div:r,mod:l.mod}):0!=(this.negative&e.negative)?(l=this.neg().divmod(e.neg(),t),"div"!==t&&(i=l.mod.neg(),n&&0!==i.negative&&i.isub(e)),{div:l.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,i,l},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),o=e.andln(1),i=n.cmp(r);return i<0||1===o&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){o(e<=67108863);for(var t=(1<<26)%e,n=0,r=this.length-1;r>=0;r--)n=(t*n+(0|this.words[r]))%e;return n},a.prototype.idivn=function(e){o(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*t;this.words[n]=r/e|0,t=r%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){o(0===e.negative),o(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new a(1),i=new a(0),l=new a(0),s=new a(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var d=n.clone(),u=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(r.isOdd()||i.isOdd())&&(r.iadd(d),i.isub(u)),r.iushrn(1),i.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(l.isOdd()||s.isOdd())&&(l.iadd(d),s.isub(u)),l.iushrn(1),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),r.isub(l),i.isub(s)):(n.isub(t),l.isub(r),s.isub(i))}return{a:l,b:s,gcd:n.iushln(c)}},a.prototype._invmp=function(e){o(0===e.negative),o(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,i=new a(1),l=new a(0),s=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,d=1;0==(t.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(t.iushrn(c);c-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,f=1;0==(n.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(n.iushrn(u);u-- >0;)l.isOdd()&&l.iadd(s),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(l)):(n.isub(t),l.isub(i))}return(r=0===t.cmpn(1)?i:l).cmpn(0)<0&&r.iadd(e),r},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=t.cmp(n);if(o<0){var i=t;t=n,n=i}else if(0===o||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){o("number"==typeof e);var t=e%26,n=(e-t)/26,r=1<>>26,l&=67108863,this.words[a]=l}return 0!==i&&(this.words[a]=i,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),o(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:re.length)return 1;if(this.length=0;n--){var r=0|this.words[n],o=0|e.words[n];if(r!==o){ro&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new C(e)},a.prototype.toRed=function(e){return o(!this.red,"Already a number in reduction context"),o(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return o(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return o(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else o(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(y,b),y.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r>>22,o=i}o>>>=22,e.words[r-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=o,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new _;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return v[e]=t,t},C.prototype._verify1=function(e){o(0===e.negative,"red works only with positives"),o(e.red,"red works only with red numbers")},C.prototype._verify2=function(e,t){o(0==(e.negative|t.negative),"red works only with positives"),o(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},C.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},C.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},C.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(o(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var r=this.m.subn(1),i=0;!r.isZero()&&0===r.andln(1);)i++,r.iushrn(1);o(!r.isZero());var l=new a(1).toRed(this),s=l.redNeg(),c=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new a(2*d*d).toRed(this);0!==this.pow(d,c).cmp(s);)d.redIAdd(s);for(var u=this.pow(d,r),f=this.pow(e,r.addn(1).iushrn(1)),h=this.pow(e,r),p=i;0!==h.cmp(l);){for(var m=h,g=0;0!==m.cmp(l);g++)m=m.redSqr();o(g=0;r--){for(var c=t.words[r],d=s-1;d>=0;d--){var u=c>>d&1;o!==n[0]&&(o=this.sqr(o)),0!==u||0!==i?(i<<=1,i|=u,(4===++l||0===r&&0===d)&&(o=this.mul(o,n[i]),l=0,i=0)):l=0}s=26}return o},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new T(e)},i(T,C),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(117)(e))},function(e,t,n){e.exports=!n(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(8),o=n(141),i=n(38),a=Object.defineProperty;t.f=n(14)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var r=n(406),o=n(407),i=n(175);function a(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return w(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){var i,a=1,l=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,l/=2,s/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var d=-1;for(i=n;il&&(n=l-s),i=n;i>=0;i--){for(var u=!0,f=0;fo&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+u<=n)switch(u){case 1:c<128&&(d=c);break;case 2:128==(192&(i=e[o+1]))&&(s=(31&c)<<6|63&i)>127&&(d=s);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(s=(15&c)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(d=s);break;case 4:i=e[o+1],a=e[o+2],l=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&l)&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&s<1114112&&(d=s)}null===d?(d=65533,u=1):d>65535&&(d-=65536,r.push(d>>>10&1023|55296),d=56320|1023&d),r.push(d),o+=u}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},s.prototype.compare=function(e,t,n,r,o){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),l=Math.min(i,a),c=this.slice(r,o),d=e.slice(t,n),u=0;uo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function w(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,o,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function x(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function R(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function k(e,t,n,r,i){return i||R(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function P(e,t,n,r,i){return i||R(e,0,n,8),o.write(e,t,n,r,52,8),n+8}s.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):x(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);D(this,e,t,n,o-1,-o)}var i=0,a=1,l=0;for(this[t]=255&e;++i>0)-l&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);D(this,e,t,n,o-1,-o)}var i=n-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a>>0)-l&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):x(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!s.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function j(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(37))},function(e,t,n){var r=n(35);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(6),o=n(21),i=n(20),a=n(43)("src"),l=n(223),s=(""+l).split("toString");n(12).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,l){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(i(n,a)||o(n,a,e[t]?""+e[t]:s.join(String(t)))),e===r?e[t]=n:l?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||l.call(this)}))},function(e,t,n){var r=n(0),o=n(7),i=n(35),a=/"/g,l=function(e,t,n,r){var o=String(i(e)),l="<"+t;return""!==n&&(l+=" "+n+'="'+String(r).replace(a,""")+'"'),l+">"+o+""};e.exports=function(e,t){var n={};n[e]=t(l),r(r.P+r.F*o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(15),o=n(42);e.exports=n(14)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(64),o=n(35);e.exports=function(e){return r(o(e))}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=t,o=n(13),i=n(23),a=n(199);r.assert=i,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var o=1<(o>>1)-1?(o>>1)-s:s,i.isubn(l)):l=0,r[a]=l,i.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,o=0;e.cmpn(-r)>0||t.cmpn(-o)>0;){var i,a,l,s=e.andln(3)+r&3,c=t.andln(3)+o&3;if(3===s&&(s=-1),3===c&&(c=-1),0==(1&s))i=0;else i=3!==(l=e.andln(7)+r&7)&&5!==l||2!==c?s:-s;if(n[0].push(i),0==(1&c))a=0;else a=3!==(l=t.andln(7)+o&7)&&5!==l||2!==s?c:-c;n[1].push(a),2*r===i+1&&(r=1-r),2*o===a+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new o(e,"hex","le")}},function(e,t,n){"use strict";var r=n(7);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,n){var r=n(1),o=n(3),i=n(216);function a(e,t,n){var r=0,o=t.length;return function a(){r=t.length&&n&&n()};for(r=0,o=t.length;r0?r:n)(e)}},function(e,t,n){var r=n(65),o=n(42),i=n(22),a=n(38),l=n(20),s=n(141),c=Object.getOwnPropertyDescriptor;t.f=n(14)?c:function(e,t){if(e=i(e),t=a(t,!0),s)try{return c(e,t)}catch(e){}if(l(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(0),o=n(12),i=n(7);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},function(e,t,n){var r=n(27),o=n(64),i=n(17),a=n(11),l=n(157);e.exports=function(e,t){var n=1==e,s=2==e,c=3==e,d=4==e,u=6==e,f=5==e||u,h=t||l;return function(t,l,p){for(var m,g,v=i(t),b=o(v),y=r(l,p,3),_=a(b.length),S=0,E=n?h(t,_):s?h(t,0):void 0;_>S;S++)if((f||S in b)&&(g=y(m=b[S],S,v),e))if(n)E[S]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return S;case 2:E.push(m)}else if(d)return!1;return u?-1:c||d?d:E}}},function(e,t,n){"use strict";var r=n(23),o=n(4);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function l(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o>6|192,n[r++]=63&a|128):i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(o=0;o>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},t.sum64=function(e,t,n,r){var o=e[t],i=r+e[t+1]>>>0,a=(i>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,o,i,a,l){var s=0,c=t;return s+=(c=c+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,o,i,a,l){return t+r+i+l>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,a,l,s,c){var d=0,u=t;return d+=(u=u+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,o,i,a,l,s,c){return t+r+i+l+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}if(n(14)){var o=n(44),i=n(6),a=n(7),l=n(0),s=n(85),c=n(116),d=n(27),u=n(59),f=n(42),h=n(21),p=n(60),m=n(29),g=n(11),v=n(168),b=n(46),y=n(38),_=n(20),S=n(66),E=n(9),C=n(17),T=n(108),A=n(47),O=n(49),w=n(48).f,N=n(110),L=n(43),I=n(10),U=n(32),D=n(75),M=n(67),x=n(112),R=n(57),k=n(78),P=n(58),B=n(111),z=n(159),F=n(15),j=n(30),q=F.f,W=j.f,H=i.RangeError,Y=i.TypeError,G=i.Uint8Array,V=Array.prototype,Z=c.ArrayBuffer,K=c.DataView,X=U(0),$=U(2),J=U(3),Q=U(4),ee=U(5),te=U(6),ne=D(!0),re=D(!1),oe=x.values,ie=x.keys,ae=x.entries,le=V.lastIndexOf,se=V.reduce,ce=V.reduceRight,de=V.join,ue=V.sort,fe=V.slice,he=V.toString,pe=V.toLocaleString,me=I("iterator"),ge=I("toStringTag"),ve=L("typed_constructor"),be=L("def_constructor"),ye=s.CONSTR,_e=s.TYPED,Se=s.VIEW,Ee=U(1,(function(e,t){return we(M(e,e[be]),t)})),Ce=a((function(){return 1===new G(new Uint16Array([1]).buffer)[0]})),Te=!!G&&!!G.prototype.set&&a((function(){new G(1).set({})})),Ae=function(e,t){var n=m(e);if(n<0||n%t)throw H("Wrong offset!");return n},Oe=function(e){if(E(e)&&_e in e)return e;throw Y(e+" is not a typed array!")},we=function(e,t){if(!(E(e)&&ve in e))throw Y("It is not a typed array constructor!");return new e(t)},Ne=function(e,t){return Le(M(e,e[be]),t)},Le=function(e,t){for(var n=0,r=t.length,o=we(e,r);r>n;)o[n]=t[n++];return o},Ie=function(e,t,n){q(e,t,{get:function(){return this._d[n]}})},Ue=function(e){var t,n,r,o,i,a,l=C(e),s=arguments.length,c=s>1?arguments[1]:void 0,u=void 0!==c,f=N(l);if(null!=f&&!T(f)){for(a=f.call(l),r=[],t=0;!(i=a.next()).done;t++)r.push(i.value);l=r}for(u&&s>2&&(c=d(c,arguments[2],2)),t=0,n=g(l.length),o=we(this,n);n>t;t++)o[t]=u?c(l[t],t):l[t];return o},De=function(){for(var e=0,t=arguments.length,n=we(this,t);t>e;)n[e]=arguments[e++];return n},Me=!!G&&a((function(){pe.call(new G(1))})),xe=function(){return pe.apply(Me?fe.call(Oe(this)):Oe(this),arguments)},Re={copyWithin:function(e,t){return z.call(Oe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Q(Oe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return B.apply(Oe(this),arguments)},filter:function(e){return Ne(this,$(Oe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return ee(Oe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return te(Oe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){X(Oe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return re(Oe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return ne(Oe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return de.apply(Oe(this),arguments)},lastIndexOf:function(e){return le.apply(Oe(this),arguments)},map:function(e){return Ee(Oe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Oe(this),arguments)},reduceRight:function(e){return ce.apply(Oe(this),arguments)},reverse:function(){for(var e,t=Oe(this).length,n=Math.floor(t/2),r=0;r1?arguments[1]:void 0)},sort:function(e){return ue.call(Oe(this),e)},subarray:function(e,t){var n=Oe(this),r=n.length,o=b(e,r);return new(M(n,n[be]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,g((void 0===t?r:b(t,r))-o))}},ke=function(e,t){return Ne(this,fe.call(Oe(this),e,t))},Pe=function(e){Oe(this);var t=Ae(arguments[1],1),n=this.length,r=C(e),o=g(r.length),i=0;if(o+t>n)throw H("Wrong length!");for(;i255?255:255&o),i.v[f](n*t+i.o,o,Ce)}(this,n,e)},enumerable:!0})};y?(p=n((function(e,n,r,o){u(e,p,c,"_d");var i,a,l,s,d=0,f=0;if(E(n)){if(!(n instanceof Z||"ArrayBuffer"==(s=S(n))||"SharedArrayBuffer"==s))return _e in n?Le(p,n):Ue.call(p,n);i=n,f=Ae(r,t);var m=n.byteLength;if(void 0===o){if(m%t)throw H("Wrong length!");if((a=m-f)<0)throw H("Wrong length!")}else if((a=g(o)*t)+f>m)throw H("Wrong length!");l=a/t}else l=v(n),i=new Z(a=l*t);for(h(e,"_d",{b:i,o:f,l:a,e:l,v:new K(i)});d1)for(var n=1;ndocument.F=Object<\/script>"),e.close(),s=e.F;r--;)delete s.prototype[i[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=r(e),n=new l,l.prototype=null,n[a]=e):n=s(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(143),o=n(95).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(20),o=n(17),i=n(94)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(10)("unscopables"),o=Array.prototype;null==o[r]&&n(21)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t,n){var r=n(9);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";var r=n(86),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var i=Object.create(n(69));i.inherits=n(4);var a=n(177),l=n(125);i.inherits(u,a);for(var s=o(l.prototype),c=0;c=0;o--){(0,r.splice(o,1)[0])()}n[t.loadId]=[]}}}},function(e,t){e.exports={CLASS:{CHILD:"child",CHILDREN:"children",COLLAPSED:"collapsed",COMPLETE:"complete",CONTAINER:"outline-container",CONTENT:"content",DOT:"dot",DOT_ICON:"dot-icon",DRAG_CONTAINER:"outline-drag-container",DRAG_FLAG:"outline-drag-flag",IMAGE:"image",MINDER_NOTE:"minder-note",MINDER_MENU_SVG_ICON:"minder-menu-svg-icon",MINDER_MENU_SVG_ICON_LIGHT:"minder-menu-svg-icon-light",NODE:"node",NODE_SELECTED:"selected",NODE_SHOW_MENU:"show-menu",NOTES:"notes",OPERATOR_CONTAINER:"operator-container",OPERATOR_BAR:"operator-bar",ROW:"row",SWITCH:"switch",MINDERMENU:"minder-menu"},ID:{STYLE:"wiz_outline_style",MINDER_CONTAINER:"wiz-minder-container"},NAME:{STYLE:"wiz_outline_style"},MENU:{ADD_NOTES:"add_notes",ADD_IMAGE:"add_image",COMPLETE:"complete",COPY:"copy",DUPLICATE:"duplicate",INDENT:"indent",OUTDENT:"outdent",DELETE:"remove",UNCOMPLETE:"uncomplete"},MINDER_TEMPLATE_TYPE:{DEFAULT:"default",FISH_BONE:"fish-bone",RIGHT:"right",STRUCTURE:"structure"},MINDER_THEME_TYPE:{LIGHT_GREEN:"wiz-lightGreen",BLUE:"wiz-blue",GOLDEN:"wiz-golden",SAKURA:"wiz-sakura",DARK_BLUE:"wiz-darkBlue",BLACK:"wiz-black",PURPLE:"wiz-purple",CYAN:"wiz-cyan",SILVER:"wiz-silver",GREEN:"wiz-green"},NODE_ITEM_TYPE:{CONTENT:"content",NOTES:"notes"},HOTKEY_MAP:{WIN:{ADD_NOTES:"Shift + Enter",ADD_IMAGE:"",COMPLETE:"Ctrl + Enter",DUPLICATE:"Shift + Ctrl + D",INDENT:"Tab",OUTDENT:"Shift + Tab",DELETE:"Shift + Delete",UNCOMPLETE:"Ctrl + Enter"},MAC:{ADD_NOTES:"Shift + Enter",ADD_IMAGE:"",COMPLETE:"⌘ + Enter",DUPLICATE:"Shift + Ctrl + D",INDENT:"Tab",OUTDENT:"Shift + Tab",DELETE:"Shift + Delete",UNCOMPLETE:"⌘ + Enter"}},STORAGE_KEY:{MINDER_TEMPLATE:"wiz-minder-template",MINDER_THEME:"wiz-minder-theme"}}},function(e,t,n){var r=n(15).f,o=n(20),i=n(10)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(0),o=n(35),i=n(7),a=n(98),l="["+a+"]",s=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),d=function(e,t,n){var o={},l=i((function(){return!!a[e]()||"​…"!="​…"[e]()})),s=o[e]=l?t(u):a[e];n&&(o[n]=s),r(r.P+r.F*l,"String",o)},u=d.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(s,"")),2&t&&(e=e.replace(c,"")),e};e.exports=d},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(6),o=n(15),i=n(14),a=n(10)("species");e.exports=function(e){var t=r[e];i&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(18);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){"use strict";(function(t,r){var o=n(5).Buffer,i=t.crypto||t.msCrypto;i&&i.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=o.allocUnsafe(e);if(e>0)if(e>65536)for(var a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,o=(n-r)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=o},function(e,t,n){var r=n(174),o={run:function(e){e.wizMath={getRandomArbitrary:function(t,n){return e.wizMath.random()*(n-t)+t},random:function(){return r()()}},e.Selection&&!e.Selection.prototype.extend&&(e.Selection.prototype.extend=function(t,n){var r=e.document.getSelection();try{if(!r||0===r.rangeCount)return}catch(e){return}var o=r.getRangeAt(0),i=e.document.createRange(),a=e.document.createRange();a.setStart(o.startContainer,o.startOffset);var l=e.document.createRange();l.setStart(t,n),l.compareBoundaryPoints(Range.START_TO_START,a)>=0?(i.setStart(o.startContainer,o.startOffset),i.setEnd(t,n)):(i.setStart(t,n),i.setEnd(o.startContainer,o.startOffset)),this.removeAllRanges(),this.addRange(i)}),e.document.body.addEventListener("mscontrolselect",(function(e){e.preventDefault()}))}};e.exports=o},function(e,t,n){var r=n(34);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(34),o=n(10)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var r=n(8),o=n(28),i=n(10)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},function(e,t,n){"use strict";var r=n(4),o=n(121),i=n(127),a=n(128),l=n(41);function s(e){l.call(this,"digest"),this._hash=e}r(s,l),s.prototype._update=function(e){this._hash.update(e)},s.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new o:"rmd160"===e||"ripemd160"===e?new i:new s(a(e))}},function(e,t,n){(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"===n(e)},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"===n(e)&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===n(e)||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(16).Buffer)},function(e,t,n){(function(t){e.exports=function(e,n){for(var r=Math.min(e.length,n.length),o=new t(r),i=0;i=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var o=0;o>>24&255,r[o++]=e>>>16&255,r[o++]=e>>>8&255,r[o++]=255&e}else for(r[o++]=255&e,r[o++]=e>>>8&255,r[o++]=e>>>16&255,r[o++]=e>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;id;)if((l=s[d++])!=l)return!0}else for(;c>d;d++)if((e||d in s)&&s[d]===n)return e||d||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(34);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(10)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(8);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(66),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var a=n.call(e,t);if("object"!==r(a))throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==o(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,n){"use strict";n(161);var r=n(18),o=n(21),i=n(7),a=n(35),l=n(10),s=n(113),c=l("species"),d=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),u=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var f=l(e),h=!i((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),p=h?!i((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!t})):void 0;if(!h||!p||"replace"===e&&!d||"split"===e&&!u){var m=/./[f],g=n(a,f,""[e],(function(e,t,n,r,o){return t.exec===s?h&&!o?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=g[0],b=g[1];r(String.prototype,e,v),o(RegExp.prototype,f,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},function(e,t,n){var r=n(27),o=n(156),i=n(108),a=n(8),l=n(11),s=n(110),c={},d={};(t=e.exports=function(e,t,n,u,f){var h,p,m,g,v=f?function(){return e}:s(e),b=r(n,u,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(i(v)){for(h=l(e.length);h>y;y++)if((g=t?b(a(p=e[y])[0],p[1]):b(e[y]))===c||g===d)return g}else for(m=v.call(e);!(p=m.next()).done;)if((g=o(m,b,p.value,t))===c||g===d)return g}).BREAK=c,t.RETURN=d},function(e,t,n){var r=n(6).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){"use strict";var r=n(6),o=n(0),i=n(18),a=n(60),l=n(39),s=n(82),c=n(59),d=n(9),u=n(7),f=n(78),h=n(55),p=n(99);e.exports=function(e,t,n,m,g,v){var b=r[e],y=b,_=g?"set":"add",S=y&&y.prototype,E={},C=function(e){var t=S[e];i(S,e,"delete"==e?function(e){return!(v&&!d(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!d(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!d(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof y&&(v||S.forEach&&!u((function(){(new y).entries().next()})))){var T=new y,A=T[_](v?{}:-0,1)!=T,O=u((function(){T.has(1)})),w=f((function(e){new y(e)})),N=!v&&u((function(){for(var e=new y,t=5;t--;)e[_](t,t);return!e.has(-0)}));w||((y=t((function(t,n){c(t,y,e);var r=p(new b,t,y);return null!=n&&s(n,g,r[_],r),r}))).prototype=S,S.constructor=y),(O||N)&&(C("delete"),C("has"),g&&C("get")),(N||A)&&C(_),v&&S.clear&&delete S.clear}else y=m.getConstructor(t,e,g,_),a(y.prototype,n),l.NEED=!0;return h(y,e),E[e]=y,o(o.G+o.W+o.F*(y!=b),E),v||m.setStrong(y,e,g),y}},function(e,t,n){for(var r,o=n(6),i=n(21),a=n(43),l=a("typed_array"),s=a("view"),c=!(!o.ArrayBuffer||!o.DataView),d=c,u=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");u<9;)(r=o[f[u++]])?(i(r.prototype,l,!0),i(r.prototype,s,!0)):d=!1;e.exports={ABV:c,CONSTR:d,TYPED:l,VIEW:s}},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,l=arguments.length;switch(l){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,o)}));default:for(i=new Array(l-1),a=0;a>>24]^d[p>>>16&255]^u[m>>>8&255]^f[255&g]^t[v++],a=c[p>>>24]^d[m>>>16&255]^u[g>>>8&255]^f[255&h]^t[v++],l=c[m>>>24]^d[g>>>16&255]^u[h>>>8&255]^f[255&p]^t[v++],s=c[g>>>24]^d[h>>>16&255]^u[p>>>8&255]^f[255&m]^t[v++],h=i,p=a,m=l,g=s;return i=(r[h>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&g])^t[v++],a=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[g>>>8&255]<<8|r[255&h])^t[v++],l=(r[m>>>24]<<24|r[g>>>16&255]<<16|r[h>>>8&255]<<8|r[255&p])^t[v++],s=(r[g>>>24]<<24|r[h>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^t[v++],[i>>>=0,a>>>=0,l>>>=0,s>>>=0]}var l=[0,1,2,4,8,16,32,64,128,27,54],s=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],o=[[],[],[],[]],i=[[],[],[],[]],a=0,l=0,s=0;s<256;++s){var c=l^l<<1^l<<2^l<<3^l<<4;c=c>>>8^255&c^99,n[a]=c,r[c]=a;var d=e[a],u=e[d],f=e[u],h=257*e[c]^16843008*c;o[0][a]=h<<24|h>>>8,o[1][a]=h<<16|h>>>16,o[2][a]=h<<8|h>>>24,o[3][a]=h,h=16843009*f^65537*u^257*d^16843008*a,i[0][c]=h<<24|h>>>8,i[1][c]=h<<16|h>>>16,i[2][c]=h<<8|h>>>24,i[3][c]=h,0===a?a=l=1:(a=d^e[e[e[f^d]]],l^=e[e[l]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:o,INV_SUB_MIX:i}}();function c(e){this._key=o(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),o=[],i=0;i>>24,a=s.SBOX[a>>>24]<<24|s.SBOX[a>>>16&255]<<16|s.SBOX[a>>>8&255]<<8|s.SBOX[255&a],a^=l[i/t|0]<<24):t>6&&i%t==4&&(a=s.SBOX[a>>>24]<<24|s.SBOX[a>>>16&255]<<16|s.SBOX[a>>>8&255]<<8|s.SBOX[255&a]),o[i]=o[i-t]^a}for(var c=[],d=0;d>>24]]^s.INV_SUB_MIX[1][s.SBOX[f>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[f>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[255&f]]}this._nRounds=n,this._keySchedule=o,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return a(e=o(e),this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},c.prototype.decryptBlock=function(e){var t=(e=o(e))[1];e[1]=e[3],e[3]=t;var n=a(e,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),i=r.allocUnsafe(16);return i.writeUInt32BE(n[0],0),i.writeUInt32BE(n[3],4),i.writeUInt32BE(n[2],8),i.writeUInt32BE(n[1],12),i},c.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},e.exports.AES=c},function(e,t,n){var r=n(5).Buffer,o=n(121);e.exports=function(e,t,n,i){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,l=r.alloc(a),s=r.alloc(i||0),c=r.alloc(0);a>0||i>0;){var d=new o;d.update(c),d.update(e),t&&d.update(t),c=d.digest();var u=0;if(a>0){var f=l.length-a;u=Math.min(a,c.length),c.copy(l,f,0,u),a-=u}if(u0){var h=s.length-i,p=Math.min(i,c.length-u);c.copy(s,h,u,u+p),i-=p}}return c.fill(0),{key:l,iv:s}}},function(e,t,n){"use strict";var r=n(13),o=n(24),i=o.getNAF,a=o.getJSF,l=o.assert;function s(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=s,s.prototype.point=function(){throw new Error("Not implemented")},s.prototype.validate=function(){throw new Error("Not implemented")},s.prototype._fixedNafMul=function(e,t){l(e.precomputed);var n=e._getDoubles(),r=i(t,1,this._bitLength),o=(1<=s;t--)c=(c<<1)+r[t];a.push(c)}for(var d=this.jpoint(null,null,null),u=this.jpoint(null,null,null),f=o;f>0;f--){for(s=0;s=0;c--){for(t=0;c>=0&&0===a[c];c--)t++;if(c>=0&&t++,s=s.dblp(t),c<0)break;var d=a[c];l(0!==d),s="affine"===e.type?d>0?s.mixedAdd(o[d-1>>1]):s.mixedAdd(o[-d-1>>1].neg()):d>0?s.add(o[d-1>>1]):s.add(o[-d-1>>1].neg())}return"affine"===e.type?s.toP():s},s.prototype._wnafMulAdd=function(e,t,n,r,o){for(var l=this._wnafT1,s=this._wnafT2,c=this._wnafT3,d=0,u=0;u=1;u-=2){var h=u-1,p=u;if(1===l[h]&&1===l[p]){var m=[t[h],null,null,t[p]];0===t[h].y.cmp(t[p].y)?(m[1]=t[h].add(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg())):0===t[h].y.cmp(t[p].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].add(t[p].neg())):(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=a(n[h],n[p]);d=Math.max(v[0].length,d),c[h]=new Array(d),c[p]=new Array(d);for(var b=0;b=0;u--){for(var C=0;u>=0;){var T=!0;for(b=0;b=0&&C++,S=S.dblp(C),u<0)break;for(b=0;b0?A=s[b][O-1>>1]:O<0&&(A=s[b][-O-1>>1].neg()),S="affine"===A.type?S.mixedAdd(A):S.add(A))}}for(u=0;u=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,o=0;o>>6)+s(128|63&t):s(224|t>>>12&15)+s(128|t>>>6&63)+s(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return s(240|t>>>18&7)+s(128|t>>>12&63)+s(128|t>>>6&63)+s(128|63&t)},d=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,u=function(e){return e.replace(d,c)},f=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[a.charAt(n>>>18),a.charAt(n>>>12&63),t>=2?"=":a.charAt(n>>>6&63),t>=1?"=":a.charAt(63&n)].join("")},h=o.btoa?function(e){return o.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,f)},p=r?function(e){return(e.constructor===r.constructor?e:new r(e)).toString("base64")}:function(e){return h(u(e))},m=function(e,t){return t?p(String(e)).replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,""):p(String(e))},g=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),v=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return s(55296+(t>>>10))+s(56320+(1023&t));case 3:return s((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return s((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},b=function(e){return e.replace(g,v)},y=function(e){var t=e.length,n=t%4,r=(t>0?l[e.charAt(0)]<<18:0)|(t>1?l[e.charAt(1)]<<12:0)|(t>2?l[e.charAt(2)]<<6:0)|(t>3?l[e.charAt(3)]:0),o=[s(r>>>16),s(r>>>8&255),s(255&r)];return o.length-=[0,0,2,1][n],o.join("")},_=o.atob?function(e){return o.atob(e)}:function(e){return e.replace(/[\s\S]{1,4}/g,y)},S=r?function(e){return(e.constructor===r.constructor?e:new r(e,"base64")).toString()}:function(e){return b(_(e))},E=function(e){return S(String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,""))};if(o.Base64={VERSION:"2.1.8",atob:_,btoa:h,fromBase64:E,toBase64:m,utob:u,encode:m,encodeURI:function(e){return m(e,!0)},btou:b,decode:E,noConflict:function(){var e=o.Base64;return o.Base64=i,e}},"function"==typeof Object.defineProperty){var C=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};o.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",C((function(){return E(this)}))),Object.defineProperty(String.prototype,"toBase64",C((function(e){return m(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",C((function(){return m(this,!0)})))}}e.exports=o.Base64},function(e,t,n){var r=n(9),o=n(6).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){t.f=n(10)},function(e,t,n){var r=n(74)("keys"),o=n(43);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(6).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(9),o=n(8),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(27)(Function.call,n(30).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(e,t,n){var r=n(9),o=n(97).set;e.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},function(e,t,n){"use strict";var r=n(29),o=n(35);e.exports=function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){var r=n(29),o=n(35);e.exports=function(e){return function(t,n){var i,a,l=String(o(t)),s=r(n),c=l.length;return s<0||s>=c?e?"":void 0:(i=l.charCodeAt(s))<55296||i>56319||s+1===c||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(44),o=n(0),i=n(18),a=n(21),l=n(57),s=n(155),c=n(55),d=n(49),u=n(10)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,p,m,g,v){s(n,t,p);var b,y,_,S=function(e){if(!f&&e in A)return A[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",C="values"==m,T=!1,A=e.prototype,O=A[u]||A["@@iterator"]||m&&A[m],w=O||S(m),N=m?C?S("entries"):w:void 0,L="Array"==t&&A.entries||O;if(L&&(_=d(L.call(new e)))!==Object.prototype&&_.next&&(c(_,E,!0),r||"function"==typeof _[u]||a(_,u,h)),C&&O&&"values"!==O.name&&(T=!0,w=function(){return O.call(this)}),r&&!v||!f&&!T&&A[u]||a(A,u,w),l[t]=w,l[E]=h,m)if(b={values:C?w:S("values"),keys:g?w:S("keys"),entries:N},v)for(y in b)y in A||i(A,y,b[y]);else o(o.P+o.F*(f||T),t,b);return b}},function(e,t,n){var r=n(106),o=n(35);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){var r=n(9),o=n(34),i=n(10)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(10)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var r=n(57),o=n(10)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){"use strict";var r=n(15),o=n(42);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){var r=n(66),o=n(10)("iterator"),i=n(57);e.exports=n(12).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){"use strict";var r=n(17),o=n(46),i=n(11);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,l=o(a>1?arguments[1]:void 0,n),s=a>2?arguments[2]:void 0,c=void 0===s?n:o(s,n);c>l;)t[l++]=e;return t}},function(e,t,n){"use strict";var r=n(50),o=n(160),i=n(57),a=n(22);e.exports=n(104)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r,o,i=n(79),a=RegExp.prototype.exec,l=String.prototype.replace,s=a,c=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),d=void 0!==/()??/.exec("")[1];(c||d)&&(s=function(e){var t,n,r,o,s=this;return d&&(n=new RegExp("^"+s.source+"$(?!\\s)",i.call(s))),c&&(t=s.lastIndex),r=a.call(s,e),c&&r&&(s.lastIndex=s.global?r.index+r[0].length:t),d&&r&&r.length>1&&l.call(r[0],n,(function(){for(o=1;on;)t.push(arguments[n++]);return v[++g]=function(){l("function"==typeof e?e:Function(e),t)},r(g),g},h=function(e){delete v[e]},"process"==n(34)(u)?r=function(e){u.nextTick(a(b,e,1))}:m&&m.now?r=function(e){m.now(a(b,e,1))}:p?(i=(o=new p).port2,o.port1.onmessage=y,r=a(i.postMessage,i,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts?(r=function(e){d.postMessage(e+"","*")},d.addEventListener("message",y,!1)):r="onreadystatechange"in c("script")?function(e){s.appendChild(c("script")).onreadystatechange=function(){s.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),e.exports={set:f,clear:h}},function(e,t,n){"use strict";var r=n(6),o=n(14),i=n(44),a=n(85),l=n(21),s=n(60),c=n(7),d=n(59),u=n(29),f=n(11),h=n(168),p=n(48).f,m=n(15).f,g=n(111),v=n(55),b=r.ArrayBuffer,y=r.DataView,_=r.Math,S=r.RangeError,E=r.Infinity,C=b,T=_.abs,A=_.pow,O=_.floor,w=_.log,N=_.LN2,L=o?"_b":"buffer",I=o?"_l":"byteLength",U=o?"_o":"byteOffset";function D(e,t,n){var r,o,i,a=new Array(n),l=8*n-t-1,s=(1<>1,d=23===t?A(2,-24)-A(2,-77):0,u=0,f=e<0||0===e&&1/e<0?1:0;for((e=T(e))!=e||e===E?(o=e!=e?1:0,r=s):(r=O(w(e)/N),e*(i=A(2,-r))<1&&(r--,i*=2),(e+=r+c>=1?d/i:d*A(2,1-c))*i>=2&&(r++,i/=2),r+c>=s?(o=0,r=s):r+c>=1?(o=(e*i-1)*A(2,t),r+=c):(o=e*A(2,c-1)*A(2,t),r=0));t>=8;a[u++]=255&o,o/=256,t-=8);for(r=r<0;a[u++]=255&r,r/=256,l-=8);return a[--u]|=128*f,a}function M(e,t,n){var r,o=8*n-t-1,i=(1<>1,l=o-7,s=n-1,c=e[s--],d=127&c;for(c>>=7;l>0;d=256*d+e[s],s--,l-=8);for(r=d&(1<<-l)-1,d>>=-l,l+=t;l>0;r=256*r+e[s],s--,l-=8);if(0===d)d=1-a;else{if(d===i)return r?NaN:c?-E:E;r+=A(2,t),d-=a}return(c?-1:1)*r*A(2,d-t)}function x(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function R(e){return[255&e]}function k(e){return[255&e,e>>8&255]}function P(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function B(e){return D(e,52,8)}function z(e){return D(e,23,4)}function F(e,t,n){m(e.prototype,t,{get:function(){return this[n]}})}function j(e,t,n,r){var o=h(+n);if(o+t>e[I])throw S("Wrong index!");var i=e[L]._b,a=o+e[U],l=i.slice(a,a+t);return r?l:l.reverse()}function q(e,t,n,r,o,i){var a=h(+n);if(a+t>e[I])throw S("Wrong index!");for(var l=e[L]._b,s=a+e[U],c=r(+o),d=0;dG;)(W=Y[G++])in b||l(b,W,C[W]);i||(H.constructor=b)}var V=new y(new b(2)),Z=y.prototype.setInt8;V.setInt8(0,2147483648),V.setInt8(1,2147483649),!V.getInt8(0)&&V.getInt8(1)||s(y.prototype,{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},!0)}else b=function(e){d(this,b,"ArrayBuffer");var t=h(e);this._b=g.call(new Array(t),0),this[I]=t},y=function(e,t,n){d(this,y,"DataView"),d(e,b,"DataView");var r=e[I],o=u(t);if(o<0||o>r)throw S("Wrong offset!");if(o+(n=void 0===n?r-o:f(n))>r)throw S("Wrong length!");this[L]=e,this[U]=o,this[I]=n},o&&(F(b,"byteLength","_l"),F(y,"buffer","_b"),F(y,"byteLength","_l"),F(y,"byteOffset","_o")),s(y.prototype,{getInt8:function(e){return j(this,1,e)[0]<<24>>24},getUint8:function(e){return j(this,1,e)[0]},getInt16:function(e){var t=j(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=j(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return x(j(this,4,e,arguments[1]))},getUint32:function(e){return x(j(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return M(j(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return M(j(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){q(this,1,e,R,t)},setUint8:function(e,t){q(this,1,e,R,t)},setInt16:function(e,t){q(this,2,e,k,t,arguments[2])},setUint16:function(e,t){q(this,2,e,k,t,arguments[2])},setInt32:function(e,t){q(this,4,e,P,t,arguments[2])},setUint32:function(e,t){q(this,4,e,P,t,arguments[2])},setFloat32:function(e,t){q(this,4,e,z,t,arguments[2])},setFloat64:function(e,t){q(this,8,e,B,t,arguments[2])}});v(b,"ArrayBuffer"),v(y,"DataView"),l(y.prototype,a.VIEW,!0),t.ArrayBuffer=b,t.DataView=y},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return"object"===n(e)?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(173)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(4),o=n(176),i=n(5).Buffer,a=new Array(16);function l(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(e,t){return e<>>32-t}function c(e,t,n,r,o,i,a){return s(e+(t&n|~t&r)+o+i|0,a)+t|0}function d(e,t,n,r,o,i,a){return s(e+(t&r|n&~r)+o+i|0,a)+t|0}function u(e,t,n,r,o,i,a){return s(e+(t^n^r)+o+i|0,a)+t|0}function f(e,t,n,r,o,i,a){return s(e+(n^(t|~r))+o+i|0,a)+t|0}r(l,o),l.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,o=this._c,i=this._d;n=c(n,r,o,i,e[0],3614090360,7),i=c(i,n,r,o,e[1],3905402710,12),o=c(o,i,n,r,e[2],606105819,17),r=c(r,o,i,n,e[3],3250441966,22),n=c(n,r,o,i,e[4],4118548399,7),i=c(i,n,r,o,e[5],1200080426,12),o=c(o,i,n,r,e[6],2821735955,17),r=c(r,o,i,n,e[7],4249261313,22),n=c(n,r,o,i,e[8],1770035416,7),i=c(i,n,r,o,e[9],2336552879,12),o=c(o,i,n,r,e[10],4294925233,17),r=c(r,o,i,n,e[11],2304563134,22),n=c(n,r,o,i,e[12],1804603682,7),i=c(i,n,r,o,e[13],4254626195,12),o=c(o,i,n,r,e[14],2792965006,17),n=d(n,r=c(r,o,i,n,e[15],1236535329,22),o,i,e[1],4129170786,5),i=d(i,n,r,o,e[6],3225465664,9),o=d(o,i,n,r,e[11],643717713,14),r=d(r,o,i,n,e[0],3921069994,20),n=d(n,r,o,i,e[5],3593408605,5),i=d(i,n,r,o,e[10],38016083,9),o=d(o,i,n,r,e[15],3634488961,14),r=d(r,o,i,n,e[4],3889429448,20),n=d(n,r,o,i,e[9],568446438,5),i=d(i,n,r,o,e[14],3275163606,9),o=d(o,i,n,r,e[3],4107603335,14),r=d(r,o,i,n,e[8],1163531501,20),n=d(n,r,o,i,e[13],2850285829,5),i=d(i,n,r,o,e[2],4243563512,9),o=d(o,i,n,r,e[7],1735328473,14),n=u(n,r=d(r,o,i,n,e[12],2368359562,20),o,i,e[5],4294588738,4),i=u(i,n,r,o,e[8],2272392833,11),o=u(o,i,n,r,e[11],1839030562,16),r=u(r,o,i,n,e[14],4259657740,23),n=u(n,r,o,i,e[1],2763975236,4),i=u(i,n,r,o,e[4],1272893353,11),o=u(o,i,n,r,e[7],4139469664,16),r=u(r,o,i,n,e[10],3200236656,23),n=u(n,r,o,i,e[13],681279174,4),i=u(i,n,r,o,e[0],3936430074,11),o=u(o,i,n,r,e[3],3572445317,16),r=u(r,o,i,n,e[6],76029189,23),n=u(n,r,o,i,e[9],3654602809,4),i=u(i,n,r,o,e[12],3873151461,11),o=u(o,i,n,r,e[15],530742520,16),n=f(n,r=u(r,o,i,n,e[2],3299628645,23),o,i,e[0],4096336452,6),i=f(i,n,r,o,e[7],1126891415,10),o=f(o,i,n,r,e[14],2878612391,15),r=f(r,o,i,n,e[5],4237533241,21),n=f(n,r,o,i,e[12],1700485571,6),i=f(i,n,r,o,e[3],2399980690,10),o=f(o,i,n,r,e[10],4293915773,15),r=f(r,o,i,n,e[1],2240044497,21),n=f(n,r,o,i,e[8],1873313359,6),i=f(i,n,r,o,e[15],4264355552,10),o=f(o,i,n,r,e[6],2734768916,15),r=f(r,o,i,n,e[13],1309151649,21),n=f(n,r,o,i,e[4],4149444226,6),i=f(i,n,r,o,e[11],3174756917,10),o=f(o,i,n,r,e[2],718787259,15),r=f(r,o,i,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+o|0,this._d=this._d+i|0},l.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=l},function(e,t,n){e.exports=o;var r=n(123).EventEmitter;function o(){r.call(this)}n(4)(o,r),o.Readable=n(124),o.Writable=n(415),o.Duplex=n(416),o.Transform=n(417),o.PassThrough=n(418),o.Stream=o,o.prototype.pipe=function(e,t){var n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",l),n.on("close",s));var a=!1;function l(){a||(a=!0,e.end())}function s(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(d(),0===r.listenerCount(this,"error"))throw e}function d(){n.removeListener("data",o),e.removeListener("drain",i),n.removeListener("end",l),n.removeListener("close",s),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",d),n.removeListener("close",d),e.removeListener("close",d)}return n.on("error",c),e.on("error",c),n.on("end",d),n.on("close",d),e.on("close",d),e.emit("pipe",n),e}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,i="object"===("undefined"==typeof Reflect?"undefined":r(Reflect))?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};o=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var l=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function d(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(e))}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var o,i,a,l;if(d(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=u(e))>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,l=s,console&&console.warn&&console.warn(l)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=h.bind(r);return o.listener=n,r.wrapFn=o,o}function m(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(i=t[0]),i instanceof Error)throw i;var l=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw l.context=i,l}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)a(s,this,t);else{var c=s.length,d=v(s,c);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},function(e,t,n){(t=e.exports=n(177)).Stream=t,t.Readable=t,t.Writable=n(125),t.Duplex=n(52),t.Transform=n(180),t.PassThrough=n(414)},function(e,t,n){"use strict";(function(t,r,o){var i=n(86);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=b;var l,s=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:i.nextTick;b.WritableState=v;var c=Object.create(n(69));c.inherits=n(4);var d={deprecate:n(413)},u=n(178),f=n(5).Buffer,h=o.Uint8Array||function(){};var p,m=n(179);function g(){}function v(e,t){l=l||n(52),e=e||{};var r=t instanceof l;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,c=e.writableHighWaterMark,d=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(c||0===c)?c:d,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(T,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),T(e,t))}(e,n,r,t,o);else{var a=E(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||S(e,n),r?s(_,e,n,a,o):_(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function b(e){if(l=l||n(52),!(p.call(b,this)||this instanceof l))return new b(e);this._writableState=new v(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function y(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),T(e,t)}function S(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var l=0,s=!0;n;)o[l]=n,n.isBuf||(s=!1),n=n.next,l+=1;o.allBuffers=s,y(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,d=n.encoding,u=n.callback;if(y(e,t,!1,t.objectMode?1:c.length,c,d,u),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),T(e,t)}))}function T(e,t){var n=E(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(C,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(b,u),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:d.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===b&&(e&&e._writableState instanceof v)}})):p=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,l=!o.objectMode&&(r=e,f.isBuffer(r)||r instanceof h);return l&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(n=t,t=null),l?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=g),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(l||function(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,o,i){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n));return t}(t,r,o);r!==a&&(n=!0,o="buffer",r=a)}var l=t.objectMode?1:r.length;t.length+=l;var s=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,T(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(40),n(411).setImmediate,n(37))},function(e,t,n){"use strict";var r=n(5).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=c,t=4;break;case"utf8":this.fillLast=l,t=4;break;case"base64":this.text=d,this.end=u,t=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function l(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function d(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return o>0&&(e.lastNeed=o-1),o;if(--r=0)return o>0&&(e.lastNeed=o-2),o;if(--r=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";var r=n(16).Buffer,o=n(4),i=n(176),a=new Array(16),l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],s=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],d=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],u=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function h(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function m(e,t,n,r,o,i,a,l){return p(e+(t^n^r)+i+a|0,l)+o|0}function g(e,t,n,r,o,i,a,l){return p(e+(t&n|~t&r)+i+a|0,l)+o|0}function v(e,t,n,r,o,i,a,l){return p(e+((t|~n)^r)+i+a|0,l)+o|0}function b(e,t,n,r,o,i,a,l){return p(e+(t&r|n&~r)+i+a|0,l)+o|0}function y(e,t,n,r,o,i,a,l){return p(e+(t^(n|~r))+i+a|0,l)+o|0}o(h,i),h.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,o=0|this._c,i=0|this._d,h=0|this._e,_=0|this._a,S=0|this._b,E=0|this._c,C=0|this._d,T=0|this._e,A=0;A<80;A+=1){var O,w;A<16?(O=m(n,r,o,i,h,e[l[A]],u[0],c[A]),w=y(_,S,E,C,T,e[s[A]],f[0],d[A])):A<32?(O=g(n,r,o,i,h,e[l[A]],u[1],c[A]),w=b(_,S,E,C,T,e[s[A]],f[1],d[A])):A<48?(O=v(n,r,o,i,h,e[l[A]],u[2],c[A]),w=v(_,S,E,C,T,e[s[A]],f[2],d[A])):A<64?(O=b(n,r,o,i,h,e[l[A]],u[3],c[A]),w=g(_,S,E,C,T,e[s[A]],f[3],d[A])):(O=y(n,r,o,i,h,e[l[A]],u[4],c[A]),w=m(_,S,E,C,T,e[s[A]],f[4],d[A])),n=h,h=i,i=p(o,10),o=r,r=O,_=T,T=C,C=p(E,10),E=S,S=w}var N=this._b+o+C|0;this._b=this._c+i+T|0,this._c=this._d+h+_|0,this._d=this._e+n+S|0,this._e=this._a+r+E|0,this._a=N},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(419),t.sha1=n(420),t.sha224=n(421),t.sha256=n(181),t.sha384=n(422),t.sha512=n(182)},function(e,t,n){"use strict";var r=n(23);function o(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=o,o.prototype._init=function(){},o.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},o.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(o,n);return t+=this._buffer(e,t),o},o.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},o.prototype._pad=function(e,t){if(0===t)return!1;for(;t=0||!n.umod(e.prime1)||!n.umod(e.prime2);)n=new r(o(t));return n}e.exports=i,i.getr=a}).call(this,n(16).Buffer)},function(e,t,n){"use strict";var r=t;r.version=n(448).version,r.utils=n(24),r.rand=n(132),r.curve=n(200),r.curves=n(135),r.ec=n(459),r.eddsa=n(463)},function(e,t,n){"use strict";var r,o=t,i=n(136),a=n(200),l=n(24).assert;function s(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,l(this.g.validate(),"Invalid curve"),l(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(o,e,{configurable:!0,enumerable:!0,get:function(){var n=new s(t);return Object.defineProperty(o,e,{configurable:!0,enumerable:!0,value:n}),n}})}o.PresetCurve=s,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(458)}catch(e){r=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(e,t,n){var r=t;r.utils=n(33),r.common=n(71),r.sha=n(452),r.ripemd=n(456),r.hmac=n(457),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t,n){var r=n(485);function o(e){return e=e.replace(//g,">")}var i={xssFilter:function(){if(void 0===r)return null;var e=decodeURIComponent(location.pathname),t=e.lastIndexOf("/")+1,n=e.lastIndexOf(".");e=n>0?e.substring(t,n)+"_files":"";var i=/^((file|wiz(note)?):\/\/)|(index_files\/)|(data:image\/(?!svg))/,a=new RegExp("^("+"#".escapeRegex()+(e?"|"+e.escapeRegex():"")+")","i"),l=/^(id|class|name|style|data|width|height)/i,s=new r.FilterXSS({onIgnoreTag:function(e,t,n){if(/script/gi.test(e))return r.escapeAttrValue(t);if(n.isClosing)return"";var o=r.parseAttr(t,(function(t,n){return n=s.options.safeAttrValue(e,t,n,s),/^on/i.test(t)?"":n?t+'="'+n+'"':t}));return o=/^"},onIgnoreTagAttr:function(e,t,n){return n=o(n),!/^object$/i.test(e)&&n&&l.test(t)?t+'="'+n+'"':""},safeAttrValue:function(e,t,n){if(n=o(n),/^meta$/i.test(e)&&/^http-equiv$/i.test(t)&&/refresh/i.test(n))return"";if("href"===t||"src"===t){var l=window.location.protocol;if(/^https?:/.test(l)||(l="http:"),n=n.replace(/^\/\//,l+"//"),i.test(n)||a.test(n))return r.escapeAttrValue(n)}return r.safeAttrValue(e,t,n)}});return s.options.whiteList.iframe=["src","scrolling"],s.options.whiteList.button=["title","type","value"],s.options.whiteList.object=[],s.options.whiteList.noscript=[],function(e){return e=(e=s.process(e)).replace(/(]*)?>)(.*)(<\/style>)/gi,(function(e,t,n,r,o){return t+r.replace(/>/gi,">")+o}))}}()};e.exports=i},function(e,t,n){var r=n(213),o=n(486);for(var i in(t=e.exports=function(e,t){return new o(t).process(e)}).FilterCSS=o,r)t[i]=r[i];"undefined"!=typeof window&&(window.filterCSS=e.exports)},function(e,t){e.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n0?l.list:[l.startDom])}for(var g=0,v=l.length;g=0;o--)r[o]!==n&&n||r.splice(o,1);0===r.length&&e.env.event.remove(s.EVENT.ON_SELECTION_CHANGE,e._onSelectionChange)}}},e.startTrackEvent=function(t,n){e._eventTrackHandler[n]||(e._eventTrackHandler[n]=function(t){e.env.client.sendCmdToWizClient(s.CLIENT_EVENT.WizEditorTrackEvent,{id:n,e:e._eventStringify(t)})},e.env.body.addEventListener(t,e._eventTrackHandler[n]))},e.stopTrackEvent=function(t,n){e._eventTrackHandler[n]&&(e.env.body.removeEventListener(t,e._eventTrackHandler[n]),delete e._eventTrackHandler[n])},e.triggerListener=function(t,n){var r=e._editorListener[t];if(r)for(var o=0,a=r.length;os;)r(l,n=t[s++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var r=n(15),o=n(8),i=n(45);e.exports=n(14)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),l=a.length,s=0;l>s;)r.f(e,n=a[s++],t[n]);return e}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(22),i=n(48).f,a={}.toString,l="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return l&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(e){return l.slice()}}(e):i(o(e))}},function(e,t,n){"use strict";var r=n(14),o=n(45),i=n(76),a=n(65),l=n(17),s=n(64),c=Object.assign;e.exports=!c||n(7)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r}))?function(e,t){for(var n=l(e),c=arguments.length,d=1,u=i.f,f=a.f;c>d;)for(var h,p=s(arguments[d++]),m=u?o(p).concat(u(p)):o(p),g=m.length,v=0;g>v;)h=m[v++],r&&!f.call(p,h)||(n[h]=p[h]);return n}:c},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var r=n(28),o=n(9),i=n(149),a=[].slice,l={},s=function(e,t,n){if(!(t in l)){for(var r=[],o=0;o>>0||(a.test(n)?16:10))}:r},function(e,t,n){var r=n(6).parseFloat,o=n(56).trim;e.exports=1/r(n(98)+"-0")!=-1/0?function(e){var t=o(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(34);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(9),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){"use strict";var r=n(47),o=n(42),i=n(55),a={};n(21)(a,n(10)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(8);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(313);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(28),o=n(17),i=n(64),a=n(11);e.exports=function(e,t,n,l,s){r(t);var c=o(e),d=i(c),u=a(c.length),f=s?u-1:0,h=s?-1:1;if(n<2)for(;;){if(f in d){l=d[f],f+=h;break}if(f+=h,s?f<0:u<=f)throw TypeError("Reduce of empty array with no initial value")}for(;s?f>=0:u>f;f+=h)f in d&&(l=t(l,d[f],f,c));return l}},function(e,t,n){"use strict";var r=n(17),o=n(46),i=n(11);e.exports=[].copyWithin||function(e,t){var n=r(this),a=i(n.length),l=o(e,a),s=o(t,a),c=arguments.length>2?arguments[2]:void 0,d=Math.min((void 0===c?a:o(c,a))-s,a-l),u=1;for(s0;)s in n?n[l]=n[s]:delete n[l],l+=u,s+=u;return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var r=n(113);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(e,t,n){n(14)&&"g"!=/./g.flags&&n(15).f(RegExp.prototype,"flags",{configurable:!0,get:n(79)})},function(e,t,n){"use strict";var r,o,i,a,l=n(44),s=n(6),c=n(27),d=n(66),u=n(0),f=n(9),h=n(28),p=n(59),m=n(82),g=n(67),v=n(115).set,b=n(333)(),y=n(164),_=n(334),S=n(83),E=n(165),C=s.TypeError,T=s.process,A=T&&T.versions,O=A&&A.v8||"",w=s.Promise,N="process"==d(T),L=function(){},I=o=y.f,U=!!function(){try{var e=w.resolve(1),t=(e.constructor={})[n(10)("species")]=function(e){e(L,L)};return(N||"function"==typeof PromiseRejectionEvent)&&e.then(L)instanceof t&&0!==O.indexOf("6.6")&&-1===S.indexOf("Chrome/66")}catch(e){}}(),D=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},M=function(e,t){if(!e._n){e._n=!0;var n=e._c;b((function(){for(var r=e._v,o=1==e._s,i=0,a=function(t){var n,i,a,l=o?t.ok:t.fail,s=t.resolve,c=t.reject,d=t.domain;try{l?(o||(2==e._h&&k(e),e._h=1),!0===l?n=r:(d&&d.enter(),n=l(r),d&&(d.exit(),a=!0)),n===t.promise?c(C("Promise-chain cycle")):(i=D(n))?i.call(n,s,c):s(n)):c(r)}catch(e){d&&!a&&d.exit(),c(e)}};n.length>i;)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&x(e)}))}},x=function(e){v.call(s,(function(){var t,n,r,o=e._v,i=R(e);if(i&&(t=_((function(){N?T.emit("unhandledRejection",o,e):(n=s.onunhandledrejection)?n({promise:e,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)})),e._h=N||R(e)?2:1),e._a=void 0,i&&t.e)throw t.v}))},R=function(e){return 1!==e._h&&0===(e._a||e._c).length},k=function(e){v.call(s,(function(){var t;N?T.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})}))},P=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),M(t,!0))},B=function e(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw C("Promise can't be resolved itself");(n=D(t))?b((function(){var o={_w:r,_d:!1};try{n.call(t,c(e,o,1),c(P,o,1))}catch(e){P.call(o,e)}})):(r._v=t,r._s=1,M(r,!1))}catch(e){P.call({_w:r,_d:!1},e)}}};U||(w=function(e){p(this,w,"Promise","_h"),h(e),r.call(this);try{e(c(B,this,1),c(P,this,1))}catch(e){P.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(60)(w.prototype,{then:function(e,t){var n=I(g(this,w));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=N?T.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=c(B,e,1),this.reject=c(P,e,1)},y.f=I=function(e){return e===w||e===a?new i(e):o(e)}),u(u.G+u.W+u.F*!U,{Promise:w}),n(55)(w,"Promise"),n(58)("Promise"),a=n(12).Promise,u(u.S+u.F*!U,"Promise",{reject:function(e){var t=I(this);return(0,t.reject)(e),t.promise}}),u(u.S+u.F*(l||!U),"Promise",{resolve:function(e){return E(l&&this===a?w:this,e)}}),u(u.S+u.F*!(U&&n(78)((function(e){w.all(e).catch(L)}))),"Promise",{all:function(e){var t=this,n=I(t),r=n.resolve,o=n.reject,i=_((function(){var n=[],i=0,a=1;m(e,!1,(function(e){var l=i++,s=!1;n.push(void 0),a++,t.resolve(e).then((function(e){s||(s=!0,n[l]=e,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=I(t),r=n.reject,o=_((function(){m(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(e,t,n){"use strict";var r=n(28);function o(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new o(e)}},function(e,t,n){var r=n(8),o=n(9),i=n(164);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(15).f,o=n(47),i=n(60),a=n(27),l=n(59),s=n(82),c=n(104),d=n(160),u=n(58),f=n(14),h=n(39).fastKey,p=n(51),m=f?"_s":"size",g=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var d=e((function(e,r){l(e,d,t,"_i"),e._t=t,e._i=o(null),e._f=void 0,e._l=void 0,e[m]=0,null!=r&&s(r,n,e[c],e)}));return i(d.prototype,{clear:function(){for(var e=p(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=p(this,t),r=g(n,e);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[m]--}return!!r},forEach:function(e){p(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(p(this,t),e)}}),f&&r(d.prototype,"size",{get:function(){return p(this,t)[m]}}),d},def:function(e,t,n){var r,o,i=g(e,t);return i?i.v=n:(e._l=i={i:o=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[m]++,"F"!==o&&(e._i[o]=i)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,(function(e,n){this._t=p(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?d(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,d(1))}),n?"entries":"values",!n,!0),u(t)}}},function(e,t,n){"use strict";var r=n(60),o=n(39).getWeak,i=n(8),a=n(9),l=n(59),s=n(82),c=n(32),d=n(20),u=n(51),f=c(5),h=c(6),p=0,m=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},v=function(e,t){return f(e.a,(function(e){return e[0]===t}))};g.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var n=v(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=h(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var c=e((function(e,r){l(e,c,t,"_i"),e._t=t,e._i=p++,e._l=void 0,null!=r&&s(r,n,e[i],e)}));return r(c.prototype,{delete:function(e){if(!a(e))return!1;var n=o(e);return!0===n?m(u(this,t)).delete(e):n&&d(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=o(e);return!0===n?m(u(this,t)).has(e):n&&d(n,this._i)}}),c},def:function(e,t,n){var r=o(i(t),!0);return!0===r?m(e).set(t,n):r[e._i]=n,e},ufstore:m}},function(e,t,n){var r=n(29),o=n(11);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){var r=n(48),o=n(76),i=n(8),a=n(6).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(11),o=n(100),i=n(35);e.exports=function(e,t,n,a){var l=String(i(e)),s=l.length,c=void 0===n?" ":String(n),d=r(t);if(d<=s||""==c)return l;var u=d-s,f=o.call(c,Math.ceil(u/c.length));return f.length>u&&(f=f.slice(0,u)),a?f+l:l+f}},function(e,t,n){var r=n(14),o=n(45),i=n(22),a=n(65).f;e.exports=function(e){return function(t){for(var n,l=i(t),s=o(l),c=s.length,d=0,u=[];c>d;)n=s[d++],r&&!a.call(l,n)||u.push(e?[n,l[n]]:l[n]);return u}}},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(module,exports,__webpack_require__){(function(module){var __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a,b){var l,c=eval("this"),d=256,g="random",h=b.pow(d,6),i=b.pow(2,52),j=2*i,k=d-1;function m(e,t,r){var u=[],f=q(function e(t,n){var r,o=[],i=_typeof(t);if(n&&"object"==i)for(r in t)try{o.push(e(t[r],n-1))}catch(e){}return o.length?o:"string"==i?t:t+"\0"}((t=1==t?{entropy:!0}:t||{}).entropy?[e,s(a)]:null==e?function(){try{var e;return l&&(e=l.randomBytes)?e=e(d):(e=new Uint8Array(d),(c.crypto||c.msCrypto).getRandomValues(e)),s(e)}catch(e){var t=c.navigator,n=t&&t.plugins;return[+new Date,c,n,c.screen,s(a)]}}():e,3),u),p=new n(u),m=function(){for(var e=p.g(6),t=h,n=0;e>>=1;return(e+n)/t};return m.int32=function(){return 0|p.g(4)},m.quick=function(){return p.g(4)/4294967296},m.double=m,q(s(p.S),a),(t.pass||r||function(e,t,n,r){return r&&(r.S&&o(r,p),e.state=function(){return o(p,{})}),n?(b[g]=e,t):e})(m,f,"global"in t?t.global:this==b,t.state)}function n(e){var t,n=e.length,r=this,o=0,i=r.i=r.j=0,a=r.S=[];for(n||(e=[n++]);o=this._blockSize;){for(var i=this._blockOffset;i0;++a)this._length[a]+=l,(l=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*l);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=i},function(e,t,n){"use strict";(function(t,r){var o=n(86);e.exports=y;var i,a=n(175);y.ReadableState=b;n(123).EventEmitter;var l=function(e,t){return e.listeners(t).length},s=n(178),c=n(5).Buffer,d=t.Uint8Array||function(){};var u=Object.create(n(69));u.inherits=n(4);var f=n(408),h=void 0;h=f&&f.debuglog?f.debuglog("stream"):function(){};var p,m=n(409),g=n(179);u.inherits(y,s);var v=["error","close","destroy","pause","resume"];function b(e,t){e=e||{};var r=t instanceof(i=i||n(52));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(a||0===a)?a:l,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(126).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(i=i||n(52),!(this instanceof y))return new y(e);this._readableState=new b(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function _(e,t,n,r,o){var i,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,C(e)}(e,a)):(o||(i=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof d||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),i?e.emit("error",i):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):S(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?S(e,a,t,!1):A(e,a)):S(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(T,e):T(e))}function T(e){h("emit readable"),e.emit("readable"),L(e)}function A(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(O,e,t))}function O(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;ei.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0===(e-=a)){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),0===(e-=a)){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function U(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(D,t,e))}function D(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function M(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):C(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&U(this),null;var r,o=t.needReadable;return h("need readable",o),(0===t.length||t.length-e0?I(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,t);var s=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?d:y;function c(t,r){h("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),e.removeListener("close",v),e.removeListener("finish",b),e.removeListener("drain",u),e.removeListener("error",g),e.removeListener("unpipe",c),n.removeListener("end",d),n.removeListener("end",y),n.removeListener("data",m),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function d(){h("onend"),e.end()}i.endEmitted?o.nextTick(s):n.once("end",s),e.on("unpipe",c);var u=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&l(e,"data")&&(t.flowing=!0,L(e))}}(n);e.on("drain",u);var f=!1;var p=!1;function m(t){h("ondata"),p=!1,!1!==e.write(t)||p||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==M(i.pipes,e))&&!f&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function g(t){h("onerror",t),y(),e.removeListener("error",g),0===l(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",b),y()}function b(){h("onfinish"),e.removeListener("close",v),y()}function y(){h("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",g),e.once("close",v),e.once("finish",b),e.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(s,o),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},s.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,l=0|this._d,s=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,v=0;v<16;++v)n[v]=e.readInt32BE(4*v);for(;v<64;++v)n[v]=0|(((t=n[v-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[v-7]+h(n[v-15])+n[v-16];for(var b=0;b<64;++b){var y=g+f(s)+c(s,p,m)+a[b]+n[b]|0,_=u(r)+d(r,o,i)|0;g=m,m=p,p=s,s=l+y|0,l=i,i=o,o=r,r=y+_|0}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=l+this._d|0,this._e=s+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},s.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=s},function(e,t,n){var r=n(4),o=n(62),i=n(5).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],l=new Array(160);function s(){this.init(),this._w=l,o.call(this,128,112)}function c(e,t,n){return n^e&(t^n)}function d(e,t,n){return e&t|n&(e|t)}function u(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return e>>>0>>0?1:0}r(s,o),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},s.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,o=0|this._ch,i=0|this._dh,l=0|this._eh,s=0|this._fh,b=0|this._gh,y=0|this._hh,_=0|this._al,S=0|this._bl,E=0|this._cl,C=0|this._dl,T=0|this._el,A=0|this._fl,O=0|this._gl,w=0|this._hl,N=0;N<32;N+=2)t[N]=e.readInt32BE(4*N),t[N+1]=e.readInt32BE(4*N+4);for(;N<160;N+=2){var L=t[N-30],I=t[N-30+1],U=h(L,I),D=p(I,L),M=m(L=t[N-4],I=t[N-4+1]),x=g(I,L),R=t[N-14],k=t[N-14+1],P=t[N-32],B=t[N-32+1],z=D+k|0,F=U+R+v(z,D)|0;F=(F=F+M+v(z=z+x|0,x)|0)+P+v(z=z+B|0,B)|0,t[N]=F,t[N+1]=z}for(var j=0;j<160;j+=2){F=t[j],z=t[j+1];var q=d(n,r,o),W=d(_,S,E),H=u(n,_),Y=u(_,n),G=f(l,T),V=f(T,l),Z=a[j],K=a[j+1],X=c(l,s,b),$=c(T,A,O),J=w+V|0,Q=y+G+v(J,w)|0;Q=(Q=(Q=Q+X+v(J=J+$|0,$)|0)+Z+v(J=J+K|0,K)|0)+F+v(J=J+z|0,z)|0;var ee=Y+W|0,te=H+q+v(ee,Y)|0;y=b,w=O,b=s,O=A,s=l,A=T,l=i+Q+v(T=C+J|0,C)|0,i=o,C=E,o=r,E=S,r=n,S=_,n=Q+te+v(_=J+ee|0,J)|0}this._al=this._al+_|0,this._bl=this._bl+S|0,this._cl=this._cl+E|0,this._dl=this._dl+C|0,this._el=this._el+T|0,this._fl=this._fl+A|0,this._gl=this._gl+O|0,this._hl=this._hl+w|0,this._ah=this._ah+n+v(this._al,_)|0,this._bh=this._bh+r+v(this._bl,S)|0,this._ch=this._ch+o+v(this._cl,E)|0,this._dh=this._dh+i+v(this._dl,C)|0,this._eh=this._eh+l+v(this._el,T)|0,this._fh=this._fh+s+v(this._fl,A)|0,this._gh=this._gh+b+v(this._gl,O)|0,this._hh=this._hh+y+v(this._hl,w)|0},s.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=s},function(e,t,n){"use strict";var r=n(4),o=n(423),i=n(41),a=n(5).Buffer,l=n(184),s=n(127),c=n(128),d=a.alloc(128);function u(e,t){i.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var n="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>n)?t=("rmd160"===e?new s:c(e)).update(t).digest():t.lengthn||i!=i)throw new TypeError("Bad key length")}}).call(this,n(16).Buffer)},function(e,t,n){(function(t){var n;t.browser?n="utf-8":n=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=n}).call(this,n(40))},function(e,t,n){var r=n(184),o=n(127),i=n(128),a=n(187),l=n(188),s=n(5).Buffer,c=s.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function u(e,t,n){var a=function(e){function t(t){return i(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new o).update(e).digest()}:"md5"===e?r:t}(e),l="sha512"===e||"sha384"===e?128:64;t.length>l?t=a(t):t.length>>0},t.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,r){for(var o=0,i=0,a=6;a>=0;a-=2){for(var l=0;l<=24;l+=8)o<<=1,o|=t>>>l+a&1;for(l=0;l<=24;l+=8)o<<=1,o|=e>>>l+a&1}for(a=6;a>=0;a-=2){for(l=1;l<=25;l+=8)i<<=1,i|=t>>>l+a&1;for(l=1;l<=25;l+=8)i<<=1,i|=e>>>l+a&1}n[r+0]=o>>>0,n[r+1]=i>>>0},t.rip=function(e,t,n,r){for(var o=0,i=0,a=0;a<4;a++)for(var l=24;l>=0;l-=8)o<<=1,o|=t>>>l+a&1,o<<=1,o|=e>>>l+a&1;for(a=4;a<8;a++)for(l=24;l>=0;l-=8)i<<=1,i|=t>>>l+a&1,i<<=1,i|=e>>>l+a&1;n[r+0]=o>>>0,n[r+1]=i>>>0},t.pc1=function(e,t,n,r){for(var o=0,i=0,a=7;a>=5;a--){for(var l=0;l<=24;l+=8)o<<=1,o|=t>>l+a&1;for(l=0;l<=24;l+=8)o<<=1,o|=e>>l+a&1}for(l=0;l<=24;l+=8)o<<=1,o|=t>>l+a&1;for(a=1;a<=3;a++){for(l=0;l<=24;l+=8)i<<=1,i|=t>>l+a&1;for(l=0;l<=24;l+=8)i<<=1,i|=e>>l+a&1}for(l=0;l<=24;l+=8)i<<=1,i|=e>>l+a&1;n[r+0]=o>>>0,n[r+1]=i>>>0},t.r28shl=function(e,t){return e<>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,o){for(var i=0,a=0,l=r.length>>>1,s=0;s>>r[s]&1;for(s=l;s>>r[s]&1;n[o+0]=i>>>0,n[o+1]=a>>>0},t.expand=function(e,t,n){var r=0,o=0;r=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)r<<=6,r|=e>>>i&63;for(i=11;i>=3;i-=4)o|=e>>>i&63,o<<=6;o|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=o>>>0};var o=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var n=0,r=0;r<4;r++){n<<=4,n|=o[64*r+(e>>>18-6*r&63)]}for(r=0;r<4;r++){n<<=4,n|=o[256+64*r+(t>>>18-6*r&63)]}return n>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,n=0;n>>i[n]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.length>>1];n=i.r28shl(n,l),o=i.r28shl(o,l),i.pc2(n,o,e.keys,a)}},s.prototype._update=function(e,t,n,r){var o=this._desState,a=i.readUInt32BE(e,t),l=i.readUInt32BE(e,t+4);i.ip(a,l,o.tmp,0),a=o.tmp[0],l=o.tmp[1],"encrypt"===this.type?this._encrypt(o,a,l,o.tmp,0):this._decrypt(o,a,l,o.tmp,0),a=o.tmp[0],l=o.tmp[1],i.writeUInt32BE(n,a,r),i.writeUInt32BE(n,l,r+4)},s.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r>>0,a=f}i.rip(l,a,r,o)},s.prototype._decrypt=function(e,t,n,r,o){for(var a=n,l=t,s=e.keys.length-2;s>=0;s-=2){var c=e.keys[s],d=e.keys[s+1];i.expand(a,e.tmp,0),c^=e.tmp[0],d^=e.tmp[1];var u=i.substitute(c,d),f=a;a=(l^i.permute(u))>>>0,l=f}i.rip(a,l,r,o)}},function(e,t,n){var r=n(70),o=n(5).Buffer,i=n(193);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return i(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),i=e._cache.length;e._cache=o.concat([e._cache,o.allocUnsafe(16*n)]);for(var l=0;le;)n.ishrn(1);if(n.isEven()&&n.iadd(l),n.testn(1)||n.iadd(s),t.cmp(s)){if(!t.cmp(c))for(;n.mod(d).cmp(u);)n.iadd(h)}else for(;n.mod(i).cmp(f);)n.iadd(h);if(g(p=n.shrn(1))&&g(n)&&v(p)&&v(n)&&a.test(p)&&a.test(n))return n}}},function(e,t,n){var r=n(13),o=n(132);function i(e){this.rand=e||new o.Rand}e.exports=i,i.create=function(e){return new i(e)},i.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var o=new r(this.rand.generate(n))}while(o.cmp(e)>=0);return o},i.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},i.prototype.test=function(e,t,n){var o=e.bitLength(),i=r.mont(e),a=new r(1).toRed(i);t||(t=Math.max(1,o/48|0));for(var l=e.subn(1),s=0;!l.testn(s);s++);for(var c=e.shrn(s),d=l.toRed(i);t>0;t--){var u=this._randrange(new r(2),l);n&&n(u);var f=u.toRed(i).redPow(c);if(0!==f.cmp(a)&&0!==f.cmp(d)){for(var h=1;h0;t--){var d=this._randrange(new r(2),a),u=e.gcd(d);if(0!==u.cmpn(1))return u;var f=d.toRed(o).redPow(s);if(0!==f.cmp(i)&&0!==f.cmp(c)){for(var h=1;h>8,a=255&o;i?n.push(i,a):n.push(a)}return n},r.zero2=o,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},function(e,t,n){"use strict";var r=t;r.base=n(89),r.short=n(449),r.mont=n(450),r.edwards=n(451)},function(e,t,n){"use strict";var r=n(33).rotr32;function o(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?o(t,n,r):1===e||3===e?a(t,n,r):2===e?i(t,n,r):void 0},t.ch32=o,t.maj32=i,t.p32=a,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){"use strict";var r=n(33),o=n(71),i=n(201),a=n(23),l=r.sum32,s=r.sum32_4,c=r.sum32_5,d=i.ch32,u=i.maj32,f=i.s0_256,h=i.s1_256,p=i.g0_256,m=i.g1_256,g=o.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(b,g),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r>6],o=0==(32&n);if(31==(31&n)){var i=n;for(n=0;128==(128&i);){if(i=e.readUInt8(t),e.isError(i))return i;n<<=7,n|=127&i}}else n&=31;return{cls:r,primitive:o,tag:n,tagStr:l.tag[n]}}function u(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;var o=127&r;if(o>4)return e.error("length octect is too long");r=0;for(var i=0;i=31)return r.error("Multi-octet tag encoding unsupported");t||(o|=32);return o|=l.tagClassByName[n||"universal"]<<6}(e,t,n,this.reporter);if(r.length<128)return(i=new o(2))[0]=a,i[1]=r.length,this._createEncoderBuffer([i,r]);for(var s=1,c=r.length;c>=256;c>>=8)s++;(i=new o(2+s))[0]=a,i[1]=128|s;c=1+s;for(var d=r.length;d>0;c--,d>>=8)i[c]=255&d;return this._createEncoderBuffer([i,r])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=new o(2*e.length),r=0;r=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var i=0;for(r=0;r=128;a>>=7)i++}var l=new o(i),s=l.length-1;for(r=e.length-1;r>=0;r--){a=e[r];for(l[s--]=127&a;(a>>=7)>0;)l[s--]=128|127&a}return this._createEncoderBuffer(l)},c.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[d(r.getFullYear()),d(r.getUTCMonth()+1),d(r.getUTCDate()),d(r.getUTCHours()),d(r.getUTCMinutes()),d(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[d(r.getFullYear()%100),d(r.getUTCMonth()+1),d(r.getUTCDate()),d(r.getUTCHours()),d(r.getUTCMinutes()),d(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!o.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new o(n)}if(o.isBuffer(e)){var r=e.length;0===e.length&&r++;var i=new o(r);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);r=1;for(var a=e;a>=256;a>>=8)r++;for(a=(i=new Array(r)).length-1;a>=0;a--)i[a]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new o(i))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,n){var r,o=this._baseState;if(null===o.default)return!1;var i=e.join();if(void 0===o.defaultBuffer&&(o.defaultBuffer=this._encodeValue(o.default,t,n).join()),i.length!==o.defaultBuffer.length)return!1;for(r=0;r/g,u=/"/g,f=/"/g,h=/&#([a-zA-Z0-9]*);?/gim,p=/:?/gim,m=/&newline;?/gim,g=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,v=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,b=/u\s*r\s*l\s*\(.*/gi;function y(e){return e.replace(u,""")}function _(e){return e.replace(f,'"')}function S(e){return e.replace(h,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function E(e){return e.replace(p,":").replace(m," ")}function C(e){for(var t="",n=0,r=e.length;n/g;t.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],strong:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","loop","preload","src","height","width"]},t.getDefaultWhiteList=a,t.onTag=function(e,t,n){},t.onIgnoreTag=function(e,t,n){},t.onTagAttr=function(e,t,n){},t.onIgnoreTagAttr=function(e,t,n){},t.safeAttrValue=function(e,t,n,r){if(n=T(n),"href"===t||"src"===t){if("#"===(n=i.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(g.lastIndex=0,g.test(n))return""}else if("style"===t){if(v.lastIndex=0,v.test(n))return"";if(b.lastIndex=0,b.test(n)&&(g.lastIndex=0,g.test(n)))return"";!1!==r&&(n=(r=r||l).process(n))}return n=A(n)},t.escapeHtml=s,t.escapeQuote=y,t.unescapeQuote=_,t.escapeHtmlEntities=S,t.escapeDangerHtml5Entities=E,t.clearNonPrintableCharacter=C,t.friendlyAttrValue=T,t.escapeAttrValue=A,t.onIgnoreTagStripAll=function(){return""},t.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),r=[],o=!1;return{onIgnoreTag:function(a,l,s){if(function(t){return!!n||-1!==i.indexOf(e,t)}(a)){if(s.isClosing){var c="[/removed]",d=s.position+c.length;return r.push([!1!==o?o:s.position,d]),o=!1,c}return o||(o=s.position),"[removed]"}return t(a,l,s)},remove:function(e){var t="",n=0;return i.forEach(r,(function(r){t+=e.slice(n,r[0]),n=r[1]})),t+=e.slice(n)}}},t.stripCommentTag=function(e){return e.replace(O,"")},t.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},t.cssFilter=l,t.getDefaultCSSWhiteList=o},function(e,t){function n(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var r=/javascript\s*\:/gim;t.whiteList=n(),t.getDefaultWhiteList=n,t.onAttr=function(e,t,n){},t.onIgnoreAttr=function(e,t,n){},t.safeAttrValue=function(e,t){return r.test(t)?"":t}},function(e,t){e.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function c(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}t.parseTag=function(e,t,n){var r="",a=0,l=!1,s=!1,c=0,d=e.length,u="",f="";for(c=0;c"===h){r+=n(e.slice(a,l)),u=o(f=e.slice(l,c+1)),r+=t(l,r.length,u,f,i(f)),a=c+1,l=!1;continue}if(('"'===h||"'"===h)&&"="===e.charAt(c-1)){s=h;continue}}else if(h===s){s=!1;continue}}return aa",e.style.opacity="0",f.appendChild(e);var t=e.innerText;if(b.remove(e),!t)for(var n,r,o,i=c.getElementsByTagName("math");i.length>0;)r=(n=i[0]).parentNode,(o=c.createElement("span")).innerText=n.textContent,r.insertBefore(o,n),r.removeChild(n)}();for(var t=e.querySelectorAll("br"),n=t.length-1;n>=0;n--){var r=t[n];if(r.previousSibling&&!r.nextSibling)b.remove(r);else if(!r.previousSibling&&!r.nextSibling){var i=b.getBlockParent(r,!1);b.isEmptyDom(i)||b.remove(r)}}var a=e.innerText;return a?"\n"===a.charAt(a.length-1)&&(a=a.substr(0,a.length-1)):a=b.getInnerText(e),a=(a=a.replace(String.fromCharCode(65279),"")).replace(o.SPACE_CHAR_REG," ")},markdownConvert:function(){var e,r,i,s,c,d,u=/(\$\$?|\\(?:begin|end){[a-z]*\*?}|\\[\\{}$]|[{}]|(?:\n\s*)+|@@\d+@@)/i,h=!1,p=n.$(f);p.addClass(o.CLASS.MARKDOWN_BODY);var g=new a.Converter({nonAsciiLetters:!0,asteriskIntraWordEmphasis:!0,imgSrcFilter:function(e){return m.options.reader.markdownPlugIn.imgSrcFilter?m.options.reader.markdownPlugIn.imgSrcFilter(e):e},customBlockGamut:function(e){return m.options.reader.markdownPlugIn.customBlockGamut?m.options.reader.markdownPlugIn.customBlockGamut(e):e}}),v=function(t,n){var o=s.slice(t,n+1).join("");if(!o.match(/`/i)){for(o=o.replace(/&/g,"&").replace(//g,">");n>t;)s[n]="",n--;s[t]="@@"+c.length+"@@",c.push(o)}e=r=i=null};try{var b;E?b=S:(S=f.innerHTML,b=t.getMarkdownSrc(f)),b=T.tocReady(b);var y=b.match(/^```/gm);y=y?y.length/2:0,l.init(g,{extensions:"all",highlighter:y>50?"prettify":"codeMirror"});var C=b.replace(/\n/g,"\\n").replace(/\r\n?/g,"\n").replace(/```(.*\n)+?```/gm,"");(_=/(\$\$?)[^$\n]+\1/.test(C))&&(b=function(t){var n;e=r=i=null,c=[];for(var o=1,a=(s=t.replace(/\r\n?/g,"\n").split(u)).length;o]*>(.|\r?\n)*<\/textarea>/gi,(function(e){return e.replace(t,"$1")}))},tocRender:function(){var e={},t=[],r=6;n.$("h1,h2,h3,h4,h5,h6",f).each((function(e,t){var n=parseInt(t.tagName.charAt(1),10);r=Math.min(r,n)})),n.$("h1,h2,h3,h4,h5,h6",f).each((function(o,i){var a=(i.textContent||i.innerText).replace(/[()<> '"\r\n]/g,"");e[a]?(++e[a],a+="-"+e[a]):e[a]=1;var l=parseInt(i.tagName.charAt(1),10),s=n.$(i);s.attr("id",a),t.push(''+s.text()+"")})),t='
    '+t.join("
    ")+"
    ",n.$("a",f).each((function(e,r){"#wizToc"===(r=n.$(r)).attr("href")&&(r.before(t),r.css("display","none"))}))},flowRender:function(){n.flowchart&&n.$(".language-flow",f).parents("pre").each((function(e,t){var r="wiz-flow-"+e,o=n.$("textarea",t).val();if(o.length>0)try{t.style.display="none";var i=n.flowchart.parse(o),a=c.createElement("div");if(a.id=r,t.parentNode.insertBefore(a,t),i.drawSVG(r),m.client.type.isPhone){var l=n.$("svg",a);l.attr("width")&&l.css({"max-width":l.attr("width")}).attr({height:null,width:"95%"})}}catch(e){console.error(e)}}))},sequenceRender:function(){if(n.Diagram){var e=function(e){e.each((function(e,t){var r="wiz-sequence-"+e,o=n.$("textarea",t).val();if(o.length>0)try{t.style.display="none";var i=n.Diagram.parse(o),a=c.createElement("div");if(a.id=r,t.parentNode.insertBefore(a,t),i.drawSVG(r,{theme:"simple"}),m.client.type.isPhone){var l=n.$("svg",a);l.attr("width")&&(b.attr(l.get(0),{viewBox:"0 0 "+l.attr("width")+" "+l.attr("height")}),l.css({"max-width":l.attr("width")}).attr({preserveAspectRatio:"xMidYMid meet",height:null,width:"95%"}))}}catch(e){console.error(e)}}))},t=n.$(".language-sequence",f).parents("pre");e(t),e(t=n.$(".language-seq",f).parents("pre"))}},xssFilter:d.xssFilter};this.getMarkdownSrcForEditor=function(e){var n,r;v&&v.saveToText(),e=e||{},r=m.readonly?S.replace(/\n/g,"

    "):m.body.innerHTML;var i=m.doc.createElement("div");e.escapeHtml&&(r=r.replace(/&/g,"&")),i.innerHTML=r,b.html2Markdown(i,{}),b.css(i,{opacity:0,position:"absolute",top:"-9999px",left:"-9999px",width:"1px",height:"1px",overflow:"hidden"}),m.body.appendChild(i),v&&v.clearCodeForMarkdown(i);for(var a=i.querySelectorAll(o.TAG.TMP_TAG),l=a.length-1;l>=0;l--)b.remove(a[l]);return n=t.getMarkdownSrc(i),n=b.restoreImgPath(n),m.body.removeChild(i),i=null,n},this.getMarkdownSrc=function(e){var t=e||f;return T.markdownPreProcess(t),T.getBodyTxt(t)},this.do=function(e,t){e.container&&(f=e.container),"string"==typeof e.markdownSrc?(S=e.markdownSrc,E=!0):(S="",E=!1);!function(e){u.addCallback(c,e),u.getLoading(c)||(n.$&&n.Diagram&&n.flowchart&&n.prettyPrint?u.callback(c):(u.setLoading(c,!0),s.loadJs(c,s.getDependencyFiles(m.dependency,"js","markdown"),(function(){u.setLoading(c,!1),u.callback(c)}))))}((function(){b.addClass(f,o.CLASS.READONLY);var e=m.options.reader.timeout.markdown;t=t||h;var n=!1,i=function(){t&&/^function$/i.test(r(t))&&!n&&(t(),n=!0)};setTimeout(i,e),C((function(){i()}))}))},this.init=function(){n=e.win||m.win,c=e.doc||m.doc,f=e.container||m.body,h=e.callback,y&&y.init()}}},function(e,t,n){n(219);var r,o,i,a=n(1),l=n(3),s=n(91),c=n(63),d=n(137),u=n(489),f=n(490),h=n(491),p=n(492),m=n(493),g=n(494),v=n(495),b=n(496),y=n(497);r=n(498),o=n(499),i=n(500);var _,S=n(501);_=n(502);var E,C=n(503),T=n(504),A=n(505),O=n(506),w=n(507),N=n(508),L=n(509),I=n(510),U=n(511),D=n(512),M=n(514),x=n(515),R=n(516),k=n(517),P=n(518),B=n(519),z=n(520),F=n(521),j=n(522),q=n(523),W=n(524),H=n(525),Y=n(526),G=n(527),V=n(528),Z=n(529),K=n(530),X=n(531),$=n(532),J=n(533),Q=n(534),ee=n(535),te=n(536);E=n(217);var ne,re,oe=n(539),ie=n(540);ne=n(541),re=n(542);var ae,le,se,ce,de=n(543),ue=n(544),fe=n(545),he=n(546),pe=n(547),me=n(548),ge=n(549),ve=n(550),be=n(551),ye=n(552),_e=n(553),Se=n(554),Ee=n(555),Ce=n(556);ae=n(557),le=n(558),se=n(559),ce=n(560);var Te=n(561),Ae=n(562),Oe=function(e,t){for(var n=new u(e),Oe={env:n,lang:new f(n.options.lang,n),require:{amend:new h,amendInfo:new p,amendUser:new m,amendUserAction:new g,amendUtils:new v,blockCore:new b,blockUtils:new y,codeCore:r?new r:null,codeStyle:o?new o:null,codeUtils:i?new i:null,commandExtend:new S,commonUtils:new A,contentCore:_?new _:null,clientBridge:new C,clipboardUtils:new T,domUtils:new O,editorBridge:new w,editorCommon:new N,editorCommonEvent:new L,editorOutline:new I,editorOutlineEvent:new U,formatPainter:new x,frameViewCore:new R,frameViewStyle:new k,frameViewUtils:new P,highlightUtils:new B,historyUtils:new z,lazyLoadCore:new F,lazyLoadUtils:new j,menuPlugin:new q,imgClick:new W,imgCore:new H,imgMenu:new Y,imgResize:new G,imgUpload:new V,imgUtils:new Z,linkCore:new X,linkMenu:new $,linkUtils:new J,markdownRender:E?new E:null,markerCore:new oe,markerStyle:new ie,MathJaxRender:ne||null,mathJaxRender:ne?new ne:null,mediaCore:new Q,mediaStyle:new ee,mediaUtils:new te,minderMenu:new D,nightModeUtils:re?new re:null,outlineCore:new de,outlineStyle:new ue,outlineUtils:new M,pasteUtils:new fe,rangeUtils:new he,readerCommon:new pe,readerCommonEvent:new me,readerOutline:new ge,readerOutlineEvent:new ve,selectPlugin:new be,svgClick:new K,tabKey:new ye,tableCore:new _e,tableMenuList:new Se,tableUtils:new Ee,tableZone:new Ce,todoCore:ae?new ae:null,todoStyle:le?new le:null,todoUtils:se?new se:null,toolbarMarkdown:ce?new ce:null,tooltip:new Te,wizStyle:new Ae}},we=Oe.require,Ne=0,Le=Object.keys(we);Ne
    ")),s.close()}n.doc=o.contentDocument,n.win=o.contentWindow,n.body=n.doc.body,n.frame.dom=o,c.run(n.win)}else(i=r.querySelector("."+a.CLASS.WIZ_BODY))||((i=n.doc.createElement("div")).innerHTML="

    ",r.appendChild(i)),n.body=i;Ge.attr(n.body,{spellcheck:"false"}),n.frame.toolbarDoc=e,n.frame.toolbarContainer=t,n.frame.bodyContainer=r}();var ut=function(e){if(n.readonly&&!n.options.pureReadMode.enable&&n.options.reader.type!==a.NOTE_READER_TYPE.MARKDOWN&&n.options.reader.type!==a.NOTE_READER_TYPE.MATHJAX&&n.options.reader.autoEdit){if(!je.getBridge().hasPermission())return!1;var t=st.getModifiedListFromReader(),r=Ye.lastFocusCodeForReader,o=it.getRange(),i=n.client.type.isIOS;if(r||o||i){if(!o&&i&&(e.target!==n.body&&(o=it.getEventCaretRange(e)),!o)){var l=Ge.getLast();it.setRange(l,Ge.getEndOffset(l)),o=it.getRange()}var s,c,d,u;r||(s=o.startContainer,c=o.startOffset,d=o.endContainer,u=o.endOffset),mt.editor.on({},(function(){t.length>0&&setTimeout((function(){Me.setOriginalHtml("isModified")}),500),r?Ye.setSelection(r.id,r.anchor,r.head):it.setRange(s,c,d,u),n.options.reader.callback.onAutoEdit&&n.options.reader.callback.onAutoEdit()}))}}},ft=function(){De.forEach((function(e){xe.addListener(e.eName,e.fun)})),De=[]},ht=function(){var e=Pe.init();Me=e.editor,xe=e.editorEvent,Re=e.editorUtils,ke=e.reader,Me.type===a.DOCUMENT_TYPE.COMMON&&(ke.noteSrcIsText=!1,ke.noteTextSrc="")},pt=function(e){if(e=Je.imgPreprocess(e),n.options.useFrame?(n.doc.open("text/html","replace"),n.doc.write(e),n.doc.close(),n.body=n.doc.body):n.body.innerHTML=e,Ge.attr(n.body,{spellcheck:"false"}),c.run(n.win),n.client.type.isWeb){dt.insertDefaultStyle(!1,"")}},mt={version:a.version,destroy:function(){n.isWizTemplate&&n.win.WizTemplate&&n.win.WizTemplate.off(),n.isWizTemplate=!1,Me&&Me.offEvent(),ke&&ke.offEvent(),n.body.innerHTML="",n.readonly=null},setOptions:n.setOptions,getDocumentType:function(){return Pe&&Pe.isOutline?a.DOCUMENT_TYPE.OUTLINE:a.DOCUMENT_TYPE.COMMON},editor:{on:function(e,t){if(n.event.remove(a.EVENT.AUTO_EDIT,ut),!1!==n.readonly){var r=function(){ft(),"function"==typeof t&&t()};"function"==typeof e&&(t=e,e={});var o=(e=e||{}).documentBody,i=e.documentBodyType;if(void 0!==e.htmlBaseUrl&&(n.options.htmlBaseUrl=e.htmlBaseUrl),void 0!==e.minHeight&&(n.options.editor.minHeight=e.minHeight),e.reader&&e.reader.type&&(n.options.reader.type=e.reader.type),o||Pe.checkDocumentEditable()){var s=function(){"string"!=typeof o||("text"===i?n.body.innerHTML=d.xssFilter(l.txt2HTML(o,{wizTableSaveDom:!0})):(o=d.xssFilter(o),o=Ge.initDocHtml(o),pt(o)),Pe.checkDocumentEditable())?(ht(),Me.on(e,r)):r()};if(ke)if(ke.type===a.DOCUMENT_TYPE.COMMON){var c={noteSrc:null,useContentExtractionHtml:e.useContentExtractionHtml};"string"!=typeof o&&ke.noteSrcIsText&&(c.noteSrc=d.xssFilter(l.txt2HTML(ke.noteTextSrc,{wizTableSaveDom:!0}))),ke.off(c,s)}else ke.off({},s);else s()}else r()}},caretBackup:function(){return it.caretBackup()},createSvg:function(){at.createSvg()},execCommand:function(){Xe.saveSnap(!1);for(var e=arguments.length,t=new Array(e),n=0;n]*>([\s\S]*)<\/body>/i,i=o.exec(t);i=i&&i[1]||t;var l=o.exec(r);return l=l&&l[1]||r,!1===n.readonly&&i!==l},modifySelectionBlock:function(e){Xe.saveSnap(!1),Re.modifySelectionBlock(e)},modifySelectionDom:function(e,t){n.event.setPause(a.EVENT.ON_SELECTION_CHANGE,!0),Xe.saveSnap(!1),Re.modifySelectionDom(e,t),setTimeout((function(){n.event.setPause(a.EVENT.ON_SELECTION_CHANGE,!1)}),10)},paste:function(e,t){!1===n.readonly&&ot.pasteFromClient(e,t)},pasteB64:function(e,t){var n=s.decode(e),r=s.decode(t);mt.editor.paste(n,r)},redo:function(){Xe.redo()},removeFormat:function(e,t,n){Xe.saveSnap(!1),dt.removeFormat(e,t,n)},replace:function(e,t,n){return Re.replace(e,t,n)},replaceAll:function(e,t,n){Xe.saveSnap(!1),Re.replaceAll(e,t,n)},caretRestore:function(){return it.caretRestore()},saveSnap:function(){Xe.saveSnap(!1)},setUnModified:function(){Me.setOriginalHtml()},undo:function(){Xe.undo()},ListenerType:a.TYPE.EDITOR_EVENT,addListener:function(e,t){xe?xe.addListener(e,t):De.push({eName:e,fun:t})},removeListener:function(e,t){xe&&xe.removeListener(e,t)},triggerListener:function(e,t){xe&&xe.triggerListener(e,t)},startTrackEvent:function(e,t){xe&&xe.startTrackEvent(e,t)},stopTrackEvent:function(e,t){xe&&xe.stopTrackEvent(e,t)},amend:{on:function(){Be.start()},off:function(){Be.startReverse()},changeCurUser:function(e){Be.changeCurUser(e)},isEdited:function(){return Be.isAmendEdited()},isEditing:function(){return Be.isAmendEditing},hasAmendSpanByCursor:function(){return Be.hasAmendSpanByCursor()},accept:function(e){Be.accept(gt(e))},refuse:function(e){Be.refuse(gt(e))}},code:{insertCode:function(){He&&He.insertCode()}},formatPainter:{on:function(e){return Ve.on(e)},off:function(){Ve.off()}},img:{getAll:function(e,t){return $e.getAll(e,t).join(",")},insertAsAttachment:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Xe.saveSnap(!1),!r.insertStart&&!r.insertEnd){var o=Fe.insertBlock(n.doc.createElement("div"));o.innerHTML=""}Re.insertDom($e.makeAttachmentDom(e,t),r)},insertByPath:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Xe.saveSnap(!1),!t.insertStart&&!t.insertEnd){var r=Fe.insertBlock(n.doc.createElement("div"));r.innerHTML=""}Re.insertDom($e.makeDomByPath(e),t)},uploadImg:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!n.readonly){var r=we.imgUpload.createdUploadNode(e);if(Pe.isOutline){it.caretRestore();Me.createImg(r.dom)}else{if(Xe.saveSnap(!1),!t.insertStart&&!t.insertEnd){var o=Fe.insertBlock(n.doc.createElement("div"));o.innerHTML=""}Re.insertDom(r.dom,t)}return r.key}},onImgUploadProgress:function(){var e;return(e=we.imgUpload).onImgUploadProgress.apply(e,arguments)},onImgUploadComplete:function(){var e;return(e=we.imgUpload).onImgUploadComplete.apply(e,arguments)},onImgUploadError:function(){var e;return(e=we.imgUpload).onImgUploadError.apply(e,arguments)},getDom:function(e){return we.imgUpload.getUploadDom(e)},removeCur:function(){Xe.saveSnap(!1);var e="img["+a.ATTR.IMG_EDITING+"]";$e.remove(e)},replaceCur:function(e){Xe.saveSnap(!1);var t="img["+a.ATTR.IMG_EDITING+"]";$e.replaceSrc(t,e)}},link:{on:function(){Qe.on()},off:function(){Qe.off()},getCurrentLink:function(){return et.getCurrentLink()},removeSelectedLink:function(){et.removeSelectedLink()},setCurrentLink:function(e){et.setCurrentLink(e)}},marker:{start:function(){nt.start()},quit:function(e){nt.quit(e)},checkMarker:function(){return nt.checkMarker()},hide:function(){nt.hide()},show:function(){nt.show()}},range:{moveToPoint:function(e,t){it.moveToPoint(e,t)}},table:{canCreateTable:lt.canCreateTable,clearCellValue:lt.clearCellValue,deleteCols:lt.deleteCols,deleteRows:lt.deleteRows,deleteTable:lt.deleteTable,distributeCols:lt.distributeCols,insertCol:lt.insertCol,insertRow:lt.insertRow,insertTable:lt.insertTable,merge:lt.merge,setCellAlign:lt.setCellAlign,setCellBg:lt.setCellBg,split:lt.split},todo:{setTodo:function(){st&&st.setTodo()},setTodoInfo:function(e){st&&st.setTodoInfo(e)}},utils:{clearStyleFromHtml:function(e,t){return Xe.saveSnap(!1),Ge.clearStyleFromHtml(e,t)}},toolbar:{setImgUploaderId:function(e){ct&&ct.setImgUploaderId(e)},onImgUploadBegin:function(e,t){ct&&ct.onImgUploadBegin(e,t)},onImgUploadProgress:function(e,t){ct&&ct.onImgUploadProgress(e,t)},onImgUploadComplete:function(e,t){ct&&ct.onImgUploadComplete(e,t)},onImgUploadError:function(e){ct&&ct.onImgUploadError(e)}}},reader:{on:function(e,t){if(n.event.add(a.EVENT.AUTO_EDIT,ut),!0!==n.readonly){"function"==typeof e&&(t=e,e={}),void 0!==(e=e||{}).minHeight&&(n.options.reader.minHeight=e.minHeight),void 0!==e.htmlBaseUrl&&(n.options.htmlBaseUrl=e.htmlBaseUrl),e.reader&&e.reader.type&&(n.options.reader.type=e.reader.type),n.options.pc.pluginModified=!1;var r=e.documentBody,o=e.documentBodyType;"string"==typeof r?(n.options.reader.type===a.NOTE_READER_TYPE.MARKDOWN&&(n.body.style.opacity="0"),"text"===o?(ht(),ke.noteSrcIsText=!0,ke.noteTextSrc=r):(r=d.xssFilter(r),r=Ge.initDocHtml(r),pt(r),ht())):ht();ke.on(e,(function(){"function"==typeof t&&(ft(),t()),n.options.pureReadMode.enable&&mt.reader.pureRead.on()}))}},closeDocument:function(){return st?st.closeDocument():null},getRenderDocument:function(){return Be.hideAmendInfo(),Ge.getRenderDocument()},getWordCount:function(){var e=Ge.getWordCount();return JSON.stringify(e)},setPluginModify:function(e){return n.options.pc.pluginModified?n.options.pc.pluginModified:(n.options.reader.type===a.NOTE_READER_TYPE.COMMON&&(n.options.pc.pluginModified=!!e),n.options.pc.pluginModified)},amendInfo:{on:ze.on,off:ze.off},highlight:{next:function(){Ke.next()},off:function(){Ke.off()},on:function(e,t){return Ke.on(e,t)},previous:function(){Ke.previous()}},pureRead:{on:function(e){n.options.pureReadMode.enable=!0,e=e||{},We&&We.on({needContentExtraction:e.needContentExtraction},(function(){}))},off:function(){n.options.pureReadMode.enable=!1,We&&We.off()}},todo:{setTodoInfo:function(e){st&&st.setTodoInfo(e)},onCheckDocLock:function(e,t){st&&st.onCheckDocLock(e,t)}},marker:{hide:function(){nt.hide()},show:function(){nt.show()}}},outline:{addNotes:function(){Pe.isOutline&&!n.readonly&&Me.addNotes()},setCompleted:function(e){Pe.isOutline&&!n.readonly&&Me.setCompleted(e)},deleteNodes:function(){Pe.isOutline&&!n.readonly&&Me.deleteNodes()},indent:function(){Pe.isOutline&&!n.readonly&&Me.indent()},outdent:function(){Pe.isOutline&&!n.readonly&&Me.outdent()},hideMinder:function(){Pe.isOutline&&Me.hideMinder()},minderThemeRegister:function(e){Pe.isOutline&&Me.minderThemeRegister(e)},showMinder:function(e){Pe.isOutline&&Me.showMinder(e)},userMinderTheme:function(e){Pe.isOutline&&Me.userMinderTheme(e)}},frame:{getFrameElement:Ze.getFrameElement,adjustContainerSize:Ze.onAdjustContainerSize},nightMode:{on:function(e,t,r){n.options.nightMode.enable=!0,e&&(n.options.nightMode.color=e),t&&(n.options.nightMode.bgColor=t),r&&(n.options.nightMode.brightness=r),rt&&rt.on()},off:function(){n.options.nightMode.enable=!1,rt&&rt.off()}},insertCustomStyle:function(e,t,n){dt.insertCustomStyle(e,t,n)},insertDefaultStyle:function(e,t){dt.insertDefaultStyle(e,t)},removeStyleById:function(e){dt.removeStyleById(e)}};return t&&t(Oe),n.event.add(a.EVENT.ON_MARKER_INITIATED,(function(e){var t=e.editorTools;for(var n in mt.editor.marker.tools=t,t)t.hasOwnProperty(n)&&(mt.editor.marker[n]=t[n])})),mt;function gt(e){return e?(e.total=!!e.total,e.cursor=!!e.cursor):e={dom:null,cursor:!1,total:!0},e}};window.WizDocument=Oe,Oe.version=a.version,e.exports=Oe},function(e,t,n){"use strict";n(220);var r,o=(r=n(392))&&r.__esModule?r:{default:r};o.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),o.default._babelPolyfill=!0},function(e,t,n){"use strict";n(221),n(364),n(366),n(369),n(371),n(373),n(375),n(377),n(379),n(381),n(383),n(385),n(387),n(391)},function(e,t,n){n(222),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(303),n(304),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(112),n(327),n(161),n(328),n(162),n(329),n(330),n(331),n(332),n(163),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),e.exports=n(12)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(6),i=n(20),a=n(14),l=n(0),s=n(18),c=n(39).KEY,d=n(7),u=n(74),f=n(55),h=n(43),p=n(10),m=n(93),g=n(142),v=n(224),b=n(77),y=n(8),_=n(9),S=n(17),E=n(22),C=n(38),T=n(42),A=n(47),O=n(145),w=n(30),N=n(76),L=n(15),I=n(45),U=w.f,D=L.f,M=O.f,x=o.Symbol,R=o.JSON,k=R&&R.stringify,P=p("_hidden"),B=p("toPrimitive"),z={}.propertyIsEnumerable,F=u("symbol-registry"),j=u("symbols"),q=u("op-symbols"),W=Object.prototype,H="function"==typeof x&&!!N.f,Y=o.QObject,G=!Y||!Y.prototype||!Y.prototype.findChild,V=a&&d((function(){return 7!=A(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=U(W,t);r&&delete W[t],D(e,t,n),r&&e!==W&&D(W,t,r)}:D,Z=function(e){var t=j[e]=A(x.prototype);return t._k=e,t},K=H&&"symbol"==r(x.iterator)?function(e){return"symbol"==r(e)}:function(e){return e instanceof x},X=function(e,t,n){return e===W&&X(q,t,n),y(e),t=C(t,!0),y(n),i(j,t)?(n.enumerable?(i(e,P)&&e[P][t]&&(e[P][t]=!1),n=A(n,{enumerable:T(0,!1)})):(i(e,P)||D(e,P,T(1,{})),e[P][t]=!0),V(e,t,n)):D(e,t,n)},$=function(e,t){y(e);for(var n,r=v(t=E(t)),o=0,i=r.length;i>o;)X(e,n=r[o++],t[n]);return e},J=function(e){var t=z.call(this,e=C(e,!0));return!(this===W&&i(j,e)&&!i(q,e))&&(!(t||!i(this,e)||!i(j,e)||i(this,P)&&this[P][e])||t)},Q=function(e,t){if(e=E(e),t=C(t,!0),e!==W||!i(j,t)||i(q,t)){var n=U(e,t);return!n||!i(j,t)||i(e,P)&&e[P][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=M(E(e)),r=[],o=0;n.length>o;)i(j,t=n[o++])||t==P||t==c||r.push(t);return r},te=function(e){for(var t,n=e===W,r=M(n?q:E(e)),o=[],a=0;r.length>a;)!i(j,t=r[a++])||n&&!i(W,t)||o.push(j[t]);return o};H||(s((x=function(){if(this instanceof x)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function t(n){this===W&&t.call(q,n),i(this,P)&&i(this[P],e)&&(this[P][e]=!1),V(this,e,T(1,n))};return a&&G&&V(W,e,{configurable:!0,set:t}),Z(e)}).prototype,"toString",(function(){return this._k})),w.f=Q,L.f=X,n(48).f=O.f=ee,n(65).f=J,N.f=te,a&&!n(44)&&s(W,"propertyIsEnumerable",J,!0),m.f=function(e){return Z(p(e))}),l(l.G+l.W+l.F*!H,{Symbol:x});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)p(ne[re++]);for(var oe=I(p.store),ie=0;oe.length>ie;)g(oe[ie++]);l(l.S+l.F*!H,"Symbol",{for:function(e){return i(F,e+="")?F[e]:F[e]=x(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){G=!0},useSimple:function(){G=!1}}),l(l.S+l.F*!H,"Object",{create:function(e,t){return void 0===t?A(e):$(A(e),t)},defineProperty:X,defineProperties:$,getOwnPropertyDescriptor:Q,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=d((function(){N.f(1)}));l(l.S+l.F*ae,"Object",{getOwnPropertySymbols:function(e){return N.f(S(e))}}),R&&l(l.S+l.F*(!H||d((function(){var e=x();return"[null]"!=k([e])||"{}"!=k({a:e})||"{}"!=k(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(_(t)||void 0!==e)&&!K(e))return b(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,k.apply(R,r)}}),x.prototype[B]||n(21)(x.prototype,B,x.prototype.valueOf),f(x,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},function(e,t,n){e.exports=n(74)("native-function-to-string",Function.toString)},function(e,t,n){var r=n(45),o=n(76),i=n(65);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,l=n(e),s=i.f,c=0;l.length>c;)s.call(e,a=l[c++])&&t.push(a);return t}},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(47)})},function(e,t,n){var r=n(0);r(r.S+r.F*!n(14),"Object",{defineProperty:n(15).f})},function(e,t,n){var r=n(0);r(r.S+r.F*!n(14),"Object",{defineProperties:n(144)})},function(e,t,n){var r=n(22),o=n(30).f;n(31)("getOwnPropertyDescriptor",(function(){return function(e,t){return o(r(e),t)}}))},function(e,t,n){var r=n(17),o=n(49);n(31)("getPrototypeOf",(function(){return function(e){return o(r(e))}}))},function(e,t,n){var r=n(17),o=n(45);n(31)("keys",(function(){return function(e){return o(r(e))}}))},function(e,t,n){n(31)("getOwnPropertyNames",(function(){return n(145).f}))},function(e,t,n){var r=n(9),o=n(39).onFreeze;n(31)("freeze",(function(e){return function(t){return e&&r(t)?e(o(t)):t}}))},function(e,t,n){var r=n(9),o=n(39).onFreeze;n(31)("seal",(function(e){return function(t){return e&&r(t)?e(o(t)):t}}))},function(e,t,n){var r=n(9),o=n(39).onFreeze;n(31)("preventExtensions",(function(e){return function(t){return e&&r(t)?e(o(t)):t}}))},function(e,t,n){var r=n(9);n(31)("isFrozen",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},function(e,t,n){var r=n(9);n(31)("isSealed",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},function(e,t,n){var r=n(9);n(31)("isExtensible",(function(e){return function(t){return!!r(t)&&(!e||e(t))}}))},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(146)})},function(e,t,n){var r=n(0);r(r.S,"Object",{is:n(147)})},function(e,t,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(97).set})},function(e,t,n){"use strict";var r=n(66),o={};o[n(10)("toStringTag")]="z",o+""!="[object z]"&&n(18)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(148)})},function(e,t,n){var r=n(15).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(14)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(9),o=n(49),i=n(10)("hasInstance"),a=Function.prototype;i in a||n(15).f(a,i,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(0),o=n(150);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(e,t,n){var r=n(0),o=n(151);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(e,t,n){"use strict";var r=n(6),o=n(20),i=n(34),a=n(99),l=n(38),s=n(7),c=n(48).f,d=n(30).f,u=n(15).f,f=n(56).trim,h=r.Number,p=h,m=h.prototype,g="Number"==i(n(47)(m)),v="trim"in String.prototype,b=function(e){var t=l(e,!1);if("string"==typeof t&&t.length>2){var n,r,o,i=(t=v?t.trim():f(t,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+t}for(var a,s=t.slice(2),c=0,d=s.length;co)return NaN;return parseInt(s,r)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof h&&(g?s((function(){m.valueOf.call(n)})):"Number"!=i(n))?a(new p(b(t)),n,h):b(t)};for(var y,_=n(14)?c(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;_.length>S;S++)o(p,y=_[S])&&!o(h,y)&&u(h,y,d(p,y));h.prototype=m,m.constructor=h,n(18)(r,"Number",h)}},function(e,t,n){"use strict";var r=n(0),o=n(29),i=n(152),a=n(100),l=1..toFixed,s=Math.floor,c=[0,0,0,0,0,0],d="Number.toFixed: incorrect invocation!",u=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=s(r/1e7)},f=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=s(n/e),n=n%e*1e7},h=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t},p=function e(t,n,r){return 0===n?r:n%2==1?e(t,n-1,r*t):e(t*t,n/2,r)};r(r.P+r.F*(!!l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(7)((function(){l.call({})}))),"Number",{toFixed:function(e){var t,n,r,l,s=i(this,d),c=o(e),m="",g="0";if(c<0||c>20)throw RangeError(d);if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(m="-",s=-s),s>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(s*p(2,69,1))-69)<0?s*p(2,-t,1):s/p(2,t,1),n*=4503599627370496,(t=52-t)>0){for(u(0,n),r=c;r>=7;)u(1e7,0),r-=7;for(u(p(10,r,1),0),r=t-1;r>=23;)f(1<<23),r-=23;f(1<0?m+((l=g.length)<=c?"0."+a.call("0",c-l)+g:g.slice(0,l-c)+"."+g.slice(l-c)):m+g}})},function(e,t,n){"use strict";var r=n(0),o=n(7),i=n(152),a=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))),"Number",{toPrecision:function(e){var t=i(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(0),o=n(6).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},function(e,t,n){var r=n(0);r(r.S,"Number",{isInteger:n(153)})},function(e,t,n){var r=n(0);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(0),o=n(153),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},function(e,t,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(0),o=n(151);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(e,t,n){var r=n(0),o=n(150);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(e,t,n){var r=n(0),o=n(154),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:o(e-1+i(e-1)*i(e+1))}})},function(e,t,n){var r=n(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(0),o=n(101);r(r.S,"Math",{cbrt:function(e){return o(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(0);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},function(e,t,n){var r=n(0),o=n(102);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(e,t,n){var r=n(0);r(r.S,"Math",{fround:n(267)})},function(e,t,n){var r=n(101),o=Math.pow,i=o(2,-52),a=o(2,-23),l=o(2,127)*(2-a),s=o(2,-126);e.exports=Math.fround||function(e){var t,n,o=Math.abs(e),c=r(e);return ol||n!=n?c*(1/0):c*n}},function(e,t,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,i=0,a=0,l=arguments.length,s=0;a0?(r=n/s)*r:n;return s===1/0?1/0:s*Math.sqrt(i)}})},function(e,t,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(7)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(e,t){var n=+e,r=+t,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=n(0);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var r=n(0);r(r.S,"Math",{log1p:n(154)})},function(e,t,n){var r=n(0);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(0);r(r.S,"Math",{sign:n(101)})},function(e,t,n){var r=n(0),o=n(102),i=Math.exp;r(r.S+r.F*n(7)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(0),o=n(102),i=Math.exp;r(r.S,"Math",{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){var r=n(0);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var r=n(0),o=n(46),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(0),o=n(22),i=n(11);r(r.S,"String",{raw:function(e){for(var t=o(e.raw),n=i(t.length),r=arguments.length,a=[],l=0;n>l;)a.push(String(t[l++])),l=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var r=n(0),o=n(103)(!1);r(r.P,"String",{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r=n(0),o=n(11),i=n(105),a="".endsWith;r(r.P+r.F*n(107)("endsWith"),"String",{endsWith:function(e){var t=i(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(t.length),l=void 0===n?r:Math.min(o(n),r),s=String(e);return a?a.call(t,s,l):t.slice(l-s.length,l)===s}})},function(e,t,n){"use strict";var r=n(0),o=n(105);r(r.P+r.F*n(107)("includes"),"String",{includes:function(e){return!!~o(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(0);r(r.P,"String",{repeat:n(100)})},function(e,t,n){"use strict";var r=n(0),o=n(11),i=n(105),a="".startsWith;r(r.P+r.F*n(107)("startsWith"),"String",{startsWith:function(e){var t=i(this,e,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return a?a.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";n(19)("anchor",(function(e){return function(t){return e(this,"a","name",t)}}))},function(e,t,n){"use strict";n(19)("big",(function(e){return function(){return e(this,"big","","")}}))},function(e,t,n){"use strict";n(19)("blink",(function(e){return function(){return e(this,"blink","","")}}))},function(e,t,n){"use strict";n(19)("bold",(function(e){return function(){return e(this,"b","","")}}))},function(e,t,n){"use strict";n(19)("fixed",(function(e){return function(){return e(this,"tt","","")}}))},function(e,t,n){"use strict";n(19)("fontcolor",(function(e){return function(t){return e(this,"font","color",t)}}))},function(e,t,n){"use strict";n(19)("fontsize",(function(e){return function(t){return e(this,"font","size",t)}}))},function(e,t,n){"use strict";n(19)("italics",(function(e){return function(){return e(this,"i","","")}}))},function(e,t,n){"use strict";n(19)("link",(function(e){return function(t){return e(this,"a","href",t)}}))},function(e,t,n){"use strict";n(19)("small",(function(e){return function(){return e(this,"small","","")}}))},function(e,t,n){"use strict";n(19)("strike",(function(e){return function(){return e(this,"strike","","")}}))},function(e,t,n){"use strict";n(19)("sub",(function(e){return function(){return e(this,"sub","","")}}))},function(e,t,n){"use strict";n(19)("sup",(function(e){return function(){return e(this,"sup","","")}}))},function(e,t,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var r=n(0),o=n(17),i=n(38);r(r.P+r.F*n(7)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=o(this),n=i(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var r=n(0),o=n(302);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(e,t,n){"use strict";var r=n(7),o=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-5e13-1))}))||!r((function(){i.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},function(e,t,n){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(18)(r,"toString",(function(){var e=i.call(this);return e==e?o.call(this):"Invalid Date"}))},function(e,t,n){var r=n(10)("toPrimitive"),o=Date.prototype;r in o||n(21)(o,r,n(305))},function(e,t,n){"use strict";var r=n(8),o=n(38);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!=e)}},function(e,t,n){var r=n(0);r(r.S,"Array",{isArray:n(77)})},function(e,t,n){"use strict";var r=n(27),o=n(0),i=n(17),a=n(156),l=n(108),s=n(11),c=n(109),d=n(110);o(o.S+o.F*!n(78)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,u,f=i(e),h="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,b=d(f);if(g&&(m=r(m,p>2?arguments[2]:void 0,2)),null==b||h==Array&&l(b))for(n=new h(t=s(f.length));t>v;v++)c(n,v,g?m(f[v],v):f[v]);else for(u=b.call(f),n=new h;!(o=u.next()).done;v++)c(n,v,g?a(u,m,[o.value,v],!0):o.value);return n.length=v,n}})},function(e,t,n){"use strict";var r=n(0),o=n(109);r(r.S+r.F*n(7)((function(){function e(){}return!(Array.of.call(e)instanceof e)})),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)o(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(0),o=n(22),i=[].join;r(r.P+r.F*(n(64)!=Object||!n(25)(i)),"Array",{join:function(e){return i.call(o(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(0),o=n(96),i=n(34),a=n(46),l=n(11),s=[].slice;r(r.P+r.F*n(7)((function(){o&&s.call(o)})),"Array",{slice:function(e,t){var n=l(this.length),r=i(this);if(t=void 0===t?n:t,"Array"==r)return s.call(this,e,t);for(var o=a(e,n),c=a(t,n),d=l(c-o),u=new Array(d),f=0;f1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},function(e,t,n){var r=n(0);r(r.P,"Array",{copyWithin:n(159)}),n(50)("copyWithin")},function(e,t,n){var r=n(0);r(r.P,"Array",{fill:n(111)}),n(50)("fill")},function(e,t,n){"use strict";var r=n(0),o=n(32)(5),i=!0;"find"in[]&&Array(1).find((function(){i=!1})),r(r.P+r.F*i,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(50)("find")},function(e,t,n){"use strict";var r=n(0),o=n(32)(6),i="findIndex",a=!0;i in[]&&Array(1)[i]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(50)(i)},function(e,t,n){n(58)("Array")},function(e,t,n){var r=n(6),o=n(99),i=n(15).f,a=n(48).f,l=n(106),s=n(79),c=r.RegExp,d=c,u=c.prototype,f=/a/g,h=/a/g,p=new c(f)!==f;if(n(14)&&(!p||n(7)((function(){return h[n(10)("match")]=!1,c(f)!=f||c(h)==h||"/a/i"!=c(f,"i")})))){c=function(e,t){var n=this instanceof c,r=l(e),i=void 0===t;return!n&&r&&e.constructor===c&&i?e:o(p?new d(r&&!i?e.source:e,t):d((r=e instanceof c)?e.source:e,r&&i?s.call(e):t),n?this:u,c)};for(var m=function(e){e in c||i(c,e,{configurable:!0,get:function(){return d[e]},set:function(t){d[e]=t}})},g=a(d),v=0;g.length>v;)m(g[v++]);u.constructor=c,c.prototype=u,n(18)(r,"RegExp",c)}n(58)("RegExp")},function(e,t,n){"use strict";n(162);var r=n(8),o=n(79),i=n(14),a=/./.toString,l=function(e){n(18)(RegExp.prototype,"toString",e,!0)};n(7)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?l((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?o.call(e):void 0)})):"toString"!=a.name&&l((function(){return a.call(this)}))},function(e,t,n){"use strict";var r=n(8),o=n(11),i=n(114),a=n(80);n(81)("match",1,(function(e,t,n,l){return[function(n){var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=l(n,e,this);if(t.done)return t.value;var s=r(e),c=String(this);if(!s.global)return a(s,c);var d=s.unicode;s.lastIndex=0;for(var u,f=[],h=0;null!==(u=a(s,c));){var p=String(u[0]);f[h]=p,""===p&&(s.lastIndex=i(c,o(s.lastIndex),d)),h++}return 0===h?null:f}]}))},function(e,t,n){"use strict";var r=n(8),o=n(17),i=n(11),a=n(29),l=n(114),s=n(80),c=Math.max,d=Math.min,u=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;n(81)("replace",2,(function(e,t,n,p){return[function(r,o){var i=e(this),a=null==r?void 0:r[t];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(e,t){var o=p(n,e,this,t);if(o.done)return o.value;var u=r(e),f=String(this),h="function"==typeof t;h||(t=String(t));var g=u.global;if(g){var v=u.unicode;u.lastIndex=0}for(var b=[];;){var y=s(u,f);if(null===y)break;if(b.push(y),!g)break;""===String(y[0])&&(u.lastIndex=l(f,i(u.lastIndex),v))}for(var _,S="",E=0,C=0;C=E&&(S+=f.slice(E,A)+I,E=A+T.length)}return S+f.slice(E)}];function m(e,t,r,i,a,l){var s=r+e.length,c=i.length,d=h;return void 0!==a&&(a=o(a),d=f),n.call(l,d,(function(n,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(s);case"<":l=a[o.slice(1,-1)];break;default:var d=+o;if(0===d)return n;if(d>c){var f=u(d/10);return 0===f?n:f<=c?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):n}l=i[d-1]}return void 0===l?"":l}))}}))},function(e,t,n){"use strict";var r=n(8),o=n(147),i=n(80);n(81)("search",1,(function(e,t,n,a){return[function(n){var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var l=r(e),s=String(this),c=l.lastIndex;o(c,0)||(l.lastIndex=0);var d=i(l,s);return o(l.lastIndex,c)||(l.lastIndex=c),null===d?-1:d.index}]}))},function(e,t,n){"use strict";var r=n(106),o=n(8),i=n(67),a=n(114),l=n(11),s=n(80),c=n(113),d=n(7),u=Math.min,f=[].push,h=!d((function(){RegExp(4294967295,"y")}));n(81)("split",2,(function(e,t,n,d){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(o,e,t);for(var i,a,l,s=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,h=void 0===t?4294967295:t>>>0,p=new RegExp(e.source,d+"g");(i=c.call(p,o))&&!((a=p.lastIndex)>u&&(s.push(o.slice(u,i.index)),i.length>1&&i.index=h));)p.lastIndex===i.index&&p.lastIndex++;return u===o.length?!l&&p.test("")||s.push(""):s.push(o.slice(u)),s.length>h?s.slice(0,h):s}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var o=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):p.call(String(o),n,r)},function(e,t){var r=d(p,e,this,t,p!==n);if(r.done)return r.value;var c=o(e),f=String(this),m=i(c,RegExp),g=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(h?"y":"g"),b=new m(h?c:"^(?:"+c.source+")",v),y=void 0===t?4294967295:t>>>0;if(0===y)return[];if(0===f.length)return null===s(b,f)?[f]:[];for(var _=0,S=0,E=[];S0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(o(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(166),o=n(51);e.exports=n(84)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(o(this,"Set"),e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r,o=n(6),i=n(32)(0),a=n(18),l=n(39),s=n(146),c=n(167),d=n(9),u=n(51),f=n(51),h=!o.ActiveXObject&&"ActiveXObject"in o,p=l.getWeak,m=Object.isExtensible,g=c.ufstore,v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},b={get:function(e){if(d(e)){var t=p(e);return!0===t?g(u(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(u(this,"WeakMap"),e,t)}},y=e.exports=n(84)("WeakMap",v,b,c,!0,!0);f&&h&&(s((r=c.getConstructor(v,"WeakMap")).prototype,b),l.NEED=!0,i(["delete","has","get","set"],(function(e){var t=y.prototype,n=t[e];a(t,e,(function(t,o){if(d(t)&&!m(t)){this._f||(this._f=new r);var i=this._f[e](t,o);return"set"==e?this:i}return n.call(this,t,o)}))})))},function(e,t,n){"use strict";var r=n(167),o=n(51);n(84)("WeakSet",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(o(this,"WeakSet"),e,!0)}},r,!1,!0)},function(e,t,n){"use strict";var r=n(0),o=n(85),i=n(116),a=n(8),l=n(46),s=n(11),c=n(9),d=n(6).ArrayBuffer,u=n(67),f=i.ArrayBuffer,h=i.DataView,p=o.ABV&&d.isView,m=f.prototype.slice,g=o.VIEW;r(r.G+r.W+r.F*(d!==f),{ArrayBuffer:f}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(e){return p&&p(e)||c(e)&&g in e}}),r(r.P+r.U+r.F*n(7)((function(){return!new f(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(e,t){if(void 0!==m&&void 0===t)return m.call(a(this),e);for(var n=a(this).byteLength,r=l(e,n),o=l(void 0===t?n:t,n),i=new(u(this,f))(s(o-r)),c=new h(this),d=new h(i),p=0;r=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}})),r(r.S,"Reflect",{enumerate:function(e){return new i(e)}})},function(e,t,n){var r=n(30),o=n(49),i=n(20),a=n(0),l=n(9),s=n(8);a(a.S,"Reflect",{get:function e(t,n){var a,c,d=arguments.length<3?t:arguments[2];return s(t)===d?t[n]:(a=r.f(t,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(d):void 0:l(c=o(t))?e(c,n,d):void 0}})},function(e,t,n){var r=n(30),o=n(0),i=n(8);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(i(e),t)}})},function(e,t,n){var r=n(0),o=n(49),i=n(8);r(r.S,"Reflect",{getPrototypeOf:function(e){return o(i(e))}})},function(e,t,n){var r=n(0);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(0),o=n(8),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return o(e),!i||i(e)}})},function(e,t,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(169)})},function(e,t,n){var r=n(0),o=n(8),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){o(e);try{return i&&i(e),!0}catch(e){return!1}}})},function(e,t,n){var r=n(15),o=n(30),i=n(49),a=n(20),l=n(0),s=n(42),c=n(8),d=n(9);l(l.S,"Reflect",{set:function e(t,n,l){var u,f,h=arguments.length<4?t:arguments[3],p=o.f(c(t),n);if(!p){if(d(f=i(t)))return e(f,n,l,h);p=s(0)}if(a(p,"value")){if(!1===p.writable||!d(h))return!1;if(u=o.f(h,n)){if(u.get||u.set||!1===u.writable)return!1;u.value=l,r.f(h,n,u)}else r.f(h,n,s(0,l));return!0}return void 0!==p.set&&(p.set.call(h,l),!0)}})},function(e,t,n){var r=n(0),o=n(97);o&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){o.check(e,t);try{return o.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){n(365),e.exports=n(12).Array.includes},function(e,t,n){"use strict";var r=n(0),o=n(75)(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(50)("includes")},function(e,t,n){n(367),e.exports=n(12).Array.flatMap},function(e,t,n){"use strict";var r=n(0),o=n(368),i=n(17),a=n(11),l=n(28),s=n(157);r(r.P,"Array",{flatMap:function(e){var t,n,r=i(this);return l(e),t=a(r.length),n=s(r,0),o(n,r,r,t,0,1,e,arguments[1]),n}}),n(50)("flatMap")},function(e,t,n){"use strict";var r=n(77),o=n(9),i=n(11),a=n(27),l=n(10)("isConcatSpreadable");e.exports=function e(t,n,s,c,d,u,f,h){for(var p,m,g=d,v=0,b=!!f&&a(f,h,3);v0)g=e(t,n,p,i(p.length),g,u-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=p}g++}v++}return g}},function(e,t,n){n(370),e.exports=n(12).String.padStart},function(e,t,n){"use strict";var r=n(0),o=n(170),i=n(83),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){n(372),e.exports=n(12).String.padEnd},function(e,t,n){"use strict";var r=n(0),o=n(170),i=n(83),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){n(374),e.exports=n(12).String.trimLeft},function(e,t,n){"use strict";n(56)("trimLeft",(function(e){return function(){return e(this,1)}}),"trimStart")},function(e,t,n){n(376),e.exports=n(12).String.trimRight},function(e,t,n){"use strict";n(56)("trimRight",(function(e){return function(){return e(this,2)}}),"trimEnd")},function(e,t,n){n(378),e.exports=n(93).f("asyncIterator")},function(e,t,n){n(142)("asyncIterator")},function(e,t,n){n(380),e.exports=n(12).Object.getOwnPropertyDescriptors},function(e,t,n){var r=n(0),o=n(169),i=n(22),a=n(30),l=n(109);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),s=a.f,c=o(r),d={},u=0;c.length>u;)void 0!==(n=s(r,t=c[u++]))&&l(d,t,n);return d}})},function(e,t,n){n(382),e.exports=n(12).Object.values},function(e,t,n){var r=n(0),o=n(171)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){n(384),e.exports=n(12).Object.entries},function(e,t,n){var r=n(0),o=n(171)(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){"use strict";n(163),n(386),e.exports=n(12).Promise.finally},function(e,t,n){"use strict";var r=n(0),o=n(12),i=n(6),a=n(67),l=n(165);r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}})},function(e,t,n){n(388),n(389),n(390),e.exports=n(12)},function(e,t,n){var r=n(6),o=n(0),i=n(83),a=[].slice,l=/MSIE .\./.test(i),s=function(e){return function(t,n){var r=arguments.length>2,o=!!r&&a.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};o(o.G+o.B+o.F*l,{setTimeout:s(r.setTimeout),setInterval:s(r.setInterval)})},function(e,t,n){var r=n(0),o=n(115);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(e,t,n){for(var r=n(112),o=n(45),i=n(18),a=n(6),l=n(21),s=n(57),c=n(10),d=c("iterator"),u=c("toStringTag"),f=s.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=o(h),m=0;m=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(117)(e))},function(e,t,n){n(393),e.exports=n(172).global},function(e,t,n){var r=n(394);r(r.G,{global:n(118)})},function(e,t,n){var r=n(118),o=n(172),i=n(395),a=n(397),l=n(404),s=function e(t,n,s){var c,d,u,f=t&e.F,h=t&e.G,p=t&e.S,m=t&e.P,g=t&e.B,v=t&e.W,b=h?o:o[n]||(o[n]={}),y=b.prototype,_=h?r:p?r[n]:(r[n]||{}).prototype;for(c in h&&(s=n),s)(d=!f&&_&&void 0!==_[c])&&l(b,c)||(u=d?_[c]:s[c],b[c]=h&&"function"!=typeof _[c]?s[c]:g&&d?i(u,r):v&&_[c]==u?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(u):m&&"function"==typeof u?i(Function.call,u):u,m&&((b.virtual||(b.virtual={}))[c]=u,t&e.R&&y&&!y[c]&&a(y,c,u)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){var r=n(396);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(398),o=n(403);e.exports=n(120)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(399),o=n(400),i=n(402),a=Object.defineProperty;t.f=n(120)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(119);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(120)&&!n(173)((function(){return 7!=Object.defineProperty(n(401)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(119),o=n(118).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(119);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(61),t.createHash=t.Hash=n(68),t.createHmac=t.Hmac=n(183);var r=n(424),o=Object.keys(r),i=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);t.getHashes=function(){return i};var a=n(186);t.pbkdf2=a.pbkdf2,t.pbkdf2Sync=a.pbkdf2Sync;var l=n(426);t.Cipher=l.Cipher,t.createCipher=l.createCipher,t.Cipheriv=l.Cipheriv,t.createCipheriv=l.createCipheriv,t.Decipher=l.Decipher,t.createDecipher=l.createDecipher,t.Decipheriv=l.Decipheriv,t.createDecipheriv=l.createDecipheriv,t.getCiphers=l.getCiphers,t.listCiphers=l.listCiphers;var s=n(441);t.DiffieHellmanGroup=s.DiffieHellmanGroup,t.createDiffieHellmanGroup=s.createDiffieHellmanGroup,t.getDiffieHellman=s.getDiffieHellman,t.createDiffieHellman=s.createDiffieHellman,t.DiffieHellman=s.DiffieHellman;var c=n(446);t.createSign=c.createSign,t.Sign=c.Sign,t.createVerify=c.createVerify,t.Verify=c.Verify,t.createECDH=n(480);var d=n(481);t.publicEncrypt=d.publicEncrypt,t.privateEncrypt=d.privateEncrypt,t.publicDecrypt=d.publicDecrypt,t.privateDecrypt=d.privateDecrypt;var u=n(484);t.randomFill=u.randomFill,t.randomFillSync=u.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],l=r[1],s=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),d=0,u=l>0?a-4:a;for(n=0;n>16&255,s[d++]=t>>8&255,s[d++]=255&t;2===l&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,s[d++]=255&t);1===l&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,s[d++]=t>>8&255,s[d++]=255&t);return s},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,l=n-o;al?l:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,s=a.length;l0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function d(e,t,n){for(var o,i,a=[],l=t;l>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,l=8*o-r-1,s=(1<>1,d=-7,u=n?o-1:0,f=n?-1:1,h=e[t+u];for(u+=f,i=h&(1<<-d)-1,h>>=-d,d+=l;d>0;i=256*i+e[t+u],u+=f,d-=8);for(a=i&(1<<-d)-1,i>>=-d,d+=r;d>0;a=256*a+e[t+u],u+=f,d-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=c}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,l,s,c=8*i-o-1,d=(1<>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+u>=1?f/s:f*Math.pow(2,1-u))*s>=2&&(a++,s/=2),a+u>=d?(l=0,a=d):a+u>=1?(l=(t*s-1)*Math.pow(2,o),a+=u):(l=t*Math.pow(2,u-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&l,h+=p,l/=256,o-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,c-=8);e[n+h-p]|=128*m}},function(e,t){},function(e,t,n){"use strict";var r=n(5).Buffer,o=n(410);function i(e,t,n){e.copy(t,n)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t=r.allocUnsafe(e>>>0),n=this.head,o=0;n;)i(n.data,t,o),o+=n.data.length,n=n.next;return t},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(412),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(37))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,l,s=1,c={},d=!1,u=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){i.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(o=u.documentElement,r=function(e){var t=u.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",l=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",l,!1):e.attachEvent("onmessage",l),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n>>2}function d(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(s,o),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,l=0|this._d,s=0|this._e,u=0;u<16;++u)n[u]=e.readInt32BE(4*u);for(;u<80;++u)n[u]=n[u-3]^n[u-8]^n[u-14]^n[u-16];for(var f=0;f<80;++f){var h=~~(f/20),p=0|((t=r)<<5|t>>>27)+d(h,o,i,l)+s+n[f]+a[h];s=l,l=i,i=c(o),o=r,r=p}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=l+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s},function(e,t,n){var r=n(4),o=n(62),i=n(5).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],l=new Array(80);function s(){this.init(),this._w=l,o.call(this,64,56)}function c(e){return e<<5|e>>>27}function d(e){return e<<30|e>>>2}function u(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(s,o),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,l=0|this._d,s=0|this._e,f=0;f<16;++f)n[f]=e.readInt32BE(4*f);for(;f<80;++f)n[f]=(t=n[f-3]^n[f-8]^n[f-14]^n[f-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),m=c(r)+u(p,o,i,l)+s+n[h]+a[p]|0;s=l,l=i,i=d(o),o=r,r=m}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=l+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s},function(e,t,n){var r=n(4),o=n(181),i=n(62),a=n(5).Buffer,l=new Array(64);function s(){this.init(),this._w=l,i.call(this,64,56)}r(s,o),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=s},function(e,t,n){var r=n(4),o=n(182),i=n(62),a=n(5).Buffer,l=new Array(160);function s(){this.init(),this._w=l,i.call(this,128,112)}r(s,o),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=s},function(e,t,n){"use strict";var r=n(4),o=n(5).Buffer,i=n(41),a=o.alloc(128);function l(e,t){i.call(this,"digest"),"string"==typeof t&&(t=o.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=o.concat([t,a],64));for(var n=this._ipad=o.allocUnsafe(64),r=this._opad=o.allocUnsafe(64),l=0;l<64;l++)n[l]=54^t[l],r[l]=92^t[l];this._hash=[n]}r(l,i),l.prototype._update=function(e){this._hash.push(e)},l.prototype._final=function(){var e=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,e]))},e.exports=l},function(e,t,n){e.exports=n(185)},function(e,t,n){(function(t,r){var o,i=n(187),a=n(188),l=n(189),s=n(5).Buffer,c=t.crypto&&t.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},u=[];function f(e,t,n,r,o){return c.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return c.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:o}},e,r<<3)})).then((function(e){return s.from(e)}))}e.exports=function(e,n,h,p,m,g){"function"==typeof m&&(g=m,m=void 0);var v=d[(m=m||"sha1").toLowerCase()];if(!v||"function"!=typeof t.Promise)return r.nextTick((function(){var t;try{t=l(e,n,h,p,m)}catch(e){return g(e)}g(null,t)}));if(i(e,n,h,p),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");s.isBuffer(e)||(e=s.from(e,a)),s.isBuffer(n)||(n=s.from(n,a)),function(e,t){e.then((function(e){r.nextTick((function(){t(null,e)}))}),(function(e){r.nextTick((function(){t(e)}))}))}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==u[e])return u[e];var n=f(o=o||s.alloc(8),o,10,128,e).then((function(){return!0})).catch((function(){return!1}));return u[e]=n,n}(v).then((function(t){return t?f(e,n,h,p,v):l(e,n,h,p,m)})),g)}}).call(this,n(37),n(40))},function(e,t,n){var r=n(427),o=n(130),i=n(131),a=n(440),l=n(88);function s(e,t,n){if(e=e.toLowerCase(),i[e])return o.createCipheriv(e,t,n);if(a[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function c(e,t,n){if(e=e.toLowerCase(),i[e])return o.createDecipheriv(e,t,n);if(a[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),i[e])n=i[e].key,r=i[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");n=8*a[e].key,r=a[e].iv}var o=l(t,!1,n,r);return s(e,o.key,o.iv)},t.createCipheriv=t.Cipheriv=s,t.createDecipher=t.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),i[e])n=i[e].key,r=i[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");n=8*a[e].key,r=a[e].iv}var o=l(t,!1,n,r);return c(e,o.key,o.iv)},t.createDecipheriv=t.Decipheriv=c,t.listCiphers=t.getCiphers=function(){return Object.keys(a).concat(o.getCiphers())}},function(e,t,n){var r=n(41),o=n(428),i=n(4),a=n(5).Buffer,l={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};function s(e){r.call(this);var t,n=e.mode.toLowerCase(),o=l[n];t=e.decrypt?"decrypt":"encrypt";var i=e.key;a.isBuffer(i)||(i=a.from(i)),"des-ede"!==n&&"des-ede-cbc"!==n||(i=a.concat([i,i.slice(0,8)]));var s=e.iv;a.isBuffer(s)||(s=a.from(s)),this._des=o.create({key:i,iv:s,type:t})}l.des=l["des-cbc"],l.des3=l["des-ede3-cbc"],e.exports=s,i(s,r),s.prototype._update=function(e){return a.from(this._des.update(e))},s.prototype._final=function(){return a.from(this._des.final())}},function(e,t,n){"use strict";t.utils=n(190),t.Cipher=n(129),t.DES=n(191),t.CBC=n(429),t.EDE=n(430)},function(e,t,n){"use strict";var r=n(23),o=n(4),i={};function a(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=i.allocUnsafe(e),n=-1;++n>a%8,e._prev=i(e._prev,n?r:o);return l}function i(e,t){var n=e.length,o=-1,i=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++o>7;return i}t.encrypt=function(e,t,n){for(var i=t.length,a=r.allocUnsafe(i),l=-1;++l>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=i(o)},a.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,o],16)),this.ghash(i([0,e,0,t])),this.state},e.exports=a},function(e,t,n){var r=n(195),o=n(5).Buffer,i=n(131),a=n(196),l=n(41),s=n(87),c=n(88);function d(e,t,n){l.call(this),this._cache=new u,this._last=void 0,this._cipher=new s.AES(t),this._prev=o.from(n),this._mode=e,this._autopadding=!0}function u(){this.cache=o.allocUnsafe(0)}function f(e,t,n){var l=i[e.toLowerCase()];if(!l)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=o.from(n)),"GCM"!==l.mode&&n.length!==l.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=o.from(t)),t.length!==l.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===l.type?new a(l.module,t,n,!0):"auth"===l.type?new r(l.module,t,n,!0):new d(l.module,t,n)}n(4)(d,l),d.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return o.concat(r)},d.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var n=-1;for(;++n16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=i[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=c(t,!1,n.key,n.iv);return f(e,r.key,r.iv)},t.createDecipheriv=f},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,n){(function(e){var r=n(197),o=n(444),i=n(445);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var n=new e(o[t].prime,"hex"),r=new e(o[t].gen,"hex");return new i(n,r)},t.createDiffieHellman=t.DiffieHellman=function t(n,o,l,s){return e.isBuffer(o)||void 0===a[o]?t(n,"binary",o,l):(o=o||"binary",s=s||"binary",l=l||new e([2]),e.isBuffer(l)||(l=new e(l,s)),"number"==typeof n?new i(r(n,l),l,!0):(e.isBuffer(n)||(n=new e(n,o)),new i(n,l,!0)))}}).call(this,n(16).Buffer)},function(e,t){},function(e,t){},function(e){e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(e,t,n){(function(t){var r=n(13),o=new(n(198)),i=new r(24),a=new r(11),l=new r(10),s=new r(3),c=new r(7),d=n(197),u=n(61);function f(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._pub=new r(e),this}function h(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._priv=new r(e),this}e.exports=m;var p={};function m(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=f,this.setPrivateKey=h):this._primeCode=8}function g(e,n){var r=new t(e.toArray());return n?r.toString(n):r}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in p)return p[r];var u,f=0;if(e.isEven()||!d.simpleSieve||!d.fermatTest(e)||!o.test(e))return f+=1,f+="02"===n||"05"===n?8:4,p[r]=f,f;switch(o.test(e.shrn(1))||(f+=2),n){case"02":e.mod(i).cmp(a)&&(f+=8);break;case"05":(u=e.mod(l)).cmp(s)&&u.cmp(c)&&(f+=8);break;default:f+=4}return p[r]=f,f}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new r(u(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var n=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),o=new t(n.toArray()),i=this.getPrime();if(o.length0&&n.ishrn(r),n}function u(e,n,o){var i,a;do{for(i=new t(0);8*i.length=0&&(a=t,l=n),r.negative&&(r=r.neg(),i=i.neg()),a.negative&&(a=a.neg(),l=l.neg()),[{a:r,b:i},{a:a,b:l}]},s.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],o=r.b.mul(e).divRound(this.n),i=n.b.neg().mul(e).divRound(this.n),a=o.mul(n.a),l=i.mul(r.a),s=o.mul(n.b),c=i.mul(r.b);return{k1:e.sub(a).sub(l),k2:s.add(c).neg()}},s.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},s.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),o=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(o).cmpn(0)},s.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,o=this._endoWnafT2,i=0;i":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),o=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),i=o.redSqr().redISub(this.x.redAdd(this.x)),a=o.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,n){var r=[this,t],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o):this.curve._wnafMulAdd(1,r,o,2)},c.prototype.jmulAdd=function(e,t,n){var r=[this,t],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o,!0):this.curve._wnafMulAdd(1,r,o,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},i(d,a.BasePoint),s.prototype.jpoint=function(e,t,n){return new d(this,e,t,n)},d.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},d.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},d.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),o=e.x.redMul(n),i=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),l=r.redSub(o),s=i.redSub(a);if(0===l.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=l.redSqr(),d=c.redMul(l),u=r.redMul(c),f=s.redSqr().redIAdd(d).redISub(u).redISub(u),h=s.redMul(u.redISub(f)).redISub(i.redMul(d)),p=this.z.redMul(e.z).redMul(l);return this.curve.jpoint(f,h,p)},d.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),o=this.y,i=e.y.redMul(t).redMul(this.z),a=n.redSub(r),l=o.redSub(i);if(0===a.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=a.redSqr(),c=s.redMul(a),d=n.redMul(s),u=l.redSqr().redIAdd(c).redISub(d).redISub(d),f=l.redMul(d.redISub(u)).redISub(o.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(u,f,h)},d.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,n=0;n=0)return!1;if(n.redIAdd(o),0===this.x.cmp(n))return!0}},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,n){"use strict";var r=n(13),o=n(4),i=n(89),a=n(24);function l(e){i.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function s(e,t,n){i.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(l,i),e.exports=l,l.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},o(s,i.BasePoint),l.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},l.prototype.point=function(e,t){return new s(this,e,t)},l.prototype.pointFromJSON=function(e){return s.fromJSON(this,e)},s.prototype.precompute=function(){},s.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},s.fromJSON=function(e,t){return new s(e,t[0],t[1]||e.one)},s.prototype.inspect=function(){return this.isInfinity()?"":""},s.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},s.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),o=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,o)},s.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),o=e.x.redAdd(e.z),i=e.x.redSub(e.z).redMul(n),a=o.redMul(r),l=t.z.redMul(i.redAdd(a).redSqr()),s=t.x.redMul(i.redISub(a).redSqr());return this.curve.point(l,s)},s.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var i=o.length-1;i>=0;i--)0===o[i]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},s.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},s.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,n){"use strict";var r=n(24),o=n(13),i=n(4),a=n(89),l=r.assert;function s(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),l(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,n,r,i){a.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(n,16),this.z=r?new o(r,16):this.curve.one,this.t=i&&new o(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}i(s,a),e.exports=s,s.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},s.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},s.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},s.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),a=r.redMul(i.redInvm()),l=a.redSqrt();if(0!==l.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var s=l.fromRed().isOdd();return(t&&!s||!t&&s)&&(l=l.redNeg()),this.point(e,l)},s.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),a=r.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var l=a.redSqrt();if(0!==l.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return l.fromRed().isOdd()!==t&&(l=l.redNeg()),this.point(l,e)},s.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),o=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(o)},i(c,a.BasePoint),s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},s.prototype.point=function(e,t,n,r){return new c(this,e,t,n,r)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),o=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i=r.redAdd(t),a=i.redSub(n),l=r.redSub(t),s=o.redMul(a),c=i.redMul(l),d=o.redMul(l),u=a.redMul(i);return this.curve.point(s,c,u,d)},c.prototype._projDbl=function(){var e,t,n,r=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),i=this.y.redSqr();if(this.curve.twisted){var a=(c=this.curve._mulA(o)).redAdd(i);if(this.zOne)e=r.redSub(o).redSub(i).redMul(a.redSub(this.curve.two)),t=a.redMul(c.redSub(i)),n=a.redSqr().redSub(a).redSub(a);else{var l=this.z.redSqr(),s=a.redSub(l).redISub(l);e=r.redSub(o).redISub(i).redMul(s),t=a.redMul(c.redSub(i)),n=a.redMul(s)}}else{var c=o.redAdd(i);l=this.curve._mulC(this.z).redSqr(),s=c.redSub(l).redSub(l);e=this.curve._mulC(r.redISub(c)).redMul(s),t=this.curve._mulC(c).redMul(o.redISub(i)),n=c.redMul(s)}return this.curve.point(e,t,n)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),o=this.z.redMul(e.z.redAdd(e.z)),i=n.redSub(t),a=o.redSub(r),l=o.redAdd(r),s=n.redAdd(t),c=i.redMul(a),d=l.redMul(s),u=i.redMul(s),f=a.redMul(l);return this.curve.point(c,d,f,u)},c.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),o=r.redSqr(),i=this.x.redMul(e.x),a=this.y.redMul(e.y),l=this.curve.d.redMul(i).redMul(a),s=o.redSub(l),c=o.redAdd(l),d=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(a),u=r.redMul(s).redMul(d);return this.curve.twisted?(t=r.redMul(c).redMul(a.redSub(this.curve._mulA(i))),n=s.redMul(c)):(t=r.redMul(c).redMul(a.redSub(i)),n=this.curve._mulC(s).redMul(c)),this.curve.point(u,t,n)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},c.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,n){"use strict";t.sha1=n(453),t.sha224=n(454),t.sha256=n(202),t.sha384=n(455),t.sha512=n(203)},function(e,t,n){"use strict";var r=n(33),o=n(71),i=n(201),a=r.rotl32,l=r.sum32,s=r.sum32_5,c=i.ft_1,d=o.BlockHash,u=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(f,d),e.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;rthis.blockSize&&(e=(new this.Hash).update(e).digest()),o(e.length<=this.blockSize);for(var t=e.length;t0))return a.iaddn(1),this.keyFromPrivate(a)}},f.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,n,a){"object"===r(n)&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new o(e,16));for(var l=this.n.byteLength(),s=t.getPrivate().toArray("be",l),c=e.toArray("be",l),d=new i({hash:this.hash,entropy:s,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"}),f=this.n.sub(new o(1)),h=0;;h++){var p=a.k?a.k(h):new o(d.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(f)>=0)){var m=this.g.mul(p);if(!m.isInfinity()){var g=m.getX(),v=g.umod(this.n);if(0!==v.cmpn(0)){var b=p.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e));if(0!==(b=b.umod(this.n)).cmpn(0)){var y=(m.getY().isOdd()?1:0)|(0!==g.cmp(v)?2:0);return a.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),y^=1),new u({r:v,s:b,recoveryParam:y})}}}}}},f.prototype.verify=function(e,t,n,r){e=this._truncateToN(new o(e,16)),n=this.keyFromPublic(n,r);var i=(t=new u(t,"hex")).r,a=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var l,s=a.invm(this.n),c=s.mul(e).umod(this.n),d=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(l=this.g.jmulAdd(c,n.getPublic(),d)).isInfinity()&&l.eqXToP(i):!(l=this.g.mulAdd(c,n.getPublic(),d)).isInfinity()&&0===l.getX().umod(this.n).cmp(i)},f.prototype.recoverPubKey=function(e,t,n,r){c((3&n)===n,"The recovery param is more than two bits"),t=new u(t,r);var i=this.n,a=new o(e),l=t.r,s=t.s,d=1&n,f=n>>1;if(l.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");l=f?this.curve.pointFromX(l.add(this.curve.n),d):this.curve.pointFromX(l,d);var h=t.r.invm(i),p=i.sub(a).mul(h).umod(i),m=s.mul(h).umod(i);return this.g.mulAdd(p,l,m)},f.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new u(t,r)).recoveryParam)return t.recoveryParam;for(var o=0;o<4;o++){var i;try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(n))return o}throw new Error("Unable to find valid recovery factor")}},function(e,t,n){"use strict";var r=n(136),o=n(199),i=n(23);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=o.toArray(e.entropy,e.entropyEnc||"hex"),n=o.toArray(e.nonce,e.nonceEnc||"hex"),r=o.toArray(e.pers,e.persEnc||"hex");i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=a,a.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},a.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=o.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length"}},function(e,t,n){"use strict";var r=n(13),o=n(24),i=o.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(i(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function l(){this.place=0}function s(e,t){var n=e[t.place++];if(!(128&n))return n;for(var r=15&n,o=0,i=0,a=t.place;i>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=o.toArray(e,t);var n=new l;if(48!==e[n.place++])return!1;if(s(e,n)+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var i=s(e,n),a=e.slice(n.place,i+n.place);if(n.place+=i,2!==e[n.place++])return!1;var c=s(e,n);if(e.length!==c+n.place)return!1;var d=e.slice(n.place,c+n.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===d[0]&&128&d[1]&&(d=d.slice(1)),this.r=new r(a),this.s=new r(d),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=c(t),n=c(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];d(r,t.length),(r=r.concat(t)).push(2),d(r,n.length);var i=r.concat(n),a=[48];return d(a,i.length),a=a.concat(i),o.encode(a,e)}},function(e,t,n){"use strict";var r=n(136),o=n(135),i=n(24),a=i.assert,l=i.parseBytes,s=n(464),c=n(465);function d(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof d))return new d(e);e=o[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=d,d.prototype.sign=function(e,t){e=l(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),o=this.g.mul(r),i=this.encodePoint(o),a=this.hashInt(i,n.pubBytes(),e).mul(n.priv()),s=r.add(a).umod(this.curve.n);return this.makeSignature({R:o,S:s,Rencoded:i})},d.prototype.verify=function(e,t,n){e=l(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),o=this.hashInt(t.Rencoded(),r.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(r.pub().mul(o)).eq(i)},d.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=t)throw new Error("invalid sig")}e.exports=function(e,n,s,c,d){var u=i(s);if("ec"===u.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,n){var r=a[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var i=new o(r),l=n.data.subjectPrivateKey.data;return i.verify(t,e,l)}(e,n,u)}if("dsa"===u.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,n){var o=n.data.p,a=n.data.q,s=n.data.g,c=n.data.pub_key,d=i.signature.decode(e,"der"),u=d.s,f=d.r;l(u,a),l(f,a);var h=r.mont(o),p=u.invm(a);return 0===s.toRed(h).redPow(new r(t).mul(p).mod(a)).fromRed().mul(c.toRed(h).redPow(f.mul(p).mod(a)).fromRed()).mod(o).mod(a).cmp(f)}(e,n,u)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");n=t.concat([d,n]);for(var f=u.modulus.byteLength(),h=[1],p=0;n.length+h.length+2n-f-2)throw new Error("message too long");var h=u.alloc(n-r-f-2),p=n-d-1,m=o(d),g=l(u.concat([c,h,u.alloc(1,1),t],p),a(m,p)),v=l(m,a(g,d));return new s(u.concat([u.alloc(1),v,g],n))}(p,t);else if(1===f)h=function(e,t,n){var r,i=t.length,a=e.modulus.byteLength();if(i>a-11)throw new Error("message too long");r=n?u.alloc(a-i-3,255):function(e){var t,n=u.allocUnsafe(e),r=0,i=o(2*e),a=0;for(;r=0)throw new Error("data too long for modulus")}return n?d(h,p):c(h,p)}},function(e,t,n){var r=n(90),o=n(209),i=n(210),a=n(13),l=n(133),s=n(68),c=n(211),d=n(5).Buffer;e.exports=function(e,t,n){var u;u=e.padding?e.padding:n?1:4;var f,h=r(e),p=h.modulus.byteLength();if(t.length>p||new a(t).cmp(h.modulus)>=0)throw new Error("decryption error");f=n?c(new a(t),h):l(t,h);var m=d.alloc(p-f.length);if(f=d.concat([m,f],p),4===u)return function(e,t){var n=e.modulus.byteLength(),r=s("sha1").update(d.alloc(0)).digest(),a=r.length;if(0!==t[0])throw new Error("decryption error");var l=t.slice(1,a+1),c=t.slice(a+1),u=i(l,o(c,a)),f=i(c,o(u,n-a-1));if(function(e,t){e=d.from(e),t=d.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));var o=-1;for(;++o=t.length){i++;break}var a=t.slice(2,o-1);("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&i++;a.length<8&&i++;if(i)throw new Error("decryption error");return t.slice(o)}(0,f,n);if(3===u)return f;throw new Error("unknown padding")}},function(e,t,n){"use strict";(function(e,r){function o(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var i=n(5),a=n(61),l=i.Buffer,s=i.kMaxLength,c=e.crypto||e.msCrypto,d=Math.pow(2,32)-1;function u(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>d||e<0)throw new TypeError("offset must be a uint32");if(e>s||e>t)throw new RangeError("offset out of range")}function f(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>d||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>s)throw new RangeError("buffer too small")}function h(e,t,n,o){if(r.browser){var i=e.buffer,l=new Uint8Array(i,t,n);return c.getRandomValues(l),o?void r.nextTick((function(){o(null,e)})):e}if(!o)return a(n).copy(e,t),e;a(n,(function(n,r){if(n)return o(n);r.copy(e,t),o(null,e)}))}c&&c.getRandomValues||!r.browser?(t.randomFill=function(t,n,r,o){if(!(l.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)o=n,n=0,r=t.length;else if("function"==typeof r)o=r,r=t.length-n;else if("function"!=typeof o)throw new TypeError('"cb" argument must be a function');return u(n,t.length),f(r,n,t.length),h(t,n,r,o)},t.randomFillSync=function(t,n,r){void 0===n&&(n=0);if(!(l.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');u(n,t.length),void 0===r&&(r=t.length-n);return f(r,n,t.length),h(t,n,r)}):(t.randomFill=o,t.randomFillSync=o)}).call(this,n(37),n(40))},function(e,t,n){var r=n(212),o=n(215),i=n(488);function a(e,t){return new i(t).process(e)}for(var l in(t=e.exports=a).filterXSS=a,t.FilterXSS=i,r)t[l]=r[l];for(var l in o)t[l]=o[l];"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)},function(e,t,n){var r=n(213),o=n(487);n(214);function i(e){return null==e}function a(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).whiteList=e.whiteList||r.whiteList,e.onAttr=e.onAttr||r.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||r.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||r.safeAttrValue,this.options=e}a.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onAttr,a=t.onIgnoreAttr,l=t.safeAttrValue;return o(e,(function(e,t,o,s,c){var d=n[o],u=!1;if(!0===d?u=d:"function"==typeof d?u=d(s):d instanceof RegExp&&(u=d.test(s)),!0!==u&&(u=!1),s=l(o,s)){var f,h={position:t,sourcePosition:e,source:c,isWhite:u};return u?i(f=r(o,s,h))?o+":"+s:f:i(f=a(o,s,h))?void 0:f}}))},e.exports=a},function(e,t,n){var r=n(214);e.exports=function(e,t){";"!==(e=r.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,o=!1,i=0,a=0,l="";function s(){if(!o){var n=r.trim(e.slice(i,a)),s=n.indexOf(":");if(-1!==s){var c=r.trim(n.slice(0,s)),d=r.trim(n.slice(s+1));if(c){var u=t(i,l.length,c,d,n);u&&(l+=u+"; ")}}}i=a+1}for(;a";var b=function(e){var t=s.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=s.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=s.trim(e.slice(0,-1))),{html:e,closing:n}}(a),y=n[o],_=l(b.html,(function(e,t){var n,r=-1!==s.indexOf(y,e);return c(n=d(o,e,t,r))?r?(t=f(o,e,t,p))?e+'="'+t+'"':e:c(n=u(o,e,t,r))?void 0:n:n}));a="<"+o;return _&&(a+=" "+_),b.closing&&(a+=" /"),a+=">"}return c(g=i(o,a,v))?h(a):g}),h);return m&&(g=m.remove(g)),g},e.exports=d},function(e,t,n){var r=n(1),o=n(91),i=n(3),a=n(63),l=navigator.userAgent;function s(e,t){var n;if(t)for(n in e)e.hasOwnProperty(n)&&void 0!==t[n]&&(/^(editor|reader|lazyLoad|wizTemplate|pureReadMode|nightMode|documentData|callback|timeout|markdownPlugIn|ios|pc|table|code)$/.test(n)?s(e[n],t[n]):e[n]=t[n])}e.exports=function(e){var t=function(e){var t=this,n={},o="1"===i.storage.get(r.CODE.StorageKey.Wrap),a={options:{document:null,container:null,useFrame:!1,lazyLoad:{enable:!1},htmlBaseUrl:"",lang:"en",clientType:"",userInfo:null,usersData:[],userNameEncoder:"",dependencyUrl:"",wizTemplate:{url:""},pureReadMode:{enable:!1,needContentExtraction:!1,borderColor:"",htmlBgColor:"",bodyBgColor:""},nightMode:{enable:!1,color:"",bgColor:"",brightness:""},editor:{type:r.NOTE_EDITOR_TYPE.COMMON,autoFocus:!0,autoCheckLink:!0,minHeight:300,maxUndo:100,callback:{undo:null,markerUndo:null,markerInitiated:null,onKeyDown:null,onClick:null,onPasteFile:null,onDropFile:null,onClickToolbarInsertImg:null,onClickToolbarHelp:null,onReuploadImage:null,onUploadImage:null}},reader:{type:r.NOTE_READER_TYPE.COMMON,minHeight:300,codeNoIDE:!1,autoEdit:!1,noAmend:!1,clickImageEvent:"dblclick",markdownPlugIn:{imgSrcFilter:null,customBlockGamut:null},callback:{beforeMarkdownRender:null,markdown:null,mathJax:null,onClick:null,onAutoEdit:null},timeout:{markdown:3e4,mathJax:3e4}},callback:{onClickLink:null},clientRoute:{getUserAlias:null,getUserAvatarFileName:null,getUserGuid:null,hasPermission:null,isPersonalDocument:null,checkDocLock:null,getOriginalDoc:null,saveDoc:null},pc:{pluginModified:!1},table:{colWidth:120,colWidthMin:30,rowHeightMin:33},code:{lineWrapping:o}},locale:{},win:null,doc:null,body:null,documentType:r.DOCUMENT_TYPE.COMMON,scrollContainer:null,readonly:null,isShowPreview:!1,isSetBodyFontSize:!1,isWizTemplate:null,compositionStart:!1,compositionStartRange:null,indexFilesPath:"",indexFilesFullPath:"",supportTouchEvent:!1,frame:{dom:null,toolbarDoc:null,toolbarContainer:null,bodyContainer:null},dependency:{files:{css:{fonts:"".concat(e,"/fonts.css?v=").concat(r.version),github2:"".concat(e,"/github2.css?v=").concat(r.version),kityminder:"".concat(e,"/minder/kityminder.core.css?v=").concat(r.minderVersion),wizToc:"".concat(e,"/wizToc.css?v=").concat(r.version)},cursor:{formatPainter:"".concat(e,"/format-painter-wiz.cur?v=").concat(r.version)},js:{codemirror:"".concat(e,"/codemirror/codemirror.js?v=").concat(r.version),cmSimple:"".concat(e,"/codemirror/addon/mode/simple.js?v=").concat(r.version),cmActiveLine:"".concat(e,"/codemirror/addon/selection/active-line.js?v=").concat(r.version),cmMatchBrackets:"".concat(e,"/codemirror/addon/edit/matchbrackets.js?v=").concat(r.version),cmMode:"".concat(e,"/codemirror/mode/mode.js?v=").concat(r.version),flowchart:"".concat(e,"/flowchart.js?v=").concat(r.version),jquery:"".concat(e,"/jquery-3.3.1.js?v=").concat(r.version),kity:"".concat(e,"/minder/kity.min.js?v=").concat(r.minderVersion),kityminder:"".concat(e,"/minder/kityminder.core.min.js?v=").concat(r.minderVersion),mathJax:"".concat(e,"/mathjax/MathJax.js?config=TeX-AMS-MML_SVG&v=").concat(r.version),prettify:"".concat(e,"/prettify.js?v=").concat(r.version),raphael:"".concat(e,"/raphael.js?v=").concat(r.version),sequence:"".concat(e,"/sequence-diagram.js?v=").concat(r.version),underscore:"".concat(e,"/underscore.js?v=").concat(r.version),wizContent:"".concat(e,"/WizContent.js?v=").concat(r.wizContentVersion),wizPainter:"".concat(e,"/painter/WizSvgPainter.js?v=").concat(r.wizPainterVersion),wizTemplate:""}},css:{fonts:["fonts"],markdown:["github2","wizToc"],minder:["kityminder"]},js:{codeMirror:[["codemirror"],["cmSimple","cmActiveLine","cmMatchBrackets","cmMode"]],markdown:[["jquery"],["prettify","raphael","underscore"],["flowchart","sequence"]],mathJax:[["jquery"],["mathJax"]],minder:[["kity"],["kityminder"]],wizContent:[["wizContent"]],wizPainter:[["wizPainter"]],wizTemplate:[["wizTemplate"]]}},client:{type:{isWeb:location&&0===location.protocol.indexOf("http"),isWin:!1,isMac:!1,isLinux:!1,isIOS:!1,isAndroid:!1,isPad:!1,isPhone:!1},sendCmdToWizClient:function(){}},browser:{isAndroid:!!l.match(/Android/i),isIOS:!!l.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/i),isIPad:!!l.match(/iPad/i),isIPhone:!!l.match(/iPhone/i),isLinux:!!l.match(/Linux/i),isMac:!!l.match(/Macintosh/i),isMobile:!!l.match(/AppleWebKit.*Mobile.*/i),isWeChat:!!l.match(/MicroMessenger/i),isWindows:!!l.match(/Window/i),isIe:!!l.match(/msie|trident/i)}};return a.event={isPause:function(e){return!!a.event[e+"_pause"]},setPause:function(e,t){a.event[e+"_pause"]=!!t},add:function(e,t){var r=n[e];r||(r=[]);e&&t&&!function(e,t){if(!e||!t)return!1;var r,o,i=n[e];if(!i||0===i.length)return!1;for(r=0,o=i.length;r-1)t.client.type.isWin=!0,t.client.sendCmdToWizClient=function(e,n){e===r.CLIENT_EVENT.WizReaderClickImg?t.win.external.OnClickedImage(n.src,JSON.stringify(n.imgList)):e===r.CLIENT_EVENT.WizEditorClickSvg&&t.win.external.OnClickedSvg(JSON.stringify(n))};else if(e.indexOf("ios")>-1)t.client.type.isIOS=!0,t.client.sendCmdToWizClient=function(e,n){if(e===r.CLIENT_EVENT.WizEditorClickSvg)t.win.webkit.messageHandlers.onClickedSvg.postMessage(JSON.stringify(n));else if(e===r.CLIENT_EVENT.WizEditorPaste)t.win.webkit.messageHandlers.didWizEditorPaste.postMessage(null);else if(e===r.CLIENT_EVENT.WizEditorSetScrollTop)t.win.webkit.messageHandlers.setScrollTop.postMessage(n);else if(e===r.CLIENT_EVENT.WizEditorTrackEvent)t.win.webkit.messageHandlers.didWizEditorTrackEvent.postMessage({options:n});else if(e===r.CLIENT_EVENT.WizReaderClickImg)t.win.webkit.messageHandlers.WizReaderClickImg.postMessage({src:n.src});else if(e===r.CLIENT_EVENT.IosPrompt)return JSON.parse(prompt(JSON.stringify(n)))};else if(e.indexOf("android")>-1)t.client.type.isAndroid=!0,t.client.sendCmdToWizClient=function(e,n){e===r.CLIENT_EVENT.WizReaderClickImg?t.win.WizNote.onClickImg(n.src,n.imgList.join(",")):e===r.CLIENT_EVENT.WizEditorClickImg?t.win.WizNote.onEditorClickImage(n.src):e===r.CLIENT_EVENT.WizEditorClickSvg&&t.win.WizNote.onClickedSvg(JSON.stringify(n))};else if(e.indexOf("mac")>-1){var o=t.win.navigator.userAgent;/Mac/i.test(o)||(t.client.type.isLinux=!0),t.client.type.isMac=!0,t.client.sendCmdToWizClient=function(e,n){e===r.CLIENT_EVENT.WizReaderClickImg?t.win.WizExplorerApp.onClickedImage(n.src,JSON.stringify(n.imgList)):e===r.CLIENT_EVENT.WizEditorAfterCopied?setTimeout((function(){t.win.WizQtEditor.afterCopied()}),100):e===r.CLIENT_EVENT.WizEditorClickSvg?t.win.WizQtEditor.onClickedSvg(JSON.stringify(n)):e===r.CLIENT_EVENT.WizEditorPaste&&t.win.WizQtEditor.doPaste()}}else(e.indexOf("web")>-1||t.client.type.isWeb)&&(n=!0,t.client.type.isWeb=!0,t.client.sendCmdToWizClient=function(e,n){var o=t.options.document.defaultView;e===r.CLIENT_EVENT.WizEditorClickSvg&&o.WizWebEditor.onClickedSvg(n)});n||(t.client.type.isWeb=!1),(t.client.type.isIOS||t.client.type.isAndroid)&&(e.indexOf("pad")>-1?t.client.type.isPad=!0:t.client.type.isPhone=!0)}}(t.options.clientType,t);var d=decodeURIComponent(location.pathname),u=d.lastIndexOf("/")+1,f=d.lastIndexOf("."),h="";if(f>0&&(h=d.substring(u,f)),t.indexFilesPath=h+"_files",t.indexFilesFullPath=location.protocol+"//"+location.host+d.substr(0,u)+t.indexFilesPath+"/","base64"===t.options.userNameEncoder&&((n=t.options.userInfo)&&n.user_name&&(n.user_name=o.decode(n.user_name)),t.options.userData))for(var p=0;p0)):g?n.domUtils.after(i,g):1===r.nodeType?o0),n.rangeUtils.setRange(e,1,e,1))}();else if(E)!function(){var e=n.domUtils.createSpan();e.innerHTML=d.FILL_CHAR,(m=n._amendUtils.splitDeletedDom(r,o))?(n.domUtils.after(e,E),n.rangeUtils.setRange(e,1,e,1)):(n.domUtils.before(e,E,o>0),n.rangeUtils.setRange(e,1,e,1))}();else if(n._h6Patch())return void u.stopEvent(e);b.collapseToEnd()}},onKeyDownReverse:function(e){var t=e.keyCode||e.which,r=n.rangeUtils.getRange(),o=n._amendUtils.fixedAmendRange(),i=function(e,t){var r,o;e&&((o=n._amendUtils.getWizAmendParent(e))&&1===o.childNodes.length&&((r=n.domUtils.createSpan()).innerHTML=d.FILL_CHAR+d.FILL_CHAR,n.domUtils.before(r,o,t>0),n.domUtils.remove(o),n.rangeUtils.setRange(r,t>0?0:2,r,1)))};if(8===t)return n.req.historyUtils.saveSnap(!1),void(r&&r.collapsed&&o&&o.leftDom&&(o.startImg=n._amendUtils.getWizAmendImgParent(o.leftDom),o.startImg?(o.startDom=o.startImg,o.startOffset=0,n.rangeUtils.setRange(o.startDom,o.startOffset,o.endDom,o.endOffset)):3===o.leftDom.nodeType&&1===o.leftDom.nodeValue.length&&i(o.leftDom,-1)));if(46===t)return n.req.historyUtils.saveSnap(!1),void(r&&r.collapsed&&o&&o.rightDom&&(o.endImg=n._amendUtils.getWizAmendImgParent(o.rightDom),o.endImg?(o.endDom=o.endImg,o.endOffset=o.endImg.childNodes.length,n.rangeUtils.setRange(o.startDom,o.startOffset,o.endDom,o.endOffset)):3===o.rightDom.nodeType&&1===o.rightDom.nodeValue.length&&i(o.rightDom,1)));if(!u.checkNonTxtKey(e)){n.req.historyUtils.saveSnap(!1),n.splitAmendDomByRange(o);var a=n.req.tableUtils.checkCaretInTableContainer();n.req.blockUtils.insertEmptyLine(a.tableContainer,a.after),13===t&&n._h6Patch()&&u.stopEvent(e)}},onMouseDown:function(e){n._amendInfo.isInfo(e.target)?u.stopEvent(e):n._amendInfo.stop()},onMouseUp:function(){n._amendInfo.start()},onTouchStart:function(e){}},n.accept=function(e){var t,r=n.rangeUtils.getSelection(),o={};if(e.total)o.selection=!0,o.selectAll=!0;else if(e.dom&&!e.isSelection)o.domList=n._amendUtils.getSameTimeStampDom(e.dom),o.selection=!1;else{if(0===r.rangeCount)return;o.selection=!0,o.selectAll=!1}n.req.historyUtils.saveSnap(!1),(t=o.selection&&!o.selectAll?n._amendUtils.getSelectedAmendDoms():n._amendUtils.getAmendDoms(o))&&(n._amendUtils.splitSelectedAmendDoms(t),n._amendUtils.wizAmendDelete(t.deleteList),n._amendUtils.wizAmendDelete(t.deletedInsertList),n._amendUtils.wizAmendSave(t.insertList)),n.domUtils.clearChildSpan(n.env.body,[])},n.changeCurUser=function(e){n.env.options.userInfo=e,n._amendUser.initUser()},n.fixPaste=function(e,t,r){n._amendUtils.modifyDomForPaste(e,t,r)},n.fragmentFilter=function(e){if(!e)return!1;for(var t=e.querySelectorAll("."+d.CLASS.WIZ_BODY+" span["+d.ATTR.SPAN_DELETE+'="'+n._amendUser.getCurUser().hash+'"]'),r=t.length-1;r>=0;r--){var o=t[r];n.domUtils.remove(o)}},n.hideAmendInfo=function(){n._amendInfo.hide(!0)},n.isAmendEdited=function(){return n._amendUtils.isAmendEdited()},n.hasAmendSpanByCursor=function(){var e=n._amendUtils.getAmendDoms({selection:!0,selectAll:!1});return e.insertList.length>0||e.deleteList.length>0||e.deletedInsertList.length>0},n.readyForPaste=function(){var e,t,r,o,i,a,l,s,c,u,f,h,p,m,g,v=n.rangeUtils.getRange();v&&(v.collapsed||(e=n.domUtils.getParentByTagName(v.endContainer,["td","th"],!0,null),n._amendUtils.removeSelection(n._amendUser.getCurUser()),n._amendUtils.removeUserDel(null,n._amendUser.getCurUser())),t=(v=n.rangeUtils.getRange()).endContainer,r=v.endOffset,n.domUtils.isTag(t,["td","th"])&&0===r&&e!==t&&(t=e,r=n.domUtils.getEndOffset(t)),p=n._amendUtils.splitInsertDom(t,r,!0,n._amendUser.getCurUser()),o=(new Date).valueOf(),i=n._amendUtils.createDomForPaste(o),a=i.start,l=i.content,s=i.end,m=n._amendUtils.getWizAmendImgParent(t),p.split?(3===t.nodeType&&(t=t.parentNode),n.domUtils.before([a,l,s],t,r>0)):m?n.domUtils.after([a,l,s],m):1===t.nodeType?(g=!1,n.domUtils.isTag(t,["td","th"])&&(n.domUtils.isEmptyDom(t)&&(t.innerHTML="",t.appendChild(n.domUtils.createSpan())),g=!0),r0&&0===t.deleteList.length&&0===t.insertList.length;n._amendUtils.wizAmendSave(t.deleteList),i&&n._amendUtils.wizAmendSave(t.deletedInsertList),n._amendUtils.wizAmendDelete(t.insertList),i||n._amendUtils.wizAmendDelete(t.deletedInsertList)}n.domUtils.clearChildSpan(n.env.body,[])},n.splitAmendDomByRange=function(e){return n._amendUtils.splitAmendDomByRange(e)},n.start=function(){n._isAmendEditing=!0,n.stopReverse(),n._event.bind(),n.startAmendInfo()},n.startReverse=function(){n.stop(),n._event.bindReverse(),n.startAmendInfo()},n.startAmendInfo=function(e){n._amendInfo.init(e,{onAccept:n._handler.onAccept,onRefuse:n._handler.onRefuse})},n.stop=function(){n._isAmendEditing=!1,n._event.unbind(),n._amendInfo.off()},n.stopReverse=function(){n._event.unbindReverse(),n._amendInfo.off()},n.stopAmendInfo=function(){n._amendInfo.off()},n}var n,r,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,e),n=t,(r=[{key:"initCore",value:function(e){var n=this;l(s(t.prototype),"initCore",this).call(this,e),this._amendInfo=e.require.amendInfo,this._amendUser=e.require.amendUser,this._amendUtils=e.require.amendUtils,function(){var e=n.domUtils.modifyNodeStyle;n.domUtils.modifyNodeStyle=function(t,r,o,i){var a;return 1===t.nodeType&&o&&o[d.ATTR.SPAN_DELETE]&&n.domUtils.isTag(t,"img")?(n._amendUtils.deleteImg(t,n._amendUser.getCurUser()),t):1===t.nodeType&&o&&o[d.ATTR.SPAN_DELETE]&&n.domUtils.isEmptyDom(t)?((a=t.parentNode).removeChild(t),n.domUtils.removeEmptyParent(a),t):1===t.nodeType&&o&&o[d.ATTR.SPAN_DELETE]&&n.domUtils.isSelfClosingTag(t)?t:o&&o[d.ATTR.SPAN_DELETE]&&n._amendUtils.getWizDeleteParent(t)?t:e(t,r,o,i)};var t=n.domUtils.addDomForGetDomList;n.domUtils.addDomForGetDomList=function(e,r){n._amendUtils.isWizDelete(r)||3===r.nodeType&&!n.domUtils.getParentByTagName(r,["td","th"],!1,null)&&n.domUtils.getParentByTagName(r,"table",!1,null)||t(e,r)}}()}},{key:"isAmendEditing",get:function(){return this._isAmendEditing}}])&&i(n.prototype,r),f&&i(n,f),t}(n(2));e.exports=f},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n