@feedmepos/mf-menu 0.0.3 → 0.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/App-DohOU1oV.js +12631 -0
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-i6t88Eel.js +161 -0
- package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js +74 -0
- package/dist/Catalog-DLqeJUzk.js +641 -0
- package/dist/Category-B1_5y7Mc.js +392 -0
- package/dist/CookingGuide-L4a90U-7.js +880 -0
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +26 -0
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js +50 -0
- package/dist/Group-4FKRzniJ.js +48 -0
- package/dist/Group-Cggfw5se.js +4 -0
- package/dist/Group.vue_vue_type_script_setup_true_lang-DP3PgguY.js +594 -0
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DsoLGvHp.js +211 -0
- package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-DJ70FzxC.js +72778 -0
- package/dist/Ingredient-BiIebw2u.js +495 -0
- package/dist/InventoryBinding.vue_vue_type_script_setup_true_lang-DhEEjc_i.js +21910 -0
- package/dist/LinkProductSideSheet-u1jj74-0.js +110 -0
- package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-BShs7c1r.js +68 -0
- package/dist/MenuSetting-Dqd5iQG6.js +185 -0
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js +34 -0
- package/dist/PrintRoute-Cne9zCcz.js +420 -0
- package/dist/Product-kFxciKdY.js +4 -0
- package/dist/Product.vue_vue_type_script_setup_true_lang-CbcEfD6X.js +9408 -0
- package/dist/Products-CGWuSZFG.js +2660 -0
- package/dist/Publish-zzFK26fy.js +547 -0
- package/dist/Recipe-CYCPMkar.js +330 -0
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js +38 -0
- package/dist/Scheduler-Dl881fmO.js +227 -0
- package/dist/SchedulerSelector.vue_vue_type_script_setup_true_lang-BOfrY4Jc.js +33 -0
- package/dist/ServingSequence-C1EmqZWu.js +347 -0
- package/dist/Setting-CwAoMp-i.js +258 -0
- package/dist/Takeaway-CcRWIXdA.js +64 -0
- package/dist/Takeaway-DIrpbY-C.js +4 -0
- package/dist/Takeaway.vue_vue_type_script_setup_true_lang-bykZsQyj.js +306 -0
- package/dist/TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js +20 -0
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-CvOTKNYT.js +63 -0
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BikIegit.js +6170 -0
- package/dist/Unit-Cux3fhlO.js +144 -0
- package/dist/Variant-CCtG3acp.js +229 -0
- package/dist/_id_-Mp6ineI6.js +196 -0
- package/dist/app-B1I12pXb.js +2030 -0
- package/dist/app-D9DQSTFD.js +68 -0
- package/dist/app.js +8 -94
- package/dist/{App.vue.d.ts → apps/mf-menu/src/App.vue.d.ts} +1 -1
- package/dist/apps/mf-menu/src/Entry.vue.d.ts +3 -0
- package/dist/apps/mf-menu/src/api/index.d.ts +5 -0
- package/dist/apps/mf-menu/src/api/menu.d.ts +31 -0
- package/dist/apps/mf-menu/src/api/public.d.ts +5 -0
- package/dist/apps/mf-menu/src/app.d.ts +4486 -0
- package/dist/apps/mf-menu/src/assets/icons/index.d.ts +4 -0
- package/dist/apps/mf-menu/src/components/ApplyProducts.vue.d.ts +44 -0
- package/dist/apps/mf-menu/src/components/CustomAttributeChip.vue.d.ts +29 -0
- package/dist/{Entry.vue.d.ts → apps/mf-menu/src/components/Migrate.vue.d.ts} +1 -1
- package/dist/{components → apps/mf-menu/src/components}/Navigator.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/NumberPrecisionInput.vue.d.ts +26 -0
- package/dist/apps/mf-menu/src/components/OrderFromChip.vue.d.ts +15 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +1034 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +533 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +3194 -0
- package/dist/apps/mf-menu/src/components/feature/CatalogManager/Form.vue.d.ts +13 -0
- package/dist/apps/mf-menu/src/components/feature/CatalogManager/index.d.ts +25 -0
- package/dist/apps/mf-menu/src/components/feature/CatalogSchedulerSelector.vue.d.ts +19 -0
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/Form.vue.d.ts +27 -0
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/index.d.ts +43 -0
- package/dist/apps/mf-menu/src/components/feature/CategorySelector.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/CategorySelectorSingle.vue.d.ts +18 -0
- package/dist/apps/mf-menu/src/components/feature/EmptyDataTemplate/Icon.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/feature/EmptyDataTemplate/index.d.ts +1 -0
- package/dist/apps/mf-menu/src/components/feature/EmptyDataTemplate/index.vue.d.ts +27 -0
- package/dist/apps/mf-menu/src/components/feature/Fields/CurrencyInput.vue.d.ts +45 -0
- package/dist/apps/mf-menu/src/components/feature/Fields/ImageDropField.vue.d.ts +21 -0
- package/dist/apps/mf-menu/src/components/feature/Fields/OrderFrom.vue.d.ts +91 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/AddForm.vue.d.ts +11 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/Form.vue.d.ts +42 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +793 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +537 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/index.d.ts +2231 -0
- package/dist/apps/mf-menu/src/components/feature/InventoryManager/Form.vue.d.ts +67 -0
- package/dist/apps/mf-menu/src/components/feature/InventoryManager/InventoryBinding.vue.d.ts +54 -0
- package/dist/apps/mf-menu/src/components/feature/InventoryManager/index.d.ts +223 -0
- package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductSideSheet.vue.d.ts +64 -0
- package/dist/apps/mf-menu/src/components/feature/MenuSelector.vue.d.ts +47 -0
- package/dist/apps/mf-menu/src/components/feature/Picker.vue.d.ts +37 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/LinkPriceTier.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +1593 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +1606 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierNotice.vue.d.ts +15 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierSheet.vue.d.ts +27 -0
- package/dist/apps/mf-menu/src/components/feature/PrintDeptManager/Form.vue.d.ts +25 -0
- package/dist/apps/mf-menu/src/components/feature/PrintDeptManager/index.d.ts +43 -0
- package/dist/apps/mf-menu/src/components/feature/RecipeManager/Form.vue.d.ts +45 -0
- package/dist/apps/mf-menu/src/components/feature/RecipeManager/index.d.ts +70 -0
- package/dist/apps/mf-menu/src/components/feature/RemyButton.vue.d.ts +15 -0
- package/dist/apps/mf-menu/src/components/feature/RemyDialog.vue.d.ts +15 -0
- package/dist/apps/mf-menu/src/components/feature/ResponsiveFabButton.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/feature/RevertDialog.vue.d.ts +15 -0
- package/dist/apps/mf-menu/src/components/feature/SchedulerSelector.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/feature/SelectGroupDialog.vue.d.ts +15 -0
- package/dist/apps/mf-menu/src/components/feature/SelectVariantDialog.vue.d.ts +15 -0
- package/dist/apps/mf-menu/src/components/feature/ServingSequenceManager/Form.vue.d.ts +32 -0
- package/dist/apps/mf-menu/src/components/feature/ServingSequenceManager/index.d.ts +62 -0
- package/dist/apps/mf-menu/src/components/feature/SkuManager/Form.vue.d.ts +49 -0
- package/dist/apps/mf-menu/src/components/feature/SkuManager/index.d.ts +85 -0
- package/dist/apps/mf-menu/src/components/feature/TakeAwayManager/Form.vue.d.ts +35 -0
- package/dist/apps/mf-menu/src/components/feature/TakeAwayManager/index.d.ts +95 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/ProductsTree.vue.d.ts +22 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/TreeEditor.vue.d.ts +19 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/TreeEditorForm.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/TreeEditorLayout.vue.d.ts +11 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/TreeEditorOpenner.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/TreePanel.vue.d.ts +22 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/TreeTopButton.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/components/OrderFrom.vue.d.ts +15 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/catalog.d.ts +9 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/category.d.ts +32 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +786 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +1165 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/tree.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +788 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemSelection.d.ts +8 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/variant.d.ts +3 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/fmtree/FmTipTreeIcon.vue.d.ts +35 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/fmtree/FmTree.vue.d.ts +26 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/fmtree/FmTreeChip.vue.d.ts +15 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/fmtree/FmTreeIcon.vue.d.ts +31 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/fmtree/FmTreeNode.vue.d.ts +52 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/fmtree/HighlightableSpan.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/fmtree/dragging.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/fmtree/type.d.ts +70 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/AddForm.vue.d.ts +11 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/Form.vue.d.ts +42 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +793 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +537 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +2231 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/SelectGroupDialog.vue.d.ts +15 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/SelectVariantDialog.vue.d.ts +15 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/VariantManagerForm.vue.d.ts +24 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/history/index.d.ts +15 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadDialog.vue.d.ts +3 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadForm.vue.d.ts +32 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +2393 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductDetail.vue.d.ts +19 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductGroup.vue.d.ts +19 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductInventory.vue.d.ts +27 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductPrice.vue.d.ts +18 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductPrint.vue.d.ts +24 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductTakeaway.vue.d.ts +19 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductVariants.vue.d.ts +19 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/anchor.d.ts +9 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +823 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/openner.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/service/menuLocal.d.ts +16 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +6986 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/tree.d.ts +641 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/treeUtils.d.ts +59 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/type.d.ts +73 -0
- package/dist/apps/mf-menu/src/components/feature/UnitManager/Form.vue.d.ts +27 -0
- package/dist/apps/mf-menu/src/components/feature/UnitManager/UnitMeasurement.vue.d.ts +75 -0
- package/dist/apps/mf-menu/src/components/feature/UnitManager/index.d.ts +40 -0
- package/dist/apps/mf-menu/src/components/feature/VariantManager/Form.vue.d.ts +30 -0
- package/dist/apps/mf-menu/src/components/feature/VariantManager/index.d.ts +40 -0
- package/dist/apps/mf-menu/src/components/feature/overview/OverviewSheet.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/feature/overview/ProductOverview.vue.d.ts +29 -0
- package/dist/apps/mf-menu/src/components/feature/overview/ViewLayout.vue.d.ts +46 -0
- package/dist/apps/mf-menu/src/components/feature/overview/comp/ProductBaseInfo.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/feature/overview/comp/ProductViewer.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/feature/overview/type.d.ts +5 -0
- package/dist/apps/mf-menu/src/components/feature/overview/views/GroupView.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/feature/overview/views/GroupViewTable.vue.d.ts +24 -0
- package/dist/apps/mf-menu/src/components/feature/overview/views/ProductView.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/feature/overview/views/ProductViewTable.vue.d.ts +18 -0
- package/dist/apps/mf-menu/src/components/feature/overview/views/SchedulerView.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/feature/overview/views/VariantView.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/feature/publish.d.ts +27 -0
- package/dist/apps/mf-menu/src/components/import/ImportButton.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/import/ItemCard.vue.d.ts +18 -0
- package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +71 -0
- package/dist/apps/mf-menu/src/components/import/PreviewContent.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/import/PreviewContent2.vue.d.ts +55 -0
- package/dist/apps/mf-menu/src/components/import/PreviewImportForm.vue.d.ts +26 -0
- package/dist/apps/mf-menu/src/components/import/PreviewImportFormFeedme.vue.d.ts +27 -0
- package/dist/apps/mf-menu/src/components/layout/FullScreenForm.vue.d.ts +30 -0
- package/dist/apps/mf-menu/src/components/layout/PageLayout.vue.d.ts +23 -0
- package/dist/apps/mf-menu/src/components/layout/ToggleCard.vue.d.ts +28 -0
- package/dist/apps/mf-menu/src/composable/dragResize.d.ts +16 -0
- package/dist/apps/mf-menu/src/composable/menu.d.ts +9 -0
- package/dist/apps/mf-menu/src/composable/menuNotifer.d.ts +3 -0
- package/dist/apps/mf-menu/src/composable/navigator.d.ts +11 -0
- package/dist/apps/mf-menu/src/composable/search.d.ts +5 -0
- package/dist/apps/mf-menu/src/helper/check.d.ts +6 -0
- package/dist/apps/mf-menu/src/helper/currency.d.ts +2 -0
- package/dist/apps/mf-menu/src/helper/feedmeModify/definitions.d.ts +449 -0
- package/dist/apps/mf-menu/src/helper/feedmeModify/fromExcel.d.ts +8 -0
- package/dist/apps/mf-menu/src/helper/feedmeModify/toExcel.d.ts +19 -0
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +7070 -0
- package/dist/apps/mf-menu/src/helper/item.d.ts +22 -0
- package/dist/apps/mf-menu/src/helper/iteration.d.ts +7 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +872 -0
- package/dist/apps/mf-menu/src/helper/number.d.ts +14 -0
- package/dist/apps/mf-menu/src/helper/object.d.ts +6 -0
- package/dist/apps/mf-menu/src/helper/recipe.d.ts +3 -0
- package/dist/apps/mf-menu/src/helper/remy.d.ts +5 -0
- package/dist/apps/mf-menu/src/helper/setting/catalogSetting.d.ts +37 -0
- package/dist/apps/mf-menu/src/helper/sku.d.ts +9 -0
- package/dist/apps/mf-menu/src/helper/string.d.ts +1 -0
- package/dist/apps/mf-menu/src/init.d.ts +1 -0
- package/dist/apps/mf-menu/src/manager/cooking_guide.d.ts +5 -0
- package/dist/apps/mf-menu/src/manager/menu/catalog.d.ts +27 -0
- package/dist/apps/mf-menu/src/manager/menu/category.d.ts +38 -0
- package/dist/apps/mf-menu/src/manager/menu/group.d.ts +62 -0
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +6919 -0
- package/dist/apps/mf-menu/src/manager/menu/priceTier.d.ts +15 -0
- package/dist/apps/mf-menu/src/manager/menu/scheduler.d.ts +26 -0
- package/dist/apps/mf-menu/src/manager/menu/takeaway.d.ts +6 -0
- package/dist/apps/mf-menu/src/manager/print_department.d.ts +5 -0
- package/dist/apps/mf-menu/src/manager/scheduler.d.ts +5 -0
- package/dist/apps/mf-menu/src/plugins.d.ts +4 -0
- package/dist/apps/mf-menu/src/router/shared.d.ts +17 -0
- package/dist/apps/mf-menu/src/stores/app.d.ts +217 -0
- package/dist/apps/mf-menu/src/stores/manager/catalog.d.ts +7 -0
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +2384 -0
- package/dist/apps/mf-menu/src/stores/manager/recipe.d.ts +733 -0
- package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +1165 -0
- package/dist/apps/mf-menu/src/stores/manager/sku.d.ts +1621 -0
- package/dist/apps/mf-menu/src/stores/manager/takeaway.d.ts +107 -0
- package/dist/apps/mf-menu/src/stores/manager/unit.d.ts +397 -0
- package/dist/apps/mf-menu/src/stores/manager/variant.d.ts +11 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +6983 -0
- package/dist/apps/mf-menu/src/stores/menuEdit.d.ts +7 -0
- package/dist/apps/mf-menu/src/types/recipe.d.ts +4 -0
- package/dist/apps/mf-menu/src/types/rule.d.ts +64 -0
- package/dist/apps/mf-menu/src/utils/createComponentProgrammatically.d.ts +7 -0
- package/dist/apps/mf-menu/src/utils/input.d.ts +1 -0
- package/dist/apps/mf-menu/src/utils/inventory.d.ts +6 -0
- package/dist/apps/mf-menu/src/utils/table.d.ts +1 -0
- package/dist/apps/mf-menu/src/utils/tooltip.d.ts +8 -0
- package/dist/apps/mf-menu/src/utils/worker.d.ts +1 -0
- package/dist/{views → apps/mf-menu/src/views}/Catalog/Catalog.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/views/Catalog/CatalogUsageTable.vue.d.ts +16 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddCategoryDialogContentComponent.vue.d.ts +14 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +1595 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +20 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductGroup.vue.d.ts +19 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductInventory.vue.d.ts +27 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductPrice.vue.d.ts +18 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductPrint.vue.d.ts +24 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductTakeaway.vue.d.ts +19 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductVariants.vue.d.ts +19 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/index.d.ts +3981 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/Group.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/GroupMarkupPriceDialog.vue.d.ts +31 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/ImportProductDialog.vue.d.ts +18 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/Product.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/ProductTable.vue.d.ts +37 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/SelectUploadFile.vue.d.ts +23 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/SelectUploadFiles.vue.d.ts +21 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/Setting.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/Takeaway.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/Thumbnail.vue.d.ts +20 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/[id].vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/type.d.ts +16 -0
- package/dist/apps/mf-menu/src/views/Category/Category.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Category/CategoryTable.vue.d.ts +2 -0
- package/dist/{views → apps/mf-menu/src/views}/CookingGuide/CookingGuide.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/views/CookingGuide/CookingGuideDialog.vue.d.ts +186 -0
- package/dist/apps/mf-menu/src/views/CookingGuide/CookingGuideStepDialog.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/views/CookingGuide/CookingGuideStepOverrideDialog.vue.d.ts +70 -0
- package/dist/apps/mf-menu/src/views/Group/Group.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Ingredient/Ingredient.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/MenuSetting/AddPriceGroupDialog.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/MenuSetting/MenuSetting.vue.d.ts +2 -0
- package/dist/{views → apps/mf-menu/src/views}/Overview/Overview.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/views/PrintRoute/PrintDepartmentDialog.vue.d.ts +35 -0
- package/dist/apps/mf-menu/src/views/PrintRoute/PrintRoute.vue.d.ts +7 -0
- package/dist/apps/mf-menu/src/views/Product/Products.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/ProductOverviewDemo.vue.d.ts +2 -0
- package/dist/{views → apps/mf-menu/src/views}/Publish/Publish.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +3473 -0
- package/dist/apps/mf-menu/src/views/Recipe/Recipe.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +847 -0
- package/dist/{views → apps/mf-menu/src/views}/Scheduler/Scheduler.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +862 -0
- package/dist/apps/mf-menu/src/views/ServingSequence/ServingSequence.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Takeaway/Takeaway.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/TaxSetting/TaxSetting.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/TreeEditorDemo.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Unit/Unit.vue.d.ts +2 -0
- package/dist/{views → apps/mf-menu/src/views}/Variant/Variant.vue.d.ts +1 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -0
- package/dist/assets/linked-status-T3O-XXdn.js +24 -0
- package/dist/assets/override-menu-CPwBtTX9.js +24 -0
- package/dist/assets/validate-menu-CkDDM692.js +24 -0
- package/dist/catalog-B1UQHu6j.js +202 -0
- package/dist/catalogSetting-DdxZ0nKg.js +65 -0
- package/dist/check-C9mY6LiX.js +9 -0
- package/dist/createComponentProgrammatically-Bt2rn1IQ.js +11 -0
- package/dist/createForm-BoUQeZTd.js +16 -0
- package/dist/currency-Bmje2XMW.js +7 -0
- package/dist/dayjs.min-CcDoWv_V.js +6 -0
- package/dist/discardConfirm-Br8AbO7y.js +3704 -0
- package/dist/index-Ce4v8o7D.js +106 -0
- package/dist/index-DJ2C-NTK.js +273 -0
- package/dist/index-wAygpONg.js +239 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js +57 -0
- package/dist/item-DIYt3BTF.js +6897 -0
- package/dist/menu-BqPh15La.js +34 -0
- package/dist/menu-NS-_m-8z.js +126229 -0
- package/dist/mf-menu.css +1 -0
- package/dist/object-VfpKsK3I.js +166 -0
- package/dist/packages/shared/src/api/index.d.ts +3 -0
- package/dist/packages/shared/src/api/public.d.ts +5 -0
- package/dist/packages/shared/src/components/button/ResponsiveFabButton.vue.d.ts +12 -0
- package/dist/packages/shared/src/components/dialog/ConfirmActionDialog.vue.d.ts +30 -0
- package/dist/packages/shared/src/components/form/DynamicSheet.vue.d.ts +19 -0
- package/dist/packages/shared/src/components/form/FormLabel.vue.d.ts +33 -0
- package/dist/packages/shared/src/components/form/ImageDropField.vue.d.ts +46 -0
- package/dist/packages/shared/src/components/form/RestaurantSelector.vue.d.ts +37 -0
- package/dist/packages/shared/src/components/form/RestaurantSelectorMultiple.vue.d.ts +22 -0
- package/dist/packages/shared/src/components/info/InfoBasic.vue.d.ts +20 -0
- package/dist/packages/shared/src/components/info/Summary.vue.d.ts +19 -0
- package/dist/packages/shared/src/components/info/TextChip.vue.d.ts +36 -0
- package/dist/packages/shared/src/components/layout/FormColumn.vue.d.ts +21 -0
- package/dist/packages/shared/src/components/layout/FormItem.vue.d.ts +23 -0
- package/dist/packages/shared/src/components/layout/FormRow.vue.d.ts +9 -0
- package/dist/packages/shared/src/components/layout/FormSection.vue.d.ts +24 -0
- package/dist/packages/shared/src/components/layout/FullScreenForm.vue.d.ts +45 -0
- package/dist/packages/shared/src/components/layout/FullWrapper.vue.d.ts +9 -0
- package/dist/packages/shared/src/components/layout/HorizontalSplitter.vue.d.ts +2 -0
- package/dist/packages/shared/src/components/layout/Indent.vue.d.ts +9 -0
- package/dist/packages/shared/src/components/layout/ListLayout.vue.d.ts +2 -0
- package/dist/packages/shared/src/components/layout/LottieAnimation.vue.d.ts +39 -0
- package/dist/packages/shared/src/components/layout/MobileXScrollable.vue.d.ts +9 -0
- package/dist/packages/shared/src/components/layout/PageLayout.vue.d.ts +24 -0
- package/dist/packages/shared/src/components/loading/AppLoading.vue.d.ts +20 -0
- package/dist/packages/shared/src/components/loading/PageLoading.vue.d.ts +2 -0
- package/dist/packages/shared/src/components/loading/index.d.ts +1 -0
- package/dist/packages/shared/src/components/map/GoogleMap.vue.d.ts +79 -0
- package/dist/packages/shared/src/components/menu/BottomSheetMenu.vue.d.ts +10 -0
- package/dist/packages/shared/src/components/menu/BottomSheetMenuItem.vue.d.ts +24 -0
- package/dist/packages/shared/src/components/menu/ResponsiveContextMenu.vue.d.ts +22 -0
- package/dist/packages/shared/src/components/table/EmptyDataTemplate/Icon.vue.d.ts +2 -0
- package/dist/packages/shared/src/components/table/EmptyDataTemplate/index.d.ts +1 -0
- package/dist/packages/shared/src/components/table/EmptyDataTemplate/index.vue.d.ts +27 -0
- package/dist/packages/shared/src/components/types.d.ts +95 -0
- package/dist/packages/shared/src/composable/clipboard.d.ts +3 -0
- package/dist/packages/shared/src/composable/dateRange.d.ts +18 -0
- package/dist/packages/shared/src/composable/discardConfirm.d.ts +1 -0
- package/dist/packages/shared/src/composable/elementPosition.d.ts +17 -0
- package/dist/packages/shared/src/composable/filterSelector.d.ts +12 -0
- package/dist/packages/shared/src/composable/loading.d.ts +29 -0
- package/dist/packages/shared/src/composable/prompt.d.ts +9 -0
- package/dist/packages/shared/src/composable/sheet.d.ts +17 -0
- package/dist/packages/shared/src/feature/featureMinVersion.d.ts +34 -0
- package/dist/packages/shared/src/helpers/actionButton.d.ts +8 -0
- package/dist/packages/shared/src/helpers/browser.d.ts +1 -0
- package/dist/packages/shared/src/helpers/contextMenu.d.ts +13 -0
- package/dist/packages/shared/src/helpers/createComponent.d.ts +7 -0
- package/dist/packages/shared/src/helpers/createForm.d.ts +2 -0
- package/dist/packages/shared/src/helpers/iteration.d.ts +11 -0
- package/dist/packages/shared/src/helpers/map.d.ts +370 -0
- package/dist/packages/shared/src/helpers/object.d.ts +6 -0
- package/dist/packages/shared/src/helpers/rules.d.ts +1 -0
- package/dist/packages/shared/src/helpers/string.d.ts +12 -0
- package/dist/packages/shared/src/stores/app.d.ts +217 -0
- package/dist/packages/shared/src/types/types.d.ts +5 -0
- package/dist/priceTier-xXhsXzsB.js +87 -0
- package/dist/scheduler-B2Mo-xyA.js +473 -0
- package/dist/search-BAPEUu1R.js +15 -0
- package/dist/string-DpfFixWH.js +4 -0
- package/dist/toExcel-D_BNnNoP.js +1439 -0
- package/dist/tooltip-B5BiPMx9.js +32 -0
- package/dist/unit--oJkBunJ.js +370 -0
- package/dist/vuedraggable-CK8z7qA8.js +1728 -0
- package/package.json +55 -13
- package/dist/api/index.d.ts +0 -1
- package/dist/app.d.ts +0 -2
- package/dist/router/shared.d.ts +0 -2
- package/dist/stores/counter.d.ts +0 -13
- package/dist/tsconfig.app.tsbuildinfo +0 -1
- package/dist/views/PrintRoute/PrintRoute.vue.d.ts +0 -2
- /package/dist/{main.d.ts → apps/mf-menu/src/main.d.ts} +0 -0
- /package/dist/{router → apps/mf-menu/src/router}/index.d.ts +0 -0
|
@@ -0,0 +1,2660 @@
|
|
|
1
|
+
import { defineComponent as Me, computed as ye, ref as De, resolveComponent as Ie, createBlock as Ee, openBlock as be, unref as re, withCtx as ve, createElementVNode as me, toDisplayString as Qe, createVNode as de, createCommentVNode as et, createElementBlock as Ge, Fragment as We } from "vue";
|
|
2
|
+
import { D as Ne } from "./dayjs.min-CcDoWv_V.js";
|
|
3
|
+
import { A as we, B as Oe, u as tt, D as rt, y as Ze, G as Ve, H as nt, z as lt, I as Ye } from "./menu-NS-_m-8z.js";
|
|
4
|
+
import { l as dt } from "./discardConfirm-Br8AbO7y.js";
|
|
5
|
+
import { u as ct, a as ht, M as ft, w as Ue } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DJ70FzxC.js";
|
|
6
|
+
import { useCoreStore as pt, useI18n as _t } from "@feedmepos/mf-common";
|
|
7
|
+
import { useDialog as it, useDialogChild as mt, useSnackbar as at, useBreakpoints as gt, FmButtonVariant as Fe, FmButtonColorThemeVariant as Se } from "@feedmepos/ui-library";
|
|
8
|
+
import { _ as Pe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
9
|
+
import { _ as vt, a as Ke } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
10
|
+
import { _ as bt } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
11
|
+
import { u as yt, a as wt } from "./menu-BqPh15La.js";
|
|
12
|
+
import { u as kt } from "./item-DIYt3BTF.js";
|
|
13
|
+
import { _ as Xe, a as Et } from "./Product.vue_vue_type_script_setup_true_lang-CbcEfD6X.js";
|
|
14
|
+
import { L as $e } from "./LinkProductSideSheet-u1jj74-0.js";
|
|
15
|
+
import { _ as St } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BikIegit.js";
|
|
16
|
+
import { m as xt } from "./toExcel-D_BNnNoP.js";
|
|
17
|
+
var ze = { exports: {} }, At = ze.exports, qe;
|
|
18
|
+
function Tt() {
|
|
19
|
+
return qe || (qe = 1, function(ke, oe) {
|
|
20
|
+
(function(fe, m) {
|
|
21
|
+
m();
|
|
22
|
+
})(At, function() {
|
|
23
|
+
function fe(s, _) {
|
|
24
|
+
return typeof _ > "u" ? _ = { autoBom: !1 } : typeof _ != "object" && (console.warn("Deprecated: Expected third argument to be a object"), _ = { autoBom: !_ }), _.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type) ? new Blob(["\uFEFF", s], { type: s.type }) : s;
|
|
25
|
+
}
|
|
26
|
+
function m(s, _, v) {
|
|
27
|
+
var h = new XMLHttpRequest();
|
|
28
|
+
h.open("GET", s), h.responseType = "blob", h.onload = function() {
|
|
29
|
+
n(h.response, _, v);
|
|
30
|
+
}, h.onerror = function() {
|
|
31
|
+
console.error("could not download file");
|
|
32
|
+
}, h.send();
|
|
33
|
+
}
|
|
34
|
+
function N(s) {
|
|
35
|
+
var _ = new XMLHttpRequest();
|
|
36
|
+
_.open("HEAD", s, !1);
|
|
37
|
+
try {
|
|
38
|
+
_.send();
|
|
39
|
+
} catch {
|
|
40
|
+
}
|
|
41
|
+
return 200 <= _.status && 299 >= _.status;
|
|
42
|
+
}
|
|
43
|
+
function y(s) {
|
|
44
|
+
try {
|
|
45
|
+
s.dispatchEvent(new MouseEvent("click"));
|
|
46
|
+
} catch {
|
|
47
|
+
var _ = document.createEvent("MouseEvents");
|
|
48
|
+
_.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), s.dispatchEvent(_);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
var l = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof we == "object" && we.global === we ? we : void 0, o = l.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), n = l.saveAs || (typeof window != "object" || window !== l ? function() {
|
|
52
|
+
} : "download" in HTMLAnchorElement.prototype && !o ? function(s, _, v) {
|
|
53
|
+
var h = l.URL || l.webkitURL, g = document.createElement("a");
|
|
54
|
+
_ = _ || s.name || "download", g.download = _, g.rel = "noopener", typeof s == "string" ? (g.href = s, g.origin === location.origin ? y(g) : N(g.href) ? m(s, _, v) : y(g, g.target = "_blank")) : (g.href = h.createObjectURL(s), setTimeout(function() {
|
|
55
|
+
h.revokeObjectURL(g.href);
|
|
56
|
+
}, 4e4), setTimeout(function() {
|
|
57
|
+
y(g);
|
|
58
|
+
}, 0));
|
|
59
|
+
} : "msSaveOrOpenBlob" in navigator ? function(s, _, v) {
|
|
60
|
+
if (_ = _ || s.name || "download", typeof s != "string") navigator.msSaveOrOpenBlob(fe(s, v), _);
|
|
61
|
+
else if (N(s)) m(s, _, v);
|
|
62
|
+
else {
|
|
63
|
+
var h = document.createElement("a");
|
|
64
|
+
h.href = s, h.target = "_blank", setTimeout(function() {
|
|
65
|
+
y(h);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
} : function(s, _, v, h) {
|
|
69
|
+
if (h = h || open("", "_blank"), h && (h.document.title = h.document.body.innerText = "downloading..."), typeof s == "string") return m(s, _, v);
|
|
70
|
+
var g = s.type === "application/octet-stream", a = /constructor/i.test(l.HTMLElement) || l.safari, f = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
71
|
+
if ((f || g && a || o) && typeof FileReader < "u") {
|
|
72
|
+
var r = new FileReader();
|
|
73
|
+
r.onloadend = function() {
|
|
74
|
+
var p = r.result;
|
|
75
|
+
p = f ? p : p.replace(/^data:[^;]*;/, "data:attachment/file;"), h ? h.location.href = p : location = p, h = null;
|
|
76
|
+
}, r.readAsDataURL(s);
|
|
77
|
+
} else {
|
|
78
|
+
var d = l.URL || l.webkitURL, i = d.createObjectURL(s);
|
|
79
|
+
h ? h.location = i : location.href = i, h = null, setTimeout(function() {
|
|
80
|
+
d.revokeObjectURL(i);
|
|
81
|
+
}, 4e4);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
l.saveAs = n.saveAs = n, ke.exports = n;
|
|
85
|
+
});
|
|
86
|
+
}(ze)), ze.exports;
|
|
87
|
+
}
|
|
88
|
+
Tt();
|
|
89
|
+
var Le = { exports: {} }, Je;
|
|
90
|
+
function It() {
|
|
91
|
+
return Je || (Je = 1, function(ke, oe) {
|
|
92
|
+
var fe = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_6467ed65-b253-4092-ad3b-27ad4286191d", npm_package_scripts_dev_prod: "dotenv -e .env.prod -- vite --mode dev --port 5176", npm_package_dependencies__vue_devtools_api: "^6.5.0", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.18.5", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_dependencies__feedmepos_remy_vue_client: "0.1.3-beta.8", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies__rollup_plugin_node_resolve: "^16.0.0", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v18.20.8 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.13", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_6467ed65-b253-4092-ad3b-27ad4286191d", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_package_devDependencies_vite: "^6.2.2", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", MENU_BACKEND_URL: "https://menu-v4-dev.feedmeapi.com", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", npm_package_devDependencies_sass: "1.69.5", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies__feedmepos_core_legacy: "file:../../core-legacy-0.7.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-8.13", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", SYSTEMD_EXEC_PID: "709", npm_package_dependencies__feedmepos_ui_library: "1.5.4-beta.2", npm_package_dependencies_dayjs: "^1.11.12", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_dependencies_i18next: "^23.11.5", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.2.2", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "dotenv -e .env.dev pnpm build-only", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.25", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250406.1.0", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.0-rc.6", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", npm_package_devDependencies_vite_plugin_vue_devtools: "^7.3.5", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.8/x64", JOURNAL_STREAM: "8:6301", GITHUB_WORKFLOW: "Publish mf-menu dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_dependencies_vite_svg_loader: "^5.1.0", npm_package_devDependencies__rollup_plugin_commonjs: "^28.0.2", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "14440385589", STATS_VMFE: "true", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "5f0d51f827ac65960823d4ba417992a9ce8b7baf", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "development", FIREBASE_STORAGE_BUCKET: "image.feedmedev.cc", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^4.5.2", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", npm_package_dependencies_axios: "^1.7.2", npm_package_devDependencies__types_pouchdb_core: "^7.0.15", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_f30cd063-e16e-410f-8b7e-b50e2541d891", INVOCATION_ID: "bf79b6e42f1a414584147aebbdd94f74", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", npm_package_name: "@feedmepos/mf-menu", npm_package_dependencies_file_saver: "^2.0.5", GITHUB_ACTION: "__run_4", GITHUB_RUN_NUMBER: "329", GITHUB_TRIGGERING_ACTOR: "mmjang", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --no-git-checks", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_advanced_cropper: "^2.8.9", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.49.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 454", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/portal", STATS_D_D: "false", npm_package_exports___style_css: "./dist/style.css", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "2.12.28", npm_lifecycle_script: "vite build --mode fmmf", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", STATS_PIP: "false", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.2.3_@types+node@18.19.50_jiti@1.21.6_sass@1.69.5_terser@5.32.0_yaml@2.5.1/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.2.3_@types+node@18.19.50_jiti@1.21.6_sass@1.69.5_terser@5.32.0_yaml@2.5.1/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.2.3_@types+node@18.19.50_jiti@1.21.6_sass@1.69.5_terser@5.32.0_yaml@2.5.1/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.2/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.2/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.0.54", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && echo 'Build completed'", npm_package_dependencies__feedmepos_mf_inventory_portal: "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz", npm_package_dependencies_vuedraggable: "^4.1.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_vue_i18n: "10.0.5", npm_package_dependencies_dotenv_cli: "^7.4.2", npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "5f0d51f827ac65960823d4ba417992a9ce8b7baf", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", npm_package_dependencies_vue_router: "^4.2.5", npm_package_dependencies_canvas: "^2.9.3", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "mmjang", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_6467ed65-b253-4092-ad3b-27ad4286191d", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "5045203", RUNNER_WORKSPACE: "/home/runner/work/portal", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_6467ed65-b253-4092-ad3b-27ad4286191d", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", npm_package_dependencies__feedmepos_menu: "1.5.11", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_6467ed65-b253-4092-ad3b-27ad4286191d", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production", LAUNCH_EDITOR: "code" } };
|
|
93
|
+
/*!
|
|
94
|
+
|
|
95
|
+
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
96
|
+
<http://stuartk.com/jszip>
|
|
97
|
+
|
|
98
|
+
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
99
|
+
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
|
100
|
+
|
|
101
|
+
JSZip uses the library pako released under the MIT license :
|
|
102
|
+
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
103
|
+
*/
|
|
104
|
+
(function(m) {
|
|
105
|
+
ke.exports = m();
|
|
106
|
+
})(function() {
|
|
107
|
+
return function m(N, y, l) {
|
|
108
|
+
function o(_, v) {
|
|
109
|
+
if (!y[_]) {
|
|
110
|
+
if (!N[_]) {
|
|
111
|
+
var h = typeof Oe == "function" && Oe;
|
|
112
|
+
if (!v && h) return h(_, !0);
|
|
113
|
+
if (n) return n(_, !0);
|
|
114
|
+
var g = new Error("Cannot find module '" + _ + "'");
|
|
115
|
+
throw g.code = "MODULE_NOT_FOUND", g;
|
|
116
|
+
}
|
|
117
|
+
var a = y[_] = { exports: {} };
|
|
118
|
+
N[_][0].call(a.exports, function(f) {
|
|
119
|
+
var r = N[_][1][f];
|
|
120
|
+
return o(r || f);
|
|
121
|
+
}, a, a.exports, m, N, y, l);
|
|
122
|
+
}
|
|
123
|
+
return y[_].exports;
|
|
124
|
+
}
|
|
125
|
+
for (var n = typeof Oe == "function" && Oe, s = 0; s < l.length; s++) o(l[s]);
|
|
126
|
+
return o;
|
|
127
|
+
}({ 1: [function(m, N, y) {
|
|
128
|
+
var l = m("./utils"), o = m("./support"), n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
129
|
+
y.encode = function(s) {
|
|
130
|
+
for (var _, v, h, g, a, f, r, d = [], i = 0, p = s.length, w = p, S = l.getTypeOf(s) !== "string"; i < s.length; ) w = p - i, h = S ? (_ = s[i++], v = i < p ? s[i++] : 0, i < p ? s[i++] : 0) : (_ = s.charCodeAt(i++), v = i < p ? s.charCodeAt(i++) : 0, i < p ? s.charCodeAt(i++) : 0), g = _ >> 2, a = (3 & _) << 4 | v >> 4, f = 1 < w ? (15 & v) << 2 | h >> 6 : 64, r = 2 < w ? 63 & h : 64, d.push(n.charAt(g) + n.charAt(a) + n.charAt(f) + n.charAt(r));
|
|
131
|
+
return d.join("");
|
|
132
|
+
}, y.decode = function(s) {
|
|
133
|
+
var _, v, h, g, a, f, r = 0, d = 0, i = "data:";
|
|
134
|
+
if (s.substr(0, i.length) === i) throw new Error("Invalid base64 input, it looks like a data url.");
|
|
135
|
+
var p, w = 3 * (s = s.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
136
|
+
if (s.charAt(s.length - 1) === n.charAt(64) && w--, s.charAt(s.length - 2) === n.charAt(64) && w--, w % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
|
|
137
|
+
for (p = o.uint8array ? new Uint8Array(0 | w) : new Array(0 | w); r < s.length; ) _ = n.indexOf(s.charAt(r++)) << 2 | (g = n.indexOf(s.charAt(r++))) >> 4, v = (15 & g) << 4 | (a = n.indexOf(s.charAt(r++))) >> 2, h = (3 & a) << 6 | (f = n.indexOf(s.charAt(r++))), p[d++] = _, a !== 64 && (p[d++] = v), f !== 64 && (p[d++] = h);
|
|
138
|
+
return p;
|
|
139
|
+
};
|
|
140
|
+
}, { "./support": 30, "./utils": 32 }], 2: [function(m, N, y) {
|
|
141
|
+
var l = m("./external"), o = m("./stream/DataWorker"), n = m("./stream/Crc32Probe"), s = m("./stream/DataLengthProbe");
|
|
142
|
+
function _(v, h, g, a, f) {
|
|
143
|
+
this.compressedSize = v, this.uncompressedSize = h, this.crc32 = g, this.compression = a, this.compressedContent = f;
|
|
144
|
+
}
|
|
145
|
+
_.prototype = { getContentWorker: function() {
|
|
146
|
+
var v = new o(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")), h = this;
|
|
147
|
+
return v.on("end", function() {
|
|
148
|
+
if (this.streamInfo.data_length !== h.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
|
|
149
|
+
}), v;
|
|
150
|
+
}, getCompressedWorker: function() {
|
|
151
|
+
return new o(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
|
|
152
|
+
} }, _.createWorkerFrom = function(v, h, g) {
|
|
153
|
+
return v.pipe(new n()).pipe(new s("uncompressedSize")).pipe(h.compressWorker(g)).pipe(new s("compressedSize")).withStreamInfo("compression", h);
|
|
154
|
+
}, N.exports = _;
|
|
155
|
+
}, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(m, N, y) {
|
|
156
|
+
var l = m("./stream/GenericWorker");
|
|
157
|
+
y.STORE = { magic: "\0\0", compressWorker: function() {
|
|
158
|
+
return new l("STORE compression");
|
|
159
|
+
}, uncompressWorker: function() {
|
|
160
|
+
return new l("STORE decompression");
|
|
161
|
+
} }, y.DEFLATE = m("./flate");
|
|
162
|
+
}, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(m, N, y) {
|
|
163
|
+
var l = m("./utils"), o = function() {
|
|
164
|
+
for (var n, s = [], _ = 0; _ < 256; _++) {
|
|
165
|
+
n = _;
|
|
166
|
+
for (var v = 0; v < 8; v++) n = 1 & n ? 3988292384 ^ n >>> 1 : n >>> 1;
|
|
167
|
+
s[_] = n;
|
|
168
|
+
}
|
|
169
|
+
return s;
|
|
170
|
+
}();
|
|
171
|
+
N.exports = function(n, s) {
|
|
172
|
+
return n !== void 0 && n.length ? l.getTypeOf(n) !== "string" ? function(_, v, h, g) {
|
|
173
|
+
var a = o, f = g + h;
|
|
174
|
+
_ ^= -1;
|
|
175
|
+
for (var r = g; r < f; r++) _ = _ >>> 8 ^ a[255 & (_ ^ v[r])];
|
|
176
|
+
return -1 ^ _;
|
|
177
|
+
}(0 | s, n, n.length, 0) : function(_, v, h, g) {
|
|
178
|
+
var a = o, f = g + h;
|
|
179
|
+
_ ^= -1;
|
|
180
|
+
for (var r = g; r < f; r++) _ = _ >>> 8 ^ a[255 & (_ ^ v.charCodeAt(r))];
|
|
181
|
+
return -1 ^ _;
|
|
182
|
+
}(0 | s, n, n.length, 0) : 0;
|
|
183
|
+
};
|
|
184
|
+
}, { "./utils": 32 }], 5: [function(m, N, y) {
|
|
185
|
+
y.base64 = !1, y.binary = !1, y.dir = !1, y.createFolders = !0, y.date = null, y.compression = null, y.compressionOptions = null, y.comment = null, y.unixPermissions = null, y.dosPermissions = null;
|
|
186
|
+
}, {}], 6: [function(m, N, y) {
|
|
187
|
+
var l = null;
|
|
188
|
+
l = typeof Promise < "u" ? Promise : m("lie"), N.exports = { Promise: l };
|
|
189
|
+
}, { lie: 37 }], 7: [function(m, N, y) {
|
|
190
|
+
var l = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", o = m("pako"), n = m("./utils"), s = m("./stream/GenericWorker"), _ = l ? "uint8array" : "array";
|
|
191
|
+
function v(h, g) {
|
|
192
|
+
s.call(this, "FlateWorker/" + h), this._pako = null, this._pakoAction = h, this._pakoOptions = g, this.meta = {};
|
|
193
|
+
}
|
|
194
|
+
y.magic = "\b\0", n.inherits(v, s), v.prototype.processChunk = function(h) {
|
|
195
|
+
this.meta = h.meta, this._pako === null && this._createPako(), this._pako.push(n.transformTo(_, h.data), !1);
|
|
196
|
+
}, v.prototype.flush = function() {
|
|
197
|
+
s.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
|
|
198
|
+
}, v.prototype.cleanUp = function() {
|
|
199
|
+
s.prototype.cleanUp.call(this), this._pako = null;
|
|
200
|
+
}, v.prototype._createPako = function() {
|
|
201
|
+
this._pako = new o[this._pakoAction]({ raw: !0, level: this._pakoOptions.level || -1 });
|
|
202
|
+
var h = this;
|
|
203
|
+
this._pako.onData = function(g) {
|
|
204
|
+
h.push({ data: g, meta: h.meta });
|
|
205
|
+
};
|
|
206
|
+
}, y.compressWorker = function(h) {
|
|
207
|
+
return new v("Deflate", h);
|
|
208
|
+
}, y.uncompressWorker = function() {
|
|
209
|
+
return new v("Inflate", {});
|
|
210
|
+
};
|
|
211
|
+
}, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(m, N, y) {
|
|
212
|
+
function l(a, f) {
|
|
213
|
+
var r, d = "";
|
|
214
|
+
for (r = 0; r < f; r++) d += String.fromCharCode(255 & a), a >>>= 8;
|
|
215
|
+
return d;
|
|
216
|
+
}
|
|
217
|
+
function o(a, f, r, d, i, p) {
|
|
218
|
+
var w, S, E = a.file, B = a.compression, C = p !== _.utf8encode, L = n.transformTo("string", p(E.name)), R = n.transformTo("string", _.utf8encode(E.name)), H = E.comment, X = n.transformTo("string", p(H)), b = n.transformTo("string", _.utf8encode(H)), O = R.length !== E.name.length, t = b.length !== H.length, D = "", q = "", P = "", J = E.dir, M = E.date, $ = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
219
|
+
f && !r || ($.crc32 = a.crc32, $.compressedSize = a.compressedSize, $.uncompressedSize = a.uncompressedSize);
|
|
220
|
+
var T = 0;
|
|
221
|
+
f && (T |= 8), C || !O && !t || (T |= 2048);
|
|
222
|
+
var A = 0, K = 0;
|
|
223
|
+
J && (A |= 16), i === "UNIX" ? (K = 798, A |= function(W, ie) {
|
|
224
|
+
var le = W;
|
|
225
|
+
return W || (le = ie ? 16893 : 33204), (65535 & le) << 16;
|
|
226
|
+
}(E.unixPermissions, J)) : (K = 20, A |= function(W) {
|
|
227
|
+
return 63 & (W || 0);
|
|
228
|
+
}(E.dosPermissions)), w = M.getUTCHours(), w <<= 6, w |= M.getUTCMinutes(), w <<= 5, w |= M.getUTCSeconds() / 2, S = M.getUTCFullYear() - 1980, S <<= 4, S |= M.getUTCMonth() + 1, S <<= 5, S |= M.getUTCDate(), O && (q = l(1, 1) + l(v(L), 4) + R, D += "up" + l(q.length, 2) + q), t && (P = l(1, 1) + l(v(X), 4) + b, D += "uc" + l(P.length, 2) + P);
|
|
229
|
+
var Z = "";
|
|
230
|
+
return Z += `
|
|
231
|
+
\0`, Z += l(T, 2), Z += B.magic, Z += l(w, 2), Z += l(S, 2), Z += l($.crc32, 4), Z += l($.compressedSize, 4), Z += l($.uncompressedSize, 4), Z += l(L.length, 2), Z += l(D.length, 2), { fileRecord: h.LOCAL_FILE_HEADER + Z + L + D, dirRecord: h.CENTRAL_FILE_HEADER + l(K, 2) + Z + l(X.length, 2) + "\0\0\0\0" + l(A, 4) + l(d, 4) + L + D + X };
|
|
232
|
+
}
|
|
233
|
+
var n = m("../utils"), s = m("../stream/GenericWorker"), _ = m("../utf8"), v = m("../crc32"), h = m("../signature");
|
|
234
|
+
function g(a, f, r, d) {
|
|
235
|
+
s.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = f, this.zipPlatform = r, this.encodeFileName = d, this.streamFiles = a, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
|
|
236
|
+
}
|
|
237
|
+
n.inherits(g, s), g.prototype.push = function(a) {
|
|
238
|
+
var f = a.meta.percent || 0, r = this.entriesCount, d = this._sources.length;
|
|
239
|
+
this.accumulate ? this.contentBuffer.push(a) : (this.bytesWritten += a.data.length, s.prototype.push.call(this, { data: a.data, meta: { currentFile: this.currentFile, percent: r ? (f + 100 * (r - d - 1)) / r : 100 } }));
|
|
240
|
+
}, g.prototype.openedSource = function(a) {
|
|
241
|
+
this.currentSourceOffset = this.bytesWritten, this.currentFile = a.file.name;
|
|
242
|
+
var f = this.streamFiles && !a.file.dir;
|
|
243
|
+
if (f) {
|
|
244
|
+
var r = o(a, f, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
245
|
+
this.push({ data: r.fileRecord, meta: { percent: 0 } });
|
|
246
|
+
} else this.accumulate = !0;
|
|
247
|
+
}, g.prototype.closedSource = function(a) {
|
|
248
|
+
this.accumulate = !1;
|
|
249
|
+
var f = this.streamFiles && !a.file.dir, r = o(a, f, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
250
|
+
if (this.dirRecords.push(r.dirRecord), f) this.push({ data: function(d) {
|
|
251
|
+
return h.DATA_DESCRIPTOR + l(d.crc32, 4) + l(d.compressedSize, 4) + l(d.uncompressedSize, 4);
|
|
252
|
+
}(a), meta: { percent: 100 } });
|
|
253
|
+
else for (this.push({ data: r.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
254
|
+
this.currentFile = null;
|
|
255
|
+
}, g.prototype.flush = function() {
|
|
256
|
+
for (var a = this.bytesWritten, f = 0; f < this.dirRecords.length; f++) this.push({ data: this.dirRecords[f], meta: { percent: 100 } });
|
|
257
|
+
var r = this.bytesWritten - a, d = function(i, p, w, S, E) {
|
|
258
|
+
var B = n.transformTo("string", E(S));
|
|
259
|
+
return h.CENTRAL_DIRECTORY_END + "\0\0\0\0" + l(i, 2) + l(i, 2) + l(p, 4) + l(w, 4) + l(B.length, 2) + B;
|
|
260
|
+
}(this.dirRecords.length, r, a, this.zipComment, this.encodeFileName);
|
|
261
|
+
this.push({ data: d, meta: { percent: 100 } });
|
|
262
|
+
}, g.prototype.prepareNextSource = function() {
|
|
263
|
+
this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
|
|
264
|
+
}, g.prototype.registerPrevious = function(a) {
|
|
265
|
+
this._sources.push(a);
|
|
266
|
+
var f = this;
|
|
267
|
+
return a.on("data", function(r) {
|
|
268
|
+
f.processChunk(r);
|
|
269
|
+
}), a.on("end", function() {
|
|
270
|
+
f.closedSource(f.previous.streamInfo), f._sources.length ? f.prepareNextSource() : f.end();
|
|
271
|
+
}), a.on("error", function(r) {
|
|
272
|
+
f.error(r);
|
|
273
|
+
}), this;
|
|
274
|
+
}, g.prototype.resume = function() {
|
|
275
|
+
return !!s.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), !0));
|
|
276
|
+
}, g.prototype.error = function(a) {
|
|
277
|
+
var f = this._sources;
|
|
278
|
+
if (!s.prototype.error.call(this, a)) return !1;
|
|
279
|
+
for (var r = 0; r < f.length; r++) try {
|
|
280
|
+
f[r].error(a);
|
|
281
|
+
} catch {
|
|
282
|
+
}
|
|
283
|
+
return !0;
|
|
284
|
+
}, g.prototype.lock = function() {
|
|
285
|
+
s.prototype.lock.call(this);
|
|
286
|
+
for (var a = this._sources, f = 0; f < a.length; f++) a[f].lock();
|
|
287
|
+
}, N.exports = g;
|
|
288
|
+
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(m, N, y) {
|
|
289
|
+
var l = m("../compressions"), o = m("./ZipFileWorker");
|
|
290
|
+
y.generateWorker = function(n, s, _) {
|
|
291
|
+
var v = new o(s.streamFiles, _, s.platform, s.encodeFileName), h = 0;
|
|
292
|
+
try {
|
|
293
|
+
n.forEach(function(g, a) {
|
|
294
|
+
h++;
|
|
295
|
+
var f = function(p, w) {
|
|
296
|
+
var S = p || w, E = l[S];
|
|
297
|
+
if (!E) throw new Error(S + " is not a valid compression method !");
|
|
298
|
+
return E;
|
|
299
|
+
}(a.options.compression, s.compression), r = a.options.compressionOptions || s.compressionOptions || {}, d = a.dir, i = a.date;
|
|
300
|
+
a._compressWorker(f, r).withStreamInfo("file", { name: g, dir: d, date: i, comment: a.comment || "", unixPermissions: a.unixPermissions, dosPermissions: a.dosPermissions }).pipe(v);
|
|
301
|
+
}), v.entriesCount = h;
|
|
302
|
+
} catch (g) {
|
|
303
|
+
v.error(g);
|
|
304
|
+
}
|
|
305
|
+
return v;
|
|
306
|
+
};
|
|
307
|
+
}, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(m, N, y) {
|
|
308
|
+
function l() {
|
|
309
|
+
if (!(this instanceof l)) return new l();
|
|
310
|
+
if (arguments.length) throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
311
|
+
this.files = /* @__PURE__ */ Object.create(null), this.comment = null, this.root = "", this.clone = function() {
|
|
312
|
+
var o = new l();
|
|
313
|
+
for (var n in this) typeof this[n] != "function" && (o[n] = this[n]);
|
|
314
|
+
return o;
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
(l.prototype = m("./object")).loadAsync = m("./load"), l.support = m("./support"), l.defaults = m("./defaults"), l.version = "3.10.1", l.loadAsync = function(o, n) {
|
|
318
|
+
return new l().loadAsync(o, n);
|
|
319
|
+
}, l.external = m("./external"), N.exports = l;
|
|
320
|
+
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(m, N, y) {
|
|
321
|
+
var l = m("./utils"), o = m("./external"), n = m("./utf8"), s = m("./zipEntries"), _ = m("./stream/Crc32Probe"), v = m("./nodejsUtils");
|
|
322
|
+
function h(g) {
|
|
323
|
+
return new o.Promise(function(a, f) {
|
|
324
|
+
var r = g.decompressed.getContentWorker().pipe(new _());
|
|
325
|
+
r.on("error", function(d) {
|
|
326
|
+
f(d);
|
|
327
|
+
}).on("end", function() {
|
|
328
|
+
r.streamInfo.crc32 !== g.decompressed.crc32 ? f(new Error("Corrupted zip : CRC32 mismatch")) : a();
|
|
329
|
+
}).resume();
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
N.exports = function(g, a) {
|
|
333
|
+
var f = this;
|
|
334
|
+
return a = l.extend(a || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: n.utf8decode }), v.isNode && v.isStream(g) ? o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : l.prepareContent("the loaded zip file", g, !0, a.optimizedBinaryString, a.base64).then(function(r) {
|
|
335
|
+
var d = new s(a);
|
|
336
|
+
return d.load(r), d;
|
|
337
|
+
}).then(function(r) {
|
|
338
|
+
var d = [o.Promise.resolve(r)], i = r.files;
|
|
339
|
+
if (a.checkCRC32) for (var p = 0; p < i.length; p++) d.push(h(i[p]));
|
|
340
|
+
return o.Promise.all(d);
|
|
341
|
+
}).then(function(r) {
|
|
342
|
+
for (var d = r.shift(), i = d.files, p = 0; p < i.length; p++) {
|
|
343
|
+
var w = i[p], S = w.fileNameStr, E = l.resolve(w.fileNameStr);
|
|
344
|
+
f.file(E, w.decompressed, { binary: !0, optimizedBinaryString: !0, date: w.date, dir: w.dir, comment: w.fileCommentStr.length ? w.fileCommentStr : null, unixPermissions: w.unixPermissions, dosPermissions: w.dosPermissions, createFolders: a.createFolders }), w.dir || (f.file(E).unsafeOriginalName = S);
|
|
345
|
+
}
|
|
346
|
+
return d.zipComment.length && (f.comment = d.zipComment), f;
|
|
347
|
+
});
|
|
348
|
+
};
|
|
349
|
+
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(m, N, y) {
|
|
350
|
+
var l = m("../utils"), o = m("../stream/GenericWorker");
|
|
351
|
+
function n(s, _) {
|
|
352
|
+
o.call(this, "Nodejs stream input adapter for " + s), this._upstreamEnded = !1, this._bindStream(_);
|
|
353
|
+
}
|
|
354
|
+
l.inherits(n, o), n.prototype._bindStream = function(s) {
|
|
355
|
+
var _ = this;
|
|
356
|
+
(this._stream = s).pause(), s.on("data", function(v) {
|
|
357
|
+
_.push({ data: v, meta: { percent: 0 } });
|
|
358
|
+
}).on("error", function(v) {
|
|
359
|
+
_.isPaused ? this.generatedError = v : _.error(v);
|
|
360
|
+
}).on("end", function() {
|
|
361
|
+
_.isPaused ? _._upstreamEnded = !0 : _.end();
|
|
362
|
+
});
|
|
363
|
+
}, n.prototype.pause = function() {
|
|
364
|
+
return !!o.prototype.pause.call(this) && (this._stream.pause(), !0);
|
|
365
|
+
}, n.prototype.resume = function() {
|
|
366
|
+
return !!o.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
|
|
367
|
+
}, N.exports = n;
|
|
368
|
+
}, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(m, N, y) {
|
|
369
|
+
var l = m("readable-stream").Readable;
|
|
370
|
+
function o(n, s, _) {
|
|
371
|
+
l.call(this, s), this._helper = n;
|
|
372
|
+
var v = this;
|
|
373
|
+
n.on("data", function(h, g) {
|
|
374
|
+
v.push(h) || v._helper.pause(), _ && _(g);
|
|
375
|
+
}).on("error", function(h) {
|
|
376
|
+
v.emit("error", h);
|
|
377
|
+
}).on("end", function() {
|
|
378
|
+
v.push(null);
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
m("../utils").inherits(o, l), o.prototype._read = function() {
|
|
382
|
+
this._helper.resume();
|
|
383
|
+
}, N.exports = o;
|
|
384
|
+
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(m, N, y) {
|
|
385
|
+
N.exports = { isNode: typeof Buffer < "u", newBufferFrom: function(l, o) {
|
|
386
|
+
if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(l, o);
|
|
387
|
+
if (typeof l == "number") throw new Error('The "data" argument must not be a number');
|
|
388
|
+
return new Buffer(l, o);
|
|
389
|
+
}, allocBuffer: function(l) {
|
|
390
|
+
if (Buffer.alloc) return Buffer.alloc(l);
|
|
391
|
+
var o = new Buffer(l);
|
|
392
|
+
return o.fill(0), o;
|
|
393
|
+
}, isBuffer: function(l) {
|
|
394
|
+
return Buffer.isBuffer(l);
|
|
395
|
+
}, isStream: function(l) {
|
|
396
|
+
return l && typeof l.on == "function" && typeof l.pause == "function" && typeof l.resume == "function";
|
|
397
|
+
} };
|
|
398
|
+
}, {}], 15: [function(m, N, y) {
|
|
399
|
+
function l(E, B, C) {
|
|
400
|
+
var L, R = n.getTypeOf(B), H = n.extend(C || {}, v);
|
|
401
|
+
H.date = H.date || /* @__PURE__ */ new Date(), H.compression !== null && (H.compression = H.compression.toUpperCase()), typeof H.unixPermissions == "string" && (H.unixPermissions = parseInt(H.unixPermissions, 8)), H.unixPermissions && 16384 & H.unixPermissions && (H.dir = !0), H.dosPermissions && 16 & H.dosPermissions && (H.dir = !0), H.dir && (E = i(E)), H.createFolders && (L = d(E)) && p.call(this, L, !0);
|
|
402
|
+
var X = R === "string" && H.binary === !1 && H.base64 === !1;
|
|
403
|
+
C && C.binary !== void 0 || (H.binary = !X), (B instanceof h && B.uncompressedSize === 0 || H.dir || !B || B.length === 0) && (H.base64 = !1, H.binary = !0, B = "", H.compression = "STORE", R = "string");
|
|
404
|
+
var b = null;
|
|
405
|
+
b = B instanceof h || B instanceof s ? B : f.isNode && f.isStream(B) ? new r(E, B) : n.prepareContent(E, B, H.binary, H.optimizedBinaryString, H.base64);
|
|
406
|
+
var O = new g(E, b, H);
|
|
407
|
+
this.files[E] = O;
|
|
408
|
+
}
|
|
409
|
+
var o = m("./utf8"), n = m("./utils"), s = m("./stream/GenericWorker"), _ = m("./stream/StreamHelper"), v = m("./defaults"), h = m("./compressedObject"), g = m("./zipObject"), a = m("./generate"), f = m("./nodejsUtils"), r = m("./nodejs/NodejsStreamInputAdapter"), d = function(E) {
|
|
410
|
+
E.slice(-1) === "/" && (E = E.substring(0, E.length - 1));
|
|
411
|
+
var B = E.lastIndexOf("/");
|
|
412
|
+
return 0 < B ? E.substring(0, B) : "";
|
|
413
|
+
}, i = function(E) {
|
|
414
|
+
return E.slice(-1) !== "/" && (E += "/"), E;
|
|
415
|
+
}, p = function(E, B) {
|
|
416
|
+
return B = B !== void 0 ? B : v.createFolders, E = i(E), this.files[E] || l.call(this, E, null, { dir: !0, createFolders: B }), this.files[E];
|
|
417
|
+
};
|
|
418
|
+
function w(E) {
|
|
419
|
+
return Object.prototype.toString.call(E) === "[object RegExp]";
|
|
420
|
+
}
|
|
421
|
+
var S = { load: function() {
|
|
422
|
+
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
423
|
+
}, forEach: function(E) {
|
|
424
|
+
var B, C, L;
|
|
425
|
+
for (B in this.files) L = this.files[B], (C = B.slice(this.root.length, B.length)) && B.slice(0, this.root.length) === this.root && E(C, L);
|
|
426
|
+
}, filter: function(E) {
|
|
427
|
+
var B = [];
|
|
428
|
+
return this.forEach(function(C, L) {
|
|
429
|
+
E(C, L) && B.push(L);
|
|
430
|
+
}), B;
|
|
431
|
+
}, file: function(E, B, C) {
|
|
432
|
+
if (arguments.length !== 1) return E = this.root + E, l.call(this, E, B, C), this;
|
|
433
|
+
if (w(E)) {
|
|
434
|
+
var L = E;
|
|
435
|
+
return this.filter(function(H, X) {
|
|
436
|
+
return !X.dir && L.test(H);
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
var R = this.files[this.root + E];
|
|
440
|
+
return R && !R.dir ? R : null;
|
|
441
|
+
}, folder: function(E) {
|
|
442
|
+
if (!E) return this;
|
|
443
|
+
if (w(E)) return this.filter(function(R, H) {
|
|
444
|
+
return H.dir && E.test(R);
|
|
445
|
+
});
|
|
446
|
+
var B = this.root + E, C = p.call(this, B), L = this.clone();
|
|
447
|
+
return L.root = C.name, L;
|
|
448
|
+
}, remove: function(E) {
|
|
449
|
+
E = this.root + E;
|
|
450
|
+
var B = this.files[E];
|
|
451
|
+
if (B || (E.slice(-1) !== "/" && (E += "/"), B = this.files[E]), B && !B.dir) delete this.files[E];
|
|
452
|
+
else for (var C = this.filter(function(R, H) {
|
|
453
|
+
return H.name.slice(0, E.length) === E;
|
|
454
|
+
}), L = 0; L < C.length; L++) delete this.files[C[L].name];
|
|
455
|
+
return this;
|
|
456
|
+
}, generate: function() {
|
|
457
|
+
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
458
|
+
}, generateInternalStream: function(E) {
|
|
459
|
+
var B, C = {};
|
|
460
|
+
try {
|
|
461
|
+
if ((C = n.extend(E || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: o.utf8encode })).type = C.type.toLowerCase(), C.compression = C.compression.toUpperCase(), C.type === "binarystring" && (C.type = "string"), !C.type) throw new Error("No output type specified.");
|
|
462
|
+
n.checkSupport(C.type), C.platform !== "darwin" && C.platform !== "freebsd" && C.platform !== "linux" && C.platform !== "sunos" || (C.platform = "UNIX"), C.platform === "win32" && (C.platform = "DOS");
|
|
463
|
+
var L = C.comment || this.comment || "";
|
|
464
|
+
B = a.generateWorker(this, C, L);
|
|
465
|
+
} catch (R) {
|
|
466
|
+
(B = new s("error")).error(R);
|
|
467
|
+
}
|
|
468
|
+
return new _(B, C.type || "string", C.mimeType);
|
|
469
|
+
}, generateAsync: function(E, B) {
|
|
470
|
+
return this.generateInternalStream(E).accumulate(B);
|
|
471
|
+
}, generateNodeStream: function(E, B) {
|
|
472
|
+
return (E = E || {}).type || (E.type = "nodebuffer"), this.generateInternalStream(E).toNodejsStream(B);
|
|
473
|
+
} };
|
|
474
|
+
N.exports = S;
|
|
475
|
+
}, { "./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(m, N, y) {
|
|
476
|
+
N.exports = m("stream");
|
|
477
|
+
}, { stream: void 0 }], 17: [function(m, N, y) {
|
|
478
|
+
var l = m("./DataReader");
|
|
479
|
+
function o(n) {
|
|
480
|
+
l.call(this, n);
|
|
481
|
+
for (var s = 0; s < this.data.length; s++) n[s] = 255 & n[s];
|
|
482
|
+
}
|
|
483
|
+
m("../utils").inherits(o, l), o.prototype.byteAt = function(n) {
|
|
484
|
+
return this.data[this.zero + n];
|
|
485
|
+
}, o.prototype.lastIndexOfSignature = function(n) {
|
|
486
|
+
for (var s = n.charCodeAt(0), _ = n.charCodeAt(1), v = n.charCodeAt(2), h = n.charCodeAt(3), g = this.length - 4; 0 <= g; --g) if (this.data[g] === s && this.data[g + 1] === _ && this.data[g + 2] === v && this.data[g + 3] === h) return g - this.zero;
|
|
487
|
+
return -1;
|
|
488
|
+
}, o.prototype.readAndCheckSignature = function(n) {
|
|
489
|
+
var s = n.charCodeAt(0), _ = n.charCodeAt(1), v = n.charCodeAt(2), h = n.charCodeAt(3), g = this.readData(4);
|
|
490
|
+
return s === g[0] && _ === g[1] && v === g[2] && h === g[3];
|
|
491
|
+
}, o.prototype.readData = function(n) {
|
|
492
|
+
if (this.checkOffset(n), n === 0) return [];
|
|
493
|
+
var s = this.data.slice(this.zero + this.index, this.zero + this.index + n);
|
|
494
|
+
return this.index += n, s;
|
|
495
|
+
}, N.exports = o;
|
|
496
|
+
}, { "../utils": 32, "./DataReader": 18 }], 18: [function(m, N, y) {
|
|
497
|
+
var l = m("../utils");
|
|
498
|
+
function o(n) {
|
|
499
|
+
this.data = n, this.length = n.length, this.index = 0, this.zero = 0;
|
|
500
|
+
}
|
|
501
|
+
o.prototype = { checkOffset: function(n) {
|
|
502
|
+
this.checkIndex(this.index + n);
|
|
503
|
+
}, checkIndex: function(n) {
|
|
504
|
+
if (this.length < this.zero + n || n < 0) throw new Error("End of data reached (data length = " + this.length + ", asked index = " + n + "). Corrupted zip ?");
|
|
505
|
+
}, setIndex: function(n) {
|
|
506
|
+
this.checkIndex(n), this.index = n;
|
|
507
|
+
}, skip: function(n) {
|
|
508
|
+
this.setIndex(this.index + n);
|
|
509
|
+
}, byteAt: function() {
|
|
510
|
+
}, readInt: function(n) {
|
|
511
|
+
var s, _ = 0;
|
|
512
|
+
for (this.checkOffset(n), s = this.index + n - 1; s >= this.index; s--) _ = (_ << 8) + this.byteAt(s);
|
|
513
|
+
return this.index += n, _;
|
|
514
|
+
}, readString: function(n) {
|
|
515
|
+
return l.transformTo("string", this.readData(n));
|
|
516
|
+
}, readData: function() {
|
|
517
|
+
}, lastIndexOfSignature: function() {
|
|
518
|
+
}, readAndCheckSignature: function() {
|
|
519
|
+
}, readDate: function() {
|
|
520
|
+
var n = this.readInt(4);
|
|
521
|
+
return new Date(Date.UTC(1980 + (n >> 25 & 127), (n >> 21 & 15) - 1, n >> 16 & 31, n >> 11 & 31, n >> 5 & 63, (31 & n) << 1));
|
|
522
|
+
} }, N.exports = o;
|
|
523
|
+
}, { "../utils": 32 }], 19: [function(m, N, y) {
|
|
524
|
+
var l = m("./Uint8ArrayReader");
|
|
525
|
+
function o(n) {
|
|
526
|
+
l.call(this, n);
|
|
527
|
+
}
|
|
528
|
+
m("../utils").inherits(o, l), o.prototype.readData = function(n) {
|
|
529
|
+
this.checkOffset(n);
|
|
530
|
+
var s = this.data.slice(this.zero + this.index, this.zero + this.index + n);
|
|
531
|
+
return this.index += n, s;
|
|
532
|
+
}, N.exports = o;
|
|
533
|
+
}, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(m, N, y) {
|
|
534
|
+
var l = m("./DataReader");
|
|
535
|
+
function o(n) {
|
|
536
|
+
l.call(this, n);
|
|
537
|
+
}
|
|
538
|
+
m("../utils").inherits(o, l), o.prototype.byteAt = function(n) {
|
|
539
|
+
return this.data.charCodeAt(this.zero + n);
|
|
540
|
+
}, o.prototype.lastIndexOfSignature = function(n) {
|
|
541
|
+
return this.data.lastIndexOf(n) - this.zero;
|
|
542
|
+
}, o.prototype.readAndCheckSignature = function(n) {
|
|
543
|
+
return n === this.readData(4);
|
|
544
|
+
}, o.prototype.readData = function(n) {
|
|
545
|
+
this.checkOffset(n);
|
|
546
|
+
var s = this.data.slice(this.zero + this.index, this.zero + this.index + n);
|
|
547
|
+
return this.index += n, s;
|
|
548
|
+
}, N.exports = o;
|
|
549
|
+
}, { "../utils": 32, "./DataReader": 18 }], 21: [function(m, N, y) {
|
|
550
|
+
var l = m("./ArrayReader");
|
|
551
|
+
function o(n) {
|
|
552
|
+
l.call(this, n);
|
|
553
|
+
}
|
|
554
|
+
m("../utils").inherits(o, l), o.prototype.readData = function(n) {
|
|
555
|
+
if (this.checkOffset(n), n === 0) return new Uint8Array(0);
|
|
556
|
+
var s = this.data.subarray(this.zero + this.index, this.zero + this.index + n);
|
|
557
|
+
return this.index += n, s;
|
|
558
|
+
}, N.exports = o;
|
|
559
|
+
}, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(m, N, y) {
|
|
560
|
+
var l = m("../utils"), o = m("../support"), n = m("./ArrayReader"), s = m("./StringReader"), _ = m("./NodeBufferReader"), v = m("./Uint8ArrayReader");
|
|
561
|
+
N.exports = function(h) {
|
|
562
|
+
var g = l.getTypeOf(h);
|
|
563
|
+
return l.checkSupport(g), g !== "string" || o.uint8array ? g === "nodebuffer" ? new _(h) : o.uint8array ? new v(l.transformTo("uint8array", h)) : new n(l.transformTo("array", h)) : new s(h);
|
|
564
|
+
};
|
|
565
|
+
}, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(m, N, y) {
|
|
566
|
+
y.LOCAL_FILE_HEADER = "PK", y.CENTRAL_FILE_HEADER = "PK", y.CENTRAL_DIRECTORY_END = "PK", y.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", y.ZIP64_CENTRAL_DIRECTORY_END = "PK", y.DATA_DESCRIPTOR = "PK\x07\b";
|
|
567
|
+
}, {}], 24: [function(m, N, y) {
|
|
568
|
+
var l = m("./GenericWorker"), o = m("../utils");
|
|
569
|
+
function n(s) {
|
|
570
|
+
l.call(this, "ConvertWorker to " + s), this.destType = s;
|
|
571
|
+
}
|
|
572
|
+
o.inherits(n, l), n.prototype.processChunk = function(s) {
|
|
573
|
+
this.push({ data: o.transformTo(this.destType, s.data), meta: s.meta });
|
|
574
|
+
}, N.exports = n;
|
|
575
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(m, N, y) {
|
|
576
|
+
var l = m("./GenericWorker"), o = m("../crc32");
|
|
577
|
+
function n() {
|
|
578
|
+
l.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
|
|
579
|
+
}
|
|
580
|
+
m("../utils").inherits(n, l), n.prototype.processChunk = function(s) {
|
|
581
|
+
this.streamInfo.crc32 = o(s.data, this.streamInfo.crc32 || 0), this.push(s);
|
|
582
|
+
}, N.exports = n;
|
|
583
|
+
}, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(m, N, y) {
|
|
584
|
+
var l = m("../utils"), o = m("./GenericWorker");
|
|
585
|
+
function n(s) {
|
|
586
|
+
o.call(this, "DataLengthProbe for " + s), this.propName = s, this.withStreamInfo(s, 0);
|
|
587
|
+
}
|
|
588
|
+
l.inherits(n, o), n.prototype.processChunk = function(s) {
|
|
589
|
+
if (s) {
|
|
590
|
+
var _ = this.streamInfo[this.propName] || 0;
|
|
591
|
+
this.streamInfo[this.propName] = _ + s.data.length;
|
|
592
|
+
}
|
|
593
|
+
o.prototype.processChunk.call(this, s);
|
|
594
|
+
}, N.exports = n;
|
|
595
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(m, N, y) {
|
|
596
|
+
var l = m("../utils"), o = m("./GenericWorker");
|
|
597
|
+
function n(s) {
|
|
598
|
+
o.call(this, "DataWorker");
|
|
599
|
+
var _ = this;
|
|
600
|
+
this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, s.then(function(v) {
|
|
601
|
+
_.dataIsReady = !0, _.data = v, _.max = v && v.length || 0, _.type = l.getTypeOf(v), _.isPaused || _._tickAndRepeat();
|
|
602
|
+
}, function(v) {
|
|
603
|
+
_.error(v);
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
l.inherits(n, o), n.prototype.cleanUp = function() {
|
|
607
|
+
o.prototype.cleanUp.call(this), this.data = null;
|
|
608
|
+
}, n.prototype.resume = function() {
|
|
609
|
+
return !!o.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, l.delay(this._tickAndRepeat, [], this)), !0);
|
|
610
|
+
}, n.prototype._tickAndRepeat = function() {
|
|
611
|
+
this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (l.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
|
|
612
|
+
}, n.prototype._tick = function() {
|
|
613
|
+
if (this.isPaused || this.isFinished) return !1;
|
|
614
|
+
var s = null, _ = Math.min(this.max, this.index + 16384);
|
|
615
|
+
if (this.index >= this.max) return this.end();
|
|
616
|
+
switch (this.type) {
|
|
617
|
+
case "string":
|
|
618
|
+
s = this.data.substring(this.index, _);
|
|
619
|
+
break;
|
|
620
|
+
case "uint8array":
|
|
621
|
+
s = this.data.subarray(this.index, _);
|
|
622
|
+
break;
|
|
623
|
+
case "array":
|
|
624
|
+
case "nodebuffer":
|
|
625
|
+
s = this.data.slice(this.index, _);
|
|
626
|
+
}
|
|
627
|
+
return this.index = _, this.push({ data: s, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
|
|
628
|
+
}, N.exports = n;
|
|
629
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(m, N, y) {
|
|
630
|
+
function l(o) {
|
|
631
|
+
this.name = o || "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;
|
|
632
|
+
}
|
|
633
|
+
l.prototype = { push: function(o) {
|
|
634
|
+
this.emit("data", o);
|
|
635
|
+
}, end: function() {
|
|
636
|
+
if (this.isFinished) return !1;
|
|
637
|
+
this.flush();
|
|
638
|
+
try {
|
|
639
|
+
this.emit("end"), this.cleanUp(), this.isFinished = !0;
|
|
640
|
+
} catch (o) {
|
|
641
|
+
this.emit("error", o);
|
|
642
|
+
}
|
|
643
|
+
return !0;
|
|
644
|
+
}, error: function(o) {
|
|
645
|
+
return !this.isFinished && (this.isPaused ? this.generatedError = o : (this.isFinished = !0, this.emit("error", o), this.previous && this.previous.error(o), this.cleanUp()), !0);
|
|
646
|
+
}, on: function(o, n) {
|
|
647
|
+
return this._listeners[o].push(n), this;
|
|
648
|
+
}, cleanUp: function() {
|
|
649
|
+
this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
|
|
650
|
+
}, emit: function(o, n) {
|
|
651
|
+
if (this._listeners[o]) for (var s = 0; s < this._listeners[o].length; s++) this._listeners[o][s].call(this, n);
|
|
652
|
+
}, pipe: function(o) {
|
|
653
|
+
return o.registerPrevious(this);
|
|
654
|
+
}, registerPrevious: function(o) {
|
|
655
|
+
if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
|
|
656
|
+
this.streamInfo = o.streamInfo, this.mergeStreamInfo(), this.previous = o;
|
|
657
|
+
var n = this;
|
|
658
|
+
return o.on("data", function(s) {
|
|
659
|
+
n.processChunk(s);
|
|
660
|
+
}), o.on("end", function() {
|
|
661
|
+
n.end();
|
|
662
|
+
}), o.on("error", function(s) {
|
|
663
|
+
n.error(s);
|
|
664
|
+
}), this;
|
|
665
|
+
}, pause: function() {
|
|
666
|
+
return !this.isPaused && !this.isFinished && (this.isPaused = !0, this.previous && this.previous.pause(), !0);
|
|
667
|
+
}, resume: function() {
|
|
668
|
+
if (!this.isPaused || this.isFinished) return !1;
|
|
669
|
+
var o = this.isPaused = !1;
|
|
670
|
+
return this.generatedError && (this.error(this.generatedError), o = !0), this.previous && this.previous.resume(), !o;
|
|
671
|
+
}, flush: function() {
|
|
672
|
+
}, processChunk: function(o) {
|
|
673
|
+
this.push(o);
|
|
674
|
+
}, withStreamInfo: function(o, n) {
|
|
675
|
+
return this.extraStreamInfo[o] = n, this.mergeStreamInfo(), this;
|
|
676
|
+
}, mergeStreamInfo: function() {
|
|
677
|
+
for (var o in this.extraStreamInfo) Object.prototype.hasOwnProperty.call(this.extraStreamInfo, o) && (this.streamInfo[o] = this.extraStreamInfo[o]);
|
|
678
|
+
}, lock: function() {
|
|
679
|
+
if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
|
|
680
|
+
this.isLocked = !0, this.previous && this.previous.lock();
|
|
681
|
+
}, toString: function() {
|
|
682
|
+
var o = "Worker " + this.name;
|
|
683
|
+
return this.previous ? this.previous + " -> " + o : o;
|
|
684
|
+
} }, N.exports = l;
|
|
685
|
+
}, {}], 29: [function(m, N, y) {
|
|
686
|
+
var l = m("../utils"), o = m("./ConvertWorker"), n = m("./GenericWorker"), s = m("../base64"), _ = m("../support"), v = m("../external"), h = null;
|
|
687
|
+
if (_.nodestream) try {
|
|
688
|
+
h = m("../nodejs/NodejsStreamOutputAdapter");
|
|
689
|
+
} catch {
|
|
690
|
+
}
|
|
691
|
+
function g(f, r) {
|
|
692
|
+
return new v.Promise(function(d, i) {
|
|
693
|
+
var p = [], w = f._internalType, S = f._outputType, E = f._mimeType;
|
|
694
|
+
f.on("data", function(B, C) {
|
|
695
|
+
p.push(B), r && r(C);
|
|
696
|
+
}).on("error", function(B) {
|
|
697
|
+
p = [], i(B);
|
|
698
|
+
}).on("end", function() {
|
|
699
|
+
try {
|
|
700
|
+
var B = function(C, L, R) {
|
|
701
|
+
switch (C) {
|
|
702
|
+
case "blob":
|
|
703
|
+
return l.newBlob(l.transformTo("arraybuffer", L), R);
|
|
704
|
+
case "base64":
|
|
705
|
+
return s.encode(L);
|
|
706
|
+
default:
|
|
707
|
+
return l.transformTo(C, L);
|
|
708
|
+
}
|
|
709
|
+
}(S, function(C, L) {
|
|
710
|
+
var R, H = 0, X = null, b = 0;
|
|
711
|
+
for (R = 0; R < L.length; R++) b += L[R].length;
|
|
712
|
+
switch (C) {
|
|
713
|
+
case "string":
|
|
714
|
+
return L.join("");
|
|
715
|
+
case "array":
|
|
716
|
+
return Array.prototype.concat.apply([], L);
|
|
717
|
+
case "uint8array":
|
|
718
|
+
for (X = new Uint8Array(b), R = 0; R < L.length; R++) X.set(L[R], H), H += L[R].length;
|
|
719
|
+
return X;
|
|
720
|
+
case "nodebuffer":
|
|
721
|
+
return Buffer.concat(L);
|
|
722
|
+
default:
|
|
723
|
+
throw new Error("concat : unsupported type '" + C + "'");
|
|
724
|
+
}
|
|
725
|
+
}(w, p), E);
|
|
726
|
+
d(B);
|
|
727
|
+
} catch (C) {
|
|
728
|
+
i(C);
|
|
729
|
+
}
|
|
730
|
+
p = [];
|
|
731
|
+
}).resume();
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
function a(f, r, d) {
|
|
735
|
+
var i = r;
|
|
736
|
+
switch (r) {
|
|
737
|
+
case "blob":
|
|
738
|
+
case "arraybuffer":
|
|
739
|
+
i = "uint8array";
|
|
740
|
+
break;
|
|
741
|
+
case "base64":
|
|
742
|
+
i = "string";
|
|
743
|
+
}
|
|
744
|
+
try {
|
|
745
|
+
this._internalType = i, this._outputType = r, this._mimeType = d, l.checkSupport(i), this._worker = f.pipe(new o(i)), f.lock();
|
|
746
|
+
} catch (p) {
|
|
747
|
+
this._worker = new n("error"), this._worker.error(p);
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
a.prototype = { accumulate: function(f) {
|
|
751
|
+
return g(this, f);
|
|
752
|
+
}, on: function(f, r) {
|
|
753
|
+
var d = this;
|
|
754
|
+
return f === "data" ? this._worker.on(f, function(i) {
|
|
755
|
+
r.call(d, i.data, i.meta);
|
|
756
|
+
}) : this._worker.on(f, function() {
|
|
757
|
+
l.delay(r, arguments, d);
|
|
758
|
+
}), this;
|
|
759
|
+
}, resume: function() {
|
|
760
|
+
return l.delay(this._worker.resume, [], this._worker), this;
|
|
761
|
+
}, pause: function() {
|
|
762
|
+
return this._worker.pause(), this;
|
|
763
|
+
}, toNodejsStream: function(f) {
|
|
764
|
+
if (l.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw new Error(this._outputType + " is not supported by this method");
|
|
765
|
+
return new h(this, { objectMode: this._outputType !== "nodebuffer" }, f);
|
|
766
|
+
} }, N.exports = a;
|
|
767
|
+
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(m, N, y) {
|
|
768
|
+
if (y.base64 = !0, y.array = !0, y.string = !0, y.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", y.nodebuffer = typeof Buffer < "u", y.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") y.blob = !1;
|
|
769
|
+
else {
|
|
770
|
+
var l = new ArrayBuffer(0);
|
|
771
|
+
try {
|
|
772
|
+
y.blob = new Blob([l], { type: "application/zip" }).size === 0;
|
|
773
|
+
} catch {
|
|
774
|
+
try {
|
|
775
|
+
var o = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
776
|
+
o.append(l), y.blob = o.getBlob("application/zip").size === 0;
|
|
777
|
+
} catch {
|
|
778
|
+
y.blob = !1;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
try {
|
|
783
|
+
y.nodestream = !!m("readable-stream").Readable;
|
|
784
|
+
} catch {
|
|
785
|
+
y.nodestream = !1;
|
|
786
|
+
}
|
|
787
|
+
}, { "readable-stream": 16 }], 31: [function(m, N, y) {
|
|
788
|
+
for (var l = m("./utils"), o = m("./support"), n = m("./nodejsUtils"), s = m("./stream/GenericWorker"), _ = new Array(256), v = 0; v < 256; v++) _[v] = 252 <= v ? 6 : 248 <= v ? 5 : 240 <= v ? 4 : 224 <= v ? 3 : 192 <= v ? 2 : 1;
|
|
789
|
+
_[254] = _[254] = 1;
|
|
790
|
+
function h() {
|
|
791
|
+
s.call(this, "utf-8 decode"), this.leftOver = null;
|
|
792
|
+
}
|
|
793
|
+
function g() {
|
|
794
|
+
s.call(this, "utf-8 encode");
|
|
795
|
+
}
|
|
796
|
+
y.utf8encode = function(a) {
|
|
797
|
+
return o.nodebuffer ? n.newBufferFrom(a, "utf-8") : function(f) {
|
|
798
|
+
var r, d, i, p, w, S = f.length, E = 0;
|
|
799
|
+
for (p = 0; p < S; p++) (64512 & (d = f.charCodeAt(p))) == 55296 && p + 1 < S && (64512 & (i = f.charCodeAt(p + 1))) == 56320 && (d = 65536 + (d - 55296 << 10) + (i - 56320), p++), E += d < 128 ? 1 : d < 2048 ? 2 : d < 65536 ? 3 : 4;
|
|
800
|
+
for (r = o.uint8array ? new Uint8Array(E) : new Array(E), p = w = 0; w < E; p++) (64512 & (d = f.charCodeAt(p))) == 55296 && p + 1 < S && (64512 & (i = f.charCodeAt(p + 1))) == 56320 && (d = 65536 + (d - 55296 << 10) + (i - 56320), p++), d < 128 ? r[w++] = d : (d < 2048 ? r[w++] = 192 | d >>> 6 : (d < 65536 ? r[w++] = 224 | d >>> 12 : (r[w++] = 240 | d >>> 18, r[w++] = 128 | d >>> 12 & 63), r[w++] = 128 | d >>> 6 & 63), r[w++] = 128 | 63 & d);
|
|
801
|
+
return r;
|
|
802
|
+
}(a);
|
|
803
|
+
}, y.utf8decode = function(a) {
|
|
804
|
+
return o.nodebuffer ? l.transformTo("nodebuffer", a).toString("utf-8") : function(f) {
|
|
805
|
+
var r, d, i, p, w = f.length, S = new Array(2 * w);
|
|
806
|
+
for (r = d = 0; r < w; ) if ((i = f[r++]) < 128) S[d++] = i;
|
|
807
|
+
else if (4 < (p = _[i])) S[d++] = 65533, r += p - 1;
|
|
808
|
+
else {
|
|
809
|
+
for (i &= p === 2 ? 31 : p === 3 ? 15 : 7; 1 < p && r < w; ) i = i << 6 | 63 & f[r++], p--;
|
|
810
|
+
1 < p ? S[d++] = 65533 : i < 65536 ? S[d++] = i : (i -= 65536, S[d++] = 55296 | i >> 10 & 1023, S[d++] = 56320 | 1023 & i);
|
|
811
|
+
}
|
|
812
|
+
return S.length !== d && (S.subarray ? S = S.subarray(0, d) : S.length = d), l.applyFromCharCode(S);
|
|
813
|
+
}(a = l.transformTo(o.uint8array ? "uint8array" : "array", a));
|
|
814
|
+
}, l.inherits(h, s), h.prototype.processChunk = function(a) {
|
|
815
|
+
var f = l.transformTo(o.uint8array ? "uint8array" : "array", a.data);
|
|
816
|
+
if (this.leftOver && this.leftOver.length) {
|
|
817
|
+
if (o.uint8array) {
|
|
818
|
+
var r = f;
|
|
819
|
+
(f = new Uint8Array(r.length + this.leftOver.length)).set(this.leftOver, 0), f.set(r, this.leftOver.length);
|
|
820
|
+
} else f = this.leftOver.concat(f);
|
|
821
|
+
this.leftOver = null;
|
|
822
|
+
}
|
|
823
|
+
var d = function(p, w) {
|
|
824
|
+
var S;
|
|
825
|
+
for ((w = w || p.length) > p.length && (w = p.length), S = w - 1; 0 <= S && (192 & p[S]) == 128; ) S--;
|
|
826
|
+
return S < 0 || S === 0 ? w : S + _[p[S]] > w ? S : w;
|
|
827
|
+
}(f), i = f;
|
|
828
|
+
d !== f.length && (o.uint8array ? (i = f.subarray(0, d), this.leftOver = f.subarray(d, f.length)) : (i = f.slice(0, d), this.leftOver = f.slice(d, f.length))), this.push({ data: y.utf8decode(i), meta: a.meta });
|
|
829
|
+
}, h.prototype.flush = function() {
|
|
830
|
+
this.leftOver && this.leftOver.length && (this.push({ data: y.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
831
|
+
}, y.Utf8DecodeWorker = h, l.inherits(g, s), g.prototype.processChunk = function(a) {
|
|
832
|
+
this.push({ data: y.utf8encode(a.data), meta: a.meta });
|
|
833
|
+
}, y.Utf8EncodeWorker = g;
|
|
834
|
+
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(m, N, y) {
|
|
835
|
+
var l = m("./support"), o = m("./base64"), n = m("./nodejsUtils"), s = m("./external");
|
|
836
|
+
function _(r) {
|
|
837
|
+
return r;
|
|
838
|
+
}
|
|
839
|
+
function v(r, d) {
|
|
840
|
+
for (var i = 0; i < r.length; ++i) d[i] = 255 & r.charCodeAt(i);
|
|
841
|
+
return d;
|
|
842
|
+
}
|
|
843
|
+
m("setimmediate"), y.newBlob = function(r, d) {
|
|
844
|
+
y.checkSupport("blob");
|
|
845
|
+
try {
|
|
846
|
+
return new Blob([r], { type: d });
|
|
847
|
+
} catch {
|
|
848
|
+
try {
|
|
849
|
+
var i = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
850
|
+
return i.append(r), i.getBlob(d);
|
|
851
|
+
} catch {
|
|
852
|
+
throw new Error("Bug : can't construct the Blob.");
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
};
|
|
856
|
+
var h = { stringifyByChunk: function(r, d, i) {
|
|
857
|
+
var p = [], w = 0, S = r.length;
|
|
858
|
+
if (S <= i) return String.fromCharCode.apply(null, r);
|
|
859
|
+
for (; w < S; ) d === "array" || d === "nodebuffer" ? p.push(String.fromCharCode.apply(null, r.slice(w, Math.min(w + i, S)))) : p.push(String.fromCharCode.apply(null, r.subarray(w, Math.min(w + i, S)))), w += i;
|
|
860
|
+
return p.join("");
|
|
861
|
+
}, stringifyByChar: function(r) {
|
|
862
|
+
for (var d = "", i = 0; i < r.length; i++) d += String.fromCharCode(r[i]);
|
|
863
|
+
return d;
|
|
864
|
+
}, applyCanBeUsed: { uint8array: function() {
|
|
865
|
+
try {
|
|
866
|
+
return l.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;
|
|
867
|
+
} catch {
|
|
868
|
+
return !1;
|
|
869
|
+
}
|
|
870
|
+
}(), nodebuffer: function() {
|
|
871
|
+
try {
|
|
872
|
+
return l.nodebuffer && String.fromCharCode.apply(null, n.allocBuffer(1)).length === 1;
|
|
873
|
+
} catch {
|
|
874
|
+
return !1;
|
|
875
|
+
}
|
|
876
|
+
}() } };
|
|
877
|
+
function g(r) {
|
|
878
|
+
var d = 65536, i = y.getTypeOf(r), p = !0;
|
|
879
|
+
if (i === "uint8array" ? p = h.applyCanBeUsed.uint8array : i === "nodebuffer" && (p = h.applyCanBeUsed.nodebuffer), p) for (; 1 < d; ) try {
|
|
880
|
+
return h.stringifyByChunk(r, i, d);
|
|
881
|
+
} catch {
|
|
882
|
+
d = Math.floor(d / 2);
|
|
883
|
+
}
|
|
884
|
+
return h.stringifyByChar(r);
|
|
885
|
+
}
|
|
886
|
+
function a(r, d) {
|
|
887
|
+
for (var i = 0; i < r.length; i++) d[i] = r[i];
|
|
888
|
+
return d;
|
|
889
|
+
}
|
|
890
|
+
y.applyFromCharCode = g;
|
|
891
|
+
var f = {};
|
|
892
|
+
f.string = { string: _, array: function(r) {
|
|
893
|
+
return v(r, new Array(r.length));
|
|
894
|
+
}, arraybuffer: function(r) {
|
|
895
|
+
return f.string.uint8array(r).buffer;
|
|
896
|
+
}, uint8array: function(r) {
|
|
897
|
+
return v(r, new Uint8Array(r.length));
|
|
898
|
+
}, nodebuffer: function(r) {
|
|
899
|
+
return v(r, n.allocBuffer(r.length));
|
|
900
|
+
} }, f.array = { string: g, array: _, arraybuffer: function(r) {
|
|
901
|
+
return new Uint8Array(r).buffer;
|
|
902
|
+
}, uint8array: function(r) {
|
|
903
|
+
return new Uint8Array(r);
|
|
904
|
+
}, nodebuffer: function(r) {
|
|
905
|
+
return n.newBufferFrom(r);
|
|
906
|
+
} }, f.arraybuffer = { string: function(r) {
|
|
907
|
+
return g(new Uint8Array(r));
|
|
908
|
+
}, array: function(r) {
|
|
909
|
+
return a(new Uint8Array(r), new Array(r.byteLength));
|
|
910
|
+
}, arraybuffer: _, uint8array: function(r) {
|
|
911
|
+
return new Uint8Array(r);
|
|
912
|
+
}, nodebuffer: function(r) {
|
|
913
|
+
return n.newBufferFrom(new Uint8Array(r));
|
|
914
|
+
} }, f.uint8array = { string: g, array: function(r) {
|
|
915
|
+
return a(r, new Array(r.length));
|
|
916
|
+
}, arraybuffer: function(r) {
|
|
917
|
+
return r.buffer;
|
|
918
|
+
}, uint8array: _, nodebuffer: function(r) {
|
|
919
|
+
return n.newBufferFrom(r);
|
|
920
|
+
} }, f.nodebuffer = { string: g, array: function(r) {
|
|
921
|
+
return a(r, new Array(r.length));
|
|
922
|
+
}, arraybuffer: function(r) {
|
|
923
|
+
return f.nodebuffer.uint8array(r).buffer;
|
|
924
|
+
}, uint8array: function(r) {
|
|
925
|
+
return a(r, new Uint8Array(r.length));
|
|
926
|
+
}, nodebuffer: _ }, y.transformTo = function(r, d) {
|
|
927
|
+
if (d = d || "", !r) return d;
|
|
928
|
+
y.checkSupport(r);
|
|
929
|
+
var i = y.getTypeOf(d);
|
|
930
|
+
return f[i][r](d);
|
|
931
|
+
}, y.resolve = function(r) {
|
|
932
|
+
for (var d = r.split("/"), i = [], p = 0; p < d.length; p++) {
|
|
933
|
+
var w = d[p];
|
|
934
|
+
w === "." || w === "" && p !== 0 && p !== d.length - 1 || (w === ".." ? i.pop() : i.push(w));
|
|
935
|
+
}
|
|
936
|
+
return i.join("/");
|
|
937
|
+
}, y.getTypeOf = function(r) {
|
|
938
|
+
return typeof r == "string" ? "string" : Object.prototype.toString.call(r) === "[object Array]" ? "array" : l.nodebuffer && n.isBuffer(r) ? "nodebuffer" : l.uint8array && r instanceof Uint8Array ? "uint8array" : l.arraybuffer && r instanceof ArrayBuffer ? "arraybuffer" : void 0;
|
|
939
|
+
}, y.checkSupport = function(r) {
|
|
940
|
+
if (!l[r.toLowerCase()]) throw new Error(r + " is not supported by this platform");
|
|
941
|
+
}, y.MAX_VALUE_16BITS = 65535, y.MAX_VALUE_32BITS = -1, y.pretty = function(r) {
|
|
942
|
+
var d, i, p = "";
|
|
943
|
+
for (i = 0; i < (r || "").length; i++) p += "\\x" + ((d = r.charCodeAt(i)) < 16 ? "0" : "") + d.toString(16).toUpperCase();
|
|
944
|
+
return p;
|
|
945
|
+
}, y.delay = function(r, d, i) {
|
|
946
|
+
setImmediate(function() {
|
|
947
|
+
r.apply(i || null, d || []);
|
|
948
|
+
});
|
|
949
|
+
}, y.inherits = function(r, d) {
|
|
950
|
+
function i() {
|
|
951
|
+
}
|
|
952
|
+
i.prototype = d.prototype, r.prototype = new i();
|
|
953
|
+
}, y.extend = function() {
|
|
954
|
+
var r, d, i = {};
|
|
955
|
+
for (r = 0; r < arguments.length; r++) for (d in arguments[r]) Object.prototype.hasOwnProperty.call(arguments[r], d) && i[d] === void 0 && (i[d] = arguments[r][d]);
|
|
956
|
+
return i;
|
|
957
|
+
}, y.prepareContent = function(r, d, i, p, w) {
|
|
958
|
+
return s.Promise.resolve(d).then(function(S) {
|
|
959
|
+
return l.blob && (S instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(S)) !== -1) && typeof FileReader < "u" ? new s.Promise(function(E, B) {
|
|
960
|
+
var C = new FileReader();
|
|
961
|
+
C.onload = function(L) {
|
|
962
|
+
E(L.target.result);
|
|
963
|
+
}, C.onerror = function(L) {
|
|
964
|
+
B(L.target.error);
|
|
965
|
+
}, C.readAsArrayBuffer(S);
|
|
966
|
+
}) : S;
|
|
967
|
+
}).then(function(S) {
|
|
968
|
+
var E = y.getTypeOf(S);
|
|
969
|
+
return E ? (E === "arraybuffer" ? S = y.transformTo("uint8array", S) : E === "string" && (w ? S = o.decode(S) : i && p !== !0 && (S = function(B) {
|
|
970
|
+
return v(B, l.uint8array ? new Uint8Array(B.length) : new Array(B.length));
|
|
971
|
+
}(S))), S) : s.Promise.reject(new Error("Can't read the data of '" + r + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
972
|
+
});
|
|
973
|
+
};
|
|
974
|
+
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(m, N, y) {
|
|
975
|
+
var l = m("./reader/readerFor"), o = m("./utils"), n = m("./signature"), s = m("./zipEntry"), _ = m("./support");
|
|
976
|
+
function v(h) {
|
|
977
|
+
this.files = [], this.loadOptions = h;
|
|
978
|
+
}
|
|
979
|
+
v.prototype = { checkSignature: function(h) {
|
|
980
|
+
if (!this.reader.readAndCheckSignature(h)) {
|
|
981
|
+
this.reader.index -= 4;
|
|
982
|
+
var g = this.reader.readString(4);
|
|
983
|
+
throw new Error("Corrupted zip or bug: unexpected signature (" + o.pretty(g) + ", expected " + o.pretty(h) + ")");
|
|
984
|
+
}
|
|
985
|
+
}, isSignature: function(h, g) {
|
|
986
|
+
var a = this.reader.index;
|
|
987
|
+
this.reader.setIndex(h);
|
|
988
|
+
var f = this.reader.readString(4) === g;
|
|
989
|
+
return this.reader.setIndex(a), f;
|
|
990
|
+
}, readBlockEndOfCentral: function() {
|
|
991
|
+
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);
|
|
992
|
+
var h = this.reader.readData(this.zipCommentLength), g = _.uint8array ? "uint8array" : "array", a = o.transformTo(g, h);
|
|
993
|
+
this.zipComment = this.loadOptions.decodeFileName(a);
|
|
994
|
+
}, readBlockZip64EndOfCentral: function() {
|
|
995
|
+
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 = {};
|
|
996
|
+
for (var h, g, a, f = this.zip64EndOfCentralSize - 44; 0 < f; ) h = this.reader.readInt(2), g = this.reader.readInt(4), a = this.reader.readData(g), this.zip64ExtensibleData[h] = { id: h, length: g, value: a };
|
|
997
|
+
}, readBlockZip64EndOfCentralLocator: function() {
|
|
998
|
+
if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), 1 < this.disksCount) throw new Error("Multi-volumes zip are not supported");
|
|
999
|
+
}, readLocalFiles: function() {
|
|
1000
|
+
var h, g;
|
|
1001
|
+
for (h = 0; h < this.files.length; h++) g = this.files[h], this.reader.setIndex(g.localHeaderOffset), this.checkSignature(n.LOCAL_FILE_HEADER), g.readLocalPart(this.reader), g.handleUTF8(), g.processAttributes();
|
|
1002
|
+
}, readCentralDir: function() {
|
|
1003
|
+
var h;
|
|
1004
|
+
for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER); ) (h = new s({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(h);
|
|
1005
|
+
if (this.centralDirRecords !== this.files.length && this.centralDirRecords !== 0 && this.files.length === 0) throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
|
|
1006
|
+
}, readEndOfCentral: function() {
|
|
1007
|
+
var h = this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);
|
|
1008
|
+
if (h < 0) throw this.isSignature(0, n.LOCAL_FILE_HEADER) ? new Error("Corrupted zip: can't find end of central directory") : new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");
|
|
1009
|
+
this.reader.setIndex(h);
|
|
1010
|
+
var g = h;
|
|
1011
|
+
if (this.checkSignature(n.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === o.MAX_VALUE_16BITS || this.diskWithCentralDirStart === o.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === o.MAX_VALUE_16BITS || this.centralDirRecords === o.MAX_VALUE_16BITS || this.centralDirSize === o.MAX_VALUE_32BITS || this.centralDirOffset === o.MAX_VALUE_32BITS) {
|
|
1012
|
+
if (this.zip64 = !0, (h = this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
|
|
1013
|
+
if (this.reader.setIndex(h), this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, n.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
|
|
1014
|
+
this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral();
|
|
1015
|
+
}
|
|
1016
|
+
var a = this.centralDirOffset + this.centralDirSize;
|
|
1017
|
+
this.zip64 && (a += 20, a += 12 + this.zip64EndOfCentralSize);
|
|
1018
|
+
var f = g - a;
|
|
1019
|
+
if (0 < f) this.isSignature(g, n.CENTRAL_FILE_HEADER) || (this.reader.zero = f);
|
|
1020
|
+
else if (f < 0) throw new Error("Corrupted zip: missing " + Math.abs(f) + " bytes.");
|
|
1021
|
+
}, prepareReader: function(h) {
|
|
1022
|
+
this.reader = l(h);
|
|
1023
|
+
}, load: function(h) {
|
|
1024
|
+
this.prepareReader(h), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
|
|
1025
|
+
} }, N.exports = v;
|
|
1026
|
+
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(m, N, y) {
|
|
1027
|
+
var l = m("./reader/readerFor"), o = m("./utils"), n = m("./compressedObject"), s = m("./crc32"), _ = m("./utf8"), v = m("./compressions"), h = m("./support");
|
|
1028
|
+
function g(a, f) {
|
|
1029
|
+
this.options = a, this.loadOptions = f;
|
|
1030
|
+
}
|
|
1031
|
+
g.prototype = { isEncrypted: function() {
|
|
1032
|
+
return (1 & this.bitFlag) == 1;
|
|
1033
|
+
}, useUTF8: function() {
|
|
1034
|
+
return (2048 & this.bitFlag) == 2048;
|
|
1035
|
+
}, readLocalPart: function(a) {
|
|
1036
|
+
var f, r;
|
|
1037
|
+
if (a.skip(22), this.fileNameLength = a.readInt(2), r = a.readInt(2), this.fileName = a.readData(this.fileNameLength), a.skip(r), this.compressedSize === -1 || this.uncompressedSize === -1) throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
|
|
1038
|
+
if ((f = function(d) {
|
|
1039
|
+
for (var i in v) if (Object.prototype.hasOwnProperty.call(v, i) && v[i].magic === d) return v[i];
|
|
1040
|
+
return null;
|
|
1041
|
+
}(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + o.pretty(this.compressionMethod) + " unknown (inner file : " + o.transformTo("string", this.fileName) + ")");
|
|
1042
|
+
this.decompressed = new n(this.compressedSize, this.uncompressedSize, this.crc32, f, a.readData(this.compressedSize));
|
|
1043
|
+
}, readCentralPart: function(a) {
|
|
1044
|
+
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);
|
|
1045
|
+
var f = a.readInt(2);
|
|
1046
|
+
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");
|
|
1047
|
+
a.skip(f), this.readExtraFields(a), this.parseZIP64ExtraField(a), this.fileComment = a.readData(this.fileCommentLength);
|
|
1048
|
+
}, processAttributes: function() {
|
|
1049
|
+
this.unixPermissions = null, this.dosPermissions = null;
|
|
1050
|
+
var a = this.versionMadeBy >> 8;
|
|
1051
|
+
this.dir = !!(16 & this.externalFileAttributes), a == 0 && (this.dosPermissions = 63 & this.externalFileAttributes), a == 3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || this.fileNameStr.slice(-1) !== "/" || (this.dir = !0);
|
|
1052
|
+
}, parseZIP64ExtraField: function() {
|
|
1053
|
+
if (this.extraFields[1]) {
|
|
1054
|
+
var a = l(this.extraFields[1].value);
|
|
1055
|
+
this.uncompressedSize === o.MAX_VALUE_32BITS && (this.uncompressedSize = a.readInt(8)), this.compressedSize === o.MAX_VALUE_32BITS && (this.compressedSize = a.readInt(8)), this.localHeaderOffset === o.MAX_VALUE_32BITS && (this.localHeaderOffset = a.readInt(8)), this.diskNumberStart === o.MAX_VALUE_32BITS && (this.diskNumberStart = a.readInt(4));
|
|
1056
|
+
}
|
|
1057
|
+
}, readExtraFields: function(a) {
|
|
1058
|
+
var f, r, d, i = a.index + this.extraFieldsLength;
|
|
1059
|
+
for (this.extraFields || (this.extraFields = {}); a.index + 4 < i; ) f = a.readInt(2), r = a.readInt(2), d = a.readData(r), this.extraFields[f] = { id: f, length: r, value: d };
|
|
1060
|
+
a.setIndex(i);
|
|
1061
|
+
}, handleUTF8: function() {
|
|
1062
|
+
var a = h.uint8array ? "uint8array" : "array";
|
|
1063
|
+
if (this.useUTF8()) this.fileNameStr = _.utf8decode(this.fileName), this.fileCommentStr = _.utf8decode(this.fileComment);
|
|
1064
|
+
else {
|
|
1065
|
+
var f = this.findExtraFieldUnicodePath();
|
|
1066
|
+
if (f !== null) this.fileNameStr = f;
|
|
1067
|
+
else {
|
|
1068
|
+
var r = o.transformTo(a, this.fileName);
|
|
1069
|
+
this.fileNameStr = this.loadOptions.decodeFileName(r);
|
|
1070
|
+
}
|
|
1071
|
+
var d = this.findExtraFieldUnicodeComment();
|
|
1072
|
+
if (d !== null) this.fileCommentStr = d;
|
|
1073
|
+
else {
|
|
1074
|
+
var i = o.transformTo(a, this.fileComment);
|
|
1075
|
+
this.fileCommentStr = this.loadOptions.decodeFileName(i);
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
}, findExtraFieldUnicodePath: function() {
|
|
1079
|
+
var a = this.extraFields[28789];
|
|
1080
|
+
if (a) {
|
|
1081
|
+
var f = l(a.value);
|
|
1082
|
+
return f.readInt(1) !== 1 || s(this.fileName) !== f.readInt(4) ? null : _.utf8decode(f.readData(a.length - 5));
|
|
1083
|
+
}
|
|
1084
|
+
return null;
|
|
1085
|
+
}, findExtraFieldUnicodeComment: function() {
|
|
1086
|
+
var a = this.extraFields[25461];
|
|
1087
|
+
if (a) {
|
|
1088
|
+
var f = l(a.value);
|
|
1089
|
+
return f.readInt(1) !== 1 || s(this.fileComment) !== f.readInt(4) ? null : _.utf8decode(f.readData(a.length - 5));
|
|
1090
|
+
}
|
|
1091
|
+
return null;
|
|
1092
|
+
} }, N.exports = g;
|
|
1093
|
+
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(m, N, y) {
|
|
1094
|
+
function l(f, r, d) {
|
|
1095
|
+
this.name = f, this.dir = d.dir, this.date = d.date, this.comment = d.comment, this.unixPermissions = d.unixPermissions, this.dosPermissions = d.dosPermissions, this._data = r, this._dataBinary = d.binary, this.options = { compression: d.compression, compressionOptions: d.compressionOptions };
|
|
1096
|
+
}
|
|
1097
|
+
var o = m("./stream/StreamHelper"), n = m("./stream/DataWorker"), s = m("./utf8"), _ = m("./compressedObject"), v = m("./stream/GenericWorker");
|
|
1098
|
+
l.prototype = { internalStream: function(f) {
|
|
1099
|
+
var r = null, d = "string";
|
|
1100
|
+
try {
|
|
1101
|
+
if (!f) throw new Error("No output type specified.");
|
|
1102
|
+
var i = (d = f.toLowerCase()) === "string" || d === "text";
|
|
1103
|
+
d !== "binarystring" && d !== "text" || (d = "string"), r = this._decompressWorker();
|
|
1104
|
+
var p = !this._dataBinary;
|
|
1105
|
+
p && !i && (r = r.pipe(new s.Utf8EncodeWorker())), !p && i && (r = r.pipe(new s.Utf8DecodeWorker()));
|
|
1106
|
+
} catch (w) {
|
|
1107
|
+
(r = new v("error")).error(w);
|
|
1108
|
+
}
|
|
1109
|
+
return new o(r, d, "");
|
|
1110
|
+
}, async: function(f, r) {
|
|
1111
|
+
return this.internalStream(f).accumulate(r);
|
|
1112
|
+
}, nodeStream: function(f, r) {
|
|
1113
|
+
return this.internalStream(f || "nodebuffer").toNodejsStream(r);
|
|
1114
|
+
}, _compressWorker: function(f, r) {
|
|
1115
|
+
if (this._data instanceof _ && this._data.compression.magic === f.magic) return this._data.getCompressedWorker();
|
|
1116
|
+
var d = this._decompressWorker();
|
|
1117
|
+
return this._dataBinary || (d = d.pipe(new s.Utf8EncodeWorker())), _.createWorkerFrom(d, f, r);
|
|
1118
|
+
}, _decompressWorker: function() {
|
|
1119
|
+
return this._data instanceof _ ? this._data.getContentWorker() : this._data instanceof v ? this._data : new n(this._data);
|
|
1120
|
+
} };
|
|
1121
|
+
for (var h = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], g = function() {
|
|
1122
|
+
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
1123
|
+
}, a = 0; a < h.length; a++) l.prototype[h[a]] = g;
|
|
1124
|
+
N.exports = l;
|
|
1125
|
+
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(m, N, y) {
|
|
1126
|
+
(function(l) {
|
|
1127
|
+
var o, n, s = l.MutationObserver || l.WebKitMutationObserver;
|
|
1128
|
+
if (s) {
|
|
1129
|
+
var _ = 0, v = new s(f), h = l.document.createTextNode("");
|
|
1130
|
+
v.observe(h, { characterData: !0 }), o = function() {
|
|
1131
|
+
h.data = _ = ++_ % 2;
|
|
1132
|
+
};
|
|
1133
|
+
} else if (l.setImmediate || l.MessageChannel === void 0) o = "document" in l && "onreadystatechange" in l.document.createElement("script") ? function() {
|
|
1134
|
+
var r = l.document.createElement("script");
|
|
1135
|
+
r.onreadystatechange = function() {
|
|
1136
|
+
f(), r.onreadystatechange = null, r.parentNode.removeChild(r), r = null;
|
|
1137
|
+
}, l.document.documentElement.appendChild(r);
|
|
1138
|
+
} : function() {
|
|
1139
|
+
setTimeout(f, 0);
|
|
1140
|
+
};
|
|
1141
|
+
else {
|
|
1142
|
+
var g = new l.MessageChannel();
|
|
1143
|
+
g.port1.onmessage = f, o = function() {
|
|
1144
|
+
g.port2.postMessage(0);
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
var a = [];
|
|
1148
|
+
function f() {
|
|
1149
|
+
var r, d;
|
|
1150
|
+
n = !0;
|
|
1151
|
+
for (var i = a.length; i; ) {
|
|
1152
|
+
for (d = a, a = [], r = -1; ++r < i; ) d[r]();
|
|
1153
|
+
i = a.length;
|
|
1154
|
+
}
|
|
1155
|
+
n = !1;
|
|
1156
|
+
}
|
|
1157
|
+
N.exports = function(r) {
|
|
1158
|
+
a.push(r) !== 1 || n || o();
|
|
1159
|
+
};
|
|
1160
|
+
}).call(this, typeof we < "u" ? we : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
1161
|
+
}, {}], 37: [function(m, N, y) {
|
|
1162
|
+
var l = m("immediate");
|
|
1163
|
+
function o() {
|
|
1164
|
+
}
|
|
1165
|
+
var n = {}, s = ["REJECTED"], _ = ["FULFILLED"], v = ["PENDING"];
|
|
1166
|
+
function h(i) {
|
|
1167
|
+
if (typeof i != "function") throw new TypeError("resolver must be a function");
|
|
1168
|
+
this.state = v, this.queue = [], this.outcome = void 0, i !== o && r(this, i);
|
|
1169
|
+
}
|
|
1170
|
+
function g(i, p, w) {
|
|
1171
|
+
this.promise = i, typeof p == "function" && (this.onFulfilled = p, this.callFulfilled = this.otherCallFulfilled), typeof w == "function" && (this.onRejected = w, this.callRejected = this.otherCallRejected);
|
|
1172
|
+
}
|
|
1173
|
+
function a(i, p, w) {
|
|
1174
|
+
l(function() {
|
|
1175
|
+
var S;
|
|
1176
|
+
try {
|
|
1177
|
+
S = p(w);
|
|
1178
|
+
} catch (E) {
|
|
1179
|
+
return n.reject(i, E);
|
|
1180
|
+
}
|
|
1181
|
+
S === i ? n.reject(i, new TypeError("Cannot resolve promise with itself")) : n.resolve(i, S);
|
|
1182
|
+
});
|
|
1183
|
+
}
|
|
1184
|
+
function f(i) {
|
|
1185
|
+
var p = i && i.then;
|
|
1186
|
+
if (i && (typeof i == "object" || typeof i == "function") && typeof p == "function") return function() {
|
|
1187
|
+
p.apply(i, arguments);
|
|
1188
|
+
};
|
|
1189
|
+
}
|
|
1190
|
+
function r(i, p) {
|
|
1191
|
+
var w = !1;
|
|
1192
|
+
function S(C) {
|
|
1193
|
+
w || (w = !0, n.reject(i, C));
|
|
1194
|
+
}
|
|
1195
|
+
function E(C) {
|
|
1196
|
+
w || (w = !0, n.resolve(i, C));
|
|
1197
|
+
}
|
|
1198
|
+
var B = d(function() {
|
|
1199
|
+
p(E, S);
|
|
1200
|
+
});
|
|
1201
|
+
B.status === "error" && S(B.value);
|
|
1202
|
+
}
|
|
1203
|
+
function d(i, p) {
|
|
1204
|
+
var w = {};
|
|
1205
|
+
try {
|
|
1206
|
+
w.value = i(p), w.status = "success";
|
|
1207
|
+
} catch (S) {
|
|
1208
|
+
w.status = "error", w.value = S;
|
|
1209
|
+
}
|
|
1210
|
+
return w;
|
|
1211
|
+
}
|
|
1212
|
+
(N.exports = h).prototype.finally = function(i) {
|
|
1213
|
+
if (typeof i != "function") return this;
|
|
1214
|
+
var p = this.constructor;
|
|
1215
|
+
return this.then(function(w) {
|
|
1216
|
+
return p.resolve(i()).then(function() {
|
|
1217
|
+
return w;
|
|
1218
|
+
});
|
|
1219
|
+
}, function(w) {
|
|
1220
|
+
return p.resolve(i()).then(function() {
|
|
1221
|
+
throw w;
|
|
1222
|
+
});
|
|
1223
|
+
});
|
|
1224
|
+
}, h.prototype.catch = function(i) {
|
|
1225
|
+
return this.then(null, i);
|
|
1226
|
+
}, h.prototype.then = function(i, p) {
|
|
1227
|
+
if (typeof i != "function" && this.state === _ || typeof p != "function" && this.state === s) return this;
|
|
1228
|
+
var w = new this.constructor(o);
|
|
1229
|
+
return this.state !== v ? a(w, this.state === _ ? i : p, this.outcome) : this.queue.push(new g(w, i, p)), w;
|
|
1230
|
+
}, g.prototype.callFulfilled = function(i) {
|
|
1231
|
+
n.resolve(this.promise, i);
|
|
1232
|
+
}, g.prototype.otherCallFulfilled = function(i) {
|
|
1233
|
+
a(this.promise, this.onFulfilled, i);
|
|
1234
|
+
}, g.prototype.callRejected = function(i) {
|
|
1235
|
+
n.reject(this.promise, i);
|
|
1236
|
+
}, g.prototype.otherCallRejected = function(i) {
|
|
1237
|
+
a(this.promise, this.onRejected, i);
|
|
1238
|
+
}, n.resolve = function(i, p) {
|
|
1239
|
+
var w = d(f, p);
|
|
1240
|
+
if (w.status === "error") return n.reject(i, w.value);
|
|
1241
|
+
var S = w.value;
|
|
1242
|
+
if (S) r(i, S);
|
|
1243
|
+
else {
|
|
1244
|
+
i.state = _, i.outcome = p;
|
|
1245
|
+
for (var E = -1, B = i.queue.length; ++E < B; ) i.queue[E].callFulfilled(p);
|
|
1246
|
+
}
|
|
1247
|
+
return i;
|
|
1248
|
+
}, n.reject = function(i, p) {
|
|
1249
|
+
i.state = s, i.outcome = p;
|
|
1250
|
+
for (var w = -1, S = i.queue.length; ++w < S; ) i.queue[w].callRejected(p);
|
|
1251
|
+
return i;
|
|
1252
|
+
}, h.resolve = function(i) {
|
|
1253
|
+
return i instanceof this ? i : n.resolve(new this(o), i);
|
|
1254
|
+
}, h.reject = function(i) {
|
|
1255
|
+
var p = new this(o);
|
|
1256
|
+
return n.reject(p, i);
|
|
1257
|
+
}, h.all = function(i) {
|
|
1258
|
+
var p = this;
|
|
1259
|
+
if (Object.prototype.toString.call(i) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
1260
|
+
var w = i.length, S = !1;
|
|
1261
|
+
if (!w) return this.resolve([]);
|
|
1262
|
+
for (var E = new Array(w), B = 0, C = -1, L = new this(o); ++C < w; ) R(i[C], C);
|
|
1263
|
+
return L;
|
|
1264
|
+
function R(H, X) {
|
|
1265
|
+
p.resolve(H).then(function(b) {
|
|
1266
|
+
E[X] = b, ++B !== w || S || (S = !0, n.resolve(L, E));
|
|
1267
|
+
}, function(b) {
|
|
1268
|
+
S || (S = !0, n.reject(L, b));
|
|
1269
|
+
});
|
|
1270
|
+
}
|
|
1271
|
+
}, h.race = function(i) {
|
|
1272
|
+
var p = this;
|
|
1273
|
+
if (Object.prototype.toString.call(i) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
1274
|
+
var w = i.length, S = !1;
|
|
1275
|
+
if (!w) return this.resolve([]);
|
|
1276
|
+
for (var E = -1, B = new this(o); ++E < w; ) C = i[E], p.resolve(C).then(function(L) {
|
|
1277
|
+
S || (S = !0, n.resolve(B, L));
|
|
1278
|
+
}, function(L) {
|
|
1279
|
+
S || (S = !0, n.reject(B, L));
|
|
1280
|
+
});
|
|
1281
|
+
var C;
|
|
1282
|
+
return B;
|
|
1283
|
+
};
|
|
1284
|
+
}, { immediate: 36 }], 38: [function(m, N, y) {
|
|
1285
|
+
var l = {};
|
|
1286
|
+
(0, m("./lib/utils/common").assign)(l, m("./lib/deflate"), m("./lib/inflate"), m("./lib/zlib/constants")), N.exports = l;
|
|
1287
|
+
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(m, N, y) {
|
|
1288
|
+
var l = m("./zlib/deflate"), o = m("./utils/common"), n = m("./utils/strings"), s = m("./zlib/messages"), _ = m("./zlib/zstream"), v = Object.prototype.toString, h = 0, g = -1, a = 0, f = 8;
|
|
1289
|
+
function r(i) {
|
|
1290
|
+
if (!(this instanceof r)) return new r(i);
|
|
1291
|
+
this.options = o.assign({ level: g, method: f, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: a, to: "" }, i || {});
|
|
1292
|
+
var p = this.options;
|
|
1293
|
+
p.raw && 0 < p.windowBits ? p.windowBits = -p.windowBits : p.gzip && 0 < p.windowBits && p.windowBits < 16 && (p.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new _(), this.strm.avail_out = 0;
|
|
1294
|
+
var w = l.deflateInit2(this.strm, p.level, p.method, p.windowBits, p.memLevel, p.strategy);
|
|
1295
|
+
if (w !== h) throw new Error(s[w]);
|
|
1296
|
+
if (p.header && l.deflateSetHeader(this.strm, p.header), p.dictionary) {
|
|
1297
|
+
var S;
|
|
1298
|
+
if (S = typeof p.dictionary == "string" ? n.string2buf(p.dictionary) : v.call(p.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(p.dictionary) : p.dictionary, (w = l.deflateSetDictionary(this.strm, S)) !== h) throw new Error(s[w]);
|
|
1299
|
+
this._dict_set = !0;
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
function d(i, p) {
|
|
1303
|
+
var w = new r(p);
|
|
1304
|
+
if (w.push(i, !0), w.err) throw w.msg || s[w.err];
|
|
1305
|
+
return w.result;
|
|
1306
|
+
}
|
|
1307
|
+
r.prototype.push = function(i, p) {
|
|
1308
|
+
var w, S, E = this.strm, B = this.options.chunkSize;
|
|
1309
|
+
if (this.ended) return !1;
|
|
1310
|
+
S = p === ~~p ? p : p === !0 ? 4 : 0, typeof i == "string" ? E.input = n.string2buf(i) : v.call(i) === "[object ArrayBuffer]" ? E.input = new Uint8Array(i) : E.input = i, E.next_in = 0, E.avail_in = E.input.length;
|
|
1311
|
+
do {
|
|
1312
|
+
if (E.avail_out === 0 && (E.output = new o.Buf8(B), E.next_out = 0, E.avail_out = B), (w = l.deflate(E, S)) !== 1 && w !== h) return this.onEnd(w), !(this.ended = !0);
|
|
1313
|
+
E.avail_out !== 0 && (E.avail_in !== 0 || S !== 4 && S !== 2) || (this.options.to === "string" ? this.onData(n.buf2binstring(o.shrinkBuf(E.output, E.next_out))) : this.onData(o.shrinkBuf(E.output, E.next_out)));
|
|
1314
|
+
} while ((0 < E.avail_in || E.avail_out === 0) && w !== 1);
|
|
1315
|
+
return S === 4 ? (w = l.deflateEnd(this.strm), this.onEnd(w), this.ended = !0, w === h) : S !== 2 || (this.onEnd(h), !(E.avail_out = 0));
|
|
1316
|
+
}, r.prototype.onData = function(i) {
|
|
1317
|
+
this.chunks.push(i);
|
|
1318
|
+
}, r.prototype.onEnd = function(i) {
|
|
1319
|
+
i === h && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = i, this.msg = this.strm.msg;
|
|
1320
|
+
}, y.Deflate = r, y.deflate = d, y.deflateRaw = function(i, p) {
|
|
1321
|
+
return (p = p || {}).raw = !0, d(i, p);
|
|
1322
|
+
}, y.gzip = function(i, p) {
|
|
1323
|
+
return (p = p || {}).gzip = !0, d(i, p);
|
|
1324
|
+
};
|
|
1325
|
+
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(m, N, y) {
|
|
1326
|
+
var l = m("./zlib/inflate"), o = m("./utils/common"), n = m("./utils/strings"), s = m("./zlib/constants"), _ = m("./zlib/messages"), v = m("./zlib/zstream"), h = m("./zlib/gzheader"), g = Object.prototype.toString;
|
|
1327
|
+
function a(r) {
|
|
1328
|
+
if (!(this instanceof a)) return new a(r);
|
|
1329
|
+
this.options = o.assign({ chunkSize: 16384, windowBits: 0, to: "" }, r || {});
|
|
1330
|
+
var d = this.options;
|
|
1331
|
+
d.raw && 0 <= d.windowBits && d.windowBits < 16 && (d.windowBits = -d.windowBits, d.windowBits === 0 && (d.windowBits = -15)), !(0 <= d.windowBits && d.windowBits < 16) || r && r.windowBits || (d.windowBits += 32), 15 < d.windowBits && d.windowBits < 48 && (15 & d.windowBits) == 0 && (d.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new v(), this.strm.avail_out = 0;
|
|
1332
|
+
var i = l.inflateInit2(this.strm, d.windowBits);
|
|
1333
|
+
if (i !== s.Z_OK) throw new Error(_[i]);
|
|
1334
|
+
this.header = new h(), l.inflateGetHeader(this.strm, this.header);
|
|
1335
|
+
}
|
|
1336
|
+
function f(r, d) {
|
|
1337
|
+
var i = new a(d);
|
|
1338
|
+
if (i.push(r, !0), i.err) throw i.msg || _[i.err];
|
|
1339
|
+
return i.result;
|
|
1340
|
+
}
|
|
1341
|
+
a.prototype.push = function(r, d) {
|
|
1342
|
+
var i, p, w, S, E, B, C = this.strm, L = this.options.chunkSize, R = this.options.dictionary, H = !1;
|
|
1343
|
+
if (this.ended) return !1;
|
|
1344
|
+
p = d === ~~d ? d : d === !0 ? s.Z_FINISH : s.Z_NO_FLUSH, typeof r == "string" ? C.input = n.binstring2buf(r) : g.call(r) === "[object ArrayBuffer]" ? C.input = new Uint8Array(r) : C.input = r, C.next_in = 0, C.avail_in = C.input.length;
|
|
1345
|
+
do {
|
|
1346
|
+
if (C.avail_out === 0 && (C.output = new o.Buf8(L), C.next_out = 0, C.avail_out = L), (i = l.inflate(C, s.Z_NO_FLUSH)) === s.Z_NEED_DICT && R && (B = typeof R == "string" ? n.string2buf(R) : g.call(R) === "[object ArrayBuffer]" ? new Uint8Array(R) : R, i = l.inflateSetDictionary(this.strm, B)), i === s.Z_BUF_ERROR && H === !0 && (i = s.Z_OK, H = !1), i !== s.Z_STREAM_END && i !== s.Z_OK) return this.onEnd(i), !(this.ended = !0);
|
|
1347
|
+
C.next_out && (C.avail_out !== 0 && i !== s.Z_STREAM_END && (C.avail_in !== 0 || p !== s.Z_FINISH && p !== s.Z_SYNC_FLUSH) || (this.options.to === "string" ? (w = n.utf8border(C.output, C.next_out), S = C.next_out - w, E = n.buf2string(C.output, w), C.next_out = S, C.avail_out = L - S, S && o.arraySet(C.output, C.output, w, S, 0), this.onData(E)) : this.onData(o.shrinkBuf(C.output, C.next_out)))), C.avail_in === 0 && C.avail_out === 0 && (H = !0);
|
|
1348
|
+
} while ((0 < C.avail_in || C.avail_out === 0) && i !== s.Z_STREAM_END);
|
|
1349
|
+
return i === s.Z_STREAM_END && (p = s.Z_FINISH), p === s.Z_FINISH ? (i = l.inflateEnd(this.strm), this.onEnd(i), this.ended = !0, i === s.Z_OK) : p !== s.Z_SYNC_FLUSH || (this.onEnd(s.Z_OK), !(C.avail_out = 0));
|
|
1350
|
+
}, a.prototype.onData = function(r) {
|
|
1351
|
+
this.chunks.push(r);
|
|
1352
|
+
}, a.prototype.onEnd = function(r) {
|
|
1353
|
+
r === s.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = r, this.msg = this.strm.msg;
|
|
1354
|
+
}, y.Inflate = a, y.inflate = f, y.inflateRaw = function(r, d) {
|
|
1355
|
+
return (d = d || {}).raw = !0, f(r, d);
|
|
1356
|
+
}, y.ungzip = f;
|
|
1357
|
+
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(m, N, y) {
|
|
1358
|
+
var l = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
|
|
1359
|
+
y.assign = function(s) {
|
|
1360
|
+
for (var _ = Array.prototype.slice.call(arguments, 1); _.length; ) {
|
|
1361
|
+
var v = _.shift();
|
|
1362
|
+
if (v) {
|
|
1363
|
+
if (typeof v != "object") throw new TypeError(v + "must be non-object");
|
|
1364
|
+
for (var h in v) v.hasOwnProperty(h) && (s[h] = v[h]);
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
return s;
|
|
1368
|
+
}, y.shrinkBuf = function(s, _) {
|
|
1369
|
+
return s.length === _ ? s : s.subarray ? s.subarray(0, _) : (s.length = _, s);
|
|
1370
|
+
};
|
|
1371
|
+
var o = { arraySet: function(s, _, v, h, g) {
|
|
1372
|
+
if (_.subarray && s.subarray) s.set(_.subarray(v, v + h), g);
|
|
1373
|
+
else for (var a = 0; a < h; a++) s[g + a] = _[v + a];
|
|
1374
|
+
}, flattenChunks: function(s) {
|
|
1375
|
+
var _, v, h, g, a, f;
|
|
1376
|
+
for (_ = h = 0, v = s.length; _ < v; _++) h += s[_].length;
|
|
1377
|
+
for (f = new Uint8Array(h), _ = g = 0, v = s.length; _ < v; _++) a = s[_], f.set(a, g), g += a.length;
|
|
1378
|
+
return f;
|
|
1379
|
+
} }, n = { arraySet: function(s, _, v, h, g) {
|
|
1380
|
+
for (var a = 0; a < h; a++) s[g + a] = _[v + a];
|
|
1381
|
+
}, flattenChunks: function(s) {
|
|
1382
|
+
return [].concat.apply([], s);
|
|
1383
|
+
} };
|
|
1384
|
+
y.setTyped = function(s) {
|
|
1385
|
+
s ? (y.Buf8 = Uint8Array, y.Buf16 = Uint16Array, y.Buf32 = Int32Array, y.assign(y, o)) : (y.Buf8 = Array, y.Buf16 = Array, y.Buf32 = Array, y.assign(y, n));
|
|
1386
|
+
}, y.setTyped(l);
|
|
1387
|
+
}, {}], 42: [function(m, N, y) {
|
|
1388
|
+
var l = m("./common"), o = !0, n = !0;
|
|
1389
|
+
try {
|
|
1390
|
+
String.fromCharCode.apply(null, [0]);
|
|
1391
|
+
} catch {
|
|
1392
|
+
o = !1;
|
|
1393
|
+
}
|
|
1394
|
+
try {
|
|
1395
|
+
String.fromCharCode.apply(null, new Uint8Array(1));
|
|
1396
|
+
} catch {
|
|
1397
|
+
n = !1;
|
|
1398
|
+
}
|
|
1399
|
+
for (var s = new l.Buf8(256), _ = 0; _ < 256; _++) s[_] = 252 <= _ ? 6 : 248 <= _ ? 5 : 240 <= _ ? 4 : 224 <= _ ? 3 : 192 <= _ ? 2 : 1;
|
|
1400
|
+
function v(h, g) {
|
|
1401
|
+
if (g < 65537 && (h.subarray && n || !h.subarray && o)) return String.fromCharCode.apply(null, l.shrinkBuf(h, g));
|
|
1402
|
+
for (var a = "", f = 0; f < g; f++) a += String.fromCharCode(h[f]);
|
|
1403
|
+
return a;
|
|
1404
|
+
}
|
|
1405
|
+
s[254] = s[254] = 1, y.string2buf = function(h) {
|
|
1406
|
+
var g, a, f, r, d, i = h.length, p = 0;
|
|
1407
|
+
for (r = 0; r < i; r++) (64512 & (a = h.charCodeAt(r))) == 55296 && r + 1 < i && (64512 & (f = h.charCodeAt(r + 1))) == 56320 && (a = 65536 + (a - 55296 << 10) + (f - 56320), r++), p += a < 128 ? 1 : a < 2048 ? 2 : a < 65536 ? 3 : 4;
|
|
1408
|
+
for (g = new l.Buf8(p), r = d = 0; d < p; r++) (64512 & (a = h.charCodeAt(r))) == 55296 && r + 1 < i && (64512 & (f = h.charCodeAt(r + 1))) == 56320 && (a = 65536 + (a - 55296 << 10) + (f - 56320), r++), a < 128 ? g[d++] = a : (a < 2048 ? g[d++] = 192 | a >>> 6 : (a < 65536 ? g[d++] = 224 | a >>> 12 : (g[d++] = 240 | a >>> 18, g[d++] = 128 | a >>> 12 & 63), g[d++] = 128 | a >>> 6 & 63), g[d++] = 128 | 63 & a);
|
|
1409
|
+
return g;
|
|
1410
|
+
}, y.buf2binstring = function(h) {
|
|
1411
|
+
return v(h, h.length);
|
|
1412
|
+
}, y.binstring2buf = function(h) {
|
|
1413
|
+
for (var g = new l.Buf8(h.length), a = 0, f = g.length; a < f; a++) g[a] = h.charCodeAt(a);
|
|
1414
|
+
return g;
|
|
1415
|
+
}, y.buf2string = function(h, g) {
|
|
1416
|
+
var a, f, r, d, i = g || h.length, p = new Array(2 * i);
|
|
1417
|
+
for (a = f = 0; a < i; ) if ((r = h[a++]) < 128) p[f++] = r;
|
|
1418
|
+
else if (4 < (d = s[r])) p[f++] = 65533, a += d - 1;
|
|
1419
|
+
else {
|
|
1420
|
+
for (r &= d === 2 ? 31 : d === 3 ? 15 : 7; 1 < d && a < i; ) r = r << 6 | 63 & h[a++], d--;
|
|
1421
|
+
1 < d ? p[f++] = 65533 : r < 65536 ? p[f++] = r : (r -= 65536, p[f++] = 55296 | r >> 10 & 1023, p[f++] = 56320 | 1023 & r);
|
|
1422
|
+
}
|
|
1423
|
+
return v(p, f);
|
|
1424
|
+
}, y.utf8border = function(h, g) {
|
|
1425
|
+
var a;
|
|
1426
|
+
for ((g = g || h.length) > h.length && (g = h.length), a = g - 1; 0 <= a && (192 & h[a]) == 128; ) a--;
|
|
1427
|
+
return a < 0 || a === 0 ? g : a + s[h[a]] > g ? a : g;
|
|
1428
|
+
};
|
|
1429
|
+
}, { "./common": 41 }], 43: [function(m, N, y) {
|
|
1430
|
+
N.exports = function(l, o, n, s) {
|
|
1431
|
+
for (var _ = 65535 & l | 0, v = l >>> 16 & 65535 | 0, h = 0; n !== 0; ) {
|
|
1432
|
+
for (n -= h = 2e3 < n ? 2e3 : n; v = v + (_ = _ + o[s++] | 0) | 0, --h; ) ;
|
|
1433
|
+
_ %= 65521, v %= 65521;
|
|
1434
|
+
}
|
|
1435
|
+
return _ | v << 16 | 0;
|
|
1436
|
+
};
|
|
1437
|
+
}, {}], 44: [function(m, N, y) {
|
|
1438
|
+
N.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 };
|
|
1439
|
+
}, {}], 45: [function(m, N, y) {
|
|
1440
|
+
var l = function() {
|
|
1441
|
+
for (var o, n = [], s = 0; s < 256; s++) {
|
|
1442
|
+
o = s;
|
|
1443
|
+
for (var _ = 0; _ < 8; _++) o = 1 & o ? 3988292384 ^ o >>> 1 : o >>> 1;
|
|
1444
|
+
n[s] = o;
|
|
1445
|
+
}
|
|
1446
|
+
return n;
|
|
1447
|
+
}();
|
|
1448
|
+
N.exports = function(o, n, s, _) {
|
|
1449
|
+
var v = l, h = _ + s;
|
|
1450
|
+
o ^= -1;
|
|
1451
|
+
for (var g = _; g < h; g++) o = o >>> 8 ^ v[255 & (o ^ n[g])];
|
|
1452
|
+
return -1 ^ o;
|
|
1453
|
+
};
|
|
1454
|
+
}, {}], 46: [function(m, N, y) {
|
|
1455
|
+
var l, o = m("../utils/common"), n = m("./trees"), s = m("./adler32"), _ = m("./crc32"), v = m("./messages"), h = 0, g = 4, a = 0, f = -2, r = -1, d = 4, i = 2, p = 8, w = 9, S = 286, E = 30, B = 19, C = 2 * S + 1, L = 15, R = 3, H = 258, X = H + R + 1, b = 42, O = 113, t = 1, D = 2, q = 3, P = 4;
|
|
1456
|
+
function J(e, z) {
|
|
1457
|
+
return e.msg = v[z], z;
|
|
1458
|
+
}
|
|
1459
|
+
function M(e) {
|
|
1460
|
+
return (e << 1) - (4 < e ? 9 : 0);
|
|
1461
|
+
}
|
|
1462
|
+
function $(e) {
|
|
1463
|
+
for (var z = e.length; 0 <= --z; ) e[z] = 0;
|
|
1464
|
+
}
|
|
1465
|
+
function T(e) {
|
|
1466
|
+
var z = e.state, I = z.pending;
|
|
1467
|
+
I > e.avail_out && (I = e.avail_out), I !== 0 && (o.arraySet(e.output, z.pending_buf, z.pending_out, I, e.next_out), e.next_out += I, z.pending_out += I, e.total_out += I, e.avail_out -= I, z.pending -= I, z.pending === 0 && (z.pending_out = 0));
|
|
1468
|
+
}
|
|
1469
|
+
function A(e, z) {
|
|
1470
|
+
n._tr_flush_block(e, 0 <= e.block_start ? e.block_start : -1, e.strstart - e.block_start, z), e.block_start = e.strstart, T(e.strm);
|
|
1471
|
+
}
|
|
1472
|
+
function K(e, z) {
|
|
1473
|
+
e.pending_buf[e.pending++] = z;
|
|
1474
|
+
}
|
|
1475
|
+
function Z(e, z) {
|
|
1476
|
+
e.pending_buf[e.pending++] = z >>> 8 & 255, e.pending_buf[e.pending++] = 255 & z;
|
|
1477
|
+
}
|
|
1478
|
+
function W(e, z) {
|
|
1479
|
+
var I, c, u = e.max_chain_length, k = e.strstart, U = e.prev_length, F = e.nice_match, x = e.strstart > e.w_size - X ? e.strstart - (e.w_size - X) : 0, j = e.window, V = e.w_mask, G = e.prev, Y = e.strstart + H, ne = j[k + U - 1], ee = j[k + U];
|
|
1480
|
+
e.prev_length >= e.good_match && (u >>= 2), F > e.lookahead && (F = e.lookahead);
|
|
1481
|
+
do
|
|
1482
|
+
if (j[(I = z) + U] === ee && j[I + U - 1] === ne && j[I] === j[k] && j[++I] === j[k + 1]) {
|
|
1483
|
+
k += 2, I++;
|
|
1484
|
+
do
|
|
1485
|
+
;
|
|
1486
|
+
while (j[++k] === j[++I] && j[++k] === j[++I] && j[++k] === j[++I] && j[++k] === j[++I] && j[++k] === j[++I] && j[++k] === j[++I] && j[++k] === j[++I] && j[++k] === j[++I] && k < Y);
|
|
1487
|
+
if (c = H - (Y - k), k = Y - H, U < c) {
|
|
1488
|
+
if (e.match_start = z, F <= (U = c)) break;
|
|
1489
|
+
ne = j[k + U - 1], ee = j[k + U];
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
while ((z = G[z & V]) > x && --u != 0);
|
|
1493
|
+
return U <= e.lookahead ? U : e.lookahead;
|
|
1494
|
+
}
|
|
1495
|
+
function ie(e) {
|
|
1496
|
+
var z, I, c, u, k, U, F, x, j, V, G = e.w_size;
|
|
1497
|
+
do {
|
|
1498
|
+
if (u = e.window_size - e.lookahead - e.strstart, e.strstart >= G + (G - X)) {
|
|
1499
|
+
for (o.arraySet(e.window, e.window, G, G, 0), e.match_start -= G, e.strstart -= G, e.block_start -= G, z = I = e.hash_size; c = e.head[--z], e.head[z] = G <= c ? c - G : 0, --I; ) ;
|
|
1500
|
+
for (z = I = G; c = e.prev[--z], e.prev[z] = G <= c ? c - G : 0, --I; ) ;
|
|
1501
|
+
u += G;
|
|
1502
|
+
}
|
|
1503
|
+
if (e.strm.avail_in === 0) break;
|
|
1504
|
+
if (U = e.strm, F = e.window, x = e.strstart + e.lookahead, j = u, V = void 0, V = U.avail_in, j < V && (V = j), I = V === 0 ? 0 : (U.avail_in -= V, o.arraySet(F, U.input, U.next_in, V, x), U.state.wrap === 1 ? U.adler = s(U.adler, F, V, x) : U.state.wrap === 2 && (U.adler = _(U.adler, F, V, x)), U.next_in += V, U.total_in += V, V), e.lookahead += I, e.lookahead + e.insert >= R) for (k = e.strstart - e.insert, e.ins_h = e.window[k], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[k + 1]) & e.hash_mask; e.insert && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[k + R - 1]) & e.hash_mask, e.prev[k & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = k, k++, e.insert--, !(e.lookahead + e.insert < R)); ) ;
|
|
1505
|
+
} while (e.lookahead < X && e.strm.avail_in !== 0);
|
|
1506
|
+
}
|
|
1507
|
+
function le(e, z) {
|
|
1508
|
+
for (var I, c; ; ) {
|
|
1509
|
+
if (e.lookahead < X) {
|
|
1510
|
+
if (ie(e), e.lookahead < X && z === h) return t;
|
|
1511
|
+
if (e.lookahead === 0) break;
|
|
1512
|
+
}
|
|
1513
|
+
if (I = 0, e.lookahead >= R && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + R - 1]) & e.hash_mask, I = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), I !== 0 && e.strstart - I <= e.w_size - X && (e.match_length = W(e, I)), e.match_length >= R) if (c = n._tr_tally(e, e.strstart - e.match_start, e.match_length - R), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= R) {
|
|
1514
|
+
for (e.match_length--; e.strstart++, e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + R - 1]) & e.hash_mask, I = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart, --e.match_length != 0; ) ;
|
|
1515
|
+
e.strstart++;
|
|
1516
|
+
} else e.strstart += e.match_length, e.match_length = 0, e.ins_h = e.window[e.strstart], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 1]) & e.hash_mask;
|
|
1517
|
+
else c = n._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++;
|
|
1518
|
+
if (c && (A(e, !1), e.strm.avail_out === 0)) return t;
|
|
1519
|
+
}
|
|
1520
|
+
return e.insert = e.strstart < R - 1 ? e.strstart : R - 1, z === g ? (A(e, !0), e.strm.avail_out === 0 ? q : P) : e.last_lit && (A(e, !1), e.strm.avail_out === 0) ? t : D;
|
|
1521
|
+
}
|
|
1522
|
+
function Q(e, z) {
|
|
1523
|
+
for (var I, c, u; ; ) {
|
|
1524
|
+
if (e.lookahead < X) {
|
|
1525
|
+
if (ie(e), e.lookahead < X && z === h) return t;
|
|
1526
|
+
if (e.lookahead === 0) break;
|
|
1527
|
+
}
|
|
1528
|
+
if (I = 0, e.lookahead >= R && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + R - 1]) & e.hash_mask, I = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = R - 1, I !== 0 && e.prev_length < e.max_lazy_match && e.strstart - I <= e.w_size - X && (e.match_length = W(e, I), e.match_length <= 5 && (e.strategy === 1 || e.match_length === R && 4096 < e.strstart - e.match_start) && (e.match_length = R - 1)), e.prev_length >= R && e.match_length <= e.prev_length) {
|
|
1529
|
+
for (u = e.strstart + e.lookahead - R, c = n._tr_tally(e, e.strstart - 1 - e.prev_match, e.prev_length - R), e.lookahead -= e.prev_length - 1, e.prev_length -= 2; ++e.strstart <= u && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + R - 1]) & e.hash_mask, I = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), --e.prev_length != 0; ) ;
|
|
1530
|
+
if (e.match_available = 0, e.match_length = R - 1, e.strstart++, c && (A(e, !1), e.strm.avail_out === 0)) return t;
|
|
1531
|
+
} else if (e.match_available) {
|
|
1532
|
+
if ((c = n._tr_tally(e, 0, e.window[e.strstart - 1])) && A(e, !1), e.strstart++, e.lookahead--, e.strm.avail_out === 0) return t;
|
|
1533
|
+
} else e.match_available = 1, e.strstart++, e.lookahead--;
|
|
1534
|
+
}
|
|
1535
|
+
return e.match_available && (c = n._tr_tally(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < R - 1 ? e.strstart : R - 1, z === g ? (A(e, !0), e.strm.avail_out === 0 ? q : P) : e.last_lit && (A(e, !1), e.strm.avail_out === 0) ? t : D;
|
|
1536
|
+
}
|
|
1537
|
+
function te(e, z, I, c, u) {
|
|
1538
|
+
this.good_length = e, this.max_lazy = z, this.nice_length = I, this.max_chain = c, this.func = u;
|
|
1539
|
+
}
|
|
1540
|
+
function ue() {
|
|
1541
|
+
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 = p, 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 o.Buf16(2 * C), this.dyn_dtree = new o.Buf16(2 * (2 * E + 1)), this.bl_tree = new o.Buf16(2 * (2 * B + 1)), $(this.dyn_ltree), $(this.dyn_dtree), $(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new o.Buf16(L + 1), this.heap = new o.Buf16(2 * S + 1), $(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new o.Buf16(2 * S + 1), $(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;
|
|
1542
|
+
}
|
|
1543
|
+
function ae(e) {
|
|
1544
|
+
var z;
|
|
1545
|
+
return e && e.state ? (e.total_in = e.total_out = 0, e.data_type = i, (z = e.state).pending = 0, z.pending_out = 0, z.wrap < 0 && (z.wrap = -z.wrap), z.status = z.wrap ? b : O, e.adler = z.wrap === 2 ? 0 : 1, z.last_flush = h, n._tr_init(z), a) : J(e, f);
|
|
1546
|
+
}
|
|
1547
|
+
function pe(e) {
|
|
1548
|
+
var z = ae(e);
|
|
1549
|
+
return z === a && function(I) {
|
|
1550
|
+
I.window_size = 2 * I.w_size, $(I.head), I.max_lazy_match = l[I.level].max_lazy, I.good_match = l[I.level].good_length, I.nice_match = l[I.level].nice_length, I.max_chain_length = l[I.level].max_chain, I.strstart = 0, I.block_start = 0, I.lookahead = 0, I.insert = 0, I.match_length = I.prev_length = R - 1, I.match_available = 0, I.ins_h = 0;
|
|
1551
|
+
}(e.state), z;
|
|
1552
|
+
}
|
|
1553
|
+
function he(e, z, I, c, u, k) {
|
|
1554
|
+
if (!e) return f;
|
|
1555
|
+
var U = 1;
|
|
1556
|
+
if (z === r && (z = 6), c < 0 ? (U = 0, c = -c) : 15 < c && (U = 2, c -= 16), u < 1 || w < u || I !== p || c < 8 || 15 < c || z < 0 || 9 < z || k < 0 || d < k) return J(e, f);
|
|
1557
|
+
c === 8 && (c = 9);
|
|
1558
|
+
var F = new ue();
|
|
1559
|
+
return (e.state = F).strm = e, F.wrap = U, F.gzhead = null, F.w_bits = c, F.w_size = 1 << F.w_bits, F.w_mask = F.w_size - 1, F.hash_bits = u + 7, F.hash_size = 1 << F.hash_bits, F.hash_mask = F.hash_size - 1, F.hash_shift = ~~((F.hash_bits + R - 1) / R), F.window = new o.Buf8(2 * F.w_size), F.head = new o.Buf16(F.hash_size), F.prev = new o.Buf16(F.w_size), F.lit_bufsize = 1 << u + 6, F.pending_buf_size = 4 * F.lit_bufsize, F.pending_buf = new o.Buf8(F.pending_buf_size), F.d_buf = 1 * F.lit_bufsize, F.l_buf = 3 * F.lit_bufsize, F.level = z, F.strategy = k, F.method = I, pe(e);
|
|
1560
|
+
}
|
|
1561
|
+
l = [new te(0, 0, 0, 0, function(e, z) {
|
|
1562
|
+
var I = 65535;
|
|
1563
|
+
for (I > e.pending_buf_size - 5 && (I = e.pending_buf_size - 5); ; ) {
|
|
1564
|
+
if (e.lookahead <= 1) {
|
|
1565
|
+
if (ie(e), e.lookahead === 0 && z === h) return t;
|
|
1566
|
+
if (e.lookahead === 0) break;
|
|
1567
|
+
}
|
|
1568
|
+
e.strstart += e.lookahead, e.lookahead = 0;
|
|
1569
|
+
var c = e.block_start + I;
|
|
1570
|
+
if ((e.strstart === 0 || e.strstart >= c) && (e.lookahead = e.strstart - c, e.strstart = c, A(e, !1), e.strm.avail_out === 0) || e.strstart - e.block_start >= e.w_size - X && (A(e, !1), e.strm.avail_out === 0)) return t;
|
|
1571
|
+
}
|
|
1572
|
+
return e.insert = 0, z === g ? (A(e, !0), e.strm.avail_out === 0 ? q : P) : (e.strstart > e.block_start && (A(e, !1), e.strm.avail_out), t);
|
|
1573
|
+
}), new te(4, 4, 8, 4, le), new te(4, 5, 16, 8, le), new te(4, 6, 32, 32, le), new te(4, 4, 16, 16, Q), new te(8, 16, 32, 32, Q), new te(8, 16, 128, 128, Q), new te(8, 32, 128, 256, Q), new te(32, 128, 258, 1024, Q), new te(32, 258, 258, 4096, Q)], y.deflateInit = function(e, z) {
|
|
1574
|
+
return he(e, z, p, 15, 8, 0);
|
|
1575
|
+
}, y.deflateInit2 = he, y.deflateReset = pe, y.deflateResetKeep = ae, y.deflateSetHeader = function(e, z) {
|
|
1576
|
+
return e && e.state ? e.state.wrap !== 2 ? f : (e.state.gzhead = z, a) : f;
|
|
1577
|
+
}, y.deflate = function(e, z) {
|
|
1578
|
+
var I, c, u, k;
|
|
1579
|
+
if (!e || !e.state || 5 < z || z < 0) return e ? J(e, f) : f;
|
|
1580
|
+
if (c = e.state, !e.output || !e.input && e.avail_in !== 0 || c.status === 666 && z !== g) return J(e, e.avail_out === 0 ? -5 : f);
|
|
1581
|
+
if (c.strm = e, I = c.last_flush, c.last_flush = z, c.status === b) if (c.wrap === 2) e.adler = 0, K(c, 31), K(c, 139), K(c, 8), c.gzhead ? (K(c, (c.gzhead.text ? 1 : 0) + (c.gzhead.hcrc ? 2 : 0) + (c.gzhead.extra ? 4 : 0) + (c.gzhead.name ? 8 : 0) + (c.gzhead.comment ? 16 : 0)), K(c, 255 & c.gzhead.time), K(c, c.gzhead.time >> 8 & 255), K(c, c.gzhead.time >> 16 & 255), K(c, c.gzhead.time >> 24 & 255), K(c, c.level === 9 ? 2 : 2 <= c.strategy || c.level < 2 ? 4 : 0), K(c, 255 & c.gzhead.os), c.gzhead.extra && c.gzhead.extra.length && (K(c, 255 & c.gzhead.extra.length), K(c, c.gzhead.extra.length >> 8 & 255)), c.gzhead.hcrc && (e.adler = _(e.adler, c.pending_buf, c.pending, 0)), c.gzindex = 0, c.status = 69) : (K(c, 0), K(c, 0), K(c, 0), K(c, 0), K(c, 0), K(c, c.level === 9 ? 2 : 2 <= c.strategy || c.level < 2 ? 4 : 0), K(c, 3), c.status = O);
|
|
1582
|
+
else {
|
|
1583
|
+
var U = p + (c.w_bits - 8 << 4) << 8;
|
|
1584
|
+
U |= (2 <= c.strategy || c.level < 2 ? 0 : c.level < 6 ? 1 : c.level === 6 ? 2 : 3) << 6, c.strstart !== 0 && (U |= 32), U += 31 - U % 31, c.status = O, Z(c, U), c.strstart !== 0 && (Z(c, e.adler >>> 16), Z(c, 65535 & e.adler)), e.adler = 1;
|
|
1585
|
+
}
|
|
1586
|
+
if (c.status === 69) if (c.gzhead.extra) {
|
|
1587
|
+
for (u = c.pending; c.gzindex < (65535 & c.gzhead.extra.length) && (c.pending !== c.pending_buf_size || (c.gzhead.hcrc && c.pending > u && (e.adler = _(e.adler, c.pending_buf, c.pending - u, u)), T(e), u = c.pending, c.pending !== c.pending_buf_size)); ) K(c, 255 & c.gzhead.extra[c.gzindex]), c.gzindex++;
|
|
1588
|
+
c.gzhead.hcrc && c.pending > u && (e.adler = _(e.adler, c.pending_buf, c.pending - u, u)), c.gzindex === c.gzhead.extra.length && (c.gzindex = 0, c.status = 73);
|
|
1589
|
+
} else c.status = 73;
|
|
1590
|
+
if (c.status === 73) if (c.gzhead.name) {
|
|
1591
|
+
u = c.pending;
|
|
1592
|
+
do {
|
|
1593
|
+
if (c.pending === c.pending_buf_size && (c.gzhead.hcrc && c.pending > u && (e.adler = _(e.adler, c.pending_buf, c.pending - u, u)), T(e), u = c.pending, c.pending === c.pending_buf_size)) {
|
|
1594
|
+
k = 1;
|
|
1595
|
+
break;
|
|
1596
|
+
}
|
|
1597
|
+
k = c.gzindex < c.gzhead.name.length ? 255 & c.gzhead.name.charCodeAt(c.gzindex++) : 0, K(c, k);
|
|
1598
|
+
} while (k !== 0);
|
|
1599
|
+
c.gzhead.hcrc && c.pending > u && (e.adler = _(e.adler, c.pending_buf, c.pending - u, u)), k === 0 && (c.gzindex = 0, c.status = 91);
|
|
1600
|
+
} else c.status = 91;
|
|
1601
|
+
if (c.status === 91) if (c.gzhead.comment) {
|
|
1602
|
+
u = c.pending;
|
|
1603
|
+
do {
|
|
1604
|
+
if (c.pending === c.pending_buf_size && (c.gzhead.hcrc && c.pending > u && (e.adler = _(e.adler, c.pending_buf, c.pending - u, u)), T(e), u = c.pending, c.pending === c.pending_buf_size)) {
|
|
1605
|
+
k = 1;
|
|
1606
|
+
break;
|
|
1607
|
+
}
|
|
1608
|
+
k = c.gzindex < c.gzhead.comment.length ? 255 & c.gzhead.comment.charCodeAt(c.gzindex++) : 0, K(c, k);
|
|
1609
|
+
} while (k !== 0);
|
|
1610
|
+
c.gzhead.hcrc && c.pending > u && (e.adler = _(e.adler, c.pending_buf, c.pending - u, u)), k === 0 && (c.status = 103);
|
|
1611
|
+
} else c.status = 103;
|
|
1612
|
+
if (c.status === 103 && (c.gzhead.hcrc ? (c.pending + 2 > c.pending_buf_size && T(e), c.pending + 2 <= c.pending_buf_size && (K(c, 255 & e.adler), K(c, e.adler >> 8 & 255), e.adler = 0, c.status = O)) : c.status = O), c.pending !== 0) {
|
|
1613
|
+
if (T(e), e.avail_out === 0) return c.last_flush = -1, a;
|
|
1614
|
+
} else if (e.avail_in === 0 && M(z) <= M(I) && z !== g) return J(e, -5);
|
|
1615
|
+
if (c.status === 666 && e.avail_in !== 0) return J(e, -5);
|
|
1616
|
+
if (e.avail_in !== 0 || c.lookahead !== 0 || z !== h && c.status !== 666) {
|
|
1617
|
+
var F = c.strategy === 2 ? function(x, j) {
|
|
1618
|
+
for (var V; ; ) {
|
|
1619
|
+
if (x.lookahead === 0 && (ie(x), x.lookahead === 0)) {
|
|
1620
|
+
if (j === h) return t;
|
|
1621
|
+
break;
|
|
1622
|
+
}
|
|
1623
|
+
if (x.match_length = 0, V = n._tr_tally(x, 0, x.window[x.strstart]), x.lookahead--, x.strstart++, V && (A(x, !1), x.strm.avail_out === 0)) return t;
|
|
1624
|
+
}
|
|
1625
|
+
return x.insert = 0, j === g ? (A(x, !0), x.strm.avail_out === 0 ? q : P) : x.last_lit && (A(x, !1), x.strm.avail_out === 0) ? t : D;
|
|
1626
|
+
}(c, z) : c.strategy === 3 ? function(x, j) {
|
|
1627
|
+
for (var V, G, Y, ne, ee = x.window; ; ) {
|
|
1628
|
+
if (x.lookahead <= H) {
|
|
1629
|
+
if (ie(x), x.lookahead <= H && j === h) return t;
|
|
1630
|
+
if (x.lookahead === 0) break;
|
|
1631
|
+
}
|
|
1632
|
+
if (x.match_length = 0, x.lookahead >= R && 0 < x.strstart && (G = ee[Y = x.strstart - 1]) === ee[++Y] && G === ee[++Y] && G === ee[++Y]) {
|
|
1633
|
+
ne = x.strstart + H;
|
|
1634
|
+
do
|
|
1635
|
+
;
|
|
1636
|
+
while (G === ee[++Y] && G === ee[++Y] && G === ee[++Y] && G === ee[++Y] && G === ee[++Y] && G === ee[++Y] && G === ee[++Y] && G === ee[++Y] && Y < ne);
|
|
1637
|
+
x.match_length = H - (ne - Y), x.match_length > x.lookahead && (x.match_length = x.lookahead);
|
|
1638
|
+
}
|
|
1639
|
+
if (x.match_length >= R ? (V = n._tr_tally(x, 1, x.match_length - R), x.lookahead -= x.match_length, x.strstart += x.match_length, x.match_length = 0) : (V = n._tr_tally(x, 0, x.window[x.strstart]), x.lookahead--, x.strstart++), V && (A(x, !1), x.strm.avail_out === 0)) return t;
|
|
1640
|
+
}
|
|
1641
|
+
return x.insert = 0, j === g ? (A(x, !0), x.strm.avail_out === 0 ? q : P) : x.last_lit && (A(x, !1), x.strm.avail_out === 0) ? t : D;
|
|
1642
|
+
}(c, z) : l[c.level].func(c, z);
|
|
1643
|
+
if (F !== q && F !== P || (c.status = 666), F === t || F === q) return e.avail_out === 0 && (c.last_flush = -1), a;
|
|
1644
|
+
if (F === D && (z === 1 ? n._tr_align(c) : z !== 5 && (n._tr_stored_block(c, 0, 0, !1), z === 3 && ($(c.head), c.lookahead === 0 && (c.strstart = 0, c.block_start = 0, c.insert = 0))), T(e), e.avail_out === 0)) return c.last_flush = -1, a;
|
|
1645
|
+
}
|
|
1646
|
+
return z !== g ? a : c.wrap <= 0 ? 1 : (c.wrap === 2 ? (K(c, 255 & e.adler), K(c, e.adler >> 8 & 255), K(c, e.adler >> 16 & 255), K(c, e.adler >> 24 & 255), K(c, 255 & e.total_in), K(c, e.total_in >> 8 & 255), K(c, e.total_in >> 16 & 255), K(c, e.total_in >> 24 & 255)) : (Z(c, e.adler >>> 16), Z(c, 65535 & e.adler)), T(e), 0 < c.wrap && (c.wrap = -c.wrap), c.pending !== 0 ? a : 1);
|
|
1647
|
+
}, y.deflateEnd = function(e) {
|
|
1648
|
+
var z;
|
|
1649
|
+
return e && e.state ? (z = e.state.status) !== b && z !== 69 && z !== 73 && z !== 91 && z !== 103 && z !== O && z !== 666 ? J(e, f) : (e.state = null, z === O ? J(e, -3) : a) : f;
|
|
1650
|
+
}, y.deflateSetDictionary = function(e, z) {
|
|
1651
|
+
var I, c, u, k, U, F, x, j, V = z.length;
|
|
1652
|
+
if (!e || !e.state || (k = (I = e.state).wrap) === 2 || k === 1 && I.status !== b || I.lookahead) return f;
|
|
1653
|
+
for (k === 1 && (e.adler = s(e.adler, z, V, 0)), I.wrap = 0, V >= I.w_size && (k === 0 && ($(I.head), I.strstart = 0, I.block_start = 0, I.insert = 0), j = new o.Buf8(I.w_size), o.arraySet(j, z, V - I.w_size, I.w_size, 0), z = j, V = I.w_size), U = e.avail_in, F = e.next_in, x = e.input, e.avail_in = V, e.next_in = 0, e.input = z, ie(I); I.lookahead >= R; ) {
|
|
1654
|
+
for (c = I.strstart, u = I.lookahead - (R - 1); I.ins_h = (I.ins_h << I.hash_shift ^ I.window[c + R - 1]) & I.hash_mask, I.prev[c & I.w_mask] = I.head[I.ins_h], I.head[I.ins_h] = c, c++, --u; ) ;
|
|
1655
|
+
I.strstart = c, I.lookahead = R - 1, ie(I);
|
|
1656
|
+
}
|
|
1657
|
+
return I.strstart += I.lookahead, I.block_start = I.strstart, I.insert = I.lookahead, I.lookahead = 0, I.match_length = I.prev_length = R - 1, I.match_available = 0, e.next_in = F, e.input = x, e.avail_in = U, I.wrap = k, a;
|
|
1658
|
+
}, y.deflateInfo = "pako deflate (from Nodeca project)";
|
|
1659
|
+
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(m, N, y) {
|
|
1660
|
+
N.exports = function() {
|
|
1661
|
+
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;
|
|
1662
|
+
};
|
|
1663
|
+
}, {}], 48: [function(m, N, y) {
|
|
1664
|
+
N.exports = function(l, o) {
|
|
1665
|
+
var n, s, _, v, h, g, a, f, r, d, i, p, w, S, E, B, C, L, R, H, X, b, O, t, D;
|
|
1666
|
+
n = l.state, s = l.next_in, t = l.input, _ = s + (l.avail_in - 5), v = l.next_out, D = l.output, h = v - (o - l.avail_out), g = v + (l.avail_out - 257), a = n.dmax, f = n.wsize, r = n.whave, d = n.wnext, i = n.window, p = n.hold, w = n.bits, S = n.lencode, E = n.distcode, B = (1 << n.lenbits) - 1, C = (1 << n.distbits) - 1;
|
|
1667
|
+
e: do {
|
|
1668
|
+
w < 15 && (p += t[s++] << w, w += 8, p += t[s++] << w, w += 8), L = S[p & B];
|
|
1669
|
+
t: for (; ; ) {
|
|
1670
|
+
if (p >>>= R = L >>> 24, w -= R, (R = L >>> 16 & 255) === 0) D[v++] = 65535 & L;
|
|
1671
|
+
else {
|
|
1672
|
+
if (!(16 & R)) {
|
|
1673
|
+
if ((64 & R) == 0) {
|
|
1674
|
+
L = S[(65535 & L) + (p & (1 << R) - 1)];
|
|
1675
|
+
continue t;
|
|
1676
|
+
}
|
|
1677
|
+
if (32 & R) {
|
|
1678
|
+
n.mode = 12;
|
|
1679
|
+
break e;
|
|
1680
|
+
}
|
|
1681
|
+
l.msg = "invalid literal/length code", n.mode = 30;
|
|
1682
|
+
break e;
|
|
1683
|
+
}
|
|
1684
|
+
H = 65535 & L, (R &= 15) && (w < R && (p += t[s++] << w, w += 8), H += p & (1 << R) - 1, p >>>= R, w -= R), w < 15 && (p += t[s++] << w, w += 8, p += t[s++] << w, w += 8), L = E[p & C];
|
|
1685
|
+
r: for (; ; ) {
|
|
1686
|
+
if (p >>>= R = L >>> 24, w -= R, !(16 & (R = L >>> 16 & 255))) {
|
|
1687
|
+
if ((64 & R) == 0) {
|
|
1688
|
+
L = E[(65535 & L) + (p & (1 << R) - 1)];
|
|
1689
|
+
continue r;
|
|
1690
|
+
}
|
|
1691
|
+
l.msg = "invalid distance code", n.mode = 30;
|
|
1692
|
+
break e;
|
|
1693
|
+
}
|
|
1694
|
+
if (X = 65535 & L, w < (R &= 15) && (p += t[s++] << w, (w += 8) < R && (p += t[s++] << w, w += 8)), a < (X += p & (1 << R) - 1)) {
|
|
1695
|
+
l.msg = "invalid distance too far back", n.mode = 30;
|
|
1696
|
+
break e;
|
|
1697
|
+
}
|
|
1698
|
+
if (p >>>= R, w -= R, (R = v - h) < X) {
|
|
1699
|
+
if (r < (R = X - R) && n.sane) {
|
|
1700
|
+
l.msg = "invalid distance too far back", n.mode = 30;
|
|
1701
|
+
break e;
|
|
1702
|
+
}
|
|
1703
|
+
if (O = i, (b = 0) === d) {
|
|
1704
|
+
if (b += f - R, R < H) {
|
|
1705
|
+
for (H -= R; D[v++] = i[b++], --R; ) ;
|
|
1706
|
+
b = v - X, O = D;
|
|
1707
|
+
}
|
|
1708
|
+
} else if (d < R) {
|
|
1709
|
+
if (b += f + d - R, (R -= d) < H) {
|
|
1710
|
+
for (H -= R; D[v++] = i[b++], --R; ) ;
|
|
1711
|
+
if (b = 0, d < H) {
|
|
1712
|
+
for (H -= R = d; D[v++] = i[b++], --R; ) ;
|
|
1713
|
+
b = v - X, O = D;
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
} else if (b += d - R, R < H) {
|
|
1717
|
+
for (H -= R; D[v++] = i[b++], --R; ) ;
|
|
1718
|
+
b = v - X, O = D;
|
|
1719
|
+
}
|
|
1720
|
+
for (; 2 < H; ) D[v++] = O[b++], D[v++] = O[b++], D[v++] = O[b++], H -= 3;
|
|
1721
|
+
H && (D[v++] = O[b++], 1 < H && (D[v++] = O[b++]));
|
|
1722
|
+
} else {
|
|
1723
|
+
for (b = v - X; D[v++] = D[b++], D[v++] = D[b++], D[v++] = D[b++], 2 < (H -= 3); ) ;
|
|
1724
|
+
H && (D[v++] = D[b++], 1 < H && (D[v++] = D[b++]));
|
|
1725
|
+
}
|
|
1726
|
+
break;
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
break;
|
|
1730
|
+
}
|
|
1731
|
+
} while (s < _ && v < g);
|
|
1732
|
+
s -= H = w >> 3, p &= (1 << (w -= H << 3)) - 1, l.next_in = s, l.next_out = v, l.avail_in = s < _ ? _ - s + 5 : 5 - (s - _), l.avail_out = v < g ? g - v + 257 : 257 - (v - g), n.hold = p, n.bits = w;
|
|
1733
|
+
};
|
|
1734
|
+
}, {}], 49: [function(m, N, y) {
|
|
1735
|
+
var l = m("../utils/common"), o = m("./adler32"), n = m("./crc32"), s = m("./inffast"), _ = m("./inftrees"), v = 1, h = 2, g = 0, a = -2, f = 1, r = 852, d = 592;
|
|
1736
|
+
function i(b) {
|
|
1737
|
+
return (b >>> 24 & 255) + (b >>> 8 & 65280) + ((65280 & b) << 8) + ((255 & b) << 24);
|
|
1738
|
+
}
|
|
1739
|
+
function p() {
|
|
1740
|
+
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 l.Buf16(320), this.work = new l.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
1741
|
+
}
|
|
1742
|
+
function w(b) {
|
|
1743
|
+
var O;
|
|
1744
|
+
return b && b.state ? (O = b.state, b.total_in = b.total_out = O.total = 0, b.msg = "", O.wrap && (b.adler = 1 & O.wrap), O.mode = f, O.last = 0, O.havedict = 0, O.dmax = 32768, O.head = null, O.hold = 0, O.bits = 0, O.lencode = O.lendyn = new l.Buf32(r), O.distcode = O.distdyn = new l.Buf32(d), O.sane = 1, O.back = -1, g) : a;
|
|
1745
|
+
}
|
|
1746
|
+
function S(b) {
|
|
1747
|
+
var O;
|
|
1748
|
+
return b && b.state ? ((O = b.state).wsize = 0, O.whave = 0, O.wnext = 0, w(b)) : a;
|
|
1749
|
+
}
|
|
1750
|
+
function E(b, O) {
|
|
1751
|
+
var t, D;
|
|
1752
|
+
return b && b.state ? (D = b.state, O < 0 ? (t = 0, O = -O) : (t = 1 + (O >> 4), O < 48 && (O &= 15)), O && (O < 8 || 15 < O) ? a : (D.window !== null && D.wbits !== O && (D.window = null), D.wrap = t, D.wbits = O, S(b))) : a;
|
|
1753
|
+
}
|
|
1754
|
+
function B(b, O) {
|
|
1755
|
+
var t, D;
|
|
1756
|
+
return b ? (D = new p(), (b.state = D).window = null, (t = E(b, O)) !== g && (b.state = null), t) : a;
|
|
1757
|
+
}
|
|
1758
|
+
var C, L, R = !0;
|
|
1759
|
+
function H(b) {
|
|
1760
|
+
if (R) {
|
|
1761
|
+
var O;
|
|
1762
|
+
for (C = new l.Buf32(512), L = new l.Buf32(32), O = 0; O < 144; ) b.lens[O++] = 8;
|
|
1763
|
+
for (; O < 256; ) b.lens[O++] = 9;
|
|
1764
|
+
for (; O < 280; ) b.lens[O++] = 7;
|
|
1765
|
+
for (; O < 288; ) b.lens[O++] = 8;
|
|
1766
|
+
for (_(v, b.lens, 0, 288, C, 0, b.work, { bits: 9 }), O = 0; O < 32; ) b.lens[O++] = 5;
|
|
1767
|
+
_(h, b.lens, 0, 32, L, 0, b.work, { bits: 5 }), R = !1;
|
|
1768
|
+
}
|
|
1769
|
+
b.lencode = C, b.lenbits = 9, b.distcode = L, b.distbits = 5;
|
|
1770
|
+
}
|
|
1771
|
+
function X(b, O, t, D) {
|
|
1772
|
+
var q, P = b.state;
|
|
1773
|
+
return P.window === null && (P.wsize = 1 << P.wbits, P.wnext = 0, P.whave = 0, P.window = new l.Buf8(P.wsize)), D >= P.wsize ? (l.arraySet(P.window, O, t - P.wsize, P.wsize, 0), P.wnext = 0, P.whave = P.wsize) : (D < (q = P.wsize - P.wnext) && (q = D), l.arraySet(P.window, O, t - D, q, P.wnext), (D -= q) ? (l.arraySet(P.window, O, t - D, D, 0), P.wnext = D, P.whave = P.wsize) : (P.wnext += q, P.wnext === P.wsize && (P.wnext = 0), P.whave < P.wsize && (P.whave += q))), 0;
|
|
1774
|
+
}
|
|
1775
|
+
y.inflateReset = S, y.inflateReset2 = E, y.inflateResetKeep = w, y.inflateInit = function(b) {
|
|
1776
|
+
return B(b, 15);
|
|
1777
|
+
}, y.inflateInit2 = B, y.inflate = function(b, O) {
|
|
1778
|
+
var t, D, q, P, J, M, $, T, A, K, Z, W, ie, le, Q, te, ue, ae, pe, he, e, z, I, c, u = 0, k = new l.Buf8(4), U = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
1779
|
+
if (!b || !b.state || !b.output || !b.input && b.avail_in !== 0) return a;
|
|
1780
|
+
(t = b.state).mode === 12 && (t.mode = 13), J = b.next_out, q = b.output, $ = b.avail_out, P = b.next_in, D = b.input, M = b.avail_in, T = t.hold, A = t.bits, K = M, Z = $, z = g;
|
|
1781
|
+
e: for (; ; ) switch (t.mode) {
|
|
1782
|
+
case f:
|
|
1783
|
+
if (t.wrap === 0) {
|
|
1784
|
+
t.mode = 13;
|
|
1785
|
+
break;
|
|
1786
|
+
}
|
|
1787
|
+
for (; A < 16; ) {
|
|
1788
|
+
if (M === 0) break e;
|
|
1789
|
+
M--, T += D[P++] << A, A += 8;
|
|
1790
|
+
}
|
|
1791
|
+
if (2 & t.wrap && T === 35615) {
|
|
1792
|
+
k[t.check = 0] = 255 & T, k[1] = T >>> 8 & 255, t.check = n(t.check, k, 2, 0), A = T = 0, t.mode = 2;
|
|
1793
|
+
break;
|
|
1794
|
+
}
|
|
1795
|
+
if (t.flags = 0, t.head && (t.head.done = !1), !(1 & t.wrap) || (((255 & T) << 8) + (T >> 8)) % 31) {
|
|
1796
|
+
b.msg = "incorrect header check", t.mode = 30;
|
|
1797
|
+
break;
|
|
1798
|
+
}
|
|
1799
|
+
if ((15 & T) != 8) {
|
|
1800
|
+
b.msg = "unknown compression method", t.mode = 30;
|
|
1801
|
+
break;
|
|
1802
|
+
}
|
|
1803
|
+
if (A -= 4, e = 8 + (15 & (T >>>= 4)), t.wbits === 0) t.wbits = e;
|
|
1804
|
+
else if (e > t.wbits) {
|
|
1805
|
+
b.msg = "invalid window size", t.mode = 30;
|
|
1806
|
+
break;
|
|
1807
|
+
}
|
|
1808
|
+
t.dmax = 1 << e, b.adler = t.check = 1, t.mode = 512 & T ? 10 : 12, A = T = 0;
|
|
1809
|
+
break;
|
|
1810
|
+
case 2:
|
|
1811
|
+
for (; A < 16; ) {
|
|
1812
|
+
if (M === 0) break e;
|
|
1813
|
+
M--, T += D[P++] << A, A += 8;
|
|
1814
|
+
}
|
|
1815
|
+
if (t.flags = T, (255 & t.flags) != 8) {
|
|
1816
|
+
b.msg = "unknown compression method", t.mode = 30;
|
|
1817
|
+
break;
|
|
1818
|
+
}
|
|
1819
|
+
if (57344 & t.flags) {
|
|
1820
|
+
b.msg = "unknown header flags set", t.mode = 30;
|
|
1821
|
+
break;
|
|
1822
|
+
}
|
|
1823
|
+
t.head && (t.head.text = T >> 8 & 1), 512 & t.flags && (k[0] = 255 & T, k[1] = T >>> 8 & 255, t.check = n(t.check, k, 2, 0)), A = T = 0, t.mode = 3;
|
|
1824
|
+
case 3:
|
|
1825
|
+
for (; A < 32; ) {
|
|
1826
|
+
if (M === 0) break e;
|
|
1827
|
+
M--, T += D[P++] << A, A += 8;
|
|
1828
|
+
}
|
|
1829
|
+
t.head && (t.head.time = T), 512 & t.flags && (k[0] = 255 & T, k[1] = T >>> 8 & 255, k[2] = T >>> 16 & 255, k[3] = T >>> 24 & 255, t.check = n(t.check, k, 4, 0)), A = T = 0, t.mode = 4;
|
|
1830
|
+
case 4:
|
|
1831
|
+
for (; A < 16; ) {
|
|
1832
|
+
if (M === 0) break e;
|
|
1833
|
+
M--, T += D[P++] << A, A += 8;
|
|
1834
|
+
}
|
|
1835
|
+
t.head && (t.head.xflags = 255 & T, t.head.os = T >> 8), 512 & t.flags && (k[0] = 255 & T, k[1] = T >>> 8 & 255, t.check = n(t.check, k, 2, 0)), A = T = 0, t.mode = 5;
|
|
1836
|
+
case 5:
|
|
1837
|
+
if (1024 & t.flags) {
|
|
1838
|
+
for (; A < 16; ) {
|
|
1839
|
+
if (M === 0) break e;
|
|
1840
|
+
M--, T += D[P++] << A, A += 8;
|
|
1841
|
+
}
|
|
1842
|
+
t.length = T, t.head && (t.head.extra_len = T), 512 & t.flags && (k[0] = 255 & T, k[1] = T >>> 8 & 255, t.check = n(t.check, k, 2, 0)), A = T = 0;
|
|
1843
|
+
} else t.head && (t.head.extra = null);
|
|
1844
|
+
t.mode = 6;
|
|
1845
|
+
case 6:
|
|
1846
|
+
if (1024 & t.flags && (M < (W = t.length) && (W = M), W && (t.head && (e = t.head.extra_len - t.length, t.head.extra || (t.head.extra = new Array(t.head.extra_len)), l.arraySet(t.head.extra, D, P, W, e)), 512 & t.flags && (t.check = n(t.check, D, W, P)), M -= W, P += W, t.length -= W), t.length)) break e;
|
|
1847
|
+
t.length = 0, t.mode = 7;
|
|
1848
|
+
case 7:
|
|
1849
|
+
if (2048 & t.flags) {
|
|
1850
|
+
if (M === 0) break e;
|
|
1851
|
+
for (W = 0; e = D[P + W++], t.head && e && t.length < 65536 && (t.head.name += String.fromCharCode(e)), e && W < M; ) ;
|
|
1852
|
+
if (512 & t.flags && (t.check = n(t.check, D, W, P)), M -= W, P += W, e) break e;
|
|
1853
|
+
} else t.head && (t.head.name = null);
|
|
1854
|
+
t.length = 0, t.mode = 8;
|
|
1855
|
+
case 8:
|
|
1856
|
+
if (4096 & t.flags) {
|
|
1857
|
+
if (M === 0) break e;
|
|
1858
|
+
for (W = 0; e = D[P + W++], t.head && e && t.length < 65536 && (t.head.comment += String.fromCharCode(e)), e && W < M; ) ;
|
|
1859
|
+
if (512 & t.flags && (t.check = n(t.check, D, W, P)), M -= W, P += W, e) break e;
|
|
1860
|
+
} else t.head && (t.head.comment = null);
|
|
1861
|
+
t.mode = 9;
|
|
1862
|
+
case 9:
|
|
1863
|
+
if (512 & t.flags) {
|
|
1864
|
+
for (; A < 16; ) {
|
|
1865
|
+
if (M === 0) break e;
|
|
1866
|
+
M--, T += D[P++] << A, A += 8;
|
|
1867
|
+
}
|
|
1868
|
+
if (T !== (65535 & t.check)) {
|
|
1869
|
+
b.msg = "header crc mismatch", t.mode = 30;
|
|
1870
|
+
break;
|
|
1871
|
+
}
|
|
1872
|
+
A = T = 0;
|
|
1873
|
+
}
|
|
1874
|
+
t.head && (t.head.hcrc = t.flags >> 9 & 1, t.head.done = !0), b.adler = t.check = 0, t.mode = 12;
|
|
1875
|
+
break;
|
|
1876
|
+
case 10:
|
|
1877
|
+
for (; A < 32; ) {
|
|
1878
|
+
if (M === 0) break e;
|
|
1879
|
+
M--, T += D[P++] << A, A += 8;
|
|
1880
|
+
}
|
|
1881
|
+
b.adler = t.check = i(T), A = T = 0, t.mode = 11;
|
|
1882
|
+
case 11:
|
|
1883
|
+
if (t.havedict === 0) return b.next_out = J, b.avail_out = $, b.next_in = P, b.avail_in = M, t.hold = T, t.bits = A, 2;
|
|
1884
|
+
b.adler = t.check = 1, t.mode = 12;
|
|
1885
|
+
case 12:
|
|
1886
|
+
if (O === 5 || O === 6) break e;
|
|
1887
|
+
case 13:
|
|
1888
|
+
if (t.last) {
|
|
1889
|
+
T >>>= 7 & A, A -= 7 & A, t.mode = 27;
|
|
1890
|
+
break;
|
|
1891
|
+
}
|
|
1892
|
+
for (; A < 3; ) {
|
|
1893
|
+
if (M === 0) break e;
|
|
1894
|
+
M--, T += D[P++] << A, A += 8;
|
|
1895
|
+
}
|
|
1896
|
+
switch (t.last = 1 & T, A -= 1, 3 & (T >>>= 1)) {
|
|
1897
|
+
case 0:
|
|
1898
|
+
t.mode = 14;
|
|
1899
|
+
break;
|
|
1900
|
+
case 1:
|
|
1901
|
+
if (H(t), t.mode = 20, O !== 6) break;
|
|
1902
|
+
T >>>= 2, A -= 2;
|
|
1903
|
+
break e;
|
|
1904
|
+
case 2:
|
|
1905
|
+
t.mode = 17;
|
|
1906
|
+
break;
|
|
1907
|
+
case 3:
|
|
1908
|
+
b.msg = "invalid block type", t.mode = 30;
|
|
1909
|
+
}
|
|
1910
|
+
T >>>= 2, A -= 2;
|
|
1911
|
+
break;
|
|
1912
|
+
case 14:
|
|
1913
|
+
for (T >>>= 7 & A, A -= 7 & A; A < 32; ) {
|
|
1914
|
+
if (M === 0) break e;
|
|
1915
|
+
M--, T += D[P++] << A, A += 8;
|
|
1916
|
+
}
|
|
1917
|
+
if ((65535 & T) != (T >>> 16 ^ 65535)) {
|
|
1918
|
+
b.msg = "invalid stored block lengths", t.mode = 30;
|
|
1919
|
+
break;
|
|
1920
|
+
}
|
|
1921
|
+
if (t.length = 65535 & T, A = T = 0, t.mode = 15, O === 6) break e;
|
|
1922
|
+
case 15:
|
|
1923
|
+
t.mode = 16;
|
|
1924
|
+
case 16:
|
|
1925
|
+
if (W = t.length) {
|
|
1926
|
+
if (M < W && (W = M), $ < W && (W = $), W === 0) break e;
|
|
1927
|
+
l.arraySet(q, D, P, W, J), M -= W, P += W, $ -= W, J += W, t.length -= W;
|
|
1928
|
+
break;
|
|
1929
|
+
}
|
|
1930
|
+
t.mode = 12;
|
|
1931
|
+
break;
|
|
1932
|
+
case 17:
|
|
1933
|
+
for (; A < 14; ) {
|
|
1934
|
+
if (M === 0) break e;
|
|
1935
|
+
M--, T += D[P++] << A, A += 8;
|
|
1936
|
+
}
|
|
1937
|
+
if (t.nlen = 257 + (31 & T), T >>>= 5, A -= 5, t.ndist = 1 + (31 & T), T >>>= 5, A -= 5, t.ncode = 4 + (15 & T), T >>>= 4, A -= 4, 286 < t.nlen || 30 < t.ndist) {
|
|
1938
|
+
b.msg = "too many length or distance symbols", t.mode = 30;
|
|
1939
|
+
break;
|
|
1940
|
+
}
|
|
1941
|
+
t.have = 0, t.mode = 18;
|
|
1942
|
+
case 18:
|
|
1943
|
+
for (; t.have < t.ncode; ) {
|
|
1944
|
+
for (; A < 3; ) {
|
|
1945
|
+
if (M === 0) break e;
|
|
1946
|
+
M--, T += D[P++] << A, A += 8;
|
|
1947
|
+
}
|
|
1948
|
+
t.lens[U[t.have++]] = 7 & T, T >>>= 3, A -= 3;
|
|
1949
|
+
}
|
|
1950
|
+
for (; t.have < 19; ) t.lens[U[t.have++]] = 0;
|
|
1951
|
+
if (t.lencode = t.lendyn, t.lenbits = 7, I = { bits: t.lenbits }, z = _(0, t.lens, 0, 19, t.lencode, 0, t.work, I), t.lenbits = I.bits, z) {
|
|
1952
|
+
b.msg = "invalid code lengths set", t.mode = 30;
|
|
1953
|
+
break;
|
|
1954
|
+
}
|
|
1955
|
+
t.have = 0, t.mode = 19;
|
|
1956
|
+
case 19:
|
|
1957
|
+
for (; t.have < t.nlen + t.ndist; ) {
|
|
1958
|
+
for (; te = (u = t.lencode[T & (1 << t.lenbits) - 1]) >>> 16 & 255, ue = 65535 & u, !((Q = u >>> 24) <= A); ) {
|
|
1959
|
+
if (M === 0) break e;
|
|
1960
|
+
M--, T += D[P++] << A, A += 8;
|
|
1961
|
+
}
|
|
1962
|
+
if (ue < 16) T >>>= Q, A -= Q, t.lens[t.have++] = ue;
|
|
1963
|
+
else {
|
|
1964
|
+
if (ue === 16) {
|
|
1965
|
+
for (c = Q + 2; A < c; ) {
|
|
1966
|
+
if (M === 0) break e;
|
|
1967
|
+
M--, T += D[P++] << A, A += 8;
|
|
1968
|
+
}
|
|
1969
|
+
if (T >>>= Q, A -= Q, t.have === 0) {
|
|
1970
|
+
b.msg = "invalid bit length repeat", t.mode = 30;
|
|
1971
|
+
break;
|
|
1972
|
+
}
|
|
1973
|
+
e = t.lens[t.have - 1], W = 3 + (3 & T), T >>>= 2, A -= 2;
|
|
1974
|
+
} else if (ue === 17) {
|
|
1975
|
+
for (c = Q + 3; A < c; ) {
|
|
1976
|
+
if (M === 0) break e;
|
|
1977
|
+
M--, T += D[P++] << A, A += 8;
|
|
1978
|
+
}
|
|
1979
|
+
A -= Q, e = 0, W = 3 + (7 & (T >>>= Q)), T >>>= 3, A -= 3;
|
|
1980
|
+
} else {
|
|
1981
|
+
for (c = Q + 7; A < c; ) {
|
|
1982
|
+
if (M === 0) break e;
|
|
1983
|
+
M--, T += D[P++] << A, A += 8;
|
|
1984
|
+
}
|
|
1985
|
+
A -= Q, e = 0, W = 11 + (127 & (T >>>= Q)), T >>>= 7, A -= 7;
|
|
1986
|
+
}
|
|
1987
|
+
if (t.have + W > t.nlen + t.ndist) {
|
|
1988
|
+
b.msg = "invalid bit length repeat", t.mode = 30;
|
|
1989
|
+
break;
|
|
1990
|
+
}
|
|
1991
|
+
for (; W--; ) t.lens[t.have++] = e;
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1994
|
+
if (t.mode === 30) break;
|
|
1995
|
+
if (t.lens[256] === 0) {
|
|
1996
|
+
b.msg = "invalid code -- missing end-of-block", t.mode = 30;
|
|
1997
|
+
break;
|
|
1998
|
+
}
|
|
1999
|
+
if (t.lenbits = 9, I = { bits: t.lenbits }, z = _(v, t.lens, 0, t.nlen, t.lencode, 0, t.work, I), t.lenbits = I.bits, z) {
|
|
2000
|
+
b.msg = "invalid literal/lengths set", t.mode = 30;
|
|
2001
|
+
break;
|
|
2002
|
+
}
|
|
2003
|
+
if (t.distbits = 6, t.distcode = t.distdyn, I = { bits: t.distbits }, z = _(h, t.lens, t.nlen, t.ndist, t.distcode, 0, t.work, I), t.distbits = I.bits, z) {
|
|
2004
|
+
b.msg = "invalid distances set", t.mode = 30;
|
|
2005
|
+
break;
|
|
2006
|
+
}
|
|
2007
|
+
if (t.mode = 20, O === 6) break e;
|
|
2008
|
+
case 20:
|
|
2009
|
+
t.mode = 21;
|
|
2010
|
+
case 21:
|
|
2011
|
+
if (6 <= M && 258 <= $) {
|
|
2012
|
+
b.next_out = J, b.avail_out = $, b.next_in = P, b.avail_in = M, t.hold = T, t.bits = A, s(b, Z), J = b.next_out, q = b.output, $ = b.avail_out, P = b.next_in, D = b.input, M = b.avail_in, T = t.hold, A = t.bits, t.mode === 12 && (t.back = -1);
|
|
2013
|
+
break;
|
|
2014
|
+
}
|
|
2015
|
+
for (t.back = 0; te = (u = t.lencode[T & (1 << t.lenbits) - 1]) >>> 16 & 255, ue = 65535 & u, !((Q = u >>> 24) <= A); ) {
|
|
2016
|
+
if (M === 0) break e;
|
|
2017
|
+
M--, T += D[P++] << A, A += 8;
|
|
2018
|
+
}
|
|
2019
|
+
if (te && (240 & te) == 0) {
|
|
2020
|
+
for (ae = Q, pe = te, he = ue; te = (u = t.lencode[he + ((T & (1 << ae + pe) - 1) >> ae)]) >>> 16 & 255, ue = 65535 & u, !(ae + (Q = u >>> 24) <= A); ) {
|
|
2021
|
+
if (M === 0) break e;
|
|
2022
|
+
M--, T += D[P++] << A, A += 8;
|
|
2023
|
+
}
|
|
2024
|
+
T >>>= ae, A -= ae, t.back += ae;
|
|
2025
|
+
}
|
|
2026
|
+
if (T >>>= Q, A -= Q, t.back += Q, t.length = ue, te === 0) {
|
|
2027
|
+
t.mode = 26;
|
|
2028
|
+
break;
|
|
2029
|
+
}
|
|
2030
|
+
if (32 & te) {
|
|
2031
|
+
t.back = -1, t.mode = 12;
|
|
2032
|
+
break;
|
|
2033
|
+
}
|
|
2034
|
+
if (64 & te) {
|
|
2035
|
+
b.msg = "invalid literal/length code", t.mode = 30;
|
|
2036
|
+
break;
|
|
2037
|
+
}
|
|
2038
|
+
t.extra = 15 & te, t.mode = 22;
|
|
2039
|
+
case 22:
|
|
2040
|
+
if (t.extra) {
|
|
2041
|
+
for (c = t.extra; A < c; ) {
|
|
2042
|
+
if (M === 0) break e;
|
|
2043
|
+
M--, T += D[P++] << A, A += 8;
|
|
2044
|
+
}
|
|
2045
|
+
t.length += T & (1 << t.extra) - 1, T >>>= t.extra, A -= t.extra, t.back += t.extra;
|
|
2046
|
+
}
|
|
2047
|
+
t.was = t.length, t.mode = 23;
|
|
2048
|
+
case 23:
|
|
2049
|
+
for (; te = (u = t.distcode[T & (1 << t.distbits) - 1]) >>> 16 & 255, ue = 65535 & u, !((Q = u >>> 24) <= A); ) {
|
|
2050
|
+
if (M === 0) break e;
|
|
2051
|
+
M--, T += D[P++] << A, A += 8;
|
|
2052
|
+
}
|
|
2053
|
+
if ((240 & te) == 0) {
|
|
2054
|
+
for (ae = Q, pe = te, he = ue; te = (u = t.distcode[he + ((T & (1 << ae + pe) - 1) >> ae)]) >>> 16 & 255, ue = 65535 & u, !(ae + (Q = u >>> 24) <= A); ) {
|
|
2055
|
+
if (M === 0) break e;
|
|
2056
|
+
M--, T += D[P++] << A, A += 8;
|
|
2057
|
+
}
|
|
2058
|
+
T >>>= ae, A -= ae, t.back += ae;
|
|
2059
|
+
}
|
|
2060
|
+
if (T >>>= Q, A -= Q, t.back += Q, 64 & te) {
|
|
2061
|
+
b.msg = "invalid distance code", t.mode = 30;
|
|
2062
|
+
break;
|
|
2063
|
+
}
|
|
2064
|
+
t.offset = ue, t.extra = 15 & te, t.mode = 24;
|
|
2065
|
+
case 24:
|
|
2066
|
+
if (t.extra) {
|
|
2067
|
+
for (c = t.extra; A < c; ) {
|
|
2068
|
+
if (M === 0) break e;
|
|
2069
|
+
M--, T += D[P++] << A, A += 8;
|
|
2070
|
+
}
|
|
2071
|
+
t.offset += T & (1 << t.extra) - 1, T >>>= t.extra, A -= t.extra, t.back += t.extra;
|
|
2072
|
+
}
|
|
2073
|
+
if (t.offset > t.dmax) {
|
|
2074
|
+
b.msg = "invalid distance too far back", t.mode = 30;
|
|
2075
|
+
break;
|
|
2076
|
+
}
|
|
2077
|
+
t.mode = 25;
|
|
2078
|
+
case 25:
|
|
2079
|
+
if ($ === 0) break e;
|
|
2080
|
+
if (W = Z - $, t.offset > W) {
|
|
2081
|
+
if ((W = t.offset - W) > t.whave && t.sane) {
|
|
2082
|
+
b.msg = "invalid distance too far back", t.mode = 30;
|
|
2083
|
+
break;
|
|
2084
|
+
}
|
|
2085
|
+
ie = W > t.wnext ? (W -= t.wnext, t.wsize - W) : t.wnext - W, W > t.length && (W = t.length), le = t.window;
|
|
2086
|
+
} else le = q, ie = J - t.offset, W = t.length;
|
|
2087
|
+
for ($ < W && (W = $), $ -= W, t.length -= W; q[J++] = le[ie++], --W; ) ;
|
|
2088
|
+
t.length === 0 && (t.mode = 21);
|
|
2089
|
+
break;
|
|
2090
|
+
case 26:
|
|
2091
|
+
if ($ === 0) break e;
|
|
2092
|
+
q[J++] = t.length, $--, t.mode = 21;
|
|
2093
|
+
break;
|
|
2094
|
+
case 27:
|
|
2095
|
+
if (t.wrap) {
|
|
2096
|
+
for (; A < 32; ) {
|
|
2097
|
+
if (M === 0) break e;
|
|
2098
|
+
M--, T |= D[P++] << A, A += 8;
|
|
2099
|
+
}
|
|
2100
|
+
if (Z -= $, b.total_out += Z, t.total += Z, Z && (b.adler = t.check = t.flags ? n(t.check, q, Z, J - Z) : o(t.check, q, Z, J - Z)), Z = $, (t.flags ? T : i(T)) !== t.check) {
|
|
2101
|
+
b.msg = "incorrect data check", t.mode = 30;
|
|
2102
|
+
break;
|
|
2103
|
+
}
|
|
2104
|
+
A = T = 0;
|
|
2105
|
+
}
|
|
2106
|
+
t.mode = 28;
|
|
2107
|
+
case 28:
|
|
2108
|
+
if (t.wrap && t.flags) {
|
|
2109
|
+
for (; A < 32; ) {
|
|
2110
|
+
if (M === 0) break e;
|
|
2111
|
+
M--, T += D[P++] << A, A += 8;
|
|
2112
|
+
}
|
|
2113
|
+
if (T !== (4294967295 & t.total)) {
|
|
2114
|
+
b.msg = "incorrect length check", t.mode = 30;
|
|
2115
|
+
break;
|
|
2116
|
+
}
|
|
2117
|
+
A = T = 0;
|
|
2118
|
+
}
|
|
2119
|
+
t.mode = 29;
|
|
2120
|
+
case 29:
|
|
2121
|
+
z = 1;
|
|
2122
|
+
break e;
|
|
2123
|
+
case 30:
|
|
2124
|
+
z = -3;
|
|
2125
|
+
break e;
|
|
2126
|
+
case 31:
|
|
2127
|
+
return -4;
|
|
2128
|
+
case 32:
|
|
2129
|
+
default:
|
|
2130
|
+
return a;
|
|
2131
|
+
}
|
|
2132
|
+
return b.next_out = J, b.avail_out = $, b.next_in = P, b.avail_in = M, t.hold = T, t.bits = A, (t.wsize || Z !== b.avail_out && t.mode < 30 && (t.mode < 27 || O !== 4)) && X(b, b.output, b.next_out, Z - b.avail_out) ? (t.mode = 31, -4) : (K -= b.avail_in, Z -= b.avail_out, b.total_in += K, b.total_out += Z, t.total += Z, t.wrap && Z && (b.adler = t.check = t.flags ? n(t.check, q, Z, b.next_out - Z) : o(t.check, q, Z, b.next_out - Z)), b.data_type = t.bits + (t.last ? 64 : 0) + (t.mode === 12 ? 128 : 0) + (t.mode === 20 || t.mode === 15 ? 256 : 0), (K == 0 && Z === 0 || O === 4) && z === g && (z = -5), z);
|
|
2133
|
+
}, y.inflateEnd = function(b) {
|
|
2134
|
+
if (!b || !b.state) return a;
|
|
2135
|
+
var O = b.state;
|
|
2136
|
+
return O.window && (O.window = null), b.state = null, g;
|
|
2137
|
+
}, y.inflateGetHeader = function(b, O) {
|
|
2138
|
+
var t;
|
|
2139
|
+
return b && b.state ? (2 & (t = b.state).wrap) == 0 ? a : ((t.head = O).done = !1, g) : a;
|
|
2140
|
+
}, y.inflateSetDictionary = function(b, O) {
|
|
2141
|
+
var t, D = O.length;
|
|
2142
|
+
return b && b.state ? (t = b.state).wrap !== 0 && t.mode !== 11 ? a : t.mode === 11 && o(1, O, D, 0) !== t.check ? -3 : X(b, O, D, D) ? (t.mode = 31, -4) : (t.havedict = 1, g) : a;
|
|
2143
|
+
}, y.inflateInfo = "pako inflate (from Nodeca project)";
|
|
2144
|
+
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(m, N, y) {
|
|
2145
|
+
var l = m("../utils/common"), o = [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], n = [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], s = [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], _ = [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];
|
|
2146
|
+
N.exports = function(v, h, g, a, f, r, d, i) {
|
|
2147
|
+
var p, w, S, E, B, C, L, R, H, X = i.bits, b = 0, O = 0, t = 0, D = 0, q = 0, P = 0, J = 0, M = 0, $ = 0, T = 0, A = null, K = 0, Z = new l.Buf16(16), W = new l.Buf16(16), ie = null, le = 0;
|
|
2148
|
+
for (b = 0; b <= 15; b++) Z[b] = 0;
|
|
2149
|
+
for (O = 0; O < a; O++) Z[h[g + O]]++;
|
|
2150
|
+
for (q = X, D = 15; 1 <= D && Z[D] === 0; D--) ;
|
|
2151
|
+
if (D < q && (q = D), D === 0) return f[r++] = 20971520, f[r++] = 20971520, i.bits = 1, 0;
|
|
2152
|
+
for (t = 1; t < D && Z[t] === 0; t++) ;
|
|
2153
|
+
for (q < t && (q = t), b = M = 1; b <= 15; b++) if (M <<= 1, (M -= Z[b]) < 0) return -1;
|
|
2154
|
+
if (0 < M && (v === 0 || D !== 1)) return -1;
|
|
2155
|
+
for (W[1] = 0, b = 1; b < 15; b++) W[b + 1] = W[b] + Z[b];
|
|
2156
|
+
for (O = 0; O < a; O++) h[g + O] !== 0 && (d[W[h[g + O]]++] = O);
|
|
2157
|
+
if (C = v === 0 ? (A = ie = d, 19) : v === 1 ? (A = o, K -= 257, ie = n, le -= 257, 256) : (A = s, ie = _, -1), b = t, B = r, J = O = T = 0, S = -1, E = ($ = 1 << (P = q)) - 1, v === 1 && 852 < $ || v === 2 && 592 < $) return 1;
|
|
2158
|
+
for (; ; ) {
|
|
2159
|
+
for (L = b - J, H = d[O] < C ? (R = 0, d[O]) : d[O] > C ? (R = ie[le + d[O]], A[K + d[O]]) : (R = 96, 0), p = 1 << b - J, t = w = 1 << P; f[B + (T >> J) + (w -= p)] = L << 24 | R << 16 | H | 0, w !== 0; ) ;
|
|
2160
|
+
for (p = 1 << b - 1; T & p; ) p >>= 1;
|
|
2161
|
+
if (p !== 0 ? (T &= p - 1, T += p) : T = 0, O++, --Z[b] == 0) {
|
|
2162
|
+
if (b === D) break;
|
|
2163
|
+
b = h[g + d[O]];
|
|
2164
|
+
}
|
|
2165
|
+
if (q < b && (T & E) !== S) {
|
|
2166
|
+
for (J === 0 && (J = q), B += t, M = 1 << (P = b - J); P + J < D && !((M -= Z[P + J]) <= 0); ) P++, M <<= 1;
|
|
2167
|
+
if ($ += 1 << P, v === 1 && 852 < $ || v === 2 && 592 < $) return 1;
|
|
2168
|
+
f[S = T & E] = q << 24 | P << 16 | B - r | 0;
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
return T !== 0 && (f[B + T] = b - J << 24 | 64 << 16 | 0), i.bits = q, 0;
|
|
2172
|
+
};
|
|
2173
|
+
}, { "../utils/common": 41 }], 51: [function(m, N, y) {
|
|
2174
|
+
N.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" };
|
|
2175
|
+
}, {}], 52: [function(m, N, y) {
|
|
2176
|
+
var l = m("../utils/common"), o = 0, n = 1;
|
|
2177
|
+
function s(u) {
|
|
2178
|
+
for (var k = u.length; 0 <= --k; ) u[k] = 0;
|
|
2179
|
+
}
|
|
2180
|
+
var _ = 0, v = 29, h = 256, g = h + 1 + v, a = 30, f = 19, r = 2 * g + 1, d = 15, i = 16, p = 7, w = 256, S = 16, E = 17, B = 18, C = [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], L = [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], R = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], H = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], X = new Array(2 * (g + 2));
|
|
2181
|
+
s(X);
|
|
2182
|
+
var b = new Array(2 * a);
|
|
2183
|
+
s(b);
|
|
2184
|
+
var O = new Array(512);
|
|
2185
|
+
s(O);
|
|
2186
|
+
var t = new Array(256);
|
|
2187
|
+
s(t);
|
|
2188
|
+
var D = new Array(v);
|
|
2189
|
+
s(D);
|
|
2190
|
+
var q, P, J, M = new Array(a);
|
|
2191
|
+
function $(u, k, U, F, x) {
|
|
2192
|
+
this.static_tree = u, this.extra_bits = k, this.extra_base = U, this.elems = F, this.max_length = x, this.has_stree = u && u.length;
|
|
2193
|
+
}
|
|
2194
|
+
function T(u, k) {
|
|
2195
|
+
this.dyn_tree = u, this.max_code = 0, this.stat_desc = k;
|
|
2196
|
+
}
|
|
2197
|
+
function A(u) {
|
|
2198
|
+
return u < 256 ? O[u] : O[256 + (u >>> 7)];
|
|
2199
|
+
}
|
|
2200
|
+
function K(u, k) {
|
|
2201
|
+
u.pending_buf[u.pending++] = 255 & k, u.pending_buf[u.pending++] = k >>> 8 & 255;
|
|
2202
|
+
}
|
|
2203
|
+
function Z(u, k, U) {
|
|
2204
|
+
u.bi_valid > i - U ? (u.bi_buf |= k << u.bi_valid & 65535, K(u, u.bi_buf), u.bi_buf = k >> i - u.bi_valid, u.bi_valid += U - i) : (u.bi_buf |= k << u.bi_valid & 65535, u.bi_valid += U);
|
|
2205
|
+
}
|
|
2206
|
+
function W(u, k, U) {
|
|
2207
|
+
Z(u, U[2 * k], U[2 * k + 1]);
|
|
2208
|
+
}
|
|
2209
|
+
function ie(u, k) {
|
|
2210
|
+
for (var U = 0; U |= 1 & u, u >>>= 1, U <<= 1, 0 < --k; ) ;
|
|
2211
|
+
return U >>> 1;
|
|
2212
|
+
}
|
|
2213
|
+
function le(u, k, U) {
|
|
2214
|
+
var F, x, j = new Array(d + 1), V = 0;
|
|
2215
|
+
for (F = 1; F <= d; F++) j[F] = V = V + U[F - 1] << 1;
|
|
2216
|
+
for (x = 0; x <= k; x++) {
|
|
2217
|
+
var G = u[2 * x + 1];
|
|
2218
|
+
G !== 0 && (u[2 * x] = ie(j[G]++, G));
|
|
2219
|
+
}
|
|
2220
|
+
}
|
|
2221
|
+
function Q(u) {
|
|
2222
|
+
var k;
|
|
2223
|
+
for (k = 0; k < g; k++) u.dyn_ltree[2 * k] = 0;
|
|
2224
|
+
for (k = 0; k < a; k++) u.dyn_dtree[2 * k] = 0;
|
|
2225
|
+
for (k = 0; k < f; k++) u.bl_tree[2 * k] = 0;
|
|
2226
|
+
u.dyn_ltree[2 * w] = 1, u.opt_len = u.static_len = 0, u.last_lit = u.matches = 0;
|
|
2227
|
+
}
|
|
2228
|
+
function te(u) {
|
|
2229
|
+
8 < u.bi_valid ? K(u, u.bi_buf) : 0 < u.bi_valid && (u.pending_buf[u.pending++] = u.bi_buf), u.bi_buf = 0, u.bi_valid = 0;
|
|
2230
|
+
}
|
|
2231
|
+
function ue(u, k, U, F) {
|
|
2232
|
+
var x = 2 * k, j = 2 * U;
|
|
2233
|
+
return u[x] < u[j] || u[x] === u[j] && F[k] <= F[U];
|
|
2234
|
+
}
|
|
2235
|
+
function ae(u, k, U) {
|
|
2236
|
+
for (var F = u.heap[U], x = U << 1; x <= u.heap_len && (x < u.heap_len && ue(k, u.heap[x + 1], u.heap[x], u.depth) && x++, !ue(k, F, u.heap[x], u.depth)); ) u.heap[U] = u.heap[x], U = x, x <<= 1;
|
|
2237
|
+
u.heap[U] = F;
|
|
2238
|
+
}
|
|
2239
|
+
function pe(u, k, U) {
|
|
2240
|
+
var F, x, j, V, G = 0;
|
|
2241
|
+
if (u.last_lit !== 0) for (; F = u.pending_buf[u.d_buf + 2 * G] << 8 | u.pending_buf[u.d_buf + 2 * G + 1], x = u.pending_buf[u.l_buf + G], G++, F === 0 ? W(u, x, k) : (W(u, (j = t[x]) + h + 1, k), (V = C[j]) !== 0 && Z(u, x -= D[j], V), W(u, j = A(--F), U), (V = L[j]) !== 0 && Z(u, F -= M[j], V)), G < u.last_lit; ) ;
|
|
2242
|
+
W(u, w, k);
|
|
2243
|
+
}
|
|
2244
|
+
function he(u, k) {
|
|
2245
|
+
var U, F, x, j = k.dyn_tree, V = k.stat_desc.static_tree, G = k.stat_desc.has_stree, Y = k.stat_desc.elems, ne = -1;
|
|
2246
|
+
for (u.heap_len = 0, u.heap_max = r, U = 0; U < Y; U++) j[2 * U] !== 0 ? (u.heap[++u.heap_len] = ne = U, u.depth[U] = 0) : j[2 * U + 1] = 0;
|
|
2247
|
+
for (; u.heap_len < 2; ) j[2 * (x = u.heap[++u.heap_len] = ne < 2 ? ++ne : 0)] = 1, u.depth[x] = 0, u.opt_len--, G && (u.static_len -= V[2 * x + 1]);
|
|
2248
|
+
for (k.max_code = ne, U = u.heap_len >> 1; 1 <= U; U--) ae(u, j, U);
|
|
2249
|
+
for (x = Y; U = u.heap[1], u.heap[1] = u.heap[u.heap_len--], ae(u, j, 1), F = u.heap[1], u.heap[--u.heap_max] = U, u.heap[--u.heap_max] = F, j[2 * x] = j[2 * U] + j[2 * F], u.depth[x] = (u.depth[U] >= u.depth[F] ? u.depth[U] : u.depth[F]) + 1, j[2 * U + 1] = j[2 * F + 1] = x, u.heap[1] = x++, ae(u, j, 1), 2 <= u.heap_len; ) ;
|
|
2250
|
+
u.heap[--u.heap_max] = u.heap[1], function(ee, ce) {
|
|
2251
|
+
var xe, _e, Ae, se, Re, Be, ge = ce.dyn_tree, je = ce.max_code, st = ce.stat_desc.static_tree, ot = ce.stat_desc.has_stree, ut = ce.stat_desc.extra_bits, He = ce.stat_desc.extra_base, Te = ce.stat_desc.max_length, Ce = 0;
|
|
2252
|
+
for (se = 0; se <= d; se++) ee.bl_count[se] = 0;
|
|
2253
|
+
for (ge[2 * ee.heap[ee.heap_max] + 1] = 0, xe = ee.heap_max + 1; xe < r; xe++) Te < (se = ge[2 * ge[2 * (_e = ee.heap[xe]) + 1] + 1] + 1) && (se = Te, Ce++), ge[2 * _e + 1] = se, je < _e || (ee.bl_count[se]++, Re = 0, He <= _e && (Re = ut[_e - He]), Be = ge[2 * _e], ee.opt_len += Be * (se + Re), ot && (ee.static_len += Be * (st[2 * _e + 1] + Re)));
|
|
2254
|
+
if (Ce !== 0) {
|
|
2255
|
+
do {
|
|
2256
|
+
for (se = Te - 1; ee.bl_count[se] === 0; ) se--;
|
|
2257
|
+
ee.bl_count[se]--, ee.bl_count[se + 1] += 2, ee.bl_count[Te]--, Ce -= 2;
|
|
2258
|
+
} while (0 < Ce);
|
|
2259
|
+
for (se = Te; se !== 0; se--) for (_e = ee.bl_count[se]; _e !== 0; ) je < (Ae = ee.heap[--xe]) || (ge[2 * Ae + 1] !== se && (ee.opt_len += (se - ge[2 * Ae + 1]) * ge[2 * Ae], ge[2 * Ae + 1] = se), _e--);
|
|
2260
|
+
}
|
|
2261
|
+
}(u, k), le(j, ne, u.bl_count);
|
|
2262
|
+
}
|
|
2263
|
+
function e(u, k, U) {
|
|
2264
|
+
var F, x, j = -1, V = k[1], G = 0, Y = 7, ne = 4;
|
|
2265
|
+
for (V === 0 && (Y = 138, ne = 3), k[2 * (U + 1) + 1] = 65535, F = 0; F <= U; F++) x = V, V = k[2 * (F + 1) + 1], ++G < Y && x === V || (G < ne ? u.bl_tree[2 * x] += G : x !== 0 ? (x !== j && u.bl_tree[2 * x]++, u.bl_tree[2 * S]++) : G <= 10 ? u.bl_tree[2 * E]++ : u.bl_tree[2 * B]++, j = x, ne = (G = 0) === V ? (Y = 138, 3) : x === V ? (Y = 6, 3) : (Y = 7, 4));
|
|
2266
|
+
}
|
|
2267
|
+
function z(u, k, U) {
|
|
2268
|
+
var F, x, j = -1, V = k[1], G = 0, Y = 7, ne = 4;
|
|
2269
|
+
for (V === 0 && (Y = 138, ne = 3), F = 0; F <= U; F++) if (x = V, V = k[2 * (F + 1) + 1], !(++G < Y && x === V)) {
|
|
2270
|
+
if (G < ne) for (; W(u, x, u.bl_tree), --G != 0; ) ;
|
|
2271
|
+
else x !== 0 ? (x !== j && (W(u, x, u.bl_tree), G--), W(u, S, u.bl_tree), Z(u, G - 3, 2)) : G <= 10 ? (W(u, E, u.bl_tree), Z(u, G - 3, 3)) : (W(u, B, u.bl_tree), Z(u, G - 11, 7));
|
|
2272
|
+
j = x, ne = (G = 0) === V ? (Y = 138, 3) : x === V ? (Y = 6, 3) : (Y = 7, 4);
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2275
|
+
s(M);
|
|
2276
|
+
var I = !1;
|
|
2277
|
+
function c(u, k, U, F) {
|
|
2278
|
+
Z(u, (_ << 1) + (F ? 1 : 0), 3), function(x, j, V, G) {
|
|
2279
|
+
te(x), K(x, V), K(x, ~V), l.arraySet(x.pending_buf, x.window, j, V, x.pending), x.pending += V;
|
|
2280
|
+
}(u, k, U);
|
|
2281
|
+
}
|
|
2282
|
+
y._tr_init = function(u) {
|
|
2283
|
+
I || (function() {
|
|
2284
|
+
var k, U, F, x, j, V = new Array(d + 1);
|
|
2285
|
+
for (x = F = 0; x < v - 1; x++) for (D[x] = F, k = 0; k < 1 << C[x]; k++) t[F++] = x;
|
|
2286
|
+
for (t[F - 1] = x, x = j = 0; x < 16; x++) for (M[x] = j, k = 0; k < 1 << L[x]; k++) O[j++] = x;
|
|
2287
|
+
for (j >>= 7; x < a; x++) for (M[x] = j << 7, k = 0; k < 1 << L[x] - 7; k++) O[256 + j++] = x;
|
|
2288
|
+
for (U = 0; U <= d; U++) V[U] = 0;
|
|
2289
|
+
for (k = 0; k <= 143; ) X[2 * k + 1] = 8, k++, V[8]++;
|
|
2290
|
+
for (; k <= 255; ) X[2 * k + 1] = 9, k++, V[9]++;
|
|
2291
|
+
for (; k <= 279; ) X[2 * k + 1] = 7, k++, V[7]++;
|
|
2292
|
+
for (; k <= 287; ) X[2 * k + 1] = 8, k++, V[8]++;
|
|
2293
|
+
for (le(X, g + 1, V), k = 0; k < a; k++) b[2 * k + 1] = 5, b[2 * k] = ie(k, 5);
|
|
2294
|
+
q = new $(X, C, h + 1, g, d), P = new $(b, L, 0, a, d), J = new $(new Array(0), R, 0, f, p);
|
|
2295
|
+
}(), I = !0), u.l_desc = new T(u.dyn_ltree, q), u.d_desc = new T(u.dyn_dtree, P), u.bl_desc = new T(u.bl_tree, J), u.bi_buf = 0, u.bi_valid = 0, Q(u);
|
|
2296
|
+
}, y._tr_stored_block = c, y._tr_flush_block = function(u, k, U, F) {
|
|
2297
|
+
var x, j, V = 0;
|
|
2298
|
+
0 < u.level ? (u.strm.data_type === 2 && (u.strm.data_type = function(G) {
|
|
2299
|
+
var Y, ne = 4093624447;
|
|
2300
|
+
for (Y = 0; Y <= 31; Y++, ne >>>= 1) if (1 & ne && G.dyn_ltree[2 * Y] !== 0) return o;
|
|
2301
|
+
if (G.dyn_ltree[18] !== 0 || G.dyn_ltree[20] !== 0 || G.dyn_ltree[26] !== 0) return n;
|
|
2302
|
+
for (Y = 32; Y < h; Y++) if (G.dyn_ltree[2 * Y] !== 0) return n;
|
|
2303
|
+
return o;
|
|
2304
|
+
}(u)), he(u, u.l_desc), he(u, u.d_desc), V = function(G) {
|
|
2305
|
+
var Y;
|
|
2306
|
+
for (e(G, G.dyn_ltree, G.l_desc.max_code), e(G, G.dyn_dtree, G.d_desc.max_code), he(G, G.bl_desc), Y = f - 1; 3 <= Y && G.bl_tree[2 * H[Y] + 1] === 0; Y--) ;
|
|
2307
|
+
return G.opt_len += 3 * (Y + 1) + 5 + 5 + 4, Y;
|
|
2308
|
+
}(u), x = u.opt_len + 3 + 7 >>> 3, (j = u.static_len + 3 + 7 >>> 3) <= x && (x = j)) : x = j = U + 5, U + 4 <= x && k !== -1 ? c(u, k, U, F) : u.strategy === 4 || j === x ? (Z(u, 2 + (F ? 1 : 0), 3), pe(u, X, b)) : (Z(u, 4 + (F ? 1 : 0), 3), function(G, Y, ne, ee) {
|
|
2309
|
+
var ce;
|
|
2310
|
+
for (Z(G, Y - 257, 5), Z(G, ne - 1, 5), Z(G, ee - 4, 4), ce = 0; ce < ee; ce++) Z(G, G.bl_tree[2 * H[ce] + 1], 3);
|
|
2311
|
+
z(G, G.dyn_ltree, Y - 1), z(G, G.dyn_dtree, ne - 1);
|
|
2312
|
+
}(u, u.l_desc.max_code + 1, u.d_desc.max_code + 1, V + 1), pe(u, u.dyn_ltree, u.dyn_dtree)), Q(u), F && te(u);
|
|
2313
|
+
}, y._tr_tally = function(u, k, U) {
|
|
2314
|
+
return u.pending_buf[u.d_buf + 2 * u.last_lit] = k >>> 8 & 255, u.pending_buf[u.d_buf + 2 * u.last_lit + 1] = 255 & k, u.pending_buf[u.l_buf + u.last_lit] = 255 & U, u.last_lit++, k === 0 ? u.dyn_ltree[2 * U]++ : (u.matches++, k--, u.dyn_ltree[2 * (t[U] + h + 1)]++, u.dyn_dtree[2 * A(k)]++), u.last_lit === u.lit_bufsize - 1;
|
|
2315
|
+
}, y._tr_align = function(u) {
|
|
2316
|
+
Z(u, 2, 3), W(u, w, X), function(k) {
|
|
2317
|
+
k.bi_valid === 16 ? (K(k, k.bi_buf), k.bi_buf = 0, k.bi_valid = 0) : 8 <= k.bi_valid && (k.pending_buf[k.pending++] = 255 & k.bi_buf, k.bi_buf >>= 8, k.bi_valid -= 8);
|
|
2318
|
+
}(u);
|
|
2319
|
+
};
|
|
2320
|
+
}, { "../utils/common": 41 }], 53: [function(m, N, y) {
|
|
2321
|
+
N.exports = function() {
|
|
2322
|
+
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;
|
|
2323
|
+
};
|
|
2324
|
+
}, {}], 54: [function(m, N, y) {
|
|
2325
|
+
(function(l) {
|
|
2326
|
+
(function(o, n) {
|
|
2327
|
+
if (!o.setImmediate) {
|
|
2328
|
+
var s, _, v, h, g = 1, a = {}, f = !1, r = o.document, d = Object.getPrototypeOf && Object.getPrototypeOf(o);
|
|
2329
|
+
d = d && d.setTimeout ? d : o, s = {}.toString.call(o.process) === "[object process]" ? function(S) {
|
|
2330
|
+
fe.nextTick(function() {
|
|
2331
|
+
p(S);
|
|
2332
|
+
});
|
|
2333
|
+
} : function() {
|
|
2334
|
+
if (o.postMessage && !o.importScripts) {
|
|
2335
|
+
var S = !0, E = o.onmessage;
|
|
2336
|
+
return o.onmessage = function() {
|
|
2337
|
+
S = !1;
|
|
2338
|
+
}, o.postMessage("", "*"), o.onmessage = E, S;
|
|
2339
|
+
}
|
|
2340
|
+
}() ? (h = "setImmediate$" + Math.random() + "$", o.addEventListener ? o.addEventListener("message", w, !1) : o.attachEvent("onmessage", w), function(S) {
|
|
2341
|
+
o.postMessage(h + S, "*");
|
|
2342
|
+
}) : o.MessageChannel ? ((v = new MessageChannel()).port1.onmessage = function(S) {
|
|
2343
|
+
p(S.data);
|
|
2344
|
+
}, function(S) {
|
|
2345
|
+
v.port2.postMessage(S);
|
|
2346
|
+
}) : r && "onreadystatechange" in r.createElement("script") ? (_ = r.documentElement, function(S) {
|
|
2347
|
+
var E = r.createElement("script");
|
|
2348
|
+
E.onreadystatechange = function() {
|
|
2349
|
+
p(S), E.onreadystatechange = null, _.removeChild(E), E = null;
|
|
2350
|
+
}, _.appendChild(E);
|
|
2351
|
+
}) : function(S) {
|
|
2352
|
+
setTimeout(p, 0, S);
|
|
2353
|
+
}, d.setImmediate = function(S) {
|
|
2354
|
+
typeof S != "function" && (S = new Function("" + S));
|
|
2355
|
+
for (var E = new Array(arguments.length - 1), B = 0; B < E.length; B++) E[B] = arguments[B + 1];
|
|
2356
|
+
var C = { callback: S, args: E };
|
|
2357
|
+
return a[g] = C, s(g), g++;
|
|
2358
|
+
}, d.clearImmediate = i;
|
|
2359
|
+
}
|
|
2360
|
+
function i(S) {
|
|
2361
|
+
delete a[S];
|
|
2362
|
+
}
|
|
2363
|
+
function p(S) {
|
|
2364
|
+
if (f) setTimeout(p, 0, S);
|
|
2365
|
+
else {
|
|
2366
|
+
var E = a[S];
|
|
2367
|
+
if (E) {
|
|
2368
|
+
f = !0;
|
|
2369
|
+
try {
|
|
2370
|
+
(function(B) {
|
|
2371
|
+
var C = B.callback, L = B.args;
|
|
2372
|
+
switch (L.length) {
|
|
2373
|
+
case 0:
|
|
2374
|
+
C();
|
|
2375
|
+
break;
|
|
2376
|
+
case 1:
|
|
2377
|
+
C(L[0]);
|
|
2378
|
+
break;
|
|
2379
|
+
case 2:
|
|
2380
|
+
C(L[0], L[1]);
|
|
2381
|
+
break;
|
|
2382
|
+
case 3:
|
|
2383
|
+
C(L[0], L[1], L[2]);
|
|
2384
|
+
break;
|
|
2385
|
+
default:
|
|
2386
|
+
C.apply(n, L);
|
|
2387
|
+
}
|
|
2388
|
+
})(E);
|
|
2389
|
+
} finally {
|
|
2390
|
+
i(S), f = !1;
|
|
2391
|
+
}
|
|
2392
|
+
}
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
function w(S) {
|
|
2396
|
+
S.source === o && typeof S.data == "string" && S.data.indexOf(h) === 0 && p(+S.data.slice(h.length));
|
|
2397
|
+
}
|
|
2398
|
+
})(typeof self > "u" ? l === void 0 ? this : l : self);
|
|
2399
|
+
}).call(this, typeof we < "u" ? we : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2400
|
+
}, {}] }, {}, [10])(10);
|
|
2401
|
+
});
|
|
2402
|
+
}(Le)), Le.exports;
|
|
2403
|
+
}
|
|
2404
|
+
It();
|
|
2405
|
+
const Rt = { class: "space-y-24 mb-24" }, Ct = ["innerHTML"], Ot = { class: "flex justify-end gap-8" }, zt = /* @__PURE__ */ Me({
|
|
2406
|
+
__name: "ConfirmActionDialog",
|
|
2407
|
+
props: {
|
|
2408
|
+
description: {},
|
|
2409
|
+
value: {},
|
|
2410
|
+
message: { default: "To confirm your action, type <b>[[value]]</b> in the text field." }
|
|
2411
|
+
},
|
|
2412
|
+
setup(ke) {
|
|
2413
|
+
const oe = ke, fe = ye(() => oe.message.replace("[[value]]", oe.value)), m = De(""), N = it(), { emitAction: y } = mt();
|
|
2414
|
+
return (l, o) => {
|
|
2415
|
+
const n = Ie("FmTextField"), s = Ie("FmButton"), _ = Ie("FmForm");
|
|
2416
|
+
return be(), Ee(_, {
|
|
2417
|
+
"on-validation-success": () => re(y)("primary"),
|
|
2418
|
+
"blame-form-child-on-validation-failed": ""
|
|
2419
|
+
}, {
|
|
2420
|
+
default: ve(() => [
|
|
2421
|
+
me("div", Rt, [
|
|
2422
|
+
me("div", null, Qe(l.description), 1),
|
|
2423
|
+
me("div", { innerHTML: fe.value }, null, 8, Ct),
|
|
2424
|
+
me("div", null, [
|
|
2425
|
+
de(n, {
|
|
2426
|
+
modelValue: m.value,
|
|
2427
|
+
"onUpdate:modelValue": [
|
|
2428
|
+
o[0] || (o[0] = (v) => m.value = v),
|
|
2429
|
+
o[1] || (o[1] = () => {
|
|
2430
|
+
})
|
|
2431
|
+
],
|
|
2432
|
+
placeholder: l.value,
|
|
2433
|
+
rules: [(v) => v === l.value || "Value does not match"]
|
|
2434
|
+
}, null, 8, ["modelValue", "placeholder", "rules"])
|
|
2435
|
+
]),
|
|
2436
|
+
me("div", Ot, [
|
|
2437
|
+
de(s, {
|
|
2438
|
+
label: "Cancel",
|
|
2439
|
+
variant: "secondary",
|
|
2440
|
+
onClick: o[2] || (o[2] = (v) => re(N).close())
|
|
2441
|
+
}),
|
|
2442
|
+
de(s, {
|
|
2443
|
+
label: "Confirm",
|
|
2444
|
+
type: "submit"
|
|
2445
|
+
})
|
|
2446
|
+
])
|
|
2447
|
+
])
|
|
2448
|
+
]),
|
|
2449
|
+
_: 1
|
|
2450
|
+
}, 8, ["on-validation-success"]);
|
|
2451
|
+
};
|
|
2452
|
+
}
|
|
2453
|
+
}), Dt = /* @__PURE__ */ Me({
|
|
2454
|
+
__name: "Migrate",
|
|
2455
|
+
setup(ke) {
|
|
2456
|
+
const oe = tt(), fe = pt(), m = at(), { minor: N } = rt(m), y = De(!1), l = it();
|
|
2457
|
+
async function o() {
|
|
2458
|
+
n.value || y.value || l.open({
|
|
2459
|
+
title: "Migrate to new version",
|
|
2460
|
+
contentComponent: zt,
|
|
2461
|
+
contentComponentProps: {
|
|
2462
|
+
value: "MIGRATE",
|
|
2463
|
+
description: "Do you want to migrate to new version? Once migrate it will unable to revert to the older version."
|
|
2464
|
+
}
|
|
2465
|
+
}).onPrimary(async () => {
|
|
2466
|
+
l.close(), await N(
|
|
2467
|
+
async () => {
|
|
2468
|
+
await oe.migrate(), setTimeout(() => {
|
|
2469
|
+
window.location.reload();
|
|
2470
|
+
}, 2e3);
|
|
2471
|
+
},
|
|
2472
|
+
{
|
|
2473
|
+
isLoading: y,
|
|
2474
|
+
customId: oe.state.menu._id,
|
|
2475
|
+
message: "Migrating menu",
|
|
2476
|
+
successMessage: "Migration completed"
|
|
2477
|
+
}
|
|
2478
|
+
);
|
|
2479
|
+
});
|
|
2480
|
+
}
|
|
2481
|
+
const n = ye(() => {
|
|
2482
|
+
const s = fe.restaurants.value;
|
|
2483
|
+
if (!s.length) return "Required at least one restaurant to migrate";
|
|
2484
|
+
const _ = s.filter((h) => !h.posVersion || !Ze.Pos.canUse({ feature: Ve.F_FEATURE.enum.menuV4, posVersion: h.posVersion }));
|
|
2485
|
+
return _.length ? `Upgrade POS to V${Ze.Pos.minVersionToUse(Ve.F_FEATURE.enum.menuV4)} to use new menu: ${_.map((h) => h.profile.name).join(", ")}` : null;
|
|
2486
|
+
});
|
|
2487
|
+
return ye(() => n.value ? n.value : "Migrate your menu to new version to enjoy more features. Content of new menu will remain the same as current."), (s, _) => {
|
|
2488
|
+
const v = Ie("FmSnackbar");
|
|
2489
|
+
return !n.value && re(oe).version !== re(nt.F_MENU_VERSION).enum.v4 ? (be(), Ee(v, {
|
|
2490
|
+
key: 0,
|
|
2491
|
+
class: "!max-w-full",
|
|
2492
|
+
title: "New version of menu is out now!",
|
|
2493
|
+
description: "Migrate your current menu version to the latest to enjoy more features such as product sequential dispatch, serving sequence, scheduler and more! Your content and current setting will be preserved.",
|
|
2494
|
+
variant: "info",
|
|
2495
|
+
action: "Migrate",
|
|
2496
|
+
"z-index": 0,
|
|
2497
|
+
onOnAction: o
|
|
2498
|
+
})) : et("", !0);
|
|
2499
|
+
};
|
|
2500
|
+
}
|
|
2501
|
+
}), Bt = { class: "flex-1 flex justify-between gap-8 pl-8" }, Nt = { class: "flex items-center" }, Ut = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ft = { class: "fm-typo-en-body-md-600 font-semibold" }, Pt = { class: "flex gap-8" }, tr = /* @__PURE__ */ Me({
|
|
2502
|
+
__name: "Products",
|
|
2503
|
+
setup(ke) {
|
|
2504
|
+
const { t: oe } = _t(), fe = rt(at()), m = tt(), N = ye(() => m.rules.item), y = kt(), l = ye(() => !m.state.currentSchedulerId), o = ct(), n = ht(), { selectedCategories: s } = yt(), _ = ye(() => ({
|
|
2505
|
+
...lt.menuV4ToV3(Ye(m.state.menu)),
|
|
2506
|
+
_id: m.state.menu._id,
|
|
2507
|
+
_rev: m.state.menu._rev
|
|
2508
|
+
})), v = ye(() => dt.flatten(s.value.map((f) => f.items)).length);
|
|
2509
|
+
async function h() {
|
|
2510
|
+
await fe.minor(
|
|
2511
|
+
async () => {
|
|
2512
|
+
if (await m.readMenu(), m.version === nt.F_MENU_VERSION.enum.v4) {
|
|
2513
|
+
const f = Ye(m.state.menu);
|
|
2514
|
+
new ft(f).exportToExcel().map(async (d, i) => {
|
|
2515
|
+
switch (i) {
|
|
2516
|
+
case 0:
|
|
2517
|
+
await Ue(d, `menu_${Ne().format("DD-MM-YYYY_HH-mm")}.xlsx`, {
|
|
2518
|
+
bookType: "xlsx",
|
|
2519
|
+
bookSST: !1,
|
|
2520
|
+
type: "array"
|
|
2521
|
+
});
|
|
2522
|
+
break;
|
|
2523
|
+
case 1:
|
|
2524
|
+
await Ue(d, `addonGroup_${Ne().format("DD-MM-YYYY_HH-mm")}.xlsx`, {
|
|
2525
|
+
bookType: "xlsx",
|
|
2526
|
+
bookSST: !1,
|
|
2527
|
+
type: "array"
|
|
2528
|
+
});
|
|
2529
|
+
break;
|
|
2530
|
+
}
|
|
2531
|
+
});
|
|
2532
|
+
} else {
|
|
2533
|
+
const f = xt(_.value), r = `menu_${Ne().format("DD-MM-YYYY_HH-mm")}`;
|
|
2534
|
+
await Ue(f, `${r}.xlsx`, {
|
|
2535
|
+
bookType: "xlsx",
|
|
2536
|
+
bookSST: !1,
|
|
2537
|
+
type: "array"
|
|
2538
|
+
});
|
|
2539
|
+
}
|
|
2540
|
+
},
|
|
2541
|
+
{ successMessage: "Menu exported", customId: m.state.menu._id }
|
|
2542
|
+
);
|
|
2543
|
+
}
|
|
2544
|
+
De(!1), De(!1);
|
|
2545
|
+
const g = gt(), a = ye(() => g.breakpoints.value.xs);
|
|
2546
|
+
return wt().resetOnMount(), (f, r) => {
|
|
2547
|
+
const d = Ie("fm-button");
|
|
2548
|
+
return be(), Ee(bt, {
|
|
2549
|
+
heading: re(oe)("menu.products.title")
|
|
2550
|
+
}, {
|
|
2551
|
+
default: ve(() => [
|
|
2552
|
+
de(Dt),
|
|
2553
|
+
de(Et)
|
|
2554
|
+
]),
|
|
2555
|
+
"append-heading": ve(() => [
|
|
2556
|
+
me("div", Bt, [
|
|
2557
|
+
me("div", Nt, [
|
|
2558
|
+
me("div", Ut, [
|
|
2559
|
+
me("p", Ft, Qe(v.value), 1)
|
|
2560
|
+
])
|
|
2561
|
+
]),
|
|
2562
|
+
me("div", Pt, [
|
|
2563
|
+
a.value ? (be(), Ee(Xe, { key: 1 }, {
|
|
2564
|
+
default: ve(({ trigger: i }) => [
|
|
2565
|
+
de(vt, null, {
|
|
2566
|
+
default: ve(() => [
|
|
2567
|
+
de(Ke, {
|
|
2568
|
+
label: re(oe)("menu.products.actions.export"),
|
|
2569
|
+
onClick: h
|
|
2570
|
+
}, null, 8, ["label"]),
|
|
2571
|
+
de(Ke, {
|
|
2572
|
+
label: re(oe)("menu.products.actions.import"),
|
|
2573
|
+
onClick: i
|
|
2574
|
+
}, null, 8, ["label", "onClick"])
|
|
2575
|
+
]),
|
|
2576
|
+
_: 2
|
|
2577
|
+
}, 1024)
|
|
2578
|
+
]),
|
|
2579
|
+
_: 1
|
|
2580
|
+
})) : (be(), Ge(We, { key: 0 }, [
|
|
2581
|
+
de(St, null, {
|
|
2582
|
+
default: ve(({ trigger: i }) => [
|
|
2583
|
+
de(d, {
|
|
2584
|
+
label: re(oe)("menu.tree_editor.title"),
|
|
2585
|
+
"bg-color": re(Se).NeutralGray100,
|
|
2586
|
+
"text-color": re(Se).TypoSecondary,
|
|
2587
|
+
variant: re(Fe).Primary,
|
|
2588
|
+
onClick: i
|
|
2589
|
+
}, null, 8, ["label", "bg-color", "text-color", "variant", "onClick"])
|
|
2590
|
+
]),
|
|
2591
|
+
_: 1
|
|
2592
|
+
}),
|
|
2593
|
+
de(d, {
|
|
2594
|
+
"bg-color": re(Se).NeutralGray100,
|
|
2595
|
+
"text-color": re(Se).TypoSecondary,
|
|
2596
|
+
variant: re(Fe).Primary,
|
|
2597
|
+
label: re(oe)("menu.products.actions.export"),
|
|
2598
|
+
onClick: h
|
|
2599
|
+
}, null, 8, ["bg-color", "text-color", "variant", "label"]),
|
|
2600
|
+
de(Xe, null, {
|
|
2601
|
+
default: ve(({ trigger: i }) => [
|
|
2602
|
+
de(d, {
|
|
2603
|
+
"bg-color": re(Se).NeutralGray100,
|
|
2604
|
+
"text-color": re(Se).TypoSecondary,
|
|
2605
|
+
variant: re(Fe).Primary,
|
|
2606
|
+
label: re(oe)("menu.products.actions.import"),
|
|
2607
|
+
onClick: i
|
|
2608
|
+
}, null, 8, ["bg-color", "text-color", "variant", "label", "onClick"])
|
|
2609
|
+
]),
|
|
2610
|
+
_: 1
|
|
2611
|
+
})
|
|
2612
|
+
], 64)),
|
|
2613
|
+
v.value > 0 ? (be(), Ge(We, { key: 2 }, [
|
|
2614
|
+
N.value.create ? (be(), Ee(Pe, {
|
|
2615
|
+
key: 0,
|
|
2616
|
+
label: re(oe)("menu.products.actions.add"),
|
|
2617
|
+
"prepend-icon": "add",
|
|
2618
|
+
onClick: r[0] || (r[0] = (i) => re(y).create(null))
|
|
2619
|
+
}, null, 8, ["label"])) : l.value ? (be(), Ee($e, {
|
|
2620
|
+
key: 1,
|
|
2621
|
+
"categorized-items": re(o).linkableItems.value,
|
|
2622
|
+
"initial-value": re(o).currentItems.value,
|
|
2623
|
+
"show-variant": !1,
|
|
2624
|
+
onSubmit: r[1] || (r[1] = (i) => re(o).applyProduct(i.map((p) => p._id)))
|
|
2625
|
+
}, {
|
|
2626
|
+
default: ve(({ trigger: i }) => [
|
|
2627
|
+
de(Pe, {
|
|
2628
|
+
label: re(oe)("menu.products.actions.link"),
|
|
2629
|
+
"prepend-icon": "link",
|
|
2630
|
+
onClick: i
|
|
2631
|
+
}, null, 8, ["label", "onClick"])
|
|
2632
|
+
]),
|
|
2633
|
+
_: 1
|
|
2634
|
+
}, 8, ["categorized-items", "initial-value"])) : (be(), Ee($e, {
|
|
2635
|
+
key: 2,
|
|
2636
|
+
"categorized-items": re(n).linkableItems.value,
|
|
2637
|
+
"initial-value": re(n).currentItems.value,
|
|
2638
|
+
"show-variant": !1,
|
|
2639
|
+
onSubmit: r[2] || (r[2] = (i) => re(n).applyProduct(i.map((p) => p._id)))
|
|
2640
|
+
}, {
|
|
2641
|
+
default: ve(({ trigger: i }) => [
|
|
2642
|
+
de(Pe, {
|
|
2643
|
+
label: re(oe)("menu.products.actions.apply_scheduler"),
|
|
2644
|
+
onClick: i
|
|
2645
|
+
}, null, 8, ["label", "onClick"])
|
|
2646
|
+
]),
|
|
2647
|
+
_: 1
|
|
2648
|
+
}, 8, ["categorized-items", "initial-value"]))
|
|
2649
|
+
], 64)) : et("", !0)
|
|
2650
|
+
])
|
|
2651
|
+
])
|
|
2652
|
+
]),
|
|
2653
|
+
_: 1
|
|
2654
|
+
}, 8, ["heading"]);
|
|
2655
|
+
};
|
|
2656
|
+
}
|
|
2657
|
+
});
|
|
2658
|
+
export {
|
|
2659
|
+
tr as default
|
|
2660
|
+
};
|