text
stringlengths
2
1.05M
var PAGE1 = document.page1.document; var PAGE2 = document.page2.document; var BUTTONS = document.buttons.document; var SERVER_LIST = PAGE1.server_list; var CONNECTION_LIST = PAGE1.connection_list; var TABLE_LIST = PAGE1.table_list; var DATABASE_LIST = PAGE1.database_list; var KEY_LIST = PAGE2.key_list; var SEARCH_LIST = PAGE2.search_list; var INCLUDE_COLUMNS_LIST = PAGE2.include_columns_list; var EXCLUDE_COLUMNS_LIST = PAGE2.exclude_columns_list; var CANCEL_BUTTON = BUTTONS.cancel_button; var PREVIOUS_BUTTON = BUTTONS.previous_button; var NEXT_BUTTON = BUTTONS.next_button; var pages = new Array(); pages[1] = document.page1; pages[2] = document.page2; function canAcceptCommand() { return false; } function commandButtons() { return new Array(); } function init() { var wizard = nitobi.dw.ComboWizard.getInstance(); wizard.showPage(1); wizard.showButtons(); wizard.selectServerModel(); wizard.populateConnectionList(); wizard.populateTableList(); wizard.populateDatabaseList(); } function windowDimensions() { return "600,440"; } function doNext() { var wizard = nitobi.dw.ComboWizard.getInstance(); if (wizard.currentPage < wizard.totalPages) { wizard.hidePage(wizard.currentPage); wizard.currentPage++; wizard.showPage(wizard.currentPage); if (wizard.currentPage > 1) { PREVIOUS_BUTTON.disabled = "false"; } if (wizard.currentPage == wizard.totalPages) { NEXT_BUTTON.value = "Finish"; } } else { // copy file to site, read it to string, replace anchors with values obtained from wizard. var serverModelName = wizard.getServerModelName(); var sourceFile = nitobi.dw.ComboWizard.getSourceFile(serverModelName); var destFile = nitobi.dw.ComboWizard.getDestFile(serverModelName); DWfile.copy(sourceFile, destFile); var file = wizard.createHandler(destFile); DWfile.write(destFile, file); nitobi.util.lastFileCreated = destFile; // Also need to copy appropriate xml converters nitobi.dw.ComboWizard.copyXmlConverter(serverModelName); window.close(); } } function doPrevious() { var wizard = nitobi.dw.ComboWizard.getInstance(); if (wizard.currentPage > 1) { wizard.hidePage(wizard.currentPage); wizard.currentPage--; wizard.showPage(wizard.currentPage); if (wizard.currentPage == 1) { PREVIOUS_BUTTON.disabled = "true"; } NEXT_BUTTON.value = "Next"; } } function populateTableList() { var wizard = nitobi.dw.ComboWizard.getInstance(); wizard.clear(); wizard.populateTableList(); } function populateColumnLists() { var wizard = nitobi.dw.ComboWizard.getInstance(); wizard.populateColumnLists(); } function showConnectionManager() { var wizard = nitobi.dw.ComboWizard.getInstance(); MMDB.showConnectionMgrDialog(); wizard.clear(); wizard.populateConnectionList(); wizard.populateTableList(); } function addColumn() { var wizard = nitobi.dw.ComboWizard.getInstance(); var includeList = INCLUDE_COLUMNS_LIST; var excludeList = EXCLUDE_COLUMNS_LIST; if (excludeList.selectedIndex > -1) { var item = excludeList.options[excludeList.selectedIndex]; includeList.innerHTML += item.outerHTML; var newList = excludeList.innerHTML.replace(item.outerHTML, ""); excludeList.innerHTML = newList; } } function removeColumn() { var wizard = nitobi.dw.ComboWizard.getInstance(); var includeList = INCLUDE_COLUMNS_LIST; var excludeList = EXCLUDE_COLUMNS_LIST; if (includeList.selectedIndex > -1) { var item = includeList.options[includeList.selectedIndex]; excludeList.innerHTML += item.outerHTML; var newList = includeList.innerHTML.replace(item.outerHTML, ""); includeList.innerHTML = newList; } } function toggleCustomArea(databaseType) { var wizard = nitobi.dw.ComboWizard.getInstance(); var label = document.getElementById("custom_sql_label"); var textarea = document.getElementById("custom_sql_area"); if (databaseType == "other") { label.style.display = "block"; textarea.style.display = "block"; } else { label.style.display = "none"; textarea.style.display = "none"; } } function populateDatabaseList() { var wizard = nitobi.dw.ComboWizard.getInstance(); wizard.populateDatabaseList(); }
const prefix = [ 'webkit', 'moz', 'ms', 'o' ]; export const requestAnimationFrame = (() => { for ( let i = 0, limit = prefix.length ; i < limit && ! window.requestAnimationFrame ; ++i ) { window.requestAnimationFrame = window[ prefix[ i ] + 'RequestAnimationFrame' ]; } if ( ! window.requestAnimationFrame ) { let lastTime = 0; window.requestAnimationFrame = callback => { const now = new Date().getTime(); const ttc = Math.max( 0, 16 - now - lastTime ); const timer = window.setTimeout( () => callback( now + ttc ), ttc ); lastTime = now + ttc; return timer; }; } return window.requestAnimationFrame.bind( window ); })(); export const cancelAnimationFrame = (() => { for ( let i = 0, limit = prefix.length ; i < limit && ! window.cancelAnimationFrame ; ++i ) { window.cancelAnimationFrame = window[ prefix[ i ] + 'CancelAnimationFrame' ] || window[ prefix[ i ] + 'CancelRequestAnimationFrame' ]; } if ( ! window.cancelAnimationFrame ) { window.cancelAnimationFrame = timer => { window.clearTimeout( timer ); }; } return window.cancelAnimationFrame.bind( window ); })();
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * http://www.gnu.org/licenses/gpl.html * * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") * http://www.gnu.org/licenses/lgpl.html * * - Mozilla Public License Version 1.1 or later (the "MPL") * http://www.mozilla.org/MPL/MPL-1.1.html * * == END LICENSE == * * Serbian (Cyrillic) language file. */ var FCKLang = { // Language direction : "ltr" (left to right) or "rtl" (right to left). Dir : "ltr", ToolbarCollapse : "Смањи линију са алаткама", ToolbarExpand : "Прошири линију са алаткама", // Toolbar Items and Context Menu Save : "Сачувај", NewPage : "Нова страница", Preview : "Изглед странице", Cut : "Исеци", Copy : "Копирај", Paste : "Залепи", PasteText : "Залепи као неформатиран текст", PasteWord : "Залепи из Worda", Print : "Штампа", SelectAll : "Означи све", RemoveFormat : "Уклони форматирање", InsertLinkLbl : "Линк", InsertLink : "Унеси/измени линк", RemoveLink : "Уклони линк", VisitLink : "Open Link", //MISSING Anchor : "Унеси/измени сидро", AnchorDelete : "Remove Anchor", //MISSING InsertImageLbl : "Слика", InsertImage : "Унеси/измени слику", InsertFlashLbl : "Флеш елемент", InsertFlash : "Унеси/измени флеш", InsertTableLbl : "Табела", InsertTable : "Унеси/измени табелу", InsertLineLbl : "Линија", InsertLine : "Унеси хоризонталну линију", InsertSpecialCharLbl: "Специјални карактери", InsertSpecialChar : "Унеси специјални карактер", InsertSmileyLbl : "Смајли", InsertSmiley : "Унеси смајлија", About : "О ФЦКедитору", Bold : "Подебљано", Italic : "Курзив", Underline : "Подвучено", StrikeThrough : "Прецртано", Subscript : "Индекс", Superscript : "Степен", LeftJustify : "Лево равнање", CenterJustify : "Центриран текст", RightJustify : "Десно равнање", BlockJustify : "Обострано равнање", DecreaseIndent : "Смањи леву маргину", IncreaseIndent : "Увећај леву маргину", Blockquote : "Blockquote", //MISSING CreateDiv : "Create Div Container", //MISSING EditDiv : "Edit Div Container", //MISSING DeleteDiv : "Remove Div Container", //MISSING Undo : "Поништи акцију", Redo : "Понови акцију", NumberedListLbl : "Набројиву листу", NumberedList : "Унеси/уклони набројиву листу", BulletedListLbl : "Ненабројива листа", BulletedList : "Унеси/уклони ненабројиву листу", ShowTableBorders : "Прикажи оквир табеле", ShowDetails : "Прикажи детаље", Style : "Стил", FontFormat : "Формат", Font : "Фонт", FontSize : "Величина фонта", TextColor : "Боја текста", BGColor : "Боја позадине", Source : "Kôд", Find : "Претрага", Replace : "Замена", SpellCheck : "Провери спеловање", UniversalKeyboard : "Универзална тастатура", PageBreakLbl : "Page Break", //MISSING PageBreak : "Insert Page Break", //MISSING Form : "Форма", Checkbox : "Поље за потврду", RadioButton : "Радио-дугме", TextField : "Текстуално поље", Textarea : "Зона текста", HiddenField : "Скривено поље", Button : "Дугме", SelectionField : "Изборно поље", ImageButton : "Дугме са сликом", FitWindow : "Maximize the editor size", //MISSING ShowBlocks : "Show Blocks", //MISSING // Context Menu EditLink : "Промени линк", CellCM : "Cell", //MISSING RowCM : "Row", //MISSING ColumnCM : "Column", //MISSING InsertRowAfter : "Insert Row After", //MISSING InsertRowBefore : "Insert Row Before", //MISSING DeleteRows : "Обриши редове", InsertColumnAfter : "Insert Column After", //MISSING InsertColumnBefore : "Insert Column Before", //MISSING DeleteColumns : "Обриши колоне", InsertCellAfter : "Insert Cell After", //MISSING InsertCellBefore : "Insert Cell Before", //MISSING DeleteCells : "Обриши ћелије", MergeCells : "Спој ћелије", MergeRight : "Merge Right", //MISSING MergeDown : "Merge Down", //MISSING HorizontalSplitCell : "Split Cell Horizontally", //MISSING VerticalSplitCell : "Split Cell Vertically", //MISSING TableDelete : "Delete Table", //MISSING CellProperties : "Особине ћелије", TableProperties : "Особине табеле", ImageProperties : "Особине слике", FlashProperties : "Особине Флеша", AnchorProp : "Особине сидра", ButtonProp : "Особине дугмета", CheckboxProp : "Особине поља за потврду", HiddenFieldProp : "Особине скривеног поља", RadioButtonProp : "Особине радио-дугмета", ImageButtonProp : "Особине дугмета са сликом", TextFieldProp : "Особине текстуалног поља", SelectionFieldProp : "Особине изборног поља", TextareaProp : "Особине зоне текста", FormProp : "Особине форме", FontFormats : "Normal;Formatirano;Adresa;Heading 1;Heading 2;Heading 3;Heading 4;Heading 5;Heading 6", // Alerts and Messages ProcessingXHTML : "Обрађујем XHTML. Maлo стрпљења...", Done : "Завршио", PasteWordConfirm : "Текст који желите да налепите копиран је из Worda. Да ли желите да буде очишћен од формата пре лепљења?", NotCompatiblePaste : "Ова команда је доступна само за Интернет Екплорер од верзије 5.5. Да ли желите да налепим текст без чишћења?", UnknownToolbarItem : "Непозната ставка toolbara \"%1\"", UnknownCommand : "Непозната наредба \"%1\"", NotImplemented : "Наредба није имплементирана", UnknownToolbarSet : "Toolbar \"%1\" не постоји", NoActiveX : "Your browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING BrowseServerBlocked : "The resources browser could not be opened. Make sure that all popup blockers are disabled.", //MISSING DialogBlocked : "It was not possible to open the dialog window. Make sure all popup blockers are disabled.", //MISSING VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.", //MISSING // Dialogs DlgBtnOK : "OK", DlgBtnCancel : "Oткажи", DlgBtnClose : "Затвори", DlgBtnBrowseServer : "Претражи сервер", DlgAdvancedTag : "Напредни тагови", DlgOpOther : "<Остали>", DlgInfoTab : "Инфо", DlgAlertUrl : "Молимо Вас, унесите УРЛ", // General Dialogs Labels DlgGenNotSet : "<није постављено>", DlgGenId : "Ид", DlgGenLangDir : "Смер језика", DlgGenLangDirLtr : "С лева на десно (LTR)", DlgGenLangDirRtl : "С десна на лево (RTL)", DlgGenLangCode : "Kôд језика", DlgGenAccessKey : "Приступни тастер", DlgGenName : "Назив", DlgGenTabIndex : "Таб индекс", DlgGenLongDescr : "Пун опис УРЛ", DlgGenClass : "Stylesheet класе", DlgGenTitle : "Advisory наслов", DlgGenContType : "Advisory врста садржаја", DlgGenLinkCharset : "Linked Resource Charset", DlgGenStyle : "Стил", // Image Dialog DlgImgTitle : "Особине слика", DlgImgInfoTab : "Инфо слике", DlgImgBtnUpload : "Пошаљи на сервер", DlgImgURL : "УРЛ", DlgImgUpload : "Пошаљи", DlgImgAlt : "Алтернативни текст", DlgImgWidth : "Ширина", DlgImgHeight : "Висина", DlgImgLockRatio : "Закључај однос", DlgBtnResetSize : "Ресетуј величину", DlgImgBorder : "Оквир", DlgImgHSpace : "HSpace", DlgImgVSpace : "VSpace", DlgImgAlign : "Равнање", DlgImgAlignLeft : "Лево", DlgImgAlignAbsBottom: "Abs доле", DlgImgAlignAbsMiddle: "Abs средина", DlgImgAlignBaseline : "Базно", DlgImgAlignBottom : "Доле", DlgImgAlignMiddle : "Средина", DlgImgAlignRight : "Десно", DlgImgAlignTextTop : "Врх текста", DlgImgAlignTop : "Врх", DlgImgPreview : "Изглед", DlgImgAlertUrl : "Унесите УРЛ слике", DlgImgLinkTab : "Линк", // Flash Dialog DlgFlashTitle : "Особине флеша", DlgFlashChkPlay : "Аутоматски старт", DlgFlashChkLoop : "Понављај", DlgFlashChkMenu : "Укључи флеш мени", DlgFlashScale : "Скалирај", DlgFlashScaleAll : "Прикажи све", DlgFlashScaleNoBorder : "Без ивице", DlgFlashScaleFit : "Попуни површину", // Link Dialog DlgLnkWindowTitle : "Линк", DlgLnkInfoTab : "Линк инфо", DlgLnkTargetTab : "Мета", DlgLnkType : "Врста линка", DlgLnkTypeURL : "URL", DlgLnkTypeAnchor : "Сидро на овој страници", DlgLnkTypeEMail : "Eлектронска пошта", DlgLnkProto : "Протокол", DlgLnkProtoOther : "<друго>", DlgLnkURL : "УРЛ", DlgLnkAnchorSel : "Одабери сидро", DlgLnkAnchorByName : "По називу сидра", DlgLnkAnchorById : "Пo Ид-jу елемента", DlgLnkNoAnchors : "(Нема доступних сидра)", DlgLnkEMail : "Адреса електронске поште", DlgLnkEMailSubject : "Наслов", DlgLnkEMailBody : "Садржај поруке", DlgLnkUpload : "Пошаљи", DlgLnkBtnUpload : "Пошаљи на сервер", DlgLnkTarget : "Meтa", DlgLnkTargetFrame : "<оквир>", DlgLnkTargetPopup : "<искачући прозор>", DlgLnkTargetBlank : "Нови прозор (_blank)", DlgLnkTargetParent : "Родитељски прозор (_parent)", DlgLnkTargetSelf : "Исти прозор (_self)", DlgLnkTargetTop : "Прозор на врху (_top)", DlgLnkTargetFrameName : "Назив одредишног фрејма", DlgLnkPopWinName : "Назив искачућег прозора", DlgLnkPopWinFeat : "Могућности искачућег прозора", DlgLnkPopResize : "Променљива величина", DlgLnkPopLocation : "Локација", DlgLnkPopMenu : "Контекстни мени", DlgLnkPopScroll : "Скрол бар", DlgLnkPopStatus : "Статусна линија", DlgLnkPopToolbar : "Toolbar", DlgLnkPopFullScrn : "Приказ преко целог екрана (ИE)", DlgLnkPopDependent : "Зависно (Netscape)", DlgLnkPopWidth : "Ширина", DlgLnkPopHeight : "Висина", DlgLnkPopLeft : "Од леве ивице екрана (пиксела)", DlgLnkPopTop : "Од врха екрана (пиксела)", DlnLnkMsgNoUrl : "Унесите УРЛ линка", DlnLnkMsgNoEMail : "Откуцајте адресу електронске поште", DlnLnkMsgNoAnchor : "Одаберите сидро", DlnLnkMsgInvPopName : "The popup name must begin with an alphabetic character and must not contain spaces", //MISSING // Color Dialog DlgColorTitle : "Одаберите боју", DlgColorBtnClear : "Обриши", DlgColorHighlight : "Посветли", DlgColorSelected : "Одабери", // Smiley Dialog DlgSmileyTitle : "Унеси смајлија", // Special Character Dialog DlgSpecialCharTitle : "Одаберите специјални карактер", // Table Dialog DlgTableTitle : "Особине табеле", DlgTableRows : "Редова", DlgTableColumns : "Kолона", DlgTableBorder : "Величина оквира", DlgTableAlign : "Равнање", DlgTableAlignNotSet : "<није постављено>", DlgTableAlignLeft : "Лево", DlgTableAlignCenter : "Средина", DlgTableAlignRight : "Десно", DlgTableWidth : "Ширина", DlgTableWidthPx : "пиксела", DlgTableWidthPc : "процената", DlgTableHeight : "Висина", DlgTableCellSpace : "Ћелијски простор", DlgTableCellPad : "Размак ћелија", DlgTableCaption : "Наслов табеле", DlgTableSummary : "Summary", //MISSING DlgTableHeaders : "Headers", //MISSING DlgTableHeadersNone : "None", //MISSING DlgTableHeadersColumn : "First column", //MISSING DlgTableHeadersRow : "First Row", //MISSING DlgTableHeadersBoth : "Both", //MISSING // Table Cell Dialog DlgCellTitle : "Особине ћелије", DlgCellWidth : "Ширина", DlgCellWidthPx : "пиксела", DlgCellWidthPc : "процената", DlgCellHeight : "Висина", DlgCellWordWrap : "Дељење речи", DlgCellWordWrapNotSet : "<није постављено>", DlgCellWordWrapYes : "Да", DlgCellWordWrapNo : "Не", DlgCellHorAlign : "Водоравно равнање", DlgCellHorAlignNotSet : "<није постављено>", DlgCellHorAlignLeft : "Лево", DlgCellHorAlignCenter : "Средина", DlgCellHorAlignRight: "Десно", DlgCellVerAlign : "Вертикално равнање", DlgCellVerAlignNotSet : "<није постављено>", DlgCellVerAlignTop : "Горње", DlgCellVerAlignMiddle : "Средина", DlgCellVerAlignBottom : "Доње", DlgCellVerAlignBaseline : "Базно", DlgCellType : "Cell Type", //MISSING DlgCellTypeData : "Data", //MISSING DlgCellTypeHeader : "Header", //MISSING DlgCellRowSpan : "Спајање редова", DlgCellCollSpan : "Спајање колона", DlgCellBackColor : "Боја позадине", DlgCellBorderColor : "Боја оквира", DlgCellBtnSelect : "Oдабери...", // Find and Replace Dialog DlgFindAndReplaceTitle : "Find and Replace", //MISSING // Find Dialog DlgFindTitle : "Пронађи", DlgFindFindBtn : "Пронађи", DlgFindNotFoundMsg : "Тражени текст није пронађен.", // Replace Dialog DlgReplaceTitle : "Замени", DlgReplaceFindLbl : "Пронађи:", DlgReplaceReplaceLbl : "Замени са:", DlgReplaceCaseChk : "Разликуј велика и мала слова", DlgReplaceReplaceBtn : "Замени", DlgReplaceReplAllBtn : "Замени све", DlgReplaceWordChk : "Упореди целе речи", // Paste Operations / Dialog PasteErrorCut : "Сигурносна подешавања Вашег претраживача не дозвољавају операције аутоматског исецања текста. Молимо Вас да користите пречицу са тастатуре (Ctrl+X).", PasteErrorCopy : "Сигурносна подешавања Вашег претраживача не дозвољавају операције аутоматског копирања текста. Молимо Вас да користите пречицу са тастатуре (Ctrl+C).", PasteAsText : "Залепи као чист текст", PasteFromWord : "Залепи из Worda", DlgPasteMsg2 : "Молимо Вас да залепите унутар доње површине користећи тастатурну пречицу (<STRONG>Ctrl+V</STRONG>) и да притиснете <STRONG>OK</STRONG>.", DlgPasteSec : "Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.", //MISSING DlgPasteIgnoreFont : "Игнориши Font Face дефиниције", DlgPasteRemoveStyles : "Уклони дефиниције стилова", // Color Picker ColorAutomatic : "Аутоматски", ColorMoreColors : "Више боја...", // Document Properties DocProps : "Особине документа", // Anchor Dialog DlgAnchorTitle : "Особине сидра", DlgAnchorName : "Име сидра", DlgAnchorErrorName : "Молимо Вас да унесете име сидра", // Speller Pages Dialog DlgSpellNotInDic : "Није у речнику", DlgSpellChangeTo : "Измени", DlgSpellBtnIgnore : "Игнориши", DlgSpellBtnIgnoreAll : "Игнориши све", DlgSpellBtnReplace : "Замени", DlgSpellBtnReplaceAll : "Замени све", DlgSpellBtnUndo : "Врати акцију", DlgSpellNoSuggestions : "- Без сугестија -", DlgSpellProgress : "Провера спеловања у току...", DlgSpellNoMispell : "Провера спеловања завршена: грешке нису пронађене", DlgSpellNoChanges : "Провера спеловања завршена: Није измењена ниједна реч", DlgSpellOneChange : "Провера спеловања завршена: Измењена је једна реч", DlgSpellManyChanges : "Провера спеловања завршена: %1 реч(и) је измењено", IeSpellDownload : "Провера спеловања није инсталирана. Да ли желите да је скинете са Интернета?", // Button Dialog DlgButtonText : "Текст (вредност)", DlgButtonType : "Tип", DlgButtonTypeBtn : "Button", //MISSING DlgButtonTypeSbm : "Submit", //MISSING DlgButtonTypeRst : "Reset", //MISSING // Checkbox and Radio Button Dialogs DlgCheckboxName : "Назив", DlgCheckboxValue : "Вредност", DlgCheckboxSelected : "Означено", // Form Dialog DlgFormName : "Назив", DlgFormAction : "Aкција", DlgFormMethod : "Mетода", // Select Field Dialog DlgSelectName : "Назив", DlgSelectValue : "Вредност", DlgSelectSize : "Величина", DlgSelectLines : "линија", DlgSelectChkMulti : "Дозволи вишеструку селекцију", DlgSelectOpAvail : "Доступне опције", DlgSelectOpText : "Текст", DlgSelectOpValue : "Вредност", DlgSelectBtnAdd : "Додај", DlgSelectBtnModify : "Измени", DlgSelectBtnUp : "Горе", DlgSelectBtnDown : "Доле", DlgSelectBtnSetValue : "Подеси као означену вредност", DlgSelectBtnDelete : "Обриши", // Textarea Dialog DlgTextareaName : "Назив", DlgTextareaCols : "Број колона", DlgTextareaRows : "Број редова", // Text Field Dialog DlgTextName : "Назив", DlgTextValue : "Вредност", DlgTextCharWidth : "Ширина (карактера)", DlgTextMaxChars : "Максимално карактера", DlgTextType : "Тип", DlgTextTypeText : "Текст", DlgTextTypePass : "Лозинка", // Hidden Field Dialog DlgHiddenName : "Назив", DlgHiddenValue : "Вредност", // Bulleted List Dialog BulletedListProp : "Особине Bulleted листе", NumberedListProp : "Особине набројиве листе", DlgLstStart : "Start", //MISSING DlgLstType : "Тип", DlgLstTypeCircle : "Круг", DlgLstTypeDisc : "Disc", //MISSING DlgLstTypeSquare : "Квадрат", DlgLstTypeNumbers : "Бројеви (1, 2, 3)", DlgLstTypeLCase : "мала слова (a, b, c)", DlgLstTypeUCase : "ВЕЛИКА СЛОВА (A, B, C)", DlgLstTypeSRoman : "Мале римске цифре (i, ii, iii)", DlgLstTypeLRoman : "Велике римске цифре (I, II, III)", // Document Properties Dialog DlgDocGeneralTab : "Опште особине", DlgDocBackTab : "Позадина", DlgDocColorsTab : "Боје и маргине", DlgDocMetaTab : "Метаподаци", DlgDocPageTitle : "Наслов странице", DlgDocLangDir : "Смер језика", DlgDocLangDirLTR : "Слева надесно (LTR)", DlgDocLangDirRTL : "Здесна налево (RTL)", DlgDocLangCode : "Шифра језика", DlgDocCharSet : "Кодирање скупа карактера", DlgDocCharSetCE : "Central European", //MISSING DlgDocCharSetCT : "Chinese Traditional (Big5)", //MISSING DlgDocCharSetCR : "Cyrillic", //MISSING DlgDocCharSetGR : "Greek", //MISSING DlgDocCharSetJP : "Japanese", //MISSING DlgDocCharSetKR : "Korean", //MISSING DlgDocCharSetTR : "Turkish", //MISSING DlgDocCharSetUN : "Unicode (UTF-8)", //MISSING DlgDocCharSetWE : "Western European", //MISSING DlgDocCharSetOther : "Остала кодирања скупа карактера", DlgDocDocType : "Заглавље типа документа", DlgDocDocTypeOther : "Остала заглавља типа документа", DlgDocIncXHTML : "Улључи XHTML декларације", DlgDocBgColor : "Боја позадине", DlgDocBgImage : "УРЛ позадинске слике", DlgDocBgNoScroll : "Фиксирана позадина", DlgDocCText : "Текст", DlgDocCLink : "Линк", DlgDocCVisited : "Посећени линк", DlgDocCActive : "Активни линк", DlgDocMargins : "Маргине странице", DlgDocMaTop : "Горња", DlgDocMaLeft : "Лева", DlgDocMaRight : "Десна", DlgDocMaBottom : "Доња", DlgDocMeIndex : "Кључне речи за индексирање документа (раздвојене зарезом)", DlgDocMeDescr : "Опис документа", DlgDocMeAuthor : "Аутор", DlgDocMeCopy : "Ауторска права", DlgDocPreview : "Изглед странице", // Templates Dialog Templates : "Обрасци", DlgTemplatesTitle : "Обрасци за садржај", DlgTemplatesSelMsg : "Молимо Вас да одаберете образац који ће бити примењен на страницу (тренутни садржај ће бити обрисан):", DlgTemplatesLoading : "Учитавам листу образаца. Мало стрпљења...", DlgTemplatesNoTpl : "(Нема дефинисаних образаца)", DlgTemplatesReplace : "Replace actual contents", //MISSING // About Dialog DlgAboutAboutTab : "О едитору", DlgAboutBrowserInfoTab : "Информације о претраживачу", DlgAboutLicenseTab : "License", //MISSING DlgAboutVersion : "верзија", DlgAboutInfo : "За више информација посетите", // Div Dialog DlgDivGeneralTab : "General", //MISSING DlgDivAdvancedTab : "Advanced", //MISSING DlgDivStyle : "Style", //MISSING DlgDivInlineStyle : "Inline Style", //MISSING ScaytTitle : "SCAYT", //MISSING ScaytTitleOptions : "Options", //MISSING ScaytTitleLangs : "Languages", //MISSING ScaytTitleAbout : "About" //MISSING };
module.exports=function(r,e){"use strict";var n={};function __webpack_require__(e){if(n[e]){return n[e].exports}var t=n[e]={i:e,l:false,exports:{}};r[e].call(t.exports,t,t.exports,__webpack_require__);t.l=true;return t.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(470)}e(__webpack_require__);return startup()}({21:function(r){"use strict";r.exports=((r,e)=>{e=e||process.argv;const n=r.startsWith("-")?"":r.length===1?"-":"--";const t=e.indexOf(n+r);const a=e.indexOf("--");return t!==-1&&(a===-1?true:t<a)})},30:function(r,e,n){var t=n(825);function buildGraph(){var r={};var e=Object.keys(t);for(var n=e.length,a=0;a<n;a++){r[e[a]]={distance:-1,parent:null}}return r}function deriveBFS(r){var e=buildGraph();var n=[r];e[r].distance=0;while(n.length){var a=n.pop();var o=Object.keys(t[a]);for(var i=o.length,l=0;l<i;l++){var s=o[l];var c=e[s];if(c.distance===-1){c.distance=e[a].distance+1;c.parent=a;n.unshift(s)}}}return e}function link(r,e){return function(n){return e(r(n))}}function wrapConversion(r,e){var n=[e[r].parent,r];var a=t[e[r].parent][r];var o=e[r].parent;while(e[o].parent){n.unshift(e[o].parent);a=link(t[e[o].parent][o],a);o=e[o].parent}a.conversion=n;return a}r.exports=function(r){var e=deriveBFS(r);var n={};var t=Object.keys(e);for(var a=t.length,o=0;o<a;o++){var i=t[o];var l=e[i];if(l.parent===null){continue}n[i]=wrapConversion(i,e)}return n}},87:function(r){r.exports=require("os")},149:function(r){r.exports=require("next/dist/compiled/escape-string-regexp")},184:function(r,e,n){var t=n(825);var a=n(30);var o={};var i=Object.keys(t);function wrapRaw(r){var e=function(e){if(e===undefined||e===null){return e}if(arguments.length>1){e=Array.prototype.slice.call(arguments)}return r(e)};if("conversion"in r){e.conversion=r.conversion}return e}function wrapRounded(r){var e=function(e){if(e===undefined||e===null){return e}if(arguments.length>1){e=Array.prototype.slice.call(arguments)}var n=r(e);if(typeof n==="object"){for(var t=n.length,a=0;a<t;a++){n[a]=Math.round(n[a])}}return n};if("conversion"in r){e.conversion=r.conversion}return e}i.forEach(function(r){o[r]={};Object.defineProperty(o[r],"channels",{value:t[r].channels});Object.defineProperty(o[r],"labels",{value:t[r].labels});var e=a(r);var n=Object.keys(e);n.forEach(function(n){var t=e[n];o[r][n]=wrapRounded(t);o[r][n].raw=wrapRaw(t)})});r.exports=o},265:function(r,e,n){"use strict";r=n.nmd(r);const t=n(184);const a=(r,e)=>(function(){const n=r.apply(t,arguments);return`[${n+e}m`});const o=(r,e)=>(function(){const n=r.apply(t,arguments);return`[${38+e};5;${n}m`});const i=(r,e)=>(function(){const n=r.apply(t,arguments);return`[${38+e};2;${n[0]};${n[1]};${n[2]}m`});function assembleStyles(){const r=new Map;const e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.grey=e.color.gray;for(const n of Object.keys(e)){const t=e[n];for(const n of Object.keys(t)){const a=t[n];e[n]={open:`[${a[0]}m`,close:`[${a[1]}m`};t[n]=e[n];r.set(a[0],a[1])}Object.defineProperty(e,n,{value:t,enumerable:false});Object.defineProperty(e,"codes",{value:r,enumerable:false})}const n=r=>r;const l=(r,e,n)=>[r,e,n];e.color.close="";e.bgColor.close="";e.color.ansi={ansi:a(n,0)};e.color.ansi256={ansi256:o(n,0)};e.color.ansi16m={rgb:i(l,0)};e.bgColor.ansi={ansi:a(n,10)};e.bgColor.ansi256={ansi256:o(n,10)};e.bgColor.ansi16m={rgb:i(l,10)};for(let r of Object.keys(t)){if(typeof t[r]!=="object"){continue}const n=t[r];if(r==="ansi16"){r="ansi"}if("ansi16"in n){e.color.ansi[r]=a(n.ansi16,0);e.bgColor.ansi[r]=a(n.ansi16,10)}if("ansi256"in n){e.color.ansi256[r]=o(n.ansi256,0);e.bgColor.ansi256[r]=o(n.ansi256,10)}if("rgb"in n){e.color.ansi16m[r]=i(n.rgb,0);e.bgColor.ansi16m[r]=i(n.rgb,10)}}return e}Object.defineProperty(r,"exports",{enumerable:true,get:assembleStyles})},362:function(r){"use strict";r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},470:function(r,e,n){"use strict";const t=n(149);const a=n(265);const o=n(714).stdout;const i=n(949);const l=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const s=["ansi","ansi","ansi256","ansi16m"];const c=new Set(["gray"]);const u=Object.create(null);function applyOptions(r,e){e=e||{};const n=o?o.level:0;r.level=e.level===undefined?n:e.level;r.enabled="enabled"in e?e.enabled:r.level>0}function Chalk(r){if(!this||!(this instanceof Chalk)||this.template){const e={};applyOptions(e,r);e.template=function(){const r=[].slice.call(arguments);return chalkTag.apply(null,[e.template].concat(r))};Object.setPrototypeOf(e,Chalk.prototype);Object.setPrototypeOf(e.template,e);e.template.constructor=Chalk;return e.template}applyOptions(this,r)}if(l){a.blue.open=""}for(const r of Object.keys(a)){a[r].closeRe=new RegExp(t(a[r].close),"g");u[r]={get(){const e=a[r];return build.call(this,this._styles?this._styles.concat(e):[e],this._empty,r)}}}u.visible={get(){return build.call(this,this._styles||[],true,"visible")}};a.color.closeRe=new RegExp(t(a.color.close),"g");for(const r of Object.keys(a.color.ansi)){if(c.has(r)){continue}u[r]={get(){const e=this.level;return function(){const n=a.color[s[e]][r].apply(null,arguments);const t={open:n,close:a.color.close,closeRe:a.color.closeRe};return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,r)}}}}a.bgColor.closeRe=new RegExp(t(a.bgColor.close),"g");for(const r of Object.keys(a.bgColor.ansi)){if(c.has(r)){continue}const e="bg"+r[0].toUpperCase()+r.slice(1);u[e]={get(){const e=this.level;return function(){const n=a.bgColor[s[e]][r].apply(null,arguments);const t={open:n,close:a.bgColor.close,closeRe:a.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,r)}}}}const v=Object.defineProperties(()=>{},u);function build(r,e,n){const t=function(){return applyStyle.apply(t,arguments)};t._styles=r;t._empty=e;const a=this;Object.defineProperty(t,"level",{enumerable:true,get(){return a.level},set(r){a.level=r}});Object.defineProperty(t,"enabled",{enumerable:true,get(){return a.enabled},set(r){a.enabled=r}});t.hasGrey=this.hasGrey||n==="gray"||n==="grey";t.__proto__=v;return t}function applyStyle(){const r=arguments;const e=r.length;let n=String(arguments[0]);if(e===0){return""}if(e>1){for(let t=1;t<e;t++){n+=" "+r[t]}}if(!this.enabled||this.level<=0||!n){return this._empty?"":n}const t=a.dim.open;if(l&&this.hasGrey){a.dim.open=""}for(const r of this._styles.slice().reverse()){n=r.open+n.replace(r.closeRe,r.open)+r.close;n=n.replace(/\r?\n/g,`${r.close}$&${r.open}`)}a.dim.open=t;return n}function chalkTag(r,e){if(!Array.isArray(e)){return[].slice.call(arguments,1).join(" ")}const n=[].slice.call(arguments,2);const t=[e.raw[0]];for(let r=1;r<e.length;r++){t.push(String(n[r-1]).replace(/[{}\\]/g,"\\$&"));t.push(String(e.raw[r]))}return i(r,t.join(""))}Object.defineProperties(Chalk.prototype,u);r.exports=Chalk();r.exports.supportsColor=o;r.exports.default=r.exports},714:function(r,e,n){"use strict";const t=n(87);const a=n(21);const o=process.env;let i;if(a("no-color")||a("no-colors")||a("color=false")){i=false}else if(a("color")||a("colors")||a("color=true")||a("color=always")){i=true}if("FORCE_COLOR"in o){i=o.FORCE_COLOR.length===0||parseInt(o.FORCE_COLOR,10)!==0}function translateLevel(r){if(r===0){return false}return{level:r,hasBasic:true,has256:r>=2,has16m:r>=3}}function supportsColor(r){if(i===false){return 0}if(a("color=16m")||a("color=full")||a("color=truecolor")){return 3}if(a("color=256")){return 2}if(r&&!r.isTTY&&i!==true){return 0}const e=i?1:0;if(process.platform==="win32"){const r=t.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586){return Number(r[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in o)||o.CI_NAME==="codeship"){return 1}return e}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const r=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}if(o.TERM==="dumb"){return e}return e}function getSupportLevel(r){const e=supportsColor(r);return translateLevel(e)}r.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},825:function(r,e,n){var t=n(362);var a={};for(var o in t){if(t.hasOwnProperty(o)){a[t[o]]=o}}var i=r.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var l in i){if(i.hasOwnProperty(l)){if(!("channels"in i[l])){throw new Error("missing channels property: "+l)}if(!("labels"in i[l])){throw new Error("missing channel labels property: "+l)}if(i[l].labels.length!==i[l].channels){throw new Error("channel and label counts mismatch: "+l)}var s=i[l].channels;var c=i[l].labels;delete i[l].channels;delete i[l].labels;Object.defineProperty(i[l],"channels",{value:s});Object.defineProperty(i[l],"labels",{value:c})}}i.rgb.hsl=function(r){var e=r[0]/255;var n=r[1]/255;var t=r[2]/255;var a=Math.min(e,n,t);var o=Math.max(e,n,t);var i=o-a;var l;var s;var c;if(o===a){l=0}else if(e===o){l=(n-t)/i}else if(n===o){l=2+(t-e)/i}else if(t===o){l=4+(e-n)/i}l=Math.min(l*60,360);if(l<0){l+=360}c=(a+o)/2;if(o===a){s=0}else if(c<=.5){s=i/(o+a)}else{s=i/(2-o-a)}return[l,s*100,c*100]};i.rgb.hsv=function(r){var e;var n;var t;var a;var o;var i=r[0]/255;var l=r[1]/255;var s=r[2]/255;var c=Math.max(i,l,s);var u=c-Math.min(i,l,s);var v=function(r){return(c-r)/6/u+1/2};if(u===0){a=o=0}else{o=u/c;e=v(i);n=v(l);t=v(s);if(i===c){a=t-n}else if(l===c){a=1/3+e-t}else if(s===c){a=2/3+n-e}if(a<0){a+=1}else if(a>1){a-=1}}return[a*360,o*100,c*100]};i.rgb.hwb=function(r){var e=r[0];var n=r[1];var t=r[2];var a=i.rgb.hsl(r)[0];var o=1/255*Math.min(e,Math.min(n,t));t=1-1/255*Math.max(e,Math.max(n,t));return[a,o*100,t*100]};i.rgb.cmyk=function(r){var e=r[0]/255;var n=r[1]/255;var t=r[2]/255;var a;var o;var i;var l;l=Math.min(1-e,1-n,1-t);a=(1-e-l)/(1-l)||0;o=(1-n-l)/(1-l)||0;i=(1-t-l)/(1-l)||0;return[a*100,o*100,i*100,l*100]};function comparativeDistance(r,e){return Math.pow(r[0]-e[0],2)+Math.pow(r[1]-e[1],2)+Math.pow(r[2]-e[2],2)}i.rgb.keyword=function(r){var e=a[r];if(e){return e}var n=Infinity;var o;for(var i in t){if(t.hasOwnProperty(i)){var l=t[i];var s=comparativeDistance(r,l);if(s<n){n=s;o=i}}}return o};i.keyword.rgb=function(r){return t[r]};i.rgb.xyz=function(r){var e=r[0]/255;var n=r[1]/255;var t=r[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;var a=e*.4124+n*.3576+t*.1805;var o=e*.2126+n*.7152+t*.0722;var i=e*.0193+n*.1192+t*.9505;return[a*100,o*100,i*100]};i.rgb.lab=function(r){var e=i.rgb.xyz(r);var n=e[0];var t=e[1];var a=e[2];var o;var l;var s;n/=95.047;t/=100;a/=108.883;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;a=a>.008856?Math.pow(a,1/3):7.787*a+16/116;o=116*t-16;l=500*(n-t);s=200*(t-a);return[o,l,s]};i.hsl.rgb=function(r){var e=r[0]/360;var n=r[1]/100;var t=r[2]/100;var a;var o;var i;var l;var s;if(n===0){s=t*255;return[s,s,s]}if(t<.5){o=t*(1+n)}else{o=t+n-t*n}a=2*t-o;l=[0,0,0];for(var c=0;c<3;c++){i=e+1/3*-(c-1);if(i<0){i++}if(i>1){i--}if(6*i<1){s=a+(o-a)*6*i}else if(2*i<1){s=o}else if(3*i<2){s=a+(o-a)*(2/3-i)*6}else{s=a}l[c]=s*255}return l};i.hsl.hsv=function(r){var e=r[0];var n=r[1]/100;var t=r[2]/100;var a=n;var o=Math.max(t,.01);var i;var l;t*=2;n*=t<=1?t:2-t;a*=o<=1?o:2-o;l=(t+n)/2;i=t===0?2*a/(o+a):2*n/(t+n);return[e,i*100,l*100]};i.hsv.rgb=function(r){var e=r[0]/60;var n=r[1]/100;var t=r[2]/100;var a=Math.floor(e)%6;var o=e-Math.floor(e);var i=255*t*(1-n);var l=255*t*(1-n*o);var s=255*t*(1-n*(1-o));t*=255;switch(a){case 0:return[t,s,i];case 1:return[l,t,i];case 2:return[i,t,s];case 3:return[i,l,t];case 4:return[s,i,t];case 5:return[t,i,l]}};i.hsv.hsl=function(r){var e=r[0];var n=r[1]/100;var t=r[2]/100;var a=Math.max(t,.01);var o;var i;var l;l=(2-n)*t;o=(2-n)*a;i=n*a;i/=o<=1?o:2-o;i=i||0;l/=2;return[e,i*100,l*100]};i.hwb.rgb=function(r){var e=r[0]/360;var n=r[1]/100;var t=r[2]/100;var a=n+t;var o;var i;var l;var s;if(a>1){n/=a;t/=a}o=Math.floor(6*e);i=1-t;l=6*e-o;if((o&1)!==0){l=1-l}s=n+l*(i-n);var c;var u;var v;switch(o){default:case 6:case 0:c=i;u=s;v=n;break;case 1:c=s;u=i;v=n;break;case 2:c=n;u=i;v=s;break;case 3:c=n;u=s;v=i;break;case 4:c=s;u=n;v=i;break;case 5:c=i;u=n;v=s;break}return[c*255,u*255,v*255]};i.cmyk.rgb=function(r){var e=r[0]/100;var n=r[1]/100;var t=r[2]/100;var a=r[3]/100;var o;var i;var l;o=1-Math.min(1,e*(1-a)+a);i=1-Math.min(1,n*(1-a)+a);l=1-Math.min(1,t*(1-a)+a);return[o*255,i*255,l*255]};i.xyz.rgb=function(r){var e=r[0]/100;var n=r[1]/100;var t=r[2]/100;var a;var o;var i;a=e*3.2406+n*-1.5372+t*-.4986;o=e*-.9689+n*1.8758+t*.0415;i=e*.0557+n*-.204+t*1.057;a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;a=Math.min(Math.max(0,a),1);o=Math.min(Math.max(0,o),1);i=Math.min(Math.max(0,i),1);return[a*255,o*255,i*255]};i.xyz.lab=function(r){var e=r[0];var n=r[1];var t=r[2];var a;var o;var i;e/=95.047;n/=100;t/=108.883;e=e>.008856?Math.pow(e,1/3):7.787*e+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;a=116*n-16;o=500*(e-n);i=200*(n-t);return[a,o,i]};i.lab.xyz=function(r){var e=r[0];var n=r[1];var t=r[2];var a;var o;var i;o=(e+16)/116;a=n/500+o;i=o-t/200;var l=Math.pow(o,3);var s=Math.pow(a,3);var c=Math.pow(i,3);o=l>.008856?l:(o-16/116)/7.787;a=s>.008856?s:(a-16/116)/7.787;i=c>.008856?c:(i-16/116)/7.787;a*=95.047;o*=100;i*=108.883;return[a,o,i]};i.lab.lch=function(r){var e=r[0];var n=r[1];var t=r[2];var a;var o;var i;a=Math.atan2(t,n);o=a*360/2/Math.PI;if(o<0){o+=360}i=Math.sqrt(n*n+t*t);return[e,i,o]};i.lch.lab=function(r){var e=r[0];var n=r[1];var t=r[2];var a;var o;var i;i=t/360*2*Math.PI;a=n*Math.cos(i);o=n*Math.sin(i);return[e,a,o]};i.rgb.ansi16=function(r){var e=r[0];var n=r[1];var t=r[2];var a=1 in arguments?arguments[1]:i.rgb.hsv(r)[2];a=Math.round(a/50);if(a===0){return 30}var o=30+(Math.round(t/255)<<2|Math.round(n/255)<<1|Math.round(e/255));if(a===2){o+=60}return o};i.hsv.ansi16=function(r){return i.rgb.ansi16(i.hsv.rgb(r),r[2])};i.rgb.ansi256=function(r){var e=r[0];var n=r[1];var t=r[2];if(e===n&&n===t){if(e<8){return 16}if(e>248){return 231}return Math.round((e-8)/247*24)+232}var a=16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(t/255*5);return a};i.ansi16.rgb=function(r){var e=r%10;if(e===0||e===7){if(r>50){e+=3.5}e=e/10.5*255;return[e,e,e]}var n=(~~(r>50)+1)*.5;var t=(e&1)*n*255;var a=(e>>1&1)*n*255;var o=(e>>2&1)*n*255;return[t,a,o]};i.ansi256.rgb=function(r){if(r>=232){var e=(r-232)*10+8;return[e,e,e]}r-=16;var n;var t=Math.floor(r/36)/5*255;var a=Math.floor((n=r%36)/6)/5*255;var o=n%6/5*255;return[t,a,o]};i.rgb.hex=function(r){var e=((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255);var n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n};i.hex.rgb=function(r){var e=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e){return[0,0,0]}var n=e[0];if(e[0].length===3){n=n.split("").map(function(r){return r+r}).join("")}var t=parseInt(n,16);var a=t>>16&255;var o=t>>8&255;var i=t&255;return[a,o,i]};i.rgb.hcg=function(r){var e=r[0]/255;var n=r[1]/255;var t=r[2]/255;var a=Math.max(Math.max(e,n),t);var o=Math.min(Math.min(e,n),t);var i=a-o;var l;var s;if(i<1){l=o/(1-i)}else{l=0}if(i<=0){s=0}else if(a===e){s=(n-t)/i%6}else if(a===n){s=2+(t-e)/i}else{s=4+(e-n)/i+4}s/=6;s%=1;return[s*360,i*100,l*100]};i.hsl.hcg=function(r){var e=r[1]/100;var n=r[2]/100;var t=1;var a=0;if(n<.5){t=2*e*n}else{t=2*e*(1-n)}if(t<1){a=(n-.5*t)/(1-t)}return[r[0],t*100,a*100]};i.hsv.hcg=function(r){var e=r[1]/100;var n=r[2]/100;var t=e*n;var a=0;if(t<1){a=(n-t)/(1-t)}return[r[0],t*100,a*100]};i.hcg.rgb=function(r){var e=r[0]/360;var n=r[1]/100;var t=r[2]/100;if(n===0){return[t*255,t*255,t*255]}var a=[0,0,0];var o=e%1*6;var i=o%1;var l=1-i;var s=0;switch(Math.floor(o)){case 0:a[0]=1;a[1]=i;a[2]=0;break;case 1:a[0]=l;a[1]=1;a[2]=0;break;case 2:a[0]=0;a[1]=1;a[2]=i;break;case 3:a[0]=0;a[1]=l;a[2]=1;break;case 4:a[0]=i;a[1]=0;a[2]=1;break;default:a[0]=1;a[1]=0;a[2]=l}s=(1-n)*t;return[(n*a[0]+s)*255,(n*a[1]+s)*255,(n*a[2]+s)*255]};i.hcg.hsv=function(r){var e=r[1]/100;var n=r[2]/100;var t=e+n*(1-e);var a=0;if(t>0){a=e/t}return[r[0],a*100,t*100]};i.hcg.hsl=function(r){var e=r[1]/100;var n=r[2]/100;var t=n*(1-e)+.5*e;var a=0;if(t>0&&t<.5){a=e/(2*t)}else if(t>=.5&&t<1){a=e/(2*(1-t))}return[r[0],a*100,t*100]};i.hcg.hwb=function(r){var e=r[1]/100;var n=r[2]/100;var t=e+n*(1-e);return[r[0],(t-e)*100,(1-t)*100]};i.hwb.hcg=function(r){var e=r[1]/100;var n=r[2]/100;var t=1-n;var a=t-e;var o=0;if(a<1){o=(t-a)/(1-a)}return[r[0],a*100,o*100]};i.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};i.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};i.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};i.gray.hsl=i.gray.hsv=function(r){return[0,0,r[0]]};i.gray.hwb=function(r){return[0,100,r[0]]};i.gray.cmyk=function(r){return[0,0,0,r[0]]};i.gray.lab=function(r){return[r[0],0,0]};i.gray.hex=function(r){var e=Math.round(r[0]/100*255)&255;var n=(e<<16)+(e<<8)+e;var t=n.toString(16).toUpperCase();return"000000".substring(t.length)+t};i.rgb.gray=function(r){var e=(r[0]+r[1]+r[2])/3;return[e/255*100]}},949:function(r){"use strict";const e=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const t=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const a=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const o=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(r){if(r[0]==="u"&&r.length===5||r[0]==="x"&&r.length===3){return String.fromCharCode(parseInt(r.slice(1),16))}return o.get(r)||r}function parseArguments(r,e){const n=[];const o=e.trim().split(/\s*,\s*/g);let i;for(const e of o){if(!isNaN(e)){n.push(Number(e))}else if(i=e.match(t)){n.push(i[2].replace(a,(r,e,n)=>e?unescape(e):n))}else{throw new Error(`Invalid Chalk template style argument: ${e} (in style '${r}')`)}}return n}function parseStyle(r){n.lastIndex=0;const e=[];let t;while((t=n.exec(r))!==null){const r=t[1];if(t[2]){const n=parseArguments(r,t[2]);e.push([r].concat(n))}else{e.push([r])}}return e}function buildStyle(r,e){const n={};for(const r of e){for(const e of r.styles){n[e[0]]=r.inverse?null:e.slice(1)}}let t=r;for(const r of Object.keys(n)){if(Array.isArray(n[r])){if(!(r in t)){throw new Error(`Unknown Chalk style: ${r}`)}if(n[r].length>0){t=t[r].apply(t,n[r])}else{t=t[r]}}}return t}r.exports=((r,n)=>{const t=[];const a=[];let o=[];n.replace(e,(e,n,i,l,s,c)=>{if(n){o.push(unescape(n))}else if(l){const e=o.join("");o=[];a.push(t.length===0?e:buildStyle(r,t)(e));t.push({inverse:i,styles:parseStyle(l)})}else if(s){if(t.length===0){throw new Error("Found extraneous } in Chalk template literal")}a.push(buildStyle(r,t)(o.join("")));o=[];t.pop()}else{o.push(c)}});a.push(o.join(""));if(t.length>0){const r=`Chalk template literal is missing ${t.length} closing bracket${t.length===1?"":"s"} (\`}\`)`;throw new Error(r)}return a.join("")})}},function(r){"use strict";!function(){r.nmd=function(r){r.paths=[];if(!r.children)r.children=[];Object.defineProperty(r,"loaded",{enumerable:true,get:function(){return r.l}});Object.defineProperty(r,"id",{enumerable:true,get:function(){return r.i}});return r}}()});
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["components/mix-load-more/mix-load-more"],{ /***/ "./node_modules/babel-loader/lib/index.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js?!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/vue-loader/lib/index.js?!C:\\Users\\Administrator\\Desktop\\todayNews\\todayNews\\components\\mix-load-more\\mix-load-more.vue?vue&type=script&lang=js&": /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/vue-loader/lib??vue-loader-options!C:/Users/Administrator/Desktop/todayNews/todayNews/components/mix-load-more/mix-load-more.vue?vue&type=script&lang=js& ***! \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // // // // // // // // // // // // var _default2 = { name: "mix-load-more", props: { status: { //0加载前,1加载中,2没有更多了 type: Number, default: 0 }, text: { type: Array, default: function _default() { return [ '上拉显示更多', '正在加载...', '没有更多数据了']; } } } };exports.default = _default2; /***/ }), /***/ "./node_modules/mini-css-extract-plugin/dist/loader.js?!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js?!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!C:\\Users\\Administrator\\Desktop\\todayNews\\todayNews\\components\\mix-load-more\\mix-load-more.vue?vue&type=style&index=0&lang=css&": /*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-1!./node_modules/css-loader??ref--6-oneOf-1-2!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/vue-loader/lib??vue-loader-options!C:/Users/Administrator/Desktop/todayNews/todayNews/components/mix-load-more/mix-load-more.vue?vue&type=style&index=0&lang=css& ***! \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { // extracted by mini-css-extract-plugin /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js?!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/vue-loader/lib/index.js?!C:\\Users\\Administrator\\Desktop\\todayNews\\todayNews\\components\\mix-load-more\\mix-load-more.vue?vue&type=template&id=2395717a&": /*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/vue-loader/lib??vue-loader-options!C:/Users/Administrator/Desktop/todayNews/todayNews/components/mix-load-more/mix-load-more.vue?vue&type=template&id=2395717a& ***! \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "C:\\Users\\Administrator\\Desktop\\todayNews\\todayNews\\components\\mix-load-more\\mix-load-more.vue": /*!*****************************************************************************************************!*\ !*** C:/Users/Administrator/Desktop/todayNews/todayNews/components/mix-load-more/mix-load-more.vue ***! \*****************************************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _mix_load_more_vue_vue_type_template_id_2395717a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mix-load-more.vue?vue&type=template&id=2395717a& */ "C:\\Users\\Administrator\\Desktop\\todayNews\\todayNews\\components\\mix-load-more\\mix-load-more.vue?vue&type=template&id=2395717a&"); /* harmony import */ var _mix_load_more_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mix-load-more.vue?vue&type=script&lang=js& */ "C:\\Users\\Administrator\\Desktop\\todayNews\\todayNews\\components\\mix-load-more\\mix-load-more.vue?vue&type=script&lang=js&"); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _mix_load_more_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _mix_load_more_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var _mix_load_more_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mix-load-more.vue?vue&type=style&index=0&lang=css& */ "C:\\Users\\Administrator\\Desktop\\todayNews\\todayNews\\components\\mix-load-more\\mix-load-more.vue?vue&type=style&index=0&lang=css&"); /* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); /* normalize component */ var component = Object(_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])( _mix_load_more_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], _mix_load_more_vue_vue_type_template_id_2395717a___WEBPACK_IMPORTED_MODULE_0__["render"], _mix_load_more_vue_vue_type_template_id_2395717a___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], false, null, null, null ) /* hot reload */ if (false) { var api; } component.options.__file = "C:/Users/Administrator/Desktop/todayNews/todayNews/components/mix-load-more/mix-load-more.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "C:\\Users\\Administrator\\Desktop\\todayNews\\todayNews\\components\\mix-load-more\\mix-load-more.vue?vue&type=script&lang=js&": /*!******************************************************************************************************************************!*\ !*** C:/Users/Administrator/Desktop/todayNews/todayNews/components/mix-load-more/mix-load-more.vue?vue&type=script&lang=js& ***! \******************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_index_js_vue_loader_options_mix_load_more_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/vue-loader/lib??vue-loader-options!./mix-load-more.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js?!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/vue-loader/lib/index.js?!C:\\Users\\Administrator\\Desktop\\todayNews\\todayNews\\components\\mix-load-more\\mix-load-more.vue?vue&type=script&lang=js&"); /* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_index_js_vue_loader_options_mix_load_more_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_index_js_vue_loader_options_mix_load_more_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_index_js_vue_loader_options_mix_load_more_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_index_js_vue_loader_options_mix_load_more_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (_D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_index_js_vue_loader_options_mix_load_more_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), /***/ "C:\\Users\\Administrator\\Desktop\\todayNews\\todayNews\\components\\mix-load-more\\mix-load-more.vue?vue&type=style&index=0&lang=css&": /*!**************************************************************************************************************************************!*\ !*** C:/Users/Administrator/Desktop/todayNews/todayNews/components/mix-load-more/mix-load-more.vue?vue&type=style&index=0&lang=css& ***! \**************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_index_js_ref_6_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_index_js_vue_loader_options_mix_load_more_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-1!./node_modules/css-loader??ref--6-oneOf-1-2!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/vue-loader/lib??vue-loader-options!./mix-load-more.vue?vue&type=style&index=0&lang=css& */ "./node_modules/mini-css-extract-plugin/dist/loader.js?!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js?!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!C:\\Users\\Administrator\\Desktop\\todayNews\\todayNews\\components\\mix-load-more\\mix-load-more.vue?vue&type=style&index=0&lang=css&"); /* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_index_js_ref_6_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_index_js_vue_loader_options_mix_load_more_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_index_js_ref_6_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_index_js_vue_loader_options_mix_load_more_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_index_js_ref_6_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_index_js_vue_loader_options_mix_load_more_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_index_js_ref_6_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_index_js_vue_loader_options_mix_load_more_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (_D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_index_js_ref_6_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_index_js_vue_loader_options_mix_load_more_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), /***/ "C:\\Users\\Administrator\\Desktop\\todayNews\\todayNews\\components\\mix-load-more\\mix-load-more.vue?vue&type=template&id=2395717a&": /*!************************************************************************************************************************************!*\ !*** C:/Users/Administrator/Desktop/todayNews/todayNews/components/mix-load-more/mix-load-more.vue?vue&type=template&id=2395717a& ***! \************************************************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_index_js_vue_loader_options_mix_load_more_vue_vue_type_template_id_2395717a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/vue-loader/lib??vue-loader-options!./mix-load-more.vue?vue&type=template&id=2395717a& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js?!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/vue-loader/lib/index.js?!C:\\Users\\Administrator\\Desktop\\todayNews\\todayNews\\components\\mix-load-more\\mix-load-more.vue?vue&type=template&id=2395717a&"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_index_js_vue_loader_options_mix_load_more_vue_vue_type_template_id_2395717a___WEBPACK_IMPORTED_MODULE_0__["render"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_vue_loader_lib_index_js_vue_loader_options_mix_load_more_vue_vue_type_template_id_2395717a___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; }); /***/ }) }]); ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ 'components/mix-load-more/mix-load-more-create-component', { 'components/mix-load-more/mix-load-more-create-component':(function(module, exports, __webpack_require__){ __webpack_require__('./node_modules/@dcloudio/uni-app-plus/dist/index.js')['createComponent'](__webpack_require__("C:\\Users\\Administrator\\Desktop\\todayNews\\todayNews\\components\\mix-load-more\\mix-load-more.vue")) }) }, [['components/mix-load-more/mix-load-more-create-component']] ]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{150:function(module,exports,__webpack_require__){__webpack_require__(151),__webpack_require__(237),module.exports=__webpack_require__(238)},238:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){var _storybook_react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1);__webpack_require__(312),__webpack_require__(316);Object(_storybook_react__WEBPACK_IMPORTED_MODULE_0__.configure)(function loadStories(){__webpack_require__(321),__webpack_require__(322),__webpack_require__(323),__webpack_require__(324),__webpack_require__(325),__webpack_require__(326),__webpack_require__(327),__webpack_require__(328),__webpack_require__(329),__webpack_require__(330),__webpack_require__(331),__webpack_require__(332),__webpack_require__(333),__webpack_require__(334),__webpack_require__(335),__webpack_require__(336),__webpack_require__(337),__webpack_require__(338),__webpack_require__(339),__webpack_require__(340),__webpack_require__(341),__webpack_require__(342),__webpack_require__(343),__webpack_require__(344),__webpack_require__(345),__webpack_require__(346),__webpack_require__(347),__webpack_require__(348),__webpack_require__(349)},module)}.call(this,__webpack_require__(2)(module))},316:function(module,exports,__webpack_require__){var content=__webpack_require__(317);"string"==typeof content&&(content=[[module.i,content,""]]);var options={hmr:!0,transform:void 0,insertInto:void 0};__webpack_require__(319)(content,options);content.locals&&(module.exports=content.locals)},317:function(module,exports,__webpack_require__){(module.exports=__webpack_require__(318)(!1)).push([module.i,'.sans{font-family:-apple-system,BlinkMacSystemFont,avenir next\\ ,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif}.system-sans{font-family:sans-serif}.serif{font-family:georgia,times,serif}.system-serif{font-family:serif}.code{font-family:Consolas,monaco,monospace}.system-code{font-family:monospace}.f1{font-size:40px;letter-spacing:-.022em;line-height:56px}.f2{font-size:24px;letter-spacing:-.019em;line-height:34px}.f3{font-size:18px;letter-spacing:-.014em;line-height:25px}.f4{font-size:16px;letter-spacing:-.011em;line-height:22px}.f5{font-size:14px;letter-spacing:-.006em;line-height:20px}.f6{font-size:12px;letter-spacing:0;line-height:17px}.i{font-style:italic}.n{font-style:normal}.b{font-weight:700}.capitalize{text-transform:capitalize}.lower{text-transform:lowercase}.upper{text-transform:uppercase}.upper-s{font-variant:small-caps}.underline{text-decoration:underline}.strike{text-decoration:line-through}.decoration-none{text-decoration:none}.nowrap{white-space:nowrap}.pre{white-space:pre}.pre-line{white-space:pre-line}.tl{text-align:left}.tr{text-align:right}.tc{text-align:center}.tj{text-align:justify}.fl{float:left}.fr{float:right}.cf:after,.cf:before{content:" ";display:table}.cf:after{clear:both}.cf{*zoom:1}.lh1{line-height:2}.lh2{line-height:1.8}.lh3{line-height:1.6}.lh4{line-height:1.4}.lh5{line-height:1.2}.lh6{line-height:1}.ls0{letter-spacing:0}.ls1{letter-spacing:.5rem}.ls2{letter-spacing:.38rem}.ls3{letter-spacing:.26rem}.ls4{letter-spacing:.14rem}.ls5{letter-spacing:.02rem}.ls6{letter-spacing:-.1rem}.relative{position:relative}.absolute{position:absolute}.fixed{position:fixed}.static{position:static}.top0{top:0}.top1{top:1rem}.top2{top:2rem}.top3{top:3rem}.top4{top:4rem}.top5{top:5rem}.top6{top:6rem}.right0{right:0}.right1{right:1rem}.right2{right:2rem}.right3{right:3rem}.right4{right:4rem}.right5{right:5rem}.right6{right:6rem}.bottom0{bottom:0}.bottom1{bottom:1rem}.bottom2{bottom:2rem}.bottom3{bottom:3rem}.bottom4{bottom:4rem}.bottom5{bottom:5rem}.bottom6{bottom:6rem}.left0{left:0}.left1{left:1rem}.left2{left:2rem}.left3{left:3rem}.left4{left:4rem}.left5{left:5rem}.left6{left:6rem}.m0{margin:0}.m1{margin:6rem}.m2{margin:5rem}.m3{margin:4rem}.m4{margin:3rem}.m5{margin:2rem}.m6{margin:1rem}.mt0{margin-top:0}.mt1{margin-top:6rem}.mt2{margin-top:5rem}.mt3{margin-top:4rem}.mt4{margin-top:3rem}.mt5{margin-top:2rem}.mt6{margin-top:1rem}.mr0{margin-right:0}.mra{margin-right:auto}.mr1{margin-right:6rem}.mr2{margin-right:5rem}.mr3{margin-right:4rem}.mr4{margin-right:3rem}.mr5{margin-right:2rem}.mr6{margin-right:1rem}.mb0{margin-bottom:0}.mb1{margin-bottom:6rem}.mb2{margin-bottom:5rem}.mb3{margin-bottom:4rem}.mb4{margin-bottom:3rem}.mb5{margin-bottom:2rem}.mb6{margin-bottom:1rem}.ml0{margin-left:0}.mla{margin-left:auto}.ml1{margin-left:6rem}.ml2{margin-left:5rem}.ml3{margin-left:4rem}.ml4{margin-left:3rem}.ml5{margin-left:2rem}.ml6{margin-left:1rem}.p0{padding:0}.p1{padding:1.5rem}.p2{padding:1.25rem}.p3{padding:1rem}.p4{padding:.75rem}.p5{padding:.5rem}.p6{padding:.25rem}.pt0{padding-top:0}.pt1{padding-top:1.5rem}.pt2{padding-top:1.25rem}.pt3{padding-top:1rem}.pt4{padding-top:.75rem}.pt5{padding-top:.5rem}.pt6{padding-top:.25rem}.pr0{padding-right:0}.pr1{padding-right:1.5rem}.pr2{padding-right:1.25rem}.pr3{padding-right:1rem}.pr4{padding-right:.75rem}.pr5{padding-right:.5rem}.pr6{padding-right:.25rem}.pb0{padding-bottom:0}.pb1{padding-bottom:1.5rem}.pb2{padding-bottom:1.25rem}.pb3{padding-bottom:1rem}.pb4{padding-bottom:.75rem}.pb5{padding-bottom:.5rem}.pb6{padding-bottom:.25rem}.pl0{padding-left:0}.pl1{padding-left:1.5rem}.pl2{padding-left:1.25rem}.pl3{padding-left:1rem}.pl4{padding-left:.75rem}.pl5{padding-left:.5rem}.pl6{padding-left:.25rem}.outline{outline:1px solid}.outline-hidden{outline:1px solid transparent}.outline-none{outline:0}.b0{border-style:none;border-width:0}.ba{border-width:1px;border-style:solid}.bt{border-top-width:1px;border-style:solid}.br{border-right-width:1px;border-style:solid}.bb{border-bottom-width:1px;border-style:solid}.bl{border-left-width:1px;border-style:solid}.br1{border-radius:4rem}.br2{border-radius:3.225rem}.br3{border-radius:2.45rem}.br4{border-radius:1.675rem}.br5{border-radius:.9rem}.br6{border-radius:.125rem}.br100{border-radius:100%}.pill{border-radius:9999px}.brt0{border-top-left-radius:0;border-top-right-radius:0}.brb0{border-bottom-right-radius:0}.brb0,.brl0{border-bottom-left-radius:0}.brl0{border-top-left-radius:0}.brr0{border-top-right-radius:0;border-bottom-right-radius:0}.dotted{border-style:dotted}.dashed{border-style:dashed}.solid{border-style:solid}.bw1{border-width:4rem}.bw2{border-width:3.225rem}.bw3{border-width:2.45rem}.bw4{border-width:1.675rem}.bw5{border-width:.9rem}.bw6{border-width:.125rem}.bt0{border-top-width:0}.br0{border-right-width:0}.bb0{border-bottom-width:0}.bl0{border-left-width:0}.o0{opacity:0}.o1{opacity:1}.o2{opacity:.81}.o3{opacity:.62}.o4{opacity:.43}.o5{opacity:.24}.o6{opacity:.05}.o10{opacity:.1}.o20{opacity:.2}.o25{opacity:.25}.o30{opacity:.3}.o40{opacity:.4}.o50{opacity:.5}.o60{opacity:.6}.o70{opacity:.7}.o75{opacity:.75}.o80{opacity:.8}.o90{opacity:.9}.o100{opacity:1}.reset-list{list-style-type:none;padding-left:0}.reset-input{-webkit-appearance:none;-moz-appearance:none}.reset-button::-moz-focus-inner{border:0;padding:0}.w0{width:0}.w1{width:6rem}.w2{width:5rem}.w3{width:4rem}.w4{width:3rem}.w5{width:2rem}.w6{width:1rem}.w10{width:10%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w40{width:40%}.w50{width:50%}.w60{width:60%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w90{width:90%}.w100{width:100%}.mw1{max-width:64rem}.mw2{max-width:51.6rem}.mw3{max-width:39.2rem}.mw4{max-width:26.8rem}.mw5{max-width:14.4rem}.mw6{max-width:2rem}.mw10{max-width:10%}.mw20{max-width:20%}.mw30{max-width:30%}.mw40{max-width:40%}.mw50{max-width:50%}.mw60{max-width:60%}.mw70{max-width:70%}.mw80{max-width:80%}.mw90{max-width:90%}.mw100{max-width:100%}.mw10vw{max-width:10vw}.mw20vw{max-width:20vw}.mw30vw{max-width:30vw}.mw40vw{max-width:40vw}.mw50vw{max-width:50vw}.mw60vw{max-width:60vw}.mw70vw{max-width:70vw}.mw80vw{max-width:80vw}.mw90vw{max-width:90vw}.mw100vw{max-width:100vw}.minw1{min-width:64rem}.minw2{min-width:51.6rem}.minw3{min-width:39.2rem}.minw4{min-width:26.8rem}.minw5{min-width:14.4rem}.minw6{min-width:2rem}.minw10{min-width:10%}.minw20{min-width:20%}.minw30{min-width:30%}.minw40{min-width:40%}.minw50{min-width:50%}.minw60{min-width:60%}.minw70{min-width:70%}.minw80{min-width:80%}.minw90{min-width:90%}.minw100{min-width:100%}.minw10vw{min-width:10vw}.minw20vw{min-width:20vw}.minw30vw{min-width:30vw}.minw40vw{min-width:40vw}.minw50vw{min-width:50vw}.minw60vw{min-width:60vw}.minw70vw{min-width:70vw}.minw80vw{min-width:80vw}.minw90vw{min-width:90vw}.minw100vw{min-width:100vw}.h0{height:0}.h1{height:6rem}.h2{height:5rem}.h3{height:4rem}.h4{height:3rem}.h5{height:2rem}.h6{height:1rem}.h10{height:10%}.h20{height:20%}.h25{height:25%}.h30{height:30%}.h40{height:40%}.h50{height:50%}.h60{height:60%}.h70{height:70%}.h75{height:75%}.h80{height:80%}.h90{height:90%}.h100{height:100%}.mh1{max-height:64rem}.mh2{max-height:51.6rem}.mh3{max-height:39.2rem}.mh4{max-height:26.8rem}.mh5{max-height:14.4rem}.mh6{max-height:2rem}.mh10{max-height:10%}.mh20{max-height:20%}.mh30{max-height:30%}.mh40{max-height:40%}.mh50{max-height:50%}.mh60{max-height:60%}.mh70{max-height:70%}.mh80{max-height:80%}.mh90{max-height:90%}.mh100{max-height:100%}.mh10vh{max-height:10vh}.mh20vh{max-height:20vh}.mh30vh{max-height:30vh}.mh40vh{max-height:40vh}.mh50vh{max-height:50vh}.mh60vh{max-height:60vh}.mh70vh{max-height:70vh}.mh80vh{max-height:80vh}.mh90vh{max-height:90vh}.mh100vh{max-height:100vh}.minh1{min-height:64rem}.minh2{min-height:51.6rem}.minh3{min-height:39.2rem}.minh4{min-height:26.8rem}.minh5{min-height:14.4rem}.minh6{min-height:2rem}.minh10{min-height:10%}.minh20{min-height:20%}.minh30{min-height:30%}.minh40{min-height:40%}.minh50{min-height:50%}.minh60{min-height:60%}.minh70{min-height:70%}.minh80{min-height:80%}.minh90{min-height:90%}.minh100{min-height:100%}.minh10vh{min-height:10vh}.minh20vh{min-height:20vh}.minh30vh{min-height:30vh}.minh40vh{min-height:40vh}.minh50vh{min-height:50vh}.minh60vh{min-height:60vh}.minh70vh{min-height:70vh}.minh80vh{min-height:80vh}.minh90vh{min-height:90vh}.minh100vh{min-height:100vh}.dn{display:none}.db{display:block}.di{display:inline}.dib{display:inline-block}.z0{z-index:0}.z1{z-index:1}.z2{z-index:2}.z3{z-index:3}.z4{z-index:4}.z5{z-index:5}.z6{z-index:6}',""])},321:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);["sans","system-sans","serif","system-serif","code","system-code"].forEach(function(fontFace){Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("font face",module).add(fontFace,function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p",{className:"".concat(fontFace)},"".concat(fontFace))})})}.call(this,__webpack_require__(2)(module))},322:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);[1,2,3,4,5,6].forEach(function(_int){Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("font size",module).add("f".concat(_int),function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p",{className:"sans f".concat(_int)},"f".concat(_int))})})}.call(this,__webpack_require__(2)(module))},323:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);["i","n","b","capitalize","lower","upper","upper-s","underline","strike","decoration-none"].forEach(function(style){Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("font styles",module).add(style,function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p",{className:"".concat(style)},style)})})}.call(this,__webpack_require__(2)(module))},324:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);[1,2,3,4,5,6].forEach(function(modifier){Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("line heights",module).add("lh".concat(modifier),function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{style:{display:"inline-block",outline:"1px solid"},className:"lh".concat(modifier)},"lh".concat(modifier))})})}.call(this,__webpack_require__(2)(module))},325:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);[0,1,2,3,4,5,6].forEach(function(modifier){Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("letter spacing",module).add("ls".concat(modifier),function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p",{className:"ls".concat(modifier)},"ls".concat(modifier))})})}.call(this,__webpack_require__(2)(module))},326:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);["nowrap","pre","pre-line"].forEach(function(name){Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("whitespace",module).add(name,function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{style:{width:"300px"}},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p",{className:name},"\n ".concat(name,"\n Occaecat cillum deserunt excepteur occaecat.\n Officia fugiat deserunt cillum est nisi irure occaecat culpa commodo exercitation.\n Incididunt ipsum non mollit adipisicing nulla sit ullamco adipisicing dolore.\n Ea labore occaecat do consectetur sint anim ipsum irure ut eu laboris incididunt mollit.\n Id proident tempor aute culpa commodo do.\n ")))})})}.call(this,__webpack_require__(2)(module))},327:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);["l","r","c","j"].forEach(function(modifier){Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("text-align",module).add("t".concat(modifier),function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{style:{textAlign:"r"===modifier?"left":"right"}},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p",{className:"t".concat(modifier),style:{width:"150px"}},"j"===modifier?"t".concat(modifier,'\n "Id culpa adipisicing eu exercitation aliquip irure eiusmod Lorem consequat tempor voluptate est."\n '):"t".concat(modifier)))})})}.call(this,__webpack_require__(2)(module))},328:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);["l","r"].forEach(function(modifier){Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("floats",module).add("f".concat(modifier),function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{className:"f".concat(modifier)},"f ",modifier)})})}.call(this,__webpack_require__(2)(module))},329:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_storybook_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1);Object(_storybook_react__WEBPACK_IMPORTED_MODULE_1__.storiesOf)("clearfix",module).add("cf",function(){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{className:"cf",style:{outline:"1px solid"}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{style:{float:"left"}},"cf")))})}.call(this,__webpack_require__(2)(module))},330:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);["relative","absolute","fixed","static",0,1,2,3,4,5,6].forEach(function(modifier){"number"==typeof modifier?["top","right","bottom","left"].forEach(function(side){Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("positioning",module).add("".concat(side).concat(modifier),function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{style:{height:"200px",outline:"1px solid",position:"relative"}},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{className:"".concat(side).concat(modifier),style:{position:"absolute"}},"".concat(side).concat(modifier)))})}):Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("positioning",module).add(modifier,function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{style:{height:"200px",marginTop:"20px",outline:"1px solid"}},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{className:modifier,style:{top:"40px"}},modifier))})})}.call(this,__webpack_require__(2)(module))},331:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);["all","top","right","bottom","left"].forEach(function(side){[0,1,2,3,4,5,6].forEach(function(modifier){"all"===side?Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("margin",module).add("m".concat(modifier),function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{style:{border:"1px solid black",display:"inline-block"}},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{className:"m".concat(modifier),style:{display:"inline-block"}},"m".concat(modifier)))}):Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("margin",module).add("m".concat(side[0]).concat(modifier),function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{style:{border:"1px solid black",display:"inline-block"}},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{className:"m".concat(side[0]).concat(modifier),style:{display:"inline-block"}},"m".concat(side[0]).concat(modifier)))})})})}.call(this,__webpack_require__(2)(module))},332:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);["all","top","right","bottom","left"].forEach(function(side){[0,1,2,3,4,5,6].forEach(function(i){"all"===side?Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("padding",module).add("p".concat(i),function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{style:{border:"1px solid black",display:"inline-block"}},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{className:"p".concat(i),style:{display:"inline-block"}},"p".concat(i)))}):Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("padding",module).add("p".concat(side[0]).concat(i),function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{style:{border:"1px solid black",display:"inline-block"}},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{className:"p".concat(side[0]).concat(i),style:{display:"inline-block"}},"p".concat(side[0]).concat(i)))})})})}.call(this,__webpack_require__(2)(module))},333:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);["outline","outline-hidden","outline-none"].forEach(function(outlineClass){var _ref=react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{className:outlineClass},outlineClass);Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("outline",module).add(outlineClass,function(){return _ref})})}.call(this,__webpack_require__(2)(module))},334:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);[0,"a","t","r","b","l"].forEach(function(modifier){Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("borders",module).add("b".concat(modifier),function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{className:"b0 b".concat(modifier)},"b".concat(modifier))})})}.call(this,__webpack_require__(2)(module))},335:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);[1,2,3,4,5,6,100,"pill"].forEach(function(modifier){"pill"===modifier?Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("border radius",module).add(modifier,function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{className:"ba ".concat(modifier)},modifier)}):Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("border radius",module).add("br".concat(modifier),function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{className:"ba br".concat(modifier)},"br".concat(modifier))})})}.call(this,__webpack_require__(2)(module))},336:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);["t","b","l","r"].forEach(function(modifier){Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("border radius reset",module).add("br".concat(modifier,"0"),function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{className:"ba br3 br".concat(modifier,"0")},"br".concat(modifier,"0"))})})}.call(this,__webpack_require__(2)(module))},337:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);["dotted","dashed","solid"].forEach(function(style){Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("border style",module).add(style,function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{className:"ba ".concat(style)},style)})})}.call(this,__webpack_require__(2)(module))},338:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);[1,2,3,4,5,6].forEach(function(width){Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("border width",module).add("bw".concat(width),function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{style:{display:"inline-block"},className:"ba bw".concat(width)},"bw".concat(width))})})}.call(this,__webpack_require__(2)(module))},339:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);["t","b","l","r"].forEach(function(modifier){Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("border side reset",module).add("b".concat(modifier,"0"),function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{className:"ba b".concat(modifier,"0")},"b".concat(modifier,"0"))})})}.call(this,__webpack_require__(2)(module))},340:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);[0,1,2,3,4,5,6,10,20,25,30,40,50,60,70,75,80,90,100].forEach(function(percentage){0===percentage?Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("opacity",module).add("o".concat(percentage),function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",null,"→"),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{className:"o".concat(percentage)},"o".concat(percentage)))}):Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("opacity",module).add("o".concat(percentage),function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{className:"o".concat(percentage)},"o".concat(percentage))})})}.call(this,__webpack_require__(2)(module))},341:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_storybook_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1),_ref=react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul",{className:"reset-list"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li",null,"reset-list")),_ref2=react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ol",{className:"reset-list"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li",null,"reset-list")),_ref3=react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input",{type:"text",value:"reset-input"}),_ref4=react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button",{type:"button",className:"reset-button"},"reset-button");Object(_storybook_react__WEBPACK_IMPORTED_MODULE_1__.storiesOf)("resets",module).add("reset-list",function(){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,_ref,_ref2)}).add("reset-input",function(){return _ref3}).add("reset-button",function(){return _ref4})}.call(this,__webpack_require__(2)(module))},342:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(28),__webpack_require__(29),__webpack_require__(17),__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__),_storybook_react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(1);[0,1,2,3,4,5,6,10,20,25,30,40,50,60,70,75,80,90,100].forEach(function(modifier){1<modifier.toString().length?Object(_storybook_react__WEBPACK_IMPORTED_MODULE_5__.storiesOf)("widths",module).add("w".concat(modifier),function(){return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div",{style:{display:"inline-block",width:"200px",outline:"1px solid"}},react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span",{style:{display:"inline-block",outline:"1px solid"},className:"w".concat(modifier)},"w",modifier))}):Object(_storybook_react__WEBPACK_IMPORTED_MODULE_5__.storiesOf)("widths",module).add("w".concat(modifier),function(){return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span",{style:{display:"inline-block",outline:"1px solid",overflow:"hidden",minWidth:"1px"},className:"w".concat(modifier)},"w",modifier)})})}.call(this,__webpack_require__(2)(module))},343:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(28),__webpack_require__(29),__webpack_require__(17),__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__),_storybook_react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(1);[1,2,3,4,5,6,10,20,30,40,50,60,70,80,90,100].forEach(function(modifier){1<modifier.toString().length&&Object(_storybook_react__WEBPACK_IMPORTED_MODULE_5__.storiesOf)("max widths",module).add("mw".concat(modifier,"vw"),function(){return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("p",{style:{display:"inline-block",width:"1000000px",overflowX:"scroll",outline:"1px solid"},className:"mw".concat(modifier,"vw")},"mw",modifier,"vw")}),Object(_storybook_react__WEBPACK_IMPORTED_MODULE_5__.storiesOf)("max widths",module).add("mw".concat(modifier),function(){return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div",{style:{width:"100vw"}},react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("p",{style:{display:"inline-block",width:"4000px",outline:"1px solid"},className:"mw".concat(modifier)},"mw",modifier))})})}.call(this,__webpack_require__(2)(module))},344:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(28),__webpack_require__(29),__webpack_require__(17),__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__),_storybook_react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(1);[1,2,3,4,5,6,10,20,30,40,50,60,70,80,90,100].forEach(function(modifier){1<modifier.toString().length&&Object(_storybook_react__WEBPACK_IMPORTED_MODULE_5__.storiesOf)("min widths",module).add("minw".concat(modifier,"vw"),function(){return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span",{style:{display:"inline-block",width:"1px",overflow:"visible",outline:"1px solid"},className:"minw".concat(modifier,"vw")},"minw",modifier,"vw")}),Object(_storybook_react__WEBPACK_IMPORTED_MODULE_5__.storiesOf)("min widths",module).add("minw".concat(modifier),function(){return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div",{style:{width:"100vw"}},react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span",{style:{display:"inline-block",outline:"1px solid"},className:"minw".concat(modifier)},"minw",modifier))})})}.call(this,__webpack_require__(2)(module))},345:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(28),__webpack_require__(29),__webpack_require__(17),__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__),_storybook_react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(1);[0,1,2,3,4,5,6,10,20,25,30,40,50,60,70,75,80,90,100].forEach(function(modifier){1<modifier.toString().length?Object(_storybook_react__WEBPACK_IMPORTED_MODULE_5__.storiesOf)("heights",module).add("h".concat(modifier),function(){return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div",{style:{display:"inline-block",height:"200px",outline:"1px solid"}},react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span",{style:{display:"inline-block",outline:"1px solid"},className:"h".concat(modifier)},"h",modifier))}):Object(_storybook_react__WEBPACK_IMPORTED_MODULE_5__.storiesOf)("heights",module).add("h".concat(modifier),function(){return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span",{style:{display:"inline-block",outline:"1px solid",overflow:"hidden",minHeight:"1px"},className:"h".concat(modifier)},"h",modifier)})})}.call(this,__webpack_require__(2)(module))},346:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(28),__webpack_require__(29),__webpack_require__(17),__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__),_storybook_react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(1);[1,2,3,4,5,6,10,20,30,40,50,60,70,80,90,100].forEach(function(modifier){1<modifier.toString().length&&Object(_storybook_react__WEBPACK_IMPORTED_MODULE_5__.storiesOf)("max heights",module).add("mh".concat(modifier,"vh"),function(){return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("p",{style:{display:"inline-block",maxWidth:"10px",height:"1000000px",outline:"1px solid"},className:"mh".concat(modifier,"vh")},"mh",modifier,"vh")}),Object(_storybook_react__WEBPACK_IMPORTED_MODULE_5__.storiesOf)("max heights",module).add("mh".concat(modifier),function(){return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div",{style:{height:"100vh"}},react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("p",{style:{display:"inline-block",maxWidth:"10px",height:"4000px",outline:"1px solid"},className:"mh".concat(modifier)},"mh",modifier))})})}.call(this,__webpack_require__(2)(module))},347:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(28),__webpack_require__(29),__webpack_require__(17),__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__),_storybook_react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(1);[1,2,3,4,5,6,10,20,30,40,50,60,70,80,90,100].forEach(function(modifier){1<modifier.toString().length&&Object(_storybook_react__WEBPACK_IMPORTED_MODULE_5__.storiesOf)("min heights",module).add("minh".concat(modifier,"vh"),function(){return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span",{style:{display:"inline-block",height:"1px",overflow:"visible",outline:"1px solid"},className:"minh".concat(modifier,"vh")},"minh",modifier,"vh")}),Object(_storybook_react__WEBPACK_IMPORTED_MODULE_5__.storiesOf)("min heights",module).add("minh".concat(modifier),function(){return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div",{style:{height:"100vh"}},react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span",{style:{display:"inline-block",outline:"1px solid"},className:"minh".concat(modifier)},"minh",modifier))})})}.call(this,__webpack_require__(2)(module))},348:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_storybook_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1),_ref=react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"dn"},"dn");Object(_storybook_react__WEBPACK_IMPORTED_MODULE_1__.storiesOf)("display",module).add("dn",function(){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{style:{outline:"1px solid",display:"inline-block",minWidth:"1px",minHeight:"1px"}},_ref)}),Object(_storybook_react__WEBPACK_IMPORTED_MODULE_1__.storiesOf)("display",module).add("db",function(){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"db",style:{outline:"1px solid"}},"db")}),Object(_storybook_react__WEBPACK_IMPORTED_MODULE_1__.storiesOf)("display",module).add("di",function(){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{className:"di",style:{outline:"1px solid"}},"di")}),Object(_storybook_react__WEBPACK_IMPORTED_MODULE_1__.storiesOf)("display",module).add("dib",function(){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{className:"dib",style:{outline:"1px solid",width:"80px"}},"dib")})}.call(this,__webpack_require__(2)(module))},349:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(3);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_storybook_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);[0,1,2,3,4,5,6].forEach(function(modifier){Object(_storybook_react__WEBPACK_IMPORTED_MODULE_2__.storiesOf)("z-index",module).add("z".concat(modifier),function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{className:"z".concat(modifier),style:{display:"inline-block",backgroundColor:"white",position:"relative",width:"80px",height:"80px",outline:"1px solid",top:"30px",left:"80px",textAlign:"center"}},"z".concat(modifier)),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{style:{display:"inline-block",backgroundColor:"white",outline:"1px solid",width:"80px",height:"80px",position:"relative",left:"-60px",textAlign:"center"}},"not set"),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{style:{zIndex:2147483647,backgroundColor:"white",display:"inline-block",position:"relative",width:"80px",height:"80px",outline:"1px solid",top:"60px",left:"-140px",textAlign:"center"}},"max"),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{style:{zIndex:modifier+1,backgroundColor:"white",display:"inline-block",position:"relative",width:"80px",height:"80px",outline:"1px solid",left:"-100px",top:"60px",textAlign:"center"}},"z-index ",modifier+1),0<modifier-1&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",{style:{zIndex:modifier-1,backgroundColor:"white",display:"inline-block",position:"relative",width:"80px",height:"80px",outline:"1px solid",left:"-180px",textAlign:"center"}},"z-index ",modifier-1))})})}.call(this,__webpack_require__(2)(module))}},[[150,1,2]]]); //# sourceMappingURL=main.e2d203db0827d334f718.bundle.js.map
import React, { useCallback } from 'react' import T from 'prop-types' import styled from 'styled-components' import { Icon } from '@libp2p/observer-sdk' const CheckIconButton = styled.a` border-radius: 50%; background: ${({ theme }) => theme.color('background', 0)}; &:hover { background: ${({ theme }) => theme.color('background', 0, 0.5)}; } ` const EventsPropertyList = styled.ul` margin: 0; padding: 0; position: relative; z-index: 10; ` const EventsPropertyItem = styled.li` list-style: none; margin: ${({ theme }) => theme.spacing([0.5, 0])}; padding: ${({ theme }) => theme.spacing(0.5)}; cursor: pointer; white-space: nowrap; ` const EventsPropertyCheckAll = styled(EventsPropertyItem)` border-bottom: 1px solid ${({ theme }) => theme.color('background', 2)}; ` const EventsPropertyName = styled.span` margin-left: ${({ theme }) => theme.spacing(1)}; ` const EventsPropertyCheckAllLabel = styled(EventsPropertyName)` font-weight: 400; ` function getAllCheckedStatus(propertyData) { let anyChecked = false let anyUnchecked = false for (const { enabled } of propertyData) { if ((enabled && anyUnchecked) || (!enabled && anyChecked)) return 'mixed' if (enabled) { anyChecked = true } else { anyUnchecked = true } } return anyChecked ? 'all' : 'none' } function getCheckAllVars(allCheckedStatus) { switch (allCheckedStatus) { case 'all': return ['check', 'Showing all columns'] case 'mixed': return ['mixed', 'Showing some columns'] case 'none': return ['uncheck', 'Showing no columns'] } } function EventsTypePropertyControls({ eventName, propertyData, propertyTypes, dispatchPropertyTypes, }) { const allCheckedStatus = getAllCheckedStatus(propertyData) const [checkAllIcon, checkAllText] = getCheckAllVars(allCheckedStatus) const buttonChecksAll = checkAllIcon !== 'check' const handleCheckAll = useCallback(() => { propertyData.forEach(propertyStatus => dispatchPropertyTypes({ action: buttonChecksAll ? 'enable' : 'disable', data: propertyStatus, }) ) }, [buttonChecksAll, dispatchPropertyTypes, propertyData]) return ( <EventsPropertyList> <EventsPropertyCheckAll onClick={handleCheckAll}> <Icon type={checkAllIcon} override={{ Container: CheckIconButton }} /> <EventsPropertyCheckAllLabel> {checkAllText} </EventsPropertyCheckAllLabel> </EventsPropertyCheckAll> {propertyData.map(propertyStatus => { const { name, enabled } = propertyStatus const handleClick = () => dispatchPropertyTypes({ action: enabled ? 'disable' : 'enable', data: propertyStatus, }) return ( <EventsPropertyItem onClick={handleClick} key={name}> <Icon active={enabled} type={enabled ? 'check' : 'uncheck'} override={{ Container: CheckIconButton }} /> <EventsPropertyName>{name}</EventsPropertyName> </EventsPropertyItem> ) })} </EventsPropertyList> ) } EventsTypePropertyControls.propTypes = { eventName: T.string.isRequired, propertyData: T.array.isRequired, propertyTypes: T.array.isRequired, dispatchPropertyTypes: T.func.isRequired, } export default EventsTypePropertyControls
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var StyledIconBase_1 = require("../../StyledIconBase"); exports.ClosedCaptioning = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", }; return (React.createElement(StyledIconBase_1.StyledIconBase, tslib_1.__assign({ iconAttrs: attrs, iconVerticalAlign: "-.125em", iconViewBox: "0 0 512 512" }, props, { ref: ref }), React.createElement("path", { fill: "currentColor", d: "M464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm-6 336H54c-3.3 0-6-2.7-6-6V118c0-3.3 2.7-6 6-6h404c3.3 0 6 2.7 6 6v276c0 3.3-2.7 6-6 6zm-211.1-85.7c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.8-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7l-17.5 30.5c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6 2.8-2.5 7.1-2.1 9.2.9l19.6 27.7zm190.4 0c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.9-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7L420 220.2c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6 2.8-2.5 7.1-2.1 9.2.9l19.6 27.7z", key: "k0" }))); }); exports.ClosedCaptioning.displayName = 'ClosedCaptioning'; exports.ClosedCaptioningDimensions = { height: undefined, width: undefined };
const exchangeRates = require('./exchange_rates.json'); export function convertToEuro(amount, currency) { if (currency.toUpperCase() === 'EUR') return amount; const exchangeRate = exchangeRates.rates[currency.toUpperCase()]; if (!exchangeRate) throw new Error(`Unknown currency '${currency}'`); return amount / exchangeRate; } export function getAvailableCurrencies() { return Object.keys(exchangeRates.rates); }
goog.require('ol.Feature'); goog.require('ol.Map'); goog.require('ol.View'); goog.require('ol.geom.MultiPoint'); goog.require('ol.geom.Point'); goog.require('ol.layer.Tile'); goog.require('ol.source.MapQuest'); goog.require('ol.style.Circle'); goog.require('ol.style.Fill'); goog.require('ol.style.Stroke'); goog.require('ol.style.Style'); var map = new ol.Map({ layers: [ new ol.layer.Tile({ source: new ol.source.MapQuest({layer: 'sat'}) }) ], renderer: exampleNS.getRendererFromQueryString(), target: 'map', view: new ol.View({ center: [0, 0], zoom: 2 }) }); var imageStyle = new ol.style.Circle({ radius: 5, snapToPixel: false, fill: new ol.style.Fill({color: 'yellow'}), stroke: new ol.style.Stroke({color: 'red', width: 1}) }); var headInnerImageStyle = new ol.style.Style({ image: new ol.style.Circle({ radius: 2, snapToPixel: false, fill: new ol.style.Fill({color: 'blue'}) }) }); var headOuterImageStyle = new ol.style.Circle({ radius: 5, snapToPixel: false, fill: new ol.style.Fill({color: 'black'}) }); var n = 200; var omegaTheta = 30000; // Rotation period in ms var R = 7e6; var r = 2e6; var p = 2e6; map.on('postcompose', function(event) { var vectorContext = event.vectorContext; var frameState = event.frameState; var theta = 2 * Math.PI * frameState.time / omegaTheta; var coordinates = []; var i; for (i = 0; i < n; ++i) { var t = theta + 2 * Math.PI * i / n; var x = (R + r) * Math.cos(t) + p * Math.cos((R + r) * t / r); var y = (R + r) * Math.sin(t) + p * Math.sin((R + r) * t / r); coordinates.push([x, y]); } vectorContext.setImageStyle(imageStyle); vectorContext.drawMultiPointGeometry( new ol.geom.MultiPoint(coordinates), null); var headPoint = new ol.geom.Point(coordinates[coordinates.length - 1]); var headFeature = new ol.Feature(headPoint); vectorContext.drawFeature(headFeature, headInnerImageStyle); vectorContext.setImageStyle(headOuterImageStyle); vectorContext.drawMultiPointGeometry(headPoint, null); map.render(); }); map.render();
/* eslint-disable */ import {Component} from 'react' import {ThemeProvider} from 'styled-components' import Meta from '#root/components/Meta' import Header from '#root/components/Header' import AuthModal from '#root/components/AuthModal' import SideCart from '#root/components/SideCart' import * as StyledPage from '#root/components/styles/StyledPage' class Page extends Component { render() { return ( <ThemeProvider theme={StyledPage.theme}> <StyledPage.Page> <Meta /> <StyledPage.GlobalStyle /> <Header /> <AuthModal /> <SideCart /> <StyledPage.Inner>{this.props.children}</StyledPage.Inner> </StyledPage.Page> </ThemeProvider> ) } } export default Page
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(React.createElement("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.61 5.64 5.36 8.04 2.35 8.36 0 10.9 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4h2c0-2.76-1.86-5.08-4.4-5.78C8.61 6.88 10.2 6 12 6c3.03 0 5.5 2.47 5.5 5.5v.5H19c1.65 0 3 1.35 3 3s-1.35 3-3 3z" }), 'FilterDrama');
/* * Copyright (c) 2001-2007, TIBCO Software Inc. * Use, modification, and distribution subject to terms of license. */ jsx3.require("jsx3.chart.Series");jsx3.Class.defineClass("jsx3.chart.AreaSeries",jsx3.chart.Series,null,function(c,g){var t=jsx3.vector;var Gc=jsx3.chart;c.FORM_SEGMENT="segment";c.FORM_STEP="step";c.FORM_REVSTEP="reverseStep";c.Ae={segment:1,step:1,reverseStep:1};c.Xg=4;g.init=function(s,m){this.jsxsuper(s,m);this.xField=null;this.yField=null;this.minField=null;this.form=c.FORM_SEGMENT;this.pointRadius=null;this.pointRenderer=null;this.pointFill=null;this.pointStroke=null;this.pointGradient=null;this.setTooltipFunction("jsx3.chart.AreaSeries.tooltip");};g.getXField=function(){return this.xField;};g.setXField=function(s){this.xField=s;};g.getYField=function(){return this.yField;};g.setYField=function(j){this.yField=j;};g.getMinField=function(){return this.minField;};g.setMinField=function(b){this.minField=b;};g.getForm=function(){return this.form;};g.setForm=function(p){if(c.Ae[p]){this.form=p;}else{throw new jsx3.IllegalArgumentException("form",p);}};g.getPointRadius=function(){return this.pointRadius!=null?this.pointRadius:c.Xg;};g.setPointRadius=function(q){this.pointRadius=q;};g.getPointRenderer=function(){return this.d8("pointRenderer");};g.setPointRenderer=function(h){this.uR("pointRenderer",h);};g.getPointFill=function(){return this.pointFill;};g.setPointFill=function(q){this.pointFill=q;};g.getPointStroke=function(){return this.pointStroke;};g.setPointStroke=function(b){this.pointStroke=b;};g.getPointGradient=function(){return this.pointGradient;};g.setPointGradient=function(l){this.pointGradient=l;};g.B9=function(){var Cc=this.Q0("LJ");if(Cc==null)this.mG();return this.Q0("LJ");};g.b8=function(){var x=this.Q0("PY");if(x==null)this.mG();return this.Q0("PY");};g.mG=function(){var bb=this.qT();var Mc=t.Fill.valueOf(this.getPointFill());if(Mc==null&&bb!=null)Mc=new t.Fill(bb.getColor());if(Mc!=null)Mc=Gc.addGradient(Mc,this.pointGradient);var u=t.Stroke.valueOf(this.getPointStroke());this.xI("LJ",Mc);this.xI("PY",u);};g.getXValue=function(l){if(this.xField)return Gc.asNumber(l.getAttribute(this.xField));return null;};g.getYValue=function(p){if(this.yField)return Gc.asNumber(p.getAttribute(this.yField));return null;};g.getMinValue=function(s){if(this.minField)return Gc.asNumber(s.getAttribute(this.minField));return null;};g.PM=function(j,r,q,a){var G=this.Q0("ZN");if(G==null){G=[];this.xI("ZN",G);}G.push([j,r,q,a]);};g.YZ=function(m,l){var yb=this.Q0("vJ");if(yb==null){yb=[];this.xI("vJ",yb);}yb.push([m,l]);};g.BV=function(){var fc=this.Q0("ZN");if(fc!=null)fc.splice(0,fc.length);var u=this.Q0("vJ");if(u!=null)u.splice(0,u.length);};g.updateView=function(){this.jsxsuper();var Ob=this.l5();var yb=null,P=null;var F=this.D7();if(F!=null){yb=new t.Shape(null,0,0,Ob.getWidth(),Ob.getHeight());yb.setId(this.getId()+"_fill");Ob.appendChild(yb);yb.setFill(F);}var _=this.qT();if(_!=null){P=new t.Shape(null,0,0,Ob.getWidth(),Ob.getHeight());P.setId(this.getId()+"_stroke");Ob.appendChild(P);P.setStroke(_);}this.mG();var sb=this.Q0("ZN");var sc=this.Q0("vJ");if(sb==null||sb.length==0||sc==null||sc.length==0)return;var ub=this.getPointRenderer();var ib=this.getPointRadius();var R=this.getTooltipFunction();var D=this.B9();var Ic=this.b8();var pc=this.getColorFunction();this.A3(yb);for(var N=0;N<sb.length;N++){var wc=sb[N][0];var Lb=sb[N][1];var zb=sb[N][2];var T=sb[N][3];if(N==0){if(yb!=null)yb.X6(Lb,zb);if(P!=null)P.X6(Lb,zb);}else{var uc=sb[N-1][1];var O=sb[N-1][2];if(this.form==c.FORM_SEGMENT){if(yb!=null)yb.Z7(Lb,zb);if(P!=null)P.Z7(Lb,zb);}else{if(this.form==c.FORM_STEP){if(yb!=null)yb.Z7(Lb,O).Z7(Lb,zb);if(P!=null)P.Z7(Lb,O).Z7(Lb,zb);}else{if(this.form==c.FORM_REVSTEP){if(yb!=null)yb.Z7(uc,zb).Z7(Lb,zb);if(P!=null)P.Z7(uc,zb).Z7(Lb,zb);}else{Gc.LOG.error("bad AreaSeries form: "+this.form);}}}}if(ub!=null){var I=pc!=null?pc.call(null,wc,T):D;var Q=ub.render(Lb-ib,zb-ib,Lb+ib,zb+ib,I,Ic);Q.setId(this.getId()+"_p"+N);this.A3(Q,N,wc.getAttribute("jsxid"));Ob.appendChild(Q);if(R!=null)Q.setToolTip(R.call(null,this,wc));}}for(var N=sc.length-1;N>=0;N--){var Lb=sc[N][0];var zb=sc[N][1];if(N==sc.length-1){yb.Z7(Lb,zb);}else{var uc=sc[N+1][0];var O=sc[N+1][1];if(this.form==c.FORM_SEGMENT){yb.Z7(Lb,zb);}else{if(this.form==c.FORM_STEP){yb.Z7(uc,zb).Z7(Lb,zb);}else{if(this.form==c.FORM_REVSTEP){yb.Z7(Lb,O).Z7(Lb,zb);}else{Gc.LOG.error("bad AreaSeries form: "+this.form);}}}}}yb.w9();};c.tooltip=function(d,e){var wc=d.getXValue(e);var gc=d.getYValue(e);var db=d.getMinValue(e);var hc=db!=null?"{"+db+","+gc+"}":gc;if(wc!=null)hc=hc+(", x = "+wc);return hc;};g.toString=function(){return "[AreaSeries '"+this.getName()+"']";};c.getVersion=function(){return Gc.q2;};});
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.0-rc4-master-c26842a */ !function(e,t,n){"use strict";function i(){return{controller:function(){},compile:function(e){var i=e.find("md-slider");if(i){var a=i.attr("md-vertical");return a!==n&&e.attr("md-vertical",""),i.attr("flex")||i.attr("flex",""),function(e,n,i,a){function r(e){n.children().attr("disabled",e),n.find("input").attr("disabled",e)}n.addClass("_md");var o=t.noop;i.disabled?r(!0):i.ngDisabled&&(o=e.$watch(i.ngDisabled,function(e){r(e)})),e.$on("$destroy",function(){o()});var d;a.fitInputWidthToTextLength=function(e){var t=n.find("md-input-container"),i=getComputedStyle(t[0]),a=parseInt(i["min-width"]),r=2*parseInt(i.padding);d=d||parseInt(i["max-width"]);var o=Math.max(d,a+r+a/2*e);t.css("max-width",o+"px")}}}}}}function a(e,n,i,a,r,o,d,s,l,u){function c(e,n){var a=t.element(e[0].getElementsByClassName("_md-slider-wrapper")),r=n.tabindex||0;return a.attr("tabindex",r),(n.disabled||n.ngDisabled)&&a.attr("tabindex",-1),a.attr("role","slider"),i.expect(e,"aria-label"),m}function m(i,c,m,f){function v(){C(),M()}function h(e){de=parseFloat(e),c.attr("aria-valuemin",e),v()}function p(e){se=parseFloat(e),c.attr("aria-valuemax",e),v()}function g(e){le=parseFloat(e)}function $(e){ue=A(parseInt(e),0,6)}function w(){c.attr("aria-disabled",!!G())}function b(){if(ae&&!G()&&!t.isUndefined(le)){if(0>=le){var e="Slider step value must be greater than zero when in discrete mode";throw l.error(e),new Error(e)}var i=Math.floor((se-de)/le);ce||(ce=t.element("<canvas>").css("position","absolute"),Z.append(ce),me=ce[0].getContext("2d"));var a=x();!a||a.height||a.width||(C(),a=fe),ce[0].width=a.width,ce[0].height=a.height;for(var r,o=0;i>=o;o++){var d=n.getComputedStyle(Z[0]);me.fillStyle=d.color||"black",r=Math.floor((ie?a.height:a.width)*(o/i)),me.fillRect(ie?0:r-1,ie?r-1:0,ie?a.width:2,ie?2:a.height)}}}function _(){if(ce&&me){var e=x();me.clearRect(0,0,e.width,e.height)}}function C(){fe=Q[0].getBoundingClientRect()}function x(){return te(),fe}function y(e){if(!G()){var t;(ie?e.keyCode===r.KEY_CODE.DOWN_ARROW:e.keyCode===r.KEY_CODE.LEFT_ARROW)?t=-le:(ie?e.keyCode===r.KEY_CODE.UP_ARROW:e.keyCode===r.KEY_CODE.RIGHT_ARROW)&&(t=le),t&&((e.metaKey||e.ctrlKey||e.altKey)&&(t*=4),e.preventDefault(),e.stopPropagation(),i.$evalAsync(function(){E(Y.$viewValue+t)}))}}function D(){b(),i.mouseActive=!0,ee.removeClass("md-focused"),u(function(){i.mouseActive=!1},100)}function V(){i.mouseActive===!1&&ee.addClass("md-focused")}function k(){ee.removeClass("md-focused"),c.removeClass("_md-active"),_()}function E(e){Y.$setViewValue(A(S(e)))}function M(){isNaN(Y.$viewValue)&&(Y.$viewValue=Y.$modelValue),Y.$viewValue=A(Y.$viewValue);var e=(Y.$viewValue-de)/(se-de);i.modelValue=Y.$viewValue,c.attr("aria-valuenow",Y.$viewValue),R(e),H.text(Y.$viewValue)}function A(e,n,i){return t.isNumber(e)?(n=t.isNumber(n)?n:de,i=t.isNumber(i)?i:se,Math.max(n,Math.min(i,e))):void 0}function S(e){if(t.isNumber(e)){var n=Math.round((e-de)/le)*le+de;return n=Math.round(n*Math.pow(10,ue))/Math.pow(10,ue),U&&U.fitInputWidthToTextLength&&a.debounce(function(){U.fitInputWidthToTextLength(n.toString().length)},100)(),n}}function R(e){e=F(e);var t=100*e+"%";J.css(ie?"bottom":"left",t),X.css(ie?"height":"width",t),c.toggleClass("_md-min",0===e),c.toggleClass("_md-max",1===e)}function N(e){if(!G()){c.addClass("_md-active"),c[0].focus(),C();var t=z(P(ie?e.pointer.y:e.pointer.x)),n=A(S(t));i.$apply(function(){E(n),R(B(n))})}}function T(e){if(!G()){c.removeClass("_md-dragging");var t=z(P(ie?e.pointer.y:e.pointer.x)),n=A(S(t));i.$apply(function(){E(n),M()})}}function O(e){G()||(ve=!0,e.stopPropagation(),c.addClass("_md-dragging"),K(e))}function I(e){ve&&(e.stopPropagation(),K(e))}function W(e){ve&&(e.stopPropagation(),ve=!1)}function K(e){ae?q(ie?e.pointer.y:e.pointer.x):L(ie?e.pointer.y:e.pointer.x)}function L(e){i.$evalAsync(function(){E(z(P(e)))})}function q(e){var t=z(P(e)),n=A(S(t));R(P(e)),H.text(n)}function F(e){return Math.max(0,Math.min(e||0,1))}function P(e){var t=ie?fe.top:fe.left,n=ie?fe.height:fe.width,i=(e-t)/n;return Math.max(0,Math.min(1,ie?1-i:i))}function z(e){return de+e*(se-de)}function B(e){return(e-de)/(se-de)}o(c);var Y=f[0]||{$setViewValue:function(e){this.$viewValue=e,this.$viewChangeListeners.forEach(function(e){e()})},$parsers:[],$formatters:[],$viewChangeListeners:[]},U=f[1],G=(t.element(a.getClosest(c,"_md-slider-container",!0)),m.ngDisabled?t.bind(null,s(m.ngDisabled),i.$parent):function(){return c[0].hasAttribute("disabled")}),j=t.element(c[0].querySelector("._md-thumb")),H=t.element(c[0].querySelector("._md-thumb-text")),J=j.parent(),Q=t.element(c[0].querySelector("._md-track-container")),X=t.element(c[0].querySelector("._md-track-fill")),Z=t.element(c[0].querySelector("._md-track-ticks")),ee=t.element(c[0].getElementsByClassName("_md-slider-wrapper")),te=(t.element(c[0].getElementsByClassName("_md-slider-content")),a.throttle(C,5e3)),ne=3,ie=t.isDefined(m.mdVertical),ae=t.isDefined(m.mdDiscrete);t.isDefined(m.min)?m.$observe("min",h):h(0),t.isDefined(m.max)?m.$observe("max",p):p(100),t.isDefined(m.step)?m.$observe("step",g):g(1),t.isDefined(m.round)?m.$observe("round",$):$(ne);var re=t.noop;m.ngDisabled&&(re=i.$parent.$watch(m.ngDisabled,w)),d.register(ee,"drag",{horizontal:!ie}),i.mouseActive=!1,ee.on("keydown",y).on("mousedown",D).on("focus",V).on("blur",k).on("$md.pressdown",N).on("$md.pressup",T).on("$md.dragstart",O).on("$md.drag",I).on("$md.dragend",W),setTimeout(v,0);var oe=e.throttle(v);t.element(n).on("resize",oe),i.$on("$destroy",function(){t.element(n).off("resize",oe)}),Y.$render=M,Y.$viewChangeListeners.push(M),Y.$formatters.push(A),Y.$formatters.push(S);var de,se,le,ue,ce,me,fe={};C();var ve=!1}return{scope:{},require:["?ngModel","?^mdSliderContainer"],template:'<div class="_md-slider-wrapper"><div class="_md-slider-content"><div class="_md-track-container"><div class="_md-track"></div><div class="_md-track _md-track-fill"></div><div class="_md-track-ticks"></div></div><div class="_md-thumb-container"><div class="_md-thumb"></div><div class="_md-focus-thumb"></div><div class="_md-focus-ring"></div><div class="_md-sign"><span class="_md-thumb-text"></span></div><div class="_md-disabled-thumb"></div></div></div></div>',compile:c}}t.module("material.components.slider",["material.core"]).directive("mdSlider",a).directive("mdSliderContainer",i),a.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse","$log","$timeout"]}(window,window.angular);
module.exports = { "postcss": [], "svg": { "active": true, "workflow": "sprite", "symbolsConfig": { "loadingType": "inject", "usePolyfillForExternalSymbols": true, "pathToExternalSymbolsFile": "" } }, "css": { "workflow": "concat" }, "js": { "workflow": "modular", "bundler": "webpack", "lint": false, "useBabel": true, "removeConsoleLog": true, "webpack": { "useHMR": false, "providePlugin": {} }, "jsPathsToConcatBeforeModulesJs": [], "lintJsCodeBeforeModules": false, "jsPathsToConcatAfterModulesJs": [], "lintJsCodeAfterModules": false }, "sourcemaps": { "js": { "active": true, "inline": true }, "css": { "active": true, "inline": true } }, "notifyConfig": { "useNotify": false, "title": "TARS notification", "sounds": {}, "taskFinishedText": "Task finished at: " }, "minifyHtml": false, "generateStaticPath": true, "devPath": "./dev/", "buildPath": "./builds/", "useBuildVersioning": false, "useArchiver": false, "ulimit": 4096, "templater": "pug", "cssPreprocessor": "scss", "useImagesForDisplayWithDpi": [ 96 ], "fs": { "staticFolderName": "static", "imagesFolderName": "img", "componentsFolderName": "components" }, "staticPrefix": "static/" };
import React, { useState } from 'react'; import { withdrawToken } from 'store/actions'; import { useDispatch } from 'react-redux'; import { Button, Modal, InputNumber, Slider } from 'antd'; export default function WithdrawModal({ listTokenStake, poolSelected, marks, loading }) { const dispatch = useDispatch(); let [modalWithdraw, setModalWithdraw] = useState(false); let [amountWithdraw, setAmountWithdraw] = useState(0.1); const handleWithdraw = (e) => { if (amountWithdraw <= 0) { setAmountWithdraw(0.1); } if (amountWithdraw > 0 && parseFloat(amountWithdraw) <= listTokenStake[poolSelected]) { dispatch(withdrawToken(poolSelected, amountWithdraw)).then((data) => { if (!data) { setModalWithdraw(false); setAmountWithdraw(0); } }); } }; const handleCancelWithdraw = (e) => { setModalWithdraw(false); }; function withdrawChange(value) { setAmountWithdraw( parseFloat(value) >= listTokenStake[poolSelected] ? listTokenStake[poolSelected] : value ); } function changeSliderWithdraw(value) { if (value <= 0) { setAmountWithdraw(0.1); } else if (value >= 100) { setAmountWithdraw(listTokenStake[poolSelected]); } else { setAmountWithdraw((value / 100) * listTokenStake[poolSelected]); } } return ( <div> <Button className='bt-liner' type='primary' shape='round' size='large' onClick={() => setModalWithdraw(true)} > Withdraw </Button> <Modal title={[ <h2 key='title-withdraw' className='text-center'> <b>WITHDRAW</b> </h2>, ]} visible={modalWithdraw} onCancel={() => handleCancelWithdraw()} footer={[ listTokenStake[poolSelected] > 0.1 ? ( <Button key='withdraw' type='primary' shape='round' onClick={() => handleWithdraw()} loading={loading} > Withdraw </Button> ) : ( '' ), ]} > <div className='w_100 text-center'> <InputNumber className='iph_input' step={0.1} min={0.1} placeholder='PHONE' onChange={withdrawChange} value={amountWithdraw} /> </div> <div className='w_100 text-center'> <div className='iph_input'> <Slider marks={marks} min={0.1} max={100} step={null} onChange={(e) => changeSliderWithdraw(e)} value={(amountWithdraw / listTokenStake[poolSelected]) * 100} /> </div> </div> <div className='w_100 text_left'> <p>Balance : {listTokenStake[poolSelected]} IPHONE</p> </div> </Modal> </div> ); }
const { getRequestString } = require('../helper/helpers') const replaceTypes = (query) => query.replace(/(\")(LIKE|LIKEDISLIKE|CHOICE|REGULATOR|FAVORITE|RANKING)(\")/g, '$2') function createQuestionMutation(surveyID, type, createData) { return { query: replaceTypes(getRequestString( 'mutation', 'createQuestion', ` question { value description type items { label } ... on LikeQuestion { likeIcon { url } } ... on LikeDislikeQuestion { likeIcon { url } dislikeIcon { url } } ... on ChoiceQuestion { choices { label } choiceDefault: default } ... on RegulatorQuestion { labels { label value } stepSize min max regulatorDefault: default } } `, { data: { surveyID, type, ...createData } } )) } } function updateQuestionMutation(questionID, updateData) { return { query: replaceTypes(getRequestString( 'mutation', 'updateQuestion', ` question { value description type items { label } ... on LikeQuestion { likeIcon { url } } ... on LikeDislikeQuestion { likeIcon { url } dislikeIcon { url } } ... on ChoiceQuestion { choices { label } choiceDefault: default } ... on RegulatorQuestion { labels { label value } stepSize min max regulatorDefault: default } } `, { questionID, data: updateData } )), } } function deleteQuestionMutation(questionID) { return { query: `mutation { deleteQuestion(questionID:"${questionID}"){ success } }`, } } function createItemMutation(questionID, label) { return { query: getRequestString( 'mutation', 'createItem', ` item { label } `, { questionID, data: { label } } ) } } function updateItemMutation(questionID, itemID, label) { return { query: getRequestString( 'mutation', 'updateItem', ` item { label } `, { questionID, itemID, data: { label } } ), } } function deleteItemMutation(questionID, itemID) { return { query: `mutation { deleteItem(questionID:"${questionID}", itemID:"${itemID}"){ success } }`, } } function createChoiceMutation(questionID, createData) { return { query: getRequestString( 'mutation', 'createChoice', ` choice { label } `, { questionID, data: createData } ) } } function updateChoiceMutation(questionID, choiceID, updateData) { return { query: getRequestString( 'mutation', 'updateChoice', ` choice { label code } `, { questionID, choiceID, data: updateData } ), } } function deleteChoiceMutation(questionID, choiceID) { return { query: `mutation { deleteChoice(questionID:"${questionID}", choiceID:"${choiceID}"){ success } }`, } } function createLabelMutation(questionID, createData) { return { query: getRequestString( 'mutation', 'createLabel', ` label { label value } `, { questionID, data: createData } ) } } function updateLabelMutation(questionID, labelID, updateData) { return { query: getRequestString( 'mutation', 'updateLabel', ` label { label value } `, { questionID, labelID, data: updateData } ), } } function deleteLabelMutation(questionID, labelID) { return { query: `mutation { deleteLabel(questionID:"${questionID}", labelID:"${labelID}"){ success } }`, } } module.exports = { createQuestionMutation, updateQuestionMutation, deleteQuestionMutation, createItemMutation, updateItemMutation, deleteItemMutation, createChoiceMutation, updateChoiceMutation, deleteChoiceMutation, createLabelMutation, updateLabelMutation, deleteLabelMutation }
import './App.css'; import { summarizeWdioLog } from './axe-utils.js'; // TODO: Sauce Labs - replace the file being imported with a funtion that returns the wdioLog object import wdioLog from './wdio_test_log.json'; function BigNumCard(props) { return ( <div className="card"> <div className="card-title">{props.title}</div> <div className="card-bigvalue">{props.value}</div> <div className="card-explanation">{props.explanation}</div> </div> ); } function TableDataRow(props) { return ( <tr> <th scope="row">{props.name}</th> <td>{props.value}</td> </tr> ); } function TableBodyRows(props) { if (!(props.tableValues instanceof Map)) throw new Error('props.tableValues must be a Map.'); const dataRows = []; for (const entry of props.tableValues) { dataRows.push(<TableDataRow key={entry[0]} name={entry[0]} value={entry[1]} />); } return (dataRows); } function TableCard(props) { return ( <div className="card"> <div className="card-title">{props.title}</div> <table className="axe-table"> <thead> <th scope="col">Severity</th> <th scope="col">Count</th> </thead> <tbody> <TableBodyRows tableValues={props.tableValues} /> </tbody> </table> <div className="card-explanation">{props.explanation}</div> </div> ); } function FixtureTitle() { return ( <nav> <h1 style={{textAlign: "center", color: "orange"}}>Fixture for Accessibiltiy dashboard for Sauce Labs</h1> <br /><br /> </nav> ); } function App() { if (wdioLog) { const { testCount, violationCount, passCount, incompleteCount, impactTable} = summarizeWdioLog(wdioLog); if (testCount > 0 ) { const passRatio = (passCount/(passCount + violationCount + incompleteCount)).toFixed(2); return ( <div> <FixtureTitle /> <div className="dashboard" role="main" style={{border: '2px dashed orange'}}> <BigNumCard title='axe Test Runs' value={testCount} explanation='This is the number of times the test run triggered axe accessibility testing.' /> <BigNumCard title='Total Issues' value={violationCount} explanation='This is the number of accessibility issues detected by axe for the entire test, including the results of multiple pages or page-states.' /> <BigNumCard title='Pass Ratio' value={passRatio} explanation='Number of issues found compared to the total number of checks performed. #pass / (#pass + #fail).' /> <TableCard title='Issues by Severity' tableValues={impactTable} explanation='Critical issues represent the worst experience for people with certain disabilities.' /> {/* TODO: Actually I think we should not do this because it is not relevant to users who don't know accessibility details <TableCard title='Issues by Type' tableValues={typeTable} explanation='' />*/} </div> </div> ); } } return ( <div> <FixtureTitle /> <div role="main" style={{border: '2px dashed orange', padding: '2em'}}> <h2>No axe Test Runs were found in the log.</h2> <hr /> <p>Resources:</p> <p>TODO: Deque - Make the target page <a href="https://deque.com/saucelabs/getting-started">Getting Started with Accessibility Testing on Sauce</a></p> <p>TODO: Deque - Make a more relevant video <a href="https://www.youtube.com/watch?v=-n5Ul7WPc3Y">Video tutorial on Accessibility Testing</a></p> </div> </div> ); } export default App;
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // identity function for calling harmony imports with the correct context /******/ __webpack_require__.i = function(value) { return value; }; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ } /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 26); /******/ }) /************************************************************************/ /******/ ({ /***/ 0: /***/ (function(module, exports) { /* globals __VUE_SSR_CONTEXT__ */ // this module is a runtime utility for cleaner component module output and will // be included in the final webpack user bundle module.exports = function normalizeComponent ( rawScriptExports, compiledTemplate, injectStyles, scopeId, moduleIdentifier /* server only */ ) { var esModule var scriptExports = rawScriptExports = rawScriptExports || {} // ES6 modules interop var type = typeof rawScriptExports.default if (type === 'object' || type === 'function') { esModule = rawScriptExports scriptExports = rawScriptExports.default } // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (compiledTemplate) { options.render = compiledTemplate.render options.staticRenderFns = compiledTemplate.staticRenderFns } // scopedId if (scopeId) { options._scopeId = scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = injectStyles } if (hook) { var functional = options.functional var existing = functional ? options.render : options.beforeCreate if (!functional) { // inject component registration as beforeCreate hook options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } else { // register for functioal component in vue file options.render = function renderWithStyleInjection (h, context) { hook.call(context) return existing(h, context) } } } return { esModule: esModule, exports: scriptExports, options: options } } /***/ }), /***/ 1: /***/ (function(module, exports, __webpack_require__) { var Component = __webpack_require__(0)( /* script */ __webpack_require__(2), /* template */ null, /* styles */ null, /* scopeId */ null, /* moduleIdentifier (server only) */ null ) module.exports = Component.exports /***/ }), /***/ 12: /***/ (function(module, exports) { // removed by extract-text-webpack-plugin /***/ }), /***/ 16: /***/ (function(module, exports) { module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; return _c('div', { staticClass: "mint-spinner-snake", style: ({ 'border-top-color': _vm.spinnerColor, 'border-left-color': _vm.spinnerColor, 'border-bottom-color': _vm.spinnerColor, 'height': _vm.spinnerSize, 'width': _vm.spinnerSize }) }) },staticRenderFns: []} /***/ }), /***/ 2: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony default export */ __webpack_exports__["default"] = ({ computed: { spinnerColor: function spinnerColor() { return this.color || this.$parent.color || '#ccc'; }, spinnerSize: function spinnerSize() { return (this.size || this.$parent.size || 28) + 'px'; } }, props: { size: Number, color: String } }); /***/ }), /***/ 26: /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(5); /***/ }), /***/ 5: /***/ (function(module, exports, __webpack_require__) { function injectStyle (ssrContext) { __webpack_require__(12) } var Component = __webpack_require__(0)( /* script */ __webpack_require__(9), /* template */ __webpack_require__(16), /* styles */ injectStyle, /* scopeId */ null, /* moduleIdentifier (server only) */ null ) module.exports = Component.exports /***/ }), /***/ 9: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__common_vue__); // // // // // // // // // // // /* harmony default export */ __webpack_exports__["default"] = ({ name: 'snake', mixins: [__WEBPACK_IMPORTED_MODULE_0__common_vue___default.a] }); /***/ }) /******/ });
// Copyright 2019 The LUCI Authors. All rights reserved. // Use of this source code is governed under the Apache License, Version 2.0 // that can be found in the LICENSE file. import './index.js'; import {requireLogin, mockAuthdAppGETs} from '../test_util'; import {$$} from 'common-sk/modules/dom'; (function() { const fetchMock = require('fetch-mock'); mockAuthdAppGETs(fetchMock, {delete_bot: true}); fetchMock.get('glob:/_ah/api/swarming/v1/bots/count?*', requireLogin({dead: 3}, 700)); fetchMock.get('glob:/_ah/api/swarming/v1/bots/list?*', requireLogin({ items: [{bot_id: 'bot-1'}, {bot_id: 'bot-2'}, {bot_id: 'bot-3'}], }, 700)); fetchMock.post('glob:/_ah/api/swarming/v1/bot/*/delete', requireLogin(200, 1500)); fetchMock.catch(404); $$('bot-mass-delete').show(); })();
'use strict'; const chai = require('chai'); const chaiAsPromised = require('chai-as-promised'); chai.should(); chai.use(chaiAsPromised); const path = require('path'); const Application = require('spectron').Application; const source_root_dir = path.join(__dirname, '../..'); const electron_binary_path = (function() { if (process.platform === 'darwin') { return path.join(source_root_dir, 'node_modules/electron-prebuilt/dist/Electron.app/Contents/MacOS/Electron'); } else { const exe_extension = (process.platform === 'win32') ? '.exe' : ''; return path.join(source_root_dir, 'node_modules/electron-prebuilt/dist/electron' + exe_extension); } })(); const config_file_path = path.join(source_root_dir, 'test/test_config.json'); const mattermost_url = 'http://example.com/team'; module.exports = { sourceRootDir: source_root_dir, configFilePath: config_file_path, mattermostURL: mattermost_url, getSpectronApp: function() { const app = new Application({ path: electron_binary_path, args: [`${path.join(source_root_dir, 'dist')}`, '--config-file=' + config_file_path] }); chaiAsPromised.transferPromiseness = app.transferPromiseness return app; }, addClientCommands: function(client) { client.addCommand('loadSettingsPage', function async() { return this .url('file://' + path.join(source_root_dir, 'dist/browser/settings.html')) .waitUntilWindowLoaded(); }); client.addCommand('isNodeEnabled', function async() { return this.execute(function() { try { return require('child_process') ? true : false; } catch (e) { return false; } }).then((require_result) => { return require_result.value; }); }); }, // execute the test only when `condition` is true shouldTest: function(it, condition) { return condition ? it : it.skip; }, isOneOf(platforms) { return (platforms.indexOf(process.platform) !== -1); } }
// CommonJS File module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.createTable('enrollments', { id: { type: Sequelize.INTEGER, allowNull: false, autoIncrement: true, primaryKey: true, }, student_id: { type: Sequelize.INTEGER, allowNull: true, references: { model: 'students', key: 'id' }, onUpdate: 'CASCADE', onDelete: 'SET NULL', }, plan_id: { type: Sequelize.INTEGER, allowNull: true, references: { model: 'plans', key: 'id' }, onUpdate: 'CASCADE', onDelete: 'SET NULL', }, start_date: Sequelize.DATE, end_date: Sequelize.DATE, price: Sequelize.FLOAT, canceled_at: { type: Sequelize.DATE, defaultValue: null, }, created_at: { type: Sequelize.DATE, allowNull: false, }, updated_at: { type: Sequelize.DATE, allowNull: false, }, }); }, down: queryInterface => { return queryInterface.dropTable('enrollments'); }, };
var bombs = { list: {}, create: function(id, x, y, radius, color, state){ bombs.list[id] = { id: id, class: 'bomb', x: x, y: y, radius: radius, backgroundColor: color, state: state, comeBack: function(){ if(!bombs.list[id].state){ setTimeout(function(){ bombs.list[id].state = true; } ,60000); } }, init: function(){}, update: function(){}, render: function () { if(this.state){ game.context.fillStyle = this.backgroundColor; game.context.beginPath(); game.context.arc(this.x, this.y, this.radius, 0, Math.PI*2, true); game.context.closePath(); game.context.fill(); } } } } }
angular.module('ng360') .run(function ($templateCache) { var tpl = '<md-fab-speed-dial class="{{mdAnimation || \'md-fling\'}}" md-direction="{{mdDirection || \'left\'}}">' + '<md-fab-trigger>' + '<md-button aria-label="{{label}}" class="md-fab">' + '{{current.label}}' + '<md-tooltip md-delay="500">{{label}}</md-tooltip>' + '</md-button>' + '</md-fab-trigger>' + '<md-fab-actions>' + '<md-button ng-repeat="speed in travelSpeedFabCtrl.travelSpeeds" ng-click="travelSpeedFabCtrl.changeTravelSpeed(speed)" aria-label="{{speed.label}}" class="md-fab md-mini medium" style="font-size: 11px">' + '{{::(speed.label)}}' + '<md-tooltip md-delay="500">{{speed.tooltip || speed.value}}</md-tooltip>' + '</md-button>' + '</md-fab-actions>' + '</md-fab-speed-dial>'; $templateCache.put('travelSpeedFab.tpl', tpl); });
( function () { /** * Colorify shader */ const ColorifyShader = { uniforms: { 'tDiffuse': { value: null }, 'color': { value: new THREE.Color( 0xffffff ) } }, vertexShader: `varying vec2 vUv; void main() { vUv = uv; gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); }`, fragmentShader: `uniform vec3 color; uniform sampler2D tDiffuse; varying vec2 vUv; void main() { vec4 texel = texture2D( tDiffuse, vUv ); vec3 luma = vec3( 0.299, 0.587, 0.114 ); float v = dot( texel.xyz, luma ); gl_FragColor = vec4( v * color, texel.w ); }` }; THREE.ColorifyShader = ColorifyShader; } )();
'use strict'; var testUtils = require('./testUtils'); var Promise = require('bluebird'); var stripe = require('../lib/stripe')( testUtils.getUserStripeKey(), 'latest' ); var expect = require('chai').expect; var CUSTOMER_DETAILS = { description: 'Some customer', card: 'tok_visa', }; describe('Stripe Module', function() { var cleanup = new testUtils.CleanupUtility(); this.timeout(20000); describe('setApiKey', function() { it('uses Bearer auth', function() { expect(stripe.getApiField('auth')).to.equal('Bearer ' + testUtils.getUserStripeKey()); }); }); describe('GetClientUserAgent', function() { it('Should return a user-agent serialized JSON object', function() { return expect(new Promise(function(resolve, reject) { stripe.getClientUserAgent(function(c) { resolve(JSON.parse(c)); }); })).to.eventually.have.property('lang', 'node'); }); }); describe('GetClientUserAgentSeeded', function() { it('Should return a user-agent serialized JSON object', function() { var userAgent = {lang: 'node'}; var d = Promise.defer(); stripe.getClientUserAgentSeeded(userAgent, function(c) { d.resolve(JSON.parse(c)); }); return expect(d.promise).to.eventually.have.property('lang', 'node'); }); it('Should URI-encode user-agent fields', function() { var userAgent = {lang: 'ï'}; var d = Promise.defer(); stripe.getClientUserAgentSeeded(userAgent, function(c) { d.resolve(JSON.parse(c)); }); return expect(d.promise).to.eventually.have.property('lang', '%C3%AF'); }) }); describe('setTimeout', function() { it('Should define a default equal to the node default', function() { expect(stripe.getApiField('timeout')).to.equal(require('http').createServer().timeout); }); it('Should allow me to set a custom timeout', function() { stripe.setTimeout(900); expect(stripe.getApiField('timeout')).to.equal(900); }); it('Should allow me to set null, to reset to the default', function() { stripe.setTimeout(null); expect(stripe.getApiField('timeout')).to.equal(require('http').createServer().timeout); }); }); describe('setAppInfo', function() { describe('when given nothing or an empty object', function() { it('should unset stripe._appInfo', function() { stripe.setAppInfo(); expect(stripe._appInfo).to.be.undefined; }); }); describe('when given an object with no `name`', function() { it('should throw an error', function() { expect(function() { stripe.setAppInfo({}); }).to.throw(/AppInfo.name is required/); expect(function() { stripe.setAppInfo({ version: '1.2.3', }); }).to.throw(/AppInfo.name is required/); expect(function() { stripe.setAppInfo({ cats: '42', }); }).to.throw(/AppInfo.name is required/); }); }); describe('when given at least a `name`', function() { it('should set name, version and url of stripe._appInfo', function() { stripe.setAppInfo({ name: 'MyAwesomeApp', }); expect(stripe._appInfo).to.eql({ name: 'MyAwesomeApp', }); stripe.setAppInfo({ name: 'MyAwesomeApp', version: '1.2.345', }); expect(stripe._appInfo).to.eql({ name: 'MyAwesomeApp', version: '1.2.345', }); stripe.setAppInfo({ name: 'MyAwesomeApp', url: 'https://myawesomeapp.info', }); expect(stripe._appInfo).to.eql({ name: 'MyAwesomeApp', url: 'https://myawesomeapp.info', }); }); it('should ignore any invalid properties', function() { stripe.setAppInfo({ name: 'MyAwesomeApp', version: '1.2.345', url: 'https://myawesomeapp.info', countOfRadishes: 512, }); expect(stripe._appInfo).to.eql({ name: 'MyAwesomeApp', version: '1.2.345', url: 'https://myawesomeapp.info', }); }); }); it('should be included in the ClientUserAgent and be added to the UserAgent String', function(done) { var appInfo = { name: testUtils.getRandomString(), version: '1.2.345', url: 'https://myawesomeapp.info', }; stripe.setAppInfo(appInfo); stripe.getClientUserAgent(function(uaString) { expect(JSON.parse(uaString).application).to.eql(appInfo); expect(stripe.getAppInfoAsString()).to.eql(appInfo.name + '/' + appInfo.version + ' (' + appInfo.url + ')'); done(); }); }); }); describe('Callback support', function() { describe('Any given endpoint', function() { it('Will call a callback if successful', function() { return expect(new Promise(function(resolve, reject) { stripe.customers.create(CUSTOMER_DETAILS, function(err, customer) { cleanup.deleteCustomer(customer.id); resolve('Called!'); }); })).to.eventually.equal('Called!'); }); it('Will expose HTTP response object', function() { return expect(new Promise(function(resolve, reject) { stripe.customers.create(CUSTOMER_DETAILS, function(err, customer) { cleanup.deleteCustomer(customer.id); var headers = customer.lastResponse.headers; expect(headers).to.contain.keys('request-id'); expect(customer.lastResponse.requestId).to.match(/^req_/); expect(customer.lastResponse.statusCode).to.equal(200); resolve('Called!'); }); })).to.eventually.equal('Called!'); }); it('Given an error the callback will receive it', function() { return expect(new Promise(function(resolve, reject) { stripe.customers.createCard('nonExistentCustId', {card: {}}, function(err, customer) { if (err) { resolve('ErrorWasPassed'); } else { reject(new Error('NoErrorPassed')); } }); })).to.eventually.become('ErrorWasPassed'); }); }); }); });
const HtmlWebpackPlugin = require('html-webpack-plugin'); const WebpackPwaManifest = require('webpack-pwa-manifest'); const path = require('path'); const { InjectManifest } = require('workbox-webpack-plugin'); // TODO: Add and configure workbox plugins for a service worker and manifest file. // TODO: Add CSS loaders and babel to webpack. module.exports = () => { return { mode: 'development', entry: { main: './src/js/index.js', install: './src/js/install.js' }, output: { filename: '[name].bundle.js', path: path.resolve(__dirname, 'dist'), }, plugins: [ // Webpack plugin that generates our html file and injects our bundles. new HtmlWebpackPlugin({ template: './index.html', title: 'Editor' }), // Injects our custom service worker new InjectManifest({ swSrc: './src-sw.js', swDest: 'src-sw.js', }), // Creates a manifest.json file. new WebpackPwaManifest({ fingerprints: false, inject: true, name: 'Just another text editor', short_name: 'J.A.T.E', description: 'Takes notes with JavaScript syntax highlighting!', background_color: '#225ca3', theme_color: '#225ca3', start_url: '/', publicPath: '/', icons: [ { src: path.resolve('src/images/logo.png'), sizes: [96, 128, 192, 256, 384, 512], destination: path.join('assets', 'icons'), }, ], }), ], module: { rules: [ { test: /\.css$/i, use: ['style-loader', 'css-loader'], }, { test: /\.m?js$/, exclude: /node_modules/, // We use babel-loader in order to use ES6. use: { loader: 'babel-loader', options: { presets: ['@babel/preset-env'], plugins: ['@babel/plugin-proposal-object-rest-spread', '@babel/transform-runtime'], }, }, }, ], }, }; };
import * as Expo from "expo"; import React, { Component } from "react"; import { StyleSheet } from "react-native"; import getTheme from "./native-base-theme/components"; import platform from "./native-base-theme/variables/platform"; import material from "./native-base-theme/variables/material"; import { StackNavigator } from "react-navigation"; import LoginScreen from "./screens/login"; import HomeScreen from "./screens/home"; import ProfileScreen from "./screens/profile"; import TweetDetailsScreen from "./screens/tweetDetails"; import { Root } from "native-base"; import { Provider } from "react-redux"; import store from "./store"; import "regenerator-runtime/runtime"; console.disableYellowBox = true; const AppNavigator = StackNavigator( { Login: { screen: LoginScreen }, Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, TweetDetails: { screen: TweetDetailsScreen } }, { initialRouteName: "Login", headerMode: "none" } ); export default class App extends Component { constructor() { super(); this.state = { isLoading: true }; } componentWillMount() { this.loadFonts(); } async loadFonts() { await Expo.Font.loadAsync({ Roboto: require("native-base/Fonts/Roboto.ttf"), Roboto_medium: require("native-base/Fonts/Roboto_medium.ttf") }); this.setState({ isLoading: false }); } render() { if (this.state.isLoading) { return <Expo.AppLoading />; } else return ( <Provider store={store}> <AppNavigator /> </Provider> ); } }
import React from 'react'; import PropTypes from 'prop-types'; import { locale } from 'locale'; import OpenInNew from '@material-ui/icons/OpenInNew'; import { makeStyles } from '@material-ui/core/styles'; export const useStyles = makeStyles(() => ({ externalLink: { overflow: 'hidden', textOverflow: 'ellipsis', overflowWrap: 'break-word', wordBreak: 'break-all', whiteSpace: 'nowrap', maxWidth: '100% !important', minWidth: 0, display: 'inline-block', verticalAlign: 'bottom', cursor: 'pointer', }, externalLinkIcon: { color: 'inherit', fontSize: '0.66rem', display: 'inline-block', float: 'right', marginLeft: '0.25rem', }, })); const ExternalLink = ({ children, className = '', height, openInNewIcon = true, width, ...rest }) => { const classes = useStyles(); const openInSizedWindow = (link, width, height) => () => window.open( link, 'targetWindow', 'toolbar=no, location=no, status=no, menubar=no, scrollbars=no, resizable=yes,' + ` width=${width}, height=${height}, top=100, left=100`, ); delete rest.theme; if (!!height && !!width) { rest.onClick = openInSizedWindow(rest.href, width, height); delete rest.href; delete rest.target; delete rest.rel; } else { rest.rel ||= 'noopener noreferrer'; rest.target ||= '_blank'; } return ( <a {...{ ...rest, id: `${rest.id}-link`, }} data-testid={`${rest.id}-link`} tabIndex="0" title={ rest.title || (openInNewIcon && locale.global.linkWillOpenInNewWindow.replace('[destination]', rest.href)) || undefined } className={[className, classes.externalLink].filter(Boolean).join(' ')} > {openInNewIcon && <OpenInNew className={classes.externalLinkIcon} id={`${rest.id}-link-new-window-icon`} />} {!!children && children} </a> ); }; ExternalLink.propTypes = { children: PropTypes.any, className: PropTypes.string, height: PropTypes.number, openInNewIcon: PropTypes.bool, rel: PropTypes.string, width: PropTypes.number, id: PropTypes.string.isRequired, }; export default ExternalLink;
'use strict'; angular.module('myApp.environment', []) .constant('environment', { log_level: "debug" });
import React, { Component } from "react"; import axios from "axios"; import "./statistics.css"; class Statistics extends Component { constructor(props) { super(props); this.state = { tableHeaders: [ { header: "ID" }, { header: "Part Number" }, { header: "Customer" }, { header: "Order Amount" }, { header: "FPY 1 Quantity" }, { header: "FPY 1 %" }, { header: "FPY 2 Quantity" }, { header: "FPY 2 %" }, { header: "Scrap Quantity" }, { header: "Scrap %" }, { header: "PPMs" } ], orders: [] } } componentDidMount() { this.loadOrders(); console.log(this.state.orders); } loadOrders = () => { axios .get("/auth/ordersdone") .then(res => this.setState({ orders: res.data })) .catch(err => console.log(err)); }; render() { return ( <div className="container" id="table"> <div id="title"> <h2>Production Orders Statistics</h2> </div> <table id="dtHorizontalExample" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%"> <thead> <tr> {this.state.tableHeaders.map(d => <th key={d.header}>{d.header}</th>)} </tr> </thead> {this.state.orders.length > 0 && <tbody> {this.state.orders.map(order => ( <tr> <td>{(order._id).slice(-6)}</td> <td>{order.partnumber}</td> <td>{order.customer}</td> <td>{(order.orderquantity).toLocaleString()}</td> <td>{(order.quantityOK1).toLocaleString()}</td> <td>{((order.quantityOK1 / order.orderquantity)*100).toFixed(2)} %</td> <td>{(order.quantityOK2).toLocaleString()}</td> <td>{((order.quantityOK2 / order.orderquantity)*100).toFixed(2)} %</td> <td>{(order.quantityX).toLocaleString()}</td> <td>{((order.quantityX / order.orderquantity)*100).toFixed(2)} %</td> <td>{Math.round((order.quantityX / order.orderquantity)*1000000).toLocaleString()}</td> </tr>))} </tbody>} </table> </div> ); } } export default Statistics;
"use strict"; /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [0, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; Object.defineProperty(exports, "__esModule", { value: true }); var Common_1 = require("../Common"); var Auth_1 = require("../Auth"); var logger = new Common_1.ConsoleLogger('StorageClass'); /** * Provide storage methods to use AWS S3 */ var StorageClass = /** @class */ (function () { /** * Initialize Storage with AWS configurations * @param {Object} options - Configuration object for storage */ function StorageClass(options) { this._options = options; logger.debug('Storage Options', this._options); } /** * Configure Storage part with aws configuration * @param {Object} config - Configuration of the Storage * @return {Object} - Current configuration */ StorageClass.prototype.configure = function (options) { logger.debug('configure Storage'); var opt = options ? options.Storage || options : {}; if (options['aws_user_files_s3_bucket']) { opt = { bucket: options['aws_user_files_s3_bucket'], region: options['aws_user_files_s3_bucket_region'] }; } this._options = Object.assign({}, this._options, opt); if (!this._options.bucket) { logger.debug('Do not have bucket yet'); } return this._options; }; /** * Get a presigned URL of the file * @param {String} key - key of the object * @param {Object} [options] - { level : private|public } * @return - A promise resolves to Amazon S3 presigned URL on success */ StorageClass.prototype.get = function (key, options) { return __awaiter(this, void 0, void 0, function () { var credentialsOK, opt, bucket, region, credentials, level, download, prefix, final_key, s3, params; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this._ensureCredentials()]; case 1: credentialsOK = _a.sent(); if (!credentialsOK) { return [2 /*return*/, Promise.reject('No credentials')]; } opt = Object.assign({}, this._options, options); bucket = opt.bucket, region = opt.region, credentials = opt.credentials, level = opt.level, download = opt.download; prefix = this._prefix(opt); final_key = prefix + key; s3 = this._createS3(opt); logger.debug('get ' + key + ' from ' + final_key); params = { Bucket: bucket, Key: final_key }; if (download === true) { return [2 /*return*/, new Promise(function (res, rej) { s3.getObject(params, function (err, data) { if (err) { rej(err); } else { res(data); } }); })]; } return [2 /*return*/, new Promise(function (res, rej) { try { var url = s3.getSignedUrl('getObject', params); res(url); } catch (e) { logger.warn('get signed url error', e); rej(e); } })]; } }); }); }; /** * Put a file in S3 bucket specified to configure method * @param {Stirng} key - key of the object * @param {Object} object - File to be put in Amazon S3 bucket * @param {Object} [options] - { level : private|public, contentType: MIME Types } * @return - promise resolves to object on success */ StorageClass.prototype.put = function (key, object, options) { return __awaiter(this, void 0, void 0, function () { var credentialsOK, opt, bucket, region, credentials, contentType, level, type, prefix, final_key, s3, params; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this._ensureCredentials()]; case 1: credentialsOK = _a.sent(); if (!credentialsOK) { return [2 /*return*/, Promise.reject('No credentials')]; } opt = Object.assign({}, this._options, options); bucket = opt.bucket, region = opt.region, credentials = opt.credentials, contentType = opt.contentType, level = opt.level; type = contentType ? contentType : 'binary/octet-stream'; prefix = this._prefix(opt); final_key = prefix + key; s3 = this._createS3(opt); logger.debug('put ' + key + ' to ' + final_key); params = { Bucket: bucket, Key: final_key, Body: object, ContentType: type }; return [2 /*return*/, new Promise(function (res, rej) { s3.upload(params, function (err, data) { if (err) { logger.warn("error uploading", err); rej(err); } else { logger.debug('upload result', data); res({ key: data.Key.substr(prefix.length) }); } }); })]; } }); }); }; /** * Remove the object for specified key * @param {String} key - key of the object * @param {Object} [options] - { level : private|public } * @return - Promise resolves upon successful removal of the object */ StorageClass.prototype.remove = function (key, options) { return __awaiter(this, void 0, void 0, function () { var credentialsOK, opt, bucket, region, credentials, level, prefix, final_key, s3, params; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this._ensureCredentials()]; case 1: credentialsOK = _a.sent(); if (!credentialsOK) { return [2 /*return*/, Promise.reject('No credentials')]; } opt = Object.assign({}, this._options, options); bucket = opt.bucket, region = opt.region, credentials = opt.credentials, level = opt.level; prefix = this._prefix(opt); final_key = prefix + key; s3 = this._createS3(opt); logger.debug('remove ' + key + ' from ' + final_key); params = { Bucket: bucket, Key: final_key }; return [2 /*return*/, new Promise(function (res, rej) { s3.deleteObject(params, function (err, data) { if (err) { rej(err); } else { res(data); } }); })]; } }); }); }; /** * List bucket objects relative to the level and prefix specified * @param {String} path - the path that contains objects * @param {Object} [options] - { level : private|public } * @return - Promise resolves to list of keys for all objects in path */ StorageClass.prototype.list = function (path, options) { return __awaiter(this, void 0, void 0, function () { var credentialsOK, opt, bucket, region, credentials, level, download, prefix, final_path, s3, params; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this._ensureCredentials()]; case 1: credentialsOK = _a.sent(); if (!credentialsOK) { return [2 /*return*/, Promise.reject('No credentials')]; } opt = Object.assign({}, this._options, options); bucket = opt.bucket, region = opt.region, credentials = opt.credentials, level = opt.level, download = opt.download; prefix = this._prefix(opt); final_path = prefix + path; s3 = this._createS3(opt); logger.debug('list ' + path + ' from ' + final_path); params = { Bucket: bucket, Prefix: final_path }; return [2 /*return*/, new Promise(function (res, rej) { s3.listObjects(params, function (err, data) { if (err) { logger.warn('list error', err); rej(err); } else { var list = data.Contents.map(function (item) { return { key: item.Key.substr(prefix.length), eTag: item.ETag, lastModified: item.LastModified, size: item.Size }; }); logger.debug('list', list); res(list); } }); })]; } }); }); }; /** * @private */ StorageClass.prototype._ensureCredentials = function () { var _this = this; if (this._options.credentials) { return Promise.resolve(true); } return Auth_1.default.currentCredentials() .then(function (credentials) { var cred = Auth_1.default.essentialCredentials(credentials); logger.debug('set credentials for storage', cred); _this._options.credentials = cred; return true; }) .catch(function (err) { logger.warn('ensure credentials error', err); return false; }); }; /** * @private */ StorageClass.prototype._prefix = function (options) { var credentials = options.credentials, level = options.level; return (level === 'private') ? "private/" + credentials.identityId + "/" : 'public/'; }; /** * @private */ StorageClass.prototype._createS3 = function (options) { var bucket = options.bucket, region = options.region, credentials = options.credentials; Common_1.AWS.config.update({ region: region, credentials: credentials }); return new Common_1.S3({ apiVersion: '2006-03-01', params: { Bucket: bucket }, region: region }); }; return StorageClass; }()); exports.default = StorageClass; //# sourceMappingURL=Storage.js.map
/* eslint-disable jsx-a11y/anchor-is-valid */ import React, { Component } from "react"; import ReactTable from "react-table"; import "react-table/react-table.css"; import { connect } from "react-redux"; import { getProgram, updateProgram, deleteProgram } from "../../actions/tableActions"; import { Button, Card, CardBody, CardHeader, Col, Row, Form, Modal, ModalBody, ModalHeader, Container, } from "reactstrap"; class Program extends Component { state = { modal: false, rawid: null, id: null, name: null, visibilityUpdate: false, visibilityDelete: false }; componentDidMount() { const { permissions } = this.props; console.log("Visibility update :" + permissions.update); if (permissions) { if (permissions.name === "admin") { if (permissions.update === 1) { this.setState({ visibilityUpdate: false }); } else { this.setState({ visibilityUpdate: true }); } if (permissions.delete === 1) { this.setState({ visibilityDelete: false }); } else { this.setState({ visibilityDelete: true }); } } } this.props.GET_PROGRAM(); } modeltoggle = () => { //this.props.CLEAR_ERROR(); this.setState({ modal: !this.state.modal }); }; getRow(id) { return this.props.programData.findIndex(row => { return row.id === id; }); } deleteRaw(id) { console.log("Index: ", id); this.props.DELETE_PROGRAM(id); } updateRaw = id => { const rawid = this.getRow(id); this.setState({ rawid: rawid }); if (rawid != null && this.props.programData != null) { //let userid = this.props.usersGroupData[rawid].userGroupId; this.setState({ name: this.props.programData[rawid].name, id: this.props.programData[rawid].id }); //this.getUserRoleName(userid); this.modeltoggle(); } }; onChange = e => { this.setState({ [e.target.name]: e.target.value }); }; onSubmit = e => { e.preventDefault(); this.modeltoggle(); const { name,id} = this.state; const newProgram = { id, name, }; this.props.UPDATE_PROGRAM(newProgram); }; render() { const coulmns = [ { Header: "Program Id", Cell: e => <a href={e.value}>{e.value}</a>, accessor: "id", sortable: true, filterable: true }, { Header: "Name", accessor: "name", sortable: true, filterable: true }, { Header: "Action", Cell: props => { return ( <div> <Button className="mr-2" color="danger" disabled={this.state.visibilityDelete} onClick={() => { this.deleteRaw(props.original); }} > Delete </Button> <Button color="info" disabled={this.state.visibilityUpdate} onClick={() => { this.updateRaw(props.original.id); }} > Update </Button> </div> ); }, sortable: false, filterable: false, width: 160, maxWidth: 160, minWidth: 40 } ]; return ( <div className="animated fadeIn"> <div> <Modal isOpen={this.state.modal} toggle={this.modeltoggle}> <ModalHeader toggle={this.modeltoggle}> Update Program </ModalHeader> <ModalBody> <Container> <Card className="mx-1 "> <CardBody className="p-4 "> <Form onSubmit={this.onSubmit}> <div className="form-group row"> <label htmlFor="inputname" className="col-sm-3 col-form-label" > Program ID </label> <div className="col-sm-10"> <input type="text" name="id" className="form-control " id="id" value={ this.state.id ? this.state.id : "" } disabled={true} /> </div> </div> <div className="form-group row"> <label htmlFor="inputeUsergroupName" className="col-sm-3 col-form-label" > Program Name </label> <div className="col-sm-10"> <input type="text" name="name" className="form-control " id="username" onChange={this.onChange} value={this.state.name ? this.state.name : ""} /> </div> </div> <Button block color="success"> Update Program </Button> </Form> </CardBody> </Card> </Container> </ModalBody> </Modal> </div> <Row> <Col xl={12}> <Card> <CardHeader> <i className="fa fa-align-justify"></i> Program <small className="text-muted"> Data</small> </CardHeader> <CardBody> {this.props.programData ? ( <ReactTable columns={coulmns} data={this.props.programData} defaultPageSize={10} noDataText={"No Users Available"} ></ReactTable> ) : null} </CardBody> </Card> </Col> </Row> </div> ); } } const mapStateToProps = state => ({ permissions: state.auth.permission, programData: state.table.Program }); const mapDispachToProps = dispach => { return { UPDATE_PROGRAM: user => dispach(updateProgram(user)), DELETE_PROGRAM: id => dispach(deleteProgram(id)), GET_PROGRAM: () => dispach(getProgram()) //CLEAR_ERROR: () => dispach(clearErrors()) }; }; export default connect( mapStateToProps, mapDispachToProps )(Program);
/* exported Renderer */ 'use strict'; class Renderer { constructor() { this._objects = new Map(); console.log(Game.AssetManager); } render(tFrame) { console.log('render'); } clearObjects() { this._objects.clear(); } }
"use strict"; var isImplemented = require("../../../../string/#/normalize/is-implemented"); module.exports = function (a) { a(isImplemented(), true); };
const express = require('express'); const routes = require('./routes'); require('./database/index'); const app = express(); app.use(express.json()); app.use(routes); app.listen(3333);
// simulate client side interactions // use Mocha and chai var Election = artifacts.require("./Election.sol"); contract("Election", function(accounts) { it("initializes with two candidates", function() { return Election.deployed().then(function (instance) { return instance.candidatesCount(); }).then(function(count) { assert.equal(count,2); // from chai }); }); it("initializes the candidates with the correct values", function() { return Election.deployed().then(function(instance) { electionInstance = instance; // get instance return electionInstance.candidates(1); }).then(function(candidate) { assert.equal(candidate[0], 1, "contains correct id"); assert.equal(candidate[2], 0, "contains no votes"); return electionInstance.candidates(2); }).then(function(candidate) { assert.equal(candidate[0], 2, "contains correct id"); assert.equal(candidate[2], 0, "contains no votes"); }); }); it("allows a voter to cast a vote", function() { return Election.deployed().then(function(instance) { electionInstance = instance; candidateId = 1; return electionInstance.vote(candidateId, { from: accounts[0] }); }).then(function(receipt) { return electionInstance.voters(accounts[0]); }).then(function(voted) { assert(voted, "the voter was marked as voted"); return electionInstance.candidates(candidateId); }).then(function(candidate) { var voteCount = candidate[2]; assert.equal(voteCount, 1, "increments the candidate's vote count"); }) }); // it("throws an exception for invalid candidates", function() { // return Election.deployed().then(function(instance) { // electionInstance = instance; // return electionInstance.vote(99, { from: accounts[1] }) // cannot vote for 99th candidate // }).then().catch(function(error) { // // assert(error.message.indexOf('revert') >= 0, "error message must contain revert"); // return electionInstance.candidates(1); // }).then(function(candidate1) { // var voteCount = candidate1[2]; // assert.equal(voteCount, 1, "candidate 1 did not receive any votes"); // return electionInstance.candidates(2); // }).then(function(candidate2) { // var voteCount = candidate2[2]; // assert.equal(voteCount, 0, "candidate 2 did not receive any votes"); // }); // }); // not working right now and kind of a messed up version of the example! // it("throws an exception for double voting", function() { // return Election.deployed().then(function(instance) { // electionInstance = instance; // candidateId = 0; // electionInstance.vote(candidateId, { from: accounts[1] }); // return electionInstance.candidates(candidateId); // }).then(function(candidate) { // var voteCount = candidate[0]; // assert.equal(voteCount, 1, "accepts first vote"); // return candidate; // }).then(async (candidate) => { // // Try to vote again // try { // await electionInstance.vote(0, { from: accounts[1] }); // } catch(error) { // assert(error.message.indexOf('revert') >= 0, "error message must contain revert"); // } // return electionInstance.candidates(1); // }).then(function(candidate1) { // var voteCount = candidate1[2]; // assert.equal(voteCount, 1, "candidate 1 did not receive any votes"); // return electionInstance.candidates(2); // }).then(function(candidate2) { // var voteCount = candidate2[2]; // assert.equal(voteCount, 1, "candidate 2 did not receive any votes"); // }); // }); // Adds 1 more candidate to list it("correctly registers candidate", function() { return Election.deployed().then(function(instance) { election = instance; // should be from admin account election.adminAddCandidate("Candidate 3", {from: accounts[0]}); return instance.candidatesCount(); }).then(function(count) { assert.equal(count,3); // from chai }) }); //Tries to Add 1 more candidate to list it("throws exception when non admin tries to add", function() { return Election.deployed().then(async (instance) => { election = instance; try { await election.adminAddCandidate("Candidate 3", {from: accounts[3]}); } // Returned error message should begin with "VM Exception while processing transaction: revert" catch(error) { assert(error.message.indexOf('revert') >= 0, "Error message should contain 'revert'"); } return instance.candidatesCount(); }).then(function(count) { assert.equal(count, 3, "Did not add candidate"); }) }); });
/** * Gradient color */ this.default = function () { var rangeLinearGradient = { startValue: "0%", endValue: "100%", colorStop: [{ color: "#fef3f9", offset: "0%", opacity: 1 }, { color: " #f54ea2", offset: "100%", opacity: 1 } ] }; var rangeRadialGradient = { radius: "65%", outerPosition: { x: "50%", y: "70%" }, innerPosition: { x: "60%", y: "60%" }, colorStop: [{ color: "#fff5f5", offset: "5%", opacity: 0.9 }, { color: " #f54ea2", offset: "100%", opacity: 0.9 } ] }; var pointerLinearGradient = { startValue: "0%", endValue: "100%", colorStop: [{ color: "#fef3f9", offset: "0%", opacity: 1 }, { color: " #f54ea2", offset: "100%", opacity: 1 } ], }; var pointerRadialGradient = { radius: "60%", outerPosition: { x: "50%", y: "50%" }, innerPosition: { x: "50%", y: "50%" }, colorStop: [{ color: "#fff5f5", offset: "0%", opacity: 0.9 }, { color: "#f54ea2", offset: "100%", opacity: 0.8 } ] }; var gauge = new ej.lineargauge.LinearGauge({ load: function (args) { var selectedTheme = location.hash.split('/')[1]; selectedTheme = selectedTheme ? selectedTheme : 'Material'; args.gauge.theme = (selectedTheme.charAt(0).toUpperCase() + selectedTheme.slice(1)); }, orientation: 'Horizontal', container: { width: 30, offset: 30 }, axes: [{ line: { width: 0 }, majorTicks: { interval: 25, height: 0 }, minorTicks: { height: 0 }, labelStyle: { font: { color: '#424242', }, offset: 55 }, pointers: [ { value: 80, height: 25, width: 35, placement: 'Near', offset: -44, markerType: 'Triangle', color : "#f54ea2", } ], ranges: [{ start: 0, end: 80, startWidth: 30, endWidth: 30, color: "#f54ea2", offset: 30, linearGradient: rangeLinearGradient, } ] }] }); gauge.appendTo('#gauge'); function changeGradient() { if (gradientType.value == 1 && element.value == 0) { gauge.axes[0].ranges[0].linearGradient = null; gauge.axes[0].ranges[0].radialGradient = rangeRadialGradient; gauge.axes[0].pointers[0].linearGradient = null; gauge.axes[0].pointers[0].radialGradient = null; gauge.refresh(); } if (element.value == 0 && gradientType.value == 0) { gauge.axes[0].ranges[0].linearGradient = rangeLinearGradient; gauge.axes[0].ranges[0].radialGradient = null; gauge.axes[0].pointers[0].linearGradient = null; gauge.axes[0].pointers[0].radialGradient = null; gauge.refresh(); } if (gradientType.value == 1 && element.value == 1) { gauge.axes[0].pointers[0].radialGradient = pointerRadialGradient; gauge.axes[0].pointers[0].linearGradient = null; gauge.axes[0].ranges[0].linearGradient = null; gauge.axes[0].ranges[0].radialGradient = null; gauge.refresh(); } if (gradientType.value == 0 && element.value == 1) { gauge.axes[0].pointers[0].linearGradient = pointerLinearGradient; gauge.axes[0].pointers[0].radialGradient = null; gauge.axes[0].ranges[0].linearGradient = null; gauge.axes[0].ranges[0].radialGradient = null; gauge.refresh(); } } var gradientType = new ej.dropdowns.DropDownList({ index: 0, width: 145, change: function () { changeGradient(); } }); gradientType.appendTo('#gradientType'); var element = new ej.dropdowns.DropDownList({ index: 0, width: 145, change: function () { changeGradient(); } }); element.appendTo('#element'); };
import jwt from 'jsonwebtoken'; export const signToken = (user) => { return jwt.sign( { _id: user._id, name: user.name, email: user.email, isAdmin: user.isAdmin, }, process.env.JWT_SECRET, { expiresIn: '10d', } ); }; export const isAuth = async (req, res, next) => { const { authorization } = req.headers; if (authorization) { // Bearer xxx => xxx const token = authorization.slice(7, authorization.length); jwt.verify(token, process.env.JWT_SECRET, (err, decode) => { if (err) { res.status(401).send({ message: 'Token is not valid' }); } else { req.user = decode; next(); } }); } else { res.status(401).send({ message: 'Token was not supplied' }); } };
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var browsers = require('../../data/browsers'); var browserVersions = require('../../data/browserVersions'); var agentsData = require('../../data/agents'); function unpackBrowserVersions (versionsData) { return Object.keys(versionsData).reduce(function (usage, version) { usage[browserVersions[version]] = versionsData[version]; return usage; }, {}); } var agents = Object.keys(agentsData).reduce(function (map, key) { var versionsData = agentsData[key]; map[browsers[key]] = Object.keys(versionsData).reduce(function (data, entry) { if (entry === 'A') { data.usage_global = unpackBrowserVersions(versionsData[entry]); } else if (entry === 'C') { data.versions = versionsData[entry].reduce(function (list, version) { if (version === '') { list.push(null); } else { list.push(browserVersions[version]); } return list; }, []); } else if (entry === 'D') { data.prefix_exceptions = unpackBrowserVersions(versionsData[entry]); } else { data.prefix = versionsData[entry]; } return data; }, {}); return map; }, {}); var statuses = { 1: "ls", 2: "rec", 3: "pr", 4: "cr", 5: "wd", 6: "other", 7: "unoff", }; var supported = { y: 1 << 0, n: 1 << 1, a: 1 << 2, p: 1 << 3, u: 1 << 4, x: 1 << 5, d: 1 << 6, }; function unpackSupport (cipher) { var stats = Object.keys(supported).reduce(function (list, support) { if (cipher & supported[support]) { list.push(support); } return list; }, []); var notes = cipher >> 7; var notesArray = []; while (notes) { var note = Math.floor(Math.log2(notes)) + 1; notesArray.unshift(("#" + note)); notes -= Math.pow(2, note - 1); } return stats.concat(notesArray).join(' '); } function unpackFeature (packed) { var unpacked = {status: statuses[packed.B], title: packed.C}; unpacked.stats = Object.keys(packed.A).reduce(function (browserStats, key) { var browser = packed.A[key]; browserStats[browsers[key]] = Object.keys(browser).reduce(function (stats, support) { var packedVersions = browser[support].split(' '); var unpacked = unpackSupport(support); packedVersions.forEach(function (v) { return stats[browserVersions[v]] = unpacked; }); return stats; }, {}); return browserStats; }, {}); return unpacked; } var features = require('../../data/features'); function unpackRegion (packed) { return Object.keys(packed).reduce(function (list, browser) { var data = packed[browser]; list[browsers[browser]] = Object.keys(data).reduce(function (memo, key) { var stats = data[key]; if (key === '_') { stats.split(' ').forEach(function (version) { return memo[version] = null; }); } else { memo[key] = stats; } return memo; }, {}); return list; }, {}); } exports.agents = agents; exports.feature = unpackFeature; exports.features = features; exports.region = unpackRegion;
export default function reducer(state={ user: '', inputName: '' }, action) { switch (action.type) { case 'CHANGE_USER': return {...state, user: state.inputName, inputName: ''} case 'CHANGE_INPUT_NAME': return {...state, inputName: action.payload} default: return state; } }
import React from 'react'; import Grid from 'styled-components-grid'; import LuigiClient from '@kyma-project/luigi-client'; import { Label, Icon, Modal, PanelActions, } from '@kyma-project/react-components'; import { ServiceInstanceInfoWrapper, CenterSideWrapper, ContentHeader, ContentDescription, Element, PlanModalButton, ServiceClassButton, LabelWrapper, ExternalLink, JSONCode, } from './styled'; import { getResourceDisplayName, statusColor } from '../../../commons/helpers'; const INFORMATION_KEY_SIZE = { mobile: 1, tablet: 0.5, desktop: 0.3 }; const INFORMATION_VALUE_SIZE = { mobile: 1, tablet: 0.5, desktop: 0.7 }; const ServiceInstanceInfo = ({ serviceInstance }) => { const statusIcon = statusType => { switch (statusType) { case ('PROVISIONING', 'DEPROVISIONING', 'PENDING'): return 'sys-help'; case 'FAILED': return 'sys-cancel'; case 'RUNNING': return 'sys-enter'; default: return 'sys-help'; } }; const goToServiceClassDetails = name => { LuigiClient.linkManager() .fromContext('namespaces') .navigate(`cmf-service-catalog/details/${name}`); }; if (!serviceInstance) { return null; } const instanceClass = serviceInstance.clusterServiceClass ? serviceInstance.clusterServiceClass : serviceInstance.serviceClass; const instancePlan = serviceInstance.clusterServicePlan ? serviceInstance.clusterServicePlan : serviceInstance.servicePlan; return ( <ServiceInstanceInfoWrapper cols={3}> <CenterSideWrapper colSpan={2}> <ContentHeader>General Information</ContentHeader> <ContentDescription> <Grid> <Grid.Unit size={INFORMATION_KEY_SIZE}> <Element margin="0">Service Class</Element> </Grid.Unit> <Grid.Unit size={INFORMATION_VALUE_SIZE}> <Element margin="0" data-e2e-id="instance-service-class"> {instanceClass && instanceClass.name ? ( <ServiceClassButton onClick={() => goToServiceClassDetails(instanceClass.name)} > {getResourceDisplayName(instanceClass)} </ServiceClassButton> ) : ( '-' )} </Element> </Grid.Unit> <Grid.Unit size={INFORMATION_KEY_SIZE}> <Element>Plan</Element> </Grid.Unit> <Grid.Unit size={INFORMATION_VALUE_SIZE}> <Element data-e2e-id="instance-service-plan"> {serviceInstance.planSpec && serviceInstance.planSpec !== null && typeof serviceInstance.planSpec === 'object' && Object.keys(serviceInstance.planSpec).length ? ( <Modal modalOpeningComponent={ <PlanModalButton> {getResourceDisplayName(instancePlan)} </PlanModalButton> } title="Instance Parameters" onShow={() => LuigiClient.uxManager().addBackdrop()} onHide={() => LuigiClient.uxManager().removeBackdrop()} > <JSONCode> {JSON.stringify(serviceInstance.planSpec, undefined, 2)} </JSONCode> </Modal> ) : ( `${getResourceDisplayName(instancePlan) || '-'}` )} </Element> </Grid.Unit> </Grid> {serviceInstance.labels && serviceInstance.labels.length > 0 && ( <Grid> <Grid.Unit size={INFORMATION_KEY_SIZE}> <Element>Labels</Element> </Grid.Unit> <Grid.Unit size={INFORMATION_VALUE_SIZE}> <Element margin="1px 0 0 0"> {serviceInstance.labels.map((label, index) => ( <LabelWrapper key={`${label}-${index}`}> <Label key={label} cursorType="auto" data-e2e-id="service-label" > {label} </Label> </LabelWrapper> ))} </Element> </Grid.Unit> </Grid> )} {instanceClass && instanceClass.documentationUrl ? ( <Grid> <Grid.Unit size={INFORMATION_KEY_SIZE}> <Element margin={ serviceInstance.labels && serviceInstance.labels.length > 0 ? '11px 0 0 0' : '16px 0 0 0' } > Documentation </Element> </Grid.Unit> <Grid.Unit size={INFORMATION_VALUE_SIZE}> <Element margin={ serviceInstance.labels && serviceInstance.labels.length > 0 ? '11px 0 0 0' : '16px 0 0 0' } > <ExternalLink href={instanceClass.documentationUrl} target="_blank" data-e2e-id="instance-service-documentation-link" > Link </ExternalLink> </Element> </Grid.Unit> </Grid> ) : null} {instanceClass && instanceClass.supportUrl ? ( <Grid> <Grid.Unit size={INFORMATION_KEY_SIZE}> <Element>Support</Element> </Grid.Unit> <Grid.Unit size={INFORMATION_VALUE_SIZE}> <Element> <ExternalLink href={instanceClass.supportUrl} target="_blank" data-e2e-id="instance-service-support-link" > Link </ExternalLink> </Element> </Grid.Unit> </Grid> ) : null} </ContentDescription> </CenterSideWrapper> <CenterSideWrapper colSpan={1} color={statusColor(serviceInstance.status.type)} > <ContentHeader> Status <PanelActions> <Icon glyph={statusIcon(serviceInstance.status.type)} style={{ color: statusColor(serviceInstance.status.type) }} /> </PanelActions> </ContentHeader> <ContentDescription> <Element margin="0" data-e2e-id="instance-status-type"> {serviceInstance.status.type} </Element> <Element style={{ padding: '0' }} data-e2e-id="instance-status-message" > {serviceInstance.status.message} </Element> </ContentDescription> </CenterSideWrapper> </ServiceInstanceInfoWrapper> ); }; export default ServiceInstanceInfo;
import React from 'react'; import render from './testRenderer'; describe('Image', () => { let output; test('Should render image with default styles', () => { output = render( <img src="http://lorempixel.com/400/200/sports/5/" width="400" height="200" /> ); expect(output).toMatchSnapshot(); }); test('Should render image with custom styles', () => { output = render( <img src="http://lorempixel.com/400/200/sports/5/" width="400" height="200" style={{ width: '800px', height: '400px', border: '2px solid red' }} /> ); expect(output).toMatchSnapshot(); }); });
import React from 'react'; import { bool, func, number, object, string } from 'prop-types'; import classNames from 'classnames'; import debounce from 'lodash/debounce'; import { Field, Form as FinalForm, FormSpy } from 'react-final-form'; import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl'; import { Form, RangeSlider } from '../../components'; import css from './AreaFilterForm.module.css'; const DEBOUNCE_WAIT_TIME = 400; // Helper function to parse value for min handle // Value needs to be between slider's minimum value and current maximum value const parseMin = (min, currentMax) => value => { const parsedValue = Number.parseInt(value, 10); if (isNaN(parsedValue)) { return ''; } return parsedValue < min ? min : parsedValue > currentMax ? currentMax : parsedValue; }; // Helper function to parse value for max handle // Value needs to be between slider's max value and current minimum value const parseMax = (max, currentMin) => value => { const parsedValue = Number.parseInt(value, 10); if (isNaN(parsedValue)) { return ''; } return parsedValue < currentMin ? currentMin : parsedValue > max ? max : parsedValue; }; // AreaFilterForm component const AreaFilterFormComponent = props => { const { liveEdit, onChange, onSubmit, onCancel, onClear, ...rest } = props; if (liveEdit && !onChange) { throw new Error('PriceFilterForm: if liveEdit is true you need to provide onChange function'); } if (!liveEdit && !(onCancel && onClear && onSubmit)) { throw new Error( 'PriceFilterForm: if liveEdit is false you need to provide onCancel, onClear, and onSubmit functions' ); } const handleChange = debounce( formState => { if (formState.dirty) { const { minArea, maxArea, ...restValues } = formState.values; onChange({ minArea: minArea === '' ? rest.min : minArea, maxArea: maxArea === '' ? rest.max : maxArea, ...restValues, }); } }, DEBOUNCE_WAIT_TIME, { leading: false, trailing: true } ); const handleSubmit = values => { const { minArea, maxArea, ...restValues } = values; return onSubmit({ minArea: minArea === '' ? rest.min : minArea, maxArea: maxArea === '' ? rest.max : maxArea, ...restValues, }); }; const formCallbacks = liveEdit ? { onSubmit: () => null } : { onSubmit: handleSubmit, onCancel, onClear }; return ( <FinalForm {...rest} {...formCallbacks} render={formRenderProps => { const { form, handleSubmit, id, showAsPopup, onClear, onCancel, isOpen, contentRef, style, intl, values, min, max, step, } = formRenderProps; const { minArea: minAreaRaw, maxArea: maxAreaRaw } = values; const minArea = typeof minAreaRaw !== 'string' ? minAreaRaw : min; const maxArea = typeof maxAreaRaw !== 'string' ? maxAreaRaw : max; const handleCancel = () => { // reset the final form to initialValues form.reset(); onCancel(); }; const clear = intl.formatMessage({ id: 'AreaFilterForm.clear' }); const cancel = intl.formatMessage({ id: 'AreaFilterForm.cancel' }); const submit = intl.formatMessage({ id: 'AreaFilterForm.submit' }); const classes = classNames(css.root, { [css.popup]: showAsPopup, [css.isOpenAsPopup]: showAsPopup && isOpen, [css.plain]: !showAsPopup, [css.isOpen]: !showAsPopup && isOpen, }); return ( <Form className={classes} onSubmit={handleSubmit} tabIndex="0" contentRef={contentRef} style={{ minWidth: '300px', ...style }} > <div className={css.contentWrapper}> <span className={css.label}> <FormattedMessage id="AreaFilterForm.label" /> </span> <div className={css.inputsWrapper}> <Field className={css.minPrice} id={`${id}.minArea`} name="minArea" component="input" type="number" placeholder={min} min={min} max={max} step={step} parse={parseMin(min, maxArea)} /> <span className={css.areaSeparator}>-</span> <Field className={css.maxPrice} id={`${id}.maxArea`} name="maxArea" component="input" type="number" placeholder={max} min={min} max={max} step={step} parse={parseMax(max, minArea)} /> </div> </div> <div className={css.sliderWrapper}> <RangeSlider min={min} max={max} step={step} handles={[minArea, maxArea]} onChange={handles => { form.change('minArea', handles[0]); form.change('maxArea', handles[1]); }} /> </div> {liveEdit ? ( <FormSpy onChange={handleChange} subscription={{ values: true, dirty: true }} /> ) : ( <div className={css.buttonsWrapper}> <button className={css.clearButton} type="button" onClick={onClear}> {clear} </button> <button className={css.cancelButton} type="button" onClick={handleCancel}> {cancel} </button> <button className={css.submitButton} type="submit"> {submit} </button> </div> )} </Form> ); }} /> ); }; AreaFilterFormComponent.defaultProps = { liveEdit: false, showAsPopup: false, isOpen: false, contentRef: null, style: null, min: 0, step: 1, onCancel: null, onChange: null, onClear: null, onSubmit: null, }; AreaFilterFormComponent.propTypes = { id: string.isRequired, liveEdit: bool, showAsPopup: bool, onCancel: func, onChange: func, onClear: func, onSubmit: func, isOpen: bool, contentRef: func, style: object, min: number.isRequired, max: number.isRequired, step: number, // form injectIntl intl: intlShape.isRequired, }; const AreaFilterForm = injectIntl(AreaFilterFormComponent); export default AreaFilterForm;
import { useColorMode } from '../color-mode'; import { useTheme } from '../theme'; import { setColorWithOpacity } from '../utils/colors'; const solidStyle = ({ color, colorMode, canFocus, theme: { colors } }) => { const undefinedColor = { dark: { bg: `${color}:80`, color: `${color}:20`, }, light: { bg: `${color}:80`, color: `${color}:20`, } }[colorMode]; const solidColors = { dark: { gray: { bg: 'gray:70', color: 'gray:20' }, red: { bg: 'red:80', color: 'red:20' }, magenta: { bg: 'magenta:80', color: 'magenta:20' }, purple: { bg: 'purple:80', color: 'purple:20' }, blue: { bg: 'blue:80', color: 'blue:20' }, green: { bg: 'green:70', color: 'green:20' }, teal: { bg: 'teal:70', color: 'teal:20' }, cyan: { bg: 'cyan:70', color: 'cyan:20' }, }, light: { gray: { bg: 'gray:70', color: 'gray:20' }, red: { bg: 'red:80', color: 'red:20' }, magenta: { bg: 'magenta:80', color: 'magenta:20' }, purple: { bg: 'purple:80', color: 'purple:20' }, blue: { bg: 'blue:80', color: 'blue:20' }, green: { bg: 'green:70', color: 'green:20' }, teal: { bg: 'teal:70', color: 'teal:20' }, cyan: { bg: 'cyan:70', color: 'cyan:20' }, } }[colorMode]; const baseColors = solidColors[color] || undefinedColor; const focusColor = { dark: colors['blue:60'], light: colors['blue:60'], }[colorMode]; const disabledBgColor = { dark: 'gray:70', light: 'gray:70', }[colorMode]; const disabledOpacity = { dark: 0.28, light: 0.3, }[colorMode]; const invalidBgColor = { dark: 'red:60', light: 'red:60', }[colorMode]; const invalidColor = { dark: 'white:emphasis', light: 'white:emphasis', }[colorMode]; const styles = { ...baseColors, ...(canFocus) && { _focus: { borderColor: focusColor, boxShadow: `inset 0 0 0 1px ${focusColor}`, bg: 'inherit', zIndex: 1, '&::before': { top: '2px', bottom: '2px', left: '2px', right: '2px', bg: baseColors.bg }, }, }, _invalid: { bg: invalidBgColor, color: invalidColor, ...(canFocus) && { '&:focus': { borderColor: focusColor, boxShadow: `inset 0 0 0 1px ${focusColor}`, bg: 'inherit', '&::before': { top: '2px', bottom: '2px', left: '2px', right: '2px', bg: invalidBgColor }, }, }, }, _disabled: { borderColor: 'transparent', // override focus style boxShadow: 'none', // override focus style bg: disabledBgColor, '&::before': { bg: 'inherit', }, cursor: 'not-allowed', opacity: disabledOpacity, }, }; return styles; }; const outlineStyle = ({ color, colorMode, canFocus, theme: { colors } }) => { const undefinedColor = { dark: { borderColor: `${color}:50`, color: `${color}:50`, }, light: { borderColor: `${color}:50`, color: `${color}:50`, } }[colorMode]; const outlineColors = { dark: { gray: { borderColor: 'gray:50', color: 'gray:40' }, }, light: { gray: { borderColor: 'gray:50', color: 'gray:40' }, } }[colorMode]; const baseColors = outlineColors[color] || undefinedColor; const focusColor = { dark: colors['blue:60'], light: colors['blue:60'], }[colorMode]; const disabledBorderColor = { dark: 'gray:70', light: 'gray:70', }[colorMode]; const disabledColor = { dark: 'white:emphasis', light: 'black:emphasis', }[colorMode]; const disabledOpacity = { dark: 0.28, light: 0.3, }[colorMode]; const invalidBgColor = { dark: 'red:60', light: 'red:60', }[colorMode]; const invalidColor = { dark: 'white:emphasis', light: 'white:emphasis', }[colorMode]; const styles = { ...baseColors, ...(canFocus) && { _focus: { borderColor: focusColor, boxShadow: `inset 0 0 0 1px ${focusColor}`, zIndex: 1, }, }, _invalid: { borderColor: 'transparent', bg: invalidBgColor, color: invalidColor, ...(canFocus) && { '&:focus': { borderColor: focusColor, boxShadow: `inset 0 0 0 1px ${focusColor}`, bg: 'inherit', '&::before': { top: '2px', bottom: '2px', left: '2px', right: '2px', bg: invalidBgColor }, }, }, }, _disabled: { borderColor: disabledBorderColor, boxShadow: 'none', color: disabledColor, cursor: 'not-allowed', opacity: disabledOpacity, }, }; return styles; }; const variantProps = props => { const variant = props.variant; switch (variant) { case 'solid': return solidStyle(props); case 'outline': return outlineStyle(props); default: return {}; } }; //////////////////////////////////////////////////////////// const labelSizes = { sm: { fontSize: 'xs', lineHeight: 1, minHeight: '4x', }, md: { fontSize: 'xs', lineHeight: 'xs', minHeight: '6x', py: 2 }, lg: { fontSize: 'md', lineHeight: 'md', minHeight: '8x', py: '1x' }, }; const closeButtonSizes = { sm: '4x', md: '6x', lg: '8x', }; const sizeProps = ({ size, isClosable, theme: { sizes } }) => { const space = sizes['1x']; const closeButtonSize = sizes[closeButtonSizes[size]]; const pr = isClosable ? `calc(${space} + ${closeButtonSize})` : '2x'; return { ...labelSizes[size], pl: '2x', pr: pr, }; }; //////////////////////////////////////////////////////////// const baseProps = { alignItems: 'center', border: 1, borderColor: 'transparent', cursor: 'default', display: 'inline-flex', position: 'relative', outline: 'none', }; const useTagStyle = ({ borderRadius, ...props }) => { const theme = useTheme(); const [colorMode] = useColorMode(); const _props = { ...props, theme, colorMode }; return { ...baseProps, __before: { content: '""', display: 'inline-flex', borderRadius: borderRadius, zIndex: -1, position: 'absolute', top: 0, bottom: 0, left: 0, right: 0, }, ...sizeProps(_props), ...variantProps(_props), }; }; //////////////////////////////////////////////////////////// const useTagCloseButtonStyle = ({ size }) => { const color = setColorWithOpacity('white', 0.6); const hoverColor = 'white'; const activeColor = color; const _size = closeButtonSizes[size]; return { position: 'absolute', right: 0, color: color, height: _size, width: _size, minWidth: _size, // ensure a minimum width for the close button _hover: { color: hoverColor, }, _active: { color: activeColor, }, _disabled: { color: 'white', cursor: 'not-allowed', opacity: 0.28, }, }; }; export { useTagStyle, useTagCloseButtonStyle, };
var express = require('express'); var app = express(); app.use(express.static('app')); app.get('/', function (req, res) { res.sendFile('index.html'); }); var server = app.listen(80, function () { var host = server.address().address; var port = server.address().port; console.log('Listening at http://%s:%s', host, port); });
shadow$provide.module$node_modules$blockstack$lib$index=function(global,process,require,module,exports,shadow$shims){Object.defineProperty(exports,"__esModule",{value:!0});var _auth=require("module$node_modules$blockstack$lib$auth$index");Object.keys(_auth).forEach(function(key){"default"!==key&&"__esModule"!==key&&Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _auth[key]}})});var _profiles=require("module$node_modules$blockstack$lib$profiles$index");Object.keys(_profiles).forEach(function(key){"default"!== key&&"__esModule"!==key&&Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _profiles[key]}})});var _storage=require("module$node_modules$blockstack$lib$storage$index");Object.keys(_storage).forEach(function(key){"default"!==key&&"__esModule"!==key&&Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _storage[key]}})});var _dids=require("module$node_modules$blockstack$lib$dids");Object.defineProperty(exports,"makeDIDFromAddress",{enumerable:!0,get:function(){return _dids.makeDIDFromAddress}}); Object.defineProperty(exports,"makeDIDFromPublicKey",{enumerable:!0,get:function(){return _dids.makeDIDFromPublicKey}});Object.defineProperty(exports,"getDIDType",{enumerable:!0,get:function(){return _dids.getDIDType}});Object.defineProperty(exports,"getAddressFromDID",{enumerable:!0,get:function(){return _dids.getAddressFromDID}});var _keys=require("module$node_modules$blockstack$lib$keys");Object.defineProperty(exports,"getEntropy",{enumerable:!0,get:function(){return _keys.getEntropy}});Object.defineProperty(exports, "makeECPrivateKey",{enumerable:!0,get:function(){return _keys.makeECPrivateKey}});Object.defineProperty(exports,"publicKeyToAddress",{enumerable:!0,get:function(){return _keys.publicKeyToAddress}});Object.defineProperty(exports,"getPublicKeyFromPrivate",{enumerable:!0,get:function(){return _keys.getPublicKeyFromPrivate}});var _utils=require("module$node_modules$blockstack$lib$utils");Object.defineProperty(exports,"nextYear",{enumerable:!0,get:function(){return _utils.nextYear}});Object.defineProperty(exports, "nextMonth",{enumerable:!0,get:function(){return _utils.nextMonth}});Object.defineProperty(exports,"nextHour",{enumerable:!0,get:function(){return _utils.nextHour}});Object.defineProperty(exports,"makeUUID4",{enumerable:!0,get:function(){return _utils.makeUUID4}});Object.defineProperty(exports,"updateQueryStringParameter",{enumerable:!0,get:function(){return _utils.updateQueryStringParameter}});Object.defineProperty(exports,"isLaterVersion",{enumerable:!0,get:function(){return _utils.isLaterVersion}}); Object.defineProperty(exports,"isSameOriginAbsoluteUrl",{enumerable:!0,get:function(){return _utils.isSameOriginAbsoluteUrl}});Object.defineProperty(exports,"hexStringToECPair",{enumerable:!0,get:function(){return _utils.hexStringToECPair}});Object.defineProperty(exports,"ecPairToHexString",{enumerable:!0,get:function(){return _utils.ecPairToHexString}});Object.defineProperty(exports,"ecPairToAddress",{enumerable:!0,get:function(){return _utils.ecPairToAddress}});var _operations=require("module$node_modules$blockstack$lib$operations$index"); Object.defineProperty(exports,"transactions",{enumerable:!0,get:function(){return _operations.transactions}});Object.defineProperty(exports,"safety",{enumerable:!0,get:function(){return _operations.safety}});Object.defineProperty(exports,"TransactionSigner",{enumerable:!0,get:function(){return _operations.TransactionSigner}});Object.defineProperty(exports,"PubkeyHashSigner",{enumerable:!0,get:function(){return _operations.PubkeyHashSigner}});Object.defineProperty(exports,"addUTXOsToFund",{enumerable:!0, get:function(){return _operations.addUTXOsToFund}});Object.defineProperty(exports,"estimateTXBytes",{enumerable:!0,get:function(){return _operations.estimateTXBytes}});var _wallet=require("module$node_modules$blockstack$lib$wallet");Object.defineProperty(exports,"BlockstackWallet",{enumerable:!0,get:function(){return _wallet.BlockstackWallet}});Object.defineProperty(exports,"IdentityKeyPair",{enumerable:!0,get:function(){return _wallet.IdentityKeyPair}});var _network=require("module$node_modules$blockstack$lib$network"); Object.defineProperty(exports,"network",{enumerable:!0,get:function(){return _network.network}});var _jsontokens=require("module$node_modules$jsontokens$lib$index");Object.defineProperty(exports,"decodeToken",{enumerable:!0,get:function(){return _jsontokens.decodeToken}});var _config=require("module$node_modules$blockstack$lib$config");Object.defineProperty(exports,"config",{enumerable:!0,get:function(){return _config.config}});var _encryption=require("module$node_modules$blockstack$lib$encryption"); Object.defineProperty(exports,"encryptMnemonic",{enumerable:!0,get:function(){return _encryption.encryptMnemonic}});Object.defineProperty(exports,"decryptMnemonic",{enumerable:!0,get:function(){return _encryption.decryptMnemonic}})} //# sourceMappingURL=module$node_modules$blockstack$lib$index.js.map
'use strict'; var config = require('../lib/config'); var helper = require('../helper'); var redis = config.redis; var assert = require('assert'); describe("The 'rpush' command", function () { helper.allTests(function (ip, args) { describe('using ' + ip, function () { var client; beforeEach(function (done) { client = redis.createClient.apply(null, args); client.once('ready', function () { client.flushdb(done); }); }); it('inserts multiple values at a time into a list', function (done) { client.rpush('test', ['list key', 'should be a list']); client.lrange('test', 0, -1, function (err, res) { assert.equal(res[0], 'list key'); assert.equal(res[1], 'should be a list'); done(err); }); }); afterEach(function () { client.end(true); }); }); }); });
/* @flow */ export * from './array'; export * from './boolean'; export * from './date'; export * from './error'; export * from './function'; export * from './number'; export * from './object'; export * from './promise'; export * from './regex'; export * from './string'; export * from './null'; export * from './undefined';
// Generated by ReScript, PLEASE EDIT WITH CARE 'use strict'; var Edge = {}; var Classes = {}; exports.Edge = Edge; exports.Classes = Classes; /* No side effect */
export default (elementLocator, text) => { $(currentPage[elementLocator]).waitForDisplayed(); $(currentPage[elementLocator]).setValue(text); }
console.log('Background.html starting!'); chrome.tabs.onUpdated.addListener((tabId) => { chrome.pageAction.show(tabId); }); chrome.tabs.getSelected(null, (tab) => { chrome.pageAction.show(tab.id); }); chrome.pageAction.onClicked.addListener(() => { chrome.tabs.query({ active: true, currentWindow: true, }, (tabs) => { chrome.tabs.sendMessage(tabs[0].id, { type: 'url', url: tabs[0].url, }, null); }); }); console.log('Background.html done.');
export const ESCAPE = 27 export const ENTER = 13 export const TAB = 9 export const UP = 38 export const DOWN = 40 export const RIGHT = 39 export const DELETE = 46 export const BACKSPACE = 8
'use strict'; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange'); const { ExchangeError, ExchangeNotAvailable, AuthenticationError, InvalidOrder, InsufficientFunds, OrderNotFound, DDoSProtection, PermissionDenied, AddressPending } = require ('./base/errors'); const { TRUNCATE, DECIMAL_PLACES } = require ('./base/functions/number'); // --------------------------------------------------------------------------- module.exports = class bittrex extends Exchange { describe () { return this.deepExtend (super.describe (), { 'id': 'bittrex', 'name': 'Bittrex', 'countries': [ 'US' ], 'version': 'v1.1', 'rateLimit': 1500, 'certified': true, // new metainfo interface 'has': { 'CORS': true, 'createMarketOrder': false, 'fetchDepositAddress': true, 'fetchClosedOrders': true, 'fetchCurrencies': true, 'fetchMyTrades': 'emulated', 'fetchOHLCV': true, 'fetchOrder': true, 'fetchOpenOrders': true, 'fetchTickers': true, 'withdraw': true, 'fetchDeposits': true, 'fetchWithdrawals': true, 'fetchTransactions': false, }, 'timeframes': { '1m': 'oneMin', '5m': 'fiveMin', '30m': 'thirtyMin', '1h': 'hour', '1d': 'day', }, 'hostname': 'bittrex.com', 'urls': { 'logo': 'https://user-images.githubusercontent.com/1294454/27766352-cf0b3c26-5ed5-11e7-82b7-f3826b7a97d8.jpg', 'api': { 'public': 'https://{hostname}/api', 'account': 'https://{hostname}/api', 'market': 'https://{hostname}/api', 'v2': 'https://{hostname}/api/v2.0/pub', 'v3': 'https://api.bittrex.com/v3', 'v3public': 'https://api.bittrex.com/v3', }, 'www': 'https://bittrex.com', 'doc': [ 'https://bittrex.github.io/api/', 'https://bittrex.github.io/api/v3', 'https://www.npmjs.com/package/bittrex-node', ], 'fees': [ 'https://bittrex.zendesk.com/hc/en-us/articles/115003684371-BITTREX-SERVICE-FEES-AND-WITHDRAWAL-LIMITATIONS', 'https://bittrex.zendesk.com/hc/en-us/articles/115000199651-What-fees-does-Bittrex-charge-', ], }, 'api': { 'v3': { 'get': [ 'account', 'addresses', 'addresses/{currencySymbol}', 'balances', 'balances/{currencySymbol}', 'currencies', 'currencies/{symbol}', 'deposits/open', 'deposits/closed', 'deposits/ByTxId/{txId}', 'deposits/{depositId}', 'orders/closed', 'orders/open', 'orders/{orderId}', 'ping', 'subaccounts/{subaccountId}', 'subaccounts', 'withdrawals/open', 'withdrawals/closed', 'withdrawals/ByTxId/{txId}', 'withdrawals/{withdrawalId}', ], 'post': [ 'addresses', 'orders', 'subaccounts', 'withdrawals', ], 'delete': [ 'orders/{orderId}', 'withdrawals/{withdrawalId}', ], }, 'v3public': { 'get': [ 'markets', 'markets/summaries', 'markets/{marketSymbol}', 'markets/{marketSymbol}/summary', 'markets/{marketSymbol}/orderbook', 'markets/{marketSymbol}/trades', 'markets/{marketSymbol}/ticker', 'markets/{marketSymbol}/candles', ], }, 'v2': { 'get': [ 'currencies/GetBTCPrice', 'market/GetTicks', 'market/GetLatestTick', 'Markets/GetMarketSummaries', 'market/GetLatestTick', ], }, 'public': { 'get': [ 'currencies', 'markethistory', 'markets', 'marketsummaries', 'marketsummary', 'orderbook', 'ticker', ], }, 'account': { 'get': [ 'balance', 'balances', 'depositaddress', 'deposithistory', 'order', 'orders', 'orderhistory', 'withdrawalhistory', 'withdraw', ], }, 'market': { 'get': [ 'buylimit', 'buymarket', 'cancel', 'openorders', 'selllimit', 'sellmarket', ], }, }, 'fees': { 'trading': { 'tierBased': false, 'percentage': true, 'maker': 0.0025, 'taker': 0.0025, }, 'funding': { 'tierBased': false, 'percentage': false, 'withdraw': { 'BTC': 0.0005, 'LTC': 0.01, 'DOGE': 2, 'VTC': 0.02, 'PPC': 0.02, 'FTC': 0.2, 'RDD': 2, 'NXT': 2, 'DASH': 0.05, 'POT': 0.002, 'BLK': 0.02, 'EMC2': 0.2, 'XMY': 0.2, 'GLD': 0.0002, 'SLR': 0.2, 'GRS': 0.2, }, 'deposit': { 'BTC': 0, 'LTC': 0, 'DOGE': 0, 'VTC': 0, 'PPC': 0, 'FTC': 0, 'RDD': 0, 'NXT': 0, 'DASH': 0, 'POT': 0, 'BLK': 0, 'EMC2': 0, 'XMY': 0, 'GLD': 0, 'SLR': 0, 'GRS': 0, }, }, }, 'exceptions': { // 'Call to Cancel was throttled. Try again in 60 seconds.': DDoSProtection, // 'Call to GetBalances was throttled. Try again in 60 seconds.': DDoSProtection, 'APISIGN_NOT_PROVIDED': AuthenticationError, 'INVALID_SIGNATURE': AuthenticationError, 'INVALID_CURRENCY': ExchangeError, 'INVALID_PERMISSION': AuthenticationError, 'INSUFFICIENT_FUNDS': InsufficientFunds, 'QUANTITY_NOT_PROVIDED': InvalidOrder, 'MIN_TRADE_REQUIREMENT_NOT_MET': InvalidOrder, 'ORDER_NOT_OPEN': OrderNotFound, 'INVALID_ORDER': InvalidOrder, 'UUID_INVALID': OrderNotFound, 'RATE_NOT_PROVIDED': InvalidOrder, // createLimitBuyOrder ('ETH/BTC', 1, 0) 'WHITELIST_VIOLATION_IP': PermissionDenied, 'DUST_TRADE_DISALLOWED_MIN_VALUE': InvalidOrder, }, 'options': { // price precision by quote currency code 'pricePrecisionByCode': { 'USD': 3, }, 'parseOrderStatus': false, 'hasAlreadyAuthenticatedSuccessfully': false, // a workaround for APIKEY_INVALID 'symbolSeparator': '-', // With certain currencies, like // AEON, BTS, GXS, NXT, SBD, STEEM, STR, XEM, XLM, XMR, XRP // an additional tag / memo / payment id is usually required by exchanges. // With Bittrex some currencies imply the "base address + tag" logic. // The base address for depositing is stored on this.currencies[code] // The base address identifies the exchange as the recipient // while the tag identifies the user account within the exchange // and the tag is retrieved with fetchDepositAddress. 'tag': { 'NXT': true, // NXT, BURST 'CRYPTO_NOTE_PAYMENTID': true, // AEON, XMR 'BITSHAREX': true, // BTS 'RIPPLE': true, // XRP 'NEM': true, // XEM 'STELLAR': true, // XLM 'STEEM': true, // SBD, GOLOS // https://github.com/ccxt/ccxt/issues/4794 // 'LISK': true, // LSK }, 'subaccountId': undefined, // see the implementation of fetchClosedOrdersV3 below 'fetchClosedOrdersMethod': 'fetch_closed_orders_v3', }, 'commonCurrencies': { 'BITS': 'SWIFT', 'CPC': 'CapriCoin', }, }); } costToPrecision (symbol, cost) { return this.decimalToPrecision (cost, TRUNCATE, this.markets[symbol]['precision']['price'], DECIMAL_PLACES); } feeToPrecision (symbol, fee) { return this.decimalToPrecision (fee, TRUNCATE, this.markets[symbol]['precision']['price'], DECIMAL_PLACES); } async fetchMarkets (params = {}) { // https://github.com/ccxt/ccxt/commit/866370ba6c9cabaf5995d992c15a82e38b8ca291 // https://github.com/ccxt/ccxt/pull/4304 const response = await this.publicGetMarkets (params); const result = []; const markets = this.safeValue (response, 'result'); for (let i = 0; i < markets.length; i++) { const market = markets[i]; const id = this.safeString (market, 'MarketName'); const baseId = this.safeString (market, 'MarketCurrency'); const quoteId = this.safeString (market, 'BaseCurrency'); const base = this.commonCurrencyCode (baseId); const quote = this.commonCurrencyCode (quoteId); const symbol = base + '/' + quote; let pricePrecision = 8; if (quote in this.options['pricePrecisionByCode']) { pricePrecision = this.options['pricePrecisionByCode'][quote]; } const precision = { 'amount': 8, 'price': pricePrecision, }; // bittrex uses boolean values, bleutrade uses strings let active = this.safeValue (market, 'IsActive', false); if ((active !== 'false') && active) { active = true; } else { active = false; } result.push ({ 'id': id, 'symbol': symbol, 'base': base, 'quote': quote, 'baseId': baseId, 'quoteId': quoteId, 'active': active, 'info': market, 'precision': precision, 'limits': { 'amount': { 'min': this.safeFloat (market, 'MinTradeSize'), 'max': undefined, }, 'price': { 'min': Math.pow (10, -precision['price']), 'max': undefined, }, }, }); } return result; } async fetchBalance (params = {}) { await this.loadMarkets (); const response = await this.accountGetBalances (params); const balances = this.safeValue (response, 'result'); const result = { 'info': balances }; const indexed = this.indexBy (balances, 'Currency'); const keys = Object.keys (indexed); for (let i = 0; i < keys.length; i++) { const id = keys[i]; const currency = this.commonCurrencyCode (id); const account = this.account (); const balance = indexed[id]; const free = this.safeFloat (balance, 'Available', 0); const total = this.safeFloat (balance, 'Balance', 0); let used = undefined; if (total !== undefined) { if (free !== undefined) { used = total - free; } } account['free'] = free; account['used'] = used; account['total'] = total; result[currency] = account; } return this.parseBalance (result); } async fetchOrderBook (symbol, limit = undefined, params = {}) { await this.loadMarkets (); const request = { 'market': this.marketId (symbol), 'type': 'both', }; const response = await this.publicGetOrderbook (this.extend (request, params)); let orderbook = response['result']; if ('type' in params) { if (params['type'] === 'buy') { orderbook = { 'buy': response['result'], 'sell': [], }; } else if (params['type'] === 'sell') { orderbook = { 'buy': [], 'sell': response['result'], }; } } return this.parseOrderBook (orderbook, undefined, 'buy', 'sell', 'Rate', 'Quantity'); } parseTicker (ticker, market = undefined) { const timestamp = this.parse8601 (this.safeString (ticker, 'TimeStamp')); let symbol = undefined; if (market !== undefined) { symbol = market['symbol']; } const previous = this.safeFloat (ticker, 'PrevDay'); const last = this.safeFloat (ticker, 'Last'); let change = undefined; let percentage = undefined; if (last !== undefined) { if (previous !== undefined) { change = last - previous; if (previous > 0) { percentage = (change / previous) * 100; } } } return { 'symbol': symbol, 'timestamp': timestamp, 'datetime': this.iso8601 (timestamp), 'high': this.safeFloat (ticker, 'High'), 'low': this.safeFloat (ticker, 'Low'), 'bid': this.safeFloat (ticker, 'Bid'), 'bidVolume': undefined, 'ask': this.safeFloat (ticker, 'Ask'), 'askVolume': undefined, 'vwap': undefined, 'open': previous, 'close': last, 'last': last, 'previousClose': undefined, 'change': change, 'percentage': percentage, 'average': undefined, 'baseVolume': this.safeFloat (ticker, 'Volume'), 'quoteVolume': this.safeFloat (ticker, 'BaseVolume'), 'info': ticker, }; } async fetchCurrencies (params = {}) { const response = await this.publicGetCurrencies (params); // // { // "success": true, // "message": "", // "result": [ // { // "Currency": "BTC", // "CurrencyLong":"Bitcoin", // "MinConfirmation":2, // "TxFee":0.00050000, // "IsActive":true, // "IsRestricted":false, // "CoinType":"BITCOIN", // "BaseAddress":"1N52wHoVR79PMDishab2XmRHsbekCdGquK", // "Notice":null // }, // ..., // ] // } // const currencies = this.safeValue (response, 'result', []); const result = {}; for (let i = 0; i < currencies.length; i++) { const currency = currencies[i]; const id = this.safeString (currency, 'Currency'); // todo: will need to rethink the fees // to add support for multiple withdrawal/deposit methods and // differentiated fees for each particular method const code = this.commonCurrencyCode (id); const precision = 8; // default precision, todo: fix "magic constants" const address = this.safeValue (currency, 'BaseAddress'); const fee = this.safeFloat (currency, 'TxFee'); // todo: redesign result[code] = { 'id': id, 'code': code, 'address': address, 'info': currency, 'type': currency['CoinType'], 'name': currency['CurrencyLong'], 'active': currency['IsActive'], 'fee': fee, 'precision': precision, 'limits': { 'amount': { 'min': Math.pow (10, -precision), 'max': Math.pow (10, precision), }, 'price': { 'min': Math.pow (10, -precision), 'max': Math.pow (10, precision), }, 'cost': { 'min': undefined, 'max': undefined, }, 'withdraw': { 'min': fee, 'max': Math.pow (10, precision), }, }, }; } return result; } async fetchTickers (symbols = undefined, params = {}) { await this.loadMarkets (); const response = await this.publicGetMarketsummaries (params); const tickers = this.safeValue (response, 'result'); const result = {}; for (let t = 0; t < tickers.length; t++) { const ticker = tickers[t]; const marketId = this.safeString (ticker, 'MarketName'); let market = undefined; let symbol = marketId; if (marketId in this.markets_by_id) { market = this.markets_by_id[marketId]; symbol = market['symbol']; } else { symbol = this.parseSymbol (marketId); } result[symbol] = this.parseTicker (ticker, market); } return result; } async fetchTicker (symbol, params = {}) { await this.loadMarkets (); const market = this.market (symbol); const request = { 'market': market['id'], }; const response = await this.publicGetMarketsummary (this.extend (request, params)); const ticker = response['result'][0]; return this.parseTicker (ticker, market); } parseTrade (trade, market = undefined) { const timestamp = this.parse8601 (trade['TimeStamp'] + '+00:00'); let side = undefined; if (trade['OrderType'] === 'BUY') { side = 'buy'; } else if (trade['OrderType'] === 'SELL') { side = 'sell'; } const id = this.safeString2 (trade, 'Id', 'ID'); let symbol = undefined; if (market !== undefined) { symbol = market['symbol']; } let cost = undefined; const price = this.safeFloat (trade, 'Price'); const amount = this.safeFloat (trade, 'Quantity'); if (amount !== undefined) { if (price !== undefined) { cost = price * amount; } } return { 'info': trade, 'timestamp': timestamp, 'datetime': this.iso8601 (timestamp), 'symbol': symbol, 'id': id, 'order': undefined, 'type': 'limit', 'takerOrMaker': undefined, 'side': side, 'price': price, 'amount': amount, 'cost': cost, 'fee': undefined, }; } async fetchTrades (symbol, since = undefined, limit = undefined, params = {}) { await this.loadMarkets (); const market = this.market (symbol); const request = { 'market': market['id'], }; const response = await this.publicGetMarkethistory (this.extend (request, params)); if ('result' in response) { if (response['result'] !== undefined) { return this.parseTrades (response['result'], market, since, limit); } } throw new ExchangeError (this.id + ' fetchTrades() returned undefined response'); } parseOHLCV (ohlcv, market = undefined, timeframe = '1d', since = undefined, limit = undefined) { const timestamp = this.parse8601 (ohlcv['T'] + '+00:00'); return [ timestamp, ohlcv['O'], ohlcv['H'], ohlcv['L'], ohlcv['C'], ohlcv['V'], ]; } async fetchOHLCV (symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) { await this.loadMarkets (); const market = this.market (symbol); const request = { 'tickInterval': this.timeframes[timeframe], 'marketName': market['id'], }; const response = await this.v2GetMarketGetTicks (this.extend (request, params)); if ('result' in response) { if (response['result']) { return this.parseOHLCVs (response['result'], market, timeframe, since, limit); } } } async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) { await this.loadMarkets (); const request = {}; let market = undefined; if (symbol !== undefined) { market = this.market (symbol); request['market'] = market['id']; } const response = await this.marketGetOpenorders (this.extend (request, params)); const result = this.safeValue (response, 'result', []); const orders = this.parseOrders (result, market, since, limit); return this.filterBySymbol (orders, symbol); } async createOrder (symbol, type, side, amount, price = undefined, params = {}) { if (type !== 'limit') { throw new ExchangeError (this.id + ' allows limit orders only'); } await this.loadMarkets (); const market = this.market (symbol); const method = 'marketGet' + this.capitalize (side) + type; const request = { 'market': market['id'], 'quantity': this.amountToPrecision (symbol, amount), 'rate': this.priceToPrecision (symbol, price), }; // if (type == 'limit') // order['rate'] = this.priceToPrecision (symbol, price); const response = await this[method] (this.extend (request, params)); const orderIdField = this.getOrderIdField (); const orderId = this.safeString (response['result'], orderIdField); return { 'info': response, 'id': orderId, 'symbol': symbol, 'type': type, 'side': side, 'status': 'open', }; } getOrderIdField () { return 'uuid'; } async cancelOrder (id, symbol = undefined, params = {}) { await this.loadMarkets (); const orderIdField = this.getOrderIdField (); const request = {}; request[orderIdField] = id; const response = await this.marketGetCancel (this.extend (request, params)); // // { // "success": true, // "message": "''", // "result": { // "uuid": "614c34e4-8d71-11e3-94b5-425861b86ab6" // } // } // return this.extend (this.parseOrder (response), { 'status': 'canceled', }); } async fetchDeposits (code = undefined, since = undefined, limit = undefined, params = {}) { await this.loadMarkets (); // https://support.bittrex.com/hc/en-us/articles/115003723911 const request = {}; let currency = undefined; if (code !== undefined) { currency = this.currency (code); request['currency'] = currency['id']; } const response = await this.accountGetDeposithistory (this.extend (request, params)); // // { success: true, // message: "", // result: [ { Id: 22578097, // Amount: 0.3, // Currency: "ETH", // Confirmations: 15, // LastUpdated: "2018-06-10T07:12:10.57", // TxId: "0xf50b5ba2ca5438b58f93516eaa523eaf35b4420ca0f24061003df1be7…", // CryptoAddress: "0xb25f281fa51f1635abd4a60b0870a62d2a7fa404" } ] } // // we cannot filter by `since` timestamp, as it isn't set by Bittrex // see https://github.com/ccxt/ccxt/issues/4067 // return this.parseTransactions (response['result'], currency, since, limit); return this.parseTransactions (response['result'], currency, undefined, limit); } async fetchWithdrawals (code = undefined, since = undefined, limit = undefined, params = {}) { await this.loadMarkets (); // https://support.bittrex.com/hc/en-us/articles/115003723911 const request = {}; let currency = undefined; if (code !== undefined) { currency = this.currency (code); request['currency'] = currency['id']; } const response = await this.accountGetWithdrawalhistory (this.extend (request, params)); // // { // "success" : true, // "message" : "", // "result" : [{ // "PaymentUuid" : "b32c7a5c-90c6-4c6e-835c-e16df12708b1", // "Currency" : "BTC", // "Amount" : 17.00000000, // "Address" : "1DfaaFBdbB5nrHj87x3NHS4onvw1GPNyAu", // "Opened" : "2014-07-09T04:24:47.217", // "Authorized" : true, // "PendingPayment" : false, // "TxCost" : 0.00020000, // "TxId" : null, // "Canceled" : true, // "InvalidAddress" : false // }, { // "PaymentUuid" : "d193da98-788c-4188-a8f9-8ec2c33fdfcf", // "Currency" : "XC", // "Amount" : 7513.75121715, // "Address" : "TcnSMgAd7EonF2Dgc4c9K14L12RBaW5S5J", // "Opened" : "2014-07-08T23:13:31.83", // "Authorized" : true, // "PendingPayment" : false, // "TxCost" : 0.00002000, // "TxId" : "d8a575c2a71c7e56d02ab8e26bb1ef0a2f6cf2094f6ca2116476a569c1e84f6e", // "Canceled" : false, // "InvalidAddress" : false // } // ] // } // return this.parseTransactions (response['result'], currency, since, limit); } parseTransaction (transaction, currency = undefined) { // // fetchDeposits // // { // Id: 72578097, // Amount: 0.3, // Currency: "ETH", // Confirmations: 15, // LastUpdated: "2018-06-17T07:12:14.57", // TxId: "0xb31b5ba2ca5438b58f93516eaa523eaf35b4420ca0f24061003df1be7…", // CryptoAddress: "0x2d5f281fa51f1635abd4a60b0870a62d2a7fa404" // } // // fetchWithdrawals // // { // "PaymentUuid" : "e293da98-788c-4188-a8f9-8ec2c33fdfcf", // "Currency" : "XC", // "Amount" : 7513.75121715, // "Address" : "EVnSMgAd7EonF2Dgc4c9K14L12RBaW5S5J", // "Opened" : "2014-07-08T23:13:31.83", // "Authorized" : true, // "PendingPayment" : false, // "TxCost" : 0.00002000, // "TxId" : "b4a575c2a71c7e56d02ab8e26bb1ef0a2f6cf2094f6ca2116476a569c1e84f6e", // "Canceled" : false, // "InvalidAddress" : false // } // const id = this.safeString2 (transaction, 'Id', 'PaymentUuid'); const amount = this.safeFloat (transaction, 'Amount'); const address = this.safeString2 (transaction, 'CryptoAddress', 'Address'); const txid = this.safeString (transaction, 'TxId'); const updated = this.parse8601 (this.safeString (transaction, 'LastUpdated')); const opened = this.parse8601 (this.safeString (transaction, 'Opened')); const timestamp = opened ? opened : updated; const type = (opened === undefined) ? 'deposit' : 'withdrawal'; let code = undefined; const currencyId = this.safeString (transaction, 'Currency'); currency = this.safeValue (this.currencies_by_id, currencyId); if (currency !== undefined) { code = currency['code']; } else { code = this.commonCurrencyCode (currencyId); } let status = 'pending'; if (type === 'deposit') { if (currency !== undefined) { // deposits numConfirmations never reach the minConfirmations number // we set all of them to 'ok', otherwise they'd all be 'pending' // // const numConfirmations = this.safeInteger (transaction, 'Confirmations', 0); // const minConfirmations = this.safeInteger (currency['info'], 'MinConfirmation'); // if (numConfirmations >= minConfirmations) { // status = 'ok'; // } // status = 'ok'; } } else { const authorized = this.safeValue (transaction, 'Authorized', false); const pendingPayment = this.safeValue (transaction, 'PendingPayment', false); const canceled = this.safeValue (transaction, 'Canceled', false); const invalidAddress = this.safeValue (transaction, 'InvalidAddress', false); if (invalidAddress) { status = 'failed'; } else if (canceled) { status = 'canceled'; } else if (pendingPayment) { status = 'pending'; } else if (authorized && (txid !== undefined)) { status = 'ok'; } } let feeCost = this.safeFloat (transaction, 'TxCost'); if (feeCost === undefined) { if (type === 'deposit') { // according to https://support.bittrex.com/hc/en-us/articles/115000199651-What-fees-does-Bittrex-charge- feeCost = 0; // FIXME: remove hardcoded value that may change any time } } return { 'info': transaction, 'id': id, 'currency': code, 'amount': amount, 'address': address, 'tag': undefined, 'status': status, 'type': type, 'updated': updated, 'txid': txid, 'timestamp': timestamp, 'datetime': this.iso8601 (timestamp), 'fee': { 'currency': code, 'cost': feeCost, }, }; } parseSymbol (id) { const [ quoteId, baseId ] = id.split (this.options['symbolSeparator']); const base = this.commonCurrencyCode (baseId); const quote = this.commonCurrencyCode (quoteId); return base + '/' + quote; } parseOrder (order, market = undefined) { if ('marketSymbol' in order) { return this.parseOrderV3 (order, market); } else { return this.parseOrderV2 (order, market); } } parseOrderStatus (status) { const statuses = { 'CLOSED': 'closed', 'OPEN': 'open', 'CANCELLED': 'canceled', 'CANCELED': 'canceled', }; return this.safeString (statuses, status, status); } parseOrderV3 (order, market = undefined) { // // { // id: '1be35109-b763-44ce-b6ea-05b6b0735c0c', // marketSymbol: 'LTC-ETH', // direction: 'BUY', // type: 'LIMIT', // quantity: '0.50000000', // limit: '0.17846699', // timeInForce: 'GOOD_TIL_CANCELLED', // fillQuantity: '0.50000000', // commission: '0.00022286', // proceeds: '0.08914915', // status: 'CLOSED', // createdAt: '2018-06-23T13:14:28.613Z', // updatedAt: '2018-06-23T13:14:30.19Z', // closedAt: '2018-06-23T13:14:30.19Z' // } // const marketSymbol = this.safeString (order, 'marketSymbol'); let symbol = undefined; let feeCurrency = undefined; if (marketSymbol !== undefined) { const [ baseId, quoteId ] = marketSymbol.split ('-'); const base = this.commonCurrencyCode (baseId); const quote = this.commonCurrencyCode (quoteId); symbol = base + '/' + quote; feeCurrency = quote; } const direction = this.safeString (order, 'direction'); const createdAt = this.safeString (order, 'createdAt'); const updatedAt = this.safeString (order, 'updatedAt'); const closedAt = this.safeString (order, 'closedAt'); let lastTradeTimestamp = undefined; if (closedAt !== undefined) { lastTradeTimestamp = this.parse8601 (closedAt); } else if (updatedAt) { lastTradeTimestamp = this.parse8601 (updatedAt); } const timestamp = this.parse8601 (createdAt); const type = this.safeString (order, 'type'); const quantity = this.safeFloat (order, 'quantity'); const limit = this.safeFloat (order, 'limit'); const fillQuantity = this.safeFloat (order, 'fillQuantity'); const commission = this.safeFloat (order, 'commission'); const proceeds = this.safeFloat (order, 'proceeds'); const status = this.safeString (order, 'status'); let average = undefined; let remaining = undefined; if (fillQuantity !== undefined) { if (proceeds !== undefined) { if (fillQuantity > 0) { average = proceeds / fillQuantity; } else if (proceeds === 0) { average = 0; } } if (quantity !== undefined) { remaining = quantity - fillQuantity; } } return { 'id': this.safeString (order, 'id'), 'timestamp': timestamp, 'datetime': this.iso8601 (timestamp), 'lastTradeTimestamp': lastTradeTimestamp, 'symbol': symbol, 'type': type.toLowerCase (), 'side': direction.toLowerCase (), 'price': limit, 'cost': proceeds, 'average': average, 'amount': quantity, 'filled': fillQuantity, 'remaining': remaining, 'status': status.toLowerCase (), 'fee': { 'cost': commission, 'currency': feeCurrency, }, 'info': order, }; } parseOrderV2 (order, market = undefined) { // // { // "Uuid": "string (uuid)", // "OrderUuid": "8925d746-bc9f-4684-b1aa-e507467aaa99", // "Exchange": "BTC-LTC", // "OrderType": "string", // "Quantity": 100000, // "QuantityRemaining": 100000, // "Limit": 1e-8, // "CommissionPaid": 0, // "Price": 0, // "PricePerUnit": null, // "Opened": "2014-07-09T03:55:48.583", // "Closed": null, // "CancelInitiated": "boolean", // "ImmediateOrCancel": "boolean", // "IsConditional": "boolean" // } // let side = this.safeString2 (order, 'OrderType', 'Type'); const isBuyOrder = (side === 'LIMIT_BUY') || (side === 'BUY'); const isSellOrder = (side === 'LIMIT_SELL') || (side === 'SELL'); if (isBuyOrder) { side = 'buy'; } if (isSellOrder) { side = 'sell'; } // We parse different fields in a very specific order. // Order might well be closed and then canceled. let status = undefined; if (('Opened' in order) && order['Opened']) { status = 'open'; } if (('Closed' in order) && order['Closed']) { status = 'closed'; } if (('CancelInitiated' in order) && order['CancelInitiated']) { status = 'canceled'; } if (('Status' in order) && this.options['parseOrderStatus']) { status = this.parseOrderStatus (this.safeString (order, 'Status')); } let symbol = undefined; if ('Exchange' in order) { const marketId = order['Exchange']; if (marketId in this.markets_by_id) { market = this.markets_by_id[marketId]; symbol = market['symbol']; } else { symbol = this.parseSymbol (marketId); } } else { if (market !== undefined) { symbol = market['symbol']; } } let timestamp = undefined; if ('Opened' in order) { timestamp = this.parse8601 (order['Opened'] + '+00:00'); } if ('Created' in order) { timestamp = this.parse8601 (order['Created'] + '+00:00'); } let lastTradeTimestamp = undefined; if (('TimeStamp' in order) && (order['TimeStamp'] !== undefined)) { lastTradeTimestamp = this.parse8601 (order['TimeStamp'] + '+00:00'); } if (('Closed' in order) && (order['Closed'] !== undefined)) { lastTradeTimestamp = this.parse8601 (order['Closed'] + '+00:00'); } if (timestamp === undefined) { timestamp = lastTradeTimestamp; } let fee = undefined; const feeCost = this.safeFloat2 (order, 'Commission', 'CommissionPaid'); if (feeCost !== undefined) { fee = { 'cost': feeCost, }; if (market !== undefined) { fee['currency'] = market['quote']; } else if (symbol !== undefined) { const currencyIds = symbol.split ('/'); const quoteCurrencyId = currencyIds[1]; if (quoteCurrencyId in this.currencies_by_id) { fee['currency'] = this.currencies_by_id[quoteCurrencyId]['code']; } else { fee['currency'] = this.commonCurrencyCode (quoteCurrencyId); } } } let price = this.safeFloat (order, 'Limit'); let cost = this.safeFloat (order, 'Price'); const amount = this.safeFloat (order, 'Quantity'); const remaining = this.safeFloat (order, 'QuantityRemaining'); let filled = undefined; if (amount !== undefined && remaining !== undefined) { filled = amount - remaining; if ((status === 'closed') && (remaining > 0)) { status = 'canceled'; } } if (!cost) { if (price && filled) { cost = price * filled; } } if (!price) { if (cost && filled) { price = cost / filled; } } const average = this.safeFloat (order, 'PricePerUnit'); const id = this.safeString2 (order, 'OrderUuid', 'OrderId'); return { 'info': order, 'id': id, 'timestamp': timestamp, 'datetime': this.iso8601 (timestamp), 'lastTradeTimestamp': lastTradeTimestamp, 'symbol': symbol, 'type': 'limit', 'side': side, 'price': price, 'cost': cost, 'average': average, 'amount': amount, 'filled': filled, 'remaining': remaining, 'status': status, 'fee': fee, }; } async fetchOrder (id, symbol = undefined, params = {}) { await this.loadMarkets (); let response = undefined; try { const orderIdField = this.getOrderIdField (); const request = {}; request[orderIdField] = id; response = await this.accountGetOrder (this.extend (request, params)); } catch (e) { if (this.last_json_response) { const message = this.safeString (this.last_json_response, 'message'); if (message === 'UUID_INVALID') { throw new OrderNotFound (this.id + ' fetchOrder() error: ' + this.last_http_response); } } throw e; } if (!response['result']) { throw new OrderNotFound (this.id + ' order ' + id + ' not found'); } return this.parseOrder (response['result']); } orderToTrade (order) { // this entire method should be moved to the base class const timestamp = this.safeInteger2 (order, 'lastTradeTimestamp', 'timestamp'); return { 'id': this.safeString (order, 'id'), 'side': this.safeString (order, 'side'), 'order': this.safeString (order, 'id'), 'price': this.safeFloat (order, 'average'), 'amount': this.safeFloat (order, 'filled'), 'cost': this.safeFloat (order, 'cost'), 'symbol': this.safeString (order, 'symbol'), 'timestamp': timestamp, 'datetime': this.iso8601 (timestamp), 'fee': this.safeValue (order, 'fee'), 'info': order, }; } ordersToTrades (orders) { // this entire method should be moved to the base class const result = []; for (let i = 0; i < orders.length; i++) { result.push (this.orderToTrade (orders[i])); } return result; } async fetchMyTrades (symbol = undefined, since = undefined, limit = undefined, params = {}) { const orders = await this.fetchClosedOrders (symbol, since, limit, params); return this.ordersToTrades (orders); } async fetchClosedOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) { const method = this.safeString (this.options, 'fetchClosedOrdersMethod', 'fetch_closed_orders_v3'); return await this[method] (symbol, since, limit, params); } async fetchClosedOrdersV2 (symbol = undefined, since = undefined, limit = undefined, params = {}) { await this.loadMarkets (); const request = {}; let market = undefined; if (symbol !== undefined) { market = this.market (symbol); request['market'] = market['id']; } const response = await this.accountGetOrderhistory (this.extend (request, params)); const result = this.safeValue (response, 'result', []); const orders = this.parseOrders (result, market, since, limit); if (symbol !== undefined) { return this.filterBySymbol (orders, symbol); } return orders; } async fetchClosedOrdersV3 (symbol = undefined, since = undefined, limit = undefined, params = {}) { await this.loadMarkets (); const request = {}; if (limit !== undefined) { request['pageSize'] = limit; } if (since !== undefined) { request['startDate'] = since; } let market = undefined; if (symbol !== undefined) { market = this.market (symbol); // because of this line we will have to rethink the entire v3 // in other words, markets define all the rest of the API // and v3 market ids are reversed in comparison to v2 // v3 has to be a completely separate implementation // otherwise we will have to shuffle symbols and currencies everywhere // which is prone to errors, as was shown here // https://github.com/ccxt/ccxt/pull/5219#issuecomment-499646209 request['marketSymbol'] = market['base'] + '-' + market['quote']; } const response = await this.v3GetOrdersClosed (this.extend (request, params)); const orders = this.parseOrders (response, market, since, limit); if (symbol !== undefined) { return this.filterBySymbol (orders, symbol); } return orders; } async fetchDepositAddress (code, params = {}) { await this.loadMarkets (); const currency = this.currency (code); const request = { 'currency': currency['id'], }; const response = await this.accountGetDepositaddress (this.extend (request, params)); // // { "success": false, "message": "ADDRESS_GENERATING", "result": null } // // { success: true, // message: "", // result: { Currency: "INCNT", // Address: "3PHvQt9bK21f7eVQVdJzrNPcsMzXabEA5Ha" } } } // let address = this.safeString (response['result'], 'Address'); const message = this.safeString (response, 'message'); if (!address || message === 'ADDRESS_GENERATING') { throw new AddressPending (this.id + ' the address for ' + code + ' is being generated (pending, not ready yet, retry again later)'); } let tag = undefined; if (currency['type'] in this.options['tag']) { tag = address; address = currency['address']; } this.checkAddress (address); return { 'currency': code, 'address': address, 'tag': tag, 'info': response, }; } async withdraw (code, amount, address, tag = undefined, params = {}) { this.checkAddress (address); await this.loadMarkets (); const currency = this.currency (code); const request = { 'currency': currency['id'], 'quantity': amount, 'address': address, }; if (tag !== undefined) { request['paymentid'] = tag; } const response = await this.accountGetWithdraw (this.extend (request, params)); const result = this.safeValue (response, 'result', {}); const id = this.safeString (result, 'uuid'); return { 'info': response, 'id': id, }; } sign (path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) { let url = this.implodeParams (this.urls['api'][api], { 'hostname': this.hostname, }) + '/'; if (api !== 'v2' && api !== 'v3' && api !== 'v3public') { url += this.version + '/'; } if (api === 'public') { url += api + '/' + method.toLowerCase () + path; if (Object.keys (params).length) { url += '?' + this.urlencode (params); } } else if (api === 'v3public') { url += path; if (Object.keys (params).length) { url += '?' + this.urlencode (params); } } else if (api === 'v2') { url += path; if (Object.keys (params).length) { url += '?' + this.urlencode (params); } } else if (api === 'v3') { url += path; if (Object.keys (params).length) { url += '?' + this.urlencode (params); } const contentHash = this.hash ('', 'sha512', 'hex'); const timestamp = this.milliseconds ().toString (); let auth = timestamp + url + method + contentHash; const subaccountId = this.safeValue (this.options, 'subaccountId'); if (subaccountId !== undefined) { auth += subaccountId; } const signature = this.hmac (this.encode (auth), this.encode (this.secret), 'sha512'); headers = { 'Api-Key': this.apiKey, 'Api-Timestamp': timestamp, 'Api-Content-Hash': contentHash, 'Api-Signature': signature, }; if (subaccountId !== undefined) { headers['Api-Subaccount-Id'] = subaccountId; } } else { this.checkRequiredCredentials (); url += api + '/'; if (((api === 'account') && (path !== 'withdraw')) || (path === 'openorders')) { url += method.toLowerCase (); } const request = { 'apikey': this.apiKey, }; const disableNonce = this.safeValue (this.options, 'disableNonce'); if ((disableNonce === undefined) || !disableNonce) { request['nonce'] = this.nonce (); } url += path + '?' + this.urlencode (this.extend (request, params)); const signature = this.hmac (this.encode (url), this.encode (this.secret), 'sha512'); headers = { 'apisign': signature }; } return { 'url': url, 'method': method, 'body': body, 'headers': headers }; } handleErrors (code, reason, url, method, headers, body, response) { if (response === undefined) { return; // fallback to default error handler } // // { success: false, message: "message" } // if (body[0] === '{') { let success = this.safeValue (response, 'success'); if (success === undefined) { throw new ExchangeError (this.id + ': malformed response: ' + this.json (response)); } if (typeof success === 'string') { // bleutrade uses string instead of boolean success = (success === 'true') ? true : false; } if (!success) { const message = this.safeString (response, 'message'); const feedback = this.id + ' ' + this.json (response); const exceptions = this.exceptions; if (message === 'APIKEY_INVALID') { if (this.options['hasAlreadyAuthenticatedSuccessfully']) { throw new DDoSProtection (feedback); } else { throw new AuthenticationError (feedback); } } // https://github.com/ccxt/ccxt/issues/4932 // the following two lines are now redundant, see line 171 in describe() // // if (message === 'DUST_TRADE_DISALLOWED_MIN_VALUE_50K_SAT') // throw new InvalidOrder (this.id + ' order cost should be over 50k satoshi ' + this.json (response)); // if (message === 'INVALID_ORDER') { // Bittrex will return an ambiguous INVALID_ORDER message // upon canceling already-canceled and closed orders // therefore this special case for cancelOrder // let url = 'https://bittrex.com/api/v1.1/market/cancel?apikey=API_KEY&uuid=ORDER_UUID' const cancel = 'cancel'; const indexOfCancel = url.indexOf (cancel); if (indexOfCancel >= 0) { const parts = url.split ('&'); let orderId = undefined; for (let i = 0; i < parts.length; i++) { const part = parts[i]; const keyValue = part.split ('='); if (keyValue[0] === 'uuid') { orderId = keyValue[1]; break; } } if (orderId !== undefined) { throw new OrderNotFound (this.id + ' cancelOrder ' + orderId + ' ' + this.json (response)); } else { throw new OrderNotFound (this.id + ' cancelOrder ' + this.json (response)); } } } if (message in exceptions) { throw new exceptions[message] (feedback); } if (message !== undefined) { if (message.indexOf ('throttled. Try again') >= 0) { throw new DDoSProtection (feedback); } if (message.indexOf ('problem') >= 0) { throw new ExchangeNotAvailable (feedback); // 'There was a problem processing your request. If this problem persists, please contact...') } } throw new ExchangeError (feedback); } } } async request (path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) { const response = await this.fetch2 (path, api, method, params, headers, body); // a workaround for APIKEY_INVALID if ((api === 'account') || (api === 'market')) { this.options['hasAlreadyAuthenticatedSuccessfully'] = true; } return response; } };
/* eslint-disable linebreak-style */ // ====================================================================== // Like a GIF For Your Yard // Advent of Code 2015 Day 18 -- Eric Wastl -- https://adventofcode.com // // Javascript implementation by Dr. Dean Earl Wright III // ====================================================================== // ====================================================================== // l i g h t s . t e s t . j s // // Test the solver for Advent of Code 2015 day 18 problem // ====================================================================== // ---------------------------------------------------------------------- // import // ---------------------------------------------------------------------- const aoc18 = require('./aoc_18'); const lights = require('./lights'); // ---------------------------------------------------------------------- // constants // ---------------------------------------------------------------------- const EXAMPLE_SIZE = 6; const EX1L1 = '.#.#.#'; const EX1L2 = '...##.'; const EX1L3 = '#....#'; const EX1L4 = '..#...'; const EX1L5 = '#.#..#'; const EX1L6 = '####..'; const EXAMPLE_TEXT = `${EX1L1}\n${EX1L2}\n${EX1L3}\n${EX1L4}\n${EX1L5}\n${EX1L6}`; const EX2L1 = '##.#.#'; const EX2L6 = '####.#'; const EXAMPLE2_TEXT = `${EX2L1}\n${EX1L2}\n${EX1L3}\n${EX1L4}\n${EX1L5}\n${EX2L6}`; const EXAMPLE_COUNT = 15; const EXAMPLE_STEPS = 4; const EXAMPLE2_COUNT = 17; const EXAMPLE2_STEPS = 5; const EXAMPLES_PART_ONE = [ { text: EXAMPLE_TEXT, count: EXAMPLE_COUNT }, { text: '..##..\n..##.#\n...##.\n......\n#.....\n#.##..', count: 11 }, { text: '..###.\n......\n..###.\n......\n.#....\n.#....', count: 8 }, { text: '...#..\n......\n...#..\n..##..\n......\n......', count: 4 }, { text: '......\n......\n..##..\n..##..\n......\n......', count: 4 }, { text: '......\n......\n..##..\n..##..\n......\n......', count: 4 }, ]; const EXAMPLES_PART_TWO = [ { text: EXAMPLE2_TEXT, count: EXAMPLE2_COUNT }, { text: '#.##.#\n####.#\n...##.\n......\n#...#.\n#.####', count: 18 }, { text: '#..#.#\n#....#\n.#.##.\n...##.\n.#..##\n##.###', count: 18 }, { text: '#...##\n####.#\n..##.#\n......\n##....\n####.#', count: 18 }, { text: '#.####\n#....#\n...#..\n.##...\n#.....\n#.#..#', count: 14 }, { text: '##.###\n.##..#\n.##...\n.##...\n#.#...\n##...#', count: 17 }, ]; const PART_ONE_TEXT = EXAMPLE_TEXT; const PART_TWO_TEXT = EXAMPLE2_TEXT; const PART_ONE_RESULT = 4; const PART_TWO_RESULT = 17; // ====================================================================== // TestLights // ====================================================================== describe('Lights', () => { test('Test the default Lights creation', () => { // 1. Create default Lights object const myobj = new lights.Lights({}); // 2. Make sure it has the default values expect(myobj.part2).toBe(false); expect(myobj.text).toBe(null); expect(myobj.size).toBe(100); expect(myobj.steps).toBe(100); expect(myobj.step).toBe(0); }); test('Test the Lights object creation from text', () => { // 1. Create Lights object from text const myobj = new lights.Lights({ size: EXAMPLE_SIZE, steps: EXAMPLE_STEPS, text: aoc18.fromText(EXAMPLE_TEXT), }); // 2. Make sure it has the expected values expect(myobj.part2).toBe(false); expect(myobj.size).toBe(EXAMPLE_SIZE); expect(myobj.steps).toBe(EXAMPLE_STEPS); expect(myobj.text).toHaveLength(6); expect(myobj.step).toBe(0); expect(myobj.grid).toHaveLength(6); expect(myobj.grid[0]).toHaveLength(6); expect(myobj.grid[0]).toStrictEqual([0, 1, 0, 1, 0, 1]); // 3. Check neighbors expect(myobj.neighbors(0, 0)).toBe(1); expect(myobj.neighbors(0, 1)).toBe(0); expect(myobj.neighbors(0, 2)).toBe(3); expect(myobj.neighbors(1, 2)).toBe(3); }); test('Test all of the part one examples', () => { // 1. Create Lights object from text const myobj = new lights.Lights({ size: EXAMPLE_SIZE, steps: EXAMPLE_STEPS, text: aoc18.fromText(EXAMPLE_TEXT), }); expect(myobj.part2).toBe(false); expect(myobj.size).toBe(EXAMPLE_SIZE); expect(myobj.steps).toBe(EXAMPLE_STEPS); expect(myobj.text).toHaveLength(6); expect(myobj.step).toBe(0); expect(myobj.grid).toHaveLength(6); expect(myobj.grid[0]).toHaveLength(6); expect(myobj.grid[0]).toStrictEqual([0, 1, 0, 1, 0, 1]); // 2. Loop for all of the steps for (let step = 0; step < EXAMPLES_PART_ONE.length; step += 1) { // 3. Verify this step expect(myobj.step).toBe(step); const show = myobj.show(); const count = myobj.count(); expect(myobj.step).toBe(step); expect(show).toBe(EXAMPLES_PART_ONE[step].text); expect(count).toBe(EXAMPLES_PART_ONE[step].count); // 4. Advance to the next step myobj.next(); } }); test('Test all of the part two examples', () => { // 1. Create Lights object from text const myobj = new lights.Lights({ part2: true, size: EXAMPLE_SIZE, steps: EXAMPLE2_STEPS, text: aoc18.fromText(EXAMPLE2_TEXT), }); expect(myobj.part2).toBe(true); expect(myobj.size).toBe(EXAMPLE_SIZE); expect(myobj.steps).toBe(EXAMPLE2_STEPS); expect(myobj.text).toHaveLength(6); expect(myobj.step).toBe(0); expect(myobj.grid).toHaveLength(6); expect(myobj.grid[0]).toHaveLength(6); expect(myobj.grid[0]).toStrictEqual([1, 1, 0, 1, 0, 1]); // 2. Loop for all of the steps for (let step = 0; step < EXAMPLES_PART_TWO.length; step += 1) { // 3. Verify this step expect(myobj.step).toBe(step); const show = myobj.show(); const count = myobj.count(); expect(myobj.step).toBe(step); expect(show).toBe(EXAMPLES_PART_TWO[step].text); expect(count).toBe(EXAMPLES_PART_TWO[step].count); // 4. Advance to the next step myobj.next(); } }); test('Test part one example of Lights object', () => { // 1. Create Lights object from text const myobj = new lights.Lights({ size: EXAMPLE_SIZE, steps: EXAMPLE_STEPS, text: aoc18.fromText(PART_ONE_TEXT), }); // 2. Check the part one result expect(myobj.partOne({ verbose: false })).toBe(PART_ONE_RESULT); }); test('Test part two example of Lights object', () => { // 1. Create Lights object from text const myobj = new lights.Lights({ part2: true, size: EXAMPLE_SIZE, steps: EXAMPLE2_STEPS, text: aoc18.fromText(PART_TWO_TEXT), }); // 2. Check the part two result expect(myobj.partTwo({ verbose: false })).toBe(PART_TWO_RESULT); }); }); // ====================================================================== // end l i g h t s . t e s t . j s end // ======================================================================
define(["exports","../../../../@polymer/polymer/polymer-element.js"],function(_exports,_polymerElement){"use strict";Object.defineProperty(_exports,"__esModule",{value:!0});_exports.github=void 0;function _templateObject_0902453056d411e99e8143b72aec9f54(){var data=babelHelpers.taggedTemplateLiteral(["\n <style>\n /* github.com style (c) Vasily Polovnyov <vast@whiteants.net> */\n\n .hljs {\n display: block;\n overflow-x: auto;\n color: var(--code-sample-color, #333);\n background: var(--code-sample-background, #f8f8f8);\n }\n\n .hljs-comment,\n .hljs-quote {\n color: #998;\n font-style: italic;\n }\n\n .hljs-keyword,\n .hljs-selector-tag,\n .hljs-subst {\n color: #333;\n font-weight: bold;\n }\n\n .hljs-number,\n .hljs-literal,\n .hljs-variable,\n .hljs-template-variable,\n .hljs-tag .hljs-attr {\n color: #008080;\n }\n\n .hljs-string,\n .hljs-doctag {\n color: #d14;\n }\n\n .hljs-title,\n .hljs-section,\n .hljs-selector-id {\n color: #900;\n font-weight: bold;\n }\n\n .hljs-subst {\n font-weight: normal;\n }\n\n .hljs-type,\n .hljs-class .hljs-title {\n color: #458;\n font-weight: bold;\n }\n\n .hljs-tag,\n .hljs-name,\n .hljs-attribute {\n color: #000080;\n font-weight: normal;\n }\n\n .hljs-regexp,\n .hljs-link {\n color: #009926;\n }\n\n .hljs-symbol,\n .hljs-bullet {\n color: #990073;\n }\n\n .hljs-built_in,\n .hljs-builtin-name {\n color: #0086b3;\n }\n\n .hljs-meta {\n color: #999;\n font-weight: bold;\n }\n\n .hljs-deletion {\n background: #fdd;\n }\n\n .hljs-addition {\n background: #dfd;\n }\n\n .hljs-emphasis {\n font-style: italic;\n }\n\n .hljs-strong {\n font-weight: bold;\n }\n </style>\n"]);_templateObject_0902453056d411e99e8143b72aec9f54=function(){return data};return data}var github=(0,_polymerElement.html)(_templateObject_0902453056d411e99e8143b72aec9f54());_exports.github=github});
import TextField from '@ember/component/text-field'; import $ from 'jquery'; export default TextField.extend({ classNames: ['room-url'], didInsertElement() { $(this.element).focus().select(); }, copyValueToClipboard() { if (window.ClipboardEvent) { const pasteEvent = new window.ClipboardEvent('paste', { dataType: 'text/plain', data: this.element.value, }); document.dispatchEvent(pasteEvent); } }, });
(function(){function c(a){var b=null!=a.Text?a.Text:null!=a.Value?a.Value:a.Lane_0;null==b&&null!=a.State?null!=a.State.t&&(b=a.State):null==b&&null!=a.Note?null!=a.Note.t&&(b=a.Note):null==b&&null!=a.Title?null!=a.Title.t&&(b=a.Title):null!=a.t&&(b=a);null==b&&null!=a.TextAreas&&null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.t&&(b=a.TextAreas.Text.Value);if(null!=b){if(null!=b.t)return b.t=b.t.replace(/</g,"&lt;"),b.t=b.t.replace(/>/g,"&gt;"),b.t;if(null!=b.Value&& null!=b.Value.t)return b.Value.t=b.Value.t.replace(/</g,"&lt;"),b.Value.t=b.Value.t.replace(/>/g,"&gt;"),b.Value.t}return""}function m(a){return null!=a.Action?a.Action:a}function w(a){if(null!=a.Text){if(null!=a.Text.m)return a.Text.m}else if(null!=a.TextAreas){if(null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.m)return a.TextAreas.Text.Value.m}else if(null!=a.m)return a.m;return null}function l(c){return h(c)+f(c)+b(c)+a(c)+d(c)+g(c)+p(c)+D(c)+C(c)+y(c)}function h(a){a= w(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("s"==d.n&&null!=d.v)return"fontSize="+Math.round(.6*d.v)+";";b++}return"fontSize=11;"}function f(a){a=w(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("c"==d.n&&null!=d.v)return a=d.v,"#"!=a.charAt(0)&&(a="#"+a),a=a.substring(0,7),mxConstants.STYLE_FONTCOLOR+"="+a+";";b++}return""}function b(a){a=w(a);if(null!=a){var b=0,d=!1;if(null!=a)for(var g=0;!d&&g<a.length;){var e=a[g];"b"==e.n&&null!=e.v&&e.v&&(d=!0,b+=1);g++}d=!1;if(null!=a)for(g= 0;!d&&g<a.length;)e=a[g],"i"==e.n&&null!=e.v&&e.v&&(d=!0,b+=2),g++;d=!1;if(null!=a)for(g=0;!d&&g<a.length;)e=a[g],"u"==e.n&&null!=e.v&&e.v&&(d=!0,b+=4),g++;if(0<b)return"fontStyle="+b+";"}return""}function a(a){a=w(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("a"==d.n&&null!=d.v)return"align="+d.v+";";b++}return""}function d(b){var d=w(b);if(null!=d)for(var g=0;g<d.length;){var p=d[g];if(null!=p.v){if("il"==p.n)return"spacingLeft="+.6*p.v+";";a(b)}g++}return""}function g(a){a=w(a);if(null!= a)for(var b=0;b<a.length;){var d=a[b];if("ir"==d.n&&null!=d.v)return"spacingRight="+d.v+";";b++}return""}function p(a){a=w(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("mt"==d.n&&null!=d.v)return"spacingTop="+d.v+";";b++}return""}function D(a){a=w(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("mb"==d.n&&null!=d.v)return"spacingBottom="+d.v+";";b++}return""}function C(a){return"number"===typeof a.InsetMargin?"spacing="+parseInt(a.InsetMargin)+";":""}function y(a){return null!=a.Text_VAlign&& "string"===typeof a.Text_VAlign?"verticalAlign="+a.Text_VAlign+";":L(mxConstants.STYLE_VERTICAL_ALIGN,a.TextVAlign,"middle")}function q(a,b){return 0>mxUtils.indexOf(Tb,b.Class)?0==a.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":L(mxConstants.STYLE_STROKECOLOR,a.LineColor.substring(0,7),"#000000"):"Venn"==b.Class.substring(0,4)?L(mxConstants.STYLE_STROKECOLOR,a.FillColor.substring(0,7),"#FFFFFF"):""}function z(a,b){var d="",g=0<=mxUtils.indexOf(fb,b.Class);g||(d+=L(mxConstants.STYLE_OPACITY,a.Opacity, "100"));if("string"===typeof a.LineColor&&!g&&7<a.LineColor.length)var e="0x"+a.LineColor.substring(a.LineColor.length-2,a.LineColor.length),d=d+("strokeOpacity="+Math.round(parseInt(e)/2.55)+";");"string"===typeof a.FillColor&&!g&&7<a.FillColor.length&&(g="0x"+a.FillColor.substring(a.FillColor.length-2,a.FillColor.length),d+="fillOpacity="+Math.round(parseInt(g)/2.55)+";");return d}function aa(a,b,d){if(!d.edge)if(null!=a.Rounding&&0>mxUtils.indexOf(ja,b.Class)){if(0<a.Rounding)return"rounded=1;absoluteArcSize=1;arcSize="+ .6*a.Rounding+";"}else if(null==a.Rounding&&0<=mxUtils.indexOf(Ha,b.Class))return"rounded=1;absoluteArcSize=1;arcSize=8;";return""}function P(a,b,d){return null!=a.Rotation&&(a=mxUtils.toDegree(parseFloat(a.Rotation)),"AdvancedSwimLaneBlockRotated"==b.Class?(a+=90,d.geometry.rotate90()):0<=mxUtils.indexOf(Ub,b.Class)?(a-=90,d.geometry.rotate90(),d.geometry.rotate90(),d.geometry.rotate90()):0<=mxUtils.indexOf(Ia,b.Class)&&(a+=180,d.geometry.rotate90(),d.geometry.rotate90()),0!=a)?"rotation="+a+";": ""}function E(a){return null!=a.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function A(a,b){if(null!=a.FillColor&&0>mxUtils.indexOf(Ea,b.Class))if("object"===typeof a.FillColor){if(null!=a.FillColor.cs&&1<a.FillColor.cs.length)return L(mxConstants.STYLE_FILLCOLOR,a.FillColor.cs[0].c.substring(0,7))+L(mxConstants.STYLE_GRADIENTCOLOR,a.FillColor.cs[1].c.substring(0,7))}else return"string"===typeof a.FillColor?L(mxConstants.STYLE_FILLCOLOR,a.FillColor.substring(0,7),"#FFFFFF"):L(mxConstants.STYLE_FILLCOLOR, "none");return""}function F(a){return"dashed"==a.StrokeStyle?"dashed=1;":"dotted"==a.StrokeStyle?"dashed=1;dashPattern=1 4;":"dashdot"==a.StrokeStyle?"dashed=1;dashPattern=10 5 1 5;":"dotdotdot"==a.StrokeStyle?"dashed=1;dashPattern=1 1;":""}function B(a){return L(mxConstants.STYLE_STROKEWIDTH,.6*parseFloat(a.LineWidth),"1")}function Y(l,w){var Y=m(w);if(null!=Y){var n=gb[Y.Class];null!=n&&(l.style+=n+";");n=null!=Y.Properties?Y.Properties:Y;if(null!=n){l.value=c(n);var e=l.style,L=h(n)+f(n)+b(n)+ a(n,l)+d(n)+g(n)+p(n)+D(n)+C(n)+y(n)+q(n,Y)+z(n,Y)+aa(n,Y,l)+P(n,Y,l)+(n.FlipX?"flipH=1;":"")+(n.FlipY?"flipV=1;":"")+E(n)+A(n,Y)+F(n)+B(n);Y="ImageSearchBlock2"==Y.Class?"image="+n.URL+";":"";l.style=e+(L+Y);if(l.edge){l.style=null!=n.Rounding?l.style+("rounded=1;arcSize="+n.Rounding+";"):l.style+"rounded=0;";if("diagonal"!=n.Shape)if(null!=n.ElbowPoints)for(l.geometry.points=[],Y=0;Y<n.ElbowPoints.length;Y++)l.geometry.points.push(new mxPoint(Math.round(.6*n.ElbowPoints[Y].x+0),Math.round(.6*n.ElbowPoints[Y].y+ 0)));else"elbow"==n.Shape?l.style=null!=n.Endpoint1.Block&&null!=n.Endpoint1.Block?l.style+"edgeStyle=orthogonalEdgeStyle;":l.style+"edgeStyle=elbowEdgeStyle;":null!=n.Endpoint1.Block&&null!=n.Endpoint1.Block&&(l.style+="edgeStyle=orthogonalEdgeStyle;","curve"==n.Shape&&(l.style+="curved=1;"));null!=n.Endpoint1.Style&&(l.style+="startArrow="+wb[n.Endpoint1.Style]+";");null!=n.Endpoint2.Style&&(l.style+="endArrow="+wb[n.Endpoint2.Style].replace(/startSize/g,"endSize")+";");fa(l,n.Endpoint1,!0);fa(l, n.Endpoint2,!1)}}}}function K(a){var b=m(a).Properties.BoundingBox;null!=a.Class&&"AWS"===a.Class.substring(0,3)&&(b.h-=20);v=new mxCell("",new mxGeometry(Math.round(.6*b.x+0),Math.round(.6*b.y+0),Math.round(.6*b.w),Math.round(.6*b.h)),"html=1;whiteSpace=wrap;");v.vertex=!0;Y(v,a);return v}function X(a,b,d){d=2*(parseFloat(a.Location)-.5);a=new mxCell(c(a),new mxGeometry(d,0,0,0),"text;html=1;resizable=0;labelBackgroundColor=#ffffff;align=center;verticalAlign=middle;");a.geometry.relative=!0;a.vertex= !0;b.insert(a);return b}function L(a,b,d,g){null!=b&&null!=g&&(b=g(b));return null!=b&&b!=d?a+"="+b+";":""}function fa(a,b,d){null!=b&&null!=b.LinkX&&null!=b.LinkY&&(a.style+=(d?"exitX":"entryX")+"="+b.LinkX+";"+(d?"exitY":"entryY")+"="+b.LinkY+";"+(d?"exitPerimeter":"entryPerimeter")+"=1;")}function la(a,b,d,g,e,p,c,f){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;c.insert(a);p=[a];d=sb.cloneCell(d);f.insertEdge(d,!1);a.insertEdge(d,!0);p.push(d);g.push(e.addCell(d, null,null,null,null))}function ea(a,b,d,g,e,p,c,f,D){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;D.insert(a);d=new mxCell("",new mxGeometry(d,g,0,0),"strokeColor=none;fillColor=none;");d.vertex=!0;D.insert(d);f=[d];e=sb.cloneCell(e);a.insertEdge(e,!0);d.insertEdge(e,!1);f.push(e);p.push(c.addCell(e,null,null,null,null))}function ab(w,L,K){var n=m(w),e=n.Properties,X=e.BoundingBox,u=Math.round(.6*X.w),t=Math.round(.6*X.h),fa=Math.round(.6*X.x+0),ja=Math.round(.6* X.y+0);v=new mxCell("",new mxGeometry(fa,ja,u,t),"html=1;whiteSpace=wrap;");v.vertex=!0;switch(null!=w.Class?w.Class:null!=n?n.Class:null){case "BraceNoteBlock":case "UI2BraceNoteBlock":var ab=!1;null!=e.BraceDirection&&"Right"==e.BraceDirection&&(ab=!0);var Ha=null,za=null;ab?(Ha=new mxCell("",new mxGeometry(u-.125*t,0,.125*t,t),"shape=curlyBracket;rounded=1;"),za=new mxCell("",new mxGeometry(0,0,u-.125*t,t),"strokeColor=none;fillColor=none;")):(Ha=new mxCell("",new mxGeometry(0,0,.125*t,t),"shape=curlyBracket;rounded=1;flipH=1;"), za=new mxCell("",new mxGeometry(.125*t,0,u-.125*t,t),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=P(e,n,v);Ha.vertex=!0;v.insert(Ha);Ha.style+=q(e,n)+z(e,n)+E(e)+F(e)+B(e);za.vertex=!0;za.value=c(e);v.insert(za);za.style+=h(e)+f(e)+b(e)+a(e,za)+d(e)+g(e)+p(e)+D(e)+C(e)+y(e);break;case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":var Tb=0;null!=e.Lanes&&(Tb=e.Lanes.length);v.style="strokeColor=none;fillColor=none;";for(var Ub=0,Ia=[],k=0;k< Tb;k++){var jc=parseFloat(e.Lanes[k].p);Ia.push(new mxCell("",new mxGeometry(u*Ub,0,u*jc,t),"shape=swimlane;startSize=25;"));Ia[k].vertex=!0;v.insert(Ia[k]);Ia[k].value=c(e["Lane_"+k]);Ia[k].style+=h(e["Lane_"+k])+f(e["Lane_"+k])+b(e["Lane_"+k])+a(e["Lane_"+k],Ia[k])+d(e["Lane_"+k])+g(e["Lane_"+k])+p(e["Lane_"+k])+D(e["Lane_"+k])+C(e["Lane_"+k])+y(e["Lane_"+k])+q(e,n)+z(e,n)+aa(e,n,Ia[k])+P(e,n,Ia[k])+(e.FlipX?"flipH=1;":"")+(e.FlipY?"flipV=1;":"")+E(e)+A(e,n)+F(e)+B(e);Ub+=jc}break;case "AndroidDevice":if(null!= e.AndroidDeviceName){v.style="fillColor=#000000;strokeColor=#000000;";var Ea=null,fb=null,xb=null;if("Tablet"==e.AndroidDeviceName||"Mini Tablet"==e.AndroidDeviceName)v.style+="shape=mxgraph.android.tab2;",Ea=new mxCell("",new mxGeometry(.112*u,.077*t,.77*u,.85*t),""),e.KeyboardShown&&(fb=new mxCell("",new mxGeometry(.112*u,.727*t,.77*u,.2*t),"shape=mxgraph.android.keyboard;")),e.FullScreen||(xb=new mxCell("",new mxGeometry(.112*u,.077*t,.77*u,.03*t),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+ .015*t+";"));else if("Large Phone"==e.AndroidDeviceName||"Phone"==e.AndroidDeviceName)v.style+="shape=mxgraph.android.phone2;",Ea=new mxCell("",new mxGeometry(.04*u,.092*t,.92*u,.816*t),""),e.KeyboardShown&&(fb=new mxCell("",new mxGeometry(.04*u,.708*t,.92*u,.2*t),"shape=mxgraph.android.keyboard;")),e.FullScreen||(xb=new mxCell("",new mxGeometry(.04*u,.092*t,.92*u,.03*t),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*t+";"));Ea.vertex=!0;v.insert(Ea); "Dark"==e.Scheme?Ea.style+="fillColor=#111111;":"Light"==e.Scheme&&(Ea.style+="fillColor=#ffffff;");null!=fb&&(fb.vertex=!0,v.insert(fb));null!=xb&&(xb.vertex=!0,v.insert(xb))}break;case "AndroidAlertDialog":var Ja=new mxCell("",new mxGeometry(0,0,u,30),"strokeColor=none;fillColor=none;spacingLeft=9;");Ja.vertex=!0;v.insert(Ja);var ha=new mxCell("",new mxGeometry(0,25,u,10),"shape=line;strokeColor=#33B5E5;");ha.vertex=!0;v.insert(ha);var yb=new mxCell("",new mxGeometry(0,30,u,t-30),"strokeColor=none;fillColor=none;verticalAlign=top;"); yb.vertex=!0;v.insert(yb);var ma=new mxCell("",new mxGeometry(0,t-25,.5*u,25),"fillColor=none;");ma.vertex=!0;v.insert(ma);var na=new mxCell("",new mxGeometry(.5*u,t-25,.5*u,25),"fillColor=none;");na.vertex=!0;v.insert(na);Ja.value=c(e.DialogTitle);Ja.style+=l(e.DialogTitle);yb.value=c(e.DialogText);yb.style+=l(e.DialogText);ma.value=c(e.Button_0);ma.style+=l(e.Button_0);na.value=c(e.Button_1);na.style+=l(e.Button_1);"Dark"==e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",ma.style+= "strokeColor=#353535;",na.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",ma.style+="strokeColor=#E2E2E2;",na.style+="strokeColor=#E2E2E2;");break;case "AndroidDateDialog":case "AndroidTimeDialog":Ja=new mxCell("",new mxGeometry(0,0,u,30),"strokeColor=none;fillColor=none;spacingLeft=9;");Ja.vertex=!0;v.insert(Ja);Ja.value=c(e.DialogTitle);Ja.style+=l(e.DialogTitle);ha=new mxCell("",new mxGeometry(0,25,u,10),"shape=line;strokeColor=#33B5E5;");ha.vertex=!0;v.insert(ha); ma=new mxCell("",new mxGeometry(0,t-25,.5*u,25),"fillColor=none;");ma.vertex=!0;v.insert(ma);ma.value=c(e.Button_0);ma.style+=l(e.Button_0);na=new mxCell("",new mxGeometry(.5*u,t-25,.5*u,25),"fillColor=none;");na.vertex=!0;v.insert(na);na.value=c(e.Button_1);na.style+=l(e.Button_1);var kb=new mxCell("",new mxGeometry(.5*u-4,41,8,4),"shape=triangle;direction=north;");kb.vertex=!0;v.insert(kb);var jb=new mxCell("",new mxGeometry(.25*u-4,41,8,4),"shape=triangle;direction=north;");jb.vertex=!0;v.insert(jb); var lb=new mxCell("",new mxGeometry(.75*u-4,41,8,4),"shape=triangle;direction=north;");lb.vertex=!0;v.insert(lb);var zb=new mxCell("",new mxGeometry(.375*u,50,.2*u,15),"strokeColor=none;fillColor=none;");zb.vertex=!0;v.insert(zb);zb.value=c(e.Label_1);zb.style+=l(e.Label_1);var Ab=new mxCell("",new mxGeometry(.125*u,50,.2*u,15),"strokeColor=none;fillColor=none;");Ab.vertex=!0;v.insert(Ab);Ab.value=c(e.Label_0);Ab.style+=l(e.Label_0);var mb=null;"AndroidDateDialog"==w.Class&&(mb=new mxCell("",new mxGeometry(.625* u,50,.2*u,15),"strokeColor=none;fillColor=none;"),mb.vertex=!0,v.insert(mb),mb.value=c(e.Label_2),mb.style+=l(e.Label_2));var Ka=new mxCell("",new mxGeometry(.43*u,60,.14*u,10),"shape=line;strokeColor=#33B5E5;");Ka.vertex=!0;v.insert(Ka);var La=new mxCell("",new mxGeometry(.18*u,60,.14*u,10),"shape=line;strokeColor=#33B5E5;");La.vertex=!0;v.insert(La);var gb=new mxCell("",new mxGeometry(.68*u,60,.14*u,10),"shape=line;strokeColor=#33B5E5;");gb.vertex=!0;v.insert(gb);var Bb=new mxCell("",new mxGeometry(.375* u,65,.2*u,15),"strokeColor=none;fillColor=none;");Bb.vertex=!0;v.insert(Bb);Bb.value=c(e.Label_4);Bb.style+=l(e.Label_4);var nb=null;"AndroidTimeDialog"==w.Class&&(nb=new mxCell("",new mxGeometry(.3*u,65,.1*u,15),"strokeColor=none;fillColor=none;"),nb.vertex=!0,v.insert(nb),nb.value=c(e.Label_Colon),nb.style+=l(e.Label_Colon));var Cb=new mxCell("",new mxGeometry(.125*u,65,.2*u,15),"strokeColor=none;fillColor=none;");Cb.vertex=!0;v.insert(Cb);Cb.value=c(e.Label_3);Cb.style+=l(e.Label_3);var Db=new mxCell("", new mxGeometry(.625*u,65,.2*u,15),"strokeColor=none;fillColor=none;");Db.vertex=!0;v.insert(Db);Db.value=c(e.Label_5);Db.style+=l(e.Label_5);var wb=new mxCell("",new mxGeometry(.43*u,75,.14*u,10),"shape=line;strokeColor=#33B5E5;");wb.vertex=!0;v.insert(wb);var Sb=new mxCell("",new mxGeometry(.18*u,75,.14*u,10),"shape=line;strokeColor=#33B5E5;");Sb.vertex=!0;v.insert(Sb);var kc=new mxCell("",new mxGeometry(.68*u,75,.14*u,10),"shape=line;strokeColor=#33B5E5;");kc.vertex=!0;v.insert(kc);var Eb=new mxCell("", new mxGeometry(.375*u,80,.2*u,15),"strokeColor=none;fillColor=none;");Eb.vertex=!0;v.insert(Eb);Eb.value=c(e.Label_7);Eb.style+=l(e.Label_7);var Fb=new mxCell("",new mxGeometry(.125*u,80,.2*u,15),"strokeColor=none;fillColor=none;");Fb.vertex=!0;v.insert(Fb);Fb.value=c(e.Label_6);Fb.style+=l(e.Label_6);var Gb=new mxCell("",new mxGeometry(.625*u,80,.2*u,15),"strokeColor=none;fillColor=none;");Gb.vertex=!0;v.insert(Gb);Gb.value=c(e.Label_8);Gb.style+=l(e.Label_8);var ob=new mxCell("",new mxGeometry(.5* u-4,99,8,4),"shape=triangle;direction=south;");ob.vertex=!0;v.insert(ob);var pb=new mxCell("",new mxGeometry(.25*u-4,99,8,4),"shape=triangle;direction=south;");pb.vertex=!0;v.insert(pb);var qb=new mxCell("",new mxGeometry(.75*u-4,99,8,4),"shape=triangle;direction=south;");qb.vertex=!0;v.insert(qb);"Dark"==e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",ma.style+="strokeColor=#353535;",na.style+="strokeColor=#353535;",kb.style+="strokeColor=none;fillColor=#7E7E7E;",jb.style+="strokeColor=none;fillColor=#7E7E7E;", lb.style+="strokeColor=none;fillColor=#7E7E7E;",ob.style+="strokeColor=none;fillColor=#7E7E7E;",pb.style+="strokeColor=none;fillColor=#7E7E7E;",qb.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",ma.style+="strokeColor=#E2E2E2;",na.style+="strokeColor=#E2E2E2;",kb.style+="strokeColor=none;fillColor=#939393;",jb.style+="strokeColor=none;fillColor=#939393;",lb.style+="strokeColor=none;fillColor=#939393;",ob.style+="strokeColor=none;fillColor=#939393;", pb.style+="strokeColor=none;fillColor=#939393;",qb.style+="strokeColor=none;fillColor=#939393;");break;case "AndroidListItems":var ta=t,bb=0;if(e.ShowHeader){var bb=8,Hb=new mxCell("",new mxGeometry(0,0,u,bb),"strokeColor=none;fillColor=none;");Hb.vertex=!0;v.insert(Hb);Hb.value=c(e.Header);Hb.style+=l(e.Header);var ta=ta-bb,lc=new mxCell("",new mxGeometry(0,bb-2,u,4),"shape=line;strokeColor=#999999;");lc.vertex=!0;v.insert(lc)}var Ma=parseInt(e.Items);0<Ma&&(ta/=Ma);for(var I=[],ha=[],k=0;k<Ma;k++)I[k]= new mxCell("",new mxGeometry(0,bb+k*ta,u,ta),"strokeColor=none;fillColor=none;"),I[k].vertex=!0,v.insert(I[k]),I[k].value=c(e["Item_"+k]),I[k].style+=l(e["Item_"+k]),0<k&&(ha[k]=new mxCell("",new mxGeometry(0,bb+k*ta-2,u,4),"shape=line;"),ha[k].vertex=!0,v.insert(ha[k]),ha[k].style="Dark"==e.Scheme?ha[k].style+"strokeColor=#ffffff;":ha[k].style+"strokeColor=#D9D9D9;");v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";break;case "AndroidTabs":var Na= parseInt(e.Tabs),Aa=u;0<Na&&(Aa/=Na);for(var ba=[],ha=[],k=0;k<Na;k++)ba[k]=new mxCell("",new mxGeometry(k*Aa,0,Aa,t),"strokeColor=none;fillColor=none;"),ba[k].vertex=!0,v.insert(ba[k]),ba[k].value=c(e["Tab_"+k]),ba[k].style+=l(e["Tab_"+k]),0<k&&(ha[k]=new mxCell("",new mxGeometry(k*Aa-2,.2*t,4,.6*t),"shape=line;direction=north;"),ha[k].vertex=!0,v.insert(ha[k]),ha[k].style="Dark"==e.Scheme?ha[k].style+"strokeColor=#484848;":ha[k].style+"strokeColor=#CCCCCC;");var mc=new mxCell("",new mxGeometry(e.Selected* Aa+2,t-3,Aa-4,3),"strokeColor=none;fillColor=#33B5E5;");mc.vertex=!0;v.insert(mc);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(fa),Math.round(ja+.25*t),Math.round(u),Math.round(.5*t)),"html=1;whiteSpace=wrap;");v.vertex=!0;var Ib=new mxCell("",new mxGeometry(0,0,u*e.BarPosition,Math.round(.5*t)),"strokeColor=none;fillColor=#33B5E5;");Ib.vertex=!0;v.insert(Ib); v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";break;case "AndroidImageBlock":v.style="Dark"==e.Scheme?v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#7E7E7E;fillColor=#111111;":v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#939393;fillColor=#ffffff;";break;case "AndroidTextBlock":v.style="Dark"==e.Scheme?e.ShowBorder?v.style+"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;": e.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":v.style+"fillColor=#ffffff;strokeColor=none;";v.value=c(e.Label);v.style+=l(e.Label);break;case "AndroidActionBar":v.style+="strokeColor=none;";switch(e.BarBackground){case "Blue":v.style+="fillColor=#002E3E;";break;case "Gray":v.style+="fillColor=#DDDDDD;";break;case "Dark Gray":v.style+="fillColor=#474747;";break;case "White":v.style+="fillColor=#ffffff;"}if(e.HighlightShow){var cb=null,cb=e.HighlightTop?new mxCell("",new mxGeometry(0, 0,u,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,t-2,u,2),"strokeColor=none;");cb.vertex=!0;v.insert(cb);switch(e.HighlightColor){case "Blue":cb.style+="fillColor=#33B5E5;";break;case "Dark Gray":cb.style+="fillColor=#B0B0B0;";break;case "White":cb.style+="fillColor=#ffffff;"}}if(e.VlignShow){var rb=new mxCell("",new mxGeometry(20,5,2,t-10),"shape=line;direction=north;");rb.vertex=!0;v.insert(rb);switch(e.VlignColor){case "Blue":rb.style+="strokeColor=#244C5A;";break;case "White":rb.style+= "strokeColor=#ffffff;"}}break;case "AndroidButton":v.value=c(e.Label);v.style+=l(e.Label)+"shape=partialRectangle;left=0;right=0;";v.style="Dark"==e.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";break;case "AndroidTextBox":v.value=c(e.Label);v.style+=l(e.Label);var Jb=new mxCell("",new mxGeometry(2,t-6,u-4,4),"shape=partialRectangle;top=0;fillColor=none;");Jb.vertex=!0;v.insert(Jb);v.style="Dark"==e.Scheme?v.style+"fillColor=#111111;strokeColor=none;": v.style+"fillColor=#ffffff;strokeColor=none;";Jb.style=e.TextFocused?Jb.style+"strokeColor=#33B5E5;":Jb.style+"strokeColor=#A9A9A9;";break;case "AndroidRadioButton":var hb=null;e.Checked&&(hb=new mxCell("",new mxGeometry(.15*u,.15*t,.7*u,.7*t),"shape=ellipse;fillColor=#33B5E5;strokeWidth=0.6;"),hb.vertex=!0,v.insert(hb));"Dark"==e.Scheme?(v.style+="shape=ellipse;strokeWidth=0.6;strokeColor=#272727;",e.Checked?(hb.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"): (v.style+="shape=ellipse;strokeWidth=0.6;fillColor=#ffffff;strokeColor=#5C5C5C;",e.Checked&&(hb.style+="strokeColor=#999999;"));break;case "AndroidCheckBox":var bc=null;e.Checked&&(bc=new mxCell("",new mxGeometry(.25*u,.05*-t,u,.8*t),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),bc.vertex=!0,v.insert(bc));v.style="Dark"==e.Scheme?v.style+"strokeWidth=0.6;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=0.6;strokeColor=#5C5C5C;fillColor=#ffffff;";break;case "AndroidToggle":v.style= "Dark"==e.Scheme?e.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":e.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+e.BarPosition+";fillColor=#33b5e5;";break;case "iOSSegmentedControl":Na=parseInt(e.Tabs);Aa=u;v.style+="strokeColor=none;fillColor=none;"; 0<Na&&(Aa/=Na);ba=[];ha=[];for(k=0;k<Na;k++)ba[k]=new mxCell("",new mxGeometry(k*Aa,0,Aa,t),"strokeColor="+e.FillColor+";"),ba[k].vertex=!0,v.insert(ba[k]),ba[k].value=c(e["Tab_"+k]),ba[k].style+=l(e["Tab_"+k]),ba[k].style=e.Selected==k?ba[k].style+A(e,n):ba[k].style+"fillColor=none;";break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+e.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*e.BarPosition+";";break;case "iOSProgressBar":v=new mxCell("",new mxGeometry(Math.round(fa), Math.round(ja+.25*t),Math.round(u),Math.round(.5*t)),"html=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");v.vertex=!0;Ib=new mxCell("",new mxGeometry(0,0,u*e.BarPosition,Math.round(.5*t)),"strokeColor=none;"+A(e,n));Ib.vertex=!0;v.insert(Ib);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;"+A(e,n)+"strokeColor=#D6D6D6;";break;case "iOSStatusBar":v.style+="shape=mxgraph.ios7ui.appBar;"+A(e,n)+"strokeColor=#000000;";var R=new mxCell(c(e.Text),new mxGeometry(.35*u,0, .3*u,t),"strokeColor=none;fillColor=none;");R.vertex=!0;v.insert(R);R.style+=l(e.Text);var va=new mxCell(c(e.Carrier),new mxGeometry(.09*u,0,.2*u,t),"strokeColor=none;fillColor=none;");va.vertex=!0;v.insert(va);va.style+=l(e.Carrier);break;case "iOSSearchBar":v.style+="strokeColor=none;"+A(e,n)+z(e,n)+aa(e,n,v)+l(e.Search);v.value=c(e.Search);var U=new mxCell("",new mxGeometry(.3*u,.3*t,.4*t,.4*t),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");U.vertex=!0;v.insert(U); break;case "iOSNavBar":v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+A(e,n)+z(e,n)+l(e.Title);v.value=c(e.Title);R=new mxCell(c(e.LeftText),new mxGeometry(.03*u,0,.3*u,t),"strokeColor=none;fillColor=none;");R.vertex=!0;v.insert(R);R.style+=l(e.LeftText);va=new mxCell(c(e.RightText),new mxGeometry(.65*u,0,.3*u,t),"strokeColor=none;fillColor=none;");va.vertex=!0;v.insert(va);va.style+=l(e.RightText);U=new mxCell("",new mxGeometry(.02*u,.2*t,.3*t,.5*t),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;"); U.vertex=!0;v.insert(U);break;case "iOSTabs":Na=parseInt(e.Tabs);Aa=u;v.style+="shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;"+A(e,n)+z(e,n);0<Na&&(Aa/=Na);ba=[];ha=[];for(k=0;k<Na;k++)ba[k]=new mxCell("",new mxGeometry(k*Aa,0,Aa,t),"strokeColor=none;"),ba[k].vertex=!0,v.insert(ba[k]),ba[k].value=c(e["Tab_"+k]),ba[k].style+=h(e["Tab_"+k]),ba[k].style+=f(e["Tab_"+k])+b(e["Tab_"+k])+a(e["Tab_"+k])+d(e["Tab_"+k])+g(e["Tab_"+k])+p(e["Tab_"+k])+D(e["Tab_"+k])+C(e["Tab_"+k]),ba[k].style+= "verticalAlign=bottom;",ba[k].style=e.Selected==k?ba[k].style+"fillColor=#BBBBBB;":ba[k].style+"fillColor=none;";break;case "iOSDatePicker":var Oa=new mxCell("",new mxGeometry(0,0,.5*u,.2*t),"strokeColor=none;fillColor=none;");Oa.vertex=!0;v.insert(Oa);Oa.value=c(e.Option11);Oa.style+=l(e.Option11);var Pa=new mxCell("",new mxGeometry(.5*u,0,.15*u,.2*t),"strokeColor=none;fillColor=none;");Pa.vertex=!0;v.insert(Pa);Pa.value=c(e.Option21);Pa.style+=l(e.Option21);var Qa=new mxCell("",new mxGeometry(.65* u,0,.15*u,.2*t),"strokeColor=none;fillColor=none;");Qa.vertex=!0;v.insert(Qa);Qa.value=c(e.Option31);Qa.style+=l(e.Option31);var Ra=new mxCell("",new mxGeometry(0,.2*t,.5*u,.2*t),"strokeColor=none;fillColor=none;");Ra.vertex=!0;v.insert(Ra);Ra.value=c(e.Option12);Ra.style+=l(e.Option12);var Sa=new mxCell("",new mxGeometry(.5*u,.2*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Sa.vertex=!0;v.insert(Sa);Sa.value=c(e.Option22);Sa.style+=l(e.Option22);var Ta=new mxCell("",new mxGeometry(.65*u,.2*t, .15*u,.2*t),"strokeColor=none;fillColor=none;");Ta.vertex=!0;v.insert(Ta);Ta.value=c(e.Option32);Ta.style+=l(e.Option32);var oa=new mxCell("",new mxGeometry(0,.4*t,.5*u,.2*t),"strokeColor=none;fillColor=none;");oa.vertex=!0;v.insert(oa);oa.value=c(e.Option13);oa.style+=l(e.Option13);var pa=new mxCell("",new mxGeometry(.5*u,.4*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");pa.vertex=!0;v.insert(pa);pa.value=c(e.Option23);pa.style+=l(e.Option23);var Ua=new mxCell("",new mxGeometry(.65*u,.4*t,.15* u,.2*t),"strokeColor=none;fillColor=none;");Ua.vertex=!0;v.insert(Ua);Ua.value=c(e.Option33);Ua.style+=l(e.Option33);var qa=new mxCell("",new mxGeometry(.8*u,.4*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");qa.vertex=!0;v.insert(qa);qa.value=c(e.Option43);qa.style+=l(e.Option43);var ra=new mxCell("",new mxGeometry(0,.6*t,.5*u,.2*t),"strokeColor=none;fillColor=none;");ra.vertex=!0;v.insert(ra);ra.value=c(e.Option14);ra.style+=l(e.Option14);var Va=new mxCell("",new mxGeometry(.5*u,.6*t,.15*u,.2* t),"strokeColor=none;fillColor=none;");Va.vertex=!0;v.insert(Va);Va.value=c(e.Option24);Va.style+=l(e.Option24);var Wa=new mxCell("",new mxGeometry(.65*u,.6*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Wa.vertex=!0;v.insert(Wa);Wa.value=c(e.Option34);Wa.style+=l(e.Option34);var Xa=new mxCell("",new mxGeometry(.8*u,.6*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Xa.vertex=!0;v.insert(Xa);Xa.value=c(e.Option44);Xa.style+=l(e.Option44);var sa=new mxCell("",new mxGeometry(0,.8*t,.5*u,.2*t), "strokeColor=none;fillColor=none;");sa.vertex=!0;v.insert(sa);sa.value=c(e.Option15);sa.style+=l(e.Option15);var Ya=new mxCell("",new mxGeometry(.5*u,.8*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Ya.vertex=!0;v.insert(Ya);Ya.value=c(e.Option25);Ya.style+=l(e.Option25);var Za=new mxCell("",new mxGeometry(.65*u,.8*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Za.vertex=!0;v.insert(Za);Za.value=c(e.Option35);Za.style+=l(e.Option35);Ka=new mxCell("",new mxGeometry(0,.4*t-2,u,4),"shape=line;strokeColor=#888888;"); Ka.vertex=!0;v.insert(Ka);La=new mxCell("",new mxGeometry(0,.6*t-2,u,4),"shape=line;strokeColor=#888888;");La.vertex=!0;v.insert(La);v.style+=A(e,n)+z(e,n)+"strokeColor=none;";break;case "iOSTimePicker":Oa=new mxCell("",new mxGeometry(0,0,.25*u,.2*t),"strokeColor=none;fillColor=none;");Oa.vertex=!0;v.insert(Oa);Oa.value=c(e.Option11);Oa.style+=l(e.Option11);Pa=new mxCell("",new mxGeometry(.25*u,0,.3*u,.2*t),"strokeColor=none;fillColor=none;");Pa.vertex=!0;v.insert(Pa);Pa.value=c(e.Option21);Pa.style+= l(e.Option21);Ra=new mxCell("",new mxGeometry(0,.2*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");Ra.vertex=!0;v.insert(Ra);Ra.value=c(e.Option12);Ra.style+=l(e.Option12);Sa=new mxCell("",new mxGeometry(.25*u,.2*t,.3*u,.2*t),"strokeColor=none;fillColor=none;");Sa.vertex=!0;v.insert(Sa);Sa.value=c(e.Option22);Sa.style+=l(e.Option22);oa=new mxCell("",new mxGeometry(0,.4*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");oa.vertex=!0;v.insert(oa);oa.value=c(e.Option13);oa.style+=l(e.Option13);pa=new mxCell("", new mxGeometry(.25*u,.4*t,.3*u,.2*t),"strokeColor=none;fillColor=none;");pa.vertex=!0;v.insert(pa);pa.value=c(e.Option23);pa.style+=l(e.Option23);qa=new mxCell("",new mxGeometry(.7*u,.4*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");qa.vertex=!0;v.insert(qa);qa.value=c(e.Option33);qa.style+=l(e.Option33);ra=new mxCell("",new mxGeometry(0,.6*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");ra.vertex=!0;v.insert(ra);ra.value=c(e.Option14);ra.style+=l(e.Option14);Va=new mxCell("",new mxGeometry(.25* u,.6*t,.3*u,.2*t),"strokeColor=none;fillColor=none;");Va.vertex=!0;v.insert(Va);Va.value=c(e.Option24);Va.style+=l(e.Option24);Xa=new mxCell("",new mxGeometry(.7*u,.6*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Xa.vertex=!0;v.insert(Xa);Xa.value=c(e.Option34);Xa.style+=l(e.Option34);sa=new mxCell("",new mxGeometry(0,.8*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");sa.vertex=!0;v.insert(sa);sa.value=c(e.Option15);sa.style+=l(e.Option15);Ya=new mxCell("",new mxGeometry(.25*u,.8*t,.3*u,.2* t),"strokeColor=none;fillColor=none;");Ya.vertex=!0;v.insert(Ya);Ya.value=c(e.Option25);Ya.style+=l(e.Option25);Ka=new mxCell("",new mxGeometry(0,.4*t-2,u,4),"shape=line;strokeColor=#888888;");Ka.vertex=!0;v.insert(Ka);La=new mxCell("",new mxGeometry(0,.6*t-2,u,4),"shape=line;strokeColor=#888888;");La.vertex=!0;v.insert(La);v.style+=A(e,n)+z(e,n)+"strokeColor=none;";break;case "iOSCountdownPicker":Qa=new mxCell("",new mxGeometry(.45*u,0,.2*u,.2*t),"strokeColor=none;fillColor=none;");Qa.vertex=!0; v.insert(Qa);Qa.value=c(e.Option31);Qa.style+=l(e.Option31);Ta=new mxCell("",new mxGeometry(.45*u,.2*t,.2*u,.2*t),"strokeColor=none;fillColor=none;");Ta.vertex=!0;v.insert(Ta);Ta.value=c(e.Option32);Ta.style+=l(e.Option32);oa=new mxCell("",new mxGeometry(0,.4*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");oa.vertex=!0;v.insert(oa);oa.value=c(e.Option13);oa.style+=l(e.Option13);pa=new mxCell("",new mxGeometry(.2*u,.4*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");pa.vertex=!0;v.insert(pa);pa.value= c(e.Option23);pa.style+=l(e.Option23);Ua=new mxCell("",new mxGeometry(.45*u,.4*t,.2*u,.2*t),"strokeColor=none;fillColor=none;");Ua.vertex=!0;v.insert(Ua);Ua.value=c(e.Option33);Ua.style+=l(e.Option33);qa=new mxCell("",new mxGeometry(.6*u,.4*t,.2*u,.2*t),"strokeColor=none;fillColor=none;");qa.vertex=!0;v.insert(qa);qa.value=c(e.Option43);qa.style+=l(e.Option43);ra=new mxCell("",new mxGeometry(0,.6*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");ra.vertex=!0;v.insert(ra);ra.value=c(e.Option14);ra.style+= l(e.Option14);Wa=new mxCell("",new mxGeometry(.45*u,.6*t,.2*u,.2*t),"strokeColor=none;fillColor=none;");Wa.vertex=!0;v.insert(Wa);Wa.value=c(e.Option34);Wa.style+=l(e.Option34);sa=new mxCell("",new mxGeometry(0,.8*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");sa.vertex=!0;v.insert(sa);sa.value=c(e.Option15);sa.style+=l(e.Option15);Za=new mxCell("",new mxGeometry(.45*u,.8*t,.2*u,.2*t),"strokeColor=none;fillColor=none;");Za.vertex=!0;v.insert(Za);Za.value=c(e.Option35);Za.style+=l(e.Option35);Ka= new mxCell("",new mxGeometry(0,.4*t-2,u,4),"shape=line;strokeColor=#888888;");Ka.vertex=!0;v.insert(Ka);La=new mxCell("",new mxGeometry(0,.6*t-2,u,4),"shape=line;strokeColor=#888888;");La.vertex=!0;v.insert(La);v.style+=A(e,n)+z(e,n)+"strokeColor=none;";break;case "iOSBasicCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.6*e.SeparatorInset+";";v.style+=h(e.text)+f(e.text)+b(e.text)+y(e.text);v.value=c(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":U= new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");U.vertex=!0;v.insert(U);break;case "DetailDisclosure":U=new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");U.vertex=!0;v.insert(U);var ga=new mxCell("",new mxGeometry(.79*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ga.vertex=!0;v.insert(ga);break;case "DetailIndicator":ga=new mxCell("",new mxGeometry(.87* u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ga.vertex=!0;v.insert(ga);break;case "CheckMark":U=new mxCell("",new mxGeometry(.89*u,.37*t,.4*t,.26*t),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),U.vertex=!0,v.insert(U)}break;case "iOSSubtitleCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=top;spacingLeft="+.6*e.SeparatorInset+";";v.style+=h(e.subtext)+ f(e.subtext)+b(e.subtext);v.value=c(e.subtext);var ia=new mxCell("",new mxGeometry(0,.4*t,u,.6*t),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+.6*e.SeparatorInset+";");ia.vertex=!0;v.insert(ia);ia.style+=h(e.text)+f(e.text)+b(e.text);ia.value=c(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":U=new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");U.vertex=!0;v.insert(U);break;case "DetailDisclosure":U= new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");U.vertex=!0;v.insert(U);ga=new mxCell("",new mxGeometry(.79*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ga.vertex=!0;v.insert(ga);break;case "DetailIndicator":ga=new mxCell("",new mxGeometry(.87*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ga.vertex=!0;v.insert(ga);break;case "CheckMark":U=new mxCell("", new mxGeometry(.89*u,.37*t,.4*t,.26*t),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),U.vertex=!0,v.insert(U)}break;case "iOSRightDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=middle;spacingLeft="+.6*e.SeparatorInset+";";v.style+=h(e.subtext)+f(e.subtext)+b(e.subtext);v.value=c(e.subtext);ia=null;switch(e.AccessoryIndicatorType){case "Disclosure":U=new mxCell("",new mxGeometry(.91*u,.35* t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");U.vertex=!0;v.insert(U);ia=new mxCell("",new mxGeometry(.55*u,0,.3*u,t),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":U=new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");U.vertex=!0;v.insert(U);ga=new mxCell("",new mxGeometry(.79*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ga.vertex=!0; v.insert(ga);ia=new mxCell("",new mxGeometry(.45*u,0,.3*u,t),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":ga=new mxCell("",new mxGeometry(.87*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ga.vertex=!0;v.insert(ga);ia=new mxCell("",new mxGeometry(.52*u,0,.3*u,t),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "CheckMark":U=new mxCell("",new mxGeometry(.89*u,.37*t,.4*t,.26*t),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"); U.vertex=!0;v.insert(U);ia=new mxCell("",new mxGeometry(.55*u,0,.3*u,t),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:ia=new mxCell("",new mxGeometry(.65*u,0,.3*u,t),"fillColor=none;strokeColor=none;spacing=0;align=right;")}ia.vertex=!0;v.insert(ia);ia.style+=h(e.text)+f(e.text)+b(e.text);ia.value=c(e.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";var Ga=new mxCell("",new mxGeometry(0,0,.25* u,t),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");Ga.vertex=!0;v.insert(Ga);Ga.style+=h(e.subtext)+f(e.subtext)+b(e.subtext);Ga.value=c(e.subtext);ia=new mxCell("",new mxGeometry(.25*u,0,.5*u,t),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");ia.vertex=!0;v.insert(ia);ia.style+=h(e.text)+f(e.text)+b(e.text);ia.value=c(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":U=new mxCell("",new mxGeometry(.91* u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");U.vertex=!0;v.insert(U);break;case "DetailDisclosure":U=new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");U.vertex=!0;v.insert(U);ga=new mxCell("",new mxGeometry(.79*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ga.vertex=!0;v.insert(ga);break;case "DetailIndicator":ga=new mxCell("",new mxGeometry(.87*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;"); ga.vertex=!0;v.insert(ga);break;case "CheckMark":U=new mxCell("",new mxGeometry(.89*u,.37*t,.4*t,.26*t),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),U.vertex=!0,v.insert(U)}break;case "iOSTableGroupedSectionBreak":v.style+="shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";R=new mxCell("",new mxGeometry(0,0,u,.4*t),"fillColor=none;strokeColor=none;spacing=10;align=left;");R.vertex=!0;v.insert(R);R.style+=h(e.text)+f(e.text)+b(e.text);R.value=c(e.text); va=new mxCell("",new mxGeometry(0,.6*t,u,.4*t),"fillColor=none;strokeColor=none;spacing=10;align=left;");va.vertex=!0;v.insert(va);va.style+=h(e["bottom-text"])+f(e["bottom-text"])+b(e["bottom-text"]);va.value=c(e["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";v.style+=h(e.text)+f(e.text)+b(e.text);v.value=c(e.text);break;case "SMPage":if(e.Group){v.style+="strokeColor=none;fillColor=none;";var r=new mxCell("", new mxGeometry(0,0,.9*u,.9*t),"part=1;");r.vertex=!0;v.insert(r);r.style+=q(e,n)+A(e,n)+z(e,n)+E(e)+B(e);var x=new mxCell("",new mxGeometry(.1*u,.1*t,.9*u,.9*t),"part=1;");x.vertex=!0;v.insert(x);x.style+=q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+l(e);x.value=c(e.Text);e.Future&&(r.style+="dashed=1;",x.style+="dashed=1;")}else e.Future&&(v.style+="dashed=1;"),v.style+=q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+l(e),v.value=c(e.Text);break;case "SMHome":case "SMPrint":case "SMSearch":case "SMSettings":case "SMSitemap":case "SMSuccess":case "SMVideo":case "SMAudio":case "SMCalendar":case "SMChart":case "SMCloud":case "SMDocument":case "SMForm":case "SMGame":case "SMUpload":v.style+= q(e,n)+A(e,n)+z(e,n)+E(e)+B(e);r=null;switch(w.Class){case "SMHome":r=new mxCell("",new mxGeometry(.5*u-.4*t,.1*t,.8*t,.8*t),"part=1;shape=mxgraph.office.concepts.home;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMPrint":r=new mxCell("",new mxGeometry(.5*u-.4*t,.19*t,.8*t,.62*t),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":r=new mxCell("",new mxGeometry(.5*u-.4*t,.1*t,.8*t,.8*t),"part=1;shape=mxgraph.office.concepts.search;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;"); break;case "SMSettings":r=new mxCell("",new mxGeometry(.5*u-.35*t,.15*t,.7*t,.7*t),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSitemap":r=new mxCell("",new mxGeometry(.5*u-.35*t,.2*t,.7*t,.6*t),"part=1;shape=mxgraph.office.sites.site_collection;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSuccess":r=new mxCell("",new mxGeometry(.5*u-.3*t,.25*t,.6*t,.5*t),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;"); break;case "SMVideo":r=new mxCell("",new mxGeometry(.5*u-.4*t,.2*t,.8*t,.6*t),"part=1;shape=mxgraph.office.concepts.video_play;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMAudio":r=new mxCell("",new mxGeometry(.5*u-.3*t,.2*t,.6*t,.6*t),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":r=new mxCell("",new mxGeometry(.5*u-.4*t,.15*t,.8*t,.7*t),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;"); break;case "SMChart":var H=A(e,n),H=""==H?"#ffffff;":H.replace("fillColor=",""),r=new mxCell("",new mxGeometry(.5*u-.35*t,.15*t,.7*t,.7*t),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+H);break;case "SMCloud":r=new mxCell("",new mxGeometry(.5*u-.4*t,.27*t,.8*t,.46*t),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":r=new mxCell("",new mxGeometry(.5*u-.25*t,.15*t,.5*t,.7*t),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;"); break;case "SMForm":r=new mxCell("",new mxGeometry(.5*u-.4*t,.15*t,.8*t,.7*t),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMGame":r=new mxCell("",new mxGeometry(.5*u-.4*t,.2*t,.8*t,.6*t),"part=1;shape=mxgraph.mscae.general.game_controller;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMUpload":r=new mxCell("",new mxGeometry(.5*u-.4*t,.2*t,.8*t,.6*t),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}r.vertex= !0;v.insert(r);r.style+=l(e);r.value=c(e.Text);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";r=new mxCell("",new mxGeometry(.1*u,0,.9*u,.9*t),"part=1;");r.vertex=!0;v.insert(r);r.style+=q(e,n)+A(e,n)+z(e,n)+E(e)+B(e);x=new mxCell("",new mxGeometry(0,.1*t,.9*u,.9*t),"part=1;");x.vertex=!0;v.insert(x);x.style+=q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+l(e.Text);x.value=c(e.Text);break;case "UMLConstraintBlock":var Vb=new mxCell("",new mxGeometry(0,0,.25*t,t),"shape=curlyBracket;rounded=1;"); Vb.vertex=!0;v.insert(Vb);var Wb=new mxCell("",new mxGeometry(u-.25*t,0,.25*t,t),"shape=curlyBracket;rounded=1;flipH=1;");Wb.vertex=!0;v.insert(Wb);za=new mxCell("",new mxGeometry(.25*t,0,u-.5*t,t),"strokeColor=none;fillColor=none;");za.vertex=!0;za.value=c(e);v.insert(za);v.style="strokeColor=none;fillColor=none;";v.style+=P(e,n,v);Vb.style+=q(e,n)+z(e,n)+E(e)+F(e)+B(e);Wb.style+=q(e,n)+z(e,n)+E(e)+F(e)+B(e);za.style+=h(e)+f(e)+b(e)+a(e)+d(e)+g(e)+p(e)+D(e)+C(e)+y(e);break;case "UMLTextBlock":v.style+= "strokeColor=none;"+z(e,n)+E(e)+F(e)+B(e)+l(e.Text);v.value=c(e.Text);break;case "BPMNActivity":switch(e.bpmnActivityType){case 1:v.style+=A(e,n)+q(e,n)+z(e,n)+E(e)+F(e)+B(e)+l(e.Text);v.value=c(e.Text);break;case 2:v.style+="shape=ext;double=1;"+A(e,n)+q(e,n)+z(e,n)+E(e)+F(e)+B(e)+l(e.Text);v.value=c(e.Text);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 1;"+A(e,n)+q(e,n)+z(e,n)+E(e)+B(e)+l(e.Text);v.value=c(e.Text);break;case 4:v.style+="shape=ext;strokeWidth=2;"+A(e,n)+q(e,n)+z(e,n)+E(e)+ F(e)+l(e.Text),v.value=c(e.Text)}if(0!=e.bpmnTaskType){switch(e.bpmnTaskType){case 1:r=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");r.geometry.offset=new mxPoint(4,7);break;case 2:r=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");r.geometry.offset=new mxPoint(4,7);break;case 3:r=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");r.geometry.offset=new mxPoint(4,5);break;case 4:r=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;"); r.geometry.offset=new mxPoint(4,7);break;case 5:r=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");r.geometry.offset=new mxPoint(4,7);break;case 6:r=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");r.geometry.offset=new mxPoint(4,5);break;case 7:r=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),r.geometry.offset=new mxPoint(4,5)}if(1==e.bpmnTaskType){var Kb=A(e,n),H=q(e,n),H=H.replace("strokeColor","fillColor"), Kb=Kb.replace("fillColor","strokeColor");""==H&&(H="fillColor=#000000;");""==Kb&&(Kb="strokeColor=#ffffff;");r.style+=Kb+H+"part=1;"}else r.style+=A(e,n)+q(e,n)+"part=1;";r.geometry.relative=!0;r.vertex=!0;v.insert(r)}var Lb=0;0!=e.bpmnActivityMarker1&&Lb++;0!=e.bpmnActivityMarker2&&Lb++;var wa=0;1==Lb?wa=-7.5:2==Lb&&(wa=-19);if(0!=e.bpmnActivityMarker1){switch(e.bpmnActivityMarker1){case 1:r=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");r.geometry.offset=new mxPoint(wa,-20);r.style+= A(e,n)+q(e,n);break;case 2:r=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");r.geometry.offset=new mxPoint(wa,-20);r.style+=A(e,n)+q(e,n);break;case 3:r=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");r.geometry.offset=new mxPoint(wa,-20);r.style+=A(e,n)+q(e,n);break;case 4:r=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");r.geometry.offset=new mxPoint(wa,-20);r.style+=A(e,n)+q(e,n);break;case 5:r=new mxCell("", new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");r.geometry.offset=new mxPoint(wa,-17);H=q(e,n);H=H.replace("strokeColor","fillColor");""==H&&(H="fillColor=#000000;");r.style+=H;break;case 6:r=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),r.geometry.offset=new mxPoint(wa,-18),r.style+=A(e,n)+q(e,n)}r.geometry.relative=!0;r.vertex=!0;v.insert(r)}2==Lb&&(wa=5);if(0!=e.bpmnActivityMarker2){switch(e.bpmnActivityMarker2){case 1:r= new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");r.geometry.offset=new mxPoint(wa,-20);r.style+=A(e,n)+q(e,n);break;case 2:r=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");r.geometry.offset=new mxPoint(wa,-20);r.style+=A(e,n)+q(e,n);break;case 3:r=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");r.geometry.offset=new mxPoint(wa,-20);r.style+=A(e,n)+q(e,n);break;case 4:r=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;"); r.geometry.offset=new mxPoint(wa,-20);r.style+=A(e,n)+q(e,n);break;case 5:r=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");r.geometry.offset=new mxPoint(wa,-17);H=q(e,n);H=H.replace("strokeColor","fillColor");""==H&&(H="fillColor=#000000;");r.style+=H;break;case 6:r=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),r.geometry.offset=new mxPoint(wa,-18),r.style+=A(e,n)+q(e,n)}r.geometry.relative=!0;r.vertex=!0; v.insert(r)}break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;"+A(e,n)+q(e,n)+z(e,n)+E(e)+F(e)+B(e)+h(e)+f(e)+b(e)+a(e)+d(e)+g(e)+p(e)+D(e)+C(e);v.value=c(e.Text);if(1==e.bpmnDashed)switch(e.bpmnEventGroup){case 0:v.style+="outline=eventNonint;";break;case 1:v.style+="outline=boundNonint;";break;case 2:v.style+="outline=end;"}else switch(e.bpmnEventGroup){case 0:v.style+="outline=standard;";break;case 1:v.style+="outline=throwing;";break;case 2:v.style+= "outline=end;"}switch(e.bpmnEventType){case 1:v.style+="symbol=message;";break;case 2:v.style+="symbol=timer;";break;case 3:v.style+="symbol=escalation;";break;case 4:v.style+="symbol=conditional;";break;case 5:v.style+="symbol=link;";break;case 6:v.style+="symbol=error;";break;case 7:v.style+="symbol=cancel;";break;case 8:v.style+="symbol=compensation;";break;case 9:v.style+="symbol=signal;";break;case 10:v.style+="symbol=multiple;";break;case 11:v.style+="symbol=parallelMultiple;";break;case 12:v.style+= "symbol=terminate;"}break;case "BPMNConversation":v.style+="shape=hexagon;perimeter=hexagonPerimeter2;"+A(e,n)+q(e,n)+z(e,n)+E(e)+F(e)+l(e);v.value=c(e.Text);v.style=0==e.bpmnConversationType?v.style+B(e):v.style+"strokeWidth=2;";e.bpmnIsSubConversation&&(r=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),r.geometry.offset=new mxPoint(-6,-17),r.style+=A(e,n)+q(e,n),r.geometry.relative=!0,r.vertex=!0,v.insert(r));break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;"+ A(e,n)+q(e,n)+z(e,n)+E(e)+F(e)+l(e);switch(e.bpmnGatewayType){case 0:v.style+="outline=none;symbol=general;";break;case 1:v.style+="outline=none;symbol=exclusiveGw;";break;case 2:v.style+="outline=catching;symbol=multiple;";break;case 3:v.style+="outline=none;symbol=parallelGw;";break;case 4:v.style+="outline=end;symbol=general;";break;case 5:v.style+="outline=standard;symbol=multiple;";break;case 6:v.style+="outline=none;symbol=complexGw;";break;case 7:v.style+="outline=standard;symbol=parallelMultiple;"}break; case "BPMNData":v.style+="shape=note;size=14;"+A(e,n)+q(e,n)+z(e,n)+E(e)+F(e)+l(e);switch(e.bpmnDataType){case 1:r=new mxCell("",new mxGeometry(.5,1,12,10),"shape=parallelMarker;part=1;");r.geometry.offset=new mxPoint(-6,-15);r.style+=A(e,n)+q(e,n);r.geometry.relative=!0;r.vertex=!0;v.insert(r);break;case 2:r=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");r.geometry.offset=new mxPoint(3,3);r.style+=A(e,n)+q(e,n);r.geometry.relative=!0;r.vertex=!0; v.insert(r);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";R=new mxCell("",new mxGeometry(0,0,u,20),"strokeColor=none;fillColor=none;");R.geometry.offset=new mxPoint(0,14);R.geometry.relative=!0;R.vertex=!0;v.insert(R);R.value=c(e.Text);R.style+=l(e);break;case 3:r=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),r.geometry.offset=new mxPoint(3,3),r.style+=q(e,n),r.geometry.relative=!0,r.vertex=!0,v.insert(r),H=q(e,n),H=H.replace("strokeColor", "fillColor"),""==H&&(H="fillColor=#000000;"),r.style+=H,R=new mxCell("",new mxGeometry(0,0,u,20),"strokeColor=none;fillColor=none;"),R.geometry.offset=new mxPoint(0,14),R.geometry.relative=!0,R.vertex=!0,v.insert(R),R.value=c(e.Text),R.style+=l(e)}break;case "BPMNBlackPool":v.style+=A(e,n)+q(e,n)+z(e,n)+E(e)+F(e)+l(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(0,0,u,t),"fillColor=#000000;strokeColor=none;opacity=30;");r.vertex=!0;v.insert(r);break;case "DFDExternalEntityBlock":v.style+="strokeColor=none;fillColor=none;"; r=new mxCell("",new mxGeometry(0,0,.95*u,.95*t),"part=1;");r.vertex=!0;v.insert(r);r.style+=q(e,n)+A(e,n)+z(e,n)+E(e)+B(e);x=new mxCell("",new mxGeometry(.05*u,.05*t,.95*u,.95*t),"part=1;");x.vertex=!0;v.insert(x);x.style+=q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+l(e.Text);x.value=c(e.Text);break;case "GSDFDDataStoreBlock":v.style+="shape=partialRectangle;right=0;"+q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+l(e.Text);v.value=c(e.Text);r=new mxCell("",new mxGeometry(0,0,.2*u,t),"part=1;");r.vertex=!0;v.insert(r);r.style+= q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+l(e.Number);r.value=c(e.Number);break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";"VSMDedicatedProcessBlock"==w.Class?v.value=c(e.Text):"VSMProductionControlBlock"==w.Class&&(v.value=c(e.Resources));v.style+=q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+h(e)+f(e)+b(e)+a(e)+d(e)+g(e)+D(e)+C(e)+y(e);"VSMDedicatedProcessBlock"==w.Class&&(r=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"), r.geometry.relative=!0,r.geometry.offset=new mxPoint(4,-13),r.vertex=!0,v.insert(r),r.style+=q(e,n)+A(e,n)+z(e,n)+E(e)+B(e));R=new mxCell("",new mxGeometry(0,0,u,15),"strokeColor=none;fillColor=none;part=1;");R.vertex=!0;v.insert(R);R.value=c(e.Title);R.style+=l(e.Title);break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=c(e.Text);v.style+=q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+h(e)+f(e)+b(e)+a(e)+d(e)+g(e)+D(e)+p(e)+ C(e);R=new mxCell("",new mxGeometry(.1*u,.3*t,.8*u,.6*t),"part=1;");R.vertex=!0;v.insert(R);R.value=c(e.Resource);R.style+=q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+l(e.Resource);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";v.style+=q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+h(e)+f(e)+b(e)+a(e)+d(e)+g(e)+D(e)+C(e);v.value=c(e.Text);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";var ta=t,Ma=parseInt(e.Cells), M=q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+"part=1;";0<Ma&&(ta/=Ma);I=[];ha=[];for(k=1;k<=Ma;k++)I[k]=new mxCell("",new mxGeometry(0,(k-1)*ta,u,ta),M),I[k].vertex=!0,v.insert(I[k]),I[k].value=c(e["cell_"+k]),I[k].style+=l(e["cell_"+k]);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;"+q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+h(e)+f(e)+b(e)+a(e)+d(e)+g(e)+p(e)+D(e)+C(e);v.value=c(e.Text);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;"+ A(e,n);ta=t;Ma=parseInt(e.Cells);M=q(e,n)+z(e,n)+B(e)+"part=1;fillColor=none;";0<Ma&&(ta/=Ma);I=[];Ga=[];for(k=1;k<=Ma;k++)I[k]=new mxCell("",new mxGeometry(.5*u,(k-1)*ta,.5*u,ta),"shape=partialRectangle;left=0;"+M),I[k].vertex=!0,v.insert(I[k]),Ga[k]=new mxCell("",new mxGeometry(0,(k-1)*ta,u,ta),"strokeColor=none;fillColor=none;part=1;"),Ga[k].vertex=!0,v.insert(Ga[k]),Ga[k].value=c(e["cell_"+k]),Ga[k].style+=l(e["cell_"+k]);break;case "VSMFIFOLaneBlock":v.style+="shape=mxgraph.lean_mapping.fifo_sequence_flow;fontStyle=0;fontSize=18"; v.value="FIFO";break;case "VSMGoSeeProductionBlock":v.style+="shape=ellipse;"+q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+l(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(.17*u,.2*t,13,6),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;");r.vertex=!0;v.insert(r);r.style+=q(e,n)+A(e,n)+z(e,n)+B(e);break;case "VSMProductionKanbanBatchBlock":v.style+="strokeColor=none;fillColor=none;";M="shape=card;size=18;flipH=1;part=1;"+q(e,n)+A(e,n)+z(e,n)+B(e);r=new mxCell("", new mxGeometry(.1*u,0,.9*u,.8*t),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;");r.vertex=!0;v.insert(r);r.style+=M;x=new mxCell("",new mxGeometry(.05*u,.1*t,.9*u,.8*t),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;");x.vertex=!0;v.insert(x);x.style+=M;var G=new mxCell("",new mxGeometry(0,.2*t,.9*u,.8*t),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;");G.vertex=!0;v.insert(G);G.style+=M+ l(e);G.value=c(e.Text);break;case "AWSRoundedRectangleContainerBlock2":v.style+="strokeColor=none;fillColor=none;";e.Spotfleet?(r=new mxCell("",new mxGeometry(0,0,u,t-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),r.geometry.offset=new mxPoint(0,20),r.geometry.relative=!0,r.vertex=!0,v.insert(r),r.style+=q(e,n)+l(e.Title)+F(e)+B(e),r.value=c(e.Title),x=new mxCell("",new mxGeometry(0,0,35,40),"strokeColor=none;shape=mxgraph.aws3.spot_instance;fillColor=#f58536;"), x.geometry.relative=!0,x.geometry.offset=new mxPoint(30,0),x.vertex=!0,v.insert(x)):e.Beanstalk?(r=new mxCell("",new mxGeometry(0,0,u,t-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),r.geometry.offset=new mxPoint(0,20),r.geometry.relative=!0,r.vertex=!0,v.insert(r),r.style+=q(e,n)+l(e.Title)+F(e)+B(e),r.value=c(e.Title),x=new mxCell("",new mxGeometry(0,0,30,40),"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk;fillColor=#759C3E;"), x.geometry.relative=!0,x.geometry.offset=new mxPoint(30,0),x.vertex=!0,v.insert(x)):e.EC2?(r=new mxCell("",new mxGeometry(0,0,u,t-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),r.geometry.offset=new mxPoint(0,20),r.geometry.relative=!0,r.vertex=!0,v.insert(r),r.style+=q(e,n)+l(e.Title)+F(e)+B(e),r.value=c(e.Title),x=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.ec2;fillColor=#F58534;"),x.geometry.relative= !0,x.geometry.offset=new mxPoint(30,0),x.vertex=!0,v.insert(x)):e.Subnet?(r=new mxCell("",new mxGeometry(0,0,u,t-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),r.geometry.offset=new mxPoint(0,20),r.geometry.relative=!0,r.vertex=!0,v.insert(r),r.style+=q(e,n)+l(e.Title)+F(e)+B(e),r.value=c(e.Title),x=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.permissions;fillColor=#146EB4;"),x.geometry.relative= !0,x.geometry.offset=new mxPoint(30,0),x.vertex=!0,v.insert(x)):e.VPC?(r=new mxCell("",new mxGeometry(0,0,u,t-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),r.geometry.offset=new mxPoint(0,20),r.geometry.relative=!0,r.vertex=!0,v.insert(r),r.style+=q(e,n)+l(e.Title)+F(e)+B(e),r.value=c(e.Title),x=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud;fillColor=#146EB4;"),x.geometry.relative= !0,x.geometry.offset=new mxPoint(30,0),x.vertex=!0,v.insert(x)):e.AWS?(r=new mxCell("",new mxGeometry(0,0,u,t-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),r.geometry.offset=new mxPoint(0,20),r.geometry.relative=!0,r.vertex=!0,v.insert(r),r.style+=q(e,n)+l(e.Title)+F(e)+B(e),r.value=c(e.Title),x=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.cloud;fillColor=#F58534;"),x.geometry.relative=!0,x.geometry.offset= new mxPoint(30,0),x.vertex=!0,v.insert(x)):e.Corporate?(r=new mxCell("",new mxGeometry(0,0,u,t-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),r.geometry.offset=new mxPoint(0,20),r.geometry.relative=!0,r.vertex=!0,v.insert(r),r.style+=q(e,n)+l(e.Title)+F(e)+B(e),r.value=c(e.Title),x=new mxCell("",new mxGeometry(0,0,25,40),"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;"),x.geometry.relative=!0,x.geometry.offset= new mxPoint(30,0),x.vertex=!0,v.insert(x)):(v.style="resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"+q(e,n)+l(e.Title)+F(e)+B(e),v.value=c(e.Title));break;case "AWSElasticComputeCloudBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.ec2;verticalLabelPosition=bottom;align=center;verticalAlign=top;"+l(e.Title)+A(e,n)+z(e,n)+E(e);v.value=c(e.Title);break;case "AWSRoute53Block2":v.style+="strokeColor=none;shape=mxgraph.aws3.route_53;verticalLabelPosition=bottom;align=center;verticalAlign=top;"+ l(e.Title)+A(e,n)+z(e,n)+E(e);v.value=c(e.Title);break;case "AWSRDBSBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.rds;verticalLabelPosition=bottom;align=center;verticalAlign=top;"+l(e.Title)+A(e,n)+z(e,n)+E(e);v.value=c(e.Title);break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";var V=new mxCell("",new mxGeometry(.25*u,.25*t,.5*u,.5*t),"html=1;shape=ellipse;perimeter=ellipsePerimeter;strokeColor=#29AAE1;strokeWidth=2;");V.vertex=!0;v.insert(V);var Z=[V];V.style+=A(e, n);var S=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");S.geometry.relative=!0;S.edge=!0;la(.5*u,0,S,L,K,Z,v,V);la(.855*u,.145*t,S,L,K,Z,v,V);la(u,.5*t,S,L,K,Z,v,V);la(.855*u,.855*t,S,L,K,Z,v,V);la(.5*u,t,S,L,K,Z,v,V);la(.145*u,.855*t,S,L,K,Z,v,V);la(0,.5*t,S,L,K,Z,v,V);la(.145*u,.145*t,S,L,K,Z,v,V);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";V=new mxCell("",new mxGeometry(0,.5*t-10,u,20), "shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");V.vertex=!0;v.insert(V);Z=[V];S=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");S.geometry.relative=!0;S.edge=!0;for(var Z=[V],Mb=u/e.NumTopNodes,k=0;k<e.NumTopNodes;k++)la(.5*Mb+k*Mb,0,S,L,K,Z,v,V);Mb=u/e.NumBottomNodes;for(k=0;k<e.NumBottomNodes;k++)la(.5* Mb+k*Mb,t,S,L,K,Z,v,V);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;"+q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+l(e);v.value=c(e.Title);e.ToggleCharge&&(v.style+="flipV=1;");break;case "EIMessageChannelBlock":case "EIDatatypeChannelBlock":case "EIInvalidMessageChannelBlock":case "EIDeadLetterChannelBlock":case "EIGuaranteedDeliveryBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+F(e)+l(e);v.value=c(e.Text);"EIMessageChannelBlock"== w.Class?(r=new mxCell("",new mxGeometry(.5,.5,.9*u,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;"),r.geometry.offset=new mxPoint(.45*-u,0)):"EIDatatypeChannelBlock"==w.Class?(r=new mxCell("",new mxGeometry(.5,.5,.9*u,20),"shape=mxgraph.eip.dataChannel;fillColor=#818181;part=1;"),r.geometry.offset=new mxPoint(.45*-u,0)):"EIInvalidMessageChannelBlock"==w.Class?(r=new mxCell("",new mxGeometry(.5,.5,.9*u,20),"shape=mxgraph.eip.invalidMessageChannel;fillColor=#818181;part=1;"),r.geometry.offset= new mxPoint(.45*-u,0)):"EIDeadLetterChannelBlock"==w.Class?(r=new mxCell("",new mxGeometry(.5,.5,.9*u,20),"shape=mxgraph.eip.deadLetterChannel;fillColor=#818181;part=1;"),r.geometry.offset=new mxPoint(.45*-u,0)):"EIGuaranteedDeliveryBlock"==w.Class&&(r=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),r.geometry.offset=new mxPoint(-10,-7));r.geometry.relative=!0;r.vertex=!0;v.insert(r);r.style+=q(e,n)+z(e,n)+B(e);S=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;"); S.geometry.relative=!0;S.edge=!0;ea(.15*u,.25*t,.85*u,.25*t,S,L,K,Z,v,V);break;case "EIChannelAdapterBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+F(e)+l(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(0,.07*t,.21*u,.86*t),"fillColor=#FFFF33;part=1;");r.vertex=!0;v.insert(r);r.style+=q(e,n)+z(e,n)+B(e)+F(e);x=new mxCell("",new mxGeometry(.26*u,.09*t,.2*u,.82*t),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");x.vertex=!0;v.insert(x); x.style+=q(e,n)+z(e,n)+B(e)+F(e);G=new mxCell("",new mxGeometry(1,.5,.35*u,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");G.geometry.relative=!0;G.geometry.offset=new mxPoint(.4*-u,-10);G.vertex=!0;v.insert(G);G.style+=q(e,n)+z(e,n)+B(e)+F(e);O=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=none;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=2;");O.geometry.relative=!0;O.edge=!0;r.insertEdge(O,!0);x.insertEdge(O, !1);O.style+=q(e,n);L.push(K.addCell(O,null,null,null,null));N=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=block;startArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=2;startFill=1;startSize=2;");N.geometry.relative=!0;N.edge=!0;x.insertEdge(N,!0);G.insertEdge(N,!1);L.push(K.addCell(N,null,null,null,null));break;case "EIMessageBlock":case "EICommandMessageBlock":case "EIDocumentMessageBlock":case "EIEventMessageBlock":v.style+= "strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+l(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(0,0,17,17),"shape=ellipse;fillColor=#808080;part=1;");r.vertex=!0;v.insert(r);r.style+=q(e,n)+B(e);for(var Nb=e.Messages,cc=(t-17)/Nb,x=[],S=[],k=0;k<Nb;k++){var Ob=cc*(k+1)-3;x[k]=new mxCell("",new mxGeometry(u-20,Ob,20,20),"part=1;");x[k].vertex=!0;v.insert(x[k]);x[k].style+=q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+F(e);switch(w.Class){case "EIMessageBlock":x[k].value=c(e["message_"+ (k+1)]);x.style+=l(e["message_"+(k+1)]);break;case "EICommandMessageBlock":x[k].value="C";x[k].style+="fontStyle=1;fontSize=11;";break;case "EIDocumentMessageBlock":x[k].value="D";x[k].style+="fontStyle=1;fontSize=11;";break;case "EIEventMessageBlock":x[k].value="E",x[k].style+="fontStyle=1;fontSize=11;"}S[k]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");S[k].geometry.relative=!0;S[k].edge=!0;r.insertEdge(S[k],!1); x[k].insertEdge(S[k],!0);S[k].style+=q(e,n)+B(e);var eb=[];eb.push(new mxPoint(fa+8.5,ja+Ob+10));S[k].geometry.points=eb;L.push(K.addCell(S[k],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+F(e)+l(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(.45*u,.25*t,.3*u,.5*t),"part=1;");r.vertex=!0;v.insert(r);r.style+=q(e,n)+z(e,n)+B(e);S=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;"); S.geometry.relative=!0;S.edge=!0;ea(0,.5*t,.4*u,.5*t,S,L,K,Z,v,V);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+F(e)+l(e);v.value=c(e.Text);var O=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");O.geometry.relative=!0;O.edge=!0;ea(.05*u,.5*t,.85*u,.5*t,O,L,K,Z,v,V);var N=new mxCell("",new mxGeometry(0,0,0,0), "edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");N.geometry.relative=!0;N.edge=!0;ea(.05*u,.5*t,.85*u,.15*t,N,L,K,Z,v,V);var W=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");W.geometry.relative=!0;W.edge=!0;ea(.05*u,.5*t,.85*u,.85*t,W,L,K,Z,v,V);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+ q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+F(e)+l(e);v.value=c(e.Text);O=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");O.geometry.relative=!0;O.edge=!0;O.style+=q(e,n);ea(.05*u,.5*t,.95*u,.5*t,O,L,K,Z,v,V);N=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;"); N.geometry.relative=!0;N.edge=!0;N.style+=q(e,n);ea(.3*u,.1*t,.3*u,.5*t,N,L,K,Z,v,V);W=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");W.geometry.relative=!0;W.edge=!0;W.style+=q(e,n);ea(.7*u,.1*t,.7*u,.5*t,W,L,K,Z,v,V);var ka=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;"); ka.geometry.relative=!0;ka.edge=!0;ka.style+=q(e,n);ea(.5*u,.5*t,.5*u,.9*t,ka,L,K,Z,v,V);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+F(e)+l(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(.2*u,.21*t,.16*u,.24*t),"part=1;");r.vertex=!0;v.insert(r);r.style+=q(e,n)+z(e,n)+B(e);O=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;"); O.geometry.relative=!0;O.edge=!0;ea(.45*u,.33*t,.8*u,.33*t,O,L,K,Z,v,V);x=new mxCell("",new mxGeometry(.64*u,.55*t,.16*u,.24*t),"part=1;");x.vertex=!0;v.insert(x);x.style+=q(e,n)+z(e,n)+B(e);N=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");N.geometry.relative=!0;N.edge=!0;ea(.55*u,.67*t,.2*u,.67*t,N,L,K,Z,v,V);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+ q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+F(e)+l(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(.1*u,.15*t,.8*u,.7*t),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");r.vertex=!0;v.insert(r);r.style+=q(e,n)+z(e,n)+B(e);break;case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+F(e)+l(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(.04*u,.06*t,.18*u,.28*t),"shape=ellipse;fillColor=#808080;part=1;");r.vertex=!0;v.insert(r);r.style+= q(e,n)+B(e);x=new mxCell("",new mxGeometry(.2*u,.56*t,.2*u,.32*t),"part=1;");x.vertex=!0;v.insert(x);x.style+=q(e,n)+z(e,n)+B(e)+F(e);x.value="A";x.style+="fontStyle=1;fontSize=11;";O=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");O.geometry.relative=!0;O.edge=!0;r.insertEdge(O,!1);x.insertEdge(O,!0);O.style+=q(e,n)+B(e);eb=[];eb.push(new mxPoint(fa+.13*u,ja+.72*t));O.geometry.points=eb;L.push(K.addCell(O,null, null,null,null));G=new mxCell("",new mxGeometry(.6*u,.06*t,.18*u,.28*t),"shape=ellipse;fillColor=#808080;part=1;");G.vertex=!0;v.insert(G);G.style+=q(e,n)+B(e);Q=new mxCell("",new mxGeometry(.76*u,.56*t,.2*u,.32*t),"part=1;");Q.vertex=!0;v.insert(Q);Q.style+=q(e,n)+z(e,n)+B(e)+F(e);Q.value="B";Q.style+="fontStyle=1;fontSize=11;";N=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");N.geometry.relative=!0;N.edge=!0; G.insertEdge(N,!1);Q.insertEdge(N,!0);N.style+=q(e,n)+B(e);var nc=[];nc.push(new mxPoint(fa+.69*u,ja+.72*t));N.geometry.points=nc;L.push(K.addCell(N,null,null,null,null));W=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");W.geometry.relative=!0;W.edge=!0;r.insertEdge(W,!1);G.insertEdge(W,!0);W.style+=q(e,n)+B(e);L.push(K.addCell(W,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+ q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+F(e)+l(e);v.value=c(e.Text);r=new mxCell("1",new mxGeometry(.2*u,.4*t,.1*u,.19*t),"fontStyle=1;fontSize=11;part=1;");r.vertex=!0;v.insert(r);r.style+=q(e,n)+B(e);x=new mxCell("2",new mxGeometry(.45*u,.4*t,.1*u,.19*t),"fontStyle=1;fontSize=11;part=1;");x.vertex=!0;v.insert(x);x.style+=q(e,n)+B(e);G=new mxCell("3",new mxGeometry(.7*u,.4*t,.1*u,.19*t),"fontStyle=1;fontSize=11;part=1;");G.vertex=!0;v.insert(G);G.style+=q(e,n)+B(e);O=new mxCell("",new mxGeometry(0,0,0,0), "curved=1;endArrow=block;html=1;endSize=3;part=1;");r.insertEdge(O,!1);x.insertEdge(O,!0);O.geometry.points=[new mxPoint(fa+.375*u,ja+.15*t)];O.geometry.relative=!0;O.edge=!0;O.style+=q(e,n)+B(e);L.push(K.addCell(O,null,null,null,null));N=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");x.insertEdge(N,!1);G.insertEdge(N,!0);N.geometry.points=[new mxPoint(fa+.675*u,ja+.15*t)];N.geometry.relative=!0;N.edge=!0;N.style+=q(e,n)+B(e);L.push(K.addCell(N,null,null, null,null));break;case "EIMessageExpirationBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+F(e)+l(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(.3*u,.2*t,.4*u,.6*t),"shape=mxgraph.ios7.icons.clock;flipH=1;part=1;");r.vertex=!0;v.insert(r);r.style+=q(e,n)+B(e);break;case "EIMessageBrokerBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+h(e)+f(e)+b(e)+a(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(.38* u,.42*t,.24*u,.16*t),"part=1;fillColor=#aefe7d;");r.vertex=!0;v.insert(r);r.style+=q(e,n)+B(e);x=new mxCell("",new mxGeometry(.38*u,0,.24*u,.16*t),"part=1;");x.vertex=!0;v.insert(x);x.style+=A(e,n)+q(e,n)+B(e);G=new mxCell("",new mxGeometry(.76*u,.23*t,.24*u,.16*t),"part=1;");G.vertex=!0;v.insert(G);G.style=x.style;var Q=new mxCell("",new mxGeometry(.76*u,.61*t,.24*u,.16*t),"part=1;");Q.vertex=!0;v.insert(Q);Q.style=x.style;var Xb=new mxCell("",new mxGeometry(.38*u,.84*t,.24*u,.16*t),"part=1;");Xb.vertex= !0;v.insert(Xb);Xb.style=x.style;var Yb=new mxCell("",new mxGeometry(0,.61*t,.24*u,.16*t),"part=1;");Yb.vertex=!0;v.insert(Yb);Yb.style=x.style;var Zb=new mxCell("",new mxGeometry(0,.23*t,.24*u,.16*t),"part=1;");Zb.vertex=!0;v.insert(Zb);Zb.style=x.style;O=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");r.insertEdge(O,!1);x.insertEdge(O,!0);O.edge=!0;O.style+=q(e,n)+B(e);L.push(K.addCell(O,null,null,null,null));N=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");r.insertEdge(N, !1);G.insertEdge(N,!0);N.edge=!0;N.style+=q(e,n)+B(e);L.push(K.addCell(N,null,null,null,null));W=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");r.insertEdge(W,!1);Q.insertEdge(W,!0);W.edge=!0;W.style+=q(e,n)+B(e);L.push(K.addCell(W,null,null,null,null));ka=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");r.insertEdge(ka,!1);Xb.insertEdge(ka,!0);ka.edge=!0;ka.style+=q(e,n)+B(e);L.push(K.addCell(ka,null,null,null,null));var tb=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;"); r.insertEdge(tb,!1);Yb.insertEdge(tb,!0);tb.edge=!0;tb.style+=q(e,n)+B(e);L.push(K.addCell(tb,null,null,null,null));var ub=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");r.insertEdge(ub,!1);Zb.insertEdge(ub,!0);ub.edge=!0;ub.style+=q(e,n)+B(e);L.push(K.addCell(ub,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+F(e)+l(e);v.value=c(e.Text);O=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;"); O.geometry.relative=!0;O.edge=!0;ea(.05*u,.5*t,.6*u,.25*t,O,L,K,Z,v,V);N=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");N.geometry.relative=!0;N.edge=!0;ea(.05*u,.5*t,.6*u,.75*t,N,L,K,Z,v,V);r=new mxCell("",new mxGeometry(.7*u,.1*t,.15*u,.32*t),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");r.vertex=!0;v.insert(r);r.style+=q(e,n)+B(e);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+ q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+F(e)+l(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(.25*u,.25*t,.5*u,.5*t),"shape=mxgraph.eip.control_bus;part=1;");r.vertex=!0;v.insert(r);r.style+=q(e,n)+B(e);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+l(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(0,0,17,17),"shape=ellipse;fillColor=#808080;part=1;");r.vertex=!0;v.insert(r);r.style+=q(e,n)+B(e);G=new mxCell("",new mxGeometry(u- 45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");G.vertex=!0;v.insert(G);G.style+=q(e,n)+B(e);W=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");W.geometry.relative=!0;W.edge=!0;r.insertEdge(W,!1);G.insertEdge(W,!0);W.style+=q(e,n)+B(e);W.geometry.points=[new mxPoint(fa+8.5,ja+40)];L.push(K.addCell(W,null,null,null,null));Q=new mxCell("",new mxGeometry(u-45,t-20,20,20),"part=1;");Q.vertex=!0; v.insert(Q);Q.value=c(e.message_0);Q.style+=l(e.message_0);Q.style+=q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+F(e);ka=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");ka.geometry.relative=!0;ka.edge=!0;r.insertEdge(ka,!1);Q.insertEdge(ka,!0);ka.style+=q(e,n)+B(e);ka.geometry.points=[new mxPoint(fa+8.5,ja+t-10)];L.push(K.addCell(ka,null,null,null,null));Nb=e.HistoryMessages;cc=(t-75)/Nb;x=[];S=[];for(k=0;k<Nb;k++)Ob=cc*(k+1)+30, x[k]=new mxCell("",new mxGeometry(u-20,Ob,20,20),"part=1;"),x[k].vertex=!0,x[k].value=c(e["message_"+(k+1)]),x.style+=l(e["message_"+(k+1)]),v.insert(x[k]),x[k].style+=q(e,n)+A(e,n)+z(e,n)+E(e)+B(e)+F(e),S[k]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),S[k].geometry.relative=!0,S[k].edge=!0,G.insertEdge(S[k],!1),x[k].insertEdge(S[k],!0),S[k].style+=q(e,n)+B(e),eb=[],eb.push(new mxPoint(fa+u-30,ja+Ob+10)),S[k].geometry.points= eb,L.push(K.addCell(S[k],null,null,null,null));break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;"+q(e,n)+z(e,n)+E(e)+B(e)+P(e,n,v);F(e);0>e.DoorAngle&&(v.style+="flipV=1;");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;"+q(e,n)+z(e,n)+E(e)+B(e)+P(e,n,v)+F(e);0<e.DoorAngle&&(v.style+="flipV=1;");break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;"+P(e,n,v);r=new mxCell("",new mxGeometry(0,0,u,.25*t),"part=1;");r.vertex=!0;v.insert(r);r.style+= q(e,n)+A(e,n)+B(e)+z(e,n)+E(e)+F(e);for(var x=[],oc=.02*u,dc=(u-2*oc)/e.LightCount,pc=.8*dc,k=0;k<e.LightCount;k++)x[k]=new mxCell("",new mxGeometry(oc+dc*k+(dc-pc)/2,.25*t,pc,.75*t),"part=1;shape=ellipse;"),x[k].vertex=!0,v.insert(x[k]),x[k].style+=q(e,n)+A(e,n)+B(e)+z(e,n)+E(e)+F(e);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;"+P(e,n,v);for(var r=[],qc=u/e.SinkCount,k=0;k<e.SinkCount;k++)r[k]=new mxCell("",new mxGeometry(qc*k,0,qc,t),"part=1;shape=mxgraph.floorplan.sink_2;"), r[k].vertex=!0,v.insert(r[k]),r[k].style+=q(e,n)+A(e,n)+B(e)+z(e,n)+E(e)+F(e);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var xa=.1*u/e.StallCount,r=new mxCell("",new mxGeometry(0,0,xa,t),"fillColor=#000000;part=1;");r.vertex=!0;v.insert(r);r.style+=q(e,n)+B(e);for(var Fa=(u-xa)/e.StallCount,ec=[],Pb=[],Qb=[],Rb=[],H=q(e,n),H=""==H?"#000000;":H.replace("stokreColor=",""),rc="part=1;fillColor="+H+q(e,n)+B(e),fc=A(e,n)+q(e,n)+B(e),k=0;k<e.StallCount;k++)ec[k]=new mxCell("", new mxGeometry((k+1)*Fa,0,xa,t),rc),ec[k].vertex=!0,v.insert(ec[k]),Qb[k]=new mxCell("",new mxGeometry(xa+k*Fa+.05*(Fa-xa),t-.92*(Fa-xa),.9*(Fa-xa),.92*(Fa-xa)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),Qb[k].vertex=!0,v.insert(Qb[k]),Qb[k].style+=fc,Pb[k]=new mxCell("",new mxGeometry(xa+k*Fa+.2*(Fa-xa),0,.6*(Fa-xa),.8*(Fa-xa)),"shape=mxgraph.floorplan.toilet;part=1;"),Pb[k].vertex=!0,v.insert(Pb[k]),Pb[k].style+=fc,Rb[k]=new mxCell("",new mxGeometry(xa+k*Fa,.42*t,.15*(Fa-xa),.12*(Fa-xa)), "part=1;"),Rb[k].vertex=!0,v.insert(Rb[k]),Rb[k].style+=fc;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var $b="edgeStyle=none;endArrow=none;part=1;"+q(e,n)+B(e)+z(e,n)+E(e)+F(e),H=q(e,n),H=""==H?"#000000;":H.replace("stokreColor=",""),gc="shape=triangle;part=1;fillColor="+H+q(e,n)+B(e)+z(e,n)+E(e)+F(e),O=new mxCell("",new mxGeometry(0,0,0,0),$b);O.geometry.relative=!0;O.edge=!0;ea(0,.5*t,.65*u,.5*t,O,L,K,Z,v,V);for(var J=t/e.numLines,N=[],ib=[],k=0;k<e.numLines;k++)N[k]=new mxCell("", new mxGeometry(0,0,0,0),$b),N[k].geometry.relative=!0,N[k].edge=!0,ea(.65*u,.5*t,.96*u,(k+.5)*J,N[k],L,K,Z,v,V),ib[k]=new mxCell("",new mxGeometry(.95*u,(k+.2)*J,.05*u,.6*J),gc),ib[k].vertex=!0,v.insert(ib[k]);break;case "PEMultilines":v.style+="strokeColor=none;fillColor=none;";$b="edgeStyle=none;endArrow=none;part=1;"+q(e,n)+B(e)+z(e,n)+E(e)+F(e);H=q(e,n);H=""==H?"#000000;":H.replace("stokreColor=","");gc="shape=triangle;part=1;fillColor="+H+q(e,n)+B(e)+z(e,n)+E(e)+F(e);J=t/e.numLines;N=[];ib=[]; for(k=0;k<e.numLines;k++)N[k]=new mxCell("",new mxGeometry(0,0,0,0),$b),N[k].geometry.relative=!0,N[k].edge=!0,ea(0,(k+.5)*J,.96*u,(k+.5)*J,N[k],L,K,Z,v,V),ib[k]=new mxCell("",new mxGeometry(.95*u,(k+.2)*J,.05*u,.6*J),gc),ib[k].vertex=!0,v.insert(ib[k]);break;case "PEVesselBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+q(e,n)+A(e,n)+B(e)+z(e,n)+E(e)+F(e)+l(e);v.value=c(e.Text);switch(e.vesselType){case 1:v.style+="shape=mxgraph.pid.vessels.pressurized_vessel;";break;case 2:v.style+= "shape=hexagon;perimeter=hexagonPerimeter2;size=0.10;direction=south;"}break;case "PEClosedTankBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+q(e,n)+A(e,n)+B(e)+z(e,n)+E(e)+F(e)+l(e);v.value=c(e.Text);1==e.peakedRoof&&0==e.stumpType?v.style+="shape=mxgraph.pid.vessels.tank_(conical_roof);":1==e.stumpType&&(v.style+="shape=mxgraph.pid.vessels.tank_(boot);");break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+q(e,n)+A(e,n)+B(e)+z(e,n)+E(e)+F(e)+l(e); v.value=c(e.Text);v.style=0==e.columnType?v.style+"shape=mxgraph.pid.vessels.pressurized_vessel;":v.style+"shape=mxgraph.pid.vessels.tank;";break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;"+P(e,n,v)+l(e);v.value=c(e.Text);M=q(e,n)+A(e,n)+B(e)+z(e,n)+E(e)+F(e);r=new mxCell("",new mxGeometry(0,.2*t,u,.6*t),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");r.vertex=!0;v.insert(r);r.style+=M;M+="endSize=4;endArrow=block;endFill=1;";0==e.compressorType? (O=new mxCell("",new mxGeometry(0,0,0,0),""),O.geometry.relative=!0,O.edge=!0,O.style+=M,ea(0,0,0,.2*t,O,L,K,Z,v,V),N=new mxCell("",new mxGeometry(0,0,0,0),""),N.geometry.relative=!0,N.edge=!0,N.style+=M,ea(u,.67*t,u,t,N,L,K,Z,v,V)):(r.style+="flipH=1;",O=new mxCell("",new mxGeometry(0,0,0,0),""),O.geometry.relative=!0,O.edge=!0,O.style+=M,ea(0,0,0,.33*t,O,L,K,Z,v,V),N=new mxCell("",new mxGeometry(0,0,0,0),""),N.geometry.relative=!0,N.edge=!0,N.style+=M,ea(u,.8*t,u,t,N,L,K,Z,v,V));1==e.centerLineType&& (W=new mxCell("",new mxGeometry(0,0,0,0),""),W.geometry.relative=!0,W.edge=!0,W.style+=M,ea(.2*u,.5*t,.8*u,.5*t,W,L,K,Z,v,V));break;case "PEMotorDrivenTurbineBlock":M=q(e,n)+A(e,n)+B(e)+z(e,n)+F(e);v.style+="shape=ellipse;"+E(e)+P(e,n,v)+l(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(.2*u,.2*t,.6*u,.6*t),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");r.vertex=!0;v.insert(r);r.style+=M;break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":M= z(e,n);v.style+=M+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+P(e,n,v);switch(w.Class){case "PEIndicatorBlock":v.style+="shape=mxgraph.pid2inst.discInst;";break;case "PEIndicator2Block":v.style+="shape=mxgraph.pid2inst.indicator;indType=inst;";break;case "PESharedIndicatorBlock":v.style+="shape=mxgraph.pid2inst.sharedCont;";break;case "PEComputerIndicatorBlock":v.style+="shape=mxgraph.pid2inst.compFunc;";break;case "PESharedIndicator2Block":v.style+="shape=mxgraph.pid2inst.indicator;indType=ctrl;";break;case "PEProgrammableIndicatorBlock":v.style+= "shape=mxgraph.pid2inst.progLogCont;"}"PEIndicator2Block"==w.Class||"PESharedIndicator2Block"==w.Class?(r=new mxCell("",new mxGeometry(0,0,u,.5*u),"part=1;strokeColor=none;fillColor=none;"),r.vertex=!0,v.insert(r),r.style+=M+l(e.TopText),r.value=c(e.TopText),x=new mxCell("",new mxGeometry(0,.5*u,u,.5*u),"part=1;strokeColor=none;fillColor=none;")):(r=new mxCell("",new mxGeometry(0,0,u,.5*t),"part=1;strokeColor=none;fillColor=none;"),r.vertex=!0,v.insert(r),r.style+=M+l(e.TopText),r.value=c(e.TopText), x=new mxCell("",new mxGeometry(0,.5*t,u,.5*t),"part=1;strokeColor=none;fillColor=none;"));x.vertex=!0;v.insert(x);x.style+=M;l(e.BotText);x.value=c(e.BotText);switch(e.instrumentLocation){case 0:v.style+="mounting=field;";break;case 1:v.style+="mounting=inaccessible;";break;case 2:v.style+="mounting=room;";break;case 3:v.style+="mounting=local;"}break;case "PEGateValveBlock":case "PEGlobeValveBlock":case "PEAngleValveBlock":case "PEAngleGlobeValveBlock":case "PEPoweredValveBlock":var hc=!1;"PEPoweredValveBlock"== w.Class?1!=e.poweredHandOperated&&(hc=!0):1!=e.handOperated&&(hc=!0);if(hc){var e=m(w).Properties,X=e.BoundingBox,sc=X.h;X.h="PEAngleValveBlock"==w.Class||"PEAngleGlobeValveBlock"==w.Class?.7*X.h:.6*X.h;v=new mxCell("",new mxGeometry(Math.round(.6*X.x+0),Math.round(.6*(X.y+sc-X.h)+0),Math.round(.6*X.w),Math.round(.6*X.h)),"");v.vertex=!0;Y(v,w)}if("PEPoweredValveBlock"==w.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;"+z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+ E(e)+P(e,n,v),1==e.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",r=new mxCell("",new mxGeometry(.325*u,0,.35*u,.35*t),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),r.vertex=!0,v.insert(r),r.style+=M+z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+"fontSize=6;"+f(e.PoweredText)+b(e.PoweredText)+a(e.PoweredText)+d(e.PoweredText)+g(e.PoweredText)+D(e.PoweredText)+C(e.PoweredText)+y(e.PoweredText),r.value=c(e.PoweredText)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;"+ z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+P(e,n,v)+h(e)+f(e)+b(e)+a(e);v.value=c(e.Text);switch(w.Class){case "PEGateValveBlock":v.style+="valveType=gate;";break;case "PEGlobeValveBlock":v.style+="valveType=globe;";break;case "PEAngleValveBlock":v.style+="valveType=angle;";break;case "PEAngleGlobeValveBlock":v.style+="valveType=angleGlobe;flipH=1;"}1==e.handOperated&&(v.style+="actuator=man;")}break;case "UI2BrowserBlock":v.style+="shape=mxgraph.mockup.containers.browserWindow;mainText=;"+z(e,n)+q(e,n)+ A(e,n)+B(e)+F(e)+E(e)+P(e,n,v);1==e.vScroll&&(G=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,t-130),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,t-110),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(-20,110),G.vertex=!0,v.insert(G),v.style+="spacingRight=20;");1==e.hScroll&&(Q=1==e.vScroll?new mxCell("",new mxGeometry(0, 1,u-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,u,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),Q.geometry.relative=!0,Q.geometry.offset=new mxPoint(0,-20),Q.vertex=!0,v.insert(Q));break;case "UI2WindowBlock":v.style+="shape=mxgraph.mockup.containers.window;mainText=;align=center;verticalAlign=top;spacing=5;"+z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+P(e,n,v)+h(e.Title)+f(e.Title)+b(e.Title);v.value= c(e.Title);1==e.vScroll&&(G=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,t-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,t-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(-20,30),G.vertex=!0,v.insert(G),v.style+="spacingRight=20;");1==e.hScroll&&(Q=1==e.vScroll?new mxCell("",new mxGeometry(0,1,u-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"): new mxCell("",new mxGeometry(0,1,u,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),Q.geometry.relative=!0,Q.geometry.offset=new mxPoint(0,-20),Q.vertex=!0,v.insert(Q));break;case "UI2DialogBlock":v.style+=z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+P(e,n,v)+l(e.Text);v.value=c(e.Text);r=new mxCell("",new mxGeometry(0,0,u,30),"part=1;resizeHeight=0;");r.vertex=!0;v.insert(r);r.style+=M+l(e.Title);r.value=c(e.Title);x=new mxCell("",new mxGeometry(1,.5,20,20),"part=1;shape=ellipse;strokeColor=#008cff;resizable=0;fillColor=none;html=1;"); x.geometry.relative=!0;x.geometry.offset=new mxPoint(-25,-10);x.vertex=!0;r.insert(x);1==e.vScroll&&(G=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,t-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,t-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(-20,30),G.vertex=!0,v.insert(G),v.style+="spacingRight=20;"); 1==e.hScroll&&(Q=1==e.vScroll?new mxCell("",new mxGeometry(0,1,u-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,u,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),Q.geometry.relative=!0,Q.geometry.offset=new mxPoint(0,-20),Q.vertex=!0,v.insert(Q));break;case "UI2AccordionBlock":v.style+=z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+P(e,n,v);r=[];J=25;for(k=0;k<=e.Panels-1;k++)r[k]=k<e.Selected-1?new mxCell("", new mxGeometry(0,k*J,u,J),"part=1;fillColor=#000000;fillOpacity=25;"):k==e.Selected-1?new mxCell("",new mxGeometry(0,k*J,u,J),"part=1;fillColor=none;"):new mxCell("",new mxGeometry(0,t-(e.Panels-e.Selected)*J+(k-e.Selected)*J,u,J),"part=1;fillColor=#000000;fillOpacity=25;"),r[k].vertex=!0,v.insert(r[k]),r[k].style+=l(e["Panel_"+(k+1)]),r[k].value=c(e["Panel_"+(k+1)]),0>r[k].style.indexOf(";align=")&&(r[k].style+="align=left;spacingLeft=5;");var da=q(e,n),da=da.replace("strokeColor","fillColor2"); ""==da&&(da="fillColor2=#000000;");1==e.vScroll&&(x=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,t-e.Selected*J-20-(e.Panels-e.Selected)*J),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,t-e.Selected*J-(e.Panels-e.Selected)*J),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),x.geometry.relative=!0,x.geometry.offset=new mxPoint(-20,e.Selected*J),x.vertex=!0,v.insert(x), v.style+="spacingRight=20;",x.style+=da+z(e,n)+q(e,n)+A(e,n)+B(e)+F(e));1==e.hScroll&&(G=1==e.vScroll?new mxCell("",new mxGeometry(0,1,u-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,u,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20-(e.Panels-e.Selected)*J),G.vertex=!0,v.insert(G),G.style+=da+z(e,n)+q(e,n)+A(e,n)+B(e)+F(e));Q=1==e.vScroll? new mxCell("",new mxGeometry(0,e.Selected*J,u-20,t-e.Selected*J-20-(e.Panels-e.Selected)*J),"part=1;fillColor=none;strokeColor=none;"):new mxCell("",new mxGeometry(0,e.Selected*J,u-20,t-e.Selected*J-(e.Panels-e.Selected)*J),"part=1;fillColor=none;strokeColor=none;");Q.vertex=!0;v.insert(Q);Q.style+=l(e.Content_1);0>Q.style.indexOf(";align=")&&(Q.style+="align=left;spacingLeft=5;");Q.value=c(e.Content_1);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";var r=[],x=[], J=25,Ba=3,T=(u+Ba)/(e.Tabs+1),Ca=new mxCell("",new mxGeometry(0,J,u,t-J),"part=1;");Ca.vertex=!0;v.insert(Ca);Ca.style+=z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+P(e,n,v);for(k=0;k<=e.Tabs-1;k++)k==e.Selected-1?(x[k]=new mxCell("",new mxGeometry(10+k*T,0,T-Ba,J),""),x[k].vertex=!0,v.insert(x[k]),x[k].style+=z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+l(e["Tab_"+(k+1)])):(r[k]=new mxCell("",new mxGeometry(10+k*T,0,T-Ba,J),"strokeColor=none;"),r[k].vertex=!0,v.insert(r[k]),r[k].style+=z(e,n)+A(e,n)+E(e),x[k]=new mxCell("", new mxGeometry(0,0,T-Ba,J),"fillColor=#000000;fillOpacity=25;"),x[k].vertex=!0,r[k].insert(x[k]),x[k].style+=q(e,n)+B(e)+F(e)+l(e["Tab_"+(k+1)])),x[k].value=c(e["Tab_"+(k+1)]),0>x[k].style.indexOf(";align=")&&(x[k].style+="align=left;spacingLeft=2;");da=q(e,n);da=da.replace("strokeColor","fillColor2");""==da&&(da="fillColor2=#000000;");1==e.vScroll&&(x=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,t-20-J),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"): new mxCell("",new mxGeometry(1,0,20,t-J),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),x.geometry.relative=!0,x.geometry.offset=new mxPoint(-20,J),x.vertex=!0,v.insert(x),v.style+="spacingRight=20;",x.style+=da+z(e,n)+q(e,n)+A(e,n)+B(e)+F(e));1==e.hScroll&&(G=1==e.vScroll?new mxCell("",new mxGeometry(0,1,u-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,u,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"), G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=da+z(e,n)+q(e,n)+A(e,n)+B(e)+F(e));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";r=[];x=[];J=25;Ba=3;T=(u+Ba)/e.Tabs;Ca=new mxCell("",new mxGeometry(0,J,u,t-J),"part=1;");Ca.vertex=!0;v.insert(Ca);Ca.style+=z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+P(e,n,v);for(k=0;k<=e.Tabs-1;k++)k==e.Selected-1?(x[k]=new mxCell("",new mxGeometry(k*T,0,T-Ba,J),""),x[k].vertex=!0,v.insert(x[k]), x[k].style+=z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+l(e["Tab_"+(k+1)])):(r[k]=new mxCell("",new mxGeometry(k*T,0,T-Ba,J),"strokeColor=none;"),r[k].vertex=!0,v.insert(r[k]),r[k].style+=z(e,n)+A(e,n)+E(e),x[k]=new mxCell("",new mxGeometry(0,0,T-Ba,J),"fillColor=#000000;fillOpacity=25;"),x[k].vertex=!0,r[k].insert(x[k]),x[k].style+=q(e,n)+B(e)+F(e)+l(e["Tab_"+(k+1)])),x[k].value=c(e["Tab_"+(k+1)]),0>x[k].style.indexOf(";align=")&&(x[k].style+="align=left;spacingLeft=2;");da=q(e,n);da=da.replace("strokeColor", "fillColor2");""==da&&(da="fillColor2=#000000;");1==e.vScroll&&(x=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,t-20-J),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,t-J),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),x.geometry.relative=!0,x.geometry.offset=new mxPoint(-20,J),x.vertex=!0,v.insert(x),v.style+="spacingRight=20;",x.style+=da+z(e,n)+q(e,n)+A(e,n)+B(e)+ F(e));1==e.hScroll&&(G=1==e.vScroll?new mxCell("",new mxGeometry(0,1,u-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,u,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=da+z(e,n)+q(e,n)+A(e,n)+B(e)+F(e));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";r=[];x=[];Ba=3;J=25+Ba; T=80;bb=10;Ca=new mxCell("",new mxGeometry(T,0,u-T,t),"part=1;");Ca.vertex=!0;v.insert(Ca);Ca.style+=z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+P(e,n,v);for(k=0;k<=e.Tabs-1;k++)k==e.Selected-1?(x[k]=new mxCell("",new mxGeometry(0,bb+k*J,T,J-Ba),""),x[k].vertex=!0,v.insert(x[k]),x[k].style+=z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+l(e["Tab_"+(k+1)])):(r[k]=new mxCell("",new mxGeometry(0,bb+k*J,T,J-Ba),"strokeColor=none;"),r[k].vertex=!0,v.insert(r[k]),r[k].style+=z(e,n)+A(e,n)+E(e),x[k]=new mxCell("",new mxGeometry(0, 0,T,J-Ba),"fillColor=#000000;fillOpacity=25;"),x[k].vertex=!0,r[k].insert(x[k]),x[k].style+=q(e,n)+B(e)+F(e)+l(e["Tab_"+(k+1)])),x[k].value=c(e["Tab_"+(k+1)]),0>x[k].style.indexOf(";align=")&&(x[k].style+="align=left;spacingLeft=2;");da=q(e,n);da=da.replace("strokeColor","fillColor2");""==da&&(da="fillColor2=#000000;");1==e.vScroll&&(x=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,t-20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("", new mxGeometry(1,0,20,t),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),x.geometry.relative=!0,x.geometry.offset=new mxPoint(-20,0),x.vertex=!0,v.insert(x),v.style+="spacingRight=20;",x.style+=da+z(e,n)+q(e,n)+A(e,n)+B(e)+F(e));1==e.hScroll&&(G=1==e.vScroll?new mxCell("",new mxGeometry(T,1,u-20-T,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(T,1,u-T,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"), G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=da+z(e,n)+q(e,n)+A(e,n)+B(e)+F(e));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";J=t/e.Options;r=[];x=[];for(k=0;k<e.Options;k++)r[k]=new mxCell("",new mxGeometry(0,k*J+.5*J-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),r[k].vertex=!0,v.insert(r[k]),r[k].style+=z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+l(e["Option_"+ (k+1)]),null!=e.Selected[k+1]&&1==e.Selected[k+1]&&(H=q(e,n),H=H.replace("strokeColor","fillColor"),""==H&&(H="fillColor=#000000;"),x[k]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),x[k].vertex=!0,r[k].insert(x[k]),x[k].style+=H+z(e,n)+q(e,n)+B(e)+F(e)),r[k].value=c(e["Option_"+(k+1)]);break;case "UI2HorizontalCheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";T=u/e.Options;r=[];x=[];for(k=0;k<e.Options;k++)r[k]=new mxCell("",new mxGeometry(k*T,.5* t-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),r[k].vertex=!0,v.insert(r[k]),r[k].style+=z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+l(e["Option_"+(k+1)]),null!=e.Selected[k+1]&&1==e.Selected[k+1]&&(H=q(e,n),H=H.replace("strokeColor","fillColor"),""==H&&(H="fillColor=#000000;"),x[k]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),x[k].vertex=!0,r[k].insert(x[k]),x[k].style+=H+z(e,n)+q(e,n)+B(e)+F(e)), r[k].value=c(e["Option_"+(k+1)]);break;case "UI2RadioBlock":v.style+="strokeColor=none;fillColor=none;";J=t/e.Options;r=[];x=[];for(k=0;k<e.Options;k++)r[k]=new mxCell("",new mxGeometry(0,k*J+.5*J-5,10,10),"shape=ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),r[k].vertex=!0,v.insert(r[k]),r[k].style+=z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+l(e["Option_"+(k+1)]),null!=e.Selected&&e.Selected==k+1&&(H=q(e,n),H=H.replace("strokeColor","fillColor"), ""==H&&(H="fillColor=#000000;"),x[k]=new mxCell("",new mxGeometry(2.5,2.5,5,5),"shape=ellipse;"),x[k].vertex=!0,r[k].insert(x[k]),x[k].style+=H+z(e,n)+q(e,n)+B(e)+F(e)),r[k].value=c(e["Option_"+(k+1)]);break;case "UI2HorizontalRadioBlock":v.style+="strokeColor=none;fillColor=none;";T=u/e.Options;r=[];x=[];for(k=0;k<e.Options;k++)r[k]=new mxCell("",new mxGeometry(k*T,.5*t-5,10,10),"shape=ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"), r[k].vertex=!0,v.insert(r[k]),r[k].style+=z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+l(e["Option_"+(k+1)]),null!=e.Selected&&e.Selected==k+1&&(H=q(e,n),H=H.replace("strokeColor","fillColor"),""==H&&(H="fillColor=#000000;"),x[k]=new mxCell("",new mxGeometry(2,2,6,6),"shape=ellipse;part=1;"),x[k].vertex=!0,r[k].insert(x[k]),x[k].style+=H+z(e,n)+q(e,n)+B(e)+F(e)),r[k].value=c(e["Option_"+(k+1)]);break;case "UI2HSliderBlock":case "UI2VSliderBlock":v.style+="shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;handleStyle=handle;"+ z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e);"UI2VSliderBlock"==w.Class&&(v.style+="direction=south;");v.style+="sliderPos="+100*e.ScrollVal+";";break;case "UI2DatePickerBlock":v.style+="strokeColor=none;fillColor=none;";r=new mxCell("",new mxGeometry(0,0,.6*u,t),"part=1;");r.vertex=!0;v.insert(r);r.style+=z(e,n)+q(e,n)+B(e)+F(e)+E(e)+l(e.Date);r.value=c(e.Date);H=q(e,n);H=H.replace("strokeColor","fillColor");""==H&&(H="fillColor=#000000;");x=new mxCell("",new mxGeometry(.75*u,0,.25*u,t),"part=1;shape=mxgraph.gmdl.calendar;"); x.vertex=!0;v.insert(x);x.style+=H+z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e);break;case "UI2SearchBlock":v.style+="shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1;align=left;spacingLeft=26;"+z(e,n)+q(e,n)+B(e)+F(e)+E(e)+h(e.Search)+f(e.Search)+b(e.Search);v.value=c(e.Search);break;case "UI2NumericStepperBlock":H=q(e,n);H=H.replace("strokeColor","fillColor");""==H&&(H="fillColor=#000000;");v.style+="shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;mainText=;align=left;spacingLeft=8;"+ H+z(e,n)+q(e,n)+B(e)+F(e)+E(e)+h(e.Number)+f(e.Number)+b(e.Number);v.value=c(e.Number);break;case "UI2ButtonBarBlock":v.style+=z(e,n)+q(e,n)+B(e)+F(e)+E(e);r=[];x=[];T=u/e.Buttons;for(k=0;k<=e.Buttons-1;k++)k==e.Selected-1?(x[k]=new mxCell("",new mxGeometry(k*T,0,T,t),""),x[k].vertex=!0,v.insert(x[k]),x[k].style+=z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+l(e["Button_"+(k+1)])):(r[k]=new mxCell("",new mxGeometry(k*T,0,T,t),"strokeColor=none;"),r[k].vertex=!0,v.insert(r[k]),r[k].style+=z(e,n)+A(e,n)+E(e), x[k]=new mxCell("",new mxGeometry(0,0,T,t),"fillColor=#000000;fillOpacity=25;"),x[k].vertex=!0,r[k].insert(x[k]),x[k].style+=q(e,n)+B(e)+F(e)+l(e["Button_"+(k+1)])),x[k].value=c(e["Button_"+(k+1)]);break;case "UI2VerticalButtonBarBlock":v.style+=z(e,n)+q(e,n)+B(e)+F(e)+E(e);r=[];x=[];J=t/e.Buttons;for(k=0;k<=e.Buttons-1;k++)k==e.Selected-1?(x[k]=new mxCell("",new mxGeometry(0,k*J,u,J),""),x[k].vertex=!0,v.insert(x[k]),x[k].style+=z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+l(e["Button_"+(k+1)])):(r[k]=new mxCell("", new mxGeometry(0,k*J,u,J),"strokeColor=none;"),r[k].vertex=!0,v.insert(r[k]),r[k].style+=z(e,n)+A(e,n)+E(e),x[k]=new mxCell("",new mxGeometry(0,0,u,J),"fillColor=#000000;fillOpacity=25;"),x[k].vertex=!0,r[k].insert(x[k]),x[k].style+=q(e,n)+B(e)+F(e)+l(e["Button_"+(k+1)])),x[k].value=c(e["Button_"+(k+1)]);break;case "UI2LinkBarBlock":v.style+="strokeColor=none;fillColor=none;"+z(e,n)+q(e,n)+B(e)+F(e)+E(e);r=[];x=[];T=u/e.Links;for(k=0;k<e.Links;k++)0!=k?(x[k]=new mxCell("",new mxGeometry(k*T,0,T,t), "shape=partialRectangle;top=0;bottom=0;right=0;fillColor=none;"),x[k].style+=z(e,n)+E(e)+q(e,n)+B(e)+F(e)):x[k]=new mxCell("",new mxGeometry(k*T,0,T,t),"fillColor=none;strokeColor=none;"),x[k].vertex=!0,v.insert(x[k]),x[k].style+=l(e["Link_"+(k+1)]),x[k].value=c(e["Link_"+(k+1)]);break;case "UI2BreadCrumbsBlock":v.style+="strokeColor=none;fillColor=none;"+z(e,n)+q(e,n)+B(e)+F(e)+E(e);r=[];x=[];T=u/e.Links;for(k=0;k<e.Links;k++)r[k]=new mxCell("",new mxGeometry(k*T,0,T,t),"fillColor=none;strokeColor=none;"), r[k].vertex=!0,v.insert(r[k]),r[k].style+=l(e["Link_"+(k+1)]),r[k].value=c(e["Link_"+(k+1)]);for(k=1;k<e.Links;k++)x[k]=new mxCell("",new mxGeometry(k/e.Links,.5,6,10),"shape=mxgraph.ios7.misc.right;"),x[k].geometry.relative=!0,x[k].geometry.offset=new mxPoint(-3,-5),x[k].vertex=!0,v.insert(x[k]);break;case "UI2MenuBarBlock":v.style+="strokeColor=none;"+z(e,n)+A(e,n)+E(e);r=[];T=u/(e.Buttons+1);for(k=0;k<=e.Buttons-1;k++)r[k]=k!=e.Selected-1?new mxCell("",new mxGeometry(0,0,T,t),"strokeColor=none;fillColor=none;resizeHeight=1;"): new mxCell("",new mxGeometry(0,0,T,t),"fillColor=#000000;fillOpacity=25;strokeColor=none;resizeHeight=1;"),r[k].geometry.relative=!0,r[k].geometry.offset=new mxPoint(k*T,0),r[k].vertex=!0,v.insert(r[k]),r[k].style+=l(e["MenuItem_"+(k+1)]),r[k].value=c(e["MenuItem_"+(k+1)]);break;case "UI2AtoZBlock":v.style+="fillColor=none;strokeColor=none;"+l(e.Text_0);v.value="0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z";break;case "UI2PaginationBlock":v.style+="fillColor=none;strokeColor=none;"+l(e.Text_prev); v.value=c(e.Text_prev)+" ";for(k=0;k<e.Links;k++)v.value+=c(e["Link_"+(k+1)])+" ";v.value+=c(e.Text_next);break;case "UI2ContextMenuBlock":v.style+=z(e,n)+A(e,n)+q(e,n)+B(e)+F(e)+E(e);for(var I=[],$a=[],vb=[],J=t/e.Lines,M=null,k=0;k<e.Lines;k++)null!=e["Item_"+(k+1)]&&(null==M&&(M=""+h(e["Item_"+(k+1)])+f(e["Item_"+(k+1)])+b(e["Item_"+(k+1)])),I[k]=new mxCell("",new mxGeometry(0,k*t/e.Lines,u,J),"strokeColor=none;fillColor=none;spacingLeft=20;align=left;html=1;"),I[k].vertex=!0,v.insert(I[k]),I[k].style+= M,I[k].value=c(e["Item_"+(k+1)])),null!=e.Icons[k+1]&&null!=I[k]&&("dot"==e.Icons[k+1]?($a[k]=new mxCell("",new mxGeometry(0,.5,8,8),"shape=ellipse;strokeColor=none;"),$a[k].geometry.offset=new mxPoint(6,-4)):"check"==e.Icons[k+1]&&($a[k]=new mxCell("",new mxGeometry(0,.5,7,8),"shape=mxgraph.mscae.general.checkmark;strokeColor=none;"),$a[k].geometry.offset=new mxPoint(6.5,-4)),null!=$a[k]&&($a[k].geometry.relative=!0,$a[k].vertex=!0,I[k].insert($a[k]),H=q(e,n),H=H.replace("strokeColor","fillColor"), ""==H&&(H="fillColor=#000000;"),$a[k].style+=H)),null!=e["Shortcut_"+(k+1)]&&(null==M&&(M=""+h(e["Shortcut_"+(k+1)])+f(e["Shortcut_"+(k+1)])+b(e["Shortcut_"+(k+1)])),vb[k]=new mxCell("",new mxGeometry(.6*u,k*t/e.Lines,.4*u,J),"strokeColor=none;fillColor=none;spacingRight=3;align=right;html=1;"),vb[k].vertex=!0,v.insert(vb[k]),vb[k].style+=M,vb[k].value=c(e["Shortcut_"+(k+1)])),null!=e.Dividers[k+1]&&(I[k]=new mxCell("",new mxGeometry(.05*u,k*t/e.Lines,.9*u,J),"shape=line;strokeWidth=0.25;"),I[k].vertex= !0,v.insert(I[k]),I[k].style+=q(e,n));break;case "UI2ProgressBarBlock":v.style+="shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos="+100*e.ScrollVal+";";break;case "UI2TooltipSquareBlock":v.style+="html=1;shape=callout;flipV=1;base=13;size=7;position=0.5;position2=0.66;rounded=1;arcSize="+e.RoundCorners+";"+z(e,n)+A(e,n)+q(e,n)+B(e)+F(e)+E(e)+l(e.Tip);v.value=c(e.Tip);break;case "UI2CalloutBlock":v.style+="shape=ellipse;"+z(e,n)+A(e,n)+q(e,n)+B(e)+F(e)+E(e)+l(e.Txt);v.value=c(e.Txt); break;case "UI2AlertBlock":v.style+=z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+E(e)+P(e,n,v)+l(e.Txt);v.value=c(e.Txt);r=new mxCell("",new mxGeometry(0,0,u,30),"part=1;resizeHeight=0;");r.vertex=!0;v.insert(r);r.style+=M+z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+l(e.Title);r.value=c(e.Title);x=new mxCell("",new mxGeometry(1,.5,20,20),"part=1;shape=ellipse;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");x.geometry.relative=!0;x.geometry.offset=new mxPoint(-25,-10);x.vertex=!0;r.insert(x);for(var tc=45*e.Buttons+ (10*e.Buttons-1),G=[],k=0;k<e.Buttons;k++)G[k]=new mxCell("",new mxGeometry(.5,1,45,20),"part=1;html=1;"),G[k].geometry.relative=!0,G[k].geometry.offset=new mxPoint(.5*-tc+55*k,-40),G[k].vertex=!0,v.insert(G[k]),G[k].style+=z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+l(e["Button_"+(k+1)]),G[k].value=c(e["Button_"+(k+1)]);break;case "UMLClassBlock":if(0==e.Simple){var M=A(e,n),ya=Math.round(.6*e.TitleHeight),M=M.replace("fillColor","swimlaneFillColor");""==M&&(M="swimlaneFillColor=#ffffff;");v.style+="swimlane;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"+ M+"startSize="+ya+";"+z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+l(e.Title);v.value=c(e.Title);for(var I=[],ic=[],ua=ya/t,k=0;k<=e.Attributes;k++)0<k&&(ic[k]=new mxCell("",new mxGeometry(0,0,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),ic[k].vertex=!0,v.insert(ic[k])),J=0,k<e.Attributes?(J=e["Text"+(k+1)+"Percent"],ua+=J):J=1-ua,I[k]=new mxCell("",new mxGeometry(0,0,u,Math.round((t- ya)*J)),"part=1;resizeHeight=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),I[k].vertex=!0,v.insert(I[k]),I[k].style+=M+z(e,n)+h(e["Text"+(k+1)])+f(e["Text"+(k+1)])+b(e["Text"+(k+1)]),I[k].value=c(e["Text"+(k+1)])}else v.style+=z(e,n)+q(e,n)+A(e,n)+B(e)+F(e)+l(e.Title),v.value=c(e.Title);break;case "ERDEntityBlock":M=A(e,n);ya=.6*e.Name_h;M=M.replace("fillColor","swimlaneFillColor"); ""==M&&(M="swimlaneFillColor=#ffffff;");v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"+M+"startSize="+ya+";"+z(e,n)+q(e,n)+B(e)+F(e)+l(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+A(e,n);v.value=c(e.Name);I=[];ua=ya/t;for(k=0;k<e.Fields;k++)J=0,I[k]=new mxCell("",new mxGeometry(0,0,u,.6*e["Field"+(k+1)+"_h"]),"part=1;resizeHeight=0;strokeColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"), I[k].vertex=!0,v.insert(I[k]),I[k].style+=M+h(e["Field"+(k+1)])+f(e["Field"+(k+1)])+b(e["Field"+(k+1)]),I[k].style=1==e.AltRows&&0!=k%2?I[k].style+"fillColor=#000000;opacity=5;":I[k].style+("fillColor=none;"+z(e,n)),I[k].value=c(e["Field"+(k+1)]);break;case "ERDEntityBlock2":M=A(e,n);ya=.6*e.Name_h;M=M.replace("fillColor","swimlaneFillColor");""==M&&(M="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"+M+"startSize="+ya+";"+ z(e,n)+q(e,n)+B(e)+F(e)+l(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+A(e,n);v.value=c(e.Name);var I=[],ca=[],ua=ya,Da=30;null!=e.Column1&&(Da=.6*e.Column1);for(k=0;k<e.Fields;k++)J=0,ca[k]=new mxCell("",new mxGeometry(0,ua,Da,.6*e["Key"+(k+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),ca[k].vertex=!0,v.insert(ca[k]),ca[k].style+=M+ h(e["Key"+(k+1)])+f(e["Key"+(k+1)])+b(e["Key"+(k+1)]),ca[k].style=1==e.AltRows&&0!=k%2?ca[k].style+"fillColor=#000000;fillOpacity=5;":ca[k].style+("fillColor=none;"+z(e,n)),ca[k].value=c(e["Key"+(k+1)]),I[k]=new mxCell("",new mxGeometry(Da,ua,u-Da,.6*e["Field"+(k+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),I[k].vertex=!0,v.insert(I[k]), I[k].style+=M+q(e,n)+B(e)+F(e)+h(e["Field"+(k+1)])+f(e["Field"+(k+1)])+b(e["Field"+(k+1)]),I[k].style=1==e.AltRows&&0!=k%2?I[k].style+"fillColor=#000000;fillOpacity=5;":I[k].style+("fillColor=none;"+z(e,n)),I[k].value=c(e["Field"+(k+1)]),ua+=.6*e["Key"+(k+1)+"_h"];break;case "ERDEntityBlock3":M=A(e,n);ya=.6*e.Name_h;M=M.replace("fillColor","swimlaneFillColor");""==M&&(M="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"+M+ "startSize="+ya+";"+z(e,n)+q(e,n)+B(e)+F(e)+l(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+A(e,n);v.value=c(e.Name);I=[];ca=[];ua=ya;Da=30;null!=e.Column1&&(Da=.6*e.Column1);for(k=0;k<e.Fields;k++)J=0,ca[k]=new mxCell("",new mxGeometry(0,ua,Da,.6*e["Field"+(k+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),ca[k].vertex=!0,v.insert(ca[k]), ca[k].style+=M+h(e["Field"+(k+1)])+f(e["Field"+(k+1)])+b(e["Field"+(k+1)]),ca[k].style=1==e.AltRows&&0!=k%2?ca[k].style+"fillColor=#000000;fillOpacity=5;":ca[k].style+("fillColor=none;"+z(e,n)),ca[k].value=c(e["Field"+(k+1)]),I[k]=new mxCell("",new mxGeometry(Da,ua,u-Da,.6*e["Type"+(k+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"), I[k].vertex=!0,v.insert(I[k]),I[k].style+=M+q(e,n)+B(e)+F(e)+h(e["Type"+(k+1)])+f(e["Type"+(k+1)])+b(e["Type"+(k+1)]),I[k].style=1==e.AltRows&&0!=k%2?I[k].style+"fillColor=#000000;fillOpacity=5;":I[k].style+("fillColor=none;"+z(e,n)),I[k].value=c(e["Type"+(k+1)]),ua+=.6*e["Field"+(k+1)+"_h"];break;case "ERDEntityBlock4":M=A(e,n);ya=.6*e.Name_h;M=M.replace("fillColor","swimlaneFillColor");""==M&&(M="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"+ M+"startSize="+ya+";"+z(e,n)+q(e,n)+B(e)+F(e)+l(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+A(e,n);v.value=c(e.Name);var I=[],ca=[],db=[],ua=ya,Da=30,ac=40;null!=e.Column1&&(Da=.6*e.Column1);null!=e.Column2&&(ac=.6*e.Column2);for(k=0;k<e.Fields;k++)J=0,ca[k]=new mxCell("",new mxGeometry(0,ua,Da,.6*e["Key"+(k+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"), ca[k].vertex=!0,v.insert(ca[k]),ca[k].style+=M+h(e["Key"+(k+1)])+f(e["Key"+(k+1)])+b(e["Key"+(k+1)]),ca[k].style=1==e.AltRows&&0!=k%2?ca[k].style+"fillColor=#000000;fillOpacity=5;":ca[k].style+("fillColor=none;"+z(e,n)),ca[k].value=c(e["Key"+(k+1)]),I[k]=new mxCell("",new mxGeometry(Da,ua,u-Da-ac,.6*e["Field"+(k+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"), I[k].vertex=!0,v.insert(I[k]),I[k].style+=M+q(e,n)+B(e)+F(e)+h(e["Field"+(k+1)])+f(e["Field"+(k+1)])+b(e["Field"+(k+1)]),I[k].style=1==e.AltRows&&0!=k%2?I[k].style+"fillColor=#000000;fillOpacity=5;":I[k].style+("fillColor=none;"+z(e,n)),I[k].value=c(e["Field"+(k+1)]),db[k]=new mxCell("",new mxGeometry(u-ac,ua,ac,.6*e["Type"+(k+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"), db[k].vertex=!0,v.insert(db[k]),db[k].style+=M+q(e,n)+B(e)+F(e)+h(e["Type"+(k+1)])+f(e["Type"+(k+1)])+b(e["Type"+(k+1)]),db[k].style=1==e.AltRows&&0!=k%2?db[k].style+"fillColor=#000000;fillOpacity=5;":db[k].style+("fillColor=none;"+z(e,n)),db[k].value=c(e["Type"+(k+1)]),ua+=.6*e["Key"+(k+1)+"_h"]}return v}var ja=["GSDFDProcessBlock","GSDFDProcessBlock2","RoundedRectangleContainerBlock","UI2ButtonBlock","UMLStateBlock"],Ha=["UMLActivationBlock"],Tb="VennPlainColor1 VennPlainColor2 VennPlainColor3 VennPlainColor4 VennPlainColor5 VennPlainColor6 VennPlainColor7 VennPlainColor8 VennGradientColor1 VennGradientColor2 VennGradientColor3 VennGradientColor4 VennGradientColor5 VennGradientColor6 VennGradientColor7 VennGradientColor8 UMLEndBlock DefaultTextBlockNew iOSButton".split(" "), Ea="AWSAndroidBlock3 AWSiOSBlock3 AWSJavaBlock3 AWSJavaScript AWSNetBlock3 AWSNodeJSBlock3 AWSPHPBlock3 AWSPythonBlock3 AWSRubyBlock3 AWSXamarin AWSCLIBlock3 AWSEclipseToolkitBlock3 AWSVisualStudioToolkitBlock3 AWSWindowsPowershellToolkitBlock3 DefaultTextBlock RectangleContainerBlock UMLStartBlock UMLEndBlock DefaultTextBlockNew UMLHForkJoinBlock iOSButton".split(" "),fb="VennPlainColor1 VennPlainColor2 VennPlainColor3 VennPlainColor4 VennPlainColor5 VennPlainColor6 VennPlainColor7 VennPlainColor8 VennGradientColor1 VennGradientColor2 VennGradientColor3 VennGradientColor4 VennGradientColor5 VennGradientColor6 VennGradientColor7 VennGradientColor8".split(" "), Ub=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],Ia=["fpDoor"],wb={None:"none",Arrow:"block;endFill=1","Hollow Arrow":"block;endFill=0","Open Arrow":"open;","CFN ERD Zero Or More Arrow":"ERzeroToMany;startSize=10","CFN ERD One Or More Arrow":"ERoneToMany;startSize=10","CFN ERD Many Arrow":"ERmany;startSize=10","CFN ERD Exactly One Arrow":"ERmandOne;startSize=10","CFN ERD Zero Or One Arrow":"ERzeroToOne;startSize=10","CFN ERD One Arrow":"ERone;startSize=16", Generalization:"block;endFill=0;startSize=12","Big Open Arrow":"open;startSize=10",Asynch1:"openAsync;flipH=1;startSize=10",Asynch2:"openAsync;startSize=10",Aggregation:"diamond;endFill=0;startSize=16",Composition:"diamond;endFill=1;startSize=16",BlockEnd:"none;endFill=1;startSize=16"},gb={DefaultTextBlockNew:"text;strokeColor=none;fillColor=none",DefaultTextBlock:"text;strokeColor=none;fillColor=none",DefaultSquareBlock:"",DefaultNoteBlock:"shape=note;size=15",DefaultNoteBlockV2:"shape=note;size=15", HotspotBlock:"strokeColor=none;opacity=50",ImageSearchBlock2:"shape=image",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",DocumentBlock:"shape=document",MultiDocumentBlock:"shape=mxgraph.flowchart.multi-document",ManualInputBlock:"shape=manualInput;size=15",PreparationBlock:"shape=hexagon;perimeter=hexagonPerimeter2",DataBlock:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",DataBlockNew:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0", DatabaseBlock:"shape=cylinder;size=0.1;anchorPointDirection=0;boundedLbl=1;",DirectAccessStorageBlock:"shape=cylinder;direction=south;size=0.1;anchorPointDirection=0;boundedLbl=1;",InternalStorageBlock:"shape=internalStorage;dx=10;dy=10",PaperTapeBlock:"shape=tape;size=0.2",ManualOperationBlockNew:"shape=trapezoid;perimeter=trapezoidPerimeter;anchorPointDirection=0;flipV=1",DelayBlock:"shape=delay",StoredDataBlock:"shape=dataStorage",MergeBlock:"triangle;direction=south;anchorPointDirection=0",ConnectorBlock:"ellipse", OrBlock:"shape=mxgraph.flowchart.summing_function",SummingJunctionBlock:"shape=mxgraph.flowchart.or",DisplayBlock:"shape=display",OffPageLinkBlock:"shape=offPageConnector",BraceNoteBlock:"mxCompositeShape",NoteBlock:"shape=mxgraph.flowchart.annotation_1",AdvancedSwimLaneBlock:"mxCompositeShape",AdvancedSwimLaneBlockRotated:"mxCompositeShape",RectangleContainerBlock:"fillColor=none;container=1",DiamondContainerBlock:"shape=rhombus;fillColor=none;container=1",RoundedRectangleContainerBlock:"fillColor=none;container=1;rounded=1;absoluteArcSize=1;arcSize=24", CircleContainerBlock:"shape=ellipse;fillColor=none;container=1",PillContainerBlock:"arcSize=50;fillColor=none;container=1",IsoscelesTriangleBlock:"triangle;direction=north;anchorPointDirection=0",RightTriangleBlock:"shape=mxgraph.basic.orthogonal_triangle",PentagonBlock:"shape=mxgraph.basic.pentagon",HexagonBlock:"shape=hexagon;perimeter=hexagonPerimeter2",OctagonBlock:"shape=mxgraph.basic.octagon",CrossBlock:"shape=cross;size=0.6",CloudBlock:"ellipse;shape=cloud",HeartBlock:"shape=mxgraph.basic.heart", RightArrowBlock:"shape=singleArrow;arrowWidth=0.5;arrowSize=0.3",DoubleArrowBlock:"shape=doubleArrow;arrowWidth=0.5;arrowSize=0.3",CalloutBlock:"shape=mxgraph.basic.rectangular_callout",ShapeCircleBlock:"ellipse",ShapePolyStarBlock:"shape=mxgraph.basic.star",ShapeDiamondBlock:"rhombus",UI2HotspotBlock:"opacity=50;strokeColor=none",AndroidDevice:"mxCompositeShape",AndroidAlertDialog:"mxCompositeShape",AndroidDateDialog:"mxCompositeShape",AndroidTimeDialog:"mxCompositeShape",AndroidListItems:"mxCompositeShape", AndroidTabs:"mxCompositeShape",AndroidProgressBar:"mxCompositeShape",AndroidImageBlock:"mxCompositeShape",AndroidTextBlock:"mxCompositeShape",AndroidActionBar:"mxCompositeShape",AndroidButton:"mxCompositeShape",AndroidTextBox:"mxCompositeShape",AndroidRadioButton:"mxCompositeShape",AndroidCheckBox:"mxCompositeShape",AndroidToggle:"mxCompositeShape",AndroidSlider:"mxCompositeShape",AndroidIconCheck:"shape=mxgraph.ios7.misc.check",AndroidIconCancel:"shape=mxgraph.atlassian.x",AndroidIconCollapse:"shape=mxgraph.ios7.misc.up", AndroidIconExpand:"shape=mxgraph.ios7.misc.down",AndroidIconNext:"shape=mxgraph.ios7.misc.right",AndroidIconPrevious:"shape=mxgraph.ios7.misc.left",AndroidIconRefresh:NaN,AndroidIconInformation:"shape=mxgraph.ios7.icons.info",AndroidIconSearch:"shape=mxgraph.ios7.icons.looking_glass",AndroidIconSettings:"shape=mxgraph.ios7.icons.volume;direction=south",AndroidIconTrash:"shape=mxgraph.ios7.icons.trashcan",AndroidIconEmail:"shape=mxgraph.mockup.misc.mail2",AndroidIconNew:"shape=mxgraph.ios7.misc.flagged", iOSDeviceiPhoneSE:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPhone6s:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPhone6sPlus:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPadPortrait:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadLandscape:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadProPortrait:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadProLandscape:"shape=mxgraph.ios7.misc.ipad10inch",iOSButton:"fillColor=none;strokeColor=none;",iOSSegmentedControl:"mxCompositeShape",iOSStepper:"shape=mxgraph.ios7.misc.adjust", iOSToggle:"shape=mxgraph.ios7ui.onOffButton;buttonState=on;strokeColor2=#aaaaaa;fillColor2=#ffffff",iOSSlider:"mxCompositeShape",iOSProgressBar:"mxCompositeShape",iOSPageControls:"mxCompositeShape",iOSStatusBar:"mxCompositeShape",iOSSearchBar:"mxCompositeShape",iOSNavBar:"mxCompositeShape",iOSTabs:"mxCompositeShape",iOSUniversalKeyboard:"shape=mxgraph.ios.iKeybLett",iOSDatePicker:"mxCompositeShape",iOSTimePicker:"mxCompositeShape",iOSCountdownPicker:"mxCompositeShape",iOSBasicCell:"mxCompositeShape", iOSSubtitleCell:"mxCompositeShape",iOSRightDetailCell:"mxCompositeShape",iOSLeftDetailCell:"mxCompositeShape",iOSTableGroupedSectionBreak:"mxCompositeShape",iOSTablePlainHeaderFooter:"mxCompositeShape",MindMapBlock:"",MindMapStadiumBlock:"arcSize=50",MindMapCloud:"shape=cloud",MindMapCircle:"shape=ellipse",MindMapIsoscelesTriangleBlock:"shape=triangle;direction=north",MindMapDiamondBlock:"shape=rhombus",MindMapPentagonBlock:"shape=mxgraph.basic.pentagon",MindMapHexagonBlock:"shape=hexagon;perimeter=hexagonPerimeter2", MindMapOctagonBlock:"shape=mxgraph.basic.octagon",MindMapCrossBlock:"shape=mxgraph.basic.cross2;dx=20",ERDEntityBlock:"mxCompositeShape",ERDEntityBlock2:"mxCompositeShape",ERDEntityBlock3:"mxCompositeShape",ERDEntityBlock4:"mxCompositeShape",SMPage:"shape=mxgraph.sitemap.page",SMHome:"shape=mxgraph.sitemap.home",SMGallery:"shape=mxgraph.sitemap.gallery",SMShopping:"shape=mxgraph.sitemap.shopping",SMMap:"shape=mxgraph.sitemap.map",SMAthletics:"shape=mxgraph.sitemap.sports",SMLogin:"shape=mxgraph.sitemap.login", SMPrint:"shape=mxgraph.sitemap.print",SMScript:"shape=mxgraph.sitemap.script",SMSearch:"shape=mxgraph.sitemap.search",SMSettings:"shape=mxgraph.sitemap.settings",SMSitemap:"shape=mxgraph.sitemap.sitemap",SMSuccess:"shape=mxgraph.sitemap.success",SMVideo:"shape=mxgraph.sitemap.video",SMAudio:"shape=mxgraph.sitemap.audio",SMBlog:"shape=mxgraph.sitemap.blog",SMCalendar:"shape=mxgraph.sitemap.calendar",SMChart:"shape=mxgraph.sitemap.chart",SMCloud:"shape=mxgraph.sitemap.cloud",SMDocument:"shape=mxgraph.sitemap.document", SMDownload:"shape=mxgraph.sitemap.download",SMError:"shape=mxgraph.sitemap.error",SMForm:"shape=mxgraph.sitemap.form",SMGame:"shape=mxgraph.sitemap.game",SMJobs:"shape=mxgraph.sitemap.jobs",SMLucid:"shape=mxgraph.sitemap.page",SMNewspress:"shape=mxgraph.sitemap.news",SMPhoto:"shape=mxgraph.sitemap.photo",SMPortfolio:"shape=mxgraph.sitemap.portfolio",SMPricing:"shape=mxgraph.sitemap.pricing",SMProfile:"shape=mxgraph.sitemap.profile",SMSlideshow:"shape=mxgraph.sitemap.slideshow",SMUpload:"shape=mxgraph.sitemap.upload", UMLClassBlock:"mxCompositeShape",UMLActiveClassBlock:"shape=process",UMLMultiplicityBlock:"mxCompositeShape",UMLPackageBlock:"shape=folder;tabPosition=left",UMLConstraintBlock:"mxCompositeShape",UMLNoteBlock:"shape=note;size=15",UMLTextBlock:"mxCompositeShape",UMLActorBlock:"shape=umlActor;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;whiteSpace=nowrap",UMLUseCaseBlock:"shape=ellipse",UMLCircleContainerBlock:"shape=ellipse;container=1",UMLRectangleContainerBlock:"container=1", UMLOptionLoopBlock:"shape=mxgraph.sysml.package2;xSize=90;overflow=fill",UMLAlternativeBlock2:"shape=mxgraph.sysml.package2;xSize=90;overflow=fill",UMLStartBlock:"shape=ellipse;fillColor=#000000",UMLStateBlock:"rounded=1;arcSize=20",UMLDecisionBlock:"shape=rhombus;",UMLHForkJoinBlock:"fillColor=#000000",UMLVForkJoinBlock:"fillColor=#000000",UMLFlowFinalBlock:"shape=mxgraph.flowchart.or",UMLHistoryStateBlock:"shape=ellipse",UMLEndBlock:"shape=mxgraph.bpmn.shape;outline=end;symbol=terminate;strokeColor=#000000;fillColor=#ffffff", UMLObjectBlock:"",UMLSendSignalBlock:"shape=mxgraph.sysml.sendSigAct",UMLReceiveSignalBlock:"shape=mxgraph.sysml.accEvent;flipH=1",UMLAcceptTimeEventActionBlock:"shape=mxgraph.sysml.timeEvent",UMLOffPageLinkBlock:"shape=mxgraph.sysml.sendSigAct;direction=south",UMLMultiLanePoolBlock:"mxCompositeShape",UMLMultiLanePoolRotatedBlock:"mxCompositeShape",UMLMultidimensionalSwimlane:"mxCompositeShape",UMLActivationBlock:"",UMLDeletionBlock:"shape=mxgraph.sysml.x;strokeWidth=4",UMLSeqEntityBlock:"shape=mxgraph.electrical.radio.microphone_1;direction=north", UMLComponentBlock:"shape=component;align=left;spacingLeft=36",UMLNodeBlock:"shape=cube;size=12;flipH=1",UMLComponentInterfaceBlock:"shape=ellipse",UMLComponentBoxBlock:"mxCompositeShape",UMLProvidedInterfaceBlock:"shape=lollipop;direction=south",UMLRequiredInterfaceBlock:"shape=requires;direction=north",UMLEntityBlock:"",UMLWeakEntityBlock:"shape=ext;double=1",UMLAttributeBlock:"shape=ellipse",UMLMultivaluedAttributeBlock:"shape=doubleEllipse",UMLRelationshipBlock:"shape=rhombus",UMLWeakRelationshipBlock:"shape=rhombus;double=1", BPMNActivity:"mxCompositeShape",BPMNEvent:"mxCompositeShape",BPMNChoreography:"mxCompositeShape",BPMNConversation:"mxCompositeShape",BPMNGateway:"mxCompositeShape",BPMNData:"mxCompositeShape",BPMNDataStore:"shape=datastore",BPMNAdvancedPoolBlock:"mxCompositeShape",BPMNAdvancedPoolBlockRotated:"mxCompositeShape",BPMNBlackPool:"mxCompositeShape",DFDExternalEntityBlock:"mxCompositeShape",DFDExternalEntityBlock2:"",YDMDFDProcessBlock:"shape=ellipse",YDMDFDDataStoreBlock:"shape=partialRectangle;right=0;left=0", GSDFDProcessBlock:"shape=swimlane;rounded=1;arcSize=10",GSDFDProcessBlock2:"rounded=1;arcSize=10;",GSDFDDataStoreBlock:"mxCompositeShape",GSDFDDataStoreBlock2:"shape=partialRectangle;right=0",OrgBlock:"",DefaultTableBlock:"mxCompositeShape",VSMCustomerSupplierBlock:"shape=mxgraph.lean_mapping.outside_sources",VSMDedicatedProcessBlock:"mxCompositeShape",VSMSharedProcessBlock:"mxCompositeShape",VSMWorkcellBlock:"mxCompositeShape",VSMDatacellBlock:"mxCompositeShape",VSMInventoryBlock:"mxCompositeShape", VSMSupermarketBlock:"mxCompositeShape",VSMPhysicalPullBlock:"shape=mxgraph.lean_mapping.physical_pull;direction=south",VSMFIFOLaneBlock:"mxCompositeShape",VSMSafetyBufferStockBlock:"mxCompositeShape",VSMExternalShipmentAirplaneBlock:"shape=mxgraph.lean_mapping.airplane_7",VSMExternalShipmentForkliftBlock:"shape=mxgraph.lean_mapping.move_by_forklift",VSMExternalShipmentTruckBlock:"shape=mxgraph.lean_mapping.truck_shipment",VSMExternalShipmentBoatBlock:"shape=mxgraph.lean_mapping.boat_shipment",VSMProductionControlBlock:"mxCompositeShape", VSMOtherInformationBlock:"",VSMSequencedPullBallBlock:"shape=mxgraph.lean_mapping.sequenced_pull_ball",VSMMRPERPBlock:"shape=mxgraph.lean_mapping.mrp_erp;whiteSpace=wrap",VSMLoadLevelingBlock:"shape=mxgraph.lean_mapping.load_leveling",VSMGoSeeBlock:"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1",VSMGoSeeProductionBlock:"mxCompositeShape",VSMVerbalInfoBlock:"shape=mxgraph.lean_mapping.verbal",VSMKaizenBurstBlock:"shape=mxgraph.lean_mapping.kaizen_lightening_burst",VSMOperatorBlock:"shape=mxgraph.lean_mapping.operator;flipV=1", VSMTimelineBlock:"mxCompositeShape",VSMQualityProblemBlock:"shape=mxgraph.lean_mapping.quality_problem",VSMProductionKanbanSingleBlock:"shape=card;size=18;flipH=1;",VSMProductionKanbanBatchBlock:"mxCompositeShape",VSMWithdrawalKanbanBlock:"shape=mxgraph.lean_mapping.withdrawal_kanban",VSMSignalKanbanBlock:"shape=triangle;direction=south;anchorPointDirection=0",VSMKanbanPostBlock:"shape=mxgraph.lean_mapping.kanban_post",VSMShipmentArrow:"shape=singleArrow;arrowWidth=0.5;arrowSize=0.13",VSMPushArrow:"shape=mxgraph.lean_mapping.push_arrow", AWSElasticComputeCloudBlock2:"mxCompositeShape",AWSInstanceBlock2:"strokeColor=none;shape=mxgraph.aws3.instance",AWSInstancesBlock2:"strokeColor=none;shape=mxgraph.aws3.instances;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAMIBlock2:"strokeColor=none;shape=mxgraph.aws3.ami;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSDBonInstanceBlock2:"strokeColor=none;shape=mxgraph.aws3.db_on_instance;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSInstanceCloudWatchBlock2:"strokeColor=none;shape=mxgraph.aws3.instance_with_cloudwatch;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSElasticIPBlock2:"strokeColor=none;shape=mxgraph.aws3.elastic_ip;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSHDFSClusterBlock2:"strokeColor=none;shape=mxgraph.aws3.hdfs_cluster;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAutoScalingBlock2:"strokeColor=none;shape=mxgraph.aws3.auto_scaling;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSEC2OptimizedInstance2:"strokeColor=none;shape=mxgraph.aws3.optimized_instance;verticalLabelPosition=bottom;align=center;verticalAlign=top", "AWSAmazonEC2(Spotinstance)":"strokeColor=none;shape=mxgraph.aws3.spot_instance;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAmazonECR:"strokeColor=none;shape=mxgraph.aws3.ecr;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAmazonECS:"strokeColor=none;shape=mxgraph.aws3.ecs;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSLambda2:"strokeColor=none;shape=mxgraph.aws3.lambda;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSElasticLoadBalancing:"strokeColor=none;shape=mxgraph.aws3.elastic_load_balancing;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSElasticLoadBlock2:"strokeColor=none;shape=mxgraph.aws3.classic_load_balancer;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSDirectConnectBlock3:"strokeColor=none;shape=mxgraph.aws3.direct_connect;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSElasticNetworkBlock2:"strokeColor=none;shape=mxgraph.aws3.elastic_network_interface;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSRoute53Block2:"mxCompositeShape",AWSHostedZoneBlock2:"strokeColor=none;shape=mxgraph.aws3.hosted_zone;fontColor=#FFFFFF;fontStyle=1", AWSRouteTableBlock2:"strokeColor=none;shape=mxgraph.aws3.route_table;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSVPCBlock2:"strokeColor=none;shape=mxgraph.aws3.vpc;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSVPNConnectionBlock2:"strokeColor=none;shape=mxgraph.aws3.vpn_connection;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSVPNGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.vpn_gateway;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSCustomerGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.customer_gateway;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSCustomerGatewayBlock3:"strokeColor=none;shape=mxgraph.aws3.customer_gateway;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSInternetGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.internet_gateway;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSRouterBlock2:"strokeColor=none;shape=mxgraph.aws3.router;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSRouterBlock3:"strokeColor=none;shape=mxgraph.aws3.router;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAmazonVPC(endpoints)":"strokeColor=none;shape=mxgraph.aws3.endpoints;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAmazonVPC(flowlogs)":"strokeColor=none;shape=mxgraph.aws3.flow_logs;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAmazonVPC(VPCNATgateway)":"strokeColor=none;shape=mxgraph.aws3.vpc_nat_gateway;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSVPCPeering3:"strokeColor=none;shape=mxgraph.aws3.vpc_peering;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSSimpleStorageBlock2:"strokeColor=none;shape=mxgraph.aws3.s3;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSBucketBlock2:"strokeColor=none;shape=mxgraph.aws3.bucket;fontStyle=1;fontColor=#ffffff",AWSBuckethWithObjectsBlock2:"strokeColor=none;shape=mxgraph.aws3.bucket_with_objects;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSObjectBlock2:"strokeColor=none;shape=mxgraph.aws3.object;fontStyle=1;fontColor=#ffffff", AWSImportExportBlock2:"strokeColor=none;shape=mxgraph.aws3.import_export;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSStorageGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.storage_gateway;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSElasticBlockStorageBlock2:"strokeColor=none;shape=mxgraph.aws3.volume;fontStyle=1;fontColor=#ffffff",AWSVolumeBlock3:"strokeColor=none;shape=mxgraph.aws3.volume;fontStyle=1;fontColor=#ffffff",AWSSnapshotBlock2:"strokeColor=none;shape=mxgraph.aws3.snapshot;fontStyle=1;fontColor=#ffffff", AWSGlacierArchiveBlock3:"strokeColor=none;shape=mxgraph.aws3.archive;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSGlacierVaultBlock3:"strokeColor=none;shape=mxgraph.aws3.vault;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAmazonEFS:"strokeColor=none;shape=mxgraph.aws3.efs;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSGlacierBlock2:"strokeColor=none;shape=mxgraph.aws3.glacier;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAWSImportExportSnowball:"strokeColor=none;shape=mxgraph.aws3.snowball;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSStorageGatewayCachedVolumn2:"strokeColor=none;shape=mxgraph.aws3.cached_volume;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSStorageGatewayNon-CachedVolumn2":"strokeColor=none;shape=mxgraph.aws3.non_cached_volume;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSStorageGatewayVirtualTapeLibrary2:"strokeColor=none;shape=mxgraph.aws3.virtual_tape_library;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSCloudFrontBlock2:"strokeColor=none;shape=mxgraph.aws3.cloudfront;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSDownloadDistBlock2:"strokeColor=none;shape=mxgraph.aws3.download_distribution;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSStreamingBlock2:"strokeColor=none;shape=mxgraph.aws3.streaming_distribution;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSEdgeLocationBlock2:"strokeColor=none;shape=mxgraph.aws3.edge_location;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSItemBlock2:"strokeColor=none;shape=mxgraph.aws3.item;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSItemsBlock2:"strokeColor=none;shape=mxgraph.aws3.items;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAttributeBlock2:"strokeColor=none;shape=mxgraph.aws3.attribute;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAttributesBlock2:"strokeColor=none;shape=mxgraph.aws3.attributes;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSRDBSBlock2:"mxCompositeShape",AWSRDSInstanceBlock2:"strokeColor=none;shape=mxgraph.aws3.rds_db_instance;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSRDSStandbyBlock2:"strokeColor=none;shape=mxgraph.aws3.rds_db_instance_standby_multi_az;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSRDSInstanceReadBlock2:"strokeColor=none;shape=mxgraph.aws3.rds_db_instance_read_replica;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSOracleDBBlock2:"strokeColor=none;shape=mxgraph.aws3.oracle_db_instance;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSMySQLDBBlock2:"strokeColor=none;shape=mxgraph.aws3.mysql_db_instance;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSDynamoDBBlock2:"strokeColor=none;shape=mxgraph.aws3.dynamo_db;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSSimpleDatabaseBlock3:"strokeColor=none;shape=mxgraph.aws2.database.simpledb;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSSimpleDatabaseDomainBlock3:"strokeColor=none;shape=mxgraph.aws2.database.simpledb_domain;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSTableBlock2:"strokeColor=none;shape=mxgraph.aws3.table;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSAmazonRedShiftBlock3:"strokeColor=none;shape=mxgraph.aws3.redshift;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSElastiCacheNodeBlock2:"strokeColor=none;shape=mxgraph.aws3.cache_node;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSElastiCacheBlock2:"strokeColor=none;shape=mxgraph.aws3.elasticache;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSDynamoDBGlobalSecondaryIndexes2:"strokeColor=none;shape=mxgraph.aws3.global_secondary_index;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSAmazonElastiCacheMemcache2:"strokeColor=none;shape=mxgraph.aws3.memcached;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAmazonElastiCacheRedis2:"strokeColor=none;shape=mxgraph.aws3.redis;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAmazonRDSMSSQLInstance2:"strokeColor=none;shape=mxgraph.aws3.ms_sql_instance_2;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSMSSQLDBBlock3:"strokeColor=none;shape=mxgraph.aws3.ms_sql_instance;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSAmazonRDSMySQLDBInstance2:"strokeColor=none;shape=mxgraph.aws3.mysql_db_instance_2;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAmazonRDSOracleDBInstance2:"strokeColor=none;shape=mxgraph.aws3.oracle_db_instance_2;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSRDSReplicasetswithPIOP2:"strokeColor=none;shape=mxgraph.aws3.piop;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAmazonRDSPostgreSQL2:"strokeColor=none;shape=mxgraph.aws3.postgre_sql_instance;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSRDSMasterSQL2:"strokeColor=none;shape=mxgraph.aws3.sql_master;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSRDSSlaveSQL2:"strokeColor=none;shape=mxgraph.aws3.sql_slave;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAmazonRedshift(densecomputenode)":"strokeColor=none;shape=mxgraph.aws3.dense_compute_node;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAmazonRedshift(densestoragenode)":"strokeColor=none;shape=mxgraph.aws3.dense_storage_node;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSAWSDatabaseMigrationService:"strokeColor=none;shape=mxgraph.aws3.database_migration_service;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSACM:"strokeColor=none;shape=mxgraph.aws3.certificate_manager;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAmazonInspector:"strokeColor=none;shape=mxgraph.aws3.inspector;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAWSCloudHSM:"strokeColor=none;shape=mxgraph.aws3.cloudhsm;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSDirectoryService2:"strokeColor=none;shape=mxgraph.aws3.directory_service;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAWSKMS:"strokeColor=none;shape=mxgraph.aws3.kms;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAWSWAF:"strokeColor=none;shape=mxgraph.aws3.waf;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSACM(certificate-manager)":"strokeColor=none;shape=mxgraph.aws3.certificate_manager_2;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSSESBlock2:"strokeColor=none;shape=mxgraph.aws3.ses;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSEmailBlock2:"strokeColor=none;shape=mxgraph.aws3.email;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSSNSBlock2:"strokeColor=none;shape=mxgraph.aws3.sns;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSSQSBlock3:"strokeColor=none;shape=mxgraph.aws3.sqs;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSQueueBlock2:"strokeColor=none;shape=mxgraph.aws3.queue;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSMessageBlock2:"strokeColor=none;shape=mxgraph.aws3.message;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSDeciderBlock2:"strokeColor=none;shape=mxgraph.aws3.decider;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSSWFBlock2:"strokeColor=none;shape=mxgraph.aws3.swf;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSWorkerBlock2:"strokeColor=none;shape=mxgraph.aws3.worker;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSCloudSearchBlock2:"strokeColor=none;shape=mxgraph.aws3.cloudsearch;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSCloudSearchMetadataBlock3:"strokeColor=none;shape=mxgraph.aws3.search_documents;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSElasticTranscoder3:"strokeColor=none;shape=mxgraph.aws3.elastic_transcoder;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAmazonAPIGateway:"strokeColor=none;shape=mxgraph.aws3.api_gateway;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAppStream2:"strokeColor=none;shape=mxgraph.aws3.appstream;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSCloudFormationBlock2:"strokeColor=none;shape=mxgraph.aws3.cloudformation;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSDataPipelineBlock3:"strokeColor=none;shape=mxgraph.aws3.data_pipeline;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSDataPipelineBlock2:"strokeColor=none;shape=mxgraph.aws3.data_pipeline;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSTemplageBlock2:"strokeColor=none;shape=mxgraph.aws3.template;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSStackBlock2:"strokeColor=none;shape=mxgraph.aws3.stack_aws_cloudformation;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSBeanStockBlock2:"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSApplicationBlock2:"strokeColor=none;shape=mxgraph.aws3.application;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSBeanstalkDeploymentBlock3:"strokeColor=none;shape=mxgraph.aws3.deployment;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSIAMBlock3:"strokeColor=none;shape=mxgraph.aws3.iam;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSIAMSTSBlock3:"strokeColor=none;shape=mxgraph.aws3.sts;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSIAMAddonBlock2:"strokeColor=none;shape=mxgraph.aws3.add_on;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSCloudWatchBlock3:"strokeColor=none;shape=mxgraph.aws3.cloudwatch;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSCloudWatchAlarmBlock2:"strokeColor=none;shape=mxgraph.aws3.alarm;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSIAMSecurityTokenService2:"strokeColor=none;shape=mxgraph.aws3.sts_2;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSIAMDataEncryptionKey2:"strokeColor=none;shape=mxgraph.aws3.data_encryption_key;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSIAMEncryptedData2:"strokeColor=none;shape=mxgraph.aws3.encrypted_data;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIAM(long-termsecuritycredential)":"strokeColor=none;shape=mxgraph.aws3.long_term_security_credential;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSIAMMFAToken2:"strokeColor=none;shape=mxgraph.aws3.mfa_token;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSIAMPermissions2:"strokeColor=none;shape=mxgraph.aws3.permissions_2;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSIAMRoles2:"strokeColor=none;shape=mxgraph.aws3.role;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIAM(temporarysecuritycredential)":"strokeColor=none;shape=mxgraph.aws3.long_term_security_credential;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSCloudTrail2:"strokeColor=none;shape=mxgraph.aws3.cloudtrail;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSConfig2:"strokeColor=none;shape=mxgraph.aws3.config;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSOpsWorksBlock3:"strokeColor=none;shape=mxgraph.aws3.opsworks;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAWSServiceCatalog:"strokeColor=none;shape=mxgraph.aws3.service_catalog;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSTrustedAdvisor2:"strokeColor=none;shape=mxgraph.aws3.trusted_advisor;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSOpsWorksApps2:"strokeColor=none;shape=mxgraph.aws3.apps;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSOpsWorksDeployments2:"strokeColor=none;shape=mxgraph.aws3.deployments;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSOpsWorksInstances2:"strokeColor=none;shape=mxgraph.aws3.instances_2;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSOpsWorksLayers2:"strokeColor=none;shape=mxgraph.aws3.layers;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSOpsWorksMonitoring2:"strokeColor=none;shape=mxgraph.aws3.monitoring;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSOpsWorksPermissions2:"strokeColor=none;shape=mxgraph.aws3.permissions;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSOpsWorksResources2:"strokeColor=none;shape=mxgraph.aws3.resources;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSOpsWorksStack2:"strokeColor=none;shape=mxgraph.aws3.stack_aws_opsworks;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSMechanicalTurkBlock3:"strokeColor=none;shape=mxgraph.aws3.mechanical_turk;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSHumanITBlock2:"strokeColor=none;shape=mxgraph.aws3.human_intelligence_tasks_hit;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAssignmentTaskBlock2:"strokeColor=none;shape=mxgraph.aws3.requester;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSWorkersBlock2:"strokeColor=none;shape=mxgraph.aws3.users;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSRequesterBlock2:"strokeColor=none;shape=mxgraph.aws3.assignment_task;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAndroidBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#96BF3D;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSiOSBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#CFCFCF;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSJavaBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#EE472A;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSJavaScript:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#205E00;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSNetBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#115193;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSNodeJSBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#8CC64F;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSPHPBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#5A69A4;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSPythonBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#FFD44F;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSRubyBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#AE1F23;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSXamarin:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#4090D7;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSCLIBlock3:"strokeColor=none;shape=mxgraph.aws3.cli;fillColor=#444444;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSEclipseToolkitBlock3:"strokeColor=none;shape=mxgraph.aws3.toolkit_for_eclipse;fillColor=#342074;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSVisualStudioToolkitBlock3:"strokeColor=none;shape=mxgraph.aws3.toolkit_for_visual_studio;fillColor=#53B1CB;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSWindowsPowershellToolkitBlock3:"strokeColor=none;shape=mxgraph.aws3.toolkit_for_windows_powershell;fillColor=#737373;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSAmazonElasticsearchService:"strokeColor=none;shape=mxgraph.aws3.elasticsearch_service;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSElasticMapReduceBlock2:"strokeColor=none;shape=mxgraph.aws3.emr;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSClusterBlock2:"strokeColor=none;shape=mxgraph.aws3.emr_cluster;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSEMREngine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSEMRMapRM3Engine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine_mapr_m3;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSEMRMapRM5Engine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine_mapr_m5;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSEMRMapRM7Engine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine_mapr_m7;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSKinesis2:"strokeColor=none;shape=mxgraph.aws3.kinesis;verticalLabelPosition=bottom;align=center;verticalAlign=top", "AWSAmazonKinesis(AmazonKinesisAnalytics)":"strokeColor=none;shape=mxgraph.aws3.kinesis;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSKinesisEnabledApp2:"strokeColor=none;shape=mxgraph.aws3.kinesis_enabled_app;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAmazonKinesis(AmazonKinesisFirehose)":"strokeColor=none;shape=mxgraph.aws3.kinesis_firehose;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAmazonKinesis(AmazonKinesisStreams)":"strokeColor=none;shape=mxgraph.aws3.kinesis_streams;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSAmazonMachineLearning:"strokeColor=none;shape=mxgraph.aws3.machine_learning;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAmazonQuickSight:"strokeColor=none;shape=mxgraph.aws3.quicksight;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSCognito2:"strokeColor=none;shape=mxgraph.aws3.cognito;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSMobileAnalytics2:"strokeColor=none;shape=mxgraph.aws3.mobile_analytics;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSAWSDeviceFarm:"strokeColor=none;shape=mxgraph.aws3.device_farm;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAWSMobileHub:"strokeColor=none;shape=mxgraph.aws3.mobile_hub;gradientColor=#AD688A;gradientDirection=east;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSTopicBlock2:"strokeColor=none;shape=mxgraph.aws3.topic_2;fontStyle=1;fontColor=#ffffff;verticalAlign=top;spacingTop=-5",AWSEmailNotificationBlock2:"strokeColor=none;shape=mxgraph.aws3.email_notification;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSHTTPNotificationBlock2:"strokeColor=none;shape=mxgraph.aws3.http_notification;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAWSCodeCommit:"strokeColor=none;shape=mxgraph.aws3.codecommit;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSCodeDeploy2:"strokeColor=none;shape=mxgraph.aws3.codedeploy;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAWSCodePipeline:"strokeColor=none;shape=mxgraph.aws3.codepipeline;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSWorkDocs2:"strokeColor=none;shape=mxgraph.aws3.workdocs;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAmazonWorkMail:"strokeColor=none;shape=mxgraph.aws3.workmail;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAmazonWorkSpaces2:"strokeColor=none;shape=mxgraph.aws3.workspaces;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAWSIoT:"strokeColor=none;shape=mxgraph.aws3.aws_iot;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(action)":"strokeColor=none;shape=mxgraph.aws3.action;verticalLabelPosition=bottom;align=center;verticalAlign=top", "AWSAWSIoT(actuator)":"strokeColor=none;shape=mxgraph.aws3.actuator;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(certificate)":"strokeColor=none;shape=mxgraph.aws3.certificate;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(desiredstate)":"strokeColor=none;shape=mxgraph.aws3.desired_state;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(hardwareboard)":"strokeColor=none;shape=mxgraph.aws3.hardware_board;verticalLabelPosition=bottom;align=center;verticalAlign=top", "AWSAWSIoT(HTTP2protocol)":"strokeColor=none;shape=mxgraph.aws3.http_2_protocol;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(HTTPprotocol)":"strokeColor=none;shape=mxgraph.aws3.http_protocol;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(MQTTprotocol)":"strokeColor=none;shape=mxgraph.aws3.mqtt_protocol;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(policy)":"strokeColor=none;shape=mxgraph.aws3.policy;verticalLabelPosition=bottom;align=center;verticalAlign=top", "AWSAWSIoT(reportedstate)":"strokeColor=none;shape=mxgraph.aws3.reported_state;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(rule)":"strokeColor=none;shape=mxgraph.aws3.rule;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(sensor)":"strokeColor=none;shape=mxgraph.aws3.sensor;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(servo)":"strokeColor=none;shape=mxgraph.aws3.servo;verticalLabelPosition=bottom;align=center;verticalAlign=top", "AWSAWSIoT(shadow)":"strokeColor=none;shape=mxgraph.aws3.shadow;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(simulator)":"strokeColor=none;shape=mxgraph.aws3.simulator;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(thingbank)":"strokeColor=none;shape=mxgraph.aws3.bank;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(thingbicycle)":"strokeColor=none;shape=mxgraph.aws3.bicycle;verticalLabelPosition=bottom;align=center;verticalAlign=top", "AWSAWSIoT(thingcamera)":"strokeColor=none;shape=mxgraph.aws3.camera;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(thingcar)":"strokeColor=none;shape=mxgraph.aws3.car;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(thingcart)":"strokeColor=none;shape=mxgraph.aws3.cart;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(thingcoffeepot)":"strokeColor=none;shape=mxgraph.aws3.coffee_pot;verticalLabelPosition=bottom;align=center;verticalAlign=top", "AWSAWSIoT(thingdoorlock)":"strokeColor=none;shape=mxgraph.aws3.door_lock;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(thingfactory)":"strokeColor=none;shape=mxgraph.aws3.factory;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(thinggeneric)":"strokeColor=none;shape=mxgraph.aws3.generic;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(thinghouse)":"strokeColor=none;shape=mxgraph.aws3.house;verticalLabelPosition=bottom;align=center;verticalAlign=top", "AWSAWSIoT(thinglightbulb)":"strokeColor=none;shape=mxgraph.aws3.lightbulb;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(thingmedicalemergency)":"strokeColor=none;shape=mxgraph.aws3.medical_emergency;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(thingpoliceemergency)":"strokeColor=none;shape=mxgraph.aws3.police_emergency;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(thingthermostat)":"strokeColor=none;shape=mxgraph.aws3.thermostat;verticalLabelPosition=bottom;align=center;verticalAlign=top", "AWSAWSIoT(thingtravel)":"strokeColor=none;shape=mxgraph.aws3.travel;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(thingutility)":"strokeColor=none;shape=mxgraph.aws3.utility;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(thingwindfarm)":"strokeColor=none;shape=mxgraph.aws3.windfarm;verticalLabelPosition=bottom;align=center;verticalAlign=top","AWSAWSIoT(topic)":"strokeColor=none;shape=mxgraph.aws3.topic;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSCloudBlock2:"strokeColor=none;shape=mxgraph.aws3.cloud;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSVPCloudBlock3:"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSUserBlock2:"strokeColor=none;shape=mxgraph.aws3.user;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSUsersBlock2:"strokeColor=none;shape=mxgraph.aws3.users;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSClientBlock2:"strokeColor=none;shape=mxgraph.aws3.management_console;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSMobileClientBlock2:"strokeColor=none;shape=mxgraph.aws3.mobile_client;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSGenericDatabaseBlock3:"strokeColor=none;shape=mxgraph.aws3.generic_database;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSDiskBlock3:"strokeColor=none;shape=mxgraph.aws3.disk;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSTapeStorageBlock3:"strokeColor=none;shape=mxgraph.aws3.tape_storage;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSMediaBlock2:"strokeColor=none;shape=mxgraph.aws3.multimedia;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSDataCenterBlock2:"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSServerBlock2:"strokeColor=none;shape=mxgraph.aws3.traditional_server;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSInternetBlock2:"strokeColor=none;shape=mxgraph.aws2.non-service_specific.internet;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSForumsBlock3:"strokeColor=none;shape=mxgraph.aws3.forums;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSManagementBlock2:"strokeColor=none;shape=mxgraph.aws3.management_console;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAmazonElasticCacheNode2:"strokeColor=none;shape=mxgraph.aws3.cache_node;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAmazonRedshiftDW1Cluster2:"strokeColor=none;shape=mxgraph.aws3.dense_compute_node;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSAmazonRedshiftDW2Cluster2:"strokeColor=none;shape=mxgraph.aws3.dense_storage_node;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAmazonRedshiftSSDFamilyCluster2:"strokeColor=none;shape=mxgraph.aws3.dense_storage_node;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAmazonRoute53RouteTable2:"strokeColor=none;shape=mxgraph.aws3.route_table;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSSubnetBlock2:"strokeColor=none;shape=mxgraph.aws3.permissions;verticalLabelPosition=bottom;align=center;verticalAlign=top", AWSRoundedRectangleContainerBlock2:"mxCompositeShape",ACAccessControlBlock:"strokeColor=none;shape=mxgraph.azure.access_control",ACAPIAppsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.api_app",ACAPIManagementBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.api_management",ACAppInsightsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.application_insights",ACAppServicesBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.app_service",ACAutoscalingBlock:"strokeColor=none;shape=mxgraph.azure.autoscale", ACAzureActiveDirectoryBlock:"strokeColor=none;shape=mxgraph.azure.azure_active_directory",ACAzurealertBlock:"strokeColor=none;shape=mxgraph.azure.azure_alert",ACAzureAutomationBlock:"strokeColor=none;shape=mxgraph.azure.automation",ACAzureBatchBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_batch",ACAzureRedisBlock:"strokeColor=none;shape=mxgraph.azure.azure_cache",ACAzureFilesBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_files_service",ACAzureloadbalancerBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_automatic_load_balancer", ACAzureMarketplaceBlock:"strokeColor=none;shape=mxgraph.azure.azure_marketplace",ACAzureRightManagementRMSBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_rights_management_rms",ACAzureSDKBlock:"strokeColor=none;shape=mxgraph.azure.azure_sdk",ACAzureSearchBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_search",ACAzureSQLdatabaseBlock:"strokeColor=none;shape=mxgraph.azure.sql_database_sql_azure",ACAzuresubscriptionBlock:"strokeColor=none;shape=mxgraph.azure.azure_subscription",ACAzureWebsitesBlock:"strokeColor=none;shape=mxgraph.azure.azure_website", ACBackupServiceBlock:"strokeColor=none;shape=mxgraph.azure.backup_service",ACBitbucketcodesourceBlock:"strokeColor=none;shape=mxgraph.azure.bitbucket_code_source",ACBizTalkServicesBlock:"strokeColor=none;shape=mxgraph.azure.biztalk_services",ACCloudServiceBlock:"strokeColor=none;shape=mxgraph.azure.cloud_service",ACCodePlexBlock:"strokeColor=none;shape=mxgraph.azure.codeplex_code_source",ACContentDeliveryNetworkBlock:"strokeColor=none;shape=mxgraph.azure.content_delivery_network",ACDataFactoryBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.data_factory", ACDocumentDBBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.documentdb",ACDropboxcodesourceBlock:"strokeColor=none;shape=mxgraph.azure.dropbox_code_source",ACEventsHubBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.event_hubs",ACExpressRouteBlock:"strokeColor=none;shape=mxgraph.azure.express_route",ACGitHubBlock:"strokeColor=none;shape=mxgraph.azure.github_code",ACGitrepositoryBlock:"strokeColor=none;shape=mxgraph.azure.git_repository",ACHDInsightBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.hdinsight", ACHealthmonitoringBlock:"strokeColor=none;shape=mxgraph.azure.health_monitoring",ACHealthyBlock:"strokeColor=none;shape=mxgraph.azure.healthy",ACHybridConnectionBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.hybrid_connections",ACBizTalkhybridconnectionBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.hybrid_connection_manager",ACKeyVaultBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.key_vault",ACLogicAppBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.logic_app",ACMachineLearningBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.machine_learning", ACMediaServicesBlock:"strokeColor=none;shape=mxgraph.azure.media_service",ACMicrosoftaccountBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.microsoft_account",ACMicrosoftAzureBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.microsoft_azure",ACMobileEngagementBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.mobile_engagement",ACMobileServicesBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.mobile_app",ACMultiFactorAuthBlock:"strokeColor=none;shape=mxgraph.azure.multi_factor_authentication",ACMySQLdatabaseBlock:"strokeColor=none;shape=mxgraph.azure.mysql_database", ACNotificationHubsBlock:"strokeColor=none;shape=mxgraph.azure.notification_hub",ACNotificationtopicBlock:"strokeColor=none;shape=mxgraph.azure.notification_topic",ACOperationalInsightsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.operational_insights",ACOSimageBlock:"strokeColor=none;shape=mxgraph.azure.operating_system_image",ACRemoteAppBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.remoteapp",ACrpdRemotingfileBlock:"strokeColor=none;shape=mxgraph.azure.rdp_remoting_file",ACSchedulerBlock:"strokeColor=none;shape=mxgraph.azure.scheduler", ACServiceBusBlock:"strokeColor=none;shape=mxgraph.azure.service_bus",ACServiceBusQueueBlock:"strokeColor=none;shape=mxgraph.azure.service_bus_queues",ACServiceBusRelayBlock:"strokeColor=none;shape=mxgraph.azure.service_bus_relay",ACServiceBusTopicBlock:"strokeColor=none;shape=mxgraph.azure.service_bus_topics_and_subscriptions",ACServiceEndpointBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.service_endpoint",ACServicepackageBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.service_package",ACSiteRecoveryBlock:"strokeColor=none;shape=mxgraph.azure.hyper_v_recovery_manager", ACSQLdatabasegenericBlock:"strokeColor=none;shape=mxgraph.azure.sql_database",ACSQLdatasyncBlock:"strokeColor=none;shape=mxgraph.azure.sql_datasync",ACSQLreportingdeprecatedBlock:"strokeColor=none;shape=mxgraph.azure.sql_reporting",ACStartuptaskBlock:"strokeColor=none;shape=mxgraph.azure.startup_task",ACStorageAzureBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_storage",ACStorageblobBlock:"strokeColor=none;shape=mxgraph.azure.storage_blob",ACStoragequeueBlock:"strokeColor=none;shape=mxgraph.azure.storage_queue", ACStoragetableBlock:"strokeColor=none;shape=mxgraph.azure.storage_table",ACStorSimpleBlock:"strokeColor=none;shape=mxgraph.azure.storsimple",ACStreamAnalyticsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.stream_analytics",ACTrafficManagerBlock:"strokeColor=none;shape=mxgraph.azure.traffic_manager",ACAlienBlock:"strokeColor=none;shape=mxgraph.azure.unidentified_code_object",ACVHDBlock:"strokeColor=none;shape=mxgraph.azure.vhd",ACVHDdatadiskBlock:"strokeColor=none;shape=mxgraph.azure.vhd_data_disk", ACVirtualmachineBlock:"strokeColor=none;shape=mxgraph.azure.virtual_machine",ACVirtualmachinecontainerBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.virtual_machine_container",ACVirtualnetworkBlock:"strokeColor=none;shape=mxgraph.azure.virtual_network",ACVisualStudioOnlineBlock:"strokeColor=none;shape=mxgraph.azure.visual_studio_online",ACVMsymbolonlyBlock:"strokeColor=none;shape=mxgraph.azure.virtual_machine_feature",ACWebJobsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.webjobs",ACWebroleBlock:"strokeColor=none;shape=mxgraph.azure.web_role", ACWebrolesBlock:"strokeColor=none;shape=mxgraph.azure.web_roles",ACWorkaccountBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.work_account",ACWorkerroleBlock:"strokeColor=none;shape=mxgraph.azure.worker_role",ACWorkerrolesBlock:"strokeColor=none;shape=mxgraph.azure.worker_roles",ADNSBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_dns",ACLoadBalancerBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_load_balancer_feature",ACResourceGroupBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.resource_group", ACVPNGatewayBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.vpn_gateway",AEActiveDirectoryFSPBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.d",AEADFSBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.ad_fs",AEAndroidPhoneBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.android_phone",AEappblankfortextBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.application_blank",AEAppGenericBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.app_generic",AEAppserverBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.application_server", AEBackuplocalBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.backup_local",AEBackuponlineBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.backup_online",AECalendarBlock:"strokeColor=none;shape=mxgraph.mscae.general.calendar",AECertificateBlock:"strokeColor=none;shape=mxgraph.azure.certificate",AEClientAppBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.client_application",AECloudBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.internet",AEClusterserverBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.cluster_server", AECodefileBlock:"strokeColor=none;shape=mxgraph.azure.code_file",AEConnectorsBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.connectors",AEDatabasegenericBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.database_generic",AEDatabaseserverBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.database_server",AEDatabasesyncBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.database_synchronization",AEDeviceBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.device",AEDirectaccessBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.direct_access_feature", AEDocumentBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.document",AEDomaincontrollerBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.domain_controller",AEEnterpriseBuildingBlock:"strokeColor=none;shape=mxgraph.azure.enterprise",AEFilegeneralBlock:"strokeColor=none;shape=mxgraph.azure.file",AEFilterBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.filter",AEFirewallBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.firewall",AEFolderBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.folder", AEGatewayBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.gateway",AEGenericcodeBlock:"strokeColor=none;shape=mxgraph.azure.code_file",AEGraphBlock:"strokeColor=none;shape=mxgraph.mscae.general.graph",AEHealthmonitoringBlock:"strokeColor=none;shape=mxgraph.azure.health_monitoring",AEHealthyBlock:"strokeColor=none;shape=mxgraph.azure.healthy",AEImportgenericBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.import_generic",AEInternetBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.internet", AEKeyboardBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.keyboard",AEKeypermissionsBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.key_permissions",AELaptopcomputerBlock:"strokeColor=none;shape=mxgraph.azure.laptop",AELoadbalancerBlock:"strokeColor=none;shape=mxgraph.azure.load_balancer_generic",AELoadTestingBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.load_testing",AELockprotectedBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.lock",AELockunprotectedBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.lock_unlocked", AEMaintenanceBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.maintenance",AEManagementconsoleBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.management_console",AEMessageBlock:"strokeColor=none;shape=mxgraph.azure.message",AEMonitorBlock:"strokeColor=none;shape=mxgraph.azure.computer",AEMonitorrunningappsBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.monitor_running_apps",AEMouseBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.mouse",AENetworkcardBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.network_card", AENotallowedBlock:"strokeColor=none;shape=mxgraph.mscae.general.not_allowed",AEPerformanceBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.performance",AEPerformancemonitorBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.performance_monitor",AEPhoneBlock:"strokeColor=none;shape=mxgraph.azure.mobile",AEPlugandplayBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.plug_and_play",AEPowershellscriptfileBlock:"strokeColor=none;shape=mxgraph.azure.powershell_file",AEProtocolstackBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.protocol_stack", AEQueuegeneralBlock:"strokeColor=none;shape=mxgraph.azure.queue_generic",AERMSconnectorBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.rms_connector",AERouterBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.router",AEScriptfileBlock:"strokeColor=none;shape=mxgraph.azure.script_file",AESecurevirtualmachineBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.secure_virtual_machine",AEServerbladeBlock:"strokeColor=none;shape=mxgraph.azure.server",AEServerdirectoryBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.server_directory", AEServerfarmBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.server_farm",AEServergenericBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.server_generic",AEServerrackBlock:"strokeColor=none;shape=mxgraph.azure.server_rack",AESettingsBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.settings",AESharedfolderBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.shared_folder",AESmartcardBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.smartcard",AEStorageBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.storage", AETableBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.table",AETabletBlock:"strokeColor=none;shape=mxgraph.azure.tablet",AEToolBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.tool",AETunnelBlock:"strokeColor=none;shape=mxgraph.mscae.general.tunnel",AEUnhealthyBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.unhealthy",AEUSBBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.usb",AEUserBlock:"strokeColor=none;shape=mxgraph.azure.user",AEVideoBlock:"strokeColor=none;shape=mxgraph.mscae.general.video", AEVirtualmachineBlock:"strokeColor=none;shape=mxgraph.azure.virtual_machine_feature",AEWebBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.web",AEWebserverBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.web_server",AEWindowsserverBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.windows_server",AEWirelessconnectionBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.wireless_connection",AEWorkstationclientBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.workstation_client", AEXMLwebserviceBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.xml_web_service",AGSAudioBlock:"strokeColor=none;shape=mxgraph.mscae.general.audio",AGSBugBlock:"strokeColor=none;shape=mxgraph.mscae.general.bug",AGSCablesettopTVboxBlock:"strokeColor=none;shape=mxgraph.mscae.general.cable_settop_tv_box",AGSCalendarBlock:"strokeColor=none;shape=mxgraph.mscae.general.calendar",AGSChartBlock:"strokeColor=none;shape=mxgraph.mscae.general.chart",AGSCheckmarkSuccessBlock:"strokeColor=none;shape=mxgraph.mscae.general.checkmark", AGSContinousCycleCircleBlock:"strokeColor=none;shape=mxgraph.mscae.general.continuous_cycle",AGSCrossoutFailureBlock:"strokeColor=none;shape=mxgraph.mscae.general.crossout",AGSCutandpasteBlock:"strokeColor=none;shape=mxgraph.mscae.general.cut_and_paste",AGSFolderBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.folder",AGSGamecontrollerBlock:"strokeColor=none;shape=mxgraph.mscae.general.game_controller",AGSGearsBlock:"strokeColor=none;shape=mxgraph.mscae.general.gears",AGSGraphBlock:"strokeColor=none;shape=mxgraph.mscae.general.graph", AGSLikeBlock:"strokeColor=none;shape=mxgraph.mscae.general.like",AGSNotallowedBlock:"strokeColor=none;shape=mxgraph.mscae.general.not_allowed",AGSSliderbarhorizontalBlock:"strokeColor=none;shape=mxgraph.mscae.general.slider_bar_horizontal",AGSSliderbarvertBlock:"strokeColor=none;shape=mxgraph.mscae.general.slider_bar_vertical",AGSTasklistorBacklogBlock:"strokeColor=none;shape=mxgraph.mscae.general.task_list",AGSTasksBlock:"strokeColor=none;shape=mxgraph.mscae.general.tasks",AGSTunnelBlock:"strokeColor=none;shape=mxgraph.mscae.general.tunnel", AGSUserBlock:"strokeColor=none;shape=mxgraph.azure.user",AGSVideoBlock:"strokeColor=none;shape=mxgraph.mscae.general.video",Cisco_cisco_androgenous_person:"shape=mxgraph.cisco.people.androgenous_person;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_atm_switch:"shape=mxgraph.cisco.switches.atm_switch;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_cloud:"shape=mxgraph.cisco.storage.cloud;strokeColor=#036897;fillColor=#ffffff",Cisco_cisco_fileserver:"shape=mxgraph.cisco.servers.fileserver;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_firewall:"shape=mxgraph.cisco.security.firewall;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_generic_building:"shape=mxgraph.cisco.buildings.generic_building;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_laptop:"shape=mxgraph.cisco.computers_and_peripherals.laptop;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_lock:"shape=mxgraph.cisco.security.lock;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_microwebserver:"shape=mxgraph.cisco.servers.microwebserver;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_pc:"shape=mxgraph.cisco.computers_and_peripherals.pc;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_pda:"shape=mxgraph.cisco.misc.pda;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_phone:"shape=mxgraph.cisco.modems_and_phones.hootphone;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_printer:"shape=mxgraph.cisco.computers_and_peripherals.printer;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_relational_database:"shape=mxgraph.cisco.storage.relational_database;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_router:"shape=mxgraph.cisco.routers.router;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_standing_man:"shape=mxgraph.cisco.people.standing_man;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_standing_woman:"shape=mxgraph.cisco.people.standing_woman;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_ups:"shape=mxgraph.cisco.misc.ups;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_wireless_router:"shape=mxgraph.cisco.routers.wireless_router;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_100baset_hub:"shape=mxgraph.cisco.hubs_and_gateways.100baset_hub;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_10700:"shape=mxgraph.cisco.routers.10700;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_10GE_FCoE:"shape=mxgraph.cisco.controllers_and_modules.10ge_fcoe;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_15200:"shape=mxgraph.cisco.misc.15200;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_3174__desktop_:"shape=mxgraph.cisco.controllers_and_modules.3174_(desktop)_cluster_controller;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_3200_mobile_access_router:"shape=mxgraph.cisco.routers.mobile_access_router;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_3x74__floor_:"shape=mxgraph.cisco.controllers_and_modules.3x74_(floor)_cluster_controller;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_6700_series:"shape=mxgraph.cisco.misc.6700_series;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_7500ars__7513_:"shape=mxgraph.cisco.misc.7500ars_(7513);fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_accesspoint:"shape=mxgraph.cisco.misc.access_point;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_ace:"shape=mxgraph.cisco.misc.ace;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_ACS:"shape=mxgraph.cisco.misc.acs;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_adm:"shape=mxgraph.cisco.misc.adm;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_antenna:"shape=mxgraph.cisco.wireless.antenna;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_asic_processor:"shape=mxgraph.cisco.misc.asic_processor;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_ASR_1000_Series:"shape=mxgraph.cisco.misc.asr_1000_series;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_ata:"shape=mxgraph.cisco.misc.ata;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_atm_3800:"shape=mxgraph.cisco.misc.atm_3800;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_atm_fast_gigabit_etherswitch:"shape=mxgraph.cisco.switches.atm_fast_gigabit_etherswitch;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_atm_router:"shape=mxgraph.cisco.routers.atm_router;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_atm_tag_switch_router:"shape=mxgraph.cisco.routers.atm_tag_switch_router;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_avs:"shape=mxgraph.cisco.misc.avs;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_AXP:"shape=mxgraph.cisco.misc.axp;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_bbsm:"shape=mxgraph.cisco.misc.bbsm;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_branch_office:"shape=mxgraph.cisco.buildings.branch_office;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_breakout_box:"shape=mxgraph.cisco.misc.breakout_box;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_bridge:"shape=mxgraph.cisco.misc.bridge;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_broadband_router:"shape=mxgraph.cisco.routers.broadcast_router;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_bts_10200:"shape=mxgraph.cisco.misc.bts_10200;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_cable_modem:"shape=mxgraph.cisco.modems_and_phones.cable_modem;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_callmanager:"shape=mxgraph.cisco.misc.call_manager;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_car:"shape=mxgraph.cisco.misc.car;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_carrier_routing_system:"shape=mxgraph.cisco.misc.carrier_routing_system;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_cddi_fddi:"shape=mxgraph.cisco.misc.cddi_fddi;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_cdm:"shape=mxgraph.cisco.misc.cdm;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_cellular_phone:"shape=mxgraph.cisco.modems_and_phones.cell_phone;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_centri_firewall:"shape=mxgraph.cisco.security.centri_firewall;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_cisco_1000:"shape=mxgraph.cisco.misc.cisco_1000;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_cisco_asa_5500:"shape=mxgraph.cisco.misc.asa_5500;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_cisco_ca:"shape=mxgraph.cisco.misc.cisco_ca;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_cisco_file_engine:"shape=mxgraph.cisco.storage.cisco_file_engine;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_cisco_hub:"shape=mxgraph.cisco.hubs_and_gateways.cisco_hub;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_ciscosecurity:"shape=mxgraph.cisco.security.cisco_security;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_cisco_unified_presence_server:"shape=mxgraph.cisco.servers.cisco_unified_presence_server;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_cisco_unityexpress:"shape=mxgraph.cisco.misc.cisco_unity_express;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_ciscoworks:"shape=mxgraph.cisco.misc.cisco_works;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_class_4_5_switch:"shape=mxgraph.cisco.switches.class_4_5_switch;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_communications_server:"shape=mxgraph.cisco.servers.communications_server;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_contact_center:"shape=mxgraph.cisco.misc.contact_center;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_content_engine__cache_director_:"shape=mxgraph.cisco.directors.content_engine_(cache_director);fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_content_service_router:"shape=mxgraph.cisco.routers.content_service_router;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_content_service_switch_1100:"shape=mxgraph.cisco.switches.content_service_switch_1100;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_content_switch_module:"shape=mxgraph.cisco.controllers_and_modules.content_switch_module;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_content_switch:"shape=mxgraph.cisco.switches.content_switch;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_content_transformation_engine__cte_:"shape=mxgraph.cisco.misc.content_transformation_engine_(cte);fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_cs_mars:"shape=mxgraph.cisco.misc.cs-mars;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_csm_s:"shape=mxgraph.cisco.misc.csm-s;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_csu_dsu:"shape=mxgraph.cisco.misc.csu_dsu;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_CUBE:"shape=mxgraph.cisco.misc.cube;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_detector:"shape=mxgraph.cisco.misc.detector;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_director_class_fibre_channel_director:"shape=mxgraph.cisco.directors.director-class_fibre_channel_director;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_directory_server:"shape=mxgraph.cisco.servers.directory_server;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_diskette:"shape=mxgraph.cisco.storage.diskette;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_distributed_director:"shape=mxgraph.cisco.directors.distributed_director;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_dot_dot:"shape=mxgraph.cisco.misc.dot-dot;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_dpt:"shape=mxgraph.cisco.misc.dpt;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_dslam:"shape=mxgraph.cisco.misc.dslam;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_dual_mode_ap:"shape=mxgraph.cisco.misc.dual_mode;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_dwdm_filter:"shape=mxgraph.cisco.misc.dwdm_filter;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_end_office:"shape=mxgraph.cisco.buildings.end_office;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_fax:"shape=mxgraph.cisco.modems_and_phones.fax;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_fc_storage:"shape=mxgraph.cisco.storage.fc_storage;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_fddi_ring:"shape=mxgraph.cisco.misc.fddi_ring;strokeColor=#036897;",Cisco_cisco_fibre_channel_disk_subsystem:"shape=mxgraph.cisco.storage.fibre_channel_disk_subsystem;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_fibre_channel_fabric_switch:"shape=mxgraph.cisco.switches.fibre_channel_fabric_switch;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_file_cabinet:"shape=mxgraph.cisco.storage.file_cabinet;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_file_server:"shape=mxgraph.cisco.servers.file_server;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_firewall_service_module__fwsm_:"shape=mxgraph.cisco.controllers_and_modules.firewall_service_module_(fwsm);fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_front_end_processor:"shape=mxgraph.cisco.misc.front_end_processor;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_gatekeeper:"shape=mxgraph.cisco.security.gatekeeper;strokeColor=#036897;",Cisco_cisco_general_applicance:"shape=mxgraph.cisco.misc.general_appliance;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_generic_gateway:"shape=mxgraph.cisco.hubs_and_gateways.generic_gateway;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_generic_processor:"shape=mxgraph.cisco.misc.generic_processor;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_generic_softswitch:"shape=mxgraph.cisco.switches.generic_softswitch;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_gigabit_switch_atm_tag_router:"shape=mxgraph.cisco.routers.gigabit_switch_atm_tag_router;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_government_building:"shape=mxgraph.cisco.buildings.government_building;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_Ground_terminal:"shape=mxgraph.cisco.wireless.ground_terminal;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_guard:"shape=mxgraph.cisco.security.guard;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_handheld:"shape=mxgraph.cisco.misc.handheld;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_hootphone:"shape=mxgraph.cisco.modems_and_phones.hootphone;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_host:"shape=mxgraph.cisco.servers.host;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_hp_mini:"shape=mxgraph.cisco.misc.hp_mini;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_h:"shape=mxgraph.cisco.misc.h_323;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_hub:"shape=mxgraph.cisco.hubs_and_gateways.hub;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_iad_router:"shape=mxgraph.cisco.routers.iad_router;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_ibm_mainframe:"shape=mxgraph.cisco.computers_and_peripherals.ibm_mainframe;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_ibm_mini_as400:"shape=mxgraph.cisco.computers_and_peripherals.ibm_mini_as400;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_ibm_tower:"shape=mxgraph.cisco.computers_and_peripherals.ibm_tower;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_icm:"shape=mxgraph.cisco.misc.icm;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_ics:"shape=mxgraph.cisco.misc.ics;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_intelliswitch_stack:"shape=mxgraph.cisco.switches.intelliswitch_stack;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_ios_firewall:"shape=mxgraph.cisco.security.ios_firewall;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_ios_slb:"shape=mxgraph.cisco.misc.ios_slb;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_ip_communicator:"shape=mxgraph.cisco.misc.ip_communicator;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_ip_dsl:"shape=mxgraph.cisco.misc.ip_dsl;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_ip_phone:"shape=mxgraph.cisco.modems_and_phones.ip_phone;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_ip:"shape=mxgraph.cisco.misc.ip;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_iptc:"shape=mxgraph.cisco.misc.iptc;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_ip_telephony_router:"shape=mxgraph.cisco.routers.ip_telephony_router;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_iptv_content_manager:"shape=mxgraph.cisco.misc.iptv_content_manager;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_iptv_server:"shape=mxgraph.cisco.servers.iptv_server;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_iscsi_router:"shape=mxgraph.cisco.routers.isci_router;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_isdn_switch:"shape=mxgraph.cisco.switches.isdn_switch;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_itp:"shape=mxgraph.cisco.misc.itp;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_jbod:"shape=mxgraph.cisco.misc.jbod;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_key:"shape=mxgraph.cisco.misc.key;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_keys:"shape=mxgraph.cisco.misc.keys;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_lan_to_lan:"shape=mxgraph.cisco.misc.lan_to_lan;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_layer_2_remote_switch:"shape=mxgraph.cisco.switches.layer_2_remote_switch;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_layer_3_switch:"shape=mxgraph.cisco.switches.layer_3_switch;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_lightweight_ap:"shape=mxgraph.cisco.misc.lightweight_ap;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_localdirector:"shape=mxgraph.cisco.directors.localdirector;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_longreach_cpe:"shape=mxgraph.cisco.misc.longreach_cpe;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_macintosh:"shape=mxgraph.cisco.computers_and_peripherals.macintosh;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_mac_woman:"shape=mxgraph.cisco.people.mac_woman;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_man_woman:"shape=mxgraph.cisco.people.man_woman;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_mas_gateway:"shape=mxgraph.cisco.hubs_and_gateways.mas_gateway;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_mau:"shape=mxgraph.cisco.misc.mau;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_mcu:"shape=mxgraph.cisco.misc.mcu;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_mdu:"shape=mxgraph.cisco.buildings.mdu;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_me_1100:"shape=mxgraph.cisco.misc.me1100;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_Mediator:"shape=mxgraph.cisco.misc.mediator;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_meetingplace:"shape=mxgraph.cisco.misc.meetingplace;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_mesh_ap:"shape=mxgraph.cisco.misc.mesh_ap;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_metro_1500:"shape=mxgraph.cisco.misc.metro_1500;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_mgx_8000_multiservice_switch:"shape=mxgraph.cisco.switches.mgx_8000_multiservice_switch;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_microphone:"shape=mxgraph.cisco.computers_and_peripherals.microphone;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_mini_vax:"shape=mxgraph.cisco.misc.mini_vax;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_mobile_access_ip_phone:"shape=mxgraph.cisco.modems_and_phones.mobile_access_ip_phone;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_mobile_access_router:"shape=mxgraph.cisco.routers.mobile_access_router;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_modem:"shape=mxgraph.cisco.modems_and_phones.modem;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_moh_server:"shape=mxgraph.cisco.servers.moh_server;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_MSE:"shape=mxgraph.cisco.misc.mse;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_mulitswitch_device:"shape=mxgraph.cisco.switches.multiswitch_device;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_multi_fabric_server_switch:"shape=mxgraph.cisco.switches.multi-fabric_server_switch;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_multilayer_remote_switch:"shape=mxgraph.cisco.switches.multilayer_remote_switch;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_mux:"shape=mxgraph.cisco.misc.mux;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_MXE:"shape=mxgraph.cisco.misc.mxe;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_nac_appliance:"shape=mxgraph.cisco.misc.nac_appliance;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_NCE:"shape=mxgraph.cisco.misc.nce;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_NCE_router:"shape=mxgraph.cisco.routers.nce_router;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_netflow_router:"shape=mxgraph.cisco.routers.netflow_router;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_netranger:"shape=mxgraph.cisco.misc.netranger;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_netsonar:"shape=mxgraph.cisco.misc.netsonar;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_network_management:"shape=mxgraph.cisco.misc.network_management;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_Nexus_1000:"shape=mxgraph.cisco.misc.nexus_1000;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_Nexus_2000:"shape=mxgraph.cisco.misc.nexus_2000_fabric_extender;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_Nexus_5000:"shape=mxgraph.cisco.misc.nexus_5000;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_Nexus_7000:"shape=mxgraph.cisco.misc.nexus_7000;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_octel:"shape=mxgraph.cisco.misc.octel;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_ons15500:"shape=mxgraph.cisco.misc.ons15500;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_optical_amplifier:"shape=mxgraph.cisco.misc.optical_amplifier;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_optical_services_router:"shape=mxgraph.cisco.routers.optical_services_router;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_optical_transport:"shape=mxgraph.cisco.misc.optical_transport;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_pad:"shape=mxgraph.cisco.misc.pad_2;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_pad_x:"shape=mxgraph.cisco.misc.pad_1;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_page_icon:"shape=mxgraph.cisco.misc.page_icon;strokeColor=#036897;",Cisco_cisco_pbx:"shape=mxgraph.cisco.misc.pbx;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_pbx_switch:"shape=mxgraph.cisco.switches.pbx_switch;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_pc_adapter_card:"shape=mxgraph.cisco.computers_and_peripherals.pc_adapter_card;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_pc_man:"shape=mxgraph.cisco.people.pc_man;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_pc_routercard:"shape=mxgraph.cisco.computers_and_peripherals.pc_routercard;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_pc_software:"shape=mxgraph.cisco.misc.pc_software;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_pc_video:"shape=mxgraph.cisco.misc.pc_video;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_phone_fax:"shape=mxgraph.cisco.modems_and_phones.phone-fax;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_pix_firewall:"shape=mxgraph.cisco.security.pix_firewall;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_pmc:"shape=mxgraph.cisco.misc.pmc;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_programmable_switch:"shape=mxgraph.cisco.switches.programmable_switch;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_protocol_translator:"shape=mxgraph.cisco.misc.protocol_translator;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_pxf:"shape=mxgraph.cisco.misc.pxf;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_radio_tower:"shape=mxgraph.cisco.wireless.radio_tower;strokeColor=#036897",Cisco_cisco_ratemux:"shape=mxgraph.cisco.misc.ratemux;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_repeater:"shape=mxgraph.cisco.misc.repeater;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_RF_modem:"shape=mxgraph.cisco.modems_and_phones.rf_modem;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_router_firewall:"shape=mxgraph.cisco.security.router_firewall;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_routerin_building:"shape=mxgraph.cisco.routers.router_in_building;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_router_with_silicon_switch:"shape=mxgraph.cisco.routers.router_with_silicon_switch;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_route_switch_processor:"shape=mxgraph.cisco.misc.route_switch_processor;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_rpsrps:"shape=mxgraph.cisco.misc.rpsrps;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_running_man:"shape=mxgraph.cisco.people.running_man;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_sattelite_dish:"shape=mxgraph.cisco.wireless.satellite_dish;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_sattelite:"shape=mxgraph.cisco.wireless.satellite;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_scanner:"shape=mxgraph.cisco.computers_and_peripherals.scanner;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_server_switch:"shape=mxgraph.cisco.switches.server_switch;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_server_with_router:"shape=mxgraph.cisco.servers.server_with_router;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_service_control:"shape=mxgraph.cisco.misc.service_control;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_Service_Module:"shape=mxgraph.cisco.controllers_and_modules.service_module;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_Service_router:"shape=mxgraph.cisco.routers.service_router;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_Services:"shape=mxgraph.cisco.misc.services;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_Set_top_box:"shape=mxgraph.cisco.misc.set_top_box;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_simulitlayer_switch:"shape=mxgraph.cisco.switches.simultilayer_switch;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_sip_proxy_werver:"shape=mxgraph.cisco.servers.sip_proxy_server;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_sitting_woman:"shape=mxgraph.cisco.people.sitting_woman;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_small_business:"shape=mxgraph.cisco.buildings.small_business;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_small_hub:"shape=mxgraph.cisco.hubs_and_gateways.small_hub;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_softphone:"shape=mxgraph.cisco.modems_and_phones.softphone;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_softswitch_pgw_mgc:"shape=mxgraph.cisco.switches.softswitch_pgw_mgc;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_software_based_server:"shape=mxgraph.cisco.servers.software_based_server;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_speaker:"shape=mxgraph.cisco.computers_and_peripherals.speaker;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_ssc:"shape=mxgraph.cisco.misc.ssc;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_ssl_terminator:"shape=mxgraph.cisco.misc.ssl_terminator;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_standard_host:"shape=mxgraph.cisco.servers.standard_host;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_stb:"shape=mxgraph.cisco.misc.stb;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_storage_router:"shape=mxgraph.cisco.routers.storage_router;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_storage_server:"shape=mxgraph.cisco.servers.storage_server;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_stp:"shape=mxgraph.cisco.misc.stp;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_streamer:"shape=mxgraph.cisco.misc.streamer;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_sun_workstation:"shape=mxgraph.cisco.computers_and_peripherals.workstation;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_supercomputer:"shape=mxgraph.cisco.computers_and_peripherals.supercomputer;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_svx:"shape=mxgraph.cisco.misc.svx;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_system_controller:"shape=mxgraph.cisco.controllers_and_modules.system_controller;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_tablet:"shape=mxgraph.cisco.computers_and_peripherals.tablet;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_tape_array:"shape=mxgraph.cisco.storage.tape_array;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_tdm_router:"shape=mxgraph.cisco.routers.tdm_router;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_telecommuter_house_pc:"shape=mxgraph.cisco.buildings.telecommuter_house_pc;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_telecommuter_house:"shape=mxgraph.cisco.buildings.telecommuter_house;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_telecommuter_icon:"shape=mxgraph.cisco.misc.telecommuter_icon;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_Telepresence_3200:"shape=mxgraph.cisco.misc.telepresence;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_terminal:"shape=mxgraph.cisco.computers_and_peripherals.terminal;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_token:"shape=mxgraph.cisco.misc.token;strokeColor=#036897", Cisco_cisco_TP_MCU:"shape=mxgraph.cisco.misc.tp_mcu;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_transpath:"shape=mxgraph.cisco.misc.transpath;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_truck:"shape=mxgraph.cisco.misc.truck;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_turret:"shape=mxgraph.cisco.misc.turret;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_tv:"shape=mxgraph.cisco.misc.tv;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_ubr910:"shape=mxgraph.cisco.misc.ubr910;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_umg_series:"shape=mxgraph.cisco.misc.umg_series;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_unity_server:"shape=mxgraph.cisco.servers.unity_server;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_universal_gateway:"shape=mxgraph.cisco.hubs_and_gateways.universal_gateway;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_university:"shape=mxgraph.cisco.buildings.university;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_upc:"shape=mxgraph.cisco.computers_and_peripherals.upc;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_vault:"shape=mxgraph.cisco.misc.vault;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_video_camera:"shape=mxgraph.cisco.computers_and_peripherals.video_camera;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_vip:"shape=mxgraph.cisco.misc.vip;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_virtual_layer_switch:"shape=mxgraph.cisco.switches.virtual_layer_switch;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_virtual_switch_controller__vsc3000_:"shape=mxgraph.cisco.controllers_and_modules.virtual_switch_controller_(vsc3000);fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_voice_atm_switch:"shape=mxgraph.cisco.switches.voice_atm_switch;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_voice_commserver:"shape=mxgraph.cisco.servers.voice_commserver;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_voice_router:"shape=mxgraph.cisco.routers.voice_router;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_voice_switch:"shape=mxgraph.cisco.switches.voice_switch;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_vpn_concentrator:"shape=mxgraph.cisco.misc.vpn_concentrator;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_vpn_gateway:"shape=mxgraph.cisco.hubs_and_gateways.vpn_gateway;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_VSS:"shape=mxgraph.cisco.misc.vss;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_wae:"shape=mxgraph.cisco.misc.wae;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_wavelength_router:"shape=mxgraph.cisco.routers.wavelength_router;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_web_browser:"shape=mxgraph.cisco.computers_and_peripherals.web_browser;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_web_cluster:"shape=mxgraph.cisco.storage.web_cluster;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_wi_fi_tag:"shape=mxgraph.cisco.wireless.wi-fi_tag;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_wireless_bridge:"shape=mxgraph.cisco.wireless.wireless_bridge;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_wireless_location_appliance:"shape=mxgraph.cisco.wireless.wireless_location_appliance;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_wireless:"shape=mxgraph.cisco.wireless.wireless;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_wireless_transport:"shape=mxgraph.cisco.wireless.wireless_transport;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_wism:"shape=mxgraph.cisco.misc.wism;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_wlan_controller:"shape=mxgraph.cisco.wireless.wlan_controller;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_workgroup_director:"shape=mxgraph.cisco.directors.workgroup_director;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_workgroup_switch:"shape=mxgraph.cisco.switches.workgroup_switch;fillColor=#036897;strokeColor=#ffffff", Cisco_cisco_workstation:"shape=mxgraph.cisco.computers_and_peripherals.workstation;fillColor=#036897;strokeColor=#ffffff",Cisco_cisco_www_server:"shape=mxgraph.cisco.servers.www_server;fillColor=#036897;strokeColor=#ffffff",NET_PC:"shape=mxgraph.networks.pc;fillColor=#29AAE1","NET_Virtual-PC":"shape=mxgraph.networks.virtual_pc;fillColor=#29AAE1",NET_Terminal:"shape=mxgraph.networks.terminal;fillColor=#29AAE1",NET_DataPipe:"shape=mxgraph.networks.bus;fillColor=#29AAE1",NET_SlateDevice:"shape=mxgraph.networks.tablet;fillColor=#29AAE1", NET_TabletDevice:"shape=mxgraph.networks.tablet;fillColor=#29AAE1",NET_Laptop:"shape=mxgraph.networks.laptop;fillColor=#29AAE1",NET_PDA:"shape=mxgraph.networks.mobile;fillColor=#29AAE1",NET_CRTMonitor:"shape=mxgraph.networks.monitor;fillColor=#29AAE1",NET_LCDMonitor:"shape=mxgraph.networks.monitor;fillColor=#29AAE1",NET_RadioTower:"shape=mxgraph.networks.radio_tower;fillColor=#29AAE1",NET_ExternalHardDrive:"shape=mxgraph.networks.external_storage;fillColor=#29AAE1",NET_SatelliteDish:"shape=mxgraph.networks.satellite_dish;fillColor=#29AAE1", NET_Satellite:"shape=mxgraph.networks.satellite;fillColor=#29AAE1",NET_WirelessAccessPoint:"shape=mxgraph.networks.radio_tower;fillColor=#29AAE1",NET_RingNetwork:"mxCompositeShape",NET_Ethernet:"mxCompositeShape",NET_Server:"shape=mxgraph.networks.server;fillColor=#29AAE1",NET_Mainframe:"shape=mxgraph.networks.mainframe;fillColor=#29AAE1",NET_Router:"shape=mxgraph.networks.wireless_hub;fillColor=#29AAE1",NET_Switch:"shape=mxgraph.networks.switch;fillColor=#29AAE1",NET_Firewall:"shape=mxgraph.networks.firewall;fillColor=#29AAE1", NET_User:"shape=mxgraph.networks.user_male;fillColor=#29AAE1",NET_CommLink:"shape=mxgraph.networks.comm_link_edge;fillColor=#29AAE1",NET_SuperComputer:"shape=mxgraph.networks.supercomputer;fillColor=#29AAE1",NET_VirtualServer:"shape=mxgraph.networks.virtual_server;fillColor=#29AAE1",NET_Printer:"shape=mxgraph.networks.printer;fillColor=#29AAE1",NET_Scanner:"shape=mxgraph.networks.scanner;fillColor=#29AAE1",NET_Copier:"shape=mxgraph.networks.copier;fillColor=#29AAE1",NET_MultiFunctionMachine:"shape=mxgraph.networks.copier;fillColor=#29AAE1", NET_Projector:"shape=mxgraph.networks.video_projector;fillColor=#29AAE1",NET_ProjectorScreen:"shape=mxgraph.networks.video_projector_screen;fillColor=#29AAE1",NET_Bridge:"shape=mxgraph.networks.router;fillColor=#29AAE1",NET_Hub:"shape=mxgraph.networks.hub;fillColor=#29AAE1",NET_Modem:"shape=mxgraph.networks.modem;fillColor=#29AAE1",NET_Telephone:"shape=mxgraph.signs.tech.telephone_5;fillColor=#29AAE1",NET_CellPhone:"shape=mxgraph.networks.mobile;fillColor=#29AAE1",NET_SmartPhone:"shape=mxgraph.networks.mobile;fillColor=#29AAE1", NET_Camera:"shape=mxgraph.signs.tech.camera_2;fillColor=#29AAE1",RackServerRack:"shape=mxgraph.rackGeneral.container;container=1;collapsible=0;childLayout=rack;marginLeft=9;marginRight=9;marginTop=21;marginBottom=22;textColor=#000000;numDisp=off",RackBlank:"shape=mxgraph.rackGeneral.plate;strokeColor=#666666;labelPosition=left;align=right;spacingRight=15;fillColor=#e8e8e8",RackRaidArray:"shape=mxgraph.rack.cisco.cisco_carrier_packet_transport_50;labelPosition=left;align=right;spacingRight=15",RackServer:"shape=mxgraph.rack.oracle.sunfire_x4100;labelPosition=left;align=right;spacingRight=15", RackEthernetSwitch:"shape=mxgraph.rack.cisco.cisco_nexus_3016_switch;labelPosition=left;align=right;spacingRight=15",RackPatchPanel:"shape=mxgraph.rack.general.cat5e_rack_mount_patch_panel_24_ports;strokeColor=#666666;labelPosition=left;align=right;spacingRight=15",RackRouter:"shape=mxgraph.rack.cisco.cisco_asr_1001_router;labelPosition=left;align=right;spacingRight=15",RackMonitor:"shape=mxgraph.rack.ibm.ibm_1u_flat_panel_console_kit;labelPosition=left;align=right;spacingRight=15",RackKeyboard:"shape=mxgraph.rack.cisco.cisco_1905_serial_integrated_services_router;labelPosition=left;align=right;spacingRight=15", RackPowerStrip:"shape=mxgraph.rack.dell.power_strip;labelPosition=left;align=right;spacingRight=15",RackPowerSupply:"shape=mxgraph.rack.cisco.cisco_web_security_appliance_s170;labelPosition=left;align=right;spacingRight=15",RackBridge:"shape=mxgraph.rack.cisco.cisco_nexus_5548p_switch;labelPosition=left;align=right;spacingRight=15",RackTapeDrive:"shape=mxgraph.rack.ibm.ibm_1754_local_console_manager;labelPosition=left;align=right;spacingRight=15",Image_network_server:"image;image=img/lib/clip_art/computers/Server_Tower_128x128.png;flipH=1", Image_network_server_file:"image;image=img/lib/clip_art/computers/Server_128x128.png",Image_network_server_net:"image;image=img/lib/clip_art/networking/Print_Server_128x128.png",Image_network_server_net_large:"image;image=img/lib/clip_art/computers/Server_128x128.png",Image_network_raid:"image;image=img/lib/clip_art/computers/Server_Tower_128x128.png;flipH=1",Image_network_raid_large:"image;image=img/lib/clip_art/computers/Server_Tower_128x128.png;flipH=1",Image_network_rack_server:"image;image=img/lib/clip_art/computers/Server_Rack_128x128.png", Image_network_rack_tape:"image;image=img/lib/clip_art/computers/Server_Rack_Partial_128x128.png",Image_network_printer_small:"image;image=img/lib/clip_art/computers/Printer_128x128.png;flipH=1",Image_network_printer_large:"image;image=img/lib/clip_art/computers/Printer_128x128.png;flipH=1",Image_network_printer_multipurpose:"image;image=img/lib/clip_art/computers/Printer_Commercial_128x128.png;flipH=1",Image_network_copier_small:"image;image=img/lib/clip_art/computers/Printer_Commercial_128x128.png", Image_network_copier_large:"image;image=img/lib/clip_art/computers/Printer_Commercial_128x128.png",Image_network_router:"image;image=img/lib/clip_art/networking/Router_128x128.png",Image_network_router_wireless:"image;image=img/lib/clip_art/networking/Wireless_Router_128x128.png",Image_network_ups:"image;image=img/lib/clip_art/networking/UPS_128x128.png",Image_electronics_lcd:"image;image=img/lib/clip_art/computers/Monitor_128x128.png",Image_electronics_pda:"image;image=img/lib/clip_art/telecommunication/Palm_Treo_128x128.png", Image_electronics_drive_cardreader:"image;image=img/lib/clip_art/finance/Credit_Card_128x128.png",Image_electronics_camcorder:"image;image=img/lib/clip_art/networking/Ip_Camera_128x128.png",Image_electronics_printer_photo:"image;image=img/lib/clip_art/computers/Printer_128x128.png;flipH=1",Image_electronics_drive_firewire:"image;image=img/lib/clip_art/computers/Harddrive_128x128.png;flipH=1",Image_electronics_drive_usb:"image;image=img/lib/clip_art/computers/Harddrive_128x128.png;flipH=1",Image_electronics_modem_external:"image;image=img/lib/clip_art/networking/Modem_128x128.png;flipH=1", Image_electronics_lcd_wide:"image;image=img/lib/clip_art/computers/Monitor_128x128.png",EE_Amplifier:"shape=mxgraph.electrical.abstract.amplifier",EE_OpAmp:"mxCompositeShape",EE_ControlledAmp:"shape=mxgraph.electrical.abstract.controlled_amplifier",EE_Multiplexer:"shape=mxgraph.electrical.abstract.mux",EE_Demultiplexer:"shape=mxgraph.electrical.abstract.demux;",EE_Capacitor1:"shape=mxgraph.electrical.capacitors.capacitor_1",EE_Capacitor2:"shape=mxgraph.electrical.capacitors.capacitor_3",EE_Diode:"shape=mxgraph.electrical.diodes.diode", EE_Resistor:"shape=mxgraph.electrical.resistors.resistor_2",EE_VarResistor:"shape=mxgraph.electrical.resistors.variable_resistor_2",EE_Potentiometer:"shape=mxgraph.electrical.resistors.potentiometer_2",EE_ProtGround:"shape=mxgraph.electrical.signal_sources.protective_earth",EE_SignalGround:"shape=mxgraph.electrical.signal_sources.signal_ground",EE_Transformer:"shape=mxgraph.electrical.inductors.transformer_1",EE_Inductor:"shape=mxgraph.electrical.inductors.inductor_3","EE_Variable Inductor":"shape=mxgraph.electrical.inductors.variable_inductor", EE_TwoWaySwitch:"shape=mxgraph.electrical.electro-mechanical.2-way_switch",EE_OnOffSwitch:"shape=mxgraph.electrical.electro-mechanical.simple_switch",EE_Loudspeaker:"shape=mxgraph.electrical.electro-mechanical.loudspeaker",EE_Motor:"shape=mxgraph.electrical.electro-mechanical.motor_1",EE_LED1:"shape=mxgraph.electrical.opto_electronics.led_2",EE_Lightbulb:"shape=mxgraph.electrical.miscellaneous.light_bulb",EE_AcSource:"shape=mxgraph.electrical.signal_sources.ac_source;strokeWidth=1",EE_VoltageSource:"shape=mxgraph.electrical.signal_sources.dc_source_3", EE_CurrentSource:"shape=mxgraph.electrical.signal_sources.dc_source_2;direction=north",EE_ControlledCurrentSource:"shape=mxgraph.electrical.signal_sources.dependent_source_2;direction=west",EE_ControlledVoltageSource:"shape=mxgraph.electrical.signal_sources.dependent_source_3",EE_DcSource1:"shape=mxgraph.electrical.miscellaneous.monocell_battery;flipH=1;verticalLabelPosition=bottom;verticalAlign=top",EE_DcSource2:"shape=mxgraph.electrical.miscellaneous.multicell_battery;flipH=1;verticalLabelPosition=bottom;verticalAlign=top", EE_Vss:"shape=mxgraph.electrical.signal_sources.vss2;verticalLabelPosition=top;verticalAlign=bottom;fontSize=24",EE_Vdd:"shape=mxgraph.electrical.signal_sources.vdd;verticalLabelPosition=bottom;verticalAlign=top",EE_BJT_NPN1:"shape=mxgraph.electrical.transistors.pnp_transistor_1",EE_BJT_PNP1:"shape=mxgraph.electrical.transistors.npn_transistor_1",EE_JFET_P:"shape=mxgraph.electrical.transistors.p-channel_jfet_1;flipV=1",EE_JFET_N:"shape=mxgraph.electrical.transistors.n-channel_jfet_1",EE_MOSFET_P1:"shape=mxgraph.electrical.mosfets1.mosfet_ic_p;flipV=1", EE_MOSFET_P2:"shape=mxgraph.electrical.mosfets1.mosfet_p_no_bulk",EE_MOSFET_P3:"shape=mxgraph.electrical.mosfets1.p-channel_mosfet_1;flipV=1",EE_MOSFET_N1:"shape=mxgraph.electrical.mosfets1.mosfet_ic_n",EE_MOSFET_N2:"shape=mxgraph.electrical.mosfets1.mosfet_n_no_bulk",EE_MOSFET_N3:"shape=mxgraph.electrical.mosfets1.n-channel_mosfet_1",EE_AND:"shape=mxgraph.electrical.logic_gates.and",EE_OR:"shape=mxgraph.electrical.logic_gates.or",EE_Inverter:"shape=mxgraph.electrical.logic_gates.inverter",EE_NAND:"shape=mxgraph.electrical.logic_gates.nand", EE_NOR:"shape=mxgraph.electrical.logic_gates.nor",EE_XOR:"shape=mxgraph.electrical.logic_gates.xor",EE_NXOR:"shape=mxgraph.electrical.logic_gates.xnor",EE_DTypeRSFlipFlop:"shape=mxgraph.electrical.logic_gates.d_type_rs_flip-flop",EE_DTypeFlipFlop:"shape=mxgraph.electrical.logic_gates.d_type_flip-flop",EE_DTypeFlipFlopWithClear:"shape=mxgraph.electrical.logic_gates.d_type_flip-flop_with_clear",EE_RSLatch:"shape=mxgraph.electrical.logic_gates.rs_latch",EE_SyncRSLatch:"shape=mxgraph.electrical.logic_gates.synchronous_rs_latch", EE_TTypeFlipFlop:"shape=mxgraph.electrical.logic_gates.t_type_flip-flop",EE_Plus:"shape=mxgraph.ios7.misc.flagged",EE_Negative:"shape=line",EE_InverterContact:"shape=ellipse",EE_Voltmeter:"shape=mxgraph.electrical.instruments.voltmeter",EE_Ammeter:"shape=mxgraph.electrical.instruments.ampermeter",EE_SineWave:"shape=mxgraph.electrical.waveforms.sine_wave",EE_Sawtooth:"shape=mxgraph.electrical.waveforms.sawtooth",EE_SquareWave:"shape=mxgraph.electrical.waveforms.square_wave",EIChannelBlock:"shape=mxgraph.eip.messageChannel;verticalLabelPosition=bottom;verticalAlign=top", EIMessageChannelBlock:"mxCompositeShape",EIMessageBlock:"mxCompositeShape",EIMessageRouterBlock:"shape=mxgraph.eip.content_based_router;verticalLabelPosition=bottom;verticalAlign=top",EIMessageTranslatorBlock:"shape=mxgraph.eip.message_translator;verticalLabelPosition=bottom;verticalAlign=top",EIMessageEndpointBlock:"mxCompositeShape",EIPublishSubscribeChannelBlock:"mxCompositeShape",EIDatatypeChannelBlock:"mxCompositeShape",EIInvalidMessageChannelBlock:"mxCompositeShape",EIDeadLetterChannelBlock:"mxCompositeShape", EIGuaranteedDeliveryBlock:"mxCompositeShape",EIChannelAdapterBlock:"mxCompositeShape",EIMessagingBridgeBlock:"shape=mxgraph.eip.messaging_bridge;verticalLabelPosition=bottom;verticalAlign=top",EIMessageBusBlock:"mxCompositeShape",EICommandMessageBlock:"mxCompositeShape",EIDocumentMessageBlock:"mxCompositeShape",EIEventMessageBlock:"mxCompositeShape",EIRequestReplyBlock:"mxCompositeShape",EIReturnAddressBlock:"mxCompositeShape",EICorrelationIDBlock:"mxCompositeShape",EIMessageSequenceBlock:"mxCompositeShape", EIMessageExpirationBlock:"mxCompositeShape",EIContentBasedRouterBlock:"shape=mxgraph.eip.content_based_router;verticalLabelPosition=bottom;verticalAlign=top",EIMessageFilterBlock:"shape=mxgraph.eip.message_filter;verticalLabelPosition=bottom;verticalAlign=top",EIDynamicRouterBlock:"shape=mxgraph.eip.dynamic_router;verticalLabelPosition=bottom;verticalAlign=top",EIRecipientListBlock:"shape=mxgraph.eip.recipient_list;verticalLabelPosition=bottom;verticalAlign=top",EISplitterBlock:"shape=mxgraph.eip.splitter;verticalLabelPosition=bottom;verticalAlign=top", EIAggregatorBlock:"shape=mxgraph.eip.aggregator;verticalLabelPosition=bottom;verticalAlign=top",EIResequencerBlock:"shape=mxgraph.eip.resequencer;verticalLabelPosition=bottom;verticalAlign=top",EIComposedMessageBlock:"shape=mxgraph.eip.composed_message_processor;verticalLabelPosition=bottom;verticalAlign=top",EIRoutingSlipBlock:"shape=mxgraph.eip.routing_slip;verticalLabelPosition=bottom;verticalAlign=top",EIProcessManagerBlock:"shape=mxgraph.eip.process_manager;verticalLabelPosition=bottom;verticalAlign=top", EIMessageBrokerBlock:"mxCompositeShape",EIEnvelopeWrapperBlock:"shape=mxgraph.eip.envelope_wrapper;verticalLabelPosition=bottom;verticalAlign=top",EIContentEnricherBlock:"shape=mxgraph.eip.content_enricher;verticalLabelPosition=bottom;verticalAlign=top",EIContentFilterBlock:"shape=mxgraph.eip.content_filter;verticalLabelPosition=bottom;verticalAlign=top",EIClaimCheckBlock:"shape=mxgraph.eip.claim_check;verticalLabelPosition=bottom;verticalAlign=top",EINormalizerBlock:"shape=mxgraph.eip.normalizer;verticalLabelPosition=bottom;verticalAlign=top", EIMessagingGatewayBlock:"shape=mxgraph.eip.messaging_gateway;verticalLabelPosition=bottom;verticalAlign=top",EITransactionalClientBlock:"shape=mxgraph.eip.transactional_client;verticalLabelPosition=bottom;verticalAlign=top",EIPollingConsumerBlock:"shape=mxgraph.eip.polling_consumer;verticalLabelPosition=bottom;verticalAlign=top",EIEventDrivenConsumerBlock:"shape=mxgraph.eip.event_driven_consumer;verticalLabelPosition=bottom;verticalAlign=top",EICompetingConsumersBlock:"shape=mxgraph.eip.competing_consumers;verticalLabelPosition=bottom;verticalAlign=top", EIMessageDispatcherBlock:"shape=mxgraph.eip.message_dispatcher;verticalLabelPosition=bottom;verticalAlign=top",EISelectiveConsumerBlock:"shape=mxgraph.eip.selective_consumer;verticalLabelPosition=bottom;verticalAlign=top",EIDurableSubscriberBlock:"mxCompositeShape",EIServiceActivatorBlock:"shape=mxgraph.eip.service_activator;verticalLabelPosition=bottom;verticalAlign=top",EIControlBusBlock:"mxCompositeShape",EIDetourBlock:"shape=mxgraph.eip.detour;verticalLabelPosition=bottom;verticalAlign=top",EIWireTapBlock:"shape=mxgraph.eip.wire_tap;verticalLabelPosition=bottom;verticalAlign=top", EIMessageHistoryBlock:"mxCompositeShape",EIMessageStoreBlock:"shape=mxgraph.eip.message_store;verticalLabelPosition=bottom;verticalAlign=top",EISmartProxyBlock:"shape=mxgraph.eip.smart_proxy;verticalLabelPosition=bottom;verticalAlign=top",EITestMessageBlock:"shape=mxgraph.eip.test_message;verticalLabelPosition=bottom;verticalAlign=top",EIChannelPurgerBlock:"shape=mxgraph.eip.channel_purger;verticalLabelPosition=bottom;verticalAlign=top",GCPIconComputeEngineBlock:"strokeColor=none;shape=mxgraph.gcp.compute.compute_engine;verticalLabelPosition=bottom;verticalAlign=top", GCPIconAppEngineBlock:"strokeColor=none;shape=mxgraph.gcp.compute.app_engine;verticalLabelPosition=bottom;verticalAlign=top",GCPIconContainerEngineBlock:"strokeColor=none;shape=mxgraph.gcp.compute.container_engine;verticalLabelPosition=bottom;verticalAlign=top",GCPIconContainerRegistryBlock:"strokeColor=none;shape=mxgraph.gcp.compute.container_registry;verticalLabelPosition=bottom;verticalAlign=top",GCPIconCloudFunctionsBlock:"strokeColor=none;shape=mxgraph.gcp.compute.cloud_functions;verticalLabelPosition=bottom;verticalAlign=top", GCPIconCloudStorageBlock:"strokeColor=none;shape=mxgraph.gcp.storage_databases.cloud_storage;verticalLabelPosition=bottom;verticalAlign=top",GCPIconCloudSQLBlock:"strokeColor=none;shape=mxgraph.gcp.storage_databases.cloud_sql;verticalLabelPosition=bottom;verticalAlign=top",GCPIconCloudBigtableBlock:"strokeColor=none;shape=mxgraph.gcp.storage_databases.cloud_bigtable;verticalLabelPosition=bottom;verticalAlign=top",GCPIconCloudDatastoreBlock:"strokeColor=none;shape=mxgraph.gcp.storage_databases.cloud_datastore;verticalLabelPosition=bottom;verticalAlign=top", GCPIconPersistentDiskBlock:"strokeColor=none;shape=mxgraph.gcp.storage_databases.persistent_disk;verticalLabelPosition=bottom;verticalAlign=top",GCPIconCloudVirtualNetworkBlock:"strokeColor=none;shape=mxgraph.gcp.networking.cloud_virtual_network;verticalLabelPosition=bottom;verticalAlign=top",GCPIconCloudLoadBalancingBlock:"strokeColor=none;shape=mxgraph.gcp.networking.cloud_load_balancing;verticalLabelPosition=bottom;verticalAlign=top",GCPIconCloudCDNBlock:"strokeColor=none;shape=mxgraph.gcp.networking.cloud_cdn;verticalLabelPosition=bottom;verticalAlign=top", GCPIconCloudInterconnectBlock:"strokeColor=none;shape=mxgraph.gcp.networking.cloud_interconnect;verticalLabelPosition=bottom;verticalAlign=top",GCPIconCloudDNSBlock:"strokeColor=none;shape=mxgraph.gcp.networking.cloud_dns;verticalLabelPosition=bottom;verticalAlign=top",GCPIconBigQueryBlock:"strokeColor=none;shape=mxgraph.gcp.big_data.bigquery;verticalLabelPosition=bottom;verticalAlign=top",GCPIconCloudDataflowBlock:"strokeColor=none;shape=mxgraph.gcp.big_data.cloud_dataflow;verticalLabelPosition=bottom;verticalAlign=top", GCPIconCloudDataprocBlock:"strokeColor=none;shape=mxgraph.gcp.big_data.cloud_dataproc;verticalLabelPosition=bottom;verticalAlign=top",GCPIconCloudDatalabBlock:"strokeColor=none;shape=mxgraph.gcp.big_data.cloud_datalab;verticalLabelPosition=bottom;verticalAlign=top",GCPIconCloudPubSubBlock:"strokeColor=none;shape=mxgraph.gcp.big_data.cloud_pubsub;verticalLabelPosition=bottom;verticalAlign=top",GCPIconGenomicsBlock:"strokeColor=none;shape=mxgraph.gcp.big_data.genomics;verticalLabelPosition=bottom;verticalAlign=top", GCPIconCloudMachineLearningServicesBlock:"strokeColor=none;shape=mxgraph.gcp.machine_learning.cloud_machine_learning;verticalLabelPosition=bottom;verticalAlign=top",GCPIconVisionAPIBlock:"strokeColor=none;shape=mxgraph.gcp.machine_learning.vision_api;verticalLabelPosition=bottom;verticalAlign=top",GCPIconSpeechAPIBlock:"strokeColor=none;shape=mxgraph.gcp.machine_learning.speech_api;verticalLabelPosition=bottom;verticalAlign=top",GCPIconNaturalLanguageAPIBlock:"strokeColor=none;shape=mxgraph.gcp.machine_learning.natural_language_api;verticalLabelPosition=bottom;verticalAlign=top", GCPIconTranslateAPIBlock:"strokeColor=none;shape=mxgraph.gcp.machine_learning.translation_api;verticalLabelPosition=bottom;verticalAlign=top",GCPIconStackdriverOverviewBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.stackdriver;verticalLabelPosition=bottom;verticalAlign=top",GCPIconMonitoringBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.monitoring;verticalLabelPosition=bottom;verticalAlign=top",GCPIconErrorReportingBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.error_reporting;verticalLabelPosition=bottom;verticalAlign=top", GCPIconTraceBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.trace;verticalLabelPosition=bottom;verticalAlign=top",GCPIconDebuggerBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.debugger;verticalLabelPosition=bottom;verticalAlign=top",GCPIconDeploymentManagerBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.deployment_manager;verticalLabelPosition=bottom;verticalAlign=top",GCPIconCloudEndpointsBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.cloud_endpoints;verticalLabelPosition=bottom;verticalAlign=top", GCPIconCloudToolsForPowerShellBlock:"strokeColor=none;shape=mxgraph.gcp.developer_tools.cloud_tools_for_powershell;verticalLabelPosition=bottom;verticalAlign=top",GCPIconCloudToolsForVisualStudioBlock:"strokeColor=none;shape=mxgraph.gcp.developer_tools.cloud_tools_for_visual_studio;verticalLabelPosition=bottom;verticalAlign=top",GCPIconCloudIAMBlock:"strokeColor=none;shape=mxgraph.gcp.identity_and_security.cloud_iam;verticalLabelPosition=bottom;verticalAlign=top",GCPIconGCPLogoBlock:"strokeColor=none;shape=mxgraph.gcp.extras.generic_gcp;verticalLabelPosition=bottom;verticalAlign=top", GCPIconBlankBlock:"strokeColor=none;shape=mxgraph.gcp.extras.blue_hexagon;verticalLabelPosition=bottom;verticalAlign=top",Equation:"mxCompositeShape",fpWall:"",fpWindow:"shape=mxgraph.floorplan.window",fpOpening:"shape=rect",fpDoor:"mxCompositeShape",fpDoubleDoor:"mxCompositeShape",fpStairs:"shape=mxgraph.floorplan.stairs;direction=north",fpStairsDirectional:"shape=mxgraph.floorplan.stairs;direction=north;verticalAlign=bottom",fpDeskLongSegment:"",fpDeskShortSegment:"",fpDeskLargeCornerSegment:"shape=mxgraph.floorplan.desk_corner", fpCubiclePanel:"shape=mxgraph.floorplan.wall;wallThickness=3",fpCubicleWorkstation:"shape=mxgraph.floorplan.wallU;wallThickness=3",fpCubicleCorner5x5:"shape=mxgraph.floorplan.wallCorner;wallThickness=3",fpCubicleCorner6x6:"shape=mxgraph.floorplan.wallCorner;wallThickness=3",fpCubicleCorner8x8:"shape=mxgraph.floorplan.wallCorner;wallThickness=3",fpCubicleCorner8x6:"shape=mxgraph.floorplan.wallCorner;wallThickness=3",fpCubicleCornerOpen6x4:"shape=mxgraph.floorplan.wallCorner;wallThickness=3",fpCubicleDouble14x8:"shape=mxgraph.floorplan.wallU;wallThickness=3", fpCubicleEnclosed11x9:"shape=mxgraph.floorplan.wallU;wallThickness=3",fpTableConferenceOval:"shape=ellipse",fpTableConferenceBoat:"",fpTableConferenceRectangle:"",fpTableDiningRound:"shape=ellipse",fpTableDiningSquare:"",fpChairOffice:"shape=mxgraph.floorplan.office_chair",fpChairExecutive:"shape=mxgraph.floorplan.office_chair",fpChairLobby:"shape=mxgraph.floorplan.office_chair",fpChairDining:"shape=mxgraph.floorplan.chair",fpChairBarstool:"shape=ellipse",fpCabinetBasic:"",fpCabinetDoubleWide:"", fpCabinetDoubleWithShelves:"",fpCabinetShelvesBasic:"",fpCabinetShelvesDouble:"",fpCabinetBasicWithShelves:"",fpCabinetsAboveDeskShelves:"",fpRestroomToiletPrivate:"shape=mxgraph.floorplan.toilet",fpRestroomToiletPublic:"shape=mxgraph.floorplan.toilet",fpRestroomLights:"mxCompositeShape",fpRestroomSinks:"mxCompositeShape",fpRestroomBathtub:"shape=mxgraph.floorplan.bathtub;direction=south",fpRestroomShower:"shape=mxgraph.floorplan.shower;flipH=1",fpRestroomPedastalSink:"shape=mxgraph.floorplan.sink_1", fpRestroomCountertop:"",fpRestroomMirror:"shape=line;strokeWidth=3",fpRestroomStalls:"mxCompositeShape",fpBedDouble:"shape=mxgraph.floorplan.bed_double",fpBedSingle:"shape=mxgraph.floorplan.bed_single",fpBedQueen:"shape=mxgraph.floorplan.bed_double",fpBedKing:"shape=mxgraph.floorplan.bed_double",fpBedDoubleWithTrundle:"shape=mxgraph.floorplan.bed_double",fpBedBunk:"shape=mxgraph.floorplan.bed_double",fpBedBassinet:"shape=mxgraph.pid.fittings.compensator",fpApplianceWasher:"",fpApplianceDryer:"",fpApplianceWaterHeater:"shape=ellipse", fpApplianceStoveOven:"shape=mxgraph.floorplan.range_1",fpStoveOvenSixBurner:"shape=mxgraph.floorplan.range_2",fpApplianceDishwasher:"",fpKitchenSink:"shape=mxgraph.floorplan.sink_2",fpKitchenDoubleSink:"shape=mxgraph.floorplan.sink_double",fpKitchenCountertop:"",fpKitchenCountertopCorner:"shape=mxgraph.floorplan.desk_corner",fpCouchLoveSeat:"shape=mxgraph.floorplan.couch",fpCouchSofa:"shape=mxgraph.floorplan.couch",fpCouchOttoman:"",fpMiscDesktopComputer:"shape=mxgraph.floorplan.workstation",fpMiscLaptopComputer:"shape=mxgraph.floorplan.laptop", fpComputerMonitor:"shape=mxgraph.floorplan.flat_tv",fpCRTTelevision:"shape=mxgraph.floorplan.flat_tv",fpMiscIndoorPlant:"shape=mxgraph.floorplan.plant",fpPiano:"shape=mxgraph.floorplan.piano",PEAxialCompressor:"shape=mxgraph.pid.compressors.centrifugal_compressor_-_turbine_driven;verticalLabelPosition=bottom;verticalAlign=top",PECentrifugalCompressor:"shape=mxgraph.pid.compressors.centrifugal_compressor;verticalLabelPosition=bottom;verticalAlign=top",PECentrifugalCompressor2:"shape=mxgraph.pid.compressors.centrifugal_compressor_-_turbine_driven;verticalLabelPosition=bottom;verticalAlign=top", PEReciprocationCompressor:"shape=mxgraph.pid.compressors.reciprocating_compressor;verticalLabelPosition=bottom;verticalAlign=top",PERotaryCompressorBlock:"shape=mxgraph.pid.compressors.rotary_compressor;verticalLabelPosition=bottom;verticalAlign=top",PERotaryCompressor2Block:"shape=mxgraph.pid.compressors.compressor_and_silencers;verticalLabelPosition=bottom;verticalAlign=top",PEConveyorBlock:"shape=mxgraph.pid2misc.conveyor;verticalLabelPosition=bottom;verticalAlign=top",PEElevator1Block:"shape=mxgraph.pid.misc.bucket_elevator;flipH=1;verticalLabelPosition=bottom;verticalAlign=top", PEAgitatorMixerBlock:"shape=mxgraph.pid.agitators.agitator_(propeller);verticalLabelPosition=bottom;verticalAlign=top",PEDrumBlock:"shape=mxgraph.pid.vessels.drum_or_condenser;verticalLabelPosition=bottom;verticalAlign=top",PETankEquipmentBlock:"shape=mxgraph.pid.vessels.tank;verticalLabelPosition=bottom;verticalAlign=top",PEMixingReactorBlock:"shape=mxgraph.pid.vessels.mixing_reactor;verticalLabelPosition=bottom;verticalAlign=top",PEPlateTowerBlock:"shape=mxgraph.pid2misc.column;columnType=baffle;verticalLabelPosition=bottom;verticalAlign=top", PEPackedTowerBlock:"shape=mxgraph.pid2misc.column;columnType=fixed;verticalLabelPosition=bottom;verticalAlign=top",PEFurnaceBlock:"shape=mxgraph.pid.vessels.furnace;verticalLabelPosition=bottom;verticalAlign=top",PEOneToMany:"mxCompositeShape",PEMultilines:"mxCompositeShape",PEMidArrow:"shape=triangle;anchorPointDirection=0",PEButtWeld:"shape=mxgraph.sysml.x",PETopToTop:"shape=mxgraph.pid.vessels.container,_tank,_cistern",PENuclear:"shape=mxgraph.electrical.waveforms.sine_wave",PEMechanicalLink:"shape=ellipse", PESolderedSolvent:"shape=ellipse",PEDoubleContainment:"shape=hexagon;perimeter=hexagonPerimeter2",PEFlange:"shape=mxgraph.pid.piping.double_flange",PEFlange2:"shape=mxgraph.pid.piping.flange_in;flipH=1",PEEndCap:"shape=mxgraph.pid.piping.cap",PEEndCap2:"shape=mxgraph.pid.vessels.container,_tank,_cistern;direction=north",PEBreather:"shape=mxgraph.pid.piping.breather",PEElectronicallyInsulated:"shape=mxgraph.pid.piping.double_flange",PEReducer:"shape=mxgraph.pid.piping.concentric_reducer",PEInlineMixer:"shape=mxgraph.pid.piping.in-line_mixer", PEFlameArrester:"shape=mxgraph.pid.piping.flame_arrestor",PEDetonationArrester:"shape=mxgraph.pid.piping.detonation_arrestor",PETriangleSeparator:"shape=triangle;direction=west;anchorPointDirection=0",PETundish:"shape=mxgraph.ios7.misc.left",PEOpenVent:"shape=mxgraph.pid.vessels.vent_(bent)",PERemovableSpool:"shape=mxgraph.pid.piping.removable_spool",PEYTypeStrainer:"shape=mxgraph.pid.piping.y-type_strainer",PEDiverterValve:"shape=mxgraph.pid.piping.diverter_valve",PEPulsationDampener:"shape=mxgraph.pid.piping.pulsation_dampener", PEDuplexStrainer:"shape=mxgraph.pid.piping.duplex_strainer",PEBasketStrainer:"shape=mxgraph.pid.piping.basket_strainer",PEVentSilencer:"shape=mxgraph.pid.piping.vent_silencer",PEInlineSilencer:"shape=mxgraph.pid.piping.in-line_silencer",PESteamTrap:"shape=mxgraph.pid.piping.steam_trap",PEDesuperheater:"shape=mxgraph.pid.piping.desuper_heater",PEEjectorOrEductor:"shape=mxgraph.pid.fittings.injector",PEExhaustHead:"shape=mxgraph.pid.piping.exhaust_head",PERotaryValve:"shape=mxgraph.pid.piping.rotary_valve", PEExpansionJoint:"shape=mxgraph.pid.piping.expansion_joint",PEVesselBlock:"mxCompositeShape",PEOpenTankBlock:"shape=mxgraph.pid.vessels.container,_tank,_cistern;verticalLabelPosition=bottom;verticalAlign=top",PEOpenTopTank:"shape=mxgraph.pid.vessels.container,_tank,_cistern;verticalLabelPosition=bottom;verticalAlign=top",PEClosedTankBlock:"mxCompositeShape",PEStorageSphereBlock:"shape=mxgraph.pid.vessels.storage_sphere;verticalLabelPosition=bottom;verticalAlign=top",PEColumnBlock:"mxCompositeShape", PEBagBlock:"shape=mxgraph.pid.vessels.bag;verticalLabelPosition=bottom;verticalAlign=top",PEGasCylinderBlock:"shape=mxgraph.pid.vessels.gas_bottle;verticalLabelPosition=bottom;verticalAlign=top",PEGasHolderBlock:"shape=mxgraph.pid.vessels.gas_holder;verticalLabelPosition=bottom;verticalAlign=top",PEClarifierBlock:"shape=mxgraph.pid.vessels.bunker_(conical_bottom);verticalLabelPosition=bottom;verticalAlign=top",PETankBlock:"shape=mxgraph.pid.vessels.tank_(conical_roof);verticalLabelPosition=bottom;verticalAlign=top", PETrayColumnBlock:"shape=mxgraph.pid2misc.column;columnType=tray;verticalLabelPosition=bottom;verticalAlign=top",PEReactionVesselBlock:"shape=mxgraph.pid.vessels.reactor",PEBin:"shape=mxgraph.pid.vessels.tank_(conical_bottom)",PEDomeRoofTank:"shape=mxgraph.pid.vessels.tank_(dished_roof)",PEConeRoofTank:"shape=mxgraph.pid.vessels.tank_(conical_roof)",PEBoilerBlock:"shape=mxgraph.pid.misc.boiler_(dome);verticalLabelPosition=bottom;verticalAlign=top",PEEquipmentBoilerBlock:"shape=mxgraph.pid.misc.boiler_(dome);verticalLabelPosition=bottom;verticalAlign=top", PEReboilerBlock:"shape=mxgraph.pid.heat_exchangers.reboiler;verticalLabelPosition=bottom;verticalAlign=top",PECondenserBlock:"shape=mxgraph.pid.heat_exchangers.heat_exchanger_(straight_tubes);verticalLabelPosition=bottom;verticalAlign=top",PEEquipmentCondenserBlock:"shape=mxgraph.pid.heat_exchangers.condenser;verticalLabelPosition=bottom;verticalAlign=top",PECoolingTowerBlock:"shape=mxgraph.pid.misc.cooling_tower;verticalLabelPosition=bottom;verticalAlign=top",PEHeatExchangerBlock:"shape=mxgraph.pid.heat_exchangers.shell_and_tube_heat_exchanger_1;verticalLabelPosition=bottom;verticalAlign=top", PEHairpinExchangerBlock:"shape=mxgraph.pid.heat_exchangers.hairpin_exchanger;verticalLabelPosition=bottom;verticalAlign=top",PEPlateAndFrameHeatExchangerBlock:"shape=mxgraph.pid.heat_exchangers.plate_and_frame_heat_exchanger;verticalLabelPosition=bottom;verticalAlign=top",PESpiralHeatExchanger:"shape=mxgraph.pid.heat_exchangers.spiral_heat_exchanger;verticalLabelPosition=bottom;verticalAlign=top",PEUTubeHeatExchangerBlock:"shape=mxgraph.pid.heat_exchangers.u-tube_heat_exchanger;verticalLabelPosition=bottom;verticalAlign=top", PEDoublePipeHeatBlock:"shape=mxgraph.pid.heat_exchangers.double_pipe_heat_exchanger;verticalLabelPosition=bottom;verticalAlign=top",PEShellAndTubeHeat1Block:"shape=mxgraph.pid.heat_exchangers.shell_and_tube_heat_exchanger_1;verticalLabelPosition=bottom;verticalAlign=top",PEShellAndTubeHeat2Block:"shape=mxgraph.pid.heat_exchangers.shell_and_tube_heat_exchanger_2;verticalLabelPosition=bottom;verticalAlign=top",PEShellAndTubeHeat3Block:"shape=mxgraph.pid.heat_exchangers.shell_and_tube_heat_exchanger_1;direction=north;verticalLabelPosition=bottom;verticalAlign=top", PESinglePassHeatBlock:"shape=mxgraph.pid.heat_exchangers.single_pass_heat_exchanger;verticalLabelPosition=bottom;verticalAlign=top",PEHeaterBlock:"shape=mxgraph.pid.heat_exchangers.heater",PEEjectorInjectorBlock:"shape=mxgraph.pid.fittings.injector;verticalLabelPosition=bottom;verticalAlign=top",PECompressorTurbineBlock:"mxCompositeShape",PEMotorDrivenTurbineBlock:"mxCompositeShape",PECentrifugalPumpBlock:"shape=mxgraph.pid.pumps.gas_blower;flipH=1;verticalLabelPosition=bottom;verticalAlign=top", PECentrifugalPump:"shape=mxgraph.pid.pumps.centrifugal_pump_1;verticalLabelPosition=bottom;verticalAlign=top",PECentrifugalPump2:"shape=mxgraph.pid.pumps.centrifugal_pump_2;verticalLabelPosition=bottom;verticalAlign=top",PECentrifugalPump3:"shape=mxgraph.pid.pumps.centrifugal_pump_1;flipH=1;verticalLabelPosition=bottom;verticalAlign=top",PEGearPumpBlock:"shape=mxgraph.pid.pumps.gear_pump;verticalLabelPosition=bottom;verticalAlign=top",PEHorizontalPump:"shape=mxgraph.pid.pumps.horizontal_pump;verticalLabelPosition=bottom;verticalAlign=top", PEProgressiveCavityPump:"shape=mxgraph.pid.pumps.cavity_pump;flipH=1;flipV=1;verticalLabelPosition=bottom;verticalAlign=top",PEScrewPump:"shape=mxgraph.pid.pumps.screw_pump;verticalLabelPosition=bottom;verticalAlign=top",PEScrewPump2:"shape=mxgraph.pid.pumps.screw_pump_2;flipH=1;verticalLabelPosition=bottom;verticalAlign=top",PESumpPump:"shape=mxgraph.pid.pumps.sump_pump;verticalLabelPosition=bottom;verticalAlign=top",PEVacuumPump:"shape=mxgraph.pid.pumps.vacuum_pump;verticalLabelPosition=bottom;verticalAlign=top", PEVerticalPump:"shape=mxgraph.pid.pumps.vertical_pump;verticalLabelPosition=bottom;verticalAlign=top",PEVerticalPump2:"shape=mxgraph.pid.pumps.vertical_pump;verticalLabelPosition=bottom;verticalAlign=top",PEIndicatorBlock:"mxCompositeShape",PEIndicator2Block:"mxCompositeShape",PEIndicator3Block:"shape=mxgraph.pid2inst.discInst;mounting=field",PEIndicator4Block:"shape=mxgraph.pid2inst.indicator;mounting=field;indType=inst",PESharedIndicatorBlock:"mxCompositeShape",PESharedIndicator2Block:"mxCompositeShape", PEComputerIndicatorBlock:"mxCompositeShape",PEProgrammableIndicatorBlock:"mxCompositeShape",PEGateValveBlock:"mxCompositeShape",PEGlobeValveBlock:"mxCompositeShape",PEControlValveBlock:"shape=mxgraph.pid2valves.valve;valveType=gate;actuator=diaph;verticalLabelPosition=bottom;verticalAlign=top",PENeedleValveBlock:"shape=mxgraph.pid2valves.valve;valveType=needle;verticalLabelPosition=bottom;verticalAlign=top",PEButterflyValve2Block:"shape=mxgraph.pid2valves.valve;flipH=1;valveType=butterfly;verticalLabelPosition=bottom;verticalAlign=top", PEBallValveBlock:"shape=mxgraph.pid2valves.valve;valveType=ball;verticalLabelPosition=bottom;verticalAlign=top",PEDiaphragmBlock:"shape=mxgraph.pid2valves.valve;valveType=ball;verticalLabelPosition=bottom;verticalAlign=top",PEPlugValveBlock:"shape=mxgraph.pid2valves.valve;valveType=ball;verticalLabelPosition=bottom;verticalAlign=top",PECheckValveBlock:"shape=mxgraph.pid2valves.valve;valveType=check;verticalLabelPosition=bottom;verticalAlign=top",PECheckValve2Block:"shape=mxgraph.pid2valves.valve;valveType=check;verticalLabelPosition=bottom;verticalAlign=top", PEAngleValveBlock:"mxCompositeShape",PEAngleGlobeValveBlock:"mxCompositeShape",PEPoweredValveBlock:"mxCompositeShape",PEFloatOperatedValveBlock:"shape=mxgraph.pid2valves.valve;valveType=gate;actuator=singActing;verticalLabelPosition=bottom;verticalAlign=top",PENeedleValve2Block:"shape=mxgraph.pid2valves.valve;valveType=needle;verticalLabelPosition=bottom;verticalAlign=top",PEThreeWayValveBlock:"shape=mxgraph.pid2valves.valve;valveType=threeWay;actuator=none;verticalLabelPosition=bottom;verticalAlign=top", PEBleederValveBlock:"shape=mxgraph.pid2valves.blockBleedValve;actuator=none;verticalLabelPosition=bottom;verticalAlign=top",PERotameterBlock:"shape=mxgraph.pid.flow_sensors.rotameter;flipH=1;verticalLabelPosition=bottom;verticalAlign=top",VennGradientColor1:"shape=ellipse;fillOpacity=35",VennGradientColor2:"shape=ellipse;fillOpacity=35",VennGradientColor3:"shape=ellipse;fillOpacity=35",VennGradientColor4:"shape=ellipse;fillOpacity=35",VennGradientColor5:"shape=ellipse;fillOpacity=35",VennGradientColor6:"shape=ellipse;fillOpacity=35", VennGradientColor7:"shape=ellipse;fillOpacity=35",VennGradientColor8:"shape=ellipse;fillOpacity=35",VennPlainColor1:"shape=ellipse;fillOpacity=35",VennPlainColor2:"shape=ellipse;fillOpacity=35",VennPlainColor3:"shape=ellipse;fillOpacity=35",VennPlainColor4:"shape=ellipse;fillOpacity=35",VennPlainColor5:"shape=ellipse;fillOpacity=35",VennPlainColor6:"shape=ellipse;fillOpacity=35",VennPlainColor7:"shape=ellipse;fillOpacity=35",VennPlainColor8:"shape=ellipse;fillOpacity=35",iOS7DeviceiPhone5Portrait:"shape=mxgraph.ios.iPhone;bgStyle=bgGreen", iOS7DeviceiPhone5Landscape:"shape=mxgraph.ios.iPhone;bgStyle=bgGreen",iOS7DeviceiPadPortrait:"shape=mxgraph.ios.iPad;bgStyle=bgGreen",iOS7DeviceiPadLandscape:"shape=mxgraph.ios.iPad;bgStyle=bgGreen",iOS7DeviceiPhone6Portrait:"shape=mxgraph.ios.iPhone;bgStyle=bgGreen",iOS7DeviceiPhone6Landscape:"shape=mxgraph.ios.iPhone;bgStyle=bgGreen",iOS7DeviceiPhone6PlusPortrait:"shape=mxgraph.ios.iPhone;bgStyle=bgGreen",iOS7DeviceiPhone6PlusLandscape:"shape=mxgraph.ios.iPhone;bgStyle=bgGreen",iOS7StatusBariPhone:"shape=mxgraph.ios7ui.appBar", iOS7TabsiPhone:"mxCompositeShape",iOS7iPhoneActionSheet:"mxCompositeShape",iOS7iPhoneKeyboard:"shape=mxgraph.ios7.misc.keyboard_(letters)",iOS7TableView:"mxCompositeShape",iOS7StatusBariPad:"shape=mxgraph.ios7ui.appBar",iOS7NavBariPad:"mxCompositeShape",iOS7TabsiPad:"mxCompositeShape",iOS7iPadActionSheet:"mxCompositeShape",iOS7iPadKeyboard:"shape=mxgraph.ios7.misc.keyboard_(letters)",iOS7AlertDialog:"mxCompositeShape",iOS7ProgressBar:"shape=mxgraph.ios7ui.downloadBar",iOS7Slider:"shape=mxgraph.ios7ui.searchBox", iOS7SearchBar:"shape=mxgraph.ios7ui.searchBox",iOS7Button:"",iOS7TextField:"",iOS7TextView:"",iOS7SegmentedControl:"mxCompositeShape",iOS7Toggle:"shape=mxgraph.ios7ui.onOffButton;buttonState=on;strokeColor=#38D145;strokeColor2=#aaaaaa;fillColor=#38D145;fillColor2=#ffffff",iOS7Stepper:"shape=mxgraph.ios7.misc.adjust;fillColor=#ffffff;gradientColor=none",iOS7PageControls:"shape=mxgraph.ios7ui.pageControl;fillColor=#666666;strokeColor=#bbbbbb",iOS7Block:"",iOS7DatePicker:"mxCompositeShape",iOS7TimePicker:"mxCompositeShape", iOS7CountdownPicker:"mxCompositeShape","iOS7IconArrow left":"shape=mxgraph.ios7.misc.left",iOS7IconArrow:"shape=mxgraph.ios7.misc.right","iOS7IconArrow up":"shape=mxgraph.ios7.misc.up","iOS7IconArrow down":"shape=mxgraph.ios7.misc.down",iOS7IconWifi:"shape=mxgraph.ios7.icons.wifi",iOS7IconBluetooth:"shape=mxgraph.ios7.icons.bluetooth",iOS7IconBattery:"shape=mxgraph.ios7.icons.battery",iOS7IconSiri:"shape=mxgraph.ios7.icons.microphone",iOS7IconCheck:"shape=mxgraph.ios7.icons.select",iOS7IconCreate:"shape=mxgraph.ios7.icons.add", iOS7IconInfo:"shape=mxgraph.ios7.icons.info",iOS7IconLocation:"shape=mxgraph.ios7.icons.location_2",iOS7IconQuestion:"shape=mxgraph.ios7.icons.help",iOS7IconSearch:"shape=mxgraph.ios7.icons.looking_glass",iOS7IconToolbox:"shape=mxgraph.ios7.icons.briefcase",iOS7IconOptions:"shape=mxgraph.ios7.icons.options",iOS7IconShare:"shape=mxgraph.ios7.icons.share",iOS7IconTyping:"shape=mxgraph.ios7.icons.message",iOS7IconCopy:"shape=mxgraph.ios7.icons.folders_2",iOS7IconChat:"shape=mxgraph.ios7.icons.messages", iOS7IconOrganize:"shape=mxgraph.ios7.icons.folder",iOS7IconTrash:"shape=mxgraph.ios7.icons.trashcan",iOS7IconReply:"shape=mxgraph.ios7.icons.back",iOS7IconArchive:"shape=mxgraph.ios7.icons.box",iOS7IconCompose:"shape=mxgraph.ios7.icons.compose",iOS7IconSend:"shape=mxgraph.ios7.icons.pointer",iOS7IconDrawer:"shape=mxgraph.ios7.icons.storage",iOS7IconMail:"shape=mxgraph.ios7.icons.mail",iOS7IconDocument:"shape=mxgraph.ios7.icons.document",iOS7IconFlag:"shape=mxgraph.ios7.icons.flag",iOS7IconBookmarks:"shape=mxgraph.ios7.icons.book", iOS7IconGlasses:"shape=mxgraph.ios7.icons.glasses",iOS7IconFiles:"shape=mxgraph.ios7.icons.folders",iOS7IconDownloads:"shape=mxgraph.ios7.icons.down",iOS7IconLock:"shape=mxgraph.ios7.icons.locked",iOS7IconCloud:"shape=mxgraph.ios7.icons.cloud","iOS7IconOrientation Lock":"shape=mxgraph.ios7.icons.orientation_lock",iOS7IconContacts:"shape=mxgraph.ios7.icons.user",iOS7IconGlobal:"shape=mxgraph.ios7.icons.globe",iOS7IconSettings:"shape=mxgraph.ios7.icons.settings",iOS7IconAirplay:"shape=mxgraph.ios7.icons.move_to_folder", iOS7IconCamera:"shape=mxgraph.ios7.icons.camera",iOS7IconAirplane:"shape=mxgraph.signs.transportation.airplane_6;direction=south",iOS7IconCalculator:"shape=mxgraph.ios7.icons.calculator",iOS7IconPreferences:"shape=mxgraph.ios7.icons.most_viewed",iOS7IconPhone:"shape=mxgraph.signs.tech.telephone_3",iOS7IconKeypad:"shape=mxgraph.ios7.icons.keypad",iOS7IconVoicemail:"shape=mxgraph.ios7.icons.tape",iOS7IconStar:"shape=mxgraph.ios7.icons.star","iOS7IconMost Viewed":"shape=mxgraph.ios7.icons.most_viewed", iOS7IconVideo:"shape=mxgraph.ios7.icons.video_conversation","iOS7IconVolumne Controls":"shape=mxgraph.ios7.icons.volume","iOS7IconLocation pin":"shape=mxgraph.ios7.icons.location",iOS7IconCalendar:"shape=mxgraph.ios7.icons.calendar",iOS7IconAlarm:"shape=mxgraph.ios7.icons.alarm_clock",iOS7IconClock:"shape=mxgraph.ios7.icons.clock",iOS7IconTimer:"shape=mxgraph.ios7.icons.gauge","iOS7IconVolume down":"shape=mxgraph.ios7.icons.silent",iOS7IconVolume:"shape=mxgraph.ios7.icons.volume_2","iOS7IconVolume up":"shape=mxgraph.ios7.icons.loud", iOS7IconRepeat:"shape=mxgraph.ios7.icons.reload",iOS7IconRewind:"shape=mxgraph.ios7.icons.backward",iOS7IconPlay:"shape=mxgraph.ios7.icons.play",iOS7IconPause:"shape=mxgraph.ios7.icons.pause","iOS7IconFast forward":"shape=mxgraph.ios7.icons.forward",iOS7IconControls:"shape=mxgraph.ios7.icons.controls",iOS7IconPrivacy:"shape=mxgraph.ios7.icons.privacy",iOS7IconLink:"shape=mxgraph.ios7.icons.link",iOS7IconLight:"shape=mxgraph.ios7.icons.flashlight",iOS7IconBrightness:"shape=mxgraph.ios7.icons.sun", iOS7IconHeart:"shape=mxgraph.ios7.icons.heart",iOS7IconJava:"shape=mxgraph.ios7.icons.cup",iOS7IconBox:"shape=mxgraph.ios7.icons.bag",iOS7IconEye:"shape=mxgraph.ios7.icons.eye","iOS7IconDo not disturb":"shape=mxgraph.ios7.icons.moon",UI2BrowserBlock:"mxCompositeShape",UI2WindowBlock:"mxCompositeShape",UI2DialogBlock:"mxCompositeShape",UI2AreaBlock:"",UI2ElementBlock:"",UI2AccordionBlock:"mxCompositeShape",UI2TabBarContainerBlock:"mxCompositeShape",UI2TabBar2ContainerBlock:"mxCompositeShape",UI2VTabBarContainerBlock:"mxCompositeShape", UI2VScrollBlock:"shape=mxgraph.mockup.navigation.scrollBar;direction=north",UI2HScrollBlock:"shape=mxgraph.mockup.navigation.scrollBar",UI2VerticalSplitterBlock:"shape=mxgraph.mockup.forms.splitter;direction=north",UI2HorizontalSplitterBlock:"shape=mxgraph.mockup.forms.splitter",UI2ImageBlock:"shape=mxgraph.mockup.graphics.simpleIcon",UI2VideoBlock:"shape=mxgraph.mockup.containers.videoPlayer;barHeight=30",UI2AudioBlock:"shape=mxgraph.mockup.misc.playbackControls",UI2MapBlock:"shape=mxgraph.mockup.misc.map", UI2BarChartBlock:"shape=mxgraph.mockup.graphics.barChart;strokeColor=none;strokeColor2=none",UI2ColumnChartBlock:"shape=mxgraph.mockup.graphics.columnChart;strokeColor=none;strokeColor2=none",UI2LineChartBlock:"shape=mxgraph.mockup.graphics.lineChart;strokeColor=none",UI2PieChartBlock:"shape=mxgraph.mockup.graphics.pieChart;parts=10,20,35",UI2WebcamBlock:"shape=mxgraph.mockup.containers.userMale",UI2CaptchaBlock:"shape=mxgraph.mockup.text.captcha;mainText=",UI2ButtonBlock:"rounded=1;arcSize=25;", UI2CheckBoxBlock:"mxCompositeShape",UI2HorizontalCheckBoxBlock:"mxCompositeShape",UI2RadioBlock:"mxCompositeShape",UI2HorizontalRadioBlock:"mxCompositeShape",UI2ColorPickerBlock:"shape=mxgraph.mockup.forms.colorPicker;chosenColor=#aaddff",UI2TextInputBlock:"",UI2SelectBlock:"shape=mxgraph.mockup.forms.comboBox;strokeColor=#999999;fillColor=#ddeeff;align=left;fillColor2=#aaddff;mainText=;fontColor=#666666",UI2VSliderBlock:"mxCompositeShape",UI2HSliderBlock:"mxCompositeShape",UI2DatePickerBlock:"mxCompositeShape", UI2SearchBlock:"mxCompositeShape",UI2NumericStepperBlock:"mxCompositeShape",UI2TableBlock:"mxCompositeShape",UI2ButtonBarBlock:"mxCompositeShape",UI2VerticalButtonBarBlock:"mxCompositeShape",UI2LinkBarBlock:"mxCompositeShape",UI2BreadCrumbsBlock:"mxCompositeShape",UI2MenuBarBlock:"mxCompositeShape",UI2AtoZBlock:"mxCompositeShape",UI2PaginationBlock:"mxCompositeShape",UI2ContextMenuBlock:"mxCompositeShape",UI2TreePaneBlock:"mxCompositeShape",UI2PlaybackControlsBlock:"shape=mxgraph.mockup.misc.playbackControls;fillColor=#ffffff;strokeColor=#999999;fillColor2=#99ddff;strokeColor2=none;fillColor3=#ffffff;strokeColor3=none", Image_ui_formatting_toolbar:"shape=mxgraph.mockup.menus_and_buttons.font_style_selector_2",UI2ProgressBarBlock:"mxCompositeShape",UI2HelpIconBlock:"shape=mxgraph.mockup.misc.help_icon",UI2BraceNoteBlock:"mxCompositeShape",UI2TooltipBlock:"shape=mxgraph.basic.rectangular_callout;flipV=1",UI2TooltipSquareBlock:"mxCompositeShape",UI2CalloutBlock:"mxCompositeShape",UI2AlertBlock:"mxCompositeShape",Image_ipad_ipad:"shape=mxgraph.ios.iPad;bgStyle=bgGreen",iPadGrayBackgroundBlock:"",Image_ipad_top_bar:"shape=mxgraph.ios.iTopBar2;opacity=50;fillColor=#999999;strokeColor=#cccccc", Image_ipad_search:"shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1",Image_ipad_alert_dialog:"mxCompositeShape",Image_ipad_dialog:"mxCompositeShape",Image_ipad_popover:"shape=mxgraph.ios.iOption;barPos=50;pointerPos=top;buttonText=",Image_ipad_table:"mxCompositeShape",Image_ipad_vtab:"mxCompositeShape",Image_ipad_button_black:"",Image_ipad_button_blue:"",Image_ipad_button_grayblue:"",Image_ipad_button_red:"",Image_ipad_back_button_gray:"shape=mxgraph.ios.iButtonBack;buttonText=;fillColor=#eeeeee;fillColor2=#aaaaaa", Image_ipad_back_button_black:"shape=mxgraph.ios.iButtonBack;buttonText=;fillColor=#888888;fillColor2=#000000",Image_ipad_sort_handle:"shape=mxgraph.ios7.icons.options",Image_ipad_dropdown:"shape=mxgraph.ios.iComboBox;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",Image_ipad_email_name:"",Image_ipad_prev_next:"shape=mxgraph.ios.iPrevNext;strokeColor=#444444;fillColor=#dddddd;fillColor2=#3D5565;fillColor3=#ffffff",Image_ipad_keyboard_portrait:"shape=mxgraph.ios.iKeybLett",Image_ipad_keyboard_landscape:"shape=mxgraph.ios.iKeybLett", Image_ipad_large_tabbed_button:"mxCompositeShape",Image_ipad_sort_button:"mxCompositeShape",Image_ipad_tab_bar:"mxCompositeShape",Image_ipad_slider:"shape=mxgraph.ios.iSlider;barPos=20",Image_ipad_add_icon_blue:"shape=mxgraph.ios.iAddIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",Image_ipad_add_icon_green:"shape=mxgraph.ios.iAddIcon;fillColor=#7AdF78;fillColor2=#1A9917;strokeColor=#ffffff",Image_ipad_remove_icon:"shape=mxgraph.ios.iDeleteIcon;fillColor=#e8878E;fillColor2=#BD1421;strokeColor=#ffffff", Image_ipad_arrow_icon:"shape=mxgraph.ios.iArrowIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",Image_ipad_arrow:"shape=mxgraph.ios7.misc.more",Image_ipad_checkmark:"shape=mxgraph.ios7.misc.check",Image_ipad_check_off:"shape=ellipse",Image_ipad_location_dot:"shape=ellipse",Image_ipad_mark_as_read:"shape=ellipse",Image_ipad_pin_green:"shape=mxgraph.ios.iPin;fillColor2=#00dd00;fillColor3=#004400;strokeColor=#006600",Image_ipad_pin_red:"shape=mxgraph.ios.iPin;fillColor2=#dd0000;fillColor3=#440000;strokeColor=#660000", Image_ipad_radio_off:"shape=ellipse",Image_ipad_checkbox_off:"absoluteArcSize=1;arcSize=6;rounded=1",Image_ipad_indicator:"absoluteArcSize=1;arcSize=6;rounded=1;fillColor=#e8878E;gradientColor=#BD1421;strokeColor=#ffffff",Image_iphone_iphone_4:"shape=mxgraph.ios.iPhone;bg=bgGreen",Image_iphone_bg_black:"",Image_iphone_bg_gray:"",Image_iphone_bg_stripe_drk:"shape=mxgraph.ios.iBgStriped;strokeColor=#18211b;fillColor=#5D7585;strokeColor2=#657E8F",Image_iphone_bg_stripe_lt:"shape=mxgraph.ios.iBgStriped;strokeColor=#18211b;fillColor=#5D7585;strokeColor2=#657E8F", Image_iphone_bg_white:"",Image_iphone_top_bar_app:"shape=mxgraph.ios.iAppBar",Image_iphone_top_bar_home:"shape=mxgraph.ios.iTopBar2;opacity=50;fillColor=#999999;strokeColor=#cccccc;strokeWidth=1",Image_iphone_bar_top:"",Image_iphone_bar_semi_trans_black:"",Image_iphone_bar_semi_trans_blue:"",Image_iphone_search:"shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1",Image_iphone_table:"mxCompositeShape",Image_iphone_table_w_buttons:"mxCompositeShape",Image_iphone_table_w_icons:"mxCompositeShape", Image_iphone_list:"mxCompositeShape",Image_iphone_gray_grad_list:"",Image_iphone_dialog:"mxCompositeShape",Image_iphone_scroll_pane:"mxCompositeShape",Image_iphone_alpha_list:"shape=mxgraph.ios.iAlphaList",Image_iphone_button_black:"",Image_iphone_button_blue:"",Image_iphone_button_grayblue:"",Image_iphone_button_red:"",Image_iphone_button_lg_light:"",Image_iphone_button_lg_dark:"",Image_iphone_button_lg_green:"",Image_iphone_button_lg_red:"",Image_iphone_button_lg_yellow:"",Image_iphone_button_xl_green:"", Image_iphone_back_button:"shape=mxgraph.ios.iButtonBack;strokeColor=#444444;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",Image_iphone_prev_next:"shape=mxgraph.ios.iPrevNext;strokeColor=#444444;fillColor=#dddddd;fillColor2=#3D5565;fillColor3=#ffffff",Image_iphone_sort_handle:"shape=mxgraph.ios7.icons.options",Image_iphone_slider:"shape=mxgraph.ios.iSlider;barPos=60",Image_iphone_dropdown:"shape=mxgraph.ios.iComboBox;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",Image_iphone_email_name:"", Image_iphone_switch_off:"shape=mxgraph.android.switch_off;fillColor=#666666",Image_iphone_keyboard_button_blue:"",Image_iphone_keyboard_letters:"shape=mxgraph.ios.iKeybLett",Image_iphone_keyboard_landscape:"shape=mxgraph.ios.iKeybLett",Image_iphone_large_tabbed_button:"mxCompositeShape",Image_iphone_sort_button:"mxCompositeShape",Image_iphone_tab_bar:"mxCompositeShape",Image_iphone_picker_multi:"mxCompositeShape",Image_iphone_picker_web:"mxCompositeShape",Image_iphone_add_icon_blue:"shape=mxgraph.ios.iAddIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff", Image_iphone_add_icon_green:"shape=mxgraph.ios.iAddIcon;fillColor=#7AdF78;fillColor2=#1A9917;strokeColor=#ffffff",Image_iphone_remove_icon:"shape=mxgraph.ios.iDeleteIcon;fillColor=#e8878E;fillColor2=#BD1421;strokeColor=#ffffff",Image_iphone_arrow_icon:"shape=mxgraph.ios.iArrowIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",Image_iphone_arrow:"shape=mxgraph.ios7.misc.more",Image_iphone_checkmark:"shape=mxgraph.ios7.misc.check",Image_iphone_check_off:"shape=ellipse",Image_iphone_location_dot:"shape=ellipse", Image_iphone_mark_as_read:"shape=ellipse",Image_iphone_pin_green:"shape=mxgraph.ios.iPin;fillColor2=#00dd00;fillColor3=#004400;strokeColor=#006600",Image_iphone_pin_red:"shape=mxgraph.ios.iPin;fillColor2=#dd0000;fillColor3=#440000;strokeColor=#660000",Image_iphone_radio_off:"shape=ellipse",Image_iphone_checkbox_off:"",Image_iphone_indicator:"fillColor=#e8878E;gradientColor=#BD1421;strokeColor=#ffffff",Image_iphone_thread_count:""},Sb=function(a,b,d){0>mxUtils.indexOf(d,a)&&d.push(a);if(a in b){var g= b[a];g.id=a;if(null!=g.Members)for(var e in g.Members)d=Sb(e,b,d)}return d};EditorUi.prototype.pasteLucidChart=function(a,b,d,g){var e=this.editor.graph;e.getModel().beginUpdate();try{var p=function(a,b){var d=null!=b.Endpoint1.Block?f[b.Endpoint1.Block]:null,g=null!=b.Endpoint2.Block?f[b.Endpoint2.Block]:null,p;p=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");p.geometry.relative=!0;p.edge=!0;Y(p,a);var D=m(a).Properties,k=null!=D?D.TextAreas:a.TextAreas;if(null!=k){for(var C=0;null!= k["t"+C];){var y=k["t"+C];p=X(y,p);C++}for(C=1;null!=k["m"+C];)y=k["m"+C],p=X(y,p,a),C++;null!=k.Text&&(p=X(k,p,a));k=null!=D?D.TextAreas:a.TextAreas;null!=k.Message&&(p=X(k.Message,p,a))}null==d&&null!=b.Endpoint1&&p.geometry.setTerminalPoint(new mxPoint(Math.round(.6*b.Endpoint1.x),Math.round(.6*b.Endpoint1.y)),!0);null==g&&null!=b.Endpoint2&&p.geometry.setTerminalPoint(new mxPoint(Math.round(.6*b.Endpoint2.x),Math.round(.6*b.Endpoint2.y)),!1);c.push(e.addCell(p,null,null,d,g))},c=[],f={},D=[], C=[],y=0;if(null!=a.Groups)for(var q in a.Groups){var n=a.Groups[q];n.id=q;if(1==n.Hidden&&null!=n.Members){0>mxUtils.indexOf(C,q)&&C.push(q);for(var h in n.Members)C=Sb(h,a.Groups,C)}}if(null!=a.Blocks)for(q in a.Blocks)n=a.Blocks[q],n.id=q,0>mxUtils.indexOf(C,q)&&(h=!1,null!=gb[n.Class]&&"mxCompositeShape"==gb[n.Class]&&(f[n.id]=ab(n,c,e),D.push(n),h=!0),h||(f[n.id]=K(n),D.push(n)));else for(y=0;y<a.Objects.length;y++)n=a.Objects[y],null!=n.Action&&"mxCompositeShape"==gb[n.Action.Class]?f[n.id]= ab(n,c,e):n.IsBlock&&null!=n.Action&&null!=n.Action.Properties&&(f[n.id]=K(n)),D.push(n);D.sort(function(a,b){a=m(a);b=m(b);return null!=a.Properties&&null!=b.Properties?a.Properties.ZOrder-b.Properties.ZOrder:0});for(y=0;y<D.length;y++){var n=D[y],l=f[n.id];null!=l?c.push(e.addCell(l)):n.IsLine&&null!=n.Action&&null!=n.Action.Properties&&p(n,n.Action.Properties)}if(null!=a.Lines)for(q in a.Lines)0>mxUtils.indexOf(C,q)&&(n=a.Lines[q],p(n,n));if(g&&null!=b&&null!=d){e.isGridEnabled()&&(b=e.snap(b), d=e.snap(d));var z=e.getBoundingBoxFromGeometry(c,!0);null!=z&&e.moveCells(c,b-z.x,d-z.y)}e.setSelectionCells(c)}finally{e.getModel().endUpdate()}e.isSelectionEmpty()||(e.scrollCellToVisible(e.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(e.view.getState(e.getSelectionCell())))}})();function VsdxExport(c){function m(a,b){var d={"[Content_Types].xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Types xmlns='http://schemas.openxmlformats.org/package/2006/content-types'><Default Extension='png' ContentType='image/png'/><Default Extension='jpg' ContentType='image/jpeg'/><Default Extension='jpeg' ContentType='image/jpeg'/><Default Extension='svg' ContentType='image/svg+xml'/><Default Extension='bmp' ContentType='image/bmp'/><Default Extension='gif' ContentType='image/gif'/><Default Extension='emf' ContentType='image/x-emf' /><Default Extension='rels' ContentType='application/vnd.openxmlformats-package.relationships+xml' /><Default Extension='xml' ContentType='application/xml' /><Override PartName='/docProps/app.xml' ContentType='application/vnd.openxmlformats-officedocument.extended-properties+xml' /><Override PartName='/docProps/core.xml' ContentType='application/vnd.openxmlformats-package.core-properties+xml' /><Override PartName='/docProps/custom.xml' ContentType='application/vnd.openxmlformats-officedocument.custom-properties+xml' /><Override PartName='/visio/document.xml' ContentType='application/vnd.ms-visio.drawing.main+xml' /><Override PartName='/visio/masters/masters.xml' ContentType='application/vnd.ms-visio.masters+xml' /><Override PartName='/visio/masters/master1.xml' ContentType='application/vnd.ms-visio.master+xml'/><Override PartName='/visio/pages/page1.xml' ContentType='application/vnd.ms-visio.page+xml' /><Override PartName='/visio/pages/pages.xml' ContentType='application/vnd.ms-visio.pages+xml' /><Override PartName='/visio/windows.xml' ContentType='application/vnd.ms-visio.windows+xml' /></Types>", "_rels/.rels":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns='http://schemas.openxmlformats.org/package/2006/relationships'><Relationship Id='rId1' Type='http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties' Target='docProps/core.xml' /><Relationship Id='rId2' Type='http://schemas.microsoft.com/visio/2010/relationships/document' Target='visio/document.xml' /><Relationship Id='rId3' Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties' Target='docProps/custom.xml' /><Relationship Id='rId4' Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties' Target='docProps/app.xml' /></Relationships>", "docProps/app.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Properties xmlns=\'http://schemas.openxmlformats.org/officeDocument/2006/extended-properties\' xmlns:vt=\'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes\'><Application>Microsoft Visio</Application><AppVersion>15.0000</AppVersion><Template /><Manager /><Company /><HyperlinkBase /></Properties>',"docProps/core.xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><cp:coreProperties xmlns:cp='http://schemas.openxmlformats.org/package/2006/metadata/core-properties' xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:dcterms='http://purl.org/dc/terms/' xmlns:dcmitype='http://purl.org/dc/dcmitype/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><dc:title /><dc:subject /><dc:creator /><cp:keywords /><dc:description /><cp:category /><dc:language>en-US</dc:language></cp:coreProperties>", "docProps/custom.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Properties xmlns=\'http://schemas.openxmlformats.org/officeDocument/2006/custom-properties\' xmlns:vt=\'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes\' />',"visio/document.xml":"<?xml version='1.0' encoding='utf-8' ?><VisioDocument xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><DocumentSettings TopPage='0' DefaultTextStyle='3' DefaultLineStyle='3' DefaultFillStyle='3' DefaultGuideStyle='4'><GlueSettings>9</GlueSettings><SnapSettings>65847</SnapSettings><SnapExtensions>34</SnapExtensions><SnapAngles/><DynamicGridEnabled>1</DynamicGridEnabled><ProtectStyles>0</ProtectStyles><ProtectShapes>0</ProtectShapes><ProtectMasters>0</ProtectMasters><ProtectBkgnds>0</ProtectBkgnds></DocumentSettings><Colors><ColorEntry IX='24' RGB='#000000'/><ColorEntry IX='25' RGB='#FFFFFF'/><ColorEntry IX='26' RGB='#FF0000'/><ColorEntry IX='27' RGB='#00FF00'/><ColorEntry IX='28' RGB='#0000FF'/><ColorEntry IX='29' RGB='#FFFF00'/><ColorEntry IX='30' RGB='#FF00FF'/><ColorEntry IX='31' RGB='#00FFFF'/><ColorEntry IX='32' RGB='#800000'/><ColorEntry IX='33' RGB='#008000'/><ColorEntry IX='34' RGB='#000080'/><ColorEntry IX='35' RGB='#808000'/><ColorEntry IX='36' RGB='#800080'/><ColorEntry IX='37' RGB='#008080'/><ColorEntry IX='38' RGB='#C0C0C0'/><ColorEntry IX='39' RGB='#E6E6E6'/><ColorEntry IX='40' RGB='#CDCDCD'/><ColorEntry IX='41' RGB='#B3B3B3'/><ColorEntry IX='42' RGB='#9A9A9A'/><ColorEntry IX='43' RGB='#808080'/><ColorEntry IX='44' RGB='#666666'/><ColorEntry IX='45' RGB='#4D4D4D'/><ColorEntry IX='46' RGB='#333333'/><ColorEntry IX='47' RGB='#1A1A1A'/><ColorEntry IX='48' RGB='#7F7F7F'/><ColorEntry IX='49' RGB='#99004D'/><ColorEntry IX='50' RGB='#FF0080'/><ColorEntry IX='51' RGB='#CC0066'/></Colors><FaceNames><FaceName NameU='Calibri' UnicodeRanges='-536859905 -1073732485 9 0' CharSets='536871423 0' Panose='2 15 5 2 2 2 4 3 2 4' Flags='325'/></FaceNames><StyleSheets><StyleSheet ID='0' NameU='No Style' IsCustomNameU='1' Name='No Style' IsCustomName='1'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='0.01041666666666667'/><Cell N='LineColor' V='0'/><Cell N='LinePattern' V='1'/><Cell N='Rounding' V='0'/><Cell N='EndArrowSize' V='2'/><Cell N='BeginArrow' V='0'/><Cell N='EndArrow' V='0'/><Cell N='LineCap' V='0'/><Cell N='BeginArrowSize' V='2'/><Cell N='LineColorTrans' V='0'/><Cell N='CompoundType' V='0'/><Cell N='FillForegnd' V='1'/><Cell N='FillBkgnd' V='0'/><Cell N='FillPattern' V='1'/><Cell N='ShdwForegnd' V='0'/><Cell N='ShdwPattern' V='0'/><Cell N='FillForegndTrans' V='0'/><Cell N='FillBkgndTrans' V='0'/><Cell N='ShdwForegndTrans' V='0'/><Cell N='ShapeShdwType' V='0'/><Cell N='ShapeShdwOffsetX' V='0'/><Cell N='ShapeShdwOffsetY' V='0'/><Cell N='ShapeShdwObliqueAngle' V='0'/><Cell N='ShapeShdwScaleFactor' V='1'/><Cell N='ShapeShdwBlur' V='0'/><Cell N='ShapeShdwShow' V='0'/><Cell N='LeftMargin' V='0'/><Cell N='RightMargin' V='0'/><Cell N='TopMargin' V='0'/><Cell N='BottomMargin' V='0'/><Cell N='VerticalAlign' V='1'/><Cell N='TextBkgnd' V='0'/><Cell N='DefaultTabStop' V='0.5'/><Cell N='TextDirection' V='0'/><Cell N='TextBkgndTrans' V='0'/><Cell N='LockWidth' V='0'/><Cell N='LockHeight' V='0'/><Cell N='LockMoveX' V='0'/><Cell N='LockMoveY' V='0'/><Cell N='LockAspect' V='0'/><Cell N='LockDelete' V='0'/><Cell N='LockBegin' V='0'/><Cell N='LockEnd' V='0'/><Cell N='LockRotate' V='0'/><Cell N='LockCrop' V='0'/><Cell N='LockVtxEdit' V='0'/><Cell N='LockTextEdit' V='0'/><Cell N='LockFormat' V='0'/><Cell N='LockGroup' V='0'/><Cell N='LockCalcWH' V='0'/><Cell N='LockSelect' V='0'/><Cell N='LockCustProp' V='0'/><Cell N='LockFromGroupFormat' V='0'/><Cell N='LockThemeColors' V='0'/><Cell N='LockThemeEffects' V='0'/><Cell N='LockThemeConnectors' V='0'/><Cell N='LockThemeFonts' V='0'/><Cell N='LockThemeIndex' V='0'/><Cell N='LockReplace' V='0'/><Cell N='LockVariation' V='0'/><Cell N='NoObjHandles' V='0'/><Cell N='NonPrinting' V='0'/><Cell N='NoCtlHandles' V='0'/><Cell N='NoAlignBox' V='0'/><Cell N='UpdateAlignBox' V='0'/><Cell N='HideText' V='0'/><Cell N='DynFeedback' V='0'/><Cell N='GlueType' V='0'/><Cell N='WalkPreference' V='0'/><Cell N='BegTrigger' V='0' F='No Formula'/><Cell N='EndTrigger' V='0' F='No Formula'/><Cell N='ObjType' V='0'/><Cell N='Comment' V=''/><Cell N='IsDropSource' V='0'/><Cell N='NoLiveDynamics' V='0'/><Cell N='LocalizeMerge' V='0'/><Cell N='NoProofing' V='0'/><Cell N='Calendar' V='0'/><Cell N='LangID' V='en-US'/><Cell N='ShapeKeywords' V=''/><Cell N='DropOnPageScale' V='1'/><Cell N='TheData' V='0' F='No Formula'/><Cell N='TheText' V='0' F='No Formula'/><Cell N='EventDblClick' V='0' F='No Formula'/><Cell N='EventXFMod' V='0' F='No Formula'/><Cell N='EventDrop' V='0' F='No Formula'/><Cell N='EventMultiDrop' V='0' F='No Formula'/><Cell N='HelpTopic' V=''/><Cell N='Copyright' V=''/><Cell N='LayerMember' V=''/><Cell N='XRulerDensity' V='32'/><Cell N='YRulerDensity' V='32'/><Cell N='XRulerOrigin' V='0'/><Cell N='YRulerOrigin' V='0'/><Cell N='XGridDensity' V='8'/><Cell N='YGridDensity' V='8'/><Cell N='XGridSpacing' V='0'/><Cell N='YGridSpacing' V='0'/><Cell N='XGridOrigin' V='0'/><Cell N='YGridOrigin' V='0'/><Cell N='Gamma' V='1'/><Cell N='Contrast' V='0.5'/><Cell N='Brightness' V='0.5'/><Cell N='Sharpen' V='0'/><Cell N='Blur' V='0'/><Cell N='Denoise' V='0'/><Cell N='Transparency' V='0'/><Cell N='SelectMode' V='1'/><Cell N='DisplayMode' V='2'/><Cell N='IsDropTarget' V='0'/><Cell N='IsSnapTarget' V='1'/><Cell N='IsTextEditTarget' V='1'/><Cell N='DontMoveChildren' V='0'/><Cell N='ShapePermeableX' V='0'/><Cell N='ShapePermeableY' V='0'/><Cell N='ShapePermeablePlace' V='0'/><Cell N='Relationships' V='0'/><Cell N='ShapeFixedCode' V='0'/><Cell N='ShapePlowCode' V='0'/><Cell N='ShapeRouteStyle' V='0'/><Cell N='ShapePlaceStyle' V='0'/><Cell N='ConFixedCode' V='0'/><Cell N='ConLineJumpCode' V='0'/><Cell N='ConLineJumpStyle' V='0'/><Cell N='ConLineJumpDirX' V='0'/><Cell N='ConLineJumpDirY' V='0'/><Cell N='ShapePlaceFlip' V='0'/><Cell N='ConLineRouteExt' V='0'/><Cell N='ShapeSplit' V='0'/><Cell N='ShapeSplittable' V='0'/><Cell N='DisplayLevel' V='0'/><Cell N='ResizePage' V='0'/><Cell N='EnableGrid' V='0'/><Cell N='DynamicsOff' V='0'/><Cell N='CtrlAsInput' V='0'/><Cell N='AvoidPageBreaks' V='0'/><Cell N='PlaceStyle' V='0'/><Cell N='RouteStyle' V='0'/><Cell N='PlaceDepth' V='0'/><Cell N='PlowCode' V='0'/><Cell N='LineJumpCode' V='1'/><Cell N='LineJumpStyle' V='0'/><Cell N='PageLineJumpDirX' V='0'/><Cell N='PageLineJumpDirY' V='0'/><Cell N='LineToNodeX' V='0.125'/><Cell N='LineToNodeY' V='0.125'/><Cell N='BlockSizeX' V='0.25'/><Cell N='BlockSizeY' V='0.25'/><Cell N='AvenueSizeX' V='0.375'/><Cell N='AvenueSizeY' V='0.375'/><Cell N='LineToLineX' V='0.125'/><Cell N='LineToLineY' V='0.125'/><Cell N='LineJumpFactorX' V='0.66666666666667'/><Cell N='LineJumpFactorY' V='0.66666666666667'/><Cell N='LineAdjustFrom' V='0'/><Cell N='LineAdjustTo' V='0'/><Cell N='PlaceFlip' V='0'/><Cell N='LineRouteExt' V='0'/><Cell N='PageShapeSplit' V='0'/><Cell N='PageLeftMargin' V='0.25'/><Cell N='PageRightMargin' V='0.25'/><Cell N='PageTopMargin' V='0.25'/><Cell N='PageBottomMargin' V='0.25'/><Cell N='ScaleX' V='1'/><Cell N='ScaleY' V='1'/><Cell N='PagesX' V='1'/><Cell N='PagesY' V='1'/><Cell N='CenterX' V='0'/><Cell N='CenterY' V='0'/><Cell N='OnPage' V='0'/><Cell N='PrintGrid' V='0'/><Cell N='PrintPageOrientation' V='1'/><Cell N='PaperKind' V='1'/><Cell N='PaperSource' V='7'/><Cell N='QuickStyleLineColor' V='100'/><Cell N='QuickStyleFillColor' V='100'/><Cell N='QuickStyleShadowColor' V='100'/><Cell N='QuickStyleFontColor' V='100'/><Cell N='QuickStyleLineMatrix' V='100'/><Cell N='QuickStyleFillMatrix' V='100'/><Cell N='QuickStyleEffectsMatrix' V='100'/><Cell N='QuickStyleFontMatrix' V='100'/><Cell N='QuickStyleType' V='0'/><Cell N='QuickStyleVariation' V='0'/><Cell N='LineGradientDir' V='0'/><Cell N='LineGradientAngle' V='1.5707963267949'/><Cell N='FillGradientDir' V='0'/><Cell N='FillGradientAngle' V='1.5707963267949'/><Cell N='LineGradientEnabled' V='0'/><Cell N='FillGradientEnabled' V='0'/><Cell N='RotateGradientWithShape' V='1'/><Cell N='UseGroupGradient' V='0'/><Cell N='BevelTopType' V='0'/><Cell N='BevelTopWidth' V='0'/><Cell N='BevelTopHeight' V='0'/><Cell N='BevelBottomType' V='0'/><Cell N='BevelBottomWidth' V='0'/><Cell N='BevelBottomHeight' V='0'/><Cell N='BevelDepthColor' V='1'/><Cell N='BevelDepthSize' V='0'/><Cell N='BevelContourColor' V='0'/><Cell N='BevelContourSize' V='0'/><Cell N='BevelMaterialType' V='0'/><Cell N='BevelLightingType' V='0'/><Cell N='BevelLightingAngle' V='0'/><Cell N='RotationXAngle' V='0'/><Cell N='RotationYAngle' V='0'/><Cell N='RotationZAngle' V='0'/><Cell N='RotationType' V='0'/><Cell N='Perspective' V='0'/><Cell N='DistanceFromGround' V='0'/><Cell N='KeepTextFlat' V='0'/><Cell N='ReflectionTrans' V='0'/><Cell N='ReflectionSize' V='0'/><Cell N='ReflectionDist' V='0'/><Cell N='ReflectionBlur' V='0'/><Cell N='GlowColor' V='1'/><Cell N='GlowColorTrans' V='0'/><Cell N='GlowSize' V='0'/><Cell N='SoftEdgesSize' V='0'/><Cell N='SketchSeed' V='0'/><Cell N='SketchEnabled' V='0'/><Cell N='SketchAmount' V='5'/><Cell N='SketchLineWeight' V='0.04166666666666666' U='PT'/><Cell N='SketchLineChange' V='0.14'/><Cell N='SketchFillChange' V='0.1'/><Cell N='ColorSchemeIndex' V='0'/><Cell N='EffectSchemeIndex' V='0'/><Cell N='ConnectorSchemeIndex' V='0'/><Cell N='FontSchemeIndex' V='0'/><Cell N='ThemeIndex' V='0'/><Cell N='VariationColorIndex' V='0'/><Cell N='VariationStyleIndex' V='0'/><Cell N='EmbellishmentIndex' V='0'/><Cell N='ReplaceLockShapeData' V='0'/><Cell N='ReplaceLockText' V='0'/><Cell N='ReplaceLockFormat' V='0'/><Cell N='ReplaceCopyCells' V='0' U='BOOL' F='No Formula'/><Cell N='PageWidth' V='0' F='No Formula'/><Cell N='PageHeight' V='0' F='No Formula'/><Cell N='ShdwOffsetX' V='0' F='No Formula'/><Cell N='ShdwOffsetY' V='0' F='No Formula'/><Cell N='PageScale' V='0' U='IN_F' F='No Formula'/><Cell N='DrawingScale' V='0' U='IN_F' F='No Formula'/><Cell N='DrawingSizeType' V='0' F='No Formula'/><Cell N='DrawingScaleType' V='0' F='No Formula'/><Cell N='InhibitSnap' V='0' F='No Formula'/><Cell N='PageLockReplace' V='0' U='BOOL' F='No Formula'/><Cell N='PageLockDuplicate' V='0' U='BOOL' F='No Formula'/><Cell N='UIVisibility' V='0' F='No Formula'/><Cell N='ShdwType' V='0' F='No Formula'/><Cell N='ShdwObliqueAngle' V='0' F='No Formula'/><Cell N='ShdwScaleFactor' V='0' F='No Formula'/><Cell N='DrawingResizeType' V='0' F='No Formula'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Calibri'/><Cell N='Color' V='0'/><Cell N='Style' V='0'/><Cell N='Case' V='0'/><Cell N='Pos' V='0'/><Cell N='FontScale' V='1'/><Cell N='Size' V='0.1666666666666667'/><Cell N='DblUnderline' V='0'/><Cell N='Overline' V='0'/><Cell N='Strikethru' V='0'/><Cell N='DoubleStrikethrough' V='0'/><Cell N='Letterspace' V='0'/><Cell N='ColorTrans' V='0'/><Cell N='AsianFont' V='0'/><Cell N='ComplexScriptFont' V='0'/><Cell N='ComplexScriptSize' V='-1'/><Cell N='LangID' V='en-US'/></Row></Section><Section N='Paragraph'><Row IX='0'><Cell N='IndFirst' V='0'/><Cell N='IndLeft' V='0'/><Cell N='IndRight' V='0'/><Cell N='SpLine' V='-1.2'/><Cell N='SpBefore' V='0'/><Cell N='SpAfter' V='0'/><Cell N='HorzAlign' V='1'/><Cell N='Bullet' V='0'/><Cell N='BulletStr' V=''/><Cell N='BulletFont' V='0'/><Cell N='BulletFontSize' V='-1'/><Cell N='TextPosAfterBullet' V='0'/><Cell N='Flags' V='0'/></Row></Section><Section N='Tabs'><Row IX='0'/></Section><Section N='LineGradient'><Row IX='0'><Cell N='GradientStopColor' V='1'/><Cell N='GradientStopColorTrans' V='0'/><Cell N='GradientStopPosition' V='0'/></Row></Section><Section N='FillGradient'><Row IX='0'><Cell N='GradientStopColor' V='1'/><Cell N='GradientStopColorTrans' V='0'/><Cell N='GradientStopPosition' V='0'/></Row></Section></StyleSheet><StyleSheet ID='1' NameU='Text Only' IsCustomNameU='1' Name='Text Only' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='Themed' F='Inh'/><Cell N='LineColor' V='Themed' F='Inh'/><Cell N='LinePattern' V='Themed' F='Inh'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Cell N='FillForegnd' V='Themed' F='Inh'/><Cell N='FillBkgnd' V='Themed' F='Inh'/><Cell N='FillPattern' V='Themed' F='Inh'/><Cell N='ShdwForegnd' V='Themed' F='Inh'/><Cell N='ShdwPattern' V='Themed' F='Inh'/><Cell N='FillForegndTrans' V='Themed' F='Inh'/><Cell N='FillBkgndTrans' V='Themed' F='Inh'/><Cell N='ShdwForegndTrans' V='Themed' F='Inh'/><Cell N='ShapeShdwType' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetX' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetY' V='Themed' F='Inh'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='Inh'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='Inh'/><Cell N='ShapeShdwBlur' V='Themed' F='Inh'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LeftMargin' V='0'/><Cell N='RightMargin' V='0'/><Cell N='TopMargin' V='0'/><Cell N='BottomMargin' V='0'/><Cell N='VerticalAlign' V='0'/><Cell N='TextBkgnd' V='0'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='Inh'/><Cell N='LineGradientAngle' V='Themed' F='Inh'/><Cell N='FillGradientDir' V='Themed' F='Inh'/><Cell N='FillGradientAngle' V='Themed' F='Inh'/><Cell N='LineGradientEnabled' V='Themed' F='Inh'/><Cell N='FillGradientEnabled' V='Themed' F='Inh'/><Cell N='RotateGradientWithShape' V='Themed' F='Inh'/><Cell N='UseGroupGradient' V='Themed' F='Inh'/><Section N='Paragraph'><Row IX='0'><Cell N='IndFirst' V='0' F='Inh'/><Cell N='IndLeft' V='0' F='Inh'/><Cell N='IndRight' V='0' F='Inh'/><Cell N='SpLine' V='-1.2' F='Inh'/><Cell N='SpBefore' V='0' F='Inh'/><Cell N='SpAfter' V='0' F='Inh'/><Cell N='HorzAlign' V='0'/><Cell N='Bullet' V='0' F='Inh'/><Cell N='BulletStr' V='' F='Inh'/><Cell N='BulletFont' V='0' F='Inh'/><Cell N='BulletFontSize' V='-1' F='Inh'/><Cell N='TextPosAfterBullet' V='0' F='Inh'/><Cell N='Flags' V='0' F='Inh'/></Row></Section></StyleSheet><StyleSheet ID='2' NameU='None' IsCustomNameU='1' Name='None' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='Themed' F='Inh'/><Cell N='LineColor' V='Themed' F='Inh'/><Cell N='LinePattern' V='0'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Cell N='FillForegnd' V='Themed' F='Inh'/><Cell N='FillBkgnd' V='Themed' F='Inh'/><Cell N='FillPattern' V='0'/><Cell N='ShdwForegnd' V='Themed' F='Inh'/><Cell N='ShdwPattern' V='Themed' F='Inh'/><Cell N='FillForegndTrans' V='Themed' F='Inh'/><Cell N='FillBkgndTrans' V='Themed' F='Inh'/><Cell N='ShdwForegndTrans' V='Themed' F='Inh'/><Cell N='ShapeShdwType' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetX' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetY' V='Themed' F='Inh'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='Inh'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='Inh'/><Cell N='ShapeShdwBlur' V='Themed' F='Inh'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='Inh'/><Cell N='LineGradientAngle' V='Themed' F='Inh'/><Cell N='FillGradientDir' V='Themed' F='Inh'/><Cell N='FillGradientAngle' V='Themed' F='Inh'/><Cell N='LineGradientEnabled' V='0'/><Cell N='FillGradientEnabled' V='0'/><Cell N='RotateGradientWithShape' V='Themed' F='Inh'/><Cell N='UseGroupGradient' V='Themed' F='Inh'/><Cell N='QuickStyleLineColor' V='100' F='Inh'/><Cell N='QuickStyleFillColor' V='100' F='Inh'/><Cell N='QuickStyleShadowColor' V='100' F='Inh'/><Cell N='QuickStyleFontColor' V='100' F='Inh'/><Cell N='QuickStyleLineMatrix' V='100' F='Inh'/><Cell N='QuickStyleFillMatrix' V='100' F='Inh'/><Cell N='QuickStyleEffectsMatrix' V='0' F='GUARD(0)'/><Cell N='QuickStyleFontMatrix' V='100' F='Inh'/><Cell N='QuickStyleType' V='0' F='Inh'/><Cell N='QuickStyleVariation' V='2'/></StyleSheet><StyleSheet ID='3' NameU='Normal' IsCustomNameU='1' Name='Normal' IsCustomName='1' LineStyle='6' FillStyle='6' TextStyle='6'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LeftMargin' V='0.05555555555555555' U='PT'/><Cell N='RightMargin' V='0.05555555555555555' U='PT'/><Cell N='TopMargin' V='0.05555555555555555' U='PT'/><Cell N='BottomMargin' V='0.05555555555555555' U='PT'/><Cell N='VerticalAlign' V='1' F='Inh'/><Cell N='TextBkgnd' V='0' F='Inh'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/></StyleSheet><StyleSheet ID='4' NameU='Guide' IsCustomNameU='1' Name='Guide' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='0' U='PT'/><Cell N='LineColor' V='#7f7f7f'/><Cell N='LinePattern' V='23'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Cell N='FillForegnd' V='Themed' F='Inh'/><Cell N='FillBkgnd' V='Themed' F='Inh'/><Cell N='FillPattern' V='0'/><Cell N='ShdwForegnd' V='Themed' F='Inh'/><Cell N='ShdwPattern' V='Themed' F='Inh'/><Cell N='FillForegndTrans' V='Themed' F='Inh'/><Cell N='FillBkgndTrans' V='Themed' F='Inh'/><Cell N='ShdwForegndTrans' V='Themed' F='Inh'/><Cell N='ShapeShdwType' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetX' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetY' V='Themed' F='Inh'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='Inh'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='Inh'/><Cell N='ShapeShdwBlur' V='Themed' F='Inh'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='Inh'/><Cell N='LineGradientAngle' V='Themed' F='Inh'/><Cell N='FillGradientDir' V='Themed' F='Inh'/><Cell N='FillGradientAngle' V='Themed' F='Inh'/><Cell N='LineGradientEnabled' V='0'/><Cell N='FillGradientEnabled' V='0'/><Cell N='RotateGradientWithShape' V='Themed' F='Inh'/><Cell N='UseGroupGradient' V='Themed' F='Inh'/><Cell N='LeftMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='RightMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='TopMargin' V='0'/><Cell N='BottomMargin' V='0'/><Cell N='VerticalAlign' V='2'/><Cell N='TextBkgnd' V='0' F='Inh'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/><Cell N='NoObjHandles' V='0' F='Inh'/><Cell N='NonPrinting' V='1'/><Cell N='NoCtlHandles' V='0' F='Inh'/><Cell N='NoAlignBox' V='0' F='Inh'/><Cell N='UpdateAlignBox' V='0' F='Inh'/><Cell N='HideText' V='0' F='Inh'/><Cell N='DynFeedback' V='0' F='Inh'/><Cell N='GlueType' V='0' F='Inh'/><Cell N='WalkPreference' V='0' F='Inh'/><Cell N='BegTrigger' V='0' F='No Formula'/><Cell N='EndTrigger' V='0' F='No Formula'/><Cell N='ObjType' V='0' F='Inh'/><Cell N='Comment' V='' F='Inh'/><Cell N='IsDropSource' V='0' F='Inh'/><Cell N='NoLiveDynamics' V='0' F='Inh'/><Cell N='LocalizeMerge' V='0' F='Inh'/><Cell N='NoProofing' V='0' F='Inh'/><Cell N='Calendar' V='0' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/><Cell N='ShapeKeywords' V='' F='Inh'/><Cell N='DropOnPageScale' V='1' F='Inh'/><Cell N='ShapePermeableX' V='1'/><Cell N='ShapePermeableY' V='1'/><Cell N='ShapePermeablePlace' V='1'/><Cell N='Relationships' V='0' F='Inh'/><Cell N='ShapeFixedCode' V='0' F='Inh'/><Cell N='ShapePlowCode' V='0' F='Inh'/><Cell N='ShapeRouteStyle' V='0' F='Inh'/><Cell N='ShapePlaceStyle' V='0' F='Inh'/><Cell N='ConFixedCode' V='0' F='Inh'/><Cell N='ConLineJumpCode' V='0' F='Inh'/><Cell N='ConLineJumpStyle' V='0' F='Inh'/><Cell N='ConLineJumpDirX' V='0' F='Inh'/><Cell N='ConLineJumpDirY' V='0' F='Inh'/><Cell N='ShapePlaceFlip' V='0' F='Inh'/><Cell N='ConLineRouteExt' V='0' F='Inh'/><Cell N='ShapeSplit' V='0' F='Inh'/><Cell N='ShapeSplittable' V='0' F='Inh'/><Cell N='DisplayLevel' V='0' F='Inh'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Themed' F='Inh'/><Cell N='Color' V='4'/><Cell N='Style' V='Themed' F='Inh'/><Cell N='Case' V='0' F='Inh'/><Cell N='Pos' V='0' F='Inh'/><Cell N='FontScale' V='1' F='Inh'/><Cell N='Size' V='0.125'/><Cell N='DblUnderline' V='0' F='Inh'/><Cell N='Overline' V='0' F='Inh'/><Cell N='Strikethru' V='0' F='Inh'/><Cell N='DoubleStrikethrough' V='0' F='Inh'/><Cell N='Letterspace' V='0' F='Inh'/><Cell N='ColorTrans' V='0' F='Inh'/><Cell N='AsianFont' V='Themed' F='Inh'/><Cell N='ComplexScriptFont' V='Themed' F='Inh'/><Cell N='ComplexScriptSize' V='-1' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/></Row></Section></StyleSheet><StyleSheet ID='6' NameU='Theme' IsCustomNameU='1' Name='Theme' IsCustomName='1' LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='Themed' F='THEMEVAL()'/><Cell N='LineColor' V='Themed' F='THEMEVAL()'/><Cell N='LinePattern' V='Themed' F='THEMEVAL()'/><Cell N='Rounding' V='Themed' F='THEMEVAL()'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='THEMEVAL()'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='CompoundType' V='Themed' F='THEMEVAL()'/><Cell N='FillForegnd' V='Themed' F='THEMEVAL()'/><Cell N='FillBkgnd' V='Themed' F='THEMEVAL()'/><Cell N='FillPattern' V='Themed' F='THEMEVAL()'/><Cell N='ShdwForegnd' V='Themed' F='THEMEVAL()'/><Cell N='ShdwPattern' V='Themed' F='THEMEVAL()'/><Cell N='FillForegndTrans' V='Themed' F='THEMEVAL()'/><Cell N='FillBkgndTrans' V='Themed' F='THEMEVAL()'/><Cell N='ShdwForegndTrans' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwType' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwOffsetX' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwOffsetY' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwBlur' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='THEMEVAL()'/><Cell N='LineGradientAngle' V='Themed' F='THEMEVAL()'/><Cell N='FillGradientDir' V='Themed' F='THEMEVAL()'/><Cell N='FillGradientAngle' V='Themed' F='THEMEVAL()'/><Cell N='LineGradientEnabled' V='Themed' F='THEMEVAL()'/><Cell N='FillGradientEnabled' V='Themed' F='THEMEVAL()'/><Cell N='RotateGradientWithShape' V='Themed' F='THEMEVAL()'/><Cell N='UseGroupGradient' V='Themed' F='THEMEVAL()'/><Cell N='BevelTopType' V='Themed' F='THEMEVAL()'/><Cell N='BevelTopWidth' V='Themed' F='THEMEVAL()'/><Cell N='BevelTopHeight' V='Themed' F='THEMEVAL()'/><Cell N='BevelBottomType' V='0' F='Inh'/><Cell N='BevelBottomWidth' V='0' F='Inh'/><Cell N='BevelBottomHeight' V='0' F='Inh'/><Cell N='BevelDepthColor' V='1' F='Inh'/><Cell N='BevelDepthSize' V='0' F='Inh'/><Cell N='BevelContourColor' V='Themed' F='THEMEVAL()'/><Cell N='BevelContourSize' V='Themed' F='THEMEVAL()'/><Cell N='BevelMaterialType' V='Themed' F='THEMEVAL()'/><Cell N='BevelLightingType' V='Themed' F='THEMEVAL()'/><Cell N='BevelLightingAngle' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionTrans' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionSize' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionDist' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionBlur' V='Themed' F='THEMEVAL()'/><Cell N='GlowColor' V='Themed' F='THEMEVAL()'/><Cell N='GlowColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GlowSize' V='Themed' F='THEMEVAL()'/><Cell N='SoftEdgesSize' V='Themed' F='THEMEVAL()'/><Cell N='SketchSeed' V='0' F='Inh'/><Cell N='SketchEnabled' V='Themed' F='THEMEVAL()'/><Cell N='SketchAmount' V='Themed' F='THEMEVAL()'/><Cell N='SketchLineWeight' V='Themed' F='THEMEVAL()'/><Cell N='SketchLineChange' V='Themed' F='THEMEVAL()'/><Cell N='SketchFillChange' V='Themed' F='THEMEVAL()'/><Cell N='QuickStyleLineColor' V='100'/><Cell N='QuickStyleFillColor' V='100'/><Cell N='QuickStyleShadowColor' V='100'/><Cell N='QuickStyleFontColor' V='100'/><Cell N='QuickStyleLineMatrix' V='100'/><Cell N='QuickStyleFillMatrix' V='100'/><Cell N='QuickStyleEffectsMatrix' V='100'/><Cell N='QuickStyleFontMatrix' V='100'/><Cell N='QuickStyleType' V='0' F='Inh'/><Cell N='QuickStyleVariation' V='0' F='Inh'/><Cell N='ColorSchemeIndex' V='65534'/><Cell N='EffectSchemeIndex' V='65534'/><Cell N='ConnectorSchemeIndex' V='65534'/><Cell N='FontSchemeIndex' V='65534'/><Cell N='ThemeIndex' V='65534'/><Cell N='VariationColorIndex' V='65534'/><Cell N='VariationStyleIndex' V='65534'/><Cell N='EmbellishmentIndex' V='65534'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Themed' F='THEMEVAL()'/><Cell N='Color' V='Themed' F='THEMEVAL()'/><Cell N='Style' V='Themed' F='THEMEVAL()'/><Cell N='Case' V='0' F='Inh'/><Cell N='Pos' V='0' F='Inh'/><Cell N='FontScale' V='1' F='Inh'/><Cell N='Size' V='0.1666666666666667' F='Inh'/><Cell N='DblUnderline' V='0' F='Inh'/><Cell N='Overline' V='0' F='Inh'/><Cell N='Strikethru' V='0' F='Inh'/><Cell N='DoubleStrikethrough' V='0' F='Inh'/><Cell N='Letterspace' V='0' F='Inh'/><Cell N='ColorTrans' V='0' F='Inh'/><Cell N='AsianFont' V='Themed' F='THEMEVAL()'/><Cell N='ComplexScriptFont' V='Themed' F='THEMEVAL()'/><Cell N='ComplexScriptSize' V='-1' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/></Row></Section><Section N='FillGradient'><Row IX='0'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='1'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='2'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='3'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='4'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='5'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='6'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='7'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='8'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='9'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row></Section><Section N='LineGradient'><Row IX='0'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='1'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='2'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='3'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='4'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='5'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='6'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='7'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='8'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='9'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row></Section></StyleSheet><StyleSheet ID='7' NameU='Connector' IsCustomNameU='1' Name='Connector' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LeftMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='RightMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='TopMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='BottomMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='VerticalAlign' V='1' F='Inh'/><Cell N='TextBkgnd' V='#ffffff' F='THEMEGUARD(THEMEVAL(\"BackgroundColor\")+1)'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/><Cell N='NoObjHandles' V='0' F='Inh'/><Cell N='NonPrinting' V='0' F='Inh'/><Cell N='NoCtlHandles' V='0' F='Inh'/><Cell N='NoAlignBox' V='0' F='Inh'/><Cell N='UpdateAlignBox' V='0' F='Inh'/><Cell N='HideText' V='0' F='Inh'/><Cell N='DynFeedback' V='0' F='Inh'/><Cell N='GlueType' V='0' F='Inh'/><Cell N='WalkPreference' V='0' F='Inh'/><Cell N='BegTrigger' V='0' F='No Formula'/><Cell N='EndTrigger' V='0' F='No Formula'/><Cell N='ObjType' V='0' F='Inh'/><Cell N='Comment' V='' F='Inh'/><Cell N='IsDropSource' V='0' F='Inh'/><Cell N='NoLiveDynamics' V='0' F='Inh'/><Cell N='LocalizeMerge' V='0' F='Inh'/><Cell N='NoProofing' V='0' F='Inh'/><Cell N='Calendar' V='0' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/><Cell N='ShapeKeywords' V='' F='Inh'/><Cell N='DropOnPageScale' V='1' F='Inh'/><Cell N='QuickStyleLineColor' V='100'/><Cell N='QuickStyleFillColor' V='100'/><Cell N='QuickStyleShadowColor' V='100'/><Cell N='QuickStyleFontColor' V='100'/><Cell N='QuickStyleLineMatrix' V='1'/><Cell N='QuickStyleFillMatrix' V='1'/><Cell N='QuickStyleEffectsMatrix' V='1'/><Cell N='QuickStyleFontMatrix' V='1'/><Cell N='QuickStyleType' V='0'/><Cell N='QuickStyleVariation' V='0'/><Cell N='LineWeight' V='Themed' F='Inh'/><Cell N='LineColor' V='Themed' F='Inh'/><Cell N='LinePattern' V='Themed' F='Inh'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='Themed' F='THEMEVAL()'/><Cell N='BeginArrow' V='Themed' F='THEMEVAL()'/><Cell N='EndArrow' V='Themed' F='THEMEVAL()'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='Themed' F='THEMEVAL()'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Themed' F='Inh'/><Cell N='Color' V='Themed' F='Inh'/><Cell N='Style' V='Themed' F='Inh'/><Cell N='Case' V='0' F='Inh'/><Cell N='Pos' V='0' F='Inh'/><Cell N='FontScale' V='1' F='Inh'/><Cell N='Size' V='0.1111111111111111'/><Cell N='DblUnderline' V='0' F='Inh'/><Cell N='Overline' V='0' F='Inh'/><Cell N='Strikethru' V='0' F='Inh'/><Cell N='DoubleStrikethrough' V='0' F='Inh'/><Cell N='Letterspace' V='0' F='Inh'/><Cell N='ColorTrans' V='0' F='Inh'/><Cell N='AsianFont' V='Themed' F='Inh'/><Cell N='ComplexScriptFont' V='Themed' F='Inh'/><Cell N='ComplexScriptSize' V='-1' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/></Row></Section></StyleSheet></StyleSheets><DocumentSheet NameU='TheDoc' IsCustomNameU='1' Name='TheDoc' IsCustomName='1' LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='OutputFormat' V='0'/><Cell N='LockPreview' V='0'/><Cell N='AddMarkup' V='0'/><Cell N='ViewMarkup' V='0'/><Cell N='DocLockReplace' V='0' U='BOOL'/><Cell N='NoCoauth' V='0' U='BOOL'/><Cell N='DocLockDuplicatePage' V='0' U='BOOL'/><Cell N='PreviewQuality' V='0'/><Cell N='PreviewScope' V='0'/><Cell N='DocLangID' V='en-US'/><Section N='User'><Row N='msvNoAutoConnect'><Cell N='Value' V='1'/><Cell N='Prompt' V='' F='No Formula'/></Row></Section></DocumentSheet></VisioDocument>", "visio/windows.xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Windows ClientWidth='0' ClientHeight='0' xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve' />","visio/_rels/document.xml.rels":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns='http://schemas.openxmlformats.org/package/2006/relationships'><Relationship Id='rId1' Type='http://schemas.microsoft.com/visio/2010/relationships/masters' Target='masters/masters.xml' /><Relationship Id='rId2' Type='http://schemas.microsoft.com/visio/2010/relationships/pages' Target='pages/pages.xml' /><Relationship Id='rId3' Type='http://schemas.microsoft.com/visio/2010/relationships/windows' Target='windows.xml' /></Relationships>", "visio/masters/_rels/masters.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.microsoft.com/visio/2010/relationships/master" Target="master1.xml"/></Relationships>',"visio/masters/masters.xml":"<?xml version='1.0' encoding='utf-8' ?><Masters xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><Master ID='4' NameU='Dynamic connector' IsCustomNameU='1' Name='Dynamic connector' IsCustomName='1' Prompt='This connector automatically routes between the shapes it connects.' IconSize='1' AlignName='2' MatchByName='1' IconUpdate='0' UniqueID='{002A9108-0000-0000-8E40-00608CF305B2}' BaseID='{F7290A45-E3AD-11D2-AE4F-006008C9F5A9}' PatternFlags='0' Hidden='0' MasterType='0'><PageSheet LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='PageWidth' V='3'/><Cell N='PageHeight' V='3'/><Cell N='ShdwOffsetX' V='0.125'/><Cell N='ShdwOffsetY' V='-0.125'/><Cell N='PageScale' V='1' U='IN_F'/><Cell N='DrawingScale' V='1' U='IN_F'/><Cell N='DrawingSizeType' V='4'/><Cell N='DrawingScaleType' V='0'/><Cell N='InhibitSnap' V='0'/><Cell N='PageLockReplace' V='0' U='BOOL'/><Cell N='PageLockDuplicate' V='0' U='BOOL'/><Cell N='UIVisibility' V='0'/><Cell N='ShdwType' V='0'/><Cell N='ShdwObliqueAngle' V='0'/><Cell N='ShdwScaleFactor' V='1'/><Cell N='DrawingResizeType' V='0'/><Section N='Layer'><Row IX='0'><Cell N='Name' V='Connector'/><Cell N='Color' V='255'/><Cell N='Status' V='0'/><Cell N='Visible' V='1'/><Cell N='Print' V='1'/><Cell N='Active' V='0'/><Cell N='Lock' V='0'/><Cell N='Snap' V='1'/><Cell N='Glue' V='1'/><Cell N='NameUniv' V='Connector'/><Cell N='ColorTrans' V='0'/></Row></Section></PageSheet><Rel r:id='rId1'/></Master></Masters>", "visio/masters/master1.xml":"<?xml version='1.0' encoding='utf-8' ?><MasterContents xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><Shapes><Shape ID='5' OriginalID='0' Type='Shape' LineStyle='7' FillStyle='7' TextStyle='7'><Cell N='PinX' V='1.5' F='GUARD((BeginX+EndX)/2)'/><Cell N='PinY' V='1.5' F='GUARD((BeginY+EndY)/2)'/><Cell N='Width' V='1' F='GUARD(EndX-BeginX)'/><Cell N='Height' V='-1' F='GUARD(EndY-BeginY)'/><Cell N='LocPinX' V='0.5' F='GUARD(Width*0.5)'/><Cell N='LocPinY' V='-0.5' F='GUARD(Height*0.5)'/><Cell N='Angle' V='0' F='GUARD(0DA)'/><Cell N='FlipX' V='0' F='GUARD(FALSE)'/><Cell N='FlipY' V='0' F='GUARD(FALSE)'/><Cell N='ResizeMode' V='0'/><Cell N='BeginX' V='1'/><Cell N='BeginY' V='2'/><Cell N='EndX' V='2'/><Cell N='EndY' V='1'/><Cell N='TxtPinX' V='0' F='SETATREF(Controls.TextPosition)'/><Cell N='TxtPinY' V='-1' F='SETATREF(Controls.TextPosition.Y)'/><Cell N='TxtWidth' V='0.5555555555555556' F='MAX(TEXTWIDTH(TheText),5*Char.Size)'/><Cell N='TxtHeight' V='0.2444444444444444' F='TEXTHEIGHT(TheText,TxtWidth)'/><Cell N='TxtLocPinX' V='0.2777777777777778' F='TxtWidth*0.5'/><Cell N='TxtLocPinY' V='0.1222222222222222' F='TxtHeight*0.5'/><Cell N='TxtAngle' V='0'/><Cell N='LockHeight' V='1'/><Cell N='LockCalcWH' V='1'/><Cell N='HelpTopic' V='Vis_SE.chm!#20000'/><Cell N='Copyright' V='Copyright 2001 Microsoft Corporation. All rights reserved.'/><Cell N='NoAlignBox' V='1'/><Cell N='DynFeedback' V='2'/><Cell N='GlueType' V='2'/><Cell N='ObjType' V='2'/><Cell N='NoLiveDynamics' V='1'/><Cell N='ShapeSplittable' V='1'/><Cell N='LayerMember' V='0'/><Section N='Control'><Row N='TextPosition'><Cell N='X' V='0'/><Cell N='Y' V='-1'/><Cell N='XDyn' V='0' F='Controls.TextPosition'/><Cell N='YDyn' V='-1' F='Controls.TextPosition.Y'/><Cell N='XCon' V='5' F='IF(OR(STRSAME(SHAPETEXT(TheText),\"\"),HideText),5,0)'/><Cell N='YCon' V='0'/><Cell N='CanGlue' V='0'/><Cell N='Prompt' V='Reposition Text'/></Row></Section><Section N='Geometry' IX='0'><Cell N='NoFill' V='1'/><Cell N='NoLine' V='0'/><Cell N='NoShow' V='0'/><Cell N='NoSnap' V='0'/><Cell N='NoQuickDrag' V='0'/><Row T='MoveTo' IX='1'><Cell N='X' V='0'/><Cell N='Y' V='0'/></Row><Row T='LineTo' IX='2'><Cell N='X' V='0'/><Cell N='Y' V='-1'/></Row></Section></Shape></Shapes></MasterContents>"}, g;for(g in d)if(1<b&&g==E.CONTENT_TYPES_XML){for(var p=mxUtils.parseXml(d[g]),c=p.documentElement,f=c.children,D=null,C=0;C<f.length;C++){var y=f[C];"/visio/pages/page1.xml"==y.getAttribute(E.PART_NAME)&&(D=y)}for(C=2;C<=b;C++)f=D.cloneNode(),f.setAttribute(E.PART_NAME,"/visio/pages/page"+C+".xml"),c.appendChild(f);z(a,g,p,!0)}else a.file(g,d[g])}function w(a,b,d){return null!=a.createElementNS?a.createElementNS(b,d):a.createElement(d)}function l(a){var b=F[a];null==b&&(b=B++,F[a]=b);return b}function h(a){var b= {};try{var d=a.getGraphBounds().clone(),g=a.view.scale,p=a.view.translate,c=Math.round(d.x/g)-p.x,f=Math.round(d.y/g)-p.y,D=a.pageFormat.width,C=a.pageFormat.height;0>c&&(c+=Math.ceil((p.x-d.x/g)/D)*D);0>f&&(f+=Math.ceil((p.y-d.y/g)/C)*C);var y=Math.max(1,Math.ceil((d.width/g+c)/D)),q=Math.max(1,Math.ceil((d.height/g+f)/C));b.gridEnabled=a.gridEnabled;b.gridSize=a.gridSize;b.guidesEnabled=a.graphHandler.guidesEnabled;b.pageVisible=a.pageVisible;b.pageScale=a.pageScale;b.pageWidth=a.pageFormat.width* y;b.pageHeight=a.pageFormat.height*q;b.backgroundClr=a.background;b.mathEnabled=a.mathEnabled;b.shadowVisible=a.shadowVisible}catch(Ea){}return b}function f(a,d,g,p){return b(a,d/E.CONVERSION_FACTOR,g,p)}function b(a,b,d,g){d=w(d,E.XMLNS,"Cell");d.setAttribute("N",a);d.setAttribute("V",b);g&&d.setAttribute("F",g);return d}function a(a,b,d,g,p){var c=w(p,E.XMLNS,"Row");c.setAttribute("T",a);c.setAttribute("IX",b);c.appendChild(f("X",d,p));c.appendChild(f("Y",g,p));return c}function d(a,d,g){var p= a.style[mxConstants.STYLE_FILLCOLOR];if(p&&"none"!=p){if(d.appendChild(b("FillForegnd",p,g)),(p=a.style[mxConstants.STYLE_GRADIENTCOLOR])&&"none"!=p){d.appendChild(b("FillBkgnd",p,g));var p=a.style[mxConstants.STYLE_GRADIENT_DIRECTION],c=28;if(p)switch(p){case mxConstants.DIRECTION_EAST:c=25;break;case mxConstants.DIRECTION_WEST:c=27;break;case mxConstants.DIRECTION_NORTH:c=30}d.appendChild(b("FillPattern",c,g))}}else d.appendChild(b("FillPattern",0,g));(p=a.style[mxConstants.STYLE_STROKECOLOR])&& "none"!=p?d.appendChild(b("LineColor",p,g)):d.appendChild(b("LinePattern",0,g));(p=a.style[mxConstants.STYLE_STROKEWIDTH])&&d.appendChild(f("LineWeight",p,g));(c=a.style[mxConstants.STYLE_OPACITY])?p=c:(p=a.style[mxConstants.STYLE_FILL_OPACITY],c=a.style[mxConstants.STYLE_STROKE_OPACITY]);p&&d.appendChild(b("FillForegndTrans",1-parseInt(p)/100,g));c&&d.appendChild(b("LineColorTrans",1-parseInt(c)/100,g));if(1==a.style[mxConstants.STYLE_DASHED]){p=a.style[mxConstants.STYLE_DASH_PATTERN];c=9;if(p)switch(p){case "1 1":c= 10;break;case "1 2":c=3;break;case "1 4":c=17}d.appendChild(b("LinePattern",c,g))}1==a.style[mxConstants.STYLE_SHADOW]&&(d.appendChild(b("ShdwPattern",1,g)),d.appendChild(b("ShdwForegnd","#000000",g)),d.appendChild(b("ShdwForegndTrans",.6,g)),d.appendChild(b("ShapeShdwType",1,g)),d.appendChild(b("ShapeShdwOffsetX","0.02946278254943948",g)),d.appendChild(b("ShapeShdwOffsetY","-0.02946278254943948",g)),d.appendChild(b("ShapeShdwScaleFactor","1",g)),d.appendChild(b("ShapeShdwBlur","0.05555555555555555", g)),d.appendChild(b("ShapeShdwShow",2,g)));1==a.style[mxConstants.STYLE_FLIPH]&&d.appendChild(b("FlipX",1,g));1==a.style[mxConstants.STYLE_FLIPV]&&d.appendChild(b("FlipY",1,g));1==a.style[mxConstants.STYLE_ROUNDED]&&d.appendChild(f("Rounding",.1*a.cell.geometry.width,g));(a=a.style[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR])&&d.appendChild(b("TextBkgnd",a,g))}function g(a,b,d,g,p){var c=w(d,E.XMLNS,"Shape");c.setAttribute("ID",a);c.setAttribute("NameU","Shape"+a);c.setAttribute("LineStyle","0");c.setAttribute("FillStyle", "0");c.setAttribute("TextStyle","0");a=b.width/2;var D=b.height/2;c.appendChild(f("PinX",b.x+a+(p?0:A.shiftX),d));c.appendChild(f("PinY",g-b.y-D-(p?0:A.shiftY),d));c.appendChild(f("Width",b.width,d));c.appendChild(f("Height",b.height,d));c.appendChild(f("LocPinX",a,d));c.appendChild(f("LocPinY",D,d));return c}function p(a,b){var d=E.ARROWS_MAP[(null==a?"none":a)+"|"+(null==b?"1":b)];return null!=d?d:1}function D(a){return null==a?2:2>=a?0:3>=a?1:5>=a?2:7>=a?3:9>=a?4:22>=a?5:6}function C(g,c,C,y,q){var h= c.view.getState(g);if(null==h)return null;c=w(C,E.XMLNS,"Shape");var z=l(g.id);c.setAttribute("ID",z);c.setAttribute("NameU","Dynamic connector."+z);c.setAttribute("Name","Dynamic connector."+z);c.setAttribute("Type","Shape");c.setAttribute("Master","4");var aa=A.state,z=h.absolutePoints,m=h.cellBounds,P=m.width/2,B=m.height/2;c.appendChild(f("PinX",m.x+P,C));c.appendChild(f("PinY",y-m.y-B,C));c.appendChild(f("Width",m.width,C));c.appendChild(f("Height",m.height,C));c.appendChild(f("LocPinX",P,C)); c.appendChild(f("LocPinY",B,C));A.newEdge(c,h,C);P=function(a,b){var d=a.x,g=a.y,d=d*aa.scale-m.x+aa.dx+(q?0:A.shiftX),g=(b?0:m.height)-g*aa.scale+m.y-aa.dy-(q?0:A.shiftY);return{x:d,y:g}};B=P(z[0],!0);c.appendChild(f("BeginX",m.x+B.x,C,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));c.appendChild(f("BeginY",y-m.y+B.y,C,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));B=P(z[z.length-1],!0);c.appendChild(f("EndX",m.x+B.x,C,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));c.appendChild(f("EndY", y-m.y+B.y,C,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));c.appendChild(b("BegTrigger","2",C,g.source?"_XFTRIGGER(Sheet."+l(g.source.id)+"!EventXFMod)":null));c.appendChild(b("EndTrigger","2",C,g.target?"_XFTRIGGER(Sheet."+l(g.target.id)+"!EventXFMod)":null));c.appendChild(b("ConFixedCode","6",C));c.appendChild(b("LayerMember","0",C));d(h,c,C);y=h.style[mxConstants.STYLE_STARTSIZE];g=p(h.style[mxConstants.STYLE_STARTARROW],h.style[mxConstants.STYLE_STARTFILL]);c.appendChild(b("BeginArrow",g, C));c.appendChild(b("BeginArrowSize",D(y),C));y=h.style[mxConstants.STYLE_ENDSIZE];g=p(h.style[mxConstants.STYLE_ENDARROW],h.style[mxConstants.STYLE_ENDFILL]);c.appendChild(b("EndArrow",g,C));c.appendChild(b("EndArrowSize",D(y),C));null!=h.text&&h.text.checkBounds()&&(A.save(),h.text.paint(A),A.restore());h=w(C,E.XMLNS,"Section");h.setAttribute("N","Geometry");h.setAttribute("IX","0");for(g=0;g<z.length;g++)y=P(z[g]),h.appendChild(a(0==g?"MoveTo":"LineTo",g+1,y.x,y.y,C));h.appendChild(b("NoFill", "1",C));h.appendChild(b("NoLine","0",C));c.appendChild(h);return c}function y(a,b,p,c,f,D){var q=a.geometry;if(null!=q){q.relative&&f&&(q=q.clone(),q.x*=f.width,q.y*=f.height,q.relative=0);f=l(a.id);if(!a.treatAsSingle&&0<a.getChildCount()){c=g(f+"10000",q,p,c,D);c.setAttribute("Type","Group");D=w(p,E.XMLNS,"Shapes");A.save();A.translate(-q.x,-q.y);f=q.clone();f.x=0;f.y=0;a.setGeometry(f);a.treatAsSingle=!0;f=y(a,b,p,q.height,q,!0);a.treatAsSingle=!1;a.setGeometry(q);D.appendChild(f);for(var h=0;h< a.children.length;h++)f=y(a.children[h],b,p,q.height,q,!0),D.appendChild(f);c.appendChild(D);A.restore();return c}return a.vertex?(c=g(f,q,p,c,D),a=b.view.getState(a),d(a,c,p),A.newShape(c,a,p),null!=a.text&&a.text.checkBounds()&&(A.save(),a.text.paint(A),A.restore()),null!=a.shape&&a.shape.checkBounds()&&(A.save(),a.shape.paint(A),A.restore()),c.appendChild(A.getShapeGeo()),A.endShape(),c.setAttribute("Type",A.getShapeType()),c):C(a,b,p,c,D)}return null}function q(a,b){var d=mxUtils.createXmlDocument(), g=w(d,E.XMLNS,"PageContents");g.setAttribute("xmlns:r",E.XMLNS_R);g.setAttribute("xml:space",E.XML_SPACE);var p=w(d,E.XMLNS,"Shapes");g.appendChild(p);var c=a.model,f=a.view.translate,D=a.view.scale,C=a.getGraphBounds();A.shiftX=0;A.shiftY=0;if(C.x/D<f.x||C.y/D<f.y)A.shiftX=Math.ceil((f.x-C.x/D)/a.pageFormat.width)*a.pageFormat.width,A.shiftY=Math.ceil((f.y-C.y/D)/a.pageFormat.height)*a.pageFormat.height;A.save();A.translate(-f.x,-f.y);A.scale(1/D);A.newPage();var D=a.getDefaultParent(),q;for(q in c.cells)f= c.cells[q],f.parent==D&&(f=y(f,a,d,b.pageHeight),null!=f&&p.appendChild(f));p=w(d,E.XMLNS,"Connects");g.appendChild(p);for(q in c.cells)f=c.cells[q],f.edge&&(f.source&&(D=w(d,E.XMLNS,"Connect"),D.setAttribute("FromSheet",l(f.id)),D.setAttribute("FromCell","BeginX"),D.setAttribute("ToSheet",l(f.source.id)),p.appendChild(D)),f.target&&(D=w(d,E.XMLNS,"Connect"),D.setAttribute("FromSheet",l(f.id)),D.setAttribute("FromCell","EndX"),D.setAttribute("ToSheet",l(f.target.id)),p.appendChild(D)));d.appendChild(g); A.restore();return d}function z(a,b,d,g){a.file(b,(g?"":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>')+mxUtils.getXml(d))}function aa(a,d,g){var p=mxUtils.createXmlDocument(),c=mxUtils.createXmlDocument(),D=w(p,E.XMLNS,"Pages");D.setAttribute("xmlns:r",E.XMLNS_R);D.setAttribute("xml:space",E.XML_SPACE);var C=w(c,E.RELS_XMLNS,"Relationships"),y=1,q;for(q in d){var h="page"+y+".xml",l=w(p,E.XMLNS,"Page");l.setAttribute("ID",y-1);l.setAttribute("NameU",q);l.setAttribute("Name",q);var aa= w(p,E.XMLNS,"PageSheet"),m=g[q];aa.appendChild(f("PageWidth",m.pageWidth,p));aa.appendChild(f("PageHeight",m.pageHeight,p));aa.appendChild(b("PageScale",m.pageScale,p));aa.appendChild(b("DrawingScale",1,p));m=w(p,E.XMLNS,"Rel");m.setAttribute("r:id","rId"+y);var P=w(p,E.XMLNS,"Section");P.setAttribute("N","Layer");var A=w(p,E.XMLNS,"Row");A.setAttribute("IX","0");P.appendChild(A);A.appendChild(b("Name","Connector",p));A.appendChild(b("Color","255",p));A.appendChild(b("Status","0",p));A.appendChild(b("Visible", "1",p));A.appendChild(b("Print","1",p));A.appendChild(b("Active","0",p));A.appendChild(b("Lock","0",p));A.appendChild(b("Snap","1",p));A.appendChild(b("Glue","1",p));A.appendChild(b("NameUniv","Connector",p));A.appendChild(b("ColorTrans","0",p));aa.appendChild(P);l.appendChild(aa);l.appendChild(m);D.appendChild(l);l=w(c,E.RELS_XMLNS,"Relationship");l.setAttribute("Id","rId"+y);l.setAttribute("Type",E.PAGES_TYPE);l.setAttribute("Target",h);C.appendChild(l);z(a,E.VISIO_PAGES+h,d[q]);y++}p.appendChild(D); c.appendChild(C);z(a,E.VISIO_PAGES+"pages.xml",p);z(a,E.VISIO_PAGES+"_rels/pages.xml.rels",c)}function P(a,b){var d=E.VISIO_PAGES_RELS+"page"+b+".xml.rels",g=mxUtils.createXmlDocument(),p=w(g,E.RELS_XMLNS,"Relationships"),c=w(g,E.RELS_XMLNS,"Relationship");c.setAttribute("Type","http://schemas.microsoft.com/visio/2010/relationships/master");c.setAttribute("Id","rId1");c.setAttribute("Target","../masters/master1.xml");p.appendChild(c);var f=A.images;if(0<f.length)for(var D=0;D<f.length;D++)c=w(g,E.RELS_XMLNS, "Relationship"),c.setAttribute("Type",E.XMLNS_R+"/image"),c.setAttribute("Id","rId"+(D+2)),c.setAttribute("Target","../media/"+f[D]),p.appendChild(c);g.appendChild(p);z(a,d,g)}var E=this,A=new mxVsdxCanvas2D,F={},B=1;this.exportCurrentDiagrams=function(){try{if(c.spinner.spin(document.body,mxResources.get("exporting"))){var a=new JSZip;A.init(a);F={};B=1;var b={},d={},g=null!=c.pages?c.pages.length:1;if(null!=c.pages){for(var p=c.editor.graph.getSelectionCells(),f=c.currentPage,D=0;D<c.pages.length;D++){var C= c.pages[D];c.currentPage!=C&&c.selectPage(C,!0);var y=C.getName(),l=c.editor.graph,z=h(l);b[y]=q(l,z);P(a,D+1);d[y]=z}f!=c.currentPage&&c.selectPage(f,!0);c.editor.graph.setSelectionCells(p)}else l=c.editor.graph,z=h(l),y="Page1",b[y]=q(l,z),P(a,1),d[y]=z;m(a,g);aa(a,b,d);b=function(){a.generateAsync({type:"base64"}).then(function(a){c.spinner.stop();var b=c.getBaseFilename();c.saveData(b+".vsdx","vsdx",a,"application/vnd.visio2013",!0)})};0<A.filesLoading?A.onFilesLoaded=b:b()}return!0}catch(Ea){return console.log(Ea), !1}}}VsdxExport.prototype.CONVERSION_FACTOR=101.6;VsdxExport.prototype.PAGES_TYPE="http://schemas.microsoft.com/visio/2010/relationships/page";VsdxExport.prototype.RELS_XMLNS="http://schemas.openxmlformats.org/package/2006/relationships";VsdxExport.prototype.XML_SPACE="preserve";VsdxExport.prototype.XMLNS_R="http://schemas.openxmlformats.org/officeDocument/2006/relationships";VsdxExport.prototype.XMLNS="http://schemas.microsoft.com/office/visio/2012/main";VsdxExport.prototype.VISIO_PAGES="visio/pages/"; VsdxExport.prototype.PREFEX="com/mxgraph/io/vsdx/resources/export/";VsdxExport.prototype.VSDX_ENC="ISO-8859-1";VsdxExport.prototype.PART_NAME="PartName";VsdxExport.prototype.CONTENT_TYPES_XML="[Content_Types].xml";VsdxExport.prototype.VISIO_PAGES_RELS="visio/pages/_rels/"; VsdxExport.prototype.ARROWS_MAP={"none|1":0,"none|0":0,"open|1":1,"open|0":1,"block|1":4,"block|0":14,"classic|1":5,"classic|0":17,"oval|1":10,"oval|0":20,"diamond|1":11,"diamond|0":22,"blockThin|1":2,"blockThin|0":15,"dash|1":23,"dash|0":23,"ERone|1":24,"ERone|0":24,"ERmandOne|1":25,"ERmandOne|0":25,"ERmany|1":27,"ERmany|0":27,"ERoneToMany|1":28,"ERoneToMany|0":28,"ERzeroToMany|1":29,"ERzeroToMany|0":29,"ERzeroToOne|1":30,"ERzeroToOne|0":30,"openAsync|1":9,"openAsync|0":9};function mxVsdxCanvas2D(){mxAbstractCanvas2D.call(this)}mxUtils.extend(mxVsdxCanvas2D,mxAbstractCanvas2D);mxVsdxCanvas2D.prototype.textEnabled=!0;mxVsdxCanvas2D.prototype.init=function(c){this.filesLoading=0;this.zip=c};mxVsdxCanvas2D.prototype.onFilesLoaded=function(){};mxVsdxCanvas2D.prototype.createElt=function(c){return null!=this.xmlDoc.createElementNS?this.xmlDoc.createElementNS(VsdxExport.prototype.XMLNS,c):this.xmlDoc.createElement(c)}; mxVsdxCanvas2D.prototype.createGeoSec=function(){null!=this.geoSec&&this.shape.appendChild(this.geoSec);var c=this.createElt("Section");c.setAttribute("N","Geometry");c.setAttribute("IX",this.geoIndex++);this.geoSec=c;this.geoStepIndex=1;this.lastMoveToY=this.lastMoveToX=this.lastY=this.lastX=0};mxVsdxCanvas2D.prototype.newShape=function(c,m,w){this.geoIndex=0;this.shape=c;this.cellState=m;this.xmGeo=m.cell.geometry;this.xmlDoc=w;this.shapeImg=this.geoSec=null;this.shapeType="Shape";this.createGeoSec()}; mxVsdxCanvas2D.prototype.newEdge=function(c,m,w){this.shape=c;this.cellState=m;this.xmGeo=m.cellBounds;this.xmlDoc=w};mxVsdxCanvas2D.prototype.endShape=function(){null!=this.shapeImg&&this.addForeignData(this.shapeImg.type,this.shapeImg.id)};mxVsdxCanvas2D.prototype.newPage=function(){this.images=[]};mxVsdxCanvas2D.prototype.getShapeType=function(){return this.shapeType};mxVsdxCanvas2D.prototype.getShapeGeo=function(){return this.geoSec}; mxVsdxCanvas2D.prototype.createCellElemScaled=function(c,m,w){return this.createCellElem(c,m/VsdxExport.prototype.CONVERSION_FACTOR,w)};mxVsdxCanvas2D.prototype.createCellElem=function(c,m,w){var l=this.createElt("Cell");l.setAttribute("N",c);l.setAttribute("V",m);w&&l.setAttribute("F",w);return l}; mxVsdxCanvas2D.prototype.createRowScaled=function(c,m,w,l,h,f,b,a,d,g,p,D,C,y){return this.createRowRel(c,m,w/VsdxExport.prototype.CONVERSION_FACTOR,l/VsdxExport.prototype.CONVERSION_FACTOR,h/VsdxExport.prototype.CONVERSION_FACTOR,f/VsdxExport.prototype.CONVERSION_FACTOR,b/VsdxExport.prototype.CONVERSION_FACTOR,a/VsdxExport.prototype.CONVERSION_FACTOR,d,g,p,D,C,y)}; mxVsdxCanvas2D.prototype.createRowRel=function(c,m,w,l,h,f,b,a,d,g,p,D,C,y){var q=this.createElt("Row");q.setAttribute("T",c);q.setAttribute("IX",m);q.appendChild(this.createCellElem("X",w,d));q.appendChild(this.createCellElem("Y",l,g));null!=h&&q.appendChild(this.createCellElem("A",h,p));null!=f&&q.appendChild(this.createCellElem("B",f,D));null!=b&&q.appendChild(this.createCellElem("C",b,C));null!=a&&q.appendChild(this.createCellElem("D",a,y));return q}; mxVsdxCanvas2D.prototype.begin=function(){1<this.geoStepIndex&&this.createGeoSec()}; mxVsdxCanvas2D.prototype.rect=function(c,m,w,l){1<this.geoStepIndex&&this.createGeoSec();var h=this.state;w*=h.scale;l*=h.scale;var f=this.xmGeo;c=(c-f.x+h.dx)*h.scale/w;m=(f.height-m+f.y-h.dy)*h.scale/l;this.geoSec.appendChild(this.createRowRel("RelMoveTo",this.geoStepIndex++,c,m));this.geoSec.appendChild(this.createRowRel("RelLineTo",this.geoStepIndex++,c+1,m));this.geoSec.appendChild(this.createRowRel("RelLineTo",this.geoStepIndex++,c+1,m-1));this.geoSec.appendChild(this.createRowRel("RelLineTo", this.geoStepIndex++,c,m-1));this.geoSec.appendChild(this.createRowRel("RelLineTo",this.geoStepIndex++,c,m))};mxVsdxCanvas2D.prototype.roundrect=function(c,m,w,l,h,f){this.rect(c,m,w,l);this.shape.appendChild(this.createCellElemScaled("Rounding",h))}; mxVsdxCanvas2D.prototype.ellipse=function(c,m,w,l){1<this.geoStepIndex&&this.createGeoSec();var h=this.state;w*=h.scale;l*=h.scale;var f=this.xmGeo,b=f.height*h.scale,a=f.width*h.scale;c=(c-f.x+h.dx)*h.scale;m=b+(-m+f.y-h.dy)*h.scale;this.geoSec.appendChild(this.createRowScaled("Ellipse",this.geoStepIndex++,c+w/2,m-l/2,c,m-l/2,c+w/2,m,"Width*"+(c+w/2)/a,"Height*"+(m-l/2)/b,"Width*"+c/a,"Height*"+(m-l/2)/b,"Width*"+(c+w/2)/a,"Height*"+m/b))}; mxVsdxCanvas2D.prototype.moveTo=function(c,m){1<this.geoStepIndex&&this.createGeoSec();this.lastMoveToX=c;this.lastMoveToY=m;this.lastX=c;this.lastY=m;var w=this.xmGeo,l=this.state;c=(c-w.x+l.dx)*l.scale;m=(w.height-m+w.y-l.dy)*l.scale;var h=w.height*l.scale,w=w.width*l.scale;this.geoSec.appendChild(this.createRowRel("RelMoveTo",this.geoStepIndex++,c/w,m/h))}; mxVsdxCanvas2D.prototype.lineTo=function(c,m){this.lastX=c;this.lastY=m;var w=this.xmGeo,l=this.state;c=(c-w.x+l.dx)*l.scale;m=(w.height-m+w.y-l.dy)*l.scale;var h=w.height*l.scale,w=w.width*l.scale;this.geoSec.appendChild(this.createRowRel("RelLineTo",this.geoStepIndex++,c/w,m/h))}; mxVsdxCanvas2D.prototype.quadTo=function(c,m,w,l){this.lastX=w;this.lastY=l;var h=this.state,f=this.xmGeo,b=f.height*h.scale,a=f.width*h.scale;c=(c-f.x+h.dx)*h.scale;m=(f.height-m+f.y-h.dy)*h.scale;w=(w-f.x+h.dx)*h.scale;l=(f.height-l+f.y-h.dy)*h.scale;this.geoSec.appendChild(this.createRowRel("RelQuadBezTo",this.geoStepIndex++,w/a,l/b,c/a,m/b))}; mxVsdxCanvas2D.prototype.curveTo=function(c,m,w,l,h,f){this.lastX=h;this.lastY=f;var b=this.state,a=this.xmGeo,d=a.height*b.scale,g=a.width*b.scale;c=(c-a.x+b.dx)*b.scale;m=(a.height-m+a.y-b.dy)*b.scale;w=(w-a.x+b.dx)*b.scale;l=(a.height-l+a.y-b.dy)*b.scale;h=(h-a.x+b.dx)*b.scale;f=(a.height-f+a.y-b.dy)*b.scale;this.geoSec.appendChild(this.createRowRel("RelCubBezTo",this.geoStepIndex++,h/g,f/d,c/g,m/d,w/g,l/d))}; mxVsdxCanvas2D.prototype.close=function(){this.lastMoveToX==this.lastX&&this.lastMoveToY==this.lastY||this.lineTo(this.lastMoveToX,this.lastMoveToY)};mxVsdxCanvas2D.prototype.addForeignData=function(c,m){var w=this.createElt("ForeignData");w.setAttribute("ForeignType","Bitmap");c=c.toUpperCase();"BMP"!=c&&w.setAttribute("CompressionType",c);var l=this.createElt("Rel");l.setAttribute("r:id","rId"+m);w.appendChild(l);this.shape.appendChild(w);this.shapeType="Foreign"}; mxVsdxCanvas2D.prototype.convertSvg2Png=function(c,m,w){var l=this;this.filesLoading++;try{var h=document.createElement("canvas"),f=h.getContext("2d");m||(c=String.fromCharCode.apply(null,new Uint8Array(c)),c=window.btoa?btoa(c):Base64.encode(c,!0));m="data:image/svg+xml;base64,"+c;img=new Image;img.onload=function(){h.width=this.width;h.height=this.height;f.drawImage(this,0,0);try{w(h.toDataURL("image/png"))}catch(b){}l.filesLoading--;if(0==l.filesLoading)l.onFilesLoaded()};img.onerror=function(){console.log("SVG2PNG conversion failed"); try{w(c)}catch(b){}l.filesLoading--;if(0==l.filesLoading)l.onFilesLoaded()};img.src=m}catch(b){console.log("SVG2PNG conversion failed"+b.message);try{w(c)}catch(a){}this.filesLoading--;if(0==l.filesLoading)l.onFilesLoaded()}}; mxVsdxCanvas2D.prototype.image=function(c,m,w,l,h,f,b,a){var d=this,g="image"+(this.images.length+1)+".",p;if(0==h.indexOf("data:"))p=h.indexOf("base64,"),f=h.substring(p+7),p=h.substring(11,p-1),0==p.indexOf("svg")?(p="png",g+=p,this.convertSvg2Png(f,!0,function(a){d.zip.file("visio/media/"+g,a.substring(22),{base64:!0})})):(g+=p,this.zip.file("visio/media/"+g,f,{base64:!0}));else if(window.XMLHttpRequest){h=this.converter.convert(h);this.filesLoading++;p=h.lastIndexOf(".");p=h.substring(p+1);var D= !1;0==p.indexOf("svg")&&(p="png",D=!0);g+=p;f=new XMLHttpRequest;f.open("GET",h,!0);f.responseType="arraybuffer";f.onreadystatechange=function(a){if(4==this.readyState&&(200==this.status&&(D?d.convertSvg2Png(this.response,!1,function(a){d.zip.file("visio/media/"+g,a.substring(22),{base64:!0})}):d.zip.file("visio/media/"+g,this.response)),d.filesLoading--,0==d.filesLoading))d.onFilesLoaded()};f.send()}this.images.push(g);this.shapeImg={type:p,id:this.images.length+1};h=this.state;w*=h.scale;l*=h.scale; p=this.xmGeo;c=(c-p.x+h.dx)*h.scale;m=(p.height-m+p.y-h.dy)*h.scale;this.shape.appendChild(this.createCellElemScaled("ImgOffsetX",c));this.shape.appendChild(this.createCellElemScaled("ImgOffsetY",m-l));this.shape.appendChild(this.createCellElemScaled("ImgWidth",w));this.shape.appendChild(this.createCellElemScaled("ImgHeight",l))}; mxVsdxCanvas2D.prototype.text=function(c,m,w,l,h,f,b,a,d,g,p,D,C){var y=this;if(this.textEnabled&&null!=h){mxUtils.isNode(h)&&(h=mxUtils.getOuterHtml(h));"html"==d&&("0"!=mxUtils.getValue(this.cellState.style,"nl2Br","1")&&(h=h.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n")),null==this.html2txtDiv&&(this.html2txtDiv=document.createElement("div")),this.html2txtDiv.innerHTML=h,h=mxUtils.extractTextWithWhitespace(this.html2txtDiv.childNodes));g=this.state;p=this.xmGeo;w*=g.scale;l*=g.scale;var q=this.createElt("Section"); q.setAttribute("N","Character");var z=this.createElt("Section");z.setAttribute("N","Paragraph");var aa=this.createElt("Text"),P=0,E=0,A=0,F=0,B=0,Y=0,K=function(b,d,g,p,c){g=b.fontSize;var f=b.fontFamily,D=mxUtils.getSizeForString(c,g,f);a&&D.width>w&&(D=mxUtils.getSizeForString(c,g,f,w));b.blockElem?(F+=D.width,E=Math.min(Math.max(E,F),w),F=0,B=Math.max(B,D.height),A+=B+Y,Y=B,B=0):(F+=D.width,E=Math.min(Math.max(E,F),w),B=Math.max(B,D.height),A=Math.max(A,B));D=y.createElt("Row");D.setAttribute("IX", P);b.fontColor&&D.appendChild(y.createCellElem("Color",b.fontColor));g&&D.appendChild(y.createCellElemScaled("Size",.97*g));f&&D.appendChild(y.createCellElem("Font",f));g=0;b.bold&&(g|=17);b.italic&&(g|=34);b.underline&&(g|=4);D.appendChild(y.createCellElem("Style",g));D.appendChild(y.createCellElem("Case","0"));D.appendChild(y.createCellElem("Pos","0"));D.appendChild(y.createCellElem("FontScale","1"));D.appendChild(y.createCellElem("Letterspace","0"));d.appendChild(D);d=y.createElt("cp");d.setAttribute("IX", P++);p.appendChild(d);b=y.xmlDoc.createTextNode(c+(b.blockElem?"\n":""));p.appendChild(b)},X=function(a,b){b=b||{};for(var d=0;d<a.length;d++)if(3==a[d].nodeType){var g={fontColor:b.fontColor||y.cellState.style.fontColor,fontSize:b.fontSize||y.cellState.style.fontSize,fontFamily:b.fontFamily||y.cellState.style.fontFamily,align:b.align||y.cellState.style.align,bold:b.bold,italic:b.italic,underline:b.underline};K(g,q,z,aa,a[d].textContent)}else if(1==a[d].nodeType){var g=a[d].nodeName.toUpperCase(), p=a[d].childNodes.length,c=window.getComputedStyle(a[d],null),f="bold"==c.getPropertyValue("font-weight")||b.bold,D="italic"==c.getPropertyValue("font-style")||b.italic,C=0<=c.getPropertyValue("text-decoration").indexOf("underline")||b.underline,h=c.getPropertyValue("text-align"),l;l=c.getPropertyValue("color");l=(l=l.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===l.length?"#"+("0"+parseInt(l[1],10).toString(16)).slice(-2)+("0"+parseInt(l[2],10).toString(16)).slice(-2)+ ("0"+parseInt(l[3],10).toString(16)).slice(-2):"";g={bold:f,italic:D,underline:C,align:h,fontColor:l,fontSize:parseFloat(c.getPropertyValue("font-size")),fontFamily:c.getPropertyValue("font-family").replace(/"/g,""),blockElem:"block"==c.getPropertyValue("display")||"BR"==g||"LI"==g};0<p?(K(g,q,z,aa,""),X(a[d].childNodes,g)):K(g,q,z,aa,a[d].textContent)}};"html"==d&&mxClient.IS_SVG?(h=this.cellState.text.node.getElementsByTagName("div")[mxClient.NO_FO?0:1],null!=h&&X(h.childNodes,{})):K({fontColor:y.cellState.style.fontColor, fontSize:y.cellState.style.fontSize,fontFamily:y.cellState.style.fontFamily},q,z,aa,h);d=h=0;switch(f){case "right":h=E/2;break;case "center":h=0;break;case "left":h=-E/2}switch(b){case "top":d=A/2;break;case "middle":d=0;break;case "bottom":d=-A/2}l=Math.max(l,A);w=Math.max(w,E);c=(c-p.x+g.dx)*g.scale;m=(p.height-m+p.y-g.dy)*g.scale;f=w/2;b=l/2;this.shape.appendChild(this.createCellElemScaled("TxtPinX",c));this.shape.appendChild(this.createCellElemScaled("TxtPinY",m));this.shape.appendChild(this.createCellElemScaled("TxtWidth", w));this.shape.appendChild(this.createCellElemScaled("TxtHeight",l));this.shape.appendChild(this.createCellElemScaled("TxtLocPinX",f+h));this.shape.appendChild(this.createCellElemScaled("TxtLocPinY",b+d));0!=D&&this.shape.appendChild(this.createCellElem("TxtAngle",(360-D)*Math.PI/180));this.shape.appendChild(q);this.shape.appendChild(aa)}}; mxVsdxCanvas2D.prototype.rotate=function(c,m,w,l,h){0!=c&&(m=this.state,l+=m.dx,h+=m.dy,l*=m.scale,h*=m.scale,this.shape.appendChild(this.createCellElem("Angle",(360-c)*Math.PI/180)),m.rotation+=c,m.rotationCx=l,m.rotationCy=h)};mxVsdxCanvas2D.prototype.stroke=function(){this.geoSec.appendChild(this.createCellElem("NoFill","1"));this.geoSec.appendChild(this.createCellElem("NoLine","0"))}; mxVsdxCanvas2D.prototype.fill=function(){this.geoSec.appendChild(this.createCellElem("NoFill","0"));this.geoSec.appendChild(this.createCellElem("NoLine","1"))};mxVsdxCanvas2D.prototype.fillAndStroke=function(){this.geoSec.appendChild(this.createCellElem("NoFill","0"));this.geoSec.appendChild(this.createCellElem("NoLine","0"))};function BmpDecoder(c,m){this.pos=0;this.buffer=c;this.is_with_alpha=!!m;if(66!=this.buffer[0]&&77!=this.buffer[1])throw Error("Invalid BMP File");this.pos+=2;this.parseHeader();this.parseBGR()} BmpDecoder.prototype.parseHeader=function(){var c=this.buffer;this.fileSize=c[this.pos+3]<<24|c[this.pos+2]<<16|c[this.pos+1]<<8|c[this.pos];this.pos+=4;this.reserved=c[this.pos+3]<<24|c[this.pos+2]<<16|c[this.pos+1]<<8|c[this.pos];this.pos+=4;this.offset=c[this.pos+3]<<24|c[this.pos+2]<<16|c[this.pos+1]<<8|c[this.pos];this.pos+=4;this.headerSize=c[this.pos+3]<<24|c[this.pos+2]<<16|c[this.pos+1]<<8|c[this.pos];this.pos+=4;this.width=c[this.pos+3]<<24|c[this.pos+2]<<16|c[this.pos+1]<<8|c[this.pos]; this.pos+=4;this.height=c[this.pos+3]<<24|c[this.pos+2]<<16|c[this.pos+1]<<8|c[this.pos];this.pos+=4;this.planes=c[this.pos+1]<<8|c[this.pos];this.pos+=2;this.bitPP=c[this.pos+1]<<8|c[this.pos];this.pos+=2;this.compress=c[this.pos+3]<<24|c[this.pos+2]<<16|c[this.pos+1]<<8|c[this.pos];this.pos+=4;this.rawSize=c[this.pos+3]<<24|c[this.pos+2]<<16|c[this.pos+1]<<8|c[this.pos];this.pos+=4;this.hr=c[this.pos+3]<<24|c[this.pos+2]<<16|c[this.pos+1]<<8|c[this.pos];this.pos+=4;this.vr=c[this.pos+3]<<24|c[this.pos+ 2]<<16|c[this.pos+1]<<8|c[this.pos];this.pos+=4;this.colors=c[this.pos+3]<<24|c[this.pos+2]<<16|c[this.pos+1]<<8|c[this.pos];this.pos+=4;this.importantColors=c[this.pos+3]<<24|c[this.pos+2]<<16|c[this.pos+1]<<8|c[this.pos];this.pos+=4;16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15);if(15>this.bitPP){c=0===this.colors?1<<this.bitPP:this.colors;this.palette=Array(c);for(var m=0;m<c;m++){var w=this.buffer[this.pos++],l=this.buffer[this.pos++],h=this.buffer[this.pos++],f=this.buffer[this.pos++]; this.palette[m]={red:h,green:l,blue:w,quad:f}}}};BmpDecoder.prototype.parseBGR=function(){this.pos=this.offset;try{var c="bit"+this.bitPP,m=document.createElement("canvas").getContext("2d").createImageData(this.width,this.height);this.imageData=m;this.data=m.data;this[c]()}catch(w){console.log("bit decode error:"+w)}}; BmpDecoder.prototype.bit1=function(){for(var c=Math.ceil(this.width/8),m=c%4,w=this.height-1;0<=w;w--){for(var l=0;l<c;l++)for(var h=this.buffer[this.pos++],f=w*this.width*4+32*l,b=0;8>b;b++)if(8*l+b<this.width){var a=this.palette[h>>7-b&1];this.data[f+4*b]=a.red;this.data[f+4*b+1]=a.green;this.data[f+4*b+2]=a.blue;this.data[f+4*b+3]=255}else break;0!=m&&(this.pos+=4-m)}}; BmpDecoder.prototype.bit4=function(){for(var c=Math.ceil(this.width/2),m=c%4,w=this.height-1;0<=w;w--){for(var l=0;l<c;l++){var h=this.buffer[this.pos++],f=w*this.width*4+8*l,b=h&15,h=this.palette[h>>4];this.data[f]=h.red;this.data[f+1]=h.green;this.data[f+2]=h.blue;this.data[f+3]=255;if(2*l+1>=this.width)break;h=this.palette[b];this.data[f+4]=h.red;this.data[f+4+1]=h.green;this.data[f+4+2]=h.blue;this.data[f+4+3]=255}0!=m&&(this.pos+=4-m)}}; BmpDecoder.prototype.bit8=function(){for(var c=this.width%4,m=this.height-1;0<=m;m--){for(var w=0;w<this.width;w++){var l=this.buffer[this.pos++],h=m*this.width*4+4*w;l<this.palette.length?(l=this.palette[l],this.data[h]=l.red,this.data[h+1]=l.green,this.data[h+2]=l.blue):(this.data[h]=255,this.data[h+1]=255,this.data[h+2]=255);this.data[h+3]=255}0!=c&&(this.pos+=4-c)}}; BmpDecoder.prototype.bit15=function(){var c=2*this.width%4;0!=c&&(c=4-c);for(var m=this.height-1;0<=m;m--){for(var w=0;w<this.width;w++){var l=this.buffer[this.pos+1]<<8|this.buffer[this.pos];this.pos+=2;var h=(l&31)/31*255|0,f=(l>>5&31)/31*255|0,b=l>>15?255:0,a=m*this.width*4+4*w;this.data[a]=(l>>10&31)/31*255|0;this.data[a+1]=f;this.data[a+2]=h;this.data[a+3]=b}this.pos+=c}}; BmpDecoder.prototype.bit16=function(){var c=2*this.width%4;0!=c&&(c=4-c);for(var m=this.height-1;0<=m;m--){for(var w=0;w<this.width;w++){var l=this.buffer[this.pos+1]<<8|this.buffer[this.pos];this.pos+=2;var h=(l&31)/31*255|0,f=(l>>5&31)/31*255|0,b=m*this.width*4+4*w;this.data[b]=(l>>10&31)/31*255|0;this.data[b+1]=f;this.data[b+2]=h;this.data[b+3]=255}this.pos+=c}}; BmpDecoder.prototype.bit24=function(){var c=3*this.width%4;0!=c&&(c=4-c);for(var m=this.height-1;0<=m;m--){for(var w=0;w<this.width;w++){var l=this.buffer[this.pos++],h=this.buffer[this.pos++],f=this.buffer[this.pos++],b=m*this.width*4+4*w;this.data[b]=f;this.data[b+1]=h;this.data[b+2]=l;this.data[b+3]=255}this.pos+=c}}; BmpDecoder.prototype.bit32=function(){for(var c=this.height-1;0<=c;c--)for(var m=0;m<this.width;m++){var w=this.buffer[this.pos++],l=this.buffer[this.pos++],h=this.buffer[this.pos++],f=this.buffer[this.pos++],b=c*this.width*4+4*m;this.data[b]=h;this.data[b+1]=l;this.data[b+2]=w;this.data[b+3]=f}};BmpDecoder.prototype.getData=function(){return this.data};var __extends=this&&this.__extends||function(c,m){function w(){this.constructor=c}for(var l in m)m.hasOwnProperty(l)&&(c[l]=m[l]);c.prototype=null===m?Object.create(m):(w.prototype=m.prototype,new w)},com; (function(c){(function(m){(function(w){var l=function(){function h(){this.RESPONSE_END="</mxfile>";this.RESPONSE_DIAGRAM_START="";this.RESPONSE_DIAGRAM_END="</diagram>";this.RESPONSE_HEADER='<?xml version="1.0" encoding="UTF-8"?><mxfile>';this.vertexMap={};this.edgeShapeMap={};this.vertexShapeMap={};this.parentsMap={};this.debugPaths=!1;this.vsdxModel=null}h.vsdxPlaceholder_$LI$=function(){null==h.vsdxPlaceholder&&(h.vsdxPlaceholder=window.atob?atob("dmlzaW8="):Base64.decode("dmlzaW8=",!0));return h.vsdxPlaceholder}; h.parsererrorNS_$LI$=function(){if(null==h.parsererrorNS&&(h.parsererrorNS="",window.DOMParser)){var c=new DOMParser;try{h.parsererrorNS=c.parseFromString("<","text/xml").getElementsByTagName("parsererror")[0].namespaceURI}catch(b){}}return h.parsererrorNS};h.parseXml=function(c){try{var b=mxUtils.parseXml(c);return 0<b.getElementsByTagNameNS(h.parsererrorNS,"parsererror").length?null:b}catch(a){return null}};h.decodeUTF16LE=function(c){for(var b="",a=0;a<c.length;a+=2)b+=String.fromCharCode(c.charCodeAt(a)| c.charCodeAt(a+1)<<8);return b};h.prototype.decodeVsdx=function(f,b,a,d){var g=this,p={},D={},C=function(){for(var a=h.vsdxPlaceholder+"/document.xml",d=p[a]?p[a]:null,f=d.firstChild;null!=f&&1!=f.nodeType;)f=f.nextSibling;if(null!=f&&1==f.nodeType)g.importNodes(d,f,a,p);else return null;g.vsdxModel=new c.mxgraph.io.vsdx.mxVsdxModel(d,p,D);for(var a=g.vsdxModel.getPages(),C=g.RESPONSE_HEADER,y=function(a){null==a.entries&&(a.entries=[]);return a.entries}(a),a=function(a){a=y[a].getValue();if(!a.isBackground()){var b= q.createMxGraph();b.getModel().beginUpdate();q.importPage(a,b,b.getDefaultParent());var d=a.getBackPage();if(null!=d){b.getModel().setValue(b.getDefaultParent(),a.getPageName());var p=new mxCell(d.getPageName());b.addCell(p,b.getModel().getRoot(),0,null,null);q.importPage(d,b,b.getDefaultParent())}d=a.getPageScale()/a.getDrawingScale();if(1!==d){var p=b.getModel(),c;for(c in p.cells){var f=p.cells[c],D=p.getGeometry(f);if(null!=D&&(q.scaleRect(D,d),q.scaleRect(D.alternateBounds,d),p.isEdge(f)&&(q.scalePoint(D.sourcePoint, d),q.scalePoint(D.targetPoint,d),q.scalePoint(D.offset,d),f=D.points,null!=f)))for(D=0;D<f.length;D++)q.scalePoint(f[D],d)}}b.getModel().endUpdate();C=C.concat(g.RESPONSE_DIAGRAM_START);C=C.concat(g.processPage(b,a));C=C.concat(g.RESPONSE_DIAGRAM_END)}},q=g,d=0;d<y.length;d++)a(d);C=C.concat(g.RESPONSE_END);b&&b(C)},y=0,q=0,l=function(){if(q==y)try{C()}catch(aa){console.log(aa),null!=d?d():b("")}};JSZip.loadAsync(f).then(function(a){0==Object.keys(a.files).length?null!=d&&d():a.forEach(function(a, b){var d=b.name,f=d.toLowerCase(),C=f.length;f.indexOf(".xml")==C-4||f.indexOf(".xml.rels")==C-9?(y++,b.async("string").then(function(a){if(0!==a.length){65279==a.charCodeAt(0)&&(a=a.substring(1));var b=h.parseXml(a);null==b&&0===a.charCodeAt(1)&&0===a.charCodeAt(3)&&0===a.charCodeAt(5)&&(b=h.parseXml(h.decodeUTF16LE(a)));null!=b&&(b.vsdxFileName=d,p[d]=b)}q++;l()})):0===f.indexOf(h.vsdxPlaceholder+"/media")&&(y++,function(a,b){var d=a.length-b.length,g=a.indexOf(b,d);return-1!==g&&g===d}(f,".emf")? JSZip.support.uint8array&&b.async("uint8array").then(function(a){for(var b=!1,p="",f=0;f<a.length-8;f++)if(g.isPng(a,f)||g.isJpg(a,f)){p=c.mxgraph.online.mxBase64.encodeToString(a,f);b=!0;break}b&&(D[d]=p);q++;l()}):function(a,b){var d=a.length-b.length,g=a.indexOf(b,d);return-1!==g&&g===d}(f,".bmp")?JSZip.support.uint8array&&b.async("uint8array").then(function(a){a=new BmpDecoder(a);var b=document.createElement("canvas");b.width=a.width;b.height=a.height;b.getContext("2d").putImageData(a.imageData, 0,0);a=b.toDataURL("image/jpeg");D[d]=a.substr(23);q++;l()}):b.async("base64").then(function(a){D[d]=a;q++;l()}))})},function(a){null!=d&&d(a)})};h.prototype.createMxGraph=function(){var c=new mxGraph;c.setExtendParents(!1);c.setExtendParentsOnAdd(!1);c.setConstrainChildren(!1);c.setHtmlLabels(!0);c.getModel().maintainEdgeParent=!1;return c};h.prototype.processPage=function(c,b){var a=(new mxCodec).encode(c.getModel());a.setAttribute("style","default-style2");var a=mxUtils.getXml(a),d="";if(null!= b)var g=mxUtils.htmlEntities(b.getPageName()),d=d+('<diagram name="'+g+'">');return d+=Graph.prototype.compress(a)};h.prototype.isJpg=function(c,b){return 255===c[b]&&216===c[b+1]&&255===c[b+2]};h.prototype.isPng=function(c,b){return 137===c[b]&&80===c[b+1]&&78===c[b+2]&&71===c[b+3]&&13===c[b+4]&&10===c[b+5]&&26===c[b+6]&&10===c[b+7]};h.prototype.scalePoint=function(c,b){null!=c&&(c.x*=b,c.y*=b);return c};h.prototype.scaleRect=function(c,b){null!=c&&(c.x*=b,c.y*=b,c.height*=b,c.width*=b);return c}; h.prototype.importNodes=function(c,b,a,d){var g=a.lastIndexOf("/"),p=a,f=a;if(-1!==g&&(p=a.substring(0,g),f=a.substring(g+1,a.length),a=function(a,b){return a[b]?a[b]:null}(d,p+"/_rels/"+f+".rels"),null!=a)){var C=a.getElementsByTagName("Relationship");a={};for(g=0;g<C.length;g++){var f=C.item(g),y=f.getAttribute("Id"),f=f.getAttribute("Target");a[y]=f}b=b.getElementsByTagName("Rel");for(g=0;g<b.length;g++)if(C=b.item(g),f=function(a,b){return a[b]?a[b]:null}(a,C.getAttribute("r:id")),f=p+"/"+f,null!= f&&(y=d[f]?d[f]:null,null!=y)){C=C.parentNode;for(y=y.firstChild;null!=y&&1!=y.nodeType;)y=y.nextSibling;if(null!=y&&1==y.nodeType)for(y=y.firstChild;null!=y;){if(null!=y&&1==y.nodeType){var q=C.appendChild(c.importNode(y,!0));this.importNodes(c,q,f,d)}y=y.nextSibling}}}};h.prototype.importPage=function(c,b,a){for(var d=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){null==a.entries&&(a.entries=[]);return a.entries}(c.getShapes())), g=c.getPageDimensions().y,p=c.getId();d.hasNext();){var f=d.next();this.addShape(b,f.getValue(),a,p,g)}for(c=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){null==a.entries&&(a.entries=[]);return a.entries}(c.getConnects()));c.hasNext();)f=c.next(),f=this.addConnectedEdge(b,f.getValue(),p,g),null!=f&&function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)|| a.entries[d].key===b)return a.entries.splice(d,1)[0]}(this.edgeShapeMap,f);for(f=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){null==a.entries&&(a.entries=[]);return a.entries}(this.edgeShapeMap));f.hasNext();)c=f.next(),c.getKey().getPageNumber()===p&&this.addUnconnectedEdge(b,function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)|| a.entries[d].key===b)return a.entries[d].value;return null}(this.parentsMap,c.getKey()),c.getValue(),g);this.sanitiseGraph(b);return g};h.prototype.addShape=function(f,b,a,d,g){b.parentHeight=g;var p=c.mxgraph.io.vsdx.VsdxShape.getType(b.getShape());if(null!=p&&(function(a,b){return a&&a.equals?a.equals(b):a===b}(p,c.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(a,b){return a&&a.equals?a.equals(b):a===b}(p,c.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(a,b){return a&&a.equals?a.equals(b): a===b}(p,c.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))){p=b.getId();if(b.isVertex()){var D=null,D=b.isGroup()?this.addGroup(f,b,a,d,g):this.addVertex(f,b,a,d,g);(function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexShapeMap,new c.mxgraph.io.vsdx.ShapePageId(d, p),b);return D}b.setShapeIndex(f.getModel().getChildCount(a));(function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.edgeShapeMap,new c.mxgraph.io.vsdx.ShapePageId(d,p),b);(function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!= a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.parentsMap,new c.mxgraph.io.vsdx.ShapePageId(d,p),a)}return null};h.prototype.addGroup=function(f,b,a,d,g){var p=b.getDimensions(),D=b.getMaster(),C=b.getStyleFromShape(),y=b.getGeomList();y.isNoFill()&&(C[mxConstants.STYLE_FILLCOLOR]="none",C[mxConstants.STYLE_GRADIENTCOLOR]="none"); y.isNoLine()&&(C[mxConstants.STYLE_STROKECOLOR]="none");C.html="1";C[mxConstants.STYLE_WHITE_SPACE]="wrap";var q=c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(C,"="),C=null,h=b.getChildShapes(),C=null!=h&&0<function(a){null==a.entries&&(a.entries=[]);return a.entries.length}(h),y=b.isDisplacedLabel()||b.isRotatedLabel()||C,C=b.getOriginPoint(g,!0);if(y)C=f.insertVertex(a,null,null,Math.floor(Math.round(100*C.x)/100),Math.floor(Math.round(100*C.y)/100),Math.floor(Math.round(100*p.x)/100),Math.floor(Math.round(100* p.y)/100),q);else var l=b.getTextLabel(),C=f.insertVertex(a,null,l,Math.floor(Math.round(100*C.x)/100),Math.floor(Math.round(100*C.y)/100),Math.floor(Math.round(100*p.x)/100),Math.floor(Math.round(100*p.y)/100),q);for(a=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){null==a.entries&&(a.entries=[]);return a.entries}(h));a.hasNext();)q=a.next().getValue(),h=q.getId(),q.isVertex()?(l=c.mxgraph.io.vsdx.VsdxShape.getType(q.getShape()), null!=l&&(function(a,b){return a&&a.equals?a.equals(b):a===b}(l,c.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(a,b){return a&&a.equals?a.equals(b):a===b}(l,c.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(a,b){return a&&a.equals?a.equals(b):a===b}(l,c.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))&&q.isVertex()&&(q.propagateRotation(b.getRotation()),q.isGroup()?this.addGroup(f,q,C,d,p.y):this.addVertex(f,q,C,d,p.y)),null==D&&function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g< a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexShapeMap,new c.mxgraph.io.vsdx.ShapePageId(d,h),q)):null==D?(function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b, value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.edgeShapeMap,new c.mxgraph.io.vsdx.ShapePageId(d,h),q),function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.parentsMap,new c.mxgraph.io.vsdx.ShapePageId(d,h), C)):this.addUnconnectedEdge(f,C,q,g);y&&b.createLabelSubShape(f,C);f=b.getRotation();if(0!==f)for(d=C.getGeometry(),b=d.width/2,d=d.height/2,g=0;g<C.getChildCount();g++)p=C.getChildAt(g),c.mxgraph.online.Utils.rotatedGeometry(p.getGeometry(),f,b,d);return C};h.rotatedEdgePoint=function(c,b,a,d){b=b*Math.PI/180;var g=Math.cos(b);b=Math.sin(b);var p=c.x-a,f=c.y-d;c.x=Math.round(p*g-f*b+a);c.y=Math.round(f*g+p*b+d)};h.prototype.addVertex=function(f,b,a,d,g){var p="",D=b.isDisplacedLabel()||b.isRotatedLabel(); D||(p=b.getTextLabel());var C=b.getDimensions(),y=b.getStyleFromShape();y.html="1";var q=y.hasOwnProperty(mxConstants.STYLE_SHAPE)||y.hasOwnProperty("stencil");y.hasOwnProperty(mxConstants.STYLE_FILLCOLOR)&&q||(y[mxConstants.STYLE_FILLCOLOR]="none");q||(y[mxConstants.STYLE_STROKECOLOR]="none");y.hasOwnProperty(mxConstants.STYLE_GRADIENTCOLOR)&&q||(y[mxConstants.STYLE_GRADIENTCOLOR]="none");y[mxConstants.STYLE_WHITE_SPACE]="wrap";g=b.getOriginPoint(g,!0);return q||null!=p?(y=c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(y, "="),q=null,q=D?f.insertVertex(a,null,null,Math.floor(Math.round(100*g.x)/100),Math.floor(Math.round(100*g.y)/100),Math.floor(Math.round(100*C.x)/100),Math.floor(Math.round(100*C.y)/100),y):f.insertVertex(a,null,p,Math.floor(Math.round(100*g.x)/100),Math.floor(Math.round(100*g.y)/100),Math.floor(Math.round(100*C.x)/100),Math.floor(Math.round(100*C.y)/100),y),function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)|| a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexMap,new c.mxgraph.io.vsdx.ShapePageId(d,b.getId()),q),b.setLabelOffset(q,y),D&&b.createLabelSubShape(f,q),q):null};h.calculateAbsolutePoint=function(c){for(var b=0,a=0;null!=c;){var d=c.geometry;null!=d&&(b+=d.x,a+=d.y);c=c.parent}return new mxPoint(b,a)};h.prototype.addConnectedEdge=function(f,b,a,d){var g=b.getFromSheet(),g=new c.mxgraph.io.vsdx.ShapePageId(a, g),p=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.edgeShapeMap,g);if(null==p)return null;var D=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.parentsMap,new c.mxgraph.io.vsdx.ShapePageId(a, p.getId()));if(null!=D){var C=f.getModel().getGeometry(D);null!=C&&(d=C.height)}var y=p.getStartXY(d),q=p.getEndXY(d),C=p.getRoutingPoints(d,y,p.getRotation());this.rotateChildEdge(f.getModel(),D,y,q,C);var l=null,w=b.getSourceToSheet(),w=null!=w?function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.vertexMap,new c.mxgraph.io.vsdx.ShapePageId(a, w)):null,m=!0;if(null==w)w=f.insertVertex(D,null,null,Math.floor(Math.round(100*y.x)/100),Math.floor(Math.round(100*y.y)/100),0,0);else if(w.style&&-1==w.style.indexOf(";rotation="))var l=h.calculateAbsolutePoint(w),E=h.calculateAbsolutePoint(D),A=w.geometry,l=new mxPoint((E.x+y.x-l.x)/A.width,(E.y+y.y-l.y)/A.height);else m=!1;y=null;b=b.getTargetToSheet();b=null!=b?function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)|| a.entries[d].key===b)return a.entries[d].value;return null}(this.vertexMap,new c.mxgraph.io.vsdx.ShapePageId(a,b)):null;E=!0;null==b?b=f.insertVertex(D,null,null,Math.floor(Math.round(100*q.x)/100),Math.floor(Math.round(100*q.y)/100),0,0):b.style&&-1==b.style.indexOf(";rotation=")?(a=h.calculateAbsolutePoint(b),y=h.calculateAbsolutePoint(D),A=b.geometry,y=new mxPoint((y.x+q.x-a.x)/A.width,(y.y+q.y-a.y)/A.height)):E=!1;q=p.getStyleFromEdgeShape(d);A=p.getRotation();0!==A?(a=f.insertEdge(D,null,null, w,b,c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(q,"=")),m=p.createLabelSubShape(f,a),null!=m&&(m.setStyle(m.getStyle()+";rotation="+(60<A&&240>A?(A+180)%360:A)),m=m.getGeometry(),m.x=0,m.y=0,m.relative=!0,m.offset=new mxPoint(-m.width/2,-m.height/2))):(a=f.insertEdge(D,null,p.getTextLabel(),w,b,c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(q,"=")),A=p.getLblEdgeOffset(f.getView(),C),a.getGeometry().offset=A,null!=l&&f.setConnectionConstraint(a,w,!0,new mxConnectionConstraint(l,!1)),m&&C.shift(),null!= y&&f.setConnectionConstraint(a,b,!1,new mxConnectionConstraint(y,!1)),E&&C.pop());m=f.getModel().getGeometry(a);if(w.parent!=b.parent&&null!=D&&1!=D.id&&1==w.parent.id){b=l=0;do y=D.geometry,null!=y&&(l+=y.x,b+=y.y),D=D.parent;while(null!=D);a.parent=w.parent;for(D=0;D<C.length;D++)C[D].x+=l,C[D].y+=b}m.points=C;q.hasOwnProperty("curved")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(function(a,b){return a[b]?a[b]:null}(q,"curved"),"1")&&(m=f.getModel().getGeometry(a),f=p.getControlPoints(d), m.points=f);return g};h.prototype.addUnconnectedEdge=function(f,b,a,d){if(null!=b){var g=f.getModel().getGeometry(b);null!=g&&(d=g.height)}var p=a.getStartXY(d),D=a.getEndXY(d),C=a.getStyleFromEdgeShape(d),y=a.getRoutingPoints(d,p,a.getRotation()),q=a.getRotation();if(0!==q){0===a.getShapeIndex()?g=f.insertEdge(b,null,null,null,null,c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(C,"=")):(g=f.createEdge(b,null,null,null,null,c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(C,"=")),g=f.addEdge(g,b,null,null, a.getShapeIndex()));var h=a.createLabelSubShape(f,g);null!=h&&(h.setStyle(h.getStyle()+";rotation="+(60<q&&240>q?(q+180)%360:q)),q=h.getGeometry(),q.x=0,q.y=0,q.relative=!0,q.offset=new mxPoint(-q.width/2,-q.height/2))}else 0===a.getShapeIndex()?g=f.insertEdge(b,null,a.getTextLabel(),null,null,c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(C,"=")):(g=f.createEdge(b,null,a.getTextLabel(),null,null,c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(C,"=")),g=f.addEdge(g,b,null,null,a.getShapeIndex())),q=a.getLblEdgeOffset(f.getView(), y),g.getGeometry().offset=q;this.rotateChildEdge(f.getModel(),b,p,D,y);b=f.getModel().getGeometry(g);y.pop();y.shift();b.points=y;b.setTerminalPoint(p,!0);b.setTerminalPoint(D,!1);C.hasOwnProperty("curved")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(function(a,b){return a[b]?a[b]:null}(C,"curved"),"1")&&(b=f.getModel().getGeometry(g),f=a.getControlPoints(d),b.points=f);return g};h.prototype.rotateChildEdge=function(c,b,a,d,g){if(null!=b){var p=c.getGeometry(b);c=c.getStyle(b);if(null!=p&& null!=c&&(b=c.indexOf("rotation="),-1<b))for(c=parseFloat(c.substring(b+9,c.indexOf(";",b))),b=p.width/2,p=p.height/2,h.rotatedEdgePoint(a,c,b,p),h.rotatedEdgePoint(d,c,b,p),a=0;a<g.length;a++)h.rotatedEdgePoint(g[a],c,b,p)}};h.prototype.sanitiseGraph=function(c){var b=c.getModel().getRoot();this.sanitiseCell(c,b)};h.prototype.sanitiseCell=function(c,b){for(var a=c.getModel(),d=a.getChildCount(b),g=[],p=0;p<d;p++){var f=a.getChildAt(b,p);this.sanitiseCell(c,f)&&0<g.push(f)}for(p=0;p<g.length;p++)a.remove(g[p]); 0<d&&(d=a.getChildCount(b));g=(new String(a.getValue(b))).toString();p=a.getStyle(b);return 0!==d||!a.isVertex(b)||null!=a.getValue(b)&&0!==g.length||null==p||-1==p.indexOf(mxConstants.STYLE_FILLCOLOR+"=none")||-1==p.indexOf(mxConstants.STYLE_STROKECOLOR+"=none")||-1!=p.indexOf("image=")?!1:!0};return h}();w.mxVsdxCodec=l;l.__class="com.mxgraph.io.mxVsdxCodec"})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(w){var l=function(h){function f(){var b=h.call(this)||this;b.RESPONSE_END="";b.RESPONSE_DIAGRAM_START="";b.RESPONSE_DIAGRAM_END="";b.RESPONSE_HEADER="";return b}__extends(f,h);f.prototype.decodeVssx=function(b,a,d){var g=this,p="<mxlibrary>[";this.decodeVsdx(b,function(b){p=p.concat(b);var d=g.vsdxModel.getMasterShapes(),f=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){var b=[];null== a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)b.push(a.entries[d].value);return b}(g.vsdxModel.getPages())).next();if(null!=d){var D={str:"",toString:function(){return this.str}},l=0===b.length?"":",",w=function(a){return Object.keys(a).map(function(b){return a[b]})}(d);b=function(a){a=w[a];var b=m.createMxGraph(),g=a.getMasterShape().getShape(),p=new c.mxgraph.io.vsdx.VsdxShape(f,g,!f.isEdge(g),d,null,m.vsdxModel),g=null;if(p.isVertex()){m.edgeShapeMap.entries=[];m.parentsMap.entries= [];for(var g=m.addShape(b,p,b.getDefaultParent(),0,1169),p=function(a){null==a.entries&&(a.entries=[]);return a.entries}(m.edgeShapeMap),C=0;C<p.length;C++){var y=p[C],q=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(m.parentsMap,y.getKey());m.addUnconnectedEdge(b,q,y.getValue(),1169)}}else g=m.addUnconnectedEdge(b,null,p,1169);if(null!=g){g=m.normalizeGeo(g); m.sanitiseGraph(b);if(0===b.getModel().getChildCount(b.getDefaultParent()))return"continue";D.str=D.str.concat(l);D.str=D.str.concat('{"xml":"');b=h.prototype.processPage.call(m,b,null);D.str=D.str.concat(b);D.str=D.str.concat('","w":');D.str=D.str.concat(g.width);D.str=D.str.concat(',"h":');D.str=D.str.concat(g.height);D.str=D.str.concat(',"title":');a=a.getName();null==a&&(a="");a=JSON.stringify(mxUtils.htmlEntities(a));D.str=D.str.concat(a);D.str=D.str.concat("}");l=","}};for(var m=g,E=0;E<w.length;E++)b(E); p=p.concat(D)}p=p.concat("]</mxlibrary>");a&&a(p)},d)};f.prototype.normalizeGeo=function(b){var a=b.getGeometry();a.x=0;a.y=0;var d=a.sourcePoint;if(b.isEdge()&&null!=d){this.transPoint(a.targetPoint,d);this.transPoint(a.offset,d);b=a.points;if(null!=b)for(var g=0;g<b.length;g++)this.transPoint(b[g],d);this.transPoint(d,d)}return a};f.prototype.transPoint=function(b,a){null!=b&&(b.x-=a.x,b.y-=a.y)};f.prototype.processPage=function(b,a){var d=b.getModel(),g="",p="",f;for(f in d.cells){var C=d.cells[f]; if(b.getDefaultParent()===d.getParent(C)){var g=g.concat(p),g=g.concat('{"xml":"'),y=this.createMxGraph();y.addCell(C);this.sanitiseGraph(y);if(0===y.getModel().getChildCount(y.getDefaultParent()))return"continue";p=this.normalizeGeo(C);y=h.prototype.processPage.call(this,y,null);g=g.concat(y);g=g.concat('","w":');g=g.concat(p.width);g=g.concat(',"h":');g=g.concat(p.height);g=g.concat(',"title":"');p=d.getStyle(C);C="";if(null!=p&&(y=p.indexOf(c.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID),0<=y)){y+= c.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID.length+1;f=parseInt(p.substring(y,p.indexOf(";",y)));a:{p=this.vertexShapeMap;y=new c.mxgraph.io.vsdx.ShapePageId(a.getId(),f);null==p.entries&&(p.entries=[]);for(var q=0;q<p.entries.length;q++)if(null!=p.entries[q].key.equals&&p.entries[q].key.equals(y)||p.entries[q].key===y){p=p.entries[q].value;break a}p=null}null!=p&&(C=p.getName())}g=g.concat(C);g=g.concat('"}');p=","}}this.RESPONSE_DIAGRAM_START=0<g.length?",":"";return g};return f}(c.mxgraph.io.mxVsdxCodec); w.mxVssxCodec=l;l.__class="com.mxgraph.io.mxVssxCodec"})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(c){(function(c){(function(c){(function(c){var f=function(){function b(a,b,g){this.formulaE=this.formulaA=this.d=this.c=this.b=this.a=this.y=this.x=null;this.index=0;this.index=a;this.x=b;this.y=g}b.prototype.getX=function(){return this.x};b.prototype.getY=function(){return this.y};b.prototype.getA=function(){return this.a};b.prototype.getB=function(){return this.b};b.prototype.getC=function(){return this.c};b.prototype.getD=function(){return this.d};b.prototype.getFormulaA= function(){return this.formulaA};b.prototype.getFormulaE=function(){return this.formulaE};b.prototype.getIndex=function(){return this.index};return b}();c.Row=f;f.__class="com.mxgraph.io.vsdx.geometry.Row"})(c.geometry||(c.geometry={}))})(c.vsdx||(c.vsdx={}))})(c.io||(c.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(){function b(){}b.getIndex=function(a){try{return parseInt(a.getAttribute("IX"))}catch(d){return 1}};b.getDoubleVal=function(a){try{if(null!=a&&0!==a.length){var b=parseFloat(a);if(isFinite(b))return b}}catch(g){}return null};b.getRowObj=function(a,d){var g=a.getAttribute("T"),p=b.getIndex(a),f;f=(f=a.getAttribute("Del"))&&f.equals?f.equals("1"):"1"===f;if(!f){var C=null;p<=d.length&&(C=d[p-1]);var y=f=null,q=null,h=null, l=null,m=null,w=null,A=null;null!=C&&(f=C.x,y=C.y,q=C.getA(),h=C.getB(),l=C.getC(),m=C.getD(),A=C.getFormulaA(),w=C.getFormulaE());for(var C=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a),F=0;F<C.length;F++){var B=C[F],Y=B.getAttribute("N"),K=B.getAttribute("V");switch(Y){case "X":f=b.getDoubleVal(K);break;case "Y":y=b.getDoubleVal(K);break;case "A":q=b.getDoubleVal(K);A=B.getAttribute("V");break;case "B":h=b.getDoubleVal(K);break;case "C":l=b.getDoubleVal(K);break;case "D":m=b.getDoubleVal(K); break;case "E":w=K}}switch(g){case "MoveTo":return new c.mxgraph.io.vsdx.geometry.MoveTo(p,f,y);case "LineTo":return new c.mxgraph.io.vsdx.geometry.LineTo(p,f,y);case "ArcTo":return new c.mxgraph.io.vsdx.geometry.ArcTo(p,f,y,q);case "Ellipse":return new c.mxgraph.io.vsdx.geometry.Ellipse(p,f,y,q,h,l,m);case "EllipticalArcTo":return new c.mxgraph.io.vsdx.geometry.EllipticalArcTo(p,f,y,q,h,l,m);case "InfiniteLine":return new c.mxgraph.io.vsdx.geometry.InfiniteLine(p,f,y,q,h);case "NURBSTo":return new c.mxgraph.io.vsdx.geometry.NURBSTo(p, f,y,q,h,l,m,w);case "PolylineTo":return new c.mxgraph.io.vsdx.geometry.PolylineTo(p,f,y,A);case "RelCubBezTo":return new c.mxgraph.io.vsdx.geometry.RelCubBezTo(p,f,y,q,h,l,m);case "RelEllipticalArcTo":return new c.mxgraph.io.vsdx.geometry.RelEllipticalArcTo(p,f,y,q,h,l,m);case "RelLineTo":return new c.mxgraph.io.vsdx.geometry.RelLineTo(p,f,y);case "RelMoveTo":return new c.mxgraph.io.vsdx.geometry.RelMoveTo(p,f,y);case "RelQuadBezTo":return new c.mxgraph.io.vsdx.geometry.RelQuadBezTo(p,f,y,q,h);case "SplineKnot":return new c.mxgraph.io.vsdx.geometry.SplineKnot(p, f,y,q);case "SplineStart":return new c.mxgraph.io.vsdx.geometry.SplineStart(p,f,y,q,h,l,m)}}return new c.mxgraph.io.vsdx.geometry.DelRow(p)};return b}();h.RowFactory=f;f.__class="com.mxgraph.io.vsdx.geometry.RowFactory"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){var h=function(){function f(){this.colorElementMap={};this.fontElementMap={}}f.__static_initialize=function(){f.__static_initialized||(f.__static_initialized=!0,f.__static_initializer_0())};f.defaultColors_$LI$=function(){f.__static_initialize();null==f.defaultColors&&(f.defaultColors={});return f.defaultColors};f.__static_initializer_0=function(){f.defaultColors_$LI$()["0"]="#000000";f.defaultColors_$LI$()["1"]="#FFFFFF";f.defaultColors_$LI$()["2"]= "#FF0000";f.defaultColors_$LI$()["3"]="#00FF00";f.defaultColors_$LI$()["4"]="#0000FF";f.defaultColors_$LI$()["5"]="#FFFF00";f.defaultColors_$LI$()["6"]="#FF00FF";f.defaultColors_$LI$()["7"]="#00FFFF";f.defaultColors_$LI$()["8"]="#800000";f.defaultColors_$LI$()["9"]="#008000";f.defaultColors_$LI$()["10"]="#000080";f.defaultColors_$LI$()["11"]="#808000";f.defaultColors_$LI$()["12"]="#800080";f.defaultColors_$LI$()["13"]="#008080";f.defaultColors_$LI$()["14"]="#C0C0C0";f.defaultColors_$LI$()["15"]="#E6E6E6"; f.defaultColors_$LI$()["16"]="#CDCDCD";f.defaultColors_$LI$()["17"]="#B3B3B3";f.defaultColors_$LI$()["18"]="#9A9A9A";f.defaultColors_$LI$()["19"]="#808080";f.defaultColors_$LI$()["20"]="#666666";f.defaultColors_$LI$()["21"]="#4D4D4D";f.defaultColors_$LI$()["22"]="#333333";f.defaultColors_$LI$()["23"]="#1A1A1A"};f.prototype.initialise=function(b,a){if(null!=b){var d=b.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.COLORS);if(0<d.length)for(var g=d.item(0).getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.COLOR_ENTRY), p=g.length,d=0;d<p;d++){var f=g.item(d),C=f.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.INDEX),f=f.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.RGB);this.colorElementMap[C]=f}d=b.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.FACE_NAMES);if(0<d.length)for(g=d.item(0).getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.FACE_NAME),p=g.length,d=0;d<p;d++)f=g.item(d),C=f.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.ID),f=f.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.FONT_NAME),this.fontElementMap[C]= f}};f.prototype.getColor=function(b){var a=function(a,b){return a[b]?a[b]:null}(this.colorElementMap,b);return null==a&&(a=function(a,b){return a[b]?a[b]:null}(f.defaultColors_$LI$(),b),null==a)?"":a};f.prototype.getFont=function(b){var a=this.fontElementMap;b=a[b]?a[b]:null;return null==b?"":b};return f}();h.__static_initialized=!1;l.mxPropertiesManager=h;h.__class="com.mxgraph.io.vsdx.mxPropertiesManager"})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){var h=function(){function f(b){this.sourceToSheet=this.fromSheet=null;this.sourceToPart=-1;this.targetToSheet=null;this.targetToPart=-1;this.endShape=this.fromCell=null;var a=b.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.FROM_SHEET);this.fromSheet=null!=a&&0!==a.length?parseFloat(a):-1;a=b.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.FROM_CELL);this.addFromCell(b,a)}f.prototype.addFromCell=function(b,a){var d=b.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TO_SHEET), g=!0;null!=a&&function(a,b){return a&&a.equals?a.equals(b):a===b}(a,c.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_X)?(this.sourceToSheet=null!=d&&0!==d.length?parseFloat(d):-1,g=!0):null!=a&&function(a,b){return a&&a.equals?a.equals(b):a===b}(a,c.mxgraph.io.vsdx.mxVsdxConstants.END_X)?(this.targetToSheet=null!=d&&0!==d.length?parseFloat(d):-1,g=!1):null==this.sourceToSheet?(this.sourceToSheet=null!=d&&0!==d.length?parseFloat(d):-1,g=!0):null==this.targetToSheet&&(this.targetToSheet=null!=d&&0!==d.length? parseFloat(d):-1,g=!1);this.findToPart(b,g)};f.prototype.findToPart=function(b,a){var d=b.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TO_PART),d=null!=d&&0!==d.length?parseFloat(d):-1;a?this.sourceToPart=d:this.targetToPart=d};f.prototype.getFromSheet=function(){return this.fromSheet};f.prototype.getSourceToSheet=function(){return this.sourceToSheet};f.prototype.getTargetToSheet=function(){return this.targetToSheet};f.prototype.getSourceToPart=function(){return this.sourceToPart};f.prototype.getTargetToPart= function(){return this.targetToPart};f.prototype.addConnect=function(b){this.endShape=b;var a=b.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.FROM_CELL);this.addFromCell(b,a)};return f}();l.mxVsdxConnect=h;h.__class="com.mxgraph.io.vsdx.mxVsdxConnect"})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(c){(function(c){(function(c){var h=function(){function c(){}c.SET_VALUES_$LI$=function(){null==c.SET_VALUES&&(c.SET_VALUES=["a","b"]);return c.SET_VALUES};c.MY_SET_$LI$=function(){null==c.MY_SET&&(c.MY_SET=c.SET_VALUES_$LI$().slice(0).slice(0));return c.MY_SET};return c}();h.ANGLE="Angle";h.ARC_TO="ArcTo";h.BACKGROUND="Background";h.BACK_PAGE="BackPage";h.BEGIN_ARROW="BeginArrow";h.BEGIN_ARROW_SIZE="BeginArrowSize";h.BEGIN_X="BeginX";h.BEGIN_Y="BeginY";h.BOTTOM_MARGIN="BottomMargin"; h.BULLET="Bullet";h.CASE="Case";h.CHARACTER="Character";h.COLOR="Color";h.COLOR_ENTRY="ColorEntry";h.COLORS="Colors";h.COLOR_TRANS="ColorTrans";h.CONNECT="Connect";h.CONNECTS="Connects";h.CONNECTION="Connection";h.CONTROL="Control";h.DELETED="Del";h.DOCUMENT_SHEET="DocumentSheet";h.ELLIPSE="Ellipse";h.ELLIPTICAL_ARC_TO="EllipticalArcTo";h.END_ARROW="EndArrow";h.END_ARROW_SIZE="EndArrowSize";h.END_X="EndX";h.END_Y="EndY";h.FACE_NAME="FaceName";h.FACE_NAMES="FaceNames";h.FALSE="0";h.FILL="Fill";h.FILL_BKGND= "FillBkgnd";h.FILL_BKGND_TRANS="FillBkgndTrans";h.FILL_FOREGND="FillForegnd";h.FILL_FOREGND_TRANS="FillForegndTrans";h.FILL_PATTERN="FillPattern";h.FILL_STYLE="FillStyle";h.FILL_GRADIENT_ENABLED="FillGradientEnabled";h.FLAGS="Flags";h.FLIP_X="FlipX";h.FLIP_Y="FlipY";h.FONT="Font";h.FONT_NAME="Name";h.FOREIGN="Foreign";h.FROM_CELL="FromCell";h.FROM_SHEET="FromSheet";h.GEOM="Geom";h.HEIGHT="Height";h.HORIZONTAL_ALIGN="HorzAlign";h.ID="ID";h.INDENT_FIRST="IndFirst";h.INDENT_LEFT="IndLeft";h.INDENT_RIGHT= "IndRight";h.INDEX="IX";h.LEFT_MARGIN="LeftMargin";h.LETTER_SPACE="Letterspace";h.LINE="Line";h.LINE_COLOR="LineColor";h.LINE_COLOR_TRANS="LineColorTrans";h.LINE_PATTERN="LinePattern";h.LINE_STYLE="LineStyle";h.LINE_TO="LineTo";h.LINE_WEIGHT="LineWeight";h.LOC_PIN_X="LocPinX";h.LOC_PIN_Y="LocPinY";h.MASTER="Master";h.MASTER_SHAPE="MasterShape";h.MASTERS="Masters";h.MOVE_TO="MoveTo";h.NAME="Name";h.NAME_U="NameU";h.NO_LINE="NoLine";h.NURBS_TO="NURBSTo";h.PAGE="Page";h.PAGE_HEIGHT="PageHeight";h.PAGE_WIDTH= "PageWidth";h.PAGES="Pages";h.PARAGRAPH="Paragraph";h.PIN_X="PinX";h.PIN_Y="PinY";h.POS="Pos";h.RGB="RGB";h.RIGHT_MARGIN="RightMargin";h.ROUNDING="Rounding";h.RTL_TEXT="RTLText";h.SIZE="Size";h.SHAPE="Shape";h.SHAPES="Shapes";h.SHAPE_SHDW_SHOW="ShapeShdwShow";h.SHDW_PATTERN="ShdwPattern";h.SPACE_AFTER="SpAfter";h.SPACE_BEFORE="SpBefore";h.SPACE_LINE="SpLine";h.STRIKETHRU="Strikethru";h.STYLE="Style";h.STYLE_SHEET="StyleSheet";h.STYLE_SHEETS="StyleSheets";h.TEXT="Text";h.TEXT_BKGND="TextBkgnd";h.TEXT_BLOCK= "TextBlock";h.TEXT_STYLE="TextStyle";h.TO_PART="ToPart";h.TO_SHEET="ToSheet";h.TOP_MARGIN="TopMargin";h.TRUE="1";h.TXT_ANGLE="TxtAngle";h.TXT_HEIGHT="TxtHeight";h.TXT_LOC_PIN_X="TxtLocPinX";h.TXT_LOC_PIN_Y="TxtLocPinY";h.TXT_PIN_X="TxtPinX";h.TXT_PIN_Y="TxtPinY";h.TXT_WIDTH="TxtWidth";h.TYPE="Type";h.TYPE_GROUP="Group";h.TYPE_SHAPE="Shape";h.UNIQUE_ID="UniqueID";h.VERTICAL_ALIGN="VerticalAlign";h.WIDTH="Width";h.X_CON="XCon";h.X_DYN="XDyn";h.X="X";h.Y_CON="YCon";h.Y_DYN="YDyn";h.Y="Y";h.HIDE_TEXT= "HideText";h.VSDX_ID="vsdxID";h.CONNECT_TO_PART_WHOLE_SHAPE=3;c.mxVsdxConstants=h;h.__class="com.mxgraph.io.vsdx.mxVsdxConstants"})(c.vsdx||(c.vsdx={}))})(c.io||(c.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){var h=function(){function f(b,a){this.noQuickDrag=this.noSnap=this.noShow=this.noLine=this.noFill=!1;this.rows=null;if((null!=b&&1==b.nodeType||null===b)&&(null!=a&&a instanceof Array||null===a))Array.prototype.slice.call(arguments),this.index=0,this.noQuickDrag=this.noSnap=this.noShow=this.noLine=this.noFill=!1,this.rows=null,this.index=0,this.index=this.getIndex$org_w3c_dom_Element(b),null!=a&&this.index<a.length&&this.inheritGeo(a[this.index]), this.processGeoElem(b);else if((null!=b&&1==b.nodeType||null===b)&&void 0===a)Array.prototype.slice.call(arguments),this.index=0,this.noQuickDrag=this.noSnap=this.noShow=this.noLine=this.noFill=!1,this.rows=null,this.index=0,this.index=this.getIndex$org_w3c_dom_Element(b),this.processGeoElem(b);else throw Error("invalid overload");}f.prototype.getIndex$org_w3c_dom_Element=function(b){try{return parseInt(b.getAttribute("IX"))}catch(a){return 0}};f.prototype.getIndex=function(b){if(null!=b&&1==b.nodeType|| null===b)return this.getIndex$org_w3c_dom_Element(b);if(void 0===b)return this.getIndex$();throw Error("invalid overload");};f.prototype.processGeoElem=function(b){var a=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(b,"Cell");b=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(b,"Row");if(null==this.rows){this.rows=[];for(var d=0;d<b.length;d++)0<this.rows.push(null)}for(d=0;d<a.length;d++){var g=a[d],p=g.getAttribute("N"),g=g.getAttribute("V");switch(p){case "NoFill":this.noFill= function(a,b){return a&&a.equals?a.equals(b):a===b}("1",g);break;case "NoLine":this.noLine=function(a,b){return a&&a.equals?a.equals(b):a===b}("1",g);break;case "NoShow":this.noShow=function(a,b){return a&&a.equals?a.equals(b):a===b}("1",g);break;case "NoSnap":this.noSnap=function(a,b){return a&&a.equals?a.equals(b):a===b}("1",g);break;case "NoQuickDrag":this.noQuickDrag=function(a,b){return a&&a.equals?a.equals(b):a===b}("1",g)}}a=this.rows.length;d=!1;for(p=0;p<b.length;p++)g=c.mxgraph.io.vsdx.geometry.RowFactory.getRowObj(b[p], this.rows),g.getIndex()>a?(0<this.rows.push(g),d=!0):this.rows[g.getIndex()-1]=g;d&&function(a,b){b.compare?a.sort(function(a,d){return b.compare(a,d)}):a.sort(b)}(this.rows,new f.mxVsdxGeometry$0(this))};f.prototype.inheritGeo=function(b){this.noFill=b.noFill;this.noLine=b.noLine;this.noShow=b.noShow;this.noSnap=b.noSnap;this.noQuickDrag=b.noQuickDrag;var a=this.rows=[];a.push.apply(a,b.rows)};f.prototype.getIndex$=function(){return this.index};f.prototype.isNoFill=function(){return this.noFill}; f.prototype.isNoLine=function(){return this.noLine};f.prototype.isNoShow=function(){return this.noShow};f.prototype.isNoSnap=function(){return this.noSnap};f.prototype.isNoQuickDrag=function(){return this.noQuickDrag};f.prototype.getRows=function(){return this.rows};f.prototype.getPathXML=function(b,a){if(this.noShow)return"";for(var d="",g=0;g<this.rows.length;g++)d=d.concat(this.rows[g].handle(b,a));return d};return f}();l.mxVsdxGeometry=h;h.__class="com.mxgraph.io.vsdx.mxVsdxGeometry";(function(c){var b= function(){function a(a){this.__parent=a}a.prototype.compare=function(a,b){return a.getIndex()-b.getIndex()};return a}();c.mxVsdxGeometry$0=b;b.__interfaces=["java.util.Comparator"]})(h=l.mxVsdxGeometry||(l.mxVsdxGeometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){var h=function(){function f(b){this.geomList=[];this.parentGeomList=null;this.sortNeeded=!1;if(null!=b){this.parentGeomList=b.geomList;var a=this.geomList;a.push.apply(a,b.geomList)}}f.prototype.addGeometry=function(b){b=new c.mxgraph.io.vsdx.mxVsdxGeometry(b,this.parentGeomList);b.getIndex()<this.geomList.length?this.geomList[b.getIndex()]=b:(0<this.geomList.push(b),this.sortNeeded=!0)};f.prototype.sort=function(){this.sortNeeded&&(function(b,a){a.compare? b.sort(function(b,g){return a.compare(b,g)}):b.sort(a)}(this.geomList,new f.mxVsdxGeometryList$0(this)),this.sortNeeded=!1)};f.prototype.isNoShow=function(){for(var b=0;b<this.geomList.length;b++)if(!this.geomList[b].isNoShow())return!1;return!0};f.prototype.isNoFill=function(){for(var b=0;b<this.geomList.length;b++){var a=this.geomList[b];if(!a.isNoShow()&&!a.isNoFill())return!1}return!0};f.prototype.isNoLine=function(){for(var b=0;b<this.geomList.length;b++){var a=this.geomList[b];if(!a.isNoShow()&& !a.isNoLine())return!1}return!0};f.prototype.hasGeom=function(){return 0!=this.geomList.length};f.prototype.getGeoCount=function(){for(var b=0,a=0;a<this.geomList.length;a++)this.geomList[a].isNoShow()||b++;return b};f.prototype.rotatedPoint=function(b,a,d){var g=b.y*a+b.x*d;b.x=b.x*a-b.y*d;b.y=g};f.prototype.getRoutingPoints=function(b,a,d){this.sort();b=[];0<b.push(a.clone());for(var g=0,p=0,f=0;f<this.geomList.length;f++){var C=this.geomList[f];if(!C.isNoShow())for(var C=C.getRows(),y=0;y<C.length;y++){var q= C[y];if(0==y&&null!=q&&q instanceof c.mxgraph.io.vsdx.geometry.MoveTo)g=null!=q.x?q.x:0,p=null!=q.y?q.y:0;else if(null!=q&&q instanceof c.mxgraph.io.vsdx.geometry.LineTo){var h=null!=q.x?q.x:0,q=null!=q.y?q.y:0,l=new mxPoint(h,q);0!==d&&(d=(360-d)*Math.PI/180,this.rotatedPoint(l,Math.cos(d),Math.sin(d)));h=(l.x-g)*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();h+=a.x;q=(l.y-p)*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$()*-1;q+=a.y;h=Math.round(100*h)/100;q=Math.round(100*q)/100;l.x= h;l.y=q;0<b.push(l)}}}return b};f.prototype.getShapeXML=function(b){var a=new mxPoint(0,0),d={str:'<shape strokewidth="inherit"><foreground>',toString:function(){return this.str}},g=d.str.length,p;p=this.processGeo(b,a,d,-1,!0);p=this.processGeo(b,a,d,p,!1);if(d.str.length===g)return"";this.closePath(d,p);d.str=d.str.concat("</foreground></shape>");return d.str};f.prototype.processGeo=function(b,a,d,g,p){for(var c=0;c<this.geomList.length;c++){var f=this.geomList[c];if(p!==f.isNoFill()){var y=f.getPathXML(a, b);0!==y.length&&(f=this.getGeoStyle(f),-1===g?d.str=d.str.concat("<path>"):g!==f&&(this.closePath(d,g),d.str=d.str.concat("<path>")),d.str=d.str.concat(y),g=f)}}return g};f.prototype.getGeoStyle=function(b){var a=0;b.isNoLine()||b.isNoFill()?b.isNoFill()?b.isNoLine()||(a=3):a=2:a=1;return a};f.prototype.closePath=function(b,a){b.str=b.str.concat("</path>");1===a?b.str=b.str.concat("<fillstroke/>"):2===a?b.str=b.str.concat("<fill/>"):3===a&&(b.str=b.str.concat("<stroke/>"))};return f}();l.mxVsdxGeometryList= h;h.__class="com.mxgraph.io.vsdx.mxVsdxGeometryList";(function(c){var b=function(){function a(a){this.__parent=a}a.prototype.compare=function(a,b){return a.getIndex()-b.getIndex()};return a}();c.mxVsdxGeometryList$0=b;b.__interfaces=["java.util.Comparator"]})(h=l.mxVsdxGeometryList||(l.mxVsdxGeometryList={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){var h=function(){function f(b,a){this.masterShape=this.Id=null;this.childShapes={};this.master=b;this.Id=b.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.ID)||"";this.processMasterShapes(a)}f.prototype.processMasterShapes=function(b){for(var a=this.master.firstChild;null!=a;){if(null!=a&&1==a.nodeType&&function(a,b){return a&&a.equals?a.equals(b):a===b}(a.nodeName,"Rel")){var d=b.getRelationship(a.getAttribute("r:id"),c.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+ "/masters/_rels/masters.xml.rels"),g=d.getAttribute("Target"),d=d.getAttribute("Type"),p=null;null!=d&&function(a,b){var d=a.length-b.length,g=a.indexOf(b,d);return-1!==g&&g===d}(d,"master")&&(p=b.getXmlDoc(c.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/masters/"+g));if(null!=p)for(g=p.firstChild;null!=g;){if(null!=g&&1==g.nodeType&&function(a,b){return a&&a.equals?a.equals(b):a===b}(g.nodeName,"MasterContents")){this.processMasterShape(g,b);break}g=g.nextSibling}}a=a.nextSibling}};f.prototype.processMasterShape= function(b,a){for(var d=b.firstChild;null!=d;){if(null!=d&&1==d.nodeType&&function(a,b){return a&&a.equals?a.equals(b):a===b}(d.nodeName,"Shapes")){for(d=d.firstChild;null!=d;){if(null!=d&&1==d.nodeType&&function(a,b){return a&&a.equals?a.equals(b):a===b}(d.nodeName,"Shape")){var g=d,p=g.getAttribute("ID"),f=new c.mxgraph.io.vsdx.Shape(g,a);this.masterShape=null==this.masterShape?f:this.masterShape;this.childShapes[p]=f;this.processMasterShape(g,a)}d=d.nextSibling}break}d=d.nextSibling}};f.prototype.getMasterShape= function(){return this.masterShape};f.prototype.getSubShape=function(b){var a=this.childShapes;return a[b]?a[b]:null};f.prototype.getNameU=function(){return this.master.getAttribute("NameU")||""};f.prototype.getName=function(){return this.master.getAttribute("Name")||""};f.prototype.getUniqueID=function(){var b="";this.master.hasAttribute("UniqueID")&&(b=this.master.getAttribute("UniqueID"));return b};f.prototype.getId=function(){return this.Id};f.prototype.getMasterElement=function(){return this.master}; return f}();l.mxVsdxMaster=h;h.__class="com.mxgraph.io.vsdx.mxVsdxMaster"})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){var h=function(){function f(b,a,d){this.pages=this.media=this.xmlDocs=null;this.masters={};this.stylesheets={};this.themes={};this.pm=this.rootElement=null;this.xmlDocs=a;this.media=d;for(b=b.firstChild;null!=b;){if(a=null!=b&&1==b.nodeType)a=b.tagName.toLowerCase(),d=c.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"document",a=a&&a.equals?a.equals(d):a===d;if(a){this.rootElement=b;break}b=b.nextSibling}this.pm=new c.mxgraph.io.vsdx.mxPropertiesManager; this.pm.initialise(this.rootElement,this);this.initStylesheets();this.initThemes();this.initMasters();this.initPages()}f.prototype.initThemes=function(){if(null!=this.xmlDocs)for(var b=!0,a=1;b;){var d=function(a,b){return a[b]?a[b]:null}(this.xmlDocs,c.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/theme/theme"+a+".xml");if(null!=d){for(d=d.firstChild;null!=d;){if(null!=d&&1==d.nodeType&&function(a,b){return a&&a.equals?a.equals(b):a===b}(d.tagName,"a:theme")){d=new c.mxgraph.io.vsdx.mxVsdxTheme(d);0> d.getThemeIndex()&&d.processTheme();var g=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.themes,d.getThemeIndex());null!=g&&g.isPure()||function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b, value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.themes,d.getThemeIndex(),d);break}d=d.nextSibling}a++}else b=!1}};f.prototype.initStylesheets=function(){var b=this.rootElement.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.STYLE_SHEETS);if(0<b.length)for(var b=b.item(0).getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.STYLE_SHEET),a=b.length,d=0;d<a;d++){var g=b.item(d),p=g.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.ID),g=new c.mxgraph.io.vsdx.Style(g, this);this.stylesheets[p]=g}for(b=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){return Object.keys(a).map(function(b){return a[b]})}(this.stylesheets));b.hasNext();)g=b.next(),g.stylesheetRefs(this)};f.prototype.initMasters=function(){if(null!=this.xmlDocs){var b=function(a,b){return a[b]?a[b]:null}(this.xmlDocs,c.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/masters/masters.xml");if(null!=b)for(b=b.firstChild;null!=b;){if(null!= b&&1==b.nodeType&&function(a,b){return a&&a.equals?a.equals(b):a===b}(b.tagName,c.mxgraph.io.vsdx.mxVsdxConstants.MASTERS)){for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType&&function(a,b){return a&&a.equals?a.equals(b):a===b}(b.tagName,"Master")){var a=new c.mxgraph.io.vsdx.mxVsdxMaster(b,this);this.masters[a.getId()]=a}b=b.nextSibling}break}b=b.nextSibling}}};f.prototype.initPages=function(){if(null!=this.xmlDocs){var b=function(a,b){return a[b]?a[b]:null}(this.xmlDocs,c.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+ "/pages/pages.xml");if(null!=b)for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType&&function(a,b){return a&&a.equals?a.equals(b):a===b}(b.tagName,c.mxgraph.io.vsdx.mxVsdxConstants.PAGES)){var a=b.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.PAGE);if(null!=a&&0<a.length){this.pages={};for(var b={},d=a.length,g=0;g<d;g++){var p=a.item(g),p=this.createPage(p);p.isBackground()&&function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&& a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(b,p.getId(),p);(function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.pages, p.getId(),p)}a=function(a){null==a.entries&&(a.entries=[]);return a.entries}(this.pages);for(d=0;d<a.length;d++)p=a[d].getValue(),p.isBackground()||(g=p.getBackPageId(),null!=g&&(g=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(b,g),p.setBackPage(g)))}break}b=b.nextSibling}}};f.prototype.getPages=function(){return this.pages};f.prototype.getThemes= function(){return this.themes};f.prototype.getRelationship=function(b,a){var d=function(a,b){return a[b]?a[b]:null}(this.xmlDocs,a);if(null==d||null==b||0===b.length)return null;for(var d=d.getElementsByTagName("Relationship"),g=0;g<d.length;g++){var p=d.item(g);if(function(a,b){return a&&a.equals?a.equals(b):a===b}(p.getAttribute("Id"),b))return p}return null};f.prototype.getMaster=function(b){var a=this.masters;return a[b]?a[b]:null};f.prototype.createPage=function(b){return new c.mxgraph.io.vsdx.mxVsdxPage(b, this)};f.prototype.getPropertiesManager=function(){return this.pm};f.prototype.setPropertiesManager=function(b){this.pm=b};f.prototype.getMasterShapes=function(){return this.masters};f.prototype.setMasterShapes=function(b){this.masters=b};f.prototype.getStylesheet=function(b){var a=this.stylesheets;return a[b]?a[b]:null};f.prototype.getXmlDoc=function(b){var a=this.xmlDocs;return a[b]?a[b]:null};f.prototype.getMedia=function(b){var a=this.media;return a[b]?a[b]:null};return f}();l.mxVsdxModel=h;h.__class= "com.mxgraph.io.vsdx.mxVsdxModel"})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){var h=function(){function f(b,a){this.pageName=this.Id=null;this.__isBackground=!1;this.pageSheet=this.backPage=this.backPageId=null;this.shapes={};this.connects={};this.cellElements={};this.model=a;this.pageElement=b;var d=b.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.BACKGROUND),g;if(g=null!=d)g=c.mxgraph.io.vsdx.mxVsdxConstants.TRUE,g=d&&d.equals?d.equals(g):d===g;this.__isBackground=g?!0:!1;d=b.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.BACK_PAGE); !this.__isBackground&&null!=d&&0<d.length&&(this.backPageId=parseFloat(d));this.Id=parseFloat(b.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.ID));this.pageName=b.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.NAME)||"";d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(b,"PageSheet");if(0<d.length)for(d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(d[0],"Cell"),g=0;g<d.length;g++){var p=d[g],f=p.getAttribute("N");this.cellElements[f]=p}this.parseNodes(b,a,"pages")}f.prototype.parseNodes= function(b,a,d){for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType){var g=b,p=g.nodeName;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(p,"Rel"))this.resolveRel(g,a,d);else if(function(a,b){return a&&a.equals?a.equals(b):a===b}(p,"Shapes"))this.shapes=this.parseShapes(g,null,!1);else if(function(a,b){return a&&a.equals?a.equals(b):a===b}(p,"Connects"))for(g=g.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.CONNECT),g=null!=g&&0<g.length?g.item(0):null;null!=g;){if(null!=g&&1==g.nodeType){var p= g,f=new c.mxgraph.io.vsdx.mxVsdxConnect(p),h=f.getFromSheet(),h=null!=h&&-1<h?function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.connects,h):null;null!=h?h.addConnect(p):function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value= d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.connects,f.getFromSheet(),f)}g=g.nextSibling}else(function(a,b){return a&&a.equals?a.equals(b):a===b})(p,"PageSheet")&&(this.pageSheet=g)}b=b.nextSibling}};f.prototype.resolveRel=function(b,a,d){d=a.getRelationship(b.getAttribute("r:id"),c.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/pages/_rels/"+d+".xml.rels");b=d.getAttribute("Target");d=d.getAttribute("Type");if(function(a,b){var d= a.length-b.length,g=a.indexOf(b,d);return-1!==g&&g===d}((new String(d)).toString(),"page")){var g=null;null!=d&&function(a,b){var d=a.length-b.length,g=a.indexOf(b,d);return-1!==g&&g===d}(d,"page")&&(g=a.getXmlDoc(c.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/pages/"+b));if(null!=g)for(d=g.firstChild;null!=d;){if(null!=d&&1==d.nodeType&&function(a,b){return a&&a.equals?a.equals(b):a===b}(d.tagName,"PageContents")){g=b.indexOf(".");-1!==g&&this.parseNodes(d,a,b.substring(0,g));break}d=d.nextSibling}}}; f.prototype.parseShapes=function(b,a,d){d={};b=b.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.SHAPE);for(b=null!=b&&0<b.length?b.item(0):null;null!=b;){if(null!=b&&1==b.nodeType){var g=b,p=a;if(null==p){var f=g.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.MASTER);null==f||function(a,b){return a&&a.equals?a.equals(b):a===b}(f,"")||(p=this.model.getMaster(f))}f=this.isEdge(g);if(!f&&null!=p){var f=g.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.MASTER_SHAPE),h=p.getMasterElement();null== f||function(a,b){return a&&a.equals?a.equals(b):a===b}(f,"")||(h=p.getSubShape(f).getShape());f=this.isEdge(h)}g=this.createCell(g,!f,p);(function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(d,g.getId(),g)}b=b.nextSibling}return d};f.prototype.createCell= function(b,a,d){return new c.mxgraph.io.vsdx.VsdxShape(this,b,a,this.model.getMasterShapes(),d,this.model)};f.prototype.isEdge=function(b){if(null!=b&&(b=b.childNodes,null!=b))for(b=b.item(0);null!=b;){if(null!=b&&1==b.nodeType){var a=b;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a.nodeName,"Cell")&&(a=a.getAttribute("N"),function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"BeginX")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"BeginY")||function(a,b){return a&&a.equals?a.equals(b): a===b}(a,"EndY")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"EndX")))return!0}b=b.nextSibling}return!1};f.prototype.getPageDimensions=function(){var b=0,a=0,d=function(a,b){return a[b]?a[b]:null}(this.cellElements,"PageHeight"),g=function(a,b){return a[b]?a[b]:null}(this.cellElements,"PageWidth");null!=d&&(b=parseFloat(d.getAttribute("V"))*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),b=Math.round(100*b)/100);null!=g&&(a=parseFloat(g.getAttribute("V"))*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(), a=Math.round(100*a)/100);return new mxPoint(a,b)};f.prototype.getDrawingScale=function(){var b;b=this.cellElements;b=b.DrawingScale?b.DrawingScale:null;return null!=b?parseFloat(b.getAttribute("V"))*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():1};f.prototype.getPageScale=function(){var b;b=this.cellElements;b=b.PageScale?b.PageScale:null;return null!=b?parseFloat(b.getAttribute("V"))*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():1};f.prototype.getCellValue=function(b){var a=this.cellElements; b=a[b]?a[b]:null;return null!=b?b.getAttribute("V")||"":null};f.prototype.getCellIntValue=function(b,a){var d=this.getCellValue(b);return null!=d?parseInt(d):a};f.prototype.getId=function(){return this.Id};f.prototype.getPageName=function(){return this.pageName};f.prototype.getShapes=function(){return this.shapes};f.prototype.getConnects=function(){return this.connects};f.prototype.isBackground=function(){return this.__isBackground};f.prototype.getBackPageId=function(){return this.backPageId};f.prototype.setBackPage= function(b){this.backPage=b};f.prototype.getBackPage=function(){return this.backPage};return f}();l.mxVsdxPage=h;h.__class="com.mxgraph.io.vsdx.mxVsdxPage"})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){var h=function(){function f(b){this.themeIndex=-1;this.themeVariant=0;this.baseColors={};this.variantsColors=function(a){var b=function(a){if(0!=a.length){for(var d=[],g=0;g<a[0];g++)d.push(b(a.slice(1)));return d}};return b(a)}([4,7]);this.isMonotoneVariant=Array(4);this.defaultClr=new c.mxgraph.io.vsdx.theme.Color(255,255,255);this.defaultLineClr=new c.mxgraph.io.vsdx.theme.Color(0,0,0);this.defaultLineStyle=new c.mxgraph.io.vsdx.theme.LineStyle; this.fillStyles=[];this.connFillStyles=[];this.lineStyles=[];this.connLineStyles=[];this.lineStylesExt=[];this.connLineStylesExt=[];this.connFontColors=[];this.connFontStyles=[];this.fontColors=[];this.fontStyles=[];this.variantEmbellishment=[0,0,0,0];this.variantFillIdx=function(a){var b=function(a){if(0==a.length)return 0;for(var d=[],g=0;g<a[0];g++)d.push(b(a.slice(1)));return d};return b(a)}([4,4]);this.variantLineIdx=function(a){var b=function(a){if(0==a.length)return 0;for(var d=[],g=0;g<a[0];g++)d.push(b(a.slice(1))); return d};return b(a)}([4,4]);this.variantEffectIdx=function(a){var b=function(a){if(0==a.length)return 0;for(var d=[],g=0;g<a[0];g++)d.push(b(a.slice(1)));return d};return b(a)}([4,4]);this.variantFontIdx=function(a){var b=function(a){if(0==a.length)return 0;for(var d=[],g=0;g<a[0];g++)d.push(b(a.slice(1)));return d};return b(a)}([4,4]);this.isProcessed=!1;this.__isPure=!0;this.name=this.bkgndColor=this.theme=null;this.theme=b;this.name=b.getAttribute("name")||"";b=function(a,b){return a[b]?a[b]: null}(f.themesIds_$LI$(),this.name);null!=b&&(this.themeIndex=b)}f.__static_initialize=function(){f.__static_initialized||(f.__static_initialized=!0,f.__static_initializer_0(),f.__static_initializer_1())};f.themesIds_$LI$=function(){f.__static_initialize();null==f.themesIds&&(f.themesIds={});return f.themesIds};f.__static_initializer_0=function(){f.themesIds_$LI$().Office=33;f.themesIds_$LI$().Linear=34;f.themesIds_$LI$().Zephyr=35;f.themesIds_$LI$().Integral=36;f.themesIds_$LI$().Simple=37;f.themesIds_$LI$().Whisp= 38;f.themesIds_$LI$().Daybreak=39;f.themesIds_$LI$().Parallel=40;f.themesIds_$LI$().Sequence=41;f.themesIds_$LI$().Slice=42;f.themesIds_$LI$().Ion=43;f.themesIds_$LI$().Retrospect=44;f.themesIds_$LI$().Organic=45;f.themesIds_$LI$().Bubble=46;f.themesIds_$LI$().Clouds=47;f.themesIds_$LI$().Gemstone=48;f.themesIds_$LI$().Lines=49;f.themesIds_$LI$().Facet=50;f.themesIds_$LI$().Prominence=51;f.themesIds_$LI$().Smoke=52;f.themesIds_$LI$().Radiance=53;f.themesIds_$LI$().Shade=54;f.themesIds_$LI$().Pencil= 55;f.themesIds_$LI$().Pen=56;f.themesIds_$LI$().Marker=57;f.themesIds_$LI$().Whiteboard=58};f.colorIds_$LI$=function(){f.__static_initialize();null==f.colorIds&&(f.colorIds={});return f.colorIds};f.__static_initializer_1=function(){(function(b,a,d){null==b.entries&&(b.entries=[]);for(var g=0;g<b.entries.length;g++)if(null!=b.entries[g].key.equals&&b.entries[g].key.equals(a)||b.entries[g].key===a){b.entries[g].value=d;return}b.entries.push({key:a,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(f.colorIds_$LI$(), 0,"dk1");(function(b,a,d){null==b.entries&&(b.entries=[]);for(var g=0;g<b.entries.length;g++)if(null!=b.entries[g].key.equals&&b.entries[g].key.equals(a)||b.entries[g].key===a){b.entries[g].value=d;return}b.entries.push({key:a,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(f.colorIds_$LI$(),1,"lt1");(function(b,a,d){null==b.entries&&(b.entries=[]);for(var g=0;g<b.entries.length;g++)if(null!=b.entries[g].key.equals&&b.entries[g].key.equals(a)||b.entries[g].key=== a){b.entries[g].value=d;return}b.entries.push({key:a,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(f.colorIds_$LI$(),2,"accent1");(function(b,a,d){null==b.entries&&(b.entries=[]);for(var g=0;g<b.entries.length;g++)if(null!=b.entries[g].key.equals&&b.entries[g].key.equals(a)||b.entries[g].key===a){b.entries[g].value=d;return}b.entries.push({key:a,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(f.colorIds_$LI$(),3,"accent2"); (function(b,a,d){null==b.entries&&(b.entries=[]);for(var g=0;g<b.entries.length;g++)if(null!=b.entries[g].key.equals&&b.entries[g].key.equals(a)||b.entries[g].key===a){b.entries[g].value=d;return}b.entries.push({key:a,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(f.colorIds_$LI$(),4,"accent3");(function(b,a,d){null==b.entries&&(b.entries=[]);for(var g=0;g<b.entries.length;g++)if(null!=b.entries[g].key.equals&&b.entries[g].key.equals(a)||b.entries[g].key===a){b.entries[g].value= d;return}b.entries.push({key:a,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(f.colorIds_$LI$(),5,"accent4");(function(b,a,d){null==b.entries&&(b.entries=[]);for(var g=0;g<b.entries.length;g++)if(null!=b.entries[g].key.equals&&b.entries[g].key.equals(a)||b.entries[g].key===a){b.entries[g].value=d;return}b.entries.push({key:a,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(f.colorIds_$LI$(),6,"accent5");(function(b,a,d){null== b.entries&&(b.entries=[]);for(var g=0;g<b.entries.length;g++)if(null!=b.entries[g].key.equals&&b.entries[g].key.equals(a)||b.entries[g].key===a){b.entries[g].value=d;return}b.entries.push({key:a,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(f.colorIds_$LI$(),7,"accent6")};f.prototype.getThemeIndex=function(){return this.themeIndex};f.prototype.setVariant=function(b){this.themeVariant=b};f.prototype.isPure=function(){return this.__isPure};f.prototype.processTheme= function(){if(!this.isProcessed){try{for(var b=this.theme.firstChild;null!=b;){if(null!=b&&1==b.nodeType&&function(a,b){return a&&a.equals?a.equals(b):a===b}(b.nodeName,"a:themeElements"))for(var a=b.firstChild;null!=a;){if(null!=a&&1==a.nodeType){var d=a,g=d.nodeName;(function(a,b){return a&&a.equals?a.equals(b):a===b})(g,"a:clrScheme")?(function(a,b){return a&&a.equals?a.equals(b):a===b}(this.name,d.getAttribute("name"))||(this.__isPure=!1),this.processColors(d)):function(a,b){return a&&a.equals? a.equals(b):a===b}(g,"a:fontScheme")?(function(a,b){return a&&a.equals?a.equals(b):a===b}(this.name,d.getAttribute("name"))||(this.__isPure=!1),this.processFonts(d)):function(a,b){return a&&a.equals?a.equals(b):a===b}(g,"a:fmtScheme")?(function(a,b){return a&&a.equals?a.equals(b):a===b}(this.name,d.getAttribute("name"))||(this.__isPure=!1),this.processFormats(d)):function(a,b){return a&&a.equals?a.equals(b):a===b}(g,"a:extLst")&&this.processExtras(d)}a=a.nextSibling}b=b.nextSibling}}catch(p){console.error(p.message, p)}this.isProcessed=!0}};f.prototype.processExtras=function(b){b=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(b);for(var a=0;a<b.length;a++){var d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b[a]);switch(d.nodeName){case "vt:fmtConnectorScheme":var g;g=this.name;var p=d.getAttribute("name");g=g&&g.equals?g.equals(p):g===p;g||(this.__isPure=!1);d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(d);for(g=0;g<d.length;g++)switch(p=d[g],p.nodeName){case "a:fillStyleLst":for(var p= c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(p),f=0;f<p.length;f++)0<this.connFillStyles.push(c.mxgraph.io.vsdx.theme.FillStyleFactory.getFillStyle(p[f]));break;case "a:lnStyleLst":for(p=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(p),f=0;f<p.length;f++)0<this.connLineStyles.push(new c.mxgraph.io.vsdx.theme.LineStyle(p[f]))}break;case "vt:lineStyles":d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(d);for(g=0;g<d.length;g++)switch(p=d[g],p.nodeName){case "vt:fmtConnectorSchemeLineStyles":p= c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(p);for(f=0;f<p.length;f++)0<this.connLineStylesExt.push(new c.mxgraph.io.vsdx.theme.LineStyleExt(p[f]));break;case "vt:fmtSchemeLineStyles":for(p=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(p),f=0;f<p.length;f++)0<this.lineStylesExt.push(new c.mxgraph.io.vsdx.theme.LineStyleExt(p[f]))}break;case "vt:fontStylesGroup":d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(d);for(g=0;g<d.length;g++)switch(p=d[g],p.nodeName){case "vt:connectorFontStyles":this.fillFontStyles(p, this.connFontColors,this.connFontStyles);break;case "vt:fontStyles":this.fillFontStyles(p,this.fontColors,this.fontStyles)}break;case "vt:variationStyleSchemeLst":for(d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(d),p=g=0;p<d.length;p++){f=d[p];this.variantEmbellishment[g]=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(f,"embellishment");for(var f=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(f),h=0,y=0;y<f.length;y++){var q=f[y];this.variantFillIdx[g][h]= c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(q,"fillIdx");this.variantLineIdx[g][h]=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(q,"lineIdx");this.variantEffectIdx[g][h]=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(q,"effectIdx");this.variantFontIdx[g][h]=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(q,"fontIdx");h++}g++}}}};f.prototype.fillFontStyles=function(b,a,d){b= c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(b);for(var g=0;g<b.length;g++){var p=b[g];0<d.push(c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(p,"style"));p=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(p);null!=p&&0<a.push(c.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(p)))}};f.prototype.processFormats=function(b){b=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(b);for(var a= 0;a<b.length;a++){var d=b[a];switch(d.nodeName){case "a:fillStyleLst":for(var d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(d),g=0;g<d.length;g++)0<this.fillStyles.push(c.mxgraph.io.vsdx.theme.FillStyleFactory.getFillStyle(d[g]));break;case "a:lnStyleLst":for(d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(d),g=0;g<d.length;g++)0<this.lineStyles.push(new c.mxgraph.io.vsdx.theme.LineStyle(d[g]))}}};f.prototype.processFonts=function(b){};f.prototype.processColors=function(b){for(b=b.firstChild;null!= b;){if(null!=b&&1==b.nodeType){var a=b,d=a.nodeName,a=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a),g;g=(g=d)&&g.equals?g.equals("a:extLst"):"a:extLst"===g;g?3===a.length&&(0>this.themeIndex&&this.extractThemeIndex(a[0]),this.addBkgndColor(a[1]),this.addVariantColors(a[2])):(d=d.substring(2),0<a.length&&this.addBasicColor(d,a[0]))}b=b.nextSibling}};f.prototype.addVariantColors=function(b){b=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b);if(null!=b){b=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(b); for(var a=0,d=0;d<b.length;d++){var g=b[d];this.addVariantColorsSet(a++,g)}}};f.prototype.addVariantColorsSet=function(b,a){var d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);this.isMonotoneVariant[b]=a.hasAttribute("monotone");for(var g=0;g<d.length;g++){var p=d[g];switch(p.nodeName){case "vt:varColor1":this.variantsColors[b][0]=c.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(p));break;case "vt:varColor2":this.variantsColors[b][1]= c.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(p));break;case "vt:varColor3":this.variantsColors[b][2]=c.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(p));break;case "vt:varColor4":this.variantsColors[b][3]=c.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(p));break;case "vt:varColor5":this.variantsColors[b][4]= c.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(p));break;case "vt:varColor6":this.variantsColors[b][5]=c.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(p));break;case "vt:varColor7":this.variantsColors[b][6]=c.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(p))}}};f.prototype.addBkgndColor=function(b){b=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b); null!=b&&(this.bkgndColor=c.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b)))};f.prototype.extractThemeIndex=function(b){b=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b);null!=b&&(this.themeIndex=parseInt(b.getAttribute("schemeEnum")))};f.prototype.addBasicColor=function(b,a){this.baseColors[b]=c.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(a)};f.prototype.getSchemeColor=function(b){this.processTheme();var a=this.baseColors; b=a[b]?a[b]:null;return null!=b?b.getColor$com_mxgraph_io_vsdx_mxVsdxTheme(this):this.defaultClr};f.prototype.getStyleColor=function(b){this.processTheme();if(8>b){var a=function(a,b){return a[b]?a[b]:null}(this.baseColors,function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(f.colorIds_$LI$(),b));if(null!=a)return a.getColor$com_mxgraph_io_vsdx_mxVsdxTheme(this)}else if(8=== b){if(null!=this.bkgndColor)return this.bkgndColor.getColor$com_mxgraph_io_vsdx_mxVsdxTheme(this)}else{var a=null,d=0;200<=b?d=b-200:100<=b&&(d=b-100);0<=d&&6>=d&&(a=this.variantsColors[this.themeVariant][d]);if(null!=a)return a.getColor$com_mxgraph_io_vsdx_mxVsdxTheme(this)}return this.defaultClr};f.prototype.getFillGraientColor=function(b){return this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$boolean(b,!0)};f.prototype.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$boolean(b, !1)};f.prototype.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$boolean=function(b,a){this.processTheme();var d=b.getQuickStyleFillColor(),g=null;switch(b.getQuickStyleFillMatrix()){case 1:case 2:case 3:case 4:case 5:case 6:g=this.fillStyles[b.getQuickStyleFillMatrix()-1];break;case 100:case 101:case 102:case 103:this.isMonotoneVariant[this.themeVariant]&&(d=100),g=b.getQuickStyleFillMatrix()-100,g=this.fillStyles[this.variantFillIdx[this.themeVariant][g]-1]}d=null!=g?a?null!=g&&g instanceof c.mxgraph.io.vsdx.theme.GradFill?g.applyStyle(d,this).getGradientClr():null:g.applyStyle(d,this):a?null:this.getStyleColor(d);g=b.getQuickStyleVariation();null!=d&&0<(g&8)&&(d=this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b));return d};f.prototype.getFillColor=function(b,a){if(!(null!=b&&b instanceof c.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)||"boolean"!==typeof a&&null!==a){if((null!=b&&b instanceof c.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&void 0===a)return this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b); throw Error("invalid overload");}return this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$boolean(b,a)};f.prototype.getLineStyle=function(b,a){this.processTheme();var d=null;switch(b){case 1:case 2:case 3:case 4:case 5:case 6:d=a[b-1];break;case 100:case 101:case 102:case 103:d=a===this.lineStyles?this.lineStyles[this.variantLineIdx[this.themeVariant][b-100]-1]:this.defaultLineStyle}return d};f.prototype.getLineStyleExt=function(b,a){this.processTheme();var d=null;switch(b){case 0:case 1:case 2:case 3:case 4:case 5:case 6:d= a[b]}return d};f.prototype.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList=function(b,a){this.processTheme();var d=b.getQuickStyleLineColor(),g=this.getLineStyle(b.getQuickStyleLineMatrix(),a);switch(b.getQuickStyleLineMatrix()){case 100:case 101:case 102:case 103:this.isMonotoneVariant[this.themeVariant]&&(d=100)}d=null!=g?g.getLineColor(d,this):this.getStyleColor(d);0<(b.getQuickStyleVariation()&4)&&(d=this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b));return d}; f.prototype.getLineColor=function(b,a){if((null!=b&&b instanceof c.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&(null!=a&&a instanceof Array||null===a))return this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,a);if((null!=b&&b instanceof c.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&void 0===a)return this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);throw Error("invalid overload");};f.prototype.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals= function(b){return this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.lineStyles)};f.prototype.getConnLineColor=function(b){return this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.connLineStyles)};f.prototype.getDefaultLineClr=function(){return this.defaultLineClr};f.prototype.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList=function(b,a,d){a=this.getLineStyleExt(b.getQuickStyleLineMatrix(), a);if(null!=a)return a.isDashed();b=this.getLineStyle(b.getQuickStyleLineMatrix(),d);return null!=b?b.isDashed():!1};f.prototype.isLineDashed=function(b,a,d){if((null!=b&&b instanceof c.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&(null!=a&&a instanceof Array||null===a)&&(null!=d&&d instanceof Array||null===d))return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b,a,d);if((null!=b&&b instanceof c.mxgraph.io.vsdx.theme.QuickStyleVals||null=== b)&&void 0===a&&void 0===d)return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);throw Error("invalid overload");};f.prototype.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b,this.lineStylesExt,this.lineStyles)};f.prototype.isConnLineDashed=function(b){return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b, this.connLineStylesExt,this.connLineStyles)};f.prototype.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList=function(b,a,d){a=this.getLineStyleExt(b.getQuickStyleLineMatrix(),a);if(null!=a)return a.getLineDashPattern();b=this.getLineStyle(b.getQuickStyleLineMatrix(),d);return null!=b?b.getLineDashPattern():null};f.prototype.getLineDashPattern=function(b,a,d){if((null!=b&&b instanceof c.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&(null!=a&&a instanceof Array||null===a)&&(null!=d&&d instanceof Array||null===d))return this.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b,a,d);if((null!=b&&b instanceof c.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&void 0===a&&void 0===d)return this.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);throw Error("invalid overload");};f.prototype.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b, this.lineStylesExt,this.lineStyles)};f.prototype.getConnLineDashPattern=function(b){return this.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b,this.connLineStylesExt,this.connLineStyles)};f.prototype.getArrowSize=function(b,a,d,g){d=this.getLineStyleExt(b.getQuickStyleLineMatrix(),d);if(null!=d)return a?d.getStartSize():d.getEndSize();b=this.getLineStyle(b.getQuickStyleLineMatrix(),g);return null!=b?a?b.getStartSize():b.getEndSize():4};f.prototype.getStartSize= function(b){return this.getArrowSize(b,!0,this.lineStylesExt,this.lineStyles)};f.prototype.getConnStartSize=function(b){return this.getArrowSize(b,!0,this.connLineStylesExt,this.connLineStyles)};f.prototype.getEndSize=function(b){return this.getArrowSize(b,!1,this.lineStylesExt,this.lineStyles)};f.prototype.getConnEndSize=function(b){return this.getArrowSize(b,!1,this.connLineStylesExt,this.connLineStyles)};f.prototype.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList=function(b, a){this.processTheme();var d=b.getQuickStyleFontColor(),g=null;switch(b.getQuickStyleFontMatrix()){case 1:case 2:case 3:case 4:case 5:case 6:g=a[b.getQuickStyleFontMatrix()-1];break;case 100:case 101:case 102:case 103:this.isMonotoneVariant[this.themeVariant]&&(d=100),g=b.getQuickStyleFontMatrix()-100,a!==this.fontColors?(g=this.baseColors,g=g.dk1?g.dk1:null):g=a[this.variantFontIdx[this.themeVariant][g]-1]}d=null!=g?g.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(d,this):this.getStyleColor(d);if(0< (b.getQuickStyleVariation()&2))var d=this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b),g=d.toHsl(),p=this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b),c=p.toHsl(),d=g.getLum()<c.getLum()?d:p;return d};f.prototype.getFontColor=function(b,a){if((null!=b&&b instanceof c.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&(null!=a&&a instanceof Array||null===a))return this.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,a);if((null!=b&&b instanceof c.mxgraph.io.vsdx.theme.QuickStyleVals|| null===b)&&void 0===a)return this.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);throw Error("invalid overload");};f.prototype.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.fontColors)};f.prototype.getConnFontColor=function(b){return this.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.connFontColors)};f.prototype.getArrowType=function(b,a,d,g){d= this.getLineStyleExt(b.getQuickStyleLineMatrix(),d);if(null!=d)return a?d.getStart():d.getEnd();b=this.getLineStyle(b.getQuickStyleLineMatrix(),g);return null!=b?a?b.getStart():b.getEnd():0};f.prototype.getEdgeMarker=function(b,a){return this.getArrowType(a,b,this.lineStylesExt,this.lineStyles)};f.prototype.getConnEdgeMarker=function(b,a){return this.getArrowType(a,b,this.connLineStylesExt,this.connLineStyles)};f.prototype.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList= function(b,a){var d=this.getLineStyle(b.getQuickStyleLineMatrix(),a);return null!=d?d.getLineWidth():0};f.prototype.getLineWidth=function(b,a){if((null!=b&&b instanceof c.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&(null!=a&&a instanceof Array||null===a))return this.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,a);if((null!=b&&b instanceof c.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&void 0===a)return this.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals(b); throw Error("invalid overload");};f.prototype.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.lineStyles)};f.prototype.getConnLineWidth=function(b){return this.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.connLineStyles)};return f}();h.__static_initialized=!1;l.mxVsdxTheme=h;h.__class="com.mxgraph.io.vsdx.mxVsdxTheme"})(m.vsdx||(m.vsdx={}))})(m.io||(m.io= {}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){var h=function(){function f(){}f.conversionFactor_$LI$=function(){null==f.conversionFactor&&(f.conversionFactor=f.screenCoordinatesPerCm*f.CENTIMETERS_PER_INCHES);return f.conversionFactor};f.getDirectChildNamedElements=function(b,a){for(var d=[],g=b.firstChild;null!=g;g=g.nextSibling){var p;if(p=null!=g&&1==g.nodeType){p=a;var c=g.nodeName;p=p&&p.equals?p.equals(c):p===c}p&&0<d.push(g)}return d};f.getDirectChildElements=function(b){var a=[];for(b= b.firstChild;null!=b;b=b.nextSibling)null!=b&&1==b.nodeType&&0<a.push(b);return a};f.getDirectFirstChildElement=function(b){for(b=b.firstChild;null!=b;b=b.nextSibling)if(null!=b&&1==b.nodeType)return b;return null};f.getIntAttr$org_w3c_dom_Element$java_lang_String$int=function(b,a,d){try{var g=b.getAttribute(a);if(null!=g)return parseInt(g)}catch(p){}return d};f.getIntAttr=function(b,a,d){if((null==b||1!=b.nodeType)&&null!==b||"string"!==typeof a&&null!==a||"number"!==typeof d&&null!==d){if((null== b||1!=b.nodeType)&&null!==b||"string"!==typeof a&&null!==a||void 0!==d)throw Error("invalid overload");return c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(b,a)}return c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String$int(b,a,d)};f.getIntAttr$org_w3c_dom_Element$java_lang_String=function(b,a){return f.getIntAttr$org_w3c_dom_Element$java_lang_String$int(b,a,0)};f.getStyleString=function(b,a){for(var d="",g=function(a){var b=0;return{next:function(){return b< a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){return Object.keys(a).map(function(b){return a[b]})}(b)),p=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(Object.keys(b));p.hasNext();){var c=p.next(),f=g.next();if(!function(a,b){return a&&a.equals?a.equals(b):a===b}(c,mxConstants.STYLE_SHAPE)||!function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(b[c]?b[c]:null,"image")&&!function(a,b,d){void 0=== d&&(d=0);return a.substr(d,b.length)===b}(b[c]?b[c]:null,"rounded="))try{d=d+c+a}catch(y){console.error("mxVsdxUtils.getStyleString,"+y+",style.length="+d.length+",key.length="+c.length+",asig.length="+a.length)}d=d+f+";"}return d};f.surroundByTags=function(b,a){return"<"+a+">"+b+"</"+a+">"};f.htmlEntities=function(b){return b.replace(RegExp("&","g"),"&amp;").replace(RegExp('"',"g"),"&quot;").replace(RegExp("'","g"),"&prime;").replace(RegExp("<","g"),"&lt;").replace(RegExp(">","g"),"&gt;")};f.toInitialCapital= function(b){b=b.split(" ");for(var a="",d=0;d<b.length;d++)var g=b[d],c=g.substring(0,1),g=g.substring(1),c=c.toUpperCase(),a=a+(c+g);return a.substring(0,a.length)};f.toSmallCaps=function(b,a){var d="",g=d;if(a&&a.equals?a.equals(g):a===g)d=b;else for(var g=b.split(""),c=0;c<g.length;c++){var f=g[c];(null==f.charCodeAt?f:f.charCodeAt(0))>=(null=="a".charCodeAt?"a":97)&&(null==f.charCodeAt?f:f.charCodeAt(0))<=(null=="z".charCodeAt?"z":122)?(f=(new String(f)).toString(),f=f.toUpperCase(),d+='<font style="font-size:'+ parseFloat(a)/1.28+'px">'+f+"</font>"):d+=f}return d};f.getStyleMap=function(b,a){for(var d={},g=b.split(";"),c=0;c<g.length;c++){var f=g[c],h=f.indexOf(a),y=f.substring(0,h),f=f.substring(h+1);d[y]=f}return d};f.isInsideTriangle=function(b,a,d,g,c,f,h,y){c-=d;f-=g;h-=d;y-=g;g=c*y-h*f;d=(b*(f-y)+a*(h-c)+c*y-h*f)/g;h=(b*y-a*h)/g;b=(a*c-b*f)/g;return 0<d&&1>d&&0<h&&1>h&&0<b&&1>b?!0:!1};return f}();h.screenCoordinatesPerCm=40;h.CENTIMETERS_PER_INCHES=2.54;l.mxVsdxUtils=h;h.__class="com.mxgraph.io.vsdx.mxVsdxUtils"})(m.vsdx|| (m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(c){(function(c){(function(c){var h=function(){function c(b,a,d,g){this.paraIndex=this.fields=this.charIndices=this.values=null;this.values=[];0<this.values.push(b);this.charIndices=[];0<this.charIndices.push(a);this.fields=[];0<this.fields.push(g);this.paraIndex=d}c.prototype.addText=function(b,a,d){0<this.values.push(b);0<this.charIndices.push(a);0<this.fields.push(d)};c.prototype.getParagraphIndex=function(){return this.paraIndex};c.prototype.getValue=function(b){return this.values[b]}; c.prototype.numValues=function(){return this.values.length};c.prototype.getChar=function(b){return this.charIndices[b]};c.prototype.getField=function(b){return this.fields[b]};return c}();c.Paragraph=h;h.__class="com.mxgraph.io.vsdx.Paragraph"})(c.vsdx||(c.vsdx={}))})(c.io||(c.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){var h=function(){function f(b){this.elem=b}f.prototype.getIndexedCell=function(b,a){for(var d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(this.elem,"Row"),g=0;g<d.length;g++){var p=d[g],f=p.getAttribute("IX");if(function(a,b){return a&&a.equals?a.equals(b):a===b}(f,b)||null==b)for(var p=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(p,"Cell"),h=0;h<p.length;h++){var y=p[h],f=y.getAttribute("N");if(function(a,b){return a&& a.equals?a.equals(b):a===b}(f,a))return y}}return null};return f}();l.Section=h;h.__class="com.mxgraph.io.vsdx.Section"})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(c){(function(c){(function(c){var h=function(){function c(b,a){this.pageNumber=0;this.pageNumber=b;this.Id=a}c.prototype.getId=function(){return this.Id};c.prototype.getPageNumber=function(){return this.pageNumber};c.prototype.equals=function(b){return null==b||this.constructor!==b.constructor||this.pageNumber!==b.pageNumber||this.Id!==b.Id?!1:!0};c.prototype.hashCode=function(){return 1E5*this.pageNumber+this.Id};return c}();c.ShapePageId=h;h.__class="com.mxgraph.io.vsdx.ShapePageId"})(c.vsdx|| (c.vsdx={}))})(c.io||(c.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(){function b(a,b,g){this.blue=this.green=this.red=0;this.gradientClr=null;this.red=a;this.green=b;this.blue=g}b.NONE_$LI$=function(){null==b.NONE&&(b.NONE=new b(-1,-1,-1));return b.NONE};b.prototype.getRed=function(){return this.red};b.prototype.setRed=function(a){this.red=a};b.prototype.getGreen=function(){return this.green};b.prototype.setGreen=function(a){this.green=a};b.prototype.getBlue=function(){return this.blue}; b.prototype.setBlue=function(a){this.blue=a};b.prototype.toHsl=function(){var a=this.getRed()/255,b=this.getGreen()/255,g=this.getBlue()/255,p=Math.max(a,Math.max(b,g)),f=Math.min(a,Math.min(b,g)),h=(p+f)/2;if(p===f)a=f=0;else var y=p-f,f=.5<h?y/(2-p-f):y/(p+f),a=(p===a?(b-g)/y+(b<g?6:0):p===b?(g-a)/y+2:(a-b)/y+4)/6;return new c.mxgraph.io.vsdx.theme.HSLColor(a,f,h)};b.prototype.toHsv=function(){var a=this.getRed()/255,b=this.getGreen()/255,g=this.getBlue()/255,p=Math.max(a,Math.max(b,g)),f=Math.min(a, Math.min(b,g)),h=p-f,a=p===f?0:(p===a?(b-g)/h+(b<g?6:0):p===b?(g-a)/h+2:(a-b)/h+4)/6;return new c.mxgraph.io.vsdx.theme.HSVColor(a,0===p?0:h/p,p)};b.decodeColorHex=function(a){a=parseInt(a,16);return new b(a>>16&255,a>>8&255,a&255)};b.prototype.toHexStr=function(){var a=this.red.toString(16),a=1==a.length?"0"+a:a,b=this.green.toString(16),b=1==b.length?"0"+b:b,g=this.blue.toString(16),g=1==g.length?"0"+g:g;return"#"+a+b+g};b.prototype.getGradientClr=function(){return this.gradientClr};b.prototype.setGradientClr= function(a){this.gradientClr=a};return b}();h.Color=f;f.__class="com.mxgraph.io.vsdx.theme.Color"})(l.theme||(l.theme={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(){function b(){}b.getFillStyle=function(a){var b=null;switch(a.nodeName){case "a:solidFill":b=new c.mxgraph.io.vsdx.theme.SolidFillStyle(c.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(a)));break;case "a:noFill":b=new c.mxgraph.io.vsdx.theme.NoFillStyle;break;case "a:gradFill":b=new c.mxgraph.io.vsdx.theme.GradFill(a)}return b};return b}();h.FillStyleFactory= f;f.__class="com.mxgraph.io.vsdx.theme.FillStyleFactory"})(l.theme||(l.theme={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(){function b(a){this.color2=this.color1=null;a=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a,"a:gsLst");0<a.length&&(a=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a[0]),2<=a.length&&(this.color2=c.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(a[0])),this.color1=c.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(a[a.length- 1]))));null==this.color1&&(this.color1=this.color2=new c.mxgraph.io.vsdx.theme.SrgbClr("FFFFFF"))}b.prototype.applyStyle=function(a,b){var d=this.color1.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(a,b);d.setGradientClr(this.color2.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(a,b));return d};return b}();h.GradFill=f;f.__class="com.mxgraph.io.vsdx.theme.GradFill";f.__interfaces=["com.mxgraph.io.vsdx.theme.FillStyle"]})(l.theme||(l.theme={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph= {}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(){function b(a,b,g){this.lum=this.sat=this.hue=0;this.hue=a;this.sat=b;this.lum=g}b.prototype.getHue=function(){return this.hue};b.prototype.setHue=function(a){this.hue=a};b.prototype.getSat=function(){return this.sat};b.prototype.setSat=function(a){this.sat=a};b.prototype.getLum=function(){return this.lum};b.prototype.setLum=function(a){this.lum=a};b.prototype.hue2rgb=function(a,b,g){0>g&&(g+=1);1<g&&--g;return g<1/6? a+6*(b-a)*g:.5>g?b:g<2/3?a+(b-a)*(2/3-g)*6:a};b.prototype.toRgb=function(){var a,b,g;g=this.hue;b=this.sat;a=this.lum;if(0===b)a=b=g=a;else{var p=.5>a?a*(1+b):a+b-a*b,f=2*a-p;a=this.hue2rgb(f,p,g+1/3);b=this.hue2rgb(f,p,g);g=this.hue2rgb(f,p,g-1/3)}return new c.mxgraph.io.vsdx.theme.Color(255*a|0,255*b|0,255*g|0)};b.prototype.clamp01=function(a){return Math.min(1,Math.max(0,a))};b.prototype.tint=function(a){this.lum*=1+a/100;this.lum=this.clamp01(this.lum);return this};b.prototype.shade=function(a){this.lum*= a/100;this.lum=this.clamp01(this.lum);return this};b.prototype.satMod=function(a){this.sat*=a/100;this.sat=this.clamp01(this.sat);return this};b.prototype.lumMod=function(a){this.lum*=a/100;this.lum=this.clamp01(this.lum);return this};return b}();h.HSLColor=f;f.__class="com.mxgraph.io.vsdx.theme.HSLColor"})(l.theme||(l.theme={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(){function b(a,b,g){this.h=a;this.s=b;this.v=g}b.prototype.toRgb=function(){var a=6*this.h,b=this.s,g=Math.floor(a),p=a-g,a=this.v*(1-b),f=this.v*(1-p*b),b=this.v*(1-(1-p)*b),g=(g|0)%6;return new c.mxgraph.io.vsdx.theme.Color(255*[this.v,f,a,a,b,this.v][g]|0,255*[b,this.v,this.v,f,a,a][g]|0,255*[a,a,b,this.v,this.v,f][g]|0)};b.prototype.clamp01=function(a){return Math.min(1,Math.max(0,a))};b.prototype.tint=function(a){this.v*= 1+a/100;this.v=this.clamp01(this.v);return this};b.prototype.shade=function(a){this.v*=a/100;this.v=this.clamp01(this.v);return this};b.prototype.satMod=function(a){this.s*=a/100;this.s=this.clamp01(this.s);return this};b.prototype.lumMod=function(a){this.v*=a/100;this.v=this.clamp01(this.v);return this};b.prototype.hueMod=function(a){this.h*=a/100;this.h=this.clamp01(this.h);return this};return b}();h.HSVColor=f;f.__class="com.mxgraph.io.vsdx.theme.HSVColor"})(l.theme||(l.theme={}))})(m.vsdx||(m.vsdx= {}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(){function b(a){this.isLineDashed=!1;this.lineDashPattern=[];this.isMiterJoin=this.isBevelJoin=this.isRoundJoin=!1;if(null!=a&&1==a.nodeType||null===a){Array.prototype.slice.call(arguments);this.lineWidth=0;this.headEndType=this.fillStyle=this.lineComp=this.lineCap=null;this.headEndLen=this.headEndWidth=0;this.tailEndType=null;this.tailEndLen=this.tailEndWidth=0;this.isLineDashed=!1;this.lineDashPattern=[];this.isMiterJoin= this.isBevelJoin=this.isRoundJoin=!1;this.lineWidth=0;this.headEndType=this.fillStyle=this.lineComp=this.lineCap=null;this.headEndLen=this.headEndWidth=0;this.tailEndType=null;this.tailEndLen=this.tailEndWidth=0;this.lineWidth=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"w");var d=a.getAttribute("cap");if(null!=d)switch(d){case "rnd":this.lineCap=b.LineCapType.ROUND;break;case "sq":this.lineCap=b.LineCapType.SQUARE;break;case "flat":this.lineCap=b.LineCapType.FLAT}d= a.getAttribute("cmpd");if(null!=d)switch(d){case "sng":this.lineComp=b.CompoundLineType.SINGLE;break;case "dbl":this.lineComp=b.CompoundLineType.DOUBLE;break;case "thickThin":this.lineComp=b.CompoundLineType.THICK_THIN_DOUBLE;break;case "thinThick":this.lineComp=b.CompoundLineType.THIN_THICK_DOUBLE;break;case "tri":this.lineComp=b.CompoundLineType.THIN_THICK_THIN_TRIPLE}for(var d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a),g=0;g<d.length;g++){var p=d[g];switch(p.nodeName){case "a:noFill":case "a:solidFill":case "a:gradFill":case "a:pattFill":this.fillStyle= c.mxgraph.io.vsdx.theme.FillStyleFactory.getFillStyle(p);break;case "a:prstDash":p=p.getAttribute("val");this.isLineDashed=!0;switch(p){case "solid":this.isLineDashed=!1;break;case "sysDot":case "dot":0<this.lineDashPattern.push(1);0<this.lineDashPattern.push(4);break;case "lgDash":0<this.lineDashPattern.push(12);0<this.lineDashPattern.push(4);break;case "sysDashDot":case "dashDot":0<this.lineDashPattern.push(8);0<this.lineDashPattern.push(4);0<this.lineDashPattern.push(1);0<this.lineDashPattern.push(4); break;case "lgDashDot":0<this.lineDashPattern.push(12);0<this.lineDashPattern.push(4);0<this.lineDashPattern.push(1);0<this.lineDashPattern.push(4);break;case "sysDashDotDot":case "lgDashDotDot":0<this.lineDashPattern.push(12),0<this.lineDashPattern.push(4),0<this.lineDashPattern.push(1),0<this.lineDashPattern.push(4),0<this.lineDashPattern.push(1),0<this.lineDashPattern.push(4)}break;case "a:custDash":this.isLineDashed=!0;for(var p=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(p,"a:ds"), f=0;f<p.length;f++){var h=p[f],y=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(h,"d"),h=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(h,"sp");0<this.lineDashPattern.push(y/1E4);0<this.lineDashPattern.push(h/1E4)}break;case "a:round":this.isRoundJoin=!0;break;case "a:bevel":this.isBevelJoin=!0;break;case "a:miter":c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(p,"lim");this.isMiterJoin=!0;break;case "a:headEnd":this.headEndType= this.getLineEndType(p);this.headEndWidth=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(p,"w");this.headEndLen=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(p,"len");break;case "a:tailEnd":this.tailEndType=this.getLineEndType(p),this.tailEndWidth=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(p,"w"),this.tailEndLen=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(p,"len")}}}else if(void 0=== a)Array.prototype.slice.call(arguments),this.lineWidth=0,this.headEndType=this.fillStyle=this.lineComp=this.lineCap=null,this.headEndLen=this.headEndWidth=0,this.tailEndType=null,this.tailEndLen=this.tailEndWidth=0,this.isLineDashed=!1,this.lineDashPattern=[],this.isMiterJoin=this.isBevelJoin=this.isRoundJoin=!1,this.lineWidth=0,this.headEndType=this.fillStyle=this.lineComp=this.lineCap=null,this.headEndLen=this.headEndWidth=0,this.tailEndType=null,this.tailEndLen=this.tailEndWidth=0;else throw Error("invalid overload"); }b.prototype.getLineEndType=function(a){var d=null;switch(a.getAttribute("type")){case "none":d=b.LineEndType.NONE;break;case "triangle":d=b.LineEndType.TRIANGLE;break;case "stealth":d=b.LineEndType.STEALTH;break;case "diamond":d=b.LineEndType.DIAMOND;break;case "oval":d=b.LineEndType.OVAL;break;case "arrow":d=b.LineEndType.ARROW}return d};b.prototype.getLineColor=function(a,b){return null!=this.fillStyle?this.fillStyle.applyStyle(a,b):b.getDefaultLineClr()};b.prototype.isDashed=function(){return this.isLineDashed}; b.prototype.getLineDashPattern=function(){return this.lineDashPattern};b.prototype.getStartSize=function(){return 4};b.prototype.getEndSize=function(){return 4};b.prototype.getStart=function(){return 0};b.prototype.getEnd=function(){return 0};b.prototype.getLineWidth=function(){return this.lineWidth};return b}();h.LineStyle=f;f.__class="com.mxgraph.io.vsdx.theme.LineStyle";(function(b){(function(a){a[a.ROUND=0]="ROUND";a[a.SQUARE=1]="SQUARE";a[a.FLAT=2]="FLAT"})(b.LineCapType||(b.LineCapType={})); (function(a){a[a.SINGLE=0]="SINGLE";a[a.DOUBLE=1]="DOUBLE";a[a.THICK_THIN_DOUBLE=2]="THICK_THIN_DOUBLE";a[a.THIN_THICK_DOUBLE=3]="THIN_THICK_DOUBLE";a[a.THIN_THICK_THIN_TRIPLE=4]="THIN_THICK_THIN_TRIPLE"})(b.CompoundLineType||(b.CompoundLineType={}));(function(a){a[a.NONE=0]="NONE";a[a.TRIANGLE=1]="TRIANGLE";a[a.STEALTH=2]="STEALTH";a[a.DIAMOND=3]="DIAMOND";a[a.OVAL=4]="OVAL";a[a.ARROW=5]="ARROW"})(b.LineEndType||(b.LineEndType={}))})(f=h.LineStyle||(h.LineStyle={}))})(l.theme||(l.theme={}))})(m.vsdx|| (m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(){function b(a){this.pattern=this.endSize=this.end=this.startSize=this.start=this.rndg=0;this.lineDashPattern=null;a=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(a);this.rndg=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"rndg");this.start=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"start");this.startSize=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a, "startSize");this.end=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"end");this.endSize=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"endSize");this.pattern=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"pattern");this.lineDashPattern=c.mxgraph.io.vsdx.Style.getLineDashPattern(this.pattern)}b.prototype.getRndg=function(){return this.rndg};b.prototype.getStart=function(){return this.start};b.prototype.getStartSize= function(){return this.startSize};b.prototype.getEnd=function(){return this.end};b.prototype.getEndSize=function(){return this.endSize};b.prototype.isDashed=function(){return 1<this.pattern};b.prototype.getLineDashPattern=function(){return this.lineDashPattern};return b}();h.LineStyleExt=f;f.__class="com.mxgraph.io.vsdx.theme.LineStyleExt"})(l.theme||(l.theme={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(){function b(){}b.prototype.applyStyle=function(a,b){return c.mxgraph.io.vsdx.theme.Color.NONE_$LI$()};return b}();h.NoFillStyle=f;f.__class="com.mxgraph.io.vsdx.theme.NoFillStyle";f.__interfaces=["com.mxgraph.io.vsdx.theme.FillStyle"]})(l.theme||(l.theme={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(){function b(){this.invGamma=this.gamma=this.blueMod=this.blueOff=this.blue=this.greenMod=this.greenOff=this.green=this.redMod=this.redOff=this.red=this.lumMod=this.lumOff=this.lum=this.satMod=this.satOff=this.sat=this.hueMod=this.hueOff=this.hue=this.alphaMod=this.alphaOff=this.alpha=this.gray=this.inv=this.comp=this.shade=this.tint=0;this.hasEffects=this.isInitialized=this.isDynamic=!1;this.color=null}b.prototype.calcColor= function(a,b){if(this.hasEffects){var d=this.color.toHsv();0!==this.tint&&d.tint(this.tint);0!==this.shade&&d.shade(this.shade);0!==this.satMod&&d.satMod(this.satMod);0!==this.lumMod&&d.lumMod(this.lumMod);0!==this.hueMod&&d.hueMod(this.hueMod);this.color=d.toRgb()}};b.prototype.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme=function(a,b){if(this.isDynamic||!this.isInitialized)this.calcColor(a,b),this.isInitialized=!0;return this.color};b.prototype.getColor=function(a,b){if("number"!==typeof a&&null!== a||!(null!=b&&b instanceof c.mxgraph.io.vsdx.mxVsdxTheme||null===b)){if((null!=a&&a instanceof c.mxgraph.io.vsdx.mxVsdxTheme||null===a)&&void 0===b)return this.getColor$com_mxgraph_io_vsdx_mxVsdxTheme(a);throw Error("invalid overload");}return this.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(a,b)};b.prototype.getColor$com_mxgraph_io_vsdx_mxVsdxTheme=function(a){return this.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(-1,a)};b.prototype.setTint=function(a){this.tint=a;this.hasEffects=!0};b.prototype.setShade= function(a){this.shade=a;this.hasEffects=!0};b.prototype.setComp=function(a){this.comp=a;this.hasEffects=!0};b.prototype.setInv=function(a){this.inv=a;this.hasEffects=!0};b.prototype.setGray=function(a){this.gray=a;this.hasEffects=!0};b.prototype.setAlpha=function(a){this.alpha=a;this.hasEffects=!0};b.prototype.setAlphaOff=function(a){this.alphaOff=a;this.hasEffects=!0};b.prototype.setAlphaMod=function(a){this.alphaMod=a;this.hasEffects=!0};b.prototype.setHue=function(a){this.hue=a;this.hasEffects= !0};b.prototype.setHueOff=function(a){this.hueOff=a;this.hasEffects=!0};b.prototype.setHueMod=function(a){this.hueMod=a;this.hasEffects=!0};b.prototype.setSat=function(a){this.sat=a;this.hasEffects=!0};b.prototype.setSatOff=function(a){this.satOff=a;this.hasEffects=!0};b.prototype.setSatMod=function(a){this.satMod=a;this.hasEffects=!0};b.prototype.setLum=function(a){this.lum=a;this.hasEffects=!0};b.prototype.setLumOff=function(a){this.lumOff=a;this.hasEffects=!0};b.prototype.setLumMod=function(a){this.lumMod= a;this.hasEffects=!0};b.prototype.setRed=function(a){this.red=a;this.hasEffects=!0};b.prototype.setRedOff=function(a){this.redOff=a;this.hasEffects=!0};b.prototype.setRedMod=function(a){this.redMod=a;this.hasEffects=!0};b.prototype.setGreen=function(a){this.green=a;this.hasEffects=!0};b.prototype.setGreenOff=function(a){this.greenOff=a;this.hasEffects=!0};b.prototype.setGreenMod=function(a){this.greenMod=a;this.hasEffects=!0};b.prototype.setBlue=function(a){this.blue=a;this.hasEffects=!0};b.prototype.setBlueOff= function(a){this.blueOff=a;this.hasEffects=!0};b.prototype.setBlueMod=function(a){this.blueMod=a;this.hasEffects=!0};b.prototype.setGamma=function(a){this.gamma=a;this.hasEffects=!0};b.prototype.setInvGamma=function(a){this.invGamma=a;this.hasEffects=!0};return b}();h.OoxmlColor=f;f.__class="com.mxgraph.io.vsdx.theme.OoxmlColor"})(l.theme||(l.theme={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(){function b(){}b.getOoxmlColor=function(a){var b=null;switch(a.nodeName){case "a:scrgbClr":b=new c.mxgraph.io.vsdx.theme.ScrgbClr(parseInt(a.getAttribute("r")),parseInt(a.getAttribute("g")),parseInt(a.getAttribute("b")));break;case "a:srgbClr":b=new c.mxgraph.io.vsdx.theme.SrgbClr(a.getAttribute("val"));break;case "a:hslClr":b=new c.mxgraph.io.vsdx.theme.HslClr(parseInt(a.getAttribute("hue")),parseInt(a.getAttribute("sat")), parseInt(a.getAttribute("lum")));break;case "a:sysClr":b=new c.mxgraph.io.vsdx.theme.SysClr(a.getAttribute("val"),a.getAttribute("lastClr"));break;case "a:schemeClr":b=new c.mxgraph.io.vsdx.theme.SchemeClr(a.getAttribute("val"));break;case "a:prstClr":b=new c.mxgraph.io.vsdx.theme.SrgbClr(a.getAttribute("val"))}a=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);for(var g=0;g<a.length;g++){var p=a[g],f=parseInt(p.getAttribute("val"))/1E3|0;switch(p.nodeName){case "a:tint":b.setTint(f);break; case "a:shade":b.setShade(f);break;case "a:satMod":b.setSatMod(f);break;case "a:lumMod":b.setLumMod(f);break;case "a:hueMod":b.setHueMod(f)}}return b};return b}();h.OoxmlColorFactory=f;f.__class="com.mxgraph.io.vsdx.theme.OoxmlColorFactory"})(l.theme||(l.theme={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(c){(function(c){(function(c){(function(c){var f=function(){function b(a,b,g,c,f,h,y,q,l,m){this.quickStyleVariation=this.quickStyleType=this.quickStyleShadowColor=this.quickStyleLineColor=this.quickStyleFontMatrix=this.quickStyleFontColor=this.quickStyleFillMatrix=this.quickStyleFillColor=this.quickStyleEffectsMatrix=0;this.quickStyleEffectsMatrix=a;this.quickStyleFillColor=b;this.quickStyleFillMatrix=g;this.quickStyleFontColor=c;this.quickStyleFontMatrix=f;this.quickStyleLineColor= h;this.quickStyleLineMatrix=y;this.quickStyleShadowColor=q;this.quickStyleType=l;this.quickStyleVariation=m}b.prototype.getQuickStyleEffectsMatrix=function(){return this.quickStyleEffectsMatrix};b.prototype.getQuickStyleFillColor=function(){return this.quickStyleFillColor};b.prototype.getQuickStyleFillMatrix=function(){return this.quickStyleFillMatrix};b.prototype.getQuickStyleFontColor=function(){return this.quickStyleFontColor};b.prototype.getQuickStyleFontMatrix=function(){return this.quickStyleFontMatrix}; b.prototype.getQuickStyleLineColor=function(){return this.quickStyleLineColor};b.prototype.getQuickStyleLineMatrix=function(){return this.quickStyleLineMatrix};b.prototype.getQuickStyleShadowColor=function(){return this.quickStyleShadowColor};b.prototype.getQuickStyleType=function(){return this.quickStyleType};b.prototype.getQuickStyleVariation=function(){return this.quickStyleVariation};b.prototype.setQuickStyleEffectsMatrix=function(a){this.quickStyleEffectsMatrix=a};b.prototype.setQuickStyleFillColor= function(a){this.quickStyleFillColor=a};b.prototype.setQuickStyleFillMatrix=function(a){this.quickStyleFillMatrix=a};b.prototype.setQuickStyleFontColor=function(a){this.quickStyleFontColor=a};b.prototype.setQuickStyleFontMatrix=function(a){this.quickStyleFontMatrix=a};b.prototype.setQuickStyleLineColor=function(a){this.quickStyleLineColor=a};b.prototype.setQuickStyleLineMatrix=function(a){this.quickStyleLineMatrix=a};b.prototype.setQuickStyleShadowColor=function(a){this.quickStyleShadowColor=a};b.prototype.setQuickStyleType= function(a){this.quickStyleType=a};b.prototype.setQuickStyleVariation=function(a){this.quickStyleVariation=a};return b}();c.QuickStyleVals=f;f.__class="com.mxgraph.io.vsdx.theme.QuickStyleVals"})(c.theme||(c.theme={}))})(c.vsdx||(c.vsdx={}))})(c.io||(c.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(c){(function(c){(function(c){(function(c){var f=function(){function b(a){this.color=null;this.color=a}b.prototype.applyStyle=function(a,b){return this.color.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(a,b)};return b}();c.SolidFillStyle=f;f.__class="com.mxgraph.io.vsdx.theme.SolidFillStyle";f.__interfaces=["com.mxgraph.io.vsdx.theme.FillStyle"]})(c.theme||(c.theme={}))})(c.vsdx||(c.vsdx={}))})(c.io||(c.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(c){(function(c){var l=function(){function c(){}c.MAX_AREA_$LI$=function(){null==c.MAX_AREA&&(c.MAX_AREA=1E8);return c.MAX_AREA};return c}();l.MAX_REQUEST_SIZE=52428800;l.IMAGE_DOMAIN="http://img.diagramly.com/";c.Constants=l;l.__class="com.mxgraph.online.Constants"})(c.online||(c.online={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(c){(function(c){var l=function(){function c(){}c.getRotatedPoint=function(c,b,a,d){var g=c.x-d.x;c=c.y-d.y;return new mxPoint(g*b-c*a+d.x,c*b+g*a+d.y)};c.rotatedGeometry=function(c,b,a,d){b=b*Math.PI/180;var g=Math.cos(b);b=Math.sin(b);var p=c.getCenterX()-a,f=c.getCenterY()-d;c.x=Math.round(p*g-f*b+a-c.width/2);c.y=Math.round(f*g+p*b+d-c.height/2)};return c}();l.CHARSET_FOR_URL_ENCODING="ISO-8859-1";c.Utils=l;l.__class="com.mxgraph.online.Utils"})(c.online||(c.online={}))})(c.mxgraph|| (c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f){a=b.call(this,a,g,c)||this;a.a=f;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a){var d=b.getHeight(),g=b.getWidth(),f=Math.floor(Math.round(b.getLastX()*g)/100),h=Math.floor(Math.round(b.getLastY()*d)/100),q=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),l=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),l=d-l,m=this.a* c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),f=Math.abs(q-f),h=Math.abs(l-h),f=h=.5*m+(f*f+h*h)/(8*m),w=Math.abs(h),h=Math.round(100*h/g*100)/100,f=Math.round(100*f/d*100)/100,q=Math.round(100*q/g*100)/100,l=Math.round(100*l/d*100)/100,m=Math.round(100*m)/100,h=Math.abs(h),f=Math.abs(f),d=0>m?"1":"0",m=w<Math.abs(m)?"1":"0";b.setLastX(q);b.setLastY(l);return'<arc rx="'+(new String(h)).toString()+'" ry="'+(new String(f)).toString()+'" x="'+(new String(q)).toString()+'" y="'+(new String(l)).toString()+ '" x-axis-rotation="0" large-arc-flag="'+m+'" sweep-flag="'+d+'"/>'}return""};return a}(c.mxgraph.io.vsdx.geometry.Row);h.ArcTo=f;f.__class="com.mxgraph.io.vsdx.geometry.ArcTo"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a){return b.call(this,a,null,null)||this}__extends(a,b);a.prototype.handle=function(a,b){return""};return a}(c.mxgraph.io.vsdx.geometry.Row);h.DelRow=f;f.__class="com.mxgraph.io.vsdx.geometry.DelRow"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f,h,y,q){a=b.call(this,a,g,c)||this;a.a=f;a.b=h;a.c=y;a.d=q;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var d=b.getHeight(),g=b.getWidth(),f=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),h=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),h=d-h,q=this.a*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(), l=this.b*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),l=d-l,m=this.c*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),w=this.d*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),q=Math.abs(q-f),l=Math.abs(l-h),l=Math.sqrt(q*q+l*l),m=Math.abs(m-f),w=Math.abs(d-w-h),f=100*f/g,w=Math.round(100*Math.sqrt(m*m+w*w)/d/2*100)/100,g=Math.round(100*l/g/2*100)/100,m=Math.round(100*(f-2*g))/100,f=Math.round(100*(f+2*g))/100,d=Math.round(100*h/d*100)/100;return'<move x="'+(new String(m)).toString()+ '" y="'+(new String(d)).toString()+'"/><arc rx="'+(new String(g)).toString()+'" ry="'+(new String(w)).toString()+'" x="'+(new String(f)).toString()+'" y="'+(new String(d)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/><arc rx="'+(new String(g)).toString()+'" ry="'+(new String(w)).toString()+'" x="'+(new String(m)).toString()+'" y="'+(new String(d)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/>'}return""};return a}(c.mxgraph.io.vsdx.geometry.Row);h.Ellipse= f;f.__class="com.mxgraph.io.vsdx.geometry.Ellipse"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f,h,y,q){a=b.call(this,a,g,c)||this;a.a=f;a.b=h;a.c=y;a.d=q;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var d=b.getHeight(),g=b.getWidth(),f=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),h=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),h=d-h,q=this.a*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(), l=this.b*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),m=this.c,w=this.d,f=100*f/g,h=100*h/d,E=b.getLastX()*g/100,A=b.getLastY()*d/100,F=f*g/100,B=h*d/100,Y=d-l,K=-m,m=Math.sqrt(E*E+A*A)*Math.cos(Math.atan2(A,E)-K),l=Math.sqrt(E*E+A*A)*Math.sin(Math.atan2(A,E)-K),X=Math.sqrt(F*F+B*B)*Math.cos(Math.atan2(B,F)-K),L=Math.sqrt(F*F+B*B)*Math.sin(Math.atan2(B,F)-K),fa=Math.sqrt(q*q+Y*Y)*Math.cos(Math.atan2(Y,q)-K),la=Math.sqrt(q*q+Y*Y)*Math.sin(Math.atan2(Y,q)-K),ea=((m-X)*(m+X)*(L-la)-(X-fa)*(X+ fa)*(l-L)+w*w*(l-L)*(L-la)*(l-la))/(2*((m-X)*(L-la)-(X-fa)*(l-L))),ab=((m-X)*(X-fa)*(m-fa)/(w*w)+(X-fa)*(l-L)*(l+L)-(m-X)*(L-la)*(L+la))/(2*((X-fa)*(l-L)-(m-X)*(L-la))),ja=m-ea,Ha=l-ab,ja=Math.sqrt(ja*ja+Ha*Ha*w*w),w=ja/w,K=180*K/Math.PI,f=Math.round(100*f)/100,h=Math.round(100*h)/100,ja=Math.round(100*ja/g*100)/100,w=Math.round(100*w/d*100)/100,K=Math.round(100*K)/100,d=0<(F-E)*(Y-A)-(B-A)*(q-E)?"0":"1",g="0";c.mxgraph.io.vsdx.mxVsdxUtils.isInsideTriangle(ea,ab,m,l,X,L,fa,la)&&this.isReflexAngle(ea, ab,m,l,X,L,fa,la)&&(g="1");b.setLastX(f);b.setLastY(h);return'<arc rx="'+(new String(ja)).toString()+'" ry="'+(new String(w)).toString()+'" x="'+(new String(f)).toString()+'" y="'+(new String(h)).toString()+'" x-axis-rotation="'+(new String(K)).toString()+'" large-arc-flag="'+g+'" sweep-flag="'+d+'"/>'}return""};a.prototype.isReflexAngle=function(a,b,c,f,h,l,q,m){c-=a;f-=b;l-=b;h=q-a;m-=b;b=a=0;c=180*(Math.atan2(f,c)-Math.atan2(b,a))/Math.PI;h=180*(Math.atan2(l,h)-Math.atan2(b,a))/Math.PI;a=180*(Math.atan2(m, q)-Math.atan2(b,a))/Math.PI;c=(c-a)%360;h=(h-a)%360;180<c?c-=360:-180>c&&(c+=360);180<h?h-=360:-180>h&&(h+=360);return(0<c&&0>h||0>c&&0<h)&&180<Math.abs(c-h)?!0:!1};return a}(c.mxgraph.io.vsdx.geometry.Row);h.EllipticalArcTo=f;f.__class="com.mxgraph.io.vsdx.geometry.EllipticalArcTo"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f,h){a=b.call(this,a,g,c)||this;a.a=f;a.b=h;return a}__extends(a,b);a.prototype.handle=function(a,b){return""};return a}(c.mxgraph.io.vsdx.geometry.Row);h.InfiniteLine=f;f.__class="com.mxgraph.io.vsdx.geometry.InfiniteLine"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c){return b.call(this,a,g,c)||this}__extends(a,b);a.prototype.handle=function(a,b){var d=a.x,g=a.y,f=b.getHeight(),h=b.getWidth();null!=this.x&&null!=this.y&&(d=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),g=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$());d=Math.round(100*d/h*100)/100;g=Math.round(100*(100-100*g/f))/100;a.x=d;a.y=g;b.setLastX(d);b.setLastY(g);return'<line x="'+ (new String(d)).toString()+'" y="'+(new String(g)).toString()+'"/>'};return a}(c.mxgraph.io.vsdx.geometry.Row);h.LineTo=f;f.__class="com.mxgraph.io.vsdx.geometry.LineTo"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c){return b.call(this,a,g,c)||this}__extends(a,b);a.prototype.handle=function(a,b){var d=a.x,g=a.y,f=b.getHeight(),h=b.getWidth();null!=this.x&&null!=this.y&&(d=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),g=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$());d=Math.round(100*d/h*100)/100;g=Math.round(100*(100-100*g/f))/100;a.x=d;a.y=g;b.setLastX(d);b.setLastY(g);b.setLastMoveX(d); b.setLastMoveY(g);return'<move x="'+(new String(d)).toString()+'" y="'+(new String(g)).toString()+'"/>'};return a}(c.mxgraph.io.vsdx.geometry.Row);h.MoveTo=f;f.__class="com.mxgraph.io.vsdx.geometry.MoveTo"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f,h,l,q,m){a=b.call(this,a,g,c)||this;a.a=f;a.b=h;a.c=l;a.d=q;a.formulaE=m;return a}__extends(a,b);a.prototype.handle=function(b,g){if(null!=this.x&&null!=this.y&&null!=this.formulaE){var d=g.getHeight(),f=g.getWidth(),h=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),l=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),q=this.formulaE.split("NURBS(").join(""),q=q.split(")").join(""), q=new a.Nurbs(this,q,f,d);if(2<=q.getSize()){var m=q.getX(0),w=q.getY(0),P=q.getX(1),E=q.getY(1),h=Math.round(100*h/f*100)/100,l=Math.round(100*(100-100*l/d))/100,m=Math.round(100*m)/100,w=Math.round(100*w)/100,P=Math.round(100*P)/100,E=Math.round(100*E)/100;g.setLastX(h);g.setLastY(l);if(3===q.getDegree()&&q.isOrderedByThree(this.getA())){d=[];f=[];m=[];P=q.getSize();for(w=0;w<P-1;w+=3)0<d.push(new mxPoint(q.getX(w),q.getY(w))),0<f.push(new mxPoint(q.getX(w+1),q.getY(w+1))),w<P-2?0<m.push(new mxPoint(q.getX(w+ 2),q.getY(w+2))):0<m.push(new mxPoint(h,l));h="";for(w=0;w<d.length;w++)h+='<curve x1="'+d[w].x+'" y1="'+d[w].y+'" x2="'+f[w].x+'" y2="'+f[w].y+'" x3="'+m[w].x+'" y3="'+m[w].y+'"/>\n';return h}return'<curve x1="'+(new String(m)).toString()+'" y1="'+(new String(w)).toString()+'" x2="'+(new String(P)).toString()+'" y2="'+(new String(E)).toString()+'" x3="'+(new String(h)).toString()+'" y3="'+(new String(l)).toString()+'"/>'}}return""};return a}(c.mxgraph.io.vsdx.geometry.Row);h.NURBSTo=f;f.__class= "com.mxgraph.io.vsdx.geometry.NURBSTo";(function(b){var a=function(){function a(a,b,d,c){this.__parent=a;this.nurbsValues=[];a=b.split(/\s*,\s*/).slice(0);for(b=0;b<a.length;b++)3<b&&0===b%4?0<this.nurbsValues.push(100*parseFloat(a[b])):3<b&&1===b%4?0<this.nurbsValues.push(100-100*parseFloat(a[b])):0<this.nurbsValues.push(parseFloat(a[b]))}a.prototype.isOrderedByThree=function(a){for(var b=0;b+2<this.getSize();b+=3){var d=Math.round(100*this.getKnot(b))/100,g=Math.round(100*this.getKnot(b+1))/100, c=Math.round(100*this.getKnot(b+2))/100;if(d!==g||d!==c||g!==c)return!1}b=Math.round(10*this.getKnot(this.getSize()-2))/10;d=Math.round(10*this.getKnot(this.getSize()-1))/10;a=Math.round(10*a)/10;return b!==d||b!==a||d!==a?!1:!0};a.prototype.getSize=function(){return(this.nurbsValues.length/4|0)-1};a.prototype.getKnotLast=function(){return this.nurbsValues[0]};a.prototype.getDegree=function(){return this.nurbsValues[1]};a.prototype.getXType=function(){return this.nurbsValues[2]};a.prototype.getYType= function(){return this.nurbsValues[3]};a.prototype.getX=function(a){return this.nurbsValues[4*(a+1)]};a.prototype.getY=function(a){return this.nurbsValues[4*(a+1)+1]};a.prototype.getKnot=function(a){return this.nurbsValues[4*(a+1)+2]};a.prototype.getWeight=function(a){return this.nurbsValues[4*(a+1)+3]};return a}();b.Nurbs=a;a.__class="com.mxgraph.io.vsdx.geometry.NURBSTo.Nurbs"})(f=h.NURBSTo||(h.NURBSTo={}))})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph= {}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f){a=b.call(this,a,g,c)||this;a.formulaA=f;return a}__extends(a,b);a.prototype.handle=function(a,b){var d="";if(null!=this.x&&null!=this.y&&null!=this.formulaA){var g=b.getHeight(),f=b.getWidth(),h=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),q=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),h=Math.round(100*h/f*100)/100,q=Math.round(100*(100-100*q/g))/100,l=this.formulaA.replace(RegExp("\\s", "g"),"").toLowerCase().replace(RegExp("polyline\\(","g"),"").replace(RegExp("\\)","g"),""),m;m=l&&l.equals?l.equals("inh"):"inh"===l;if(m)throw Object.defineProperty(Error(),"__classes",{configurable:!0,value:["java.lang.Throwable","java.lang.Object","java.lang.RuntimeException","java.lang.IllegalArgumentException","java.lang.Exception"]});l=l.split(",").slice(0).slice(0);m=parseFloat(l.splice(0,1));parseFloat(l.splice(0,1));for(var w,E;0<l.length;)w=parseFloat(l.splice(0,1))*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(), E=parseFloat(l.splice(0,1))*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),1===m&&(w=100*w/f),1===m&&(E=100*E/g),E=100-E,w=Math.round(100*w)/100,E=Math.round(100*E)/100,b.setLastX(w),b.setLastY(E),d+='<line x="'+(new String(w)).toString()+'" y="'+(new String(E)).toString()+'"/>';d+='<line x="'+(new String(h)).toString()+'" y="'+(new String(q)).toString()+'"/>';b.getLastMoveX()===h&&b.getLastMoveY()===q&&(d+="<close/>")}return d};return a}(c.mxgraph.io.vsdx.geometry.Row);h.PolylineTo=f;f.__class= "com.mxgraph.io.vsdx.geometry.PolylineTo"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f,h,l,q){a=b.call(this,a,g,c)||this;a.a=f;a.b=h;a.c=l;a.d=q;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var d=100*this.x,g=100-100*this.y,c=100*this.a,f=100-100*this.b,h=100*this.c,l=100-100*this.d,d=Math.round(100*d)/100,g=Math.round(100*g)/100,c=Math.round(100*c)/100,f=Math.round(100*f)/100,h=Math.round(100* h)/100,l=Math.round(100*l)/100;b.setLastX(d);b.setLastY(g);return'<curve x1="'+(new String(c)).toString()+'" y1="'+(new String(f)).toString()+'" x2="'+(new String(h)).toString()+'" y2="'+(new String(l)).toString()+'" x3="'+(new String(d)).toString()+'" y3="'+(new String(g)).toString()+'"/>'}return""};return a}(c.mxgraph.io.vsdx.geometry.Row);h.RelCubBezTo=f;f.__class="com.mxgraph.io.vsdx.geometry.RelCubBezTo"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph= {}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c){return b.call(this,a,g,c)||this}__extends(a,b);a.prototype.handle=function(a,b){var d=a.x,g=a.y;null!=this.x&&null!=this.y&&(d=100*this.x,g=100-100*this.y);d=Math.round(100*d)/100;g=Math.round(100*g)/100;a.x=d;a.y=g;b.setLastX(d);b.setLastY(g);return'<line x="'+(new String(d)).toString()+'" y="'+(new String(g)).toString()+'"/>'};return a}(c.mxgraph.io.vsdx.geometry.Row);h.RelLineTo=f;f.__class="com.mxgraph.io.vsdx.geometry.RelLineTo"})(l.geometry|| (l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c){return b.call(this,a,g,c)||this}__extends(a,b);a.prototype.handle=function(a,b){var d=a.x,g=a.y;null!=this.x&&null!=this.y&&(d=100*this.x,g=100-100*this.y);d=Math.round(100*d)/100;g=Math.round(100*g)/100;a.x=d;a.y=g;b.setLastX(d);b.setLastY(g);b.setLastMoveX(d);b.setLastMoveY(g);return'<move x="'+(new String(d)).toString()+'" y="'+(new String(g)).toString()+'"/>'};return a}(c.mxgraph.io.vsdx.geometry.Row); h.RelMoveTo=f;f.__class="com.mxgraph.io.vsdx.geometry.RelMoveTo"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f,h){a=b.call(this,a,g,c)||this;a.a=f;a.b=h;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b){var d=100*this.x,g=100-100*this.y,c=100*this.a,f=100-100*this.b,d=Math.round(100*d)/100,g=Math.round(100*g)/100,c=Math.round(100*c)/100,f=Math.round(100*f)/100;b.setLastX(d);b.setLastY(g);return'<quad x1="'+(new String(c)).toString()+'" y1="'+ (new String(f)).toString()+'" x2="'+(new String(d)).toString()+'" y2="'+(new String(g)).toString()+'"/>'}return""};return a}(c.mxgraph.io.vsdx.geometry.Row);h.RelQuadBezTo=f;f.__class="com.mxgraph.io.vsdx.geometry.RelQuadBezTo"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f){a=b.call(this,a,g,c)||this;a.a=f;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a){var d=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),g=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),d=Math.round(100*d)/100,g=Math.round(100*(100-g))/100;b.setLastX(d);b.setLastY(g)}return""};return a}(c.mxgraph.io.vsdx.geometry.Row); h.SplineKnot=f;f.__class="com.mxgraph.io.vsdx.geometry.SplineKnot"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f,h,l,q){a=b.call(this,a,g,c)||this;a.a=f;a.b=h;a.c=l;a.d=q;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){b.getHeight();b.getWidth();var d=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),g=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();b.setLastKnot(this.c);d=Math.round(100*d)/ 100;g=Math.round(100*(100-g))/100;b.getLastX();b.getLastY();b.setLastX(d);b.setLastY(g);return"<curve "}return""};return a}(c.mxgraph.io.vsdx.geometry.Row);h.SplineStart=f;f.__class="com.mxgraph.io.vsdx.geometry.SplineStart"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){var h=function(){function f(b,a){this.cellElements={};this.sections={};this.styleParents={};this.style=this.pm=this.Id=this.shape=null;this.shape=b;this.pm=a.getPropertiesManager();var d=b.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.ID);try{this.Id=null!=d&&0!==d.length?parseFloat(d):-1}catch(g){this.Id=-1}this.cacheCells(a);this.stylesheetRefs(a)}f.__static_initialize=function(){f.__static_initialized||(f.__static_initialized=!0,f.__static_initializer_0(), f.__static_initializer_1())};f.styleTypes_$LI$=function(){f.__static_initialize();null==f.styleTypes&&(f.styleTypes={});return f.styleTypes};f.__static_initializer_0=function(){f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.FILL]=c.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.FILL_BKGND]=c.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.FILL_BKGND_TRANS]=c.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE; f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.FILL_FOREGND]=c.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.FILL_FOREGND_TRANS]=c.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.FILL_PATTERN]=c.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.SHDW_PATTERN]=c.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE]= c.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;f.styleTypes_$LI$().QuickStyleFillColor=c.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;f.styleTypes_$LI$().QuickStyleFillMatrix=c.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW]=c.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW]=c.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN]= c.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR]=c.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR_TRANS]=c.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.LINE_WEIGHT]=c.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;f.styleTypes_$LI$().QuickStyleLineColor=c.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;f.styleTypes_$LI$().QuickStyleLineMatrix= c.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW_SIZE]=c.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW_SIZE]=c.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.TEXT_BKGND]=c.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.BOTTOM_MARGIN]=c.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE; f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.LEFT_MARGIN]=c.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.RIGHT_MARGIN]=c.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.TOP_MARGIN]=c.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH]=c.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER]= c.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;f.styleTypes_$LI$().QuickStyleFontColor=c.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;f.styleTypes_$LI$().QuickStyleFontMatrix=c.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE};f.prototype.getTheme=function(){return null};f.prototype.getQuickStyleVals=function(){return null};f.prototype.isVertex=function(){return!1};f.prototype.styleDebug=function(b){f.vsdxStyleDebug&&console.info(b)};f.prototype.stylesheetRefs=function(b){this.styleParents[c.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE]= b.getStylesheet(this.shape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE));this.styleParents[c.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE]=b.getStylesheet(this.shape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE));this.styleParents[c.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE]=b.getStylesheet(this.shape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE));this.style=b.getStylesheet("0")};f.prototype.cacheCells=function(b){if(null!=this.shape){var a=this.shape.childNodes; if(null!=a)for(a=a.item(0);null!=a;)null!=a&&1==a.nodeType&&this.parseShapeElem(a,b),a=a.nextSibling}};f.prototype.parseShapeElem=function(b,a){var d=b.nodeName;(function(a,b){return a&&a.equals?a.equals(b):a===b})(d,"Cell")?this.cellElements[b.getAttribute("N")]=b:function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"Section")&&this.parseSection(b)};f.prototype.parseSection=function(b){var a=new c.mxgraph.io.vsdx.Section(b);this.sections[b.getAttribute("N")]=a};f.prototype.hasProperty=function(b, a){return this.cellElements.hasOwnProperty(a)};f.prototype.getValue=function(b,a){return null!=b?b.getAttribute("V")||"":a};f.prototype.getValueAsDouble=function(b,a){if(null!=b){var d=b.getAttribute("V");if(null!=d){if(function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"Themed"))return 0;try{var g=parseFloat(d);(function(a,b){return a&&a.equals?a.equals(b):a===b})(b.getAttribute("U"),"PT")&&(g*=c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$());return Math.round(100*g)/100}catch(p){console.error(p.message, p)}}}return a};f.prototype.getScreenNumericalValue$org_w3c_dom_Element$double=function(b,a){if(null!=b){var d=b.getAttribute("V");if(null!=d)try{var g=parseFloat(d);return this.getScreenNumericalValue$double(g)}catch(p){console.error(p.message,p)}}return a};f.prototype.getScreenNumericalValue=function(b,a){if((null==b||1!=b.nodeType)&&null!==b||"number"!==typeof a&&null!==a){if("number"!==typeof b&&null!==b||void 0!==a)throw Error("invalid overload");return this.getScreenNumericalValue$double(b)}return this.getScreenNumericalValue$org_w3c_dom_Element$double(b, a)};f.prototype.getScreenNumericalValue$double=function(b){return b*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$()};f.prototype.getAttribute=function(b,a,d){var g=this.cellElements;b=g[b]?g[b]:null;null!=b&&(d=b.getAttribute(a)||"");return d};f.prototype.getChildValues=function(b,a){for(var d={},g=b.firstChild;null!=g;){if(null!=g&&1==g.nodeType){var c=g,f,h;((f=c.nodeName)&&f.equals?f.equals("Cell"):"Cell"===f)?(f=c.getAttribute("N")||"",h=c.getAttribute("V")||""):(f=c.nodeName,h=c.textContent); if(null!=a){var l=a[f]?a[f]:null;null!=l&&(h=c.getAttribute(l)||"")}d[f]=h}g=g.nextSibling}return d};f.prototype.getCellElement$java_lang_String$java_lang_String$java_lang_String=function(b,a,d){var g=function(a,b){return a[b]?a[b]:null}(this.sections,d),p=null,h=!1;null!=g&&(p=g.getIndexedCell(a,b));if(null!=p){var g=p.getAttribute("F"),l=p.getAttribute("V");if(null!=g&&null!=l)if(function(a,b){return a&&a.equals?a.equals(b):a===b}(g,"Inh")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(l, "Themed"))h=!0;else if(function(a,b){return a&&a.equals?a.equals(b):a===b}(g,"THEMEVAL()")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(l,"Themed")&&null!=this.style){if(function(a,b){return a&&a.equals?a.equals(b):a===b}(c.mxgraph.io.vsdx.mxVsdxConstants.COLOR,b))return p;g=this.style.getCellElement$java_lang_String$java_lang_String$java_lang_String(b,a,d);if(null!=g)return g}}if(null==p||h)if(h=function(a,b){return a[b]?a[b]:null}(f.styleTypes_$LI$(),d),h=function(a,b){return a[b]?a[b]: null}(this.styleParents,h),null!=h&&(b=h.getCellElement$java_lang_String$java_lang_String$java_lang_String(b,a,d),null!=b))return b;return p};f.prototype.getCellElement=function(b,a,d){if("string"!==typeof b&&null!==b||"string"!==typeof a&&null!==a||"string"!==typeof d&&null!==d){if("string"!==typeof b&&null!==b||void 0!==a||void 0!==d)throw Error("invalid overload");return this.getCellElement$java_lang_String(b)}return this.getCellElement$java_lang_String$java_lang_String$java_lang_String(b,a,d)}; f.prototype.getCellElement$java_lang_String=function(b){var a=function(a,b){return a[b]?a[b]:null}(this.cellElements,b),d=!1;if(null!=a){var g=a.getAttribute("F"),p=a.getAttribute("V");if(null!=g&&null!=p)if(function(a,b){return a&&a.equals?a.equals(b):a===b}(g,"Inh")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(p,"Themed"))d=!0;else if(-1!=g.indexOf("THEMEVAL()")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(p,"Themed")&&null!=this.style){if(function(a,b){return a&&a.equals?a.equals(b): a===b}("FillForegnd",b)||function(a,b){return a&&a.equals?a.equals(b):a===b}(c.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR,b)||function(a,b){return a&&a.equals?a.equals(b):a===b}(c.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN,b)||function(a,b){return a&&a.equals?a.equals(b):a===b}(c.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW_SIZE,b)||function(a,b){return a&&a.equals?a.equals(b):a===b}(c.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW_SIZE,b)||function(a,b){return a&&a.equals?a.equals(b):a===b}(c.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW, b)||function(a,b){return a&&a.equals?a.equals(b):a===b}(c.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW,b)||function(a,b){return a&&a.equals?a.equals(b):a===b}(c.mxgraph.io.vsdx.mxVsdxConstants.LINE_WEIGHT,b))return a;g=this.style.getCellElement$java_lang_String(b);if(null!=g)return g}}if(null==a||d)if(d=function(a,b){return a[b]?a[b]:null}(f.styleTypes_$LI$(),b),d=function(a,b){return a[b]?a[b]:null}(this.styleParents,d),null!=d&&(b=d.getCellElement$java_lang_String(b),null!=b))return b;return a};f.prototype.getStrokeColor= function(){var b="";(function(a,b){return a&&a.equals?a.equals(b):a===b})(this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN),"1"),"0")?b="none":(b=this.getColor(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR)),function(a,b){return a&&a.equals?a.equals(b):a===b}("Themed",b)&&(b=this.getTheme(),b=null!=b?(this.isVertex()?b.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):b.getConnLineColor(this.getQuickStyleVals())).toHexStr(): ""));return b};f.prototype.getFillColor=function(){if(function(a,b){return a&&a.equals?a.equals(b):a===b}("1",this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.FILL_GRADIENT_ENABLED),"0"))){var b=function(a,b){return a[b]?a[b]:null}(this.sections,"FillGradient");if(null!=b&&(b=this.getColor(b.getIndexedCell("0","GradientStopColor")),null!=b&&0!==b.length))return b}b=this.getColor(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.FILL_FOREGND)); (function(a,b){return a&&a.equals?a.equals(b):a===b})("Themed",b)&&(b=this.getTheme(),null!=b?(b=b.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()),b=b.toHexStr()):b="#FFFFFF");var a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.FILL_PATTERN),"0");return null!=a&&function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")?"none":b};f.prototype.getColor=function(b){b=this.getValue(b,"");(function(a,b){return a&&a.equals?a.equals(b): a===b})("Themed",b)||function(a,b,g){void 0===g&&(g=0);return a.substr(g,b.length)===b}(b,"#")||(b=this.pm.getColor(b));return b};f.prototype.getTextBkgndColor=function(b){b=this.getValue(b,"");return function(a,b,g){void 0===g&&(g=0);return a.substr(g,b.length)===b}(b,"#")?b:function(a,b){return a&&a.equals?a.equals(b):a===b}(b,"0")||function(a,b){return a&&a.equals?a.equals(b):a===b}(b,"255")||0===b.length?"none":this.pm.getColor((new String(parseInt(b)-1)).toString())};f.prototype.getLineWeight= function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.LINE_WEIGHT),0)};f.prototype.getStrokeTransparency=function(){return this.getValueAsDouble(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR_TRANS),0)};f.prototype.getNameU=function(){return this.shape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)||""};f.prototype.getName=function(){return this.shape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.NAME)|| ""};f.prototype.getUniqueID=function(){return this.shape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.UNIQUE_ID)||""};f.prototype.getId=function(){return this.Id};f.prototype.getTextColor=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.COLOR,b,c.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);b=this.getValue(b,"#000000");(function(a,b){return a&&a.equals?a.equals(b):a===b})("Themed",b)?(b=this.getTheme(),b=null!=b?(this.isVertex()? b.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):b.getConnFontColor(this.getQuickStyleVals())).toHexStr():"#000000"):function(a,b,g){void 0===g&&(g=0);return a.substr(g,b.length)===b}(b,"#")||(b=this.pm.getColor(b));return b};f.prototype.getTextTopMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.TOP_MARGIN),0)};f.prototype.getTextBottomMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.BOTTOM_MARGIN), 0)};f.prototype.getTextLeftMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.LEFT_MARGIN),0)};f.prototype.getTextRightMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.RIGHT_MARGIN),0)};f.prototype.getTextStyle=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.STYLE, b,c.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);return this.getValue(b,"")};f.prototype.getTextFont=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.FONT,b,c.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);return this.getValue(b,"")};f.prototype.getTextPos=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.POS,b,c.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);return this.getValue(b, "")};f.prototype.getTextStrike=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.STRIKETHRU,b,c.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);b=(b=this.getValue(b,""))&&b.equals?b.equals("1"):"1"===b;return b};f.prototype.getTextCase=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.CASE,b,c.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);return this.getValue(b,"")};f.prototype.getHorizontalAlign= function(b,a){var d;d=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.HORIZONTAL_ALIGN,b,c.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);switch(this.getValue(d,"")){case "0":d=a?"left":mxConstants.ALIGN_LEFT;break;case "2":d=a?"right":mxConstants.ALIGN_RIGHT;break;case "3":case "4":d=a?"justify":mxConstants.ALIGN_CENTER;break;default:d=a?"center":mxConstants.ALIGN_CENTER}return d};f.prototype.getIndentFirst=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.INDENT_FIRST, b,c.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))).toString()};f.prototype.getIndentLeft=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.INDENT_LEFT,b,c.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(Math.round(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))|0)).toString()};f.prototype.getIndentRight=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.INDENT_RIGHT, b,c.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(Math.round(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))|0)).toString()};f.prototype.getSpBefore=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.SPACE_BEFORE,b,c.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(Math.round(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))|0)).toString()};f.prototype.getSpAfter=function(b){b= this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.SPACE_AFTER,b,c.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(Math.round(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))|0)).toString()};f.prototype.getSpLine=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.SPACE_LINE,b,c.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);b=this.getValue(b,"");var a;a=b&& b.equals?b.equals(""):""===b;return a?0:parseFloat(b)};f.prototype.getFlags=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.FLAGS,b,c.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return this.getValue(b,"0")};f.prototype.getLetterSpace=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.LETTER_SPACE,b,c.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(this.getScreenNumericalValue$org_w3c_dom_Element$double(b, 0))).toString()};f.prototype.getBullet=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.BULLET,b,c.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return this.getValue(b,"0")};f.prototype.getShape=function(){return this.shape};f.prototype.setShape=function(b){this.shape=b};f.lineDashPatterns_$LI$=function(){f.__static_initialize();null==f.lineDashPatterns&&(f.lineDashPatterns=[]);return f.lineDashPatterns};f.__static_initializer_1=function(){0< f.lineDashPatterns_$LI$().push([]);0<f.lineDashPatterns_$LI$().push([]);0<f.lineDashPatterns_$LI$().push([]);var b=[];0<b.push(f.DOT);0<b.push(f.SPACE);0<f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.DASH);0<b.push(f.SPACE);0<b.push(f.DOT);0<b.push(f.SPACE);0<f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.DASH);0<b.push(f.SPACE);0<b.push(f.DOT);0<b.push(f.SPACE);0<b.push(f.DOT);0<b.push(f.SPACE);0<f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.DASH);0<b.push(f.SPACE);0<b.push(f.DASH);0< b.push(f.SPACE);0<b.push(f.DOT);0<b.push(f.SPACE);0<f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.LONG_DASH);0<b.push(f.SPACE);0<b.push(f.SHORT_DASH);0<b.push(f.SPACE);0<f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.LONG_DASH);0<b.push(f.SPACE);0<b.push(f.SHORT_DASH);0<b.push(f.SPACE);0<b.push(f.SHORT_DASH);0<b.push(f.SPACE);0<f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.SHORT_DASH);0<b.push(f.SHORT_SPACE);0<f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.DOT);0<b.push(f.SHORT_SPACE); 0<f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.SHORT_DASH);0<b.push(f.SHORT_SPACE);0<b.push(f.DOT);0<b.push(f.SHORT_SPACE);0<f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.SHORT_DASH);0<b.push(f.SHORT_SPACE);0<b.push(f.DOT);0<b.push(f.SHORT_SPACE);0<b.push(f.DOT);0<b.push(f.SHORT_SPACE);0<f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.SHORT_DASH);0<b.push(f.SHORT_SPACE);0<b.push(f.SHORT_DASH);0<b.push(f.SHORT_SPACE);0<b.push(f.DOT);0<b.push(f.SHORT_SPACE);0<f.lineDashPatterns_$LI$().push(b); b=[];0<b.push(f.DASH);0<b.push(f.SHORT_SPACE);0<b.push(f.SHORT_DASH);0<b.push(f.SHORT_SPACE);0<f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.DASH);0<b.push(f.SHORT_SPACE);0<b.push(f.SHORT_DASH);0<b.push(f.SHORT_SPACE);0<b.push(f.SHORT_DASH);0<b.push(f.SHORT_SPACE);0<f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.LONG_DASH);0<b.push(f.LONG_SPACE);0<f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.DOT);0<b.push(f.LONG_SPACE);0<f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.LONG_DASH);0<b.push(f.LONG_SPACE); 0<b.push(f.DOT);0<b.push(f.LONG_SPACE);0<f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.LONG_DASH);0<b.push(f.LONG_SPACE);0<b.push(f.DOT);0<b.push(f.LONG_SPACE);0<b.push(f.DOT);0<b.push(f.LONG_SPACE);0<f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.LONG_DASH);0<b.push(f.LONG_SPACE);0<b.push(f.LONG_DASH);0<b.push(f.LONG_SPACE);0<b.push(f.DOT);0<b.push(f.LONG_SPACE);0<f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.XLONG_DASH);0<b.push(f.LONG_SPACE);0<b.push(f.DASH);0<b.push(f.LONG_SPACE);0< f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.XLONG_DASH);0<b.push(f.LONG_SPACE);0<b.push(f.DASH);0<b.push(f.LONG_SPACE);0<b.push(f.DASH);0<b.push(f.LONG_SPACE);0<f.lineDashPatterns_$LI$().push(b);b=[];0<b.push(f.XSHORT_DASH);0<b.push(f.SHORT_SPACE);0<f.lineDashPatterns_$LI$().push(b)};f.getLineDashPattern=function(b){return 0<=b&&23>=b?f.lineDashPatterns_$LI$()[b]:f.lineDashPatterns_$LI$()[0]};return f}();h.__static_initialized=!1;h.vsdxStyleDebug=!1;h.SPACE=4;h.SHORT_SPACE=2;h.LONG_SPACE=6; h.DOT=1;h.DASH=8;h.LONG_DASH=12;h.SHORT_DASH=4;h.XLONG_DASH=20;h.XSHORT_DASH=2;l.Style=h;h.__class="com.mxgraph.io.vsdx.Style"})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,f){var d=b.call(this)||this;d.__com_mxgraph_io_vsdx_theme_HslClr_hue=a/360;d.__com_mxgraph_io_vsdx_theme_HslClr_sat=g/100;d.__com_mxgraph_io_vsdx_theme_HslClr_lum=f/100;d.color=(new c.mxgraph.io.vsdx.theme.HSLColor(a,g,f)).toRgb();return d}__extends(a,b);return a}(c.mxgraph.io.vsdx.theme.OoxmlColor);h.HslClr=f;f.__class="com.mxgraph.io.vsdx.theme.HslClr"})(l.theme||(l.theme={}))})(m.vsdx||(m.vsdx={}))})(m.io|| (m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a){var d=b.call(this)||this;d.val=a;d.color=new c.mxgraph.io.vsdx.theme.Color(255,255,255);return d}__extends(a,b);return a}(c.mxgraph.io.vsdx.theme.OoxmlColor);h.PrstClr=f;f.__class="com.mxgraph.io.vsdx.theme.PrstClr"})(l.theme||(l.theme={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a){var d=b.call(this)||this;d.isDynamic=!0;d.val=a;return d}__extends(a,b);a.prototype.calcColor=function(a,g){var d;d=this.val;d="phClr".equals?"phClr".equals(d):"phClr"===d;d?this.color=g.getStyleColor(a):(this.color=g.getSchemeColor(this.val),this.isDynamic=!1);b.prototype.calcColor.call(this,a,g)};return a}(c.mxgraph.io.vsdx.theme.OoxmlColor);h.SchemeClr=f;f.__class="com.mxgraph.io.vsdx.theme.SchemeClr"})(l.theme|| (l.theme={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,f){var d=b.call(this)||this;d.r=0;d.g=0;d.b=0;d.r=a;d.g=g;d.b=f;d.color=new c.mxgraph.io.vsdx.theme.Color(a,g,f);return d}__extends(a,b);return a}(c.mxgraph.io.vsdx.theme.OoxmlColor);h.ScrgbClr=f;f.__class="com.mxgraph.io.vsdx.theme.ScrgbClr"})(l.theme||(l.theme={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a){var d=b.call(this)||this;d.hexVal=null;d.hexVal=a;d.color=c.mxgraph.io.vsdx.theme.Color.decodeColorHex(a);return d}__extends(a,b);return a}(c.mxgraph.io.vsdx.theme.OoxmlColor);h.SrgbClr=f;f.__class="com.mxgraph.io.vsdx.theme.SrgbClr"})(l.theme||(l.theme={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g){var d=b.call(this)||this;d.lastClr=null;d.val=a;var f=d.lastClr=g;if(null==f)switch(a){case "windowText":f="000000";break;case "window":f="FFFFFF";break;default:f="FFFFFF"}d.color=c.mxgraph.io.vsdx.theme.Color.decodeColorHex(f);return d}__extends(a,b);return a}(c.mxgraph.io.vsdx.theme.OoxmlColor);h.SysClr=f;f.__class="com.mxgraph.io.vsdx.theme.SysClr"})(l.theme||(l.theme={}))})(m.vsdx||(m.vsdx={}))})(m.io|| (m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f,h,l,q){return b.call(this,a,g,c,f,h,l,q)||this}__extends(a,b);a.prototype.handle=function(a,g){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var d=g.getHeight()/c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),f=g.getWidth()/c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();this.x*=f;this.y*=d;this.a*=f;this.b*=d}return b.prototype.handle.call(this, a,g)};return a}(c.mxgraph.io.vsdx.geometry.EllipticalArcTo);h.RelEllipticalArcTo=f;f.__class="com.mxgraph.io.vsdx.geometry.RelEllipticalArcTo"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){var h=function(f){function b(a,b){var d=this;d.text=null;d.fields=null;d.geom=null;d.imageData=null;d.theme=null;d.quickStyleVals=null;d=f.call(this,a,b)||this;d.paragraphs=null;d.styleMap={};d.width=0;d.height=0;d.rotation=0;d.lastX=0;d.lastY=0;d.lastMoveX=0;d.lastMoveY=0;d.lastKnot=-1;d.geomList=null;d.geomListProcessed=!1;d.themeVariant=0;d.cp="0";d.pp="0";d.tp="0";d.fld="0";d.width=d.getScreenNumericalValue$org_w3c_dom_Element$double(function(a, b){return a[b]?a[b]:null}(d.cellElements,c.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0);d.height=d.getScreenNumericalValue$org_w3c_dom_Element$double(function(a,b){return a[b]?a[b]:null}(d.cellElements,c.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),0);return d}__extends(b,f);b.UNICODE_LINE_SEP_$LI$=function(){null==b.UNICODE_LINE_SEP&&(b.ERROR_IMAGE="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8IS0tIENyZWF0ZWQgd2l0aCBJbmtzY2FwZSAoaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvKSAtLT4NCjxzdmcNCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyINCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiDQogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiDQogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIg0KICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiDQogICB3aWR0aD0iMjUwIg0KICAgaGVpZ2h0PSIyNTAiDQogICBpZD0ic3ZnMzMxOSINCiAgIHNvZGlwb2RpOnZlcnNpb249IjAuMzIiDQogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2Ig0KICAgdmVyc2lvbj0iMS4wIg0KICAgc29kaXBvZGk6ZG9jbmFtZT0ibm9waG90b19pLnN2ZyINCiAgIGlua3NjYXBlOm91dHB1dF9leHRlbnNpb249Im9yZy5pbmtzY2FwZS5vdXRwdXQuc3ZnLmlua3NjYXBlIj4NCiAgPGRlZnMNCiAgICAgaWQ9ImRlZnMzMzIxIj4NCiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUNCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIg0KICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIg0KICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCINCiAgICAgICBpbmtzY2FwZTp2cF96PSI3NDQuMDk0NDggOiA1MjYuMTgxMDkgOiAxIg0KICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIg0KICAgICAgIGlkPSJwZXJzcGVjdGl2ZTMzMjciIC8+DQogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlDQogICAgICAgaWQ9InBlcnNwZWN0aXZlMzM0MiINCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMzcyLjA0NzI0IDogMzUwLjc4NzM5IDogMSINCiAgICAgICBpbmtzY2FwZTp2cF96PSI3NDQuMDk0NDggOiA1MjYuMTgxMDkgOiAxIg0KICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCINCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNTI2LjE4MTA5IDogMSINCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPg0KICA8L2RlZnM+DQogIDxzb2RpcG9kaTpuYW1lZHZpZXcNCiAgICAgaWQ9ImJhc2UiDQogICAgIHBhZ2Vjb2xvcj0iI2ZmZmZmZiINCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiDQogICAgIGJvcmRlcm9wYWNpdHk9IjEuMCINCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCINCiAgICAgaW5rc2NhcGU6cGFnZXNoYWRvdz0iMiINCiAgICAgaW5rc2NhcGU6em9vbT0iMi4yNDI5NDI3Ig0KICAgICBpbmtzY2FwZTpjeD0iMTIxLjk3NjQ4Ig0KICAgICBpbmtzY2FwZTpjeT0iMTIyLjQ0MTk4Ig0KICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0icHgiDQogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9ImxheWVyMSINCiAgICAgc2hvd2dyaWQ9ImZhbHNlIg0KICAgICBpbmtzY2FwZTp3aW5kb3ctd2lkdGg9IjE2NjQiDQogICAgIGlua3NjYXBlOndpbmRvdy1oZWlnaHQ9Ijg0NCINCiAgICAgaW5rc2NhcGU6d2luZG93LXg9Ii0zIg0KICAgICBpbmtzY2FwZTp3aW5kb3cteT0iLTE4IiAvPg0KICA8bWV0YWRhdGENCiAgICAgaWQ9Im1ldGFkYXRhMzMyNCI+DQogICAgPHJkZjpSREY+DQogICAgICA8Y2M6V29yaw0KICAgICAgICAgcmRmOmFib3V0PSIiPg0KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4NCiAgICAgICAgPGRjOnR5cGUNCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4NCiAgICAgICAgPGRjOnRpdGxlPkZvdG9ncmFmaWVydmVyYm90PC9kYzp0aXRsZT4NCiAgICAgICAgPGRjOmRhdGU+MjAwOC0wNi0yOTwvZGM6ZGF0ZT4NCiAgICAgICAgPGRjOmNyZWF0b3I+DQogICAgICAgICAgPGNjOkFnZW50Pg0KICAgICAgICAgICAgPGRjOnRpdGxlPlRvcnJzdGVuIFNrb21wPC9kYzp0aXRsZT4NCiAgICAgICAgICA8L2NjOkFnZW50Pg0KICAgICAgICA8L2RjOmNyZWF0b3I+DQogICAgICAgIDxkYzpyaWdodHM+DQogICAgICAgICAgPGNjOkFnZW50Pg0KICAgICAgICAgICAgPGRjOnRpdGxlPlRvcnN0ZW4gU2tvbXA8L2RjOnRpdGxlPg0KICAgICAgICAgIDwvY2M6QWdlbnQ+DQogICAgICAgIDwvZGM6cmlnaHRzPg0KICAgICAgICA8ZGM6cHVibGlzaGVyPg0KICAgICAgICAgIDxjYzpBZ2VudD4NCiAgICAgICAgICAgIDxkYzp0aXRsZT5Ub3JzdGVuIFNrb21wPC9kYzp0aXRsZT4NCiAgICAgICAgICA8L2NjOkFnZW50Pg0KICAgICAgICA8L2RjOnB1Ymxpc2hlcj4NCiAgICAgICAgPGRjOmxhbmd1YWdlPmRlX0RFPC9kYzpsYW5ndWFnZT4NCiAgICAgICAgPGRjOnN1YmplY3Q+DQogICAgICAgICAgPHJkZjpCYWc+DQogICAgICAgICAgICA8cmRmOmxpPlBpa3RvZ3JhbW07IEZvdG9ncmFmaWVydmVyYm90PC9yZGY6bGk+DQogICAgICAgICAgPC9yZGY6QmFnPg0KICAgICAgICA8L2RjOnN1YmplY3Q+DQogICAgICAgIDxkYzpkZXNjcmlwdGlvbj5Gb3RvZ3JhZmllcnZlcmJvdCBhbHMgUGlrdG9ncmFtbSA8L2RjOmRlc2NyaXB0aW9uPg0KICAgICAgICA8Y2M6bGljZW5zZQ0KICAgICAgICAgICByZGY6cmVzb3VyY2U9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL3B1YmxpY2RvbWFpbi8iIC8+DQogICAgICA8L2NjOldvcms+DQogICAgICA8Y2M6TGljZW5zZQ0KICAgICAgICAgcmRmOmFib3V0PSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9saWNlbnNlcy9wdWJsaWNkb21haW4vIj4NCiAgICAgICAgPGNjOnBlcm1pdHMNCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyNSZXByb2R1Y3Rpb24iIC8+DQogICAgICAgIDxjYzpwZXJtaXRzDQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjRGlzdHJpYnV0aW9uIiAvPg0KICAgICAgICA8Y2M6cGVybWl0cw0KICAgICAgICAgICByZGY6cmVzb3VyY2U9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zI0Rlcml2YXRpdmVXb3JrcyIgLz4NCiAgICAgIDwvY2M6TGljZW5zZT4NCiAgICA8L3JkZjpSREY+DQogIDwvbWV0YWRhdGE+DQogIDxnDQogICAgIGlua3NjYXBlOmxhYmVsPSJFYmVuZSAxIg0KICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIg0KICAgICBpZD0ibGF5ZXIxIj4NCiAgICA8cGF0aA0KICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjEiDQogICAgICAgZD0iTSAxNjQuNTMxMjUgNjIuNjg3NSBDIDE2Mi43OTExNSA2Mi42ODc1MDEgMTYxLjM3NSA2NC4wNzI0MTYgMTYxLjM3NSA2NS44MTI1IEwgMTYxLjM3NSA2OC43NSBMIDM4LjM3NSA2OC43NSBDIDM1LjA5MjI5OCA2OC43NDk5OTkgMzIuNDY4NzUgNzEuMzczNTQ4IDMyLjQ2ODc1IDc0LjY1NjI1IEwgMzIuNDY4NzUgMTgxLjM3NSBDIDMyLjQ2ODc1IDE4NC42NTc3IDM1LjA5MjMwNyAxODcuMzEyNTEgMzguMzc1IDE4Ny4zMTI1IEwgMjExLjYyNSAxODcuMzEyNSBDIDIxNC45MDc2OSAxODcuMzEyNSAyMTcuNTMxMjcgMTg0LjY1NzcgMjE3LjUzMTI1IDE4MS4zNzUgTCAyMTcuNTMxMjUgNzQuNjU2MjUgQyAyMTcuNTMxMjUgNzEuMzczNTUxIDIxNC45MDc2OCA2OC43NSAyMTEuNjI1IDY4Ljc1IEwgMjAyLjA2MjUgNjguNzUgTCAyMDIuMDYyNSA2NS44MTI1IEMgMjAyLjA2MjUgNjQuMDcyNDEgMjAwLjY0NjM1IDYyLjY4NzUgMTk4LjkwNjI1IDYyLjY4NzUgTCAxNjQuNTMxMjUgNjIuNjg3NSB6IE0gNDYuODEyNSA3OCBMIDg4LjY1NjI1IDc4IEMgOTAuMzk2MzQyIDc4IDkxLjgxMjUgNzkuMzg0OTA3IDkxLjgxMjUgODEuMTI1IEwgOTEuODEyNSA5Ni4zMTI1IEMgOTEuODEyNSA5OC4wNTI1OTIgOTAuMzk2MzQzIDk5LjQzNzUgODguNjU2MjUgOTkuNDM3NSBMIDQ2LjgxMjUgOTkuNDM3NSBDIDQ1LjA3MjQwOCA5OS40Mzc1IDQzLjY4NzUgOTguMDUyNTkzIDQzLjY4NzUgOTYuMzEyNSBMIDQzLjY4NzUgODEuMTI1IEMgNDMuNjg3NSA3OS4zODQ5MDggNDUuMDcyNDA3IDc4IDQ2LjgxMjUgNzggeiBNIDE0NiA4OC4yMTg3NSBDIDE2Ny43MzQ3NSA4OC4yMTg3NTMgMTg1LjM3NSAxMDYuMTUwNzEgMTg1LjM3NSAxMjguMjUgQyAxODUuMzc0OTkgMTUwLjM0OTI4IDE2Ny43MzQ3NCAxNjguMjgxMjUgMTQ2IDE2OC4yODEyNSBDIDEyNC4yNjUyNyAxNjguMjgxMjYgMTA2LjYyNSAxNTAuMzQ5MjkgMTA2LjYyNSAxMjguMjUgQyAxMDYuNjI1IDEwNi4xNTA3MSAxMjQuMjY1MjYgODguMjE4NzUgMTQ2IDg4LjIxODc1IHogTSAxNDYgOTEuNzE4NzUgQyAxMjYuMTY1NTcgOTEuNzE4NzUgMTEwLjA2MjUgMTA4LjA4Mjg5IDExMC4wNjI1IDEyOC4yNSBDIDExMC4wNjI1IDE0OC40MTcxMSAxMjYuMTY1NTcgMTY0Ljc4MTI2IDE0NiAxNjQuNzgxMjUgQyAxNjUuODM0NDMgMTY0Ljc4MTI1IDE4MS45Mzc1IDE0OC40MTcxIDE4MS45Mzc1IDEyOC4yNSBDIDE4MS45Mzc1IDEwOC4wODI4OSAxNjUuODM0NDMgOTEuNzE4NzUgMTQ2IDkxLjcxODc1IHogTSAxNDYgOTYuNTkzNzUgQyAxNjMuMTc3NjggOTYuNTkzNzUyIDE3Ny4xMjUgMTEwLjc4NDIgMTc3LjEyNSAxMjguMjUgQyAxNzcuMTI0OTkgMTQ1LjcxNTggMTYzLjE3NzY5IDE1OS44NzUgMTQ2IDE1OS44NzUgQyAxMjguODIyMzEgMTU5Ljg3NSAxMTQuODc1IDE0NS43MTU4IDExNC44NzUgMTI4LjI1IEMgMTE0Ljg3NSAxMTAuNzg0MTkgMTI4LjgyMjMxIDk2LjU5Mzc1IDE0NiA5Ni41OTM3NSB6IE0gMTc2LjUgMTcyLjcxODc1IEwgMjA2LjE4NzUgMTcyLjcxODc1IEMgMjA3LjQyMTM4IDE3Mi43MTg3NSAyMDguNDA2MjUgMTczLjEyNzgzIDIwOC40MDYyNSAxNzMuNjI1IEwgMjA4LjQwNjI1IDE3Ny45Njg3NSBDIDIwOC40MDYyNSAxNzguNDY1OTIgMjA3LjQyMTM4IDE3OC44NDM3NSAyMDYuMTg3NSAxNzguODQzNzUgTCAxNzYuNSAxNzguODQzNzUgQyAxNzUuMjY2MTEgMTc4Ljg0Mzc1IDE3NC4yODEyNSAxNzguNDY1OTIgMTc0LjI4MTI1IDE3Ny45Njg3NSBMIDE3NC4yODEyNSAxNzMuNjI1IEMgMTc0LjI4MTI1IDE3My4xMjc4MyAxNzUuMjY2MTIgMTcyLjcxODc1IDE3Ni41IDE3Mi43MTg3NSB6ICINCiAgICAgICBpZD0icmVjdDMyMDkiIC8+DQogICAgPHBhdGgNCiAgICAgICBzdHlsZT0iZmlsbDojYzQyNjFkO2ZpbGwtb3BhY2l0eToxIg0KICAgICAgIGQ9Ik0gMjAgMCBDIDE4LjU1OTkzOCAwIDE3LjE2NDc0NyAwLjE1MDk4NjY2IDE1LjgxMjUgMC40Mzc1IEMgMTUuMjEwMjkxIDAuNTY1MTk1NzggMTQuNjExOTEzIDAuNzI2MjExMjYgMTQuMDMxMjUgMC45MDYyNSBDIDEzLjU1NDc3MyAxLjA1Mzk4NTIgMTMuMDg1MzQ5IDEuMjI0ODUzNiAxMi42MjUgMS40MDYyNSBDIDEyLjMyODc2NiAxLjUyMzA3MzkgMTIuMDM5MDMzIDEuNjUwOTE4MiAxMS43NSAxLjc4MTI1IEMgMTEuMzQ3Mjc4IDEuOTYyMzU5OCAxMC45NTA0MDYgMi4xMzc0MTY1IDEwLjU2MjUgMi4zNDM3NSBDIDEwLjUyMTU1NSAyLjM2NTU2ODggMTAuNDc4MjczIDIuMzg0MTU1NSAxMC40Mzc1IDIuNDA2MjUgQyAxMC40MTY5MzQgMi40MTczNzU0IDEwLjM5NTUyMiAyLjQyNjMwNDkgMTAuMzc1IDIuNDM3NSBDIDkuODMyNjg2MSAyLjczMzM0NDYgOS4zMjI2NDQ4IDMuMDYzMjQ1MiA4LjgxMjUgMy40MDYyNSBDIDguMjgzMTIyMSAzLjc2MjE4NjUgNy43NzI3NzI4IDQuMTU4OTIwOSA3LjI4MTI1IDQuNTYyNSBDIDcuMjc1MDU1IDQuNTY3NTg2NiA3LjI1NjE4ODggNC41NTc0MDYxIDcuMjUgNC41NjI1IEMgNy4yMzg1NDc5IDQuNTcxOTQzNCA3LjIzMDE4MDYgNC41ODQyODE2IDcuMjE4NzUgNC41OTM3NSBDIDcuMTA0NzM1MiA0LjY4ODAxNTkgNi45ODY4NTA3IDQuNzc4MjY4NyA2Ljg3NSA0Ljg3NSBDIDYuNTE1NzAyMSA1LjE4NjQyNjQgNi4xNzk3OTA5IDUuNTA3NzA5MSA1Ljg0Mzc1IDUuODQzNzUgQyA1LjQwNDQwMjUgNi4yODE4MDc4IDQuOTkwNzQ0OSA2Ljc0MTM1NTQgNC41OTM3NSA3LjIxODc1IEMgNC41NzkwMDg2IDcuMjM2NTQ2MiA0LjU3NzE4MDYgNy4yNjM0MDE1IDQuNTYyNSA3LjI4MTI1IEMgMy43Njc0ODk4IDguMjQzOTE4MSAzLjA0MjI3MjEgOS4yNzE4NzA1IDIuNDM3NSAxMC4zNzUgQyAyLjQyNjIyMzIgMTAuMzk1NjM1IDIuNDE3NDU2MSAxMC40MTY4MiAyLjQwNjI1IDEwLjQzNzUgQyAyLjEwODM5MDggMTAuOTg1MzQ4IDEuODQwMjIzMyAxMS41NDcyMTQgMS41OTM3NSAxMi4xMjUgQyAxLjU3NTU4NjUgMTIuMTY3NjY1IDEuNTQ5MTI1NSAxMi4yMDcxODIgMS41MzEyNSAxMi4yNSBDIDEuMjg3NzEzMSAxMi44MzI0MzMgMS4wOTQ2NzU0IDEzLjQyMTgyMiAwLjkwNjI1IDE0LjAzMTI1IEMgMC43Mjk2MzAxNCAxNC42MDI0OTUgMC41NjMwOTYzNCAxNS4xODg4MjggMC40Mzc1IDE1Ljc4MTI1IEMgMC4xNDY5MTQwNCAxNy4xNDI1NzggLTQuMzkwNjEzM2UtMTggMTguNTQ5NDY2IDAgMjAgTCAwIDIzMCBDIDAgMjQxLjA4IDguOTIgMjUwIDIwIDI1MCBMIDIzMCAyNTAgQyAyMzEuNDQwMDYgMjUwIDIzMi44MzUyNSAyNDkuODQ5MDEgMjM0LjE4NzUgMjQ5LjU2MjUgQyAyMzQuNzg5MDMgMjQ5LjQzNDk3IDIzNS4zODg2NiAyNDkuMjczODEgMjM1Ljk2ODc1IDI0OS4wOTM3NSBDIDIzNi40NDQ3NiAyNDguOTQ2IDIzNi45MTUwNSAyNDguNzc1MjYgMjM3LjM3NSAyNDguNTkzNzUgQyAyMzcuNjcxMjMgMjQ4LjQ3NjkzIDIzNy45NjA5NyAyNDguMzQ5MDggMjM4LjI1IDI0OC4yMTg3NSBDIDIzOC4yNzk4MSAyNDguMjA1MzEgMjM4LjMxNDAyIDI0OC4yMDEwOSAyMzguMzQzNzUgMjQ4LjE4NzUgQyAyMzguNzU4MzYgMjQ3Ljk5ODMgMjM5LjE2Mzc0IDI0Ny44MDk4MSAyMzkuNTYyNSAyNDcuNTkzNzUgQyAyMzkuNTgzMTggMjQ3LjU4MjU0IDIzOS42MDQzNiAyNDcuNTczNzggMjM5LjYyNSAyNDcuNTYyNSBDIDI0MC4xNjkyNSAyNDcuMjY1MTIgMjQwLjY3NTU4IDI0Ni45Mzg3MyAyNDEuMTg3NSAyNDYuNTkzNzUgQyAyNDEuNjY4NzggMjQ2LjI2OTQxIDI0Mi4xNDM1OSAyNDUuOTI2MzkgMjQyLjU5Mzc1IDI0NS41NjI1IEMgMjQyLjY0NDc0IDI0NS41MjEyOCAyNDIuNjk5NDMgMjQ1LjQ3OTIxIDI0Mi43NSAyNDUuNDM3NSBDIDI0Mi44NzY1MSAyNDUuMzMzMTggMjQzLjAwMTE1IDI0NS4yMzIzNSAyNDMuMTI1IDI0NS4xMjUgQyAyNDMuNDgyNjUgMjQ0LjgxNTM4IDI0My44MjE1NSAyNDQuNDkwMTkgMjQ0LjE1NjI1IDI0NC4xNTYyNSBDIDI0NC40OTIyOSAyNDMuODIwMjEgMjQ0LjgxMzU3IDI0My40ODQzIDI0NS4xMjUgMjQzLjEyNSBDIDI0NS4yMzE2NyAyNDMuMDAyMzQgMjQ1LjMzMzgxIDI0Mi44NzUyNyAyNDUuNDM3NSAyNDIuNzUgQyAyNDUuNDQyNzYgMjQyLjc0MzYyIDI0NS40MzIyNSAyNDIuNzI1MTMgMjQ1LjQzNzUgMjQyLjcxODc1IEMgMjQ1Ljg0MjQ5IDI0Mi4yMjgzIDI0Ni4yMzY0IDI0MS43MTU3NiAyNDYuNTkzNzUgMjQxLjE4NzUgQyAyNDYuOTM4MTIgMjQwLjY3ODQzIDI0Ny4yNjUzNiAyNDAuMTY2MjIgMjQ3LjU2MjUgMjM5LjYyNSBDIDI0Ny41NzM2MyAyMzkuNjA0NzIgMjQ3LjU4MjY4IDIzOS41ODI4MiAyNDcuNTkzNzUgMjM5LjU2MjUgQyAyNDcuODkxOTcgMjM5LjAxNDggMjQ4LjE1OTMxIDIzOC40NTIzOSAyNDguNDA2MjUgMjM3Ljg3NSBDIDI0OC40MTU1NCAyMzcuODUzMjggMjQ4LjQyODI5IDIzNy44MzQyNiAyNDguNDM3NSAyMzcuODEyNSBDIDI0OC40NDY0NCAyMzcuNzkxMjkgMjQ4LjQ1OTg4IDIzNy43NzEyNSAyNDguNDY4NzUgMjM3Ljc1IEMgMjQ4LjcwOTkyIDIzNy4xNzQ3NiAyNDguOTA2MjggMjM2LjU3MDA4IDI0OS4wOTM3NSAyMzUuOTY4NzUgQyAyNDkuMjczNzUgMjM1LjM5MTM3IDI0OS40MzQ2OCAyMzQuODE3NTQgMjQ5LjU2MjUgMjM0LjIxODc1IEMgMjQ5Ljg1MzA5IDIzMi44NTc0MiAyNTAgMjMxLjQ1MDUzIDI1MCAyMzAgTCAyNTAgMjAgQyAyNTAgOC45MiAyNDEuMDggLTMuMzUzNzk4N2UtMTcgMjMwIDAgTCAyMCAwIHogTSAzNC43ODEyNSAxOS40MDYyNSBMIDIyNS40Njg3NSAxOS40MDYyNSBDIDIyOC4zMDk0NiAxOS40MDYyNSAyMzAuNTkzNzUgMjEuNjkwNTQ0IDIzMC41OTM3NSAyNC41MzEyNSBMIDIzMC41OTM3NSAyMTUuMjUgTCAzNC43ODEyNSAxOS40MDYyNSB6IE0gMTkuNDA2MjUgMzQuNzUgTCAyMTUuMjE4NzUgMjMwLjU5Mzc1IEwgMjQuNTMxMjUgMjMwLjU5Mzc1IEMgMjEuNjkwNTQ0IDIzMC41OTM3NiAxOS40MDYyNSAyMjguMzA5NDYgMTkuNDA2MjUgMjI1LjQ2ODc1IEwgMTkuNDA2MjUgMzQuNzUgeiAiDQogICAgICAgaWQ9InBhdGgzMTk2IiAvPg0KICA8L2c+DQo8L3N2Zz4NCg==", b.UNICODE_LINE_SEP=String.fromCharCode(8232));return b.UNICODE_LINE_SEP};b.prototype.setThemeAndVariant=function(a,b){this.theme=a;this.themeVariant=b};b.prototype.getTheme=function(){null!=this.theme&&this.theme.setVariant(this.themeVariant);return this.theme};b.prototype.getQuickStyleVals=function(){return this.quickStyleVals};b.prototype.processGeomList=function(a){if(!this.geomListProcessed){this.geomList=new c.mxgraph.io.vsdx.mxVsdxGeometryList(a);if(null!=this.geom)for(a=0;a<this.geom.length;a++)this.geomList.addGeometry(this.geom[a]); this.geomListProcessed=!0}};b.prototype.parseShapeElem=function(a,d){f.prototype.parseShapeElem.call(this,a,d);var g=a.nodeName;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(g,"ForeignData")){var p=a.ownerDocument.vsdxFileName,h=a.getAttribute("ForeignType"),g=a.getAttribute("CompressionType")||"";if(function(a,b){return a&&a.equals?a.equals(b):a===b}(h,"Bitmap"))g=g.toLowerCase();else if(function(a,b){return a&&a.equals?a.equals(b):a===b}(h,"MetaFile"))g="x-wmf";else if(function(a,b){return a&& a.equals?a.equals(b):a===b}(h,"Enhanced Metafile")||function(a,b){return a&&a.equals?a.equals(b):a===b}(h,"EnhMetaFile"))g="x-emf";else return;h=a.firstChild;if(null!=h){if(null!=h&&1==h.nodeType){var l=h;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(l.nodeName.toLowerCase(),"rel")&&(l=l.getAttribute("r:id"),null!=l&&0!==l.length)){var h=p.lastIndexOf("/"),m="",q="";try{m=p.substring(0,h),q=p.substring(h,p.length)}catch(z){return}h=d.getRelationship(l,m+"/_rels"+q+".rels");if(null!=h){p= h.getAttribute("Target")||"";l=h.getAttribute("Type");h=p.lastIndexOf("/");try{p=p.substring(h+1,p.length)}catch(z){return}null!=l&&function(a,b){var d=a.length-b.length,c=a.indexOf(b,d);return-1!==c&&c===d}(l,"image")&&(this.imageData={},(h=d.getMedia(c.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/media/"+p))?(this.imageData.iData=h,function(a,b){var d=a.length-b.length,c=a.indexOf(b,d);return-1!==c&&c===d}(p.toLowerCase(),".bmp")?g="jpg":function(a,b){var d=a.length-b.length,c=a.indexOf(b,d);return-1!== c&&c===d}(p.toLowerCase(),".emf")&&(g=function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(h,"iVBORw0K")?"png":function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(h,"/9j/")?"jpg":g),this.imageData.iType=g):(this.imageData.iData=b.ERROR_IMAGE,this.imageData.iType="svg+xml"))}return}}h=h.nextSibling}}else(function(a,b){return a&&a.equals?a.equals(b):a===b})(g,c.mxgraph.io.vsdx.mxVsdxConstants.TEXT)&&(this.text=a)};b.prototype.parseSection=function(a){var d=a.getAttribute("N"); if(function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"Geometry"))null==this.geom&&(this.geom=[]),0<this.geom.push(a);else if(function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"Field")){a=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a,"Row");for(var g=0;g<a.length;g++){var d=a[g],p=d.getAttribute("IX")||"";if(0!==p.length)if(null==this.fields&&(this.fields={}),function(a,b){return a&&a.equals?a.equals(b):a===b}("1",d.getAttribute("Del")))this.fields[p]="";else{for(var h=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(d, "Cell"),l="",m="",q=0;q<h.length;q++){var z=h[q],d=z.getAttribute("N"),z=z.getAttribute("V");switch(d){case "Value":l=z;break;case "Format":m=z}}if(0!==l.length){try{(function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b})(m,"{{")&&(l=(new Date(b.VSDX_START_TIME+Math.floor(864E5*parseFloat(l)))).toString())}catch(aa){}this.fields[p]=l}}}}else f.prototype.parseSection.call(this,a)};b.prototype.parseGeom=function(){return this.hasGeomList()?this.geomList.getShapeXML(this):""};b.prototype.getText= function(){return null!=this.text?this.text.textContent:null};b.prototype.getTextChildren=function(){return null!=this.text?this.text.childNodes:null};b.prototype.getWidth=function(){return 0===this.width&&0<this.height?1:this.width};b.prototype.getHeight=function(){return 0===this.height&&0<this.width?1:this.height};b.prototype.getRotation=function(){return this.rotation};b.prototype.getStyleMap=function(){return this.styleMap};b.prototype.hasGeom=function(){return!(null==this.geom||0==this.geom.length)}; b.prototype.hasGeomList=function(){return null!=this.geomList&&this.geomList.hasGeom()};b.prototype.textToList=function(a,b){if(!function(a,b){return a&&a.equals?a.equals(b):a===b}(b,"")){var d=this.getBullet(b);if(!function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"0")){var f=a.split("\n");f[f.length-1]||f.pop();for(var h="",l=0;l<f.length;l++)h+=c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(f[l],"li");h=c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(h,"ul");f={};(function(a,b){return a&&a.equals? a.equals(b):a===b})(d,"4")?f["list-style-type"]="square":f["list-style-type"]="disc";return h=this.insertAttributes(h,f)}}return a};b.prototype.getTextParagraphFormated=function(a){var b="",c={};c.align=this.getHorizontalAlign(this.pp,!0);c["margin-left"]=this.getIndentLeft(this.pp);c["margin-right"]=this.getIndentRight(this.pp);c["margin-top"]=this.getSpBefore(this.pp)+"px";c["margin-bottom"]=this.getSpAfter(this.pp)+"px";c["text-indent"]=this.getIndentFirst(this.pp);c.valign=this.getAlignVertical(); c.direction=this.getTextDirection(this.pp);return b+=this.insertAttributes(a,c)};b.prototype.getTextCharFormated=function(a){var b="color:"+this.getTextColor(this.cp)+";",g="font-size:"+parseFloat(this.getTextSize(this.cp))+"px;",f="font-family:"+this.getTextFont(this.cp)+";",h="direction:"+this.getRtlText(this.cp)+";",l="letter-spacing:"+parseFloat(this.getLetterSpace(this.cp))/.71+"px;",m="line-height:"+this.getSpcLine(this.pp),q=";opacity:"+this.getTextOpacity(this.cp),z=this.getTextPos(this.cp), w=this.getTextCase(this.cp);(function(a,b){return a&&a.equals?a.equals(b):a===b})(w,"1")?a=a.toUpperCase():function(a,b){return a&&a.equals?a.equals(b):a===b}(w,"2")&&(a=c.mxgraph.io.vsdx.mxVsdxUtils.toInitialCapital(a));(function(a,b){return a&&a.equals?a.equals(b):a===b})(z,"1")?a=c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sup"):function(a,b){return a&&a.equals?a.equals(b):a===b}(z,"2")&&(a=c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sub"));a=this.isBold(this.cp)?c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a, "b"):a;a=this.isItalic(this.cp)?c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"i"):a;a=this.isUnderline(this.cp)?c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"u"):a;a=this.getTextStrike(this.cp)?c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"s"):a;a=this.isSmallCaps(this.cp)?c.mxgraph.io.vsdx.mxVsdxUtils.toSmallCaps(a,this.getTextSize(this.cp)):a;return""+('<font style="'+g+f+b+h+l+m+q+'">'+a+"</font>")};b.prototype.getTextDirection=function(a){a=this.getFlags(a);(function(a,b){return a&&a.equals? a.equals(b):a===b})(a,"0")?a="ltr":function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"1")&&(a="rtl");return a};b.prototype.getSpcLine=function(a){var b=!1;a=this.getSpLine(a);0<a?a*=c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():(a=0===a?100:100*Math.abs(a),b=!0);return(new String(a)).toString()+(b?"%":"px")};b.prototype.getSpcBefore=function(a){return this.getSpBefore(a)};b.prototype.insertAttributes=function(a,b){if(-1!=a.indexOf(">")){var d=a.indexOf(">"),f=a.substring(d),d=a.substring(0, d),h=' style="'+c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(b,":")+'"';return d+h+f}return a};b.prototype.getRtlText=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.RTL_TEXT,a,c.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);a=this.getValue(a,"ltr");(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"0")?a="ltr":function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"1")&&(a="rtl");return a};b.prototype.isBold=function(a){var b= !1;a=this.getTextStyle(a);(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a.toLowerCase(),"themed")||(b=1===(parseInt(a)&1));return b};b.prototype.isItalic=function(a){var b=!1;a=this.getTextStyle(a);(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a.toLowerCase(),"themed")||(b=2===(parseInt(a)&2));return b};b.prototype.isUnderline=function(a){var b=!1;a=this.getTextStyle(a); (function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a.toLowerCase(),"themed")||(b=4===(parseInt(a)&4));return b};b.prototype.isSmallCaps=function(a){var b=!1;a=this.getTextStyle(a);(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a.toLowerCase(),"themed")||(b=8===(parseInt(a)&8));return b};b.prototype.getTextOpacity=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.COLOR_TRANS, a,c.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);a=this.getValue(a,"0");var b="1";null!=a&&0!==a.length&&(a=1-parseFloat(a),b=(new String(a)).toString());return b};b.prototype.getTextSize=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.SIZE,a,c.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);a=this.getScreenNumericalValue$org_w3c_dom_Element$double(a,12);return""+Math.floor(Math.round(100*a)/100)};b.prototype.getAlignVertical=function(){var a= mxConstants.ALIGN_MIDDLE,b=parseInt(this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.VERTICAL_ALIGN),"1"));0===b?a=mxConstants.ALIGN_TOP:2===b&&(a=mxConstants.ALIGN_BOTTOM);return a};b.prototype.getGeomList=function(){return this.geomList};b.prototype.getLastX=function(){return this.lastX};b.prototype.getLastY=function(){return this.lastY};b.prototype.getLastMoveX=function(){return this.lastMoveX};b.prototype.getLastMoveY=function(){return this.lastMoveY};b.prototype.getLastKnot= function(){return this.lastKnot};b.prototype.setLastX=function(a){this.lastX=a};b.prototype.setLastY=function(a){this.lastY=a};b.prototype.setLastMoveX=function(a){this.lastMoveX=a};b.prototype.setLastMoveY=function(a){this.lastMoveY=a};b.prototype.setLastKnot=function(a){this.lastKnot=a};return b}(c.mxgraph.io.vsdx.Style);h.VSDX_START_TIME=-22091688E5;l.Shape=h;h.__class="com.mxgraph.io.vsdx.Shape"})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){(function(l){var h=function(f){function b(a,b,g,p,h,l){var d=this;d.masterShape=null;d.master=null;d.parentHeight=0;d=f.call(this,b,l)||this;d.htmlLabels=!0;d.rootShape=d;d.shapeName=null;d.shapeIndex=0;d.vertex=!0;d.childShapes={};var q=d.getMasterId(),m=d.getShapeMasterId();d.master=null!=q?p[q]?p[q]:null:h;null!=d.master&&(d.masterShape=null==q&&null!=m?d.master.getSubShape(m):d.master.getMasterShape());p=d.getNameU();h=p.lastIndexOf(".");-1!==h&&(p=p.substring(0, h));d.shapeName=p;b=b.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.SHAPES);null!=b&&0<b.length&&(b=b.item(0),d.childShapes=a.parseShapes(b,d.master,!1));b=d.calcRotation();d.rotation=100*b/100;d.rotation%=360;b=a.getCellIntValue("ThemeIndex",-100);-100===b&&(b=parseInt(d.getValue(d.getCellElement$java_lang_String("ThemeIndex"),"0")));l=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key=== b)return a.entries[d].value;return null}(l.getThemes(),b);a=a.getCellIntValue("VariationColorIndex",0);d.setThemeAndVariant(l,a);b=function(a){null==a.entries&&(a.entries=[]);return a.entries}(d.childShapes);for(p=0;p<b.length;p++)h=b[p].getValue(),h.setRootShape(d),null==h.theme&&h.setThemeAndVariant(l,a);d.quickStyleVals=new c.mxgraph.io.vsdx.theme.QuickStyleVals(parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleEffectsMatrix"),"0")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleFillColor"), "1")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleFillMatrix"),"0")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleFontColor"),"1")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleFontMatrix"),"0")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleLineColor"),"1")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleLineMatrix"),"0")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleShadowColor"), "1")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleType"),"0")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleVariation"),"0")));null!=d.masterShape?(d.masterShape.processGeomList(null),d.processGeomList(d.masterShape.getGeomList()),0===d.width&&(d.width=d.getScreenNumericalValue$org_w3c_dom_Element$double(d.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0)),0===d.height&&(d.height=d.getScreenNumericalValue$org_w3c_dom_Element$double(d.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT), 0))):d.processGeomList(null);d.vertex=g||null!=d.childShapes&&!function(a){null==a.entries&&(a.entries=[]);return 0==a.entries.length}(d.childShapes)||null!=d.geomList&&(!d.geomList.isNoFill()||1<d.geomList.getGeoCount());return d}__extends(b,f);b.__static_initialize=function(){b.__static_initialized||(b.__static_initialized=!0,b.__static_initializer_0())};b.OFFSET_ARRAY_$LI$=function(){b.__static_initialize();null==b.OFFSET_ARRAY&&(b.OFFSET_ARRAY=["Organizational unit","Domain 3D"].slice(0).slice(0)); return b.OFFSET_ARRAY};b.arrowSizes_$LI$=function(){b.__static_initialize();null==b.arrowSizes&&(b.arrowSizes=[2,3,5,7,9,22,45]);return b.arrowSizes};b.arrowTypes_$LI$=function(){b.__static_initialize();return b.arrowTypes};b.__static_initializer_0=function(){b.arrowTypes={};(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c, getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),0,mxConstants.NONE);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),1,mxConstants.ARROW_OPEN);(function(a,b,c){null==a.entries&& (a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),2,"blockThin");(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b, value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),3,mxConstants.ARROW_OPEN);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),4,mxConstants.ARROW_BLOCK);(function(a,b,c){null== a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),5,mxConstants.ARROW_CLASSIC);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value= c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),10,mxConstants.ARROW_OVAL);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),13,mxConstants.ARROW_BLOCK); (function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),14,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_BLOCK);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)|| a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),17,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_CLASSIC);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(), 20,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_OVAL);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),22,b.ARROW_NO_FILL_MARKER+"diamond");(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!= a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),23,"dash");(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key}, getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),24,"ERone");(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),25,"ERmandOne");(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!= a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),27,"ERmany");(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key}, getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),28,"ERoneToMany");(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),29,"ERzeroToMany");(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!= a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),30,"ERzeroToOne");(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key}, getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),6,mxConstants.ARROW_BLOCK);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),7,mxConstants.ARROW_OPEN);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d< a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),8,mxConstants.ARROW_CLASSIC);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b, value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),9,"openAsync");(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),11,"diamond");(function(a,b,c){null==a.entries&&(a.entries= []);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),12,mxConstants.ARROW_OPEN);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b, value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),15,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_BLOCK);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),16,b.ARROW_NO_FILL_MARKER+ mxConstants.ARROW_BLOCK);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),18,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_BLOCK);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&& a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),19,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_CLASSIC);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key}, getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),21,b.ARROW_NO_FILL_MARKER+"diamond");(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),26,"ERmandOne");(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d< a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),31,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_OVAL);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b, value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),32,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_OVAL);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),33,b.ARROW_NO_FILL_MARKER+ mxConstants.ARROW_OVAL);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),34,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_OVAL);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&& a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),35,mxConstants.ARROW_OVAL);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(), 36,mxConstants.ARROW_OVAL);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),37,mxConstants.ARROW_OVAL);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)|| a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),38,mxConstants.ARROW_OVAL);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(), 39,mxConstants.ARROW_BLOCK);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),40,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_BLOCK);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&& a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),41,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_OVAL);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key}, getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),42,mxConstants.ARROW_OVAL);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),43,mxConstants.ARROW_OPEN);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d< a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),44,mxConstants.ARROW_OPEN);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b, value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),45,mxConstants.ARROW_OPEN)};b.__com_mxgraph_io_vsdx_VsdxShape_LOGGER_$LI$=function(){b.__static_initialize();null==b.__com_mxgraph_io_vsdx_VsdxShape_LOGGER&&(b.__com_mxgraph_io_vsdx_VsdxShape_LOGGER={});return b.__com_mxgraph_io_vsdx_VsdxShape_LOGGER};b.prototype.getShapeNode=function(a){var b;b=this.cellElements;b=b[a]?b[a]:null;return null==b&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String(a): b};b.prototype.getTextLabel=function(){var a;a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.HIDE_TEXT),"0");a="1".equals?"1".equals(a):"1"===a;if(a)return null;a=this.getTextChildren();null==a&&null!=this.masterShape&&(a=this.masterShape.getTextChildren());if(this.htmlLabels){if(null!=a)return this.styleMap[mxConstants.STYLE_VERTICAL_ALIGN]=this.getAlignVertical(),this.styleMap[mxConstants.STYLE_ALIGN]=this.getHorizontalAlign("0",!1),this.getHtmlTextContent(a)}else return a= this.getText(),null==a&&null!=this.masterShape?this.masterShape.getText():a;return null};b.prototype.getIndex=function(a){a=a.getAttribute("IX")||"";return 0===a.length?"0":a};b.prototype.initLabels=function(a){this.paragraphs={};for(var b=null,f=null,h=null,l=0;l<a.length;l++){var m;m=a.item(l);switch(m.nodeName){case "cp":b=this.getIndex(m);break;case "tp":this.getIndex(m);break;case "pp":f=this.getIndex(m);break;case "fld":h=this.getIndex(m);break;case "#text":m=m.textContent;var y;y=this.paragraphs; y=y[f]?y[f]:null;null==y?(y=new c.mxgraph.io.vsdx.Paragraph(m,b,f,h),this.paragraphs[f]=y):y.addText(m,b,h)}}};b.prototype.createHybridLabel=function(a){var b=function(a,b){return a[b]?a[b]:null}(this.paragraphs,a);this.styleMap[mxConstants.STYLE_ALIGN]=this.getHorizontalAlign(a,!1);this.styleMap[mxConstants.STYLE_SPACING_LEFT]=this.getIndentLeft(a);this.styleMap[mxConstants.STYLE_SPACING_RIGHT]=this.getIndentRight(a);this.styleMap[mxConstants.STYLE_SPACING_TOP]=this.getSpBefore(a);this.styleMap[mxConstants.STYLE_SPACING_BOTTOM]= this.getSpAfter(a);this.styleMap[mxConstants.STYLE_VERTICAL_ALIGN]=this.getAlignVertical();this.styleMap.fontColor=this.getTextColor(a);this.styleMap.fontSize=this.getTextSize(a);this.styleMap.fontFamily=this.getTextFont(a);var c=this.isBold(a)?mxConstants.FONT_BOLD:0,c=c|(this.isItalic(a)?mxConstants.FONT_ITALIC:0),c=c|(this.isUnderline(a)?mxConstants.FONT_UNDERLINE:0);this.styleMap.fontStyle=(new String(c)).toString();a=b.numValues();for(var c=null,f=0;f<a;f++){var h=b.getValue(f);if(0===h.length&& null!=this.fields){var l=b.getField(f);null!=l&&(h=function(a,b){return a[b]?a[b]:null}(this.fields,l),null==h&&null!=this.masterShape&&null!=this.masterShape.fields&&(h=function(a,b){return a[b]?a[b]:null}(this.masterShape.fields,l)))}null!=h&&(c=null==c?h:c+h)}return c};b.prototype.getHtmlTextContent=function(a){var b="",f=!0;if(null!=a&&0<a.length)for(var h=0;h<a.length;h++){var l=a.item(h);(function(a,b){return a&&a.equals?a.equals(b):a===b})(l.nodeName,"cp")?this.cp=this.getIndex(l):function(a, b){return a&&a.equals?a.equals(b):a===b}(l.nodeName,"tp")?this.tp=this.getIndex(l):function(a,b){return a&&a.equals?a.equals(b):a===b}(l.nodeName,"pp")?(this.pp=this.getIndex(l),f?f=!1:b+="</p>",b+=this.getTextParagraphFormated("<p>")):function(a,b){return a&&a.equals?a.equals(b):a===b}(l.nodeName,"fld")?(this.fld=this.getIndex(l),l=null,null!=this.fields&&(l=function(a,b){return a[b]?a[b]:null}(this.fields,this.fld)),null==l&&null!=this.masterShape&&null!=this.masterShape.fields&&(l=function(a,b){return a[b]? a[b]:null}(this.masterShape.fields,this.fld)),null!=l&&(b+=this.processLblTxt(l))):function(a,b){return a&&a.equals?a.equals(b):a===b}(l.nodeName,"#text")&&(l=l.textContent,b+=this.processLblTxt(l))}b+=f?"":"</p>";c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(b,"div");return b};b.prototype.processLblTxt=function(a){a=c.mxgraph.io.vsdx.mxVsdxUtils.htmlEntities(a);a=this.textToList(a,this.pp);a=a.replace(RegExp("\n","g"),"<br/>").replace(new RegExp(c.mxgraph.io.vsdx.Shape.UNICODE_LINE_SEP_$LI$(),"g"), "<br/>");return this.getTextCharFormated(a)};b.prototype.isConnectorBigNameU=function(a){return function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"60 degree single")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"45 degree single")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"45 degree double")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"60 degree double")||function(a,b,c){void 0===c&&(c=0);return a.substr(c, b.length)===b}(a,"45 degree tail")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"60 degree tail")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"45 degree tail")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"60 degree tail")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"Flexi-arrow 2")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"Flexi-arrow 1")||function(a,b,c){void 0=== c&&(c=0);return a.substr(c,b.length)===b}(a,"Flexi-arrow 3")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"Double flexi-arrow")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"Fancy arrow")};b.prototype.isVertex=function(){return this.vertex};b.prototype.getOriginPoint=function(a,b){var d=this.getPinX(),f=this.getPinY(),h=this.getLocPinY(),l=this.getLocPinX(),m=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.WIDTH), 0),q=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),0),d=d-l,f=a-(f+(q-h));return!b||h===q/2&&l===m/2||0===this.rotation?new mxPoint(d,f):(l=m/2-l,h-=q/2,q=Math.cos((360-this.rotation)*Math.PI/180),m=Math.sin((360-this.rotation)*Math.PI/180),new mxPoint(d+l-(l*q-h*m),l*m+h*q+f-h))};b.prototype.getDimensions=function(){var a=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.WIDTH), 0),b=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),0);return new mxPoint(0===a&&0<b?1:a,0===b&&0<a?1:b)};b.prototype.getPinX=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.PIN_X),0)};b.prototype.getPinY=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.PIN_Y),0)};b.prototype.getLocPinX= function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.LOC_PIN_X),0)};b.prototype.getLocPinY=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.LOC_PIN_Y),0)};b.prototype.getOpacity=function(a){this.isGroup();a=this.getValueAsDouble(this.getCellElement$java_lang_String(a),0);a=Math.max(100-100*a,0);return a=Math.min(a,100)};b.prototype.getGradient=function(){if(function(a, b){return a&&a.equals?a.equals(b):a===b}("1",this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.FILL_GRADIENT_ENABLED),"0"))){var a=function(a,b){return a[b]?a[b]:null}(this.sections,"FillGradient");if(null!=a){var b=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a.elem,"Row"),a=this.getColor(a.getIndexedCell(b[b.length-1].getAttribute("IX"),"GradientStopColor"));if(null!=a&&0!==a.length)return a}}a="";b=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.FILL_PATTERN), "0");25<=parseInt(b)?a=this.getColor(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.FILL_BKGND)):(b=this.getTheme(),null!=b&&(b=b.getFillGraientColor(this.getQuickStyleVals()),null!=b&&(a=b.toHexStr())));return a};b.prototype.getGradientDirection=function(){var a="",b=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.FILL_PATTERN),"0");(function(a,b){return a&&a.equals?a.equals(b):a===b})(b,"25")?a=mxConstants.DIRECTION_EAST:function(a,b){return a&& a.equals?a.equals(b):a===b}(b,"27")?a=mxConstants.DIRECTION_WEST:function(a,b){return a&&a.equals?a.equals(b):a===b}(b,"28")?a=mxConstants.DIRECTION_SOUTH:function(a,b){return a&&a.equals?a.equals(b):a===b}(b,"30")&&(a=mxConstants.DIRECTION_NORTH);return a};b.prototype.calcRotation=function(){var a=parseFloat(this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.ANGLE),"0")),a=180*a/Math.PI;return 360-a%360*100/100};b.prototype.propagateRotation=function(a){this.rotation+= a;this.rotation%=360;this.rotation=100*this.rotation/100};b.prototype.getTopSpacing=function(){return 100*(this.getTextTopMargin()/2-2.8)/100};b.prototype.getBottomSpacing=function(){return 100*(this.getTextBottomMargin()/2-2.8)/100};b.prototype.getLeftSpacing=function(){return 100*(this.getTextLeftMargin()/2-2.8)/100};b.prototype.getRightSpacing=function(){return 100*(this.getTextRightMargin()/2-2.8)/100};b.prototype.getLabelRotation=function(){var a=!0,b=this.calcRotation(),f=parseFloat(this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE), "0")),f=180*f/Math.PI,f=f-b;45>Math.abs(f)||270<Math.abs(f)||(a=!1);return a};b.prototype.getStyleFromShape=function(){this.styleMap[c.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID]=this.getId().toString();this.rotation=Math.round(this.rotation);0!==this.rotation&&(this.styleMap[mxConstants.STYLE_ROTATION]=""+this.rotation);var a=this.getFillColor();(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"")?this.styleMap[mxConstants.STYLE_FILLCOLOR]="none":this.styleMap[mxConstants.STYLE_FILLCOLOR]=a; var b=this.getId();this.styleDebug("ID = "+b+" , Fill Color = "+a);a=this.getGradient();(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"")?this.styleMap[mxConstants.STYLE_GRADIENTCOLOR]="none":(this.styleMap[mxConstants.STYLE_GRADIENTCOLOR]=a,a=this.getGradientDirection(),function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,mxConstants.DIRECTION_SOUTH)||(this.styleMap[mxConstants.STYLE_GRADIENT_DIRECTION]=a));a=this.getOpacity(c.mxgraph.io.vsdx.mxVsdxConstants.FILL_FOREGND_TRANS); 100>a&&(this.styleMap[mxConstants.STYLE_FILL_OPACITY]=""+a);a=this.getOpacity(c.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR_TRANS);100>a&&(this.styleMap[mxConstants.STYLE_STROKE_OPACITY]=""+a);a=this.getForm();a.hasOwnProperty(mxConstants.STYLE_SHAPE)&&function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(function(a,b){return a[b]?a[b]:null}(a,mxConstants.STYLE_SHAPE),"image;")&&(this.styleMap[mxConstants.STYLE_WHITE_SPACE]="wrap");for(var f in a)this.styleMap[f]=a[f];this.isDashed()&& (this.styleMap[mxConstants.STYLE_DASHED]="1",f=this.getDashPattern(),null!=f&&(this.styleMap[mxConstants.STYLE_DASH_PATTERN]=f));f=this.getStrokeColor();var h=this.getStrokeTransparency();this.styleDebug("ID = "+b+" , Color = "+f+" , stroke transparency = "+h);(function(a,b){return a&&a.equals?a.equals(b):a===b})(f,"")||1===h||(this.styleMap[mxConstants.STYLE_STROKECOLOR]=f);b=Math.round(this.getLineWidth())|0;1!==b&&(this.styleMap[mxConstants.STYLE_STROKEWIDTH]=""+b);this.isShadow()&&(this.styleMap[mxConstants.STYLE_SHADOW]= c.mxgraph.io.vsdx.mxVsdxConstants.TRUE);b=Math.round(this.getTopSpacing())|0;0!==b&&(this.styleMap[mxConstants.STYLE_SPACING_TOP]=""+b);b=Math.round(this.getBottomSpacing())|0;0!==b&&(this.styleMap[mxConstants.STYLE_SPACING_BOTTOM]=""+b);b=Math.round(this.getLeftSpacing())|0;0!==b&&(this.styleMap[mxConstants.STYLE_SPACING_LEFT]=""+b);b=Math.round(this.getRightSpacing())|0;0!==b&&(this.styleMap[mxConstants.STYLE_SPACING_RIGHT]=""+b);a=this.getDirection(a);a!==mxConstants.DIRECTION_EAST&&(this.styleMap[mxConstants.STYLE_DIRECTION]= a);a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.FLIP_X),"0");b=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.FLIP_Y),"0");(function(a,b){return a&&a.equals?a.equals(b):a===b})("1",a)&&(this.styleMap[mxConstants.STYLE_FLIPH]="1");(function(a,b){return a&&a.equals?a.equals(b):a===b})("1",b)&&(this.styleMap[mxConstants.STYLE_FLIPV]="1");this.resolveCommonStyles();return this.styleMap};b.prototype.getDashPattern=function(){var a= null,b=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN),"0");(b&&b.equals?b.equals("Themed"):"Themed"===b)?(b=this.getTheme(),null!=b&&(a=this.isVertex()?b.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):b.getConnLineDashPattern(this.getQuickStyleVals()))):a=l.Style.getLineDashPattern(parseInt(b));if(null!=a&&0!=a.length){for(var b="",f=0;f<a.length;f++)b=b.concat(a[f].toFixed(2)+" ");return b.trim()}return null}; b.prototype.isDashed=function(){var a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN),"0");if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Themed")){if(a=this.getTheme(),null!=a)return this.isVertex()?a.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):a.isConnLineDashed(this.getQuickStyleVals())}else if(!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")&&!function(a,b){return a&&a.equals?a.equals(b): a===b}(a,"1"))return!0;return!1};b.prototype.getLineWidth=function(){var a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.LINE_WEIGHT),"1"),b=1;try{var f;f=a&&a.equals?a.equals("Themed"):"Themed"===a;if(f){var h=this.getTheme();null!=h&&(b=(this.isVertex()?h.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):h.getConnLineWidth(this.getQuickStyleVals()))/1E4)}else b=parseFloat(a),b=this.getScreenNumericalValue$double(b)}catch(D){}1> b&&(b*=2);return b};b.prototype.getStartArrowSize=function(){var a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW_SIZE),"4");try{var d=4,f;f=a&&a.equals?a.equals("Themed"):"Themed"===a;if(f){var h=this.getTheme();null!=h&&(d=this.isVertex()?h.getStartSize(this.getQuickStyleVals()):h.getConnStartSize(this.getQuickStyleVals()))}else d=parseFloat(a);return b.arrowSizes_$LI$()[d]}catch(D){}return 4};b.prototype.getFinalArrowSize=function(){var a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW_SIZE), "4");try{var d=4,f;f=a&&a.equals?a.equals("Themed"):"Themed"===a;if(f){var h=this.getTheme();null!=h&&(d=this.isVertex()?h.getEndSize(this.getQuickStyleVals()):h.getConnEndSize(this.getQuickStyleVals()))}else d=parseFloat(a);return b.arrowSizes_$LI$()[d]}catch(D){}return 4};b.prototype.isRounded=function(){var a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.ROUNDING),"0"),b;b=a;b="Themed".equals?"Themed".equals(b):"Themed"===b;b&&(a="0");return 0<parseFloat(a)}; b.prototype.isShadow=function(){var a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.SHDW_PATTERN),"0");return function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Themed")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")?!1:!0};b.prototype.getEdgeStyle$java_util_Map=function(a){var b={};(function(a,b){return a&&a.equals?a.equals(b):a===b})(function(a,b){return a[b]?a[b]:null}(a,mxConstants.STYLE_SHAPE),"mxgraph.lean_mapping.electronic_info_flow_edge")? b[mxConstants.STYLE_EDGE]=mxConstants.NONE:b[mxConstants.STYLE_EDGE]=mxConstants.EDGESTYLE_ELBOW;return b};b.prototype.getEdgeStyle=function(a){if(null!=a&&a instanceof Object||null===a)return this.getEdgeStyle$java_util_Map(a);if(void 0===a)return this.getEdgeStyle$();throw Error("invalid overload");};b.prototype.getMasterId=function(){return this.shape.hasAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.MASTER)?this.shape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.MASTER):null};b.prototype.getShapeMasterId= function(){return this.shape.hasAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.MASTER_SHAPE)?this.shape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.MASTER_SHAPE):null};b.prototype.isGroup=function(){var a;a=(a=this.shape.getAttribute("Type"))&&a.equals?a.equals("Group"):"Group"===a;return a};b.getType=function(a){return a.getAttribute("Type")};b.prototype.getMaster=function(){return this.master};b.prototype.getNameU=function(){var a=this.shape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)|| "",b;(b=null==a)||(b=(b=a)&&b.equals?b.equals(""):""===b);b&&null!=this.masterShape&&(a=this.masterShape.getNameU());return a};b.prototype.getName=function(){var a=this.shape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.NAME),b;(b=null==a)||(b=(b=a)&&b.equals?b.equals(""):""===b);b&&null!=this.masterShape&&(a=this.masterShape.getName());return a};b.prototype.getMasterName=function(){return this.shapeName};b.prototype.setLabelOffset=function(a,b){var d="",f="";this.shape.hasAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)&& (d=this.shape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.NAME_U));null!=this.getMaster()&&null!=this.getMaster().getMasterElement()&&this.getMaster().getMasterElement().hasAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)&&(f=this.getMaster().getMasterElement().getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.NAME_U));if(function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(d,"Organizational unit")||function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(f,"Organizational unit")){var h= this.shape.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0),d=null,d="0.0",f=null,f="-0.4";null!=h&&(d=h.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),d=d.hasAttribute("F")?d.getAttribute("F"):d.textContent,f=h.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0),f=f.hasAttribute("F")?f.getAttribute("F"):f.textContent);h=a.getGeometry();d=d.split("Width/2+").join("");d=d.split("DL").join("");f=f.split("Height*").join("");(function(a,b){return a&& a.equals?a.equals(b):a===b})(d,"Inh")&&(d="0.0");(function(a,b){return a&&a.equals?a.equals(b):a===b})(f,"Inh")&&(f="-0.4");-1!=f.indexOf("txtHeight")&&(f="-0.4");for(var l=b.split(";"),m="",q=0;q<l.length;q++){var z=l[q],z=z.trim();(function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b})(z,"tabHeight=")&&(m=z.split("tabHeight=").join(""))}(function(a,b){return a&&a.equals?a.equals(b):a===b})(m,"")&&(m="20");l=parseFloat(m);d=parseFloat(d);f=parseFloat(f);m=h.height;d=.1*h.width+100*d; d=new mxPoint(d,m-m*f-l/2);a.getGeometry().offset=d}else if(function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(d,"Domain 3D")||function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(f,"Domain 3D")){h=this.shape.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0);d=null;d="0.0";f=null;f="-0.4";null!=h&&(d=h.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),d=d.getAttribute("F"),f=h.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0), f=f.getAttribute("F"));h=a.getGeometry();d=d.split("Width/2+").join("");d=d.split("DL").join("");f=f.split("Height*").join("");if(function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"Inh")||function(a,b){return a&&a.equals?a.equals(b):a===b}(d,""))d="0.0";if(function(a,b){return a&&a.equals?a.equals(b):a===b}(f,"Inh")||function(a,b){return a&&a.equals?a.equals(b):a===b}(f,""))f="-0.4";-1!=f.indexOf("txtHeight")&&(f="-0.4");d=parseFloat(d);f=parseFloat(f);m=h.height;d=.1*h.width+100*d;d=new mxPoint(d, m-m*f);a.getGeometry().offset=d}};b.prototype.getForm=function(){var a={};if(this.isVertex())try{var d=b.getType(this.getShape());this.styleDebug("shape type = "+d);if(null!=this.imageData||function(a,b){return a&&a.equals?a.equals(b):a===b}(c.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN,d)&&null!=this.masterShape&&null!=this.masterShape.imageData){var f=null!=this.imageData?this.imageData:this.masterShape.imageData;a.shape="image";a.aspect="fixed";var h=function(a,b){return a[b]?a[b]:null}(f,"iType"), l=function(a,b){return a[b]?a[b]:null}(f,"iData");a.image="data:image/"+h+","+l;return a}var m=this.parseGeom();if(function(a,b){return a&&a.equals?a.equals(b):a===b}(m,""))return this.styleDebug("No geom found"),a;var y=Graph.prototype.compress(m);a[mxConstants.STYLE_SHAPE]="stencil("+y+")"}catch(q){console.error(q.message,q)}else return this.getEdgeStyle();return a};b.prototype.isOff_page_reference=function(){var a=this.getNameU();return function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Off-page reference")|| function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Lined/Shaded process")?!0:!1};b.prototype.isExternal_process=function(){var a;a=(a=this.shapeName)&&a.equals?a.equals("External process"):"External process"===a;return a};b.prototype.getDirection=function(a){a=mxResources.get("mxOffset"+this.shapeName);if(null!=a&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"")){if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"1"))return mxConstants.DIRECTION_SOUTH; if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"2"))return mxConstants.DIRECTION_WEST;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"3"))return mxConstants.DIRECTION_NORTH}return mxConstants.DIRECTION_EAST};b.prototype.isSubproces=function(){var a;a=(a=this.shapeName)&&a.equals?a.equals("Subproces"):"Subproces"===a;return a};b.prototype.getEdgeStyle$=function(){return{edgeStyle:"none"}};b.prototype.getChildShapes=function(){return this.childShapes};b.prototype.setChildShapes= function(a){this.childShapes=a};b.prototype.isDisplacedLabel=function(){var a=this.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X,"F",""),b=this.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F",""),f=this.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH,"F",""),h=this.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT,"F","");if(null!=this.masterShape){if(""===a||function(a,b){return a&&a.equals?a.equals(b):a===b}(a.toLowerCase(),"inh"))a=this.masterShape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X, "F","");if(""===b||function(a,b){return a&&a.equals?a.equals(b):a===b}(b.toLowerCase(),"inh"))b=this.masterShape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F","");if(""===f||function(a,b){return a&&a.equals?a.equals(b):a===b}(f.toLowerCase(),"inh"))f=this.masterShape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH,"F","");if(""===h||function(a,b){return a&&a.equals?a.equals(b):a===b}(h.toLowerCase(),"inh"))h=this.masterShape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT, "F","")}return function(a,b){return a&&a.equals?a.equals(b):a===b}(a.toLowerCase(),"width*0.5")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(b.toLowerCase(),"height*0.5")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(f.toLowerCase(),"width*1")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(h.toLowerCase(),"height*1")||!(function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(a.toLowerCase(),"width*")&&function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)=== b}(b.toLowerCase(),"height*")&&function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(f.toLowerCase(),"width*")&&function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(h.toLowerCase(),"height*")||function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(a.toLowerCase(),"controls.row_")||function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(b.toLowerCase(),"controls.row_"))?!1:!0};b.prototype.isRotatedLabel=function(){var a=this.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE, "V","");null!=this.masterShape&&function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"")&&(a=this.masterShape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE,"V",""));return function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0.0")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"")?!1:!0};b.prototype.setRootShape=function(a){this.rootShape=a};b.prototype.getRootShape=function(){return this.rootShape};b.prototype.getStartXY= function(a){var b=Math.floor(Math.round(100*this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_X),0))/100);a=Math.floor(Math.round(100*(a-this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_Y),0)))/100);return new mxPoint(b,a)};b.prototype.getEndXY=function(a){var b=Math.floor(Math.round(100*this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.END_X), 0))/100);a=Math.floor(Math.round(100*(a-this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.END_Y),0)))/100);return new mxPoint(b,a)};b.prototype.getRoutingPoints=function(a,b,c){return null!=this.geomList?this.geomList.getRoutingPoints(a,b,c):null};b.prototype.getControlPoints=function(a){var b=this.getStartXY(a);a=this.getEndXY(a);var f=[];if(null!=this.shape){var h=this.shape.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.GEOM); if(0<h.length&&(h=h.item(0).getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.NURBS_TO).item(0).getElementsByTagName("E").item(0),null!=h)){for(var h=h.getAttribute("F"),h=h.replace(RegExp("NURBS\\(","g"),""),h=h.replace(RegExp("\\)","g"),""),h=h.replace(RegExp(",","g")," "),h=h.replace(RegExp("\\s\\s","g")," "),h=h.split(" "),l=h.length,m=[];0<l--;)m.push(0);for(l=0;l<h.length;l++)m[l]=parseFloat(h[l]);for(l=2;l+4<h.length;l+=4){var y=new mxPoint,q=m[l+3];y.x=Math.floor(Math.round(100*(b.x+ Math.min(100,Math.abs(a.x-b.x))*m[l+2]))/100);y.y=Math.floor(Math.round(100*(b.y-100*q))/100);0<f.push(y)}return f}}return null};b.prototype.getStyleFromEdgeShape=function(a){this.styleMap[c.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID]=this.getId().toString();a=this.getForm();if(null!=a&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,""))for(var d in a)this.styleMap[d]=a[d];this.isDashed()&&(this.styleMap[mxConstants.STYLE_DASHED]="1",d=this.getDashPattern(),null!=d&&(this.styleMap[mxConstants.STYLE_DASH_PATTERN]= d));d=this.getEdgeMarker(!0);null!=d&&(function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(d,b.ARROW_NO_FILL_MARKER)&&(d=d.substring(b.ARROW_NO_FILL_MARKER.length),this.styleMap[mxConstants.STYLE_STARTFILL]="0"),this.styleMap[mxConstants.STYLE_STARTARROW]=d);d=this.getEdgeMarker(!1);null!=d&&(function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(d,b.ARROW_NO_FILL_MARKER)&&(d=d.substring(b.ARROW_NO_FILL_MARKER.length),this.styleMap[mxConstants.STYLE_ENDFILL]="0"),this.styleMap[mxConstants.STYLE_ENDARROW]= d);d=Math.round(this.getStartArrowSize())|0;6!==d&&(this.styleMap[mxConstants.STYLE_STARTSIZE]=""+d);d=Math.round(this.getFinalArrowSize())|0;6!==d&&(this.styleMap[mxConstants.STYLE_ENDSIZE]=""+d);d=Math.round(this.getLineWidth())|0;1!==d&&(this.styleMap[mxConstants.STYLE_STROKEWIDTH]=""+d);d=this.getStrokeColor();(function(a,b){return a&&a.equals?a.equals(b):a===b})(d,"")||(this.styleMap[mxConstants.STYLE_STROKECOLOR]=d);this.isShadow()&&(this.styleMap[mxConstants.STYLE_SHADOW]=c.mxgraph.io.vsdx.mxVsdxConstants.TRUE); this.isConnectorBigNameU(this.getNameU())&&(this.styleMap[mxConstants.STYLE_SHAPE]=mxConstants.SHAPE_ARROW,d=this.getFillColor(),function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"")||(this.styleMap[mxConstants.STYLE_FILLCOLOR]=d));d=Math.round(this.getTopSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_TOP]=""+d;d=Math.round(this.getBottomSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_BOTTOM]=""+d;d=Math.round(this.getLeftSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_LEFT]=""+ d;d=Math.round(this.getRightSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_RIGHT]=""+d;d=this.getAlignVertical();this.styleMap[mxConstants.STYLE_VERTICAL_ALIGN]=d;this.styleMap.html="1";this.resolveCommonStyles();return this.styleMap};b.prototype.resolveCommonStyles=function(){var a=this.getTextBkgndColor(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.TEXT_BKGND)),b;b=a&&a.equals?a.equals(""):""===a;b||(this.styleMap[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR]=a);this.styleMap[mxConstants.STYLE_ROUNDED]= this.isRounded()?c.mxgraph.io.vsdx.mxVsdxConstants.TRUE:c.mxgraph.io.vsdx.mxVsdxConstants.FALSE;return this.styleMap};b.prototype.getEdgeMarker=function(a){var d=this.getValue(this.getCellElement$java_lang_String(a?c.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW:c.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW),"0"),f=0;try{if(function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"Themed")){var h=this.getTheme();null!=h&&(f=this.isVertex()?h.getEdgeMarker(a,this.getQuickStyleVals()):h.getConnEdgeMarker(a, this.getQuickStyleVals()))}else f=parseInt(d)}catch(D){}a=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(b.arrowTypes_$LI$(),f);0<f&&null==a&&(a=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(b.arrowTypes_$LI$(), 1));return a};b.prototype.getCellElement$java_lang_String=function(a){var b=f.prototype.getCellElement$java_lang_String.call(this,a);return null==b&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String(a):b};b.prototype.getCellElement$java_lang_String$java_lang_String$java_lang_String=function(a,b,c){var d=f.prototype.getCellElement$java_lang_String$java_lang_String$java_lang_String.call(this,a,b,c);return null==d&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String$java_lang_String$java_lang_String(a, b,c):d};b.prototype.getCellElement=function(a,b,c){if("string"!==typeof a&&null!==a||"string"!==typeof b&&null!==b||"string"!==typeof c&&null!==c){if("string"!==typeof a&&null!==a||void 0!==b||void 0!==c)throw Error("invalid overload");return this.getCellElement$java_lang_String(a)}return this.getCellElement$java_lang_String$java_lang_String$java_lang_String(a,b,c)};b.prototype.createLabelSubShape=function(a,b){var d=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH), this.getWidth()),f=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),this.getHeight()),h=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),d/2),l=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),f/2),m=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X), h),q=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),l),w=this.getValueAsDouble(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE),0),aa=this.getTextLabel();if(null!=aa&&0!==aa.length){var P=mxUtils.clone(this.getStyleMap())||{};P[mxConstants.STYLE_FILLCOLOR]=mxConstants.NONE;P[mxConstants.STYLE_STROKECOLOR]=mxConstants.NONE;P[mxConstants.STYLE_GRADIENTCOLOR]=mxConstants.NONE;P.hasOwnProperty("align")||(P.align="center"); P.hasOwnProperty("verticalAlign")||(P.verticalAlign="middle");P.hasOwnProperty("whiteSpace")||(P.whiteSpace="wrap");delete P.shape;delete P.image;var E=this.getRotation();0!==w&&(w=360-180*w/Math.PI,w=Math.round((w+E)%360*100)/100,0!==w&&(P.rotation=""+w));P="text;"+c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(P,"=");l=b.getGeometry().height-(q+f-l);h=m-h;0<E&&(m=new mxGeometry(h,l,d,f),h=b.getGeometry(),c.mxgraph.online.Utils.rotatedGeometry(m,E,h.width/2,h.height/2),h=m.x,l=m.y);return a.insertVertex(b, null,aa,Math.round(100*h)/100,Math.round(100*l)/100,Math.round(100*d)/100,Math.round(100*f)/100,P+";html=1;")}return null};b.prototype.getLblEdgeOffset=function(a,b){if(null!=b&&1<b.length){var d=new mxCellState;d.absolutePoints=b;a.updateEdgeBounds(d);var d=a.getPoint(d),f=b[0],h=b[b.length-1],l=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),this.getWidth()),m=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT), this.getHeight()),q=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),0),w=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),0),aa=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),0),P=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y), 0),h=(this.getHeight()-(f.y-h.y))/2+f.y-d.y-(P-w+m/2),d=aa-q+l/2+(f.x-d.x);return 1E11<Math.abs(d)?null:new mxPoint(Math.floor(Math.round(100*d)/100),Math.floor(Math.round(100*h)/100))}return null};b.prototype.getShapeIndex=function(){return this.shapeIndex};b.prototype.setShapeIndex=function(a){this.shapeIndex=a};return b}(c.mxgraph.io.vsdx.Shape);h.__static_initialized=!1;h.ARROW_NO_FILL_MARKER="0";h.maxDp=2;h.USE_SHAPE_MATCH=!1;h.stencilTemplate='<shape h="htemplate" w="wtemplate" aspect="variable" strokewidth="inherit"><connections></connections><background></background><foreground></foreground></shape>'; l.VsdxShape=h;h.__class="com.mxgraph.io.vsdx.VsdxShape"})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={})); (function(c){(function(m){(function(m){var l=function(){function h(){}h.__static_initialize=function(){h.__static_initialized||(h.__static_initialized=!0,h.__static_initializer_0())};h.CA_$LI$=function(){h.__static_initialize();null==h.CA&&(h.CA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""));return h.CA};h.IA_$LI$=function(){h.__static_initialize();if(null==h.IA){for(var c=256,b=[];0<c--;)b.push(0);h.IA=b}return h.IA};h.__static_initializer_0=function(){for(var c=h.IA_$LI$(), b=0;b<c.length;b++)c[b]=-1;c=0;for(b=h.CA_$LI$().length;c<b;c++)h.IA_$LI$()[h.CA_$LI$()[c].charCodeAt(0)]=c;h.IA_$LI$()[61]=0};h.encodeToChar=function(c,b,a){var d=null!=c?c.length-b:0;if(0===d)return[];for(var f=3*(d/3|0),l=((d-1)/3|0)+1<<2,l=l+(a?((l-1)/76|0)<<1:0),m=Array(l),w=b,y=0,q=0;w<f+b;){var z=(c[w++]&255)<<16|(c[w++]&255)<<8|c[w++]&255;m[y++]=h.CA_$LI$()[z>>>18&63];m[y++]=h.CA_$LI$()[z>>>12&63];m[y++]=h.CA_$LI$()[z>>>6&63];m[y++]=h.CA_$LI$()[z&63];a&&19===++q&&y<l-2&&(m[y++]="\r",m[y++]= "\n",q=0)}a=d-f;0<a&&(z=(c[f+b]&255)<<10|(2===a?(c[d+b-1]&255)<<2:0),m[l-4]=h.CA_$LI$()[z>>12],m[l-3]=h.CA_$LI$()[z>>>6&63],m[l-2]=2===a?h.CA_$LI$()[z&63]:"=",m[l-1]="=");return m};h.decode$char_A=function(c){var b=null!=c?c.length:0;if(0===b)return[];for(var a=0,d=0;d<b;d++)0>h.IA_$LI$()[c[d].charCodeAt(0)]&&a++;if(0!==(b-a)%4)return null;for(var f=0,d=b;1<d&&0>=h.IA_$LI$()[c[--d].charCodeAt(0)];)61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c[d])&&f++;for(var b=(6*(b-a)>>3)-f,a=function(a){for(var b= [];0<a--;)b.push(0);return b}(b),l=f=0;l<b;){for(var m=d=0;4>m;m++){var w=h.IA_$LI$()[c[f++].charCodeAt(0)];0<=w?d|=w<<18-6*m:m--}a[l++]=d>>16|0;l<b&&(a[l++]=d>>8|0,l<b&&(a[l++]=d|0))}return a};h.decode=function(f){if(null!=f&&f instanceof Array&&(0==f.length||null==f[0]||"string"===typeof f[0])||null===f)return c.mxgraph.online.mxBase64.decode$char_A(f);if(null!=f&&f instanceof Array&&(0==f.length||null==f[0]||"number"===typeof f[0])||null===f)return c.mxgraph.online.mxBase64.decode$byte_A(f);if("string"=== typeof f||null===f)return c.mxgraph.online.mxBase64.decode$java_lang_String(f);throw Error("invalid overload");};h.decodeFast$char_A=function(c){var b=c.length;if(0===b)return[];for(var a=0,d=b-1;a<d&&0>h.IA_$LI$()[c[a].charCodeAt(0)];)a++;for(;0<d&&0>h.IA_$LI$()[c[d].charCodeAt(0)];)d--;for(var f=61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c[d])?61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c[d-1])?2:1:0,l=d-a+1,m=76<b?(13==function(a){return null==a.charCodeAt?a: a.charCodeAt(0)}(c[76])?l/78|0:0)<<1:0,l=(6*(l-m)>>3)-f,b=function(a){for(var b=[];0<a--;)b.push(0);return b}(l),w=0,y=0,q=3*(l/3|0);w<q;){var z=h.IA_$LI$()[c[a++].charCodeAt(0)]<<18|h.IA_$LI$()[c[a++].charCodeAt(0)]<<12|h.IA_$LI$()[c[a++].charCodeAt(0)]<<6|h.IA_$LI$()[c[a++].charCodeAt(0)];b[w++]=z>>16|0;b[w++]=z>>8|0;b[w++]=z|0;0<m&&19===++y&&(a+=2,y=0)}if(w<l){for(m=z=0;a<=d-f;m++)z|=h.IA_$LI$()[c[a++].charCodeAt(0)]<<18-6*m;for(c=16;w<l;c-=8)b[w++]=z>>c|0}return b};h.decodeFast=function(f){if(null!= f&&f instanceof Array&&(0==f.length||null==f[0]||"string"===typeof f[0])||null===f)return c.mxgraph.online.mxBase64.decodeFast$char_A(f);if(null!=f&&f instanceof Array&&(0==f.length||null==f[0]||"number"===typeof f[0])||null===f)return c.mxgraph.online.mxBase64.decodeFast$byte_A(f);if("string"===typeof f||null===f)return c.mxgraph.online.mxBase64.decodeFast$java_lang_String(f);throw Error("invalid overload");};h.encodeToByte=function(c,b){var a=null!=c?c.length:0;if(0===a)return[];for(var d=3*(a/ 3|0),f=((a-1)/3|0)+1<<2,l=f+=b?((f-1)/76|0)<<1:0,m=[];0<l--;)m.push(0);for(var w=0,y=0,q=0;w<d;)l=(c[w++]&255)<<16|(c[w++]&255)<<8|c[w++]&255,m[y++]=h.CA_$LI$()[l>>>18&63].charCodeAt(0),m[y++]=h.CA_$LI$()[l>>>12&63].charCodeAt(0),m[y++]=h.CA_$LI$()[l>>>6&63].charCodeAt(0),m[y++]=h.CA_$LI$()[l&63].charCodeAt(0),b&&19===++q&&y<f-2&&(m[y++]=13,m[y++]=10,q=0);w=a-d;0<w&&(l=(c[d]&255)<<10|(2===w?(c[a-1]&255)<<2:0),m[f-4]=h.CA_$LI$()[l>>12].charCodeAt(0),m[f-3]=h.CA_$LI$()[l>>>6&63].charCodeAt(0),m[f-2]= 2===w?h.CA_$LI$()[l&63].charCodeAt(0):61,m[f-1]=61);return m};h.decode$byte_A=function(c){for(var b=c.length,a=0,d=0;d<b;d++)0>h.IA_$LI$()[c[d]&255]&&a++;if(0!==(b-a)%4)return null;for(var f=0,d=b;1<d&&0>=h.IA_$LI$()[c[--d]&255];)61==c[d]&&f++;d=b=(6*(b-a)>>3)-f;for(a=[];0<d--;)a.push(0);for(var l=f=0;l<b;){for(var m=d=0;4>m;m++){var w=h.IA_$LI$()[c[f++]&255];0<=w?d|=w<<18-6*m:m--}a[l++]=d>>16|0;l<b&&(a[l++]=d>>8|0,l<b&&(a[l++]=d|0))}return a};h.decodeFast$byte_A=function(c){var b=c.length;if(0=== b)return[];for(var a=0,d=b-1;a<d&&0>h.IA_$LI$()[c[a]&255];)a++;for(;0<d&&0>h.IA_$LI$()[c[d]&255];)d--;for(var f=61==c[d]?61==c[d-1]?2:1:0,l=d-a+1,m=76<b?(13==c[76]?l/78|0:0)<<1:0,w=l=(6*(l-m)>>3)-f,b=[];0<w--;)b.push(0);for(var y=w=0,q=3*(l/3|0);w<q;){var z=h.IA_$LI$()[c[a++]]<<18|h.IA_$LI$()[c[a++]]<<12|h.IA_$LI$()[c[a++]]<<6|h.IA_$LI$()[c[a++]];b[w++]=z>>16|0;b[w++]=z>>8|0;b[w++]=z|0;0<m&&19===++y&&(a+=2,y=0)}if(w<l){for(m=z=0;a<=d-f;m++)z|=h.IA_$LI$()[c[a++]]<<18-6*m;for(c=16;w<l;c-=8)b[w++]=z>> c|0}return b};h.encodeToString=function(c,b,a){return h.encodeToChar(c,b,a).join("")};h.decode$java_lang_String=function(c){var b=null!=c?c.length:0;if(0===b)return[];for(var a=0,d=0;d<b;d++)0>h.IA_$LI$()[c.charAt(d).charCodeAt(0)]&&a++;if(0!==(b-a)%4)return null;for(var f=0,d=b;1<d&&0>=h.IA_$LI$()[c.charAt(--d).charCodeAt(0)];)61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d))&&f++;for(var b=(6*(b-a)>>3)-f,a=function(a){for(var b=[];0<a--;)b.push(0);return b}(b),l=f=0;l<b;){for(var m= d=0;4>m;m++){var w=h.IA_$LI$()[c.charAt(f++).charCodeAt(0)];0<=w?d|=w<<18-6*m:m--}a[l++]=d>>16|0;l<b&&(a[l++]=d>>8|0,l<b&&(a[l++]=d|0))}return a};h.decodeFast$java_lang_String=function(c){var b=c.length;if(0===b)return[];for(var a=0,d=b-1;a<d&&0>h.IA_$LI$()[function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(a))&255];)a++;for(;0<d&&0>h.IA_$LI$()[function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d))&255];)d--;for(var f=61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d))? 61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d-1))?2:1:0,l=d-a+1,m=76<b?(13==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(76))?l/78|0:0)<<1:0,l=(6*(l-m)>>3)-f,b=function(a){for(var b=[];0<a--;)b.push(0);return b}(l),w=0,y=0,q=3*(l/3|0);w<q;){var z=h.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<18|h.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<12|h.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<6|h.IA_$LI$()[c.charAt(a++).charCodeAt(0)];b[w++]=z>>16|0;b[w++]=z>>8|0;b[w++]= z|0;0<m&&19===++y&&(a+=2,y=0)}if(w<l){for(m=z=0;a<=d-f;m++)z|=h.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<18-6*m;for(c=16;w<l;c-=8)b[w++]=z>>c|0}return b};return h}();l.__static_initialized=!1;m.mxBase64=l;l.__class="com.mxgraph.online.mxBase64"})(m.online||(m.online={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));com.mxgraph.online.mxBase64.IA_$LI$();com.mxgraph.online.mxBase64.CA_$LI$();com.mxgraph.online.mxBase64.__static_initialize();com.mxgraph.io.vsdx.VsdxShape.__com_mxgraph_io_vsdx_VsdxShape_LOGGER_$LI$(); com.mxgraph.io.vsdx.VsdxShape.arrowTypes_$LI$();com.mxgraph.io.vsdx.VsdxShape.arrowSizes_$LI$();com.mxgraph.io.vsdx.VsdxShape.OFFSET_ARRAY_$LI$();com.mxgraph.io.vsdx.VsdxShape.__static_initialize();com.mxgraph.io.vsdx.Shape.UNICODE_LINE_SEP_$LI$();com.mxgraph.io.vsdx.Style.lineDashPatterns_$LI$();com.mxgraph.io.vsdx.Style.styleTypes_$LI$();com.mxgraph.io.vsdx.Style.__static_initialize();com.mxgraph.online.Constants.MAX_AREA_$LI$();com.mxgraph.io.vsdx.theme.Color.NONE_$LI$();com.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(); com.mxgraph.io.vsdx.mxVsdxTheme.colorIds_$LI$();com.mxgraph.io.vsdx.mxVsdxTheme.themesIds_$LI$();com.mxgraph.io.vsdx.mxVsdxTheme.__static_initialize();com.mxgraph.io.vsdx.mxVsdxConstants.MY_SET_$LI$();com.mxgraph.io.vsdx.mxVsdxConstants.SET_VALUES_$LI$();com.mxgraph.io.vsdx.mxPropertiesManager.defaultColors_$LI$();com.mxgraph.io.vsdx.mxPropertiesManager.__static_initialize();com.mxgraph.io.mxVsdxCodec.vsdxPlaceholder_$LI$();com.mxgraph.io.mxVsdxCodec.parsererrorNS_$LI$(); EditorUi.prototype.doImportVisio=function(c,m,w){null!=c.name&&/(\.vssx)($|\?)/i.test(c.name)?(new com.mxgraph.io.mxVssxCodec).decodeVssx(c,m):(new com.mxgraph.io.mxVsdxCodec).decodeVsdx(c,m,null,w)};/*! JSZip v3.1.3 - A Javascript class for generating and reading zip files <http://stuartk.com/jszip> (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com> Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown. JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/master/LICENSE */ !function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.JSZip=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";var d=a("./utils"),e=a("./support"),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";c.encode=function(a){for(var b,c,e,g,h,i,j,k=[],l=0,m=a.length,n=m,o="string"!==d.getTypeOf(a);l<a.length;)n=m-l,o?(b=a[l++],c=l<m?a[l++]:0,e=l<m?a[l++]:0):(b=a.charCodeAt(l++),c=l<m?a.charCodeAt(l++):0,e=l<m?a.charCodeAt(l++):0),g=b>>2,h=(3&b)<<4|c>>4,i=n>1?(15&c)<<2|e>>6:64,j=n>2?63&e:64,k.push(f.charAt(g)+f.charAt(h)+f.charAt(i)+f.charAt(j));return k.join("")},c.decode=function(a){var b,c,d,g,h,i,j,k=0,l=0,m="data:";if(a.substr(0,m.length)===m)throw new Error("Invalid base64 input, it looks like a data url.");a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");var n=3*a.length/4;if(a.charAt(a.length-1)===f.charAt(64)&&n--,a.charAt(a.length-2)===f.charAt(64)&&n--,n%1!==0)throw new Error("Invalid base64 input, bad content length.");var o;for(o=e.uint8array?new Uint8Array(0|n):new Array(0|n);k<a.length;)g=f.indexOf(a.charAt(k++)),h=f.indexOf(a.charAt(k++)),i=f.indexOf(a.charAt(k++)),j=f.indexOf(a.charAt(k++)),b=g<<2|h>>4,c=(15&h)<<4|i>>2,d=(3&i)<<6|j,o[l++]=b,64!==i&&(o[l++]=c),64!==j&&(o[l++]=d);return o}},{"./support":30,"./utils":32}],2:[function(a,b,c){"use strict";function d(a,b,c,d,e){this.compressedSize=a,this.uncompressedSize=b,this.crc32=c,this.compression=d,this.compressedContent=e}var e=a("./external"),f=a("./stream/DataWorker"),g=a("./stream/DataLengthProbe"),h=a("./stream/Crc32Probe"),g=a("./stream/DataLengthProbe");d.prototype={getContentWorker:function(){var a=new f(e.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new g("data_length")),b=this;return a.on("end",function(){if(this.streamInfo.data_length!==b.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),a},getCompressedWorker:function(){return new f(e.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},d.createWorkerFrom=function(a,b,c){return a.pipe(new h).pipe(new g("uncompressedSize")).pipe(b.compressWorker(c)).pipe(new g("compressedSize")).withStreamInfo("compression",b)},b.exports=d},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(a,b,c){"use strict";var d=a("./stream/GenericWorker");c.STORE={magic:"\0\0",compressWorker:function(a){return new d("STORE compression")},uncompressWorker:function(){return new d("STORE decompression")}},c.DEFLATE=a("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(a,b,c){"use strict";function d(){for(var a,b=[],c=0;c<256;c++){a=c;for(var d=0;d<8;d++)a=1&a?3988292384^a>>>1:a>>>1;b[c]=a}return b}function e(a,b,c,d){var e=h,f=d+c;a^=-1;for(var g=d;g<f;g++)a=a>>>8^e[255&(a^b[g])];return a^-1}function f(a,b,c,d){var e=h,f=d+c;a^=-1;for(var g=d;g<f;g++)a=a>>>8^e[255&(a^b.charCodeAt(g))];return a^-1}var g=a("./utils"),h=d();b.exports=function(a,b){if("undefined"==typeof a||!a.length)return 0;var c="string"!==g.getTypeOf(a);return c?e(0|b,a,a.length,0):f(0|b,a,a.length,0)}},{"./utils":32}],5:[function(a,b,c){"use strict";c.base64=!1,c.binary=!1,c.dir=!1,c.createFolders=!0,c.date=null,c.compression=null,c.compressionOptions=null,c.comment=null,c.unixPermissions=null,c.dosPermissions=null},{}],6:[function(a,b,c){"use strict";var d=null;d="undefined"!=typeof Promise?Promise:a("lie"),b.exports={Promise:d}},{lie:58}],7:[function(a,b,c){"use strict";function d(a,b){h.call(this,"FlateWorker/"+a),this._pako=new f[a]({raw:!0,level:b.level||-1}),this.meta={};var c=this;this._pako.onData=function(a){c.push({data:a,meta:c.meta})}}var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,f=a("pako"),g=a("./utils"),h=a("./stream/GenericWorker"),i=e?"uint8array":"array";c.magic="\b\0",g.inherits(d,h),d.prototype.processChunk=function(a){this.meta=a.meta,this._pako.push(g.transformTo(i,a.data),!1)},d.prototype.flush=function(){h.prototype.flush.call(this),this._pako.push([],!0)},d.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this._pako=null},c.compressWorker=function(a){return new d("Deflate",a)},c.uncompressWorker=function(){return new d("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:59}],8:[function(a,b,c){"use strict";function d(a,b,c,d){f.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=b,this.zipPlatform=c,this.encodeFileName=d,this.streamFiles=a,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}var e=a("../utils"),f=a("../stream/GenericWorker"),g=a("../utf8"),h=a("../crc32"),i=a("../signature"),j=function(a,b){var c,d="";for(c=0;c<b;c++)d+=String.fromCharCode(255&a),a>>>=8;return d},k=function(a,b){var c=a;return a||(c=b?16893:33204),(65535&c)<<16},l=function(a,b){return 63&(a||0)},m=function(a,b,c,d,f,m){var n,o,p=a.file,q=a.compression,r=m!==g.utf8encode,s=e.transformTo("string",m(p.name)),t=e.transformTo("string",g.utf8encode(p.name)),u=p.comment,v=e.transformTo("string",m(u)),w=e.transformTo("string",g.utf8encode(u)),x=t.length!==p.name.length,y=w.length!==u.length,z="",A="",B="",C=p.dir,D=p.date,E={crc32:0,compressedSize:0,uncompressedSize:0};b&&!c||(E.crc32=a.crc32,E.compressedSize=a.compressedSize,E.uncompressedSize=a.uncompressedSize);var F=0;b&&(F|=8),r||!x&&!y||(F|=2048);var G=0,H=0;C&&(G|=16),"UNIX"===f?(H=798,G|=k(p.unixPermissions,C)):(H=20,G|=l(p.dosPermissions,C)),n=D.getUTCHours(),n<<=6,n|=D.getUTCMinutes(),n<<=5,n|=D.getUTCSeconds()/2,o=D.getUTCFullYear()-1980,o<<=4,o|=D.getUTCMonth()+1,o<<=5,o|=D.getUTCDate(),x&&(A=j(1,1)+j(h(s),4)+t,z+="up"+j(A.length,2)+A),y&&(B=j(1,1)+j(h(v),4)+w,z+="uc"+j(B.length,2)+B);var I="";I+="\n\0",I+=j(F,2),I+=q.magic,I+=j(n,2),I+=j(o,2),I+=j(E.crc32,4),I+=j(E.compressedSize,4),I+=j(E.uncompressedSize,4),I+=j(s.length,2),I+=j(z.length,2);var J=i.LOCAL_FILE_HEADER+I+s+z,K=i.CENTRAL_FILE_HEADER+j(H,2)+I+j(v.length,2)+"\0\0\0\0"+j(G,4)+j(d,4)+s+z+v;return{fileRecord:J,dirRecord:K}},n=function(a,b,c,d,f){var g="",h=e.transformTo("string",f(d));return g=i.CENTRAL_DIRECTORY_END+"\0\0\0\0"+j(a,2)+j(a,2)+j(b,4)+j(c,4)+j(h.length,2)+h},o=function(a){var b="";return b=i.DATA_DESCRIPTOR+j(a.crc32,4)+j(a.compressedSize,4)+j(a.uncompressedSize,4)};e.inherits(d,f),d.prototype.push=function(a){var b=a.meta.percent||0,c=this.entriesCount,d=this._sources.length;this.accumulate?this.contentBuffer.push(a):(this.bytesWritten+=a.data.length,f.prototype.push.call(this,{data:a.data,meta:{currentFile:this.currentFile,percent:c?(b+100*(c-d-1))/c:100}}))},d.prototype.openedSource=function(a){this.currentSourceOffset=this.bytesWritten,this.currentFile=a.file.name;var b=this.streamFiles&&!a.file.dir;if(b){var c=m(a,b,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:c.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(a){this.accumulate=!1;var b=this.streamFiles&&!a.file.dir,c=m(a,b,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(c.dirRecord),b)this.push({data:o(a),meta:{percent:100}});else for(this.push({data:c.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var a=this.bytesWritten,b=0;b<this.dirRecords.length;b++)this.push({data:this.dirRecords[b],meta:{percent:100}});var c=this.bytesWritten-a,d=n(this.dirRecords.length,c,a,this.zipComment,this.encodeFileName);this.push({data:d,meta:{percent:100}})},d.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},d.prototype.registerPrevious=function(a){this._sources.push(a);var b=this;return a.on("data",function(a){b.processChunk(a)}),a.on("end",function(){b.closedSource(b.previous.streamInfo),b._sources.length?b.prepareNextSource():b.end()}),a.on("error",function(a){b.error(a)}),this},d.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},d.prototype.error=function(a){var b=this._sources;if(!f.prototype.error.call(this,a))return!1;for(var c=0;c<b.length;c++)try{b[c].error(a)}catch(a){}return!0},d.prototype.lock=function(){f.prototype.lock.call(this);for(var a=this._sources,b=0;b<a.length;b++)a[b].lock()},b.exports=d},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(a,b,c){"use strict";var d=a("../compressions"),e=a("./ZipFileWorker"),f=function(a,b){var c=a||b,e=d[c];if(!e)throw new Error(c+" is not a valid compression method !");return e};c.generateWorker=function(a,b,c){var d=new e(b.streamFiles,c,b.platform,b.encodeFileName),g=0;try{a.forEach(function(a,c){g++;var e=f(c.options.compression,b.compression),h=c.options.compressionOptions||b.compressionOptions||{},i=c.dir,j=c.date;c._compressWorker(e,h).withStreamInfo("file",{name:a,dir:i,date:j,comment:c.comment||"",unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions}).pipe(d)}),d.entriesCount=g}catch(h){d.error(h)}return d}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(a,b,c){"use strict";function d(){if(!(this instanceof d))return new d;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var a=new d;for(var b in this)"function"!=typeof this[b]&&(a[b]=this[b]);return a}}d.prototype=a("./object"),d.prototype.loadAsync=a("./load"),d.support=a("./support"),d.defaults=a("./defaults"),d.version="3.1.3",d.loadAsync=function(a,b){return(new d).loadAsync(a,b)},d.external=a("./external"),b.exports=d},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(a,b,c){"use strict";function d(a){return new f.Promise(function(b,c){var d=a.decompressed.getContentWorker().pipe(new i);d.on("error",function(a){c(a)}).on("end",function(){d.streamInfo.crc32!==a.decompressed.crc32?c(new Error("Corrupted zip : CRC32 mismatch")):b()}).resume()})}var e=a("./utils"),f=a("./external"),g=a("./utf8"),e=a("./utils"),h=a("./zipEntries"),i=a("./stream/Crc32Probe"),j=a("./nodejsUtils");b.exports=function(a,b){var c=this;return b=e.extend(b||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:g.utf8decode}),j.isNode&&j.isStream(a)?f.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):e.prepareContent("the loaded zip file",a,!0,b.optimizedBinaryString,b.base64).then(function(a){var c=new h(b);return c.load(a),c}).then(function(a){var c=[f.Promise.resolve(a)],e=a.files;if(b.checkCRC32)for(var g=0;g<e.length;g++)c.push(d(e[g]));return f.Promise.all(c)}).then(function(a){for(var d=a.shift(),e=d.files,f=0;f<e.length;f++){var g=e[f];c.file(g.fileNameStr,g.decompressed,{binary:!0,optimizedBinaryString:!0,date:g.date,dir:g.dir,comment:g.fileCommentStr.length?g.fileCommentStr:null,unixPermissions:g.unixPermissions,dosPermissions:g.dosPermissions,createFolders:b.createFolders})}return d.zipComment.length&&(c.comment=d.zipComment),c})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(a,b,c){"use strict";function d(a,b){f.call(this,"Nodejs stream input adapter for "+a),this._upstreamEnded=!1,this._bindStream(b)}var e=a("../utils"),f=a("../stream/GenericWorker");e.inherits(d,f),d.prototype._bindStream=function(a){var b=this;this._stream=a,a.pause(),a.on("data",function(a){b.push({data:a,meta:{percent:0}})}).on("error",function(a){b.isPaused?this.generatedError=a:b.error(a)}).on("end",function(){b.isPaused?b._upstreamEnded=!0:b.end()})},d.prototype.pause=function(){return!!f.prototype.pause.call(this)&&(this._stream.pause(),!0)},d.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},b.exports=d},{"../stream/GenericWorker":28,"../utils":32}],13:[function(a,b,c){"use strict";function d(a,b,c){e.call(this,b),this._helper=a;var d=this;a.on("data",function(a,b){d.push(a)||d._helper.pause(),c&&c(b)}).on("error",function(a){d.emit("error",a)}).on("end",function(){d.push(null)})}var e=a("readable-stream").Readable,f=a("util");f.inherits(d,e),d.prototype._read=function(){this._helper.resume()},b.exports=d},{"readable-stream":16,util:void 0}],14:[function(a,b,c){"use strict";b.exports={isNode:"undefined"!=typeof Buffer,newBuffer:function(a,b){return new Buffer(a,b)},isBuffer:function(a){return Buffer.isBuffer(a)},isStream:function(a){return a&&"function"==typeof a.on&&"function"==typeof a.pause&&"function"==typeof a.resume}}},{}],15:[function(a,b,c){"use strict";function d(a){return"[object RegExp]"===Object.prototype.toString.call(a)}var e=a("./utf8"),f=a("./utils"),g=a("./stream/GenericWorker"),h=a("./stream/StreamHelper"),i=a("./defaults"),j=a("./compressedObject"),k=a("./zipObject"),l=a("./generate"),m=a("./nodejsUtils"),n=a("./nodejs/NodejsStreamInputAdapter"),o=function(a,b,c){var d,e=f.getTypeOf(b),h=f.extend(c||{},i);h.date=h.date||new Date,null!==h.compression&&(h.compression=h.compression.toUpperCase()),"string"==typeof h.unixPermissions&&(h.unixPermissions=parseInt(h.unixPermissions,8)),h.unixPermissions&&16384&h.unixPermissions&&(h.dir=!0),h.dosPermissions&&16&h.dosPermissions&&(h.dir=!0),h.dir&&(a=q(a)),h.createFolders&&(d=p(a))&&r.call(this,d,!0);var l="string"===e&&h.binary===!1&&h.base64===!1;c&&"undefined"!=typeof c.binary||(h.binary=!l);var o=b instanceof j&&0===b.uncompressedSize;(o||h.dir||!b||0===b.length)&&(h.base64=!1,h.binary=!0,b="",h.compression="STORE",e="string");var s=null;s=b instanceof j||b instanceof g?b:m.isNode&&m.isStream(b)?new n(a,b):f.prepareContent(a,b,h.binary,h.optimizedBinaryString,h.base64);var t=new k(a,s,h);this.files[a]=t},p=function(a){"/"===a.slice(-1)&&(a=a.substring(0,a.length-1));var b=a.lastIndexOf("/");return b>0?a.substring(0,b):""},q=function(a){return"/"!==a.slice(-1)&&(a+="/"),a},r=function(a,b){return b="undefined"!=typeof b?b:i.createFolders,a=q(a),this.files[a]||o.call(this,a,null,{dir:!0,createFolders:b}),this.files[a]},s={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(a){var b,c,d;for(b in this.files)this.files.hasOwnProperty(b)&&(d=this.files[b],c=b.slice(this.root.length,b.length),c&&b.slice(0,this.root.length)===this.root&&a(c,d))},filter:function(a){var b=[];return this.forEach(function(c,d){a(c,d)&&b.push(d)}),b},file:function(a,b,c){if(1===arguments.length){if(d(a)){var e=a;return this.filter(function(a,b){return!b.dir&&e.test(a)})}var f=this.files[this.root+a];return f&&!f.dir?f:null}return a=this.root+a,o.call(this,a,b,c),this},folder:function(a){if(!a)return this;if(d(a))return this.filter(function(b,c){return c.dir&&a.test(b)});var b=this.root+a,c=r.call(this,b),e=this.clone();return e.root=c.name,e},remove:function(a){a=this.root+a;var b=this.files[a];if(b||("/"!==a.slice(-1)&&(a+="/"),b=this.files[a]),b&&!b.dir)delete this.files[a];else for(var c=this.filter(function(b,c){return c.name.slice(0,a.length)===a}),d=0;d<c.length;d++)delete this.files[c[d].name];return this},generate:function(a){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(a){var b,c={};try{if(c=f.extend(a||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:e.utf8encode}),c.type=c.type.toLowerCase(),c.compression=c.compression.toUpperCase(),"binarystring"===c.type&&(c.type="string"),!c.type)throw new Error("No output type specified.");f.checkSupport(c.type),"darwin"!==c.platform&&"freebsd"!==c.platform&&"linux"!==c.platform&&"sunos"!==c.platform||(c.platform="UNIX"),"win32"===c.platform&&(c.platform="DOS");var d=c.comment||this.comment||"";b=l.generateWorker(this,c,d)}catch(i){b=new g("error"),b.error(i)}return new h(b,c.type||"string",c.mimeType)},generateAsync:function(a,b){return this.generateInternalStream(a).accumulate(b)},generateNodeStream:function(a,b){return a=a||{},a.type||(a.type="nodebuffer"),this.generateInternalStream(a).toNodejsStream(b)}};b.exports=s},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(a,b,c){b.exports=a("stream")},{stream:void 0}],17:[function(a,b,c){"use strict";function d(a){e.call(this,a);for(var b=0;b<this.data.length;b++)a[b]=255&a[b]}var e=a("./DataReader"),f=a("../utils");f.inherits(d,e),d.prototype.byteAt=function(a){return this.data[this.zero+a]},d.prototype.lastIndexOfSignature=function(a){for(var b=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),e=a.charCodeAt(3),f=this.length-4;f>=0;--f)if(this.data[f]===b&&this.data[f+1]===c&&this.data[f+2]===d&&this.data[f+3]===e)return f-this.zero;return-1},d.prototype.readAndCheckSignature=function(a){var b=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),e=a.charCodeAt(3),f=this.readData(4);return b===f[0]&&c===f[1]&&d===f[2]&&e===f[3]},d.prototype.readData=function(a){if(this.checkOffset(a),0===a)return[];var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},b.exports=d},{"../utils":32,"./DataReader":18}],18:[function(a,b,c){"use strict";function d(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}var e=a("../utils");d.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(a){},readInt:function(a){var b,c=0;for(this.checkOffset(a),b=this.index+a-1;b>=this.index;b--)c=(c<<8)+this.byteAt(b);return this.index+=a,c},readString:function(a){return e.transformTo("string",this.readData(a))},readData:function(a){},lastIndexOfSignature:function(a){},readAndCheckSignature:function(a){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC((a>>25&127)+1980,(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},b.exports=d},{"../utils":32}],19:[function(a,b,c){"use strict";function d(a){e.call(this,a)}var e=a("./Uint8ArrayReader"),f=a("../utils");f.inherits(d,e),d.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},b.exports=d},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(a,b,c){"use strict";function d(a){e.call(this,a)}var e=a("./DataReader"),f=a("../utils");f.inherits(d,e),d.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},d.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},d.prototype.readAndCheckSignature=function(a){var b=this.readData(4);return a===b},d.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},b.exports=d},{"../utils":32,"./DataReader":18}],21:[function(a,b,c){"use strict";function d(a){e.call(this,a)}var e=a("./ArrayReader"),f=a("../utils");f.inherits(d,e),d.prototype.readData=function(a){if(this.checkOffset(a),0===a)return new Uint8Array(0);var b=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},b.exports=d},{"../utils":32,"./ArrayReader":17}],22:[function(a,b,c){"use strict";var d=a("../utils"),e=a("../support"),f=a("./ArrayReader"),g=a("./StringReader"),h=a("./NodeBufferReader"),i=a("./Uint8ArrayReader");b.exports=function(a){var b=d.getTypeOf(a);return d.checkSupport(b),"string"!==b||e.uint8array?"nodebuffer"===b?new h(a):e.uint8array?new i(d.transformTo("uint8array",a)):new f(d.transformTo("array",a)):new g(a)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(a,b,c){"use strict";c.LOCAL_FILE_HEADER="PK",c.CENTRAL_FILE_HEADER="PK",c.CENTRAL_DIRECTORY_END="PK",c.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",c.ZIP64_CENTRAL_DIRECTORY_END="PK",c.DATA_DESCRIPTOR="PK\b"},{}],24:[function(a,b,c){"use strict";function d(a){e.call(this,"ConvertWorker to "+a),this.destType=a}var e=a("./GenericWorker"),f=a("../utils");f.inherits(d,e),d.prototype.processChunk=function(a){this.push({data:f.transformTo(this.destType,a.data),meta:a.meta})},b.exports=d},{"../utils":32,"./GenericWorker":28}],25:[function(a,b,c){"use strict";function d(){e.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}var e=a("./GenericWorker"),f=a("../crc32"),g=a("../utils");g.inherits(d,e),d.prototype.processChunk=function(a){this.streamInfo.crc32=f(a.data,this.streamInfo.crc32||0),this.push(a)},b.exports=d},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(a,b,c){"use strict";function d(a){f.call(this,"DataLengthProbe for "+a),this.propName=a,this.withStreamInfo(a,0)}var e=a("../utils"),f=a("./GenericWorker");e.inherits(d,f),d.prototype.processChunk=function(a){if(a){var b=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=b+a.data.length}f.prototype.processChunk.call(this,a)},b.exports=d},{"../utils":32,"./GenericWorker":28}],27:[function(a,b,c){"use strict";function d(a){f.call(this,"DataWorker");var b=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,a.then(function(a){b.dataIsReady=!0,b.data=a,b.max=a&&a.length||0,b.type=e.getTypeOf(a),b.isPaused||b._tickAndRepeat()},function(a){b.error(a)})}var e=a("../utils"),f=a("./GenericWorker"),g=16384;e.inherits(d,f),d.prototype.cleanUp=function(){f.prototype.cleanUp.call(this),this.data=null},d.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,e.delay(this._tickAndRepeat,[],this)),!0)},d.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(e.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},d.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var a=g,b=null,c=Math.min(this.max,this.index+a);if(this.index>=this.max)return this.end();switch(this.type){case"string":b=this.data.substring(this.index,c);break;case"uint8array":b=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":b=this.data.slice(this.index,c)}return this.index=c,this.push({data:b,meta:{percent:this.max?this.index/this.max*100:0}})},b.exports=d},{"../utils":32,"./GenericWorker":28}],28:[function(a,b,c){"use strict";function d(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}d.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,b){return this._listeners[a].push(b),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,b){if(this._listeners[a])for(var c=0;c<this._listeners[a].length;c++)this._listeners[a][c].call(this,b)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var b=this;return a.on("data",function(a){b.processChunk(a)}),a.on("end",function(){b.end()}),a.on("error",function(a){b.error(a)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var a=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,b){return this.extraStreamInfo[a]=b,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},b.exports=d},{}],29:[function(a,b,c){"use strict";function d(a,b,c,d){var f=null;switch(a){case"blob":return h.newBlob(c,d);case"base64":return f=e(b,c),k.encode(f);default:return f=e(b,c),h.transformTo(a,f)}}function e(a,b){var c,d=0,e=null,f=0;for(c=0;c<b.length;c++)f+=b[c].length;switch(a){case"string":return b.join("");case"array":return Array.prototype.concat.apply([],b);case"uint8array":for(e=new Uint8Array(f),c=0;c<b.length;c++)e.set(b[c],d),d+=b[c].length;return e;case"nodebuffer":return Buffer.concat(b);default:throw new Error("concat : unsupported type '"+a+"'")}}function f(a,b){return new m.Promise(function(c,e){var f=[],g=a._internalType,h=a._outputType,i=a._mimeType;a.on("data",function(a,c){f.push(a),b&&b(c)}).on("error",function(a){f=[],e(a)}).on("end",function(){try{var a=d(h,g,f,i);c(a)}catch(b){e(b)}f=[]}).resume()})}function g(a,b,c){var d=b;switch(b){case"blob":d="arraybuffer";break;case"arraybuffer":d="uint8array";break;case"base64":d="string"}try{this._internalType=d,this._outputType=b,this._mimeType=c,h.checkSupport(d),this._worker=a.pipe(new i(d)),a.lock()}catch(e){this._worker=new j("error"),this._worker.error(e)}}var h=a("../utils"),i=a("./ConvertWorker"),j=a("./GenericWorker"),k=a("../base64"),l=a("../support"),m=a("../external"),n=null;if(l.nodestream)try{n=a("../nodejs/NodejsStreamOutputAdapter")}catch(o){}g.prototype={accumulate:function(a){return f(this,a)},on:function(a,b){var c=this;return"data"===a?this._worker.on(a,function(a){b.call(c,a.data,a.meta)}):this._worker.on(a,function(){h.delay(b,arguments,c)}),this},resume:function(){return h.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(a){if(h.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new n(this,{objectMode:"nodebuffer"!==this._outputType},a)}},b.exports=g},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(a,b,c){"use strict";if(c.base64=!0,c.array=!0,c.string=!0,c.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,c.nodebuffer="undefined"!=typeof Buffer,c.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)c.blob=!1;else{var d=new ArrayBuffer(0);try{c.blob=0===new Blob([d],{type:"application/zip"}).size}catch(e){try{var f=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,g=new f;g.append(d),c.blob=0===g.getBlob("application/zip").size}catch(e){c.blob=!1}}}try{c.nodestream=!!a("readable-stream").Readable}catch(e){c.nodestream=!1}},{"readable-stream":16}],31:[function(a,b,c){"use strict";function d(){i.call(this,"utf-8 decode"),this.leftOver=null}function e(){i.call(this,"utf-8 encode")}for(var f=a("./utils"),g=a("./support"),h=a("./nodejsUtils"),i=a("./stream/GenericWorker"),j=new Array(256),k=0;k<256;k++)j[k]=k>=252?6:k>=248?5:k>=240?4:k>=224?3:k>=192?2:1;j[254]=j[254]=1;var l=function(a){var b,c,d,e,f,h=a.length,i=0;for(e=0;e<h;e++)c=a.charCodeAt(e),55296===(64512&c)&&e+1<h&&(d=a.charCodeAt(e+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),e++)),i+=c<128?1:c<2048?2:c<65536?3:4;for(b=g.uint8array?new Uint8Array(i):new Array(i),f=0,e=0;f<i;e++)c=a.charCodeAt(e),55296===(64512&c)&&e+1<h&&(d=a.charCodeAt(e+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),e++)),c<128?b[f++]=c:c<2048?(b[f++]=192|c>>>6,b[f++]=128|63&c):c<65536?(b[f++]=224|c>>>12,b[f++]=128|c>>>6&63,b[f++]=128|63&c):(b[f++]=240|c>>>18,b[f++]=128|c>>>12&63,b[f++]=128|c>>>6&63,b[f++]=128|63&c);return b},m=function(a,b){var c;for(b=b||a.length,b>a.length&&(b=a.length),c=b-1;c>=0&&128===(192&a[c]);)c--;return c<0?b:0===c?b:c+j[a[c]]>b?c:b},n=function(a){var b,c,d,e,g=a.length,h=new Array(2*g);for(c=0,b=0;b<g;)if(d=a[b++],d<128)h[c++]=d;else if(e=j[d],e>4)h[c++]=65533,b+=e-1;else{for(d&=2===e?31:3===e?15:7;e>1&&b<g;)d=d<<6|63&a[b++],e--;e>1?h[c++]=65533:d<65536?h[c++]=d:(d-=65536,h[c++]=55296|d>>10&1023,h[c++]=56320|1023&d)}return h.length!==c&&(h.subarray?h=h.subarray(0,c):h.length=c),f.applyFromCharCode(h)};c.utf8encode=function(a){return g.nodebuffer?h.newBuffer(a,"utf-8"):l(a)},c.utf8decode=function(a){return g.nodebuffer?f.transformTo("nodebuffer",a).toString("utf-8"):(a=f.transformTo(g.uint8array?"uint8array":"array",a),n(a))},f.inherits(d,i),d.prototype.processChunk=function(a){var b=f.transformTo(g.uint8array?"uint8array":"array",a.data);if(this.leftOver&&this.leftOver.length){if(g.uint8array){var d=b;b=new Uint8Array(d.length+this.leftOver.length),b.set(this.leftOver,0),b.set(d,this.leftOver.length)}else b=this.leftOver.concat(b);this.leftOver=null}var e=m(b),h=b;e!==b.length&&(g.uint8array?(h=b.subarray(0,e),this.leftOver=b.subarray(e,b.length)):(h=b.slice(0,e),this.leftOver=b.slice(e,b.length))),this.push({data:c.utf8decode(h),meta:a.meta})},d.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:c.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},c.Utf8DecodeWorker=d,f.inherits(e,i),e.prototype.processChunk=function(a){this.push({data:c.utf8encode(a.data),meta:a.meta})},c.Utf8EncodeWorker=e},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(a,b,c){"use strict";function d(a){var b=null;return b=i.uint8array?new Uint8Array(a.length):new Array(a.length),f(a,b)}function e(a){return a}function f(a,b){for(var c=0;c<a.length;++c)b[c]=255&a.charCodeAt(c);return b}function g(a){var b=65536,d=c.getTypeOf(a),e=!0;if("uint8array"===d?e=n.applyCanBeUsed.uint8array:"nodebuffer"===d&&(e=n.applyCanBeUsed.nodebuffer),e)for(;b>1;)try{return n.stringifyByChunk(a,d,b)}catch(f){b=Math.floor(b/2)}return n.stringifyByChar(a)}function h(a,b){for(var c=0;c<a.length;c++)b[c]=a[c];return b}var i=a("./support"),j=a("./base64"),k=a("./nodejsUtils"),l=a("core-js/library/fn/set-immediate"),m=a("./external");c.newBlob=function(a,b){c.checkSupport("blob");try{return new Blob(a,{type:b})}catch(d){try{for(var e=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,f=new e,g=0;g<a.length;g++)f.append(a[g]); return f.getBlob(b)}catch(d){throw new Error("Bug : can't construct the Blob.")}}};var n={stringifyByChunk:function(a,b,c){var d=[],e=0,f=a.length;if(f<=c)return String.fromCharCode.apply(null,a);for(;e<f;)"array"===b||"nodebuffer"===b?d.push(String.fromCharCode.apply(null,a.slice(e,Math.min(e+c,f)))):d.push(String.fromCharCode.apply(null,a.subarray(e,Math.min(e+c,f)))),e+=c;return d.join("")},stringifyByChar:function(a){for(var b="",c=0;c<a.length;c++)b+=String.fromCharCode(a[c]);return b},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(a){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,k.newBuffer(1)).length}catch(a){return!1}}()}};c.applyFromCharCode=g;var o={};o.string={string:e,array:function(a){return f(a,new Array(a.length))},arraybuffer:function(a){return o.string.uint8array(a).buffer},uint8array:function(a){return f(a,new Uint8Array(a.length))},nodebuffer:function(a){return f(a,k.newBuffer(a.length))}},o.array={string:g,array:e,arraybuffer:function(a){return new Uint8Array(a).buffer},uint8array:function(a){return new Uint8Array(a)},nodebuffer:function(a){return k.newBuffer(a)}},o.arraybuffer={string:function(a){return g(new Uint8Array(a))},array:function(a){return h(new Uint8Array(a),new Array(a.byteLength))},arraybuffer:e,uint8array:function(a){return new Uint8Array(a)},nodebuffer:function(a){return k.newBuffer(new Uint8Array(a))}},o.uint8array={string:g,array:function(a){return h(a,new Array(a.length))},arraybuffer:function(a){var b=new Uint8Array(a.length);return a.length&&b.set(a,0),b.buffer},uint8array:e,nodebuffer:function(a){return k.newBuffer(a)}},o.nodebuffer={string:g,array:function(a){return h(a,new Array(a.length))},arraybuffer:function(a){return o.nodebuffer.uint8array(a).buffer},uint8array:function(a){return h(a,new Uint8Array(a.length))},nodebuffer:e},c.transformTo=function(a,b){if(b||(b=""),!a)return b;c.checkSupport(a);var d=c.getTypeOf(b),e=o[d][a](b);return e},c.getTypeOf=function(a){return"string"==typeof a?"string":"[object Array]"===Object.prototype.toString.call(a)?"array":i.nodebuffer&&k.isBuffer(a)?"nodebuffer":i.uint8array&&a instanceof Uint8Array?"uint8array":i.arraybuffer&&a instanceof ArrayBuffer?"arraybuffer":void 0},c.checkSupport=function(a){var b=i[a.toLowerCase()];if(!b)throw new Error(a+" is not supported by this platform")},c.MAX_VALUE_16BITS=65535,c.MAX_VALUE_32BITS=-1,c.pretty=function(a){var b,c,d="";for(c=0;c<(a||"").length;c++)b=a.charCodeAt(c),d+="\\x"+(b<16?"0":"")+b.toString(16).toUpperCase();return d},c.delay=function(a,b,c){l(function(){a.apply(c||null,b||[])})},c.inherits=function(a,b){var c=function(){};c.prototype=b.prototype,a.prototype=new c},c.extend=function(){var a,b,c={};for(a=0;a<arguments.length;a++)for(b in arguments[a])arguments[a].hasOwnProperty(b)&&"undefined"==typeof c[b]&&(c[b]=arguments[a][b]);return c},c.prepareContent=function(a,b,e,f,g){var h=m.Promise.resolve(b).then(function(a){var b=i.blob&&(a instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(a))!==-1);return b&&"undefined"!=typeof FileReader?new m.Promise(function(b,c){var d=new FileReader;d.onload=function(a){b(a.target.result)},d.onerror=function(a){c(a.target.error)},d.readAsArrayBuffer(a)}):a});return h.then(function(b){var h=c.getTypeOf(b);return h?("arraybuffer"===h?b=c.transformTo("uint8array",b):"string"===h&&(g?b=j.decode(b):e&&f!==!0&&(b=d(b))),b):m.Promise.reject(new Error("The data of '"+a+"' is in an unsupported format !"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"core-js/library/fn/set-immediate":36}],33:[function(a,b,c){"use strict";function d(a){this.files=[],this.loadOptions=a}var e=a("./reader/readerFor"),f=a("./utils"),g=a("./signature"),h=a("./zipEntry"),i=(a("./utf8"),a("./support"));d.prototype={checkSignature:function(a){if(!this.reader.readAndCheckSignature(a)){this.reader.index-=4;var b=this.reader.readString(4);throw new Error("Corrupted zip or bug : unexpected signature ("+f.pretty(b)+", expected "+f.pretty(a)+")")}},isSignature:function(a,b){var c=this.reader.index;this.reader.setIndex(a);var d=this.reader.readString(4),e=d===b;return this.reader.setIndex(c),e},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var a=this.reader.readData(this.zipCommentLength),b=i.uint8array?"uint8array":"array",c=f.transformTo(b,a);this.zipComment=this.loadOptions.decodeFileName(c)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var a,b,c,d=this.zip64EndOfCentralSize-44,e=0;e<d;)a=this.reader.readInt(2),b=this.reader.readInt(4),c=this.reader.readData(b),this.zip64ExtensibleData[a]={id:a,length:b,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var a,b;for(a=0;a<this.files.length;a++)b=this.files[a],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(g.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8(),b.processAttributes()},readCentralDir:function(){var a;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(g.CENTRAL_FILE_HEADER);)a=new h({zip64:this.zip64},this.loadOptions),a.readCentralPart(this.reader),this.files.push(a);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var a=this.reader.lastIndexOfSignature(g.CENTRAL_DIRECTORY_END);if(a<0){var b=!this.isSignature(0,g.LOCAL_FILE_HEADER);throw b?new Error("Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip : can't find end of central directory")}this.reader.setIndex(a);var c=a;if(this.checkSignature(g.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===f.MAX_VALUE_16BITS||this.diskWithCentralDirStart===f.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===f.MAX_VALUE_16BITS||this.centralDirRecords===f.MAX_VALUE_16BITS||this.centralDirSize===f.MAX_VALUE_32BITS||this.centralDirOffset===f.MAX_VALUE_32BITS){if(this.zip64=!0,a=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR),a<0)throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(a),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,g.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip : can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var d=this.centralDirOffset+this.centralDirSize;this.zip64&&(d+=20,d+=12+this.zip64EndOfCentralSize);var e=c-d;if(e>0)this.isSignature(c,g.CENTRAL_FILE_HEADER)||(this.reader.zero=e);else if(e<0)throw new Error("Corrupted zip: missing "+Math.abs(e)+" bytes.")},prepareReader:function(a){this.reader=e(a)},load:function(a){this.prepareReader(a),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},b.exports=d},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(a,b,c){"use strict";function d(a,b){this.options=a,this.loadOptions=b}var e=a("./reader/readerFor"),f=a("./utils"),g=a("./compressedObject"),h=a("./crc32"),i=a("./utf8"),j=a("./compressions"),k=a("./support"),l=0,m=3,n=function(a){for(var b in j)if(j.hasOwnProperty(b)&&j[b].magic===a)return j[b];return null};d.prototype={isEncrypted:function(){return 1===(1&this.bitFlag)},useUTF8:function(){return 2048===(2048&this.bitFlag)},readLocalPart:function(a){var b,c;if(a.skip(22),this.fileNameLength=a.readInt(2),c=a.readInt(2),this.fileName=a.readData(this.fileNameLength),a.skip(c),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(b=n(this.compressionMethod),null===b)throw new Error("Corrupted zip : compression "+f.pretty(this.compressionMethod)+" unknown (inner file : "+f.transformTo("string",this.fileName)+")");this.decompressed=new g(this.compressedSize,this.uncompressedSize,this.crc32,b,a.readData(this.compressedSize))},readCentralPart:function(a){this.versionMadeBy=a.readInt(2),a.skip(2),this.bitFlag=a.readInt(2),this.compressionMethod=a.readString(2),this.date=a.readDate(),this.crc32=a.readInt(4),this.compressedSize=a.readInt(4),this.uncompressedSize=a.readInt(4);var b=a.readInt(2);if(this.extraFieldsLength=a.readInt(2),this.fileCommentLength=a.readInt(2),this.diskNumberStart=a.readInt(2),this.internalFileAttributes=a.readInt(2),this.externalFileAttributes=a.readInt(4),this.localHeaderOffset=a.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");a.skip(b),this.readExtraFields(a),this.parseZIP64ExtraField(a),this.fileComment=a.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var a=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),a===l&&(this.dosPermissions=63&this.externalFileAttributes),a===m&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(a){if(this.extraFields[1]){var b=e(this.extraFields[1].value);this.uncompressedSize===f.MAX_VALUE_32BITS&&(this.uncompressedSize=b.readInt(8)),this.compressedSize===f.MAX_VALUE_32BITS&&(this.compressedSize=b.readInt(8)),this.localHeaderOffset===f.MAX_VALUE_32BITS&&(this.localHeaderOffset=b.readInt(8)),this.diskNumberStart===f.MAX_VALUE_32BITS&&(this.diskNumberStart=b.readInt(4))}},readExtraFields:function(a){var b,c,d,e=a.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});a.index<e;)b=a.readInt(2),c=a.readInt(2),d=a.readData(c),this.extraFields[b]={id:b,length:c,value:d}},handleUTF8:function(){var a=k.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=i.utf8decode(this.fileName),this.fileCommentStr=i.utf8decode(this.fileComment);else{var b=this.findExtraFieldUnicodePath();if(null!==b)this.fileNameStr=b;else{var c=f.transformTo(a,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(c)}var d=this.findExtraFieldUnicodeComment();if(null!==d)this.fileCommentStr=d;else{var e=f.transformTo(a,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(e)}}},findExtraFieldUnicodePath:function(){var a=this.extraFields[28789];if(a){var b=e(a.value);return 1!==b.readInt(1)?null:h(this.fileName)!==b.readInt(4)?null:i.utf8decode(b.readData(a.length-5))}return null},findExtraFieldUnicodeComment:function(){var a=this.extraFields[25461];if(a){var b=e(a.value);return 1!==b.readInt(1)?null:h(this.fileComment)!==b.readInt(4)?null:i.utf8decode(b.readData(a.length-5))}return null}},b.exports=d},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(a,b,c){"use strict";var d=a("./stream/StreamHelper"),e=a("./stream/DataWorker"),f=a("./utf8"),g=a("./compressedObject"),h=a("./stream/GenericWorker"),i=function(a,b,c){this.name=a,this.dir=c.dir,this.date=c.date,this.comment=c.comment,this.unixPermissions=c.unixPermissions,this.dosPermissions=c.dosPermissions,this._data=b,this._dataBinary=c.binary,this.options={compression:c.compression,compressionOptions:c.compressionOptions}};i.prototype={internalStream:function(a){var b=a.toLowerCase(),c="string"===b||"text"===b;"binarystring"!==b&&"text"!==b||(b="string");var e=this._decompressWorker(),g=!this._dataBinary;return g&&!c&&(e=e.pipe(new f.Utf8EncodeWorker)),!g&&c&&(e=e.pipe(new f.Utf8DecodeWorker)),new d(e,b,"")},async:function(a,b){return this.internalStream(a).accumulate(b)},nodeStream:function(a,b){return this.internalStream(a||"nodebuffer").toNodejsStream(b)},_compressWorker:function(a,b){if(this._data instanceof g&&this._data.compression.magic===a.magic)return this._data.getCompressedWorker();var c=this._decompressWorker();return this._dataBinary||(c=c.pipe(new f.Utf8EncodeWorker)),g.createWorkerFrom(c,a,b)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof h?this._data:new e(this._data)}};for(var j=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},l=0;l<j.length;l++)i.prototype[j[l]]=k;b.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(a,b,c){a("../modules/web.immediate"),b.exports=a("../modules/_core").setImmediate},{"../modules/_core":40,"../modules/web.immediate":56}],37:[function(a,b,c){b.exports=function(a){if("function"!=typeof a)throw TypeError(a+" is not a function!");return a}},{}],38:[function(a,b,c){var d=a("./_is-object");b.exports=function(a){if(!d(a))throw TypeError(a+" is not an object!");return a}},{"./_is-object":51}],39:[function(a,b,c){var d={}.toString;b.exports=function(a){return d.call(a).slice(8,-1)}},{}],40:[function(a,b,c){var d=b.exports={version:"2.3.0"};"number"==typeof __e&&(__e=d)},{}],41:[function(a,b,c){var d=a("./_a-function");b.exports=function(a,b,c){if(d(a),void 0===b)return a;switch(c){case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)}}return function(){return a.apply(b,arguments)}}},{"./_a-function":37}],42:[function(a,b,c){b.exports=!a("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":45}],43:[function(a,b,c){var d=a("./_is-object"),e=a("./_global").document,f=d(e)&&d(e.createElement);b.exports=function(a){return f?e.createElement(a):{}}},{"./_global":46,"./_is-object":51}],44:[function(a,b,c){var d=a("./_global"),e=a("./_core"),f=a("./_ctx"),g=a("./_hide"),h="prototype",i=function(a,b,c){var j,k,l,m=a&i.F,n=a&i.G,o=a&i.S,p=a&i.P,q=a&i.B,r=a&i.W,s=n?e:e[b]||(e[b]={}),t=s[h],u=n?d:o?d[b]:(d[b]||{})[h];n&&(c=b);for(j in c)k=!m&&u&&void 0!==u[j],k&&j in s||(l=k?u[j]:c[j],s[j]=n&&"function"!=typeof u[j]?c[j]:q&&k?f(l,d):r&&u[j]==l?function(a){var b=function(b,c,d){if(this instanceof a){switch(arguments.length){case 0:return new a;case 1:return new a(b);case 2:return new a(b,c)}return new a(b,c,d)}return a.apply(this,arguments)};return b[h]=a[h],b}(l):p&&"function"==typeof l?f(Function.call,l):l,p&&((s.virtual||(s.virtual={}))[j]=l,a&i.R&&t&&!t[j]&&g(t,j,l)))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,i.U=64,i.R=128,b.exports=i},{"./_core":40,"./_ctx":41,"./_global":46,"./_hide":47}],45:[function(a,b,c){b.exports=function(a){try{return!!a()}catch(b){return!0}}},{}],46:[function(a,b,c){var d=b.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=d)},{}],47:[function(a,b,c){var d=a("./_object-dp"),e=a("./_property-desc");b.exports=a("./_descriptors")?function(a,b,c){return d.f(a,b,e(1,c))}:function(a,b,c){return a[b]=c,a}},{"./_descriptors":42,"./_object-dp":52,"./_property-desc":53}],48:[function(a,b,c){b.exports=a("./_global").document&&document.documentElement},{"./_global":46}],49:[function(a,b,c){b.exports=!a("./_descriptors")&&!a("./_fails")(function(){return 7!=Object.defineProperty(a("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":42,"./_dom-create":43,"./_fails":45}],50:[function(a,b,c){b.exports=function(a,b,c){var d=void 0===c;switch(b.length){case 0:return d?a():a.call(c);case 1:return d?a(b[0]):a.call(c,b[0]);case 2:return d?a(b[0],b[1]):a.call(c,b[0],b[1]);case 3:return d?a(b[0],b[1],b[2]):a.call(c,b[0],b[1],b[2]);case 4:return d?a(b[0],b[1],b[2],b[3]):a.call(c,b[0],b[1],b[2],b[3])}return a.apply(c,b)}},{}],51:[function(a,b,c){b.exports=function(a){return"object"==typeof a?null!==a:"function"==typeof a}},{}],52:[function(a,b,c){var d=a("./_an-object"),e=a("./_ie8-dom-define"),f=a("./_to-primitive"),g=Object.defineProperty;c.f=a("./_descriptors")?Object.defineProperty:function(a,b,c){if(d(a),b=f(b,!0),d(c),e)try{return g(a,b,c)}catch(h){}if("get"in c||"set"in c)throw TypeError("Accessors not supported!");return"value"in c&&(a[b]=c.value),a}},{"./_an-object":38,"./_descriptors":42,"./_ie8-dom-define":49,"./_to-primitive":55}],53:[function(a,b,c){b.exports=function(a,b){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:b}}},{}],54:[function(a,b,c){var d,e,f,g=a("./_ctx"),h=a("./_invoke"),i=a("./_html"),j=a("./_dom-create"),k=a("./_global"),l=k.process,m=k.setImmediate,n=k.clearImmediate,o=k.MessageChannel,p=0,q={},r="onreadystatechange",s=function(){var a=+this;if(q.hasOwnProperty(a)){var b=q[a];delete q[a],b()}},t=function(a){s.call(a.data)};m&&n||(m=function(a){for(var b=[],c=1;arguments.length>c;)b.push(arguments[c++]);return q[++p]=function(){h("function"==typeof a?a:Function(a),b)},d(p),p},n=function(a){delete q[a]},"process"==a("./_cof")(l)?d=function(a){l.nextTick(g(s,a,1))}:o?(e=new o,f=e.port2,e.port1.onmessage=t,d=g(f.postMessage,f,1)):k.addEventListener&&"function"==typeof postMessage&&!k.importScripts?(d=function(a){k.postMessage(a+"","*")},k.addEventListener("message",t,!1)):d=r in j("script")?function(a){i.appendChild(j("script"))[r]=function(){i.removeChild(this),s.call(a)}}:function(a){setTimeout(g(s,a,1),0)}),b.exports={set:m,clear:n}},{"./_cof":39,"./_ctx":41,"./_dom-create":43,"./_global":46,"./_html":48,"./_invoke":50}],55:[function(a,b,c){var d=a("./_is-object");b.exports=function(a,b){if(!d(a))return a;var c,e;if(b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a)))return e;if("function"==typeof(c=a.valueOf)&&!d(e=c.call(a)))return e;if(!b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a)))return e;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":51}],56:[function(a,b,c){var d=a("./_export"),e=a("./_task");d(d.G+d.B,{setImmediate:e.set,clearImmediate:e.clear})},{"./_export":44,"./_task":54}],57:[function(a,b,c){(function(a){"use strict";function c(){k=!0;for(var a,b,c=l.length;c;){for(b=l,l=[],a=-1;++a<c;)b[a]();c=l.length}k=!1}function d(a){1!==l.push(a)||k||e()}var e,f=a.MutationObserver||a.WebKitMutationObserver;if(f){var g=0,h=new f(c),i=a.document.createTextNode("");h.observe(i,{characterData:!0}),e=function(){i.data=g=++g%2}}else if(a.setImmediate||"undefined"==typeof a.MessageChannel)e="document"in a&&"onreadystatechange"in a.document.createElement("script")?function(){var b=a.document.createElement("script");b.onreadystatechange=function(){c(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},a.document.documentElement.appendChild(b)}:function(){setTimeout(c,0)};else{var j=new a.MessageChannel;j.port1.onmessage=c,e=function(){j.port2.postMessage(0)}}var k,l=[];b.exports=d}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],58:[function(a,b,c){"use strict";function d(){}function e(a){if("function"!=typeof a)throw new TypeError("resolver must be a function");this.state=s,this.queue=[],this.outcome=void 0,a!==d&&i(this,a)}function f(a,b,c){this.promise=a,"function"==typeof b&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),"function"==typeof c&&(this.onRejected=c,this.callRejected=this.otherCallRejected)}function g(a,b,c){o(function(){var d;try{d=b(c)}catch(e){return p.reject(a,e)}d===a?p.reject(a,new TypeError("Cannot resolve promise with itself")):p.resolve(a,d)})}function h(a){var b=a&&a.then;if(a&&"object"==typeof a&&"function"==typeof b)return function(){b.apply(a,arguments)}}function i(a,b){function c(b){f||(f=!0,p.reject(a,b))}function d(b){f||(f=!0,p.resolve(a,b))}function e(){b(d,c)}var f=!1,g=j(e);"error"===g.status&&c(g.value)}function j(a,b){var c={};try{c.value=a(b),c.status="success"}catch(d){c.status="error",c.value=d}return c}function k(a){return a instanceof this?a:p.resolve(new this(d),a)}function l(a){var b=new this(d);return p.reject(b,a)}function m(a){function b(a,b){function d(a){g[b]=a,++h!==e||f||(f=!0,p.resolve(j,g))}c.resolve(a).then(d,function(a){f||(f=!0,p.reject(j,a))})}var c=this;if("[object Array]"!==Object.prototype.toString.call(a))return this.reject(new TypeError("must be an array"));var e=a.length,f=!1;if(!e)return this.resolve([]);for(var g=new Array(e),h=0,i=-1,j=new this(d);++i<e;)b(a[i],i);return j}function n(a){function b(a){c.resolve(a).then(function(a){f||(f=!0,p.resolve(h,a))},function(a){f||(f=!0,p.reject(h,a))})}var c=this;if("[object Array]"!==Object.prototype.toString.call(a))return this.reject(new TypeError("must be an array"));var e=a.length,f=!1;if(!e)return this.resolve([]);for(var g=-1,h=new this(d);++g<e;)b(a[g]);return h}var o=a("immediate"),p={},q=["REJECTED"],r=["FULFILLED"],s=["PENDING"];b.exports=e,e.prototype["catch"]=function(a){return this.then(null,a)},e.prototype.then=function(a,b){if("function"!=typeof a&&this.state===r||"function"!=typeof b&&this.state===q)return this;var c=new this.constructor(d);if(this.state!==s){var e=this.state===r?a:b;g(c,e,this.outcome)}else this.queue.push(new f(c,a,b));return c},f.prototype.callFulfilled=function(a){p.resolve(this.promise,a)},f.prototype.otherCallFulfilled=function(a){g(this.promise,this.onFulfilled,a)},f.prototype.callRejected=function(a){p.reject(this.promise,a)},f.prototype.otherCallRejected=function(a){g(this.promise,this.onRejected,a)},p.resolve=function(a,b){var c=j(h,b);if("error"===c.status)return p.reject(a,c.value);var d=c.value;if(d)i(a,d);else{a.state=r,a.outcome=b;for(var e=-1,f=a.queue.length;++e<f;)a.queue[e].callFulfilled(b)}return a},p.reject=function(a,b){a.state=q,a.outcome=b;for(var c=-1,d=a.queue.length;++c<d;)a.queue[c].callRejected(b);return a},e.resolve=k,e.reject=l,e.all=m,e.race=n},{immediate:57}],59:[function(a,b,c){"use strict";var d=a("./lib/utils/common").assign,e=a("./lib/deflate"),f=a("./lib/inflate"),g=a("./lib/zlib/constants"),h={};d(h,e,f,g),b.exports=h},{"./lib/deflate":60,"./lib/inflate":61,"./lib/utils/common":62,"./lib/zlib/constants":65}],60:[function(a,b,c){"use strict";function d(a){if(!(this instanceof d))return new d(a);this.options=i.assign({level:s,method:u,chunkSize:16384,windowBits:15,memLevel:8,strategy:t,to:""},a||{});var b=this.options;b.raw&&b.windowBits>0?b.windowBits=-b.windowBits:b.gzip&&b.windowBits>0&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var c=h.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(c!==p)throw new Error(k[c]);if(b.header&&h.deflateSetHeader(this.strm,b.header),b.dictionary){var e;if(e="string"==typeof b.dictionary?j.string2buf(b.dictionary):"[object ArrayBuffer]"===m.call(b.dictionary)?new Uint8Array(b.dictionary):b.dictionary,c=h.deflateSetDictionary(this.strm,e),c!==p)throw new Error(k[c]);this._dict_set=!0}}function e(a,b){var c=new d(b);if(c.push(a,!0),c.err)throw c.msg;return c.result}function f(a,b){return b=b||{},b.raw=!0,e(a,b)}function g(a,b){return b=b||{},b.gzip=!0,e(a,b)}var h=a("./zlib/deflate"),i=a("./utils/common"),j=a("./utils/strings"),k=a("./zlib/messages"),l=a("./zlib/zstream"),m=Object.prototype.toString,n=0,o=4,p=0,q=1,r=2,s=-1,t=0,u=8;d.prototype.push=function(a,b){var c,d,e=this.strm,f=this.options.chunkSize;if(this.ended)return!1;d=b===~~b?b:b===!0?o:n,"string"==typeof a?e.input=j.string2buf(a):"[object ArrayBuffer]"===m.call(a)?e.input=new Uint8Array(a):e.input=a,e.next_in=0,e.avail_in=e.input.length;do{if(0===e.avail_out&&(e.output=new i.Buf8(f),e.next_out=0,e.avail_out=f),c=h.deflate(e,d),c!==q&&c!==p)return this.onEnd(c),this.ended=!0,!1;0!==e.avail_out&&(0!==e.avail_in||d!==o&&d!==r)||("string"===this.options.to?this.onData(j.buf2binstring(i.shrinkBuf(e.output,e.next_out))):this.onData(i.shrinkBuf(e.output,e.next_out)))}while((e.avail_in>0||0===e.avail_out)&&c!==q);return d===o?(c=h.deflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===p):d!==r||(this.onEnd(p),e.avail_out=0,!0)},d.prototype.onData=function(a){this.chunks.push(a)},d.prototype.onEnd=function(a){a===p&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},c.Deflate=d,c.deflate=e,c.deflateRaw=f,c.gzip=g},{"./utils/common":62,"./utils/strings":63,"./zlib/deflate":67,"./zlib/messages":72,"./zlib/zstream":74}],61:[function(a,b,c){"use strict";function d(a){if(!(this instanceof d))return new d(a);this.options=h.assign({chunkSize:16384,windowBits:0,to:""},a||{});var b=this.options;b.raw&&b.windowBits>=0&&b.windowBits<16&&(b.windowBits=-b.windowBits,0===b.windowBits&&(b.windowBits=-15)),!(b.windowBits>=0&&b.windowBits<16)||a&&a.windowBits||(b.windowBits+=32),b.windowBits>15&&b.windowBits<48&&0===(15&b.windowBits)&&(b.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var c=g.inflateInit2(this.strm,b.windowBits);if(c!==j.Z_OK)throw new Error(k[c]);this.header=new m,g.inflateGetHeader(this.strm,this.header)}function e(a,b){var c=new d(b);if(c.push(a,!0),c.err)throw c.msg;return c.result}function f(a,b){return b=b||{},b.raw=!0,e(a,b)}var g=a("./zlib/inflate"),h=a("./utils/common"),i=a("./utils/strings"),j=a("./zlib/constants"),k=a("./zlib/messages"),l=a("./zlib/zstream"),m=a("./zlib/gzheader"),n=Object.prototype.toString;d.prototype.push=function(a,b){var c,d,e,f,k,l,m=this.strm,o=this.options.chunkSize,p=this.options.dictionary,q=!1;if(this.ended)return!1;d=b===~~b?b:b===!0?j.Z_FINISH:j.Z_NO_FLUSH,"string"==typeof a?m.input=i.binstring2buf(a):"[object ArrayBuffer]"===n.call(a)?m.input=new Uint8Array(a):m.input=a,m.next_in=0,m.avail_in=m.input.length;do{if(0===m.avail_out&&(m.output=new h.Buf8(o),m.next_out=0,m.avail_out=o),c=g.inflate(m,j.Z_NO_FLUSH),c===j.Z_NEED_DICT&&p&&(l="string"==typeof p?i.string2buf(p):"[object ArrayBuffer]"===n.call(p)?new Uint8Array(p):p,c=g.inflateSetDictionary(this.strm,l)),c===j.Z_BUF_ERROR&&q===!0&&(c=j.Z_OK,q=!1),c!==j.Z_STREAM_END&&c!==j.Z_OK)return this.onEnd(c),this.ended=!0,!1;m.next_out&&(0!==m.avail_out&&c!==j.Z_STREAM_END&&(0!==m.avail_in||d!==j.Z_FINISH&&d!==j.Z_SYNC_FLUSH)||("string"===this.options.to?(e=i.utf8border(m.output,m.next_out),f=m.next_out-e,k=i.buf2string(m.output,e),m.next_out=f,m.avail_out=o-f,f&&h.arraySet(m.output,m.output,e,f,0),this.onData(k)):this.onData(h.shrinkBuf(m.output,m.next_out)))),0===m.avail_in&&0===m.avail_out&&(q=!0)}while((m.avail_in>0||0===m.avail_out)&&c!==j.Z_STREAM_END);return c===j.Z_STREAM_END&&(d=j.Z_FINISH),d===j.Z_FINISH?(c=g.inflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===j.Z_OK):d!==j.Z_SYNC_FLUSH||(this.onEnd(j.Z_OK),m.avail_out=0,!0)},d.prototype.onData=function(a){this.chunks.push(a)},d.prototype.onEnd=function(a){a===j.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=h.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},c.Inflate=d,c.inflate=e,c.inflateRaw=f,c.ungzip=e},{"./utils/common":62,"./utils/strings":63,"./zlib/constants":65,"./zlib/gzheader":68,"./zlib/inflate":70,"./zlib/messages":72,"./zlib/zstream":74}],62:[function(a,b,c){"use strict";var d="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;c.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!=typeof c)throw new TypeError(c+"must be non-object");for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])}}return a},c.shrinkBuf=function(a,b){return a.length===b?a:a.subarray?a.subarray(0,b):(a.length=b,a)};var e={arraySet:function(a,b,c,d,e){if(b.subarray&&a.subarray)return void a.set(b.subarray(c,c+d),e);for(var f=0;f<d;f++)a[e+f]=b[c+f]},flattenChunks:function(a){var b,c,d,e,f,g;for(d=0,b=0,c=a.length;b<c;b++)d+=a[b].length;for(g=new Uint8Array(d),e=0,b=0,c=a.length;b<c;b++)f=a[b],g.set(f,e),e+=f.length;return g}},f={arraySet:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},flattenChunks:function(a){return[].concat.apply([],a)}};c.setTyped=function(a){a?(c.Buf8=Uint8Array,c.Buf16=Uint16Array,c.Buf32=Int32Array,c.assign(c,e)):(c.Buf8=Array,c.Buf16=Array,c.Buf32=Array,c.assign(c,f))},c.setTyped(d)},{}],63:[function(a,b,c){"use strict";function d(a,b){if(b<65537&&(a.subarray&&g||!a.subarray&&f))return String.fromCharCode.apply(null,e.shrinkBuf(a,b));for(var c="",d=0;d<b;d++)c+=String.fromCharCode(a[d]);return c}var e=a("./common"),f=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch(h){f=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(h){g=!1}for(var i=new e.Buf8(256),j=0;j<256;j++)i[j]=j>=252?6:j>=248?5:j>=240?4:j>=224?3:j>=192?2:1;i[254]=i[254]=1,c.string2buf=function(a){var b,c,d,f,g,h=a.length,i=0;for(f=0;f<h;f++)c=a.charCodeAt(f),55296===(64512&c)&&f+1<h&&(d=a.charCodeAt(f+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),f++)),i+=c<128?1:c<2048?2:c<65536?3:4;for(b=new e.Buf8(i),g=0,f=0;g<i;f++)c=a.charCodeAt(f),55296===(64512&c)&&f+1<h&&(d=a.charCodeAt(f+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),f++)),c<128?b[g++]=c:c<2048?(b[g++]=192|c>>>6,b[g++]=128|63&c):c<65536?(b[g++]=224|c>>>12,b[g++]=128|c>>>6&63,b[g++]=128|63&c):(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63,b[g++]=128|c>>>6&63,b[g++]=128|63&c);return b},c.buf2binstring=function(a){return d(a,a.length)},c.binstring2buf=function(a){for(var b=new e.Buf8(a.length),c=0,d=b.length;c<d;c++)b[c]=a.charCodeAt(c);return b},c.buf2string=function(a,b){var c,e,f,g,h=b||a.length,j=new Array(2*h);for(e=0,c=0;c<h;)if(f=a[c++],f<128)j[e++]=f;else if(g=i[f],g>4)j[e++]=65533,c+=g-1;else{for(f&=2===g?31:3===g?15:7;g>1&&c<h;)f=f<<6|63&a[c++],g--;g>1?j[e++]=65533:f<65536?j[e++]=f:(f-=65536,j[e++]=55296|f>>10&1023,j[e++]=56320|1023&f)}return d(j,e)},c.utf8border=function(a,b){var c;for(b=b||a.length,b>a.length&&(b=a.length),c=b-1;c>=0&&128===(192&a[c]);)c--;return c<0?b:0===c?b:c+i[a[c]]>b?c:b}},{"./common":62}],64:[function(a,b,c){"use strict";function d(a,b,c,d){for(var e=65535&a|0,f=a>>>16&65535|0,g=0;0!==c;){g=c>2e3?2e3:c,c-=g;do e=e+b[d++]|0,f=f+e|0;while(--g);e%=65521,f%=65521}return e|f<<16|0}b.exports=d},{}],65:[function(a,b,c){"use strict";b.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],66:[function(a,b,c){"use strict";function d(){ for(var a,b=[],c=0;c<256;c++){a=c;for(var d=0;d<8;d++)a=1&a?3988292384^a>>>1:a>>>1;b[c]=a}return b}function e(a,b,c,d){var e=f,g=d+c;a^=-1;for(var h=d;h<g;h++)a=a>>>8^e[255&(a^b[h])];return a^-1}var f=d();b.exports=e},{}],67:[function(a,b,c){"use strict";function d(a,b){return a.msg=I[b],b}function e(a){return(a<<1)-(a>4?9:0)}function f(a){for(var b=a.length;--b>=0;)a[b]=0}function g(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out),0!==c&&(E.arraySet(a.output,b.pending_buf,b.pending_out,c,a.next_out),a.next_out+=c,b.pending_out+=c,a.total_out+=c,a.avail_out-=c,b.pending-=c,0===b.pending&&(b.pending_out=0))}function h(a,b){F._tr_flush_block(a,a.block_start>=0?a.block_start:-1,a.strstart-a.block_start,b),a.block_start=a.strstart,g(a.strm)}function i(a,b){a.pending_buf[a.pending++]=b}function j(a,b){a.pending_buf[a.pending++]=b>>>8&255,a.pending_buf[a.pending++]=255&b}function k(a,b,c,d){var e=a.avail_in;return e>d&&(e=d),0===e?0:(a.avail_in-=e,E.arraySet(b,a.input,a.next_in,e,c),1===a.state.wrap?a.adler=G(a.adler,b,e,c):2===a.state.wrap&&(a.adler=H(a.adler,b,e,c)),a.next_in+=e,a.total_in+=e,e)}function l(a,b){var c,d,e=a.max_chain_length,f=a.strstart,g=a.prev_length,h=a.nice_match,i=a.strstart>a.w_size-la?a.strstart-(a.w_size-la):0,j=a.window,k=a.w_mask,l=a.prev,m=a.strstart+ka,n=j[f+g-1],o=j[f+g];a.prev_length>=a.good_match&&(e>>=2),h>a.lookahead&&(h=a.lookahead);do if(c=b,j[c+g]===o&&j[c+g-1]===n&&j[c]===j[f]&&j[++c]===j[f+1]){f+=2,c++;do;while(j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&f<m);if(d=ka-(m-f),f=m-ka,d>g){if(a.match_start=b,g=d,d>=h)break;n=j[f+g-1],o=j[f+g]}}while((b=l[b&k])>i&&0!==--e);return g<=a.lookahead?g:a.lookahead}function m(a){var b,c,d,e,f,g=a.w_size;do{if(e=a.window_size-a.lookahead-a.strstart,a.strstart>=g+(g-la)){E.arraySet(a.window,a.window,g,g,0),a.match_start-=g,a.strstart-=g,a.block_start-=g,c=a.hash_size,b=c;do d=a.head[--b],a.head[b]=d>=g?d-g:0;while(--c);c=g,b=c;do d=a.prev[--b],a.prev[b]=d>=g?d-g:0;while(--c);e+=g}if(0===a.strm.avail_in)break;if(c=k(a.strm,a.window,a.strstart+a.lookahead,e),a.lookahead+=c,a.lookahead+a.insert>=ja)for(f=a.strstart-a.insert,a.ins_h=a.window[f],a.ins_h=(a.ins_h<<a.hash_shift^a.window[f+1])&a.hash_mask;a.insert&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[f+ja-1])&a.hash_mask,a.prev[f&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=f,f++,a.insert--,!(a.lookahead+a.insert<ja)););}while(a.lookahead<la&&0!==a.strm.avail_in)}function n(a,b){var c=65535;for(c>a.pending_buf_size-5&&(c=a.pending_buf_size-5);;){if(a.lookahead<=1){if(m(a),0===a.lookahead&&b===J)return ua;if(0===a.lookahead)break}a.strstart+=a.lookahead,a.lookahead=0;var d=a.block_start+c;if((0===a.strstart||a.strstart>=d)&&(a.lookahead=a.strstart-d,a.strstart=d,h(a,!1),0===a.strm.avail_out))return ua;if(a.strstart-a.block_start>=a.w_size-la&&(h(a,!1),0===a.strm.avail_out))return ua}return a.insert=0,b===M?(h(a,!0),0===a.strm.avail_out?wa:xa):a.strstart>a.block_start&&(h(a,!1),0===a.strm.avail_out)?ua:ua}function o(a,b){for(var c,d;;){if(a.lookahead<la){if(m(a),a.lookahead<la&&b===J)return ua;if(0===a.lookahead)break}if(c=0,a.lookahead>=ja&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+ja-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),0!==c&&a.strstart-c<=a.w_size-la&&(a.match_length=l(a,c)),a.match_length>=ja)if(d=F._tr_tally(a,a.strstart-a.match_start,a.match_length-ja),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=ja){a.match_length--;do a.strstart++,a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+ja-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart;while(0!==--a.match_length);a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+1])&a.hash_mask;else d=F._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(d&&(h(a,!1),0===a.strm.avail_out))return ua}return a.insert=a.strstart<ja-1?a.strstart:ja-1,b===M?(h(a,!0),0===a.strm.avail_out?wa:xa):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?ua:va}function p(a,b){for(var c,d,e;;){if(a.lookahead<la){if(m(a),a.lookahead<la&&b===J)return ua;if(0===a.lookahead)break}if(c=0,a.lookahead>=ja&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+ja-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),a.prev_length=a.match_length,a.prev_match=a.match_start,a.match_length=ja-1,0!==c&&a.prev_length<a.max_lazy_match&&a.strstart-c<=a.w_size-la&&(a.match_length=l(a,c),a.match_length<=5&&(a.strategy===U||a.match_length===ja&&a.strstart-a.match_start>4096)&&(a.match_length=ja-1)),a.prev_length>=ja&&a.match_length<=a.prev_length){e=a.strstart+a.lookahead-ja,d=F._tr_tally(a,a.strstart-1-a.prev_match,a.prev_length-ja),a.lookahead-=a.prev_length-1,a.prev_length-=2;do++a.strstart<=e&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+ja-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);while(0!==--a.prev_length);if(a.match_available=0,a.match_length=ja-1,a.strstart++,d&&(h(a,!1),0===a.strm.avail_out))return ua}else if(a.match_available){if(d=F._tr_tally(a,0,a.window[a.strstart-1]),d&&h(a,!1),a.strstart++,a.lookahead--,0===a.strm.avail_out)return ua}else a.match_available=1,a.strstart++,a.lookahead--}return a.match_available&&(d=F._tr_tally(a,0,a.window[a.strstart-1]),a.match_available=0),a.insert=a.strstart<ja-1?a.strstart:ja-1,b===M?(h(a,!0),0===a.strm.avail_out?wa:xa):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?ua:va}function q(a,b){for(var c,d,e,f,g=a.window;;){if(a.lookahead<=ka){if(m(a),a.lookahead<=ka&&b===J)return ua;if(0===a.lookahead)break}if(a.match_length=0,a.lookahead>=ja&&a.strstart>0&&(e=a.strstart-1,d=g[e],d===g[++e]&&d===g[++e]&&d===g[++e])){f=a.strstart+ka;do;while(d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&e<f);a.match_length=ka-(f-e),a.match_length>a.lookahead&&(a.match_length=a.lookahead)}if(a.match_length>=ja?(c=F._tr_tally(a,1,a.match_length-ja),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(c=F._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++),c&&(h(a,!1),0===a.strm.avail_out))return ua}return a.insert=0,b===M?(h(a,!0),0===a.strm.avail_out?wa:xa):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?ua:va}function r(a,b){for(var c;;){if(0===a.lookahead&&(m(a),0===a.lookahead)){if(b===J)return ua;break}if(a.match_length=0,c=F._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++,c&&(h(a,!1),0===a.strm.avail_out))return ua}return a.insert=0,b===M?(h(a,!0),0===a.strm.avail_out?wa:xa):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?ua:va}function s(a,b,c,d,e){this.good_length=a,this.max_lazy=b,this.nice_length=c,this.max_chain=d,this.func=e}function t(a){a.window_size=2*a.w_size,f(a.head),a.max_lazy_match=D[a.level].max_lazy,a.good_match=D[a.level].good_length,a.nice_match=D[a.level].nice_length,a.max_chain_length=D[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=ja-1,a.match_available=0,a.ins_h=0}function u(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=$,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new E.Buf16(2*ha),this.dyn_dtree=new E.Buf16(2*(2*fa+1)),this.bl_tree=new E.Buf16(2*(2*ga+1)),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new E.Buf16(ia+1),this.heap=new E.Buf16(2*ea+1),f(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new E.Buf16(2*ea+1),f(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function v(a){var b;return a&&a.state?(a.total_in=a.total_out=0,a.data_type=Z,b=a.state,b.pending=0,b.pending_out=0,b.wrap<0&&(b.wrap=-b.wrap),b.status=b.wrap?na:sa,a.adler=2===b.wrap?0:1,b.last_flush=J,F._tr_init(b),O):d(a,Q)}function w(a){var b=v(a);return b===O&&t(a.state),b}function x(a,b){return a&&a.state?2!==a.state.wrap?Q:(a.state.gzhead=b,O):Q}function y(a,b,c,e,f,g){if(!a)return Q;var h=1;if(b===T&&(b=6),e<0?(h=0,e=-e):e>15&&(h=2,e-=16),f<1||f>_||c!==$||e<8||e>15||b<0||b>9||g<0||g>X)return d(a,Q);8===e&&(e=9);var i=new u;return a.state=i,i.strm=a,i.wrap=h,i.gzhead=null,i.w_bits=e,i.w_size=1<<i.w_bits,i.w_mask=i.w_size-1,i.hash_bits=f+7,i.hash_size=1<<i.hash_bits,i.hash_mask=i.hash_size-1,i.hash_shift=~~((i.hash_bits+ja-1)/ja),i.window=new E.Buf8(2*i.w_size),i.head=new E.Buf16(i.hash_size),i.prev=new E.Buf16(i.w_size),i.lit_bufsize=1<<f+6,i.pending_buf_size=4*i.lit_bufsize,i.pending_buf=new E.Buf8(i.pending_buf_size),i.d_buf=1*i.lit_bufsize,i.l_buf=3*i.lit_bufsize,i.level=b,i.strategy=g,i.method=c,w(a)}function z(a,b){return y(a,b,$,aa,ba,Y)}function A(a,b){var c,h,k,l;if(!a||!a.state||b>N||b<0)return a?d(a,Q):Q;if(h=a.state,!a.output||!a.input&&0!==a.avail_in||h.status===ta&&b!==M)return d(a,0===a.avail_out?S:Q);if(h.strm=a,c=h.last_flush,h.last_flush=b,h.status===na)if(2===h.wrap)a.adler=0,i(h,31),i(h,139),i(h,8),h.gzhead?(i(h,(h.gzhead.text?1:0)+(h.gzhead.hcrc?2:0)+(h.gzhead.extra?4:0)+(h.gzhead.name?8:0)+(h.gzhead.comment?16:0)),i(h,255&h.gzhead.time),i(h,h.gzhead.time>>8&255),i(h,h.gzhead.time>>16&255),i(h,h.gzhead.time>>24&255),i(h,9===h.level?2:h.strategy>=V||h.level<2?4:0),i(h,255&h.gzhead.os),h.gzhead.extra&&h.gzhead.extra.length&&(i(h,255&h.gzhead.extra.length),i(h,h.gzhead.extra.length>>8&255)),h.gzhead.hcrc&&(a.adler=H(a.adler,h.pending_buf,h.pending,0)),h.gzindex=0,h.status=oa):(i(h,0),i(h,0),i(h,0),i(h,0),i(h,0),i(h,9===h.level?2:h.strategy>=V||h.level<2?4:0),i(h,ya),h.status=sa);else{var m=$+(h.w_bits-8<<4)<<8,n=-1;n=h.strategy>=V||h.level<2?0:h.level<6?1:6===h.level?2:3,m|=n<<6,0!==h.strstart&&(m|=ma),m+=31-m%31,h.status=sa,j(h,m),0!==h.strstart&&(j(h,a.adler>>>16),j(h,65535&a.adler)),a.adler=1}if(h.status===oa)if(h.gzhead.extra){for(k=h.pending;h.gzindex<(65535&h.gzhead.extra.length)&&(h.pending!==h.pending_buf_size||(h.gzhead.hcrc&&h.pending>k&&(a.adler=H(a.adler,h.pending_buf,h.pending-k,k)),g(a),k=h.pending,h.pending!==h.pending_buf_size));)i(h,255&h.gzhead.extra[h.gzindex]),h.gzindex++;h.gzhead.hcrc&&h.pending>k&&(a.adler=H(a.adler,h.pending_buf,h.pending-k,k)),h.gzindex===h.gzhead.extra.length&&(h.gzindex=0,h.status=pa)}else h.status=pa;if(h.status===pa)if(h.gzhead.name){k=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>k&&(a.adler=H(a.adler,h.pending_buf,h.pending-k,k)),g(a),k=h.pending,h.pending===h.pending_buf_size)){l=1;break}l=h.gzindex<h.gzhead.name.length?255&h.gzhead.name.charCodeAt(h.gzindex++):0,i(h,l)}while(0!==l);h.gzhead.hcrc&&h.pending>k&&(a.adler=H(a.adler,h.pending_buf,h.pending-k,k)),0===l&&(h.gzindex=0,h.status=qa)}else h.status=qa;if(h.status===qa)if(h.gzhead.comment){k=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>k&&(a.adler=H(a.adler,h.pending_buf,h.pending-k,k)),g(a),k=h.pending,h.pending===h.pending_buf_size)){l=1;break}l=h.gzindex<h.gzhead.comment.length?255&h.gzhead.comment.charCodeAt(h.gzindex++):0,i(h,l)}while(0!==l);h.gzhead.hcrc&&h.pending>k&&(a.adler=H(a.adler,h.pending_buf,h.pending-k,k)),0===l&&(h.status=ra)}else h.status=ra;if(h.status===ra&&(h.gzhead.hcrc?(h.pending+2>h.pending_buf_size&&g(a),h.pending+2<=h.pending_buf_size&&(i(h,255&a.adler),i(h,a.adler>>8&255),a.adler=0,h.status=sa)):h.status=sa),0!==h.pending){if(g(a),0===a.avail_out)return h.last_flush=-1,O}else if(0===a.avail_in&&e(b)<=e(c)&&b!==M)return d(a,S);if(h.status===ta&&0!==a.avail_in)return d(a,S);if(0!==a.avail_in||0!==h.lookahead||b!==J&&h.status!==ta){var o=h.strategy===V?r(h,b):h.strategy===W?q(h,b):D[h.level].func(h,b);if(o!==wa&&o!==xa||(h.status=ta),o===ua||o===wa)return 0===a.avail_out&&(h.last_flush=-1),O;if(o===va&&(b===K?F._tr_align(h):b!==N&&(F._tr_stored_block(h,0,0,!1),b===L&&(f(h.head),0===h.lookahead&&(h.strstart=0,h.block_start=0,h.insert=0))),g(a),0===a.avail_out))return h.last_flush=-1,O}return b!==M?O:h.wrap<=0?P:(2===h.wrap?(i(h,255&a.adler),i(h,a.adler>>8&255),i(h,a.adler>>16&255),i(h,a.adler>>24&255),i(h,255&a.total_in),i(h,a.total_in>>8&255),i(h,a.total_in>>16&255),i(h,a.total_in>>24&255)):(j(h,a.adler>>>16),j(h,65535&a.adler)),g(a),h.wrap>0&&(h.wrap=-h.wrap),0!==h.pending?O:P)}function B(a){var b;return a&&a.state?(b=a.state.status,b!==na&&b!==oa&&b!==pa&&b!==qa&&b!==ra&&b!==sa&&b!==ta?d(a,Q):(a.state=null,b===sa?d(a,R):O)):Q}function C(a,b){var c,d,e,g,h,i,j,k,l=b.length;if(!a||!a.state)return Q;if(c=a.state,g=c.wrap,2===g||1===g&&c.status!==na||c.lookahead)return Q;for(1===g&&(a.adler=G(a.adler,b,l,0)),c.wrap=0,l>=c.w_size&&(0===g&&(f(c.head),c.strstart=0,c.block_start=0,c.insert=0),k=new E.Buf8(c.w_size),E.arraySet(k,b,l-c.w_size,c.w_size,0),b=k,l=c.w_size),h=a.avail_in,i=a.next_in,j=a.input,a.avail_in=l,a.next_in=0,a.input=b,m(c);c.lookahead>=ja;){d=c.strstart,e=c.lookahead-(ja-1);do c.ins_h=(c.ins_h<<c.hash_shift^c.window[d+ja-1])&c.hash_mask,c.prev[d&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=d,d++;while(--e);c.strstart=d,c.lookahead=ja-1,m(c)}return c.strstart+=c.lookahead,c.block_start=c.strstart,c.insert=c.lookahead,c.lookahead=0,c.match_length=c.prev_length=ja-1,c.match_available=0,a.next_in=i,a.input=j,a.avail_in=h,c.wrap=g,O}var D,E=a("../utils/common"),F=a("./trees"),G=a("./adler32"),H=a("./crc32"),I=a("./messages"),J=0,K=1,L=3,M=4,N=5,O=0,P=1,Q=-2,R=-3,S=-5,T=-1,U=1,V=2,W=3,X=4,Y=0,Z=2,$=8,_=9,aa=15,ba=8,ca=29,da=256,ea=da+1+ca,fa=30,ga=19,ha=2*ea+1,ia=15,ja=3,ka=258,la=ka+ja+1,ma=32,na=42,oa=69,pa=73,qa=91,ra=103,sa=113,ta=666,ua=1,va=2,wa=3,xa=4,ya=3;D=[new s(0,0,0,0,n),new s(4,4,8,4,o),new s(4,5,16,8,o),new s(4,6,32,32,o),new s(4,4,16,16,p),new s(8,16,32,32,p),new s(8,16,128,128,p),new s(8,32,128,256,p),new s(32,128,258,1024,p),new s(32,258,258,4096,p)],c.deflateInit=z,c.deflateInit2=y,c.deflateReset=w,c.deflateResetKeep=v,c.deflateSetHeader=x,c.deflate=A,c.deflateEnd=B,c.deflateSetDictionary=C,c.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":62,"./adler32":64,"./crc32":66,"./messages":72,"./trees":73}],68:[function(a,b,c){"use strict";function d(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}b.exports=d},{}],69:[function(a,b,c){"use strict";var d=30,e=12;b.exports=function(a,b){var c,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C;c=a.state,f=a.next_in,B=a.input,g=f+(a.avail_in-5),h=a.next_out,C=a.output,i=h-(b-a.avail_out),j=h+(a.avail_out-257),k=c.dmax,l=c.wsize,m=c.whave,n=c.wnext,o=c.window,p=c.hold,q=c.bits,r=c.lencode,s=c.distcode,t=(1<<c.lenbits)-1,u=(1<<c.distbits)-1;a:do{q<15&&(p+=B[f++]<<q,q+=8,p+=B[f++]<<q,q+=8),v=r[p&t];b:for(;;){if(w=v>>>24,p>>>=w,q-=w,w=v>>>16&255,0===w)C[h++]=65535&v;else{if(!(16&w)){if(0===(64&w)){v=r[(65535&v)+(p&(1<<w)-1)];continue b}if(32&w){c.mode=e;break a}a.msg="invalid literal/length code",c.mode=d;break a}x=65535&v,w&=15,w&&(q<w&&(p+=B[f++]<<q,q+=8),x+=p&(1<<w)-1,p>>>=w,q-=w),q<15&&(p+=B[f++]<<q,q+=8,p+=B[f++]<<q,q+=8),v=s[p&u];c:for(;;){if(w=v>>>24,p>>>=w,q-=w,w=v>>>16&255,!(16&w)){if(0===(64&w)){v=s[(65535&v)+(p&(1<<w)-1)];continue c}a.msg="invalid distance code",c.mode=d;break a}if(y=65535&v,w&=15,q<w&&(p+=B[f++]<<q,q+=8,q<w&&(p+=B[f++]<<q,q+=8)),y+=p&(1<<w)-1,y>k){a.msg="invalid distance too far back",c.mode=d;break a}if(p>>>=w,q-=w,w=h-i,y>w){if(w=y-w,w>m&&c.sane){a.msg="invalid distance too far back",c.mode=d;break a}if(z=0,A=o,0===n){if(z+=l-w,w<x){x-=w;do C[h++]=o[z++];while(--w);z=h-y,A=C}}else if(n<w){if(z+=l+n-w,w-=n,w<x){x-=w;do C[h++]=o[z++];while(--w);if(z=0,n<x){w=n,x-=w;do C[h++]=o[z++];while(--w);z=h-y,A=C}}}else if(z+=n-w,w<x){x-=w;do C[h++]=o[z++];while(--w);z=h-y,A=C}for(;x>2;)C[h++]=A[z++],C[h++]=A[z++],C[h++]=A[z++],x-=3;x&&(C[h++]=A[z++],x>1&&(C[h++]=A[z++]))}else{z=h-y;do C[h++]=C[z++],C[h++]=C[z++],C[h++]=C[z++],x-=3;while(x>2);x&&(C[h++]=C[z++],x>1&&(C[h++]=C[z++]))}break}}break}}while(f<g&&h<j);x=q>>3,f-=x,q-=x<<3,p&=(1<<q)-1,a.next_in=f,a.next_out=h,a.avail_in=f<g?5+(g-f):5-(f-g),a.avail_out=h<j?257+(j-h):257-(h-j),c.hold=p,c.bits=q}},{}],70:[function(a,b,c){"use strict";function d(a){return(a>>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<24)}function e(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=b.total=0,a.msg="",b.wrap&&(a.adler=1&b.wrap),b.mode=L,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new s.Buf32(pa),b.distcode=b.distdyn=new s.Buf32(qa),b.sane=1,b.back=-1,D):G}function g(a){var b;return a&&a.state?(b=a.state,b.wsize=0,b.whave=0,b.wnext=0,f(a)):G}function h(a,b){var c,d;return a&&a.state?(d=a.state,b<0?(c=0,b=-b):(c=(b>>4)+1,b<48&&(b&=15)),b&&(b<8||b>15)?G:(null!==d.window&&d.wbits!==b&&(d.window=null),d.wrap=c,d.wbits=b,g(a))):G}function i(a,b){var c,d;return a?(d=new e,a.state=d,d.window=null,c=h(a,b),c!==D&&(a.state=null),c):G}function j(a){return i(a,sa)}function k(a){if(ta){var b;for(q=new s.Buf32(512),r=new s.Buf32(32),b=0;b<144;)a.lens[b++]=8;for(;b<256;)a.lens[b++]=9;for(;b<280;)a.lens[b++]=7;for(;b<288;)a.lens[b++]=8;for(w(y,a.lens,0,288,q,0,a.work,{bits:9}),b=0;b<32;)a.lens[b++]=5;w(z,a.lens,0,32,r,0,a.work,{bits:5}),ta=!1}a.lencode=q,a.lenbits=9,a.distcode=r,a.distbits=5}function l(a,b,c,d){var e,f=a.state;return null===f.window&&(f.wsize=1<<f.wbits,f.wnext=0,f.whave=0,f.window=new s.Buf8(f.wsize)),d>=f.wsize?(s.arraySet(f.window,b,c-f.wsize,f.wsize,0),f.wnext=0,f.whave=f.wsize):(e=f.wsize-f.wnext,e>d&&(e=d),s.arraySet(f.window,b,c-d,e,f.wnext),d-=e,d?(s.arraySet(f.window,b,c-d,d,0),f.wnext=d,f.whave=f.wsize):(f.wnext+=e,f.wnext===f.wsize&&(f.wnext=0),f.whave<f.wsize&&(f.whave+=e))),0}function m(a,b){var c,e,f,g,h,i,j,m,n,o,p,q,r,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa=0,Ba=new s.Buf8(4),Ca=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!a||!a.state||!a.output||!a.input&&0!==a.avail_in)return G;c=a.state,c.mode===W&&(c.mode=X),h=a.next_out,f=a.output,j=a.avail_out,g=a.next_in,e=a.input,i=a.avail_in,m=c.hold,n=c.bits,o=i,p=j,xa=D;a:for(;;)switch(c.mode){case L:if(0===c.wrap){c.mode=X;break}for(;n<16;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(2&c.wrap&&35615===m){c.check=0,Ba[0]=255&m,Ba[1]=m>>>8&255,c.check=u(c.check,Ba,2,0),m=0,n=0,c.mode=M;break}if(c.flags=0,c.head&&(c.head.done=!1),!(1&c.wrap)||(((255&m)<<8)+(m>>8))%31){a.msg="incorrect header check",c.mode=ma;break}if((15&m)!==K){a.msg="unknown compression method",c.mode=ma;break}if(m>>>=4,n-=4,wa=(15&m)+8,0===c.wbits)c.wbits=wa;else if(wa>c.wbits){a.msg="invalid window size",c.mode=ma;break}c.dmax=1<<wa,a.adler=c.check=1,c.mode=512&m?U:W,m=0,n=0;break;case M:for(;n<16;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(c.flags=m,(255&c.flags)!==K){a.msg="unknown compression method",c.mode=ma;break}if(57344&c.flags){a.msg="unknown header flags set",c.mode=ma;break}c.head&&(c.head.text=m>>8&1),512&c.flags&&(Ba[0]=255&m,Ba[1]=m>>>8&255,c.check=u(c.check,Ba,2,0)),m=0,n=0,c.mode=N;case N:for(;n<32;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.head&&(c.head.time=m),512&c.flags&&(Ba[0]=255&m,Ba[1]=m>>>8&255,Ba[2]=m>>>16&255,Ba[3]=m>>>24&255,c.check=u(c.check,Ba,4,0)),m=0,n=0,c.mode=O;case O:for(;n<16;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.head&&(c.head.xflags=255&m,c.head.os=m>>8),512&c.flags&&(Ba[0]=255&m,Ba[1]=m>>>8&255,c.check=u(c.check,Ba,2,0)),m=0,n=0,c.mode=P;case P:if(1024&c.flags){for(;n<16;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.length=m,c.head&&(c.head.extra_len=m),512&c.flags&&(Ba[0]=255&m,Ba[1]=m>>>8&255,c.check=u(c.check,Ba,2,0)),m=0,n=0}else c.head&&(c.head.extra=null);c.mode=Q;case Q:if(1024&c.flags&&(q=c.length,q>i&&(q=i),q&&(c.head&&(wa=c.head.extra_len-c.length,c.head.extra||(c.head.extra=new Array(c.head.extra_len)),s.arraySet(c.head.extra,e,g,q,wa)),512&c.flags&&(c.check=u(c.check,e,q,g)),i-=q,g+=q,c.length-=q),c.length))break a;c.length=0,c.mode=R;case R:if(2048&c.flags){if(0===i)break a;q=0;do wa=e[g+q++],c.head&&wa&&c.length<65536&&(c.head.name+=String.fromCharCode(wa));while(wa&&q<i);if(512&c.flags&&(c.check=u(c.check,e,q,g)),i-=q,g+=q,wa)break a}else c.head&&(c.head.name=null);c.length=0,c.mode=S;case S:if(4096&c.flags){if(0===i)break a;q=0;do wa=e[g+q++],c.head&&wa&&c.length<65536&&(c.head.comment+=String.fromCharCode(wa));while(wa&&q<i);if(512&c.flags&&(c.check=u(c.check,e,q,g)),i-=q,g+=q,wa)break a}else c.head&&(c.head.comment=null);c.mode=T;case T:if(512&c.flags){for(;n<16;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(m!==(65535&c.check)){a.msg="header crc mismatch",c.mode=ma;break}m=0,n=0}c.head&&(c.head.hcrc=c.flags>>9&1,c.head.done=!0),a.adler=c.check=0,c.mode=W;break;case U:for(;n<32;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}a.adler=c.check=d(m),m=0,n=0,c.mode=V;case V:if(0===c.havedict)return a.next_out=h,a.avail_out=j,a.next_in=g,a.avail_in=i,c.hold=m,c.bits=n,F;a.adler=c.check=1,c.mode=W;case W:if(b===B||b===C)break a;case X:if(c.last){m>>>=7&n,n-=7&n,c.mode=ja;break}for(;n<3;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}switch(c.last=1&m,m>>>=1,n-=1,3&m){case 0:c.mode=Y;break;case 1:if(k(c),c.mode=ca,b===C){m>>>=2,n-=2;break a}break;case 2:c.mode=_;break;case 3:a.msg="invalid block type",c.mode=ma}m>>>=2,n-=2;break;case Y:for(m>>>=7&n,n-=7&n;n<32;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if((65535&m)!==(m>>>16^65535)){a.msg="invalid stored block lengths",c.mode=ma;break}if(c.length=65535&m,m=0,n=0,c.mode=Z,b===C)break a;case Z:c.mode=$;case $:if(q=c.length){if(q>i&&(q=i),q>j&&(q=j),0===q)break a;s.arraySet(f,e,g,q,h),i-=q,g+=q,j-=q,h+=q,c.length-=q;break}c.mode=W;break;case _:for(;n<14;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(c.nlen=(31&m)+257,m>>>=5,n-=5,c.ndist=(31&m)+1,m>>>=5,n-=5,c.ncode=(15&m)+4,m>>>=4,n-=4,c.nlen>286||c.ndist>30){a.msg="too many length or distance symbols",c.mode=ma;break}c.have=0,c.mode=aa;case aa:for(;c.have<c.ncode;){for(;n<3;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.lens[Ca[c.have++]]=7&m,m>>>=3,n-=3}for(;c.have<19;)c.lens[Ca[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,ya={bits:c.lenbits},xa=w(x,c.lens,0,19,c.lencode,0,c.work,ya),c.lenbits=ya.bits,xa){a.msg="invalid code lengths set",c.mode=ma;break}c.have=0,c.mode=ba;case ba:for(;c.have<c.nlen+c.ndist;){for(;Aa=c.lencode[m&(1<<c.lenbits)-1],qa=Aa>>>24,ra=Aa>>>16&255,sa=65535&Aa,!(qa<=n);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(sa<16)m>>>=qa,n-=qa,c.lens[c.have++]=sa;else{if(16===sa){for(za=qa+2;n<za;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(m>>>=qa,n-=qa,0===c.have){a.msg="invalid bit length repeat",c.mode=ma;break}wa=c.lens[c.have-1],q=3+(3&m),m>>>=2,n-=2}else if(17===sa){for(za=qa+3;n<za;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=qa,n-=qa,wa=0,q=3+(7&m),m>>>=3,n-=3}else{for(za=qa+7;n<za;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=qa,n-=qa,wa=0,q=11+(127&m),m>>>=7,n-=7}if(c.have+q>c.nlen+c.ndist){a.msg="invalid bit length repeat",c.mode=ma;break}for(;q--;)c.lens[c.have++]=wa}}if(c.mode===ma)break;if(0===c.lens[256]){a.msg="invalid code -- missing end-of-block",c.mode=ma;break}if(c.lenbits=9,ya={bits:c.lenbits},xa=w(y,c.lens,0,c.nlen,c.lencode,0,c.work,ya),c.lenbits=ya.bits,xa){a.msg="invalid literal/lengths set",c.mode=ma;break}if(c.distbits=6,c.distcode=c.distdyn,ya={bits:c.distbits},xa=w(z,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,ya),c.distbits=ya.bits,xa){a.msg="invalid distances set",c.mode=ma;break}if(c.mode=ca,b===C)break a;case ca:c.mode=da;case da:if(i>=6&&j>=258){a.next_out=h,a.avail_out=j,a.next_in=g,a.avail_in=i,c.hold=m,c.bits=n,v(a,p),h=a.next_out,f=a.output,j=a.avail_out,g=a.next_in,e=a.input,i=a.avail_in,m=c.hold,n=c.bits,c.mode===W&&(c.back=-1);break}for(c.back=0;Aa=c.lencode[m&(1<<c.lenbits)-1],qa=Aa>>>24,ra=Aa>>>16&255,sa=65535&Aa,!(qa<=n);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(ra&&0===(240&ra)){for(ta=qa,ua=ra,va=sa;Aa=c.lencode[va+((m&(1<<ta+ua)-1)>>ta)],qa=Aa>>>24,ra=Aa>>>16&255,sa=65535&Aa,!(ta+qa<=n);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=ta,n-=ta,c.back+=ta}if(m>>>=qa,n-=qa,c.back+=qa,c.length=sa,0===ra){c.mode=ia;break}if(32&ra){c.back=-1,c.mode=W;break}if(64&ra){a.msg="invalid literal/length code",c.mode=ma;break}c.extra=15&ra,c.mode=ea;case ea:if(c.extra){for(za=c.extra;n<za;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.length+=m&(1<<c.extra)-1,m>>>=c.extra,n-=c.extra,c.back+=c.extra}c.was=c.length,c.mode=fa;case fa:for(;Aa=c.distcode[m&(1<<c.distbits)-1],qa=Aa>>>24,ra=Aa>>>16&255,sa=65535&Aa,!(qa<=n);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(0===(240&ra)){for(ta=qa,ua=ra,va=sa;Aa=c.distcode[va+((m&(1<<ta+ua)-1)>>ta)],qa=Aa>>>24,ra=Aa>>>16&255,sa=65535&Aa,!(ta+qa<=n);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=ta,n-=ta,c.back+=ta}if(m>>>=qa,n-=qa,c.back+=qa,64&ra){a.msg="invalid distance code",c.mode=ma;break}c.offset=sa,c.extra=15&ra,c.mode=ga;case ga:if(c.extra){for(za=c.extra;n<za;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.offset+=m&(1<<c.extra)-1,m>>>=c.extra,n-=c.extra,c.back+=c.extra}if(c.offset>c.dmax){a.msg="invalid distance too far back",c.mode=ma;break}c.mode=ha;case ha:if(0===j)break a;if(q=p-j,c.offset>q){if(q=c.offset-q,q>c.whave&&c.sane){a.msg="invalid distance too far back",c.mode=ma;break}q>c.wnext?(q-=c.wnext,r=c.wsize-q):r=c.wnext-q,q>c.length&&(q=c.length),pa=c.window}else pa=f,r=h-c.offset,q=c.length;q>j&&(q=j),j-=q,c.length-=q;do f[h++]=pa[r++];while(--q);0===c.length&&(c.mode=da);break;case ia:if(0===j)break a;f[h++]=c.length,j--,c.mode=da;break;case ja:if(c.wrap){for(;n<32;){if(0===i)break a;i--,m|=e[g++]<<n,n+=8}if(p-=j,a.total_out+=p,c.total+=p,p&&(a.adler=c.check=c.flags?u(c.check,f,p,h-p):t(c.check,f,p,h-p)),p=j,(c.flags?m:d(m))!==c.check){a.msg="incorrect data check",c.mode=ma;break}m=0,n=0}c.mode=ka;case ka:if(c.wrap&&c.flags){for(;n<32;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(m!==(4294967295&c.total)){a.msg="incorrect length check",c.mode=ma;break}m=0,n=0}c.mode=la;case la:xa=E;break a;case ma:xa=H;break a;case na:return I;case oa:default:return G}return a.next_out=h,a.avail_out=j,a.next_in=g,a.avail_in=i,c.hold=m,c.bits=n,(c.wsize||p!==a.avail_out&&c.mode<ma&&(c.mode<ja||b!==A))&&l(a,a.output,a.next_out,p-a.avail_out)?(c.mode=na,I):(o-=a.avail_in,p-=a.avail_out,a.total_in+=o,a.total_out+=p,c.total+=p,c.wrap&&p&&(a.adler=c.check=c.flags?u(c.check,f,p,a.next_out-p):t(c.check,f,p,a.next_out-p)),a.data_type=c.bits+(c.last?64:0)+(c.mode===W?128:0)+(c.mode===ca||c.mode===Z?256:0),(0===o&&0===p||b===A)&&xa===D&&(xa=J),xa)}function n(a){if(!a||!a.state)return G;var b=a.state;return b.window&&(b.window=null),a.state=null,D}function o(a,b){var c;return a&&a.state?(c=a.state,0===(2&c.wrap)?G:(c.head=b,b.done=!1,D)):G}function p(a,b){var c,d,e,f=b.length;return a&&a.state?(c=a.state,0!==c.wrap&&c.mode!==V?G:c.mode===V&&(d=1,d=t(d,b,f,0),d!==c.check)?H:(e=l(a,b,f,f))?(c.mode=na,I):(c.havedict=1,D)):G}var q,r,s=a("../utils/common"),t=a("./adler32"),u=a("./crc32"),v=a("./inffast"),w=a("./inftrees"),x=0,y=1,z=2,A=4,B=5,C=6,D=0,E=1,F=2,G=-2,H=-3,I=-4,J=-5,K=8,L=1,M=2,N=3,O=4,P=5,Q=6,R=7,S=8,T=9,U=10,V=11,W=12,X=13,Y=14,Z=15,$=16,_=17,aa=18,ba=19,ca=20,da=21,ea=22,fa=23,ga=24,ha=25,ia=26,ja=27,ka=28,la=29,ma=30,na=31,oa=32,pa=852,qa=592,ra=15,sa=ra,ta=!0;c.inflateReset=g,c.inflateReset2=h,c.inflateResetKeep=f,c.inflateInit=j,c.inflateInit2=i,c.inflate=m,c.inflateEnd=n,c.inflateGetHeader=o,c.inflateSetDictionary=p,c.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":62,"./adler32":64,"./crc32":66,"./inffast":69,"./inftrees":71}],71:[function(a,b,c){"use strict";var d=a("../utils/common"),e=15,f=852,g=592,h=0,i=1,j=2,k=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],l=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],m=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],n=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];b.exports=function(a,b,c,o,p,q,r,s){var t,u,v,w,x,y,z,A,B,C=s.bits,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=null,O=0,P=new d.Buf16(e+1),Q=new d.Buf16(e+1),R=null,S=0;for(D=0;D<=e;D++)P[D]=0;for(E=0;E<o;E++)P[b[c+E]]++;for(H=C,G=e;G>=1&&0===P[G];G--);if(H>G&&(H=G),0===G)return p[q++]=20971520,p[q++]=20971520,s.bits=1,0;for(F=1;F<G&&0===P[F];F++);for(H<F&&(H=F),K=1,D=1;D<=e;D++)if(K<<=1,K-=P[D],K<0)return-1;if(K>0&&(a===h||1!==G))return-1;for(Q[1]=0,D=1;D<e;D++)Q[D+1]=Q[D]+P[D];for(E=0;E<o;E++)0!==b[c+E]&&(r[Q[b[c+E]]++]=E);if(a===h?(N=R=r,y=19):a===i?(N=k,O-=257,R=l,S-=257,y=256):(N=m,R=n,y=-1),M=0,E=0,D=F,x=q,I=H,J=0,v=-1,L=1<<H,w=L-1,a===i&&L>f||a===j&&L>g)return 1;for(var T=0;;){T++,z=D-J,r[E]<y?(A=0,B=r[E]):r[E]>y?(A=R[S+r[E]],B=N[O+r[E]]):(A=96,B=0),t=1<<D-J,u=1<<I,F=u;do u-=t,p[x+(M>>J)+u]=z<<24|A<<16|B|0;while(0!==u);for(t=1<<D-1;M&t;)t>>=1;if(0!==t?(M&=t-1,M+=t):M=0,E++,0===--P[D]){if(D===G)break;D=b[c+r[E]]}if(D>H&&(M&w)!==v){for(0===J&&(J=H),x+=F,I=D-J,K=1<<I;I+J<G&&(K-=P[I+J],!(K<=0));)I++,K<<=1;if(L+=1<<I,a===i&&L>f||a===j&&L>g)return 1;v=M&w,p[v]=H<<24|I<<16|x-q|0}}return 0!==M&&(p[x+M]=D-J<<24|64<<16|0),s.bits=H,0}},{"../utils/common":62}],72:[function(a,b,c){"use strict";b.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],73:[function(a,b,c){"use strict";function d(a){for(var b=a.length;--b>=0;)a[b]=0}function e(a,b,c,d,e){this.static_tree=a,this.extra_bits=b,this.extra_base=c,this.elems=d,this.max_length=e,this.has_stree=a&&a.length}function f(a,b){this.dyn_tree=a,this.max_code=0,this.stat_desc=b}function g(a){return a<256?ia[a]:ia[256+(a>>>7)]}function h(a,b){a.pending_buf[a.pending++]=255&b,a.pending_buf[a.pending++]=b>>>8&255}function i(a,b,c){a.bi_valid>X-c?(a.bi_buf|=b<<a.bi_valid&65535,h(a,a.bi_buf),a.bi_buf=b>>X-a.bi_valid,a.bi_valid+=c-X):(a.bi_buf|=b<<a.bi_valid&65535,a.bi_valid+=c)}function j(a,b,c){i(a,c[2*b],c[2*b+1])}function k(a,b){var c=0;do c|=1&a,a>>>=1,c<<=1;while(--b>0);return c>>>1}function l(a){16===a.bi_valid?(h(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a.bi_valid>=8&&(a.pending_buf[a.pending++]=255&a.bi_buf,a.bi_buf>>=8,a.bi_valid-=8)}function m(a,b){var c,d,e,f,g,h,i=b.dyn_tree,j=b.max_code,k=b.stat_desc.static_tree,l=b.stat_desc.has_stree,m=b.stat_desc.extra_bits,n=b.stat_desc.extra_base,o=b.stat_desc.max_length,p=0;for(f=0;f<=W;f++)a.bl_count[f]=0;for(i[2*a.heap[a.heap_max]+1]=0,c=a.heap_max+1;c<V;c++)d=a.heap[c],f=i[2*i[2*d+1]+1]+1,f>o&&(f=o,p++),i[2*d+1]=f,d>j||(a.bl_count[f]++,g=0,d>=n&&(g=m[d-n]),h=i[2*d],a.opt_len+=h*(f+g),l&&(a.static_len+=h*(k[2*d+1]+g)));if(0!==p){do{for(f=o-1;0===a.bl_count[f];)f--;a.bl_count[f]--,a.bl_count[f+1]+=2,a.bl_count[o]--,p-=2}while(p>0);for(f=o;0!==f;f--)for(d=a.bl_count[f];0!==d;)e=a.heap[--c],e>j||(i[2*e+1]!==f&&(a.opt_len+=(f-i[2*e+1])*i[2*e],i[2*e+1]=f),d--)}}function n(a,b,c){var d,e,f=new Array(W+1),g=0; for(d=1;d<=W;d++)f[d]=g=g+c[d-1]<<1;for(e=0;e<=b;e++){var h=a[2*e+1];0!==h&&(a[2*e]=k(f[h]++,h))}}function o(){var a,b,c,d,f,g=new Array(W+1);for(c=0,d=0;d<Q-1;d++)for(ka[d]=c,a=0;a<1<<ba[d];a++)ja[c++]=d;for(ja[c-1]=d,f=0,d=0;d<16;d++)for(la[d]=f,a=0;a<1<<ca[d];a++)ia[f++]=d;for(f>>=7;d<T;d++)for(la[d]=f<<7,a=0;a<1<<ca[d]-7;a++)ia[256+f++]=d;for(b=0;b<=W;b++)g[b]=0;for(a=0;a<=143;)ga[2*a+1]=8,a++,g[8]++;for(;a<=255;)ga[2*a+1]=9,a++,g[9]++;for(;a<=279;)ga[2*a+1]=7,a++,g[7]++;for(;a<=287;)ga[2*a+1]=8,a++,g[8]++;for(n(ga,S+1,g),a=0;a<T;a++)ha[2*a+1]=5,ha[2*a]=k(a,5);ma=new e(ga,ba,R+1,S,W),na=new e(ha,ca,0,T,W),oa=new e(new Array(0),da,0,U,Y)}function p(a){var b;for(b=0;b<S;b++)a.dyn_ltree[2*b]=0;for(b=0;b<T;b++)a.dyn_dtree[2*b]=0;for(b=0;b<U;b++)a.bl_tree[2*b]=0;a.dyn_ltree[2*Z]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function q(a){a.bi_valid>8?h(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function r(a,b,c,d){q(a),d&&(h(a,c),h(a,~c)),G.arraySet(a.pending_buf,a.window,b,c,a.pending),a.pending+=c}function s(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]}function t(a,b,c){for(var d=a.heap[c],e=c<<1;e<=a.heap_len&&(e<a.heap_len&&s(b,a.heap[e+1],a.heap[e],a.depth)&&e++,!s(b,d,a.heap[e],a.depth));)a.heap[c]=a.heap[e],c=e,e<<=1;a.heap[c]=d}function u(a,b,c){var d,e,f,h,k=0;if(0!==a.last_lit)do d=a.pending_buf[a.d_buf+2*k]<<8|a.pending_buf[a.d_buf+2*k+1],e=a.pending_buf[a.l_buf+k],k++,0===d?j(a,e,b):(f=ja[e],j(a,f+R+1,b),h=ba[f],0!==h&&(e-=ka[f],i(a,e,h)),d--,f=g(d),j(a,f,c),h=ca[f],0!==h&&(d-=la[f],i(a,d,h)));while(k<a.last_lit);j(a,Z,b)}function v(a,b){var c,d,e,f=b.dyn_tree,g=b.stat_desc.static_tree,h=b.stat_desc.has_stree,i=b.stat_desc.elems,j=-1;for(a.heap_len=0,a.heap_max=V,c=0;c<i;c++)0!==f[2*c]?(a.heap[++a.heap_len]=j=c,a.depth[c]=0):f[2*c+1]=0;for(;a.heap_len<2;)e=a.heap[++a.heap_len]=j<2?++j:0,f[2*e]=1,a.depth[e]=0,a.opt_len--,h&&(a.static_len-=g[2*e+1]);for(b.max_code=j,c=a.heap_len>>1;c>=1;c--)t(a,f,c);e=i;do c=a.heap[1],a.heap[1]=a.heap[a.heap_len--],t(a,f,1),d=a.heap[1],a.heap[--a.heap_max]=c,a.heap[--a.heap_max]=d,f[2*e]=f[2*c]+f[2*d],a.depth[e]=(a.depth[c]>=a.depth[d]?a.depth[c]:a.depth[d])+1,f[2*c+1]=f[2*d+1]=e,a.heap[1]=e++,t(a,f,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],m(a,b),n(f,j,a.bl_count)}function w(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),b[2*(c+1)+1]=65535,d=0;d<=c;d++)e=g,g=b[2*(d+1)+1],++h<i&&e===g||(h<j?a.bl_tree[2*e]+=h:0!==e?(e!==f&&a.bl_tree[2*e]++,a.bl_tree[2*$]++):h<=10?a.bl_tree[2*_]++:a.bl_tree[2*aa]++,h=0,f=e,0===g?(i=138,j=3):e===g?(i=6,j=3):(i=7,j=4))}function x(a,b,c){var d,e,f=-1,g=b[1],h=0,k=7,l=4;for(0===g&&(k=138,l=3),d=0;d<=c;d++)if(e=g,g=b[2*(d+1)+1],!(++h<k&&e===g)){if(h<l){do j(a,e,a.bl_tree);while(0!==--h)}else 0!==e?(e!==f&&(j(a,e,a.bl_tree),h--),j(a,$,a.bl_tree),i(a,h-3,2)):h<=10?(j(a,_,a.bl_tree),i(a,h-3,3)):(j(a,aa,a.bl_tree),i(a,h-11,7));h=0,f=e,0===g?(k=138,l=3):e===g?(k=6,l=3):(k=7,l=4)}}function y(a){var b;for(w(a,a.dyn_ltree,a.l_desc.max_code),w(a,a.dyn_dtree,a.d_desc.max_code),v(a,a.bl_desc),b=U-1;b>=3&&0===a.bl_tree[2*ea[b]+1];b--);return a.opt_len+=3*(b+1)+5+5+4,b}function z(a,b,c,d){var e;for(i(a,b-257,5),i(a,c-1,5),i(a,d-4,4),e=0;e<d;e++)i(a,a.bl_tree[2*ea[e]+1],3);x(a,a.dyn_ltree,b-1),x(a,a.dyn_dtree,c-1)}function A(a){var b,c=4093624447;for(b=0;b<=31;b++,c>>>=1)if(1&c&&0!==a.dyn_ltree[2*b])return I;if(0!==a.dyn_ltree[18]||0!==a.dyn_ltree[20]||0!==a.dyn_ltree[26])return J;for(b=32;b<R;b++)if(0!==a.dyn_ltree[2*b])return J;return I}function B(a){pa||(o(),pa=!0),a.l_desc=new f(a.dyn_ltree,ma),a.d_desc=new f(a.dyn_dtree,na),a.bl_desc=new f(a.bl_tree,oa),a.bi_buf=0,a.bi_valid=0,p(a)}function C(a,b,c,d){i(a,(L<<1)+(d?1:0),3),r(a,b,c,!0)}function D(a){i(a,M<<1,3),j(a,Z,ga),l(a)}function E(a,b,c,d){var e,f,g=0;a.level>0?(a.strm.data_type===K&&(a.strm.data_type=A(a)),v(a,a.l_desc),v(a,a.d_desc),g=y(a),e=a.opt_len+3+7>>>3,f=a.static_len+3+7>>>3,f<=e&&(e=f)):e=f=c+5,c+4<=e&&b!==-1?C(a,b,c,d):a.strategy===H||f===e?(i(a,(M<<1)+(d?1:0),3),u(a,ga,ha)):(i(a,(N<<1)+(d?1:0),3),z(a,a.l_desc.max_code+1,a.d_desc.max_code+1,g+1),u(a,a.dyn_ltree,a.dyn_dtree)),p(a),d&&q(a)}function F(a,b,c){return a.pending_buf[a.d_buf+2*a.last_lit]=b>>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&b,a.pending_buf[a.l_buf+a.last_lit]=255&c,a.last_lit++,0===b?a.dyn_ltree[2*c]++:(a.matches++,b--,a.dyn_ltree[2*(ja[c]+R+1)]++,a.dyn_dtree[2*g(b)]++),a.last_lit===a.lit_bufsize-1}var G=a("../utils/common"),H=4,I=0,J=1,K=2,L=0,M=1,N=2,O=3,P=258,Q=29,R=256,S=R+1+Q,T=30,U=19,V=2*S+1,W=15,X=16,Y=7,Z=256,$=16,_=17,aa=18,ba=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],ca=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],da=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ea=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],fa=512,ga=new Array(2*(S+2));d(ga);var ha=new Array(2*T);d(ha);var ia=new Array(fa);d(ia);var ja=new Array(P-O+1);d(ja);var ka=new Array(Q);d(ka);var la=new Array(T);d(la);var ma,na,oa,pa=!1;c._tr_init=B,c._tr_stored_block=C,c._tr_flush_block=E,c._tr_tally=F,c._tr_align=D},{"../utils/common":62}],74:[function(a,b,c){"use strict";function d(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}b.exports=d},{}]},{},[10])(10)});
/* -------------------App mata mosquito ------------------------------ */ /* capiturando altura e largura método window.inner */ // trazendo altura e largura pra fora do escopo da função var height = 0; var width = 0; // criando variaveis globais var vidas = 1; var pontos = 0; var pontosdatados = 0; // criando cronometro var tempo = 10; // padronizando tempo de aparição do mosquito var criaMosquitoTempo = 1500; /*-------------------Recuperando a URL para setar vida e tempo------------------------- */ /* window.location.search trás os valores ao lado direito de "?" */ var nivel = window.location.search; nivel = nivel.replace("?", ""); // código responsável por saber a dificuldade perante os values passado no select da DOOM(index.html - linha 60) if (nivel === "normal") { criaMosquitoTempo = 1500; // 1500 } else if (nivel === "dificil") { criaMosquitoTempo = 1000; tempo = 15; // 1000 } else if (nivel === "chuckNorris") { tempo = 20; criaMosquitoTempo = 750; } function ajustaTamanhoPalcoJogo() { // funcao que vai trazer altura e largura do dispositivo height = window.innerHeight; width = window.innerWidth; /* nota-se que o palco ficou dinâmico e agora trabalha a cada resize do body, evento onresize() */ } // chamada da função ajustaTamanhoPalcoJogo(); /*------ cronometro -----*/ var cronometro = setInterval(function () { /* innerHTML (Dentro do html, span) insere dentro da tag html que é o <span>(linha 29 - app.html) vamos incluir o valor de tempo */ tempo -= 1; if (tempo < 0) { clearInterval(cronometro); clearInterval(criaMosquito); window.location.href = "vitoria.html" + "?" + pontosdatados; // enviando os pontos como parâmetro pra vitoria } else { { document.getElementById("cronometro").innerHTML = tempo; } } }, 1000); /* ------Posicionando o mosquito de forma aleatoria----- */ /* por padrão o método random retorna valores de 0 à 1 mas se multiplicar pelo x e y de largura e altura temos números maiores. O método Math.floor(recebendo a multiplicação do random) arredonda pra baixo os valores pra não ter casas decimais desnecessárias */ /* Criando coordenadas de forma dinâmica */ function posicaoRandomica() { /* atribuino condicional para remover mosquito já existente a partir do id */ if (document.getElementById("mosquito")) { document.getElementById("mosquito").remove(); /* ------ logica responsavel por descontar um coração --------*/ if (vidas > 3) { // definir game over window.location.href = "fim_de_jogo.html" + "?" + pontosdatados; // enviamos pra URL seguinte os pontosdatados da função da linha 114 desse mesmo script } else { document.getElementById("v" + vidas).src = "imagens/coracao_vazio.png"; /* o incremento(vidas++) de vidas é pra remover o próximo coração, temos 3 */ vidas++; } } /* ---------- não deixar o mosquito junto da tela --------*/ // solução = tirar 90 pixels de cada posiçaõ var positionX = Math.floor(Math.random() * width) - 90; var positionY = Math.floor(Math.random() * height) - 90; /* ---- criando operador ternário pra resolver bug com -90 quando utilizamos o -90 se o valor aleatorio for menor que zero ele causaria um sumiço lá na pagina então vamos resolver*/ positionX = positionX < 0 ? 0 : positionX; positionY = positionY < 0 ? 0 : positionY; /* ------ criando a imagem de forma dinâmica------ */ var mosquito = document.createElement("img"); mosquito.src = "imagens/AedesAegypti.png"; mosquito.className = tamanhoAleatorio() + " " + ladoAleatorio(); mosquito.style.left = positionX + "px"; // concatenando px pra formar pixels mosquito.style.top = positionY + "px"; mosquito.id = "mosquito"; mosquito.onclick = function () { // antes de apagar o mosquito clicado vamos salvar o clique nele :) datar_pontos(); this.remove(); }; /* o elemento imagem do mosquito precisa ser absoluto */ mosquito.style.position = "absolute"; /* ------- adiciona o mosquito no doom -------*/ document.body.appendChild(mosquito); /* ----------- observação a respeito do appendChild -------------------------------- na criação de um elemento acessado pelo body appendchild como o script é carregado depois da página teriamos um problema, pra resolver será criada uma função chamada posicaoRandomica() Assim, a posicaoRandomica() só é executad quando o body é criado */ /*-------- criando função que vai salvar os pontos -------- */ function datar_pontos() { pontos++; document.getElementById("pontos").innerHTML = pontos; pontosdatados = pontos; return pontosdatados; } } /* --------------criando tamanho aleatorio pro mosquito ---------------- */ /* esse tamanho aleatório é dado por uma classe a funcao vai criar um numero randomico de 1 a 3 por causa do math floor e depndendo desse numero ele vai criar uma nova string da classe essa string com nome da classe vai concidir com classes já criadas e como ela ta sendo passada como parametro para o mosquito.className então vai sempre variar junto com a atribuição desse mosquisto na tela */ function tamanhoAleatorio() { var classe = Math.floor(Math.random() * 3); switch (classe) { case 0: return "firstMosquito"; case 1: return "secondMosquito"; case 2: return "thirdMosquito"; } } /* ---------------------Lado A lado B---------------------------------- */ /* nessa parte o objetivo é que o mosquito ele vá indo mudando a direção do rostinho dele */ function ladoAleatorio() { var imgDirection = Math.floor(Math.random() * 2); switch (imgDirection) { case 0: return "ladoA"; case 1: return "ladoB"; } }
// @flow import * as React from "react"; export default function useIsDocumentHidden(): boolean { const [isDocumentHidden, setIsDocumentHidden] = React.useState<boolean>(document.hidden); React.useEffect( function() { function onVisibilityChange() { setIsDocumentHidden(document.hidden); } document.addEventListener("visibilitychange", onVisibilityChange, { once: true, }); return function() { document.removeEventListener("visibilitychange", onVisibilityChange); }; }, [isDocumentHidden] ); return isDocumentHidden; }
import React from 'react' import Link from 'gatsby-link' import PropTypes from 'prop-types' import IconButton from '@material-ui/core/IconButton' import HomeIcon from '@material-ui/icons/Home' import styles from './styles.module.scss' class NavigationHome extends React.Component { render() { return ( <nav className={styles.home}> <IconButton component={Link} to="/" title="Home"> <HomeIcon style={{ fontSize: 36 }} /> </IconButton> </nav> ) } } export default NavigationHome
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var left_menu_service_1 = require("./left-menu/left-menu.service"); exports.LeftMenuService = left_menu_service_1.LeftMenuService; var dashboard_service_1 = require("./dashboard/dashboard.service"); exports.DashboardService = dashboard_service_1.DashboardService; var device_service_1 = require("./device/device.service"); exports.DeviceService = device_service_1.DeviceService; var auth_service_1 = require("./auth/auth.service"); exports.AuthService = auth_service_1.AuthService; exports.AdminAuthGuard = auth_service_1.AdminAuthGuard; var settings_service_1 = require("./settings/settings.service"); exports.SettingsService = settings_service_1.SettingsService; var config_service_1 = require("./config/config.service"); exports.ConfigService = config_service_1.ConfigService; var notification_service_1 = require("./notification/notification.service"); exports.Notification = notification_service_1.Notification; exports.NotificationService = notification_service_1.NotificationService; var user_service_1 = require("./user/user.service"); exports.UserService = user_service_1.UserService; var roles_service_1 = require("./roles/roles.service"); exports.RolesService = roles_service_1.RolesService; var lookup_service_1 = require("./lookup/lookup.service"); exports.LookupService = lookup_service_1.LookupService; var subscription_service_1 = require("./subscription/subscription.service"); exports.SubscriptionService = subscription_service_1.SubscriptionService; var location_service_1 = require("./location/location.service"); exports.LocationService = location_service_1.LocationService; var facility_service_1 = require("./facility/facility.service"); exports.FacilityService = facility_service_1.FacilityService; var alerts_service_1 = require("./alerts/alerts.service"); exports.AlertsService = alerts_service_1.AlertsService; var api_config_service_1 = require("./api-config/api-config.service"); exports.ApiConfigService = api_config_service_1.ApiConfigService; var refrigerator_service_1 = require("./refrigerator/refrigerator.service"); exports.RefrigeratorService = refrigerator_service_1.RefrigeratorService; //# sourceMappingURL=index.js.map
!function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="/",r(r.s=230)}({12:function(t,n,r){t.exports=!r(14)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},14:function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},15:function(t,n,r){var e=r(8);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},16:function(t,n,r){var e=r(18),o=r(32);t.exports=r(12)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},17:function(t,n,r){var e=r(4),o=r(19),i=r(16),a=r(20),c=r(27),u=function(t,n,r){var f,p,l,s,d=t&u.F,v=t&u.G,y=t&u.S,m=t&u.P,h=t&u.B,x=v?e:y?e[n]||(e[n]={}):(e[n]||{}).prototype,b=v?o:o[n]||(o[n]={}),g=b.prototype||(b.prototype={});for(f in v&&(r=n),r)l=((p=!d&&x&&void 0!==x[f])?x:r)[f],s=h&&p?c(l,e):m&&"function"==typeof l?c(Function.call,l):l,x&&a(x,f,l,t&u.U),b[f]!=l&&i(b,f,s),m&&g[f]!=l&&(g[f]=l)};e.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},18:function(t,n,r){var e=r(15),o=r(44),i=r(37),a=Object.defineProperty;n.f=r(12)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return a(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},19:function(t,n){var r=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=r)},20:function(t,n,r){var e=r(4),o=r(16),i=r(23),a=r(24)("src"),c=r(51),u=(""+c).split("toString");r(19).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,c){var f="function"==typeof r;f&&(i(r,"name")||o(r,"name",n)),t[n]!==r&&(f&&(i(r,a)||o(r,a,t[n]?""+t[n]:u.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:o(t,n,r):(delete t[n],o(t,n,r)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||c.call(this)}))},23:function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},230:function(t,n,r){t.exports=r(231)},231:function(t,n,r){r(49),r(49),function(){"use strict";$('[data-toggle="flatpickr"]').each((function(){var t=$(this),n={mode:void 0!==t.data("flatpickr-mode")?t.data("flatpickr-mode"):"single",altInput:void 0===t.data("flatpickr-alt-input")||t.data("flatpickr-alt-input"),altInputClass:void 0!==t.data("flatpickr-alt-input-class")?t.data("flatpickr-alt-input-class"):"form-control flatpickr-input",monthSelectorType:void 0!==t.data("flatpickr-month-selector-type")?t.data("flatpickr-month-selector-type"):"static",altFormat:void 0!==t.data("flatpickr-alt-format")?t.data("flatpickr-alt-format"):"F j, Y",dateFormat:void 0!==t.data("flatpickr-date-format")?t.data("flatpickr-date-format"):"Y-m-d",wrap:void 0!==t.data("flatpickr-wrap")&&t.data("flatpickr-wrap"),inline:void 0!==t.data("flatpickr-inline")&&t.data("flatpickr-inline"),static:void 0!==t.data("flatpickr-static")&&t.data("flatpickr-static"),enableTime:void 0!==t.data("flatpickr-enable-time")&&t.data("flatpickr-enable-time"),noCalendar:void 0!==t.data("flatpickr-no-calendar")&&t.data("flatpickr-no-calendar"),appendTo:void 0!==t.data("flatpickr-append-to")?document.querySelector(t.data("flatpickr-append-to")):void 0,onChange:function(r,e){n.wrap&&t.find("[data-toggle]").text(e)}};t.flatpickr(n)}))}()},24:function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},25:function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},26:function(t,n,r){var e=r(19),o=r(4),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:r(33)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},27:function(t,n,r){var e=r(39);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},28:function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},29:function(t,n,r){var e=r(28);t.exports=function(t){return Object(e(t))}},30:function(t,n,r){var e=r(34),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},32:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},33:function(t,n){t.exports=!1},34:function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},37:function(t,n,r){var e=r(8);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},39:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},4:function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},41:function(t,n,r){var e=r(8),o=r(4).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},44:function(t,n,r){t.exports=!r(12)&&!r(14)((function(){return 7!=Object.defineProperty(r(41)("div"),"a",{get:function(){return 7}}).a}))},47:function(t,n,r){var e=r(25);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},48:function(t,n,r){var e=r(6)("unscopables"),o=Array.prototype;null==o[e]&&r(16)(o,e,{}),t.exports=function(t){o[e][t]=!0}},49:function(t,n,r){"use strict";var e=r(17),o=r(67)(5),i=!0;"find"in[]&&Array(1).find((function(){i=!1})),e(e.P+e.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),r(48)("find")},51:function(t,n,r){t.exports=r(26)("native-function-to-string",Function.toString)},56:function(t,n,r){var e=r(25);t.exports=Array.isArray||function(t){return"Array"==e(t)}},6:function(t,n,r){var e=r(26)("wks"),o=r(24),i=r(4).Symbol,a="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=e},67:function(t,n,r){var e=r(27),o=r(47),i=r(29),a=r(30),c=r(76);t.exports=function(t,n){var r=1==t,u=2==t,f=3==t,p=4==t,l=6==t,s=5==t||l,d=n||c;return function(n,c,v){for(var y,m,h=i(n),x=o(h),b=e(c,v,3),g=a(x.length),k=0,_=r?d(n,g):u?d(n,0):void 0;g>k;k++)if((s||k in x)&&(m=b(y=x[k],k,h),t))if(r)_[k]=m;else if(m)switch(t){case 3:return!0;case 5:return y;case 6:return k;case 2:_.push(y)}else if(p)return!1;return l?-1:f||p?p:_}}},76:function(t,n,r){var e=r(77);t.exports=function(t,n){return new(e(t))(n)}},77:function(t,n,r){var e=r(8),o=r(56),i=r(6)("species");t.exports=function(t){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)||(n=void 0),e(n)&&null===(n=n[i])&&(n=void 0)),void 0===n?Array:n}},8:function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}}});
import React from 'react' import ReactCSSTransitionGroup from 'react-addons-css-transition-group' import { BrowserRouter as Router, Route, Link, Redirect } from 'react-router-dom' /* 请把以下的 css 代码和你其他的 css 放到一起 .fade-enter { opacity: 0; z-index: 1; } .fade-enter.fade-enter-active { opacity: 1; transition: opacity 250ms ease-in; } */ const AnimationExample = () => ( <Router> <Route render={({ location }) => ( <div style={styles.fill}> <Route exact path="/" render={() => ( <Redirect to="/10/90/50"/> )}/> <ul style={styles.nav}> <NavLink to="/10/90/50">Red</NavLink> <NavLink to="/120/100/40">Green</NavLink> <NavLink to="/200/100/40">Blue</NavLink> <NavLink to="/310/100/50">Pink</NavLink> </ul> <div style={styles.content}> <ReactCSSTransitionGroup transitionName="fade" transitionEnterTimeout={300} transitionLeaveTimeout={300} > {/* 这里和使用 ReactCSSTransitionGroup 没有区别, 唯一需要注意的是要把你的地址(location)传入 「Route」里使它可以在动画切换的时候匹配之前的 地址。 */} <Route location={location} key={location.key} path="/:h/:s/:l" component={HSL} /> </ReactCSSTransitionGroup> </div> </div> )}/> </Router> ) const NavLink = (props) => ( <li style={styles.navItem}> <Link {...props} style={{ color: 'inherit' }}/> </li> ) const HSL = ({ match: { params } }) => ( <div style={{ ...styles.fill, ...styles.hsl, background: `hsl(${params.h}, ${params.s}%, ${params.l}%)` }}>hsl({params.h}, {params.s}%, {params.l}%)</div> ) const styles = {} styles.fill = { position: 'absolute', left: 0, right: 0, top: 0, bottom: 0 } styles.content = { ...styles.fill, top: '40px', textAlign: 'center' } styles.nav = { padding: 0, margin: 0, position: 'absolute', top: 0, height: '40px', width: '100%', display: 'flex' } styles.navItem = { textAlign: 'center', flex: 1, listStyleType: 'none', padding: '10px' } styles.hsl = { ...styles.fill, color: 'white', paddingTop: '20px', fontSize: '30px' } export default AnimationExample
/** * @ Author: Aailson Barbosa Ribeiro * @ Create Time: 2020-04-09 07:21:25 * @ Modified by: Your name * @ Modified by: Your name * @ Modified time: 2021-01-18 17:25:19 */ // SVG tunion module.exports = `<svg id="card-rupay" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"> <g id="round-rect" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="payment_016-rupay-card"> <path d="M111.998561,0 L8.0014394,0 C3.58236644,0 0,3.58906554 0,8.00758637 L0,67.9924136 C0,72.4148815 3.59136164,76 8.0014394,76 L111.998561,76 C116.417634,76 120,72.4109345 120,67.9924136 L120,8.00758637 C120,3.58511853 116.408638,0 111.998561,0 Z" id="bg" fill="#F4F4F4"/> <g id="RuPay" transform="translate(19.000000, 26.500000)"> <path d="M0.238897927,17.3883144 C0.158079522,17.3351618 0.713671439,15.1948044 2.03836757,10.456053 C3.09238015,6.68560001 4.08365325,3.15861774 4.24119695,2.61831211 L4.52763967,1.63593823 L8.6691219,1.71155058 C13.5106009,1.79994609 14.2558797,1.86391832 15.0347018,2.25796657 C16.4154292,2.95655071 16.7955232,4.03140038 16.3197148,5.89179233 C15.9144661,7.4762991 15.140263,8.55466257 13.6432955,9.61969455 C13.359386,9.82168497 13.1113684,10.068615 13.0921451,10.1684309 C13.0708086,10.2792216 13.2477325,10.5233172 13.5463534,10.7950858 C13.8153904,11.0399314 14.101367,11.3676104 14.1818586,11.5232622 C14.3984388,11.9420824 14.3608328,12.7812511 14.0603061,14.2356603 C13.9129617,14.9487372 13.7647476,15.9678195 13.7309417,16.5002892 L13.6694769,17.4684123 L11.6648764,17.4684123 C10.2452913,17.4684123 9.6236218,17.4317602 9.53468037,17.3428184 C9.33907528,17.1472125 9.38331839,16.64825 9.72307219,15.2181773 C10.1011777,13.6266793 10.1240595,13.0021148 9.81849309,12.6136488 C9.41484003,12.100488 9.04875669,11.9895239 7.59955665,11.9410704 C6.43029305,11.9019751 6.23533064,11.9195521 6.05798424,12.0800482 C5.78222989,12.329603 5.5583944,12.974085 4.90446865,15.4013367 L4.34757758,17.4684123 L2.35169625,17.4667995 C1.25396143,17.4659931 0.303202189,17.430593 0.238897927,17.3883023 L0.238897927,17.3883023 L0.238897927,17.3883144 Z M10.7756976,8.50832589 C11.7274727,8.22567719 12.1284218,7.60491689 12.1297164,6.41199084 C12.1301398,6.05308066 12.0693578,5.80050393 11.9471416,5.65289182 C11.6582419,5.30395859 10.7880707,5.18550523 9.15586628,5.27292703 L7.73701017,5.34891837 L7.53039817,6.04473461 C7.21136213,7.11916295 6.9876228,8.15800367 7.02254676,8.40273431 C7.04539719,8.56285944 7.15596838,8.64443296 7.42050616,8.69632762 C8.00000474,8.8100072 10.1690939,8.6884654 10.7756976,8.50832589 L10.7756976,8.50832589 L10.7756976,8.50832589 Z" id="path4510-9" fill="#227FBB" opacity="0.9375"/> <path d="M17.4885861,17.6952735 C16.8546789,17.4685816 16.3563027,17.0453847 16.1469006,16.5559819 C15.7488408,15.6256559 16.1148446,13.5578627 17.5679848,8.5273585 C17.9159792,7.32266534 18.2007019,6.32519802 18.2007019,6.3107638 C18.2007019,6.29632957 18.274713,6.21051046 18.3651708,6.12005263 C18.4994208,5.98580226 18.8058541,5.95558313 20.0329517,5.95558313 C20.8597727,5.95558313 21.6533304,6.00009134 21.7964147,6.05449384 L22.0565694,6.15340254 L21.7970134,7.07494907 C21.1605428,9.33472952 20.5004291,12.0759074 20.386314,12.9330181 C20.2826618,13.7115327 20.2866352,13.9184864 20.410189,14.1762744 C20.6912551,14.762707 21.7115955,14.8867365 22.579949,14.4400256 C23.5986887,13.9159483 23.7897768,13.4673948 25.4273878,7.75598233 C25.667502,6.91854942 25.8506493,6.48335961 26.0550488,6.26454808 L26.3436667,5.95558313 L27.979552,5.95558313 C29.2446613,5.95558313 29.6275533,5.98715093 29.6688863,6.0948633 C29.7098243,6.20154551 27.6309172,13.9417283 26.754659,16.9451031 L26.6172476,17.4160821 L24.8683601,17.4684123 C23.9064703,17.497196 23.1195491,17.4913417 23.1196459,17.4554094 C23.1197426,17.419473 23.1911477,17.1879045 23.2783276,16.9408132 C23.6319943,15.9384128 23.1910428,15.8755292 21.9030122,16.7446831 C20.6302746,17.6035174 20.0966801,17.8069754 18.9947884,17.8535742 C18.2498508,17.8850755 17.9233884,17.850772 17.4885861,17.6952755 L17.4885861,17.6952755 L17.4885861,17.6952735 Z" id="path4512-4" fill="#227FBB" opacity="0.9375"/> <path d="M29.1162249,17.3849175 C29.023221,17.3258078 29.56168,15.2486323 31.1574257,9.51069802 L33.3249541,1.71676787 L36.9878378,1.74743051 C41.5571827,1.78567919 42.4914277,1.8667467 43.3748364,2.30164622 C44.1012165,2.659242 44.4470492,2.97903262 44.7703859,3.59210004 C45.3135905,4.62205242 45.3045247,5.81668195 44.7410659,7.45596418 C43.8750044,9.97560903 42.2583956,11.6323151 40.1274104,12.1840472 C39.7820252,12.2734708 38.6987731,12.3944542 37.7201831,12.4528987 C34.487274,12.6459766 34.6816642,12.609635 34.5085019,13.0533604 C34.4257491,13.2654205 34.1028055,14.345558 33.7908529,15.4536669 L33.2236666,17.4684123 L31.2331086,17.4667995 C30.138303,17.4659931 29.1857047,17.4290649 29.1162249,17.3849054 L29.1162249,17.3849175 Z M38.5415328,8.99623892 C39.6068691,8.85895051 40.1665481,8.53034816 40.5220453,7.83343524 C40.9040482,7.0845571 41.00487,6.2693279 40.7614316,5.89779382 C40.4296783,5.39147514 39.9754236,5.28085577 38.2637969,5.28957476 C37.4115024,5.29390906 36.6722646,5.33957241 36.6210453,5.39103566 C36.5038539,5.50878344 35.7839329,8.35441796 35.7839329,8.69989182 C35.7839329,8.84069404 35.8153314,8.98729414 35.853709,9.02566982 C35.952896,9.12485672 37.6911756,9.10582209 38.5415328,8.99623892 L38.5415328,8.99623892 L38.5415328,8.99623892 Z" id="path4514-8" fill="#227FBB" opacity="0.9375"/> <path d="M44.523218,17.7384229 C43.2907349,17.2221576 42.9713979,16.3689619 43.3730362,14.6654071 C43.9344831,12.2840284 45.1712904,11.4876524 49.4171675,10.7736079 C51.9808348,10.3424661 52.6208414,10.0273545 52.8052164,9.10547535 C52.9416137,8.42348854 52.3571265,8.05059168 51.1499093,8.04940831 C50.3962695,8.04860193 50.1135684,8.15854797 49.4597787,8.70632473 L48.9328893,9.14777609 L47.5754635,9.18257749 C46.0021473,9.22291469 45.5175081,9.16030322 45.5175081,8.91670756 C45.5175081,8.63288558 46.1345551,7.76580607 46.7114442,7.23897507 C47.3309969,6.67318779 48.1509031,6.23964299 49.0386522,6.00841319 C50.9032091,5.52275803 54.112574,5.57921479 55.2155381,6.11707305 C55.805916,6.40496726 56.3306847,6.88310292 56.5805983,7.36082531 C56.8171543,7.81301364 56.732575,8.28223072 55.617884,12.701633 C55.0707584,14.8708166 54.62311,16.8307361 54.62311,17.0570087 L54.62311,17.4684123 L53.3294428,17.4684123 C52.6179243,17.4684123 51.8182703,17.4982242 51.5524327,17.5346625 L51.0690918,17.6009108 L50.8564894,17.1049279 C50.6066967,16.5221884 50.5774029,16.5223618 49.2613102,17.1143424 C47.8319532,17.757262 47.3081844,17.900566 46.1978116,17.9525131 C45.2529667,17.9967169 45.0901261,17.9758982 44.523218,17.738431 L44.523218,17.738429 L44.523218,17.7384229 Z M50.1485492,15.2929793 C50.8702765,14.9737249 51.6855077,13.6671132 51.6902734,12.8219814 L51.6925716,12.4143638 L51.0275571,12.4764632 C50.2919057,12.5451588 48.7358944,13.0469799 48.165547,13.3994733 C47.6839984,13.6970884 47.4019202,14.1765365 47.40342,14.6948682 C47.4048312,15.1919841 47.4780042,15.3279682 47.8230286,15.4749553 C48.216982,15.6427895 49.6029235,15.5343352 50.1485492,15.2929793 L50.1485492,15.2929793 Z" id="path4516-8" fill="#227FBB" opacity="0.9375"/> <path d="M55.912822,22.4263562 C55.4935945,22.3318161 55.4775173,22.1753157 55.7690462,21.026924 C56.1597298,19.4879496 56.1340466,19.5199669 57.098162,19.3700768 C58.1388332,19.2082885 58.6035184,18.9796028 58.8355969,18.5150346 C59.0926511,18.0004706 59.0742071,15.9799092 58.7629904,10.5607152 C58.5898039,7.54502898 58.5467189,6.17724522 58.6220571,6.08641041 C58.7014333,5.99070304 59.2311471,5.95558313 60.5952598,5.95558313 L62.4599578,5.95558313 L62.4925275,9.4566725 C62.5147494,11.8451998 62.5620759,12.9946941 62.6414581,13.0739795 C62.8319535,13.2642391 63.5322291,12.0800079 66.4021074,6.71438379 L66.8079631,5.95558313 L68.4543556,5.95558313 C69.3598713,5.95558313 70.1230284,5.99163643 70.1502639,6.03570113 C70.2026787,6.12051227 67.707943,10.5676138 65.2045709,14.8518605 C61.646549,20.9410283 60.9773151,21.7801728 59.3082049,22.2452229 C58.7632424,22.3970624 56.3530618,22.5256379 55.912822,22.4263562 L55.912822,22.4263562 L55.912822,22.4263562 Z" id="path4518-2" fill="#227FBB" opacity="0.9375"/> <polygon id="path6141-55" fill="#1AAF5D" points="71.3380913 21.0297498 76.231045 3.10636563 80.8885071 12.3689598"/> <polygon id="path6141-5-1" fill="#F59D00" points="68.3102569 21.0950263 73.2032106 3.17164219 77.8606728 12.4342364"/> <path d="M81.7926034,2.7709528 L81.7926034,1.54936914 L81.3279087,1.54936914 L81.3279087,1.3363841 L82.5002064,1.3363841 L82.5002064,1.54936914 L82.0319916,1.54936914 L82.0319916,2.7709528 L81.7926034,2.7709528 Z M82.6603858,2.7709528 L82.6603858,1.3363841 L83.0124272,1.3363841 L83.3750292,2.48227884 L83.7253105,1.3363841 L84.0703116,1.3363841 L84.0703116,2.7709528 L83.8520455,2.7709528 L83.8520455,1.56697116 L83.4824022,2.7709528 L83.2658971,2.7709528 L82.8804111,1.54936914 L82.8804111,2.7709528 L82.6603858,2.7709528 Z" id="tm" fill="#000000"/> <path d="M84.7907212,2.02746813 C84.7907212,3.12686063 83.8994881,4.01809407 82.8000954,4.01809407 C81.7007027,4.01809407 80.8094685,3.12686063 80.8094685,2.02746813 C80.8094685,0.928075527 81.7007027,0.0368417728 82.8000954,0.0368417728 C83.8994881,0.0368417728 84.7907212,0.928075527 84.7907212,2.02746813 L84.7907212,2.02746813 Z" id="circle" stroke="#000000" stroke-width="0.5" opacity="0.9375"/> </g> </g> </g></svg>`
var espower = require('./index'); var acorn = require('acorn'); var escodegen = require('escodegen'); var jsCode = process.argv[2]; var parserOptions = {ecmaVersion: 6, locations: true}; var jsAst = acorn.parse(jsCode, parserOptions); var modifiedAst = espower(jsAst); console.log(escodegen.generate(modifiedAst));
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); window.Vue = require('vue'); /** * The following block of code may be used to automatically register your * Vue components. It will recursively scan this directory for the Vue * components and automatically register them with their "basename". * * Eg. ./components/ExampleComponent.vue -> <example-component></example-component> */ // const files = require.context('./', true, /\.vue$/i) // files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default)) //Vue.component('example-component', require('./components/ExampleComponent.vue').default); /** * Next, we will create a fresh Vue application instance and attach it to * the page. Then, you may begin adding components to this application * or customize the JavaScript scaffolding to fit your unique needs. */ /*const app = new Vue({ el: '#app', }); */
exports.drive = (m) => { m.functionEnter(["global@0", 0, {"type":"functionEnter","location":{"fileName":"test.js","pos":{"start":[1,1],"end":[11,4]}}}]); m.literal([{"type":"literal","location":{"fileName":"test.js","pos":{"start":[1,1],"end":[11,3]}}}]); m.pop([{"type":"expr","location":{"fileName":"test.js","pos":{"start":[1,1],"end":[11,3]}}}]); m.functionExit(["global@0", 8, {"type":"expr","location":{"fileName":"test.js","pos":{"start":[1,1],"end":[11,4]}}}]); m.initVar(["global^exports", {"type":"declaration","location":{"fileName":"test.js","pos":{"start":[1,2],"end":[11,2]}},"name":"exports"}]); m.initVar(["global^require", {"type":"declaration","location":{"fileName":"test.js","pos":{"start":[1,2],"end":[11,2]}},"name":"require"}]); m.initVar(["global^module", {"type":"declaration","location":{"fileName":"test.js","pos":{"start":[1,2],"end":[11,2]}},"name":"module"}]); m.initVar(["global^__filename", {"type":"declaration","location":{"fileName":"test.js","pos":{"start":[1,2],"end":[11,2]}},"name":"__filename"}]); m.initVar(["global^__dirname", {"type":"declaration","location":{"fileName":"test.js","pos":{"start":[1,2],"end":[11,2]}},"name":"__dirname"}]); m.initVar(["global^a", {"type":"declaration","location":{"fileName":"test.js","pos":{"start":[1,2],"end":[11,2]}},"name":"a"}]); m.initVar(["global^b", {"type":"declaration","location":{"fileName":"test.js","pos":{"start":[1,2],"end":[11,2]}},"name":"b"}]); m.initVar(["global^z", {"type":"declaration","location":{"fileName":"test.js","pos":{"start":[1,2],"end":[11,2]}},"name":"z"}]); m.functionEnter(["global@1", 5, {"type":"functionEnter","location":{"fileName":"test.js","pos":{"start":[1,2],"end":[11,2]}}}]); m.literal([{"type":"literal","location":{"fileName":"test.js","pos":{"start":[1,62],"end":[3,2]}}}]); m.writeVar(["global^a", {"type":"variable","location":{"fileName":"test.js","pos":{"start":[1,62],"end":[3,2]}},"name":"a"}]); m.literal([{"type":"literal","location":{"fileName":"test.js","pos":{"start":[5,1],"end":[7,2]}}}]); m.writeVar(["global^b", {"type":"variable","location":{"fileName":"test.js","pos":{"start":[5,1],"end":[7,2]}},"name":"b"}]); m.readVar(["global^a", {"type":"variable","location":{"fileName":"test.js","pos":{"start":[9,11],"end":[9,12]}},"name":"a"}]); m.writeVar(["global^z", {"type":"variable","location":{"fileName":"test.js","pos":{"start":[9,7],"end":[9,12]}},"name":"z"}]); m.pop([{"type":"expr","location":{"fileName":"test.js","pos":{"start":[9,7],"end":[9,12]}}}]); m.functionExit(["global@1", 8, {"type":"expr","location":{"fileName":"test.js","pos":{"start":[1,2],"end":[11,2]}}}]); m.endExecution([]); };
import Document, { Html, Head, Main, NextScript } from 'next/document' import { ServerStyleSheet } from "styled-components"; export default class MyDocument extends Document { static async getInitialProps(ctx) { const sheet = new ServerStyleSheet(); const originalRenderPage = ctx.renderPage; try { ctx.renderPage = () => originalRenderPage({ enhanceApp: (App) => (props) => sheet.collectStyles(<App {...props} />), }); const initialProps = await Document.getInitialProps(ctx); return { ...initialProps, styles: ( <> {initialProps.styles} {sheet.getStyleElement()} </> ), }; } finally { sheet.seal(); } } render() { return ( <Html lang="es"> <Head /> <body> <Main /> <NextScript /> </body> </Html> ) } }
!function ($) { "use strict"; var FOUNDATION_VERSION = '6.2.0'; // Global Foundation object // This is attached to the window, or used as a module for AMD/Browserify var Foundation = { version: FOUNDATION_VERSION, /** * Stores initialized plugins. */ _plugins: {}, /** * Stores generated unique ids for plugin instances */ _uuids: [], /** * Returns a boolean for RTL support */ rtl: function () { return $('html').attr('dir') === 'rtl'; }, /** * Defines a Foundation plugin, adding it to the `Foundation` namespace and the list of plugins to initialize when reflowing. * @param {Object} plugin - The constructor of the plugin. */ plugin: function (plugin, name) { // Object key to use when adding to global Foundation object // Examples: Foundation.Reveal, Foundation.OffCanvas var className = name || functionName(plugin); // Object key to use when storing the plugin, also used to create the identifying data attribute for the plugin // Examples: data-reveal, data-off-canvas var attrName = hyphenate(className); // Add to the Foundation object and the plugins list (for reflowing) this._plugins[attrName] = this[className] = plugin; }, /** * @function * Populates the _uuids array with pointers to each individual plugin instance. * Adds the `zfPlugin` data-attribute to programmatically created plugins to allow use of $(selector).foundation(method) calls. * Also fires the initialization event for each plugin, consolidating repeditive code. * @param {Object} plugin - an instance of a plugin, usually `this` in context. * @param {String} name - the name of the plugin, passed as a camelCased string. * @fires Plugin#init */ registerPlugin: function (plugin, name) { var pluginName = name ? hyphenate(name) : functionName(plugin.constructor).toLowerCase(); plugin.uuid = this.GetYoDigits(6, pluginName); if (!plugin.$element.attr('data-' + pluginName)) { plugin.$element.attr('data-' + pluginName, plugin.uuid); } if (!plugin.$element.data('zfPlugin')) { plugin.$element.data('zfPlugin', plugin); } /** * Fires when the plugin has initialized. * @event Plugin#init */ plugin.$element.trigger('init.zf.' + pluginName); this._uuids.push(plugin.uuid); return; }, /** * @function * Removes the plugins uuid from the _uuids array. * Removes the zfPlugin data attribute, as well as the data-plugin-name attribute. * Also fires the destroyed event for the plugin, consolidating repeditive code. * @param {Object} plugin - an instance of a plugin, usually `this` in context. * @fires Plugin#destroyed */ unregisterPlugin: function (plugin) { var pluginName = hyphenate(functionName(plugin.$element.data('zfPlugin').constructor)); this._uuids.splice(this._uuids.indexOf(plugin.uuid), 1); plugin.$element.removeAttr('data-' + pluginName).removeData('zfPlugin') /** * Fires when the plugin has been destroyed. * @event Plugin#destroyed */ .trigger('destroyed.zf.' + pluginName); for (var prop in plugin) { plugin[prop] = null; //clean up script to prep for garbage collection. } return; }, /** * @function * Causes one or more active plugins to re-initialize, resetting event listeners, recalculating positions, etc. * @param {String} plugins - optional string of an individual plugin key, attained by calling `$(element).data('pluginName')`, or string of a plugin class i.e. `'dropdown'` * @default If no argument is passed, reflow all currently active plugins. */ reInit: function (plugins) { var isJQ = plugins instanceof $; try { if (isJQ) { plugins.each(function () { $(this).data('zfPlugin')._init(); }); } else { var type = typeof plugins, _this = this, fns = { 'object': function (plgs) { plgs.forEach(function (p) { p = hyphenate(p); $('[data-' + p + ']').foundation('_init'); }); }, 'string': function () { plugins = hyphenate(plugins); $('[data-' + plugins + ']').foundation('_init'); }, 'undefined': function () { this['object'](Object.keys(_this._plugins)); } }; fns[type](plugins); } } catch (err) { console.error(err); } finally { return plugins; } }, /** * returns a random base-36 uid with namespacing * @function * @param {Number} length - number of random base-36 digits desired. Increase for more random strings. * @param {String} namespace - name of plugin to be incorporated in uid, optional. * @default {String} '' - if no plugin name is provided, nothing is appended to the uid. * @returns {String} - unique id */ GetYoDigits: function (length, namespace) { length = length || 6; return Math.round(Math.pow(36, length + 1) - Math.random() * Math.pow(36, length)).toString(36).slice(1) + (namespace ? '-' + namespace : ''); }, /** * Initialize plugins on any elements within `elem` (and `elem` itself) that aren't already initialized. * @param {Object} elem - jQuery object containing the element to check inside. Also checks the element itself, unless it's the `document` object. * @param {String|Array} plugins - A list of plugins to initialize. Leave this out to initialize everything. */ reflow: function (elem, plugins) { // If plugins is undefined, just grab everything if (typeof plugins === 'undefined') { plugins = Object.keys(this._plugins); } // If plugins is a string, convert it to an array with one item else if (typeof plugins === 'string') { plugins = [plugins]; } var _this = this; // Iterate through each plugin $.each(plugins, function (i, name) { // Get the current plugin var plugin = _this._plugins[name]; // Localize the search to all elements inside elem, as well as elem itself, unless elem === document var $elem = $(elem).find('[data-' + name + ']').addBack('[data-' + name + ']'); // For each plugin found, initialize it $elem.each(function () { var $el = $(this), opts = {}; // Don't double-dip on plugins if ($el.data('zfPlugin')) { console.warn("Tried to initialize " + name + " on an element that already has a Foundation plugin."); return; } if ($el.attr('data-options')) { var thing = $el.attr('data-options').split(';').forEach(function (e, i) { var opt = e.split(':').map(function (el) { return el.trim(); }); if (opt[0]) opts[opt[0]] = parseValue(opt[1]); }); } try { $el.data('zfPlugin', new plugin($(this), opts)); } catch (er) { //console.error(er); } finally { return; } }); }); }, getFnName: functionName, transitionend: function ($elem) { var transitions = { 'transition': 'transitionend', 'WebkitTransition': 'webkitTransitionEnd', 'MozTransition': 'transitionend', 'OTransition': 'otransitionend' }; var elem = document.createElement('div'), end; for (var t in transitions) { if (typeof elem.style[t] !== 'undefined') { end = transitions[t]; } } if (end) { return end; } else { end = setTimeout(function () { $elem.triggerHandler('transitionend', [$elem]); }, 1); return 'transitionend'; } } }; Foundation.util = { /** * Function for applying a debounce effect to a function call. * @function * @param {Function} func - Function to be called at end of timeout. * @param {Number} delay - Time in ms to delay the call of `func`. * @returns function */ throttle: function (func, delay) { var timer = null; return function () { var context = this, args = arguments; if (timer === null) { timer = setTimeout(function () { func.apply(context, args); timer = null; }, delay); } }; } }; // TODO: consider not making this a jQuery function // TODO: need way to reflow vs. re-initialize /** * The Foundation jQuery method. * @param {String|Array} method - An action to perform on the current jQuery object. */ var foundation = function (method) { var type = typeof method, $meta = $('meta.foundation-mq'), $noJS = $('.no-js'); if (!$meta.length) { $('<meta class="foundation-mq">').appendTo(document.head); } if ($noJS.length) { $noJS.removeClass('no-js'); } if (type === 'undefined') { //needs to initialize the Foundation object, or an individual plugin. Foundation.MediaQuery._init(); Foundation.reflow(this); } else if (type === 'string') { //an individual method to invoke on a plugin or group of plugins var args = Array.prototype.slice.call(arguments, 1); //collect all the arguments, if necessary var plugClass = this.data('zfPlugin'); //determine the class of plugin if (plugClass !== undefined && plugClass[method] !== undefined) { //make sure both the class and method exist if (this.length === 1) { //if there's only one, call it directly. plugClass[method].apply(plugClass, args); } else { this.each(function (i, el) { //otherwise loop through the jQuery collection and invoke the method on each plugClass[method].apply($(el).data('zfPlugin'), args); }); } } else { //error for no class or no method throw new ReferenceError("We're sorry, '" + method + "' is not an available method for " + (plugClass ? functionName(plugClass) : 'this element') + '.'); } } else { //error for invalid argument type throw new TypeError('We\'re sorry, ' + type + ' is not a valid parameter. You must use a string representing the method you wish to invoke.'); } return this; }; window.Foundation = Foundation; $.fn.foundation = foundation; // Polyfill for requestAnimationFrame (function () { if (!Date.now || !window.Date.now) window.Date.now = Date.now = function () { return new Date().getTime(); }; var vendors = ['webkit', 'moz']; for (var i = 0; i < vendors.length && !window.requestAnimationFrame; ++i) { var vp = vendors[i]; window.requestAnimationFrame = window[vp + 'RequestAnimationFrame']; window.cancelAnimationFrame = window[vp + 'CancelAnimationFrame'] || window[vp + 'CancelRequestAnimationFrame']; } if (/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent) || !window.requestAnimationFrame || !window.cancelAnimationFrame) { var lastTime = 0; window.requestAnimationFrame = function (callback) { var now = Date.now(); var nextTime = Math.max(lastTime + 16, now); return setTimeout(function () { callback(lastTime = nextTime); }, nextTime - now); }; window.cancelAnimationFrame = clearTimeout; } /** * Polyfill for performance.now, required by rAF */ if (!window.performance || !window.performance.now) { window.performance = { start: Date.now(), now: function () { return Date.now() - this.start; } }; } })(); if (!Function.prototype.bind) { Function.prototype.bind = function (oThis) { if (typeof this !== 'function') { // closest thing possible to the ECMAScript 5 // internal IsCallable function throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable'); } var aArgs = Array.prototype.slice.call(arguments, 1), fToBind = this, fNOP = function () {}, fBound = function () { return fToBind.apply(this instanceof fNOP ? this : oThis, aArgs.concat(Array.prototype.slice.call(arguments))); }; if (this.prototype) { // native functions don't have a prototype fNOP.prototype = this.prototype; } fBound.prototype = new fNOP(); return fBound; }; } // Polyfill to get the name of a function in IE9 function functionName(fn) { if (Function.prototype.name === undefined) { var funcNameRegex = /function\s([^(]{1,})\(/; var results = funcNameRegex.exec(fn.toString()); return results && results.length > 1 ? results[1].trim() : ""; } else if (fn.prototype === undefined) { return fn.constructor.name; } else { return fn.prototype.constructor.name; } } function parseValue(str) { if (/true/.test(str)) return true;else if (/false/.test(str)) return false;else if (!isNaN(str * 1)) return parseFloat(str); return str; } // Convert PascalCase to kebab-case // Thank you: http://stackoverflow.com/a/8955580 function hyphenate(str) { return str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); } }(jQuery); 'use strict'; !function ($) { Foundation.Box = { ImNotTouchingYou: ImNotTouchingYou, GetDimensions: GetDimensions, GetOffsets: GetOffsets }; /** * Compares the dimensions of an element to a container and determines collision events with container. * @function * @param {jQuery} element - jQuery object to test for collisions. * @param {jQuery} parent - jQuery object to use as bounding container. * @param {Boolean} lrOnly - set to true to check left and right values only. * @param {Boolean} tbOnly - set to true to check top and bottom values only. * @default if no parent object passed, detects collisions with `window`. * @returns {Boolean} - true if collision free, false if a collision in any direction. */ function ImNotTouchingYou(element, parent, lrOnly, tbOnly) { var eleDims = GetDimensions(element), top, bottom, left, right; if (parent) { var parDims = GetDimensions(parent); bottom = eleDims.offset.top + eleDims.height <= parDims.height + parDims.offset.top; top = eleDims.offset.top >= parDims.offset.top; left = eleDims.offset.left >= parDims.offset.left; right = eleDims.offset.left + eleDims.width <= parDims.width; } else { bottom = eleDims.offset.top + eleDims.height <= eleDims.windowDims.height + eleDims.windowDims.offset.top; top = eleDims.offset.top >= eleDims.windowDims.offset.top; left = eleDims.offset.left >= eleDims.windowDims.offset.left; right = eleDims.offset.left + eleDims.width <= eleDims.windowDims.width; } var allDirs = [bottom, top, left, right]; if (lrOnly) { return left === right === true; } if (tbOnly) { return top === bottom === true; } return allDirs.indexOf(false) === -1; }; /** * Uses native methods to return an object of dimension values. * @function * @param {jQuery || HTML} element - jQuery object or DOM element for which to get the dimensions. Can be any element other that document or window. * @returns {Object} - nested object of integer pixel values * TODO - if element is window, return only those values. */ function GetDimensions(elem, test) { elem = elem.length ? elem[0] : elem; if (elem === window || elem === document) { throw new Error("I'm sorry, Dave. I'm afraid I can't do that."); } var rect = elem.getBoundingClientRect(), parRect = elem.parentNode.getBoundingClientRect(), winRect = document.body.getBoundingClientRect(), winY = window.pageYOffset, winX = window.pageXOffset; return { width: rect.width, height: rect.height, offset: { top: rect.top + winY, left: rect.left + winX }, parentDims: { width: parRect.width, height: parRect.height, offset: { top: parRect.top + winY, left: parRect.left + winX } }, windowDims: { width: winRect.width, height: winRect.height, offset: { top: winY, left: winX } } }; } /** * Returns an object of top and left integer pixel values for dynamically rendered elements, * such as: Tooltip, Reveal, and Dropdown * @function * @param {jQuery} element - jQuery object for the element being positioned. * @param {jQuery} anchor - jQuery object for the element's anchor point. * @param {String} position - a string relating to the desired position of the element, relative to it's anchor * @param {Number} vOffset - integer pixel value of desired vertical separation between anchor and element. * @param {Number} hOffset - integer pixel value of desired horizontal separation between anchor and element. * @param {Boolean} isOverflow - if a collision event is detected, sets to true to default the element to full width - any desired offset. * TODO alter/rewrite to work with `em` values as well/instead of pixels */ function GetOffsets(element, anchor, position, vOffset, hOffset, isOverflow) { var $eleDims = GetDimensions(element), $anchorDims = anchor ? GetDimensions(anchor) : null; switch (position) { case 'top': return { left: Foundation.rtl() ? $anchorDims.offset.left - $eleDims.width + $anchorDims.width : $anchorDims.offset.left, top: $anchorDims.offset.top - ($eleDims.height + vOffset) }; break; case 'left': return { left: $anchorDims.offset.left - ($eleDims.width + hOffset), top: $anchorDims.offset.top }; break; case 'right': return { left: $anchorDims.offset.left + $anchorDims.width + hOffset, top: $anchorDims.offset.top }; break; case 'center top': return { left: $anchorDims.offset.left + $anchorDims.width / 2 - $eleDims.width / 2, top: $anchorDims.offset.top - ($eleDims.height + vOffset) }; break; case 'center bottom': return { left: isOverflow ? hOffset : $anchorDims.offset.left + $anchorDims.width / 2 - $eleDims.width / 2, top: $anchorDims.offset.top + $anchorDims.height + vOffset }; break; case 'center left': return { left: $anchorDims.offset.left - ($eleDims.width + hOffset), top: $anchorDims.offset.top + $anchorDims.height / 2 - $eleDims.height / 2 }; break; case 'center right': return { left: $anchorDims.offset.left + $anchorDims.width + hOffset + 1, top: $anchorDims.offset.top + $anchorDims.height / 2 - $eleDims.height / 2 }; break; case 'center': return { left: $eleDims.windowDims.offset.left + $eleDims.windowDims.width / 2 - $eleDims.width / 2, top: $eleDims.windowDims.offset.top + $eleDims.windowDims.height / 2 - $eleDims.height / 2 }; break; case 'reveal': return { left: ($eleDims.windowDims.width - $eleDims.width) / 2, top: $eleDims.windowDims.offset.top + vOffset }; case 'reveal full': return { left: $eleDims.windowDims.offset.left, top: $eleDims.windowDims.offset.top }; break; default: return { left: Foundation.rtl() ? $anchorDims.offset.left - $eleDims.width + $anchorDims.width : $anchorDims.offset.left, top: $anchorDims.offset.top + $anchorDims.height + vOffset }; } } }(jQuery); /******************************************* * * * This util was created by Marius Olbertz * * Please thank Marius on GitHub /owlbertz * * or the web http://www.mariusolbertz.de/ * * * ******************************************/ 'use strict'; !function ($) { var keyCodes = { 9: 'TAB', 13: 'ENTER', 27: 'ESCAPE', 32: 'SPACE', 37: 'ARROW_LEFT', 38: 'ARROW_UP', 39: 'ARROW_RIGHT', 40: 'ARROW_DOWN' }; var commands = {}; var Keyboard = { keys: getKeyCodes(keyCodes), /** * Parses the (keyboard) event and returns a String that represents its key * Can be used like Foundation.parseKey(event) === Foundation.keys.SPACE * @param {Event} event - the event generated by the event handler * @return String key - String that represents the key pressed */ parseKey: function (event) { var key = keyCodes[event.which || event.keyCode] || String.fromCharCode(event.which).toUpperCase(); if (event.shiftKey) key = 'SHIFT_' + key; if (event.ctrlKey) key = 'CTRL_' + key; if (event.altKey) key = 'ALT_' + key; return key; }, /** * Handles the given (keyboard) event * @param {Event} event - the event generated by the event handler * @param {String} component - Foundation component's name, e.g. Slider or Reveal * @param {Objects} functions - collection of functions that are to be executed */ handleKey: function (event, component, functions) { var commandList = commands[component], keyCode = this.parseKey(event), cmds, command, fn; if (!commandList) return console.warn('Component not defined!'); if (typeof commandList.ltr === 'undefined') { // this component does not differentiate between ltr and rtl cmds = commandList; // use plain list } else { // merge ltr and rtl: if document is rtl, rtl overwrites ltr and vice versa if (Foundation.rtl()) cmds = $.extend({}, commandList.ltr, commandList.rtl);else cmds = $.extend({}, commandList.rtl, commandList.ltr); } command = cmds[keyCode]; fn = functions[command]; if (fn && typeof fn === 'function') { // execute function if exists fn.apply(); if (functions.handled || typeof functions.handled === 'function') { // execute function when event was handled functions.handled.apply(); } } else { if (functions.unhandled || typeof functions.unhandled === 'function') { // execute function when event was not handled functions.unhandled.apply(); } } }, /** * Finds all focusable elements within the given `$element` * @param {jQuery} $element - jQuery object to search within * @return {jQuery} $focusable - all focusable elements within `$element` */ findFocusable: function ($element) { return $element.find('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]').filter(function () { if (!$(this).is(':visible') || $(this).attr('tabindex') < 0) { return false; } //only have visible elements and those that have a tabindex greater or equal 0 return true; }); }, /** * Returns the component name name * @param {Object} component - Foundation component, e.g. Slider or Reveal * @return String componentName */ register: function (componentName, cmds) { commands[componentName] = cmds; } }; /* * Constants for easier comparing. * Can be used like Foundation.parseKey(event) === Foundation.keys.SPACE */ function getKeyCodes(kcs) { var k = {}; for (var kc in kcs) { k[kcs[kc]] = kcs[kc]; }return k; } Foundation.Keyboard = Keyboard; }(jQuery); 'use strict'; !function ($) { // Default set of media queries var defaultQueries = { 'default': 'only screen', landscape: 'only screen and (orientation: landscape)', portrait: 'only screen and (orientation: portrait)', retina: 'only screen and (-webkit-min-device-pixel-ratio: 2),' + 'only screen and (min--moz-device-pixel-ratio: 2),' + 'only screen and (-o-min-device-pixel-ratio: 2/1),' + 'only screen and (min-device-pixel-ratio: 2),' + 'only screen and (min-resolution: 192dpi),' + 'only screen and (min-resolution: 2dppx)' }; var MediaQuery = { queries: [], current: '', /** * Initializes the media query helper, by extracting the breakpoint list from the CSS and activating the breakpoint watcher. * @function * @private */ _init: function () { var self = this; var extractedStyles = $('.foundation-mq').css('font-family'); var namedQueries; namedQueries = parseStyleToObject(extractedStyles); for (var key in namedQueries) { self.queries.push({ name: key, value: 'only screen and (min-width: ' + namedQueries[key] + ')' }); } this.current = this._getCurrentSize(); this._watcher(); }, /** * Checks if the screen is at least as wide as a breakpoint. * @function * @param {String} size - Name of the breakpoint to check. * @returns {Boolean} `true` if the breakpoint matches, `false` if it's smaller. */ atLeast: function (size) { var query = this.get(size); if (query) { return window.matchMedia(query).matches; } return false; }, /** * Gets the media query of a breakpoint. * @function * @param {String} size - Name of the breakpoint to get. * @returns {String|null} - The media query of the breakpoint, or `null` if the breakpoint doesn't exist. */ get: function (size) { for (var i in this.queries) { var query = this.queries[i]; if (size === query.name) return query.value; } return null; }, /** * Gets the current breakpoint name by testing every breakpoint and returning the last one to match (the biggest one). * @function * @private * @returns {String} Name of the current breakpoint. */ _getCurrentSize: function () { var matched; for (var i in this.queries) { var query = this.queries[i]; if (window.matchMedia(query.value).matches) { matched = query; } } if (typeof matched === 'object') { return matched.name; } else { return matched; } }, /** * Activates the breakpoint watcher, which fires an event on the window whenever the breakpoint changes. * @function * @private */ _watcher: function () { var _this = this; $(window).on('resize.zf.mediaquery', function () { var newSize = _this._getCurrentSize(); if (newSize !== _this.current) { // Broadcast the media query change on the window $(window).trigger('changed.zf.mediaquery', [newSize, _this.current]); // Change the current media query _this.current = newSize; } }); } }; Foundation.MediaQuery = MediaQuery; // matchMedia() polyfill - Test a CSS media type/query in JS. // Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license window.matchMedia || (window.matchMedia = function () { 'use strict'; // For browsers that support matchMedium api such as IE 9 and webkit var styleMedia = window.styleMedia || window.media; // For those that don't support matchMedium if (!styleMedia) { var style = document.createElement('style'), script = document.getElementsByTagName('script')[0], info = null; style.type = 'text/css'; style.id = 'matchmediajs-test'; script.parentNode.insertBefore(style, script); // 'style.currentStyle' is used by IE <= 8 and 'window.getComputedStyle' for all other browsers info = 'getComputedStyle' in window && window.getComputedStyle(style, null) || style.currentStyle; styleMedia = { matchMedium: function (media) { var text = '@media ' + media + '{ #matchmediajs-test { width: 1px; } }'; // 'style.styleSheet' is used by IE <= 8 and 'style.textContent' for all other browsers if (style.styleSheet) { style.styleSheet.cssText = text; } else { style.textContent = text; } // Test if media query is true or false return info.width === '1px'; } }; } return function (media) { return { matches: styleMedia.matchMedium(media || 'all'), media: media || 'all' }; }; }()); // Thank you: https://github.com/sindresorhus/query-string function parseStyleToObject(str) { var styleObject = {}; if (typeof str !== 'string') { return styleObject; } str = str.trim().slice(1, -1); // browsers re-quote string style values if (!str) { return styleObject; } styleObject = str.split('&').reduce(function (ret, param) { var parts = param.replace(/\+/g, ' ').split('='); var key = parts[0]; var val = parts[1]; key = decodeURIComponent(key); // missing `=` should be `null`: // http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters val = val === undefined ? null : decodeURIComponent(val); if (!ret.hasOwnProperty(key)) { ret[key] = val; } else if (Array.isArray(ret[key])) { ret[key].push(val); } else { ret[key] = [ret[key], val]; } return ret; }, {}); return styleObject; } Foundation.MediaQuery = MediaQuery; }(jQuery); 'use strict'; !function ($) { /** * Motion module. * @module foundation.motion */ var initClasses = ['mui-enter', 'mui-leave']; var activeClasses = ['mui-enter-active', 'mui-leave-active']; var Motion = { animateIn: function (element, animation, cb) { animate(true, element, animation, cb); }, animateOut: function (element, animation, cb) { animate(false, element, animation, cb); } }; function Move(duration, elem, fn) { var anim, prog, start = null; // console.log('called'); function move(ts) { if (!start) start = window.performance.now(); // console.log(start, ts); prog = ts - start; fn.apply(elem); if (prog < duration) { anim = window.requestAnimationFrame(move, elem); } else { window.cancelAnimationFrame(anim); elem.trigger('finished.zf.animate', [elem]).triggerHandler('finished.zf.animate', [elem]); } } anim = window.requestAnimationFrame(move); } /** * Animates an element in or out using a CSS transition class. * @function * @private * @param {Boolean} isIn - Defines if the animation is in or out. * @param {Object} element - jQuery or HTML object to animate. * @param {String} animation - CSS class to use. * @param {Function} cb - Callback to run when animation is finished. */ function animate(isIn, element, animation, cb) { element = $(element).eq(0); if (!element.length) return; var initClass = isIn ? initClasses[0] : initClasses[1]; var activeClass = isIn ? activeClasses[0] : activeClasses[1]; // Set up the animation reset(); element.addClass(animation).css('transition', 'none'); requestAnimationFrame(function () { element.addClass(initClass); if (isIn) element.show(); }); // Start the animation requestAnimationFrame(function () { element[0].offsetWidth; element.css('transition', '').addClass(activeClass); }); // Clean up the animation when it finishes element.one(Foundation.transitionend(element), finish); // Hides the element (for out animations), resets the element, and runs a callback function finish() { if (!isIn) element.hide(); reset(); if (cb) cb.apply(element); } // Resets transitions and removes motion-specific classes function reset() { element[0].style.transitionDuration = 0; element.removeClass(initClass + ' ' + activeClass + ' ' + animation); } } Foundation.Move = Move; Foundation.Motion = Motion; }(jQuery); 'use strict'; !function ($) { var Nest = { Feather: function (menu) { var type = arguments.length <= 1 || arguments[1] === undefined ? 'zf' : arguments[1]; menu.attr('role', 'menubar'); var items = menu.find('li').attr({ 'role': 'menuitem' }), subMenuClass = 'is-' + type + '-submenu', subItemClass = subMenuClass + '-item', hasSubClass = 'is-' + type + '-submenu-parent'; menu.find('a:first').attr('tabindex', 0); items.each(function () { var $item = $(this), $sub = $item.children('ul'); if ($sub.length) { $item.addClass(hasSubClass).attr({ 'aria-haspopup': true, 'aria-expanded': false, 'aria-label': $item.children('a:first').text() }); $sub.addClass('submenu ' + subMenuClass).attr({ 'data-submenu': '', 'aria-hidden': true, 'role': 'menu' }); } if ($item.parent('[data-submenu]').length) { $item.addClass('is-submenu-item ' + subItemClass); } }); return; }, Burn: function (menu, type) { var items = menu.find('li').removeAttr('tabindex'), subMenuClass = 'is-' + type + '-submenu', subItemClass = subMenuClass + '-item', hasSubClass = 'is-' + type + '-submenu-parent'; menu.find('*').removeClass(subMenuClass + ' ' + subItemClass + ' ' + hasSubClass + ' is-submenu-item submenu is-active').removeAttr('data-submenu').css('display', ''); // console.log( menu.find('.' + subMenuClass + ', .' + subItemClass + ', .has-submenu, .is-submenu-item, .submenu, [data-submenu]') // .removeClass(subMenuClass + ' ' + subItemClass + ' has-submenu is-submenu-item submenu') // .removeAttr('data-submenu')); // items.each(function(){ // var $item = $(this), // $sub = $item.children('ul'); // if($item.parent('[data-submenu]').length){ // $item.removeClass('is-submenu-item ' + subItemClass); // } // if($sub.length){ // $item.removeClass('has-submenu'); // $sub.removeClass('submenu ' + subMenuClass).removeAttr('data-submenu'); // } // }); } }; Foundation.Nest = Nest; }(jQuery); 'use strict'; !function ($) { function Timer(elem, options, cb) { var _this = this, duration = options.duration, //options is an object for easily adding features later. nameSpace = Object.keys(elem.data())[0] || 'timer', remain = -1, start, timer; this.isPaused = false; this.restart = function () { remain = -1; clearTimeout(timer); this.start(); }; this.start = function () { this.isPaused = false; // if(!elem.data('paused')){ return false; }//maybe implement this sanity check if used for other things. clearTimeout(timer); remain = remain <= 0 ? duration : remain; elem.data('paused', false); start = Date.now(); timer = setTimeout(function () { if (options.infinite) { _this.restart(); //rerun the timer. } cb(); }, remain); elem.trigger('timerstart.zf.' + nameSpace); }; this.pause = function () { this.isPaused = true; //if(elem.data('paused')){ return false; }//maybe implement this sanity check if used for other things. clearTimeout(timer); elem.data('paused', true); var end = Date.now(); remain = remain - (end - start); elem.trigger('timerpaused.zf.' + nameSpace); }; } /** * Runs a callback function when images are fully loaded. * @param {Object} images - Image(s) to check if loaded. * @param {Func} callback - Function to execute when image is fully loaded. */ function onImagesLoaded(images, callback) { var self = this, unloaded = images.length; if (unloaded === 0) { callback(); } images.each(function () { if (this.complete) { singleImageLoaded(); } else if (typeof this.naturalWidth !== 'undefined' && this.naturalWidth > 0) { singleImageLoaded(); } else { $(this).one('load', function () { singleImageLoaded(); }); } }); function singleImageLoaded() { unloaded--; if (unloaded === 0) { callback(); } } } Foundation.Timer = Timer; Foundation.onImagesLoaded = onImagesLoaded; }(jQuery); //************************************************** //**Work inspired by multiple jquery swipe plugins** //**Done by Yohai Ararat *************************** //************************************************** (function ($) { $.spotSwipe = { version: '1.0.0', enabled: 'ontouchstart' in document.documentElement, preventDefault: false, moveThreshold: 75, timeThreshold: 200 }; var startPosX, startPosY, startTime, elapsedTime, isMoving = false; function onTouchEnd() { // alert(this); this.removeEventListener('touchmove', onTouchMove); this.removeEventListener('touchend', onTouchEnd); isMoving = false; } function onTouchMove(e) { if ($.spotSwipe.preventDefault) { e.preventDefault(); } if (isMoving) { var x = e.touches[0].pageX; var y = e.touches[0].pageY; var dx = startPosX - x; var dy = startPosY - y; var dir; elapsedTime = new Date().getTime() - startTime; if (Math.abs(dx) >= $.spotSwipe.moveThreshold && elapsedTime <= $.spotSwipe.timeThreshold) { dir = dx > 0 ? 'left' : 'right'; } // else if(Math.abs(dy) >= $.spotSwipe.moveThreshold && elapsedTime <= $.spotSwipe.timeThreshold) { // dir = dy > 0 ? 'down' : 'up'; // } if (dir) { e.preventDefault(); onTouchEnd.call(this); $(this).trigger('swipe', dir).trigger('swipe' + dir); } } } function onTouchStart(e) { if (e.touches.length == 1) { startPosX = e.touches[0].pageX; startPosY = e.touches[0].pageY; isMoving = true; startTime = new Date().getTime(); this.addEventListener('touchmove', onTouchMove, false); this.addEventListener('touchend', onTouchEnd, false); } } function init() { this.addEventListener && this.addEventListener('touchstart', onTouchStart, false); } function teardown() { this.removeEventListener('touchstart', onTouchStart); } $.event.special.swipe = { setup: init }; $.each(['left', 'up', 'down', 'right'], function () { $.event.special['swipe' + this] = { setup: function () { $(this).on('swipe', $.noop); } }; }); })(jQuery); /**************************************************** * Method for adding psuedo drag events to elements * ***************************************************/ !function ($) { $.fn.addTouch = function () { this.each(function (i, el) { $(el).bind('touchstart touchmove touchend touchcancel', function () { //we pass the original event object because the jQuery event //object is normalized to w3c specs and does not provide the TouchList handleTouch(event); }); }); var handleTouch = function (event) { var touches = event.changedTouches, first = touches[0], eventTypes = { touchstart: 'mousedown', touchmove: 'mousemove', touchend: 'mouseup' }, type = eventTypes[event.type], simulatedEvent; if ('MouseEvent' in window && typeof window.MouseEvent === 'function') { simulatedEvent = window.MouseEvent(type, { 'bubbles': true, 'cancelable': true, 'screenX': first.screenX, 'screenY': first.screenY, 'clientX': first.clientX, 'clientY': first.clientY }); } else { simulatedEvent = document.createEvent('MouseEvent'); simulatedEvent.initMouseEvent(type, true, true, window, 1, first.screenX, first.screenY, first.clientX, first.clientY, false, false, false, false, 0 /*left*/, null); } first.target.dispatchEvent(simulatedEvent); }; }; }(jQuery); //********************************** //**From the jQuery Mobile Library** //**need to recreate functionality** //**and try to improve if possible** //********************************** /* Removing the jQuery function **** ************************************ (function( $, window, undefined ) { var $document = $( document ), // supportTouch = $.mobile.support.touch, touchStartEvent = 'touchstart'//supportTouch ? "touchstart" : "mousedown", touchStopEvent = 'touchend'//supportTouch ? "touchend" : "mouseup", touchMoveEvent = 'touchmove'//supportTouch ? "touchmove" : "mousemove"; // setup new event shortcuts $.each( ( "touchstart touchmove touchend " + "swipe swipeleft swiperight" ).split( " " ), function( i, name ) { $.fn[ name ] = function( fn ) { return fn ? this.bind( name, fn ) : this.trigger( name ); }; // jQuery < 1.8 if ( $.attrFn ) { $.attrFn[ name ] = true; } }); function triggerCustomEvent( obj, eventType, event, bubble ) { var originalType = event.type; event.type = eventType; if ( bubble ) { $.event.trigger( event, undefined, obj ); } else { $.event.dispatch.call( obj, event ); } event.type = originalType; } // also handles taphold // Also handles swipeleft, swiperight $.event.special.swipe = { // More than this horizontal displacement, and we will suppress scrolling. scrollSupressionThreshold: 30, // More time than this, and it isn't a swipe. durationThreshold: 1000, // Swipe horizontal displacement must be more than this. horizontalDistanceThreshold: window.devicePixelRatio >= 2 ? 15 : 30, // Swipe vertical displacement must be less than this. verticalDistanceThreshold: window.devicePixelRatio >= 2 ? 15 : 30, getLocation: function ( event ) { var winPageX = window.pageXOffset, winPageY = window.pageYOffset, x = event.clientX, y = event.clientY; if ( event.pageY === 0 && Math.floor( y ) > Math.floor( event.pageY ) || event.pageX === 0 && Math.floor( x ) > Math.floor( event.pageX ) ) { // iOS4 clientX/clientY have the value that should have been // in pageX/pageY. While pageX/page/ have the value 0 x = x - winPageX; y = y - winPageY; } else if ( y < ( event.pageY - winPageY) || x < ( event.pageX - winPageX ) ) { // Some Android browsers have totally bogus values for clientX/Y // when scrolling/zooming a page. Detectable since clientX/clientY // should never be smaller than pageX/pageY minus page scroll x = event.pageX - winPageX; y = event.pageY - winPageY; } return { x: x, y: y }; }, start: function( event ) { var data = event.originalEvent.touches ? event.originalEvent.touches[ 0 ] : event, location = $.event.special.swipe.getLocation( data ); return { time: ( new Date() ).getTime(), coords: [ location.x, location.y ], origin: $( event.target ) }; }, stop: function( event ) { var data = event.originalEvent.touches ? event.originalEvent.touches[ 0 ] : event, location = $.event.special.swipe.getLocation( data ); return { time: ( new Date() ).getTime(), coords: [ location.x, location.y ] }; }, handleSwipe: function( start, stop, thisObject, origTarget ) { if ( stop.time - start.time < $.event.special.swipe.durationThreshold && Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.horizontalDistanceThreshold && Math.abs( start.coords[ 1 ] - stop.coords[ 1 ] ) < $.event.special.swipe.verticalDistanceThreshold ) { var direction = start.coords[0] > stop.coords[ 0 ] ? "swipeleft" : "swiperight"; triggerCustomEvent( thisObject, "swipe", $.Event( "swipe", { target: origTarget, swipestart: start, swipestop: stop }), true ); triggerCustomEvent( thisObject, direction,$.Event( direction, { target: origTarget, swipestart: start, swipestop: stop } ), true ); return true; } return false; }, // This serves as a flag to ensure that at most one swipe event event is // in work at any given time eventInProgress: false, setup: function() { var events, thisObject = this, $this = $( thisObject ), context = {}; // Retrieve the events data for this element and add the swipe context events = $.data( this, "mobile-events" ); if ( !events ) { events = { length: 0 }; $.data( this, "mobile-events", events ); } events.length++; events.swipe = context; context.start = function( event ) { // Bail if we're already working on a swipe event if ( $.event.special.swipe.eventInProgress ) { return; } $.event.special.swipe.eventInProgress = true; var stop, start = $.event.special.swipe.start( event ), origTarget = event.target, emitted = false; context.move = function( event ) { if ( !start || event.isDefaultPrevented() ) { return; } stop = $.event.special.swipe.stop( event ); if ( !emitted ) { emitted = $.event.special.swipe.handleSwipe( start, stop, thisObject, origTarget ); if ( emitted ) { // Reset the context to make way for the next swipe event $.event.special.swipe.eventInProgress = false; } } // prevent scrolling if ( Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.scrollSupressionThreshold ) { event.preventDefault(); } }; context.stop = function() { emitted = true; // Reset the context to make way for the next swipe event $.event.special.swipe.eventInProgress = false; $document.off( touchMoveEvent, context.move ); context.move = null; }; $document.on( touchMoveEvent, context.move ) .one( touchStopEvent, context.stop ); }; $this.on( touchStartEvent, context.start ); }, teardown: function() { var events, context; events = $.data( this, "mobile-events" ); if ( events ) { context = events.swipe; delete events.swipe; events.length--; if ( events.length === 0 ) { $.removeData( this, "mobile-events" ); } } if ( context ) { if ( context.start ) { $( this ).off( touchStartEvent, context.start ); } if ( context.move ) { $document.off( touchMoveEvent, context.move ); } if ( context.stop ) { $document.off( touchStopEvent, context.stop ); } } } }; $.each({ swipeleft: "swipe.left", swiperight: "swipe.right" }, function( event, sourceEvent ) { $.event.special[ event ] = { setup: function() { $( this ).bind( sourceEvent, $.noop ); }, teardown: function() { $( this ).unbind( sourceEvent ); } }; }); })( jQuery, this ); */ 'use strict'; !function ($) { var MutationObserver = function () { var prefixes = ['WebKit', 'Moz', 'O', 'Ms', '']; for (var i = 0; i < prefixes.length; i++) { if (prefixes[i] + 'MutationObserver' in window) { return window[prefixes[i] + 'MutationObserver']; } } return false; }(); var triggers = function (el, type) { el.data(type).split(' ').forEach(function (id) { $('#' + id)[type === 'close' ? 'trigger' : 'triggerHandler'](type + '.zf.trigger', [el]); }); }; // Elements with [data-open] will reveal a plugin that supports it when clicked. $(document).on('click.zf.trigger', '[data-open]', function () { triggers($(this), 'open'); }); // Elements with [data-close] will close a plugin that supports it when clicked. // If used without a value on [data-close], the event will bubble, allowing it to close a parent component. $(document).on('click.zf.trigger', '[data-close]', function () { var id = $(this).data('close'); if (id) { triggers($(this), 'close'); } else { $(this).trigger('close.zf.trigger'); } }); // Elements with [data-toggle] will toggle a plugin that supports it when clicked. $(document).on('click.zf.trigger', '[data-toggle]', function () { triggers($(this), 'toggle'); }); // Elements with [data-closable] will respond to close.zf.trigger events. $(document).on('close.zf.trigger', '[data-closable]', function (e) { e.stopPropagation(); var animation = $(this).data('closable'); if (animation !== '') { Foundation.Motion.animateOut($(this), animation, function () { $(this).trigger('closed.zf'); }); } else { $(this).fadeOut().trigger('closed.zf'); } }); $(document).on('focus.zf.trigger blur.zf.trigger', '[data-toggle-focus]', function () { var id = $(this).data('toggle-focus'); $('#' + id).triggerHandler('toggle.zf.trigger', [$(this)]); }); /** * Fires once after all other scripts have loaded * @function * @private */ $(window).load(function () { checkListeners(); }); function checkListeners() { eventsListener(); resizeListener(); scrollListener(); closemeListener(); } //******** only fires this function once on load, if there's something to watch ******** function closemeListener(pluginName) { var yetiBoxes = $('[data-yeti-box]'), plugNames = ['dropdown', 'tooltip', 'reveal']; if (pluginName) { if (typeof pluginName === 'string') { plugNames.push(pluginName); } else if (typeof pluginName === 'object' && typeof pluginName[0] === 'string') { plugNames.concat(pluginName); } else { console.error('Plugin names must be strings'); } } if (yetiBoxes.length) { var listeners = plugNames.map(function (name) { return 'closeme.zf.' + name; }).join(' '); $(window).off(listeners).on(listeners, function (e, pluginId) { var plugin = e.namespace.split('.')[0]; var plugins = $('[data-' + plugin + ']').not('[data-yeti-box="' + pluginId + '"]'); plugins.each(function () { var _this = $(this); _this.triggerHandler('close.zf.trigger', [_this]); }); }); } } function resizeListener(debounce) { var timer = undefined, $nodes = $('[data-resize]'); if ($nodes.length) { $(window).off('resize.zf.trigger').on('resize.zf.trigger', function (e) { if (timer) { clearTimeout(timer); } timer = setTimeout(function () { if (!MutationObserver) { //fallback for IE 9 $nodes.each(function () { $(this).triggerHandler('resizeme.zf.trigger'); }); } //trigger all listening elements and signal a resize event $nodes.attr('data-events', "resize"); }, debounce || 10); //default time to emit resize event }); } } function scrollListener(debounce) { var timer = undefined, $nodes = $('[data-scroll]'); if ($nodes.length) { $(window).off('scroll.zf.trigger').on('scroll.zf.trigger', function (e) { if (timer) { clearTimeout(timer); } timer = setTimeout(function () { if (!MutationObserver) { //fallback for IE 9 $nodes.each(function () { $(this).triggerHandler('scrollme.zf.trigger'); }); } //trigger all listening elements and signal a scroll event $nodes.attr('data-events', "scroll"); }, debounce || 10); //default time to emit scroll event }); } } function eventsListener() { if (!MutationObserver) { return false; } var nodes = document.querySelectorAll('[data-resize], [data-scroll], [data-mutate]'); //element callback var listeningElementsMutation = function (mutationRecordsList) { var $target = $(mutationRecordsList[0].target); //trigger the event handler for the element depending on type switch ($target.attr("data-events")) { case "resize": $target.triggerHandler('resizeme.zf.trigger', [$target]); break; case "scroll": $target.triggerHandler('scrollme.zf.trigger', [$target, window.pageYOffset]); break; // case "mutate" : // console.log('mutate', $target); // $target.triggerHandler('mutate.zf.trigger'); // // //make sure we don't get stuck in an infinite loop from sloppy codeing // if ($target.index('[data-mutate]') == $("[data-mutate]").length-1) { // domMutationObserver(); // } // break; default: return false; //nothing } }; if (nodes.length) { //for each element that needs to listen for resizing, scrolling, (or coming soon mutation) add a single observer for (var i = 0; i <= nodes.length - 1; i++) { var elementObserver = new MutationObserver(listeningElementsMutation); elementObserver.observe(nodes[i], { attributes: true, childList: false, characterData: false, subtree: false, attributeFilter: ["data-events"] }); } } } // ------------------------------------ // [PH] // Foundation.CheckWatchers = checkWatchers; Foundation.IHearYou = checkListeners; // Foundation.ISeeYou = scrollListener; // Foundation.IFeelYou = closemeListener; }(jQuery); // function domMutationObserver(debounce) { // // !!! This is coming soon and needs more work; not active !!! // // var timer, // nodes = document.querySelectorAll('[data-mutate]'); // // // if (nodes.length) { // // var MutationObserver = (function () { // // var prefixes = ['WebKit', 'Moz', 'O', 'Ms', '']; // // for (var i=0; i < prefixes.length; i++) { // // if (prefixes[i] + 'MutationObserver' in window) { // // return window[prefixes[i] + 'MutationObserver']; // // } // // } // // return false; // // }()); // // // //for the body, we need to listen for all changes effecting the style and class attributes // var bodyObserver = new MutationObserver(bodyMutation); // bodyObserver.observe(document.body, { attributes: true, childList: true, characterData: false, subtree:true, attributeFilter:["style", "class"]}); // // // //body callback // function bodyMutation(mutate) { // //trigger all listening elements and signal a mutation event // if (timer) { clearTimeout(timer); } // // timer = setTimeout(function() { // bodyObserver.disconnect(); // $('[data-mutate]').attr('data-events',"mutate"); // }, debounce || 150); // } // } // } 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * Abide module. * @module foundation.abide */ var Abide = function () { /** * Creates a new instance of Abide. * @class * @fires Abide#init * @param {Object} element - jQuery object to add the trigger to. * @param {Object} options - Overrides to the default plugin settings. */ function Abide(element) { var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; _classCallCheck(this, Abide); this.$element = element; this.options = $.extend({}, Abide.defaults, this.$element.data(), options); this._init(); Foundation.registerPlugin(this, 'Abide'); } /** * Initializes the Abide plugin and calls functions to get Abide functioning on load. * @private */ _createClass(Abide, [{ key: '_init', value: function _init() { this.$inputs = this.$element.find('input, textarea, select').not('[data-abide-ignore]'); this._events(); } /** * Initializes events for Abide. * @private */ }, { key: '_events', value: function _events() { var _this2 = this; this.$element.off('.abide').on('reset.zf.abide', function () { _this2.resetForm(); }).on('submit.zf.abide', function () { return _this2.validateForm(); }); if (this.options.validateOn === 'fieldChange') { this.$inputs.off('change.zf.abide').on('change.zf.abide', function (e) { _this2.validateInput($(e.target)); }); } if (this.options.liveValidate) { this.$inputs.off('input.zf.abide').on('input.zf.abide', function (e) { _this2.validateInput($(e.target)); }); } } /** * Calls necessary functions to update Abide upon DOM change * @private */ }, { key: '_reflow', value: function _reflow() { this._init(); } /** * Checks whether or not a form element has the required attribute and if it's checked or not * @param {Object} element - jQuery object to check for required attribute * @returns {Boolean} Boolean value depends on whether or not attribute is checked or empty */ }, { key: 'requiredCheck', value: function requiredCheck($el) { if (!$el.attr('required')) return true; var isGood = true; switch ($el[0].type) { case 'checkbox': case 'radio': isGood = $el[0].checked; break; case 'select': case 'select-one': case 'select-multiple': var opt = $el.find('option:selected'); if (!opt.length || !opt.val()) isGood = false; break; default: if (!$el.val() || !$el.val().length) isGood = false; } return isGood; } /** * Based on $el, get the first element with selector in this order: * 1. The element's direct sibling('s). * 3. The element's parent's children. * * This allows for multiple form errors per input, though if none are found, no form errors will be shown. * * @param {Object} $el - jQuery object to use as reference to find the form error selector. * @returns {Object} jQuery object with the selector. */ }, { key: 'findFormError', value: function findFormError($el) { var $error = $el.siblings(this.options.formErrorSelector); if (!$error.length) { $error = $el.parent().find(this.options.formErrorSelector); } return $error; } /** * Get the first element in this order: * 2. The <label> with the attribute `[for="someInputId"]` * 3. The `.closest()` <label> * * @param {Object} $el - jQuery object to check for required attribute * @returns {Boolean} Boolean value depends on whether or not attribute is checked or empty */ }, { key: 'findLabel', value: function findLabel($el) { var id = $el[0].id; var $label = this.$element.find('label[for="' + id + '"]'); if (!$label.length) { return $el.closest('label'); } return $label; } /** * Adds the CSS error class as specified by the Abide settings to the label, input, and the form * @param {Object} $el - jQuery object to add the class to */ }, { key: 'addErrorClasses', value: function addErrorClasses($el) { var $label = this.findLabel($el); var $formError = this.findFormError($el); if ($label.length) { $label.addClass(this.options.labelErrorClass); } if ($formError.length) { $formError.addClass(this.options.formErrorClass); } $el.addClass(this.options.inputErrorClass).attr('data-invalid', ''); } /** * Removes CSS error class as specified by the Abide settings from the label, input, and the form * @param {Object} $el - jQuery object to remove the class from */ }, { key: 'removeErrorClasses', value: function removeErrorClasses($el) { var $label = this.findLabel($el); var $formError = this.findFormError($el); if ($label.length) { $label.removeClass(this.options.labelErrorClass); } if ($formError.length) { $formError.removeClass(this.options.formErrorClass); } $el.removeClass(this.options.inputErrorClass).removeAttr('data-invalid'); } /** * Goes through a form to find inputs and proceeds to validate them in ways specific to their type * @fires Abide#invalid * @fires Abide#valid * @param {Object} element - jQuery object to validate, should be an HTML input * @returns {Boolean} goodToGo - If the input is valid or not. */ }, { key: 'validateInput', value: function validateInput($el) { var clearRequire = this.requiredCheck($el), validated = false, customValidator = true, validator = $el.attr('data-validator'), equalTo = true; switch ($el[0].type) { case 'radio': validated = this.validateRadio($el.attr('name')); break; case 'checkbox': validated = clearRequire; break; case 'select': case 'select-one': case 'select-multiple': validated = clearRequire; break; default: validated = this.validateText($el); } if (validator) { customValidator = this.matchValidation($el, validator, $el.attr('required')); } if ($el.attr('data-equalto')) { equalTo = this.options.validators.equalTo($el); } var goodToGo = [clearRequire, validated, customValidator, equalTo].indexOf(false) === -1; var message = (goodToGo ? 'valid' : 'invalid') + '.zf.abide'; this[goodToGo ? 'removeErrorClasses' : 'addErrorClasses']($el); /** * Fires when the input is done checking for validation. Event trigger is either `valid.zf.abide` or `invalid.zf.abide` * Trigger includes the DOM element of the input. * @event Abide#valid * @event Abide#invalid */ $el.trigger(message, [$el]); return goodToGo; } /** * Goes through a form and if there are any invalid inputs, it will display the form error element * @returns {Boolean} noError - true if no errors were detected... * @fires Abide#formvalid * @fires Abide#forminvalid */ }, { key: 'validateForm', value: function validateForm() { var acc = []; var _this = this; this.$inputs.each(function () { acc.push(_this.validateInput($(this))); }); var noError = acc.indexOf(false) === -1; this.$element.find('[data-abide-error]').css('display', noError ? 'none' : 'block'); /** * Fires when the form is finished validating. Event trigger is either `formvalid.zf.abide` or `forminvalid.zf.abide`. * Trigger includes the element of the form. * @event Abide#formvalid * @event Abide#forminvalid */ this.$element.trigger((noError ? 'formvalid' : 'forminvalid') + '.zf.abide', [this.$element]); return noError; } /** * Determines whether or a not a text input is valid based on the pattern specified in the attribute. If no matching pattern is found, returns true. * @param {Object} $el - jQuery object to validate, should be a text input HTML element * @param {String} pattern - string value of one of the RegEx patterns in Abide.options.patterns * @returns {Boolean} Boolean value depends on whether or not the input value matches the pattern specified */ }, { key: 'validateText', value: function validateText($el, pattern) { // pattern = pattern ? pattern : $el.attr('pattern') ? $el.attr('pattern') : $el.attr('type'); pattern = pattern || $el.attr('pattern') || $el.attr('type'); var inputText = $el.val(); // if text, check if the pattern exists, if so, test it, if no text or no pattern, return true. return inputText.length ? this.options.patterns.hasOwnProperty(pattern) ? this.options.patterns[pattern].test(inputText) : pattern && pattern !== $el.attr('type') ? new RegExp(pattern).test(inputText) : true : true; } /** * Determines whether or a not a radio input is valid based on whether or not it is required and selected * @param {String} groupName - A string that specifies the name of a radio button group * @returns {Boolean} Boolean value depends on whether or not at least one radio input has been selected (if it's required) */ }, { key: 'validateRadio', value: function validateRadio(groupName) { var $group = this.$element.find(':radio[name="' + groupName + '"]'), counter = [], _this = this; $group.each(function () { var rdio = $(this), clear = _this.requiredCheck(rdio); counter.push(clear); if (clear) _this.removeErrorClasses(rdio); }); return counter.indexOf(false) === -1; } /** * Determines if a selected input passes a custom validation function. Multiple validations can be used, if passed to the element with `data-validator="foo bar baz"` in a space separated listed. * @param {Object} $el - jQuery input element. * @param {String} validators - a string of function names matching functions in the Abide.options.validators object. * @param {Boolean} required - self explanatory? * @returns {Boolean} - true if validations passed. */ }, { key: 'matchValidation', value: function matchValidation($el, validators, required) { var _this3 = this; required = required ? true : false; var clear = validators.split(' ').map(function (v) { return _this3.options.validators[v]($el, required, $el.parent()); }); return clear.indexOf(false) === -1; } /** * Resets form inputs and styles * @fires Abide#formreset */ }, { key: 'resetForm', value: function resetForm() { var $form = this.$element, opts = this.options; $('.' + opts.labelErrorClass, $form).not('small').removeClass(opts.labelErrorClass); $('.' + opts.inputErrorClass, $form).not('small').removeClass(opts.inputErrorClass); $(opts.formErrorSelector + '.' + opts.formErrorClass).removeClass(opts.formErrorClass); $form.find('[data-abide-error]').css('display', 'none'); $(':input', $form).not(':button, :submit, :reset, :hidden, [data-abide-ignore]').val('').removeAttr('data-invalid'); /** * Fires when the form has been reset. * @event Abide#formreset */ $form.trigger('formreset.zf.abide', [$form]); } /** * Destroys an instance of Abide. * Removes error styles and classes from elements, without resetting their values. */ }, { key: 'destroy', value: function destroy() { var _this = this; this.$element.off('.abide').find('[data-abide-error]').css('display', 'none'); this.$inputs.off('.abide').each(function () { _this.removeErrorClasses($(this)); }); Foundation.unregisterPlugin(this); } }]); return Abide; }(); /** * Default settings for plugin */ Abide.defaults = { /** * The default event to validate inputs. Checkboxes and radios validate immediately. * Remove or change this value for manual validation. * @option * @example 'fieldChange' */ validateOn: 'fieldChange', /** * Class to be applied to input labels on failed validation. * @option * @example 'is-invalid-label' */ labelErrorClass: 'is-invalid-label', /** * Class to be applied to inputs on failed validation. * @option * @example 'is-invalid-input' */ inputErrorClass: 'is-invalid-input', /** * Class selector to use to target Form Errors for show/hide. * @option * @example '.form-error' */ formErrorSelector: '.form-error', /** * Class added to Form Errors on failed validation. * @option * @example 'is-visible' */ formErrorClass: 'is-visible', /** * Set to true to validate text inputs on any value change. * @option * @example false */ liveValidate: false, patterns: { alpha: /^[a-zA-Z]+$/, alpha_numeric: /^[a-zA-Z0-9]+$/, integer: /^[-+]?\d+$/, number: /^[-+]?\d*(?:[\.\,]\d+)?$/, // amex, visa, diners card: /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/, cvv: /^([0-9]){3,4}$/, // http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address email: /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/, url: /^(https?|ftp|file|ssh):\/\/(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/, // abc.de domain: /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,8}$/, datetime: /^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/, // YYYY-MM-DD date: /(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/, // HH:MM:SS time: /^(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$/, dateISO: /^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/, // MM/DD/YYYY month_day_year: /^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d{4}$/, // DD/MM/YYYY day_month_year: /^(0[1-9]|[12][0-9]|3[01])[- \/.](0[1-9]|1[012])[- \/.]\d{4}$/, // #FFF or #FFFFFF color: /^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/ }, /** * Optional validation functions to be used. `equalTo` being the only default included function. * Functions should return only a boolean if the input is valid or not. Functions are given the following arguments: * el : The jQuery element to validate. * required : Boolean value of the required attribute be present or not. * parent : The direct parent of the input. * @option */ validators: { equalTo: function (el, required, parent) { return $('#' + el.attr('data-equalto')).val() === el.val(); } } }; // Window exports Foundation.plugin(Abide, 'Abide'); }(jQuery); 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * Accordion module. * @module foundation.accordion * @requires foundation.util.keyboard * @requires foundation.util.motion */ var Accordion = function () { /** * Creates a new instance of an accordion. * @class * @fires Accordion#init * @param {jQuery} element - jQuery object to make into an accordion. * @param {Object} options - a plain object with settings to override the default options. */ function Accordion(element, options) { _classCallCheck(this, Accordion); this.$element = element; this.options = $.extend({}, Accordion.defaults, this.$element.data(), options); this._init(); Foundation.registerPlugin(this, 'Accordion'); Foundation.Keyboard.register('Accordion', { 'ENTER': 'toggle', 'SPACE': 'toggle', 'ARROW_DOWN': 'next', 'ARROW_UP': 'previous' }); } /** * Initializes the accordion by animating the preset active pane(s). * @private */ _createClass(Accordion, [{ key: '_init', value: function _init() { this.$element.attr('role', 'tablist'); this.$tabs = this.$element.children('li'); if (this.$tabs.length === 0) { this.$tabs = this.$element.children('[data-accordion-item]'); } this.$tabs.each(function (idx, el) { var $el = $(el), $content = $el.find('[data-tab-content]'), id = $content[0].id || Foundation.GetYoDigits(6, 'accordion'), linkId = el.id || id + '-label'; $el.find('a:first').attr({ 'aria-controls': id, 'role': 'tab', 'id': linkId, 'aria-expanded': false, 'aria-selected': false }); $content.attr({ 'role': 'tabpanel', 'aria-labelledby': linkId, 'aria-hidden': true, 'id': id }); }); var $initActive = this.$element.find('.is-active').children('[data-tab-content]'); if ($initActive.length) { this.down($initActive, true); } this._events(); } /** * Adds event handlers for items within the accordion. * @private */ }, { key: '_events', value: function _events() { var _this = this; this.$tabs.each(function () { var $elem = $(this); var $tabContent = $elem.children('[data-tab-content]'); if ($tabContent.length) { $elem.children('a').off('click.zf.accordion keydown.zf.accordion').on('click.zf.accordion', function (e) { // $(this).children('a').on('click.zf.accordion', function(e) { e.preventDefault(); if ($elem.hasClass('is-active')) { if (_this.options.allowAllClosed || $elem.siblings().hasClass('is-active')) { _this.up($tabContent); } } else { _this.down($tabContent); } }).on('keydown.zf.accordion', function (e) { Foundation.Keyboard.handleKey(e, 'Accordion', { toggle: function () { _this.toggle($tabContent); }, next: function () { $elem.next().find('a').focus().trigger('click.zf.accordion'); }, previous: function () { $elem.prev().find('a').focus().trigger('click.zf.accordion'); }, handled: function () { e.preventDefault(); e.stopPropagation(); } }); }); } }); } /** * Toggles the selected content pane's open/close state. * @param {jQuery} $target - jQuery object of the pane to toggle. * @function */ }, { key: 'toggle', value: function toggle($target) { if ($target.parent().hasClass('is-active')) { if (this.options.allowAllClosed || $target.parent().siblings().hasClass('is-active')) { this.up($target); } else { return; } } else { this.down($target); } } /** * Opens the accordion tab defined by `$target`. * @param {jQuery} $target - Accordion pane to open. * @param {Boolean} firstTime - flag to determine if reflow should happen. * @fires Accordion#down * @function */ }, { key: 'down', value: function down($target, firstTime) { var _this = this; if (!this.options.multiExpand && !firstTime) { var $currentActive = this.$element.find('.is-active').children('[data-tab-content]'); if ($currentActive.length) { this.up($currentActive); } } $target.attr('aria-hidden', false).parent('[data-tab-content]').addBack().parent().addClass('is-active'); // Foundation.Move(_this.options.slideSpeed, $target, function(){ $target.slideDown(_this.options.slideSpeed, function () { /** * Fires when the tab is done opening. * @event Accordion#down */ _this.$element.trigger('down.zf.accordion', [$target]); }); // }); // if(!firstTime){ // Foundation._reflow(this.$element.attr('data-accordion')); // } $('#' + $target.attr('aria-labelledby')).attr({ 'aria-expanded': true, 'aria-selected': true }); } /** * Closes the tab defined by `$target`. * @param {jQuery} $target - Accordion tab to close. * @fires Accordion#up * @function */ }, { key: 'up', value: function up($target) { var $aunts = $target.parent().siblings(), _this = this; var canClose = this.options.multiExpand ? $aunts.hasClass('is-active') : $target.parent().hasClass('is-active'); if (!this.options.allowAllClosed && !canClose) { return; } // Foundation.Move(this.options.slideSpeed, $target, function(){ $target.slideUp(_this.options.slideSpeed, function () { /** * Fires when the tab is done collapsing up. * @event Accordion#up */ _this.$element.trigger('up.zf.accordion', [$target]); }); // }); $target.attr('aria-hidden', true).parent().removeClass('is-active'); $('#' + $target.attr('aria-labelledby')).attr({ 'aria-expanded': false, 'aria-selected': false }); } /** * Destroys an instance of an accordion. * @fires Accordion#destroyed * @function */ }, { key: 'destroy', value: function destroy() { this.$element.find('[data-tab-content]').slideUp(0).css('display', ''); this.$element.find('a').off('.zf.accordion'); Foundation.unregisterPlugin(this); } }]); return Accordion; }(); Accordion.defaults = { /** * Amount of time to animate the opening of an accordion pane. * @option * @example 250 */ slideSpeed: 250, /** * Allow the accordion to have multiple open panes. * @option * @example false */ multiExpand: false, /** * Allow the accordion to close all panes. * @option * @example false */ allowAllClosed: false }; // Window exports Foundation.plugin(Accordion, 'Accordion'); }(jQuery); 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * AccordionMenu module. * @module foundation.accordionMenu * @requires foundation.util.keyboard * @requires foundation.util.motion * @requires foundation.util.nest */ var AccordionMenu = function () { /** * Creates a new instance of an accordion menu. * @class * @fires AccordionMenu#init * @param {jQuery} element - jQuery object to make into an accordion menu. * @param {Object} options - Overrides to the default plugin settings. */ function AccordionMenu(element, options) { _classCallCheck(this, AccordionMenu); this.$element = element; this.options = $.extend({}, AccordionMenu.defaults, this.$element.data(), options); Foundation.Nest.Feather(this.$element, 'accordion'); this._init(); Foundation.registerPlugin(this, 'AccordionMenu'); Foundation.Keyboard.register('AccordionMenu', { 'ENTER': 'toggle', 'SPACE': 'toggle', 'ARROW_RIGHT': 'open', 'ARROW_UP': 'up', 'ARROW_DOWN': 'down', 'ARROW_LEFT': 'close', 'ESCAPE': 'closeAll', 'TAB': 'down', 'SHIFT_TAB': 'up' }); } /** * Initializes the accordion menu by hiding all nested menus. * @private */ _createClass(AccordionMenu, [{ key: '_init', value: function _init() { this.$element.find('[data-submenu]').not('.is-active').slideUp(0); //.find('a').css('padding-left', '1rem'); this.$element.attr({ 'role': 'tablist', 'aria-multiselectable': this.options.multiOpen }); this.$menuLinks = this.$element.find('.is-accordion-submenu-parent'); this.$menuLinks.each(function () { var linkId = this.id || Foundation.GetYoDigits(6, 'acc-menu-link'), $elem = $(this), $sub = $elem.children('[data-submenu]'), subId = $sub[0].id || Foundation.GetYoDigits(6, 'acc-menu'), isActive = $sub.hasClass('is-active'); $elem.attr({ 'aria-controls': subId, 'aria-expanded': isActive, 'role': 'tab', 'id': linkId }); $sub.attr({ 'aria-labelledby': linkId, 'aria-hidden': !isActive, 'role': 'tabpanel', 'id': subId }); }); var initPanes = this.$element.find('.is-active'); if (initPanes.length) { var _this = this; initPanes.each(function () { _this.down($(this)); }); } this._events(); } /** * Adds event handlers for items within the menu. * @private */ }, { key: '_events', value: function _events() { var _this = this; this.$element.find('li').each(function () { var $submenu = $(this).children('[data-submenu]'); if ($submenu.length) { $(this).children('a').off('click.zf.accordionMenu').on('click.zf.accordionMenu', function (e) { e.preventDefault(); _this.toggle($submenu); }); } }).on('keydown.zf.accordionmenu', function (e) { var $element = $(this), $elements = $element.parent('ul').children('li'), $prevElement, $nextElement, $target = $element.children('[data-submenu]'); $elements.each(function (i) { if ($(this).is($element)) { $prevElement = $elements.eq(Math.max(0, i - 1)); $nextElement = $elements.eq(Math.min(i + 1, $elements.length - 1)); if ($(this).children('[data-submenu]:visible').length) { // has open sub menu $nextElement = $element.find('li:first-child'); } if ($(this).is(':first-child')) { // is first element of sub menu $prevElement = $element.parents('li').first(); } else if ($prevElement.children('[data-submenu]:visible').length) { // if previous element has open sub menu $prevElement = $prevElement.find('li:last-child'); } if ($(this).is(':last-child')) { // is last element of sub menu $nextElement = $element.parents('li').first().next('li'); } return; } }); Foundation.Keyboard.handleKey(e, 'AccordionMenu', { open: function () { if ($target.is(':hidden')) { _this.down($target); $target.find('li').first().focus(); } }, close: function () { if ($target.length && !$target.is(':hidden')) { // close active sub of this item _this.up($target); } else if ($element.parent('[data-submenu]').length) { // close currently open sub _this.up($element.parent('[data-submenu]')); $element.parents('li').first().focus(); } }, up: function () { $prevElement.focus(); }, down: function () { $nextElement.focus(); }, toggle: function () { if ($element.children('[data-submenu]').length) { _this.toggle($element.children('[data-submenu]')); } }, closeAll: function () { _this.hideAll(); }, handled: function () { e.preventDefault(); e.stopImmediatePropagation(); } }); }); //.attr('tabindex', 0); } /** * Closes all panes of the menu. * @function */ }, { key: 'hideAll', value: function hideAll() { this.$element.find('[data-submenu]').slideUp(this.options.slideSpeed); } /** * Toggles the open/close state of a submenu. * @function * @param {jQuery} $target - the submenu to toggle */ }, { key: 'toggle', value: function toggle($target) { if (!$target.is(':animated')) { if (!$target.is(':hidden')) { this.up($target); } else { this.down($target); } } } /** * Opens the sub-menu defined by `$target`. * @param {jQuery} $target - Sub-menu to open. * @fires AccordionMenu#down */ }, { key: 'down', value: function down($target) { var _this = this; if (!this.options.multiOpen) { this.up(this.$element.find('.is-active').not($target.parentsUntil(this.$element).add($target))); } $target.addClass('is-active').attr({ 'aria-hidden': false }).parent('.is-accordion-submenu-parent').attr({ 'aria-expanded': true }); Foundation.Move(this.options.slideSpeed, $target, function () { $target.slideDown(_this.options.slideSpeed, function () { /** * Fires when the menu is done opening. * @event AccordionMenu#down */ _this.$element.trigger('down.zf.accordionMenu', [$target]); }); }); } /** * Closes the sub-menu defined by `$target`. All sub-menus inside the target will be closed as well. * @param {jQuery} $target - Sub-menu to close. * @fires AccordionMenu#up */ }, { key: 'up', value: function up($target) { var _this = this; Foundation.Move(this.options.slideSpeed, $target, function () { $target.slideUp(_this.options.slideSpeed, function () { /** * Fires when the menu is done collapsing up. * @event AccordionMenu#up */ _this.$element.trigger('up.zf.accordionMenu', [$target]); }); }); var $menus = $target.find('[data-submenu]').slideUp(0).addBack().attr('aria-hidden', true); $menus.parent('.is-accordion-submenu-parent').attr('aria-expanded', false); } /** * Destroys an instance of accordion menu. * @fires AccordionMenu#destroyed */ }, { key: 'destroy', value: function destroy() { this.$element.find('[data-submenu]').slideDown(0).css('display', ''); this.$element.find('a').off('click.zf.accordionMenu'); Foundation.Nest.Burn(this.$element, 'accordion'); Foundation.unregisterPlugin(this); } }]); return AccordionMenu; }(); AccordionMenu.defaults = { /** * Amount of time to animate the opening of a submenu in ms. * @option * @example 250 */ slideSpeed: 250, /** * Allow the menu to have multiple open panes. * @option * @example true */ multiOpen: true }; // Window exports Foundation.plugin(AccordionMenu, 'AccordionMenu'); }(jQuery); 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * Drilldown module. * @module foundation.drilldown * @requires foundation.util.keyboard * @requires foundation.util.motion * @requires foundation.util.nest */ var Drilldown = function () { /** * Creates a new instance of a drilldown menu. * @class * @param {jQuery} element - jQuery object to make into an accordion menu. * @param {Object} options - Overrides to the default plugin settings. */ function Drilldown(element, options) { _classCallCheck(this, Drilldown); this.$element = element; this.options = $.extend({}, Drilldown.defaults, this.$element.data(), options); Foundation.Nest.Feather(this.$element, 'drilldown'); this._init(); Foundation.registerPlugin(this, 'Drilldown'); Foundation.Keyboard.register('Drilldown', { 'ENTER': 'open', 'SPACE': 'open', 'ARROW_RIGHT': 'next', 'ARROW_UP': 'up', 'ARROW_DOWN': 'down', 'ARROW_LEFT': 'previous', 'ESCAPE': 'close', 'TAB': 'down', 'SHIFT_TAB': 'up' }); } /** * Initializes the drilldown by creating jQuery collections of elements * @private */ _createClass(Drilldown, [{ key: '_init', value: function _init() { this.$submenuAnchors = this.$element.find('li.is-drilldown-submenu-parent'); this.$submenus = this.$submenuAnchors.children('[data-submenu]'); this.$menuItems = this.$element.find('li').not('.js-drilldown-back').attr('role', 'menuitem'); this._prepareMenu(); this._keyboardEvents(); } /** * prepares drilldown menu by setting attributes to links and elements * sets a min height to prevent content jumping * wraps the element if not already wrapped * @private * @function */ }, { key: '_prepareMenu', value: function _prepareMenu() { var _this = this; // if(!this.options.holdOpen){ // this._menuLinkEvents(); // } this.$submenuAnchors.each(function () { var $sub = $(this); var $link = $sub.find('a:first'); if (_this.options.parentLink) { $link.clone().prependTo($sub.children('[data-submenu]')).wrap('<li class="is-submenu-parent-item is-submenu-item is-drilldown-submenu-item" role="menu-item"></li>'); } $link.data('savedHref', $link.attr('href')).removeAttr('href'); $sub.children('[data-submenu]').attr({ 'aria-hidden': true, 'tabindex': 0, 'role': 'menu' }); _this._events($sub); }); this.$submenus.each(function () { var $menu = $(this), $back = $menu.find('.js-drilldown-back'); if (!$back.length) { $menu.prepend(_this.options.backButton); } _this._back($menu); }); if (!this.$element.parent().hasClass('is-drilldown')) { this.$wrapper = $(this.options.wrapper).addClass('is-drilldown').css(this._getMaxDims()); this.$element.wrap(this.$wrapper); } } /** * Adds event handlers to elements in the menu. * @function * @private * @param {jQuery} $elem - the current menu item to add handlers to. */ }, { key: '_events', value: function _events($elem) { var _this = this; $elem.off('click.zf.drilldown').on('click.zf.drilldown', function (e) { if ($(e.target).parentsUntil('ul', 'li').hasClass('is-drilldown-submenu-parent')) { e.stopImmediatePropagation(); e.preventDefault(); } // if(e.target !== e.currentTarget.firstElementChild){ // return false; // } _this._show($elem); if (_this.options.closeOnClick) { var $body = $('body').not(_this.$wrapper); $body.off('.zf.drilldown').on('click.zf.drilldown', function (e) { e.preventDefault(); _this._hideAll(); $body.off('.zf.drilldown'); }); } }); } /** * Adds keydown event listener to `li`'s in the menu. * @private */ }, { key: '_keyboardEvents', value: function _keyboardEvents() { var _this = this; this.$menuItems.add(this.$element.find('.js-drilldown-back')).on('keydown.zf.drilldown', function (e) { var $element = $(this), $elements = $element.parent('ul').children('li'), $prevElement, $nextElement; $elements.each(function (i) { if ($(this).is($element)) { $prevElement = $elements.eq(Math.max(0, i - 1)); $nextElement = $elements.eq(Math.min(i + 1, $elements.length - 1)); return; } }); Foundation.Keyboard.handleKey(e, 'Drilldown', { next: function () { if ($element.is(_this.$submenuAnchors)) { _this._show($element); $element.on(Foundation.transitionend($element), function () { $element.find('ul li').filter(_this.$menuItems).first().focus(); }); } }, previous: function () { _this._hide($element.parent('ul')); $element.parent('ul').on(Foundation.transitionend($element), function () { setTimeout(function () { $element.parent('ul').parent('li').focus(); }, 1); }); }, up: function () { $prevElement.focus(); }, down: function () { $nextElement.focus(); }, close: function () { _this._back(); //_this.$menuItems.first().focus(); // focus to first element }, open: function () { if (!$element.is(_this.$menuItems)) { // not menu item means back button _this._hide($element.parent('ul')); setTimeout(function () { $element.parent('ul').parent('li').focus(); }, 1); } else if ($element.is(_this.$submenuAnchors)) { _this._show($element); setTimeout(function () { $element.find('ul li').filter(_this.$menuItems).first().focus(); }, 1); } }, handled: function () { e.preventDefault(); e.stopImmediatePropagation(); } }); }); // end keyboardAccess } /** * Closes all open elements, and returns to root menu. * @function * @fires Drilldown#closed */ }, { key: '_hideAll', value: function _hideAll() { var $elem = this.$element.find('.is-drilldown-submenu.is-active').addClass('is-closing'); $elem.one(Foundation.transitionend($elem), function (e) { $elem.removeClass('is-active is-closing'); }); /** * Fires when the menu is fully closed. * @event Drilldown#closed */ this.$element.trigger('closed.zf.drilldown'); } /** * Adds event listener for each `back` button, and closes open menus. * @function * @fires Drilldown#back * @param {jQuery} $elem - the current sub-menu to add `back` event. */ }, { key: '_back', value: function _back($elem) { var _this = this; $elem.off('click.zf.drilldown'); $elem.children('.js-drilldown-back').on('click.zf.drilldown', function (e) { e.stopImmediatePropagation(); // console.log('mouseup on back'); _this._hide($elem); }); } /** * Adds event listener to menu items w/o submenus to close open menus on click. * @function * @private */ }, { key: '_menuLinkEvents', value: function _menuLinkEvents() { var _this = this; this.$menuItems.not('.is-drilldown-submenu-parent').off('click.zf.drilldown').on('click.zf.drilldown', function (e) { // e.stopImmediatePropagation(); setTimeout(function () { _this._hideAll(); }, 0); }); } /** * Opens a submenu. * @function * @fires Drilldown#open * @param {jQuery} $elem - the current element with a submenu to open. */ }, { key: '_show', value: function _show($elem) { $elem.children('[data-submenu]').addClass('is-active'); this.$element.trigger('open.zf.drilldown', [$elem]); } }, { key: '_hide', /** * Hides a submenu * @function * @fires Drilldown#hide * @param {jQuery} $elem - the current sub-menu to hide. */ value: function _hide($elem) { var _this = this; $elem.addClass('is-closing').one(Foundation.transitionend($elem), function () { $elem.removeClass('is-active is-closing'); $elem.blur(); }); /** * Fires when the submenu is has closed. * @event Drilldown#hide */ $elem.trigger('hide.zf.drilldown', [$elem]); } /** * Iterates through the nested menus to calculate the min-height, and max-width for the menu. * Prevents content jumping. * @function * @private */ }, { key: '_getMaxDims', value: function _getMaxDims() { var max = 0, result = {}; this.$submenus.add(this.$element).each(function () { var numOfElems = $(this).children('li').length; max = numOfElems > max ? numOfElems : max; }); result['min-height'] = max * this.$menuItems[0].getBoundingClientRect().height + 'px'; result['max-width'] = this.$element[0].getBoundingClientRect().width + 'px'; return result; } /** * Destroys the Drilldown Menu * @function */ }, { key: 'destroy', value: function destroy() { this._hideAll(); Foundation.Nest.Burn(this.$element, 'drilldown'); this.$element.unwrap().find('.js-drilldown-back, .is-submenu-parent-item').remove().end().find('.is-active, .is-closing, .is-drilldown-submenu').removeClass('is-active is-closing is-drilldown-submenu').end().find('[data-submenu]').removeAttr('aria-hidden tabindex role').off('.zf.drilldown').end().off('zf.drilldown'); this.$element.find('a').each(function () { var $link = $(this); if ($link.data('savedHref')) { $link.attr('href', $link.data('savedHref')).removeData('savedHref'); } else { return; } }); Foundation.unregisterPlugin(this); } }]); return Drilldown; }(); Drilldown.defaults = { /** * Markup used for JS generated back button. Prepended to submenu lists and deleted on `destroy` method, 'js-drilldown-back' class required. Remove the backslash (`\`) if copy and pasting. * @option * @example '<\li><\a>Back<\/a><\/li>' */ backButton: '<li class="js-drilldown-back"><a>Back</a></li>', /** * Markup used to wrap drilldown menu. Use a class name for independent styling; the JS applied class: `is-drilldown` is required. Remove the backslash (`\`) if copy and pasting. * @option * @example '<\div class="is-drilldown"><\/div>' */ wrapper: '<div></div>', /** * Adds the parent link to the submenu. * @option * @example false */ parentLink: false, /** * Allow the menu to return to root list on body click. * @option * @example false */ closeOnClick: false // holdOpen: false }; // Window exports Foundation.plugin(Drilldown, 'Drilldown'); }(jQuery); 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * Dropdown module. * @module foundation.dropdown * @requires foundation.util.keyboard * @requires foundation.util.box * @requires foundation.util.triggers */ var Dropdown = function () { /** * Creates a new instance of a dropdown. * @class * @param {jQuery} element - jQuery object to make into a dropdown. * Object should be of the dropdown panel, rather than its anchor. * @param {Object} options - Overrides to the default plugin settings. */ function Dropdown(element, options) { _classCallCheck(this, Dropdown); this.$element = element; this.options = $.extend({}, Dropdown.defaults, this.$element.data(), options); this._init(); Foundation.registerPlugin(this, 'Dropdown'); Foundation.Keyboard.register('Dropdown', { 'ENTER': 'open', 'SPACE': 'open', 'ESCAPE': 'close', 'TAB': 'tab_forward', 'SHIFT_TAB': 'tab_backward' }); } /** * Initializes the plugin by setting/checking options and attributes, adding helper variables, and saving the anchor. * @function * @private */ _createClass(Dropdown, [{ key: '_init', value: function _init() { var $id = this.$element.attr('id'); this.$anchor = $('[data-toggle="' + $id + '"]') || $('[data-open="' + $id + '"]'); this.$anchor.attr({ 'aria-controls': $id, 'data-is-focus': false, 'data-yeti-box': $id, 'aria-haspopup': true, 'aria-expanded': false }); this.options.positionClass = this.getPositionClass(); this.counter = 4; this.usedPositions = []; this.$element.attr({ 'aria-hidden': 'true', 'data-yeti-box': $id, 'data-resize': $id, 'aria-labelledby': this.$anchor[0].id || Foundation.GetYoDigits(6, 'dd-anchor') }); this._events(); } /** * Helper function to determine current orientation of dropdown pane. * @function * @returns {String} position - string value of a position class. */ }, { key: 'getPositionClass', value: function getPositionClass() { var position = this.$element[0].className.match(/\b(top|left|right)\b/g); position = position ? position[0] : ''; return position; } /** * Adjusts the dropdown panes orientation by adding/removing positioning classes. * @function * @private * @param {String} position - position class to remove. */ }, { key: '_reposition', value: function _reposition(position) { this.usedPositions.push(position ? position : 'bottom'); //default, try switching to opposite side if (!position && this.usedPositions.indexOf('top') < 0) { this.$element.addClass('top'); } else if (position === 'top' && this.usedPositions.indexOf('bottom') < 0) { this.$element.removeClass(position); } else if (position === 'left' && this.usedPositions.indexOf('right') < 0) { this.$element.removeClass(position).addClass('right'); } else if (position === 'right' && this.usedPositions.indexOf('left') < 0) { this.$element.removeClass(position).addClass('left'); } //if default change didn't work, try bottom or left first else if (!position && this.usedPositions.indexOf('top') > -1 && this.usedPositions.indexOf('left') < 0) { this.$element.addClass('left'); } else if (position === 'top' && this.usedPositions.indexOf('bottom') > -1 && this.usedPositions.indexOf('left') < 0) { this.$element.removeClass(position).addClass('left'); } else if (position === 'left' && this.usedPositions.indexOf('right') > -1 && this.usedPositions.indexOf('bottom') < 0) { this.$element.removeClass(position); } else if (position === 'right' && this.usedPositions.indexOf('left') > -1 && this.usedPositions.indexOf('bottom') < 0) { this.$element.removeClass(position); } //if nothing cleared, set to bottom else { this.$element.removeClass(position); } this.classChanged = true; this.counter--; } /** * Sets the position and orientation of the dropdown pane, checks for collisions. * Recursively calls itself if a collision is detected, with a new position class. * @function * @private */ }, { key: '_setPosition', value: function _setPosition() { if (this.$anchor.attr('aria-expanded') === 'false') { return false; } var position = this.getPositionClass(), $eleDims = Foundation.Box.GetDimensions(this.$element), $anchorDims = Foundation.Box.GetDimensions(this.$anchor), _this = this, direction = position === 'left' ? 'left' : position === 'right' ? 'left' : 'top', param = direction === 'top' ? 'height' : 'width', offset = param === 'height' ? this.options.vOffset : this.options.hOffset; if ($eleDims.width >= $eleDims.windowDims.width || !this.counter && !Foundation.Box.ImNotTouchingYou(this.$element)) { this.$element.offset(Foundation.Box.GetOffsets(this.$element, this.$anchor, 'center bottom', this.options.vOffset, this.options.hOffset, true)).css({ 'width': $eleDims.windowDims.width - this.options.hOffset * 2, 'height': 'auto' }); this.classChanged = true; return false; } this.$element.offset(Foundation.Box.GetOffsets(this.$element, this.$anchor, position, this.options.vOffset, this.options.hOffset)); while (!Foundation.Box.ImNotTouchingYou(this.$element) && this.counter) { this._reposition(position); this._setPosition(); } } /** * Adds event listeners to the element utilizing the triggers utility library. * @function * @private */ }, { key: '_events', value: function _events() { var _this = this; this.$element.on({ 'open.zf.trigger': this.open.bind(this), 'close.zf.trigger': this.close.bind(this), 'toggle.zf.trigger': this.toggle.bind(this), 'resizeme.zf.trigger': this._setPosition.bind(this) }); if (this.options.hover) { this.$anchor.off('mouseenter.zf.dropdown mouseleave.zf.dropdown').on('mouseenter.zf.dropdown', function () { clearTimeout(_this.timeout); _this.timeout = setTimeout(function () { _this.open(); _this.$anchor.data('hover', true); }, _this.options.hoverDelay); }).on('mouseleave.zf.dropdown', function () { clearTimeout(_this.timeout); _this.timeout = setTimeout(function () { _this.close(); _this.$anchor.data('hover', false); }, _this.options.hoverDelay); }); if (this.options.hoverPane) { this.$element.off('mouseenter.zf.dropdown mouseleave.zf.dropdown').on('mouseenter.zf.dropdown', function () { clearTimeout(_this.timeout); }).on('mouseleave.zf.dropdown', function () { clearTimeout(_this.timeout); _this.timeout = setTimeout(function () { _this.close(); _this.$anchor.data('hover', false); }, _this.options.hoverDelay); }); } } this.$anchor.add(this.$element).on('keydown.zf.dropdown', function (e) { var $target = $(this), visibleFocusableElements = Foundation.Keyboard.findFocusable(_this.$element); Foundation.Keyboard.handleKey(e, 'Dropdown', { tab_forward: function () { if (_this.$element.find(':focus').is(visibleFocusableElements.eq(-1))) { // left modal downwards, setting focus to first element if (_this.options.trapFocus) { // if focus shall be trapped visibleFocusableElements.eq(0).focus(); e.preventDefault(); } else { // if focus is not trapped, close dropdown on focus out _this.close(); } } }, tab_backward: function () { if (_this.$element.find(':focus').is(visibleFocusableElements.eq(0)) || _this.$element.is(':focus')) { // left modal upwards, setting focus to last element if (_this.options.trapFocus) { // if focus shall be trapped visibleFocusableElements.eq(-1).focus(); e.preventDefault(); } else { // if focus is not trapped, close dropdown on focus out _this.close(); } } }, open: function () { if ($target.is(_this.$anchor)) { _this.open(); _this.$element.attr('tabindex', -1).focus(); e.preventDefault(); } }, close: function () { _this.close(); _this.$anchor.focus(); } }); }); } /** * Adds an event handler to the body to close any dropdowns on a click. * @function * @private */ }, { key: '_addBodyHandler', value: function _addBodyHandler() { var $body = $(document.body).not(this.$element), _this = this; $body.off('click.zf.dropdown').on('click.zf.dropdown', function (e) { if (_this.$anchor.is(e.target) || _this.$anchor.find(e.target).length) { return; } if (_this.$element.find(e.target).length) { return; } _this.close(); $body.off('click.zf.dropdown'); }); } /** * Opens the dropdown pane, and fires a bubbling event to close other dropdowns. * @function * @fires Dropdown#closeme * @fires Dropdown#show */ }, { key: 'open', value: function open() { // var _this = this; /** * Fires to close other open dropdowns * @event Dropdown#closeme */ this.$element.trigger('closeme.zf.dropdown', this.$element.attr('id')); this.$anchor.addClass('hover').attr({ 'aria-expanded': true }); // this.$element/*.show()*/; this._setPosition(); this.$element.addClass('is-open').attr({ 'aria-hidden': false }); if (this.options.autoFocus) { var $focusable = Foundation.Keyboard.findFocusable(this.$element); if ($focusable.length) { $focusable.eq(0).focus(); } } if (this.options.closeOnClick) { this._addBodyHandler(); } /** * Fires once the dropdown is visible. * @event Dropdown#show */ this.$element.trigger('show.zf.dropdown', [this.$element]); } /** * Closes the open dropdown pane. * @function * @fires Dropdown#hide */ }, { key: 'close', value: function close() { if (!this.$element.hasClass('is-open')) { return false; } this.$element.removeClass('is-open').attr({ 'aria-hidden': true }); this.$anchor.removeClass('hover').attr('aria-expanded', false); if (this.classChanged) { var curPositionClass = this.getPositionClass(); if (curPositionClass) { this.$element.removeClass(curPositionClass); } this.$element.addClass(this.options.positionClass) /*.hide()*/.css({ height: '', width: '' }); this.classChanged = false; this.counter = 4; this.usedPositions.length = 0; } this.$element.trigger('hide.zf.dropdown', [this.$element]); } /** * Toggles the dropdown pane's visibility. * @function */ }, { key: 'toggle', value: function toggle() { if (this.$element.hasClass('is-open')) { if (this.$anchor.data('hover')) return; this.close(); } else { this.open(); } } /** * Destroys the dropdown. * @function */ }, { key: 'destroy', value: function destroy() { this.$element.off('.zf.trigger').hide(); this.$anchor.off('.zf.dropdown'); Foundation.unregisterPlugin(this); } }]); return Dropdown; }(); Dropdown.defaults = { /** * Amount of time to delay opening a submenu on hover event. * @option * @example 250 */ hoverDelay: 250, /** * Allow submenus to open on hover events * @option * @example false */ hover: false, /** * Don't close dropdown when hovering over dropdown pane * @option * @example true */ hoverPane: false, /** * Number of pixels between the dropdown pane and the triggering element on open. * @option * @example 1 */ vOffset: 1, /** * Number of pixels between the dropdown pane and the triggering element on open. * @option * @example 1 */ hOffset: 1, /** * Class applied to adjust open position. JS will test and fill this in. * @option * @example 'top' */ positionClass: '', /** * Allow the plugin to trap focus to the dropdown pane if opened with keyboard commands. * @option * @example false */ trapFocus: false, /** * Allow the plugin to set focus to the first focusable element within the pane, regardless of method of opening. * @option * @example true */ autoFocus: false, /** * Allows a click on the body to close the dropdown. * @option * @example false */ closeOnClick: false }; // Window exports Foundation.plugin(Dropdown, 'Dropdown'); }(jQuery); 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * DropdownMenu module. * @module foundation.dropdown-menu * @requires foundation.util.keyboard * @requires foundation.util.box * @requires foundation.util.nest */ var DropdownMenu = function () { /** * Creates a new instance of DropdownMenu. * @class * @fires DropdownMenu#init * @param {jQuery} element - jQuery object to make into a dropdown menu. * @param {Object} options - Overrides to the default plugin settings. */ function DropdownMenu(element, options) { _classCallCheck(this, DropdownMenu); this.$element = element; this.options = $.extend({}, DropdownMenu.defaults, this.$element.data(), options); Foundation.Nest.Feather(this.$element, 'dropdown'); this._init(); Foundation.registerPlugin(this, 'DropdownMenu'); Foundation.Keyboard.register('DropdownMenu', { 'ENTER': 'open', 'SPACE': 'open', 'ARROW_RIGHT': 'next', 'ARROW_UP': 'up', 'ARROW_DOWN': 'down', 'ARROW_LEFT': 'previous', 'ESCAPE': 'close' }); } /** * Initializes the plugin, and calls _prepareMenu * @private * @function */ _createClass(DropdownMenu, [{ key: '_init', value: function _init() { var subs = this.$element.find('li.is-dropdown-submenu-parent'); this.$element.children('.is-dropdown-submenu-parent').children('.is-dropdown-submenu').addClass('first-sub'); this.$menuItems = this.$element.find('[role="menuitem"]'); this.$tabs = this.$element.children('[role="menuitem"]'); this.$tabs.find('ul.is-dropdown-submenu').addClass(this.options.verticalClass); if (this.$element.hasClass(this.options.rightClass) || this.options.alignment === 'right' || Foundation.rtl()) { this.options.alignment = 'right'; subs.addClass('opens-left'); } else { subs.addClass('opens-right'); } this.changed = false; this._events(); } }, { key: '_events', /** * Adds event listeners to elements within the menu * @private * @function */ value: function _events() { var _this = this, hasTouch = 'ontouchstart' in window || typeof window.ontouchstart !== 'undefined', parClass = 'is-dropdown-submenu-parent'; if (this.options.clickOpen || hasTouch) { this.$menuItems.on('click.zf.dropdownmenu touchstart.zf.dropdownmenu', function (e) { var $elem = $(e.target).parentsUntil('ul', '.' + parClass), hasSub = $elem.hasClass(parClass), hasClicked = $elem.attr('data-is-click') === 'true', $sub = $elem.children('.is-dropdown-submenu'); if (hasSub) { if (hasClicked) { if (!_this.options.closeOnClick || !_this.options.clickOpen && !hasTouch || _this.options.forceFollow && hasTouch) { return; } else { e.stopImmediatePropagation(); e.preventDefault(); _this._hide($elem); } } else { e.preventDefault(); e.stopImmediatePropagation(); _this._show($elem.children('.is-dropdown-submenu')); $elem.add($elem.parentsUntil(_this.$element, '.' + parClass)).attr('data-is-click', true); } } else { return; } }); } if (!this.options.disableHover) { this.$menuItems.on('mouseenter.zf.dropdownmenu', function (e) { e.stopImmediatePropagation(); var $elem = $(this), hasSub = $elem.hasClass(parClass); if (hasSub) { clearTimeout(_this.delay); _this.delay = setTimeout(function () { _this._show($elem.children('.is-dropdown-submenu')); }, _this.options.hoverDelay); } }).on('mouseleave.zf.dropdownmenu', function (e) { var $elem = $(this), hasSub = $elem.hasClass(parClass); if (hasSub && _this.options.autoclose) { if ($elem.attr('data-is-click') === 'true' && _this.options.clickOpen) { return false; } clearTimeout(_this.delay); _this.delay = setTimeout(function () { _this._hide($elem); }, _this.options.closingTime); } }); } this.$menuItems.on('keydown.zf.dropdownmenu', function (e) { var $element = $(e.target).parentsUntil('ul', '[role="menuitem"]'), isTab = _this.$tabs.index($element) > -1, $elements = isTab ? _this.$tabs : $element.siblings('li').add($element), $prevElement, $nextElement; $elements.each(function (i) { if ($(this).is($element)) { $prevElement = $elements.eq(i - 1); $nextElement = $elements.eq(i + 1); return; } }); var nextSibling = function () { if (!$element.is(':last-child')) $nextElement.children('a:first').focus(); }, prevSibling = function () { $prevElement.children('a:first').focus(); }, openSub = function () { var $sub = $element.children('ul.is-dropdown-submenu'); if ($sub.length) { _this._show($sub); $element.find('li > a:first').focus(); } else { return; } }, closeSub = function () { //if ($element.is(':first-child')) { var close = $element.parent('ul').parent('li'); close.children('a:first').focus(); _this._hide(close); //} }; var functions = { open: openSub, close: function () { _this._hide(_this.$element); _this.$menuItems.find('a:first').focus(); // focus to first element }, handled: function () { e.preventDefault(); e.stopImmediatePropagation(); } }; if (isTab) { if (_this.vertical) { // vertical menu if (_this.options.alignment === 'left') { // left aligned $.extend(functions, { down: nextSibling, up: prevSibling, next: openSub, previous: closeSub }); } else { // right aligned $.extend(functions, { down: nextSibling, up: prevSibling, next: closeSub, previous: openSub }); } } else { // horizontal menu $.extend(functions, { next: nextSibling, previous: prevSibling, down: openSub, up: closeSub }); } } else { // not tabs -> one sub if (_this.options.alignment === 'left') { // left aligned $.extend(functions, { next: openSub, previous: closeSub, down: nextSibling, up: prevSibling }); } else { // right aligned $.extend(functions, { next: closeSub, previous: openSub, down: nextSibling, up: prevSibling }); } } Foundation.Keyboard.handleKey(e, 'DropdownMenu', functions); }); } /** * Adds an event handler to the body to close any dropdowns on a click. * @function * @private */ }, { key: '_addBodyHandler', value: function _addBodyHandler() { var $body = $(document.body), _this = this; $body.off('mouseup.zf.dropdownmenu touchend.zf.dropdownmenu').on('mouseup.zf.dropdownmenu touchend.zf.dropdownmenu', function (e) { var $link = _this.$element.find(e.target); if ($link.length) { return; } _this._hide(); $body.off('mouseup.zf.dropdownmenu touchend.zf.dropdownmenu'); }); } /** * Opens a dropdown pane, and checks for collisions first. * @param {jQuery} $sub - ul element that is a submenu to show * @function * @private * @fires DropdownMenu#show */ }, { key: '_show', value: function _show($sub) { var idx = this.$tabs.index(this.$tabs.filter(function (i, el) { return $(el).find($sub).length > 0; })); var $sibs = $sub.parent('li.is-dropdown-submenu-parent').siblings('li.is-dropdown-submenu-parent'); this._hide($sibs, idx); $sub.css('visibility', 'hidden').addClass('js-dropdown-active').attr({ 'aria-hidden': false }).parent('li.is-dropdown-submenu-parent').addClass('is-active').attr({ 'aria-expanded': true }); var clear = Foundation.Box.ImNotTouchingYou($sub, null, true); if (!clear) { var oldClass = this.options.alignment === 'left' ? '-right' : '-left', $parentLi = $sub.parent('.is-dropdown-submenu-parent'); $parentLi.removeClass('opens' + oldClass).addClass('opens-' + this.options.alignment); clear = Foundation.Box.ImNotTouchingYou($sub, null, true); if (!clear) { $parentLi.removeClass('opens-' + this.options.alignment).addClass('opens-inner'); } this.changed = true; } $sub.css('visibility', ''); if (this.options.closeOnClick) { this._addBodyHandler(); } /** * Fires when the new dropdown pane is visible. * @event DropdownMenu#show */ this.$element.trigger('show.zf.dropdownmenu', [$sub]); } /** * Hides a single, currently open dropdown pane, if passed a parameter, otherwise, hides everything. * @function * @param {jQuery} $elem - element with a submenu to hide * @param {Number} idx - index of the $tabs collection to hide * @private */ }, { key: '_hide', value: function _hide($elem, idx) { var $toClose; if ($elem && $elem.length) { $toClose = $elem; } else if (idx !== undefined) { $toClose = this.$tabs.not(function (i, el) { return i === idx; }); } else { $toClose = this.$element; } var somethingToClose = $toClose.hasClass('is-active') || $toClose.find('.is-active').length > 0; if (somethingToClose) { $toClose.find('li.is-active').add($toClose).attr({ 'aria-expanded': false, 'data-is-click': false }).removeClass('is-active'); $toClose.find('ul.js-dropdown-active').attr({ 'aria-hidden': true }).removeClass('js-dropdown-active'); if (this.changed || $toClose.find('opens-inner').length) { var oldClass = this.options.alignment === 'left' ? 'right' : 'left'; $toClose.find('li.is-dropdown-submenu-parent').add($toClose).removeClass('opens-inner opens-' + this.options.alignment).addClass('opens-' + oldClass); this.changed = false; } /** * Fires when the open menus are closed. * @event DropdownMenu#hide */ this.$element.trigger('hide.zf.dropdownmenu', [$toClose]); } } /** * Destroys the plugin. * @function */ }, { key: 'destroy', value: function destroy() { this.$menuItems.off('.zf.dropdownmenu').removeAttr('data-is-click').removeClass('is-right-arrow is-left-arrow is-down-arrow opens-right opens-left opens-inner'); $(document.body).off('.zf.dropdownmenu'); Foundation.Nest.Burn(this.$element, 'dropdown'); Foundation.unregisterPlugin(this); } }]); return DropdownMenu; }(); /** * Default settings for plugin */ DropdownMenu.defaults = { /** * Disallows hover events from opening submenus * @option * @example false */ disableHover: false, /** * Allow a submenu to automatically close on a mouseleave event, if not clicked open. * @option * @example true */ autoclose: true, /** * Amount of time to delay opening a submenu on hover event. * @option * @example 50 */ hoverDelay: 50, /** * Allow a submenu to open/remain open on parent click event. Allows cursor to move away from menu. * @option * @example true */ clickOpen: false, /** * Amount of time to delay closing a submenu on a mouseleave event. * @option * @example 500 */ closingTime: 500, /** * Position of the menu relative to what direction the submenus should open. Handled by JS. * @option * @example 'left' */ alignment: 'left', /** * Allow clicks on the body to close any open submenus. * @option * @example true */ closeOnClick: true, /** * Class applied to vertical oriented menus, Foundation default is `vertical`. Update this if using your own class. * @option * @example 'vertical' */ verticalClass: 'vertical', /** * Class applied to right-side oriented menus, Foundation default is `align-right`. Update this if using your own class. * @option * @example 'align-right' */ rightClass: 'align-right', /** * Boolean to force overide the clicking of links to perform default action, on second touch event for mobile. * @option * @example false */ forceFollow: true }; // Window exports Foundation.plugin(DropdownMenu, 'DropdownMenu'); }(jQuery); 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * Equalizer module. * @module foundation.equalizer */ var Equalizer = function () { /** * Creates a new instance of Equalizer. * @class * @fires Equalizer#init * @param {Object} element - jQuery object to add the trigger to. * @param {Object} options - Overrides to the default plugin settings. */ function Equalizer(element, options) { _classCallCheck(this, Equalizer); this.$element = element; this.options = $.extend({}, Equalizer.defaults, this.$element.data(), options); this._init(); Foundation.registerPlugin(this, 'Equalizer'); } /** * Initializes the Equalizer plugin and calls functions to get equalizer functioning on load. * @private */ _createClass(Equalizer, [{ key: '_init', value: function _init() { var eqId = this.$element.attr('data-equalizer') || ''; var $watched = this.$element.find('[data-equalizer-watch="' + eqId + '"]'); this.$watched = $watched.length ? $watched : this.$element.find('[data-equalizer-watch]'); this.$element.attr('data-resize', eqId || Foundation.GetYoDigits(6, 'eq')); this.hasNested = this.$element.find('[data-equalizer]').length > 0; this.isNested = this.$element.parentsUntil(document.body, '[data-equalizer]').length > 0; this.isOn = false; var imgs = this.$element.find('img'); var tooSmall; if (this.options.equalizeOn) { tooSmall = this._checkMQ(); $(window).on('changed.zf.mediaquery', this._checkMQ.bind(this)); } else { this._events(); } if (tooSmall !== undefined && tooSmall === false || tooSmall === undefined) { if (imgs.length) { Foundation.onImagesLoaded(imgs, this._reflow.bind(this)); } else { this._reflow(); } } } /** * Removes event listeners if the breakpoint is too small. * @private */ }, { key: '_pauseEvents', value: function _pauseEvents() { this.isOn = false; this.$element.off('.zf.equalizer resizeme.zf.trigger'); } /** * Initializes events for Equalizer. * @private */ }, { key: '_events', value: function _events() { var _this = this; this._pauseEvents(); if (this.hasNested) { this.$element.on('postequalized.zf.equalizer', function (e) { if (e.target !== _this.$element[0]) { _this._reflow(); } }); } else { this.$element.on('resizeme.zf.trigger', this._reflow.bind(this)); } this.isOn = true; } /** * Checks the current breakpoint to the minimum required size. * @private */ }, { key: '_checkMQ', value: function _checkMQ() { var tooSmall = !Foundation.MediaQuery.atLeast(this.options.equalizeOn); if (tooSmall) { if (this.isOn) { this._pauseEvents(); this.$watched.css('height', 'auto'); } } else { if (!this.isOn) { this._events(); } } return tooSmall; } /** * A noop version for the plugin * @private */ }, { key: '_killswitch', value: function _killswitch() { return; } /** * Calls necessary functions to update Equalizer upon DOM change * @private */ }, { key: '_reflow', value: function _reflow() { if (!this.options.equalizeOnStack) { if (this._isStacked()) { this.$watched.css('height', 'auto'); return false; } } if (this.options.equalizeByRow) { this.getHeightsByRow(this.applyHeightByRow.bind(this)); } else { this.getHeights(this.applyHeight.bind(this)); } } /** * Manually determines if the first 2 elements are *NOT* stacked. * @private */ }, { key: '_isStacked', value: function _isStacked() { return this.$watched[0].offsetTop !== this.$watched[1].offsetTop; } /** * Finds the outer heights of children contained within an Equalizer parent and returns them in an array * @param {Function} cb - A non-optional callback to return the heights array to. * @returns {Array} heights - An array of heights of children within Equalizer container */ }, { key: 'getHeights', value: function getHeights(cb) { var heights = []; for (var i = 0, len = this.$watched.length; i < len; i++) { this.$watched[i].style.height = 'auto'; heights.push(this.$watched[i].offsetHeight); } cb(heights); } /** * Finds the outer heights of children contained within an Equalizer parent and returns them in an array * @param {Function} cb - A non-optional callback to return the heights array to. * @returns {Array} groups - An array of heights of children within Equalizer container grouped by row with element,height and max as last child */ }, { key: 'getHeightsByRow', value: function getHeightsByRow(cb) { var lastElTopOffset = this.$watched.first().offset().top, groups = [], group = 0; //group by Row groups[group] = []; for (var i = 0, len = this.$watched.length; i < len; i++) { this.$watched[i].style.height = 'auto'; //maybe could use this.$watched[i].offsetTop var elOffsetTop = $(this.$watched[i]).offset().top; if (elOffsetTop != lastElTopOffset) { group++; groups[group] = []; lastElTopOffset = elOffsetTop; } groups[group].push([this.$watched[i], this.$watched[i].offsetHeight]); } for (var j = 0, ln = groups.length; j < ln; j++) { var heights = $(groups[j]).map(function () { return this[1]; }).get(); var max = Math.max.apply(null, heights); groups[j].push(max); } cb(groups); } /** * Changes the CSS height property of each child in an Equalizer parent to match the tallest * @param {array} heights - An array of heights of children within Equalizer container * @fires Equalizer#preequalized * @fires Equalizer#postequalized */ }, { key: 'applyHeight', value: function applyHeight(heights) { var max = Math.max.apply(null, heights); /** * Fires before the heights are applied * @event Equalizer#preequalized */ this.$element.trigger('preequalized.zf.equalizer'); this.$watched.css('height', max); /** * Fires when the heights have been applied * @event Equalizer#postequalized */ this.$element.trigger('postequalized.zf.equalizer'); } /** * Changes the CSS height property of each child in an Equalizer parent to match the tallest by row * @param {array} groups - An array of heights of children within Equalizer container grouped by row with element,height and max as last child * @fires Equalizer#preequalized * @fires Equalizer#preequalizedRow * @fires Equalizer#postequalizedRow * @fires Equalizer#postequalized */ }, { key: 'applyHeightByRow', value: function applyHeightByRow(groups) { /** * Fires before the heights are applied */ this.$element.trigger('preequalized.zf.equalizer'); for (var i = 0, len = groups.length; i < len; i++) { var groupsILength = groups[i].length, max = groups[i][groupsILength - 1]; if (groupsILength <= 2) { $(groups[i][0][0]).css({ 'height': 'auto' }); continue; } /** * Fires before the heights per row are applied * @event Equalizer#preequalizedRow */ this.$element.trigger('preequalizedrow.zf.equalizer'); for (var j = 0, lenJ = groupsILength - 1; j < lenJ; j++) { $(groups[i][j][0]).css({ 'height': max }); } /** * Fires when the heights per row have been applied * @event Equalizer#postequalizedRow */ this.$element.trigger('postequalizedrow.zf.equalizer'); } /** * Fires when the heights have been applied */ this.$element.trigger('postequalized.zf.equalizer'); } /** * Destroys an instance of Equalizer. * @function */ }, { key: 'destroy', value: function destroy() { this._pauseEvents(); this.$watched.css('height', 'auto'); Foundation.unregisterPlugin(this); } }]); return Equalizer; }(); /** * Default settings for plugin */ Equalizer.defaults = { /** * Enable height equalization when stacked on smaller screens. * @option * @example true */ equalizeOnStack: true, /** * Enable height equalization row by row. * @option * @example false */ equalizeByRow: false, /** * String representing the minimum breakpoint size the plugin should equalize heights on. * @option * @example 'medium' */ equalizeOn: '' }; // Window exports Foundation.plugin(Equalizer, 'Equalizer'); }(jQuery); 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * Interchange module. * @module foundation.interchange * @requires foundation.util.mediaQuery * @requires foundation.util.timerAndImageLoader */ var Interchange = function () { /** * Creates a new instance of Interchange. * @class * @fires Interchange#init * @param {Object} element - jQuery object to add the trigger to. * @param {Object} options - Overrides to the default plugin settings. */ function Interchange(element, options) { _classCallCheck(this, Interchange); this.$element = element; this.options = $.extend({}, Interchange.defaults, options); this.rules = []; this.currentPath = ''; this._init(); this._events(); Foundation.registerPlugin(this, 'Interchange'); } /** * Initializes the Interchange plugin and calls functions to get interchange functioning on load. * @function * @private */ _createClass(Interchange, [{ key: '_init', value: function _init() { this._addBreakpoints(); this._generateRules(); this._reflow(); } /** * Initializes events for Interchange. * @function * @private */ }, { key: '_events', value: function _events() { $(window).on('resize.zf.interchange', Foundation.util.throttle(this._reflow.bind(this), 50)); } /** * Calls necessary functions to update Interchange upon DOM change * @function * @private */ }, { key: '_reflow', value: function _reflow() { var match; // Iterate through each rule, but only save the last match for (var i in this.rules) { var rule = this.rules[i]; if (window.matchMedia(rule.query).matches) { match = rule; } } if (match) { this.replace(match.path); } } /** * Gets the Foundation breakpoints and adds them to the Interchange.SPECIAL_QUERIES object. * @function * @private */ }, { key: '_addBreakpoints', value: function _addBreakpoints() { for (var i in Foundation.MediaQuery.queries) { var query = Foundation.MediaQuery.queries[i]; Interchange.SPECIAL_QUERIES[query.name] = query.value; } } /** * Checks the Interchange element for the provided media query + content pairings * @function * @private * @param {Object} element - jQuery object that is an Interchange instance * @returns {Array} scenarios - Array of objects that have 'mq' and 'path' keys with corresponding keys */ }, { key: '_generateRules', value: function _generateRules(element) { var rulesList = []; var rules; if (this.options.rules) { rules = this.options.rules; } else { rules = this.$element.data('interchange').match(/\[.*?\]/g); } for (var i in rules) { var rule = rules[i].slice(1, -1).split(', '); var path = rule.slice(0, -1).join(''); var query = rule[rule.length - 1]; if (Interchange.SPECIAL_QUERIES[query]) { query = Interchange.SPECIAL_QUERIES[query]; } rulesList.push({ path: path, query: query }); } this.rules = rulesList; } /** * Update the `src` property of an image, or change the HTML of a container, to the specified path. * @function * @param {String} path - Path to the image or HTML partial. * @fires Interchange#replaced */ }, { key: 'replace', value: function replace(path) { if (this.currentPath === path) return; var _this = this, trigger = 'replaced.zf.interchange'; // Replacing images if (this.$element[0].nodeName === 'IMG') { this.$element.attr('src', path).load(function () { _this.currentPath = path; }).trigger(trigger); } // Replacing background images else if (path.match(/\.(gif|jpg|jpeg|tiff|png)([?#].*)?/i)) { this.$element.css({ 'background-image': 'url(' + path + ')' }).trigger(trigger); } // Replacing HTML else { $.get(path, function (response) { _this.$element.html(response).trigger(trigger); $(response).foundation(); _this.currentPath = path; }); } /** * Fires when content in an Interchange element is done being loaded. * @event Interchange#replaced */ // this.$element.trigger('replaced.zf.interchange'); } /** * Destroys an instance of interchange. * @function */ }, { key: 'destroy', value: function destroy() { //TODO this. } }]); return Interchange; }(); /** * Default settings for plugin */ Interchange.defaults = { /** * Rules to be applied to Interchange elements. Set with the `data-interchange` array notation. * @option */ rules: null }; Interchange.SPECIAL_QUERIES = { 'landscape': 'screen and (orientation: landscape)', 'portrait': 'screen and (orientation: portrait)', 'retina': 'only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx)' }; // Window exports Foundation.plugin(Interchange, 'Interchange'); }(jQuery); 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * Magellan module. * @module foundation.magellan */ var Magellan = function () { /** * Creates a new instance of Magellan. * @class * @fires Magellan#init * @param {Object} element - jQuery object to add the trigger to. * @param {Object} options - Overrides to the default plugin settings. */ function Magellan(element, options) { _classCallCheck(this, Magellan); this.$element = element; this.options = $.extend({}, Magellan.defaults, this.$element.data(), options); this._init(); Foundation.registerPlugin(this, 'Magellan'); } /** * Initializes the Magellan plugin and calls functions to get equalizer functioning on load. * @private */ _createClass(Magellan, [{ key: '_init', value: function _init() { var id = this.$element[0].id || Foundation.GetYoDigits(6, 'magellan'); var _this = this; this.$targets = $('[data-magellan-target]'); this.$links = this.$element.find('a'); this.$element.attr({ 'data-resize': id, 'data-scroll': id, 'id': id }); this.$active = $(); this.scrollPos = parseInt(window.pageYOffset, 10); this._events(); } /** * Calculates an array of pixel values that are the demarcation lines between locations on the page. * Can be invoked if new elements are added or the size of a location changes. * @function */ }, { key: 'calcPoints', value: function calcPoints() { var _this = this, body = document.body, html = document.documentElement; this.points = []; this.winHeight = Math.round(Math.max(window.innerHeight, html.clientHeight)); this.docHeight = Math.round(Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight)); this.$targets.each(function () { var $tar = $(this), pt = Math.round($tar.offset().top - _this.options.threshold); $tar.targetPoint = pt; _this.points.push(pt); }); } /** * Initializes events for Magellan. * @private */ }, { key: '_events', value: function _events() { var _this = this, $body = $('html, body'), opts = { duration: _this.options.animationDuration, easing: _this.options.animationEasing }; $(window).one('load', function () { if (_this.options.deepLinking) { if (location.hash) { _this.scrollToLoc(location.hash); } } _this.calcPoints(); _this._updateActive(); }); this.$element.on({ 'resizeme.zf.trigger': this.reflow.bind(this), 'scrollme.zf.trigger': this._updateActive.bind(this) }).on('click.zf.magellan', 'a[href^="#"]', function (e) { e.preventDefault(); var arrival = this.getAttribute('href'); _this.scrollToLoc(arrival); }); } /** * Function to scroll to a given location on the page. * @param {String} loc - a properly formatted jQuery id selector. Example: '#foo' * @function */ }, { key: 'scrollToLoc', value: function scrollToLoc(loc) { var scrollPos = Math.round($(loc).offset().top - this.options.threshold / 2 - this.options.barOffset); $('html, body').stop(true).animate({ scrollTop: scrollPos }, this.options.animationDuration, this.options.animationEasing); } /** * Calls necessary functions to update Magellan upon DOM change * @function */ }, { key: 'reflow', value: function reflow() { this.calcPoints(); this._updateActive(); } /** * Updates the visibility of an active location link, and updates the url hash for the page, if deepLinking enabled. * @private * @function * @fires Magellan#update */ }, { key: '_updateActive', value: function _updateActive() /*evt, elem, scrollPos*/{ var winPos = /*scrollPos ||*/parseInt(window.pageYOffset, 10), curIdx; if (winPos + this.winHeight === this.docHeight) { curIdx = this.points.length - 1; } else if (winPos < this.points[0]) { curIdx = 0; } else { var isDown = this.scrollPos < winPos, _this = this, curVisible = this.points.filter(function (p, i) { return isDown ? p <= winPos : p - _this.options.threshold <= winPos; //&& winPos >= _this.points[i -1] - _this.options.threshold; }); curIdx = curVisible.length ? curVisible.length - 1 : 0; } this.$active.removeClass(this.options.activeClass); this.$active = this.$links.eq(curIdx).addClass(this.options.activeClass); if (this.options.deepLinking) { var hash = this.$active[0].getAttribute('href'); if (window.history.pushState) { window.history.pushState(null, null, hash); } else { window.location.hash = hash; } } this.scrollPos = winPos; /** * Fires when magellan is finished updating to the new active element. * @event Magellan#update */ this.$element.trigger('update.zf.magellan', [this.$active]); } /** * Destroys an instance of Magellan and resets the url of the window. * @function */ }, { key: 'destroy', value: function destroy() { this.$element.off('.zf.trigger .zf.magellan').find('.' + this.options.activeClass).removeClass(this.options.activeClass); if (this.options.deepLinking) { var hash = this.$active[0].getAttribute('href'); window.location.hash.replace(hash, ''); } Foundation.unregisterPlugin(this); } }]); return Magellan; }(); /** * Default settings for plugin */ Magellan.defaults = { /** * Amount of time, in ms, the animated scrolling should take between locations. * @option * @example 500 */ animationDuration: 500, /** * Animation style to use when scrolling between locations. * @option * @example 'ease-in-out' */ animationEasing: 'linear', /** * Number of pixels to use as a marker for location changes. * @option * @example 50 */ threshold: 50, /** * Class applied to the active locations link on the magellan container. * @option * @example 'active' */ activeClass: 'active', /** * Allows the script to manipulate the url of the current page, and if supported, alter the history. * @option * @example true */ deepLinking: false, /** * Number of pixels to offset the scroll of the page on item click if using a sticky nav bar. * @option * @example 25 */ barOffset: 0 }; // Window exports Foundation.plugin(Magellan, 'Magellan'); }(jQuery); 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * OffCanvas module. * @module foundation.offcanvas * @requires foundation.util.mediaQuery * @requires foundation.util.triggers * @requires foundation.util.motion */ var OffCanvas = function () { /** * Creates a new instance of an off-canvas wrapper. * @class * @fires OffCanvas#init * @param {Object} element - jQuery object to initialize. * @param {Object} options - Overrides to the default plugin settings. */ function OffCanvas(element, options) { _classCallCheck(this, OffCanvas); this.$element = element; this.options = $.extend({}, OffCanvas.defaults, this.$element.data(), options); this.$lastTrigger = $(); this._init(); this._events(); Foundation.registerPlugin(this, 'OffCanvas'); } /** * Initializes the off-canvas wrapper by adding the exit overlay (if needed). * @function * @private */ _createClass(OffCanvas, [{ key: '_init', value: function _init() { var id = this.$element.attr('id'); this.$element.attr('aria-hidden', 'true'); // Find triggers that affect this element and add aria-expanded to them $(document).find('[data-open="' + id + '"], [data-close="' + id + '"], [data-toggle="' + id + '"]').attr('aria-expanded', 'false').attr('aria-controls', id); // Add a close trigger over the body if necessary if (this.options.closeOnClick) { if ($('.js-off-canvas-exit').length) { this.$exiter = $('.js-off-canvas-exit'); } else { var exiter = document.createElement('div'); exiter.setAttribute('class', 'js-off-canvas-exit'); $('[data-off-canvas-content]').append(exiter); this.$exiter = $(exiter); } } this.options.isRevealed = this.options.isRevealed || new RegExp(this.options.revealClass, 'g').test(this.$element[0].className); if (this.options.isRevealed) { this.options.revealOn = this.options.revealOn || this.$element[0].className.match(/(reveal-for-medium|reveal-for-large)/g)[0].split('-')[2]; this._setMQChecker(); } if (!this.options.transitionTime) { this.options.transitionTime = parseFloat(window.getComputedStyle($('[data-off-canvas-wrapper]')[0]).transitionDuration) * 1000; } } /** * Adds event handlers to the off-canvas wrapper and the exit overlay. * @function * @private */ }, { key: '_events', value: function _events() { this.$element.off('.zf.trigger .zf.offcanvas').on({ 'open.zf.trigger': this.open.bind(this), 'close.zf.trigger': this.close.bind(this), 'toggle.zf.trigger': this.toggle.bind(this), 'keydown.zf.offcanvas': this._handleKeyboard.bind(this) }); if (this.options.closeOnClick && this.$exiter.length) { this.$exiter.on({ 'click.zf.offcanvas': this.close.bind(this) }); } } /** * Applies event listener for elements that will reveal at certain breakpoints. * @private */ }, { key: '_setMQChecker', value: function _setMQChecker() { var _this = this; $(window).on('changed.zf.mediaquery', function () { if (Foundation.MediaQuery.atLeast(_this.options.revealOn)) { _this.reveal(true); } else { _this.reveal(false); } }).one('load.zf.offcanvas', function () { if (Foundation.MediaQuery.atLeast(_this.options.revealOn)) { _this.reveal(true); } }); } /** * Handles the revealing/hiding the off-canvas at breakpoints, not the same as open. * @param {Boolean} isRevealed - true if element should be revealed. * @function */ }, { key: 'reveal', value: function reveal(isRevealed) { var $closer = this.$element.find('[data-close]'); if (isRevealed) { this.close(); this.isRevealed = true; // if (!this.options.forceTop) { // var scrollPos = parseInt(window.pageYOffset); // this.$element[0].style.transform = 'translate(0,' + scrollPos + 'px)'; // } // if (this.options.isSticky) { this._stick(); } this.$element.off('open.zf.trigger toggle.zf.trigger'); if ($closer.length) { $closer.hide(); } } else { this.isRevealed = false; // if (this.options.isSticky || !this.options.forceTop) { // this.$element[0].style.transform = ''; // $(window).off('scroll.zf.offcanvas'); // } this.$element.on({ 'open.zf.trigger': this.open.bind(this), 'toggle.zf.trigger': this.toggle.bind(this) }); if ($closer.length) { $closer.show(); } } } /** * Opens the off-canvas menu. * @function * @param {Object} event - Event object passed from listener. * @param {jQuery} trigger - element that triggered the off-canvas to open. * @fires OffCanvas#opened */ }, { key: 'open', value: function open(event, trigger) { if (this.$element.hasClass('is-open') || this.isRevealed) { return; } var _this = this, $body = $(document.body); if (this.options.forceTop) { $('body').scrollTop(0); } // window.pageYOffset = 0; // if (!this.options.forceTop) { // var scrollPos = parseInt(window.pageYOffset); // this.$element[0].style.transform = 'translate(0,' + scrollPos + 'px)'; // if (this.$exiter.length) { // this.$exiter[0].style.transform = 'translate(0,' + scrollPos + 'px)'; // } // } /** * Fires when the off-canvas menu opens. * @event OffCanvas#opened */ Foundation.Move(this.options.transitionTime, this.$element, function () { $('[data-off-canvas-wrapper]').addClass('is-off-canvas-open is-open-' + _this.options.position); _this.$element.addClass('is-open'); // if (_this.options.isSticky) { // _this._stick(); // } }); this.$element.attr('aria-hidden', 'false').trigger('opened.zf.offcanvas'); if (this.options.closeOnClick) { this.$exiter.addClass('is-visible'); } if (trigger) { this.$lastTrigger = trigger.attr('aria-expanded', 'true'); } if (this.options.autoFocus) { this.$element.one(Foundation.transitionend(this.$element), function () { _this.$element.find('a, button').eq(0).focus(); }); } if (this.options.trapFocus) { $('[data-off-canvas-content]').attr('tabindex', '-1'); this._trapFocus(); } } /** * Traps focus within the offcanvas on open. * @private */ }, { key: '_trapFocus', value: function _trapFocus() { var focusable = Foundation.Keyboard.findFocusable(this.$element), first = focusable.eq(0), last = focusable.eq(-1); focusable.off('.zf.offcanvas').on('keydown.zf.offcanvas', function (e) { if (e.which === 9 || e.keycode === 9) { if (e.target === last[0] && !e.shiftKey) { e.preventDefault(); first.focus(); } if (e.target === first[0] && e.shiftKey) { e.preventDefault(); last.focus(); } } }); } /** * Allows the offcanvas to appear sticky utilizing translate properties. * @private */ // OffCanvas.prototype._stick = function() { // var elStyle = this.$element[0].style; // // if (this.options.closeOnClick) { // var exitStyle = this.$exiter[0].style; // } // // $(window).on('scroll.zf.offcanvas', function(e) { // console.log(e); // var pageY = window.pageYOffset; // elStyle.transform = 'translate(0,' + pageY + 'px)'; // if (exitStyle !== undefined) { exitStyle.transform = 'translate(0,' + pageY + 'px)'; } // }); // // this.$element.trigger('stuck.zf.offcanvas'); // }; /** * Closes the off-canvas menu. * @function * @param {Function} cb - optional cb to fire after closure. * @fires OffCanvas#closed */ }, { key: 'close', value: function close(cb) { if (!this.$element.hasClass('is-open') || this.isRevealed) { return; } var _this = this; // Foundation.Move(this.options.transitionTime, this.$element, function() { $('[data-off-canvas-wrapper]').removeClass('is-off-canvas-open is-open-' + _this.options.position); _this.$element.removeClass('is-open'); // Foundation._reflow(); // }); this.$element.attr('aria-hidden', 'true') /** * Fires when the off-canvas menu opens. * @event OffCanvas#closed */ .trigger('closed.zf.offcanvas'); // if (_this.options.isSticky || !_this.options.forceTop) { // setTimeout(function() { // _this.$element[0].style.transform = ''; // $(window).off('scroll.zf.offcanvas'); // }, this.options.transitionTime); // } if (this.options.closeOnClick) { this.$exiter.removeClass('is-visible'); } this.$lastTrigger.attr('aria-expanded', 'false'); if (this.options.trapFocus) { $('[data-off-canvas-content]').removeAttr('tabindex'); } } /** * Toggles the off-canvas menu open or closed. * @function * @param {Object} event - Event object passed from listener. * @param {jQuery} trigger - element that triggered the off-canvas to open. */ }, { key: 'toggle', value: function toggle(event, trigger) { if (this.$element.hasClass('is-open')) { this.close(event, trigger); } else { this.open(event, trigger); } } /** * Handles keyboard input when detected. When the escape key is pressed, the off-canvas menu closes, and focus is restored to the element that opened the menu. * @function * @private */ }, { key: '_handleKeyboard', value: function _handleKeyboard(event) { if (event.which !== 27) return; event.stopPropagation(); event.preventDefault(); this.close(); this.$lastTrigger.focus(); } /** * Destroys the offcanvas plugin. * @function */ }, { key: 'destroy', value: function destroy() { this.close(); this.$element.off('.zf.trigger .zf.offcanvas'); this.$exiter.off('.zf.offcanvas'); Foundation.unregisterPlugin(this); } }]); return OffCanvas; }(); OffCanvas.defaults = { /** * Allow the user to click outside of the menu to close it. * @option * @example true */ closeOnClick: true, /** * Amount of time in ms the open and close transition requires. If none selected, pulls from body style. * @option * @example 500 */ transitionTime: 0, /** * Direction the offcanvas opens from. Determines class applied to body. * @option * @example left */ position: 'left', /** * Force the page to scroll to top on open. * @option * @example true */ forceTop: true, /** * Allow the offcanvas to remain open for certain breakpoints. * @option * @example false */ isRevealed: false, /** * Breakpoint at which to reveal. JS will use a RegExp to target standard classes, if changing classnames, pass your class with the `revealClass` option. * @option * @example reveal-for-large */ revealOn: null, /** * Force focus to the offcanvas on open. If true, will focus the opening trigger on close. * @option * @example true */ autoFocus: true, /** * Class used to force an offcanvas to remain open. Foundation defaults for this are `reveal-for-large` & `reveal-for-medium`. * @option * TODO improve the regex testing for this. * @example reveal-for-large */ revealClass: 'reveal-for-', /** * Triggers optional focus trapping when opening an offcanvas. Sets tabindex of [data-off-canvas-content] to -1 for accessibility purposes. * @option * @example true */ trapFocus: false }; // Window exports Foundation.plugin(OffCanvas, 'OffCanvas'); }(jQuery); 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * Orbit module. * @module foundation.orbit * @requires foundation.util.keyboard * @requires foundation.util.motion * @requires foundation.util.timerAndImageLoader * @requires foundation.util.touch */ var Orbit = function () { /** * Creates a new instance of an orbit carousel. * @class * @param {jQuery} element - jQuery object to make into an Orbit Carousel. * @param {Object} options - Overrides to the default plugin settings. */ function Orbit(element, options) { _classCallCheck(this, Orbit); this.$element = element; this.options = $.extend({}, Orbit.defaults, this.$element.data(), options); this._init(); Foundation.registerPlugin(this, 'Orbit'); Foundation.Keyboard.register('Orbit', { 'ltr': { 'ARROW_RIGHT': 'next', 'ARROW_LEFT': 'previous' }, 'rtl': { 'ARROW_LEFT': 'next', 'ARROW_RIGHT': 'previous' } }); } /** * Initializes the plugin by creating jQuery collections, setting attributes, and starting the animation. * @function * @private */ _createClass(Orbit, [{ key: '_init', value: function _init() { this.$wrapper = this.$element.find('.' + this.options.containerClass); this.$slides = this.$element.find('.' + this.options.slideClass); var $images = this.$element.find('img'), initActive = this.$slides.filter('.is-active'); if (!initActive.length) { this.$slides.eq(0).addClass('is-active'); } if (!this.options.useMUI) { this.$slides.addClass('no-motionui'); } if ($images.length) { Foundation.onImagesLoaded($images, this._prepareForOrbit.bind(this)); } else { this._prepareForOrbit(); //hehe } if (this.options.bullets) { this._loadBullets(); } this._events(); if (this.options.autoPlay && this.$slides.length > 1) { this.geoSync(); } if (this.options.accessible) { // allow wrapper to be focusable to enable arrow navigation this.$wrapper.attr('tabindex', 0); } } /** * Creates a jQuery collection of bullets, if they are being used. * @function * @private */ }, { key: '_loadBullets', value: function _loadBullets() { this.$bullets = this.$element.find('.' + this.options.boxOfBullets).find('button'); } /** * Sets a `timer` object on the orbit, and starts the counter for the next slide. * @function */ }, { key: 'geoSync', value: function geoSync() { var _this = this; this.timer = new Foundation.Timer(this.$element, { duration: this.options.timerDelay, infinite: false }, function () { _this.changeSlide(true); }); this.timer.start(); } /** * Sets wrapper and slide heights for the orbit. * @function * @private */ }, { key: '_prepareForOrbit', value: function _prepareForOrbit() { var _this = this; this._setWrapperHeight(function (max) { _this._setSlideHeight(max); }); } /** * Calulates the height of each slide in the collection, and uses the tallest one for the wrapper height. * @function * @private * @param {Function} cb - a callback function to fire when complete. */ }, { key: '_setWrapperHeight', value: function _setWrapperHeight(cb) { //rewrite this to `for` loop var max = 0, temp, counter = 0; this.$slides.each(function () { temp = this.getBoundingClientRect().height; $(this).attr('data-slide', counter); if (counter) { //if not the first slide, set css position and display property $(this).css({ 'position': 'relative', 'display': 'none' }); } max = temp > max ? temp : max; counter++; }); if (counter === this.$slides.length) { this.$wrapper.css({ 'height': max }); //only change the wrapper height property once. cb(max); //fire callback with max height dimension. } } /** * Sets the max-height of each slide. * @function * @private */ }, { key: '_setSlideHeight', value: function _setSlideHeight(height) { this.$slides.each(function () { $(this).css('max-height', height); }); } /** * Adds event listeners to basically everything within the element. * @function * @private */ }, { key: '_events', value: function _events() { var _this = this; //*************************************** //**Now using custom event - thanks to:** //** Yohai Ararat of Toronto ** //*************************************** if (this.$slides.length > 1) { if (this.options.swipe) { this.$slides.off('swipeleft.zf.orbit swiperight.zf.orbit').on('swipeleft.zf.orbit', function (e) { e.preventDefault(); _this.changeSlide(true); }).on('swiperight.zf.orbit', function (e) { e.preventDefault(); _this.changeSlide(false); }); } //*************************************** if (this.options.autoPlay) { this.$slides.on('click.zf.orbit', function () { _this.$element.data('clickedOn', _this.$element.data('clickedOn') ? false : true); _this.timer[_this.$element.data('clickedOn') ? 'pause' : 'start'](); }); if (this.options.pauseOnHover) { this.$element.on('mouseenter.zf.orbit', function () { _this.timer.pause(); }).on('mouseleave.zf.orbit', function () { if (!_this.$element.data('clickedOn')) { _this.timer.start(); } }); } } if (this.options.navButtons) { var $controls = this.$element.find('.' + this.options.nextClass + ', .' + this.options.prevClass); $controls.attr('tabindex', 0) //also need to handle enter/return and spacebar key presses .on('click.zf.orbit touchend.zf.orbit', function () { _this.changeSlide($(this).hasClass(_this.options.nextClass)); }); } if (this.options.bullets) { this.$bullets.on('click.zf.orbit touchend.zf.orbit', function () { if (/is-active/g.test(this.className)) { return false; } //if this is active, kick out of function. var idx = $(this).data('slide'), ltr = idx > _this.$slides.filter('.is-active').data('slide'), $slide = _this.$slides.eq(idx); _this.changeSlide(ltr, $slide, idx); }); } this.$wrapper.add(this.$bullets).on('keydown.zf.orbit', function (e) { // handle keyboard event with keyboard util Foundation.Keyboard.handleKey(e, 'Orbit', { next: function () { _this.changeSlide(true); }, previous: function () { _this.changeSlide(false); }, handled: function () { // if bullet is focused, make sure focus moves if ($(e.target).is(_this.$bullets)) { _this.$bullets.filter('.is-active').focus(); } } }); }); } } /** * Changes the current slide to a new one. * @function * @param {Boolean} isLTR - flag if the slide should move left to right. * @param {jQuery} chosenSlide - the jQuery element of the slide to show next, if one is selected. * @param {Number} idx - the index of the new slide in its collection, if one chosen. * @fires Orbit#slidechange */ }, { key: 'changeSlide', value: function changeSlide(isLTR, chosenSlide, idx) { var $curSlide = this.$slides.filter('.is-active').eq(0); if (/mui/g.test($curSlide[0].className)) { return false; } //if the slide is currently animating, kick out of the function var $firstSlide = this.$slides.first(), $lastSlide = this.$slides.last(), dirIn = isLTR ? 'Right' : 'Left', dirOut = isLTR ? 'Left' : 'Right', _this = this, $newSlide; if (!chosenSlide) { //most of the time, this will be auto played or clicked from the navButtons. $newSlide = isLTR ? //if wrapping enabled, check to see if there is a `next` or `prev` sibling, if not, select the first or last slide to fill in. if wrapping not enabled, attempt to select `next` or `prev`, if there's nothing there, the function will kick out on next step. CRAZY NESTED TERNARIES!!!!! this.options.infiniteWrap ? $curSlide.next('.' + this.options.slideClass).length ? $curSlide.next('.' + this.options.slideClass) : $firstSlide : $curSlide.next('.' + this.options.slideClass) : //pick next slide if moving left to right this.options.infiniteWrap ? $curSlide.prev('.' + this.options.slideClass).length ? $curSlide.prev('.' + this.options.slideClass) : $lastSlide : $curSlide.prev('.' + this.options.slideClass); //pick prev slide if moving right to left } else { $newSlide = chosenSlide; } if ($newSlide.length) { if (this.options.bullets) { idx = idx || this.$slides.index($newSlide); //grab index to update bullets this._updateBullets(idx); } if (this.options.useMUI) { Foundation.Motion.animateIn($newSlide.addClass('is-active').css({ 'position': 'absolute', 'top': 0 }), this.options['animInFrom' + dirIn], function () { $newSlide.css({ 'position': 'relative', 'display': 'block' }).attr('aria-live', 'polite'); }); Foundation.Motion.animateOut($curSlide.removeClass('is-active'), this.options['animOutTo' + dirOut], function () { $curSlide.removeAttr('aria-live'); if (_this.options.autoPlay && !_this.timer.isPaused) { _this.timer.restart(); } //do stuff? }); } else { $curSlide.removeClass('is-active is-in').removeAttr('aria-live').hide(); $newSlide.addClass('is-active is-in').attr('aria-live', 'polite').show(); if (this.options.autoPlay && !this.timer.isPaused) { this.timer.restart(); } } /** * Triggers when the slide has finished animating in. * @event Orbit#slidechange */ this.$element.trigger('slidechange.zf.orbit', [$newSlide]); } } /** * Updates the active state of the bullets, if displayed. * @function * @private * @param {Number} idx - the index of the current slide. */ }, { key: '_updateBullets', value: function _updateBullets(idx) { var $oldBullet = this.$element.find('.' + this.options.boxOfBullets).find('.is-active').removeClass('is-active').blur(), span = $oldBullet.find('span:last').detach(), $newBullet = this.$bullets.eq(idx).addClass('is-active').append(span); } /** * Destroys the carousel and hides the element. * @function */ }, { key: 'destroy', value: function destroy() { this.$element.off('.zf.orbit').find('*').off('.zf.orbit').end().hide(); Foundation.unregisterPlugin(this); } }]); return Orbit; }(); Orbit.defaults = { /** * Tells the JS to look for and loadBullets. * @option * @example true */ bullets: true, /** * Tells the JS to apply event listeners to nav buttons * @option * @example true */ navButtons: true, /** * motion-ui animation class to apply * @option * @example 'slide-in-right' */ animInFromRight: 'slide-in-right', /** * motion-ui animation class to apply * @option * @example 'slide-out-right' */ animOutToRight: 'slide-out-right', /** * motion-ui animation class to apply * @option * @example 'slide-in-left' * */ animInFromLeft: 'slide-in-left', /** * motion-ui animation class to apply * @option * @example 'slide-out-left' */ animOutToLeft: 'slide-out-left', /** * Allows Orbit to automatically animate on page load. * @option * @example true */ autoPlay: true, /** * Amount of time, in ms, between slide transitions * @option * @example 5000 */ timerDelay: 5000, /** * Allows Orbit to infinitely loop through the slides * @option * @example true */ infiniteWrap: true, /** * Allows the Orbit slides to bind to swipe events for mobile, requires an additional util library * @option * @example true */ swipe: true, /** * Allows the timing function to pause animation on hover. * @option * @example true */ pauseOnHover: true, /** * Allows Orbit to bind keyboard events to the slider, to animate frames with arrow keys * @option * @example true */ accessible: true, /** * Class applied to the container of Orbit * @option * @example 'orbit-container' */ containerClass: 'orbit-container', /** * Class applied to individual slides. * @option * @example 'orbit-slide' */ slideClass: 'orbit-slide', /** * Class applied to the bullet container. You're welcome. * @option * @example 'orbit-bullets' */ boxOfBullets: 'orbit-bullets', /** * Class applied to the `next` navigation button. * @option * @example 'orbit-next' */ nextClass: 'orbit-next', /** * Class applied to the `previous` navigation button. * @option * @example 'orbit-previous' */ prevClass: 'orbit-previous', /** * Boolean to flag the js to use motion ui classes or not. Default to true for backwards compatability. * @option * @example true */ useMUI: true }; // Window exports Foundation.plugin(Orbit, 'Orbit'); }(jQuery); 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * ResponsiveMenu module. * @module foundation.responsiveMenu * @requires foundation.util.triggers * @requires foundation.util.mediaQuery * @requires foundation.util.accordionMenu * @requires foundation.util.drilldown * @requires foundation.util.dropdown-menu */ var ResponsiveMenu = function () { /** * Creates a new instance of a responsive menu. * @class * @fires ResponsiveMenu#init * @param {jQuery} element - jQuery object to make into a dropdown menu. * @param {Object} options - Overrides to the default plugin settings. */ function ResponsiveMenu(element, options) { _classCallCheck(this, ResponsiveMenu); this.$element = $(element); this.rules = this.$element.data('responsive-menu'); this.currentMq = null; this.currentPlugin = null; this._init(); this._events(); Foundation.registerPlugin(this, 'ResponsiveMenu'); } /** * Initializes the Menu by parsing the classes from the 'data-ResponsiveMenu' attribute on the element. * @function * @private */ _createClass(ResponsiveMenu, [{ key: '_init', value: function _init() { var rulesTree = {}; // Parse rules from "classes" in data attribute var rules = this.rules.split(' '); // Iterate through every rule found for (var i = 0; i < rules.length; i++) { var rule = rules[i].split('-'); var ruleSize = rule.length > 1 ? rule[0] : 'small'; var rulePlugin = rule.length > 1 ? rule[1] : rule[0]; if (MenuPlugins[rulePlugin] !== null) { rulesTree[ruleSize] = MenuPlugins[rulePlugin]; } } this.rules = rulesTree; if (!$.isEmptyObject(rulesTree)) { this._checkMediaQueries(); } } /** * Initializes events for the Menu. * @function * @private */ }, { key: '_events', value: function _events() { var _this = this; $(window).on('changed.zf.mediaquery', function () { _this._checkMediaQueries(); }); // $(window).on('resize.zf.ResponsiveMenu', function() { // _this._checkMediaQueries(); // }); } /** * Checks the current screen width against available media queries. If the media query has changed, and the plugin needed has changed, the plugins will swap out. * @function * @private */ }, { key: '_checkMediaQueries', value: function _checkMediaQueries() { var matchedMq, _this = this; // Iterate through each rule and find the last matching rule $.each(this.rules, function (key) { if (Foundation.MediaQuery.atLeast(key)) { matchedMq = key; } }); // No match? No dice if (!matchedMq) return; // Plugin already initialized? We good if (this.currentPlugin instanceof this.rules[matchedMq].plugin) return; // Remove existing plugin-specific CSS classes $.each(MenuPlugins, function (key, value) { _this.$element.removeClass(value.cssClass); }); // Add the CSS class for the new plugin this.$element.addClass(this.rules[matchedMq].cssClass); // Create an instance of the new plugin if (this.currentPlugin) this.currentPlugin.destroy(); this.currentPlugin = new this.rules[matchedMq].plugin(this.$element, {}); } /** * Destroys the instance of the current plugin on this element, as well as the window resize handler that switches the plugins out. * @function */ }, { key: 'destroy', value: function destroy() { this.currentPlugin.destroy(); $(window).off('.zf.ResponsiveMenu'); Foundation.unregisterPlugin(this); } }]); return ResponsiveMenu; }(); ResponsiveMenu.defaults = {}; // The plugin matches the plugin classes with these plugin instances. var MenuPlugins = { dropdown: { cssClass: 'dropdown', plugin: Foundation._plugins['dropdown-menu'] || null }, drilldown: { cssClass: 'drilldown', plugin: Foundation._plugins['drilldown'] || null }, accordion: { cssClass: 'accordion-menu', plugin: Foundation._plugins['accordion-menu'] || null } }; // Window exports Foundation.plugin(ResponsiveMenu, 'ResponsiveMenu'); }(jQuery); 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * ResponsiveToggle module. * @module foundation.responsiveToggle * @requires foundation.util.mediaQuery */ var ResponsiveToggle = function () { /** * Creates a new instance of Tab Bar. * @class * @fires ResponsiveToggle#init * @param {jQuery} element - jQuery object to attach tab bar functionality to. * @param {Object} options - Overrides to the default plugin settings. */ function ResponsiveToggle(element, options) { _classCallCheck(this, ResponsiveToggle); this.$element = $(element); this.options = $.extend({}, ResponsiveToggle.defaults, this.$element.data(), options); this._init(); this._events(); Foundation.registerPlugin(this, 'ResponsiveToggle'); } /** * Initializes the tab bar by finding the target element, toggling element, and running update(). * @function * @private */ _createClass(ResponsiveToggle, [{ key: '_init', value: function _init() { var targetID = this.$element.data('responsive-toggle'); if (!targetID) { console.error('Your tab bar needs an ID of a Menu as the value of data-tab-bar.'); } this.$targetMenu = $('#' + targetID); this.$toggler = this.$element.find('[data-toggle]'); this._update(); } /** * Adds necessary event handlers for the tab bar to work. * @function * @private */ }, { key: '_events', value: function _events() { var _this = this; $(window).on('changed.zf.mediaquery', this._update.bind(this)); this.$toggler.on('click.zf.responsiveToggle', this.toggleMenu.bind(this)); } /** * Checks the current media query to determine if the tab bar should be visible or hidden. * @function * @private */ }, { key: '_update', value: function _update() { // Mobile if (!Foundation.MediaQuery.atLeast(this.options.hideFor)) { this.$element.show(); this.$targetMenu.hide(); } // Desktop else { this.$element.hide(); this.$targetMenu.show(); } } /** * Toggles the element attached to the tab bar. The toggle only happens if the screen is small enough to allow it. * @function * @fires ResponsiveToggle#toggled */ }, { key: 'toggleMenu', value: function toggleMenu() { if (!Foundation.MediaQuery.atLeast(this.options.hideFor)) { this.$targetMenu.toggle(0); /** * Fires when the element attached to the tab bar toggles. * @event ResponsiveToggle#toggled */ this.$element.trigger('toggled.zf.responsiveToggle'); } } }, { key: 'destroy', value: function destroy() { //TODO this... } }]); return ResponsiveToggle; }(); ResponsiveToggle.defaults = { /** * The breakpoint after which the menu is always shown, and the tab bar is hidden. * @option * @example 'medium' */ hideFor: 'medium' }; // Window exports Foundation.plugin(ResponsiveToggle, 'ResponsiveToggle'); }(jQuery); 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * Reveal module. * @module foundation.reveal * @requires foundation.util.keyboard * @requires foundation.util.box * @requires foundation.util.triggers * @requires foundation.util.mediaQuery * @requires foundation.util.motion if using animations */ var Reveal = function () { /** * Creates a new instance of Reveal. * @class * @param {jQuery} element - jQuery object to use for the modal. * @param {Object} options - optional parameters. */ function Reveal(element, options) { _classCallCheck(this, Reveal); this.$element = element; this.options = $.extend({}, Reveal.defaults, this.$element.data(), options); this._init(); Foundation.registerPlugin(this, 'Reveal'); Foundation.Keyboard.register('Reveal', { 'ENTER': 'open', 'SPACE': 'open', 'ESCAPE': 'close', 'TAB': 'tab_forward', 'SHIFT_TAB': 'tab_backward' }); } /** * Initializes the modal by adding the overlay and close buttons, (if selected). * @private */ _createClass(Reveal, [{ key: '_init', value: function _init() { this.id = this.$element.attr('id'); this.isActive = false; this.cached = { mq: Foundation.MediaQuery.current }; this.isiOS = iPhoneSniff(); if (this.isiOS) { this.$element.addClass('is-ios'); } this.$anchor = $('[data-open="' + this.id + '"]').length ? $('[data-open="' + this.id + '"]') : $('[data-toggle="' + this.id + '"]'); if (this.$anchor.length) { var anchorId = this.$anchor[0].id || Foundation.GetYoDigits(6, 'reveal'); this.$anchor.attr({ 'aria-controls': this.id, 'id': anchorId, 'aria-haspopup': true, 'tabindex': 0 }); this.$element.attr({ 'aria-labelledby': anchorId }); } if (this.options.fullScreen || this.$element.hasClass('full')) { this.options.fullScreen = true; this.options.overlay = false; } if (this.options.overlay && !this.$overlay) { this.$overlay = this._makeOverlay(this.id); } this.$element.attr({ 'role': 'dialog', 'aria-hidden': true, 'data-yeti-box': this.id, 'data-resize': this.id }); if (this.$overlay) { this.$element.detach().appendTo(this.$overlay); } else { this.$element.detach().appendTo($('body')); this.$element.addClass('without-overlay'); } this._events(); if (this.options.deepLink && window.location.hash === '#' + this.id) { $(window).one('load.zf.reveal', this.open.bind(this)); } } /** * Creates an overlay div to display behind the modal. * @private */ }, { key: '_makeOverlay', value: function _makeOverlay(id) { var $overlay = $('<div></div>').addClass('reveal-overlay').attr({ 'tabindex': -1, 'aria-hidden': true }).appendTo('body'); return $overlay; } /** * Updates position of modal * TODO: Figure out if we actually need to cache these values or if it doesn't matter * @private */ }, { key: '_updatePosition', value: function _updatePosition() { var width = this.$element.outerWidth(); var outerWidth = $(window).width(); var height = this.$element.outerHeight(); var outerHeight = $(window).height(); var left = parseInt((outerWidth - width) / 2, 10); var top; if (height > outerHeight) { top = parseInt(Math.min(100, outerHeight / 10), 10); } else { top = parseInt((outerHeight - height) / 4, 10); } this.$element.css({ top: top + 'px' }); // only worry about left if we don't have an overlay, otherwise we're perfectly in the middle if (!this.$overlay) { this.$element.css({ left: left + 'px' }); } } /** * Adds event handlers for the modal. * @private */ }, { key: '_events', value: function _events() { var _this = this; this.$element.on({ 'open.zf.trigger': this.open.bind(this), 'close.zf.trigger': this.close.bind(this), 'toggle.zf.trigger': this.toggle.bind(this), 'resizeme.zf.trigger': function () { _this._updatePosition(); } }); if (this.$anchor.length) { this.$anchor.on('keydown.zf.reveal', function (e) { if (e.which === 13 || e.which === 32) { e.stopPropagation(); e.preventDefault(); _this.open(); } }); } if (this.options.closeOnClick && this.options.overlay) { this.$overlay.off('.zf.reveal').on('click.zf.reveal', function (e) { if (e.target === _this.$element[0] || $.contains(_this.$element[0], e.target)) { return; } _this.close(); }); } if (this.options.deepLink) { $(window).on('popstate.zf.reveal:' + this.id, this._handleState.bind(this)); } } /** * Handles modal methods on back/forward button clicks or any other event that triggers popstate. * @private */ }, { key: '_handleState', value: function _handleState(e) { if (window.location.hash === '#' + this.id && !this.isActive) { this.open(); } else { this.close(); } } /** * Opens the modal controlled by `this.$anchor`, and closes all others by default. * @function * @fires Reveal#closeme * @fires Reveal#open */ }, { key: 'open', value: function open() { var _this2 = this; if (this.options.deepLink) { var hash = '#' + this.id; if (window.history.pushState) { window.history.pushState(null, null, hash); } else { window.location.hash = hash; } } this.isActive = true; // Make elements invisible, but remove display: none so we can get size and positioning this.$element.css({ 'visibility': 'hidden' }).show().scrollTop(0); if (this.options.overlay) { this.$overlay.css({ 'visibility': 'hidden' }).show(); } this._updatePosition(); this.$element.hide().css({ 'visibility': '' }); if (this.$overlay) { this.$overlay.css({ 'visibility': '' }).hide(); } if (!this.options.multipleOpened) { /** * Fires immediately before the modal opens. * Closes any other modals that are currently open * @event Reveal#closeme */ this.$element.trigger('closeme.zf.reveal', this.id); } // Motion UI method of reveal if (this.options.animationIn) { if (this.options.overlay) { Foundation.Motion.animateIn(this.$overlay, 'fade-in'); } Foundation.Motion.animateIn(this.$element, this.options.animationIn, function () { this.focusableElements = Foundation.Keyboard.findFocusable(this.$element); }); } // jQuery method of reveal else { if (this.options.overlay) { this.$overlay.show(0); } this.$element.show(this.options.showDelay); } // handle accessibility this.$element.attr({ 'aria-hidden': false, 'tabindex': -1 }).focus(); /** * Fires when the modal has successfully opened. * @event Reveal#open */ this.$element.trigger('open.zf.reveal'); if (this.isiOS) { var scrollPos = window.pageYOffset; $('html, body').addClass('is-reveal-open').scrollTop(scrollPos); } else { $('body').addClass('is-reveal-open'); } $('body').addClass('is-reveal-open').attr('aria-hidden', this.options.overlay || this.options.fullScreen ? true : false); setTimeout(function () { _this2._extraHandlers(); }, 0); } /** * Adds extra event handlers for the body and window if necessary. * @private */ }, { key: '_extraHandlers', value: function _extraHandlers() { var _this = this; this.focusableElements = Foundation.Keyboard.findFocusable(this.$element); if (!this.options.overlay && this.options.closeOnClick && !this.options.fullScreen) { $('body').on('click.zf.reveal', function (e) { if (e.target === _this.$element[0] || $.contains(_this.$element[0], e.target)) { return; } _this.close(); }); } if (this.options.closeOnEsc) { $(window).on('keydown.zf.reveal', function (e) { Foundation.Keyboard.handleKey(e, 'Reveal', { close: function () { if (_this.options.closeOnEsc) { _this.close(); _this.$anchor.focus(); } } }); if (_this.focusableElements.length === 0) { // no focusable elements inside the modal at all, prevent tabbing in general e.preventDefault(); } }); } // lock focus within modal while tabbing this.$element.on('keydown.zf.reveal', function (e) { var $target = $(this); // handle keyboard event with keyboard util Foundation.Keyboard.handleKey(e, 'Reveal', { tab_forward: function () { if (_this.$element.find(':focus').is(_this.focusableElements.eq(-1))) { // left modal downwards, setting focus to first element _this.focusableElements.eq(0).focus(); e.preventDefault(); } }, tab_backward: function () { if (_this.$element.find(':focus').is(_this.focusableElements.eq(0)) || _this.$element.is(':focus')) { // left modal upwards, setting focus to last element _this.focusableElements.eq(-1).focus(); e.preventDefault(); } }, open: function () { if (_this.$element.find(':focus').is(_this.$element.find('[data-close]'))) { setTimeout(function () { // set focus back to anchor if close button has been activated _this.$anchor.focus(); }, 1); } else if ($target.is(_this.focusableElements)) { // dont't trigger if acual element has focus (i.e. inputs, links, ...) _this.open(); } }, close: function () { if (_this.options.closeOnEsc) { _this.close(); _this.$anchor.focus(); } } }); }); } /** * Closes the modal. * @function * @fires Reveal#closed */ }, { key: 'close', value: function close() { if (!this.isActive || !this.$element.is(':visible')) { return false; } var _this = this; // Motion UI method of hiding if (this.options.animationOut) { if (this.options.overlay) { Foundation.Motion.animateOut(this.$overlay, 'fade-out', finishUp); } else { finishUp(); } Foundation.Motion.animateOut(this.$element, this.options.animationOut); } // jQuery method of hiding else { if (this.options.overlay) { this.$overlay.hide(0, finishUp); } else { finishUp(); } this.$element.hide(this.options.hideDelay); } // Conditionals to remove extra event listeners added on open if (this.options.closeOnEsc) { $(window).off('keydown.zf.reveal'); } if (!this.options.overlay && this.options.closeOnClick) { $('body').off('click.zf.reveal'); } this.$element.off('keydown.zf.reveal'); function finishUp() { if (_this.isiOS) { $('html, body').removeClass('is-reveal-open'); } else { $('body').removeClass('is-reveal-open'); } $('body').attr({ 'aria-hidden': false, 'tabindex': '' }); _this.$element.attr('aria-hidden', true); /** * Fires when the modal is done closing. * @event Reveal#closed */ _this.$element.trigger('closed.zf.reveal'); } /** * Resets the modal content * This prevents a running video to keep going in the background */ if (this.options.resetOnClose) { this.$element.html(this.$element.html()); } this.isActive = false; if (_this.options.deepLink) { if (window.history.replaceState) { window.history.replaceState("", document.title, window.location.pathname); } else { window.location.hash = ''; } } } /** * Toggles the open/closed state of a modal. * @function */ }, { key: 'toggle', value: function toggle() { if (this.isActive) { this.close(); } else { this.open(); } } }, { key: 'destroy', /** * Destroys an instance of a modal. * @function */ value: function destroy() { if (this.options.overlay) { this.$overlay.hide().off().remove(); } this.$element.hide().off(); this.$anchor.off('.zf'); $(window).off('.zf.reveal:' + this.id); Foundation.unregisterPlugin(this); } }]); return Reveal; }(); Reveal.defaults = { /** * Motion-UI class to use for animated elements. If none used, defaults to simple show/hide. * @option * @example 'slide-in-left' */ animationIn: '', /** * Motion-UI class to use for animated elements. If none used, defaults to simple show/hide. * @option * @example 'slide-out-right' */ animationOut: '', /** * Time, in ms, to delay the opening of a modal after a click if no animation used. * @option * @example 10 */ showDelay: 0, /** * Time, in ms, to delay the closing of a modal after a click if no animation used. * @option * @example 10 */ hideDelay: 0, /** * Allows a click on the body/overlay to close the modal. * @option * @example true */ closeOnClick: true, /** * Allows the modal to close if the user presses the `ESCAPE` key. * @option * @example true */ closeOnEsc: true, /** * If true, allows multiple modals to be displayed at once. * @option * @example false */ multipleOpened: false, /** * Distance, in pixels, the modal should push down from the top of the screen. * @option * @example 100 */ vOffset: 100, /** * Distance, in pixels, the modal should push in from the side of the screen. * @option * @example 0 */ hOffset: 0, /** * Allows the modal to be fullscreen, completely blocking out the rest of the view. JS checks for this as well. * @option * @example false */ fullScreen: false, /** * Percentage of screen height the modal should push up from the bottom of the view. * @option * @example 10 */ btmOffsetPct: 10, /** * Allows the modal to generate an overlay div, which will cover the view when modal opens. * @option * @example true */ overlay: true, /** * Allows the modal to remove and reinject markup on close. Should be true if using video elements w/o using provider's api, otherwise, videos will continue to play in the background. * @option * @example false */ resetOnClose: false, /** * Allows the modal to alter the url on open/close, and allows the use of the `back` button to close modals. ALSO, allows a modal to auto-maniacally open on page load IF the hash === the modal's user-set id. * @option * @example false */ deepLink: false }; // Window exports Foundation.plugin(Reveal, 'Reveal'); function iPhoneSniff() { return (/iP(ad|hone|od).*OS/.test(window.navigator.userAgent) ); } }(jQuery); 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * Slider module. * @module foundation.slider * @requires foundation.util.motion * @requires foundation.util.triggers * @requires foundation.util.keyboard * @requires foundation.util.touch */ var Slider = function () { /** * Creates a new instance of a drilldown menu. * @class * @param {jQuery} element - jQuery object to make into an accordion menu. * @param {Object} options - Overrides to the default plugin settings. */ function Slider(element, options) { _classCallCheck(this, Slider); this.$element = element; this.options = $.extend({}, Slider.defaults, this.$element.data(), options); this._init(); Foundation.registerPlugin(this, 'Slider'); Foundation.Keyboard.register('Slider', { 'ltr': { 'ARROW_RIGHT': 'increase', 'ARROW_UP': 'increase', 'ARROW_DOWN': 'decrease', 'ARROW_LEFT': 'decrease', 'SHIFT_ARROW_RIGHT': 'increase_fast', 'SHIFT_ARROW_UP': 'increase_fast', 'SHIFT_ARROW_DOWN': 'decrease_fast', 'SHIFT_ARROW_LEFT': 'decrease_fast' }, 'rtl': { 'ARROW_LEFT': 'increase', 'ARROW_RIGHT': 'decrease', 'SHIFT_ARROW_LEFT': 'increase_fast', 'SHIFT_ARROW_RIGHT': 'decrease_fast' } }); } /** * Initilizes the plugin by reading/setting attributes, creating collections and setting the initial position of the handle(s). * @function * @private */ _createClass(Slider, [{ key: '_init', value: function _init() { this.inputs = this.$element.find('input'); this.handles = this.$element.find('[data-slider-handle]'); this.$handle = this.handles.eq(0); this.$input = this.inputs.length ? this.inputs.eq(0) : $('#' + this.$handle.attr('aria-controls')); this.$fill = this.$element.find('[data-slider-fill]').css(this.options.vertical ? 'height' : 'width', 0); var isDbl = false, _this = this; if (this.options.disabled || this.$element.hasClass(this.options.disabledClass)) { this.options.disabled = true; this.$element.addClass(this.options.disabledClass); } if (!this.inputs.length) { this.inputs = $().add(this.$input); this.options.binding = true; } this._setInitAttr(0); this._events(this.$handle); if (this.handles[1]) { this.options.doubleSided = true; this.$handle2 = this.handles.eq(1); this.$input2 = this.inputs.length > 1 ? this.inputs.eq(1) : $('#' + this.$handle2.attr('aria-controls')); if (!this.inputs[1]) { this.inputs = this.inputs.add(this.$input2); } isDbl = true; this._setHandlePos(this.$handle, this.options.initialStart, true, function () { _this._setHandlePos(_this.$handle2, _this.options.initialEnd, true); }); // this.$handle.triggerHandler('click.zf.slider'); this._setInitAttr(1); this._events(this.$handle2); } if (!isDbl) { this._setHandlePos(this.$handle, this.options.initialStart, true); } } /** * Sets the position of the selected handle and fill bar. * @function * @private * @param {jQuery} $hndl - the selected handle to move. * @param {Number} location - floating point between the start and end values of the slider bar. * @param {Function} cb - callback function to fire on completion. * @fires Slider#moved */ }, { key: '_setHandlePos', value: function _setHandlePos($hndl, location, noInvert, cb) { //might need to alter that slightly for bars that will have odd number selections. location = parseFloat(location); //on input change events, convert string to number...grumble. // prevent slider from running out of bounds, if value exceeds the limits set through options, override the value to min/max if (location < this.options.start) { location = this.options.start; } else if (location > this.options.end) { location = this.options.end; } var isDbl = this.options.doubleSided; if (isDbl) { //this block is to prevent 2 handles from crossing eachother. Could/should be improved. if (this.handles.index($hndl) === 0) { var h2Val = parseFloat(this.$handle2.attr('aria-valuenow')); location = location >= h2Val ? h2Val - this.options.step : location; } else { var h1Val = parseFloat(this.$handle.attr('aria-valuenow')); location = location <= h1Val ? h1Val + this.options.step : location; } } //this is for single-handled vertical sliders, it adjusts the value to account for the slider being "upside-down" //for click and drag events, it's weird due to the scale(-1, 1) css property if (this.options.vertical && !noInvert) { location = this.options.end - location; } var _this = this, vert = this.options.vertical, hOrW = vert ? 'height' : 'width', lOrT = vert ? 'top' : 'left', handleDim = $hndl[0].getBoundingClientRect()[hOrW], elemDim = this.$element[0].getBoundingClientRect()[hOrW], //percentage of bar min/max value based on click or drag point pctOfBar = percent(location, this.options.end).toFixed(2), //number of actual pixels to shift the handle, based on the percentage obtained above pxToMove = (elemDim - handleDim) * pctOfBar, //percentage of bar to shift the handle movement = (percent(pxToMove, elemDim) * 100).toFixed(this.options.decimal); //fixing the decimal value for the location number, is passed to other methods as a fixed floating-point value location = parseFloat(location.toFixed(this.options.decimal)); // declare empty object for css adjustments, only used with 2 handled-sliders var css = {}; this._setValues($hndl, location); // TODO update to calculate based on values set to respective inputs?? if (isDbl) { var isLeftHndl = this.handles.index($hndl) === 0, //empty variable, will be used for min-height/width for fill bar dim, //percentage w/h of the handle compared to the slider bar handlePct = ~ ~(percent(handleDim, elemDim) * 100); //if left handle, the math is slightly different than if it's the right handle, and the left/top property needs to be changed for the fill bar if (isLeftHndl) { //left or top percentage value to apply to the fill bar. css[lOrT] = movement + '%'; //calculate the new min-height/width for the fill bar. dim = parseFloat(this.$handle2[0].style[lOrT]) - movement + handlePct; //this callback is necessary to prevent errors and allow the proper placement and initialization of a 2-handled slider //plus, it means we don't care if 'dim' isNaN on init, it won't be in the future. if (cb && typeof cb === 'function') { cb(); } //this is only needed for the initialization of 2 handled sliders } else { //just caching the value of the left/bottom handle's left/top property var handlePos = parseFloat(this.$handle[0].style[lOrT]); //calculate the new min-height/width for the fill bar. Use isNaN to prevent false positives for numbers <= 0 //based on the percentage of movement of the handle being manipulated, less the opposing handle's left/top position, plus the percentage w/h of the handle itself dim = movement - (isNaN(handlePos) ? this.options.initialStart / ((this.options.end - this.options.start) / 100) : handlePos) + handlePct; } // assign the min-height/width to our css object css['min-' + hOrW] = dim + '%'; } this.$element.one('finished.zf.animate', function () { /** * Fires when the handle is done moving. * @event Slider#moved */ _this.$element.trigger('moved.zf.slider', [$hndl]); }); //because we don't know exactly how the handle will be moved, check the amount of time it should take to move. var moveTime = this.$element.data('dragging') ? 1000 / 60 : this.options.moveTime; Foundation.Move(moveTime, $hndl, function () { //adjusting the left/top property of the handle, based on the percentage calculated above $hndl.css(lOrT, movement + '%'); if (!_this.options.doubleSided) { //if single-handled, a simple method to expand the fill bar _this.$fill.css(hOrW, pctOfBar * 100 + '%'); } else { //otherwise, use the css object we created above _this.$fill.css(css); } }); } /** * Sets the initial attribute for the slider element. * @function * @private * @param {Number} idx - index of the current handle/input to use. */ }, { key: '_setInitAttr', value: function _setInitAttr(idx) { var id = this.inputs.eq(idx).attr('id') || Foundation.GetYoDigits(6, 'slider'); this.inputs.eq(idx).attr({ 'id': id, 'max': this.options.end, 'min': this.options.start, 'step': this.options.step }); this.handles.eq(idx).attr({ 'role': 'slider', 'aria-controls': id, 'aria-valuemax': this.options.end, 'aria-valuemin': this.options.start, 'aria-valuenow': idx === 0 ? this.options.initialStart : this.options.initialEnd, 'aria-orientation': this.options.vertical ? 'vertical' : 'horizontal', 'tabindex': 0 }); } /** * Sets the input and `aria-valuenow` values for the slider element. * @function * @private * @param {jQuery} $handle - the currently selected handle. * @param {Number} val - floating point of the new value. */ }, { key: '_setValues', value: function _setValues($handle, val) { var idx = this.options.doubleSided ? this.handles.index($handle) : 0; this.inputs.eq(idx).val(val); $handle.attr('aria-valuenow', val); } /** * Handles events on the slider element. * Calculates the new location of the current handle. * If there are two handles and the bar was clicked, it determines which handle to move. * @function * @private * @param {Object} e - the `event` object passed from the listener. * @param {jQuery} $handle - the current handle to calculate for, if selected. * @param {Number} val - floating point number for the new value of the slider. * TODO clean this up, there's a lot of repeated code between this and the _setHandlePos fn. */ }, { key: '_handleEvent', value: function _handleEvent(e, $handle, val) { var value, hasVal; if (!val) { //click or drag events e.preventDefault(); var _this = this, vertical = this.options.vertical, param = vertical ? 'height' : 'width', direction = vertical ? 'top' : 'left', pageXY = vertical ? e.pageY : e.pageX, halfOfHandle = this.$handle[0].getBoundingClientRect()[param] / 2, barDim = this.$element[0].getBoundingClientRect()[param], barOffset = this.$element.offset()[direction] - pageXY, //if the cursor position is less than or greater than the elements bounding coordinates, set coordinates within those bounds barXY = barOffset > 0 ? -halfOfHandle : barOffset - halfOfHandle < -barDim ? barDim : Math.abs(barOffset), offsetPct = percent(barXY, barDim); value = (this.options.end - this.options.start) * offsetPct; // turn everything around for RTL, yay math! if (Foundation.rtl() && !this.options.vertical) { value = this.options.end - value; } value = _this._adjustValue(null, value); //boolean flag for the setHandlePos fn, specifically for vertical sliders hasVal = false; if (!$handle) { //figure out which handle it is, pass it to the next function. var firstHndlPos = absPosition(this.$handle, direction, barXY, param), secndHndlPos = absPosition(this.$handle2, direction, barXY, param); $handle = firstHndlPos <= secndHndlPos ? this.$handle : this.$handle2; } } else { //change event on input value = this._adjustValue(null, val); hasVal = true; } this._setHandlePos($handle, value, hasVal); } /** * Adjustes value for handle in regard to step value. returns adjusted value * @function * @private * @param {jQuery} $handle - the selected handle. * @param {Number} value - value to adjust. used if $handle is falsy */ }, { key: '_adjustValue', value: function _adjustValue($handle, value) { var val, step = this.options.step, div = parseFloat(step / 2), left, prev_val, next_val; if (!!$handle) { val = parseFloat($handle.attr('aria-valuenow')); } else { val = value; } left = val % step; prev_val = val - left; next_val = prev_val + step; if (left === 0) { return val; } val = val >= prev_val + div ? next_val : prev_val; return val; } /** * Adds event listeners to the slider elements. * @function * @private * @param {jQuery} $handle - the current handle to apply listeners to. */ }, { key: '_events', value: function _events($handle) { if (this.options.disabled) { return false; } var _this = this, curHandle, timer; this.inputs.off('change.zf.slider').on('change.zf.slider', function (e) { var idx = _this.inputs.index($(this)); _this._handleEvent(e, _this.handles.eq(idx), $(this).val()); }); if (this.options.clickSelect) { this.$element.off('click.zf.slider').on('click.zf.slider', function (e) { if (_this.$element.data('dragging')) { return false; } if (!$(e.target).is('[data-slider-handle]')) { if (_this.options.doubleSided) { _this._handleEvent(e); } else { _this._handleEvent(e, _this.$handle); } } }); } if (this.options.draggable) { this.handles.addTouch(); var $body = $('body'); $handle.off('mousedown.zf.slider').on('mousedown.zf.slider', function (e) { $handle.addClass('is-dragging'); _this.$fill.addClass('is-dragging'); // _this.$element.data('dragging', true); curHandle = $(e.currentTarget); $body.on('mousemove.zf.slider', function (e) { e.preventDefault(); _this._handleEvent(e, curHandle); }).on('mouseup.zf.slider', function (e) { _this._handleEvent(e, curHandle); $handle.removeClass('is-dragging'); _this.$fill.removeClass('is-dragging'); _this.$element.data('dragging', false); $body.off('mousemove.zf.slider mouseup.zf.slider'); }); }); } $handle.off('keydown.zf.slider').on('keydown.zf.slider', function (e) { var _$handle = $(this), idx = _this.options.doubleSided ? _this.handles.index(_$handle) : 0, oldValue = parseFloat(_this.inputs.eq(idx).val()), newValue; // handle keyboard event with keyboard util Foundation.Keyboard.handleKey(e, 'Slider', { decrease: function () { newValue = oldValue - _this.options.step; }, increase: function () { newValue = oldValue + _this.options.step; }, decrease_fast: function () { newValue = oldValue - _this.options.step * 10; }, increase_fast: function () { newValue = oldValue + _this.options.step * 10; }, handled: function () { // only set handle pos when event was handled specially e.preventDefault(); _this._setHandlePos(_$handle, newValue, true); } }); /*if (newValue) { // if pressed key has special function, update value e.preventDefault(); _this._setHandlePos(_$handle, newValue); }*/ }); } /** * Destroys the slider plugin. */ }, { key: 'destroy', value: function destroy() { this.handles.off('.zf.slider'); this.inputs.off('.zf.slider'); this.$element.off('.zf.slider'); Foundation.unregisterPlugin(this); } }]); return Slider; }(); Slider.defaults = { /** * Minimum value for the slider scale. * @option * @example 0 */ start: 0, /** * Maximum value for the slider scale. * @option * @example 100 */ end: 100, /** * Minimum value change per change event. * @option * @example 1 */ step: 1, /** * Value at which the handle/input *(left handle/first input)* should be set to on initialization. * @option * @example 0 */ initialStart: 0, /** * Value at which the right handle/second input should be set to on initialization. * @option * @example 100 */ initialEnd: 100, /** * Allows the input to be located outside the container and visible. Set to by the JS * @option * @example false */ binding: false, /** * Allows the user to click/tap on the slider bar to select a value. * @option * @example true */ clickSelect: true, /** * Set to true and use the `vertical` class to change alignment to vertical. * @option * @example false */ vertical: false, /** * Allows the user to drag the slider handle(s) to select a value. * @option * @example true */ draggable: true, /** * Disables the slider and prevents event listeners from being applied. Double checked by JS with `disabledClass`. * @option * @example false */ disabled: false, /** * Allows the use of two handles. Double checked by the JS. Changes some logic handling. * @option * @example false */ doubleSided: false, /** * Potential future feature. */ // steps: 100, /** * Number of decimal places the plugin should go to for floating point precision. * @option * @example 2 */ decimal: 2, /** * Time delay for dragged elements. */ // dragDelay: 0, /** * Time, in ms, to animate the movement of a slider handle if user clicks/taps on the bar. Needs to be manually set if updating the transition time in the Sass settings. * @option * @example 200 */ moveTime: 200, //update this if changing the transition time in the sass /** * Class applied to disabled sliders. * @option * @example 'disabled' */ disabledClass: 'disabled', /** * Will invert the default layout for a vertical<span data-tooltip title="who would do this???"> </span>slider. * @option * @example false */ invertVertical: false }; function percent(frac, num) { return frac / num; } function absPosition($handle, dir, clickPos, param) { return Math.abs($handle.position()[dir] + $handle[param]() / 2 - clickPos); } // Window exports Foundation.plugin(Slider, 'Slider'); }(jQuery); //*********this is in case we go to static, absolute positions instead of dynamic positioning******** // this.setSteps(function() { // _this._events(); // var initStart = _this.options.positions[_this.options.initialStart - 1] || null; // var initEnd = _this.options.initialEnd ? _this.options.position[_this.options.initialEnd - 1] : null; // if (initStart || initEnd) { // _this._handleEvent(initStart, initEnd); // } // }); //***********the other part of absolute positions************* // Slider.prototype.setSteps = function(cb) { // var posChange = this.$element.outerWidth() / this.options.steps; // var counter = 0 // while(counter < this.options.steps) { // if (counter) { // this.options.positions.push(this.options.positions[counter - 1] + posChange); // } else { // this.options.positions.push(posChange); // } // counter++; // } // cb(); // }; 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * Sticky module. * @module foundation.sticky * @requires foundation.util.triggers * @requires foundation.util.mediaQuery */ var Sticky = function () { /** * Creates a new instance of a sticky thing. * @class * @param {jQuery} element - jQuery object to make sticky. * @param {Object} options - options object passed when creating the element programmatically. */ function Sticky(element, options) { _classCallCheck(this, Sticky); this.$element = element; this.options = $.extend({}, Sticky.defaults, this.$element.data(), options); this._init(); Foundation.registerPlugin(this, 'Sticky'); } /** * Initializes the sticky element by adding classes, getting/setting dimensions, breakpoints and attributes * @function * @private */ _createClass(Sticky, [{ key: '_init', value: function _init() { var $parent = this.$element.parent('[data-sticky-container]'), id = this.$element[0].id || Foundation.GetYoDigits(6, 'sticky'), _this = this; if (!$parent.length) { this.wasWrapped = true; } this.$container = $parent.length ? $parent : $(this.options.container).wrapInner(this.$element); this.$container.addClass(this.options.containerClass); this.$element.addClass(this.options.stickyClass).attr({ 'data-resize': id }); this.scrollCount = this.options.checkEvery; this.isStuck = false; $(window).one('load.zf.sticky', function () { if (_this.options.anchor !== '') { _this.$anchor = $('#' + _this.options.anchor); } else { _this._parsePoints(); } _this._setSizes(function () { _this._calc(false); }); _this._events(id.split('-').reverse().join('-')); }); } /** * If using multiple elements as anchors, calculates the top and bottom pixel values the sticky thing should stick and unstick on. * @function * @private */ }, { key: '_parsePoints', value: function _parsePoints() { var top = this.options.topAnchor, btm = this.options.btmAnchor, pts = [top, btm], breaks = {}; if (top && btm) { for (var i = 0, len = pts.length; i < len && pts[i]; i++) { var pt; if (typeof pts[i] === 'number') { pt = pts[i]; } else { var place = pts[i].split(':'), anchor = $('#' + place[0]); pt = anchor.offset().top; if (place[1] && place[1].toLowerCase() === 'bottom') { pt += anchor[0].getBoundingClientRect().height; } } breaks[i] = pt; } } else { breaks = { 0: 1, 1: document.documentElement.scrollHeight }; } this.points = breaks; return; } /** * Adds event handlers for the scrolling element. * @private * @param {String} id - psuedo-random id for unique scroll event listener. */ }, { key: '_events', value: function _events(id) { var _this = this, scrollListener = this.scrollListener = 'scroll.zf.' + id; if (this.isOn) { return; } if (this.canStick) { this.isOn = true; $(window).off(scrollListener).on(scrollListener, function (e) { if (_this.scrollCount === 0) { _this.scrollCount = _this.options.checkEvery; _this._setSizes(function () { _this._calc(false, window.pageYOffset); }); } else { _this.scrollCount--; _this._calc(false, window.pageYOffset); } }); } this.$element.off('resizeme.zf.trigger').on('resizeme.zf.trigger', function (e, el) { _this._setSizes(function () { _this._calc(false); if (_this.canStick) { if (!_this.isOn) { _this._events(id); } } else if (_this.isOn) { _this._pauseListeners(scrollListener); } }); }); } /** * Removes event handlers for scroll and change events on anchor. * @fires Sticky#pause * @param {String} scrollListener - unique, namespaced scroll listener attached to `window` */ }, { key: '_pauseListeners', value: function _pauseListeners(scrollListener) { this.isOn = false; $(window).off(scrollListener); /** * Fires when the plugin is paused due to resize event shrinking the view. * @event Sticky#pause * @private */ this.$element.trigger('pause.zf.sticky'); } /** * Called on every `scroll` event and on `_init` * fires functions based on booleans and cached values * @param {Boolean} checkSizes - true if plugin should recalculate sizes and breakpoints. * @param {Number} scroll - current scroll position passed from scroll event cb function. If not passed, defaults to `window.pageYOffset`. */ }, { key: '_calc', value: function _calc(checkSizes, scroll) { if (checkSizes) { this._setSizes(); } if (!this.canStick) { if (this.isStuck) { this._removeSticky(true); } return false; } if (!scroll) { scroll = window.pageYOffset; } if (scroll >= this.topPoint) { if (scroll <= this.bottomPoint) { if (!this.isStuck) { this._setSticky(); } } else { if (this.isStuck) { this._removeSticky(false); } } } else { if (this.isStuck) { this._removeSticky(true); } } } /** * Causes the $element to become stuck. * Adds `position: fixed;`, and helper classes. * @fires Sticky#stuckto * @function * @private */ }, { key: '_setSticky', value: function _setSticky() { var stickTo = this.options.stickTo, mrgn = stickTo === 'top' ? 'marginTop' : 'marginBottom', notStuckTo = stickTo === 'top' ? 'bottom' : 'top', css = {}; css[mrgn] = this.options[mrgn] + 'em'; css[stickTo] = 0; css[notStuckTo] = 'auto'; css['left'] = this.$container.offset().left + parseInt(window.getComputedStyle(this.$container[0])["padding-left"], 10); this.isStuck = true; this.$element.removeClass('is-anchored is-at-' + notStuckTo).addClass('is-stuck is-at-' + stickTo).css(css) /** * Fires when the $element has become `position: fixed;` * Namespaced to `top` or `bottom`, e.g. `sticky.zf.stuckto:top` * @event Sticky#stuckto */ .trigger('sticky.zf.stuckto:' + stickTo); } /** * Causes the $element to become unstuck. * Removes `position: fixed;`, and helper classes. * Adds other helper classes. * @param {Boolean} isTop - tells the function if the $element should anchor to the top or bottom of its $anchor element. * @fires Sticky#unstuckfrom * @private */ }, { key: '_removeSticky', value: function _removeSticky(isTop) { var stickTo = this.options.stickTo, stickToTop = stickTo === 'top', css = {}, anchorPt = (this.points ? this.points[1] - this.points[0] : this.anchorHeight) - this.elemHeight, mrgn = stickToTop ? 'marginTop' : 'marginBottom', notStuckTo = stickToTop ? 'bottom' : 'top', topOrBottom = isTop ? 'top' : 'bottom'; css[mrgn] = 0; if (isTop && !stickToTop || stickToTop && !isTop) { css[stickTo] = anchorPt; css[notStuckTo] = 0; } else { css[stickTo] = 0; css[notStuckTo] = anchorPt; } css['left'] = ''; this.isStuck = false; this.$element.removeClass('is-stuck is-at-' + stickTo).addClass('is-anchored is-at-' + topOrBottom).css(css) /** * Fires when the $element has become anchored. * Namespaced to `top` or `bottom`, e.g. `sticky.zf.unstuckfrom:bottom` * @event Sticky#unstuckfrom */ .trigger('sticky.zf.unstuckfrom:' + topOrBottom); } /** * Sets the $element and $container sizes for plugin. * Calls `_setBreakPoints`. * @param {Function} cb - optional callback function to fire on completion of `_setBreakPoints`. * @private */ }, { key: '_setSizes', value: function _setSizes(cb) { this.canStick = Foundation.MediaQuery.atLeast(this.options.stickyOn); if (!this.canStick) { cb(); } var _this = this, newElemWidth = this.$container[0].getBoundingClientRect().width, comp = window.getComputedStyle(this.$container[0]), pdng = parseInt(comp['padding-right'], 10); if (this.$anchor && this.$anchor.length) { this.anchorHeight = this.$anchor[0].getBoundingClientRect().height; } else { this._parsePoints(); } this.$element.css({ 'max-width': newElemWidth - pdng + 'px' }); var newContainerHeight = this.$element[0].getBoundingClientRect().height || this.containerHeight; this.containerHeight = newContainerHeight; this.$container.css({ height: newContainerHeight }); this.elemHeight = newContainerHeight; if (this.isStuck) { this.$element.css({ "left": this.$container.offset().left + parseInt(comp['padding-left'], 10) }); } this._setBreakPoints(newContainerHeight, function () { if (cb) { cb(); } }); } /** * Sets the upper and lower breakpoints for the element to become sticky/unsticky. * @param {Number} elemHeight - px value for sticky.$element height, calculated by `_setSizes`. * @param {Function} cb - optional callback function to be called on completion. * @private */ }, { key: '_setBreakPoints', value: function _setBreakPoints(elemHeight, cb) { if (!this.canStick) { if (cb) { cb(); } else { return false; } } var mTop = emCalc(this.options.marginTop), mBtm = emCalc(this.options.marginBottom), topPoint = this.points ? this.points[0] : this.$anchor.offset().top, bottomPoint = this.points ? this.points[1] : topPoint + this.anchorHeight, // topPoint = this.$anchor.offset().top || this.points[0], // bottomPoint = topPoint + this.anchorHeight || this.points[1], winHeight = window.innerHeight; if (this.options.stickTo === 'top') { topPoint -= mTop; bottomPoint -= elemHeight + mTop; } else if (this.options.stickTo === 'bottom') { topPoint -= winHeight - (elemHeight + mBtm); bottomPoint -= winHeight - mBtm; } else { //this would be the stickTo: both option... tricky } this.topPoint = topPoint; this.bottomPoint = bottomPoint; if (cb) { cb(); } } /** * Destroys the current sticky element. * Resets the element to the top position first. * Removes event listeners, JS-added css properties and classes, and unwraps the $element if the JS added the $container. * @function */ }, { key: 'destroy', value: function destroy() { this._removeSticky(true); this.$element.removeClass(this.options.stickyClass + ' is-anchored is-at-top').css({ height: '', top: '', bottom: '', 'max-width': '' }).off('resizeme.zf.trigger'); this.$anchor.off('change.zf.sticky'); $(window).off(this.scrollListener); if (this.wasWrapped) { this.$element.unwrap(); } else { this.$container.removeClass(this.options.containerClass).css({ height: '' }); } Foundation.unregisterPlugin(this); } }]); return Sticky; }(); Sticky.defaults = { /** * Customizable container template. Add your own classes for styling and sizing. * @option * @example '&lt;div data-sticky-container class="small-6 columns"&gt;&lt;/div&gt;' */ container: '<div data-sticky-container></div>', /** * Location in the view the element sticks to. * @option * @example 'top' */ stickTo: 'top', /** * If anchored to a single element, the id of that element. * @option * @example 'exampleId' */ anchor: '', /** * If using more than one element as anchor points, the id of the top anchor. * @option * @example 'exampleId:top' */ topAnchor: '', /** * If using more than one element as anchor points, the id of the bottom anchor. * @option * @example 'exampleId:bottom' */ btmAnchor: '', /** * Margin, in `em`'s to apply to the top of the element when it becomes sticky. * @option * @example 1 */ marginTop: 1, /** * Margin, in `em`'s to apply to the bottom of the element when it becomes sticky. * @option * @example 1 */ marginBottom: 1, /** * Breakpoint string that is the minimum screen size an element should become sticky. * @option * @example 'medium' */ stickyOn: 'medium', /** * Class applied to sticky element, and removed on destruction. Foundation defaults to `sticky`. * @option * @example 'sticky' */ stickyClass: 'sticky', /** * Class applied to sticky container. Foundation defaults to `sticky-container`. * @option * @example 'sticky-container' */ containerClass: 'sticky-container', /** * Number of scroll events between the plugin's recalculating sticky points. Setting it to `0` will cause it to recalc every scroll event, setting it to `-1` will prevent recalc on scroll. * @option * @example 50 */ checkEvery: -1 }; /** * Helper function to calculate em values * @param Number {em} - number of em's to calculate into pixels */ function emCalc(em) { return parseInt(window.getComputedStyle(document.body, null).fontSize, 10) * em; } // Window exports Foundation.plugin(Sticky, 'Sticky'); }(jQuery); 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * Tabs module. * @module foundation.tabs * @requires foundation.util.keyboard * @requires foundation.util.timerAndImageLoader if tabs contain images */ var Tabs = function () { /** * Creates a new instance of tabs. * @class * @fires Tabs#init * @param {jQuery} element - jQuery object to make into tabs. * @param {Object} options - Overrides to the default plugin settings. */ function Tabs(element, options) { _classCallCheck(this, Tabs); this.$element = element; this.options = $.extend({}, Tabs.defaults, this.$element.data(), options); this._init(); Foundation.registerPlugin(this, 'Tabs'); Foundation.Keyboard.register('Tabs', { 'ENTER': 'open', 'SPACE': 'open', 'ARROW_RIGHT': 'next', 'ARROW_UP': 'previous', 'ARROW_DOWN': 'next', 'ARROW_LEFT': 'previous' // 'TAB': 'next', // 'SHIFT_TAB': 'previous' }); } /** * Initializes the tabs by showing and focusing (if autoFocus=true) the preset active tab. * @private */ _createClass(Tabs, [{ key: '_init', value: function _init() { var _this = this; this.$tabTitles = this.$element.find('.' + this.options.linkClass); this.$tabContent = $('[data-tabs-content="' + this.$element[0].id + '"]'); this.$tabTitles.each(function () { var $elem = $(this), $link = $elem.find('a'), isActive = $elem.hasClass('is-active'), hash = $link[0].hash.slice(1), linkId = $link[0].id ? $link[0].id : hash + '-label', $tabContent = $('#' + hash); $elem.attr({ 'role': 'presentation' }); $link.attr({ 'role': 'tab', 'aria-controls': hash, 'aria-selected': isActive, 'id': linkId }); $tabContent.attr({ 'role': 'tabpanel', 'aria-hidden': !isActive, 'aria-labelledby': linkId }); if (isActive && _this.options.autoFocus) { $link.focus(); } }); if (this.options.matchHeight) { var $images = this.$tabContent.find('img'); if ($images.length) { Foundation.onImagesLoaded($images, this._setHeight.bind(this)); } else { this._setHeight(); } } this._events(); } /** * Adds event handlers for items within the tabs. * @private */ }, { key: '_events', value: function _events() { this._addKeyHandler(); this._addClickHandler(); if (this.options.matchHeight) { $(window).on('changed.zf.mediaquery', this._setHeight.bind(this)); } } /** * Adds click handlers for items within the tabs. * @private */ }, { key: '_addClickHandler', value: function _addClickHandler() { var _this = this; this.$element.off('click.zf.tabs').on('click.zf.tabs', '.' + this.options.linkClass, function (e) { e.preventDefault(); e.stopPropagation(); if ($(this).hasClass('is-active')) { return; } _this._handleTabChange($(this)); }); } /** * Adds keyboard event handlers for items within the tabs. * @private */ }, { key: '_addKeyHandler', value: function _addKeyHandler() { var _this = this; var $firstTab = _this.$element.find('li:first-of-type'); var $lastTab = _this.$element.find('li:last-of-type'); this.$tabTitles.off('keydown.zf.tabs').on('keydown.zf.tabs', function (e) { if (e.which === 9) return; e.stopPropagation(); e.preventDefault(); var $element = $(this), $elements = $element.parent('ul').children('li'), $prevElement, $nextElement; $elements.each(function (i) { if ($(this).is($element)) { if (_this.options.wrapOnKeys) { $prevElement = i === 0 ? $elements.last() : $elements.eq(i - 1); $nextElement = i === $elements.length - 1 ? $elements.first() : $elements.eq(i + 1); } else { $prevElement = $elements.eq(Math.max(0, i - 1)); $nextElement = $elements.eq(Math.min(i + 1, $elements.length - 1)); } return; } }); // handle keyboard event with keyboard util Foundation.Keyboard.handleKey(e, 'Tabs', { open: function () { $element.find('[role="tab"]').focus(); _this._handleTabChange($element); }, previous: function () { $prevElement.find('[role="tab"]').focus(); _this._handleTabChange($prevElement); }, next: function () { $nextElement.find('[role="tab"]').focus(); _this._handleTabChange($nextElement); } }); }); } /** * Opens the tab `$targetContent` defined by `$target`. * @param {jQuery} $target - Tab to open. * @fires Tabs#change * @function */ }, { key: '_handleTabChange', value: function _handleTabChange($target) { var $tabLink = $target.find('[role="tab"]'), hash = $tabLink[0].hash, $targetContent = this.$tabContent.find(hash), $oldTab = this.$element.find('.' + this.options.linkClass + '.is-active').removeClass('is-active').find('[role="tab"]').attr({ 'aria-selected': 'false' }); $('#' + $oldTab.attr('aria-controls')).removeClass('is-active').attr({ 'aria-hidden': 'true' }); $target.addClass('is-active'); $tabLink.attr({ 'aria-selected': 'true' }); $targetContent.addClass('is-active').attr({ 'aria-hidden': 'false' }); /** * Fires when the plugin has successfully changed tabs. * @event Tabs#change */ this.$element.trigger('change.zf.tabs', [$target]); } /** * Public method for selecting a content pane to display. * @param {jQuery | String} elem - jQuery object or string of the id of the pane to display. * @function */ }, { key: 'selectTab', value: function selectTab(elem) { var idStr; if (typeof elem === 'object') { idStr = elem[0].id; } else { idStr = elem; } if (idStr.indexOf('#') < 0) { idStr = '#' + idStr; } var $target = this.$tabTitles.find('[href="' + idStr + '"]').parent('.' + this.options.linkClass); this._handleTabChange($target); } }, { key: '_setHeight', /** * Sets the height of each panel to the height of the tallest panel. * If enabled in options, gets called on media query change. * If loading content via external source, can be called directly or with _reflow. * @function * @private */ value: function _setHeight() { var max = 0; this.$tabContent.find('.' + this.options.panelClass).css('height', '').each(function () { var panel = $(this), isActive = panel.hasClass('is-active'); if (!isActive) { panel.css({ 'visibility': 'hidden', 'display': 'block' }); } var temp = this.getBoundingClientRect().height; if (!isActive) { panel.css({ 'visibility': '', 'display': '' }); } max = temp > max ? temp : max; }).css('height', max + 'px'); } /** * Destroys an instance of an tabs. * @fires Tabs#destroyed */ }, { key: 'destroy', value: function destroy() { this.$element.find('.' + this.options.linkClass).off('.zf.tabs').hide().end().find('.' + this.options.panelClass).hide(); if (this.options.matchHeight) { $(window).off('changed.zf.mediaquery'); } Foundation.unregisterPlugin(this); } }]); return Tabs; }(); Tabs.defaults = { /** * Allows the window to scroll to content of active pane on load if set to true. * @option * @example false */ autoFocus: false, /** * Allows keyboard input to 'wrap' around the tab links. * @option * @example true */ wrapOnKeys: true, /** * Allows the tab content panes to match heights if set to true. * @option * @example false */ matchHeight: false, /** * Class applied to `li`'s in tab link list. * @option * @example 'tabs-title' */ linkClass: 'tabs-title', /** * Class applied to the content containers. * @option * @example 'tabs-panel' */ panelClass: 'tabs-panel' }; function checkClass($elem) { return $elem.hasClass('is-active'); } // Window exports Foundation.plugin(Tabs, 'Tabs'); }(jQuery); 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * Toggler module. * @module foundation.toggler * @requires foundation.util.motion * @requires foundation.util.triggers */ var Toggler = function () { /** * Creates a new instance of Toggler. * @class * @fires Toggler#init * @param {Object} element - jQuery object to add the trigger to. * @param {Object} options - Overrides to the default plugin settings. */ function Toggler(element, options) { _classCallCheck(this, Toggler); this.$element = element; this.options = $.extend({}, Toggler.defaults, element.data(), options); this.className = ''; this._init(); this._events(); Foundation.registerPlugin(this, 'Toggler'); } /** * Initializes the Toggler plugin by parsing the toggle class from data-toggler, or animation classes from data-animate. * @function * @private */ _createClass(Toggler, [{ key: '_init', value: function _init() { var input; // Parse animation classes if they were set if (this.options.animate) { input = this.options.animate.split(' '); this.animationIn = input[0]; this.animationOut = input[1] || null; } // Otherwise, parse toggle class else { input = this.$element.data('toggler'); // Allow for a . at the beginning of the string this.className = input[0] === '.' ? input.slice(1) : input; } // Add ARIA attributes to triggers var id = this.$element[0].id; $('[data-open="' + id + '"], [data-close="' + id + '"], [data-toggle="' + id + '"]').attr('aria-controls', id); // If the target is hidden, add aria-hidden this.$element.attr('aria-expanded', this.$element.is(':hidden') ? false : true); } /** * Initializes events for the toggle trigger. * @function * @private */ }, { key: '_events', value: function _events() { this.$element.off('toggle.zf.trigger').on('toggle.zf.trigger', this.toggle.bind(this)); } /** * Toggles the target class on the target element. An event is fired from the original trigger depending on if the resultant state was "on" or "off". * @function * @fires Toggler#on * @fires Toggler#off */ }, { key: 'toggle', value: function toggle() { this[this.options.animate ? '_toggleAnimate' : '_toggleClass'](); } }, { key: '_toggleClass', value: function _toggleClass() { this.$element.toggleClass(this.className); var isOn = this.$element.hasClass(this.className); if (isOn) { /** * Fires if the target element has the class after a toggle. * @event Toggler#on */ this.$element.trigger('on.zf.toggler'); } else { /** * Fires if the target element does not have the class after a toggle. * @event Toggler#off */ this.$element.trigger('off.zf.toggler'); } this._updateARIA(isOn); } }, { key: '_toggleAnimate', value: function _toggleAnimate() { var _this = this; if (this.$element.is(':hidden')) { Foundation.Motion.animateIn(this.$element, this.animationIn, function () { this.trigger('on.zf.toggler'); _this._updateARIA(true); }); } else { Foundation.Motion.animateOut(this.$element, this.animationOut, function () { this.trigger('off.zf.toggler'); _this._updateARIA(false); }); } } }, { key: '_updateARIA', value: function _updateARIA(isOn) { this.$element.attr('aria-expanded', isOn ? true : false); } /** * Destroys the instance of Toggler on the element. * @function */ }, { key: 'destroy', value: function destroy() { this.$element.off('.zf.toggler'); Foundation.unregisterPlugin(this); } }]); return Toggler; }(); Toggler.defaults = { /** * Tells the plugin if the element should animated when toggled. * @option * @example false */ animate: false }; // Window exports Foundation.plugin(Toggler, 'Toggler'); }(jQuery); 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } !function ($) { /** * Tooltip module. * @module foundation.tooltip * @requires foundation.util.box * @requires foundation.util.triggers */ var Tooltip = function () { /** * Creates a new instance of a Tooltip. * @class * @fires Tooltip#init * @param {jQuery} element - jQuery object to attach a tooltip to. * @param {Object} options - object to extend the default configuration. */ function Tooltip(element, options) { _classCallCheck(this, Tooltip); this.$element = element; this.options = $.extend({}, Tooltip.defaults, this.$element.data(), options); this.isActive = false; this.isClick = false; this._init(); Foundation.registerPlugin(this, 'Tooltip'); } /** * Initializes the tooltip by setting the creating the tip element, adding it's text, setting private variables and setting attributes on the anchor. * @private */ _createClass(Tooltip, [{ key: '_init', value: function _init() { var elemId = this.$element.attr('aria-describedby') || Foundation.GetYoDigits(6, 'tooltip'); this.options.positionClass = this._getPositionClass(this.$element); this.options.tipText = this.options.tipText || this.$element.attr('title'); this.template = this.options.template ? $(this.options.template) : this._buildTemplate(elemId); this.template.appendTo(document.body).text(this.options.tipText).hide(); this.$element.attr({ 'title': '', 'aria-describedby': elemId, 'data-yeti-box': elemId, 'data-toggle': elemId, 'data-resize': elemId }).addClass(this.triggerClass); //helper variables to track movement on collisions this.usedPositions = []; this.counter = 4; this.classChanged = false; this._events(); } /** * Grabs the current positioning class, if present, and returns the value or an empty string. * @private */ }, { key: '_getPositionClass', value: function _getPositionClass(element) { if (!element) { return ''; } // var position = element.attr('class').match(/top|left|right/g); var position = element[0].className.match(/\b(top|left|right)\b/g); position = position ? position[0] : ''; return position; } }, { key: '_buildTemplate', /** * builds the tooltip element, adds attributes, and returns the template. * @private */ value: function _buildTemplate(id) { var templateClasses = (this.options.tooltipClass + ' ' + this.options.positionClass + ' ' + this.options.templateClasses).trim(); var $template = $('<div></div>').addClass(templateClasses).attr({ 'role': 'tooltip', 'aria-hidden': true, 'data-is-active': false, 'data-is-focus': false, 'id': id }); return $template; } /** * Function that gets called if a collision event is detected. * @param {String} position - positioning class to try * @private */ }, { key: '_reposition', value: function _reposition(position) { this.usedPositions.push(position ? position : 'bottom'); //default, try switching to opposite side if (!position && this.usedPositions.indexOf('top') < 0) { this.template.addClass('top'); } else if (position === 'top' && this.usedPositions.indexOf('bottom') < 0) { this.template.removeClass(position); } else if (position === 'left' && this.usedPositions.indexOf('right') < 0) { this.template.removeClass(position).addClass('right'); } else if (position === 'right' && this.usedPositions.indexOf('left') < 0) { this.template.removeClass(position).addClass('left'); } //if default change didn't work, try bottom or left first else if (!position && this.usedPositions.indexOf('top') > -1 && this.usedPositions.indexOf('left') < 0) { this.template.addClass('left'); } else if (position === 'top' && this.usedPositions.indexOf('bottom') > -1 && this.usedPositions.indexOf('left') < 0) { this.template.removeClass(position).addClass('left'); } else if (position === 'left' && this.usedPositions.indexOf('right') > -1 && this.usedPositions.indexOf('bottom') < 0) { this.template.removeClass(position); } else if (position === 'right' && this.usedPositions.indexOf('left') > -1 && this.usedPositions.indexOf('bottom') < 0) { this.template.removeClass(position); } //if nothing cleared, set to bottom else { this.template.removeClass(position); } this.classChanged = true; this.counter--; } /** * sets the position class of an element and recursively calls itself until there are no more possible positions to attempt, or the tooltip element is no longer colliding. * if the tooltip is larger than the screen width, default to full width - any user selected margin * @private */ }, { key: '_setPosition', value: function _setPosition() { var position = this._getPositionClass(this.template), $tipDims = Foundation.Box.GetDimensions(this.template), $anchorDims = Foundation.Box.GetDimensions(this.$element), direction = position === 'left' ? 'left' : position === 'right' ? 'left' : 'top', param = direction === 'top' ? 'height' : 'width', offset = param === 'height' ? this.options.vOffset : this.options.hOffset, _this = this; if ($tipDims.width >= $tipDims.windowDims.width || !this.counter && !Foundation.Box.ImNotTouchingYou(this.template)) { this.template.offset(Foundation.Box.GetOffsets(this.template, this.$element, 'center bottom', this.options.vOffset, this.options.hOffset, true)).css({ // this.$element.offset(Foundation.GetOffsets(this.template, this.$element, 'center bottom', this.options.vOffset, this.options.hOffset, true)).css({ 'width': $anchorDims.windowDims.width - this.options.hOffset * 2, 'height': 'auto' }); return false; } this.template.offset(Foundation.Box.GetOffsets(this.template, this.$element, 'center ' + (position || 'bottom'), this.options.vOffset, this.options.hOffset)); while (!Foundation.Box.ImNotTouchingYou(this.template) && this.counter) { this._reposition(position); this._setPosition(); } } /** * reveals the tooltip, and fires an event to close any other open tooltips on the page * @fires Tooltip#closeme * @fires Tooltip#show * @function */ }, { key: 'show', value: function show() { if (this.options.showOn !== 'all' && !Foundation.MediaQuery.atLeast(this.options.showOn)) { // console.error('The screen is too small to display this tooltip'); return false; } var _this = this; this.template.css('visibility', 'hidden').show(); this._setPosition(); /** * Fires to close all other open tooltips on the page * @event Closeme#tooltip */ this.$element.trigger('closeme.zf.tooltip', this.template.attr('id')); this.template.attr({ 'data-is-active': true, 'aria-hidden': false }); _this.isActive = true; // console.log(this.template); this.template.stop().hide().css('visibility', '').fadeIn(this.options.fadeInDuration, function () { //maybe do stuff? }); /** * Fires when the tooltip is shown * @event Tooltip#show */ this.$element.trigger('show.zf.tooltip'); } /** * Hides the current tooltip, and resets the positioning class if it was changed due to collision * @fires Tooltip#hide * @function */ }, { key: 'hide', value: function hide() { // console.log('hiding', this.$element.data('yeti-box')); var _this = this; this.template.stop().attr({ 'aria-hidden': true, 'data-is-active': false }).fadeOut(this.options.fadeOutDuration, function () { _this.isActive = false; _this.isClick = false; if (_this.classChanged) { _this.template.removeClass(_this._getPositionClass(_this.template)).addClass(_this.options.positionClass); _this.usedPositions = []; _this.counter = 4; _this.classChanged = false; } }); /** * fires when the tooltip is hidden * @event Tooltip#hide */ this.$element.trigger('hide.zf.tooltip'); } /** * adds event listeners for the tooltip and its anchor * TODO combine some of the listeners like focus and mouseenter, etc. * @private */ }, { key: '_events', value: function _events() { var _this = this; var $template = this.template; var isFocus = false; if (!this.options.disableHover) { this.$element.on('mouseenter.zf.tooltip', function (e) { if (!_this.isActive) { _this.timeout = setTimeout(function () { _this.show(); }, _this.options.hoverDelay); } }).on('mouseleave.zf.tooltip', function (e) { clearTimeout(_this.timeout); if (!isFocus || !_this.isClick && _this.options.clickOpen) { _this.hide(); } }); } if (this.options.clickOpen) { this.$element.on('mousedown.zf.tooltip', function (e) { e.stopImmediatePropagation(); if (_this.isClick) { _this.hide(); // _this.isClick = false; } else { _this.isClick = true; if ((_this.options.disableHover || !_this.$element.attr('tabindex')) && !_this.isActive) { _this.show(); } } }); } if (!this.options.disableForTouch) { this.$element.on('tap.zf.tooltip touchend.zf.tooltip', function (e) { _this.isActive ? _this.hide() : _this.show(); }); } this.$element.on({ // 'toggle.zf.trigger': this.toggle.bind(this), // 'close.zf.trigger': this.hide.bind(this) 'close.zf.trigger': this.hide.bind(this) }); this.$element.on('focus.zf.tooltip', function (e) { isFocus = true; // console.log(_this.isClick); if (_this.isClick) { return false; } else { // $(window) _this.show(); } }).on('focusout.zf.tooltip', function (e) { isFocus = false; _this.isClick = false; _this.hide(); }).on('resizeme.zf.trigger', function () { if (_this.isActive) { _this._setPosition(); } }); } /** * adds a toggle method, in addition to the static show() & hide() functions * @function */ }, { key: 'toggle', value: function toggle() { if (this.isActive) { this.hide(); } else { this.show(); } } /** * Destroys an instance of tooltip, removes template element from the view. * @function */ }, { key: 'destroy', value: function destroy() { this.$element.attr('title', this.template.text()).off('.zf.trigger .zf.tootip') // .removeClass('has-tip') .removeAttr('aria-describedby').removeAttr('data-yeti-box').removeAttr('data-toggle').removeAttr('data-resize'); this.template.remove(); Foundation.unregisterPlugin(this); } }]); return Tooltip; }(); Tooltip.defaults = { disableForTouch: false, /** * Time, in ms, before a tooltip should open on hover. * @option * @example 200 */ hoverDelay: 200, /** * Time, in ms, a tooltip should take to fade into view. * @option * @example 150 */ fadeInDuration: 150, /** * Time, in ms, a tooltip should take to fade out of view. * @option * @example 150 */ fadeOutDuration: 150, /** * Disables hover events from opening the tooltip if set to true * @option * @example false */ disableHover: false, /** * Optional addtional classes to apply to the tooltip template on init. * @option * @example 'my-cool-tip-class' */ templateClasses: '', /** * Non-optional class added to tooltip templates. Foundation default is 'tooltip'. * @option * @example 'tooltip' */ tooltipClass: 'tooltip', /** * Class applied to the tooltip anchor element. * @option * @example 'has-tip' */ triggerClass: 'has-tip', /** * Minimum breakpoint size at which to open the tooltip. * @option * @example 'small' */ showOn: 'small', /** * Custom template to be used to generate markup for tooltip. * @option * @example '&lt;div class="tooltip"&gt;&lt;/div&gt;' */ template: '', /** * Text displayed in the tooltip template on open. * @option * @example 'Some cool space fact here.' */ tipText: '', touchCloseText: 'Tap to close.', /** * Allows the tooltip to remain open if triggered with a click or touch event. * @option * @example true */ clickOpen: true, /** * Additional positioning classes, set by the JS * @option * @example 'top' */ positionClass: '', /** * Distance, in pixels, the template should push away from the anchor on the Y axis. * @option * @example 10 */ vOffset: 10, /** * Distance, in pixels, the template should push away from the anchor on the X axis, if aligned to a side. * @option * @example 12 */ hOffset: 12 }; /** * TODO utilize resize event trigger */ // Window exports Foundation.plugin(Tooltip, 'Tooltip'); }(jQuery);
import graphql from "refractor/lang/graphql.js";; export default graphql;
/*! * Bootstrap util.js v4.5.0 (https://getbootstrap.com/) * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ (function(b,c){"object"===typeof exports&&"undefined"!==typeof module?module.exports=c(require("jquery")):"function"===typeof define&&define.amd?define(["jquery"],c):(b=b||self,b.Util=c(b.jQuery))})(this,function(b){b=b&&Object.prototype.hasOwnProperty.call(b,"default")?b["default"]:b;var c={TRANSITION_END:"bsTransitionEnd",getUID:function(a){do a+=~~(1E6*Math.random());while(document.getElementById(a));return a},getSelectorFromElement:function(a){var b=a.getAttribute("data-target");b&&"#"!==b||(b= (a=a.getAttribute("href"))&&"#"!==a?a.trim():"");try{return document.querySelector(b)?b:null}catch(e){return null}},getTransitionDurationFromElement:function(a){if(!a)return 0;var c=b(a).css("transition-duration");a=b(a).css("transition-delay");var e=parseFloat(c),f=parseFloat(a);if(!e&&!f)return 0;c=c.split(",")[0];a=a.split(",")[0];return 1E3*(parseFloat(c)+parseFloat(a))},reflow:function(a){return a.offsetHeight},triggerTransitionEnd:function(a){b(a).trigger("transitionend")},supportsTransitionEnd:function(){return!0}, isElement:function(a){return(a[0]||a).nodeType},typeCheckConfig:function(a,b,e){for(var f in e)if(Object.prototype.hasOwnProperty.call(e,f)){var g=e[f],d=b[f];d=d&&c.isElement(d)?"element":null===d||"undefined"===typeof d?""+d:{}.toString.call(d).match(/\s([a-z]+)/i)[1].toLowerCase();if(!(new RegExp(g)).test(d))throw Error(a.toUpperCase()+': Option "'+(f+'" provided type "'+d+'" but expected type "')+(g+'".'));}},findShadowRoot:function(a){return document.documentElement.attachShadow?"function"=== typeof a.getRootNode?(a=a.getRootNode(),a instanceof ShadowRoot?a:null):a instanceof ShadowRoot?a:a.parentNode?c.findShadowRoot(a.parentNode):null:null},jQueryDetection:function(){if("undefined"===typeof b)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var a=b.fn.jquery.split(" ")[0].split(".");if(2>a[0]&&9>a[1]||1===a[0]&&9===a[1]&&1>a[2]||4<=a[0])throw Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0"); }};c.jQueryDetection();b.fn.emulateTransitionEnd=function(a){var h=this,e=!1;b(this).one(c.TRANSITION_END,function(){e=!0});setTimeout(function(){e||c.triggerTransitionEnd(h)},a);return this};b.event.special[c.TRANSITION_END]=function(){return{bindType:"transitionend",delegateType:"transitionend",handle:function(a){if(b(a.target).is(this))return a.handleObj.handler.apply(this,arguments)}}}();return c});
// import React, { useState, useEffect } from 'react'; // import { useQuery, useMutation } from "@apollo/client"; // import { useSelector } from 'react-redux'; // import { EVENTS_BY_DATE, GET_STUDENTS } from '../../utils/queries'; // import { ADD_EVENT_AND_EMAIL } from '../../utils/mutations'; // import { Card, Row, Col } from "react-bootstrap"; // import { Link } from 'react-router-dom'; // import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' // import { faEnvelopeSquare } from '@fortawesome/free-solid-svg-icons' // import { DateUtils } from 'react-day-picker'; // import DayPickerInput from "react-day-picker/DayPickerInput"; // import CalEl from '../Schedule/Calendar'; // import "react-day-picker/lib/style.css"; // import dateFnsFormat from 'date-fns/format'; // import dateFnsParse from 'date-fns/parse'; // import { format, parse } from 'date-fns' // import SchedulelNav from './ScheduleNav'; // const mongoose = require('mongoose'); // function parseDate(str, format) { // const parsed = dateFnsParse(str, format, new Date()); // if (DateUtils.isDate(parsed)) { // return parsed; // } // return undefined; // } // function formatDate(date, format) { // return dateFnsFormat(date, format); // } // export default function ScheduleOverview({ currentPage, handlePageChange }) { // const icon = <FontAwesomeIcon icon={faEnvelopeSquare} /> // const students = useSelector((state) => Object.values(state.user)); // // const { data } = useQuery(GET_STUDENTS); // const [addEvent] = useMutation(ADD_EVENT_AND_EMAIL, { // refetchQueries: [ // EVENTS_BY_DATE, // DocumentNode object parsed with gql // 'eventsByDate' // Query name // ], // }); // // const students = data?.users || []; // const [studentId, setStudentId] = useState(''); // const [studentName, setStudentName] = useState(''); // const [studentEmail, setStudentEmail] = useState(''); // const [time, setTime] = useState({ value: '' }); // const [schedule, setSchedule] = useState(''); // const [selectedDay, setSelectedDay] = useState(undefined) // const [description, setDescription] = useState(''); // const FORMAT = 'MM/dd/yyyy'; // const dayChange = (day, modifiers, dayPickerInput) => { // format(day, 'MM.dd.yyyy'); // setSelectedDay(day) // const input = dayPickerInput.getInput(); // setSchedule(input.value); // } // const handleChange = async (e) => { // setStudentId(e.target.value) // }; // const getNames = (e) => { // for (let i = 0; i < students.length; i++) { // if (students[i]._id === studentId) { // setStudentName(students[i].username); // setStudentEmail(students[i].email); // } // } // } // useEffect(() => { // getNames(); // }); // const handleForm = async (e) => { // e.preventDefault(); // // check for for errors` // // make sure values are filled in and valid // let email = studentEmail; // let timeStamp = parse(schedule, 'MM/dd/yyyy', new Date()); // let studentId = mongoose.Types.ObjectId(studentId); // const eventInput = { // studentId: studentId, // studentName: studentName, // date: timeStamp, // dayRef: schedule, // time: time, // description: description, // }; // const sendEmailInput = { // email: 'nelsontjohns@gmail.com', // senderName: 'Nelson', // toEmail: email, // subject: `New lesson on ${schedule}`, // text: `This is an autmated reminder that you have a new lesson scheduled with Nelson Johns on ${schedule} at ${time}` // } // // if the input is valid, send it to server // try { // await addEvent({ variables: { AddEventInput: eventInput, SendEmailInput: sendEmailInput } }); // alert('lesson added'); // } catch (err) { // console.log(err); // } // setStudentId(''); // setStudentName(''); // setStudentEmail(''); // setDescription(''); // }; // return ( // // <Card className="p-4 m-4"> // // <Card.Header> // // <Card.Title tag="h5">Schedule Overview</Card.Title> // // </Card.Header> // // <Card.Body className="d-flex justify-content-center"> // // <div > // // <CalEl /> // // </div> // // </Card.Body> // // <Card.Footer> // // <hr /> // // <div className="stats"> // // </div> // // </Card.Footer> // // </Card> // <Card className="shadow-lg"> // <Card.Header> // <Card.Title className="text-center">Schedule Overview</Card.Title> // {/* <p className="text-center">24 Hours performance</p> */} // <SchedulelNav /> // </Card.Header> // <Card.Body className="d-flex justify-content-center"> // <div> // <CalEl /> // </div> // </Card.Body> // <Card.Footer> // <hr /> // <div className="stats"> // <i className="fa fa-history" /> Updated 3 minutes ago // </div> // </Card.Footer> // </Card> // ) // }
var electron = require("electron"); var {ipcRenderer} = electron; window.ipcRenderer = ipcRenderer
import { listenAndServe } from 'https://deno.land/std/http/server.ts'; const handler = (request) => { return generateResponse(request.url); }; const htmlHome = await Deno.readTextFile( `${Deno.cwd()}/test/integration/headless/index.html`, ); const testPaths = [ 'simpleLinks', ]; const htmlFor = (filename) => { if (!testPaths.includes(filename)) return notFound(); const body = htmlHome.replace('{{testSource}}', `/${filename}.js`).toString(); return new Response(body, { status: 200, headers: { 'Content-Type': 'text/html' }, }); }; const jsFor = (filename) => { if (!testPaths.includes(filename)) return notFound(); const body = Deno.readTextFileSync( `${Deno.cwd()}/test/integration/headless/dist/${filename}.js`, ); return new Response(body.toString(), { status: 200, headers: { 'Content-Type': 'text/javascript' }, }); }; const notFound = () => { return new Response('Not found', { status: 404 }); }; const getHandler = (extension) => { return { html: htmlFor, js: jsFor, }[extension] || notFound; }; const generateResponse = (url) => { console.log(`Request: ${url}`); const parts = url.split('/'); const file = parts[parts.length - 1].split('.'); let [filename, extension] = file; extension = extension || 'html'; const handler = getHandler(extension); const response = handler(filename); return response; }; await listenAndServe(':5000', handler);
import Core from '_core.js'; import Template from './profile-image.html'; import './profile-image.scss'; /** * Creates a ProfileImage * * @class */ class ProfileImage extends Core { constructor(options) { super(options); this._render(Template, options); } onClick(fn) { return this._attachListener('click', this.el, this.el, fn); } setImage(imageUrl) { this.el .querySelector('.hig__global-nav__top-nav__profile__profile-image__image') .setAttribute('src', imageUrl); } } ProfileImage._interface = { methods: { onClick: {}, setImage: {} }, defaults: {} }; ProfileImage._defaults = {}; export default ProfileImage;
// for applying the orm to the needs of the reading list const orm = require("../config/orm.js"); const books = { getAll: function(cb) { // gets data for all the books orm.selectAll("books", cb); }, add: function(title, cb) { // adds a new book orm.insertOne("books", {title: title}, cb); }, markRead: function(id, cb) { // updates was_read to true for a book orm.updateOne("books", {id: id}, {was_read: true}, cb); }, delete: function(id, cb) { // deletes a book orm.deleteOne("books", {id: id}, cb); }, }; module.exports = books;
const Kraken = require('kraken-api-es5'); const moment = require('moment'); const _ = require('lodash'); const util = require('../core/util'); const Errors = require('../core/error'); const log = require('../core/log'); const marketData = require('./kraken-markets.json'); var Trader = function(config) { _.bindAll(this); if(_.isObject(config)) { this.key = config.key; this.secret = config.secret; this.currency = config.currency.toUpperCase() this.asset = config.asset.toUpperCase(); } this.name = 'kraken'; this.since = null; this.market = _.find(Trader.getCapabilities().markets, (market) => { return market.pair[0] === this.currency && market.pair[1] === this.asset }); this.pair = this.market.book; this.kraken = new Kraken( this.key, this.secret, {timeout: +moment.duration(60, 'seconds')} ); } var retryCritical = { retries: 10, factor: 1.2, minTimeout: 1 * 1000, maxTimeout: 30 * 1000 }; var retryForever = { forever: true, factor: 1.2, minTimeout: 10 * 1000, maxTimeout: 30 * 1000 }; var recoverableErrors = new RegExp(/(SOCKETTIMEDOUT|TIMEDOUT|CONNRESET|CONNREFUSED|NOTFOUND|API:Rate limit exceeded|API:Invalid nonce|Service:Unavailable|Request timed out|Response code 5)/) Trader.prototype.processError = function(funcName, error) { if (!error) return undefined; if (!error.message.match(recoverableErrors)) { log.error(`[kraken.js] (${funcName}) returned an irrecoverable error: ${error.message}`); return new Errors.AbortError('[kraken.js] ' + error.message); } log.debug(`[kraken.js] (${funcName}) returned an error, retrying: ${error.message}`); return new Errors.RetryError('[kraken.js] ' + error.message); }; Trader.prototype.handleResponse = function(funcName, callback) { return (error, body) => { if(!error) { if(_.isEmpty(body) || !body.result) error = new Error('NO DATA WAS RETURNED'); else if(!_.isEmpty(body.error)) error = new Error(body.error); } return callback(this.processError(funcName, error), body); } }; Trader.prototype.getTrades = function(since, callback, descending) { var startTs = since ? moment(since).valueOf() : null; var processResults = function(err, trades) { if (err) return callback(err); var parsedTrades = []; _.each(trades.result[this.pair], function(trade) { // Even when you supply 'since' you can still get more trades than you asked for, it needs to be filtered if (_.isNull(startTs) || startTs < moment.unix(trade[2]).valueOf()) { parsedTrades.push({ tid: moment.unix(trade[2]).valueOf() * 1000000, date: parseInt(Math.round(trade[2]), 10), price: parseFloat(trade[0]), amount: parseFloat(trade[1]) }); } }, this); if(descending) callback(undefined, parsedTrades.reverse()); else callback(undefined, parsedTrades); }; let reqData = { pair: this.pair }; if(since) { // Kraken wants a tid, which is found to be timestamp_ms * 1000000 in practice. No clear documentation on this though reqData.since = startTs * 1000000; } let handler = (cb) => this.kraken.api('Trades', reqData, this.handleResponse('getTrades', cb)); util.retryCustom(retryForever, _.bind(handler, this), _.bind(processResults, this)); }; Trader.prototype.getPortfolio = function(callback) { var setBalance = function(err, data) { if(err) return callback(err); log.debug('[kraken.js] entering "setBalance" callback after kraken-api call, data:' , data); var assetAmount = parseFloat( data.result[this.market.prefixed[1]] ); var currencyAmount = parseFloat( data.result[this.market.prefixed[0]] ); if(!_.isNumber(assetAmount) || _.isNaN(assetAmount)) { log.error(`Kraken did not return portfolio for ${this.asset}, assuming 0.`); assetAmount = 0; } if(!_.isNumber(currencyAmount) || _.isNaN(currencyAmount)) { log.error(`Kraken did not return portfolio for ${this.currency}, assuming 0.`); currencyAmount = 0; } var portfolio = [ { name: this.asset, amount: assetAmount }, { name: this.currency, amount: currencyAmount } ]; return callback(undefined, portfolio); }; let handler = (cb) => this.kraken.api('Balance', {}, this.handleResponse('getPortfolio', cb)); util.retryCustom(retryForever, _.bind(handler, this), _.bind(setBalance, this)); }; // This assumes that only limit orders are being placed with standard assets pairs // It does not take into account volume discounts. // Base maker fee is 0.16%, taker fee is 0.26%. Trader.prototype.getFee = function(callback) { const makerFee = 0.16; callback(undefined, makerFee / 100); }; Trader.prototype.getTicker = function(callback) { var setTicker = function(err, data) { if (err) return callback(err); var result = data.result[this.pair]; var ticker = { ask: result.a[0], bid: result.b[0] }; callback(undefined, ticker); }; let reqData = {pair: this.pair} let handler = (cb) => this.kraken.api('Ticker', reqData, this.handleResponse('getTicker', cb)); util.retryCustom(retryForever, _.bind(handler, this), _.bind(setTicker, this)); }; Trader.prototype.roundAmount = function(amount) { // Prevent "You incorrectly entered one of fields." // because of more than 8 decimals. // Specific precision by pair https://blog.kraken.com/post/1278/announcement-reducing-price-precision-round-2 var precision = 100000000; var parent = this; var market = Trader.getCapabilities().markets.find(function(market){ return market.pair[0] === parent.currency && market.pair[1] === parent.asset }); if(Number.isInteger(market.precision)) precision = Math.pow(10, market.precision); amount *= precision; amount = Math.floor(amount); amount /= precision; return amount; }; Trader.prototype.addOrder = function(tradeType, amount, price, callback) { amount = this.roundAmount(amount); price = this.roundAmount(price); // but the link talks about rounding price... And I had the bug log.debug('[kraken.js] (addOrder)', tradeType.toUpperCase(), amount, this.asset, '@', price, this.currency); var setOrder = function(err, data) { if(err) return callback(err); var txid = data.result.txid[0]; log.debug('[kraken.js] (addOrder) added order with txid:', txid); callback(undefined, txid); }; let reqData = { pair: this.pair, type: tradeType.toLowerCase(), ordertype: 'limit', price: price, volume: amount }; let handler = (cb) => this.kraken.api('AddOrder', reqData, this.handleResponse('addOrder', cb)); util.retryCustom(retryCritical, _.bind(handler, this), _.bind(setOrder, this)); }; Trader.prototype.getOrder = function(order, callback) { var getOrder = function(err, data) { if(err) return callback(err); var price = parseFloat( data.result[ order ].price ); var amount = parseFloat( data.result[ order ].vol_exec ); var date = moment.unix( data.result[ order ].closetm ); callback(undefined, {price, amount, date}); }; let reqData = {txid: order}; let handler = (cb) => this.kraken.api('QueryOrders', reqData, this.handleResponse('getOrder', cb)); util.retryCustom(retryCritical, _.bind(handler, this), _.bind(getOrder, this)); } Trader.prototype.buy = function(amount, price, callback) { this.addOrder('buy', amount, price, callback); }; Trader.prototype.sell = function(amount, price, callback) { this.addOrder('sell', amount, price, callback); }; Trader.prototype.checkOrder = function(order, callback) { var check = function(err, data) { if(err) return callback(err); var result = data.result[order]; var stillThere = result.status === 'open' || result.status === 'pending'; callback(undefined, !stillThere); }; let reqData = {txid: order}; let handler = (cb) => this.kraken.api('QueryOrders', reqData, this.handleResponse('checkOrder', cb)); util.retryCustom(retryCritical, _.bind(handler, this), _.bind(check, this)); }; Trader.prototype.cancelOrder = function(order, callback) { let reqData = {txid: order}; let handler = (cb) => this.kraken.api('CancelOrder', reqData, this.handleResponse('cancelOrder', cb)); util.retryCustom(retryForever, _.bind(handler, this), callback); }; Trader.getCapabilities = function () { return { name: 'Kraken', slug: 'kraken', currencies: marketData.currencies, assets: marketData.assets, markets: marketData.markets, requires: ['key', 'secret'], providesHistory: 'date', providesFullHistory: true, tid: 'date', tradable: true }; } module.exports = Trader;
import { r as registerInstance, c as createEvent, d as getIonMode, h, H as Host, e as getElement } from './core-13ed1ad7.js'; import './config-bb99b659.js'; import { c as createColorClasses, h as hostContext } from './theme-353a032e.js'; import { f as findItemLabel } from './helpers-c90aaa66.js'; var Radio = /** @class */ (function () { function class_1(hostRef) { var _this = this; registerInstance(this, hostRef); this.inputId = "ion-rb-" + radioButtonIds++; /** * The name of the control, which is submitted with the form data. */ this.name = this.inputId; /** * If `true`, the user cannot interact with the radio. */ this.disabled = false; /** * If `true`, the radio is selected. */ this.checked = false; this.onFocus = function () { _this.ionFocus.emit(); }; this.onBlur = function () { _this.ionBlur.emit(); }; this.onClick = function () { if (_this.checked) { _this.ionDeselect.emit(); } else { _this.checked = true; } }; this.ionRadioDidLoad = createEvent(this, "ionRadioDidLoad", 7); this.ionRadioDidUnload = createEvent(this, "ionRadioDidUnload", 7); this.ionStyle = createEvent(this, "ionStyle", 7); this.ionSelect = createEvent(this, "ionSelect", 7); this.ionDeselect = createEvent(this, "ionDeselect", 7); this.ionFocus = createEvent(this, "ionFocus", 7); this.ionBlur = createEvent(this, "ionBlur", 7); } class_1.prototype.colorChanged = function () { this.emitStyle(); }; class_1.prototype.checkedChanged = function (isChecked) { if (isChecked) { this.ionSelect.emit({ checked: true, value: this.value }); } this.emitStyle(); }; class_1.prototype.disabledChanged = function () { this.emitStyle(); }; class_1.prototype.componentWillLoad = function () { if (this.value === undefined) { this.value = this.inputId; } this.emitStyle(); }; class_1.prototype.componentDidLoad = function () { this.ionRadioDidLoad.emit(); }; class_1.prototype.componentDidUnload = function () { this.ionRadioDidUnload.emit(); }; class_1.prototype.emitStyle = function () { this.ionStyle.emit({ 'radio-checked': this.checked, 'interactive-disabled': this.disabled, }); }; class_1.prototype.render = function () { var _a; var _b = this, inputId = _b.inputId, disabled = _b.disabled, checked = _b.checked, color = _b.color, el = _b.el; var mode = getIonMode(this); var labelId = inputId + '-lbl'; var label = findItemLabel(el); if (label) { label.id = labelId; } return (h(Host, { onClick: this.onClick, role: "radio", "aria-disabled": disabled ? 'true' : null, "aria-checked": "" + checked, "aria-labelledby": labelId, class: Object.assign({}, createColorClasses(color), (_a = {}, _a[mode] = true, _a['in-item'] = hostContext('ion-item', el), _a['interactive'] = true, _a['radio-checked'] = checked, _a['radio-disabled'] = disabled, _a)) }, h("div", { class: "radio-icon" }, h("div", { class: "radio-inner" })), h("button", { type: "button", onFocus: this.onFocus, onBlur: this.onBlur, disabled: disabled }))); }; Object.defineProperty(class_1.prototype, "el", { get: function () { return getElement(this); }, enumerable: true, configurable: true }); Object.defineProperty(class_1, "watchers", { get: function () { return { "color": ["colorChanged"], "checked": ["checkedChanged"], "disabled": ["disabledChanged"] }; }, enumerable: true, configurable: true }); Object.defineProperty(class_1, "style", { get: function () { return ":host{display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;contain:layout size style}.radio-icon,button{width:100%;height:100%}button{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none}:host-context([dir=rtl]) button,[dir=rtl] button{left:unset;right:unset;right:0}button::-moz-focus-inner{border:0}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}:host{--color-checked:var(--ion-color-primary,#3880ff);width:15px;height:24px}:host(.ion-color.radio-checked) .radio-inner{border-color:var(--ion-color-base)}.item-radio.item-ios ion-label{margin-left:0}\@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){.item-radio.item-ios ion-label{margin-left:unset;-webkit-margin-start:0;margin-inline-start:0}}.radio-inner{width:33%;height:50%}:host(.radio-checked) .radio-inner{-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--color-checked)}:host(.radio-disabled){opacity:.3}:host(.ion-focused) .radio-icon:after{border-radius:50%;left:-9px;top:-8px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint,#4c8dff);content:\"\";opacity:.2}:host-context([dir=rtl]).ion-focused .radio-icon:after,:host-context([dir=rtl]):host(.ion-focused) .radio-icon:after{left:unset;right:unset;right:-9px}:host(.in-item){margin-left:8px;margin-right:11px;margin-top:8px;margin-bottom:8px;display:block;position:static}\@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){:host(.in-item){margin-left:unset;margin-right:unset;-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:11px;margin-inline-end:11px}}:host(.in-item[slot=start]){margin-left:3px;margin-right:21px;margin-top:8px;margin-bottom:8px}\@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:21px;margin-inline-end:21px}}"; }, enumerable: true, configurable: true }); return class_1; }()); var radioButtonIds = 0; var RadioGroup = /** @class */ (function () { function class_2(hostRef) { registerInstance(this, hostRef); this.inputId = "ion-rg-" + radioGroupIds++; this.labelId = this.inputId + "-lbl"; this.radios = []; /** * If `true`, the radios can be deselected. */ this.allowEmptySelection = false; /** * The name of the control, which is submitted with the form data. */ this.name = this.inputId; this.ionChange = createEvent(this, "ionChange", 7); } class_2.prototype.valueChanged = function (value) { this.updateRadios(); this.ionChange.emit({ value: value }); }; class_2.prototype.onRadioDidLoad = function (ev) { var radio = ev.target; radio.name = this.name; // add radio to internal list this.radios.push(radio); // this radio-group does not have a value // but this radio is checked, so let's set the // radio-group's value from the checked radio if (this.value == null && radio.checked) { this.value = radio.value; } else { this.updateRadios(); } }; class_2.prototype.onRadioDidUnload = function (ev) { var index = this.radios.indexOf(ev.target); if (index > -1) { this.radios.splice(index, 1); } }; class_2.prototype.onRadioSelect = function (ev) { var selectedRadio = ev.target; if (selectedRadio) { this.value = selectedRadio.value; } }; class_2.prototype.onRadioDeselect = function (ev) { if (this.allowEmptySelection) { var selectedRadio = ev.target; if (selectedRadio) { selectedRadio.checked = false; this.value = undefined; } } }; class_2.prototype.componentDidLoad = function () { // Get the list header if it exists and set the id // this is used to set aria-labelledby var header = this.el.querySelector('ion-list-header'); if (!header) { header = this.el.querySelector('ion-item-divider'); } if (header) { var label = header.querySelector('ion-label'); if (label) { this.labelId = label.id = this.name + '-lbl'; } } this.updateRadios(); }; class_2.prototype.updateRadios = function () { var value = this.value; var hasChecked = false; for (var _i = 0, _a = this.radios; _i < _a.length; _i++) { var radio = _a[_i]; if (!hasChecked && radio.value === value) { // correct value for this radio // but this radio isn't checked yet // and we haven't found a checked yet hasChecked = true; radio.checked = true; } else { // this radio doesn't have the correct value // or the radio group has been already checked radio.checked = false; } } }; class_2.prototype.render = function () { return (h(Host, { role: "radiogroup", "aria-labelledby": this.labelId, class: getIonMode(this) })); }; Object.defineProperty(class_2.prototype, "el", { get: function () { return getElement(this); }, enumerable: true, configurable: true }); Object.defineProperty(class_2, "watchers", { get: function () { return { "value": ["valueChanged"] }; }, enumerable: true, configurable: true }); return class_2; }()); var radioGroupIds = 0; export { Radio as ion_radio, RadioGroup as ion_radio_group };
const Mock = require('mockjs') const { param2Obj } = require('./utils') const user = require('./user') const account = require('./account') const record = require('./record') const analysis = require('./analysis') const mocks = [ ...user, ...account, ...record, ...analysis ] // for front mock // please use it cautiously, it will redefine XMLHttpRequest, // which will cause many of your third-party libraries to be invalidated(like progress event). function mockXHR() { // mock patch // https://github.com/nuysoft/Mock/issues/300 Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send Mock.XHR.prototype.send = function() { if (this.custom.xhr) { this.custom.xhr.withCredentials = this.withCredentials || false if (this.responseType) { this.custom.xhr.responseType = this.responseType } } this.proxy_send(...arguments) } function XHR2ExpressReqWrap(respond) { return function(options) { let result = null if (respond instanceof Function) { const { body, type, url } = options // https://expressjs.com/en/4x/api.html#req result = respond({ method: type, body: JSON.parse(body), query: param2Obj(url) }) } else { result = respond } return Mock.mock(result) } } for (const i of mocks) { Mock.mock(new RegExp(i.url), i.type || 'get', XHR2ExpressReqWrap(i.response)) } } module.exports = { mocks, mockXHR }
var convert = require('./convert'), func = convert('rangeStep', require('../range')); func.placeholder = require('./placeholder'); module.exports = func;
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), require('karma-coverage'), require('@angular-devkit/build-angular/plugins/karma') ], client: { jasmine: { // you can add configuration options for Jasmine here // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html // for example, you can disable the random execution with `random: false` // or set a specific seed with `seed: 4321` }, clearContext: false // leave Jasmine Spec Runner output visible in browser }, jasmineHtmlReporter: { suppressAll: true // removes the duplicated traces }, coverageReporter: { dir: require('path').join(__dirname, './coverage/clairveillance-frontend'), subdir: '.', reporters: [ { type: 'html' }, { type: 'text-summary' } ] }, reporters: ['progress', 'kjhtml'], port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: true, browsers: ['Chrome'], singleRun: false, restartOnFileChange: true }); };
import React, { useEffect } from 'react'; import { AutoComplete, Input } from 'antd'; import { LeftOutlined, SearchOutlined } from '@ant-design/icons'; import { useDispatch, useSelector } from 'react-redux'; import { searchBarActs, cardContainerActs } from '../../../state/actions'; import { useHistory, useLocation } from 'react-router-dom'; import '../../../styles/style.less'; function SearchBar() { const history = useHistory(); const currentLocation = useLocation().pathname; const dispatch = useDispatch(); const { fetchSpecificCityData } = cardContainerActs; const { fetchCities, filterCities } = searchBarActs; const { filter, cityData, loading, error } = useSelector( state => state.searchBar ); const theme = useSelector(state => state.theme); useEffect(() => { dispatch(fetchCities()); }, [dispatch]); const onChange = value => dispatch(filterCities(value)); // you can pass the object id to global state from here const onSelect = (value, city) => { if (currentLocation != '/compare') history.push('/compare'); dispatch(fetchSpecificCityData(city.id, city.value)); }; return ( <AutoComplete defaultValue={filter} options={cityData} style={{ width: '100%' }} onSelect={onSelect} defaultActiveFirstOption={true} onChange={onChange} filterOption={true} dropdownMatchSelectWidth={true} > <Input placeholder="Search" id="mainSearchInput" prefix={ <LeftOutlined style={{ color: theme.primaryLight, fontSize: '1.15rem' }} /> } suffix={ <SearchOutlined style={{ color: theme.primaryLight, fontSize: '1.15rem' }} /> } style={{ borderRadius: 30, height: 50, width: '100%', background: 'unset', }} bordered={true} /> </AutoComplete> ); } // outline: `3px solid ${theme.primaryLight}` export default SearchBar;
import React from 'react'; import Navbar from "react-bootstrap/Navbar"; import { Link, NavLink } from "react-router-dom"; function NavBar() { let currUser = JSON.parse(localStorage.getItem("currUser")); function NavOptions() { if (currUser !== null) { return ( <ul className="navbar-nav ml-auto"> <li className="nav-item"> <NavLink exact to="/home" className="nav-link" activeClassName="active">Home</NavLink> </li> <li className="nav-item"> <NavLink to={`/profile/${currUser.id}`} className="nav-link" activeClassName="active">Profile</NavLink> </li> <li className="nav-item"> <a href="/home" className="nav-link" onClick={signOut} activeClassName="active">Sign Out</a> </li> </ul> ) } else { return ( <ul className="navbar-nav ml-auto"> <li className="nav-item"> <NavLink exact to="/home" className="nav-link" activeClassName="active">Home</NavLink> </li> <li className="nav-item"> <NavLink to="/signup" className="nav-link" activeClassName="active">Sign Up</NavLink> </li> <li className="nav-item"> <NavLink to="/login" className="nav-link" activeClassName="active">Log In</NavLink> </li> </ul> ) } } function signOut() { localStorage.removeItem("currUser"); window.location.pathname = "/home"; } return ( <Navbar sticky="top" bg="info" variant="dark" expand="md"> <Link to="/home" className="navbar-brand">YuMi Jobs</Link> <Navbar.Toggle aria-controls="basic-navbar-nav" /> <Navbar.Collapse id="basic-navbar-nav"> <NavOptions /> </Navbar.Collapse> </Navbar> ) } export default NavBar;
define(function(require) { 'use strict'; var Backbone = require('backbone'); var L = require('leaflet'); var _ = require('underscore'); require('rrose'); return Backbone.View.extend({ initialize: function(params) { params.object.setIcon(this.markerIcon); params.object.setHint(typeof this.hintText == 'function' ? this.hintText(params) : this.hintText); params.object.bindPopup(this.popup(params.data)); this.listenTo(params.object, 'click', this.onClick); this.listenTo(params.container, 'drag', this.updatePopup); this.params = params; }, hintText: 'Подсказка', markerIcon: L.icon({ iconUrl: '/img/objects/note.svg', iconSize: [50, 50], iconAnchor: [5, 5], popupAnchor: [17, 0] }), popup: function(data) { return new L.Rrose({ autoPan: false, x_bound: 180, y_bound: 130, maxWidth: 250, minWidth: 130 }).setContent(this.popupContent(data)); }, updatePopup: function() { var popup = this.params.object.getPopup(); if (popup._isOpen) { popup.updateDirection(); } }, popupContent: function(data) { return _.template($('#note-popup').html())(data); }, onClick: function() { this.params.object.openPopup(); } }); });
/* * jQuery JavaScript Library v1.3.2 * http://jquery.com/ * * Copyright (c) 2009 John Resig * Dual licensed under the MIT and GPL licenses. * http://docs.jquery.com/License * * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) * Revision: 6246 */ (function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};if(jQuery.browser.msie){try{document.execCommand('BackgroundImageCache',false,true);}catch(e){}}o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}}); /* * Sizzle CSS Selector Engine - v0.9.3 * Copyright 2009, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * More information: http://sizzlejs.com/ */ (function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML=' <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();
import React, {useReducer} from 'react'; import './App.css'; import PlayingField from './PlayingField'; import Orders from './Orders'; import InfoPane from './InfoPane'; import CssBaseline from '@material-ui/core/CssBaseline'; import Grid from '@material-ui/core/Grid'; import WinDialog from "./WinDialog"; import reducer from "./reducer"; import {generateState} from "./stateGenerator"; export const ReducerDispatch = React.createContext(null); const initialState = generateState(); export default function App() { const [state, dispatch] = useReducer(reducer, initialState); return ( <div className="App"> <CssBaseline/> <Grid container justify="center" direction="row" spacing={24}> <ReducerDispatch.Provider value={{state, dispatch}}> <WinDialog/> <Grid item xs> <InfoPane/> </Grid> <Grid item xs> <PlayingField size="10"/> </Grid> <Grid item xs={4}> <Orders/> </Grid> </ReducerDispatch.Provider> </Grid> </div> ); }
var searchData= [ ['w',['w',['../d9/dc6/class_main_window.html#aeb8f8bc8e591c09d7c2bd5d3e4a754dc',1,'MainWindow']]], ['weakcamera',['WeakCamera',['../d7/df6/camera_8h.html#a7b9616f276c6529ece2bbfb711f5c756',1,'camera.h']]], ['weaklight',['WeakLight',['../dd/dd3/light_8h.html#ad5a9f0d258bb17c6cfc218b80530781f',1,'light.h']]], ['wheelevent',['wheelEvent',['../d5/d8f/class_model_view2.html#a118a304dcb2118dd6d78ff5e3f3cb2f1',1,'ModelView2']]], ['width',['width',['../d4/d44/class_renderer.html#ada813defebef120813571bfb6053e88f',1,'Renderer::width()'],['../d6/d99/class_z_buffer.html#a82c7634da3462d8efaeeba321ec36b24',1,'ZBuffer::width()'],['../db/d6b/class_image_base.html#a01be4d15909d029bf4ef23f8ed6f6369',1,'ImageBase::width()']]], ['worktype',['WorkType',['../d3/d22/number_8h.html#ab346505f7c8220bfcad46fb5ff6b249b',1,'number.h']]] ];
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.NetlifyCmsWidgetDatetime = void 0; var _DateTimeControl = _interopRequireDefault(require("./DateTimeControl")); var _DateTimePreview = _interopRequireDefault(require("./DateTimePreview")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } const Widget = (opts = {}) => _objectSpread({ name: 'datetime', controlComponent: _DateTimeControl.default, previewComponent: _DateTimePreview.default }, opts); const NetlifyCmsWidgetDatetime = { Widget, controlComponent: _DateTimeControl.default, previewComponent: _DateTimePreview.default }; exports.NetlifyCmsWidgetDatetime = NetlifyCmsWidgetDatetime; var _default = NetlifyCmsWidgetDatetime; exports.default = _default;
'use strict'; import faker from 'faker'; import Account from '../../models/account'; const createAccountMock = () => { const mock = {}; mock.request = { username: faker.lorem.word(), email: faker.internet.email(), spotifyId: faker.internet.ip(), accessToken: faker.lorem.words(), }; return Account.create( mock.request.username, mock.request.email, mock.request.spotifyId, mock.request.accessToken, ) .then((account) => { mock.account = account; return account.pCreateToken(); }) .then((token) => { mock.token = token; return Account.findById(mock.account._id); }) .then((account) => { mock.account = account; return mock; }); }; const removeAccountMock = () => Account.remove({}); export { createAccountMock, removeAccountMock };
/** * Limit focus to focusable elements inside `element` * @param {HTMLElement} element - DOM element to focus trap inside * @return {Function} cleanup function */ function focusTrap (element) { const focusableElements = getFocusableElements(element) const firstFocusableEl = focusableElements[0] const lastFocusableEl = focusableElements[focusableElements.length - 1] // Wait for the case the element was not yet rendered setTimeout(() => firstFocusableEl.focus(), 50) /** * Get all focusable elements inside `element` * @param {HTMLElement} element - DOM element to focus trap inside * @return {HTMLElement[]} List of focusable elements */ function getFocusableElements (element = document) { return [ ...element.querySelectorAll( 'a, button, details, input, select, textarea, [tabindex]:not([tabindex="-1"])' ) ].filter((e) => !e.hasAttribute('disabled')) } function handleKeyDown (e) { const TAB = 9 const isTab = e.key.toLowerCase() === 'tab' || e.keyCode === TAB if (!isTab) return if (e.shiftKey) { if (document.activeElement === firstFocusableEl) { lastFocusableEl.focus() e.preventDefault() } } else { if (document.activeElement === lastFocusableEl) { firstFocusableEl.focus() e.preventDefault() } } } element.addEventListener('keydown', handleKeyDown) return function cleanup () { element.removeEventListener('keydown', handleKeyDown) } }
'use strict'; var steno = require('steno'); var _require = require('./json'); var stringify = _require.stringify; module.exports = { read: require('./file-sync').read, write: function write(dest, obj) { var serialize = arguments.length <= 2 || arguments[2] === undefined ? stringify : arguments[2]; return new Promise(function (resolve, reject) { var data = serialize(obj); steno.writeFile(dest, data, function (err) { if (err) return reject(err); resolve(); }); }); } };
import { DxSelectionState, DxTreeDataState, DxCustomTreeData, DxIntegratedSelection, } from '@devexpress/dx-vue-grid'; import { DxGrid, DxTable, DxTableHeaderRow, DxTableTreeColumn, } from '@devexpress/dx-vue-grid-bootstrap4'; import { generateRows, defaultColumnValues, } from '../../../demo-data/generator'; export default { created() { this.getChildRows = (row, rootRows) => { const childRows = rootRows.filter(r => r.parentId === (row ? row.id : null)); return childRows.length ? childRows : null; }; }, data() { return { columns: [ { name: 'name', title: 'Name' }, { name: 'gender', title: 'Gender' }, { name: 'city', title: 'City' }, { name: 'car', title: 'Car' }, ], tableColumnExtensions: [ { columnName: 'name', width: 300 }, ], selection: [], expandedRowIds: [0], data: generateRows({ columnValues: { id: ({ index }) => index, parentId: ({ index, random }) => (index > 0 ? Math.trunc((random() * index) / 2) : null), ...defaultColumnValues, }, length: 20, }), }; }, template: ` <div class="card"> <dx-grid :rows="data" :columns="columns" > <dx-selection-state :selection.sync="selection" /> <dx-tree-data-state :expandedRowIds.sync="expandedRowIds" /> <dx-custom-tree-data :getChildRows="getChildRows" /> <dx-integrated-selection /> <dx-table :columnExtensions="tableColumnExtensions" /> <dx-table-header-row /> <dx-table-tree-column for="name" showSelectionControls showSelectAll /> </dx-grid> </div> `, components: { DxSelectionState, DxTreeDataState, DxCustomTreeData, DxIntegratedSelection, DxGrid, DxTable, DxTableHeaderRow, DxTableTreeColumn, }, };
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EADDRINUSE = exports.CONN_ERR = exports.ECONNREFUSED = exports.MQTT_WILDCARD_ALL = exports.MQTT_WILDCARD_SINGLE = exports.MQTT_SEPARATOR = exports.KAFKA_DEFAULT_GROUP = exports.KAFKA_DEFAULT_CLIENT = exports.DISCONNECTED_RMQ_MESSAGE = exports.NO_EVENT_HANDLER = exports.NO_MESSAGE_HANDLER = exports.GRPC_DEFAULT_PROTO_LOADER = exports.RQM_DEFAULT_PERSISTENT = exports.RQM_DEFAULT_NOACK = exports.RQM_DEFAULT_QUEUE_OPTIONS = exports.RQM_DEFAULT_IS_GLOBAL_PREFETCH_COUNT = exports.RQM_DEFAULT_PREFETCH_COUNT = exports.RQM_DEFAULT_QUEUE = exports.REPLY_PATTERN_METADATA = exports.REQUEST_PATTERN_METADATA = exports.PARAM_ARGS_METADATA = exports.CLIENT_METADATA = exports.PATTERN_HANDLER_METADATA = exports.CLIENT_CONFIGURATION_METADATA = exports.TRANSPORT_METADATA = exports.PATTERN_METADATA = exports.CANCEL_EVENT = exports.SUBSCRIBE = exports.CLOSE_EVENT = exports.ERROR_EVENT = exports.DATA_EVENT = exports.MESSAGE_EVENT = exports.CONNECT_FAILED_EVENT = exports.DISCONNECT_EVENT = exports.CONNECT_EVENT = exports.KAFKA_DEFAULT_BROKER = exports.RQM_DEFAULT_URL = exports.GRPC_DEFAULT_URL = exports.MQTT_DEFAULT_URL = exports.NATS_DEFAULT_URL = exports.REDIS_DEFAULT_URL = exports.TCP_DEFAULT_HOST = exports.TCP_DEFAULT_PORT = void 0; const constants_1 = require("@nestjs/common/constants"); exports.TCP_DEFAULT_PORT = 3000; exports.TCP_DEFAULT_HOST = 'localhost'; exports.REDIS_DEFAULT_URL = 'redis://localhost:6379'; exports.NATS_DEFAULT_URL = 'nats://localhost:4222'; exports.MQTT_DEFAULT_URL = 'mqtt://localhost:1883'; exports.GRPC_DEFAULT_URL = 'localhost:5000'; exports.RQM_DEFAULT_URL = 'amqp://localhost'; exports.KAFKA_DEFAULT_BROKER = 'localhost:9092'; exports.CONNECT_EVENT = 'connect'; exports.DISCONNECT_EVENT = 'disconnect'; exports.CONNECT_FAILED_EVENT = 'connectFailed'; exports.MESSAGE_EVENT = 'message'; exports.DATA_EVENT = 'data'; exports.ERROR_EVENT = 'error'; exports.CLOSE_EVENT = 'close'; exports.SUBSCRIBE = 'subscribe'; exports.CANCEL_EVENT = 'cancelled'; exports.PATTERN_METADATA = 'microservices:pattern'; exports.TRANSPORT_METADATA = 'microservices:transport'; exports.CLIENT_CONFIGURATION_METADATA = 'microservices:client'; exports.PATTERN_HANDLER_METADATA = 'microservices:handler_type'; exports.CLIENT_METADATA = 'microservices:is_client_instance'; exports.PARAM_ARGS_METADATA = constants_1.ROUTE_ARGS_METADATA; exports.REQUEST_PATTERN_METADATA = 'microservices:request_pattern'; exports.REPLY_PATTERN_METADATA = 'microservices:reply_pattern'; exports.RQM_DEFAULT_QUEUE = 'default'; exports.RQM_DEFAULT_PREFETCH_COUNT = 0; exports.RQM_DEFAULT_IS_GLOBAL_PREFETCH_COUNT = false; exports.RQM_DEFAULT_QUEUE_OPTIONS = {}; exports.RQM_DEFAULT_NOACK = true; exports.RQM_DEFAULT_PERSISTENT = false; exports.GRPC_DEFAULT_PROTO_LOADER = '@grpc/proto-loader'; exports.NO_MESSAGE_HANDLER = `There is no matching message handler defined in the remote service.`; exports.NO_EVENT_HANDLER = `There is no matching event handler defined in the remote service.`; exports.DISCONNECTED_RMQ_MESSAGE = `Disconnected from RMQ. Trying to reconnect.`; exports.KAFKA_DEFAULT_CLIENT = 'nestjs-consumer'; exports.KAFKA_DEFAULT_GROUP = 'nestjs-group'; exports.MQTT_SEPARATOR = '/'; exports.MQTT_WILDCARD_SINGLE = '+'; exports.MQTT_WILDCARD_ALL = '#'; exports.ECONNREFUSED = 'ECONNREFUSED'; exports.CONN_ERR = 'CONN_ERR'; exports.EADDRINUSE = 'EADDRINUSE';
import produce from 'immer'; import * as types from './constants'; export const initialState = { all: { data: [], page: 1, size: 10, totalData: 0, }, one: { slider_name: '', slider_key: '', settings: '', images: [], slider_setting: { slidesToShow: 1, slidesToScroll: 1, dots: false, arrows: false, centerMode: false, centerPadding: '', autoplay: true, autoplaySpeed: 2000, focusOnSelect: true, slidesPerRow: 1, responsive: [ { breakpoint: 1024, settings: { arrows: false, slidesToShow: 1, slidesToScroll: 1, }, }, { breakpoint: 768, settings: { arrows: false, slidesToShow: 1, slidesToScroll: 1, dots: true, }, }, ], }, }, media: { data: [], page: 1, size: 10, totaldata: 0, }, query: { find_slider_name: '', size: 10 }, loading: false, errors: { slider_name: '', slider_key: '' }, }; /* eslint-disable default-case, no-param-reassign */ const reducer = (state = initialState, action) => produce(state, draft => { switch (action.type) { case types.SET_QUERY_VALUE: draft.query[action.payload.key] = action.payload.value; break; case types.SET_QUERY_OBJ: draft.query = action.payload; break; case types.CLEAR_QUERY: draft.query = initialState.query; break; case types.SET_ONE_VALUE: draft.one[action.payload.key] = action.payload.value; draft.errors[action.payload.key] = ' '; break; case types.LOAD_ALL_REQUEST: draft.loading = true; break; case types.LOAD_ALL_SUCCESS: draft.loading = false; draft.all = action.payload; break; case types.LOAD_MEDIA_SUCCESS: draft.media = action.payload; break; case types.LOAD_ONE_REQUEST: draft.loading = true; break; case types.LOAD_ONE_FAILURE: draft.loading = false; break; case types.LOAD_ONE_SUCCESS: draft.loading = false; draft.one = action.payload.data; break; case types.DELETE_ONE_SUCCESS: draft.all = { ...draft.all, data: draft.all.data.filter( each => each._id !== action.payload.data._id, ), }; break; case types.CLEAR_ONE: draft.one = initialState.one; break; case types.ADD_EDIT_FAILURE: draft.errors = action.payload.errors; break; case types.CLEAR_ERRORS: draft.errors = initialState.errors; break; case types.SET_SLIDER_VALUE: draft.one.slider_setting[action.payload.key] = action.payload.value; break; } }); export default reducer;
import { Router } from "express"; import passport from "passport"; const router = new Router(); import * as FeedbackController from "../controllers/feedback.controller"; router.route("/giveFB/:username").post( //passport.authenticate("jwt", { session: false }), FeedbackController.postNewFeedback ); router.route("/viewFB").get( //passport.authenticate("jwt", { session: false }), FeedbackController.viewFeedback ); export default router; // router // .route("/deleteFB/:username/:fb_id") // .delete( // passport.authenticate("jwt", { session: false }), // FeedbackController.deleteFeedback // ); // router // .route("/update/:fb_id") // .post( // passport.authenticate("jwt", { session: false }), // FeedbackController.updateFeedback // );
const { ActionTransport } = require('@microfleet/plugin-router'); const detach = require('../../auth/oauth/utils/detach'); const { getInternalData } = require('../../utils/userData'); /** * @api {amqp} <prefix>.oauth.detach Detach SSO provider from profile * @apiVersion 1.0.0 * @apiName OauthDetach * @apiGroup Users * * @apiDescription Detach a given SSO account from user profile * * @apiParam (Payload) {String} provider * @apiParam (Payload) {String} username - user's username */ async function detachAction(request) { const { provider, username } = request.params; const internalData = await getInternalData.call(this, username); await detach.call(this, provider, internalData); return { success: true }; } detachAction.transports = [ActionTransport.amqp, ActionTransport.internal]; module.exports = detachAction;
'use strict'; var constants = require('js/constants'); var UserWSActions = require('js/actions/ws/user'); var actionMap = {}; actionMap['user'] = require('js/actions/ws/user'); // TODO clientCode should come from local store // TODO we need to be able to reconnect to the WebSocket if it fails var ws = new WebSocket(constants.WS_BASE); var clientCode = 'bad'; var msgId = 0; // Handle messages from the Server // // for example: if the route comes in as '/user/clientCode' // We need to do actions from 'js/actions/ws/user' // and call action 'successUserWsClientCode' or 'failureUserWsClientCode' // ws.onmessage = function(event) { console.log("Web Socket: message ["+event.data+"]"); var json = JSON.parse(event.data); var routeMethod = json.route; var index = routeMethod.lastIndexOf('/'); var route = routeMethod.substring(1,index); var method = routeMethod.substring(index+1); var action = 'success'; var actionClass = actionMap[route]; // Capitalize first letter of 'method' and 'route' method = method.charAt(0).toUpperCase() + method.slice(1); route = route.charAt(0).toUpperCase() + route.slice(1); if (! actionClass) { console.log("ERROR: could not find route to ["+routeMethod+"]"); return; } if (json.status > 0) { action = 'failure'; } // Combine to create the action name action = action + route + "WS" + method; // Convert the route and method into an action actionClass[action](json.content); } // Automatically add the clientCode to the outgoing message var addClientCode = function(message) { message.clientCode = clientCode; return message; } ws.onopen = function(event) { // Validate the clientCode console.log("Validate clientCode"); call({ "route" : "/user/clientCode" }); }; // Send the message. // Add the clientCode // Add the msgId (next number in series) // var call = function(message) { message.msgId = ++msgId; message.clientCode = clientCode ws.send(JSON.stringify(message)); return msgId; }; // Listen for the success return of a client code UserWSActions.successUserWSClientCode.listen(function(result) { clientCode = result.clientCode; }); module.exports.clientCode = clientCode; module.exports.call = call;
import React, { PureComponent } from "react"; import axios from "axios"; class Profile extends PureComponent { constructor(props) { super(props); this.state = { user: {} }; this.getUser = this.getUser.bind(this); } componentDidMount() { this.getUser() } componentWillReceiveProps() { this.getUser() } getUser() { const username = this.props.username; console.log(username) axios .post('http://192.168.1.187:8000/profile', { username }) .then(res => { const user = res.data; console.log(user) console.log("heaven"); this.setState({ user }); }) .catch(err => { console.log(err); }); } render() { if (!this.state.user.university) { return null; } if (this.state.user.is_instructor && !this.state.user.instructor) { return null; } return ( <div> <table> <tbody> <tr> <th>Adı:</th> <td>{this.state.user.name}</td> </tr> <tr> <th>Soyadı:</th> <td>{this.state.user.surname}</td> </tr> <tr> <th>Hakkında:</th> <td>{this.state.user.bio}</td> </tr> <tr> <th>Username:</th> <td>{this.state.user.username}</td> </tr> <tr> <th>Universite:</th> <td>{this.state.user.university.name}</td> </tr> </tbody> </table> </div> ); } } export default Profile;
// region // #region require const mongoose = require('mongoose'); // endregion //#endregion // region // #region Schema const TaskListSchema = mongoose.Schema({ title: { type: String, required: true }, subtitle: { type: String }, content: { type: String }, user: { type: mongoose.Types.ObjectId, ref: 'User', required: true } }); const TaskList = module.exports = mongoose.model('TaskList', TaskListSchema); // endregion //#endregion // region // #region Create module.exports.addTaskList = function(tasklist, callback){ tasklist.save(callback); }; // endregion //#endregion // region // #region READ module.exports.getTaskList = function(id, callback){ TaskList.findById(id, callback); }; module.exports.getTaskLists = function(user, callback){ const query = {user: user}; TaskList.find(query, callback); }; // endregion //#endregion // region // #region UPDATE module.exports.updateTaskList = function (tasklist, callback) { TaskList.findByIdAndUpdate(tasklist._id, tasklist, {upsert: true}, callback); }; // endregion //#endregion // region // #region DELETE module.exports.deleteTaskList = function (id, callback) { TaskList.findOneAndDelete({_id: id}, callback) }; // endregion //#endregion